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/6637.88ebd09b.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=(We,Ee,ae)=>Ee in We?GE(We,Ee,{enumerable:!0,configurable:!0,writable:!0,value:ae}):We[Ee]=ae,xa=(We,Ee)=>{for(var ae in Ee||(Ee={}))nE.call(Ee,ae)&&tE(We,ae,Ee[ae]);if(Pv)for(var ae of Pv(Ee))rE.call(Ee,ae)&&tE(We,ae,Ee[ae]);return We},Kp=(We,Ee)=>jE(We,VE(Ee));var iE=(We,Ee)=>{var ae={};for(var oe in We)nE.call(We,oe)&&Ee.indexOf(oe)<0&&(ae[oe]=We[oe]);if(We!=null&&Pv)for(var oe of Pv(We))Ee.indexOf(oe)<0&&rE.call(We,oe)&&(ae[oe]=We[oe]);return ae};var sS=(We,Ee,ae)=>new Promise((oe,Pe)=>{var Ie=Te=>{try{Ve(ae.next(Te))}catch(Ge){Pe(Ge)}},ke=Te=>{try{Ve(ae.throw(Te))}catch(Ge){Pe(Ge)}},Ve=Te=>Te.done?oe(Te.value):Promise.resolve(Te.value).then(Ie,ke);Ve((ae=ae.apply(We,Ee)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[6637],{8336:function(){"use strict"},12469:function(){"use strict"},99587:function(We,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(We,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(We,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(We,Ee,ae){"use strict";var oe=ae(59301),Pe=Object.defineProperty,Ie=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Te=(Ke,He,St)=>He in Ke?Pe(Ke,He,{enumerable:!0,configurable:!0,writable:!0,value:St}):Ke[He]=St,Ge=(Ke,He)=>{for(var St in He||(He={}))ke.call(He,St)&&Te(Ke,St,He[St]);if(Ie)for(var St of Ie(He))Ve.call(He,St)&&Te(Ke,St,He[St]);return Ke};const lt=Ke=>React.createElement("svg",Ge({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Ke),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(We,Ee,ae){"use strict";var oe=ae(59301),Pe=Object.defineProperty,Ie=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Te=(Ke,He,St)=>He in Ke?Pe(Ke,He,{enumerable:!0,configurable:!0,writable:!0,value:St}):Ke[He]=St,Ge=(Ke,He)=>{for(var St in He||(He={}))ke.call(He,St)&&Te(Ke,St,He[St]);if(Ie)for(var St of Ie(He))Ve.call(He,St)&&Te(Ke,St,He[St]);return Ke};const lt=Ke=>React.createElement("svg",Ge({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Ke),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 We(Fe,te,ee,he){ee===void 0&&(ee=0),he===void 0&&(he=1/0),this._name=Fe,this._defaultValue=te,this._minimum=ee,this._maximum=he}Object.defineProperty(We.prototype,"name",{get:function(){return this._name},set:function(Fe){if(typeof Fe!="string"||Fe==="")throw new Error("Shape name must be a valid string.");this._name=Fe}}),Object.defineProperty(We.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Fe){if(typeof Fe!="number"||isNaN(Fe))throw new Error("The default value must be a real number, not: "+Fe);this._defaultValue=Fe}}),Object.defineProperty(We.prototype,"minimum",{get:function(){return this._minimum},set:function(Fe){if(typeof Fe!="number"||isNaN(Fe))throw new Error("Minimum must be a real number, not: "+Fe);this._minimum=Fe}}),Object.defineProperty(We.prototype,"maximum",{get:function(){return this._maximum},set:function(Fe){if(typeof Fe!="number"||isNaN(Fe))throw new Error("Maximum must be a real number, not: "+Fe);this._maximum=Fe}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Fe,te){var ee=go.Shape._FigureParameters[Fe];return ee?ee[te]:null},go.Shape.setFigureParameter=function(Fe,te,ee){if(!(ee instanceof We))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+ee);if(ee.defaultValue<ee.minimum||ee.defaultValue>ee.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+ee.defaultValue);var he=go.Shape._FigureParameters[Fe];he||(he=[],go.Shape._FigureParameters[Fe]=he),he[te]=ee};var Ee=[];function ae(Fe,te){var ee=Ee.pop();return ee===void 0?new go.Point(Fe,te):(ee.x=Fe,ee.y=te,ee)}function oe(){var Fe=Ee.pop();return Fe===void 0?new go.Point:Fe}function Pe(Fe){Ee.push(Fe)}function Ie(Fe,te,ee,he,ue,fe,me,be,Ae){Ae||(Ae=new go.Point);var De=Fe-ee,Ye=ue-me,nt=NaN,Je=NaN;if(De===0)if(Ye===0)Fe===ee&&(nt=Fe,Je=te);else{var ot=(fe-be)/Ye,mt=fe-ot*ue;nt=Fe,Je=ot*nt+mt}else if(Ye===0){var it=(te-he)/De,vt=te-it*Fe;nt=ue,Je=it*nt+vt}else{var it=(te-he)/De,ot=(fe-be)/Ye,vt=te-it*Fe,mt=fe-ot*ue;nt=(mt-vt)/(it-ot),Je=it*nt+vt}return Ae.x=nt,Ae.y=Je,Ae}function ke(Fe,te,ee,he,ue,fe,me,be,Ae,De,Ye,nt,Je,ot){var mt=1-Ae,it=Ae,vt=Fe*mt+ee*it,wt=te*mt+he*it,Nt=ee*mt+ue*it,Ht=he*mt+fe*it,Qt=ue*mt+me*it,Yt=fe*mt+be*it,yn=vt*mt+Nt*it,bt=wt*mt+Ht*it,ft=Nt*mt+Qt*it,ct=Ht*mt+Yt*it,Jt=yn*mt+ft*it,fn=bt*mt+ct*it;De.x=vt,De.y=wt,Ye.x=yn,Ye.y=bt,nt.x=Jt,nt.y=fn,Je.x=ft,Je.y=ct,ot.x=Qt,ot.y=Yt}var Ve=new go.Spot(.156,.156),Te=new go.Spot(.844,.844),Ge=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new We("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=5),he=Math.min(he,te/3),he=Math.min(he,ee/3);var ue=he*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(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(te,ee).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(te,ee).add(new go.PathSegment(go.PathSegment.Line,0,ee)).add(new go.PathSegment(go.PathSegment.Line,.5*te,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(.5*te,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Fe,te,ee){var he=new go.Geometry(go.Geometry.Line);return he.startX=0,he.startY=ee/2,he.endX=te,he.endY=ee/2,he}),go.Shape.defineFigureGenerator("LineV",function(Fe,te,ee){var he=new go.Geometry(go.Geometry.Line);return he.startX=te/2,he.startY=0,he.endX=te/2,he.endY=ee,he}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,ee/2,!1).add(new go.PathSegment(go.PathSegment.Line,te,ee/2)).add(new go.PathSegment(go.PathSegment.Move,te/2,0)).add(new go.PathSegment(go.PathSegment.Line,te/2,ee)))}),go.Shape.defineFigureGenerator("XLine",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)))}),go.Shape.defineFigureGenerator("LineRight",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(.25*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.25*te,ee)))}),go.Shape.defineFigureGenerator("LineDown",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,.25*ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,.75*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)))}),go.Shape.defineFigureGenerator("LineLeft",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(.75*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.75*te,ee)))}),go.Shape.defineFigureGenerator("LineUp",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,.75*ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.75*ee)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Fe,te,ee){var he=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(he*te,(1-he)*ee,!1).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,he*ee)).add(new go.PathSegment(go.PathSegment.Move,he*te,he*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,(1-he)*ee)).add(new go.PathSegment(go.PathSegment.Move,0,ee/2)).add(new go.PathSegment(go.PathSegment.Line,te,ee/2)).add(new go.PathSegment(go.PathSegment.Move,te/2,0)).add(new go.PathSegment(go.PathSegment.Line,te/2,ee)))}),go.Shape.defineFigureGenerator("CircleLine",function(Fe,te,ee){var he=te/2,ue=new go.Geometry().add(new go.PathFigure(te,te/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,he,he,he,he).close()));return ue.spot1=Ve,ue.spot2=Te,ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("Line1",function(Fe,te,ee){var he=new go.Geometry(go.Geometry.Line);return he.startX=0,he.startY=0,he.endX=te,he.endY=ee,he}),go.Shape.defineFigureGenerator("Line2",function(Fe,te,ee){var he=new go.Geometry(go.Geometry.Line);return he.startX=te,he.startY=0,he.endX=0,he.endY=ee,he}),go.Shape.defineFigureGenerator("Curve1",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ee,Ge*te,0,te,(1-Ge)*ee)))}),go.Shape.defineFigureGenerator("Curve2",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ee,0,Ge*ee,(1-Ge)*te,ee)))}),go.Shape.defineFigureGenerator("Curve3",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,te,Ge*ee,Ge*te,ee)))}),go.Shape.defineFigureGenerator("Curve4",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,(1-Ge)*te,0,0,(1-Ge)*ee)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(te,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new We("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=.1:he<-1?he=-1:he>1&&(he=1);var ue=Math.abs(he)*te;if(he===0){var fe=new go.Geometry(go.Geometry.Rectangle);return fe.startX=0,fe.startY=0,fe.endX=te,fe.endY=ee,fe}else{var fe=new go.Geometry;return he>0?fe.add(new go.PathFigure(ue,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-ue,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):fe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-ue,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,ue,ee).close())),ue<te/2&&fe.setSpots(ue/te,0,(te-ue)/te,1),fe}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new We("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=10:he<-te?he=-te:he>te&&(he=te);var ue=Math.abs(he);if(he===0){var fe=new go.Geometry(go.Geometry.Rectangle);return fe.startX=0,fe.startY=0,fe.endX=te,fe.endY=ee,fe}else{var fe=new go.Geometry;return he>0?fe.add(new go.PathFigure(ue,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-ue,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):fe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-ue,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,ue,ee).close())),ue<te/2&&fe.setSpots(ue/te,0,(te-ue)/te,1),fe}}),go.Shape.setFigureParameter("Trapezoid1",0,new We("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=.2:he<.5?he=-.5:he>.5&&(he=.5);var ue=Math.abs(he)*te;if(he===0){var fe=new go.Geometry(go.Geometry.Rectangle);return fe.startX=0,fe.startY=0,fe.endX=te,fe.endY=ee,fe}else{var fe=new go.Geometry;return he>0?fe.add(new go.PathFigure(ue,0).add(new go.PathSegment(go.PathSegment.Line,te-ue,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):fe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-ue,ee)).add(new go.PathSegment(go.PathSegment.Line,ue,ee).close())),ue<te/2&&fe.setSpots(ue/te,0,(te-ue)/te,1),fe}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new We("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=20:he<-te?he=-te/2:he>te&&(he=te/2);var ue=Math.abs(he);if(he===0){var fe=new go.Geometry(go.Geometry.Rectangle);return fe.startX=0,fe.startY=0,fe.endX=te,fe.endY=ee,fe}else{var fe=new go.Geometry;return he>0?fe.add(new go.PathFigure(ue,0).add(new go.PathSegment(go.PathSegment.Line,te-ue,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):fe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-ue,ee)).add(new go.PathSegment(go.PathSegment.Line,ue,ee).close())),ue<te/2&&fe.setSpots(ue/te,0,(te-ue)/te,1),fe}}),go.Shape.setFigureParameter("ManualOperation",0,new We("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=10:he<-te?he=-te/2:he>te&&(he=te/2);var ue=Math.abs(he);if(he===0){var fe=new go.Geometry(go.Geometry.Rectangle);return fe.startX=0,fe.startY=0,fe.endX=te,fe.endY=ee,fe}else{var fe=new go.Geometry;return he>0?fe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-ue,ee)).add(new go.PathSegment(go.PathSegment.Line,ue,ee).close())):fe.add(new go.PathFigure(ue,0).add(new go.PathSegment(go.PathSegment.Line,te-ue,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())),ue<te/2&&fe.setSpots(ue/te,0,(te-ue)/te,1),fe}});var lt=[];function Ke(){var Fe=lt.pop();return Fe===void 0?[]:Fe}function He(Fe){Fe.length=0,lt.push(Fe)}function St(Fe){for(var te=Ke(),ee=.5,he=.5,ue=Math.PI*1.5,fe=0,me=0;me<Fe;me++)fe=2*Math.PI/Fe*me+ue,te[me]=new go.Point(he+ee*Math.cos(fe),he+ee*Math.sin(fe));return te.push(te[0]),te}function $e(Fe){var te=It(Fe),ee=Ke();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 He(te),ee}function It(Fe){for(var te=St(Fe),ee=Ke(),he=Math.floor(te.length/2),ue=te.length-1,fe=Fe%2===0?2:1,me=0;me<ue;me++){var be=te[me],Ae=te[me+1],De=te[(he+me-1)%ue],Ye=te[(he+me+fe)%ue];ee[me*2]=be,ee[me*2+1]=Ie(be.x,be.y,De.x,De.y,Ae.x,Ae.y,Ye.x,Ye.y,new go.Point)}return ee[ee.length]=ee[0],He(te),ee}go.Shape.defineFigureGenerator("Pentagon",function(Fe,te,ee){var he=St(5),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<5;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),He(he),ue.spot1=new go.Spot(.2,.22),ue.spot2=new go.Spot(.8,.9),ue}),go.Shape.defineFigureGenerator("Hexagon",function(Fe,te,ee){var he=St(6),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<6;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),He(he),ue.spot1=new go.Spot(.07,.25),ue.spot2=new go.Spot(.93,.75),ue}),go.Shape.defineFigureGenerator("Heptagon",function(Fe,te,ee){var he=St(7),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<7;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),He(he),ue.spot1=new go.Spot(.2,.15),ue.spot2=new go.Spot(.8,.85),ue}),go.Shape.defineFigureGenerator("Octagon",function(Fe,te,ee){var he=St(8),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<8;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),He(he),ue.spot1=new go.Spot(.15,.15),ue.spot2=new go.Spot(.85,.85),ue}),go.Shape.defineFigureGenerator("Nonagon",function(Fe,te,ee){var he=St(9),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<9;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),He(he),ue.spot1=new go.Spot(.17,.13),ue.spot2=new go.Spot(.82,.82),ue}),go.Shape.defineFigureGenerator("Decagon",function(Fe,te,ee){var he=St(10),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<10;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),He(he),ue.spot1=new go.Spot(.16,.16),ue.spot2=new go.Spot(.84,.84),ue}),go.Shape.defineFigureGenerator("Dodecagon",function(Fe,te,ee){var he=St(12),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<12;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),He(he),ue.spot1=new go.Spot(.16,.16),ue.spot2=new go.Spot(.84,.84),ue}),go.Shape.defineFigureGenerator("FivePointedStar",function(Fe,te,ee){var he=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()),He(he),ue.spot1=new go.Spot(.266,.333),ue.spot2=new go.Spot(.733,.733),ue}),go.Shape.defineFigureGenerator("SixPointedStar",function(Fe,te,ee){var he=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()),He(he),ue.spot1=new go.Spot(.17,.25),ue.spot2=new go.Spot(.83,.75),ue}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Fe,te,ee){var he=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()),He(he),ue.spot1=new go.Spot(.222,.277),ue.spot2=new go.Spot(.777,.666),ue}),go.Shape.defineFigureGenerator("EightPointedStar",function(Fe,te,ee){var he=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()),He(he),ue.spot1=new go.Spot(.25,.25),ue.spot2=new go.Spot(.75,.75),ue}),go.Shape.defineFigureGenerator("NinePointedStar",function(Fe,te,ee){var he=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()),He(he),ue.spot1=new go.Spot(.222,.277),ue.spot2=new go.Spot(.777,.666),ue}),go.Shape.defineFigureGenerator("TenPointedStar",function(Fe,te,ee){var he=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()),He(he),ue.spot1=new go.Spot(.281,.261),ue.spot2=new go.Spot(.723,.748),ue}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Fe,te,ee){var he=$e(5),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<he.length;me+=3)fe.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ee,he[me].x*te,he[me].y*ee,he[me+1].x*te,he[me+1].y*ee));return fe.segments.last().close(),He(he),ue.spot1=new go.Spot(.222,.277),ue.spot2=new go.Spot(.777,.777),ue}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Fe,te,ee){var he=$e(6),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<he.length;me+=3)fe.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ee,he[me].x*te,he[me].y*ee,he[me+1].x*te,he[me+1].y*ee));return fe.segments.last().close(),He(he),ue.spot1=new go.Spot(.17,.222),ue.spot2=new go.Spot(.833,.777),ue}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Fe,te,ee){var he=$e(7),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<he.length;me+=3)fe.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ee,he[me].x*te,he[me].y*ee,he[me+1].x*te,he[me+1].y*ee));return fe.segments.last().close(),He(he),ue.spot1=new go.Spot(.222,.222),ue.spot2=new go.Spot(.777,.777),ue}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Fe,te,ee){var he=$e(8),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<he.length;me+=3)fe.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ee,he[me].x*te,he[me].y*ee,he[me+1].x*te,he[me+1].y*ee));return fe.segments.last().close(),He(he),ue.spot1=new go.Spot(.222,.222),ue.spot2=new go.Spot(.777,.777),ue}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Fe,te,ee){var he=$e(9),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<he.length;me+=3)fe.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ee,he[me].x*te,he[me].y*ee,he[me+1].x*te,he[me+1].y*ee));return fe.segments.last().close(),He(he),ue.spot1=new go.Spot(.222,.222),ue.spot2=new go.Spot(.777,.777),ue}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Fe,te,ee){var he=$e(10),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<he.length;me+=3)fe.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ee,he[me].x*te,he[me].y*ee,he[me+1].x*te,he[me+1].y*ee));return fe.segments.last().close(),He(he),ue.spot1=new go.Spot(.222,.222),ue.spot2=new go.Spot(.777,.777),ue}),go.Shape.setFigureParameter("FramedRectangle",0,new We("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new We("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN,ue=Fe?Fe.parameter2:NaN;isNaN(he)&&(he=8),isNaN(ue)&&(ue=8);var fe=new go.Geometry,me=new go.PathFigure(0,0,!0);return fe.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he<te/2&&ue<ee/2&&(me.add(new go.PathSegment(go.PathSegment.Move,he,ue)),me.add(new go.PathSegment(go.PathSegment.Line,he,ee-ue)),me.add(new go.PathSegment(go.PathSegment.Line,te-he,ee-ue)),me.add(new go.PathSegment(go.PathSegment.Line,te-he,ue).close())),fe.setSpots(0,0,1,1,he,ue,-he,-ue),fe}),go.Shape.setFigureParameter("Ring",0,new We("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=8);var ue=te/2,fe=new go.Geometry,me=new go.PathFigure(te,te/2,!0);fe.add(me),me.add(new go.PathSegment(go.PathSegment.Arc,0,360,ue,ue,ue,ue).close());var be=Math.max(ue-he,0);return be>0&&(me.add(new go.PathSegment(go.PathSegment.Move,te/2+be,te/2)),me.add(new go.PathSegment(go.PathSegment.Arc,0,-360,ue,ue,be,be).close())),fe.spot1=Ve,fe.spot2=Te,fe.defaultStretch=go.GraphObject.Uniform,fe}),go.Shape.defineFigureGenerator("Cloud",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(.08034461*te,.1944299*ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*te,.05349299*ee,-.09239631*te,.07836421*ee,.1406031*te,-.0542823*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*te,.074219*ee,.2450511*te,-.00697547*ee,.3776197*te,-.01112067*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*te,.07004196*ee,.4539471*te,0,.6066018*te,-.02526587*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*te,.08370865*ee,.6914277*te,-.01904177*ee,.8921095*te,-.01220843*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*te,.3194596*ee,1.036446*te,.04105738*ee,1.020377*te,.3022052*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*te,.562044*ee,1.04448*te,.360238*ee,.992256*te,.5219009*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*te,.8217117*ee,1.032337*te,.5771781*ee,1.018411*te,.8120651*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*te,.9156953*ee,1.028411*te,.9571472*ee,.8556702*te,1.052487*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*te,.9310455*ee,.7431877*te,1.009325*ee,.5624123*te,1.021761*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*te,.9344623*ee,.4820677*te,1.031761*ee,.3030112*te,1.002796*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*te,.870098*ee,.2329994*te,1.01518*ee,.03213784*te,1.01518*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*te,.6545475*ee,-.02812061*te,.9032597*ee,-.01205169*te,.6835638*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*te,.4265613*ee,-.01812061*te,.6089503*ee,-.00606892*te,.4555777*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*te,.1944299*ee,-.01606892*te,.3892545*ee,-.01205169*te,.1944299*ee))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Fe,te,ee){var he=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(he*te,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,he*ee)).add(new go.PathSegment(go.PathSegment.Line,te,(1-he)*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,ee)).add(new go.PathSegment(go.PathSegment.Line,he*te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,(1-he)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,he*ee).close())).setSpots(he/2,he/2,1-he/2,1-he/2)}),go.Shape.setFigureParameter("Pie",0,new We("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new We("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN,ue=Fe?Fe.parameter2:NaN;isNaN(he)&&(he=0),isNaN(ue)&&(ue=315);var fe=he%360;fe<0&&(fe+=360);var me=ue%360,be=Math.min(te,ee)/2;return new go.Geometry().add(new go.PathFigure(be,be).add(new go.PathSegment(go.PathSegment.Arc,fe,me,be,be,be,be).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Fe,te,ee){var he=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 We("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=30);var ue=Math.min(he,te)/2,fe=te/2,me=ee/2;return new go.Geometry().add(new go.PathFigure(fe-ue,0,!0).add(new go.PathSegment(go.PathSegment.Line,fe+ue,0)).add(new go.PathSegment(go.PathSegment.Line,fe+ue,me-ue)).add(new go.PathSegment(go.PathSegment.Line,te,me-ue)).add(new go.PathSegment(go.PathSegment.Line,te,me+ue)).add(new go.PathSegment(go.PathSegment.Line,fe+ue,me+ue)).add(new go.PathSegment(go.PathSegment.Line,fe+ue,ee)).add(new go.PathSegment(go.PathSegment.Line,fe-ue,ee)).add(new go.PathSegment(go.PathSegment.Line,fe-ue,me+ue)).add(new go.PathSegment(go.PathSegment.Line,0,me+ue)).add(new go.PathSegment(go.PathSegment.Line,0,me-ue)).add(new go.PathSegment(go.PathSegment.Line,fe-ue,me-ue).close()))}),go.Shape.setFigureParameter("ThinCross",0,new We("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=10);var ue=Math.min(he,te)/2,fe=te/2,me=ee/2;return new go.Geometry().add(new go.PathFigure(fe-ue,0,!0).add(new go.PathSegment(go.PathSegment.Line,fe+ue,0)).add(new go.PathSegment(go.PathSegment.Line,fe+ue,me-ue)).add(new go.PathSegment(go.PathSegment.Line,te,me-ue)).add(new go.PathSegment(go.PathSegment.Line,te,me+ue)).add(new go.PathSegment(go.PathSegment.Line,fe+ue,me+ue)).add(new go.PathSegment(go.PathSegment.Line,fe+ue,ee)).add(new go.PathSegment(go.PathSegment.Line,fe-ue,ee)).add(new go.PathSegment(go.PathSegment.Line,fe-ue,me+ue)).add(new go.PathSegment(go.PathSegment.Line,0,me+ue)).add(new go.PathSegment(go.PathSegment.Line,0,me-ue)).add(new go.PathSegment(go.PathSegment.Line,fe-ue,me-ue).close()))}),go.Shape.setFigureParameter("ThickX",0,new We("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;if((isNaN(he)||he<0)&&(he=30),te===0||ee===0){var ue=new go.Geometry(go.Geometry.Rectangle);return ue.startX=0,ue.startY=0,ue.endX=te,ue.endY=ee,ue}else{var fe=te/2,me=ee/2,be=Math.atan2(ee,te),Ae=he-Math.min(Math.cos(be)*he/2,fe),De=he-Math.min(Math.sin(be)*he/2,me),ue=new go.Geometry,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 We("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=10);var ue=new go.Geometry,fe=new go.PathFigure(.1*te,0,!0);return ue.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,te,.1*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,.9*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.9*te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.1*te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee).close()),ue}),go.Shape.setFigureParameter("SquareIBeam",0,new We("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.2);var ue=new go.Geometry,fe=new go.PathFigure(0,0,!0);return ue.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,te,he*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,(.5+he/2)*te,he*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,(.5+he/2)*te,(1-he)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,(1-he)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,(1-he)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,(.5-he/2)*te,(1-he)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,(.5-he/2)*te,he*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,he*ee).close()),ue}),go.Shape.setFigureParameter("RoundedIBeam",0,new We("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.5);var ue=new go.Geometry,fe=new go.PathFigure(0,0,!0);return ue.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Bezier,te,ee,Math.abs(1-he)*te,.25*ee,Math.abs(1-he)*te,.75*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,he*te,.75*ee,he*te,.25*ee).close()),ue}),go.Shape.defineFigureGenerator("HalfEllipse",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,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(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,te,0,te,ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*te,.75*ee,.5*te,.25*ee).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(.5*te,ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ee,.1*te,.8*ee,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ee,0,0,.45*te,0)).add(new go.PathSegment(go.PathSegment.Bezier,te,.3*ee,.55*te,0,te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,.5*ee,.9*te,.8*ee).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(.5*te,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*te,.01*ee)).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,.6*te,.2*ee,te,.25*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.7*ee,te,.8*ee,.6*te,.8*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ee,.5*te,.75*ee,.55*te,.95*ee)).add(new go.PathSegment(go.PathSegment.Line,.25*te,ee)).add(new go.PathSegment(go.PathSegment.Bezier,.45*te,.7*ee,.45*te,.95*ee,.5*te,.75*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.4*te,.8*ee,0,.8*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.49*te,.01*ee,0,.25*ee,.4*te,.2*ee).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.4*te,.6*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.15*te,ee,.5*te,.75*ee,.45*te,.95*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.6*ee,.55*te,.95*ee,.5*te,.75*ee));var fe=.2,me=.3,be=0,Ae=fe*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(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*.5,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*.5,te*.5,te*.5,te*.5)),ue.add(new go.PathSegment(go.PathSegment.Arc,90,-180,te*.5,te*.75,te*.25,te*.25)),ue.add(new go.PathSegment(go.PathSegment.Arc,90,180,te*.5,te*.25,te*.25,te*.25));var fe=.1,me=.5,be=.25;return ue.add(new go.PathSegment(go.PathSegment.Move,(me+fe)*te,be*ee)),ue.add(new go.PathSegment(go.PathSegment.Arc,0,-360,te*me,ee*be,fe*te,fe*te).close()),ue=new go.PathFigure(te*.5,0,!1),he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*.5,te*.5,te*.5,te*.5)),be=.75,ue=new go.PathFigure((me+fe)*te,be*ee,!0),he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,0,360,te*me,ee*be,fe*te,fe*te).close()),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("Peace",function(Fe,te,ee){var he=.8535533905932737,ue=.5*te,fe=.5*ee;return new go.Geometry().add(new go.PathFigure(ue,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,ue,fe,ue,fe)).add(new go.PathSegment(go.PathSegment.Line,ue,ee)).add(new go.PathSegment(go.PathSegment.Move,ue,fe)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,he*ee)).add(new go.PathSegment(go.PathSegment.Move,ue,fe)).add(new go.PathSegment(go.PathSegment.Line,he*te,he*ee)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Fe,te,ee){var he=new go.Geometry,ue=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(),nt=oe(),Je=oe();ke(me,be-fe,me+ue,be-fe,me+fe,be-ue,me+fe,be,.42,De,Ye,nt,Je,Je);var ot=oe(),mt=oe(),it=oe();ke(me,be-fe,me+ue,be-fe,me+fe,be-ue,me+fe,be,.58,Je,Je,it,ot,mt);var vt=oe(),wt=oe(),Nt=oe();ke(me,be+fe,me-ue,be+fe,me-fe,be+ue,me-fe,be,.42,vt,wt,Nt,Je,Je);var Ht=oe(),Qt=oe(),Yt=oe();return ke(me,be+fe,me-ue,be+fe,me-fe,be+ue,me-fe,be,.58,Je,Je,Yt,Ht,Qt),Ae.add(new go.PathSegment(go.PathSegment.Move,Yt.x*te,Yt.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,be*ee,Ht.x*te,Ht.y*ee,Qt.x*te,Qt.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee,(me-ue)*te,(be-fe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,nt.x*te,nt.y*ee,De.x*te,De.y*ee,Ye.x*te,Ye.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,Yt.x*te,Yt.y*ee).close()),Ae.add(new go.PathSegment(go.PathSegment.Move,Nt.x*te,Nt.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,it.x*te,it.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,be*ee,ot.x*te,ot.y*ee,mt.x*te,mt.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee,(me+ue)*te,(be+fe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Nt.x*te,Nt.y*ee,vt.x*te,vt.y*ee,wt.x*te,wt.y*ee).close()),Pe(De),Pe(Ye),Pe(nt),Pe(Je),Pe(ot),Pe(mt),Pe(it),Pe(vt),Pe(wt),Pe(Nt),Pe(Ht),Pe(Qt),Pe(Yt),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("Fragile",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*te,0)).add(new go.PathSegment(go.PathSegment.Line,.2*te,.15*ee)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,.29*te,.33*ee)).add(new go.PathSegment(go.PathSegment.Line,.35*te,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.15*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.5*ee,te,.25*ee,.75*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)).add(new go.PathSegment(go.PathSegment.Line,.3*te,ee)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.45*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.5*ee,0,.25*ee).close()))}),go.Shape.setFigureParameter("HourGlass",0,new We("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=30),he>te&&(he=te);var ue=(te-he)/2,fe=ue+he;return new go.Geometry().add(new go.PathFigure(fe,.5*ee).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee)).add(new go.PathSegment(go.PathSegment.Line,ue,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,te,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,.55*ee).add(new go.PathSegment(go.PathSegment.Line,.6*te,0)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.45*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.45*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*te,ee)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.55*ee).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Fe,te,ee){var he=new go.Geometry,ue=Ge*.4,fe=.4,me=.5,be=.5,Ae=oe(),De=oe(),Ye=oe(),nt=oe(),Je=new go.PathFigure((me-fe)*te,be*ee,!1);he.add(Je),Je.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee,(me-ue)*te,(be-fe)*ee)),ke(me,be-fe,me+ue,be-fe,me+fe,be-ue,me+fe,be,.44,Ye,nt,De,Ae,Ae),Je.add(new go.PathSegment(go.PathSegment.Bezier,De.x*te,De.y*ee,Ye.x*te,Ye.y*ee,nt.x*te,nt.y*ee));var ot=ae(De.x,De.y);ke(me,be-fe,me+ue,be-fe,me+fe,be-ue,me+fe,be,.56,Ae,Ae,De,Ye,nt);var mt=ae(De.x,De.y);Je.add(new go.PathSegment(go.PathSegment.Line,(ot.x*.1+.95*.9)*te,ot.y*.1*ee)),Je.add(new go.PathSegment(go.PathSegment.Line,.85*te,ot.y*.1*ee)),Je.add(new go.PathSegment(go.PathSegment.Line,.85*te,0)),Je.add(new go.PathSegment(go.PathSegment.Line,te,0)),Je.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),Je.add(new go.PathSegment(go.PathSegment.Line,(mt.x*.1+.9)*te,.15*ee)),Je.add(new go.PathSegment(go.PathSegment.Line,(mt.x*.1+.9)*te,(mt.y*.1+.05*.9)*ee)),Je.add(new go.PathSegment(go.PathSegment.Line,mt.x*te,mt.y*ee)),Je.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,be*ee,Ye.x*te,Ye.y*ee,nt.x*te,nt.y*ee)),Je.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee,(me+ue)*te,(be+fe)*ee)),Je.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 it=new go.PathFigure(me*te,(be-fe)*ee,!1);he.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,be*ee,(me-ue)*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee)),it.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+fe)*ee,(me-fe)*te,(be+ue)*ee,(me-ue)*te,(be+fe)*ee)),it.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,be*ee,(me+ue)*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee)),it.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-fe)*ee,(me+fe)*te,(be-ue)*ee,(me+ue)*te,(be-fe)*ee));var vt=new go.PathFigure((me-fe)*te,be*ee,!1);return he.add(vt),Pe(Ae),Pe(De),Pe(Ye),Pe(nt),Pe(ot),Pe(mt),he.spot1=new go.Spot(.202,.257),he.spot2=new go.Spot(.792,.739),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("GenderFemale",function(Fe,te,ee){var he=new go.Geometry,ue=.375,fe=0,me=-.125,be=ue*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(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;return isNaN(he)&&(he=.2),new go.Geometry().add(new go.PathFigure((1-he)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;return isNaN(he)&&(he=.2),new go.Geometry().add(new go.PathFigure((1-he)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,he*te,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,he*te,ee))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)).add(new go.PathSegment(go.PathSegment.Line,te,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Fe,te,ee){var he=new go.Geometry().add(new go.PathFigure(.5*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*te,.5*ee,.5*te,.5*ee)));return he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("LogicTruth",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,.5*te,0)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Move,.5*te,ee)).add(new go.PathSegment(go.PathSegment.Line,.5*te,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ee))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,0,ee)).add(new go.PathSegment(go.PathSegment.Line,te,ee))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Fe,te,ee){var he=.5;return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,0,he*ee)).add(new go.PathSegment(go.PathSegment.Arc,180,180,he*te,he*ee,he*te,he*ee)).add(new go.PathSegment(go.PathSegment.Line,te,ee))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Fe,te,ee){var he=.5;return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,he*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,180,he*te,he*ee,he*te,he*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new We("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new We("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.3);var ue=Fe?Fe.parameter2:NaN;isNaN(ue)&&(ue=.3);var fe=(1-he)*te,me=(.5-ue/2)*ee,be=(.5+ue/2)*ee,Ae=new go.Geometry,De=new go.PathFigure(0,me,!0);Ae.add(De),De.add(new go.PathSegment(go.PathSegment.Line,fe,me)),De.add(new go.PathSegment(go.PathSegment.Line,fe,0)),De.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),De.add(new go.PathSegment(go.PathSegment.Line,fe,ee)),De.add(new go.PathSegment(go.PathSegment.Line,fe,be)),De.add(new go.PathSegment(go.PathSegment.Line,0,be).close()),Ae.spot1=new go.Spot(0,me/ee);var Ye=Ie(0,be/ee,1,be/ee,fe/te,1,1,.5,oe());return Ae.spot2=new go.Spot(Ye.x,Ye.y),Pe(Ye),Ae}),go.Shape.setFigureParameter("Arrow2",0,new We("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new We("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=30),he>te&&(he=te);var ue=Fe?Fe.parameter2:NaN;isNaN(ue)&&(ue=30),ue=Math.min(ue,ee/2);var fe=te-he,me=(ee-ue)/2,be=me+ue,Ae=new go.Geometry,De=new go.PathFigure(0,me,!0);Ae.add(De),De.add(new go.PathSegment(go.PathSegment.Line,fe,me)),De.add(new go.PathSegment(go.PathSegment.Line,fe,0)),De.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),De.add(new go.PathSegment(go.PathSegment.Line,fe,ee)),De.add(new go.PathSegment(go.PathSegment.Line,fe,be)),De.add(new go.PathSegment(go.PathSegment.Line,0,be).close()),Ae.spot1=new go.Spot(0,me/ee);var Ye=Ie(0,be/ee,1,be/ee,fe/te,1,1,.5,oe());return Ae.spot2=new go.Spot(Ye.x,Ye.y),Pe(Ye),Ae}),go.Shape.defineFigureGenerator("Chevron",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee).close()),he}),go.Shape.defineFigureGenerator("DoubleArrow",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.3*te,.214*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,1*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*te,1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*te,.786*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,1*ee).close()),he}),go.Shape.setFigureParameter("DoubleEndArrow",0,new We("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.3);var ue=(.5-he/2)*ee,fe=(.5+he/2)*ee,me=new go.Geometry,be=new go.PathFigure(te,.5*ee,!0);me.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,fe)),be.add(new go.PathSegment(go.PathSegment.Line,.3*te,fe)),be.add(new go.PathSegment(go.PathSegment.Line,.3*te,ee)),be.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),be.add(new go.PathSegment(go.PathSegment.Line,.3*te,ue)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ue)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close());var Ae=Ie(0,.5,.3,0,0,ue/ee,.1,ue/ee,oe());return me.spot1=new go.Spot(Ae.x,Ae.y),Ae=Ie(.7,1,1,.5,0,fe/ee,1,fe/ee,Ae),me.spot2=new go.Spot(Ae.x,Ae.y),Pe(Ae),me}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new We("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new We("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=40);var ue=Fe?Fe.parameter2:NaN;isNaN(ue)&&(ue=100);var fe=(ee-he)/2,me=fe+he,be=(ee-ue)/2,Ae=be+ue;(he>ee||ue>ee)&&(ue>he?(he=he*ee/ue,fe=(ee-he)/2,me=fe+he,be=0,Ae=ee):(fe=0,me=ee,be=0,Ae=ee));var De=new go.Geometry,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 nt=Ie(0,.5,.3,be/ee,0,fe/ee,1,fe/ee,oe());return De.spot1=new go.Spot(nt.x,nt.y),nt=Ie(.7,Ae/ee,1,.5,0,me/ee,1,me/ee,nt),De.spot2=new go.Spot(nt.x,nt.y),Pe(nt),De}),go.Shape.setFigureParameter("IBeamArrow",0,new We("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.3);var ue=(.5-he/2)*ee,fe=(.5+he/2)*ee,me=new go.Geometry,be=new go.PathFigure(te,.5*ee,!0);me.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,fe)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,fe)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),be.add(new go.PathSegment(go.PathSegment.Line,0,ee)),be.add(new go.PathSegment(go.PathSegment.Line,0,0)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,ue)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ue)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),me.spot1=new go.Spot(0,ue/ee);var Ae=Ie(.7,1,1,.5,0,fe/ee,1,fe/ee,oe());return me.spot2=new go.Spot(Ae.x,Ae.y),Pe(Ae),me}),go.Shape.setFigureParameter("IBeamArrow2",0,new We("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new We("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=40);var ue=Fe?Fe.parameter2:NaN;isNaN(ue)&&(ue=100);var fe=(ee-he)/2,me=fe+he,be=(ee-ue)/2,Ae=be+ue;(he>ee||ue>ee)&&(ue>he?(he=he*ee/ue,fe=(ee-he)/2,me=fe+he,be=0,Ae=ee):(fe=0,me=ee,be=0,Ae=ee));var De=new go.Geometry,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 nt=Ie(.7,Ae/ee,1,.5,0,me/ee,1,me/ee,oe());return De.spot2=new go.Spot(nt.x,nt.y),Pe(nt),De}),go.Shape.setFigureParameter("Pointer",0,new We("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.1);var ue=new go.Geometry,fe=new go.PathFigure(te,.5*ee,!0);ue.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,he*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),ue.spot1=new go.Spot(he,.35);var me=Ie(.2,.65,1,.65,0,1,1,.5,oe());return ue.spot2=new go.Spot(me.x,me.y),Pe(me),ue}),go.Shape.setFigureParameter("RoundedPointer",0,new We("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.3);var ue=new go.Geometry,fe=new go.PathFigure(te,.5*ee,!0);ue.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,he*te,.75*ee,he*te,.25*ee).close()),ue.spot1=new go.Spot(he,.35);var me=Ie(0,.65,1,.65,0,1,1,.5,oe());return ue.spot2=new go.Spot(me.x,me.y),Pe(me),ue}),go.Shape.setFigureParameter("SplitEndArrow",0,new We("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.4);var ue=(.5-he/2)*ee,fe=(.5+he/2)*ee,me=new go.Geometry,be=new go.PathFigure(te,.5*ee,!0);me.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,fe)),be.add(new go.PathSegment(go.PathSegment.Line,0,fe)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Line,0,ue)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ue)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),me.spot1=new go.Spot(.2,.3);var Ae=Ie(.7,1,1,.5,0,fe/ee,1,fe/ee,oe());return me.spot2=new go.Spot(Ae.x,Ae.y),Pe(Ae),me}),go.Shape.setFigureParameter("SplitEndArrow2",0,new We("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=50);var ue=(ee-he)/2,fe=ue+he;he>ee&&(ue=0,fe=ee);var me=new go.Geometry,be=new go.PathFigure(te,.5*ee,!0);me.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,fe)),be.add(new go.PathSegment(go.PathSegment.Line,0,fe)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Line,0,ue)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ue)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),me.spot1=new go.Spot(.2,ue/ee);var Ae=Ie(.7,1,1,.5,0,fe/ee,1,fe/ee,oe());return me.spot2=new go.Spot(Ae.x,Ae.y),Pe(Ae),me}),go.Shape.setFigureParameter("SquareArrow",0,new We("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.7);var ue=new go.Geometry,fe=new go.PathFigure(te,.5*ee,!0);return ue.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,he*te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,0)),fe.add(new go.PathSegment(go.PathSegment.Line,he*te,0).close()),ue.spot1=go.Spot.TopLeft,ue.spot2=new go.Spot(he,1),ue}),go.Shape.defineFigureGenerator("Cone1",function(Fe,te,ee){var he=new go.Geometry,ue=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(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.9*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ee,(1-.85/.9)*te,ee,.85/.9*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee).close());var fe=new go.PathFigure(0,.9*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ee,(1-.85/.9)*te,.8*ee,.85/.9*te,.8*ee)),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.82),he}),go.Shape.defineFigureGenerator("Cube1",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.5*te,ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var fe=new go.PathFigure(.5*te,ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.5*te,.3*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(.5,.85),he}),go.Shape.defineFigureGenerator("Cube2",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.3*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*te,0).close());var fe=new go.PathFigure(0,.3*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.7*te,.3*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Move,.7*te,.3*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(.7,1),he}),go.Shape.defineFigureGenerator("Cylinder1",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,ee/3);var ue=new go.Geometry,fe=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(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,ee/3);var ue=new go.Geometry,fe=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(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,te/3);var ue=new go.Geometry,fe=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(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,te/3);var ue=new go.Geometry,fe=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(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.25*te,.25*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var fe=new go.PathFigure(.25*te,.25*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),he.spot1=new go.Spot(.408,.172),he.spot2=new go.Spot(.833,.662),he}),go.Shape.defineFigureGenerator("Prism2",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.25*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var fe=new go.PathFigure(0,ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ee)),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("Pyramid1",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.5*te,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee).close());var fe=new go.PathFigure(.5*te,0,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),he.spot1=new go.Spot(.25,.367),he.spot2=new go.Spot(.75,.875),he}),go.Shape.defineFigureGenerator("Pyramid2",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.5*te,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var fe=new go.PathFigure(.5*te,0,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,.85*ee)),he.spot1=new go.Spot(.25,.367),he.spot2=new go.Spot(.75,.875),he}),go.Shape.defineFigureGenerator("Actor",function(Fe,te,ee){var he=new go.Geometry,ue=.2,fe=.1,me=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 nt=.05,Je=Ge*nt;Ae=.05,De=.25;var ot=new go.PathFigure(.5*te,.2*ee,!0);return he.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.95*te,.2*ee)),Ae=.95,De=.25,ot.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+nt)*te,De*ee,(Ae+Je)*te,(De-nt)*ee,(Ae+nt)*te,(De-Je)*ee)),ot.add(new go.PathSegment(go.PathSegment.Line,te,.6*ee)),ot.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ee)),ot.add(new go.PathSegment(go.PathSegment.Line,.85*te,.35*ee)),nt=.025,Je=Ge*nt,Ae=.825,De=.35,ot.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De-nt)*ee,(Ae+nt)*te,(De-Je)*ee,(Ae+Je)*te,(De-nt)*ee)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-nt)*te,De*ee,(Ae-Je)*te,(De-nt)*ee,(Ae-nt)*te,(De-Je)*ee)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*te,ee)),ot.add(new go.PathSegment(go.PathSegment.Line,.55*te,ee)),ot.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ee)),nt=.05,Je=Ge*nt,Ae=.5,De=.7,ot.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De-nt)*ee,(Ae+nt)*te,(De-Je)*ee,(Ae+Je)*te,(De-nt)*ee)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-nt)*te,De*ee,(Ae-Je)*te,(De-nt)*ee,(Ae-nt)*te,(De-Je)*ee)),ot.add(new go.PathSegment(go.PathSegment.Line,.45*te,ee)),ot.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),ot.add(new go.PathSegment(go.PathSegment.Line,.2*te,.35*ee)),nt=.025,Je=Ge*nt,Ae=.175,De=.35,ot.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De-nt)*ee,(Ae+nt)*te,(De-Je)*ee,(Ae+Je)*te,(De-nt)*ee)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-nt)*te,De*ee,(Ae-Je)*te,(De-nt)*ee,(Ae-nt)*te,(De-Je)*ee)),ot.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ee)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),nt=.05,Je=Ge*nt,Ae=.05,De=.25,ot.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De-nt)*ee,(Ae-nt)*te,(De-Je)*ee,(Ae-Je)*te,(De-nt)*ee)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ee)),he.spot1=new go.Spot(.2,.2),he.spot2=new go.Spot(.8,.65),he}),go.Shape.setFigureParameter("Card",0,new We("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.2);var ue=new go.Geometry,fe=new go.PathFigure(te,0,!0);return ue.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,he*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,he*te,0).close()),ue.spot1=new go.Spot(0,he),ue.spot2=go.Spot.BottomRight,ue}),go.Shape.defineFigureGenerator("Collate",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.5*te,.5*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee));var fe=new go.PathFigure(.5*te,.5*ee,!0);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),he.spot1=new go.Spot(.25,0),he.spot2=new go.Spot(.75,.25),he}),go.Shape.defineFigureGenerator("CreateRequest",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;isNaN(ue)&&(ue=.1);var fe=new go.PathFigure(0,0,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var me=new go.PathFigure(0,ue*ee,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,ue*ee)),me.add(new go.PathSegment(go.PathSegment.Move,0,(1-ue)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,(1-ue)*ee)),he}),go.Shape.defineFigureGenerator("Database",function(Fe,te,ee){var he=new go.Geometry,ue=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(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ee,te,0,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.9*ee,.25*te,.1*ee).close()),he.spot1=new go.Spot(.226,0),he.spot2=new go.Spot(.81,1),he}),go.Shape.defineFigureGenerator("DiskStorage",function(Fe,te,ee){var he=new go.Geometry,ue=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(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.25*te,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ee,te,0,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.25*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close()),he.spot1=new go.Spot(.25,0),he.spot2=new go.Spot(.75,1),he}),go.Shape.defineFigureGenerator("DividedEvent",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;isNaN(ue)?ue=.2:ue<.15&&(ue=.15);var fe=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(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;(isNaN(ue)||ue<.1)&&(ue=.1);var fe=new go.PathFigure(0,0,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var me=new go.PathFigure(0,ue*ee,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,ue*ee)),he}),go.Shape.defineFigureGenerator("Document",function(Fe,te,ee){var he=new go.Geometry;ee=ee/.8;var ue=new go.PathFigure(0,.7*ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*te,.4*ee,.5*te,ee).close()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(1,.6),he}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;(isNaN(ue)||ue<.2)&&(ue=.2);var fe=new go.PathFigure(0,0,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var me=new go.PathFigure(ue*te,0,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,0,ue*ee)),me.add(new go.PathSegment(go.PathSegment.Move,te,ue*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(1-ue)*te,0)),me.add(new go.PathSegment(go.PathSegment.Move,0,(1-ue)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,ue*te,ee)),me.add(new go.PathSegment(go.PathSegment.Move,(1-ue)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,(1-ue)*ee)),he}),go.Shape.defineFigureGenerator("ExternalProcess",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.5*te,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var fe=new go.PathFigure(.1*te,.4*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.9*te,.6*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.6*te,.1*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.1*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.4*te,.9*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.9*ee)),he.spot1=new go.Spot(.25,.25),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("File",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var fe=new go.PathFigure(.75*te,0,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("Interrupt",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te,.5*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee));var fe=new go.PathFigure(te,.5*ee,!1);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee));var me=new go.PathFigure(te,.5*ee,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("InternalStorage",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN,fe=Fe?Fe.parameter2:NaN;isNaN(ue)&&(ue=.1),isNaN(fe)&&(fe=.1);var me=new go.PathFigure(0,0,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var be=new go.PathFigure(ue*te,0,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,ue*te,ee)),be.add(new go.PathSegment(go.PathSegment.Move,0,fe*ee)),be.add(new go.PathSegment(go.PathSegment.Line,te,fe*ee)),he}),go.Shape.defineFigureGenerator("Junction",function(Fe,te,ee){var he=new go.Geometry,ue=1/Math.SQRT2,fe=(1-1/Math.SQRT2)/2,me=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(Fe,te,ee){var he=new go.Geometry;ee=ee/.8;var ue=new go.PathFigure(0,.7*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*te,.4*ee,.5*te,ee).close());var fe=new go.PathFigure(.1*te,0,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.1*te,.75*ee)),he.spot1=new go.Spot(.1,0),he.spot2=new go.Spot(1,.6),he}),go.Shape.defineFigureGenerator("LoopLimit",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee).close()),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("MagneticTape",function(Fe,te,ee){var he=new go.Geometry,ue=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(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee).close()),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("MessageFromUser",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;isNaN(ue)&&(ue=.7);var fe=new go.PathFigure(0,0,!0);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,ue*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he.spot1=go.Spot.TopLeft,he}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;isNaN(ue)&&(ue=.25);var fe=new go.PathFigure(0,0,!0);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,ue*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,(1-ue)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he}),go.Shape.defineFigureGenerator("MicroformRecording",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(1,.75),he}),go.Shape.defineFigureGenerator("MultiDocument",function(Fe,te,ee){var he=new go.Geometry;ee=ee/.8;var ue=new go.PathFigure(te,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.44*ee,.96*te,.47*ee,.93*te,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.54*ee,.86*te,.57*ee,.83*te,.55*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.4*te,.4*ee,.4*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,0).close());var fe=new go.PathFigure(.1*te,.2*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.54*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.1*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.44*ee)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.8,.77),he}),go.Shape.defineFigureGenerator("MultiProcess",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.1*te,.1*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ee).close());var fe=new go.PathFigure(.2*te,.1*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.1*te,.2*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ee)),he.spot1=new go.Spot(0,.2),he.spot2=new go.Spot(.8,1),he}),go.Shape.defineFigureGenerator("OfflineStorage",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;isNaN(ue)&&(ue=.1);var fe=1-ue,me=new go.PathFigure(0,0,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee).close());var be=new go.PathFigure(.5*ue*te,ue*ee,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,(1-.5*ue)*te,ue*ee)),he}),go.Shape.defineFigureGenerator("OffPageConnector",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(.75,1),he}),go.Shape.defineFigureGenerator("Or",function(Fe,te,ee){var he=new go.Geometry,ue=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(Fe,te,ee){var he=new go.Geometry;ee=ee/.8;var ue=new go.PathFigure(0,.7*ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.3*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te,.3*ee,.5*te,.6*ee,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*te,.4*ee,.5*te,ee).close()),he.spot1=new go.Spot(0,.49),he.spot2=new go.Spot(1,.75),he}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN,fe=Fe?Fe.parameter2:NaN;isNaN(ue)&&(ue=.1),isNaN(fe)&&(fe=.3);var me=new go.PathFigure(0,0,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,(1-fe)*te,.5*ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN,fe=Fe?Fe.parameter2:NaN;isNaN(ue)&&(ue=.1),isNaN(fe)&&(fe=.3);var me=new go.PathFigure(0,0,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,(1-fe)*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(1-fe)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he}),go.Shape.defineFigureGenerator("Procedure",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;isNaN(ue)&&(ue=.1);var fe=new go.PathFigure(0,0,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var me=new go.PathFigure((1-ue)*te,0,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,(1-ue)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Move,ue*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,ue*te,ee)),he}),go.Shape.defineFigureGenerator("Process",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;isNaN(ue)&&(ue=.1);var fe=new go.PathFigure(0,0,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var me=new go.PathFigure(ue*te,0,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ue*te,ee)),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("Sort",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.5*te,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var fe=new go.PathFigure(0,.5*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),he.spot1=new go.Spot(.25,.25),he.spot2=new go.Spot(.75,.5),he}),go.Shape.defineFigureGenerator("Start",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;isNaN(ue)&&(ue=.25);var fe=new go.PathFigure(ue*te,0,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ee,.25*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ee,.25*te,.5*ee));var me=new go.PathFigure(ue*te,0,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ue*te,ee)),me.add(new go.PathSegment(go.PathSegment.Move,(1-ue)*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,(1-ue)*te,ee)),he.spot1=new go.Spot(ue,0),he.spot2=new go.Spot(1-ue,1),he}),go.Shape.defineFigureGenerator("Terminator",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.25*te,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ee,.25*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ee,.25*te,.5*ee)),he.spot1=new go.Spot(.23,0),he.spot2=new go.Spot(.77,1),he}),go.Shape.defineFigureGenerator("TransmittalTape",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;isNaN(ue)&&(ue=.1);var fe=new go.PathFigure(0,0,!0);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.75*te,(1-ue)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,(1-ue)*ee).close()),he.spot1=go.Spot.TopLeft,he}),go.Shape.defineFigureGenerator("AndGate",function(Fe,te,ee){var he=new go.Geometry,ue=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(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("Clock",function(Fe,te,ee){var he=new go.Geometry,ue=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(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.5*te,0,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.3*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.4*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*te,ee)),he}),go.Shape.defineFigureGenerator("Inverter",function(Fe,te,ee){var he=new go.Geometry,ue=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(Fe,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 nt=new go.PathFigure((Ae+be)*te,De*ee,!0);return he.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De+be)*ee,(Ae+be)*te,(De+me)*ee,(Ae+me)*te,(De+be)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be)*te,De*ee,(Ae-me)*te,(De+be)*ee,(Ae-be)*te,(De+me)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De-be)*ee,(Ae-be)*te,(De-me)*ee,(Ae-me)*te,(De-be)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be)*te,De*ee,(Ae+me)*te,(De-be)*ee,(Ae+be)*te,(De-me)*ee)),he.spot1=new go.Spot(0,.05),he.spot2=new go.Spot(.55,.95),he}),go.Shape.defineFigureGenerator("NorGate",function(Fe,te,ee){var he=new go.Geometry,ue=.5,fe=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(Fe,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(Fe,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(Fe,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(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he}),go.Shape.defineFigureGenerator("Resistor",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.5*ee,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ee)),he}),go.Shape.defineFigureGenerator("Inductor",function(Fe,te,ee){var he=new go.Geometry,ue=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(Fe,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(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.75*ee,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he}),go.Shape.defineFigureGenerator("Diode",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te,0,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("Wifi",function(Fe,te,ee){var he=new go.Geometry,ue=te,fe=ee;te=te*.38,ee=ee*.6;var me=Ge*.8,be=.8,Ae=0,De=.5,Ye=(ue-te)/2,nt=(fe-ee)/2,Je=new go.PathFigure(Ae*te+Ye,(De+be)*ee+nt,!0);he.add(Je),Je.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be)*te+Ye,De*ee+nt,(Ae-me)*te+Ye,(De+be)*ee+nt,(Ae-be)*te+Ye,(De+me)*ee+nt)),Je.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Ye,(De-be)*ee+nt,(Ae-be)*te+Ye,(De-me)*ee+nt,(Ae-me)*te+Ye,(De-be)*ee+nt)),Je.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be+me*.5)*te+Ye,De*ee+nt,Ae*te+Ye,(De-be)*ee+nt,(Ae-be+me*.5)*te+Ye,(De-me)*ee+nt)),Je.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Ye,(De+be)*ee+nt,(Ae-be+me*.5)*te+Ye,(De+me)*ee+nt,Ae*te+Ye,(De+be)*ee+nt).close()),me=Ge*.4,be=.4,Ae=.2,De=.5;var ot=new go.PathFigure(Ae*te+Ye,(De+be)*ee+nt,!0);he.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be)*te+Ye,De*ee+nt,(Ae-me)*te+Ye,(De+be)*ee+nt,(Ae-be)*te+Ye,(De+me)*ee+nt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Ye,(De-be)*ee+nt,(Ae-be)*te+Ye,(De-me)*ee+nt,(Ae-me)*te+Ye,(De-be)*ee+nt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be+me*.5)*te+Ye,De*ee+nt,Ae*te+Ye,(De-be)*ee+nt,(Ae-be+me*.5)*te+Ye,(De-me)*ee+nt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Ye,(De+be)*ee+nt,(Ae-be+me*.5)*te+Ye,(De+me)*ee+nt,Ae*te+Ye,(De+be)*ee+nt).close()),me=Ge*.2,be=.2,Ae=.5,De=.5;var mt=new go.PathFigure((Ae-be)*te+Ye,De*ee+nt,!0);he.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Ye,(De-be)*ee+nt,(Ae-be)*te+Ye,(De-me)*ee+nt,(Ae-me)*te+Ye,(De-be)*ee+nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be)*te+Ye,De*ee+nt,(Ae+me)*te+Ye,(De-be)*ee+nt,(Ae+be)*te+Ye,(De-me)*ee+nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Ye,(De+be)*ee+nt,(Ae+be)*te+Ye,(De+me)*ee+nt,(Ae+me)*te+Ye,(De+be)*ee+nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be)*te+Ye,De*ee+nt,(Ae-me)*te+Ye,(De+be)*ee+nt,(Ae-be)*te+Ye,(De+me)*ee+nt)),me=Ge*.4,be=.4,Ae=.8,De=.5;var it=new go.PathFigure(Ae*te+Ye,(De-be)*ee+nt,!0);he.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be)*te+Ye,De*ee+nt,(Ae+me)*te+Ye,(De-be)*ee+nt,(Ae+be)*te+Ye,(De-me)*ee+nt)),it.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Ye,(De+be)*ee+nt,(Ae+be)*te+Ye,(De+me)*ee+nt,(Ae+me)*te+Ye,(De+be)*ee+nt)),it.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be-me*.5)*te+Ye,De*ee+nt,Ae*te+Ye,(De+be)*ee+nt,(Ae+be-me*.5)*te+Ye,(De+me)*ee+nt)),it.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Ye,(De-be)*ee+nt,(Ae+be-me*.5)*te+Ye,(De-me)*ee+nt,Ae*te+Ye,(De-be)*ee+nt).close()),me=Ge*.8,be=.8,Ae=1,De=.5;var vt=new go.PathFigure(Ae*te+Ye,(De-be)*ee+nt,!0);return he.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be)*te+Ye,De*ee+nt,(Ae+me)*te+Ye,(De-be)*ee+nt,(Ae+be)*te+Ye,(De-me)*ee+nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Ye,(De+be)*ee+nt,(Ae+be)*te+Ye,(De+me)*ee+nt,(Ae+me)*te+Ye,(De+be)*ee+nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be-me*.5)*te+Ye,De*ee+nt,Ae*te+Ye,(De+be)*ee+nt,(Ae+be-me*.5)*te+Ye,(De+me)*ee+nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Ye,(De-be)*ee+nt,(Ae+be-me*.5)*te+Ye,(De-me)*ee+nt,Ae*te+Ye,(De-be)*ee+nt).close()),he}),go.Shape.defineFigureGenerator("Email",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var fe=new go.PathFigure(0,0,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Move,0,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.45*te,.54*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.54*ee)),he}),go.Shape.defineFigureGenerator("Ethernet",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.35*te,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.65*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.35*te,0).close());var fe=new go.PathFigure(.1*te,ee,!0,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.4*te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.6*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.1*te,ee).close());var me=new go.PathFigure(.6*te,ee,!0,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.6*te,.6*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.6*te,ee).close());var be=new go.PathFigure(0,.5*ee,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ee)),be.add(new go.PathSegment(go.PathSegment.Move,.75*te,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.75*te,.6*ee)),be.add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.25*te,.6*ee)),he}),go.Shape.defineFigureGenerator("Power",function(Fe,te,ee){var he=new go.Geometry,ue=Ge*.4,fe=.4,me=.5,be=.5,Ae=oe(),De=oe(),Ye=oe(),nt=oe();ke(me,be-fe,me+ue,be-fe,me+fe,be-ue,me+fe,be,.5,Ae,Ae,De,Ye,nt);var Je=ae(De.x,De.y),ot=new go.PathFigure(De.x*te,De.y*ee,!0);he.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,be*ee,Ye.x*te,Ye.y*ee,nt.x*te,nt.y*ee)),ot.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee,(me+ue)*te,(be+fe)*ee)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,be*ee,(me-ue)*te,(be+fe)*ee,(me-fe)*te,(be+ue)*ee)),ke(me-fe,be,me-fe,be-ue,me-ue,be-fe,me,be-fe,.5,Ye,nt,De,Ae,Ae),ot.add(new go.PathSegment(go.PathSegment.Bezier,De.x*te,De.y*ee,Ye.x*te,Ye.y*ee,nt.x*te,nt.y*ee)),ue=Ge*.3,fe=.3,ke(me-fe,be,me-fe,be-ue,me-ue,be-fe,me,be-fe,.5,Ye,nt,De,Ae,Ae),ot.add(new go.PathSegment(go.PathSegment.Line,De.x*te,De.y*ee)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,be*ee,nt.x*te,nt.y*ee,Ye.x*te,Ye.y*ee)),ot.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+fe)*ee,(me-fe)*te,(be+ue)*ee,(me-ue)*te,(be+fe)*ee)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,be*ee,(me+ue)*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee)),ke(me,be-fe,me+ue,be-fe,me+fe,be-ue,me+fe,be,.5,Ae,Ae,De,Ye,nt),ot.add(new go.PathSegment(go.PathSegment.Bezier,De.x*te,De.y*ee,nt.x*te,nt.y*ee,Ye.x*te,Ye.y*ee).close());var ot=new go.PathFigure(.45*te,0,!0);return he.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ee)),ot.add(new go.PathSegment(go.PathSegment.Line,.55*te,.5*ee)),ot.add(new go.PathSegment(go.PathSegment.Line,.55*te,0).close()),Pe(Ae),Pe(De),Pe(Ye),Pe(nt),Pe(Je),he.spot1=new go.Spot(.25,.45),he.spot2=new go.Spot(.75,.8),he}),go.Shape.defineFigureGenerator("Fallout",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,ee/2,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,180,360,te/2,ee/2,te/2,ee/2));function fe(me,be,Ae){me.add(new go.PathSegment(go.PathSegment.Move,(.3+be)*te,(.8+Ae)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(.5+be)*te,(.5+Ae)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(.1+be)*te,(.5+Ae)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(.3+be)*te,(.8+Ae)*ee).close())}return fe(ue,0,0),fe(ue,.4,0),fe(ue,.2,-.3),he}),go.Shape.defineFigureGenerator("IrritationHazard",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.2*te,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close()),he.spot1=new go.Spot(.3,.3),he.spot2=new go.Spot(.7,.7),he}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.37*te,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.11*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.77*te,.04*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.33*te,.49*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.37*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.63*te,.86*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.77*te,.91*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.34*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.34*te,.78*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.44*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*te,.56*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee).close()),he}),go.Shape.defineFigureGenerator("FireHazard",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.1*te,ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.29*te,0,-.25*te,.63*ee,.45*te,.44*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.51*te,.42*ee,.48*te,.17*ee,.54*te,.35*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.59*te,.18*ee,.59*te,.29*ee,.58*te,.28*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,.6*ee,.8*te,.34*ee,.88*te,.43*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.88*te,.31*ee,.87*te,.48*ee,.88*te,.43*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ee,1.17*te,.76*ee,.82*te,.8*ee).close()),he.spot1=new go.Spot(.07,.445),he.spot2=new go.Spot(.884,.958),he}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Fe,te,ee){var he=new go.Geometry,ue=.5,fe=0,me=0,be=ue*Ge,Ae=.4*Math.SQRT2/2+.5,De=.5-.5*Math.SQRT2/2,Ye=1,nt=.5,Je=.5,ot=0,mt=new go.PathFigure(Ae*te,(1-De)*ee,!1);return he.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,Ye*te,nt*ee,Ye*te,.7*ee,Ye*te,nt*ee)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(Je+fe)*te,(ot+fe)*ee,(.5+ue+fe)*te,(.5-be+fe)*ee,(.5+be+fe)*te,(.5-ue+fe)*ee)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ue+fe)*te,(.5+me)*ee,(.5-be+fe)*te,(.5-ue+me)*ee,(.5-ue+fe)*te,(.5-be+me)*ee)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(.35+fe)*te,.9*ee,(.5-ue+fe)*te,(.5+be+me)*ee,(.5-be+fe)*te,.9*ee)),mt.add(new go.PathSegment(go.PathSegment.Move,(.25+fe)*te,.8*ee)),mt.add(new go.PathSegment(go.PathSegment.Line,(.35+fe)*te,.9*ee)),mt.add(new go.PathSegment(go.PathSegment.Line,(.2+fe)*te,.95*ee)),he}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!1);he.add(ue);var fe=new go.PathFigure(te,ee,!1);he.add(fe);var me=new go.PathFigure(0,.5*ee,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ee,.2*te,.35*ee,.3*te,.35*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,.7*te,.65*ee,.8*te,.65*ee)),he}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.5*ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee).close()),he}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.2*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee).close());var ue=new go.PathFigure(0,.2*ee,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee)),he}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.7*te,ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.3*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,0,.6*te,.5*ee,0,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*te,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,ee,.4*te,.5*ee,te,.5*ee).close());var fe=new go.PathFigure(.45*te,.73*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.7*te,.73*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.38*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.63*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.31*te,.27*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.56*te,.27*ee)),he}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!1);he.add(ue);var fe=new go.PathFigure(.335*te,(1-.555)*ee,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,te,.68*ee,(1-.12)*te,.46*ee,(1-.02)*te,.54*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,.335*te,(1-.555)*ee,.02*te,.54*ee,.12*te,.46*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.365*te,(1-.595)*ee));var me=.5-.285,be=.5,Ae=me,De=Math.PI/4,Ye=4*(1-Math.cos(De))/(3*Math.sin(De)),nt=Ye*.5,Je=me,ot=me,mt=Ye*Je,it=Ye*ot;fe.add(new go.PathSegment(go.PathSegment.Bezier,(be-Je)*te,Ae*ee,(be-(mt+Je)/2)*te,(Ae+(ot+it)/2)*ee,(be-Je)*te,(Ae+it)*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Ae-ot)*ee,(be-Je)*te,(Ae-it)*ee,(be-mt)*te,(Ae-ot)*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(be+Je)*te,Ae*ee,(be+mt)*te,(Ae-ot)*ee,(be+Je)*te,(Ae-it)*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*te,(1-.595)*ee,(be+Je)*te,(Ae+it)*ee,(be+(mt+Je)/2)*te,(Ae+(ot+it)/2)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*te,(1-.595)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ee));var vt=new go.PathFigure(.2*te,ee,!1);he.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.2*te,.8*ee));var wt=new go.PathFigure(.8*te,ee,!1);return he.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ee)),he}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.1*te,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,ee).close());var fe=new go.PathFigure(.2*te,.2*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.8*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ee)),he}),go.Shape.defineFigureGenerator("BpmnEventError",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.66*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.66*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.33*te,.5*ee).close()),he}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!1);he.add(ue);var fe=new go.PathFigure(te,ee,!1);he.add(fe);var me=new go.PathFigure(.1*te,ee,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee).close()),he}),go.Shape.defineFigureGenerator("Caution",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.05*te,ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.8*ee,0,ee,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.45*te,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.1*ee,.5*te,0,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.95*te,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ee,te,ee,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.05*te,ee));var fe=.05;return ue.add(new go.PathSegment(go.PathSegment.Move,(.5-fe)*te,.875*ee)),ue.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*te,.875*ee,fe*te,fe*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*te,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.325*ee,.575*te,.725*ee,.625*te,.375*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.75*ee,.375*te,.375*ee,.425*te,.725*ee)),he}),go.Shape.defineFigureGenerator("Recycle",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.45*te,.95*ee,!1);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,.95*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.185*te,.85*ee,.17*te,.95*ee,.15*te,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.235*te,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*te,.625*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.35*te,.65*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.275*te,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.05*te,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.05*te,.575*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.1875*te,.95*ee,0,.675*ee,0,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.45*te,.95*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.45*te,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.22*te,.775*ee));var fe=new go.PathFigure(.475*te,.2*ee,!1);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.225*te,.3*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.275*te,.175*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.325*te,.05*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.05*ee,.35*te,0,.375*te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,.575*te,.375*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.525*te,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.75*te,.475*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.85*te,.315*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.32*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.65*te,.05*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,0,.65*te,.05*ee,.625*te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,.38*te,.0105*ee));var me=new go.PathFigure(.675*te,.575*ee,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.875*te,.525*ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,.775*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,.85*te,.95*ee,te,.8*ee,te,.85*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,.95*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.85*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,.725*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,.775*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.7*te,.775*ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,.775*ee)),me.add(new go.PathSegment(go.PathSegment.Move,.675*te,.575*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.775*te,.775*ee)),he}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Fe,te,ee){var he=new go.Geometry,ue=.5,fe=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(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.15*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var fe=new go.PathFigure(0,.15*ee,!0);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,0,0)),fe.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,.65*te,.15*ee).close()),he.spot1=new go.Spot(0,.1),he.spot2=new go.Spot(1,1),he}),go.Shape.defineFigureGenerator("Class",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var fe=new go.PathFigure(0,.2*ee,!1);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee).close());var me=new go.PathFigure(0,.5*ee,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee).close()),he}),go.Shape.defineFigureGenerator("Component",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te,ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee).close());var fe=new go.PathFigure(0,.2*ee,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.45*te,.2*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close());var me=new go.PathFigure(0,.6*ee,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.45*te,.6*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.45*te,.8*ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee).close()),he}),go.Shape.defineFigureGenerator("Boat Shipment",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.15*te,.6*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ee));var fe=new go.PathFigure(.15*te,.6*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ee)),he}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te,ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.66*te,.33*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.66*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.33*te,.33*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee).close()),he}),go.Shape.defineFigureGenerator("Workcell",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.35*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he}),go.Shape.defineFigureGenerator("Supermarket",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.33*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,te,.33*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.66*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.66*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,te,.66*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),he}),go.Shape.defineFigureGenerator("TruckShipment",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var fe=new go.PathFigure(te,.8*ee,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee).close());var me=.1,be=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 nt=new go.PathFigure((Ae-me)*te,De*ee,!0);return he.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De-me)*ee,(Ae-me)*te,(De-be)*ee,(Ae-be)*te,(De-me)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+me)*te,De*ee,(Ae+be)*te,(De-me)*ee,(Ae+me)*te,(De-be)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(De+me)*ee,(Ae+me)*te,(De+be)*ee,(Ae+be)*te,(De+me)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-me)*te,De*ee,(Ae-be)*te,(De+me)*ee,(Ae-me)*te,(De+be)*ee).close()),he}),go.Shape.defineFigureGenerator("KanbanPost",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.2*te,0,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,ee)),he}),go.Shape.defineFigureGenerator("Forklift",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0));var fe=new go.PathFigure(0,.5*ee,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var me=new go.PathFigure(.5*te,.8*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,.1*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.1*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.8*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ee));var be=new go.PathFigure(.5*te,.7*ee,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee));var Ae=.1,De=Ge*.1,Ye=.1,nt=.9,Je=new go.PathFigure((Ye-Ae)*te,nt*ee,!0);he.add(Je),Je.add(new go.PathSegment(go.PathSegment.Bezier,Ye*te,(nt-Ae)*ee,(Ye-Ae)*te,(nt-De)*ee,(Ye-De)*te,(nt-Ae)*ee)),Je.add(new go.PathSegment(go.PathSegment.Bezier,(Ye+Ae)*te,nt*ee,(Ye+De)*te,(nt-Ae)*ee,(Ye+Ae)*te,(nt-De)*ee)),Je.add(new go.PathSegment(go.PathSegment.Bezier,Ye*te,(nt+Ae)*ee,(Ye+Ae)*te,(nt+De)*ee,(Ye+De)*te,(nt+Ae)*ee)),Je.add(new go.PathSegment(go.PathSegment.Bezier,(Ye-Ae)*te,nt*ee,(Ye-De)*te,(nt+Ae)*ee,(Ye-Ae)*te,(nt+De)*ee)),Ae=.1,De=Ge*.1,Ye=.4,nt=.9;var ot=new go.PathFigure((Ye-Ae)*te,nt*ee,!0);return he.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,Ye*te,(nt-Ae)*ee,(Ye-Ae)*te,(nt-De)*ee,(Ye-De)*te,(nt-Ae)*ee)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Ye+Ae)*te,nt*ee,(Ye+De)*te,(nt-Ae)*ee,(Ye+Ae)*te,(nt-De)*ee)),ot.add(new go.PathSegment(go.PathSegment.Bezier,Ye*te,(nt+Ae)*ee,(Ye+Ae)*te,(nt+De)*ee,(Ye+De)*te,(nt+Ae)*ee)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Ye-Ae)*te,nt*ee,(Ye-De)*te,(nt+Ae)*ee,(Ye-Ae)*te,(nt+De)*ee)),he}),go.Shape.defineFigureGenerator("RailShipment",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.1*te,.4*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.45*te,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,.4*ee).close());var fe=new go.PathFigure(.45*te,.7*ee,!1);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ee));var me=new go.PathFigure(.55*te,.4*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.4*ee).close());var Ye=.05,nt=Ge*.05,Je=.175,ot=.95,be=new go.PathFigure((Je-Ye)*te,ot*ee,!0);he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,Je*te,(ot-Ye)*ee,(Je-Ye)*te,(ot-nt)*ee,(Je-nt)*te,(ot-Ye)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(Je+Ye)*te,ot*ee,(Je+nt)*te,(ot-Ye)*ee,(Je+Ye)*te,(ot-nt)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,Je*te,(ot+Ye)*ee,(Je+Ye)*te,(ot+nt)*ee,(Je+nt)*te,(ot+Ye)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(Je-Ye)*te,ot*ee,(Je-nt)*te,(ot+Ye)*ee,(Je-Ye)*te,(ot+nt)*ee));var Ye=.05,nt=Ge*.05,Je=.375,ot=.95,Ae=new go.PathFigure((Je-Ye)*te,ot*ee,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Je*te,(ot-Ye)*ee,(Je-Ye)*te,(ot-nt)*ee,(Je-nt)*te,(ot-Ye)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Je+Ye)*te,ot*ee,(Je+nt)*te,(ot-Ye)*ee,(Je+Ye)*te,(ot-nt)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Je*te,(ot+Ye)*ee,(Je+Ye)*te,(ot+nt)*ee,(Je+nt)*te,(ot+Ye)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Je-Ye)*te,ot*ee,(Je-nt)*te,(ot+Ye)*ee,(Je-Ye)*te,(ot+nt)*ee));var Ye=.05,nt=Ge*.05,Je=.625,ot=.95,De=new go.PathFigure((Je-Ye)*te,ot*ee,!0);he.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,Je*te,(ot-Ye)*ee,(Je-Ye)*te,(ot-nt)*ee,(Je-nt)*te,(ot-Ye)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Je+Ye)*te,ot*ee,(Je+nt)*te,(ot-Ye)*ee,(Je+Ye)*te,(ot-nt)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,Je*te,(ot+Ye)*ee,(Je+Ye)*te,(ot+nt)*ee,(Je+nt)*te,(ot+Ye)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Je-Ye)*te,ot*ee,(Je-nt)*te,(ot+Ye)*ee,(Je-Ye)*te,(ot+nt)*ee));var Ye=.05,nt=Ge*.05,Je=.825,ot=.95,mt=new go.PathFigure((Je-Ye)*te,ot*ee,!0);he.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,Je*te,(ot-Ye)*ee,(Je-Ye)*te,(ot-nt)*ee,(Je-nt)*te,(ot-Ye)*ee)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(Je+Ye)*te,ot*ee,(Je+nt)*te,(ot-Ye)*ee,(Je+Ye)*te,(ot-nt)*ee)),mt.add(new go.PathSegment(go.PathSegment.Bezier,Je*te,(ot+Ye)*ee,(Je+Ye)*te,(ot+nt)*ee,(Je+nt)*te,(ot+Ye)*ee)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(Je-Ye)*te,ot*ee,(Je-nt)*te,(ot+Ye)*ee,(Je-Ye)*te,(ot+nt)*ee).close());var it=new go.PathFigure(0,ee,!1);return he.add(it),it.add(new go.PathSegment(go.PathSegment.Line,te,ee).close()),he}),go.Shape.defineFigureGenerator("Warehouse",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var fe=new go.PathFigure(0,.2*ee,!1);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee).close());var me=new go.PathFigure(.15*te,ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.15*te,.5*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.4*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.15*te,ee).close());var be=.05,Ae=Ge*.05,De=.35,Ye=.775,nt=new go.PathFigure((De-be)*te,Ye*ee,!0);return he.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,De*te,(Ye-be)*ee,(De-be)*te,(Ye-Ae)*ee,(De-Ae)*te,(Ye-be)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(De+be)*te,Ye*ee,(De+Ae)*te,(Ye-be)*ee,(De+be)*te,(Ye-Ae)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,De*te,(Ye+be)*ee,(De+be)*te,(Ye+Ae)*ee,(De+Ae)*te,(Ye+be)*ee)),nt.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(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.1*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee).close()),he}),go.Shape.defineFigureGenerator("Bluetooth",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.75*ee,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),he}),go.Shape.defineFigureGenerator("Bookmark",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ee)),he}),go.Shape.defineFigureGenerator("Bookmark",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ee)),he}),go.Shape.defineFigureGenerator("Globe",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.5*te,0,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,.75*te,0,te,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,.75*ee,.75*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.25*te,ee,0,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,.25*ee,.25*te,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,.15*te,.25*ee,.15*te,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.85*te,.75*ee,.85*te,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.15*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.15*ee,.35*te,.3*ee,.65*te,.3*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.85*ee,.35*te,.7*ee,.65*te,.7*ee)),he}),go.Shape.defineFigureGenerator("Wave",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.25*ee,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.25*ee,.1*te,0,.2*te,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.25*ee,.425*te,.5*ee,.575*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te,.25*ee,.8*te,0,.9*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.75*ee,.1*te,.5*ee,.2*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.75*ee,.425*te,ee,.575*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te,.75*ee,.8*te,.5*ee,.9*te,.5*ee)),he}),go.Shape.defineFigureGenerator("Operator",function(Fe,te,ee){var he=new go.Geometry,ue=.3,fe=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(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.5*te,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ee,.65*te,.3*ee,.65*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.35*te,.5*ee,.35*te,.3*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.3*te,.6*ee,.1*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ee,.2*te,ee,.35*te,.95*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te,ee,.7*te,.6*ee,.9*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ee,.8*te,ee,.65*te,.95*ee)),he}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,0,.075*ee,0,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ee,0,ee,.4*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.4*ee,.8*te,ee,.85*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),he}),go.Shape.defineFigureGenerator("Battery",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.4*te,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*te,.1*ee));var fe=new go.PathFigure(0,.6*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Move,0,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,.4*ee)),he}),go.Shape.defineFigureGenerator("Delete",function(Fe,te,ee){var he=new go.Geometry,ue=.5,fe=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(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.1*ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,0,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.1*ee,.15*te,0,.35*te,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ee,.65*te,.2*ee,.85*te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ee,.85*te,.6*ee,.65*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.35*te,.4*ee,.15*te,.4*ee).close()),he}),go.Shape.defineFigureGenerator("Help",function(Fe,te,ee){var he=new go.Geometry,ue=.5,fe=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(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(.5*te,ee,!0).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.975*te,.025*ee,.5*te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*te,.5*ee,.5*te,0,.025*te,.025*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.5*te,.2*ee)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*te,.3*ee,.1*te,.1*ee).close()))}),go.Shape.defineFigureGenerator("Lock",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.5*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var fe=new go.PathFigure(.2*te,.5*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ee,.25*te,0,.75*te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.3*ee)),he}),go.Shape.defineFigureGenerator("Unlocked",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.5*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var fe=new go.PathFigure(.2*te,.5*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ee,.25*te,0,.75*te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.35*ee)),he}),go.Shape.defineFigureGenerator("Gear",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(.9375*te,.56246875*ee,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*te,.4375*ee)).add(new go.PathSegment(go.PathSegment.Line,.80621875*te,.4375*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.763*te,.3316875*ee,.79840625*te,.39915625*ee,.7834375*te,.3635*ee)).add(new go.PathSegment(go.PathSegment.Line,.8566875*te,.23796875*ee)).add(new go.PathSegment(go.PathSegment.Line,.76825*te,.14959375*ee)).add(new go.PathSegment(go.PathSegment.Line,.67596875*te,.24184375*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*te,.19378125*ee,.64228125*te,.2188125*ee,.603875*te,.2021875*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.0625*ee)).add(new go.PathSegment(go.PathSegment.Line,.4375*te,.0625*ee)).add(new go.PathSegment(go.PathSegment.Line,.4375*te,.19378125*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*te,.239375*ee,.39759375*te,.20190625*ee,.36053125*te,.2176875*ee)).add(new go.PathSegment(go.PathSegment.Line,.2379375*te,.14959375*ee)).add(new go.PathSegment(go.PathSegment.Line,.14953125*te,.2379375*ee)).add(new go.PathSegment(go.PathSegment.Line,.23934375*te,.3278125*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*te,.4375*ee,.21765625*te,.36059375*ee,.201875*te,.397625*ee)).add(new go.PathSegment(go.PathSegment.Line,.0625*te,.4375*ee)).add(new go.PathSegment(go.PathSegment.Line,.0625*te,.5625*ee)).add(new go.PathSegment(go.PathSegment.Line,.1938125*te,.5625*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*te,.67596875*ee,.20221875*te,.603875*ee,.21884375*te,.64228125*ee)).add(new go.PathSegment(go.PathSegment.Line,.1495625*te,.76825*ee)).add(new go.PathSegment(go.PathSegment.Line,.238*te,.8566875*ee)).add(new go.PathSegment(go.PathSegment.Line,.3316875*te,.76296875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*te,.80621875*ee,.36353125*te,.78340625*ee,.3991875*te,.79840625*ee)).add(new go.PathSegment(go.PathSegment.Line,.43753125*te,.9375*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.9375*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.80621875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*te,.760625*ee,.602375*te,.79809375*ee,.63946875*te,.78234375*ee)).add(new go.PathSegment(go.PathSegment.Line,.76828125*te,.8566875*ee)).add(new go.PathSegment(go.PathSegment.Line,.85671875*te,.76825*ee)).add(new go.PathSegment(go.PathSegment.Line,.76065625*te,.67221875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*te,.56246875*ee,.78234375*te,.63940625*ee,.798125*te,.602375*ee)).add(new go.PathSegment(go.PathSegment.Line,.9375*te,.56246875*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.5*te,.6*ee)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*te,.5*ee,.1*te,.1*ee).close()))}),go.Shape.defineFigureGenerator("Hand",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.5*ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.3*ee,0,.375*ee,.05*te,.325*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.45*te,.075*ee,.3*te,.225*ee,.4*te,.175*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.525*te,.075*ee,.46*te,.05*ee,.525*te,.05*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.4*ee,.525*te,.275*ee,.475*te,.325*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.55*ee,te,.4*ee,te,.55*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.425*te,.55*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*te,.55*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.7*ee,.675*te,.55*ee,.675*te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.575*te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,.85*ee,.65*te,.7*ee,.65*te,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*te,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.535*te,ee,.61*te,.85*ee,.61*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,.435*te,ee,0,ee).close()),he}),go.Shape.defineFigureGenerator("Map",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.2*ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ue.add(new go.PathSegment(go.PathSegment.Move,.25*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.75*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ee)),he}),go.Shape.defineFigureGenerator("Eject",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee*.7)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee*.7).close());var fe=new go.PathFigure(0,ee*.6,!0);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,.6*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,0).close()),he}),go.Shape.defineFigureGenerator("Pencil",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*te,ee)).add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ee).close()))}),go.Shape.defineFigureGenerator("Building",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*1,ee*1,!1);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee*.85)),ue.add(new go.PathSegment(go.PathSegment.Line,.046*te,ee*.85)),ue.add(new go.PathSegment(go.PathSegment.Line,.046*te,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee*.3)),ue.add(new go.PathSegment(go.PathSegment.Line,.046*te,ee*.3)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ee*.3)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee*.3)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ee*.85)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee*.85).close());var fe=new go.PathFigure(.126*te,.85*ee,!1);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.126*te,.45*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.322*te,.45*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.322*te,.85*ee).close());var me=new go.PathFigure(.402*te,.85*ee,!1);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.402*te,.45*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.598*te,.45*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.598*te,.85*ee).close());var be=new go.PathFigure(.678*te,.85*ee,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.678*te,.45*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.874*te,.45*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.874*te,.85*ee).close());var Ae=new go.PathFigure(.5*te,.1*ee,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*te,.3*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*te,.3*ee).close()),he}),go.Shape.defineFigureGenerator("Staircase",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,ee*1,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te*.2,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.2,ee*.8)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.8)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.6)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.6)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.4)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*.4)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*.2)),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.2)),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.15)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.15)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.35)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.35)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.55)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*.55)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.15,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.15,ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee*.95).close()),he}),go.Shape.defineFigureGenerator("5Bars",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,ee*1,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te*.184,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.184,ee*(1-.184)).close());var fe=new go.PathFigure(te*.204,ee,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te*.204,ee*(1-.184))),fe.add(new go.PathSegment(go.PathSegment.Line,te*.388,ee*(1-.184*2))),fe.add(new go.PathSegment(go.PathSegment.Line,te*.388,ee*1).close());var me=new go.PathFigure(te*.408,ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.408,ee*(1-.184*2))),me.add(new go.PathSegment(go.PathSegment.Line,te*.592,ee*(1-.184*3))),me.add(new go.PathSegment(go.PathSegment.Line,te*.592,ee*1).close());var be=new go.PathFigure(te*.612,ee,!0);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te*.612,ee*(1-.184*3))),be.add(new go.PathSegment(go.PathSegment.Line,te*.796,ee*(1-.184*4))),be.add(new go.PathSegment(go.PathSegment.Line,te*.796,ee*1).close());var Ae=new go.PathFigure(te*.816,ee,!0);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.816,ee*(1-.184*4))),Ae.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*(1-.184*5))),Ae.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1).close()),he}),go.Shape.defineFigureGenerator("PC",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.3,0).close());var fe=new go.PathFigure(te*.055,.07*ee,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.07)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.1)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.055,ee*.1).close());var me=new go.PathFigure(te*.055,.13*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.13)),me.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.16)),me.add(new go.PathSegment(go.PathSegment.Line,te*.055,ee*.16).close());var be=new go.PathFigure(te*.055,.18*ee,!0);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.18)),be.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.21)),be.add(new go.PathSegment(go.PathSegment.Line,te*.055,ee*.21).close());var Ae=new go.PathFigure(te*1,0,!0);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.4,0)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.65)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.65).close()),he}),go.Shape.defineFigureGenerator("Plane",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.55*te,ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,.475*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.35*te,.525*ee,0,.4*ee,.225*te,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*te,.475*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*te,.35*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,.325*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*te,.325*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*te,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.2*ee,.975*te,0,te,.08*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*te,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*te,.95*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*te,ee).close()),he}),go.Shape.defineFigureGenerator("Key",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*1,ee*.5,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te*.9,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.5,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.5,.35*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.45,.35*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.3,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.15,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.35*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.65*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.15,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.3,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.45,.65*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.5,.65*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.5,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.6,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.65,.55*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.7,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.75,.55*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.8,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.85,.575*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.9,.6*ee).close()),ue.add(new go.PathSegment(go.PathSegment.Move,.17*te,.425*ee)),ue.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*te,.5*ee,.075*te,.075*ee).close()),he}),go.Shape.defineFigureGenerator("FilmTape",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!1);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*0,te*.3,te*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.08,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.08,ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1));var fe=new go.PathFigure(0,0,!1);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*0)),fe.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*1,te*.3,te*.055)),fe.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1));var me=new go.PathFigure(te*.11,ee*.1,!1);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ee*.1)),me.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ee*.8)),me.add(new go.PathSegment(go.PathSegment.Line,te*.11,ee*.8).close());var be=new go.PathFigure(te*(.11+.24133333*1+.028*1),ee*.1,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ee*.1)),be.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ee*.8)),be.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*1),ee*.8).close());var Ae=new go.PathFigure(te*(.11+.24133333*2+.028*2),ee*.1,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ee*.1)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ee*.8)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*2),ee*.8).close()),he}),go.Shape.defineFigureGenerator("FloppyDisk",function(Fe,te,ee){var he=new go.Geometry,ue=8,fe=ue*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(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=15),he=Math.min(he,te/3),he=Math.min(he,ee/3);var ue=he*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(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*0,ee*.45,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*.9)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.9)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.65,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.2,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.2,ee*.45).close());var fe=new go.PathFigure(te*1,ee*.55,!0);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*1)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.55)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee*.55)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee*.1)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.1)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*0)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*0)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*.55).close()),he}),go.Shape.defineFigureGenerator("Windows",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close()).add(new go.PathSegment(go.PathSegment.Move,.4*te,.4*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*te,.8*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.2*te,.1*ee)).add(new go.PathSegment(go.PathSegment.Line,.2*te,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.1*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.1*te,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.1*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*0,ee*.1,!1);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.9)),ue.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*.9).close());var fe=new go.PathFigure(te*.1,ee*.2,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te*.1,ee*.25)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.22,ee*.285)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.1,ee*.32)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.1,ee*.37)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.275,ee*.32)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.275,ee*.25).close());var me=new go.PathFigure(te*.28,ee*.37,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.37)),me.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.41)),me.add(new go.PathSegment(go.PathSegment.Line,te*.28,ee*.41).close()),he}),go.Shape.defineFigureGenerator("Beaker",function(Fe,te,ee){var he=new go.Geometry,ue=15,fe=ue*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(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*0,ee*1,!0);he.add(ue);var fe=.1/.3;ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.755,ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.93,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.64,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.61,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.39,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.36,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.07,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*(1-fe)).close());var me=new go.PathFigure(te*.4,ee*0,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.26,ee*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.66)),me.add(new go.PathSegment(go.PathSegment.Line,te*(1-.26),ee*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*0).close()),he}),go.Shape.defineFigureGenerator("Bin",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*0,ee*1,!0);he.add(ue);var fe=.1/.3;return ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.755,ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.93,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.64,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.61,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.39,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.36,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.07,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*(1-fe)).close()),he}),go.Shape.defineFigureGenerator("Upload",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*0,ee*1,!0);he.add(ue);var fe=.1/.3;ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.755,ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.93,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.64,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.61,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.39,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.36,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.07,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*(1-fe)).close());var me=new go.PathFigure(te*.5,ee*0,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.26,ee*.25)),me.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.25)),me.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.63)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.63)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.25)),me.add(new go.PathSegment(go.PathSegment.Line,te*.74,ee*.25).close()),he}),go.Shape.defineFigureGenerator("EmptyDrink",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*.15,ee*0,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te*.85,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*1).close()),he}),go.Shape.defineFigureGenerator("Drink",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*.15,ee*0,!1);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te*.85,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*1).close());var fe=new go.PathFigure(te*.235,ee*.28,!0);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te*.765,ee*.28)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.655,ee*.97)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.345,ee*.97).close()),he}),go.Shape.defineFigureGenerator("4Arrows",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*.5,ee*0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te*.65,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.35)),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.5)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.65)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.55)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.55)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.65,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.55)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*.55)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*.65)),ue.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*.5)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*.35)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*.25).close()),he}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},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 We={},Ee="5.0",ae={},oe=null,Pe=!1,Ie=!1,ke=null,Ve=!1,Te=null,Ge=null,lt=0;lt<arguments.length;lt++){var Ke=arguments[lt];if(Ke!==null)switch(typeof Ke){case"number":Ee=Ke.toFixed(1);break;case"string":Ke.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ee=Ke:ke=Ke;break;case"object":typeof Ke.is3D!="undefined"?oe=Ke:ae=Ke;break;case"boolean":Pe=Ke,Ie=!0;break}}oe===null&&(oe={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ae.material_id!==void 0&&!Ie&&(Pe=!0)),ke!==null&&ae.id===void 0&&(ae.id=ke);var He="",St="",$e=!1,It=null,Fe=null,te=null,ee=!1,he=null,ue=null,fe=null,me=null,be=null;ae.height!==void 0&&(ae.height=Math.round(ae.height)),ae.width!==void 0&&(ae.width=Math.round(ae.width));var Ae=function(kt){return parseFloat(kt)>4?parseFloat(kt):5};We.setHTML5Codebase=function(kt,bn){Ge=kt,ct(kt,bn)},We.setJavaCodebase=We.setJavaCodebaseVersion=We.isCompiledInstalled=We.setPreCompiledScriptPath=We.setPreCompiledResourcePath=function(){},We.setHTML5CodebaseVersion=function(kt,bn){var An=parseFloat(kt);if(An!==NaN&&An<5){console.log("The GeoGebra HTML5 codebase version "+An+" is deprecated. Using version latest instead.");return}Te=kt,ft(kt,bn)},We.getHTML5CodebaseVersion=function(){return Fe},We.getParameters=function(){return ae},We.setFontsCSSURL=function(kt){me=kt},We.setGiacJSURL=function(kt){},We.setJNLPFile=function(kt){He=kt},We.setJNLPBaseDir=function(kt){},We.inject=function(){function kt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var bn="auto",An=ae.id,Yn,Vt=!1,Bn=0;Bn<arguments.length;Bn++){var Mt=arguments[Bn];typeof Mt=="string"?(Mt=Mt.toLowerCase(),Mt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?bn=Mt:An=arguments[Bn]):typeof Mt=="boolean"?Vt=Mt:Mt instanceof HTMLElement&&(Yn=Mt)}Hn();function Hn(){if(!Ve){setTimeout(Hn,200);return}bn=yn(bn);var ur=Yn||document.getElementById(An);if(!ur){console.log("possibly bug on ajax loading? ");return}if(We.removeExistingApplet(ur,!1),ae.width===void 0&&ur.clientWidth&&(ae.width=ur.clientWidth),ae.height===void 0&&ur.clientHeight&&(ae.height=ur.clientHeight),!(ae.width&&ae.height)&&bn==="html5"&&(delete ae.width,delete ae.height),It=bn,bn==="screenshot")wt(ur,ae);else{var at=!1;ae.hasOwnProperty("playButton")&&ae.playButton||ae.hasOwnProperty("clickToLoad")&&ae.clickToLoad?at=!0:ae.hasOwnProperty("playButtonAutoDecide")&&ae.playButtonAutoDecide&&(at=(!De()||kt())&&Ye()),at?(It="screenshot",Ht(ur,ae,Vt,bn)):vt(ur,ae,Vt)}}};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}We.getViews=function(){return oe},We.isJavaInstalled=function(){return!1};var nt=function(kt){var bn=function(Bn){var Mt=JSON.parse(Bn),Hn=function(_e){return _e.type=="G"||_e.type=="E"},ur=Mt.elements?Mt.elements.filter(Hn)[0]:Mt;if(!ur||!ur.url){An();return}ae.fileName=ur.url,Je(ur.settings||{}),oe.is3D=!0;var at="https://www.geogebra.org/images/";We.setPreviewImage(he||ur.previewUrl,at+"GeoGebra_loading.png",at+"applet_play.png"),kt()},An=function(){ae.onError&&ae.onError(),Jt("Error: Fetching material (id "+ae.material_id+") failed.",ae)},Yn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Vt="/materials/"+ae.material_id+"?scope=basic";ot("https://"+Yn+"/api/proxy.php?path="+encodeURIComponent(Vt),bn,An)};function Je(kt){var bn=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(An){kt[An]=!!kt[An]}),bn.forEach(function(An){ae[An]===void 0&&kt[An]!==void 0&&(ae[An]=kt[An])}),ae.showToolBarHelp===void 0&&(ae.showToolBarHelp=ae.showToolBar)}function ot(kt,bn,An){var Yn=new XMLHttpRequest;Yn.open("GET",kt),Yn.onload=function(){bn(Yn.responseText)},Yn.onerror=An,Yn.send()}We.isHTML5Installed=function(){return!0},We.getLoadedAppletType=function(){return It},We.setPreviewImage=function(kt,bn,An){he=kt,ue=bn,fe=An},We.removeExistingApplet=function(kt,bn){var An;typeof kt=="string"&&(kt=document.getElementById(kt)),It=null;var Yn=null;for(An=0;An<kt.childNodes.length;An++){var Vt=kt.childNodes[An],Bn=Vt.className;Bn==="applet_screenshot"?bn?(Vt.style.display="block",It="screenshot"):Vt.style.display="none":Bn!=="applet_scaler prerender"&&(kt.removeChild(Vt),Yn=Bn&&Bn.indexOf("appletParameters")!=-1?Vt.id:null,An--)}var Mt=ae.id!==void 0?ae.id:Yn,Hn=window[Mt];Hn&&typeof Hn.getBase64=="function"&&(Hn.remove(),window[Mt]=null)},We.refreshHitPoints=function(){if(Ae(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var kt=We.getAppletObject();return kt&&typeof kt.recalculateEnvironments=="function"?(kt.recalculateEnvironments(),!0):!1},We.startAnimation=function(){var kt=We.getAppletObject();return kt&&typeof kt.startAnimation=="function"?(kt.startAnimation(),!0):!1},We.stopAnimation=function(){var kt=We.getAppletObject();return kt&&typeof kt.stopAnimation=="function"?(kt.stopAnimation(),!0):!1},We.getAppletObject=function(){var kt=ae.id!==void 0?ae.id:"ggbApplet";return window[kt]},We.resize=function(){};var mt=function(kt,bn,An){var Yn=document.createElement("param");Yn.setAttribute("name",bn),Yn.setAttribute("value",An),kt.appendChild(Yn)},it=function(kt){return kt&&kt!=="false"},vt=function(kt,bn,An){Ae(Fe)<=4.2&&(An=!0);var Yn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Fe||ggbHTML5LoadedCodebaseIsWebSimple&&!ee)&&(Yn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Vt=document.createElement("div");Vt.classList.add("appletParameters","notranslate");var Bn=bn.width,Mt=bn.height;if(bn.disableAutoScale=bn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():bn.disableAutoScale,bn.width!==void 0)if(Ae(Fe)<=4.4)it(bn.showToolBar)&&(bn.height-=7),it(bn.showAlgebraInput)&&(bn.height-=37),bn.width<605&&it(bn.showToolBar)&&(bn.width=605,Bn=605);else{var Hn=100;(it(bn.showToolBar)||it(bn.showMenuBar))&&(bn.hasOwnProperty("customToolBar")&&(bn.customToolbar=bn.customToolBar),Hn=it(bn.showMenuBar)?245:155),Bn<Hn&&(bn.width=Hn,Bn=Hn)}Vt.style.border="none",Vt.style.display="inline-block";for(var ur in bn)bn.hasOwnProperty(ur)&&ur!=="appletOnLoad"&&Vt.setAttribute("data-param-"+ur,bn[ur]);me&&Vt.setAttribute("data-param-fontscssurl",me),We.resize=function(){GGBAppletUtils.responsiveResize(kt,bn)},window.addEventListener("resize",function(jt){We.resize()});var at=typeof bn.appletOnLoad=="function"?bn.appletOnLoad:function(){};if(!An&&bn.width!==void 0){bn.hasOwnProperty("showSplash")||Vt.setAttribute("data-param-showSplash","false");var _e=kt.querySelector(".applet_scaler.prerender"),Re=_e!==null;if(Re)var Xe=_e.querySelector(".ggb_preview");else{var Xe=Yt(Bn,Mt,bn.borderColor,!1);_e=document.createElement("div"),_e.className="applet_scaler",_e.style.position="relative",_e.style.display="block",_e.style.width=Bn+"px",_e.style.height=Mt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(_e,"66%"),Ae(Fe)>=5?(bn.appletOnLoad=function(jt){var dn=kt.querySelector(".ggb_preview");dn&&dn.parentNode.removeChild(dn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(_e),window.GGBT_wsf_view&&$(window).trigger("resize"),at(jt)},Re||_e.appendChild(Xe)):Vt.appendChild(Xe),_e.appendChild(Vt),Re||kt.appendChild(_e),setTimeout(function(){We.resize()},1)}else{var st=document.createElement("div");st.className="applet_scaler",st.style.position="relative",st.style.display="block",st.appendChild(Vt),kt.appendChild(st),bn.appletOnLoad=function(jt){We.resize(),at(jt)}}function Be(jt,dn){dn&&typeof dn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(jt,dn.appletOnLoad):renderGGBElement(jt),Jt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",dn)}function Et(jt,dn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:jt,params:dn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Sn){Be(Sn.article,Sn.params)}),html5AppletsToProcess=null)},Ae(Fe)<5&&(jt.className+=" geogebraweb")):Be(jt,dn)}if(Yn){scriptLoadStarted=!0;for(var En=0;En<Vt.childNodes.length;En++){var sn=Vt.childNodes[En].tagName;sn==="TABLE"&&(Vt.removeChild(Vt.childNodes[En]),En--)}if(ggbHTML5LoadedScript!==null){var Mn=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Mn!=null&&Mn.parentNode.removeChild(Mn)}var Dt=document.createElement("script"),_t=function(){Et(Vt,bn)};Dt.src=St+te,ggbHTML5LoadedCodebaseIsWebSimple=ee,ggbHTML5LoadedCodebaseVersion=Fe,ggbHTML5LoadedScript=Dt.src,Jt("GeoGebra HTML5 codebase loaded: '"+St+"'.",bn),!Ge&&(!Te||Te=="5.0")?(ee?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),_t()):St.requirejs?__webpack_require__.e(7963).then(function(){var jt=[__webpack_require__(87963)];_t.apply(null,jt)}.bind(this)).catch(__webpack_require__.oe):(Dt.onload=_t,kt.appendChild(Dt))}else Et(Vt,bn);bn.height=Mt,bn.width=Bn},wt=function(kt,bn,An){var Yn=Yt(bn.width,bn.height,bn.borderColor,An),Vt=document.createElement("div");Vt.style.position="relative",Vt.style.display="block",Vt.style.width=bn.width+"px",Vt.style.height=bn.height+"px",Vt.className="applet_screenshot applet_scaler"+(An?" applet_screenshot_play":""),Vt.appendChild(Yn);var Bn=GGBAppletUtils.getScale(bn,kt,An);An?(kt.appendChild(Qt()),window.GGBT_wsf_view||(kt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Vt,"66%"),kt.appendChild(Vt),Bn!==1&&!isNaN(Bn)&&(GGBAppletUtils.scaleElement(Vt,Bn),Vt.style.width=bn.width+"px",Vt.style.height=bn.height+"px",Vt.parentNode.style.width=bn.width*Bn+"px",Vt.parentNode.style.height=bn.height*Bn+"px"),We.resize=function(){Nt(kt,Yn,Vt,An)},window.addEventListener("resize",function(Mt){We.resize()}),We.resize()};function Nt(kt,bn,An,Yn){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 Vt=GGBAppletUtils.getScale(ae,kt,Yn);An.parentNode!==null&&(!isNaN(Vt)&&Vt!==1?(GGBAppletUtils.scaleElement(An,Vt),An.parentNode.style.width=ae.width*Vt+"px",An.parentNode.style.height=ae.height*Vt+"px"):(GGBAppletUtils.scaleElement(An,1),An.parentNode.style.width=ae.width+"px",An.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()}}We.onExitFullscreen=function(kt,bn){bn.appendChild(kt)};var Ht=function(kt,bn,An,Yn){wt(kt,bn,!0);for(var Vt=function(){var Hn=[];for(Mt=0;Mt<kt.childNodes.length;Mt++)Hn.push(kt.childNodes[Mt]);if(window.GGBT_wsf_view){var ur=window.GGBT_wsf_view.renderFullScreen(kt,bn.id),at=document.getElementById("fullscreencontainer"),_e=jQuery(kt).find(".fullscreencontent");_e.length>0?(ur.remove(),_e.attr("id","fullscreencontent").show(),jQuery(at).append(_e),window.dispatchEvent(new Event("resize"))):vt(ur,bn,!1),window.GGBT_wsf_view.launchFullScreen(at)}else It=Yn,vt(kt,bn,!1);if(!window.GGBT_wsf_view)for(Mt=0;Mt<Hn.length;Mt++)kt.removeChild(Hn[Mt])},Bn=kt.getElementsByClassName("ggb_preview_play"),Mt=0;Mt<Bn.length;Mt++)Bn[Mt].addEventListener("click",Vt,!1),Bn[Mt].addEventListener("ontouchstart",Vt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(kt),Ye()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Qt=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");}',An=document.createElement("style");An.styleSheet?An.styleSheet.cssText=bn:An.appendChild(document.createTextNode(bn)),document.getElementsByTagName("head")[0].appendChild(An)}return kt},Yt=function(kt,bn,An,Yn){var Vt=document.createElement("div");Vt.className="ggb_preview",Vt.style.position="absolute",Vt.style.zIndex="90",Vt.style.width=kt-2+"px",Vt.style.height=bn-2+"px",Vt.style.top="0px",Vt.style.left="0px",Vt.style.overflow="hidden",Vt.style.backgroundColor="white";var Bn="lightgrey";An!==void 0&&(An==="none"?Bn="transparent":Bn=An),Vt.style.border="1px solid "+Bn;var Mt=document.createElement("img");if(Mt.style.position="relative",Mt.style.zIndex="1000",Mt.style.top="-1px",Mt.style.left="-1px",he!==null&&Mt.setAttribute("src",he),Mt.style.opacity=.7,ue!==null){var Hn,ur,at;if(!Yn){Hn=document.createElement("img"),Hn.style.position="absolute",Hn.style.zIndex="1001",Hn.style.opacity=1,Mt.style.opacity=.3,ur=360,ur>kt/4*3&&(ur=kt/4*3),at=ur/5.8,Hn.setAttribute("src",ue),Hn.setAttribute("width",ur),Hn.setAttribute("height",at);var _e=(kt-ur)/2,Re=(bn-at)/2;Hn.style.left=_e+"px",Hn.style.top=Re+"px",Vt.appendChild(Hn)}}return Vt.appendChild(Mt),Vt},yn=function(kt){return kt=kt.toLowerCase(),kt==="html5"||kt==="screenshot"?kt:"html5"},bt=["web","webSimple","web3d","tablet","tablet3d","phone"],ft=function(kt,bn){if(Fe=kt,bn){ct(Fe,!0);return}var An=!Pe;if(An){var Yn=Ae(Fe);!isNaN(Yn)&&Yn<4.4&&(An=!1)}var Vt,Bn;window.location.protocol.substr(0,4)==="http"?Vt=window.location.protocol:Vt="http:";var Mt=Fe.indexOf("//");Mt>0?Bn=Fe:Mt===0?Bn=Vt+Fe:Bn="https://www.geogebra.org/apps/5.2.814.0/";for(var Hn in bt)if(Fe.slice(bt[Hn].length*-1)===bt[Hn]||Fe.slice((bt[Hn].length+1)*-1)===bt[Hn]+"/"){ct(Bn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&An&&!oe.is3D&&!oe.AV&&!oe.SV&&!oe.CV&&!oe.EV2&&!oe.CP&&!oe.PC&&!oe.DA&&!oe.FI&&!oe.PV&&!it(ae.showToolBar)&&!it(ae.showMenuBar)&&!it(ae.showAlgebraInput)&&!it(ae.enableRightClick)&&(!ae.appName||ae.appName=="classic")?Bn+="webSimple/":Bn+="web3d/",ct(Bn,!1)},ct=function(kt,bn){if(kt.requirejs){St=kt;return}kt.slice(-1)!=="/"&&(kt+="/"),St=kt,bn===null&&(bn=kt.indexOf("http")===-1),$e=bn,te="web.nocache.js",ee=!1;var An=St.split("/");An.length>1&&(!bn&&An[An.length-2]==="webSimple"?(te="webSimple.nocache.js",ee=!0):bt.indexOf(An[An.length-2])>=0&&(te=An[An.length-2]+".nocache.js")),An=kt.split("/"),Fe=An[An.length-3],Fe.substr(0,4)==="test"?Fe=Fe.substr(4,1)+"."+Fe.substr(5,1):(Fe.substr(0,3)==="war"||Fe.substr(0,4)==="beta")&&(Fe="5.0");var Yn=parseFloat(Fe);Yn!==NaN&&Yn<5&&kt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Yn+" is deprecated. Using version latest instead."),ft("5.0",bn))},Jt=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?nt(fn):fn();function fn(){var kt=Ee;Te!==null?kt=Te:parseFloat(kt)<5&&(kt="5.0"),ft(kt,!1),Ge!==null&&ct(Ge,$e),Ve=!0}return We},GGBAppletUtils=function(){"use strict";function We(){return window.GGBT_wsf_edit!==void 0}function Ee(Ve,Te){Te!=1?(Ve.style.transformOrigin="0% 0% 0px",Ve.style.webkitTransformOrigin="0% 0% 0px",Ve.style.transform="scale("+Te+","+Te+")",Ve.style.webkitTransform="scale("+Te+","+Te+")",Ve.style.maxWidth="initial",Ve.querySelector(".ggb_preview")!==null&&(Ve.querySelector(".ggb_preview").style.maxWidth="initial"),Ve.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ve.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ve.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ve.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ve.style.transform="none",Ve.style.webkitTransform="none")}function ae(Ve,Te,Ge,lt,Ke,He){var St=null;if(He!=null&&He!="")for(var $e=Ve.parentNode;$e!=null;)if((" "+$e.className+" ").indexOf(" "+He+" ")>-1){St=$e;break}else $e=$e.parentNode;var It=0,Fe=0,te=0,ee=0,he=0,ue=0,fe=0;if(St)It=St.offsetWidth,Fe=Math.max(lt?St.offsetWidth:0,St.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(It=Math.min(window.innerWidth,document.documentElement.clientWidth),Fe=Math.min(window.innerHeight,document.documentElement.clientHeight),te=It):(It=window.innerWidth,Fe=window.innerHeight,te=window.innerWidth),Ve){var me=Ve.getBoundingClientRect();me.left>0&&me.left<=It&&(Ke===void 0||!Ke)&&(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(Ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var be=Ve.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ee=40,fe=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee=0,fe=40)}}return Ve&&((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)&&(Fe-=fe)),{width:It,height:Fe}}function oe(Ve,Te,Ge,lt,Ke){if(Ve.isScreenshoGenerator)return 1;var He=lt!==void 0&&lt,St=Ve.noScaleMargin!=null&&Ve.noScaleMargin,$e=function(be){return be&&be!=="false"},It=$e(Ve.autoHeight),Fe=ae(Te,Ve.width,Ge,It,He&&window.GGBT_wsf_view||St,Ke),te=parseInt(Fe.width),ee=Ve.width,he=Ve.height;if(ee===void 0){var ue=Te.querySelector(".appletParameters");ue&&(ee=ue.offsetWidth,he=ue.offsetHeight)}var fe=te/ee,me=He?1:Fe.height/he;return Ge!==void 0&&!Ge&&(fe=Math.min(1,fe),me=Math.min(1,me)),Math.min(fe,me)}function Pe(Ve,Te,Ge){var lt=1,Ke,He=!1;if(Ve.hasOwnProperty("allowUpscale")&&(He=Ve.allowUpscale),Ve.hasOwnProperty("scale")&&(lt=parseFloat(Ve.scale),(isNaN(lt)||lt===null||lt===0)&&(lt=1),lt>1&&(He=!0)),Te&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(He=!0),!(Ve.hasOwnProperty("disableAutoScale")&&Ve.disableAutoScale))Ke=oe(Ve,Te,He,Ge,Ve.scaleContainerClass);else return lt;return He&&(!Ve.hasOwnProperty("scale")||lt===1)?Ke:Math.min(lt,Ke)}function Ie(Ve){var Te=Math.min(window.innerWidth,document.documentElement.clientWidth),Ge=Math.min(window.innerHeight,document.documentElement.clientHeight),lt=Ve.getBoundingClientRect(),Ke=(Te-lt.width)/2,He=(Ge-lt.height)/2;He<0&&(He=0),Ve.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ke<40?Ve.style.left="40px":Ve.style.left=Ke+"px",Ve.style.top=He+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(He<40?Ve.style.top="40px":Ve.style.top=He+"px",Ve.style.left=Ke+"px")}function ke(Ve,Te){var Ge=Ve.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(Ve)}if(Ge.parentElement&&/fullscreen/.test(Ge.parentElement.className))return;var lt=Pe(Te,Ve);We()&&Ge.setAttribute("data-param-scale",lt);for(var Ke=null,He=0;He<Ve.childNodes.length;He++)if(Ve.childNodes[He].className!==void 0&&Ve.childNodes[He].className.match(/^applet_scaler/)){Ke=Ve.childNodes[He];break}if(Ke!==null&&Ke.querySelector(".noscale")!==null)return;var St=Te.id!==void 0?Te.id:"ggbApplet",$e=window[St];($e==null||!$e.recalculateEnvironments)&&Ke!==null&&!Ke.className.match(/fullscreen/)&&(Ke.parentNode.style.transform="",!isNaN(lt)&&lt!==1?(Ke.parentNode.style.width=Te.width*lt+"px",Ke.parentNode.style.height=Te.height*lt+"px",Ee(Ke,lt)):(Ee(Ke,1),Ke.parentNode.style.width=Te.width+"px",Ke.parentNode.style.height=Te.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ie(Ve),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ge).parents(".content-added-content"))}}return{responsiveResize:ke,isFlexibleWorksheetEditor:We,positionCenter:Ie,getScale:Pe,scaleElement:Ee}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var We=n.location.search;return We.indexOf(J)!=-1||We.indexOf(K)!=-1}function q(We,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(We){var Ee=s[L].bindings;s[L].bindings=function(){for(var ae=Ee?Ee():{},oe=We[webModule.__softPermutationId],Pe=O;Pe<oe.length;Pe++){var Ie=oe[Pe];ae[Ie[O]]=Ie[P]}return ae}};var t;function u(){return v(),t}function v(){if(!t){var We=o.createElement(Q);if(We.id=L,We.style.cssText=R+S,We.tabIndex=-1,o.body.appendChild(We),t=We.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ee=document.compatMode==U?V:W;t.write(Ee+X),t.close()}}}function w(We){function Ee(oe){function Pe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ie=Pe();if(Ie){oe();return}function ke(){if(!Ie){if(!Pe())return;Ie=!0,oe(),o.removeEventListener&&o.removeEventListener(Z,ke,!1),Ve&&clearInterval(Ve)}}o.addEventListener&&o.addEventListener(Z,ke,!1);var Ve=setInterval(function(){ke()},$)}function ae(oe){var Pe=u(),Ie=Pe.body,ke=Pe.createElement(_);ke.language=ab,ke.crossOrigin=W,ke.src=oe,webModule.__errFn&&(ke.onerror=function(){webModule.__errFn(L,new Error(bb+oe))}),Ie.appendChild(ke)}Ee(function(){ae(We)})}webModule.__startLoadingFragment=function(We){return C(We)},webModule.__installRunAsyncCode=function(We){var Ee=u(),ae=Ee.body,oe=Ee.createElement(_);oe.language=ab,oe.text=We,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(We){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(We){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(We){var Ee=c[We];return Ee==null?null:Ee},r=d,webModule.__errFn=e}function B(){function We(Ve){var Te=Ve.lastIndexOf(rb);Te==-1&&(Te=Ve.length);var Ge=Ve.indexOf(sb);Ge==-1&&(Ge=Ve.length);var lt=Ve.lastIndexOf(tb,Math.min(Ge,Te));return lt>=O?Ve.substring(O,lt+P):W}function Ee(Ve){if(!Ve.match(/^\w+:\/\//)){var Te=o.createElement(ub);Te.src=Ve+vb,Ve=We(Te.src)}return Ve}function ae(){var Ve=__gwt_getMetaProperty(wb);return Ve!=null?Ve:W}function oe(){for(var Ve=o.getElementsByTagName(_),Te=O;Te<Ve.length;++Te)if(Ve[Te].src.indexOf(xb)!=-1)return We(Ve[Te].src);return W}function Pe(){var Ve=o.getElementsByTagName(yb);return Ve.length>O?Ve[Ve.length-P].href:W}function Ie(){var Ve=o.location;return Ve.href==Ve.protocol+zb+Ve.host+Ve.pathname+Ve.search+Ve.hash}var ke=ae();return ke==W&&(ke=oe()),ke==W&&(ke=Pe()),ke==W&&Ie()&&(ke=We(o.location.href)),ke=Ee(ke),ke}function C(We){return We.match(/^\//)||We.match(/^[a-zA-Z]+:\/\//)?We:webModule.__moduleBase+We}function D(){var We=[],Ee=O,ae=[],oe=[];function Pe(Ve){var Te=oe[Ve](),Ge=ae[Ve];if(Te in Ge)return Te;var lt=[];for(var Ke in Ge)lt[Ge[Ke]]=Ke;throw r&&r(Ve,lt,Te),null}if(__gwt_isKnownPropertyValue=function(Ve,Te){return Te in ae[Ve]},webModule.__getPropMap=function(){var Ve={};for(var Te in ae)ae.hasOwnProperty(Te)&&(Ve[Te]=Pe(Te));return Ve},webModule.__computePropValue=Pe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ie;try{Ie=Cb;var ke=Ie.indexOf(Db);ke!=-1&&(Ee=parseInt(Ie.substring(ke+P),$),Ie=Ie.substring(O,ke))}catch(Ve){}return webModule.__softPermutationId=Ee,C(Ie+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},46699:function(We,Ee,ae){"use strict";ae.d(Ee,{Ax:function(){return ke},Ds:function(){return Ve},KI:function(){return Ge},SI:function(){return Ie},f1:function(){return Pe}});var oe=ae(346);function Pe(lt){let Ke=!0;if(lt.length>0){for(let He=0;He<lt.length;He++)if(lt[He].compile_success==0||!lt[He].compile_success){Ke=!1;break}}else Ke=!1;return Ke}function Ie(lt,Ke=""){let He=[];for(let St=0;St<lt.length;St++){let $e=lt[St],It=Ke?`${Ke}/${$e.name}`:`${$e.name}`;He.push({title:$e.name,type:$e.type,isLeaf:$e.type!=="tree",key:It})}return He}function ke(lt,Ke,He){for(let St=0;St<lt.length;St++){let $e=lt[St];if($e.key===Ke){$e.children=He;break}$e.children&&ke($e.children,Ke,He)}return lt}function Ve(lt,Ke,He){let St;return function(){let $e=this,It=arguments,Fe=function(){St=null,He||lt.apply($e,It)},te=He&&!St;clearTimeout(St),St=setTimeout(Fe,Ke),te&&lt.apply($e,It)}}const Te=!0,Ge=oe.Z.API_SERVER},84842:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Fe}});var oe=ae(99571),Pe=ae(59301),Ie=Object.defineProperty,ke=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,Ke=(te,ee,he)=>ee in te?Ie(te,ee,{enumerable:!0,configurable:!0,writable:!0,value:he}):te[ee]=he,He=(te,ee)=>{for(var he in ee||(ee={}))Ge.call(ee,he)&&Ke(te,he,ee[he]);if(Te)for(var he of Te(ee))lt.call(ee,he)&&Ke(te,he,ee[he]);return te},St=(te,ee)=>ke(te,Ve(ee)),$e=(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 Fe=te=>{var ee=te,{children:he}=ee,ue=$e(ee,["children"]);const[fe,me]=(0,Pe.useState)(!1);return Pe.createElement(oe.ZP,St(He({},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(We,Ee,ae){"use strict";var oe=ae(86204),Pe=ae.n(oe),Ie=Object.defineProperty,ke=(lt,Ke,He)=>Ke in lt?Ie(lt,Ke,{enumerable:!0,configurable:!0,writable:!0,value:He}):lt[Ke]=He,Ve=(lt,Ke,He)=>ke(lt,typeof Ke!="symbol"?Ke+"":Ke,He),Te=(lt,Ke,He)=>new Promise((St,$e)=>{var It=ee=>{try{te(He.next(ee))}catch(he){$e(he)}},Fe=ee=>{try{te(He.throw(ee))}catch(he){$e(he)}},te=ee=>ee.done?St(ee.value):Promise.resolve(ee.value).then(It,Fe);te((He=He.apply(lt,Ke)).next())});class Ge extends oe.EventEmitter{constructor(Ke,He){super(),Ve(this,"url"),Ve(this,"body"),Ve(this,"fullContent",""),Ve(this,"controller",null),Ve(this,"buffer",""),this.url=Ke,this.body=He}startStream(){return Te(this,null,function*(){this.controller=new AbortController;const{signal:Ke}=this.controller;try{const He=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:Ke});if(!He.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${He.status}`);const St=He.headers.get("content-type");if(!St)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(St.includes("application/json")){const Fe=yield He.json();this.emit("error",Fe);return}if(!St.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const $e=He.body.getReader(),It=new TextDecoder("utf-8");for(;;){const{done:Fe,value:te}=yield $e.read();if(Fe)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(He){He.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",He.message)}})}handleData(Ke){Ke.content&&(this.fullContent+=Ke.content,this.emit("data",{chunk:Ke,full:this.fullContent}))}cancelRequest(){var Ke;(Ke=this.controller)==null||Ke.abort()}}Ee.Z=Ge},81679:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return It}});var oe=ae(59301),Pe=ae(30641),Ie=ae(77019),ke=ae(5269),Ve={smartWrp:"smartWrp___NjRcB"},Te=ae(75975),Ge=ae(9148),lt=ae(84842),Ke=ae(59301),He=(Fe,te,ee)=>new Promise((he,ue)=>{var fe=Ae=>{try{be(ee.next(Ae))}catch(De){ue(De)}},me=Ae=>{try{be(ee.throw(Ae))}catch(De){ue(De)}},be=Ae=>Ae.done?he(Ae.value):Promise.resolve(Ae.value).then(fe,me);be((ee=ee.apply(Fe,te)).next())});const St=`<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>\u5FEB\u901F\u6392\u5E8F\u6F14\u793A</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
margin: 20px;
}
.array-container {
display: flex;
justify-content: center;
align-items: flex-end;
height: 300px;
margin-top: 20px;
}
.bar {
width: 30px;
margin: 0 2px;
background-color: #4caf50;
color: white;
display: flex;
justify-content: center;
align-items: center;
border-radius: 5px;
transition: all 0.3s ease;
}
.bar.sorted {
background-color: #ff9800;
}
.bar.pivot {
background-color: #f44336;
}
</style>
</head>
<body>
<h1>\u5FEB\u901F\u6392\u5E8F\u7B97\u6CD5\u6F14\u793A</h1>
<button id="start-sort">\u5F00\u59CB\u6392\u5E8F</button>
<div class="array-container" id="array-container"></div>
<script>
const array = [34, 7, 23, 32, 5, 62]; // \u56FA\u5B9A\u6570\u7EC4
let bars = [];
// \u521D\u59CB\u5316\u6570\u7EC4\u663E\u793A
function initArrayDisplay() {
const container = document.getElementById('array-container');
container.innerHTML = '';
bars = array.map(value => {
const bar = document.createElement('div');
bar.className = 'bar';
bar.style.height = \`\${value * 5}px\`;
bar.textContent = value;
container.appendChild(bar);
return bar;
});
}
// \u9AD8\u4EAE\u67D0\u4E2A\u8303\u56F4\u5185\u7684\u67F1\u5B50
function highlightBars(indices, className) {
indices.forEach(index => bars[index].classList.add(className));
}
// \u79FB\u9664\u9AD8\u4EAE
function removeHighlightBars(indices, className) {
indices.forEach(index => bars[index].classList.remove(className));
}
// \u5FEB\u901F\u6392\u5E8F\u4E3B\u51FD\u6570
async function quickSort(arr, left = 0, right = arr.length - 1) {
if (left >= right) return;
const pivotIndex = await partition(arr, left, right);
await quickSort(arr, left, pivotIndex - 1);
await quickSort(arr, pivotIndex + 1, right);
}
// \u5206\u533A\u51FD\u6570
async function partition(arr, left, right) {
const pivot = arr[right];
let i = left - 1;
highlightBars([right], 'pivot'); // \u9AD8\u4EAE\u57FA\u51C6\u503C
for (let j = left; j < right; j++) {
highlightBars([j], 'sorted'); // \u9AD8\u4EAE\u5F53\u524D\u6BD4\u8F83\u5143\u7D20
await sleep(500);
if (arr[j] <= pivot) {
i++;
[arr[i], arr[j]] = [arr[j], arr[i]];
// \u66F4\u65B0\u67F1\u5B50\u9AD8\u5EA6
bars[i].style.height = \`\${arr[i] * 5}px\`;
bars[i].textContent = arr[i];
bars[j].style.height = \`\${arr[j] * 5}px\`;
bars[j].textContent = arr[j];
await sleep(500);
}
removeHighlightBars([j], 'sorted'); // \u79FB\u9664\u9AD8\u4EAE
}
// \u5C06\u57FA\u51C6\u503C\u653E\u5230\u6B63\u786E\u4F4D\u7F6E
[arr[i + 1], arr[right]] = [arr[right], arr[i + 1]];
bars[i + 1].style.height = \`\${arr[i + 1] * 5}px\`;
bars[i + 1].textContent = arr[i + 1];
bars[right].style.height = \`\${arr[right] * 5}px\`;
bars[right].textContent = arr[right];
removeHighlightBars([right], 'pivot'); // \u79FB\u9664\u57FA\u51C6\u503C\u9AD8\u4EAE
highlightBars([i + 1], 'sorted'); // \u9AD8\u4EAE\u6700\u7EC8\u4F4D\u7F6E
await sleep(500);
removeHighlightBars([i + 1], 'sorted');
return i + 1;
}
// \u5EF6\u8FDF\u51FD\u6570
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
// \u5F00\u59CB\u6392\u5E8F\u6309\u94AE\u70B9\u51FB\u4E8B\u4EF6
document.getElementById('start-sort').addEventListener('click', () => {
quickSort(array);
});
// \u521D\u59CB\u5316\u9875\u9762
initArrayDisplay();
<\/script>
</body>
</html>`;function $e({open:Fe=!0,onChange:te,defaultValue:ee,placement:he,width:ue,height:fe,extra:me,onDynamic:be,onOpenChange:Ae,showExtra:De=!0}){const Ye=(0,oe.useRef)(null),nt=(0,oe.useRef)(null),[Je,ot]=(0,oe.useState)(ee||""),[mt,it]=(0,oe.useState)(ee||""),[vt,wt]=(0,oe.useState)(!!Fe),[Nt,Ht]=(0,oe.useState)(1),Qt={selectOnLineNumbers:!0};(0,oe.useEffect)(()=>{Fe&&(ot(ee),it(ee),wt(!0))},[Fe,ee]),(0,oe.useEffect)(()=>{Je!==""&&(clearTimeout(nt.current),nt.current=setTimeout(()=>{const yn=document.createElement("iframe");if(yn.style.width="100%",yn.style.height="100%",yn.style.border="0",Ye.current){Ye.current.innerHTML="",Ye.current.appendChild(yn);const bt=yn.contentDocument||yn.contentWindow.document;bt.open(),bt.write(Je),bt.close()}},1e3))},[Fe,Je]);const Yt=yn=>{ot(yn),te==null||te(yn,mt)};return Ke.createElement(Pe.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:vt,width:"100%",height:fe||"100vh",rootClassName:Ve.smartWrp,destroyOnClose:!0,onClose:()=>{wt(!1),Ae==null||Ae(Je)},extra:De&&Ke.createElement("div",null,Ke.createElement(Ge.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Nt,onChange:yn=>Ht(yn)}),Ke.createElement(lt.Z,{type:"primary",className:"ml20",onClick:()=>He(this,null,function*(){yield be(Je,()=>{wt(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},Ke.createElement(Ie.Z,{className:"h100"},Ke.createElement(ke.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Nt===1?"block":"none"}},Ke.createElement("div",{className:"h100",ref:Ye})),Ke.createElement(ke.Z,{flex:"1",style:{display:Nt===2?"block":"none"}},Ke.createElement(Te.ZP,{height:"90vh",value:ee,language:"html",theme:"vs",showMiniMap:!1,options:Qt,onChange:Yt}))))}var It=$e},10946:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Je}});var oe=ae(59301),Pe=ae(74439),Ie=ae(77596),ke=ae(3310),Ve=ae(14179),Te=ae(56102),Ge={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},lt=ae(6767),Ke=ae(90083),He=ae(95827),St=ae(30084),$e=ae(10787),It=ae(8944),Fe=ae(81679),te=Object.defineProperty,ee=Object.defineProperties,he=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,be=(ot,mt,it)=>mt in ot?te(ot,mt,{enumerable:!0,configurable:!0,writable:!0,value:it}):ot[mt]=it,Ae=(ot,mt)=>{for(var it in mt||(mt={}))fe.call(mt,it)&&be(ot,it,mt[it]);if(ue)for(var it of ue(mt))me.call(mt,it)&&be(ot,it,mt[it]);return ot},De=(ot,mt)=>ee(ot,he(mt)),Ye=(ot,mt)=>{var it={};for(var vt in ot)fe.call(ot,vt)&&mt.indexOf(vt)<0&&(it[vt]=ot[vt]);if(ot!=null&&ue)for(var vt of ue(ot))mt.indexOf(vt)<0&&me.call(ot,vt)&&(it[vt]=ot[vt]);return it},Je=({onFinish:ot,value:mt,streamingStatus:it,cancelIndex:vt,loadImage:wt,onDynamic:Nt,isHiddenHtml:Ht})=>{const[Qt,Yt]=(0,oe.useState)(""),[yn,bt]=(0,oe.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[ft,ct]=(0,oe.useState)(0),[Jt,fn]=(0,oe.useState)(!1),kt=Yn=>Yn.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Vt,Bn)=>`<mathx data-text="${Bn.trim()}">$$${Bn.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=()=>{fn(!0),ot==null||ot()};(0,oe.useEffect)(()=>{const Yn=wt?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${mt}`:mt,Vt=kt(Yn);if(!Jt)if(wt||!it||vt>0){Yt(Vt),ct(Vt.length),(!it||vt>0)&&!wt&&bn();return}else if((Vt==null?void 0:Vt.length)<4)Yt(Vt),ct(Vt.length);else if(ft<Vt.length){const Bn=Vt.length-ft,Mt=setInterval(()=>{Yt(Vt.slice(0,ft+2)),ct(Hn=>Hn+2)},Bn>10?Math.max(500/(Bn/2),20):50);return()=>clearInterval(Mt)}else it||bn()},[mt,it,vt,wt,ft]);const An=(0,oe.useMemo)(()=>oe.createElement("section",{className:`${Ge.answer} fadeIn animated edu_md`},oe.createElement(Pe.UG,{remarkPlugins:[St.Z,$e.Z],rehypePlugins:[He.Z,ke.Z],components:{code(Yn){var Vt=Yn,{node:Bn,inline:Mt,className:Hn,children:ur}=Vt,at=Ye(Vt,["node","inline","className","children"]);const _e=/language-(\w+)/.exec(Hn||""),Re=String(ur).trim();return Mt||!_e?oe.createElement("code",Ae({className:Hn},at),ur):oe.createElement("code",{className:Ge.codeCopy,"data-text":`\`\`\`${_e?_e[1]:""}
${ur}
\`\`\``},!Ht&&oe.createElement(Te.CopyToClipboard,{text:Re,onCopy:()=>lt.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},oe.createElement("button",null,"\u590D\u5236")),!Ht&&_e[1]==="html"&&Jt&&oe.createElement("button",{className:Ge.runCode,onClick:()=>{bt(Ae({},De(Ae({},yn),{open:++yn.open,defaultValue:Re,language:_e[1]})))}},"\u8FD0\u884CHTML"),oe.createElement(Ie.Z,Ae({wrapLongLines:!0,style:Ve.Z,language:_e[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},at),Re))},img({node:Yn}){var Vt;const Bn=(Vt=Yn.properties)==null?void 0:Vt.src;return oe.createElement(Ke.Z,{src:Bn,width:320,"data-text":Bn,onLoad:()=>wt&&setTimeout(()=>bn(),500)})},a:Yn=>{var Vt=Yn,{node:Bn}=Vt,Mt=Ye(Vt,["node"]);return oe.createElement("a",De(Ae({},Mt),{target:"_blank",rel:"noopener noreferrer"}))}}},Jt?Qt:`${Qt}__`)),[Qt]);return oe.createElement(oe.Fragment,null,oe.createElement(Fe.Z,{defaultValue:yn.defaultValue,open:yn.open,language:yn.language,height:yn.height,onChange:(Yn,Vt)=>{Yt(Qt.replaceAll(Vt,Yn))},onDynamic:Nt}),An)}},82105:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return nt}});var oe=ae(59301),Pe=ae(6767),Ie=ae(30641),ke=ae(77019),Ve=ae(62957),Te=ae(37568),Ge=ae(14566),lt=ae(25399),Ke=ae(5269),He=ae(71051),St={wrap:"wrap___Yz6fc",left:"left___F0axg",tip:"tip___nCmqI",bottomBtn:"bottomBtn___x70Gq",disabled:"disabled___CWzre"},$e=ae(9148),It=ae(346),Fe=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=(Je,ot,mt)=>new Promise((it,vt)=>{var wt=Qt=>{try{Ht(mt.next(Qt))}catch(Yt){vt(Yt)}},Nt=Qt=>{try{Ht(mt.throw(Qt))}catch(Yt){vt(Yt)}},Ht=Qt=>Qt.done?it(Qt.value):Promise.resolve(Qt.value).then(wt,Nt);Ht((mt=mt.apply(Je,ot)).next())}),nt=(0,oe.forwardRef)(({onUpdateNum:Je,onSave:ot},mt)=>{var it;const vt=`\u8BF7\u8F93\u5165\u51FA\u9898\u8981\u6C42\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u5148\u4E0A\u4F20\u6750\u6599\u4E4B\u540E\u518D\u6839\u636E\u6750\u6599\u51FA\u9898
\u4F8B\uFF1A\u8BF7\u751F\u6210\u5173\u4E8E\u300APython\u7A0B\u5E8F\u8BBE\u8BA1\u300B\u7684\u8BD5\u9898\u3002\u8003\u5BDF\u77E5\u8BC6\u70B9\uFF1A\u53D8\u91CF\u5B9A\u4E49\u3001\u6570\u636E\u7C7B\u578B\u3001\u8FD0\u7B97\u7B26\u548C\u63A7\u5236\u7ED3\u6784\u3002\u96BE\u5EA6\u4E3A\u201C\u56F0\u96BE\u201D\u7684\u8BD5\u9898\u536020%`,[wt,Nt]=(0,oe.useState)(!1),[Ht,Qt]=(0,oe.useState)([]),[Yt,yn]=(0,oe.useState)(null),[bt,ft]=(0,oe.useState)([]),[ct,Jt]=(0,oe.useState)(0),[fn,kt]=(0,oe.useState)(0),[bn,An]=(0,oe.useState)(!1),[Yn,Vt]=(0,oe.useState)(""),[Bn,Mt]=(0,oe.useState)(0),[Hn,ur]=(0,oe.useState)(0),[at,_e]=(0,oe.useState)(0),[Re,Xe]=(0,oe.useState)(0),[st,Be]=(0,oe.useState)(0),[Et,En]=(0,oe.useState)(0),[sn,Mn]=(0,oe.useState)(0),[Dt,_t]=(0,oe.useState)(0),[jt,dn]=(0,oe.useState)(be.Q),{contentRef:Sn,value:gn,status:Ot,open:Pn,close:Zt}=jt,tn=(0,fe.Z)({contentRef:Sn,status:Ot}),{openProgress:vn,closeProgress:$n,CreateProgressModal:mn,progressOpen:gt}=(0,ue.Z)();(0,oe.useEffect)(()=>{Yt&&vr(),Yt===!1&&(Zt(),Je==null||Je(),Qt([]),Vt(""),Mt(0),ur(0),_e(0),Xe(0),Be(0),En(0),Mn(0),_t(0))},[Yt]);const Xn=()=>{yn(!0)};(0,oe.useImperativeHandle)(mt,()=>({onClick:Xn}));const ir=nr=>{An(!0),Jt(nr),kt(0)},nn=nr=>De(void 0,null,function*(){const Wr=nr.name.split(".").slice(-1)[0].toLowerCase();return["docx","doc","pdf","png","jpg"].indexOf(Wr)==-1?(Pe.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):nr.size/1024/1024>10?(Pe.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):!0}),vr=()=>De(void 0,null,function*(){const nr=yield(0,te.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});nr.status===0&&(Jt(nr.total_number),kt(nr.remaining_number))}),$r=nr=>(nr=nr||"",nr=String(nr),nr=nr.replace(/\s+/g,""),nr),Lr=(nr=!0)=>De(void 0,null,function*(){var Wr,oi;const Oe=[{name:"\u5355\u9009\u9898",num:Bn||0},{name:"\u591A\u9009\u9898",num:Hn||0},{name:"\u5224\u65AD\u9898",num:at||0},{name:"\u586B\u7A7A\u9898",num:Re||0},{name:"\u7B80\u7B54\u9898",num:st||0},{name:"\u7EC4\u5408\u9898",num:Dt||0},{name:"\u7F16\u7A0B\u9898",num:Et||0},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",num:sn||0}];if(nr){if($r(Yn)){if(Yn.length>1e3){Pe.ZP.warning("\u51FA\u9898\u8981\u6C42\u5B57\u6570\u9650\u5236\u4E3A1000\u5B57");return}}else{Pe.ZP.warning("\u8BF7\u5148\u8F93\u5165\u51FA\u9898\u8981\u6C42");return}if(!$r(Yn)&&!(Ht!=null&&Ht.length)){Pe.ZP.warning("\u8BF7\u4E0A\u4F20\u6750\u6599\u6587\u6863\u6216\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6750\u6599\u5185\u5BB9");return}const or=Oe.reduce((kr,Fr)=>kr+Fr.num,0);if(or===0){Pe.ZP.warning("\u8BF7\u8BBE\u7F6E\u51FA\u9898\u6570\u91CF");return}if(or>50){Pe.ZP.warning("\u51FA\u9898\u6570\u91CF\u8FBE\u5230\u9650\u5236");return}if(ct!==-1){An(!0);return}}An(!1);const Cr={scene_type:6,request_identifier:Math.random(),file_id:(oi=(Wr=Ht[0])==null?void 0:Wr.response)==null?void 0:oi.id,content:Yn,count_arr:Oe.map(or=>or.num).join(",")};yield Pn(Cr),vr()}),Rn=()=>De(void 0,null,function*(){const nr=tn();if(ot){yn(!1),ot(nr);return}vn(),Nt(!0),ft([]);const Wr=new FormData;Wr.append("html",nr);const oi=yield(0,te.ZP)("/api/intelligent_imports/import.json",{method:"post",body:Wr},!0);if((oi==null?void 0:oi.status)===0)if(oi!=null&&oi.data){$n(100),ft(oi==null?void 0:oi.data);return}else Pe.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898");Nt(!1),$n()}),ei=()=>De(void 0,null,function*(){const nr=tn();(0,he.RG)(nr)}),Jr=["uploading","error"].includes((it=Ht==null?void 0:Ht[0])==null?void 0:it.status);return oe.createElement(oe.Fragment,null,oe.createElement(me.Z,{visible:bn,totalCount:ct,usedCount:fn,onCancel:()=>An(!1),onOk:()=>Lr(!1)}),oe.createElement(Ie.Z,{title:"\u667A\u80FD\u51FA\u9898",extra:oe.createElement("div",{className:St.extraHeader},oe.createElement(ke.Z,{align:"middle"},!Ot&&!!gn&&oe.createElement(oe.Fragment,null,oe.createElement($e.op,{onClick:Rn,className:"mr15",shape:"default"},"\u4FDD\u5B58\u8BD5\u9898"),oe.createElement($e.op,{onClick:ei,shape:"default",type:"text"},oe.createElement("i",{className:"iconfont icon-fuzhi8 mr5 font14"}),"\u590D\u5236")),oe.createElement("i",{onClick:()=>{const nr=Wr=>{Ve.default.confirm({centered:!0,icon:null,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Wr,onOk:()=>{yn(!1)}})};if(Ot){nr("\u6B63\u5728\u751F\u6210\u8BD5\u9898\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else gn?nr("\u8BD5\u9898\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F"):yn(!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:Yt},oe.createElement("div",{className:St.wrap},oe.createElement("div",{className:St.left},oe.createElement("div",{className:St.tip},oe.createElement("img",{src:Ae}),oe.createElement("span",null,"\u60A8\u597D\uFF01\u6211\u662F\u60A8\u7684\u667A\u80FD\u51FA\u9898\u52A9\u624B\uFF0C\u6211\u5DF2\u5B66\u4E60\u4E86\u5E73\u53F0\u4EE5\u53CA\u4E92\u8054\u7F51\u4E0A\u6D77\u91CF\u7684\u8BD5\u9898\u77E5\u8BC6\u5E93\u3002\u53EF\u4EE5\u6839\u636E\u60A8\u7684\u8981\u6C42\u548C\u4E0A\u4F20\u7684\u6750\u6599\u7075\u6D3B\u751F\u6210\u5404\u7C7B\u8BD5\u9898\u3002\u6B22\u8FCE\u968F\u65F6\u4E0E\u6211\u4E92\u52A8\uFF0C\u8BA9\u6211\u4EEC\u4E00\u8D77\u6253\u9020\u66F4\u9AD8\u6548\u3001\u66F4\u4F18\u8D28\u7684\u8BD5\u9898\uFF01")),oe.createElement("div",{className:"mb10 mt20 c-black"},oe.createElement("b",null,"\u51FA\u9898\u8981\u6C42")),oe.createElement(Te.default.TextArea,{style:{height:160},className:"mb20",value:Yn,placeholder:vt,onChange:nr=>{Vt(nr.target.value)}}),oe.createElement(Ge.default,{accept:".doc,.docx,.pdf,.png,.jpg",action:`${It.Z.API_SERVER}/api/attachments.json`,maxCount:1,fileList:Ht,withCredentials:!0,data:{upload_type:1},beforeUpload:nn,onChange:({file:nr})=>{var Wr,oi;nr.status!=="removed"&&(nr.status==="done"&&((Wr=nr==null?void 0:nr.response)==null?void 0:Wr.status)!==0&&(nr.status="error",nr.response=(oi=nr==null?void 0:nr.response)==null?void 0:oi.message),Qt([nr]))},onRemove:()=>Qt([])},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($e.op,{style:{borderRadius:2}},oe.createElement("i",{className:"icon-shangchuan3 mr5"}),"\u4E0A\u4F20\u6750\u6599"))),oe.createElement("div",{className:"c-black mt20"},oe.createElement("div",{className:"mb10 c-black"},oe.createElement("b",null,"\u51FA\u9898\u6570\u91CF"),oe.createElement("span",{className:"c-grey-999"},"\uFF08\u4E3A\u4FDD\u8BC1\u51FA\u9898\u4F53\u9A8C\uFF0C\u5355\u6B21\u51FA\u9898\u603B\u6570\u91CF\u4E0D\u80FD\u8D85\u8FC7",oe.createElement("span",{style:{padding:"0 6px",color:"#FB901F"}},"50"),"\u9053\uFF09")),oe.createElement(ke.Z,{style:{gap:16}},oe.createElement(Ke.Z,null,oe.createElement("label",null,"\u5355\u9009\u9898"),oe.createElement(He.Z,{min:0,max:10,value:Bn,onChange:Mt,style:{marginLeft:"8px"}})),oe.createElement(Ke.Z,null,oe.createElement("label",null,"\u591A\u9009\u9898"),oe.createElement(He.Z,{min:0,max:10,value:Hn,onChange:ur,style:{marginLeft:"8px"}})),oe.createElement(Ke.Z,null,oe.createElement("label",null,"\u5224\u65AD\u9898"),oe.createElement(He.Z,{min:0,max:10,value:at,onChange:_e,style:{marginLeft:"8px"}})),oe.createElement(Ke.Z,null,oe.createElement("label",null,"\u586B\u7A7A\u9898"),oe.createElement(He.Z,{min:0,max:10,value:Re,onChange:Xe,style:{marginLeft:"8px"}})),oe.createElement(Ke.Z,null,oe.createElement("label",null,"\u7B80\u7B54\u9898"),oe.createElement(He.Z,{min:0,max:10,value:st,onChange:Be,style:{marginLeft:"8px"}})),oe.createElement(Ke.Z,null,oe.createElement("label",null,"\u7EC4\u5408\u9898"),oe.createElement(He.Z,{min:0,max:10,value:Dt,onChange:_t,style:{marginLeft:"8px"}})),oe.createElement(Ke.Z,null,oe.createElement("label",null,"\u7F16\u7A0B\u9898"),oe.createElement(He.Z,{min:0,max:10,value:Et,onChange:En,style:{marginLeft:"8px"}})),oe.createElement(Ke.Z,null,oe.createElement("label",null,"\u7A0B\u5E8F\u586B\u7A7A\u9898"),oe.createElement(He.Z,{min:0,max:10,value:sn,onChange:Mn,style:{marginLeft:"8px"}})))),Ot?oe.createElement("div",{onClick:Zt,className:St.bottomBtn},oe.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u51FA\u9898"):Jr?oe.createElement("div",{className:`${St.bottomBtn} ${St.disabled}`},oe.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898"):oe.createElement("div",{onClick:()=>{Lr()},className:St.bottomBtn},oe.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898")),oe.createElement(be.Z,{onStatusChange:dn,loadingText:"\u8BD5\u9898\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!gt,noRestrictModal:ir,stringTransformer:ee.o,onError:nr=>{Object.prototype.toString.call(nr)==="[object Object]"&&nr.status===-9&&ir(nr.data)}}))),oe.createElement(Ie.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:wt},oe.createElement(ke.Z,{align:"middle",style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},oe.createElement("img",{src:ae(36413),alt:"\u667A\u80FD\u51FA\u9898"}),oe.createElement("span",{className:"ml10"},"\u667A\u80FD\u51FA\u9898")),oe.createElement(Fe.Z,{stickyTop:-24,hideWordFeatures:!0,dataSource:bt,isRefreshItemBank:!0,okText:"\u5BFC\u5165\u9898\u5E93",mode:1,onCancel:()=>Nt(!1),onSuccess:()=>{Nt(!1),yn(!1)}}),oe.createElement("div",{style:{height:70}})),mn("\u5904\u7406\u4E2D"))})},25395:function(We,Ee,ae){"use strict";var oe=ae(59301);const Pe=({scrollBoxRef:Ie,bottomInspectRef:ke,contentRef:Ve,status:Te,rootMargin:Ge="70px",bottomOffset:lt=110})=>{const[Ke,He]=(0,oe.useState)(!0),St=(0,oe.useRef)(!1);return(0,oe.useEffect)(()=>{if(!Ie.current||!ke.current)return;const $e=new IntersectionObserver(([It])=>{var Fe,te,ee,he;if(!document.contains(It.target)){console.log("\u76EE\u6807\u5143\u7D20\u5DF2\u4ECE DOM \u79FB\u9664");return}if(((Fe=It.rootBounds)==null?void 0:Fe.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}He(It.isIntersecting)},{root:Ie.current,rootMargin:Ge,threshold:0});return $e.observe(ke.current),()=>{$e.disconnect()}},[Ie.current,ke.current,Ge]),(0,oe.useEffect)(()=>{if(!Te)return;const $e=Ie.current,It=Ve.current;St.current=!1;let Fe=$e.scrollTop;const te=()=>{const{scrollTop:he,scrollHeight:ue,clientHeight:fe}=$e;he>Fe?he+fe>=ue-lt&&($e.scrollTop=$e.scrollHeight,St.current=!1):he<Fe&&(St.current=!0),Fe=he};$e.addEventListener("scroll",te);const ee=new ResizeObserver(()=>{St.current||($e.scrollTop=$e.scrollHeight)});return ee.observe(It),()=>{setTimeout(()=>{ee.unobserve(It)},250),$e.removeEventListener("scroll",te)}},[Te]),Ke};Ee.Z=Pe},35902:function(We,Ee,ae){"use strict";var oe=ae(59301);const Pe=({contentRef:Ie,status:ke})=>((0,oe.useEffect)(()=>{!ke&&(Ie!=null&&Ie.current)&&Ie.current.querySelectorAll("code[data-text], mathx[data-text]").forEach(Ge=>{Ge.tagName.toLowerCase()==="code"?Ge.parentElement&&(Ge.parentElement.contentEditable="false"):Ge.tagName.toLowerCase()==="mathx"&&(Ge.contentEditable="false")})},[ke]),(Te=!1)=>{const Ge=St=>{const $e={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&nbsp;":" ","&copy;":"\xA9","&reg;":"\xAE","&euro;":"\u20AC"};return St.replace(/&[^;]+;/g,It=>$e[It]||It)};if(!Ie.current)return"";const lt=Ie.current.cloneNode(!0);lt.querySelectorAll("code[data-text], mathx[data-text]").forEach(St=>{let $e=St.getAttribute("data-text");St.tagName.toLowerCase()==="code"?$e=$e.replace(/```.*\n|\n```/g,""):St.tagName.toLowerCase()==="mathx"&&($e=`$$${$e}$$`);const It=document.createTextNode($e);St.parentNode.replaceChild(It,St)}),Te&&lt.querySelectorAll('[data-select="disabled"]').forEach($e=>{var It;const Fe=$e.textContent||"",te=document.createTextNode(Fe+`
`);(It=$e.parentNode)==null||It.replaceChild(te,$e)});let He=lt.innerHTML;return Te||(He=He.replace(/<[^>]*data-select="disabled"[^>]*>.*?<\/[^>]*>/g,"")),He=He.replace(/<p>/g,""),He=He.replace(/<\/p>/g,`
`),He=He.replace(/<br>/g,`
`),He=He.replace(/\r\n/g,`
`),He=He.replace(/<[^>]*>/g,""),He=Ge(He),He});Ee.Z=Pe},91239:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return $e}});var oe=ae(59301),Pe=ae(62957),Ie=ae(77019),ke=ae(60242),Ve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAABYCAYAAAAORCLFAAAAAXNSR0IArs4c6QAAIABJREFUeF7lfQecXFXZ/nNumT6zvWeTTSWkEEJooUgRpSMooiLfxycqTcQGIvipAf1UsNFEUAQBQTpSDCgtIQVTSAgJ6ckm2ZJt2dnd6XPL+fuec8/sZAmSbAKBv/P73Z3ZmXvv3Ps+5+1lGD5kD855cHM8P85xtRqmG1a5H5sqQqz1Q3aZ+/xy2D4/4zBOyGfN0lZe9v0Tt/fj0vZenBAf0MozFgNjAOe2XR1jy8qC7s/OPdT/12Gc/iNxyH4HYlVrctrb3b5bN7Wzj3X1agDXYOgQILgccFwgk+OoKOOY1uT89nPPmldiFnM/EtTdg4vcr0C8uC59xbIt5k3bu/Sgz2Twm4BuAJom78B1AdsG8haQywMOc5BLDPzsD5eXX7cH9/iR2HW/AMFnQXvwEwM/e7vN913b9iMQAPw+wPQBuscNnIBwPCDyQDZHnAEsXtPHzzo6fPG1p/vu/khQeDcvcr8A8cC8xKzV240fuW4AoSAQCAI+H+AzAdMEwADLliBYFmATR2SBZAbY0mWhsyuZvfRM48Tzj4i9vpv3+aHf7QMH4qXVqbPnr8ETqWxIi0SAUEgCURoFDD+QswDuANkswJkEIZ8HkmnA0QBfALj/2U6Mr4kt+u3nOo9vamryS+jEpiUBjQFaJp3WNRYSr1kQGstBtwCdMfm5ZeV1BqYxmMxmIGGoaTZ0x4TuOLZBmoox6K5jGw7t50BzvGMZfReD5gKa60JP5x3tyTULH511wgn2cBH/QIFoH+CVv7h/wUrEjqqNhhkIiEBIgtGXAFrapDgiXVFdDlSWcqQ5Q9YBfCEAHMhlgH8s6kWV5jhXnlPW43Ie45wz7nINjJGOJyIxXWdM12gD0zTxljAAhCXmoSagK3oM/kt7yP0KL+i4IhNBfEbX4/DMss0DX7v02Ip7hwsCHfeBAvG/v3no5mbrqG/U149CaQkQCsttcxuwcgOQtVwEtByivkxLLKotr62KRI2Yfvy4CYzlc0A6DWRSwAuL+3DsKBdHjA/A5RwM3CMyg64BpqEh4NNBBoDGJAB0p8U3W3hdQIXoyiUbyleDIOwEigcSB1xo7oI1O87/+km1j+wNCB8oEB0JXn3NL5/fFB11aqQkAsRiQDgMdPYB85dx9KayqI1afQ3luasSVd0PPHbe5Dxd4NVPpq4/8qjQDxNJIJ2SYDwxrxfjS3I4fXoQ3OWC+IbGSJjAb+oIh02EfBp04gRNyiqJhXwhQZDg7QwPAUFvSTAKrKPA8tChJzr32vbUnWdOLblsb0H4QIG459klV8xZW3FbZfVolBIIpBN8wHPzbXT0ZjC63O4fU5s98eaL6pcV39hrcX52VxZPJRIeR6SBu17oxox6F6dP9Qsb12dq8Bka/KaGWNRELGTA1CV3EE0JCHGzRVwhQSgSU7uiZhEABQ7x+CWVd7sefHHtxJ9/8aD4RwqIm59Y9cKG+ISTS6Imop5u6O538de5aYCncPQBzpf/cFnDPUNv6uUd/BddKVxFnJBKA/0DHL/5awcuOMyPgxs1GBoQMCUIpVETZTEDQZO4wdPaBIbS5koeESDFlN2VgC5a/YVr8oAhE3t5c/K7p06K/WJfgPCBccTSpUvNOW0127rSI2ojISAYAgwT2NTm4KUlAzig2tk0fWblxFknsJ2sjm7Oo4u7sG5HCnXZjARi7WYL987pxE/OjKEiAvh1hoCPIRY2UF3mQzQoRZTucYLiAsUB76R5kZLweES+Q5qHnr2/nEtEOZCx3PjNT64cc/OXpvd9pIBYN8ArZy8caN+Ripkhct6C0oN+Y52Fro40RlU69/z+soovD72peTv4La0pXJnJAJmsFE2PvjKA7X0ZzDojAg0cAZ+GSIChttKHiiiJKCa4ROiFgm4YVAW7Y5149FZ0H7wswkIDtvRk7zqkPnjpvgLhA+OIt7t47fw1uba2Xr8WDAJcBwJRoKXbwoNPxfHpQ4xb77yi4hvFN7a4j1+1NYmb0lkw4VWngc0tDu59pRefmmriYxN8IiYV8muoLTdQX2kgSN65Rs6CDJMI8VNE+aEEVv/vihCKgwZtXaVQOF5cHj/6s4dXLPzIAdHezkOvtjrbV7XoMd0PVNYCZWWATwceeKKfL/5r7zU988YIedua5RM2pXFDRwqfy+alM0diKZkCHnoxia5kFtefEYHOuPA3KmIGmuoNRAMMfgMwikSSIiJJFfVQL4WkGQKS+p+8O2U4FYD0Dkykrebzf7NgwpxZw3fedgXg7nDqPgH+nFvzL1VWGR+fOI4hGpbhDIMIp4FW8sagiU2ui+qUjSnZPEwKcVh5GewjL/vlRRbmr0/h4mNMHFinC/MxEmQYN8JERZTBr3vcoHG47gbPttHhugyuS0JMOM/gfOdnuAxcLwc5fcIHITPYCzoWrFsPBBJ3zT25302qCVy+T4hSdJK9AqIvy8f2MxxiuQgxhh0+YN0IPzYzxpyhFzrm4k0lZ5816r4RdfqnAuYgEEKEKI+XnCQKfXtxJhF1zQGvr3Dx8qoMjhvLceZ0EzroeIYxDSbqy4tBIN3AYfNnAFjeJdDJibIGGAuCsRJoPAoGExw2Ul1vYlv6NJh+8j101JQaAoxiblGii0Te/A3p0088IDz7QwEEf/RRvfXsz/wmwbSLUzlsdDR0w+VR7rDRQR8SPoZ/6DYemRDGa4wxRRHcOJ9HmQ9v+XQ0CY7QB6OtwqYnEDwgKNhHumHeGxyvrc/j8EYH5x9piHVtGgwja3WMrNIQ8LiKiCRMVnDk3GcBLvzBwTAUI/j8YFoIDGEBBD1SnWuwceBk+P0+VJX6UBU1Bh3AIcs0a/HMzU+3jZh1XmPvhwKI5gy/MG3g9vUdOPOcRjZHXdTXZ3P/0ZMwOWbg1FgU54YMRE0Hf6xkuLsuyrppvxte4TOCMbxgMFSSCBBOV1H+gRJBFNPp6gFeWQqs2m7jlIkOzpimg3MuOKGxhkBgIM4S52DymfQD2ZfZ/HNwkfVMT8/sFBcppD/5xdLLBkOqqwsbE+ciHPShqTaEEIVFPN9jKLH7kvaimph55L4GYdhW03qLPx3PInFElF3w7hfF2V/WYkZVhXtp1KedFtTwSFDHr8aHWOv3XuDjykr4U0xnU4iIwnrhMuQd7wPWbAZWtJDV4+C8Q1yMqZb7xMIamuo01JYxwQkmcZQHQsFvEOey4LgOcraFnGXD5TalXGVYFzYYyF2Rr+2chTQ/EEG/joqoIQwIAdEQbqB/W+LWnaPLffskpDGUbsPSEWvyfH48hcVHlbFv787q+O3iZO24+vAV0RC/MKSxR4Iafv7M68g4mvutgSz7UiKF0ak0YxR3aovzZEfCWTyyzP3HZScYP3MdMLKOyksZasoZSoKQ1pEurS7iKAFCcQjDs0ttAtfhAmSxqfiRd9EULhQxccFNTACr4lJDVym9v2a79dUp9e9PQmpYQKxM8cezNozDStjZuwOE2uf2RbxifIP7nViInR/g7PbSctz+3cdgBfqzI60Ur24Z0JN297aWRbeNH1i2zfqYpRlz4QIBnwyNk/ghYhEIwl9QYQyPq4hYrtsO190KhxvgrgEOA+CkD7zXpLTpPbGZYJoOxnRoYtPksxCVnvDyKERgL9yQ/djxBwTn7ck97+6+wwJiQRe/hmv4ZnsnRp03mSmtuLvfiT+sSI8YW+2/PurXjvD/K8B6UDl7fujBbSl+pm7gGbKcVHRBZnkGARABPY8T1ErmfB1crCzKFakzkyXEwCnMzTQBBocPTGwBgNPmE/qDChgGmYc4SobFHTf/iM9w2sG1RDox0H3XHbk7Z+0jf2JYQLzSyqfpPr68t9855Zzx5j92G4EhOz6+Nn9odYlxa2mYtbFE5ttTG0ItapfODL/AMPAA+ROFR5E9X5DjQ8QSAQG+cjADVLCclOAn64lWO3EEKQRTbIz5wciqYj6A02eeXU0CzdMtpFNAugYuUju2J3/0w/aa3//+kvRw77/4uGEBQRmxudv50nTO3XbaaOOcvbmQzz7K9YsPdS6qLtevNl33lgPLtN8xxtwdGX6RZuKPlLcm+is5Xyy7C56w54eI63C2wnVWC4VN+U1yaRhzC76KJDDxEQEy9JmsqeL3pPMn9i+O1gJIxru7v/iFUP2cOfvGwx4WEHS/szfkLwpFjLvWrO2bftkJ5av2Bgw69umVvKaxmt+V11gsmcP3x5TggoCOywvhCRWW3kX4WnGH8oTzlPPOk75wweAIK0ljtFnQkBevdVgCJPEes73XtC8BJ5NNAn3iCAG0VOwy18oQ7473v97+iZ/GIrwrHNKbx/mxpL6eDZs7hg3Eva/yQF2Tuyafs944a2Lg3L0F4oVWPm2bhb8ls2gQRo8rPWyihea5AuQnqI2UNVlN9BygIKIhNwp1iHCHZ1UJnVJk4gpzuSgyOzRKqxJJIaGwpX4gU/ftdgezV9ooDdqIBRxonCPDKkHZRtMg0PmSP7/NZj523jujCrtDm2EDQSe/+3X7K+NHsbs2bBg44SvHlb22O19I+yzdxEs6XPfSvKNV+nS3By7vaHf1y3IujqDPqbBM+BUOJecBmwrNvGfyvCkMQhtJa/pMeOMih+yJMRIoDIj5gVObgIgJhA2g3A8ECBjvc0X04sydUvoFwDy1v7iZ48kVDGETCNL5fEBdBUTcTNOFmZx5fna89rYrKwZ2lw57rSPUCS6+a6l5yscOWeLXs3zJm81HzPLyzP/uQjjnxt1L8ZoFzCQzlLaBHLA5ASSpmo/8LCkRRBi7kElTiloD/GFJdPLCxeYdIgJcUnKIz10GHFINHFQpuaTEBGqDgEFcpkzfIqur2Ico6CKPe+avB15cC4QICAMoDUogqDjOA6Lrpj+zhjmzdk5u7S4oe8UR9CW3vmIdN22i8XJbS/y6848ov+m9vvjeJfy0FPC3ABGUjBMOtCSBNkr+OLKwjMAgQ4U4g8praCNjxfWMlpISQI9JEOgzAYRXgCEsT9q82tmjRgBNMSm+oibQEAb8nogT5nARdyjOKJjCRSC99Dbw+pZBIKoisuSHIsgERN7my04br814r/t/t8/3Ggg68Z+X2X8cWe1+ft2ankO/+on6Nf/uYu5cwh8F8Fklz0n0bBgAenJAlqKuHuEFAERor+CMW95rW+YyrPBgkFCIMgKD7sYzdOg1rfpPjpGiiVYxPY+gEh5yBkUlhhfrotceJRQYJPqSWVnwlreBjW0c6zqBLGcI+TlGlTNRBEEg0LH9affhs6foX9ivQMx6tL/88EOiK3g+2b5kVcux7yaiXlrDK97uw9aAgTDJWVK0vVlgYxIYyEudQJviAsUBAoQ8QM8UjypvBEgQkxKnTVlWihOEe6ABlWHg8Dqp1IkjIj4JBHGGzqWnrhxEgaHnofelpMgMB6WII0Co9mp7D5CygSyV+OnAqCqglHSERtlG94dfPFz/8X4Fgr78D3Ozp02e4Ht2e2vfzz9zWPn3d3VBty7gX7V1/D7kWTkikKbEkscNJJZoE2B4xKeINnEG5SZIDMVGAWnP4yZ5r8xWYVkWuQFTq4GRJZLgxIEhA6gPS6VNhf1kgSmuUCD0JIDymOQucS1cmsJbWoH2Pmkg0AIioPIuBSKBEVXAhhbn3P852nhivwNBF/Dom/nbRtWySzes6zr9guMa3uFx3zifz2MMx5CYoFVK4YstA0CcVrpXgi/kPukDxQWkF/JAKkvsD1RWAm5Mii2SR6RmFBBehFvIHVqxx40U2T9BNOII+t7aEFBJxQt0bCGHIVf1jgSEuFG9GcI+4EA6B2xtAdoGJEA+z1QmkURWmxkAtndj6jdOZsP2p/aJjlCrYNaz7aGjJtYs8JlW3dZN3TMu/Hhjm/rs4UV8wuoMVlMBno9WrgMMpIHOFJAhbiDzUylnBYSXLk1kgP4MkM4ABx4IpD3zlkQSEUMQTKYXRGGCZgBlnlgS6U/yLTw9URcGKkMU7vP0hOdj0HdQETQlrIof9B1UQdJMQCSkDgpREJIWk6drHM4Rz7ILLj6OPbhfOYJzru0ADtCBzJxFVkVFvfFSOpVavb6548QrTxufo4v76UvO9Sld+6GI9NhAJgnE+4F4AkikgRwR3xMFpCeE70BAkC9B2TpLEnjsBCmz6XMiPBFaAUFJOGYA9DypBmiiakKRh5bmK3FEdQioDlNRmuQIFfqOp4BodDAPISKwnv6hcp5NrUBLSmYUyYdQQJAFFmRAHrxjWzc74MrT2AfvRyj030zzwxM6FrkOuKEhlemHbiURNJzU3NpR4YW662x+5W392t4MxpA4sjJA3w6grQvoisvCMSoQIDCE+UogKB9BOXMOMLIBiNuA6QeCAaChVPZTUC6WRBs92yTbNY5DazmCGkfQZML2D/mYAKImBNREgLBf5h9oy1scjsbgJ92h8hoeh5G2piqSt1uA9qw0V0npC6uPCh80oJREnw/Y2u9+47+P1W8dDlfsE9E0i3PtsD7MAcex6kbSPYBuO/BFbAQr/EImi0VGBLaAVAro7AaWrQWenQ/QiqRVT58Ja4m0Mm208oULDdSPBdo7qXIAQBCorgbqSiCTRaZX40qrPACMKHVQGeBwXA7H4WCcMhMcMR9QHmCiKE2A49OQznOEIrrIhQtHz0s4KVM2mwaWtQEdWUnwiF9yGPlCYQ2oIY/dFCJzwckHs2P2GxD0xU9u41OCJVjiWgioiuvurRzlIQc8xOGPmjKuWZRRE5aKRsTl+Pk9wNK1pP048bk0V0TEmZ656KHQgwyJJAl1AoIBpUwUM5cHgGhAhh5IFFVVACNjwAHVkkAigVRU/SeLa+RG4omAEmWaghsGs3aUtaBjSVkvamfozwH+EBANyu8if6TMABro/wCQ50gsbUPd1Sez1J6CsU84Qn3p0518lm7gR7SK5WriaN/oYmy1i2xIh+nXCoE6kU0jGpOCpmeL476nOP7yLIdlUaDJayklYBwXFfU6dmx3JFsR9UIMCEvBTwDRKo1SpZ8OTB8NlPmAMeVAjEIaHhDKVCU5LypIPDNUZf2K3xOEIU1NosmmFC7DW9uk30PtBOGAPHddEBgbBQJUmM7Al2/G6CtOZ1v3KxD3NvNARRhLOMeUoO5iSiyFZNbCWxsjqC7XwGIMOnWPGpp03ggEDwhl+Kze4OLuPztYucaBlfJ2cDjKR+nobbE9IABQBxHJB7IlSXP6NTCToSwEHFwn40ojSoCamBRbFCGlTaRZVbq16H8CpwAIca0HlBBTtL/HyQ/MJVCASBgoiwBjKoCJVLVI+SQNeHMjxl5+Btu8X4GgL39sCz/KF8Jc1+HGlOAalOm9yFlBLG+fisYKGxWhjUi4IxELZLC6vxyGzy+tHpVnYJ68TXN0dHK0tLhobXPR1sWxZb2F7V0uetMOLMUZZEMSGB6Vq+s1BDlDRQCoi0gdQlYOiSiS7yr/TeDQRoeSyUpYFsBSFSJkCheDQgXIncAdLwCVMaCmDJjUAEwslx2xDuO5ectY3bVfZHvcM7FPRZNaBU+28VsYcCWJHKKXj5IvFmBYBuqCbchqOhpL4li3ZQBWzZE7dYsUUqAei4jQg0cMMkvJxE2lOXrjHB1dDlo7XLRs52jv4tjh6ujsYRjIM5RS/VOUoSbKEBaKWbYQExBBsrrU6yKQCBhRhUjgeBtZSYI7PCexux/40cNATSnQVANMbwImlAO6BGLlMRO1g/aUG5Q0GM5x//aYP/+Tx4INeJO7GK0S/nRDIZsj6AK6nyNtatIXKApRqIS9zIS9s8FPBPUGRbfQLbRfASjSNQ4VLHP09nPEezn64gz9cY6BASbMUMdmwgQN+pmIJUWCVFE+yC2CcxT3eFJPMByBYQAd/cD3HwLqyoAJI4CjJwCjy6Sl1p1wrz99hj5rOAR9XziCLuThdfxUzYe/Uasaeb/E9iS/zRwXDh1MjpRORcHv9GTFCimycobsUpBihYSQp2cKHnZxjsGT/eTUUW6DzONMiiNFjiTlQBJMmNLkPZP/QhxDPRwEBllGwl+gjcSXDmwfAH7wMNBYDkwdDRw/CWgoAZiP9y9eyw745qcYGdh7/HjfgKAr+csGfj84/otWOK2okhBQFQXScVFtJDI0fSJK5610pSu8shllcqrPiwdwiASmZ1ipjJ1gsCJdU+ycqbxDIXXqhTZE+INWOwDqXN3SAixZIcUYcYwQZcqBM4AuEk2PAmMqgcMmAidNlmKqtc+95Lyj9N/vMQLeAe8rEPcs41WBIFZyjhq6YRIB1TF5Y4kdXJiblsbRY5HFPkhElVNW9r/qUZDVeoOgCcvWC0OoFKpS/AU8vAybLFD2qgKLEkOqn0I809rQgJVrORYulu0DNBmBmmsIEFLqvQPAjx8HJtYAx04FPjaZIgLujV88Vv/ecEF433RE8QXdv5yfr5l4kMQCiSeK31dRQoVRSQpH2OCwdaCXzKCi1VwoJFN1wyqD6ukF4e95IklxBH0kuKYIMHGTisNU2FsVFBT/r0CicInFcc/DsgyTQCAwRMsZ6YE+jhufBCbWMRwxCbnqSvfbP/+8fsfegPCBAEFfcv8K/ozj4ExReWFKMCpiXkx/wBViyjWAHblBMaVqUlX/hFLSitiqaGAnsaRSpkXWsLpJAkO1dImqDvqf/APvfVHWX5Q6ffp5ji1bmGi8JK+ZPHt67k1y/HkuMGoEQ30t/vn0N9jMvQXhAwPivqV8pMWwwnVQKmSyIT3TchF847CyLnSHwedn6MkNSstCdYUnXoTzR2EnL2SuKjcIDK/eQDnDhaI0xRF0VlUrKzxqjxtUz12x6KJ916znePIZJrxoBQJxR3+W496lDHXlwKQ69/7ZV+sXfmSAoAu9YyH/Wo7jdhJRqkGFnqkaojzIEWQcInMXZOhKy6baQgq0uIlFiSMvDFUMguAO732l9z1JJiemFGXk5LSCoponFQPzxBh1sP7qVi4CgQU9EaSULseDK4HGaoaJlfb3/n6teeNHCohHH+X6hnK8mrNwrCAChReoAsLzaMMmxzgKSQSJMzjW9exsRyj1UawDlPIWnUZFYBW4o4hCO+kJDxDVKCPKeooKnFVx8133cLS2ekAQZwSApM3x+FqgoYFhbGnuU6/9IEB9Ynv9eF+tJk+uU94s1N8P319WoOntDsyzbYQpVUrxGTE0iwJzXnPj9CqO2gAjLxVLu2RjIRGpuPK7YGENEUnFNbJDwVAeujJfCxzhVXKogKAAxLOw5i7keOYpIBJlUjyFgIzr4rlNDNUjGEZGchOX/iSwbq9R2LkLeV+cTp6jOR4vzfXhHMMMnsF142DOeDU1rTFdy7T3I7BiGwvMX8vQ3QdUl8j6oChNq/EGaE2v5qgkjvEDr3fItaJqkAr5aU/2kKgrmLSqIaUIIOG5F/VPKPGkxNJOEdkhPRfdvRw3XM8RCmgIRyQQFnPx0laOqlH6wMhy1L0xa/j1rsUU36cc0dXVFYnn/FdZNvu632eUB/0aHK6JagfX5TAM2XLl2ByJPMOibTr+8KomqjNG1wANdUCUoqX/GpZyaA1QY3Jhqby6nQmvt3iSgFeaKu+l0BEkE08FT9x7ocBTTl0xNwiOU1zhOXkFR/JfB876sYPEDoZQWBNAuIaD+a0cFeO0VTtu06fuq+W7z4Bo7UoenMjyRxjjE2jQVceAi7StQzd0aHSnjInYEHddlAUZGmNyBNj2FMONLxhYtY1hZAXQNBIoLZdia0YVMDrAEQ0Bf29joshAKV3BJYobPDkkGlqKuGLoilMmrEpO7SSeCi1cRfkLBvzlKQfz/s4RjdD4IQoN21jaCZSO05/o+6127ltb+Zg3t7nnjK/WDhs1AhUhP5LZHFZzhqfrQmzx7gK1T4Bo60melMqzJ3I5K7axJ4+kayIWCYq5GLpOQTYKIBTyLGLGEjV/lBoOGqI6Ovo5fvp3H9a0SLOwrh4orZT56GkVwNQoF77H7FaGnmyRmFIBwyKFIKaMFQNUJH9Vd5FqBS6IJc9iKmQPi6YXrG928asbbFSU6AIMPWRjZR8w+iDc+sNTtMhAVrsABnzTG+UMKhlO5zBNxk0DL+ZtXNpUyprfC5C9BqItnpqey+tz+hLp2LrOPMxIFH4fTQYggnkzXDU5SYzkM+WQw34NE8sZ3upyYeUyGFtiYnOc4X+fpOwKUFECRMqBEEU1/cCEGHB0OVAR5nihHdiSkNNnZBZtsGC5uBxccYeSU15AVyr9IsKr7J1S4iparOJUGYvjx9/JgTs6SqMG/DEbWzLAydNN65MzYU4dz7EjwUTOXRRQe558wM/RWAmMrkdnJmt94sBaP/WTvetjr4Do6OBh28gv6x1IT9gcd+H6iAs0MU6BNtEXLcTS4GwLpmlijkZ1SI7zaY67iOl5RBnH06v9eOR1HQ1UZR2Tc/xM6j8IAo0h4JNVVC7JsbQfWLrDyzGrinHFFcKRkFsxUMVdp8prL+Syh/gQg/69PNWDd+Sw+k2G0hIDJWUOcpaLH1xhoraBYXsvLbiiPLcK1VNQ0qEUKsch47GJGezgydUs+W5I7BUQ3QnrB4mUdUNLPI+44xeTxMSKEJTnQifQJDEiuCiHVMpTsD6lTKXct20XYyIWWntdfOuxsCh7qawBfF4YhNratCBQ5gfOqQVKTY7mLPBCOxss3VexD8fTEyrXoTjGE1GqMUWFO8Q6KepOFbkQeRPi3HQPyxdZ+NvtNsxyE9VNwFfOAQ6aoqO5SxYdkAGiZnkUE1RcEpV2GsBBjfZ3Z4wz33XQ1rCBIG5gQbu5vSddFecB0VDizZj0ZLTsbyYAaLrYTpNgvNEvBAbdMYEVZRnYGRu3zI1sXNXKttZVsmn+SlTqEVmQJpa3Vzbz6RqgmvIZGvDAZmlRkeIXXFDEEQVRpQoBvesR3FE04UyJqqFiifAgQsYHOO77Wgo87MM1t5g4aQyweLMrFhOV5Mh+78HRdUocyogwlfRQftttbWzcPuE/CO+eAAAMI0lEQVSoxsbMrrhi2ECkc/Y5/Wnnyda4g14Kn+5k4BetfnHDpLRlrGewLK8wEEyQqSZItY1pvNocWXbZcdqMU2/d4K8pHznBX+I7FD7MdIDDchYOcEIIuhpwcjnQ5OfC9/jjBlnqIs5NC0KB4nGJmiSu5L5y7pS+KAAwZOCWMjCIQ9fNteGHjos+D6zbxjGQ5WI0UZCAoHSqN02zmPOpFFOEXTyT+sgJ9p11VeYD1UH8kxo294kfkco6d7TtyFzWnfchQ605kF+qHqqQV968FE3SSpGN5IUYkFdWU0U6I5fBgma9N1QWqNtV//bPnuNlHQxTkwyH5/2YeXQ5P2SEHyMbotD+sgnYOMDewRFkRYmuI8/CoteFiThkAnsjsAWHFFX5KQdyRAyoIl2V5QhYDLVVHK+tdWWhWUAOZSkMcvREmqjCUb3ZqirIAaaM5qivZpTOXWhl8xdNaxj0yofNEXmXv7x2a/LE9pwPgaAuirRUiKGYOXbWC1KW7qp3jUojY04Gi7dpqbposvaEydXvqtgG4eba7DX2sRnHeKgx7Na/3qVZ89pAc/aqxHAVVTHorb1CG1hRQ6PQGR5Dq2EoKjHVEAVm1AIVBrCxA+gQM2k4bNcVBW0RPw11pGJkuicp9wo2g8cNorVMgEE5YyBMtbcUUytl3clc6rjjmqKisWfYQORsvmT11sSh2/N+xCI6tS7t0iDw5tkWPqPVo5QY3TCFxekRNBiiThpLWoxeI7q57rzJcu7r7jxmr+Ajehw8Wh3iR4ws4Q/+6Z/a7dvSzlSbs6O4ps2wbRxA4wWE160oVTQnylNVQm8o8UX1smeNB9w0sHQLkMpJzgqYJJI4SihHQaWXXpmmEEkeOWVEmBcAEK0GXjaR8ih5R4rUyXXu4o8fYM4kMTVsIPIun7e+JXnMxn4TNRVmQSlJ8SQFj7hpJpV2wRShMkeNiYukD4T1ZDJEdFeIpn+2BZf/z0zzkN0BoHgfajd2w/il38DlU2v4csNln5vcyDbSPp/9dX95LhyapkE7TPOxmQ7YdA7eCJ1pSpwqMJSpPaOG4+AyYMFmJoqj6ZaIewIGF92qUa/yg7KOgoieuaWGr6jCBuIEBQLpCvpf5FM4RQ8YxoR6zj3nyJonhg1Eznbu7+zN/tecTQ7GjyTThuiqYg3yi7yKxZ1Sl3IPKgqWZCQQiEtiPI+BRA5v7TBu/fLMyE6DFvcElLvm2xdmuXbboSOYFTRxySEj2OPvOH4W184MZ0exqDmdGWwmM9gRLtgUrqGM7oNW8GUHu1i0SZMgeA8x9o6SWj4uNrp2qWOk1iPul/pBdb1KrlBZxKHgGIaGsJlbdPmxwSOHDUQqb19k2/yPL6xIoLY+JkxUNVFbOUREa9vTHWrlFQoAaKa3xw0md1CmWdjYbfF2HjrqS9N8/9wT4g/d987X+KTuNH90aj2f1FCm3c50fO/Q95gK8NlvtQRzE2omQtcOHVWhffLjo3HuG1ulGKUHEUo011PxsSkHO5J/IMSZR0VVRSJEr8ipe1aTly+RgNDMQaqTleZuyA87394ycthA0OT70gBv3tiejGzoN9FQ5TUXCMnkSUvv7FT0RSyplLkinAq6RZ0MuONgzYD/tfOmBY4fMqd4WJjc+HR3tJ+V/bqxVPvKpDr+pt+nffHIUWz17pyMcz76voXY3E6Fk949ELGJI8hnkCB4YyLUPEKPG5T+c8iK9MzWYq5QKoqug+JwZVGGLS3xqcMGgk6UzvFf5B37qoVrk6iqCSPkN5Cgzh4RB1JGqrz1nO0WLkyMdVAtVdkUIj4NzQMsv22AHfXVI8Nv7A6xdnefqx/PfSEcMG4/fDR8IdO57riHfvpbNmvWv/2NIs556X0L3e3dCS0gdEBRPoPil6p/QqOmD49d1CJT4rjgQ3gBSCWehDoRISAIEEwT7srWzPA5gk64tptHG2Pu+lTWrl24PoUDR5eIxo/tKVLCRbLTW1hk4qYtV8SfuGMjaGVQGjLQkXKxLRe8+guTzV/uLoH3ZL/vPxEflbQi905txAlNlez5mJ6/5PBxgyOJdnWup1a4c9a24jj6nQuRn1AWlRr8Lp6lc6LsE5kvl5y/U4mPpzOkDSNFEoEwrg7oSPCND131+MRhcUQ6nR7x3HPB7ZMOT9xUEja+GQubGhF5dVsWlu5HIOIrzE4lQEQU3DOdsnkqt0+jzOSIhHyI5zVsz5k/P3Wsfu2eEHdP96Wc+aupzLfrq30/mjYK2ZCJ73x8gn4/E9R85+PV9dmTVrYYf0/nmBaJaCKVq+JU0sIaPGxQ3EidoBQ2QSJN2UFdQ8BReqCpWtbg5l33qjNG6L/aYyDyvPlCm/f+bktrfkNJ6OCD1v1rlH1Sj9w9c6Tv5CBzG/uSebT3OUjaOpia003dOdyBCRcRctzCJlymo9vS010pfO/kMfpte0rY4e7/3YcTB6btwD0Hj3aPrC/Tni8L2pfPHB3csqvzPbbcunZbD/+/XJ4xnX7shiw8rzpc07gcOSfDZdIyVEpbpWoLYkkaJtKRZbJwjYaq1PCXF8xdcxoNCNgjIDLO29fZrPfH1LfjWGks31DhJILTv3POWP2W+1ckqg9rDP6iPqJ9wQduWo6LvOUKq0lyhQyP20xDn6U57SnnhY64893zJvt3S4EOl/C7Oo6GuQzYk66Y0GjMmjaKUSzvx40Tjdsms3eOxbtvYe6ceE77WTbPDhhIMjGZOejn8Pu4yCJShTgpXWE9CXHlvRYjhrx0CflL9GtGhvxxEdMHHo04D21sjV92zTFV1DS8e5710qXcnHTw0l/b2o4r6Kd8uEMWQT/a+7LOmpaKU8877PQX1Q3fvzJ34JgK44LqMDvJxzBe0xB1OeM5lyeSFjbsSPFXegbsh8+f6n9rXxJ3OOc6/47OMaFg9OZDxupnNpSzN0O6861PHBgszLFV5yTgRjZMOCyd1acnUijx+WHoBnzBgB4wTIQMU/NrhmaWBHGgZmiNadt9S9Ool5AHGDQfdxBg9OsKJuKAszTt2n/61vTQguJrfk+O4JyHM868+yz0foZAoGyHa/ehP5XDpt7I6wu2Vp4x65RTdjkZ+H/ubQ5MqKmM+oKcv7yyM/H8lbLn+sP2+PLdPWePrw/9cmSNMToSwGMVPvf7R48PbNrT65y9IX9kxtUfXtmujRv6Wxjvda5/C8TAQHulHlzxVwvxo2l0J3Wgu3YcfQN5bIyXzn65ufzzN33qU4K1PuqPi+9aGiotG/OtprrQVRUx3ec3cVd90Ljp8NGsY3fvbWk7D21KuNu7+6zDrjgisH53j/u3oikeX9NkhFa9YCNxAFwTsHNw83H09jvYGK/80+wF9ZfeduVpH8oVvicEGLrvVx7qrJnUELquLBr4imFodtB0fz8iat1y5IjQbv2C8JNb3S1tPc5FX59hvrIn17FLjujufmNGOLbq6ZyTaqDRm8zKwc31ojsOrOut++VZ//jqNf8//nBrMeG+80R81PiR4asNn3EhpaSDBn+s1HTuPHXcTxcztmuHsKOjIzw3W9O2qc0+9bqjzT361ch3AJFMLjyZaUsfzrv5Urg+aFYaTq4Xnb0+d3VPw7WfOf6y95xSticr4cO+7zef6K4bPSJ2sT9gXKRrrJEBK00791Rtqf78J5t6VzFWK5rbeceK8Ev2lJ9sSbLPP7OhY+yzZ9bv0cTLnYDIZ2b/t+W8cVeetLxrQLdSsLP96OgN5FbuaLr0vI9/7U8fdsK9X9dHqdvjDms8MeI3LmAaO4mDVWvcHTBMrTXsYznDwMi+LNfbevPn33BM4B2Tnd/rujwgOEv33XONg1X/Z7t+TXM1CUK6H229ZYnlvRPOv+Dky557r5P9p3xOoBw6pX5KLGQexMGbOIOes9nGDZ252Q98Oto1HDowcv3POuH6XzpY+00bpdBcE3o+gXwqhW29Nd1v9Ew660tnXb5XYenhXNh/2jGsu/uJujD7dbNj1/k1qlXNZZBN5tDcO2rr4h0zTrnk3EvW/qcRZX/crxBNnX2XXFWSXP0LNpBCJqFjQ9+UVYt7Dz3ta1/4WmFo+v64uP+k7yzoiJ4tZ/wk3LHs2rc6j5/3ct/Rn77uwit2/CcRYn/f605W05znvznzT4umLf/TrC9l9/eF/ad9//8DKbvze3g2WI4AAAAASUVORK5CYII=",Te="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGcAAABaCAYAAAClpUiKAAAAAXNSR0IArs4c6QAAIABJREFUeF7VfQmYXFWZ9nvuUtXV+96ddCchIYRFggoCRhBwQUVHdBQFxRFxR0VHxFF0nJ/5f8FRx40BR9SRUX9cArIoQRFURJYIgeyBLCzZO52k051earnLmbxnqbpdqe6uLEKmnqeT6q57zz3ne7/9+84pgSPgdd3dMu33oGmkgM4Q6A6yUXdQiKZHUdTrOKI5mw/+8I03NfwEQsgjYLrP2xTE3/JJ33xYZoIYLSKFzihEdxRHXflC1COjuNfznG4XojvlRF1pRG0ZD/X1Na5bn3JQnwLqfIm6lEBt2kEQCzz61OB17z27/VN/y/keaWMfBDhSXHkPautSaMlLdDkRumNEXVEU9LpC9PiO2+25sjsloq4aJ2qt9UVdfdp16lMC9SmJOh/gexI97TvwXQHHEZASoFjw/0ovKSR+cNezb/7SRUffdaQR8W81nwQ4UvzTnagf9dCKbNAdSqcbMuzKB1EvJHpSKa8r7UbTal3ZWZ+WLY1p1DbVuqKxxkFDWqIhXSJ6je/ASxLdEP5QFuEI4IFVe258+8tbP3oo4/xvuleB8/8elG/L5sJrdw/kZ0LGGc/34HsCvgekPKAuLXDRCS5qUuR0B0JoDrfc/nws2HGAP6/Yc/0FC1ovfz6edyQ8Q3zpXjlfimDJwGA+1d1ZqwApjI5hXoeHgSiFbCjgu8A75wmQe1+oVyRjef3tz77m2kvm/ulwzOHhzTLTWIcOKdEbRZgROZglY8ySDp6MBH7y8jax93A851DGEFcuCq4dGMxe1dRUi7oagXxuDK8/xsO2fArHNYV4uN9XEnLRcc8POJRKMoFwtA0KI2BoNMg9sGbwyx96Vec11SxWSik2DKDB8dEdxpghJGYIB7NdF0c5DmbEMXqDEF1hjIYIEIVAIlsAcgUgiIB8hP5sTn7l3S91vgO8cB6i+OSdhW/v3J37VGNjRoGDKIsz5mWwsl+gMx6E39yMPTng4hMceE41pKl8TSWij+ViZPNBPh9Gg/lQ9ucDbN87Gu0YGctvzQdyc/9woW/jjpG+B58Y2LDie2f025GllO66YbTEIaZJYKYDzHAczPY9HCUczDDS0B5LZMhY+VAiXwDygf4pREAQAmEMxPwxTgivjaF/d1wgDMVZ/3CK+MvBr/rQ7hQfvy04d/dg/vd1tWmkfCAsZHHei1MIQyCTcvHEDkdx8qUn0d7s/7D9iB4CY/kIuXyUyymixzvzBWwfzkZ9w2PB1nwh2NI/GPZt2pPbvnb94I77lgzuxn0PDQNXky7q9adnZY2TQkfaRQ+JLSRmuQKz0zWY6Uj0Sonpki66gE9CBoHUROdPqLk/4g+JXRwVANWyBcJ4htZDLP7Pe/iLA0SheO97TxU/PTQSH/zdyoq89YbdX2psbvxX34VorsmjubEGu0cB3xdIedQxwAdPFpBhhFwh1ESPZH+ugO17R6Ido2P5rYVAbt4xVNixqT+3fe1zgzvuW75zF3776EiS6HaaC1fLej+FLniK43t9YI7n4qi0j5kCmAG66BINQsCJY4kw0JxOgpNpojKO57hkEvV/GS3GeebWXS8DxiIWx0JJjnV0glhe+YHT3G8cPHn1nVdfLZ2rrxZJNqlqyOJazrl24yXtnW2fAGRKCGyPw0JfHEVbnTjaMloI+6anRvo29BX6Hnh86+6JiM4nLlwo3ex8NAcS04SLGS51vsCcVBozXYGZIkavBNoRo44EVYQPDNFDqThdxprI1KKUWnpqrmPea15RYNj/JwLFAiMg4QrAcyXSLpD2gIwP1HhAjS/U7+TB7UMhntzlIZY67opi+Y0PLXCvnIyS71go3bnZ4WZk0l0yDnpjoAfCnekCs+B6PVKiRyDqcBz3oZ27vAu//xERVIVMBUab8r6rV8vUNIE2GaHHcTGDHo4jMMdPYRYEemWMnjhEqwR8cjhVTT4PFAr6PcGgkefiSVwSnbaMP74ri+9dF5qgFpQycKyKcoRUAPqOVG6/JrgmfsYjEIb4rlDPEka2KsW6cRzjD+ti5CJXqUQI8f+3b8fl+exwdyT8HiGiHke4MyXELNf1egDZE0vZHXn9LW7U5AuZRsfutWgbeBqr5rwep3c9iHkta/DztZcCThphVDjhaxc1PDklkc0FkzrH68dk7969uGAgwAl7I8wYDTGjEGBaFKOZNpMqhoTPkfjU9wSAhtaoHhvtKw4ncQ3HK2kQGhgCYAFSvzuay/V7Q3SXxJaK4HUpoNYHalP8m1BgEBQV9CppopxUfiUlTTFOJJErSIzkJIazEkNjMZ7qi5XnFoaSDkMgJaQQTkoIB1LG6ieZxojdLAbOuASpXaejfs1VePfdH8acLYvx1UsfwmuO/j3mty3Hd5Z/DrHIIC6EL/u3i+seP2RwVvXLM2szuGski6bHtwDbhoDhnAaBBlepnwQVrM4vf3DSFlhVZG0EgaCaqU1JNKSAxhqgOQM01UBlHZhbIyC0ewRKR7/6CYqxEw9TY5s/kH6K8IHEaE5ib9b8jOn/R3IxRvPaiaDHZqU4OUa1BORMRo9aCH/wePh7TkLt2C40juxAX9eJyoGqTcWoTbtoafBQk8KZF57qP1Tt2BNKzmO75J0o4PzblgKDWc3pU72SHg+vVcT3yOkSjWlN+JYM0FwLNBOAGi0FJL4aX5gcWwIAa08s4ZV3ZjieBB6xhDf/D+ckxnJSuc9Un7y+KDHGTk21jkqfJ3N/nAvVbZoSnBZoqHHRlAEaawWaagUaMgL1NULZMyvRng9EAc5trxf3Vfv8CUn+m43ylj2DuOCR9eOBUbEAFyy0fajxpMoik9sV8Ul4w/31aa16yEGChJ8gsVkUwDJ9tGs4xqZdkeb8MQlF+LyWiL8V4TVTaVWZYbK2RqAxI9CUcYrEZzxYm9KerJLohIc3EeEJThzh/I468ZtDBufHT8kbxrL42Iqnx4Mzf5rE/G6pOIX6nwZXBaeG66t9cPK6cnD4+5bdEW5dnC+qr4nU5lTPU2Mn8oCUUM/VXprmes3t/CHnEwhmzOlUeI4oatKJsuWTPT+K6azoMTymxUJcOK1BLJxqzvbzCSXnB6vk54MIX1m13qh6CbxyDnDO3JKqoL6wA6j/J4g1JptMJWB4/eJ1ARavD4p2ZKIxxqkby/XKYdDqhcRurHXQZN6T6ykRRVVaBddPNv/kujmXMJYqJgtCiWd3RkryZne6KpEcBbikq0n85JDB+c/V8n37IvObVq7VQ9G7ueilwNz28QHffsHfAep1y9mGwYvzfuLZAH9eY0ICEzwqr055bkKlmpS6URyviU8wSHjaApdcbxyHg+F6TmQ4G6vxKG1BrAmuvNJIFp2ipE2jl8mYjPUphgJDozHaGwSa61yVDoojfKSrQXz/kMH54Wr5Brj47fI1pTTIm04AXtqjhy56XocgPRNJDYm5eXeEp/siNNdpECoZ2cmKc9USoMgUCdVHJqCz8eiGPDoaXLTUO4rgDAcEC4NMQUIDlo+AXAhkmb8r5uwkUg4wv0WocgvVJ0GLJD7dXS++Xe3cJlRr318tX+K4WLriKc0tJNhZc4Cz55ZumTBKr1J6kuDY98XYiLFOyXOudj37XZdUexJSrYPcnqxH2cSnvZkuPNdGh6Q+LfCXAYnhgk6KquwFgzwyqHKM9k8ZkUJpBzilVTsVBEhpmBhf7GwU11a7mAnBuWGlnJH2sHHZU7EYGeWygFNmCLztxc44I211rnJXE5asCs9bhyxlbrMlps0eTGqviqVtTXQOlSS8zZPZMcpjo4nGToJD4t6/U2KMtYUkKGVxlh3bMhnBOa1Ve30NGV2gjGNc290ovnjI4Hx9uaxrSaFvyeqwfteeWC38+C4Hl53F3JOe2YQ5riodg3Jwip6VmX2yREHPh8FvMpYqStvB5KEmoRCdCdqZgZFYeaMP75IYCYyUmIeOC4ANjxUKMaIQSNc6Sq29vE3HQ7SJhg+/3d0gPn3I4EBK8aN12PzYqqBn03adUJ3RKvDPb0yZOGc8OEWwqpSeiVRa8u80/vbFwDMfVrus/a9LOgfMCnA81nWYbuK4zES012uSW3D2jMbwHeCJAWAoD2VrKoFin9a/pYAwkOjoTSGdEljQodVfc12xEPb9rgbxkWpXMan2+dE6+fjyp4KT1z4XKX+9tV7g2remtENg/plMeiYbfDKVZu1Osn40ETj2GVal0aukO0uik/gkPLMFqsBmfqzqKxJJMF0EnNClVbYFZ3A0VoZ8zYDEQM5oYGUHjSdYtsDsaIQgL1Hf4imJWdCp7IxyKPhyHfykvU5ccnjA2SDvXv9MdN7K9aGKhOl1fPn8lHJny0EppkiqtD2TqbSpwAkjiYExS/wSEKqyaYx9kvDJTKgtDpJ4tAdML6VdeoQESFObrjrXu3dMq/MNe4BdWW13KT1JdTrO0JZMKFwhsaDLAetRrQYcP4WFrWlx4WEB5wdr5H/3744vWbY20ql8V+Dzr3dV31klm7MfQJPYnv3ASTgG1rirtI9ZCQGhy8rXUFbiqX6pPaCiHjQ1IFN+SLmW+LpkwN85HvvkbDa8mEcta92y4DBbTYndNAQ80x/BZ/CaNmmo8Y+2NqU4X8rK6dMccN7tDVpyamrw6yZfvOWwgPP91fLa4TF51dI1kckhCVx+joP2Oi3WNoublKJKtqeoBs2sJrM3Vmr4v87J6ZuoqrI0yoDKrW3ao5Oqtl5jiV8qHZTK0pQma2dUA4exM/lI5+io8jjWsZ2aiLQ/DGJ15lpi+zDwxDMBRrOxqg63trioq9UqUK3F2CKV3Tbz5UinTXfA5pGORj1uugb3NvvidYcFnBtXyY8XQnn9X5dHSvdKKfCBBQ5mtSXAKatKTqTeLEBJYPi3ZHxT9MRMSoUEt4ultzZmwFFjGSKwdMHCmDLwxs7wIxr3DbtijLE2Y/oJxmUKyqQukwLmTzMcbvJqTLKOFSR2jQFLnw1UBpxqinatoc5Bd4fLYk9RWtT8I/0500On9TqqXtTZpMdNpfFgS0q88rCA873V8gIp5S0PLtH6hJnli05xcOI07bdbIiWlyIJQKa1TnFRCFRW5L9GOa0EaDw6QDUo3Prs7xnBeSwSJkSQ8VfBLex0s2xorJ4DzI3PZiqu2NVrdWZXH322GmQU8SiAJyyLcnjywfGOIkWxs+hdKAE1r99SyYqlzaipIFSwnCJw600E2J9HVbMBJ4fGWtHjZYQHnxlXyTOHgL39aXFAcQ3DeNN/FmUdrHzeZIRj33jx9P4DKZjWZ1PAzgmPrSFRN5GIrbcu2aMLzZauq1s7U+gI9zQIjefpVUI2SvmMqpQwGVX+AljbTp6Z+76zXkTwBo22iShtiga4ArNgUqsJdZCSDY5AmBKcuI5TUJu1fyoBDVTitRdPLT2F1a1qceFjAuX6ZnOf7WHv/o3nkC1Jx01nHuHjTid74LEGFgNQa8mSqP+l5jvN4KkgNJUGBY0KEJDhc3HBe36RK1Ew0Mu9l2oSp6gITtKo4xtiZQsKlVh08CQnmmJQ22jkLDq9nIDoWCazaHGE0ZyQnARDn2dXqqrgm6eR4npYcStt0A47n4Zm2jDj6oMCRUnYBKAgh9nCA6/8q25wabH94Wc4fGZOKm14y08W7TyU4mtQTOQZJqZmsFpPMfSmpSKRhCE6ymDVqJIfX8X2OzSOG+IrwplGwEuHLCaLUHBtDjCdHD62nSUsOAU+5QknWrr0xClJg1dZIVVhp+5SdUz/6PX9am1xVD7J4M1F62kxHueM9rVpyXBdb22tF7wGDI6WcB+AlAG4RZpPSh5dIf76P7Y+vyrcNDsUqFT+308UHz/RNlqB6gCyS4+xwwoUdl6A0fycX2xQOP7fg8P3SLbGyN1a9Jm2OaqUi4Y0UkNBaGizhjbQl+w4SFNPqUSg3uH8oRiwEVm1jd6pUtkU1LCZAonqjFPKepnoHmRptkyk5e0dj9LZpcBwHu9pr0S2EMAp5cpgUddneuo8ZPwvgOiHEWPKWbz0h1z65vjBv10CITMrB9GaBy84xKZyibansvSVjIStlybEnsjmqckkdbeo36h7anEAnOPlavzM2BNHG3dob5VLTvqg2KP0q015TMq4GVSjp6BuMlPiu2hYpt1hLTUl6rPdGR4DA8XOquM5WF6fNclVNZ0YJnL3ttegUQuSnnIQN5qWUswGcLIT4VflNX39U/vm5zcFZO3YGqqTbUufgo+ekVM5oXCXUuJRJx4CGum8oxvZBXXSa3qz37RRfZcFf0pXmInXQWLqccUeS0GXecDXrreoaCw7nsG1PBM93sGJbpFq+rJQkQdKqTUuPdhSAjhYXZ8x1MTQSY2a7caAcZFGLzk4h9nXCTv2yknM2YzshxF/Lb/nyQ3Jh/87gHTv6A9XkwKLX+8/0lU4uSoN1CNQftBQxn/Xjv+Qwu8PB6XN9VRdRXpXaQVCqUmrJNdxtGsl1rYU2TnOwfVGtHWxVc2pSlK5QjSu+7gRiL0M67WDF1ki70cZLsyAoUEysRenh4rnOxjoHp892lVorggOE6Xp0NQkxUM18LDgMjIQQ4oHym754r/yP0bHwEzv6C2iudVBX4+Di0z1VQCqCkwgKLTd/bVEWFy9I46h2VhEJiv7E2olkftdKjAVKmRJpunv8FxAcAJt3RajLOFi6JSr26pUHszZfp5tHbPwkcFyXwM6hEjhcleOgp6NObD8QcGYCOFcI8V/lN332t/LzYRB9pa8vr1LfBOftJ3toq0uop0QqnRO8d3WgxPx1J6bwdH+Ee1YG6N8bo7lW4G0vS2Ful2skoOTdlBwCE8vIUr+AnRPjnHL3NznfZPqkmsXba6zHqTpGix2oen1szWqodfD45rgY1ymJZhOJr5se6WwoRWIkng6DiqWkxKpNAc55UY0qtatSdYA53c3i2Wrml3QIWKH7NyFEIXnjFYvk+yDjm7ZuzaKp1kV9jYM3neSit2X8Zh01EDlnn5d0zW+y+Mir01i2McL9TwZ4+6kp1YUyOCrxy8VZfPoNGfS2MrLWBCg5Bibza/5AN5pVyYnAISEZxdOmbdkT4xXHeKq0YV8cxv5mCV/836hgPt2WrK3NoFNhc3RMeHY1Odi+V8JNlG3tnDm+7nMT7OhU6lBvQtbP7huMi+kbZvPzEU6Y3iCq6pcurkRK+VqQtkL8LgnOP/5anue48u5Nm8ZURY/gvPZ4D8d2T7CTSgJfXZTFpWenccO9Obzj9BR+vyJAZ5NQNfkFR3s4aaaxQSb8p32xICXtDxdo0/j8nOkb6n2+mDFe/HSALQORyq2xnPzeV9SozywAzGgohqYXZer/tnRd3DBVoYpqXWk2mTz+dAGnHZNSNpbSoohvOlST6rgaSWDvWsbDZ1wP96WAlTZkmejeJDhk5asA3CASBuuTt8tTPB9Lnts0iro0HQJHeSEvO8rwUZI9zbaNf/9tFm87La2I9IdVBbzqBB+PPROis0HgmG5XeXxUB0nPrZiNTnSFKsPK3XbmxUBT7Toz6ofq47o/jOLZgUjFX59+bV1RcpIlhkqLT06bT0hKFjmcEsi/EXwb4VcDQKVrlM1la1SMJV5h6HX1TU3nCaDXGRm5STQ07JwSHMW5Us4A8A/7ioFfE0KobOfHfj42I1WX2bhpy6ig59SYcfDSWS5edZxX0XPigm5+JI/je7XTwK7QR58OlZfXVi8wo9VVuluVHcZ71cXxbBqEnzdnShcV+wiMd7doRQ53r8zjrSfXYPNAhA+eWas4my+Ckw0rqDWTBNWA6DlMlsGoFhBlq4zbH0bI+x62Oi7W53JYzzDJc7B2sA+LZ88WOUvrEHi/B/yukpdsrMT4x0spzwQwHwAbrvs++1PEUQv6Nm3N1rOCQcN23HQXb3mxzhJUCvC4leJ3K0OcNMtThpKtrXcsyeO0uR66m12VYEyqq+QYFhjF2YKN7+Mlh7UXvihF/3z7MC49M4Pjp3lY2xfhRdO9IjgMCLWDYAColspTXKebBtUuO+kI7HF9PBtHWB+GeFK4eBIx1vsBnmtpEYNTPVJKmYqBD8TAM74Q95Rfn+Bd/RHTOPt2UHzBAVYA+BYvuOIubNm8PTc9CiMlOXSP3316Sm8wmuClmtAHJFLsAaMxM5ufqNpaTA7Kut36web5ZjxFWLAxviRhttXV7nYjc9D4Wm9rKmIcyOdKshxu8JUYzEp4nljdVivuj4DVPrDFdzBSX4MlQoh9+1kP/iWldPYlIj7qAI8KIZYkRyrZHECEUrJKd5IH3AjgVQDaAPz4yruxZNuO/EuyY6ECh97LB16ZmjItwsEZjLK8TIKycSKZILATKcc4GUcQnGq2nxw8efSdpeieHqPAn9bkcPvSvHJiRlg3CuW/rvpy29XFOUvZvq+l+w2smgP4fbUpmUrzpATtqxN+Yd9uGZqTYvqsCE5eyre5QKML/NQm5pQHFwfHf+E+/+1b+gpnDw0FKvPKFtnLzkmrFtXka7LovRq9nrzfAtZ6GMHh+BoEHQyriN8Aw6Ia7da6vhDLNwVYvSU0ZWgzE0fcuPLqtnFHu5Dr2WsJgEzNwysWC3HgG3NJw0DKV7L2J0Rp/46ibiDlWQKYu2+T6U3l7p2U+ZMe2ZT62S8fC160YUtBgUPjTnBqEjHI4UyrJGs9rZlShbJa6bBSQAfCgpAsI9BZ2DMmsWkgVmCs3xGqHBrL0to9LsU+6pmOi1gG71pxdccvJuJ8AG8EwMz+z4UQm6uda0ISG7lXwBWlRnchpWwOgU/ty6hfYz208oG/9if578d3xp+5b0VOBWN0qT98VirZLHdYcl6V1Bt3wo1LliZsEhmCUbgFoCgNxlGxkRjjI27d3z4kVbC6dU+MgRFu22cNiBVVlphNrcZs4yBKDRm34HnO42fOdZdc9urMV9trxdbJiC61qqO3y+vuKA/op7g3HQMfdIW4wV5HO3OxCywXQqya6OYrF8lPQkbf6fJ0Zvqx52K86/QUelpLgehkkjNRJnmcQ1D+8ERNh1sTOUYSBCsdxYUY747NHHtzEjuHJXYMQ/2v9rKqGEmqzDIBUY2GPFyCuwPCWNm19npHzm53c/N7ncwxXS66mtzId5ETDupY39snfVe3Z/CtyeoxPNoFwMsBMKi/WQjxTDVSJKXsDoDzU0nJiaT83L5A/BsTSQ0H/qd75AWQ8S1LV4/ixB4Pr1AusYOOBt0eVBLN/adxoLWU0mDjO3OS5QleQxtmS9d7RoH+YQ0IPStWR9WmZ2voTceMjZOo1pgF6GwUmN3uYG6Hg95WRzGedQ4qEdSch3B/IY/3T5Ufk1I27subfgAA82i/nsoWhVJeGAPrUkIsLTJcJOXlrhD/MRm6V/1OvtLx5QN/XTaqIvu2egfvOyOFY7td7M2PPzumggBUwzgVUU3mr3gBNy0NjgG7RiT6h4GBMb1H1Lr0ttRgz7MheGzg4FkFzDSw6YNhwMxWoVqn6IYX00UHMMtUCnviGJ9trcGPJkvBGIfhXBM33jiR2011GAKX7auOX5uUShFJeYUDfHsyZK9aJOf5Gax9ZPkImOPhrrKzj/Xxdy/x1cmDrOWP2k1oFUTlQKWHKobqiRt0NRD8X6sr/t2+bKBpW3ApGTT8zBKT+DNbHRzVJjC9hQf26Xhpsqx2JXx4PVUfX+wzsC/uVPNc/DoI8JHOetE3hT2ZC+C9AH4ohNiUvFZKWbNv79XnPP3ZOJsmClJ+2AfuFkJsmegBV90n22o8bH9k+ajPwxOYKT5ltqfsDidPm0CCjPBkJtMyW8kGVQLJlHlUUnP3qMSOIYkde9kLzQMczHkDxjglywp8b2tD3DI/vYlAOJjZJtDRwJrKwUkFAeYamIlg269tjCcjdNQ7aK0d37PnuuiHxCfaasUtUwDUDIAH+d0phGCAT6+wPgQ+HQN3pIVYWX4/vbXeELho3x4f2p2KTP6OhTJ10jRsf3TFaOvwaKw46NjpLj7xmhrd0GcSntzaziCTzX7ckqcnUHqkjeRpnGkb+oak8qB27pWq1YljKd60YJhbbXxCwjE1zxzdrFahwKCt4H5QStuBSgWHtwlSAjKaj9Vhr6pHQGq7ZJ/tKhWot+13GfCLUqRPG7l5LMCnehvF7olAopQYgHhM2E6TW/tvIcT6SvcoWoRS/j3p6Alxx0QDf/khuW7pqrFjdgyEYMNcb4uLf3lLRlcHEzcRnLq0pu+okSSqJ/YSbBmIFSADo3pLRnnaJZmZtqUBAk61RMPNn65GfQbAgabr7RTVARNmtzPtZbHFyVRe7UEh1IE8oEjzinbX2T+tOQ5oqYOSIvuiBvA8bJbAh9pq9s+T2esoLfsOL/oBwdmXovuSEIIZhoov9TQargh4D6Io57rurZXszzUPy4dWrcu94rkteXie5tZvvqtWJRbVAsy8aaC3DcbYOsCdyHrz0IPrI+wa1WVnlb6xlVMjJrpqqLtt2Agyq83B0R2u6snmniA2DR6MVBBsNhfSJlJaKZ0kOCWDgSYlw7rkjKUoGfydJ49Qohzb0WhUAGMqjqk7TFkF1SqU87Mv10XsePjPaAhXdXSU8m6mw2lBaLIJHrBg32bBXwohnp4UHAMQm6lYZ5g/CvywUYwXz2sekrdu2Jh/+6oNOTUxpm7OOtbDGXN9DGYZaUd4uj9G/7DeeqcOcHWBtjoHp81xlTSt2Bxj+1Bc9K7Y9NHT4uDoThdzOx31nhVTLvVgwdBn3iTAgDCdMSU1RQJTTVnJoDdHr64oGSZLYCVGJ1qZqdDtUslaED/rqBeqgaUoRbp+sz6McWlnBo+GGohXCWCVCywSQuSklA2mHY35tIrdOOOTY6w2Sjk7BVwsgTWudhRU/eHLf5Y3bNtV+Nijq8eUtDjc3aXaX/U+GTZwqK3gorT/RYFontBSJ3DuCT56W4UyuL2triq+0XBPVHqYiKNKKkK713Qm1BmdPK1Kn5OmjEW5ZJTUFBmEc0sQFHovjtUCah+POn9wSiW5AAAN/ElEQVRgPxKpNatnGPNIoKlJ2sqchUwaQVrgYYno+pTrkpbjegKllMcr0IT4bqW17v9k02QYAmc4wKslsNwF7rvmL3j14Gh4xx//OqL35Jf1R9uWKDthuq5sCTpumosTprs4qsNR3Tuq3dU0C3J9tD3V5uXU9cxyB9yaoXug9Q4DZYH0OEblkPBW+nj+YBIMvWimbnRdgqqXRTotFfq0Ql5DxlIq0Egfn6MKakr16Sodn6H8F5bKfWBGi6M8V05Fna7FRhUPy8IQl3bWi2XlIEgpmUy9t5J6qwhOwnh5YRieCs87xwGGvvdQcPJP/5x7XxDGLldE344TJiEYmFI9vaiHgHjKi2Il1BbPLJjJzVX2ACBOggsptU3pGZCRWU8hEemmq7M7FQG1ZCjCGKl1TF0nCNklQ+ZJSgVHYw6N89Fd3np7iVPMSiswjOEn81mPjYTm42JoSVOAU3IMQLSTtK0sKPLvZBrmHpNqjk/3fOSiEP+3ow5fT2ZjmLYBcKEQ4jvlwE0KTgIkXjctQnT2fU/Ky5c+FyygjamtcXDCNALiYVqzo11Pc5P1xGhBbF+XdZNLn+mLlTSZjVLqqOJcrPZ82pOhtOo0rrYBQ7u2GjjPdrtbL9wQT8dF+nA9EpaXkci2hSpWvrsGUnds6t1ylGaqaa0hdA7O4WHnpmioGj083divyuHm3Dadv9MeD8vzVNtJO2aqqA/HApd21Ih1Cfqyd+Ob5TWhqsBJIvrxXxRObqwVjx3dLp1juxx0N1q7YoYq3w5uTg8sdsQkmilUwBcAuUjHGFGsnQi6zylXYjSvm9e5YEUoqqIyw22NubZ/VsVpNUVJJCgqx6aOyS1JlOrIMXaJuxP05iqt2nilbfDQB9oRLK0heI/apc1TTVQxsdTlqjIQMXu4tVPDe48yfdJJGvo+huMYX2jL4Lv0jKWUzMHRJo1rNjxgcPiQD95c+IDnOd9NOWHq+GkOFhzlqnPWSBC9PVGrKHtus/Vu9PbAkqqizeAyCBI5lABqV5UHyWnrxeifnE9jz4qk2kFmALKqR+0o8FjX121LBUbAohTJWzsYS70zwdoTOiO8lM9Tu6tNs6AVRJUdMOcVWKeFWQvbTqzH1UxFYFhGV94bzx0Q/H6Hst7wBEJM/7gO7pExPtSawVkA/nhYwOEzPvTz8PyUh595Tlg3p93FWXMcXYY2e2rs4an8nRNWqfmAxNDqiUZdSUKoG/IIFPeRjy8vaCCoPqjXmSai8Wa8wdQKKaJrOiVVxbmpbEHMbeqa98j1+ow1fXC5UrOmRZhMYfeMsr7DeXJ+SmWpLEfJQeDcPKo5wxwEjvLDai3HbKihM3Bg/O55GGhIYZHv4EOHrNaS4nnZz7JnezX+7R6ilmnNAq871tUHLBg7Yr0nHbcwd6ZzOpZI9jhiewCr4mob1JpjxKwVIyH0oaxaOng2KGnPbYDKmWAAqYJL3aJEaaBrrD0urY5IeAaaOl+mpYLSx4ZE2gttY0o5uXIyW0mlsacjQI+U9yadj3KjPtXvqjspBRnE+FU+wMe7G0Tx5PkDg7nCkz6xMD/fS3mLHIQzePbZm493VXq+vCdN3ypVwwQJmYwxrNphZE6J0txuzpG2KQUTmVN1aM+PHC2Vx0gVyFQKiU342VNN704nXhL7dLRRUp6WCixVbDYxGGqjVKwdCnW4Hvvw9h2UQdt0oJn2SiBxHdQG9PBUCOCiT8a4rL1Op9EOGRwO8uGFYzNrfX+R4+DEGl/iTce76G6oELwZieKxJdy2rlxWElS541oquAtZ74DWQaGTtB3KpZVFl1edsUm1JB3dCWpcZOXa6k3Oaiw6FVpq+AxnwpYubSv1+AScEkK7weccDjCSAKkDXD1uCBsf57kupOvhR7GPKw4LOHzoZTfLlnR9dKuAfDX1+OvmOZjXPr5SWpyc4PcdxCoBmvwSpHLu0nUdne6xRlx5USbXZgM/gmjtQ0RbY+Kf+rR+vt3Srjne7KA2B0VQnalst/IS9ZmfVLva8zq0btByQK0rzmepGI4V2woSQnuY8rDwsIFDwr7vJlnT3Br9UEp5MV3VM49y8LIZZaVsgwAfTMLsHInHxSlWlXDWJBA9QLqmOuA0CUkjTcoZMIQlAJQQG7lPlHVQUb6yF1oVKi9NORpaOggyt8jvUAW+WKmweZ08kLVEqkmlKFkiMapZJXzNrgN6h3SCykGxsSDV+lM7Yjy2Uf71sIJDuvNLFQZeEl8Ty/jzVFkvnibw2nm6Pzr5KrnXUu3dKbq4xuhrm7K/3lWpmqTdMEac6o0LSwakfF7SbjCLTMlgsZDemP5cg8pWKdaYODxVmt3gq9StyoDo+1Rywq6lAkrjbK3pkyseZFHB8HB8VnhXb4uw+OkQa7ZGGC04kLE8/7CDY5//8dsKn5TS+UYhiLyj23jCoVtMrVtgitkEAeweiVR6pdzzURtiTQlUpWocm6LXFUvbNsWxCBBVnA4CGe3TZkBtW1GVUTM5tkHtyepeBIKiA8kEIxg1qgtO2iHnD7PPDLyTUf84hkucp1DOiPZ3mx1h1XfZ5lA1+TPbQmly6e9LZB3X+dE9n0pf/jcDh5P5yML8BVJ4NwX5oL6jHrj4VL0vJ5niSdohHj5Hz8WexanzZuZMgISbbe9R2QEaegWFthutdY7+pg8GxBW+14AG/8ENEcYC+90HJbtCYowTBvOLZqaSVHGvJwuOyYv3E6JEk78txW8dirF0Y4THng2xcXfE03LhctOOjPdCuH+MovDWCPE991/ZuOuweWuV3ET7t/f/LFgAIe4MCkEHm0EuWeCjM9FSVc4dY4VYN4475c6E3v+v6jAqkNW2o4VHNvI4YwbAxsWdiuMI6OJnIuwe0Yaftkzdk0BH/cW07vKrXdrqWJFlcS1hfyrssrCJXhp1qlluu1y2OcbyzaHa5aYcG5fbZ+QuIcQ9sYxvyQZjf3zocx37NcRPtY7J6F71Z+/9cW6edJzfhoVwDiXhPS/3cUxncRPffv58LohVs4e1H7Qz5PgaTyciaTvoiVm7sR+XJVaVlIbke4655NkIG3eVqVKTLM2kJLqagN4WgbYG/SzbYDKRxNB+sLb01PYIizeEWLklVCknepeOo9a7VQhxdwz8ajTe+cAjV8zITkbE5wUcTuAdN410uzL1a5YgyPkXnOLj9Nn6DJ0yplW/M6BkRkEbaG2MaTfsVsJkqdsuYr/FmD9MvEiJJ7fFWM2+I+6iy0hMb4E6L4Gbi5M1ITtRPd+SElMGPS+xZmuMx54L8eQ2npGjvUaWJCCcDZDxbyKEtw/WNSx+/G/55UZVi0uFC8+7bndjXab+5iiK/y4MY5x7goc3nqQynPu9iq5wme4uAlG2KaqoliaKrBMGv+jGmje0dfb7UHXtJvFK2B3FRGYClOyVmyMseS5UqotZald9h6qIhXBWxVF0ZxThjj8+tmg5bnlnVceplBPheZMc++BTbpT+TBFcF4XRR8MgUntL37MgVbQXxQCgwklSdgzr8WhDa1NF5lhJC06ZaquGqay9sNcmvUkyC3dtL90U4YmNoeok0s0gSl0FwnEelXF8e+iEd/3pHxvNlwxU89SJr3newbFTefN3s/8iI/yfIIycYzodXPbqdPHUDKvnTEij8Eq+Ty6nCJTRjeULKo+vkiFK+bVJj0tnJySe2x3jiY0Rlm8KVS82Xy5zLFJmhev+RYbRbYEvFt3/ydoJmzIPFqIXDBxO+Lzrsu8XEN+NwyDd1SRw+bk1yvsqGl6zqnHgmPakoupJhNpJlWftWFHaylZa7jYrL8oBsgWJDTsoHRHWbIswOKbzftrDigeFcO+DDH4V5eS9f/hC44QNhAcLSDnjHY5xDnqM139n5A2O4/9CRIUmbgb+6KtqVI9zeUeOBkjrOttrVi5R1u6UHITSKb77TdDYIBKeTY9Pbo+wdKMOCNnJoww6K2IC2yDxOyC+FeHwA7//bPfoQS/2AG98QSXHzvW860Zf6rvebxwEPUyd8MycF03nbrLxGVtrE9TOs+L2jtJWj6RNsv65VmulQ1KtGmTejKmSpZtCbNwV6whdpXT4pbXOOonwbkTy9q0j9YtXXz3+VJMDpPFBX35EgMPZv/H67Kw6X/zWc6PjmcU470QfL5+jvzehPIlp1V5xe6CxSaozpiywsWAQTfZl86zO5Zsj1ZWqygwOPSwngnBWxlF4p3D8O+4d8lfgIL509aBRmODGIwYczu/vr5dtDQ3Bba4Tn8X8ANMkrznOnj5bYQXWo0vu4zRAqbMCYolNu5kyiVVAmDTorJALx3s0jgq3x/Du+sNnaordMIebyAc73hEFDhfxjoUy0xQEN7mOvJDb0+jJveXF+sChckfBCkkxZWIidLYF091dvTVShyGpdLw26KPCcf8cR9GvRIjf3fu5um0HS7jn474jDhwDkNuO8GtCxlfIOFY7C84/yQdbepNfBE5QaNB5guG6HTGWbQrVSR7DKinCb1/1mHofkELcG8fhbaGo//39n576ZI3ng/DVPOOIBMdO/LKFwRUC8muQkepWYrP77Da9w4ETZ0GM6RLGIkwysnmDJeswxOYgxt1RGN4+FNc98MgVYtIcVjWEeiGuOaLBIUE+tjB/oSPc/4qjgDuaiw5CScWxKCdkLJ11hUJ0VxTGt62XmccOJIf1QhC+mmce8eBwER//Wf5Fwne/GEt5LuKolV1TcNzdEO7aKAzuiyR+/cN1qVVHgodVDdGrveZ/BTh2MR++Ufpey2ib8OqC/vCWwVveeXAJxWqJ80Jf9z8TdKFBFentJgAAAABJRU5ErkJggg==",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"},Ke=ae(59301);const He=["\u6587\u4EF6\u89E3\u6790\u8BFB\u53D6\u4E2D","\u5185\u5BB9\u7406\u89E3\u5206\u6790\u4E2D","\u7ED3\u6784\u5316\u63D0\u53D6\u4E2D"];var $e=()=>{const[It,Fe]=(0,oe.useState)(0),[te,ee]=(0,oe.useState)(!1),[he,ue]=(0,oe.useState)(!0),fe=(0,oe.useRef)(null);(0,oe.useEffect)(()=>{if(he)return;const nt=()=>{Fe(Je=>Je>=99?(clearInterval(fe.current),99):Je+1)};return fe.current=setInterval(nt,5e4/99),()=>clearInterval(fe.current)},[he]);const me=()=>{Fe(0),ee(!0),ue(!1)},be=(nt=0)=>{ue(!0),Fe(nt),ee(!1)},Ae=nt=>{const Je=nt/1048576;let ot;return Je<=.3?ot=3:Je<=.5?ot=5:Je<=1?ot=10:Je<=2?ot=20:Je<=3?ot=30:Je<=10?ot=Je*10:ot=100,` \u9884\u8BA1\u5904\u7406\u65F6\u957F\u4E3A${ot}\u5206\u949F\uFF0C\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3`},De=()=>Ke.createElement("span",{className:lt.dotLoading},Ke.createElement("span",null,"."),Ke.createElement("span",null,"."),Ke.createElement("span",null,"."));return{progress:It,progressOpen:te,openProgress:me,closeProgress:be,toggleLock:()=>ue(nt=>!nt),CreateProgressModal:(nt=He,Je)=>(typeof nt=="string"&&(nt=[nt,nt,nt]),Ke.createElement(Pe.default,{centered:!0,closable:!1,destroyOnClose:!0,zIndex:1200,open:te,title:null,footer:null,width:500,afterClose:()=>Fe(0)},Ke.createElement(Ie.Z,{align:"middle",className:"mt40 mb20",style:{flexDirection:"column"}},It<=30&&Ke.createElement(Ke.Fragment,null,Ke.createElement("img",{src:Ve,alt:"Step 1"}),Ke.createElement("div",{className:"mt20 c-light-primary"},nt[0],De())),It>30&&It<60&&Ke.createElement(Ke.Fragment,null,Ke.createElement("img",{src:Te,alt:"Step 2"}),Ke.createElement("div",{className:"mt20 c-light-primary"},nt[1],De())),It>=60&&Ke.createElement(Ke.Fragment,null,Ke.createElement("img",{src:Ge,alt:"Step 3"}),Ke.createElement("div",{className:"mt20 c-light-primary"},nt[2],De())),Ke.createElement(ke.Z,{className:lt.progress,status:"active",style:{width:"auto"},size:[300,8],percent:It}),!!Je&&Ke.createElement("div",{className:"c-grey-999"},Ae(Je)))))}}},74368:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return ct}});var oe=ae(59301),Pe=ae(75727),Ie=ae(6767),ke=ae(25399),Ve=ae(37568),Te=ae(99571),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"},He=({position:Jt,children:fn})=>{const{left:kt=0,top:bn=0}=Jt||{},[An,Yn]=(0,oe.useState)(kt),[Vt,Bn]=(0,oe.useState)(bn),Mt=(0,oe.useRef)(null),Hn=()=>{if(Mt.current){const ur=Mt.current.offsetWidth,at=Mt.current.offsetHeight,_e=window.innerWidth,Re=window.innerHeight;let Xe=kt,st=bn;kt+ur>_e&&(Xe=_e-ur),Xe<0&&(Xe=0),bn+at>Re&&(st=Re-at),st<0&&(st=0),Yn(Xe),Bn(st)}};return(0,oe.useEffect)(()=>{if(!Mt.current||!Jt)return;const ur=new ResizeObserver(()=>{Hn()});return ur.observe(Mt.current),()=>{ur.disconnect()}},[kt,bn,Jt]),(0,oe.useEffect)(()=>{Jt&&Hn()},[kt,bn,Jt]),Jt?oe.createElement("div",{ref:Mt,style:{position:"fixed",left:`${An}px`,top:`${Vt}px`,zIndex:1050}},fn):null},St=ae(346),$e=ae(56102),It=ae(85788),Fe=Object.defineProperty,te=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,me=(Jt,fn,kt)=>fn in Jt?Fe(Jt,fn,{enumerable:!0,configurable:!0,writable:!0,value:kt}):Jt[fn]=kt,be=(Jt,fn)=>{for(var kt in fn||(fn={}))ue.call(fn,kt)&&me(Jt,kt,fn[kt]);if(he)for(var kt of he(fn))fe.call(fn,kt)&&me(Jt,kt,fn[kt]);return Jt},Ae=(Jt,fn)=>te(Jt,ee(fn)),De=(Jt,fn,kt)=>new Promise((bn,An)=>{var Yn=Mt=>{try{Bn(kt.next(Mt))}catch(Hn){An(Hn)}},Vt=Mt=>{try{Bn(kt.throw(Mt))}catch(Hn){An(Hn)}},Bn=Mt=>Mt.done?bn(Mt.value):Promise.resolve(Mt.value).then(Yn,Vt);Bn((kt=kt.apply(Jt,fn)).next())}),nt=({visible:Jt,position:fn,selectText:kt,applyRefinedText:bn,fetchUrl:An,noRestrictModal:Yn})=>{var Vt;const[Bn,Mt]=(0,oe.useState)(!1),[Hn,ur]=(0,oe.useState)([]),[at,_e]=(0,oe.useState)(""),[Re,Xe]=(0,oe.useState)(1),[st,Be]=(0,oe.useState)(""),[Et,En]=(0,oe.useState)(!1),sn=(0,oe.useRef)(null),[Mn,Dt]=(0,oe.useState)(!1),[_t,jt]=(0,oe.useState)(0),dn=(0,oe.useRef)(!1),Sn=((Vt=Hn==null?void 0:Hn[(Hn==null?void 0:Hn.length)-1])==null?void 0:Vt.loading)===!0;(0,oe.useEffect)(()=>{if(Jt){Xe(1);return}Dt(!1),Mt(!1),gn(),jt(0),ur([]),Xe(0)},[Jt]);const gn=()=>{var Lr,Rn;_e(""),Be(""),(Rn=(Lr=sn.current)==null?void 0:Lr.cancelRequest)==null||Rn.call(Lr)},Ot=(...Lr)=>De(void 0,[...Lr],function*(Rn="",ei=Hn){const Jr=Date.now(),nr=[...ei,{text:Rn,key:Jr,sender:"user",show:!0},{loading:!0,key:Jr,sender:"AI",show:!0}];Xe(2),ur(nr);const Wr=Zt(ei),oi={no_record_times:!0,prompt:Rn,history:Wr};sn.current=new It.Z(St.Z.API_SERVER+An,oi),yield new Promise(Oe=>{sn.current.on("data",cr=>{const{chunk:{msg:Cr},full:or}=cr,kr=Cr==="error";Dt(!0),Be(gt(or)),ur(Fr=>Fr.map((Or,mi)=>mi===Fr.length-1?Ae(be({},Or),{text:or,loading:!1,error:kr}):Or))}),sn.current.on("done",()=>Oe()),sn.current.on("error",cr=>{const Cr="\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(cr)==="[object Object]"&&cr.status===-9&&(Xe(1),Yn(cr.data)),ur(or=>or.map((kr,Fr)=>Fr===or.length-1?Ae(be({},kr),{text:Cr,loading:!1,error:!0}):kr)),Oe()}),sn.current.on("cancelled",()=>Oe()),sn.current.startStream()}),Mt(!1)}),Pn=Lr=>{_e(Lr.target.value)},Zt=Lr=>Lr.reduce((ei,Jr)=>{if(Jr.sender==="user"){const nr=Lr.find(Wr=>Wr.key===Jr.key&&Wr.sender==="AI");nr&&(nr!=null&&nr.text)&&!(nr!=null&&nr.error)&&ei.push({question:Jr.text,answer:nr.text})}return ei},[]),tn=()=>{if($r)return;const Lr=Xn("\u6539\u5199");gn(),Mt(!0),Ot(Lr)},vn=Lr=>{if(Lr.key==="Enter"&&!Lr.shiftKey){if(Lr.preventDefault(),dn.current||vr)return;tn()}},$n=()=>{var Lr,Rn;jt(ei=>ei+1),(Rn=(Lr=sn.current)==null?void 0:Lr.cancelRequest)==null||Rn.call(Lr),Mt(!1),Dt(!1)},mn=[{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")}],gt=(Lr="")=>{const Rn=["\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((ei,Jr)=>{Rn.push(`\u7B54\u6848${Jr+1}\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${Jr+1})\u8F93\u5165\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${Jr+1})\u8F93\u51FA\uFF1A`)}),Rn.forEach(ei=>{const Jr=new RegExp(ei,"g");Lr=Lr.replace(Jr,`**${ei}** `)}),Lr},Xn=Lr=>Lr==="\u6539\u5199"?`${at}\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${Lr}\u4E0A\u9762\u8FD9\u53E5\u8BDD\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`,ir=Lr=>{let Rn="";Lr.key==="1"&&(Rn=Xn("\u6DA6\u8272")),Lr.key==="2"&&(Rn=Xn("\u6269\u5199")),Lr.key==="3"&&(Rn=Xn("\u7F29\u5199")),gn(),Mt(!0),Ot(Rn)},nn=()=>{const Lr=Hn.splice(Hn.length-2),{text:Rn}=(Lr==null?void 0:Lr[0])||{};gn(),Mt(!0),Ot(Rn,Hn)},vr=Bn||Mn,$r=(at==null?void 0:at.trim())==="";return Jt?oe.createElement(Pe.Z,{open:$r&&!vr&&(Et||!st),overlayStyle:{minWidth:200},menu:{items:mn,onClick:ir}},oe.createElement(He,{position:fn},oe.createElement("div",{className:lt.wrap},Re===2&&oe.createElement(oe.Fragment,null,oe.createElement("div",{className:lt.chatContainer},Sn&&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:_t,streamingStatus:Bn,loadImage:!1,onFinish:()=>De(void 0,null,function*(){jt(0),setTimeout(()=>Dt(!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($e.CopyToClipboard,{text:st,onCopy:()=>Ie.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},oe.createElement(ke.Z,{title:"\u590D\u5236"},oe.createElement("div",{className:lt.btn,style:{marginLeft:"auto"}},oe.createElement("i",{className:"iconfont icon-fuzhi8 font14"})))),oe.createElement(ke.Z,{title:"\u91CD\u65B0\u751F\u6210"},oe.createElement("div",{onClick:nn,className:lt.btn},oe.createElement("i",{className:"iciconfontonfot icon-gengxin-genghuan-tihuan font17"}))),oe.createElement(ke.Z,{title:"\u5220\u9664"},oe.createElement("div",{onClick:()=>{Xe(1),gn(),ur([])},className:lt.btn},oe.createElement("i",{className:"iconfont icon-shanchu14 font14"}))))),oe.createElement("div",{className:lt.inputContainer},oe.createElement(Ve.default.TextArea,{placeholder:"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u7684\u6587\u672C\u4F18\u5316\u5EFA\u8BAE",value:at,bordered:!1,onFocus:()=>En(!0),onBlur:()=>setTimeout(()=>En(!1),300),onChange:Pn,onPressEnter:vn,onCompositionStart:()=>dn.current=!0,onCompositionEnd:()=>dn.current=!1}),Mn?oe.createElement("div",{className:`iconfont icon-tingzhihuida ${lt.cancelBtn}`,onClick:$n}):oe.createElement(Te.ZP,{className:$r?lt.sendBtnDisabled:lt.sendBtn,icon:oe.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:vr,onClick:tn}))))):oe.createElement(oe.Fragment,null)},Je={"hover-line-container":"hover-line-container___kkYQN","hover-line-content":"hover-line-content___ZkD9e","line-button-container":"line-button-container___A79j9",button:"button___X_Iu7"},ot=Object.defineProperty,mt=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,wt=(Jt,fn,kt)=>fn in Jt?ot(Jt,fn,{enumerable:!0,configurable:!0,writable:!0,value:kt}):Jt[fn]=kt,Nt=(Jt,fn)=>{for(var kt in fn||(fn={}))it.call(fn,kt)&&wt(Jt,kt,fn[kt]);if(mt)for(var kt of mt(fn))vt.call(fn,kt)&&wt(Jt,kt,fn[kt]);return Jt};const Ht=Jt=>React.createElement("svg",Nt({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Jt),React.createElement("title",null,"AI\u6539\u5199"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"26.797%",y1:"22.073%",x2:"82.181%",y2:"80.474%",id:"rewrite_svg__a"},React.createElement("stop",{stopColor:"#5C64FF",offset:"0%"}),React.createElement("stop",{stopColor:"#6988F8",offset:"100%"}))),React.createElement("path",{d:"m10.406 4.741.007.015h-.007v-.022.007Zm-.04-.04.855-1.495 1.497-.855-1.496-.855L10.366 0l-.854 1.497-1.497.855 1.496.854.855 1.495ZM3.1 8.442l1.71 3.1 1.603-3.1 3.1-1.71L6.52 5.023l-1.71-3.1-1.71 3.1L0 6.733l3.099 1.709H3.1Zm6.84 3.1 1.069 1.924 1.068-1.924L14 10.473l-1.924-1.069-1.069-1.923L9.94 9.405l-1.924 1.068 1.924 1.07v-.001Z",fill:"url(#rewrite_svg__a)",fillRule:"nonzero"}));var Qt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIyNi43OTclIiB5MT0iMjIuMDczJSIgeDI9IjgyLjE4MSUiIHkyPSI4MC40NzQlIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iIzVDNjRGRiIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiM2OTg4RjgiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Im0xMC40MDYgNC43NDEuMDA3LjAxNWgtLjAwN3YtLjAyMi4wMDdabS0uMDQtLjA0Ljg1NS0xLjQ5NSAxLjQ5Ny0uODU1LTEuNDk2LS44NTVMMTAuMzY2IDBsLS44NTQgMS40OTctMS40OTcuODU1IDEuNDk2Ljg1NC44NTUgMS40OTVaTTMuMSA4LjQ0MmwxLjcxIDMuMSAxLjYwMy0zLjEgMy4xLTEuNzFMNi41MiA1LjAyM2wtMS43MS0zLjEtMS43MSAzLjFMMCA2LjczM2wzLjA5OSAxLjcwOUgzLjFabTYuODQgMy4xIDEuMDY5IDEuOTI0IDEuMDY4LTEuOTI0TDE0IDEwLjQ3M2wtMS45MjQtMS4wNjktMS4wNjktMS45MjNMOS45NCA5LjQwNWwtMS45MjQgMS4wNjggMS45MjQgMS4wN3YtLjAwMVoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",yn=(0,oe.forwardRef)(({initialContent:Jt,onButtonClick:fn},kt)=>{const[bn,An]=(0,oe.useState)(null),[Yn,Vt]=(0,oe.useState)(null),[Bn,Mt]=(0,oe.useState)(""),[Hn,ur]=(0,oe.useState)(null),at=kt,_e=sn=>{const Mn=document.elementFromPoint(10,sn),Dt=document.createRange();let _t=null;const jt=document.createTreeWalker(at.current,NodeFilter.SHOW_TEXT,{acceptNode:tn=>{const vn=document.createRange();vn.selectNodeContents(tn);const $n=vn.getBoundingClientRect();return $n.top<=sn&&$n.bottom>=sn?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let dn="",Sn,gn,Ot=null,Pn=null,Zt=null;for(;Sn=jt.nextNode();){Sn.parentNode.getAttribute("data-select")==="disabled"&&(gn=!0),dn+=Sn.textContent,Pn||(Pn=Sn),Zt=Sn;const tn=document.createRange();tn.selectNodeContents(Sn);const vn=tn.getBoundingClientRect();Ot===null&&(Ot=vn.top)}if(Pn&&Zt&&!gn){const tn=document.createRange();tn.setStart(Pn,0),tn.setEnd(Zt,Zt.textContent.length),ur(tn)}else ur(null);return Vt(Ot-1),gn?"":dn.trim()};function Re(sn){for(;sn.parentElement&&sn.parentElement.tagName.toLowerCase()!=="section";){var Mn=window.getComputedStyle(sn.parentElement);if(Mn.pointerEvents==="none")return!0;sn=sn.parentElement}return!1}const Xe=sn=>{var Mn,Dt;if(Re(sn.target)){Vt(-1e6);return}if(((Dt=(Mn=document.getSelection())==null?void 0:Mn.toString)==null?void 0:Dt.call(Mn))!==""){Vt(-1e6);return}const _t=_e(sn.clientY);if((_t==null?void 0:_t.trim())===""){Vt(-1e6);return}const jt=at.current.getBoundingClientRect();An(jt.left-30),Mt(_t)},st=()=>{},Be=sn=>{fn&&Bn&&fn(Bn,sn.clientX,sn.clientY,Hn)},Et=()=>{if(Hn){const sn=window.getSelection();sn.removeAllRanges(),sn.addRange(Hn)}},En=()=>{window.getSelection().removeAllRanges()};return(0,oe.useEffect)(()=>{const sn=at.current;return sn.addEventListener("mousemove",Xe),sn.addEventListener("mouseleave",st),()=>{sn.removeEventListener("mousemove",Xe),sn.removeEventListener("mouseleave",st),En()}},[Jt]),oe.createElement("div",{className:Je["hover-line-container2"]},Yn!==null&&oe.createElement("div",{className:Je["line-button-container"],style:{top:Yn,left:bn},onMouseEnter:()=>{Et()},onMouseLeave:()=>{En(),Vt(null),Mt(""),ur(null)}},oe.createElement("div",{className:Je.button,onClick:Be},oe.createElement("img",{src:Qt}),oe.createElement("span",null,"AI\u6539\u5199"))))}),bt={toolbar:"toolbar___qYQBF","chat-dialog":"chat-dialog___AUJYU",button:"button___VhNes"},ct=({nodeRef:Jt,noRestrictModal:fn})=>{const[kt,bn]=(0,oe.useState)(null),[An,Yn]=(0,oe.useState)(null),[Vt,Bn]=(0,oe.useState)(!1),[Mt,Hn]=(0,oe.useState)(null),[ur,at]=(0,oe.useState)(!1),[_e,Re]=(0,oe.useState)(!1),Xe=Jt,st=(0,oe.useRef)(null),Be=(0,oe.useRef)(null),[Et,En]=(0,oe.useState)("");(0,oe.useEffect)(()=>{kt!=null&&kt.toString()&&En(kt==null?void 0:kt.toString())},[kt==null?void 0:kt.toString()]);const sn=()=>{const jt=window.getSelection(),dn=Xe.current.scrollTop,Sn=Xe.current.getBoundingClientRect();if(jt.rangeCount>0&&jt.toString().length>0){const gn=jt.getRangeAt(0);bn(gn.cloneRange());const Ot=gn.getBoundingClientRect(),Pn=40;let Zt=Ot.top+dn-5+Pn;Zt<dn&&(Zt=Ot.bottom-Sn.top+dn+5);const tn=Xe.current.scrollHeight-Pn;Zt=Math.min(Math.max(Zt,dn),tn),Yn({top:Zt+6,left:Ot.left})}else bn(null),Yn(null),Bn(!1);Mn(jt)},Mn=jt=>{if(!jt||jt.rangeCount===0){at(!1);return}const Sn=jt.getRangeAt(0).getBoundingClientRect(),gn=window.getComputedStyle(Xe.current),Ot=parseInt(gn.lineHeight),Pn=parseInt(gn.paddingTop),Zt=Xe.current.scrollTop,tn=Xe.current.getBoundingClientRect(),vn=Sn.top-tn.top+Zt,$n=Math.floor((vn-Pn)/Ot),mn=Pn+$n*Ot-Zt;Hn(mn),at(!0)},Dt=jt=>{Xe.current&&!Xe.current.contains(jt.target)&&Re(!1)};(0,oe.useEffect)(()=>{const jt=Xe.current;return jt.addEventListener("scroll",sn),jt.addEventListener("input",sn),jt.addEventListener("click",sn),jt.addEventListener("mouseup",sn),jt.addEventListener("keyup",sn),jt.addEventListener("click",sn),document.addEventListener("mousedown",Dt),()=>{jt.removeEventListener("scroll",sn),jt.removeEventListener("input",sn),jt.removeEventListener("click",sn),jt.removeEventListener("mouseup",sn),jt.removeEventListener("keyup",sn),jt.removeEventListener("click",sn),document.removeEventListener("mousedown",Dt)}},[]);const _t=(jt=!0,dn)=>{if(!kt)return;const Sn=Be.current.querySelector("section.edu_md").innerHTML.replace(/<p[^>]*>([\s\S]*?)<\/p>/g,"$1"),gn=kt.cloneRange(),Ot=window.getSelection();if(Ot.removeAllRanges(),Ot.addRange(gn),jt){gn.deleteContents();const Pn=document.createElement("div");Pn.innerHTML=Sn;const Zt=Array.from(Pn.childNodes);for(;Zt.length>0;)gn.insertNode(Zt.pop())}else{gn.collapse(!1);const Pn=document.createElement("div");Pn.innerHTML=" "+Sn;const Zt=Array.from(Pn.childNodes);for(;Zt.length>0;)gn.insertNode(Zt.pop())}Ot.removeAllRanges(),bn(null),Bn(!1),Yn(null)};return oe.createElement("section",{ref:Be},An&&oe.createElement("div",{ref:st,className:bt.toolbar,style:{top:An==null?void 0:An.top,left:An==null?void 0:An.left}},oe.createElement("div",{className:bt.button,onClick:()=>Bn(!0)},oe.createElement("img",{src:Qt}),oe.createElement("span",null,"AI\u6539\u5199"))),oe.createElement(nt,{key:JSON.stringify(An),noRestrictModal:fn,visible:Vt,position:An,selectText:Et,applyRefinedText:_t,fetchUrl:"/api/stream/intelligent_imports/stream.json"}),Xe.current&&oe.createElement(yn,{ref:Xe,onButtonClick:(jt,dn,Sn,gn)=>{bn(gn),Bn(!0),En(jt),Yn({left:dn,top:Sn+20})}}))}},85020:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Ve}});var oe=ae(59301),Pe=ae(62957),Ie={num:"num___VQiqB"},Ve=({visible:Te,usedCount:Ge,totalCount:lt,onOk:Ke,onCancel:He})=>{const St=()=>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:Ie.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:Ie.num},Ge),"\u6B21\uFF09\u3002");return oe.createElement(Pe.default,{centered:!0,open:Te,title:"\u63D0\u793A",width:620,onCancel:He,onOk:Ke,footer:Ge>0?void 0:null},St())}},25872:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return ee},Q:function(){return Fe}});var oe=ae(59301),Pe={container:"container___DAVRd",katex:"katex___oS9Qs",liWrap:"liWrap___pAkIe",backBottom:"backBottom___kT237",imgBox:"imgBox___O8q6M"},Ie=ae(85788),ke=ae(346),Ve=ae(10946),Te=ae(74368),Ge=ae(25395),lt=ae(74549),Ke="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==",He=ae(92310),St=ae.n(He),$e=ae(6767),It=(he,ue,fe)=>new Promise((me,be)=>{var Ae=nt=>{try{Ye(fe.next(nt))}catch(Je){be(Je)}},De=nt=>{try{Ye(fe.throw(nt))}catch(Je){be(Je)}},Ye=nt=>nt.done?me(nt.value):Promise.resolve(nt.value).then(Ae,De);Ye((fe=fe.apply(he,ue)).next())});const Fe={contentRef:{current:null},value:null,status:!1,open:()=>It(void 0,null,function*(){}),close:()=>{}};var ee=({className:he,style:ue,onChange:fe,onSuccess:me,onCancel:be,onError:Ae,fetchUrl:De,noRestrictModal:Ye=()=>{},showEditableToolbar:nt,bottomOffset:Je=110,loadingText:ot,showEmptyData:mt=!0,onStatusChange:it,stringTransformer:vt,bottomContainerNode:wt})=>{const[Nt,Ht]=(0,oe.useState)(!1),[Qt,Yt]=(0,oe.useState)(""),[yn,bt]=(0,oe.useState)(0),[ft,ct]=(0,oe.useState)(!1),Jt=(0,oe.useRef)(null),fn=(0,oe.useRef)(null),kt=(0,oe.useRef)(null),bn=(0,oe.useRef)(null),An=(0,Ge.Z)({scrollBoxRef:bn,bottomInspectRef:kt,contentRef:fn,status:ft,bottomOffset:Je}),Yn=Nt||ft;(0,oe.useEffect)(()=>{fe==null||fe(Qt)},[Qt]),(0,oe.useEffect)(()=>{it==null||it({contentRef:fn,status:Yn,value:Qt,open:Vt,close:Bn})},[Yn,Qt]);const Vt=Hn=>It(void 0,null,function*(){Ht(!0),Yt(""),bt(0);const ur=De;Hn!=null&&Hn.fetchUrl&&delete Hn.fetchUrl,Jt.current=new Ie.Z(`${ke.Z.API_SERVER}${ur}`,Hn),yield new Promise((at,_e)=>{Jt.current.on("data",Re=>{let{chunk:{content:Xe,type:st}}=Re;ct(!0),st==="text"&&Yt(Be=>vt?vt(Be+Xe):Be+Xe)}),Jt.current.on("done",()=>{at()}),Jt.current.on("error",Re=>{Object.prototype.toString.call(Re)==="[object Object]"&&Re.status===-1&&$e.ZP.warning((Re==null?void 0:Re.message)||""),at(),Ae==null||Ae(Re)}),Jt.current.on("cancelled",()=>{at(),be==null||be()}),Jt.current.startStream()}),Ht(!1)}),Bn=()=>{var Hn,ur;bt(1),(ur=(Hn=Jt.current)==null?void 0:Hn.cancelRequest)==null||ur.call(Hn),Ht(!1),ct(!1)},Mt=(0,oe.useMemo)(()=>fn.current?oe.createElement(Te.Z,{noRestrictModal:Ye,nodeRef:fn}):oe.createElement(oe.Fragment,null),[fn.current]);return oe.createElement(oe.Fragment,null,oe.createElement("div",{className:St()(Pe.container,he),style:ue,ref:bn},oe.createElement("div",{ref:fn,className:Pe.liWrap,contentEditable:!Yn},Qt&&oe.createElement(Ve.Z,{cancelIndex:yn,streamingStatus:Nt,loadImage:!1,onFinish:()=>It(void 0,null,function*(){bt(0),setTimeout(()=>ct(!1),0),me==null||me(Qt)}),value:Qt})),!Qt&&!Yn&&oe.createElement("div",{className:Pe.imgBox},oe.createElement("img",{width:56,src:Ke}),oe.createElement("span",null,"\u9884\u89C8\u533A")),mt&&Yn&&oe.createElement(lt.Z,{text:ot}),!An&&oe.createElement("div",{className:Pe.backBottom,onClick:()=>{bn.current.scrollTop=bn.current.scrollHeight}},oe.createElement("i",{className:"iconfont icon-huidaodibu"})),oe.createElement("div",{ref:kt}),wt),!Yn&&nt&&Mt)}},74549:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return ke}});var oe=ae(59301),Pe={loading:"loading___SifAS",dot:"dot___J5R0d","dot-fade":"dot-fade___BPUGC"},ke=({text:Ve})=>oe.createElement("div",null,oe.createElement("div",{className:Pe.loading},oe.createElement("div",{className:Pe.dot}),oe.createElement("div",{className:Pe.dot}),oe.createElement("div",{className:Pe.dot})),!!Ve&&oe.createElement("div",{className:"mt5"},Ve))},72409:function(We,Ee,ae){"use strict";ae.d(Ee,{o:function(){return oe}});const oe=Pe=>(Pe=Pe.replace(new RegExp("(?<!\\*)\\*\\*\\*\\*([^\\n*]+?)\\*\\*\\*\\*(?!\\*)","g"),'<h2 data-select="disabled" data-type="title" contenteditable="false" class="c-black">$1</h2>'),Pe=Pe.replace(new RegExp("(?<!\\*)\\*\\*\\*([^\\n*]+?)\\*\\*\\*(?!\\*)","g"),`
<h3 data-select="disabled" contenteditable="false" class="c-black font18">$1</h3>
`),Pe)},50337:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return ke}});var oe=ae(59301),Pe={digitalLabel:"digitalLabel___tImKs",active:"active___Ck70Q"},ke=({number:Ve,active:Te,className:Ge})=>oe.createElement("div",{className:`${Pe.digitalLabel} ${Te?Pe.active:""} ${Ge}`},Ve)},38518:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return ue}});var oe=ae(59301),Pe=ae(18287),Ie={folderWrapper:"folderWrapper___G__0a",folderIcon:"folderIcon___oTG6c"},ke=ae(73631),Ve=ae(5623),Te=ae(46722),Ge=Object.defineProperty,lt=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,It=(fe,me,be)=>me in fe?Ge(fe,me,{enumerable:!0,configurable:!0,writable:!0,value:be}):fe[me]=be,Fe=(fe,me)=>{for(var be in me||(me={}))St.call(me,be)&&It(fe,be,me[be]);if(He)for(var be of He(me))$e.call(me,be)&&It(fe,be,me[be]);return fe},te=(fe,me)=>lt(fe,Ke(me)),ee=(fe,me,be)=>new Promise((Ae,De)=>{var Ye=ot=>{try{Je(be.next(ot))}catch(mt){De(mt)}},nt=ot=>{try{Je(be.throw(ot))}catch(mt){De(mt)}},Je=ot=>ot.done?Ae(ot.value):Promise.resolve(ot.value).then(Ye,nt);Je((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 wt=[{title:"\u6839\u76EE\u5F55",value:0,key:0,icon:oe.createElement("img",{src:ke,className:Ie.folderIcon}),isLeaf:!1,children:nt(vt.data||[])}];De(wt)}}),nt=vt=>vt.map(wt=>({title:wt.name,key:wt.group_id,icon:oe.createElement("img",{src:ke,className:Ie.folderIcon}),isLeaf:wt.children.length===0,children:nt(wt.children)})),Je=(vt,wt,Nt)=>vt.map(Ht=>Ht.key===wt?Fe(Fe({},Ht),Nt):Ht.children?te(Fe({},Ht),{children:Je(Ht.children,wt,Nt)}):Ht),ot=(vt,wt,Nt)=>vt.map(Ht=>{if(Ht.key===wt)return te(Fe({},Ht),{icon:Nt?oe.createElement("img",{src:Ve,className:Ie.folderIcon}):oe.createElement("img",{src:ke,className:Ie.folderIcon})});if(Ht.children)return te(Fe({},Ht),{children:ot(Ht.children,wt,Nt)})}),mt=(vt,wt)=>{De(Nt=>ot(Nt,wt.node.key,wt.expanded))},it=fe?{selectedKeys:fe,defaultExpandedKeys:fe}:{};return Ae.length>0&&oe.createElement("div",{id:be||""},oe.createElement(Pe.default,Fe({showLine:{showLeafIcon:!1},showIcon:!0,treeData:Ae,className:Ie.folderWrapper,onSelect:me,onExpand:mt},it)))}},94361:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Te}});var oe=ae(37639),Pe={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},Ie=ae(32637),ke=ae(59301),Te=({type:Ge,style:lt})=>{const Ke=ke.createElement("div",{className:Pe.wrap,onClick:He=>{He.preventDefault(),He.stopPropagation()}},ke.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",ke.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"),ke.createElement("div",{className:Pe.contact},ke.createElement("div",{className:Pe.img},ke.createElement("img",{src:Ie,width:"124px",height:"124px"})),ke.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return ke.createElement(oe.Z,{content:Ke},ke.createElement("span",{className:Pe.text,style:lt},"\u9AD8\u6D88\u8017"))}},9507:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return St}});var oe=ae(59301),Pe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ie=ae(92310),ke=ae.n(Ie),Ve=ae(29787),Te=ae(2859),Ge=ae(38986),lt=ae(51257),Ke=($e,It,Fe)=>new Promise((te,ee)=>{var he=me=>{try{fe(Fe.next(me))}catch(be){ee(be)}},ue=me=>{try{fe(Fe.throw(me))}catch(be){ee(be)}},fe=me=>me.done?te(me.value):Promise.resolve(me.value).then(he,ue);fe((Fe=Fe.apply($e,It)).next())}),St=({data:$e,className:It,fullWidth:Fe,style:te={},onClose:ee,onOk:he,showFullTools:ue,noAssociationId:fe})=>{const me=(0,oe.useRef)(null),be=(0,oe.useRef)(null),Ae=(0,oe.useRef)(null),De=(0,oe.useRef)(null),[Ye,nt]=(0,oe.useState)(!1),[Je,ot]=(0,oe.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,oe.useEffect)(()=>(Ae.current||(Ae.current=document.createElement("style"),document.head.appendChild(Ae.current)),$e!=null&&$e.visible?(document.body.setAttribute("data-custom","y-hidden"),Ae.current.innerHTML=" html { overflow-y: hidden; }",$e!=null&&$e.src&&mt()):(document.body.removeAttribute("data-custom"),Ae.current&&(document.head.removeChild(Ae.current),Ae.current=null)),()=>{document.body.removeAttribute("data-custom"),Ae.current&&(document.head.removeChild(Ae.current),Ae.current=null)}),[$e==null?void 0:$e.visible]);const mt=()=>Ke(void 0,null,function*(){nt(!0),ot("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Nt=yield(0,lt.ZJ)($e==null?void 0:$e.src);me.current.src="",me.current.src=Nt,me.current.onload=function(){wt()},nt(!1),ot("")}),it=Nt=>Ke(void 0,null,function*(){nt(!0),ot("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ht=yield(0,Ge.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:$e.title,file:Nt.dataUrl}});Ht!=null&&Ht.id&&!fe?(yield(0,Ge.ZP)(`/api/attachments/${$e.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ht==null?void 0:Ht.id,settings:JSON.stringify(Nt.state)}})).status===0&&he():Ht!=null&&Ht.id&&he(Ht),nt(!1),ot("")}),vt=()=>{const Nt=document.querySelector('a[href="https://markerjs.com/"]');Nt&&Nt.parentNode&&(Nt.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Qt=>{const Yt=document.querySelector(Qt.name);Yt&&Yt.setAttribute("title",Qt.title)})},wt=()=>{be.current=new Te.hP(me.current),be.current.targetRoot=De.current,be.current.addEventListener("render",it),be.current.addEventListener("beforeclose",ee),ue&&(be.current.availableMarkerTypes=be.current.ALL_MARKER_TYPES,be.current.uiStyleSettings.redoButtonVisible=!0,be.current.uiStyleSettings.notesButtonVisible=!0,be.current.uiStyleSettings.zoomButtonVisible=!0,be.current.uiStyleSettings.zoomOutButtonVisible=!0,be.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=be.current.uiStyleSettings,be.current.show(),$e!=null&&$e.snapshotData&&be.current.restoreState($e.snapshotData),setTimeout(()=>{window.scrollTo(0,0),vt()},300)};return oe.createElement(oe.Fragment,null,($e==null?void 0:$e.visible)&&oe.createElement(Ve.Z,{spinning:Ye,tip:Je,style:{position:"absolute",width:"100vw"}},oe.createElement("div",{ref:De,className:ke()(Pe.imageDimensions,It,Fe?Pe.fullWidth:""),style:te},oe.createElement("img",{className:Pe.img,ref:me}))))}},50043:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Re},$:function(){return _e}});var oe=ae(59301),Pe={flex_box_center:"flex_box_center___ILe3s",flex_space_between:"flex_space_between___c0XhE",flex_box_vertical_center:"flex_box_vertical_center___Iusj1",flex_box_center_end:"flex_box_center_end___DIVMO",flex_box_column:"flex_box_column___x06LA",intelligentBox:"intelligentBox___M5xO7",red:"red___oyEWt",imgBox:"imgBox___DdoNI",underpin:"underpin___fwUex",row:"row___W9MrK",leftLayout:"leftLayout___MMjoZ",rightLayout:"rightLayout___EsxRX",head:"head___Q7Od8",centerBox:"centerBox___j58Ut",title:"title___rMcNx",tip:"tip___gLHFS",leftBox:"leftBox___DJ6lp",question:"question___THjM9",rightBox:"rightBox___CuMdf",error:"error___PHzCG",actionHead:"actionHead___vTHMx",edit:"edit___EaRLy",option:"option___z4UTy",active:"active___o8wNJ",fill:"fill___g760n",text:"text___L_lug",liWrap:"liWrap___LDwxe",li:"li___k4Mcf",buttonFixed:"buttonFixed___QxKdm",buttonWrap:"buttonWrap___OEep5",button:"button___b2y4h",menu:"menu___aQ4xO",tabs:"tabs___QmlP4",dotLoading:"dotLoading___zUYOu",showHide:"showHide___fHrAG"},Ie=ae(92310),ke=ae.n(Ie),Ve=ae(28284),Te=ae(6767),Ge=ae(62957),lt=ae(71051),Ke=ae(77019),He=ae(62673),St=ae(75727),$e=ae(14566),It=ae(99571),Fe=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),nt=ae(5623),Je=ae(8944),ot=ae(19105),mt=ae(17077),it=ae(15342),vt=ae.n(it),wt=(Xe,st,Be)=>new Promise((Et,En)=>{var sn=_t=>{try{Dt(Be.next(_t))}catch(jt){En(jt)}},Mn=_t=>{try{Dt(Be.throw(_t))}catch(jt){En(jt)}},Dt=_t=>_t.done?Et(_t.value):Promise.resolve(_t.value).then(sn,Mn);Dt((Be=Be.apply(Xe,st)).next())}),Ht=oe.memo(({tagName:Xe="div",value:st="",className:Be,style:Et={},onBlur:En,id:sn})=>{const Mn=(0,oe.useRef)(null);(0,oe.useEffect)(()=>{if(!Mn.current)return;wt(void 0,null,function*(){const jt=Mn.current;jt.innerHTML="";const dn=st==null?void 0:st.split(/(`?\$\$[\s\S]*?\$\$`?)/g);for(const Sn of dn)if(Sn.startsWith("$$")&&Sn.endsWith("$$")||Sn.startsWith("`$$")&&Sn.endsWith("$$`")){const gn=Sn.startsWith("`$$")?Sn.slice(3,-3):Sn.slice(2,-2),Ot=document.createElement("span");Ot.setAttribute("contentEditable","false"),Ot.setAttribute("title",Sn),Ot.className="edu_latex",jt.appendChild(Ot),vt().render(gn,Ot,{throwOnError:!1})}else{const gn=Sn==null?void 0:Sn.replace(/<[^>]*>/g,Ot=>Ot.startsWith("<img")?Ot:Ot.replace(/</g,"&lt;"));jt.insertAdjacentHTML("beforeend",gn)}})},[sn]);const Dt=()=>{var _t,jt;if(En&&Mn.current){const Sn=Mn.current.cloneNode(!0),gn=Sn.querySelectorAll("span.edu_latex");for(let Ot of gn){const Pn=Ot.getAttribute("title"),Zt=document.createTextNode(Pn||""),tn=Ot;(jt=(_t=tn.parentNode)==null?void 0:_t.replaceChild)==null||jt.call(_t,Zt,tn)}En(Sn.innerHTML)}};return oe.createElement(oe.Fragment,null,oe.createElement(Xe,{ref:Mn,contentEditable:!0,className:Be,style:Et,onBlur:Dt}))}),Qt=ae(48790),Yt=ae(49535),yn=ae(82105),bt=Object.defineProperty,ft=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,Jt=Object.getOwnPropertySymbols,fn=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,bn=(Xe,st,Be)=>st in Xe?bt(Xe,st,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Xe[st]=Be,An=(Xe,st)=>{for(var Be in st||(st={}))fn.call(st,Be)&&bn(Xe,Be,st[Be]);if(Jt)for(var Be of Jt(st))kt.call(st,Be)&&bn(Xe,Be,st[Be]);return Xe},Yn=(Xe,st)=>ft(Xe,ct(st)),Vt=(Xe,st,Be)=>new Promise((Et,En)=>{var sn=_t=>{try{Dt(Be.next(_t))}catch(jt){En(jt)}},Mn=_t=>{try{Dt(Be.throw(_t))}catch(jt){En(jt)}},Dt=_t=>_t.done?Et(_t.value):Promise.resolve(_t.value).then(sn,Mn);Dt((Be=Be.apply(Xe,st)).next())});const Bn=Xe=>{Xe.preventDefault();let Be=(Xe.clipboardData||window.clipboardData).getData("Text");document.execCommand("insertText",!1,Be)},Mt=Xe=>{Xe.key==="Enter"&&Xe.preventDefault()},Hn=({children:Xe,style:st})=>oe.createElement("div",{className:Pe.leftBox,style:st,onPaste:Bn},Xe),ur=({children:Xe,style:st,className:Be})=>oe.createElement("div",{className:ke()(Pe.rightBox,Be),style:st,onPaste:Bn},Xe),at=({className:Xe,style:st={},width:Be=1200,onCancel:Et=()=>{},onSuccess:En=()=>{},gather:sn={},mode:Mn=1,stickyTop:Dt=0,subDisciplineId:_t=[],hideWordFeatures:jt,dataSource:dn=[],customLeftHeadNode:Sn,customRightHeadNode:gn,customLeftContent:Ot,hideRecognition:Pn=!1,onExchange:Zt,isSingleSelection:tn=!1,underpinBackgroundStyle:vn={},headExtraNode:$n,isRefreshItemBank:mn=!1,okText:gt="\u786E\u5B9A\u5BFC\u5165",onSave:Xn})=>{var ir;const[nn,vr]=(0,oe.useState)(1),[$r,Lr]=(0,oe.useState)(0),[Rn,ei]=(0,oe.useState)(""),[Jr,nr]=(0,oe.useState)(!1),[Wr,oi]=(0,oe.useState)([]),[Oe,cr]=(0,oe.useState)([]),[Cr,or]=(0,oe.useState)(!1),[kr,Fr]=(0,oe.useState)(!1),[Or,mi]=(0,oe.useState)(!1),[Ti,hn]=(0,oe.useState)(!1),[Cn,pn]=(0,oe.useState)([]),[Kr,Yr]=(0,oe.useState)(1),[Vr,dr]=(0,oe.useState)(!1),[Gr,bi]=(0,oe.useState)(!0),[Ai,Oi]=(0,oe.useState)(0),[xt,on]=(0,oe.useState)(!1),[br]=Ve.default.useForm(),[Br]=Ve.default.useForm(),Xt=(0,oe.useRef)(null),fr=(0,oe.useRef)(null),Tn=(0,oe.useRef)(),un=(0,oe.useRef)(null),Ue=["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"],Nr=["C","C++","Java","Python","JavaScript","Ruby"];(0,oe.useEffect)(()=>{dn!=null&&dn.length&&_r(dn)},[dn]),(0,oe.useEffect)(()=>{nn===2&&Xt.current.focus()},[nn]),(0,oe.useEffect)(()=>{Or&&zn()},[Or]);const jr=()=>{if(nn===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:()=>Vt(void 0,null,function*(){vr(1)})})},zn=()=>Vt(void 0,null,function*(){const ht=yield(0,De.ZP)("/api/disciplines.json",{method:"get",params:{source:Mn===1?"new_question":"subject"}});pn(ht.disciplines||[])}),vi=ht=>{const xn=[],wn=(jn,On)=>{jn.length>=2&&xn.push(jn.join(""));for(let sr=On;sr<ht.length;sr++)jn.push(ht[sr]),wn(jn,sr+1),jn.pop()};return wn([],0),xn},Xr=ht=>(ht=ht||"",ht=String(ht),ht=ht.replace(/\s+/g,""),ht),ci=ht=>(ht=ht||"",ht=String(ht),ht=ht.replace(/<div>/g,""),ht=ht.replace(/<br>/g,`
`),ht=ht.replace(/<\/div>/g,`
`),ht=cn(ht),ht),Gn=ht=>ht.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"),cn=ht=>ht.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&#39;/g,"'"),Ci=ht=>{var xn;const wn=ht.clipboardData;if(wn){const jn=wn.types.toString(),On=wn.items;if(jn==="Files"||wn.types.indexOf("Files")>-1){ht.preventDefault();try{let sr=On[1];((xn=On[0])==null?void 0:xn.kind)==="file"&&(sr=On[0]);const Un=sr.getAsFile();(0,mt.I)(Un,ln=>{var qn;if(ln.id){if(((qn=Un==null?void 0:Un.type)==null?void 0:qn.indexOf("image"))>-1){const Ur=`<img src='${ue.Z.API_SERVER}${ln.url}'>`;document.execCommand("insertText",!1,Ur)}}else(ln==null?void 0:ln.status)===401&&(document.location.href="/user/login")})}catch(sr){Te.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};function ji(ht,xn){return Vt(this,null,function*(){if(typeof ht=="string")return yield xn(ht);if(typeof ht!="object"||ht===null)return ht;if(Array.isArray(ht))return yield Promise.all(ht.map(On=>Vt(this,null,function*(){return yield ji(On,xn)})));const wn={};for(const jn in ht)if(Object.prototype.hasOwnProperty.call(ht,jn)){const On=ht[jn];typeof On=="string"?wn[jn]=yield xn(On):typeof On=="object"?wn[jn]=yield ji(On,xn):wn[jn]=On}return wn})}const Qn=()=>Vt(void 0,null,function*(){var ht;nr(!0),ei("\u5904\u7406\u4E2D"),yield new Promise(jn=>setTimeout(jn,1e3));let xn=(ht=fr.current)==null?void 0:ht.querySelectorAll('[data-text="edit"]'),wn="";try{xn.forEach(function(jn){var On,sr,Un,ln;const qn=jn.cloneNode(!0),Ur=qn.querySelectorAll("span.edu_latex");for(let ai of Ur){const Si=ai.getAttribute("title"),Ii=document.createTextNode(Si),Ri=ai;(sr=(On=Ri.parentNode)==null?void 0:On.replaceChild)==null||sr.call(On,Ii,Ri)}const Ni=qn.querySelectorAll("span[style]");for(let ai of Ni)if(ai.style.fontFamily){const Si=ai.innerHTML,Ii=document.createTextNode(Si),Ri=ai;(ln=(Un=Ri.parentNode)==null?void 0:Un.replaceChild)==null||ln.call(Un,Ii,Ri)}qn==null||qn.childNodes.forEach(function(ai){ai.nodeType===Node.ELEMENT_NODE&&ai.localName!=="h5"&&ai.localName!=="h4"?wn+=`<p>${ai.innerHTML}</p>`:ai.nodeType===Node.TEXT_NODE&&(wn+=`<p>${ai.textContent}</p>`)})}),pi("/api/intelligent_imports/import.json",{html:cn(wn)})}catch(jn){console.error("\u5904\u7406\u8282\u70B9\u9519\u8BEF:",jn)}}),zr=ht=>{let xn=ht.filter(wn=>!!(wn!=null&&wn.type));return xn=xn.map(wn=>{var jn;const On=(jn=pr.find(Un=>Un.id===(wn==null?void 0:wn.type)))==null?void 0:jn.deal,sr=Yn(An({},wn),{id:String(Math.random()).slice(-6),knowledgePoint:Xr(wn==null?void 0:wn.knowledgePoint)});return On?On(sr):sr}),xn},si=()=>{if(nn===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:Qn})},di=()=>oe.createElement("div",{className:Pe.row},oe.createElement("div",{className:Pe.leftLayout},oe.createElement(Hn,{style:{height:675}},nn===1&&oe.createElement("div",{style:{height:"100%",display:"flex",flexDirection:"column",alignItems:"center"},onClick:()=>vr(2)},oe.createElement("div",{style:{color:"#9096A3",fontSize:12}},"1.\u672C\u529F\u80FD\u652F\u6301\u5BFC\u5165\u7684\u9898\u578B\uFF1A\u5355\u9009\u9898\u3001\u591A\u9009\u9898\u3001\u586B\u7A7A\u9898\u3001\u5224\u65AD\u9898\u3001\u7B80\u7B54\u9898\u3001 \u7EC4\u5408\u9898\u3001\u7F16\u7A0B\u9898\u3001\u7A0B\u5E8F\u586B\u7A7A\u9898\u3002",oe.createElement("br",null),"2.\u82E5\u8981\u5BFC\u5165\u7EC4\u5408\u9898\uFF0C\u8BF7\u5728\u9898\u76EE\u524D\u540E\u4F7F\u7528\u4E00\u5BF9\u201C","{{\u201D\u3001\u201C}}","\u201D\u5C06\u5185\u5BB9\u6807\u51FA\uFF1B\u5927\u9898\u9898\u5E72\u548C\u5C0F\u9898\u9898\u5E72\u4E4B\u95F4\u4E0D\u9700\u8981\u7A7A\u884C\uFF1B\u5927\u9898\u548C\u5C0F\u9898\u9898\u5E72\u90FD\u9700\u6807\u6CE8\u9898\u53F7\uFF1B\u5C0F\u9898\u7B54\u6848\u53EF\u8DDF\u5728\u5C0F\u9898\u9898\u5E72\u540E\uFF0C\u5E76\u7528\u7A7A\u683C\u4E0E\u9898\u5E72\u5185\u5BB9\u9694\u5F00\u3002\u8303\u4F8B\u53EF\u53C2\u8003\u63A8\u8350\u683C\u5F0F\u3002",oe.createElement("br",null),"3.\u5BFC\u5165\u652F\u6301\u6587\u672C\u3001\u56FE\u7247\u3001\u516C\u5F0F\u3002\u9898\u76EE\u7ED3\u6784\u652F\u6301\u8BC6\u522B\u7B54\u6848\u3001\u89E3\u6790\u3001\u96BE\u5EA6\u3001\u77E5\u8BC6\u70B9\u3002",oe.createElement("br",null),"4.\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u4FEE\u6539\u9898\u76EE\u5185\u5BB9\u540E\u91CD\u65B0\u8BC6\u522B\uFF0C\u6216\u4E0B\u8F7D\u63A8\u8350\u683C\u5F0F\uFF0C\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u5BFC\u5165\u8BC6\u522B\u3002",oe.createElement("br",null)),oe.createElement("div",{className:Pe.imgBox,style:{marginTop:75}},oe.createElement("img",{width:56,src:me}),oe.createElement("span",null,"\u7F16\u8F91\u533A"))),nn===2&&oe.createElement("div",{"data-text":"edit",onBlur:()=>{Xt.current.innerHTML||vr(1)},ref:Xt,contentEditable:!0,style:{color:"#9096A3",height:"100%",overflow:"auto"}}))),oe.createElement("div",{className:Pe.rightLayout,style:{display:"flex",alignItems:"start",justifyContent:"center"}},oe.createElement("div",{className:Pe.imgBox,style:{marginTop:240}},oe.createElement("img",{width:56,src:be}),oe.createElement("span",null,"\u9884\u89C8\u533A")))),ti=(ht,xn,wn,jn)=>{var On;console.log(ht,xn,wn,jn,"onDataChange\u4FEE\u6539\u6570\u503C");const sr=JSON.parse(JSON.stringify(Oe));jn===void 0?sr[xn][ht]=wn:sr[xn].questions[jn][ht]=wn;const Un=An({},sr[xn]),ln=(On=pr.find(qn=>qn.id===(Un==null?void 0:Un.type)))==null?void 0:On.deal;sr[xn]=ln(Un),cr(sr)},ki=(ht,xn,wn)=>{var jn;const On=wn!==void 0,sr=(jn=pr.find(qn=>qn.id===(ht==null?void 0:ht.type)))==null?void 0:jn.type,Un=`${xn+1}.${wn===void 0?"":wn+1+"."}`,ln=`${(ht==null?void 0:ht.type)==="7"?"{{":""}${Un}\u3010${sr}\u3011${(ht==null?void 0:ht.question)||""}`;return oe.createElement(oe.Fragment,null,On&&oe.createElement("h4",{contentEditable:!0}),oe.createElement(Ht,{id:ht==null?void 0:ht.id,tagName:"div",value:ln}))},Bi=(ht,xn)=>Vt(void 0,null,function*(){var wn;const jn=yield Zt(ht,xn),On=(wn=jn==null?void 0:jn.data)==null?void 0:wn.content;if(On!=null&&On.length){const sr=zr(On)[0];Wr.splice(xn,1,sr),Oe.splice(xn,1,sr),oi([...Wr]),cr([...Oe])}}),Zi=(ht,xn,wn)=>{var jn;const On=wn!==void 0,sr=(jn=pr.find(ln=>ln.id===(ht==null?void 0:ht.type)))==null?void 0:jn.type,Un=`${xn+1}.${wn===void 0?"":wn+1+"."}`;return On?oe.createElement("div",{style:{padding:"10px 18px"}},`${Un}\u3010${sr}\u3011`,oe.createElement(Ht,{id:ht==null?void 0:ht.id,tagName:"span",className:Pe.edit,onBlur:ln=>ti("question",xn,ln,wn),value:(ht==null?void 0:ht.question)||""})):oe.createElement(oe.Fragment,null,oe.createElement("div",{className:Pe.actionHead},oe.createElement("div",{className:"c-light-primary"},`${Un}\u3010${sr}\u3011`),Mn!==1&&oe.createElement(lt.Z,{disabled:(ht==null?void 0:ht.type)==="7",min:0,max:100,style:{width:100,marginLeft:10},addonAfter:"\u5206",precision:1,size:"middle",onChange:ln=>ti("score",xn,ln,wn),value:ht==null?void 0:ht.score}),oe.createElement(Ke.Z,{align:"middle",style:{marginLeft:"auto"}},!!Zt&&oe.createElement("span",{className:"current c-light-primary mr30",onClick:()=>Bi(ht,xn)},oe.createElement("i",{className:"iconfont icon-huanyihuan mr5"}),"\u6362\u4E00\u6362"),oe.createElement(He.default,{onChange:ln=>ti("checked",xn,ln.target.checked,wn),checked:!!(ht!=null&&ht.checked)},"\u4E0D\u5BFC\u5165\u6B64\u9898"))),oe.createElement(Ht,{id:ht==null?void 0:ht.id,tagName:"div",style:{padding:"10px 18px"},className:Pe.edit,onBlur:ln=>ti("question",xn,ln,wn),value:ht==null?void 0:ht.question}))},Fi=(ht,xn,wn)=>oe.createElement(oe.Fragment,null,["0","1","2","4"].includes(ht==null?void 0:ht.type)&&oe.createElement(Ht,{id:ht==null?void 0:ht.id,value:`\u7B54\u6848\uFF1A${xn||""}`,tagName:"p"}),!wn&&oe.createElement(Ht,{id:ht==null?void 0:ht.id,value:`\u96BE\u5EA6\uFF1A${(ht==null?void 0:ht.difficulty)||""}`,tagName:"p"}),(ht==null?void 0:ht.type)!=="7"&&oe.createElement(Ht,{id:ht==null?void 0:ht.id,value:`\u89E3\u6790\uFF1A${(ht==null?void 0:ht.analyze)||""}`,tagName:"p"}),!wn&&oe.createElement(Ht,{id:ht==null?void 0:ht.id,value:`\u77E5\u8BC6\u70B9\uFF1A${(ht==null?void 0:ht.knowledgePoint)||""}`,tagName:"p"})),Vi=(ht,xn,wn,jn)=>{const On=jn!==void 0,sr=["\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],Un=On&&!ht.last&&!ht.errorMsg?{marginBottom:10}:{},ln=sr.map(qn=>({key:qn,label:qn,onClick:()=>ti("difficulty",wn,qn,jn)}));return oe.createElement("div",{className:Pe.liWrap,style:Un},["4"].includes(ht==null?void 0:ht.type)&&oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u7B54\xA0\xA0\xA0\xA0\u6848\uFF1A"),oe.createElement(Ht,{id:ht==null?void 0:ht.id,tagName:"div",className:`${Pe.edit} c-black`,onBlur:qn=>ti("answer",wn,[qn],jn),value:xn})),!On&&oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u96BE\xA0\xA0\xA0\xA0\u5EA6\uFF1A"),oe.createElement("div",{className:"c-black"},oe.createElement(St.Z,{menu:{items:ln}},oe.createElement("span",{className:"c-light-primary"},ht==null?void 0:ht.difficulty,oe.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),(ht==null?void 0:ht.type)!=="7"&&oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u89E3\xA0\xA0\xA0\xA0\u6790\uFF1A"),oe.createElement(Ht,{id:ht==null?void 0:ht.id,tagName:"div",className:`${Pe.edit} c-grey-333`,onBlur:qn=>ti("analyze",wn,qn,jn),value:ht==null?void 0:ht.analyze})),!On&&oe.createElement("div",{onKeyDown:Mt,className:Pe.li},oe.createElement("aside",null,"\u77E5\u8BC6\u70B9\uFF1A"),oe.createElement(Ht,{id:ht==null?void 0:ht.id,tagName:"div",value:(ht==null?void 0:ht.knowledgePoint)||"",className:`${Pe.edit} c-grey-333`,onBlur:qn=>ti("knowledgePoint",wn,Xr(ci(qn)),jn)})))},er=ht=>oe.createElement(oe.Fragment,null,typeof(ht==null?void 0:ht.errorMsg)=="string"&&!!(ht!=null&&ht.errorMsg)&&oe.createElement("h5",{contentEditable:!1},oe.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),oe.createElement("div",null,ht==null?void 0:ht.errorMsg))),_i=ht=>oe.createElement(oe.Fragment,null,typeof(ht==null?void 0:ht.errorMsg)=="string"&&!!(ht!=null&&ht.errorMsg)&&oe.createElement("h5",null,oe.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),oe.createElement("div",null,ht==null?void 0:ht.errorMsg))),ar=(ht,xn,wn,jn)=>{let On="flex";return(tn&&Ai!==jn||Cr&&!(wn!=null&&wn.errorMsg))&&(On="none"),oe.createElement("div",{className:Pe.row,style:{display:On}},oe.createElement("div",{className:Pe.leftLayout},Ot||oe.createElement(Hn,null,oe.createElement("div",{"data-text":"edit",contentEditable:!0,className:Pe.question},ht))),oe.createElement("div",{className:Pe.rightLayout},oe.createElement(ur,{className:wn!=null&&wn.errorMsg?Pe.error:""},xn)))},pr=[{id:"0",type:"\u5355\u9009\u9898",element:(ht,xn,wn)=>{var jn,On;const sr=wn!==void 0;let Un=(jn=ht==null?void 0:ht.answer)==null?void 0:jn[0];const ln=oe.createElement(oe.Fragment,null,ki(ht,xn,wn),(On=ht==null?void 0:ht.options)==null?void 0:On.map((ai,Si)=>oe.createElement(Ht,{id:ht==null?void 0:ht.id,key:Si,value:`${Ue[Si]}.${ai}`,tagName:"p"})),Fi(ht,Un,sr),er(ht));let qn=sr?ht:Oe[xn];const Ur=qn==null?void 0:qn.options,Ni=oe.createElement(oe.Fragment,null,Zi(qn,xn,wn),Ur==null?void 0:Ur.map((ai,Si)=>{var Ii;return oe.createElement("div",{key:Si,className:Pe.option},oe.createElement("aside",{className:((Ii=qn==null?void 0:qn.answer)==null?void 0:Ii[0])===Ue[Si]?Pe.active:"",onClick:()=>ti("answer",xn,[Ue[Si]],wn)},Ue[Si]),oe.createElement(Ht,{id:qn==null?void 0:qn.id,tagName:"div",className:`${Pe.text}`,onBlur:Ri=>{Ur[Si]=Ri,ti("options",xn,Ur,wn)},value:ai}))}),Vi(qn,"",xn,wn),_i(qn));return sr?[ln,Ni]:ar(ln,Ni,qn,xn)},deal:ht=>{var xn,wn,jn;ht.score=ht.score===void 0?2:ht.score;let On=Xr((xn=ht==null?void 0:ht.answer)==null?void 0:xn[0]).toUpperCase();ht.answer=On?[On]:[];let sr=[];if(!(ht!=null&&ht.options))sr.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{ht.options=(wn=ht.options)==null?void 0:wn.slice(0,8);const Un=ht.options.map(qn=>qn==null?void 0:qn.trim().replace(/^\s+|\s+$/g,""));new Set(Un).size!==Un.length&&sr.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return On||sr.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D"),On&&(Ue.slice(0,((jn=ht==null?void 0:ht.options)==null?void 0:jn.length)||8).includes(On)||sr.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")),Xr(ht==null?void 0:ht.question)||sr.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),ht.errorMsg=sr.join(`
`),ht}},{id:"1",type:"\u591A\u9009\u9898",element:(ht,xn,wn)=>{var jn,On;const sr=wn!==void 0;let Un=(jn=ht==null?void 0:ht.answer)==null?void 0:jn[0];const ln=oe.createElement(oe.Fragment,null,ki(ht,xn,wn),(On=ht==null?void 0:ht.options)==null?void 0:On.map((ai,Si)=>oe.createElement(Ht,{id:ht==null?void 0:ht.id,key:Si,value:`${Ue[Si]}.${ai}`,tagName:"p"})),Fi(ht,Un,sr),er(ht));let qn=sr?ht:Oe[xn];const Ur=qn==null?void 0:qn.options,Ni=oe.createElement(oe.Fragment,null,Zi(qn,xn,wn),Ur==null?void 0:Ur.map((ai,Si)=>{var Ii,Ri;return oe.createElement("div",{key:Si,className:Pe.option},oe.createElement("aside",{className:(Ri=(Ii=qn==null?void 0:qn.answer)==null?void 0:Ii[0])!=null&&Ri.includes(Ue[Si])?Pe.active:"",onClick:()=>{var co;let mo=((co=qn==null?void 0:qn.answer)==null?void 0:co[0])||"";const zo=Ue[Si];mo.includes(zo)?mo=mo.replace(new RegExp(zo,"g"),""):mo+=zo,mo=mo.split("").sort().join(""),ti("answer",xn,[mo],wn)}},Ue[Si]),oe.createElement(Ht,{id:qn==null?void 0:qn.id,tagName:"div",className:`${Pe.text}`,onBlur:co=>{Ur[Si]=co,ti("options",xn,Ur,wn)},value:ai}))}),Vi(qn,"",xn,wn),_i(qn));return sr?[ln,Ni]:ar(ln,Ni,qn,xn)},deal:ht=>{var xn,wn,jn;ht.score=ht.score===void 0?2:ht.score;let On=Xr((xn=ht==null?void 0:ht.answer)==null?void 0:xn[0]).toUpperCase().split("").sort().join("");ht.answer=On?[On]:[];let sr=[];if(!(ht!=null&&ht.options))sr.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{ht.options=(wn=ht.options)==null?void 0:wn.slice(0,8);const Un=ht.options.map(qn=>qn==null?void 0:qn.trim().replace(/^\s+|\s+$/g,""));new Set(Un).size!==Un.length&&sr.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}if(On||sr.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D"),On){const Un=Ue.slice(0,((jn=ht==null?void 0:ht.options)==null?void 0:jn.length)||8);vi(Un).includes(On)||sr.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 Xr(ht==null?void 0:ht.question)||sr.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),ht.errorMsg=sr.join(`
`),ht}},{id:"2",type:"\u5224\u65AD\u9898",element:(ht,xn,wn)=>{var jn,On;const sr=wn!==void 0;let Un=(jn=ht==null?void 0:ht.answer)==null?void 0:jn[0];const ln=oe.createElement(oe.Fragment,null,ki(ht,xn,wn),Fi(ht,Un,sr),er(ht));let qn=sr?ht:Oe[xn];const Ur=["\u6B63\u786E","\u9519\u8BEF"];let Ni=((On=qn==null?void 0:qn.answer)==null?void 0:On[0])||"";["\u6B63\u786E","\u5BF9","T","True","t","true"].includes(Ni)?Ni="\u6B63\u786E":["\u9519\u8BEF","\u9519","T","true","t","false"].includes(Ni)&&(Ni="\u9519\u8BEF");const ai=oe.createElement(oe.Fragment,null,Zi(qn,xn,wn),Ur==null?void 0:Ur.map((Si,Ii)=>oe.createElement("div",{key:Ii,className:Pe.option},oe.createElement("aside",{style:{borderRadius:2},className:Ni===Si?Pe.active:"",onClick:()=>ti("answer",xn,[Si],wn)},Si==="\u6B63\u786E"?"T":"F"),oe.createElement("div",{style:{pointerEvents:"none"},className:`${Pe.text}`},Si))),Vi(qn,"",xn,wn),_i(qn));return sr?[ln,ai]:ar(ln,ai,qn,xn)},deal:ht=>{var xn;ht.score=ht.score===void 0?2:ht.score;let wn=Xr((xn=ht==null?void 0:ht.answer)==null?void 0:xn[0]);ht.answer=wn?[wn]:[];let jn=[];return wn||jn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),wn&&!["\u6B63\u786E","\u5BF9","T","True","t","true","\u9519\u8BEF","\u9519","T","true","t","false"].includes(wn)&&jn.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"),Xr(ht==null?void 0:ht.question)||jn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),ht.errorMsg=jn.join(`
`),ht}},{id:"3",type:"\u586B\u7A7A\u9898",element:(ht,xn,wn)=>{var jn,On;const sr=wn!==void 0,Un=oe.createElement(oe.Fragment,null,ki(ht,xn,wn),(jn=ht==null?void 0:ht.answer)==null?void 0:jn.map((Ur,Ni)=>oe.createElement(Ht,{id:ht==null?void 0:ht.id,key:Ni,tagName:"p",value:`\u7B54\u6848${Ni+1}\uFF1A${Ur.text||""}`})),Fi(ht,"",sr),er(ht));let ln=sr?ht:Oe[xn];const qn=oe.createElement(oe.Fragment,null,Zi(ln,xn,wn),(On=ln==null?void 0:ln.answer)==null?void 0:On.map((Ur,Ni)=>oe.createElement("div",{key:Ni,className:Pe.option},oe.createElement("aside",{className:Pe.fill},"\u586B\u7A7A\u9879",Ni+1),Ur.model===1&&oe.createElement(Ht,{id:ln==null?void 0:ln.id,tagName:"div",onBlur:ai=>{ln.answer[Ni].latex=ci(ai),ti("answer",xn,ln.answer,wn)},className:`${Pe.text}`,value:Ur.latex}),Ur.model===2&&oe.createElement(ot.Z,{value:Ur.latex,onChange:ai=>{ln.answer[Ni].latex=ai,ti("answer",xn,ln.answer,wn)}}))),Vi(ln,"",xn,wn),_i(ln));return sr?[Un,qn]:ar(Un,qn,ln,xn)},deal:ht=>{var xn,wn,jn,On;ht.score=ht.score===void 0?2:ht.score,ht.question=(xn=ht.question)==null?void 0:xn.replaceAll("\u2581","_");const sr=(wn=ht.answer)==null?void 0:wn.map(ln=>{if(Object.prototype.toString.call(ln)==="[object Object]")return ln;ln=ln==null?void 0:ln.trim();const qn={model:1,text:ln,latex:ln};return ln.startsWith("$$")&&ln.endsWith("$$")||ln.startsWith("`$$")&&ln.endsWith("$$`")?(qn.model=2,qn.latex=ln.slice(2,-2)):qn.latex=ci(ln),qn});ht.answer=sr;let Un=[];return sr||Un.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1A\u4E2D\u56FD\uFF1B\u7B54\u68482\uFF1A\u4E16\u754C"),Xr(ht==null?void 0:ht.question)?ht!=null&&ht.question.includes("_")?(jn=ht==null?void 0:ht.answer)!=null&&jn.length&&((ht==null?void 0:ht.question.match(/_+/g))||[]).length!==((On=ht==null?void 0:ht.answer)==null?void 0:On.length)&&Un.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):Un.push("\u586B\u7A7A\u9879\u672A\u8BBE\u7F6E\uFF0C\u8BF7\u4F7F\u7528\u82F1\u6587\u4E0B\u5212\u7EBF\u201C___\u201D\u8868\u793A\u586B\u7A7A\u9879"):Un.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),ht.errorMsg=Un.join(`
`),ht}},{id:"4",type:"\u7B80\u7B54\u9898",element:(ht,xn,wn)=>{var jn,On;const sr=wn!==void 0;let Un=(jn=ht==null?void 0:ht.answer)==null?void 0:jn[0];const ln=oe.createElement(oe.Fragment,null,ki(ht,xn,wn),Fi(ht,Un,sr),er(ht));let qn=sr?ht:Oe[xn];const Ur=oe.createElement(oe.Fragment,null,Zi(qn,xn,wn),Vi(qn,(On=qn==null?void 0:qn.answer)==null?void 0:On[0],xn,wn),_i(qn));return sr?[ln,Ur]:ar(ln,Ur,qn,xn)},deal:ht=>{ht.score=ht.score===void 0?5:ht.score;let xn=[];return Xr(ht==null?void 0:ht.question)||xn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),ht.errorMsg=xn.join(`
`),ht}},{id:"6",type:"\u7F16\u7A0B\u9898",element:(ht,xn)=>{var wn,jn;const On=Oe[xn],sr=Nr.slice(0,4).map(Un=>({key:Un,label:Un,onClick:()=>ti("platform",xn,Un)}));return oe.createElement("div",{className:Pe.row,style:{display:Cr?On!=null&&On.errorMsg?"flex":"none":"flex"}},oe.createElement("div",{className:Pe.leftLayout},oe.createElement(Hn,null,oe.createElement("div",{"data-text":"edit",contentEditable:!0,className:Pe.question},ki(ht,xn),oe.createElement(Ht,{id:ht==null?void 0:ht.id,value:`\u8BD5\u9898\u63CF\u8FF0\uFF1A${(ht==null?void 0:ht.description)||""}`,tagName:"p"}),Fi(ht),oe.createElement(Ht,{id:ht==null?void 0:ht.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${ht==null?void 0:ht.timeLimit}`,tagName:"p"}),oe.createElement(Ht,{id:ht==null?void 0:ht.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(ht==null?void 0:ht.platform)||""}`,tagName:"p"}),oe.createElement("p",{contentEditable:!0},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),oe.createElement("h4",null),oe.createElement(Ht,{id:ht==null?void 0:ht.id,value:(ht==null?void 0:ht.code)||"",tagName:"div"}),(wn=ht==null?void 0:ht.inputs)==null?void 0:wn.map((Un,ln)=>{var qn;return oe.createElement(oe.Fragment,{key:ln},oe.createElement("h4",null),oe.createElement(Ht,{id:ht==null?void 0:ht.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${ln+1})\u8F93\u5165\uFF1A${Un||""}`,tagName:"div"}),oe.createElement(Ht,{id:ht==null?void 0:ht.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${ln+1})\u8F93\u51FA\uFF1A${((qn=ht==null?void 0:ht.outputs)==null?void 0:qn[ln])||""}`,tagName:"div"}))}),er(ht)))),oe.createElement("div",{className:Pe.rightLayout},oe.createElement(ur,{className:On!=null&&On.errorMsg?Pe.error:""},Zi(On,xn),oe.createElement("div",{className:Pe.liWrap,style:{background:"transparent",marginBottom:0,padding:0}},oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u8BD5\u9898\u63CF\u8FF0\uFF1A"),oe.createElement(Ht,{className:Pe.edit,id:On==null?void 0:On.id,value:On==null?void 0:On.description,tagName:"div",onBlur:Un=>ti("description",xn,Un)}))),Vi(On,"",xn),oe.createElement("div",{className:Pe.liWrap},oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),oe.createElement(Ht,{className:Pe.edit,id:On==null?void 0:On.id,value:On==null?void 0:On.timeLimit,tagName:"div",onBlur:Un=>ti("timeLimit",xn,ci(Un))})),oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),oe.createElement("div",{className:"c-black"},oe.createElement(St.Z,{menu:{items:sr}},oe.createElement("span",{className:"c-light-primary"},On==null?void 0:On.platform,oe.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),oe.createElement("div",{className:Pe.li,style:{flexDirection:"column",alignItems:"start"}},oe.createElement("aside",{className:"mb10"},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),oe.createElement(Ht,{className:Pe.edit,id:On==null?void 0:On.id,value:(On==null?void 0:On.code)||"",onBlur:Un=>ti("code",xn,ci(Un)),tagName:"div"}))),(jn=On==null?void 0:On.inputs)==null?void 0:jn.map((Un,ln)=>{var qn;return oe.createElement("div",{className:Pe.liWrap,key:ln},oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",ln+1,")\u8F93\u5165\uFF1A"),oe.createElement(Ht,{id:On==null?void 0:On.id,value:Un||"",className:Pe.edit,onBlur:Ur=>{const Ni=[...(On==null?void 0:On.inputs)||[]];Ni[ln]=ci(Ur),ti("inputs",xn,Ni)},tagName:"div"})),oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",ln+1,")\u8F93\u51FA\uFF1A"),oe.createElement(Ht,{id:On==null?void 0:On.id,value:((qn=On==null?void 0:On.outputs)==null?void 0:qn[ln])||"",className:Pe.edit,onBlur:Ur=>{const Ni=[...(On==null?void 0:On.outputs)||[]];Ni[ln]=ci(Ur),ti("outputs",xn,Ni)},tagName:"div"})))}),_i(On))))},deal:ht=>{var xn,wn,jn;ht.score=ht.score===void 0?10:ht.score,ht.code=(xn=ht.code)==null?void 0:xn.trim();let On=[];Xr(ht==null?void 0:ht.question)?((wn=ht==null?void 0:ht.question)==null?void 0:wn.length)>60&&On.push("\u7F16\u7A0B\u9898\u540D\u79F0\u9650\u523660\u4E2A\u5B57\u7B26"):On.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Xr(ht==null?void 0:ht.description)||On.push("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\u63CF\u8FF0");const sr=Xr(String((ht==null?void 0:ht.timeLimit)||""));if(ht.timeLimit=sr,(!sr||sr&&!["3","4","5","6","7","8","9","10"].includes(sr))&&On.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),ht.platform=Xr(ht==null?void 0:ht.platform),ht!=null&&ht.platform){const Un=["c","c++","java","python"],ln=(jn=ht==null?void 0:ht.platform)==null?void 0:jn.toLowerCase(),qn=Un.findIndex(Ur=>Ur===ln);qn>-1?ht.platform=Nr[qn]:On.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00")}else On.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00");if(!(ht!=null&&ht.inputs)||!(ht!=null&&ht.outputs))ht.inputs=[],ht.outputs=[],On.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 Un=Math.min(ht.inputs.length,ht.outputs.length);ht.inputs=ht.inputs.slice(0,Un),ht.outputs=ht.outputs.slice(0,Un),ht.outputs.some(ln=>!Xr(ln))&&On.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879")}return ht.errorMsg=On.join(`
`),ht}},{id:"7",type:"\u7EC4\u5408\u9898",element:(ht,xn)=>{var wn,jn;const On=Oe[xn];return oe.createElement("div",{className:Pe.row,style:{display:Cr?On!=null&&On.errorMsg?"flex":"none":"flex"}},oe.createElement("div",{className:Pe.leftLayout},oe.createElement(Hn,null,oe.createElement("div",{"data-text":"edit",contentEditable:!0,className:Pe.question},ki(ht,xn),Fi(ht),(wn=ht==null?void 0:ht.questions)==null?void 0:wn.map((sr,Un)=>{var ln;const qn=(ln=pr.find(Ur=>Ur.id===(sr==null?void 0:sr.type)))==null?void 0:ln.element;return oe.createElement(oe.Fragment,{key:`left-${ht.id}-${Un}`},qn(sr,xn,Un)[0])}),er(ht),oe.createElement("p",{contentEditable:!0},"}}")))),oe.createElement("div",{className:Pe.rightLayout},oe.createElement(ur,{className:On!=null&&On.errorMsg?Pe.error:""},Zi(On,xn),Vi(On,"",xn),(jn=On==null?void 0:On.questions)==null?void 0:jn.map((sr,Un)=>{var ln;const qn=(ln=pr.find(Ur=>Ur.id===(sr==null?void 0:sr.type)))==null?void 0:ln.element;return oe.createElement(oe.Fragment,{key:`right-${On.id}-${Un}`},qn(sr,xn,Un)[1])}),_i(On))))},deal:ht=>{var xn,wn,jn,On,sr;const Un=zr,ln=[...pr],qn=ln.findIndex(Si=>Si.id==="0"),Ur=ln.findIndex(Si=>Si.id==="1");if(qn!==-1){const Si=ln[qn].deal;ln[qn].deal=Ii=>{const Ri=Si(Ii);return Ri.errorMsg&&(Ri.errorMsg=Ri.errorMsg.split(`
`).filter(co=>co!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(`
`)),Ri}}if(Ur!==-1){const Si=ln[Ur].deal;ln[Ur].deal=Ii=>{const Ri=Si(Ii);return Ri.errorMsg&&(Ri.errorMsg=Ri.errorMsg.split(`
`).filter(co=>co!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(`
`)),Ri}}ht.questions=(xn=ht.questions)!=null&&xn.length?zr(ht.questions.slice(0,20)):[],ht.questions=(wn=ht.questions)==null?void 0:wn.map((Si,Ii)=>{var Ri;if(Si.type==="0"||Si.type==="1"){const co=(Ri=Si.options)==null?void 0:Ri.map(mo=>mo==null?void 0:mo.trim().replace(/^\s+|\s+$/g,""));co&&new Set(co).size!==co.length&&(Si.errorMsg=(Si.errorMsg?Si.errorMsg+`
`:"")+"\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return Yn(An({},Si),{last:Ii===ht.questions.length-1})});const Ni=(jn=ht.questions)==null?void 0:jn.reduce((Si,Ii)=>{const Ri=parseFloat(Ii.score);return isNaN(Ri)?Si:Si+Ri},0);ht.score=Ni;let ai=[];return(On=ht.questions)!=null&&On.length?ht.errorMsg=((sr=ht.questions)==null?void 0:sr.findIndex(Si=>!!Si.errorMsg))>-1:ai.push("\u8BF7\u6DFB\u52A0\u5C0F\u9898"),Xr(ht==null?void 0:ht.question)||ai.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),ai.length&&(ht.errorMsg=ai.join(`
`)),ht}},{id:"8",type:"\u7A0B\u5E8F\u586B\u7A7A\u9898",element:(ht,xn)=>{var wn,jn;const On=Oe[xn],sr=Nr.map(Un=>({key:Un,label:Un,onClick:()=>ti("platform",xn,Un)}));return oe.createElement("div",{className:Pe.row,style:{display:Cr?On!=null&&On.errorMsg?"flex":"none":"flex"}},oe.createElement("div",{className:Pe.leftLayout},oe.createElement(Hn,null,oe.createElement("div",{"data-text":"edit",contentEditable:!0,className:Pe.question},ki(ht,xn),Fi(ht),oe.createElement(Ht,{id:ht==null?void 0:ht.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${ht==null?void 0:ht.timeLimit}`,tagName:"p"}),oe.createElement(Ht,{id:ht==null?void 0:ht.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(ht==null?void 0:ht.platform)||""}`,tagName:"p"}),oe.createElement("p",{contentEditable:!0},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),oe.createElement("h4",null),oe.createElement(Ht,{id:ht==null?void 0:ht.id,value:(ht==null?void 0:ht.code)||"",tagName:"div"}),oe.createElement("h4",null),oe.createElement(Ht,{id:ht==null?void 0:ht.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A${(ht==null?void 0:ht.input)||""}`,tagName:"p"}),oe.createElement(Ht,{id:ht==null?void 0:ht.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A${(ht==null?void 0:ht.output)||""}`,tagName:"p"}),(wn=ht==null?void 0:ht.answer)==null?void 0:wn.map((Un,ln)=>oe.createElement(Ht,{key:ln,id:ht==null?void 0:ht.id,value:`\u7B54\u6848${ln+1}\uFF1A${Un||""}`,tagName:"p"})),er(ht)))),oe.createElement("div",{className:Pe.rightLayout},oe.createElement(ur,{className:On!=null&&On.errorMsg?Pe.error:""},Zi(On,xn),Vi(On,"",xn),oe.createElement("div",{className:Pe.liWrap},oe.createElement("div",{className:Pe.li,onKeyDown:Mt},oe.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),oe.createElement(Ht,{className:Pe.edit,id:On==null?void 0:On.id,value:On==null?void 0:On.timeLimit,tagName:"div",onBlur:Un=>ti("timeLimit",xn,ci(Un))})),oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),oe.createElement("div",{className:"c-black"},oe.createElement(St.Z,{menu:{items:sr}},oe.createElement("span",{className:"c-light-primary"},On==null?void 0:On.platform,oe.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),oe.createElement("div",{className:Pe.li,style:{flexDirection:"column",alignItems:"start"}},oe.createElement("aside",{className:"mb10"},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),oe.createElement(Ht,{className:Pe.edit,id:On==null?void 0:On.id,value:(On==null?void 0:On.code)||"",onBlur:Un=>ti("code",xn,ci(Un)),tagName:"div"})),oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A"),oe.createElement(Ht,{className:Pe.edit,id:On==null?void 0:On.id,value:(On==null?void 0:On.input)||"",onBlur:Un=>ti("input",xn,ci(Un)),tagName:"div"})),oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"),oe.createElement(Ht,{className:Pe.edit,id:On==null?void 0:On.id,value:(On==null?void 0:On.output)||"",onBlur:Un=>ti("output",xn,ci(Un)),tagName:"div"}))),oe.createElement("div",{className:Pe.liWrap},(jn=On==null?void 0:On.answer)==null?void 0:jn.map((Un,ln)=>oe.createElement("div",{className:Pe.li,key:ln},oe.createElement("aside",null,"\u7B54\u6848",ln+1,"\uFF1A"),oe.createElement(Ht,{id:On==null?void 0:On.id,value:Un||"",className:Pe.edit,onBlur:qn=>{const Ur=[...(On==null?void 0:On.answer)||[]];Ur[ln]=ci(qn),ti("output",xn,Ur)},tagName:"div"})))),_i(On))))},deal:ht=>{var xn,wn,jn,On,sr,Un,ln,qn;ht.score=ht.score===void 0?10:ht.score,ht.code=(jn=(wn=(xn=ht.code)==null?void 0:xn.trim())==null?void 0:wn.replace(/@_@/g,"@\u2581@"))==null?void 0:jn.replace(/@__@/g,"@\u2581\u2581@");let Ur=[];if(Xr(ht==null?void 0:ht.question)||Ur.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Xr(ht==null?void 0:ht.code)?/@▁@|@▁▁@/.test(ht==null?void 0:ht.code)?(On=ht==null?void 0:ht.answer)!=null&&On.length&&((sr=ht==null?void 0:ht.code.match(/@▁@|@▁▁@/g))==null?void 0:sr.length)!==((Un=ht==null?void 0:ht.answer)==null?void 0:Un.length)&&Ur.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):Ur.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"):Ur.push("\u672A\u8BC6\u522B\u5230\u7A0B\u5E8F\u4EE3\u7801"),ht!=null&&ht.answer?(ln=ht.answer)!=null&&ln.some(ai=>!Xr(ai))&&Ur.push("\u7B54\u6848\u4E3A\u5FC5\u586B\u9879"):Ur.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1AHello\uFF1B\u7B54\u68482\uFF1AWorld"),ht.platform=Xr(ht==null?void 0:ht.platform),ht!=null&&ht.platform){const ai=["c","c++","java","python","javascript","ruby"],Si=(qn=ht==null?void 0:ht.platform)==null?void 0:qn.toLowerCase(),Ii=ai.findIndex(Ri=>Ri===Si);Ii>-1?ht.platform=Nr[Ii]:Ur.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00")}else Ur.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00");Xr(ht==null?void 0:ht.output)||Ur.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879");const Ni=Xr(String((ht==null?void 0:ht.timeLimit)||""));return ht.timeLimit=Ni,(!Ni||Ni&&!["3","4","5","6","7","8","9","10"].includes(Ni))&&Ur.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),ht.errorMsg=Ur.join(`
`),ht}}],Ln=()=>oe.createElement(oe.Fragment,null,Wr.filter(ht=>{var xn;return!!((xn=pr.find(jn=>jn.id===(ht==null?void 0:ht.type)))==null?void 0:xn.element)}).map((ht,xn)=>{var wn;const jn=(wn=pr.find(On=>On.id===(ht==null?void 0:ht.type)))==null?void 0:wn.element;return oe.createElement(oe.Fragment,{key:ht.id},jn(ht,xn))})),rt=()=>Vt(void 0,null,function*(){const ht=Oe.filter(xn=>!xn.checked);if(nn!==3||!ht.length){Te.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\uFF01");return}if(Xn){on(!0),yield Xn(Oe),on(!1);return}br.setFieldsValue({sub_discipline_id:_t}),mi(!0)}),Hr=(ht,xn=[])=>{if(typeof ht=="string")return ht.trim();if(Array.isArray(ht))return ht.map(wn=>Hr(wn,xn));if(typeof ht=="object"&&ht!==null){const wn={};for(const jn in ht)ht.hasOwnProperty(jn)&&(xn.includes(jn)?wn[jn]=ht[jn]:wn[jn]=Hr(ht[jn],xn));return wn}return ht},_r=ht=>Vt(void 0,null,function*(){const xn=zr(Hr(ht));oi(xn),cr(JSON.parse(JSON.stringify(xn))),vr(3),nr(!1),or(!1)});(0,oe.useEffect)(()=>{if(Gr)return;const ht=()=>{Lr(xn=>xn>=90?(clearInterval(Tn.current),90):xn+1)};return Tn.current=setInterval(ht,5e4/90),()=>clearInterval(Tn.current)},[Gr]);const pi=(ht,xn)=>{bi(!1);const wn=new FormData;Object.keys(xn).forEach(On=>{wn.append(On,xn[On])});const jn=new window.XMLHttpRequest;jn.withCredentials=!0,jn.addEventListener("load",function(On){return Vt(this,null,function*(){var sr,Un;try{const ln=JSON.parse((sr=On==null?void 0:On.target)==null?void 0:sr.response);if(bi(!0),Lr(100),yield new Promise(qn=>setTimeout(()=>qn(),780)),ln.status===0){if(!((Un=ln==null?void 0:ln.data)!=null&&Un.length)){Te.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!"),nr(!1);return}_r((ln==null?void 0:ln.data)||[])}else nr(!1),Te.ZP.warning(ln==null?void 0:ln.message)}catch(ln){console.log("\u8BF7\u6C42\u9519\u8BEF\uFF1A",ln)}})}),jn.addEventListener("error",()=>{nr(!1)}),jn.open("POST",`${ue.Z.API_SERVER}${ht}`),jn.send(wn)},hi=ht=>Vt(void 0,null,function*(){const xn=ht.name.split(".").slice(-1)[0].toLowerCase();return["docx"].indexOf(xn)==-1?(Te.ZP.error(`${ht.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()):(nr(!0),ei("\u5904\u7406\u4E2D"),pi("/api/intelligent_imports/import.json",{file:ht}),Promise.reject())});let ri=[{key:1,label:oe.createElement($e.default,{showUploadList:!1,accept:".docx",maxCount:1,beforeUpload:hi},oe.createElement("div",{style:{padding:"0 5px",width:108,height:35,lineHeight:"35px"}},"\u672C\u5730\u5BFC\u5165"))}];((0,Qt.Ny)()||(0,Qt.$O)())&&ri.push({key:2,label:oe.createElement("div",{style:{padding:"0 5px"}},"\u5927\u6A21\u578B\u667A\u80FD\u51FA\u9898"),onClick:()=>{un.current.onClick()}});const yr=[Oe.length,(ir=Oe.filter(ht=>!!(ht!=null&&ht.errorMsg)))==null?void 0:ir.length];return oe.createElement("div",{className:ke()(Pe.intelligentBox,"intelligent-body-curb",Xe),style:Yn(An({},st),{width:Be}),ref:fr},oe.createElement("div",{className:Pe.underpin},oe.createElement("b",{style:vn}),oe.createElement("b",{style:vn})),oe.createElement("div",{className:Pe.head,style:{top:Dt}},oe.createElement("div",{className:Pe.leftLayout},Sn||oe.createElement(oe.Fragment,null,oe.createElement(Ke.Z,{align:"middle"},oe.createElement("div",{className:Pe.title},"\u8BD5\u9898\u7F16\u8F91"),!jt&&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:jr,shape:"default"},"\u4E00\u952E\u6E05\u7A7A"),!jt&&oe.createElement(St.Z,{overlayClassName:Pe.menu,menu:{items:ri}},oe.createElement(he.op,{className:"ml20",type:"primary",shape:"default"},"\u5BFC\u5165\u8BD5\u9898")),!!$n&&$n),oe.createElement("div",{className:Pe.tip},oe.createElement("i",{className:"iconfont icon-tishi7 font12 mr10"}),"\u63D0\u793A\uFF1A\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u7F16\u8F91\u533A\u70B9\u51FB\u5BF9\u5E94\u7684\u8BD5\u9898\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u8BC6\u522B"))),oe.createElement(Ke.Z,{className:Pe.rightLayout,style:{alignItems:"start"}},gn||oe.createElement(oe.Fragment,null,oe.createElement("div",{className:Pe.title,style:{marginRight:0}},"\u8BD5\u9898\u9884\u89C8"),[3].includes(nn)&&oe.createElement(He.default,{className:"ml20",checked:Cr,onChange:ht=>or(ht.target.checked)},"\u4EC5\u67E5\u770B\u9519\u8BEF\u8BD5\u9898"),[3].includes(nn)&&oe.createElement("div",{style:{color:"#5F6368",marginLeft:"auto"}},"\u5171\u8BC6\u522B",oe.createElement("span",{className:"ml5 mr5 c-light-primary"},yr[0]),"\u9898\uFF0C\u5176\u4E2D\u8BC6\u522B\u6709\u8BEF",oe.createElement("span",{className:"ml5 mr5 c-red-e53"},yr[1]),"\u9898")),tn&&oe.createElement("div",{className:Pe.tabs},Wr==null?void 0:Wr.map((ht,xn)=>oe.createElement("div",{onClick:()=>{Oi(xn)},className:Ai===xn&&Pe.active,key:xn},"\u65B0\u9898",xn+1)))),oe.createElement("div",{className:Pe.centerBox},oe.createElement("img",{className:"mb10",src:Ae,width:56}),!Pn&&oe.createElement(he.op,{onClick:si},"\u8BC6\u522B"))),[1,2].includes(nn)&&di(),[3].includes(nn)&&Ln(),oe.createElement("div",{className:"pb10"}),oe.createElement("div",{className:Pe.buttonFixed},oe.createElement("div",{className:Pe.buttonWrap},oe.createElement(It.ZP,{size:"middle",className:`${Pe.button} mr20`,onClick:Et},"\u53D6\u6D88"),oe.createElement(It.ZP,{size:"middle",type:"primary",loading:xt,className:`${Pe.button}`,onClick:rt},gt))),oe.createElement(Ge.default,{centered:!0,closable:!1,destroyOnClose:!0,open:Jr,title:null,footer:null,width:320,afterClose:()=>Lr(0)},oe.createElement(Ke.Z,{align:"middle",style:{flexDirection:"column"}},oe.createElement("b",{style:{color:"#5F6368"},className:"font16 mb5 mt20"},Rn,oe.createElement("span",{className:Pe.dotLoading},oe.createElement("span",null,"."),oe.createElement("span",null,"."),oe.createElement("span",null,"."))),oe.createElement(Fe.Z,{style:{width:"auto"},size:[200,8],showInfo:!1,percent:$r}),oe.createElement("div",{style:{color:"#5F6368"},className:"mb20"},"\u6B63\u5728\u8BC6\u522B\uFF0C\u5DF2\u5B8C\u6210",oe.createElement("span",{className:"ml5 c-light-primary"},$r,"%")))),oe.createElement(Ge.default,{centered:!0,open:Or,title:"\u8BD5\u9898\u5BFC\u5165\u8BBE\u7F6E",confirmLoading:kr,width:500,onCancel:()=>mi(!1),onOk:()=>br.submit(),afterClose:()=>{br.resetFields()}},oe.createElement(Ve.default,{style:{maxHeight:550},form:br,layout:"horizontal",colon:!1,size:"large",onFinish:ht=>Vt(void 0,null,function*(){var xn,wn,jn,On,sr;const Un=Oe.filter(Ur=>!Ur.checked&&!Ur.errorMsg);Fr(!0);const ln=()=>Vt(void 0,null,function*(){var Ur,Ni;const ai=yield(0,De.ZP)("/api/intelligent_imports/save.json",{method:"post",body:Yn(An(An({},sn),ht),{list:Un,mode:Mn})});ai.status===0&&(mn&&((Ur=ai==null?void 0:ai.data)!=null&&Ur.success)&&window.location.pathname==="/problemset"&&(Yt.Z.publish("refresh-item-bank",ht.group_id),yield new Promise(Si=>setTimeout(()=>Si(),1500))),Te.ZP.success(`\u6210\u529F\u5BFC\u5165${(Ni=ai==null?void 0:ai.data)==null?void 0:Ni.success}\u9053\u8BD5\u9898`,3),En(ai),mi(!1)),Fr(!1)});if(Mn!==1){yield ln();return}const qn=yield(0,De.ZP)("/api/intelligent_imports/is_repeated.json",{method:"post",body:{list:Oe,mode:Mn}});if(qn.status===0){if(!((xn=qn==null?void 0:qn.data)!=null&&xn.error_size)){yield ln();return}Ge.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onCancel:()=>{Fr(!1)},title:"\u63D0\u793A",content:oe.createElement("div",{style:{overflow:"auto",maxHeight:500}},"\u5171",oe.createElement("span",{className:"c-light-primary ml5 mr5"},(wn=qn==null?void 0:qn.data)==null?void 0:wn.all_size),"\u9053\u8BD5\u9898\uFF0C\u5176\u4E2D",oe.createElement("span",{style:{color:"#FF9D18"},className:"ml5 mr5"},(jn=qn==null?void 0:qn.data)==null?void 0:jn.error_size),"\u9053\u8BD5\u9898\u91CD\u590D\uFF08\u7B2C",oe.createElement("span",{className:"ml5 mr5"},(sr=(On=qn==null?void 0:qn.data)==null?void 0:On.index)==null?void 0:sr.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:ln})}})},oe.createElement("div",{className:"c-grey-999 mb20"},"\u63D0\u793A\uFF1A\u8BC6\u522B\u6709\u8BEF\u7684\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u5BFC\u5165"),oe.createElement(Ve.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B",name:"sub_discipline_id",labelCol:{span:5},wrapperCol:{span:19},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B"}]},oe.createElement(te.Z,{placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",fieldNames:{label:"name",value:"id",children:"sub_disciplines"},options:Cn})),Mn===1&&oe.createElement(Ve.default.Item,{label:oe.createElement(Ke.Z,{align:"middle",style:{justifyContent:"space-between"}},oe.createElement("span",null,"\u653E\u5165\u6587\u4EF6\u5939\u76EE\u5F55"),oe.createElement("div",{onClick:()=>hn(!0),style:{marginLeft:211,transform:"translateX(14px)",display:"flex",color:"#5F6368",cursor:"pointer"}},oe.createElement("img",{className:"mr5 primary-hover",src:nt}),"\u65B0\u5EFA\u6587\u4EF6\u5939")),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"group_id",labelCol:{span:24},wrapperCol:{span:24}},oe.createElement(Ye.Z,{key:Kr})))),oe.createElement(Ge.default,{centered:!0,open:Ti,title:"\u65B0\u5EFA\u6587\u4EF6\u5939",destroyOnClose:!0,width:480,confirmLoading:Vr,onCancel:()=>hn(!1),onOk:()=>Br.submit(),afterClose:()=>{Br.resetFields()}},oe.createElement(Ve.default,{style:{maxHeight:550},form:Br,layout:"horizontal",colon:!1,size:"large",onFinish:ht=>Vt(void 0,null,function*(){var xn;dr(!0),(yield(0,De.ZP)("/api/item_banks_groups.json",{method:"post",body:{name:ht.name,parent_id:(xn=ht==null?void 0:ht.parent_id)==null?void 0:xn[0]}})).status===0?(Yr(Kr+1),setTimeout(()=>{Te.ZP.success("\u64CD\u4F5C\u6210\u529F"),hn(!1),dr(!1)},1e3)):dr(!1)})},oe.createElement(Ve.default.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},oe.createElement(ee.default,{maxLength:60,showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"})),oe.createElement(Ve.default.Item,{label:"\u6587\u4EF6\u5939\u4F4D\u7F6E",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"parent_id"},oe.createElement(Ye.Z,null)))),oe.createElement(yn.Z,{onSave:ht=>{nr(!0),ei("\u5904\u7406\u4E2D"),pi("/api/intelligent_imports/import.json",{html:ht})},ref:un}))},_e=fe;var Re=at},19105:function(We,Ee,ae){"use strict";var oe=ae(59301),Pe=ae(99587),Ie=ae(48136),ke=ae(76562),Ve=ae(62957),Te=ae(59301);const Ge=(0,oe.forwardRef)(({callback:lt,width:Ke,onChange:He,disabled:St,readOnly:$e,type:It="",value:Fe="",style:te={}},ee)=>{const he=(0,oe.useRef)(),ue=(0,oe.useRef)(),[fe,me]=(0,oe.useState)(0),[be,Ae]=(0,oe.useState)(0),[De,Ye]=(0,oe.useState)(!1),nt=()=>{var it=document.createElement("div");it.innerHTML=he.current.getValue();var vt=it.innerText;return lt&&lt(vt),vt};(0,oe.useImperativeHandle)(ee,()=>({getData:nt}));const Je=it=>{it.preventDefault();const vt=it.clientX-fe,wt=it.clientY-be;document.body.onmousemove=Nt=>{let Ht=Nt.clientX-vt,Qt=Nt.clientY-wt;const Yt=document.getElementsByClassName("markdown-popup-form")[0],yn=window.innerWidth-Yt.offsetWidth,bt=window.innerHeight-Yt.offsetHeight;Ht=Math.max(0,Math.min(Ht,yn)),Qt=Math.max(0,Math.min(Qt,bt)),ot(Nt.clientX,Nt.clientY,vt,wt)&&(me(Ht),Ae(Qt))},document.body.onmouseup=function(){document.body.onmousemove=null}},ot=(it,vt,wt,Nt)=>{const Ht=document.body.clientHeight,Qt=document.body.clientWidth;return it<20&&wt>it||it>Qt-20&&wt<it||vt<20&&Nt>vt||vt>Ht-20&&Nt<vt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,oe.useEffect)(()=>{De&&setTimeout(()=>{const it=document.getElementsByClassName("markdown-popup-form")[0],vt=window.innerWidth/2-it.offsetWidth/2,wt=window.innerHeight/2-it.offsetHeight/2;me(vt),Ae(wt)},0)},[De]);const mt=()=>{St||$e||Ye(!0)};return Te.createElement("div",{style:te},Te.createElement("div",{style:{width:Ke||"100%",position:"relative"},className:`${Pe.Z.mathFillWrap} ${St||$e?"cursorDefault":""}`,onClick:()=>mt()},Te.createElement("math-field",{disabled:St,locale:"zh_cn",class:`${Pe.Z.mathField} ${It}`,readOnly:$e,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:he,style:{width:"100%",fontSize:Fe?18:14},value:Fe||""})),Te.createElement(Ve.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:fe,top:be},title:Te.createElement("div",{style:{cursor:"move"},onMouseDown:Je},"\u8F93\u5165\u516C\u5F0F"),open:De,onOk:()=>{const it=ue.current.getData();he.current.setValue(it),He(it),Ye(!1)},onCancel:()=>{Ye(!1)},destroyOnClose:!0,className:"markdown-popup-form"},Te.createElement(ke.Z,{value:Fe,ref:ue,onChange:He,showSaveButton:!1})))});Ee.Z=Ge},76562:function(We,Ee,ae){"use strict";var oe=ae(59301),Pe=ae(77019),Ie=ae(5269),ke=ae(20554),Ve=ae(99571),Te=ae(76902),Ge=ae(99587),lt=ae(48136),Ke=ae(59301);const He=(0,oe.forwardRef)(({callback:St,showSaveButton:$e,value:It=""},Fe)=>{const te=(0,oe.useRef)(),ee=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],he=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],ue=be=>{te.current.setValue(te.current.getValue()+" "+be.value+" ")},fe=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ke.createElement(Pe.Z,{className:Ge.Z.lists,gutter:[10,10]},ee.map((be,Ae)=>Ke.createElement(Ie.Z,{flex:"110px",className:Ge.Z.item},Ke.createElement("div",null,Ke.createElement(Te.Z,{value:`$$${be.value}$$`}),be.name),Ke.createElement("div",{className:Ge.Z.children},be.children.map((De,Ye)=>Ke.createElement("div",{key:Ye},Ke.createElement("h1",null,De.name),Ke.createElement(Pe.Z,{gutter:[10,10]},De.data.map((nt,Je)=>Ke.createElement(Ie.Z,{key:Je,onClick:()=>ue(nt),className:Ge.Z.diamond},Ke.createElement(Te.Z,{value:"`$$"+nt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ke.createElement(Pe.Z,{className:Ge.Z.lists,gutter:[10,10]},he.map((be,Ae)=>Ke.createElement(Ie.Z,{flex:"110px",className:Ge.Z.item},Ke.createElement("div",null,Ke.createElement(Te.Z,{value:"`$$"+be.value+"$$`"}),be.name),Ke.createElement("div",{className:Ge.Z.children},be.children.map((De,Ye)=>Ke.createElement("div",{key:Ye},De.name&&Ke.createElement("h1",null,De.name),Ke.createElement(Pe.Z,{gutter:[10,10]},De.data.map((nt,Je)=>Ke.createElement(Ie.Z,{key:Je,onClick:()=>ue(nt),className:Ge.Z.diamond},Ke.createElement(Te.Z,{value:"`$$"+nt.value+"$$`"}))))))))))}],me=()=>{var be=document.createElement("div");be.innerHTML=te.current.getValue();var Ae=be.innerText;return St&&St(Ae),Ae};return(0,oe.useImperativeHandle)(Fe,()=>({getData:me})),Ke.createElement("div",{className:Ge.Z.mathWrap},Ke.createElement(ke.default,{defaultActiveKey:"1",items:fe}),Ke.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||""),$e&&Ke.createElement("div",{className:Ge.Z.button},Ke.createElement(Ve.ZP,{size:"large",onClick:me,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ee.Z=He},22962:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return $e}});var oe=ae(59301),Pe=ae(28284),Ie=ae(62957),ke=ae(37568),Ve=ae(87169),Te=ae(38986),Ge={publicQuest:"publicQuest___iYvzo",publicQuestContent:"publicQuestContent___vgbKh",public_tips:"public_tips___UX0Dn",concat:"concat___wOfND"},lt=ae(52154),Ke=ae(59301),He=(It,Fe,te)=>new Promise((ee,he)=>{var ue=be=>{try{me(te.next(be))}catch(Ae){he(Ae)}},fe=be=>{try{me(te.throw(be))}catch(Ae){he(Ae)}},me=be=>be.done?ee(be.value):Promise.resolve(be.value).then(ue,fe);me((te=te.apply(It,Fe)).next())}),$e=({type:It="subject",open:Fe,onCancel:te,onOkClick:ee,subDisciplineId:he})=>{const[ue]=Pe.default.useForm(),[fe,me]=(0,oe.useState)([]),[be,Ae]=(0,oe.useState)(!1);(0,oe.useEffect)(()=>{},[]);const De=()=>He(void 0,null,function*(){if(It){const Ye=yield(0,Te.ZP)("/api/disciplines.json",{method:"get",params:{source:It}});me(Ye.disciplines||[])}});return Ke.createElement(Ie.default,{title:Ke.createElement("div",{style:{fontWeight:"bold"}},"\u65B0\u5EFA\u77E5\u8BC6\u70B9"),open:Fe,width:558,centered:!0,className:Ge.publicQuest,onCancel:()=>{te(),ue.resetFields()},onOk:()=>{ue.validateFields().then(Ye=>He(void 0,null,function*(){const nt=yield(0,Te.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:Ye==null?void 0:Ye.name,sub_discipline_id:he}});(nt==null?void 0:nt.status)===0&&ee({name:Ye==null?void 0:Ye.name,id:nt==null?void 0:nt.tag_discipline_id,public:!1,type:"personal"}),ue.resetFields(),te()}))}},Ke.createElement("div",{className:Ge.publicQuestContent},Ke.createElement("div",{className:Ge.public_tips},Ke.createElement(Ve.Z,{style:{color:"#FF8C29",marginRight:10,paddingTop:5}}),"\u65B0\u5EFA\u7684\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\u3002 \u5E73\u53F0\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF0C\u8BF7\u8BA4\u771F\u586B\u5199\u77E5\u8BC6\u70B9\u540D\u79F0\u3002"),Ke.createElement(Pe.default,{labelAlign:"left",form:ue,colon:!1},Ke.createElement(Pe.default.Item,{label:"\u77E5\u8BC6\u70B9\u540D\u79F0",name:"name",rules:[{required:!0}]},Ke.createElement(ke.default,{showCount:!0,maxLength:20,placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"}))),Ke.createElement(lt.Z,{open:be,onCancel:()=>{Ae(!1)}})))}},28426:function(We,Ee,ae){"use strict";var oe=ae(59301),Pe=ae(93314),Ie=ae(99571),ke=Object.defineProperty,Ve=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,He=(Fe,te,ee)=>te in Fe?ke(Fe,te,{enumerable:!0,configurable:!0,writable:!0,value:ee}):Fe[te]=ee,St=(Fe,te)=>{for(var ee in te||(te={}))lt.call(te,ee)&&He(Fe,ee,te[ee]);if(Ge)for(var ee of Ge(te))Ke.call(te,ee)&&He(Fe,ee,te[ee]);return Fe},$e=(Fe,te)=>Ve(Fe,Te(te));const It=({img:Fe,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:St({color:"#999",margin:"100px auto",visibility:De?"hidden":"visible"},ee)},oe.createElement("img",{src:Fe||Pe,style:$e(St({},Ae),{pointerEvents:"none",userSelect:"none"})}),oe.createElement("p",{className:"mt20 font14"},he||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),ue&&oe.createElement(Ie.ZP,St({className:me,onClick:fe},te),ue),be&&be);Ee.Z=It},45677:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return me}});var oe=ae(59301),Pe={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Ie=ae(99571),ke=ae(70557),Ve=ae(75975),Te=ae(25399),Ge=ae(51257),lt=ae(81722),Ke=ae(28426),He=ae(346),St=ae(44203),$e=ae(59301),It=Object.defineProperty,Fe=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(Fe)for(var De of Fe(Ae))ee.call(Ae,De)&&he(be,De,Ae[De]);return be},fe=(be,Ae,De)=>new Promise((Ye,nt)=>{var Je=it=>{try{mt(De.next(it))}catch(vt){nt(vt)}},ot=it=>{try{mt(De.throw(it))}catch(vt){nt(vt)}},mt=it=>it.done?Ye(it.value):Promise.resolve(it.value).then(Je,ot);mt((De=De.apply(be,Ae)).next())}),me=({editOffice:be="view",data:Ae,issaver:De,onSaver:Ye,theme:nt,type:Je,filename:ot,monacoEditor:mt,className:it,style:vt,close:wt,onClose:Nt,hasMask:Ht,disabledDownload:Qt,onImgDimensions:Yt,showNodata:yn,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"),[Jt,fn]=(0,oe.useState)(""),[kt,bn]=(0,oe.useState)(),An=window.ENV==="build"?"/react/build":"",Yn=location.host.startsWith("localhost")?He.Z.PROXY_SERVER:He.Z.API_SERVER,Bn=10*(1024*1024),Mt=(0,oe.useRef)();Ae!=null&&Ae.startsWith("/api")&&Je!=="txt"&&(Ae=He.Z.API_SERVER+Ae);const Hn=Xe=>Xe.substring(Xe.lastIndexOf("/")+1).split(".").pop();ot&&mt&&(mt.filename=ot),(0,oe.useEffect)(()=>{var Xe,st;const Be=(st=(Xe=document.cookie)==null?void 0:Xe.replace(/\s/g,""))==null?void 0:st.split(";");Be==null||Be.map(Et=>{let En=Et.split("=");En[0]==="_educoder_session"&&fn(En[1])})},[]),(0,oe.useEffect)(()=>{Je==="office"&&(Ae.indexOf("bigfilescdn.")>-1||Ae.indexOf("bigfiles1")>-1?bn({url:Ae,fileType:Hn(Ae),model:Ae.indexOf("model=edit")?"edit":"view"}):at())},[Je,Ae]);function ur(Xe){return fe(this,null,function*(){Xe.data.type==="pdfdata"&&(Ye(Xe.data.data),window.removeEventListener("message",ur,!1)),console.log("mess---:",Xe.data)})}const at=()=>fe(void 0,null,function*(){console.log("data:",Ae);let Xe=Ae;Ae.startsWith("http")||(Xe=location.origin+Xe);let st=new URL(Xe).pathname.split("/").pop();const Be=yield(0,lt.gJ)({attachment_id:st});Be.url=Yn+Be.url,bn(Be)}),_e=()=>{if(Ae.startsWith("http")||Ae.startsWith("blob:")){Re();return}(0,Ge.Sv)(ot||"educoder",Ae,ot)},Re=()=>{bt&&(0,St.fc)({id:bt==null?void 0:bt.id,watch_type:1,course_id:bt==null?void 0:bt.course_id}),(0,Ge.Nd)(ot||"educoder",decodeURIComponent(Ae))};return $e.createElement("div",{style:ue({},vt||{}),className:`${Ht&&Pe.bgBlack} ${Je?Pe.wrp:"hide"}`},wt&&$e.createElement("div",{className:Pe.close,ref:Mt},!!Yt&&$e.createElement(Te.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Mt.current},$e.createElement("span",{onClick:()=>{Nt(),Yt()}},$e.createElement("i",{className:"icon-yulanpizhu"}))),!Qt&&$e.createElement(Te.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Mt.current},$e.createElement("span",{onClick:Re},$e.createElement("i",{className:"icon-quxiaozhiding"}))),De&&$e.createElement(Te.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Mt.current},$e.createElement("span",{className:"",onClick:()=>{const Xe=document.getElementById("pdfiframe");window.addEventListener("message",ur,!1),setTimeout(()=>{Xe.contentWindow.postMessage("getData","*")},300)}},$e.createElement("i",{className:"icon-baocun"}))),$e.createElement(Te.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Mt.current},$e.createElement("span",{className:"",onClick:()=>{Nt()}},$e.createElement("i",{className:"icon-guanbi1"})))),$e.createElement("div",{className:`${Pe[it]} ${it} ${Pe.monaco} ${Je==="txt"?"show":"hide"}`},Je==="txt"&&$e.createElement($e.Fragment,null,$e.createElement(Ve.ZP,ue({},mt)))),Je==="audio"&&$e.createElement("audio",{src:`${(Ae==null?void 0:Ae.indexOf("http://"))>-1||(Ae==null?void 0:Ae.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ae}`,autoPlay:!0}),Je==="video"&&$e.createElement($e.Fragment,null,(Ae==null?void 0:Ae.indexOf("http"))>-1?$e.createElement("video",{controls:!0,src:`${Ae}`,autoPlay:!0}):$e.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ae}`,autoPlay:!0})),Je==="office"&&kt&&$e.createElement("iframe",{src:`${An}/office.html?key=${kt.key}&url=${btoa(kt.url)}&callbackUrl=${Yn+(kt.callbackUrl||"")}&fileType=${kt.fileType}&title=${kt.title||""}&model=${be}&officeServer=${He.Z.ONLYOFFICE}&disabledDownload=${!!Qt}`}),Je==="html"&&$e.createElement("iframe",{src:Ae+"&disposition=inline"}),Je==="pdf"&&$e.createElement("iframe",{id:"pdfiframe",src:`${An}/js/pdfview/index.html?filename=${ot||"educoder.pdf"}&url=${encodeURIComponent(Ae)}&disabledDownload=${!!Qt}&model=${be}`}),Je==="image"&&$e.createElement("img",{src:`${(Ae==null?void 0:Ae.indexOf("http://"))>-1||(Ae==null?void 0:Ae.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ae}`}),(Je==="other"||Je==="download")&&$e.createElement($e.Fragment,null,yn?$e.createElement(Ke.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:$e.createElement(Ie.ZP,{icon:$e.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:_e,disabled:Qt},"\u4E0B\u8F7D")}):$e.createElement(Ie.ZP,{type:"primary",size:"middle",onClick:_e,disabled:Qt},$e.createElement(ke.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},70100:function(We,Ee,ae){"use strict";ae.d(Ee,{Q:function(){return Ke},Z:function(){return St}});var oe=ae(59301),Pe={flex_box_center:"flex_box_center___VcCAZ",flex_space_between:"flex_space_between___I3jjO",flex_box_vertical_center:"flex_box_vertical_center___Rm_54",flex_box_center_end:"flex_box_center_end___nTsdc",flex_box_column:"flex_box_column___UVpzN",tags:"tags___kRRoe",text:"text___IyyEa",tagWrap:"tagWrap___v63mB",tag:"tag___X7wE6",c:"c___mZMPq",cpp:"cpp___eaTie",java:"java___gL98T",python:"python___eNRkk",edit:"edit___tbVu0"},Ie=ae(92310),ke=ae.n(Ie),Ve=ae(62957),Te=ae(6767),Ge=ae(62673),lt=($e,It,Fe)=>new Promise((te,ee)=>{var he=me=>{try{fe(Fe.next(me))}catch(be){ee(be)}},ue=me=>{try{fe(Fe.throw(me))}catch(be){ee(be)}},fe=me=>me.done?te(me.value):Promise.resolve(me.value).then(he,ue);fe((Fe=Fe.apply($e,It)).next())});const Ke=({title:$e="\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00",dataSource:It=[],visible:Fe,setVisible:te,tip:ee,onOk:he})=>{const[ue,fe]=(0,oe.useState)([]),[me,be]=(0,oe.useState)(!1);return(0,oe.useEffect)(()=>{Fe&&fe(It)},[Fe]),oe.createElement(Ve.default,{centered:!0,open:Fe,title:$e,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 St=({title:$e="\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00",className:It,style:Fe={},onEdit:te,dataSource:ee=[]})=>{const he={C:oe.createElement("div",{className:Pe.c},"C"),"C++":oe.createElement("div",{className:Pe.cpp},"C++"),Java:oe.createElement("div",{className:Pe.java},"Java"),Python:oe.createElement("div",{className:Pe.python},"Python")};return oe.createElement("div",{className:ke()(Pe.tags,It),style:Fe},!!$e&&oe.createElement("div",{className:Pe.text},$e),oe.createElement("div",{className:Pe.tagWrap},ee==null?void 0:ee.map(ue=>oe.createElement(oe.Fragment,{key:ue},he[ue]))),!!te&&oe.createElement("div",{onClick:te,className:`iconfont icon-bianji_Hover ${Pe.edit}`}))}},68571:function(We,Ee,ae){"use strict";ae.d(Ee,{t:function(){return Re}});var oe=ae(59301),Pe=ae(37568),Ie=ae(28284),ke=ae(62957),Ve=ae(77019),Te=ae(5269),Ge=ae(71051),lt=ae(82326),Ke=ae(47889),He=ae(31457),St=ae(25690),$e=ae(8423),It=ae(6767),Fe=ae(99571),te=ae(29787),ee=ae(24334),he={flex_box_center:"flex_box_center___kOQ8P",flex_space_between:"flex_space_between___fY6jt",flex_box_vertical_center:"flex_box_vertical_center___bDSSI",flex_box_center_end:"flex_box_center_end___mQ6mU",flex_box_column:"flex_box_column___F15G0",result:"result___UYRo8",left:"left___TRaH5",right:"right___twp9s",box:"box___vwndt",li:"li___hRe2d"},ue=ae(38986),fe=ae(81072),me=ae(39793),be=ae(56102),Ae=ae(37345),De=ae(59301),Ye=Object.defineProperty,nt=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,ot=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,vt=(Xe,st,Be)=>st in Xe?Ye(Xe,st,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Xe[st]=Be,wt=(Xe,st)=>{for(var Be in st||(st={}))mt.call(st,Be)&&vt(Xe,Be,st[Be]);if(ot)for(var Be of ot(st))it.call(st,Be)&&vt(Xe,Be,st[Be]);return Xe},Nt=(Xe,st)=>nt(Xe,Je(st)),Ht=(Xe,st,Be)=>new Promise((Et,En)=>{var sn=_t=>{try{Dt(Be.next(_t))}catch(jt){En(jt)}},Mn=_t=>{try{Dt(Be.throw(_t))}catch(jt){En(jt)}},Dt=_t=>_t.done?Et(_t.value):Promise.resolve(_t.value).then(sn,Mn);Dt((Be=Be.apply(Xe,st)).next())}),Yt=({buttonProps:Xe,buttonText:st,form:Be,hackIdentifier:Et="",answerKey:En,data:sn})=>{const[Mn,Dt]=(0,oe.useState)(!1),[_t,jt]=(0,oe.useState)(!1),[dn,Sn]=(0,oe.useState)(!1),[gn,Ot]=(0,oe.useState)({}),[Pn,Zt]=(0,oe.useState)(""),[tn,vn]=(0,oe.useState)(""),$n=(0,oe.useRef)(Et),mn=(0,oe.useRef)(""),gt=(0,oe.useRef)(!1);(0,oe.useEffect)(()=>{dn&&vr()},[dn]),(0,oe.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const Xn=()=>new Date().getTime(),ir=sn==null?void 0:sn.code,nn=()=>{var Rn,ei;let Jr=ir?sn==null?void 0:sn.code:(Rn=Be.getFieldValue("hack_codes"))==null?void 0:Rn.code,nr=ir?sn==null?void 0:sn.answer_content:Be.getFieldValue(En),Wr=ir?sn==null?void 0:sn.input:(ei=Be.getFieldValue("hack_sets"))==null?void 0:ei.input;nr==null||nr.forEach(oi=>{const Oe=oi.value||oi.answer_text||"";Jr=Jr.replace(/(@▁@|@▁▁@)/,Oe)}),vn(Wr),Zt(Jr),Ot({}),Sn(!0)},vr=()=>Ht(void 0,null,function*(){var Rn,ei,Jr,nr;const Wr=Xn(),oi=ir?sn==null?void 0:sn.time_limit:(Rn=Be.getFieldsValue())==null?void 0:Rn.hack.time_limit,Oe=ir?(ei=sn==null?void 0:sn.answer_content)==null?void 0:ei.length:(nr=(Jr=Be.getFieldsValue())==null?void 0:Jr.standard_answers)==null?void 0:nr.length;Dt(!0),yield(0,fe.bM)(mn.current,{test_hack_code:Pn,test_input:tn});function cr(){return Ht(this,null,function*(){const{status:Cr,data:or}=yield(0,fe.rX)(mn.current,"submit"),Fr=Xn()-Wr>(oi+3)*1e3*Oe;if(gt.current){if(Fr){It.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),Dt(!1);return}if(Cr===0){Dt(!1),Ot(Nt(wt({},or),{showText:!0}));return}setTimeout(cr,1e3)}})}cr()}),$r=()=>Ht(void 0,null,function*(){var Rn,ei,Jr,nr,Wr,oi,Oe;if(!sn){try{yield Be.validateFields()}catch(kr){(Jr=(ei=(Rn=kr==null?void 0:kr.errorFields)==null?void 0:Rn[0])==null?void 0:ei.name)!=null&&Jr.includes("standard_answers")?It.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):It.ZP.error(kr.errorFields[0].errors[0]),Be.scrollToField(kr.errorFields[0].name,{behavior:"smooth",block:"center"});return}jt(!0);let Cr="";const or=Be.getFieldsValue();$n.current?Cr=yield(0,ue.ZP)(`/api/problems/${$n.current}.json`,{method:"put",body:Nt(wt({},or),{hack:Nt(wt({},or==null?void 0:or.hack),{sub_discipline_id:(Oe=(oi=or==null?void 0:or.hack)==null?void 0:oi.sub_discipline_id)==null?void 0:Oe[1],difficult:or.difficulty,item_banks_group_id:or.item_banks_group_id}),hack_codes:Nt(wt({},or.hack_codes),{code:ee.Base64.encode(or.hack_codes.code)}),update_hack_sets:[wt({},or.hack_sets)],is_blank:!0,item_type:"BPROGRAM"})}):(Cr=yield(0,ue.ZP)("/api/problems.json",{method:"post",body:Nt(wt({},or),{hack:Nt(wt({},or==null?void 0:or.hack),{sub_discipline_id:(Wr=(nr=or==null?void 0:or.hack)==null?void 0:nr.sub_discipline_id)==null?void 0:Wr[1],difficult:or.difficulty,item_banks_group_id:or.item_banks_group_id}),hack_codes:Nt(wt({},or.hack_codes),{code:ee.Base64.encode(or.hack_codes.code)}),hack_sets:[wt({},or.hack_sets)],is_blank:!0,item_type:"BPROGRAM"})}),$n.current=Cr==null?void 0:Cr.identifier,sessionStorage.projectFill=Cr==null?void 0:Cr.identifier)}const cr=yield(0,ue.ZP)(`/api/problems/${$n.current}/start.json`,{method:"get"});if((cr==null?void 0:cr.status)===0){mn.current=cr==null?void 0:cr.identifier,gt.current=!0,jt(!1),nn();return}jt(!1)}),Lr=Rn=>{const{status:ei,error_msg:Jr,execute_time:nr,output:Wr,input:oi,expected_output:Oe}=Rn;let cr=null;switch(ei){case Ae.h.OK:cr=De.createElement(De.Fragment,null,De.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",nr/1e3,"\u79D2"),De.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case Ae.h.NOMATCH:cr=De.createElement(De.Fragment,null,De.createElement("div",null,"\u8F93\u5165\uFF1A"),De.createElement("pre",{style:{fontFamily:"initial"}},oi),De.createElement("div",null,"\u8F93\u51FA\uFF1A"),De.createElement("pre",{style:{fontFamily:"initial"}},Wr&&ee.Base64.decode(Wr)),De.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),De.createElement("pre",{style:{fontFamily:"initial"}},Oe&&ee.Base64.decode(Oe)));break;case Ae.h.EXECUTEFAILURE:cr=De.createElement(De.Fragment,null,De.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",De.createElement("pre",null,oi)),De.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),De.createElement("pre",{className:"error"},ee.Base64.decode(Jr)));break;case Ae.h.COMPILEFAILURE:cr=De.createElement(De.Fragment,null,De.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",De.createElement("pre",null,oi)),De.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),De.createElement("pre",{className:"error"},ee.Base64.decode(Jr)));break;case Ae.h.PODFAILURE:cr=De.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case Ae.h.TIMEOUT:cr=De.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return De.createElement(De.Fragment,null," ",cr," ")};return De.createElement("div",null,De.createElement(Fe.ZP,Nt(wt({loading:_t},Xe),{onClick:$r}),st),De.createElement(ke.default,{open:dn,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:Mn,cancelButtonProps:{style:{display:"none"}},onOk:()=>vr(),onCancel:()=>{gt.current=!1,Sn(!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"),!sn&&De.createElement(be.CopyToClipboard,{text:Pn,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:Pn,onChange:Rn=>Zt(Rn)})),De.createElement("div",{className:he.right},De.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),De.createElement("div",{className:he.box},De.createElement("div",{className:he.li},De.createElement(Pe.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:tn,onChange:Rn=>vn(Rn.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:Mn,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},De.createElement("div",{className:he.li,style:{height:196,overflow:"auto",padding:10}},Lr(gn))))))))},yn=ae(87169),bt=ae(59301),ft=Object.defineProperty,ct=Object.defineProperties,Jt=Object.getOwnPropertyDescriptors,fn=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,bn=Object.prototype.propertyIsEnumerable,An=(Xe,st,Be)=>st in Xe?ft(Xe,st,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Xe[st]=Be,Yn=(Xe,st)=>{for(var Be in st||(st={}))kt.call(st,Be)&&An(Xe,Be,st[Be]);if(fn)for(var Be of fn(st))bn.call(st,Be)&&An(Xe,Be,st[Be]);return Xe},Vt=(Xe,st)=>ct(Xe,Jt(st)),Bn=(Xe,st)=>{var Be={};for(var Et in Xe)kt.call(Xe,Et)&&st.indexOf(Et)<0&&(Be[Et]=Xe[Et]);if(Xe!=null&&fn)for(var Et of fn(Xe))st.indexOf(Et)<0&&bn.call(Xe,Et)&&(Be[Et]=Xe[Et]);return Be};const{TextArea:Mt}=Pe.default,Hn=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],ur=({value:Xe,onChange:st})=>bt.createElement(Switch,{checked:Xe,onChange:Be=>{st(Be)}}),at="@\u2581@",_e="@\u2581\u2581@",Re=({questionTitlePlaceholder:Xe,form:st,scoreByBlank:Be=!1,hackidentifier:Et,answerKey:En})=>{const[sn,Mn]=(0,oe.useState)(!1),[Dt,_t]=(0,oe.useState)(!1),dn=(0,St.useParams)().type==="edit",Sn=(mn,gt)=>{const Xn=gt.line;let ir=0;for(let vr=0;vr<Xn;vr++)ir+=mn.getLine(vr).split(at).length-1;for(let vr=0;vr<Xn;vr++)ir+=mn.getLine(vr).split(_e).length-1;const nn=mn.getLine(Xn).substring(0,gt.ch);return ir+=nn.split(at).length-1,ir+=nn.split(_e).length-1,ir},gn=(mn,gt,Xn,ir)=>{const nn=mn.getRange(gt.from,gt.to);let vr=0;if(gt.text.forEach($r=>{vr+=$r.split(at).length-1}),gt.text.forEach($r=>{vr+=$r.split(_e).length-1}),gt.origin!=="setValue"){if(nn&&(nn.indexOf(at)!==-1||nn.indexOf(_e)!==-1)){const $r=nn.split(at).length-1+nn.split(_e).length-1,Lr=Sn(mn,gt.from);if(console.log(`\u5220\u9664${$r}\u4E2A\uFF0C \u524D\u9762\u6709${Lr}\u4E2A\uFF0C\u65B0\u589E${vr}\u4E2A`),$r>1){const Rn=Array.from({length:$r},(ei,Jr)=>Lr+Jr);ir(Rn)}else ir(Lr)}else if(vr>0){const $r=Sn(mn,gt.from);console.log(`\u65B0\u589E${vr}\u4E2A\uFF0C\u4E4B\u524D\u6709${$r}\u4E2A`),Xn(vr,$r)}}},Ot=()=>{const mn=st.getFieldValue(En);st.setFieldsValue({[En]:mn==null?void 0:mn.map((gt,Xn)=>Vt(Yn({},gt),{position:Xn+1}))})},Pn=(0,oe.useRef)(),Zt=(mn,gt)=>{for(let Xn=0;Xn<mn;Xn++)Pn.current({position:null,answer_text:""},gt+Xn);Ot()},tn=(0,oe.useRef)(),vn=mn=>{tn.current(mn),Ot()},$n=Ie.default.useWatch(En,st);return bt.createElement("div",{className:$e.Z.wrap},bt.createElement(Ie.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},bt.createElement(He.h,{scrollId:"name",watch:!0,height:140})),bt.createElement("div",{className:$e.Z.questionTitleEditorWrap},bt.createElement(Ie.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},bt.createElement(He.h,{scrollId:"name",watch:!0,height:400,showNullProgramButton:!0,onChange:(mn,gt)=>{const Xn=st.getFieldValue(En);console.log("--preAnswerData",Xn,gt),st.setFieldsValue({[En]:Xn==null?void 0:Xn.map((ir,nn)=>{var vr;return Vt(Yn({},ir),{position:nn+1,multi_line:(vr=gt==null?void 0:gt[nn])==null?void 0:vr.multiLine})})})},placeholder:Xe,onCMBeforeChange:(mn,gt)=>{gn(mn,gt,Zt,vn)}}))),bt.createElement(Ie.default.List,{name:En,rules:[{validator(mn,gt){if(!(gt!=null&&gt.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const Xn of gt){const{answer_text:ir}=Xn||{};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()}}]},(mn,{add:gt,remove:Xn},{errors:ir})=>(Pn.current=gt,tn.current=Xn,bt.createElement(bt.Fragment,null,bt.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},bt.createElement(Ie.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),bt.createElement("div",{onClick:()=>{ke.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(yn.Z,{style:{marginRight:3,color:"#3061D0"}}),bt.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),mn.map((nn,vr)=>{var $r=nn,{key:Lr,name:Rn}=$r,ei=Bn($r,["key","name"]),Jr,nr;return bt.createElement(Ve.Z,{className:"mb20",key:Lr,align:"middle",wrap:!1},bt.createElement(Te.Z,{flex:"0 0 auto",className:`${$e.Z.blankIndex}`},"\u586B\u7A7A\u9879",vr+1),bt.createElement(Te.Z,{flex:1},bt.createElement(Ve.Z,{align:"top",justify:"space-between",wrap:!1},bt.createElement(Te.Z,null,bt.createElement(Ie.default.Item,Vt(Yn({},ei),{name:[Rn,"answer_text"],noStyle:!0}),(Jr=$n==null?void 0:$n[Rn])!=null&&Jr.multi_line||(nr=$n==null?void 0:$n[Rn])!=null&&nr.multiLine?bt.createElement(Mt,{spellCheck:!1,style:{marginLeft:10,width:550}}):bt.createElement(Pe.default,{style:{marginLeft:10,width:550},className:$e.Z.blankInput,size:"large",maxLength:1e3,onBlur:Wr=>{}}))),Be&&bt.createElement(Te.Z,{flex:"224px"},bt.createElement(Ie.default.Item,Vt(Yn({},ei),{name:[Rn,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),bt.createElement(Ge.Z,{size:"large",className:$e.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),bt.createElement("div",{onClick:()=>Mn(!0)},bt.createElement(Ie.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},bt.createElement(He.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:sn}))),bt.createElement(Ie.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",style:{marginTop:30},name:["hack_codes","language"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},bt.createElement(lt.default,{size:"large"},Hn.map(mn=>bt.createElement(lt.default.Option,{key:mn.title,value:mn.key}," ",mn.title)))),bt.createElement(Ie.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},bt.createElement(Ie.default.Item,{name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:3,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F3\u79D2"}],noStyle:!0},bt.createElement(Ge.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),bt.createElement("span",{className:"ml10 font14"},"\u79D2")),bt.createElement(Ie.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",style:{marginTop:30},name:["hack","submit_rule"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},bt.createElement(Ke.ZP.Group,{style:{marginTop:-10}},bt.createElement(Ke.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),bt.createElement(Ke.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),bt.createElement(Ke.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),bt.createElement(Ie.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),bt.createElement("div",{style:{background:"#F6F7F9",padding:15}},bt.createElement(Ie.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},bt.createElement(Mt,{rows:4})),bt.createElement(Ie.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},bt.createElement(Mt,{rows:4}))),bt.createElement(Yt,{form:st,answerKey:En,hackIdentifier:Et,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(We,Ee,ae){"use strict";ae.d(Ee,{u:function(){return De}});var oe=ae(59301),Pe=ae(77019),Ie=ae(5269),ke=ae(25399),Ve=ae(28284),Te=ae(8423),Ge=ae(32134),lt=ae(12893),Ke=ae(31457),He=ae(59301),St=Object.defineProperty,$e=Object.defineProperties,It=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,he=(Ye,nt,Je)=>nt in Ye?St(Ye,nt,{enumerable:!0,configurable:!0,writable:!0,value:Je}):Ye[nt]=Je,ue=(Ye,nt)=>{for(var Je in nt||(nt={}))te.call(nt,Je)&&he(Ye,Je,nt[Je]);if(Fe)for(var Je of Fe(nt))ee.call(nt,Je)&&he(Ye,Je,nt[Je]);return Ye},fe=(Ye,nt)=>$e(Ye,It(nt)),me=(Ye,nt)=>{var Je={};for(var ot in Ye)te.call(Ye,ot)&&nt.indexOf(ot)<0&&(Je[ot]=Ye[ot]);if(Ye!=null&&Fe)for(var ot of Fe(Ye))nt.indexOf(ot)<0&&ee.call(Ye,ot)&&(Je[ot]=Ye[ot]);return Je};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:nt,choiceTextKey:Je,answerKey:ot,index:mt,isEdit:it,setInputActive:vt,form:wt,choiceOptionsPath:Nt,allowChangeMode:Ht,showAddIcon:Qt,addItem:Yt,deleteItem:yn})=>{console.log(Ye,"value");const bt=(Ye==null?void 0:Ye[ot])===1,ft=()=>{const Jt=wt.getFieldValue(Nt);wt.setFieldValue(Nt,Jt.map(fn=>fe(ue({},fn),{[ot]:0})))},ct=()=>{bt?nt(fe(ue({},Ye),{[ot]:0})):(Ht||ft(),nt(fe(ue({},Ye),{[ot]:1})))};return He.createElement(Pe.Z,{className:Te.Z.choiceWrap,align:"middle",wrap:!1},He.createElement(Ie.Z,{onClick:ct,className:`${Te.Z.choiceIndex} ${bt?Te.Z.activeAnswer:""}`},be[mt]),He.createElement(Ie.Z,{flex:1,className:`${Te.Z.editorWrap} ml15`,onClick:vt},He.createElement(Ke.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:it,value:Ye==null?void 0:Ye[Je],onChange:Jt=>{nt(fe(ue({},Ye),{[Je]:Jt}))}})),He.createElement(Ie.Z,{flex:"0 0 auto",className:"ml15"},He.createElement("div",{onClick:ct,className:`${Te.Z.setAnswerBtn} ${bt?Te.Z.activeAnswer:""}`},bt?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),He.createElement(Ie.Z,{className:Te.Z.actionWrapper},He.createElement(ke.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},He.createElement(Ge.Z,{className:Te.Z.addIcon,onClick:Yt,style:{visibility:Qt?"visible":"hidden"}})),He.createElement(ke.Z,{title:"\u5220\u9664"},He.createElement(lt.Z,{className:Te.Z.deleteIcon,onClick:yn,style:{visibility:mt>1?"visible":"hidden"}}))))},De=({questionTitlePlaceholder:Ye,titleKey:nt,choiceKey:Je,analysisKey:ot,choiceTextKey:mt,answerKey:it,choiceOptionsPath:vt,allowChangeMode:wt=!0,form:Nt,showAnalysis:Ht=!0})=>{const[Qt,Yt]=(0,oe.useState)(),[yn,bt]=(0,oe.useState)(!1);return He.createElement("div",{className:Te.Z.wrap},He.createElement("div",{className:Te.Z.questionTitleEditorWrap},He.createElement(Ve.default.Item,{label:"\u9898\u5E72",name:nt,labelCol:{span:24},rules:[{required:!0}]},He.createElement(Ke.h,{scrollId:Array.isArray(nt)?nt.join("_"):`${nt}`,watch:!0,height:140,placeholder:Ye}))),He.createElement(Ve.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),He.createElement(Ve.default.List,{name:Je,rules:[{validator(ft,ct){const Jt=ct.some(kt=>kt[it]===1),fn=ct.findIndex(kt=>{var bn;return((bn=kt[mt])==null?void 0:bn.length)<=0});return fn!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${be[fn]}\u9009\u9879\u7684\u5185\u5BB9`)):Jt?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(ft,{add:ct,remove:Jt})=>He.createElement("div",{id:Array.isArray(vt)?vt.join("_"):`${vt}`},ft.map((fn,kt)=>{var bn=fn,{key:An,name:Yn}=bn,Vt=me(bn,["key","name"]);const Bn=Qt===An,Mt=()=>{Yt(An)},Hn=kt<7&&kt===ft.length-1,ur=()=>ct({[mt]:"",[it]:0}),at=()=>Jt(Yn);return He.createElement(Ve.default.Item,fe(ue({},Vt),{key:An,name:Yn,className:Te.Z.choiceListWrap,rules:[{validator(_e,Re){return Re!=null&&Re.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${be[kt]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),He.createElement(Ae,{choiceTextKey:mt,answerKey:it,index:kt,isEdit:Bn,setInputActive:Mt,form:Nt,choiceOptionsPath:vt,allowChangeMode:wt,showAddIcon:Hn,addItem:ur,deleteItem:at}))}),ft.length<8&&He.createElement("div",{className:`${Te.Z.addBtn} mb30`,onClick:()=>ct({[mt]:"",[it]:0})},"\u6DFB\u52A0\u9009\u9879"))),Ht&&He.createElement("div",{onClick:()=>bt(!0)},He.createElement(Ve.default.Item,{name:ot,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},He.createElement(Ke.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:yn}))))}},92046:function(We,Ee,ae){"use strict";ae.d(Ee,{u:function(){return wt}});var oe=ae(59301),Pe=ae(62957),Ie=ae(77019),ke=ae(5269),Ve=ae(37568),Te=ae(25399),Ge=ae(71411),lt=ae(28284),Ke=ae(47889),He=ae(71051),St=ae(31457),$e=ae(12893),It=ae(61485),Fe=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=(Nt,Ht,Qt)=>Ht in Nt?he(Nt,Ht,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Nt[Ht]=Qt,Ye=(Nt,Ht)=>{for(var Qt in Ht||(Ht={}))be.call(Ht,Qt)&&De(Nt,Qt,Ht[Qt]);if(me)for(var Qt of me(Ht))Ae.call(Ht,Qt)&&De(Nt,Qt,Ht[Qt]);return Nt},nt=(Nt,Ht)=>ue(Nt,fe(Ht)),Je=(Nt,Ht)=>{var Qt={};for(var Yt in Nt)be.call(Nt,Yt)&&Ht.indexOf(Yt)<0&&(Qt[Yt]=Nt[Yt]);if(Nt!=null&&me)for(var Yt of me(Nt))Ht.indexOf(Yt)<0&&Ae.call(Nt,Yt)&&(Qt[Yt]=Nt[Yt]);return Qt};const ot=({value:Nt,onChange:Ht})=>{const Qt=yn=>{Pe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Fe.Z.modal,onOk:()=>{const bt=[...Nt];bt.splice(yn,1),Ht(bt)}})},Yt=()=>{const yn=[...Nt];yn.push(""),Ht(yn)};return ee.createElement(Ie.Z,{className:"ml20"},ee.createElement(ke.Z,{flex:1},Nt==null?void 0:Nt.map((yn,bt)=>ee.createElement(Ie.Z,{key:`${yn}_${bt}`,className:"mb20"},ee.createElement(Ve.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:yn,autoSize:{maxRows:3},maxLength:1e3,onBlur:ft=>{const ct=[...Nt],Jt=ft.target.value.trim();ct[bt]=Jt,Ht(ct)}}),ee.createElement(Te.Z,{title:"\u5220\u9664"},ee.createElement($e.Z,{className:Fe.Z.deleteIcon,style:{marginLeft:15,visibility:bt>0?"visible":"hidden"},onClick:()=>Qt(bt)}))))),ee.createElement(ke.Z,null,ee.createElement("div",{className:`${Fe.Z.addBtn}`,onClick:()=>{Yt()}},"\u65B0\u589E\u7B54\u6848")))},mt=({value:Nt,onChange:Ht})=>{const Qt=yn=>{Pe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Fe.Z.modal,onOk:()=>{const bt=[...Nt];bt.splice(yn,1),Ht(bt)}})},Yt=()=>{const yn=[...Nt];yn.push(""),Ht(yn)};return ee.createElement(Ie.Z,{className:"ml20"},ee.createElement(ke.Z,{flex:1},Nt==null?void 0:Nt.map((yn,bt)=>ee.createElement(Ie.Z,{key:`${yn}_${bt}`,align:"middle",className:"mb20"},ee.createElement(te.Z,{value:yn,style:{flex:1},onChange:ft=>{const ct=[...Nt];ct[bt]=ft,Ht(ct)}}),ee.createElement(Te.Z,{title:"\u5220\u9664"},ee.createElement($e.Z,{className:Fe.Z.deleteIcon,style:{marginLeft:15,visibility:bt>0?"visible":"hidden"},onClick:()=>Qt(bt)}))))),ee.createElement(ke.Z,null,ee.createElement("div",{className:`${Fe.Z.addBtn}`,onClick:()=>{Yt()}},"\u65B0\u589E\u7B54\u6848")))},it=({value:Nt=!0,onChange:Ht})=>ee.createElement(Ge.Z,{checked:!Nt,onChange:Qt=>{Ht(!Qt)}}),vt="\u2581",wt=({questionTitlePlaceholder:Nt,form:Ht,scoreByBlank:Qt=!1,answerKey:Yt})=>{const[yn,bt]=(0,oe.useState)(!1),ft=(Vt,Bn)=>{const Mt=Bn.line;let Hn=0;for(let at=0;at<Mt;at++)Hn+=Vt.getLine(at).split(vt).length-1;const ur=Vt.getLine(Mt).substring(0,Bn.ch);return Hn+=ur.split(vt).length-1,Hn},ct=(Vt,Bn,Mt,Hn)=>{const ur=Vt.getRange(Bn.from,Bn.to);let at=0;if(Bn.text.forEach(_e=>{at+=_e.split(vt).length-1}),Bn.origin!=="setValue"){if(ur&&ur.indexOf(vt)!==-1){const _e=ur.split(vt).length-1,Re=ft(Vt,Bn.from);if(console.log(`\u5220\u9664${_e}\u4E2A\uFF0C \u524D\u9762\u6709${Re}\u4E2A\uFF0C\u65B0\u589E${at}\u4E2A`),_e>1){const Xe=Array.from({length:_e},(st,Be)=>Re+Be);Hn(Xe)}else Hn(Re)}else if(at>0){const _e=ft(Vt,Bn.from);console.log(`\u65B0\u589E${at}\u4E2A\uFF0C\u4E4B\u524D\u6709${_e}\u4E2A`),Mt(at,_e)}}},Jt=()=>{const Vt=Ht.getFieldValue(Yt);Ht.setFieldsValue({[Yt]:Vt.map((Bn,Mt)=>nt(Ye({},Bn),{position:Mt+1}))})},fn=(0,oe.useRef)(),kt=(Vt,Bn)=>{for(let Mt=0;Mt<Vt;Mt++)fn.current({position:null,answer_text:[""],model:1},Bn+Mt);Jt()},bn=(0,oe.useRef)(),An=Vt=>{bn.current(Vt),Jt()},Yn=lt.default.useWatch(Yt,Ht);return ee.createElement("div",{className:Fe.Z.wrap},ee.createElement("div",{className:Fe.Z.questionTitleEditorWrap},ee.createElement(lt.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},ee.createElement(St.h,{scrollId:"name",watch:!0,height:140,placeholder:Nt,showNullButton:!0,onCMBeforeChange:(Vt,Bn)=>{ct(Vt,Bn,kt,An)}}))),ee.createElement(lt.default.List,{name:Yt,rules:[{validator(Vt,Bn){if(!(Bn!=null&&Bn.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Mt of Bn){const{answer_text:Hn}=Mt||{};if(Hn!=null&&Hn.some(ur=>(ur==null?void 0:ur.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Vt,{add:Bn,remove:Mt},{errors:Hn})=>(fn.current=Bn,bn.current=Mt,ee.createElement(ee.Fragment,null,ee.createElement(lt.default.Item,{label:ee.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(Vt!=null&&Vt.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}}),Vt.map((ur,at)=>{var _e=ur,{key:Re,name:Xe}=_e,st=Je(_e,["key","name"]),Be,Et;return ee.createElement("div",{style:{marginBottom:10},key:Re},ee.createElement(Ie.Z,{className:"mb20",align:"middle",wrap:!1},ee.createElement(ke.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${Fe.Z.blankIndex}`},"\u586B\u7A7A\u9879",at+1),ee.createElement(lt.default.Item,nt(Ye({},st),{name:[Xe,"model"],noStyle:!0}),ee.createElement(Ke.ZP.Group,{onChange:()=>{const En=Ht.getFieldValue(Yt);Ht.setFieldsValue({[Yt]:En.map((sn,Mn)=>nt(Ye({},sn),{answer_text:Xe===Mn?[""]:sn.answer_text}))})}},ee.createElement(Ke.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(Ke.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(Ie.Z,{style:{marginLeft:20},align:"middle",wrap:!1},ee.createElement(ke.Z,{flex:1},ee.createElement(Ie.Z,{align:"top",justify:"space-between",wrap:!1},ee.createElement(ke.Z,{flex:1},ee.createElement(lt.default.Item,nt(Ye({},st),{name:[Xe,"answer_text"],noStyle:!0}),((Et=(Be=Ht.getFieldValue(Yt))==null?void 0:Be[Xe])==null?void 0:Et.model)===1?ee.createElement(ot,null):ee.createElement(mt,null))),Qt&&ee.createElement(ke.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},ee.createElement(lt.default.Item,nt(Ye({},st),{name:[Xe,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Fe.Z.blankInputNumberWrapper}),ee.createElement(He.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),ee.createElement(lt.default.Item,nt(Ye({},st),{name:[Xe,"position"],noStyle:!0}),ee.createElement(Ve.default,{type:"hidden"})))))})))),ee.createElement(Ie.Z,{align:"middle"},ee.createElement(lt.default.Item,{name:"downcase",valuePropName:"checked"},ee.createElement(Ge.Z,null)),ee.createElement(ke.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),ee.createElement(Ie.Z,{align:"middle"},ee.createElement(lt.default.Item,{name:"no_space",valuePropName:"checked"},ee.createElement(Ge.Z,null)),ee.createElement(ke.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Yn==null?void 0:Yn.length)>1&&ee.createElement(Ie.Z,{align:"middle",className:(Yn==null?void 0:Yn.length)>1?"mb30":`${Fe.Z.hide}`},ee.createElement(lt.default.Item,{name:"is_ordered"},ee.createElement(it,null)),ee.createElement(ke.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),ee.createElement("div",{onClick:()=>bt(!0)},ee.createElement(lt.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ee.createElement(St.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:yn}))))}},14289:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return me}});var oe=ae(59301),Pe=ae(77019),Ie=ae(5269),ke=ae(28284),Ve=ae(8423),Te=ae(31457),Ge=ae(59301),lt=Object.defineProperty,Ke=Object.defineProperties,He=Object.getOwnPropertyDescriptors,St=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,Fe=(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={}))$e.call(Ae,De)&&Fe(be,De,Ae[De]);if(St)for(var De of St(Ae))It.call(Ae,De)&&Fe(be,De,Ae[De]);return be},ee=(be,Ae)=>Ke(be,He(Ae)),he=(be,Ae)=>{var De={};for(var Ye in be)$e.call(be,Ye)&&Ae.indexOf(Ye)<0&&(De[Ye]=be[Ye]);if(be!=null&&St)for(var Ye of St(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,nt=be==null?void 0:be.choice_text,Je=()=>{const ot=De.getFieldsValue().choices.map(mt=>({choice_text:mt.choice_text,is_answer:0}));De.setFieldsValue({choices:ot}),Ae(ee(te({},be),{is_answer:1}))};return Ge.createElement(Pe.Z,{className:Ve.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},Ge.createElement(Ie.Z,{onClick:Je,className:`${Ve.Z.choiceIndex} ${Ve.Z.judgementIndex} ${Ye?Ve.Z.activeAnswer:""}`},ue[nt]),Ge.createElement(Ie.Z,{flex:1,className:`${Ve.Z.editorWrap} ml15`},Ge.createElement("div",{className:`${Ve.Z.inputBorder} ${Ve.Z.placeholder} ${Ye?Ve.Z.activeJudgementAnswer:""}`},nt)),Ge.createElement(Ie.Z,{flex:"0 0 auto",className:"ml15"},Ge.createElement("div",{onClick:Je,className:`${Ve.Z.setAnswerBtn} ${Ye?Ve.Z.activeAnswer:""}`},Ye?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},me=({questionTitlePlaceholder:be,choiceKey:Ae,form:De})=>{const[Ye,nt]=(0,oe.useState)(!1);return Ge.createElement("div",{className:Ve.Z.wrap},Ge.createElement("div",{className:Ve.Z.questionTitleEditorWrap},Ge.createElement(ke.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(ke.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},Ge.createElement(ke.default.List,{name:"choices",rules:[{validator(Je,ot){return ot.some(it=>(it==null?void 0:it.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Je=>Ge.createElement("div",{id:"choices"},Je.map(ot=>{var mt=ot,{key:it,name:vt}=mt,wt=he(mt,["key","name"]);return Ge.createElement(ke.default.Item,ee(te({},wt),{key:it,name:vt,noStyle:!0}),Ge.createElement(fe,{form:De}))})))),Ge.createElement("div",{onClick:()=>nt(!0)},Ge.createElement(ke.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(We,Ee,ae){"use strict";ae.d(Ee,{h:function(){return te},x:function(){return ee}});var oe=ae(39793),Pe=ae(8423),Ie=ae(76902),ke=ae(59301),Ve=Object.defineProperty,Te=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,St=(he,ue,fe)=>ue in he?Ve(he,ue,{enumerable:!0,configurable:!0,writable:!0,value:fe}):he[ue]=fe,$e=(he,ue)=>{for(var fe in ue||(ue={}))Ke.call(ue,fe)&&St(he,fe,ue[fe]);if(lt)for(var fe of lt(ue))He.call(ue,fe)&&St(he,fe,ue[fe]);return he},It=(he,ue)=>Te(he,Ge(ue)),Fe=(he,ue)=>{var fe={};for(var me in he)Ke.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&&He.call(he,me)&&(fe[me]=he[me]);return fe};const te=he=>{var ue=he,{value:fe,onChange:me,scrollId:be}=ue,Ae=Fe(ue,["value","onChange","scrollId"]);return ke.createElement("div",{id:be||""},ke.createElement(oe.Z,It($e({},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?ke.createElement(oe.Z,{watch:De,isFocus:!0,height:me||void 0,placeholder:fe,defaultValue:he,onChange:ue,miniToolbar:Ae}):ke.createElement("div",{style:{cursor:"pointer"}},he?ke.createElement(Ie.Z,{className:Pe.Z.inputBorder,value:he}):ke.createElement("div",{className:`${Pe.Z.inputBorder} ${Pe.Z.placeholder} inputBorderError`},fe))},44272:function(We,Ee,ae){"use strict";ae.d(Ee,{W:function(){return mt}});var oe=ae(59301),Pe=ae(6767),Ie=ae(96599),ke=ae(28284),Ve=ae(71411),Te=ae(77019),Ge=ae(5269),lt=ae(25399),Ke=ae(37568),He=ae(71051),St=ae(8423),$e=ae(31457),It=ae(39793),Fe=ae(61485),te=Object.defineProperty,ee=Object.defineProperties,he=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,be=(it,vt,wt)=>vt in it?te(it,vt,{enumerable:!0,configurable:!0,writable:!0,value:wt}):it[vt]=wt,Ae=(it,vt)=>{for(var wt in vt||(vt={}))fe.call(vt,wt)&&be(it,wt,vt[wt]);if(ue)for(var wt of ue(vt))me.call(vt,wt)&&be(it,wt,vt[wt]);return it},De=(it,vt)=>ee(it,he(vt)),Ye=(it,vt)=>{var wt={};for(var Nt in it)fe.call(it,Nt)&&vt.indexOf(Nt)<0&&(wt[Nt]=it[Nt]);if(it!=null&&ue)for(var Nt of ue(it))vt.indexOf(Nt)<0&&me.call(it,Nt)&&(wt[Nt]=it[Nt]);return wt};const nt=it=>{var vt=it,{value:wt,onChange:Nt}=vt,Ht=Ye(vt,["value","onChange"]);const Qt=Yt=>{Nt([Yt])};return oe.createElement(It.Z,De(Ae({},Ht),{defaultValue:wt==null?void 0:wt[0],onChange:Qt}))},Je=it=>{if(!it)return!1;if(/^s*$/.test(it)||it.trim()===""){Pe.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let vt=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return it==="|"?(Pe.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},ot=({value:it=[],onClose:vt})=>oe.createElement(Ie.default,{closable:!0,onClose:vt,className:St.Z.keywordTag},oe.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},it.join(" \u6216 "))),mt=({questionTitlePlaceholder:it,form:vt,showKeywords:wt,isMustKeyWords:Nt=wt})=>{const[Ht,Qt]=(0,oe.useState)(!1),[Yt,yn]=(0,oe.useState)(""),bt=ke.default.useWatch("use_keywords",vt),ft=ke.default.useWatch("question_score",vt);return oe.createElement("div",{className:St.Z.wrap},oe.createElement("div",{className:St.Z.questionTitleEditorWrap},oe.createElement(ke.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},oe.createElement($e.h,{scrollId:"name",watch:!0,height:140,placeholder:it}))),oe.createElement(ke.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},oe.createElement(nt,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),wt&&!Nt&&oe.createElement(ke.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},oe.createElement(Ve.Z,{defaultChecked:!0})),wt&&Nt&&oe.createElement(Te.Z,{align:"middle",className:"mb30"},oe.createElement(ke.default.Item,{name:"use_keywords",valuePropName:"checked"},oe.createElement(Ve.Z,null)),oe.createElement(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(Fe.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(bt||!Nt)&&oe.createElement(ke.default.List,{name:"keywords",rules:[{validator(ct,Jt){return Nt?Jt!=null&&Jt.length?(Jt==null?void 0:Jt.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:Jt,remove:fn})=>oe.createElement(oe.Fragment,null,oe.createElement("div",{className:`${St.Z.title} mb10`},Nt?"\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(Ke.default,{value:Yt,onChange:kt=>{yn(kt.target.value)},maxLength:50,allowClear:!0,onPressEnter:kt=>{var bn,An,Yn,Vt;const Bn=`${(bn=kt.target)==null?void 0:bn.value}`,Mt=(Yn=(An=Bn==null?void 0:Bn.split("|"))==null?void 0:An.filter(at=>!!at))==null?void 0:Yn.map(at=>at==null?void 0:at.trim()),Hn=vt.getFieldValue("keywords"),ur=((Vt=Hn==null?void 0:Hn.map(at=>at==null?void 0:at.keyword))==null?void 0:Vt.flat())||[];for(const at of Mt)if(ur.includes(at)){Pe.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Je(Bn)&&(Jt({keyword:Mt,score:1}),yn(""))},className:St.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),oe.createElement(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:An,name:Yn}=bn,Vt=Ye(bn,["key","name"]);return oe.createElement(Te.Z,{key:An,className:"mb20",style:{marginRight:148}},oe.createElement(Ge.Z,{flex:1},oe.createElement(Te.Z,{align:"middle",justify:"space-between"},oe.createElement(ke.default.Item,De(Ae({},Vt),{name:[Yn,"keyword"]}),oe.createElement(ot,{onClose:()=>fn(Yn)})),Nt&&oe.createElement(ke.default.Item,De(Ae({},Vt),{name:[Yn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:St.Z.blankInputNumberWrapper}),oe.createElement(He.Z,{className:St.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),oe.createElement("div",{onClick:()=>Qt(!0)},oe.createElement(ke.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},oe.createElement($e.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ht}))))}},74716:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Ve}});var oe={text:"text___bQulM",sup:"sup___rX_Y3"},Pe=ae(28284),Ie=ae(59301),Ve=({text:Te,name:Ge="question_score"})=>{const lt=({value:Ke})=>Ie.createElement("div",{className:oe.text},Ie.createElement("span",{className:oe.sup},"*"),Ie.createElement("span",{className:"mr10"},"\u5206\u503C"),Ie.createElement("span",null,Ke||"--"),Ie.createElement("span",{className:"c-grey-999"},Te));return Ie.createElement(Pe.default.Item,{noStyle:!0,name:Ge},Ie.createElement(lt,null))}},76902:function(We,Ee,ae){"use strict";ae.d(Ee,{z:function(){return nt},Z:function(){return Je}});var oe=ae(59301),Pe=ae(8944),Ie=ae(81428),ke=ae(64018),Ve=ae(79710),Te=ae(346),Ge=ae(51257),lt=ae(15342),Ke=ae(1012),He=ae(45677),St=ae(59301),It=({html:ot})=>{const mt=(0,oe.useRef)(null),it=(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 wt=mt.current.attachShadow({mode:"open"});it.current=document.createElement("div"),it.current.className="markdown-body",it.current.innerHTML=ot,wt.appendChild(it.current);const Nt=document.createElement("style");return Nt.textContent=vt,wt.appendChild(Nt),()=>{wt.innerHTML=""}},[]),(0,oe.useEffect)(()=>{it.current&&(it.current.innerHTML=ot)},[ot]),St.createElement("div",{ref:mt})};function Fe(ot){const mt=["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"],it=new RegExp(`\\b(${mt.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return ot.replace(it,"").trim()}var te=Object.defineProperty,ee=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,fe=(ot,mt,it)=>mt in ot?te(ot,mt,{enumerable:!0,configurable:!0,writable:!0,value:it}):ot[mt]=it,me=(ot,mt)=>{for(var it in mt||(mt={}))he.call(mt,it)&&fe(ot,it,mt[it]);if(ee)for(var it of ee(mt))ue.call(mt,it)&&fe(ot,it,mt[it]);return ot};const be="@\u2581\u2581@",Ae="@\u2581@",De=/<pre[^>]*>/g;function Ye(ot){let mt=document.createElement("div");return mt.innerHTML=ot,mt.childNodes.length===0?"":mt.childNodes[0].nodeValue}const nt=(ot,mt)=>{ot=ot||"";const it=/(?: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,wt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Nt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return mt?ot.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(it,(Ht,Qt,Yt,yn,bt,ft,ct)=>{const Jt=Qt||yn||ft,fn=Yt||bt||ct||"?";return Te.Z.API_SERVER+"/api/attachments/"+Jt+fn+"&t="+(0,Ge.Jn)(Jt,Date.now())+(Ht.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ot=ot.replace(Nt,(Ht,Qt,Yt,yn,bt,ft,ct)=>{const Jt=Qt||yn||ft,fn=Yt||bt||ct||"?";return Te.Z.API_SERVER+"/attachments/download/"+Jt+fn+"&t="+(0,Ge.Jn)(Jt,Date.now())+(Ht.indexOf(")")>-1?")":"&")}).replace(it,(Ht,Qt,Yt,yn,bt,ft,ct)=>{const Jt=Qt||yn||ft,fn=Yt||bt||ct||"?";return Te.Z.API_SERVER+"/api/attachments/"+Jt+fn+"&t="+(0,Ge.Jn)(Jt,Date.now())+(Ht.indexOf(")")>-1?")":"&")}).replace(vt,(Ht,Qt,Yt,yn,bt)=>{const ft=Qt||yn,ct=Yt||bt||"";return'"'+Te.Z.API_SERVER+"/api/attachments/"+ft+ct+ft+ct+"&t="+(0,Ge.Jn)(ft,Date.now())}).replace(wt,(Ht,Qt,Yt,yn,bt)=>{const ft=Qt||yn,ct=Yt||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,`
`),ot)};var Je=({value:ot="",className:mt,showTextOnly:it,showLines:vt,style:wt={},stylesPrev:Nt={},highlightKeywords:Ht,showProgramFill:Qt,isProgramFill:Yt,disabledFill:yn=!1,programFillValue:bt,onFillChange:ft=fn=>{},onFillBlur:ct=()=>{},onFillFocus:Jt=()=>{}})=>{let fn=Fe(String(ot||""));const[kt,bn]=(0,oe.useState)(""),[An,Yn]=(0,oe.useState)("office"),[Vt,Bn]=(0,oe.useState)([]),Mt=(0,oe.useRef)("a"+(0,Ke.Z)()),Hn={},ur=_t=>/<style[\s\S]*?>/i.test(_t||""),at=(_t,jt,dn)=>{const Sn=document.createElement(_t===Ae?"input":"textarea");Sn.style.width="100%",Sn.style.height=_t===Ae?"40px":"151px",Sn.rows=5,Sn.spellcheck=!1,Sn.name="edu-program-fill",Sn.placeholder="\u8BF7\u8F93\u5165",Sn.dataset.id=jt;const gn=Object.keys(Hn).length;return Hn[gn]=Sn,`<span class="edu-program-fill-wrap ${_t===Ae?"":"show"}" style="width:${_t===Ae?"400px":"100%"}" title=${dn||""}><span>${Sn.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function _e(_t){return _t=_t.replace(/!\[.*?\]\(.*?\)/g,""),_t=_t.replace(/\[.*?\]\(.*?\)/g,""),_t=_t.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),_t=_t.replace(/<embed.*?>/g,""),_t=_t.replace(/<img.*?>/g,""),_t=_t.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),_t=_t.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),_t=_t.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),_t=_t.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),_t}const Re=_t=>!it&&ur(fn)?_t:_t.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(jt,dn){let Sn=dn.replace(/(\n|\r)/g,"").split("}"),gn=[];return Sn.map(Ot=>{Ot!=""&&gn.push(`.${Mt.current} ${Ot}`)}),`<style>${gn.join("}")}</style>`}),Xe=(0,oe.useMemo)(()=>{try{const Sn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,gn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ot=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Pn=/\(\/attachments\/download\//g;fn=fn.replace(Pn,"("+Te.Z.API_SERVER+"/attachments/download/").replace(Sn,"("+Te.Z.API_SERVER+"/api/attachments/").replace(gn,'"'+Te.Z.API_SERVER+"/api/attachments/").replace(Ot,'"'+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(Sn){}if(Qt){let Sn=-1;return fn=fn.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(gn,Ot,Pn){var Zt;return++Sn,at(gn,Sn,(Zt=bt==null?void 0:bt[Sn])==null?void 0:Zt.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Re(fn||"")}</pre>`}let _t=Re(fn);_t=(0,Ie.ZP)(_t);const jt=(0,Ie.ez)();fn.match(/\[TOC\]/)&&(_t=_t.replace("<p>[TOC]</p>",(0,Ie.Qv)()),(0,Ie.Iy)()),_t=_t.replace(/(__special_katext_id_\d+__)/g,(Sn,gn)=>{const{type:Ot,expression:Pn}=jt[gn];return(0,lt.renderToString)(Ye(Pn)||"",{displayMode:Ot==="block",throwOnError:!1,output:"html"})}),_t=_t.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Ie.AL)();const dn=document.createElement("div");if(dn.innerHTML=_t,it)return dn.innerText;if(Ht){const Sn=Ht.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return En(dn,Sn),dn.innerHTML}return setTimeout(()=>Dt(),500),dn.innerHTML},[fn,Ht]);(0,oe.useEffect)(()=>{sn.current&&sn.current.querySelectorAll(["input","textarea"]).forEach(jt=>{jt.oninput=st,jt.onblur=Be,jt.onfocus=Et})},[Vt]),(0,oe.useEffect)(()=>{var _t,jt,dn,Sn,gn;if(bt!=null&&bt.length)try{const Ot=sn.current.querySelectorAll(".edu-program-fill-score"),Pn=sn.current.querySelectorAll('[name="edu-program-fill"]');for(const[Zt,tn]of Pn.entries())tn.value=((_t=bt==null?void 0:bt[Zt])==null?void 0:_t.value)||"",((jt=bt==null?void 0:bt[Zt])==null?void 0:jt.type)==="warning"?tn.className="program-fill-warning":((dn=bt==null?void 0:bt[Zt])==null?void 0:dn.type)==="success"?tn.className="program-fill-success":tn.className="";for(const[Zt,tn]of Ot.entries())tn.innerHTML=(Sn=bt==null?void 0:bt[Zt])!=null&&Sn.score?`${(gn=bt==null?void 0:bt[Zt])==null?void 0:gn.score}\u5206`:"";Bn(bt)}catch(Ot){console.log(Ot,"error")}},[bt]);const st=_t=>{Vt[_t.target.dataset.id]=Vt[_t.target.dataset.id]||{},Vt[_t.target.dataset.id].value=_t.target.value,Bn([...Vt]),ft(Vt,_t.target.dataset.id)},Be=_t=>{Vt[_t.target.dataset.id]=Vt[_t.target.dataset.id]||{},Vt[_t.target.dataset.id].value=_t.target.value,Bn([...Vt]),ct(Vt,_t.target.dataset.id)},Et=_t=>{Vt[_t.target.dataset.id]=Vt[_t.target.dataset.id]||{},Vt[_t.target.dataset.id].value=_t.target.value,Bn([...Vt]),Jt(Vt,_t.target.dataset.id)};function En(_t,jt){return _t.childNodes.forEach(dn=>{var Sn;if(dn.childNodes.length>0)En(dn,jt);else if(dn.nodeName!=="IMG")if(dn.innerHTML)dn.innerHTML=(Sn=dn.innerHTML)==null?void 0:Sn.replace(new RegExp(jt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const gn=document.createElement("span");gn.innerHTML=dn.textContent.replace(new RegExp(jt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),dn.replaceWith(gn)}})}const sn=(0,oe.useRef)();Ie.jb.WebkitLineClamp=vt,vt&&(wt=me(me({},wt),Ie.jb));function Mn(_t){let jt=_t.target;if(jt.tagName.toUpperCase()==="A"){let dn=jt.getAttribute("href");if(dn.indexOf("office")>-1)_t.preventDefault(),bn(dn),Yn("office");else if(dn.indexOf("application/pdf")>-1)_t.preventDefault(),bn(dn),Yn("pdf");else if(dn.indexOf("text/html")>-1)_t.preventDefault(),bn(dn),Yn("html");else if(dn.startsWith("#")){_t.preventDefault();let Sn=document.getElementById(dn.replace("#",""));Sn&&Sn.scrollIntoView(!0)}}}const Dt=()=>{var _t;const jt=(_t=sn.current)==null?void 0:_t.querySelectorAll("video");jt==null||jt.forEach(dn=>{if(dn.oncontextmenu=()=>!1,dn.src.indexOf(".m3u8")>-1&&!dn.canPlayType("application/vnd.apple.mpegurl")){if(Ve.ZP.isSupported()){var Sn=new Ve.ZP;Sn.loadSource(dn.src),Sn.attachMedia(dn)}}})};return(0,oe.useEffect)(()=>{if(sn.current&&Xe&&Xe.match(De)&&window.PR.prettyPrint(),sn.current)return sn.current.addEventListener("click",Mn),()=>{var _t;(_t=sn.current)==null||_t.removeEventListener("click",Mn),(0,Ie.AL)(),(0,Ie.Iy)()}},[Xe,sn.current,Mn]),(0,oe.useEffect)(()=>{var _t;const jt=dn=>{dn.preventDefault(),dn.clipboardData.setData("text",window.getSelection().toString())};return(_t=sn.current)==null||_t.addEventListener("copy",jt),()=>{var dn;(dn=sn.current)==null||dn.removeEventListener("copy",jt)}},[sn.current]),oe.createElement(oe.Fragment,null,it&&oe.createElement("div",{ref:sn},Xe),!it&&!ur(Xe)&&oe.createElement("div",{ref:sn,style:me({},wt),className:`${mt||""} ${yn?"disabled-fill":""} markdown-body ${Mt.current}`,dangerouslySetInnerHTML:{__html:Xe}}),!it&&ur(Xe)&&oe.createElement(It,{html:Xe}),oe.createElement(He.Z,{close:!0,data:kt,type:kt!=null&&kt.length?An:"",style:me({},Nt),onClose:()=>bn("")}))}},69720:function(We,Ee,ae){"use strict";ae.d(Ee,{h:function(){return be}});var oe=ae(59301),Pe=ae(82326),Ie=ae(28284),ke=ae(99571),Ve=ae(89780),Te=ae.n(Ve),Ge=ae(8336),lt=ae(12469),Ke=Object.defineProperty,He=Object.defineProperties,St=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,te=(Ae,De,Ye)=>De in Ae?Ke(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($e)for(var Ye of $e(De))Fe.call(De,Ye)&&te(Ae,Ye,De[Ye]);return Ae},he=(Ae,De)=>He(Ae,St(De));const ue=Pe.default.Option,fe={labelCol:{span:4},wrapperCol:{span:20}},me={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Ee.Z=({callback:Ae,onCancel:De})=>{const[Ye,nt]=(0,oe.useState)("python");function Je(mt){nt(me[mt][1])}function ot(mt){Ae(mt)}return oe.createElement(Ie.default,he(ee({},fe),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ot,style:{width:500}}),oe.createElement(Ie.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},oe.createElement(Pe.default,{getPopupContainer:mt=>mt.parentNode,onChange:Je},Object.keys(me).map(mt=>oe.createElement(ue,{key:mt,value:mt},me[mt][0])))),oe.createElement(Ie.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},oe.createElement(be,{mode:Ye})),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(ke.ZP,{type:"ghost",onClick:De},"\u53D6\u6D88")))};function be({value:Ae,onChange:De,mode:Ye,options:nt={}}){const Je=(0,oe.useRef)(),[ot,mt]=(0,oe.useState)();return(0,oe.useEffect)(()=>{if(ot){let it=function(vt){const wt=vt.getValue();De&&De(wt)};return ot.on("change",it),()=>{ot.off("change",it)}}},[ot,De]),(0,oe.useEffect)(()=>{ot&&ot.setOption("mode",Ye)},[ot,Ye]),(0,oe.useEffect)(()=>{ot&&(Ae!==ot.getValue()||Ae==="")&&setTimeout(()=>{ot.setValue(Ae||"")},300)},[ot,Ae]),(0,oe.useEffect)(()=>{if(Je.current&&!ot){const it=Te().fromTextArea(Je.current,ee({mode:Ye,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},nt));mt(it)}},[Je.current,ot]),oe.createElement("div",{className:"my-codemirror-container"},oe.createElement("textarea",{ref:Je}))}},39793:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Ti}});var oe=ae(59301),Pe=ae(89780),Ie=ae.n(Pe),ke=ae(76374),Ve=ae(8336),Te=ae(6313),Ge=ae(25717),lt=ae(99498),Ke=ae(25419),He=ae(67549),St=ae(76902),$e=({value:hn="",className:Cn,showTextOnly:pn,showLines:Kr,style:Yr={}})=>{const Vr=(0,oe.useMemo)(()=>"",[hn]);return oe.createElement(oe.Fragment,null,oe.createElement("div",{dangerouslySetInnerHTML:{__html:Vr}}))},It=ae(59301),Fe=Object.defineProperty,te=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,me=(hn,Cn,pn)=>Cn in hn?Fe(hn,Cn,{enumerable:!0,configurable:!0,writable:!0,value:pn}):hn[Cn]=pn,be=(hn,Cn)=>{for(var pn in Cn||(Cn={}))ue.call(Cn,pn)&&me(hn,pn,Cn[pn]);if(he)for(var pn of he(Cn))fe.call(Cn,pn)&&me(hn,pn,Cn[pn]);return hn},Ae=(hn,Cn)=>te(hn,ee(Cn));let De=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Ye({onActionCallback:hn,title:Cn,icon:pn,actionName:Kr,className:Yr="",children:Vr}){function dr(){hn(Kr)}return It.createElement("a",{title:Cn,className:Yr,onClick:dr},It.createElement("i",{className:`${pn}`}),Vr)}var nt=({watch:hn,showNullButton:Cn,showNullProgramButton:pn,onActionCallback:Kr,fullScreen:Yr,insertTemp:Vr,hidetoolBar:dr,extraUse:Gr})=>{const bi=[...De,{title:`${hn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${hn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return It.createElement("ul",{className:"markdown-toolbar-container"},!dr&&bi.map((Ai,Oi)=>It.createElement("li",{key:Oi},Ai.actionName?It.createElement(Ye,Ae(be({},Ai),{onActionCallback:Kr})):It.createElement("span",{className:"v-line"}))),Cn?It.createElement("li",null,It.createElement(Ye,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Kr},It.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,pn?It.createElement(It.Fragment,null,It.createElement("li",null,It.createElement(Ye,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Kr},It.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),It.createElement("li",null,It.createElement(Ye,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Kr},It.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Vr&&It.createElement("li",null,It.createElement(Ye,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Vr}`,onActionCallback:Kr},It.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Gr&&It.createElement("li",null,Gr),It.createElement("li",{className:"btn-full-screen"},It.createElement(Ye,{icon:`${Yr?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Yr?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Kr})))},Je=ae(91558),ot=ae(28284),mt=ae(37568),it=ae(99571),vt=Object.defineProperty,wt=Object.defineProperties,Nt=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,Qt=Object.prototype.hasOwnProperty,Yt=Object.prototype.propertyIsEnumerable,yn=(hn,Cn,pn)=>Cn in hn?vt(hn,Cn,{enumerable:!0,configurable:!0,writable:!0,value:pn}):hn[Cn]=pn,bt=(hn,Cn)=>{for(var pn in Cn||(Cn={}))Qt.call(Cn,pn)&&yn(hn,pn,Cn[pn]);if(Ht)for(var pn of Ht(Cn))Yt.call(Cn,pn)&&yn(hn,pn,Cn[pn]);return hn},ft=(hn,Cn)=>wt(hn,Nt(Cn));const ct={labelCol:{span:4},wrapperCol:{span:20}};var Jt=({callback:hn,onCancel:Cn})=>{function pn(Kr){hn(Kr)}return oe.createElement(ot.default,ft(bt({},ct),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:pn,style:{width:500}}),oe.createElement(ot.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},oe.createElement(mt.default,null)),oe.createElement(ot.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},oe.createElement(mt.default,null)),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(it.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(it.ZP,{type:"ghost",onClick:Cn},"\u53D6\u6D88")))},fn=ae(69720),kt=ae(17077),bn=ae(62957),An=ae(77019),Yn=ae(9507),Vt=ae(59301),Bn=({callback:hn,onCancel:Cn})=>{const pn=document.createElement("canvas"),Kr=pn.getContext("2d");pn.width=1e3,pn.height=800,Kr.fillStyle="#ffffff",Kr.fillRect(0,0,pn.width,pn.height);const Yr=pn.toDataURL("image/png");return Vt.createElement(bn.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Vt.createElement(An.Z,{style:{height:"100vh"}},Vt.createElement(Yn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Yr,visible:!0,title:String(Date.now())},onOk:Vr=>{hn({src:Vr.url})},onClose:Cn})))},Mt=ae(12378);function Hn(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Hn,go.CommandHandler),Hn.prototype.canAlignSelection=function(){var hn=this.diagram;return!(hn===null||hn.isReadOnly||hn.isModelReadOnly||hn.selection.count<2)},Hn.prototype.alignLeft=function(){var hn=this.diagram;hn.startTransaction("aligning left");var Cn=1/0;hn.selection.each(function(pn){pn instanceof go.Link||(Cn=Math.min(pn.position.x,Cn))}),hn.selection.each(function(pn){pn instanceof go.Link||pn.move(new go.Point(Cn,pn.position.y))}),hn.commitTransaction("aligning left")},Hn.prototype.alignRight=function(){var hn=this.diagram;hn.startTransaction("aligning right");var Cn=-1/0;hn.selection.each(function(pn){if(!(pn instanceof go.Link)){var Kr=pn.actualBounds.x+pn.actualBounds.width;Cn=Math.max(Kr,Cn)}}),hn.selection.each(function(pn){pn instanceof go.Link||pn.move(new go.Point(Cn-pn.actualBounds.width,pn.position.y))}),hn.commitTransaction("aligning right")},Hn.prototype.alignTop=function(){var hn=this.diagram;hn.startTransaction("alignTop");var Cn=1/0;hn.selection.each(function(pn){pn instanceof go.Link||(Cn=Math.min(pn.position.y,Cn))}),hn.selection.each(function(pn){pn instanceof go.Link||pn.move(new go.Point(pn.position.x,Cn))}),hn.commitTransaction("alignTop")},Hn.prototype.alignBottom=function(){var hn=this.diagram;hn.startTransaction("aligning bottom");var Cn=-1/0;hn.selection.each(function(pn){if(!(pn instanceof go.Link)){var Kr=pn.actualBounds.y+pn.actualBounds.height;Cn=Math.max(Kr,Cn)}}),hn.selection.each(function(pn){pn instanceof go.Link||pn.move(new go.Point(pn.actualBounds.x,Cn-pn.actualBounds.height))}),hn.commitTransaction("aligning bottom")},Hn.prototype.alignCenterX=function(){var hn=this.diagram,Cn=hn.selection.first();if(Cn){hn.startTransaction("aligning Center X");var pn=Cn.actualBounds.x+Cn.actualBounds.width/2;hn.selection.each(function(Kr){Kr instanceof go.Link||Kr.move(new go.Point(pn-Kr.actualBounds.width/2,Kr.actualBounds.y))}),hn.commitTransaction("aligning Center X")}},Hn.prototype.alignCenterY=function(){var hn=this.diagram,Cn=hn.selection.first();if(Cn){hn.startTransaction("aligning Center Y");var pn=Cn.actualBounds.y+Cn.actualBounds.height/2;hn.selection.each(function(Kr){Kr instanceof go.Link||Kr.move(new go.Point(Kr.actualBounds.x,pn-Kr.actualBounds.height/2))}),hn.commitTransaction("aligning Center Y")}},Hn.prototype.alignColumn=function(hn){var Cn=this.diagram;Cn.startTransaction("align Column"),hn===void 0&&(hn=0),hn=parseFloat(hn);var pn=new Array;Cn.selection.each(function(Gr){Gr instanceof go.Link||pn.push(Gr)});for(var Kr=0;Kr<pn.length-1;Kr++){var Yr=pn[Kr],Vr=Yr.actualBounds.y+Yr.actualBounds.height+hn,dr=pn[Kr+1];dr.move(new go.Point(Yr.actualBounds.x,Vr))}Cn.commitTransaction("align Column")},Hn.prototype.alignRow=function(hn){hn===void 0&&(hn=0),hn=parseFloat(hn);var Cn=this.diagram;Cn.startTransaction("align Row");var pn=new Array;Cn.selection.each(function(Gr){Gr instanceof go.Link||pn.push(Gr)});for(var Kr=0;Kr<pn.length-1;Kr++){var Yr=pn[Kr],Vr=Yr.actualBounds.x+Yr.actualBounds.width+hn,dr=pn[Kr+1];dr.move(new go.Point(Vr,Yr.actualBounds.y))}Cn.commitTransaction("align Row")},Hn.prototype.canRotate=function(hn){var Cn=this.diagram;return!(Cn===null||Cn.isReadOnly||Cn.isModelReadOnly||Cn.selection.count<1)},Hn.prototype.rotate=function(hn){hn===void 0&&(hn=90);var Cn=this.diagram;Cn.startTransaction("rotate "+hn.toString());var Cn=this.diagram;Cn.selection.each(function(pn){pn instanceof go.Link||pn instanceof go.Group||(pn.angle+=hn)}),Cn.commitTransaction("rotate "+hn.toString())},Hn.prototype.pullToFront=function(){var hn=this.diagram;hn.startTransaction("pullToFront");var Cn=new go.Map;hn.selection.each(function(pn){Cn.set(pn.layer,0)}),Cn.iteratorKeys.each(function(pn){var Kr=0;pn.parts.each(function(Yr){if(!Yr.isSelected){var Vr=Yr.zOrder;isNaN(Vr)?Yr.zOrder=0:Kr=Math.max(Kr,Vr)}}),Cn.set(pn,Kr)}),hn.selection.each(function(pn){Hn._assignZOrder(pn,Cn.get(pn.layer)+1)}),hn.commitTransaction("pullToFront")},Hn.prototype.pushToBack=function(){var hn=this.diagram;hn.startTransaction("pushToBack");var Cn=new go.Map;hn.selection.each(function(pn){Cn.set(pn.layer,0)}),Cn.iteratorKeys.each(function(pn){var Kr=0;pn.parts.each(function(Yr){if(!Yr.isSelected){var Vr=Yr.zOrder;isNaN(Vr)?Yr.zOrder=0:Kr=Math.min(Kr,Vr)}}),Cn.set(pn,Kr)}),hn.selection.each(function(pn){Hn._assignZOrder(pn,Cn.get(pn.layer)-1-Hn._findGroupDepth(pn))}),hn.commitTransaction("pushToBack")},Hn._assignZOrder=function(hn,Cn,pn){pn===void 0&&(pn=hn),hn.layer===pn.layer&&(hn.zOrder=Cn),hn instanceof go.Group&&hn.memberParts.each(function(Kr){Hn._assignZOrder(Kr,Cn+1,pn)})},Hn._findGroupDepth=function(hn){if(hn instanceof go.Group){var Cn=0;return hn.memberParts.each(function(pn){Cn=Math.max(Cn,Hn._findGroupDepth(pn))}),Cn+1}else return 0},Hn.prototype.doKeyDown=function(){var hn=this.diagram;if(hn!==null){var Cn=hn.lastInput;if(Cn.key==="Up"||Cn.key==="Down"||Cn.key==="Left"||Cn.key==="Right"){var pn=this.arrowKeyBehavior;if(pn==="none")return;if(pn==="select"){this._arrowKeySelect();return}else if(pn==="move"){this._arrowKeyMove();return}else if(pn==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Hn.prototype._getAllParts=function(){var hn=new Array;return this.diagram.nodes.each(function(Cn){hn.push(Cn)}),this.diagram.parts.each(function(Cn){hn.push(Cn)}),hn},Hn.prototype._arrowKeyMove=function(){var hn=this.diagram,Cn=hn.lastInput,pn=0,Kr=0;if(Cn.control||Cn.meta)pn=1,Kr=1;else if(hn.grid!==null){var Yr=hn.grid.gridCellSize;Kr=Yr.width,pn=Yr.height}hn.startTransaction("arrowKeyMove"),hn.selection.each(function(Vr){Cn.key==="Up"?Vr.move(new go.Point(Vr.actualBounds.x,Vr.actualBounds.y-pn)):Cn.key==="Down"?Vr.move(new go.Point(Vr.actualBounds.x,Vr.actualBounds.y+pn)):Cn.key==="Left"?Vr.move(new go.Point(Vr.actualBounds.x-Kr,Vr.actualBounds.y)):Cn.key==="Right"&&Vr.move(new go.Point(Vr.actualBounds.x+Kr,Vr.actualBounds.y))}),hn.commitTransaction("arrowKeyMove")},Hn.prototype._arrowKeySelect=function(){var hn=this.diagram,Cn=hn.lastInput,pn=null;Cn.key==="Up"?pn=this._findNearestPartTowards(270):Cn.key==="Down"?pn=this._findNearestPartTowards(90):Cn.key==="Left"?pn=this._findNearestPartTowards(180):Cn.key==="Right"&&(pn=this._findNearestPartTowards(0)),pn!==null&&(Cn.shift?pn.isSelected=!0:Cn.control||Cn.meta?pn.isSelected=!pn.isSelected:hn.select(pn))},Hn.prototype._findNearestPartTowards=function(hn){var Cn=this.diagram.selection.first();if(Cn===null)return null;for(var pn=Cn.actualBounds.center,Kr=this._getAllParts(),Yr=1/0,Vr=Cn,dr=0;dr<Kr.length;dr++){var Gr=Kr[dr];if(Gr!==Cn&&Gr.canSelect()){var bi=Gr.actualBounds.center,Ai=pn.directionPoint(bi),Oi=this._angleCloseness(Ai,hn);if(Oi<=45){var xt=pn.distanceSquaredPoint(bi);xt*=1+Math.sin(Oi*Math.PI/180),xt<Yr&&(Yr=xt,Vr=Gr)}}}return Vr},Hn.prototype._angleCloseness=function(hn,Cn){return Math.min(Math.abs(Cn-hn),Math.min(Math.abs(Cn+360-hn),Math.abs(Cn-360-hn)))},Hn.prototype._arrowKeyTree=function(){var hn=this.diagram,Cn=hn.selection.first();if(Cn instanceof go.Node){var pn=hn.lastInput;if(pn.key==="Right"){if(!Cn.isTreeLeaf)if(!Cn.isTreeExpanded)hn.commandHandler.canExpandTree(Cn)&&hn.commandHandler.expandTree(Cn);else{var Kr=this._sortTreeChildrenByY(Cn).first();Kr!==null&&hn.select(Kr)}}else if(pn.key==="Left")if(!Cn.isTreeLeaf&&Cn.isTreeExpanded)hn.commandHandler.canCollapseTree(Cn)&&hn.commandHandler.collapseTree(Cn);else{var Yr=Cn.findTreeParentNode();Yr!==null&&hn.select(Yr)}else if(pn.key==="Up"){var Yr=Cn.findTreeParentNode();if(Yr!==null){var Vr=this._sortTreeChildrenByY(Yr),dr=Vr.indexOf(Cn);if(dr>0){for(var Gr=Vr.elt(dr-1);Gr!==null&&Gr.isTreeExpanded&&!Gr.isTreeLeaf;){var bi=this._sortTreeChildrenByY(Gr);Gr=bi.last()}Gr!==null&&hn.select(Gr)}else hn.select(Yr)}}else if(pn.key==="Down")if(Cn.isTreeExpanded&&!Cn.isTreeLeaf){var Kr=this._sortTreeChildrenByY(Cn).first();Kr!==null&&hn.select(Kr)}else for(;Cn!==null;){var Yr=Cn.findTreeParentNode();if(Yr===null)break;var Vr=this._sortTreeChildrenByY(Yr),dr=Vr.indexOf(Cn);if(dr<Vr.length-1){hn.select(Vr.elt(dr+1));break}else Cn=Yr}var Ai=hn.selection.first();Ai!==null&&hn.scrollToRect(Ai.actualBounds)}},Hn.prototype._sortTreeChildrenByY=function(hn){var Cn=new go.List().addAll(hn.findTreeChildrenNodes());return Cn.sort(function(pn,Kr){var Yr=pn.location,Vr=Kr.location;return Yr.y<Vr.y?-1:Yr.y>Vr.y?1:Yr.x<Vr.x?-1:Yr.x>Vr.x?1:0}),Cn},Hn.prototype.copyToClipboard=function(hn){go.CommandHandler.prototype.copyToClipboard.call(this,hn),this._lastPasteOffset.set(this.pasteOffset)},Hn.prototype.pasteFromClipboard=function(){var hn=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(hn,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),hn},Object.defineProperty(Hn.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(hn){if(hn!=="move"&&hn!=="select"&&hn!=="scroll"&&hn!=="tree"&&hn!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+hn);this._arrowKeyBehavior=hn}}),Object.defineProperty(Hn.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(hn){if(!(hn instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+hn);this._pasteOffset.set(hn)}});var ur=Hn,at=ae(63720),_e=ae(5269),Re=ae(38986),Xe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},st=ae(48790),Be=ae(59301),Et=(hn,Cn,pn)=>new Promise((Kr,Yr)=>{var Vr=bi=>{try{Gr(pn.next(bi))}catch(Ai){Yr(Ai)}},dr=bi=>{try{Gr(pn.throw(bi))}catch(Ai){Yr(Ai)}},Gr=bi=>bi.done?Kr(bi.value):Promise.resolve(bi.value).then(Vr,dr);Gr((pn=pn.apply(hn,Cn)).next())});function En({onCancel:hn,callback:Cn}){let pn=(0,oe.useRef)(),Kr=(0,oe.useRef)(),Yr=(0,oe.useRef)(),Vr=(0,oe.useRef)(!1);const dr=(0,oe.useRef)(!1),[Gr,bi]=(0,oe.useState)(0);function Ai(){const xt=Mt.bx.make,on={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"};pn.current=new Mt.S0(Kr.current,{padding:20,grid:xt(Mt.s_,"Grid",xt(Mt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),xt(Mt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:zr=>{var si=zr.diagram.commandHandler.addTopLevelParts(zr.diagram.selection,!0);si||zr.diagram.currentTool.doCancel()},commandHandler:xt(ur),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:zr=>{var si=zr.subject;si.location=si.location.copy().snapToGridPoint(zr.diagram.grid.gridOrigin,zr.diagram.grid.gridCellSize),setTimeout(()=>{zr.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:zr=>{var si=zr.subject;setTimeout(()=>{zr.diagram.commandHandler.editTextBlock()})},LinkRelinked:zr=>{var si=zr.parameter.part;si.invalidateConnectedLinks();var di=zr.subject;zr.diagram.toolManager.linkingTool.isForwards?di.toNode.invalidateConnectedLinks():di.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),pn.current.nodeTemplate=xt(Mt.NB,"Auto",{locationSpot:Mt.z6.Center,locationObjectName:"SHAPE",desiredSize:new Mt.$u(120,60),minSize:new Mt.$u(40,40),resizable:!0,resizeCellSize:new Mt.$u(10,10),rotatable:!0},new Mt.KX("location","loc",Mt.E9.parse).makeTwoWay(Mt.E9.stringify),new Mt.KX("desiredSize","size",Mt.$u.parse).makeTwoWay(Mt.$u.stringify),xt(Mt.bn,{name:"SHAPE",fill:on.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Mt.z6.AllSides,toSpot:Mt.z6.AllSides},new Mt.KX("figure"),new Mt.KX("fill"),new Mt.KX("stroke","borderColor"),new Mt.KX("strokeWidth","thickness"),new Mt.KX("strokeDashArray","dash")),xt(Mt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),xt(Mt.al,{margin:1,textAlign:"center",overflow:Mt.al.OverflowEllipsis,editable:!0},new Mt.KX("text").makeTwoWay(),new Mt.KX("stroke","color"))),pn.current.nodeTemplate.toolTip=xt("ToolTip",xt(Mt.s_,"Vertical",{maxSize:new Mt.$u(200,NaN)},xt(Mt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Mt.KX("text")),xt(Mt.al,{font:"10pt sans-serif",textAlign:"center"},new Mt.KX("text","details"))));function br(zr,si){var di=(ti,ki)=>{ti.handled=!0,ti.diagram.model.commit(Bi=>{var Zi=ki.part.adornedPart,Fi=new Mt.E9().setRectSpot(Zi.actualBounds,zr);Fi.subtract(Zi.location),Fi.scale(2,2),Fi.x+=Math.sign(Fi.x)*130,Fi.y+=Math.sign(Fi.y)*130,Fi.add(Zi.location),Fi.snapToGridPoint(ti.diagram.grid.gridOrigin,ti.diagram.grid.gridCellSize);var Vi=Bi.copyNodeData(Zi.data);Bi.setGroupKeyForNodeData(Vi,Bi.getGroupKeyForNodeData(Zi.data)),Bi.addNodeData(Vi);var er={from:Zi.key,to:Bi.getKeyForNodeData(Vi)};Bi.addLinkData(er);var _i=ti.diagram.findNodeForData(Vi);_i.location=Fi,ti.diagram.select(_i),setTimeout(()=>{ti.diagram.commandHandler.editTextBlock()},20)})};return xt(Mt.bn,{figure:si,alignment:zr,alignmentFocus:zr.opposite(),width:zr.equals(Mt.z6.Top)||zr.equals(Mt.z6.Bottom)?25:18,height:zr.equals(Mt.z6.Top)||zr.equals(Mt.z6.Bottom)?18:25,fill:"orange",stroke:on.white,strokeWidth:4,mouseEnter:(ti,ki)=>ki.fill="dodgerblue",mouseLeave:(ti,ki)=>ki.fill="orange",isActionable:!0,click:di,contextClick:di})}function Br(zr){return xt(Mt.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:(si,di)=>di.fill="dodgerblue",mouseLeave:(si,di)=>di.fill="orange",click:(si,di)=>{si.diagram.commandHandler.showContextMenu(di.part.adornedPart)}},zr||{})}pn.current.nodeTemplate.selectionAdornmentTemplate=xt(Mt.uz,"Spot",xt(Mt.Vm,{padding:10}),br(Mt.z6.Top,"TriangleUp"),br(Mt.z6.Left,"TriangleLeft"),br(Mt.z6.Right,"TriangleRight"),br(Mt.z6.Bottom,"TriangleDown"),Br({alignment:new Mt.z6(.75,0)}));function Xt(zr,si){return(di,ti)=>{di.handled=!0,di.diagram.model.commit(ki=>{ki.set(ti.part.adornedPart.data,zr,si)})}}function fr(zr,si){return si||(si="color"),xt(Mt.bn,{width:16,height:16,stroke:"lightgray",fill:zr,margin:1,background:"transparent",mouseEnter:(di,ti)=>ti.stroke="dodgerblue",mouseLeave:(di,ti)=>ti.stroke="lightgray",click:Xt(si,zr),contextClick:Xt(si,zr)})}function Tn(){return[xt("ContextMenuButton",xt(Mt.s_,"Horizontal",fr(on.white,"fill"),fr(on.beige,"fill"),fr(on.extralightblue,"fill"),fr(on.extralightred,"fill"))),xt("ContextMenuButton",xt(Mt.s_,"Horizontal",fr(on.lightgray,"fill"),fr(on.lightgreen,"fill"),fr(on.lightblue,"fill"),fr(on.lightred,"fill")))]}function un(){return[xt("ContextMenuButton",xt(Mt.s_,"Horizontal",fr(on.black),fr(on.green),fr(on.blue),fr(on.red))),xt("ContextMenuButton",xt(Mt.s_,"Horizontal",fr(on.white),fr(on.magenta),fr(on.purple),fr(on.orange)))]}function Ue(zr,si){return si||(si="thickness"),xt(Mt.bn,"LineH",{width:16,height:16,strokeWidth:zr,margin:1,background:"transparent",mouseEnter:(di,ti)=>ti.background="dodgerblue",mouseLeave:(di,ti)=>ti.background="transparent",click:Xt(si,zr),contextClick:Xt(si,zr)})}function Nr(zr,si){return si||(si="dash"),xt(Mt.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:zr,margin:1,background:"transparent",mouseEnter:(di,ti)=>ti.background="dodgerblue",mouseLeave:(di,ti)=>ti.background="transparent",click:Xt(si,zr),contextClick:Xt(si,zr)})}function jr(){return[xt("ContextMenuButton",xt(Mt.s_,"Horizontal",Ue(1),Ue(2),Ue(3),Ue(4))),xt("ContextMenuButton",xt(Mt.s_,"Horizontal",Nr(null),Nr([2,4]),Nr([4,4])))]}function zn(zr,si){return si||(si="figure"),xt(Mt.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:zr,margin:1,background:"transparent",mouseEnter:(di,ti)=>ti.fill="dodgerblue",mouseLeave:(di,ti)=>ti.fill="lightgray",click:Xt(si,zr),contextClick:Xt(si,zr)})}pn.current.nodeTemplate.contextMenu=xt("ContextMenu",xt("ContextMenuButton",xt(Mt.s_,"Horizontal",zn("Rectangle"),zn("RoundedRectangle"),zn("Ellipse"),zn("Diamond"))),xt("ContextMenuButton",xt(Mt.s_,"Horizontal",zn("Parallelogram2"),zn("ManualOperation"),zn("Procedure"),zn("Cylinder1"))),xt("ContextMenuButton",xt(Mt.s_,"Horizontal",zn("Terminator"),zn("CreateRequest"),zn("Document"),zn("TriangleDown"))),Tn(),un(),jr()),pn.current.groupTemplate=xt(Mt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Mt.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(zr,si)=>{var di=si.addMembers(si.diagram.selection,!0);di||si.diagram.currentTool.doCancel()},avoidable:!1},new Mt.KX("location","loc",Mt.E9.parse).makeTwoWay(Mt.E9.stringify),xt(Mt.s_,"Auto",{name:"BODY"},xt(Mt.bn,{parameter1:10,fill:on.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Mt.z6.AllSides,toSpot:Mt.z6.AllSides},new Mt.KX("fill"),new Mt.KX("stroke","color"),new Mt.KX("strokeWidth","thickness"),new Mt.KX("strokeDashArray","dash")),xt(Mt.Vm,{background:"transparent",margin:20})),xt(Mt.al,{alignment:Mt.z6.Top,alignmentFocus:Mt.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Mt.KX("text"),new Mt.KX("stroke","color"))),pn.current.groupTemplate.selectionAdornmentTemplate=xt(Mt.uz,"Spot",xt(Mt.s_,"Auto",xt(Mt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),xt(Mt.Vm,{margin:1.5})),Br({alignment:Mt.z6.TopRight,alignmentFocus:Mt.z6.BottomRight})),pn.current.groupTemplate.contextMenu=xt("ContextMenu",Tn(),un(),jr()),pn.current.linkTemplate=xt(Mt.rU,{layerName:"Foreground",routing:Mt.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Mt.KX("fromSpot","fromSpot",Mt.z6.parse),new Mt.KX("toSpot","toSpot",Mt.z6.parse),new Mt.KX("fromShortLength","dir",zr=>zr>=1?10:0),new Mt.KX("toShortLength","dir",zr=>zr>=1?10:0),new Mt.KX("points").makeTwoWay(),xt(Mt.bn,{strokeWidth:2},new Mt.KX("stroke","color"),new Mt.KX("strokeWidth","thickness"),new Mt.KX("strokeDashArray","dash")),xt(Mt.bn,{segmentIndex:0,segmentOffset:new Mt.E9(15,0),segmentOrientation:Mt.rU.OrientAlong,alignmentFocus:Mt.z6.Right,figure:"circle",width:10,strokeWidth:0},new Mt.KX("fill","color"),new Mt.KX("visible","dir",zr=>zr===1)),xt(Mt.bn,{segmentIndex:-1,segmentOffset:new Mt.E9(-10,6),segmentOrientation:Mt.rU.OrientPlus90,alignmentFocus:Mt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Mt.KX("fill","color"),new Mt.KX("visible","dir",zr=>zr>=1),new Mt.KX("width","thickness",zr=>7+3*zr),new Mt.KX("height","thickness",zr=>7+3*zr),new Mt.KX("segmentOffset","thickness",zr=>new Mt.E9(-15,4+1.5*zr))),xt(Mt.bn,{segmentIndex:0,segmentOffset:new Mt.E9(15,-6),segmentOrientation:Mt.rU.OrientMinus90,alignmentFocus:Mt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Mt.KX("fill","color"),new Mt.KX("visible","dir",zr=>zr===2),new Mt.KX("width","thickness",zr=>7+3*zr),new Mt.KX("height","thickness",zr=>7+3*zr),new Mt.KX("segmentOffset","thickness",zr=>new Mt.E9(-15,4+1.5*zr))),xt(Mt.al,{alignmentFocus:new Mt.z6(0,1,-4,0),editable:!0},new Mt.KX("text").makeTwoWay(),new Mt.KX("stroke","color"))),pn.current.linkTemplate.selectionAdornmentTemplate=xt(Mt.uz,xt(Mt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:vi(2)},new Mt.KX("pathPattern","thickness",vi)),Br({alignmentFocus:new Mt.z6(0,0,-6,-4)}));function vi(zr){return xt(Mt.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(zr+4).toString()+" H3"})}function Xr(zr){var si="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return zr===0?si="M0 0 M16 16 M0 8 L16 8":zr===2&&(si="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),xt(Mt.bn,{geometryString:si,margin:2,background:"transparent",mouseEnter:(di,ti)=>ti.background="dodgerblue",mouseLeave:(di,ti)=>ti.background="transparent",click:Xt("dir",zr),contextClick:Xt("dir",zr)})}function ci(zr){var si=(di,ti)=>{di.handled=!0,di.diagram.model.commit(ki=>{var Bi=ti.part.adornedPart;ki.set(Bi.data,zr?"toSpot":"fromSpot",Mt.z6.stringify(Mt.z6.AllSides)),(zr?Bi.toNode:Bi.fromNode).invalidateConnectedLinks()})};return xt(Mt.bn,{width:12,height:12,fill:"transparent",mouseEnter:(di,ti)=>ti.background="dodgerblue",mouseLeave:(di,ti)=>ti.background="transparent",click:si,contextClick:si})}function Gn(zr,si){var di=0,ti=Mt.z6.RightSide;zr.equals(Mt.z6.Top)?(di=270,ti=Mt.z6.TopSide):zr.equals(Mt.z6.Left)?(di=180,ti=Mt.z6.LeftSide):zr.equals(Mt.z6.Bottom)&&(di=90,ti=Mt.z6.BottomSide),si||(di-=180);var ki=(Bi,Zi)=>{Bi.handled=!0,Bi.diagram.model.commit(Fi=>{var Vi=Zi.part.adornedPart;Fi.set(Vi.data,si?"toSpot":"fromSpot",Mt.z6.stringify(ti)),(si?Vi.toNode:Vi.fromNode).invalidateConnectedLinks()})};return xt(Mt.bn,{alignment:zr,alignmentFocus:zr.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:di,background:"transparent",mouseEnter:(Bi,Zi)=>Zi.background="dodgerblue",mouseLeave:(Bi,Zi)=>Zi.background="transparent",click:ki,contextClick:ki})}pn.current.linkTemplate.contextMenu=xt("ContextMenu",un(),jr(),xt("ContextMenuButton",xt(Mt.s_,"Horizontal",Xr(0),Xr(1),Xr(2))),xt("ContextMenuButton",xt(Mt.s_,"Horizontal",xt(Mt.s_,"Spot",ci(!1),Gn(Mt.z6.Top,!1),Gn(Mt.z6.Left,!1),Gn(Mt.z6.Right,!1),Gn(Mt.z6.Bottom,!1)),xt(Mt.s_,"Spot",{margin:new Mt.Zt(0,0,0,2)},ci(!0),Gn(Mt.z6.Top,!0),Gn(Mt.z6.Left,!0),Gn(Mt.z6.Right,!0),Gn(Mt.z6.Bottom,!0)))));const cn=`{ "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 Ci=["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 ji(zr){return console.log("shapeName:",zr),Ci.indexOf(zr)>=0}var Qn=new Mt.YI(Yr.current,{maxSelectionCount:1,linkTemplate:xt(Mt.rU,{locationSpot:Mt.z6.Center,selectionAdornmentTemplate:xt(Mt.uz,"Link",{locationSpot:Mt.z6.Center},xt(Mt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),xt(Mt.bn,{toArrow:"Standard",stroke:null}))},{routing:Mt.rU.AvoidsNodes,curve:Mt.rU.JumpOver,corner:5,toShortLength:4},new Mt.KX("points"),xt(Mt.bn,{isPanelMain:!0,strokeWidth:2}),xt(Mt.bn,{toArrow:"Standard",stroke:null})),model:new Mt.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Mt.bn.getFigureGenerators().toArray().map(zr=>({text:"\u672A\u547D\u540D",size:"100 100",figure:zr.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return pn.current.addDiagramListener("TextEdited",function(zr){var si;const di=zr.subject.part;var ti=(si=document.activeElement)==null?void 0:si.value;typeof ti=="string"&&ti.trim()===""&&pn.current.model.commit(function(ki){ki.set(di.data,"text","\u672A\u547D\u540D"),pn.current.commandHandler.stopCommand()},"increment")}),Qn.nodeTemplate=xt(Mt.NB,"Auto",{locationSpot:Mt.z6.Center},new Mt.KX("location","location",Mt.E9.parse).makeTwoWay(Mt.E9.stringify),xt(Mt.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 Mt.KX("stroke").makeTwoWay(),new Mt.KX("fill").makeTwoWay(),new Mt.KX("figure")),xt(Mt.al,{margin:new Mt.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Mt.$u(16,16),maxSize:new Mt.$u(10,NaN),textAlign:"center",editable:!0},new Mt.KX("key").makeTwoWay())),setTimeout(()=>{pn.current.grid=xt(Mt.s_,"Grid",xt(Mt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),xt(Mt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),pn.current.grid.visible=!0,pn.current.grid.gridCellStroke="darkgray",pn.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=pn.current,pn.current}const Oi=()=>Et(this,null,function*(){var xt,on=pn.current.makeImage();const br=yield(0,Re.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:on.src,file_data:JSON.stringify({login:(xt=(0,st.eY)())==null?void 0:xt.login,data:JSON.parse(pn.current.model.toJson())})}});Cn({src:br.url})});return(0,oe.useEffect)(()=>(setTimeout(()=>{Ai()},500),bi(Gr+1),()=>{pn.current=null}),[]),Be.createElement("div",{ref:dr,className:"body-overflow-initial"},Be.createElement(bn.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Gr,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Be.createElement(An.Z,null,Be.createElement(_e.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Be.createElement(_e.Z,{onClick:()=>{var xt,on,br=pn.current.selection.first();if(Vr.current=!Vr.current,document.activeElement&&br){let Br=(on=(xt=document.activeElement)==null?void 0:xt.value)==null?void 0:on.trim();typeof Br=="string"&&pn.current.model.commit(function(Xt){Xt.set(br.data,"text",Br||"\u672A\u547D\u540D"),pn.current.commandHandler.stopCommand()},"increment")}bi(Gr+1)}},Be.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:hn},Be.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:Vr.current?"none":"block"},className:Xe.flowChartWrp},Be.createElement("div",{style:{display:"flex",height:"100%"}},Be.createElement("div",{style:{width:"300px",height:"100%"}},Be.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Be.createElement("div",{style:{height:"calc(100% - 50px)"},className:Xe.myPaletteDiv,ref:Yr})),Be.createElement("div",{style:{flex:1,position:"relative"}},Be.createElement("div",{ref:Kr,style:{height:"80vh"}}))),Be.createElement("div",{className:"tr"},Be.createElement(it.ZP,{size:"large",onClick:Oi,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var sn=En,Mn=ae(47889),Dt=ae(71051);const _t=Mn.ZP.Group,jt={margin:"0 8px"};var dn=({callback:hn,onCancel:Cn})=>{function pn(Kr){hn(Kr)}return oe.createElement(ot.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:pn},oe.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},oe.createElement("span",{style:jt},"\u5355\u5143\u683C\u6570\uFF1A"),oe.createElement("span",{style:jt},"\u884C\u6570"),oe.createElement(ot.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},oe.createElement(Dt.Z,null)),oe.createElement("span",{style:jt},"\u5217\u6570"),oe.createElement(ot.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},oe.createElement(Dt.Z,null))),oe.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},oe.createElement("span",{style:jt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),oe.createElement(ot.default.Item,{name:"align"},oe.createElement(_t,null,oe.createElement(Mn.ZP,{value:"default"},oe.createElement("i",{className:"fa fa-align-justify"})),oe.createElement(Mn.ZP,{value:"left"},oe.createElement("i",{className:"fa fa-align-left"})),oe.createElement(Mn.ZP,{value:"center"},oe.createElement("i",{className:"fa fa-align-center"})),oe.createElement(Mn.ZP,{value:"right"},oe.createElement("i",{className:"fa fa-align-right"}))))),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(it.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(it.ZP,{type:"ghost",onClick:Cn},"\u53D6\u6D88")))},Sn=ae(71411),gn=ae(43001),Ot=ae.n(gn),Zt=(0,oe.forwardRef)(({use3d:hn,width:Cn,height:pn,callback:Kr,showSaveButton:Yr},Vr)=>{const dr=(0,oe.useRef)(),Gr=(0,oe.useRef)(),[bi,Ai]=(0,oe.useState)(!1),Oi=(0,oe.useRef)({id:dr,appName:"graphing",width:Cn||1e3,height:pn||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)(()=>{Gr.current=new(Ot())(Oi.current,!0),window.onload=function(){Gr.current.inject("applet_container")}},[]);const xt=()=>{var on=window.ggbApplet.getPNGBase64(1,!0,72);return Kr&&Kr(on),on};return(0,oe.useEffect)(()=>{Oi.current.appName=bi?"3D":"graphing",Gr.current.inject("applet_container")},[bi]),(0,oe.useEffect)(()=>{Ai(hn)},[hn]),(0,oe.useImperativeHandle)(Vr,()=>({getImgData:xt})),oe.createElement(oe.Fragment,null,oe.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:dr}),oe.createElement(An.Z,{align:"middle"},oe.createElement(_e.Z,{flex:1},oe.createElement(Sn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:bi,onChange:on=>Ai(on)})),oe.createElement(_e.Z,null,oe.createElement(it.ZP,{size:"large",onClick:xt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),tn=ae(76562),vn=ae(6767);const $n="link",mn="upload-image",gt="add-flowchart",Xn="draw-image",ir="add-flowchart",nn="code-block",vr="add-table",$r="------------",Lr={default:$r,left:`:${$r}`,center:`:${$r}:`,right:`${$r}:`};var Rn=ae(37808);function ei(){}let Jr=0;const nr=1e4,Wr="\u2581",oi="@\u2581\u2581@",Oe="@\u2581@",cr=`
**\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`,Cr=["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 or(hn){return/^\d+$/.test(hn)?`${hn}px`:hn}const Fr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Or={[Fr+"-B"]:"bold",[Fr+"-I"]:"italic"},mi={[$n]:"\u6DFB\u52A0\u94FE\u63A5",[nn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[mn]:"\u6DFB\u52A0\u56FE\u7247",[Xn]:"\u6DFB\u52A0\u753B\u56FE",[gt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[vr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Ti=({defaultValue:hn="",onChange:Cn,width:pn="100%",height:Kr=400,miniToolbar:Yr=!1,isFocus:Vr=!1,watch:dr,insertTemp:Gr,mode:bi="markdown",id:Ai="markdown-editor-id",showResizeBar:Oi=!1,noStorage:xt=!1,showNullButton:on=!1,showNullProgramButton:br=!1,hidetoolBar:Br=!1,fullScreen:Xt=!1,onBlur:fr,onCMBeforeChange:Tn,onFullScreen:un,className:Ue="",disablePaste:Nr=!1,disabled:jr=!1,disabledFill:zn=!1,placeholder:vi="",values:Xr="",extraUse:ci})=>{const[Gn,cn]=(0,oe.useState)(null),[Ci,ji]=(0,oe.useState)(hn),[Qn,zr]=(0,oe.useState)(dr),[si,di]=(0,oe.useState)(Xt),[ti,ki]=(0,oe.useState)(""),[Bi,Zi]=(0,oe.useState)(0),[Fi,Vi]=(0,oe.useState)(Kr),[er,_i]=(0,oe.useState)(!1),[ar,Ei]=(0,oe.useState)(0),[Gi,Ui]=(0,oe.useState)(0),po=(0,oe.useRef)(),ho=(0,oe.useRef)(),Qi=(0,oe.useRef)(),Ro=(0,oe.useRef)();(0,oe.useEffect)(()=>{const sr=window.scrollY||window.pageYOffset;ji(Xr),Gn==null||Gn.setValue(Xr),window.scrollTo(0,sr)},[Xr]),(0,oe.useEffect)(()=>{un==null||un(si)},[si]),(0,oe.useEffect)(()=>{if(po.current){let sr=function(ln,qn){var Ur;if(Nr){qn.preventDefault();return}const Ni=qn.clipboardData;if(Ni){const ai=Ni.types.toString(),Si=Ni.items;if(ai==="Files"||Ni.types.indexOf("Files")>-1){if(qn.preventDefault(),bi=="stex")return;try{let Ii=Si[1];((Ur=Si[0])==null?void 0:Ur.kind)==="file"&&(Ii=Si[0]);const Ri=Ii.getAsFile(),co=Ri.name.split(".").pop();(0,kt.I)(Ri,mo=>{var zo,kn,bo;mo.id?((zo=Ri==null?void 0:Ri.type)==null?void 0:zo.indexOf("image"))>-1?Un.replaceSelection(`<img width="100%" src="/api/attachments/${mo.id}?type=${mo.content_type})" alt="" />`):((kn=Ri==null?void 0:Ri.type)==null?void 0:kn.indexOf("video"))>-1?Un.replaceSelection(`<video width="100%" controls src="/api/attachments/${mo.id}"></video>`):((bo=Ri==null?void 0:Ri.type)==null?void 0:bo.indexOf("pdf"))>-1?Un.replaceSelection(`<a href="/api/attachments/${mo.id}?type=${Ri.type}&disposition=inline" target="_blank">${Ri.name}</a>`):Cr.includes(co)?Un.replaceSelection(`<a href="/api/attachments/${mo.id}?type=office&disposition=inline" target="_blank">${Ri.name}</a>`):Un.replaceSelection(`[${Ri.name}](/api/attachments/${mo.id}?type=${mo.content_type})`):(mo==null?void 0:mo.status)===401&&(document.location.href="/user/login")})}catch(Ii){vn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Un=Ie().fromTextArea(po.current,{mode:bi,lineNumbers:!Yr,lineWrapping:!0,value:hn,autoCloseTags:!0,autoCloseBrackets:!0});return Un.on("keyup",function(ln,qn){qn.keyCode===8&&(ln.getValue()==""?Un.setOption("placeholder",vi):Un.setOption("placeholder",null))}),Un.on("keydown",function(ln,qn){if(qn.keyCode===8){var Ur=pr(ln);Ur&&qn.preventDefault()}}),Vr&&Un.focus(),Un.on("paste",sr),jr&&Un.on("beforeChange",function(ln,qn){(qn.origin==="paste"||qn.origin==="+input")&&qn.cancel()}),cn(Un),()=>{Un.off("paste",sr)}}},[]);const Fn=(0,oe.useCallback)(()=>{if(ho.current)try{}catch(sr){console.log(sr,"---- to set md editor body height")}},[Fi,ho,si]);(0,oe.useEffect)(()=>{function sr(){let Un=new ke.Z(ln=>{for(let qn of ln)(qn.target.offsetHeight>0||qn.target.offsetWidth>0)&&(Fn(),Gn.setSize("100%","100%"),Gn.refresh())});return Un.observe(po.current.parentElement),Un}if(Gn){const Un=sr();return()=>{var ln,qn;(ln=po.current)!=null&&ln.parentElement&&Un.unobserve((qn=po.current)==null?void 0:qn.parentElement)}}},[Gn,Fn]),(0,oe.useEffect)(()=>{if(Gn){let sr=[];for(const[Un,ln]of Object.entries(Or)){let qn={[Un]:()=>{Ln(ln)}};sr.push(qn),Gn.addKeyMap(qn)}return()=>{for(let Un of sr)Gn.removeKeyMap(Un)}}},[Gn]),(0,oe.useEffect)(()=>{Xt!==si&&di(Xt)},[Xt]),(0,Rn.Z)(()=>{if(!xt&&Bi>0){let sr=new Date().getTime(),Un=window.sessionStorage.getItem(Ai);sr>=Bi+nr&&(!Un||Un!==Ci)&&(window.sessionStorage.setItem(Ai,Ci),_i(!0))}},nr),(0,oe.useEffect)(()=>{zr(dr)},[Gn,dr]),(0,oe.useEffect)(()=>{Gn&&Vr&&Gn.focus()},[Gn,Vr]),(0,oe.useEffect)(()=>{if(Qn&&Gn){let sr=function(ln){let qn=ln.target;if(Ro.current){let Ur=qn.scrollTop/qn.scrollHeight;Ro.current.scrollTop=Ro.current.scrollHeight*Ur}};const Un=Gn.getScrollerElement();return Un.addEventListener("scroll",sr),()=>{Un.removeEventListener("scroll",sr)}}},[Gn,Qn]),(0,oe.useEffect)(()=>{if(Gn&&Tn){let sr=function(Un,ln){Tn(Un,ln)};return Gn.on("beforeChange",sr),()=>{Gn.off("beforeChange",sr)}}},[Gn,Tn]),(0,oe.useEffect)(()=>{if(Gn&&fr){let sr=function(){fr(Gn.getValue())};return Gn.on("blur",sr),()=>{Gn.off("blur",sr)}}},[Gn,fr]);function pr(sr,Un){var ln=sr.getDoc(),qn=ln.getCursor(),Ur=ln.getLine(qn.line),Ni=Ur.charAt(qn.ch-1),ai=Ur.lastIndexOf("@\u2581@",qn.ch),Si=Ur.lastIndexOf("@\u2581\u2581@",qn.ch),Ii=ai>Si?ai:Si,Ri=ai>Si?3:4;if(oi.indexOf(Ni)===-1)return null;if(console.log("change1:",Un,sr,Ur,qn,Ii,ai,Si,Ni),Ii>=0&&qn.ch-Ii<5){var co=Ii+Ri;return ln.replaceRange("",{line:qn.line,ch:Ii},{line:qn.line,ch:co}),{line:qn.line,ch:co}}return null}(0,oe.useEffect)(()=>{if(Gn){let sr=function(Un,ln){const qn=Un.getValue();ji(qn),Zi(new Date().getTime()),Un.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Cn&&(br?Cn(qn,ht(qn)):Cn(qn))};return Gn.on("change",sr),()=>{Gn.off("change",sr)}}},[Gn,Cn]),(0,oe.useEffect)(()=>{if(Gn)if(hn==null)Gn.setValue(""),ji("");else{const sr=window.scrollY||window.pageYOffset;hn!==Gn.getValue()&&(Gn.setValue(hn),ji(hn),Gn.setCursor(jr?1:Gn.lineCount(),0),window.scrollTo(0,sr))}},[Gn,hn]);const Ln=(0,oe.useCallback)(sr=>{const Un=Gn.getCursor(),ln=Gn.getSelection();let qn=ln.split(`
`);switch(sr){case"bold":return Gn.replaceSelection("**"+ln+"**"),ln===""&&Gn.setCursor(Un.line,Un.ch+2),Gn.focus();case"italic":return Gn.replaceSelection("*"+ln+"*"),ln===""&&Gn.setCursor(Un.line,Un.ch+1),Gn.focus();case"code":return Gn.replaceSelection("`"+ln+"`"),ln===""&&Gn.setCursor(Un.line,Un.ch+1),Gn.focus();case"inline-latex":return ki("inline-latex"),Gn.focus();case"latex":return Gn.replaceSelection("```latex\n"+ln+"\n```"),Gn.setCursor(Un.line+1,ln.length+1),Gn.focus();case"line-break":return Gn.replaceSelection(`<br/>
`),Gn.focus();case"list-ul":return ln===""?Gn.replaceSelection("- "+ln):Gn.replaceSelection(qn.map(Ur=>Ur===""?"":`- ${Ur}`).join(`
`)),Gn.focus();case"list-ol":return ln===""?Gn.replaceSelection("1. "+ln):Gn.replaceSelection(qn.map((Ur,Ni)=>Ur===""?"":`${Ni+1}. ${Ur}`).join(`
`)),Gn.focus();case"add-null-ch":return ln===""&&Gn.setCursor(Un.line,Un.ch),Gn.replaceSelection(Wr),Gn.focus();case"add-signal":return ln===""&&Gn.setCursor(Un.line,Un.ch),Gn.replaceSelection(Oe),Gn.focus();case"add-multiple":return ln===""&&Gn.setCursor(Un.line,Un.ch),Gn.replaceSelection(oi),Gn.focus();case"inster-template-1":return ln===""&&Gn.setCursor(Un.line,Un.ch),Gn.replaceSelection(cr),Gn.focus();case"eraser":return Gn.setValue(""),Gn.focus();case"trigger-watch":return zr(!Qn),Gn.focus();case"trigger-full-screen":return di(!si),Gn.focus();case $n:ki($n);return;case nn:ki(nn);return;case mn:ki(mn);return;case Xn:ki(Xn);return;case"maths-latex":ki("maths-latex");return;case gt:ki(gt);return;case vr:ki(vr);return;default:throw new Error}},[Gn,Qn,si]),rt=(0,oe.useCallback)((sr,Un)=>{var ln,qn,Ur,Ni,ai,Si;switch(ki(""),ti){case $n:const{title:zo,link:kn}=sr;return Gn.replaceSelection(`[${zo}](${kn})`),Gn.focus();case nn:const{language:bo,content:wo}=sr;return Gn.replaceSelection(["```"+bo,wo,"```"].join(`
`)),Gn.focus();case"maths-latex":for(var Ii=atob(sr),Ri=new Uint8Array(Ii.length),co=0;co<Ii.length;co++)Ri[co]=Ii.charCodeAt(co);var mo=new Blob([Ri],{type:"image/png"});(0,kt.I)(mo,Ba=>{Ba.id?Gn.replaceSelection(`![,](/api/attachments/${Ba.id}?type=${Ba.content_type})`):(Ba==null?void 0:Ba.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Gn.replaceSelection("`$$"+sr+"$$`");break;case mn:case Xn:case ir:const{src:Wi,alt:so}=sr,ro=Un,Xo=(Ur=(qn=(ln=ro==null?void 0:ro.name)==null?void 0:ln.split("."))==null?void 0:qn.pop)==null?void 0:Ur.call(qn);return((Ni=ro==null?void 0:ro.type)==null?void 0:Ni.indexOf("image"))>-1||!(ro!=null&&ro.type)?ro!=null&&ro.align||ro!=null&&ro.width?Gn.replaceSelection(`<p style="text-align:${ro.align||"initial"}"><img width="${ro.width?ro.width+"%":"initial"}" src="${Wi}" alt="${so||""}" /></p>`):Gn.replaceSelection(`<img width="100%" src="${Wi}" alt="${so||""}" />`):((ai=ro==null?void 0:ro.type)==null?void 0:ai.indexOf("video"))>-1?Gn.replaceSelection(`<video width="100%" controls src="${Wi}"></video>`):((Si=ro==null?void 0:ro.type)==null?void 0:Si.indexOf("pdf"))>-1?Gn.replaceSelection(`<a href="${Wi}?type=${ro.type}&disposition=inline" target="_blank">${ro.name}</a>`):Cr.includes(Xo)?Gn.replaceSelection(`<a href="${Wi}?type=office&disposition=inline" target="_blank">${ro.name}</a>`):Gn.replaceSelection(`[${ro.name}](${Wi})`),Gn.focus();case vr:const{row:Vn,col:yo,align:ia}=sr;let ws=`
`;for(let Ba=0;Ba<Vn;Ba++){let xl=[],Cs=[];for(let Xi=0;Xi<yo;Xi++)Ba===1&&Cs.push(Lr[ia]),xl.push(" ");Ba===1&&(ws+=`| ${Cs.join(" | ")} |
`),ws+=`| ${xl.join(yo===1?"":" | ")} |
`}return Gn.replaceSelection(ws+`
`),Gn.focus();default:throw new Error}},[Gn,ti]),Hr=(0,oe.useMemo)(()=>{switch(ti){case $n:return oe.createElement(Jt,{callback:rt,onCancel:_r});case nn:return oe.createElement(fn.Z,{callback:rt,onCancel:_r});case mn:return oe.createElement(kt.Z,{callback:rt,onCancel:_r});case gt:return oe.createElement(sn,{callback:rt,onCancel:_r});case vr:return oe.createElement(dn,{callback:rt,onCancel:_r});case"maths-latex":return oe.createElement(Zt,{showSaveButton:!0,callback:rt});case"inline-latex":return oe.createElement(tn.Z,{showSaveButton:!0,callback:rt});default:return null}},[ti]);function _r(){ki("")}(0,oe.useEffect)(()=>{if(Qi.current){let sr=function(ai){Ur=!0,Ni=ai.pageY},Un=function(){Ur=!1},ln=function(ai){if(Ur){let Si=ai.pageY-Ni;Si<0&&(Si=0),Si>300&&(Si=300);let Ii=Kr+Si+"px";Vi(Ii)}},qn=Qi.current,Ur=!1,Ni=0;return qn.addEventListener("mousedown",sr),document.addEventListener("mousemove",ln),document.addEventListener("mouseup",Un),()=>{qn.removeEventListener("mousedown",sr),document.removeEventListener("mousemove",ln),document.removeEventListener("mouseup",Un)}}},[Gn,Qi]),(0,oe.useEffect)(()=>{Vi(Kr)},[Kr]);const pi=or(pn),hi=or(Fi),ri={width:pi,height:hi},yr=(0,oe.useMemo)(()=>{if(Bi){let sr=new Date(Bi),Un=sr.getHours(),ln=sr.getMinutes(),qn=sr.getSeconds();return Un=Un<10?"0"+Un:Un,ln=ln<10?"0"+ln:ln,qn=qn<10?"0"+qn:qn,`${Un}:${ln}:${qn}`}return 0},[Bi]),ht=sr=>{const Un=[];if(br){let ln=-1;sr=sr.replace(/(@▁▁@|@▁@)/g,function(qn,Ur,Ni){Un.push({multiLine:qn!==Oe})})}return Un};function xn(){window.sessionStorage.removeItem(Ai),_i(!1),Zi(0)}function wn(){_i(!1),Zi(0),Gn.setValue(window.sessionStorage.getItem(Ai))}(0,oe.useEffect)(()=>{mi[ti]&&ti!==Xn&&ti!==gt&&setTimeout(()=>{const sr=document.getElementsByClassName("markdown-popup-form")[0],Un=window.innerWidth/2-sr.offsetWidth/2,ln=window.innerHeight/2-sr.offsetHeight/2;Ei(Un),Ui(ln)},0)},[ti]);const jn=sr=>{sr.preventDefault();const Un=sr.clientX-ar,ln=sr.clientY-Gi;document.body.onmousemove=qn=>{let Ur=qn.clientX-Un,Ni=qn.clientY-ln;const ai=document.getElementsByClassName("markdown-popup-form")[0],Si=window.innerWidth-ai.offsetWidth,Ii=window.innerHeight-ai.offsetHeight;Ur=Math.max(0,Math.min(Ur,Si)),Ni=Math.max(0,Math.min(Ni,Ii)),On(qn.clientX,qn.clientY,Un,ln)&&(Ei(Ur),Ui(Ni))},document.body.onmouseup=function(){document.body.onmousemove=null}},On=(sr,Un,ln,qn)=>{const Ur=document.body.clientHeight,Ni=document.body.clientWidth;return sr<20&&ln>sr||sr>Ni-20&&ln<sr||Un<20&&qn>Un||Un>Ur-20&&qn<Un?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return oe.createElement(oe.Fragment,null,oe.createElement("div",{className:"markdown-editor-wrapper",ref:ho},oe.createElement("div",{className:`markdown-editor-container ${Ue} ${Qn?"on-preview":""} ${Yr?"mini":""} ${si?"full-screen":""}`,style:ri},oe.createElement(nt,{insertTemp:Gr,watch:Qn,fullScreen:si,showNullButton:on,showNullProgramButton:br,onActionCallback:Ln,hidetoolBar:Br,extraUse:ci}),oe.createElement("div",{className:"markdown-editor-body"},oe.createElement("div",{className:"codemirror-container"},oe.createElement("textarea",{ref:po,placeholder:vi})),Qn?oe.createElement("div",{ref:Ro,className:"preview-container"},bi==="stex"&&oe.createElement($e,{value:Ci}),bi!=="stex"&&oe.createElement(St.Z,{disabledFill:zn,showProgramFill:br,value:Ci})):null))),Oi?oe.createElement("a",{ref:Qi,className:"editor-resize"}):null,ti===Xn&&oe.createElement(Bn,{callback:rt,onCancel:_r}),ti===gt&&oe.createElement(sn,{callback:rt,onCancel:_r}),oe.createElement(Je.Z,null,mi[ti]&&ti!==Xn&&ti!==gt?oe.createElement(bn.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:ar,top:Gi},title:oe.createElement("div",{style:{cursor:"move"},onMouseDown:jn},mi[ti]),open:!0,onCancel:_r,footer:null,destroyOnClose:!0,width:ti===gt?"1200px":null,height:ti===gt?"80vh":null,className:"markdown-popup-form"},Hr):null))}},17077:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return De},I:function(){return nt}});var oe=ae(28284),Pe=ae(6767),Ie=ae(37568),ke=ae(77736),Ve=ae(71051),Te=ae(47889),Ge=ae(99571),lt=ae(46699),Ke=ae(59301),He=ae(59301),St=Object.defineProperty,$e=Object.defineProperties,It=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,he=(Je,ot,mt)=>ot in Je?St(Je,ot,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Je[ot]=mt,ue=(Je,ot)=>{for(var mt in ot||(ot={}))te.call(ot,mt)&&he(Je,mt,ot[mt]);if(Fe)for(var mt of Fe(ot))ee.call(ot,mt)&&he(Je,mt,ot[mt]);return Je},fe=(Je,ot)=>$e(Je,It(ot));const{useForm:me}=oe.default,be={width:280,marginRight:10},Ae={labelCol:{span:5},wrapperCol:{span:19}};var De=({callback:Je,onCancel:ot})=>{const[mt]=me();let it=(0,Ke.useRef)();function vt(Ht){it.current.width=mt.getFieldValue("width"),it.current.align=mt.getFieldValue("align"),Je(Ht,it.current)}function wt(Ht,Qt){if(Ht.status===-1){Pe.ZP.error(Ht.message);return}mt.setFieldsValue({src:`/api/attachments/${Ht.id}`,type:Qt.type})}function Nt(Ht){let Qt=Ht.target.files[0];it.current=Qt,nt(Qt,wt)}return He.createElement(oe.default,fe(ue({form:mt},Ae),{className:"upload-image-panel",onFinish:vt,style:{width:470,overflow:"hidden"}}),He.createElement(oe.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},He.createElement("div",{className:"flex-container"},He.createElement(oe.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},He.createElement(Ie.default,{style:be})),He.createElement(Ye,{onFileChange:Nt}))),He.createElement(oe.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},He.createElement(Ie.default,{style:{width:264}})),He.createElement(oe.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},He.createElement(ke.Z,null,He.createElement(oe.default.Item,{name:"width",style:{margin:0}},He.createElement(Ve.Z,{style:{width:264}})),He.createElement("span",{className:"ml8"},"%"))),He.createElement(oe.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},He.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"}]})),He.createElement("aside",null,He.createElement(oe.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},He.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),He.createElement(Ge.ZP,{type:"default",onClick:ot},"\u53D6\u6D88"))))};function Ye({onFileChange:Je}){return He.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",He.createElement("input",{type:"file",onChange:Je}))}function nt(Je,ot){if(!Je)throw new String("\u6CA1\u6709\u6587\u4EF6");let mt=new FormData;mt.append("editormd-image-file",Je),mt.append("file_param_name","editormd-image-file"),mt.append("byxhr","true");var it=new window.XMLHttpRequest;it.withCredentials=!0,it.addEventListener("load",function(vt){ot(JSON.parse(vt.target.responseText),Je)},!1),it.addEventListener("error",function(vt){console.error(vt)},!1),it.open("POST",`${lt.KI}/api/attachments.json`),it.send(mt)}},91558:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Ie}});var oe=ae(59301),Pe=ae(4676);class Ie extends oe.Component{constructor(Ve){super(Ve);const Te=window.document;this.node=Te.createElement("div"),Te.body.appendChild(this.node)}render(){const{children:Ve}=this.props;return(0,Pe.createPortal)(Ve,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},75975:function(We,Ee,ae){"use strict";ae.d(Ee,{SV:function(){return En},ZP:function(){return Et}});var oe=ae(59301),Pe=ae(76374);const Ie={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},ke={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},Ve={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},Te={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},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),Ke=ae.n(lt),He=Object.defineProperty,St=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ee=(sn,Mn,Dt)=>Mn in sn?He(sn,Mn,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):sn[Mn]=Dt,he=(sn,Mn)=>{for(var Dt in Mn||(Mn={}))Fe.call(Mn,Dt)&&ee(sn,Dt,Mn[Dt]);if(It)for(var Dt of It(Mn))te.call(Mn,Dt)&&ee(sn,Dt,Mn[Dt]);return sn},ue=(sn,Mn)=>St(sn,$e(Mn)),fe=(sn,Mn,Dt)=>new Promise((_t,jt)=>{var dn=Ot=>{try{gn(Dt.next(Ot))}catch(Pn){jt(Pn)}},Sn=Ot=>{try{gn(Dt.throw(Ot))}catch(Pn){jt(Pn)}},gn=Ot=>Ot.done?_t(Ot.value):Promise.resolve(Ot.value).then(dn,Sn);gn((Dt=Dt.apply(sn,Mn)).next())});const me={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},be=(sn,Mn)=>Mn.map(Dt=>({label:Dt,kind:sn.languages.CompletionItemKind.Keyword,insertText:Dt})),Ae=sn=>Object.keys(me.tables).map(Mn=>({label:Mn,kind:sn.languages.CompletionItemKind.Variable,insertText:Mn})),De=(sn,Mn)=>{const Dt=me.tables[sn];return Dt?Dt.map(_t=>({label:_t,kind:Mn.languages.CompletionItemKind.Field,insertText:_t})):[]};function Ye(sn,Mn,Dt,_t,jt){let dn=Mn.getWordUntilPosition(Dt),Sn={startLineNumber:Dt.lineNumber,endLineNumber:Dt.lineNumber,startColumn:dn.startColumn,endColumn:dn.endColumn},gn=_t.map(Ot=>({label:Ot,kind:sn.languages.CompletionItemKind.Keyword,insertText:Ot,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Sn}));return jt.map(Ot=>{gn.push(ue(he({},Ot),{range:Sn}))}),gn}var nt=sn=>{me.languages.map(jt=>(sn.languages.registerDocumentFormattingEditProvider(jt,{provideDocumentFormattingEdits(dn,Sn,gn){return fe(this,null,function*(){const Ot=Ke()(dn.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:dn.getFullModelRange(),text:Ot}]})}}),jt));const Mn=Ve.quickKey.map(jt=>({label:jt.label,kind:sn.languages.CompletionItemKind.Method,insertText:jt.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Dt=Te.quickKey.map(jt=>({label:jt.label,kind:sn.languages.CompletionItemKind.Method,insertText:jt.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet})),_t=ke.quickKey.map(jt=>({label:jt.label,kind:sn.languages.CompletionItemKind.Method,insertText:jt.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet}));sn.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(jt,dn){var Sn=jt.getWordUntilPosition(dn),gn={startLineNumber:dn.lineNumber,endLineNumber:dn.lineNumber,startColumn:Sn.startColumn,endColumn:Sn.endColumn},Ot=jt.getLineContent(dn.lineNumber).substring(Sn.startColumn-2,Sn.endColumn);return{suggestions:[...Ve.keywords.map(Pn=>({label:Pn,kind:sn.languages.CompletionItemKind.Function,documentation:Pn,insertText:Pn,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:gn})),...Ve.quickKey.map(Pn=>({label:Pn.label,kind:sn.languages.CompletionItemKind.Function,documentation:Pn.content,insertText:Ot.startsWith("#")?Pn.content.replace(/#/,""):Pn.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:gn}))]}}}),sn.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(jt,dn){var Sn=jt.getWordUntilPosition(dn),gn={startLineNumber:dn.lineNumber,endLineNumber:dn.lineNumber,startColumn:Sn.startColumn,endColumn:Sn.endColumn};return{suggestions:[...Ie.keywords.map(Ot=>({label:Ot,kind:sn.languages.CompletionItemKind.Function,documentation:Ot,insertText:Ot,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:gn}))]}}}),sn.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(jt,dn){var Sn=jt.getWordUntilPosition(dn),gn={startLineNumber:dn.lineNumber,endLineNumber:dn.lineNumber,startColumn:Sn.startColumn,endColumn:Sn.endColumn},Ot=jt.getLineContent(dn.lineNumber).substring(Sn.startColumn-2,Sn.endColumn);return{suggestions:[...ke.keywords.map(Pn=>({label:Pn,kind:sn.languages.CompletionItemKind.Function,documentation:Pn,insertText:Pn,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:gn})),...ke.quickKey.map(Pn=>({label:Pn.label,kind:sn.languages.CompletionItemKind.Function,documentation:Pn.content,insertText:Ot.startsWith("#")?Pn.content.replace(/#/,""):Pn.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:gn}))]}}}),sn.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(jt,dn){var Sn=jt.getWordUntilPosition(dn),gn={startLineNumber:dn.lineNumber,endLineNumber:dn.lineNumber,startColumn:Sn.startColumn,endColumn:Sn.endColumn},Ot=jt.getLineContent(dn.lineNumber).substring(Sn.startColumn-2,Sn.endColumn);return{suggestions:[...Ge.keywords.map(Pn=>({label:Pn,kind:sn.languages.CompletionItemKind.Function,documentation:Pn,insertText:Pn,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:gn})),...Ge.quickKey.map(Pn=>({label:Pn.label,kind:sn.languages.CompletionItemKind.Function,documentation:Pn.content,insertText:Ot.startsWith("#")?Pn.content.replace(/#/,""):Pn.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:gn}))]}}}),sn.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(jt,dn){var Sn=jt.getWordUntilPosition(dn),gn={startLineNumber:dn.lineNumber,endLineNumber:dn.lineNumber,startColumn:Sn.startColumn,endColumn:Sn.endColumn},Ot=jt.getLineContent(dn.lineNumber).substring(Sn.startColumn-2,Sn.endColumn);return{suggestions:[...Te.keywords.map(Pn=>({label:Pn,kind:sn.languages.CompletionItemKind.Function,documentation:Pn,insertText:Pn,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:gn})),...Te.quickKey.map(Pn=>({label:Pn.label,kind:sn.languages.CompletionItemKind.Function,documentation:Pn.content,insertText:Ot.startsWith("#")?Pn.content.replace(/#/,""):Pn.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:gn}))]}}})};const Je="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ot=Object.defineProperty,mt=(sn,Mn,Dt)=>Mn in sn?ot(sn,Mn,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):sn[Mn]=Dt,it=(sn,Mn,Dt)=>mt(sn,typeof Mn!="symbol"?Mn+"":Mn,Dt);const vt=class oE{constructor(Mn,Dt,_t){this.placeholder=Mn,this.editor=Dt,this.monaco=_t,Dt.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)}};it(vt,"ID","editor.widget.placeholderHint");var Nt=vt,Ht=ae(96236),Qt=ae(6767),Yt=ae(25399),yn=ae(89392),bt=ae(49535),ft=ae(56102),ct=Object.defineProperty,Jt=Object.defineProperties,fn=Object.getOwnPropertyDescriptors,kt=Object.getOwnPropertySymbols,bn=Object.prototype.hasOwnProperty,An=Object.prototype.propertyIsEnumerable,Yn=(sn,Mn,Dt)=>Mn in sn?ct(sn,Mn,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):sn[Mn]=Dt,Vt=(sn,Mn)=>{for(var Dt in Mn||(Mn={}))bn.call(Mn,Dt)&&Yn(sn,Dt,Mn[Dt]);if(kt)for(var Dt of kt(Mn))An.call(Mn,Dt)&&Yn(sn,Dt,Mn[Dt]);return sn},Bn=(sn,Mn)=>Jt(sn,fn(Mn)),Mt=(sn,Mn)=>{var Dt={};for(var _t in sn)bn.call(sn,_t)&&Mn.indexOf(_t)<0&&(Dt[_t]=sn[_t]);if(sn!=null&&kt)for(var _t of kt(sn))Mn.indexOf(_t)<0&&An.call(sn,_t)&&(Dt[_t]=sn[_t]);return Dt},Hn=(sn,Mn,Dt)=>new Promise((_t,jt)=>{var dn=Ot=>{try{gn(Dt.next(Ot))}catch(Pn){jt(Pn)}},Sn=Ot=>{try{gn(Dt.throw(Ot))}catch(Pn){jt(Pn)}},gn=Ot=>Ot.done?_t(Ot.value):Promise.resolve(Ot.value).then(dn,Sn);gn((Dt=Dt.apply(sn,Mn)).next())});function ur(sn){return/^\d+$/.test(sn)?`${sn}px`:sn}function at(){}let _e=!1;const Re={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function Xe(sn=[]){let Mn=sn;if(Array.isArray(sn)){for(let Dt=0;Dt<sn.length;Dt++){let _t=Re[sn[Dt]];if(_t)return _t}return Mn[0]}return Re[Mn]||Mn}let st=null;const Be=()=>Hn(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(sn){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",sn)}});var Et=sn=>{var Mn=sn,{width:Dt="100%",height:_t="100%",value:jt,language:dn="javascript",style:Sn={},options:gn={},overrideServices:Ot={},theme:Pn="vs-dark",onEditBlur:Zt,isCopy:tn=!1,onSave:vn,autoHeight:$n=!1,forbidCopy:mn=!1,onChange:gt=at,editorDidMount:Xn=at,onFocus:ir=at,onBreakPoint:nn=at,breakPointValue:vr=[],filename:$r="educoder.txt",errorLine:Lr,errorContent:Rn="",highlightLine:ei,openBreakPoint:Jr=!1,placeholder:nr="",showMiniMap:Wr=!0}=Mn,oi=Mt(Mn,["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 Oe=(0,oe.useRef)(),cr=(0,oe.useRef)({}),Cr=(0,oe.useRef)(),or=(0,oe.useRef)(),kr=(0,oe.useRef)([]),Fr=(0,oe.useRef)(!1),Or=(0,oe.useRef)(),mi=(0,oe.useRef)(),Ti=(0,oe.useRef)(!1),[hn,Cn]=(0,oe.useState)(!1);function pn(){let Tn;return Oe.current&&(Tn=new Pe.Z(un=>{for(let Ue of un)(Ue.target.offsetHeight>0||Ue.target.offsetWidth>0)&&cr.current.instance.layout()}),Tn.observe(Oe.current)),Tn}function Kr(){Qt.ZP.warning({content:decodeURIComponent(Je),key:"monaco-editor-tip"})}const Yr=()=>{let Tn=cr.current.instance;if(jt!=null&&Tn&&hn){const un=Tn.getModel();un&&jt!==un.getValue()&&(_e=!0,un.setValue(jt),Tn.layout(),_e=!1)}};(0,oe.useEffect)(()=>{const Tn=bt.Z.subscribe("formatDocument",un=>{var Ue;let Nr=cr.current.instance;(Ue=Nr==null?void 0:Nr.getAction)==null||Ue.call(Nr,"editor.action.formatDocument").run()});return window.updateMonacoValue=un=>{gt(un)},Tn},[]),(0,oe.useEffect)(()=>{var Tn;let un=cr.current.instance;or.current&&clearTimeout(or.current),or.current=setTimeout(()=>{Yr()},500),jt&&(jt!=null&&jt.length)&&((Tn=un==null?void 0:un.updateOptions)==null||Tn.call(un,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(jt.split(/\r\n|\r|\n/g).length))+3,5)}))},[jt,hn,cr.current]),(0,oe.useEffect)(()=>{if(Lr&&cr.current&&cr.current.instance){let un=cr.current.instance;un.changeViewZones(function(Ue){var Nr=document.createElement("div");Nr.style.padding="10px 20px",Nr.style.width="calc(100% - 20px)",Nr.className="my-error-line-wrp",Nr.innerHTML=Rn,Ue.addZone({afterLineNumber:Lr||11,heightInLines:3,domNode:Nr})});var Tn={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}};un.addOverlayWidget(Tn),un.revealPositionInCenter({lineNumber:20,column:1})}},[Lr,cr.current,hn]);const Vr=(Tn="",un)=>{if(!Tn||Tn.trim()==="")return!0;const Nr=cr.current.instance.getModel().getLineTokens(un);let jr=!1;for(let zn=0;zn<2;zn++)Nr.getStandardTokenType(zn)===1&&(jr=!0);return jr};(0,oe.useEffect)(()=>{var Tn;const un=(Tn=cr.current)==null?void 0:Tn.instance;if(un&&hn&&mn){const Ue=un.onDidBlurEditorWidget(()=>{Ti.current=!1}),Nr=un.onDidFocusEditorText(()=>{Ti.current=!0});return()=>{Ue.dispose(),Nr.dispose()}}},[cr.current,hn,mn]),(0,oe.useEffect)(()=>{var Tn;if((Tn=cr.current)!=null&&Tn.instance&&hn&&Jr){let un=cr.current.instance,Ue=un.getModel();if(!Ue)return;(()=>{var zr;let si=[],di=[];const ti=Ue.getAllDecorations();for(let Bi of ti)Bi.options.className==="highlighted-line"&&(si.push((zr=Bi==null?void 0:Bi.range)==null?void 0:zr.startLineNumber),di.push(Bi==null?void 0:Bi.id));if(ei===si[0])return;Ue.deltaDecorations(di,[]);const ki=Ue.getLineCount();ei&&ei<=ki&&(un.deltaDecorations([],[{range:new st.Range(ei,1,ei,Ue.getLineMaxColumn(ei)),options:{isWholeLine:!0,className:"highlighted-line"}}]),un.revealLineInCenter(ei))})();const jr=(zr=!1)=>{var si;let di=[],ti=[];const ki=Ue.getAllDecorations();for(let Bi of ki)Bi.options.linesDecorationsClassName==="breakpoints-select"&&(di.push((si=Bi==null?void 0:Bi.range)==null?void 0:si.startLineNumber),ti.push(Bi==null?void 0:Bi.id));if(zr)return{lines:di,ids:ti};nn(di)},zn=zr=>Hn(void 0,null,function*(){let si={range:new st.Range(zr,1,zr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Ue.deltaDecorations([],[si]),jr()}),vi=zr=>Hn(void 0,null,function*(){let si=[];const di=un.getLineDecorations(zr);for(let ti of di)ti.options.linesDecorationsClassName==="breakpoints-select"&&si.push(ti.id);yield Ue.deltaDecorations(si,[]),jr()}),Xr=zr=>{let si=un.getLineDecorations(zr);for(let di of si)if(di.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,yn.isEqual)(vr,jr(!0).lines)){Ue.deltaDecorations(jr(!0).ids,[]);const zr=vr.map(si=>({range:new st.Range(si,1,si,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Ue.deltaDecorations([],zr)}const ci=un.onDidChangeModelContent(zr=>{let si=un.getPosition();if(si){let di=si.lineNumber;clearTimeout(mi.current),mi.current=setTimeout(()=>{Vr(Ue.getLineContent(di),di)?vi(di):Xr(di)?(vi(di),zn(di)):jr()},100)}}),Gn=un.onMouseDown(zr=>{var si,di,ti;if(zr.target.detail&&((ti=(di=(si=zr.target)==null?void 0:si.element)==null?void 0:di.className)!=null&&ti.includes("line-numbers"))){let ki=zr.target.position.lineNumber;if(Vr(Ue.getLineContent(ki),ki))return;Xr(ki)?vi(ki):zn(ki)}}),cn=zr=>{let si={range:new st.Range(zr,1,zr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};kr.current=un.deltaDecorations(kr.current,[si])},Ci=()=>{kr.current=un.deltaDecorations(kr.current,[])},ji=un.onMouseMove(zr=>{var si,di,ti;if(Ci(),zr.target.detail&&((ti=(di=(si=zr.target)==null?void 0:si.element)==null?void 0:di.className)!=null&&ti.includes("line-numbers"))){let ki=zr.target.position.lineNumber;if(Vr(Ue.getLineContent(ki),ki))return;cn(ki)}}),Qn=un.onMouseLeave(()=>{Ci()});return()=>{ci.dispose(),Gn.dispose(),ji.dispose(),Qn.dispose()}}},[cr.current,hn,vr,ei,Jr,dn]),(0,oe.useEffect)(()=>{var Tn;(Tn=cr.current)!=null&&Tn.instance&&Jr&&cr.current.instance.setPosition({lineNumber:0,column:0})},[ei]);function dr(){let Tn=cr.current.instance;if(Tn){const un=Tn.getSelection(),Ue=cr.current.pastePos||{},Nr=new st.Range(Ue.startLineNumber||un.endLineNumber,Ue.startColumn||un.endColumn,Ue.endLineNumber||un.endLineNumber,Ue.endColumn||un.endColumn);setTimeout(()=>{Tn.executeEdits("",[{range:Nr,text:""}])},300)}}function Gr(Tn){(window.navigator.platform.match("Mac")?Tn.metaKey:Tn.ctrlKey)&&Tn.keyCode==83&&(Tn.preventDefault(),vn())}const bi=()=>{if($n&&cr.current.instance){const Tn=cr.current.instance.getContentHeight();Xt(Tn<_t?_t:Tn)}else Xt(_t)};function Ai(Tn){var un=document.createEvent("MouseEvents");un.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Tn.dispatchEvent(un)}const Oi=Tn=>{if(!Ti.current)return;const{keyCode:un,ctrlKey:Ue,metaKey:Nr,target:jr,type:zn}=Tn;return(zn==="paste"||(un===67||un===86)&&(Nr||Ue))&&jr.nodeName==="TEXTAREA"&&(Kr(),Tn.preventDefault()),!1};function xt(Tn,un){var Ue=window.URL||window.webkitURL||window,Nr=new Blob([un]),jr=document.createElementNS("http://www.w3.org/1999/xhtml","a");jr.href=Ue.createObjectURL(Nr),jr.download=Tn,Ai(jr)}(0,oe.useEffect)(()=>{bi()},[bi]),(0,oe.useEffect)(()=>{Oe.current&&!hn&&Promise.all([ae.e(8909),ae.e(6656)]).then(ae.bind(ae,71448)).then(Tn=>{try{st=Tn,cr.current.instance=st.editor.create(Oe.current,{value:jt,language:Xe(dn),theme:Pn,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Wr||!1}},Ot);const un=cr.current.instance;let jr=[...Ht.BH._menuItems].find(ci=>ci[0]._debugName=="EditorContext")[1],zn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],vi=(ci,Gn)=>{var cn,Ci;let ji=ci._first;do Gn.includes((Ci=(cn=ji.element)==null?void 0:cn.command)==null?void 0:Ci.id)&&ci._remove(ji);while(ji=ji.next)};if(Xn(un,st),setTimeout(()=>{bi(),cr.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{xt($r||"educoder.txt",un.getValue())}})},500),cr.current.subscription=un.onDidChangeModelContent(ci=>{Fr.current?clearTimeout(Or.current):(bi(),gt(un.getValue(),ci)),Or.current=setTimeout(()=>{Fr.current=!1},500)}),window.Monaco||nt(st,Xe(dn)),mn&&(vi(jr,zn),Oe.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Oi),window.removeEventListener("paste",Oi),window.addEventListener("keydown",Oi),window.addEventListener("paste",Oi)),window.Monaco=st,Zt&&un.onDidBlurEditorWidget(()=>{Zt(un.getValue())}),ir&&un.onDidFocusEditorText(()=>{mn&&Be(),ir(un.getValue())}),mn){Be();try{un.onDidPaste(ci=>{const Gn=un.getSelection(),cn=cr.current.pastePos||{},Ci=new st.Range(cn.startLineNumber||Gn.endLineNumber,cn.startColumn||Gn.endColumn,cn.endLineNumber||Gn.endLineNumber,cn.endColumn||Gn.endColumn);un.executeEdits("",[{range:ci.range,text:""}])})}catch(ci){}}let Xr=pn();return nr&&typeof nr=="string"&&new Nt(nr,un,st),Cn(!0),()=>{const ci=cr.current.instance;ci.dispose();const Gn=ci.getModel();Gn&&Gn.dispose(),cr.current.subscription&&cr.current.subscription.dispose(),Xr.unobserve(Oe.current)}}catch(un){}})},[]),(0,oe.useEffect)(()=>{if(cr.current.instance&&hn)return document.addEventListener("keydown",Gr,!1),()=>{document.removeEventListener("keydown",Gr)}},[vn,hn]),(0,oe.useEffect)(()=>{let Tn=cr.current.instance;if(Tn&&hn){let un=Xe(dn);st.editor.setModelLanguage(Tn.getModel(),un)}},[dn,hn]),(0,oe.useEffect)(()=>{cr.current.instance&&hn&&st.editor.setTheme(Pn)},[Pn,hn]),(0,oe.useEffect)(()=>{let Tn=cr.current.instance;Cr.current=gn,Tn&&hn&&(Tn.updateOptions(Vt({},gn)),setTimeout(()=>{Tn.getModel().updateOptions(Vt({},gn))},200))},[JSON.stringify(gn),hn]),(0,oe.useEffect)(()=>{let Tn=cr.current.instance;Tn&&hn&&Tn.layout()},[Dt,_t,hn]);const[on,br]=(0,oe.useState)(ur(Dt)),[Br,Xt]=(0,oe.useState)(ur(_t)),fr=Bn(Vt({},Sn),{width:on,height:Br,position:"relative"});return oe.createElement("div",{className:"my-monaco-editor",ref:Oe,style:fr},tn&&oe.createElement(ft.CopyToClipboard,{text:jt,onCopy:()=>Qt.ZP.success("\u590D\u5236\u6210\u529F")},oe.createElement(Yt.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 En({width:sn="100%",height:Mn="100%",original:Dt,modified:_t,language:jt,options:dn={}}){const Sn=(0,oe.useRef)(),[gn,Ot]=(0,oe.useState)(null);function Pn($n){let mn;return Sn.current&&(mn=new Pe.Z(gt=>{for(let Xn of gt)(Xn.target.offsetHeight>0||Xn.target.offsetWidth>0)&&$n.layout()}),mn.observe(Sn.current)),mn}(0,oe.useEffect)(()=>(Sn.current&&Promise.all([ae.e(8909),ae.e(9404)]).then(ae.bind(ae,2550)).then($n=>{st=$n;const mn=st.editor.createDiffEditor(Sn.current,Bn(Vt({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},dn),{wordWrap:!0}));Ot(mn);let gt=Pn(mn);return()=>{mn.dispose();const Xn=mn.getModel();Xn&&Xn.dispose(),gt.unobserve(Sn.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,oe.useEffect)(()=>{gn&&gn.setModel({original:st.editor.createModel(Dt,jt),modified:st.editor.createModel(_t,jt)})},[Dt,_t,jt,gn]);const Zt=ur(sn),tn=ur(Mn),vn={width:Zt,height:tn};return oe.createElement("div",{className:"my-diff-editor",ref:Sn,style:vn})}},10661:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return St}});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"},Pe=ae(29787),Ie=ae(25399),ke=ae(92310),Ve=ae.n(ke),Te=ae(51257),Ge=ae(28426),lt=ae(48790),Ke=ae(59301),St=({className:$e,dataSource:It=[],col:Fe=4,right:te,bottom:ee=23,precision:he=0,wrapWidth:ue=1200,trackEventItems:fe,loading:me,onRemove:be=()=>{},isCurrent:Ae=!0,showAlias:De=!1})=>{const Ye=Math.floor((ue-(Fe-1)*te)/Fe),nt=[{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 Ke.createElement(Pe.Z,{spinning:me},Ke.createElement("div",{className:Ve()(oe.list,$e)},!!(It!=null&&It.length)&&(It==null?void 0:It.map((Je,ot)=>{var mt;const{name:it,id:vt,identifier:wt,featured:Nt,school_name:Ht,image_url:Qt,excellent:Yt,is_plan:yn}=Je;return Ke.createElement("div",{key:vt,className:oe.wrap,style:{width:Ye,marginRight:(1+ot)%Fe===0?0:te+he,marginBottom:ee}},Ke.createElement("a",{className:oe.li,onClick:bt=>{bt.preventDefault(),bt.stopPropagation(),fe&&(0,Te.L9)([fe]),(0,Te.xg)(`/paths/${wt}`)}},Ke.createElement("div",{className:oe.img},Ke.createElement("img",{className:oe.cover,src:`${Qt}`}),Ae&&(0,lt.bg)()&&(Je==null?void 0:Je.studying)&&Ke.createElement("div",{className:`${oe.movebq} user-path-items`,onClick:bt=>{bt.stopPropagation(),be(Je)}},Ke.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Ke.createElement("span",{className:"c-red"},"\u79FB\u9664")),(mt=Je==null?void 0:Je.subject_tags)==null?void 0:mt.map((bt,ft)=>{var ct,Jt;if(ft===0){const kt=(ct=nt.find(bn=>bn.name==bt))==null?void 0:ct.swimg;return Ke.createElement("img",{className:oe.sign,src:kt,style:{left:"-4px"}})}const fn=(Jt=nt.find(kt=>kt.name==bt))==null?void 0:Jt.ptimg;return Ke.createElement("img",{className:oe.sign,src:fn,style:{left:`${48+52*(ft-1)+2*ft}px`}})}),Ke.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Je==null?void 0:Je.excellent)&&Ke.createElement("div",{className:oe.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Ke.createElement("div",{className:oe.name},Ke.createElement(Ie.Z,{title:De&&(Je!=null&&Je.excellent_alias_name)?Ke.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${it}`,Ke.createElement("br",null),Ke.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Je==null?void 0:Je.excellent_alias_name}`)):it},Ke.createElement("span",{className:oe.e},De&&(Je==null?void 0:Je.excellent_alias_name)||it))),Ke.createElement(Ie.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Ht}`},Ke.createElement("div",{className:oe.unit},Ke.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Ht)),Ke.createElement("div",{className:oe.tags},Ke.createElement("div",null,Ke.createElement(Ie.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ke.createElement("span",null,Ke.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ke.createElement("span",null,Je.stages_count))),Ke.createElement(Ie.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ke.createElement("span",null,Ke.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ke.createElement("span",null,Je.members_count)))))))})),!It.length&&Ke.createElement(Ge.Z,null)))}},9148:function(We,Ee,ae){"use strict";ae.d(Ee,{jL:function(){return Ve},w9:function(){return ct},QD:function(){return Zt},cQ:function(){return Qt.Z},op:function(){return jt},O5:function(){return Cr},_b:function(){return Xn},t7:function(){return ue},Gi:function(){return Yn},YG:function(){return bn},qp:function(){return St},vr:function(){return $n},qE:function(){return gn},Je:function(){return be},wb:function(){return Ht},cq:function(){return at},tp:function(){return Fe}});var oe=ae(59301),Pe={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},Ie="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgRBU84TXi5VXqo24/syP5ce2xEg0gBDeAZWFijo79JnpLQxXSo7iICiIyD8qUfdxuQRRx24x5MvB95uBzfW1G+XFn4GoMMojQNOYWUK45b+jG9mW+PvFNAKEkqVYgI583VZcOB7WRrCqGwiaQovU1lAlaXKM/BMQNIGbN0FLGh0lySCVv0OP3aPOnKf2a2XCm+3ghuc1AvzOdwmLSwIwkQlBoxMtgZYCkvwQLafBYo0l2v6gBcCxRxQyifwM9PckRCniXIGbjo8wiI4bgnRRFul0XAZMABbaggVoytvo12vff7Qt/Rc8LqBm5jQndrBr3MFHOwyemaJbGaaAKzMp00zV2O+6VVnSTCPcYCNdrItEGAOcKxpVUQKLjPZ6VHVgEuf3Kf/rLk0Y4ViTpiAEUYKJaEgVDg2OTq1+j3r5w68FHi7TXFDU/El1Yr8VLudDM4IjUpLVWW2Mg0GgubybATNfN/0C5+eqjQ9oO0ngAmR0ZF5X2bKjLRZBUFgNE03AKhcPqk62wJsm+qjvyM4Aa0idFN1zcmvHraq90uvObihqej4YsH6nzCEyHwRB0WFZeZJ05xupsZSp6sty+2mXX2a/5rP0fT8MAHRZpmWph48J38zi6xUF1Vqft9KAg2BES6PmyChGGFTBVJ1kb/dq7XeeuTBs0deLLxXrLhHn2nP6+4s3Gk7Yl6Q5mpZMMjAGWjT0o+dgkR6BVnUzJSW2PpzhpHVqIygdPiEET3rzwiHP2QCSlrjUm1epE0el+R1/E6SmjDa2nGEat5Bu9089bC9O7/1moDT0GJkMv5eR6f1oVY7MRfjp2SiNgOO5pkFBpnkadmD/qflRrAtiUrBhJFdPnauJhI6SU6noXSyb2BmUZUqzYKEqSSSZ6SUSU34WagYVUsg9N27R7DtkONWrmRcf8HHK1Lc4EjrqHJn6ZdxBIsXkXU2MqVZqU/ja5ZU/MyWR5/Bps1/wfD2p+G7TUy1QziWRHfZgVXsREd3H1YtnoW+vl709nSjv7f0V4MwPnRaRUGlxSm8rG7N0pAMlim/CE4Jk+tRbTxmAoYK4Qit/Mhb9/a9eze9ILW/YQwv5jvmM/fcs720YMnMDeWStabtJrmVUVaqtsy3sRqgAm+96yH85qbb4DZqWNjfi57uHlRKJViWjSCM0Wr5aDRaqDebqDeaqLkRLFugp7OIQudMrFn+JvT3z8Ee8+dgVldxp+tkpUB42ZZgqLrEnyUq89MkODkunjVVoREFMao5G367een6lZ2fejEQXrbiBgbbn+qZUbyETcWs2KZ/Ynsoi6aMgEPjLVz6Xz/B1OjT2P8tyzB7Zm/i6IMQYRghDGk2ielkLaKIPiiM4PshGk0XzWYDU40a6m6Ickmi3N2Lt+y1B5a+eQ+sXLIQM7rLxi1QiR47I2l3xPizFFyitsQnmqhq8juNks1go2BrDRG4WwMv3veItT1TLwTvZYH7w0NP9y7sn3NPqSgXMiCYRuNz1MbE9eEnRnDhpVdh1fxu7L1iCYIwghcECKMYUfaMY4Rh8jogxJgQNQjP+CECpUK4H8bwPR8tgmzW0Ao8lEsW+vrn4sA1S7Fs2VKsXDIP1UrO3BymMD7PEwvj6wJjnjTTJFAEsUJOJj4y8iMUWIfE8bp1Kzs2virgtg23PtHTV7os9JI0wASFNPWg4vI54LGBMZz/je/i71YvQv/sWXA9D2EYIooiAzCOYoRxDM/z4Xo+PC+Az2MR31NpkU4fpKGUQKRkoiSCjCSiSCAKVPLddgON9hQsK0TXjA7su3YVDjt0Hdbu82ZzbQYgVZb6OJOW0GQjZW54XtACInTkHXjt5kXr9+r4zG4Hd/bZZ8uTTz1rY7liHxiHiR9h+sFAQHNxJMulCGed/x2jtHlv6ofruogILaZpEl6MIAiML2u1XQRhaIDxeKZGqoEAObgoTkBGkUp7bvRRfC0QRpZRkYqk6SjHcYDQryNXVNj/oLX4yIc/iMULZyVVSFr0GxVmlQWDg0xSFG5j372rV1fXr1wpdhldX7Kpbn2mtbqrs7jRkqLIC6VDzgIBwZUKwGXfuwFjA49g331WoO26CSwDh/BieK6HyakaPM9LTZbv0WQJL0r2o9ioMkhN2gDka0JkDhYpExW1FtCQEMKGlg6gbWhTxjPFaKBvZgUfP/njOHz9WrRS5QXG9AkvzeXoHxXrVw0n9puxEm8+dGVlaFeqe8ngBifiT1Y65aUha7+0+M7Sj0IeeOixYXznO1fiHQfvY1REs4wiBoIAcRQZkBOTk/B9P1GSCRBBoraQn/dTmDxOiATGLV+nioxjA49wINjAY4YtIaQFwX1hQYtkn/AtW+Okfzsdf/+OA9H2Uj+XdoiZltBebaGh2a9DrONYvfdtK8q/2L3gaurXxaI4WqUJJH2ETTPltVsaX73wvzG7IjGrrwce4RhoieKCMMDY+LiBZ2AwGJjAQKg0Sx6jCrWBmQAlTJo3vx+ZvIvOXLBEEAJCMPFNQrkBBwnNfcuGMFAFlIqRyxdw+he/gv1WL0PDTftzSicd41jBYaURa/SUHLTrjc+vX9mxy47JS1LcpoGB4qKOuZvzebFMpyUPT0BoTD023P0wfvWL67DfPsvhut4O80z8Woip+hQma41UWVQRDMwEXIQ43Se4OApSYEAYeAijwADSmp1RghPGt3Kb5MMJxEx9VJ2QNu8mYNlQUYj+hUtx9nnnolIpw83KrrSSMOCURmfOQejWr37bis6P7DbFba/ptZal77SlyPFy6WC5ZedBKYWLLrkKs6oOCvl8AoR+zWwjeL6L4dFRuJ5CEGpTsEeBQBD4iFWMWEWIwjpU6Ca+kNswNll+zCgECSkcKM02CQtS/nK0oxPDFDzRIYFSfYRIcFRfzgDktRz7z5/E8Scci7ar0g4xc0aePen0VaSAiLxHutVTe6/cRfn1khQ3OBEdU6xYv4oZbzjJopJISrX96aFtuOaH12D5ogXw/QABVZQFhCDC5NQ4xienEIQCbijh+RKTvXPhVYrIPTGAXLOOOJ4AwhAxzTKomTTEdHy1l/guc5voWTmXSPWFSVAwf7FRH83YuD5jxgQooS3HqE9Bomf2fJx9wcXo7KjAp3swLSZApjPeJUvDioLBkttYvHZtf/v5VPeSwD09Fp9Z7pDnEhzvD1MEqo2d2ut+swEPbr4fM3p7jIqYbhjlBKHxdcMjQ0ZtXmjDbSsMLFqJx048AWDWv/kvWPjNy2DXB5hXAHEIpZqwZNVct1INSFkyoJRyE1g6hjaFnp2IDyrxezqFaMClHQdjsjljsrzuk8/4Cg46ZF9zPQYc05k0qpYswFH+uCW9VYcsm7F994CbiL5fKlkf4lyC1nSswnRlWcBfftVP0RgZRqGQR2jKKd/4JZrpxOQExicmEIQWvDCHhu9gyz99FN76VQCt0AZmnnUxSg/cAUuGEKoJaBdSZjVpBCk7EnDahxRlKHCfjbccNPMis29mWSGMH6TqNKQxWStJVayccQvrjv4ATj7lRLTcpL1k2kym0GUJJlASvuvo6JADV3RtfsngbtXa3gsoBA3k3Rakb8GtiuiaUtk+xveUqRjoU9gmKuYFLr/yGkwMjSBH5xrQ4dNPBaYiGBwehOu24QUCXuhgSnTjsTPOQDxvRjqjrNB31tdRfvwB5O0cEI9BaA9SVhCpGqA56+NAa/oIC5AER2XlmfdDhT60FLBoxlYAof0UnjLukAo1arPyxhev2vcAnHbWOSaJNmWe6elRCAm4TukrS0XvOGivrt+9aHDba8GaQt56r4A8XADztYIVKgimXH6M7iDUebackzJLIm8LlIsSP/jRz/HU1ieQcywDLnHwAWq1BsbGR5M6lYrzJEZmLsHw5z8LlOm0AWwfQ885X0Ol/oypHRFPwpZF2FYXwngEgoBEHpEaNwpTyJsqROsCgupMtFeshLt8Oap/ug8d998CKQgvgICfRFppm/QEBAdg1oIlOOMrF6BcLsAPlCnHIjPvClQcgW4nhFThPxy8ovPXLwjugaGh8uxyzwXlvPOxsoPC9PUaZpYoLZobHtAMtAEhoVDKSXSUHdy+YSN+d9MGFKm4NK0gwKHhUTSaNZPL+ZEFzwXGVrwNk6edlkDjHMLmrei78DzkLR8W18qoEUiRgxR5xKoJ2+ox4EJVh5B9UDqPel8vWgccAW/Naug5Myk84OkJzDn3FOTbIwacFASXJMSC/XOZhxISHTP6ceZ5F6GzuxNekEb5IKlIOvISvU7AhPiog5ZVbtgluE0DurigHPx4RnfunXQXbNJm8wEZQAYCphDs99c9YMqDKbALtjJNyNGRQVx++dWwtDA5GHMyz/ewfXAYntdE4AfwjFkINHsXY+JzXwPmdptGXunKH6D79uuRzxVhqwBKDSFnzTTRNIrHIQXz+RAxTVF1obFqPcY/ehLQVU2CLG+AApwNGzHjR99GTk0Bqg0pvCQ9sRxIY6o5aGmjWOnCmed/A70zZ8INmCpxbGwoAF0Fgd5cEBVkfNj+Szvu2CW4rUPumTN6C+faCijwxqTTeNmXssV+bM1w9oiqm2wToELgt1AtSHQULVxzzU/w5/u2mKUMcRCg3W7hmeFhBF4rKaPY6WDGJDrQnrcUrdX7wRkcQuXe22HHU7CFgDT+zE/AKR9au7CsPkSqAWWiaieG3nkCvPe9G+DSGQrqwUdRuHUjylvvQS4ahaObELoBAVqFSCsJzto4Jkg4OQdn/sd/ord/Plw/MtAIj5Y1oywxq+DXrThae8CKzq3PC+6ux4dndRZ67uut2nM68sn6jWxtx/QvZebKiWKCq7WAmtm2IZSPGR0FjI9uxxVXfB+tqTokYgNu++AQVOSZ1EErunSWRBXTyYASkLIAbdGnMBhI6Lhu5COlA61Ck39JUTHRVAtO73ej0TMbEyeeBj1vjlGauP8RVL7/A+SDQdiowVF1SN02UVaa2fAkl2NU5TNnC5z+5QswY/5iuG4EN1KmhtWxwNwuBws7w+G85S1ftaBr8nnB3f1Y8/hqtfzDzhzQU0qm0v4WOLam6ecIjl2GWhuYaFF5IcamJtFZtNDX4WDzvZvxv9dej9BzoaIIo+Oj0FEAzSxfhyYSa50W5iAU20RNafIuwmol/k0yGPAGJJ0OZSJqHkqWEcU22vPegua/nAR0dxvVWZv+iI6fXomcrsNRDWhNU9UmAWZoVVYOgsFBOCjlLXzqjC+ia+6eaHsRmp5GMScxu8NCf4eF7qKIRBQ8mnfkz4PQ/83SuX/d2BSbHmne3Fktv72vDHQUEsWxGnjuIwPH3hf93FQbGKnTXDUeGhiCFDFmVHPoKlu49dYN+O1vb4alYozXpqBjggvNBHDyYIHDhJVQ+IiSYolFuXHqBQhGT+VCWiUTGaOYQIuIhYWQ34tLcBeugH/ch4DuXmBkEJXvXoB8ewwWXGiT77GWSBoA9G9cKBcLB92dFZx02umI8r0m9Vszv4QVsx10FYUZu7GuNHeuN1XkB9FN7Xbwmb0XVh/KuIhNWwOvs2Tn+6rCZAecITezU9PWc5i0Ml0JZKbfwsTHDU0Bky6wYcs20w7qrThGeaW8xJ0bN+HW2+5Eo9k0lQT9jWkEMVHl2dnhoNp4VLBc4uI4JrKRAcgEO7HDXFLQE64oGNz0k0pUkvUhCxZDrz4A4tEHkXvwLtgihNSJa0gEQNfAXp0NZTnGVSxeuADHHHcCpJXD+9f0YcUc2zRgn6sXnr9O3yeBlqeGJyfDE1cvKlxvkuvfP6512QF6y8kCFwYHllHZsgSezAwh7ZhyPIRHH/fMJDDWAn72x8dQb7XRVbZNoKgWLBRyAvfe/wBuuf0u1CYnIWVaQ9K5pRMrdNw8v5khM2rjZ2iYVGJWfxJunJbwBGjm0kx6ohj/zQpryyS82lKQpopgI0AnLodmaop9C4rVAwTWH3wgluy9Fh/cbxbWLSqa6idbJfpcS3PNupNkQnuioVrDk976I1eV7xW3b2lvL5eKczoLQKWQrIqk6rIeWwYuWw1kymwFTLaAgQlgsK5xxa1bUGu66ChYqOSpXMss4Ms5EtsGnsatGzahMTaWhutsLWsaug2s7F5nix7S/CKZ/08L+7RlZMqpDJ4hk62JShWbLj805Ve2II9zlCbJQqW7C/sftA4HrZiPUw/vRweD7S7A0a/XXW1SsLYSeGpIbxiZeOpIccufG8dVOys/5r2o5JNVQaw9WUrxhDRbk46k62/5moobbySKu397gK/9ZgsKFlDNSZQJzhHI2xKOJVDISTRbbfzpwS0YePxxxL73rJzNwNJZ62yG2dzydNlOUqVnK4PTdpKRWLqfLe/JPpO9nuZnTFRNyFj5Apbtswr5rpn4wpELcPiyqhHKrhTHsTJ4TLnCWNdgA3Dr/lHiuo2j1XJf7x2VvNiHTbZyBs9OA8U02zcTMjKJrsNTwEgT+NE9ow9864Ytt/dVZVDNW6LsSBT5XUsgZ7P7L5BzbDPX+qeHH8HAlr+YZQeJjSWpwk4P2pdhk05mcHfHa3YyzXKa9GD6mez9hOiOhHjHwjzzOzZ65s3B/D2XolSt7nnh+5a9a0mfZcZLkTz3MrJronVxoQ+ziPEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Ve=({dataSource:or=[],img:kr,imgWidth:Fr=346,title:Or,sunTitle:mi,bannerExtraContent:Ti})=>oe.createElement("div",{className:Pe.banner},oe.createElement("div",{className:Pe.content},oe.createElement("aside",null,oe.createElement("p",null,oe.createElement("b",null,Or),oe.createElement("span",null,mi)),or.length>0&&oe.createElement("div",{className:Pe.btns},or.map((hn,Cn)=>oe.createElement("div",{key:Cn,onClick:hn.click},hn.name,hn.sign?oe.createElement("img",{src:Ie,width:39}):null))),Ti),kr&&oe.createElement("img",{style:{marginTop:33,marginRight:38},src:kr,width:Fr}))),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),Ke=ae(89392),St=({dataSource:or=[],value:kr,onChange:Fr,onTitleChange:Or,className:mi,title:Ti,titleWidth:hn=41,style:Cn={},fontColor:pn="#6A7283",showCount:Kr})=>{const[Yr,Vr]=(0,oe.useState)(0),[dr,Gr]=(0,oe.useState)(!1),bi=(0,oe.useRef)(null),Ai=(0,oe.useRef)(null);return(0,oe.useEffect)(()=>{var Oi;or.length!==0&&(((Oi=bi==null?void 0:bi.current)==null?void 0:Oi.clientHeight)>97?Vr(1):Vr(0)),or.length===0&&Vr(0),Gr(!1)},[or]),oe.createElement("div",{className:lt()(Te.row,mi),style:Cn},oe.createElement("div",{onClick:(0,Ke.throttle)(()=>Or==null?void 0:Or(),2e3),style:{width:hn,marginTop:dr?12:4},className:`${Te.title} ${Or?"current":""}`},Ti),oe.createElement("div",{className:dr?`${Te.tagsWrap} ${Te.tagsBorderWrap}`:Te.tagsWrap},oe.createElement("div",{className:Te.bar,ref:Ai,style:Yr>0?{height:Yr===1?97:"auto",overflow:Yr===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},oe.createElement("div",{className:Te.tag,ref:bi},or==null?void 0:or.map(Oi=>oe.createElement("span",{onClick:()=>Fr(Oi.id),key:Oi.id,style:{color:pn},className:kr===Oi.id?Te.active:""},oe.createElement("span",{title:Oi.name,className:Te.name},Oi.name),!!Kr&&oe.createElement("span",{className:Te.num},Oi.count))))),!!Yr&&oe.createElement(oe.Fragment,null,Yr===1?oe.createElement("div",{onClick:()=>{var Oi;Vr(2),((Oi=bi==null?void 0:bi.current)==null?void 0:Oi.clientHeight)>245?Gr(!0):Gr(!1)},className:Te.action},"\u5C55\u5F00",oe.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):oe.createElement("div",{onClick:()=>{Ai.current.scrollTop=0,Vr(1),Gr(!1)},className:Te.action},"\u6536\u8D77",oe.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},$e={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Fe=({dataSource:or=[],value:kr,onChange:Fr,className:Or,style:mi={}})=>oe.createElement("div",{style:mi,className:lt()($e.tabs,Or)},or.map(Ti=>oe.createElement("span",{onClick:()=>Fr(Ti.id),className:kr===Ti.id?$e.active:"",key:Ti.id},Ti.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:or=[],value:kr="",onChange:Fr,onInputChange:Or=()=>{},className:mi,style:Ti={},placeholder:hn,allowClear:Cn=!1})=>{var pn;const[Kr,Yr]=(0,oe.useState)(""),[Vr,dr]=(0,oe.useState)("");(0,oe.useEffect)(()=>{var Ai;let Oi=kr;(Ai=JSON.stringify(kr))!=null&&Ai.includes("{")&&(Yr(kr.id),Oi=kr.value||"");try{dr(decodeURIComponent(Oi||""))}catch(xt){dr(decodeURIComponent(Oi||""))}},[kr]);const Gr=()=>{Fr(encodeURIComponent(Vr),Kr||null)},bi=Ai=>{Ai!==Kr&&(Yr(Ai),Fr(encodeURIComponent(Vr),Ai))};return oe.createElement("div",{className:lt()(te.input,mi),style:Ti},!!or.length&&oe.createElement("div",{className:te.dropdown},oe.createElement("div",{className:te.text},(pn=or.find(Ai=>Ai.id===Kr))==null?void 0:pn.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},or.map((Ai,Oi)=>oe.createElement("div",{key:Oi,onClick:()=>bi(Ai.id)},Ai.name)))),oe.createElement(ee.default,{onPressEnter:Gr,value:Vr,onChange:Ai=>{dr(Ai.target.value),Or(encodeURIComponent(Ai.target.value),Kr||null)},bordered:!1,placeholder:hn}),oe.createElement("i",{onClick:Gr,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:or,onChange:kr,className:Fr,total:Or,pageSize:mi,style:Ti={}})=>{const hn=or<2,Cn=or>=Math.ceil(Or/mi);return Or<=mi?oe.createElement(oe.Fragment,null):oe.createElement("div",{className:lt()(fe.quickPager,Fr),style:Ti},oe.createElement("div",{onClick:()=>{hn||kr(or-1,"prev")},className:hn?fe.disabled:""},"\u4E0A\u4E00\u9875"),oe.createElement("div",{onClick:()=>{Cn||kr(or+1,"next")},className:Cn?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),nt=ae(58018),Je=ae(346),ot=ae(51257),mt=ae(96908),it=ae(57177),vt=ae(81378),wt=ae(28426),Ht=({className:or,dataSource:kr=[],col:Fr=4,right:Or,bottom:mi=23,precision:Ti=0,wrapWidth:hn=1200,trackEventItems:Cn,loading:pn})=>{const Kr=Math.floor((hn-(Fr-1)*Or)/Fr);return oe.createElement(De.Z,{spinning:pn},oe.createElement("div",{className:lt()(Ae.list,or)},!!kr.length&&kr.map((Yr,Vr)=>{const{name:dr,id:Gr,identifier:bi,power:Ai,cover_image_id:Oi,pic:xt}=Yr;return oe.createElement("div",{className:Ae.wrap,key:Gr,style:{width:Kr,marginRight:(1+Vr)%Fr===0?0:Or+Ti,marginBottom:mi}},oe.createElement("a",{target:"_blank",href:`/shixuns/${bi}/challenges`,className:Ae.li,onClick:on=>{on.preventDefault(),Cn&&(0,ot.L9)([Cn]),Ai&&(0,ot.xg)(`/shixuns/${bi}/challenges`)}},oe.createElement("div",{className:Ae.img},oe.createElement("img",{className:Ae.cover,src:`${xt}`}),Yr.is_jupyter&&oe.createElement("img",{className:Ae.sign,src:mt}),Yr.is_jupyter_lab&&oe.createElement("img",{className:Ae.sign,src:it}),Yr.is_unity_3d&&oe.createElement("img",{className:Ae.sign,src:vt})),oe.createElement("div",{className:Ae.name},oe.createElement(Ye.Z,{title:dr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},oe.createElement("span",{className:Ae.e},dr||"\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(nt.Z,{allowHalf:!0,disabled:!0,defaultValue:Yr.score_info}),oe.createElement("span",null,"\xA0",Yr.score_info?`${Yr.score_info}\u5206`:"5\u5206")))),!Ai&&oe.createElement("div",{className:Ae.lockWrap},oe.createElement("img",{src:`${Je.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")))}),!kr.length&&oe.createElement(wt.Z,null)))},Qt=ae(10661),Yt={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"},yn="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:or,dataSource:kr=[],col:Fr=4,right:Or,bottom:mi=23,precision:Ti=0,wrapWidth:hn=1200,trackEventItems:Cn,loading:pn,handleVery:Kr=()=>!0})=>{const Yr=Math.floor((hn-(Fr-1)*Or)/Fr);return bt.createElement(De.Z,{spinning:pn},bt.createElement("div",{className:lt()(Yt.list,or)},!!kr.length&&kr.map((Vr,dr)=>{const{subject_identifier:Gr,id:bi,identifier:Ai,power:Oi}=Vr,xt=Vr.is_public!=0&&Vr.is_public;return bt.createElement("div",{className:Yt.wrap,key:bi,style:{width:Yr,marginRight:(1+dr)%Fr===0?0:Or+Ti,marginBottom:mi}},bt.createElement("a",{className:Yt.li,onClick:on=>{on.preventDefault(),Kr(Vr==null?void 0:Vr.first_category_url)&&(Cn&&(0,ot.L9)([Cn]),(0,ot.xg)(Vr.first_category_url))}},bt.createElement("div",{className:Yt.top},bt.createElement(Ye.Z,{title:Vr.name},bt.createElement("div",{className:Yt.name},Vr.name)),bt.createElement("img",{className:Yt.img,src:Je.Z.IMG_SERVER+"/images/"+Vr.avatar_url}),bt.createElement("div",{className:Yt.text,title:Vr.creator},Vr.creator),Gr&&bt.createElement("div",{className:Yt.btns},bt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),bt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),xt&&bt.createElement("div",{className:Yt.sign},"\u516C\u5F00")),bt.createElement("div",{className:Yt.bottom},Vr.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,Vr.visits))),Vr.course_members_count>0&&bt.createElement(Ye.Z,{title:"\u6210\u5458",placement:"bottom"},bt.createElement("span",null,bt.createElement("i",{className:"iconfont icon-chengyuan"}),Vr.course_members_count)),Vr.tasks_count>0&&bt.createElement(Ye.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},bt.createElement("span",null,bt.createElement("i",{className:"iconfont icon-zuoye"}),Vr.tasks_count)),Vr.is_end?bt.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):bt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Vr.is_accessible&&bt.createElement("div",{className:Yt.lockWrap},bt.createElement("img",{src:`${Je.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")))}),!kr.length&&bt.createElement(wt.Z,null)))},Jt={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"},fn=ae(25690),bn=({dataSource:or=[],value:kr,onChange:Fr,className:Or,style:mi={},tabBarExtraContent:Ti})=>oe.createElement("div",{className:lt()(Jt.tabs,Or),style:mi},oe.createElement("div",{className:Jt.tabsWrap},or.map((hn,Cn)=>!(hn!=null&&hn.hide)&&oe.createElement("aside",{className:Jt.tab,onClick:()=>{Fr(hn.id),hn.link&&fn.history.push(hn.link)},key:Cn},oe.createElement("div",{className:kr===hn.id?Jt.active:""},hn.name),(hn==null?void 0:hn.resetCount)==null&&(hn==null?void 0:hn.total)!==void 0&&oe.createElement("span",null,"\uFF08",hn==null?void 0:hn.total,"\uFF09"),(hn==null?void 0:hn.resetCount)!==void 0&&(hn==null?void 0:hn.total)!==void 0&&oe.createElement(Ye.Z,{title:(hn==null?void 0:hn.tip)!=null?hn==null?void 0:hn.tip:""},oe.createElement("span",{style:{color:"#9096A3"}},"\uFF08",oe.createElement("span",{style:{color:"#000"}},hn==null?void 0:hn.resetCount),"/",oe.createElement("span",null,hn==null?void 0:hn.total),"\uFF09"))))),oe.createElement("div",{className:Jt.tabBar},Ti)),Yn=({className:or,style:kr={},children:Fr})=>oe.createElement("div",{className:lt()(or),style:kr},Fr),Vt={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"},Bn=ae(75727),Mt=ae(93041);const Hn=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var at=({sortValue:or,dropValue:kr,className:Fr,onSort:Or,onDrop:mi,dataSource:Ti=Hn})=>{var hn;return oe.createElement("div",{className:lt()(Vt.orderWrap,Fr)},oe.createElement(Bn.Z,{dropdownRender:()=>oe.createElement(Mt.default,null,Ti.map((Cn,pn)=>oe.createElement(Mt.default.Item,{key:pn,onClick:()=>mi(Cn.id)},Cn.name)))},oe.createElement("span",{className:Vt.orderTextWrap},(hn=Ti.find(Cn=>kr===Cn.id))==null?void 0:hn.name)),oe.createElement("span",{className:Vt.orderIconWrap},oe.createElement("span",{className:Vt.orderAsc},oe.createElement("i",{className:or==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Vt.cursorPointer} ${Vt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Vt.cursorPointer}`,onClick:()=>Or(or==="asc"?"desc":"asc")})),oe.createElement("span",{className:Vt.orderDesc},oe.createElement("i",{className:or==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Vt.cursorPointer} ${Vt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Vt.cursorPointer}`,onClick:()=>Or(or==="asc"?"desc":"asc")}))))},_e={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),Xe=Object.defineProperty,st=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,En=(or,kr,Fr)=>kr in or?Xe(or,kr,{enumerable:!0,configurable:!0,writable:!0,value:Fr}):or[kr]=Fr,sn=(or,kr)=>{for(var Fr in kr||(kr={}))Be.call(kr,Fr)&&En(or,Fr,kr[Fr]);if(st)for(var Fr of st(kr))Et.call(kr,Fr)&&En(or,Fr,kr[Fr]);return or},Mn=(or,kr)=>{var Fr={};for(var Or in or)Be.call(or,Or)&&kr.indexOf(Or)<0&&(Fr[Or]=or[Or]);if(or!=null&&st)for(var Or of st(or))kr.indexOf(Or)<0&&Et.call(or,Or)&&(Fr[Or]=or[Or]);return Fr},Dt=(or,kr,Fr)=>new Promise((Or,mi)=>{var Ti=pn=>{try{Cn(Fr.next(pn))}catch(Kr){mi(Kr)}},hn=pn=>{try{Cn(Fr.throw(pn))}catch(Kr){mi(Kr)}},Cn=pn=>pn.done?Or(pn.value):Promise.resolve(pn.value).then(Ti,hn);Cn((Fr=Fr.apply(or,kr)).next())}),jt=or=>{var kr=or,{className:Fr,style:Or,children:mi,loading:Ti=!1,openLoading:hn,onClick:Cn=()=>{},size:pn="middle",shape:Kr="round"}=kr,Yr=Mn(kr,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Vr,dr]=(0,oe.useState)(!1);return oe.createElement(Re.ZP,sn({onClick:(0,Ke.throttle)(Gr=>Dt(void 0,null,function*(){hn&&dr(!0);try{yield Cn(Gr)}catch(bi){console.log("error",bi)}hn&&dr(!1)}),2e3,{leading:!0,trailing:!1}),className:lt()(_e.btn,_e[`${pn}-${Kr}`],Fr),style:Or,size:pn,shape:Kr,loading:Vr||Ti},Yr),mi)},dn={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"},gn=({className:or,style:kr,children:Fr=null,onClick:Or,title:mi})=>oe.createElement("div",{className:lt()(dn.head,or),style:kr},oe.createElement("span",{className:"primary-hover",onClick:Or},oe.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),oe.createElement("b",{title:mi},mi),oe.createElement("div",{className:dn.node},Fr)),Ot={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"},Zt=({confirmShow:or=!0,confirmTitle:kr,confirmClick:Fr,cancelShow:Or=!0,cancelTitle:mi,cancelClick:Ti,className:hn,style:Cn,confirmLoading:pn=!1})=>oe.createElement("div",{className:lt()(Ot.btns,hn),style:Cn},or&&oe.createElement(Re.ZP,{loading:pn,onClick:Fr,type:"primary",className:Ot.confirm},kr),Or&&oe.createElement(Re.ZP,{onClick:Ti,className:Ot.cancel},mi)),tn={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"},$n=({className:or,style:kr={},LeftContent:Fr,children:Or,RightContent:mi})=>oe.createElement("div",{className:lt()(tn.fixedBottom,or),style:kr},oe.createElement("div",{className:tn.wrap},oe.createElement("div",{className:tn.left},Fr),oe.createElement("div",{className:tn.center},Or),oe.createElement("div",{className:tn.right},mi))),mn={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"},Xn=({className:or,style:kr={},dataSource:Fr=[]})=>oe.createElement("div",{className:lt()(mn.crumbs,or),style:kr},Fr.map((Or,mi)=>mi<Fr.length-1?oe.createElement(oe.Fragment,{key:mi},Or.path||Or.onClick?oe.createElement("span",{className:mn.hover,onClick:Or!=null&&Or.onClick?Or.onClick:()=>fn.history.push(Or.path)},Or.name):oe.createElement("span",null,Or.name),oe.createElement("span",null,"\xA0",">","\xA0")):oe.createElement("span",{key:mi,style:{color:"#5F6368"}},Or.name))),ir=ae(11938),nn=Object.defineProperty,vr=Object.defineProperties,$r=Object.getOwnPropertyDescriptors,Lr=Object.getOwnPropertySymbols,Rn=Object.prototype.hasOwnProperty,ei=Object.prototype.propertyIsEnumerable,Jr=(or,kr,Fr)=>kr in or?nn(or,kr,{enumerable:!0,configurable:!0,writable:!0,value:Fr}):or[kr]=Fr,nr=(or,kr)=>{for(var Fr in kr||(kr={}))Rn.call(kr,Fr)&&Jr(or,Fr,kr[Fr]);if(Lr)for(var Fr of Lr(kr))ei.call(kr,Fr)&&Jr(or,Fr,kr[Fr]);return or},Wr=(or,kr)=>vr(or,$r(kr)),oi=(or,kr)=>{var Fr={};for(var Or in or)Rn.call(or,Or)&&kr.indexOf(Or)<0&&(Fr[Or]=or[Or]);if(or!=null&&Lr)for(var Or of Lr(or))kr.indexOf(Or)<0&&ei.call(or,Or)&&(Fr[Or]=or[Or]);return Fr};const{Countdown:Oe}=ir.default;var Cr=or=>{var kr=or,{onChange:Fr}=kr,Or=oi(kr,["onChange"]);const[mi,Ti]=(0,oe.useState)(null);(0,oe.useEffect)(()=>{typeof mi=="number"&&mi>=0&&Fr(mi)},[mi]);const hn=Cn=>{const pn=Math.floor(Cn/1e3);Ti(pn)};return oe.createElement(Oe,Wr(nr({},Or),{onChange:hn}))}},37808:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Pe}});var oe=ae(59301);function Pe(Ie,ke){const Ve=(0,oe.useRef)();(0,oe.useEffect)(()=>{Ve.current=Ie}),(0,oe.useEffect)(()=>{function Te(){Ve.current()}if(ke!==null){let Ge=setInterval(Te,ke);return()=>clearInterval(Ge)}},[ke])}},4881:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return te}});var oe=ae(59301),Pe=ae(6767),Ie=ae(62957),ke=ae(17149),Ve=ae(14566),Te=ae(99571),Ge=ae(346),lt=ae(51257),Ke=ae(38986),He=ae(25690),St={customModal:"customModal___bVzUV",content:"content___oKhZq",upload:"upload___nPxEL",infoText:"infoText___gZEJF",okBtn:"okBtn___CVo2A",fileList:"fileList___tauGN",fileName:"fileName___T_8JX",selectitems:"selectitems___imW2Y"},$e=ae(59301),It=(ee,he,ue)=>new Promise((fe,me)=>{var be=Ye=>{try{De(ue.next(Ye))}catch(nt){me(nt)}},Ae=Ye=>{try{De(ue.throw(Ye))}catch(nt){me(nt)}},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,He.useParams)(),[nt,Je]=(0,oe.useState)([]),[ot,mt]=(0,oe.useState)([]);(0,oe.useEffect)(()=>{ee?it():(mt([]),be([]),De(!1))},[ee]);const it=()=>It(void 0,null,function*(){const Yt=yield(0,Ke.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});Je(Yt.disciplines||[]),mt((fe==null?void 0:fe.length)>0?fe:[])}),vt=()=>{if((ot==null?void 0:ot.length)===0)return Pe.ZP.warning("\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B\uFF01");console.log("subDisciplineId",ot),De(!0),he(me,ot[1],()=>{De(!1)})},wt=()=>{ue()},Nt=()=>{const Yt=`${Ge.Z.API_SERVER}/api/courses/${Ye.coursesId}/exercises/down_template`;(0,lt.Nd)(null,Yt)},Ht=Yt=>{const yn={name:Yt.name,uid:Yt.uid,file:Yt};return be([yn]),!1},Qt=()=>{be([])};return $e.createElement(Ie.default,{title:"\u5BFC\u5165\u8BD5\u9898",open:ee,onOk:vt,centered:!0,wrapClassName:St.customModal,onCancel:wt,width:663,okText:"\u786E\u8BA4",okButtonProps:{className:St.okBtn},cancelText:"\u53D6\u6D88",confirmLoading:Ae},$e.createElement("div",{className:St.content},$e.createElement("aside",null,$e.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA41"),$e.createElement("ul",null,$e.createElement("li",null,$e.createElement("span",{style:{color:"#5F6367"}},"\u6839\u636E\u6A21\u677F\u8981\u6C42\u7F16\u8F91\u9700\u8981\u4E0A\u4F20\u7684\u8BD5\u9898"),$e.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginLeft:20},onClick:Nt},"\u4E0B\u8F7D\u8003\u8BD5\u8BD5\u9898\u6A21\u677F"),$e.createElement("i",{className:"iconfont icon-xiazai4 ml10",onClick:Nt,style:{fontSize:14,cursor:"pointer",color:"#0152d9"}})),$e.createElement("li",{style:{color:"#FA6400"},className:"mt10"},"\u63D0\u793A"),$e.createElement("li",{className:St.infoText},"1\u3001\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F\uFF1B "),$e.createElement("li",{className:St.infoText},"2\u3001\u4E0D\u652F\u6301\u7EC4\u5408\u9898\u548C\u5B9E\u8BAD\u9898\u5BFC\u5165\uFF1B"),$e.createElement("li",{className:St.infoText},"3\u3001\u6BCF\u6B21\u6700\u591A\u5BFC\u5165300\u9898\uFF1B"),$e.createElement("li",{className:St.infoText},"4\u3001\u586B\u7A7A\u9898\u5BFC\u5165\u6700\u591A\u652F\u63018\u4E2A\u586B\u7A7A\u9879\u3002"))),$e.createElement("aside",{style:{marginTop:22}},$e.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA42"),$e.createElement("ul",{style:{flex:1}},$e.createElement("li",{style:{color:"#5F6367"}},"\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B\uFF0C\u4E0A\u4F20\u7F16\u8F91\u597D\u7684\u8BD5\u9898\u6587\u6863\uFF0C\u786E\u5B9A\u5BFC\u5165"),ee&&$e.createElement($e.Fragment,null,$e.createElement(ke.Z,{value:ot,className:St.selectitems,expandTrigger:"hover",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:nt,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:(Yt,yn)=>{mt(Yt||[])}}),$e.createElement("br",null),$e.createElement(Ve.default,{action:`${Ge.Z.API_SERVER}/api/attachments.json`,beforeUpload:Ht,onRemove:Qt,withCredentials:!0,fileList:me,accept:".xls,.xlsx",showUploadList:!1},$e.createElement(Te.ZP,{className:St.upload,type:"primary",icon:$e.createElement("i",{className:"iconfont icon-shangchuan3",style:{fontSize:14}})},"\u4E0A\u4F20\u6587\u4EF6"))),me.map((Yt,yn)=>$e.createElement("div",{key:yn,className:St.fileList},$e.createElement("span",{className:St.fileName},Yt==null?void 0:Yt.name),$e.createElement("i",{className:"iconfont icon-shanchu12",style:{color:"#F65160",fontSize:16,cursor:"pointer"},onClick:Qt})))))))}},37345:function(We,Ee,ae){"use strict";ae.d(Ee,{h:function(){return oe}});var oe=(Pe=>(Pe[Pe.NOMATCH=-1]="NOMATCH",Pe[Pe.OK=0]="OK",Pe[Pe.TIMEOUT=2]="TIMEOUT",Pe[Pe.PODFAILURE=3]="PODFAILURE",Pe[Pe.COMPILEFAILURE=4]="COMPILEFAILURE",Pe[Pe.EXECUTEFAILURE=5]="EXECUTEFAILURE",Pe[Pe.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",Pe))(oe||{})},81072:function(We,Ee,ae){"use strict";ae.d(Ee,{H7:function(){return te},MK:function(){return Fe},MU:function(){return He},X6:function(){return $e},bM:function(){return Ke},fi:function(){return ee},fu:function(){return lt},n4:function(){return he},rX:function(){return It},vl:function(){return ue},zO:function(){return St}});var oe=ae(38986),Pe=Object.defineProperty,Ie=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Te=(fe,me,be)=>me in fe?Pe(fe,me,{enumerable:!0,configurable:!0,writable:!0,value:be}):fe[me]=be,Ge=(fe,me)=>{for(var be in me||(me={}))ke.call(me,be)&&Te(fe,be,me[be]);if(Ie)for(var be of Ie(me))Ve.call(me,be)&&Te(fe,be,me[be]);return fe};function lt(fe,me){return(0,oe.U2)(`myproblems/${fe}.json`,Ge({hidePopLogin:!0},me||{}))}function Ke(fe,me){return(0,oe.v_)(`myproblems/${fe}/code_submit.json`,me)}function He(fe,me){return(0,oe.v_)(`myproblems/${fe}/code_debug.json`,me)}function St(fe,me){return me.language&&(me.language=encodeURIComponent(me.language)),(0,oe.U2)(`myproblems/${fe}/submit_records.json`,me)}function $e(fe){return(0,oe.U2)("myproblems/record_detail.json",{id:fe})}function It(fe,me){return(0,oe.U2)(`myproblems/${fe}/result.json`,{mode:me})}function Fe(fe,me){return(0,oe.v_)(`myproblems/${fe}/add_notes.json`,me)}function te(fe,me){return(0,oe.v_)(`myproblems/${fe}/restore_initial_code.json`,me)}function ee(fe){return(0,oe.v_)(`myproblems/${fe}/sync_code.json`)}function he(fe,me){return(0,oe.v_)(`myproblems/${fe}/update_code.json`,me)}function ue(fe,me){return(0,oe.v_)(`discusses/${fe}/plus.json`,me)}},53311:function(We,Ee,ae){"use strict";var oe=ae(59301),Pe=ae(25399),Ie=ae(37568),ke=ae(6767),Ve=ae(2397),Te=ae(59301),Ge=(Ke,He,St)=>new Promise(($e,It)=>{var Fe=he=>{try{ee(St.next(he))}catch(ue){It(ue)}},te=he=>{try{ee(St.throw(he))}catch(ue){It(ue)}},ee=he=>he.done?$e(he.value):Promise.resolve(he.value).then(Fe,te);ee((St=St.apply(Ke,He)).next())});const lt=({defaultValue:Ke,onFinish:He})=>{const[St,$e]=(0,oe.useState)(!1),[It,Fe]=(0,oe.useState)(Ke);return(0,oe.useEffect)(()=>{Fe(Ke)},[Ke]),Te.createElement("div",null,St?Te.createElement(Ie.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:It,onChange:te=>{Fe(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){ke.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield He(It))&&$e(!1)}),onPressEnter:()=>Ge(void 0,null,function*(){var te;if(((te=It==null?void 0:It.replaceAll(" ",""))==null?void 0:te.length)<=0){ke.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield He(It))&&$e(!1)})}):Te.createElement("div",{className:Ve.Z.title},It,Te.createElement(Pe.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},Te.createElement("i",{className:`${Ve.Z.editIcon} iconfont icon-bianji_Hover`,onClick:()=>$e(!0)}))))};Ee.Z=lt},52154:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return He}});var oe=ae(62957),Pe={ul:"ul___TdfYY"},Ie=ae(32637),ke=ae(59301),Ve=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,lt=(St,$e)=>{var It={};for(var Fe in St)Te.call(St,Fe)&&$e.indexOf(Fe)<0&&(It[Fe]=St[Fe]);if(St!=null&&Ve)for(var Fe of Ve(St))$e.indexOf(Fe)<0&&Ge.call(St,Fe)&&(It[Fe]=St[Fe]);return It},He=St=>{var $e=St,{open:It,onCancel:Fe}=$e,te=lt($e,["open","onCancel"]);return ke.createElement(oe.default,{centered:!0,open:It,title:ke.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:Fe,footer:null},ke.createElement("div",null,ke.createElement("div",{className:"tc"},ke.createElement("img",{className:"mt10",src:Ie,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),ke.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),ke.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),ke.createElement("div",{style:{color:"#333"},className:"pt30 font14"},ke.createElement("ul",{className:Pe.ul},ke.createElement("li",null,"1\u3001\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66\u3002"),ke.createElement("li",null,"2\u3001\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),ke.createElement("li",null,"3\u3001\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5934\u6B4C\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002")))))}},78874:function(We,Ee,ae){"use strict";ae.d(Ee,{I:function(){return Pe}});var oe=ae(59301);const Pe=()=>{const[Ie,ke]=(0,oe.useState)("hidden");return{overflow:Ie,handleMouseEnter:()=>ke("auto"),handleMouseLeave:()=>ke("hidden")}}},81428:function(We,Ee,ae){"use strict";ae.d(Ee,{AL:function(){return be},Iy:function(){return St},Qv:function(){return Fe},ez:function(){return me},jb:function(){return $e}});var oe=ae(32834),Pe=ae.n(oe),Ie=ae(11690),ke=ae.n(Ie);let Ve=1;function Te(Je,ot){const mt=Je.match(/^(\s+)(?:```)/);if(mt===null)return ot;const it=mt[1];return ot.split(`
`).map(vt=>{const wt=vt.match(/^\s+/);if(wt===null)return vt;const[Nt]=wt;return Nt.length>=it.length?vt.slice(it.length):vt}).join(`
`)}let Ge=[],lt=["<ul>"];const Ke=new(Pe()).Renderer,He=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function St(){Ge.length=0,lt=["<ul>"]}const $e={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function It(Je,ot,mt,it){if(ot>=Je.length||Je[ot].level<=mt)return ot;var vt=Je[ot];it.push("<li><a href='#"+Ve+vt.anchor+"'>"+vt.text+"</a>"),ot++;var wt=[];return ot=It(Je,ot,vt.level,wt),wt.length>0&&(it.push("<ul>"),wt.forEach(function(Nt){it.push(Nt)}),it.push("</ul>")),it.push("</li>"),ot=It(Je,ot,mt,it),ot}function Fe(){return It(Ge,0,0,lt),lt.push("</ul>"),lt.join("")}const te={heading(Je){const ot=He.exec(Je);if(Ve+=1,ot)return{type:"heading",raw:ot[0],depth:ot[1].length,text:ot[2]}},fences(Je){const ot=this.rules.block.fences.exec(Je);if(ot){const mt=ot[0];let it=Te(mt,ot[3]||"");const vt=ot[2]?ot[2].trim():ot[2];if(["latex","katex","math"].indexOf(vt)>=0){const wt=ue(),Nt=it;it=wt,fe[wt]={type:"block",expression:Nt}}return{type:"code",raw:mt,lang:vt,text:it}}}},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(Je){return Je=Je.replace(ee,(ot,mt)=>{const it=ue();return fe[it]={type:"inline",expression:mt},it}),Je}const De=Ke.listitem;Ke.listitem=function(Je){return De(Ae(Je))};const Ye=Ke.paragraph;Ke.paragraph=function(Je){return Ye(Ae(Je))};const nt=Ke.tablecell;Ke.tablecell=function(Je,ot){return nt(Ae(Je),ot)},Ke.code=function(Je,ot,mt){const it=(ot||"").match(/\S*/)[0];return it?["latex","katex","math"].indexOf(it)>=0?`<p class='editormd-tex'>${Je}</p>`:`<pre class="prettyprint linenums"><code class="language-${ot}">${mt?Je:(0,Ie.escape)(Je,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(mt?Je:(0,Ie.escape)(Je,!0))+"</code></pre>"},Ke.heading=function(Je,ot,mt){let it=this.options.headerPrefix+mt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ge.push({anchor:it,level:ot,text:Je}),"<h"+ot+' id="'+Ve+it+'">'+Je+"</h"+ot+">"},Pe().setOptions({silent:!0,gfm:!0,pedantic:!1}),Pe().use({tokenizer:te,renderer:Ke}),Ee.ZP=Pe()},99498:function(We,Ee,ae){(function(oe){oe(ae(89780))})(function(oe){oe.defineOption("placeholder","",function(lt,Ke,He){var St=He&&He!=oe.Init;if(Ke&&!St)lt.on("blur",Ve),lt.on("change",Te),lt.on("swapDoc",Te),oe.on(lt.getInputField(),"compositionupdate",lt.state.placeholderCompose=function(){ke(lt)}),Te(lt);else if(!Ke&&St){lt.off("blur",Ve),lt.off("change",Te),lt.off("swapDoc",Te),oe.off(lt.getInputField(),"compositionupdate",lt.state.placeholderCompose),Pe(lt);var $e=lt.getWrapperElement();$e.className=$e.className.replace(" CodeMirror-empty","")}Ke&&!lt.hasFocus()&&Ve(lt)});function Pe(lt){lt.state.placeholder&&(lt.state.placeholder.parentNode.removeChild(lt.state.placeholder),lt.state.placeholder=null)}function Ie(lt){Pe(lt);var Ke=lt.state.placeholder=document.createElement("pre");Ke.style.cssText="height: 0; overflow: visible",Ke.style.direction=lt.getOption("direction"),Ke.className="CodeMirror-placeholder CodeMirror-line-like";var He=lt.getOption("placeholder");typeof He=="string"&&(He=document.createTextNode(He)),Ke.appendChild(He),lt.display.lineSpace.insertBefore(Ke,lt.display.lineSpace.firstChild)}function ke(lt){setTimeout(function(){var Ke=!1,He=lt.getInputField();He.nodeName=="TEXTAREA"?Ke=!He.value:lt.lineCount()==1&&(Ke=!/[^\u200b]/.test(He.querySelector(".CodeMirror-line").textContent)),Ke?Ie(lt):Pe(lt)},20)}function Ve(lt){Ge(lt)&&Ie(lt)}function Te(lt){var Ke=lt.getWrapperElement(),He=Ge(lt);Ke.className=Ke.className.replace(" CodeMirror-empty","")+(He?" CodeMirror-empty":""),He?Ie(lt):Pe(lt)}function Ge(lt){return lt.lineCount()===1&&lt.getLine(0)===""}})},25717:function(We,Ee,ae){(function(oe){oe(ae(89780))})(function(oe){var Pe={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Ie=oe.Pos;oe.defineOption("autoCloseBrackets",!1,function(te,ee,he){he&&he!=oe.Init&&(te.removeKeyMap(Ve),te.state.closeBrackets=null),ee&&(Te(ke(ee,"pairs")),te.state.closeBrackets=ee,te.addKeyMap(Ve))});function ke(te,ee){return ee=="pairs"&&typeof te=="string"?te:typeof te=="object"&&te[ee]!=null?te[ee]:Pe[ee]}var Ve={Backspace:Ke,Enter:He};function Te(te){for(var ee=0;ee<te.length;ee++){var he=te.charAt(ee),ue="'"+he+"'";Ve[ue]||(Ve[ue]=Ge(he))}}Te(Pe.pairs+"`");function Ge(te){return function(ee){return $e(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 Ke(te){var ee=lt(te);if(!ee||te.getOption("disableInput"))return oe.Pass;for(var he=ke(ee,"pairs"),ue=te.listSelections(),fe=0;fe<ue.length;fe++){if(!ue[fe].empty())return oe.Pass;var me=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("",Ie(be.line,be.ch-1),Ie(be.line,be.ch+1),"+delete")}}function He(te){var ee=lt(te),he=ee&&ke(ee,"explode");if(!he||te.getOption("disableInput"))return oe.Pass;for(var ue=te.listSelections(),fe=0;fe<ue.length;fe++){if(!ue[fe].empty())return oe.Pass;var me=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 St(te){var ee=oe.cmpPos(te.anchor,te.head)>0;return{anchor:new Ie(te.anchor.line,te.anchor.ch+(ee?-1:1)),head:new Ie(te.head.line,te.head.ch+(ee?1:-1))}}function $e(te,ee){var he=lt(te);if(!he||te.getOption("disableInput"))return oe.Pass;var ue=ke(he,"pairs"),fe=ue.indexOf(ee);if(fe==-1)return oe.Pass;for(var me=ke(he,"closeBefore"),be=ke(he,"triples"),Ae=ue.charAt(fe+1)==ee,De=te.listSelections(),Ye=fe%2==0,nt,Je=0;Je<De.length;Je++){var ot=De[Je],mt=ot.head,it,vt=te.getRange(mt,Ie(mt.line,mt.ch+1));if(Ye&&!ot.empty())it="surround";else if((Ae||!Ye)&&vt==ee)Ae&&Fe(te,mt)?it="both":be.indexOf(ee)>=0&&te.getRange(mt,Ie(mt.line,mt.ch+3))==ee+ee+ee?it="skipThree":it="skip";else if(Ae&&mt.ch>1&&be.indexOf(ee)>=0&&te.getRange(Ie(mt.line,mt.ch-2),mt)==ee+ee){if(mt.ch>2&&/\bstring/.test(te.getTokenTypeAt(Ie(mt.line,mt.ch-2))))return oe.Pass;it="addFour"}else if(Ae){var wt=mt.ch==0?" ":te.getRange(Ie(mt.line,mt.ch-1),mt);if(!oe.isWordChar(vt)&&wt!=ee&&!oe.isWordChar(wt))it="both";else return oe.Pass}else if(Ye&&(vt.length===0||/\s/.test(vt)||me.indexOf(vt)>-1))it="both";else return oe.Pass;if(!nt)nt=it;else if(nt!=it)return oe.Pass}var Nt=fe%2?ue.charAt(fe-1):ee,Ht=fe%2?ee:ue.charAt(fe+1);te.operation(function(){if(nt=="skip")te.execCommand("goCharRight");else if(nt=="skipThree")for(var Qt=0;Qt<3;Qt++)te.execCommand("goCharRight");else if(nt=="surround"){for(var Yt=te.getSelections(),Qt=0;Qt<Yt.length;Qt++)Yt[Qt]=Nt+Yt[Qt]+Ht;te.replaceSelections(Yt,"around"),Yt=te.listSelections().slice();for(var Qt=0;Qt<Yt.length;Qt++)Yt[Qt]=St(Yt[Qt]);te.setSelections(Yt)}else nt=="both"?(te.replaceSelection(Nt+Ht,null),te.triggerElectric(Nt+Ht),te.execCommand("goCharLeft")):nt=="addFour"&&(te.replaceSelection(Nt+Nt+Nt+Nt,"before"),te.execCommand("goCharRight"))})}function It(te,ee){var he=te.getRange(Ie(ee.line,ee.ch-1),Ie(ee.line,ee.ch+1));return he.length==2?he:null}function Fe(te,ee){var he=te.getTokenAt(Ie(ee.line,ee.ch+1));return/\bstring/.test(he.type)&&he.start==ee.ch&&(ee.ch==0||!/\bstring/.test(te.getTokenTypeAt(ee)))}})},6313:function(We,Ee,ae){(function(oe){oe(ae(89780),ae(32855))})(function(oe){oe.defineOption("autoCloseTags",!1,function(Ke,He,St){if(St!=oe.Init&&St&&Ke.removeKeyMap("autoCloseTags"),!!He){var $e={name:"autoCloseTags"};(typeof He!="object"||He.whenClosing!==!1)&&($e["'/'"]=function(It){return Te(It)}),(typeof He!="object"||He.whenOpening!==!1)&&($e["'>'"]=function(It){return ke(It)}),Ke.addKeyMap($e)}});var Pe=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Ie=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function ke(Ke){if(Ke.getOption("disableInput"))return oe.Pass;for(var He=Ke.listSelections(),St=[],$e=Ke.getOption("autoCloseTags"),It=0;It<He.length;It++){if(!He[It].empty())return oe.Pass;var Fe=He[It].head,te=Ke.getTokenAt(Fe),ee=oe.innerMode(Ke.getMode(),te.state),he=ee.state,ue=ee.mode.xmlCurrentTag&&ee.mode.xmlCurrentTag(he),fe=ue&&ue.name;if(!fe)return oe.Pass;var me=ee.mode.configuration=="html",be=typeof $e=="object"&&$e.dontCloseTags||me&&Pe,Ae=typeof $e=="object"&&$e.indentTags||me&&Ie;te.end>Fe.ch&&(fe=fe.slice(0,fe.length-te.end+Fe.ch));var De=fe.toLowerCase();if(!fe||te.type=="string"&&(te.end!=Fe.ch||!/[\"\']/.test(te.string.charAt(te.string.length-1))||te.string.length==1)||te.type=="tag"&&ue.close||te.string.indexOf("/")==Fe.ch-te.start-1||be&&Ge(be,De)>-1||lt(Ke,ee.mode.xmlCurrentContext&&ee.mode.xmlCurrentContext(he)||[],fe,Fe,!0))return oe.Pass;var Ye=typeof $e=="object"&&$e.emptyTags;if(Ye&&Ge(Ye,fe)>-1){St[It]={text:"/>",newPos:oe.Pos(Fe.line,Fe.ch+2)};continue}var nt=Ae&&Ge(Ae,De)>-1;St[It]={indent:nt,text:">"+(nt?`
`:"")+"</"+fe+">",newPos:nt?oe.Pos(Fe.line+1,0):oe.Pos(Fe.line,Fe.ch+1)}}for(var Je=typeof $e=="object"&&$e.dontIndentOnAutoClose,It=He.length-1;It>=0;It--){var ot=St[It];Ke.replaceRange(ot.text,He[It].head,He[It].anchor,"+insert");var mt=Ke.listSelections().slice(0);mt[It]={head:ot.newPos,anchor:ot.newPos},Ke.setSelections(mt),!Je&&ot.indent&&(Ke.indentLine(ot.newPos.line,null,!0),Ke.indentLine(ot.newPos.line+1,null,!0))}}function Ve(Ke,He){for(var St=Ke.listSelections(),$e=[],It=He?"/":"</",Fe=Ke.getOption("autoCloseTags"),te=typeof Fe=="object"&&Fe.dontIndentOnSlash,ee=0;ee<St.length;ee++){if(!St[ee].empty())return oe.Pass;var he=St[ee].head,ue=Ke.getTokenAt(he),fe=oe.innerMode(Ke.getMode(),ue.state),me=fe.state;if(He&&(ue.type=="string"||ue.string.charAt(0)!="<"||ue.start!=he.ch-1))return oe.Pass;var be,Ae=fe.mode.name!="xml"&&Ke.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(Ke,De,De[De.length-1],he))return oe.Pass;be=It+De[De.length-1]}Ke.getLine(he.line).charAt(ue.end)!=">"&&(be+=">"),$e[ee]=be}if(Ke.replaceSelections($e),St=Ke.listSelections(),!te)for(var ee=0;ee<St.length;ee++)(ee==St.length-1||St[ee].head.line<St[ee+1].head.line)&&Ke.indentLine(St[ee].head.line)}function Te(Ke){return Ke.getOption("disableInput")?oe.Pass:Ve(Ke,!0)}oe.commands.closeTag=function(Ke){return Ve(Ke)};function Ge(Ke,He){if(Ke.indexOf)return Ke.indexOf(He);for(var St=0,$e=Ke.length;St<$e;++St)if(Ke[St]==He)return St;return-1}function lt(Ke,He,St,$e,It){if(!oe.scanForClosingTag)return!1;var Fe=Math.min(Ke.lastLine()+1,$e.line+500),te=oe.scanForClosingTag(Ke,$e,null,Fe);if(!te||te.tag!=St)return!1;for(var ee=It?1:0,he=He.length-1;he>=0&&He[he]==St;he--)++ee;$e=te.to;for(var he=1;he<ee;he++){var ue=oe.scanForClosingTag(Ke,$e,null,Fe);if(!ue||ue.tag!=St)return!1;$e=ue.to}return!0}})},32855:function(We,Ee,ae){(function(oe){oe(ae(89780))})(function(oe){"use strict";var Pe=oe.Pos;function Ie(he,ue){return he.line-ue.line||he.ch-ue.ch}var ke="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Ve=ke+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Te=new RegExp("<(/?)(["+ke+"]["+Ve+"]*)","g");function 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(Pe(he.line,ue));return fe&&/\btag\b/.test(fe)}function Ke(he){if(!(he.line>=he.max))return he.ch=0,he.text=he.cm.getLine(++he.line),!0}function He(he){if(!(he.line<=he.min))return he.text=he.cm.getLine(--he.line),he.ch=he.text.length,!0}function St(he){for(;;){var ue=he.text.indexOf(">",he.ch);if(ue==-1){if(Ke(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 $e(he){for(;;){var ue=he.ch?he.text.lastIndexOf("<",he.ch-1):-1;if(ue==-1){if(He(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(Ke(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 Fe(he){for(;;){var ue=he.ch?he.text.lastIndexOf(">",he.ch-1):-1;if(ue==-1){if(He(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=St(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:Pe(Ae,De),to:Pe(he.line,he.ch)}}else fe.push(me[2])}}function ee(he,ue){for(var fe=[];;){var me=Fe(he);if(!me)return;if(me=="selfClose"){$e(he);continue}var be=he.line,Ae=he.ch,De=$e(he);if(!De)return;if(De[1])fe.push(De[2]);else{for(var 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:Pe(he.line,he.ch),to:Pe(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=St(fe);if(!be)return;if(!me[1]&&be!="selfClose"){var Ae=Pe(fe.line,fe.ch),De=te(fe,me[2]);return De&&Ie(De.from,Ae)>0?{from:Ae,to:De.from}:null}}}),oe.findMatchingTag=function(he,ue,fe){var me=new Ge(he,ue.line,ue.ch,fe);if(!(me.text.indexOf(">")==-1&&me.text.indexOf("<")==-1)){var be=St(me),Ae=be&&Pe(me.line,me.ch),De=be&&$e(me);if(!(!be||!De||Ie(me,ue)>0)){var Ye={from:Pe(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(We){(function(Ee,ae){We.exports=ae()})(this,function(){"use strict";var Ee=navigator.userAgent,ae=navigator.platform,oe=/gecko\/\d/i.test(Ee),Pe=/MSIE \d/.test(Ee),Ie=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ee),ke=/Edge\/(\d+)/.exec(Ee),Ve=Pe||Ie||ke,Te=Ve&&(Pe?document.documentMode||6:+(ke||Ie)[1]),Ge=!ke&&/WebKit\//.test(Ee),lt=Ge&&/Qt\/\d+\.\d+/.test(Ee),Ke=!ke&&/Chrome\//.test(Ee),He=/Opera\//.test(Ee),St=/Apple Computer/.test(navigator.vendor),$e=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ee),It=/PhantomJS/.test(Ee),Fe=!ke&&/AppleWebKit/.test(Ee)&&/Mobile\/\w+/.test(Ee),te=/Android/.test(Ee),ee=Fe||te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ee),he=Fe||/Mac/.test(ae),ue=/\bCrOS\b/.test(Ee),fe=/win/i.test(ae),me=He&&Ee.match(/Version\/(\d*\.\d*)/);me&&(me=Number(me[1])),me&&me>=15&&(He=!1,Ge=!0);var be=he&&(lt||He&&(me==null||me<12.11)),Ae=oe||Ve&&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 nt(re){for(var le=re.childNodes.length;le>0;--le)re.removeChild(re.firstChild);return re}function Je(re,le){return nt(re).appendChild(le)}function ot(re,le,ye,ve){var xe=document.createElement(re);if(ye&&(xe.className=ye),ve&&(xe.style.cssText=ve),typeof le=="string")xe.appendChild(document.createTextNode(le));else if(le)for(var Ze=0;Ze<le.length;++Ze)xe.appendChild(le[Ze]);return xe}function mt(re,le,ye,ve){var xe=ot(re,le,ye,ve);return xe.setAttribute("role","presentation"),xe}var it;document.createRange?it=function(re,le,ye,ve){var xe=document.createRange();return xe.setEnd(ve||re,ye),xe.setStart(re,le),xe}:it=function(re,le,ye){var ve=document.body.createTextRange();try{ve.moveToElementText(re.parentNode)}catch(xe){return ve}return ve.collapse(!0),ve.moveEnd("character",ye),ve.moveStart("character",le),ve};function vt(re,le){if(le.nodeType==3&&(le=le.parentNode),re.contains)return re.contains(le);do if(le.nodeType==11&&(le=le.host),le==re)return!0;while(le=le.parentNode)}function wt(){var re;try{re=document.activeElement}catch(le){re=document.body||null}for(;re&&re.shadowRoot&&re.shadowRoot.activeElement;)re=re.shadowRoot.activeElement;return re}function Nt(re,le){var ye=re.className;De(le).test(ye)||(re.className+=(ye?" ":"")+le)}function Ht(re,le){for(var ye=re.split(" "),ve=0;ve<ye.length;ve++)ye[ve]&&!De(ye[ve]).test(le)&&(le+=" "+ye[ve]);return le}var Qt=function(re){re.select()};Fe?Qt=function(re){re.selectionStart=0,re.selectionEnd=re.value.length}:Ve&&(Qt=function(re){try{re.select()}catch(le){}});function Yt(re){var le=Array.prototype.slice.call(arguments,1);return function(){return re.apply(null,le)}}function yn(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 Ze=ve||0,dt=xe||0;;){var Tt=re.indexOf(" ",Ze);if(Tt<0||Tt>=le)return dt+(le-Ze);dt+=Tt-Ze,dt+=ye-dt%ye,Ze=Tt+1}}var ft=function(){this.id=null,this.f=null,this.time=0,this.handler=Yt(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 Jt=50,fn={toString:function(){return"CodeMirror.Pass"}},kt={scroll:!1},bn={origin:"*mouse"},An={origin:"+move"};function Yn(re,le,ye){for(var ve=0,xe=0;;){var Ze=re.indexOf(" ",ve);Ze==-1&&(Ze=re.length);var dt=Ze-ve;if(Ze==re.length||xe+dt>=le)return ve+Math.min(dt,le-xe);if(xe+=Ze-ve,xe+=ye-xe%ye,ve=Ze+1,xe>=le)return ve}}var Vt=[""];function Bn(re){for(;Vt.length<=re;)Vt.push(Mt(Vt)+" ");return Vt[re]}function Mt(re){return re[re.length-1]}function Hn(re,le){for(var ye=[],ve=0;ve<re.length;ve++)ye[ve]=le(re[ve],ve);return ye}function ur(re,le,ye){for(var ve=0,xe=ye(le);ve<re.length&&ye(re[ve])<=xe;)ve++;re.splice(ve,0,le)}function at(){}function _e(re,le){var ye;return Object.create?ye=Object.create(re):(at.prototype=re,ye=new at),le&&yn(le,ye),ye}var Re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Xe(re){return/\w/.test(re)||re>"\x80"&&(re.toUpperCase()!=re.toLowerCase()||Re.test(re))}function st(re,le){return le?le.source.indexOf("\\w")>-1&&Xe(re)?!0:le.test(re):Xe(re)}function Be(re){for(var le in re)if(re.hasOwnProperty(le)&&re[le])return!1;return!0}var Et=/[\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 En(re){return re.charCodeAt(0)>=768&&Et.test(re)}function sn(re,le,ye){for(;(ye<0?le>0:le<re.length)&&En(re.charAt(le));)le+=ye;return le}function Mn(re,le,ye){for(var ve=le>ye?-1:1;;){if(le==ye)return le;var xe=(le+ye)/2,Ze=ve<0?Math.ceil(xe):Math.floor(xe);if(Ze==le)return re(Ze)?le:ye;re(Ze)?ye=Ze:le=Ze+ve}}function Dt(re,le,ye,ve){if(!re)return ve(le,ye,"ltr",0);for(var xe=!1,Ze=0;Ze<re.length;++Ze){var dt=re[Ze];(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",Ze),xe=!0)}xe||ve(le,ye,"ltr")}var _t=null;function jt(re,le,ye){var ve;_t=null;for(var xe=0;xe<re.length;++xe){var Ze=re[xe];if(Ze.from<le&&Ze.to>le)return xe;Ze.to==le&&(Ze.from!=Ze.to&&ye=="before"?ve=xe:_t=xe),Ze.from==le&&(Ze.from!=Ze.to&&ye!="before"?ve=xe:_t=xe)}return ve!=null?ve:_t}var dn=function(){var re="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",le="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ye(Wt){return Wt<=247?re.charAt(Wt):1424<=Wt&&Wt<=1524?"R":1536<=Wt&&Wt<=1785?le.charAt(Wt-1536):1774<=Wt&&Wt<=2220?"r":8192<=Wt&&Wt<=8203?"w":Wt==8204?"b":"L"}var ve=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,xe=/[stwN]/,Ze=/[LRr]/,dt=/[Lb1n]/,Tt=/[1n]/;function Ct(Wt,Kn,rn){this.level=Wt,this.from=Kn,this.to=rn}return function(Wt,Kn){var rn=Kn=="ltr"?"L":"R";if(Wt.length==0||Kn=="ltr"&&!ve.test(Wt))return!1;for(var wr=Wt.length,mr=[],yi=0;yi<wr;++yi)mr.push(ye(Wt.charCodeAt(yi)));for(var wi=0,Di=rn;wi<wr;++wi){var $i=mr[wi];$i=="m"?mr[wi]=Di:Di=$i}for(var xo=0,lo=rn;xo<wr;++xo){var No=mr[xo];No=="1"&&lo=="r"?mr[xo]="n":Ze.test(No)&&(lo=No,No=="r"&&(mr[xo]="R"))}for(var Jo=1,uo=mr[0];Jo<wr-1;++Jo){var ya=mr[Jo];ya=="+"&&uo=="1"&&mr[Jo+1]=="1"?mr[Jo]="1":ya==","&&uo==mr[Jo+1]&&(uo=="1"||uo=="n")&&(mr[Jo]=uo),uo=ya}for(var bs=0;bs<wr;++bs){var Al=mr[bs];if(Al==",")mr[bs]="N";else if(Al=="%"){var Ms=void 0;for(Ms=bs+1;Ms<wr&&mr[Ms]=="%";++Ms);for(var Nu=bs&&mr[bs-1]=="!"||Ms<wr&&mr[Ms]=="1"?"1":"N",ql=bs;ql<Ms;++ql)mr[ql]=Nu;bs=Ms-1}}for(var yl=0,Lu=rn;yl<wr;++yl){var Hl=mr[yl];Lu=="L"&&Hl=="1"?mr[yl]="L":Ze.test(Hl)&&(Lu=Hl)}for(var Sl=0;Sl<wr;++Sl)if(xe.test(mr[Sl])){var Ma=void 0;for(Ma=Sl+1;Ma<wr&&xe.test(mr[Ma]);++Ma);for(var Os=(Sl?mr[Sl-1]:rn)=="L",Dl=(Ma<wr?mr[Ma]:rn)=="L",zl=Os==Dl?Os?"L":"R":rn,wc=Sl;wc<Ma;++wc)mr[wc]=zl;Sl=Ma-1}for(var Fs=[],ec,we=0;we<wr;)if(dt.test(mr[we])){var Le=we;for(++we;we<wr&&dt.test(mr[we]);++we);Fs.push(new Ct(0,Le,we))}else{var je=we,ut=Fs.length,Lt=Kn=="rtl"?1:0;for(++we;we<wr&&mr[we]!="L";++we);for(var At=je;At<we;)if(Tt.test(mr[At])){je<At&&(Fs.splice(ut,0,new Ct(1,je,At)),ut+=Lt);var zt=At;for(++At;At<we&&Tt.test(mr[At]);++At);Fs.splice(ut,0,new Ct(2,zt,At)),ut+=Lt,je=At}else++At;je<we&&Fs.splice(ut,0,new Ct(1,je,we))}return Kn=="ltr"&&(Fs[0].level==1&&(ec=Wt.match(/^\s+/))&&(Fs[0].from=ec[0].length,Fs.unshift(new Ct(0,0,ec[0].length))),Mt(Fs).level==1&&(ec=Wt.match(/\s+$/))&&(Mt(Fs).to-=ec[0].length,Fs.push(new Ct(0,wr-ec[0].length,wr)))),Kn=="rtl"?Fs.reverse():Fs}}();function Sn(re,le){var ye=re.order;return ye==null&&(ye=re.order=dn(re.text,le)),ye}var gn=[],Ot=function(re,le,ye){if(re.addEventListener)re.addEventListener(le,ye,!1);else if(re.attachEvent)re.attachEvent("on"+le,ye);else{var ve=re._handlers||(re._handlers={});ve[le]=(ve[le]||gn).concat(ye)}};function Pn(re,le){return re._handlers&&re._handlers[le]||gn}function Zt(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 Ze=ct(xe,ye);Ze>-1&&(ve[le]=xe.slice(0,Ze).concat(xe.slice(Ze+1)))}}}function tn(re,le){var ye=Pn(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 vn(re,le,ye){return typeof le=="string"&&(le={type:le,preventDefault:function(){this.defaultPrevented=!0}}),tn(re,ye||le.type,re,le),nn(le)||le.codemirrorIgnore}function $n(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 mn(re,le){return Pn(re,le).length>0}function gt(re){re.prototype.on=function(le,ye){Ot(this,le,ye)},re.prototype.off=function(le,ye){Zt(this,le,ye)}}function Xn(re){re.preventDefault?re.preventDefault():re.returnValue=!1}function ir(re){re.stopPropagation?re.stopPropagation():re.cancelBubble=!0}function nn(re){return re.defaultPrevented!=null?re.defaultPrevented:re.returnValue==!1}function vr(re){Xn(re),ir(re)}function $r(re){return re.target||re.srcElement}function Lr(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 Rn=function(){if(Ve&&Te<9)return!1;var re=ot("div");return"draggable"in re||"dragDrop"in re}(),ei;function Jr(re){if(ei==null){var le=ot("span","\u200B");Je(re,ot("span",[le,document.createTextNode("x")])),re.firstChild.offsetHeight!=0&&(ei=le.offsetWidth<=1&&le.offsetHeight>2&&!(Ve&&Te<8))}var ye=ei?ot("span","\u200B"):ot("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ye.setAttribute("cm-text",""),ye}var nr;function Wr(re){if(nr!=null)return nr;var le=Je(re,document.createTextNode("A\u062EA")),ye=it(le,0,1).getBoundingClientRect(),ve=it(le,1,2).getBoundingClientRect();return nt(re),!ye||ye.left==ye.right?!1:nr=ve.right-ye.right<3}var oi=`
b`.split(/\n/).length!=3?function(re){for(var le=0,ye=[],ve=re.length;le<=ve;){var xe=re.indexOf(`
`,le);xe==-1&&(xe=re.length);var Ze=re.slice(le,re.charAt(xe-1)=="\r"?xe-1:xe),dt=Ze.indexOf("\r");dt!=-1?(ye.push(Ze.slice(0,dt)),le+=dt+1):(ye.push(Ze),le=xe+1)}return ye}:function(re){return re.split(/\r\n?|\n/)},Oe=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},cr=function(){var re=ot("div");return"oncopy"in re?!0:(re.setAttribute("oncopy","return;"),typeof re.oncopy=="function")}(),Cr=null;function or(re){if(Cr!=null)return Cr;var le=Je(re,ot("span","x")),ye=le.getBoundingClientRect(),ve=it(le,0,1).getBoundingClientRect();return Cr=Math.abs(ye.left-ve.left)>1}var kr={},Fr={};function Or(re,le){arguments.length>2&&(le.dependencies=Array.prototype.slice.call(arguments,2)),kr[re]=le}function mi(re,le){Fr[re]=le}function Ti(re){if(typeof re=="string"&&Fr.hasOwnProperty(re))re=Fr[re];else if(re&&typeof re.name=="string"&&Fr.hasOwnProperty(re.name)){var le=Fr[re.name];typeof le=="string"&&(le={name:le}),re=_e(le,re),re.name=le.name}else{if(typeof re=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(re))return Ti("application/xml");if(typeof re=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(re))return Ti("application/json")}return typeof re=="string"?{name:re}:re||{name:"null"}}function hn(re,le){le=Ti(le);var ye=kr[le.name];if(!ye)return hn(re,"text/plain");var ve=ye(re,le);if(Cn.hasOwnProperty(le.name)){var xe=Cn[le.name];for(var Ze in xe)xe.hasOwnProperty(Ze)&&(ve.hasOwnProperty(Ze)&&(ve["_"+Ze]=ve[Ze]),ve[Ze]=xe[Ze])}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 Cn={};function pn(re,le){var ye=Cn.hasOwnProperty(re)?Cn[re]:Cn[re]={};yn(le,ye)}function Kr(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 Vr(re,le,ye){return re.startState?re.startState(le,ye):!0}var dr=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};dr.prototype.eol=function(){return this.pos>=this.string.length},dr.prototype.sol=function(){return this.pos==this.lineStart},dr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},dr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},dr.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},dr.prototype.eatWhile=function(re){for(var le=this.pos;this.eat(re););return this.pos>le},dr.prototype.eatSpace=function(){for(var re=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>re},dr.prototype.skipToEnd=function(){this.pos=this.string.length},dr.prototype.skipTo=function(re){var le=this.string.indexOf(re,this.pos);if(le>-1)return this.pos=le,!0},dr.prototype.backUp=function(re){this.pos-=re},dr.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)},dr.prototype.indentation=function(){return bt(this.string,null,this.tabSize)-(this.lineStart?bt(this.string,this.lineStart,this.tabSize):0)},dr.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 Ze=this.string.slice(this.pos).match(re);return Ze&&Ze.index>0?null:(Ze&&le!==!1&&(this.pos+=Ze[0].length),Ze)}},dr.prototype.current=function(){return this.string.slice(this.start,this.pos)},dr.prototype.hideFirstChars=function(re,le){this.lineStart+=re;try{return le()}finally{this.lineStart-=re}},dr.prototype.lookAhead=function(re){var le=this.lineOracle;return le&&le.lookAhead(re)},dr.prototype.baseToken=function(){var re=this.lineOracle;return re&&re.baseToken(this.pos)};function Gr(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],Ze=xe.chunkSize();if(le<Ze){ye=xe;break}le-=Ze}return ye.lines[le]}function bi(re,le,ye){var ve=[],xe=le.line;return re.iter(le.line,ye.line+1,function(Ze){var dt=Ze.text;xe==ye.line&&(dt=dt.slice(0,ye.ch)),xe==le.line&&(dt=dt.slice(le.ch)),ve.push(dt),++xe}),ve}function Ai(re,le,ye){var ve=[];return re.iter(le,ye,function(xe){ve.push(xe.text)}),ve}function Oi(re,le){var ye=le-re.height;if(ye)for(var ve=re;ve;ve=ve.parent)ve.height+=ye}function xt(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 on(re,le){var ye=re.first;e:do{for(var ve=0;ve<re.children.length;++ve){var xe=re.children[ve],Ze=xe.height;if(le<Ze){re=xe;continue e}le-=Ze,ye+=xe.chunkSize()}return ye}while(!re.lines);for(var dt=0;dt<re.lines.length;++dt){var Tt=re.lines[dt],Ct=Tt.height;if(le<Ct)break;le-=Ct}return ye+dt}function br(re,le){return le>=re.first&&le<re.first+re.size}function Br(re,le){return String(re.lineNumberFormatter(le+re.firstLineNumber))}function Xt(re,le,ye){if(ye===void 0&&(ye=null),!(this instanceof Xt))return new Xt(re,le,ye);this.line=re,this.ch=le,this.sticky=ye}function fr(re,le){return re.line-le.line||re.ch-le.ch}function Tn(re,le){return re.sticky==le.sticky&&fr(re,le)==0}function un(re){return Xt(re.line,re.ch)}function Ue(re,le){return fr(re,le)<0?le:re}function Nr(re,le){return fr(re,le)<0?re:le}function jr(re,le){return Math.max(re.first,Math.min(le,re.first+re.size-1))}function zn(re,le){if(le.line<re.first)return Xt(re.first,0);var ye=re.first+re.size-1;return le.line>ye?Xt(ye,Gr(re,ye).text.length):vi(le,Gr(re,le.line).text.length)}function vi(re,le){var ye=re.ch;return ye==null||ye>le?Xt(re.line,le):ye<0?Xt(re.line,0):re}function Xr(re,le){for(var ye=[],ve=0;ve<le.length;ve++)ye[ve]=zn(re,le[ve]);return ye}var ci=function(re,le){this.state=re,this.lookAhead=le},Gn=function(re,le,ye,ve){this.state=le,this.doc=re,this.line=ye,this.maxLookAhead=ve||0,this.baseTokens=null,this.baseTokenPos=1};Gn.prototype.lookAhead=function(re){var le=this.doc.getLine(this.line+re);return le!=null&&re>this.maxLookAhead&&(this.maxLookAhead=re),le},Gn.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}},Gn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Gn.fromSaved=function(re,le,ye){return le instanceof ci?new Gn(re,Kr(re.mode,le.state),ye,le.lookAhead):new Gn(re,Kr(re.mode,le),ye)},Gn.prototype.save=function(re){var le=re!==!1?Kr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ci(le,this.maxLookAhead):le};function cn(re,le,ye,ve){var xe=[re.state.modeGen],Ze={};Bi(re,le.text,re.doc.mode,ye,function(Wt,Kn){return xe.push(Wt,Kn)},Ze,ve);for(var dt=ye.state,Tt=function(Wt){ye.baseTokens=xe;var Kn=re.state.overlays[Wt],rn=1,wr=0;ye.state=!0,Bi(re,le.text,Kn.mode,ye,function(mr,yi){for(var wi=rn;wr<mr;){var Di=xe[rn];Di>mr&&xe.splice(rn,1,mr,xe[rn+1],Di),rn+=2,wr=Math.min(mr,Di)}if(yi)if(Kn.opaque)xe.splice(wi,rn-wi,mr,"overlay "+yi),rn=wi+2;else for(;wi<rn;wi+=2){var $i=xe[wi+1];xe[wi+1]=($i?$i+" ":"")+"overlay "+yi}},Ze),ye.state=dt,ye.baseTokens=null,ye.baseTokenPos=1},Ct=0;Ct<re.state.overlays.length;++Ct)Tt(Ct);return{styles:xe,classes:Ze.bgClass||Ze.textClass?Ze:null}}function Ci(re,le,ye){if(!le.styles||le.styles[0]!=re.state.modeGen){var ve=ji(re,xt(le)),xe=le.text.length>re.options.maxHighlightLength&&Kr(re.doc.mode,ve.state),Ze=cn(re,le,ve);xe&&(ve.state=xe),le.stateAfter=ve.save(!xe),le.styles=Ze.styles,Ze.classes?le.styleClasses=Ze.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 ji(re,le,ye){var ve=re.doc,xe=re.display;if(!ve.mode.startState)return new Gn(ve,!0,le);var Ze=Zi(re,le,ye),dt=Ze>ve.first&&Gr(ve,Ze-1).stateAfter,Tt=dt?Gn.fromSaved(ve,dt,Ze):new Gn(ve,Vr(ve.mode),Ze);return ve.iter(Ze,le,function(Ct){Qn(re,Ct.text,Tt);var Wt=Tt.line;Ct.stateAfter=Wt==le-1||Wt%5==0||Wt>=xe.viewFrom&&Wt<xe.viewTo?Tt.save():null,Tt.nextLine()}),ye&&(ve.modeFrontier=Tt.line),Tt}function Qn(re,le,ye,ve){var xe=re.doc.mode,Ze=new dr(le,re.options.tabSize,ye);for(Ze.start=Ze.pos=ve||0,le==""&&zr(xe,ye.state);!Ze.eol();)si(xe,Ze,ye.state),Ze.start=Ze.pos}function zr(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 si(re,le,ye,ve){for(var xe=0;xe<10;xe++){ve&&(ve[0]=Yr(re,ye).mode);var Ze=re.token(le,ye);if(le.pos>le.start)return Ze}throw new Error("Mode "+re.name+" failed to advance stream.")}var di=function(re,le,ye){this.start=re.start,this.end=re.pos,this.string=re.current(),this.type=le||null,this.state=ye};function ti(re,le,ye,ve){var xe=re.doc,Ze=xe.mode,dt;le=zn(xe,le);var Tt=Gr(xe,le.line),Ct=ji(re,le.line,ye),Wt=new dr(Tt.text,re.options.tabSize,Ct),Kn;for(ve&&(Kn=[]);(ve||Wt.pos<le.ch)&&!Wt.eol();)Wt.start=Wt.pos,dt=si(Ze,Wt,Ct.state),ve&&Kn.push(new di(Wt,dt,Kr(xe.mode,Ct.state)));return ve?Kn:new di(Wt,dt,Ct.state)}function ki(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 Bi(re,le,ye,ve,xe,Ze,dt){var Tt=ye.flattenSpans;Tt==null&&(Tt=re.options.flattenSpans);var Ct=0,Wt=null,Kn=new dr(le,re.options.tabSize,ve),rn,wr=re.options.addModeClass&&[null];for(le==""&&ki(zr(ye,ve.state),Ze);!Kn.eol();){if(Kn.pos>re.options.maxHighlightLength?(Tt=!1,dt&&Qn(re,le,ve,Kn.pos),Kn.pos=le.length,rn=null):rn=ki(si(ye,Kn,ve.state,wr),Ze),wr){var mr=wr[0].name;mr&&(rn="m-"+(rn?mr+" "+rn:mr))}if(!Tt||Wt!=rn){for(;Ct<Kn.start;)Ct=Math.min(Kn.start,Ct+5e3),xe(Ct,Wt);Wt=rn}Kn.start=Kn.pos}for(;Ct<Kn.pos;){var yi=Math.min(Kn.pos,Ct+5e3);xe(yi,Wt),Ct=yi}}function Zi(re,le,ye){for(var ve,xe,Ze=re.doc,dt=ye?-1:le-(re.doc.mode.innerMode?1e3:100),Tt=le;Tt>dt;--Tt){if(Tt<=Ze.first)return Ze.first;var Ct=Gr(Ze,Tt-1),Wt=Ct.stateAfter;if(Wt&&(!ye||Tt+(Wt instanceof ci?Wt.lookAhead:0)<=Ze.modeFrontier))return Tt;var Kn=bt(Ct.text,null,re.options.tabSize);(xe==null||ve>Kn)&&(xe=Tt-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=Gr(re,ve).stateAfter;if(xe&&(!(xe instanceof ci)||ve+xe.lookAhead<le)){ye=ve+1;break}}re.highlightFrontier=Math.min(re.highlightFrontier,ye)}}var Vi=!1,er=!1;function _i(){Vi=!0}function ar(){er=!0}function Ei(re,le,ye){this.marker=re,this.from=le,this.to=ye}function Gi(re,le){if(re)for(var ye=0;ye<re.length;++ye){var ve=re[ye];if(ve.marker==le)return ve}}function Ui(re,le){for(var ye,ve=0;ve<re.length;++ve)re[ve]!=le&&(ye||(ye=[])).push(re[ve]);return ye}function po(re,le){re.markedSpans=re.markedSpans?re.markedSpans.concat([le]):[le],le.marker.attachLine(re)}function ho(re,le,ye){var ve;if(re)for(var xe=0;xe<re.length;++xe){var Ze=re[xe],dt=Ze.marker,Tt=Ze.from==null||(dt.inclusiveLeft?Ze.from<=le:Ze.from<le);if(Tt||Ze.from==le&&dt.type=="bookmark"&&(!ye||!Ze.marker.insertLeft)){var Ct=Ze.to==null||(dt.inclusiveRight?Ze.to>=le:Ze.to>le);(ve||(ve=[])).push(new Ei(dt,Ze.from,Ct?null:Ze.to))}}return ve}function Qi(re,le,ye){var ve;if(re)for(var xe=0;xe<re.length;++xe){var Ze=re[xe],dt=Ze.marker,Tt=Ze.to==null||(dt.inclusiveRight?Ze.to>=le:Ze.to>le);if(Tt||Ze.from==le&&dt.type=="bookmark"&&(!ye||Ze.marker.insertLeft)){var Ct=Ze.from==null||(dt.inclusiveLeft?Ze.from<=le:Ze.from<le);(ve||(ve=[])).push(new Ei(dt,Ct?null:Ze.from-le,Ze.to==null?null:Ze.to-le))}}return ve}function Ro(re,le){if(le.full)return null;var ye=br(re,le.from.line)&&Gr(re,le.from.line).markedSpans,ve=br(re,le.to.line)&&Gr(re,le.to.line).markedSpans;if(!ye&&!ve)return null;var xe=le.from.ch,Ze=le.to.ch,dt=fr(le.from,le.to)==0,Tt=ho(ye,xe,dt),Ct=Qi(ve,Ze,dt),Wt=le.text.length==1,Kn=Mt(le.text).length+(Wt?xe:0);if(Tt)for(var rn=0;rn<Tt.length;++rn){var wr=Tt[rn];if(wr.to==null){var mr=Gi(Ct,wr.marker);mr?Wt&&(wr.to=mr.to==null?null:mr.to+Kn):wr.to=xe}}if(Ct)for(var yi=0;yi<Ct.length;++yi){var wi=Ct[yi];if(wi.to!=null&&(wi.to+=Kn),wi.from==null){var Di=Gi(Tt,wi.marker);Di||(wi.from=Kn,Wt&&(Tt||(Tt=[])).push(wi))}else wi.from+=Kn,Wt&&(Tt||(Tt=[])).push(wi)}Tt&&(Tt=Fn(Tt)),Ct&&Ct!=Tt&&(Ct=Fn(Ct));var $i=[Tt];if(!Wt){var xo=le.text.length-2,lo;if(xo>0&&Tt)for(var No=0;No<Tt.length;++No)Tt[No].to==null&&(lo||(lo=[])).push(new Ei(Tt[No].marker,null,null));for(var Jo=0;Jo<xo;++Jo)$i.push(lo);$i.push(Ct)}return $i}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 pr(re,le,ye){var ve=null;if(re.iter(le.line,ye.line+1,function(mr){if(mr.markedSpans)for(var yi=0;yi<mr.markedSpans.length;++yi){var wi=mr.markedSpans[yi].marker;wi.readOnly&&(!ve||ct(ve,wi)==-1)&&(ve||(ve=[])).push(wi)}}),!ve)return null;for(var xe=[{from:le,to:ye}],Ze=0;Ze<ve.length;++Ze)for(var dt=ve[Ze],Tt=dt.find(0),Ct=0;Ct<xe.length;++Ct){var Wt=xe[Ct];if(!(fr(Wt.to,Tt.from)<0||fr(Wt.from,Tt.to)>0)){var Kn=[Ct,1],rn=fr(Wt.from,Tt.from),wr=fr(Wt.to,Tt.to);(rn<0||!dt.inclusiveLeft&&!rn)&&Kn.push({from:Wt.from,to:Tt.from}),(wr>0||!dt.inclusiveRight&&!wr)&&Kn.push({from:Tt.to,to:Wt.to}),xe.splice.apply(xe,Kn),Ct+=Kn.length-3}}return xe}function Ln(re){var le=re.markedSpans;if(le){for(var ye=0;ye<le.length;++ye)le[ye].marker.detachLine(re);re.markedSpans=null}}function rt(re,le){if(le){for(var ye=0;ye<le.length;++ye)le[ye].marker.attachLine(re);re.markedSpans=le}}function Hr(re){return re.inclusiveLeft?-1:0}function _r(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(),Ze=fr(ve.from,xe.from)||Hr(re)-Hr(le);if(Ze)return-Ze;var dt=fr(ve.to,xe.to)||_r(re)-_r(le);return dt||le.id-re.id}function hi(re,le){var ye=er&&re.markedSpans,ve;if(ye)for(var xe=void 0,Ze=0;Ze<ye.length;++Ze)xe=ye[Ze],xe.marker.collapsed&&(le?xe.from:xe.to)==null&&(!ve||pi(ve,xe.marker)<0)&&(ve=xe.marker);return ve}function ri(re){return hi(re,!0)}function yr(re){return hi(re,!1)}function ht(re,le){var ye=er&&re.markedSpans,ve;if(ye)for(var xe=0;xe<ye.length;++xe){var Ze=ye[xe];Ze.marker.collapsed&&(Ze.from==null||Ze.from<le)&&(Ze.to==null||Ze.to>le)&&(!ve||pi(ve,Ze.marker)<0)&&(ve=Ze.marker)}return ve}function xn(re,le,ye,ve,xe){var Ze=Gr(re,le),dt=er&&Ze.markedSpans;if(dt)for(var Tt=0;Tt<dt.length;++Tt){var Ct=dt[Tt];if(Ct.marker.collapsed){var Wt=Ct.marker.find(0),Kn=fr(Wt.from,ye)||Hr(Ct.marker)-Hr(xe),rn=fr(Wt.to,ve)||_r(Ct.marker)-_r(xe);if(!(Kn>=0&&rn<=0||Kn<=0&&rn>=0)&&(Kn<=0&&(Ct.marker.inclusiveRight&&xe.inclusiveLeft?fr(Wt.to,ye)>=0:fr(Wt.to,ye)>0)||Kn>=0&&(Ct.marker.inclusiveRight&&xe.inclusiveLeft?fr(Wt.from,ve)<=0:fr(Wt.from,ve)<0)))return!0}}}function wn(re){for(var le;le=ri(re);)re=le.find(-1,!0).line;return re}function jn(re){for(var le;le=yr(re);)re=le.find(1,!0).line;return re}function On(re){for(var le,ye;le=yr(re);)re=le.find(1,!0).line,(ye||(ye=[])).push(re);return ye}function sr(re,le){var ye=Gr(re,le),ve=wn(ye);return ye==ve?le:xt(ve)}function Un(re,le){if(le>re.lastLine())return le;var ye=Gr(re,le),ve;if(!ln(re,ye))return le;for(;ve=yr(ye);)ye=ve.find(1,!0).line;return xt(ye)+1}function ln(re,le){var ye=er&&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&&qn(re,le,ve))return!0}}}function qn(re,le,ye){if(ye.to==null){var ve=ye.marker.find(1,!0);return qn(re,ve.line,Gi(ve.line.markedSpans,ye.marker))}if(ye.marker.inclusiveRight&&ye.to==le.text.length)return!0;for(var xe=void 0,Ze=0;Ze<le.markedSpans.length;++Ze)if(xe=le.markedSpans[Ze],xe.marker.collapsed&&!xe.marker.widgetNode&&xe.from==ye.to&&(xe.to==null||xe.to!=ye.from)&&(xe.marker.inclusiveLeft||ye.marker.inclusiveRight)&&qn(re,le,xe))return!0}function Ur(re){re=wn(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 Ze=ye.parent;Ze;ye=Ze,Ze=ye.parent)for(var dt=0;dt<Ze.children.length;++dt){var Tt=Ze.children[dt];if(Tt==ye)break;le+=Tt.height}return le}function Ni(re){if(re.height==0)return 0;for(var le=re.text.length,ye,ve=re;ye=ri(ve);){var xe=ye.find(0,!0);ve=xe.from.line,le+=xe.from.ch-xe.to.ch}for(ve=re;ye=yr(ve);){var Ze=ye.find(0,!0);le-=ve.text.length-Ze.from.ch,ve=Ze.to.line,le+=ve.text.length-Ze.to.ch}return le}function ai(re){var le=re.display,ye=re.doc;le.maxLine=Gr(ye,ye.first),le.maxLineLength=Ni(le.maxLine),le.maxLineChanged=!0,ye.iter(function(ve){var xe=Ni(ve);xe>le.maxLineLength&&(le.maxLineLength=xe,le.maxLine=ve)})}var Si=function(re,le,ye){this.text=re,rt(this,le),this.height=ye?ye(this):1};Si.prototype.lineNo=function(){return xt(this)},gt(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),Ln(re),rt(re,ye);var xe=ve?ve(re):1;xe!=re.height&&Oi(re,xe)}function Ri(re){re.parent=null,Ln(re)}var co={},mo={};function zo(re,le){if(!re||/^\s*$/.test(re))return null;var ye=le.addModeClass?mo:co;return ye[re]||(ye[re]=re.replace(/\S+/g,"cm-$&"))}function kn(re,le){var ye=mt("span",null,null,Ge?"padding-right: .1px":null),ve={pre:mt("pre",[ye],"CodeMirror-line"),content:ye,col:0,pos:0,cm:re,trailingSpace:!1,splitSpaces:re.getOption("lineWrapping")};le.measure={};for(var xe=0;xe<=(le.rest?le.rest.length:0);xe++){var Ze=xe?le.rest[xe-1]:le.line,dt=void 0;ve.pos=0,ve.addToken=wo,Wr(re.display.measure)&&(dt=Sn(Ze,re.doc.direction))&&(ve.addToken=so(ve.addToken,dt)),ve.map=[];var Tt=le!=re.display.externalMeasured&&xt(Ze);Xo(Ze,ve,Ci(re,Ze,Tt)),Ze.styleClasses&&(Ze.styleClasses.bgClass&&(ve.bgClass=Ht(Ze.styleClasses.bgClass,ve.bgClass||"")),Ze.styleClasses.textClass&&(ve.textClass=Ht(Ze.styleClasses.textClass,ve.textClass||""))),ve.map.length==0&&ve.map.push(0,0,ve.content.appendChild(Jr(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 Ct=ve.content.lastChild;(/\bcm-tab\b/.test(Ct.className)||Ct.querySelector&&Ct.querySelector(".cm-tab"))&&(ve.content.className="cm-tab-wrap-hack")}return tn(re,"renderLine",re,le.line,ve.pre),ve.pre.className&&(ve.textClass=Ht(ve.pre.className,ve.textClass||"")),ve}function bo(re){var le=ot("span","\u2022","cm-invalidchar");return le.title="\\u"+re.charCodeAt(0).toString(16),le.setAttribute("aria-label",le.title),le}function wo(re,le,ye,ve,xe,Ze,dt){if(le){var Tt=re.splitSpaces?Wi(le,re.trailingSpace):le,Ct=re.cm.state.specialChars,Wt=!1,Kn;if(!Ct.test(le))re.col+=le.length,Kn=document.createTextNode(Tt),re.map.push(re.pos,re.pos+le.length,Kn),Ve&&Te<9&&(Wt=!0),re.pos+=le.length;else{Kn=document.createDocumentFragment();for(var rn=0;;){Ct.lastIndex=rn;var wr=Ct.exec(le),mr=wr?wr.index-rn:le.length-rn;if(mr){var yi=document.createTextNode(Tt.slice(rn,rn+mr));Ve&&Te<9?Kn.appendChild(ot("span",[yi])):Kn.appendChild(yi),re.map.push(re.pos,re.pos+mr,yi),re.col+=mr,re.pos+=mr}if(!wr)break;rn+=mr+1;var wi=void 0;if(wr[0]==" "){var Di=re.cm.options.tabSize,$i=Di-re.col%Di;wi=Kn.appendChild(ot("span",Bn($i),"cm-tab")),wi.setAttribute("role","presentation"),wi.setAttribute("cm-text"," "),re.col+=$i}else wr[0]=="\r"||wr[0]==`
`?(wi=Kn.appendChild(ot("span",wr[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),wi.setAttribute("cm-text",wr[0]),re.col+=1):(wi=re.cm.options.specialCharPlaceholder(wr[0]),wi.setAttribute("cm-text",wr[0]),Ve&&Te<9?Kn.appendChild(ot("span",[wi])):Kn.appendChild(wi),re.col+=1);re.map.push(re.pos,re.pos+1,wi),re.pos++}}if(re.trailingSpace=Tt.charCodeAt(le.length-1)==32,ye||ve||xe||Wt||Ze||dt){var xo=ye||"";ve&&(xo+=ve),xe&&(xo+=xe);var lo=ot("span",[Kn],xo,Ze);if(dt)for(var No in dt)dt.hasOwnProperty(No)&&No!="style"&&No!="class"&&lo.setAttribute(No,dt[No]);return re.content.appendChild(lo)}re.content.appendChild(Kn)}}function Wi(re,le){if(re.length>1&&!/ /.test(re))return re;for(var ye=le,ve="",xe=0;xe<re.length;xe++){var Ze=re.charAt(xe);Ze==" "&&ye&&(xe==re.length-1||re.charCodeAt(xe+1)==32)&&(Ze="\xA0"),ve+=Ze,ye=Ze==" "}return ve}function so(re,le){return function(ye,ve,xe,Ze,dt,Tt,Ct){xe=xe?xe+" cm-force-border":"cm-force-border";for(var Wt=ye.pos,Kn=Wt+ve.length;;){for(var rn=void 0,wr=0;wr<le.length&&(rn=le[wr],!(rn.to>Wt&&rn.from<=Wt));wr++);if(rn.to>=Kn)return re(ye,ve,xe,Ze,dt,Tt,Ct);re(ye,ve.slice(0,rn.to-Wt),xe,Ze,null,Tt,Ct),Ze=null,ve=ve.slice(rn.to-Wt),Wt=rn.to}}}function ro(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 Xo(re,le,ye){var ve=re.markedSpans,xe=re.text,Ze=0;if(!ve){for(var dt=1;dt<ye.length;dt+=2)le.addToken(le,xe.slice(Ze,Ze=ye[dt]),zo(ye[dt+1],le.cm.options));return}for(var Tt=xe.length,Ct=0,Wt=1,Kn="",rn,wr,mr=0,yi,wi,Di,$i,xo;;){if(mr==Ct){yi=wi=Di=wr="",xo=null,$i=null,mr=1/0;for(var lo=[],No=void 0,Jo=0;Jo<ve.length;++Jo){var uo=ve[Jo],ya=uo.marker;if(ya.type=="bookmark"&&uo.from==Ct&&ya.widgetNode)lo.push(ya);else if(uo.from<=Ct&&(uo.to==null||uo.to>Ct||ya.collapsed&&uo.to==Ct&&uo.from==Ct)){if(uo.to!=null&&uo.to!=Ct&&mr>uo.to&&(mr=uo.to,wi=""),ya.className&&(yi+=" "+ya.className),ya.css&&(wr=(wr?wr+";":"")+ya.css),ya.startStyle&&uo.from==Ct&&(Di+=" "+ya.startStyle),ya.endStyle&&uo.to==mr&&(No||(No=[])).push(ya.endStyle,uo.to),ya.title&&((xo||(xo={})).title=ya.title),ya.attributes)for(var bs in ya.attributes)(xo||(xo={}))[bs]=ya.attributes[bs];ya.collapsed&&(!$i||pi($i.marker,ya)<0)&&($i=uo)}else uo.from>Ct&&mr>uo.from&&(mr=uo.from)}if(No)for(var Al=0;Al<No.length;Al+=2)No[Al+1]==mr&&(wi+=" "+No[Al]);if(!$i||$i.from==Ct)for(var Ms=0;Ms<lo.length;++Ms)ro(le,0,lo[Ms]);if($i&&($i.from||0)==Ct){if(ro(le,($i.to==null?Tt+1:$i.to)-Ct,$i.marker,$i.from==null),$i.to==null)return;$i.to==Ct&&($i=!1)}}if(Ct>=Tt)break;for(var Nu=Math.min(Tt,mr);;){if(Kn){var ql=Ct+Kn.length;if(!$i){var yl=ql>Nu?Kn.slice(0,Nu-Ct):Kn;le.addToken(le,yl,rn?rn+yi:yi,Di,Ct+yl.length==mr?wi:"",wr,xo)}if(ql>=Nu){Kn=Kn.slice(Nu-Ct),Ct=Nu;break}Ct=ql,Di=""}Kn=xe.slice(Ze,Ze=ye[Wt++]),rn=zo(ye[Wt++],le.cm.options)}}}function Vn(re,le,ye){this.line=le,this.rest=On(le),this.size=this.rest?xt(Mt(this.rest))-ye+1:1,this.node=this.text=null,this.hidden=ln(re,le)}function yo(re,le,ye){for(var ve=[],xe,Ze=le;Ze<ye;Ze=xe){var dt=new Vn(re.doc,Gr(re.doc,Ze),Ze);xe=Ze+dt.size,ve.push(dt)}return ve}var ia=null;function ws(re){ia?ia.ops.push(re):re.ownsGroup=ia={ops:[re],delayedCallbacks:[]}}function Ba(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 xl(re,le){var ye=re.ownsGroup;if(ye)try{Ba(ye)}finally{ia=null,le(ye)}}var Cs=null;function Xi(re,le){var ye=Pn(re,le);if(ye.length){var ve=Array.prototype.slice.call(arguments,2),xe;ia?xe=ia.delayedCallbacks:Cs?xe=Cs:(xe=Cs=[],setTimeout(Ia,0));for(var Ze=function(Tt){xe.push(function(){return ye[Tt].apply(null,ve)})},dt=0;dt<ye.length;++dt)Ze(dt)}}function Ia(){var re=Cs;Cs=null;for(var le=0;le<re.length;++le)re[le]()}function _a(re,le,ye,ve){for(var xe=0;xe<le.changes.length;xe++){var Ze=le.changes[xe];Ze=="text"?fi(re,le):Ze=="gutter"?fo(re,le,ye,ve):Ze=="class"?Ji(re,le):Ze=="widget"&&Mo(re,le,ve)}le.changes=null}function ds(re){return re.node==re.text&&(re.node=ot("div",null,null,"position: relative"),re.text.parentNode&&re.text.parentNode.replaceChild(re.node,re.text),re.node.appendChild(re.text),Ve&&Te<8&&(re.node.style.zIndex=2)),re.node}function La(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=ds(le);le.background=ve.insertBefore(ot("div",null,ye),ve.firstChild),re.display.input.setUneditable(le.background)}}function Za(re,le){var ye=re.display.externalMeasured;return ye&&ye.line==le.line?(re.display.externalMeasured=null,le.measure=ye.measure,ye.built):kn(re,le)}function fi(re,le){var ye=le.text.className,ve=Za(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,Ji(re,le)):ye&&(le.text.className=ye)}function Ji(re,le){La(re,le),le.line.wrapClass?ds(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 fo(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=ds(le);le.gutterBackground=ot("div",null,"CodeMirror-gutter-background "+le.line.gutterClass,"left: "+(re.options.fixedGutter?ve.fixedPos:-ve.gutterTotalWidth)+"px; width: "+ve.gutterTotalWidth+"px"),re.display.input.setUneditable(le.gutterBackground),xe.insertBefore(le.gutterBackground,le.text)}var Ze=le.line.gutterMarkers;if(re.options.lineNumbers||Ze){var dt=ds(le),Tt=le.gutter=ot("div",null,"CodeMirror-gutter-wrapper","left: "+(re.options.fixedGutter?ve.fixedPos:-ve.gutterTotalWidth)+"px");if(re.display.input.setUneditable(Tt),dt.insertBefore(Tt,le.text),le.line.gutterClass&&(Tt.className+=" "+le.line.gutterClass),re.options.lineNumbers&&(!Ze||!Ze["CodeMirror-linenumbers"])&&(le.lineNumber=Tt.appendChild(ot("div",Br(re.options,ye),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ve.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+re.display.lineNumInnerWidth+"px"))),Ze)for(var Ct=0;Ct<re.display.gutterSpecs.length;++Ct){var Wt=re.display.gutterSpecs[Ct].className,Kn=Ze.hasOwnProperty(Wt)&&Ze[Wt];Kn&&Tt.appendChild(ot("div",[Kn],"CodeMirror-gutter-elt","left: "+ve.gutterLeft[Wt]+"px; width: "+ve.gutterWidth[Wt]+"px"))}}}function Mo(re,le,ye){le.alignable&&(le.alignable=null);for(var ve=De("CodeMirror-linewidget"),xe=le.node.firstChild,Ze=void 0;xe;xe=Ze)Ze=xe.nextSibling,ve.test(xe.className)&&le.node.removeChild(xe);ua(re,le,ye)}function Oo(re,le,ye,ve){var xe=Za(re,le);return le.text=le.node=xe.pre,xe.bgClass&&(le.bgClass=xe.bgClass),xe.textClass&&(le.textClass=xe.textClass),Ji(re,le),fo(re,le,ye,ve),ua(re,le,ve),le.node}function ua(re,le,ye){if(qi(re,le.line,le,ye,!0),le.rest)for(var ve=0;ve<le.rest.length;ve++)qi(re,le.rest[ve],le,ye,!1)}function qi(re,le,ye,ve,xe){if(le.widgets)for(var Ze=ds(ye),dt=0,Tt=le.widgets;dt<Tt.length;++dt){var Ct=Tt[dt],Wt=ot("div",[Ct.node],"CodeMirror-linewidget"+(Ct.className?" "+Ct.className:""));Ct.handleMouseEvents||Wt.setAttribute("cm-ignore-events","true"),ps(Ct,Wt,ye,ve),re.display.input.setUneditable(Wt),xe&&Ct.above?Ze.insertBefore(Wt,ye.gutter||ye.text):Ze.appendChild(Wt),Xi(Ct,"redraw")}}function ps(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 Ga(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;"),Je(le.display.measure,ot("div",[re.node],null,ye))}return re.height=re.node.parentNode.offsetHeight}function ca(re,le){for(var ye=$r(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 Uo(re){return re.lineSpace.offsetTop}function da(re){return re.mover.offsetHeight-re.lineSpace.offsetHeight}function Us(re){if(re.cachedPaddingH)return re.cachedPaddingH;var le=Je(re.measure,ot("pre","x","CodeMirror-line-like")),ye=window.getComputedStyle?window.getComputedStyle(le):le.currentStyle,ve={left:parseInt(ye.paddingLeft),right:parseInt(ye.paddingRight)};return!isNaN(ve.left)&&!isNaN(ve.right)&&(re.cachedPaddingH=ve),ve}function ba(re){return Jt-re.display.nativeBarWidth}function hs(re){return re.display.scroller.clientWidth-ba(re)-re.display.barWidth}function dl(re){return re.display.scroller.clientHeight-ba(re)-re.display.barHeight}function js(re,le,ye){var ve=re.options.lineWrapping,xe=ve&&hs(re);if(!le.measure.heights||ve&&le.measure.width!=xe){var Ze=le.measure.heights=[];if(ve){le.measure.width=xe;for(var dt=le.text.firstChild.getClientRects(),Tt=0;Tt<dt.length-1;Tt++){var Ct=dt[Tt],Wt=dt[Tt+1];Math.abs(Ct.bottom-Wt.bottom)>2&&Ze.push((Ct.bottom+Wt.top)/2-ye.top)}}Ze.push(ye.bottom-ye.top)}}function Ka(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(xt(re.rest[xe])>ye)return{map:re.measure.maps[xe],cache:re.measure.caches[xe],before:!0}}function Zl(re,le){le=wn(le);var ye=xt(le),ve=re.display.externalMeasured=new Vn(re.doc,le,ye);ve.lineN=ye;var xe=ve.built=kn(re,ve);return ve.text=xe.pre,Je(re.display.lineMeasure,xe.pre),ve}function ac(re,le,ye,ve){return fl(re,as(re,le),ye,ve)}function hl(re,le){if(le>=re.display.viewFrom&&le<re.display.viewTo)return re.display.view[Zs(re,le)];var ye=re.display.externalMeasured;if(ye&&le>=ye.lineN&&le<ye.lineN+ye.size)return ye}function as(re,le){var ye=xt(le),ve=hl(re,ye);ve&&!ve.text?ve=null:ve&&ve.changes&&(_a(re,ve,ye,Ol(re)),re.curOp.forceUpdate=!0),ve||(ve=Zl(re,le));var xe=Ka(ve,le,ye);return{line:le,view:ve,rect:null,map:xe.map,cache:xe.cache,before:xe.before,hasHeights:!1}}function fl(re,le,ye,ve,xe){le.before&&(ye=-1);var Ze=ye+(ve||""),dt;return le.cache.hasOwnProperty(Ze)?dt=le.cache[Ze]:(le.rect||(le.rect=le.view.text.getBoundingClientRect()),le.hasHeights||(js(re,le.view,le.rect),le.hasHeights=!0),dt=ts(re,le,ye,ve),dt.bogus||(le.cache[Ze]=dt)),{left:dt.left,right:dt.right,top:xe?dt.rtop:dt.top,bottom:xe?dt.rbottom:dt.bottom}}var xu={left:0,right:0,top:0,bottom:0};function Kl(re,le,ye){for(var ve,xe,Ze,dt,Tt,Ct,Wt=0;Wt<re.length;Wt+=3)if(Tt=re[Wt],Ct=re[Wt+1],le<Tt?(xe=0,Ze=1,dt="left"):le<Ct?(xe=le-Tt,Ze=xe+1):(Wt==re.length-3||le==Ct&&re[Wt+3]>le)&&(Ze=Ct-Tt,xe=Ze-1,le>=Ct&&(dt="right")),xe!=null){if(ve=re[Wt+2],Tt==Ct&&ye==(ve.insertLeft?"left":"right")&&(dt=ye),ye=="left"&&xe==0)for(;Wt&&re[Wt-2]==re[Wt-3]&&re[Wt-1].insertLeft;)ve=re[(Wt-=3)+2],dt="left";if(ye=="right"&&xe==Ct-Tt)for(;Wt<re.length-3&&re[Wt+3]==re[Wt+4]&&!re[Wt+5].insertLeft;)ve=re[(Wt+=3)+2],dt="right";break}return{node:ve,start:xe,end:Ze,collapse:dt,coverStart:Tt,coverEnd:Ct}}function sc(re,le){var ye=xu;if(le=="left")for(var ve=0;ve<re.length&&(ye=re[ve]).left==ye.right;ve++);else for(var xe=re.length-1;xe>=0&&(ye=re[xe]).left==ye.right;xe--);return ye}function ts(re,le,ye,ve){var xe=Kl(le.map,ye,ve),Ze=xe.node,dt=xe.start,Tt=xe.end,Ct=xe.collapse,Wt;if(Ze.nodeType==3){for(var Kn=0;Kn<4;Kn++){for(;dt&&En(le.line.text.charAt(xe.coverStart+dt));)--dt;for(;xe.coverStart+Tt<xe.coverEnd&&En(le.line.text.charAt(xe.coverStart+Tt));)++Tt;if(Ve&&Te<9&&dt==0&&Tt==xe.coverEnd-xe.coverStart?Wt=Ze.parentNode.getBoundingClientRect():Wt=sc(it(Ze,dt,Tt).getClientRects(),ve),Wt.left||Wt.right||dt==0)break;Tt=dt,dt=dt-1,Ct="right"}Ve&&Te<11&&(Wt=lc(re.display.measure,Wt))}else{dt>0&&(Ct=ve="right");var rn;re.options.lineWrapping&&(rn=Ze.getClientRects()).length>1?Wt=rn[ve=="right"?rn.length-1:0]:Wt=Ze.getBoundingClientRect()}if(Ve&&Te<9&&!dt&&(!Wt||!Wt.left&&!Wt.right)){var wr=Ze.parentNode.getClientRects()[0];wr?Wt={left:wr.left,right:wr.left+Xs(re.display),top:wr.top,bottom:wr.bottom}:Wt=xu}for(var mr=Wt.top-le.rect.top,yi=Wt.bottom-le.rect.top,wi=(mr+yi)/2,Di=le.view.measure.heights,$i=0;$i<Di.length-1&&!(wi<Di[$i]);$i++);var xo=$i?Di[$i-1]:0,lo=Di[$i],No={left:(Ct=="right"?Wt.right:Wt.left)-le.rect.left,right:(Ct=="left"?Wt.left:Wt.right)-le.rect.left,top:xo,bottom:lo};return!Wt.left&&!Wt.right&&(No.bogus=!0),re.options.singleCursorHeightPerLine||(No.rtop=mr,No.rbottom=yi),No}function lc(re,le){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!or(re))return le;var ye=screen.logicalXDPI/screen.deviceXDPI,ve=screen.logicalYDPI/screen.deviceYDPI;return{left:le.left*ye,right:le.right*ye,top:le.top*ve,bottom:le.bottom*ve}}function bc(re){if(re.measure&&(re.measure.cache={},re.measure.heights=null,re.rest))for(var le=0;le<re.rest.length;le++)re.measure.caches[le]={}}function wu(re){re.display.externalMeasure=null,nt(re.display.lineMeasure);for(var le=0;le<re.display.view.length;le++)bc(re.display.view[le])}function Yu(re){wu(re),re.display.cachedCharWidth=re.display.cachedTextHeight=re.display.cachedPaddingH=null,re.options.lineWrapping||(re.display.maxLineChanged=!0),re.display.lineNumChars=null}function ks(){return Ke&&te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Vs(){return Ke&&te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function gs(re){var le=0;if(re.widgets)for(var ye=0;ye<re.widgets.length;++ye)re.widgets[ye].above&&(le+=Ga(re.widgets[ye]));return le}function Is(re,le,ye,ve,xe){if(!xe){var Ze=gs(le);ye.top+=Ze,ye.bottom+=Ze}if(ve=="line")return ye;ve||(ve="local");var dt=Ur(le);if(ve=="local"?dt+=Uo(re.display):dt-=re.display.viewOffset,ve=="page"||ve=="window"){var Tt=re.display.lineSpace.getBoundingClientRect();dt+=Tt.top+(ve=="window"?0:Vs());var Ct=Tt.left+(ve=="window"?0:ks());ye.left+=Ct,ye.right+=Ct}return ye.top+=dt,ye.bottom+=dt,ye}function Bu(re,le,ye){if(ye=="div")return le;var ve=le.left,xe=le.top;if(ye=="page")ve-=ks(),xe-=Vs();else if(ye=="local"||!ye){var Ze=re.display.sizer.getBoundingClientRect();ve+=Ze.left,xe+=Ze.top}var dt=re.display.lineSpace.getBoundingClientRect();return{left:ve-dt.left,top:xe-dt.top}}function Ws(re,le,ye,ve,xe){return ve||(ve=Gr(re.doc,le.line)),Is(re,ve,ac(re,ve,le.ch,xe),ye)}function Sa(re,le,ye,ve,xe,Ze){ve=ve||Gr(re.doc,le.line),xe||(xe=as(re,ve));function dt(yi,wi){var Di=fl(re,xe,yi,wi?"right":"left",Ze);return wi?Di.left=Di.right:Di.right=Di.left,Is(re,ve,Di,ye)}var Tt=Sn(ve,re.doc.direction),Ct=le.ch,Wt=le.sticky;if(Ct>=ve.text.length?(Ct=ve.text.length,Wt="before"):Ct<=0&&(Ct=0,Wt="after"),!Tt)return dt(Wt=="before"?Ct-1:Ct,Wt=="before");function Kn(yi,wi,Di){var $i=Tt[wi],xo=$i.level==1;return dt(Di?yi-1:yi,xo!=Di)}var rn=jt(Tt,Ct,Wt),wr=_t,mr=Kn(Ct,rn,Wt=="before");return wr!=null&&(mr.other=Kn(Ct,wr,Wt!="before")),mr}function pa(re,le){var ye=0;le=zn(re.doc,le),re.options.lineWrapping||(ye=Xs(re.display)*le.ch);var ve=Gr(re.doc,le.line),xe=Ur(ve)+Uo(re.display);return{left:ye,right:ye,top:xe,bottom:xe+ve.height}}function na(re,le,ye,ve,xe){var Ze=Xt(re,le,ye);return Ze.xRel=xe,ve&&(Ze.outside=ve),Ze}function Ya(re,le,ye){var ve=re.doc;if(ye+=re.display.viewOffset,ye<0)return na(ve.first,0,null,-1,-1);var xe=on(ve,ye),Ze=ve.first+ve.size-1;if(xe>Ze)return na(ve.first+ve.size-1,Gr(ve,Ze).text.length,null,1,1);le<0&&(le=0);for(var dt=Gr(ve,xe);;){var Tt=Ar(re,dt,xe,le,ye),Ct=ht(dt,Tt.ch+(Tt.xRel>0||Tt.outside>0?1:0));if(!Ct)return Tt;var Wt=Ct.find(1);if(Wt.line==xe)return Wt;dt=Gr(ve,xe=Wt.line)}}function Mi(re,le,ye,ve){ve-=gs(le);var xe=le.text.length,Ze=Mn(function(dt){return fl(re,ye,dt-1).bottom<=ve},xe,0);return xe=Mn(function(dt){return fl(re,ye,dt).top>ve},Ze,xe),{begin:Ze,end:xe}}function ms(re,le,ye,ve){ye||(ye=as(re,le));var xe=Is(re,le,fl(re,ye,ve),"line").top;return Mi(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 Ar(re,le,ye,ve,xe){xe-=Ur(le);var Ze=as(re,le),dt=gs(le),Tt=0,Ct=le.text.length,Wt=!0,Kn=Sn(le,re.doc.direction);if(Kn){var rn=(re.options.lineWrapping?su:Ml)(re,le,ye,Ze,Kn,ve,xe);Wt=rn.level!=1,Tt=Wt?rn.from:rn.to-1,Ct=Wt?rn.to:rn.from-1}var wr=null,mr=null,yi=Mn(function(Jo){var uo=fl(re,Ze,Jo);return uo.top+=dt,uo.bottom+=dt,en(uo,ve,xe,!1)?(uo.top<=xe&&uo.left<=ve&&(wr=Jo,mr=uo),!0):!1},Tt,Ct),wi,Di,$i=!1;if(mr){var xo=ve-mr.left<mr.right-ve,lo=xo==Wt;yi=wr+(lo?0:1),Di=lo?"after":"before",wi=xo?mr.left:mr.right}else{!Wt&&(yi==Ct||yi==Tt)&&yi++,Di=yi==0?"after":yi==le.text.length?"before":fl(re,Ze,yi-(Wt?1:0)).bottom+dt<=xe==Wt?"after":"before";var No=Sa(re,Xt(ye,yi,Di),"line",le,Ze);wi=No.left,$i=xe<No.top?-1:xe>=No.bottom?1:0}return yi=sn(le.text,yi,1),na(ye,yi,Di,$i,ve-wi)}function Ml(re,le,ye,ve,xe,Ze,dt){var Tt=Mn(function(rn){var wr=xe[rn],mr=wr.level!=1;return en(Sa(re,Xt(ye,mr?wr.to:wr.from,mr?"before":"after"),"line",le,ve),Ze,dt,!0)},0,xe.length-1),Ct=xe[Tt];if(Tt>0){var Wt=Ct.level!=1,Kn=Sa(re,Xt(ye,Wt?Ct.from:Ct.to,Wt?"after":"before"),"line",le,ve);en(Kn,Ze,dt,!0)&&Kn.top>dt&&(Ct=xe[Tt-1])}return Ct}function su(re,le,ye,ve,xe,Ze,dt){var Tt=Mi(re,le,ve,dt),Ct=Tt.begin,Wt=Tt.end;/\s/.test(le.text.charAt(Wt-1))&&Wt--;for(var Kn=null,rn=null,wr=0;wr<xe.length;wr++){var mr=xe[wr];if(!(mr.from>=Wt||mr.to<=Ct)){var yi=mr.level!=1,wi=fl(re,ve,yi?Math.min(Wt,mr.to)-1:Math.max(Ct,mr.from)).right,Di=wi<Ze?Ze-wi+1e9:wi-Ze;(!Kn||rn>Di)&&(Kn=mr,rn=Di)}}return Kn||(Kn=xe[xe.length-1]),Kn.from<Ct&&(Kn={from:Ct,to:Kn.to,level:Kn.level}),Kn.to>Wt&&(Kn={from:Kn.from,to:Wt,level:Kn.level}),Kn}var ns;function rs(re){if(re.cachedTextHeight!=null)return re.cachedTextHeight;if(ns==null){ns=ot("pre",null,"CodeMirror-line-like");for(var le=0;le<49;++le)ns.appendChild(document.createTextNode("x")),ns.appendChild(ot("br"));ns.appendChild(document.createTextNode("x"))}Je(re.measure,ns);var ye=ns.offsetHeight/50;return ye>3&&(re.cachedTextHeight=ye),nt(re.measure),ye||1}function Xs(re){if(re.cachedCharWidth!=null)return re.cachedCharWidth;var le=ot("span","xxxxxxxxxx"),ye=ot("pre",[le],"CodeMirror-line-like");Je(re.measure,ye);var ve=le.getBoundingClientRect(),xe=(ve.right-ve.left)/10;return xe>2&&(re.cachedCharWidth=xe),xe||10}function Ol(re){for(var le=re.display,ye={},ve={},xe=le.gutters.clientLeft,Ze=le.gutters.firstChild,dt=0;Ze;Ze=Ze.nextSibling,++dt){var Tt=re.display.gutterSpecs[dt].className;ye[Tt]=Ze.offsetLeft+Ze.clientLeft+xe,ve[Tt]=Ze.clientWidth}return{fixedPos:uc(le),gutterTotalWidth:le.gutters.offsetWidth,gutterLeft:ye,gutterWidth:ve,wrapperWidth:le.wrapper.clientWidth}}function uc(re){return re.scroller.getBoundingClientRect().left-re.sizer.getBoundingClientRect().left}function ja(re){var le=rs(re.display),ye=re.options.lineWrapping,ve=ye&&Math.max(5,re.display.scroller.clientWidth/Xs(re.display)-3);return function(xe){if(ln(re.doc,xe))return 0;var Ze=0;if(xe.widgets)for(var dt=0;dt<xe.widgets.length;dt++)xe.widgets[dt].height&&(Ze+=xe.widgets[dt].height);return ye?Ze+(Math.ceil(xe.text.length/ve)||1)*le:Ze+le}}function To(re){var le=re.doc,ye=ja(re);le.iter(function(ve){var xe=ye(ve);xe!=ve.height&&Oi(ve,xe)})}function Ps(re,le,ye,ve){var xe=re.display;if(!ye&&$r(le).getAttribute("cm-not-content")=="true")return null;var Ze,dt,Tt=xe.lineSpace.getBoundingClientRect();try{Ze=le.clientX-Tt.left,dt=le.clientY-Tt.top}catch(rn){return null}var Ct=Ya(re,Ze,dt),Wt;if(ve&&Ct.xRel>0&&(Wt=Gr(re.doc,Ct.line).text).length==Ct.ch){var Kn=bt(Wt,Wt.length,re.options.tabSize)-Wt.length;Ct=Xt(Ct.line,Math.max(0,Math.round((Ze-Us(re.display).left)/Xs(re.display))-Kn))}return Ct}function Zs(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 oa(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)er&&sr(re.doc,le)<xe.viewTo&&Xa(re);else if(ye<=xe.viewFrom)er&&Un(re.doc,ye+ve)>xe.viewFrom?Xa(re):(xe.viewFrom+=ve,xe.viewTo+=ve);else if(le<=xe.viewFrom&&ye>=xe.viewTo)Xa(re);else if(le<=xe.viewFrom){var Ze=pl(re,ye,ye+ve,1);Ze?(xe.view=xe.view.slice(Ze.index),xe.viewFrom=Ze.lineN,xe.viewTo+=ve):Xa(re)}else if(ye>=xe.viewTo){var dt=pl(re,le,le,-1);dt?(xe.view=xe.view.slice(0,dt.index),xe.viewTo=dt.lineN):Xa(re)}else{var Tt=pl(re,le,le,-1),Ct=pl(re,ye,ye+ve,1);Tt&&Ct?(xe.view=xe.view.slice(0,Tt.index).concat(yo(re,Tt.lineN,Ct.lineN)).concat(xe.view.slice(Ct.index)),xe.viewTo+=ve):Xa(re)}var Wt=xe.externalMeasured;Wt&&(ye<Wt.lineN?Wt.lineN+=ve:le<Wt.lineN+Wt.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 Ze=ve.view[Zs(re,le)];if(Ze.node!=null){var dt=Ze.changes||(Ze.changes=[]);ct(dt,ye)==-1&&dt.push(ye)}}}function Xa(re){re.display.viewFrom=re.display.viewTo=re.doc.first,re.display.view=[],re.display.viewOffset=0}function pl(re,le,ye,ve){var xe=Zs(re,le),Ze,dt=re.display.view;if(!er||ye==re.doc.first+re.doc.size)return{index:xe,lineN:ye};for(var Tt=re.display.viewFrom,Ct=0;Ct<xe;Ct++)Tt+=dt[Ct].size;if(Tt!=le){if(ve>0){if(xe==dt.length-1)return null;Ze=Tt+dt[xe].size-le,xe++}else Ze=Tt-le;le+=Ze,ye+=Ze}for(;sr(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 Da(re,le,ye){var ve=re.display,xe=ve.view;xe.length==0||le>=ve.viewTo||ye<=ve.viewFrom?(ve.view=yo(re,le,ye),ve.viewFrom=le):(ve.viewFrom>le?ve.view=yo(re,le,ve.viewFrom).concat(ve.view):ve.viewFrom<le&&(ve.view=ve.view.slice(Zs(re,le))),ve.viewFrom=le,ve.viewTo<ye?ve.view=ve.view.concat(yo(re,ve.viewTo,ye)):ve.viewTo>ye&&(ve.view=ve.view.slice(0,Zs(re,ye)))),ve.viewTo=ye}function wl(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 Ts(re){re.display.input.showSelection(re.display.input.prepareSelection())}function _u(re,le){le===void 0&&(le=!0);for(var ye=re.doc,ve={},xe=ve.cursors=document.createDocumentFragment(),Ze=ve.selection=document.createDocumentFragment(),dt=0;dt<ye.sel.ranges.length;dt++)if(!(!le&&dt==ye.sel.primIndex)){var Tt=ye.sel.ranges[dt];if(!(Tt.from().line>=re.display.viewTo||Tt.to().line<re.display.viewFrom)){var Ct=Tt.empty();(Ct||re.options.showCursorWhenSelecting)&&ga(re,Tt.head,xe),Ct||aa(re,Tt,Ze)}}return ve}function ga(re,le,ye){var ve=Sa(re,le,"div",null,null,!re.options.singleCursorHeightPerLine),xe=ye.appendChild(ot("div","\xA0","CodeMirror-cursor"));if(xe.style.left=ve.left+"px",xe.style.top=ve.top+"px",xe.style.height=Math.max(0,ve.bottom-ve.top)*re.options.cursorHeight+"px",ve.other){var Ze=ye.appendChild(ot("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Ze.style.display="",Ze.style.left=ve.other.left+"px",Ze.style.top=ve.other.top+"px",Ze.style.height=(ve.other.bottom-ve.other.top)*.85+"px"}}function Ds(re,le){return re.top-le.top||re.left-le.left}function aa(re,le,ye){var ve=re.display,xe=re.doc,Ze=document.createDocumentFragment(),dt=Us(re.display),Tt=dt.left,Ct=Math.max(ve.sizerWidth,hs(re)-ve.sizer.offsetLeft)-dt.right,Wt=xe.direction=="ltr";function Kn(lo,No,Jo,uo){No<0&&(No=0),No=Math.round(No),uo=Math.round(uo),Ze.appendChild(ot("div",null,"CodeMirror-selected","position: absolute; left: "+lo+`px;
top: `+No+"px; width: "+(Jo==null?Ct-lo:Jo)+`px;
height: `+(uo-No)+"px"))}function rn(lo,No,Jo){var uo=Gr(xe,lo),ya=uo.text.length,bs,Al;function Ms(yl,Lu){return Ws(re,Xt(lo,yl),"div",uo,Lu)}function Nu(yl,Lu,Hl){var Sl=ms(re,uo,null,yl),Ma=Lu=="ltr"==(Hl=="after")?"left":"right",Os=Hl=="after"?Sl.begin:Sl.end-(/\s/.test(uo.text.charAt(Sl.end-1))?2:1);return Ms(Os,Ma)[Ma]}var ql=Sn(uo,xe.direction);return Dt(ql,No||0,Jo==null?ya:Jo,function(yl,Lu,Hl,Sl){var Ma=Hl=="ltr",Os=Ms(yl,Ma?"left":"right"),Dl=Ms(Lu-1,Ma?"right":"left"),zl=No==null&&yl==0,wc=Jo==null&&Lu==ya,Fs=Sl==0,ec=!ql||Sl==ql.length-1;if(Dl.top-Os.top<=3){var we=(Wt?zl:wc)&&Fs,Le=(Wt?wc:zl)&&ec,je=we?Tt:(Ma?Os:Dl).left,ut=Le?Ct:(Ma?Dl:Os).right;Kn(je,Os.top,ut-je,Os.bottom)}else{var Lt,At,zt,Kt;Ma?(Lt=Wt&&zl&&Fs?Tt:Os.left,At=Wt?Ct:Nu(yl,Hl,"before"),zt=Wt?Tt:Nu(Lu,Hl,"after"),Kt=Wt&&wc&&ec?Ct:Dl.right):(Lt=Wt?Nu(yl,Hl,"before"):Tt,At=!Wt&&zl&&Fs?Ct:Os.right,zt=!Wt&&wc&&ec?Tt:Dl.left,Kt=Wt?Nu(Lu,Hl,"after"):Ct),Kn(Lt,Os.top,At-Lt,Os.bottom),Os.bottom<Dl.top&&Kn(Tt,Os.bottom,null,Dl.top),Kn(zt,Dl.top,Kt-zt,Dl.bottom)}(!bs||Ds(Os,bs)<0)&&(bs=Os),Ds(Dl,bs)<0&&(bs=Dl),(!Al||Ds(Os,Al)<0)&&(Al=Os),Ds(Dl,Al)<0&&(Al=Dl)}),{start:bs,end:Al}}var wr=le.from(),mr=le.to();if(wr.line==mr.line)rn(wr.line,wr.ch,mr.ch);else{var yi=Gr(xe,wr.line),wi=Gr(xe,mr.line),Di=wn(yi)==wn(wi),$i=rn(wr.line,wr.ch,Di?yi.text.length+1:null).end,xo=rn(mr.line,Di?0:null,mr.ch).start;Di&&($i.top<xo.top-2?(Kn($i.right,$i.top,null,$i.bottom),Kn(Tt,xo.top,xo.left,xo.bottom)):Kn($i.right,$i.top,xo.left-$i.right,$i.bottom)),$i.bottom<xo.top&&Kn(Tt,$i.bottom,null,xo.top)}ye.appendChild(Ze)}function Pa(re){if(re.state.focused){var le=re.display;clearInterval(le.blinker);var ye=!0;le.cursorDiv.style.visibility="",re.options.cursorBlinkRate>0?le.blinker=setInterval(function(){re.hasFocus()||cc(re),le.cursorDiv.style.visibility=(ye=!ye)?"":"hidden"},re.options.cursorBlinkRate):re.options.cursorBlinkRate<0&&(le.cursorDiv.style.visibility="hidden")}}function ka(re){re.state.focused||(re.display.input.focus(),ea(re))}function Va(re){re.state.delayingBlurEvent=!0,setTimeout(function(){re.state.delayingBlurEvent&&(re.state.delayingBlurEvent=!1,cc(re))},100)}function ea(re,le){re.state.delayingBlurEvent&&(re.state.delayingBlurEvent=!1),re.options.readOnly!="nocursor"&&(re.state.focused||(tn(re,"focus",re,le),re.state.focused=!0,Nt(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()),Pa(re))}function cc(re,le){re.state.delayingBlurEvent||(re.state.focused&&(tn(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 Eo(re){for(var le=re.display,ye=le.lineDiv.offsetTop,ve=0;ve<le.view.length;ve++){var xe=le.view[ve],Ze=re.options.lineWrapping,dt=void 0,Tt=0;if(!xe.hidden){if(Ve&&Te<8){var Ct=xe.node.offsetTop+xe.node.offsetHeight;dt=Ct-ye,ye=Ct}else{var Wt=xe.node.getBoundingClientRect();dt=Wt.bottom-Wt.top,!Ze&&xe.text.firstChild&&(Tt=xe.text.firstChild.getBoundingClientRect().right-Wt.left-1)}var Kn=xe.line.height-dt;if((Kn>.005||Kn<-.005)&&(Oi(xe.line,dt),dd(xe.line),xe.rest))for(var rn=0;rn<xe.rest.length;rn++)dd(xe.rest[rn]);if(Tt>re.display.sizerWidth){var wr=Math.ceil(Tt/Xs(re.display));wr>re.display.maxLineLength&&(re.display.maxLineLength=wr,re.display.maxLine=xe.line,re.display.maxLineChanged=!0)}}}}function dd(re){if(re.widgets)for(var le=0;le<re.widgets.length;++le){var ye=re.widgets[le],ve=ye.node.parentNode;ve&&(ye.height=ve.offsetHeight)}}function ra(re,le,ye){var ve=ye&&ye.top!=null?Math.max(0,ye.top):re.scroller.scrollTop;ve=Math.floor(ve-Uo(re));var xe=ye&&ye.bottom!=null?ye.bottom:ve+re.wrapper.clientHeight,Ze=on(le,ve),dt=on(le,xe);if(ye&&ye.ensure){var Tt=ye.ensure.from.line,Ct=ye.ensure.to.line;Tt<Ze?(Ze=Tt,dt=on(le,Ur(Gr(le,Tt))+re.wrapper.clientHeight)):Math.min(Ct,le.lastLine())>=dt&&(Ze=on(le,Ur(Gr(le,Ct))-re.wrapper.clientHeight),dt=Ct)}return{from:Ze,to:Math.max(dt,Ze+1)}}function Vc(re,le){if(!vn(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 Ze=ot("div","\u200B",null,`position: absolute;
top: `+(le.top-ye.viewOffset-Uo(re.display))+`px;
height: `+(le.bottom-le.top+ba(re)+ye.barHeight)+`px;
left: `+le.left+"px; width: "+Math.max(2,le.right-le.left)+"px;");re.display.lineSpace.appendChild(Ze),Ze.scrollIntoView(xe),re.display.lineSpace.removeChild(Ze)}}}function Cu(re,le,ye,ve){ve==null&&(ve=0);var xe;!re.options.lineWrapping&&le==ye&&(le=le.ch?Xt(le.line,le.sticky=="before"?le.ch-1:le.ch,"after"):le,ye=le.sticky=="before"?Xt(le.line,le.ch+1,"before"):le);for(var Ze=0;Ze<5;Ze++){var dt=!1,Tt=Sa(re,le),Ct=!ye||ye==le?Tt:Sa(re,ye);xe={left:Math.min(Tt.left,Ct.left),top:Math.min(Tt.top,Ct.top)-ve,right:Math.max(Tt.left,Ct.left),bottom:Math.max(Tt.bottom,Ct.bottom)+ve};var Wt=Wc(re,xe),Kn=re.doc.scrollTop,rn=re.doc.scrollLeft;if(Wt.scrollTop!=null&&(gl(re,Wt.scrollTop),Math.abs(re.doc.scrollTop-Kn)>1&&(dt=!0)),Wt.scrollLeft!=null&&(il(re,Wt.scrollLeft),Math.abs(re.doc.scrollLeft-rn)>1&&(dt=!0)),!dt)break}return xe}function lu(re,le){var ye=Wc(re,le);ye.scrollTop!=null&&gl(re,ye.scrollTop),ye.scrollLeft!=null&&il(re,ye.scrollLeft)}function Wc(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,Ze=dl(re),dt={};le.bottom-le.top>Ze&&(le.bottom=le.top+Ze);var Tt=re.doc.height+da(ye),Ct=le.top<ve,Wt=le.bottom>Tt-ve;if(le.top<xe)dt.scrollTop=Ct?0:le.top;else if(le.bottom>xe+Ze){var Kn=Math.min(le.top,(Wt?Tt:le.bottom)-Ze);Kn!=xe&&(dt.scrollTop=Kn)}var rn=re.options.fixedGutter?0:ye.gutters.offsetWidth,wr=re.curOp&&re.curOp.scrollLeft!=null?re.curOp.scrollLeft:ye.scroller.scrollLeft-rn,mr=hs(re)-ye.gutters.offsetWidth,yi=le.right-le.left>mr;return yi&&(le.right=le.left+mr),le.left<10?dt.scrollLeft=0:le.left<wr?dt.scrollLeft=Math.max(0,le.left+rn-(yi?0:10)):le.right>mr+wr-3&&(dt.scrollLeft=le.right+(yi?0:10)-mr),dt}function Ec(re,le){le!=null&&(Qs(re),re.curOp.scrollTop=(re.curOp.scrollTop==null?re.doc.scrollTop:re.curOp.scrollTop)+le)}function uu(re){Qs(re);var le=re.getCursor();re.curOp.scrollToPos={from:le,to:le,margin:re.options.cursorScrollMargin}}function Yl(re,le,ye){(le!=null||ye!=null)&&Qs(re),le!=null&&(re.curOp.scrollLeft=le),ye!=null&&(re.curOp.scrollTop=ye)}function sa(re,le){Qs(re),re.curOp.scrollToPos=le}function Qs(re){var le=re.curOp.scrollToPos;if(le){re.curOp.scrollToPos=null;var ye=pa(re,le.from),ve=pa(re,le.to);Uu(re,ye,ve,le.margin)}}function Uu(re,le,ye,ve){var xe=Wc(re,{left:Math.min(le.left,ye.left),top:Math.min(le.top,ye.top)-ve,right:Math.max(le.right,ye.right),bottom:Math.max(le.bottom,ye.bottom)+ve});Yl(re,xe.scrollLeft,xe.scrollTop)}function gl(re,le){Math.abs(re.doc.scrollTop-le)<2||(oe||tt(re,{top:le}),Xl(re,le,!0),oe&&tt(re),xc(re,100))}function Xl(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 il(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,an(re),re.display.scroller.scrollLeft!=le&&(re.display.scroller.scrollLeft=le),re.display.scrollbars.setScrollLeft(le))}function Vo(re){var le=re.display,ye=le.gutters.offsetWidth,ve=Math.round(re.doc.height+da(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+ba(re)+le.barHeight,nativeBarWidth:le.nativeBarWidth,gutterWidth:ye}}var ha=function(re,le,ye){this.cm=ye;var ve=this.vert=ot("div",[ot("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),xe=this.horiz=ot("div",[ot("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ve.tabIndex=xe.tabIndex=-1,re(ve),re(xe),Ot(ve,"scroll",function(){ve.clientHeight&&le(ve.scrollTop,"vertical")}),Ot(xe,"scroll",function(){xe.clientWidth&&le(xe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ve&&Te<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ha.prototype.update=function(re){var le=re.scrollWidth>re.clientWidth+1,ye=re.scrollHeight>re.clientHeight+1,ve=re.nativeBarWidth;if(ye){this.vert.style.display="block",this.vert.style.bottom=le?ve+"px":"0";var xe=re.viewHeight-(le?ve:0);this.vert.firstChild.style.height=Math.max(0,re.scrollHeight-re.clientHeight+xe)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(le){this.horiz.style.display="block",this.horiz.style.right=ye?ve+"px":"0",this.horiz.style.left=re.barLeft+"px";var Ze=re.viewWidth-re.barLeft-(ye?ve:0);this.horiz.firstChild.style.width=Math.max(0,re.scrollWidth-re.clientWidth+Ze)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&re.clientHeight>0&&(ve==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ye?ve:0,bottom:le?ve:0}},ha.prototype.setScrollLeft=function(re){this.horiz.scrollLeft!=re&&(this.horiz.scrollLeft=re),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ha.prototype.setScrollTop=function(re){this.vert.scrollTop!=re&&(this.vert.scrollTop=re),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ha.prototype.zeroWidthHack=function(){var re=he&&!$e?"12px":"18px";this.horiz.style.height=this.vert.style.width=re,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ft,this.disableVert=new ft},ha.prototype.enableZeroWidthBar=function(re,le,ye){re.style.pointerEvents="auto";function ve(){var xe=re.getBoundingClientRect(),Ze=ye=="vert"?document.elementFromPoint(xe.right-1,(xe.top+xe.bottom)/2):document.elementFromPoint((xe.right+xe.left)/2,xe.bottom-1);Ze!=re?re.style.pointerEvents="none":le.set(1e3,ve)}le.set(1e3,ve)},ha.prototype.clear=function(){var re=this.horiz.parentNode;re.removeChild(this.horiz),re.removeChild(this.vert)};var Ha=function(){};Ha.prototype.update=function(){return{bottom:0,right:0}},Ha.prototype.setScrollLeft=function(){},Ha.prototype.setScrollTop=function(){},Ha.prototype.clear=function(){};function As(re,le){le||(le=Vo(re));var ye=re.display.barWidth,ve=re.display.barHeight;vs(re,le);for(var xe=0;xe<4&&ye!=re.display.barWidth||ve!=re.display.barHeight;xe++)ye!=re.display.barWidth&&re.options.lineWrapping&&Eo(re),vs(re,Vo(re)),ye=re.display.barWidth,ve=re.display.barHeight}function vs(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 Fl={native:ha,null:Ha};function Nl(re){re.display.scrollbars&&(re.display.scrollbars.clear(),re.display.scrollbars.addClass&&Ye(re.display.wrapper,re.display.scrollbars.addClass)),re.display.scrollbars=new Fl[re.options.scrollbarStyle](function(le){re.display.wrapper.insertBefore(le,re.display.scrollbarFiller),Ot(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"?il(re,le):gl(re,le)},re),re.display.scrollbars.addClass&&Nt(re.display.wrapper,re.display.scrollbars.addClass)}var Bl=0;function Ll(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:++Bl},ws(re.curOp)}function cu(re){var le=re.curOp;le&&xl(le,function(ye){for(var ve=0;ve<ye.ops.length;ve++)ye.ops[ve].cm.curOp=null;xd(ye)})}function xd(re){for(var le=re.ops,ye=0;ye<le.length;ye++)hh(le[ye]);for(var ve=0;ve<le.length;ve++)jd(le[ve]);for(var xe=0;xe<le.length;xe++)fh(le[xe]);for(var Ze=0;Ze<le.length;Ze++)ys(le[Ze]);for(var dt=0;dt<le.length;dt++)dc(le[dt])}function hh(re){var le=re.cm,ye=le.display;Ic(le),re.updateMaxLine&&ai(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 du(le,re.mustUpdate&&{top:re.scrollTop,ensure:re.scrollToPos},re.forceUpdate)}function jd(re){re.updatedDisplay=re.mustUpdate&&Ce(re.cm,re.update)}function fh(re){var le=re.cm,ye=le.display;re.updatedDisplay&&Eo(le),re.barMeasure=Vo(le),ye.maxLineChanged&&!le.options.lineWrapping&&(re.adjustWidthTo=ac(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+ba(le)+le.display.barWidth),re.maxScrollLeft=Math.max(0,ye.sizer.offsetLeft+re.adjustWidthTo-hs(le))),(re.updatedDisplay||re.selectionChanged)&&(re.preparedSelection=ye.input.prepareSelection())}function ys(re){var le=re.cm;re.adjustWidthTo!=null&&(le.display.sizer.style.minWidth=re.adjustWidthTo+"px",re.maxScrollLeft<le.doc.scrollLeft&&il(le,Math.min(le.display.scroller.scrollLeft,re.maxScrollLeft),!0),le.display.maxLineChanged=!1);var ye=re.focus&&re.focus==wt();re.preparedSelection&&le.display.input.showSelection(re.preparedSelection,ye),(re.updatedDisplay||re.startHeight!=le.doc.height)&&As(le,re.barMeasure),re.updatedDisplay&&Ut(le,re.barMeasure),re.selectionChanged&&Pa(le),le.state.focused&&re.updateInput&&le.display.input.reset(re.typing),ye&&ka(re.cm)}function dc(re){var le=re.cm,ye=le.display,ve=le.doc;if(re.updatedDisplay&&Qe(le,re.update),ye.wheelStartX!=null&&(re.scrollTop!=null||re.scrollLeft!=null||re.scrollToPos)&&(ye.wheelStartX=ye.wheelStartY=null),re.scrollTop!=null&&Xl(le,re.scrollTop,re.forceScroll),re.scrollLeft!=null&&il(le,re.scrollLeft,!0,!0),re.scrollToPos){var xe=Cu(le,zn(ve,re.scrollToPos.from),zn(ve,re.scrollToPos.to),re.scrollToPos.margin);Vc(le,xe)}var Ze=re.maybeHiddenMarkers,dt=re.maybeUnhiddenMarkers;if(Ze)for(var Tt=0;Tt<Ze.length;++Tt)Ze[Tt].lines.length||tn(Ze[Tt],"hide");if(dt)for(var Ct=0;Ct<dt.length;++Ct)dt[Ct].lines.length&&tn(dt[Ct],"unhide");ye.wrapper.offsetHeight&&(ve.scrollTop=le.display.scroller.scrollTop),re.changeObjs&&tn(le,"changes",le,re.changeObjs),re.update&&re.update.finish()}function Na(re,le){if(re.curOp)return le();Ll(re);try{return le()}finally{cu(re)}}function Hs(re,le){return function(){if(re.curOp)return le.apply(re,arguments);Ll(re);try{return le.apply(re,arguments)}finally{cu(re)}}}function Js(re){return function(){if(this.curOp)return re.apply(this,arguments);Ll(this);try{return re.apply(this,arguments)}finally{cu(this)}}}function Ks(re){return function(){var le=this.cm;if(!le||le.curOp)return re.apply(this,arguments);Ll(le);try{return re.apply(this,arguments)}finally{cu(le)}}}function xc(re,le){re.doc.highlightFrontier<re.display.viewTo&&re.state.highlight.set(le,Yt(ol,re))}function ol(re){var le=re.doc;if(!(le.highlightFrontier>=re.display.viewTo)){var ye=+new Date+re.options.workTime,ve=ji(re,le.highlightFrontier),xe=[];le.iter(ve.line,Math.min(le.first+le.size,re.display.viewTo+500),function(Ze){if(ve.line>=re.display.viewFrom){var dt=Ze.styles,Tt=Ze.text.length>re.options.maxHighlightLength?Kr(le.mode,ve.state):null,Ct=cn(re,Ze,ve,!0);Tt&&(ve.state=Tt),Ze.styles=Ct.styles;var Wt=Ze.styleClasses,Kn=Ct.classes;Kn?Ze.styleClasses=Kn:Wt&&(Ze.styleClasses=null);for(var rn=!dt||dt.length!=Ze.styles.length||Wt!=Kn&&(!Wt||!Kn||Wt.bgClass!=Kn.bgClass||Wt.textClass!=Kn.textClass),wr=0;!rn&&wr<dt.length;++wr)rn=dt[wr]!=Ze.styles[wr];rn&&xe.push(ve.line),Ze.stateAfter=ve.save(),ve.nextLine()}else Ze.text.length<=re.options.maxHighlightLength&&Qn(re,Ze.text,ve),Ze.stateAfter=ve.line%5==0?ve.save():null,ve.nextLine();if(+new Date>ye)return xc(re,re.options.workDelay),!0}),le.highlightFrontier=ve.line,le.modeFrontier=Math.max(le.modeFrontier,ve.line),xe.length&&Na(re,function(){for(var Ze=0;Ze<xe.length;Ze++)Zo(re,xe[Ze],"text")})}}var du=function(re,le,ye){var ve=re.display;this.viewport=le,this.visible=ra(ve,re.doc,le),this.editorIsHidden=!ve.wrapper.offsetWidth,this.wrapperHeight=ve.wrapper.clientHeight,this.wrapperWidth=ve.wrapper.clientWidth,this.oldDisplayWidth=hs(re),this.force=ye,this.dims=Ol(re),this.events=[]};du.prototype.signal=function(re,le){mn(re,le)&&this.events.push(arguments)},du.prototype.finish=function(){for(var re=0;re<this.events.length;re++)tn.apply(null,this.events[re])};function Ic(re){var le=re.display;!le.scrollbarsClipped&&le.scroller.offsetWidth&&(le.nativeBarWidth=le.scroller.offsetWidth-le.scroller.clientWidth,le.heightForcer.style.height=ba(re)+"px",le.sizer.style.marginBottom=-le.nativeBarWidth+"px",le.sizer.style.borderRightWidth=ba(re)+"px",le.scrollbarsClipped=!0)}function Zc(re){if(re.hasFocus())return null;var le=wt();if(!le||!vt(re.display.lineDiv,le))return null;var ye={activeElt:le};if(window.getSelection){var ve=window.getSelection();ve.anchorNode&&ve.extend&&vt(re.display.lineDiv,ve.anchorNode)&&(ye.anchorNode=ve.anchorNode,ye.anchorOffset=ve.anchorOffset,ye.focusNode=ve.focusNode,ye.focusOffset=ve.focusOffset)}return ye}function kl(re){if(!(!re||!re.activeElt||re.activeElt==wt())&&(re.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(re.activeElt.nodeName)&&re.anchorNode&&vt(document.body,re.anchorNode)&&vt(document.body,re.focusNode))){var le=window.getSelection(),ye=document.createRange();ye.setEnd(re.anchorNode,re.anchorOffset),ye.collapse(!1),le.removeAllRanges(),le.addRange(ye),le.extend(re.focusNode,re.focusOffset)}}function Ce(re,le){var ye=re.display,ve=re.doc;if(le.editorIsHidden)return Xa(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&&wl(re)==0)return!1;Nn(re)&&(Xa(re),le.dims=Ol(re));var xe=ve.first+ve.size,Ze=Math.max(le.visible.from-re.options.viewportMargin,ve.first),dt=Math.min(xe,le.visible.to+re.options.viewportMargin);ye.viewFrom<Ze&&Ze-ye.viewFrom<20&&(Ze=Math.max(ve.first,ye.viewFrom)),ye.viewTo>dt&&ye.viewTo-dt<20&&(dt=Math.min(xe,ye.viewTo)),er&&(Ze=sr(re.doc,Ze),dt=Un(re.doc,dt));var Tt=Ze!=ye.viewFrom||dt!=ye.viewTo||ye.lastWrapHeight!=le.wrapperHeight||ye.lastWrapWidth!=le.wrapperWidth;Da(re,Ze,dt),ye.viewOffset=Ur(Gr(re.doc,ye.viewFrom)),re.display.mover.style.top=ye.viewOffset+"px";var Ct=wl(re);if(!Tt&&Ct==0&&!le.force&&ye.renderedView==ye.view&&(ye.updateLineNumbers==null||ye.updateLineNumbers>=ye.viewTo))return!1;var Wt=Zc(re);return Ct>4&&(ye.lineDiv.style.display="none"),pt(re,ye.updateLineNumbers,le.dims),Ct>4&&(ye.lineDiv.style.display=""),ye.renderedView=ye.view,kl(Wt),nt(ye.cursorDiv),nt(ye.selectionDiv),ye.gutters.style.height=ye.sizer.style.minHeight=0,Tt&&(ye.lastWrapHeight=le.wrapperHeight,ye.lastWrapWidth=le.wrapperWidth,xc(re,400)),ye.updateLineNumbers=null,!0}function Qe(re,le){for(var ye=le.viewport,ve=!0;;ve=!1){if(!ve||!re.options.lineWrapping||le.oldDisplayWidth==hs(re)){if(ye&&ye.top!=null&&(ye={top:Math.min(re.doc.height+da(re.display)-dl(re),ye.top)}),le.visible=ra(re.display,re.doc,ye),le.visible.from>=re.display.viewFrom&&le.visible.to<=re.display.viewTo)break}else ve&&(le.visible=ra(re.display,re.doc,ye));if(!Ce(re,le))break;Eo(re);var xe=Vo(re);Ts(re),As(re,xe),Ut(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 du(re,le);if(Ce(re,ye)){Eo(re),Qe(re,ye);var ve=Vo(re);Ts(re),As(re,ve),Ut(re,ve),ye.finish()}}function pt(re,le,ye){var ve=re.display,xe=re.options.lineNumbers,Ze=ve.lineDiv,dt=Ze.firstChild;function Tt(yi){var wi=yi.nextSibling;return Ge&&he&&re.display.currentWheelTarget==yi?yi.style.display="none":yi.parentNode.removeChild(yi),wi}for(var Ct=ve.view,Wt=ve.viewFrom,Kn=0;Kn<Ct.length;Kn++){var rn=Ct[Kn];if(!rn.hidden)if(!rn.node||rn.node.parentNode!=Ze){var wr=Oo(re,rn,Wt,ye);Ze.insertBefore(wr,dt)}else{for(;dt!=rn.node;)dt=Tt(dt);var mr=xe&&le!=null&&le<=Wt&&rn.lineNumber;rn.changes&&(ct(rn.changes,"gutter")>-1&&(mr=!1),_a(re,rn,Wt,ye)),mr&&(nt(rn.lineNumber),rn.lineNumber.appendChild(document.createTextNode(Br(re.options,Wt)))),dt=rn.node.nextSibling}Wt+=rn.size}for(;dt;)dt=Tt(dt)}function Ft(re){var le=re.gutters.offsetWidth;re.sizer.style.marginLeft=le+"px"}function Ut(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+ba(re)+"px"}function an(re){var le=re.display,ye=le.view;if(!(!le.alignWidgets&&(!le.gutters.firstChild||!re.options.fixedGutter))){for(var ve=uc(le)-le.scroller.scrollLeft+re.doc.scrollLeft,xe=le.gutters.offsetWidth,Ze=ve+"px",dt=0;dt<ye.length;dt++)if(!ye[dt].hidden){re.options.fixedGutter&&(ye[dt].gutter&&(ye[dt].gutter.style.left=Ze),ye[dt].gutterBackground&&(ye[dt].gutterBackground.style.left=Ze));var Tt=ye[dt].alignable;if(Tt)for(var Ct=0;Ct<Tt.length;Ct++)Tt[Ct].style.left=Ze}re.options.fixedGutter&&(le.gutters.style.left=ve+xe+"px")}}function Nn(re){if(!re.options.lineNumbers)return!1;var le=re.doc,ye=Br(re.options,le.first+le.size-1),ve=re.display;if(ye.length!=ve.lineNumChars){var xe=ve.measure.appendChild(ot("div",[ot("div",ye)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Ze=xe.firstChild.offsetWidth,dt=xe.offsetWidth-Ze;return ve.lineGutter.style.width="",ve.lineNumInnerWidth=Math.max(Ze,ve.lineGutter.offsetWidth-dt)+1,ve.lineNumWidth=ve.lineNumInnerWidth+dt,ve.lineNumChars=ve.lineNumInnerWidth?ye.length:-1,ve.lineGutter.style.width=ve.lineNumWidth+"px",Ft(re.display),!0}return!1}function Sr(re,le){for(var ye=[],ve=!1,xe=0;xe<re.length;xe++){var Ze=re[xe],dt=null;if(typeof Ze!="string"&&(dt=Ze.style,Ze=Ze.className),Ze=="CodeMirror-linenumbers")if(le)ve=!0;else continue;ye.push({className:Ze,style:dt})}return le&&!ve&&ye.push({className:"CodeMirror-linenumbers",style:null}),ye}function xr(re){var le=re.gutters,ye=re.gutterSpecs;nt(le),re.lineGutter=null;for(var ve=0;ve<ye.length;++ve){var xe=ye[ve],Ze=xe.className,dt=xe.style,Tt=le.appendChild(ot("div",null,"CodeMirror-gutter "+Ze));dt&&(Tt.style.cssText=dt),Ze=="CodeMirror-linenumbers"&&(re.lineGutter=Tt,Tt.style.width=(re.lineNumWidth||1)+"px")}le.style.display=ye.length?"":"none",Ft(re)}function tr(re){xr(re.display),oa(re),an(re)}function Zr(re,le,ye,ve){var xe=this;this.input=ye,xe.scrollbarFiller=ot("div",null,"CodeMirror-scrollbar-filler"),xe.scrollbarFiller.setAttribute("cm-not-content","true"),xe.gutterFiller=ot("div",null,"CodeMirror-gutter-filler"),xe.gutterFiller.setAttribute("cm-not-content","true"),xe.lineDiv=mt("div",null,"CodeMirror-code"),xe.selectionDiv=ot("div",null,null,"position: relative; z-index: 1"),xe.cursorDiv=ot("div",null,"CodeMirror-cursors"),xe.measure=ot("div",null,"CodeMirror-measure"),xe.lineMeasure=ot("div",null,"CodeMirror-measure"),xe.lineSpace=mt("div",[xe.measure,xe.lineMeasure,xe.selectionDiv,xe.cursorDiv,xe.lineDiv],null,"position: relative; outline: none");var Ze=mt("div",[xe.lineSpace],"CodeMirror-lines");xe.mover=ot("div",[Ze],null,"position: relative"),xe.sizer=ot("div",[xe.mover],"CodeMirror-sizer"),xe.sizerWidth=null,xe.heightForcer=ot("div",null,null,"position: absolute; height: "+Jt+"px; width: 1px;"),xe.gutters=ot("div",null,"CodeMirror-gutters"),xe.lineGutter=null,xe.scroller=ot("div",[xe.sizer,xe.heightForcer,xe.gutters],"CodeMirror-scroll"),xe.scroller.setAttribute("tabIndex","-1"),xe.wrapper=ot("div",[xe.scrollbarFiller,xe.gutterFiller,xe.scroller],"CodeMirror"),Ve&&Te<8&&(xe.gutters.style.zIndex=-1,xe.scroller.style.paddingRight=0),!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=Sr(ve.gutters,ve.lineNumbers),xr(xe),ye.init(xe)}var Mr=0,lr=null;Ve?lr=-.53:oe?lr=15:Ke?lr=-.7:St&&(lr=-1/3);function Ao(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 Go(re){var le=Ao(re);return le.x*=lr,le.y*=lr,le}function ta(re,le){var ye=Ao(le),ve=ye.x,xe=ye.y,Ze=re.display,dt=Ze.scroller,Tt=dt.scrollWidth>dt.clientWidth,Ct=dt.scrollHeight>dt.clientHeight;if(ve&&Tt||xe&&Ct){if(xe&&he&&Ge){e:for(var Wt=le.target,Kn=Ze.view;Wt!=dt;Wt=Wt.parentNode)for(var rn=0;rn<Kn.length;rn++)if(Kn[rn].node==Wt){re.display.currentWheelTarget=Wt;break e}}if(ve&&!oe&&!He&&lr!=null){xe&&Ct&&gl(re,Math.max(0,dt.scrollTop+xe*lr)),il(re,Math.max(0,dt.scrollLeft+ve*lr)),(!xe||xe&&Ct)&&Xn(le),Ze.wheelStartX=null;return}if(xe&&lr!=null){var wr=xe*lr,mr=re.doc.scrollTop,yi=mr+Ze.wrapper.clientHeight;wr<0?mr=Math.max(0,mr+wr-50):yi=Math.min(re.doc.height,yi+wr+50),tt(re,{top:mr,bottom:yi})}Mr<20&&(Ze.wheelStartX==null?(Ze.wheelStartX=dt.scrollLeft,Ze.wheelStartY=dt.scrollTop,Ze.wheelDX=ve,Ze.wheelDY=xe,setTimeout(function(){if(Ze.wheelStartX!=null){var wi=dt.scrollLeft-Ze.wheelStartX,Di=dt.scrollTop-Ze.wheelStartY,$i=Di&&Ze.wheelDY&&Di/Ze.wheelDY||wi&&Ze.wheelDX&&wi/Ze.wheelDX;Ze.wheelStartX=Ze.wheelStartY=null,$i&&(lr=(lr*Mr+$i)/(Mr+1),++Mr)}},200)):(Ze.wheelDX+=ve,Ze.wheelDY+=xe))}}var ao=function(re,le){this.ranges=re,this.primIndex=le};ao.prototype.primary=function(){return this.ranges[this.primIndex]},ao.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(!Tn(ye.anchor,ve.anchor)||!Tn(ye.head,ve.head))return!1}return!0},ao.prototype.deepCopy=function(){for(var re=[],le=0;le<this.ranges.length;le++)re[le]=new Do(un(this.ranges[le].anchor),un(this.ranges[le].head));return new ao(re,this.primIndex)},ao.prototype.somethingSelected=function(){for(var re=0;re<this.ranges.length;re++)if(!this.ranges[re].empty())return!0;return!1},ao.prototype.contains=function(re,le){le||(le=re);for(var ye=0;ye<this.ranges.length;ye++){var ve=this.ranges[ye];if(fr(le,ve.from())>=0&&fr(re,ve.to())<=0)return ye}return-1};var Do=function(re,le){this.anchor=re,this.head=le};Do.prototype.from=function(){return Nr(this.anchor,this.head)},Do.prototype.to=function(){return Ue(this.anchor,this.head)},Do.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(wr,mr){return fr(wr.from(),mr.from())}),ye=ct(le,xe);for(var Ze=1;Ze<le.length;Ze++){var dt=le[Ze],Tt=le[Ze-1],Ct=fr(Tt.to(),dt.from());if(ve&&!dt.empty()?Ct>0:Ct>=0){var Wt=Nr(Tt.from(),dt.from()),Kn=Ue(Tt.to(),dt.to()),rn=Tt.empty()?dt.from()==dt.head:Tt.from()==Tt.head;Ze<=ye&&--ye,le.splice(--Ze,2,new Do(rn?Kn:Wt,rn?Wt:Kn))}}return new ao(le,ye)}function Qa(re,le){return new ao([new Do(re,le||re)],0)}function Ja(re){return re.text?Xt(re.from.line+re.text.length-1,Mt(re.text).length+(re.text.length==1?re.from.ch:0)):re.to}function Ki(re,le){if(fr(re,le.from)<0)return re;if(fr(re,le.to)<=0)return Ja(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+=Ja(le).ch-le.to.ch),Xt(ye,ve)}function es(re,le){for(var ye=[],ve=0;ve<re.sel.ranges.length;ve++){var xe=re.sel.ranges[ve];ye.push(new Do(Ki(xe.anchor,le),Ki(xe.head,le)))}return Bo(re.cm,ye,re.sel.primIndex)}function Wa(re,le,ye){return re.line==le.line?Xt(ye.line,re.ch-le.ch+ye.ch):Xt(ye.line+(re.line-le.line),re.ch)}function za(re,le,ye){for(var ve=[],xe=Xt(re.first,0),Ze=xe,dt=0;dt<le.length;dt++){var Tt=le[dt],Ct=Wa(Tt.from,xe,Ze),Wt=Wa(Ja(Tt),xe,Ze);if(xe=Tt.to,Ze=Wt,ye=="around"){var Kn=re.sel.ranges[dt],rn=fr(Kn.head,Kn.anchor)<0;ve[dt]=new Do(rn?Wt:Ct,rn?Ct:Wt)}else ve[dt]=new Do(Ct,Ct)}return new ao(ve,re.sel.primIndex)}function Co(re){re.doc.mode=hn(re.options,re.doc.modeOption),ml(re)}function ml(re){re.doc.iter(function(le){le.stateAfter&&(le.stateAfter=null),le.styles&&(le.styles=null)}),re.doc.modeFrontier=re.doc.highlightFrontier=re.doc.first,xc(re,100),re.state.modeGen++,re.curOp&&oa(re)}function ss(re,le){return le.from.ch==0&&le.to.ch==0&&Mt(le.text)==""&&(!re.cm||re.cm.options.wholeLineUpdateBefore)}function Qo(re,le,ye,ve){function xe(xo){return ye?ye[xo]:null}function Ze(xo,lo,No){Ii(xo,lo,No,ve),Xi(xo,"change",xo,le)}function dt(xo,lo){for(var No=[],Jo=xo;Jo<lo;++Jo)No.push(new Si(Wt[Jo],xe(Jo),ve));return No}var Tt=le.from,Ct=le.to,Wt=le.text,Kn=Gr(re,Tt.line),rn=Gr(re,Ct.line),wr=Mt(Wt),mr=xe(Wt.length-1),yi=Ct.line-Tt.line;if(le.full)re.insert(0,dt(0,Wt.length)),re.remove(Wt.length,re.size-Wt.length);else if(ss(re,le)){var wi=dt(0,Wt.length-1);Ze(rn,rn.text,mr),yi&&re.remove(Tt.line,yi),wi.length&&re.insert(Tt.line,wi)}else if(Kn==rn)if(Wt.length==1)Ze(Kn,Kn.text.slice(0,Tt.ch)+wr+Kn.text.slice(Ct.ch),mr);else{var Di=dt(1,Wt.length-1);Di.push(new Si(wr+Kn.text.slice(Ct.ch),mr,ve)),Ze(Kn,Kn.text.slice(0,Tt.ch)+Wt[0],xe(0)),re.insert(Tt.line+1,Di)}else if(Wt.length==1)Ze(Kn,Kn.text.slice(0,Tt.ch)+Wt[0]+rn.text.slice(Ct.ch),xe(0)),re.remove(Tt.line+1,yi);else{Ze(Kn,Kn.text.slice(0,Tt.ch)+Wt[0],xe(0)),Ze(rn,wr+rn.text.slice(Ct.ch),mr);var $i=dt(1,Wt.length-1);yi>1&&re.remove(Tt.line+1,yi-1),re.insert(Tt.line+1,$i)}Xi(re,"change",re,le)}function Ko(re,le,ye){function ve(xe,Ze,dt){if(xe.linked)for(var Tt=0;Tt<xe.linked.length;++Tt){var Ct=xe.linked[Tt];if(Ct.doc!=Ze){var Wt=dt&&Ct.sharedHist;ye&&!Wt||(le(Ct.doc,Wt),ve(Ct.doc,xe,Wt))}}}ve(re,null,!0)}function wa(re,le){if(le.cm)throw new Error("This document is already in use.");re.doc=le,le.cm=re,To(re),Co(re),fs(re),re.options.lineWrapping||ai(re),re.options.mode=le.modeOption,oa(re)}function fs(re){(re.doc.direction=="rtl"?Nt:Ye)(re.display.lineDiv,"CodeMirror-rtl")}function qs(re){Na(re,function(){fs(re),oa(re)})}function Cl(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 Ql(re,le){var ye={from:un(le.from),to:Ja(le),text:bi(re,le.from,le.to)};return hu(re,ye,le.from.line,le.to.line+1),Ko(re,function(ve){return hu(ve,ye,le.from.line,le.to.line+1)},!0),ye}function Pr(re){for(;re.length;){var le=Mt(re);if(le.ranges)re.pop();else break}}function Il(re,le){if(le)return Pr(re.done),Mt(re.done);if(re.done.length&&!Mt(re.done).ranges)return Mt(re.done);if(re.done.length>1&&!re.done[re.done.length-2].ranges)return re.done.pop(),Mt(re.done)}function _l(re,le,ye,ve){var xe=re.history;xe.undone.length=0;var Ze=+new Date,dt,Tt;if((xe.lastOp==ve||xe.lastOrigin==le.origin&&le.origin&&(le.origin.charAt(0)=="+"&&xe.lastModTime>Ze-(re.cm?re.cm.options.historyEventDelay:500)||le.origin.charAt(0)=="*"))&&(dt=Il(xe,xe.lastOp==ve)))Tt=Mt(dt.changes),fr(le.from,le.to)==0&&fr(le.from,Tt.to)==0?Tt.to=Ja(le):dt.changes.push(Ql(re,le));else{var Ct=Mt(xe.done);for((!Ct||!Ct.ranges)&&Pu(re.sel,xe.done),dt={changes:[Ql(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=Ze,xe.lastOp=xe.lastSelOp=ve,xe.lastOrigin=xe.lastSelOrigin=le.origin,Tt||tn(re,"historyAdded")}function Ir(re,le,ye,ve){var xe=le.charAt(0);return xe=="*"||xe=="+"&&ye.ranges.length==ve.ranges.length&&ye.somethingSelected()==ve.somethingSelected()&&new Date-re.history.lastSelTime<=(re.cm?re.cm.options.historyEventDelay:500)}function al(re,le,ye,ve){var xe=re.history,Ze=ve&&ve.origin;ye==xe.lastSelOp||Ze&&xe.lastSelOrigin==Ze&&(xe.lastModTime==xe.lastSelTime&&xe.lastOrigin==Ze||Ir(re,Ze,Mt(xe.done),le))?xe.done[xe.done.length-1]=le:Pu(le,xe.done),xe.lastSelTime=+new Date,xe.lastSelOrigin=Ze,xe.lastSelOp=ye,ve&&ve.clearRedo!==!1&&Pr(xe.undone)}function Pu(re,le){var ye=Mt(le);ye&&ye.ranges&&ye.equals(re)||le.push(re)}function hu(re,le,ye,ve){var xe=le["spans_"+re.id],Ze=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]={}))[Ze]=dt.markedSpans),++Ze})}function $s(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 Ss(re,le){var ye=le["spans_"+re.id];if(!ye)return null;for(var ve=[],xe=0;xe<le.text.length;++xe)ve.push($s(ye[xe]));return ve}function fu(re,le){var ye=Ss(re,le),ve=Ro(re,le);if(!ye)return ve;if(!ve)return ye;for(var xe=0;xe<ye.length;++xe){var Ze=ye[xe],dt=ve[xe];if(Ze&&dt)e:for(var Tt=0;Tt<dt.length;++Tt){for(var Ct=dt[Tt],Wt=0;Wt<Ze.length;++Wt)if(Ze[Wt].marker==Ct.marker)continue e;Ze.push(Ct)}else dt&&(ye[xe]=dt)}return ye}function sl(re,le,ye){for(var ve=[],xe=0;xe<re.length;++xe){var Ze=re[xe];if(Ze.ranges){ve.push(ye?ao.prototype.deepCopy.call(Ze):Ze);continue}var dt=Ze.changes,Tt=[];ve.push({changes:Tt});for(var Ct=0;Ct<dt.length;++Ct){var Wt=dt[Ct],Kn=void 0;if(Tt.push({from:Wt.from,to:Wt.to,text:Wt.text}),le)for(var rn in Wt)(Kn=rn.match(/^spans_(\d+)$/))&&ct(le,Number(Kn[1]))>-1&&(Mt(Tt)[rn]=Wt[rn],delete Wt[rn])}}return ve}function Xu(re,le,ye,ve){if(ve){var xe=re.anchor;if(ye){var Ze=fr(le,xe)<0;Ze!=fr(ye,xe)<0?(xe=le,le=ye):Ze!=fr(le,ye)<0&&(le=ye)}return new Do(xe,le)}else return new Do(ye||le,le)}function hc(re,le,ye,ve,xe){xe==null&&(xe=re.cm&&(re.cm.display.shift||re.extend)),ge(re,new ao([Xu(re.sel.primary(),le,ye,xe)],0),ve)}function wd(re,le,ye){for(var ve=[],xe=re.cm&&(re.cm.display.shift||re.extend),Ze=0;Ze<re.sel.ranges.length;Ze++)ve[Ze]=Xu(re.sel.ranges[Ze],le[Ze],null,xe);var dt=Bo(re.cm,ve,re.sel.primIndex);ge(re,dt,ye)}function Pl(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 pu(re,le,ye,ve){ge(re,Qa(le,ye),ve)}function hd(re,le,ye){var ve={ranges:le.ranges,update:function(xe){this.ranges=[];for(var Ze=0;Ze<xe.length;Ze++)this.ranges[Ze]=new Do(zn(re,xe[Ze].anchor),zn(re,xe[Ze].head))},origin:ye&&ye.origin};return tn(re,"beforeSelectionChange",re,ve),re.cm&&tn(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=Mt(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),al(re,re.sel,re.cm?re.cm.curOp.id:NaN,ye)}function et(re,le,ye){(mn(re,"beforeSelectionChange")||re.cm&&mn(re.cm,"beforeSelectionChange"))&&(le=hd(re,le,ye));var ve=ye&&ye.bias||(fr(le.primary().head,re.sel.primary().head)<0?-1:1);qt(re,li(re,le,ve,!0)),!(ye&&ye.scroll===!1)&&re.cm&&uu(re.cm)}function qt(re,le){le.equals(re.sel)||(re.sel=le,re.cm&&(re.cm.curOp.updateInput=1,re.cm.curOp.selectionChanged=!0,$n(re.cm)),Xi(re,"cursorActivity",re))}function Er(re){qt(re,li(re,re.sel,null,!1))}function li(re,le,ye,ve){for(var xe,Ze=0;Ze<le.ranges.length;Ze++){var dt=le.ranges[Ze],Tt=le.ranges.length==re.sel.ranges.length&&re.sel.ranges[Ze],Ct=Lo(re,dt.anchor,Tt&&Tt.anchor,ye,ve),Wt=Lo(re,dt.head,Tt&&Tt.head,ye,ve);(xe||Ct!=dt.anchor||Wt!=dt.head)&&(xe||(xe=le.ranges.slice(0,Ze)),xe[Ze]=new Do(Ct,Wt))}return xe?Bo(re.cm,xe,le.primIndex):le}function Pi(re,le,ye,ve,xe){var Ze=Gr(re,le.line);if(Ze.markedSpans)for(var dt=0;dt<Ze.markedSpans.length;++dt){var Tt=Ze.markedSpans[dt],Ct=Tt.marker,Wt="selectLeft"in Ct?!Ct.selectLeft:Ct.inclusiveLeft,Kn="selectRight"in Ct?!Ct.selectRight:Ct.inclusiveRight;if((Tt.from==null||(Wt?Tt.from<=le.ch:Tt.from<le.ch))&&(Tt.to==null||(Kn?Tt.to>=le.ch:Tt.to>le.ch))){if(xe&&(tn(Ct,"beforeCursorEnter"),Ct.explicitlyCleared))if(Ze.markedSpans){--dt;continue}else break;if(!Ct.atomic)continue;if(ye){var rn=Ct.find(ve<0?1:-1),wr=void 0;if((ve<0?Kn:Wt)&&(rn=Yo(re,rn,-ve,rn&&rn.line==le.line?Ze:null)),rn&&rn.line==le.line&&(wr=fr(rn,ye))&&(ve<0?wr<0:wr>0))return Pi(re,rn,le,ve,xe)}var mr=Ct.find(ve<0?-1:1);return(ve<0?Wt:Kn)&&(mr=Yo(re,mr,ve,mr.line==le.line?Ze:null)),mr?Pi(re,mr,le,ve,xe):null}}return le}function Lo(re,le,ye,ve,xe){var Ze=ve||1,dt=Pi(re,le,ye,Ze,xe)||!xe&&Pi(re,le,ye,Ze,!0)||Pi(re,le,ye,-Ze,xe)||!xe&&Pi(re,le,ye,-Ze,!0);return dt||(re.cantEdit=!0,Xt(re.first,0))}function Yo(re,le,ye,ve){return ye<0&&le.ch==0?le.line>re.first?zn(re,Xt(le.line-1)):null:ye>0&&le.ch==(ve||Gr(re,le.line)).text.length?le.line<re.first+re.size-1?Xt(le.line+1,0):null:new Xt(le.line,le.ch+ye)}function ii(re){re.setSelection(Xt(re.firstLine(),0),Xt(re.lastLine()),kt)}function no(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,Ze,dt,Tt){xe&&(ve.from=zn(re,xe)),Ze&&(ve.to=zn(re,Ze)),dt&&(ve.text=dt),Tt!==void 0&&(ve.origin=Tt)}),tn(re,"beforeChange",re,ve),re.cm&&tn(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 Wo(re,le,ye){if(re.cm){if(!re.cm.curOp)return Hs(re.cm,Wo)(re,le,ye);if(re.cm.state.suppressEdits)return}if(!((mn(re,"beforeChange")||re.cm&&mn(re.cm,"beforeChange"))&&(le=no(re,le,!0),!le))){var ve=Vi&&!ye&&pr(re,le.from,le.to);if(ve)for(var xe=ve.length-1;xe>=0;--xe)Ta(re,{from:ve[xe].from,to:ve[xe].to,text:xe?[""]:le.text,origin:le.origin});else Ta(re,le)}}function Ta(re,le){if(!(le.text.length==1&&le.text[0]==""&&fr(le.from,le.to)==0)){var ye=es(re,le);_l(re,le,ye,re.cm?re.cm.curOp.id:NaN),Qu(re,le,ye,Ro(re,le));var ve=[];Ko(re,function(xe,Ze){!Ze&&ct(ve,xe.history)==-1&&(Kc(xe.history,le),ve.push(xe.history)),Qu(xe,le,null,Ro(xe,le))})}}function is(re,le,ye){var ve=re.cm&&re.cm.state.suppressEdits;if(!(ve&&!ye)){for(var xe=re.history,Ze,dt=re.sel,Tt=le=="undo"?xe.done:xe.undone,Ct=le=="undo"?xe.undone:xe.done,Wt=0;Wt<Tt.length&&(Ze=Tt[Wt],!(ye?Ze.ranges&&!Ze.equals(re.sel):!Ze.ranges));Wt++);if(Wt!=Tt.length){for(xe.lastOrigin=xe.lastSelOrigin=null;;)if(Ze=Tt.pop(),Ze.ranges){if(Pu(Ze,Ct),ye&&!Ze.equals(re.sel)){ge(re,Ze,{clearRedo:!1});return}dt=Ze}else if(ve){Tt.push(Ze);return}else break;var Kn=[];Pu(dt,Ct),Ct.push({changes:Kn,generation:xe.generation}),xe.generation=Ze.generation||++xe.maxGeneration;for(var rn=mn(re,"beforeChange")||re.cm&&mn(re.cm,"beforeChange"),wr=function(wi){var Di=Ze.changes[wi];if(Di.origin=le,rn&&!no(re,Di,!1))return Tt.length=0,{};Kn.push(Ql(re,Di));var $i=wi?es(re,Di):Mt(Tt);Qu(re,Di,$i,fu(re,Di)),!wi&&re.cm&&re.cm.scrollIntoView({from:Di.from,to:Ja(Di)});var xo=[];Ko(re,function(lo,No){!No&&ct(xo,lo.history)==-1&&(Kc(lo.history,Di),xo.push(lo.history)),Qu(lo,Di,null,fu(lo,Di))})},mr=Ze.changes.length-1;mr>=0;--mr){var yi=wr(mr);if(yi)return yi.v}}}}function Hu(re,le){if(le!=0&&(re.first+=le,re.sel=new ao(Hn(re.sel.ranges,function(xe){return new Do(Xt(xe.anchor.line+le,xe.anchor.ch),Xt(xe.head.line+le,xe.head.ch))}),re.sel.primIndex),re.cm)){oa(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 Qu(re,le,ye,ve){if(re.cm&&!re.cm.curOp)return Hs(re.cm,Qu)(re,le,ye,ve);if(le.to.line<re.first){Hu(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);Hu(re,xe),le={from:Xt(re.first,0),to:Xt(le.to.line+xe,le.to.ch),text:[Mt(le.text)],origin:le.origin}}var Ze=re.lastLine();le.to.line>Ze&&(le={from:le.from,to:Xt(Ze,Gr(re,Ze).text.length),text:[le.text[0]],origin:le.origin}),le.removed=bi(re,le.from,le.to),ye||(ye=es(re,le)),re.cm?Ju(re.cm,le,ve):Qo(re,le,ve),et(re,ye,kt),re.cantEdit&&Lo(re,Xt(re.firstLine(),0))&&(re.cantEdit=!1)}}function Ju(re,le,ye){var ve=re.doc,xe=re.display,Ze=le.from,dt=le.to,Tt=!1,Ct=Ze.line;re.options.lineWrapping||(Ct=xt(wn(Gr(ve,Ze.line))),ve.iter(Ct,dt.line+1,function(mr){if(mr==xe.maxLine)return Tt=!0,!0})),ve.sel.contains(le.from,le.to)>-1&&$n(re),Qo(ve,le,ye,ja(re)),re.options.lineWrapping||(ve.iter(Ct,Ze.line+le.text.length,function(mr){var yi=Ni(mr);yi>xe.maxLineLength&&(xe.maxLine=mr,xe.maxLineLength=yi,xe.maxLineChanged=!0,Tt=!1)}),Tt&&(re.curOp.updateMaxLine=!0)),Fi(ve,Ze.line),xc(re,400);var Wt=le.text.length-(dt.line-Ze.line)-1;le.full?oa(re):Ze.line==dt.line&&le.text.length==1&&!ss(re.doc,le)?Zo(re,Ze.line,"text"):oa(re,Ze.line,dt.line+1,Wt);var Kn=mn(re,"changes"),rn=mn(re,"change");if(rn||Kn){var wr={from:Ze,to:dt,text:le.text,removed:le.removed,origin:le.origin};rn&&Xi(re,"change",re,wr),Kn&&(re.curOp.changeObjs||(re.curOp.changeObjs=[])).push(wr)}re.display.selForContextMenu=null}function gu(re,le,ye,ve,xe){var Ze;ve||(ve=ye),fr(ve,ye)<0&&(Ze=[ve,ye],ye=Ze[0],ve=Ze[1]),typeof le=="string"&&(le=re.splitLines(le)),Wo(re,{from:ye,to:ve,text:le,origin:xe})}function Ul(re,le,ye,ve){ye<re.line?re.line+=ve:le<re.line&&(re.line=le,re.ch=0)}function Tu(re,le,ye,ve){for(var xe=0;xe<re.length;++xe){var Ze=re[xe],dt=!0;if(Ze.ranges){Ze.copied||(Ze=re[xe]=Ze.deepCopy(),Ze.copied=!0);for(var Tt=0;Tt<Ze.ranges.length;Tt++)Ul(Ze.ranges[Tt].anchor,le,ye,ve),Ul(Ze.ranges[Tt].head,le,ye,ve);continue}for(var Ct=0;Ct<Ze.changes.length;++Ct){var Wt=Ze.changes[Ct];if(ye<Wt.from.line)Wt.from=Xt(Wt.from.line+ve,Wt.from.ch),Wt.to=Xt(Wt.to.line+ve,Wt.to.ch);else if(le<=Wt.to.line){dt=!1;break}}dt||(re.splice(0,xe+1),xe=0)}}function Kc(re,le){var ye=le.from.line,ve=le.to.line,xe=le.text.length-(ve-ye)-1;Tu(re.done,ye,ve,xe),Tu(re.undone,ye,ve,xe)}function Jl(re,le,ye,ve){var xe=le,Ze=le;return typeof le=="number"?Ze=Gr(re,jr(re,le)):xe=xt(le),xe==null?null:(ve(Ze,xe)&&re.cm&&Zo(re.cm,xe,ye),Ze)}function ph(re){this.lines=re,this.parent=null;for(var le=0,ye=0;ye<re.length;++ye)re[ye].parent=this,le+=re[ye].height;this.height=le}ph.prototype={chunkSize:function(){return this.lines.length},removeInner:function(re,le){for(var ye=re,ve=re+le;ye<ve;++ye){var xe=this.lines[ye];this.height-=xe.height,Ri(xe),Xi(xe,"delete")}this.lines.splice(re,le)},collapse:function(re){re.push.apply(re,this.lines)},insertInner:function(re,le,ye){this.height+=ye,this.lines=this.lines.slice(0,re).concat(le).concat(this.lines.slice(re));for(var ve=0;ve<le.length;++ve)le[ve].parent=this},iterN:function(re,le,ye){for(var ve=re+le;re<ve;++re)if(ye(this.lines[re]))return!0}};function Rs(re){this.children=re;for(var le=0,ye=0,ve=0;ve<re.length;++ve){var xe=re[ve];le+=xe.chunkSize(),ye+=xe.height,xe.parent=this}this.size=le,this.height=ye,this.parent=null}Rs.prototype={chunkSize:function(){return this.size},removeInner:function(re,le){this.size-=le;for(var ye=0;ye<this.children.length;++ye){var ve=this.children[ye],xe=ve.chunkSize();if(re<xe){var Ze=Math.min(le,xe-re),dt=ve.height;if(ve.removeInner(re,Ze),this.height-=dt-ve.height,xe==Ze&&(this.children.splice(ye--,1),ve.parent=null),(le-=Ze)==0)break;re=0}else re-=xe}if(this.size-le<25&&(this.children.length>1||!(this.children[0]instanceof ph))){var Tt=[];this.collapse(Tt),this.children=[new ph(Tt)],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],Ze=xe.chunkSize();if(re<=Ze){if(xe.insertInner(re,le,ye),xe.lines&&xe.lines.length>50){for(var dt=xe.lines.length%25+25,Tt=dt;Tt<xe.lines.length;){var Ct=new ph(xe.lines.slice(Tt,Tt+=25));xe.height-=Ct.height,this.children.splice(++ve,0,Ct),Ct.parent=this}xe.lines=xe.lines.slice(0,dt),this.maybeSpill()}break}re-=Ze}},maybeSpill:function(){if(!(this.children.length<=10)){var re=this;do{var le=re.children.splice(re.children.length-5,5),ye=new Rs(le);if(re.parent){re.size-=ye.size,re.height-=ye.height;var xe=ct(re.parent.children,re);re.parent.children.splice(xe+1,0,ye)}else{var ve=new Rs(re.children);ve.parent=re,re.children=[ve,ye],re=ve}ye.parent=re.parent}while(re.children.length>10);re.parent.maybeSpill()}},iterN:function(re,le,ye){for(var ve=0;ve<this.children.length;++ve){var xe=this.children[ve],Ze=xe.chunkSize();if(re<Ze){var dt=Math.min(le,Ze-re);if(xe.iterN(re,dt,ye))return!0;if((le-=dt)==0)break;re=0}else re-=Ze}}};var Dc=function(re,le,ye){if(ye)for(var ve in ye)ye.hasOwnProperty(ve)&&(this[ve]=ye[ve]);this.doc=re,this.node=le};Dc.prototype.clear=function(){var re=this.doc.cm,le=this.line.widgets,ye=this.line,ve=xt(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 Ze=Ga(this);Oi(ye,Math.max(0,ye.height-Ze)),re&&(Na(re,function(){Yp(re,ye,-Ze),Zo(re,ve,"widget")}),Xi(re,"lineWidgetCleared",re,this,ve))}},Dc.prototype.changed=function(){var re=this,le=this.height,ye=this.doc.cm,ve=this.line;this.height=null;var xe=Ga(this)-le;xe&&(ln(this.doc,ve)||Oi(ve,ve.height+xe),ye&&Na(ye,function(){ye.curOp.forceUpdate=!0,Yp(ye,ve,xe),Xi(ye,"lineWidgetChanged",ye,re,xt(ve))}))},gt(Dc);function Yp(re,le,ye){Ur(le)<(re.curOp&&re.curOp.scrollTop||re.doc.scrollTop)&&Ec(re,ye)}function Pf(re,le,ye,ve){var xe=new Dc(re,ye,ve),Ze=re.cm;return Ze&&xe.noHScroll&&(Ze.display.alignWidgets=!0),Jl(re,le,"widget",function(dt){var Tt=dt.widgets||(dt.widgets=[]);if(xe.insertAt==null?Tt.push(xe):Tt.splice(Math.min(Tt.length-1,Math.max(0,xe.insertAt)),0,xe),xe.line=dt,Ze&&!ln(re,dt)){var Ct=Ur(dt)<re.scrollTop;Oi(dt,dt.height+Ga(xe)),Ct&&Ec(Ze,xe.height),Ze.curOp.forceUpdate=!0}return!0}),Ze&&Xi(Ze,"lineWidgetAdded",Ze,xe,typeof le=="number"?le:xt(le)),xe}var Vh=0,In=function(re,le){this.lines=[],this.type=le,this.doc=re,this.id=++Vh};In.prototype.clear=function(){if(!this.explicitlyCleared){var re=this.doc.cm,le=re&&!re.curOp;if(le&&Ll(re),mn(this,"clear")){var ye=this.find();ye&&Xi(this,"clear",ye.from,ye.to)}for(var ve=null,xe=null,Ze=0;Ze<this.lines.length;++Ze){var dt=this.lines[Ze],Tt=Gi(dt.markedSpans,this);re&&!this.collapsed?Zo(re,xt(dt),"text"):re&&(Tt.to!=null&&(xe=xt(dt)),Tt.from!=null&&(ve=xt(dt))),dt.markedSpans=Ui(dt.markedSpans,Tt),Tt.from==null&&this.collapsed&&!ln(this.doc,dt)&&re&&Oi(dt,rs(re.display))}if(re&&this.collapsed&&!re.options.lineWrapping)for(var Ct=0;Ct<this.lines.length;++Ct){var Wt=wn(this.lines[Ct]),Kn=Ni(Wt);Kn>re.display.maxLineLength&&(re.display.maxLine=Wt,re.display.maxLineLength=Kn,re.display.maxLineChanged=!0)}ve!=null&&re&&this.collapsed&&oa(re,ve,xe+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,re&&Er(re.doc)),re&&Xi(re,"markerCleared",re,this,ve,xe),le&&cu(re),this.parent&&this.parent.clear()}},In.prototype.find=function(re,le){re==null&&this.type=="bookmark"&&(re=1);for(var ye,ve,xe=0;xe<this.lines.length;++xe){var Ze=this.lines[xe],dt=Gi(Ze.markedSpans,this);if(dt.from!=null&&(ye=Xt(le?Ze:xt(Ze),dt.from),re==-1))return ye;if(dt.to!=null&&(ve=Xt(le?Ze:xt(Ze),dt.to),re==1))return ve}return ye&&{from:ye,to:ve}},In.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,Ze=xt(le.line),dt=hl(ve,Ze);if(dt&&(bc(dt),ve.curOp.selectionChanged=ve.curOp.forceUpdate=!0),ve.curOp.updateMaxLine=!0,!ln(ye.doc,xe)&&ye.height!=null){var Tt=ye.height;ye.height=null;var Ct=Ga(ye)-Tt;Ct&&Oi(xe,xe.height+Ct)}Xi(ve,"markerChanged",ve,re)})},In.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)},In.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)}},gt(In);function Vd(re,le,ye,ve,xe){if(ve&&ve.shared)return Xp(re,le,ye,ve,xe);if(re.cm&&!re.cm.curOp)return Hs(re.cm,Vd)(re,le,ye,ve,xe);var Ze=new In(re,xe),dt=fr(le,ye);if(ve&&yn(ve,Ze,!1),dt>0||dt==0&&Ze.clearWhenEmpty!==!1)return Ze;if(Ze.replacedWith&&(Ze.collapsed=!0,Ze.widgetNode=mt("span",[Ze.replacedWith],"CodeMirror-widget"),ve.handleMouseEvents||Ze.widgetNode.setAttribute("cm-ignore-events","true"),ve.insertLeft&&(Ze.widgetNode.insertLeft=!0)),Ze.collapsed){if(xn(re,le.line,le,ye,Ze)||le.line!=ye.line&&xn(re,ye.line,le,ye,Ze))throw new Error("Inserting collapsed marker partially overlapping an existing one");ar()}Ze.addToHistory&&_l(re,{from:le,to:ye,origin:"markText"},re.sel,NaN);var Tt=le.line,Ct=re.cm,Wt;if(re.iter(Tt,ye.line+1,function(rn){Ct&&Ze.collapsed&&!Ct.options.lineWrapping&&wn(rn)==Ct.display.maxLine&&(Wt=!0),Ze.collapsed&&Tt!=le.line&&Oi(rn,0),po(rn,new Ei(Ze,Tt==le.line?le.ch:null,Tt==ye.line?ye.ch:null)),++Tt}),Ze.collapsed&&re.iter(le.line,ye.line+1,function(rn){ln(re,rn)&&Oi(rn,0)}),Ze.clearOnEnter&&Ot(Ze,"beforeCursorEnter",function(){return Ze.clear()}),Ze.readOnly&&(_i(),(re.history.done.length||re.history.undone.length)&&re.clearHistory()),Ze.collapsed&&(Ze.id=++Vh,Ze.atomic=!0),Ct){if(Wt&&(Ct.curOp.updateMaxLine=!0),Ze.collapsed)oa(Ct,le.line,ye.line+1);else if(Ze.className||Ze.startStyle||Ze.endStyle||Ze.css||Ze.attributes||Ze.title)for(var Kn=le.line;Kn<=ye.line;Kn++)Zo(Ct,Kn,"text");Ze.atomic&&Er(Ct.doc),Xi(Ct,"markerAdded",Ct,Ze)}return Ze}var Rc=function(re,le){this.markers=re,this.primary=le;for(var ye=0;ye<re.length;++ye)re[ye].parent=this};Rc.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var re=0;re<this.markers.length;++re)this.markers[re].clear();Xi(this,"clear")}},Rc.prototype.find=function(re,le){return this.primary.find(re,le)},gt(Rc);function Xp(re,le,ye,ve,xe){ve=yn(ve),ve.shared=!1;var Ze=[Vd(re,le,ye,ve,xe)],dt=Ze[0],Tt=ve.widgetNode;return Ko(re,function(Ct){Tt&&(ve.widgetNode=Tt.cloneNode(!0)),Ze.push(Vd(Ct,zn(Ct,le),zn(Ct,ye),ve,xe));for(var Wt=0;Wt<Ct.linked.length;++Wt)if(Ct.linked[Wt].isParent)return;dt=Mt(Ze)}),new Rc(Ze,dt)}function ep(re){return re.findMarks(Xt(re.first,0),re.clipPos(Xt(re.lastLine())),function(le){return le.parent})}function Gg(re,le){for(var ye=0;ye<le.length;ye++){var ve=le[ye],xe=ve.find(),Ze=re.clipPos(xe.from),dt=re.clipPos(xe.to);if(fr(Ze,dt)){var Tt=Vd(re,Ze,dt,ve.primary,ve.primary.type);ve.markers.push(Tt),Tt.parent=ve}}}function tp(re){for(var le=function(ve){var xe=re[ve],Ze=[xe.primary.doc];Ko(xe.primary.doc,function(Ct){return Ze.push(Ct)});for(var dt=0;dt<xe.markers.length;dt++){var Tt=xe.markers[dt];ct(Ze,Tt.doc)==-1&&(Tt.parent=null,xe.markers.splice(dt--,1))}},ye=0;ye<re.length;ye++)le(ye)}var Um=0,ll=function(re,le,ye,ve,xe){if(!(this instanceof ll))return new ll(re,le,ye,ve,xe);ye==null&&(ye=0),Rs.call(this,[new ph([new Si("",null)])]),this.first=ye,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ye;var Ze=Xt(ye,0);this.sel=Qa(Ze),this.history=new Cl(null),this.id=++Um,this.modeOption=le,this.lineSep=ve,this.direction=xe=="rtl"?"rtl":"ltr",this.extend=!1,typeof re=="string"&&(re=this.splitLines(re)),Qo(this,{from:Ze,to:Ze,text:re}),ge(this,Qa(Ze),kt)};ll.prototype=_e(Rs.prototype,{constructor:ll,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=Ai(this,this.first,this.first+this.size);return re===!1?le:le.join(re||this.lineSeparator())},setValue:Ks(function(re){var le=Xt(this.first,0),ye=this.first+this.size-1;Wo(this,{from:le,to:Xt(ye,Gr(this,ye).text.length),text:this.splitLines(re),origin:"setValue",full:!0},!0),this.cm&&Yl(this.cm,0,0),ge(this,Qa(le),kt)}),replaceRange:function(re,le,ye,ve){le=zn(this,le),ye=ye?zn(this,ye):le,gu(this,re,le,ye,ve)},getRange:function(re,le,ye){var ve=bi(this,zn(this,re),zn(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(br(this,re))return Gr(this,re)},getLineNumber:function(re){return xt(re)},getLineHandleVisualStart:function(re){return typeof re=="number"&&(re=Gr(this,re)),wn(re)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(re){return zn(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:Ks(function(re,le,ye){pu(this,zn(this,typeof re=="number"?Xt(re,le||0):re),null,ye)}),setSelection:Ks(function(re,le,ye){pu(this,zn(this,re),zn(this,le||re),ye)}),extendSelection:Ks(function(re,le,ye){hc(this,zn(this,re),le&&zn(this,le),ye)}),extendSelections:Ks(function(re,le){wd(this,Xr(this,re),le)}),extendSelectionsBy:Ks(function(re,le){var ye=Hn(this.sel.ranges,re);wd(this,Xr(this,ye),le)}),setSelections:Ks(function(re,le,ye){if(re.length){for(var ve=[],xe=0;xe<re.length;xe++)ve[xe]=new Do(zn(this,re[xe].anchor),zn(this,re[xe].head));le==null&&(le=Math.min(re.length-1,this.sel.primIndex)),ge(this,Bo(this.cm,ve,le),ye)}}),addSelection:Ks(function(re,le,ye){var ve=this.sel.ranges.slice(0);ve.push(new Do(zn(this,re),zn(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=bi(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=bi(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:Ks(function(re,le,ye){for(var ve=[],xe=this.sel,Ze=0;Ze<xe.ranges.length;Ze++){var dt=xe.ranges[Ze];ve[Ze]={from:dt.from(),to:dt.to(),text:this.splitLines(re[Ze]),origin:ye}}for(var Tt=le&&le!="end"&&za(this,ve,le),Ct=ve.length-1;Ct>=0;Ct--)Wo(this,ve[Ct]);Tt?ce(this,Tt):this.cm&&uu(this.cm)}),undo:Ks(function(){is(this,"undo")}),redo:Ks(function(){is(this,"redo")}),undoSelection:Ks(function(){is(this,"undo",!0)}),redoSelection:Ks(function(){is(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 Cl(this.history.maxGeneration),Ko(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:sl(this.history.done),undone:sl(this.history.undone)}},setHistory:function(re){var le=this.history=new Cl(this.history.maxGeneration);le.done=sl(re.done.slice(0),null,!0),le.undone=sl(re.undone.slice(0),null,!0)},setGutterMarker:Ks(function(re,le,ye){return Jl(this,re,"gutter",function(ve){var xe=ve.gutterMarkers||(ve.gutterMarkers={});return xe[le]=ye,!ye&&Be(xe)&&(ve.gutterMarkers=null),!0})}),clearGutter:Ks(function(re){var le=this;this.iter(function(ye){ye.gutterMarkers&&ye.gutterMarkers[re]&&Jl(le,ye,"gutter",function(){return ye.gutterMarkers[re]=null,Be(ye.gutterMarkers)&&(ye.gutterMarkers=null),!0})})}),lineInfo:function(re){var le;if(typeof re=="number"){if(!br(this,re)||(le=re,re=Gr(this,re),!re))return null}else if(le=xt(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:Ks(function(re,le,ye){return Jl(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:Ks(function(re,le,ye){return Jl(this,re,le=="gutter"?"gutter":"class",function(ve){var xe=le=="text"?"textClass":le=="background"?"bgClass":le=="gutter"?"gutterClass":"wrapClass",Ze=ve[xe];if(Ze)if(ye==null)ve[xe]=null;else{var dt=Ze.match(De(ye));if(!dt)return!1;var Tt=dt.index+dt[0].length;ve[xe]=Ze.slice(0,dt.index)+(!dt.index||Tt==Ze.length?"":" ")+Ze.slice(Tt)||null}else return!1;return!0})}),addLineWidget:Ks(function(re,le,ye){return Pf(this,re,le,ye)}),removeLineWidget:function(re){re.clear()},markText:function(re,le,ye){return Vd(this,zn(this,re),zn(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=zn(this,re),Vd(this,re,re,ye,"bookmark")},findMarksAt:function(re){re=zn(this,re);var le=[],ye=Gr(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=zn(this,re),le=zn(this,le);var ve=[],xe=re.line;return this.iter(re.line,le.line+1,function(Ze){var dt=Ze.markedSpans;if(dt)for(var Tt=0;Tt<dt.length;Tt++){var Ct=dt[Tt];!(Ct.to!=null&&xe==re.line&&re.ch>=Ct.to||Ct.from==null&&xe!=re.line||Ct.from!=null&&xe==le.line&&Ct.from>=le.ch)&&(!ye||ye(Ct.marker))&&ve.push(Ct.marker.parent||Ct.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 Ze=xe.text.length+ve;if(Ze>re)return le=re,!0;re-=Ze,++ye}),zn(this,Xt(ye,le))},indexFromPos:function(re){re=zn(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 ll(Ai(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 ll(Ai(this,le,ye),re.mode||this.modeOption,le,this.lineSep,this.direction);return re.sharedHist&&(ve.history=this.history),(this.linked||(this.linked=[])).push({doc:ve,sharedHist:re.sharedHist}),ve.linked=[{doc:this,isParent:!0,sharedHist:re.sharedHist}],Gg(ve,ep(this)),ve},unlinkDoc:function(re){if(re instanceof Ra&&(re=re.doc),this.linked)for(var le=0;le<this.linked.length;++le){var ye=this.linked[le];if(ye.doc==re){this.linked.splice(le,1),re.unlinkDoc(this),tp(ep(this));break}}if(re.history==this.history){var ve=[re.id];Ko(re,function(xe){return ve.push(xe.id)},!0),re.history=new Cl(null),re.history.done=sl(this.history.done,ve),re.history.undone=sl(this.history.undone,ve)}},iterLinkedDocs:function(re){Ko(this,re)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(re){return this.lineSep?re.split(this.lineSep):oi(re)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Ks(function(re){re!="rtl"&&(re="ltr"),re!=this.direction&&(this.direction=re,this.iter(function(le){return le.order=null}),this.cm&&qs(this.cm))})}),ll.prototype.eachLine=ll.prototype.iter;var Wh=0;function Zh(re){var le=this;if(qp(le),!(vn(le,re)||ca(le.display,re))){Xn(re),Ve&&(Wh=+new Date);var ye=Ps(le,re,!0),ve=re.dataTransfer.files;if(!(!ye||le.isReadOnly()))if(ve&&ve.length&&window.FileReader&&window.File)for(var xe=ve.length,Ze=Array(xe),dt=0,Tt=function(){++dt==xe&&Hs(le,function(){ye=zn(le.doc,ye);var mr={from:ye,to:ye,text:le.doc.splitLines(Ze.filter(function(yi){return yi!=null}).join(le.doc.lineSeparator())),origin:"paste"};Wo(le.doc,mr),ce(le.doc,Qa(zn(le.doc,ye),zn(le.doc,Ja(mr))))})()},Ct=function(mr,yi){if(le.options.allowDropFileTypes&&ct(le.options.allowDropFileTypes,mr.type)==-1){Tt();return}var wi=new FileReader;wi.onerror=function(){return Tt()},wi.onload=function(){var Di=wi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Di)){Tt();return}Ze[yi]=Di,Tt()},wi.readAsText(mr)},Wt=0;Wt<ve.length;Wt++)Ct(ve[Wt],Wt);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 rn;if(le.state.draggingText&&!le.state.draggingText.copy&&(rn=le.listSelections()),et(le.doc,Qa(ye,ye)),rn)for(var wr=0;wr<rn.length;++wr)gu(le.doc,"",rn[wr].anchor,rn[wr].head,"drag");le.replaceSelection(Kn,"around","paste"),le.display.input.focus()}}catch(mr){}}}}function Qp(re,le){if(Ve&&(!re.state.draggingText||+new Date-Wh<100)){vr(le);return}if(!(vn(re,le)||ca(re.display,le))&&(le.dataTransfer.setData("Text",re.getSelection()),le.dataTransfer.effectAllowed="copyMove",le.dataTransfer.setDragImage&&!St)){var ye=ot("img",null,null,"position: fixed; left: 0; top: 0;");ye.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",He&&(ye.width=ye.height=1,re.display.wrapper.appendChild(ye),ye._top=ye.offsetTop),le.dataTransfer.setDragImage(ye,0,0),He&&ye.parentNode.removeChild(ye)}}function Jp(re,le){var ye=Ps(re,le);if(ye){var ve=document.createDocumentFragment();ga(re,ye,ve),re.display.dragCursor||(re.display.dragCursor=ot("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),re.display.lineSpace.insertBefore(re.display.dragCursor,re.display.cursorDiv)),Je(re.display.dragCursor,ve)}}function qp(re){re.display.dragCursor&&(re.display.lineSpace.removeChild(re.display.dragCursor),re.display.dragCursor=null)}function Tf(re){if(document.getElementsByClassName){for(var le=document.getElementsByClassName("CodeMirror"),ye=[],ve=0;ve<le.length;ve++){var xe=le[ve].CodeMirror;xe&&ye.push(xe)}ye.length&&ye[0].operation(function(){for(var Ze=0;Ze<ye.length;Ze++)re(ye[Ze])})}}var Af=!1;function qu(){Af||(gh(),Af=!0)}function gh(){var re;Ot(window,"resize",function(){re==null&&(re=setTimeout(function(){re=null,Tf(np)},100))}),Ot(window,"blur",function(){return Tf(cc)})}function np(re){var le=re.display;le.cachedCharWidth=le.cachedTextHeight=le.cachedPaddingH=null,le.scrollbarsClipped=!1,re.setSize()}for(var Yc={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Kh=0;Kh<10;Kh++)Yc[Kh+48]=Yc[Kh+96]=String(Kh);for(var Nf=65;Nf<=90;Nf++)Yc[Nf]=String.fromCharCode(Nf);for(var Yh=1;Yh<=12;Yh++)Yc[Yh+111]=Yc[Yh+63235]="F"+Yh;var zu={};zu.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"},zu.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"},zu.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"},zu.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"]},zu.default=he?zu.macDefault:zu.pcDefault;function mh(re){var le=re.split(/-(?!$)/);re=le[le.length-1];for(var ye,ve,xe,Ze,dt=0;dt<le.length-1;dt++){var Tt=le[dt];if(/^(cmd|meta|m)$/i.test(Tt))Ze=!0;else if(/^a(lt)?$/i.test(Tt))ye=!0;else if(/^(c|ctrl|control)$/i.test(Tt))ve=!0;else if(/^s(hift)?$/i.test(Tt))xe=!0;else throw new Error("Unrecognized modifier name: "+Tt)}return ye&&(re="Alt-"+re),ve&&(re="Ctrl-"+re),Ze&&(re="Cmd-"+re),xe&&(re="Shift-"+re),re}function rp(re){var le={};for(var ye in re)if(re.hasOwnProperty(ye)){var ve=re[ye];if(/^(name|fallthrough|(de|at)tach)$/.test(ye))continue;if(ve=="..."){delete re[ye];continue}for(var xe=Hn(ye.split(" "),mh),Ze=0;Ze<xe.length;Ze++){var dt=void 0,Tt=void 0;Ze==xe.length-1?(Tt=xe.join(" "),dt=ve):(Tt=xe.slice(0,Ze+1).join(" "),dt="...");var Ct=le[Tt];if(!Ct)le[Tt]=dt;else if(Ct!=dt)throw new Error("Inconsistent bindings for "+Tt)}delete re[ye]}for(var Wt in le)re[Wt]=le[Wt];return re}function $u(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 $u(re,le.fallthrough,ye,ve);for(var Ze=0;Ze<le.fallthrough.length;Ze++){var dt=$u(re,le.fallthrough[Ze],ye,ve);if(dt)return dt}}}function fd(re){var le=typeof re=="string"?re:Yc[re.keyCode];return le=="Ctrl"||le=="Alt"||le=="Shift"||le=="Mod"}function Lf(re,le,ye){var ve=re;return le.altKey&&ve!="Alt"&&(re="Alt-"+re),(be?le.metaKey:le.ctrlKey)&&ve!="Ctrl"&&(re="Ctrl-"+re),(be?le.ctrlKey:le.metaKey)&&ve!="Mod"&&(re="Cmd-"+re),!ye&&le.shiftKey&&ve!="Shift"&&(re="Shift-"+re),re}function ip(re,le){if(He&&re.keyCode==34&&re.char)return!1;var ye=Yc[re.keyCode];return ye==null||re.altGraphKey?!1:(re.keyCode==3&&re.code&&(ye=re.code),Lf(ye,re,le))}function Wd(re){return typeof re=="string"?zu[re]:re}function Au(re,le){for(var ye=re.doc.sel.ranges,ve=[],xe=0;xe<ye.length;xe++){for(var Ze=le(ye[xe]);ve.length&&fr(Ze.from,Mt(ve).to)<=0;){var dt=ve.pop();if(fr(dt.from,Ze.from)<0){Ze.from=dt.from;break}}ve.push(Ze)}Na(re,function(){for(var Tt=ve.length-1;Tt>=0;Tt--)gu(re.doc,"",ve[Tt].from,ve[Tt].to,"+delete");uu(re)})}function op(re,le,ye){var ve=sn(re.text,le+ye,ye);return ve<0||ve>re.text.length?null:ve}function el(re,le,ye){var ve=op(re,le.ch,ye);return ve==null?null:new Xt(le.line,ve,ye<0?"after":"before")}function Xc(re,le,ye,ve,xe){if(re){le.doc.direction=="rtl"&&(xe=-xe);var Ze=Sn(ye,le.doc.direction);if(Ze){var dt=xe<0?Mt(Ze):Ze[0],Tt=xe<0==(dt.level==1),Ct=Tt?"after":"before",Wt;if(dt.level>0||le.doc.direction=="rtl"){var Kn=as(le,ye);Wt=xe<0?ye.text.length-1:0;var rn=fl(le,Kn,Wt).top;Wt=Mn(function(wr){return fl(le,Kn,wr).top==rn},xe<0==(dt.level==1)?dt.from:dt.to-1,Wt),Ct=="before"&&(Wt=op(ye,Wt,1))}else Wt=xe<0?dt.to:dt.from;return new Xt(ve,Wt,Ct)}}return new Xt(ve,xe<0?ye.text.length:0,xe<0?"before":"after")}function kf(re,le,ye,ve){var xe=Sn(le,re.doc.direction);if(!xe)return el(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 Ze=jt(xe,ye.ch,ye.sticky),dt=xe[Ze];if(re.doc.direction=="ltr"&&dt.level%2==0&&(ve>0?dt.to>ye.ch:dt.from<ye.ch))return el(le,ye,ve);var Tt=function($i,xo){return op(le,$i instanceof Xt?$i.ch:$i,xo)},Ct,Wt=function($i){return re.options.lineWrapping?(Ct=Ct||as(re,le),ms(re,le,Ct,$i)):{begin:0,end:le.text.length}},Kn=Wt(ye.sticky=="before"?Tt(ye,-1):ye.ch);if(re.doc.direction=="rtl"||dt.level==1){var rn=dt.level==1==ve<0,wr=Tt(ye,rn?1:-1);if(wr!=null&&(rn?wr<=dt.to&&wr<=Kn.end:wr>=dt.from&&wr>=Kn.begin)){var mr=rn?"before":"after";return new Xt(ye.line,wr,mr)}}var yi=function($i,xo,lo){for(var No=function(bs,Al){return Al?new Xt(ye.line,Tt(bs,1),"before"):new Xt(ye.line,bs,"after")};$i>=0&&$i<xe.length;$i+=xo){var Jo=xe[$i],uo=xo>0==(Jo.level!=1),ya=uo?lo.begin:Tt(lo.end,-1);if(Jo.from<=ya&&ya<Jo.to||(ya=uo?Jo.from:Tt(Jo.to,-1),lo.begin<=ya&&ya<lo.end))return No(ya,uo)}},wi=yi(Ze+ve,ve,Kn);if(wi)return wi;var Di=ve>0?Kn.end:Tt(Kn.begin,-1);return Di!=null&&!(ve>0&&Di==le.text.length)&&(wi=yi(ve>0?0:xe.length-1,ve,Wt(Di)),wi)?wi:null}var Cd={selectAll:ii,singleSelection:function(re){return re.setSelection(re.getCursor("anchor"),re.getCursor("head"),kt)},killLine:function(re){return Au(re,function(le){if(le.empty()){var ye=Gr(re.doc,le.head.line).text.length;return le.head.ch==ye&&le.head.line<re.lastLine()?{from:le.head,to:Xt(le.head.line+1,0)}:{from:le.head,to:Xt(le.head.line,ye)}}else return{from:le.from(),to:le.to()}})},deleteLine:function(re){return Au(re,function(le){return{from:Xt(le.from().line,0),to:zn(re.doc,Xt(le.to().line+1,0))}})},delLineLeft:function(re){return Au(re,function(le){return{from:Xt(le.from().line,0),to:le.from()}})},delWrappedLineLeft:function(re){return Au(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 Au(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(Xt(re.firstLine(),0))},goDocEnd:function(re){return re.extendSelection(Xt(re.lastLine()))},goLineStart:function(re){return re.extendSelectionsBy(function(le){return vh(re,le.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(re){return re.extendSelectionsBy(function(le){return Xh(re,le.head)},{origin:"+move",bias:1})},goLineEnd:function(re){return re.extendSelectionsBy(function(le){return yh(re,le.head.line)},{origin:"+move",bias:-1})},goLineRight:function(re){return re.extendSelectionsBy(function(le){var ye=re.cursorCoords(le.head,"div").top+5;return re.coordsChar({left:re.display.lineDiv.offsetWidth+100,top:ye},"div")},An)},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")},An)},goLineLeftSmart:function(re){return re.extendSelectionsBy(function(le){var ye=re.cursorCoords(le.head,"div").top+5,ve=re.coordsChar({left:0,top:ye},"div");return ve.ch<re.getLine(ve.line).search(/\S/)?Xh(re,le.head):ve},An)},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 Ze=ye[xe].from(),dt=bt(re.getLine(Ze.line),Ze.ch,ve);le.push(Bn(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,Ze=Gr(re.doc,xe.line).text;if(Ze){if(xe.ch==Ze.length&&(xe=new Xt(xe.line,xe.ch-1)),xe.ch>0)xe=new Xt(xe.line,xe.ch+1),re.replaceRange(Ze.charAt(xe.ch-1)+Ze.charAt(xe.ch-2),Xt(xe.line,xe.ch-2),xe,"+transpose");else if(xe.line>re.doc.first){var dt=Gr(re.doc,xe.line-1).text;dt&&(xe=new Xt(xe.line,1),re.replaceRange(Ze.charAt(0)+re.doc.lineSeparator()+dt.charAt(dt.length-1),Xt(xe.line-1,dt.length-1),xe,"+transpose"))}}ye.push(new Do(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);uu(re)})},openLine:function(re){return re.replaceSelection(`
`,"start")},toggleOverwrite:function(re){return re.toggleOverwrite()}};function vh(re,le){var ye=Gr(re.doc,le),ve=wn(ye);return ve!=ye&&(le=xt(ve)),Xc(!0,re,ve,le,1)}function yh(re,le){var ye=Gr(re.doc,le),ve=jn(ye);return ve!=ye&&(le=xt(ve)),Xc(!0,re,ye,le,-1)}function Xh(re,le){var ye=vh(re,le.line),ve=Gr(re.doc,ye.line),xe=Sn(ve,re.doc.direction);if(!xe||xe[0].level==0){var Ze=Math.max(ye.ch,ve.text.search(/\S/)),dt=le.line==ye.line&&le.ch<=Ze&&le.ch;return Xt(ye.line,dt?0:Ze,ye.sticky)}return ye}function Sh(re,le,ye){if(typeof le=="string"&&(le=Cd[le],!le))return!1;re.display.input.ensurePolled();var ve=re.display.shift,xe=!1;try{re.isReadOnly()&&(re.state.suppressEdits=!0),ye&&(re.display.shift=!1),xe=le(re)!=fn}finally{re.display.shift=ve,re.state.suppressEdits=!1}return xe}function ap(re,le,ye){for(var ve=0;ve<re.state.keyMaps.length;ve++){var xe=$u(le,re.state.keyMaps[ve],ye,re);if(xe)return xe}return re.options.extraKeys&&$u(le,re.options.extraKeys,ye,re)||$u(le,re.options.keyMap,ye,re)}var Qc=new ft;function Zd(re,le,ye,ve){var xe=re.state.keySeq;if(xe){if(fd(le))return"handled";if(/\'$/.test(le)?re.state.keySeq=null:Qc.set(50,function(){re.state.keySeq==xe&&(re.state.keySeq=null,re.display.input.reset())}),If(re,xe+" "+le,ye,ve))return!0}return If(re,le,ye,ve)}function If(re,le,ye,ve){var xe=ap(re,le,ve);return xe=="multi"&&(re.state.keySeq=le),xe=="handled"&&Xi(re,"keyHandled",re,le,ye),(xe=="handled"||xe=="multi")&&(Xn(ye),Pa(re)),!!xe}function Df(re,le){var ye=ip(le,!0);return ye?le.shiftKey&&!re.state.keySeq?Zd(re,"Shift-"+ye,le,function(ve){return Sh(re,ve,!0)})||Zd(re,ye,le,function(ve){if(typeof ve=="string"?/^go[A-Z]/.test(ve):ve.motion)return Sh(re,ve)}):Zd(re,ye,le,function(ve){return Sh(re,ve)}):!1}function Rf(re,le,ye){return Zd(re,"'"+ye+"'",le,function(ve){return Sh(re,ve,!0)})}var Pd=null;function sp(re){var le=this;if(!(re.target&&re.target!=le.display.input.getField())&&(le.curOp.focus=wt(),!vn(le,re))){Ve&&Te<11&&re.keyCode==27&&(re.returnValue=!1);var ye=re.keyCode;le.display.shift=ye==16||re.shiftKey;var ve=Df(le,re);He&&(Pd=ve?ye:null,!ve&&ye==88&&!cr&&(he?re.metaKey:re.ctrlKey)&&le.replaceSelection("",null,"cut")),oe&&!he&&!ve&&ye==46&&re.shiftKey&&!re.ctrlKey&&document.execCommand&&document.execCommand("cut"),ye==18&&!/\bCodeMirror-crosshair\b/.test(le.display.lineDiv.className)&&lp(le)}}function lp(re){var le=re.display.lineDiv;Nt(le,"CodeMirror-crosshair");function ye(ve){(ve.keyCode==18||!ve.altKey)&&(Ye(le,"CodeMirror-crosshair"),Zt(document,"keyup",ye),Zt(document,"mouseover",ye))}Ot(document,"keyup",ye),Ot(document,"mouseover",ye)}function up(re){re.keyCode==16&&(this.doc.sel.shift=!1),vn(this,re)}function Mc(re){var le=this;if(!(re.target&&re.target!=le.display.input.getField())&&!(ca(le.display,re)||vn(le,re)||re.ctrlKey&&!re.altKey||he&&re.metaKey)){var ye=re.keyCode,ve=re.charCode;if(He&&ye==Pd){Pd=null,Xn(re);return}if(!(He&&(!re.which||re.which<10)&&Df(le,re))){var xe=String.fromCharCode(ve==null?ye:ve);xe!="\b"&&(Rf(le,re,xe)||le.display.input.onKeyPress(re))}}}var cp=400,dp=function(re,le,ye){this.time=re,this.pos=le,this.button=ye};dp.prototype.compare=function(re,le,ye){return this.time+cp>re&&fr(le,this.pos)==0&&ye==this.button};var bh,Kd;function hp(re,le){var ye=+new Date;return Kd&&Kd.compare(ye,re,le)?(bh=Kd=null,"triple"):bh&&bh.compare(ye,re,le)?(Kd=new dp(ye,re,le),bh=null,"double"):(bh=new dp(ye,re,le),Kd=null,"single")}function Oc(re){var le=this,ye=le.display;if(!(vn(le,re)||ye.activeTouch&&ye.input.supportsTouch())){if(ye.input.ensurePolled(),ye.shift=re.shiftKey,ca(ye,re)){Ge||(ye.scroller.draggable=!1,setTimeout(function(){return ye.scroller.draggable=!0},100));return}if(!Mf(le,re)){var ve=Ps(le,re),xe=Lr(re),Ze=ve?hp(ve,xe):"single";window.focus(),xe==1&&le.state.selectingText&&le.state.selectingText(re),!(ve&&fp(le,xe,ve,Ze,re))&&(xe==1?ve?pp(le,ve,Ze,re):$r(re)==ye.scroller&&Xn(re):xe==2?(ve&&hc(le.doc,ve),setTimeout(function(){return ye.input.focus()},20)):xe==3&&(Ae?le.display.input.onContextMenu(re):Va(le)))}}}function fp(re,le,ye,ve,xe){var Ze="Click";return ve=="double"?Ze="Double"+Ze:ve=="triple"&&(Ze="Triple"+Ze),Ze=(le==1?"Left":le==2?"Middle":"Right")+Ze,Zd(re,Lf(Ze,xe),xe,function(dt){if(typeof dt=="string"&&(dt=Cd[dt]),!dt)return!1;var Tt=!1;try{re.isReadOnly()&&(re.state.suppressEdits=!0),Tt=dt(re,ye)!=fn}finally{re.state.suppressEdits=!1}return Tt})}function Yd(re,le,ye){var ve=re.getOption("configureMouse"),xe=ve?ve(re,le,ye):{};if(xe.unit==null){var Ze=ue?ye.shiftKey&&ye.metaKey:ye.altKey;xe.unit=Ze?"rectangle":le=="single"?"char":le=="double"?"word":"line"}return(xe.extend==null||re.doc.extend)&&(xe.extend=re.doc.extend||ye.shiftKey),xe.addNew==null&&(xe.addNew=he?ye.metaKey:ye.ctrlKey),xe.moveOnDrag==null&&(xe.moveOnDrag=!(he?ye.altKey:ye.ctrlKey)),xe}function pp(re,le,ye,ve){Ve?setTimeout(Yt(ka,re),0):re.curOp.focus=wt();var xe=Yd(re,ye,ve),Ze=re.doc.sel,dt;re.options.dragDrop&&Rn&&!re.isReadOnly()&&ye=="single"&&(dt=Ze.contains(le))>-1&&(fr((dt=Ze.ranges[dt]).from(),le)<0||le.xRel>0)&&(fr(dt.to(),le)>0||le.xRel<0)?gp(re,ve,le,xe):jg(re,ve,le,xe)}function gp(re,le,ye,ve){var xe=re.display,Ze=!1,dt=Hs(re,function(Wt){Ge&&(xe.scroller.draggable=!1),re.state.draggingText=!1,Zt(xe.wrapper.ownerDocument,"mouseup",dt),Zt(xe.wrapper.ownerDocument,"mousemove",Tt),Zt(xe.scroller,"dragstart",Ct),Zt(xe.scroller,"drop",dt),Ze||(Xn(Wt),ve.addNew||hc(re.doc,ye,null,null,ve.extend),Ge&&!St||Ve&&Te==9?setTimeout(function(){xe.wrapper.ownerDocument.body.focus({preventScroll:!0}),xe.input.focus()},20):xe.input.focus())}),Tt=function(Wt){Ze=Ze||Math.abs(le.clientX-Wt.clientX)+Math.abs(le.clientY-Wt.clientY)>=10},Ct=function(){return Ze=!0};Ge&&(xe.scroller.draggable=!0),re.state.draggingText=dt,dt.copy=!ve.moveOnDrag,xe.scroller.dragDrop&&xe.scroller.dragDrop(),Ot(xe.wrapper.ownerDocument,"mouseup",dt),Ot(xe.wrapper.ownerDocument,"mousemove",Tt),Ot(xe.scroller,"dragstart",Ct),Ot(xe.scroller,"drop",dt),Va(re),setTimeout(function(){return xe.input.focus()},20)}function mp(re,le,ye){if(ye=="char")return new Do(le,le);if(ye=="word")return re.findWordAt(le);if(ye=="line")return new Do(Xt(le.line,0),zn(re.doc,Xt(le.line+1,0)));var ve=ye(re,le);return new Do(ve.from,ve.to)}function jg(re,le,ye,ve){var xe=re.display,Ze=re.doc;Xn(le);var dt,Tt,Ct=Ze.sel,Wt=Ct.ranges;if(ve.addNew&&!ve.extend?(Tt=Ze.sel.contains(ye),Tt>-1?dt=Wt[Tt]:dt=new Do(ye,ye)):(dt=Ze.sel.primary(),Tt=Ze.sel.primIndex),ve.unit=="rectangle")ve.addNew||(dt=new Do(ye,ye)),ye=Ps(re,le,!0,!0),Tt=-1;else{var Kn=mp(re,ye,ve.unit);ve.extend?dt=Xu(dt,Kn.anchor,Kn.head,ve.extend):dt=Kn}ve.addNew?Tt==-1?(Tt=Wt.length,ge(Ze,Bo(re,Wt.concat([dt]),Tt),{scroll:!1,origin:"*mouse"})):Wt.length>1&&Wt[Tt].empty()&&ve.unit=="char"&&!ve.extend?(ge(Ze,Bo(re,Wt.slice(0,Tt).concat(Wt.slice(Tt+1)),0),{scroll:!1,origin:"*mouse"}),Ct=Ze.sel):Pl(Ze,Tt,dt,bn):(Tt=0,ge(Ze,new ao([dt],0),bn),Ct=Ze.sel);var rn=ye;function wr(lo){if(fr(rn,lo)!=0)if(rn=lo,ve.unit=="rectangle"){for(var No=[],Jo=re.options.tabSize,uo=bt(Gr(Ze,ye.line).text,ye.ch,Jo),ya=bt(Gr(Ze,lo.line).text,lo.ch,Jo),bs=Math.min(uo,ya),Al=Math.max(uo,ya),Ms=Math.min(ye.line,lo.line),Nu=Math.min(re.lastLine(),Math.max(ye.line,lo.line));Ms<=Nu;Ms++){var ql=Gr(Ze,Ms).text,yl=Yn(ql,bs,Jo);bs==Al?No.push(new Do(Xt(Ms,yl),Xt(Ms,yl))):ql.length>yl&&No.push(new Do(Xt(Ms,yl),Xt(Ms,Yn(ql,Al,Jo))))}No.length||No.push(new Do(ye,ye)),ge(Ze,Bo(re,Ct.ranges.slice(0,Tt).concat(No),Tt),{origin:"*mouse",scroll:!1}),re.scrollIntoView(lo)}else{var Lu=dt,Hl=mp(re,lo,ve.unit),Sl=Lu.anchor,Ma;fr(Hl.anchor,Sl)>0?(Ma=Hl.head,Sl=Nr(Lu.from(),Hl.anchor)):(Ma=Hl.anchor,Sl=Ue(Lu.to(),Hl.head));var Os=Ct.ranges.slice(0);Os[Tt]=$p(re,new Do(zn(Ze,Sl),Ma)),ge(Ze,Bo(re,Os,Tt),bn)}}var mr=xe.wrapper.getBoundingClientRect(),yi=0;function wi(lo){var No=++yi,Jo=Ps(re,lo,!0,ve.unit=="rectangle");if(Jo)if(fr(Jo,rn)!=0){re.curOp.focus=wt(),wr(Jo);var uo=ra(xe,Ze);(Jo.line>=uo.to||Jo.line<uo.from)&&setTimeout(Hs(re,function(){yi==No&&wi(lo)}),150)}else{var ya=lo.clientY<mr.top?-20:lo.clientY>mr.bottom?20:0;ya&&setTimeout(Hs(re,function(){yi==No&&(xe.scroller.scrollTop+=ya,wi(lo))}),50)}}function Di(lo){re.state.selectingText=!1,yi=1/0,lo&&(Xn(lo),xe.input.focus()),Zt(xe.wrapper.ownerDocument,"mousemove",$i),Zt(xe.wrapper.ownerDocument,"mouseup",xo),Ze.history.lastSelOrigin=null}var $i=Hs(re,function(lo){lo.buttons===0||!Lr(lo)?Di(lo):wi(lo)}),xo=Hs(re,Di);re.state.selectingText=xo,Ot(xe.wrapper.ownerDocument,"mousemove",$i),Ot(xe.wrapper.ownerDocument,"mouseup",xo)}function $p(re,le){var ye=le.anchor,ve=le.head,xe=Gr(re.doc,ye.line);if(fr(ye,ve)==0&&ye.sticky==ve.sticky)return le;var Ze=Sn(xe);if(!Ze)return le;var dt=jt(Ze,ye.ch,ye.sticky),Tt=Ze[dt];if(Tt.from!=ye.ch&&Tt.to!=ye.ch)return le;var Ct=dt+(Tt.from==ye.ch==(Tt.level!=1)?0:1);if(Ct==0||Ct==Ze.length)return le;var Wt;if(ve.line!=ye.line)Wt=(ve.line-ye.line)*(re.doc.direction=="ltr"?1:-1)>0;else{var Kn=jt(Ze,ve.ch,ve.sticky),rn=Kn-dt||(ve.ch-ye.ch)*(Tt.level==1?-1:1);Kn==Ct-1||Kn==Ct?Wt=rn<0:Wt=rn>0}var wr=Ze[Ct+(Wt?-1:0)],mr=Wt==(wr.level==1),yi=mr?wr.from:wr.to,wi=mr?"after":"before";return ye.ch==yi&&ye.sticky==wi?le:new Do(new Xt(ye.line,yi,wi),ve)}function Td(re,le,ye,ve){var xe,Ze;if(le.touches)xe=le.touches[0].clientX,Ze=le.touches[0].clientY;else try{xe=le.clientX,Ze=le.clientY}catch(wr){return!1}if(xe>=Math.floor(re.display.gutters.getBoundingClientRect().right))return!1;ve&&Xn(le);var dt=re.display,Tt=dt.lineDiv.getBoundingClientRect();if(Ze>Tt.bottom||!mn(re,ye))return nn(le);Ze-=Tt.top-dt.viewOffset;for(var Ct=0;Ct<re.display.gutterSpecs.length;++Ct){var Wt=dt.gutters.childNodes[Ct];if(Wt&&Wt.getBoundingClientRect().right>=xe){var Kn=on(re.doc,Ze),rn=re.display.gutterSpecs[Ct];return tn(re,ye,re,Kn,rn.className,le),nn(le)}}}function Mf(re,le){return Td(re,le,"gutterClick",!0)}function Qh(re,le){ca(re.display,le)||eg(re,le)||vn(re,le,"contextmenu")||Ae||re.display.input.onContextMenu(le)}function eg(re,le){return mn(re,"gutterContextMenu")?Td(re,le,"gutterContextMenu",!1):!1}function Of(re){re.display.wrapper.className=re.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+re.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Yu(re)}var Xd={toString:function(){return"CodeMirror.Init"}},vp={},Qd={};function tg(re){var le=re.optionHandlers;function ye(ve,xe,Ze,dt){re.defaults[ve]=xe,Ze&&(le[ve]=dt?function(Tt,Ct,Wt){Wt!=Xd&&Ze(Tt,Ct,Wt)}:Ze)}re.defineOption=ye,re.Init=Xd,ye("value","",function(ve,xe){return ve.setValue(xe)},!0),ye("mode",null,function(ve,xe){ve.doc.modeOption=xe,Co(ve)},!0),ye("indentUnit",2,Co,!0),ye("indentWithTabs",!1),ye("smartIndent",!0),ye("tabSize",4,function(ve){ml(ve),Yu(ve),oa(ve)},!0),ye("lineSeparator",null,function(ve,xe){if(ve.doc.lineSep=xe,!!xe){var Ze=[],dt=ve.doc.first;ve.doc.iter(function(Ct){for(var Wt=0;;){var Kn=Ct.text.indexOf(xe,Wt);if(Kn==-1)break;Wt=Kn+xe.length,Ze.push(Xt(dt,Kn))}dt++});for(var Tt=Ze.length-1;Tt>=0;Tt--)gu(ve.doc,xe,Ze[Tt],Xt(Ze[Tt].line,Ze[Tt].ch+xe.length))}}),ye("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ve,xe,Ze){ve.state.specialChars=new RegExp(xe.source+(xe.test(" ")?"":"| "),"g"),Ze!=Xd&&ve.refresh()}),ye("specialCharPlaceholder",bo,function(ve){return ve.refresh()},!0),ye("electricChars",!0),ye("inputStyle",ee?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ye("spellcheck",!1,function(ve,xe){return ve.getInputField().spellcheck=xe},!0),ye("autocorrect",!1,function(ve,xe){return ve.getInputField().autocorrect=xe},!0),ye("autocapitalize",!1,function(ve,xe){return ve.getInputField().autocapitalize=xe},!0),ye("rtlMoveVisually",!fe),ye("wholeLineUpdateBefore",!0),ye("theme","default",function(ve){Of(ve),tr(ve)},!0),ye("keyMap","default",function(ve,xe,Ze){var dt=Wd(xe),Tt=Ze!=Xd&&Wd(Ze);Tt&&Tt.detach&&Tt.detach(ve,dt),dt.attach&&dt.attach(ve,Tt||null)}),ye("extraKeys",null),ye("configureMouse",null),ye("lineWrapping",!1,ng,!0),ye("gutters",[],function(ve,xe){ve.display.gutterSpecs=Sr(xe,ve.options.lineNumbers),tr(ve)},!0),ye("fixedGutter",!0,function(ve,xe){ve.display.gutters.style.left=xe?uc(ve.display)+"px":"0",ve.refresh()},!0),ye("coverGutterNextToScrollbar",!1,function(ve){return As(ve)},!0),ye("scrollbarStyle","native",function(ve){Nl(ve),As(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=Sr(ve.options.gutters,xe),tr(ve)},!0),ye("firstLineNumber",1,tr,!0),ye("lineNumberFormatter",function(ve){return ve},tr,!0),ye("showCursorWhenSelecting",!1,Ts,!0),ye("resetSelectionOnContextMenu",!0),ye("lineWiseCopyCut",!0),ye("pasteLinesPerSelection",!0),ye("selectionsMayTouch",!1),ye("readOnly",!1,function(ve,xe){xe=="nocursor"&&(cc(ve),ve.display.input.blur()),ve.display.input.readOnlyChanged(xe)}),ye("screenReaderLabel",null,function(ve,xe){xe=xe===""?null:xe,ve.display.input.screenReaderLabelChanged(xe)}),ye("disableInput",!1,function(ve,xe){xe||ve.display.input.reset()},!0),ye("dragDrop",!0,Ff),ye("allowDropFileTypes",null),ye("cursorBlinkRate",530),ye("cursorScrollMargin",0),ye("cursorHeight",1,Ts,!0),ye("singleCursorHeightPerLine",!0,Ts,!0),ye("workTime",100),ye("workDelay",100),ye("flattenSpans",!0,ml,!0),ye("addModeClass",!1,ml,!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,ml,!0),ye("moveInputWithCursor",!0,function(ve,xe){xe||ve.display.input.resetPosition()}),ye("tabindex",null,function(ve,xe){return ve.display.input.getField().tabIndex=xe||""}),ye("autofocus",null),ye("direction","ltr",function(ve,xe){return ve.doc.setDirection(xe)},!0),ye("phrases",null)}function Ff(re,le,ye){var ve=ye&&ye!=Xd;if(!le!=!ve){var xe=re.display.dragFunctions,Ze=le?Ot:Zt;Ze(re.display.scroller,"dragstart",xe.start),Ze(re.display.scroller,"dragenter",xe.enter),Ze(re.display.scroller,"dragover",xe.over),Ze(re.display.scroller,"dragleave",xe.leave),Ze(re.display.scroller,"drop",xe.drop)}}function ng(re){re.options.lineWrapping?(Nt(re.display.wrapper,"CodeMirror-wrap"),re.display.sizer.style.minWidth="",re.display.sizerWidth=null):(Ye(re.display.wrapper,"CodeMirror-wrap"),ai(re)),To(re),oa(re),Yu(re),setTimeout(function(){return As(re)},100)}function Ra(re,le){var ye=this;if(!(this instanceof Ra))return new Ra(re,le);this.options=le=le?yn(le):{},yn(vp,le,!1);var ve=le.value;typeof ve=="string"?ve=new ll(ve,le.mode,null,le.lineSeparator,le.direction):le.mode&&(ve.modeOption=le.mode),this.doc=ve;var xe=new Ra.inputStyles[le.inputStyle](this),Ze=this.display=new Zr(re,ve,xe,le);Ze.wrapper.CodeMirror=this,Of(this),le.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Nl(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&&Ze.input.focus(),Ve&&Te<11&&setTimeout(function(){return ye.display.input.reset(!0)},20),Eh(this),qu(),Ll(this),this.curOp.forceUpdate=!0,wa(this,ve),le.autofocus&&!ee||this.hasFocus()?setTimeout(function(){ye.hasFocus()&&!ye.state.focused&&ea(ye)},20):cc(this);for(var dt in Qd)Qd.hasOwnProperty(dt)&&Qd[dt](this,le[dt],Xd);Nn(this),le.finishInit&&le.finishInit(this);for(var Tt=0;Tt<Ad.length;++Tt)Ad[Tt](this);cu(this),Ge&&le.lineWrapping&&getComputedStyle(Ze.lineDiv).textRendering=="optimizelegibility"&&(Ze.lineDiv.style.textRendering="auto")}Ra.defaults=vp,Ra.optionHandlers=Qd;function Eh(re){var le=re.display;Ot(le.scroller,"mousedown",Hs(re,Oc)),Ve&&Te<11?Ot(le.scroller,"dblclick",Hs(re,function(Ct){if(!vn(re,Ct)){var Wt=Ps(re,Ct);if(!(!Wt||Mf(re,Ct)||ca(re.display,Ct))){Xn(Ct);var Kn=re.findWordAt(Wt);hc(re.doc,Kn.anchor,Kn.head)}}})):Ot(le.scroller,"dblclick",function(Ct){return vn(re,Ct)||Xn(Ct)}),Ot(le.scroller,"contextmenu",function(Ct){return Qh(re,Ct)}),Ot(le.input.getField(),"contextmenu",function(Ct){le.scroller.contains(Ct.target)||Qh(re,Ct)});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 Ze(Ct){if(Ct.touches.length!=1)return!1;var Wt=Ct.touches[0];return Wt.radiusX<=1&&Wt.radiusY<=1}function dt(Ct,Wt){if(Wt.left==null)return!0;var Kn=Wt.left-Ct.left,rn=Wt.top-Ct.top;return Kn*Kn+rn*rn>20*20}Ot(le.scroller,"touchstart",function(Ct){if(!vn(re,Ct)&&!Ze(Ct)&&!Mf(re,Ct)){le.input.ensurePolled(),clearTimeout(ye);var Wt=+new Date;le.activeTouch={start:Wt,moved:!1,prev:Wt-ve.end<=300?ve:null},Ct.touches.length==1&&(le.activeTouch.left=Ct.touches[0].pageX,le.activeTouch.top=Ct.touches[0].pageY)}}),Ot(le.scroller,"touchmove",function(){le.activeTouch&&(le.activeTouch.moved=!0)}),Ot(le.scroller,"touchend",function(Ct){var Wt=le.activeTouch;if(Wt&&!ca(le,Ct)&&Wt.left!=null&&!Wt.moved&&new Date-Wt.start<300){var Kn=re.coordsChar(le.activeTouch,"page"),rn;!Wt.prev||dt(Wt,Wt.prev)?rn=new Do(Kn,Kn):!Wt.prev.prev||dt(Wt,Wt.prev.prev)?rn=re.findWordAt(Kn):rn=new Do(Xt(Kn.line,0),zn(re.doc,Xt(Kn.line+1,0))),re.setSelection(rn.anchor,rn.head),re.focus(),Xn(Ct)}xe()}),Ot(le.scroller,"touchcancel",xe),Ot(le.scroller,"scroll",function(){le.scroller.clientHeight&&(gl(re,le.scroller.scrollTop),il(re,le.scroller.scrollLeft,!0),tn(re,"scroll",re))}),Ot(le.scroller,"mousewheel",function(Ct){return ta(re,Ct)}),Ot(le.scroller,"DOMMouseScroll",function(Ct){return ta(re,Ct)}),Ot(le.wrapper,"scroll",function(){return le.wrapper.scrollTop=le.wrapper.scrollLeft=0}),le.dragFunctions={enter:function(Ct){vn(re,Ct)||vr(Ct)},over:function(Ct){vn(re,Ct)||(Jp(re,Ct),vr(Ct))},start:function(Ct){return Qp(re,Ct)},drop:Hs(re,Zh),leave:function(Ct){vn(re,Ct)||qp(re)}};var Tt=le.input.getField();Ot(Tt,"keyup",function(Ct){return up.call(re,Ct)}),Ot(Tt,"keydown",Hs(re,sp)),Ot(Tt,"keypress",Hs(re,Mc)),Ot(Tt,"focus",function(Ct){return ea(re,Ct)}),Ot(Tt,"blur",function(Ct){return cc(re,Ct)})}var Ad=[];Ra.defineInitHook=function(re){return Ad.push(re)};function Tl(re,le,ye,ve){var xe=re.doc,Ze;ye==null&&(ye="add"),ye=="smart"&&(xe.mode.indent?Ze=ji(re,le).state:ye="prev");var dt=re.options.tabSize,Tt=Gr(xe,le),Ct=bt(Tt.text,null,dt);Tt.stateAfter&&(Tt.stateAfter=null);var Wt=Tt.text.match(/^\s*/)[0],Kn;if(!ve&&!/\S/.test(Tt.text))Kn=0,ye="not";else if(ye=="smart"&&(Kn=xe.mode.indent(Ze,Tt.text.slice(Wt.length),Tt.text),Kn==fn||Kn>150)){if(!ve)return;ye="prev"}ye=="prev"?le>xe.first?Kn=bt(Gr(xe,le-1).text,null,dt):Kn=0:ye=="add"?Kn=Ct+re.options.indentUnit:ye=="subtract"?Kn=Ct-re.options.indentUnit:typeof ye=="number"&&(Kn=Ct+ye),Kn=Math.max(0,Kn);var rn="",wr=0;if(re.options.indentWithTabs)for(var mr=Math.floor(Kn/dt);mr;--mr)wr+=dt,rn+=" ";if(wr<Kn&&(rn+=Bn(Kn-wr)),rn!=Wt)return gu(xe,rn,Xt(le,0),Xt(le,Wt.length),"+input"),Tt.stateAfter=null,!0;for(var yi=0;yi<xe.sel.ranges.length;yi++){var wi=xe.sel.ranges[yi];if(wi.head.line==le&&wi.head.ch<Wt.length){var Di=Xt(le,Wt.length);Pl(xe,yi,new Do(Di,Di));break}}}var mu=null;function xh(re){mu=re}function Jd(re,le,ye,ve,xe){var Ze=re.doc;re.display.shift=!1,ve||(ve=Ze.sel);var dt=+new Date-200,Tt=xe=="paste"||re.state.pasteIncoming>dt,Ct=oi(le),Wt=null;if(Tt&&ve.ranges.length>1)if(mu&&mu.text.join(`
`)==le){if(ve.ranges.length%mu.text.length==0){Wt=[];for(var Kn=0;Kn<mu.text.length;Kn++)Wt.push(Ze.splitLines(mu.text[Kn]))}}else Ct.length==ve.ranges.length&&re.options.pasteLinesPerSelection&&(Wt=Hn(Ct,function($i){return[$i]}));for(var rn=re.curOp.updateInput,wr=ve.ranges.length-1;wr>=0;wr--){var mr=ve.ranges[wr],yi=mr.from(),wi=mr.to();mr.empty()&&(ye&&ye>0?yi=Xt(yi.line,yi.ch-ye):re.state.overwrite&&!Tt?wi=Xt(wi.line,Math.min(Gr(Ze,wi.line).text.length,wi.ch+Mt(Ct).length)):Tt&&mu&&mu.lineWise&&mu.text.join(`
`)==Ct.join(`
`)&&(yi=wi=Xt(yi.line,0)));var Di={from:yi,to:wi,text:Wt?Wt[wr%Wt.length]:Ct,origin:xe||(Tt?"paste":re.state.cutIncoming>dt?"cut":"+input")};Wo(re.doc,Di),Xi(re,"inputRead",re,Di)}le&&!Tt&&Sp(re,le),uu(re),re.curOp.updateInput<2&&(re.curOp.updateInput=rn),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 Jd(le,ye,0,null,"paste")}),!0}function Sp(re,le){if(!(!re.options.electricChars||!re.options.smartIndent))for(var ye=re.doc.sel,ve=ye.ranges.length-1;ve>=0;ve--){var xe=ye.ranges[ve];if(!(xe.head.ch>100||ve&&ye.ranges[ve-1].head.line==xe.head.line)){var Ze=re.getModeAt(xe.head),dt=!1;if(Ze.electricChars){for(var Tt=0;Tt<Ze.electricChars.length;Tt++)if(le.indexOf(Ze.electricChars.charAt(Tt))>-1){dt=Tl(re,xe.head.line,"smart");break}}else Ze.electricInput&&Ze.electricInput.test(Gr(re.doc,xe.head.line).text.slice(0,xe.head.ch))&&(dt=Tl(re,xe.head.line,"smart"));dt&&Xi(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,Ze={anchor:Xt(xe,0),head:Xt(xe+1,0)};ye.push(Ze),le.push(re.getRange(Ze.anchor,Ze.head))}return{text:le,ranges:ye}}function Ep(re,le,ye,ve){re.setAttribute("autocorrect",ye?"":"off"),re.setAttribute("autocapitalize",ve?"":"off"),re.setAttribute("spellcheck",!!le)}function xp(){var re=ot("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),le=ot("div",[re],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ge?re.style.width="1000px":re.setAttribute("wrap","off"),Fe&&(re.style.border="1px solid black"),Ep(re),le}function Nd(re){var le=re.optionHandlers,ye=re.helpers={};re.prototype={constructor:re,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ve,xe){var Ze=this.options,dt=Ze[ve];Ze[ve]==xe&&ve!="mode"||(Ze[ve]=xe,le.hasOwnProperty(ve)&&Hs(this,le[ve])(this,xe,dt),tn(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,Ze=0;Ze<xe.length;++Ze)if(xe[Ze]==ve||xe[Ze].name==ve)return xe.splice(Ze,1),!0},addOverlay:Js(function(ve,xe){var Ze=ve.token?ve:re.getMode(this.options,ve);if(Ze.startState)throw new Error("Overlays may not be stateful.");ur(this.state.overlays,{mode:Ze,modeSpec:ve,opaque:xe&&xe.opaque,priority:xe&&xe.priority||0},function(dt){return dt.priority}),this.state.modeGen++,oa(this)}),removeOverlay:Js(function(ve){for(var xe=this.state.overlays,Ze=0;Ze<xe.length;++Ze){var dt=xe[Ze].modeSpec;if(dt==ve||typeof ve=="string"&&dt.name==ve){xe.splice(Ze,1),this.state.modeGen++,oa(this);return}}}),indentLine:Js(function(ve,xe,Ze){typeof xe!="string"&&typeof xe!="number"&&(xe==null?xe=this.options.smartIndent?"smart":"prev":xe=xe?"add":"subtract"),br(this.doc,ve)&&Tl(this,ve,xe,Ze)}),indentSelection:Js(function(ve){for(var xe=this.doc.sel.ranges,Ze=-1,dt=0;dt<xe.length;dt++){var Tt=xe[dt];if(Tt.empty())Tt.head.line>Ze&&(Tl(this,Tt.head.line,ve,!0),Ze=Tt.head.line,dt==this.doc.sel.primIndex&&uu(this));else{var Ct=Tt.from(),Wt=Tt.to(),Kn=Math.max(Ze,Ct.line);Ze=Math.min(this.lastLine(),Wt.line-(Wt.ch?0:1))+1;for(var rn=Kn;rn<Ze;++rn)Tl(this,rn,ve);var wr=this.doc.sel.ranges;Ct.ch==0&&xe.length==wr.length&&wr[dt].from().ch>0&&Pl(this.doc,dt,new Do(Ct,wr[dt].to()),kt)}}}),getTokenAt:function(ve,xe){return ti(this,ve,xe)},getLineTokens:function(ve,xe){return ti(this,Xt(ve),xe,!0)},getTokenTypeAt:function(ve){ve=zn(this.doc,ve);var xe=Ci(this,Gr(this.doc,ve.line)),Ze=0,dt=(xe.length-1)/2,Tt=ve.ch,Ct;if(Tt==0)Ct=xe[2];else for(;;){var Wt=Ze+dt>>1;if((Wt?xe[Wt*2-1]:0)>=Tt)dt=Wt;else if(xe[Wt*2+1]<Tt)Ze=Wt+1;else{Ct=xe[Wt*2+2];break}}var Kn=Ct?Ct.indexOf("overlay "):-1;return Kn<0?Ct:Kn==0?null:Ct.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 Ze=[];if(!ye.hasOwnProperty(xe))return Ze;var dt=ye[xe],Tt=this.getModeAt(ve);if(typeof Tt[xe]=="string")dt[Tt[xe]]&&Ze.push(dt[Tt[xe]]);else if(Tt[xe])for(var Ct=0;Ct<Tt[xe].length;Ct++){var Wt=dt[Tt[xe][Ct]];Wt&&Ze.push(Wt)}else Tt.helperType&&dt[Tt.helperType]?Ze.push(dt[Tt.helperType]):dt[Tt.name]&&Ze.push(dt[Tt.name]);for(var Kn=0;Kn<dt._global.length;Kn++){var rn=dt._global[Kn];rn.pred(Tt,this)&&ct(Ze,rn.val)==-1&&Ze.push(rn.val)}return Ze},getStateAfter:function(ve,xe){var Ze=this.doc;return ve=jr(Ze,ve==null?Ze.first+Ze.size-1:ve),ji(this,ve+1,xe).state},cursorCoords:function(ve,xe){var Ze,dt=this.doc.sel.primary();return ve==null?Ze=dt.head:typeof ve=="object"?Ze=zn(this.doc,ve):Ze=ve?dt.from():dt.to(),Sa(this,Ze,xe||"page")},charCoords:function(ve,xe){return Ws(this,zn(this.doc,ve),xe||"page")},coordsChar:function(ve,xe){return ve=Bu(this,ve,xe||"page"),Ya(this,ve.left,ve.top)},lineAtHeight:function(ve,xe){return ve=Bu(this,{top:ve,left:0},xe||"page").top,on(this.doc,ve+this.display.viewOffset)},heightAtLine:function(ve,xe,Ze){var dt=!1,Tt;if(typeof ve=="number"){var Ct=this.doc.first+this.doc.size-1;ve<this.doc.first?ve=this.doc.first:ve>Ct&&(ve=Ct,dt=!0),Tt=Gr(this.doc,ve)}else Tt=ve;return Is(this,Tt,{top:0,left:0},xe||"page",Ze||dt).top+(dt?this.doc.height-Ur(Tt):0)},defaultTextHeight:function(){return rs(this.display)},defaultCharWidth:function(){return Xs(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ve,xe,Ze,dt,Tt){var Ct=this.display;ve=Sa(this,zn(this.doc,ve));var Wt=ve.bottom,Kn=ve.left;if(xe.style.position="absolute",xe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(xe),Ct.sizer.appendChild(xe),dt=="over")Wt=ve.top;else if(dt=="above"||dt=="near"){var rn=Math.max(Ct.wrapper.clientHeight,this.doc.height),wr=Math.max(Ct.sizer.clientWidth,Ct.lineSpace.clientWidth);(dt=="above"||ve.bottom+xe.offsetHeight>rn)&&ve.top>xe.offsetHeight?Wt=ve.top-xe.offsetHeight:ve.bottom+xe.offsetHeight<=rn&&(Wt=ve.bottom),Kn+xe.offsetWidth>wr&&(Kn=wr-xe.offsetWidth)}xe.style.top=Wt+"px",xe.style.left=xe.style.right="",Tt=="right"?(Kn=Ct.sizer.clientWidth-xe.offsetWidth,xe.style.right="0px"):(Tt=="left"?Kn=0:Tt=="middle"&&(Kn=(Ct.sizer.clientWidth-xe.offsetWidth)/2),xe.style.left=Kn+"px"),Ze&&lu(this,{left:Kn,top:Wt,right:Kn+xe.offsetWidth,bottom:Wt+xe.offsetHeight})},triggerOnKeyDown:Js(sp),triggerOnKeyPress:Js(Mc),triggerOnKeyUp:up,triggerOnMouseDown:Js(Oc),execCommand:function(ve){if(Cd.hasOwnProperty(ve))return Cd[ve].call(null,this)},triggerElectric:Js(function(ve){Sp(this,ve)}),findPosH:function(ve,xe,Ze,dt){var Tt=1;xe<0&&(Tt=-1,xe=-xe);for(var Ct=zn(this.doc,ve),Wt=0;Wt<xe&&(Ct=Jh(this.doc,Ct,Tt,Ze,dt),!Ct.hitSide);++Wt);return Ct},moveH:Js(function(ve,xe){var Ze=this;this.extendSelectionsBy(function(dt){return Ze.display.shift||Ze.doc.extend||dt.empty()?Jh(Ze.doc,dt.head,ve,xe,Ze.options.rtlMoveVisually):ve<0?dt.from():dt.to()},An)}),deleteH:Js(function(ve,xe){var Ze=this.doc.sel,dt=this.doc;Ze.somethingSelected()?dt.replaceSelection("",null,"+delete"):Au(this,function(Tt){var Ct=Jh(dt,Tt.head,ve,xe,!1);return ve<0?{from:Ct,to:Tt.head}:{from:Tt.head,to:Ct}})}),findPosV:function(ve,xe,Ze,dt){var Tt=1,Ct=dt;xe<0&&(Tt=-1,xe=-xe);for(var Wt=zn(this.doc,ve),Kn=0;Kn<xe;++Kn){var rn=Sa(this,Wt,"div");if(Ct==null?Ct=rn.left:rn.left=Ct,Wt=pd(this,rn,Tt,Ze),Wt.hitSide)break}return Wt},moveV:Js(function(ve,xe){var Ze=this,dt=this.doc,Tt=[],Ct=!this.display.shift&&!dt.extend&&dt.sel.somethingSelected();if(dt.extendSelectionsBy(function(Kn){if(Ct)return ve<0?Kn.from():Kn.to();var rn=Sa(Ze,Kn.head,"div");Kn.goalColumn!=null&&(rn.left=Kn.goalColumn),Tt.push(rn.left);var wr=pd(Ze,rn,ve,xe);return xe=="page"&&Kn==dt.sel.primary()&&Ec(Ze,Ws(Ze,wr,"div").top-rn.top),wr},An),Tt.length)for(var Wt=0;Wt<dt.sel.ranges.length;Wt++)dt.sel.ranges[Wt].goalColumn=Tt[Wt]}),findWordAt:function(ve){var xe=this.doc,Ze=Gr(xe,ve.line).text,dt=ve.ch,Tt=ve.ch;if(Ze){var Ct=this.getHelper(ve,"wordChars");(ve.sticky=="before"||Tt==Ze.length)&&dt?--dt:++Tt;for(var Wt=Ze.charAt(dt),Kn=st(Wt,Ct)?function(rn){return st(rn,Ct)}:/\s/.test(Wt)?function(rn){return/\s/.test(rn)}:function(rn){return!/\s/.test(rn)&&!st(rn)};dt>0&&Kn(Ze.charAt(dt-1));)--dt;for(;Tt<Ze.length&&Kn(Ze.charAt(Tt));)++Tt}return new Do(Xt(ve.line,dt),Xt(ve.line,Tt))},toggleOverwrite:function(ve){ve!=null&&ve==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Nt(this.display.cursorDiv,"CodeMirror-overwrite"):Ye(this.display.cursorDiv,"CodeMirror-overwrite"),tn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==wt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Js(function(ve,xe){Yl(this,ve,xe)}),getScrollInfo:function(){var ve=this.display.scroller;return{left:ve.scrollLeft,top:ve.scrollTop,height:ve.scrollHeight-ba(this)-this.display.barHeight,width:ve.scrollWidth-ba(this)-this.display.barWidth,clientHeight:dl(this),clientWidth:hs(this)}},scrollIntoView:Js(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:Xt(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?sa(this,ve):Uu(this,ve.from,ve.to,ve.margin)}),setSize:Js(function(ve,xe){var Ze=this,dt=function(Ct){return typeof Ct=="number"||/^\d+$/.test(String(Ct))?Ct+"px":Ct};ve!=null&&(this.display.wrapper.style.width=dt(ve)),xe!=null&&(this.display.wrapper.style.height=dt(xe)),this.options.lineWrapping&&wu(this);var Tt=this.display.viewFrom;this.doc.iter(Tt,this.display.viewTo,function(Ct){if(Ct.widgets){for(var Wt=0;Wt<Ct.widgets.length;Wt++)if(Ct.widgets[Wt].noHScroll){Zo(Ze,Tt,"widget");break}}++Tt}),this.curOp.forceUpdate=!0,tn(this,"refresh",this)}),operation:function(ve){return Na(this,ve)},startOperation:function(){return Ll(this)},endOperation:function(){return cu(this)},refresh:Js(function(){var ve=this.display.cachedTextHeight;oa(this),this.curOp.forceUpdate=!0,Yu(this),Yl(this,this.doc.scrollLeft,this.doc.scrollTop),Ft(this.display),(ve==null||Math.abs(ve-rs(this.display))>.5||this.options.lineWrapping)&&To(this),tn(this,"refresh",this)}),swapDoc:Js(function(ve){var xe=this.doc;return xe.cm=null,this.state.selectingText&&this.state.selectingText(),wa(this,ve),Yu(this),this.display.input.reset(),Yl(this,ve.scrollLeft,ve.scrollTop),this.curOp.forceScroll=!0,Xi(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}},gt(re),re.registerHelper=function(ve,xe,Ze){ye.hasOwnProperty(ve)||(ye[ve]=re[ve]={_global:[]}),ye[ve][xe]=Ze},re.registerGlobalHelper=function(ve,xe,Ze,dt){re.registerHelper(ve,xe,dt),ye[ve]._global.push({pred:Ze,val:dt})}}function Jh(re,le,ye,ve,xe){var Ze=le,dt=ye,Tt=Gr(re,le.line),Ct=xe&&re.direction=="rtl"?-ye:ye;function Wt(){var xo=le.line+Ct;return xo<re.first||xo>=re.first+re.size?!1:(le=new Xt(xo,le.ch,le.sticky),Tt=Gr(re,xo))}function Kn(xo){var lo;if(ve=="codepoint"){var No=Tt.text.charCodeAt(le.ch+(ve>0?0:-1));isNaN(No)?lo=null:lo=new Xt(le.line,Math.max(0,Math.min(Tt.text.length,le.ch+ye*(No>=55296&&No<56320?2:1))),-ye)}else xe?lo=kf(re.cm,Tt,le,ye):lo=el(Tt,le,ye);if(lo==null)if(!xo&&Wt())le=Xc(xe,re.cm,Tt,le.line,Ct);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 rn=null,wr=ve=="group",mr=re.cm&&re.cm.getHelper(le,"wordChars"),yi=!0;!(ye<0&&!Kn(!yi));yi=!1){var wi=Tt.text.charAt(le.ch)||`
`,Di=st(wi,mr)?"w":wr&&wi==`
`?"n":!wr||/\s/.test(wi)?null:"p";if(wr&&!yi&&!Di&&(Di="s"),rn&&rn!=Di){ye<0&&(ye=1,Kn(),le.sticky="after");break}if(Di&&(rn=Di),ye>0&&!Kn(!yi))break}var $i=Lo(re,le,Ze,dt,!0);return Tn(Ze,$i)&&($i.hitSide=!0),$i}function pd(re,le,ye,ve){var xe=re.doc,Ze=le.left,dt;if(ve=="page"){var Tt=Math.min(re.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Ct=Math.max(Tt-.5*rs(re.display),3);dt=(ye>0?le.bottom:le.top)+ye*Ct}else ve=="line"&&(dt=ye>0?le.bottom+3:le.top-3);for(var Wt;Wt=Ya(re,Ze,dt),!!Wt.outside;){if(ye<0?dt<=0:dt>=xe.height){Wt.hitSide=!0;break}dt+=ye*5}return Wt}var qa=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};qa.prototype.init=function(re){var le=this,ye=this,ve=ye.cm,xe=ye.div=re.lineDiv;Ep(xe,ve.options.spellcheck,ve.options.autocorrect,ve.options.autocapitalize);function Ze(Tt){for(var Ct=Tt.target;Ct;Ct=Ct.parentNode){if(Ct==xe)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Ct.className))break}return!1}Ot(xe,"paste",function(Tt){!Ze(Tt)||vn(ve,Tt)||yp(Tt,ve)||Te<=11&&setTimeout(Hs(ve,function(){return le.updateFromDOM()}),20)}),Ot(xe,"compositionstart",function(Tt){le.composing={data:Tt.data,done:!1}}),Ot(xe,"compositionupdate",function(Tt){le.composing||(le.composing={data:Tt.data,done:!1})}),Ot(xe,"compositionend",function(Tt){le.composing&&(Tt.data!=le.composing.data&&le.readFromDOMSoon(),le.composing.done=!0)}),Ot(xe,"touchstart",function(){return ye.forceCompositionEnd()}),Ot(xe,"input",function(){le.composing||le.readFromDOMSoon()});function dt(Tt){if(!(!Ze(Tt)||vn(ve,Tt))){if(ve.somethingSelected())xh({lineWise:!1,text:ve.getSelections()}),Tt.type=="cut"&&ve.replaceSelection("",null,"cut");else if(ve.options.lineWiseCopyCut){var Ct=bp(ve);xh({lineWise:!0,text:Ct.text}),Tt.type=="cut"&&ve.operation(function(){ve.setSelections(Ct.ranges,0,kt),ve.replaceSelection("",null,"cut")})}else return;if(Tt.clipboardData){Tt.clipboardData.clearData();var Wt=mu.text.join(`
`);if(Tt.clipboardData.setData("Text",Wt),Tt.clipboardData.getData("Text")==Wt){Tt.preventDefault();return}}var Kn=xp(),rn=Kn.firstChild;ve.display.lineSpace.insertBefore(Kn,ve.display.lineSpace.firstChild),rn.value=mu.text.join(`
`);var wr=document.activeElement;Qt(rn),setTimeout(function(){ve.display.lineSpace.removeChild(Kn),wr.focus(),wr==xe&&ye.showPrimarySelection()},50)}}Ot(xe,"copy",dt),Ot(xe,"cut",dt)},qa.prototype.screenReaderLabelChanged=function(re){re?this.div.setAttribute("aria-label",re):this.div.removeAttribute("aria-label")},qa.prototype.prepareSelection=function(){var re=_u(this.cm,!1);return re.focus=document.activeElement==this.div,re},qa.prototype.showSelection=function(re,le){!re||!this.cm.display.view.length||((re.focus||le)&&this.showPrimarySelection(),this.showMultipleSelections(re))},qa.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},qa.prototype.showPrimarySelection=function(){var re=this.getSelection(),le=this.cm,ye=le.doc.sel.primary(),ve=ye.from(),xe=ye.to();if(le.display.viewTo==le.display.viewFrom||ve.line>=le.display.viewTo||xe.line<le.display.viewFrom){re.removeAllRanges();return}var Ze=qh(le,re.anchorNode,re.anchorOffset),dt=qh(le,re.focusNode,re.focusOffset);if(!(Ze&&!Ze.bad&&dt&&!dt.bad&&fr(Nr(Ze,dt),ve)==0&&fr(Ue(Ze,dt),xe)==0)){var Tt=le.display.view,Ct=ve.line>=le.display.viewFrom&&qd(le,ve)||{node:Tt[0].measure.map[2],offset:0},Wt=xe.line<le.display.viewTo&&qd(le,xe);if(!Wt){var Kn=Tt[Tt.length-1].measure,rn=Kn.maps?Kn.maps[Kn.maps.length-1]:Kn.map;Wt={node:rn[rn.length-1],offset:rn[rn.length-2]-rn[rn.length-3]}}if(!Ct||!Wt){re.removeAllRanges();return}var wr=re.rangeCount&&re.getRangeAt(0),mr;try{mr=it(Ct.node,Ct.offset,Wt.offset,Wt.node)}catch(yi){}mr&&(!oe&&le.state.focused?(re.collapse(Ct.node,Ct.offset),mr.collapsed||(re.removeAllRanges(),re.addRange(mr))):(re.removeAllRanges(),re.addRange(mr)),wr&&re.anchorNode==null?re.addRange(wr):oe&&this.startGracePeriod()),this.rememberSelection()}},qa.prototype.startGracePeriod=function(){var re=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){re.gracePeriod=!1,re.selectionChanged()&&re.cm.operation(function(){return re.cm.curOp.selectionChanged=!0})},20)},qa.prototype.showMultipleSelections=function(re){Je(this.cm.display.cursorDiv,re.cursors),Je(this.cm.display.selectionDiv,re.selection)},qa.prototype.rememberSelection=function(){var re=this.getSelection();this.lastAnchorNode=re.anchorNode,this.lastAnchorOffset=re.anchorOffset,this.lastFocusNode=re.focusNode,this.lastFocusOffset=re.focusOffset},qa.prototype.selectionInEditor=function(){var re=this.getSelection();if(!re.rangeCount)return!1;var le=re.getRangeAt(0).commonAncestorContainer;return vt(this.div,le)},qa.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},qa.prototype.blur=function(){this.div.blur()},qa.prototype.getField=function(){return this.div},qa.prototype.supportsTouch=function(){return!0},qa.prototype.receivedFocus=function(){var re=this;this.selectionInEditor()?this.pollSelection():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)},qa.prototype.selectionChanged=function(){var re=this.getSelection();return re.anchorNode!=this.lastAnchorNode||re.anchorOffset!=this.lastAnchorOffset||re.focusNode!=this.lastFocusNode||re.focusOffset!=this.lastFocusOffset},qa.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var re=this.getSelection(),le=this.cm;if(te&&Ke&&this.cm.display.gutterSpecs.length&&wp(re.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ye=qh(le,re.anchorNode,re.anchorOffset),ve=qh(le,re.focusNode,re.focusOffset);ye&&ve&&Na(le,function(){ge(le.doc,Qa(ye,ve),kt),(ye.bad||ve.bad)&&(le.curOp.selectionChanged=!0)})}}},qa.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var re=this.cm,le=re.display,ye=re.doc.sel.primary(),ve=ye.from(),xe=ye.to();if(ve.ch==0&&ve.line>re.firstLine()&&(ve=Xt(ve.line-1,Gr(re.doc,ve.line-1).length)),xe.ch==Gr(re.doc,xe.line).text.length&&xe.line<re.lastLine()&&(xe=Xt(xe.line+1,0)),ve.line<le.viewFrom||xe.line>le.viewTo-1)return!1;var Ze,dt,Tt;ve.line==le.viewFrom||(Ze=Zs(re,ve.line))==0?(dt=xt(le.view[0].line),Tt=le.view[0].node):(dt=xt(le.view[Ze].line),Tt=le.view[Ze-1].node.nextSibling);var Ct=Zs(re,xe.line),Wt,Kn;if(Ct==le.view.length-1?(Wt=le.viewTo-1,Kn=le.lineDiv.lastChild):(Wt=xt(le.view[Ct+1].line)-1,Kn=le.view[Ct+1].node.previousSibling),!Tt)return!1;for(var rn=re.doc.splitLines($d(re,Tt,Kn,dt,Wt)),wr=bi(re.doc,Xt(dt,0),Xt(Wt,Gr(re.doc,Wt).text.length));rn.length>1&&wr.length>1;)if(Mt(rn)==Mt(wr))rn.pop(),wr.pop(),Wt--;else if(rn[0]==wr[0])rn.shift(),wr.shift(),dt++;else break;for(var mr=0,yi=0,wi=rn[0],Di=wr[0],$i=Math.min(wi.length,Di.length);mr<$i&&wi.charCodeAt(mr)==Di.charCodeAt(mr);)++mr;for(var xo=Mt(rn),lo=Mt(wr),No=Math.min(xo.length-(rn.length==1?mr:0),lo.length-(wr.length==1?mr:0));yi<No&&xo.charCodeAt(xo.length-yi-1)==lo.charCodeAt(lo.length-yi-1);)++yi;if(rn.length==1&&wr.length==1&&dt==ve.line)for(;mr&&mr>ve.ch&&xo.charCodeAt(xo.length-yi-1)==lo.charCodeAt(lo.length-yi-1);)mr--,yi++;rn[rn.length-1]=xo.slice(0,xo.length-yi).replace(/^\u200b+/,""),rn[0]=rn[0].slice(mr).replace(/\u200b+$/,"");var Jo=Xt(dt,mr),uo=Xt(Wt,wr.length?Mt(wr).length-yi:0);if(rn.length>1||rn[0]||fr(Jo,uo))return gu(re.doc,rn,Jo,uo,"+input"),!0},qa.prototype.ensurePolled=function(){this.forceCompositionEnd()},qa.prototype.reset=function(){this.forceCompositionEnd()},qa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},qa.prototype.readFromDOMSoon=function(){var re=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(re.readDOMTimeout=null,re.composing)if(re.composing.done)re.composing=null;else return;re.updateFromDOM()},80))},qa.prototype.updateFromDOM=function(){var re=this;(this.cm.isReadOnly()||!this.pollContent())&&Na(this.cm,function(){return oa(re.cm)})},qa.prototype.setUneditable=function(re){re.contentEditable="false"},qa.prototype.onKeyPress=function(re){re.charCode==0||this.composing||(re.preventDefault(),this.cm.isReadOnly()||Hs(this.cm,Jd)(this.cm,String.fromCharCode(re.charCode==null?re.keyCode:re.charCode),0))},qa.prototype.readOnlyChanged=function(re){this.div.contentEditable=String(re!="nocursor")},qa.prototype.onContextMenu=function(){},qa.prototype.resetPosition=function(){},qa.prototype.needsContentAttribute=!0;function qd(re,le){var ye=hl(re,le.line);if(!ye||ye.hidden)return null;var ve=Gr(re.doc,le.line),xe=Ka(ye,ve,le.line),Ze=Sn(ve,re.doc.direction),dt="left";if(Ze){var Tt=jt(Ze,le.ch);dt=Tt%2?"right":"left"}var Ct=Kl(xe.map,le.ch,dt);return Ct.offset=Ct.collapse=="right"?Ct.end:Ct.start,Ct}function wp(re){for(var le=re;le;le=le.parentNode)if(/CodeMirror-gutter-wrapper/.test(le.className))return!0;return!1}function Ld(re,le){return le&&(re.bad=!0),re}function $d(re,le,ye,ve,xe){var Ze="",dt=!1,Tt=re.doc.lineSeparator(),Ct=!1;function Wt(mr){return function(yi){return yi.id==mr}}function Kn(){dt&&(Ze+=Tt,Ct&&(Ze+=Tt),dt=Ct=!1)}function rn(mr){mr&&(Kn(),Ze+=mr)}function wr(mr){if(mr.nodeType==1){var yi=mr.getAttribute("cm-text");if(yi){rn(yi);return}var wi=mr.getAttribute("cm-marker"),Di;if(wi){var $i=re.findMarks(Xt(ve,0),Xt(xe+1,0),Wt(+wi));$i.length&&(Di=$i[0].find(0))&&rn(bi(re.doc,Di.from,Di.to).join(Tt));return}if(mr.getAttribute("contenteditable")=="false")return;var xo=/^(pre|div|p|li|table|br)$/i.test(mr.nodeName);if(!/^br$/i.test(mr.nodeName)&&mr.textContent.length==0)return;xo&&Kn();for(var lo=0;lo<mr.childNodes.length;lo++)wr(mr.childNodes[lo]);/^(pre|p)$/i.test(mr.nodeName)&&(Ct=!0),xo&&(dt=!0)}else mr.nodeType==3&&rn(mr.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;wr(le),le!=ye;)le=le.nextSibling,Ct=!1;return Ze}function qh(re,le,ye){var ve;if(le==re.display.lineDiv){if(ve=re.display.lineDiv.childNodes[ye],!ve)return Ld(re.clipPos(Xt(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 Ze=re.display.view[xe];if(Ze.node==ve)return rg(Ze,le,ye)}}function rg(re,le,ye){var ve=re.text.firstChild,xe=!1;if(!le||!vt(ve,le))return Ld(Xt(xt(re.line),0),!0);if(le==ve&&(xe=!0,le=ve.childNodes[ye],ye=0,!le)){var Ze=re.rest?Mt(re.rest):re.line;return Ld(Xt(xt(Ze),Ze.text.length),xe)}var dt=le.nodeType==3?le:null,Tt=le;for(!dt&&le.childNodes.length==1&&le.firstChild.nodeType==3&&(dt=le.firstChild,ye&&(ye=dt.nodeValue.length));Tt.parentNode!=ve;)Tt=Tt.parentNode;var Ct=re.measure,Wt=Ct.maps;function Kn(Di,$i,xo){for(var lo=-1;lo<(Wt?Wt.length:0);lo++)for(var No=lo<0?Ct.map:Wt[lo],Jo=0;Jo<No.length;Jo+=3){var uo=No[Jo+2];if(uo==Di||uo==$i){var ya=xt(lo<0?re.line:re.rest[lo]),bs=No[Jo]+xo;return(xo<0||uo!=Di)&&(bs=No[Jo+(xo?1:0)]),Xt(ya,bs)}}}var rn=Kn(dt,Tt,ye);if(rn)return Ld(rn,xe);for(var wr=Tt.nextSibling,mr=dt?dt.nodeValue.length-ye:0;wr;wr=wr.nextSibling){if(rn=Kn(wr,wr.firstChild,0),rn)return Ld(Xt(rn.line,rn.ch-mr),xe);mr+=wr.textContent.length}for(var yi=Tt.previousSibling,wi=ye;yi;yi=yi.previousSibling){if(rn=Kn(yi,yi.firstChild,-1),rn)return Ld(Xt(rn.line,rn.ch+wi),xe);wi+=yi.textContent.length}}var vl=function(re){this.cm=re,this.prevInput="",this.pollingFast=!1,this.polling=new ft,this.hasSelection=!1,this.composing=null};vl.prototype.init=function(re){var le=this,ye=this,ve=this.cm;this.createField(re);var xe=this.textarea;re.wrapper.insertBefore(this.wrapper,re.wrapper.firstChild),Fe&&(xe.style.width="0px"),Ot(xe,"input",function(){Ve&&Te>=9&&le.hasSelection&&(le.hasSelection=null),ye.poll()}),Ot(xe,"paste",function(dt){vn(ve,dt)||yp(dt,ve)||(ve.state.pasteIncoming=+new Date,ye.fastPoll())});function Ze(dt){if(!vn(ve,dt)){if(ve.somethingSelected())xh({lineWise:!1,text:ve.getSelections()});else if(ve.options.lineWiseCopyCut){var Tt=bp(ve);xh({lineWise:!0,text:Tt.text}),dt.type=="cut"?ve.setSelections(Tt.ranges,null,kt):(ye.prevInput="",xe.value=Tt.text.join(`
`),Qt(xe))}else return;dt.type=="cut"&&(ve.state.cutIncoming=+new Date)}}Ot(xe,"cut",Ze),Ot(xe,"copy",Ze),Ot(re.scroller,"paste",function(dt){if(!(ca(re,dt)||vn(ve,dt))){if(!xe.dispatchEvent){ve.state.pasteIncoming=+new Date,ye.focus();return}var Tt=new Event("paste");Tt.clipboardData=dt.clipboardData,xe.dispatchEvent(Tt)}}),Ot(re.lineSpace,"selectstart",function(dt){ca(re,dt)||Xn(dt)}),Ot(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"})}}),Ot(xe,"compositionend",function(){ye.composing&&(ye.poll(),ye.composing.range.clear(),ye.composing=null)})},vl.prototype.createField=function(re){this.wrapper=xp(),this.textarea=this.wrapper.firstChild},vl.prototype.screenReaderLabelChanged=function(re){re?this.textarea.setAttribute("aria-label",re):this.textarea.removeAttribute("aria-label")},vl.prototype.prepareSelection=function(){var re=this.cm,le=re.display,ye=re.doc,ve=_u(re);if(re.options.moveInputWithCursor){var xe=Sa(re,ye.sel.primary().head,"div"),Ze=le.wrapper.getBoundingClientRect(),dt=le.lineDiv.getBoundingClientRect();ve.teTop=Math.max(0,Math.min(le.wrapper.clientHeight-10,xe.top+dt.top-Ze.top)),ve.teLeft=Math.max(0,Math.min(le.wrapper.clientWidth-10,xe.left+dt.left-Ze.left))}return ve},vl.prototype.showSelection=function(re){var le=this.cm,ye=le.display;Je(ye.cursorDiv,re.cursors),Je(ye.selectionDiv,re.selection),re.teTop!=null&&(this.wrapper.style.top=re.teTop+"px",this.wrapper.style.left=re.teLeft+"px")},vl.prototype.reset=function(re){if(!(this.contextMenuPending||this.composing)){var le=this.cm;if(le.somethingSelected()){this.prevInput="";var ye=le.getSelection();this.textarea.value=ye,le.state.focused&&Qt(this.textarea),Ve&&Te>=9&&(this.hasSelection=ye)}else re||(this.prevInput=this.textarea.value="",Ve&&Te>=9&&(this.hasSelection=null))}},vl.prototype.getField=function(){return this.textarea},vl.prototype.supportsTouch=function(){return!1},vl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ee||wt()!=this.textarea))try{this.textarea.focus()}catch(re){}},vl.prototype.blur=function(){this.textarea.blur()},vl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},vl.prototype.receivedFocus=function(){this.slowPoll()},vl.prototype.slowPoll=function(){var re=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){re.poll(),re.cm.state.focused&&re.slowPoll()})},vl.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)},vl.prototype.poll=function(){var re=this,le=this.cm,ye=this.textarea,ve=this.prevInput;if(this.contextMenuPending||!le.state.focused||Oe(ye)&&!ve&&!this.composing||le.isReadOnly()||le.options.disableInput||le.state.keySeq)return!1;var xe=ye.value;if(xe==ve&&!le.somethingSelected())return!1;if(Ve&&Te>=9&&this.hasSelection===xe||he&&/[\uf700-\uf7ff]/.test(xe))return le.display.input.reset(),!1;if(le.doc.sel==le.display.selForContextMenu){var Ze=xe.charCodeAt(0);if(Ze==8203&&!ve&&(ve="\u200B"),Ze==8666)return this.reset(),this.cm.execCommand("undo")}for(var dt=0,Tt=Math.min(ve.length,xe.length);dt<Tt&&ve.charCodeAt(dt)==xe.charCodeAt(dt);)++dt;return Na(le,function(){Jd(le,xe.slice(dt),ve.length-dt,null,re.composing?"*compose":null),xe.length>1e3||xe.indexOf(`
`)>-1?ye.value=re.prevInput="":re.prevInput=xe,re.composing&&(re.composing.range.clear(),re.composing.range=le.markText(re.composing.start,le.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},vl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},vl.prototype.onKeyPress=function(){Ve&&Te>=9&&(this.hasSelection=null),this.fastPoll()},vl.prototype.onContextMenu=function(re){var le=this,ye=le.cm,ve=ye.display,xe=le.textarea;le.contextMenuPending&&le.contextMenuPending();var Ze=Ps(ye,re),dt=ve.scroller.scrollTop;if(!Ze||He)return;var Tt=ye.options.resetSelectionOnContextMenu;Tt&&ye.doc.sel.contains(Ze)==-1&&Hs(ye,ge)(ye.doc,Qa(Ze),kt);var Ct=xe.style.cssText,Wt=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: `+(Ve?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var rn;Ge&&(rn=window.scrollY),ve.input.focus(),Ge&&window.scrollTo(null,rn),ve.input.reset(),ye.somethingSelected()||(xe.value=le.prevInput=" "),le.contextMenuPending=mr,ve.selForContextMenu=ye.doc.sel,clearTimeout(ve.detectingSelectAll);function wr(){if(xe.selectionStart!=null){var wi=ye.somethingSelected(),Di="\u200B"+(wi?xe.value:"");xe.value="\u21DA",xe.value=Di,le.prevInput=wi?"":"\u200B",xe.selectionStart=1,xe.selectionEnd=Di.length,ve.selForContextMenu=ye.doc.sel}}function mr(){if(le.contextMenuPending==mr&&(le.contextMenuPending=!1,le.wrapper.style.cssText=Wt,xe.style.cssText=Ct,Ve&&Te<9&&ve.scrollbars.setScrollTop(ve.scroller.scrollTop=dt),xe.selectionStart!=null)){(!Ve||Ve&&Te<9)&&wr();var wi=0,Di=function(){ve.selForContextMenu==ye.doc.sel&&xe.selectionStart==0&&xe.selectionEnd>0&&le.prevInput=="\u200B"?Hs(ye,ii)(ye):wi++<10?ve.detectingSelectAll=setTimeout(Di,500):(ve.selForContextMenu=null,ve.input.reset())};ve.detectingSelectAll=setTimeout(Di,200)}}if(Ve&&Te>=9&&wr(),Ae){vr(re);var yi=function(){Zt(window,"mouseup",yi),setTimeout(mr,20)};Ot(window,"mouseup",yi)}else setTimeout(mr,50)},vl.prototype.readOnlyChanged=function(re){re||this.reset(),this.textarea.disabled=re=="nocursor",this.textarea.readOnly=!!re},vl.prototype.setUneditable=function(){},vl.prototype.needsContentAttribute=!1;function ig(re,le){if(le=le?yn(le):{},le.value=re.value,!le.tabindex&&re.tabIndex&&(le.tabindex=re.tabIndex),!le.placeholder&&re.placeholder&&(le.placeholder=re.placeholder),le.autofocus==null){var ye=wt();le.autofocus=ye==re||re.getAttribute("autofocus")!=null&&ye==document.body}function ve(){re.value=Tt.getValue()}var xe;if(re.form&&(Ot(re.form,"submit",ve),!le.leaveSubmitMethodAlone)){var Ze=re.form;xe=Ze.submit;try{var dt=Ze.submit=function(){ve(),Ze.submit=xe,Ze.submit(),Ze.submit=dt}}catch(Ct){}}le.finishInit=function(Ct){Ct.save=ve,Ct.getTextArea=function(){return re},Ct.toTextArea=function(){Ct.toTextArea=isNaN,ve(),re.parentNode.removeChild(Ct.getWrapperElement()),re.style.display="",re.form&&(Zt(re.form,"submit",ve),!le.leaveSubmitMethodAlone&&typeof re.form.submit=="function"&&(re.form.submit=xe))}},re.style.display="none";var Tt=Ra(function(Ct){return re.parentNode.insertBefore(Ct,re.nextSibling)},le);return Tt}function kd(re){re.off=Zt,re.on=Ot,re.wheelEventPixels=Go,re.Doc=ll,re.splitLines=oi,re.countColumn=bt,re.findColumn=Yn,re.isWordChar=Xe,re.Pass=fn,re.signal=tn,re.Line=Si,re.changeEnd=Ja,re.scrollbarModel=Fl,re.Pos=Xt,re.cmpPos=fr,re.modes=kr,re.mimeModes=Fr,re.resolveMode=Ti,re.getMode=hn,re.modeExtensions=Cn,re.extendMode=pn,re.copyState=Kr,re.startState=Vr,re.innerMode=Yr,re.commands=Cd,re.keyMap=zu,re.keyName=ip,re.isModifierKey=fd,re.lookupKey=$u,re.normalizeKeyMap=rp,re.StringStream=dr,re.SharedTextMarker=Rc,re.TextMarker=In,re.LineWidget=Dc,re.e_preventDefault=Xn,re.e_stopPropagation=ir,re.e_stop=vr,re.addClass=Nt,re.contains=vt,re.rmClass=Ye,re.keyNames=Yc}tg(Ra),Nd(Ra);var Jc="iter insert remove copy getEditor constructor".split(" ");for(var eh in ll.prototype)ll.prototype.hasOwnProperty(eh)&&ct(Jc,eh)<0&&(Ra.prototype[eh]=function(re){return function(){return re.apply(this.doc,arguments)}}(ll.prototype[eh]));return gt(ll),Ra.inputStyles={textarea:vl,contenteditable:qa},Ra.defineMode=function(re){!Ra.defaults.mode&&re!="null"&&(Ra.defaults.mode=re),Or.apply(this,arguments)},Ra.defineMIME=mi,Ra.defineMode("null",function(){return{token:function(re){return re.skipToEnd()}}}),Ra.defineMIME("text/plain","null"),Ra.defineExtension=function(re,le){Ra.prototype[re]=le},Ra.defineDocExtension=function(re,le){ll.prototype[re]=le},Ra.fromTextArea=ig,kd(Ra),Ra.version="5.58.2",Ra})},25419:function(We,Ee,ae){(function(oe){oe(ae(89780),ae(15525),ae(98101))})(function(oe){"use strict";oe.defineMode("markdown",function(Pe,Ie){var ke=oe.getMode(Pe,"text/html"),Ve=ke.name=="null";function Te(bt){if(oe.findModeByName){var ft=oe.findModeByName(bt);ft&&(bt=ft.mime||ft.mimes[0])}var ct=oe.getMode(Pe,bt);return ct.name=="null"?null:ct}Ie.highlightFormatting===void 0&&(Ie.highlightFormatting=!1),Ie.maxBlockquoteDepth===void 0&&(Ie.maxBlockquoteDepth=0),Ie.taskLists===void 0&&(Ie.taskLists=!1),Ie.strikethrough===void 0&&(Ie.strikethrough=!1),Ie.emoji===void 0&&(Ie.emoji=!1),Ie.fencedCodeBlockHighlighting===void 0&&(Ie.fencedCodeBlockHighlighting=!0),Ie.fencedCodeBlockDefaultMode===void 0&&(Ie.fencedCodeBlockDefaultMode="text/plain"),Ie.xml===void 0&&(Ie.xml=!0),Ie.tokenTypeOverrides===void 0&&(Ie.tokenTypeOverrides={});var 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)&&Ie.tokenTypeOverrides[lt]&&(Ge[lt]=Ie.tokenTypeOverrides[lt]);var Ke=/^([*\-_])(?:\s*\1){2,}\s*$/,He=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,St=/^\[(x| )\](?=\s)/i,$e=Ie.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,It=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Fe=/^[^#!\[\]*_\\<>` "'(~:]+/,te=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ee=/^\s*\[[^\]]+?\]:.*$/,he=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,ue=" ";function fe(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=Ve;if(!ft){var ct=oe.innerMode(ke,bt.htmlState);ft=ct.mode.name=="xml"&&ct.state.tagStart===null&&!ct.state.context&&ct.state.tokenize.isInText}ft&&(bt.f=mt,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,Jt=be(ft.prevLine.stream),fn=ft.indentedCode,kt=ft.prevLine.hr,bn=ft.list!==!1,An=(ft.listStack[ft.listStack.length-1]||0)+3;ft.indentedCode=!1;var Yn=ft.indentation;if(ft.indentationDiff===null&&(ft.indentationDiff=ft.indentation,bn)){for(ft.list=null;Yn<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=Yn-ft.listStack[ft.listStack.length-1])}var Vt=!Jt&&!kt&&!ft.prevLine.header&&(!bn||!fn)&&!ft.prevLine.fencedCodeEnd,Bn=(ft.list===!1||kt||Jt)&&ft.indentation<=An&&bt.match(Ke),Mt=null;if(ft.indentationDiff>=4&&(fn||ft.prevLine.fencedCodeEnd||ft.prevLine.header||Jt))return bt.skipToEnd(),ft.indentedCode=!0,Ge.code;if(bt.eatSpace())return null;if(ct&&ft.indentation<=An&&(Mt=bt.match($e))&&Mt[1].length<=6)return ft.quote=0,ft.header=Mt[1].length,ft.thisLine.header=!0,Ie.highlightFormatting&&(ft.formatting="header"),ft.f=ft.inline,Je(ft);if(ft.indentation<=An&&bt.eat(">"))return ft.quote=ct?1:ft.quote+1,Ie.highlightFormatting&&(ft.formatting="quote"),bt.eatSpace(),Je(ft);if(!Bn&&!ft.setext&&ct&&ft.indentation<=An&&(Mt=bt.match(He))){var Hn=Mt[1]?"ol":"ul";return ft.indentation=Yn+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,Ie.taskLists&&bt.match(St,!1)&&(ft.taskList=!0),ft.f=ft.inline,Ie.highlightFormatting&&(ft.formatting=["list","list-"+Hn]),Je(ft)}else{if(ct&&ft.indentation<=An&&(Mt=bt.match(te,!0)))return ft.quote=0,ft.fencedEndRE=new RegExp(Mt[1]+"+ *$"),ft.localMode=Ie.fencedCodeBlockHighlighting&&Te(Mt[2]||Ie.fencedCodeBlockDefaultMode),ft.localMode&&(ft.localState=oe.startState(ft.localMode)),ft.f=ft.block=nt,Ie.highlightFormatting&&(ft.formatting="code-block"),ft.code=-1,Je(ft);if(ft.setext||(!Vt||!bn)&&!ft.quote&&ft.list===!1&&!ft.code&&!Bn&&!ee.test(bt.string)&&(Mt=bt.lookAhead(1))&&(Mt=Mt.match(It)))return ft.setext?(ft.header=ft.setext,ft.setext=0,bt.skipToEnd(),Ie.highlightFormatting&&(ft.formatting="header")):(ft.header=Mt[0].charAt(0)=="="?1:2,ft.setext=ft.header),ft.thisLine.header=!0,ft.f=ft.inline,Je(ft);if(Bn)return bt.skipToEnd(),ft.hr=!0,ft.thisLine.hr=!0,Ge.hr;if(bt.peek()==="[")return fe(bt,ft,Ht)}return fe(bt,ft,ft.inline)}function Ye(bt,ft){var ct=ke.token(bt,ft.htmlState);if(!Ve){var Jt=oe.innerMode(ke,ft.htmlState);(Jt.mode.name=="xml"&&Jt.state.tagStart===null&&!Jt.state.context&&Jt.state.tokenize.isInText||ft.md_inside&&bt.current().indexOf(">")>-1)&&(ft.f=mt,ft.block=De,ft.htmlState=null)}return ct}function nt(bt,ft){var ct=ft.listStack[ft.listStack.length-1]||0,Jt=ft.indentation<ct,fn=ct+3;if(ft.fencedEndRE&&ft.indentation<=fn&&(Jt||bt.match(ft.fencedEndRE))){Ie.highlightFormatting&&(ft.formatting="code-block");var kt;return Jt||(kt=Je(ft)),ft.localMode=ft.localState=null,ft.block=De,ft.f=mt,ft.fencedEndRE=null,ft.code=0,ft.thisLine.fencedCodeEnd=!0,Jt?me(bt,ft,ft.block):kt}else return ft.localMode?ft.localMode.token(bt,ft.localState):(bt.skipToEnd(),Ge.code)}function Je(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"&&(!Ie.maxBlockquoteDepth||Ie.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),!Ie.maxBlockquoteDepth||Ie.maxBlockquoteDepth>=bt.quote?ft.push(Ge.quote+"-"+bt.quote):ft.push(Ge.quote+"-"+Ie.maxBlockquoteDepth)),bt.list!==!1){var Jt=(bt.listStack.length-1)%3;Jt?Jt===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 ot(bt,ft){if(bt.match(Fe,!0))return Je(ft)}function mt(bt,ft){var ct=ft.text(bt,ft);if(typeof ct!="undefined")return ct;if(ft.list)return ft.list=null,Je(ft);if(ft.taskList){var Jt=bt.match(St,!0)[1]===" ";return Jt?ft.taskOpen=!0:ft.taskClosed=!0,Ie.highlightFormatting&&(ft.formatting="task"),ft.taskList=!1,Je(ft)}if(ft.taskOpen=!1,ft.taskClosed=!1,ft.header&&bt.match(/^#+$/,!0))return Ie.highlightFormatting&&(ft.formatting="header"),Je(ft);var fn=bt.next();if(ft.linkTitle){ft.linkTitle=!1;var kt=fn;fn==="("&&(kt=")"),kt=(kt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var bn="^\\s*(?:[^"+kt+"\\\\]+|\\\\\\\\|\\\\.)"+kt;if(bt.match(new RegExp(bn),!0))return Ge.linkHref}if(fn==="`"){var An=ft.formatting;Ie.highlightFormatting&&(ft.formatting="code"),bt.eatWhile("`");var Yn=bt.current().length;if(ft.code==0&&(!ft.quote||Yn==1))return ft.code=Yn,Je(ft);if(Yn==ft.code){var Vt=Je(ft);return ft.code=0,Vt}else return ft.formatting=An,Je(ft)}else if(ft.code)return Je(ft);if(fn==="\\"&&(bt.next(),Ie.highlightFormatting)){var Bn=Je(ft),Mt=Ge.formatting+"-escape";return Bn?Bn+" "+Mt:Mt}if(fn==="!"&&bt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ft.imageMarker=!0,ft.image=!0,Ie.highlightFormatting&&(ft.formatting="image"),Je(ft);if(fn==="["&&ft.imageMarker&&bt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ft.imageMarker=!1,ft.imageAltText=!0,Ie.highlightFormatting&&(ft.formatting="image"),Je(ft);if(fn==="]"&&ft.imageAltText){Ie.highlightFormatting&&(ft.formatting="image");var Bn=Je(ft);return ft.imageAltText=!1,ft.image=!1,ft.inline=ft.f=vt,Bn}if(fn==="["&&!ft.image)return ft.linkText&&bt.match(/^.*?\]/)||(ft.linkText=!0,Ie.highlightFormatting&&(ft.formatting="link")),Je(ft);if(fn==="]"&&ft.linkText){Ie.highlightFormatting&&(ft.formatting="link");var Bn=Je(ft);return ft.linkText=!1,ft.inline=ft.f=bt.match(/\(.*?\)| ?\[.*?\]/,!1)?vt:mt,Bn}if(fn==="<"&&bt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ft.f=ft.inline=it,Ie.highlightFormatting&&(ft.formatting="link");var Bn=Je(ft);return Bn?Bn+=" ":Bn="",Bn+Ge.linkInline}if(fn==="<"&&bt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ft.f=ft.inline=it,Ie.highlightFormatting&&(ft.formatting="link");var Bn=Je(ft);return Bn?Bn+=" ":Bn="",Bn+Ge.linkEmail}if(Ie.xml&&fn==="<"&&bt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Hn=bt.string.indexOf(">",bt.pos);if(Hn!=-1){var ur=bt.string.substring(bt.start,Hn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ur)&&(ft.md_inside=!0)}return bt.backUp(1),ft.htmlState=oe.startState(ke),me(bt,ft,Ye)}if(Ie.xml&&fn==="<"&&bt.match(/^\/\w*?>/))return ft.md_inside=!1,"tag";if(fn==="*"||fn==="_"){for(var at=1,_e=bt.pos==1?" ":bt.string.charAt(bt.pos-2);at<3&&bt.eat(fn);)at++;var Re=bt.peek()||" ",Xe=!/\s/.test(Re)&&(!he.test(Re)||/\s/.test(_e)||he.test(_e)),st=!/\s/.test(_e)&&(!he.test(_e)||/\s/.test(Re)||he.test(Re)),Be=null,Et=null;if(at%2&&(!ft.em&&Xe&&(fn==="*"||!st||he.test(_e))?Be=!0:ft.em==fn&&st&&(fn==="*"||!Xe||he.test(Re))&&(Be=!1)),at>1&&(!ft.strong&&Xe&&(fn==="*"||!st||he.test(_e))?Et=!0:ft.strong==fn&&st&&(fn==="*"||!Xe||he.test(Re))&&(Et=!1)),Et!=null||Be!=null){Ie.highlightFormatting&&(ft.formatting=Be==null?"strong":Et==null?"em":"strong em"),Be===!0&&(ft.em=fn),Et===!0&&(ft.strong=fn);var Vt=Je(ft);return Be===!1&&(ft.em=!1),Et===!1&&(ft.strong=!1),Vt}}else if(fn===" "&&(bt.eat("*")||bt.eat("_"))){if(bt.peek()===" ")return Je(ft);bt.backUp(1)}if(Ie.strikethrough){if(fn==="~"&&bt.eatWhile(fn)){if(ft.strikethrough){Ie.highlightFormatting&&(ft.formatting="strikethrough");var Vt=Je(ft);return ft.strikethrough=!1,Vt}else if(bt.match(/^[^\s]/,!1))return ft.strikethrough=!0,Ie.highlightFormatting&&(ft.formatting="strikethrough"),Je(ft)}else if(fn===" "&&bt.match(/^~~/,!0)){if(bt.peek()===" ")return Je(ft);bt.backUp(2)}}if(Ie.emoji&&fn===":"&&bt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ft.emoji=!0,Ie.highlightFormatting&&(ft.formatting="emoji");var En=Je(ft);return ft.emoji=!1,En}return fn===" "&&(bt.match(/^ +$/,!1)?ft.trailingSpace++:ft.trailingSpace&&(ft.trailingSpaceNewLine=!0)),Je(ft)}function it(bt,ft){var ct=bt.next();if(ct===">"){ft.f=ft.inline=mt,Ie.highlightFormatting&&(ft.formatting="link");var Jt=Je(ft);return Jt?Jt+=" ":Jt="",Jt+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=Nt(ct==="("?")":"]"),Ie.highlightFormatting&&(ft.formatting="link-string"),ft.linkHref=!0,Je(ft)):"error"}var wt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Nt(bt){return function(ft,ct){var Jt=ft.next();if(Jt===bt){ct.f=ct.inline=mt,Ie.highlightFormatting&&(ct.formatting="link-string");var fn=Je(ct);return ct.linkHref=!1,fn}return ft.match(wt[bt]),ct.linkHref=!0,Je(ct)}}function Ht(bt,ft){return bt.match(/^([^\]\\]|\\.)*\]:/,!1)?(ft.f=Qt,bt.next(),Ie.highlightFormatting&&(ft.formatting="link"),ft.linkText=!0,Je(ft)):fe(bt,ft,mt)}function Qt(bt,ft){if(bt.match(/^\]:/,!0)){ft.f=ft.inline=Yt,Ie.highlightFormatting&&(ft.formatting="link");var ct=Je(ft);return ft.linkText=!1,ct}return bt.match(/^([^\]\\]|\\.)+/,!0),Ge.linkText}function Yt(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=mt,Ge.linkHref+" url")}var yn={startState:function(){return{f:De,prevLine:{stream:null},thisLine:{stream:null},block:De,htmlState:null,indentation:0,inline:mt,text:ot,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(bt){return{f:bt.f,prevLine:bt.prevLine,thisLine:bt.thisLine,block:bt.block,htmlState:bt.htmlState&&oe.copyState(ke,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:ke}:bt.localState?{state:bt.localState,mode:bt.localMode}:{state:bt,mode:yn}},indent:function(bt,ft,ct){return bt.block==Ye&&ke.indent?ke.indent(bt.htmlState,ft,ct):bt.localState&&bt.localMode.indent?bt.localMode.indent(bt.localState,ft,ct):oe.Pass},blankLine:Ae,getType:Je,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return yn},"xml"),oe.defineMIME("text/markdown","markdown"),oe.defineMIME("text/x-markdown","markdown")})},98101:function(We,Ee,ae){(function(oe){oe(ae(89780))})(function(oe){"use strict";oe.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var Pe=0;Pe<oe.modeInfo.length;Pe++){var Ie=oe.modeInfo[Pe];Ie.mimes&&(Ie.mime=Ie.mimes[0])}oe.findModeByMIME=function(ke){ke=ke.toLowerCase();for(var Ve=0;Ve<oe.modeInfo.length;Ve++){var Te=oe.modeInfo[Ve];if(Te.mime==ke)return Te;if(Te.mimes){for(var Ge=0;Ge<Te.mimes.length;Ge++)if(Te.mimes[Ge]==ke)return Te}}if(/\+xml$/.test(ke))return oe.findModeByMIME("application/xml");if(/\+json$/.test(ke))return oe.findModeByMIME("application/json")},oe.findModeByExtension=function(ke){ke=ke.toLowerCase();for(var Ve=0;Ve<oe.modeInfo.length;Ve++){var Te=oe.modeInfo[Ve];if(Te.ext){for(var Ge=0;Ge<Te.ext.length;Ge++)if(Te.ext[Ge]==ke)return Te}}},oe.findModeByFileName=function(ke){for(var Ve=0;Ve<oe.modeInfo.length;Ve++){var Te=oe.modeInfo[Ve];if(Te.file&&Te.file.test(ke))return Te}var Ge=ke.lastIndexOf("."),lt=Ge>-1&&ke.substring(Ge+1,ke.length);if(lt)return oe.findModeByExtension(lt)},oe.findModeByName=function(ke){ke=ke.toLowerCase();for(var Ve=0;Ve<oe.modeInfo.length;Ve++){var Te=oe.modeInfo[Ve];if(Te.name.toLowerCase()==ke)return Te;if(Te.alias){for(var Ge=0;Ge<Te.alias.length;Ge++)if(Te.alias[Ge].toLowerCase()==ke)return Te}}}})},67549:function(We,Ee,ae){(function(oe){oe(ae(89780))})(function(oe){"use strict";oe.defineMode("stex",function(Pe,Ie){"use strict";function ke(Fe,te){Fe.cmdState.push(te)}function Ve(Fe){return Fe.cmdState.length>0?Fe.cmdState[Fe.cmdState.length-1]:null}function Te(Fe){var te=Fe.cmdState.pop();te&&te.closeBracket()}function Ge(Fe){for(var te=Fe.cmdState,ee=te.length-1;ee>=0;ee--){var he=te[ee];if(he.name!="DEFAULT")return he}return{styleIdentifier:function(){return null}}}function lt(Fe,te,ee){return function(){this.name=Fe,this.bracketNo=0,this.style=te,this.styles=ee,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ke={};Ke.importmodule=lt("importmodule","tag",["string","builtin"]),Ke.documentclass=lt("documentclass","tag",["","atom"]),Ke.usepackage=lt("usepackage","tag",["atom"]),Ke.begin=lt("begin","tag",["atom"]),Ke.end=lt("end","tag",["atom"]),Ke.label=lt("label","tag",["atom"]),Ke.ref=lt("ref","tag",["atom"]),Ke.eqref=lt("eqref","tag",["atom"]),Ke.cite=lt("cite","tag",["atom"]),Ke.bibitem=lt("bibitem","tag",["atom"]),Ke.Bibitem=lt("Bibitem","tag",["atom"]),Ke.RBibitem=lt("RBibitem","tag",["atom"]),Ke.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function He(Fe,te){Fe.f=te}function St(Fe,te){var ee;if(Fe.match(/^\\[a-zA-Z@]+/)){var he=Fe.current().slice(1);return ee=Ke.hasOwnProperty(he)?Ke[he]:Ke.DEFAULT,ee=new ee,ke(te,ee),He(te,It),ee.style}if(Fe.match(/^\\[$&%#{}_]/)||Fe.match(/^\\[,;!\/\\]/))return"tag";if(Fe.match("\\["))return He(te,function(fe,me){return $e(fe,me,"\\]")}),"keyword";if(Fe.match("\\("))return He(te,function(fe,me){return $e(fe,me,"\\)")}),"keyword";if(Fe.match("$$"))return He(te,function(fe,me){return $e(fe,me,"$$")}),"keyword";if(Fe.match("$"))return He(te,function(fe,me){return $e(fe,me,"$")}),"keyword";var ue=Fe.next();if(ue=="%")return Fe.skipToEnd(),"comment";if(ue=="}"||ue=="]"){if(ee=Ve(te),ee)ee.closeBracket(ue),He(te,It);else return"error";return"bracket"}else return ue=="{"||ue=="["?(ee=Ke.DEFAULT,ee=new ee,ke(te,ee),"bracket"):/\d/.test(ue)?(Fe.eatWhile(/[\w.%]/),"atom"):(Fe.eatWhile(/[\w\-_]/),ee=Ge(te),ee.name=="begin"&&(ee.argument=Fe.current()),ee.styleIdentifier())}function $e(Fe,te,ee){if(Fe.eatSpace())return null;if(ee&&Fe.match(ee))return He(te,St),"keyword";if(Fe.match(/^\\[a-zA-Z@]+/))return"tag";if(Fe.match(/^[a-zA-Z]+/))return"variable-2";if(Fe.match(/^\\[$&%#{}_]/)||Fe.match(/^\\[,;!\/]/)||Fe.match(/^[\^_&]/))return"tag";if(Fe.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Fe.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var he=Fe.next();return he=="{"||he=="}"||he=="["||he=="]"||he=="("||he==")"?"bracket":he=="%"?(Fe.skipToEnd(),"comment"):"error"}function It(Fe,te){var ee=Fe.peek(),he;return ee=="{"||ee=="["?(he=Ve(te),he.openBracket(ee),Fe.eat(ee),He(te,St),"bracket"):/[ \t\r]/.test(ee)?(Fe.eat(ee),null):(He(te,St),Te(te),St(Fe,te))}return{startState:function(){var Fe=Ie.inMathMode?function(te,ee){return $e(te,ee)}:St;return{cmdState:[],f:Fe}},copyState:function(Fe){return{cmdState:Fe.cmdState.slice(),f:Fe.f}},token:function(Fe,te){return te.f(Fe,te)},blankLine:function(Fe){Fe.f=St,Fe.cmdState.length=0},lineComment:"%"}}),oe.defineMIME("text/x-stex","stex"),oe.defineMIME("text/x-latex","stex")})},15525:function(We,Ee,ae){(function(oe){oe(ae(89780))})(function(oe){"use strict";var Pe={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},Ie={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};oe.defineMode("xml",function(ke,Ve){var Te=ke.indentUnit,Ge={},lt=Ve.htmlMode?Pe:Ie;for(var Ke in lt)Ge[Ke]=lt[Ke];for(var Ke in Ve)Ge[Ke]=Ve[Ke];var He,St;function $e(it,vt){function wt(Qt){return vt.tokenize=Qt,Qt(it,vt)}var Nt=it.next();if(Nt=="<")return it.eat("!")?it.eat("[")?it.match("CDATA[")?wt(te("atom","]]>")):null:it.match("--")?wt(te("comment","-->")):it.match("DOCTYPE",!0,!0)?(it.eatWhile(/[\w\._\-]/),wt(ee(1))):null:it.eat("?")?(it.eatWhile(/[\w\._\-]/),vt.tokenize=te("meta","?>"),"meta"):(He=it.eat("/")?"closeTag":"openTag",vt.tokenize=It,"tag bracket");if(Nt=="&"){var Ht;return it.eat("#")?it.eat("x")?Ht=it.eatWhile(/[a-fA-F\d]/)&&it.eat(";"):Ht=it.eatWhile(/[\d]/)&&it.eat(";"):Ht=it.eatWhile(/[\w\.\-:]/)&&it.eat(";"),Ht?"atom":"error"}else return it.eatWhile(/[^&<]/),null}$e.isInText=!0;function It(it,vt){var wt=it.next();if(wt==">"||wt=="/"&&it.eat(">"))return vt.tokenize=$e,He=wt==">"?"endTag":"selfcloseTag","tag bracket";if(wt=="=")return He="equals",null;if(wt=="<"){vt.tokenize=$e,vt.state=me,vt.tagName=vt.tagStart=null;var Nt=vt.tokenize(it,vt);return Nt?Nt+" tag error":"tag error"}else return/[\'\"]/.test(wt)?(vt.tokenize=Fe(wt),vt.stringStartCol=it.column(),vt.tokenize(it,vt)):(it.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Fe(it){var vt=function(wt,Nt){for(;!wt.eol();)if(wt.next()==it){Nt.tokenize=It;break}return"string"};return vt.isInAttribute=!0,vt}function te(it,vt){return function(wt,Nt){for(;!wt.eol();){if(wt.match(vt)){Nt.tokenize=$e;break}wt.next()}return it}}function ee(it){return function(vt,wt){for(var Nt;(Nt=vt.next())!=null;){if(Nt=="<")return wt.tokenize=ee(it+1),wt.tokenize(vt,wt);if(Nt==">")if(it==1){wt.tokenize=$e;break}else return wt.tokenize=ee(it-1),wt.tokenize(vt,wt)}return"meta"}}function he(it,vt,wt){this.prev=it.context,this.tagName=vt,this.indent=it.indented,this.startOfLine=wt,(Ge.doNotIndent.hasOwnProperty(vt)||it.context&&it.context.noIndent)&&(this.noIndent=!0)}function ue(it){it.context&&(it.context=it.context.prev)}function fe(it,vt){for(var wt;;){if(!it.context||(wt=it.context.tagName,!Ge.contextGrabbers.hasOwnProperty(wt)||!Ge.contextGrabbers[wt].hasOwnProperty(vt)))return;ue(it)}}function me(it,vt,wt){return it=="openTag"?(wt.tagStart=vt.column(),be):it=="closeTag"?Ae:me}function be(it,vt,wt){return it=="word"?(wt.tagName=vt.current(),St="tag",nt):Ge.allowMissingTagName&&it=="endTag"?(St="tag bracket",nt(it,vt,wt)):(St="error",be)}function Ae(it,vt,wt){if(it=="word"){var Nt=vt.current();return wt.context&&wt.context.tagName!=Nt&&Ge.implicitlyClosed.hasOwnProperty(wt.context.tagName)&&ue(wt),wt.context&&wt.context.tagName==Nt||Ge.matchClosing===!1?(St="tag",De):(St="tag error",Ye)}else return Ge.allowMissingTagName&&it=="endTag"?(St="tag bracket",De(it,vt,wt)):(St="error",Ye)}function De(it,vt,wt){return it!="endTag"?(St="error",De):(ue(wt),me)}function Ye(it,vt,wt){return St="error",De(it,vt,wt)}function nt(it,vt,wt){if(it=="word")return St="attribute",Je;if(it=="endTag"||it=="selfcloseTag"){var Nt=wt.tagName,Ht=wt.tagStart;return wt.tagName=wt.tagStart=null,it=="selfcloseTag"||Ge.autoSelfClosers.hasOwnProperty(Nt)?fe(wt,Nt):(fe(wt,Nt),wt.context=new he(wt,Nt,Ht==wt.indented)),me}return St="error",nt}function Je(it,vt,wt){return it=="equals"?ot:(Ge.allowMissing||(St="error"),nt(it,vt,wt))}function ot(it,vt,wt){return it=="string"?mt:it=="word"&&Ge.allowUnquoted?(St="string",nt):(St="error",nt(it,vt,wt))}function mt(it,vt,wt){return it=="string"?mt:nt(it,vt,wt)}return{startState:function(it){var vt={tokenize:$e,state:me,indented:it||0,tagName:null,tagStart:null,context:null};return it!=null&&(vt.baseIndent=it),vt},token:function(it,vt){if(!vt.tagName&&it.sol()&&(vt.indented=it.indentation()),it.eatSpace())return null;He=null;var wt=vt.tokenize(it,vt);return(wt||He)&&wt!="comment"&&(St=null,vt.state=vt.state(He||wt,it,vt),St&&(wt=St=="error"?wt+" error":St)),wt},indent:function(it,vt,wt){var Nt=it.context;if(it.tokenize.isInAttribute)return it.tagStart==it.indented?it.stringStartCol+1:it.indented+Te;if(Nt&&Nt.noIndent)return oe.Pass;if(it.tokenize!=It&&it.tokenize!=$e)return wt?wt.match(/^(\s*)/)[0].length:0;if(it.tagName)return Ge.multilineTagIndentPastTag!==!1?it.tagStart+it.tagName.length+2:it.tagStart+Te*(Ge.multilineTagIndentFactor||1);if(Ge.alignCDATA&&/<!\[CDATA\[/.test(vt))return 0;var Ht=vt&&/^<(\/)?([\w_:\.-]*)/.exec(vt);if(Ht&&Ht[1])for(;Nt;)if(Nt.tagName==Ht[2]){Nt=Nt.prev;break}else if(Ge.implicitlyClosed.hasOwnProperty(Nt.tagName))Nt=Nt.prev;else break;else if(Ht)for(;Nt;){var Qt=Ge.contextGrabbers[Nt.tagName];if(Qt&&Qt.hasOwnProperty(Ht[2]))Nt=Nt.prev;else break}for(;Nt&&Nt.prev&&!Nt.startOfLine;)Nt=Nt.prev;return Nt?Nt.indent+Te:it.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ge.htmlMode?"html":"xml",helperType:Ge.htmlMode?"html":"xml",skipAttribute:function(it){it.state==ot&&(it.state=nt)},xmlCurrentTag:function(it){return it.tagName?{name:it.tagName,close:it.type=="closeTag"}:null},xmlCurrentContext:function(it){for(var vt=[],wt=it.context;wt;wt=wt.prev)wt.tagName&&vt.push(wt.tagName);return vt.reverse()}}}),oe.defineMIME("text/xml","xml"),oe.defineMIME("application/xml","xml"),oe.mimeModes.hasOwnProperty("text/html")||oe.defineMIME("text/html",{name:"xml",htmlMode:!0})})},58951:function(We,Ee){"use strict";var ae;Ee.Q=ke,ae=Ve;var oe=",",Pe=" ",Ie="";function ke(Te){for(var Ge=[],lt=String(Te||Ie),Ke=lt.indexOf(oe),He=0,St=!1,$e;!St;)Ke===-1&&(Ke=lt.length,St=!0),$e=lt.slice(He,Ke).trim(),($e||!St)&&Ge.push($e),He=Ke+1,Ke=lt.indexOf(oe,He);return Ge}function Ve(Te,Ge){var lt=Ge||{},Ke=lt.padLeft===!1?Ie:Pe,He=lt.padRight?Pe:Ie;return Te[Te.length-1]===Ie&&(Te=Te.concat(Ie)),Te.join(He+oe+Ke).trim()}},86204:function(We){"use strict";var Ee=typeof Reflect=="object"?Reflect:null,ae=Ee&&typeof Ee.apply=="function"?Ee.apply:function(me,be,Ae){return Function.prototype.apply.call(me,be,Ae)},oe;Ee&&typeof Ee.ownKeys=="function"?oe=Ee.ownKeys:Object.getOwnPropertySymbols?oe=function(me){return Object.getOwnPropertyNames(me).concat(Object.getOwnPropertySymbols(me))}:oe=function(me){return Object.getOwnPropertyNames(me)};function Pe(fe){console&&console.warn&&console.warn(fe)}var Ie=Number.isNaN||function(me){return me!==me};function ke(){ke.init.call(this)}We.exports=ke,We.exports.once=ee,ke.EventEmitter=ke,ke.prototype._events=void 0,ke.prototype._eventsCount=0,ke.prototype._maxListeners=void 0;var Ve=10;function Te(fe){if(typeof fe!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof fe)}Object.defineProperty(ke,"defaultMaxListeners",{enumerable:!0,get:function(){return Ve},set:function(fe){if(typeof fe!="number"||fe<0||Ie(fe))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+fe+".");Ve=fe}}),ke.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},ke.prototype.setMaxListeners=function(me){if(typeof me!="number"||me<0||Ie(me))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+me+".");return this._maxListeners=me,this};function Ge(fe){return fe._maxListeners===void 0?ke.defaultMaxListeners:fe._maxListeners}ke.prototype.getMaxListeners=function(){return Ge(this)},ke.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 nt;if(be.length>0&&(nt=be[0]),nt instanceof Error)throw nt;var Je=new Error("Unhandled error."+(nt?" ("+nt.message+")":""));throw Je.context=nt,Je}var ot=Ye[me];if(ot===void 0)return!1;if(typeof ot=="function")ae(ot,this,be);else for(var mt=ot.length,it=It(ot,mt),Ae=0;Ae<mt;++Ae)ae(it[Ae],this,be);return!0};function lt(fe,me,be,Ae){var De,Ye,nt;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),nt=Ye[me]),nt===void 0)nt=Ye[me]=be,++fe._eventsCount;else if(typeof nt=="function"?nt=Ye[me]=Ae?[be,nt]:[nt,be]:Ae?nt.unshift(be):nt.push(be),De=Ge(fe),De>0&&nt.length>De&&!nt.warned){nt.warned=!0;var Je=new Error("Possible EventEmitter memory leak detected. "+nt.length+" "+String(me)+" listeners added. Use emitter.setMaxListeners() to increase limit");Je.name="MaxListenersExceededWarning",Je.emitter=fe,Je.type=me,Je.count=nt.length,Pe(Je)}return fe}ke.prototype.addListener=function(me,be){return lt(this,me,be,!1)},ke.prototype.on=ke.prototype.addListener,ke.prototype.prependListener=function(me,be){return lt(this,me,be,!0)};function Ke(){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 He(fe,me,be){var Ae={fired:!1,wrapFn:void 0,target:fe,type:me,listener:be},De=Ke.bind(Ae);return De.listener=be,Ae.wrapFn=De,De}ke.prototype.once=function(me,be){return Te(be),this.on(me,He(this,me,be)),this},ke.prototype.prependOnceListener=function(me,be){return Te(be),this.prependListener(me,He(this,me,be)),this},ke.prototype.removeListener=function(me,be){var Ae,De,Ye,nt,Je;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,nt=Ae.length-1;nt>=0;nt--)if(Ae[nt]===be||Ae[nt].listener===be){Je=Ae[nt].listener,Ye=nt;break}if(Ye<0)return this;Ye===0?Ae.shift():Fe(Ae,Ye),Ae.length===1&&(De[me]=Ae[0]),De.removeListener!==void 0&&this.emit("removeListener",me,Je||be)}return this},ke.prototype.off=ke.prototype.removeListener,ke.prototype.removeAllListeners=function(me){var be,Ae,De;if(Ae=this._events,Ae===void 0)return this;if(Ae.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Ae[me]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Ae[me]),this;if(arguments.length===0){var Ye=Object.keys(Ae),nt;for(De=0;De<Ye.length;++De)nt=Ye[De],nt!=="removeListener"&&this.removeAllListeners(nt);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(be=Ae[me],typeof be=="function")this.removeListener(me,be);else if(be!==void 0)for(De=be.length-1;De>=0;De--)this.removeListener(me,be[De]);return this};function St(fe,me,be){var Ae=fe._events;if(Ae===void 0)return[];var De=Ae[me];return De===void 0?[]:typeof De=="function"?be?[De.listener||De]:[De]:be?te(De):It(De,De.length)}ke.prototype.listeners=function(me){return St(this,me,!0)},ke.prototype.rawListeners=function(me){return St(this,me,!1)},ke.listenerCount=function(fe,me){return typeof fe.listenerCount=="function"?fe.listenerCount(me):$e.call(fe,me)},ke.prototype.listenerCount=$e;function $e(fe){var me=this._events;if(me!==void 0){var be=me[fe];if(typeof be=="function")return 1;if(be!==void 0)return be.length}return 0}ke.prototype.eventNames=function(){return this._eventsCount>0?oe(this._events):[]};function It(fe,me){for(var be=new Array(me),Ae=0;Ae<me;++Ae)be[Ae]=fe[Ae];return be}function Fe(fe,me){for(;me+1<fe.length;me++)fe[me]=fe[me+1];fe.pop()}function te(fe){for(var me=new Array(fe.length),be=0;be<me.length;++be)me[be]=fe[be].listener||fe[be];return me}function ee(fe,me){return new Promise(function(be,Ae){function De(nt){fe.removeListener(me,Ye),Ae(nt)}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(We){"use strict";var Ee=Object.prototype.hasOwnProperty,ae=Object.prototype.toString,oe=Object.defineProperty,Pe=Object.getOwnPropertyDescriptor,Ie=function(lt){return typeof Array.isArray=="function"?Array.isArray(lt):ae.call(lt)==="[object Array]"},ke=function(lt){if(!lt||ae.call(lt)!=="[object Object]")return!1;var Ke=Ee.call(lt,"constructor"),He=lt.constructor&&lt.constructor.prototype&&Ee.call(lt.constructor.prototype,"isPrototypeOf");if(lt.constructor&&!Ke&&!He)return!1;var St;for(St in lt);return typeof St=="undefined"||Ee.call(lt,St)},Ve=function(lt,Ke){oe&&Ke.name==="__proto__"?oe(lt,Ke.name,{enumerable:!0,configurable:!0,value:Ke.newValue,writable:!0}):lt[Ke.name]=Ke.newValue},Te=function(lt,Ke){if(Ke==="__proto__")if(Ee.call(lt,Ke)){if(Pe)return Pe(lt,Ke).value}else return;return lt[Ke]};We.exports=function Ge(){var lt,Ke,He,St,$e,It,Fe=arguments[0],te=1,ee=arguments.length,he=!1;for(typeof Fe=="boolean"&&(he=Fe,Fe=arguments[1]||{},te=2),(Fe==null||typeof Fe!="object"&&typeof Fe!="function")&&(Fe={});te<ee;++te)if(lt=arguments[te],lt!=null)for(Ke in lt)He=Te(Fe,Ke),St=Te(lt,Ke),Fe!==St&&(he&&St&&(ke(St)||($e=Ie(St)))?($e?($e=!1,It=He&&Ie(He)?He:[]):It=He&&ke(He)?He:{},Ve(Fe,{name:Ke,newValue:Ge(he,It,St)})):typeof St!="undefined"&&Ve(Fe,{name:Ke,newValue:St}));return Fe}},12378:function(We,Ee,ae){"use strict";ae.d(Ee,{$u:function(){return Ke},BD:function(){return at},E9:function(){return lt},FF:function(){return ei},FJ:function(){return me},Hn:function(){return fe},KX:function(){return Ae},NB:function(){return Dt},S0:function(){return Mt},UL:function(){return He},Vk:function(){return ue},Vm:function(){return jt},YI:function(){return Hn},ZA:function(){return Ie},Zt:function(){return St},al:function(){return Be},bn:function(){return st},bx:function(){return _e},g2:function(){return ur},h1:function(){return ot},hD:function(){return gt},l4:function(){return Te},rU:function(){return _t},s_:function(){return Re},uz:function(){return Mn},z6:function(){return $e}}),We=ae.hmd(We),function(){var Oe;function cr(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Cr(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:cr(a)}}function or(a){for(var y,b=[];!(y=a.next()).done;)b.push(y.value);return b}var kr=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Fr;if(typeof Object.setPrototypeOf=="function")Fr=Object.setPrototypeOf;else{var Or;e:{var mi={a:!0},Ti={};try{Ti.__proto__=mi,Or=Ti.a;break e}catch(a){}Or=!1}Fr=Or?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var hn=Fr;function Cn(a,y){if(a.prototype=kr(y.prototype),a.prototype.constructor=a,hn)hn(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 pn=typeof ae.g!="undefined"&&ae.g!=null?ae.g:self,Kr=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 Vr(a,y){if(y){var b=pn;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})}}Vr("Object.assign",function(a){return a||Kr}),Vr("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 dr=typeof globalThis=="object"&&globalThis||typeof ae.g=="object"&&ae.g.global===ae.g&&ae.g||typeof self=="object"&&self.self===self&&self||{};dr.requestAnimationFrame===void 0&&(dr.setImmediate===void 0?dr.requestAnimationFrame=function(a){dr.setTimeout(a,0)}:dr.requestAnimationFrame=dr.setImmediate);function Gr(){}function bi(a,y){var b=-1;return function(){var E=this,x=arguments;b!==-1&&dr.clearTimeout(b),b=Ai(function(){b=-1,a.apply(E,x)},y)}}function Ai(a,y){return dr.setTimeout(a,y)}function Oi(a){return dr.document.createElement(a)}function xt(a){throw Error(a)}function on(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),xt(a)}function br(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),xt(b+" is not in the range "+y+": "+a)}function Br(a){dr.console&&dr.console.log(a)}function Xt(a){return typeof a=="object"&&a!==null}function fr(a){return Array.isArray(a)||dr.NodeList&&a instanceof dr.NodeList||dr.HTMLCollection&&a instanceof dr.HTMLCollection}function Tn(a){return Array.prototype.slice.call(a)}function un(a,y,b){Array.isArray(a)?y>=a.length?a.push(b):a.splice(y,0,b):xt("Cannot insert an object into an HTMLCollection or NodeList: "+b+" at "+y)}function Ue(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):xt("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function Nr(){var a=ji.pop();return a===void 0?[]:a}function jr(a){a.length=0,ji.push(a)}function zn(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(Xt(a)&&a.constructor)return zn(a.constructor);return typeof a}function vi(a){var y=a;return Xt(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 Xr(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 ci(a,y,b){Object.defineProperty(ra.prototype,a,{get:y,set:b})}function Gn(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 cn=dr.navigator!==void 0&&0<dr.navigator.userAgent.indexOf("Trident/7"),Ci=dr.navigator!==void 0&&dr.navigator.platform!==void 0&&dr.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,ji=[];Object.freeze([]),Gr.className="Util",Gr.Dx="32ab5ff3b26f42dc0ed90f21472913b5",Gr.adym="gojs.net",Gr.vfo="28e645fdb266",Gr.className="Util";function Qn(a,y,b){Ei(this),this.j=a,this.xa=y,this.o=b}Qn.prototype.toString=function(){return"EnumValue."+this.xa};function zr(a,y){return y==null||y===""?null:a[y]}pn.Object.defineProperties(Qn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),Qn.className="EnumValue";function si(){this.ew=[]}si.prototype.toString=function(){return this.ew.join("")},si.prototype.add=function(a){a!==""&&this.ew.push(a)},si.className="StringBuilder";function di(){}di.className="PropertyCollection";var ti={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){dr.console&&dr.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 ki(){}ki.prototype.reset=function(){},ki.prototype.next=function(){return!1},ki.prototype.Ad=function(){return!1},ki.prototype.first=function(){return null},ki.prototype.any=function(){return!1},ki.prototype.all=function(){return!0},ki.prototype.each=function(){return this},ki.prototype.map=function(){return this},ki.prototype.filter=function(){return this},ki.prototype.de=function(){},ki.prototype.toString=function(){return"EmptyIterator"},pn.Object.defineProperties(ki.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),ki.prototype.first=ki.prototype.first,ki.prototype.hasNext=ki.prototype.Ad,ki.prototype.next=ki.prototype.next,ki.prototype.reset=ki.prototype.reset;var Bi=null;ki.className="EmptyIterator",Bi=new ki;function Zi(a){this.key=-1,this.value=a}Zi.prototype.reset=function(){this.key=-1},Zi.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Zi.prototype.Ad=function(){return this.next()},Zi.prototype.first=function(){return this.key=0,this.value},Zi.prototype.any=function(a){return this.key=-1,a(this.value)},Zi.prototype.all=function(a){return this.key=-1,a(this.value)},Zi.prototype.each=function(a){return this.key=-1,a(this.value),this},Zi.prototype.map=function(a){return new Zi(a(this.value))},Zi.prototype.filter=function(a){return a(this.value)?new Zi(this.value):Bi},Zi.prototype.de=function(){this.value=null},Zi.prototype.toString=function(){return"SingletonIterator("+this.value+")"},pn.Object.defineProperties(Zi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Zi.prototype.first=Zi.prototype.first,Zi.prototype.hasNext=Zi.prototype.Ad,Zi.prototype.next=Zi.prototype.next,Zi.prototype.reset=Zi.prototype.reset,Zi.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 er,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 er,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},pn.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 Vi(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Vi.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Vi.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)},Vi.prototype.Ad=function(){return this.next()},Vi.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},Vi.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},Vi.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},Vi.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},Vi.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 er,a.s=b,a.xb(),a.iterator},Vi.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 er,a.s=b,a.xb(),a.iterator},Vi.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Vi.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},pn.Object.defineProperties(Vi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Vi.prototype.first=Vi.prototype.first,Vi.prototype.hasNext=Vi.prototype.Ad,Vi.prototype.next=Vi.prototype.next,Vi.prototype.reset=Vi.prototype.reset,Vi.className="ListIteratorBackwards";function er(a){Ei(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&xt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Oe=er.prototype,Oe.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Oe.freeze=function(){return this._isFrozen=!0,this},Oe.ka=function(){return this._isFrozen=!1,this},Oe.toString=function(){return"List()#"+Ui(this)},Oe.add=function(a){return a===null?this:(this._isFrozen&&on(this,a),this.s.push(a),this.xb(),this)},Oe.push=function(a){this.add(a)},Oe.addAll=function(a){if(a===null)return this;this._isFrozen&&on(this);var y=this.s;if(fr(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},Oe.clear=function(){this._isFrozen&&on(this),this.s.length=0,this.xb()},Oe.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Oe.has=function(a){return this.contains(a)},Oe.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Oe.M=function(a){var y=this.s;return(0>a||a>=y.length)&&br(a,"0 <= i < length",er,"elt:i"),y[a]},Oe.get=function(a){return this.M(a)},Oe.cd=function(a,y){var b=this.s;(0>a||a>=b.length)&&br(a,"0 <= i < length",er,"setElt:i"),this._isFrozen&&on(this,a),b[a]=y},Oe.set=function(a,y){this.cd(a,y)},Oe.first=function(){var a=this.s;return a.length===0?null:a[0]},Oe.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Oe.pop=function(){this._isFrozen&&on(this);var a=this.s;return 0<a.length?a.pop():null},er.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},er.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},er.prototype.each=function(a){for(var y=this.s,b=y.length,E=0;E<b;E++)a(y[E]);return this},er.prototype.map=function(a){for(var y=new er,b=[],E=this.s,x=E.length,z=0;z<x;z++)b.push(a(E[z]));return y.s=b,y.xb(),y},er.prototype.filter=function(a){for(var y=new er,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},Oe=er.prototype,Oe.Gb=function(a,y){0>a&&br(a,">= 0",er,"insertAt:i"),this._isFrozen&&on(this,a);var b=this.s;a>=b.length?b.push(y):b.splice(a,0,y),this.xb()},Oe.remove=function(a){if(a===null)return!1;this._isFrozen&&on(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)},Oe.delete=function(a){return this.remove(a)},Oe.mb=function(a){var y=this.s;(0>a||a>=y.length)&&br(a,"0 <= i < length",er,"removeAt:i"),this._isFrozen&&on(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Oe.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&&on(this);for(var x=a,z=y+1;z<E;)b[x++]=b[z++];return b.length=E-(y-a+1),this.xb(),this},er.prototype.copy=function(){var a=new er,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Oe=er.prototype,Oe.Fa=function(){for(var a=this.s,y=this.count,b=Array(y),E=0;E<y;E++)b[E]=a[E];return b},Oe.Iv=function(){for(var a=new ar,y=this.s,b=this.count,E=0;E<b;E++)a.add(y[E]);return a},Oe.sort=function(a){return this._isFrozen&&on(this),this.s.sort(a),this.xb(),this},Oe.zi=function(a,y,b){var E=this.s,x=E.length;y===void 0&&(y=0),b===void 0&&(b=x),this._isFrozen&&on(this);var z=b-y;if(1>=z)return this;if((0>y||y>=x-1)&&br(y,"0 <= from < length",er,"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},Oe.reverse=function(){return this._isFrozen&&on(this),this.s.reverse(),this.xb(),this},pn.Object.defineProperties(er.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 Bi;var a=this.Sa;return a!==null?(a.reset(),a):new Fi(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Bi;var a=this.Hg;return a!==null?(a.reset(),a):new Vi(this)}}}),er.prototype.reverse=er.prototype.reverse,er.prototype.sortRange=er.prototype.zi,er.prototype.sort=er.prototype.sort,er.prototype.toSet=er.prototype.Iv,er.prototype.toArray=er.prototype.Fa,er.prototype.removeRange=er.prototype.removeRange,er.prototype.removeAt=er.prototype.mb,er.prototype.delete=er.prototype.delete,er.prototype.remove=er.prototype.remove,er.prototype.insertAt=er.prototype.Gb,er.prototype.pop=er.prototype.pop,er.prototype.last=er.prototype.jc,er.prototype.first=er.prototype.first,er.prototype.set=er.prototype.set,er.prototype.setElt=er.prototype.cd,er.prototype.get=er.prototype.get,er.prototype.elt=er.prototype.M,er.prototype.indexOf=er.prototype.indexOf,er.prototype.has=er.prototype.has,er.prototype.contains=er.prototype.contains,er.prototype.clear=er.prototype.clear,er.prototype.addAll=er.prototype.addAll,er.prototype.push=er.prototype.push,er.prototype.add=er.prototype.add,er.prototype.thaw=er.prototype.ka,er.prototype.freeze=er.prototype.freeze,er.className="List";function _i(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}_i.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},_i.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},_i.prototype.Ad=function(){return this.next()},_i.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},_i.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},_i.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},_i.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},_i.prototype.map=function(a){var y=this.eg;y.Sa=null;var b=new er;for(y=y.ea;y!==null;)b.add(a(y.value)),y=y.va;return b.iterator},_i.prototype.filter=function(a){var y=this.eg;y.Sa=null;var b=new er;for(y=y.ea;y!==null;){var E=y.value;a(E)&&b.add(E),y=y.va}return b.iterator},_i.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},_i.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},pn.Object.defineProperties(_i.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),_i.prototype.first=_i.prototype.first,_i.prototype.hasNext=_i.prototype.Ad,_i.prototype.next=_i.prototype.next,_i.prototype.reset=_i.prototype.reset,_i.className="SetIterator";function ar(a){Ei(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&xt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Oe=ar.prototype,Oe.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Oe.freeze=function(){return this._isFrozen=!0,this},Oe.ka=function(){return this._isFrozen=!1,this},Oe.toString=function(){return"Set()#"+Ui(this)},Oe.add=function(a){if(a===null)return this;this._isFrozen&&on(this,a);var y=a;return Xt(a)&&(y=Gi(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},Oe.addAll=function(a){if(a===null)return this;if(this._isFrozen&&on(this),fr(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},Oe.contains=function(a){if(a===null)return!1;var y=a;return Xt(a)&&(y=Ui(a),y===void 0)?!1:this.Tb[y]!==void 0},Oe.has=function(a){return this.contains(a)},Oe.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Oe.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Oe.first=function(){var a=this.ea;return a===null?null:a.value},ar.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},ar.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},ar.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},ar.prototype.map=function(a){for(var y=new ar,b=this.ea;b!==null;)y.add(a(b.value)),b=b.va;return y},ar.prototype.filter=function(a){for(var y=new ar,b=this.ea;b!==null;){var E=b.value;a(E)&&y.add(E),b=b.va}return y},Oe=ar.prototype,Oe.remove=function(a){if(a===null)return!1;this._isFrozen&&on(this,a);var y=a;if(Xt(a)&&(y=Ui(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},Oe.delete=function(a){return this.remove(a)},Oe.hp=function(a){if(a===null)return this;if(this._isFrozen&&on(this),fr(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},Oe.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&on(this);var y=new ar;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},Oe.clear=function(){this._isFrozen&&on(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},ar.prototype.copy=function(){var a=new ar,y=this.Tb,b;for(b in y)a.add(y[b].value);return a},ar.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},ar.prototype.Hv=function(){var a=new er,y=this.Tb,b;for(b in y)a.add(y[b].value);return a};function Ei(a){a.__gohashid=po++}function Gi(a){var y=a.__gohashid;return y===void 0&&(y=po++,a.__gohashid=y),y}function Ui(a){return a.__gohashid}pn.Object.defineProperties(ar.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Bi;var a=this.Sa;return a!==null?(a.reset(),a):new _i(this)}}}),ar.prototype.toList=ar.prototype.Hv,ar.prototype.toArray=ar.prototype.Fa,ar.prototype.clear=ar.prototype.clear,ar.prototype.retainAll=ar.prototype.pA,ar.prototype.removeAll=ar.prototype.hp,ar.prototype.delete=ar.prototype.delete,ar.prototype.remove=ar.prototype.remove,ar.prototype.first=ar.prototype.first,ar.prototype.containsAny=ar.prototype.Ty,ar.prototype.containsAll=ar.prototype.Sy,ar.prototype.has=ar.prototype.has,ar.prototype.contains=ar.prototype.contains,ar.prototype.addAll=ar.prototype.addAll,ar.prototype.add=ar.prototype.add,ar.prototype.thaw=ar.prototype.ka,ar.prototype.freeze=ar.prototype.freeze;var po=1;ar.className="Set",ar.uniqueHash=Ei,ar.hashIdUnique=Gi,ar.hashId=Ui;function ho(a){this.ma=a,this.qa=a.Ja,this.sa=null}ho.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},ho.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)},ho.prototype.Ad=function(){return this.next()},ho.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},ho.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},ho.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},ho.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},ho.prototype.map=function(a){var y=this.ma;this.sa=null;var b=new er;for(y=y.ea;y!==null;)b.add(a(y.key)),y=y.va;return b.iterator},ho.prototype.filter=function(a){var y=this.ma;this.sa=null;var b=new er;for(y=y.ea;y!==null;){var E=y.key;a(E)&&b.add(E),y=y.va}return b.iterator},ho.prototype.de=function(){this.value=this.key=null,this.qa=-1},ho.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},pn.Object.defineProperties(ho.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ho.prototype.first=ho.prototype.first,ho.prototype.hasNext=ho.prototype.Ad,ho.prototype.next=ho.prototype.next,ho.prototype.reset=ho.prototype.reset,ho.className="MapKeySetIterator";function Qi(a){ar.call(this),Ei(this),this._isFrozen=!0,this.ma=a}Cn(Qi,ar),Oe=Qi.prototype,Oe.freeze=function(){return this},Oe.ka=function(){return this},Oe.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Oe.add=function(){xt("This Set is read-only: "+this.toString())},Oe.contains=function(a){return this.ma.contains(a)},Oe.has=function(a){return this.contains(a)},Oe.remove=function(){xt("This Set is read-only: "+this.toString())},Oe.delete=function(a){return this.remove(a)},Oe.clear=function(){xt("This Set is read-only: "+this.toString())},Oe.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Qi.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Qi.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Qi.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Qi.prototype.map=function(a){for(var y=new ar,b=this.ma.ea;b!==null;)y.add(a(b.key)),b=b.va;return y},Qi.prototype.filter=function(a){for(var y=new ar,b=this.ma.ea;b!==null;){var E=b.key;a(E)&&y.add(E),b=b.va}return y},Qi.prototype.copy=function(){return new Qi(this.ma)},Qi.prototype.Iv=function(){var a=new ar,y=this.ma.Tb,b;for(b in y)a.add(y[b].key);return a},Qi.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},Qi.prototype.Hv=function(){var a=new er,y=this.ma.Tb,b;for(b in y)a.add(y[b].key);return a},pn.Object.defineProperties(Qi.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Bi:new ho(this.ma)}}}),Qi.prototype.toList=Qi.prototype.Hv,Qi.prototype.toArray=Qi.prototype.Fa,Qi.prototype.toSet=Qi.prototype.Iv,Qi.prototype.first=Qi.prototype.first,Qi.prototype.clear=Qi.prototype.clear,Qi.prototype.delete=Qi.prototype.delete,Qi.prototype.remove=Qi.prototype.remove,Qi.prototype.has=Qi.prototype.has,Qi.prototype.contains=Qi.prototype.contains,Qi.prototype.add=Qi.prototype.add,Qi.prototype.thaw=Qi.prototype.ka,Qi.prototype.freeze=Qi.prototype.freeze,Qi.className="MapKeySet";function Ro(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Ro.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Ro.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)},Ro.prototype.Ad=function(){return this.next()},Ro.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},Ro.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},Ro.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},Ro.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},Ro.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var b=new er;for(y=y.ea;y!==null;)b.add(a(y.value)),y=y.va;return b.iterator},Ro.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var b=new er;for(y=y.ea;y!==null;){var E=y.value;a(E)&&b.add(E),y=y.va}return b.iterator},Ro.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Ro.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},pn.Object.defineProperties(Ro.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Ro.prototype.first=Ro.prototype.first,Ro.prototype.hasNext=Ro.prototype.Ad,Ro.prototype.next=Ro.prototype.next,Ro.prototype.reset=Ro.prototype.reset,Ro.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 pr(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}pr.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},pr.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)},pr.prototype.Ad=function(){return this.next()},pr.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},pr.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},pr.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},pr.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},pr.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var b=new er;for(y=y.ea;y!==null;)b.add(a(y)),y=y.va;return b.iterator},pr.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var b=new er;for(y=y.ea;y!==null;)a(y)&&b.add(y),y=y.va;return b.iterator},pr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},pr.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},pn.Object.defineProperties(pr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),pr.prototype.first=pr.prototype.first,pr.prototype.hasNext=pr.prototype.Ad,pr.prototype.next=pr.prototype.next,pr.prototype.reset=pr.prototype.reset,pr.className="MapIterator";function Ln(a){Ei(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"&&xt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Oe=Ln.prototype,Oe.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Oe.freeze=function(){return this._isFrozen=!0,this},Oe.ka=function(){return this._isFrozen=!1,this},Oe.toString=function(){return"Map()#"+Ui(this)},Oe.add=function(a,y){this._isFrozen&&on(this,a);var b=a;Xt(a)&&(b=Gi(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},Oe.set=function(a,y){return this.add(a,y)},Oe.addAll=function(a){if(a===null)return this;if(fr(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 Ln)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},Oe.first=function(){return this.ea},Ln.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Ln.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Ln.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},Ln.prototype.map=function(a){for(var y=new Ln,b=this.ea;b!==null;)y.add(b.key,a(b)),b=b.va;return y},Ln.prototype.filter=function(a){for(var y=new Ln,b=this.ea;b!==null;)a(b)&&y.add(b.key,b.value),b=b.va;return y},Oe=Ln.prototype,Oe.contains=function(a){var y=a;return Xt(a)&&(y=Ui(a),y===void 0)?!1:this.Tb[y]!==void 0},Oe.has=function(a){return this.contains(a)},Oe.I=function(a){var y=a;return Xt(a)&&(y=Ui(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Oe.get=function(a){return this.I(a)},Oe.remove=function(a){if(a===null)return!1;this._isFrozen&&on(this,a);var y=a;if(Xt(a)&&(y=Ui(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},Oe.delete=function(a){return this.remove(a)},Oe.clear=function(){this._isFrozen&&on(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()},Ln.prototype.copy=function(){var a=new Ln,y=this.Tb,b;for(b in y){var E=y[b];a.add(E.key,E.value)}return a},Ln.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},Ln.prototype.Lf=function(){return new Qi(this)},pn.Object.defineProperties(Ln.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Bi;var a=this.Sa;return a!==null?(a.reset(),a):new pr(this)}},iteratorKeys:{get:function(){return 0>=this.count?Bi:new ho(this)}},iteratorValues:{get:function(){if(0>=this.count)return Bi;var a=this.jf;return a!==null?(a.reset(),a):new Ro(this)}}}),Ln.prototype.toKeySet=Ln.prototype.Lf,Ln.prototype.toArray=Ln.prototype.Fa,Ln.prototype.clear=Ln.prototype.clear,Ln.prototype.delete=Ln.prototype.delete,Ln.prototype.remove=Ln.prototype.remove,Ln.prototype.get=Ln.prototype.get,Ln.prototype.getValue=Ln.prototype.I,Ln.prototype.has=Ln.prototype.has,Ln.prototype.contains=Ln.prototype.contains,Ln.prototype.first=Ln.prototype.first,Ln.prototype.addAll=Ln.prototype.addAll,Ln.prototype.set=Ln.prototype.set,Ln.prototype.add=Ln.prototype.add,Ln.prototype.thaw=Ln.prototype.ka,Ln.prototype.freeze=Ln.prototype.freeze,Ln.className="Map";function rt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):xt("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Hr,_r,pi,hi,ri;rt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},rt.prototype.h=function(a,y){return this.x=a,this.y=y,this},rt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},rt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},rt.prototype.copy=function(){var a=new rt;return a.x=this.x,a.y=this.y,a},Oe=rt.prototype,Oe.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Oe.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Oe.freeze=function(){return this._isFrozen=!0,this},Oe.ka=function(){return Object.isFrozen(this)&&xt("cannot thaw constant: "+this),this._isFrozen=!1,this};function yr(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,b=0;a[y]==="";)y++;var E=a[y++];E&&(b=parseFloat(E));for(var x=0;a[y]==="";)y++;return(E=a[y++])&&(x=parseFloat(E)),new rt(b,x)}return new rt}function ht(a){return a.x.toString()+" "+a.y.toString()}Oe.toString=function(){return"Point("+this.x+","+this.y+")"},Oe.D=function(a){return a instanceof rt?this.x===a.x&&this.y===a.y:!1},Oe.hi=function(a,y){return this.x===a&&this.y===y},Oe.Xa=function(a){return en.B(this.x,a.x)&&en.B(this.y,a.y)},Oe.add=function(a){return this.x+=a.x,this.y+=a.y,this},Oe.re=function(a){return this.x-=a.x,this.y-=a.y,this},Oe.offset=function(a,y){return this.x+=a,this.y+=y,this},rt.prototype.rotate=function(a){if(a===0)return this;var y=this.x,b=this.y;if(y===0&&b===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));return this.x=a*y-E*b,this.y=E*y+a*b,this},Oe=rt.prototype,Oe.scale=function(a,y){return this.x*=a,this.y*=y,this},Oe.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Oe.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Oe.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},Oe.ab=function(a){return xn(a.x-this.x,a.y-this.y)},Oe.direction=function(a,y){return xn(a-this.x,y-this.y)};function xn(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}Oe.Ry=function(a,y){return en.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Oe.fA=function(a,y,b,E){return en.qh(a,y,b,E,this.x,this.y,this),this},Oe.gA=function(a,y){return en.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Oe.uA=function(a,y,b,E){return en.No(this.x,this.y,a,y,b,E,this),this},Oe.vA=function(a,y){return en.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Oe.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},Oe.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},Oe.transform=function(a){return a.Ga(this),this};function wn(a,y){return y.Cd(a),a}function jn(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 On(a,y,b,E){return a=b-a,y=E-y,a*a+y*y}function sr(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)}Oe.w=function(){return isFinite(this.x)&&isFinite(this.y)},rt.alloc=function(){var a=Un.pop();return a===void 0?new rt:a},rt.allocAt=function(a,y){var b=Un.pop();return b===void 0?new rt(a,y):(b.x=a,b.y=y,b)},rt.free=function(a){Un.push(a)},rt.prototype.isReal=rt.prototype.w,rt.prototype.setSpot=rt.prototype.yi,rt.prototype.setRectSpot=rt.prototype.xi,rt.prototype.snapToGridPoint=rt.prototype.vA,rt.prototype.snapToGrid=rt.prototype.uA,rt.prototype.projectOntoLineSegmentPoint=rt.prototype.gA,rt.prototype.projectOntoLineSegment=rt.prototype.fA,rt.intersectingLineSegments=function(a,y,b,E,x,z,ne,ie){return en.Rl(a,y,b,E,x,z,ne,ie)},rt.prototype.compareWithLineSegmentPoint=rt.prototype.Ry,rt.compareWithLineSegment=function(a,y,b,E,x,z){return en.Fl(a,y,b,E,x,z)},rt.prototype.direction=rt.prototype.direction,rt.prototype.directionPoint=rt.prototype.ab,rt.prototype.normalize=rt.prototype.normalize,rt.prototype.distanceSquared=rt.prototype.zd,rt.prototype.distanceSquaredPoint=rt.prototype.Bf,rt.prototype.scale=rt.prototype.scale,rt.prototype.rotate=rt.prototype.rotate,rt.prototype.offset=rt.prototype.offset,rt.prototype.subtract=rt.prototype.re,rt.prototype.add=rt.prototype.add,rt.prototype.equalsApprox=rt.prototype.Xa,rt.prototype.equalTo=rt.prototype.hi,rt.prototype.equals=rt.prototype.D,rt.prototype.set=rt.prototype.set,rt.prototype.setTo=rt.prototype.sg;var Un=[];rt.className="Point",rt.parse=yr,rt.stringify=ht,rt.distanceLineSegmentSquared=jn,rt.distanceSquared=On,rt.direction=sr,rt.Origin=Hr=new rt(0,0).ja(),rt.InfiniteTopLeft=_r=new rt(-1/0,-1/0).ja(),rt.InfiniteBottomRight=pi=new rt(1/0,1/0).ja(),rt.SixPoint=hi=new rt(6,6).ja(),rt.NoPoint=ri=new rt(NaN,NaN).ja(),rt.parse=yr,rt.stringify=ht,rt.distanceLineSegmentSquared=jn,rt.distanceSquared=On,rt.direction=sr;function ln(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):xt("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var qn,Ur,Ni,ai,Si,Ii,Ri;ln.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},ln.prototype.h=function(a,y){return this.width=a,this.height=y,this},ln.prototype.sg=function(a,y){return this.width=a,this.height=y,this},ln.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},ln.prototype.copy=function(){var a=new ln;return a.width=this.width,a.height=this.height,a},Oe=ln.prototype,Oe.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Oe.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Oe.freeze=function(){return this._isFrozen=!0,this},Oe.ka=function(){return Object.isFrozen(this)&&xt("cannot thaw constant: "+this),this._isFrozen=!1,this};function co(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 ln(b,x)}return new ln}function mo(a){return a.width.toString()+" "+a.height.toString()}Oe.toString=function(){return"Size("+this.width+","+this.height+")"},Oe.D=function(a){return a instanceof ln?this.width===a.width&&this.height===a.height:!1},Oe.hi=function(a,y){return this.width===a&&this.height===y},Oe.Xa=function(a){return en.B(this.width,a.width)&&en.B(this.height,a.height)},Oe.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},Oe.w=function(){return isFinite(this.width)&&isFinite(this.height)},ln.alloc=function(){var a=zo.pop();return a===void 0?new ln:a},ln.free=function(a){zo.push(a)},ln.prototype.isReal=ln.prototype.w,ln.prototype.inflate=ln.prototype.Bc,ln.prototype.equalsApprox=ln.prototype.Xa,ln.prototype.equalTo=ln.prototype.hi,ln.prototype.equals=ln.prototype.D,ln.prototype.set=ln.prototype.set,ln.prototype.setTo=ln.prototype.sg;var zo=[];ln.className="Size",ln.parse=co,ln.stringify=mo,ln.ZeroSize=qn=new ln(0,0).ja(),ln.OneSize=Ur=new ln(1,1).ja(),ln.SixSize=Ni=new ln(6,6).ja(),ln.EightSize=ai=new ln(8,8).ja(),ln.TenSize=Si=new ln(10,10).ja(),ln.InfiniteSize=Ii=new ln(1/0,1/0).ja(),ln.NoSize=Ri=new ln(NaN,NaN).ja(),ln.parse=co,ln.stringify=mo;function kn(a,y,b,E){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof b=="number"&&(0<=b||isNaN(b))&&typeof E=="number"&&(0<=E||isNaN(E))?(this.x=a,this.y=y,this.width=b,this.height=E):a instanceof rt?(b=a.x,a=a.y,y instanceof rt?(E=y.x,y=y.y,this.x=Math.min(b,E),this.y=Math.min(a,y),this.width=Math.abs(b-E),this.height=Math.abs(a-y)):y instanceof ln?(this.x=b,this.y=a,this.width=y.width,this.height=y.height):xt("Incorrect second argument supplied to Rect constructor "+y)):xt("Invalid arguments to Rect constructor: "+a+", "+y+", "+b+", "+E),this._isFrozen=!1}Oe=kn.prototype,Oe.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Oe.h=function(a,y,b,E){return this.x=a,this.y=y,this.width=b,this.height=E,this};function bo(a,y,b){a.width=y,a.height=b}Oe.sg=function(a,y,b,E){return this.x=a,this.y=y,this.width=b,this.height=E,this},Oe.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Oe.dd=function(a){return this.x=a.x,this.y=a.y,this},Oe.tA=function(a){return this.width=a.width,this.height=a.height,this},kn.prototype.copy=function(){var a=new kn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Oe=kn.prototype,Oe.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Oe.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Oe.freeze=function(){return this._isFrozen=!0,this},Oe.ka=function(){return Object.isFrozen(this)&&xt("cannot thaw constant: "+this),this._isFrozen=!1,this};function wo(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 kn(b,x,z,ne)}return new kn}function Wi(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Oe.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Oe.D=function(a){return a instanceof kn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Oe.hi=function(a,y,b,E){return this.x===a&&this.y===y&&this.width===b&&this.height===E},Oe.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 so(a,y){return en.$(a.x,y.x)&&en.$(a.y,y.y)&&en.$(a.width,y.width)&&en.$(a.height,y.height)}Oe.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Oe.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},Oe.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},Oe.offset=function(a,y){return this.x+=a,this.y+=y,this},Oe.Bc=function(a,y){return ro(this,y,a,y,a)},Oe.Co=function(a){return ro(this,a.top,a.right,a.bottom,a.left)},Oe.Fv=function(a){return ro(this,-a.top,-a.right,-a.bottom,-a.left)},Oe.Hz=function(a,y,b,E){return ro(this,a,y,b,E)};function ro(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}Oe.Ex=function(a){return Xo(this,a.x,a.y,a.width,a.height)},Oe.Uu=function(a,y,b,E){return Xo(this,a,y,b,E)};function Xo(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}Oe.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Oe.Vu=function(a,y,b,E){var x=this.width,z=this.x;return x!==1/0&&b!==1/0&&(x+=z,b+=a,isNaN(b)||isNaN(x)||z>b||a>x)?!1:(a=this.height,b=this.y,!(a!==1/0&&E!==1/0&&(a+=b,E+=y,isNaN(E)||isNaN(a)||b>E||y>a)))};function Vn(a,y){var b=a.width,E=a.x,x=y.x-10;return E>y.width+10+10+x||x>b+E?!1:(b=a.height,a=a.y,E=y.y-10,!(a>y.height+10+10+E||E>b+a))}Oe.Ye=function(a){return yo(this,a.x,a.y,0,0)},Oe.ed=function(a){return yo(this,a.x,a.y,a.width,a.height)},Oe.Kv=function(a,y,b,E){return b===void 0&&(b=0),E===void 0&&(E=0),yo(this,a,y,b,E)};function yo(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}Oe.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 ws(a,y,b,E,x,z,ne,ie){return a>ne+x||x>b+a?!1:!(y>ie+z||z>E+y)}Oe.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Oe.Mz=function(){return this.width===0&&this.height===0},kn.alloc=function(){var a=Cs.pop();return a===void 0?new kn:a},kn.allocAt=function(a,y,b,E){var x=Cs.pop();return x===void 0?new kn(a,y,b,E):x.h(a,y,b,E)},kn.free=function(a){Cs.push(a)},pn.Object.defineProperties(kn.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new rt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new ln(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new rt(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),kn.prototype.isEmpty=kn.prototype.Mz,kn.prototype.isReal=kn.prototype.w,kn.intersectsLineSegment=function(a,y,b,E,x,z,ne,ie){return en.Fx(a,y,b,E,x,z,ne,ie)},kn.prototype.setSpot=kn.prototype.yi,kn.prototype.union=kn.prototype.Kv,kn.prototype.unionRect=kn.prototype.ed,kn.prototype.unionPoint=kn.prototype.Ye,kn.prototype.intersects=kn.prototype.Vu,kn.prototype.intersectsRect=kn.prototype.Yc,kn.prototype.intersect=kn.prototype.Uu,kn.prototype.intersectRect=kn.prototype.Ex,kn.prototype.grow=kn.prototype.Hz,kn.prototype.subtractMargin=kn.prototype.Fv,kn.prototype.addMargin=kn.prototype.Co,kn.prototype.inflate=kn.prototype.Bc,kn.prototype.offset=kn.prototype.offset,kn.prototype.contains=kn.prototype.contains,kn.prototype.containsRect=kn.prototype.Re,kn.prototype.containsPoint=kn.prototype.ca,kn.prototype.equalsApprox=kn.prototype.Xa,kn.prototype.equalTo=kn.prototype.hi,kn.prototype.equals=kn.prototype.D,kn.prototype.setSize=kn.prototype.tA,kn.prototype.setPoint=kn.prototype.dd,kn.prototype.set=kn.prototype.set,kn.prototype.setTo=kn.prototype.sg;var Ba=null,xl=null,Cs=[];kn.className="Rect",kn.parse=wo,kn.stringify=Wi,kn.contains=ia,kn.intersects=ws,kn.ZeroRect=Ba=new kn(0,0,0,0).ja(),kn.NoRect=xl=new kn(NaN,NaN,NaN,NaN).ja(),kn.parse=wo,kn.stringify=Wi,kn.contains=ia,kn.intersects=ws;function Xi(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):xt("Invalid arguments to Margin constructor: "+a+", "+y+", "+b+", "+E),this._isFrozen=!1}Xi.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Xi.prototype.sg=function(a,y,b,E){return this.top=a,this.right=y,this.bottom=b,this.left=E,this},Xi.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Xi.prototype.copy=function(){var a=new Xi;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Oe=Xi.prototype,Oe.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Oe.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Oe.freeze=function(){return this._isFrozen=!0,this},Oe.ka=function(){return Object.isFrozen(this)&&xt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ia(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 Xi;for(var x=NaN;a[y]==="";)y++;if((E=a[y++])&&(x=parseFloat(E)),isNaN(x))return new Xi(b);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new Xi(b,x);for(var ne=NaN;a[y]==="";)y++;return(E=a[y++])&&(ne=parseFloat(E)),isNaN(ne)?new Xi(b,x):new Xi(b,x,z,ne)}return new Xi}function _a(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Oe.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Oe.D=function(a){return a instanceof Xi?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Oe.hi=function(a,y,b,E){return this.top===a&&this.right===y&&this.bottom===b&&this.left===E},Oe.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)},Oe.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Xi.alloc=function(){var a=Za.pop();return a===void 0?new Xi:a},Xi.free=function(a){Za.push(a)},Xi.prototype.isReal=Xi.prototype.w,Xi.prototype.equalsApprox=Xi.prototype.Xa,Xi.prototype.equalTo=Xi.prototype.hi,Xi.prototype.equals=Xi.prototype.D,Xi.prototype.set=Xi.prototype.set,Xi.prototype.setTo=Xi.prototype.sg;var ds=null,La=null,Za=[];Xi.className="Margin",Xi.parse=Ia,Xi.stringify=_a,Xi.ZeroMargin=ds=new Xi(0,0,0,0).ja(),Xi.TwoMargin=La=new Xi(2,2,2,2).ja(),Xi.parse=Ia,Xi.stringify=_a;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 Ji,fo,Mo,Oo,ua,qi,ps,Ga,ca,Uo,da,Us,ba,hs,dl,js,Ka,Zl,ac,hl,as,fl,xu,Kl,sc,ts,lc,bc,wu,Yu,ks,Vs,gs,Is,Bu,Ws;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},Oe=fi.prototype,Oe.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Oe.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Oe.freeze=function(){return this._isFrozen=!0,this},Oe.ka=function(){return Object.isFrozen(this)&&xt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Sa(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function pa(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Ji;if(a==="TopLeft")return fo;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Mo;if(a==="TopRight")return Oo;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return ua;if(a==="Center")return qi;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return ps;if(a==="BottomLeft")return Ga;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return ca;if(a==="BottomRight")return Uo;if(a==="TopSide")return da;if(a==="LeftSide")return Us;if(a==="RightSide")return ba;if(a==="BottomSide")return hs;if(a==="TopBottomSides")return dl;if(a==="LeftRightSides")return js;if(a==="TopLeftSides")return Ka;if(a==="TopRightSides")return Zl;if(a==="BottomLeftSides")return ac;if(a==="BottomRightSides")return hl;if(a==="NotTopSide")return as;if(a==="NotLeftSide")return fl;if(a==="NotRightSide")return xu;if(a==="NotBottomSide")return Kl;if(a==="AllSides")return sc;if(a==="Default")return ts;a=a.split(" ");for(var y=0,b=0;a[y]==="";)y++;var E=a[y++];E!==void 0&&0<E.length&&(b=parseFloat(E));for(var x=0;a[y]==="";)y++;E=a[y++],E!==void 0&&0<E.length&&(x=parseFloat(E));for(var z=0;a[y]==="";)y++;E=a[y++],E!==void 0&&0<E.length&&(z=parseFloat(E));for(var ne=0;a[y]==="";)y++;return E=a[y++],E!==void 0&&0<E.length&&(ne=parseFloat(E)),new fi(b,x,z,ne)}return new fi}function na(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Oe.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(Ji)?"None":this.D(fo)?"TopLeft":this.D(Mo)?"Top":this.D(Oo)?"TopRight":this.D(ua)?"Left":this.D(qi)?"Center":this.D(ps)?"Right":this.D(Ga)?"BottomLeft":this.D(ca)?"Bottom":this.D(Uo)?"BottomRight":this.D(da)?"TopSide":this.D(Us)?"LeftSide":this.D(ba)?"RightSide":this.D(hs)?"BottomSide":this.D(dl)?"TopBottomSides":this.D(js)?"LeftRightSides":this.D(Ka)?"TopLeftSides":this.D(Zl)?"TopRightSides":this.D(ac)?"BottomLeftSides":this.D(hl)?"BottomRightSides":this.D(as)?"NotTopSide":this.D(fl)?"NotLeftSide":this.D(xu)?"NotRightSide":this.D(Kl)?"NotBottomSide":this.D(sc)?"AllSides":this.D(ts)?"Default":"None"},Oe.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},Oe.gv=function(){return new fi(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Oe.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(lc))a=Us;else if(a.D(bc))a=ba;else if(a.D(wu))a=da;else if(a.D(Yu))a=hs;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Oe.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Oe.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Oe.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Oe.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Oe.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},fi.alloc=function(){var a=Ya.pop();return a===void 0?new fi:a},fi.free=function(a){Ya.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 Ya=[];fi.className="Spot",fi.parse=pa,fi.stringify=na,fi.None=Ji=Sa(new fi(0,0,0,0),0).ja(),fi.Default=ts=Sa(new fi(0,0,-1,0),-1).ja(),fi.TopLeft=fo=new fi(0,0,0,0).ja(),fi.TopCenter=Mo=new fi(.5,0,0,0).ja(),fi.TopRight=Oo=new fi(1,0,0,0).ja(),fi.LeftCenter=ua=new fi(0,.5,0,0).ja(),fi.Center=qi=new fi(.5,.5,0,0).ja(),fi.RightCenter=ps=new fi(1,.5,0,0).ja(),fi.BottomLeft=Ga=new fi(0,1,0,0).ja(),fi.BottomCenter=ca=new fi(.5,1,0,0).ja(),fi.BottomRight=Uo=new fi(1,1,0,0).ja(),fi.MiddleTop=ks=Mo,fi.MiddleLeft=Vs=ua,fi.MiddleRight=gs=ps,fi.MiddleBottom=Is=ca,fi.Top=wu=Mo,fi.Left=lc=ua,fi.Right=bc=ps,fi.Bottom=Yu=ca,fi.TopSide=da=Sa(new fi(0,0,1,1),1).ja(),fi.LeftSide=Us=Sa(new fi(0,0,1,2),1).ja(),fi.RightSide=ba=Sa(new fi(0,0,1,4),1).ja(),fi.BottomSide=hs=Sa(new fi(0,0,1,8),1).ja(),fi.TopBottomSides=dl=Sa(new fi(0,0,1,9),1).ja(),fi.LeftRightSides=js=Sa(new fi(0,0,1,6),1).ja(),fi.TopLeftSides=Ka=Sa(new fi(0,0,1,3),1).ja(),fi.TopRightSides=Zl=Sa(new fi(0,0,1,5),1).ja(),fi.BottomLeftSides=ac=Sa(new fi(0,0,1,10),1).ja(),fi.BottomRightSides=hl=Sa(new fi(0,0,1,12),1).ja(),fi.NotTopSide=as=Sa(new fi(0,0,1,14),1).ja(),fi.NotLeftSide=fl=Sa(new fi(0,0,1,13),1).ja(),fi.NotRightSide=xu=Sa(new fi(0,0,1,11),1).ja(),fi.NotBottomSide=Kl=Sa(new fi(0,0,1,7),1).ja(),fi.AllSides=sc=Sa(new fi(0,0,1,15),1).ja(),Bu=new fi(.156,.156).ja(),Ws=new fi(.844,.844).ja(),fi.parse=pa,fi.stringify=na;function Mi(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Mi.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},Mi.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},Mi.prototype.copy=function(){var a=new Mi;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},Mi.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Mi.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},Mi.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Mi.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Mi.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},Mi.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},Mi.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},Mi.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},Oe=Mi.prototype,Oe.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Oe.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Oe.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)},Oe.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))},Oe.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))},Oe.pp=function(a){var y=a.x,b=a.y,E=y+a.width,x=b+a.height,z=this.m11,ne=this.m12,ie=this.m21,se=this.m22,de=this.dx,pe=this.dy,Se=y*z+b*ie+de,Ne=y*ne+b*se+pe,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(Ne,ze),Ne=Math.max(Ne,ze),x=Math.min(x,b),Se=Math.max(Se,b),Me=Math.min(Me,y),Ne=Math.max(Ne,y),x=Math.min(x,z),Se=Math.max(Se,z),Me=Math.min(Me,E),Ne=Math.max(Ne,E),a.h(x,Me,Se-x,Ne-Me),a},Mi.alloc=function(){var a=ms.pop();return a===void 0?new Mi:a},Mi.free=function(a){ms.push(a)},Mi.prototype.transformRect=Mi.prototype.pp,Mi.prototype.transformPoint=Mi.prototype.Ga,Mi.prototype.scale=Mi.prototype.scale,Mi.prototype.translate=Mi.prototype.translate,Mi.prototype.rotate=Mi.prototype.rotate,Mi.prototype.invert=Mi.prototype.Vj,Mi.prototype.multiplyInverted=Mi.prototype.bv,Mi.prototype.multiply=Mi.prototype.multiply,Mi.prototype.reset=Mi.prototype.reset,Mi.prototype.isIdentity=Mi.prototype.ws,Mi.prototype.equals=Mi.prototype.D,Mi.prototype.setTransform=Mi.prototype.setTransform,Mi.prototype.set=Mi.prototype.set;var ms=[];Mi.className="Transform",Mi.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 Ne=(a+b)/2,Me=(y+E)/2,ze=(b+x)/2,qe=(E+z)/2;x=(x+ne)/2,z=(z+ie)/2,E=(Ne+ze)/2,b=(Me+qe)/2,ze=(ze+x)/2,qe=(qe+z)/2;var Pt=(E+ze)/2,yt=(b+qe)/2;return en.cs(a,y,Ne,Me,E,b,Pt,yt,se,de,pe,Se)||en.cs(Pt,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 sr(((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))yo(de,a,y,0,0),yo(de,ne,ie,0,0);else{var pe=(a+b)/2,Se=(y+E)/2,Ne=(b+x)/2,Me=(E+z)/2;x=(x+ne)/2,z=(z+ie)/2,E=(pe+Ne)/2,b=(Se+Me)/2,Ne=(Ne+x)/2,Me=(Me+z)/2;var ze=(E+Ne)/2,qe=(b+Me)/2;en.Dl(a,y,pe,Se,E,b,ze,qe,se,de),en.Dl(ze,qe,Ne,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,Ne=(b+x)/2,Me=(E+z)/2;x=(x+ne)/2,z=(z+ie)/2,E=(pe+Ne)/2,b=(Se+Me)/2,Ne=(Ne+x)/2,Me=(Me+z)/2;var ze=(E+Ne)/2,qe=(b+Me)/2;en.Qe(a,y,pe,Se,E,b,ze,qe,se,de),en.Qe(ze,qe,Ne,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 Ne=(pe+b)/2,Me=(Se+E)/2;return en.jv(a,y,pe,Se,Ne,Me,ne,ie,se,de)||en.jv(Ne,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))yo(ie,a,y,0,0),yo(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,Ne,Me){if(en.Yb(a,y,ne,ie,Ne,b,E)&&en.Yb(a,y,ne,ie,Ne,x,z))return!en.Rl(a,y,ne,ie,se,de,pe,Se)||(Ne=(a-ne)*(de-Se)-(y-ie)*(se-pe),Ne===0)?!1:(Me.h(((a*ie-y*ne)*(se-pe)-(a-ne)*(se*Se-de*pe))/Ne,((a*ie-y*ne)*(de-Se)-(y-ie)*(se*Se-de*pe))/Ne),!0);var ze=(a+b)/2,qe=(y+E)/2,Pt=(b+x)/2,yt=(E+z)/2;x=(x+ne)/2,z=(z+ie)/2,E=(ze+Pt)/2,b=(qe+yt)/2,Pt=(Pt+x)/2,yt=(yt+z)/2;var Rt=(E+Pt)/2,Bt=(b+yt)/2,Gt=1/0,$t=!1,Dn=0,Qr=0;return en.Eo(a,y,ze,qe,E,b,Rt,Bt,se,de,pe,Se,Ne,Me)&&(a=(Me.x-se)*(Me.x-se)+(Me.y-de)*(Me.y-de),a<Gt&&(Gt=a,$t=!0,Dn=Me.x,Qr=Me.y)),en.Eo(Rt,Bt,Pt,yt,x,z,ne,ie,se,de,pe,Se,Ne,Me)&&(Me.x-se)*(Me.x-se)+(Me.y-de)*(Me.y-de)<Gt&&($t=!0,Dn=Me.x,Qr=Me.y),$t&&(Me.x=Dn,Me.y=Qr),$t},Fo:function(a,y,b,E,x,z,ne,ie,se,de,pe,Se,Ne){var Me=0;if(en.Yb(a,y,ne,ie,Ne,b,E)&&en.Yb(a,y,ne,ie,Ne,x,z)){if(Ne=(a-ne)*(de-Se)-(y-ie)*(se-pe),Ne===0)return Me;var ze=((a*ie-y*ne)*(se-pe)-(a-ne)*(se*Se-de*pe))/Ne,qe=((a*ie-y*ne)*(de-Se)-(y-ie)*(se*Se-de*pe))/Ne;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<Ne?Me++:0>Ne&&Me--}else{ze=(a+b)/2,qe=(y+E)/2;var Pt=(b+x)/2,yt=(E+z)/2;x=(x+ne)/2,z=(z+ie)/2,E=(ze+Pt)/2,b=(qe+yt)/2,Pt=(Pt+x)/2,yt=(yt+z)/2;var Rt=(E+Pt)/2,Bt=(b+yt)/2;Me+=en.Fo(a,y,ze,qe,E,b,Rt,Bt,se,de,pe,Se,Ne),Me+=en.Fo(Rt,Bt,Pt,yt,x,z,ne,ie,se,de,pe,Se,Ne)}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(Pt,yt){var Rt=(Pt-a)*(Pt-a)+(yt-y)*(yt-y);Rt<Se&&(Se=Rt,se.h(Pt,yt))}var Se=1/0;pe(se.x,se.y);var Ne=0,Me=0,ze=0,qe=0;if(x<ne?(Ne=x,Me=ne):(Ne=ne,Me=x),z<ie?(ze=x,qe=ne):(ze=ne,qe=x),Ne=(Me-Ne)/2+de,de=(qe-ze)/2+de,x=(x+ne)/2,z=(z+ie)/2,Ne===0||de===0)return se;if(.5>(b>a?b-a:a-b)){if(Ne=1-(b-x)*(b-x)/(Ne*Ne),0>Ne)return se;Ne=Math.sqrt(Ne),E=-de*Ne+z,pe(b,de*Ne+z),pe(b,E)}else{if(b=(E-y)/(b-a),E=1/(Ne*Ne)+b*b/(de*de),ie=2*b*(y-b*a)/(de*de)-2*b*z/(de*de)-2*x/(Ne*Ne),Ne=ie*ie-4*E*(2*b*a*z/(de*de)-2*y*z/(de*de)+z*z/(de*de)+x*x/(Ne*Ne)-1+(y-b*a)*(y-b*a)/(de*de)),0>Ne)return se;Ne=Math.sqrt(Ne),de=(-ie+Ne)/(2*E),pe(de,b*de-b*a+y),Ne=(-ie-Ne)/(2*E),pe(Ne,b*Ne-b*a+y)}return se},Ff:function(a,y,b,E,x,z,ne,ie,se){var de=1e21,pe=a,Se=y;if(en.Ve(a,y,a,E,x,z,ne,ie,se)){var Ne=(se.x-x)*(se.x-x)+(se.y-z)*(se.y-z);Ne<de&&(de=Ne,pe=se.x,Se=se.y)}return en.Ve(b,y,b,E,x,z,ne,ie,se)&&(Ne=(se.x-x)*(se.x-x)+(se.y-z)*(se.y-z),Ne<de&&(de=Ne,pe=se.x,Se=se.y)),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 di,um:new di,Mf:new di,Nf:0,vm:100};en.za=en.AA;function Ar(a){Ei(this),this.l=2,a===void 0&&(a=Ar.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Ar.o?this.ee=new er:(Ar.V===null&&(Ar.V=new er().freeze()),this.ee=Ar.V),this.aq=this.ee.Ja,this.Ip=new kn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=fo,this.gg=Uo,this.Rk=this.Sk=NaN,this.Uf=wr}Ar.prototype.copy=function(){var a=new Ar;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===Ar.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},Ar.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Ar.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Ar.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},Ar.prototype.ka=function(){if(Object.isFrozen(this)&&xt("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Ar.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},Ar.prototype.Xa=function(a){if(!(a instanceof Ar))return!1;if(this.type!==a.type)return this.type===Ar.j&&a.type===Ar.o?Ml(this,a):a.type===Ar.j&&this.type===Ar.o?Ml(a,this):!1;if(this.type===Ar.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 Ml(a,y){return a.type!==Ar.j||y.type!==Ar.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))))}Ar.ia=function(a){return a.toString()},Ar.prototype.qb=function(a){a.classType===Ar&&(this.type=a)},Ar.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Ar.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 Ar.u:var y=new kn(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 Ar.F:if(y=new kn(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 Ar.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()}},Ar.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},Ar.parse=function(a,y){function b(){return qe>=Gt-1?!0:de[qe+1].match($t)!==null}function E(){return qe++,de[qe]}function x(eo){var zi=parseFloat(E()),Ho=parseFloat(E());Pt===Pt.toLowerCase()&&(zi=Bt.x+zi,Ho=Bt.y+Ho),eo.h(zi,Ho)}function z(){return x(Bt),Bt}function ne(){return x(Rt),Rt}function ie(){var eo=yt.toLowerCase();return eo!=="c"&&eo!=="s"&&eo!=="q"&&eo!=="t"?Bt:new rt(2*Bt.x-Rt.x,2*Bt.y-Rt.y)}y===void 0&&(y=!1);var se=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(se,"$1 $2"),a=a.replace(se,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var de=a.split(" ");for(a=0;a<de.length;a++){var pe=de[a];if(pe.match(/(\.[0-9]*)(\.)/gm)!==null){se=Nr();for(var Se="",Ne=!1,Me=0;Me<pe.length;Me++){var ze=pe[Me];ze!=="."||Ne?ze==="."?(se.push(Se),Se="."):Se+=ze:(Ne=!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,jr(se)}}var qe=-1,Pt="",yt="";se=new rt(0,0);var Rt=new rt(0,0),Bt=new rt(0,0),Gt=de.length;a=BS(null),Ne=Se=pe=!1,Me=!0,ze=null;for(var $t=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(qe>=Gt-1);)if(yt=Pt,Pt=E(),Pt!=="")switch(Pt.toUpperCase()){case"X":Me=!0,Se=pe=!1;break;case"M":for(ze=z(),a.mc===null||Me===!0?(gg(a,ze.x,ze.y,pe,!Se,Ne),Me=!1):a.moveTo(ze.x,ze.y),se.assign(Bt);!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();)Bt=new rt((Pt===Pt.toLowerCase()?Bt.x:0)+parseFloat(E()),Bt.y),a.lineTo(Bt.x,Bt.y);break;case"V":for(;!b();)Bt=new rt(Bt.x,(Pt===Pt.toLowerCase()?Bt.y:0)+parseFloat(E())),a.lineTo(Bt.x,Bt.y);break;case"C":for(;!b();){ze=new rt,x(ze);var Dn=ne(),Qr=z();Th(a,ze.x,ze.y,Dn.x,Dn.y,Qr.x,Qr.y)}break;case"S":for(;!b();)ze=ie(),Dn=ne(),Qr=z(),Th(a,ze.x,ze.y,Dn.x,Dn.y,Qr.x,Qr.y);break;case"Q":for(;!b();)ze=ne(),Dn=z(),d0(a,ze.x,ze.y,Dn.x,Dn.y);break;case"T":for(;!b();)Rt=ze=ie(),Dn=z(),d0(a,ze.x,ze.y,Dn.x,Dn.y);break;case"B":for(;!b();){ze=parseFloat(E()),Dn=parseFloat(E()),Qr=parseFloat(E());var gi=parseFloat(E()),ui=parseFloat(E()),Dr=ui,hr=!1;b()||(Dr=parseFloat(E()),b()||(hr=parseFloat(E())!==0)),Pt===Pt.toLowerCase()&&(Qr+=Bt.x,gi+=Bt.y),a.arcTo(ze,Dn,Qr,gi,ui,Dr,hr)}break;case"A":for(;!b();)ze=Math.abs(parseFloat(E())),Dn=Math.abs(parseFloat(E())),Qr=parseFloat(E()),ui=gi=!1,hr=Dr=0,Dr=E(),Dr.length===1?(gi=!!parseFloat(Dr),ui=!!parseFloat(E()),Dr=parseFloat(E())):Dr.length===2?(gi=!!parseFloat(Dr[0]),ui=!!parseFloat(Dr[1]),Dr=parseFloat(E())):(gi=!!parseFloat(Dr[0]),ui=!!parseFloat(Dr[1]),Dr=parseFloat(Dr.slice(2))),hr=parseFloat(E()),Pt===Pt.toLowerCase()&&(Dr=Bt.x+Dr,hr=Bt.y+hr),Bt.h(Dr,hr),dE(a,ze,Dn,Qr,gi,ui,Dr,hr);break;case"Z":cE(a),Bt.assign(se);break;case"F":for(ze="",Dn=1;de[qe+Dn];)if(de[qe+Dn]==="0")Ne=!0,Dn++;else if(de[qe+Dn].match(/[Uu]/)!==null)Dn++;else if(de[qe+Dn].match($t)===null)Dn++;else{ze=de[qe+Dn];break}ze.match(/[Mm]/)?pe=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(ze="",Dn=1;de[qe+Dn];)if(de[qe+Dn].match(/[Ff]/)!==null)Dn++;else if(de[qe+Dn].match($t)===null)Dn++;else{ze=de[qe+Dn];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},Ar.Ha=function(a,y){for(var b=a.length,E=rt.alloc(),x=0;x<b;x++){var z=a[x];E.x=z[0],E.y=z[1],y.Ga(E),z[0]=E.x,z[1]=E.y,E.x=z[2],E.y=z[3],y.Ga(E),z[2]=E.x,z[3]=E.y,E.x=z[4],E.y=z[5],y.Ga(E),z[4]=E.x,z[5]=E.y,E.x=z[6],E.y=z[7],y.Ga(E),z[6]=E.x,z[7]=E.y}rt.free(E)},Ar.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Ar.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},Ar.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Ar.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),yo(a,0,0,0,0),a.freeze()},Ar.prototype.ix=function(){var a=new kn;return su(this,a,!0),a};function su(a,y,b){switch(a.type){case Ar.j:case Ar.u:case Ar.F:b?y.h(a.od,a.pd,0,0):yo(y,a.od,a.pd,0,0),yo(y,a.Dc,a.Ec,0,0);break;case Ar.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):yo(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 oa:se=Se.endX,de=Se.endY,yo(y,se,de,0,0);break;case Xa: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 pl:en.iv(se,de,Se.point1X,Se.point1Y,Se.endX,Se.endY,.5,y),se=Se.endX,de=Se.endY;break;case Da:case wl:var Ne=Se.type===Da?Ps(Se,z):Zs(Se,z,se,de),Me=Ne.length;if(Me===0){se=Se.type===Da?Se.centerX:Se.endX,de=Se.type===Da?Se.centerY:Se.endY,yo(y,se,de,0,0);break}Se=null;for(var ze=0;ze<Me;ze++)Se=Ne[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:xt("Unknown Segment type: "+Se.type)}}}break;default:xt("Unknown Geometry type: "+a.type)}}Ar.prototype.normalize=function(){this._isFrozen&&on(this);var a=this.ix();return this.offset(-a.x,-a.y),new rt(-a.x,-a.y)},Ar.prototype.offset=function(a,y){return this._isFrozen&&on(this),this.transform(1,0,0,1,a,y),this},Ar.prototype.scale=function(a,y){return this._isFrozen&&on(this),this.transform(a,0,0,y,0,0),this},Ar.prototype.rotate=function(a,y,b){this._isFrozen&&on(this),y===void 0&&(y=0),b===void 0&&(b=0);var E=Mi.alloc();return E.reset(),E.rotate(a,y,b),this.transform(E.m11,E.m12,E.m21,E.m22,E.dx,E.dy),Mi.free(E),this},Oe=Ar.prototype,Oe.transform=function(a,y,b,E,x,z){switch(this.type){case Ar.j:case Ar.u:case Ar.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 Ar.o:for(var se=this.figures.s,de=se.length,pe=0;pe<de;pe++){var Se=se[pe];ne=Se.startX,ie=Se.startY,Se.startX=ne*a+ie*b+x,Se.startY=ne*y+ie*E+z,Se=Se.segments.s;for(var Ne=Se.length,Me=0;Me<Ne;Me++){var ze=Se[Me];switch(ze.type){case Zo:case oa:ne=ze.endX,ie=ze.endY,ze.endX=ne*a+ie*b+x,ze.endY=ne*y+ie*E+z;break;case Xa: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 pl: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 Da: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 wl: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:xt("Unknown Segment type: "+ze.type)}}}}return this._isInvalidBounds=!0,this},Oe.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 Ar.j:return en.Yb(b,E,x,z,y,a.x,a.y);case Ar.u:var ne=kn.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),kn.free(ne),a;case Ar.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 Ar.o:return ns(this,a,y,!0,!1);default:return!1}};function ns(a,y,b,E,x){var z=y.x;y=y.y;for(var ne=a.bounds.x-20,ie=0,se,de,pe,Se,Ne=a.figures.s,Me=Ne.length,ze=0;ze<Me;ze++){var qe=Ne[ze],Pt=!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 Rt=se,Bt=de,Gt=yt.s,$t=0;$t<=yt.length;$t++){var Dn=void 0;if($t!==yt.length){Dn=Gt[$t];var Qr=Dn.type;a=Dn.endX,Se=Dn.endY}else Qr=Zo,a=Rt,Se=Bt;switch(Qr){case oa:if(Rt=rs(z,y,ne,y,se,de,Rt,Bt),isNaN(Rt))return!0;ie+=Rt,Rt=a,Bt=Se;break;case Zo:if(se=rs(z,y,ne,y,se,de,a,Se),isNaN(se))return!0;ie+=se;break;case Xa:pe=en.Fo(se,de,Dn.point1X,Dn.point1Y,Dn.point2X,Dn.point2Y,a,Se,ne,y,z,y,.5),ie+=pe;break;case pl:pe=en.Fo(se,de,(se+2*Dn.point1X)/3,(de+2*Dn.point1Y)/3,(2*Dn.point1X+a)/3,(2*Dn.point1Y+Se)/3,a,Se,ne,y,z,y,.5),ie+=pe;break;case Da:case wl:Qr=Dn.type===Da?Ps(Dn,qe):Zs(Dn,qe,se,de);var gi=Qr.length;if(gi===0){if(se=rs(z,y,ne,y,se,de,Dn.type===Da?Dn.centerX:Dn.endX,Dn.type===Da?Dn.centerY:Dn.endY),isNaN(se))return!0;ie+=se;break}Dn=null;for(var ui=0;ui<gi;ui++){if(Dn=Qr[ui],ui===0){if(pe=rs(z,y,ne,y,se,de,Dn[0],Dn[1]),isNaN(pe))return!0;ie+=pe}pe=en.Fo(Dn[0],Dn[1],Dn[2],Dn[3],Dn[4],Dn[5],Dn[6],Dn[7],ne,y,z,y,.5),ie+=pe}Dn!==null&&(a=Dn[6],Se=Dn[7]);break;default:xt("Unknown Segment type: "+Dn.type)}se=a,de=Se}if(Pt){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 Xs(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}Oe.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new rt),this.type===Ar.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},Oe.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Ar.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},Oe.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Ar.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},Oe.xx=function(a){if(this.type===Ar.j){var y=this.startX,b=this.startY,E=this.endX,x=this.endY;if(y!==E||b!==x){var z=a.x;if(a=a.y,y===E){if(b<x){var ne=b;E=x}else ne=x,E=b;return a<=ne?ne===b?0:1:a>=E?E===b?0:1:Math.abs(a-b)/(E-ne)}if(b===x)return y<E?ne=y:(ne=E,E=y),z<=ne?ne===y?0:1:z>=E?E===y?0:1:Math.abs(z-y)/(E-ne);ne=(E-y)*(E-y)+(x-b)*(x-b);var ie=rt.alloc();return en.qh(y,b,E,x,z,a,ie),a=ie.x,z=ie.y,rt.free(ie),Math.sqrt(((a-y)*(a-y)+(z-b)*(z-b))/ne)}}else if(this.type===Ar.u){ne=this.startX,ie=this.startY;var se=this.endX;if(x=this.endY,ne!==se||ie!==x){y=se-ne,b=x-ie,z=2*y+2*b,E=a.x,a=a.y,E=Math.min(Math.max(E,ne),se),a=Math.min(Math.max(a,ie),x),ne=Math.abs(E-ne),se=Math.abs(E-se),ie=Math.abs(a-ie),x=Math.abs(a-x);var de=Math.min(ne,se,ie,x);if(de===ie)return E/z;if(de===se)return(y+a)/z;if(de===x)return(2*y+b-E)/z;if(de===ne)return(2*y+2*b-a)/z}}else{y=this.flattenedSegments,b=this.flattenedLengths,z=this.flattenedTotalLength,E=rt.alloc(),x=1/0,ie=ne=0,se=y.length;for(var pe=de=0,Se=0;Se<se;Se++)for(var Ne=y[Se],Me=b[Se],ze=Ne.length,qe=0;qe<ze;qe+=2){var Pt=Ne[qe],yt=Ne[qe+1];if(qe!==0){en.qh(de,pe,Pt,yt,a.x,a.y,E);var Rt=(E.x-a.x)*(E.x-a.x)+(E.y-a.y)*(E.y-a.y);Rt<x&&(x=Rt,ne=ie,ne+=Math.sqrt((E.x-de)*(E.x-de)+(E.y-pe)*(E.y-pe))),ie+=Me[(qe-2)/2]}de=Pt,pe=yt}return rt.free(E),a=ne/z,0>a?0:1<a?1:a}return 0};function Ol(a){if(a.tk===null){var y=a.tk=[],b=a.ym=[],E=[],x=[];if(a.type===Ar.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===Ar.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===Ar.F){var z=new ja;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var ne=new To(Da);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=Ps(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(uc(E))}else for(a=a.figures.iterator;a.next();){x=a.value,E=[],E.push(x.startX),E.push(x.startY),ne=x.startX,z=x.startY,ie=ne,se=z;for(var de=x.segments.s,pe=de.length,Se=0;Se<pe;Se++){var Ne=de[Se];switch(Ne.type){case oa:4<=E.length&&(y.push(E),b.push(uc(E))),E=[],E.push(Ne.endX),E.push(Ne.endY),ne=Ne.endX,z=Ne.endY,ie=ne,se=z;break;case Zo:E.push(Ne.endX),E.push(Ne.endY),ne=Ne.endX,z=Ne.endY;break;case Xa:en.Qe(ne,z,Ne.point1X,Ne.point1Y,Ne.point2X,Ne.point2Y,Ne.endX,Ne.endY,.5,E),ne=Ne.endX,z=Ne.endY;break;case pl:en.ep(ne,z,Ne.point1X,Ne.point1Y,Ne.endX,Ne.endY,.5,E),ne=Ne.endX,z=Ne.endY;break;case Da:var Me=Ps(Ne,x),ze=Me.length;if(ze===0){E.push(Ne.centerX),E.push(Ne.centerY),ne=Ne.centerX,z=Ne.centerY;break}for(var qe=0;qe<ze;qe++){var Pt=Me[qe];en.Qe(ne,z,Pt[2],Pt[3],Pt[4],Pt[5],Pt[6],Pt[7],.5,E),ne=Pt[6],z=Pt[7]}break;case wl:if(Me=Zs(Ne,x,ne,z),ze=Me.length,qe=Ne.endX,Pt=Ne.endY,ze===0){E.push(qe),E.push(Pt),ne=qe,z=Pt;break}for(qe=0;qe<ze;qe++)Pt=Me[qe],en.Qe(ne,z,Pt[2],Pt[3],Pt[4],Pt[5],Pt[6],Pt[7],.5,E),ne=Pt[6],z=Pt[7];break;default:xt("Segment not of valid type: "+Ne.type)}Ne.isClosed&&(E.push(ie),E.push(se))}4<=E.length&&(y.push(E),b.push(uc(E)))}}}function uc(a){for(var y=[],b=0,E=0,x=a.length,z=0;z<x;z+=2){var ne=a[z],ie=a[z+1];z!==0&&y.push(Math.sqrt(On(b,E,ne,ie))),b=ne,E=ie}return y}Oe.add=function(a){return this.ee.add(a),this},Oe.pm=function(a,y,b,E,x,z,ne,ie){return this._isFrozen&&on(this),this.fg=new fi(a,y,x,z).freeze(),this.gg=new fi(b,E,ne,ie).freeze(),this},pn.Object.defineProperties(Ar.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 Ol(this),this.tk}},flattenedLengths:{get:function(){return Ol(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===Ar.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===Ar.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&&on(this,a),this.na=a,a===Ar.o?this.ee=new er:(Ar.V===null&&(Ar.V=new er().freeze()),this.ee=Ar.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&on(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&on(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&on(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&on(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&on(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&on(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&on(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&on(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Ar.prototype.setSpots=Ar.prototype.pm,Ar.prototype.add=Ar.prototype.add,Ar.prototype.getFractionForPoint=Ar.prototype.xx,Ar.prototype.getPointAndAngleAlongPath=Ar.prototype.Qu,Ar.prototype.getAngleAlongPath=Ar.prototype.wx,Ar.prototype.getPointAlongPath=Ar.prototype.Pu,Ar.prototype.containsPoint=Ar.prototype.ca,Ar.prototype.transform=Ar.prototype.transform,Ar.prototype.rotate=Ar.prototype.rotate,Ar.prototype.scale=Ar.prototype.scale,Ar.prototype.offset=Ar.prototype.offset,Ar.prototype.normalize=Ar.prototype.normalize,Ar.prototype.computeBoundsWithoutOrigin=Ar.prototype.ix,Ar.prototype.equalsApprox=Ar.prototype.Xa,Ar.className="Geometry",Ar.j=new Qn(Ar,"Line",0),Ar.u=new Qn(Ar,"Rectangle",1),Ar.F=new Qn(Ar,"Ellipse",2),Ar.o=new Qn(Ar,"Path",3),Ar.V=null,Ar.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Ar.className="Geometry",Ar.stringify=Ar.ia,Ar.fillPath=Ar.nb,Ar.parse=Ar.parse,Ar.Line=Ar.j,Ar.Rectangle=Ar.u,Ar.Ellipse=Ar.F,Ar.Path=Ar.o;function ja(a,y,b,E,x){Ei(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 er,this.sr=this.pl.Ja,this.fw=null}ja.prototype.copy=function(){var a=new ja;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},Oe=ja.prototype,Oe.Xa=function(a){if(!(a instanceof ja&&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},Oe.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},Oe.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},Oe.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},Oe.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},Oe.add=function(a){return this.pl.add(a),this},Oe.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 oa: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 Xa: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 pl: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 Da:case wl:var Se=pe.type===Da?Ps(pe,this):Zs(pe,this,E,x),Ne=Se.length,Me=pe.type===Da?pe.centerX:pe.endX,ze=pe.type===Da?pe.centerY:pe.endY;if(Ne===0){if(en.Yb(E,x,Me,ze,b,a,y))return!0;E=Me,x=ze;break}for(Me=null,ze=0;ze<Ne;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:xt("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},pn.Object.defineProperties(ja.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&&on(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&on(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&on(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&on(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&on(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&on(this,a),this.pl=a,this._isInvalidBounds=!0}}}),ja.prototype.add=ja.prototype.add,ja.prototype.equalsApprox=ja.prototype.Xa,ja.className="PathFigure";function To(a,y,b,E,x,z,ne,ie){Ei(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===wl?(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===Da&&(z=Math.max(z,0)),this.Wh=z,typeof ne=="number"?(a===Da&&(ne=Math.max(ne,0)),this.Pg=ne):this.Pg=0),this.ae=null}To.prototype.copy=function(){var a=new To;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},Oe=To.prototype,Oe.Xa=function(a){if(!(a instanceof To)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case oa:case Zo:return en.B(this.endX,a.endX)&&en.B(this.endY,a.endY);case Xa: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 pl: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 Da: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 wl: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}},Oe.qb=function(a){a.classType===To&&(this.type=a)},Oe.toString=function(a){switch(a===void 0&&(a=-1),this.type){case oa: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 Xa: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 pl: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 Da: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 wl: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":"")},Oe.freeze=function(){return this._isFrozen=!0,this},Oe.ka=function(){return this._isFrozen=!1,this},Oe.close=function(){return this.isClosed=!0,this};function Ps(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=Mi.alloc();ne.reset(),b<E?ne.scale(1,E/b):ne.scale(b/E,1),Ar.Ha(z,ne),Mi.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 Zs(a,y,b,E){function x(qe,Pt,yt,Rt){return(qe*Rt<Pt*yt?-1:1)*Math.acos((qe*yt+Pt*Rt)/(Math.sqrt(qe*qe+Pt*Pt)*Math.sqrt(yt*yt+Rt*Rt)))}if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;if(a.radiusX===0||a.radiusY===0)return a.ae=[],a.ae;y=a.Wh;var z=a.Pg;y===0&&(y=1e-4),z===0&&(z=1e-4);var ne=Math.PI/180*a.Ne,ie=a.isLargeArc,se=a.isClockwiseArc,de=a.Dc,pe=a.Ec,Se=Math.cos(ne),Ne=Math.sin(ne),Me=Se*(b-de)/2+Ne*(E-pe)/2;ne=-Ne*(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-Ne*ze,E=(E+pe)/2+Ne*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=Mi.alloc(),z.reset(),z.translate(b,E),z.rotate(a.Ne,0,0),z.scale(se,Me),Ar.Ha(y,z),Mi.free(z),a.ae=y,a.ae}pn.Object.defineProperties(To.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&&on(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&on(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&on(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&on(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&on(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&on(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&on(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&on(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&on(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&br(a,">= zero",To,"radiusX"),this._isFrozen&&on(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&br(a,">= zero",To,"radiusY"),this._isFrozen&&on(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&on(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&&on(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&&on(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&&on(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&&on(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),To.prototype.equalsApprox=To.prototype.Xa;var oa=new Qn(To,"Move",0),Zo=new Qn(To,"Line",1),Xa=new Qn(To,"Bezier",2),pl=new Qn(To,"QuadraticBezier",3),Da=new Qn(To,"Arc",4),wl=new Qn(To,"SvgArc",4);To.className="PathSegment",To.Move=oa,To.Line=Zo,To.Bezier=Xa,To.QuadraticBezier=pl,To.Arc=Da,To.SvgArc=wl;function Ts(){this.H=null,this.xu=new rt(0,0).freeze(),this.mt=new rt(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}Ts.prototype.copy=function(){var a=new Ts;return this.clone(a)},Ts.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},Ts.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},Ts.prototype.So=function(a,y){var b=this.diagram;return b===null||Lf(b,a,y),y},Ts.prototype.Bz=function(a,y){var b=this.diagram;return b===null||(Lf(b,a,y),y.assign(b.Ps(y))),y},pn.Object.defineProperties(Ts.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}}}),Ts.prototype.getMultiTouchDocumentPoint=Ts.prototype.Bz,Ts.prototype.getMultiTouchViewPoint=Ts.prototype.So,Ts.className="InputEvent";function _u(){this.H=null,this.xa="",this.ar=this.Lr=null}_u.prototype.copy=function(){var a=new _u;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},_u.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},pn.Object.defineProperties(_u.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}}}),_u.className="DiagramEvent";function ga(){this.Fm=aa,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}ga.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},ga.prototype.copy=function(){var a=new ga;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=Xt(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Xt(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Xt(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Xt(y)&&typeof y.J=="function"?y.J():y,a},ga.prototype.qb=function(a){a.classType===ga&&(this.change=a)},ga.prototype.toString=function(){var a="";return a=this.change===Ds?a+"* ":this.change===aa?a+(this.model!==null?"!m":"!d"):a+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(a+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(a+=" "+this.modelChange),a+=": ",this.change===Ds?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=vi(this.object)),this.oldValue!==null&&(a+=" old: "+vi(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+vi(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},ga.prototype.I=function(a){return a?this.oldValue:this.newValue},ga.prototype.Dz=function(a){return a?this.oldParam:this.newParam},ga.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},ga.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},ga.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},ga.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},pn.Object.defineProperties(ga.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===Ds&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),ga.prototype.redo=ga.prototype.redo,ga.prototype.canRedo=ga.prototype.canRedo,ga.prototype.undo=ga.prototype.undo,ga.prototype.canUndo=ga.prototype.canUndo,ga.prototype.getParam=ga.prototype.Dz,ga.prototype.getValue=ga.prototype.I,ga.prototype.clear=ga.prototype.clear;var Ds=new Qn(ga,"Transaction",-1),aa=new Qn(ga,"Property",0),Pa=new Qn(ga,"Insert",1),ka=new Qn(ga,"Remove",2);ga.className="ChangedEvent",ga.Transaction=Ds,ga.Property=aa,ga.Insert=Pa,ga.Remove=ka;function Va(){this.o=new er().freeze(),this.xa="",this.j=!1}Va.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0<a){a=this.changes.count;for(var b=0;b<a;b++){var E=this.changes.M(b);E!==null&&(y+=`
`+E.toString())}}return y},Va.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()},Va.prototype.canUndo=function(){return this.isComplete},Va.prototype.undo=function(){if(this.canUndo())for(var a=this.changes.count-1;0<=a;a--){var y=this.changes.M(a);y!==null&&y.undo()}},Va.prototype.canRedo=function(){return this.isComplete},Va.prototype.redo=function(){if(this.canRedo())for(var a=this.changes.count,y=0;y<a;y++){var b=this.changes.M(y);b!==null&&b.redo()}},Va.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new Ln,b=0;b<a.count;b++){var E=a.M(b);if(E!==null&&E.change===aa&&E.object){var x=y.get(E.object);x||(x=new Ln,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()}},pn.Object.defineProperties(Va.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isComplete:{get:function(){return this.j},set:function(a){this.j=a}}}),Va.prototype.optimize=Va.prototype.ak,Va.prototype.redo=Va.prototype.redo,Va.prototype.canRedo=Va.prototype.canRedo,Va.prototype.undo=Va.prototype.undo,Va.prototype.canUndo=Va.prototype.canUndo,Va.prototype.clear=Va.prototype.clear,Va.className="Transaction";function ea(){this.Pt=new ar,this.Jd=!1,this.u=new er().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new er().freeze(),this.hl=new er,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}ea.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},ea.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},ea.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Oe=ea.prototype,Oe.Xw=function(a){this.Pt.add(a)},Oe.Rx=function(a){this.Pt.remove(a)},Oe.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},Oe.eb=function(a){return a===void 0&&(a=""),cc(this,!0,a)},Oe.Kf=function(){return cc(this,!1,"")};function cc(a,y,b){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&Br("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}Oe.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()}},ea.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},ea.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){Br("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},ea.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},ea.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){Br("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},ea.prototype.Ob=function(a,y,b){b===void 0&&(b=null);var E=new ga;for(E.change=Ds,E.propertyName=a,E.object=b,E.oldValue=y,a=this.models;a.next();)y=a.value,E.model=y,y.ds(E)},ea.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Va);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||Br("Change not within a transaction: "+b.toString()))}},ea.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},pn.Object.defineProperties(ea.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}}}),ea.prototype.handleChanged=ea.prototype.Tu,ea.prototype.redo=ea.prototype.redo,ea.prototype.undo=ea.prototype.undo,ea.prototype.canUndo=ea.prototype.canUndo,ea.prototype.discardHistoryAfterIndex=ea.prototype.lx,ea.prototype.rollbackTransaction=ea.prototype.Kf,ea.prototype.commitTransaction=ea.prototype.eb,ea.prototype.startTransaction=ea.prototype.Ea,ea.prototype.removeModel=ea.prototype.Rx,ea.prototype.addModel=ea.prototype.Xw,ea.prototype.clear=ea.prototype.clear,ea.className="UndoManager";function Eo(){Ei(this),this.H=Rc,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Ts,this.Zr=-1}Eo.prototype.toString=function(){return this.name!==""?this.name+" Tool":zn(this.constructor)},Eo.prototype.updateAdornments=function(){},Eo.prototype.canStart=function(){return this.isEnabled},Eo.prototype.doStart=function(){},Eo.prototype.doActivate=function(){this.isActive=!0},Eo.prototype.doDeactivate=function(){this.isActive=!1},Eo.prototype.doStop=function(){},Eo.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Eo.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},Eo.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Eo.prototype.doMouseMove=function(){},Eo.prototype.doMouseUp=function(){this.stopTool()},Eo.prototype.doMouseWheel=function(){},Eo.prototype.canStartMultiTouch=function(){return!0},Eo.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,b=y.So(0,rt.allocAt(NaN,NaN)),E=y.So(1,rt.allocAt(NaN,NaN));if(b.w()&&E.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var x=E.x-b.x,z=E.y-b.y;a.Jw=Math.sqrt(x*x+z*z),y.bubbles=!1}rt.free(b),rt.free(E)},Eo.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,b=y.So(0,rt.allocAt(NaN,NaN)),E=y.So(1,rt.allocAt(NaN,NaN));if(b.w()&&E.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var x=E.x-b.x,z=E.y-b.y;z=Math.sqrt(x*x+z*z)/a.Jw,x=new rt((Math.min(E.x,b.x)+Math.max(E.x,b.x))/2,(Math.min(E.y,b.y)+Math.max(E.y,b.y))/2),z*=a.Bw;var ne=a.commandHandler;if(z!==a.scale&&ne.canResetZoom(z)){var ie=a.zoomPoint;a.zoomPoint=x,ne.resetZoom(z),a.zoomPoint=ie}y.bubbles=!1}rt.free(b),rt.free(E)},Eo.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Eo.prototype.doKeyUp=function(){},Eo.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},Eo.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},Eo.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,b=a.Ol(y.documentPoint,!1);if(b!==null){if(Ci?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||(Ci?y.meta:y.control)||y.shift||a.clearSelection()}},Eo.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(x){return!x.layer.isTemporary});var b=this.diagram,E=b.lastInput;return a=b.ic(E.documentPoint,a,y),E.targetObject=a,dd(a,E,b),E.handled};function dd(a,y,b){if(y.handled=!1,a===null||a.If()){var E=0;y.left?E=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(E=3);var x="ObjectSingleClicked";if(a!==null){switch(E){case 1:x="ObjectSingleClicked";break;case 2:x="ObjectDoubleClicked";break;case 3:x="ObjectContextClicked"}E!==0&&b.R(x,a)}else{switch(E){case 1:x="BackgroundSingleClicked";break;case 2:x="BackgroundDoubleClicked";break;case 3:x="BackgroundContextClicked"}E!==0&&b.R(x)}if(a!==null)for(;a!==null;){switch(b=null,E){case 1:b=a.click;break;case 2:b=a.doubleClick?a.doubleClick:a.click;break;case 3:b=a.contextClick}if(b!==null&&(b(y,a),y.handled))break;a=a.panel}else{switch(a=null,E){case 1:a=b.click;break;case 2:a=b.doubleClick?b.doubleClick:b.click;break;case 3:a=b.contextClick}a!==null&&a(y)}}}Eo.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}},Eo.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},Eo.prototype.doCurrentObjectChanged=function(){},Eo.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===lu&&!y.shift||x===Cu&&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===lu&&y.shift||x===Cu&&!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)}}},Eo.prototype.doWheelChange=function(a,y,b){a.position.D(y)&&b.event.wheelDeltaX===0||(b.bubbles=!1)},Eo.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var b=this,E=y.clone(this.yy);this.Zr=Ai(function(){b.doWaitAfter(E)},a)},Eo.prototype.cancelWaitAfter=function(){this.Zr!==-1&&dr.clearTimeout(this.Zr),this.Zr=-1},Eo.prototype.doWaitAfter=function(){},Eo.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(b){for(;b!==null&&!(b.panel instanceof _o);)b=b.panel;return b}),a===null?null:a.part.category===y?a:null},Eo.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},pn.Object.defineProperties(Eo.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof In&&(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}}}),Eo.prototype.startTransaction=Eo.prototype.Ea,Eo.className="Tool";function ra(){Eo.call(this),this.name="ToolManager",this.hb=new er,this.ob=new er,this.Hb=new er,this.F=this.V=850,this.o=new ln(2,2).ja(),this.Ha=5e3,this.ia=Cu,this.u=Ec,this.Mp=this.j=null,this.zj=-1}Cn(ra,Eo),ra.prototype.initializeStandardTools=function(){},ra.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof _o&&this.Mp===a){var b=y.adornedObject;(a!==null?b.part===a:b===null)?this.showToolTip(y,b):this.hideToolTip()}},ra.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===uu&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Yl){y.bubbles=!0;return}if(this.gestureBehavior===uu)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===Cu?this.mouseWheelBehavior=lu:this.mouseWheelBehavior===lu&&(this.mouseWheelBehavior=Cu)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},ra.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Yl){y.bubbles=!0;return}if(this.gestureBehavior===uu)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var b=this.mouseMoveTools.length,E=0;E<b;E++){var x=this.mouseMoveTools.M(E);if(x.diagram=this.diagram,x.canStart()){a.doFocus(),a.currentTool=x,a.currentTool===x&&(x.isActive||x.doActivate(),x.doMouseMove());return}}Vc(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Vc(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}ra.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof _o&&(y===a||y.rg(a))||this.hideToolTip()},ra.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()))},ra.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)},ra.prototype.doToolTip=function(){var a=this.diagram,y=a.lastInput;if(y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null)),y=y.targetObject,y!==null){if(a=this.currentToolTip,!(a instanceof _o)||y!==a&&!y.rg(a)){for(;y!==null;){if(a=y.toolTip,a!==null){this.showToolTip(a,y);return}y=y.panel}this.hideToolTip()}}else y=a.toolTip,y!==null?this.showToolTip(y,null):this.hideToolTip()},ra.prototype.showToolTip=function(a,y){var b=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof _o){a.layerName="Tool",a.selectable=!1,a.scale=1/b.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=b.scale);var E=a.diagram;E!==null&&E!==b&&E.remove(a),b.add(a),y!==null?a.adornedObject=y:a.data=b.model,a.Va(),this.positionToolTip(a,y)}else a instanceof Ao&&a!==this.currentToolTip&&a.show(y,b,this);if(this.currentToolTip=a,this.zj!==-1&&(dr.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var x=this;this.zj=Ai(function(){x.hideToolTip()},a)}},ra.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}},ra.prototype.hideToolTip=function(){this.zj!==-1&&(dr.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof _o?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Ao&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},ra.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()},ra.prototype.doMouseWheel=function(){this.standardMouseWheel()},ra.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},ra.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},ra.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},ra.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},ra.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)},pn.Object.defineProperties(ra.prototype,{mouseWheelBehavior:{get:function(){return this.ia},set:function(a){this.ia=a}},gestureBehavior:{get:function(){return this.u},set:function(a){this.u=a}},currentToolTip:{get:function(){return this.j},set:function(a){this.j=a,this.Mp=a!==null&&a instanceof _o?a.adornedPart:null}},mouseDownTools:{get:function(){return this.hb}},mouseMoveTools:{get:function(){return this.ob}},mouseUpTools:{get:function(){return this.Hb}},hoverDelay:{get:function(){return this.V},set:function(a){this.V=a}},holdDelay:{get:function(){return this.F},set:function(a){this.F=a}},dragSize:{get:function(){return this.o},set:function(a){this.o=a.J()}},toolTipDuration:{get:function(){return this.Ha},set:function(a){this.Ha=a}}}),ra.prototype.replaceStandardTool=ra.prototype.gb;var Cu=new Qn(ra,"WheelScroll",0),lu=new Qn(ra,"WheelZoom",1),Wc=new Qn(ra,"WheelNone",2),Ec=new Qn(ra,"GestureZoom",3),uu=new Qn(ra,"GestureCancel",4),Yl=new Qn(ra,"GestureNone",5);ra.className="ToolManager",ra.WheelScroll=Cu,ra.WheelZoom=lu,ra.WheelNone=Wc,ra.GestureZoom=Ec,ra.GestureCancel=uu,ra.GestureNone=Yl;function sa(){Eo.call(this),this.name="Dragging",this.u=this.Sw=this.ob=!0,this.o=this.Ha=this.V=this.Oe=null,this.Ym=this.Hb=!1,this.tl=new rt(NaN,NaN),this.Fr=new rt,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new ar().freeze(),this.ia=new le,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Qs;Cn(sa,Eo),sa.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},sa.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},sa.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,(Ci?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},sa.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),ys=null,this.isActive=!0,this.tl.set(a.position),Uu(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&&ll(a),Rf(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,ys=this,dc=this.diagram,this.doSimulatedDragOut()))};function Uu(a,y){if(a.dragsLink){var b=a.diagram;b.allowRelink&&(b.model.Wj()&&y.count===1&&y.first()instanceof Rr?(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 kl,a.Oe.diagram=b),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}sa.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},sa.prototype.Pd=function(a){return a===void 0?new Jc(Hr):this.isGridSnapEnabled?new Jc(new rt(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Jc(a.copy())},sa.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),gl(this),Pd(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Qs.count){for(var y=Qs,b=y.length,E=0;E<b;E++){var x=y.M(E);ha(x),Vo(x),gl(x),x.diagram.ug()}y.clear()}ha(this),this.tl.h(NaN,NaN),dc!==null&&(dc.currentCursor=""),ys=dc=null,Vo(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Wh(a,!0)},sa.prototype.stopTransaction=function(){var a=this.diagram,y=Eo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function gl(a){var y=a.diagram,b=y.skipsUndoManager;y.skipsUndoManager=!0,Fl(a,y.lastInput,null),y.skipsUndoManager=b,a.Cg.length=0}function Xl(){var a=ys;Vo(a),As(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}sa.prototype.doCancel=function(){Vo(this),As(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},sa.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},sa.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function il(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")):As(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 Ln,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 Rr&&E.canCopy()&&b.add(E,a.Pd());a.copiedParts=b,Uu(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 Vo(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 Rr&&(b.value.point=new rt(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function ha(a){if(a.draggedLink!==null){if(a.dragsLink&&a.Oe!==null){var y=a.Oe;y.diagram.remove(y.temporaryFromNode),y.diagram.remove(y.temporaryToNode),a.Oe.originalLink=null}a.draggedLink=null,a.Oe=null}}function Ha(a,y,b){var E=a.diagram,x=a.startPoint,z=rt.alloc();z.assign(E.lastInput.documentPoint),a.moveParts(y,z.re(x),b),rt.free(z),E.Gf("temporaryPixelRatio")===!0&&E.Yh===null&&30<E.$w&&(ll(E),E.hk())}sa.prototype.moveParts=function(a,y,b){b===void 0&&(b=!1);var E=this.diagram;E!==null&&Zd(E,a,y,this.dragOptions,b)};function As(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 Rr&&E.suspendsRouting){var x=b.value.point;a.draggedParts.add(E,a.Pd()),Lh(E,-x.x,-x.y)}y.bd()}}function vs(a,y){var b=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),Ll(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=Fl(a,x,E),!a.isActive&&ys===null)return;var ie=E!==null?E.part:null;if(ie===null||b.handlesDragDropForTopLevelParts&&ie.isTopLevel&&!(ie instanceof to)){var se=b.mouseDragOver;se!==null&&(se(x),ne=!0)}if(!a.isActive&&ys===null||(a.doDragOver(y,E),!a.isActive&&ys===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)}sa.prototype.findDragOverObject=function(a){var y=this;return Yc(this.diagram,a,null,function(b){return b===null?b=!0:(b=b.part,b=!!(b===null||b instanceof _o||b.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(b)||y.copiedParts&&y.copiedParts.contains(b))),!b})},sa.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 Fl(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&&ys===null||b===null)return E;for(y.handled=!1,x=b;x!==null;)a.Cg.push(x),x=Nl(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 Nl(a){var y=a.panel;return y!==null?y:a instanceof Li&&!(a instanceof to)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Bl(a,y,b){var E=a.Oe;if(E===null)return null;var x=a.diagram.og(y,E.portGravity,function(de){return E.findValidLinkablePort(de,b)});a=rt.alloc();var z=1/0,ne=null;for(x=x.iterator;x.next();){var ie=x.value;if(ie.part!==null){var se=ie.ga(qi,a);se=y.Bf(se),se<z&&(ne=ie,z=se)}}return rt.free(a),ne}function Ll(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=Bl(a,b.i(0),!1),z!==null&&(ne=z.part));var ie=null,se=null;b.toNode===null&&(ie=Bl(a,b.i(b.pointsCount-1),!0),ie!==null&&(se=ie.part)),x.isValidLink(ne,z,se,ie)?y?(b.defaultFromPoint=b.i(0),b.defaultToPoint=b.i(b.pointsCount-1),b.suspendsRouting=!1,b.fromNode=ne,z!==null&&(b.fromPortId=z.portId),b.toNode=se,ie!==null&&(b.toPortId=ie.portId),b.fromPort!==E.Mx&&E.R("LinkRelinked",b,E.Mx),b.toPort!==E.Nx&&E.R("LinkRelinked",b,E.Nx)):Ce(x,ne,z,se,ie):Ce(x,null,null,null,null)}}}}sa.prototype.doDragOver=function(){};function cu(a,y){var b=a.diagram;a.dragsLink&&Ll(a,!0),gl(a);var E=a.findDragOverObject(y),x=b.lastInput;if(x.targetObject=E,E!==null){x.handled=!1;for(var z=E;z!==null;){var ne=z.mouseDrop;if(ne!==null&&(ne(x,z),x.handled))break;xd(a,x,z),z=Nl(z)}}else z=b.mouseDrop,z!==null&&z(x);if(a.isActive||ys!==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||ys!==null){for(a=kn.alloc(),y=b.selection.iterator;y.next();)E=y.value,E instanceof qr&&hh(b,E,a);kn.free(a)}}}function xd(a,y,b){a=a.diagram,b=b.part,!a.handlesDragDropForTopLevelParts||!b.isTopLevel||b instanceof to||(b=a.mouseDrop,b!==null&&b(y))}function hh(a,y,b){var E=!1;if(b=y.getAvoidableRect(b),a.viewportBounds.Re(b)&&(E=!0),a=a.Nu(b,function(x){return x.part},function(x){return x instanceof Rr},!0,function(x){return x instanceof Rr},E),a.count!==0)for(a=a.iterator;a.next();)b=a.value,!b.Td(y)&&b.isAvoiding&&b.bb()}sa.prototype.doDropOnto=function(){},sa.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()?(il(this,!1),Rf(a,this.copiedParts),Ha(this,this.copiedParts,!1),Pd(a,this.copiedParts)):this.mayMove()?(Vo(this),Ha(this,this.draggedParts,!0)):this.mayDragOut()?(il(this,!1),Ha(this,this.copiedParts,!1)):Vo(this),vs(this,a.lastInput.documentPoint))}},sa.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?(Vo(this),il(this,!0),Rf(a,this.copiedParts),Ha(this,this.copiedParts,!1),Pd(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(x){x.isSelected=!0}))):(y=!0,Vo(this),this.mayMove()&&(Ha(this,this.draggedParts,!0),vs(this,a.lastInput.documentPoint))),this.Ym=!0,cu(this,a.lastInput.documentPoint),this.isActive){var E=b?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&jd(this),a.Ya(),Pd(a,this.draggedParts),this.transactionResult=b?"Copy":"Move",a.R(b?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),b&&a.R("ChangedSelection",a.selection)}}},sa.prototype.simulatedMouseMove=function(a,y,b){if(ys===null)return!1;var E=ys.diagram;b instanceof In||(b=null);var x=dc;return b!==x&&(x!==null&&x!==E&&(x.ug(),ys.isDragOutStarted=!1,x=x.toolManager.findTool("Dragging"),x!==null&&x.doSimulatedDragLeave()),dc=b,b!==null&&b!==E&&(Xl(),x=b.toolManager.findTool("Dragging"),x!==null&&(Qs.contains(x)||Qs.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)},sa.prototype.simulatedMouseUp=function(a,y,b){if(ys===null)return!1;var E=dc,x=ys.diagram;if(b===null)return ys.doCancel(),!0;if(b!==E){var z=E.toolManager.findTool("Dragging");if(E!==null&&E!==x&&z!==null)return E.ug(),ys.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;dc=b,E=b.toolManager.findTool("Dragging"),E!==null&&(Xl(),Qs.contains(E)||Qs.add(E),E.doSimulatedDragEnter())}return b!==this.diagram?(a!==null?(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=b.getMouse(a)):y===null&&(y=new rt),b.lastInput.documentPoint=y,b.lastInput.viewPoint=b.op(y),b.lastInput.down=!1,b.lastInput.up=!0,a=b.toolManager.findTool("Dragging"),a!==null&&a.doSimulatedDrop(),a=ys,a!==null&&(b=a.mayCopy(),a.transactionResult=b?"Copy":"Move",a.stopTool()),!0):!1};function jd(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var b=y.key;b instanceof qr&&(b=b.containingGroup,b===null||b.placeholder===null||a.draggedParts.contains(b)||b.placeholder.v())}}sa.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(Ci?!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())},sa.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())},sa.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())},sa.prototype.computeBorder=function(a,y,b){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:b.assign(y)},sa.prototype.Az=function(){return ys},sa.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=ys;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},sa.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),Au(a),a.animationManager.Cc(),a=ys,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},sa.prototype.doSimulatedDragLeave=function(){var a=ys;a!==null&&a.doSimulatedDragOut(),this.doCancel()},sa.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=ys;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;fh(this,y.draggedParts.Lf(),!1,a.firstInput),Ha(this,this.copiedParts,!1),vs(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},sa.prototype.doSimulatedDrop=function(){var a=this.diagram,y=ys;if(y!==null){var b=y.diagram;if(y.Ym=!0,Vo(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),fh(this,y.draggedParts.Lf(),!0,a.lastInput),Ha(this,this.copiedParts,!1);var E=new ar;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(x){x.isSelected=!0,E.add(x)})),cu(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",E,b),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function fh(a,y,b,E){if(a.copiedParts===null){var x=a.diagram;if(!x.isReadOnly&&!x.isModelReadOnly){x.skipsUndoManager=!b,x.partManager.addsToTemporaryLayer=!b,a.startPoint=E.documentPoint,b=x.Kj(y,x,!0);var z=kn.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,kn.free(z),z=a.Fr,ne=new Ln,ie=rt.alloc(),se=y.iterator;se.next();)de=se.value,de instanceof Rr&&de.canCopy()&&(pe=b.I(de),pe!==null&&(pe.points=de.points,Lh(pe,z.x-E,z.y-x),pe.suspendsRouting=!0,ne.add(pe,a.Pd())));for(y=y.iterator;y.next();)de=y.value,de.Zc()&&de.canCopy()&&(se=b.I(de),se!==null&&(de=de.location,ie.h(z.x-(E-de.x),z.y-(x-de.y)),se.location=ie,se.Va(),ne.add(se,a.Pd(ie))));rt.free(ie),a.copiedParts=ne,Uu(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)}}}sa.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},sa.prototype.computeMove=function(a,y,b,E){return b=this.diagram,b!==null?b.computeMove(a,y,this.dragOptions,E):new rt},pn.Object.defineProperties(sa.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}}}),sa.prototype.getDraggingSource=sa.prototype.Az;var ys=null,dc=null;sa.className="DraggingTool",Qs=new er,ci("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),ra.prototype.doCancel=function(){ys!==null&&ys.doCancel(),Eo.prototype.doCancel.call(this)};function Na(){Eo.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Rr,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=Ur,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=Ur,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 Ln,this.Of=this.gj=this.Pf=null}Cn(Na,Eo),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=ln.alloc();ne.width=y.naturalBounds.width*z,ne.height=y.naturalBounds.height*z,E.desiredSize=ne,ln.free(ne),x?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),b.locationSpot=qi,z=rt.alloc(),b.location=y.ga(qi,z),rt.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=Ur,y.fromSpot=Ji,y.toSpot=Ji),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(qi,rt.alloc()),de=b.x-se.x,pe=b.y-se.y;rt.free(se),se=de*de+pe*pe,se<E&&(de=this.validPortsCache.I(ne),de!==null?de&&(y=ne,E=se):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,ie,ne)||!a&&this.isValidLink(ie,ne,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(ne,!0),y=ne,E=se):this.validPortsCache.add(ne,!1))}}return y!==null&&(b=y.part,b instanceof 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 ar;return E.add(a),Hs(this,b,y,E)};function Hs(a,y,b,E){if(y===b)return!0;var x=y.fromNode;return x!==null&&x.isLinkLabel&&(E.add(x),Hs(a,x.labeledLink,b,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),Hs(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!==Jd){if(E===Ep){if(E=b||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=y.linksConnected;E.next();){var x=E.value;if(x!==b&&x.isTreeLink&&x.toNode===y)return!1}return!Js(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!Js(this,a,y,b,!0)}if(E===yp)return a===y?a=!0:(E=new ar,E.add(y),a=Ks(this,E,a,y,b)),!a;if(E===Sp)return!Js(this,a,y,b,!1);if(E===bp)return a===y?a=!0:(E=new ar,E.add(y),a=xc(this,E,a,y,b)),!a}return!0};function Js(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&&Js(a,ne,b,E,x)))return!0}return!1}function Ks(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&&Ks(a,y,ne,E,x)))return!0}return!1}function xc(a,y,b,E,x){if(b===E)return!0;if(b===null||E===null||y.contains(b))return!1;y.add(b);for(var z=b.linksConnected;z.next();){var ne=z.value;if(ne!==x){var ie=ne.fromNode;if(ne=ne.toNode,ie=ie===b?ne:ie,ie!==b&&xc(a,y,ie,E,x))return!0}}return!1}pn.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 ol(){Na.call(this),this.name="Linking",this.V={},this.F=null,this.K=du,this.Xd=null}Cn(ol,Na),ol.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},ol.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===du||b===Ic){var E=this.findValidLinkablePort(y,!1);if(E!==null||this.startObject===a&&(E=a.port,this.findValidLinkablePort(E,!1)))return this.isForwards=!0,E}return(b===du||b===Zc)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},ol.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)},ol.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},ol.prototype.doStop=function(){Na.prototype.doStop.call(this),this.startObject=null},ol.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)}}},ol.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Rr)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)},ol.prototype.insertLink=function(a,y,b,E){return this.diagram.partManager.insertLink(a,y,b,E)},ol.prototype.doNoLink=function(){},pn.Object.defineProperties(ol.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 du=new Qn(ol,"Either",0),Ic=new Qn(ol,"ForwardsOnly",0),Zc=new Qn(ol,"BackwardsOnly",0);ol.className="LinkingTool",ol.Either=du,ol.ForwardsOnly=Ic,ol.BackwardsOnly=Zc;function kl(){Na.call(this),this.name="Relinking";var a=new oo;a.figure="Diamond",a.desiredSize=ai,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new oo,a.figure="Diamond",a.desiredSize=ai,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new kn}Cn(kl,Na),kl.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Rr){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)}},kl.prototype.makeAdornment=function(a,y){var b=new _o;return b.type=Tr.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&b.add(y.copy()),b.adornedObject=a,b},kl.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},kl.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var b=y.part;if(!(b instanceof _o&&b.adornedPart instanceof Rr))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=qn),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=qn),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},kl.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var b=a.curve;(b===yg||b===kh)&&(b=eu),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}},kl.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()},kl.prototype.doStop=function(){Na.prototype.doStop.call(this),this.handle=null},kl.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()}}},kl.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},kl.prototype.doNoRelink=function(){};function Ce(a,y,b,E,x){y!==null?(a.copyPortProperties(y,b,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),E!==null?(a.copyPortProperties(E,x,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}pn.Object.defineProperties(kl.prototype,{fromHandleArchetype:{get:function(){return this.V},set:function(a){this.V=a}},toHandleArchetype:{get:function(){return this.Xd},set:function(a){this.Xd=a}},handle:{get:function(){return this.F},set:function(a){if(a!==null&&!(a.part instanceof _o))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),kl.className="RelinkingTool",ci("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),ci("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Qe(){Eo.call(this),this.name="LinkReshaping";var a=new oo;a.figure="Rectangle",a.desiredSize=Ni,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new oo,a.figure="Diamond",a.desiredSize=ai,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new rt,this.Yq=new er}Cn(Qe,Eo),Qe.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:pt},Qe.prototype.om=function(a,y){a.reshapingBehavior=y},Qe.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Rr){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)}},Qe.prototype.makeAdornment=function(a){var y=a.part,b=y.pointsCount,E=y.isOrthogonal,x=null;if(y.points!==null&&1<b){x=new _o,x.type=Tr.Link,b=y.firstPickIndex;var z=y.lastPickIndex,ne=E?1:0;if(y.resegmentable&&y.computeCurve()!==rc)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,Ut),ie.cursor="n-resize"):en.B(se.y,de.y)&&(this.om(ie,Ft),ie.cursor="w-resize")}else ne===z-1&&E?(se=y.i(z-1),de=y.i(z),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,Ut),ie.cursor="n-resize"):en.B(se.y,de.y)&&(this.om(ie,Ft),ie.cursor="w-resize")):ne!==z&&(this.om(ie,an),ie.cursor="move");x.add(ie)}x.adornedObject=a}return x},Qe.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Qe.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Qe.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},Qe.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 Rr){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}}},Qe.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Qe.prototype.stopTransaction=function(){var a=this.diagram,y=Eo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Qe.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Qe.prototype.getResegmentingPoint=function(){return this.handle.ga(qi)},Qe.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Qe.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.computeReshape(a.lastInput.documentPoint);if(this.reshape(y),y=this.adornedLink,y!==null&&y.resegmentable){var b=this.handle.segmentIndex,E=y.i(b-1),x=y.i(b),z=y.i(b+1);if(y.isOrthogonal){if(b>y.firstPickIndex+1&&b<y.lastPickIndex-1){var ne=y.i(b-2);if(Math.abs(E.x-x.x)<this.resegmentingDistance&&Math.abs(E.y-x.y)<this.resegmentingDistance&&(tt(this,ne,E,x,z,!0)||tt(this,ne,E,x,z,!1))){var ie=y.points.copy();tt(this,ne,E,x,z,!0)?(ie.cd(b-2,new rt(ne.x,(z.y+ne.y)/2)),ie.cd(b+1,new rt(z.x,(z.y+ne.y)/2))):(ie.cd(b-2,new rt((z.x+ne.x)/2,ne.y)),ie.cd(b+1,new rt((z.x+ne.x)/2,z.y))),ie.mb(b),ie.mb(b-1),y.points=ie,y.Wb()}else ne=y.i(b+2),Math.abs(x.x-z.x)<this.resegmentingDistance&&Math.abs(x.y-z.y)<this.resegmentingDistance&&(tt(this,E,x,z,ne,!0)||tt(this,E,x,z,ne,!1))&&(ie=y.points.copy(),tt(this,E,x,z,ne,!0)?(ie.cd(b-1,new rt(E.x,(E.y+ne.y)/2)),ie.cd(b+2,new rt(ne.x,(E.y+ne.y)/2))):(ie.cd(b-1,new rt((E.x+ne.x)/2,E.y)),ie.cd(b+2,new rt((E.x+ne.x)/2,ne.y))),ie.mb(b+1),ie.mb(b),y.points=ie,y.Wb())}}else ne=rt.alloc(),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()),rt.free(ne)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function tt(a,y,b,E,x,z){return z?Math.abs(y.y-b.y)<a.resegmentingDistance&&Math.abs(b.y-E.y)<a.resegmentingDistance&&Math.abs(E.y-x.y)<a.resegmentingDistance:Math.abs(y.x-b.x)<a.resegmentingDistance&&Math.abs(b.x-E.x)<a.resegmentingDistance&&Math.abs(E.x-x.x)<a.resegmentingDistance}Qe.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===Ut?(y.L(b,y.i(b-1).x,a.y),y.L(b+1,y.i(b+2).x,a.y)):E===Ft&&(y.L(b,a.x,y.i(b-1).y),y.L(b+1,a.x,y.i(b+2).y));else if(b===y.lastPickIndex-1)b=y.lastPickIndex-1,E===Ut?(y.L(b-1,y.i(b-2).x,a.y),y.L(b,y.i(b+1).x,a.y)):E===Ft&&(y.L(b-1,a.x,y.i(b-2).y),y.L(b,a.x,y.i(b+1).y));else{E=b;var x=y.i(E),z=y.i(E-1),ne=y.i(E+1);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(qi,rt.alloc()),E=y.getLinkPointFromPoint(E,x,z,a,!0,rt.alloc()),y.L(0,E.x,E.y),rt.free(z),rt.free(E)),E=y.toNode,x=y.toPort,E!==null&&(z=E.findVisibleNode(),z!==null&&z!==E&&(E=z,x=E.port)),b===y.pointsCount-2&&y.computeSpot(!1,x).Mc()&&(b=x.ga(qi,rt.alloc()),a=y.getLinkPointFromPoint(E,x,b,a,!1,rt.alloc()),y.L(y.pointsCount-1,a.x,a.y),rt.free(b),rt.free(a));y.zf()},Qe.prototype.computeReshape=function(a){var y=this.adornedLink,b=this.handle.segmentIndex;switch(this.Ru(this.handle)){case an:return a;case Ut:return new rt(y.i(b).x,a.y);case Ft:return new rt(a.x,y.i(b).y);default:case pt:return y.i(b)}},pn.Object.defineProperties(Qe.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},midHandleArchetype:{get:function(){return this.u},set:function(a){this.u=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof _o))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedLink:{get:function(){return this.Ts}},resegmentingDistance:{get:function(){return this.F},set:function(a){this.F=a}},originalPoint:{get:function(){return this.Fw}},originalPoints:{get:function(){return this.Yq}}}),Qe.prototype.setReshapingBehavior=Qe.prototype.om,Qe.prototype.getReshapingBehavior=Qe.prototype.Ru;var pt=new Qn(Qe,"None",0),Ft=new Qn(Qe,"Horizontal",1),Ut=new Qn(Qe,"Vertical",2),an=new Qn(Qe,"All",3);Qe.className="LinkReshapingTool",Qe.None=pt,Qe.Horizontal=Ft,Qe.Vertical=Ut,Qe.All=an,ci("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function Nn(){Eo.call(this),this.name="Resizing",this.o=new ln(1,1).freeze(),this.j=new ln(9999,9999).freeze(),this.yg=new ln(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new oo;a.alignmentFocus=qi,a.figure="Rectangle",a.desiredSize=Ni,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new rt,this.Dw=new ln,this.Tn=new rt,this.rt=new ln(0,0),this.qt=new ln(1/0,1/0),this.pt=new ln(1,1)}Cn(Nn,Eo),Nn.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Rr)){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)}},Nn.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new _o,y.type=Tr.Spot,y.locationSpot=qi;var b=new $l;b.isPanelMain=!0,y.add(b),y.add(this.makeHandle(a,fo)),y.add(this.makeHandle(a,Oo)),y.add(this.makeHandle(a,Uo)),y.add(this.makeHandle(a,Ga)),y.add(this.makeHandle(a,ks)),y.add(this.makeHandle(a,gs)),y.add(this.makeHandle(a,Is)),y.add(this.makeHandle(a,Vs))}else if(Pc(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Nn.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},Nn.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=qi),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 Tr)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Nn.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},Nn.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))},Nn.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Nn.prototype.stopTransaction=function(){var a=this.diagram,y=Eo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Nn.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Nn.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,b=this.qt,E=this.pt,x=this.adornedObject.qs(a.lastInput.documentPoint,rt.alloc()),z=this.computeReshape();y=this.computeResize(x,this.handle.alignment,y,b,E,z),this.resize(y),a.bd(),rt.free(x)}},Nn.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,b=this.qt,E=this.pt,x=this.adornedObject.qs(a.lastInput.documentPoint,rt.alloc()),z=this.computeReshape();y=this.computeResize(x,this.handle.alignment,y,b,E,z),this.resize(y),rt.free(x),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Nn.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 to){var E=new er;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()}},Nn.prototype.computeResize=function(a,y,b,E,x,z){y.Mc()&&(y=qi);var ne=this.adornedObject.naturalBounds,ie=ne.x,se=ne.y,de=ne.x+ne.width,pe=ne.y+ne.height,Se=1;if(!z){Se=ne.width;var Ne=ne.height;0>=Se&&(Se=1),0>=Ne&&(Ne=1),Se=Ne/Se}return Ne=rt.alloc(),en.No(a.x,a.y,ie,se,x.width,x.height,Ne),a=ne.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Ne.x,de-E.width),a.x=Math.min(a.x,de-b.width),a.width=Math.max(de-a.x,b.width),a.y=Math.max(Ne.y,pe-E.height),a.y=Math.min(a.y,pe-b.height),a.height=Math.max(pe-a.y,b.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Se*a.width,E.height),b.height),a.width=a.height/Se):(a.width=Math.max(Math.min(a.height/Se,E.width),b.width),a.height=Se*a.width),a.x=de-a.width,a.y=pe-a.height)):1<=y.y?(a.x=Math.max(Ne.x,de-E.width),a.x=Math.min(a.x,de-b.width),a.width=Math.max(de-a.x,b.width),a.height=Math.max(Math.min(Ne.y-se,E.height),b.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Se*a.width,E.height),b.height),a.width=a.height/Se):(a.width=Math.max(Math.min(a.height/Se,E.width),b.width),a.height=Se*a.width),a.x=de-a.width)):(a.x=Math.max(Ne.x,de-E.width),a.x=Math.min(a.x,de-b.width),a.width=de-a.x,z||(a.height=Math.max(Math.min(Se*a.width,E.height),b.height),a.width=a.height/Se,a.y=se+.5*(pe-se-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(Ne.x-ie,E.width),b.width),a.y=Math.max(Ne.y,pe-E.height),a.y=Math.min(a.y,pe-b.height),a.height=Math.max(pe-a.y,b.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Se*a.width,E.height),b.height),a.width=a.height/Se):(a.width=Math.max(Math.min(a.height/Se,E.width),b.width),a.height=Se*a.width),a.y=pe-a.height)):1<=y.y?(a.width=Math.max(Math.min(Ne.x-ie,E.width),b.width),a.height=Math.max(Math.min(Ne.y-se,E.height),b.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Se*a.width,E.height),b.height),a.width=a.height/Se):(a.width=Math.max(Math.min(a.height/Se,E.width),b.width),a.height=Se*a.width))):(a.width=Math.max(Math.min(Ne.x-ie,E.width),b.width),z||(a.height=Math.max(Math.min(Se*a.width,E.height),b.height),a.width=a.height/Se,a.y=se+.5*(pe-se-a.height))):0>=y.y?(a.y=Math.max(Ne.y,pe-E.height),a.y=Math.min(a.y,pe-b.height),a.height=pe-a.y,z||(a.width=Math.max(Math.min(a.height/Se,E.width),b.width),a.height=Se*a.width,a.x=ie+.5*(de-ie-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Ne.y-se,E.height),b.height),z||(a.width=Math.max(Math.min(a.height/Se,E.width),b.width),a.height=Se*a.width,a.x=ie+.5*(de-ie-a.width))),rt.free(Ne),a},Nn.prototype.computeReshape=function(){var a=mr;return this.adornedObject instanceof oo&&(a=Bv(this.adornedObject)),!(a===yi||this.diagram.lastInput.shift)},Nn.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},Nn.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},Nn.prototype.computeCellSize=function(){var a=new ln(NaN,NaN),y=this.adornedObject.part;return y!==null&&(y=y.resizeCellSize,!isNaN(y.width)&&0<y.width&&(a.width=y.width),!isNaN(y.height)&&0<y.height&&(a.height=y.height)),y=this.cellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height),y=this.diagram,(isNaN(a.width)||isNaN(a.height))&&y&&(y=y.grid,y!==null&&y.visible&&this.isGridSnapEnabled&&(y=y.gridCellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height))),(isNaN(a.width)||a.width===0||a.width===1/0)&&(a.width=1),(isNaN(a.height)||a.height===0||a.height===1/0)&&(a.height=1),a},pn.Object.defineProperties(Nn.prototype,{handleArchetype:{get:function(){return this.F},set:function(a){this.F=a}},handle:{get:function(){return this.u},set:function(a){if(a!==null&&!(a.part instanceof _o))throw Error("new handle is not in an Adornment: "+a);this.u=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof _o)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},minSize:{get:function(){return this.o},set:function(a){if(!this.o.D(a)){var y=a.width;isNaN(y)&&(y=0),a=a.height,isNaN(a)&&(a=0),this.o.h(y,a)}}},maxSize:{get:function(){return this.j},set:function(a){if(!this.j.D(a)){var y=a.width;isNaN(y)&&(y=1/0),a=a.height,isNaN(a)&&(a=1/0),this.j.h(y,a)}}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||this.yg.assign(a)}},isGridSnapEnabled:{get:function(){return this.V},set:function(a){this.V=a}},dragsMembers:{get:function(){return this.ia},set:function(a){this.ia=a}},oppositePoint:{get:function(){return this.Xq},set:function(a){this.Xq.D(a)||this.Xq.assign(a)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),Nn.className="ResizingTool",ci("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Sr(){Eo.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new rt,this.ue=null;var a=new oo;a.figure="Ellipse",a.desiredSize=ai,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new rt(NaN,NaN),this.u=0,this.F=50}Cn(Sr,Eo),Sr.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)}},Sr.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new _o,y.type=Tr.Position,y.locationSpot=qi;var b=this.handleArchetype;b!==null&&y.add(b.copy())}else if(Pc(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Sr.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},Sr.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)},Sr.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(qi)},Sr.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)},Sr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new rt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Sr.prototype.stopTransaction=function(){var a=this.diagram,y=Eo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Sr.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Sr.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Sr.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()},Sr.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()}},Sr.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},pn.Object.defineProperties(Sr.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof _o))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof _o)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),Sr.className="RotatingTool",ci("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function xr(){Eo.call(this),this.name="ClickSelecting"}Cn(xr,Eo),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 tr(){Eo.call(this),this.name="Action",this.pk=null}Cn(tr,Eo),tr.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},tr.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()},tr.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))}},tr.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()},tr.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())},tr.prototype.doStop=function(){this.pk=null},tr.className="ActionTool";function Zr(){Eo.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new rt(0,0)}Cn(Zr,Eo),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 Li)b.Zc()&&(Pc(b),E=b.copy(),E!==null&&y.add(E));else if(b!==null){var x=y.model.copyNodeData(b);Xt(x)&&(y.model.xf(x),E=y.Lc(x))}if(E!==null){var z=rt.allocAt(a.x,a.y);this.isGridSnapEnabled&&Df(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),rt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},pn.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 Mr(){Eo.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Li;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}Cn(Mr,Eo),Mr.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))},Mr.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},Mr.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},Mr.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=ln.alloc().h(y.width,y.height);b.desiredSize=E,this.box.mm(y.x,y.y,!1),ln.free(E),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Mr.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()},Mr.prototype.computeBoxBounds=function(){var a=this.diagram;return new kn(a.firstInput.documentPoint,a.lastInput.documentPoint)},Mr.prototype.selectInRect=function(a){var y=this.diagram,b=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),Ci?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 er,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)}},pn.Object.defineProperties(Mr.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}}}),Mr.className="DragSelectingTool";function lr(){Eo.call(this),this.name="Panning",this.Xt=new rt,this.xy=new rt,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(dr.document,"scroll",a.Kw,!1),a.stopTool()}}Cn(lr,Eo),lr.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())},lr.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(dr.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},lr.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},lr.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},lr.prototype.doMouseMove=function(){this.move()},lr.prototype.doMouseUp=function(){this.move(),this.stopTool()},lr.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)}},pn.Object.defineProperties(lr.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),lr.className="PanningTool",ci("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),ci("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),ci("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),ci("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),ci("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function Ao(){this.F=this.u=this.j=this.o=null}pn.Object.defineProperties(Ao.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}}}),Ao.className="HTMLInfo";function Go(a,y,b){this.text=a,this.hx=y,this.visible=b}Go.className="ContextMenuButtonInfo";function ta(){Eo.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new rt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Cn(ta,Eo);function ao(a){var y=new Ao;y.show=function(x,z,ne){ne.showDefaultContextMenu()},y.hide=function(x,z){z.hideDefaultContextMenu()},Ki=y,a.tu=function(){a.stopTool()},y=Oi("div");var b=Oi("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=Oi("style");dr.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",Do,!1),E.addEventListener(y,"selectstart",Do,!1),E.addEventListener(b,"contextmenu",Do,!1)),y.className="goCXforeground",b.className="goCXbackground",dr.document.body&&(dr.document.body.appendChild(y),dr.document.body.appendChild(b)),za=y,Wa=b,es=!0}function Do(a){return a.preventDefault(),!1}ta.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)},ta.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},ta.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},ta.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,b=y.lastInput,E=null;if(a instanceof In||(a instanceof rn?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},ta.prototype.doActivate=function(){},ta.prototype.doMouseDown=function(){if(Eo.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof _o){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Bo(this)},ta.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof _o){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Bo(this)};function Bo(a){var y=a.diagram;if(a.isActive){var b=a.currentContextMenu;if(b!==null){var E=null;b instanceof Ao||(E=y.ic(y.lastInput.documentPoint,null,null),E!==null&&E.rg(b)&&a.standardMouseClick(null,null)),a.maybeStopTool(E)}}else a.canStart()&&(Qa(a,!0),a.isActive||a.stopTool())}ta.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Qa(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=Ki,b===null&&(b=a.findObjectWithContextMenu()),b!==null){var E=b.contextMenu;E!==null?(a.currentObject=b instanceof rn?b:null,a.showContextMenu(E,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof _o&&!a.currentContextMenu.visible&&a.stopTool()}}ta.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},ta.prototype.showContextMenu=function(a,y){var b=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof _o){a.layerName="Tool",a.selectable=!1,a.scale=1/b.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=b.scale);var E=a.diagram;E!==null&&E!==b&&E.remove(a),b.add(a),y!==null?a.adornedObject=y:a.data=b.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof Ao&&a.show(y,b,this);this.currentContextMenu=a},ta.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}},ta.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof _o?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Ao&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Ja(a){var y=new er;return y.add(new Go("Copy",function(b){b.commandHandler.copySelection()},function(b){return b.commandHandler.canCopySelection()})),y.add(new Go("Cut",function(b){b.commandHandler.cutSelection()},function(b){return b.commandHandler.canCutSelection()})),y.add(new Go("Delete",function(b){b.commandHandler.deleteSelection()},function(b){return b.commandHandler.canDeleteSelection()})),y.add(new Go("Paste",function(b){b.commandHandler.pasteSelection(a.mouseDownPoint)},function(b){return b.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Go("Select All",function(b){b.commandHandler.selectAll()},function(b){return b.commandHandler.canSelectAll()})),y.add(new Go("Undo",function(b){b.commandHandler.undo()},function(b){return b.commandHandler.canUndo()})),y.add(new Go("Redo",function(b){b.commandHandler.redo()},function(b){return b.commandHandler.canRedo()})),y.add(new Go("Scroll To Part",function(b){b.commandHandler.scrollToPart()},function(b){return b.commandHandler.canScrollToPart()})),y.add(new Go("Zoom To Fit",function(b){b.commandHandler.zoomToFit()},function(b){return b.commandHandler.canZoomToFit()})),y.add(new Go("Reset Zoom",function(b){b.commandHandler.resetZoom()},function(b){return b.commandHandler.canResetZoom()})),y.add(new Go("Group Selection",function(b){b.commandHandler.groupSelection()},function(b){return b.commandHandler.canGroupSelection()})),y.add(new Go("Ungroup Selection",function(b){b.commandHandler.ungroupSelection()},function(b){return b.commandHandler.canUngroupSelection()})),y.add(new Go("Edit Text",function(b){b.commandHandler.editTextBlock()},function(b){return b.commandHandler.canEditTextBlock()})),y}ta.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Ja(this)),za.innerHTML="",Wa.addEventListener("pointerdown",this.tu,!1);var y=this,b=Oi("ul");b.className="goCXul",za.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=Oi("li"),z.className="goCXli";var ne=Oi("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)}}za.style.display="block",Wa.style.display="block"},ta.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Ki){za.style.display="none",Wa.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(Wa,"pointerdown",this.tu,!1),this.currentContextMenu=null}},pn.Object.defineProperties(ta.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof _o?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return es===!1&&Ki===null&&Ra&&ao(this),Ki},set:function(a){a===null&&(es=!0),Ki=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var Ki=null,es=!1,Wa=null,za=null;ta.className="ContextMenuTool",ci("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function Co(){Eo.call(this),this.name="TextEditing",this.Zh=new ma,this.ia=null,this.V=Cl,this.vj=null,this.qa=Pr,this.u=1,this.F=!0,this.o=null,this.j=new Ao,this.kt=null,ml(this,this.j)}Cn(Co,Eo);function ml(a,y){if(Ra){var b=Oi("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(fs)):x==="Tab"?(a.acceptText(wa),E.preventDefault()):x==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),b.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Pr){var E=a.kt;a.qa===Il&&(a.qa=_l),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),b.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Pr){var E=a.kt;typeof E.focus=="function"&&E.focus(),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return b.value},y.mainElement=b,y.show=function(E,x,z){if(E instanceof ma&&z instanceof Co)if(z.state===al)b.style.border="3px solid red",b.focus();else{var ne=E.ga(qi),ie=x.position,se=x.scale,de=E.Df()*se;de<z.minimumEditorScale&&(de=z.minimumEditorScale);var pe=E.naturalBounds.width*de+6,Se=E.naturalBounds.height*de+2,Ne=(ne.x-ie.x)*se;ne=(ne.y-ie.y)*se,ie=E.verticalAlignment,se=(E.lineHeight+E.spacingAbove+E.spacingBelow)*E.lineCount*de,Se=ie.y*Se-ie.y*se+ie.offsetY-(.5*Se-.5*se)-se/2,b.value=E.text,x.div.style.font=E.font,b.style.position="absolute",b.style.zIndex="100",b.style.font="inherit",b.style.fontSize=100*de+"%",b.style.lineHeight="normal",b.style.width=pe+"px",b.style.left=(Ne-pe/2|0)-1+"px",b.style.top=(ne+Se|0)-1+"px",b.style.textAlign=E.textAlign,b.style.margin="0",b.style.padding="1px",b.style.border="0",b.style.outline="none",b.style.whiteSpace="pre-wrap",b.style.overflow="hidden",b.rows=E.lineCount,b.wA=de,b.className="goTXarea",x.div.appendChild(b),b.focus(),z.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},y.hide=function(E){E.div.removeChild(b)}}}Co.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||hu&&hu!==this&&(hu.acceptText(Ko),hu&&hu!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof ma&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===Cl&&!y.isSelected||this.starting===Ql&&2>a.lastInput.clickCount)):!1},Co.prototype.doStart=function(){hu=this,this.textBlock!==null&&this.doActivate()},Co.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof ma&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Il;var b=this.defaultTextEditor;y.textEditor!==null&&(b=y.textEditor),this.Zh=this.textBlock.copy();var E=new kn(this.textBlock.ga(fo),this.textBlock.ga(Uo));a.tv(E),b.show(y,a,this),this.currentTextEditor=b}}}},Co.prototype.doCancel=function(){this.stopTool()},Co.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Co.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Ko)},Co.prototype.acceptText=function(a){switch(a){case Ko:this.qa===Pu?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Il||this.qa===al||this.qa===_l)&&(this.qa=Ir,ss(this));break;case Qo:case fs:case wa:(fs!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Il||this.qa===al||this.qa===_l)&&(this.qa=Ir,ss(this))}};function ss(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=Pu,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=al,a.doError(x,z))}}Co.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)},Co.prototype.doSuccess=function(a,y){var b=this.textBlock;b.textEdited!==null&&b.textEdited(b,a,y)},Co.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Pr,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Co.prototype.doStop=function(){hu=null},Co.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)))},Co.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},pn.Object.defineProperties(Co.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)}}}),Co.prototype.measureTemporaryTextBlock=Co.prototype.Lx;var Qo=new Qn(Co,"LostFocus",0),Ko=new Qn(Co,"MouseDown",1),wa=new Qn(Co,"Tab",2),fs=new Qn(Co,"Enter",3),qs=new Qn(Co,"SingleClick",0),Cl=new Qn(Co,"SingleClickSelected",1),Ql=new Qn(Co,"DoubleClick",2),Pr=new Qn(Co,"StateNone",0),Il=new Qn(Co,"StateActive",1),_l=new Qn(Co,"StateEditing",2),Ir=new Qn(Co,"StateValidating",3),al=new Qn(Co,"StateInvalid",4),Pu=new Qn(Co,"StateValidated",5),hu=null;Co.className="TextEditingTool",Co.LostFocus=Qo,Co.MouseDown=Ko,Co.Tab=wa,Co.Enter=fs,Co.SingleClick=qs,Co.SingleClickSelected=Cl,Co.DoubleClick=Ql,Co.StateNone=Pr,Co.StateActive=Il,Co.StateEditing=_l,Co.StateValidating=Ir,Co.StateInvalid=al,Co.StateValidated=Pu,ci("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function $s(a){li||(qt(),li=!0),this.H=Rc,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Pi,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new ar,this.ce=new ii,this.ce.Yd=this,this.Ei=new ar,this.pu=new ar,this.Sr=new ar,this.pr=new ar,a&&Object.assign(this,a)}$s.prototype.Xe=function(a){this.H=a},$s.prototype.canStart=function(){return!0};function Ss(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),el(a.H),a.zb=!0)}function fu(a){if(a.Jd&&a.zb){var y=a.ce,b=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===Pi?(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===Yo&&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(),no(y,b),a.Ok=!1,b.N()):(a.Zd.clear(),b.kg=!1,E=y.vc.get(b),b.autoScale!==Tl&&E!==null&&(delete E.start.scale,delete E.end.scale),dr.requestAnimationFrame(function(){a.zb===!1||y.bc||(b.Gf("temporaryPixelRatio")&&ll(b),Zh(b),a.zb=!1,y.start(),y.bc&&(Pl(a),b.Ya(),Hu(y,0),Au(b,!0),pu(a),b.R("AnimationStarting",a)))}))}}function sl(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Xu(a,y,b,E){a.isTicking||sl(a)||y instanceof Rr&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",b,E,!1)}Oe=$s.prototype,Oe.fv=function(a){return this.ce.fv(a)},Oe.Xu=function(a){return this.ce.Xu(a)};function hc(a,y){function b(){if(0<x.Sr.count&&(E.addAll(x.Sr),x.Sr.clear(),x.bc=!0),x.bc!==!1&&E.count!==0){x.pu.addAll(E);for(var z=x.pu.iterator;z.next();){var ne=z.value;if(ne.bc!==!1){e:if(0<ne.yl.count)var ie=!0;else{for(ie=ne.vc.iterator;ie.next();){var se=ie.key;if(se instanceof rn&&se.diagram!==null||se instanceof In){ie=!0;break e}}ie=!1}ie?is(ne,!1):ne.Xk=!0}}x.pu.clear(),x.bc!==!1&&(Pl(x),Au(x.H),pu(x)),dr.requestAnimationFrame(b)}}var E=a.Ei,x=a;a.bc?a.Sr.add(y):(a.bc=!0,E.add(y),dr.requestAnimationFrame(function(){b()}))}function wd(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function Pl(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 pu(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Oe.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(),no(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),no(y,this.H)},Oe.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))},Oe.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),ge(this,a))},Oe.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),Wo(this.ce,y,"position",y.position,y.position),ge(this,a))};function hd(a,y,b){!a.zb||y.D(b)||sl(a)||(a.H.pi||(y=b.copy()),Wo(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 qt(){function a(b,E,x,z,ne,ie){b.position=new rt(z(ne,E.x,x.x-E.x,ie),z(ne,E.y,x.y-E.y,ie))}var y=new Ln;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(b,E,x,z,ne,ie){ne<ie?b.mm(z(ne,E.x,x.x-E.x,ie),z(ne,E.y,x.y-E.y,ie),!1):b.position=new rt(z(ne,E.x,x.x-E.x,ie),z(ne,E.y,x.y-E.y,ie))}),y.add("location",function(b,E,x,z,ne,ie){ne<ie?b.mm(z(ne,E.x,x.x-E.x,ie),z(ne,E.y,x.y-E.y,ie),!0):b.location=new rt(z(ne,E.x,x.x-E.x,ie),z(ne,E.y,x.y-E.y,ie))}),y.add("position:placeholder",function(b,E,x,z,ne,ie){ne<ie?b.mm(z(ne,E.x,x.x-E.x,ie),z(ne,E.y,x.y-E.y,ie),!1):b.position=new rt(z(ne,E.x,x.x-E.x,ie),z(ne,E.y,x.y-E.y,ie))}),y.add("position:nodeCollapse",function(b,E,x,z,ne,ie){var se=b.actualBounds,de=x.actualBounds;x=de.x+de.width/2-se.width/2,se=de.y+de.height/2-se.height/2,ne<ie?b.mm(z(ne,E.x,x-E.x,ie),z(ne,E.y,se-E.y,ie),!1):b.position=new rt(z(ne,E.x,x-E.x,ie),z(ne,E.y,se-E.y,ie))}),y.add("desiredSize",function(b,E,x,z,ne,ie){b.desiredSize=new kn(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)}),Er=y}pn.Object.defineProperties($s.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&&br(a,">= 1",$s,"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}}}),$s.prototype.stopAnimation=$s.prototype.Cc;var Er=null,li=!1,Pi=new Qn($s,"Default",1),Lo=new Qn($s,"AnimateLocations",2),Yo=new Qn($s,"None",3);$s.className="AnimationManager",$s.defineAnimationEffect=function(a,y){li||(qt(),li=!0),Er.add(a,y)},$s.Default=Pi,$s.AnimateLocations=Lo,$s.None=Yo;function ii(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=Qu,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Hr,this.vc=new Ln,this.Tt=new Ln,this.yl=new ar,this.Ut=new ar,this.dw=Nd,a&&Object.assign(this,a)}ii.prototype.suspend=function(){this.Xk=!0},ii.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,is(this,!0),Pl(this.Yd),Au(this.H),pu(this.Yd),this.H.redraw()};function no(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}Oe=ii.prototype,Oe.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 In?a=b:b instanceof rn&&(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===Pi&&this===y.defaultAnimation&&(this.Lp=Ju,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Jh),Pl(y),this.yl.each(function(E){E.data=null,a.add(E)}),pu(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,hc(y,this),this)},Oe.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Oe.add=function(a,y,b,E,x){if(y==="position"&&b.Xa(E))return this;if(this.H===null&&(a instanceof In?this.H=a:a instanceof rn&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Li){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return Wo(this,a,y,b,E,x),this};function Wo(a,y,b,E,x,z){var ne=a.vc;if(y instanceof In&&b==="position"&&(b="position:diagram"),(b==="fill"||b==="stroke"||b==="background"||b==="areaBackground")&&(nc(E),Bf(),E=[Iu.j,Iu.u,Iu.o,Iu.F],nc(x),Bf(),x=[Iu.j,Iu.u,Iu.o,Iu.F]),ne.contains(y)){var ie=ne.I(y),se=ie.start,de=ie.end;se[b]===void 0&&(se[b]=Ta(E)),de[b]=Ta(x)}else se={},de={},se[b]=Ta(E),de[b]=Ta(x),ie=se.position,y instanceof rn&&ie instanceof rt&&!ie.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&ie.assign(de.position),ie=new gu(se,de,z),ne.add(y,ie);ne=se[b],ne instanceof rt&&!ne.w()&&ne.assign(a.o),z&&b.indexOf("position:")===0&&y instanceof Li?ie.Ku.location=Ta(y.location):z&&(ie.Ku[b]=Ta(E))}function Ta(a){return a instanceof rt||a instanceof ln?a.copy():a}Oe.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Oe.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function is(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),Pl(b),Hu(a,x),Au(a.H,!0),pu(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 Hu(a,y){for(var b=a.Gd,E=a.vc.iterator,x=a.Wk;E.next();){var z=E.key;if(!(z instanceof rn&&z.diagram===null)){var ne=E.value,ie=x?ne.end:ne.start;ne=x?ne.start:ne.end;var se=Er,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)}}}Oe.stop=function(){return this.bc?(this.Ml(!0),this):this},Oe.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,Pl(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=Er;E.next();){var ne=E.key,ie=E.value,se=x?ie.end:ie.start,de=x?ie.start:ie.end,pe=ie.Ku,Se;for(Se in de)if(z.get(Se)!==null){var Ne=Se;!ie.Hu||Ne!=="position:nodeCollapse"&&Ne!=="position:placeholder"||(Ne="position"),z.get(Ne)(ne,se[Se],pe[Se]!==void 0?pe[Se]:ie.Hu?se[Se]:de[Se],this.Lp,this.Gd,this.Gd,this)}ie.Hu&&pe.location!==void 0&&ne instanceof Li&&(ne.location=pe.location),ie.nv&&ne instanceof Li&&ne.Zb(!1)}if(y.As.clear(),Wh(y,!1),y.Ya(),y.N(),Au(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()}Au(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),pu(b),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),no(this,null),b.Ml(this),y.$b())}},Oe.Cj=function(a,y){var b=y.actualBounds,E=null;if(y instanceof to&&(E=y.placeholder),E!==null?(b=E.ga(fo),E=E.padding,b.x+=E.left,b.y+=E.top,this.add(a,"position",b,a.position,!1)):this.add(a,"position",new rt(b.x+b.width/2,b.y+b.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof to)for(a=a.memberParts;a.next();)E=a.value,E instanceof qr&&this.Cj(E,y)},Oe.Aj=function(a,y){if(a.isVisible()){var b=null;if(y instanceof to&&(b=y.placeholder),b!==null){var E=b.ga(fo);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 to)for(a=a.memberParts;a.next();)E=a.value,E instanceof qr&&this.Aj(E,y)}},Oe.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},pn.Object.defineProperties(ii.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&br(a,">= 1",ii,"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:xt("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}}}),ii.prototype.getTemporaryState=ii.prototype.Ez,ii.prototype.stop=ii.prototype.stop,ii.prototype.add=ii.prototype.add,ii.prototype.addTemporaryPart=ii.prototype.Iy;function Qu(a,y,b,E){return a/=E/2,1>a?b/2*a*a+y:-b/2*(--a*(a-2)-1)+y}function Ju(a,y,b,E){return a===E?y+b:b*(-Math.pow(2,-10*a/E)+1)+y}ii.className="Animation",ii.EaseLinear=function(a,y,b,E){return b*a/E+y},ii.EaseInOutQuad=Qu,ii.EaseInQuad=function(a,y,b,E){return b*(a/=E)*a+y},ii.EaseOutQuad=function(a,y,b,E){return-b*(a/=E)*(a-2)+y},ii.EaseInExpo=function(a,y,b,E){return a===0?y:b*Math.pow(2,10*(a/E-1))+y},ii.EaseOutExpo=Ju;function gu(a,y,b){this.start=a,this.end=y,this.Ku={},this.Hu=b,this.nv=!1}gu.className="AnimationState";function Ul(a,y,b){this.xd=null,this.rf=a,this.so=b||Kc,this.uk=null,y!==void 0&&(this.uk=y,b===void 0&&(this.so=Jl))}Ul.prototype.copy=function(){var a=new Ul(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 Tu(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}pn.Object.defineProperties(Ul.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var Kc=new Qn(Ul,"Default",1),Jl=new Qn(Ul,"Immediate",2),ph=new Qn(Ul,"Bundled",3);Ul.className="AnimationTrigger",Ul.Default=Kc,Ul.Immediate=Jl,Ul.Bundled=ph;function Rs(a){Ei(this),this.H=null,this.Pa=new er,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)}Oe=Rs.prototype,Oe.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var b=a.s[y];b.Ig=null,Sl(b)}a.clear(),this.Zq.length=0},Oe.Xe=function(a){this.H=a},Oe.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 to?x++:se instanceof qr?E++:se instanceof Rr?z++:se instanceof _o?ne++:b++}if(ie="",0<b&&(ie+=b+" Parts "),0<E&&(ie+=E+" Nodes "),0<x&&(ie+=x+" Groups "),0<z&&(ie+=z+" Links "),0<ne&&(ie+=ne+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)b=a.value,ie+=`
`+b.toString(),E=b.data,E!==null&&Ui(E)&&(ie+=" #"+Ui(E)),b instanceof qr?ie+=" "+vi(E):b instanceof Rr&&(ie+=" "+vi(b.fromNode)+" "+vi(b.toNode));return y+" "+this.Pa.count+": "+ie},Oe.ic=function(a,y,b){if(y===void 0&&(y=null),b===void 0&&(b=null),this.Uh===!1)return null;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var x=rt.alloc(),z=this.Pa.s,ne=z.length;ne--;){var ie=z[ne];if((E!==!0||of(ie)!==!1)&&ie.isVisible()&&(x.assign(a),wn(x,ie.oe),ie=ie.ic(x,y,b),ie!==null&&(y!==null&&(ie=y(ie)),ie!==null&&(b===null||b(ie)))))return rt.free(x),ie}return rt.free(x),null},Oe.ji=function(a,y,b,E){if(y===void 0&&(y=null),b===void 0&&(b=null),E instanceof er||E instanceof ar||(E=new ar),this.Uh===!1)return E;var x=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(x=!0);for(var z=rt.alloc(),ne=this.Pa.s,ie=ne.length;ie--;){var se=ne[ie];if((x!==!0||of(se)!==!1)&&se.isVisible()){z.assign(a),wn(z,se.oe);var de=se;se.ji(z,y,b,E)&&(y!==null&&(de=y(de)),de===null||b!==null&&!b(de)||E.add(de))}}return rt.free(z),E},Oe.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 er||x instanceof ar||(x=new ar),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},Oe.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},Oe.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 er||x instanceof ar)&&(z=x),x=!0),z instanceof er||z instanceof ar||(z=new ar),this.Uh===!1)return z;var ne=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ne=!0);for(var ie=rt.alloc(),se=rt.alloc(),de=this.Pa.s,pe=de.length;pe--;){var Se=de[pe];if((ne!==!0||of(Se)!==!1)&&Se.isVisible()){ie.assign(a),wn(ie,Se.oe),se.h(a.x+y,a.y),wn(se,Se.oe);var Ne=Se;Se.og(ie,se,b,E,x,z)&&(b!==null&&(Ne=b(Ne)),Ne===null||E!==null&&!E(Ne)||z.add(Ne))}}return rt.free(ie),rt.free(se),z},Oe.Fd=function(a,y){if(this.visible){var b=this.Pa.s,E=b.length;if(E!==0){a=Nr();for(var x=Nr(),z=0;z<E;z++){var ne=b[z];if(ne.vw=z,ne instanceof Rr){if(ne.fd===!1)continue}else if(ne instanceof _o&&ne.adornedPart!==null)continue;var ie=ne.actualBounds;ne.isVisible()&&Vn(ie,y)?(ne.Fd(!0),a.push(ne)):(ne.Fd(!1),ne.adornments!==null&&0<ne.adornments.count&&x.push(ne))}for(y=0;y<a.length;y++)for(b=a[y],Yv(b),b=b.adornments;b.next();)E=b.value,E.measure(1/0,1/0),E.arrange(),E.Fd(!0);for(y=0;y<x.length;y++)Yv(x[y]);jr(a),jr(x)}}};function Dc(a,y){var b=1;return a.pb!==1&&(b=y.globalAlpha,y.globalAlpha=b*a.pb),b}Oe.gc=function(a,y,b){if(this.visible&&this.pb!==0&&(b===void 0&&(b=!0),b||!this.isTemporary)){b=this.Pa.s;var E=b.length;if(E!==0){if(a.isTemporary)for(var x=0;x<E;x++)b[x].Gj();x=Dc(this,a);var z=this.Zq;z.length=0;for(var ne=y.scale,ie=kn.alloc(),se=0;se<E;se++)this.Oj(a,b[se],y,z,ne,ie,!0);if(kn.free(ie),a.isTemporary)for(y=0;y<E;y++)b[y].Gj();a.globalAlpha=x}}};function Yp(a,y,b,E,x){if(a.visible&&a.pb!==0&&(x||!a.isTemporary)){x=a.Pa.s;var z=x.length;if(z!==0){var ne=Dc(a,y),ie=a.Zq;ie.length=0;for(var se=b.scale,de=kn.alloc(),pe=0;pe<z;pe++){var Se=x[pe];E.contains(Se)&&a.Oj(y,Se,b,ie,se,de,!1)}kn.free(de),y.globalAlpha=ne}}}Oe.Oj=function(a,y,b,E,x,z,ne){if(ne&&!of(y))a.Hs(y);else{if(E!==null&&y instanceof Rr&&(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 jo?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&&(Ma(y,a,y.areaBackground,!0,!0,z,x),a.fillRect(x.x,x.y,x.width,x.height)),y.areaBackground===null&&y.background===null&&(Ma(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),Ma(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))}},Oe.g=function(a,y,b,E,x){var z=this.diagram;z!==null&&z.cb(aa,a,this,y,b,E,x)},Oe.oi=function(a,y,b){var E=this.Pa;if(y.Ig=this,this===null&&Sl(y),a>=E.count)a=E.count;else if(E.M(a)===y)return-1;return E.Gb(a,y),y.Vo(b),E=this.diagram,E!==null&&(b?E.N():E.oi(y)),Pf(this,a,y),a},Oe.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,Sl(y),a};function Pf(a,y,b){if(y=Vh(a,y,b),b instanceof to&&b!==null&&isNaN(b.zOrder)){if(b.memberParts.count!==0){for(var E=-1,x=a.Pa.s,z=x.length,ne=0;ne<z;ne++){var ie=x[ne];if(ie===b&&(y=ne,0<=E)||0>E&&ie.containingGroup===b&&(E=ne,0<=y))break}!(0>E)&&E<y&&(x=a.Pa,x.mb(y),x.Gb(E,b))}y=b.containingGroup,y!==null&&Pf(a,-1,y)}b.svg!==null&&b.svg.remove()}function Vh(a,y,b){var E=b.zOrder;if(isNaN(E))return y;a=a.Pa;var x=a.count;if(1>=x)return y;if(0>y&&(y=a.indexOf(b)),0>y)return-1;for(var z=y-1,ne=NaN;0<=z&&(ne=a.M(z).zOrder,!!isNaN(ne));)z--;for(var ie=y+1,se=NaN;ie<x&&(se=a.M(ie).zOrder,!!isNaN(se));)ie++;if(!isNaN(ne)&&ne>E)for(;;){if(z===-1||ne<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,b),z}for(ne=NaN;0<=--z&&(ne=a.M(z).zOrder,isNaN(ne)););}else if(!isNaN(se)&&se<E)for(;;){if(ie===x||se>=E){if(ie--,ie===y)break;return a.mb(y),a.Gb(ie,b),ie}for(se=NaN;++ie<x&&(se=a.M(ie).zOrder,isNaN(se)););}return y}pn.Object.defineProperties(Rs.prototype,{parts:{get:function(){return this.Pa.iterator}},partsBackwards:{get:function(){return this.Pa.iteratorBackwards}},diagram:{get:function(){return this.H}},name:{get:function(){return this.xa},set:function(a){var y=this.xa;if(y!==a){var b=this.diagram;if(b!==null)for(y===""&&xt("Cannot rename default Layer to: "+a),b=b.layers;b.next();)b.value.name===a&&xt("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)&&br(a,"0 <= value <= 1",Rs,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,a!==null&&a.N())}},isTemporary:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&((this.o=a)&&(this.isInDocumentBounds=!1),this.g("isTemporary",y,a))}},visible:{get:function(){return this.u},set:function(a){var y=this.u;if(y!==a){for(this.u=a,this.g("visible",y,a),y=this.Pa.iterator;y.next();)y.value.Zb(a);a=this.diagram,a!==null&&a.N()}}},pickable:{get:function(){return this.Uh},set:function(a){var y=this.Uh;y!==a&&(this.Uh=a,this.g("pickable",y,a))}},isInDocumentBounds:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,this.diagram!==null&&this.diagram.Ya())}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}}}),Rs.prototype.findObjectsNear=Rs.prototype.og,Rs.prototype.findObjectsIn=Rs.prototype.Cf,Rs.prototype.findObjectsAt=Rs.prototype.ji,Rs.prototype.findObjectAt=Rs.prototype.ic,Rs.className="Layer";function In(a,y){if(rg||(vl(),rg=!0),Ei(this),Rc=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,Ra){var b=this,E=function(){b.removeEventListener(dr.document,"DOMContentLoaded",E,!1),b.setRTL()};dr.document.body!==null?this.setRTL():b.addEventListener(dr.document,"DOMContentLoaded",E,!1)}this.ol=null,Ff.add("Model",qo);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===aa&&ne.updateDataBindings(z.object,z.propertyName)}finally{ne.diagram.aa=!0}}},this.Oc=function(z){x.partManager.doModelChanged(z)},this.hu=this.ku=null,Xp(this),this.model=wy(),this.Wg=!0,Qp(this),this.layout=new Aa,this.Wg=!1,this.ck=this.ek=this.fk=this.dk=this.ui=this.aA=this.$j=this.Ov=null,this.hk=function(){},this.preventDefault=null,this.rn=!1,this.Yf=new ig,a!==void 0&&(typeof a=="string"||dr.Element&&a instanceof Element?tp(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var Vd,Rc;function Xp(a){a.Yd=new $s,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new er,a.pj=new Ln,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new rt(NaN,NaN).freeze(),a.du=new rt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new rt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Mi,a.zu=new rt(NaN,NaN).freeze(),a.ut=new kn(NaN,NaN,NaN,NaN).freeze(),a.rj=new Xi(0,0,0,0).freeze(),a.sj=Nd,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Tl,a.zk=ts,a.Fg=Tl,a.pq=ts,a.yt=fo,a.Bt=fo,a.Fc=!0,a.pn=!1,a.De=new ar,a.Eh=new Ln,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Xi(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new Ts,a.bq.diagram=a,a.Qg=new Ts,a.Qg.diagram=a,a.cj=new Ts,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,jg(a),a.ai=new ar,a.Ht=!0,a.uu=pd,a.pw=!1,a.wu=Jd,a.it="auto",a.Op="auto",a.zh=null,a.Fh=null,a.Bh=null,a.Qh=null,a.Oh=null,a.Nh=null,a.Qt=null,a.Lh=null,a.xt=!1,a.Mh=null,a.Ph=null,a.$h=null,a.Ch=null,a.Rt=!1,a.Yt={},a.oj=[null,null],a.Wg=!1,a.Iw=!1,a.ou=!1,a.lt=!1,a.rw=!0,a.ld=!1,a.$i=!1,a.Tw=!0,a.Ce=-2,a.Og=new Ln,a.Xn=new er,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 Xi(5).freeze(),a.Hw=new ar().freeze(),a.Nt=999999999,a.nw=new ar().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 ar,a.ow=new ar,a.Xh=null,a.aw=new ln(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new rt,bounds:new kn,Py:new ln,bA:new ln,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new kn(NaN,NaN,NaN,NaN).freeze(),a.wo=new ln(NaN,NaN).freeze(),a.Sp=new kn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new Ln;var y=new qr,b=new ma;b.bind(new ls("text","",vi)),y.add(b),a.ny=y,a.Lg.add("",y),y=new qr,b=new ma,b.stroke="brown",b.bind(new ls("text","",vi)),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 ln(3,3).ja(),y.add(b),a.Lg.add("LinkLabel",y),a.Yi=new Ln,y=new to,y.selectionObjectName="GROUPPANEL",y.type=Tr.Vertical,b=new ma,b.font="bold 12pt sans-serif",b.bind(new ls("text","",vi)),y.add(b),b=new Tr(Tr.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 $l,E.padding=new Xi(5,5,5,5).ja(),b.add(E),y.add(b),a.ly=y,a.Yi.add("",y),a.Kh=new Ln,y=new Rr,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 Rr,b=new oo,b.isPanelMain=!0,b.stroke="brown",y.add(b),a.Kh.add("Comment",y),y=new _o,y.type=Tr.Auto,b=new oo,b.fill=null,b.stroke="dodgerblue",b.strokeWidth=3,y.add(b),b=new $l,b.margin=new Xi(1.5,1.5,1.5,1.5).ja(),y.add(b),a.St=y,a.wt=y,y=new _o,y.type=Tr.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 qo,a.toolManager=new ra,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new le,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=Gg(),a.eq=null,a.fq=ri,a.Pw=!1,a.Mb=1,a.Yh=null,a.Oq=1,a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0,a.yq=1,a.tw=0,a.uw=new rt,a.zy=500,a.wp=new rt,a.wq=!1}In.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Eh=null,Ad="",ep(this,!1),this.Xn.clear(),fg(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function ep(a,y){a.animationManager.Cc(!0),a.Hw=new ar().freeze(),a.nw=new ar().freeze();var b=a.skipsUndoManager,E=a.cc!==null&&a.cc!==void 0;E&&(a.skipsUndoManager=!0);var x=null;a.fe!==null&&(x=a.fe.part,x!==null&&a.remove(x));var z=[],ne=a.Wa.length;if(y){for(y=0;y<ne;y++)for(var ie=a.Wa.s[y].parts;ie.next();){var se=ie.value;se!==x&&se.data===null&&z.push(se)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<ne;y++)a.Wa.s[y].clear();return a.partManager.clear(),a.De.clear(),a.Eh.clear(),a.ai.clear(),a.Ck=null,a.Xn.clear(),fg(),a.Og.clear(),ji=[],x!==null&&(a.add(x),a.partManager.parts.remove(x)),E&&(a.skipsUndoManager=b),z}function Gg(){return null}In.prototype.reset=function(){this.clear(),this.vb=!0,Xp(this),Oc(this),this.Wg=!0,Qp(this),this.layout=new Aa,this.Wg=!1,this.model=wy(),this.model.undoManager=new ea,this.vb=this.rn=!1,this.N()},In.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=dr.document.body);var y=Oi("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},In.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=dr.document.body);var y=0;if(Ra){var b=ng;y=Vd,b===null&&(b=ng=Oi("p"),b.style.width="100%",b.style.height="200px",b.style.boxSizing="content-box",y=Vd=Oi("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||Ci||(y=11)}this.Db=y,this.Gw=!0},In.prototype.qb=function(a){a.classType===In&&(this.autoScale=a)},In.prototype.toString=function(a){a===void 0&&(a=0);var y="";if(this.div&&this.div.id&&(y=this.div.id),y='Diagram "'+y+'"',0>=a)return y;for(var b=this.Wa.iterator;b.next();)y+=`
`+b.value.toString(a-1);return y};function tp(a,y){if(Ra){if(y!=null||xt("Diagram setup requires an argument DIV."),a.Ka!==null&&xt("Diagram has already completed setup."),typeof y=="string"?a.Ka=dr.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:xt("No DIV or DIV id supplied: "+y),a.Ka===null&&xt("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&xt("Invalid div id; div already has a Diagram associated with it."),!a.ol&&dr.ResizeObserver){var b=bi(function(){a.$b()},250);a.ol=new dr.ResizeObserver(function(){b()}),a.ol.observe(a.Ka)}dr.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=dr.go;var x=new cl(a);if(x.style!==void 0&&(x.style.position="absolute",x.style.top="0px",x.style.left="0px",dr.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),x.style.zIndex="2",x.style.userSelect="none",x.style.MozUserSelect="none",x.style.touchAction="none",x.style.letterSpacing="normal !important",x.style.wordSpacing="normal !important"),a.ta=x,a.ib=x.context,E=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Xh(a,a.Aa,a.ya),a.Ka.insertBefore(x.Oa,a.Ka.firstChild),x=new cl(null),x.width=1,x.height=1,a.jw=x,a.oy=x.context,Ra){x=Oi("div");var z=Oi("div");x.style.position="absolute",x.style.overflow="auto",x.style.width=a.Aa+"px",x.style.height=a.ya+"px",x.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(x),x.appendChild(z),x.onscroll=qp,x.addEventListener("pointerdown",Tf),x.H=a,x.uy=!0,x.vy=!0,a.ku=x,a.hu=z}a.hk=bi(function(){a.Yh=null,a.N()},300),a.Ov=bi(function(){Zh(a)},250),a.preventDefault=function(ne){return ne.preventDefault(),!1},a.$j=function(ne){if(a.isEnabled){var ie=zu(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(),$u(ie,ne)}},a.aA=function(ne){a.isEnabled&&(a.Vk=!1,zu(a,ne,!0),ne=a.currentTool,ne.cancelWaitAfter(),ne.standardMouseOver())},a.ui=function(ne){if(a.isEnabled){a.Vk=!0;var ie=a.Yt;ie[ne.pointerId]===void 0&&(ie[ne.pointerId]=ne),ie=a.oj;var se=!1;if(ie[0]===null||ie[0].pointerId!==ne.pointerId&&ie[0].pointerType===ne.pointerType)if(ie[1]!==null&&ie[1].pointerId===ne.pointerId)ie[1]=ne,se=!0;else if(ie[0]===null)ie[0]=ne;else if(ie[1]===null)ie[1]=ne,se=!0;else{ne.preventDefault();return}else ie[0]=ne;(ie=ne.pointerType==="touch"||ne.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var de=se;se=rp(a,ne,!0,!1,!0,de),fd(a,ne,se),se.targetDiagram=mh(ne,ne.target),se.targetObject=null,de||se.clone(a.bq),de=a.uw,ie=ie?25:10,ne.timeStamp-a.tw<a.zy&&!(Math.abs(de.x-ne.screenX)>ie||Math.abs(de.y-ne.screenY)>ie)?a.yq++:a.yq=1,se.clickCount=a.yq,a.tw=ne.timeStamp,a.uw.sg(ne.screenX,ne.screenY),a.doMouseDown(),ne.button===1?ne.preventDefault():$u(se,ne)}},a.dk=function(ne){if(a.isEnabled){a.Vk=!0;var ie=a.oj;if(ie[0]===null||ie[0].pointerId!==ne.pointerId&&ie[0].pointerType===ne.pointerType){if(ie[1]!==null&&ie[1].pointerId===ne.pointerId){ie[1]=ne;return}if(ie[0]===null)ie[0]=ne;else return}else ie[0]=ne;if(ie[0].pointerId===ne.pointerId){ie=rp(a,ne,!1,!1,!1,ie[1]!==null);var se=dr.document.elementFromPoint(ne.clientX,ne.clientY)||null;se!==null&&se.shadowRoot!==void 0&&se.shadowRoot!==null&&(se=se.shadowRoot.elementFromPoint(ne.clientX,ne.clientY));var de=a,pe=ne;se&&se.H&&(pe=ne,de=se.H),ie.targetDiagram=de,fd(a,pe,ie),ie.targetObject=null,a.doMouseMove(),$u(ie,ne)}}},a.fk=function(ne){if(a.isEnabled){a.Vk=!0;var ie=ne.pointerType==="touch"||ne.pointerType==="pen",se=a.Yt;if(ie&&a.qu)delete se[ne.pointerId],ne.preventDefault();else if(se=a.oj,se[0]===null||se[0].pointerId!==ne.pointerId&&se[0].pointerType===ne.pointerType)se[1]!==null&&se[1].pointerId===ne.pointerId&&(se[1]=null);else{se[0]=null,se=rp(a,ne,!1,!0,!0,!1);var de=dr.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 In&&de.H!==a&&fd(de.H,ne,se),de===null&&(de=ne.target),fd(a,ne,se),se.clickCount=a.yq,se.targetDiagram=mh(ne,de),se.targetObject=null,a.doMouseUp(),$u(se,ne),ie&&(a.wq=!1)}}},a.ek=function(ne){if(a.isEnabled){a.Vk=!1;var ie=a.Yt;ie[ne.pointerId]&&delete ie[ne.pointerId],ie=a.oj,ie[0]!==null&&ie[0].pointerId===ne.pointerId&&(ie[0]=null),ie[1]!==null&&ie[1].pointerId===ne.pointerId&&(ie[1]=null),ne.pointerType!=="touch"&&ne.pointerType!=="pen"&&(ne=a.currentTool,ne.cancelWaitAfter(),ne.standardMouseOver())}},a.ck=function(ne){var ie=a.oj;ie[0]!==null&&ie[0].pointerId===ne.pointerId?(ie[0]=null,a.wq=!1):ie[1]!==null&&ie[1].pointerId===ne.pointerId&&(ie[1]=null)},a.Vp=E.Z["d"+eh[1]+eh[2]+"wI"+$d.slice(1,5)]["b"+EE.slice(1,y)](E.Z,qh,y,y),E.Vc(!0),Um(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}In.prototype.addEventListener=function(a,y,b,E){a.addEventListener(y,b,{capture:E,passive:!1})},In.prototype.removeEventListener=function(a,y,b,E){a.removeEventListener(y,b,{capture:E})};function Um(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(b){return b.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(b){return b.preventDefault(),!1},!1),a.addEventListener(dr,"resize",a.Ov,!1)}function ll(a){30<a.Sq&&(a.Yh=1)}function Wh(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),ti&&ti.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}In.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:dr.devicePixelRatio||1},In.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},In.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},In.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},In.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},In.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},In.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},In.prototype.doFocus=function(){this.focus()},In.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=dr.scrollX||dr.pageXOffset,y=dr.scrollY||dr.pageYOffset;this.ta.focus(),dr.scrollTo(a,y)}},In.prototype.Oy=function(){this.H.R("GainedFocus")},In.prototype.Ny=function(){this.H.R("LostFocus")};function Zh(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var b=a.gf?a.Db:0,E=a.Be?a.Db:0,x=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==x&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+b||y.clientHeight!==a.ya+E)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===Tl&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function Qp(a){var y=new Rs;y.name="Background",a.Al(y),y=new Rs,y.name="",a.Al(y),y=new Rs,y.name="Foreground",a.Al(y),y=new Rs,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Rs,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Rs,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function Jp(a){var y=new Tr(Tr.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 Li,b.add(y),b.layerName="Grid",b.zOrder=0,b.isInDocumentBounds=!1,b.isAnimated=!1,b.pickable=!1,b.locationObjectName="GRID",a.add(b),a.partManager.parts.remove(b),y.visible=!1,y}function qp(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Sh(this.H)}function Tf(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Sh(this.H)}In.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,b=this.hu;this.qr=!0;var E=this.documentBounds,x=this.viewportBounds,z=this.rj,ne=E.x-z.left,ie=E.y-z.top,se=E.width+z.left+z.right,de=E.height+z.top+z.bottom,pe=E.right+z.right;z=E.bottom+z.bottom;var Se=x.x;E=x.y;var Ne=x.width,Me=x.height,ze=x.right,qe=x.bottom;x=this.scale;var Pt=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Pt=Pt+a.scrollWidth-a.clientWidth;break;case"reverse":Pt=a.scrollWidth-Pt-a.clientWidth}var yt=Pt;Ne<se||Me<de?(Pt=rt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==yt&&(Pt.x=yt/x+ne,this.ju=yt),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Pt.y=a.scrollTop/x+ie,this.lu=a.scrollTop),this.position=Pt,rt.free(Pt),this.Ee=this.qr=!1):(Pt=rt.alloc(),a.uy&&this.allowHorizontalScroll&&(ne<Se&&(this.position=Pt.h(yt+ne,this.position.y)),pe>ze&&(this.position=Pt.h(-(y.scrollWidth-this.Aa)+yt-this.Aa/x+pe,this.position.y))),a.vy&&this.allowVerticalScroll&&(ie<E&&(this.position=Pt.h(this.position.x,a.scrollTop+ie)),z>qe&&(this.position=Pt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/x+z))),rt.free(Pt),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,Ne>=se&&ne>=Se&&pe<=ze&&(b.style.width="1px"),Me>=de&&ie>=E&&z<=qe&&(b.style.height="1px"))}},In.prototype.computeBounds=function(a){return a===void 0&&(a=new kn),el(this),Af(this,a)};function Af(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var b=!0,E=a.Wa.s,x=E.length,z=0;z<x;z++){var ne=E[z];if(ne.visible&&ne.isInDocumentBounds){ne=ne.Pa.s;for(var ie=ne.length,se=0;se<ie;se++){var de=ne[se];de.isInDocumentBounds&&de.isVisible()&&(de=de.actualBounds,de.w()&&(b?(b=!1,y.assign(de)):y.ed(de)))}}}return b&&y.h(0,0,0,0),y.Co(a.yb),y}In.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var b=null;if(fr(a))for(var E=0;E<a.length;E++){var x=a[E];!y&&x instanceof Rr||(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 Rr||(E.Va(),b===null?b=E.actualBounds.copy():b.ed(E.actualBounds));return b===null?new kn(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=rt.alloc(),b.xi(a.documentBounds,a.initialDocumentSpot);var E=a.viewportBounds;E=kn.allocAt(0,0,E.width,E.height);var x=rt.alloc();x.xi(E,a.initialViewportSpot),x.h(b.x-x.x,b.y-x.y),a.position=x,kn.free(E),rt.free(x),rt.free(b)}b=a.yh,y&&a.Fg!==Tl&&(b=a.Fg);var z=b!==Tl?gh(a,b):a.scale;b=a.pa.x,E=a.pa.y,x=a.Aa/z;var ne=a.ya/z,ie=a.zk,se=a.pq;y&&!ie.sb()&&(se.sb()||se.Xb())&&(ie=se.Xb()?qi:se),np(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 kn(b,E,x,ne),z,y,!1)}}function gh(a,y){var b=a.Pp;if(a.ta===null)return b;a.Va();var E=a.documentBounds;if(!E.w())return b;var x=E.width;E=E.height;var z=a.Aa+(a.gf?a.Db:0),ne=a.ya+(a.Be?a.Db:0),ie=z/x,se=ne/E;return y===mu?(y=Math.min(se,ie),y>b&&(y=b),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===xh?(y=se>ie?(ne-a.Db)/E:(z-a.Db)/x,y>b&&(y=b),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}In.prototype.zoomToFit=function(){var a=this.sj;this.sj=Nd,this.scale=gh(this,mu),a!==Nd&&(qu(this,!1),np(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Oe=In.prototype,Oe.BA=function(a,y){y===void 0&&(y=mu);var b=a.width,E=a.height;if(!(b===0||E===0||isNaN(b)&&isNaN(E))){var x=1;if(y===mu||y===xh)if(isNaN(b))x=this.viewportBounds.height*this.scale/E;else if(isNaN(E))x=this.viewportBounds.width*this.scale/b;else{x=this.Aa;var z=this.ya;x=y===xh?z/E>x/b?(z-(this.Be?this.Db:0))/E:(x-(this.gf?this.Db:0))/b:Math.min(z/E,x/b)}this.scale=x,this.position=new rt(a.x,a.y)}},Oe.Jy=function(a,y){this.Va();var b=this.documentBounds,E=this.viewportBounds;this.position=new rt(b.x+(a.x*b.width+a.offsetX)-(y.x*E.width-y.offsetX),b.y+(a.y*b.height+a.offsetY)-(y.y*E.height-y.offsetY))},Oe.zz=function(a){if(a instanceof rn){this.eq=a;var y=rt.alloc();this.fq=this.op(a.ga(fo,y)),rt.free(y)}else this.eq=null,this.fq=ri};function np(a,y,b,E,x,z){var ne=rt.allocAt(a.pa.x,a.pa.y),ie=ne.x,se=ne.y;if(a.eq!==null){var de=rt.alloc();de=a.eq.ga(fo,de),ie=de.x-a.fq.x/a.scale,se=de.y-a.fq.y/a.scale,x=Ji,rt.free(de)}(z||a.scrollMode===Nd)&&(x.sb()&&(b>y.width&&(ie=y.x+(x.x*y.width+x.offsetX)-(x.x*b-x.offsetX)),E>y.height&&(se=y.y+(x.y*y.height+x.offsetY)-(x.y*E-x.offsetY))),x=a.rj,z=b-y.width,b<y.width+x.left+x.right?(ie=Math.min(ie+b/2,y.right+Math.max(z,x.right)-b/2),ie=Math.max(ie,y.left-Math.max(z,x.left)+b/2),ie-=b/2):ie>y.left?ie=y.left:ie<y.right-b&&(ie=y.right-b),b=E-y.height,E<y.height+x.top+x.bottom?(se=Math.min(se+E/2,y.bottom+Math.max(b,x.bottom)-E/2),se=Math.max(se,y.top-Math.max(b,x.top)+E/2),se-=E/2):se>y.top?se=y.top:se<y.bottom-E&&(se=y.bottom-E)),ne.x=isFinite(ie)?ie:-a.yb.left,ne.y=isFinite(se)?se:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,ne),ne.x=y.x,ne.y=y.y),hd(a.Yd,a.pa,ne),a.pa.h(ne.x,ne.y),Oc(a),rt.free(ne)}Oe.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Yc(this,a,function(b){return b.part},function(b){return b.canSelect()}),a instanceof Li)return a}else if(a=Yc(this,a,function(b){return b.part}),a instanceof Li)return a;return null},Oe.ic=function(a,y,b){y===void 0&&(y=null),b===void 0&&(b=null),el(this);for(var E=this.Wa.iteratorBackwards;E.next();){var x=E.value;if(x.visible&&(x=x.ic(a,y,b),x!==null))return x}return null};function Yc(a,y,b,E){for(b===void 0&&(b=null),E===void 0&&(E=null),el(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}Oe.lz=function(a,y,b){return y===void 0&&(y=!0),Kh(this,a,function(E){return E.part},y?function(E){return E instanceof Li&&E.canSelect()}:null,b)};function Kh(a,y,b,E,x){for(b===void 0&&(b=null),E===void 0&&(E=null),x instanceof er||x instanceof ar||(x=new ar),el(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,b,E,x)}return x}Oe.ji=function(a,y,b,E){y===void 0&&(y=null),b===void 0&&(b=null),E instanceof er||E instanceof ar||(E=new ar),el(this);for(var x=this.Wa.iteratorBackwards;x.next();){var z=x.value;z.visible&&z.ji(a,y,b,E)}return E},Oe.ux=function(a,y,b,E){return y===void 0&&(y=!1),b===void 0&&(b=!0),Nf(this,a,function(x){return x instanceof Li&&(!b||x.canSelect())},y,E)},Oe.Cf=function(a,y,b,E,x){y===void 0&&(y=null),b===void 0&&(b=null),E===void 0&&(E=!1),x instanceof er||x instanceof ar||(x=new ar),el(this);for(var z=this.Wa.iteratorBackwards;z.next();){var ne=z.value;ne.visible&&ne.Cf(a,y,b,E,x)}return x},Oe.Nu=function(a,y,b,E,x,z){var ne=new ar;el(this);for(var ie=this.Wa.iteratorBackwards;ie.next();){var se=ie.value;se.visible&&se.Nu(a,y,b,E,ne,x,z)}return ne};function Nf(a,y,b,E,x){var z=null;for(z===void 0&&(z=null),b===void 0&&(b=null),E===void 0&&(E=!1),x instanceof er||x instanceof ar||(x=new ar),el(a),a=a.Wa.iteratorBackwards;a.next();){var ne=a.value;ne.visible&&!ne.isTemporary&&ne.Cf(y,z,b,E,x)}return x}Oe.mz=function(a,y,b,E,x){return b===void 0&&(b=!0),E===void 0&&(E=!0),Yh(this,a,y,function(z){return z instanceof Li&&(!E||z.canSelect())},b,x)},Oe.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 er||x instanceof ar)&&(z=x),x=!0),z instanceof er||z instanceof ar||(z=new ar),el(this);for(var ne=this.Wa.iteratorBackwards;ne.next();){var ie=ne.value;ie.visible&&ie.og(a,y,b,E,x,z)}return z};function Yh(a,y,b,E,x,z){var ne=null;for(ne===void 0&&(ne=null),E===void 0&&(E=null),x===void 0&&(x=!0),x!==!1&&x!==!0&&((x instanceof er||x instanceof ar)&&(z=x),x=!0),z instanceof er||z instanceof ar||(z=new ar),el(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}In.prototype.acceptEvent=function(a){return zu(this,a,a instanceof MouseEvent)};function zu(a,y,b){var E=a.Qg;return a.Qg=a.cj,a.cj=E,E.diagram=a,E.event=y,b?fd(a,y,E):(E.viewPoint=a.Qg.viewPoint,E.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),E.modifiers=a,E.button=y.button,y.buttons!==void 0&&(E.buttons=y.buttons),Ci&&y.button===0&&y.ctrlKey&&(E.button=2),E.down=!1,E.up=!1,E.clickCount=1,E.delta=0,E.handled=!1,E.bubbles=!1,E.timestamp=y.timeStamp,E.isMultiTouch=!1,E.targetDiagram=mh(y,y.target),E.targetObject=null,E}function mh(a,y){return y===null?null:(y=y.H)?y:((y=a.path)||typeof a.composedPath!="function"||(y=a.composedPath()),y&&y[0]&&y[0].H?y[0].H:null)}function rp(a,y,b,E,x,z){var ne=a.Qg;return a.Qg=a.cj,a.cj=ne,ne.diagram=a,ne.clickCount=1,a=ne.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),ne.modifiers=a,ne.event=y,ne.timestamp=y.timeStamp,ne.button=y.button,ne.buttons=y.buttons,Ci&&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 $u(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}In.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var b=zu(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(),$u(b,a)},In.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var b=zu(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(),$u(b,a)},In.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var b=zu(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(b),y.currentTool.standardMouseOver(),$u(b,a)},In.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var b=zu(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(b),$u(b,a)},In.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new rt(0,0);var b=y.getBoundingClientRect();return y=a.clientX-this.Aa/b.width*b.left,a=a.clientY-this.ya/b.height*b.top,this.Ab!==null?wn(new rt(y,a),this.Ab):new rt(y,a)};function fd(a,y,b){var E=a.ta,x=a.Aa,z=a.ya,ne=0,ie=0;E!==null&&(E=E.getBoundingClientRect(),ne=y.clientX-x/E.width*E.left,ie=y.clientY-z/E.height*E.top),b.viewPoint.h(ne,ie),a.Ab!==null?(y=rt.allocAt(ne,ie),a.Ab.Cd(y),b.documentPoint.assign(y),rt.free(y)):b.documentPoint.h(ne,ie)}function Lf(a,y,b){if(a.oj[0]!==null){y=a.oj[y];var E=a.ta;E!==null&&(E=E.getBoundingClientRect(),b.h(y.clientX-a.Aa/E.width*E.left,y.clientY-a.ya/E.height*E.top))}}In.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function ip(a){a.ld||el(a),a.Va()}In.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Oe=In.prototype,Oe.Pz=function(){return this.kg},Oe.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,b=y.isEnabled;y.Cc(),y.isEnabled=!1,Au(this),this.hf=!1,this.du=new rt(NaN,NaN),y.isEnabled=b,this.ld=!0;var E=this;a!==null&&Ai(function(){E.ld=!1,Ss(y,"Model"),a(E)},1)},Oe.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;dr.requestAnimationFrame(function(){y.kg&&y.bd()})}},Oe.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),Au(this))};function Wd(a,y,b){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Sh(a)||(y&&el(a),b&&qu(a,!1))}function Au(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];At(ie,!1),ie.v()}E.clear()}E=a.ow,0<E.count&&(E.each(function(se){se.Nv()}),E.clear()),x=E=!1,b.defaultAnimation.isAnimating&&(x=!0,E=a.skipsUndoManager,a.skipsUndoManager=!0),b.zb||Zh(a),Wd(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Mc(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),el(a),z=!1,(!a.hf||a.xh)&&(a.hf?gp(a,!a.Jk):(a.Ea("Initial Layout"),b.isEnabled===!1&&b.Cc(),gp(a,!1)),z=!0),a.Jk=!1,el(a),a.ou||ip(a),Wd(a,!0,!1),ne=!1,z?(b=kn.alloc(),b.assign(a.viewportBounds),a.hf||(ne=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,op(a)),a.R("LayoutCompleted"),Wd(a,!0,!1),kn.free(b)):b.Ok&&b.Qw&&(a.Fg!==Tl?a.scale=gh(a,a.Fg):a.yh!==Tl?a.scale=gh(a,a.yh):(b=a.initialScale,isFinite(b)&&0<b&&(a.scale=b)),qu(a,!0)),z&&ne&&a.eb("Initial Layout"),el(a),y||a.gc(a.ib),x&&(a.skipsUndoManager=E),a.ld=!1}}function op(a){if(a.Fg!==Tl)a.scale=gh(a,a.Fg);else if(a.yh!==Tl)a.scale=gh(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),Mc(a)}function el(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 ar,a.Nv(b,a.De)}a.nodes.each(function(E){E instanceof to&&E.U&65536&&(E.U=E.U^65536)})}}Oe.Nv=function(a,y){for(a.reset();a.next();){var b=a.value;!b.Zc()||b instanceof to||(b.si()?(b.measure(1/0,1/0),b.arrange()):y.add(b))}for(a.reset();a.next();)b=a.value,b instanceof to&&b.isVisible()&&Xc(this,b);for(a.reset();a.next();)b=a.value,b instanceof Rr&&b.isVisible()&&(b.si()?(b.measure(1/0,1/0),b.arrange()):y.add(b));for(a.reset();a.next();)b=a.value,b instanceof _o&&b.isVisible()&&(b.si()?(b.measure(1/0,1/0),b.arrange()):y.add(b))};function Xc(a,y){for(var b=Nr(),E=Nr(),x=y.memberParts;x.next();){var z=x.value;z.isVisible()&&(z instanceof to?(Lt(z)||zt(z)||rf(z))&&Xc(a,z):z instanceof Rr?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(jr(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();jr(E)}Oe.Fd=function(a,y,b,E){if(this.vd||this.animationManager.isAnimating)for(var x=0;x<y;x++)a[x].Fd(b,E)},Oe.gc=function(a){if(this.Ka!==null){if(this.ta===null&&xt("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){yh(this);var b=this.Aa,E=this.ya;if(a.Gv.resize(b,E,b,E),b=this.Wa.s,E=b.length,this.Fd(b,E,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var x=this.Ca,z=Math.round(y.x*x)/x,ne=Math.round(y.y*x)/x,ie=this.Ab;for(ie.reset(),x!==1&&ie.scale(x),y.x===0&&y.y===0||ie.translate(-z,-ne),a.ti=null,Ea(a,ie.m11,ie.m12,ie.m21,ie.m22,ie.dx,ie.dy),this.pb!==1&&(a.globalAlpha=this.pb),Cd(this,a),y=this.Mb,this.ta.context.setTransform(y,0,0,y,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),y=0;y<E;y++)b[y].gc(a,this);a=!1,this.Yf?kd(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(Mi.prototype.Cd=Mi.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(b=new Date,yh(this),this.Ka.style.opacity!=="0")){if(E=a!==this.ib,y=this.Wa.s,x=y.length,this.Fd(y,x,this,this.viewportBounds),E)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break e;z=this.Ab,z.reset(),ne=this.Mb,ie=this.pa;var se=this.Ca,de=Math.round(ie.x*se)/se,pe=Math.round(ie.y*se)/se;for(se!==1&&z.scale(se),ie.x===0&&ie.y===0||z.translate(-de,-pe),a.setTransform(ne,0,0,ne,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Cd(this,a),ie=0;ie<x;ie++)a.setTransform(ne,0,0,ne,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[ie].gc(a,this);if(y=!1,this.Yf?kd(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(Mi.prototype.Cd=Mi.prototype.Eu),E?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+b,E=ti&&ti.nx,b=this.zw,E||this.Yh===null){for(b[this.Tq]=y,this.Tq=(this.Tq+1)%b.length,x=y=0;x<b.length;x++)y+=b[x];this.Sq=y/b.length}if(this.pb!==1&&(a.globalAlpha=1),E)for(a.setTransform(1,0,0,1,0,0),E=0;E<b.length;E++)a.fillText(b[E].toString(),20,150+ +(20*E))}}};function kf(a,y,b,E,x,z,ne,ie,se,de){if(a.Ka!==null){a.ta===null&&xt("No canvas specified"),ne===void 0&&(ne=null),ie===void 0&&(ie=null),se===void 0&&(se=!1),de===void 0&&(de=!1),yh(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var pe=a.Ca;a.Ca=x;var Se=a.Wa.s,Ne=Se.length;try{var Me=new kn(z.x,z.y,E.width/x,E.height/x),ze=Me.copy();ze.Co(b),Mc(a,ze),el(a),a.Fd(Se,Ne,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 Pt=Mi.alloc();Pt.reset(),Pt.translate(b.left,b.top),Pt.scale(x),z.x===0&&z.y===0||Pt.translate(-z.x,-z.y),y.setTransform(Pt.m11,Pt.m12,Pt.m21,Pt.m22,Pt.dx,Pt.dy),y.yc(),y instanceof jo&&Ea(y,Pt.m11,Pt.m12,Pt.m21,Pt.m22,Pt.dx,Pt.dy),Mi.free(Pt),Cd(a,y),y.globalAlpha=a.pb;var yt=a.Qj("Grid");if(ne){var Rt=new ar,Bt=ne.iterator;for(Bt.reset();Bt.next();){var Gt=Bt.value;Gt instanceof Li&&(de||Gt.layer!==yt)&&(Gt.Gj(),Rt.add(Gt))}for(de=0;de<Ne;de++)Yp(Se[de],y,a,Rt,se);Rt.each(function(Dn){return Dn.Gj()})}else for(Rt=0;Rt<Ne;Rt++){var $t=Se[Rt];$t===yt?de&&$t.gc(y,a,!0):$t.gc(y,a,se)}a.$i=!1,a.Yf&&kd(a.Yf,a)&&a.Vp()}finally{a.Ca=pe,a.ib.Vc(!0),a.vd=!0,a.Fd(Se,Ne,a,a.viewportBounds),Mc(a),a.ib instanceof jo&&(a.ib.Nj.PA(),a.redraw())}}}Oe.Gf=function(a){return this.Rg[a]},Oe.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Oe.Tx=function(){this.Rg=new di,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Ci||cn),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))}Oe.Ql=function(a){return this.on[a]},Oe.sA=function(a,y){this.on[a]=y},Oe.Sx=function(){this.on=new di,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Oe.set=function(a){return Object.assign(this,a),this},Oe.Du=function(a){return this.nm(a)},Oe.nm=function(a){return vh(this,a),this};function vh(a,y){var b=a instanceof Tr,E=a instanceof In,x;for(x in y){x===""&&xt("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])),Xt(z)?ne=x.substr(ie+1):xt("Unable to find object named: "+se+" in "+a.toString()+" when trying to set property: "+x)}}if(ne[0]!=="_"&&!Xr(z,ne))if(E&&ne==="ModelChanged"){a.Yw(y[ne]);continue}else if(E&&ne==="Changed"){a.Pe(y[ne]);continue}else if(E&&Xr(a.toolManager,ne))z=a.toolManager;else if(E&&$p(a,ne)){a.Bj(ne,y[ne]);continue}else if(a instanceof xi&&ne==="Changed"){a.Pe(y[ne]);continue}else xt('Trying to set undefined property "'+ne+'" on object: '+z.toString());z[ne]=y[x],ne[0]==="_"&&z instanceof rn&&z.Vw(ne)}}Oe.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new Ln,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Oe.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")},In.prototype.invalidateViewport=function(a,y){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var b=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==Jh&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var E=this.scale,x=Math.max(a.y,y.y),z=Math.min(a.y+a.height,y.y+y.height);if(0<Math.max(0,Math.min(a.x+a.width,y.x+y.width)-Math.max(a.x,y.x))*E&&0<Math.max(0,z-x)*E){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(E=kn.alloc(),fp(this,this.computeBounds(E)),kn.free(E)),E=this.ta,E===null||E instanceof Po)))){var ne=this.Mb;x=this.Aa*ne;var ie=this.ya*ne,se=this.scale*ne;z=Math.round(Math.round(y.x*se)-Math.round(a.x*se)),y=Math.round(Math.round(y.y*se)-Math.round(a.y*se)),se=this.jw,a=this.oy,se.width!==x&&(se.width=x),se.height!==ie&&(se.height=ie),a.clearRect(0,0,x,ie),se=190*ne;var de=70*ne,pe=Math.max(z,0),Se=Math.max(y,0),Ne=Math.floor(x-pe),Me=Math.floor(ie-Se);a.drawImage(E.Oa,pe,Se,Ne,Me,0,0,Ne,Me),kd(this.Yf,this)&&a.clearRect(0,0,se,de),E=Nr(),a=Nr(),Me=Math.abs(z),Ne=Math.abs(y);var ze=pe===0?0:x-Me;pe=rt.allocAt(ze,0),Me=rt.allocAt(Me+ze,ie),a.push(new kn(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),wn(pe,qe),wn(Me,qe),E.push(new kn(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-Ne,pe.h(0,ze),Me.h(x,Ne+ze),a.push(new kn(Math.min(pe.x,Me.x),Math.min(pe.y,Me.y),Math.abs(pe.x-Me.x),Math.abs(pe.y-Me.y))),wn(pe,qe),wn(Me,qe),E.push(new kn(Math.min(pe.x,Me.x),Math.min(pe.y,Me.y),Math.abs(pe.x-Me.x),Math.abs(pe.y-Me.y))),kd(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 kn(Math.min(pe.x,Me.x),Math.min(pe.y,Me.y),Math.abs(pe.x-Me.x),Math.abs(pe.y-Me.y))),wn(pe,qe),wn(Me,qe),E.push(new kn(Math.min(pe.x,Me.x),Math.min(pe.y,Me.y),Math.abs(pe.x-Me.x),Math.abs(pe.y-Me.y)))),rt.free(pe),rt.free(Me),Wd(this,!1,!0),this.Ka===null&&xt("No div specified"),this.ta===null&&xt("No canvas specified"),!this.animationManager.zb&&(x=this.ib,this.Fc)){for(yh(this),ie=this.Mb,x.setTransform(1,0,0,1,0,0),x.clearRect(0,0,this.Aa*ie,this.ya*ie),x.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,ne=this.Ca,se=Math.round(z.x*ne)/ne,de=Math.round(z.y*ne)/ne,y=this.Ab,y.reset(),ne!==1&&y.scale(ne),z.x===0&&z.y===0||y.translate(-se,-de),x.save(),x.beginPath(),z=a.length,ne=0;ne<z;ne++)se=a[ne],se.width!==0&&se.height!==0&&x.rect(Math.floor(se.x),Math.floor(se.y),Math.ceil(se.width),Math.ceil(se.height));for(x.clip(),x.setTransform(ie,0,0,ie,0,0),x.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),x.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),Cd(this,x),x.globalAlpha=this.pb,ie=0;ie<z;ie++)if(ne=y[ie],se=E,ne.visible&&ne.pb!==0){de=Dc(ne,x),Se=ne.Zq,Se.length=0,pe=this.scale,Ne=kn.alloc(),Me=ne.Pa.s,qe=Me.length,ze=se.length;for(var Pt=0;Pt<qe;Pt++){var yt=Me[Pt],Rt=Gf(yt,yt.actualBounds);e:{for(var Bt=2/pe,Gt=4/pe,$t=0;$t<ze;$t++){var Dn=se[$t];if(Dn.width!==0&&Dn.height!==0&&Rt.Vu(Dn.x-Bt,Dn.y-Bt,Dn.width+Gt,Dn.height+Gt)){Rt=!0;break e}}Rt=!1}Rt&&ne.Oj(x,yt,this,Se,pe,Ne,!0)}kn.free(Ne),x.globalAlpha=de}x.restore(),x.Vc(!0),this.Yf&&kd(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}jr(E),jr(a),this.ld=!1}}else this.bd();b&&(ll(this),this.bd(),Wh(this,!0))}else b?(ll(this),this.bd(),Wh(this,!0)):this.bd()}};function yh(a){a.pn!==!1&&(a.pn=!1,Xh(a,a.Aa,a.ya))}function Xh(a,y,b){Oc(a);var E=a.Mb;a.ta.resize(y*E,b*E,y,b)&&(a.Fc=!0,a.ib.Vc(!0))}function Sh(a){var y=a.ta;if(y===null||a.wo.w())return!0;var b=a.Aa,E=a.ya,x=a.Ka,z=!1,ne=a.gf?a.Db:0,ie=a.Be?a.Db:0,se=x.clientWidth||b+ne,de=x.clientHeight||E+ie,pe=a.viewportBounds;x=pe.x;var Se=pe.y,Ne=pe.width,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 Pt=a.documentBounds,yt=0,Rt=0,Bt=0,Gt=0,$t=pe.width,Dn=pe.height,Qr=a.rj;a.contentAlignment.sb()?(Pt.width>$t&&(yt=Qr.left,Rt=Qr.right),Pt.height>Dn&&(Bt=Qr.top,Gt=Qr.bottom)):(yt=Qr.left,Rt=Qr.right,Bt=Qr.top,Gt=Qr.bottom);var gi=Pt.width+yt+Rt,ui=Pt.height+Bt+Gt;Qr=a.scale;var Dr=gi>se/Qr,hr=ui>de/Qr;if(!(z||a.gf||a.Be||Dr||hr))return!0;yt=Pt.x-yt,se=pe.x,Rt=Pt.right+Rt,de=pe.right+ne,Bt=Pt.y-Bt;var eo=pe.y;Pt=Pt.bottom+Gt,pe=pe.bottom+ie;var zi="1px";if(Gt="1px",a.scrollMode===Nd&&(Dr||hr)&&(Dr&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Dr=1,yt+1<se&&(Dr=Math.max((se-yt)*Qr+a.Aa,Dr)),Rt>de+1&&(Dr=Math.max((Rt-de)*Qr+a.Aa,Dr)),$t+ne+1<gi&&(Dr=Math.max((gi-$t)*Qr+a.Aa,Dr)),zi=Dr.toString()+"px"),hr&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Dr=1,Bt+1<eo&&(Dr=Math.max((eo-Bt)*Qr+a.ya,Dr)),Pt>pe+1&&(Dr=Math.max((Pt-pe)*Qr+a.ya,Dr)),Dn+ie+1<ui&&(Dr=Math.max((ui-Dn)*Qr+a.ya,Dr)),Gt=Dr.toString()+"px")),Dr=zi!=="1px",hr=Gt!=="1px",Dr&&hr||!Dr&&!hr||(hr&&(de-=a.Db),Dr&&(pe-=a.Db),gi<$t+ne||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ne=1,yt+1<se&&(ne=Math.max((se-yt)*Qr+a.Aa,ne)),Rt>de+1&&(ne=Math.max((Rt-de)*Qr+a.Aa,ne)),$t+1<gi&&(ne=Math.max((gi-$t)*Qr+a.Aa,ne)),zi=ne.toString()+"px"),Dr=zi!=="1px",ne=a.ya,Dr!==a.Be&&(ne=Dr?a.ya-a.Db:a.ya+a.Db),ui<Dn+ie||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(ie=1,Bt+1<eo&&(ie=Math.max((eo-Bt)*Qr+ne,ie)),Pt>pe+1&&(ie=Math.max((Pt-pe)*Qr+ne,ie)),Dn+1<ui&&(ie=Math.max((ui-Dn)*Qr+ne,ie)),Gt=ie.toString()+"px"),hr=Gt!=="1px"),a.qr&&Dr===a.Be&&hr===a.gf)return b===a.Aa&&E===a.ya||a.bd(),!1;if(Dr!==a.Be&&(zi==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=Dr,qe.style.width=zi,hr!==a.gf&&(Gt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(ie=rt.alloc(),hr?(y.style.left=a.Db+"px",a.position=ie.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=ie.h(a.pa.x-a.Db/a.scale,a.pa.y)),rt.free(ie))),z&&Oc(a),a.gf=hr,qe.style.height=Gt,a.gu=!0,z&&(a.pn=!0),y=ze.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&($t+1<gi?y=(a.position.x-yt)*Qr:yt+1<se?y=ze.scrollWidth-ze.clientWidth:Rt>de+1&&(y=a.position.x*Qr)),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&&(Dn+1<ui?ze.scrollTop=(a.position.y-Bt)*Qr:Bt+1<eo?ze.scrollTop=ze.scrollHeight-ze.clientHeight:Pt>pe+1&&(ze.scrollTop=a.position.y*Qr)),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=kn.allocAt(x,Se,Ne,Me),a.onViewportBoundsChanged(b,a.viewportBounds,Qr,z),kn.free(b),!1):!0}Oe=In.prototype,Oe.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&xt("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&&xt('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(Pa,"parts",y,null,a,null,b),y.isTemporary||this.Ya(),a.C(1),b=a.layerChanged,b!==null&&b(a,null,y)}},Oe.oi=function(a){this.partManager.oi(a);var y=this;Uf(a,function(b){bh(y,b)}),(a instanceof _o||a instanceof to&&a.placeholder!==null)&&a.v(),a.data!==null&&Uf(a,function(b){by(y.partManager,b)}),zt(a)!==!0&&rf(a)!==!0||this.De.add(a),VS(a,!0,this),ZS(a)?(a.actualBounds.w()&&this.N(Gf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Gf(a,a.actualBounds)),this.$b()},Oe.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Uf(a,function(b){Ey(y.partManager,b,y)}),this.De.remove(a),ZS(a)?(a.actualBounds.w()&&this.N(Gf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Gf(a,a.actualBounds)),this.$b()},Oe.remove=function(a){ap(this,a,!0)};function ap(a,y,b){var E=y.layer;E!==null&&E.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),b&&y.Lj(),b=E.pc(-1,y,!1),0<=b&&a.cb(ka,"parts",E,y,null,b,null),a=y.layerChanged,a!==null&&a(y,E,null))}Oe.Is=function(a,y){if(y===void 0&&(y=!1),fr(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 ar,b.addAll(a),a=b.iterator;a.next();)b=a.value,y&&!b.canDelete()||this.remove(b)},Oe.Kj=function(a,y,b){return b===void 0&&(b=!1),this.partManager.Kj(a,y,b)},In.prototype.moveParts=function(a,y,b,E){if(b===void 0&&(b=!1),E===void 0&&(E=If(this)),this.toolManager!==null){var x=new Ln;if(a!==null)if(fr(a))for(var z=0;z<a.length;z++)Qc(this,x,a[z],b,E);else for(a=a.iterator;a.next();)Qc(this,x,a.value,b,E);else{for(a=this.parts;a.next();)Qc(this,x,a.value,b,E);for(a=this.nodes;a.next();)Qc(this,x,a.value,b,E);for(a=this.links;a.next();)Qc(this,x,a.value,b,E)}Zd(this,x,y,E,b)}};function Qc(a,y,b,E,x,z){if(!y.contains(b)&&(z===void 0&&(z=!1),!E||z||b.canMove()||b.canCopy()))if(x===void 0&&(x=If(a)),b instanceof qr){if(y.add(b,a.Pd(x,b,b.location)),b instanceof to&&(b.placeholder!==null||x.dragsMembers))for(z=b.memberParts;z.next();)Qc(a,y,z.value,E,x,x.groupsAlwaysMove);for(z=b.linksConnected;z.next();){var ne=z.value;if(!y.contains(ne)){var ie=ne.fromNode,se=ne.toNode;ie!==null&&y.contains(ie)&&se!==null&&y.contains(se)&&Qc(a,y,ne,E,x)}}if(x.dragsTree)for(b=b.Ou();b.next();)Qc(a,y,b.value,E,x)}else if(b instanceof Rr)for(y.add(b,a.Pd(x,b)),b=b.labelNodes;b.next();)Qc(a,y,b.value,E,x);else b instanceof _o||y.add(b,a.Pd(x,b,b.location))}function Zd(a,y,b,E,x){if(y!==null&&y.count!==0){var z=rt.alloc(),ne=rt.alloc();ne.assign(b),isNaN(ne.x)&&(ne.x=0),isNaN(ne.y)&&(ne.y=0),(b=a.Mr)||Rf(a,y);for(var ie=Nr(),se=Nr(),de=y.iterator,pe=rt.alloc();de.next();){var Se=de.key,Ne=de.value;if(Se.Zc()){var Me=sp(a,Se,y);Me!==null?ie.push(new re(Se,Ne,Me)):(!x||Se.canMove())&&(Me=Ne.point,z.assign(Me),a.computeMove(Se,z.add(ne),E,pe),Se.location=pe,Ne.shifted===void 0&&(Ne.shifted=new rt),Ne.shifted.assign(pe.re(Me)))}else de.key instanceof Rr&&se.push(de.sa)}for(rt.free(pe),x=ie.length,de=0;de<x;de++)Se=ie[de],z.assign(Se.info.point),Se.Su.shifted===void 0&&(Se.Su.shifted=new rt),Se.node.location=z.add(Se.Su.shifted);for(x=rt.alloc(),de=rt.alloc(),Se=se.length,Ne=0;Ne<Se;Ne++){var ze=se[Ne];if(Me=ze.key,Me instanceof Rr)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=rt.allocAt(0,0),(pe=Me.i(0))&&pe.w()&&ze.assign(pe);var Pt=pe=rt.alloc().assign(ze).add(ne);E.isGridSnapEnabled&&(E.isGridSnapRealtime||a.lastInput.up)&&(Pt=rt.alloc(),Df(a,Me,pe,Pt,E)),pe.assign(Me.dragComputation(Me,pe,Pt)).re(ze),y.add(Me,a.Pd(E,Me,pe)),Lh(Me,pe.x-qe.x,pe.y-qe.y),rt.free(ze),rt.free(pe),Pt!==pe&&rt.free(Pt)}else pe!==null&&(x.assign(pe.location),Pt=y.I(pe),Pt!==null&&x.re(Pt.point)),qe!==null&&(de.assign(qe.location),Pt=y.I(qe),Pt!==null&&de.re(Pt.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))}rt.free(z),rt.free(ne),rt.free(x),rt.free(de),jr(ie),jr(se),b||(el(a),Pd(a,y))}}In.prototype.computeMove=function(a,y,b,E){if(E===void 0&&(E=new rt),E.assign(y),a===null)return E;var x=y,z=b.isGridSnapEnabled;z&&(b.isGridSnapRealtime||this.lastInput.up)&&(x=rt.alloc(),Df(this,a,y,x,b)),b=a.dragComputation!==null?a.dragComputation(a,y,x):x;var ne=a.minLocation,ie=ne.x;isNaN(ie)&&(ie=z?Math.round(1e3*a.location.x)/1e3:a.location.x),ne=ne.y,isNaN(ne)&&(ne=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var se=a.maxLocation,de=se.x;return isNaN(de)&&(de=z?Math.round(1e3*a.location.x)/1e3:a.location.x),se=se.y,isNaN(se)&&(se=z?Math.round(1e3*a.location.y)/1e3:a.location.y),E.h(Math.max(ie,Math.min(b.x,de)),Math.max(ne,Math.min(b.y,se))),x!==y&&rt.free(x),E};function If(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function Df(a,y,b,E,x){if(x===void 0&&(x=If(a)),E.assign(b),y!==null){var z=a.grid;y=x.gridSnapCellSize,a=y.width,y=y.height;var ne=x.gridSnapOrigin,ie=ne.x;if(ne=ne.y,x=x.gridSnapCellSpot,z!==null){var se=z.gridCellSize;isNaN(a)&&(a=se.width),isNaN(y)&&(y=se.height),z=z.gridOrigin,isNaN(ie)&&(ie=z.x),isNaN(ne)&&(ne=z.y)}z=rt.allocAt(0,0),z.yi(0,0,a,y,x),en.No(b.x,b.y,ie+z.x,ne+z.y,a,y,E),rt.free(z)}}function Rf(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Rr&&(y.suspendsRouting=!0)}function Pd(a,y){if(y!==null){for(y=y.iterator;y.next();){var b=y.key;b instanceof Rr&&(b.suspendsRouting=!1,ay(b)&&b.bb())}a.Mr=!1}}function sp(a,y,b){return y=y.containingGroup,y!==null&&(a=sp(a,y,b),a!==null||(a=b.I(y),a!==null))?a:null}Oe=In.prototype,Oe.Pd=function(a,y,b){if(b===void 0)return new Jc(Hr);var E=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(E=!1),E?new Jc(new rt(Math.round(1e3*b.x)/1e3,Math.round(1e3*b.y)/1e3)):new Jc(b.copy())};function lp(a,y,b){if(y.diagram!==null&&y.diagram!==a&&xt("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),b===null?y.diagram!==null&&xt("Cannot add an existing Layer to this Diagram again: "+y):(b.diagram!==a&&xt("Existing Layer must be in this Diagram: "+b+" not in "+b.diagram),y===b&&xt("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&&xt("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Oe.Al=function(a){lp(this,a,null),a.Xe(this);var y=this.Wa,b=y.count-1;if(!a.isTemporary)for(;0<=b&&y.M(b).isTemporary;)b--;return y.Gb(b+1,a),this.cc!==null&&this.cb(Pa,"layers",this,null,a,null,b+1),this.N(),this.Ya(),this},Oe.Ww=function(a,y){lp(this,a,y),a.Xe(this);var b=this.Wa,E=b.indexOf(a);0<=E&&(b.remove(a),this.cc!==null&&this.cb(ka,"layers",this,a,null,E,null));var x=b.count,z;for(z=0;z<x;z++)if(b.M(z)===y){b.Gb(z,a);break}return this.cc!==null&&this.cb(Pa,"layers",this,null,a,null,z),this.N(),0>E&&this.Ya(),this},Oe.Cy=function(a,y){lp(this,a,y),a.Xe(this);var b=this.Wa,E=b.indexOf(a);0<=E&&(b.remove(a),this.cc!==null&&this.cb(ka,"layers",this,a,null,E,null));var x=b.count,z;for(z=0;z<x;z++)if(b.M(z)===y){b.Gb(z+1,a);break}return this.cc!==null&&this.cb(Pa,"layers",this,null,a,null,z+1),this.N(),0>E&&this.Ya(),this},Oe.kA=function(a){if(a.diagram!==this&&xt("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,b=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var E=y.value,x=E.layerName;x!==a.name?E.layerName=x:E.layerName=""}this.cc!==null&&this.cb(ka,"layers",this,a,null,b,null),this.N(),this.Ya()}}},Oe.Qj=function(a){for(var y=this.layers;y.next();){var b=y.value;if(b.name===a)return b}return null},Oe.Yw=function(a){return this.pf===null&&(this.pf=new er),this.pf.add(a),this.model.Pe(a),this},Oe.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Oe.Pe=function(a){return this.zg===null&&(this.zg=new er),this.zg.add(a),this},Oe.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Oe.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Ds&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,b=y.length,E=0;E<b;E++)y.M(E)(a)},Oe.cb=function(a,y,b,E,x,z,ne){z===void 0&&(z=null),ne===void 0&&(ne=null);var ie=new ga;ie.diagram=this,ie.change=a,ie.propertyName=y,ie.object=b,ie.oldValue=E,ie.oldParam=z,ie.newValue=x,ie.newParam=ne,this.ds(ie)},Oe.g=function(a,y,b,E,x){this.cb(aa,a,this,y,b,E,x)},In.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===aa){var x=a.object;if(Ca(x,a.propertyName,a.I(y)),x instanceof rn){var z=x.part;z!==null&&z.Wb()}this.isModified=!0}else if(E===Pa){var ne=a.object,ie=a.newParam,se=a.newValue;if(ne instanceof Tr)if(typeof ie=="number"&&se instanceof rn){y?ne.pc(ie):ne.Gb(ie,se);var de=ne.part;de!==null&&de.Wb()}else typeof ie=="number"&&se instanceof Es&&(se.isRow?mS(ne,ie,y?void 0:se):vS(ne,ie,y?void 0:se));else if(ne instanceof Rs){var pe=a.oldParam===!0;typeof ie=="number"&&se instanceof Li&&(y?(se.isSelected=!1,se.isHighlighted=!1,se.Wb(),ne.pc(pe?ie:-1,se,pe)):ne.oi(ie,se,pe))}else ne instanceof In?typeof ie=="number"&&se instanceof Rs&&(y?this.Wa.mb(ie):(se.Xe(this),this.Wa.Gb(ie,se))):xt("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(E===ka){var Se=a.object,Ne=a.oldParam,Me=a.oldValue;if(Se instanceof Tr)typeof Ne=="number"&&Me instanceof rn?y?Se.Gb(Ne,Me):Se.pc(Ne):typeof Ne=="number"&&Me instanceof Es&&(Me.isRow?mS(Se,Ne,y?Me:void 0):vS(Se,Ne,y?Me:void 0));else if(Se instanceof Rs){var ze=a.newParam===!0;typeof Ne=="number"&&Me instanceof Li&&(y?0>Se.Pa.indexOf(Me)&&Se.oi(Ne,Me,ze):(Me.isSelected=!1,Me.isHighlighted=!1,Me.Wb(),Se.pc(ze?Ne:-1,Me,ze)))}else Se instanceof In?typeof Ne=="number"&&Me instanceof Rs&&(y?(Me.Xe(this),this.Wa.Gb(Ne,Me)):this.Wa.mb(Ne)):xt("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==Ds&&xt("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=b}}},In.prototype.Ea=function(a){return this.undoManager.Ea(a)},In.prototype.eb=function(a){return this.undoManager.eb(a)},In.prototype.Kf=function(){return this.undoManager.Kf()},In.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}},In.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},In.prototype.rp=function(){this.partManager.rp()};function up(a,y,b){var E=a.animationManager;if(a.vb||a.ld)a.Ca=b,Oc(a),a.N(),a.Ee=!0,E.zb&&(sl(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(Us)?ie=0:de.Hf(ba)&&(ie=z-1):ie=de.sb()?de.x*(z-1):z/2),isNaN(se)&&(de.$c()?de.Hf(da)?se=0:de.Hf(hs)&&(se=ne-1):se=de.sb()?de.y*(ne-1):ne/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(b=a.scaleComputation(a,b)),b<a.minScale&&(b=a.minScale),b>a.maxScale&&(b=a.maxScale),z=rt.allocAt(a.pa.x+ie/y-ie/b,a.pa.y+se/y-se/b),a.position=z,rt.free(z),a.Ca=b,Oc(a),a.vb=!1,a.onViewportBoundsChanged(x,a.viewportBounds,y,!1),qu(a,!1),E.zb&&(sl(E)||E.ce.add(E.H,"scale",y,a.Ca))}}In.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!==Tl||a.width===y.width&&a.height===y.height||x.C(),x=this.currentTool,this.Vk===!0&&x instanceof ra&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Vc(x,this)),this.vb||this.invalidateViewport(a,y),Mc(this),this.fc.scale=b,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*b),this.fc.canvasSize.height=Math.round(a.height*b),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=E,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function Mc(a,y){var b=a.fe;if(b!==null&&b.visible){for(var E=ln.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=kn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){kn.free(y);return}x=y.width,z=y.height,a=y.x,ne=y.y,kn.free(y)}b.width=x+2*E.width,b.height=z+2*E.height,y=rt.alloc(),en.No(a,ne,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),ln.free(E),b.part.location=y,rt.free(y)}}In.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)}},In.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))},In.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),fr(a))for(var y=a.length,b=0;b<y;b++){var E=a[b];E instanceof Li||xt("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 Li||xt("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},In.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()}},Oe=In.prototype,Oe.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Oe.Jz=function(a){a=new ar().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 Li||xt("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Oe.scroll=function(a,y,b){b===void 0&&(b=1);var E=y==="up"||y==="down",x=0,z=rt.alloc();if(a==="pixel")x=b;else if(a==="line")x=b*(E?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=E?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(x=b*Math.max(a-(E?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){x=this.documentBounds,b=this.viewportBounds,y==="up"?this.position=z.h(b.x,x.y):y==="left"?this.position=z.h(x.x,b.y):y==="down"?this.position=z.h(b.x,x.bottom-b.height):y==="right"&&(this.position=z.h(x.right-b.width,b.y)),rt.free(z);return}xt("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):xt("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),rt.free(z)},Oe.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)},Oe.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Oe.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)},Oe.zA=function(a){var y=this.Ab,b=a.x,E=a.y,x=b+a.width,z=E+a.height,ne=y.m11,ie=y.m12,se=y.m21,de=y.m22,pe=y.dx,Se=y.dy,Ne=b*ne+E*se+pe;y=b*ie+E*de+Se;var 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(Ne,Me),Ne=Math.max(Ne,Me),Me=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,E),Ne=Math.max(Ne,E),Me=Math.min(Me,b),y=Math.max(y,b),z=Math.min(z,ne),Ne=Math.max(Ne,ne),Me=Math.min(Me,x),y=Math.max(y,x),new kn(z,Me,Ne-z,y-Me)},Oe.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),wn(a.copy(),this.Ab)};function cp(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function dp(a){return a=Ff.get(a),a!==null?new a:new qo}In.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var b=a.change,E=a.propertyName;if(b===Ds&&E[0]==="S")if(E==="StartingFirstTransaction"){var x=this;a=this.toolManager,a.mouseDownTools.each(function(se){return se.diagram=x}),a.mouseMoveTools.each(function(se){return se.diagram=x}),a.mouseUpTools.each(function(se){return se.diagram=x}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else E==="StartingUndo"||E==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):E==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&b===Ds){(E==="FinishedUndo"||E==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),el(this));var z=this.animationManager;E==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||fu(z),E==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),E!=="CommittedTransaction"&&E!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var ne=a.isTransactionFinished;if(ne&&(cp(this),this.As.clear(),wd(this.animationManager)),!this.Rt&&ne&&this.lastInput.targetDiagram){this.Rt=!0;var ie=this;Ai(function(){ie.currentTool.standardMouseOver(),ie.Rt=!1},10)}}}finally{this.aa=!0}}}};function bh(a,y){y=y.O.s;for(var b=y.length,E=0;E<b;E++)Kd(a,y[E])}function Kd(a,y){if(y instanceof Su){var b=y.element;if(b!==null&&b instanceof HTMLImageElement){b.Bg instanceof ar&&b.Bg.add(a);var E=y.Eg;if(E!==null&&E.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),b.hn)if(b=b.getAttribute("src")||"",E=a.Og.I(b),E===null)E=[],E.push(y),a.Og.add(b,E);else{for(a=0;a<E.length;a++)if(E[a]===y)return;E.push(y)}}}}function hp(a,y){if(y instanceof Su){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 ar&&b.Bg.remove(a),fg(E));break}}}}}In.prototype.Wd=function(){this.partManager.Wd()},In.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},In.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},In.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},In.prototype.Vb=function(a){return this.partManager.Vb(a)},In.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Oe=In.prototype,Oe.Lc=function(a){return this.partManager.Lc(a)},Oe.ii=function(a){return this.partManager.ii(a)},Oe.Kc=function(a){return this.partManager.Kc(a)},Oe.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:or(Cr(y)))},Oe.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:or(Cr(y)))};function Oc(a){var y=a.pa,b=a.Ca;a.Rw.h(y.x,y.y,Math.max(a.Aa,0)/b,Math.max(a.ya,0)/b),a.vd=!0}function fp(a,y){a.Zi=!1;var b=a.Sp;b.D(y)||(b=b.copy(),a.Sp.assign(y),qu(a,!1),a.R("DocumentBoundsChanged",void 0,b),a.Ee=!0,a.N())}Oe.Va=function(){if(this.Zi){var a=kn.alloc();fp(this,this.computeBounds(a)),kn.free(a)}},Oe.rz=function(){for(var a=new ar,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},Oe.qz=function(){return this.ai.iterator},Oe.Uz=function(a){el(this),a&&Yd(this,!0),this.ld?gp(this,!1):(this.Jk=!0,Au(this))};function Yd(a,y){for(var b=a.ai.iterator;b.next();)pp(a,b.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function pp(a,y,b){if(y!==null){for(var E=y.gl.iterator;E.next();)pp(a,E.value,b);y.layout!==null&&(b?y.layout.isValidLayout=!1:y.layout.C())}}function gp(a,y){if(a.xh&&!a.lt){var b=a.aa;a.aa=!0;var E=a.undoManager.transactionLevel,x=a.layout,z=a.animationManager;try{E===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=E&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Ss(z,"Layout")),a.xh=!1;for(var ne=a.ai.iterator;ne.next();)mp(a,ne.value,y,E);x.isValidLayout||(!y||x.isRealtime||x.isRealtime===null||E===0?(x.doLayout(a),el(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||fu(z),a.aa=b}}}function mp(a,y,b,E){if(y!==null){for(var x=y.gl.iterator;x.next();)mp(a,x.value,b,E);x=y.layout,x===null||x.isValidLayout||(!b||x.isRealtime||E===0?(y.rh=!y.location.w(),x.doLayout(y),y.C(32),Xc(a,y),x.isValidLayout=!0):a.xh=!0)}}Oe.yz=function(){for(var a=new er,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 er;b.add(x,ne),b.add(z,ne),E.add(x,x),E.add(z,x)}var b=new Ln,E=new Ln;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=b,a.hw=E}function $p(a,y){var b=a.hw.I(y);return b!==null?b:a.hw.I(y.toLowerCase())}function Td(a,y){var b=a.iw.I(y);if(b!==null||(b=a.iw.I(y.toLowerCase()),b!==null))return b;xt("Unknown DiagramEvent name: "+y)}Oe.Bj=function(a,y){return a=Td(this,a),a!==null&&a.add(y),this},Oe.am=function(a,y){a=Td(this,a),a!==null&&a.remove(y)},Oe.R=function(a,y,b){var E=Td(this,a),x=new _u;if(x.diagram=this,a=$p(this,a),a!==null&&(x.name=a),y!==void 0&&(x.subject=y),b!==void 0&&(x.parameter=b),y=E.length,y===1)E.M(0)(x);else if(y!==0)for(E=E.Fa(),b=0;b<y;b++)(0,E[b])(x)};function Mf(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Oe.Yj=function(a,y){return Qh(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},In.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Af(this,a):a.assign(this.documentBounds)};function Qh(a,y,b,E){var x=a.Xh;if(x===null&&(a.Xh=x=new um(a.avoidanceCellSize)),x.vs||x.group!==b||x.Yx!==E){if(x.Hx=Math.max(x.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),x.Ix=Math.max(x.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),b!==null&&(b=eg(a,b)),b===null){y=kn.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),x.initialize(y);for(var z=a.nodes;z.next();){var ne=z.value,ie=ne.layer;ie!==null&&ie.visible&&!ie.isTemporary&&Of(a,ne,E,y)}kn.free(y)}else{for(0<b.memberParts.count&&(y=a.computePartsBounds(b.memberParts,!1),y.Bc(20,20),x.initialize(y)),y=kn.alloc(),z=b.memberParts;z.next();)ne=z.value,ne instanceof qr&&Of(a,ne,E,y);kn.free(y)}x.group=b,x.Yx=E,x.vs=!1}else y&&d1(x);return x}function eg(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?eg(a,y.containingGroup):null}function Of(a,y,b,E){if(y!==b&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(E),a=a.Xh;var x=y.x,z=y.y;if(Sg(a,x,z))for(b=(z-a.Od)/a.sc|0,E=Math.min((x+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),x=(x-a.Nd)/a.rc|0;x<=E;x++)if(z=a.ac[x],z.fill)z.fill(Ih,b,y+1);else for(var ne=b;ne<=y;ne++)z[ne]=Ih}else if(y instanceof to)for(y=y.memberParts;y.next();)x=y.value,x instanceof qr&&Of(a,x,b,E)}}function Xd(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}In.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():vp(this)};function vp(a){a.vk===-1&&(a.vk=Ai(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=kn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),fp(a,y),kn.free(y),a.Fc=!0,a.bd(),vp(a))}},a.vp))}In.prototype.ug=function(){this.vk!==-1&&(dr.clearTimeout(this.vk),this.vk=-1)},In.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=kn.allocAt(0,0,E.width*x,E.height*x);var z=rt.allocAt(0,0);if(a.x>=E.x&&a.x<E.x+b.left&&this.allowHorizontalScroll){var ne=Math.max(this.scrollHorizontalLineChange,1);ne|=0,z.x-=ne,a.x<E.x+b.left/2&&(z.x-=ne),a.x<E.x+b.left/4&&(z.x-=4*ne)}else a.x<=E.x+E.width&&a.x>E.x+E.width-b.right&&this.allowHorizontalScroll&&(ne=Math.max(this.scrollHorizontalLineChange,1),ne|=0,z.x+=ne,a.x>E.x+E.width-b.right/2&&(z.x+=ne),a.x>E.x+E.width-b.right/4&&(z.x+=4*ne));return a.y>=E.y&&a.y<E.y+b.top&&this.allowVerticalScroll?(ne=Math.max(this.scrollVerticalLineChange,1),ne|=0,z.y-=ne,a.y<E.y+b.top/2&&(z.y-=ne),a.y<E.y+b.top/4&&(z.y-=4*ne)):a.y<=E.y+E.height&&a.y>E.y+E.height-b.bottom&&this.allowVerticalScroll&&(ne=Math.max(this.scrollVerticalLineChange,1),ne|=0,z.y+=ne,a.y>E.y+E.height-b.bottom/2&&(z.y+=ne),a.y>E.y+E.height-b.bottom/4&&(z.y+=4*ne)),z.Xa(Hr)||(y=new rt(y.x+z.x/x,y.y+z.y/x)),kn.free(E),rt.free(z),y},Oe=In.prototype,Oe.Cs=function(){return null},Oe.av=function(){return null},Oe.bs=function(a,y){this.pj.add(a,y)},Oe.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof to&&(y.$p=null)})};function Qd(a,y,b){function E(){var pe=+new Date;for(z=!0,ne.reset();ne.next();)if(!ne.value[0].al){z=!1;break}z||pe-de>se?y(b,x,ie):dr.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 dr.requestAnimationFrame(function(){E()}),null}Oe.Wz=function(a){return Ra?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Oe.Jx=function(a){return a===void 0&&(a={}),Qd(this,this.Xz,a)},Oe.Xz=function(a,y,b){var E=tg(b,a,"canvas",null);if(E===null)return null;b=E.Z.canvas;var x=null;if(b!==null)switch(x=a.returnType,x===void 0?x="string":x=x.toLowerCase(),x){case $d+"data":x=E.getImageData(0,0,b.width,b.height);break;case $d:E=(a.document||document).createElement("img"),E.src=b.toDataURL(a.type,a.details),x=E;break;case"blob":return typeof y!="function"&&xt('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof b.toBlob=="function"?(b.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:x=b.toDataURL(a.type,a.details)}return typeof y=="function"?(y(x),null):x};function tg(a,y,b,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&xt("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 ln(1/0,1/0):new ln(2e3,2e3));var ie=y.position||null,se=y.parts||null,de=y.padding===void 0?1:y.padding,pe=y.background||null,Se=y.omitTemporary;Se===void 0&&(Se=!0);var Ne=y.document||document,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 Xi(de):de instanceof Xi||xt("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 cl(null,Ne,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=Ne,E.hs=Me,kf(a,E.context,de,new ln(Se.width,Se.height),a.Ca,a.pa,se,pe,ze,y),E.context):(a.Xm=!1,kf(a,qe,de,new ln(Se.width,Se.height),a.Ca,a.pa,se,pe,ze,y),a.Xm=!0,Se.context);var Pt=a.Pp,yt=a.documentBounds.copy();if(yt.Fv(a.yb),ze)for(var Rt=a.Wa.s,Bt=Rt.length,Gt=0;Gt<Bt;Gt++){var $t=Rt[Gt];if($t.visible&&$t.isTemporary){$t=$t.Pa.s;for(var Dn=$t.length,Qr=0;Qr<Dn;Qr++){var gi=$t[Qr];gi.isInDocumentBounds&&gi.isVisible()&&(gi=gi.actualBounds,gi.w()&&yt.ed(gi))}}}if(Rt=new rt(yt.x,yt.y),se!==null){for(Bt=new kn(0,0,0,0),Gt=!0,$t=se.iterator,$t.reset();$t.next();)Dn=$t.value,Dn instanceof Li&&(Qr=Dn.layer,Qr!==null&&!Qr.visible||Qr!==null&&!ze&&Qr.isTemporary||!Dn.isVisible()||(Dn=Dn.actualBounds,Dn.w()&&(Gt?(Gt=!1,Bt.assign(Dn)):Bt.ed(Dn))));yt.width=Bt.width,yt.height=Bt.height,Rt.x=Bt.x,Rt.y=Bt.y}return ie!==null&&ie.w()&&(Rt=ie,z||(z=Pt)),Bt=ie=0,de!==null&&(ie=de.left+de.right,Bt=de.top+de.bottom),Gt=$t=0,x!==null&&($t=x.width,Gt=x.height,isFinite($t)&&($t=Math.max(0,$t-ie)),isFinite(Gt)&&(Gt=Math.max(0,Gt-Bt))),x!==null&&z!==null?(z==="NaN"&&(z=Pt),x.w()?(x=$t,yt=Gt):isNaN(Gt)?(x=$t,yt=yt.height*z):(x=yt.width*z,yt=Gt)):x!==null?x.w()?(z=Math.min($t/yt.width,Gt/yt.height),x=$t,yt=Gt):isNaN(Gt)?(z=$t/yt.width,x=$t,yt=yt.height*z):(z=Gt/yt.height,x=yt.width*z,yt=Gt):z!==null?z==="NaN"&&ne.w()?(z=Math.min((ne.width-ie)/yt.width,(ne.height-Bt)/yt.height),z>Pt?(z=Pt,x=yt.width,yt=yt.height):(x=ne.width,yt=ne.height)):(x=yt.width*z,yt=yt.height*z):(z=Pt,x=yt.width,yt=yt.height),de!==null?(x+=ie,yt+=Bt):de=new Xi(0),ne!==null&&(Pt=ne.width,ne=ne.height,isNaN(Pt)&&(Pt=2e3),isNaN(ne)&&(ne=2e3),isFinite(Pt)&&(x=Math.min(x,Pt)),isFinite(ne)&&(yt=Math.min(yt,ne))),Se.width=Math.ceil(x),Se.height=Math.ceil(yt),b==="SVG"?E===null?null:(E.resize(Se.width,Se.height,Se.width,Se.height),E.ownerDocument=Ne,E.hs=Me,kf(a,E.context,de,new ln(Math.ceil(x),Math.ceil(yt)),z,Rt,se,pe,ze,y),E.context):(a.Xm=!1,kf(a,qe,de,new ln(Math.ceil(x),Math.ceil(yt)),z,Rt,se,pe,ze,y),a.Xm=!0,Se.context)}pn.Object.defineProperties(In.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 Po(this,dr.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 Po(this,dr.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(dr,"resize",this.Ov,!1),this.removeEventListener(dr,"wheel",this.$j,!0),Rc===this&&(Rc=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),tp(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&br(a,"0 <= value <= 1",In,"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&&br(a,">= 0",In,"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&&br(a,">= 0",In,"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 br(a,">= 0",In,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||cp(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&xt("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var b=ep(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,Ss(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=dp(this.cc.type);for(var x=0;x<b.length;x++)this.add(b[x]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(z){return a.Pe(z)}),this.vb=E,this.Ya(),this.vb||this.N(),y&&a.undoManager.copyProperties(y.undoManager)}}},aa:{get:function(){return this.rw},set:function(a){this.rw=a}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(a){this.Iw=a}},Ns:{get:function(){return this.ou},set:function(a){this.ou=a}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(a){var y=this.Lg.I("");y!==a&&(this.Lg.add("",a),this.g("nodeTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(a){var y=this.Lg;y!==a&&(this.Lg=a,this.g("nodeTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(a){var y=this.Yi.I("");y!==a&&(this.Yi.add("",a),this.g("groupTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(a){var y=this.Yi;y!==a&&(this.Yi=a,this.g("groupTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(a){var y=this.Kh.I("");y!==a&&(this.Kh.add("",a),this.g("linkTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(a){var y=this.Kh;y!==a&&(this.Kh=a,this.g("linkTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(a){var y=this.ta;y!==null&&(y=y.Oa,y instanceof SVGElement||(a?(this.lastInput.bubbles=!1,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.addEventListener(dr,"pointermove",this.dk,!0),this.addEventListener(dr,"pointerdown",this.ui,!0),this.addEventListener(dr,"pointerup",this.fk,!0),this.addEventListener(dr,"pointerout",this.ek,!0),this.addEventListener(dr,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(dr,"wheel",this.$j,!0),this.addEventListener(dr,"selectstart",this.preventDefault,!1)):(this.removeEventListener(dr,"pointermove",this.dk,!0),this.removeEventListener(dr,"pointerdown",this.ui,!0),this.removeEventListener(dr,"pointerup",this.fk,!0),this.removeEventListener(dr,"pointerout",this.ek,!0),this.removeEventListener(dr,"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(dr,"wheel",this.$j,!0),this.removeEventListener(dr,"selectstart",this.preventDefault,!1),this.addEventListener(y,"wheel",this.$j,!1)),this.qw=a))}},position:{get:function(){return this.pa},set:function(a){var y=rt.alloc().assign(this.pa);if(!y.D(a)){var b=this.viewportBounds.copy();this.pa.assign(a),hd(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Oc(this):(this.vb=!0,a=this.scale,np(this,this.Sp,this.Aa/a,this.ya/a,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(b,this.viewportBounds,this.Ca,!1)}rt.free(y)}},initialPosition:{get:function(){return this.zt},set:function(a){this.zt.D(a)||(this.zt=a.J())}},initialScale:{get:function(){return this.At},set:function(a){this.At!==a&&(this.At=a)}},grid:{get:function(){return this.fe===null&&(this.fe=Jp(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=Jp(this)),a.type!==Tr.Grid&&xt("Diagram.grid must be a Panel of type Panel.Grid");var b=y.panel;b!==null&&b.remove(y),this.fe=a,a.name="GRID",b!==null&&b.add(a),Mc(this),this.N(),this.g("grid",y,a)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(a){var y=this.viewSize;y.D(a)||(this.wo=a=a.J(),this.ya=this.Aa=0,a.w()?(this.Aa=a.width,this.ya=a.height):this.Ka!==null&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),Oc(this),this.Ya(),this.g("viewSize",y,a),this.redraw())}},fixedBounds:{get:function(){return this.ut},set:function(a){var y=this.ut;y.D(a)||(a.width!==-1/0&&a.height!==1/0&&a.height!==-1/0||xt("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 Xi(a));var y=this.rj;y.D(a)||(this.rj=a=a.J(),this.g("scrollMargin",y,a),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(a){var y=this.sj;y!==a&&(this.sj=a,a===Nd&&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,up(this,this.scale,this.scale),this.g("scaleComputation",y,a))}},documentBounds:{get:function(){return this.Sp}},isVirtualized:{get:function(){return this.It},set:function(a){var y=this.It;y!==a&&(this.It=a,this.g("isVirtualized",y,a))}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&up(this,y,a)}},defaultScale:{get:function(){return this.Pp},set:function(a){this.Pp=a}},autoScale:{get:function(){return this.yh},set:function(a){var y=this.yh;y!==a&&(this.yh=a,this.g("autoScale",y,a),a!==Tl&&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()||xt("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()||xt("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)):br(a,"> 0",In,"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)):br(a,"> 0",In,"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 Xi(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&&xt("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)$g(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==pd&&a!==qa&&a!==qd&&xt("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 ln(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 Xi(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),pn.Object.defineProperties(In,{licenseKey:{get:function(){return wp.jc()},set:function(a){wp.add(a.replace(/\s/g,""))}},version:{get:function(){return Ld}}}),In.prototype.makeImageData=In.prototype.Jx,In.prototype.makeImage=In.prototype.Wz,In.prototype.cacheGroupExternalLinks=In.prototype.Fu,In.prototype.addRenderer=In.prototype.bs,In.prototype.makeSVG=In.prototype.av,In.prototype.makeSvg=In.prototype.Cs,In.prototype.stopAutoScroll=In.prototype.ug,In.prototype.doAutoScroll=In.prototype.gs,In.prototype.isUnoccupied=In.prototype.Yj,In.prototype.raiseDiagramEvent=In.prototype.R,In.prototype.removeDiagramListener=In.prototype.am,In.prototype.addDiagramListener=In.prototype.Bj,In.prototype.findTreeRoots=In.prototype.yz,In.prototype.layoutDiagram=In.prototype.Uz,In.prototype.findTopLevelGroups=In.prototype.qz,In.prototype.findTopLevelNodesAndLinks=In.prototype.rz,In.prototype.ensureBounds=In.prototype.Va,In.prototype.findLinksByExample=In.prototype.ls,In.prototype.findNodesByExample=In.prototype.ms,In.prototype.findLinkForData=In.prototype.Kc,In.prototype.findNodeForData=In.prototype.ii,In.prototype.findPartForData=In.prototype.Lc,In.prototype.findLinkForKey=In.prototype.findLinkForKey,In.prototype.findNodeForKey=In.prototype.Vb,In.prototype.findPartForKey=In.prototype.findPartForKey,In.prototype.rebuildParts=In.prototype.Wd,In.prototype.transformViewToDoc=In.prototype.Ps,In.prototype.transformRectDocToView=In.prototype.zA,In.prototype.transformDocToView=In.prototype.op,In.prototype.centerRect=In.prototype.es,In.prototype.scrollToRect=In.prototype.tv,In.prototype.scroll=In.prototype.scroll,In.prototype.highlightCollection=In.prototype.Jz,In.prototype.highlight=In.prototype.Iz,In.prototype.selectCollection=In.prototype.rA,In.prototype.select=In.prototype.select,In.prototype.updateAllRelationshipsFromData=In.prototype.rp,In.prototype.updateAllTargetBindings=In.prototype.updateAllTargetBindings,In.prototype.commit=In.prototype.commit,In.prototype.rollbackTransaction=In.prototype.Kf,In.prototype.commitTransaction=In.prototype.eb,In.prototype.startTransaction=In.prototype.Ea,In.prototype.raiseChanged=In.prototype.g,In.prototype.raiseChangedEvent=In.prototype.cb,In.prototype.removeChangedListener=In.prototype.ik,In.prototype.addChangedListener=In.prototype.Pe,In.prototype.removeModelChangedListener=In.prototype.mA,In.prototype.addModelChangedListener=In.prototype.Yw,In.prototype.findLayer=In.prototype.Qj,In.prototype.removeLayer=In.prototype.kA,In.prototype.addLayerAfter=In.prototype.Cy,In.prototype.addLayerBefore=In.prototype.Ww,In.prototype.addLayer=In.prototype.Al,In.prototype.moveParts=In.prototype.moveParts,In.prototype.copyParts=In.prototype.Kj,In.prototype.removeParts=In.prototype.Is,In.prototype.remove=In.prototype.remove,In.prototype.add=In.prototype.add,In.prototype.clearDelayedGeometries=In.prototype.bx,In.prototype.setProperties=In.prototype.nm,In.prototype.attach=In.prototype.Du,In.prototype.set=In.prototype.set,In.prototype.resetInputOptions=In.prototype.Sx,In.prototype.setInputOption=In.prototype.sA,In.prototype.getInputOption=In.prototype.Ql,In.prototype.resetRenderingHints=In.prototype.Tx,In.prototype.setRenderingHint=In.prototype.Xx,In.prototype.getRenderingHint=In.prototype.Gf,In.prototype.maybeUpdate=In.prototype.bd,In.prototype.requestUpdate=In.prototype.$b,In.prototype.delayInitialization=In.prototype.Xy,In.prototype.isUpdateRequested=In.prototype.Pz,In.prototype.invalidateDocumentBounds=In.prototype.Ya,In.prototype.findObjectsNear=In.prototype.og,In.prototype.findPartsNear=In.prototype.mz,In.prototype.findObjectsIn=In.prototype.Cf,In.prototype.findPartsIn=In.prototype.ux,In.prototype.findObjectsAt=In.prototype.ji,In.prototype.findPartsAt=In.prototype.lz,In.prototype.findObjectAt=In.prototype.ic,In.prototype.findPartAt=In.prototype.Ol,In.prototype.focusObject=In.prototype.zz,In.prototype.alignDocument=In.prototype.Jy,In.prototype.zoomToRect=In.prototype.BA,In.prototype.zoomToFit=In.prototype.zoomToFit,In.prototype.diagramScroll=In.prototype.kx,In.prototype.focus=In.prototype.focus;var Ff=new Ln,ng=null,Ra=dr.document!==void 0,Eh=null,Ad="",Tl=new Qn(In,"None",0),mu=new Qn(In,"Uniform",1),xh=new Qn(In,"UniformToFill",2),Jd=new Qn(In,"CycleAll",10),yp=new Qn(In,"CycleNotDirected",11),Sp=new Qn(In,"CycleNotDirectedFast",12),bp=new Qn(In,"CycleNotUndirected",13),Ep=new Qn(In,"CycleDestinationTree",14),xp=new Qn(In,"CycleSourceTree",15),Nd=new Qn(In,"DocumentScroll",1),Jh=new Qn(In,"InfiniteScroll",2),pd=new Qn(In,"TreeParentCollapsed",21),qa=new Qn(In,"AllParentsCollapsed",22),qd=new Qn(In,"AnyParentsCollapsed",23),wp=new er,Ld="2.3.10",$d="image",qh=null,rg=!1;function vl(){if(Ra){var a=dr.document.createElement("canvas"),y=a.getContext("2d"),b=Gn("7ca11abfd022028846");y[b]=Gn("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",Gr.Dx+"4ae6247590da4bb21c324ba3a84e385776",Mi.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",en.za],x=1;5>x;x++)y[Gn("7ca11abfd7330390")](Gn(E[x-1]),10,15*x);for(y[b]=Gn("39f046ebb36e4b"),b=1;5>b;b++)y[Gn("7ca11abfd7330390")](Gn(E[b-1]),10,15*b);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(Mi.prototype.Cd=Mi.prototype.Eu),qh=a}}In.className="Diagram",In.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=dr.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof In?y.H:null},In.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},In.useDOM=function(a){Ra=a?dr.document!==void 0:!1},In.isUsingDOM=function(){return Ra},In.None=Tl,In.Uniform=mu,In.UniformToFill=xh,In.CycleAll=Jd,In.CycleNotDirected=yp,In.CycleNotDirectedFast=Sp,In.CycleNotUndirected=bp,In.CycleDestinationTree=Ep,In.CycleSourceTree=xp,In.DocumentScroll=Nd,In.InfiniteScroll=Jh,In.TreeParentCollapsed=pd,In.AllParentsCollapsed=qa,In.AnyParentsCollapsed=qd;function ig(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function kd(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)e:{y="f";var b=dr[Gn("76a715b2f73f148a")][Gn("72ba13b5")]||"";if(a.Rc=!0,Ra){var E=In[Gn("76a115b6ed251eaf4692")];if(E)for(var x=wp.iterator;x.next()&&(E=x.value,E=Gn(E).split(Gn("39e9")),!(6>E.length));){var z=Gn(E[1]).split(".");if(E[4]!=="7da71ca0")break;var ne=Gn(Gr[Gn("6cae19")]).split(".");if(z[0]>ne[0]||z[0]===ne[0]&&z[1]>=ne[1]){var ie=dr[Gn("74a900bae4370f8b51")][Gn("6fbb13a1c2311e8a57")].toLowerCase();if(ne=ie[Gn("73a612b6fb191d")](Gn("3aad1ab6e022098b4dc4")),z=Gn(E[2]),-1<ne&&(ie=ie[Gn("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<ie&&ie<ne),!a.Rc))break;for(ne=b[Gn("76ad18b4f73e")],ie=b[Gn("73a612b6fb191d")](Gn("35e7"))+2;ie<ne;ie++)y+=b[ie];if(ne=y[Gn("73a612b6fb191d")](z),0>ne&&z!==Gn("7da71ca0ad381e90")&&(ne=y[Gn("73a612b6fb191d")](Gn("76a715b2ef3e149757"))),0>ne&&(ne=y[Gn("73a612b6fb191d")](Gn("76a715b2ef3e149757"))),0>ne&&(ne=y[Gn("73a612b6fb191d")](Gn("2bfa41fdb3784bca12"))),0>ne&&(ne=b[Gn("73a612b6fb191d")](Gn("7baa19a6f76c1988428554"))),a.Rc=!(0<=ne&&ne<y[Gn("73a612b6fb191d")](Gn("35"))||y[Gn("73a612b6fb191d")](Gn("35"))===-1),!a.Rc||b[Gn("73a612b6fb191d")](Gn("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<b[Gn("73a612b6fb191d")](z)),!a.Rc)||(ne=dr[Gn("76a715b2f73f148a")][Gn("69ad17a1e03e")],ie=ne[Gn("73a612b6fb191d")](Gn("7fb002b6ed25128b4da25b2e")),-1<ie&&(a.Rc=!(ne[Gn("73a612b6fb191d")](z)>ie),!a.Rc)))break;if(z[0]==="#"){ne=dr.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[Gn("79a417a0f0181a8946")]=E,dr.document[Gn("78a712aa")]){dr.document[Gn("78a712aa")][Gn("7bb806b6ed32388c4a875b")](ne),se=dr.getComputedStyle(ne).getPropertyValue(Gn("78a704b7e62456904c9b12701b6532a8"));var de=dr.getComputedStyle(ne).getPropertyValue(Gn("75b817b0ea2202"));if(dr.document[Gn("78a712aa")][Gn("68ad1bbcf533388c4a875b")](ne),se){if(ne=dr[Gn("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(Gn("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[Gn("76ad18b4f73e")],x=b[Gn("73a612b6fb191d")](Gn("35e7"))+2;x<pe;x++)y+=b[x];b=y[Gn("73a612b6fb191d")](Gn("7da71ca0ad381e90")),a.Rc=!(0<=b&&b<y[Gn("73a612b6fb191d")](Gn("35")))}}}return 0<a.Rc&&a!==a.wy}ig.className="DiagramHelper";function Jc(a){this.j=a===void 0?new rt:a,this.o=new rt}pn.Object.defineProperties(Jc.prototype,{point:{get:function(){return this.j},set:function(a){this.j=a}},shifted:{get:function(){return this.o},set:function(a){this.o=a}}});var eh="DraggingInfo";Jc.className="DraggingInfo";function re(a,y,b){this.node=a,this.info=y,this.Su=b}re.className="DraggingNodeInfoPair";function le(){this.reset()}le.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new ln(NaN,NaN).freeze(),this.gridSnapCellSpot=fo,this.gridSnapOrigin=new rt(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},le.className="DraggingOptions";function ye(a,y){if(typeof a=="string"||dr.Element&&a instanceof Element)var b=In.call(this,a)||this;else b=In.call(this)||this,y=a;return ve(b),y&&b.nm(y),b}Cn(ye,In);function ve(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Mo,a.layout=new nl}ye.prototype.reset=function(){In.prototype.reset.call(this),ve(this)},ye.className="Palette";function xe(a,y){if(typeof a=="string"||dr.Element&&a instanceof Element)var b=In.call(this,a)||this;else b=In.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 Li;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 Xi(0,0,0,0),b.pa.h(0,0),b.toolManager.gb("Dragging",new Tt,b.toolManager.mouseMoveTools),b.click=function(){var z=E.observed;if(z!==null){var ne=z.viewportBounds,ie=E.lastInput.documentPoint;z.position=new rt(ie.x-ne.width/2,ie.y-ne.height/2)}},b.Pf=function(){E.Ya(),dt(E)},b.Xd=function(){E.observed!==null&&(E.Ya(),E.N())},b.Ha=function(){1>E.updateDelay?E.N():E.o||(E.o=!0,setTimeout(function(){return E.redraw()},E.updateDelay))},b.Of=function(){E.observed!==null&&dt(E)},b.autoScale=mu,b.vb=!1,y&&Object.assign(b,y),b}Cn(xe,In),xe.prototype.computePixelRatio=function(){return 1},xe.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(yh(this),this.ql===null){var b=new cl(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),Ze(this)}finally{this.ta=a,this.ib=y}}}In.prototype.redraw.call(this)},xe.prototype.gc=function(){if(this.Ka===null&&xt("No div specified"),this.ta===null&&xt("No canvas specified"),!(this.ta instanceof Po)&&(Yv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){yh(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?Ze(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var b=y.length,E=0;E<b;E++)y[E].gc(a,this);this.Fc=this.vd=!1}}};function Ze(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=kn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Mc(y,x),kn.free(x),el(y));var z=a.Ab;z.reset(),a.scale!==1&&z.scale(a.scale),a.position.x===0&&a.position.y===0||z.translate(-a.position.x,-a.position.y),x=a.ib,x.scale(a.Mb,a.Mb),x.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),x.yc(),y=y.Wa.s,z=y.length;for(var ne=0;ne<z;ne++){var ie=y[ne],se=a;if(ie.visible&&ie.opacity!==0){var de=ie.diagram.grid.part;if(!b&&ie.isTemporary)E&&de.layer===ie&&(ie=Dc(ie,x),de.gc(x,se),x.globalAlpha=ie);else{for(var pe=Dc(ie,x),Se=se.scale,Ne=kn.alloc(),Me=ie.Pa.s,ze=Me.length,qe=0;qe<ze;qe++){var Pt=Me[qe];(E||Pt!==de)&&ie.Oj(x,Pt,se,null,Se,Ne,!1)}kn.free(Ne),x.globalAlpha=pe}}}}}function dt(a){var y=a.box;if(y!==null){var b=a.observed;if(b!==null){a.Fc=!0,b=b.viewportBounds;var E=y.selectionObject,x=ln.alloc();x.h(b.width,b.height),E.desiredSize=x,ln.free(x),a=2/a.scale,E instanceof oo&&(E.strokeWidth=a),y.location=new rt(b.x-a/2,b.y-a/2),y.isSelected=!0}}}xe.prototype.computeBounds=function(){var a=this.observed;if(a===null)return Ba;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))},pn.Object.defineProperties(xe.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof xe&&xt("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 Tt(){sa.call(this),this.j=null}Cn(Tt,sa),Tt.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var b=a.lastInput;return!b.left||a.currentTool!==this&&(!this.isBeyondDragSize()||b.isTouchEvent&&b.timestamp-a.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(b=y.viewportBounds,this.j=new rt(b.width/2,b.height/2),a=a.firstInput.documentPoint,y.position=new rt(a.x-this.j.x,a.y-this.j.y)),!0)},Tt.prototype.doActivate=function(){this.j=null,sa.prototype.doActivate.call(this)},Tt.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Tt.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var b=a.box;if(b!==null){if(this.j===null){var E=a.firstInput.documentPoint;b=b.location,this.j=new rt(E.x-b.x,E.y-b.y)}a=a.lastInput.documentPoint,y.position=new rt(a.x-this.j.x,a.y-this.j.y)}}},Tt.className="OverviewDraggingTool";function Ct(){Ei(this),this.H=Rc,this.Ha=this.u=this.o=!0,this.F=this.V=this.nb=this.ia=!1,this.ij=this.j=null,this.Hb=1.05,this.Jt=NaN,this.sw=null,this.Au=NaN,this.yu=Ba,this.hb=!0,this.cg=null,this.ob=200}Ct.prototype.toString=function(){return"CommandHandler"},Ct.prototype.Xe=function(a){this.H=a},Ct.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,b=Ci?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()},Ct.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Ct.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof ra&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Ct.prototype.canStopCommand=function(){return!0},Ct.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=""}},Ct.prototype.canSelectAll=function(){return this.diagram.allowSelect},Ct.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 ar,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=""}},Ct.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Ct.prototype.copySelection=function(){var a=this.diagram,y=new ar;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)},Ct.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Ct.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Ct.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Ct.prototype.copyToClipboard=function(a){var y=this.diagram,b=null;if(a===null)Eh=null,Ad="";else{b=y.model;var E=!1,x=!1,z=null;try{b.Tl()&&(E=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(x=b.Ij,b.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{b.Tl()&&(b.Jj=E),b.Wj()&&(b.Ij=x),b=new er,b.addAll(z),Eh=b,Ad=y.model.dataFormat}}y.R("ClipboardChanged",b)},Ct.prototype.pasteFromClipboard=function(){var a=new ar,y=Eh;if(y===null)return a;var b=this.diagram;if(Ad!==b.model.dataFormat)return a;var E=b.model,x=!1,z=!1,ne=null;try{E.Tl()&&(x=E.Jj,E.Jj=this.copiesParentKey),E.Wj()&&(z=E.Ij,E.Ij=this.copiesGroupKey),ne=b.Kj(y,b,!1)}finally{for(E.Tl()&&(E.Jj=x),E.Wj()&&(E.Ij=z),y=ne.iterator;y.next();)b=y.value,E=y.key,b.location.w()||(E.location.w()?b.location=E.location:!b.position.w()&&E.position.w()&&(b.position=E.position)),a.add(b)}return a},Ct.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var b=this.pasteFromClipboard();0<b.count&&y.clearSelection(!0);for(var E=b.iterator;E.next();)E.value.isSelected=!0;if(a!==null){var x=y.computePartsBounds(y.selection);if(x.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);Zd(y,z,new rt(a.x-x.centerX,a.y-x.centerY),y.Wm,!1)}}y.R("ClipboardPasted",b)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Ct.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Eh===null||Eh.count===0||Ad!==a.model.dataFormat)},Ct.prototype.undo=function(){this.diagram.undoManager.undo()},Ct.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Ct.prototype.redo=function(){this.diagram.undoManager.redo()},Ct.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Ct.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Tl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Ct.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Tl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Ct.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Tl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Ct.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Tl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Ct.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Ct.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Ct.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var b=a.position,E=a.scale;Ss(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=Ba):(this.Jt=E,this.sw=b.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),fu(y)},Ct.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Ct.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;Ss(b,"Scroll To Part");var E=this.scrollToPartPause;if(0<E){var x=Wt(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 to)||se.isSubGraphExpanded);)se=x.pop();0<x.length?(se instanceof Li&&y.tv(se.actualBounds),se instanceof qr&&!se.isTreeExpanded&&(se.isTreeExpanded=!0),se instanceof to&&!se.isSubGraphExpanded&&(se.isSubGraphExpanded=!0)):(se instanceof Li&&y.es(se.actualBounds),y.am("LayoutCompleted",ne)),y.eb("Scroll To Part")},ne=function(){Ai(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 Wt(a,y,b){if(y.isVisible())return b;if(y instanceof _o)Wt(a,y.adornedPart,b);else if(y instanceof Rr){var E=y.fromNode;E!==null&&Wt(a,E,b),y=y.toNode,y!==null&&Wt(a,y,b)}else y instanceof qr&&(E=y.labeledLink,E!==null&&Wt(a,E,b),E=y.pg(),E!==null&&(E.isTreeExpanded||E.wasTreeExpanded||b.push(E),Wt(a,E,b))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||b.push(y),Wt(a,y,b));return b}Ct.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Li)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},Ct.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Ss(y.animationManager,"Collapse Tree");var b=new er;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")}},Ct.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},Ct.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Ss(y.animationManager,"Expand Tree");var b=new er;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")}},Ct.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},Ct.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 er,z=a.selection.iterator;z.next();){var ne=z.value;ne.Zc()&&ne.canGroup()&&x.add(ne)}for(var ie=new er,se=x.iterator;se.next();){var de=se.value;z=!1;for(var pe=x.iterator;pe.next();)if(de.Td(pe.value)){z=!0;break}z||ie.add(de)}if(0<ie.count){var Se=ie.first().containingGroup;if(Se!==null)for(;Se!==null;){x=!1;for(var Ne=ie.iterator;Ne.next();)if(!Ne.value.Td(Se)){x=!0;break}if(x)Se=Se.containingGroup;else break}if(b instanceof to)Pc(b),E=b.copy(),E!==null&&a.add(E);else if(y.Yu(b)){var Me=y.copyNodeData(b);Xt(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=""}}}},Ct.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=Nr();for(a=a.iterator;a.next();){var b=a.value;b instanceof Rr||y.push(b)}a=new ar,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 jr(y),a}Ct.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Rr)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},Ct.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 er;if(a!==null)E.add(a);else for(var x=y.selection.iterator;x.next();){var z=x.value;z instanceof to&&z.canUngroup()&&E.add(z)}var ne=new er;if(0<E.count){y.clearSelection(!0);for(var ie=E.iterator;ie.next();){var se=ie.value;se.expandSubGraph();var de=se.containingGroup,pe=de!==null&&de.data!==null?b.wa(de.data):void 0;ne.addAll(se.memberParts);for(var Se=ne.iterator;Se.next();){var Ne=Se.value;if(Ne.isSelected=!0,!(Ne instanceof Rr)){var Me=Ne.data;Me!==null?b.mp(Me,pe):Ne.containingGroup=de}}y.remove(se)}}y.R("SelectionUngrouped",E,ne)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Ct.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 to))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof to&&y.canUngroup())return!0;return!1},Ct.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},Ct.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Ss(y.animationManager,"Collapse SubGraph");var b=new er;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 to&&x.isSubGraphExpanded&&(x.collapseSubGraph(),b.add(x))}y.R("SubGraphCollapsed",b)}finally{y.eb("Collapse SubGraph")}},Ct.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof to&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof to&&y.isSubGraphExpanded)return!0;return!1},Ct.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Ss(y.animationManager,"Expand SubGraph");var b=new er;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 to&&!x.isSubGraphExpanded&&(x.expandSubGraph(),b.add(x))}y.R("SubGraphExpanded",b)}finally{y.eb("Expand SubGraph")}},Ct.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof to&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof to&&!y.isSubGraphExpanded)return!0;return!1},Ct.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,b=y.toolManager.findTool("TextEditing");if(b!==null){if(a===null){a=null;for(var E=y.selection.iterator;E.next();){var x=E.value;if(x.canEdit()){a=x;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof ma&&z.editable})}a!==null&&(y.currentTool=null,b.textBlock=a,y.currentTool=b)}},Ct.prototype.canEditTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowTextEdit||y.toolManager.findTool("TextEditing")===null)return!1;if(a!==null){if(!(a instanceof ma))return!1;if(a=a.part,a!==null&&a.canEdit())return!0}else for(y=y.selection.iterator;y.next();)if(a=y.value,a.canEdit()&&(a=a.Nl(function(b){return b instanceof ma&&b.editable}),a!==null))return!0;return!1},Ct.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 rn?x=a.ga(qi):y.viewportBounds.ca(E.documentPoint)||(x=y.viewportBounds,x=new rt(x.x+x.width/2,x.y+x.height/2)),x!==null&&(E.viewPoint=y.op(x),E.documentPoint=x,E.left=!1,E.right=!0,E.up=!0),y.currentTool=b,Qa(b,!1,a)}},Ct.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)},Ct.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 Ln,a===null)return E;for(var z=a.iterator;z.next();)Qc(b,E,z.value,x,y);if(b.draggedLink!==null&&y.dragsLink)return E;for(z=a.iterator;z.next();)a=z.value,a instanceof Rr&&(y=a.fromNode,y===null||E.contains(y)?(y=a.toNode,y===null||E.contains(y)||E.remove(a)):E.remove(a));return E},pn.Object.defineProperties(Ct.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||xt("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}}}),Ct.className="CommandHandler",Gg=function(){return new Ct};function rn(){Ei(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new rt(NaN,NaN).freeze(),this.jd=Ri,this.Ab=new Mi,this.wh=new Mi,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=ds,this.uc=new kn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new kn(NaN,NaN,NaN,NaN).freeze(),this.dc=new kn(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=ts,this.Ag=this.io=0,this.V=this.tb=this.Dh=this.A=this.Ua=null,this.Uc=!1,this.jo=this.Ng=null}var wr,mr,yi,wi,Di,$i,xo,lo,No,Jo;rn.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=Tn(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},rn.prototype.Vw=function(a){var y=this.Dh;if(fr(y)){for(var b=0;b<y.length;b++)if(y[b]===a)return}else this.Dh=y=[];y.push(a)},rn.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},rn.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},rn.prototype.copy=function(){return this.clone()},Oe=rn.prototype,Oe.qb=function(a){a.classType===Rr?a.name.indexOf("Orient")===0?this.segmentOrientation=a:xt("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===rn&&(this.stretch=a)},Oe.toString=function(){return zn(this.constructor)+"#"+Ui(this)},Oe.th=function(){this.A!==null&&(this.A.nc=!0)};function uo(a){a.A===null?a.A=new Hi:a.A.nc&&(a.A=a.A.copy())}Oe.Xc=function(){if(this.ba===null){var a=new io;a.Xi=Ji,a.yj=Ji,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Oe.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===aa&&we(this)&&ya(this,ie,y),z=this.diagram,this.animationTriggers===null||z===null||!z.pi||z.undoManager.isUndoingRedoing||z.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&z.animationManager.isEnabled&&!z.animationManager.isTicking&&(this.jo===null&&(this.jo=new Ln),ne=z.undoManager.transactionLevel===0,a.startCondition===Jl?ne=!0:a.startCondition===ph&&(ne=!1),ne?(z=new ii,Tu(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()):(Ss(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,E,x)))),this instanceof Tr&&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 Tr&&Uf(ie,function(se){se.data!==null&&se.l&16777216&&se.La(y)})};function ya(a,y,b){var E=a.ih();if(E!==null)for(var x=a.localBindings.iterator;x.next();){var z=x.value,ne=null;if(z.sourceName!==null){if(ne=R1(z,E,a),ne===null)continue;z.sp(a,ne,b,null)}else if(z.isToModel){var ie=y.diagram;ie===null||ie.skipsModelSourceBindings||z.sp(a,ie.model.modelData,b,E)}else{if(ie=E.data,ie===null)continue;var se=y.diagram;se===null||se.skipsModelSourceBindings||z.sp(a,ie,b,E)}ne===a&&(ie=E.ks(z.Ai),ie!==null&&z.Mv(ie,ne,b))}}Oe.ks=function(a){return this.bindingId===a?this:null},Oe.g=function(a,y,b){this.cb(aa,a,this,y,b)},Oe.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 Mi);var z=this.Lb;z.reset(),this.no(z,a,y,b,E),z.pp(x)}};function bs(a,y,b,E){return a.pickable===!1?!1:(E.multiply(a.transform),b?a.Yc(y,E):a.fh(y,E))}Oe.tx=function(a,y,b){if(this.pickable===!1)return!1;var E=this.naturalBounds;return y=a.Bf(y),b?jn(a.x,a.y,0,0,0,E.height)<=y||jn(a.x,a.y,0,E.height,E.width,E.height)<=y||jn(a.x,a.y,E.width,E.height,E.width,0)<=y||jn(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},Oe.se=function(){return!0},Oe.ca=function(a){var y=rt.alloc();y.assign(a),this.transform.Ga(y);var b=this.actualBounds;if(!b.w())return rt.free(y),!1;var E=this.diagram;if(E!==null&&E.wq){var x=E.Ql("extraTouchThreshold"),z=E.Ql("extraTouchArea"),ne=z/2,ie=this.naturalBounds;E=this.Df()*E.scale;var se=1/E;if(ie.width*E<x&&ie.height*E<x)return a=ia(b.x-ne*se,b.y-ne*se,b.width+z*se,b.height+z*se,y.x,y.y),rt.free(y),a}return x=!1,(this instanceof _o||this instanceof 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)),rt.free(y),x},Oe.gh=function(a){var y=this.naturalBounds;return ia(0,0,y.width,y.height,a.x,a.y)},Oe.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=kn.allocAt(0,0,y.width,y.height);var b=this.transform,E=!1,x=rt.allocAt(a.x,a.y);return y.ca(b.Cd(x))&&(x.h(a.x,a.bottom),y.ca(b.Cd(x))&&(x.h(a.right,a.bottom),y.ca(b.Cd(x))&&(x.h(a.right,a.y),y.ca(b.Cd(x))&&(E=!0)))),rt.free(x),kn.free(y),E},Oe.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var b=this.naturalBounds,E=!1,x=rt.allocAt(0,0);return a.ca(y.Ga(x))&&(x.h(0,b.height),a.ca(y.Ga(x))&&(x.h(b.width,b.height),a.ca(y.Ga(x))&&(x.h(b.width,0),a.ca(y.Ga(x))&&(E=!0)))),rt.free(x),E},Oe.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var b=this.naturalBounds,E=rt.allocAt(0,0),x=rt.allocAt(0,b.height),z=rt.allocAt(b.width,b.height),ne=rt.allocAt(b.width,0),ie=!1;if(a.ca(y.Ga(E))||a.ca(y.Ga(x))||a.ca(y.Ga(z))||a.ca(y.Ga(ne)))ie=!0;else{b=kn.allocAt(0,0,b.width,b.height);var se=rt.allocAt(a.x,a.y);b.ca(y.Cd(se))?ie=!0:(se.h(a.x,a.bottom),b.ca(y.Cd(se))?ie=!0:(se.h(a.right,a.bottom),b.ca(y.Cd(se))?ie=!0:(se.h(a.right,a.y),b.ca(y.Cd(se))&&(ie=!0)))),rt.free(se),kn.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 rt.free(E),rt.free(x),rt.free(z),rt.free(ne),ie},Oe.ga=function(a,y){if(y===void 0&&(y=new rt),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},Oe.mi=function(a){a===void 0&&(a=new kn);var y=this.naturalBounds,b=this.oe,E=rt.allocAt(0,0).transform(b);return a.h(E.x,E.y,0,0),E.h(y.width,0).transform(b),yo(a,E.x,E.y,0,0),E.h(y.width,y.height).transform(b),yo(a,E.x,E.y,0,0),E.h(0,y.height).transform(b),yo(a,E.x,E.y,0,0),rt.free(E),a},Oe.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},Oe.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Oe.qs=function(a,y){return y===void 0&&(y=new rt),y.assign(a),this.oe.Cd(y),y},Oe.rs=function(a,y,b){return this.Sj(a.x,a.y,y.x,y.y,b)},Oe.Sj=function(a,y,b,E,x){var z=this.transform,ne=1/(z.m11*z.m22-z.m12*z.m21),ie=z.m22*ne,se=-z.m12*ne,de=-z.m21*ne,pe=z.m11*ne,Se=ne*(z.m21*z.dy-z.m22*z.dx),Ne=ne*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,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+Ne,y=b*ie+E*de+Se,b=b*se+E*pe+Ne,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)},rn.prototype.measure=function(a,y,b,E){if(Lt(this)!==!1){var x=this.Kg,z=x.right+x.left;x=x.top+x.bottom,a=Math.max(a-z,0),y=Math.max(y-x,0),b=Math.max((b||0)-z,0),E=Math.max((E||0)-x,0),z=this.angle,x=this.desiredSize;var ne=this.kq();z===90||z===270?(a=isFinite(x.height)?x.height+ne:a,y=isFinite(x.width)?x.width+ne:y):(a=isFinite(x.width)?x.width+ne:a,y=isFinite(x.height)?x.height+ne:y),x=b||0,ne=E||0;var ie=this instanceof Tr;switch(zl(this,!0)){case mr:ne=x=0,ie&&(y=a=1/0);break;case wr:isFinite(a)&&a>b&&(x=a),isFinite(y)&&y>E&&(ne=y);break;case wi:isFinite(a)&&a>b&&(x=a),ne=0,ie&&(y=1/0);break;case Di: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()||xt("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),At(this,!1)}},rn.prototype.Wl=function(){},rn.prototype.Dd=function(){return!1},rn.prototype.arrange=function(a,y,b,E,x){this.Uk();var z=kn.alloc();z.assign(this.Ib),this.Ib.ka(),zt(this)===!1?this.Ib.h(a,y,b,E):this.eh(a,y,b,E),this.Ib.freeze(),x===void 0?this.tb=null:this.tb=x,b=!1,x!==void 0?b=!0:(x=this.panel,x!==null&&Ph(x)&&(x=x.panel),x!==null&&(x=x.dc,E=this.measuredBounds,this.areaBackground!==null&&(E=this.Ib),b=y+E.height,E=a+E.width,b=!(0<=a+.05&&E<=x.width+.05&&0<=y+.05&&b<=x.height+.05),this instanceof ma&&(a=this.naturalBounds,this.Lq>a.height||this.Cb>a.width))&&(b=!0)),this.l=b?this.l|256:this.l&-257,this.Ib.w()||xt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Kt(this,!1),kn.free(z)},Oe=rn.prototype,Oe.eh=function(){};function Al(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=zl(a,!0),b===E&&z===x&&(y=mr),y){case mr:(b>E||z>x)&&(At(a,!0),a.measure(b>E?E:b,z>x?x:z,0,0));break;case wr:At(a,!0),a.measure(E,x,0,0);break;case wi:At(a,!0),a.measure(E,z,0,0);break;case Di:At(a,!0),a.measure(b,x,0,0)}}}Oe.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(),so(a,y)||(b.oh(),this.Pn(b)))},Oe.Pn=function(a){this.portId!==null&&(Jv(a,!0),a instanceof qr&&QS(a,this))},Oe.gc=function(a,y){if(!Lu(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 Tr&&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&&(Ma(this,a,de,!0,!0,se,ie),de instanceof Fo&&de.type===pc?(a.beginPath(),a.rect(ie.x,ie.y,ie.width,ie.height),a.ng(de)):a.fillRect(ie.x,ie.y,ie.width,ie.height)),pe!==null&&(Ma(this,a,pe,!0,!1,se,ie),pe instanceof Fo&&pe.type===pc?(a.beginPath(),a.rect(ie.x,ie.y,ie.width,ie.height),a.ng(pe)):a.fillRect(ie.x,ie.y,ie.width,ie.height)),this.hh(a,y)}if(!z&&(z||ne.width!==0&&ne.height!==0&&!isNaN(ne.x)&&!isNaN(ne.y))){z=this.transform,ie=this.panel,this.l&4096&&Os(this),de=this.part,se=!1;var Se=0;de&&y.Gf("drawShadows")&&(se=de.isShadowed)&&(pe=de.shadowOffset,Se=Math.max(pe.y,pe.x)*y.scale*y.Mb),pe=this.Dd();var Ne;if(!(Ne=y.$i||!pe)){var Me=this.naturalBounds;Ne=this.wh;var ze=Ne.m11,qe=Ne.m21,Pt=Ne.dx,yt=Ne.m12,Rt=Ne.m22,Bt=Ne.dy,Gt,$t=Gt=0;Ne=Gt*ze+$t*qe+Pt;var Dn=Gt*yt+$t*Rt+Bt;Gt=Me.width+Se,$t=0;var Qr=Gt*ze+$t*qe+Pt;Gt=Gt*yt+$t*Rt+Bt,$t=Math.min(Ne,Qr);var gi=Math.min(Dn,Gt),ui=Math.max(Ne+0,Qr)-$t,Dr=Math.max(Dn+0,Gt)-gi;Ne=$t,Dn=gi,Gt=Me.width+Se,$t=Me.height+Se,Qr=Gt*ze+$t*qe+Pt,Gt=Gt*yt+$t*Rt+Bt,$t=Math.min(Ne,Qr),gi=Math.min(Dn,Gt),ui=Math.max(Ne+ui,Qr)-$t,Dr=Math.max(Dn+Dr,Gt)-gi,Ne=$t,Dn=gi,Gt=0,$t=Me.height+Se,Qr=Gt*ze+$t*qe+Pt,Gt=Gt*yt+$t*Rt+Bt,$t=Math.min(Ne,Qr),gi=Math.min(Dn,Gt),ui=Math.max(Ne+ui,Qr)-$t,Dr=Math.max(Dn+Dr,Gt)-gi,Ne=$t,Dn=gi,Se=y.viewportBounds,Me=Se.x,ze=Se.y,Ne=!(Ne>Se.width+Me||Me>ui+Ne||Dn>Se.height+ze||ze>Dr+Dn)}if(Ne){if(Ne=(this.l&256)!==0,a.clipInsteadOfFill&&(Ne=!1),this instanceof ma&&(a.font=this.font),Ne){if(Dn=ie.se()?ie.naturalBounds:ie.actualBounds,ui=Math.max(ne.x,Dn.x),Dr=Math.max(ne.y,Dn.y),Se=Math.min(ne.right,Dn.right)-ui,Me=Math.min(ne.bottom,Dn.bottom)-Dr,ze=this.tb,ze!==null&&(ui=ze.x,Dr=ze.y,Se=ze.width,Me=ze.height),ui>ne.width+ne.x||ne.x>Dn.width+Dn.x){b!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=x);return}a.save(),a.beginPath(),a.rect(ui,Dr,Se,Me),a.clip()}if(pe){if(!de.isVisible()){b!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=x);return}se&&(Dn=de.shadowOffset,a.Ev(Dn.x*y.scale*this.scale*y.Mb,Dn.y*y.scale*this.scale*y.Mb,de.shadowBlur),Ys(a),a.shadowColor=de.shadowColor)}se&&this.shadowVisible===!0?Ys(a):se&&this.shadowVisible===!1&&Gl(a),de=this.naturalBounds,this.areaBackground!==null&&(a.yc(),Nu(this,a,de,ne)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),se&&Ms(this,ie)&&this.shadowVisible===null&&Gl(a),this.Ma!==null&&(a.yc(),ql(this,a,de,ne)),se&&(this.Ma!==null||this.areaBackground!==null||Ms(this,ie))?(ec(this,!0),this.shadowVisible===null&&Gl(a)):ec(this,!1),this.hh(a,y),se&&this.l&512&&Ys(a),pe&&se&&Gl(a),Ne&&(a.restore(),a.Vc(this instanceof Tr)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}b!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=x)}}};function Ms(a,y){return y===null?!1:(Ph(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Tr.Auto||y.type===Tr.Spot)&&y.Pb()!==a)}Oe.Dv=function(){};function Nu(a,y,b,E){Ma(a,y,a.areaBackground,!0,!0,b,E),a.areaBackground instanceof Fo&&a.areaBackground.type===pc?(y.beginPath(),y.rect(E.x,E.y,E.width,E.height),y.ng(a.areaBackground)):y.fillRect(E.x,E.y,E.width,E.height)}function ql(a,y,b,E){var x=a.kq(),z=b.x,ne=b.y,ie=b.width+x,se=b.height+x;Ma(a,y,a.Ma,!0,!1,b,E),a.Ma instanceof Fo&&a.Ma.type===pc?(y.beginPath(),y.rect(z-x/2,ne-x/2,ie,se),y.ng(a.Ma)):y.fillRect(z-x/2,ne-x/2,ie,se)}function yl(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===Tr.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 Lu(a,y,b){if(!(y instanceof jo))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&&yl(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),Ys(y),y.shadowColor=a.shadowColor}a instanceof ma&&(y.font=a.font),y.yd=null;var ne=a.transform;z=a instanceof Tr;var ie=a instanceof Tr?Ph(a):!1;a.l&4096&&Os(a);var se=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,x&&(y.o=!0,z&&ie?(fc(y,1,0,0,1,0,0),a.svg=y.ad):z?(fc(y,ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy),a.svg=y.ad):fc(y,1,0,0,1,0,0)),x=a.naturalBounds,a.areaBackground!==null){var de=ne.copy().Vj();y.rb.ha=[de.m11,de.m12,de.m21,de.m22,de.dx,de.dy],Nu(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]),ql(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],ql(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&&Ys(y),ie&&a.shadowVisible===!0?Ys(y):ie&&a.shadowVisible===!1&&Gl(y),x=a.panel,ie&&Ms(a,x)&&a.shadowVisible===null&&Gl(y),y.Il&&(de=b.computePixelRatio(),de="drop-shadow("+y.shadowOffsetX/de+"px "+y.shadowOffsetY/de+"px "+y.shadowBlur/de/2+"px "+y.shadowColor+")",a.background!==null&&ne.Ma.setAttributeNS(null,"filter",de),a.areaBackground!==null&&ne.gd.setAttributeNS(null,"filter",de)),ie&&(a.Ma!==null||a.areaBackground!==null||Ms(a,x))?(ec(a,!0),a.shadowVisible===null&&Gl(y)):ec(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),Hl(y,de),!0):(a.svg=ie,ne!==null&&ie===null&&(tc(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&&Ys(y),a.Dd()&&Gl(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&&yl(a,E,ie),ne!==null&&ne(a,ie)),!0)}Oe.$o=function(a,y,b,E){var x=(this.l&256)!==0;if(a.clipInsteadOfFill&&(x=!1),x){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(b.x,z.x),x=Math.max(b.y,z.y);var ne=Math.min(b.right,z.right)-y;b=Math.min(b.bottom,z.bottom)-x,z=this.tb,z!==null&&(y=z.x,x=z.y,ne=z.width,b=z.height),z=E.getAttribute("clip-path");var ie=null;z!==null&&(ie=a.svg.getElementById(z.split("#")[1].slice(0,-1))),ie===null?(z="CLIP"+po++,ie=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:x,width:ne,height:b}),this instanceof Tr&&(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"),Hl(a,E)};function Hl(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Sl(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),b=a.svg.ownerDocument;if(y!==null){y=Cr(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()}}Oe.hh=function(){},Oe.lv=function(){this.Uc=!0},Oe.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 Tr?Ph(this):!1;if(!(this instanceof Tr&&x))if(this instanceof Su){var z=this.bt;a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy],z!==null&&Ua(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),b?y.lastElementChild.setAttributeNS(null,"transform",bl(a)):y.setAttributeNS(null,"transform",bl(a))}else if(!b||this instanceof Tr)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],Nu(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(ne=y.gd.getAttribute("filter"),ne!==null&&a.ad.setAttribute("filter",ne),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&gd(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(gd(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((x||b&&!(this instanceof Tr))&&(a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy]),ql(this,a,this.naturalBounds,this.actualBounds),y.Ma?(gd(a,y.Ma),b=y.Ma.getAttribute("filter"),b!==null&&a.ad.setAttribute("filter",b),y.Ma.replaceWith(a.ad)):y.prepend(a.ad),y.Ma=a.ad),z&&gd(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},Oe.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 Ma(a,y,b,E,x,z,ne){if(b!==null){var ie=1,se=1;if(typeof b=="string")E?y.fillStyle=b:y.strokeStyle=b;else if(b.type===Ch)E?y.fillStyle=b.color:y.strokeStyle=b.color;else{var de=a.kq();if(ie=z.width,se=z.height,x?(ie=ne.width,se=ne.height):E||(ie+=de,se+=de),(z=y instanceof $c)&&b.xe&&(b.type===lg||b.yk===ie&&b.ft===se))var pe=b.xe;else{var Se=0,Ne=0,Me=0,ze=0,qe=0,Pt=0;if(Pt=qe=0,x?(qe=ne.x,Pt=ne.y):E||(qe-=de/2,Pt-=de/2),Se=b.start.x*ie+b.start.offsetX,Ne=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,Ne+=Pt,ze+=Pt,b.type===nh)pe=y.createLinearGradient(Se,Ne,Me,ze);else if(b.type===pc)Pt=isNaN(b.endRadius)?Math.max(ie,se)/2:b.endRadius,isNaN(b.startRadius)?(qe=0,Pt=Math.max(ie,se)/2):qe=b.startRadius,pe=y.createRadialGradient(Se,Ne,qe,Me,ze,Pt);else if(b.type===lg)try{pe=y.createPattern(b.pattern,"repeat")}catch(Rt){pe=null}if(b.type!==lg&&(x=b.colorStops,x!==null))for(x=x.iterator;x.next();)pe.addColorStop(x.key,x.value);if(z&&(b.xe=pe,pe!==null&&(b.yk=ie,b.ft=se),pe===null&&b.type===lg&&b.yk!==-1)){b.yk=-1;var yt=a.diagram;yt!==null&&b.yk===-1&&Ai(function(){yt.redraw()},600)}}E?y.fillStyle=pe:y.strokeStyle=pe}}}Oe.rg=function(a){if(a instanceof Tr)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},Oe.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Oe.If=function(){for(var a=this instanceof Tr?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Os(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){je(a,!1);return}if(y.translate(a.Ib.x-a.uc.x,a.Ib.y-a.uc.y),a.scale!==1||a.angle!==0){var b=a.naturalBounds;a.no(y,b.x,b.y,b.width,b.height)}je(a,!1),ut(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,ut(a,!1)):y.oe!==null&&(b=a.wh,b.reset(),y.se()?b.multiply(y.wh):y.panel!==null&&b.multiply(y.panel.wh),b.multiply(a.Ab),a.Kk=a.scale*y.Kk,ut(a,!1)))}Oe.no=function(a,y,b,E,x){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=rt.alloc();z.yi(y,b,E,x,qi),a.rotate(this.Kb,z.x,z.y),rt.free(z)}},Oe.v=function(a){if(!Lt(this)){a===void 0&&(a=!1),At(this,!0),Kt(this,!0);var y=this.panel;y===null||a||y.v()}},Oe.Uj=function(){Lt(this)||(At(this,!0),Kt(this,!0))};function Dl(a){if(!zt(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())),Kt(a,!0)}}Oe.Uk=function(){!(this.l&2048)&&(je(this,!0),ut(this,!0))},Oe.Wu=function(){ut(this,!0)},Oe.N=function(){var a=this.part;a!==null&&a.N()};function zl(a,y){var b=a.stretch,E=a.panel;return E!==null&&E.type===Tr.Table?wc(a,E.Fb(a.row),E.Eb(a.column),y):E!==null&&E.type===Tr.Auto&&E.Pb()===a?Fs(a,wr,y):b===$i?E!==null?E.type===Tr.Spot&&E.Pb()===a?Fs(a,wr,y):(b=E.defaultStretch,b===$i?Fs(a,mr,y):Fs(a,b,y)):Fs(a,mr,y):Fs(a,b,y)}function wc(a,y,b,E){var x=a.stretch;if(x!==$i)return Fs(a,x,E);var z=x=null;switch(y.stretch){case Di:z=!0;break;case wr:z=!0}switch(b.stretch){case wi:x=!0;break;case wr:x=!0}return y=a.panel.defaultStretch,x===null&&(x=y===wi||y===wr),z===null&&(z=y===Di||y===wr),x===!0&&z===!0?Fs(a,wr,E):x===!0?Fs(a,wi,E):z===!0?Fs(a,Di,E):Fs(a,mr,E)}function Fs(a,y,b){if(b)return y;if(y===mr||(b=a.desiredSize,b.w()))return mr;if(a=a.angle,!isNaN(b.width))if(a!==90&&a!==270){if(y===wi)return mr;if(y===wr)return Di}else{if(y===Di)return mr;if(y===wr)return wi}if(!isNaN(b.height))if(a!==90&&a!==270){if(y===Di)return mr;if(y===wr)return wi}else{if(y===wi)return mr;if(y===wr)return Di}return y}function ec(a,y){a.l=y?a.l|512:a.l&-513}function we(a){return(a.l&1024)!==0}function Le(a,y){a.l=y?a.l|1024:a.l&-1025}function je(a,y){a.l=y?a.l|2048:a.l&-2049}function ut(a,y){a.l=y?a.l|4096:a.l&-4097}function Lt(a){return(a.l&8192)!==0}function At(a,y){a.l=y?a.l|8192:a.l&-8193}function zt(a){return(a.l&16384)!==0}function Kt(a,y){a.l=y?a.l|16384:a.l&-16385}Oe.Gj=function(){this.svg=null},Oe.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Oe.Av=function(){},Oe.zv=function(a){return this.pa=a,Dl(this),!0},Oe.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Oe.kq=function(){return 0};function _n(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 rr(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Tr?a instanceof qr?a.Bd():a.qm(a,function(b){_n(b)}):_n(a))}Oe.bind=function(a,y,b,E){var x=null;return typeof a=="string"?x=new ls(a,y,b,E):x=a,x.xd=this,a=this.ih(),a!==null&&yS(a)&&xt("Cannot add a Binding to a template that has already been copied: "+x),this.localBindings===null&&(this.localBindings=new er),this.localBindings.add(x),this},Oe.set=function(a){return Object.assign(this,a),this},Oe.Du=function(a){return Zn(this,a),this},Oe.apply=function(a){return a(this),this},Oe.nm=function(a){return vh(this,a),this},Oe.pz=function(){return this.ih()},Oe.ih=function(){for(var a=this instanceof Tr?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Oe.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new Ln),this.animationTriggers.add(a.propertyName,a),this};function Jn(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=ni.I(a);typeof z=="function"?(b=Tn(arguments),E=z(b),Xt(E)||xt('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):x=dr.go[a]}if(E===null&&(x!=null&&x.constructor||xt("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 In&&1<b.length){z=E;var ne=b[1];(typeof ne=="string"||ne instanceof HTMLDivElement)&&(tp(z,ne),x++)}for(;x<b.length;x++)z=b[x],z===void 0?xt("Undefined value at argument "+x+" for object being constructed by GraphObject.make: "+E):Zn(E,z);return E}function Zn(a,y){if(typeof y=="string")if(a instanceof ma)a.text=y;else if(a instanceof oo)a.figure=y;else if(a instanceof Su)a.source=y;else if(a instanceof Tr)y=Fc.I(y),y!==null&&(a.type=y);else if(a instanceof Fo){var b=zr(Fo,y);b!==null?a.type=b:xt("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Ar?(y=zr(Ar,y),y!==null&&(a.type=y)):a instanceof To&&(y=zr(To,y),y!==null&&(a.type=y));else if(y instanceof rn)a instanceof Tr||xt("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Es){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 Es?e0(E,y):xt("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof Qn)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Ns)a.type=y;else if(y instanceof ls)a instanceof rn||a instanceof Es?a.bind(y):xt("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Ul)a instanceof rn?a.Jv(y):xt("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof ja)a instanceof Ar&&a.type===Ar.o?a.figures.add(y):xt("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof To)a instanceof ja?a.segments.add(y):xt("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Aa)a instanceof In||a instanceof to?a.layout=y:xt("A Layout can only be assigned to a Diagram or a Group, not to: "+a);else if(Array.isArray(y))for(b=0;b<y.length;b++)Zn(a,y[b]);else if(typeof y=="object"&&y!==null)if(a instanceof Fo){b=new di;for(var x in y)E=parseFloat(x),isNaN(E)?b[x]=y[x]:a.addColorStop(E,y[x]);vh(a,b)}else if(a instanceof Es){y.row!==void 0?(x=y.row,(x==null||x===1/0||isNaN(x)||0>x)&&xt("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)&&xt("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+x),a.isRow=!1,a.index=x),x=new di;for(b in y)b!=="row"&&b!=="column"&&(x[b]=y[b]);vh(a,x)}else vh(a,y);else xt('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Wn(a,y){ni.add(a,y)}function gr(a,y,b){b===void 0&&(b=null);var E=a[1];if(typeof b=="function"?b(E):typeof E=="string")return a.splice(1,1),E;if(y===void 0)throw Error("no "+(typeof b=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}pn.Object.defineProperties(rn.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new Hi),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 Hi),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 Hi),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:eu},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Yi),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===eu&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new Yi),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1<a&&(a=1);var y=this.segmentFraction;y!==a&&(this.Ua===null&&(this.Ua=new Yi),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:Hr},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new Yi),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:$i},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)&&br(a,"0 <= value <= 1",rn,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Gf(y,y.actualBounds)))}},filter:{get:function(){return this.bn},set:function(a){var y=this.bn;y!==a&&(this.bn=a,this.Uc=!0,this.g("filter",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Gf(y,y.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(a){var y=(this.l&1)!==0;y!==a&&(this.l^=1,this.g("visible",y,a),y=this.panel,y!==null?y.v():this.Dd()&&this.Zb(a),this.N(),rr(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(a){var y=(this.l&2)!==0;y!==a&&(this.l^=2,this.g("pickable",y,a))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(a){var y=(this.l&4)!==0;y!==a&&(this.l^=4,this.g("fromLinkableDuplicates",y,a))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(a){var y=(this.l&8)!==0;y!==a&&(this.l^=8,this.g("fromLinkableSelfNode",y,a))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(a){var y=(this.l&16)!==0;y!==a&&(this.l^=16,this.g("toLinkableDuplicates",y,a))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(a){var y=(this.l&32)!==0;y!==a&&(this.l^=32,this.g("toLinkableSelfNode",y,a))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(a){var y=(this.l&64)!==0;y!==a&&(this.l^=64,this.v(),this.g("isPanelMain",y,a))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(a){var y=(this.l&128)!==0;y!==a&&(this.l^=128,this.g("isActionable",y,a))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(a){var y=this.areaBackground;y!==a&&(a!==null&&ef(a,"GraphObject.areaBackground"),a instanceof Fo&&a.freeze(),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&&ef(a,"GraphObject.background"),a instanceof Fo&&a.freeze(),this.Ma=a,this.N(),this.g("background",y,a))}},part:{get:function(){if(this.Dd())return this;if(this.Ng!==null)return this.Ng;var a;for(a=this.panel;a;){if(a instanceof Li)return this.Ng=a;a=a.panel}return null}},svg:{get:function(){return this.V},set:function(a){this.V=a}},panel:{get:function(){return this.Me}},layer:{get:function(){var a=this.part;return a!==null?a.layer:null}},diagram:{get:function(){var a=this.part;return a!==null?a.diagram:null}},position:{get:function(){return this.pa},set:function(a){var y=a.x,b=a.y,E=this.pa,x=E.x;E=E.y,(x===y||isNaN(x)&&isNaN(y))&&(E===b||isNaN(E)&&isNaN(b))?this.Av():(a=a.copy(),this.zv(a,x,E)&&this.g("position",new rt(x,E),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&xt("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,rr(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),we(this)&&(a=this.part,a!==null&&(ya(this,a,"width"),ya(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new ln(a,this.jd.height).freeze(),this.v(),this instanceof oo&&this.qc(),this.g("desiredSize",y,a),we(this)&&(a=this.part,a!==null&&ya(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new ln(this.jd.width,a).freeze(),this.v(),this instanceof oo&&this.qc(),this.g("desiredSize",y,a),we(this)&&(a=this.part,a!==null&&ya(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:qn},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 Xi(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&Os(this),this.Ab}},oe:{get:function(){return this.l&4096&&Os(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(uo(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:mr},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()&&xt("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Dl(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&&br(a,">= 0",rn,"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&&br(a,">= 1",rn,"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&&br(a,">= 0",rn,"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&&br(a,">= 1",rn,"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||xt("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:Ji},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),_n(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&br(a,">= 0",rn,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),_n(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),_n(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&&br(a,">= 0",rn,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Ji},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),_n(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&br(a,">= 0",rn,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),_n(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),_n(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&&br(a,">= 0",rn,"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))}}}),rn.prototype.trigger=rn.prototype.Jv,rn.prototype.findBindingPanel=rn.prototype.ih,rn.prototype.findTemplateBinder=rn.prototype.pz,rn.prototype.setProperties=rn.prototype.nm,rn.prototype.apply=rn.prototype.apply,rn.prototype.attach=rn.prototype.Du,rn.prototype.set=rn.prototype.set,rn.prototype.isEnabledObject=rn.prototype.If,rn.prototype.isVisibleObject=rn.prototype.Ed,rn.prototype.isContainedBy=rn.prototype.rg,rn.prototype.getNearestIntersectionPoint=rn.prototype.rs,rn.prototype.getLocalPoint=rn.prototype.qs,rn.prototype.getDocumentScale=rn.prototype.Df,rn.prototype.getDocumentAngle=rn.prototype.li,rn.prototype.getDocumentBounds=rn.prototype.mi,rn.prototype.getDocumentPoint=rn.prototype.ga,rn.prototype.intersectsRect=rn.prototype.Yc,rn.prototype.containedInRect=rn.prototype.fh,rn.prototype.containsRect=rn.prototype.Re,rn.prototype.containsPoint=rn.prototype.ca,rn.prototype.raiseChanged=rn.prototype.g,rn.prototype.raiseChangedEvent=rn.prototype.cb,rn.prototype.addCopyProperty=rn.prototype.Vw;var ni=null;rn.className="GraphObject",ni=new Ln,Wn("Button",function(){function a(b,E){return b.diagram.ic(b.documentPoint,function(x){for(;x.panel!==null&&!x.isActionable;)x=x.panel;return x},function(x){return x===E})!==null}var y=Jn(Tr,Tr.Auto,{isActionable:!0,enabledChanged:function(b,E){if(b instanceof Tr){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"},Jn(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 Tr&&(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 Tr&&(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 Tr&&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 Tr&&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 Tr&&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 Tr&&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}),Wn("TreeExpanderButton",function(){var a=Jn("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Jn(oo,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ai},new ls("figure","isTreeExpanded",function(y,b){return b=b.panel,y?b._treeExpandedFigure:b._treeCollapsedFigure}).cp()),{visible:!1},new ls("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,b){if(b=b.part,b instanceof _o&&(b=b.adornedPart),b instanceof 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}),Wn("SubGraphExpanderButton",function(){var a=Jn("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Jn(oo,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ai},new ls("figure","isSubGraphExpanded",function(y,b){return b=b.panel,y?b._subGraphExpandedFigure:b._subGraphCollapsedFigure}).cp()));return a.click=function(y,b){if(b=b.part,b instanceof _o&&(b=b.adornedPart),b instanceof to){var E=b.diagram;if(E!==null){if(E=E.commandHandler,b.isSubGraphExpanded){if(!E.canCollapseSubGraph(b))return}else if(!E.canExpandSubGraph(b))return;y.handled=!0,b.isSubGraphExpanded?E.collapseSubGraph(b):E.expandSubGraph(b)}}},a}),Wn("ToolTip",function(){return Jn(_o,Tr.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new rt(0,3),shadowBlur:5},Jn(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)}))}),Wn("ContextMenu",function(){return Jn(_o,Tr.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new rt(0,3),shadowBlur:5},new ls("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Wn("ContextMenuButton",function(){var a=Jn("Button");a.stretch=wi;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}),Wn("PanelExpanderButton",function(a){var y=gr(a,"COLLAPSIBLE"),b=Jn("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},Jn(oo,{name:"ButtonIcon",strokeWidth:2},new ls("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}),Wn("CheckBoxButton",function(a){var y=gr(a);return a=Jn("Button",{desiredSize:new ln(14,14)},Jn(oo,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:wr,geometryStretch:yi,visible:!1},y!==""?new ls("visible",y).Kx():[])),a.click=function(b,E){if(E instanceof Tr){var x=b.diagram;if(!(x===null||x.isReadOnly||y!==""&&x.model.isReadOnly)){b.handled=!0;var z=E.fb("ButtonIcon");x.Ea("checkbox"),z.visible=!z.visible,typeof E._doClick=="function"&&E._doClick(b,E),x.eb("checkbox")}}},a}),Wn("CheckBox",function(a){a=gr(a),a=Jn("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Xi(0,1,0,0)});var y=Jn(Tr,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Xi(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}),rn.None=mr=new Qn(rn,"None",0),rn.Default=$i=new Qn(rn,"Default",0),rn.Vertical=Di=new Qn(rn,"Vertical",4),rn.Horizontal=wi=new Qn(rn,"Horizontal",5),rn.Fill=wr=new Qn(rn,"Fill",3),rn.Uniform=yi=new Qn(rn,"Uniform",1),rn.UniformToFill=xo=new Qn(rn,"UniformToFill",2),rn.FlipVertical=lo=new Qn(rn,"FlipVertical",1),rn.FlipHorizontal=No=new Qn(rn,"FlipHorizontal",2),rn.FlipBoth=Jo=new Qn(rn,"FlipBoth",3),rn.make=Jn,rn.getBuilders=function(){var a=new Ln,y;for(y in ni)if(y!==y.toLowerCase()){var b=ni.I(y);typeof b=="function"&&a.add(y,b)}return a.freeze(),a},rn.defineBuilder=Wn,rn.build=function(a,y,b){for(var E=[],x=2;x<arguments.length;++x)E[x-2]=arguments[x];if(x=ni.I(a),typeof x=="function"&&(E=x([a].concat(E)),E instanceof rn))return y&&E.set(y),E;xt('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},rn.takeBuilderArgument=gr;function Hi(){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=qn,this.o=Ii,this.hg=$i,this.ob=this.Bi=1,this.Pf=mr,this.Pc=this.Ci=this.gd=null,this.Oc="category"}Hi.prototype.copy=function(){var a=new Hi;return a.xa=this.xa,a.zp=this.zp,a.te=this.te,a.nb=this.nb,a.j=this.j,a.zh=this.zh,a.Fh=this.Fh,a.Bh=this.Bh,a.Mh=this.Mh,a.Ph=this.Ph,a.Qh=this.Qh,a.Oh=this.Oh,a.Nh=this.Nh,a.Of=this.Of,a.Xd=this.Xd,a.Lh=this.Lh,a.V=this.V,a.ia=this.ia,a.Ha=this.Ha,a.F=this.F,a.$h=this.$h,a.Ch=this.Ch,a.Hb=this.Hb,a.Di=this.Di,a.hb=this.hb,a.u=this.u.J(),a.o=this.o.J(),a.hg=this.hg,a.Bi=this.Bi,a.ob=this.ob,a.Pf=this.Pf,a.gd=this.gd,a.Ci=this.Ci,a.Pc=this.Pc,a.Oc=this.Oc,a};function Yi(){this.u=-1/0,this.o=0,this.F=Hr,this.rr=eu,this.j=this.V="None"}Yi.prototype.copy=function(){var a=new Yi;return a.u=this.u,a.o=this.o,a.F=this.F.J(),a.rr=this.rr,a.V=this.V,a.j=this.j,a},Yi.className="LinkElementSettings";function io(){this.yj=this.Xi=ts,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}io.prototype.copy=function(){var a=new io;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},io.className="LinkSettings";function vo(){this.ha=[1,0,0,1,0,0]}vo.prototype.copy=function(){var a=new vo;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},vo.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},vo.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},vo.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)}},vo.className="STransform";function ko(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}ko.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},ko.className="SGradient";function Po(a,y,b){this.ownerDocument=a=y===void 0?dr.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 jo(this,b)}Po.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},Po.prototype.Ud=function(a,y,b){if(a=this.ownerDocument.createElementNS(this.cA,a),Xt(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},Po.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Po.prototype.focus=function(){this.Oa.focus()},Po.prototype.mx=function(){this.ownerDocument=null},pn.Object.defineProperties(Po.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}}}),Po.className="SVGSurface";function jo(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 vo,this.j=tc(this),this.Nj=tc(this,"gojs-diagram"),this.Hl=this.ti=null;var b=po++,E=this.Ud("clipPath",{id:"mainClip"+b});E.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=E,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(E),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+b+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Ea(a,y,b,E,x,z,ne){a.Nj===void 0?fc(a,y,b,E,x,z,ne):a.Nj.setAttribute("transform","matrix("+y+", "+b+", "+E+", "+x+", "+z+", "+ne+")")}Oe=jo.prototype,Oe.arc=function(a,y,b,E,x,z,ne,ie){var se=2*Math.PI,de=se-1e-6,pe=b*Math.cos(E),Se=b*Math.sin(E),Ne=a+pe,Me=y+Se,ze=z?0:1;E=z?E-x:x-E,(1e-6<Math.abs(ne-Ne)||1e-6<Math.abs(ie-Me))&&this.path.push(["L",Ne,+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,Ne,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)])},Oe.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Oe.Se=function(a){this.addPath(this.path,this.rb,a||0)},Oe.bezierCurveTo=function(a,y,b,E,x,z){this.path.push(["C",a,y,b,E,x,z])},Oe.clearRect=function(){},Oe.clip=function(){this.Yl.clipPath=!0},Oe.closePath=function(){this.path.push(["z"])},Oe.createLinearGradient=function(a,y,b,E){var x=new ko("linear");return x.x1=a,x.y1=y,x.x2=b,x.y2=E,x},Oe.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var b=this.eA;if(b[y])return"url(#"+b[y]+")";var E="PATTERN"+po++,x={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:E,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud($d,x)),this.svg.appendChild(a),b[y]=E,"url(#"+E+")"},Oe.createRadialGradient=function(a,y,b,E,x,z){var ne=new ko("radial");return ne.x1=a,ne.y1=y,ne.r1=b,ne.x2=E,ne.y2=x,ne.r2=z,ne};function Ua(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)}Oe.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,Ua(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')"),Oa(this,$d,z,this.rb),this.addElement($d,z)},Oe.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),ul(this,this.Yl)},Oe.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Oe.fillRect=function(a,y,b,E){a=[a,y,b,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},Oa(this,"fill",a,this.rb),this.addElement("rect",a)},Oe.ox=function(a,y,b,E){a={x:a,y,width:b,height:E},Oa(this,"fill",a,this.rb),ul(this,a),this.svg.prepend(this.Ud("rect",a))},Oe.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},Oa(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Oe.lineTo=function(a,y){this.path.push(["L",a,y])},Oe.moveTo=function(a,y){this.path.push(["M",a,y])},Oe.quadraticCurveTo=function(a,y,b,E){this.path.push(["Q",a,y,b,E])},Oe.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"])},Oe.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},Oe.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())},Oe.setTransform=function(a,y,b,E,x,z){a===1&&y===0&&b===0&&E===1&&x===0&&z===0||fc(this,a,y,b,E,x,z)};function bl(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}Oe.scale=function(a,y){this.rb.scale(a,y)},Oe.translate=function(a,y){this.rb.translate(a,y)},Oe.transform=function(){},Oe.yc=function(){},Oe.stroke=function(){ku(this,this.Yl)},Oe.jk=function(){this.clipInsteadOfFill||this.stroke()},Oe.Ud=function(a,y,b){return this.Gv.Ud(a,y,b)},Oe.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 Oa(a,y,b,E){y==="fill"?ul(a,b):y==="stroke"&&ku(a,b),E!==null&&(a=E.ha,b.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function ul(a,y){a.fillStyle instanceof ko?y.fill=qc(a,a.fillStyle,!0):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.fill="rgb("+a[1]+","+a[2]+","+a[3]+")",y["fill-opacity"]=a[4]):y.fill=a.fillStyle}function vu(a,y,b){b=b?"fill":"stroke",a.fillStyle instanceof ko?y.setAttributeNS(null,"fill",qc(a,a.fillStyle,!0)):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.setAttributeNS(null,b,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,b+"-opacity",a[4])):y.setAttributeNS(null,b,a.fillStyle)}function ku(a,y){if(a.strokeStyle instanceof ko)y.stroke=qc(a,a.strokeStyle,!1);else if(/^rgba\(/.test(a.strokeStyle)){var b=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+b[1]+","+b[2]+","+b[3]+")",y["stroke-opacity"]=b[4]}else y.stroke=a.strokeStyle;y["stroke-width"]=a.lineWidth,y["stroke-linecap"]=a.lineCap,y["stroke-linejoin"]=a.lineJoin,y["stroke-miterlimit"]=a.miterLimit,a.Ct&&(y["stroke-dasharray"]=a.Yg.toString(),y["stroke-dashoffset"]=a.uj)}function qc(a,y,b){var E="";if(E=a.Hl!==null?a.Hl.getAttribute(b?"fill":"stroke"):null,E!==null&&E.indexOf("GRAD")!==-1?(E=E.split("#")[1].slice(0,-1),b=a.svg.getElementById(E),b!==null&&b.remove()):E="GRAD"+po++,y.type==="linear")b=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:E,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")b=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:E});else throw Error("invalid gradient");var x=y.gx;y=x.length;for(var z=[],ne=0;ne<y;ne++){var ie=x[ne],se=ie.color;ie={offset:ie.offset,"stop-color":se},/^rgba\(/.test(se)&&(se=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(se),ie["stop-color"]="rgb("+se[1]+","+se[2]+","+se[3]+")",ie["stop-opacity"]=se[4]),z.push(ie)}for(z.sort(function(de,pe){return de.offset>pe.offset?1:-1}),x=0;x<y;x++)b.appendChild(a.Ud("stop",z[x]));return a.svg.appendChild(b),"url(#"+E+")"}Oe.addPath=function(a,y,b){for(var E=[],x=0;x<a.length;x++){var z=Tn(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,Oa(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var ie in a)ie!=="transform"&&y.setAttributeNS(null,ie,a[ie]);else{ie=y.getElementsByTagName("path");for(var se in a)se!=="transform"&&ie[b].setAttributeNS(null,se,a[se])}else this.addElement("path",a)};function fc(a,y,b,E,x,z,ne){var ie=new vo;ie.ha=[y,b,E,x,z,ne],y={},Oa(a,"g",y,ie),ie=a.addElement("g",y),a.nh.push(ie)}function tc(a,y){var b={};return y&&(b.class=y),y=a.addElement("g",b),a.nh.push(y),y}Oe.Ev=function(a,y,b){this.Ar=a,this.Br=y,this.Vg=b};function Gl(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function Ys(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}Oe.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Oe.fs=function(){this.Ct=!1},Oe.Vc=function(){},Oe.Wx=function(){},jo.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},jo.prototype.getImageData=function(){return null},jo.prototype.measureText=function(){return null};function gd(a,y){y=y.getAttribute("fill"),y!==null&&(y=y.split("#"),y.length!==1&&(y=a.svg.getElementById(y[1].slice(0,-1)),y!==null&&a.svg.innerHTML.match(new RegExp(y.id,"g")).length===1&&y.remove()))}jo.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},jo.className="SVGContext",In.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Po(this,dr.document));var y=new Po(this,dr.document,!0);a===void 0&&(a=new di);var b=this;return Qd(this,function(E,x){return E=tg(b,E,"SVG",y),E=E!==null?E.svg:null,typeof x=="function"?(x(E),null):E},a)},In.prototype.makeSvg=In.prototype.Cs,In.prototype.av=function(a){return this.Cs(a)},In.prototype.makeSVG=In.prototype.av;function cl(a,y,b,E){this.ownerDocument=y=y===void 0?dr.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new $c(y,b,E),y.H=a}cl.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},cl.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},cl.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},cl.prototype.focus=function(){this.Oa.focus()},cl.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},pn.Object.defineProperties(cl.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}}}),cl.className="CanvasSurface";function $c(a,y,b){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&xt("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 Mi,this.isTemporary=!!b}Oe=$c.prototype,Oe.Wx=function(a){this.Z.imageSmoothingEnabled=a},Oe.arc=function(a,y,b,E,x,z){this.Z.arc(a,y,b,E,x,z)},Oe.beginPath=function(){this.Z.beginPath()},Oe.Se=function(){},Oe.bezierCurveTo=function(a,y,b,E,x,z){this.Z.bezierCurveTo(a,y,b,E,x,z)},Oe.clearRect=function(a,y,b,E){this.yc(),this.Z.clearRect(a,y,b,E)},Oe.clip=function(){this.Z.clip()},Oe.closePath=function(){this.Z.closePath()},Oe.createLinearGradient=function(a,y,b,E){return this.Z.createLinearGradient(a,y,b,E)},Oe.createPattern=function(a,y){return this.Z.createPattern(a,y)},Oe.createRadialGradient=function(a,y,b,E,x,z){return this.Z.createRadialGradient(a,y,b,E,x,z)},Oe.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)},Oe.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Oe.fillRect=function(a,y,b,E){this.Z.fillRect(a,y,b,E)},Oe.ox=function(a,y,b,E){this.Z.fillRect(a,y,b,E)},Oe.fillText=function(a,y,b){this.Z.fillText(a,y,b)},Oe.getImageData=function(a,y,b,E){return this.Z.getImageData(a,y,b,E)},Oe.lineTo=function(a,y){this.Z.lineTo(a,y)},Oe.measureText=function(a){return this.Z.measureText(a)},Oe.moveTo=function(a,y){this.Z.moveTo(a,y)},Oe.quadraticCurveTo=function(a,y,b,E){this.Z.quadraticCurveTo(a,y,b,E)},Oe.rect=function(a,y,b,E){this.Z.rect(a,y,b,E)},Oe.restore=function(){this.Z.restore()},Oe.save=function(){this.yc(),this.Z.save()},$c.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Oe=$c.prototype,Oe.setTransform=function(a,y,b,E,x,z){this.El.setTransform(a,y,b,E,x,z)},Oe.scale=function(a,y){this.El.scale(a,y)},Oe.translate=function(a,y){this.El.translate(a,y)},Oe.stroke=function(){this.Z.stroke()},Oe.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}},Oe.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Oe.ng=function(a,y){if(a instanceof Fo&&a.type===pc){var b=a.yk;a=a.ft,a>b?(this.scale(b/a,1),this.translate((a-b)/2,0)):b>a&&(this.scale(1,a/b),this.translate(0,(b-a)/2)),this.Hm?this.clip():this.fill(y),a>b?(this.translate(-(a-b)/2,0),this.scale(1/(b/a),1)):b>a&&(this.translate(0,-(b-a)/2),this.scale(1,1/(a/b)))}else this.Hm?this.clip():this.fill(y)},Oe.jk=function(){this.Hm||this.stroke()},Oe.Ev=function(a,y,b){this.Ar=a,this.Br=y,this.Vg=b},Oe.js=function(a,y){var b=this.Z;b.setLineDash!==void 0&&(b.setLineDash(a),b.lineDashOffset=y)},Oe.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash($h),a.lineDashOffset=0)},Oe.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Oe.Hs=function(){},pn.Object.defineProperties($c.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var $h=Object.freeze([]);$c.className="CanvasSurfaceContext";function ed(){this.F=this.o=this.u=this.j=0}ed.className="ColorNumbers";function Fo(a,y){sg||(ag(),sg=!0),Ei(this),this._isFrozen=!1,a===void 0?(this.na=Ch,this.xk="black"):typeof a=="string"?(this.na=Ch,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===nh?(this.Qd=Mo,this.Lk=ca):this.Lk=a===pc?this.Qd=qi:this.Qd=Ji,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}Fo.prototype.copy=function(){var a=new Fo;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},Oe=Fo.prototype,Oe.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Oe.ka=function(){return Object.isFrozen(this)&&xt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Oe.qb=function(a){a.classType===Fo&&(this.type=a)},Oe.toString=function(){var a="Brush(";if(this.type===Ch)a+=this.color;else if(a=this.type===nh?a+"Linear ":this.type===pc?a+"Radial ":this.type===lg?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},Oe.addColorStop=function(a,y){return this._isFrozen&&on(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&br(a,"0 <= loc <= 1",Fo,"addColorStop:loc"),this.we===null&&(this.we=new Ln),this.we.add(a,y),this.na===Ch&&(this.type=nh),this.xe=null,this},Oe.Vz=function(a,y){if(this._isFrozen&&on(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?ug:y,this.type===Ch)nc(this.color),this.color=th(a,y);else if((this.type===nh||this.type===pc)&&this.colorStops!==null)for(var b=this.colorStops.iterator;b.next();)nc(b.value),this.addColorStop(b.key,th(a,y));return this};function wh(a,y,b){return y=y===void 0||typeof y!="number"?.2:y,b=b===void 0?ug:b,nc(a),th(y,b)}Oe.Wy=function(a,y){if(this._isFrozen&&on(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?ug:y,this.type===Ch)nc(this.color),this.color=th(-a,y);else if((this.type===nh||this.type===pc)&&this.colorStops!==null)for(var b=this.colorStops.iterator;b.next();)nc(b.value),this.addColorStop(b.key,th(-a,y));return this};function Cp(a,y,b){return y=y===void 0||typeof y!="number"?.2:y,b=b===void 0?ug:b,nc(a),th(-y,b)}function td(a,y,b){nc(a),a=la.j;var E=la.u,x=la.o,z=la.F;return nc(y),b===void 0&&(b=.5),"rgba("+Math.round((la.j-a)*b+a)+", "+Math.round((la.u-E)*b+E)+", "+Math.round((la.o-x)*b+x)+", "+Math.round((la.F-z)*b+z)+")"}Oe.Gx=function(){if(this.type===Ch)return Id(this.color);if((this.type===nh||this.type===pc)&&this.colorStops!==null){var a=this.colorStops;if(this.type===pc)return Id(a.first().value);if(a.get(.5)!==null)return Id(a.get(.5));if(a.count===2)return a=a.Fa(),Id(td(a[0].value,a[1].value));for(var y=a.iterator,b=-1,E=-1,x=1,z=1;y.next();){var ne=y.key,ie=Math.abs(.5-y.key);x>z&&ie<x?(b=ne,x=ie):z>=x&&ie<z&&(E=ne,z=ie)}return b>E&&(z=b,b=E,E=z,z=x),x=E-b,Id(td(a.get(b),a.get(E),1-z/x))}return!1};function Id(a){return a?a instanceof Fo?a.Gx():(nc(a),128>(299*la.j+587*la.u+114*la.o)/1e3):!1}function th(a,y){switch(y){case ug:y=100*_f(la.j);var b=100*_f(la.u),E=100*_f(la.o);return tl.j=.4124564*y+.3575761*b+.1804375*E,tl.u=.2126729*y+.7151522*b+.072175*E,tl.o=.0193339*y+.119192*b+.9503041*E,tl.F=la.F,y=Vg(tl.j/nf[0]),b=Vg(tl.u/nf[1]),E=Vg(tl.o/nf[2]),Cc.j=116*b-16,Cc.u=500*(y-b),Cc.o=200*(b-E),Cc.F=tl.F,Cc.j=Math.min(100,Math.max(0,Cc.j+100*a)),a=(Cc.j+16)/116,y=a-Cc.o/200,tl.j=nf[0]*Pp(Cc.u/500+a),tl.u=nf[1]*(Cc.j>tf*Tp?Math.pow(a,3):Cc.j/tf),tl.o=nf[2]*Pp(y),tl.F=Cc.F,a=-.969266*tl.j+1.8760108*tl.u+.041556*tl.o,y=.0556434*tl.j+-.2040259*tl.u+1.0572252*tl.o,la.j=255*og((3.2404542*tl.j+-1.5371385*tl.u+-.4985314*tl.o)/100),la.u=255*og(a/100),la.o=255*og(y/100),la.F=tl.F,la.j=Math.round(la.j),255<la.j?la.j=255:0>la.j&&(la.j=0),la.u=Math.round(la.u),255<la.u?la.u=255:0>la.u&&(la.u=0),la.o=Math.round(la.o),255<la.o?la.o=255:0>la.o&&(la.o=0),"rgba("+la.j+", "+la.u+", "+la.o+", "+la.F+")";case lS:return Bf(),Iu.o=Math.min(100,Math.max(0,Iu.o+100*a)),"hsla("+Iu.j+", "+Iu.u+"%, "+Iu.o+"%, "+Iu.F+")";default:xt("Unknown color space: "+y)}}function nc(a){sg||(ag(),sg=!0);var y=Ap;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var b=y.fillStyle;y.fillStyle=a,y.fillStyle!==b?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,la.j=a[0],la.u=a[1],la.o=a[2],la.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,la.j=0,la.u=0,la.o=0,la.F=1)}}function Bf(){var a=la.j/255,y=la.u/255,b=la.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))}Iu.j=Math.round(ne),Iu.u=Math.round(100*a),Iu.o=Math.round(100*x),Iu.F=la.F}function _f(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function og(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function Vg(a){return a>Tp?Math.pow(a,1/3):(tf*a+16)/116}function Pp(a){var y=a*a*a;return y>Tp?y:(116*a-16)/tf}function ef(a,y){typeof a!="string"&&(a instanceof Fo||xt("Value for "+y+" must be a color string or a Brush, not "+a))}function ag(){Ap=Ra?new cl(null,void 0,{willReadFrequently:!0}).context:null}pn.Object.defineProperties(Fo.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&on(this,a),this.na=a,this.start.Mc()&&(a===nh?this.start=Mo:a===pc&&(this.start=qi)),this.end.Mc()&&(a===nh?this.end=ca:a===pc&&(this.end=qi)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&on(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&on(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&on(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&on(this,a),0>a&&br(a,">= zero",Fo,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&on(this,a),0>a&&br(a,">= zero",Fo,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&on(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&on(this,a),this.cr=a,this.xe=null}}}),Fo.prototype.isDark=Fo.prototype.Gx,Fo.prototype.darkenBy=Fo.prototype.Wy,Fo.prototype.lightenBy=Fo.prototype.Vz,Fo.prototype.addColorStop=Fo.prototype.addColorStop;var Tp=216/24389,tf=24389/27,nf=[95.047,100,108.883],Ap=null,la=new ed,Iu=new ed,tl=new ed,Cc=new ed,sg=!1;Fo.className="Brush";var Ch;Fo.Solid=Ch=new Qn(Fo,"Solid",0);var nh;Fo.Linear=nh=new Qn(Fo,"Linear",1);var pc;Fo.Radial=pc=new Qn(Fo,"Radial",2);var lg;Fo.Pattern=lg=new Qn(Fo,"Pattern",4);var ug;Fo.Lab=ug=new Qn(Fo,"Lab",5);var lS;Fo.HSL=lS=new Qn(Fo,"HSL",6),Fo.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var b=Math.abs(y-a);y=Math.floor(a+Math.random()*b).toString(16);var E=Math.floor(a+Math.random()*b).toString(16);return a=Math.floor(a+Math.random()*b).toString(16),2>y.length&&(y="0"+y),2>E.length&&(E="0"+E),2>a.length&&(a="0"+a),"#"+y+E+a},Fo.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;sg||(ag(),sg=!0);var y=Ap;if(y===null)return!0;y.fillStyle="#000000";var b=y.fillStyle;return y.fillStyle=a,y.fillStyle!==b?!0:(y.fillStyle="#FFFFFF",b=y.fillStyle,y.fillStyle=a,y.fillStyle!==b)},Fo.lighten=function(a){return wh(a)},Fo.lightenBy=wh,Fo.darken=function(a){return Cp(a)},Fo.darkenBy=Cp,Fo.mix=td,Fo.isDark=Id;function Ns(){this.xa="Base"}Ns.prototype.measure=function(){},Ns.prototype.Yz=function(a,y,b,E,x){a.measure(y,b,E,x)},Ns.prototype.arrange=function(){},Ns.prototype.Ly=function(a,y,b,E,x,z){a.arrange(y,b,E,x,z)},Ns.prototype.iA=function(a){a.Uj()},Ns.prototype.gc=function(){},pn.Object.defineProperties(Ns.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Tr}}}),Ns.prototype.remeasureObject=Ns.prototype.iA,Ns.prototype.arrangeElement=Ns.prototype.Ly,Ns.prototype.measureElement=Ns.prototype.Yz,Ns.className="PanelLayout";function Hm(){this.xa="Base"}Cn(Hm,Ns),Hm.prototype.measure=function(a,y,b,E,x,z,ne){var ie=E.length;a=rh(a);for(var se=0;se<ie;se++){var de=E[se];if(de.visible||de===a){var pe=de.margin,Se=pe.right+pe.left;pe=pe.top+pe.bottom,de.measure(y,b,z,ne);var Ne=de.measuredBounds;Se=Math.max(Ne.width+Se,0),pe=Math.max(Ne.height+pe,0),Ne=de.position.x;var Me=de.position.y;isFinite(Ne)||(Ne=0),isFinite(Me)||(Me=0),de instanceof oo&&de.isGeometryPositioned&&(de=de.strokeWidth/2,Ne-=de,Me-=de),yo(x,Ne,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"}Cn(zm,Ns),zm.prototype.measure=function(a,y,b,E,x,z,ne){var ie=E.length;y=Nr(),z=rh(a);for(var se=0;se<ie;se++){var de=E[se];if(de.visible||de===z){var pe=zl(de,!1);if(pe!==mr&&pe!==wi)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));jr(y)},zm.prototype.arrange=function(a,y,b){for(var E=y.length,x=a.padding,z=x.top,ne=a.isOpposite,ie=ne?b.width:x.left,se=0;se<E;se++){var de=z,pe=y[se];if(pe.visible){var Se=pe.measuredBounds,Ne=pe.margin,Me=Ne.top+Ne.bottom,ze=z+x.bottom,qe=Se.height,Pt=zl(pe,!1);(isNaN(pe.desiredSize.height)&&Pt===wr||Pt===Di)&&(qe=Math.max(b.height-Me-ze,0)),Me=qe+Me+ze,ze=pe.alignment,ze.Xb()&&(ze=a.defaultAlignment),ze.sb()||(ze=qi),ne&&(ie-=Se.width+Ne.left+Ne.right),pe.arrange(ie+ze.offsetX+Ne.left,de+ze.offsetY+Ne.top+(b.height*ze.y-Me*ze.y),Se.width,qe),ne||(ie+=Se.width+Ne.left+Ne.right)}}};function Gm(){this.xa="Base"}Cn(Gm,Ns),Gm.prototype.measure=function(a,y,b,E,x,z){var ne=E.length;b=Nr();for(var ie=rh(a),se=0;se<ne;se++){var de=E[se];if(de.visible||de===ie){var pe=zl(de,!1);if(pe!==mr&&pe!==Di)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,bo(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);jr(b)}},Gm.prototype.arrange=function(a,y,b){for(var E=y.length,x=a.padding,z=x.left,ne=a.isOpposite,ie=ne?b.height:x.top,se=0;se<E;se++){var de=z,pe=y[se];if(pe.visible){var Se=pe.measuredBounds,Ne=pe.margin,Me=Ne.left+Ne.right,ze=z+x.right,qe=Se.width,Pt=zl(pe,!1);(isNaN(pe.desiredSize.width)&&Pt===wr||Pt===wi)&&(qe=Math.max(b.width-Me-ze,0)),Me=qe+Me+ze,ze=pe.alignment,ze.Xb()&&(ze=a.defaultAlignment),ze.sb()||(ze=qi),ne&&(ie-=Se.height+Ne.bottom+Ne.top),pe.arrange(de+ze.offsetX+Ne.left+(b.width*ze.x-Me*ze.x),ie+ze.offsetY+Ne.top,qe,Se.height),ne||(ie+=Se.height+Ne.bottom+Ne.top)}}};function jm(){this.xa="Base"}Cn(jm,Ns),jm.prototype.measure=function(a,y,b,E,x,z,ne){var ie=E.length,se=a.Pb(),de=se.margin,pe=de.right+de.left,Se=de.top+de.bottom;se.measure(y,b,z,ne);var Ne=se.measuredBounds;z=Ne.width,ne=Ne.height;var Me=Math.max(z+pe,0),ze=Math.max(ne+Se,0),qe=a.isClipping,Pt=kn.allocAt(-de.left,-de.top,Me,ze),yt=kn.allocAt(0,0,z,ne);Tv(se,yt,!0),z=yt.width,ne=yt.height;for(var Rt=!0,Bt=rh(a),Gt=0;Gt<ie;Gt++){var $t=E[Gt];Ne=y;var Dn=b;if($t!==se&&($t.visible||$t===Bt)){de=$t.margin;var Qr=de.left,gi=de.top;switch(Me=de.right+de.left,ze=de.top+de.bottom,de=zl($t,!1),de){case wr:Ne=z,Dn=ne,gi=Qr=ze=Me=0;break;case wi:Ne=z,Qr=Me=0;break;case Di:Dn=ne,gi=ze=0}$t.measure(Ne,Dn,0,0),Ne=$t.measuredBounds,Me=Math.max(Ne.width+Me,0),ze=Math.max(Ne.height+ze,0),de=$t.alignment,de.Xb()&&(de=a.defaultAlignment),de.sb()||(de=qi);var ui=$t.alignmentFocus;if(ui.Xb()&&(ui=qi),Dn=null,$t instanceof Tr&&$t.$e!==""&&(Dn=$t.fb($t.$e),Dn===$t&&(Dn=null)),Qr=yt.x-Qr,gi=yt.y-gi,Dn!==null){for($t.arrange(0,0,Ne.width,Ne.height),Ne=Dn.actualBounds,Ne=rt.allocAt(Ne.x+(ui.x*Ne.width-ui.offsetX),Ne.y+(ui.y*Ne.height-ui.offsetY)),Dn=Dn.panel;Dn!==$t;)Dn.transform.Ga(Ne),Dn=Dn.panel;Qr+=de.x*z+de.offsetX-Ne.x,gi+=de.y*ne+de.offsetY-Ne.y,rt.free(Ne)}else Qr+=de.x*z+de.offsetX-(ui.x*Ne.width+ui.offsetX),gi+=de.y*ne+de.offsetY-(ui.y*Ne.height+ui.offsetY);Rt?(Rt=!1,x.h(Qr,gi,Me,ze)):yo(x,Qr,gi,Me,ze)}}switch(Rt?x.assign(Pt):qe?x.Uu(yt.x,yt.y,yt.width,yt.height):yo(x,Pt.x,Pt.y,Pt.width,Pt.height),kn.free(Pt),kn.free(yt),de=se.stretch,de===$i&&(de=zl(se,!1)),de){case mr:return;case wr:if(!isFinite(y)&&!isFinite(b))return;break;case wi:if(!isFinite(y))return;break;case Di:if(!isFinite(b))return}for(Ne=se.measuredBounds,z=Ne.width,ne=Ne.height,Me=Math.max(z+pe,0),ze=Math.max(ne+Se,0),de=se.margin,yt=kn.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!==Bt||(de=b.margin,Me=de.right+de.left,ze=de.top+de.bottom,Ne=b.measuredBounds,Me=Math.max(Ne.width+Me,0),ze=Math.max(Ne.height+ze,0),pe=b.alignment,pe.Xb()&&(pe=a.defaultAlignment),pe.sb()||(pe=qi),b=b.alignmentFocus,b.Xb()&&(b=qi),Rt?(Rt=!1,x.h(pe.x*z+pe.offsetX-(b.x*Ne.width+b.offsetX)-de.left,pe.y*ne+pe.offsetY-(b.y*Ne.height+b.offsetY)-de.top,Me,ze)):yo(x,pe.x*z+pe.offsetX-(b.x*Ne.width+b.offsetX)-de.left,pe.y*ne+pe.offsetY-(b.y*Ne.height+b.offsetY)-de.top,Me,ze));Rt?x.assign(Pt):qe?x.Uu(yt.x,yt.y,yt.width,yt.height):yo(x,Pt.x,Pt.y,Pt.width,Pt.height),kn.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=kn.allocAt(0,0,ne,ie),Tv(x,ne,!1),ie=0;ie<E;ie++){var Se=y[ie];if(Se!==x){de=Se.measuredBounds;var Ne=de.width,Me=de.height;pe=Se.alignment,pe.Xb()&&(pe=a.defaultAlignment),pe.sb()||(pe=qi);var ze=Se.alignmentFocus;if(ze.Xb()&&(ze=qi),de=null,Se instanceof Tr&&Se.$e!==""&&(de=Se.fb(Se.$e),de===Se&&(de=null)),de!==null){var qe=de.actualBounds;for(ze=rt.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,rt.free(ze)}else de=pe.x*ne.width+pe.offsetX-(ze.x*Ne+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,Ne,Me)}}kn.free(ne)};function Tv(a,y,b){var E=null;if(a instanceof Tr&&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"}Cn(Vm,Ns),Vm.prototype.measure=function(a,y,b,E,x,z,ne){var ie=E.length,se=a.Pb(),de=se.margin,pe=y,Se=b,Ne=de.right+de.left,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 Pt=Math.max(de.width+Ne,0);de=Math.max(de.height+Me,0);var yt=kv(se),Rt=yt.x*Pt+yt.offsetX;yt=yt.y*de+yt.offsetY;var Bt=Iv(se),Gt=Bt.x*Pt+Bt.offsetX;for(Bt=Bt.y*de+Bt.offsetY,isFinite(y)&&(pe=Math.max(Math.abs(Rt-Gt)-ze,0)),isFinite(b)&&(Se=Math.max(Math.abs(yt-Bt)-ze,0)),ze=ln.alloc(),ze.h(0,0),a=rh(a),Bt=0;Bt<ie;Bt++)yt=E[Bt],yt===se||!yt.visible&&yt!==a||(de=yt.margin,Pt=de.right+de.left,Rt=de.top+de.bottom,yt.measure(pe,Se,0,0),de=yt.measuredBounds,Pt=Math.max(de.width+Pt,0),de=Math.max(de.height+Rt,0),ze.h(Math.max(Pt,ze.width),Math.max(de,ze.height)));if(ie===1)x.width=Pt,x.height=de,ln.free(ze);else{switch(yt=kv(se),Bt=Iv(se),ie=E=0,Bt.x!==yt.x&&Bt.y!==yt.y&&(E=ze.width/Math.abs(Bt.x-yt.x),ie=ze.height/Math.abs(Bt.y-yt.y)),ln.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(Bt.offsetX)+ze,ie+=Math.abs(yt.offsetY)+Math.abs(Bt.offsetY)+ze,qe=se.stretch,qe===$i&&(qe=zl(se,!1)),qe){case mr:ne=z=0;break;case wr:isFinite(y)&&(E=y),isFinite(b)&&(ie=b);break;case wi:isFinite(y)&&(E=y),ne=0;break;case Di:z=0,isFinite(b)&&(ie=b)}se.Uj(),se.measure(E,ie,z,ne),x.width=se.measuredBounds.width+Ne,x.height=se.measuredBounds.height+Me}},Vm.prototype.arrange=function(a,y){var b=y.length,E=a.Pb(),x=E.measuredBounds,z=kn.alloc();z.h(0,0,1,1);var ne=E.margin,ie=ne.left;ne=ne.top;var se=a.padding,de=se.left;se=se.top,E.arrange(de+ie,se+ne,x.width,x.height);var pe=kv(E),Se=Iv(E),Ne=pe.y*x.height+pe.offsetY,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=Ne,yo(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),Ne=ie.alignment,Ne.Xb()&&(Ne=a.defaultAlignment),Ne.sb()||(Ne=qi),se=z.width*Ne.x+Ne.offsetX-se*Ne.x+ne.left+z.x,ne=z.height*Ne.y+Ne.offsetY-pe*Ne.y+ne.top+z.y,ie.visible&&(ia(z.x,z.y,z.width,z.height,se,ne,de.width,de.height)?ie.arrange(se,ne,de.width,de.height):ie.arrange(se,ne,de.width,de.height,new kn(z.x,z.y,z.width,z.height))));kn.free(z)};function Wm(){this.xa="Base",this.name="Table"}Cn(Wm,Ns),Wm.prototype.measure=function(a,y,b,E,x){for(var z=E.length,ne=Nr(),ie=Nr(),se=0;se<z;se++){var de=E[se],pe=de instanceof Tr?de:null;if(pe!==null&&Ph(pe)&&de.visible){ie.push(pe);for(var Se=pe.O.s,Ne=Se.length,Me=0;Me<Ne;Me++){var ze=Se[Me];pe.type===Tr.TableRow?ze.row=de.row:pe.type===Tr.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=[],Pt=0;Pt<z;Pt++){var yt=ne[Pt];yt.visible&&(At(yt,!0),Kt(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))}jr(ne);var Rt=Nr(),Bt=Nr(),Gt=Nr(),$t={count:0},Dn={count:0},Qr=y,gi=b,ui=a.rowDefs,Dr=a.colDefs,hr=null;z=ui.length;for(var eo=0;eo<z;eo++)hr=ui[eo],hr!==void 0&&(hr.actual=0);z=Dr.length;for(var zi=0;zi<z;zi++)hr=Dr[zi],hr!==void 0&&(hr.actual=0);for(var Ho=qe.length,fa=0,Bs=0;Bs<Ho;Bs++)qe[Bs]&&(fa=Math.max(fa,qe[Bs].length));var Gs=Math.min(a.topIndex,Ho-1),jl=Math.min(a.leftIndex,fa-1),_s=0;Ho=qe.length;for(var Oh=rh(a),us=0;us<Ho;us++)if(qe[us]){fa=qe[us].length;var ad=a.Fb(us);ad.actual=0;for(var Vl=ad.oc=0;Vl<fa;Vl++)if(qe[us][Vl]){var Fh=a.Eb(Vl);Rt[Vl]===void 0&&(Fh.actual=0,Fh.oc=0,Rt[Vl]=!0);for(var oc=qe[us][Vl],Nc=oc.length,Vu=0;Vu<Nc;Vu++){var Ru=oc[Vu];if(Ru.visible||Ru===Oh){var vf=1<Ru.rowSpan||1<Ru.columnSpan;vf&&(us<Gs||Vl<jl||Bt.push(Ru));var sd=Ru.margin,Dg=sd.right+sd.left,Wu=sd.top+sd.bottom,Wl=wc(Ru,ad,Fh,!1),Im=Ru.desiredSize,Up=!isNaN(Im.height),yd=!isNaN(Im.width)&&Up;if(vf||Wl===mr||yd||us<Gs||Vl<jl||($t[Vl]!==void 0||Wl!==wr&&Wl!==wi||($t[Vl]=-1,$t.count++),Dn[us]!==void 0||Wl!==wr&&Wl!==Di||(Dn[us]=-1,Dn.count++),Gt.push(Ru)),Ru.measure(1/0,1/0,0,0),!(us<Gs||Vl<jl)){var Mu=Ru.measuredBounds,Kf=Math.max(Mu.width+Dg,0),Zu=Math.max(Mu.height+Wu,0);if(Ru.rowSpan===1&&(Wl===mr||Wl===wi)){hr=a.Fb(us);var yf=hr.Wc();_s=Math.max(Zu-hr.actual,0),_s+yf>gi&&(_s=Math.max(gi-yf,0));var pv=hr.oa===0;hr.oc=hr.oc+_s,hr.actual=hr.oa+_s,gi=Math.max(gi-(_s+(pv?yf:0)),0)}if(Ru.columnSpan===1&&(Wl===mr||Wl===Di)){hr=a.Eb(Vl);var Dm=hr.Wc();_s=Math.max(Kf-hr.actual,0),_s+Dm>Qr&&(_s=Math.max(Qr-Dm,0));var $y=hr.oa===0;hr.oc=hr.oc+_s,hr.actual=hr.oa+_s,Qr=Math.max(Qr-(_s+($y?Dm:0)),0)}vf&&Ru.Uj()}}}}}jr(Rt);var Hd=0,ah=0;z=a.columnCount;for(var Hp=0;Hp<z;Hp++){var Sf=Dr[Hp];Sf!==void 0&&(Hd+=isNaN(Sf.Hc)?Sf.oc:Sf.Hc,Sf.oc!==0&&(Hd+=Sf.Wc()))}z=a.rowCount;for(var Rg=0;Rg<z;Rg++){var bf=ui[Rg];bf!==void 0&&(ah+=isNaN(bf.Hc)?bf.oc:bf.Hc,bf.oc!==0&&(ah+=bf.Wc()))}Qr=Math.max(y-Hd,0);var zd=gi=Math.max(b-ah,0),Bh=Qr;z=Gt.length;for(var Ou=0;Ou<z;Ou++){var Sd=Gt[Ou],gv=a.Fb(Sd.row),sh=a.Eb(Sd.column),Mg=Sd.measuredBounds,ld=Sd.margin,Yf=ld.right+ld.left,bd=ld.top+ld.bottom;$t[Sd.column]=sh.oc===0&&$t[Sd.column]!==void 0?Math.max(Mg.width+Yf,$t[Sd.column]):null,Dn[Sd.row]=gv.oc===0&&Dn[Sd.row]!==void 0?Math.max(Mg.height+bd,Dn[Sd.row]):null}var zp=0,Og=0,Gc;for(Gc in Dn)Gc!=="count"&&(zp+=Dn[Gc]);for(Gc in $t)Gc!=="count"&&(Og+=$t[Gc]);for(var rl=ln.alloc(),Rm=0;Rm<z;Rm++){var ou=Gt[Rm];if(ou.visible||ou===Oh){var cs=a.Fb(ou.row),au=a.Eb(ou.column),lh=0;isFinite(au.width)?lh=au.width:(isFinite(Qr)&&$t[ou.column]!==null?Og===0?lh=au.actual+Qr:lh=$t[ou.column]/Og*Bh:$t[ou.column]!==null?lh=Qr:lh=au.actual||Qr,lh=Math.max(0,lh-au.Wc()));var _h=0;switch(isFinite(cs.height)?_h=cs.height:(isFinite(gi)&&Dn[ou.row]!==null?zp===0?_h=cs.actual+gi:_h=Dn[ou.row]/zp*zd:Dn[ou.row]!==null?_h=gi:_h=cs.actual||gi,_h=Math.max(0,_h-cs.Wc())),rl.h(Math.max(au.minimum,Math.min(lh,au.maximum)),Math.max(cs.minimum,Math.min(_h,cs.maximum))),Wl=wc(ou,cs,au,!1),Wl){case wi:rl.height=Math.max(rl.height,cs.actual+gi);break;case Di:rl.width=Math.max(rl.width,au.actual+Qr)}var Xf=ou.margin,eS=Xf.right+Xf.left,mv=Xf.top+Xf.bottom;ou.Uj(),ou.measure(rl.width,rl.height,au.minimum,cs.minimum);var Fg=ou.measuredBounds,Qf=Math.max(Fg.width+eS,0),Gp=Math.max(Fg.height+mv,0);isFinite(Qr)&&(Qf=Math.min(Qf,rl.width)),isFinite(gi)&&(Gp=Math.min(Gp,rl.height));var Fu=0;Fu=cs.actual,cs.actual=Math.max(cs.actual,Gp),cs.oc=Math.max(cs.oc,Gp),_s=cs.actual-Fu,gi=Math.max(gi-_s,0),Dn[ou.row]===null&&(zd=Math.max(zd-_s,0)),Fu=au.actual,au.actual=Math.max(au.actual,Qf),au.oc=Math.max(au.oc,Qf),_s=au.actual-Fu,Qr=Math.max(Qr-_s,0),$t[ou.column]===null&&(Bh=Math.max(Bh-_s,0))}}jr(Gt);var uh=ln.alloc(),ud=Nr(),Sc=Nr();if(z=Bt.length,z!==0){for(var Ef=0;Ef<Ho;Ef++)if(qe[Ef]){fa=qe[Ef].length;var Bg=a.Fb(Ef);ud[Ef]=Bg.actual;for(var xf=0;xf<fa;xf++)if(qe[Ef][xf]){var vv=a.Eb(xf);Sc[xf]=vv.actual}}}for(var _g=0;_g<z;_g++){var $a=Bt[_g];if($a.visible||$a===Oh){var jc=a.Fb($a.row),Lc=a.Eb($a.column);switch(rl.h(Math.max(Lc.minimum,Math.min(y,Lc.maximum)),Math.max(jc.minimum,Math.min(b,jc.maximum))),Wl=wc($a,jc,Lc,!1),Wl){case wr:Sc[Lc.index]!==0&&(rl.width=Math.min(rl.width,Sc[Lc.index])),ud[jc.index]!==0&&(rl.height=Math.min(rl.height,ud[jc.index]));break;case wi:Sc[Lc.index]!==0&&(rl.width=Math.min(rl.width,Sc[Lc.index]));break;case Di:ud[jc.index]!==0&&(rl.height=Math.min(rl.height,ud[jc.index]))}isFinite(Lc.width)&&(rl.width=Lc.width),isFinite(jc.height)&&(rl.height=jc.height),uh.h(0,0);for(var yv=Lc.minimum,Ku=jc.minimum,Uh=1;Uh<$a.rowSpan&&!($a.row+Uh>=a.rowCount);Uh++)hr=a.Fb($a.row+Uh),_s=0,_s=Wl===wr||Wl===Di?Math.max(hr.minimum,ud[$a.row+Uh]===0?hr.maximum:Math.min(ud[$a.row+Uh],hr.maximum)):Math.max(hr.minimum,isNaN(hr.Hc)?hr.maximum:Math.min(hr.Hc,hr.maximum)),uh.height+=_s,Ku+=hr.minimum;for(var kc=1;kc<$a.columnSpan&&!($a.column+kc>=a.columnCount);kc++)hr=a.Eb($a.column+kc),_s=0,_s=Wl===wr||Wl===wi?Math.max(hr.minimum,Sc[$a.column+kc]===0?hr.maximum:Math.min(Sc[$a.column+kc],hr.maximum)):Math.max(hr.minimum,isNaN(hr.Hc)?hr.maximum:Math.min(hr.Hc,hr.maximum)),uh.width+=_s,yv+=hr.minimum;rl.width+=uh.width,rl.height+=uh.height;var Ug=$a.margin,wf=Ug.right+Ug.left,Mm=Ug.top+Ug.bottom;$a.measure(rl.width,rl.height,yv,Ku);for(var Hg=$a.measuredBounds,Ed=Math.max(Hg.width+wf,0),Jf=Math.max(Hg.height+Mm,0),Cf=0,zg=0;zg<$a.rowSpan&&!($a.row+zg>=a.rowCount);zg++)hr=a.Fb($a.row+zg),Cf+=hr.total||0;if(Cf<Jf){var Hh=Jf-Cf,Gd=Jf-Cf;if($a.spanAllocation!==null)for(var zh=$a.spanAllocation,ch=0;ch<$a.rowSpan&&!(0>=Hh)&&!($a.row+ch>=a.rowCount);ch++){hr=a.Fb($a.row+ch);var Gh=hr.oa||0,qf=zh($a,hr,Gd);hr.actual=Math.min(hr.maximum,Gh+qf),hr.oa!==Gh&&(Hh-=hr.oa-Gh)}for(;0<Hh;){var cd=hr.oa||0;if(isNaN(hr.height)&&hr.maximum>cd&&(hr.actual=Math.min(hr.maximum,cd+Hh),hr.oa!==cd&&(Hh-=hr.oa-cd)),hr.index===0)break;hr=a.Fb(hr.index-1)}}for(var jp=0,jh=0;jh<$a.columnSpan&&!($a.column+jh>=a.columnCount);jh++)hr=a.Eb($a.column+jh),jp+=hr.total||0;if(jp<Ed){var Vp=Ed-jp,tS=Ed-jp;if($a.spanAllocation!==null)for(var dh=$a.spanAllocation,$f=0;$f<$a.columnSpan&&!(0>=Vp)&&!($a.column+$f>=a.columnCount);$f++){hr=a.Eb($a.column+$f);var Om=hr.oa||0,nS=dh($a,hr,tS);hr.actual=Math.min(hr.maximum,Om+nS),hr.oa!==Om&&(Vp-=hr.oa-Om)}for(;0<Vp;){var Sv=hr.oa||0;if(isNaN(hr.width)&&hr.maximum>Sv&&(hr.actual=Math.min(hr.maximum,Sv+Vp),hr.oa!==Sv&&(Vp-=hr.oa-Sv)),hr.index===0)break;hr=a.Eb(hr.index-1)}}}}jr(Bt),ln.free(uh),ln.free(rl),ud!==void 0&&jr(ud),Sc!==void 0&&jr(Sc);var Wp=0,Zp=0,bv=a.desiredSize,eE=a.maxSize;Wl=zl(a,!0);var Fm=ah=Hd=0,Bm=0;z=a.columnCount;for(var Ev=0;Ev<z;Ev++)Dr[Ev]!==void 0&&(hr=a.Eb(Ev),isFinite(hr.width)?(Fm+=hr.width,Fm+=hr.Wc()):t0(hr)===Yg?(Fm+=hr.oa,Fm+=hr.Wc()):hr.oa!==0&&(Hd+=hr.oa,Hd+=hr.Wc()));isFinite(bv.width)?Wp=Math.min(bv.width,eE.width):Wp=Wl!==mr&&isFinite(y)?y:Hd,Wp=Math.max(Wp,a.minSize.width),Wp=Math.max(Wp-Fm,0);for(var HE=Hd===0?1:Math.max(Wp/Hd,1),xv=0;xv<z;xv++)Dr[xv]!==void 0&&(hr=a.Eb(xv),isFinite(hr.width)||t0(hr)===Yg||(hr.actual=hr.oa*HE),hr.position=x.width,hr.oa!==0&&(x.width+=hr.oa,x.width+=hr.Wc()));z=a.rowCount;for(var wv=0;wv<z;wv++)ui[wv]!==void 0&&(hr=a.Fb(wv),isFinite(hr.height)?(Bm+=hr.height,Bm+=hr.Wc()):t0(hr)===Yg?(Bm+=hr.oa,Bm+=hr.Wc()):hr.oa!==0&&(ah+=hr.oa,ah+=hr.Wc()));isFinite(bv.height)?Zp=Math.min(bv.height,eE.height):Zp=Wl!==mr&&isFinite(b)?b:ah,Zp=Math.max(Zp,a.minSize.height),Zp=Math.max(Zp-Bm,0);for(var zE=ah===0?1:Math.max(Zp/ah,1),Cv=0;Cv<z;Cv++)ui[Cv]!==void 0&&(hr=a.Fb(Cv),isFinite(hr.height)||t0(hr)===Yg||(hr.actual=hr.oa*zE),hr.position=x.height,hr.oa!==0&&(x.height+=hr.oa,x.height+=hr.Wc()));z=ie.length;for(var rS=0;rS<z;rS++){var _m=ie[rS],iS=0,oS=0;_m.type===Tr.TableRow?(iS=x.width,hr=a.Fb(_m.row),oS=hr.actual):(hr=a.Eb(_m.column),iS=hr.actual,oS=x.height),_m.measuredBounds.h(0,0,iS,oS),At(_m,!1)}jr(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 Ne=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),Ne=-ie[ze].position}for(var qe=0,Pt=0;qe!==de&&se[qe]===void 0;)qe++;for(;Pt!==de&&ie[Pt]===void 0;)Pt++;pe=a.part,a.Fb(qe),a.Eb(Pt);for(var yt=0;yt<y.length;yt++){var Rt=y[yt];if(Rt instanceof Tr&&Rt.visible&&Ph(Rt)){if(Rt.type===Tr.TableRow){ie=a.Fb(Rt.row);var Bt=a.Eb(Pt)}else ie=a.Fb(qe),Bt=a.Eb(Rt.column);se=ie.position+Se+x,ie.oa!==0&&(se+=ie.Io(Math.max(qe,Me))),ie=Bt.position+Ne+z,Bt.oa!==0&&(ie+=Bt.Io(Math.max(Pt,ze))),Bt=Rt.measuredBounds,Rt.Uk(),Rt.actualBounds.ka();var Gt=Rt.actualBounds,$t=kn.allocAt(Gt.x,Gt.y,Gt.width,Gt.height);Gt.x=Rt.type===Tr.TableRow?z:ie,Gt.y=Rt.type===Tr.TableColumn?x:se,Gt.width=Bt.width,Gt.height=Bt.height,Rt.actualBounds.freeze(),Kt(Rt,!1),so($t,Gt)||pe===null||(pe.oh(),Rt.Pn(pe)),kn.free($t)}}for(yt=ln.alloc(),Rt=0;Rt<de;Rt++)if(ne[Rt]){for(pe=ne[Rt].length,Bt=a.Fb(Rt),se=Bt.position+Se+x,Bt.oa!==0&&(se+=Bt.Io(Math.max(qe,Me))),Gt=0;Gt<pe;Gt++)if(ne[Rt][Gt]){$t=a.Eb(Gt),ie=$t.position+Ne+z,$t.oa!==0&&(ie+=$t.Io(Math.max(Pt,ze)));for(var Dn=ne[Rt][Gt],Qr=Dn.length,gi=0;gi<Qr;gi++){var ui=Dn[gi],Dr=ui.measuredBounds;yt.h(0,0);for(var hr=1;hr<ui.rowSpan&&!(Rt+hr>=a.rowCount);hr++){var eo=a.Fb(Rt+hr);eo.oa!==0&&(yt.height+=eo.total)}for(hr=1;hr<ui.columnSpan&&!(Gt+hr>=a.columnCount);hr++)eo=a.Eb(Gt+hr),eo.oa!==0&&(yt.width+=eo.total);var zi=$t.oa+yt.width,Ho=Bt.oa+yt.height;hr=ie,eo=se;var fa=zi,Bs=Ho,Gs=ie,jl=se,_s=zi,Oh=Ho;ie+zi>b.width&&(_s=Math.max(b.width-ie,0)),se+Ho>b.height&&(Oh=Math.max(b.height-se,0));var us=ui.alignment;if(us.Xb()){us=a.defaultAlignment,us.sb()||(us=qi);var ad=us.x,Vl=us.y,Fh=us.offsetX;us=us.offsetY;var oc=$t.alignment,Nc=Bt.alignment;oc.sb()&&(ad=oc.x,Fh=oc.offsetX),Nc.sb()&&(Vl=Nc.y,us=Nc.offsetY)}else ad=us.x,Vl=us.y,Fh=us.offsetX,us=us.offsetY;(isNaN(ad)||isNaN(Vl))&&(Vl=ad=.5,us=Fh=0),oc=Dr.width,Nc=Dr.height;var Vu=ui.margin,Ru=Vu.left+Vu.right,vf=Vu.top+Vu.bottom,sd=wc(ui,Bt,$t,!1);!isNaN(ui.desiredSize.width)||sd!==wr&&sd!==wi||(oc=Math.max(zi-Ru,0)),!isNaN(ui.desiredSize.height)||sd!==wr&&sd!==Di||(Nc=Math.max(Ho-vf,0)),zi=ui.maxSize,Ho=ui.minSize,oc=Math.min(zi.width,oc),Nc=Math.min(zi.height,Nc),oc=Math.max(Ho.width,oc),Nc=Math.max(Ho.height,Nc),zi=Nc+vf,hr+=fa*ad-(oc+Ru)*ad+Fh+Vu.left,eo+=Bs*Vl-zi*Vl+us+Vu.top,ui.visible&&(ia(Gs,jl,_s,Oh,hr,eo,Dr.width,Dr.height)?ui.arrange(hr,eo,oc,Nc):ui.arrange(hr,eo,oc,Nc,new kn(Gs,jl,_s,Oh)))}}}for(ln.free(yt),a=0;a<E;a++)b=y[a],z=b instanceof Tr?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"}Cn(Zm,Ns),Zm.prototype.measure=function(){},Zm.prototype.arrange=function(){};function Km(){this.xa="Base"}Cn(Km,Ns),Km.prototype.measure=function(){},Km.prototype.arrange=function(){};function Ym(){this.xa="Base"}Cn(Ym,Ns),Ym.prototype.measure=function(a,y,b,E,x,z,ne){1<E.length&&xt("Viewbox Panel cannot contain more than one GraphObject."),E=E[0],E.Ca=1,E.Uj(),E.measure(1/0,1/0,z,ne);var ie=E.measuredBounds,se=E.margin,de=se.right+se.left;if(se=se.top+se.bottom,isFinite(y)||isFinite(b)){var pe=E.scale,Se=ie.width;ie=ie.height;var Ne=Math.max(y-de,0),Me=Math.max(b-se,0),ze=1;a.viewboxStretch===yi?Se!==0&&ie!==0&&(ze=Math.min(Ne/Se,Me/ie)):Se!==0&&ie!==0&&(ze=Math.max(Ne/Se,Me/ie)),ze===0&&(ze=1e-4),E.Ca*=ze,pe!==E.scale&&(At(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=qi),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"}Cn(Wg,Ns),Wg.prototype.measure=function(){},Wg.prototype.arrange=function(){},Wg.prototype.gc=function(a,y,b){b=a.Df()*b.scale,0>=b&&(b=1);var E=a.gridCellSize,x=E.width;E=E.height;var z=a.naturalBounds,ne=a.actualBounds,ie=z.width,se=z.height,de=Math.ceil(ie/x),pe=Math.ceil(se/E),Se=a.gridOrigin,Ne=Se.x;Se=Se.y,y.save(),y.beginPath(),y.rect(0,0,ie,se),y.clip(),y.Se();for(var Me=[],ze=a.O.s,qe=ze.length,Pt=0;Pt<qe;Pt++){var yt=ze[Pt],Rt=[];if(Me.push(Rt),yt.visible){var Bt=yt.interval;if(!(0>Bt)){yt=Nv(yt.figure);for(var Gt=0;Gt<qe;Gt++)if(Gt!==Pt){var $t=ze[Gt];$t.visible&&Nv($t.figure)===yt&&($t=$t.interval,$t>Bt&&Rt.push($t))}}}}for(ze=a.O.s,qe=ze.length,Pt=0;Pt<qe;Pt++){var Dn=ze[Pt];if(Dn.visible&&(Rt=Dn.interval||1,yt=Math.abs(Rt),!(2>x*yt*b))){if(Bt=Dn.segmentIndex,(!isFinite(Bt)||isNaN(Bt))&&(Bt=0),0>Bt&&(Bt=yt-Math.min(-Bt,yt)),Bt=Math.round(Bt%yt),yt=Dn.opacity,Gt=1,yt!==1){if(yt===0)continue;Gt=y.globalAlpha,y.globalAlpha=Gt*yt}$t=Me[Pt];var Qr=!1,gi=Dn.strokeDashArray;if(gi!==null&&(Qr=!0,y.js(gi,Dn.strokeDashOffset)),Dn.figure==="LineV"&&Dn.stroke!==null&&0<Dn.strokeWidth){for(y.lineWidth=Dn.strokeWidth,Ma(a,y,Dn.stroke,!1,!1,z,ne),y.beginPath(),gi=Dn=Math.floor((Ne-x)/x);gi<=Dn+de;gi++){var ui=gi*x+Ne;0<=ui&&ui<=ie&&Xm(gi,Rt,Bt,$t)&&(y.moveTo(ui,0),y.lineTo(ui,se))}y.stroke(),y.Se()}else if(Dn.figure==="LineH"&&Dn.stroke!==null&&0<Dn.strokeWidth){for(y.lineWidth=Dn.strokeWidth,Ma(a,y,Dn.stroke,!1,!1,z,ne),y.beginPath(),gi=Dn=Math.floor((Se-E)/E);gi<=Dn+pe;gi++)ui=gi*E+Se,0<=ui&&ui<=se&&Xm(gi,Rt,Bt,$t)&&(y.moveTo(0,ui),y.lineTo(ie,ui));y.stroke(),y.Se()}else if(Dn.figure==="BarV"&&Dn.fill!==null)for(Ma(a,y,Dn.fill,!0,!1,z,ne),Dn=Dn.width,isNaN(Dn)&&(Dn=x),ui=gi=Math.floor((Ne-x)/x);ui<=gi+de;ui++){var Dr=ui*x+Ne;0<=Dr+Dn&&Dr<=ie&&Xm(ui,Rt,Bt,$t)&&y.fillRect(Dr,0,Dn,se)}else if(Dn.figure==="BarH"&&Dn.fill!==null)for(Ma(a,y,Dn.fill,!0,!1,z,ne),Dn=Dn.height,isNaN(Dn)&&(Dn=E),ui=gi=Math.floor((Se-E)/E);ui<=gi+pe;ui++)Dr=ui*E+Se,0<=Dr+Dn&&Dr<=se&&Xm(ui,Rt,Bt,$t)&&y.fillRect(0,Dr,ie,Dn);Qr&&y.fs(),yt!==1&&(y.globalAlpha=Gt)}}y.restore(),y.Vc(!1)};function Xm(a,y,b,E){if(0>y)return a%y===b;if(a%y!==b)return!1;y=E.length;for(var x=0;x<y;x++)if(a%E[x]===b)return!1;return!0}function Qm(){this.xa="Base"}Cn(Qm,Ns),Qm.prototype.measure=function(a,y,b,E,x){var z=E.length;if(a instanceof _o||a instanceof Rr){var ne=null,ie=null;if(a instanceof Rr&&(ne=a),a instanceof _o&&(ie=a,ne=ie.adornedPart,a.j===null&&(a.j=[])),ne instanceof Rr){var se=ne;if(z===0)bo(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var de=a instanceof _o?null:ne.path;y=ne.routeBounds,b=a.jg,b.h(0,0,y.width,y.height);var pe=se.points,Se=ne.pointsCount;ie!==null?ie.Ul(!1):ne!==null&&ne.Ul(!1),ie=y.width;var Ne=y.height,Me=a.j;if(Me.length=0,de!==null){uS(a,ie,Ne,de);var ze=de.measuredBounds;b.ed(ze),Me.push(ze)}ze=Mi.alloc();for(var qe=rt.alloc(),Pt=rt.alloc(),yt=0;yt<z;yt++){var Rt=E[yt];if(Rt!==de)if(Rt.isPanelMain&&Rt instanceof oo){uS(a,ie,Ne,Rt);var Bt=Rt.measuredBounds;b.ed(Bt),Me.push(Bt)}else if(2>Se)Rt.measure(1/0,1/0,0,0),Bt=Rt.measuredBounds,b.ed(Bt),Me.push(Bt);else{var Gt=Rt.segmentIndex,$t=Rt.segmentFraction,Dn=Rt.alignmentFocus;Dn.Mc()&&(Dn=qi);var Qr=Rt.segmentOrientation,gi=Rt.segmentOffset;if(isNaN(Gt)){var ui=se.ua;Bt=Nr(),ui.Qu($t,Bt);var Dr=rt.allocAt(Bt[0],Bt[1]);if(Dr.add(se.i(0)),ui.type===Ar.j?Dr.offset(-ui.startX,-ui.startY):(ui=ui.figures.first(),ui!==null&&Dr.offset(-ui.startX,-ui.startY)),ui=Bt[2],Qr!==eu){var hr=se.computeAngle(Rt,Qr,ui);Rt.Kb=hr}hr=Dr.x-y.x;var eo=Dr.y-y.y;rt.free(Dr),jr(Bt)}else if(Gt<-Se||Gt>=Se)Bt=rt.alloc(),se.vg(),se.computeMidPoint(Bt),ui=se.midAngle,Qr!==eu&&(hr=se.computeAngle(Rt,Qr,ui),Rt.Kb=hr),hr=Bt.x-y.x,eo=Bt.y-y.y,rt.free(Bt);else{if(hr=0,0<=Gt?(eo=pe.M(Gt),Bt=Gt<Se-1?pe.M(Gt+1):eo):(hr=Se+Gt,eo=pe.M(hr),Bt=0<hr?pe.M(hr-1):eo),eo.Xa(Bt)){0<=Gt?(ui=0<Gt?pe.M(Gt-1):eo,hr=Gt<Se-2?pe.M(Gt+2):Bt):(ui=hr<Se-1?pe.M(hr+1):eo,hr=1<hr?pe.M(hr-2):Bt),Dr=ui.Bf(eo);var zi=Bt.Bf(hr);ui=Dr>zi+10?0<=Gt?ui.ab(eo):eo.ab(ui):zi>Dr+10?0<=Gt?Bt.ab(hr):hr.ab(Bt):0<=Gt?ui.ab(hr):hr.ab(ui)}else ui=0<=Gt?eo.ab(Bt):Bt.ab(eo);Qr!==eu&&(hr=se.computeAngle(Rt,Qr,ui),Rt.Kb=hr),hr=eo.x+(Bt.x-eo.x)*$t-y.x,eo=eo.y+(Bt.y-eo.y)*$t-y.y}Rt.measure(1/0,1/0,0,0),Bt=Rt.measuredBounds,Dr=Rt.naturalBounds;var Ho=0;Rt instanceof oo&&(Ho=Rt.strokeWidth),zi=Dr.width+Ho;var fa=Dr.height+Ho;ze.reset(),ze.translate(-Bt.x,-Bt.y),ze.scale(Rt.scale,Rt.scale),ze.rotate(Qr===eu?Rt.angle:ui,zi/2,fa/2),Qr!==im&&Qr!==am||ze.rotate(90,zi/2,fa/2),Qr!==om&&Qr!==sm||ze.rotate(-90,zi/2,fa/2),Qr===T0&&(45<ui&&135>ui||225<ui&&315>ui)&&ze.rotate(-ui,zi/2,fa/2),Dr=new kn(0,0,zi,fa),qe.xi(Dr,Dn),ze.Ga(qe),Dn=-qe.x+Ho/2*Rt.scale,Rt=-qe.y+Ho/2*Rt.scale,Pt.assign(gi),Ho=isNaN(gi.x);var Bs=isNaN(gi.y);if(Ho||Bs){zi=zi/2+3,fa=fa/2+3;var Gs=45<=ui&&135>=ui,jl=225<=ui&&315>=ui;Qr===eu&&(Gs||jl)?(Pt.x=Bs?zi:gi.y,Pt.y=Ho?fa:gi.x,Gs?0<=Gt||isNaN(Gt)&&.5>$t||!Ho||(Pt.y=-fa):jl&&((0<=Gt||isNaN(Gt)&&.5>$t)&&Ho&&(Pt.y=-fa),Bs&&(Pt.x=-zi))):(Ho&&(Pt.x=0<=Gt||isNaN(Gt)&&.5>$t?zi:-zi),Bs&&(Pt.y=-fa),Pt.rotate(ui))}else Pt.rotate(ui);hr+=Pt.x,eo+=Pt.y,Dr.set(Bt),Dr.h(hr+Dn,eo+Rt,Bt.width,Bt.height),Me.push(Dr),b.ed(Dr)}}if(ne!==null)for(E=ne.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=b,a.position.h(y.x+b.x,y.y+b.y),bo(x,b.width||0,b.height||0),Mi.free(ze),rt.free(qe),rt.free(Pt)}}}},Qm.prototype.arrange=function(a,y){var b=y.length;if(a instanceof _o||a instanceof Rr){var E=a,x=null;a instanceof _o&&(x=a,E=x.adornedPart);var z=a instanceof _o?null:E.path,ne=a.j;if(ne.length!==0){var ie=0;if(z!==null&&ie<ne.length){var se=ne[ie];ie++,z.arrange(se.x-a.jg.x,se.y-a.jg.y,se.width,se.height)}for(se=0;se<b;se++){var de=y[se];if(de!==z&&ie<ne.length){var pe=ne[ie];ie++,de.arrange(pe.x-a.jg.x,pe.y-a.jg.y,pe.width,pe.height)}}}if(y=E.points,b=y.count,2<=b&&a instanceof Rr)for(z=a.labelNodes;z.next();){var Se=a;ne=z.value,ie=ne.segmentIndex,se=ne.segmentFraction;var Ne=ne.alignmentFocus;if(de=ne.segmentOrientation,pe=ne.segmentOffset,isNaN(ie)){var Me=Se.ua,ze=Nr();Me.Qu(se,ze);var qe=rt.allocAt(ze[0],ze[1]);qe.add(Se.i(0)),Me.type===Ar.j||(Me=Me.figures.first()),qe.offset(-Me.startX,-Me.startY),Me=ze[2],de!==eu&&(Se=Se.computeAngle(ne,de,Me),ne.angle=Se),Se=qe.x;var Pt=qe.y;rt.free(qe),jr(ze)}else if(ie<-b||ie>=b)ze=rt.alloc(),Me=Se,Pt=ze,Me.vg(),Me.computeMidPoint(Pt),Me=Se.midAngle,de!==eu&&(Se=Se.computeAngle(ne,de,Me),ne.angle=Se),Se=ze.x,Pt=ze.y,rt.free(ze);else{if(qe=0,0<=ie?(ze=y.s[ie],Pt=ie<b-1?y.s[ie+1]:ze):(qe=b+ie,ze=y.s[qe],Pt=0<qe?y.s[qe-1]:ze),ze.Xa(Pt)){0<=ie?(Me=0<ie?y.s[ie-1]:ze,qe=ie<b-2?y.s[ie+2]:Pt):(Me=qe<b-1?y.s[qe+1]:ze,qe=1<qe?y.s[qe-2]:Pt);var yt=Me.Bf(ze),Rt=Pt.Bf(qe);Me=yt>Rt+10?0<=ie?Me.ab(ze):ze.ab(Me):Rt>yt+10?0<=ie?Pt.ab(qe):qe.ab(Pt):0<=ie?Me.ab(qe):qe.ab(Me)}else Me=0<=ie?ze.ab(Pt):Pt.ab(ze);de!==eu&&(Se=Se.computeAngle(ne,de,Me),ne.angle=Se),Se=ze.x+(Pt.x-ze.x)*se,Pt=ze.y+(Pt.y-ze.y)*se}if(Ne.ys())ne.location=new rt(Se,Pt);else{Ne.Mc()&&(Ne=qi),ze=Mi.alloc(),ze.reset(),ze.scale(ne.scale,ne.scale),ze.rotate(ne.angle,0,0);var Bt=ne.naturalBounds;qe=kn.allocAt(0,0,Bt.width,Bt.height),yt=rt.alloc(),yt.xi(qe,Ne),ze.Ga(yt),Ne=-yt.x,Rt=-yt.y;var Gt=Bt.width,$t=Bt.height;Bt=rt.alloc(),Bt.assign(pe);var Dn=isNaN(pe.x),Qr=isNaN(pe.y);if(Dn||Qr){Gt=Gt/2+3,$t=$t/2+3;var gi=45<=Me&&135>=Me,ui=225<=Me&&315>=Me;de===eu&&(gi||ui)?(Bt.x=Qr?Gt:pe.y,Bt.y=Dn?$t:pe.x,gi?0<=ie||isNaN(ie)&&.5>se||!Dn||(Bt.y=-$t):ui&&((0<=ie||isNaN(ie)&&.5>se)&&Dn&&(Bt.y=-$t),Qr&&(Bt.x=-Gt))):(Dn&&(Bt.x=0<=ie||isNaN(ie)&&.5>se?Gt:-Gt),Qr&&(Bt.y=-$t),Bt.rotate(Me))}else Bt.rotate(Me);Se+=Bt.x,Pt+=Bt.y,ze.pp(qe),Ne+=qe.x,Rt+=qe.y,ie=rt.allocAt(Se+Ne,Pt+Rt),ne.move(ie),rt.free(ie),rt.free(Bt),rt.free(yt),kn.free(qe),Mi.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),rt.free(E)}};function uS(a,y,b,E){if(Lt(E)!==!1){var x=E.strokeWidth;x===0&&a instanceof _o&&a.type===Tr.Link&&a.adornedObject instanceof oo&&(x=a.adornedObject.strokeWidth),x*=E.Ca,a instanceof Rr&&a.ua!==null?(a=a.geometry.bounds,E.Ge(a.x-x/2,a.y-x/2,a.width+x,a.height+x)):a instanceof _o&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,E.Ge(a.x-x/2,a.y-x/2,a.width+x,a.height+x)):E.Ge(-(x/2),-(x/2),y+x,b+x),x=E.desiredSize,x.w()||E.ua===null?E.dc.h(0,0,x.width,x.height):E.dc.assign(E.ua.bounds),At(E,!1)}}function Zg(){this.xa="Base"}Cn(Zg,Ns),Zg.prototype.measure=function(a,y,b,E,x,z,ne){var ie=a.Pb();a.graduatedBounds=[];var se=ie.margin,de=se.right+se.left,pe=se.top+se.bottom;ie.measure(y,b,z,ne);var Se=ie.measuredBounds,Ne=new kn(-se.left,-se.top,Math.max(Se.width+de,0),Math.max(Se.height+pe,0));a.graduatedBounds.push(Ne),x.assign(Ne);for(var Me=ie.geometry,ze=ie.strokeWidth,qe=Me.flattenedSegments,Pt=Me.flattenedLengths,yt=Me.flattenedTotalLength,Rt=qe.length,Bt=0,Gt=0,$t=Nr(),Dn=0;Dn<Rt;Dn++){var Qr=qe[Dn],gi=[];Gt=Bt=0;for(var ui=Qr.length,Dr=0;Dr<ui;Dr+=2){var hr=Qr[Dr],eo=Qr[Dr+1];if(Dr!==0){var zi=180*Math.atan2(eo-Gt,hr-Bt)/Math.PI;0>zi&&(zi+=360),gi.push(zi)}Bt=hr,Gt=eo}$t.push(gi)}if(a.graduatedIntervals===null){for(var Ho=[],fa=a.O.s,Bs=fa.length,Gs=0;Gs<Bs;Gs++){var jl=fa[Gs],_s=[];if(Ho.push(_s),jl.visible){var Oh=jl.interval;if(!(0>Oh)){for(var us=0;us<Bs;us++)if(us!==Gs){var ad=fa[us];if(ad.visible&&jl.constructor===ad.constructor){var Vl=ad.interval;Vl>Oh&&_s.push(Vl)}}}}}a.graduatedIntervals=Ho}var Fh=a.graduatedIntervals,oc=a.O.s,Nc=oc.length,Vu=0,Ru=0,vf=yt;a.graduatedMarks=[];for(var sd,Dg=0;Dg<Nc;Dg++){var Wu=oc[Dg];if(sd=[],Wu.visible&&Wu!==ie){var Wl=Math.abs(Wu.interval),Im=a.graduatedTickUnit;if(!(2>Im*Wl*yt/a.graduatedRange&&Wu.graduatedSkip===null)){var Up=Pt[0][0],yd=0,Mu=0;Ru=yt*Wu.graduatedStart-1e-4,vf=yt*Wu.graduatedEnd+1e-4;var Kf=Im*Wl,Zu=a.graduatedTickBase;if(Zu<a.graduatedMin){var yf=(a.graduatedMin-Zu)/Kf;yf=yf%1===0?yf:Math.floor(yf+1),Zu+=yf*Kf}else Zu>a.graduatedMin+Kf&&(Zu-=Math.floor((Zu-a.graduatedMin)/Kf)*Kf);for(var pv=Fh[Dg],Dm=Zu,$y=1e-6*a.graduatedMax,Hd=1;Zu<=a.graduatedMax+$y;Hd++){e:{for(var ah=pv.length,Hp=0;Hp<ah;Hp++){var Sf=(Zu-a.graduatedTickBase)%(pv[Hp]*a.graduatedTickUnit),Rg=1e-6*a.graduatedTickUnit;if(Sf<Rg&&Sf>-Rg){var bf=!1;break e}}bf=!0}if(bf&&(Zu>a.graduatedMax&&(Zu=a.graduatedMax),Wu.graduatedSkip===null||Wu instanceof ma&&!Wu.graduatedSkip(Zu,Wu)||Wu instanceof oo&&!Wu.graduatedSkip(Zu,Wu))&&(Vu=(Zu-a.graduatedMin)*yt/a.graduatedRange,Vu>yt&&(Vu=yt),Ru<=Vu&&Vu<=vf)){for(var zd=$t[yd][Mu],Bh=Pt[yd][Mu];yd<Pt.length;){for(;Vu>Up&&Mu<Pt[yd].length-1;)Mu++,zd=$t[yd][Mu],Bh=Pt[yd][Mu],Up+=Bh;if(Vu<=Up)break;yd++,Mu=0,zd=$t[yd][Mu],Bh=Pt[yd][Mu],Up+=Bh}var Ou=qe[yd],Sd=Ou[2*Mu],gv=Ou[2*Mu+1],sh=(Vu-(Up-Bh))/Bh,Mg=new rt(Sd+(Ou[2*Mu+2]-Sd)*sh+ze/2-Me.bounds.x,gv+(Ou[2*Mu+3]-gv)*sh+ze/2-Me.bounds.y);Mg.scale(ie.scale,ie.scale);e:{var ld=zd,Yf=$t[yd];if(!(.5005>sh&&.4995<sh)){var bd=ld;if(.5>sh?0<Mu?bd=Yf[Mu-1]:en.$(Ou[0],Ou[Ou.length-2])&&en.$(Ou[1],Ou[Ou.length-1])&&(bd=Yf[Yf.length-1]):.5<sh&&(Mu+1<Yf.length?bd=Yf[Mu+1]:en.$(Ou[0],Ou[Ou.length-2])&&en.$(Ou[1],Ou[Ou.length-1])&&(bd=Yf[0])),ld!==bd){var zp=Math.abs(ld-bd);if(180<zp&&(ld<bd?ld+=360:bd+=360,zp=Math.abs(ld-bd)),5e-4>sh||.9995<sh){zd=(ld+bd)/2%360;break e}if(10>zp){var Og=1-Math.abs(.5-sh);zd=(ld*Og+bd*(1-Og))%360;break e}}}zd=ld}if(Wu instanceof ma){var Gc="";Wu.graduatedFunction!==null?(Gc=Wu.graduatedFunction(Zu,Wu),Gc=Gc!=null?Gc.toString():""):Gc=(+Zu.toFixed(2)).toString(),Gc!==""&&sd.push({$l:Mg,angle:zd,text:Gc})}else sd.push({$l:Mg,angle:zd})}Zu=Dm+Hd*Kf}}}a.graduatedMarks.push(sd)}jr($t);var rl=a.graduatedMarks;if(rl!==null)for(var Rm=E.length,ou=0;ou<Rm;ou++){var cs=E[ou],au=rl[ou];if(cs.visible&&cs!==ie&&au.length!==0){if(cs instanceof oo){var lh=a,_h=x,Xf=cs.alignmentFocus;Xf.Mc()&&(Xf=Mo);var eS=cs.angle;cs.Kb=0,cs.measure(1/0,1/0,0,0),cs.Kb=eS;var mv=cs.measuredBounds,Fg=mv.width,Qf=mv.height,Gp=kn.allocAt(0,0,Fg,Qf),Fu=rt.alloc();Fu.xi(Gp,Xf),kn.free(Gp);for(var uh=-Fu.x,ud=-Fu.y,Sc=new kn,Ef=au.length,Bg=0;Bg<Ef;Bg++)for(var xf=au[Bg],vv=xf.$l.x,_g=xf.$l.y,$a=xf.angle,jc=0;4>jc;jc++){switch(jc){case 0:Fu.h(uh,ud);break;case 1:Fu.h(uh+Fg,ud);break;case 2:Fu.h(uh,ud+Qf);break;case 3:Fu.h(uh+Fg,ud+Qf)}Fu.rotate($a+cs.angle),Fu.offset(vv,_g),Bg===0&&jc===0?Sc.h(Fu.x,Fu.y,0,0):Sc.Ye(Fu),Fu.offset(-vv,-_g),Fu.rotate(-$a-cs.angle)}rt.free(Fu),lh.graduatedBounds!==null&&lh.graduatedBounds.push(Sc),yo(_h,Sc.x,Sc.y,Sc.width,Sc.height)}else if(cs instanceof ma){var Lc=a,yv=x;Lc.temporaryTextBlock===null&&(Lc.temporaryTextBlock=new ma);var Ku=Lc.temporaryTextBlock;CS(Ku,cs);var Uh=cs.alignmentFocus;Uh.Mc()&&(Uh=Mo);for(var kc=cs.segmentOrientation,Ug=cs.segmentOffset,wf=new kn,Mm=0,Hg=0,Ed=0,Jf=0,Cf=0,zg=au.length,Hh=0;Hh<zg;Hh++){var Gd=au[Hh];Mm=Gd.$l.x,Hg=Gd.$l.y,Ed=Gd.angle,Cf=Jf=cs.angle,kc!==eu&&(Cf=kc===rm||kc===P0?Ed+cs.angle:Ed,Jf=Rr.computeAngle(kc,Cf)),Ku.Kb=Jf,Ku.text=Gd.text||"",Ku.measure(1/0,1/0,0,0);var zh=Ku.measuredBounds,ch=Ku.naturalBounds,Gh=ch.width,qf=ch.height,cd=Mi.alloc();cd.reset(),cd.translate(-zh.x,-zh.y),cd.scale(Ku.scale,Ku.scale),cd.rotate(Cf,Gh/2,qf/2),kc!==im&&kc!==am||cd.rotate(90,Gh/2,qf/2),kc!==om&&kc!==sm||cd.rotate(-90,Gh/2,qf/2),kc===T0&&(45<Ed&&135>Ed||225<Ed&&315>Ed)&&cd.rotate(-Ed,Gh/2,qf/2);var jp=kn.allocAt(0,0,Gh,qf),jh=rt.alloc();jh.xi(jp,Uh),cd.Ga(jh);var Vp=-jh.x,tS=-jh.y,dh=rt.alloc();dh.assign(Ug),isNaN(dh.x)&&(dh.x=Gh/2+3),isNaN(dh.y)&&(dh.y=-(qf/2+3)),dh.rotate(Ed),Mm+=dh.x+Vp,Hg+=dh.y+tS;var $f=new kn(Mm,Hg,zh.width,zh.height),Om=new kn(zh.x,zh.y,zh.width,zh.height),nS=new kn(ch.x,ch.y,ch.width,ch.height);Gd.Sz=Jf,Gd.lineCount=Ku.lineCount,Gd.lines=[Ku.Cb,Ku.Ih,Ku.df,Ku.Le,Ku.Qc,Ku.Qb,Ku.ze],Gd.actualBounds=$f,Gd.measuredBounds=Om,Gd.naturalBounds=nS,Hh===0?wf.assign($f):wf.ed($f),rt.free(dh),rt.free(jh),kn.free(jp),Mi.free(cd)}Lc.graduatedBounds!==null&&Lc.graduatedBounds.push(wf),yo(yv,wf.x,wf.y,wf.width,wf.height)}At(cs,!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 jo,y.save(),y.beginPath(),y.rect(-1,-1,z+1,ne+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,b),ne=a.Df()*b.scale,0>=ne&&(ne=1);for(var ie=z.actualBounds,se=a.O.s,de=a.graduatedMarks,pe=se.length,Se=0;Se<pe;Se++){var Ne=se[Se],Me=de[Se],ze=Me.length;if(Ne.visible&&Ne!==z&&Me.length!==0){if(Ne instanceof oo){if(!(2>a.graduatedTickUnit*Ne.interval*z.geometry.flattenedTotalLength/a.graduatedRange*ne&&Ne.graduatedSkip===null)){var qe=Ne.measuredBounds,Pt=Ne.strokeWidth*Ne.scale,yt=Ne.alignmentFocus;yt.Mc()&&(yt=Mo);for(var Rt=0;Rt<ze;Rt++){var Bt=Me[Rt].$l,Gt=Me[Rt].angle,$t=yt,Dn=Ne.Ab;Dn.reset(),Dn.translate(Bt.x+ie.x,Bt.y+ie.y),Dn.rotate(Gt+Ne.angle,0,0),Dn.translate(-qe.width*$t.x+$t.offsetX+Pt/2,-qe.height*$t.y+$t.offsetY+Pt/2),Dn.scale(Ne.scale,Ne.scale),je(Ne,!1),Ne.wh.set(Ne.Ab),Ne.Kk=Ne.scale,ut(Ne,!1),Ne.gc(y,b),x&&(a.svg.appendChild(Ne.svg),Ne.svg=null),Ne.Ab.reset()}}}else if(Ne instanceof ma)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new ma),qe=a.temporaryTextBlock,CS(qe,Ne),Pt=0;Pt<ze;Pt++)yt=Me[Pt],yt.actualBounds&&yt.measuredBounds&&yt.naturalBounds&&(qe.ec=yt.text||"",qe.Kb=yt.Sz||0,qe.Gc=yt.lineCount||0,Rt=yt.lines,Rt!==void 0&&(qe.Cb=Rt[0],qe.Ih=Rt[1],qe.df=Rt[2],qe.Le=Rt[3],qe.Qc=Rt[4],qe.Qb=Rt[5],qe.ze=Rt[6]),yt.naturalBounds&&(qe.dc=yt.naturalBounds),yt.actualBounds&&(Rt=yt.actualBounds,qe.arrange(Rt.x,Rt.y,Rt.width,Rt.height)),Rt=yt.actualBounds,qe.arrange(Rt.x,Rt.y,Rt.width,Rt.height),Bt=yt.measuredBounds,yt=yt.naturalBounds,Gt=qe.Ab,Gt.reset(),Gt.translate(Rt.x+ie.x,Rt.y+ie.y),Gt.translate(-Bt.x,-Bt.y),qe.no(Gt,yt.x,yt.y,yt.width,yt.height),je(qe,!1),qe.wh.set(qe.Ab),qe.Kk=qe.scale,ut(qe,!1),qe.Ng=Ne.part,qe.Me=Ne.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 Tr(a,y){if(rn.call(this),this.na=null,a===void 0)this.na=Tr.Position;else if(typeof a=="string"){var b=Fc.I(a);b!==null&&(this.na=b)}else a instanceof Ns?this.na=a:a&&(this.na=Tr.Position,y=a);this.na===null&&xt("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Tr.Grid?1048576:0),this.O=new er,this.yb=ds,this.Tm=ts,this.Uf=$i,this.$g=null,this.$e="",this.jg=new kn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=yi,this.jn=Si,this.kn=Hr,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Cn(Tr,rn),Tr.prototype.cloneProtected=function(a){rn.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},Tr.prototype.Af=function(a){rn.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},Tr.prototype.copy=function(){var a=rn.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(Pa,"elements",a,null,x,null,ne)}}return a}return null},Oe=Tr.prototype,Oe.toString=function(){return"Panel("+this.type.name+")#"+Ui(this)},Oe.Pn=function(a){rn.prototype.Pn.call(this,a);for(var y=this.O.s,b=y.length,E=0;E<b;E++)y[E].Pn(a)},Oe.hh=function(a,y){if(this.na===Tr.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Tr.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Tr.Table)if(a.yc(),a instanceof jo){var b=a.yd;a.yd=tc(a,"gojs-ts"),Av(this,a),a.nh.pop(),a.yd=b}else Av(this,a);(b=this.isClipping&&this.na===Tr.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){Ma(a,y,Se,!1,!1,ne,z),Se=!1;var Ne=de.separatorDashArray;Ne===null&&(Ne=b?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Ne!==null&&(Se=!0,y.js(Ne,0)),y.beginPath(),Ne=de.position+pe,b?Ne>ne.height&&(pe-=Ne-ne.height):Ne>ne.width&&(pe-=Ne-ne.width),de=de.position+pe/2,y.lineWidth=pe,pe=a.yb,b?(de+=pe.top,Ne=ne.width-pe.right,y.moveTo(pe.left,de),y.lineTo(Ne,de)):(de+=pe.left,Ne=ne.height-pe.bottom,y.moveTo(de,pe.top),y.lineTo(de,Ne)),y.stroke(),y.Se(),Se&&y.fs()}}}}function Jm(a,y,b,E,x){for(var z=E.length,ne=a.actualBounds,ie=a.naturalBounds,se=dS(a,!0),de=dS(a,!1),pe=0;pe<z;pe++){var Se=E[pe];if(Se!==void 0&&Se.background!==null&&Se.coversSeparators!==x&&Se.actual!==0){var Ne=b?ne.height:ne.width;if(!(Se.position>Ne)){var 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>Ne&&(Me=Ne-ze),0>=Me||(Ne=a.yb,Ma(a,y,Se.background,!0,!1,ie,ne),b?y.fillRect(Ne.left,ze+Ne.top,ne.width-(Ne.left+Ne.right),Me):y.fillRect(ze+Ne.left,Ne.top,Me,ne.height-(Ne.top+Ne.bottom)))}}}}function dS(a,y){for(var b=y?a.rowCount:a.columnCount,E=0;E<b;E++){var x=y?a.rowDefs[E]:a.colDefs[E];if(x!==void 0)return x.index}return 0}function Nv(a){return a==="LineV"||a==="BarV"}Oe.lv=function(){for(var a=this.O.s,y=a.length,b=0;b<y;b++)a[b].lv();this.Uc=!0},Oe.kk=function(a,y,b){if(!rn.prototype.kk.call(this,a,y,b))return!1;if(this.type===Tr.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===Tr.Grid||this.na===Tr.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},Oe.nk=function(){return!0},Oe.$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 rn.prototype.$o.call(this,a,y,b,E)},Oe.Sj=function(a,y,b,E,x){var z=this.se(),ne=this.transform,ie=1/(ne.m11*ne.m22-ne.m12*ne.m21),se=ne.m22*ie,de=-ne.m12*ie,pe=-ne.m21*ie,Se=ne.m11*ie,Ne=ie*(ne.m21*ne.dy-ne.m22*ne.dx),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+Ne,ie=a*de+y*Se+Me,a=b*se+E*pe+Ne,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=Ne=0),ie=a*se+y*pe+Ne,a=a*de+y*Se+Me,se=b*se+E*pe+Ne,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=rt.alloc(),Ne=null,y=1/0;var ze=null,qe=this.isClipping&&this.na===Tr.Spot;qe&&(ze=rt.alloc(),Ne=this.Pb(),(de=Ne.Sj(ie,a,se,b,ze))&&(y=(ie-ze.x)*(ie-ze.x)+(a-ze.y)*(a-ze.y)));for(var Pt=0;Pt<Me;Pt++){var yt=Se[Pt];yt.visible&&yt!==Ne&&yt.Sj(ie,a,se,b,pe)&&(de=!0,yt=(ie-pe.x)*(ie-pe.x)+(a-pe.y)*(a-pe.y),yt<E&&(E=yt,x.set(pe)))}return qe&&(y>E&&x.set(ze),rt.free(ze)),rt.free(pe),z&&x.transform(ne),de},Oe.Gj=function(){for(var a=this.O.s,y=a.length,b=0;b<y;b++)a[b].Gj();rn.prototype.Gj.call(this)},Oe.v=function(a){if(!Lt(this)){rn.prototype.v.call(this,a),a=null,(this.na===Tr.Auto||this.na===Tr.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=zl(x,!1);(x instanceof $l||x instanceof Tr||x instanceof ma||z!==mr)&&x.v(!0)}}}},Oe.Uj=function(){if(!Lt(this)){At(this,!0),Kt(this,!0);for(var a=this.O.s,y=a.length,b=0;b<y;b++)a[b].Uj()}},Oe.Uk=function(){if(!(this.l&2048)){je(this,!0),ut(this,!0);for(var a=this.O.s,y=a.length,b=0;b<y;b++)a[b].Wu()}},Oe.Wu=function(){ut(this,!0);for(var a=this.O.s,y=a.length,b=0;b<y;b++)a[b].Wu()},Oe.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),bo(x,a,se),bo(this.naturalBounds,a,se),this.Ge(0,0,a,se)},Oe.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var b=0;b<y;b++){var E=a[b];if(E.isPanelMain===!0)return this.$g=E}this.$g=a[0]}return this.$g};function rh(a){return a.part!==null?a.part.locationObject:null}Oe.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=zl(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var ne=this.Kg,ie=ne.left+ne.right;switch(ne=ne.top+ne.bottom,y===b&&z===E&&(a=mr),a){case mr:(y>b||z>E)&&(this.v(),this.measure(y>b?b:y,z>E?E:z,0,0));break;case wr:this.v(!0),this.measure(b+ie,E+ne,0,0);break;case wi:this.v(!0),this.measure(b+ie,z+ne,0,0);break;case Di:this.v(!0),this.measure(y+ie,E+ne,0,0)}}this.na.arrange(this,x,this.jg)}},Oe.gh=function(a){var y=this.naturalBounds,b=rh(this);if(ia(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,x=rt.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===b)&&(wn(x.set(a),z.transform),z.ca(x)))return rt.free(x),!0}return rt.free(x),!(this.Ma===null&&this.areaBackground===null)}return!1},Oe.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},Oe.qm=function(a,y){if(y(this,a),a instanceof Tr){a=a.O.s;for(var b=a.length,E=0;E<b;E++)this.qm(a[E],y)}};function Uf(a,y){hS(a,a,y)}function hS(a,y,b){b(y),y=y.O.s;for(var E=y.length,x=0;x<E;x++){var z=y[x];z instanceof Tr&&hS(a,z,b)}}function aE(a,y){fS(a,a,y)}function fS(a,y,b){if(b(y),y instanceof Tr){y=y.O.s;for(var E=y.length,x=0;x<E;x++)fS(a,y[x],b)}}Oe.Nl=function(a){return pS(this,this,a)};function pS(a,y,b){if(b(y))return y;if(y instanceof Tr){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}Oe.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 Tr){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 Tr?b=Math.max(b,gS(x)):x instanceof oo&&(b=Math.max(b,x.ig/2*x.strokeMiterLimit*x.Df()))}return b}Oe.se=function(){return!(this.type===Tr.TableRow||this.type===Tr.TableColumn)};function Ph(a){return a.type===Tr.TableRow||a.type===Tr.TableColumn}Oe.ic=function(a,y,b){if(this.pickable===!1||(y===void 0&&(y=null),b===void 0&&(b=null),zt(this)))return null;var E=this.naturalBounds,x=1/this.Df(),z=this.se(),ne=z?a:wn(rt.allocAt(a.x,a.y),this.transform),ie=this.diagram,se=10,de=5;if(ie!==null&&(se=ie.Ql("extraTouchArea"),de=se/2),ia(-(de*x),-(de*x),E.width+se*x,E.height+se*x,ne.x,ne.y)){if(!this.isAtomic){x=this.O.s;var pe=x.length;if(ie=rt.alloc(),de=(se=this.isClipping&&this.na===Tr.Spot)?this.Pb():null,se&&(de.se()?wn(ie.set(a),de.transform):ie.set(a),!de.ca(ie)))return rt.free(ie),z||rt.free(ne),null;for(var Se=rh(this);pe--;){var Ne=x[pe];if((Ne.visible||Ne===Se)&&(Ne.se()?wn(ie.set(a),Ne.transform):ie.set(a),!se||Ne!==de)){var Me=null;if(Ne instanceof Tr?Me=Ne.ic(ie,y,b):Ne.pickable===!0&&Ne.ca(ie)&&(Me=Ne),Me!==null&&(y!==null&&(Me=y(Me)),Me!==null&&(b===null||b(Me))))return rt.free(ie),z||rt.free(ne),Me}}rt.free(ie)}return this.background===null&&this.areaBackground===null?(z||rt.free(ne),null):(a=ia(0,0,E.width,E.height,ne.x,ne.y)?this:null,z||rt.free(ne),a)}return z||rt.free(ne),null},Oe.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:wn(rt.allocAt(a.x,a.y),this.transform);if(x=ia(0,0,x.width,x.height,ne.x,ne.y),Ph(this)||x){if(!this.isAtomic){for(var ie=this.O.s,se=ie.length,de=rt.alloc(),pe=rh(this);se--;){var Se=ie[se];if(Se.visible||Se===pe){Se.se()?wn(de.set(a),Se.transform):de.set(a);var Ne=Se;Se=Se instanceof Tr?Se:null,(Se!==null?Se.ji(de,y,b,E):Ne.ca(de))&&Ne.pickable!==!1&&(y!==null&&(Ne=y(Ne)),Ne===null||b!==null&&!b(Ne)||E.add(Ne))}}rt.free(de)}return z||rt.free(ne),x&&(this.background!==null||this.areaBackground!==null)}return z||rt.free(ne),!1},Oe.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=Mi.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return Lv(this,y,b,x),z===void 0&&Mi.free(ne),!0;if(this.Yc(a,ne)){if(!this.isAtomic)for(var ie=rh(this),se=this.O.s,de=se.length;de--;){var pe=se[de];if(pe.visible||pe===ie){var Se=pe.actualBounds,Ne=this.naturalBounds;Se.x>Ne.width||Se.y>Ne.height||0>Se.x+Se.width||0>Se.y+Se.height||(Se=pe,pe=pe instanceof Tr?pe:null,Ne=Mi.alloc(),Ne.set(ne),(pe!==null?pe.Cf(a,y,b,E,x,Ne):bs(Se,a,E,Ne))&&(y!==null&&(Se=y(Se)),Se===null||b!==null&&!b(Se)||x.add(Se)),Mi.free(Ne))}}return z===void 0&&Mi.free(ne),E}return z===void 0&&Mi.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 Tr&&Lv(ne,y,b,E),y!==null&&(ne=y(ne)),ne===null||b!==null&&!b(ne)||E.add(ne))}}}Oe.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:wn(rt.allocAt(a.x,a.y),this.transform),de=ie?y:wn(rt.allocAt(y.x,y.y),this.transform),pe=se.Bf(de),Se=0<se.x&&se.x<ne.width&&0<se.y&&se.y<ne.height||jn(se.x,se.y,0,0,0,ne.height)<=pe||jn(se.x,se.y,0,ne.height,ne.width,ne.height)<=pe||jn(se.x,se.y,ne.width,ne.height,ne.width,0)<=pe||jn(se.x,se.y,ne.width,0,0,0)<=pe;if(ne=se.zd(0,0)<=pe&&se.zd(0,ne.height)<=pe&&se.zd(ne.width,0)<=pe&&se.zd(ne.width,ne.height)<=pe,ie||(rt.free(se),rt.free(de)),Se){if(!this.isAtomic){se=rt.alloc(),de=rt.alloc(),pe=rh(this);for(var Ne=this.O.s,Me=Ne.length;Me--;){var ze=Ne[Me];if(ze.visible||ze===pe){var qe=ze.actualBounds,Pt=this.naturalBounds;(!ie||!(qe.x>Pt.width||qe.y>Pt.height||0>qe.x+qe.width||0>qe.y+qe.height))&&(ze.se()?(qe=ze.transform,wn(se.set(a),qe),wn(de.set(y),qe)):(se.set(a),de.set(y)),qe=ze,ze=ze instanceof Tr?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)))}}rt.free(se),rt.free(de)}return x?Se:ne}return!1};function kv(a){var y=null;return a instanceof oo&&(y=a.spot1,y===ts&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=fo),y}function Iv(a){var y=null;return a instanceof oo&&(y=a.spot2,y===ts&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Uo),y}Oe.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},Oe.M=function(a){return this.O.M(a)},Oe.Gb=function(a,y){y instanceof Li&&xt("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&xt("Cannot make a Panel contain itself: "+this.toString()),xt("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var b=y.panel;if(b!==null&&b!==this&&xt("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!==Tr.Grid||y instanceof oo||xt("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Tr.Graduated||y instanceof oo||y instanceof ma||xt("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 Ln),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 xt("element "+y.toString()+" has panel "+b.toString()+" but is not contained by it.")}(0>a||a>x.count)&&(a=x.count),x.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),Lt(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Tr&&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(ka,"elements",this,y,null,E,null),b.cb(Pa,"elements",this,null,y,null,a)))};function Dv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Oe.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)},Oe.mb=function(a){0<=a&&this.pc(a,!0)},Oe.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),At(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 Tr?E.qm(E,function(ne,ie){ty(z,ie,y)}):ty(z,E,y)),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||z.cb(ka,"elements",this,E,null,a,null))},Oe.Fb=function(a){0>a&&br(a,">= 0",Tr,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var b=new Es;b.wi(this),b.isRow=!0,b.index=a,y[a]=b,this.cb(Pa,"rowdefs",this,null,b,null,a)}return y[a]},Oe.oA=function(a){if(0>a&&br(a,">= 0",Tr,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,b=y[a];if(b){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(ka,"rowdefs",this,b,null,a,null),this.v()}}};function mS(a,y,b){var E=a.rowDefs;if(!(0>y)){if(E[y]=b instanceof Es?b:void 0,!b)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Oe.Eb=function(a){0>a&&br(a,">= 0",Tr,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var b=new Es;b.wi(this),b.isRow=!1,b.index=a,y[a]=b,this.cb(Pa,"coldefs",this,null,b,null,a)}return y[a]},Oe.jA=function(a){if(0>a&&br(a,">= 0",Tr,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,b=y[a];if(b){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(ka,"coldefs",this,b,null,a,null),this.v()}}};function vS(a,y,b){var E=a.colDefs;if(!(0>y)){if(E[y]=b instanceof Es?b:void 0,!b)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Oe.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},Oe.Hy=function(a,y){return(a=this.Fb(a))&&e0(a,new Es(y)),this},Oe.By=function(a,y){return(a=this.Eb(a))&&e0(a,new Es(y)),this},Oe.nz=function(a){if(0>a||this.type!==Tr.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},Oe.fz=function(a){if(0>a||this.type!==Tr.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},Oe.Fz=function(a,y){if(y===void 0&&(y=new rt(NaN,NaN)),this.type!==Tr.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)},Oe.Gz=function(a){if(this.type!==Tr.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function yS(a){return a=a.allBindings,a!==null&&a._isFrozen}function Pc(a){var y=a.allBindings;if(y===null)a.data!==null&&xt("Template cannot have .data be non-null: "+a),a.allBindings=y=new er;else if(y._isFrozen)return;var b=new er;Dv(a,!1),a.qm(a,function(de,pe){pe.th();var Se=pe.localBindings;if(Se!==null)for(Le(pe,!1),Se=Se.iterator;Se.next();){var Ne=Se.value;Ne.mode===gm&&Le(pe,!0);var Me=Ne.sourceName;Me!==null&&(Me==="/"&&Dv(de,!0),Me=R1(Ne,de,pe),Me!==null&&(b.add(Me),Me.srcBindings===null&&(Me.srcBindings=new er),Me.srcBindings.add(Ne))),y.add(Ne)}if(pe instanceof Tr&&pe.type===Tr.Table){if(0<pe.rowCount){for(de=pe.rowDefs,Se=de.length,Ne=0;Ne<Se;Ne++)if(Me=de[Ne],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(Ne=pe[Se],Ne!==void 0&&Ne.be!==null)for(Me=Ne.be.iterator;Me.next();)ze=Me.value,ze.xd=Ne,ze.to=1,ze.wl=Ne.index,y.add(ze)}}});for(var E=b.iterator;E.next();){var x=E.value;if(x.srcBindings!==null){Le(x,!0);for(var z=x.srcBindings.iterator;z.next();){var ne=z.value;x.localBindings===null&&(x.localBindings=new er),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 Tr&&(ne=ie.substring(0,se),ie=ie.substr(se+1),se=z.fb(ne),se!==null?(z=se,x.targetProperty=ie):Br('Warning: unable to find GraphObject named "'+ne+'" for Binding: '+x.toString())),z instanceof Es?(ne=Ui(z.panel),x.Ai=ne===void 0?-1:ne,z.panel.bindingId=x.Ai):z instanceof rn?(ne=Ui(z),x.Ai=ne===void 0?-1:ne,z.bindingId=x.Ai):xt("Unknown type of binding target: "+z)}y.freeze(),a instanceof Li&&a.Zc()&&a.Va()}Oe.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return aE(y,function(b){b instanceof Tr&&(b.allBindings=null,b.ub=null);var E=b.localBindings;E!==null&&(b.localBindings=null,E.each(function(x){b.bind(x.copy())})),E=b.animationTriggers,E!==null&&(b.animationTriggers=null,E.each(function(x){b.Jv(x.value.copy())}))}),a&&Pc(y),y},Oe.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 Tr))continue;x===1?z=z.Eb(b.wl):x===2&&(z=z.Fb(b.wl))}z!==void 0&&b.Mv(z,E)}}},Oe.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 Tr&&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 Tr)||z.data!==y[ne])return!0;x++,ne++}return!1}function Kg(a){if(a.type===Tr.Spot||a.type===Tr.Auto)return Math.min(a.O.length,1);if(a.type===Tr.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===Tr.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Tr&&Ph(a))?1:0}Oe.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 Tr){if(ne.data!==z){var ie=Mv(a,ne.data),se=Mv(a,z),de=se!==ie;de||(ie=Ov(a,ie),de=Ov(a,se)!==ie),de?(a.pc(E,!1),qm(a,z,x,!1)):ne.data=z}}else qm(a,z,x,!1)}for(;E<a.O.length;)a.pc(E,!1);a.$g=null,Rv(a,b,0),Lt(a)||a.v(),a.graduatedIntervals=null,a.If()||$m(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof 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(Pc(x),x=x.copy(),x.l&16777216){var z=a.ih();z!==null&&Dv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new Ln),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 Tr){var x=y,z=b;E.type===Tr.TableRow?E.row=x:E.type===Tr.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=os(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;xt("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,Br('No item template Panel found for category "'+y+'" on '+a),Br(" Using default item template."),a=new Tr,y=new ma,y.bind(new ls("text","",vi)),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 Tr){y=y.O.s,E=y.length;for(var x=0;x<E;x++){var z=y[x];b&&z instanceof Tr&&!z.isEnabled||$m(a,z,b)}}}function md(a,y){y.name=a,Fc.add(a,y)}pn.Object.defineProperties(Tr.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Tr.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&&br(a,">= 0",Tr,"padding"),a=new Xi(a)):(0>a.left&&br(a.left,">= 0",Tr,"padding:value.left"),0>a.right&&br(a.right,">= 0",Tr,"padding:value.right"),0>a.top&&br(a.top,">= 0",Tr,"padding:value.top"),0>a.bottom&&br(a.bottom,">= 0",Tr,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:ds},set:function(a){typeof a=="number"&&(a=new Xi(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new gc),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof Fo)&&(a instanceof Fo&&a.freeze(),this.T===null&&(this.T=new gc),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new gc),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var b=a.length,E=0,x=0;x<b;x++){var z=a[x];typeof z=="number"&&0<=z&&isFinite(z)||xt("defaultRowSeparatorDashArray value "+z+" at index "+x+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.T===null&&(this.T=new gc),this.T.V=a,this.N(),this.g("defaultRowSeparatorDashArray",y,a)}}},defaultColumnSeparatorStroke:{get:function(){return this.T!==null?this.T.u:null},set:function(a){var y=this.defaultColumnSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof Fo)&&(a instanceof Fo&&a.freeze(),this.T===null&&(this.T=new gc),this.T.u=a,this.N(),this.g("defaultColumnSeparatorStroke",y,a))}},defaultColumnSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.F:1},set:function(a){var y=this.defaultColumnSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new gc),this.T.F=a,this.v(),this.g("defaultColumnSeparatorStrokeWidth",y,a))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(a){var y=this.defaultColumnSeparatorDashArray;if(y!==a){if(a!==null){for(var b=a.length,E=0,x=0;x<b;x++){var z=a[x];typeof z=="number"&&0<=z&&isFinite(z)||xt("defaultColumnSeparatorDashArray value "+z+" at index "+x+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.T===null&&(this.T=new gc),this.T.o=a,this.N(),this.g("defaultColumnSeparatorDashArray",y,a)}}},inRowsCols:{get:function(){return this.T!==null?this.T.nb:null},set:function(a){this.T===null&&(this.T=new gc),this.T.nb=a}},viewboxStretch:{get:function(){return this.xo},set:function(a){var y=this.xo;y!==a&&(this.xo=a,this.v(),this.g("viewboxStretch",y,a))}},gridCellSize:{get:function(){return this.jn},set:function(a){var y=this.jn;if(!y.D(a)){a.w()&&a.width!==0&&a.height!==0||xt("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var b=this.diagram;b!==null&&this===b.grid&&Mc(b),this.N(),this.g("gridCellSize",y,a)}}},gridOrigin:{get:function(){return this.kn},set:function(a){var y=this.kn;if(!y.D(a)){a.w()||xt("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var b=this.diagram;b!==null&&this===b.grid&&Mc(b),this.N(),this.g("gridOrigin",y,a)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(a){var y=this.graduatedMin;y!==a&&(this.ra===null&&(this.ra=new ih),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),we(this)&&(a=this.part,a!==null&&ya(this,a,"graduatedRange")))}},graduatedMax:{get:function(){return this.ra!==null?this.ra.F:100},set:function(a){var y=this.graduatedMax;y!==a&&(this.ra===null&&(this.ra=new ih),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),we(this)&&(a=this.part,a!==null&&ya(this,a,"graduatedRange")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return this.ra!==null?this.ra.ia:10},set:function(a){var y=this.graduatedTickUnit;y!==a&&0<a&&(this.ra===null&&(this.ra=new ih),this.ra.ia=a,this.v(),this.g("graduatedTickUnit",y,a))}},graduatedTickBase:{get:function(){return this.ra!==null?this.ra.V:0},set:function(a){var y=this.graduatedTickBase;y!==a&&(this.ra===null&&(this.ra=new ih),this.ra.V=a,this.v(),this.g("graduatedTickBase",y,a))}},graduatedMarks:{get:function(){return this.ra!==null?this.ra.u:null},set:function(a){this.ra!==null?this.ra.u=a:a!==null&&(this.ra=new ih,this.ra.u=a)}},graduatedBounds:{get:function(){return this.ra!==null?this.ra.j:null},set:function(a){this.ra!==null?this.ra.j=a:a!==null&&(this.ra=new ih,this.ra.j=a)}},graduatedIntervals:{get:function(){return this.ra!==null?this.ra.o:null},set:function(a){this.ra!==null?this.ra.o=a:a!==null&&(this.ra=new ih,this.ra.o=a)}},temporaryTextBlock:{get:function(){return this.ra!==null?this.ra.Zh:null},set:function(a){this.ra!==null?this.ra.Zh=a:a!==null&&(this.ra=new ih,this.ra.Zh=a)}},panelLayoutState:{get:function(){return this.F},set:function(a){this.F=a}},Te:{get:function(){return(this.l&8388608)!==0},set:function(a){(this.l&8388608)!==0!==a&&(this.l^=8388608)}},rowDefs:{get:function(){return this.T===null&&(this.T=new gc),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new gc),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:n0},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new gc),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:n0},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new gc),this.T.j=a,this.v(),this.g("columnSizing",y,a))}},topIndex:{get:function(){return this.T!==null?this.T.Hb:0},set:function(a){var y=this.topIndex;y!==a&&((!isFinite(a)||0>a)&&xt("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new gc),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&&xt("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new gc),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var b=this instanceof Li&&!(this instanceof _o);Pc(this),this.ub=a;var E=this.diagram;E!==null&&(b?(b=E.partManager,this instanceof Rr?(y!==null&&b.bf.remove(y),a!==null&&b.bf.add(a,this)):this instanceof Li&&(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 Hi),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 Ln}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Li||a.isPanelMain)&&xt("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 to&&(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))}}}),pn.Object.defineProperties(Tr,{Position:{get:function(){return Fc.I("Position")}},Horizontal:{get:function(){return Fc.I("Horizontal")}},Vertical:{get:function(){return Fc.I("Vertical")}},Spot:{get:function(){return Fc.I("Spot")}},Auto:{get:function(){return Fc.I("Auto")}},Table:{get:function(){return Fc.I("Table")}},Viewbox:{get:function(){return Fc.I("Viewbox")}},TableRow:{get:function(){return Fc.I("TableRow")}},TableColumn:{get:function(){return Fc.I("TableColumn")}},Link:{get:function(){return Fc.I("Link")}},Grid:{get:function(){return Fc.I("Grid")}},Graduated:{get:function(){return Fc.I("Graduated")}}}),Tr.prototype.rebuildItemElements=Tr.prototype.mv,Tr.prototype.findItemPanelForData=Tr.prototype.sx,Tr.prototype.updateTargetBindings=Tr.prototype.La,Tr.prototype.copyTemplate=Tr.prototype.Uy,Tr.prototype.graduatedValueForPoint=Tr.prototype.Gz,Tr.prototype.graduatedPointForValue=Tr.prototype.Fz,Tr.prototype.findColumnForLocalX=Tr.prototype.fz,Tr.prototype.findRowForLocalY=Tr.prototype.nz,Tr.prototype.addColumnDefinition=Tr.prototype.By,Tr.prototype.addRowDefinition=Tr.prototype.Hy,Tr.prototype.addRowColumnDefinition=Tr.prototype.Gy,Tr.prototype.removeColumnDefinition=Tr.prototype.jA,Tr.prototype.getColumnDefinition=Tr.prototype.Eb,Tr.prototype.removeRowDefinition=Tr.prototype.oA,Tr.prototype.getRowDefinition=Tr.prototype.Fb,Tr.prototype.removeAt=Tr.prototype.mb,Tr.prototype.remove=Tr.prototype.remove,Tr.prototype.insertAt=Tr.prototype.Gb,Tr.prototype.elt=Tr.prototype.M,Tr.prototype.add=Tr.prototype.add,Tr.prototype.findObject=Tr.prototype.fb,Tr.prototype.findInVisualTree=Tr.prototype.Nl,Tr.prototype.walkVisualTreeFrom=Tr.prototype.qm,Tr.prototype.findMainElement=Tr.prototype.Pb;var bS=!1,ES=null,Fc=new Ln;Tr.className="Panel",Tr.definePanelLayout=md,md("Position",new Hm),md("Vertical",new Gm),md("Auto",new Vm),md("Link",new Qm);function ih(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}ih.prototype.copy=function(){var a=new ih;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},ih.className="GradPanelSettings";function gc(){this.Pc=[],this.Oc=[],this.j=this.ob=n0,this.hb=this.Hb=0,this.Qp=ds,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}gc.prototype.copy=function(a){for(var y=new gc,b=this.Pc,E=b.length,x=y.Pc,z=0;z<E;z++)if(b[z]!==void 0){var ne=b[z].copy();ne.wi(a),x[z]=ne}for(b=this.Oc,E=b.length,x=y.Oc,z=0;z<E;z++)b[z]!==void 0&&(ne=b[z].copy(),ne.wi(a),x[z]=ne);return y.ob=this.ob,y.j=this.j,y.Hb=this.Hb,y.hb=this.hb,y.Qp=this.Qp.J(),y.Ha=this.Ha,y.ia=this.ia,y.V=this.V,y.F=this.F,y.u=this.u,y.o=this.o,y.nb=this.nb,y},gc.className="TablePanelSettings";function Es(a){Ei(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=ts,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Fv,this.hg=$i,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))}Es.prototype.copy=function(){var a=new Es;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=Tn(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=Tn(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Oe=Es.prototype,Oe.qb=function(a){a.classType===Es&&(this.sizing=a)},Oe.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Ui(this)},Oe.wi=function(a){this.Me=a},Oe.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)},Oe.Wc=function(){var a=0,y=this.Me,b=0,E=this.isRow;if(y!==null&&y.type===Tr.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)},Oe.Ob=function(a,y,b){var E=this.Me;if(E!==null&&(E.cb(aa,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}Oe.bind=function(a,y,b,E){var x=null;return typeof a=="string"?x=new ls(a,y,b,E):x=a,x.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&yS(y)&&xt("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+x+" on "+a)),this.be===null&&(this.be=new er),this.be.add(x),this},pn.Object.defineProperties(Es.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&&br(a,">= 0",Es,"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&&br(a,">= 0",Es,"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))&&br(a,">= 0",Es,"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&&br(a,">= 0",Es,"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 Xi(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&ef(a,"RowColumnDefinition.separatorStroke"),a instanceof Fo&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var b=a.length,E=0,x=0;x<b;x++){var z=a[x];typeof z=="number"&&0<=z&&isFinite(z)||xt("separatorDashArray value "+z+" at index "+x+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.tj=a,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",y,a)}}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&ef(a,"RowColumnDefinition.background"),a instanceof Fo&&a.freeze(),this.Ma=a,this.panel!==null&&this.panel.N(),this.Ob("background",y,a))}},coversSeparators:{get:function(){return this.Pm},set:function(a){var y=this.Pm;y!==a&&(this.Pm=a,this.panel!==null&&this.panel.N(),this.Ob("coversSeparators",y,a))}},sizing:{get:function(){return this.oo},set:function(a){var y=this.oo;y!==a&&(this.oo=a,this.panel!==null&&this.panel.v(),this.Ob("sizing",y,a))}},actual:{get:function(){return this.oa},set:function(a){this.oa=isNaN(this.Hc)?Math.max(Math.min(this.hj,a),this.jj):Math.max(Math.min(this.hj,this.Hc),this.jj)}},measured:{get:function(){return this.oc},set:function(a){this.oc=a}},total:{get:function(){return this.oa+this.Wc()}},position:{get:function(){return this.pa},set:function(a){this.pa=a}}}),Es.prototype.computeEffectiveSpacing=Es.prototype.Wc,Es.prototype.computeEffectiveSpacingTop=Es.prototype.Io;var Fv=new Qn(Es,"Default",0),Yg=new Qn(Es,"None",1),n0=new Qn(Es,"ProportionalExtra",2);Es.className="RowColumnDefinition",Es.Default=Fv,Es.None=Yg,Es.ProportionalExtra=n0;function oo(a,y){rn.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)}Cn(oo,rn),oo.prototype.cloneProtected=function(a){rn.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=Tn(this.Yg)),this.Na!==null&&(a.Na=this.Na.nc?this.Na:this.Na.copy()),a.Un=this.Un,a.Vn=this.Vn,this.fa!==null&&(a.fa=this.fa.copy())};function Hf(a){a.Na===null?a.Na=new Uv:a.Na.nc&&(a.Na=a.Na.copy())}Oe=oo.prototype,Oe.th=function(){rn.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Oe.qb=function(a){a===mr||a===yi||a===xo||a===$i?this.geometryStretch=a:rn.prototype.qb.call(this,a)},Oe.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Ui(this)};function cg(a,y,b,E){var x=b.length;if(!(4>x)){var z=E.measuredBounds,ne=Math.max(1,z.width);z=z.height;for(var ie=b[0],se=b[1],de,pe,Se,Ne,Me,ze,qe=0,Pt=Nr(),yt=2;yt<x;yt+=2)de=b[yt],pe=b[yt+1],Se=de-ie,ie=pe-se,Se===0&&(Se=.001),Ne=ie/Se,Me=Math.atan2(ie,Se),ze=Math.sqrt(Se*Se+ie*ie),Pt.push([Se,Me,Ne,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=Pt[yt],Se=ze[0],Me=ze[1],Ne=ze[2],ze=ze[3];for(var Rt=0;.1<=qe;){if(Rt===0&&(pe?(x=b,x-=de,qe-=de,pe=!1):x=b,x===0&&(x=1)),x>qe){jr(Pt);return}x>ze?(Rt=x-ze,x=ze):Rt=0;var Bt=Math.sqrt(x*x/(1+Ne*Ne));if(0>Se&&(Bt=-Bt),ie+=Bt,se+=Ne*Bt,a.translate(ie,se),a.rotate(Me),a.translate(-(ne/2),-(z/2)),Rt===0&&E.hh(a,y),a.translate(ne/2,z/2),a.rotate(-Me),a.translate(-ie,-se),qe-=x,ze-=x,Rt!==0){if(yt++,yt===Pt.length){jr(Pt);return}ze=Pt[yt],Se=ze[0],Me=ze[1],Ne=ze[2],ze=ze[3],x=Rt}}jr(Pt)}}Oe.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&&Ma(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===Tr.Link&&ie instanceof _o&&ie.category==="Selection"&&ie.adornedObject instanceof oo&&ie.adornedPart.Pb()===ie.adornedObject?ie.adornedObject.strokeWidth:0),se===0&&(b=null),b!==null&&se!==0&&(Ma(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===Ar.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===Ar.u){var de=x.startX;se=x.startY;var pe=x.endX,Se=x.endY;x=Math.min(de,pe);var Ne=Math.min(se,Se);de=Math.abs(pe-de),se=Math.abs(Se-se),a.beginPath(),a.rect(x,Ne,de,se),E!==null&&a.ng(E),b!==null&&(ie&&z&&Gl(a),a.jk(),ie&&z&&Ys(a)),a.Se()}else if(x.type===Ar.F)de=x.startX,se=x.startY,pe=x.endX,Se=x.endY,x=Math.abs(pe-de)/2,Ne=Math.abs(Se-se)/2,de=Math.min(de,pe)+x,se=Math.min(se,Se)+Ne,a.beginPath(),a.moveTo(de,se-Ne),a.bezierCurveTo(de+en.wg*x,se-Ne,de+x,se-en.wg*Ne,de+x,se),a.bezierCurveTo(de+x,se+en.wg*Ne,de+en.wg*x,se+Ne,de,se+Ne),a.bezierCurveTo(de-en.wg*x,se+Ne,de-x,se+en.wg*Ne,de-x,se),a.bezierCurveTo(de-x,se-en.wg*Ne,de-en.wg*x,se-Ne,de,se-Ne),a.closePath(),E!==null&&a.ng(E),b!==null&&(ie&&z&&Gl(a),a.jk(),ie&&z&&Ys(a)),a.Se();else if(x.type===Ar.o)for(x=x.figures,se=x.length,Ne=0;Ne<se;Ne++){de=x.s[Ne],a.beginPath(),a.moveTo(de.startX,de.startY),pe=de.segments.s,Se=pe.length;for(var Me=null,ze=0;ze<Se;ze++){var qe=pe[ze];switch(qe.type){case oa:a.moveTo(qe.endX,qe.endY);break;case Zo:a.lineTo(qe.endX,qe.endY);break;case Xa:a.bezierCurveTo(qe.point1X,qe.point1Y,qe.point2X,qe.point2Y,qe.endX,qe.endY);break;case pl:a.quadraticCurveTo(qe.point1X,qe.point1Y,qe.endX,qe.endY);break;case Da:if(qe.radiusX===qe.radiusY){var Pt=Math.PI/180;a.arc(qe.point1X,qe.point1Y,qe.radiusX,qe.startAngle*Pt,(qe.startAngle+qe.sweepAngle)*Pt,0>qe.sweepAngle,Me!==null?Me.endX:de.startX,Me!==null?Me.endY:de.startY)}else if(Me=Ps(qe,de),Pt=Me.length,Pt===0)a.lineTo(qe.centerX,qe.centerY);else for(var yt=0;yt<Pt;yt++){var Rt=Me[yt];yt===0&&a.lineTo(Rt[0],Rt[1]),a.bezierCurveTo(Rt[2],Rt[3],Rt[4],Rt[5],Rt[6],Rt[7])}break;case wl:if(yt=Pt=0,Me!==null&&Me.type===Da){if(Me=Ps(Me,de),Rt=Me.length,Rt===0){a.lineTo(qe.endX,qe.endY);break}Me=Me[Rt-1]||null,Me!==null&&(Pt=Me[6],yt=Me[7])}else Pt=Me!==null?Me.endX:de.startX,yt=Me!==null?Me.endY:de.startY;if(Me=Zs(qe,de,Pt,yt),Pt=Me.length,Pt===0){a.lineTo(qe.endX,qe.endY);break}for(yt=0;yt<Pt;yt++)Rt=Me[yt],a.bezierCurveTo(Rt[2],Rt[3],Rt[4],Rt[5],Rt[6],Rt[7]);break;default:xt("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&&Gl(a),a.jk(),pe&&ie&&Ys(a))):(Gl(a),pe&&E!=="transparent"&&E!==null&&a.ng(E,de.isEvenOdd),b!==null&&a.jk(),Ys(a)):(pe&&E!==null&&a.ng(E,de.isEvenOdd),b!==null&&a.jk()),a.Se(Ne)}if(ne&&a.fs(),this.pathPattern!==null){if(b=this.pathPattern,b.measure(1/0,1/0),E=b.measuredBounds,b.arrange(0,0,E.width,E.height),z=this.geometry,a.save(),a.beginPath(),E=Nr(),z.type===Ar.j)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.endY),cg(a,y,E,b);else if(z.type===Ar.o)for(z=z.figures.iterator;z.next();){for(ie=z.value,E.length=0,E.push(ie.startX),E.push(ie.startY),ne=ie.startX,x=ie.startY,se=ne,Ne=x,de=ie.segments.s,pe=de.length,Se=0;Se<pe;Se++){switch(ze=de[Se],ze.type){case oa:cg(a,y,E,b),E.length=0,E.push(ze.endX),E.push(ze.endY),ne=ze.endX,x=ze.endY,se=ne,Ne=x;break;case Zo:E.push(ze.endX),E.push(ze.endY),ne=ze.endX,x=ze.endY;break;case Xa: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 pl:en.ep(ne,x,ze.point1X,ze.point1Y,ze.endX,ze.endY,.5,E),ne=ze.endX,x=ze.endY;break;case Da:if(qe=Ps(ze,ie),Me=qe.length,Me===0){E.push(ze.centerX),E.push(ze.centerY),ne=ze.centerX,x=ze.centerY;break}for(Pt=0;Pt<Me;Pt++)yt=qe[Pt],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 wl:if(qe=Zs(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(Pt=0;Pt<Me;Pt++)yt=qe[Pt],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:xt("Segment not of valid type: "+ze.type)}ze.isClosed&&(E.push(se),E.push(Ne),cg(a,y,E,b))}cg(a,y,E,b)}else if(z.type===Ar.u)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.startY),E.push(z.endX),E.push(z.endY),E.push(z.startX),E.push(z.endY),E.push(z.startX),E.push(z.startY),cg(a,y,E,b);else if(z.type===Ar.F){if(x=new ja,x.startX=z.endX,x.startY=(z.startY+z.endY)/2,ne=new To(Da),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=Ps(ne,x),ie=z.length,ie===0)E.push(ne.centerX),E.push(ne.centerY);else for(ne=x.startX,x=x.startY,se=0;se<ie;se++)Ne=z[se],en.Qe(ne,x,Ne[2],Ne[3],Ne[4],Ne[5],Ne[6],Ne[7],.5,E),ne=Ne[6],x=Ne[7];cg(a,y,E,b)}jr(E),a.restore(),a.Vc(!1)}}}},Oe.kk=function(a,y,b){return!rn.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)},Oe.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:rn.prototype.nk.call(this,a)},Oe.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)}},Oe.ga=function(a,y){if(y===void 0&&(y=new rt),a instanceof fi){a.Mc()&&xt("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},Oe.mi=function(a){a===void 0&&(a=new kn);var y=this.naturalBounds,b=this.oe;y=kn.allocAt(y.x,y.y,y.width,y.height);var E=this.strokeWidth;return y.Bc(E/2,E/2),E=rt.allocAt(y.x,y.y).transform(b),a.h(E.x,E.y,0,0),E.h(y.right,y.y).transform(b),yo(a,E.x,E.y,0,0),E.h(y.right,y.bottom).transform(b),yo(a,E.x,E.y,0,0),E.h(y.x,y.bottom).transform(b),yo(a,E.x,E.y,0,0),kn.free(y),rt.free(E),a},Oe.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!==Ar.j||y||(x+=2);var z=kn.alloc();if(z.assign(E),z.Bc(x+2,x+2),!z.ca(a))return kn.free(z),!1;if(E=x+1e-4,b.type===Ar.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:(kn.free(z),en.Yb(b.startX,b.startY,b.endX,b.endY,x,a.x,a.y));if(b.type===Ar.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 kn.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(x,x),a=z.ca(a),kn.free(z),a}if(b.type===Ar.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 kn.free(z),!1;ne+=E,x+=E}return this.stroke!==null&&(ne+=E,x+=E),kn.free(z),0>=ne||0>=x?!1:1>=b*b/(ne*ne)+y*y/(x*x)}if(b.type===Ar.o)return kn.free(z),this.fill===null?Xs(b,a.x,a.y,x):ns(b,a,x,1<this.strokeWidth,y);xt("Unknown Geometry type: "+b.type)},Oe.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):xt("Unsupported Figure: "+ie)}ne=se.bounds}ie=ne.width,se=ne.height,de=ne.width;var pe=ne.height;switch(zl(this,!0)){case mr:E=b=0;break;case wr:de=Math.max(a-z,0),pe=Math.max(y-z,0);break;case wi:de=Math.max(a-z,0),E=0;break;case Di:b=0,pe=Math.max(y-z,0)}isFinite(x.width)&&(de=x.width),isFinite(x.height)&&(pe=x.height);var Se=this.maxSize,Ne=this.minSize;switch(b=Math.max(b-z,Ne.width),E=Math.max(E-z,Ne.height),de=Math.min(Se.width,de),pe=Math.min(Se.height,pe),de=isFinite(de)?Math.max(b,de):Math.max(ie,b),pe=isFinite(pe)?Math.max(E,pe):Math.max(se,E),b=Bv(this),b){case mr:break;case wr:ie=de,se=pe;break;case yi:b=Math.min(de/ie,pe/se),isFinite(b)||(b=1),ie*=b,se*=b;break;default:xt(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(Ne.width,de),pe=Math.max(Ne.height,pe),this.dc.h(0,0,de,pe)):this.dc.assign(ne)};function Bv(a){var y=a.geometryStretch;return a.Rd!==null?y===$i?wr:y:y===$i?_v[a.figure].defaultStretch:y}Oe.eh=function(a,y,b,E){Al(this,a,y,b,E)},Oe.rs=function(a,y,b){return this.Sj(a.x,a.y,y.x,y.y,b)},Oe.Sj=function(a,y,b,E,x){var z=this.transform,ne=1/(z.m11*z.m22-z.m12*z.m21),ie=z.m22*ne,se=-z.m12*ne,de=-z.m21*ne,pe=z.m11*ne,Se=ne*(z.m21*z.dy-z.m22*z.dx),Ne=ne*(z.m12*z.dx-z.m11*z.dy);z=a*ie+y*de+Se,ne=a*se+y*pe+Ne,ie=b*ie+E*de+Se,se=b*se+E*pe+Ne,Se=this.ig/2,de=this.ua,de===null&&(this.measure(1/0,1/0),de=this.ua);var Me=de.bounds;if(pe=!1,de.type===Ar.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=Nr(),a=new rt,en.Ve(de.startX+E,de.startY+pe,de.endX+E,de.endY+pe,z,ne,ie,se,a)&&y.push(a),a=new rt,en.Ve(de.startX-E,de.startY-pe,de.endX-E,de.endY-pe,z,ne,ie,se,a)&&y.push(a),a=new rt,en.Ve(de.startX+E,de.startY+pe,de.startX-E,de.startY-pe,z,ne,ie,se,a)&&y.push(a),a=new rt,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 jr(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);jr(y)}else if(de.type===Ar.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===Ar.F){y=kn.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}kn.free(y)}else if(de.type===Ar.o){Ne=rt.alloc();var ze=ie-z,qe=se-ne,Pt=ze*ze+qe*qe,yt=z,Rt=ne;if(0<Pt&&Me.contains(yt,Rt)&&(Ne.x=yt,Ne.y=Rt,this.ca(Ne)))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,Rt-=qe;Me.contains(yt,Rt);)yt-=ze,Rt-=qe;for(x.x=ie,x.y=se,qe=0;qe<de.figures.count;qe++){var Bt=de.figures.s[qe],Gt=Bt.isFilled?yt:z,$t=Bt.isFilled?Rt:ne,Dn=Bt.segments;Me=Bt.startX,ze=Bt.startY;for(var Qr=Me,gi=ze,ui=0;ui<Dn.count;ui++){var Dr=Dn.s[ui],hr=Dr.type,eo=Dr.endX,zi=Dr.endY,Ho=!1;switch(hr){case oa:Qr=eo,gi=zi;break;case Zo:Ho=i0(Me,ze,eo,zi,Gt,$t,ie,se,Ne);break;case Xa:Ho=en.Eo(Me,ze,Dr.point1X,Dr.point1Y,Dr.point2X,Dr.point2Y,eo,zi,Gt,$t,ie,se,.6,Ne);break;case pl:Ho=en.Eo(Me,ze,Me+2/3*(Dr.point1X-Me),ze+2/3*(Dr.point1Y-ze),eo+2/3*(Dr.point1X-eo),zi+2/3*(Dr.point1Y-zi),eo,zi,Gt,$t,ie,se,.6,Ne);break;case Da:case wl:hr=Dr.type===Da?Ps(Dr,Bt):Zs(Dr,Bt,Me,ze);var fa=hr.length;if(fa===0){Ho=i0(Me,ze,Dr.type===Da?Dr.centerX:Dr.endX,Dr.type===Da?Dr.centerY:Dr.endY,Gt,$t,ie,se,Ne);break}for(zi=null,eo=0;eo<fa;eo++){if(zi=hr[eo],eo===0&&i0(Me,ze,zi[0],zi[1],Gt,$t,ie,se,Ne)){var Bs=r0(Gt,$t,Ne,Pt,x);Bs<Pt&&(Pt=Bs,pe=!0)}en.Eo(zi[0],zi[1],zi[2],zi[3],zi[4],zi[5],zi[6],zi[7],Gt,$t,ie,se,.6,Ne)&&(Bs=r0(Gt,$t,Ne,Pt,x),Bs<Pt&&(Pt=Bs,pe=!0))}eo=zi[6],zi=zi[7];break;default:xt("Unknown Segment type: "+hr)}Me=eo,ze=zi,Ho&&(Ho=r0(Gt,$t,Ne,Pt,x),Ho<Pt&&(Pt=Ho,pe=!0)),Dr.isClosed&&(eo=Qr,zi=gi,i0(Me,ze,eo,zi,Gt,$t,ie,se,Ne)&&(Dr=r0(Gt,$t,Ne,Pt,x),Dr<Pt&&(Pt=Dr,pe=!0)))}}z=b-a,ne=E-y,ie=Math.sqrt(z*z+ne*ne),ie!==0&&(z/=ie,ne/=ie),x.x-=z*Se,x.y-=ne*Se,rt.free(Ne)}else xt("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)}Oe.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var b=this.ua;b===null&&(this.measure(1/0,1/0),b=this.ua),b=b.bounds;var E=this.strokeWidth/2,x=!1,z=rt.alloc();return z.h(b.x-E,b.y-E),a.ca(y.Ga(z))&&(z.h(b.x-E,b.bottom+E),a.ca(y.Ga(z))&&(z.h(b.right+E,b.bottom+E),a.ca(y.Ga(z))&&(z.h(b.right+E,b.y-E),a.ca(y.Ga(z))&&(x=!0)))),rt.free(z),x},Oe.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var b=Mi.alloc();b.set(y),b.Vj();var E=a.left,x=a.right,z=a.top;a=a.bottom;var ne=rt.alloc();if(ne.h(E,z),b.Ga(ne),this.gh(ne,!0)||(ne.h(x,z),b.Ga(ne),this.gh(ne,!0))||(ne.h(E,a),b.Ga(ne),this.gh(ne,!0))||(ne.h(x,a),b.Ga(ne),this.gh(ne,!0)))return rt.free(ne),!0;var ie=rt.alloc(),se=rt.alloc();return b.set(y),b.bv(this.transform),b.Vj(),ie.x=x,ie.y=z,ie.transform(b),ne.x=E,ne.y=z,ne.transform(b),y=!1,zf(this,ne,ie,se)?y=!0:(ne.x=x,ne.y=a,ne.transform(b),zf(this,ne,ie,se)?y=!0:(ie.x=E,ie.y=a,ie.transform(b),zf(this,ne,ie,se)?y=!0:(ne.x=E,ne.y=z,ne.transform(b),zf(this,ne,ie,se)&&(y=!0)))),rt.free(ne),Mi.free(b),rt.free(ie),rt.free(se),y};function zf(a,y,b,E){if(!a.rs(y,b,E))return!1;a=y.x,y=y.y;var x=b.x,z=b.y;return b=E.x,E=E.y,a===x?(y<z?(a=y,y=z):a=z,E>=a&&E<=y):(a<x?(E=a,a=x):E=x,b>=E&&b<=a)}Oe.tx=function(a,y,b){function E(Pt,yt){for(var Rt=Pt.length,Bt=0;Bt<Rt;Bt+=2)if(yt.zd(Pt[Bt],Pt[Bt+1])>x)return!0;return!1}if(b&&this.fill!==null&&this.gh(a,!0))return!0;var x=a.Bf(y),z=x;if(1.5<this.strokeWidth&&(x=this.strokeWidth/2+Math.sqrt(x),x*=x),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!b){var ne=y.bounds,ie=ne.x,se=ne.y,de=ne.x+ne.width;if(ne=ne.y+ne.height,On(a.x,a.y,ie,se)<=x&&On(a.x,a.y,de,se)<=x&&On(a.x,a.y,ie,ne)<=x&&On(a.x,a.y,de,ne)<=x)return!0}if(ie=y.startX,se=y.startY,de=y.endX,ne=y.endY,y.type===Ar.j){if(b=(ie-de)*(a.x-de)+(se-ne)*(a.y-ne),jn(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===Ar.u)return y=!1,b&&(y=jn(a.x,a.y,ie,se,ie,ne)<=x||jn(a.x,a.y,ie,se,de,se)<=x||jn(a.x,a.y,de,se,de,ne)<=x||jn(a.x,a.y,ie,ne,de,ne)<=x),y;if(y.type===Ar.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 jn(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!(On(y,z,-pe,0)>=x||On(y,z,0,-Se)>=x||On(y,z,0,Se)>=x||On(y,z,pe,0)>=x)}else if(y.type===Ar.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&&jn(a.x,a.y,z,ie,z,de)>x&&jn(a.x,a.y,z,ie,se,ie)>x&&jn(a.x,a.y,se,de,z,de)>x&&jn(a.x,a.y,se,de,se,ie)>x)return!1;if(z=Math.sqrt(x),b){if(this.fill===null?Xs(y,a.x,a.y,z):ns(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 oa:case Zo:if(ne=Se.endX,pe=Se.endY,a.zd(ne,pe)>x)return!1;break;case Xa:var Ne=Nr();if(en.Qe(ne,pe,Se.point1X,Se.point1Y,Se.point2X,Se.point2Y,Se.endX,Se.endY,.8,Ne),ne=E(Ne,a),jr(Ne),ne||(ne=Se.endX,pe=Se.endY,a.zd(ne,pe)>x))return!1;break;case pl:if(Ne=Nr(),en.ep(ne,pe,Se.point1X,Se.point1Y,Se.endX,Se.endY,.8,Ne),ne=E(Ne,a),jr(Ne),ne||(ne=Se.endX,pe=Se.endY,a.zd(ne,pe)>x))return!1;break;case Da:case wl:Ne=Se.type===Da?Ps(Se,z):Zs(Se,z,ne,pe);var Me=Ne.length;if(Me===0){if(ne=Se.type===Da?Se.centerX:Se.endX,pe=Se.type===Da?Se.centerY:Se.endY,a.zd(ne,pe)>x)return!1;break}Se=null;for(var ze=Nr(),qe=0;qe<Me;qe++)if(Se=Ne[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 jr(ze),!1;jr(ze),Se!==null&&(ne=Se[6],pe=Se[7]);break;default:xt("Unknown Segment type: "+Se.type)}}return!0}}}return!1},Oe.qc=function(){this.ua=null},Oe.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=gs):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new fi(1-gs.x,gs.y)))}oo.makeGeometry=function(a,y,b){if(a.toArrow!=="None")var E=Dd[a.toArrow];else a.fromArrow!=="None"?E=Dd[a.fromArrow]:(E=en.Ze[a.figure],typeof E=="string"&&(E=en.Ze[E]),E===void 0&&xt("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=Dd[a];if(y===void 0){var b=a.toLowerCase();if(b==="none")return"None";if(y=Dd[b],y===void 0){var E=null,x;for(x in en.um)if(x.toLowerCase()===b){E=x;break}if(E!==null)return a=Ar.parse(en.um[E],!1),Dd[E]=a,b!==E&&(Dd[b]=E),E}}return typeof y=="string"?y:y instanceof Ar?a:null}pn.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),we(this)&&(a=this.part,a!==null&&ya(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Ar.parse(a);var y=a.normalize();this.geometry=a,this.position=a=rt.allocAt(-y.x,-y.y),rt.free(a)}},isGeometryPositioned:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",y,a))}},fill:{get:function(){return this.Ui},set:function(a){var y=this.Ui;y!==a&&(a!==null&&ef(a,"Shape.fill"),a instanceof Fo&&a.freeze(),this.Ui=a,this.N(),this.g("fill",y,a))}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&ef(a,"Shape.stroke"),a instanceof Fo&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},strokeWidth:{get:function(){return this.ig},set:function(a){var y=this.ig;if(y!==a)if(0<=a){this.ig=a,this.v();var b=this.part;b!==null&&(b.ag=NaN),this.g("strokeWidth",y,a)}else br(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"?br(a,'"butt", "round", or "square"',oo,"strokeCap"):(Hf(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?br(a,'"miter", "bevel", or "round"',oo,"strokeJoin"):(Hf(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){Hf(this),this.Na.Jr=a,this.N();var b=this.part;b!==null&&(b.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var b=a.length,E=0,x=0;x<b;x++){var z=a[x];0<=z&&isFinite(z)||xt("strokeDashArray:value "+z+" at index "+x+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.Yg=a,this.N(),this.g("strokeDashArray",y,a)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(a){var y=this.strokeDashOffset;y!==a&&0<=a&&(Hf(this),this.Na.uj=a,this.N(),this.g("strokeDashOffset",y,a))}},figure:{get:function(){return this.an},set:function(a){var y=this.an;if(y!==a){var b=en.Ze[a];typeof b=="function"?b=a:(b=en.Ze[a.toLowerCase()])||xt("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?xt("Unknown Shape.toArrow: "+a):y!==b&&(this.Ua===null&&(this.Ua=new Yi),this.Ua.V=b,this.Rd=null,this.qc(),this.v(),xS(this),this.g("toArrow",y,b))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(a){var y=this.fromArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var b=wS(a);b===null?xt("Unknown Shape.fromArrow: "+a):y!==b&&(this.Ua===null&&(this.Ua=new Yi),this.Ua.j=b,this.Rd=null,this.qc(),this.v(),xS(this),this.g("fromArrow",y,b))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:ts},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Hf(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:ts},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Hf(this),this.Na.gg=a,this.v(),this.g("spot2",y,a))}},parameter1:{get:function(){return this.Un},set:function(a){var y=this.Un;y!==a&&(this.Un=a,this.qc(),this.v(),this.g("parameter1",y,a))}},parameter2:{get:function(){return this.Vn},set:function(a){var y=this.Vn;y!==a&&(this.Vn=a,this.qc(),this.v(),this.g("parameter2",y,a))}},naturalBounds:{get:function(){return this.dc}},pathPattern:{get:function(){return this.Na!==null?this.Na.br:null},set:function(a){var y=this.pathPattern;y!==a&&(Hf(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:$i},set:function(a){var y=this.geometryStretch;y!==a&&(Hf(this),this.Na.jq=a,this.v(),this.g("geometryStretch",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new Rd),this.fa.Tk=a;var b=this.diagram;b!==null&&this.panel===b.grid&&Mc(b),this.v(),b=this.panel,b!==null&&(b.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Rd),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Rd),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new Rd),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),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 Dd=new di,_v=new di;oo.className="Shape",oo.getFigureGenerators=function(){var a=new Ln,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 Ln;for(E in en.um)if(Dd[E]===void 0){var y=Ar.parse(en.um[E],!1);Dd[E]=y,y=E.toLowerCase(),y!==E&&(Dd[y]=E)}for(var b in Dd)if(b!==b.toLowerCase()){var E=Dd[b];E instanceof Ar&&a.add(b,E)}return a.freeze(),a},oo.defineArrowheadGeometry=function(a,y){var b=null;typeof y=="string"?b=Ar.parse(y,!1):b=y,y=a.toLowerCase(),y!=="none"&&a!==y||xt("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var E=Dd;E[a]=b,E[y]=a};function Uv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=$i,this.gg=this.fg=ts}Uv.prototype.copy=function(){var a=new Uv;return a.Hr=this.Hr,a.Ir=this.Ir,a.Jr=this.Jr,a.uj=this.uj,a.br=this.br,a.jq=this.jq,a.fg=this.fg.J(),a.gg=this.gg.J(),a};function ma(a,y){return rn.call(this),u0||(yu=Ra?new cl(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}Cn(ma,rn),ma.prototype.cloneProtected=function(a){rn.prototype.cloneProtected.call(this,a),a.ec=this.ec,a.xc=this.xc,a.Ae=this.Ae,a.Gc=this.Gc,a.Cb=this.Cb,a.Lq=this.Lq,a.Gm=this.Gm,this.fa!==null&&(a.fa=this.fa.copy()),this.da!==null&&(a.da=this.da.nc?this.da:this.da.copy()),a.Ih=this.Ih,a.df=this.df,a.Le=this.Le,a.Qc=this.Qc,a.Qb=this.Qb,a.ze=this.ze};function vd(a){a.da===null?a.da=new Zv:a.da.nc&&(a.da=a.da.copy())}Oe=ma.prototype,Oe.th=function(){rn.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}Oe.qb=function(a){a.classType===ma?this.wrap=a:rn.prototype.qb.call(this,a)},Oe.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Oe.v=function(){rn.prototype.v.call(this)},Oe.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;Ma(this,a,this.xc,!0,!1,b,E),(se||de)&&Ma(this,a,this.xc,!1,!1,b,E),E=0,b=!1;var pe=this.oe,Se=pe.dx-(ne*pe.m21+pe.dx);pe=pe.dy-(ne*pe.m22+pe.dy);var Ne=y.scale;switch(8>(Se*Se+pe*pe)*Ne*Ne&&(b=!0),y.ib!==a&&(b=!1),y.ib instanceof jo&&(b=!1),y.Gf("textGreeking")===!1&&(b=!1),y=this.spacingAbove,Se=this.spacingBelow,this.flip){case No:a.translate(x,0),a.scale(-1,1);break;case lo:a.translate(0,z),a.scale(1,-1);break;case Jo:a.translate(x,z),a.scale(-1,-1)}if(a.yc(),pe=this.Gc,Ne=(y+ne+Se)*pe,z>Ne&&(E=this.verticalAlignment,E=E.y*z-E.y*Ne+E.offsetY),pe===1&&this.ze!==null)Se=this.Cb,Se>x&&(Se=x),this.Oj(this.ze,a,0,E+y,x,ne,Se,b,ie,se,de);else if(this.Qc!==null&&this.Qb!==null)for(Ne=0;Ne<pe;Ne++){var Me=this.Qc[Ne];Me>x&&(Me=x),E+=y,this.Oj(this.Qb[Ne],a,0,E,x,ne,Me,b,ie,se,de),E+=ne+Se}switch(this.flip){case No:a.scale(-1,1),a.translate(-x,0);break;case lo:a.scale(1,-1),a.translate(0,-z);break;case Jo:a.scale(-1,-1),a.translate(-x,-z)}}},Oe.Oj=function(a,y,b,E,x,z,ne,ie,se,de,pe){var Se=0;if(ie)se==="left"?Se=0:se==="right"?Se=x-ne:se==="center"&&(Se=(x-ne)/2),y.fillRect(b+Se,E+.25*z,ne,1);else{if(se==="left"?Se=0:se==="right"?Se=x:se==="center"&&(Se=x/2),x=o0!==null?o0(this,z):.75*z,y.fillText(a,b+Se,E+x),a=z/20|0,a===0&&(a=1),se==="right"?Se-=ne:se==="center"&&(Se-=ne/2),de){ie=a0!==null?a0(this,z):.8*z,se=b+Se,de=E+ie,x=b+Se+ne,ie=E+ie;var Ne=a;y.beginPath(),y.lineWidth=Ne,y.moveTo(se,de),y.lineTo(x,ie),y.stroke(),y.Se(),y instanceof jo&&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 jo&&y.ad.classList.add("gojs-td"))}},Oe.kk=function(a,y,b){if(!rn.prototype.kk.call(this,a,y,b))return!1;if(Ma(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++)vu(a,y[b],!1)}else y=this.svg,y.innerHTML=this.text,vu(a,y,!0);return!0},Oe.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:rn.prototype.nk.call(this,a)},Oe.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)}},Oe.Wl=function(a,y,b,E){var x=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;yu!==null&&DS!==z&&(DS=yu.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var ne;if(isNaN(this.desiredSize.width)){if(z=this.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),z.length===0)z=8;else if(this.isMultiline){for(var ie=ne=0,se=!1;!se;){var de=z.indexOf(`
`,ie);de===-1&&(de=z.length,se=!0),ie=z.substr(ie,de-ie),this.formatting===Jg&&(ie=ie.trim()),ne=Math.max(ne,Bc(ie)),ie=de+1}z=ne}else ne=z.indexOf(`
`,0),0<=ne&&(z=z.substr(0,ne)),z=Bc(z);z=Math.min(z,a/this.scale)}else z=this.desiredSize.width;if(this.panel!==null&&(z=Math.min(z,this.panel.maxSize.width)),ne=TS(this,z),isNaN(this.desiredSize.height)?ne=Math.min(ne,y/this.scale):ne=this.desiredSize.height,se=ne,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===s0&&(y=this.Ae,y=this.overflow===s0?PS(y):0,de=this.spacingAbove+this.spacingBelow,de=Math.max(0,Qg(this)+de),se=Math.min(this.maxLines-1,Math.max(Math.floor(se/de+.01)-1,0)),!(se+1>=this.Qb.length))){for(this.l|=16777216,de=this.Qb[se],y=Math.max(1,a-y);Bc(de)>y&&1<de.length;)de=de.substr(0,de.length-1);de+=qg,y=Bc(de),this.Qb[se]=de,this.Qb=this.Qb.slice(0,se+1),this.Qc[se]=y,this.Qc=this.Qc.slice(0,se+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,y),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===AS||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(b,z),ne=Math.max(E,ne),bo(this.dc,z,ne),this.Ge(0,0,z,ne),this.svg!==null&&x!==this.Gc&&(this.Uc=!0)},Oe.eh=function(a,y,b,E){Al(this,a,y,b,E)};function Xg(a,y,b){a.ze===null?(a.ze=y,a.Cb=b):((a.Qb===null||a.Qc===null)&&(a.Qb=[],a.Qc=[],a.Qb.push(a.ze),a.Qc.push(a.Cb)),a.Qb.push(y),a.Qc.push(b),a.Qb.length>a.maxLines&&(a.l|=16777216))}function Hv(a,y,b,E){var x=a.formatting===Jg;x&&(y=y.trim());var z=0,ne=a.Ae,ie=a.spacingAbove+a.spacingBelow;ie=Math.max(0,Qg(a)+ie);var se=a.overflow===s0?PS(ne):0;if(a.Gc>=a.maxLines)E!==null&&E.h(0,ie);else if(ne=y,a.wrap===zv){a.Le=1;var de=Bc(y);if(se===0||de<=b)a.Cb=Math.max(a.Cb,de),Xg(a,y,a.Cb),E!==null&&E.h(de,ie);else{for(z=dg(a,ne),ne=ne.substr(z.length),y=dg(a,ne),de=Bc(z+y);0<y.length&&de<=b;)z+=y,ne=ne.substr(y.length),y=dg(a,ne),de=z+y,x&&(de=de.trim()),de=Bc(de);for(x&&(y=y.trim()),z+=y,b=Math.max(1,b-se);Bc(z)>b&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=qg;var pe=Bc(z);a.Cb=pe,Xg(a,z,pe),E!==null&&E.h(pe,ie)}}else{for(se=0,ne.length===0&&(se=1,Xg(a,ne,0));0<ne.length;){for(y=dg(a,ne),ne=ne.substr(y.length);Bc(y)>b;){var Se=1;for(de=Bc(y.substr(0,Se)),pe=0;de<=b;)Se++,pe=de,de=Bc(y.substr(0,Se));if(Se===1){var Ne=de;z=Math.max(z,de)}else Ne=pe,z=Math.max(z,pe);if(Se--,1>Se&&(Se=1),Xg(a,y.substr(0,Se),Ne),se++,y=y.substr(Se),a.Gc+se>a.maxLines)break}for(pe=dg(a,ne),de=Bc(y+pe);0<pe.length&&de<=b;)y+=pe,ne=ne.substr(pe.length),pe=dg(a,ne),de=y+pe,x&&(de=de.trim()),de=Bc(de);if(x&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),pe.length===0?(Se=de,z=Math.max(z,de)):(Se=pe=Bc(y),z=Math.max(z,pe)),Xg(a,y,Se),se++,a.Gc+se>a.maxLines))break}a.Le=Math.min(a.maxLines,se),a.Cb=Math.max(a.Cb,z),E!==null&&E.h(a.Cb,ie*a.Le)}}function dg(a,y){if(a.wrap===LS)return y.substr(0,1);for(var b=y.length,E=0,x=lE;E<b&&!x.test(y.charAt(E));)E++;for(a.formatting===kS&&(b=Math.min(b,E+1));E<b&&x.test(y.charAt(E));)E++;return E>=y.length?y:y.substr(0,E)}function Bc(a){return yu===null?8*a.length:yu.measureText(a).width}function Qg(a){if(a.df!==null)return a.df;var y=a.Ae;if(yu===null){var b=16;return a.df=b}return Vv[y]!==void 0&&5e3>IS?b=Vv[y]:(b=1.3*yu.measureText("M").width,Vv[y]=b,IS++),a.df=b}function PS(a){if(yu===null)return 6;if(l0[a]!==void 0&&5e3>Wv)var y=l0[a];else y=yu.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=ln.alloc();Hv(a,z,y,se),x+=se.height,ln.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}pn.Object.defineProperties(ma.prototype,{font:{get:function(){return this.Ae},set:function(a){var y=this.Ae;y!==a&&(this.Ae=a,this.df=null,this.v(),this.g("font",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;a!=null?a=a.toString():a="",y!==a&&(this.ec=a,this.v(),this.g("text",y,a),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(a){var y=this.textAlign;y===a||a!=="start"&&a!=="end"&&a!=="left"&&a!=="right"&&a!=="center"||(vd(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:mr},set:function(a){var y=this.flip;y!==a&&(vd(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:wu},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),vd(this),this.da.Yr=a,Dl(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=ln.alloc();Hv(this,this.ec,999999,a);var y=a.width;ln.free(a),a=TS(this,y);var b=this.desiredSize;isNaN(b.width)||(y=b.width),isNaN(b.height)||(a=b.height),bo(this.dc,y,a)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this.v(),this.g("isMultiline",y,a))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;y!==a&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",y,a))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(a){var y=(this.l&8388608)!==0;y!==a&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",y,a))}},wrap:{get:function(){return this.da!==null?this.da.$r:Gv},set:function(a){var y=this.wrap;y!==a&&(vd(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:jv},set:function(a){var y=this.overflow;y!==a&&(vd(this),this.da.$q=a,this.v(),this.g("overflow",y,a))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&ef(a,"TextBlock.stroke"),a instanceof Fo&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Qg(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("editable",y,a))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(a){var y=this.textEditor;y!==a&&(vd(this),this.da.Qr=a,this.g("textEditor",y,a))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(a){var y=this.errorFunction;y!==a&&(vd(this),this.da.Hd=a,this.g("errorFunction",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new Rd),this.fa.Tk=a,this.v();var b=this.panel;b!==null&&(b.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Rd),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Rd),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedFunction:{get:function(){return this.fa!==null?this.fa.F:null},set:function(a){var y=this.graduatedFunction;y!==a&&(this.fa===null&&(this.fa=new Rd),this.fa.F=a,this.v(),this.g("graduatedFunction",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new Rd),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}},textValidation:{get:function(){return this.da!==null?this.da.vj:null},set:function(a){var y=this.textValidation;y!==a&&(vd(this),this.da.vj=a,this.g("textValidation",y,a))}},textEdited:{get:function(){return this.da!==null?this.da.Pr:null},set:function(a){var y=this.textEdited;y!==a&&(vd(this),this.da.Pr=a,this.g("textEdited",y,a))}},spacingAbove:{get:function(){return this.da!==null?this.da.Dr:0},set:function(a){var y=this.spacingAbove;y!==a&&(vd(this),this.da.Dr=a,this.v(),this.g("spacingAbove",y,a))}},spacingBelow:{get:function(){return this.da!==null?this.da.Er:0},set:function(a){var y=this.spacingBelow;y!==a&&(vd(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:Jg},set:function(a){var y=this.formatting;y!==a&&(vd(this),this.da.gq=a,this.v(),this.g("formatting",y,a))}},maxLines:{get:function(){return this.da!==null?this.da.Jq:1/0},set:function(a){var y=this.maxLines;y!==a&&(a=Math.floor(a),0>=a&&br(a,"> 0",ma,"maxLines"),vd(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var o0=null,a0=null,zv=new Qn(ma,"None",0),AS=new Qn(ma,"WrapFit",1),Gv=new Qn(ma,"WrapDesiredSize",2),LS=new Qn(ma,"WrapBreakAll",3),jv=new Qn(ma,"OverflowClip",0),s0=new Qn(ma,"OverflowEllipsis",1),Jg=new Qn(ma,"FormatTrim",0),kS=new Qn(ma,"FormatNone",0),lE=/[ \u200b\u00ad]/,Vv=new di,IS=0,l0=new di,Wv=0,qg="...",DS="",yu=null,u0=!1;ma.className="TextBlock";function Zv(){this.nc=!1,this.Hd=null,this.Xf=mr,this.gq=Jg,this.Jq=1/0,this.$q=jv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=wu,this.$r=Gv}Zv.prototype.copy=function(){var a=new Zv;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},ma.getEllipsis=function(){return qg},ma.setEllipsis=function(a){qg=a,l0=new di,Wv=0},ma.getBaseline=function(){return o0},ma.setBaseline=function(a){o0=a},ma.getUnderline=function(){return a0},ma.setUnderline=function(a){a0=a},ma.isValidFont=function(a){if(u0||(yu=Ra?new cl(null).context:null,u0=!0),yu===null)return!0;var y=yu.font;if(a===y||a==="10px sans-serif")return!0;yu.font="10px sans-serif",yu.font=a;var b=yu.font;if(b!=="10px sans-serif")return yu.font=y,!0;yu.font="19px serif";var E=yu.font;return yu.font=a,b=yu.font,yu.font=y,b!==E},ma.FormatNone=kS,ma.FormatTrim=Jg,ma.None=zv,ma.OverflowClip=jv,ma.OverflowEllipsis=s0,ma.WrapBreakAll=LS,ma.WrapDesiredSize=Gv,ma.WrapFit=AS;function Rd(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Rd.prototype.copy=function(){var a=new Rd;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Rd.className="GradElementSettings";function Su(a,y){rn.call(this),this.Eg=null,this.qo="",this.Xg=xl,this.Nk=wr,this.Zg=this.Hd=null,this.Mk=qi,this.Xf=mr,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var hg;Cn(Su,rn),Su.prototype.cloneProtected=function(a){rn.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},Su.prototype.qb=function(a){a===mr||a===yi||a===xo?this.imageStretch=a:rn.prototype.qb.call(this,a)},Su.prototype.toString=function(){return"Picture("+this.source+")#"+Ui(this)};function fg(a){a===void 0&&(a=""),a!==""?hg[a]&&(delete hg[a],c0--):(hg=new di,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()||(At(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=Nr();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);jr(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}Su.prototype.hA=function(){if(this.source!==""){fg(this.source);var a=this.source;this.source="",this.source=a}},Su.prototype.redraw=function(){this.N(),this.Uc=!0},Su.prototype.hh=function(a,y){var b=this.Eg;if(b!==null){var E=b.getAttribute("src");if(!(b instanceof HTMLImageElement&&(E===null||E==="")||b.ln instanceof Event&&a instanceof $c)){var x=a instanceof jo;E=this.naturalBounds;var z=0,ne=0,ie=this.qn,se=ie?+b.width:b.naturalWidth;if(ie=ie?+b.height:b.naturalHeight,se===void 0&&b.videoWidth&&(se=b.videoWidth),ie===void 0&&b.videoHeight&&(ie=b.videoHeight),se=se||E.width,ie=ie||E.height,se!==0&&ie!==0){var de=se,pe=ie;this.sourceRect.w()&&(z=this.Xg.x,ne=this.Xg.y,se=this.Xg.width,ie=this.Xg.height);var Se=se,Ne=ie,Me=this.Nk,ze=this.Mk;switch(Me){case mr:if(this.sourceRect.w())break;Se>=E.width&&(z=z+ze.offsetX+(Se*ze.x-E.width*ze.x)),Ne>=E.height&&(ne=ne+ze.offsetY+(Ne*ze.y-E.height*ze.y)),se=Math.min(E.width,Se),ie=Math.min(E.height,Ne);break;case wr:Se=E.width,Ne=E.height;break;case yi:case xo:Me===yi?(Me=Math.min(E.height/Ne,E.width/Se),Se*=Me,Ne*=Me):Me===xo&&(Me=Math.max(E.height/Ne,E.width/Se),Se*=Me,Ne*=Me,Se>=E.width&&(z=(z+ze.offsetX+(Se*ze.x-E.width*ze.x)/Se)*se),Ne>=E.height&&(ne=(ne+ze.offsetY+(Ne*ze.y-E.height*ze.y)/Ne)*ie),se*=1/(Se/E.width),ie*=1/(Ne/E.height),Se=E.width,Ne=E.height)}Me=this.Df()*y.scale;var qe=Se*Me*Ne*Me,Pt=se*ie/qe,yt=b.__goCache;Me=null;var Rt=uE;if(!x){if(b.sq&&yt!==void 0&&4<qe&&Pt>Rt*Rt)for(yt.gi===null&&(OS(yt,4,de,pe,b),OS(yt,16,de,pe,b)),x=yt.gi,de=x.length,pe=0;pe<de&&x[pe].ratio*x[pe].ratio<Pt;pe++)Me=x[pe];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{x=new cl(null).context;try{x.drawImage(this.Eg,0,0)}catch(Bt){this.en=!1}try{x.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Bt){this.vl=!0}}if(this.vl)return}}switch(x=Se<E.width?ze.offsetX+(E.width*ze.x-Se*ze.x):0,ze=Ne<E.height?ze.offsetY+(E.height*ze.y-Ne*ze.y):0,this.flip){case No:a.translate(Math.min(E.width,Se),0),a.scale(-1,1);break;case lo:a.translate(0,Math.min(E.height,Ne)),a.scale(1,-1);break;case Jo:a.translate(Math.min(E.width,Se),Math.min(E.height,Ne)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&yt!==void 0&&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,Ne)),a instanceof jo&&(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,Ne)])}catch(Bt){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,Ne)),a instanceof jo&&(this.bt=[z,ne,se,ie,x,ze,Math.min(E.width,Se),Math.min(E.height,Ne)])}catch(Bt){this.en=!1}switch(this.flip){case No: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,Ne));break;case Jo:a.scale(-1,-1),a.translate(-Math.min(E.width,Se),-Math.min(E.height,Ne))}}}}},Su.prototype.Wl=function(a,y,b,E){var x=this.desiredSize,z=zl(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===wr||z===wi?(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===wr||z===Di?(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)),bo(this.dc,a,y),this.Ge(0,0,a,y)},Su.prototype.eh=function(a,y,b,E){Al(this,a,y,b,E)},pn.Object.defineProperties(Su.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||xt("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var E=this.diagram;E!==null&&hp(E,this),this.Eg=a,a!==null&&b&&a.Bg===void 0&&(a.Bg=new ar),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()||(At(this,!1),this.v())):b&&RS(this,a)),this.g("element",y,a),this.N()}}},source:{get:function(){return this.qo},set:function(a){var y=this.qo;if(y!==a){this.Uc=!0,this.qo=a;var b=hg;if(Ra){var E=null;if(b[a]!==void 0)E=b[a];else if(a!==""){30<c0&&(fg(),b=hg),E=Oi("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}}}),Su.prototype.redraw=Su.prototype.redraw,Su.prototype.reloadSource=Su.prototype.hA;var c0=0,uE=4;Su.className="Picture",hg=new di,Su.clearCache=fg;function MS(){this.gi=null}function OS(a,y,b,E,x){a.gi===null&&(a.gi=[]);var z=new cl(null),ne=z.context,ie=1/y;z.width=b/y,z.height=E/y,z.width!==0&&z.height!==0&&(y=new FS(z.Oa,y),b=1,0<a.gi.length&&(b=a.gi[a.gi.length-1],x=b.source,b=b.ratio),ne.setTransform(ie*b,0,0,ie*b,0,0),ne.yc(),ne.drawImage(x,0,0),a.gi.push(y))}MS.className="PictureCacheArray";function FS(a,y){this.source=a,this.ratio=y}FS.className="PictureCacheInstance";function pg(){this.os=new Ar,this.mc=null}pg.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Ar,this.mc=null};function gg(a,y,b,E,x,z){a.mc=new ja,a.mc.startX=y,a.mc.startY=b,a.mc.isFilled=E,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),x!==void 0&&(a.mc.isShadowed=x)}function cE(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}pg.prototype.moveTo=function(a,y,b){b===void 0&&(b=!1);var E=new To(oa);E.endX=a,E.endY=y,b&&E.close(),this.mc.segments.add(E)},pg.prototype.lineTo=function(a,y,b){b===void 0&&(b=!1);var E=new To(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 To(Xa);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 To(pl);ne.point1X=y,ne.point1Y=b,ne.endX=E,ne.endY=x,z&&ne.close(),a.mc.segments.add(ne)}pg.prototype.arcTo=function(a,y,b,E,x,z,ne){z===void 0&&(z=0),ne===void 0&&(ne=!1);var ie=new To(Da);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 To(wl,ne,ie,y,b,E,x,z),se&&y.close(),a.mc.segments.add(y)}function BS(a){var y=h0;return y!==null?(h0=null,y.reset(a),y):(y=new pg,y.reset(a),y)}var h0=null;pg.className="StreamGeometryContext";function Rl(a,y){var b=a.toLowerCase(),E=en.Ze;E[a]=y,E[b]=a}Rl("Rectangle",function(a,y,b){a="r"+y+","+b;var E=en.Mf[a];return E!==void 0||(E=new Ar(Ar.u),E.endX=y,E.endY=b,en.Nf<en.vm&&(en.Mf[a]=E,en.Nf++)),E}),Rl("Square",function(a,y,b){a="s"+y+","+b;var E=en.Mf[a];return E!==void 0||(E=new Ar(Ar.u),E.endX=y,E.endY=b,E.defaultStretch=yi,en.Nf<en.vm&&(en.Mf[a]=E,en.Nf++)),E}),Rl("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 Ar().add(new ja(a,0,!0).add(new To(Zo,y-a,0)).add(new To(Xa,y,a,y-z,0,y,z)).add(new To(Zo,y,b-a)).add(new To(Xa,y-a,b,y,b-z,y-z,b)).add(new To(Zo,a,b)).add(new To(Xa,0,b-a,z,b,0,b-z)).add(new To(Zo,0,a)).add(new To(Xa,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}),Rl("Border","RoundedRectangle"),Rl("Ellipse",function(a,y,b){a="e"+y+","+b;var E=en.Mf[a];return E!==void 0||(E=new Ar(Ar.F),E.endX=y,E.endY=b,E.spot1=Bu,E.spot2=Ws,en.Nf<en.vm&&(en.Mf[a]=E,en.Nf++)),E}),Rl("Circle",function(a,y,b){a="c"+y+","+b;var E=en.Mf[a];return E!==void 0||(E=new Ar(Ar.F),E.endX=y,E.endY=b,E.spot1=Bu,E.spot2=Ws,E.defaultStretch=yi,en.Nf<en.vm&&(en.Mf[a]=E,en.Nf++)),E}),Rl("TriangleRight",function(a,y,b){return new Ar().add(new ja(0,0).add(new To(Zo,y,.5*b)).add(new To(Zo,0,b).close())).pm(0,.25,.5,.75)}),Rl("TriangleDown",function(a,y,b){return new Ar().add(new ja(0,0).add(new To(Zo,y,0)).add(new To(Zo,.5*y,b).close())).pm(.25,0,.75,.5)}),Rl("TriangleLeft",function(a,y,b){return new Ar().add(new ja(y,b).add(new To(Zo,0,.5*b)).add(new To(Zo,y,0).close())).pm(.5,.25,1,.75)}),Rl("TriangleUp",function(a,y,b){return new Ar().add(new ja(y,b).add(new To(Zo,0,b)).add(new To(Zo,.5*y,0).close())).pm(.25,.5,.75,1)}),Rl("Triangle","TriangleUp"),Rl("Diamond",function(a,y,b){return new Ar().add(new ja(.5*y,0).add(new To(Zo,0,.5*b)).add(new To(Zo,.5*y,b)).add(new To(Zo,y,.5*b).close())).pm(.25,.25,.75,.75)}),Rl("LineH",function(a,y,b){return a=new Ar(Ar.j),a.startX=0,a.startY=b/2,a.endX=y,a.endY=b/2,a}),Rl("LineV",function(a,y,b){return a=new Ar(Ar.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=b,a}),Rl("None","Rectangle"),Rl("BarH","Rectangle"),Rl("BarV","Rectangle"),Rl("MinusLine","LineH"),Rl("PlusLine",function(a,y,b){return new Ar().add(new ja(0,b/2,!1).add(new To(Zo,y,b/2)).add(new To(oa,y/2,0)).add(new To(Zo,y/2,b)))}),Rl("XLine",function(a,y,b){return new Ar().add(new ja(0,b,!1).add(new To(Zo,y,0)).add(new To(oa,0,0)).add(new To(Zo,y,b)))}),Rl("LineRight",function(a,y,b){return new Ar().add(new ja(.25*y,0,!1).add(new To(Zo,.75*y,.5*b)).add(new To(Zo,.25*y,b)))}),Rl("LineDown",function(a,y,b){return new Ar().add(new ja(0,.25*b,!1).add(new To(Zo,.5*y,.75*b)).add(new To(Zo,y,.25*b)))}),Rl("LineLeft",function(a,y,b){return new Ar().add(new ja(.75*y,0,!1).add(new To(Zo,.25*y,.5*b)).add(new To(Zo,.75*y,b)))}),Rl("LineUp",function(a,y,b){return new Ar().add(new ja(0,.75*b,!1).add(new To(Zo,.5*y,.25*b)).add(new To(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=Ri,this.ir=null,this.jr="",this.lr=ts,this.Gq="",this.Hq=fo,this.Pq=_r,this.Kq=pi,this.Up=null,this.Cq=127,this.zr=hi,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 Li(a,y){a===void 0||a instanceof Ns||typeof a=="string"?Tr.call(this,a):(Tr.call(this),a&&(y=a)),this.G=2408959,this.Tf="",this.P=null,this.Jg="",this.Qf=this.Ug=null,this.ec="",this.Ah=this.Ig=null,this.ke=new rt(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new kn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Cn(Li,Tr),Li.prototype.cloneProtected=function(a){Tr.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},Oe=Li.prototype,Oe.Af=function(a){Tr.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Oe.toString=function(){var a=zn(this.constructor)+"#"+Ui(this);return this.data!==null&&(a+="("+vi(this.data)+")"),a};function bu(a){a.P===null?a.P=new Kv:a.P.nc&&(a.P=a.P.copy())}Oe.th=function(){Tr.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Oe.gk=function(a,y,b,E,x,z,ne){var ie=this.diagram;ie!==null&&(a===Pa&&y==="elements"?x instanceof Tr?Uf(x,function(se){by(ie.partManager,se),bh(ie,se)}):Kd(ie,x):a===ka&&y==="elements"&&(x instanceof Tr?Uf(x,function(se){Ey(ie.partManager,se,ie)}):hp(ie,x)),ie.cb(a,y,b,E,x,z,ne))},Oe.La=function(a){if(Tr.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 Tr&&Uf(x,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Li.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Li.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Li.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 Ln),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)))}}},Li.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)}},Li.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=Nr();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var b=0;b<a;b++)this.Jf(y[b]);jr(y)}},Li.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 to?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(b instanceof _o))break e;Pc(b),b=b.copy(),b!==null&&(this.ph()&&this.selectionObject===this.path&&(b.type=Tr.Link),b.adornedObject=y)}if(b!==null){b.type===Tr.Link&&b.v(),this.bh("Selection",b);break e}}this.Jf("Selection")}for(hE(this,a),y=this.adornments;y.next();)y.value.La()}},Li.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=kn.alloc().assign(b);b.ka(),b.x=y.x,b.y=y.y,b.freeze(),a.Xl(E,b),kn.free(E),Qv(a,!1)}}Li.prototype.Ge=function(a,y,b,E){var x=this.uc;x.h(a,y,b,E),this.Lb===null&&(this.Lb=new Mi);var z=this.Lb;z.reset(),this.no(z,a,y,b,E),this.Lb=z,z.ws()||z.pp(x)},Li.prototype.no=function(a,y,b,E,x){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=qi;this.locationSpot.sb()&&(z=this.locationSpot);var ne=rt.alloc();if(this.locationObject!==this)for(y=this.locationObject,b=y.naturalBounds,ne.yi(b.x,b.y,b.width,b.height,z),y.Lb!==null&&y.Lb.Ga(ne),ne.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(ne),ne.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else ne.yi(y,b,E,x,z);a.rotate(this.Kb,ne.x,ne.y),rt.free(ne)}},Li.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Li.prototype.moveTo=function(a,y,b){a=rt.allocAt(a,y),this.move(a,b),rt.free(a)},Li.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())},Li.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())},Li.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new Ln),y.I(a)!==null)return y.I(a);var b=Tr.prototype.fb.call(this,a);return b!==null?(y.set(a,b),b):(y.set(a,null),null)};function Ah(a,y,b,E){E===void 0&&(E=new rt),b=b.Mc()?qi: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}Li.prototype.mi=function(a){return a===void 0&&(a=new kn),a.assign(this.actualBounds)},Li.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function US(a){var y=rt.alloc(),b=a.locationObject,E=b.naturalBounds,x=b instanceof 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 Gf(a,y){var b=a.py;isNaN(a.ag)&&(a.ag=gS(a));var E=a.ag,x=2*E;if(!a.isShadowed)return b.h(y.x-1-E,y.y-1-E,y.width+2+x,y.height+2+x),b;E=y.x,x=y.y;var z=y.width;y=y.height;var ne=a.shadowBlur;return a=a.shadowOffset,z+=ne,y+=ne,E-=ne/2,x-=ne/2,0<a.x?z+=a.x:(E+=a.x,z-=a.x),0<a.y?y+=a.y:(x+=a.y,y-=a.y),b.h(E-1,x-1,z+2,y+2),b}Li.prototype.arrange=function(){if(zt(this)===!1)_S(this);else{Kt(this,!1);var a=this.Ib,y=kn.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),kn.free(y),Qv(this,!1)}},Oe=Li.prototype,Oe.Xl=function(a,y){var b=this.diagram;if(b!==null){var E=!1;if(b.Zi===!1&&a.w()){var x=kn.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),kn.free(x)}!(this.G&65536)&&a.D(y)||VS(this,E,b),b.N(),!a.w()&&!y.w()||so(a,y)||(this instanceof qr&&!b.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Oe.zv=function(a,y,b){if(this.ph()||!a.w())return!1;var E=this.diagram;return E!==null&&HS(this,E,a,y,b),this.pa=a,this.G&=-2097153,!this.ke.w()||E!==null&&!E.animationManager.isTicking&&E.undoManager.isUndoingRedoing||(E=this.ke,this.ke=new rt(E.x+(a.x-y),E.y+(a.y-b)),this.g("location",E,this.ke.copy())),rf(this)===!1&&zt(this)===!1&&(f0(this),_S(this)),!0};function HS(a,y,b,E,x){y===null||a instanceof _o||(y=y.animationManager,y.zb&&Xu(y,a,new rt(E,x),b))}Oe.mm=function(a,y,b){var E=this.ke,x=this.pa;if(b){if(E.x===a&&E.y===y)return;rf(this)||zt(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)},Oe.Av=function(){this.G&=-2097153,f0(this)};function zS(a,y,b){var E=US(a),x=a.diagram,z=b.w(),ne=y.w();z&&ne?a.G&2097152?GS(a,y,b,x,E):jS(a,y,b,x,E):z?GS(a,y,b,x,E):ne&&jS(a,y,b,x,E),a.G|=2097152,rt.free(E),a.Uk()}function GS(a,y,b,E,x){var z=y.x,ne=y.y;y.h(b.x-x.x,b.y-x.y),E!==null&&(b=E.animationManager,(E=b.defaultAnimation.isAnimating)||!b.zb||a instanceof _o||Xu(b,a,new rt(z,ne),y),E||y.x===z&&y.y===ne||a.g("position",new rt(z,ne),y.copy()))}function jS(a,y,b,E,x){var z=b.copy();b.h(y.x+x.x,y.y+x.y),b.D(z)||E===null||a.g("location",z,b.copy())}function VS(a,y,b){Jv(a,!1),a instanceof qr&&Xd(b,a),a.layer.isTemporary||y||b.Ya(),y=a.Ib;var E=b.viewportBounds;E.w()?of(a)?(Vn(y,E)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(E)?(a.Fd(!0),a.updateAdornments()):a.Wb():b.vd=!0}Oe.si=function(){return!0},Oe.Zc=function(){return!0},Oe.ph=function(){return!1},Oe.Dd=function(){return!0};function Xv(a,y,b,E){y.constructor===a.constructor||KS||(KS=!0,Br('Should not change the class of the Part when changing category from "'+b+'" to "'+E+'"'),Br(" Old class: "+zn(a.constructor)+", new class: "+zn(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)}Li.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},Li.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},Li.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},Li.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},Li.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},Li.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},Li.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},Li.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},Li.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}Oe=Li.prototype,Oe.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}Oe.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Oe.N=function(){var a=this.diagram;a!==null&&!zt(this)&&!rf(this)&&this.isVisible()&&this.Ib.w()&&a.N(Gf(this,this.Ib))},Oe.v=function(){Tr.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof qr&&this.labeledLink!==null&&Dl(this.labeledLink),a.$b(!0))},Oe.Vo=function(a){a||(a=this.Ah,a!==null&&ry(a,this))},Oe.Wo=function(a){a||(a=this.Ah,a!==null&&iy(a,this))},Oe.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Oe.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}Oe.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}Oe.Td=function(a){return a instanceof to?$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}Oe.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof to&&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 to&&p0(y,!1),y instanceof qr&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return b},Li.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof qr&&this.isLinkLabel)},Li.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 _o)){if(a.add(y),y instanceof qr){if(b&&y instanceof to)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 Rr)for(y=y.labelNodes;y.next();)af(a,y.value,b,E,x,z)}}pn.Object.defineProperties(Li.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Bi:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var a=this.Ig;return a==null?null:a.diagram}},layerName:{get:function(){return this.Jg},set:function(a){var y=this.Jg;if(y!==a){var b=this.diagram;if((b===null||b.Qj(a)!==null&&!b.partManager.addsToTemporaryLayer)&&(this.Jg=a,b!==null&&b.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(b=y.diagram,b!==null&&(a=b.Qj(a),a!==null&&a!==y)))){var E=y.pc(-1,this,!0);if(0<=E&&b.cb(ka,"parts",y,this,null,E,!0),E=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=E&&b.cb(Pa,"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&&(bu(this),this.P.zq=a,this.g("layerChanged",y,a))}},zOrder:{get:function(){return this.Ao},set:function(a){var y=this.Ao;if(y!==a){this.Ao=a;var b=this.layer;b!==null&&Pf(b,-1,this),this.g("zOrder",y,a),a=this.diagram,a!==null&&a.N()}}},locationObject:{get:function(){if(this.nf===null){var a=this.locationObjectName;a!==""?(a=this.fb(a),a!==null?this.nf=a:this.nf=this):this instanceof _o?this.type!==Tr.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:_r},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),bu(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(),bu(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&&(bu(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:fo},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),bu(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,zt(this)===!1&&(f0(this),b=this.pa,b.w())){var x=this.diagram;if(x===null||x.animationManager.isTicking||!x.undoManager.isUndoingRedoing){var z=b.copy();b.h(b.x+(y.x-E.x),b.y+(y.y-E.y)),HS(this,x,b,z.x,z.y),this.g("position",z,b.copy())}}y=!0}y&&this.g("location",E,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var b=this.diagram,E=this.data,x=null;if(b!==null&&E!==null&&!(this instanceof _o)){var z=b.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(x=this.clone(),x.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),b===null||E===null||this instanceof _o?this instanceof _o&&(x=this.adornedPart,x!==null&&(a=x.Qf,a!==null&&a.remove(y),x.bh(this.category,this))):(z=b.model,z.undoManager.isUndoingRedoing||(this.ph()?(b.partManager.setLinkCategoryForData(E,a),b=b.partManager.findLinkTemplateForCategory(a),b!==null&&(Pc(b),b=b.copy(),b!==null&&Xv(this,b,y,a))):(z!==null&&z.jm(E,a),b=y1(b.partManager,E,a),b!==null&&(Pc(b),b=b.copy(),b===null||b instanceof Rr||(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&&(bu(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&&(bu(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&&(bu(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 Rr?(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&&(bu(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&&(bu(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&&(bu(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:Ri},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),bu(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&&(bu(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&&(bu(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:ts},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),bu(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&&xt("Cannot make a Group a member of itself: "+this.toString()),xt("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 to&&b!==null&&b.ai.remove(this),this.Ah=a,a!==null?ry(a,this):this instanceof to&&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 to){for(b=new ar,af(b,this,!0,0,!0),b=b.iterator;b.next();)if(E=b.value,E instanceof qr)for(E=E.linksConnected;E.next();)mg(E.value)}if(this instanceof qr){for(b=this.linksConnected;b.next();)mg(b.value);b=this.labeledLink,b!==null&&mg(b)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Pf(y,-1,a))}}else xt("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&&(bu(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&&(bu(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&&(bu(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:hi},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),bu(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&&(bu(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&&(bu(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Li.prototype.invalidateLayout=Li.prototype.C,Li.prototype.findCommonContainingGroup=Li.prototype.px,Li.prototype.isMemberOf=Li.prototype.Td,Li.prototype.findTopLevelPart=Li.prototype.sz,Li.prototype.findSubGraphLevel=Li.prototype.oz,Li.prototype.ensureBounds=Li.prototype.Va,Li.prototype.getDocumentBounds=Li.prototype.mi,Li.prototype.findObject=Li.prototype.fb,Li.prototype.moveTo=Li.prototype.moveTo,Li.prototype.invalidateAdornments=Li.prototype.Wb,Li.prototype.clearAdornments=Li.prototype.Ej,Li.prototype.removeAdornment=Li.prototype.Jf,Li.prototype.addAdornment=Li.prototype.bh,Li.prototype.findAdornment=Li.prototype.Pj,Li.prototype.updateTargetBindings=Li.prototype.La;var KS=!1;Li.className="Part",Li.LayoutNone=0,Li.LayoutAdded=1,Li.LayoutRemoved=2,Li.LayoutShown=4,Li.LayoutHidden=8,Li.LayoutNodeSized=16,Li.LayoutGroupLayout=32,Li.LayoutNodeReplaced=64,Li.LayoutStandard=127,Li.LayoutAll=16777215;function _o(a,y){a===void 0||a instanceof Ns||typeof a=="string"?Li.call(this,a):(Li.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)}Cn(_o,Li),_o.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},_o.prototype.updateRelationshipsFromData=function(){},_o.prototype.Ul=function(a){var y=this.adornedObject,b=y==null?void 0:y.part;if(b instanceof Rr&&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)}}},_o.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!zt(a))},_o.prototype.Zc=function(){return!1},_o.prototype.gk=function(a,y,b,E,x,z,ne){if(a===Pa&&y==="elements"){if(x instanceof $l)this.$a===null&&(this.$a=x);else if(x instanceof Tr){var ie=x.Nl(function(se){return se instanceof $l});ie instanceof $l&&this.$a===null&&(this.$a=ie)}}else a===ka&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof Tr&&this.$a.rg(E)&&(this.$a=null));Li.prototype.gk.call(this,a,y,b,E,x,z,ne)},_o.prototype.updateAdornments=function(){},_o.prototype.Lj=function(){},pn.Object.defineProperties(_o.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(a){var y=this.adornedPart,b=null;a!==null&&(b=a.part),y===null||a!==null&&y===b||y.Jf(this.category),this.ue=a,b!==null&&b.bh(this.category,this)}},adornedPart:{get:function(){var a=this.ue;return a!==null?a.part:null}},containingGroup:{get:function(){return null}}}),_o.className="Adornment";function ey(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=La,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 Ns||typeof a=="string"?Li.call(this,a):(Li.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new er,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Cn(qr,Li),qr.prototype.cloneProtected=function(a){Li.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Oe=qr.prototype,Oe.Af=function(a){Li.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())}Oe.th=function(){Li.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function YS(a,y){y!==null&&(a.af===null&&(a.af=new ar),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}Oe.Lz=function(a,y,b){y==null&&(y=""),b==null&&(b=""),a=XS(this,a,y,b),a!==null&&a.Sl()},Oe.gk=function(a,y,b,E,x,z,ne){a===Pa&&y==="elements"?this.wc=null:a===ka&&y==="elements"&&(this.wc=null),Li.prototype.gk.call(this,a,y,b,E,x,z,ne)},Oe.Bd=function(a){for(var y=this.linksConnected;y.next();){var b=y.value;a!==void 0&&a.contains(b)||(Gu(b.fromPort),Gu(b.toPort),b.bb())}};function QS(a,y){for(a=a.linksConnected;a.next();){var b=a.value;(b.fromPort===y||b.toPort===y)&&(Gu(b.fromPort),Gu(b.toPort),b.bb())}}function Gu(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Gu(y.port)}}Oe.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(!Li.prototype.isVisible.call(this))return!1;var a=!0,y=pd,b=this.diagram;if(b!==null&&(a=b.isTreePathToChildren,y=b.treeCollapsePolicy),y===pd){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===qa){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(E){return!E.isTreeExpanded}))return!1}else if(y===qd&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(E){return!E.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},qr.prototype.Zb=function(a){Li.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 ar,y=new ar;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},Oe=qr.prototype,Oe.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},Oe.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},Oe.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 ar,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 ar,y.add(b),y.add(x)):b=x)}return y!==null?y.iterator:b!==null?new Zi(b):Bi},Oe.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 ar,y.add(b),y.add(x)):b=x)}return y!==null?y.iterator:b!==null?new Zi(b):Bi},Oe.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 ar,y.add(b),y.add(x)):b=x)}return y!==null?y.iterator:b!==null?new Zi(b):Bi},Oe.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},Oe.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){Gu(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){Gu(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)},Oe=qr.prototype,Oe.Vo=function(a){Li.prototype.Vo.call(this,a),a||($g(this),a=this.Yk,a!==null&&a1(a,this))},Oe.Wo=function(a){Li.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Oe.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,Li.prototype.Lj.call(this)},Oe.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 Ln: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=Nr()),b.push(E);if(b!==null){for(a=0;a<b.length;a++)y.remove(b[a]);jr(b)}}}Oe.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},Oe.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}},Oe.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},Oe.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},Oe.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},Oe.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 ar;return a(this,y),y},Oe.uz=function(){return e1(this,this)};function e1(a,y){return y=y.pg(),y===null?0:1+e1(a,y)}Oe.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},Oe.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 er,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 er,y.add(b),y.add(a)):b=a);return y!==null?y.iterator:b!==null?new Zi(b):Bi},Oe.wz=function(a){a===void 0&&(a=1/0);var y=new ar;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 ar;b.add(this),t1(this,b,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===pd),y.Ue=!1}};function t1(a,y,b,E,x,z,ne){if(1<E)for(var ie=b?a.Mo():a.Sd();ie.next();){var se=ie.value;se.isTreeLink&&(se=se.To(a),se===null||se===a||y.contains(se)||(y.add(se),t1(se,y,b,E-1,x,z,ne)))}else n1(a,y,b,x,z,ne)}function n1(a,y,b,E,x,z){for(var ne=x===a?!0:a.isTreeExpanded,ie=b?a.Mo():a.Sd(),se={};ie.next();){var de=ie.value;if(de.isTreeLink&&(de=de.To(a),de!==null&&de!==a)){var pe=y.contains(de);if(pe||y.add(de),ne){var Se=b?de.Oo():de.Po();se.uv=a,Se.all(function(Ne){return function(Me){return Me===Ne.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 ar;b.add(this),r1(this,b,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===pd),y.Ue=!1}};function r1(a,y,b,E,x,z,ne){for(var ie=z===a?!1:a.isTreeExpanded,se=b?a.Mo():a.Sd(),de={};se.next();){var pe=se.value;if(pe.isTreeLink&&(ie||pe.fd||pe.bb(),pe=pe.To(a),pe!==null&&pe!==a&&!y.contains(pe))){if(y.add(pe),!ie){pe.Zb(!0),pe.oh();var Se=b?pe.Oo():pe.Po();de.vv=a,Se.all(function(Ne){return function(Me){return Me===Ne.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}pn.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&&Xd(b,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:La},set:function(a){typeof a=="number"&&(a=new Xi(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Nh(this),this.Ba.yp=a;var b=this.diagram;b!==null&&Xd(b,this),this.g("avoidableMargin",y,a)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return this.Ba!==null?this.Ba.Dq:null},set:function(a){var y=this.linkConnected;y!==a&&(Nh(this),this.Ba.Dq=a,this.g("linkConnected",y,a))}},linkDisconnected:{get:function(){return this.Ba!==null?this.Ba.Eq:null},set:function(a){var y=this.linkDisconnected;y!==a&&(Nh(this),this.Ba.Eq=a,this.g("linkDisconnected",y,a))}},linkValidation:{get:function(){return this.Ba!==null?this.Ba.gj:null},set:function(a){var y=this.linkValidation;y!==a&&(Nh(this),this.Ba.gj=a,this.g("linkValidation",y,a))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(a){var y=this.Yk;if(y!==a){var b=this.diagram,E=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),b!==null&&E!==null&&!b.undoManager.isUndoingRedoing){var x=y.data,z=b.model;if(x!==null&&z.ri()){var ne=z.wa(E);ne!==void 0&&z.Qx(x,ne)}}this.containingGroup=null}this.Yk=a,a!==null&&(a1(a,this),b===null||E===null||b.undoManager.isUndoingRedoing||(x=a.data,b=b.model,x!==null&&b.ri()&&(E=b.wa(E),E!==void 0&&b.Bu(x,E))),this.containingGroup=a.containingGroup),Dl(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 Qn(qr,"SpreadingNone",10),v0=new Qn(qr,"SpreadingEvenly",11),ny=new Qn(qr,"SpreadingPacked",12);qr.className="Node",qr.SpreadingNone=fE,qr.SpreadingEvenly=v0,qr.SpreadingPacked=ny;function to(a,y){a===void 0||a instanceof Ns||typeof a=="string"?qr.call(this,a):(qr.call(this),a&&(y=a)),this.U|=4608,this.Gn=new ar,this.$a=null,this.Sc=new Aa,this.Sc.group=this,this.gl=new ar,this.tb=this.$p=null,y&&Object.assign(this,y)}Cn(to,qr),to.prototype.cloneProtected=function(a){qr.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(b){return b instanceof $l});y instanceof $l?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())},Oe=to.prototype,Oe.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 Rr)for(b=b.labelNodes;b.next();)b.value.Bd(y)}},Oe.gk=function(a,y,b,E,x,z,ne){if(a===Pa&&y==="elements"){if(x instanceof $l)this.$a===null?this.$a=x:this.$a!==x&&xt("Cannot insert a second Placeholder into the visual tree of a Group.");else if(x instanceof Tr){var ie=x.Nl(function(se){return se instanceof $l});ie instanceof $l&&(this.$a===null?this.$a=ie:this.$a!==ie&&xt("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===ka&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof Tr&&this.$a.rg(E)&&(this.$a=null));qr.prototype.gk.call(this,a,y,b,E,x,z,ne)},Oe.Xl=function(a,y){qr.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Tr.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Tr&&(a=a.Pb()),this.tb===null&&(this.tb=new kn),a.mi(this.tb),a instanceof oo&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Oe.eh=function(a,y,b,E){this.nf=this.$a,qr.prototype.eh.call(this,a,y,b,E)},Oe.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Rr||y.Va()}),qr.prototype.Va.call(this)},Oe.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()&&zt(y))return!1}else if(y instanceof Rr&&y.isVisible()&&zt(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function ry(a,y){if(a.Gn.add(y)){y instanceof to&&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 Rr&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function iy(a,y){if(a.Gn.remove(y)){y instanceof to&&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 Rr&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Oe.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)},to.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},to.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},to.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))},Oe=to.prototype,Oe.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()?(Gu(b.fromPort),Gu(b.toPort),b.bb()):(E=b.toNode,E!==null&&E!==this&&E.Td(this)&&!E.isVisible()&&(Gu(b.fromPort),Gu(b.toPort),b.bb()))}}},Oe.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 ar,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},Oe.iz=function(){var a=this.Rj();a.add(this);for(var y=new ar,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},Oe.hz=function(){function a(b,E){b!==null&&(E.add(b),a(b.containingGroup,E))}var y=new ar;return a(this,y),y},Oe.Rj=function(){var a=new ar;return af(a,this,!0,0,!0),a.remove(this),a},Oe.Zb=function(a){qr.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},to.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 to&&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 Rr)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}to.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 to&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,o1(z,y,b,E)),z instanceof qr)z.Bd(y),b.Cj(z,E);else if(z instanceof Rr)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}to.prototype.move=function(a,y){y===void 0&&(y=!1);var b=y?this.location:this.position,E=b.x;b=b.y;var x=a.x,z=a.y;if(!(E===x||isNaN(E)&&isNaN(x))||!(b===z||isNaN(b)&&isNaN(z))){for(E=x-(isNaN(E)?0:E),b=z-(isNaN(b)?0:b),z=rt.alloc(),qr.prototype.move.call(this,a,y),a=new ar,y=this.Rj().iterator;y.next();)x=y.value,x instanceof Rr&&(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 Rr&&(x.suspendsRouting=a.contains(x),x.fd||x.fromNode!==this&&x.toNode!==this)&&(ne=x.position,z.x=ne.x+E,z.y=ne.y+b,z.w()?x.move(z):x.bb(),ay(x)&&x.bb());rt.free(z)}},pn.Object.defineProperties(to.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&&xt("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)}}}),to.prototype.expandSubGraph=to.prototype.expandSubGraph,to.prototype.collapseSubGraph=to.prototype.collapseSubGraph,to.prototype.findSubGraphParts=to.prototype.Rj,to.prototype.findContainingGroupChain=to.prototype.hz,to.prototype.findExternalNodesConnected=to.prototype.iz,to.prototype.findExternalLinksConnected=to.prototype.Lu,to.prototype.ensureBounds=to.prototype.Va,to.className="Group";function $l(a){rn.call(this),this.yb=ds,this.ko=new kn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Cn($l,rn),$l.prototype.cloneProtected=function(a){rn.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},$l.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)},$l.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof to||a instanceof _o)||xt("Placeholder is not inside a Group or Adornment."),a instanceof to){var y=this.computeBorder(this.ko),b=this.minSize,E=this.dc;for(bo(E,(isFinite(b.width)?Math.max(b.width,y.width):y.width)||0,(isFinite(b.height)?Math.max(b.height,y.height):y.height)||0),this.Ge(0,0,E.width,E.height),E=a.memberParts,b=!1;E.next();)if(E.value.isVisible()){b=!0;break}E=a.diagram,!b||E===null||E.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(b=rt.alloc(),b.xi(y,a.locationSpot),b.D(a.location)||(a.location=b),rt.free(b))}else{y=this.dc,b=this.yb,E=b.left+b.right;var x=b.top+b.bottom,z=a.adornedObject;a.angle=z.li();var ne=0;z instanceof oo&&(ne=z.strokeWidth);var ie=z.Df(),se=z.naturalBounds,de=(se.width+ne)*ie;ne=(se.height+ne)*ie,a.type!==Tr.Link&&(ie=z.ga(a.category==="Selection"?fo:a.locationSpot,rt.alloc()),a.location=ie,rt.free(ie)),isNaN(de)||isNaN(ne)?(a=z.ga(fo,rt.alloc()),de=kn.allocAt(a.x,a.y,0,0),de.Ye(z.ga(Uo,a)),de.Ye(z.ga(Oo,a)),de.Ye(z.ga(Ga,a)),bo(y,de.width+E||0,de.height+x||0),this.Ge(-b.left,-b.top,y.width,y.height),rt.free(a),kn.free(de)):(bo(y,de+E||0,ne+x||0),this.Ge(-b.left,-b.top,y.width,y.height))}},$l.prototype.eh=function(a,y,b,E){this.actualBounds.h(a,y,b,E)},$l.prototype.computeBorder=function(a){var y=this.part,b=y.diagram,E=b===null||!b.animationManager.isAnimating;if(b!==null&&y instanceof to&&!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=kn.alloc(),x=this.computeMemberBounds(b);var z=this.yb;return y instanceof to&&!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)),kn.free(b),E&&y instanceof to&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},$l.prototype.computeMemberBounds=function(a){if(!(this.part instanceof to))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 Rr&&(!y.computesBoundsIncludingLinks||Lt(ie)||ie.fromNode===y||ie.toNode===y))continue;ie=ie.actualBounds,ie.left<b&&(b=ie.left),ie.top<E&&(E=ie.top),ie.right>x&&(x=ie.right),ie.bottom>z&&(z=ie.bottom)}}return isFinite(b)&&isFinite(E)?a.h(b,E,x-b,z-E):(y=y.location,a.h(y.x,y.y,0,0)),a},pn.Object.defineProperties($l.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Xi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),$l.className="Placeholder";function Rr(a){Li.call(this,Tr.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=eu,this.Om=0,this.Qm=eu,this.Rm=NaN,this.qj=uy,this.po=.5,this.wd=null,this.Nb=new er().freeze(),this.Tg=this.Mg=null,this.ml=new kn,this.ua=new Ar,this.u=this.o=this.Sf=this.Wf=null,this.su=new rt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Cn(Rr,Li),Rr.prototype.cloneProtected=function(a){Li.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())},Oe=Rr.prototype,Oe.Af=function(a){Li.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&&Gu(y),a=a.toPort,a!==null&&Gu(a)},Oe.qb=function(a){a.classType===Rr?(a.value&2)===2?this.routing=a:a===rc||a===kh||a===yg?this.curve=a:a===nm||a===w0||a===C0?this.adjusting=a:a!==uy&&a!==eu&&xt("Unknown Link enum value for a Link property: "+a):Li.prototype.qb.call(this,a)},Oe.Xc=function(){this.ba===null&&(this.ba=new io)},Oe.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),zt(a)||rf(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),zt(a)||rf(a)))},Oe.zv=function(){return!1},Oe.Av=function(){},Oe.Zc=function(){return!1},Rr.prototype.computeAngle=function(a,y,b){return Rr.computeAngle(y,b)},Rr.computeAngle=function(a,y){switch(a){default:case eu: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 mg(a){var y=a.fromNode,b=a.toNode,E=null;if(y!==null?E=b!==null?y.px(b):y.containingGroup:b!==null?E=b.containingGroup:E=null,y=E,b=a.Ah,b!==y){b!==null&&iy(b,a),a.Ah=y,y!==null&&ry(y,a);var x=a.containingGroupChanged;if(x!==null){var z=!0,ne=a.diagram;ne!==null&&(z=ne.aa,ne.aa=!0),x(a,b,y),ne!==null&&(ne.aa=z)}!a.fd||a.Lw!==b&&a.Mw!==b||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=E}Oe=Rr.prototype,Oe.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Li.prototype.oh.call(this)},Oe.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Oe.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function a1(a,y){a.wd===null&&(a.wd=new ar),a.wd.add(y),a.v()}Oe.Vo=function(a){if(Li.prototype.Vo.call(this,a),jf(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,g0(a,this,y));var b=this.uf;if(b!==null){var E=this.toPort;b===a&&E===y||g0(b,this,E)}em(this)}},Oe.Wo=function(a){if(Li.prototype.Wo.call(this,a),jf(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,m0(a,this,y));var b=this.uf;if(b!==null){var E=this.toPort;b===a&&E===y||m0(b,this,E)}tm(this)}},Oe.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))},Rr.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Rr.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?Li.prototype.move.call(this,a,!1):(a=rt.allocAt(b.x+E,b.y+x),Li.prototype.move.call(this,a,!1),rt.free(a)),Lh(this,E,x),a=this.labelNodes;a.next();)y=a.value,b=y.position,y.moveTo(b.x+E,b.y+x)},Rr.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},Rr.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},Rr.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(ri),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()===rc))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()===rc){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},Rr.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()===rc))return this.ua.wx(.5);if(this.computeCurve()===rc&&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)},Oe=Rr.prototype,Oe.i=function(a){return this.Nb.s[a]},Oe.dd=function(a,y){this.Nb.cd(a,y)},Oe.L=function(a,y,b){this.Nb.cd(a,new rt(y,b))},Oe.Kz=function(a,y){this.Nb.Gb(a,y)},Oe.m=function(a,y,b){this.Nb.Gb(a,new rt(y,b))},Oe.ne=function(a){this.Nb.add(a)},Oe.yf=function(a,y){this.Nb.add(new rt(a,y))},Oe.pv=function(a){this.Nb.mb(a)},Oe.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 er,z=a.Nb.iterator;z.next();){var ne=z.value;x.add(new rt(ne.x+y,ne.y+b).freeze())}x.freeze(),z=a.Nb,a.Nb=x,ne=a.diagram,isNaN(y)||isNaN(b)||ne!==null&&ne.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+b),a.pa.h(a.pa.x+y,a.pa.y+b),Dl(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)}}Oe.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Oe.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)}},Oe.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))}Oe.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())}},Oe.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()}}},Rr.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(kp||(kp=new qr,kp.desiredSize=qn,kp.Va()),this.defaultFromPoint&&(kp.location=this.defaultFromPoint,kp.Va(),y=a=kp)):y=this.fromPort,y!==null&&!a.isVisible()){var b=a.findVisibleNode();b!==null&&b!==a?(a=b,y=b.port):a=b}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var E=this.toNode,x=null;if(E===null?(Ip||(Ip=new qr,Ip.desiredSize=qn,Ip.Va()),this.defaultToPoint&&(Ip.location=this.defaultToPoint,Ip.Va(),x=E=Ip)):x=this.toPort,x===null||E.isVisible()||(b=E.findVisibleNode(),b!==null&&b!==E?(E=b,x=b.port):E=b),this.Mw=E,E===null||!E.location.w())return!1;for(;!(x===null||x.actualBounds.w()&&x.Ed());)x=x.panel;if(x===null)return!1;var z=this.pointsCount,ne=this.computeSpot(!0,y);b=this.computeSpot(!1,x);var ie=vg(ne),se=vg(b),de=y===x&&y!==null,pe=this.isOrthogonal,Se=this.curve===rc;this.Wf=de&&!pe?Se=!0:!1;var Ne=this.computeAdjusting()===eu||de;if(!pe&&!de&&ie&&se){if(ie=!1,!Ne&&3<=z&&(Ne=this.getLinkPoint(a,y,ne,!0,!1,E,x),se=this.getLinkPoint(E,x,b,!1,!1,a,y),ie=this.adjustPoints(0,Ne,z-1,se))&&(Ne=this.getLinkPoint(a,y,ne,!0,!1,E,x),se=this.getLinkPoint(E,x,b,!1,!1,a,y),this.adjustPoints(0,Ne,z-1,se)),!ie)if(this.Fj(),Se){z=this.getLinkPoint(a,y,ne,!0,!1,E,x),Ne=this.getLinkPoint(E,x,b,!1,!1,a,y),ie=Ne.x-z.x,se=Ne.y-z.y,de=this.computeCurviness(),Se=pe=0;var Me=z.x+ie/3,ze=z.y+se/3,qe=Me,Pt=ze;en.B(se,0)?Pt=0<ie?Pt-de:Pt+de:(pe=-ie/se,Se=Math.sqrt(de*de/(pe*pe+1)),0>de&&(Se=-Se),qe=(0>se?-1:1)*Se+Me,Pt=pe*(qe-Me)+ze),Me=z.x+2*ie/3,ze=z.y+2*se/3;var yt=Me,Rt=ze;en.B(se,0)?Rt=0<ie?Rt-de:Rt+de:(yt=(0>se?-1:1)*Se+Me,Rt=pe*(yt-Me)+ze),this.Fj(),this.ne(z),this.yf(qe,Pt),this.yf(yt,Rt),this.ne(Ne),this.dd(0,this.getLinkPoint(a,y,ne,!0,!1,E,x)),this.dd(3,this.getLinkPoint(E,x,b,!1,!1,a,y))}else z=E,Ne=x,E=this.getLinkPoint(a,y,ne,!0,!1,z,Ne),x=this.getLinkPoint(z,Ne,b,!1,!1,a,y),this.hasCurviness()?(Ne=x.x-E.x,b=x.y-E.y,ne=this.computeCurviness(),a=E.x+Ne/2,y=E.y+b/2,z=a,ie=y,en.B(b,0)?ie=0<Ne?ie-ne:ie+ne:(Ne=-Ne/b,z=Math.sqrt(ne*ne/(Ne*Ne+1)),0>ne&&(z=-z),z=(0>b?-1:1)*z+a,ie=Ne*(z-a)+y),this.ne(E),this.yf(z,ie),this.ne(x)):(this.ne(E),this.ne(x),ie=kn.alloc(),y.mi(ie),se=ie.ca(x),Ne.mi(ie),de=ie.ca(E),(se||de)&&(ne=y.ga(b0(ne),new rt),this.dd(0,this.getLinkPointFromPoint(a,y,ne,x,!0,ne)),b=Ne.ga(b0(b),new rt),this.dd(1,this.getLinkPointFromPoint(z,Ne,b,E,!1,b))),kn.free(ie))}else{Se=this.isAvoiding,Ne&&(pe&&Se||de)&&this.Fj();var Bt=de?this.computeCurviness():0;Se=this.getLinkPoint(a,y,ne,!0,pe,E,x),Me=qe=ze=0,(pe||!ie||de)&&(Pt=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>Bt&&(Me-=180)),0>Me?Me+=360:360<=Me&&(Me-=360),de&&(Pt+=Math.abs(Bt)*(pe?1:2)),Me===0?ze=Pt:Me===90?qe=Pt:Me===180?ze=-Pt:Me===270?qe=-Pt:(ze=Pt*Math.cos(Me*Math.PI/180),qe=Pt*Math.sin(Me*Math.PI/180)),ne.Mc()&&de&&(Pt=y.ga(qi,rt.alloc()),yt=rt.allocAt(Pt.x+1e3*ze,Pt.y+1e3*qe),this.getLinkPointFromPoint(a,y,Pt,yt,!0,Se),rt.free(Pt),rt.free(yt))),Pt=this.getLinkPoint(E,x,b,!1,pe,a,y);var Gt=Rt=yt=0;if(pe||!se||de){var $t=this.computeEndSegmentLength(E,x,b,!1);Gt=this.getLinkDirection(E,x,Pt,b,!1,pe,a,y),de&&(se||ne.D(b)||!pe&&ne.x+b.x===1&&ne.y+b.y===1)&&(Gt+=pe?0:30,0>Bt&&(Gt+=180)),0>Gt?Gt+=360:360<=Gt&&(Gt-=360),de&&($t+=Math.abs(Bt)*(pe?1:2)),Gt===0?yt=$t:Gt===90?Rt=$t:Gt===180?yt=-$t:Gt===270?Rt=-$t:(yt=$t*Math.cos(Gt*Math.PI/180),Rt=$t*Math.sin(Gt*Math.PI/180)),b.Mc()&&de&&(b=x.ga(qi,rt.alloc()),ne=rt.allocAt(b.x+1e3*yt,b.y+1e3*Rt),this.getLinkPointFromPoint(E,x,b,ne,!1,Pt),rt.free(b),rt.free(ne))}b=Se,(pe||!ie||de)&&(b=new rt(Se.x+ze,Se.y+qe)),ne=Pt,(pe||!se||de)&&(ne=new rt(Pt.x+yt,Pt.y+Rt)),!Ne&&!pe&&ie&&3<z&&this.adjustPoints(0,Se,z-2,ne)?this.dd(z-1,Pt):!Ne&&!pe&&se&&3<z&&this.adjustPoints(1,b,z-1,Pt)?this.dd(0,Se):!Ne&&(pe?6<=z:4<z)&&this.adjustPoints(1,b,z-2,ne)?(this.dd(0,Se),this.dd(z-1,Pt)):(this.Fj(),this.ne(Se),(pe||!ie||de)&&this.ne(b),pe&&this.addOrthoPoints(b,Me,ne,Gt,a,E),(pe||!se||de)&&this.ne(ne),this.ne(Pt))}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}Rr.prototype.getLinkPointFromPoint=function(a,y,b,E,x,z){if(z===void 0&&(z=new rt),a===null||y===null)return z.assign(b),z;if(a.isVisible()||(x=a.findVisibleNode(),x!==null&&x!==a&&(y=x.port)),a=null,x=y.panel,x===null||x.se()||(x=x.panel),x===null){x=E.x,E=E.y;var ne=b.x;b=b.y}else{a=x.oe,x=1/(a.m11*a.m22-a.m12*a.m21),ne=a.m22*x;var ie=-a.m12*x,se=-a.m21*x,de=a.m11*x,pe=x*(a.m21*a.dy-a.m22*a.dx),Se=x*(a.m12*a.dx-a.m11*a.dy);x=E.x*ne+E.y*se+pe,E=E.x*ie+E.y*de+Se,ne=b.x*ne+b.y*se+pe,b=b.x*ie+b.y*de+Se}return y.Sj(x,E,ne,b,z),a!==null&&z.transform(a),z};function S0(a,y){var b=y.Zn;return b===null&&(b=new Dp,b.port=y,b.node=y.part,y.Zn=b),p1(b,a)}Rr.prototype.getLinkPoint=function(a,y,b,E,x,z,ne,ie){if(ie===void 0&&(ie=new rt),b.sb()&&!vg(b))return y.ga(b,ie),ie;if(b.$c()){var se=S0(this,y);if(se!==null){if(ie.assign(se.Zo),x&&this.routing===l1){var de=S0(this,ne);if(de!==null&&se.Gl<de.Gl){se=rt.alloc(),de=rt.alloc();var pe=new kn(y.ga(fo,se),y.ga(Uo,de)),Se=this.computeSpot(!E,ne);a=this.getLinkPoint(z,ne,Se,!E,x,a,y,de),(b.Hf(Us)||b.Hf(ba))&&a.y>=pe.y&&a.y<=pe.y+pe.height?ie.y=a.y:(b.Hf(da)||b.Hf(hs))&&a.x>=pe.x&&a.x<=pe.x+pe.width&&(ie.x=a.x),rt.free(se),rt.free(de)}}return ie}}return b=y.ga(b0(b),rt.alloc()),this.pointsCount>(x?6:2)?(ne=E?this.i(1):this.i(this.pointsCount-2),x&&(ne=oy(b,ne.copy()))):(se=this.computeSpot(!E,ne),z=rt.alloc(),ne=ne.ga(b0(se),z),x&&(ne=oy(b,ne)),rt.free(z)),this.getLinkPointFromPoint(a,y,b,ne,E,ie),rt.free(b),ie},Rr.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(qi,rt.alloc()),this.pointsCount>(z?6:2)?(ie=x?this.i(1):this.i(this.pointsCount-2),ie=z?oy(se,ie.copy()):b):(b=rt.alloc(),ie=ie.ga(qi,b),rt.free(b)),b=Math.abs(ie.x-se.x)>Math.abs(ie.y-se.y)?ie.x>=se.x?0:180:ie.y>=se.y?90:270,rt.free(se),se=b}return E.Mc()&&ne.Td(a)&&(se+=180,360<=se&&(se-=360)),vg(E)||(a=y.li(),a===0)||(45<=a&&135>a?se+=90:135<=a&&225>a?se+=180:225<=a&&315>a&&(se+=270),360<=se&&(se-=360)),se},Rr.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)},Rr.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=qi:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===ts?Ji:y)):(a=y||this.toPort,a===null?a=qi:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===ts?Ji:y)),a};function vg(a){return a===Ji||a.x===.5&&a.y===.5}function b0(a){return a.x===.5&&a.y===.5?a:qi}Rr.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==eu&&4<this.pointsCount?this.computeMidPoint(new rt):(a=y.Zn,a=a!==null?p1(a,this):null,a!==null?a.Zo:y.ga(qi))},Rr.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},Rr.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=Mi.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return Lv(this,y,b,x),z===void 0&&Mi.free(ne),!0;if(this.Yc(a,ne)){var ie=!1;if(!this.isAtomic)for(var se=this.O.s,de=se.length;de--;){var pe=se[de];if(pe.visible||pe===this.locationObject){var Se=pe.actualBounds,Ne=this.naturalBounds;if(!(Se.x>Ne.width||Se.y>Ne.height||0>Se.x+Se.width||0>Se.y+Se.height)){if(Se=Mi.alloc(),Se.set(ne),pe instanceof Tr)ie=pe.Cf(a,y,b,E,x,Se);else if(this.path===pe){if(pe instanceof oo)if(ie=a,Ne=E,pe.pickable===!1)ie=!1;else if(Se.multiply(pe.transform),Ne)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,Ne=Me.right;var qe=Me.top;Me=Me.bottom;var Pt=rt.alloc(),yt=rt.alloc(),Rt=rt.alloc(),Bt=Mi.alloc();Bt.set(ze),Bt.bv(pe.transform),Bt.Vj(),yt.x=Ne,yt.y=qe,yt.transform(Bt),Pt.x=ie,Pt.y=qe,Pt.transform(Bt),ze=!1,zf(pe,Pt,yt,Rt)?ze=!0:(Pt.x=Ne,Pt.y=Me,Pt.transform(Bt),zf(pe,Pt,yt,Rt)?ze=!0:(yt.x=ie,yt.y=Me,yt.transform(Bt),zf(pe,Pt,yt,Rt)?ze=!0:(Pt.x=ie,Pt.y=qe,Pt.transform(Bt),zf(pe,Pt,yt,Rt)&&(ze=!0)))),Mi.free(Bt),rt.free(Pt),rt.free(yt),rt.free(Rt),ie=ze}}else ie=pe.fh(ie,Se)}else ie=bs(pe,a,E,Se);ie&&(Ne=pe,y!==null&&(Ne=y(pe)),Ne&&(b===null||b(Ne))&&x.add(Ne)),Mi.free(Se)}}}return z===void 0&&Mi.free(ne),ie||this.background!==null||this.areaBackground!==null}return z===void 0&&Mi.free(ne),!1},Rr.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?rc:this.curve},Rr.prototype.computeCorner=function(){if(this.curve===rc)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Rr.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},Rr.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(qi).ab(b.ga(qi))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ne)+Math.abs(Math.cos(y)*x)+1)),this.curve===rc&&(a*=1.333)}}return a},Rr.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var b=a[y];b.computeAdjusting()===eu&&b.bb()}},Rr.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=u1;var y=this.Sf;if(y!==null){for(var b=Nr(),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),jr(b)}}return a},Rr.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Rr.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Rr.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 Ne=E.y-Se;for(se=Math.sqrt(ie*ie+Ne*Ne),en.$(ie,0)?Ne=0>Ne?-Math.PI/2:Math.PI/2:(Ne=Math.atan(Ne/Math.abs(ie)),0>ie&&(Ne=Math.PI-Ne)),de=se/de,pe=Ne-pe,this.dd(a,y),a+=1;a<b;a++)y=this.i(a),ie=y.x-x,se=y.y-z,y=Math.sqrt(ie*ie+se*se),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,Ne=E.y;var Me=1;if(se-ie!==0){var ze=(Ne-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,Pt=y.y,yt=.5;de!==0&&(yt=((x-qe)*(x-ne)+(z-Pt)*(z-Se))/de);var Rt=x+yt*(ne-x),Bt=z+yt*(Se-z);y=Math.sqrt((qe-Rt)*(qe-Rt)+(Pt-Bt)*(Pt-Bt)),Pt<ze*(qe-Rt)+Bt&&(y=-y),0<ze&&(y=-y),qe=ie+yt*(se-ie),yt=pe+yt*(Ne-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,Ne=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,Ne),b=!1;break e}this.dd(a,y),this.dd(b,E),b=!0}return b;default:return!1}},Rr.prototype.addOrthoPoints=function(a,y,b,E,x,z){0>y?y+=360:360<=y&&(y-=360),0>E?E+=360:360<=E&&(E-=360);var ne=E;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,E=315<=E||45>E?0:45<=E&&135>E?90:135<=E&&225>E?180:270;var ie=x.actualBounds.copy(),se=z.actualBounds.copy();if(ie.w()&&se.w()){ie.Bc(lm,lm),se.Bc(lm,lm),ie.Ye(a),se.Ye(b);var de=rt.alloc(),pe=rt.alloc();y===0?b.x>a.x||E===270&&b.y<a.y&&se.right>a.x||E===90&&b.y>a.y&&se.right>a.x?(de.h(b.x,a.y),pe.h(b.x,(a.y+b.y)/2),E===180?(de.x=this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!1),pe.x=de.x,pe.y=b.y):E===270&&b.y<a.y||E===90&&b.y>a.y?(de.x=a.x<se.left?this.computeMidOrthoPosition(a.x,a.y,se.left,b.y,!1):a.x<se.right&&(E===270&&a.y<se.top||E===90&&a.y>se.bottom)?this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!1):se.right,pe.x=de.x,pe.y=b.y):E===0&&a.x<se.left&&a.y>se.top&&a.y<se.bottom&&(de.x=a.x,de.y=a.y<b.y?Math.min(b.y,se.top):Math.max(b.y,se.bottom),pe.y=de.y)):(de.h(a.x,b.y),pe.h((a.x+b.x)/2,b.y),(E===180||E===90&&b.y<ie.top||E===270&&b.y>ie.bottom)&&(E===180&&(se.ca(a)||ie.ca(b))?de.y=this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!0):b.y<a.y&&(E===180||E===90)?de.y=this.computeMidOrthoPosition(a.x,ie.top,b.x,Math.max(b.y,se.bottom),!0):b.y>a.y&&(E===180||E===270)&&(de.y=this.computeMidOrthoPosition(a.x,ie.bottom,b.x,Math.min(b.y,se.top),!0)),pe.x=b.x,pe.y=de.y),de.y>ie.top&&de.y<ie.bottom&&(b.x>=ie.left&&b.x<=a.x||a.x<=se.right&&a.x>=b.x?(E===90||E===270)&&(de.h(Math.max((a.x+b.x)/2,a.x),a.y),pe.h(de.x,b.y)):(de.y=E===270||(E===0||E===180)&&b.y<a.y?Math.min(b.y,E===0?ie.top:Math.min(ie.top,se.top)):Math.max(b.y,E===0?ie.bottom:Math.max(ie.bottom,se.bottom)),pe.x=b.x,pe.y=de.y))):y===180?b.x<a.x||E===270&&b.y<a.y&&se.left<a.x||E===90&&b.y>a.y&&se.left<a.x?(de.h(b.x,a.y),pe.h(b.x,(a.y+b.y)/2),E===0?(de.x=this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!1),pe.x=de.x,pe.y=b.y):E===270&&b.y<a.y||E===90&&b.y>a.y?(de.x=a.x>se.right?this.computeMidOrthoPosition(a.x,a.y,se.right,b.y,!1):a.x>se.left&&(E===270&&a.y<se.top||E===90&&a.y>se.bottom)?this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!1):se.left,pe.x=de.x,pe.y=b.y):E===180&&a.x>se.right&&a.y>se.top&&a.y<se.bottom&&(de.x=a.x,de.y=a.y<b.y?Math.min(b.y,se.top):Math.max(b.y,se.bottom),pe.y=de.y)):(de.h(a.x,b.y),pe.h((a.x+b.x)/2,b.y),(E===0||E===90&&b.y<ie.top||E===270&&b.y>ie.bottom)&&(E===0&&(se.ca(a)||ie.ca(b))?de.y=this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!0):b.y<a.y&&(E===0||E===90)?de.y=this.computeMidOrthoPosition(a.x,ie.top,b.x,Math.max(b.y,se.bottom),!0):b.y>a.y&&(E===0||E===270)&&(de.y=this.computeMidOrthoPosition(a.x,ie.bottom,b.x,Math.min(b.y,se.top),!0)),pe.x=b.x,pe.y=de.y),de.y>ie.top&&de.y<ie.bottom&&(b.x<=ie.right&&b.x>=a.x||a.x>=se.left&&a.x<=b.x?(E===90||E===270)&&(de.h(Math.min((a.x+b.x)/2,a.x),a.y),pe.h(de.x,b.y)):(de.y=E===270||(E===0||E===180)&&b.y<a.y?Math.min(b.y,E===180?ie.top:Math.min(ie.top,se.top)):Math.max(b.y,E===180?ie.bottom:Math.max(ie.bottom,se.bottom)),pe.x=b.x,pe.y=de.y))):y===90?b.y>a.y||E===180&&b.x<a.x&&se.bottom>a.y||E===0&&b.x>a.x&&se.bottom>a.y?(de.h(a.x,b.y),pe.h((a.x+b.x)/2,b.y),E===270?(de.y=this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!0),pe.x=b.x,pe.y=de.y):E===180&&b.x<a.x||E===0&&b.x>a.x?(de.y=a.y<se.top?this.computeMidOrthoPosition(a.x,a.y,b.x,se.top,!0):a.y<se.bottom&&(E===180&&a.x<se.left||E===0&&a.x>se.right)?this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!0):se.bottom,pe.x=b.x,pe.y=de.y):E===90&&a.y<se.top&&a.x>se.left&&a.x<se.right&&(de.x=a.x<b.x?Math.min(b.x,se.left):Math.max(b.x,se.right),de.y=a.y,pe.x=de.x)):(de.h(b.x,a.y),pe.h(b.x,(a.y+b.y)/2),(E===270||E===0&&b.x<ie.left||E===180&&b.x>ie.right)&&(E===270&&(se.ca(a)||ie.ca(b))?de.x=this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!1):b.x<a.x&&(E===270||E===0)?de.x=this.computeMidOrthoPosition(ie.left,a.y,Math.max(b.x,se.right),b.y,!1):b.x>a.x&&(E===270||E===180)&&(de.x=this.computeMidOrthoPosition(ie.right,a.y,Math.min(b.x,se.left),b.y,!1)),pe.x=de.x,pe.y=b.y),de.x>ie.left&&de.x<ie.right&&(b.y>=ie.top&&b.y<=a.y||a.y<=se.bottom&&a.y>=b.y?(E===0||E===180)&&(de.h(a.x,Math.max((a.y+b.y)/2,a.y)),pe.h(b.x,de.y)):(de.x=E===180||(E===90||E===270)&&b.x<a.x?Math.min(b.x,E===90?ie.left:Math.min(ie.left,se.left)):Math.max(b.x,E===90?ie.right:Math.max(ie.right,se.right)),pe.x=de.x,pe.y=b.y))):b.y<a.y||E===180&&b.x<a.x&&se.top<a.y||E===0&&b.x>a.x&&se.top<a.y?(de.h(a.x,b.y),pe.h((a.x+b.x)/2,b.y),E===90?(de.y=this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!0),pe.x=b.x,pe.y=de.y):E===180&&b.x<a.x||E===0&&b.x>=a.x?(de.y=a.y>se.bottom?this.computeMidOrthoPosition(a.x,a.y,b.x,se.bottom,!0):a.y>se.top&&(E===180&&a.x<se.left||E===0&&a.x>se.right)?this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!0):se.top,pe.x=b.x,pe.y=de.y):E===270&&a.y>se.bottom&&a.x>se.left&&a.x<se.right&&(de.x=a.x<b.x?Math.min(b.x,se.left):Math.max(b.x,se.right),de.y=a.y,pe.x=de.x)):(de.h(b.x,a.y),pe.h(b.x,(a.y+b.y)/2),(E===90||E===0&&b.x<ie.left||E===180&&b.x>ie.right)&&(E===90&&(se.ca(a)||ie.ca(b))?de.x=this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!1):b.x<a.x&&(E===90||E===0)?de.x=this.computeMidOrthoPosition(ie.left,a.y,Math.max(b.x,se.right),b.y,!1):b.x>a.x&&(E===90||E===180)&&(de.x=this.computeMidOrthoPosition(ie.right,a.y,Math.min(b.x,se.left),b.y,!1)),pe.x=de.x,pe.y=b.y),de.x>ie.left&&de.x<ie.right&&(b.y<=ie.bottom&&b.y>=a.y||a.y>=se.top&&a.y<=b.y?(E===0||E===180)&&(de.h(a.x,Math.min((a.y+b.y)/2,a.y)),pe.h(b.x,de.y)):(de.x=E===180||(E===90||E===270)&&b.x<a.x?Math.min(b.x,E===270?ie.left:Math.min(ie.left,se.left)):Math.max(b.x,E===270?ie.right:Math.max(ie.right,se.right)),pe.x=de.x,pe.y=b.y)));var Se=b;if(this.isAvoiding){var Ne=this.diagram;if(Ne===null||x===z||this.layer.isTemporary||!Mf(Ne)||ie.ca(Se)&&!z.Td(x)||se.ca(a)&&!x.Td(z))y=!1;else{var Me=Qh(Ne,!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(Ne.isVirtualized){Ne=Me.bounds.copy(),Ne.Bc(-Me.Ho,-Me.Go);var qe=rt.alloc();Sg(Me,a.x,a.y)||(en.Ff(Ne.x,Ne.y,Ne.x+Ne.width,Ne.y+Ne.height,a.x,a.y,de.x,de.y,qe)?(b=a=qe.copy(),y=qe.ab(de)):en.Ff(Ne.x,Ne.y,Ne.x+Ne.width,Ne.y+Ne.height,de.x,de.y,pe.x,pe.y,qe)?(b=a=qe.copy(),y=qe.ab(pe)):en.Ff(Ne.x,Ne.y,Ne.x+Ne.width,Ne.y+Ne.height,pe.x,pe.y,Se.x,Se.y,qe)&&(b=a=qe.copy(),y=qe.ab(Se))),Sg(Me,Se.x,Se.y)||(en.Ff(Ne.x,Ne.y,Ne.x+Ne.width,Ne.y+Ne.height,Se.x,Se.y,pe.x,pe.y,qe)?(ze=Se=qe.copy(),E=pe.ab(qe)):en.Ff(Ne.x,Ne.y,Ne.x+Ne.width,Ne.y+Ne.height,pe.x,pe.y,de.x,de.y,qe)?(ze=Se=qe.copy(),E=de.ab(qe)):en.Ff(Ne.x,Ne.y,Ne.x+Ne.width,Ne.y+Ne.height,de.x,de.y,a.x,a.y,qe)&&(ze=Se=qe.copy(),E=a.ab(qe))),rt.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=Md(Me,Se.x,Se.y),!Me.abort&&se>=bg&&(d1(Me),ie.Bc(Me.Ho*Me.Hx,Me.Go*Me.Ix),h1(Me,a,y,Se,E,ie,!1),se=Md(Me,Se.x,Se.y)),!Me.abort&&se<bg&&Md(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())),rt.free(de),rt.free(pe)}},Rr.prototype.computeMidOrthoPosition=function(a,y,b,E,x){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),x?(y+E)/2+z:(a+b)/2+z};function ay(a){if(a.diagram===null||!a.isAvoiding||!Mf(a.diagram))return!1;var y=a.points.s,b=y.length;if(4>b)return!1;a=Qh(a.diagram,!0,a.containingGroup,null);for(var E=1;E<b-2;E++){var x=y[E],z=y[E+1];if(!a.Yj(Math.min(x.x,z.x),Math.min(x.y,z.y),Math.abs(x.x-z.x),Math.abs(x.y-z.y)))return!0}return!1}function sy(a,y,b,E,x,z,ne){var ie=y.Ho,se=y.Go,de=Md(y,b,E),pe=b,Se=E;for(x===0?pe+=ie:x===90?Se+=se:x===180?pe-=ie:Se-=se,x!==ne&&de>Vf&&Md(y,pe,Se)!==de-1&&(Md(y,b-ie,E)===de-1?(x=180,pe=b-ie,Se=E):Md(y,b+ie,E)===de-1?(x=0,pe=b+ie,Se=E):Md(y,b,E-se)===de-1?(x=270,pe=b,Se=E-se):Md(y,b,E+se)===de-1&&(x=90,pe=b,Se=E+se));de>Vf&&Md(y,pe,Se)===de-1;)b=pe,E=Se,x===0?pe+=ie:x===90?Se+=se:x===180?pe-=ie:Se-=se,--de;z?de>Vf&&(x===180||x===0?b=Math.floor(b/ie)*ie+ie/2:(x===90||x===270)&&(E=Math.floor(E/se)*se+se/2)):(b=Math.floor(b/ie)*ie+ie/2,E=Math.floor(E/se)*se+se/2),de>Vf&&(z=x,ne=b,pe=E,x===0?(z=90,pe+=se):x===90?(z=180,ne-=ie):x===180?(z=270,pe-=se):x===270&&(z=0,ne+=ie),Md(y,ne,pe)===de-1?sy(a,y,ne,pe,z,!1,z):(ne=b,pe=E,x===0?(z=270,pe-=se):x===90?(z=0,ne+=ie):x===180?(z=90,pe+=se):x===270&&(z=180,ne-=ie),Md(y,ne,pe)===de-1&&sy(a,y,ne,pe,z,!1,z))),a.yf(b,E)}Rr.prototype.ez=function(a){var y=a.x;a=a.y;for(var b=this.i(0),E=this.i(1),x=jn(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=jn(y,a,E.x,E.y,b.x,b.y);E=b,ie<x&&(z=ne,x=ie)}return z},Rr.prototype.qc=function(){this.lk=!1,this.v()},Rr.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)}}},Rr.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,b=!1,E=this.diagram;E!==null&&jf(this)&&E.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(E.animationManager.isAnimating||E.currentTool!==E.toolManager)&&(b=!0);var x=this.i(0).copy(),z=x.copy();E=this.Nb.s;var ne=this.computeCurve();if(ne===rc&&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||jf(this)){if(a.type=Ar.o,ie=BS(a),this.computeShortLength(!0)!==0&&(x=Np(this,x,!0,z)),gg(ie,x.x,x.y,!1),ne===rc&&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=Np(this,x,!1,z)),Th(ie,y,b,y,b,x.x,x.y);else if(this.isOrthogonal){y=rt.allocAt(E,se),b=rt.alloc(),b.assign(this.i(1)),z=rt.allocAt(E,se),x=rt.allocAt(E,se),ne=this.i(0);for(var de,pe=this.smoothness/3,Se=1;Se<this.pointsCount-1;Se++){de=this.i(Se);var Ne=ne,Me=de,ze=this.i(ly(this,de,Se,!1));if((!en.$(Ne.x,Me.x)||!en.$(Me.x,ze.x))&&(!en.$(Ne.y,Me.y)||!en.$(Me.y,ze.y))){var qe=pe;isNaN(qe)&&(qe=this.smoothness/3);var Pt=Ne.x;Ne=Ne.y;var yt=Me.x;Me=Me.y;var Rt=ze.x;ze=ze.y;var Bt=qe*E0(Pt,Ne,yt,Me);qe*=E0(yt,Me,Rt,ze),en.$(Ne,Me)&&en.$(yt,Rt)&&(yt>Pt?ze>Me?(z.x=yt-Bt,z.y=Me-Bt,x.x=yt+qe,x.y=Me+qe):(z.x=yt-Bt,z.y=Me+Bt,x.x=yt+qe,x.y=Me-qe):ze>Me?(z.x=yt+Bt,z.y=Me-Bt,x.x=yt-qe,x.y=Me+qe):(z.x=yt+Bt,z.y=Me+Bt,x.x=yt-qe,x.y=Me-qe)),en.$(Pt,yt)&&en.$(Me,ze)&&(Me>Ne?(Rt>yt?(z.x=yt-Bt,z.y=Me-Bt,x.x=yt+qe):(z.x=yt+Bt,z.y=Me-Bt,x.x=yt-qe),x.y=Me+qe):(Rt>yt?(z.x=yt-Bt,z.y=Me+Bt,x.x=yt+qe):(z.x=yt+Bt,z.y=Me+Bt,x.x=yt-qe),x.y=Me-qe)),(en.$(Pt,yt)&&en.$(yt,Rt)||en.$(Ne,Me)&&en.$(Me,ze))&&(Pt=.5*(Pt+Rt),Ne=.5*(Ne+ze),z.x=Pt,z.y=Ne,x.x=Pt,x.y=Ne),(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=Np(this,pe.copy(),!1,Hr)),de=.5*(de+pe.x),ne=.5*(ne+pe.y),Th(ie,x.x-E,x.y-se,de-E,ne-se,pe.x-E,pe.y-se),rt.free(y),rt.free(b),rt.free(z),rt.free(x)}else for(b=3;b<y;b+=3)z=this.i(b-2),b+3>=y&&(b=y-1),x=this.i(b-1),ne=this.i(b),b===y-1&&this.computeShortLength(!1)!==0&&(ne=Np(this,ne.copy(),!1,Hr)),Th(ie,z.x-E,z.y-se,x.x-E,x.y-se,ne.x-E,ne.y-se);else{for(z=rt.alloc(),z.assign(this.i(0)),x=rt.alloc(),x.assign(z),ne=this.computeCorner(),Se=1,de=0;Se<y;){if(Se=ly(this,z,Se,1<Se),pe=this.i(Se),Se>=y-1){if(!z.D(pe))this.computeShortLength(!1)!==0&&(pe=Np(this,pe.copy(),!1,Hr)),Lp(this,ie,-E,-se,z,pe,b);else if(de===0)for(Se=1;Se<y;)x.assign(z),pe=this.i(Se++),Lp(this,ie,-E,-se,z,pe,b),z.assign(pe);break}if(de=ly(this,pe,Se+1,Se<y-3),Se=-E,Pt=-se,Ne=pe,yt=this.i(de),qe=b,en.B(z.y,Ne.y)&&en.B(Ne.x,yt.x))if(ze=Math.min(ne,Math.abs(Ne.x-x.x)/2),ze=Bt=Math.min(ze,Math.abs(yt.y-Ne.y)/2),en.B(ze,0))Lp(this,ie,Se,Pt,z,Ne,qe),z.assign(Ne);else{var Gt=Ne.x,$t=Ne.y;Me=Gt,Rt=$t,Ne.x>z.x?Gt=Ne.x-ze:Gt=Ne.x+ze,yt.y>Ne.y?Rt=Ne.y+Bt:Rt=Ne.y-Bt,yt=rt.allocAt(Gt,$t),Lp(this,ie,Se,Pt,z,yt,qe),rt.free(yt),d0(ie,Ne.x+Se,Ne.y+Pt,Me+Se,Rt+Pt),z.h(Me,Rt)}else en.B(z.x,Ne.x)&&en.B(Ne.y,yt.y)?(ze=Math.min(ne,Math.abs(Ne.y-x.y)/2),ze=Bt=Math.min(ze,Math.abs(yt.x-Ne.x)/2),en.B(Bt,0)?(Lp(this,ie,Se,Pt,z,Ne,qe),z.assign(Ne)):(Gt=Ne.x,$t=Ne.y,Me=Gt,Rt=$t,Ne.y>z.y?$t=Ne.y-ze:$t=Ne.y+ze,yt.x>Ne.x?Me=Ne.x+Bt:Me=Ne.x-Bt,yt=rt.allocAt(Gt,$t),Lp(this,ie,Se,Pt,z,yt,qe),rt.free(yt),d0(ie,Ne.x+Se,Ne.y+Pt,Me+Se,Rt+Pt),z.h(Me,Rt))):(Lp(this,ie,Se,Pt,z,Ne,qe),z.assign(Ne));x.assign(pe),Se=de}rt.free(z)}h0=ie}else ie=this.i(1).copy(),ie.x-=E,ie.y-=se,this.computeShortLength(!0)!==0&&(x=Np(this,x,!0,z)),this.computeShortLength(!1)!==0&&(ie=Np(this,ie,!1,z)),a.type=Ar.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 Np(a,y,b,E){var x=a.pointsCount;if(2>x)return y;if(b){var z=a.i(1);if(b=z.x-E.x,z=z.y-E.y,E=E0(y.x,y.y,b,z),E===0)return y;x=x===2?.5*E:E,a=a.computeShortLength(!0),a>x&&(a=x),x=a*(z-y.y)/E,y.x+=a*(b-y.x)/E,y.y+=x}else{if(z=a.i(x-2),b=z.x-E.x,z=z.y-E.y,E=E0(y.x,y.y,b,z),E===0)return y;x=x===2?.5*E:E,a=a.computeShortLength(!1),a>x&&(a=x),x=a*(y.y-z)/E,y.x-=a*(y.x-b)/E,y.y-=x}return y}function ly(a,y,b,E){for(var x=a.pointsCount,z=y;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}Rr.prototype.computeJumpLength=function(){return 10};function Lp(a,y,b,E,x,z,ne){if(!ne&&jf(a)){ne=a.computeJumpLength();var ie=ne/2,se=[],de=0;if(a.isVisible()&&(de=pE(a,x,z,se)),0<de){if(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 Ne=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?gg(y,Me,ze,!1):Th(y,Ne,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),Ne=pe+b,Se=Math.max(pe-ne,z.x);0<=de&&(pe=se[de],pe>Se-ne);)de--,Se=Math.max(pe-ie,z.x);pe=z.y-ne+E,Se+=b,Me=z.y+E,a.curve===kh?gg(y,Se,Me,!1):Th(y,Ne,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),Ne=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?gg(y,ze,Se,!1):Th(y,Me,Ne,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),Ne=pe+E,pe=Math.max(pe-ne,z.y);0<=de&&(Se=se[de],Se>pe-ne);)de--,pe=Math.max(Se-ie,z.y);Se=z.x-ne+b,Me=z.x+b,pe+=E,a.curve===kh?gg(y,Me,pe,!1):Th(y,Se,Ne,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 Rr){if(se===a)return 0<E.length&&E.sort(function(pe,Se){return pe-Se}),E.length;if(se.isVisible()&&jf(se)){var de=se.routeBounds;de.w()&&a.routeBounds.Yc(de)&&!a.usesSamePort(se)&&(de=se.path,de!==null&&de.Ed()&&gE(y,b,E,se))}}}}}return 0<E.length&&E.sort(function(pe,Se){return pe-Se}),E.length}function gE(a,y,b,E){for(var x=en.B(a.y,y.y),z=E.pointsCount,ne=E.i(0),ie=rt.alloc(),se=1;se<z;se++){var de=E.i(se);if(se<z-1){var pe=E.i(se+1);if(ne.y===de.y&&de.y===pe.y){if(de.x>ne.x&&pe.x>=de.x||de.x<ne.x&&pe.x<=de.x)continue}else if(ne.x===de.x&&de.x===pe.x&&(de.y>ne.y&&pe.y>=de.y||de.y<ne.y&&pe.y<=de.y))continue}e:{pe=a.x;var Se=a.y,Ne=y.x,Me=y.y,ze=ne.x;ne=ne.y;var qe=de.x,Pt=de.y;if(en.B(pe,Ne)){if(!en.B(Se,Me)&&en.B(ne,Pt)&&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,Ne)<ze&&Math.max(pe,Ne)>ze&&Math.min(ne,Pt)<Se&&Math.max(ne,Pt)>Se&&!en.B(ne,Pt)){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}rt.free(ie)}function jf(a){return a=a.curve,a===yg||a===kh}function x0(a,y){(y||jf(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}Rr.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 Rr&&(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 Rr&&s1(this,ie,a)}}}}};function s1(a,y,b){if(y!==null&&y.lk&&y.fd&&jf(y)){var E=y.routeBounds;E.w()&&(a.routeBounds.Yc(E)||b.Yc(E))&&(a.usesSamePort(y)||y.qc())}}Rr.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},Rr.prototype.isVisible=function(){if(!Li.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},Rr.prototype.Zb=function(a){if(Li.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)},Rr.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&&(Ue(y.links,a),y.Sl()))}Rr.prototype.ph=function(){return!0},pn.Object.defineProperties(Rr.prototype,{fromNode:{get:function(){return this.ef},set:function(a){var y=this.ef;if(y!==a){var b=this.fromPort;y!==null&&(this.uf!==y&&m0(y,this,b),tm(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var E=this.diagram;E!==null&&E.aa&&E.partManager.setFromNodeForLink(this,a,y);var x=this.fromPort,z=this.fromPortChanged;if(z!==null){var ne=!0;E!==null&&(ne=E.aa,E.aa=!0),z(this,b,x),E!==null&&(E.aa=ne)}a!==null&&(this.uf!==a&&g0(a,this,x),em(this),this.C(1)),this.g("fromNode",y,a),mg(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var b=this.fromPort;b!==null&&Gu(b),tm(this),this.ff=a;var E=this.fromPort;E!==null&&Gu(E);var x=this.diagram;if(x!==null){var z=this.data,ne=x.model;z!==null&&ne.ri()&&ne.xv(z,a)}b!==E&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(ne=!0,x!==null&&(ne=x.aa,x.aa=!0),z(this,b,E),x!==null&&(x.aa=ne))),em(this),this.g("fromPortId",y,a)}}},fromPort:{get:function(){var a=this.ef;return a===null?null:a.ns(this.ff)}},fromPortChanged:{get:function(){return this.gn},set:function(a){var y=this.gn;y!==a&&(this.gn=a,this.g("fromPortChanged",y,a))}},toNode:{get:function(){return this.uf},set:function(a){var y=this.uf;if(y!==a){var b=this.toPort;y!==null&&(this.ef!==y&&m0(y,this,b),tm(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var E=this.diagram;E!==null&&E.aa&&E.partManager.setToNodeForLink(this,a,y);var x=this.toPort,z=this.toPortChanged;if(z!==null){var ne=!0;E!==null&&(ne=E.aa,E.aa=!0),z(this,b,x),E!==null&&(E.aa=ne)}a!==null&&(this.ef!==a&&g0(a,this,x),em(this),this.C(1)),this.g("toNode",y,a),mg(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var b=this.toPort;b!==null&&Gu(b),tm(this),this.vf=a;var E=this.toPort;E!==null&&Gu(E);var x=this.diagram;if(x!==null){var z=this.data,ne=x.model;z!==null&&ne.ri()&&ne.Cv(z,a)}b!==E&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(ne=!0,x!==null&&(ne=x.aa,x.aa=!0),z(this,b,E),x!==null&&(x.aa=ne))),em(this),this.g("toPortId",y,a)}}},toPort:{get:function(){var a=this.uf;return a===null?null:a.ns(this.vf)}},toPortChanged:{get:function(){return this.uo},set:function(a){var y=this.uo;y!==a&&(this.uo=a,this.g("toPortChanged",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:ts},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),(y.$c()||a.$c())&&this.fromNode!==null&&Gu(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&&br(a,">= 0",Rr,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:ts},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&Gu(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&&br(a,">= 0",Rr,"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?Bi: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()===rc&&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 rt)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||y0(this);for(var a=this.cq=[],y=this.pointsCount,b=0;b<y-1;b++){var E=this.i(b),x=this.i(b+1);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 er,E=0;E<a.length/2;E++)x=new rt(a[2*E],a[2*E+1]).freeze(),b.add(x);else{for(E=!0,x=0;x<a.length;x++){var z=a[x];if(!Xt(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){E=!1;break}}if(E)for(b=new er,E=0;E<a.length;E++)x=a[E],b.add(new rt(x.x,x.y).freeze())}}else if(a instanceof er)for(b=a.copy(),a=b.iterator;a.next();)a.value.freeze();else xt("Link.points value is not an instance of List or Array: "+a);b.freeze(),this.Nb=b,this.qc(),y0(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&ce(a.animationManager,this,b)),this.g("points",y,b)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return(this.Qa&16)!==0},set:function(a){(this.Qa&16)!==0!==a&&(this.Qa^=16)}},suspendsRouting:{get:function(){return(this.Qa&32)!==0},set:function(a){(this.Qa&32)!==0!==a&&(this.Qa^=32)}},computingPoints:{get:function(){return(this.Qa&64)!==0},set:function(a){(this.Qa&64)!==0!==a&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(a){this.o=a.copy()}},defaultToPoint:{get:function(){return this.u},set:function(a){this.u=a.copy()}},isOrthogonal:{get:function(){return(this.qj.value&2)===2}},isAvoiding:{get:function(){return(this.qj.value&4)===4}},lk:{get:function(){return(this.Qa&128)!==0},set:function(a){(this.Qa&128)!==0!==a&&(this.Qa^=128)}},geometry:{get:function(){if(!this.lk){if(this.vg(),2>this.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!vg(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!vg(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),x0(this,y===kh||y===yg||a===kh||a===yg),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),x0(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),Rr.prototype.invalidateOtherJumpOvers=Rr.prototype.Xo,Rr.prototype.findClosestSegment=Rr.prototype.ez,Rr.prototype.updateRoute=Rr.prototype.vg,Rr.prototype.invalidateRoute=Rr.prototype.bb,Rr.prototype.rollbackRoute=Rr.prototype.rv,Rr.prototype.commitRoute=Rr.prototype.zf,Rr.prototype.startRoute=Rr.prototype.uh,Rr.prototype.clearPoints=Rr.prototype.Fj,Rr.prototype.removePoint=Rr.prototype.pv,Rr.prototype.addPointAt=Rr.prototype.yf,Rr.prototype.addPoint=Rr.prototype.ne,Rr.prototype.insertPointAt=Rr.prototype.m,Rr.prototype.insertPoint=Rr.prototype.Kz,Rr.prototype.setPointAt=Rr.prototype.L,Rr.prototype.setPoint=Rr.prototype.dd,Rr.prototype.getPoint=Rr.prototype.i,Rr.prototype.getOtherPort=Rr.prototype.Cz,Rr.prototype.getOtherNode=Rr.prototype.To;var kp=null,Ip=null,uy=new Qn(Rr,"Normal",1),mE=new Qn(Rr,"Orthogonal",2),vE=new Qn(Rr,"AvoidsNodes",6),l1=new Qn(Rr,"AvoidsNodesStraight",7),eu=new Qn(Rr,"None",0),rc=new Qn(Rr,"Bezier",9),kh=new Qn(Rr,"JumpGap",10),yg=new Qn(Rr,"JumpOver",11),nm=new Qn(Rr,"End",17),w0=new Qn(Rr,"Scale",18),C0=new Qn(Rr,"Stretch",19),rm=new Qn(Rr,"OrientAlong",21),im=new Qn(Rr,"OrientPlus90",22),om=new Qn(Rr,"OrientMinus90",23),cy=new Qn(Rr,"OrientOpposite",24),P0=new Qn(Rr,"OrientUpright",25),am=new Qn(Rr,"OrientPlus90Upright",26),sm=new Qn(Rr,"OrientMinus90Upright",27),T0=new Qn(Rr,"OrientUpright45",28),u1=16,c1=14,lm=8;Rr.className="Link",Rr.Normal=uy,Rr.Orthogonal=mE,Rr.AvoidsNodes=vE,Rr.AvoidsNodesStraight=l1,Rr.None=eu,Rr.Bezier=rc,Rr.JumpGap=kh,Rr.JumpOver=yg,Rr.End=nm,Rr.Scale=w0,Rr.Stretch=C0,Rr.OrientAlong=rm,Rr.OrientPlus90=im,Rr.OrientMinus90=om,Rr.OrientOpposite=cy,Rr.OrientUpright=P0,Rr.OrientPlus90Upright=am,Rr.OrientMinus90Upright=sm,Rr.OrientUpright45=T0,Rr.EndSegmentStep=8,Rr.CurvinessStart=u1,Rr.SpacingMin=c1,Rr.OrthoShortCut=lm;function A0(a,y,b,E){Ei(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){Ei(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=a.width,this.sc=a.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}um.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,b=a.x+a.width,E=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((b+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((E+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<a-1||this.ei<y-1){for(b=[],E=0;E<=a;E++)b[E]=new Uint32Array(y);this.ac=b,this.di=a-1,this.ei=y-1}if(a=dy,this.ac!==null)for(y=0;y<=this.di;y++)if(b=this.ac[y],b.fill)b.fill(a);else for(E=0;E<=this.ei;E++)b[E]=a}};function Sg(a,y,b){return a.Nd<=y&&y<=a.En&&a.Od<=b&&b<=a.Fn}function Md(a,y,b){return Sg(a,y,b)?(y-=a.Nd,y/=a.rc,b-=a.Od,b/=a.sc,a.ac[y|0][b|0]):dy}function d1(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var b=a.ac[y],E=0;E<=a.ei;E++)b[E]>=Vf&&(b[E]=dy)}um.prototype.Yj=function(a,y,b,E){if(a>this.En||a+b<this.Nd||y>this.Fn||y+E<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,b=Math.max(0,b)/this.rc+1|0;var x=Math.max(0,E)/this.sc+1|0;if(0>a&&(b+=a,a=0),0>y&&(x+=y,y=0),0>b||0>x)return!0;for(E=Math.min(a+b-1,this.di)|0,b=Math.min(y+x-1,this.ei)|0;a<=E;a++){x=this.ac[a];for(var z=y;z<=b;z++)if(x[z]===Ih)return!1}return!0};function Od(a,y,b,E,x,z,ne,ie,se){if(!(y<z||y>ne||b<ie||b>se)){var de=y|0,pe=b|0,Se=a.ac[de][pe];if(Se>=Vf&&Se<bg)for(x?pe+=E:de+=E,Se+=1;z<=de&&de<=ne&&ie<=pe&&pe<=se&&!(Se>=a.ac[de][pe]);)a.ac[de][pe]=Se,Se+=1,x?pe+=E:de+=E;if(de=x?pe:de,x)if(0<E)for(b+=E;b<de;b+=E)Od(a,y,b,1,!x,z,ne,ie,se),Od(a,y,b,-1,!x,z,ne,ie,se);else for(b+=E;b>de;b+=E)Od(a,y,b,1,!x,z,ne,ie,se),Od(a,y,b,-1,!x,z,ne,ie,se);else if(0<E)for(y+=E;y<de;y+=E)Od(a,y,b,1,!x,z,ne,ie,se),Od(a,y,b,-1,!x,z,ne,ie,se);else for(y+=E;y>de;y+=E)Od(a,y,b,1,!x,z,ne,ie,se),Od(a,y,b,-1,!x,z,ne,ie,se)}}function N0(a,y,b,E,x,z,ne,ie,se){y|=0,b|=0;var de=Ih,pe=Vf;for(a.ac[y][b]=pe;de===Ih&&y>z&&y<ne&&b>ie&&b<se;)pe+=1,a.ac[y][b]=pe,x?b+=E:y+=E,de=a.ac[y][b]}function L0(a,y,b,E,x,z,ne,ie,se){y|=0,b|=0;var de=Ih,pe=bg;for(a.ac[y][b]=pe;de===Ih&&y>z&&y<ne&&b>ie&&b<se;)a.ac[y][b]=pe,x?b+=E:y+=E,de=a.ac[y][b]}function h1(a,y,b,E,x,z,ne){if(a.ac!==null){a.abort=!1;var ie=y.x,se=y.y;if(Sg(a,ie,se)){ie-=a.Nd,ie/=a.rc,se-=a.Od,se/=a.sc;var de=E.x,pe=E.y;if(Sg(a,de,pe))if(de-=a.Nd,de/=a.rc,pe-=a.Od,pe/=a.sc,1>=Math.abs(ie-de)&&1>=Math.abs(se-pe))a.abort=!0;else{var Se=z.x;E=z.y,y=z.x+z.width;var Ne=z.y+z.height;Se-=a.Nd,Se/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,Ne-=a.Od,Ne/=a.sc,z=Math.max(0,Math.min(a.di,Se|0)),y=Math.min(a.di,Math.max(0,y|0)),Se=Math.max(0,Math.min(a.ei,E|0)),Ne=Math.min(a.ei,Math.max(0,Ne|0)),E=a.ac,ie|=0,se|=0,de|=0,pe|=0;var 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,Ne),N0(a,ie,se,1,!b,z,y,Se,Ne),N0(a,ie,se,-1,!b,z,y,Se,Ne)):N0(a,ie,se,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,Ne),L0(a,de,pe,1,!(x===90||x===270),z,y,Se,Ne),L0(a,de,pe,-1,!(x===90||x===270),z,y,Se,Ne)):L0(a,de,pe,Me,b,de,pe,de,pe),b=Nr(),ne&&f1(a,de,pe,x,ie,se,b))for((b[0]!==de||b[1]!==pe)&&(b.unshift(pe),b.unshift(de)),(b[b.length-2]!==ie||b[b.length-1]!==se)&&(b.push(ie),b.push(se)),a=Vf,x=b[b.length-2],ne=b[b.length-1],E[x][ne]=a++,z=b.length-4;0<=z;z-=2)for(x=b[z+2],ne=b[z+3],y=b[z],de=b[z+1];y>x?x++:y<x?x--:de>ne?ne++:de<ne&&ne--,E[x][ne]=a++,x!==y||ne!==de;);else Od(a,ie,se,1,!1,z,y,Se,Ne),Od(a,ie,se,-1,!1,z,y,Se,Ne),Od(a,ie,se,1,!0,z,y,Se,Ne),Od(a,ie,se,-1,!0,z,y,Se,Ne);jr(b)}}}}function f1(a,y,b,E,x,z,ne){for(var ie=a.ac,se=y,de=b;;){if(se===x&&de===z)return!0;var pe=se,Se=de;if(E===0)if(pe<x)pe++;else break;else if(E===90)if(Se<z)Se++;else break;else if(E===180)if(pe>x)pe--;else break;else if(Se>z)Se--;else break;var Ne=ie[pe][Se];if(Ne===0||Ne===hy)break;se=pe,de=Se}for(;;){if(pe=E,Se=se,Ne=de,E===0?Ne<z?(pe=90,Ne++):Ne>z&&(pe=270,Ne--):E===90?Se<x?(pe=0,Se++):Se>x&&(pe=180,Se--):E===180?Ne<z?(pe=90,Ne++):Ne>z&&(pe=270,Ne--):Se<x?(pe=0,Se++):Se>x&&(pe=180,Se--),Se=ie[Se][Ne],pe!==E&&Se!==0&&Se!==hy){if(ne.push(se),ne.push(de),f1(a,se,de,pe,x,z,ne))return!0;ne.pop(),ne.pop()}if(ie[se][de]=hy,E===0){if(se===y)return!1;se--}else if(E===90){if(de===b)return!1;de--}else if(E===180){if(se===y)return!1;se++}else{if(de===b)return!1;de++}}}pn.Object.defineProperties(um.prototype,{bounds:{get:function(){return new kn(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0<a&&a!==this.rc&&(this.rc=a,this.initialize(this.bounds))}},Go:{get:function(){return this.sc},set:function(a){0<a&&a!==this.sc&&(this.sc=a,this.initialize(this.bounds))}}});var Ih=0,Vf=1,bg=999999,dy=bg+1,hy=bg+2;um.className="PositionArray";function Dp(){Ei(this),this.port=this.node=null,this.pe=[],this.ap=!1}Dp.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",b=0;b<a.length;b++){var E=a[b];E!==null&&(y+=`
`+E.toString())}return y};function yE(a,y,b,E){switch(y=y.offsetY,y){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(y){case 9:return 180<b?270:90;case 6:return 90<b&&270>=b?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return b>a&&b<=180+a?180:270;case 5:return b>180-a&&b<=360-a?270:0;case 12:return b>a&&b<=180+a?90:0;case 10:return b>180-a&&b<=360-a?180:90;case 7:return 90<b&&b<=180+a?180:b>180+a&&b<=360-a?270:0;case 13:return 180<b&&b<=360-a?270:b>a&&180>=b?90:0;case 14:return b>a&&b<=180-a?90:b>180-a&&270>=b?180:0;case 11:return b>180-a&&b<=180+a?180:b>180+a?270:90}return E&&y!==15&&(b-=15,0>b&&(b+=360)),b>a&&b<180-a?90:b>=180-a&&b<=180+a?180:b>180+a&&b<360-a?270:0}Dp.prototype.Sl=function(){this.pe.length=0};function p1(a,y){var b=a.pe;if(b.length===0){e:if(!a.ap){b=a.ap,a.ap=!0;var E=null,x=a.node,z=x instanceof to?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(fo,rt.alloc()),se=a.port.ga(Uo,rt.alloc());for(x=kn.allocAt(ie.x,ie.y,0,0),x.Ye(se),rt.free(ie),rt.free(se),ie=rt.allocAt(x.x+x.width/2,x.y+x.height/2),se=a.port.li(),ne=ne.iterator;ne.next();){var de=ne.value;if(de.isVisible()&&de.fromPort!==de.toPort){var pe=de.fromPort===a.port||de.fromNode!==null&&de.fromNode.Td(E),Se=de.computeSpot(pe,a.port);if(Se.$c()&&(pe=pe?de.toPort:de.fromPort,pe!==null)){var Ne=pe.part;if(Ne!==null){var Me=Ne.findVisibleNode();Me!==null&&Me!==Ne&&(Ne=Me,pe=Ne.port),pe=de.computeOtherPoint(Ne,pe),Ne=ie.ab(pe),Ne-=se,0>Ne?Ne+=360:360<=Ne&&(Ne-=360),Se=yE(x,Se,Ne,de.isOrthogonal),Se===0?(Se=4,180<Ne&&(Ne-=360)):Se===90?(Se=8,270<Ne&&(Ne-=360)):Se===180?Se=2:(Se=1,90>Ne&&(Ne+=360)),Me=a.pe[z],Me===void 0?(Me=new fy(de,Ne,Se),a.pe[z]=Me):(Me.link=de,Me.angle=Ne,Me.Nc=Se),Me.hv.set(pe),z++}}}}for(rt.free(ie),a.pe.sort(Dp.prototype.j),se=a.pe.length,E=-1,z=ie=0;z<se;z++)ne=a.pe[z],ne!==void 0&&(ne.Nc!==E&&(E=ne.Nc,ie=0),ne.Uo=ie,ie++);for(E=-1,ie=0,z=se-1;0<=z;z--)se=a.pe[z],se!==void 0&&(se.Nc!==E&&(E=se.Nc,ie=se.Uo+1),se.Gl=ie);if(z=a.pe,Se=a.port,E=a.node.portSpreading,ie=rt.alloc(),se=rt.alloc(),ne=rt.alloc(),de=rt.alloc(),Se.ga(fo,ie),Se.ga(Oo,se),Se.ga(Uo,ne),Se.ga(Ga,de),Me=Ne=pe=Se=0,E===ny)for(var ze=0;ze<z.length;ze++){var qe=z[ze];if(qe!==null){var Pt=qe.link.computeThickness();switch(qe.Nc){case 8:Ne+=Pt;break;case 2:Me+=Pt;break;case 1:Se+=Pt;break;default:case 4:pe+=Pt}}}var yt=ze=0,Rt=1,Bt=qe=0;for(Pt=0;Pt<z.length;Pt++){var Gt=z[Pt];if(Gt!==null){if(ze!==Gt.Nc){switch(ze=Gt.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,Bt=yt.y-$t.y,ze){case 8:Ne>Math.abs(qe)?(Rt=Math.abs(qe)/Ne,Ne=Math.abs(qe)):Rt=1;break;case 2:Me>Math.abs(Bt)?(Rt=Math.abs(Bt)/Me,Me=Math.abs(Bt)):Rt=1;break;case 1:Se>Math.abs(qe)?(Rt=Math.abs(qe)/Se,Se=Math.abs(qe)):Rt=1;break;default:case 4:pe>Math.abs(Bt)?(Rt=Math.abs(Bt)/pe,pe=Math.abs(Bt)):Rt=1}yt=0}var Dn=Gt.Zo;if(E===ny){switch(Gt=Gt.link.computeThickness(),Gt*=Rt,Dn.set($t),ze){case 8:Dn.x=$t.x+qe/2+Ne/2-yt-Gt/2;break;case 2:Dn.y=$t.y+Bt/2+Me/2-yt-Gt/2;break;case 1:Dn.x=$t.x+qe/2-Se/2+yt+Gt/2;break;default:case 4:Dn.y=$t.y+Bt/2-pe/2+yt+Gt/2}yt+=Gt}else{var Qr=.5;E===v0&&(Qr=(Gt.Uo+1)/(Gt.Gl+1)),Dn.x=$t.x+qe*Qr,Dn.y=$t.y+Bt*Qr}}}for(rt.free(ie),rt.free(se),rt.free(ne),rt.free(de),$t=a.pe,z=0;z<$t.length;z++)E=$t[z],E!==null&&(E.Ju=a.computeEndSegmentLength(E));a.ap=b,kn.free(x)}b=a.pe}for(a=0;a<b.length;a++)if(x=b[a],x!==null&&x.link===y)return x;return null}Dp.prototype.j=function(a,y){return a===y?0:a===null?-1:y===null?1:a.Nc<y.Nc?-1:a.Nc>y.Nc?1:a.angle<y.angle?-1:a.angle>y.angle?1:0},Dp.prototype.computeEndSegmentLength=function(a){var y=a.link,b=y.computeEndSegmentLength(this.node,this.port,Ji,y.fromPort===this.port),E=a.Uo;if(0>E)return b;var x=a.Gl;if(1>=x||!y.isOrthogonal)return b;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(E=x-1-E),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?b+8*E:(a?y.y===z.y:y.x===z.x)?b:b+8*(x-1-E)},Dp.className="Knot";function fy(a,y,b){this.link=a,this.angle=y,this.Nc=b,this.hv=new rt,this.Gl=this.Uo=0,this.Zo=new rt,this.Ju=0}fy.prototype.toString=function(){return this.link.toString()+" "+this.angle.toString()+" "+this.Nc.toString()+":"+this.Uo.toString()+"/"+this.Gl.toString()+" "+this.Zo.toString()+" "+this.Ju.toString()+" "+this.hv.toString()},fy.className="LinkInfo";function Aa(a){Ei(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new rt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Aa.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},Aa.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Aa.prototype.qb=function(){},Aa.prototype.toString=function(){var a=zn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Aa.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())}}},Aa.prototype.createNetwork=function(){return new va(this)},Aa.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof In?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof to?y.lg(a.memberParts):y.lg(a.iterator),y},Aa.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")}},Aa.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()}},Aa.prototype.doLayout=function(a){var y=new ar;a instanceof In?(sf(this,y,a.nodes,!0,this.rh,!0,!1,!0),sf(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof to?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},Aa.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 to&&(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++}},Aa.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 Rr)&&(cm(ie),this.rh(ie))){var se=ie.measuredBounds,de=se.width;se=se.height,ie.moveTo(b,E),ie instanceof to&&(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++}}},Aa.prototype.rh=function(a){return!!(!a.location.w()||a instanceof to&&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 to&&se.layout===null?sf(a,y,se.memberParts,!1,x,z,ne,ie):(cm(se),y.add(se))):ne&&se instanceof Rr?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()}Aa.prototype.ni=function(a,y){var b=this.boundsComputation;return b!==null?(y||(y=new kn),b(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Aa.prototype.ex=function(a){var y=new ar;return a instanceof In?(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 to?sf(this,y,a.memberParts,!1,null,!0,!0,!0):sf(this,y,a.iterator,!1,null,!0,!0,!0),y},Aa.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(fo),(isNaN(b.x)||isNaN(b.y))&&b.set(a),a=y.padding,b.x+=a.left,b.y+=a.top),b}return a},pn.Object.defineProperties(Aa.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())}}}),Aa.prototype.collectParts=Aa.prototype.ex,Aa.prototype.getLayoutBounds=Aa.prototype.ni,Aa.prototype.invalidateLayout=Aa.prototype.C,Aa.className="Layout";function va(a){Ei(this),this.Sc=a,this.wf=new ar,this.ye=new ar,this.Es=new Ln,this.zs=new Ln}va.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new ar,this.ye=new ar,this.Es=new Ln,this.zs=new Ln},va.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1<a){for(var b=this.wf.iterator;b.next();)y+=`
`+b.value.toString(a-1);for(b=this.ye.iterator;b.next();)y+=`
`+b.value.toString(a-1)}return y},va.prototype.createVertex=function(){return new Ls(this)},va.prototype.createEdge=function(){return new ju(this)},va.prototype.lg=function(a,y,b){if(a!==null){for(y===void 0&&(y=!1),b===void 0&&(b=null),b===null&&(b=function(ne){if(ne instanceof qr)return!ne.isLinkLabel;if(ne instanceof Rr){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 to&&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 Rr&&(!y||E.isTopLevel)&&E.canLayout()&&b(E)&&this.Lo(E)===null){var z=E.fromNode;x=E.toNode,z!==null&&x!==null&&z!==x&&(z=this.findGroupVertex(z),x=this.findGroupVertex(x),z!==null&&x!==null&&this.Zj(z,x,E))}}},va.prototype.findGroupVertex=function(a){if(a===null)return null;var y=a.findVisibleNode();if(y===null)return null;if(a=this.ki(y),a!==null)return a;for(y=y.containingGroup;y!==null;){if(a=this.ki(y),a!==null)return a;y=y.containingGroup}return null},Oe=va.prototype,Oe.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Oe.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},Oe.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}Oe.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Oe.ki=function(a){return a===null?null:this.Es.I(a)},Oe.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}}Oe.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},Oe.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))}Oe.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Oe.Lo=function(a){return a===null?null:this.zs.I(a)},Oe.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},Oe.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))}},Oe.Ko=function(){for(var a=Nr(),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]);jr(a)},va.prototype.deleteArtificialVertexes=function(){for(var a=Nr(),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=Nr(),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]);jr(a),jr(y)};function SE(a){for(var y=Nr(),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]);jr(y)}va.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),SE(this),this.Ko()),a=new er;for(var y=!0;y;){y=!1;for(var b=this.wf.iterator;b.next();){var E=b.value;if(0<E.tg.count||0<E.mg.count){y=this.layout.createNetwork(),a.add(y),my(this,y,E),y=!0;break}}}return a.sort(function(x,z){return x===null||z===null||x===z?0:z.vertexes.count-x.vertexes.count}),a};function my(a,y,b){if(b!==null&&b.network!==y){g1(a,b),y.dh(b);for(var E=b.sourceEdges;E.next();){var x=E.value;x.network!==y&&(gy(a,x),py(y,x),my(a,y,x.fromVertex))}for(E=b.destinationEdges;E.next();)b=E.value,b.network!==y&&(gy(a,b),py(y,b),my(a,y,b.toVertex))}}va.prototype.dz=function(){for(var a=new ar,y=this.wf.iterator;y.next();)a.add(y.value.node);for(y=this.ye.iterator;y.next();)a.add(y.value.link);return a},pn.Object.defineProperties(va.prototype,{layout:{get:function(){return this.Sc},set:function(a){a!==null&&(this.Sc=a)}},vertexes:{get:function(){return this.wf}},edges:{get:function(){return this.ye}}}),va.prototype.findAllParts=va.prototype.dz,va.prototype.splitIntoSubNetworks=va.prototype.Zx,va.prototype.deleteSelfEdges=va.prototype.Ko,va.prototype.reverseEdge=va.prototype.gm,va.prototype.linkVertexes=va.prototype.Zj,va.prototype.findEdge=va.prototype.Lo,va.prototype.deleteLink=va.prototype.Yy,va.prototype.deleteEdge=va.prototype.Mj,va.prototype.addLink=va.prototype.Dy,va.prototype.addEdge=va.prototype.Bo,va.prototype.findVertex=va.prototype.ki,va.prototype.deleteNode=va.prototype.Zy,va.prototype.deleteVertex=va.prototype.Iu,va.prototype.addNode=va.prototype.Bl,va.prototype.addVertex=va.prototype.dh,va.prototype.addParts=va.prototype.lg,va.className="LayoutNetwork";function Ls(a){Ei(this),this.ob=a,this.j=new kn(0,0,10,10).freeze(),this.o=new rt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new er,this.mg=new er}Ls.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new er,this.mg=new er},Ls.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Ui(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},Ls.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,b=a.bounds;Xt(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 to)){b=kn.alloc(),a.Va();var E=this.network.layout.ni(a,b),x=a.locationObject.ga(qi);if(E.w()&&x.w()){a.moveTo(y.x+this.focusX-(x.x-E.x),y.y+this.focusY-(x.y-E.y)),kn.free(b);return}kn.free(b)}a.moveTo(y.x,y.y)}},Ls.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Ls.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Ls.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Ls.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}pn.Object.defineProperties(Ls.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=kn.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),kn.free(b),!(a instanceof to)&&(a=a.locationObject.ga(qi),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 ar,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new ar,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new ar,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 er,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}}}),Ls.prototype.deleteDestinationEdge=Ls.prototype.Jl,Ls.prototype.addDestinationEdge=Ls.prototype.zl,Ls.prototype.deleteSourceEdge=Ls.prototype.Kl,Ls.prototype.addSourceEdge=Ls.prototype.Cl,Ls.className="LayoutVertex",Ls.standardComparer=vy,Ls.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 ju(a){Ei(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}ju.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},ju.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Ui(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},ju.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},ju.prototype.commit=function(){},ju.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},pn.Object.defineProperties(ju.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)}}}),ju.prototype.getOtherVertex=ju.prototype.Ax,ju.className="LayoutEdge";function nl(a){Aa.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new ln(NaN,NaN).freeze(),this.tf=new ln(10,10).freeze(),this.Jb=dm,this.Rb=I0,this.nd=hm,this.hd=m1,a&&Object.assign(this,a)}Cn(nl,Aa),nl.prototype.cloneProtected=function(a){Aa.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===nd?this.arrangement=a:a===dm||a===k0?this.alignment=a:xt("Unknown enum value: "+a):Aa.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 to)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=kn.alloc(),pe=Math.max(this.cellSize.width,1);if(!isFinite(pe))for(var Se=pe=0;Se<x.length;Se++){var Ne=this.ni(x[Se],de);pe=Math.max(pe,Ne.width)}if(pe=Math.max(pe+ie,1),Se=Math.max(this.cellSize.height,1),!isFinite(Se))for(Ne=Se=0;Ne<x.length;Ne++){var Me=this.ni(x[Ne],de);Se=Math.max(Se,Me.height)}Se=Math.max(Se+se,1),Ne=this.arrangement;for(var ze=Me=this.arrangementOrigin.x,qe=this.arrangementOrigin.y,Pt=0,yt=0,Rt=0;Rt<x.length;Rt++){var Bt=x[Rt],Gt=this.ni(Bt,de),$t=Math.ceil((Gt.width+ie)/pe)*pe,Dn=Math.ceil((Gt.height+se)/Se)*Se;switch(Ne){case nd:var Qr=Math.abs(ze-Gt.width);break;default:Qr=ze+Gt.width}switch((0<z&&Pt>z-1||0<ne&&0<Pt&&Qr-Me>ne)&&(E.push(new kn(0,qe,ne+ie,yt)),Pt=0,ze=Me,qe+=yt,yt=0),yt=Math.max(yt,Dn),Ne){case nd:Gt=-Gt.width;break;default:Gt=0}switch(Bt.moveTo(ze+Gt,qe),Ne){case nd:ze-=$t;break;default:ze+=$t}Pt++}E.push(new kn(0,qe,ne+ie,yt)),kn.free(de);break;case dm:for(se=ne,pe=z,Se=y,Ne=b,ne=kn.alloc(),Me=Math.max(this.cellSize.width,1),z=qe=de=0,ie=rt.alloc(),ze=0;ze<x.length;ze++)yt=x[ze],Pt=this.ni(yt,ne),yt=Ah(yt,yt.locationObject,yt.locationSpot,ie),de=Math.max(de,yt.x),qe=Math.max(qe,Pt.width-yt.x),z=Math.max(z,yt.y);switch(ze=this.arrangement,ze){case nd:de+=Se;break;default:qe+=Se}Me=isFinite(Me)?Math.max(Me+Se,1):Math.max(de+qe,1);var gi=yt=this.arrangementOrigin.x;for(Rt=this.arrangementOrigin.y,qe=0,se>=de&&(se-=de),de=Bt=0,$t=Math.max(this.cellSize.height,1),Gt=z=0,Dn=!0,Pt=rt.alloc(),Qr=0;Qr<x.length;Qr++){var ui=x[Qr],Dr=this.ni(ui,ne),hr=Ah(ui,ui.locationObject,ui.locationSpot,ie);if(0<qe)switch(ze){case nd:gi=(gi-yt-(Dr.width-hr.x))/Me,gi=en.$(Math.round(gi),gi)?Math.round(gi):Math.floor(gi),gi=gi*Me+yt;break;default:gi=(gi-yt+hr.x)/Me,gi=en.$(Math.round(gi),gi)?Math.round(gi):Math.ceil(gi),gi=gi*Me+yt}else switch(ze){case nd:Bt=gi+hr.x+Dr.width;break;default:Bt=gi-hr.x}switch(ze){case nd:var eo=-(gi+hr.x)+Bt;break;default:eo=gi+Dr.width-hr.x-Bt}if(0<pe&&qe>pe-1||0<se&&0<qe&&eo>se){for(E.push(new kn(0,Dn?Rt-z:Rt,se+Se,Gt+z+Ne)),gi=0;gi<qe&&Qr!==qe;gi++){eo=x[Qr-qe+gi];var zi=Ah(eo,eo.locationObject,eo.locationSpot,Pt);eo.moveTo(eo.position.x,eo.position.y+z-zi.y)}Gt+=Ne,Rt=Dn?Rt+Gt:Rt+(Gt+z),qe=Gt=z=0,gi=yt,Dn=!1}switch(gi===yt&&(de=ze===nd?Math.max(de,Dr.width-hr.x):Math.min(de,-hr.x)),z=Math.max(z,hr.y),Gt=Math.max(Gt,Dr.height-hr.y),isFinite($t)&&(Gt=Math.max(Gt,Math.max(Dr.height,$t)-hr.y)),Dn?ui.moveTo(gi-hr.x,Rt-hr.y):ui.moveTo(gi-hr.x,Rt),ze){case nd:gi-=hr.x+Se;break;default:gi+=Dr.width-hr.x+Se}qe++}if(E.push(new kn(0,Rt,se+Se,(Dn?Gt:Gt+z)+Ne)),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(rt.free(ie),rt.free(Pt),ze===nd)for(x=0;x<E.length;x++)z=E[x],z.width+=de,z.x-=de;else for(x=0;x<E.length;x++)z=E[x],z.x>de&&(z.width+=z.x-de,z.x=de);kn.free(ne)}for(ie=z=ne=x=0;ie<E.length;ie++)se=E[ie],x=Math.min(x,se.x),ne=Math.min(ne,se.y),z=Math.max(z,se.x+se.width);this.arrangement===nd?this.commitLayers(E,new rt(x+y/2-(z+x),ne-b/2)):this.commitLayers(E,new rt(x-y/2,ne-b/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},nl.prototype.commitLayers=function(){};function m1(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}pn.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!==nd||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==yy&&a!==D0&&a!==hm&&a!==R0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var k0=new Qn(nl,"Position",0),dm=new Qn(nl,"Location",1),I0=new Qn(nl,"LeftToRight",2),nd=new Qn(nl,"RightToLeft",3),yy=new Qn(nl,"Forward",4),D0=new Qn(nl,"Reverse",5),hm=new Qn(nl,"Ascending",6),R0=new Qn(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=nd,nl.Forward=yy,nl.Reverse=D0,nl.Ascending=hm,nl.Descending=R0;function qo(){this.On=new ar,this.Dn=new ar,this.Pa=new ar,this.cf=new Ln,this.bf=new Ln,this.aj=new Ln,this.H=null,this.tp=!1}Oe=qo.prototype,Oe.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Oe.Xe=function(a){this.H=a},Oe.oi=function(a){if(a instanceof qr){if(this.On.add(a),a instanceof to){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 Rr?this.Dn.add(a):a instanceof _o||this.Pa.add(a);y=a.data,y===null||a instanceof _o||(a instanceof Rr?this.bf.add(y,a):this.cf.add(y,a))},Oe.pc=function(a){if(a.Ej(),a instanceof qr){if(this.On.remove(a),a instanceof to){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 Rr?this.Dn.remove(a):a instanceof _o||this.Pa.remove(a);y=a.data,y===null||a instanceof _o||(a instanceof Rr?this.bf.remove(y):this.cf.remove(y))},Oe.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 to)&&xt('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 to||xt('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 Rr||xt('Invalid link template in Diagram.linkTemplateMap: template for "'+E+'" must be a Link, not a normal Node or simple Part: '+b);for(y=Nr(),b=a.selection.iterator;b.next();)(E=b.value.data)&&y.push(E);for(b=Nr(),a=a.highlighteds.iterator;a.next();)(E=a.value.data)&&b.push(E);for(a=Nr(),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]);jr(y),jr(b),jr(a)}},qo.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},qo.prototype.addModeledParts=function(a,y){var b=this,E=this.diagram.model;a.forEach(function(x){E.lb(x)&&v1(b,x,!1)}),a.forEach(function(x){E.lb(x)&&b.resolveReferencesForData(x)}),y!==!1&&Yd(this.diagram,!1)};function v1(a,y,b){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){b===void 0&&(b=!0);e:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var E=a.Ro(y),x=y1(a,y,E);if(x!==null&&(Pc(x),x=x.copy(),x!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,x.Tf=E,x.ub=y,a.tp&&(x.Jg="Tool"),a.diagram.add(x),x.ub=null,x.data=y,a.diagram.skipsModelSourceBindings=z,E=x;break e}}E=null}E!==null&&b&&a.resolveReferencesForData(y)}}qo.prototype.insertLink=function(){return null},qo.prototype.resolveReferencesForData=function(){},qo.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,Br('No Group template found for category "'+b+'"'),Br(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(b),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(b1||(b1=!0,Br('No Node template found for category "'+b+'"'),Br(" Using default node template")),y=a.ny))),y}qo.prototype.getLinkCategoryForData=function(){return""},qo.prototype.setLinkCategoryForData=function(){},qo.prototype.setFromNodeForLink=function(){},qo.prototype.setToNodeForLink=function(){},qo.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,Br('No Link template found for category "'+a+'"'),Br(" Using default link template")),b=y.my)),b},qo.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},qo.prototype.Gs=function(a){var y=this;a.forEach(function(b){y.ip(b)})},qo.prototype.ip=function(a){a=this.Lc(a),a!==null&&(ap(this.diagram,a,!1),this.unresolveReferencesForPart(a))},qo.prototype.unresolveReferencesForPart=function(){},qo.prototype.removeDataForLink=function(){},qo.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},qo.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)},qo.prototype.findLinkForKey=function(){return null},Oe=qo.prototype,Oe.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Oe.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof qr?a:null)},Oe.Kc=function(a){return a===null?null:this.bf.I(a)},Oe.ms=function(a){for(var y=0;y<arguments.length;++y);y=new ar;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(Xt(ne)&&Sy(this,x,ne)){y.add(E);break}}}return y.iterator},Oe.ls=function(a){for(var y=0;y<arguments.length;++y);y=new ar;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(Xt(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(fr(z)){if(!fr(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(Xt(y)&&Xt(b)){if(!Sy(a,y,b))return!1}else if(y!==b)return!1;return!0}qo.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===aa){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===Pa){var ne=a.newValue;E==="nodeDataArray"&&Xt(ne)&&v1(this,ne),y.isModified=!0}else if(b===ka){var ie=a.oldValue;E==="nodeDataArray"&&Xt(ie)&&this.ip(ie),y.isModified=!0}else b===Ds&&(E==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):E==="ModelDisplaced"&&this.Wd());else if(b===aa){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===Pa||b===ka){var pe=a.change===Pa,Se=pe?a.newParam:a.oldParam,Ne=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,Ne,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}}}}},qo.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)},qo.prototype.rp=function(){for(var a=this.H.model,y=new ar,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()},qo.prototype.refreshDataBoundLinks=function(){},qo.prototype.updateRelationshipsFromData=function(){},qo.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=Nr()),b.push(ne))}if(b!==null)break}if(b!==null){for(E=0;E<b.length;E++)b[E].La(y);jr(b)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function by(a,y){var b=y.Hh;if(fr(b)){var E=a.aj.I(b);if(E===null)E=[],E.push(y),a.aj.add(b,E);else{for(a=0;a<E.length;a++)if(E[a]===y)return;E.push(y)}}}function Ey(a,y,b){Uf(y,function(ne){ne=ne.O.s;for(var ie=ne.length,se=0;se<ie;se++)hp(b,ne[se])});var E=y.Hh;if(fr(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}}}}qo.prototype.Kj=function(a,y,b){b===void 0&&(b=!1);var E=new Ln;if(fr(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 ar;for(var z=new Ln,ne=E.iterator;ne.next();){var ie=ne.value;if(ie instanceof Rr)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 Ln;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 Li))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 to&&z instanceof to)for(y=y.memberParts;y.next();)ne=M0(a,y.value,b,E,x),ne instanceof Rr||ne===null||(ne.containingGroup=z)}else if(y instanceof Rr&&z instanceof Rr)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}qo.prototype.copyPartData=function(a,y){var b=null,E=a.data;if(E!==null&&y!==null){var x=y.model;a instanceof Rr||(E=x.copyNodeData(E),Xt(E)&&(x.xf(E),b=y.Lc(E)))}else Pc(a),b=a.copy(),b!==null&&(x=this.H,y!==null?y.add(b):E!==null&&x!==null&&x.commandHandler!==null&&x.commandHandler.copiesClipboardData&&(y=x.model,x=null,b instanceof Rr||(x=y.copyNodeData(E)),Xt(x)&&(b.data=x)));return b},pn.Object.defineProperties(qo.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}}}),qo.prototype.updateAllRelationshipsFromData=qo.prototype.rp,qo.prototype.findLinksByExample=qo.prototype.ls,qo.prototype.findNodesByExample=qo.prototype.ms,qo.prototype.findLinkForData=qo.prototype.Kc,qo.prototype.findNodeForData=qo.prototype.ii,qo.prototype.findPartForData=qo.prototype.Lc,qo.prototype.findNodeForKey=qo.prototype.Vb,qo.prototype.removeModeledPart=qo.prototype.ip,qo.prototype.removeModeledParts=qo.prototype.Gs,qo.prototype.rebuildParts=qo.prototype.Wd;var b1=!1,E1=!1,x1=!1;qo.className="PartManager";function zs(a){qo.apply(this,arguments)}Cn(zs,qo),zs.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),w1(this,a.linkDataArray)},zs.prototype.addModeledParts=function(a){for(qo.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)mg(a.value);Yd(this.diagram,!1)};function w1(a,y){y.forEach(function(b){C1(a,b)}),Yd(a.diagram,!1)}function C1(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var b=a.getLinkCategoryForData(y),E=a.findLinkTemplateForCategory(b);if(E!==null){Pc(E);var x=E.copy();if(x!==null){E=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,x.Tf=b,x.ub=y,b=a.diagram.model;var z=_0(b,y,!0);z!==""&&(x.fromPortId=z),z=ic(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=ic(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}}}}zs.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)})}zs.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},zs.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},zs.prototype.setFromNodeForLink=function(a,y){var b=this.diagram.model;b.wv(a.data,b.wa(y!==null?y.data:null))},zs.prototype.setToNodeForLink=function(a,y){var b=this.diagram.model;b.Bv(a.data,b.wa(y!==null?y.data:null))},zs.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},zs.prototype.findPartForKey=function(a){var y=qo.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},zs.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},zs.prototype.doModelChanged=function(a){var y=this;if(qo.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===aa){if(x==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var ne=this.Vb(a.newValue);z.fromNode=ne}}else if(x==="linkToKey"){var ie=this.Kc(a.object);if(ie!==null){var se=this.Vb(a.newValue);ie.toNode=se}}else if(x==="linkFromPortId"){var de=this.Kc(a.object);if(de!==null){var pe=a.newValue;typeof pe=="string"&&(de.fromPortId=pe)}}else if(x==="linkToPortId"){var Se=this.Kc(a.object);if(Se!==null){var Ne=a.newValue;typeof Ne=="string"&&(Se.toPortId=Ne)}}else if(x==="nodeGroupKey"){var Me=this.Lc(a.object);if(Me!==null){var ze=a.newValue;if(ze!==void 0){var qe=this.Vb(ze);qe instanceof to?Me.containingGroup=qe:Me.containingGroup=null}else Me.containingGroup=null}}else if(x==="linkLabelKeys"){var Pt=this.Kc(a.object);if(Pt!==null){var yt=a.oldValue,Rt=a.newValue;Array.isArray(yt)&&yt.forEach(function(hr){0<=Rt.indexOf(hr)||(hr=y.Vb(hr),hr!==null&&(hr.labeledLink=null))}),Array.isArray(Rt)&&Rt.forEach(function(hr){hr=y.Vb(hr),hr!==null&&(hr.labeledLink=Pt)})}}else if(x==="linkCategory"){var Bt=this.Kc(a.object),Gt=a.newValue;Bt!==null&&typeof Gt=="string"&&(Bt.category=Gt)}else x==="linkDataArray"&&(P1(this,a.oldValue),w1(this,a.newValue));b.isModified=!0}else if(E===Pa){var $t=a.newValue;if(x==="linkDataArray"&&typeof $t=="object"&&$t!==null)C1(this,$t);else if(x==="linkLabelKeys"&&uf($t)){var Dn=this.Kc(a.object),Qr=this.Vb($t);Dn!==null&&Qr!==null&&(Qr.labeledLink=Dn)}b.isModified=!0}else if(E===ka){var gi=a.oldValue;if(x==="linkDataArray"&&typeof gi=="object"&&gi!==null)this.ip(gi);else if(x==="linkLabelKeys"&&uf(gi)){var ui=this.Vb(gi);ui!==null&&(ui.labeledLink=null)}b.isModified=!0}}else if(E===aa){var Dr=a.propertyName;a.object!==b.model||Dr!=="linkFromKeyProperty"&&Dr!=="linkToKeyProperty"&&Dr!=="linkFromPortIdProperty"&&Dr!=="linkToPortIdProperty"&&Dr!=="linkLabelKeysProperty"&&Dr!=="nodeIsGroupProperty"&&Dr!=="nodeGroupKeyProperty"&&Dr!=="linkCategoryProperty"||b.undoManager.isUndoingRedoing||this.Wd(),b.isModified=!0}}finally{b.aa=!0}}}}},zs.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,b=new ar,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)})},zs.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 Rr){var x=ic(E,y,!0);if(x=b.Vb(x),a.fromNode=x,x=ic(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 ar().addAll(y);var ne=new ar;a.labelNodes.each(function(ie){ie.data!==null&&(ie=E.wa(ie.data),ie!==void 0&&ne.add(ie))}),y=ne.copy(),y.hp(x),x=x.copy(),x.hp(ne),(0<y.count||0<x.count)&&(y.each(function(ie){ie=b.Vb(ie),ie!==null&&ie.labeledLink===a&&(ie.labeledLink=null)}),x.each(function(ie){ie=b.Vb(ie),ie!==null&&ie.labeledLink!==a&&(ie.labeledLink=a)}))}}else!(a instanceof _o)&&(y=E.lh(y),y=b.findPartForKey(y),y===null||y instanceof to)&&(a.containingGroup=y)}}},zs.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 to&&y.lh(ne)===b&&(ne=this.Lc(ne),ne!==null&&(ne.containingGroup=x)):(z.link=this.Kc(ne),z.link!==null&&x instanceof qr&&(ic(y,ne,!0)===b&&(z.link.fromNode=x),ic(y,ne,!1)===b&&(z.link.toNode=x),ne=y.Ef(ne),Array.isArray(ne)&&ne.some(function(ie){return function(se){return se===b?(x.labeledLink=ie.link,!0):!1}}(z)))),z={link:z.link}}id(y,b)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof to&&(x.containingGroup=a))}},zs.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();)rd(y,b,E.value.data);if(a.isLinkLabel&&(E=a.labeledLink,E!==null&&rd(y,b,E.data)),a instanceof to)for(a=a.memberParts;a.next();)E=a.value.data,y.lb(E)&&rd(y,b,E)}}},zs.prototype.copyPartData=function(a,y){var b=qo.prototype.copyPartData.call(this,a,y);if(a instanceof Rr)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},zs.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 Rr){if(Pc(E),z=E.copy(),z!==null)return z.fromNode=a,z.fromPortId=ie,z.toNode=b,z.toPortId=y,x.add(z),a=ne.archetypeLabelNodeData,a instanceof qr&&(Pc(a),a=a.copy(),a!==null&&(a.labeledLink=z,x.add(a))),z}else if(E!==null&&(E=z.Jo(E),typeof E=="object"&&E!==null))return a!==null&&xg(z,E,z.wa(a.data),!0),wg(z,E,ie,!0),b!==null&&xg(z,E,z.wa(b.data),!1),wg(z,E,y,!1),z.fi(E),a=ne.archetypeLabelNodeData,a===null||a instanceof 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},zs.prototype.findLinkForKey=zs.prototype.findLinkForKey,zs.prototype.findPartForKey=zs.prototype.findPartForKey,zs.prototype.removeAllModeledParts=zs.prototype.removeAllModeledParts,zs.prototype.addModeledParts=zs.prototype.addModeledParts,zs.prototype.addAllModeledParts=zs.prototype.addAllModeledParts,zs.className="GraphLinksPartManager";function mc(){qo.apply(this,arguments),this.Sg=null}Cn(mc,qo);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||!Js(E,x,z,null,!0))&&(y=a.getLinkCategoryForData(b.data),E=a.findLinkTemplateForCategory(y),E!==null&&(Pc(E),E=E.copy(),E!==null))){var ne=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=y,E.ub=b.data,E.fromNode=x,E.toNode=z,a.diagram.add(E),E.ub=null,E.data=b.data,a.diagram.skipsModelSourceBindings=ne}}}mc.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},mc.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},mc.prototype.setFromNodeForLink=function(a,y,b){var E=this.diagram.model;if(b===void 0&&(b=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)E.qe(a.data,E.wa(y));else{var x=this.Sg;this.Sg=a,b!==null&&E.qe(b.data,void 0),E.qe(y,E.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=x}},mc.prototype.setToNodeForLink=function(a,y,b){var E=this.diagram.model;if(b===void 0&&(b=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var x=this.Sg;this.Sg=a,b!==null&&E.qe(b.data,void 0),E.qe(y,E.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=x}else E.qe(a.data,E.wa(y))},mc.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},mc.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},mc.prototype.doModelChanged=function(a){if(qo.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===aa){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===aa){var Se=a.propertyName;a.object===y.model&&Se==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},mc.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var b=a.diagram;if(b!==null){var E=b.model;a instanceof 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&&ap(b,E,!1)))}}},mc.prototype.updateDataBindings=function(a,y){qo.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},mc.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,b=y.wa(a);if(b!==void 0){var E=fm(y,b),x=this.Lc(a);if(E!==null&&x!==null){for(E=E.iterator;E.next();){var z=E.value;y.lb(z)&&x instanceof qr&&y.mh(z)===b&&O0(this,x,this.ii(z))}id(y,b)}a=y.mh(a),a!==void 0&&x instanceof qr&&(a=this.Vb(a),O0(this,a,x))}},mc.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(ka,"parts",x,E,null,z,null),z=E.layerChanged,z!==null&&z(E,x,null)}}for(E=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)x=a.value,x=(E?x.toNode:x.fromNode).data,y.lb(x)&&rd(y,b,x)}},mc.prototype.insertLink=function(a,y,b){y=this.diagram.model;var E=a,x=b;return this.diagram.isTreePathToChildren||(E=b,x=a),E!==null&&x!==null?(y.qe(x.data,y.wa(E.data)),x.kh()):null},mc.prototype.findLinkForKey=mc.prototype.findLinkForKey,mc.className="TreePartManager";function xi(a,y){this.kl=new ar,this.il=new ar,this.Wv=`,
"insertedNodeKeys": `,this.jy=`,
"modifiedNodeData": `,this.Yv=`,
"removedNodeKeys": `,this.vh=null,Ei(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new Ln,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 Ln,this.Lt=new er,this.Wg=!1,this.o=null,this.undoManager=new ea,a!==void 0&&(fr(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}xi.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},xi.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},xi.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},xi.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)+":"+vi(x)}}return y},xi.prototype.xA=function(a){a.change!==Ds&&xt("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Va?(A1(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},xi.prototype.Qv=function(a,y){var b=this,E=!1,x=new ar,z=new ar,ne=new ar,ie=this.vh;a.changes.each(function(Se){Se.model===b&&(Se.modelChange==="nodeDataArray"?Se.change===Pa?x.add(Se.newValue):Se.change===ka&&ne.add(Se.oldValue):b.lb(Se.object)?z.add(Se.object):Se.change!==aa||b.modelData!==Se.object&&Se.propertyName!=="modelData"?Se.object!==null&&(ie&&ie.contains(Se.object)?ie.get(Se.object).each(function(Ne){b.lb(Ne)&&z.add(Ne)}):Se.object instanceof xi||b.ri()&&b.Jc(Se.object)||N1(b,Se.object).each(function(Ne){z.add(Ne)})):E=!0)});var se=this.il;se.clear(),x.each(function(Se){se.add(b.wa(Se)),y||z.add(Se)});var de=this.kl;de.clear(),ne.each(function(Se){de.add(b.wa(Se)),y&&z.add(Se)}),a=b.cloneDeep(z.Fa());var pe=null;return E&&(pe===null&&(pe={}),pe.modelData=this.cloneDeep(this.modelData)),0<se.count&&(pe===null&&(pe={}),y?pe.removedNodeKeys=se.Fa():pe.insertedNodeKeys=se.Fa()),0<a.length&&(pe===null&&(pe={}),pe.modifiedNodeData=a),0<de.count&&(pe===null&&(pe={}),y?pe.insertedNodeKeys=de.Fa():pe.removedNodeKeys=de.Fa()),de.clear(),se.clear(),pe},xi.prototype.cloneDeep=function(a){return Eg(this,a,!0)};function Eg(a,y,b,E,x,z){function ne(Se,Ne){ie?(Se.__gohashid===void 0&&z.push(Se),E.set(Se,Ne)):(Se=po++,E.set(Se,Ne),x.set(Se,y))}if(!Xt(y))return y;z||(z=[]);var ie=Object.isExtensible(y);if(E||(E=new Ln),ie){var se=E.get(y);if(se)return se}else for(x||(x=new Ln),se=x.iterator;se.next();){var de=se.key;if(se.value===y&&(de=E.get(de)))return de}if(Array.isArray(y)){se=[],ne(y,se);for(var pe=0;pe<y.length;pe++)se.push(Eg(a,y[pe],!1,E,x,z))}else if(y instanceof rt||y instanceof ln||y instanceof kn||y instanceof Xi||y instanceof fi)se=y.copy(),ne(y,se);else{if(y instanceof Fo||y instanceof Ar||y instanceof Qn)return y;if(y instanceof er)se=new er().addAll(Eg(a,y.Fa(),!1,E,x,z)),ne(y,se);else if(y instanceof ar)se=new ar().addAll(Eg(a,y.Fa(),!1,E,x,z)),ne(y,se);else if(y instanceof Ln)se=new Ln().addAll(Eg(a,y.Fa(),!1,E,x,z)),ne(y,se);else if(y instanceof Date)se=new Date(y.getTime()),ne(y,se);else if(y instanceof RegExp)se=new RegExp(y),ne(y,se),se.lastIndex=y.lastIndex;else if(typeof y.copy=="function")se=y.copy(),ne(y,se);else for(pe in se={},ne(y,se),y)pe!=="__gohashid"&&(se[pe]=Eg(a,y[pe],!1,E,x,z))}return b&&z.forEach(function(Se){delete Se.__gohashid}),se}Oe=xi.prototype,Oe.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Oe.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},Oe.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,Xt(y)&&(a.dm(y),a.modelData=y)}Oe.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)},Oe.kv=function(a){T1(this,a),a=a.nodeDataArray,fr(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 ar,ne.add(z),E.add(x,ne)):ne.add(z)}}var E=a.vh;E===null&&(E=new Ln,y.changes.each(function(x){if(x.diagram!==null){var z=x.change;z===aa?(x=x.object.panel)&&(z=x.data)&&b(z,x):(z===Pa||z===ka)&&(x=x.object,(z=x.itemArray)&&b(z,x))}}),a.vh=E)}function N1(a,y){for(var b=new ar,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(Xt(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}Oe.Pv=function(a,y){var b=this,E=!1,x=new ar,z=new ar,ne=new ar,ie=this.vh;a.changes.each(function(pe){pe.model===b&&(pe.modelChange==="nodeDataArray"?pe.change===Pa?x.add(pe.newValue):pe.change===ka&&ne.add(pe.oldValue):b.lb(pe.object)?z.add(pe.object):pe.change!==aa||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 xi||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},Oe.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)&&xt("applyIncrementalJson cannot change Model properties"),T1(this,a);var y=a.insertedNodeKeys,b=a.modifiedNodeData,E=new Ln;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)},Oe.$x=function(a,y){a.change!==Ds&&xt("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var b=a.object;return a.isTransactionFinished&&b instanceof Va?(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 }'},Oe.yA=function(a,y){return this.$x(a,y)},Oe.np=function(a){return a===void 0&&(a=pm(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Oe.toJSON=function(a){return this.np(a)},Oe.Zw=function(a){var y=null;if(typeof a=="string")try{y=dr.JSON.parse(a)}catch(E){}else typeof a=="object"?y=a:xt("Unable to modify a Model from: "+a);var b=y.incremental;typeof b!="number"&&xt("Unable to apply non-incremental changes to Model: "+a),b!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Oe.Ky=function(a){return this.Zw(a)},xi.constructGraphLinksModel=function(){return new xi},Oe=xi.prototype,Oe.dm=function(a){if(fr(a))for(var y=a.length,b=0;b<y;b++){var E=a[b];if(Xt(E)){var x=b;E=this.dm(E),Array.isArray(a)?a[x]=E:xt("Cannot replace an object in an HTMLCollection or NodeList at "+x)}}else if(Xt(a)){for(y in a)if(b=a[y],Xt(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 er,E=0;E<b.length/2;E++)x.add(new rt(b[2*E],b[2*E+1]));x.freeze(),a[y]=x}}return bE(a)}return a},Oe.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()):fr(a)?lf(this,a):Xt(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 si;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 tu(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function xy(a,y){var b=y;if(b instanceof rt)y={class:"go.Point",x:tu(b.x),y:tu(b.y)};else if(b instanceof ln)y={class:"go.Size",width:tu(b.width),height:tu(b.height)};else if(b instanceof kn)y={class:"go.Rect",x:tu(b.x),y:tu(b.y),width:tu(b.width),height:tu(b.height)};else if(b instanceof Xi)y={class:"go.Margin",top:tu(b.top),right:tu(b.right),bottom:tu(b.bottom),left:tu(b.left)};else if(b instanceof fi)b.sb()?y={class:"go.Spot",x:tu(b.x),y:tu(b.y),offsetX:tu(b.offsetX),offsetY:tu(b.offsetY)}:y={class:"go.Spot",enum:b.toString()};else if(b instanceof Fo){if(y={class:"go.Brush",type:b.type.name},b.type===Ch?y.color=b.color:(b.type===nh||b.type===pc)&&(y.start=b.start,y.end=b.end,b.type===pc&&(b.startRadius!==0&&(y.startRadius=tu(b.startRadius)),isNaN(b.endRadius)||(y.endRadius=tu(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 Ar?(y={class:"go.Geometry",type:b.type.name},b.startX!==0&&(y.startX=tu(b.startX)),b.startY!==0&&(y.startY=tu(b.startY)),b.endX!==0&&(y.endX=tu(b.endX)),b.endY!==0&&(y.endY=tu(b.endY)),b.spot1.D(fo)||(y.spot1=b.spot1),b.spot2.D(Uo)||(y.spot2=b.spot2),b.type===Ar.o&&(y.path=Ar.ia(b))):b instanceof Qn&&(y={class:"go.EnumValue",classType:pm(a,b.classType),name:b.name});E="{",b=!0;for(var x in y){var z=os(y,x);if(!L1(x,z))if(b?b=!1:E+=",",E+=a.quote(x)+":",x==="points"&&z instanceof er){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 nu(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function bE(a){if(typeof a!="object")return a;var y=a.class||"";if(y==="NaN")return NaN;if(y==="Date")return new Date(a.value);if(y.indexOf("go.")!==0)return a;y=y.substr(3);var b=a;if(y==="Point")b=new rt(nu(a.x),nu(a.y));else if(y==="Size")b=new ln(nu(a.width),nu(a.height));else if(y==="Rect")b=new kn(nu(a.x),nu(a.y),nu(a.width),nu(a.height));else if(y==="Margin")b=new Xi(nu(a.top),nu(a.right),nu(a.bottom),nu(a.left));else if(y==="Spot")typeof a.enum=="string"?b=pa(a.enum):b=new fi(nu(a.x),nu(a.y),nu(a.offsetX),nu(a.offsetY));else if(y==="Brush"){if(b=new Fo,b.type=zr(Fo,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=nu(a.startRadius)),typeof a.endRadius=="number"&&(b.endRadius=nu(a.endRadius)),a=a.colorStops,Xt(a))for(var E in a)b.addColorStop(parseFloat(E),a[E])}else y==="Geometry"?(b=null,typeof a.path=="string"?b=Ar.parse(a.path):b=new Ar,b.type=zr(Ar,a.type),typeof a.startX=="number"&&(b.startX=nu(a.startX)),typeof a.startY=="number"&&(b.startY=nu(a.startY)),typeof a.endX=="number"&&(b.endX=nu(a.endX)),typeof a.endY=="number"&&(b.endY=nu(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=zr(E,a.name)));return b}Oe.Pe=function(a){return this.Lt.add(a),this},Oe.ik=function(a){this.Lt.remove(a)},Oe.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)},Oe.cb=function(a,y,b,E,x,z,ne){xs(this,"",a,y,b,E,x,z,ne)},Oe.g=function(a,y,b,E,x){xs(this,"",aa,a,this,y,b,E,x)},Oe.Fs=function(a,y,b,E,x,z){xs(this,"",aa,y,a,b,E,x,z)};function xs(a,y,b,E,x,z,ne,ie,se){ie===void 0&&(ie=null),se===void 0&&(se=null);var de=new ga;de.model=a,de.change=b,de.modelChange=y,de.propertyName=E,de.object=x,de.oldValue=z,de.oldParam=ie,de.newValue=ne,de.newParam=se,a.ds(de)}xi.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===aa){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===Pa?(b=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,Xt(a)&&typeof b=="number"&&(E=this.wa(a),y?(this.Tc[b]===a&&Ue(this.Tc,b),E!==void 0&&this.kb.remove(E)):(this.Tc[b]!==a&&un(this.Tc,b,a),E!==void 0&&this.kb.add(E,a)))):a.modelChange===""?((E=a.object)&&!fr(E)&&a.propertyName&&(E=os(a.object,a.propertyName)),fr(E)&&typeof b=="number"&&(a=a.newValue,y?Ue(E,b):un(E,b,a))):xt("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===ka?(b=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,Xt(a)&&typeof b=="number"&&(E=this.wa(a),y?(this.Tc[b]!==a&&un(this.Tc,b,a),E!==void 0&&this.kb.add(E,a)):(this.Tc[b]===a&&Ue(this.Tc,b),E!==void 0&&this.kb.remove(E)))):a.modelChange===""?((E=a.object)&&!fr(E)&&a.propertyName&&(E=os(a.object,a.propertyName)),fr(E)&&typeof b=="number"&&(a=a.oldValue,y?un(E,b,a):Ue(E,b))):xt("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==Ds&&xt("unknown ChangedEvent: "+a.toString())},xi.prototype.Ea=function(a){return this.undoManager.Ea(a)},xi.prototype.eb=function(a){return this.undoManager.eb(a)},xi.prototype.Kf=function(){return this.undoManager.Kf()},xi.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}},Oe=xi.prototype,Oe.La=function(a,y){y===void 0&&(y=""),xs(this,"SourceChanged",Ds,y,a,null,null)},Oe.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=os(a,y),y!==void 0)){if(uf(y))return y;xt("Key value for node data "+a+" is not a number or a string: "+y)}}},Oe.km=function(a,y){if(a!==null){var b=this.Th;if(b!=="")if(this.lb(a)){var E=os(a,b);E!==y&&this.hc(y)===null&&(Ca(a,b,y),E!==void 0&&this.kb.remove(E),this.kb.add(y,a),xs(this,"nodeKey",aa,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"}Oe.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Oe.hc=function(a){return a===null&&xt("Model.findNodeDataForKey:key must not be null"),a!==void 0&&uf(a)?this.kb.I(a):null},Oe.$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)}}}}},Oe.xf=function(a){a!==null&&(Gi(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&&xt("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(E,y),E=null,b&&(E=a.Tc.length,un(a.Tc,E,y)),xs(a,"nodeDataArray",Pa,"nodeDataArray",a,null,y,null,E),a.fm(y),a.em(y))}Oe.Fy=function(a){if(fr(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)},Oe.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;Ue(a.Tc,E)}xs(a,"nodeDataArray",ka,"nodeDataArray",a,y,null,E,null),a.qp(y)}Oe.nA=function(a){if(fr(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)},Oe.$z=function(a){if(a!==this.nodeDataArray&&fr(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()}},Oe.jp=function(a,y){y!==void 0&&(a=fm(this,a),a instanceof ar&&this.Vf.add(y,a))},Oe.Lv=function(){},Oe.fm=function(){},Oe.em=function(){},Oe.qp=function(){};function rd(a,y,b){if(y!==void 0){var E=a.Vf.I(y);E===null&&(E=new ar,a.Vf.add(y,E)),E.add(b)}}function id(a,y,b){if(y!==void 0){var E=a.Vf.I(y);E instanceof ar&&(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 ar?a:null)}Oe.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},xi.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):B0(this,a,!0),Xt(a)&&Ei(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 Ei(E),E}if(b&&Xt(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=os(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 xi||z instanceof ea||z instanceof Va||z instanceof ga||(z=B0(a,z,!1)),Ca(b,E,z)}return Ei(b),b}return y instanceof rt||y instanceof ln||y instanceof kn||y instanceof fi||y instanceof Xi?y.copy():y}xi.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 rn&&(D1=!0,Br('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Br(" Is that really your intent?"));var E=os(a,y);E!==b&&(Ca(a,y,b),this.Fs(a,y,E,b))},Oe=xi.prototype,Oe.set=function(a,y,b){this.setDataProperty(a,y,b)},Oe.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])}},Oe.Ay=function(a,y){this.ts(a,-1,y)},Oe.ts=function(a,y,b){0>y&&(y=a.length),un(a,y,b),xs(this,"",Pa,"",a,null,b,null,y)},Oe.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&xt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var b=a[y];Ue(a,y),xs(this,"",ka,"",a,b,null,y,null)},Oe.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=os(a,y),y===void 0))return"";if(typeof y=="string")return y;xt("getCategoryForNodeData found a non-string category for "+a+": "+y)},Oe.jm=function(a,y){if(a!==null){var b=this.lj;if(b!=="")if(this.lb(a)){var E=os(a,b);E===void 0&&(E=""),E!==y&&(Ca(a,b,y),xs(this,"nodeCategory",aa,b,a,E,y))}else Ca(a,b,y)}},Oe.lm=function(a,y){this.jm(y,this.Ro(a))},Oe.Tl=function(){return!1},Oe.Wj=function(){return!1},Oe.ri=function(){return!1},Oe.xs=function(){return!1},Oe.Xj=function(){return!1};function wy(){return new xi}function pm(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return pm(a,y.constructor);return typeof y}function Cy(a){return _c[a]?_c[a]:dr.go!==void 0&&dr.go[a]?dr.go[a]:null}function os(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){}}pn.Object.defineProperties(xi.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===""&&xt("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&xt("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];Xt(x)||xt("Model.nodeDataArray must only contain Objects, not: "+x),Gi(x)}for(this.Tc=a,E=new er,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(xs(this,"nodeDataArray",aa,"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"}}}),xi.prototype.setCategoryForNodeData=xi.prototype.jm,xi.prototype.getCategoryForNodeData=xi.prototype.Ro,xi.prototype.removeArrayItem=xi.prototype.ov,xi.prototype.insertArrayItem=xi.prototype.ts,xi.prototype.addArrayItem=xi.prototype.Ay,xi.prototype.assignAllDataProperties=xi.prototype.Do,xi.prototype.set=xi.prototype.set,xi.prototype.clearUnresolvedReferences=xi.prototype.Qy,xi.prototype.mergeNodeDataArray=xi.prototype.$z,xi.prototype.removeNodeDataCollection=xi.prototype.nA,xi.prototype.removeNodeData=xi.prototype.cm,xi.prototype.addNodeDataCollection=xi.prototype.Fy,xi.prototype.addNodeData=xi.prototype.xf,xi.prototype.makeNodeDataKeyUnique=xi.prototype.$u,xi.prototype.findNodeDataForKey=xi.prototype.hc,xi.prototype.containsNodeData=xi.prototype.lb,xi.prototype.setKeyForNodeData=xi.prototype.km,xi.prototype.getKeyForNodeData=xi.prototype.wa,xi.prototype.updateTargetBindings=xi.prototype.La,xi.prototype.commit=xi.prototype.commit,xi.prototype.rollbackTransaction=xi.prototype.Kf,xi.prototype.commitTransaction=xi.prototype.eb,xi.prototype.startTransaction=xi.prototype.Ea,xi.prototype.raiseDataChanged=xi.prototype.Fs,xi.prototype.raiseChanged=xi.prototype.g,xi.prototype.raiseChangedEvent=xi.prototype.cb,xi.prototype.removeChangedListener=xi.prototype.ik,xi.prototype.addChangedListener=xi.prototype.Pe,xi.prototype.writeJsonValue=xi.prototype.sm,xi.prototype.replaceJsonObjects=xi.prototype.dm,xi.prototype.applyIncrementalJSON=xi.prototype.Ky,xi.prototype.applyIncrementalJson=xi.prototype.Zw,xi.prototype.toJSON=xi.prototype.toJSON,xi.prototype.toJson=xi.prototype.np,xi.prototype.toIncrementalJSON=xi.prototype.yA,xi.prototype.toIncrementalJson=xi.prototype.$x,xi.prototype.toIncrementalData=xi.prototype.xA,xi.prototype.clear=xi.prototype.clear;var D1=!1,_c={};xi.className="Model",xi.fromJSON=xi.fromJson=function(a,y){y===void 0&&(y=null);var b=null;if(typeof a=="string")try{b=dr.JSON.parse(a)}catch(z){}else typeof a=="object"?b=a:xt("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=dr[E])),typeof x=="function"&&(a=new x)}catch(z){}a===null||a instanceof xi?y=a:xt("Unable to construct a Model of declared class: "+b.class)}return y===null&&(y=xi.constructGraphLinksModel()),y.gp(b),y.kv(b),y},xi.safePropertyValue=os,xi.safePropertySet=Ca,_c.Brush=Fo,_c.ChangedEvent=ga,_c.Geometry=Ar,_c.Margin=Xi,_c.Panel=Tr,_c.Point=rt,_c.Rect=kn,_c.Size=ln,_c.Spot=fi,_c.Transaction=Va,_c.UndoManager=ea;function ls(a,y,b,E){Ei(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 ar}ls.prototype.copy=function(){var a=new ls;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},Oe=ls.prototype,Oe.qb=function(a){a.classType===ls&&(this.mode=a)},Oe.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Oe.freeze=function(){return this._isFrozen=!0,this},Oe.ka=function(){return this._isFrozen=!1,this},Oe.Kx=function(a){return a===void 0&&(a=null),this.mode=gm,this.backConverter=a,this},Oe.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Oe.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)}Oe.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==="")Br("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(E!==""&&(z=os(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){}}}},Oe.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=os(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 Ne=z(ne,y,se);if(Ne!==void 0&&se!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var Me=E.itemIndex,ze=E.panel.itemArray;se.ov(ze,Me),se.ts(ze,Me,Ne)}}}catch(qe){}}finally{this.st.remove(a)}}}},pn.Object.defineProperties(ls.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&on(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&on(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&on(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&on(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&on(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&on(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&on(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&on(this),this.el=a}}}),ls.prototype.updateSource=ls.prototype.sp,ls.prototype.updateTarget=ls.prototype.Mv,ls.prototype.ofModel=ls.prototype.dA,ls.prototype.ofObject=ls.prototype.cp,ls.prototype.makeTwoWay=ls.prototype.Kx;var EE="Binding",M1=new Qn(ls,"OneWay",1),gm=new Qn(ls,"TwoWay",2);ls.className="Binding",ls.parseEnum=function(a,y){return function(b){return b=zr(a,b),b===null?y:b}},ls.toString=vi,ls.OneWay=M1,ls.TwoWay=gm;function Io(a,y,b){xi.call(this),this.Vv=`,
"insertedLinkKeys": `,this.iy=`,
"modifiedLinkData": `,this.Xv=`,
"removedLinkKeys": `,this.md=[],this.$f=new ar,this.wb=new Ln,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&&(fr(a)?this.nodeDataArray=a:b=a),b&&(Object.assign(this,b),a=b.Changed)&&(delete this.Changed,this.Pe(a))}Cn(Io,xi),Io.constructGraphLinksModel=xi.constructGraphLinksModel,Io.prototype.cloneProtected=function(a){xi.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},Oe=Io.prototype,Oe.clear=function(){xi.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Oe.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)+":"+vi(x)}for(y+=`
link data:`,a=this.linkDataArray,b=a.length,E=0;E<b;E++)x=a[E],y+=" "+ic(this,x,!0)+"-->"+ic(this,x,!1)}return y},Oe.Qv=function(a,y){this.linkKeyProperty===""&&xt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var b=xi.prototype.Qv.call(this,a,y),E=this,x=new ar,z=new ar,ne=new ar,ie=this.vh;a.changes.each(function(pe){pe.model===E&&(pe.modelChange==="linkDataArray"?pe.change===Pa?x.add(pe.newValue):pe.change===ka&&ne.add(pe.oldValue):E.Jc(pe.object)?z.add(pe.object):pe.object!==null&&(pe.object!==null&&ie&&ie.contains(pe.object)?ie.get(pe.object).each(function(Se){E.Jc(Se)&&z.add(Se)}):pe.object instanceof xi||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},Oe.rm=function(){var a=xi.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},Oe.gp=function(a){xi.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)},Oe.Rv=function(){var a=xi.prototype.Rv.call(this),y=`,
"linkDataArray": `+lf(this,this.linkDataArray,!0);return a+y},Oe.kv=function(a){xi.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 ar,E=0;E<a.linkDataArray.length;E++){var x=a.linkDataArray[E];F0(a,y,x,x,b)}return b}Oe.Pv=function(a,y){this.linkKeyProperty===""&&xt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var b=xi.prototype.Pv.call(this,a,y),E=this,x=new ar,z=new ar,ne=new ar,ie=this.vh;a.changes.each(function(pe){pe.model===E&&(pe.modelChange==="linkDataArray"?pe.change===Pa?x.add(pe.newValue):pe.change===ka&&ne.add(pe.oldValue):E.Jc(pe.object)?z.add(pe.object):pe.object!==null&&(pe.object!==null&&ie&&ie.contains(pe.object)?ie.get(pe.object).each(function(Se){E.Jc(Se)&&z.add(Se)}):pe.object instanceof xi||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},Oe.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)&&xt("applyIncrementalJson cannot change Model properties"),xi.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var b=y.length,E=0;E<b;E++){var x=y[E],z=this.jh(x);z===null&&(z=this.Jo({}),this.Ks(z,x),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(b=y.length,E=0;E<b;E++)if(x=y[E],z=this.Ac(x),z=this.jh(z),z!==null){for(var ne in x)ne!=="__gohashid"&&ne!==this.linkKeyProperty&&this.setDataProperty(z,ne,x[ne]);_1(this,x,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(ne=a.length,y=0;y<ne;y++)b=this.jh(a[y]),b!==null&&this.bm(b)},Io.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===aa){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===Pa){if(b=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,Xt(a)&&typeof b=="number"&&(E=this.Ac(a),y?(this.$f.remove(a),this.md[b]===a&&this.md.splice(b,1),E!==void 0&&this.wb.remove(E)):(this.$f.add(a),this.md[b]!==a&&this.md.splice(b,0,a),E!==void 0&&this.wb.add(E,a)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof b=="number"&&(y?(b=E.indexOf(a.newValue),0<=b&&E.splice(b,1)):0>E.indexOf(a.newValue)&&E.splice(b,0,a.newValue));return}}else if(a.change===ka){if(b=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,Xt(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}}xi.prototype.changeState.call(this,a,y)}},Oe=Io.prototype,Oe.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}},Oe.yx=function(a){return ic(this,a,!0)},Oe.wv=function(a,y){xg(this,a,y,!0)},Oe.Bx=function(a){return ic(this,a,!1)},Oe.Bv=function(a,y){xg(this,a,y,!1)};function ic(a,y,b){if(y!==null&&(a=b?a.lf:a.mf,a!==""&&(a=os(y,a),a!==void 0))){if(uf(a))return a;xt((b?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function xg(a,y,b,E){if(b===null&&(b=void 0),y!==null){var x=E?a.lf:a.mf;if(x!=="")if(b=a.Vl(b),a.Jc(y)){var z=os(y,x);z!==b&&(id(a,z,y),Ca(y,x,b),a.hc(b)===null&&rd(a,b,y),xs(a,E?"linkFromKey":"linkToKey",aa,x,y,z,b),typeof x=="string"&&a.La(y,x))}else Ca(y,x,b)}}Oe.zx=function(a){return _0(this,a,!0)},Oe.xv=function(a,y){wg(this,a,y,!0)},Oe.Cx=function(a){return _0(this,a,!1)},Oe.Cv=function(a,y){wg(this,a,y,!1)};function _0(a,y,b){return y===null||(a=b?a.ej:a.fj,a==="")?"":(y=os(y,a),y===void 0?"":y)}function wg(a,y,b,E){if(y!==null){var x=E?a.ej:a.fj;if(x!=="")if(a.Jc(y)){var z=os(y,x);z===void 0&&(z=""),z!==b&&(Ca(y,x,b),xs(a,E?"linkFromPortId":"linkToPortId",aa,x,y,z,b),typeof x=="string"&&a.La(y,x))}else Ca(y,x,b)}}Oe.Ef=function(a){if(a===null)return U0;var y=this.je;return y===""?U0:(a=os(a,y),a===void 0?U0:a)},Oe.Ls=function(a,y){if(a!==null){var b=this.je;if(b!=="")if(this.Jc(a)){var E=os(a,b);if(E===void 0&&(E=U0),E!==y){if(Array.isArray(E))for(var x=E.length,z=0;z<x;z++)id(this,E[z],a);for(Ca(a,b,y),x=y.length,z=0;z<x;z++){var ne=y[z];this.hc(ne)===null&&rd(this,ne,a)}xs(this,"linkLabelKeys",aa,b,a,E,y),typeof b=="string"&&this.La(a,b)}}else Ca(a,b,y)}},Oe.Bu=function(a,y){if(y!=null&&a!==null){var b=this.je;if(b!==""){var E=os(a,b);if(E===void 0)b=[],b.push(y),this.Ls(a,b);else if(Array.isArray(E)){var x=E.indexOf(y);0<=x||(x=E.length,E.push(y),this.Jc(a)&&(this.hc(y)===null&&rd(this,y,a),xs(this,"linkLabelKeys",Pa,b,a,null,y,null,x)))}else xt(b+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Oe.Qx=function(a,y){if(y!=null&&a!==null){var b=this.je;if(b!==""){var E=os(a,b);if(Array.isArray(E)){var x=E.indexOf(y);0>x||(E.splice(x,1),this.Jc(a)&&(id(this,y,a),xs(this,"linkLabelKeys",ka,b,a,y,null,x,null)))}else E!==void 0&&xt(b+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Oe.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=os(a,y),y!==void 0)){if(uf(y))return y;xt("Key value for link data "+a+" is not a number or a string: "+y)}}},Oe.Ks=function(a,y){if(a!==null){var b=this.Jh;if(b!=="")if(this.Jc(a)){var E=os(a,b);E!==y&&this.jh(y)===null&&(Ca(a,b,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),xs(this,"linkKey",aa,b,a,E,y),typeof b=="string"&&this.La(a,b))}else Ca(a,b,y)}},Oe.jh=function(a){return a===null&&xt("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&uf(a)?this.wb.I(a):null},Oe.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)}}}}},Oe.Jc=function(a){return a===null?!1:this.$f.contains(a)},Oe.fi=function(a){a!==null&&(Gi(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&&xt("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)),xs(a,"linkDataArray",Pa,"linkDataArray",a,null,y,null,E),Py(a,y)}Oe.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)},Oe.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(xs(a,"linkDataArray",ka,"linkDataArray",a,y,null,E,null),b=ic(a,y,!0),id(a,b,y),b=ic(a,y,!1),id(a,b,y),E=a.Ef(y),Array.isArray(E))for(var x=E.length,z=0;z<x;z++)b=E[z],id(a,b,y)}Oe.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)},Oe.Zz=function(a){if(this.linkKeyProperty===""&&xt("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&fr(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=ic(a,y,!0);b=a.Vl(b),a.hc(b)===null&&rd(a,b,y),b=ic(a,y,!1),b=a.Vl(b),a.hc(b)===null&&rd(a,b,y);var E=a.Ef(y);if(Array.isArray(E))for(var x=E.length,z=0;z<x;z++)b=E[z],a.hc(b)===null&&rd(a,b,y)}Oe.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):B0(this,a,!0),Xt(a)&&(Ei(a),this.lf!==""&&Ca(a,this.lf,void 0),this.mf!==""&&Ca(a,this.mf,void 0),this.je!==""&&Ca(a,this.je,[])),a},Oe.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!os(a,y)},Oe.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=os(a,y),y!==void 0)){if(uf(y))return y;xt("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Oe.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var b=this.Je;if(b!=="")if(this.lb(a)){var E=os(a,b);E!==y&&(id(this,E,a),Ca(a,b,y),this.hc(y)===null&&rd(this,y,a),xs(this,"nodeGroupKey",aa,b,a,E,y),typeof b=="string"&&this.La(a,b))}else Ca(a,b,y)}},Io.prototype.copyNodeData=function(a){return a===null?null:(a=xi.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||os(a,this.Je)===void 0||Ca(a,this.Je,void 0),a)},Io.prototype.setDataProperty=function(a,y,b){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,b);return}if(y===this.nodeCategoryProperty){this.jm(a,b);return}if(y===this.nodeGroupKeyProperty){this.mp(a,b);return}}else if(this.Jc(a)){if(y===this.linkFromKeyProperty){xg(this,a,b,!0);return}if(y===this.linkToKeyProperty){xg(this,a,b,!1);return}if(y===this.linkFromPortIdProperty){wg(this,a,b,!0);return}if(y===this.linkToPortIdProperty){wg(this,a,b,!1);return}if(y===this.linkKeyProperty){this.Ks(a,b);return}if(y===this.linkCategoryProperty){this.lp(a,b);return}if(y===this.linkLabelKeysProperty){this.Ls(a,b);return}}var E=os(a,y);E!==b&&(Ca(a,y,b),this.Fs(a,y,E,b))},Oe=Io.prototype,Oe.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&&os(a,x)===y[x]||E&&x===this.linkKeyProperty||this.setDataProperty(a,x,y[x])}},Oe.jp=function(a,y){xi.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(ic(this,E,!0)===x){var ne=this.lf;Ca(E,ne,z),xs(this,"linkFromKey",aa,ne,E,x,z),typeof ne=="string"&&this.La(E,ne)}if(ic(this,E,!1)===x&&(ne=this.mf,Ca(E,ne,z),xs(this,"linkToKey",aa,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,xs(this,"linkLabelKeys",Pa,se,E,x,z,de,de))}},Oe.qv=function(a,y,b){if(this.lh(a)===y){var E=this.Je;Ca(a,E,b),xs(this,"nodeGroupKey",aa,E,a,y,b),typeof E=="string"&&this.La(a,E)}},Oe.Lv=function(){xi.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,b=0;b<y;b++)Py(this,a[b])},Oe.fm=function(a){xi.prototype.fm.call(this,a),a=this.wa(a);var y=fm(this,a);if(y!==null){var b=Nr();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)){if(this.lh(E)===a){var x=this.Je;xs(this,"nodeGroupKey",aa,x,E,a,a),typeof x=="string"&&this.La(E,x),b.push(E)}}else if(ic(this,E,!0)===a&&(x=this.lf,xs(this,"linkFromKey",aa,x,E,a,a),typeof x=="string"&&this.La(E,x),b.push(E)),ic(this,E,!1)===a&&(x=this.mf,xs(this,"linkToKey",aa,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&&(xs(this,"linkLabelKeys",Pa,ne,E,a,a,ie,ie),b.push(E))}for(y=0;y<b.length;y++)id(this,a,b[y]);jr(b)}},Oe.em=function(a){xi.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&rd(this,y,a)},Oe.qp=function(a){xi.prototype.qp.call(this,a);var y=this.lh(a);id(this,y,a)},Oe.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=os(a,y),y===void 0))return"";if(typeof y=="string")return y;xt("getCategoryForLinkData found a non-string category for "+a+": "+y)},Io.prototype.getLinkCategoryForData=function(a){return this.ps(a)},Io.prototype.lp=function(a,y){if(a!==null){var b=this.dj;if(b!=="")if(this.Jc(a)){var E=os(a,b);E===void 0&&(E=""),E!==y&&(Ca(a,b,y),xs(this,"linkCategory",aa,b,a,E,y),typeof b=="string"&&this.La(a,b))}else Ca(a,b,y)}},Io.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Oe=Io.prototype,Oe.lm=function(a,y){xi.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))}Oe.Wj=function(){return!0},Oe.ri=function(){return!0},Oe.xs=function(){return!0},Oe.Xj=function(){return!0},pn.Object.defineProperties(Io.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){var y=this.Ri;y!==a&&(this.Ri=a,this.g("archetypeNodeData",y,a))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(a){var y=this.lf;y!==a&&(this.lf=a,this.g("linkFromKeyProperty",y,a))}},linkToKeyProperty:{get:function(){return this.mf},set:function(a){var y=this.mf;y!==a&&(this.mf=a,this.g("linkToKeyProperty",y,a))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(a){var y=this.ej;y!==a&&(this.ej=a,this.g("linkFromPortIdProperty",y,a))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(a){var y=this.fj;y!==a&&(this.fj=a,this.g("linkToPortIdProperty",y,a))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(a){var y=this.je;y!==a&&(this.je=a,this.g("linkLabelKeysProperty",y,a))}},linkDataArray:{get:function(){return this.md},set:function(a){var y=this.md;if(y!==a){this.wb.clear();for(var b=a.length,E=0;E<b;E++){var x=a[E];Xt(x)||xt("GraphLinksModel.linkDataArray must only contain Objects, not: "+x),Gi(x)}if(this.md=a,this.linkKeyProperty!==""){for(E=new er,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 ar,x=0;x<b;x++)E.add(a[x]);for(this.$f=E,xs(this,"linkDataArray",aa,"linkDataArray",this,y,a),y=0;y<b;y++)Py(this,a[y])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(a){var y=this.Jh;if(y!==a){this.Jh=a,this.wb.clear();for(var b=this.linkDataArray.length,E=0;E<b;E++){var x=this.linkDataArray[E],z=this.Ac(x);z===void 0&&(this.Bs(x),z=this.Ac(x)),z!==void 0&&this.wb.add(z,x)}this.g("linkKeyProperty",y,a)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(a){var y=this.cl;y!==a&&(this.cl=a,this.g("makeUniqueLinkKeyFunction",y,a))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(a){var y=this.Ak;y!==a&&(this.Ak=a,this.g("copyLinkDataFunction",y,a))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(a){var y=this.jl;y!==a&&(this.jl=a,this.g("nodeIsGroupProperty",y,a))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(a){var y=this.Je;y!==a&&(this.Je=a,this.g("nodeGroupKeyProperty",y,a))}},Ij:{get:function(){return this.Lm},set:function(a){this.Lm!==a&&(this.Lm=a)}},linkCategoryProperty:{get:function(){return this.dj},set:function(a){var y=this.dj;y!==a&&(this.dj=a,this.g("linkCategoryProperty",y,a))}},type:{get:function(){return"GraphLinksModel"}}}),Io.prototype.setCategoryForLinkData=Io.prototype.lp,Io.prototype.getCategoryForLinkData=Io.prototype.ps,Io.prototype.assignAllDataProperties=Io.prototype.Do,Io.prototype.setGroupKeyForNodeData=Io.prototype.mp,Io.prototype.getGroupKeyForNodeData=Io.prototype.lh,Io.prototype.isGroupForNodeData=Io.prototype.Yu,Io.prototype.copyLinkData=Io.prototype.Jo,Io.prototype.mergeLinkDataArray=Io.prototype.Zz,Io.prototype.removeLinkDataCollection=Io.prototype.lA,Io.prototype.removeLinkData=Io.prototype.bm,Io.prototype.addLinkDataCollection=Io.prototype.Ey,Io.prototype.addLinkData=Io.prototype.fi,Io.prototype.containsLinkData=Io.prototype.Jc,Io.prototype.makeLinkDataKeyUnique=Io.prototype.Bs,Io.prototype.findLinkDataForKey=Io.prototype.jh,Io.prototype.setKeyForLinkData=Io.prototype.Ks,Io.prototype.getKeyForLinkData=Io.prototype.Ac,Io.prototype.removeLabelKeyForLinkData=Io.prototype.Qx,Io.prototype.addLabelKeyForLinkData=Io.prototype.Bu,Io.prototype.setLabelKeysForLinkData=Io.prototype.Ls,Io.prototype.getLabelKeysForLinkData=Io.prototype.Ef,Io.prototype.setToPortIdForLinkData=Io.prototype.Cv,Io.prototype.getToPortIdForLinkData=Io.prototype.Cx,Io.prototype.setFromPortIdForLinkData=Io.prototype.xv,Io.prototype.getFromPortIdForLinkData=Io.prototype.zx,Io.prototype.setToKeyForLinkData=Io.prototype.Bv,Io.prototype.getToKeyForLinkData=Io.prototype.Bx,Io.prototype.setFromKeyForLinkData=Io.prototype.wv,Io.prototype.getFromKeyForLinkData=Io.prototype.yx,Io.prototype.clear=Io.prototype.clear;var U0=Object.freeze([]);Io.className="GraphLinksModel",_c.GraphLinksModel=Io,xi.constructGraphLinksModel=xi.constructGraphLinksModel=function(){return new Io},xi.initDiagramModel=wy=function(){return new Io};function ru(a,y){xi.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(fr(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Cn(ru,xi),ru.constructGraphLinksModel=xi.constructGraphLinksModel,ru.prototype.cloneProtected=function(a){xi.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Oe=ru.prototype,Oe.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)+":"+vi(x)}}return y},Oe.rm=function(){var a=xi.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Oe.gp=function(a){xi.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Oe.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&xt("applyIncrementalJson cannot change Model properties"),xi.prototype.fp.call(this,a)},Oe.Vl=function(a){return a},Oe.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=os(a,y),y!==void 0)){if(uf(y))return y;xt("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Oe.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=os(a,b);E!==y&&(id(this,E,a),Ca(a,b,y),this.hc(y)===null&&rd(this,y,a),xs(this,"nodeParentKey",aa,b,a,E,y),typeof b=="string"&&this.La(a,b))}else Ca(a,b,y)}},Oe.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=os(a,y),y===void 0)?"":typeof y=="string"?y:(xt("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},ru.prototype.getLinkCategoryForData=function(a){return this.ss(a)},ru.prototype.Ms=function(a,y){if(a!==null){var b=this.nj;if(b!=="")if(this.lb(a)){var E=os(a,b);E===void 0&&(E=""),E!==y&&(Ca(a,b,y),xs(this,"parentLinkCategory",aa,b,a,E,y),typeof b=="string"&&this.La(a,b))}else Ca(a,b,y)}},ru.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},ru.prototype.copyNodeData=function(a){return a===null?null:(a=xi.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||os(a,this.Ke)===void 0||Ca(a,this.Ke,void 0),a)},ru.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=os(a,y);E!==b&&(Ca(a,y,b),this.Fs(a,y,E,b))},Oe=ru.prototype,Oe.jp=function(a,y){xi.prototype.jp.call(this,a,y);for(var b=this.kb.iterator;b.next();)this.qv(b.value,a,y)},Oe.qv=function(a,y,b){if(this.mh(a)===y){var E=this.Ke;Ca(a,E,b),xs(this,"nodeParentKey",aa,E,a,y,b),typeof E=="string"&&this.La(a,E)}},Oe.fm=function(a){xi.prototype.fm.call(this,a),a=this.wa(a);var y=fm(this,a);if(y!==null){var b=Nr();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)&&this.mh(E)===a){var x=this.Ke;xs(this,"nodeParentKey",aa,x,E,a,a),typeof x=="string"&&this.La(E,x),b.push(E)}}for(y=0;y<b.length;y++)id(this,a,b[y]);jr(b)}},Oe.em=function(a){xi.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&rd(this,y,a)},Oe.qp=function(a){xi.prototype.qp.call(this,a);var y=this.mh(a);id(this,y,a)},Oe.lm=function(a,y){xi.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Oe.Tl=function(){return!0},Oe.xs=function(){return!0},pn.Object.defineProperties(ru.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"}}}),ru.prototype.setParentLinkCategoryForNodeData=ru.prototype.Ms,ru.prototype.getParentLinkCategoryForNodeData=ru.prototype.ss,ru.prototype.setParentKeyForNodeData=ru.prototype.qe,ru.prototype.getParentKeyForNodeData=ru.prototype.mh,ru.className="TreeModel",_c.TreeModel=ru;function Fa(a){Aa.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=Uc,this.Ti=0,this.Zv=new rt,this.Jp=this.me=0,this.Xr=new Sm,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=Uc,this.K=iu,this.nd=Pg,this.hd=vy,this.tf=6,this.Nn=Z0,a&&Object.assign(this,a)}Cn(Fa,Aa),Fa.prototype.cloneProtected=function(a){Aa.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},Fa.prototype.qb=function(a){a.classType===Fa?a===V0||a===W0||a===G0||a===j0||a===Pg?this.sorting=a:a===Wf||a===Cg||a===iu||a===df?this.direction=a:a===Dh||a===cf||a===Uc||a===Hc?this.arrangement=a:(a===Rp||a===Z0)&&(this.nodeDiameterFormula=a):Aa.prototype.qb.call(this,a)},Fa.prototype.createNetwork=function(){return new Tg(this)},Fa.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 er;y.addAll(a.iterator),a=new er;var b=new er,E=this.sort(y),x,z,ne=this.Jp,ie=this.arrangement,se=this.nodeDiameterFormula,de=this.radius;(!isFinite(de)||0>=de)&&(de=NaN);var pe=this.aspectRatio;(!isFinite(pe)||0>=pe)&&(pe=1);var Se=this.startAngle;isFinite(Se)||(Se=0);var Ne=this.sweepAngle;if((!isFinite(Ne)||360<Ne||1>Ne)&&(Ne=360),y=this.spacing,isFinite(y)||(y=NaN),ie===Hc&&se===Rp?ie=Uc:ie===Hc&&se!==Rp&&(ie=this.arrangement),(this.direction===Wf||this.direction===Cg)&&this.sorting!==Pg){for(se=0;!(se>=E.length)&&(a.add(E.M(se)),!(se+1>=E.length));se+=2)b.add(E.M(se+1));this.direction===Wf?(this.arrangement===Hc&&a.reverse(),E=new er,E.addAll(a),E.addAll(b)):(this.arrangement===Hc&&b.reverse(),E=new er,E.addAll(b),E.addAll(a))}se=E.length;for(var Me=z=x=0;Me<E.length;Me++){var ze=Se+Ne*z*(this.direction===iu?1:-1)/se,qe=E.M(Me).diameter;isNaN(qe)&&(qe=hf(E.M(Me),ze)),360>Ne&&(Me===0||Me===E.length-1)&&(qe/=2),x+=qe,z++}if(isNaN(de)||ie===Hc){if(isNaN(y)&&(y=6),ie!==Uc&&ie!==Hc){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<=Ne?se:se-1),pe,Se*Math.PI/180,Ne*Math.PI/180)}else de=H0(this,x+(360<=Ne?se:se-1)*(ie!==Hc?y:1.6*y),pe,Se*Math.PI/180,Ne*Math.PI/180);z=de*pe}else if(z=de*pe,Me=Ty(this,de,z,Se*Math.PI/180,Ne*Math.PI/180),isNaN(y))(ie===Uc||ie===Hc)&&(y=(Me-x)/(360<=Ne?se:se-1));else if(ie===Uc||ie===Hc)Me=(Me-x)/(360<=Ne?se:se-1),Me<y?(de=H0(this,x+y*(360<=Ne?se:se-1),pe,Se*Math.PI/180,Ne*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<=Ne?se:se-1),pe,Se*Math.PI/180,Ne*Math.PI/180),x>de?(de=x,z=de*pe):ne=Me/(360<=Ne?se:se-1)}if(this.kw=ie,this.lc=de,this.Zm=pe,this.lw=Se,this.Wp=Ne,this.Ti=y,this.me=z,this.Jp=ne,y=E,E=this.kw,ie=this.lc,de=this.lw,pe=this.Wp,Se=this.Ti,Ne=this.me,se=this.Jp,this.direction!==Wf&&this.direction!==Cg||E!==Hc)if(this.direction===Wf||this.direction===Cg){switch(ne=0,E){case cf:ne=180*z0(this,ie,Ne,de,se)/Math.PI;break;case Uc:se=y=0,ne=a.first(),ne!==null&&(y=hf(ne,Math.PI/2)),ne=b.first(),ne!==null&&(se=hf(ne,Math.PI/2)),ne=180*z0(this,ie,Ne,de,Se+(y+se)/2)/Math.PI;break;case Dh:ne=pe/y.length}if(this.direction===Wf){switch(E){case cf:ym(this,a,de,df);break;case Uc:vm(this,a,de,df);break;case Dh:mm(this,a,pe/2,de,df)}switch(E){case cf:ym(this,b,de+ne,iu);break;case Uc:vm(this,b,de+ne,iu);break;case Dh:mm(this,b,pe/2,de+ne,iu)}}else{switch(E){case cf:ym(this,b,de,df);break;case Uc:vm(this,b,de,df);break;case Dh:mm(this,b,pe/2,de,df)}switch(E){case cf:ym(this,a,de+ne,iu);break;case Uc:vm(this,a,de+ne,iu);break;case Dh:mm(this,a,pe/2,de+ne,iu)}}}else switch(E){case cf:ym(this,y,de,this.direction);break;case Uc:vm(this,y,de,this.direction);break;case Dh:mm(this,y,pe,de,this.direction);break;case Hc:U1(this,y,pe,de,this.direction)}else U1(this,y,pe,de-pe/2,iu)}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===iu?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===iu?b:-b,(de.diameter+pe.diameter)/2+ne),b+=E===iu?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===iu?b:-b,ne),b+=E===iu?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===iu?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,z1(a,y,b,E,x)}else H1(a,y,b,E,x);a.Xr.commit(y)}function H1(a,y,b,E,x){var z=a.lc,ne=a.Ti,ie=a.Zm,se=z*Math.cos(E*Math.PI/180),de=a.me*Math.sin(E*Math.PI/180),pe=y.Fa();if(pe.length===3)pe[0].centerX=z,pe[0].centerY=0,pe[1].centerX=pe[0].centerX-pe[0].width/2-pe[1].width/2-ne,pe[1].y=pe[0].y,pe[2].centerX=(pe[0].centerX+pe[1].centerX)/2,pe[2].y=pe[0].y-pe[2].height-ne;else if(pe.length===4)pe[0].centerX=z,pe[0].centerY=0,pe[2].centerX=-pe[0].centerX,pe[2].centerY=pe[0].centerY,pe[1].centerX=0,pe[1].y=Math.min(pe[0].y,pe[2].y)-pe[1].height-ne,pe[3].centerX=0,pe[3].y=Math.max(pe[0].y+pe[0].height+ne,pe[2].y+pe[2].height+ne);else{z=rt.alloc();for(var Se=0;Se<pe.length&&(pe[Se].centerX=se,pe[Se].centerY=de,!(Se>=pe.length-1));Se++)G1(a,se,de,pe,Se,x,z)||j1(a,se,de,pe,Se,x,z),se=z.x,de=z.y;if(rt.free(z),a.mj++,!(23<a.mj)){se=pe[0].centerX,de=pe[0].centerY,z=pe[pe.length-1].centerX,Se=pe[pe.length-1].centerY;var Ne=Math.abs(se-z)-((pe[0].width+pe[pe.length-1].width)/2+ne),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(Ne)?0:Ne,se=Math.abs(z)>Math.abs(Se)?0<z!=de>Se:0<Se!=se<z,(se=x===iu?se:!se)&&(ne=-Math.abs(ne),ne=Math.min(ne,-pe[pe.length-1].width),ne=Math.min(ne,-pe[pe.length-1].height)),a.Xr.compare(ne,pe),1<Math.abs(ne)&&(a.lc=8>a.mj?a.lc-ne/(2*Math.PI):5>pe.length&&10<ne?a.lc/2:a.lc-(0<ne?1.7:-2.3),a.me=a.lc*ie,H1(a,y,b,E,x))}}}function z1(a,y,b,E,x){for(var z=a.lc,ne=a.me,ie=a.Zm,se=z*Math.cos(E*Math.PI/180),de=ne*Math.sin(E*Math.PI/180),pe=rt.alloc(),Se=y.Fa(),Ne=0;Ne<Se.length&&(Se[Ne].centerX=se,Se[Ne].centerY=de,!(Ne>=Se.length-1));Ne++)G1(a,se,de,Se,Ne,x,pe)||j1(a,se,de,Se,Ne,x,pe),se=pe.x,de=pe.y;if(rt.free(pe),a.mj++,!(23<a.mj)){if(se=Math.atan2(de,se),se=x===iu?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===iu)){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===iu)){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}Fa.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Fa.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,b=this.actualCenter;a?b=new rt(0,0):(b.x=this.arrangementOrigin.x+this.lc,b.y=this.arrangementOrigin.y+this.me);for(var E=this.network.vertexes.iterator;E.next();){var x=E.value;x.x+=b.x,x.y+=b.y,x.commit()}a&&(this.group.Va(),a=this.group.position.copy(),b=this.group.location.copy(),y=y.re(b.re(a)),this.group.move(y),this.Zv=y.re(a))},Fa.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}}Fa.prototype.sort=function(a){switch(this.sorting){case G0:break;case j0:a.reverse();break;case V0:a.sort(this.comparer);break;case W0:a.sort(this.comparer),a.reverse();break;case Pg:return this.ak(xE(a));default:xt("Invalid sorting type.")}return a};function xE(a){for(var y=[],b=0;b<a.length;b++)y.push(0);b=new er;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}Fa.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 er;for(var se=0,de=0;de<y.length;de++){var pe=y[de].length;if(pe===1)E.push(de);else if(pe===0)x.add(a.M(de));else{if(se===0)b.push(de);else{for(var Se=pe=1/0,Ne=-1,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],Pt=y[de],yt=0,Rt=0;Rt<ne.length;Rt++){var Bt=z[ne[Rt]],Gt=z[ie[Rt]];if(Bt<Gt){var $t=Bt;Bt=Gt}else $t=Gt;if($t<qe&&qe<=Bt)for(Gt=0;Gt<Pt.length;Gt++){var Dn=Pt[Gt];0>b.indexOf(Dn)||$t<z[Dn]&&z[Dn]<Bt||$t===z[Dn]||Bt===z[Dn]||yt++}else for(Gt=0;Gt<Pt.length;Gt++)Dn=Pt[Gt],0>b.indexOf(Dn)||$t<z[Dn]&&z[Dn]<Bt&&$t!==z[Dn]&&Bt!==z[Dn]&&yt++}for(Pt=yt,Rt=yt=0;Rt<y[de].length;Rt++)$t=b.indexOf(y[de][Rt]),0<=$t&&($t=Math.abs(qe-($t>=qe?$t+1:$t)),yt+=$t<b.length+1-$t?$t:b.length+1-$t);for(Rt=0;Rt<ne.length;Rt++)$t=z[ne[Rt]],Bt=z[ie[Rt]],$t>=qe&&$t++,Bt>=qe&&Bt++,$t>Bt&&(Gt=Bt,Bt=$t,$t=Gt),Bt-$t<(b.length+2)/2==($t<qe&&qe<=Bt)&&yt++;(Pt<pe||Pt===pe&&yt<Se)&&(pe=Pt,Se=yt,Ne=qe)}for(b.splice(Ne,0,de),pe=0;pe<b.length;pe++)z[b[pe]]=pe;for(pe=0;pe<y[de].length;pe++)Se=y[de][pe],0<=b.indexOf(Se)&&(ne.push(de),ie.push(Se))}se++}}for(ne=b.length;;){for(z=!0,ie=0;ie<E.length;ie++)if(se=E[ie],de=y[se][0],pe=b.indexOf(de),0<=pe){for(Ne=Se=0;Ne<y[de].length;Ne++)Me=b.indexOf(y[de][Ne]),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},pn.Object.defineProperties(Fa.prototype,{radius:{get:function(){return this.eo},set:function(a){this.eo!==a&&(0<a||isNaN(a))&&(this.eo=a,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(a){this.Cm!==a&&0<a&&(this.Cm=a,this.C())}},startAngle:{get:function(){return this.ro},set:function(a){this.ro!==a&&(this.ro=a,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(a){this.ul!==a&&(0<a&&360>=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==Hc&&a!==Uc&&a!==cf&&a!==Dh||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==iu&&a!==df&&a!==Wf&&a!==Cg||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==G0&&a!==j0&&a!==V0&&!W0&&a!==Pg||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==Z0&&a!==Rp||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var Uc=new Qn(Fa,"ConstantSpacing",0),cf=new Qn(Fa,"ConstantDistance",1),Dh=new Qn(Fa,"ConstantAngle",2),Hc=new Qn(Fa,"Packed",3),iu=new Qn(Fa,"Clockwise",4),df=new Qn(Fa,"Counterclockwise",5),Wf=new Qn(Fa,"BidirectionalLeft",6),Cg=new Qn(Fa,"BidirectionalRight",7),G0=new Qn(Fa,"Forwards",8),j0=new Qn(Fa,"Reverse",9),V0=new Qn(Fa,"Ascending",10),W0=new Qn(Fa,"Descending",11),Pg=new Qn(Fa,"Optimized",12),Z0=new Qn(Fa,"Pythagorean",13),Rp=new Qn(Fa,"Circular",14);Fa.className="CircularLayout",Fa.ConstantSpacing=Uc,Fa.ConstantDistance=cf,Fa.ConstantAngle=Dh,Fa.Packed=Hc,Fa.Clockwise=iu,Fa.Counterclockwise=df,Fa.BidirectionalLeft=Wf,Fa.BidirectionalRight=Cg,Fa.Forwards=G0,Fa.Reverse=j0,Fa.Ascending=V0,Fa.Descending=W0,Fa.Optimized=Pg,Fa.Pythagorean=Z0,Fa.Circular=Rp;function Sm(){this.Pl=-1/0,this.tm=this.mk=null}Sm.prototype.compare=function(a,y){if(0<a&&0>this.Pl||Math.abs(a)<Math.abs(this.Pl)&&!(0>a&&0<this.Pl))for(this.Pl=a,this.mk=[],this.tm=[],a=0;a<y.length;a++)this.mk[a]=y[a].bounds.x,this.tm[a]=y[a].bounds.y},Sm.prototype.commit=function(a){if(this.mk!==null&&this.tm!==null)for(var y=0;y<this.mk.length;y++){var b=a.M(y);b.x=this.mk[y],b.y=this.tm[y]}},Sm.className="VertexArrangement";function Tg(a){va.call(this,a)}Cn(Tg,va),Tg.prototype.createVertex=function(){return new bm(this)},Tg.prototype.createEdge=function(){return new K0(this)},Tg.className="CircularNetwork";function bm(a){Ls.call(this,a),this.u=this.Si=NaN}Cn(bm,Ls);function hf(a,y){var b=a.network;if(b===null)return NaN;if(b=b.layout,b===null)return NaN;if(b.arrangement===Hc)if(b.nodeDiameterFormula===Rp)a.Si=Math.max(a.width,a.height);else{if(b=Math.abs(Math.sin(y)),y=Math.abs(Math.cos(y)),b===0)return a.width;if(y===0)return a.height;a.Si=Math.min(a.height/b,a.width/y)}else a.Si=b.nodeDiameterFormula===Rp?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}pn.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){ju.call(this,a)}Cn(K0,ju),K0.className="CircularEdge";function El(a){Aa.call(this),this.ah=null,this.An=0,this.$d=new ln(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)}Cn(El,Aa),El.prototype.cloneProtected=function(a){Aa.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},El.prototype.createNetwork=function(){return new Mp(this)},El.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=Nr(),pe=0;pe<ie+y.vertexes.count+2;pe++)de[pe]=null;ie=0,ne.reset();for(var Se=kn.alloc();ne.next();)if(pe=ne.value,this.computeBounds(pe,Se),se)se=!1,x=Se.x+Se.width/2,z=Se.y+Se.height/2,de[0]=new rt(Se.x+Se.width+E.width,Se.y),de[1]=new rt(Se.x,Se.y+Se.height+E.height),ie=2;else{var Ne=W1(de,ie,x,z,Se.width,Se.height,E),Me=de[Ne],ze=new rt(Me.x+Se.width+E.width,Me.y),qe=new rt(Me.x,Me.y+Se.height+E.height);for(Ne+1<ie&&de.splice(Ne+1,0,null),de[Ne]=ze,de[Ne+1]=qe,ie++,Ne=Me.x-Se.x,Me=Me.y-Se.y,pe=pe.vertexes.iterator;pe.next();)ze=pe.value,ze.centerX+=Ne,ze.centerY+=Me}for(kn.free(Se),pe=y.vertexes.iterator;pe.next();)ne=pe.value,Ne=ne.bounds,2>ie?(x=Ne.x+Ne.width/2,z=Ne.y+Ne.height/2,de[0]=new rt(Ne.x+Ne.width+E.width,Ne.y),de[1]=new rt(Ne.x,Ne.y+Ne.height+E.height),ie=2):(se=W1(de,ie,x,z,Ne.width,Ne.height,E),Se=de[se],Me=new rt(Se.x+Ne.width+E.width,Se.y),Ne=new rt(Se.x,Se.y+Ne.height+E.height),se+1<ie&&de.splice(se+1,0,null),de[se]=Me,de[se+1]=Ne,ie++,ne.centerX=Se.x+ne.width/2,ne.centerY=Se.y+ne.height/2);for(jr(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},El.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},El.prototype.computeBounds=function(a,y){var b=!0;for(a=a.vertexes.iterator;a.next();){var E=a.value;b?(b=!1,y.set(E.bounds)):y.ed(E.bounds)}return y};function V1(a,y,b){if(wE(a,y)){var E=a.Zf;a.Zf*=1+1/(y+1);var x=CE(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,b*(y+1)/11),10));for(a.maxIterations+=z,V1(a,y+1,b),K1(a,z),PE(a,x),y=x.vertexes.Fa(),y.sort(function(ne,ie){return ne===null||ie===null||ne===ie?0:ie.Vd-ne.Vd}),b=0;b<y.length;b++)TE(a,y[b]);a.Zf=E}}function wE(a,y){if(10<y||3>a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(b,E){return b===null||E===null||b===E?0:E.Vd-b.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function CE(a,y){for(var b=a.network,E=new Mp(a),x=0;x<a.ah.length;x++){var z=a.ah[x];if(1<z.Vd){E.dh(z);var ne=new Y1;ne.Rs=z.Vd,ne.Ss=z.width,ne.Qs=z.height,ne.Sv=z.focus.x,ne.Tv=z.focus.y,z.We===null&&(z.We=new er),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 er,x.Hj=ie),ie.add(ne),x.Vd--,x.sh+=ne.sh):ne.network===E&&(ie=ne.Hj,ie===null&&(ie=new er,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),Ne=null;for(z=Se.edges.iterator;z.next();){var Me=z.value;if(Me.Ax(Se)===x){Ne=Me;break}}Ne!==null&&(de+=Ne.length,ie+=Se.width*Se.height)}z=x.centerX,se=x.centerY,pe=x.width,Se=x.height,Ne=x.focus,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 kn(z-Ne.x-ne,se-Ne.y-ie,pe+2*ne,Se+2*ie),x.focus=new rt(Ne.x+ne,Ne.y+ie)}}return a.network=E,b}function PE(a,y){for(var b=a.network.vertexes.iterator;b.next();){var E=b.value;if(E.network=y,E.We!==null){var x=E.We.M(E.sv);E.Vd=x.Rs;var z=x.Sv,ne=x.Tv;E.bounds=new kn(E.centerX-z,E.centerY-ne,x.Ss,x.Qs),E.focus=new rt(z,ne),E.sv--}}for(b=a.network.edges.iterator;b.next();)b.value.network=y;a.network=y}function TE(a,y){var b=y.Hj;if(b!==null&&b.count!==0){var E=y.centerX,x=y.centerY,z=y.width,ne=y.height;y.We!==null&&0<y.We.count&&(ne=y.We.M(0),z=ne.Ss,ne=ne.Qs),z=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 Ne=se.height;Se=en.sqrt(Se*Se+Ne*Ne)/2,pe=z+pe.length+Se,Se=ne+(y*(ie/2>>1)+de)*(ie%2===0?1:-1),se.centerX=E+pe*Math.cos(Se),se.centerY=x+pe*Math.sin(Se),ie++}}}}function W1(a,y,b,E,x,z,ne){var ie=9e19,se=-1,de=0;e:for(;de<y;de++){var pe=a[de],Se=pe.x-b,Ne=pe.y-E;if(Se=Se*Se+Ne*Ne,Se<ie){for(Ne=de-1;0<=Ne;Ne--)if(a[Ne].y>pe.y&&a[Ne].x-pe.x<x+ne.width)continue e;for(Ne=de+1;Ne<y;Ne++)if(a[Ne].x>pe.x&&a[Ne].y-pe.y<z+ne.height)continue e;se=de,ie=Se}}return se}El.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},El.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,Pt){return qe===null||Pt===null||qe===Pt?0:qe.centerX-Pt.centerX}):y.sort(function(qe,Pt){return qe===null||Pt===null||qe===Pt?0:qe.centerY-Pt.centerY}),b=a.Zf;var de=E=ie=0;for(z=0;z<y.length;z++){ne=y[z],E=ne.bounds,ie=ne.focus,se=E.x+ie.x;var pe=E.y+ie.y;E=ne.charge*a.electricalFieldX(se,pe),de=ne.charge*a.electricalFieldY(se,pe),E+=ne.mass*a.gravitationalFieldX(se,pe),de+=ne.mass*a.gravitationalFieldY(se,pe),ne.forceX+=E,ne.forceY+=de;for(var Se=z+1;Se<y.length;Se++){var Ne=y[Se];if(Ne!==ne){E=Ne.bounds,ie=Ne.focus,de=E.x+ie.x;var 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,Ne);1>ze?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new Y0),ze=E.random(),ie=E.random(),se>de?(E=Math.abs(Ne.bounds.right-ne.bounds.x),E=(1+E)*ze):se<de?(E=Math.abs(Ne.bounds.x-ne.bounds.right),E=-(1+E)*ze):(E=Math.max(Ne.width,ne.width),E=(1+E)*ze-E/2),pe>Me?(de=Math.abs(Ne.bounds.bottom-ne.bounds.y),de=(1+de)*ie):se<de?(de=Math.abs(Ne.bounds.y-ne.bounds.bottom),de=-(1+de)*ie):(de=Math.max(Ne.height,ne.height),de=(1+de)*ie-de/2)):(ie=-(ne.charge*Ne.charge)/(ze*ze),E=(de-se)/ze*ie,de=(Me-pe)/ze*ie),ne.forceX+=E,ne.forceY+=de,Ne.forceX-=E,Ne.forceY-=de}}}}for(x=a.network.edges.iterator;x.next();)ie=x.value,b=ie.fromVertex,z=ie.toVertex,ne=b.bounds,se=b.focus,E=ne.x+se.x,ne=ne.y+se.y,pe=z.bounds,Se=z.focus,se=pe.x+Se.x,pe=pe.y+Se.y,Se=Z1(b,z),1>Se?(Se=a.randomNumberGenerator,Se===null&&(a.randomNumberGenerator=Se=new Y0),ie=Se.random(),Se=Se.random(),E=(E>se?1:-1)*(1+(z.width>b.width?z.width:b.width))*ie,de=(ne>pe?1:-1)*(1+(z.height>b.height?z.height:b.height))*Se):(ie=ie.stiffness*(Se-ie.length),E=(se-E)/Se*ie,de=(pe-ne)/Se*ie),b.forceX+=E,b.forceY+=de,z.forceX-=E,z.forceY-=de;for(x=E=0;x<y.length;x++)b=y[x],a.isFixed(b)?a.moveFixedVertex(b):E=Math.max(E,a.moveVertex(b)||0);return E>a.epsilonDistance*a.epsilonDistance}El.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},El.prototype.moveFixedVertex=function(){},El.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},El.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=ts,y.toSpot=ts)}},El.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var b=kn.alloc();this.computeBounds(this.network,b),y=this.arrangementOrigin,a=y.x-b.x,y=y.y-b.y,kn.free(b)}b=kn.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()}kn.free(b)},El.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},El.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},El.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},El.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},El.prototype.electricalFieldX=function(){return 0},El.prototype.electricalFieldY=function(){return 0},El.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},El.prototype.gravitationalFieldX=function(){return 0},El.prototype.gravitationalFieldY=function(){return 0},El.prototype.isFixed=function(a){return a.isFixed},pn.Object.defineProperties(El.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"&&xt('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())}}}),El.className="ForceDirectedLayout";function Y1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}Y1.className="ForceDirectedSubnet";function Mp(a){va.call(this,a)}Cn(Mp,va),Mp.prototype.createVertex=function(){return new Em(this)},Mp.prototype.createEdge=function(){return new xm(this)},Mp.className="ForceDirectedNetwork";function Em(a){Ls.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}Cn(Em,Ls),pn.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){ju.call(this,a),this.j=this.o=NaN}Cn(xm,ju),pn.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 $o(a){Aa.call(this),this.kc=this.ie=25,this.K=0,this.Dk=$0,this.Zk=ev,this.Qk=tv,this.bj=4,this.rk=nv,this.bg=15,this.sf=!0,this.Cn=4,this.Ra=this.Iq=this.Ia=-1,this.Md=this.Hn=0,this.Ta=this.Kd=this.Ld=this.he=this.tc=null,this.Kn=0,this.Jn=this.kj=null,this.le=0,this.fl=null,this.Rf=new rt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Cn($o,Aa),$o.prototype.cloneProtected=function(a){Aa.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},$o.prototype.qb=function(a){a.classType===$o?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:xt("Unknown enum value: "+a):Aa.prototype.qb.call(this,a)},$o.prototype.createNetwork=function(){return new Ng(this)},$o.prototype.doLayout=function(a){for(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),this.Iq=-1,this.Md=this.Hn=0,this.fl=this.Jn=this.kj=null,a=0;a<this.He.length;a++)this.He[a]=null;if(0<this.network.vertexes.count){for(this.network.Ko(),this.cycleRemoveOption!==Cm&&this.removeCycles(),a=this.network.vertexes.iterator;a.next();)a.value.layer=-1;for(this.Ia=-1,this.assignLayers(),a.reset();a.next();)this.Ia=Math.max(this.Ia,a.value.layer);this.cycleRemoveOption===Cm&&this.removeCycles(),a=this.network;for(var y=[],b=a.edges.iterator;b.next();){var E=b.value;E.valid=!1,y.push(E)}for(b=0;b<y.length;b++){E=y[b];var x=E.fromVertex,z=E.toVertex;if(!(E.valid||(x.node===null&&x.data===null||z.node===null&&z.data===null)&&x.layer===z.layer)){var ne=0,ie=0,se=0,de=0;if(E.link!==null){if(ie=E.link,ie===null)continue;var pe=x.node;if(ne=z.node,pe===null||ne===null)continue;var Se=ie.fromNode;se=ie.toNode;for(var Ne=ie.fromPort;Ne!==null&&!Ne.Ed();)Ne=Ne.panel;for(ie=ie.toPort;ie!==null&&!ie.Ed();)ie=ie.panel;if(E.rev){de=Se;var Me=Ne;Se=se,Ne=ie,se=de,ie=Me}var ze=x.focus;de=z.focus;var qe=E.rev?z.bounds:x.bounds;Me=rt.alloc(),pe!==Se?qe.w()&&Se.isVisible()?Se.actualBounds.w()?(Ah(Se,Ne,qi,Me),Me.x+=Se.actualBounds.x-qe.x,Me.y+=Se.actualBounds.y-qe.y):(Ah(Se,Ne,qi,Me),Me.w()||Me.assign(ze)):Me.assign(ze):qe.w()?(Ah(Se,Ne,qi,Me),Me.w()||Me.assign(ze)):Me.assign(ze),Se=E.rev?x.bounds:z.bounds,pe=rt.alloc(),ne!==se?Se.w()&&se.isVisible()?se.actualBounds.w()?(Ah(se,ie,qi,pe),pe.x+=se.actualBounds.x-Se.x,pe.y+=se.actualBounds.y-Se.y):(Ah(se,ie,qi,pe),pe.w()||pe.assign(de)):pe.assign(de):Se.w()?(Ah(se,ie,qi,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),rt.free(Me),rt.free(pe),E.portFromColOffset=ne,E.portFromPos=se,E.portToColOffset=ie,E.portToPos=de}else E.portFromColOffset=0,E.portFromPos=0,E.portToColOffset=0,E.portToPos=0;if(Me=x.layer,pe=z.layer,Se=0,qe=E.link,qe!==null){var Pt=qe.fromPort,yt=qe.toPort;if(Pt!==null&&yt!==null){var Rt=qe.fromNode;if(Ne=qe.toNode,Rt!==null&&Ne!==null){var Bt=q0(this,!0),Gt=q0(this,!1),$t=this.setsPortSpots?Bt:qe.computeSpot(!0,Pt);ze=this.setsPortSpots?Gt:qe.computeSpot(!1,yt);var Dn=qe.isOrthogonal;$t.$c()&&$t.Hf(Gt)&&ze.$c()&&ze.Hf(Bt)?Se=0:(Bt=qe.getLinkPoint(Rt,Pt,$t,!0,Dn,Ne,yt,rt.alloc()),Gt=qe.getLinkDirection(Rt,Pt,Bt,$t,!0,Dn,Ne,yt),rt.free(Bt),$t.ys()||Gt!==Nb(this,E,!0)?this.setsPortSpots&&Rt!==null&&Rt.ports.count===1&&E.rev&&(Se+=1):Se+=1,$t=qe.getLinkPoint(Ne,yt,ze,!1,Dn,Rt,Pt,rt.alloc()),qe=qe.getLinkDirection(Ne,yt,$t,ze,!1,Dn,Rt,Pt),rt.free($t),ze.ys()||qe!==Nb(this,E,!1)?this.setsPortSpots&&Ne!==null&&Ne.ports.count===1&&E.rev&&(Se+=2):Se+=2)}}}if(Ne=Se,Se=Ne===1||Ne===3,(Ne=Ne===2||Ne===3)&&(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=Ne?0:ne,x.portToColOffset=0,x.portFromPos=Ne?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},$o.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}$o.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},$o.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 Eu(a){a.kj===null&&(a.kj=[]);for(var y=0,b=a.network.vertexes.iterator;b.next();){var E=b.value;a.kj[y]=E.layer,y++,a.kj[y]=E.column,y++,a.kj[y]=E.index,y++}return a.kj}function vc(a,y){var b=0;for(a=a.network.vertexes.iterator;a.next();){var E=a.value;E.layer=y[b],b++,E.column=y[b],b++,E.index=y[b],b++}}function X1(a,y,b){var E=ff(a,y),x=a.tc[y];(a.Jn===null||a.Jn.length<x*x)&&(a.Jn=[]);for(var z=a.Jn,ne=0;ne<x;ne++){var ie=0,se=E[ne],de=se.near;if(de!==null&&de.layer===se.layer)if(se=de.index,se>ne)for(var pe=ne+1;pe<se;pe++){var Se=E[pe];Se.near===de&&Se.Dj===de.Dj||ie++}else for(pe=ne-1;pe>se;pe--)Se=E[pe],Se.near===de&&Se.Dj===de.Dj||ie++;var Ne;if(0<=b)for(se=E[ne].sourceEdgesArrayAccess,de=0;de<se.length;de++){var Me=se[de];if(Me.valid&&Me.fromVertex.layer!==y)for(Se=Me.fromVertex.index,pe=Me.portToPos,Me=Me.portFromPos,Ne=de+1;Ne<se.length;Ne++){var ze=se[Ne];if(ze.valid&&ze.fromVertex.layer!==y){var qe=ze.fromVertex.index,Pt=ze.portToPos;ze=ze.portFromPos,pe<Pt&&(Se>qe||Se===qe&&Me>ze)&&ie++,Pt<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,Ne=de+1;Ne<se.length;Ne++)ze=se[Ne],ze.valid&&ze.toVertex.layer!==y&&(qe=ze.toVertex.index,Pt=ze.portToPos,ze=ze.portFromPos,Me<ze&&(Se>qe||Se===qe&&pe>Pt)&&ie++,ze<Me&&(qe>Se||qe===Se&&Pt>pe)&&ie++)}for(z[ne*x+ne]=ie,se=ne+1;se<x;se++){var yt=0,Rt=0;if(0<=b){ie=E[ne].sourceEdgesArrayAccess;var Bt=E[se].sourceEdgesArrayAccess;for(de=0;de<ie.length;de++)if(Me=ie[de],Me.valid&&Me.fromVertex.layer!==y)for(Se=Me.fromVertex.index,Me=Me.portFromPos,Ne=0;Ne<Bt.length;Ne++)ze=Bt[Ne],ze.valid&&ze.fromVertex.layer!==y&&(qe=ze.fromVertex.index,ze=ze.portFromPos,(Se<qe||Se===qe&&Me<ze)&&Rt++,(qe<Se||qe===Se&&ze<Me)&&yt++)}if(0>=b){for(ie=E[ne].destinationEdgesArrayAccess,Bt=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,Ne=0;Ne<Bt.length;Ne++)ze=Bt[Ne],ze.valid&&ze.toVertex.layer!==y&&(qe=ze.toVertex.index,Pt=ze.portToPos,(Se<qe||Se===qe&&pe<Pt)&&Rt++,(qe<Se||qe===Se&&Pt<pe)&&yt++)}z[ne*x+se]=yt,z[se*x+ne]=Rt}}return pf(a,y,E),z}$o.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var b=X1(this,y,1),E=this.tc[y],x=0;x<E;x++)for(var z=x;z<E;z++)a+=b[x*E+z];return a};function X0(a){for(var y=0,b=0;b<=a.Ia;b++){for(var E=a,x=b,z=ff(E,x),ne=E.tc[x],ie=0,se=0;se<ne;se++){var de=z[se].destinationEdgesArrayAccess;if(de!==null)for(var pe=0;pe<de.length;pe++){var Se=de[pe];if(Se.valid&&Se.toVertex.layer!==x){var Ne=Se.fromVertex.column+Se.portFromColOffset,Me=Se.toVertex.column+Se.portToColOffset;ie+=(Math.abs(Ne-Me)+1)*Ay(Se)}}}pf(E,x,z),y+=ie}return y}$o.prototype.normalize=function(){var a=1/0;this.Ra=-1;for(var y=this.network.vertexes.iterator;y.next();){var b=y.value;a=Math.min(a,b.column-this.nodeMinColumnSpace(b,!0)),this.Ra=Math.max(this.Ra,b.column+this.nodeMinColumnSpace(b,!1))}for(y.reset();y.next();)y.value.column-=a;this.Ra-=a};function Ny(a,y,b){for(var E=ff(a,y),x=a.tc[y],z=[],ne=0;ne<x;ne++){var ie=E[ne],se=null;0>=b&&(se=ie.sourceEdgesArrayAccess);var de=null;0<=b&&(de=ie.destinationEdgesArrayAccess);var pe=0,Se=0,Ne=ie.near;if(Ne!==null&&Ne.layer===ie.layer&&(pe+=Ne.column-1,Se++),se!==null)for(Ne=0;Ne<se.length;Ne++){ie=se[Ne];var 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],Ne=ie.toVertex,ie.valid&&!ie.rev&&Ne.layer!==y&&(pe+=Ne.column,Se++);z[ne]=Se===0?-1:pe/Se}return pf(a,y,E),z}function Q1(a,y,b){for(var E=ff(a,y),x=a.tc[y],z=[],ne=0;ne<x;ne++){var ie=E[ne],se=null;0>=b&&(se=ie.sourceEdgesArrayAccess);var de=null;0<=b&&(de=ie.destinationEdgesArrayAccess);var pe=0,Se=[],Ne=ie.near;if(Ne!==null&&Ne.layer===ie.layer&&(Se[pe]=Ne.column-1,pe++),ie=void 0,se!==null)for(Ne=0;Ne<se.length;Ne++){ie=se[Ne];var 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],Ne=ie.toVertex,ie.valid&&!ie.rev&&Ne.layer!==y&&(Se[pe]=Ne.column+ie.portToColOffset,pe++);pe===0?z[ne]=-1:(Se.sort(function(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)}}$o.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++}$o.prototype.assignLayers=function(){switch(this.Zk){case Ry:$1(this);break;case My:for(var a,y=this.network.vertexes.iterator;y.next();)a=Pb(this,y.value),this.Ia=Math.max(a,this.Ia);for(y.reset();y.next();)a=y.value,a.layer=this.Ia-a.layer;break;default:case ev:for($1(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&Tb(this,a);for(a=1/0,y.reset();y.next();)a=Math.min(a,y.value.layer);for(this.Ia=-1,y.reset();y.next();){var b=y.value;b.layer-=a,this.Ia=Math.max(this.Ia,b.layer)}}};function $1(a){for(var y=a.network.vertexes.iterator;y.next();){var b=Sb(a,y.value);a.Ia=Math.max(b,a.Ia)}}function Sb(a,y){var b=0;if(y.layer===-1){for(var E=y.destinationEdges;E.next();){var x=E.value,z=x.toVertex;x=a.linkMinLength(x),b=Math.max(b,Sb(a,z)+x)}y.layer=b}else b=y.layer;return b}function Pb(a,y){var b=0;if(y.layer===-1){for(var E=y.sourceEdges;E.next();){var x=E.value,z=x.fromVertex;x=a.linkMinLength(x),b=Math.max(b,Pb(a,z)+x)}y.layer=b}else b=y.layer;return b}function Tb(a,y){if(!y.valid){y.valid=!0;for(var b=y.destinationEdges;b.next();)Tb(a,b.value.toVertex);for(b=a.network.vertexes.iterator;b.next();)b.value.component=-1;for(var E=y.sourceEdgesArrayAccess,x=E.length,z=0;z<x;z++){var ne=E[z],ie=ne.fromVertex,se=ne.toVertex;ne=a.linkMinLength(ne),ie.layer-se.layer>ne&&wm(a,ie,0,-1,!0,!1)}for(wm(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=1/0,ie=0,se=null,ne=a.network.vertexes.iterator;ne.next();){var de=ne.value;if(de.component===1){var pe=0,Se=!1,Ne=de.sourceEdgesArrayAccess;x=Ne.length;for(var Me=0;Me<x;Me++){var ze=Ne[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(Ne=de.destinationEdgesArrayAccess,x=Ne.length,Me=0;Me<x;Me++)ze=Ne[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,Ne=ne.sourceEdgesArrayAccess,Se=Ne.length,Me=0;Me<Se;Me++)ze=Ne[Me].fromVertex,de+=1,ze.component!==1?E+=1:pe=!0;for(Ne=ne.destinationEdgesArrayAccess,Se=Ne.length,Me=0;Me<Se;Me++)ze=Ne[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}$o.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))}$o.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Eu(this),b,E;for(b=0;b<this.bj;b++){for(E=0;E<=this.Ia;E++)Q0(this,E,1),Tc(this,E,1);var x=this.countCrossings();for(x<a&&(a=x,y=Eu(this)),E=this.Ia;0<=E;E--)Q0(this,E,-1),Tc(this,E,-1);x=this.countCrossings(),x<a&&(a=x,y=Eu(this))}for(vc(this,y),b=0;b<this.bj;b++){for(E=0;E<=this.Ia;E++)Q0(this,E,0),Tc(this,E,0);for(x=this.countCrossings(),x<a&&(a=x,y=Eu(this)),E=this.Ia;0<=E;E--)Q0(this,E,0),Tc(this,E,0);x=this.countCrossings(),x<a&&(a=x,y=Eu(this))}vc(this,y);var z,ne,ie;switch(this.rk){case By:break;case _y:for(ie=a+1;(E=this.countCrossings())<ie;)for(ie=E,b=this.Ia;0<=b;b--)for(ne=0;ne<=b;ne++){for(z=!0;z;)for(z=!1,E=b;E>=ne;E--)z=Tc(this,E,-1)||z;for(x=this.countCrossings(),x>=a?vc(this,y):(a=x,y=Eu(this)),z=!0;z;)for(z=!1,E=b;E>=ne;E--)z=Tc(this,E,1)||z;for(x=this.countCrossings(),x>=a?vc(this,y):(a=x,y=Eu(this)),z=!0;z;)for(z=!1,E=ne;E<=b;E++)z=Tc(this,E,1)||z;for(x>=a?vc(this,y):(a=x,y=Eu(this)),z=!0;z;)for(z=!1,E=ne;E<=b;E++)z=Tc(this,E,-1)||z;for(x>=a?vc(this,y):(a=x,y=Eu(this)),z=!0;z;)for(z=!1,E=b;E>=ne;E--)z=Tc(this,E,0)||z;for(x>=a?vc(this,y):(a=x,y=Eu(this)),z=!0;z;)for(z=!1,E=ne;E<=b;E++)z=Tc(this,E,0)||z;x>=a?vc(this,y):(a=x,y=Eu(this))}break;default:case nv:for(b=this.Ia,ne=0,ie=a+1;(E=this.countCrossings())<ie;){for(ie=E,z=!0;z;)for(z=!1,E=b;E>=ne;E--)z=Tc(this,E,-1)||z;for(x=this.countCrossings(),x>=a?vc(this,y):(a=x,y=Eu(this)),z=!0;z;)for(z=!1,E=b;E>=ne;E--)z=Tc(this,E,1)||z;for(x=this.countCrossings(),x>=a?vc(this,y):(a=x,y=Eu(this)),z=!0;z;)for(z=!1,E=ne;E<=b;E++)z=Tc(this,E,1)||z;for(x>=a?vc(this,y):(a=x,y=Eu(this)),z=!0;z;)for(z=!1,E=ne;E<=b;E++)z=Tc(this,E,-1)||z;for(x>=a?vc(this,y):(a=x,y=Eu(this)),z=!0;z;)for(z=!1,E=b;E>=ne;E--)z=Tc(this,E,0)||z;for(x>=a?vc(this,y):(a=x,y=Eu(this)),z=!0;z;)for(z=!1,E=ne;E<=b;E++)z=Tc(this,E,0)||z;x>=a?vc(this,y):(a=x,y=Eu(this))}}vc(this,y)};function Q0(a,y,b){var E=ff(a,y),x=a.tc[y],z=Q1(a,y,b),ne=Ny(a,y,b);for(b=0;b<x;b++)ne[b]===-1&&(ne[b]=E[b].column),z[b]===-1&&(z[b]=E[b].column);for(var ie=!0,se;ie;)for(ie=!1,b=0;b<x-1;b++)(z[b+1]<z[b]||z[b+1]===z[b]&&ne[b+1]<ne[b])&&(ie=!0,se=z[b],z[b]=z[b+1],z[b+1]=se,se=ne[b],ne[b]=ne[b+1],ne[b+1]=se,se=E[b],E[b]=E[b+1],E[b+1]=se);for(b=z=0;b<x;b++)se=E[b],se.index=b,z+=a.nodeMinColumnSpace(se,!0),se.column=z,z+=1,z+=a.nodeMinColumnSpace(se,!1);pf(a,y,E)}function Tc(a,y,b){var E=ff(a,y),x=a.tc[y];b=X1(a,y,b);var z,ne=[];for(z=0;z<x;z++)ne[z]=-1;var ie=[];for(z=0;z<x;z++)ie[z]=-1;for(var se=!1,de=!0;de;)for(de=!1,z=0;z<x-1;z++){var pe=b[E[z].index*x+E[z+1].index],Se=b[E[z+1].index*x+E[z].index],Ne=0,Me=0,ze=E[z].column,qe=E[z+1].column,Pt=a.nodeMinColumnSpace(E[z],!0),yt=a.nodeMinColumnSpace(E[z],!1),Rt=a.nodeMinColumnSpace(E[z+1],!0),Bt=a.nodeMinColumnSpace(E[z+1],!1);Pt=ze-Pt+Rt,yt=qe-yt+Bt;var Gt=E[z].sourceEdges.iterator;for(Gt.reset();Gt.next();)if(Rt=Gt.value,Bt=Rt.fromVertex,Rt.valid&&Bt.layer===y){for(Rt=0;E[Rt]!==Bt;)Rt++;Rt<z&&(Ne+=2*(z-Rt),Me+=2*(z+1-Rt)),Rt===z+1&&(Ne+=1),Rt>z+1&&(Ne+=4*(Rt-z),Me+=4*(Rt-(z+1)))}for(Gt=E[z].destinationEdges.iterator,Gt.reset();Gt.next();)if(Rt=Gt.value,Bt=Rt.toVertex,Rt.valid&&Bt.layer===y){for(Rt=0;E[Rt]!==Bt;)Rt++;Rt===z+1&&(Me+=1)}for(Gt=E[z+1].sourceEdges.iterator,Gt.reset();Gt.next();)if(Rt=Gt.value,Bt=Rt.fromVertex,Rt.valid&&Bt.layer===y){for(Rt=0;E[Rt]!==Bt;)Rt++;Rt<z&&(Ne+=2*(z+1-Rt),Me+=2*(z-Rt)),Rt===z&&(Me+=1),Rt>z+1&&(Ne+=4*(Rt-(z+1)),Me+=4*(Rt-z))}for(Gt=E[z+1].destinationEdges.iterator,Gt.reset();Gt.next();)if(Rt=Gt.value,Bt=Rt.toVertex,Rt.valid&&Bt.layer===y){for(Rt=0;E[Rt]!==Bt;)Rt++;Rt===z&&(Ne+=1)}Rt=Bt=0,Gt=ne[E[z].index];var $t=ie[E[z].index],Dn=ne[E[z+1].index],Qr=ie[E[z+1].index];Gt!==-1&&(Bt+=Math.abs(Gt-ze),Rt+=Math.abs(Gt-yt)),$t!==-1&&(Bt+=Math.abs($t-ze),Rt+=Math.abs($t-yt)),Dn!==-1&&(Bt+=Math.abs(Dn-qe),Rt+=Math.abs(Dn-Pt)),Qr!==-1&&(Bt+=Math.abs(Qr-qe),Rt+=Math.abs(Qr-Pt)),(Me<Ne-.5||Me===Ne&&Se<pe-.5||Me===Ne&&Se===pe&&Rt<Bt-.5)&&(de=se=!0,E[z].column=yt,E[z+1].column=Pt,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}$o.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&FE)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var b=[];for(y=0;y<=this.Ia;y++)b[y]=0;for(var E,x=this.network.vertexes.iterator;x.next();){var z=x.value;y=z.layer,E=z.column,z=this.nodeMinColumnSpace(z,!1),b[y]=Math.max(b[y],E+z)}for(x.reset();x.next();)z=x.value,y=z.layer,E=z.column,z.column=(8*(this.Ra-b[y])>>1)+8*E;this.Ra*=8}if(this.bg&2)for(b=!0;b;){for(b=!1,y=this.Md+1;y<=this.Ia;y++)b=Ag(this,y,1)||b;for(y=this.Md-1;0<=y;y--)b=Ag(this,y,-1)||b;b=Ag(this,this.Md,0)||b}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)Iy(this,y,1);for(y=this.Md-1;0<=y;y--)Iy(this,y,-1);Iy(this,this.Md,0)}if(a&&(Rb(this,-1),Rb(this,1)),this.bg&2)for(b=!0;b;){for(b=!1,b=Ag(this,this.Md,0)||b,y=this.Md+1;y<=this.Ia;y++)b=Ag(this,y,0)||b;for(y=this.Md-1;0<=y;y--)b=Ag(this,y,0)||b}}else DE(this)};function Ag(a,y,b){for(var E=!1;LE(a,y,b);)E=!0;return E}function LE(a,y,b){var E,x=ff(a,y),z=a.tc[y],ne=Ny(a,y,-1);if(0<b)for(E=0;E<z;E++)ne[E]=-1;var ie=Ny(a,y,1);if(0>b)for(E=0;E<z;E++)ie[E]=-1;for(var se=!1,de=!0;de;)for(de=!1,E=0;E<z;E++){var pe=x[E].column,Se=a.nodeMinColumnSpace(x[E],!0),Ne=a.nodeMinColumnSpace(x[E],!1),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>Ne+a.nodeMinColumnSpace(x[E+1],!0)?pe+1:pe;var ze=Ne=0,qe=0;if(0>=b)for(var Pt=x[E].sourceEdges.iterator;Pt.next();){var yt=Pt.value,Rt=yt.fromVertex;if(yt.valid&&Rt.layer!==y){var Bt=Ay(yt),Gt=yt.portFromColOffset;yt=yt.portToColOffset,Rt=Rt.column,Ne+=(Math.abs(pe+yt-(Rt+Gt))+1)*Bt,ze+=(Math.abs(Me+yt-(Rt+Gt))+1)*Bt,qe+=(Math.abs(Se+yt-(Rt+Gt))+1)*Bt}}if(0<=b)for(Pt=x[E].destinationEdges.iterator;Pt.next();)yt=Pt.value,Rt=yt.toVertex,yt.valid&&Rt.layer!==y&&(Bt=Ay(yt),Gt=yt.portFromColOffset,yt=yt.portToColOffset,Rt=Rt.column,Ne+=(Math.abs(pe+Gt-(Rt+yt))+1)*Bt,ze+=(Math.abs(Me+Gt-(Rt+yt))+1)*Bt,qe+=(Math.abs(Se+Gt-(Rt+yt))+1)*Bt);yt=Gt=Bt=0,Pt=ne[x[E].index],Rt=ie[x[E].index],Pt!==-1&&(Bt+=Math.abs(Pt-pe),Gt+=Math.abs(Pt-Me),yt+=Math.abs(Pt-Se)),Rt!==-1&&(Bt+=Math.abs(Rt-pe),Gt+=Math.abs(Rt-Me),yt+=Math.abs(Rt-Se)),ze<Ne||ze===Ne&&Gt<Bt?(de=se=!0,x[E].column=Me):(qe<Ne||qe===Ne&&yt<Bt)&&(de=se=!0,x[E].column=Se)}return pf(a,y,x),a.normalize(),se}function Iy(a,y,b){var E=ff(a,y),x=a.tc[y],z=Q1(a,y,b),ne=[];for(b=0;b<x;b++)ne[b]=z[b];for(z=!0;z;)for(z=!1,b=0;b<x;b++){var ie=E[b].column,se=a.nodeMinColumnSpace(E[b],!0),de=a.nodeMinColumnSpace(E[b],!1),pe=0;if(ne[b]===-1)if(b===0&&b===x-1)pe=ie;else if(b===0){var Se=E[b+1].column;Se-ie===de+a.nodeMinColumnSpace(E[b+1],!0)?pe=ie-1:pe=ie}else b===x-1?(Se=E[b-1].column,pe=ie-Se===se+a.nodeMinColumnSpace(E[b-1],!1)?ie+1:ie):(Se=E[b-1].column,se=Se+a.nodeMinColumnSpace(E[b-1],!1)+se+1,Se=E[b+1].column,de=Se-a.nodeMinColumnSpace(E[b+1],!0)-de-1,pe=(se+de)/2|0);else b===0&&b===x-1?pe=ne[b]:b===0?(Se=E[b+1].column,de=Se-a.nodeMinColumnSpace(E[b+1],!0)-de-1,pe=Math.min(ne[b],de)):b===x-1?(Se=E[b-1].column,se=Se+a.nodeMinColumnSpace(E[b-1],!1)+se+1,pe=Math.max(ne[b],se)):(Se=E[b-1].column,se=Se+a.nodeMinColumnSpace(E[b-1],!1)+se+1,Se=E[b+1].column,de=Se-a.nodeMinColumnSpace(E[b+1],!0)-de-1,se<ne[b]&&ne[b]<de?pe=ne[b]:se>=ne[b]?pe=se:de<=ne[b]&&(pe=de));pe!==ie&&(z=!0,E[b].column=pe)}pf(a,y,E),a.normalize()}function kE(a,y){for(var b=!0,E=a.network.vertexes.iterator;E.next();){var x=E.value,z=a.nodeMinColumnSpace(x,!0),ne=a.nodeMinColumnSpace(x,!1);if(x.column-z<=y&&x.column+ne>=y){b=!1;break}}if(a=!1,b)for(E.reset();E.next();)b=E.value,b.column>y&&(--b.column,a=!0);return a}function IE(a,y){var b=y+1,E,x=[],z=[];for(E=0;E<=a.Ia;E++)x[E]=!1,z[E]=!1;for(var ne=a.network.vertexes.iterator;ne.next();){E=ne.value;var ie=E.column-a.nodeMinColumnSpace(E,!0),se=E.column+a.nodeMinColumnSpace(E,!1);ie<=y&&se>=y&&(x[E.layer]=!0),ie<=b&&se>=b&&(z[E.layer]=!0)}for(ie=!0,b=!1,E=0;E<=a.Ia;E++)ie=ie&&!(x[E]&&z[E]);if(ie)for(ne.reset();ne.next();)a=ne.value,a.column>y&&(--a.column,b=!0);return b}function Rb(a,y){for(var b=0;b<=a.Ra;b++)for(;kE(a,b););for(a.normalize(),b=0;b<a.Ra;b++)for(;IE(a,b););a.normalize();var E;if(0<y)for(b=0;b<=a.Ra;b++){var x=Eu(a),z=X0(a);for(E=z+1;z<E;){E=z,Mb(a,b,1);var ne=X0(a);ne>z?vc(a,x):ne<z&&(z=ne,x=Eu(a))}}if(0>y)for(b=a.Ra;0<=b;b--)for(x=Eu(a),z=X0(a),E=z+1;z<E;)E=z,Mb(a,b,-1),ne=X0(a),ne>z?vc(a,x):ne<z&&(z=ne,x=Eu(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=Nr(),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 ar,RE(y,b);var z=null,ne=null,ie=null,se=null,de=(a.ve&1)!==0,pe=(a.ve&2)!==0,Se=(a.ve&4)!==0,Ne=(a.ve&8)!==0;for(de&&(a.verticalAlignment(y,b,!0),z=J0(a,y,!0,!1)),y.reverse(),Se&&(a.verticalAlignment(y,b,!1),ie=J0(a,y,!1,!1)),E=Cr(y),x=E.next();!x.done;x=E.next())x.value.reverse();Ne&&(a.verticalAlignment(y,b,!1),se=J0(a,y,!1,!0)),y.reverse(),pe&&(a.verticalAlignment(y,b,!0),ne=J0(a,y,!0,!0)),jr(y),a.u(z,ne,ie,se),a.network.vertexes.each(function(Me){var ze=Nr();de&&ze.push(z.get(Me)),pe&&ze.push(ne.get(Me)),Se&&ze.push(ie.get(Me)),Ne&&ze.push(se.get(Me)),ze.sort(function(Pt,yt){return Pt-yt});var qe=ze.length;qe=(ze[Math.floor((qe-1)/2)]+ze[Math.ceil((qe-1)/2)])/2,jr(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 Ne=Cr(de.sourceEdgesArrayAccess),Me=Ne.next();!Me.done;Me=Ne.next())Me=Me.value,Me.valid&&Se.push(Me);de.bo=Se}for(de=Cr(de.bo),Se=de.next();!Se.done;Se=de.next())Se=Se.value,Ne=Se.fromVertex.index,(Ne<x||Ne>pe)&&y.add(Se);z++}x=pe}}}$o.prototype.verticalAlignment=function(a,y,b){ME(a),a=Cr(a);for(var E=a.next();!E.done;E=a.next()){var x=-1;E=Cr(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var ne=b?Uy(z):BE(z),ie=ne.length;if(0<ie){ne.sort(function(Se,Ne){return Se.vi-Ne.vi});var se=(ie-1)/2;for(ie=Math.floor(se),se=Math.ceil(se);ie<=se;ie++)if(z.align===z){var de=ne[ie],pe=void 0;pe=b?rv(de,z):rv(z,de),!y.contains(pe)&&x<de.vi&&(de.align=z,z.root=de.root,z.align=de.root,x=de.vi)}}}}};function ME(a){for(var y=0;y<a.length;y++)for(var b=a[y],E=0;E<b.length;E++){var x=b[E];x.root=x,x.align=x,x.Tz=y,x.vi=E}}function J0(a,y,b,E){for(var x=a.K===90||a.K===270,z=Cr(y),ne=z.next();!ne.done;ne=z.next()){var ie=Cr(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=Cr(y),ie=z.next();!ie.done;ie=z.next()){ie=Cr(ie.value);for(var se=ie.next();!se.done;se=ie.next())if(se=se.value,se.root===se){for(var de=0,pe=se;pe.align!==se;){var Se=pe.align,Ne=ne?pe.width:pe.height,Me=ne?Se.width:Se.height;if(b){var ze=rv(pe,Se),qe=ze.portFromPos,Pt=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&&(Pt=ne?Se.focusX:Se.focusY))}else ze=rv(Se,pe),qe=ze.portToPos,Pt=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&&(Pt=ne?Se.focusX:Se.focusY));Ne=E?pe.qg+(Ne-qe)-(Me-Pt):pe.qg+qe-Pt,Se.qg=Ne,de=Math.min(de,Ne),pe=pe.align}pe=se;do pe.qg=pe.qg-de,pe=pe.align;while(pe!==se)}}for(b=Cr(y),ne=b.next();!ne.done;ne=b.next())for(z=Cr(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 Ln,y=Cr(y),ne=y.next();!ne.done;ne=y.next())for(b=Cr(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&&xt("Could not determine previous vertex in layer"),y[b][a-1]}$o.prototype.u=function(a){for(var y=[],b=0;b<arguments.length;++b)y[b]=arguments[b];b=-1;for(var E=Nr(),x=Nr(),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)));jr(E),jr(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}$o.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?ks:Is:a.K===90?y?Is:ks:a.K===180?y?Vs:gs:y?gs:Vs}$o.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,b=y.layer;this.he[b]=Math.max(this.he[b],this.nodeMinLayerSpace(y,!0)),this.Ld[b]=Math.max(this.Ld[b],this.nodeMinLayerSpace(y,!1))}y=0,b=this.ie;for(var E=0;E<=this.Ia;E++){var x=b;0>=this.he[E]+this.Ld[E]&&(x=0),0<E&&(y+=x/2),this.K===90||this.K===0?(y+=this.Ld[E],this.Kd[E]=y,y+=this.he[E]):(y+=this.he[E],this.Kd[E]=y,y+=this.Ld[E]),E<this.Ia&&(y+=x/2),this.Ta[E]=y}for(b=y,y=this.arrangementOrigin,E=0;E<=this.Ia;E++)this.K===270?this.Kd[E]=y.y+this.Kd[E]:this.K===90?(this.Kd[E]=y.y+b-this.Kd[E],this.Ta[E]=b-this.Ta[E]):this.K===180?this.Kd[E]=y.x+this.Kd[E]:(this.Kd[E]=y.x+b-this.Kd[E],this.Ta[E]=b-this.Ta[E]);b=this.ve!==0,a.reset(),E=this.K===270||this.K===90;for(var z=1/0,ne=x=1/0,ie=-1/0;a.next();){var se=a.value,de=se.layer,pe=se.column|0;E?(ne=y.x+this.kc*pe,de=this.Kd[de]):(ne=this.Kd[de],de=y.y+this.kc*pe),se.centerX=ne,se.centerY=de,b&&isFinite(se.zc)&&(E?se.node?se.x=y.x+se.zc:se.centerX=y.x+se.zc:se.node?se.y=y.y+se.zc:se.centerY=y.y+se.zc),z=Math.min(se.x,z),x=Math.min(se.y,x),E?(ne=z,ie=Math.max(ie,se.bounds.right)):(ne=x,ie=Math.max(ie,se.bounds.bottom))}for(this.xw=ie-ne,z=y.x-z,y=y.y-x,this.Rf=new rt(b&&E?0:z,b&&!E?0:y),a.reset();a.next();)b=a.value,b.x+=z,b.y+=y,b.commit()},$o.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 kn(0,0,b,Math.abs(this.Ta[0]))):y.push(new kn(0,this.Ta[E-1],b,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===90?E===0?y.push(new kn(0,this.Ta[0],b,Math.abs(this.Ta[0]-a))):y.push(new kn(0,this.Ta[E],b,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===180?E===0?y.push(new kn(0,0,Math.abs(this.Ta[0]),b)):y.push(new kn(this.Ta[E-1],0,Math.abs(this.Ta[E-1]-this.Ta[E]),b)):E===0?y.push(new kn(this.Ta[0],0,Math.abs(this.Ta[0]-a),b)):y.push(new kn(this.Ta[E],0,Math.abs(this.Ta[E-1]-this.Ta[E]),b));this.commitLayers(y,this.Rf)},$o.prototype.commitLayers=function(){},$o.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===rc&&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===Ji&&(E=!0),ie!==null&&se===Ji&&(b=!0),(E||b)&&(se=null,E&&(se=y.getLinkPointFromPoint(x,ne,ne.ga(qi),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(qi),y.i(0),!1),x.w()||x.set(z.actualBounds.center),y.L(3,x.x,x.y)),se&&(z=y.i(2),y.L(1,(2*se.x+z.x)/3,(2*se.y+z.y)/3)),x&&(z=y.i(1),y.L(2,(2*x.x+z.x)/3,(2*x.y+z.y)/3))))),y.zf();else if(pe.layer===Se.layer)y.zf();else{var Ne=!1,Me=!1,ze=this.ie,qe=y.firstPickIndex+1;if(y.isOrthogonal){Me=!0;var Pt=y.pointsCount;4<Pt&&y.points.removeRange(2,Pt-3)}else if(y.curve===rc)Ne=!0,Pt=y.pointsCount,4<Pt&&y.points.removeRange(2,Pt-3),Pt===4&&(qe=2);else{Pt=y.pointsCount;var yt=de===Ji,Rt=se===Ji;2<Pt&&yt&&Rt?y.points.removeRange(1,Pt-2):3<Pt&&yt&&!Rt?y.points.removeRange(1,Pt-3):3<Pt&&!yt&&Rt?y.points.removeRange(2,Pt-2):4<Pt&&!yt&&!Rt&&y.points.removeRange(2,Pt-3)}if(b.rev){for(;Se!==null&&pe!==Se;){var Bt=Pt=null;for(yt=Se.sourceEdges.iterator;yt.next()&&(Rt=yt.value,Rt.link!==b.link||(Pt=Rt.fromVertex,Bt=Rt.toVertex,Pt.node!==null)););if(Pt===null)break;if(Pt!==pe){yt=y.i(qe-1).x,Rt=y.i(qe-1).y;var Gt=Pt.centerX,$t=Pt.centerY;if(Me)this.K===180||this.K===0?qe===y.firstPickIndex+1?(y.m(qe++,yt,Rt),y.m(qe++,yt,$t)):(Bt!==null?Bt.centerY:Rt)!==$t&&(Bt=this.Ta[Pt.layer-1]+this.Rf.x,y.m(qe++,Bt,Rt),y.m(qe++,Bt,$t)):qe===y.firstPickIndex+1?(y.m(qe++,yt,Rt),y.m(qe++,Gt,Rt)):(Bt!==null?Bt.centerX:yt)!==Gt&&(Bt=this.Ta[Pt.layer-1]+this.Rf.y,y.m(qe++,yt,Bt),y.m(qe++,Gt,Bt));else if(qe===y.firstPickIndex+1){Bt=Math.max(10,this.he[Se.layer]);var Dn=Math.max(10,this.Ld[Se.layer]);if(Ne)this.K===180?Gt<=Se.bounds.x?(Se=Se.bounds.x,y.m(qe++,Se-Bt,$t),y.m(qe++,Se,$t),y.m(qe++,Se+Dn,$t)):(y.m(qe++,Gt-Bt,$t),y.m(qe++,Gt,$t),y.m(qe++,Gt+Dn,$t)):this.K===90?$t>=Se.bounds.bottom?(Se=Se.bounds.y+Se.bounds.height,y.m(qe++,Gt,Se+Dn),y.m(qe++,Gt,Se),y.m(qe++,Gt,Se-Bt)):(y.m(qe++,Gt,$t+Dn),y.m(qe++,Gt,$t),y.m(qe++,Gt,$t-Bt)):this.K===270?$t<=Se.bounds.y?(Se=Se.bounds.y,y.m(qe++,Gt,Se-Bt),y.m(qe++,Gt,Se),y.m(qe++,Gt,Se+Dn)):(y.m(qe++,Gt,$t-Bt),y.m(qe++,Gt,$t),y.m(qe++,Gt,$t+Dn)):this.K===0&&(Gt>=Se.bounds.right?(Se=Se.bounds.x+Se.bounds.width,y.m(qe++,Se+Dn,$t),y.m(qe++,Se,$t),y.m(qe++,Se-Bt,$t)):(y.m(qe++,Gt+Dn,$t),y.m(qe++,Gt,$t),y.m(qe++,Gt-Bt,$t)));else{y.m(qe++,yt,Rt);var Qr=0;this.K===180||this.K===0?((this.K===180?Gt>=Se.bounds.right:Gt<=Se.bounds.x)&&(Qr=(this.K===0?-Bt:Dn)/2),y.m(qe++,yt+Qr,$t)):((this.K===270?$t>=Se.bounds.bottom:$t<=Se.bounds.y)&&(Qr=(this.K===90?-Bt:Dn)/2),y.m(qe++,Gt,Rt+Qr)),y.m(qe++,Gt,$t)}}else Bt=Math.max(10,this.he[Pt.layer]),Dn=Math.max(10,this.Ld[Pt.layer]),Ne?this.K===180?(y.m(qe++,Gt-Bt-ze,$t),y.m(qe++,Math.min(Gt-Bt+ze/2,Gt),$t),y.m(qe++,Gt,$t),y.m(qe++,Gt,$t),y.m(qe++,Math.max(Gt+Dn-ze/2,Gt),$t),y.m(qe++,Gt+Dn+ze,$t)):this.K===90?(y.m(qe++,Gt,$t+Dn+ze),y.m(qe++,Gt,Math.max($t+Dn-ze/2,$t)),y.m(qe++,Gt,$t),y.m(qe++,Gt,$t),y.m(qe++,Gt,Math.min($t-Bt+ze/2,$t)),y.m(qe++,Gt,$t-Bt-ze)):this.K===270?(y.m(qe++,Gt,$t-Bt-ze),y.m(qe++,Gt,Math.min($t-Bt+ze/2,$t)),y.m(qe++,Gt,$t),y.m(qe++,Gt,$t),y.m(qe++,Gt,Math.max($t+Dn-ze/2,$t)),y.m(qe++,Gt,$t+Dn+ze)):(y.m(qe++,Gt+Dn+ze,$t),y.m(qe++,Math.max(Gt+Dn-ze/2,Gt),$t),y.m(qe++,Gt,$t),y.m(qe++,Gt,$t),y.m(qe++,Math.min(Gt-Bt+ze/2,Gt),$t),y.m(qe++,Gt-Bt-ze,$t)):y.m(qe++,Gt,$t)}Se=Pt}(ie===null||de!==Ji||Me)&&(yt=y.i(qe-1).x,Rt=y.i(qe-1).y,Gt=y.i(qe).x,$t=y.i(qe).y,Me?(ze=this.Ld[pe.layer],this.K===180||this.K===0?(Me=Rt,Me>=pe.bounds.y&&Me<=pe.bounds.bottom&&(this.K===180?Gt>=pe.bounds.x:Gt<=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,Rt),y.m(qe++,Se,Me)),y.m(qe++,Gt,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++,Gt,$t)):Ne?(Bt=Math.max(10,this.he[pe.layer]),Dn=Math.max(10,this.Ld[pe.layer]),this.K===180&&Gt>=pe.bounds.x?(Se=pe.bounds.x+pe.bounds.width,y.L(qe-2,Se,Rt),y.L(qe-1,Se+Dn,Rt)):this.K===90&&$t<=pe.bounds.bottom?(Se=pe.bounds.y,y.L(qe-2,yt,Se),y.L(qe-1,yt,Se-Bt)):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+Dn)):this.K===0&&Gt<=pe.bounds.right&&(Se=pe.bounds.x,y.L(qe-2,Se,Rt),y.L(qe-1,Se-Bt,Rt))):(Bt=Math.max(10,this.he[pe.layer]),Dn=Math.max(10,this.Ld[pe.layer]),Me=0,this.K===180||this.K===0?((this.K===180?Gt<=pe.bounds.x:Gt>=pe.bounds.right)&&(Me=(this.K===0?Dn:-Bt)/2),y.m(qe++,Gt+Me,Rt)):((this.K===270?$t<=pe.bounds.y:$t>=pe.bounds.bottom)&&(Me=(this.K===90?Dn:-Bt)/2),y.m(qe++,yt,$t+Me)),y.m(qe++,Gt,$t)))}else{for(;pe!==null&&pe!==Se;){for(Bt=Pt=null,pe=pe.destinationEdges.iterator;pe.next()&&(yt=pe.value,yt.link!==b.link||(Pt=yt.toVertex,Bt=yt.fromVertex,Bt.node!==null&&(Bt=null),Pt.node!==null)););if(Pt===null)break;Pt!==Se&&(yt=y.i(qe-1).x,Rt=y.i(qe-1).y,Gt=Pt.centerX,$t=Pt.centerY,Me?this.K===180||this.K===0?(Bt!==null?Bt.centerY:Rt)!==$t&&(Bt=this.Ta[Pt.layer]+this.Rf.x,qe===y.firstPickIndex+1&&(Bt=this.K===0?Math.max(Bt,yt):Math.min(Bt,yt)),y.m(qe++,Bt,Rt),y.m(qe++,Bt,$t)):(Bt!==null?Bt.centerX:yt)!==Gt&&(Bt=this.Ta[Pt.layer]+this.Rf.y,qe===y.firstPickIndex+1&&(Bt=this.K===90?Math.max(Bt,Rt):Math.min(Bt,Rt)),y.m(qe++,yt,Bt),y.m(qe++,Gt,Bt)):(Bt=Math.max(10,this.he[Pt.layer]),Dn=Math.max(10,this.Ld[Pt.layer]),Ne?this.K===180?(y.m(qe++,Gt+Dn+ze,$t),y.m(qe++,Math.max(Gt+Dn-ze/2,Gt),$t),y.m(qe++,Gt,$t),y.m(qe++,Gt,$t),y.m(qe++,Math.min(Gt-Bt+ze/2,Gt),$t),y.m(qe++,Gt-Bt-ze,$t)):this.K===90?(y.m(qe++,Gt,$t-Bt-ze),y.m(qe++,Gt,Math.min($t-Bt+ze/2,$t)),y.m(qe++,Gt,$t),y.m(qe++,Gt,$t),y.m(qe++,Gt,Math.max($t+Dn-ze/2,$t)),y.m(qe++,Gt,$t+Dn+ze)):this.K===270?(y.m(qe++,Gt,$t+Dn+ze),y.m(qe++,Gt,Math.max($t+Dn-ze/2,$t)),y.m(qe++,Gt,$t),y.m(qe++,Gt,$t),y.m(qe++,Gt,Math.min($t-Bt+ze/2,$t)),y.m(qe++,Gt,$t-Bt-ze)):(y.m(qe++,Gt-Bt-ze,$t),y.m(qe++,Math.min(Gt-Bt+ze/2,Gt),$t),y.m(qe++,Gt,$t),y.m(qe++,Gt,$t),y.m(qe++,Math.max(Gt+Dn-ze/2,Gt),$t),y.m(qe++,Gt+Dn+ze,$t)):this.K===180?(y.m(qe++,Gt+Dn,$t),y.m(qe++,Gt-Bt,$t)):this.K===90?(y.m(qe++,Gt,$t-Bt),y.m(qe++,Gt,$t+Dn)):this.K===270?(y.m(qe++,Gt,$t+Dn),y.m(qe++,Gt,$t-Bt)):(y.m(qe++,Gt-Bt,$t),y.m(qe++,Gt+Dn,$t)))),pe=Pt}Me&&(yt=y.i(qe-1).x,Rt=y.i(qe-1).y,Gt=y.i(qe).x,$t=y.i(qe).y,this.K===180||this.K===0?Rt!==$t&&(Bt=this.K===0?Math.min(Math.max((Gt+yt)/2,this.Ta[Se.layer]+this.Rf.x),Gt):Math.max(Math.min((Gt+yt)/2,this.Ta[Se.layer]+this.Rf.x),Gt),y.m(qe++,Bt,Rt),y.m(qe++,Bt,$t)):yt!==Gt&&(Bt=this.K===90?Math.min(Math.max(($t+Rt)/2,this.Ta[Se.layer]+this.Rf.y),$t):Math.max(Math.min(($t+Rt)/2,this.Ta[Se.layer]+this.Rf.y),$t),y.m(qe++,yt,Bt),y.m(qe++,Gt,Bt)))}E!==null&&Ne&&4<=y.pointsCount&&(ne!==null&&(ne=de===Ji?y.getLinkPointFromPoint(x,ne,ne.ga(qi),y.i(3),!0):y.i(0),de===Ji&&(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===Ji?y.getLinkPointFromPoint(z,ie,ie.ga(qi),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),se===Ji&&(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()},$o.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new er,y=this.network.edges.iterator;y.next();){var b=y.value.link;b!==null&&b.isOrthogonal&&!a.contains(b)&&a.add(b)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,b=[],a=a.iterator;a.next();){var E=a.value;if(E!==null&&E.isOrthogonal)for(var x=2;x<E.pointsCount-3;x++){var z=E.i(x),ne=E.i(x+1);if(this.B(z.y,ne.y)&&!this.B(z.x,ne.x)){var ie=new gf;ie.layer=Math.floor(z.y/2);var se=E.i(0),de=E.i(E.pointsCount-1);if(ie.first=se.x*se.x+se.y,ie.jc=de.x*de.x+de.y,ie.rd=Math.min(z.x,ne.x),ie.Ic=Math.max(z.x,ne.x),ie.index=x,ie.link=E,x+2<E.pointsCount){se=E.i(x-1),de=E.i(x+2);var pe=0;se.y<z.y?pe=de.y<z.y?3:z.x<ne.x?2:1:se.y>z.y&&(pe=de.y>z.y?0:ne.x<z.x?2:1),ie.j=pe}b.push(ie)}}}if(1<b.length)for(b.sort(this.Vx),a=0;a<b.length;){for(z=b[a].layer,E=a+1;E<b.length&&b[E].layer===z;)E++;if(1<E-a)for(z=a;z<E;){for(ne=b[z].Ic,x=a+1;x<E&&b[x].rd<ne;)ne=Math.max(ne,b[x].Ic),x++;if(ne=x-z,1<ne){for(this.zi(b,this.Js,z,z+ne),pe=1,ie=b[z].jc,se=z;se<x;se++)de=b[se],de.jc!==ie&&(pe++,ie=de.jc);this.zi(b,this.Ux,z,z+ne);var Se=1;for(ie=b[z].first,se=z;se<x;se++)de=b[se],de.first!==ie&&(Se++,ie=de.first);for(se=!0,de=Se,pe<Se?(se=!1,de=pe,ie=b[z].jc,this.zi(b,this.Js,z,z+ne)):ie=b[z].first,pe=0,Se=z;Se<x;Se++){var Ne=b[Se];(se?Ne.first:Ne.jc)!==ie&&(pe++,ie=se?Ne.first:Ne.jc);var Me=Ne.link;z=Me.i(Ne.index),ne=Me.i(Ne.index+1);var ze=this.linkSpacing*(pe-(de-1)/2);y++,Me.uh(),Me.L(Ne.index,z.x,z.y+ze),Me.L(Ne.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++)Ne=b[Se],(se?Ne.first:Ne.jc)!==ie&&(pe++,ie=se?Ne.first:Ne.jc),Me=Ne.link,z=Me.i(Ne.index),ne=Me.i(Ne.index+1),ze=this.linkSpacing*(pe-(de-1)/2),y++,Me.uh(),Me.L(Ne.index,z.x+ze,z.y),Me.L(Ne.index+1,ne.x+ze,ne.y),Me.zf()}z=x}a=E}}}},Oe=$o.prototype,Oe.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},Oe.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},Oe.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},Oe.B=function(a,y){return a-=y,-1<a&&1>a},Oe.zi=function(a,y,b,E){var x=a.length,z=E-b;if(!(1>=z))if((0>b||b>=x-1)&&xt("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}pn.Object.defineProperties($o.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()):xt("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 Qn($o,"CycleDepthFirst",0),Dy=new Qn($o,"CycleGreedy",1),Cm=new Qn($o,"CycleFromLayers",2),ev=new Qn($o,"LayerOptimalLinkLength",0),Ry=new Qn($o,"LayerLongestPathSink",1),My=new Qn($o,"LayerLongestPathSource",2),tv=new Qn($o,"InitDepthFirstOut",0),Oy=new Qn($o,"InitDepthFirstIn",1),Fy=new Qn($o,"InitNaive",2),By=new Qn($o,"AggressiveNone",0),nv=new Qn($o,"AggressiveLess",1),_y=new Qn($o,"AggressiveMore",2),FE=8;$o.className="LayeredDigraphLayout",$o.CycleDepthFirst=$0,$o.CycleGreedy=Dy,$o.CycleFromLayers=Cm,$o.LayerOptimalLinkLength=ev,$o.LayerLongestPathSink=Ry,$o.LayerLongestPathSource=My,$o.InitDepthFirstOut=tv,$o.InitDepthFirstIn=Oy,$o.InitNaive=Fy,$o.AggressiveNone=By,$o.AggressiveLess=nv,$o.AggressiveMore=_y,$o.PackNone=0,$o.PackExpand=1,$o.PackStraighten=2,$o.PackMedian=4,$o.PackAll=15,$o.AlignNone=0,$o.AlignUpperLeft=1,$o.AlignUpperRight=2,$o.AlignLowerLeft=4,$o.AlignLowerRight=8,$o.AlignAll=15;function gf(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}gf.className="SegInfo";function Ng(a){va.call(this,a)}Cn(Ng,va),Ng.prototype.createVertex=function(){return new yc(this)},Ng.prototype.createEdge=function(){return new Pm(this)},Ng.className="LayeredDigraphNetwork";function yc(a){Ls.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}Cn(yc,Ls);function Ub(a,y){return a.index-y.index}function rv(a,y){if(!a.$n){for(var b=[],E=Cr(a.destinationEdgesArrayAccess),x=E.next();!x.done;x=E.next())x=x.value,x.valid&&b.push(x);a.$n=b}for(a=Cr(a.$n),b=a.next();!b.done;b=a.next())if(b=b.value,b.toVertex===y)return b;xt("Unable to find destination edge to given vertex")}function Uy(a){if(!a.co){for(var y=[],b=Cr(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=Cr(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&y.push(E.toVertex);y.sort(Ub),a.ao=y}return a.ao}yc.prototype.Cl=function(a){Ls.prototype.Cl.call(this,a),this.bo=this.co=null},yc.prototype.Kl=function(a){Ls.prototype.Kl.call(this,a),this.bo=this.co=null},yc.prototype.zl=function(a){Ls.prototype.zl.call(this,a),this.$n=this.ao=null},yc.prototype.Jl=function(a){Ls.prototype.Jl.call(this,a),this.$n=this.ao=null},pn.Object.defineProperties(yc.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),yc.prototype.deleteDestinationEdge=yc.prototype.Jl,yc.prototype.addDestinationEdge=yc.prototype.zl,yc.prototype.deleteSourceEdge=yc.prototype.Kl,yc.prototype.addSourceEdge=yc.prototype.Cl,yc.className="LayeredDigraphVertex";function Pm(a){ju.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Cn(Pm,ju),pn.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 So(a){Aa.call(this),this.Ub=new ar,this.Wn=sv,this.ud=Fd,this.vo=uv,this.Bq=Qy,this.$v=[],this.td=!0,this.Rb=cv,this.$d=new ln(10,10).freeze();var y=new _p(this);this.W=new Ac(y),this.Y=new Ac(y),this.ru=[],a&&Object.assign(this,a)}Cn(So,Aa),So.prototype.cloneProtected=function(a){Aa.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)},So.prototype.qb=function(a){a.classType===So?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:xt("Unknown enum value: "+a):Aa.prototype.qb.call(this,a)},So.prototype.createNetwork=function(){return new _p(this)},So.prototype.makeNetwork=function(a){function y(E){if(E instanceof qr)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof Rr){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 In?(b.lg(a.nodes,!0,y),b.lg(a.links,!0,y)):a instanceof to?b.lg(a.memberParts,!1,y):b.lg(a.iterator,!1,y),b},So.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 In&&(y=a),this.path===sv&&y!==null?this.ud=y.isTreePathToChildren?Fd:Fp:this.ud=this.path===sv?Fd:this.path,0<this.network.vertexes.count){for(this.network.Ko(),a=this.network.vertexes.iterator;a.next();)y=a.value,y.initialized=!1,y.level=0,y.parent=null,y.children=[];if(0<this.Ub.count){for(a=new ar,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 Ac&&a.add(b)}this.Ub=a}for(this.Ub.count===0&&this.findRoots(),a=this.Ub.copy().iterator;a.next();)y=a.value,y.initialized||(y.initialized=!0,Hy(this,y));for(y=this.network.vertexes,a=null;a=_E(y),0<a.count;)y=Hb(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,Hy(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Ac&&Wb(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Ac&&Zb(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Ac&&Kb(this,y);if(this.Cu(),this.layerStyle===hv){for(a=[],y=this.network.vertexes.iterator;y.next();){b=y.value;var E=b.parent;E===null&&(E=b),E=E.angle===0||E.angle===180;var x=a[b.level];x===void 0&&(x=0),a[b.level]=Math.max(x,E?b.width:b.height)}for(y=0;y<a.length;y++)a[y]===void 0&&(a[y]=0);for(this.$v=a,y=this.network.vertexes.iterator;y.next();)b=y.value,E=b.parent,E===null&&(E=b),E.angle===0||E.angle===180?(E.angle===180&&(b.focusX+=a[b.level]-b.width),b.width=a[b.level]):(E.angle===270&&(b.focusY+=a[b.level]-b.height),b.height=a[b.level])}else if(this.layerStyle===Jy)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,b=y.angle===0||y.angle===180,E=-1,x=0;x<y.children.length;x++){var z=y.children[x];E=Math.max(E,b?z.width:z.height)}if(0<=E)for(x=0;x<y.children.length;x++)z=y.children[x],b?(y.angle===180&&(z.focusX+=E-z.width),z.width=E):(y.angle===270&&(z.focusY+=E-z.height),z.height=E)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Ac&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new ar,this.isValidLayout=!0};function _E(a){var y=new ar;for(a=a.iterator;a.next();){var b=a.value;b.initialized||y.add(b)}return y}So.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var b=y.value;switch(this.ud){case Fd:b.sourceEdges.count===0&&this.Ub.add(b);break;case Fp:b.destinationEdges.count===0&&this.Ub.add(b);break;default:xt("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=Hb(this,a),a!==null&&this.Ub.add(a))};function Hb(a,y){var b=999999,E=null;for(y=y.iterator;y.next();){var x=y.value;switch(a.ud){case Fd:x.sourceEdges.count<b&&(b=x.sourceEdges.count,E=x);break;case Fp:x.destinationEdges.count<b&&(b=x.destinationEdges.count,E=x);break;default:xt("Unhandled path value "+a.ud.toString())}}return E}function Hy(a,y){if(y!==null){switch(a.ud){case Fd:if(0<y.destinationEdges.count){for(var b=new er,E=y.destinationVertexes;E.next();){var x=E.value;Vb(a,y,x)&&b.add(x)}0<b.count&&(y.children=b.Fa())}break;case Fp:if(0<y.sourceEdges.count){for(b=new er,E=y.sourceVertexes;E.next();)x=E.value,Vb(a,y,x)&&b.add(x);0<b.count&&(y.children=b.Fa())}break;default:xt("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}So.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var b=a.children,E=0,x=0;x<b.length;x++)b[x]===y&&E++;if(0<E){E=Array(b.length-E);for(var z=x=0;z<b.length;z++)b[z]!==y&&(E[x++]=b[z]);a.children=E}}};function Wb(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===Ud&&a.sortTreeVertexChildren(y);for(var b=0,E=y.childrenCount,x=0,z=y.children,ne=z.length,ie=0;ie<ne;ie++){var se=z[ie];Wb(a,se),b+=se.descendantCount+1,E=Math.max(E,se.maxChildrenCount),x=Math.max(x,se.maxGenerationCount)}y.descendantCount=b,y.maxChildrenCount=E,y.maxGenerationCount=0<E?x+1:0}}function UE(a,y){switch(a.vo){default:case uv:return y.parent!==null?y.parent:a.W;case Yy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case Ky:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Zy:var b=!0;if(y.childrenCount===0)b=!1;else for(var E=y.children,x=E.length,z=0;z<x;z++)if(0<E[z].childrenCount){b=!1;break}return b&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}So.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(UE(this,a)),a.parent!==null&&a.parent.alignment===Ud){for(var y=a.angle,b=a.parent.children,E=0;E<b.length&&a!==b[E];)E++;E%2===0?E!==b.length-1&&(y=y===90?180:y===180?270:y===270?180:270):y=y===90?0:y===180?90:y===270?0:90,a.angle=y}a.initialized=!0};function Zb(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var b=y.length,E=0;E<b;E++)Zb(a,y[E])}}So.prototype.assignTreeVertexValues=function(){};function Kb(a,y){if(y!==null){y.alignment!==Ud&&a.sortTreeVertexChildren(y),y=y.children;for(var b=y.length,E=0;E<b;E++)Kb(a,y[E])}}So.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case Lg:break;case Am:a.children.reverse();break;case Nm:a.children.sort(a.comparer);break;case Lm:a.children.sort(a.comparer),a.children.reverse();break;default:xt("Unhandled sorting value "+a.sorting.toString())}},So.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},So.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=kn.allocAt(0,0,a.bounds.width+z,a.bounds.height+ne),a.bounds=x,kn.free(x))};function mf(a){return a===Rh||a===Ud||a===Mh||a===oh}function Tm(a){return a===Rh||a===Ud}function zy(a){var y=a.parent;if(y!==null){var b=y.alignment;if(mf(b)){if(Tm(b)){for(y=y.children,b=0;b<y.length&&a!==y[b];)b++;return b%2===0}if(b===Mh)return!0}}return!1}So.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,b=a.parent,E=a.angle,x=0,z=!1;b!==null&&(x=b.angle,z=b.alignment,z=mf(z)),E=E===90||E===270,b=x===90||x===270;for(var ne=a.childrenCount===0,ie=zy(a),se=0,de=a.comments,pe=de.length,Se=rt.alloc(),Ne=0;Ne<pe;Ne++){var Me=de[Ne],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=Vs,qe.toSpot=gs}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=gs,qe.toSpot=Vs;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=gs,qe.toSpot=Vs;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=Vs,qe.toSpot=gs;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=ks,qe.toSpot=Is;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=Is,qe.toSpot=ks;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=Is,qe.toSpot=ks;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=ks,qe.toSpot=Is;se=0<=a.commentSpacing?se+(ze.width+a.commentSpacing):se+(a.commentSpacing-ze.width)}}if(rt.free(Se),y=se-a.commentSpacing-(E?y.height:y.width),this.ud===Fd)for(a=a.destinationEdges;a.next();)x=a.value.link,x===null||x.isAvoiding||(x.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)x=a.value.link,x===null||x.isAvoiding||(x.toEndSegmentLength=0<y?y:NaN)}},So.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,b=y.length,E=0;E<b;E++)this.layoutTree(y[E]);switch(a.compaction){case lv:Yb(this,a);break;case km:if(a.alignment===Ud)Yb(this,a);else if(a.childrenCount===0)E=a.parent,b=!1,y=0,E!==null&&(y=E.angle,b=E.alignment,b=mf(b)),E=zy(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||b)&&!E?a.la.h(0,0):y===180&&!b||(y===90||y===270)&&E?a.la.h(a.width-2*a.focus.x,0):a.la.h(0,a.height-2*a.focus.y),a.Yo=null,a.kp=null;else{var x=zc(a);y=x===90||x===270;var z=0,ne=a.children,ie=ne.length;for(b=0;b<ie;b++)E=ne[b],z=Math.max(z,y?E.Da.width:E.Da.height);var se=a.alignment;E=se===Bd;var de=se===_d,pe=mf(se),Se=Math.max(0,a.breadthLimit);b=this.computeLayerSpacing(a);var Ne=a.nodeSpacing,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 Pt=a.height,yt=0,Rt=0,Bt=0,Gt=null,$t=null,Dn=0,Qr=0,gi=0,ui=0,Dr=0,hr=0,eo=0,zi=0;if(pe&&!Tm(se)&&135<x&&ne.reverse(),Tm(se))if(1<ie)for(var Ho=0;Ho<ie;Ho++)Ho%2===0&&Ho!==ie-1&&(zi=Math.max(zi,y?ne[Ho].Da.width:ne[Ho].Da.height));else ie===1&&(zi=y?ne[0].Da.width:ne[0].Da.height);if(pe){switch(se){case Rh:Rt=135>x?Xb(this,a,ne,zi,yt,Rt):Qb(this,a,ne,zi,yt,Rt),zi=Rt.x,yt=Rt.width,Rt=Rt.height;break;case Mh:for(Gt=0;Gt<ie;Gt++)$t=ne[Gt],Se=$t.Da,Bt=hr===0?0:ze,y?($t.S.h(z-Se.width,ui+Bt),yt=Math.max(yt,Se.width),Rt=Math.max(Rt,ui+Bt+Se.height),ui+=Bt+Se.height):($t.S.h(gi+Bt,z-Se.height),yt=Math.max(yt,gi+Bt+Se.width),Rt=Math.max(Rt,Se.height),gi+=Bt+Se.width),hr++;break;case oh:for(Gt=0;Gt<ie;Gt++)$t=ne[Gt],z=$t.Da,Se=hr===0?0:ze,y?($t.S.h(Ne/2+a.focus.x,ui+Se),yt=Math.max(yt,z.width),Rt=Math.max(Rt,ui+Se+z.height),ui+=Se+z.height):($t.S.h(gi+Se,Ne/2+a.focus.y),yt=Math.max(yt,gi+Se+z.width),Rt=Math.max(Rt,z.height),gi+=Se+z.width),hr++}Gt=Du(this,2),$t=Du(this,2),y?(Gt[0].h(0,0),Gt[1].h(0,Rt),$t[0].h(yt,0)):(Gt[0].h(0,0),Gt[1].h(yt,0),$t[0].h(0,Rt)),$t[1].h(yt,Rt)}else for(Ho=0;Ho<ie;Ho++){var fa=ne[Ho],Bs=fa.Da;if(y){0<Se&&0<hr&&gi+Ne+Bs.width>Se&&(gi<z&&Zf(a,se,z-gi,0,eo,Ho-1),Dr++,hr=0,eo=Ho,Bt=Rt,gi=0,ui=135<x?-Rt-ze:Rt+ze),ov(this,fa,0,ui);var Gs=0;if(hr===0)Gt=fa.Yo,$t=fa.kp,Dn=Bs.width,Qr=Bs.height,(Gt===null||$t===null||x!==zc(fa))&&(Gt=Du(this,2),$t=Du(this,2),Gt[0].h(0,0),Gt[1].h(0,Qr),$t[0].h(Dn,0),$t[1].h(Dn,Qr));else{var jl=Nr();Qr=Jb(this,a,fa,Gt,$t,Dn,Qr,jl),Gs=Qr.x,Gt=jl[0],$t=jl[1],Dn=Qr.width,Qr=Qr.height,jr(jl),gi<Bs.width&&0>Gs&&(Op(a,-Gs,0,eo,Ho-1),av(Gt,-Gs,0),av($t,-Gs,0),Gs=0)}fa.S.h(Gs,ui),yt=Math.max(yt,Dn),Rt=Math.max(Rt,Bt+(Dr===0?0:ze)+Bs.height),gi=Dn}else 0<Se&&0<hr&&ui+Ne+Bs.height>Se&&(ui<z&&Zf(a,se,0,z-ui,eo,Ho-1),Dr++,hr=0,eo=Ho,Bt=yt,ui=0,gi=135<x?-yt-ze:yt+ze),ov(this,fa,gi,0),Gs=0,hr===0?(Gt=fa.Yo,$t=fa.kp,Dn=Bs.width,Qr=Bs.height,(Gt===null||$t===null||x!==zc(fa))&&(Gt=Du(this,2),$t=Du(this,2),Gt[0].h(0,0),Gt[1].h(Dn,0),$t[0].h(0,Qr),$t[1].h(Dn,Qr))):(jl=Nr(),Qr=Jb(this,a,fa,Gt,$t,Dn,Qr,jl),Gs=Qr.x,Gt=jl[0],$t=jl[1],Dn=Qr.width,Qr=Qr.height,jr(jl),ui<Bs.height&&0>Gs&&(Op(a,0,-Gs,eo,Ho-1),av(Gt,0,-Gs),av($t,0,-Gs),Gs=0)),fa.S.h(gi,Gs),Rt=Math.max(Rt,Qr),yt=Math.max(yt,Bt+(Dr===0?0:ze)+Bs.width),ui=Qr;hr++}switch(0<Dr&&(y?(Rt+=Math.max(0,b),gi<yt&&Zf(a,se,yt-gi,0,eo,ie-1),0<qe&&(de||Op(a,qe,0,0,ie-1),yt+=qe)):(yt+=Math.max(0,b),ui<Rt&&Zf(a,se,0,Rt-ui,eo,ie-1),0<qe&&(de||Op(a,0,qe,0,ie-1),Rt+=qe))),qe=de=0,se){case kg:y?de+=yt/2-a.focus.x-Me/2:qe+=Rt/2-a.focus.y-Me/2;break;case Bp:0<Dr?y?de+=yt/2-a.focus.x-Me/2:qe+=Rt/2-a.focus.y-Me/2:y?(zi=ne[0].S.x+ne[0].la.x,de+=zi+(ne[ie-1].S.x+ne[ie-1].la.x+2*ne[ie-1].focus.x-zi)/2-a.focus.x-Me/2):(zi=ne[0].S.y+ne[0].la.y,qe+=zi+(ne[ie-1].S.y+ne[ie-1].la.y+2*ne[ie-1].focus.y-zi)/2-a.focus.y-Me/2);break;case Bd:y?(de-=Me,yt+=Me):(qe-=Me,Rt+=Me);break;case _d:y?(de+=yt-a.width+Me,yt+=Me):(qe+=Rt-a.height+Me,Rt+=Me);break;case Rh:y?1<ie?de+=zi+Ne/2-a.focus.x:de+=ne[0].focus.x-a.focus.x+ne[0].la.x:1<ie?qe+=zi+Ne/2-a.focus.y:qe+=ne[0].focus.y-a.focus.y+ne[0].la.y;break;case Mh:y?de+=yt+Ne/2-a.focus.x:qe+=Rt+Ne/2-a.focus.y;break;case oh:break;default:Rt=this.customAlignment(a,de,qe,yt,Rt),de=Rt[0],qe=Rt[1],yt=Rt[2],Rt=Rt[3]}for(Me=0;Me<ie;Me++)zi=ne[Me],y?zi.S.h(zi.S.x+zi.la.x-de,zi.S.y+(135<x?(pe?-Rt:-zi.Da.height)+zi.la.y-b:Pt+b+zi.la.y)):zi.S.h(zi.S.x+(135<x?(pe?-yt:-zi.Da.width)+zi.la.x-b:E+b+zi.la.x),zi.S.y+zi.la.y-qe);if(ie=ne=0,pe?y?(yt=Gy(a,yt,de),0>de&&(de=0),135<x&&(qe+=Rt+b),Rt+=Pt+b,se===oh&&(ne+=Ne/2+a.focus.x),ie+=Pt+b):(135<x&&(de+=yt+b),yt+=E+b,Rt=jy(a,Rt,qe),0>qe&&(qe=0),se===oh&&(ie+=Ne/2+a.focus.y),ne+=E+b):y?(a.comments===null?E>yt&&(yt=Vy(se,E-yt,0),ne=yt.x,ie=yt.y,yt=E,de=0):yt=Gy(a,yt,de),0>de&&(ne-=de,de=0),135<x&&(qe+=Rt+b),Rt=Math.max(Math.max(Rt,Pt),Rt+Pt+b),ie+=Pt+b):(135<x&&(de+=yt+b),yt=Math.max(Math.max(yt,E),yt+E+b),a.comments===null?Pt>Rt&&(Rt=Vy(se,0,Pt-Rt),ne=Rt.x,ie=Rt.y,Rt=Pt,qe=0):Rt=jy(a,Rt,qe),0>qe&&(ie-=qe,qe=0),ne+=E+b),0<Dr)x=Du(this,4),Dr=Du(this,4),y?(x[2].h(0,Pt+b),x[3].h(x[2].x,Rt),Dr[2].h(yt,x[2].y),Dr[3].h(Dr[2].x,x[3].y)):(x[2].h(E+b,0),x[3].h(yt,x[2].y),Dr[2].h(x[2].x,Rt),Dr[3].h(x[3].x,Dr[2].y));else{for(x=Du(this,Gt.length+2),Dr=Du(this,$t.length+2),se=0;se<Gt.length;se++)pe=Gt[se],x[se+2].h(pe.x+ne,pe.y+ie);for(se=0;se<$t.length;se++)pe=$t[se],Dr[se+2].h(pe.x+ne,pe.y+ie)}y?(x[0].h(de,0),x[1].h(x[0].x,Pt),x[2].y<x[1].y&&(x[2].x>x[0].x?x[2].assign(x[1]):x[1].assign(x[2])),x[3].y<x[2].y&&(x[3].x>x[0].x?x[3].assign(x[2]):x[2].assign(x[3])),Dr[0].h(de+E,0),Dr[1].h(Dr[0].x,Pt),Dr[2].y<Dr[1].y&&(Dr[2].x<Dr[0].x?Dr[2].assign(Dr[1]):Dr[1].assign(Dr[2])),Dr[3].y<Dr[2].y&&(Dr[3].x<Dr[0].x?Dr[3].assign(Dr[2]):Dr[2].assign(Dr[3])),x[2].y-=b/2,Dr[2].y-=b/2):(x[0].h(0,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])),Dr[0].h(0,qe+Pt),Dr[1].h(E,Dr[0].y),Dr[2].x<Dr[1].x&&(Dr[2].y<Dr[0].y?Dr[2].assign(Dr[1]):Dr[1].assign(Dr[2])),Dr[3].x<Dr[2].x&&(Dr[3].y<Dr[0].y?Dr[3].assign(Dr[2]):Dr[2].assign(Dr[3])),x[2].x-=b/2,Dr[2].x-=b/2),od(this,Gt),od(this,$t),a.Yo=x,a.kp=Dr,a.la.h(de,qe),a.Da.h(yt,Rt)}break;default:xt("Unhandled compaction value "+a.compaction.toString())}}};function Yb(a,y){if(y.childrenCount===0){var b=!1,E=0;y.parent!==null&&(E=y.parent.angle,b=y.parent.alignment,b=mf(b));var x=zy(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(E!==180&&E!==270||b)&&!x?y.la.h(0,0):E===180&&!b||(E===90||E===270)&&x?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{E=zc(y),b=E===90||E===270;var z=0;x=y.children;for(var ne=x.length,ie=0;ie<ne;ie++){var se=x[ie];z=Math.max(z,b?se.Da.width:se.Da.height)}var de=y.alignment,pe=de===Bd,Se=de===_d;ie=mf(de);var Ne=Math.max(0,y.breadthLimit);se=a.computeLayerSpacing(y);var Me=y.nodeSpacing,ze=a.computeNodeIndent(y),qe=pe||Se?0:ze/2,Pt=y.rowSpacing,yt=0;(pe||Se||y.hm||y.im&&y.maxGenerationCount===1)&&(yt=Math.max(0,y.rowIndent)),pe=y.width;var Rt=y.height,Bt=0,Gt=0,$t=0,Dn=0,Qr=0,gi=0,ui=0,Dr=0,hr=0,eo=0;if(ie&&!Tm(de)&&135<E&&x.reverse(),Tm(de))if(1<ne)for(var zi=0;zi<ne;zi++){var Ho=x[zi],fa=Ho.Da;zi%2===0&&zi!==ne-1?hr=Math.max(hr,(b?fa.width:fa.height)+a.computeBusNodeSpacing(Ho)-Me):zi%2!==0&&(eo=Math.max(eo,(b?fa.width:fa.height)+a.computeBusNodeSpacing(Ho)-Me))}else ne===1&&(hr=b?x[0].Da.width:x[0].Da.height);if(ie)switch(de){case Rh:case Ud:Gt=135>E?Xb(a,y,x,hr,Bt,Gt):Qb(a,y,x,hr,Bt,Gt),hr=Gt.x,Bt=Gt.width,Gt=Gt.height;break;case Mh:for(Ne=0;Ne<ne;Ne++)qe=x[Ne],$t=qe.Da,eo=ui===0?0:Pt,b?(qe.S.h(z-$t.width,Qr+eo),Bt=Math.max(Bt,$t.width),Gt=Math.max(Gt,Qr+eo+$t.height),Qr+=eo+$t.height):(qe.S.h(Dn+eo,z-$t.height),Bt=Math.max(Bt,Dn+eo+$t.width),Gt=Math.max(Gt,$t.height),Dn+=eo+$t.width),ui++;break;case oh:for(z=0;z<ne;z++)Ne=x[z],qe=Ne.Da,$t=ui===0?0:Pt,b?(Ne.S.h(Me/2+y.focus.x,Qr+$t),Bt=Math.max(Bt,qe.width),Gt=Math.max(Gt,Qr+$t+qe.height),Qr+=$t+qe.height):(Ne.S.h(Dn+$t,Me/2+y.focus.y),Bt=Math.max(Bt,Dn+$t+qe.width),Gt=Math.max(Gt,qe.height),Dn+=$t+qe.width),ui++}else for(eo=0;eo<ne;eo++)zi=x[eo],Ho=zi.Da,b?(0<Ne&&0<ui&&Dn+Me+Ho.width>Ne&&(Dn<z&&Zf(y,de,z-Dn,0,Dr,eo-1),gi++,ui=0,Dr=eo,$t=Gt,Dn=0,Qr=135<E?-Gt-Pt:Gt+Pt),fa=ui===0?qe:Me,ov(a,zi,0,Qr),zi.S.h(Dn+fa,Qr),Bt=Math.max(Bt,Dn+fa+Ho.width),Gt=Math.max(Gt,$t+(gi===0?0:Pt)+Ho.height),Dn+=fa+Ho.width):(0<Ne&&0<ui&&Qr+Me+Ho.height>Ne&&(Qr<z&&Zf(y,de,0,z-Qr,Dr,eo-1),gi++,ui=0,Dr=eo,$t=Bt,Qr=0,Dn=135<E?-Bt-Pt:Bt+Pt),fa=ui===0?qe:Me,ov(a,zi,Dn,0),zi.S.h(Dn,Qr+fa),Gt=Math.max(Gt,Qr+fa+Ho.height),Bt=Math.max(Bt,$t+(gi===0?0:Pt)+Ho.width),Qr+=fa+Ho.height),ui++;switch(0<gi&&(b?(Gt+=Math.max(0,se),Dn<Bt&&Zf(y,de,Bt-Dn,0,Dr,ne-1),0<yt&&(Se||Op(y,yt,0,0,ne-1),Bt+=yt)):(Bt+=Math.max(0,se),Qr<Gt&&Zf(y,de,0,Gt-Qr,Dr,ne-1),0<yt&&(Se||Op(y,0,yt,0,ne-1),Gt+=yt))),yt=Se=0,de){case kg:b?Se+=Bt/2-y.focus.x-ze/2:yt+=Gt/2-y.focus.y-ze/2;break;case Bp:0<gi?b?Se+=Bt/2-y.focus.x-ze/2:yt+=Gt/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 Bd:b?(Se-=ze,Bt+=ze):(yt-=ze,Gt+=ze);break;case _d:b?(Se+=Bt-y.width+ze,Bt+=ze):(yt+=Gt-y.height+ze,Gt+=ze);break;case Rh:case Ud:b?1<ne?Se+=hr+Me/2-y.focus.x:Se+=x[0].focus.x-y.focus.x+x[0].la.x:1<ne?yt+=hr+Me/2-y.focus.y:yt+=x[0].focus.y-y.focus.y+x[0].la.y;break;case Mh:b?Se+=Bt+Me/2-y.focus.x:yt+=Gt+Me/2-y.focus.y;break;case oh:break;default:a=a.customAlignment(y,Se,yt,Bt,Gt),Se=a[0],yt=a[1],Bt=a[2],Gt=a[3]}for(a=0;a<ne;a++)ze=x[a],b?ze.S.h(ze.S.x+ze.la.x-Se,ze.S.y+(135<E?(ie?-Gt:-ze.Da.height)+ze.la.y-se:Rt+se+ze.la.y)):ze.S.h(ze.S.x+(135<E?(ie?-Bt:-ze.Da.width)+ze.la.x-se:pe+se+ze.la.x),ze.S.y+ze.la.y-yt);b?(Bt=Gy(y,Bt,Se),0>Se&&(Se=0),135<E&&(yt+=Gt+se),Gt=Math.max(Math.max(Gt,Rt),Gt+Rt+se)):(135<E&&(Se+=Bt+se),Bt=Math.max(Math.max(Bt,pe),Bt+pe+se),Gt=jy(y,Gt,yt),0>yt&&(yt=0)),y.la.h(Se,yt),y.Da.h(Bt,Gt)}}So.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 kn(E,0,x,z);if(ne===1)return y=b[0],x=y.Da.width,z=y.Da.height,new kn(E,0,x,z);for(var ie=y.nodeSpacing,se=y.rowSpacing,de=zc(y)===90,pe=0,Se=0,Ne=0,Me=0;Me<ne;Me++)if(!(Me%2!==0||1<ne&&Me===ne-1)){var ze=b[Me],qe=ze.Da,Pt=pe===0?0:se;if(de){var yt=a.computeBusNodeSpacing(ze)-ie;ze.S.h(E-(qe.width+yt),Ne+Pt),x=Math.max(x,qe.width+yt),z=Math.max(z,Ne+Pt+qe.height),Ne+=Pt+qe.height}else yt=a.computeBusNodeSpacing(ze)-ie,ze.S.h(Se+Pt,E-(qe.height+yt)),z=Math.max(z,qe.height+yt),x=Math.max(x,Se+Pt+qe.width),Se+=Pt+qe.width;pe++}for(pe=0,ze=Se,Me=Ne,de?(Se=E+ie,Ne=0):(Se=0,Ne=E+ie),qe=0;qe<ne;qe++)if(qe%2!==0){Pt=b[qe],yt=Pt.Da;var Rt=pe===0?0:se;if(de){var Bt=a.computeBusNodeSpacing(Pt)-ie;Pt.S.h(Se+Bt,Ne+Rt),x=Math.max(x,Se+yt.width+Bt),z=Math.max(z,Ne+Rt+yt.height),Ne+=Rt+yt.height}else Bt=a.computeBusNodeSpacing(Pt)-ie,Pt.S.h(Se+Rt,Ne+Bt),x=Math.max(x,Se+Rt+yt.width),z=Math.max(z,Ne+yt.height+Bt),Se+=Rt+yt.width;pe++}return 1<ne&&ne%2===1&&(b=b[ne-1],ne=b.Da,a=a.computeBusLastRowSpacing(b,de?Math.max(Math.abs(Me),Math.abs(Ne)):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,Ne)+a+ne.height),0>b.S.x&&(E=iv(y,b.S.x,!1,E,ie))):(b.S.h(x+a,E+ie/2-b.focus.y-b.la.y),x=Math.max(x,Math.max(ze,Se)+a+ne.width),Ne=E+ie/2-b.focus.y-b.la.y,z=Math.max(z,Ne+ne.height),0>Ne&&(z-=Ne),0>b.S.y&&(E=iv(y,b.S.y,!0,E,ie)))),new kn(E,0,x,z)}function Qb(a,y,b,E,x,z){var ne=b.length;if(ne===0)return new kn(E,0,x,z);if(ne===1)return b=b[0],x=b.Da.width,z=b.Da.height,new kn(E,0,x,z);for(var ie=y.nodeSpacing,se=y.rowSpacing,de=zc(y)===270,pe=0,Se=0,Ne=0,Me=0;Me<ne;Me++)if(!(Me%2!==0||1<ne&&Me===ne-1)){var ze=b[Me],qe=ze.Da,Pt=pe===0?0:se;if(de){var yt=a.computeBusNodeSpacing(ze)-ie;Ne-=Pt+qe.height,ze.S.h(E-(qe.width+yt),Ne),x=Math.max(x,qe.width+yt),z=Math.max(z,Math.abs(Ne))}else yt=a.computeBusNodeSpacing(ze)-ie,Se-=Pt+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=Ne,de?(Se=E+ie,Ne=0):(Se=0,Ne=E+ie),qe=0;qe<ne;qe++)if(qe%2!==0){Pt=b[qe],yt=Pt.Da;var Rt=pe===0?0:se;if(de){var Bt=a.computeBusNodeSpacing(Pt)-ie;Ne-=Rt+yt.height,Pt.S.h(Se+Bt,Ne),x=Math.max(x,Se+yt.width+Bt),z=Math.max(z,Math.abs(Ne))}else Bt=a.computeBusNodeSpacing(Pt)-ie,Se-=Rt+yt.width,Pt.S.h(Se,Ne+Bt),z=Math.max(z,Ne+yt.height+Bt),x=Math.max(x,Math.abs(Se));pe++}for(1<ne&&ne%2===1&&(se=b[ne-1],pe=se.Da,a=a.computeBusLastRowSpacing(se,de?Math.max(Math.abs(Me),Math.abs(Ne)):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,Ne))+a+pe.height),0>se.S.x&&(E=iv(y,se.S.x,!1,E,ie))):(se.S.h(-x-pe.width-a,E+ie/2-se.focus.y-se.la.y),x=Math.max(x,Math.abs(Math.min(ze,Se))+a+pe.width),Ne=E+ie/2-se.focus.y-se.la.y,z=Math.max(z,Ne+pe.height),0>Ne&&(z-=Ne),0>se.S.y&&(E=iv(y,se.S.y,!0,E,ie)))),y=0;y<ne;y++)ie=b[y],de?ie.S.h(ie.S.x,ie.S.y+z):ie.S.h(ie.S.x+x,ie.S.y);return new kn(E,0,x,z)}So.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},So.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function iv(a,y,b,E,x){a=a.children;for(var z=a.length,ne=0;ne<z;ne++)b?a[ne].S.h(a[ne].S.x,a[ne].S.y-y):a[ne].S.h(a[ne].S.x-y,a[ne].S.y);return y=a[z-1],Math.max(E,b?y.la.y+y.focus.y-x/2:y.la.x+y.focus.x-x/2)}function Gy(a,y,b){switch(a.alignment){case Bp:case kg:return b+a.width>y&&(y=b+a.width),0>b&&(y-=b),y;case Bd:return a.width>y?a.width:y;case _d:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Rh:case Ud:return Math.max(a.width,Math.max(y,b+a.width)-Math.min(0,b));case Mh:return a.width-a.focus.x+a.nodeSpacing/2+y;case oh:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function jy(a,y,b){switch(a.alignment){case Bp:case kg:return b+a.height>y&&(y=b+a.height),0>b&&(y-=b),y;case Bd:return a.height>y?a.height:y;case _d:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Rh:case Ud:return Math.max(a.height,Math.max(y,b+a.height)-Math.min(0,b));case Mh:return a.height-a.focus.y+a.nodeSpacing/2+y;case oh:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Vy(a,y,b){switch(a){case kg:y/=2,b/=2;break;case Bp:y/=2,b/=2;break;case Bd:b=y=0;break;case _d:break;default:xt("Unhandled alignment value "+a.toString())}return new rt(y,b)}function Zf(a,y,b,E,x,z){y=Vy(y,b,E),Op(a,y.x,y.y,x,z)}function Op(a,y,b,E,x){if(y!==0||b!==0)for(a=a.children;E<=x;E++){var z=a[E].S;z.x+=y,z.y+=b}}function ov(a,y,b,E){var x=y.parent;switch(a.ud){case Fd:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===x&&y.relativePoint.h(b,E);break;case Fp:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===x&&y.relativePoint.h(b,E);break;default:xt("Unhandled path value "+a.ud.toString())}}function av(a,y,b){for(var E=0;E<a.length;E++){var x=a[E];x.x+=y,x.y+=b}}function Jb(a,y,b,E,x,z,ne,ie){var se=zc(y),de=se===90||se===270,pe=y.nodeSpacing;y=E;var Se=x;E=z;var Ne=ne,Me=b.Yo,ze=b.kp;ne=b.Da;var qe=de?Math.max(Ne,ne.height):Math.max(E,ne.width);if((Me===null||se!==zc(b))&&(Me=Du(a,2),ze=Du(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(Ne=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 Pt=Me[x];se=Pt.x,de=Pt.y,se+=E;var yt=z;b+1<Se.length&&(yt=Se[b+1]);var Rt=Pt;Pt=Rt.x,Rt=Rt.y,x+1<Me.length&&(Rt=Me[x+1],Pt=Rt.x,Rt=Rt.y,Pt+=E);var Bt=Ne;z.y===de?Bt=se-z.x:z.y>de&&z.y<Rt?Bt=se+(z.y-de)/(Rt-de)*(Pt-se)-z.x:de>z.y&&de<yt.y&&(Bt=se-(z.x+(de-z.y)/(yt.y-z.y)*(yt.x-z.x))),Bt<Ne&&(Ne=Bt),yt.y<=z.y?b++:Rt<=de?x++:(yt.y<=Rt&&b++,Rt<=yt.y&&x++)}if(Ne=E-Ne,Ne+=pe,b=Me,x=Ne,y===null||2>y.length||b===null||2>b.length)E=null;else{for(pe=Du(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=Du(a,E),se=0;se<E;se++)b[se].assign(pe[se]);od(a,pe),E=b}if(z=ze,se=Ne,Se===null||2>Se.length||z===null||2>z.length)x=null;else{for(pe=Du(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=Du(a,x),b=0;b<x;b++)z[b].assign(pe[b]);od(a,pe),x=z}return z=Math.max(0,Ne)+ne.width,ne=qe,od(a,y),od(a,Me),od(a,Se),od(a,ze),ie[0]=E,ie[1]=x,new kn(Ne,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],Pt=Me[x],se=Pt.x,de=Pt.y,de+=Ne,yt=z,b+1<Se.length&&(yt=Se[b+1]),Rt=Pt,Pt=Rt.x,Rt=Rt.y,x+1<Me.length&&(Rt=Me[x+1],Pt=Rt.x,Rt=Rt.y,Rt+=Ne),Bt=E,z.x===se?Bt=de-z.y:z.x>se&&z.x<Pt?Bt=de+(z.x-se)/(Pt-se)*(Rt-de)-z.y:se>z.x&&se<yt.x&&(Bt=de-(z.y+(se-z.x)/(yt.x-z.x)*(yt.y-z.y))),Bt<E&&(E=Bt),yt.x<=z.x?b++:Pt<=se?x++:(yt.x<=Pt&&b++,Pt<=yt.x&&x++);if(Ne-=E,Ne+=pe,b=Me,x=Ne,y===null||2>y.length||b===null||2>b.length)E=null;else{for(pe=Du(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=Du(a,E),se=0;se<E;se++)b[se].assign(pe[se]);od(a,pe),E=b}if(z=ze,se=Ne,Se===null||2>Se.length||z===null||2>z.length)x=null;else{for(pe=Du(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=Du(a,x),b=0;b<x;b++)z[b].assign(pe[b]);od(a,pe),x=z}return z=qe,ne=Math.max(0,Ne)+ne.height,od(a,y),od(a,Me),od(a,Se),od(a,ze),ie[0]=E,ie[1]=x,new kn(Ne,0,z,ne)}function Du(a,y){if(a=a.ru[y],a!==void 0&&(a=a.pop(),a!==void 0))return a;a=[];for(var b=0;b<y;b++)a[b]=new rt;return a}function od(a,y){var b=y.length,E=a.ru[b];E===void 0&&(E=[],a.ru[b]=E),E.push(y)}So.prototype.arrangeTrees=function(){if(this.Rb===dv)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Ac){var b=y.node;if(b!==null){var E=b.position;b=E.x,E=E.y,isFinite(b)||(b=0),isFinite(E)||(E=0),Wy(this,y,b,E)}}}else{for(a=[],y=this.Ub.iterator;y.next();)b=y.value,b instanceof Ac&&a.push(b);switch(this.sorting){case Lg:break;case Am:a.reverse();break;case Nm:a.sort(this.comparer);break;case Lm:a.sort(this.comparer),a.reverse();break;default:xt("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:xt("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)}}}So.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},So.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},So.prototype.Gu=function(){if(this.layerStyle===hv){for(var a=this.$v,y=[],b=null,E=this.network.vertexes.iterator;E.next();){var x=E.value;b===null?b=x.bounds.copy():b.ed(x.bounds);var z=y[x.level];z===void 0?z=this.computeLayerSpacing(x):z=Math.max(z,this.computeLayerSpacing(x)),y[x.level]=z}for(E=0;E<y.length;E++)y[E]===void 0&&(y[E]=0);if(this.angle===90||this.angle===270?(b.Bc(this.nodeSpacing/2,this.layerSpacing),E=new rt(-this.nodeSpacing/2,-this.layerSpacing/2)):(b.Bc(this.layerSpacing,this.nodeSpacing/2),E=new rt(-this.layerSpacing/2,-this.nodeSpacing/2)),x=[],b=this.angle===90||this.angle===270?b.width:b.height,z=0,this.angle===180||this.angle===270)for(var ne=0;ne<a.length;ne++)z+=a[ne]+y[ne];for(ne=0;ne<a.length;ne++){var ie=a[ne]+y[ne];this.angle===270?(z-=ie,x.push(new kn(0,z,b,ie))):this.angle===90?(x.push(new kn(0,z,b,ie)),z+=ie):this.angle===180?(z-=ie,x.push(new kn(z,0,ie,b))):(x.push(new kn(z,0,ie,b)),z+=ie)}this.commitLayers(x,E)}},So.prototype.commitLayers=function(){},So.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},So.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Ac&&$b(this,y)}};function $b(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var b=y.length,E=0;E<b;E++)$b(a,y[E])}}So.prototype.setPortSpots=function(a){var y=a.alignment;if(mf(y)){var b=this.ud===Fd,E=zc(a);switch(E){case 0:var x=gs;break;case 90:x=Is;break;case 180:x=Vs;break;default:x=ks}var z=a.children,ne=z.length;switch(y){case Rh:case Ud:for(y=0;y<ne;y++){var ie=z[y];if(ie=(b?ie.sourceEdges:ie.destinationEdges).first(),ie!==null&&(ie=ie.link,ie!==null)){var se=E===90||E===270?Vs:ks;if(ne===1||y===ne-1&&ne%2===1)switch(E){case 0:se=Vs;break;case 90:se=ks;break;case 180:se=gs;break;default:se=Is}else y%2===0&&(se=E===90||E===270?gs:Is);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?gs:Is,z=b?a.destinationEdges:a.sourceEdges;z.next();)ne=z.value.link,ne!==null&&(b?(a.setsPortSpot&&(ne.fromSpot=x),a.setsChildPortSpot&&(ne.toSpot=E)):(a.setsPortSpot&&(ne.fromSpot=E),a.setsChildPortSpot&&(ne.toSpot=x)));break;case oh:for(E=E===90||E===270?Vs: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)))}}else if(b=zc(a),this.ud===Fd){for(x=a.destinationEdges;x.next();)if(E=x.value.link,E!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(b){case 0:E.fromSpot=gs;break;case 90:E.fromSpot=Is;break;case 180:E.fromSpot=Vs;break;default:E.fromSpot=ks}else E.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(b){case 0:E.toSpot=Vs;break;case 90:E.toSpot=ks;break;case 180:E.toSpot=gs;break;default:E.toSpot=Is}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=gs;break;case 90:E.toSpot=Is;break;case 180:E.toSpot=Vs;break;default:E.toSpot=ks}else E.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(b){case 0:E.fromSpot=Vs;break;case 90:E.fromSpot=ks;break;case 180:E.fromSpot=gs;break;default:E.fromSpot=Is}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}So.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},So.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)},pn.Object.defineProperties(So.prototype,{roots:{get:function(){return this.Ub},set:function(a){this.Ub!==a&&(this.Ub=a,this.C())}},path:{get:function(){return this.Wn},set:function(a){this.Wn!==a&&(this.Wn=a,this.C())}},treeStyle:{get:function(){return this.vo},set:function(a){this.Rb===a||a!==uv&&a!==Ky&&a!==Zy&&a!==Yy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Qy&&a!==Jy&&a!==hv||(this.Bq=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==cv&&a!==Xy&&a!==dv||(this.Rb=a,this.C())}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},rootDefaults:{get:function(){return this.W},set:function(a){this.W!==a&&(this.W=a,this.C())}},alternateDefaults:{get:function(){return this.Y},set:function(a){this.Y!==a&&(this.Y=a,this.C())}},sorting:{get:function(){return this.W.sorting},set:function(a){this.W.sorting===a||a!==Lg&&a!==Am&&a!==Nm&&!Lm||(this.W.sorting=a,this.C())}},comparer:{get:function(){return this.W.comparer},set:function(a){this.W.comparer!==a&&(this.W.comparer=a,this.C())}},angle:{get:function(){return this.W.angle},set:function(a){this.W.angle!==a&&(a===0||a===90||a===180||a===270?(this.W.angle=a,this.C()):xt("TreeLayout.angle must be 0, 90, 180, or 270"))}},alignment:{get:function(){return this.W.alignment},set:function(a){this.W.alignment!==a&&(this.W.alignment=a,this.C())}},nodeIndent:{get:function(){return this.W.nodeIndent},set:function(a){this.W.nodeIndent!==a&&0<=a&&(this.W.nodeIndent=a,this.C())}},nodeIndentPastParent:{get:function(){return this.W.nodeIndentPastParent},set:function(a){this.W.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==lv&&a!==km||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==Lg&&a!==Am&&a!==Nm&&!Lm||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==lv&&a!==km||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var sv=new Qn(So,"PathDefault",-1),Fd=new Qn(So,"PathDestination",0),Fp=new Qn(So,"PathSource",1),Lg=new Qn(So,"SortingForwards",10),Am=new Qn(So,"SortingReverse",11),Nm=new Qn(So,"SortingAscending",12),Lm=new Qn(So,"SortingDescending",13),kg=new Qn(So,"AlignmentCenterSubtrees",20),Bp=new Qn(So,"AlignmentCenterChildren",21),Bd=new Qn(So,"AlignmentStart",22),_d=new Qn(So,"AlignmentEnd",23),Rh=new Qn(So,"AlignmentBus",24),Ud=new Qn(So,"AlignmentBusBranching",25),Mh=new Qn(So,"AlignmentTopLeftBus",26),oh=new Qn(So,"AlignmentBottomRightBus",27),lv=new Qn(So,"CompactionNone",30),km=new Qn(So,"CompactionBlock",31),uv=new Qn(So,"StyleLayered",40),Zy=new Qn(So,"StyleLastParents",41),Ky=new Qn(So,"StyleAlternating",42),Yy=new Qn(So,"StyleRootOnly",43),cv=new Qn(So,"ArrangementVertical",50),Xy=new Qn(So,"ArrangementHorizontal",51),dv=new Qn(So,"ArrangementFixedRoots",52),Qy=new Qn(So,"LayerIndividual",60),Jy=new Qn(So,"LayerSiblings",61),hv=new Qn(So,"LayerUniform",62);So.className="TreeLayout",So.PathDefault=sv,So.PathDestination=Fd,So.PathSource=Fp,So.SortingForwards=Lg,So.SortingReverse=Am,So.SortingAscending=Nm,So.SortingDescending=Lm,So.AlignmentCenterSubtrees=kg,So.AlignmentCenterChildren=Bp,So.AlignmentStart=Bd,So.AlignmentEnd=_d,So.AlignmentBus=Rh,So.AlignmentBusBranching=Ud,So.AlignmentTopLeftBus=Mh,So.AlignmentBottomRightBus=oh,So.CompactionNone=lv,So.CompactionBlock=km,So.StyleLayered=uv,So.StyleLastParents=Zy,So.StyleAlternating=Ky,So.StyleRootOnly=Yy,So.ArrangementVertical=cv,So.ArrangementHorizontal=Xy,So.ArrangementFixedRoots=dv,So.LayerIndividual=Qy,So.LayerSiblings=Jy,So.LayerUniform=hv;function _p(a){va.call(this,a)}Cn(_p,va),_p.prototype.createVertex=function(){return new Ac(this)},_p.prototype.createEdge=function(){return new Ig(this)},_p.className="TreeNetwork";function Ac(a){Ls.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new rt(0,0),this.Da=new ln(0,0),this.la=new rt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Lg,this.hd=vy,this.Kb=0,this.Jb=Bp,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=km,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=ts,this.wr=!0,this.Dp=ts}Cn(Ac,Ls),Ac.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},pn.Object.defineProperties(Ac.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,b=0;b<y;b++);this.u=a}}},level:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},descendantCount:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},maxChildrenCount:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},maxGenerationCount:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a)}},comments:{get:function(){return this.td},set:function(a){if(this.td!==a){if(a!==null)for(var y=a.length,b=0;b<y;b++);this.td=a}}},sorting:{get:function(){return this.nd},set:function(a){this.nd!==a&&(this.nd=a)}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a)}},angle:{get:function(){return this.Kb},set:function(a){this.Kb!==a&&(this.Kb=a)}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb!==a&&(this.Jb=a)}},nodeIndent:{get:function(){return this.Uq},set:function(a){this.Uq!==a&&(this.Uq=a)}},nodeIndentPastParent:{get:function(){return this.Vq},set:function(a){this.Vq!==a&&(this.Vq=a)}},nodeSpacing:{get:function(){return this.Wq},set:function(a){this.Wq!==a&&(this.Wq=a)}},layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&(this.ie=a)}},layerSpacingParentOverlap:{get:function(){return this.Aq},set:function(a){this.Aq!==a&&(this.Aq=a)}},compaction:{get:function(){return this.Hp},set:function(a){this.Hp!==a&&(this.Hp=a)}},breadthLimit:{get:function(){return this.Ap},set:function(a){this.Ap!==a&&(this.Ap=a)}},rowSpacing:{get:function(){return this.nr},set:function(a){this.nr!==a&&(this.nr=a)}},rowIndent:{get:function(){return this.mr},set:function(a){this.mr!==a&&(this.mr=a)}},commentSpacing:{get:function(){return this.Gp},set:function(a){this.Gp!==a&&(this.Gp=a)}},commentMargin:{get:function(){return this.Fp},set:function(a){this.Fp!==a&&(this.Fp=a)}},setsPortSpot:{get:function(){return this.xr},set:function(a){this.xr!==a&&(this.xr=a)}},portSpot:{get:function(){return this.dr},set:function(a){this.dr.D(a)||(this.dr=a)}},setsChildPortSpot:{get:function(){return this.wr},set:function(a){this.wr!==a&&(this.wr=a)}},childPortSpot:{get:function(){return this.Dp},set:function(a){this.Dp.D(a)||(this.Dp=a)}},childrenCount:{get:function(){return this.children.length}},relativePosition:{get:function(){return this.S},set:function(a){this.S.set(a)}},subtreeSize:{get:function(){return this.Da},set:function(a){this.Da.set(a)}},subtreeOffset:{get:function(){return this.la},set:function(a){this.la.set(a)}}}),Ac.className="TreeVertex";function Ig(a){ju.call(this,a),this.$t=new rt(0,0)}Cn(Ig,ju),Ig.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,b=null,E=null;switch(y.ud){case Fd:b=this.fromVertex,E=this.toVertex;break;case Fp:b=this.toVertex,E=this.fromVertex;break;default:xt("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===rc,de=a.isOrthogonal,pe;if(a.uh(),de||se){for(pe=2;4<a.pointsCount;)a.pv(2);var Se=a.i(1),Ne=a.i(2)}else{for(pe=1;3<a.pointsCount;)a.pv(1);Se=a.i(0),Ne=a.i(a.pointsCount-1)}var Me=a.i(a.pointsCount-1);z===0?(b.alignment===_d?(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===Bd?(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,Ne.x,z)):(de&&(a.m(pe,E.right+ne/2,Se.y),pe++),a.m(pe,E.right+ne/2,z),pe++,a.m(pe,E.right+ne+x.x-(de?ie/2:ie),z),pe++,de&&a.m(pe,a.i(pe-1).x,Ne.y))):z===90?(b.alignment===_d?(z=E.right+x.x,x.x===0&&Se.x>Me.x+b.rowIndent&&(z=Math.min(z,Math.max(Se.x,z-y.computeNodeIndent(b))))):b.alignment===Bd?(z=E.left+x.x,x.x===0&&Se.x<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,Ne.y)):(de&&(a.m(pe,Se.x,E.bottom+ne/2),pe++),a.m(pe,z,E.bottom+ne/2),pe++,a.m(pe,z,E.bottom+ne+x.y-(de?ie/2:ie)),pe++,de&&a.m(pe,Ne.x,a.i(pe-1).y))):z===180?(b.alignment===_d?(z=E.bottom+x.y,x.y===0&&Se.y>Me.y+b.rowIndent&&(z=Math.min(z,Math.max(Se.y,z-y.computeNodeIndent(b))))):b.alignment===Bd?(z=E.top+x.y,x.y===0&&Se.y<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,Ne.x,z)):(de&&(a.m(pe,E.left-ne/2,Se.y),pe++),a.m(pe,E.left-ne/2,z),pe++,a.m(pe,E.left-ne+x.x+(de?ie/2:ie),z),pe++,de&&a.m(pe,a.i(pe-1).x,Ne.y))):z===270?(b.alignment===_d?(z=E.right+x.x,x.x===0&&Se.x>Me.x+b.rowIndent&&(z=Math.min(z,Math.max(Se.x,z-y.computeNodeIndent(b))))):b.alignment===Bd?(z=E.left+x.x,x.x===0&&Se.x<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,Ne.y)):(de&&(a.m(pe,Se.x,E.top-ne/2),pe++),a.m(pe,z,E.top-ne/2),pe++,a.m(pe,z,E.top-ne+x.y+(de?ie/2:ie)),pe++,de&&a.m(pe,Ne.x,a.i(pe-1).y))):xt("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===rc,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()))}}},pn.Object.defineProperties(Ig.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},relativePoint:{get:function(){return this.$t},set:function(a){this.$t.set(a)}}}),Ig.className="TreeEdge",ra.prototype.initializeStandardTools=function(){this.gb("Action",new tr,this.mouseDownTools),this.gb("Relinking",new kl,this.mouseDownTools),this.gb("LinkReshaping",new Qe,this.mouseDownTools),this.gb("Rotating",new Sr,this.mouseDownTools),this.gb("Resizing",new Nn,this.mouseDownTools),this.gb("Linking",new ol,this.mouseMoveTools),this.gb("Dragging",new sa,this.mouseMoveTools),this.gb("DragSelecting",new Mr,this.mouseMoveTools),this.gb("Panning",new lr,this.mouseMoveTools),this.gb("ContextMenu",new ta,this.mouseUpTools),this.gb("TextEditing",new Co,this.mouseUpTools),this.gb("ClickCreating",new Zr,this.mouseUpTools),this.gb("ClickSelecting",new xr,this.mouseUpTools)},md("Horizontal",new zm),md("Spot",new jm),md("Table",new Wm),md("Viewbox",new Ym),md("TableRow",new Zm),md("TableColumn",new Km),md("Graduated",new Zg),md("Grid",new Wg),Ff.add("GraphLinksModel",zs),Ff.add("TreeModel",mc);var fv=dr.go,qy={get licenseKey(){return In.licenseKey},set licenseKey(a){In.licenseKey=a},get version(){return In.version},Group:to,EnumValue:Qn,List:er,Set:ar,Map:Ln,Point:rt,Size:ln,Rect:kn,Margin:Xi,Spot:fi,Geometry:Ar,PathFigure:ja,PathSegment:To,InputEvent:Ts,DiagramEvent:_u,ChangedEvent:ga,Model:xi,GraphLinksModel:Io,TreeModel:ru,Binding:ls,Transaction:Va,UndoManager:ea,CommandHandler:Ct,Tool:Eo,DraggingTool:sa,DraggingInfo:Jc,DraggingOptions:le,LinkingBaseTool:Na,LinkingTool:ol,RelinkingTool:kl,LinkReshapingTool:Qe,ResizingTool:Nn,RotatingTool:Sr,ClickSelectingTool:xr,ActionTool:tr,ClickCreatingTool:Zr,HTMLInfo:Ao,ContextMenuTool:ta,DragSelectingTool:Mr,PanningTool:lr,TextEditingTool:Co,ToolManager:ra,Animation:ii,AnimationManager:$s,AnimationTrigger:Ul,Layer:Rs,Diagram:In,Palette:ye,Overview:xe,Brush:Fo,GraphObject:rn,Panel:Tr,RowColumnDefinition:Es,Shape:oo,TextBlock:ma,Picture:Su,Part:Li,Adornment:_o,Node:qr,Link:Rr,Placeholder:$l,Layout:Aa,LayoutNetwork:va,LayoutVertex:Ls,LayoutEdge:ju,GridLayout:nl,PanelLayout:Ns,CircularLayout:Fa,CircularNetwork:Tg,CircularVertex:bm,CircularEdge:K0,ForceDirectedLayout:El,ForceDirectedNetwork:Mp,ForceDirectedVertex:Em,ForceDirectedEdge:xm,LayeredDigraphLayout:$o,LayeredDigraphNetwork:Ng,LayeredDigraphVertex:yc,LayeredDigraphEdge:Pm,TreeLayout:So,TreeNetwork:_p,TreeVertex:Ac,TreeEdge:Ig};typeof fv=="object"&&fv.version&&Br("WARNING: a `go` object on the root object is already defined. "+("Debug"in fv?"debug ":"")+"version: "+fv.version+", replaced with version: "+qy.version),In.prototype.go=qy,dr.go=qy,typeof We.exports=="object"&&(We.exports=typeof ae.g!="undefined"?ae.g.go:self.go)}();var oe=typeof ae.g!="undefined"?ae.g.go:self.go;const Pe=typeof ae.g!="undefined"?ae.g.go:self.go,Ie=Pe.Group,ke=Pe.EnumValue,Ve=Pe.List,Te=Pe.Set,Ge=Pe.Map,lt=Pe.Point,Ke=Pe.Size,He=Pe.Rect,St=Pe.Margin,$e=Pe.Spot,It=Pe.Geometry,Fe=Pe.PathFigure,te=Pe.PathSegment,ee=Pe.InputEvent,he=Pe.DiagramEvent,ue=Pe.ChangedEvent,fe=Pe.Model,me=Pe.GraphLinksModel,be=Pe.TreeModel,Ae=Pe.Binding,De=Pe.Transaction,Ye=Pe.UndoManager,nt=Pe.CommandHandler,Je=Pe.Tool,ot=Pe.DraggingTool,mt=Pe.DraggingInfo,it=Pe.LinkingBaseTool,vt=Pe.LinkingTool,wt=Pe.RelinkingTool,Nt=Pe.LinkReshapingTool,Ht=Pe.ResizingTool,Qt=Pe.RotatingTool,Yt=Pe.ClickSelectingTool,yn=Pe.ActionTool,bt=Pe.ClickCreatingTool,ft=Pe.HTMLInfo,ct=Pe.ContextMenuTool,Jt=Pe.DragSelectingTool,fn=Pe.PanningTool,kt=Pe.TextEditingTool,bn=Pe.ToolManager,An=Pe.Animation,Yn=Pe.AnimationManager,Vt=Pe.AnimationTrigger,Bn=Pe.Layer,Mt=Pe.Diagram,Hn=Pe.Palette,ur=Pe.Overview,at=Pe.Brush,_e=Pe.GraphObject,Re=Pe.Panel,Xe=Pe.RowColumnDefinition,st=Pe.Shape,Be=Pe.TextBlock,Et=Pe.TextBlockMetrics,En=Pe.Picture,sn=Pe.Part,Mn=Pe.Adornment,Dt=Pe.Node,_t=Pe.Link,jt=Pe.Placeholder,dn=Pe.Layout,Sn=Pe.LayoutNetwork,gn=Pe.LayoutVertex,Ot=Pe.LayoutEdge,Pn=Pe.GridLayout,Zt=Pe.PanelLayout,tn=Pe.CircularLayout,vn=Pe.CircularNetwork,$n=Pe.CircularVertex,mn=Pe.CircularEdge,gt=Pe.ForceDirectedLayout,Xn=Pe.ForceDirectedNetwork,ir=Pe.ForceDirectedVertex,nn=Pe.ForceDirectedEdge,vr=Pe.LayeredDigraphLayout,$r=Pe.LayeredDigraphNetwork,Lr=Pe.LayeredDigraphVertex,Rn=Pe.LayeredDigraphEdge,ei=Pe.TreeLayout,Jr=Pe.TreeNetwork,nr=Pe.TreeVertex,Wr=Pe.TreeEdge,oi=Pe.version},46963:function(We){"use strict";We.exports=ae;var Ee=/[#.]/g;function ae(oe,Pe){for(var Ie=oe||"",ke=Pe||"div",Ve={},Te=0,Ge,lt,Ke;Te<Ie.length;)Ee.lastIndex=Te,Ke=Ee.exec(Ie),Ge=Ie.slice(Te,Ke?Ke.index:Ie.length),Ge&&(lt?lt==="#"?Ve.id=Ge:Ve.className?Ve.className.push(Ge):Ve.className=[Ge]:ke=Ge,Te+=Ge.length),Ke&&(lt=Ke[0],Te++);return{type:"element",tagName:ke,properties:Ve,children:[]}}},5641:function(We,Ee,ae){"use strict";var oe=ae(88914),Pe=ae(47178),Ie=ae(46963),ke=ae(92848).Q,Ve=ae(58951).Q;We.exports=Ge;var Te={}.hasOwnProperty;function Ge(te,ee,he){var ue=he?Fe(he):null;return fe;function fe(be,Ae){var De=Ie(be,ee),Ye=Array.prototype.slice.call(arguments,2),nt=De.tagName.toLowerCase(),Je;if(De.tagName=ue&&Te.call(ue,nt)?ue[nt]:nt,Ae&&lt(Ae,De)&&(Ye.unshift(Ae),Ae=null),Ae)for(Je in Ae)me(De.properties,Je,Ae[Je]);return He(De.children,Ye),De.tagName==="template"&&(De.content={type:"root",children:De.children},De.children=[]),De}function me(be,Ae,De){var Ye,nt,Je;De==null||De!==De||(Ye=oe(te,Ae),nt=Ye.property,Je=De,typeof Je=="string"&&(Ye.spaceSeparated?Je=ke(Je):Ye.commaSeparated?Je=Ve(Je):Ye.commaOrSpaceSeparated&&(Je=ke(Ve(Je).join(" ")))),nt==="style"&&typeof De!="string"&&(Je=It(Je)),nt==="className"&&be.className&&(Je=be.className.concat(Je)),be[nt]=St(Ye,nt,Je))}}function lt(te,ee){return typeof te=="string"||"length"in te||Ke(ee.tagName,te)}function Ke(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 He(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;)He(te,ee[he]);return}if(typeof ee!="object"||!("type"in ee))throw new Error("Expected node, nodes, or string, got `"+ee+"`");te.push(ee)}function St(te,ee,he){var ue,fe,me;if(typeof he!="object"||!("length"in he))return $e(te,ee,he);for(fe=he.length,ue=-1,me=[];++ue<fe;)me[ue]=$e(te,ee,he[ue]);return me}function $e(te,ee,he){var ue=he;return te.number||te.positiveNumber?!isNaN(ue)&&ue!==""&&(ue=Number(ue)):(te.boolean||te.overloadedBoolean)&&typeof ue=="string"&&(ue===""||Pe(he)===Pe(ee))&&(ue=!0),ue}function It(te){var ee=[],he;for(he in te)ee.push([he,te[he]].join(": "));return ee.join("; ")}function Fe(te){for(var ee=te.length,he=-1,ue={},fe;++he<ee;)fe=te[he],ue[fe.toLowerCase()]=fe;return ue}},82073:function(We,Ee,ae){"use strict";var oe=ae(18795),Pe=ae(5641),Ie=Pe(oe,"div");Ie.displayName="html",We.exports=Ie},43621:function(We,Ee,ae){"use strict";We.exports=ae(82073)},93193:function(We){var Ee=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ae=/\n/g,oe=/^\s*/,Pe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ie=/^:\s*/,ke=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ve=/^[;\s]*/,Te=/^\s+|\s+$/g,Ge=`
`,lt="/",Ke="*",He="",St="comment",$e="declaration";We.exports=function(Fe,te){if(typeof Fe!="string")throw new TypeError("First argument must be a string");if(!Fe)return[];te=te||{};var ee=1,he=1;function ue(it){var vt=it.match(ae);vt&&(ee+=vt.length);var wt=it.lastIndexOf(Ge);he=~wt?it.length-wt:he+it.length}function fe(){var it={line:ee,column:he};return function(vt){return vt.position=new me(it),Ye(),vt}}function me(it){this.start=it,this.end={line:ee,column:he},this.source=te.source}me.prototype.content=Fe;var be=[];function Ae(it){var vt=new Error(te.source+":"+ee+":"+he+": "+it);if(vt.reason=it,vt.filename=te.source,vt.line=ee,vt.column=he,vt.source=Fe,te.silent)be.push(vt);else throw vt}function De(it){var vt=it.exec(Fe);if(vt){var wt=vt[0];return ue(wt),Fe=Fe.slice(wt.length),vt}}function Ye(){De(oe)}function nt(it){var vt;for(it=it||[];vt=Je();)vt!==!1&&it.push(vt);return it}function Je(){var it=fe();if(!(lt!=Fe.charAt(0)||Ke!=Fe.charAt(1))){for(var vt=2;He!=Fe.charAt(vt)&&(Ke!=Fe.charAt(vt)||lt!=Fe.charAt(vt+1));)++vt;if(vt+=2,He===Fe.charAt(vt-1))return Ae("End of comment missing");var wt=Fe.slice(2,vt-2);return he+=2,ue(wt),Fe=Fe.slice(vt),he+=2,it({type:St,comment:wt})}}function ot(){var it=fe(),vt=De(Pe);if(vt){if(Je(),!De(Ie))return Ae("property missing ':'");var wt=De(ke),Nt=it({type:$e,property:It(vt[0].replace(Ee,He)),value:wt?It(wt[0].replace(Ee,He)):He});return De(Ve),Nt}}function mt(){var it=[];nt(it);for(var vt;vt=ot();)vt!==!1&&(it.push(vt),nt(it));return it}return Ye(),mt()};function It(Fe){return Fe?Fe.replace(Te,He):He}},91241:function(We){"use strict";We.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(We,Ee,ae){"use strict";var oe=ae(91241),Pe=ae(22347);We.exports=Ie;function Ie(ke){return oe(ke)||Pe(ke)}},22347:function(We){"use strict";We.exports=Ee;function Ee(ae){var oe=typeof ae=="string"?ae.charCodeAt(0):ae;return oe>=48&&oe<=57}},65207:function(We){"use strict";We.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(We,Ee,ae){var oe,Pe;(function(Ie,ke){We.exports=ke(Ie)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ae.g!="undefined"?ae.g:this,function(Ie){"use strict";Ie=Ie||{};var ke=Ie.Base64,Ve="2.6.4",Te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ge=function(wt){for(var Nt={},Ht=0,Qt=wt.length;Ht<Qt;Ht++)Nt[wt.charAt(Ht)]=Ht;return Nt}(Te),lt=String.fromCharCode,Ke=function(wt){if(wt.length<2){var Nt=wt.charCodeAt(0);return Nt<128?wt:Nt<2048?lt(192|Nt>>>6)+lt(128|Nt&63):lt(224|Nt>>>12&15)+lt(128|Nt>>>6&63)+lt(128|Nt&63)}else{var Nt=65536+(wt.charCodeAt(0)-55296)*1024+(wt.charCodeAt(1)-56320);return lt(240|Nt>>>18&7)+lt(128|Nt>>>12&63)+lt(128|Nt>>>6&63)+lt(128|Nt&63)}},He=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,St=function(wt){return wt.replace(He,Ke)},$e=function(wt){var Nt=[0,2,1][wt.length%3],Ht=wt.charCodeAt(0)<<16|(wt.length>1?wt.charCodeAt(1):0)<<8|(wt.length>2?wt.charCodeAt(2):0),Qt=[Te.charAt(Ht>>>18),Te.charAt(Ht>>>12&63),Nt>=2?"=":Te.charAt(Ht>>>6&63),Nt>=1?"=":Te.charAt(Ht&63)];return Qt.join("")},It=Ie.btoa&&typeof Ie.btoa=="function"?function(wt){return Ie.btoa(wt)}:function(wt){if(wt.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return wt.replace(/[\s\S]{1,3}/g,$e)},Fe=function(wt){return It(St(String(wt)))},te=function(wt){return wt.replace(/[+\/]/g,function(Nt){return Nt=="+"?"-":"_"}).replace(/=/g,"")},ee=function(wt,Nt){return Nt?te(Fe(wt)):Fe(wt)},he=function(wt){return ee(wt,!0)},ue;Ie.Uint8Array&&(ue=function(wt,Nt){for(var Ht="",Qt=0,Yt=wt.length;Qt<Yt;Qt+=3){var yn=wt[Qt],bt=wt[Qt+1],ft=wt[Qt+2],ct=yn<<16|bt<<8|ft;Ht+=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 Nt?te(Ht):Ht});var fe=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,me=function(wt){switch(wt.length){case 4:var Nt=(7&wt.charCodeAt(0))<<18|(63&wt.charCodeAt(1))<<12|(63&wt.charCodeAt(2))<<6|63&wt.charCodeAt(3),Ht=Nt-65536;return lt((Ht>>>10)+55296)+lt((Ht&1023)+56320);case 3:return lt((15&wt.charCodeAt(0))<<12|(63&wt.charCodeAt(1))<<6|63&wt.charCodeAt(2));default:return lt((31&wt.charCodeAt(0))<<6|63&wt.charCodeAt(1))}},be=function(wt){return wt.replace(fe,me)},Ae=function(wt){var Nt=wt.length,Ht=Nt%4,Qt=(Nt>0?Ge[wt.charAt(0)]<<18:0)|(Nt>1?Ge[wt.charAt(1)]<<12:0)|(Nt>2?Ge[wt.charAt(2)]<<6:0)|(Nt>3?Ge[wt.charAt(3)]:0),Yt=[lt(Qt>>>16),lt(Qt>>>8&255),lt(Qt&255)];return Yt.length-=[0,0,2,1][Ht],Yt.join("")},De=Ie.atob&&typeof Ie.atob=="function"?function(wt){return Ie.atob(wt)}:function(wt){return wt.replace(/\S{1,4}/g,Ae)},Ye=function(wt){return De(String(wt).replace(/[^A-Za-z0-9\+\/]/g,""))},nt=function(wt){return be(De(wt))},Je=function(wt){return String(wt).replace(/[-_]/g,function(Nt){return Nt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ot=function(wt){return nt(Je(wt))},mt;Ie.Uint8Array&&(mt=function(wt){return Uint8Array.from(Ye(Je(wt)),function(Nt){return Nt.charCodeAt(0)})});var it=function(){var wt=Ie.Base64;return Ie.Base64=ke,wt};if(Ie.Base64={VERSION:Ve,atob:Ye,btoa:It,fromBase64:ot,toBase64:ee,utob:St,encode:ee,encodeURI:he,btou:be,decode:ot,noConflict:it,fromUint8Array:ue,toUint8Array:mt},typeof Object.defineProperty=="function"){var vt=function(wt){return{value:wt,enumerable:!1,writable:!0,configurable:!0}};Ie.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",vt(function(){return ot(this)})),Object.defineProperty(String.prototype,"toBase64",vt(function(wt){return ee(this,wt)})),Object.defineProperty(String.prototype,"toBase64URI",vt(function(){return ee(this,!0)}))}}return Ie.Meteor&&(Base64=Ie.Base64),We.exports?We.exports.Base64=Ie.Base64:(oe=[],Pe=function(){return Ie.Base64}.apply(Ee,oe),Pe!==void 0&&(We.exports=Pe)),{Base64:Ie.Base64}})},2859:function(We,Ee,ae){"use strict";ae.d(Ee,{hP:function(){return ur}});var oe=function(at,_e){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Re,Xe){Re.__proto__=Xe}||function(Re,Xe){for(var st in Xe)Object.prototype.hasOwnProperty.call(Xe,st)&&(Re[st]=Xe[st])})(at,_e)};function Pe(at,_e){function Re(){this.constructor=at}oe(at,_e),at.prototype=_e===null?Object.create(_e):(Re.prototype=_e.prototype,new Re)}function Ie(at,_e,Re,Xe){return new(Re||(Re=Promise))(function(st,Be){function Et(Mn){try{sn(Xe.next(Mn))}catch(Dt){Be(Dt)}}function En(Mn){try{sn(Xe.throw(Mn))}catch(Dt){Be(Dt)}}function sn(Mn){var Dt;Mn.done?st(Mn.value):(Dt=Mn.value,Dt instanceof Re?Dt:new Re(function(_t){_t(Dt)})).then(Et,En)}sn((Xe=Xe.apply(at,_e||[])).next())})}function ke(at,_e){var Re,Xe,st,Be,Et={label:0,sent:function(){if(1&st[0])throw st[1];return st[1]},trys:[],ops:[]};return Be={next:En(0),throw:En(1),return:En(2)},typeof Symbol=="function"&&(Be[Symbol.iterator]=function(){return this}),Be;function En(sn){return function(Mn){return function(Dt){if(Re)throw new TypeError("Generator is already executing.");for(;Et;)try{if(Re=1,Xe&&(st=2&Dt[0]?Xe.return:Dt[0]?Xe.throw||((st=Xe.return)&&st.call(Xe),0):Xe.next)&&!(st=st.call(Xe,Dt[1])).done)return st;switch(Xe=0,st&&(Dt=[2&Dt[0],st.value]),Dt[0]){case 0:case 1:st=Dt;break;case 4:return Et.label++,{value:Dt[1],done:!1};case 5:Et.label++,Xe=Dt[1],Dt=[0];continue;case 7:Dt=Et.ops.pop(),Et.trys.pop();continue;default:if(st=Et.trys,!((st=st.length>0&&st[st.length-1])||Dt[0]!==6&&Dt[0]!==2)){Et=0;continue}if(Dt[0]===3&&(!st||Dt[1]>st[0]&&Dt[1]<st[3])){Et.label=Dt[1];break}if(Dt[0]===6&&Et.label<st[1]){Et.label=st[1],st=Dt;break}if(st&&Et.label<st[2]){Et.label=st[2],Et.ops.push(Dt);break}st[2]&&Et.ops.pop(),Et.trys.pop();continue}Dt=_e.call(at,Et)}catch(_t){Dt=[6,_t],Xe=0}finally{Re=st=0}if(5&Dt[0])throw Dt[1];return{value:Dt[0]?Dt[1]:void 0,done:!0}}([sn,Mn])}}}function Ve(){for(var at=0,_e=0,Re=arguments.length;_e<Re;_e++)at+=arguments[_e].length;var Xe=Array(at),st=0;for(_e=0;_e<Re;_e++)for(var Be=arguments[_e],Et=0,En=Be.length;Et<En;Et++,st++)Xe[st]=Be[Et];return Xe}var Te=function(){function at(){}return at.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},at.setAttributes=function(_e,Re){for(var Xe=0,st=Re;Xe<st.length;Xe++){var Be=st[Xe],Et=Be[0],En=Be[1];_e.setAttribute(Et,En)}},at.createRect=function(_e,Re,Xe){var st=document.createElementNS("http://www.w3.org/2000/svg","rect");return st.setAttribute("width",_e.toString()),st.setAttribute("height",Re.toString()),Xe&&at.setAttributes(st,Xe),st},at.createLine=function(_e,Re,Xe,st,Be){var Et=document.createElementNS("http://www.w3.org/2000/svg","line");return Et.setAttribute("x1",_e.toString()),Et.setAttribute("y1",Re.toString()),Et.setAttribute("x2",Xe.toString()),Et.setAttribute("y2",st.toString()),Be&&at.setAttributes(Et,Be),Et},at.createPolygon=function(_e,Re){var Xe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Xe.setAttribute("points",_e),Re&&at.setAttributes(Xe,Re),Xe},at.createCircle=function(_e,Re){var Xe=document.createElementNS("http://www.w3.org/2000/svg","circle");return Xe.setAttribute("cx",(_e/2).toString()),Xe.setAttribute("cy",(_e/2).toString()),Xe.setAttribute("r",_e.toString()),Re&&at.setAttributes(Xe,Re),Xe},at.createEllipse=function(_e,Re,Xe){var st=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return st.setAttribute("cx",(_e/2).toString()),st.setAttribute("cy",(Re/2).toString()),st.setAttribute("rx",(_e/2).toString()),st.setAttribute("ry",(Re/2).toString()),Xe&&at.setAttributes(st,Xe),st},at.createGroup=function(_e){var Re=document.createElementNS("http://www.w3.org/2000/svg","g");return _e&&at.setAttributes(Re,_e),Re},at.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},at.createMarker=function(_e,Re,Xe,st,Be,Et,En){var sn=document.createElementNS("http://www.w3.org/2000/svg","marker");return at.setAttributes(sn,[["id",_e],["orient",Re],["markerWidth",Xe.toString()],["markerHeight",st.toString()],["refX",Be.toString()],["refY",Et.toString()]]),sn.appendChild(En),sn},at.createText=function(_e){var Re=document.createElementNS("http://www.w3.org/2000/svg","text");return Re.setAttribute("x","0"),Re.setAttribute("y","0"),_e&&at.setAttributes(Re,_e),Re},at.createTSpan=function(_e,Re){var Xe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Xe.textContent=_e,Re&&at.setAttributes(Xe,Re),Xe},at.createImage=function(_e){var Re=document.createElementNS("http://www.w3.org/2000/svg","image");return _e&&at.setAttributes(Re,_e),Re},at.createPoint=function(_e,Re){var Xe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Xe.x=_e,Xe.y=Re,Xe},at.createPath=function(_e,Re){var Xe=document.createElementNS("http://www.w3.org/2000/svg","path");return Xe.setAttribute("d",_e),Re&&at.setAttributes(Xe,Re),Xe},at}(),Ge=function(){function at(){}return at.addKey=function(_e){at.key=_e},Object.defineProperty(at,"isLicensed",{get:function(){return!!at.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(at.key)},enumerable:!1,configurable:!0}),at}(),lt=function(){function at(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return at.prototype.rasterize=function(_e,Re,Xe){var st=this;return new Promise(function(Be){var Et=Xe!==void 0?Xe:document.createElement("canvas");_e===null&&(st.markersOnly=!0,st.naturalSize=!1);var En=document.createElementNS("http://www.w3.org/2000/svg","svg");En.setAttribute("xmlns","http://www.w3.org/2000/svg"),En.setAttribute("width",Re.width.baseVal.valueAsString),En.setAttribute("height",Re.height.baseVal.valueAsString),En.setAttribute("viewBox","0 0 "+Re.viewBox.baseVal.width.toString()+" "+Re.viewBox.baseVal.height.toString()),En.innerHTML=Re.innerHTML,st.naturalSize===!0?(En.width.baseVal.value=_e.naturalWidth,En.height.baseVal.value=_e.naturalHeight):st.width!==void 0&&st.height!==void 0&&(En.width.baseVal.value=st.width,En.height.baseVal.value=st.height),Et.width=En.width.baseVal.value,Et.height=En.height.baseVal.value;var sn=En.outerHTML,Mn=Et.getContext("2d");st.markersOnly!==!0&&Mn.drawImage(_e,0,0,Et.width,Et.height);var Dt=window.URL,_t=new Image(Et.width,Et.height);_t.setAttribute("crossOrigin","anonymous");var jt=new Blob([sn],{type:"image/svg+xml"}),dn=Dt.createObjectURL(jt);_t.onload=function(){Mn.drawImage(_t,0,0),Dt.revokeObjectURL(dn);var Sn=Et.toDataURL(st.imageType,st.imageQuality);Be(Sn)},_t.src=dn})},at}(),Ke=function(){},He=function(){function at(_e){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+_e+"_"}return Object.defineProperty(at.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(at.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(at.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),at.prototype.addClass=function(_e){return this.styleSheet===void 0&&this.addStyleSheet(),_e.name=""+this.classNamePrefix+_e.localName,this.classes.push(_e),this.styleSheet.sheet.insertRule("."+_e.name+" {"+_e.style+"}",this.styleSheet.sheet.cssRules.length),_e},at.prototype.addRule=function(_e){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(_e),this.styleSheet.sheet.insertRule(_e.selector+" {"+_e.style+"}",this.styleSheet.sheet.cssRules.length)},at.prototype.addStyleSheet=function(){var _e;this.styleSheet=document.createElement("style"),((_e=this.styleSheetRoot)!==null&&_e!==void 0?_e:document.head).appendChild(this.styleSheet),this.addRule(new St("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new St("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new St("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new $e("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new $e("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},at.prototype.removeStyleSheet=function(){var _e;this.styleSheet&&(((_e=this.styleSheetRoot)!==null&&_e!==void 0?_e:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},at}(),St=function(at,_e){this.selector=at,this.style=_e},$e=function(at,_e){this.localName=at,this.style=_e},It=function(){function at(_e,Re,Xe,st,Be){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=_e,this.displayMode=Re,this.markerItems=Xe,this.uiStyleSettings=st,this.styles=Be,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return at.prototype.show=function(_e){var Re=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=_e,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Xe=document.createElement("div");Xe.className=this.toolbarBlockStyleClass.name,Xe.style.whiteSpace="nowrap",this.uiContainer.appendChild(Xe),this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(Be){var Et=document.createElement("div");Et.className=""+Re.toolbarButtonStyleClass.name,Et.setAttribute("data-type-name",Be.typeName),Et.innerHTML=Be.icon,Et.addEventListener("click",function(){Re.markerToolbarButtonClicked(Et,Be)}),Re.buttons.push(Et),Re.markerButtons.push(Et)}),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()},at.prototype.addButtonClickListener=function(_e){this.buttonClickListeners.push(_e)},at.prototype.removeButtonClickListener=function(_e){this.buttonClickListeners.indexOf(_e)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(_e),1)},at.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},at.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var _e=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Re=0;Re<this.markerButtons.length;Re++)Re<_e||Re===_e&&this.markerButtons.length-1===_e?this.markerButtonBlock.appendChild(this.markerButtons[Re]):(Re===_e&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[Re]))}},at.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")},at.prototype.resetButtonStyles=function(){var _e=this;this.buttons.forEach(function(Re){Re.className=Re.className.replace(_e.uiStyleSettings.toolbarButtonStyleColorsClassName?_e.uiStyleSettings.toolbarButtonStyleColorsClassName:_e.toolbarButtonStyleColorsClass.name,"").trim(),Re.className=Re.className.replace(_e.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?_e.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:_e.toolbarActiveButtonStyleColorsClass.name,"").trim(),Re.className+=" "+(_e.uiStyleSettings.toolbarButtonStyleColorsClassName?_e.uiStyleSettings.toolbarButtonStyleColorsClassName:_e.toolbarButtonStyleColorsClass.name)})},at.prototype.addActionButton=function(_e,Re,Xe){var st=this,Be=document.createElement("div");switch(Be.className=""+this.toolbarButtonStyleClass.name,Be.innerHTML=Re,Be.setAttribute("data-action",Xe),Be.addEventListener("click",function(){st.actionToolbarButtonClicked(Be,Xe)}),Xe){case"select":Be.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Be.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Be.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Be.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Be.style.fill=this.uiStyleSettings.closeButtonColor}_e.appendChild(Be),this.buttons.push(Be)},at.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new $e("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new $e("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new $e("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new $e("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new $e("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var _e=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new $e("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*_e)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*_e)+`px;
padding: `+_e+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new $e("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new $e("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new St("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new St("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},at.prototype.markerToolbarButtonClicked=function(_e,Re){this.setActiveButton(_e),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Xe){return Xe("marker",Re)}),this.markerButtonOverflowBlock.style.display="none"},at.prototype.actionToolbarButtonClicked=function(_e,Re){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Xe){return Xe("action",Re)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},at.prototype.setActiveButton=function(_e){this.resetButtonStyles(),_e.className=_e.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),_e.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},at.prototype.setActiveMarkerButton=function(_e){var Re=this.markerButtons.find(function(Xe){return Xe.getAttribute("data-type-name")===_e});Re&&this.setActiveButton(Re)},at.prototype.setCurrentMarker=function(_e){var Re=this;this.currentMarker=_e,this.buttons.filter(function(Xe){return/delete|notes/.test(Xe.getAttribute("data-action"))}).forEach(function(Xe){Re.currentMarker===void 0?(Xe.style.fillOpacity="0.4",Xe.style.pointerEvents="none"):(Xe.style.fillOpacity="1",Xe.style.pointerEvents="all")})},at}(),Fe=function(){function at(_e,Re,Xe,st){this.panels=[],this.panelButtons=[],this.markerjsContainer=_e,this.displayMode=Re,this.uiStyleSettings=Xe,this.styles=st,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return at.prototype.addStyles=function(){var _e;this.toolboxStyleClass=this.styles.addClass(new $e("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new $e("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var Re=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new $e("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new $e("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new $e("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new $e("toolbox-panel-row_colors",`
background-color: `+((_e=this.uiStyleSettings.toolboxBackgroundColor)!==null&&_e!==void 0?_e:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new $e("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*Re)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*Re)+`px;
padding: `+Re+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new $e("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new $e("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new St("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new St("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},at.prototype.show=function(_e){var Re;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=_e,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Re=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Re!==void 0?Re:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},at.prototype.setPanelButtons=function(_e){var Re,Xe,st=this;this.panels=_e,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Re=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Re!==void 0?Re:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Xe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Xe!==void 0?Xe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Be){var Et;Be.uiStyleSettings=st.uiStyleSettings;var En=document.createElement("div");En.className=st.toolboxButtonStyleClass.name+" "+((Et=st.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Et!==void 0?Et:st.toolboxButtonStyleColorsClass.name),En.innerHTML=Be.icon,En.title=Be.title,En.addEventListener("click",function(){st.panelButtonClick(Be)}),st.panelButtons.push(En),st.buttonRow.appendChild(En)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},at.prototype.panelButtonClick=function(_e){var Re=this,Xe=-1;if(_e!==this.activePanel){Xe=this.panels.indexOf(_e),this.panelRow.innerHTML="";var st=_e.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=_e}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Re.displayMode==="inline"?Re.panelRow.style.display="none":Re.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Be,Et){var En,sn;Be.className=Re.toolboxButtonStyleClass.name+" "+(Et===Xe?""+((En=Re.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&En!==void 0?En:Re.toolboxActiveButtonStyleColorsClass.name):""+((sn=Re.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&sn!==void 0?sn:Re.toolboxButtonStyleColorsClass.name))})},at}(),te=function(at,_e){this.title=at,this.icon=_e},ee=function(at){function _e(Re,Xe,st,Be){var Et=at.call(this,Re,Be||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return Et.colors=[],Et.addTransparent=!1,Et.colorBoxes=[],Et.colors=Xe,Et.currentColor=st,Et.setCurrentColor=Et.setCurrentColor.bind(Et),Et.getColorBox=Et.getColorBox.bind(Et),Et}return Pe(_e,at),_e.prototype.getUi=function(){var Re=this,Xe=document.createElement("div");return Xe.style.overflow="hidden",Xe.style.whiteSpace="nowrap",this.colors.forEach(function(st){var Be=Re.getColorBox(st);Xe.appendChild(Be),Re.colorBoxes.push(Be)}),Xe},_e.prototype.getColorBox=function(Re){var Xe=this,st=this.uiStyleSettings.toolbarHeight/4,Be=this.uiStyleSettings.toolbarHeight-st,Et=document.createElement("div");Et.style.display="inline-block",Et.style.boxSizing="content-box",Et.style.width=Be-2+"px",Et.style.height=Be-2+"px",Et.style.padding="1px",Et.style.marginRight="2px",Et.style.marginBottom="2px",Et.style.borderWidth="2px",Et.style.borderStyle="solid",Et.style.borderRadius=(Be+2)/2+"px",Et.style.borderColor=Re===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Et.addEventListener("click",function(){Xe.setCurrentColor(Re,Et)});var En=document.createElement("div");return En.style.display="inline-block",En.style.width=Be-2+"px",En.style.height=Be-2+"px",En.style.backgroundColor=Re,En.style.borderRadius=Be/2+"px",Re==="transparent"&&(En.style.fill=this.uiStyleSettings.toolboxAccentColor,En.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>`),Et.appendChild(En),Et},_e.prototype.setCurrentColor=function(Re,Xe){var st=this;this.currentColor=Re,this.colorBoxes.forEach(function(Be){Be.style.borderColor=Be===Xe?st.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Re)},_e}(te),he=function(){function at(_e,Re,Xe){this._state="new",this._isSelected=!1,this._container=_e,this._overlayContainer=Re,this.globalSettings=Xe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(at.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),at.prototype.ownsTarget=function(_e){return!1},Object.defineProperty(at.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),at.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},at.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},at.prototype.pointerDown=function(_e,Re){},at.prototype.dblClick=function(_e,Re){},at.prototype.manipulate=function(_e){},at.prototype.pointerUp=function(_e){this.stateChanged()},at.prototype.dispose=function(){},at.prototype.addMarkerVisualToContainer=function(_e){this.container.childNodes.length>0?this.container.insertBefore(_e,this.container.childNodes[0]):this.container.appendChild(_e)},at.prototype.getState=function(){return{typeName:at.typeName,state:this.state,notes:this.notes}},at.prototype.restoreState=function(_e){this._state=_e.state,this.notes=_e.notes},at.prototype.scale=function(_e,Re){},at.prototype.colorChanged=function(_e){this.onColorChanged&&this.onColorChanged(_e),this.stateChanged()},at.prototype.fillColorChanged=function(_e){this.onFillColorChanged&&this.onFillColorChanged(_e),this.stateChanged()},at.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var _e=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),_e.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(_e)&&this.onStateChanged(this)}},at.typeName="MarkerBase",at}(),ue=function(){function at(){this.findGripByVisual=this.findGripByVisual.bind(this)}return at.prototype.findGripByVisual=function(_e){return this.topLeft.ownsTarget(_e)?this.topLeft:this.topCenter.ownsTarget(_e)?this.topCenter:this.topRight.ownsTarget(_e)?this.topRight:this.centerLeft.ownsTarget(_e)?this.centerLeft:this.centerRight.ownsTarget(_e)?this.centerRight:this.bottomLeft.ownsTarget(_e)?this.bottomLeft:this.bottomCenter.ownsTarget(_e)?this.bottomCenter:this.bottomRight.ownsTarget(_e)?this.bottomRight:void 0},at}(),fe=function(){function at(){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 at.prototype.ownsTarget=function(_e){return _e===this.visual||_e===this.visual.childNodes[0]||_e===this.visual.childNodes[1]},at}(),me=function(){function at(){}return at.toITransformMatrix=function(_e){return{a:_e.a,b:_e.b,c:_e.c,d:_e.d,e:_e.e,f:_e.f}},at.toSVGMatrix=function(_e,Re){return _e.a=Re.a,_e.b=Re.b,_e.c=Re.c,_e.d=Re.d,_e.e=Re.e,_e.f=Re.f,_e},at}(),be=function(at){function _e(Re,Xe,st){var Be=at.call(this,Re,Xe,st)||this;return Be.left=0,Be.top=0,Be.width=0,Be.height=0,Be.defaultSize={x:50,y:20},Be.offsetX=0,Be.offsetY=0,Be.rotationAngle=0,Be.CB_DISTANCE=10,Be._suppressMarkerCreateEvent=!1,Be.container.transform.baseVal.appendItem(Te.createTransform()),Be.setupControlBox(),Be}return Pe(_e,at),Object.defineProperty(_e.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"visual",{get:function(){return this._visual},set:function(Re){this._visual=Re;var Xe=Te.createTransform();this._visual.transform.baseVal.appendItem(Xe)},enumerable:!1,configurable:!0}),_e.prototype.ownsTarget=function(Re){return!!at.prototype.ownsTarget.call(this,Re)||!!(this.controlGrips.findGripByVisual(Re)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Re))},_e.prototype.pointerDown=function(Re,Xe){at.prototype.pointerDown.call(this,Re,Xe),this.state==="new"&&(this.left=Re.x,this.top=Re.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var 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(Xe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Xe)){this.activeGrip=this.rotatorGrip;var Be=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Be.x-this.width/2,this.top=Be.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Et=this.container.transform.baseVal.getItem(0);Et.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Et,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},_e.prototype.pointerUp=function(Re){var Xe=this.state;at.prototype.pointerUp.call(this,Re),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Re),this._state="select",Xe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},_e.prototype.moveVisual=function(Re){this.visual.style.transform="translate("+Re.x+"px, "+Re.y+"px)"},_e.prototype.manipulate=function(Re){var Xe=this.unrotatePoint(Re);this.state==="creating"?this.resize(Re):this.state==="move"?(this.left=this.manipulationStartLeft+(Xe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Xe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Xe):this.state==="rotate"&&this.rotate(Re)},_e.prototype.resize=function(Re){var Xe=this.manipulationStartLeft,st=this.manipulationStartWidth,Be=this.manipulationStartTop,Et=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Xe=this.manipulationStartLeft+Re.x-this.manipulationStartX,st=this.manipulationStartWidth+this.manipulationStartLeft-Xe;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:Be=this.manipulationStartTop+Re.y-this.manipulationStartY,Et=this.manipulationStartHeight+this.manipulationStartTop-Be;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Et=this.manipulationStartHeight+Re.y-this.manipulationStartY}st>=0?(this.left=Xe,this.width=st):(this.left=Xe+st,this.width=-st),Et>=0?(this.top=Be,this.height=Et):(this.top=Be+Et,this.height=-Et),this.setSize()},_e.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},_e.prototype.rotate=function(Re){if(Math.abs(Re.x-this.centerX)>.1){var Xe=Math.sign(Re.x-this.centerX);this.rotationAngle=180*Math.atan((Re.y-this.centerY)/(Re.x-this.centerX))/Math.PI+90*Xe,this.applyRotation()}},_e.prototype.applyRotation=function(){var Re=this.container.transform.baseVal.getItem(0);Re.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Re,0)},_e.prototype.rotatePoint=function(Re){if(this.rotationAngle===0)return Re;var Xe=this.container.getCTM(),st=Te.createPoint(Re.x,Re.y);return{x:(st=st.matrixTransform(Xe)).x,y:st.y}},_e.prototype.unrotatePoint=function(Re){if(this.rotationAngle===0)return Re;var Xe=this.container.getCTM();Xe=Xe.inverse();var st=Te.createPoint(Re.x,Re.y);return{x:(st=st.matrixTransform(Xe)).x,y:st.y}},_e.prototype.select=function(){at.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},_e.prototype.deselect=function(){at.prototype.deselect.call(this),this.controlBox.style.display="none"},_e.prototype.setupControlBox=function(){this.controlBox=Te.createGroup();var Re=Te.createTransform();Re.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Re),this.container.appendChild(this.controlBox),this.controlRect=Te.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=Te.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new ue,this.addControlGrips(),this.controlBox.style.display="none"},_e.prototype.adjustControlBox=function(){var Re=this.controlBox.transform.baseVal.getItem(0);Re.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Re,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},_e.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},_e.prototype.createGrip=function(){var Re=new fe;return Re.visual.transform.baseVal.appendItem(Te.createTransform()),this.controlBox.appendChild(Re.visual),Re},_e.prototype.positionGrips=function(){var Re=this.controlGrips.topLeft.GRIP_SIZE,Xe=-Re/2,st=Xe,Be=(this.width+this.CB_DISTANCE)/2-Re/2,Et=(this.height+this.CB_DISTANCE)/2-Re/2,En=this.height+this.CB_DISTANCE-Re/2,sn=this.width+this.CB_DISTANCE-Re/2;this.positionGrip(this.controlGrips.topLeft.visual,Xe,st),this.positionGrip(this.controlGrips.topCenter.visual,Be,st),this.positionGrip(this.controlGrips.topRight.visual,sn,st),this.positionGrip(this.controlGrips.centerLeft.visual,Xe,Et),this.positionGrip(this.controlGrips.centerRight.visual,sn,Et),this.positionGrip(this.controlGrips.bottomLeft.visual,Xe,En),this.positionGrip(this.controlGrips.bottomCenter.visual,Be,En),this.positionGrip(this.controlGrips.bottomRight.visual,sn,En),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Be,st-3*this.CB_DISTANCE)},_e.prototype.positionGrip=function(Re,Xe,st){var Be=Re.transform.baseVal.getItem(0);Be.setTranslate(Xe,st),Re.transform.baseVal.replaceItem(Be,0)},_e.prototype.hideControlBox=function(){this.controlBox.style.display="none"},_e.prototype.showControlBox=function(){this.controlBox.style.display=""},_e.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:me.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:me.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},at.prototype.getState.call(this))},_e.prototype.restoreState=function(Re){at.prototype.restoreState.call(this,Re);var Xe=Re;this.left=Xe.left,this.top=Xe.top,this.width=Xe.width,this.height=Xe.height,this.rotationAngle=Xe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Xe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Xe.containerTransformMatrix))},_e.prototype.scale=function(Re,Xe){at.prototype.scale.call(this,Re,Xe);var st=this.rotatePoint({x:this.left,y:this.top}),Be=this.unrotatePoint({x:st.x*Re,y:st.y*Xe});this.left=Be.x,this.top=Be.y,this.width=this.width*Re,this.height=this.height*Xe,this.adjustControlBox()},_e}(he),Ae=function(at){function _e(Re,Xe,st){var Be=at.call(this,Re,Xe,st)||this;return Be.fillColor="transparent",Be.strokeColor="transparent",Be.strokeWidth=0,Be.strokeDasharray="",Be.opacity=1,Be.setStrokeColor=Be.setStrokeColor.bind(Be),Be.setFillColor=Be.setFillColor.bind(Be),Be.setStrokeWidth=Be.setStrokeWidth.bind(Be),Be.setStrokeDasharray=Be.setStrokeDasharray.bind(Be),Be.createVisual=Be.createVisual.bind(Be),Be}return Pe(_e,at),_e.prototype.ownsTarget=function(Re){return!(!at.prototype.ownsTarget.call(this,Re)&&Re!==this.visual)},_e.prototype.createVisual=function(){this.visual=Te.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},_e.prototype.pointerDown=function(Re,Xe){at.prototype.pointerDown.call(this,Re,Xe),this.state==="new"&&(this.createVisual(),this.moveVisual(Re),this._state="creating")},_e.prototype.manipulate=function(Re){at.prototype.manipulate.call(this,Re)},_e.prototype.resize=function(Re){at.prototype.resize.call(this,Re),this.setSize()},_e.prototype.setSize=function(){at.prototype.setSize.call(this),Te.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},_e.prototype.pointerUp=function(Re){at.prototype.pointerUp.call(this,Re),this.setSize()},_e.prototype.setStrokeColor=function(Re){this.strokeColor=Re,this.visual&&Te.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Re),this.stateChanged()},_e.prototype.setFillColor=function(Re){this.fillColor=Re,this.visual&&Te.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},_e.prototype.setStrokeWidth=function(Re){this.strokeWidth=Re,this.visual&&Te.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},_e.prototype.setStrokeDasharray=function(Re){this.strokeDasharray=Re,this.visual&&Te.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},_e.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},at.prototype.getState.call(this))},_e.prototype.restoreState=function(Re){var Xe=Re;this.fillColor=Xe.fillColor,this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.opacity=Xe.opacity,this.createVisual(),at.prototype.restoreState.call(this,Re),this.setSize()},_e.prototype.scale=function(Re,Xe){at.prototype.scale.call(this,Re,Xe),this.setSize()},_e.title="Rectangle marker",_e}(be),De=function(at){function _e(Re,Xe,st,Be){var Et=at.call(this,Re,Be||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Et.widths=[],Et.widthBoxes=[],Et.widths=Xe,Et.currentWidth=st,Et.setCurrentWidth=Et.setCurrentWidth.bind(Et),Et}return Pe(_e,at),_e.prototype.getUi=function(){var Re=this,Xe=document.createElement("div");return Xe.style.display="flex",Xe.style.overflow="hidden",Xe.style.flexGrow="2",this.widths.forEach(function(st){var Be=document.createElement("div");Be.style.display="flex",Be.style.flexGrow="2",Be.style.alignItems="center",Be.style.justifyContent="space-between",Be.style.padding="5px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.borderColor=st===Re.currentWidth?Re.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){Re.setCurrentWidth(st,Be)}),Xe.appendChild(Be);var Et=document.createElement("div");Et.innerText=st.toString(),Et.style.marginRight="5px",Be.appendChild(Et);var En=document.createElement("div");En.style.minHeight="20px",En.style.flexGrow="2",En.style.display="flex",En.style.alignItems="center";var sn=document.createElement("hr");sn.style.minWidth="20px",sn.style.border="0px",sn.style.borderTop=st+"px solid "+Re.uiStyleSettings.toolboxColor,sn.style.flexGrow="2",En.appendChild(sn),Be.appendChild(En),Re.widthBoxes.push(Be)}),Xe},_e.prototype.setCurrentWidth=function(Re,Xe){var st=this;this.currentWidth=Re,this.widthBoxes.forEach(function(Be){Be.style.borderColor=Be===Xe?st.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},_e}(te),Ye=function(at){function _e(Re,Xe,st,Be){var Et=at.call(this,Re,Be||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return Et.styles=[],Et.styleBoxes=[],Et.styles=Xe,Et.currentStyle=st,Et.setCurrentStyle=Et.setCurrentStyle.bind(Et),Et}return Pe(_e,at),_e.prototype.getUi=function(){var Re=this,Xe=document.createElement("div");return Xe.style.display="flex",Xe.style.overflow="hidden",Xe.style.flexGrow="2",this.styles.forEach(function(st){var Be=document.createElement("div");Be.style.display="flex",Be.style.alignItems="center",Be.style.justifyContent="space-between",Be.style.padding="5px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.overflow="hidden",Be.style.maxWidth=100/Re.styles.length-5+"%",Be.style.borderColor=st===Re.currentStyle?Re.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){Re.setCurrentStyle(st,Be)}),Xe.appendChild(Be);var Et=document.createElement("div");Et.style.minHeight="20px",Et.style.flexGrow="2",Et.style.overflow="hidden";var En=`<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>`;Et.innerHTML=En,Be.appendChild(Et),Re.styleBoxes.push(Be)}),Xe},_e.prototype.setCurrentStyle=function(Re,Xe){var st=this;this.currentStyle=Re,this.styleBoxes.forEach(function(Be){Be.style.borderColor=Be===Xe?st.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},_e}(te),nt=function(at){function _e(Re,Xe,st){var Be=at.call(this,Re,Xe,st)||this;return Be.strokeColor=st.defaultColor,Be.strokeWidth=st.defaultStrokeWidth,Be.strokeDasharray=st.defaultStrokeDasharray,Be.strokePanel=new ee("Line color",st.defaultColorSet,st.defaultColor),Be.strokePanel.onColorChanged=Be.setStrokeColor,Be.strokeWidthPanel=new De("Line width",st.defaultStrokeWidths,st.defaultStrokeWidth),Be.strokeWidthPanel.onWidthChanged=Be.setStrokeWidth,Be.strokeStylePanel=new Ye("Line style",st.defaultStrokeDasharrays,st.defaultStrokeDasharray),Be.strokeStylePanel.onStyleChanged=Be.setStrokeDasharray,Be}return Pe(_e,at),Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=at.prototype.getState.call(this);return Re.typeName=_e.typeName,Re},_e.typeName="FrameMarker",_e.title="Frame marker",_e.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',_e}(Ae),Je=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},ot=function(at){function _e(Re,Xe,st){var Be=at.call(this,Re,Xe,st)||this;return Be.x1=0,Be.y1=0,Be.x2=0,Be.y2=0,Be.defaultLength=50,Be.manipulationStartX=0,Be.manipulationStartY=0,Be.manipulationStartX1=0,Be.manipulationStartY1=0,Be.manipulationStartX2=0,Be.manipulationStartY2=0,Be.setupControlBox(),Be}return Pe(_e,at),_e.prototype.ownsTarget=function(Re){return!!at.prototype.ownsTarget.call(this,Re)||!(!this.grip1.ownsTarget(Re)&&!this.grip2.ownsTarget(Re))},_e.prototype.pointerDown=function(Re,Xe){at.prototype.pointerDown.call(this,Re,Xe),this.manipulationStartX=Re.x,this.manipulationStartY=Re.y,this.state==="new"&&(this.x1=Re.x,this.y1=Re.y,this.x2=Re.x,this.y2=Re.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(Xe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Xe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},_e.prototype.pointerUp=function(Re){var Xe=this.state;at.prototype.pointerUp.call(this,Re),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(Re),this._state="select",Xe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},_e.prototype.adjustVisual=function(){},_e.prototype.manipulate=function(Re){this.state==="creating"?this.resize(Re):this.state==="move"?(this.x1=this.manipulationStartX1+Re.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Re.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Re.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Re.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Re)},_e.prototype.resize=function(Re){switch(this.activeGrip){case this.grip1:this.x1=Re.x,this.y1=Re.y;break;case this.grip2:case void 0:this.x2=Re.x,this.y2=Re.y}this.adjustVisual(),this.adjustControlBox()},_e.prototype.select=function(){at.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},_e.prototype.deselect=function(){at.prototype.deselect.call(this),this.controlBox.style.display="none"},_e.prototype.setupControlBox=function(){this.controlBox=Te.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},_e.prototype.adjustControlBox=function(){this.positionGrips()},_e.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},_e.prototype.createGrip=function(){var Re=new fe;return Re.visual.transform.baseVal.appendItem(Te.createTransform()),this.controlBox.appendChild(Re.visual),Re},_e.prototype.positionGrips=function(){var Re=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Re/2,this.y1-Re/2),this.positionGrip(this.grip2.visual,this.x2-Re/2,this.y2-Re/2)},_e.prototype.positionGrip=function(Re,Xe,st){var Be=Re.transform.baseVal.getItem(0);Be.setTranslate(Xe,st),Re.transform.baseVal.replaceItem(Be,0)},_e.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},at.prototype.getState.call(this))},_e.prototype.restoreState=function(Re){at.prototype.restoreState.call(this,Re);var Xe=Re;this.x1=Xe.x1,this.y1=Xe.y1,this.x2=Xe.x2,this.y2=Xe.y2},_e.prototype.scale=function(Re,Xe){at.prototype.scale.call(this,Re,Xe),this.x1=this.x1*Re,this.y1=this.y1*Xe,this.x2=this.x2*Re,this.y2=this.y2*Xe,this.adjustVisual(),this.adjustControlBox()},_e}(he),mt=function(at){function _e(Re,Xe,st){var Be=at.call(this,Re,Xe,st)||this;return Be.strokeColor="transparent",Be.strokeWidth=0,Be.strokeDasharray="",Be.setStrokeColor=Be.setStrokeColor.bind(Be),Be.setStrokeWidth=Be.setStrokeWidth.bind(Be),Be.setStrokeDasharray=Be.setStrokeDasharray.bind(Be),Be.strokeColor=st.defaultColor,Be.strokeWidth=st.defaultStrokeWidth,Be.strokeDasharray=st.defaultStrokeDasharray,Be.strokePanel=new ee("Line color",st.defaultColorSet,st.defaultColor),Be.strokePanel.onColorChanged=Be.setStrokeColor,Be.strokeWidthPanel=new De("Line width",st.defaultStrokeWidths,st.defaultStrokeWidth),Be.strokeWidthPanel.onWidthChanged=Be.setStrokeWidth,Be.strokeStylePanel=new Ye("Line style",st.defaultStrokeDasharrays,st.defaultStrokeDasharray),Be.strokeStylePanel.onStyleChanged=Be.setStrokeDasharray,Be}return Pe(_e,at),_e.prototype.ownsTarget=function(Re){return!(!at.prototype.ownsTarget.call(this,Re)&&Re!==this.visual&&Re!==this.selectorLine&&Re!==this.visibleLine)},_e.prototype.createVisual=function(){this.visual=Te.createGroup(),this.selectorLine=Te.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Te.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},_e.prototype.pointerDown=function(Re,Xe){at.prototype.pointerDown.call(this,Re,Xe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},_e.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Te.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Te.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Te.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},_e.prototype.setStrokeColor=function(Re){this.strokeColor=Re,this.adjustVisual(),this.colorChanged(Re)},_e.prototype.setStrokeWidth=function(Re){this.strokeWidth=Re,this.adjustVisual()},_e.prototype.setStrokeDasharray=function(Re){this.strokeDasharray=Re,this.adjustVisual(),this.stateChanged()},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},at.prototype.getState.call(this));return Re.typeName=_e.typeName,Re},_e.prototype.restoreState=function(Re){at.prototype.restoreState.call(this,Re);var Xe=Re;this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.createVisual(),this.adjustVisual()},_e.typeName="LineMarker",_e.title="Line marker",_e.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',_e}(ot),it=function(at){function _e(Re,Xe,st,Be){var Et=at.call(this,Re,Be||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return Et.fonts=[],Et.fontBoxes=[],Et.fonts=Xe,Et.currentFont=st,Et.setCurrentFont=Et.setCurrentFont.bind(Et),Et}return Pe(_e,at),_e.prototype.getUi=function(){var Re=this,Xe=document.createElement("div");return Xe.style.overflow="hidden",Xe.style.flexGrow="2",this.fonts.forEach(function(st){var Be=document.createElement("div");Be.style.display="inline-block",Be.style.alignItems="center",Be.style.justifyContent="space-between",Be.style.padding="5px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.overflow="hidden",Be.style.maxWidth=100/Re.fonts.length-5+"%",Be.style.borderColor=st===Re.currentFont?Re.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){Re.setCurrentFont(st,Be)}),Xe.appendChild(Be);var Et=document.createElement("div");Et.style.display="flex",Et.style.minHeight="20px",Et.style.flexGrow="2",Et.style.fontFamily=st,Et.style.overflow="hidden";var En=document.createElement("div");En.style.whiteSpace="nowrap",En.style.overflow="hidden",En.style.textOverflow="ellipsis",En.innerHTML="The quick brown fox jumps over the lazy dog",Et.appendChild(En),Be.appendChild(Et),Re.fontBoxes.push(Be)}),Xe},_e.prototype.setCurrentFont=function(Re,Xe){var st=this;this.currentFont=Re,this.fontBoxes.forEach(function(Be){Be.style.borderColor=Be===Xe?st.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},_e}(te),vt=function(at){function _e(Re,Xe,st){var Be=at.call(this,Re,Xe,st)||this;return Be.color="transparent",Be.padding=5,Be.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Be.text=Be.DEFAULT_TEXT,Be.isMoved=!1,Be.color=st.defaultColor,Be.fontFamily=st.defaultFontFamily,Be.defaultSize={x:100,y:30},Be.setColor=Be.setColor.bind(Be),Be.setFont=Be.setFont.bind(Be),Be.renderText=Be.renderText.bind(Be),Be.sizeText=Be.sizeText.bind(Be),Be.textEditDivClicked=Be.textEditDivClicked.bind(Be),Be.showTextEditor=Be.showTextEditor.bind(Be),Be.setSize=Be.setSize.bind(Be),Be.positionTextEditor=Be.positionTextEditor.bind(Be),Be.colorPanel=new ee("Color",st.defaultColorSet,st.defaultColor),Be.colorPanel.onColorChanged=Be.setColor,Be.fontFamilyPanel=new it("Font",st.defaultFontFamilies,st.defaultFontFamily),Be.fontFamilyPanel.onFontChanged=Be.setFont,Be}return Pe(_e,at),_e.prototype.ownsTarget=function(Re){if(at.prototype.ownsTarget.call(this,Re)||Re===this.visual||Re===this.textElement||Re===this.bgRectangle)return!0;var Xe=!1;return this.textElement.childNodes.forEach(function(st){st===Re&&(Xe=!0)}),Xe},_e.prototype.createVisual=function(){this.visual=Te.createGroup(),this.bgRectangle=Te.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Te.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Te.createTransform()),this.textElement.transform.baseVal.appendItem(Te.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},_e.prototype.pointerDown=function(Re,Xe){at.prototype.pointerDown.call(this,Re,Xe),this.isMoved=!1,this.pointerDownPoint=Re,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Re),this._state="creating")},_e.prototype.renderText=function(){var Re=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(Xe){Re.textElement.appendChild(Te.createTSpan(Xe.trim()===""?" ":Xe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},_e.prototype.getTextScale=function(){var Re=this.textElement.getBBox(),Xe=1;if(Re.width>0&&Re.height>0){var st=(1*this.width-this.width*this.padding*2/100)/Re.width,Be=(1*this.height-this.height*this.padding*2/100)/Re.height;Xe=Math.min(st,Be)}return Xe},_e.prototype.getTextPosition=function(Re){var Xe=this.textElement.getBBox(),st=0,Be=0;return Xe.width>0&&Xe.height>0&&(st=(this.width-Xe.width*Re)/2,Be=this.height/2-Xe.height*Re/2),{x:st,y:Be}},_e.prototype.sizeText=function(){var Re=this.textElement.getBBox(),Xe=this.getTextScale(),st=this.getTextPosition(Xe);st.y-=Re.y*Xe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+st.x+"px, "+st.y+"px) scale("+Xe+", "+Xe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(st.x,st.y),this.textElement.transform.baseVal.getItem(1).setScale(Xe,Xe))},_e.prototype.manipulate=function(Re){at.prototype.manipulate.call(this,Re),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Re.x-this.pointerDownPoint.x)>5||Math.abs(Re.y-this.pointerDownPoint.y)>5)},_e.prototype.resize=function(Re){at.prototype.resize.call(this,Re),this.isMoved=!0,this.setSize(),this.sizeText()},_e.prototype.setSize=function(){at.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Te.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Te.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},_e.prototype.pointerUp=function(Re){var Xe=this.state;Xe==="creating"&&(this._suppressMarkerCreateEvent=!0),at.prototype.pointerUp.call(this,Re),this.setSize(),(Xe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},_e.prototype.showTextEditor=function(){var Re=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(Xe){Xe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Xe=Number.parseFloat(Re.textEditor.style.fontSize);Re.textEditor.clientWidth>=Number.parseInt(Re.textEditor.style.maxWidth)&&Xe>.9;)Xe-=.1,Re.textEditor.style.fontSize=Math.max(Xe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Xe){Xe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Xe){if(Xe.clipboardData){var st=Xe.clipboardData.getData("text"),Be=window.getSelection();if(!Be.rangeCount)return!1;Be.deleteFromDocument(),Be.getRangeAt(0).insertNode(document.createTextNode(st)),Xe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Re.textEditDivClicked(Re.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},_e.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Re=this.getTextScale(),Xe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),st=this.textElement.getBBox(),Be={x:st.width*Re,y:st.height*Re};Xe.x-=Be.x/2,Xe.y-=Be.y/2,this.textEditor.style.top=Xe.y+"px",this.textEditor.style.left=Xe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Xe.x+"px",this.textEditor.style.fontSize=Math.max(16*Re,12)+"px",this.textElement.style.display="none"}},_e.prototype.textEditDivClicked=function(Re){this.text=Re.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},_e.prototype.select=function(){at.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},_e.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),at.prototype.deselect.call(this)},_e.prototype.dblClick=function(Re,Xe){at.prototype.dblClick.call(this,Re,Xe),this.showTextEditor()},_e.prototype.setColor=function(Re){this.textElement&&Te.setAttributes(this.textElement,[["fill",Re]]),this.color=Re,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Re)},_e.prototype.setFont=function(Re){this.textElement&&Te.setAttributes(this.textElement,[["font-family",Re]]),this.fontFamily=Re,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},_e.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},_e.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},at.prototype.getState.call(this));return Re.typeName=_e.typeName,Re},_e.prototype.restoreState=function(Re){var Xe=Re;this.color=Xe.color,this.fontFamily=Xe.fontFamily,this.padding=Xe.padding,this.text=Xe.text,this.createVisual(),at.prototype.restoreState.call(this,Re),this.setSize()},_e.prototype.scale=function(Re,Xe){at.prototype.scale.call(this,Re,Xe),this.setSize(),this.sizeText(),this.positionTextEditor()},_e.typeName="TextMarker",_e.title="Text marker",_e.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',_e}(be),wt=function(at){function _e(Re,Xe,st){var Be=at.call(this,Re,Xe,st)||this;return Be.color="transparent",Be.lineWidth=3,Be.drawing=!1,Be.pixelRatio=1,Be.color=st.defaultColor,Be.lineWidth=st.defaultStrokeWidth,Be.pixelRatio=st.freehandPixelRatio,Be.setColor=Be.setColor.bind(Be),Be.addCanvas=Be.addCanvas.bind(Be),Be.finishCreation=Be.finishCreation.bind(Be),Be.setLineWidth=Be.setLineWidth.bind(Be),Be.colorPanel=new ee("Color",st.defaultColorSet,st.defaultColor),Be.colorPanel.onColorChanged=Be.setColor,Be.lineWidthPanel=new De("Line width",st.defaultStrokeWidths,st.defaultStrokeWidth),Be.lineWidthPanel.onWidthChanged=Be.setLineWidth,Be}return Pe(_e,at),_e.prototype.ownsTarget=function(Re){return!(!at.prototype.ownsTarget.call(this,Re)&&Re!==this.visual&&Re!==this.drawingImage)},_e.prototype.createVisual=function(){this.visual=Te.createGroup(),this.drawingImage=Te.createImage(),this.visual.appendChild(this.drawingImage);var Re=Te.createTransform();this.visual.transform.baseVal.appendItem(Re),this.addMarkerVisualToContainer(this.visual)},_e.prototype.pointerDown=function(Re,Xe){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(Re.x,Re.y),this.drawing=!0):at.prototype.pointerDown.call(this,Re,Xe)},_e.prototype.manipulate=function(Re){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Re.x,Re.y),this.canvasContext.stroke()):at.prototype.manipulate.call(this,Re)},_e.prototype.resize=function(Re){at.prototype.resize.call(this,Re),Te.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Te.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},_e.prototype.pointerUp=function(Re){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):at.prototype.pointerUp.call(this,Re)},_e.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},_e.prototype.select=function(){this.state==="creating"&&this.finishCreation(),at.prototype.select.call(this)},_e.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),at.prototype.deselect.call(this)},_e.prototype.finishCreation=function(){for(var Re=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Xe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],st=Xe[0],Be=Xe[1],Et=Xe[2],En=Xe[3],sn=!1,Mn=0;Mn<this.canvasElement.height;Mn++)for(var Dt=0;Dt<this.canvasElement.width;Dt++)Re.data[Mn*this.canvasElement.width*4+4*Dt+3]>0&&(sn=!0,Mn<Be&&(Be=Mn),Dt<st&&(st=Dt),Mn>En&&(En=Mn),Dt>Et&&(Et=Dt));if(sn){this.left=st/this.pixelRatio,this.top=Be/this.pixelRatio,this.width=(Et-st)/this.pixelRatio,this.height=(En-Be)/this.pixelRatio;var _t=document.createElement("canvas");_t.width=Et-st,_t.height=En-Be,_t.getContext("2d").putImageData(this.canvasContext.getImageData(st,Be,Et-st,En-Be),0,0),this.drawingImgUrl=_t.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},_e.prototype.setDrawingImage=function(){Te.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Te.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},_e.prototype.setColor=function(Re){this.color=Re,this.colorChanged(Re)},_e.prototype.setLineWidth=function(Re){this.lineWidth=Re},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=Object.assign({drawingImgUrl:this.drawingImgUrl},at.prototype.getState.call(this));return Re.typeName=_e.typeName,Re},_e.prototype.restoreState=function(Re){this.createVisual(),at.prototype.restoreState.call(this,Re),this.drawingImgUrl=Re.drawingImgUrl,this.setDrawingImage()},_e.prototype.scale=function(Re,Xe){at.prototype.scale.call(this,Re,Xe),this.setDrawingImage()},_e.typeName="FreehandMarker",_e.title="Freehand marker",_e.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',_e}(be),Nt=function(at){function _e(Re,Xe,st){var Be=at.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 Be.typeBoxes=[],Be.currentType=Xe,Be.setCurrentType=Be.setCurrentType.bind(Be),Be}return Pe(_e,at),_e.prototype.getUi=function(){var Re=this,Xe=document.createElement("div");Xe.style.display="flex",Xe.style.overflow="hidden",Xe.style.flexGrow="2";for(var st=function(En){var sn="both";switch(En){case 0:sn="both";break;case 1:sn="start";break;case 2:sn="end";break;case 3:sn="none"}var Mn=document.createElement("div");if(Mn.style.display="flex",Mn.style.flexGrow="2",Mn.style.alignItems="center",Mn.style.justifyContent="space-between",Mn.style.padding="5px",Mn.style.borderWidth="2px",Mn.style.borderStyle="solid",Mn.style.borderColor=sn===Be.currentType?Be.uiStyleSettings.toolboxAccentColor:"transparent",Mn.addEventListener("click",function(){Re.setCurrentType(sn,Mn)}),Xe.appendChild(Mn),sn==="both"||sn==="start"){var Dt=document.createElement("div");Dt.style.display="flex",Dt.style.alignItems="center",Dt.style.minHeight="20px",Dt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(Be.uiStyleSettings!==void 0?Be.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Dt.style.marginLeft="5px",Mn.appendChild(Dt)}var _t=document.createElement("div");_t.style.display="flex",_t.style.alignItems="center",_t.style.minHeight="20px",_t.style.flexGrow="2";var jt=document.createElement("hr");if(jt.style.minWidth="20px",jt.style.border="0px",jt.style.borderTop="3px solid "+(Be.uiStyleSettings!==void 0?Be.uiStyleSettings.toolboxColor:"#eeeeee"),jt.style.flexGrow="2",_t.appendChild(jt),Mn.appendChild(_t),sn==="both"||sn==="end"){var dn=document.createElement("div");dn.style.display="flex",dn.style.alignItems="center",dn.style.minHeight="20px",dn.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(Be.uiStyleSettings!==void 0?Be.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,dn.style.marginRight="5px",Mn.appendChild(dn)}Be.typeBoxes.push(Mn)},Be=this,Et=0;Et<4;Et++)st(Et);return Xe},_e.prototype.setCurrentType=function(Re,Xe){var st=this;this.currentType=Re,this.typeBoxes.forEach(function(Be){Be.style.borderColor=Be===Xe?st.uiStyleSettings!==void 0?st.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},_e}(te),Ht=function(at){function _e(Re,Xe,st){var Be=at.call(this,Re,Xe,st)||this;return Be.arrowType="end",Be.arrowBaseHeight=10,Be.arrowBaseWidth=10,Be.getArrowPoints=Be.getArrowPoints.bind(Be),Be.setArrowType=Be.setArrowType.bind(Be),Be.arrowTypePanel=new Nt("Arrow type","end"),Be.arrowTypePanel.onArrowTypeChanged=Be.setArrowType,Be}return Pe(_e,at),_e.prototype.ownsTarget=function(Re){return!(!at.prototype.ownsTarget.call(this,Re)&&Re!==this.arrow1&&Re!==this.arrow2)},_e.prototype.getArrowPoints=function(Re,Xe){var st=this.arrowBaseWidth+2*this.strokeWidth,Be=this.arrowBaseHeight+2*this.strokeWidth;return Re-st/2+","+(Xe+Be/2)+" "+Re+","+(Xe-Be/2)+" "+(Re+st/2)+","+(Xe+Be/2)},_e.prototype.createTips=function(){this.arrow1=Te.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Te.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Te.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Te.createTransform()),this.visual.appendChild(this.arrow2)},_e.prototype.pointerDown=function(Re,Xe){at.prototype.pointerDown.call(this,Re,Xe),this.state==="creating"&&this.createTips()},_e.prototype.adjustVisual=function(){if(at.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",Te.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Te.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var Re=0;Math.abs(this.x1-this.x2)>.1&&(Re=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Xe=this.arrow1.transform.baseVal.getItem(0);Xe.setRotate(Re,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Xe,0);var st=this.arrow2.transform.baseVal.getItem(0);st.setRotate(Re+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(st,0)}},_e.prototype.setArrowType=function(Re){this.arrowType=Re,this.adjustVisual(),this.stateChanged()},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=Object.assign({arrowType:this.arrowType},at.prototype.getState.call(this));return Re.typeName=_e.typeName,Re},_e.prototype.restoreState=function(Re){at.prototype.restoreState.call(this,Re);var Xe=Re;this.arrowType=Xe.arrowType,this.createTips(),this.adjustVisual()},_e.typeName="ArrowMarker",_e.title="Arrow marker",_e.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',_e}(mt),Qt=function(at){function _e(Re,Xe,st){var Be=at.call(this,Re,Xe,st)||this;return Be.fillColor=st.defaultFillColor,Be.strokeWidth=0,Be.fillPanel=new ee("Color",st.defaultColorSet,st.defaultFillColor),Be.fillPanel.onColorChanged=Be.setFillColor,Be}return Pe(_e,at),Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=at.prototype.getState.call(this);return Re.typeName=_e.typeName,Re},_e.typeName="CoverMarker",_e.title="Cover marker",_e.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',_e}(Ae),Yt=function(at){function _e(Re,Xe,st,Be){var Et=at.call(this,Re,Be||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return Et.opacities=[],Et.opacityBoxes=[],Et.opacities=Xe,Et.currentOpacity=st,Et.setCurrentOpacity=Et.setCurrentOpacity.bind(Et),Et}return Pe(_e,at),_e.prototype.getUi=function(){var Re=this,Xe=document.createElement("div");return Xe.style.display="flex",Xe.style.overflow="hidden",Xe.style.flexGrow="2",Xe.style.justifyContent="space-between",this.opacities.forEach(function(st){var Be=document.createElement("div");Be.style.display="flex",Be.style.alignItems="center",Be.style.justifyContent="center",Be.style.padding="5px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.borderColor=st===Re.currentOpacity?Re.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){Re.setCurrentOpacity(st,Be)}),Xe.appendChild(Be);var Et=document.createElement("div");Et.innerText=100*st+"%",Be.appendChild(Et),Re.opacityBoxes.push(Be)}),Xe},_e.prototype.setCurrentOpacity=function(Re,Xe){var st=this;this.currentOpacity=Re,this.opacityBoxes.forEach(function(Be){Be.style.borderColor=Be===Xe?st.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},_e}(te),yn=function(at){function _e(Re,Xe,st){var Be=at.call(this,Re,Xe,st)||this;return Be.setOpacity=Be.setOpacity.bind(Be),Be.fillColor=st.defaultHighlightColor,Be.strokeWidth=0,Be.opacity=st.defaultHighlightOpacity,Be.fillPanel=new ee("Color",st.defaultColorSet,Be.fillColor),Be.fillPanel.onColorChanged=Be.setFillColor,Be.opacityPanel=new Yt("Opacity",st.defaultOpacitySteps,Be.opacity),Be.opacityPanel.onOpacityChanged=Be.setOpacity,Be}return Pe(_e,at),_e.prototype.setOpacity=function(Re){this.opacity=Re,this.visual&&Te.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=at.prototype.getState.call(this);return Re.typeName=_e.typeName,Re},_e.typeName="HighlightMarker",_e.title="Highlight marker",_e.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',_e}(Qt),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(at){function _e(Re,Xe,st){var Be=at.call(this,Re,Xe,st)||this;return Be.bgColor="transparent",Be.tipPosition={x:0,y:0},Be.tipBase1Position={x:0,y:0},Be.tipBase2Position={x:0,y:0},Be.tipMoving=!1,Be.color=st.defaultStrokeColor,Be.bgColor=st.defaultFillColor,Be.fontFamily=st.defaultFontFamily,Be.defaultSize={x:100,y:30},Be.setBgColor=Be.setBgColor.bind(Be),Be.getTipPoints=Be.getTipPoints.bind(Be),Be.positionTip=Be.positionTip.bind(Be),Be.setTipPoints=Be.setTipPoints.bind(Be),Be.colorPanel=new ee("Text color",st.defaultColorSet,Be.color,bt),Be.colorPanel.onColorChanged=Be.setColor,Be.bgColorPanel=new ee("Fill color",st.defaultColorSet,Be.bgColor,ft),Be.bgColorPanel.onColorChanged=Be.setBgColor,Be.fontFamilyPanel=new it("Font",st.defaultFontFamilies,st.defaultFontFamily),Be.fontFamilyPanel.onFontChanged=Be.setFont,Be.tipGrip=new fe,Be.tipGrip.visual.transform.baseVal.appendItem(Te.createTransform()),Be.controlBox.appendChild(Be.tipGrip.visual),Be}return Pe(_e,at),_e.prototype.ownsTarget=function(Re){return at.prototype.ownsTarget.call(this,Re)||this.tipGrip.ownsTarget(Re)||this.tip===Re},_e.prototype.createTip=function(){Te.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Te.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},_e.prototype.pointerDown=function(Re,Xe){this.state==="new"&&at.prototype.pointerDown.call(this,Re,Xe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Xe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):at.prototype.pointerDown.call(this,Re,Xe)},_e.prototype.pointerUp=function(Re){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,at.prototype.pointerUp.call(this,Re);else{var Xe=this.state==="creating";at.prototype.pointerUp.call(this,Re),this.setTipPoints(Xe),this.positionTip()}},_e.prototype.manipulate=function(Re){if(this.tipMoving){var Xe=this.unrotatePoint(Re);this.tipPosition={x:Xe.x-this.manipulationStartLeft,y:Xe.y-this.manipulationStartTop},this.positionTip()}else at.prototype.manipulate.call(this,Re)},_e.prototype.setBgColor=function(Re){this.bgRectangle&&this.tip&&(Te.setAttributes(this.bgRectangle,[["fill",Re]]),Te.setAttributes(this.tip,[["fill",Re]])),this.bgColor=Re,this.fillColorChanged(Re)},_e.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},_e.prototype.setTipPoints=function(Re){Re===void 0&&(Re=!1);var Xe=Math.min(this.height/2,15),st=this.height/5;Re&&(this.tipPosition={x:Xe+st/2,y:this.height+20});var Be=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Be<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(st=this.width/5,Xe=Math.min(this.width/2,15),this.tipBase1Position={x:Xe,y:0},this.tipBase2Position={x:Xe+st,y:0}):(this.tipBase1Position={x:0,y:Xe},this.tipBase2Position={x:0,y:Xe+st}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Be<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(st=this.width/5,Xe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Xe-st,y:0},this.tipBase2Position={x:this.width-Xe,y:0}):(this.tipBase1Position={x:this.width,y:Xe},this.tipBase2Position={x:this.width,y:Xe+st}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Be<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(st=this.width/5,Xe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Xe-st,y:this.height},this.tipBase2Position={x:this.width-Xe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Xe-st},this.tipBase2Position={x:this.width,y:this.height-Xe}):Be<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(st=this.width/5,Xe=Math.min(this.width/2,15),this.tipBase1Position={x:Xe,y:this.height},this.tipBase2Position={x:Xe+st,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Xe},this.tipBase2Position={x:0,y:this.height-Xe-st})},_e.prototype.resize=function(Re){at.prototype.resize.call(this,Re),this.positionTip()},_e.prototype.positionTip=function(){Te.setAttributes(this.tip,[["points",this.getTipPoints()]]);var Re=this.tipGrip.visual.transform.baseVal.getItem(0);Re.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(Re,0)},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),_e.prototype.select=function(){this.positionTip(),at.prototype.select.call(this)},_e.prototype.getState=function(){var Re=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},at.prototype.getState.call(this));return Re.typeName=_e.typeName,Re},_e.prototype.restoreState=function(Re){var Xe=Re;this.bgColor=Xe.bgColor,this.tipPosition=Xe.tipPosition,at.prototype.restoreState.call(this,Re),this.createTip(),this.setTipPoints()},_e.prototype.scale=function(Re,Xe){at.prototype.scale.call(this,Re,Xe),this.tipPosition={x:this.tipPosition.x*Re,y:this.tipPosition.y*Xe},this.positionTip()},_e.typeName="CalloutMarker",_e.title="Callout marker",_e.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',_e}(vt),Jt=function(at){function _e(Re,Xe,st){var Be=at.call(this,Re,Xe,st)||this;return Be.fillColor="transparent",Be.strokeColor="transparent",Be.strokeWidth=0,Be.strokeDasharray="",Be.opacity=1,Be.strokeColor=st.defaultColor,Be.strokeWidth=st.defaultStrokeWidth,Be.strokeDasharray=st.defaultStrokeDasharray,Be.fillColor=st.defaultFillColor,Be.setStrokeColor=Be.setStrokeColor.bind(Be),Be.setFillColor=Be.setFillColor.bind(Be),Be.setStrokeWidth=Be.setStrokeWidth.bind(Be),Be.setStrokeDasharray=Be.setStrokeDasharray.bind(Be),Be.setOpacity=Be.setOpacity.bind(Be),Be.createVisual=Be.createVisual.bind(Be),Be.strokePanel=new ee("Line color",Ve(st.defaultColorSet,["transparent"]),st.defaultColor),Be.strokePanel.onColorChanged=Be.setStrokeColor,Be.fillPanel=new ee("Fill color",Ve(st.defaultColorSet,["transparent"]),Be.fillColor,ft),Be.fillPanel.onColorChanged=Be.setFillColor,Be.strokeWidthPanel=new De("Line width",st.defaultStrokeWidths,st.defaultStrokeWidth),Be.strokeWidthPanel.onWidthChanged=Be.setStrokeWidth,Be.strokeStylePanel=new Ye("Line style",st.defaultStrokeDasharrays,st.defaultStrokeDasharray),Be.strokeStylePanel.onStyleChanged=Be.setStrokeDasharray,Be.opacityPanel=new Yt("Opacity",st.defaultOpacitySteps,Be.opacity),Be.opacityPanel.onOpacityChanged=Be.setOpacity,Be}return Pe(_e,at),_e.prototype.ownsTarget=function(Re){return!(!at.prototype.ownsTarget.call(this,Re)&&Re!==this.visual)},_e.prototype.createVisual=function(){this.visual=Te.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},_e.prototype.pointerDown=function(Re,Xe){at.prototype.pointerDown.call(this,Re,Xe),this.state==="new"&&(this.createVisual(),this.moveVisual(Re),this._state="creating")},_e.prototype.manipulate=function(Re){at.prototype.manipulate.call(this,Re)},_e.prototype.resize=function(Re){at.prototype.resize.call(this,Re),this.setSize()},_e.prototype.setSize=function(){at.prototype.setSize.call(this),Te.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},_e.prototype.pointerUp=function(Re){at.prototype.pointerUp.call(this,Re),this.setSize()},_e.prototype.setStrokeColor=function(Re){this.strokeColor=Re,this.visual&&Te.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Re),this.stateChanged()},_e.prototype.setFillColor=function(Re){this.fillColor=Re,this.visual&&Te.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Re),this.stateChanged()},_e.prototype.setStrokeWidth=function(Re){this.strokeWidth=Re,this.visual&&Te.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},_e.prototype.setStrokeDasharray=function(Re){this.strokeDasharray=Re,this.visual&&Te.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},_e.prototype.setOpacity=function(Re){this.opacity=Re,this.visual&&Te.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},at.prototype.getState.call(this));return Re.typeName=_e.typeName,Re},_e.prototype.restoreState=function(Re){var Xe=Re;this.fillColor=Xe.fillColor,this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.opacity=Xe.opacity,this.createVisual(),at.prototype.restoreState.call(this,Re),this.setSize()},_e.prototype.scale=function(Re,Xe){at.prototype.scale.call(this,Re,Xe),this.setSize()},_e.typeName="EllipseMarker",_e.title="Ellipse marker",_e.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',_e}(be),fn=function(at){function _e(Re,Xe,st){return at.call(this,Re,Xe,st)||this}return Pe(_e,at),Object.defineProperty(_e.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),_e.prototype.ownsTarget=function(Re){return!(!at.prototype.ownsTarget.call(this,Re)&&Re!==this.tip1&&Re!==this.tip2)},_e.prototype.createTips=function(){this.tip1=Te.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(Te.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Te.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(Te.createTransform()),this.visual.appendChild(this.tip2)},_e.prototype.pointerDown=function(Re,Xe){at.prototype.pointerDown.call(this,Re,Xe),this.state==="creating"&&this.createTips()},_e.prototype.adjustVisual=function(){if(at.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Te.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Te.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var Re=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Xe=this.tip1.transform.baseVal.getItem(0);Xe.setRotate(Re,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Xe,0);var st=this.tip2.transform.baseVal.getItem(0);st.setRotate(Re+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(st,0)}},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=at.prototype.getState.call(this);return Re.typeName=_e.typeName,Re},_e.prototype.restoreState=function(Re){at.prototype.restoreState.call(this,Re),this.createTips(),this.adjustVisual()},_e.typeName="MeasurementMarker",_e.title="Measurement marker",_e.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',_e}(mt),kt=function(at){function _e(Re,Xe,st){var Be=at.call(this,Re,Xe,st)||this;return Be.strokePanel.colors=st.defaultColorSet,Be.fillColor="transparent",Be}return Pe(_e,at),Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=at.prototype.getState.call(this);return Re.typeName=_e.typeName,Re},_e.typeName="EllipseFrameMarker",_e.title="Ellipse frame marker",_e.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',_e}(Jt),bn=function(){function at(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(at.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),at.prototype.addUndoStep=function(_e){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(_e)||(this.undoStack.push(_e),JSON.stringify(this.lastRedoStep)!==JSON.stringify(_e)&&this.redoStack.splice(0,this.redoStack.length))},at.prototype.replaceLastUndoStep=function(_e){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=_e)},at.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},at.prototype.undo=function(){if(this.undoStack.length>1){var _e=this.undoStack.pop();return _e!==void 0&&this.redoStack.push(_e),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},at.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},at}(),An=function(at){function _e(Re,Xe,st){var Be=at.call(this,Re,Xe,st)||this;return Be.strokeColor="transparent",Be.strokeWidth=0,Be.strokeDasharray="",Be.curveX=0,Be.curveY=0,Be.manipulationStartCurveX=0,Be.manipulationStartCurveY=0,Be.setStrokeColor=Be.setStrokeColor.bind(Be),Be.setStrokeWidth=Be.setStrokeWidth.bind(Be),Be.setStrokeDasharray=Be.setStrokeDasharray.bind(Be),Be.positionGrips=Be.positionGrips.bind(Be),Be.addControlGrips=Be.addControlGrips.bind(Be),Be.adjustVisual=Be.adjustVisual.bind(Be),Be.setupControlBox=Be.setupControlBox.bind(Be),Be.resize=Be.resize.bind(Be),Be.strokeColor=st.defaultColor,Be.strokeWidth=st.defaultStrokeWidth,Be.strokeDasharray=st.defaultStrokeDasharray,Be.strokePanel=new ee("Line color",st.defaultColorSet,st.defaultColor),Be.strokePanel.onColorChanged=Be.setStrokeColor,Be.strokeWidthPanel=new De("Line width",st.defaultStrokeWidths,st.defaultStrokeWidth),Be.strokeWidthPanel.onWidthChanged=Be.setStrokeWidth,Be.strokeStylePanel=new Ye("Line style",st.defaultStrokeDasharrays,st.defaultStrokeDasharray),Be.strokeStylePanel.onStyleChanged=Be.setStrokeDasharray,Be}return Pe(_e,at),_e.prototype.ownsTarget=function(Re){return!(!at.prototype.ownsTarget.call(this,Re)&&Re!==this.visual&&Re!==this.selectorCurve&&Re!==this.visibleCurve&&!this.curveGrip.ownsTarget(Re))},_e.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},_e.prototype.createVisual=function(){this.visual=Te.createGroup(),this.selectorCurve=Te.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Te.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},_e.prototype.pointerDown=function(Re,Xe){at.prototype.pointerDown.call(this,Re,Xe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Re.x,this.curveY=Re.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Xe)&&(this.activeGrip=this.curveGrip,this._state="resize")},_e.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Te.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Te.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Te.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},_e.prototype.setupControlBox=function(){at.prototype.setupControlBox.call(this),this.curveControlLine1=Te.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Te.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},_e.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,at.prototype.addControlGrips.call(this)},_e.prototype.positionGrips=function(){at.prototype.positionGrips.call(this);var Re=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Re/2,this.curveY-Re/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},_e.prototype.manipulate=function(Re){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Re.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Re.y-this.manipulationStartY),at.prototype.manipulate.call(this,Re)},_e.prototype.resize=function(Re){this.activeGrip===this.curveGrip&&(this.curveX=Re.x,this.curveY=Re.y),at.prototype.resize.call(this,Re),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},_e.prototype.setStrokeColor=function(Re){this.strokeColor=Re,this.adjustVisual(),this.colorChanged(Re)},_e.prototype.setStrokeWidth=function(Re){this.strokeWidth=Re,this.adjustVisual()},_e.prototype.setStrokeDasharray=function(Re){this.strokeDasharray=Re,this.adjustVisual()},_e.prototype.scale=function(Re,Xe){this.curveX=this.curveX*Re,this.curveY=this.curveY*Xe,at.prototype.scale.call(this,Re,Xe)},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},at.prototype.getState.call(this));return Re.typeName=_e.typeName,Re},_e.prototype.restoreState=function(Re){at.prototype.restoreState.call(this,Re);var Xe=Re;this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.curveX=Xe.curveX,this.curveY=Xe.curveY,this.createVisual(),this.adjustVisual()},_e.typeName="CurveMarker",_e.title="Curve marker",_e.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',_e}(ot),Yn=function(at){function _e(Re,Xe,st){var Be=at.call(this,Re,Xe,st)||this;return Be.fillColor="transparent",Be.strokeColor="transparent",Be.strokeWidth=0,Be.strokeDasharray="",Be.textColor="transparent",Be.fontSize="1rem",Be.isMoved=!1,Be.captionText="Caption",Be.PADDING=5,Be.captionBoxWidth=0,Be.captionBoxHeight=0,Be.strokeColor=st.defaultColor,Be.strokeWidth=st.defaultStrokeWidth,Be.strokeDasharray=st.defaultStrokeDasharray,Be.fillColor=st.defaultFillColor,Be.textColor=st.defaultStrokeColor,Be.fontFamily=st.defaultFontFamily,Be.fontSize=st.defaultCaptionFontSize,Be.captionText=st.defaultCaptionText,Be.setStrokeColor=Be.setStrokeColor.bind(Be),Be.setFillColor=Be.setFillColor.bind(Be),Be.setStrokeWidth=Be.setStrokeWidth.bind(Be),Be.setStrokeDasharray=Be.setStrokeDasharray.bind(Be),Be.createVisual=Be.createVisual.bind(Be),Be.sizeCaption=Be.sizeCaption.bind(Be),Be.setCaptionText=Be.setCaptionText.bind(Be),Be.showTextEditor=Be.showTextEditor.bind(Be),Be.positionTextEditor=Be.positionTextEditor.bind(Be),Be.finishTextEditing=Be.finishTextEditing.bind(Be),Be.setFont=Be.setFont.bind(Be),Be.setTextColor=Be.setTextColor.bind(Be),Be.strokePanel=new ee("Line color",Ve(st.defaultColorSet,["transparent"]),Be.strokeColor),Be.strokePanel.onColorChanged=Be.setStrokeColor,Be.fillPanel=new ee("Fill color",Ve(st.defaultColorSet,["transparent"]),Be.fillColor,ft),Be.fillPanel.onColorChanged=Be.setFillColor,Be.strokeWidthPanel=new De("Line width",st.defaultStrokeWidths,st.defaultStrokeWidth),Be.strokeWidthPanel.onWidthChanged=Be.setStrokeWidth,Be.strokeStylePanel=new Ye("Line style",st.defaultStrokeDasharrays,st.defaultStrokeDasharray),Be.strokeStylePanel.onStyleChanged=Be.setStrokeDasharray,Be.fontFamilyPanel=new it("Font",st.defaultFontFamilies,st.defaultFontFamily),Be.fontFamilyPanel.onFontChanged=Be.setFont,Be.textColorPanel=new ee("Text color",st.defaultColorSet,Be.textColor,bt),Be.textColorPanel.onColorChanged=Be.setTextColor,Be}return Pe(_e,at),_e.prototype.ownsTarget=function(Re){return!(!at.prototype.ownsTarget.call(this,Re)&&Re!==this.visual&&Re!==this.frame&&Re!==this.captionBg&&Re!==this.captionElement)},_e.prototype.createVisual=function(){this.visual=Te.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Te.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Te.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=Te.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},_e.prototype.setCaptionText=function(Re){this.captionText=Re,this.captionElement.textContent=this.captionText,this.sizeCaption()},_e.prototype.pointerDown=function(Re,Xe){at.prototype.pointerDown.call(this,Re,Xe),this.isMoved=!1,this.pointerDownPoint=Re,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Re),this._state="creating")},_e.prototype.manipulate=function(Re){at.prototype.manipulate.call(this,Re),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Re.x-this.pointerDownPoint.x)>5||Math.abs(Re.y-this.pointerDownPoint.y)>5)},_e.prototype.resize=function(Re){at.prototype.resize.call(this,Re),this.setSize()},_e.prototype.sizeCaption=function(){var Re=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=Re.width+2*this.PADDING,this.captionBoxHeight=Re.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Te.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),Te.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},_e.prototype.showTextEditor=function(){var Re=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(Xe){Xe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Xe){Xe.key==="Enter"&&Re.finishTextEditing(Re.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Xe){Xe.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){Re.finishTextEditing(Re.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){Re.finishTextEditing(Re.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},_e.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},_e.prototype.finishTextEditing=function(Re){this.setCaptionText(Re.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},_e.prototype.setFont=function(Re){this.captionElement&&Te.setAttributes(this.captionElement,[["font-family",Re]]),this.fontFamily=Re,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},_e.prototype.setTextColor=function(Re){this.captionElement&&Te.setAttributes(this.captionElement,[["fill",Re]]),this.textColor=Re,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},_e.prototype.setSize=function(){at.prototype.setSize.call(this),Te.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},_e.prototype.pointerUp=function(Re){at.prototype.pointerUp.call(this,Re),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},_e.prototype.dblClick=function(Re,Xe){at.prototype.dblClick.call(this,Re,Xe),this.showTextEditor()},_e.prototype.setStrokeColor=function(Re){this.strokeColor=Re,this.frame&&Te.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Re),this.stateChanged()},_e.prototype.setFillColor=function(Re){this.fillColor=Re,this.captionBg&&Te.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Re),this.stateChanged()},_e.prototype.setStrokeWidth=function(Re){this.strokeWidth=Re,this.frame&&Te.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},_e.prototype.setStrokeDasharray=function(Re){this.strokeDasharray=Re,this.frame&&Te.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},at.prototype.getState.call(this));return Re.typeName=this.typeName,Re},_e.prototype.restoreState=function(Re){var Xe=Re;this.fillColor=Xe.fillColor,this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.textColor=Xe.textColor,this.fontFamily=Xe.fontFamily,this.captionText=Xe.captionText,this.fontSize=Xe.fontSize,this.createVisual(),at.prototype.restoreState.call(this,Re),this.setSize()},_e.prototype.scale=function(Re,Xe){at.prototype.scale.call(this,Re,Xe),this.setSize()},_e.typeName="CaptionFrameMarker",_e.title="Caption frame marker",_e.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',_e}(be),Vt=function(){function at(_e,Re){Re===void 0&&(Re=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=_e,this.cancelable=Re}return Object.defineProperty(at.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),at.prototype.preventDefault=function(){this._defaultPrevented=!0},at}(),Bn=function(at){function _e(Re,Xe,st){var Be=at.call(this,Re,!1)||this;return Be.dataUrl=Xe,Be.state=st,Be}return Pe(_e,at),_e}(Vt),Mt=function(at){function _e(Re,Xe,st){st===void 0&&(st=!1);var Be=at.call(this,Re,st)||this;return Be.marker=Xe,Be}return Pe(_e,at),_e}(Vt),Hn=function(){function at(){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 at.prototype.addEventListener=function(_e,Re){this[_e].push(Re)},at.prototype.removeEventListener=function(_e,Re){var Xe=this[_e].indexOf(Re);Xe>-1&&this[_e].splice(Xe,1)},at}(),ur=function(){function at(_e){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Je,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 Hn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=at.instanceCounter++,this.styles=new He(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=_e,this.targetRoot=document.body,this.width=_e.clientWidth,this.height=_e.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(at.prototype,"ALL_MARKER_TYPES",{get:function(){return[nt,wt,Ht,vt,kt,Jt,yn,ct,fn,Qt,mt,An,Yn]},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[nt,wt,Ht,vt,Jt,yn,ct]},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"BASIC_MARKER_TYPES",{get:function(){return[nt,wt,Ht,vt,yn]},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(_e){var Re=this;this._availableMarkerTypes.splice(0),_e.forEach(function(Xe){if(typeof Xe=="string"){var st=Re.ALL_MARKER_TYPES.find(function(Be){return Be.typeName===Xe});st!==void 0&&Re._availableMarkerTypes.push(st)}else Re._availableMarkerTypes.push(Xe)})},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(_e){this._zoomLevel=_e,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),at.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},at.prototype.show=function(){var _e=this;this.styles.styleSheetRoot===void 0&&Ke.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ke.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Re){return Re(new Vt(_e))})},at.prototype.render=function(){return Ie(this,void 0,void 0,function(){var _e;return ke(this,function(Re){switch(Re.label){case 0:return this.setCurrentMarker(),(_e=new lt).naturalSize=this.renderAtNaturalSize,_e.imageType=this.renderImageType,_e.imageQuality=this.renderImageQuality,_e.markersOnly=this.renderMarkersOnly,_e.width=this.renderWidth,_e.height=this.renderHeight,[4,_e.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Re.sent(),[4,_e.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Re.sent()]}})})},at.prototype.close=function(_e){var Re=this;if(_e===void 0&&(_e=!1),this.isOpen){var Xe=!1;_e||this.eventListeners.beforeclose.forEach(function(st){var Be=new Vt(Re,!0);st(Be),Be.defaultPrevented&&(Xe=!0)}),Xe||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(st){return st(new Vt(Re))}),this.detachEvents(),this._isOpen=!1)}},at.prototype.addMarkersToToolbar=function(){for(var _e,Re=[],Xe=0;Xe<arguments.length;Xe++)Re[Xe]=arguments[Xe];(_e=this._availableMarkerTypes).push.apply(_e,Re)},at.prototype.addRenderEventListener=function(_e){this.addEventListener("render",function(Re){_e(Re.dataUrl,Re.state)})},at.prototype.removeRenderEventListener=function(_e){},at.prototype.addCloseEventListener=function(_e){this.addEventListener("close",function(){_e()})},at.prototype.removeCloseEventListener=function(_e){},at.prototype.setupResizeObserver=function(){var _e=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){_e.resize(_e.target.clientWidth,_e.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return _e.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},at.prototype.onPopupTargetResize=function(){var _e=1*this.target.clientWidth/this.target.clientHeight,Re=this.editorCanvas.clientWidth/_e>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*_e:this.editorCanvas.clientWidth,Xe=Re<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/_e;this.resize(Re,Xe)},at.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},at.prototype.resize=function(_e,Re){this._isResizing=!0;var Xe=_e/this.imageWidth,st=Re/this.imageHeight;this.imageWidth=Math.round(_e),this.imageHeight=Math.round(Re),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(Xe,st),this._isResizing=!1},at.prototype.scaleMarkers=function(_e,Re){var Xe,st=this;this._currentMarker&&this._currentMarker instanceof vt?this._currentMarker.scale(_e,Re):(Xe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Be){Be!==st._currentMarker&&Be.scale(_e,Re)}),Xe!==void 0&&this.setCurrentMarker(Xe)},at.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"},at.prototype.setTopLeft=function(){var _e=this.editingTarget.getBoundingClientRect(),Re=this.editorCanvas.getBoundingClientRect();this.left=_e.left-Re.left,this.top=_e.top-Re.top},at.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)},at.prototype.addDefs=function(){for(var _e,Re=[],Xe=0;Xe<arguments.length;Xe++)Re[Xe]=arguments[Xe];this.defs=Te.createDefs(),this.addDefsToImage(),(_e=this.defs).append.apply(_e,Re)},at.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},at.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)},at.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},at.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},at.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)},at.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},at.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)},at.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var _e=document.createElement("a");_e.href="https://markerjs.com/",_e.target="_blank",_e.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',_e.title="Powered by marker.js",_e.style.display="grid",_e.style.alignItems="center",_e.style.justifyItems="center",_e.style.padding="3px",_e.style.width="20px",_e.style.height="20px",this.logoUI.appendChild(_e),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},at.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")},at.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"},at.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},at.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var _e=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=_e+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new 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 Fe(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},at.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},at.prototype.removeMarker=function(_e){this.markerImage.removeChild(_e.container),this.markers.indexOf(_e)>-1&&this.markers.splice(this.markers.indexOf(_e),1),_e.dispose()},at.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())},at.prototype.toolbarButtonClicked=function(_e,Re){if(_e==="marker"&&Re!==void 0)this.createNewMarker(Re);else if(_e==="action")switch(Re){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},at.prototype.deleteSelectedMarker=function(){var _e=this;if(this._currentMarker!==void 0){var Re=!1;if(this.eventListeners.markerbeforedelete.forEach(function(st){var Be=new Mt(_e,_e._currentMarker,!0);st(Be),Be.defaultPrevented&&(Re=!0)}),!Re){var Xe=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(st){return st(new Mt(_e,Xe))})}}},at.prototype.clear=function(){var _e=this,Re=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Et){var En=new Mt(_e,void 0,!0);Et(En),En.defaultPrevented&&(Re=!0)}),!Re)){this.setCurrentMarker();for(var Xe=function(Et){var En=st.markers[Et];st.setCurrentMarker(st.markers[Et]),st._currentMarker.dispose(),st.markerImage.removeChild(st._currentMarker.container),st.markers.splice(st.markers.indexOf(st._currentMarker),1),st.eventListeners.markerdelete.forEach(function(sn){return sn(new Mt(_e,En))})},st=this,Be=this.markers.length-1;Be>=0;Be--)Xe(Be);this.addUndoStep()}},Object.defineProperty(at.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),at.prototype.showNotesEditor=function(){var _e;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(_e=this._currentMarker.notes)!==null&&_e!==void 0?_e:"",this.overlayContainer.appendChild(this.notesArea))},at.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)},at.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},at.prototype.addUndoStep=function(){var _e=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Re=this.getState(),Xe=this.undoRedoManager.getLastUndoStep();if(!Xe||Xe.width===Re.width&&Xe.height===Re.height){var st=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Re),st<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Be){return Be(new Vt(_e))})}else this.undoRedoManager.replaceLastUndoStep(Re),this.eventListeners.statechange.forEach(function(Be){return Be(new Vt(_e))})}},at.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},at.prototype.undoStep=function(){var _e=this,Re=this.undoRedoManager.undo();Re!==void 0&&(this.restoreState(Re),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Xe){return Xe(new Vt(_e))}))},at.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},at.prototype.redoStep=function(){var _e=this,Re=this.undoRedoManager.redo();Re!==void 0&&(this.restoreState(Re),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Xe){return Xe(new Vt(_e))}))},at.prototype.stepZoom=function(){var _e=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=_e<this.zoomSteps.length-1?this.zoomSteps[_e+1]:this.zoomSteps[0]},at.prototype.panTo=function(_e){this.contentDiv.scrollBy({left:this.prevPanPoint.x-_e.x,top:this.prevPanPoint.y-_e.y}),this.prevPanPoint=_e},at.prototype.startRenderAndClose=function(){return Ie(this,void 0,void 0,function(){var _e,Re,Xe=this;return ke(this,function(st){switch(st.label){case 0:return[4,this.render()];case 1:return _e=st.sent(),Re=this.getState(),this.eventListeners.render.forEach(function(Be){return Be(new Bn(Xe,_e,Re))}),this.close(!0),[2]}})})},at.prototype.getState=function(_e){_e===!0&&this.setCurrentMarker();var Re={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Xe){return Re.markers.push(Xe.getState())}),Re},at.prototype.restoreState=function(_e){var Re=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);_e.markers.forEach(function(Xe){var st=Re._availableMarkerTypes.find(function(Et){return Et.typeName===Xe.typeName});if(st!==void 0){var Be=Re.addNewMarker(st);Be.restoreState(Xe),Re.markers.push(Be)}}),_e.width&&_e.height&&(_e.width!==this.imageWidth||_e.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/_e.width,this.imageHeight/_e.height),this.eventListeners.restorestate.forEach(function(Xe){return Xe(new Vt(Re))})},at.prototype.addNewMarker=function(_e){var Re=Te.createGroup();return this.markerImage.appendChild(Re),new _e(Re,this.overlayContainer,this.settings)},at.prototype.createNewMarker=function(_e){var Re,Xe=this;(Re=typeof _e=="string"?this._availableMarkerTypes.find(function(st){return st.typeName===_e}):_e)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(Re),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(Re.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(st){return st(new Mt(Xe,Xe._currentMarker))}))},at.prototype.markerCreated=function(_e){var Re=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(_e),this.setCurrentMarker(_e),_e instanceof wt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(wt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Xe){return Xe(new Mt(Re,Re._currentMarker))})},at.prototype.colorChanged=function(_e){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=_e,this.settings.defaultStrokeColor=_e)},at.prototype.fillColorChanged=function(_e){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=_e)},at.prototype.markerStateChanged=function(_e){var Re=this;this.eventListeners.markerchange.forEach(function(Xe){return Xe(new Mt(Re,_e))})},at.prototype.setCurrentMarker=function(_e){var Re=this;this._currentMarker!==_e&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Xe){return Xe(new Mt(Re,Re._currentMarker))})),this._currentMarker=_e,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(Xe){return Xe(new Mt(Re,Re._currentMarker))}))},at.prototype.onPointerDown=function(_e){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||_e.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var Re=this.markers.find(function(Xe){return Xe.ownsTarget(_e.target)});Re!==void 0?(this.setCurrentMarker(Re),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(_e.clientX,_e.clientY),_e.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:_e.clientX,y:_e.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(_e.clientX,_e.clientY))},at.prototype.onDblClick=function(_e){if(this._isFocused||this.focus(),this.mode==="select"){var Re=this.markers.find(function(Xe){return Xe.ownsTarget(_e.target)});Re!==void 0&&Re!==this._currentMarker&&this.setCurrentMarker(Re),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(_e.clientX,_e.clientY),_e.target):this.setCurrentMarker()}},at.prototype.onPointerMove=function(_e){this.touchPoints!==1&&_e.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||_e.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(_e.clientX,_e.clientY)):this.zoomLevel>1&&this.panTo({x:_e.clientX,y:_e.clientY}))},at.prototype.onPointerUp=function(_e){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(_e.clientX,_e.clientY)),this.isDragging=!1,this.addUndoStep()},at.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},at.prototype.onKeyUp=function(_e){this._currentMarker===void 0||this.notesArea!==void 0||_e.key!=="Delete"&&_e.key!=="Backspace"||this.deleteSelectedMarker()},at.prototype.clientToLocalCoordinates=function(_e,Re){var Xe=this.markerImage.getBoundingClientRect();return{x:(_e-Xe.left)/this.zoomLevel,y:(Re-Xe.top)/this.zoomLevel}},at.prototype.onWindowResize=function(){this.positionUI()},at.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var _e=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=_e+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},at.prototype.addLicenseKey=function(_e){Ge.addKey(_e)},at.prototype.addEventListener=function(_e,Re){this.eventListeners.addEventListener(_e,Re)},at.prototype.removeEventListener=function(_e,Re){this.eventListeners.removeEventListener(_e,Re)},at.prototype.renderState=function(_e){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(_e),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(at.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),at.prototype.focus=function(){var _e=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Re){return Re(new Vt(_e))}))},at.prototype.blur=function(){var _e=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Re){return Re(new Vt(_e))}))},at.instanceCounter=0,at}()},67842:function(We){"use strict";var Ee,ae=59;We.exports=oe;function oe(Pe){var Ie="&"+Pe+";",ke;return Ee=Ee||document.createElement("i"),Ee.innerHTML=Ie,ke=Ee.textContent,ke.charCodeAt(ke.length-1)===ae&&Pe!=="semi"||ke===Ie?!1:ke}},12256:function(We,Ee,ae){"use strict";var oe=ae(47854),Pe=ae(80501),Ie=ae(22347),ke=ae(65207),Ve=ae(21127),Te=ae(67842);We.exports=yn;var Ge={}.hasOwnProperty,lt=String.fromCharCode,Ke=Function.prototype,He={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},St=9,$e=10,It=12,Fe=32,te=38,ee=59,he=60,ue=61,fe=35,me=88,be=120,Ae=65533,De="named",Ye="hexadecimal",nt="decimal",Je={};Je[Ye]=16,Je[nt]=10;var ot={};ot[De]=Ve,ot[nt]=Ie,ot[Ye]=ke;var mt=1,it=2,vt=3,wt=4,Nt=5,Ht=6,Qt=7,Yt={};Yt[mt]="Named character references must be terminated by a semicolon",Yt[it]="Numeric character references must be terminated by a semicolon",Yt[vt]="Named character references cannot be empty",Yt[wt]="Numeric character references cannot be empty",Yt[Nt]="Named character references must be known",Yt[Ht]="Numeric character references cannot be disallowed",Yt[Qt]="Numeric character references cannot be outside the permissible Unicode range";function yn(Jt,fn){var kt={},bn,An;fn||(fn={});for(An in He)bn=fn[An],kt[An]=bn==null?He[An]:bn;return(kt.position.indent||kt.position.start)&&(kt.indent=kt.position.indent||[],kt.position=kt.position.start),bt(Jt,kt)}function bt(Jt,fn){var kt=fn.additional,bn=fn.nonTerminated,An=fn.text,Yn=fn.reference,Vt=fn.warning,Bn=fn.textContext,Mt=fn.referenceContext,Hn=fn.warningContext,ur=fn.position,at=fn.indent||[],_e=Jt.length,Re=0,Xe=-1,st=ur.column||1,Be=ur.line||1,Et="",En=[],sn,Mn,Dt,_t,jt,dn,Sn,gn,Ot,Pn,Zt,tn,vn,$n,mn,gt,Xn,ir,nn;for(typeof kt=="string"&&(kt=kt.charCodeAt(0)),gt=vr(),gn=Vt?$r:Ke,Re--,_e++;++Re<_e;)if(jt===$e&&(st=at[Xe]||1),jt=Jt.charCodeAt(Re),jt===te){if(Sn=Jt.charCodeAt(Re+1),Sn===St||Sn===$e||Sn===It||Sn===Fe||Sn===te||Sn===he||Sn!==Sn||kt&&Sn===kt){Et+=lt(jt),st++;continue}for(vn=Re+1,tn=vn,nn=vn,Sn===fe?(nn=++tn,Sn=Jt.charCodeAt(nn),Sn===me||Sn===be?($n=Ye,nn=++tn):$n=nt):$n=De,sn="",Zt="",_t="",mn=ot[$n],nn--;++nn<_e&&(Sn=Jt.charCodeAt(nn),!!mn(Sn));)_t+=lt(Sn),$n===De&&Ge.call(oe,_t)&&(sn=_t,Zt=oe[_t]);Dt=Jt.charCodeAt(nn)===ee,Dt&&(nn++,Mn=$n===De?Te(_t):!1,Mn&&(sn=_t,Zt=Mn)),ir=1+nn-vn,!Dt&&!bn||(_t?$n===De?(Dt&&!Zt?gn(Nt,1):(sn!==_t&&(nn=tn+sn.length,ir=1+nn-tn,Dt=!1),Dt||(Ot=sn?mt:vt,fn.attribute?(Sn=Jt.charCodeAt(nn),Sn===ue?(gn(Ot,ir),Zt=null):Ve(Sn)?Zt=null:gn(Ot,ir)):gn(Ot,ir))),dn=Zt):(Dt||gn(it,ir),dn=parseInt(_t,Je[$n]),ft(dn)?(gn(Qt,ir),dn=lt(Ae)):dn in Pe?(gn(Ht,ir),dn=Pe[dn]):(Pn="",ct(dn)&&gn(Ht,ir),dn>65535&&(dn-=65536,Pn+=lt(dn>>>10|55296),dn=56320|dn&1023),dn=Pn+lt(dn))):$n!==De&&gn(wt,ir)),dn?(Lr(),gt=vr(),Re=nn-1,st+=nn-vn+1,En.push(dn),Xn=vr(),Xn.offset++,Yn&&Yn.call(Mt,dn,{start:gt,end:Xn},Jt.slice(vn-1,nn)),gt=Xn):(_t=Jt.slice(vn-1,nn),Et+=_t,st+=_t.length,Re=nn-1)}else jt===10&&(Be++,Xe++,st=0),jt===jt?(Et+=lt(jt),st++):Lr();return En.join("");function vr(){return{line:Be,column:st,offset:Re+(ur.offset||0)}}function $r(Rn,ei){var Jr=vr();Jr.column+=ei,Jr.offset+=ei,Vt.call(Hn,Yt[Rn],Jr,Rn)}function Lr(){Et&&(En.push(Et),An&&An.call(Bn,Et,{start:gt,end:vr()}),Et="")}}function ft(Jt){return Jt>=55296&&Jt<=57343||Jt>1114111}function ct(Jt){return Jt>=1&&Jt<=8||Jt===11||Jt>=13&&Jt<=31||Jt>=127&&Jt<=159||Jt>=64976&&Jt<=65007||(Jt&65535)===65535||(Jt&65535)===65534}},68398:function(We,Ee,ae){var oe=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};var Pe=function(Ie){var ke=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,Ve=0,Te={},Ge={manual:Ie.Prism&&Ie.Prism.manual,disableWorkerMessageHandler:Ie.Prism&&Ie.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:++Ve}),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,nt){be[nt]=ue(Ye,me)}),be);default:return fe}},getLanguage:function(ue){for(;ue;){var fe=ke.exec(ue.className);if(fe)return fe[1].toLowerCase();ue=ue.parentElement}return"none"},setLanguage:function(ue,fe){ue.className=ue.className.replace(RegExp(ke,"gi"),""),ue.classList.add("language-"+fe)},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(be){var ue=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(be.stack)||[])[1];if(ue){var fe=document.getElementsByTagName("script");for(var me in fe)if(fe[me].src==ue)return fe[me]}return null}},isActive:function(ue,fe,me){for(var be="no-"+fe;ue;){var Ae=ue.classList;if(Ae.contains(fe))return!0;if(Ae.contains(be))return!1;ue=ue.parentElement}return!!me}},languages:{plain:Te,plaintext:Te,text:Te,txt:Te,extend:function(ue,fe){var me=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 nt in me)me.hasOwnProperty(nt)&&(De[nt]=me[nt]);me.hasOwnProperty(Ye)||(De[Ye]=Ae[Ye])}var Je=be[ue];return be[ue]=De,Ge.languages.DFS(Ge.languages,function(ot,mt){mt===Je&&ot!=ue&&(this[ot]=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 nt=fe[Ye],Je=Ge.util.type(nt);Je==="Object"&&!Ae[De(nt)]?(Ae[De(nt)]=!0,ue(nt,me,null,Ae)):Je==="Array"&&!Ae[De(nt)]&&(Ae[De(nt)]=!0,ue(nt,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,nt={element:ue,language:be,grammar:Ae,code:Ye};function Je(mt){nt.highlightedCode=mt,Ge.hooks.run("before-insert",nt),nt.element.innerHTML=nt.highlightedCode,Ge.hooks.run("after-highlight",nt),Ge.hooks.run("complete",nt),me&&me.call(nt.element)}if(Ge.hooks.run("before-sanity-check",nt),De=nt.element.parentElement,De&&De.nodeName.toLowerCase()==="pre"&&!De.hasAttribute("tabindex")&&De.setAttribute("tabindex","0"),!nt.code){Ge.hooks.run("complete",nt),me&&me.call(nt.element);return}if(Ge.hooks.run("before-highlight",nt),!nt.grammar){Je(Ge.util.encode(nt.code));return}if(fe&&Ie.Worker){var ot=new Worker(Ge.filename);ot.onmessage=function(mt){Je(mt.data)},ot.postMessage(JSON.stringify({language:nt.language,code:nt.code,immediateClose:!0}))}else Je(Ge.highlight(nt.code,nt.grammar,nt.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 St;return $e(Ae,Ae.head,ue),He(ue,Ae,fe,Ae.head,0),Fe(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};Ie.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(Je){be+=ue(Je,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 nt in Ae.attributes)Ye+=" "+nt+'="'+(Ae.attributes[nt]||"").replace(/"/g,"&quot;")+'"';return"<"+Ae.tag+' class="'+Ae.classes.join(" ")+'"'+Ye+">"+Ae.content+"</"+Ae.tag+">"};function Ke(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 He(ue,fe,me,be,Ae,De){for(var Ye in me)if(!(!me.hasOwnProperty(Ye)||!me[Ye])){var nt=me[Ye];nt=Array.isArray(nt)?nt:[nt];for(var Je=0;Je<nt.length;++Je){if(De&&De.cause==Ye+","+Je)return;var ot=nt[Je],mt=ot.inside,it=!!ot.lookbehind,vt=!!ot.greedy,wt=ot.alias;if(vt&&!ot.pattern.global){var Nt=ot.pattern.toString().match(/[imsuy]*$/)[0];ot.pattern=RegExp(ot.pattern.source,Nt+"g")}for(var Ht=ot.pattern||ot,Qt=be.next,Yt=Ae;Qt!==fe.tail&&!(De&&Yt>=De.reach);Yt+=Qt.value.length,Qt=Qt.next){var yn=Qt.value;if(fe.length>ue.length)return;if(!(yn instanceof lt)){var bt=1,ft;if(vt){if(ft=Ke(Ht,Yt,ue,it),!ft||ft.index>=ue.length)break;var kt=ft.index,ct=ft.index+ft[0].length,Jt=Yt;for(Jt+=Qt.value.length;kt>=Jt;)Qt=Qt.next,Jt+=Qt.value.length;if(Jt-=Qt.value.length,Yt=Jt,Qt.value instanceof lt)continue;for(var fn=Qt;fn!==fe.tail&&(Jt<ct||typeof fn.value=="string");fn=fn.next)bt++,Jt+=fn.value.length;bt--,yn=ue.slice(Yt,Jt),ft.index-=Yt}else if(ft=Ke(Ht,0,yn,it),!ft)continue;var kt=ft.index,bn=ft[0],An=yn.slice(0,kt),Yn=yn.slice(kt+bn.length),Vt=Yt+yn.length;De&&Vt>De.reach&&(De.reach=Vt);var Bn=Qt.prev;An&&(Bn=$e(fe,Bn,An),Yt+=An.length),It(fe,Bn,bt);var Mt=new lt(Ye,mt?Ge.tokenize(bn,mt):bn,wt,bn);if(Qt=$e(fe,Bn,Mt),Yn&&$e(fe,Qt,Yn),bt>1){var Hn={cause:Ye+","+Je,reach:Vt};He(ue,fe,me,Qt.prev,Yt,Hn),De&&Hn.reach>De.reach&&(De.reach=Hn.reach)}}}}}}function St(){var ue={value:null,prev:null,next:null},fe={value:null,prev:ue,next:null};ue.next=fe,this.head=ue,this.tail=fe,this.length=0}function $e(ue,fe,me){var be=fe.next,Ae={value:me,prev:fe,next:be};return fe.next=Ae,be.prev=Ae,ue.length++,Ae}function 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 Fe(ue){for(var fe=[],me=ue.head.next;me!==ue.tail;)fe.push(me.value),me=me.next;return fe}if(!Ie.document)return Ie.addEventListener&&(Ge.disableWorkerMessageHandler||Ie.addEventListener("message",function(ue){var fe=JSON.parse(ue.data),me=fe.language,be=fe.code,Ae=fe.immediateClose;Ie.postMessage(Ge.highlight(be,Ge.languages[me],me)),Ae&&Ie.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);We.exports&&(We.exports=Pe),typeof ae.g!="undefined"&&(ae.g.Prism=Pe)},88914:function(We,Ee,ae){"use strict";var oe=ae(47178),Pe=ae(19095),Ie=ae(1969),ke="data";We.exports=lt;var Ve=/^data[-\w.:]+$/i,Te=/-[a-z]/g,Ge=/[A-Z]/g;function lt(It,Fe){var te=oe(Fe),ee=Fe,he=Ie;return te in It.normal?It.property[It.normal[te]]:(te.length>4&&te.slice(0,4)===ke&&Ve.test(Fe)&&(Fe.charAt(4)==="-"?ee=Ke(Fe):Fe=He(Fe),he=Pe),new he(ee,Fe))}function Ke(It){var Fe=It.slice(5).replace(Te,$e);return ke+Fe.charAt(0).toUpperCase()+Fe.slice(1)}function He(It){var Fe=It.slice(4);return Te.test(Fe)?It:(Fe=Fe.replace(Ge,St),Fe.charAt(0)!=="-"&&(Fe="-"+Fe),ke+Fe)}function St(It){return"-"+It.toLowerCase()}function $e(It){return It.charAt(1).toUpperCase()}},18795:function(We,Ee,ae){"use strict";var oe=ae(83576),Pe=ae(8179),Ie=ae(59780),ke=ae(68244),Ve=ae(20019),Te=ae(38567);We.exports=oe([Ie,Pe,ke,Ve,Te])},20019:function(We,Ee,ae){"use strict";var oe=ae(70167),Pe=ae(79318),Ie=oe.booleanish,ke=oe.number,Ve=oe.spaceSeparated;We.exports=Pe({transform:Te,properties:{ariaActiveDescendant:null,ariaAtomic:Ie,ariaAutoComplete:null,ariaBusy:Ie,ariaChecked:Ie,ariaColCount:ke,ariaColIndex:ke,ariaColSpan:ke,ariaControls:Ve,ariaCurrent:null,ariaDescribedBy:Ve,ariaDetails:null,ariaDisabled:Ie,ariaDropEffect:Ve,ariaErrorMessage:null,ariaExpanded:Ie,ariaFlowTo:Ve,ariaGrabbed:Ie,ariaHasPopup:null,ariaHidden:Ie,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ve,ariaLevel:ke,ariaLive:null,ariaModal:Ie,ariaMultiLine:Ie,ariaMultiSelectable:Ie,ariaOrientation:null,ariaOwns:Ve,ariaPlaceholder:null,ariaPosInSet:ke,ariaPressed:Ie,ariaReadOnly:Ie,ariaRelevant:null,ariaRequired:Ie,ariaRoleDescription:Ve,ariaRowCount:ke,ariaRowIndex:ke,ariaRowSpan:ke,ariaSelected:Ie,ariaSetSize:ke,ariaSort:null,ariaValueMax:ke,ariaValueMin:ke,ariaValueNow:ke,ariaValueText:null,role:null}});function Te(Ge,lt){return lt==="role"?lt:"aria-"+lt.slice(4).toLowerCase()}},38567:function(We,Ee,ae){"use strict";var oe=ae(70167),Pe=ae(79318),Ie=ae(85804),ke=oe.boolean,Ve=oe.overloadedBoolean,Te=oe.booleanish,Ge=oe.number,lt=oe.spaceSeparated,Ke=oe.commaSeparated;We.exports=Pe({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ie,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ke,acceptCharset:lt,accessKey:lt,action:null,allow:null,allowFullScreen:ke,allowPaymentRequest:ke,allowUserMedia:ke,alt:null,as:null,async:ke,autoCapitalize:null,autoComplete:lt,autoFocus:ke,autoPlay:ke,capture:ke,charSet:null,checked:ke,cite:null,className:lt,cols:Ge,colSpan:null,content:null,contentEditable:Te,controls:ke,controlsList:lt,coords:Ge|Ke,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ke,defer:ke,dir:null,dirName:null,disabled:ke,download:Ve,draggable:Te,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ke,formTarget:null,headers:lt,height:Ge,hidden:ke,high:Ge,href:null,hrefLang:null,htmlFor:lt,httpEquiv:lt,id:null,imageSizes:null,imageSrcSet:Ke,inputMode:null,integrity:null,is:null,isMap:ke,itemId:null,itemProp:lt,itemRef:lt,itemScope:ke,itemType:lt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ke,low:Ge,manifest:null,max:null,maxLength:Ge,media:null,method:null,min:null,minLength:Ge,multiple:ke,muted:ke,name:null,nonce:null,noModule:ke,noValidate:ke,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ke,optimum:Ge,pattern:null,ping:lt,placeholder:null,playsInline:ke,poster:null,preload:null,readOnly:ke,referrerPolicy:null,rel:lt,required:ke,reversed:ke,rows:Ge,rowSpan:Ge,sandbox:lt,scope:null,scoped:ke,seamless:ke,selected:ke,shape:null,size:Ge,sizes:null,slot:null,span:Ge,spellCheck:Te,src:null,srcDoc:null,srcLang:null,srcSet:Ke,start:Ge,step:null,style:null,tabIndex:Ge,target:null,title:null,translate:null,type:null,typeMustMatch:ke,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:ke,declare:ke,event:null,face:null,frame:null,frameBorder:null,hSpace:Ge,leftMargin:Ge,link:null,longDesc:null,lowSrc:null,marginHeight:Ge,marginWidth:Ge,noResize:ke,noHref:ke,noShade:ke,noWrap:ke,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:ke,disableRemotePlayback:ke,prefix:null,property:null,results:Ge,security:null,unselectable:null}})},85804:function(We,Ee,ae){"use strict";var oe=ae(56432);We.exports=Pe;function Pe(Ie,ke){return oe(Ie,ke.toLowerCase())}},56432:function(We){"use strict";We.exports=Ee;function Ee(ae,oe){return oe in ae?ae[oe]:oe}},79318:function(We,Ee,ae){"use strict";var oe=ae(47178),Pe=ae(44347),Ie=ae(19095);We.exports=ke;function ke(Ve){var Te=Ve.space,Ge=Ve.mustUseProperty||[],lt=Ve.attributes||{},Ke=Ve.properties,He=Ve.transform,St={},$e={},It,Fe;for(It in Ke)Fe=new Ie(It,He(lt,It),Ke[It],Te),Ge.indexOf(It)!==-1&&(Fe.mustUseProperty=!0),St[It]=Fe,$e[oe(It)]=It,$e[oe(Fe.attribute)]=It;return new Pe(St,$e,Te)}},19095:function(We,Ee,ae){"use strict";var oe=ae(1969),Pe=ae(70167);We.exports=Ve,Ve.prototype=new oe,Ve.prototype.defined=!0;var Ie=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],ke=Ie.length;function Ve(Ge,lt,Ke,He){var St=-1,$e;for(Te(this,"space",He),oe.call(this,Ge,lt);++St<ke;)$e=Ie[St],Te(this,$e,(Ke&Pe[$e])===Pe[$e])}function Te(Ge,lt,Ke){Ke&&(Ge[lt]=Ke)}},1969:function(We){"use strict";We.exports=ae;var Ee=ae.prototype;Ee.space=null,Ee.attribute=null,Ee.property=null,Ee.boolean=!1,Ee.booleanish=!1,Ee.overloadedBoolean=!1,Ee.number=!1,Ee.commaSeparated=!1,Ee.spaceSeparated=!1,Ee.commaOrSpaceSeparated=!1,Ee.mustUseProperty=!1,Ee.defined=!1;function ae(oe,Pe){this.property=oe,this.attribute=Pe}},83576:function(We,Ee,ae){"use strict";var oe=ae(97270),Pe=ae(44347);We.exports=Ie;function Ie(ke){for(var Ve=ke.length,Te=[],Ge=[],lt=-1,Ke,He;++lt<Ve;)Ke=ke[lt],Te.push(Ke.property),Ge.push(Ke.normal),He=Ke.space;return new Pe(oe.apply(null,Te),oe.apply(null,Ge),He)}},44347:function(We){"use strict";We.exports=ae;var Ee=ae.prototype;Ee.space=null,Ee.normal={},Ee.property={};function ae(oe,Pe,Ie){this.property=oe,this.normal=Pe,Ie&&(this.space=Ie)}},70167:function(We,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(We,Ee,ae){"use strict";var oe=ae(79318);We.exports=oe({space:"xlink",transform:Pe,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function Pe(Ie,ke){return"xlink:"+ke.slice(5).toLowerCase()}},59780:function(We,Ee,ae){"use strict";var oe=ae(79318);We.exports=oe({space:"xml",transform:Pe,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Pe(Ie,ke){return"xml:"+ke.slice(3).toLowerCase()}},68244:function(We,Ee,ae){"use strict";var oe=ae(79318),Pe=ae(85804);We.exports=oe({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Pe,properties:{xmlns:null,xmlnsXLink:null}})},47178:function(We){"use strict";We.exports=Ee;function Ee(ae){return ae.toLowerCase()}},63727:function(We,Ee,ae){"use strict";ae.d(Ee,{s:function(){return Dt},default:function(){return Pn}});var oe=ae(71409),Pe=ae(89490),Ie=ae(62730),ke=ae(11036),Ve=ae(39224),Te=ae(37463),Ge=ae(6551),lt=ae(6089),Ke=ae(18929),He=ae(59301),St=He.createContext({}),$e=St,It=ae(28788),Fe=ae(87075),te="__rc_cascader_search_mark__",ee=function(tn,vn,$n){var mn=$n.label,gt=mn===void 0?"":mn;return vn.some(function(Xn){return String(Xn[gt]).toLowerCase().includes(tn.toLowerCase())})},he=function(tn,vn,$n,mn){return vn.map(function(gt){return gt[mn.label]}).join(" / ")},ue=function(tn,vn,$n,mn,gt,Xn){var ir=gt.filter,nn=ir===void 0?ee:ir,vr=gt.render,$r=vr===void 0?he:vr,Lr=gt.limit,Rn=Lr===void 0?50:Lr,ei=gt.sort;return He.useMemo(function(){var Jr=[];if(!tn)return[];function nr(Wr,oi){var Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Wr.forEach(function(cr){if(!(!ei&&Rn!==!1&&Rn>0&&Jr.length>=Rn)){var Cr=[].concat((0,Ie.Z)(oi),[cr]),or=cr[$n.children],kr=Oe||cr.disabled;if((!or||or.length===0||Xn)&&nn(tn,Cr,{label:$n.label})){var Fr;Jr.push((0,Pe.Z)((0,Pe.Z)({},cr),{},(Fr={disabled:kr},(0,Fe.Z)(Fr,$n.label,$r(tn,Cr,mn,$n)),(0,Fe.Z)(Fr,te,Cr),(0,Fe.Z)(Fr,$n.children,void 0),Fr)))}or&&nr(cr[$n.children],Cr,kr)}})}return nr(vn,[]),ei&&Jr.sort(function(Wr,oi){return ei(Wr[te],oi[te],tn,$n)}),Rn!==!1&&Rn>0?Jr.slice(0,Rn):Jr},[tn,vn,$n,mn,$r,Xn,nn,ei,Rn])},fe=ue,me="__RC_CASCADER_SPLIT__",be="SHOW_PARENT",Ae="SHOW_CHILD";function De(Zt){return Zt.join(me)}function Ye(Zt){return Zt.map(De)}function nt(Zt){return Zt.split(me)}function Je(Zt){var tn=Zt||{},vn=tn.label,$n=tn.value,mn=tn.children,gt=$n||"value";return{label:vn||"label",value:gt,key:gt,children:mn||"children"}}function ot(Zt,tn){var vn,$n;return(vn=Zt.isLeaf)!==null&&vn!==void 0?vn:!(($n=Zt[tn.children])!==null&&$n!==void 0&&$n.length)}function mt(Zt){var tn=Zt.parentElement;if(tn){var vn=Zt.offsetTop-tn.offsetTop;vn-tn.scrollTop<0?tn.scrollTo({top:vn}):vn+Zt.offsetHeight-tn.scrollTop>tn.offsetHeight&&tn.scrollTo({top:vn+Zt.offsetHeight-tn.offsetHeight})}}function it(Zt,tn){return Zt.map(function(vn){var $n;return($n=vn[te])===null||$n===void 0?void 0:$n.map(function(mn){return mn[tn.value]})})}function vt(Zt){return Array.isArray(Zt)&&Array.isArray(Zt[0])}function wt(Zt){return Zt?vt(Zt)?Zt:(Zt.length===0?[]:[Zt]).map(function(tn){return Array.isArray(tn)?tn:[tn]}):[]}function Nt(Zt,tn,vn){var $n=new Set(Zt),mn=tn();return Zt.filter(function(gt){var Xn=mn[gt],ir=Xn?Xn.parent:null,nn=Xn?Xn.children:null;return Xn&&Xn.node.disabled?!0:vn===Ae?!(nn&&nn.some(function(vr){return vr.key&&$n.has(vr.key)})):!(ir&&!ir.node.disabled&&$n.has(ir.key))})}function Ht(Zt,tn,vn){for(var $n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,mn=tn,gt=[],Xn=function(){var vr,$r,Lr,Rn=Zt[ir],ei=(vr=mn)===null||vr===void 0?void 0:vr.findIndex(function(nr){var Wr=nr[vn.value];return $n?String(Wr)===String(Rn):Wr===Rn}),Jr=ei!==-1?($r=mn)===null||$r===void 0?void 0:$r[ei]:null;gt.push({value:(Lr=Jr==null?void 0:Jr[vn.value])!==null&&Lr!==void 0?Lr:Rn,index:ei,option:Jr}),mn=Jr==null?void 0:Jr[vn.children]},ir=0;ir<Zt.length;ir+=1)Xn();return gt}var Qt=function(Zt,tn,vn,$n,mn){return He.useMemo(function(){var gt=mn||function(Xn){var ir=$n?Xn.slice(-1):Xn,nn=" / ";return ir.every(function(vr){return["string","number"].includes((0,It.Z)(vr))})?ir.join(nn):ir.reduce(function(vr,$r,Lr){var Rn=He.isValidElement($r)?He.cloneElement($r,{key:Lr}):$r;return Lr===0?[Rn]:[].concat((0,Ie.Z)(vr),[nn,Rn])},[])};return Zt.map(function(Xn){var ir,nn=Ht(Xn,tn,vn),vr=gt(nn.map(function(Lr){var Rn,ei=Lr.option,Jr=Lr.value;return(Rn=ei==null?void 0:ei[vn.label])!==null&&Rn!==void 0?Rn:Jr}),nn.map(function(Lr){var Rn=Lr.option;return Rn})),$r=De(Xn);return{label:vr,value:$r,key:$r,valueCells:Xn,disabled:(ir=nn[nn.length-1])===null||ir===void 0||(ir=ir.option)===null||ir===void 0?void 0:ir.disabled}})},[Zt,tn,vn,mn,$n])};function Yt(Zt,tn){return He.useCallback(function(vn){var $n=[],mn=[];return vn.forEach(function(gt){var Xn=Ht(gt,Zt,tn);Xn.every(function(ir){return ir.option})?mn.push(gt):$n.push(gt)}),[mn,$n]},[Zt,tn])}var yn=ae(34061),bt=function(Zt,tn){var vn=He.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),$n=He.useCallback(function(){return vn.current.options!==Zt&&(vn.current.options=Zt,vn.current.info=(0,yn.I8)(Zt,{fieldNames:tn,initWrapper:function(gt){return(0,Pe.Z)((0,Pe.Z)({},gt),{},{pathKeyEntities:{}})},processEntity:function(gt,Xn){var ir=gt.nodes.map(function(nn){return nn[tn.value]}).join(me);Xn.pathKeyEntities[ir]=gt,gt.key=ir}})),vn.current.info.pathKeyEntities},[tn,Zt]);return $n};function ft(Zt,tn){var vn=He.useMemo(function(){return tn||[]},[tn]),$n=bt(vn,Zt),mn=He.useCallback(function(gt){var Xn=$n();return gt.map(function(ir){var nn=Xn[ir].nodes;return nn.map(function(vr){return vr[Zt.value]})})},[$n,Zt]);return[vn,$n,mn]}var ct=ae(48736);function Jt(Zt){return He.useMemo(function(){if(!Zt)return[!1,{}];var tn={matchInputWidth:!0,limit:50};return Zt&&(0,It.Z)(Zt)==="object"&&(tn=(0,Pe.Z)((0,Pe.Z)({},tn),Zt)),tn.limit<=0&&(tn.limit=!1),[!0,tn]},[Zt])}var fn=ae(34643);function kt(Zt,tn,vn,$n,mn,gt,Xn,ir){return function(nn){if(!Zt)tn(nn);else{var vr=De(nn),$r=Ye(vn),Lr=Ye($n),Rn=$r.includes(vr),ei=mn.some(function(kr){return De(kr)===vr}),Jr=vn,nr=mn;if(ei&&!Rn)nr=mn.filter(function(kr){return De(kr)!==vr});else{var Wr=Rn?$r.filter(function(kr){return kr!==vr}):[].concat((0,Ie.Z)($r),[vr]),oi=gt(),Oe;if(Rn){var cr=(0,fn.S)(Wr,{checked:!1,halfCheckedKeys:Lr},oi);Oe=cr.checkedKeys}else{var Cr=(0,fn.S)(Wr,!0,oi);Oe=Cr.checkedKeys}var or=Nt(Oe,gt,ir);Jr=Xn(or)}tn([].concat((0,Ie.Z)(nr),(0,Ie.Z)(Jr)))}}}function bn(Zt,tn,vn,$n,mn){return He.useMemo(function(){var gt=mn(tn),Xn=(0,ke.Z)(gt,2),ir=Xn[0],nn=Xn[1];if(!Zt||!tn.length)return[ir,[],nn];var vr=Ye(ir),$r=vn(),Lr=(0,fn.S)(vr,!0,$r),Rn=Lr.checkedKeys,ei=Lr.halfCheckedKeys;return[$n(Rn),$n(ei),nn]},[Zt,tn,vn,$n,mn])}var An=ae(92310),Yn=ae.n(An),Vt=He.memo(function(Zt){var tn=Zt.children;return tn},function(Zt,tn){return!tn.open}),Bn=Vt;function Mt(Zt){var tn,vn=Zt.prefixCls,$n=Zt.checked,mn=Zt.halfChecked,gt=Zt.disabled,Xn=Zt.onClick,ir=Zt.disableCheckbox,nn=He.useContext($e),vr=nn.checkable,$r=typeof vr!="boolean"?vr:null;return He.createElement("span",{className:Yn()("".concat(vn),(tn={},(0,Fe.Z)(tn,"".concat(vn,"-checked"),$n),(0,Fe.Z)(tn,"".concat(vn,"-indeterminate"),!$n&&mn),(0,Fe.Z)(tn,"".concat(vn,"-disabled"),gt||ir),tn)),onClick:Xn},$r)}var Hn="__cascader_fix_label__";function ur(Zt){var tn=Zt.prefixCls,vn=Zt.multiple,$n=Zt.options,mn=Zt.activeValue,gt=Zt.prevValuePath,Xn=Zt.onToggleOpen,ir=Zt.onSelect,nn=Zt.onActive,vr=Zt.checkedSet,$r=Zt.halfCheckedSet,Lr=Zt.loadingKeys,Rn=Zt.isSelectable,ei=Zt.disabled,Jr="".concat(tn,"-menu"),nr="".concat(tn,"-menu-item"),Wr=He.useContext($e),oi=Wr.fieldNames,Oe=Wr.changeOnSelect,cr=Wr.expandTrigger,Cr=Wr.expandIcon,or=Wr.loadingIcon,kr=Wr.dropdownMenuColumnStyle,Fr=Wr.optionRender,Or=cr==="hover",mi=function(Cn){return ei||Cn},Ti=He.useMemo(function(){return $n.map(function(hn){var Cn,pn=hn.disabled,Kr=hn.disableCheckbox,Yr=hn[te],Vr=(Cn=hn[Hn])!==null&&Cn!==void 0?Cn:hn[oi.label],dr=hn[oi.value],Gr=ot(hn,oi),bi=Yr?Yr.map(function(br){return br[oi.value]}):[].concat((0,Ie.Z)(gt),[dr]),Ai=De(bi),Oi=Lr.includes(Ai),xt=vr.has(Ai),on=$r.has(Ai);return{disabled:pn,label:Vr,value:dr,isLeaf:Gr,isLoading:Oi,checked:xt,halfChecked:on,option:hn,disableCheckbox:Kr,fullPath:bi,fullPathKey:Ai}})},[$n,vr,oi,$r,Lr,gt]);return He.createElement("ul",{className:Jr,role:"menu"},Ti.map(function(hn){var Cn,pn=hn.disabled,Kr=hn.label,Yr=hn.value,Vr=hn.isLeaf,dr=hn.isLoading,Gr=hn.checked,bi=hn.halfChecked,Ai=hn.option,Oi=hn.fullPath,xt=hn.fullPathKey,on=hn.disableCheckbox,br=function(){if(!mi(pn)){var Tn=(0,Ie.Z)(Oi);Or&&Vr&&Tn.pop(),nn(Tn)}},Br=function(){Rn(Ai)&&!mi(pn)&&ir(Oi,Vr)},Xt;return typeof Ai.title=="string"?Xt=Ai.title:typeof Kr=="string"&&(Xt=Kr),He.createElement("li",{key:xt,className:Yn()(nr,(Cn={},(0,Fe.Z)(Cn,"".concat(nr,"-expand"),!Vr),(0,Fe.Z)(Cn,"".concat(nr,"-active"),mn===Yr||mn===xt),(0,Fe.Z)(Cn,"".concat(nr,"-disabled"),mi(pn)),(0,Fe.Z)(Cn,"".concat(nr,"-loading"),dr),Cn)),style:kr,role:"menuitemcheckbox",title:Xt,"aria-checked":Gr,"data-path-key":xt,onClick:function(){br(),!on&&(!vn||Vr)&&Br()},onDoubleClick:function(){Oe&&Xn(!1)},onMouseEnter:function(){Or&&br()},onMouseDown:function(Tn){Tn.preventDefault()}},vn&&He.createElement(Mt,{prefixCls:"".concat(tn,"-checkbox"),checked:Gr,halfChecked:bi,disabled:mi(pn)||on,disableCheckbox:on,onClick:function(Tn){on||(Tn.stopPropagation(),Br())}}),He.createElement("div",{className:"".concat(nr,"-content")},Fr?Fr(Ai):Kr),!dr&&Cr&&!Vr&&He.createElement("div",{className:"".concat(nr,"-expand-icon")},Cr),dr&&or&&He.createElement("div",{className:"".concat(nr,"-loading-icon")},or))}))}var at=function(tn,vn){var $n=He.useContext($e),mn=$n.values,gt=mn[0],Xn=He.useState([]),ir=(0,ke.Z)(Xn,2),nn=ir[0],vr=ir[1];return He.useEffect(function(){tn||vr(gt||[])},[vn,gt]),[nn,vr]},_e=at,Re=ae(10228),Xe=function(Zt,tn,vn,$n,mn,gt,Xn){var ir=Xn.direction,nn=Xn.searchValue,vr=Xn.toggleOpen,$r=Xn.open,Lr=ir==="rtl",Rn=He.useMemo(function(){for(var kr=-1,Fr=tn,Or=[],mi=[],Ti=$n.length,hn=it(tn,vn),Cn=function(dr){var Gr=Fr.findIndex(function(bi,Ai){return(hn[Ai]?De(hn[Ai]):bi[vn.value])===$n[dr]});if(Gr===-1)return 1;kr=Gr,Or.push(kr),mi.push($n[dr]),Fr=Fr[kr][vn.children]},pn=0;pn<Ti&&Fr&&!Cn(pn);pn+=1);for(var Kr=tn,Yr=0;Yr<Or.length-1;Yr+=1)Kr=Kr[Or[Yr]][vn.children];return[mi,kr,Kr,hn]},[$n,vn,tn]),ei=(0,ke.Z)(Rn,4),Jr=ei[0],nr=ei[1],Wr=ei[2],oi=ei[3],Oe=function(Fr){mn(Fr)},cr=function(Fr){var Or=Wr.length,mi=nr;mi===-1&&Fr<0&&(mi=Or);for(var Ti=0;Ti<Or;Ti+=1){mi=(mi+Fr+Or)%Or;var hn=Wr[mi];if(hn&&!hn.disabled){var Cn=Jr.slice(0,-1).concat(oi[mi]?De(oi[mi]):hn[vn.value]);Oe(Cn);return}}},Cr=function(){if(Jr.length>1){var Fr=Jr.slice(0,-1);Oe(Fr)}else vr(!1)},or=function(){var Fr,Or=((Fr=Wr[nr])===null||Fr===void 0?void 0:Fr[vn.children])||[],mi=Or.find(function(hn){return!hn.disabled});if(mi){var Ti=[].concat((0,Ie.Z)(Jr),[mi[vn.value]]);Oe(Ti)}};He.useImperativeHandle(Zt,function(){return{onKeyDown:function(Fr){var Or=Fr.which;switch(Or){case Re.Z.UP:case Re.Z.DOWN:{var mi=0;Or===Re.Z.UP?mi=-1:Or===Re.Z.DOWN&&(mi=1),mi!==0&&cr(mi);break}case Re.Z.LEFT:{if(nn)break;Lr?or():Cr();break}case Re.Z.RIGHT:{if(nn)break;Lr?Cr():or();break}case Re.Z.BACKSPACE:{nn||Cr();break}case Re.Z.ENTER:{if(Jr.length){var Ti=Wr[nr],hn=(Ti==null?void 0:Ti[te])||[];hn.length?gt(hn.map(function(Cn){return Cn[vn.value]}),hn[hn.length-1]):gt(Jr,Wr[nr])}break}case Re.Z.ESC:vr(!1),$r&&Fr.stopPropagation()}},onKeyUp:function(){}}})},st=He.forwardRef(function(Zt,tn){var vn,$n,mn,gt=Zt.prefixCls,Xn=Zt.multiple,ir=Zt.searchValue,nn=Zt.toggleOpen,vr=Zt.notFoundContent,$r=Zt.direction,Lr=Zt.open,Rn=Zt.disabled,ei=He.useRef(null),Jr=$r==="rtl",nr=He.useContext($e),Wr=nr.options,oi=nr.values,Oe=nr.halfValues,cr=nr.fieldNames,Cr=nr.changeOnSelect,or=nr.onSelect,kr=nr.searchOptions,Fr=nr.dropdownPrefixCls,Or=nr.loadData,mi=nr.expandTrigger,Ti=Fr||gt,hn=He.useState([]),Cn=(0,ke.Z)(hn,2),pn=Cn[0],Kr=Cn[1],Yr=function(vi){if(!(!Or||ir)){var Xr=Ht(vi,Wr,cr),ci=Xr.map(function(Ci){var ji=Ci.option;return ji}),Gn=ci[ci.length-1];if(Gn&&!ot(Gn,cr)){var cn=De(vi);Kr(function(Ci){return[].concat((0,Ie.Z)(Ci),[cn])}),Or(ci)}}};He.useEffect(function(){pn.length&&pn.forEach(function(zn){var vi=nt(zn),Xr=Ht(vi,Wr,cr,!0).map(function(Gn){var cn=Gn.option;return cn}),ci=Xr[Xr.length-1];(!ci||ci[cr.children]||ot(ci,cr))&&Kr(function(Gn){return Gn.filter(function(cn){return cn!==zn})})})},[Wr,pn,cr]);var Vr=He.useMemo(function(){return new Set(Ye(oi))},[oi]),dr=He.useMemo(function(){return new Set(Ye(Oe))},[Oe]),Gr=_e(Xn,Lr),bi=(0,ke.Z)(Gr,2),Ai=bi[0],Oi=bi[1],xt=function(vi){Oi(vi),Yr(vi)},on=function(vi){if(Rn)return!1;var Xr=vi.disabled,ci=ot(vi,cr);return!Xr&&(ci||Cr||Xn)},br=function(vi,Xr){var ci=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;or(vi),!Xn&&(Xr||Cr&&(mi==="hover"||ci))&&nn(!1)},Br=He.useMemo(function(){return ir?kr:Wr},[ir,kr,Wr]),Xt=He.useMemo(function(){for(var zn=[{options:Br}],vi=Br,Xr=it(vi,cr),ci=function(){var Ci=Ai[Gn],ji=vi.find(function(zr,si){return(Xr[si]?De(Xr[si]):zr[cr.value])===Ci}),Qn=ji==null?void 0:ji[cr.children];if(!(Qn!=null&&Qn.length))return 1;vi=Qn,zn.push({options:Qn})},Gn=0;Gn<Ai.length&&!ci();Gn+=1);return zn},[Br,Ai,cr]),fr=function(vi,Xr){on(Xr)&&br(vi,ot(Xr,cr),!0)};Xe(tn,Br,cr,Ai,xt,fr,{direction:$r,searchValue:ir,toggleOpen:nn,open:Lr}),He.useEffect(function(){if(!ir)for(var zn=0;zn<Ai.length;zn+=1){var vi,Xr=Ai.slice(0,zn+1),ci=De(Xr),Gn=(vi=ei.current)===null||vi===void 0?void 0:vi.querySelector('li[data-path-key="'.concat(ci.replace(/\\{0,2}"/g,'\\"'),'"]'));Gn&&mt(Gn)}},[Ai,ir]);var Tn=!((vn=Xt[0])!==null&&vn!==void 0&&(vn=vn.options)!==null&&vn!==void 0&&vn.length),un=[($n={},(0,Fe.Z)($n,cr.value,"__EMPTY__"),(0,Fe.Z)($n,Hn,vr),(0,Fe.Z)($n,"disabled",!0),$n)],Ue=(0,Pe.Z)((0,Pe.Z)({},Zt),{},{multiple:!Tn&&Xn,onSelect:br,onActive:xt,onToggleOpen:nn,checkedSet:Vr,halfCheckedSet:dr,loadingKeys:pn,isSelectable:on}),Nr=Tn?[{options:un}]:Xt,jr=Nr.map(function(zn,vi){var Xr=Ai.slice(0,vi),ci=Ai[vi];return He.createElement(ur,(0,oe.Z)({key:vi},Ue,{prefixCls:Ti,options:zn.options,prevValuePath:Xr,activeValue:ci}))});return He.createElement(Bn,{open:Lr},He.createElement("div",{className:Yn()("".concat(Ti,"-menus"),(mn={},(0,Fe.Z)(mn,"".concat(Ti,"-menu-empty"),Tn),(0,Fe.Z)(mn,"".concat(Ti,"-rtl"),Jr),mn)),ref:ei},jr))}),Be=st,Et=He.forwardRef(function(Zt,tn){var vn=(0,Te.lk)();return He.createElement(Be,(0,oe.Z)({},Zt,vn,{ref:tn}))}),En=Et,sn=ae(70425);function Mn(){}function Dt(Zt){var tn,vn=Zt,$n=vn.prefixCls,mn=$n===void 0?"rc-cascader":$n,gt=vn.style,Xn=vn.className,ir=vn.options,nn=vn.checkable,vr=vn.defaultValue,$r=vn.value,Lr=vn.fieldNames,Rn=vn.changeOnSelect,ei=vn.onChange,Jr=vn.showCheckedStrategy,nr=vn.loadData,Wr=vn.expandTrigger,oi=vn.expandIcon,Oe=oi===void 0?">":oi,cr=vn.loadingIcon,Cr=vn.direction,or=vn.notFoundContent,kr=or===void 0?"Not Found":or,Fr=vn.disabled,Or=!!nn,mi=(0,sn.C8)(vr,{value:$r,postState:wt}),Ti=(0,ke.Z)(mi,2),hn=Ti[0],Cn=Ti[1],pn=He.useMemo(function(){return Je(Lr)},[JSON.stringify(Lr)]),Kr=ft(pn,ir),Yr=(0,ke.Z)(Kr,3),Vr=Yr[0],dr=Yr[1],Gr=Yr[2],bi=Yt(Vr,pn),Ai=bn(Or,hn,dr,Gr,bi),Oi=(0,ke.Z)(Ai,3),xt=Oi[0],on=Oi[1],br=Oi[2],Br=(0,sn.zX)(function(Nr){if(Cn(Nr),ei){var jr=wt(Nr),zn=jr.map(function(ci){return Ht(ci,Vr,pn).map(function(Gn){return Gn.option})}),vi=Or?jr:jr[0],Xr=Or?zn:zn[0];ei(vi,Xr)}}),Xt=kt(Or,Br,xt,on,br,dr,Gr,Jr),fr=(0,sn.zX)(function(Nr){Xt(Nr)}),Tn=He.useMemo(function(){return{options:Vr,fieldNames:pn,values:xt,halfValues:on,changeOnSelect:Rn,onSelect:fr,checkable:nn,searchOptions:[],dropdownPrefixCls:void 0,loadData:nr,expandTrigger:Wr,expandIcon:Oe,loadingIcon:cr,dropdownMenuColumnStyle:void 0}},[Vr,pn,xt,on,Rn,fr,nn,nr,Wr,Oe,cr]),un="".concat(mn,"-panel"),Ue=!Vr.length;return He.createElement($e.Provider,{value:Tn},He.createElement("div",{className:Yn()(un,(tn={},(0,Fe.Z)(tn,"".concat(un,"-rtl"),Cr==="rtl"),(0,Fe.Z)(tn,"".concat(un,"-empty"),Ue),tn),Xn),style:gt},Ue?kr:He.createElement(Be,{prefixCls:mn,searchValue:"",multiple:Or,toggleOpen:Mn,open:!0,direction:Cr,disabled:Fr})))}function _t(Zt){var tn=Zt.onPopupVisibleChange,vn=Zt.popupVisible,$n=Zt.popupClassName,mn=Zt.popupPlacement;warning(!tn,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(vn===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning($n===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(mn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function jt(Zt,tn){if(Zt){var vn=function $n(mn){for(var gt=0;gt<mn.length;gt++){var Xn=mn[gt];if(Xn[tn==null?void 0:tn.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Xn[tn==null?void 0:tn.children])&&$n(Xn[tn==null?void 0:tn.children]))return!0}};vn(Zt)}}var dn=null,Sn=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],gn=He.forwardRef(function(Zt,tn){var vn=Zt.id,$n=Zt.prefixCls,mn=$n===void 0?"rc-cascader":$n,gt=Zt.fieldNames,Xn=Zt.defaultValue,ir=Zt.value,nn=Zt.changeOnSelect,vr=Zt.onChange,$r=Zt.displayRender,Lr=Zt.checkable,Rn=Zt.autoClearSearchValue,ei=Rn===void 0?!0:Rn,Jr=Zt.searchValue,nr=Zt.onSearch,Wr=Zt.showSearch,oi=Zt.expandTrigger,Oe=Zt.options,cr=Zt.dropdownPrefixCls,Cr=Zt.loadData,or=Zt.popupVisible,kr=Zt.open,Fr=Zt.popupClassName,Or=Zt.dropdownClassName,mi=Zt.dropdownMenuColumnStyle,Ti=Zt.dropdownStyle,hn=Zt.popupPlacement,Cn=Zt.placement,pn=Zt.onDropdownVisibleChange,Kr=Zt.onPopupVisibleChange,Yr=Zt.expandIcon,Vr=Yr===void 0?">":Yr,dr=Zt.loadingIcon,Gr=Zt.children,bi=Zt.dropdownMatchSelectWidth,Ai=bi===void 0?!1:bi,Oi=Zt.showCheckedStrategy,xt=Oi===void 0?be:Oi,on=Zt.optionRender,br=(0,Ve.Z)(Zt,Sn),Br=(0,Ge.ZP)(vn),Xt=!!Lr,fr=(0,Ke.Z)(Xn,{value:ir,postState:wt}),Tn=(0,ke.Z)(fr,2),un=Tn[0],Ue=Tn[1],Nr=He.useMemo(function(){return Je(gt)},[JSON.stringify(gt)]),jr=ft(Nr,Oe),zn=(0,ke.Z)(jr,3),vi=zn[0],Xr=zn[1],ci=zn[2],Gn=(0,Ke.Z)("",{value:Jr,postState:function(pi){return pi||""}}),cn=(0,ke.Z)(Gn,2),Ci=cn[0],ji=cn[1],Qn=function(pi,hi){ji(pi),hi.source!=="blur"&&nr&&nr(pi)},zr=Jt(Wr),si=(0,ke.Z)(zr,2),di=si[0],ti=si[1],ki=fe(Ci,vi,Nr,cr||mn,ti,nn||Xt),Bi=Yt(vi,Nr),Zi=bn(Xt,un,Xr,ci,Bi),Fi=(0,ke.Z)(Zi,3),Vi=Fi[0],er=Fi[1],_i=Fi[2],ar=He.useMemo(function(){var _r=Ye(Vi),pi=Nt(_r,Xr,xt);return[].concat((0,Ie.Z)(_i),(0,Ie.Z)(ci(pi)))},[Vi,Xr,ci,_i,xt]),Ei=Qt(ar,vi,Nr,Xt,$r),Gi=(0,lt.Z)(function(_r){if(Ue(_r),vr){var pi=wt(_r),hi=pi.map(function(ht){return Ht(ht,vi,Nr).map(function(xn){return xn.option})}),ri=Xt?pi:pi[0],yr=Xt?hi:hi[0];vr(ri,yr)}}),Ui=kt(Xt,Gi,Vi,er,_i,Xr,ci,xt),po=(0,lt.Z)(function(_r){(!Xt||ei)&&ji(""),Ui(_r)}),ho=function(pi,hi){if(hi.type==="clear"){Gi([]);return}var ri=hi.values[0],yr=ri.valueCells;po(yr)},Qi=kr!==void 0?kr:or,Ro=Or||Fr,Fn=Cn||hn,pr=function(pi){pn==null||pn(pi),Kr==null||Kr(pi)},Ln=He.useMemo(function(){return{options:vi,fieldNames:Nr,values:Vi,halfValues:er,changeOnSelect:nn,onSelect:po,checkable:Lr,searchOptions:ki,dropdownPrefixCls:cr,loadData:Cr,expandTrigger:oi,expandIcon:Vr,loadingIcon:dr,dropdownMenuColumnStyle:mi,optionRender:on}},[vi,Nr,Vi,er,nn,po,Lr,ki,cr,Cr,oi,Vr,dr,mi,on]),rt=!(Ci?ki:vi).length,Hr=Ci&&ti.matchInputWidth||rt?{}:{minWidth:"auto"};return He.createElement($e.Provider,{value:Ln},He.createElement(Te.Ac,(0,oe.Z)({},br,{ref:tn,id:Br,prefixCls:mn,autoClearSearchValue:ei,dropdownMatchSelectWidth:Ai,dropdownStyle:(0,Pe.Z)((0,Pe.Z)({},Hr),Ti),displayValues:Ei,onDisplayValuesChange:ho,mode:Xt?"multiple":void 0,searchValue:Ci,onSearch:Qn,showSearch:di,OptionList:En,emptyOptions:rt,open:Qi,dropdownClassName:Ro,placement:Fn,onDropdownVisibleChange:pr,getRawInputElement:function(){return Gr}})))});gn.SHOW_PARENT=be,gn.SHOW_CHILD=Ae,gn.Panel=Dt;var Ot=gn,Pn=Ot},98535:function(We,Ee,ae){"use strict";ae.r(Ee),ae.d(Ee,{Panel:function(){return wt},default:function(){return vt}});var oe=ae(71409),Pe=ae(62730),Ie=ae(11036),ke=ae(28788),Ve=ae(92310),Te=ae.n(Ve),Ge=ae(18929),lt=ae(48736),Ke=ae(59301),He=ae(39224),St=ae(11592),$e=ae(89490),It=ae(87075),Fe=ae(77900),te=ae(10228),ee=Ke.forwardRef(function(Nt,Ht){var Qt=Nt.prefixCls,Yt=Nt.forceRender,yn=Nt.className,bt=Nt.style,ft=Nt.children,ct=Nt.isActive,Jt=Nt.role,fn=Nt.classNames,kt=Nt.styles,bn=Ke.useState(ct||Yt),An=(0,Ie.Z)(bn,2),Yn=An[0],Vt=An[1];return Ke.useEffect(function(){(Yt||ct)&&Vt(!0)},[Yt,ct]),Yn?Ke.createElement("div",{ref:Ht,className:Te()("".concat(Qt,"-content"),(0,It.Z)((0,It.Z)({},"".concat(Qt,"-content-active"),ct),"".concat(Qt,"-content-inactive"),!ct),yn),style:bt,role:Jt},Ke.createElement("div",{className:Te()("".concat(Qt,"-content-box"),fn==null?void 0:fn.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=Ke.forwardRef(function(Nt,Ht){var Qt=Nt.showArrow,Yt=Qt===void 0?!0:Qt,yn=Nt.headerClass,bt=Nt.isActive,ft=Nt.onItemClick,ct=Nt.forceRender,Jt=Nt.className,fn=Nt.classNames,kt=fn===void 0?{}:fn,bn=Nt.styles,An=bn===void 0?{}:bn,Yn=Nt.prefixCls,Vt=Nt.collapsible,Bn=Nt.accordion,Mt=Nt.panelKey,Hn=Nt.extra,ur=Nt.header,at=Nt.expandIcon,_e=Nt.openMotion,Re=Nt.destroyInactivePanel,Xe=Nt.children,st=(0,He.Z)(Nt,ue),Be=Vt==="disabled",Et=Hn!=null&&typeof Hn!="boolean",En=(0,It.Z)((0,It.Z)((0,It.Z)({onClick:function(){ft==null||ft(Mt)},onKeyDown:function(Sn){(Sn.key==="Enter"||Sn.keyCode===te.Z.ENTER||Sn.which===te.Z.ENTER)&&(ft==null||ft(Mt))},role:Bn?"tab":"button"},"aria-expanded",bt),"aria-disabled",Be),"tabIndex",Be?-1:0),sn=typeof at=="function"?at(Nt):Ke.createElement("i",{className:"arrow"}),Mn=sn&&Ke.createElement("div",(0,oe.Z)({className:"".concat(Yn,"-expand-icon")},["header","icon"].includes(Vt)?En:{}),sn),Dt=Te()("".concat(Yn,"-item"),(0,It.Z)((0,It.Z)({},"".concat(Yn,"-item-active"),bt),"".concat(Yn,"-item-disabled"),Be),Jt),_t=Te()(yn,"".concat(Yn,"-header"),(0,It.Z)({},"".concat(Yn,"-collapsible-").concat(Vt),!!Vt),kt.header),jt=(0,$e.Z)({className:_t,style:An.header},["header","icon"].includes(Vt)?{}:En);return Ke.createElement("div",(0,oe.Z)({},st,{ref:Ht,className:Dt}),Ke.createElement("div",jt,Yt&&Mn,Ke.createElement("span",(0,oe.Z)({className:"".concat(Yn,"-header-text")},Vt==="header"?En:{}),ur),Et&&Ke.createElement("div",{className:"".concat(Yn,"-extra")},Hn)),Ke.createElement(Fe.default,(0,oe.Z)({visible:bt,leavedClassName:"".concat(Yn,"-content-hidden")},_e,{forceRender:ct,removeOnLeave:Re}),function(dn,Sn){var gn=dn.className,Ot=dn.style;return Ke.createElement(he,{ref:Sn,prefixCls:Yn,className:gn,classNames:kt,style:Ot,styles:An,isActive:bt,forceRender:ct,role:Bn?"tabpanel":void 0},Xe)}))}),me=fe,be=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Ae=function(Ht,Qt){var Yt=Qt.prefixCls,yn=Qt.accordion,bt=Qt.collapsible,ft=Qt.destroyInactivePanel,ct=Qt.onItemClick,Jt=Qt.activeKey,fn=Qt.openMotion,kt=Qt.expandIcon;return Ht.map(function(bn,An){var Yn=bn.children,Vt=bn.label,Bn=bn.key,Mt=bn.collapsible,Hn=bn.onItemClick,ur=bn.destroyInactivePanel,at=(0,He.Z)(bn,be),_e=String(Bn!=null?Bn:An),Re=Mt!=null?Mt:bt,Xe=ur!=null?ur:ft,st=function(En){Re!=="disabled"&&(ct(En),Hn==null||Hn(En))},Be=!1;return yn?Be=Jt[0]===_e:Be=Jt.indexOf(_e)>-1,Ke.createElement(me,(0,oe.Z)({},at,{prefixCls:Yt,key:_e,panelKey:_e,isActive:Be,accordion:yn,openMotion:fn,expandIcon:kt,header:Vt,collapsible:Re,onItemClick:st,destroyInactivePanel:Xe}),Yn)})},De=function(Ht,Qt,Yt){if(!Ht)return null;var yn=Yt.prefixCls,bt=Yt.accordion,ft=Yt.collapsible,ct=Yt.destroyInactivePanel,Jt=Yt.onItemClick,fn=Yt.activeKey,kt=Yt.openMotion,bn=Yt.expandIcon,An=Ht.key||String(Qt),Yn=Ht.props,Vt=Yn.header,Bn=Yn.headerClass,Mt=Yn.destroyInactivePanel,Hn=Yn.collapsible,ur=Yn.onItemClick,at=!1;bt?at=fn[0]===An:at=fn.indexOf(An)>-1;var _e=Hn!=null?Hn:ft,Re=function(Be){_e!=="disabled"&&(Jt(Be),ur==null||ur(Be))},Xe={key:An,panelKey:An,header:Vt,headerClass:Bn,isActive:at,prefixCls:yn,destroyInactivePanel:Mt!=null?Mt:ct,openMotion:kt,accordion:bt,children:Ht.props.children,onItemClick:Re,expandIcon:bn,collapsible:_e};return typeof Ht.type=="string"?Ht:(Object.keys(Xe).forEach(function(st){typeof Xe[st]=="undefined"&&delete Xe[st]}),Ke.cloneElement(Ht,Xe))};function Ye(Nt,Ht,Qt){return Array.isArray(Nt)?Ae(Nt,Qt):(0,St.Z)(Ht).map(function(Yt,yn){return De(Yt,yn,Qt)})}var nt=Ye,Je=ae(26112);function ot(Nt){var Ht=Nt;if(!Array.isArray(Ht)){var Qt=(0,ke.Z)(Ht);Ht=Qt==="number"||Qt==="string"?[Ht]:[]}return Ht.map(function(Yt){return String(Yt)})}var mt=Ke.forwardRef(function(Nt,Ht){var Qt=Nt.prefixCls,Yt=Qt===void 0?"rc-collapse":Qt,yn=Nt.destroyInactivePanel,bt=yn===void 0?!1:yn,ft=Nt.style,ct=Nt.accordion,Jt=Nt.className,fn=Nt.children,kt=Nt.collapsible,bn=Nt.openMotion,An=Nt.expandIcon,Yn=Nt.activeKey,Vt=Nt.defaultActiveKey,Bn=Nt.onChange,Mt=Nt.items,Hn=Te()(Yt,Jt),ur=(0,Ge.Z)([],{value:Yn,onChange:function(Et){return Bn==null?void 0:Bn(Et)},defaultValue:Vt,postState:ot}),at=(0,Ie.Z)(ur,2),_e=at[0],Re=at[1],Xe=function(Et){return Re(function(){if(ct)return _e[0]===Et?[]:[Et];var En=_e.indexOf(Et),sn=En>-1;return sn?_e.filter(function(Mn){return Mn!==Et}):[].concat((0,Pe.Z)(_e),[Et])})};(0,lt.ZP)(!fn,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var st=nt(Mt,fn,{prefixCls:Yt,accordion:ct,openMotion:bn,expandIcon:An,collapsible:kt,destroyInactivePanel:bt,onItemClick:Xe,activeKey:_e});return Ke.createElement("div",(0,oe.Z)({ref:Ht,className:Hn,style:ft,role:ct?"tablist":void 0},(0,Je.Z)(Nt,{aria:!0,data:!0})),st)}),it=Object.assign(mt,{Panel:me}),vt=it,wt=it.Panel},66042:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return vt}});var oe=ae(89490),Pe=ae(11036),Ie=ae(43403),ke=ae(34280),Ve=ae(59301),Te=Ve.createContext(null),Ge=Ve.createContext({}),lt=Te,Ke=ae(87075),He=ae(71409),St=ae(92310),$e=ae.n(St),It=ae(77900),Fe=ae(10228),te=ae(26112),ee=ae(39224),he=ae(8654),ue=["prefixCls","className","containerRef"],fe=function(Nt){var Ht=Nt.prefixCls,Qt=Nt.className,Yt=Nt.containerRef,yn=(0,ee.Z)(Nt,ue),bt=Ve.useContext(Ge),ft=bt.panel,ct=(0,he.x1)(ft,Yt);return Ve.createElement("div",(0,He.Z)({className:$e()("".concat(Ht,"-content"),Qt),role:"dialog",ref:ct},(0,te.Z)(Nt,{aria:!0}),{"aria-modal":"true"},yn))},me=fe,be=ae(48736);function Ae(wt){return typeof wt=="string"&&String(Number(wt))===wt?((0,be.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(wt)):wt}function De(wt){warning(!("wrapperClassName"in wt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!wt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ye={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function nt(wt,Nt){var Ht,Qt,Yt,yn=wt.prefixCls,bt=wt.open,ft=wt.placement,ct=wt.inline,Jt=wt.push,fn=wt.forceRender,kt=wt.autoFocus,bn=wt.keyboard,An=wt.classNames,Yn=wt.rootClassName,Vt=wt.rootStyle,Bn=wt.zIndex,Mt=wt.className,Hn=wt.id,ur=wt.style,at=wt.motion,_e=wt.width,Re=wt.height,Xe=wt.children,st=wt.mask,Be=wt.maskClosable,Et=wt.maskMotion,En=wt.maskClassName,sn=wt.maskStyle,Mn=wt.afterOpenChange,Dt=wt.onClose,_t=wt.onMouseEnter,jt=wt.onMouseOver,dn=wt.onMouseLeave,Sn=wt.onClick,gn=wt.onKeyDown,Ot=wt.onKeyUp,Pn=wt.styles,Zt=wt.drawerRender,tn=Ve.useRef(),vn=Ve.useRef(),$n=Ve.useRef();Ve.useImperativeHandle(Nt,function(){return tn.current});var mn=function(Cr){var or=Cr.keyCode,kr=Cr.shiftKey;switch(or){case Fe.Z.TAB:{if(or===Fe.Z.TAB){if(!kr&&document.activeElement===$n.current){var Fr;(Fr=vn.current)===null||Fr===void 0||Fr.focus({preventScroll:!0})}else if(kr&&document.activeElement===vn.current){var Or;(Or=$n.current)===null||Or===void 0||Or.focus({preventScroll:!0})}}break}case Fe.Z.ESC:{Dt&&bn&&(Cr.stopPropagation(),Dt(Cr));break}}};Ve.useEffect(function(){if(bt&&kt){var cr;(cr=tn.current)===null||cr===void 0||cr.focus({preventScroll:!0})}},[bt]);var gt=Ve.useState(!1),Xn=(0,Pe.Z)(gt,2),ir=Xn[0],nn=Xn[1],vr=Ve.useContext(lt),$r;typeof Jt=="boolean"?$r=Jt?{}:{distance:0}:$r=Jt||{};var Lr=(Ht=(Qt=(Yt=$r)===null||Yt===void 0?void 0:Yt.distance)!==null&&Qt!==void 0?Qt:vr==null?void 0:vr.pushDistance)!==null&&Ht!==void 0?Ht:180,Rn=Ve.useMemo(function(){return{pushDistance:Lr,push:function(){nn(!0)},pull:function(){nn(!1)}}},[Lr]);Ve.useEffect(function(){if(bt){var cr;vr==null||(cr=vr.push)===null||cr===void 0||cr.call(vr)}else{var Cr;vr==null||(Cr=vr.pull)===null||Cr===void 0||Cr.call(vr)}},[bt]),Ve.useEffect(function(){return function(){var cr;vr==null||(cr=vr.pull)===null||cr===void 0||cr.call(vr)}},[]);var ei=st&&Ve.createElement(It.default,(0,He.Z)({key:"mask"},Et,{visible:bt}),function(cr,Cr){var or=cr.className,kr=cr.style;return Ve.createElement("div",{className:$e()("".concat(yn,"-mask"),or,An==null?void 0:An.mask,En),style:(0,oe.Z)((0,oe.Z)((0,oe.Z)({},kr),sn),Pn==null?void 0:Pn.mask),onClick:Be&&bt?Dt:void 0,ref:Cr})}),Jr=typeof at=="function"?at(ft):at,nr={};if(ir&&Lr)switch(ft){case"top":nr.transform="translateY(".concat(Lr,"px)");break;case"bottom":nr.transform="translateY(".concat(-Lr,"px)");break;case"left":nr.transform="translateX(".concat(Lr,"px)");break;default:nr.transform="translateX(".concat(-Lr,"px)");break}ft==="left"||ft==="right"?nr.width=Ae(_e):nr.height=Ae(Re);var Wr={onMouseEnter:_t,onMouseOver:jt,onMouseLeave:dn,onClick:Sn,onKeyDown:gn,onKeyUp:Ot},oi=Ve.createElement(It.default,(0,He.Z)({key:"panel"},Jr,{visible:bt,forceRender:fn,onVisibleChanged:function(Cr){Mn==null||Mn(Cr)},removeOnLeave:!1,leavedClassName:"".concat(yn,"-content-wrapper-hidden")}),function(cr,Cr){var or=cr.className,kr=cr.style,Fr=Ve.createElement(me,(0,He.Z)({id:Hn,containerRef:Cr,prefixCls:yn,className:$e()(Mt,An==null?void 0:An.content),style:(0,oe.Z)((0,oe.Z)({},ur),Pn==null?void 0:Pn.content)},(0,te.Z)(wt,{aria:!0}),Wr),Xe);return Ve.createElement("div",(0,He.Z)({className:$e()("".concat(yn,"-content-wrapper"),An==null?void 0:An.wrapper,or),style:(0,oe.Z)((0,oe.Z)((0,oe.Z)({},nr),kr),Pn==null?void 0:Pn.wrapper)},(0,te.Z)(wt,{data:!0})),Zt?Zt(Fr):Fr)}),Oe=(0,oe.Z)({},Vt);return Bn&&(Oe.zIndex=Bn),Ve.createElement(lt.Provider,{value:Rn},Ve.createElement("div",{className:$e()(yn,"".concat(yn,"-").concat(ft),Yn,(0,Ke.Z)((0,Ke.Z)({},"".concat(yn,"-open"),bt),"".concat(yn,"-inline"),ct)),style:Oe,tabIndex:-1,ref:tn,onKeyDown:mn},ei,Ve.createElement("div",{tabIndex:0,ref:vn,style:Ye,"aria-hidden":"true","data-sentinel":"start"}),oi,Ve.createElement("div",{tabIndex:0,ref:$n,style:Ye,"aria-hidden":"true","data-sentinel":"end"})))}var Je=Ve.forwardRef(nt),ot=Je,mt=function(Nt){var Ht=Nt.open,Qt=Ht===void 0?!1:Ht,Yt=Nt.prefixCls,yn=Yt===void 0?"rc-drawer":Yt,bt=Nt.placement,ft=bt===void 0?"right":bt,ct=Nt.autoFocus,Jt=ct===void 0?!0:ct,fn=Nt.keyboard,kt=fn===void 0?!0:fn,bn=Nt.width,An=bn===void 0?378:bn,Yn=Nt.mask,Vt=Yn===void 0?!0:Yn,Bn=Nt.maskClosable,Mt=Bn===void 0?!0:Bn,Hn=Nt.getContainer,ur=Nt.forceRender,at=Nt.afterOpenChange,_e=Nt.destroyOnClose,Re=Nt.onMouseEnter,Xe=Nt.onMouseOver,st=Nt.onMouseLeave,Be=Nt.onClick,Et=Nt.onKeyDown,En=Nt.onKeyUp,sn=Nt.panelRef,Mn=Ve.useState(!1),Dt=(0,Pe.Z)(Mn,2),_t=Dt[0],jt=Dt[1],dn=Ve.useState(!1),Sn=(0,Pe.Z)(dn,2),gn=Sn[0],Ot=Sn[1];(0,ke.Z)(function(){Ot(!0)},[]);var Pn=gn?Qt:!1,Zt=Ve.useRef(),tn=Ve.useRef();(0,ke.Z)(function(){Pn&&(tn.current=document.activeElement)},[Pn]);var vn=function(ir){var nn;if(jt(ir),at==null||at(ir),!ir&&tn.current&&!((nn=Zt.current)!==null&&nn!==void 0&&nn.contains(tn.current))){var vr;(vr=tn.current)===null||vr===void 0||vr.focus({preventScroll:!0})}},$n=Ve.useMemo(function(){return{panel:sn}},[sn]);if(!ur&&!_t&&!Pn&&_e)return null;var mn={onMouseEnter:Re,onMouseOver:Xe,onMouseLeave:st,onClick:Be,onKeyDown:Et,onKeyUp:En},gt=(0,oe.Z)((0,oe.Z)({},Nt),{},{open:Pn,prefixCls:yn,placement:ft,autoFocus:Jt,keyboard:kt,width:An,mask:Vt,maskClosable:Mt,inline:Hn===!1,afterOpenChange:vn,ref:Zt},mn);return Ve.createElement(Ge.Provider,{value:$n},Ve.createElement(Ie.Z,{open:Pn||ur||_t,autoDestroy:!1,getContainer:Hn,autoLock:Vt&&(Pn||_t)},Ve.createElement(ot,gt)))},it=mt,vt=it},91574:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Sn}});var oe=ae(71409),Pe=ae(89490),Ie=ae(87075),ke=ae(11036),Ve=ae(28788),Te=ae(39224),Ge=ae(92310),lt=ae.n(Ge),Ke=/margin|padding|width|height|max|min|offset/,He={left:!0,top:!0},St={cssFloat:1,styleFloat:1,float:1};function $e(gn){return gn.nodeType===1?gn.ownerDocument.defaultView.getComputedStyle(gn,null):{}}function It(gn,Ot,Pn){if(Ot=Ot.toLowerCase(),Pn==="auto"){if(Ot==="height")return gn.offsetHeight;if(Ot==="width")return gn.offsetWidth}return Ot in He||(He[Ot]=Ke.test(Ot)),He[Ot]?parseFloat(Pn)||0:Pn}function Fe(gn,Ot){var Pn=arguments.length,Zt=$e(gn);return Ot=St[Ot]?"cssFloat"in gn.style?"cssFloat":"styleFloat":Ot,Pn===1?Zt:It(gn,Ot,Zt[Ot]||gn.style[Ot])}function te(gn,Ot,Pn){var Zt=arguments.length;if(Ot=St[Ot]?"cssFloat"in gn.style?"cssFloat":"styleFloat":Ot,Zt===3)return typeof Pn=="number"&&Ke.test(Ot)&&(Pn="".concat(Pn,"px")),gn.style[Ot]=Pn,Pn;for(var tn in Ot)Ot.hasOwnProperty(tn)&&te(gn,tn,Ot[tn]);return $e(gn)}function ee(gn){return gn===document.body?document.documentElement.clientWidth:gn.offsetWidth}function he(gn){return gn===document.body?window.innerHeight||document.documentElement.clientHeight:gn.offsetHeight}function ue(){var gn=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Ot=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:gn,height:Ot}}function fe(){var gn=document.documentElement.clientWidth,Ot=window.innerHeight||document.documentElement.clientHeight;return{width:gn,height:Ot}}function me(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function be(gn){var Ot=gn.getBoundingClientRect(),Pn=document.documentElement;return{left:Ot.left+(window.pageXOffset||Pn.scrollLeft)-(Pn.clientLeft||document.body.clientLeft||0),top:Ot.top+(window.pageYOffset||Pn.scrollTop)-(Pn.clientTop||document.body.clientTop||0)}}var Ae=ae(18929),De=ae(59301),Ye=ae(55311),nt=ae(8224),Je=ae(10228),ot=ae(43403),mt=ae(77900),it=De.createContext(null),vt=function(Ot){var Pn=Ot.visible,Zt=Ot.maskTransitionName,tn=Ot.getContainer,vn=Ot.prefixCls,$n=Ot.rootClassName,mn=Ot.icons,gt=Ot.countRender,Xn=Ot.showSwitch,ir=Ot.showProgress,nn=Ot.current,vr=Ot.transform,$r=Ot.count,Lr=Ot.scale,Rn=Ot.minScale,ei=Ot.maxScale,Jr=Ot.closeIcon,nr=Ot.onActive,Wr=Ot.onClose,oi=Ot.onZoomIn,Oe=Ot.onZoomOut,cr=Ot.onRotateRight,Cr=Ot.onRotateLeft,or=Ot.onFlipX,kr=Ot.onFlipY,Fr=Ot.onReset,Or=Ot.toolbarRender,mi=Ot.zIndex,Ti=Ot.image,hn=(0,De.useContext)(it),Cn=mn.rotateLeft,pn=mn.rotateRight,Kr=mn.zoomIn,Yr=mn.zoomOut,Vr=mn.close,dr=mn.left,Gr=mn.right,bi=mn.flipX,Ai=mn.flipY,Oi="".concat(vn,"-operations-operation");De.useEffect(function(){var zn=function(Xr){Xr.keyCode===Je.Z.ESC&&Wr()};return Pn&&window.addEventListener("keydown",zn),function(){window.removeEventListener("keydown",zn)}},[Pn]);var xt=function(vi,Xr){vi.preventDefault(),vi.stopPropagation(),nr(Xr)},on=De.useCallback(function(zn){var vi=zn.type,Xr=zn.disabled,ci=zn.onClick,Gn=zn.icon;return De.createElement("div",{key:vi,className:lt()(Oi,"".concat(vn,"-operations-operation-").concat(vi),(0,Ie.Z)({},"".concat(vn,"-operations-operation-disabled"),!!Xr)),onClick:ci},Gn)},[Oi,vn]),br=Xn?on({icon:dr,onClick:function(vi){return xt(vi,-1)},type:"prev",disabled:nn===0}):void 0,Br=Xn?on({icon:Gr,onClick:function(vi){return xt(vi,1)},type:"next",disabled:nn===$r-1}):void 0,Xt=on({icon:Ai,onClick:kr,type:"flipY"}),fr=on({icon:bi,onClick:or,type:"flipX"}),Tn=on({icon:Cn,onClick:Cr,type:"rotateLeft"}),un=on({icon:pn,onClick:cr,type:"rotateRight"}),Ue=on({icon:Yr,onClick:Oe,type:"zoomOut",disabled:Lr<=Rn}),Nr=on({icon:Kr,onClick:oi,type:"zoomIn",disabled:Lr===ei}),jr=De.createElement("div",{className:"".concat(vn,"-operations")},Xt,fr,Tn,un,Ue,Nr);return De.createElement(mt.default,{visible:Pn,motionName:Zt},function(zn){var vi=zn.className,Xr=zn.style;return De.createElement(ot.Z,{open:!0,getContainer:tn!=null?tn:document.body},De.createElement("div",{className:lt()("".concat(vn,"-operations-wrapper"),vi,$n),style:(0,Pe.Z)((0,Pe.Z)({},Xr),{},{zIndex:mi})},Jr===null?null:De.createElement("button",{className:"".concat(vn,"-close"),onClick:Wr},Jr||Vr),Xn&&De.createElement(De.Fragment,null,De.createElement("div",{className:lt()("".concat(vn,"-switch-left"),(0,Ie.Z)({},"".concat(vn,"-switch-left-disabled"),nn===0)),onClick:function(Gn){return xt(Gn,-1)}},dr),De.createElement("div",{className:lt()("".concat(vn,"-switch-right"),(0,Ie.Z)({},"".concat(vn,"-switch-right-disabled"),nn===$r-1)),onClick:function(Gn){return xt(Gn,1)}},Gr)),De.createElement("div",{className:"".concat(vn,"-footer")},ir&&De.createElement("div",{className:"".concat(vn,"-progress")},gt?gt(nn+1,$r):"".concat(nn+1," / ").concat($r)),Or?Or(jr,(0,Pe.Z)((0,Pe.Z)({icons:{prevIcon:br,nextIcon:Br,flipYIcon:Xt,flipXIcon:fr,rotateLeftIcon:Tn,rotateRightIcon:un,zoomOutIcon:Ue,zoomInIcon:Nr},actions:{onActive:nr,onFlipY:kr,onFlipX:or,onRotateLeft:Cr,onRotateRight:cr,onZoomOut:Oe,onZoomIn:oi,onReset:Fr,onClose:Wr},transform:vr},hn?{current:nn,total:$r}:{}),{},{image:Ti})):jr)))})},wt=vt,Nt=ae(13697),Ht=ae(16089),Qt={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Yt(gn,Ot,Pn,Zt){var tn=(0,De.useRef)(null),vn=(0,De.useRef)([]),$n=(0,De.useState)(Qt),mn=(0,ke.Z)($n,2),gt=mn[0],Xn=mn[1],ir=function(Lr){Xn(Qt),(0,Nt.Z)(Qt,gt)||Zt==null||Zt({transform:Qt,action:Lr})},nn=function(Lr,Rn){tn.current===null&&(vn.current=[],tn.current=(0,Ht.Z)(function(){Xn(function(ei){var Jr=ei;return vn.current.forEach(function(nr){Jr=(0,Pe.Z)((0,Pe.Z)({},Jr),nr)}),tn.current=null,Zt==null||Zt({transform:Jr,action:Rn}),Jr})})),vn.current.push((0,Pe.Z)((0,Pe.Z)({},gt),Lr))},vr=function(Lr,Rn,ei,Jr,nr){var Wr=gn.current,oi=Wr.width,Oe=Wr.height,cr=Wr.offsetWidth,Cr=Wr.offsetHeight,or=Wr.offsetLeft,kr=Wr.offsetTop,Fr=Lr,Or=gt.scale*Lr;Or>Pn?(Or=Pn,Fr=Pn/gt.scale):Or<Ot&&(Or=nr?Or:Ot,Fr=Or/gt.scale);var mi=ei!=null?ei:innerWidth/2,Ti=Jr!=null?Jr:innerHeight/2,hn=Fr-1,Cn=hn*oi*.5,pn=hn*Oe*.5,Kr=hn*(mi-gt.x-or),Yr=hn*(Ti-gt.y-kr),Vr=gt.x-(Kr-Cn),dr=gt.y-(Yr-pn);if(Lr<1&&Or===1){var Gr=cr*Or,bi=Cr*Or,Ai=fe(),Oi=Ai.width,xt=Ai.height;Gr<=Oi&&bi<=xt&&(Vr=0,dr=0)}nn({x:Vr,y:dr,scale:Or},Rn)};return{transform:gt,resetTransform:ir,updateTransform:nn,dispatchZoomChange:vr}}var yn=ae(48736);function bt(gn,Ot,Pn,Zt){var tn=Ot+Pn,vn=(Pn-Zt)/2;if(Pn>Zt){if(Ot>0)return(0,Ie.Z)({},gn,vn);if(Ot<0&&tn<Zt)return(0,Ie.Z)({},gn,-vn)}else if(Ot<0||tn>Zt)return(0,Ie.Z)({},gn,Ot<0?vn:-vn);return{}}function ft(gn,Ot,Pn,Zt){var tn=fe(),vn=tn.width,$n=tn.height,mn=null;return gn<=vn&&Ot<=$n?mn={x:0,y:0}:(gn>vn||Ot>$n)&&(mn=(0,Pe.Z)((0,Pe.Z)({},bt("x",Pn,gn,vn)),bt("y",Zt,Ot,$n))),mn}var ct=1,Jt=1;function fn(gn,Ot,Pn,Zt,tn,vn,$n){var mn=tn.rotate,gt=tn.scale,Xn=tn.x,ir=tn.y,nn=(0,De.useState)(!1),vr=(0,ke.Z)(nn,2),$r=vr[0],Lr=vr[1],Rn=(0,De.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),ei=function(Oe){!Ot||Oe.button!==0||(Oe.preventDefault(),Oe.stopPropagation(),Rn.current={diffX:Oe.pageX-Xn,diffY:Oe.pageY-ir,transformX:Xn,transformY:ir},Lr(!0))},Jr=function(Oe){Pn&&$r&&vn({x:Oe.pageX-Rn.current.diffX,y:Oe.pageY-Rn.current.diffY},"move")},nr=function(){if(Pn&&$r){Lr(!1);var Oe=Rn.current,cr=Oe.transformX,Cr=Oe.transformY,or=Xn!==cr&&ir!==Cr;if(!or)return;var kr=gn.current.offsetWidth*gt,Fr=gn.current.offsetHeight*gt,Or=gn.current.getBoundingClientRect(),mi=Or.left,Ti=Or.top,hn=mn%180!==0,Cn=ft(hn?Fr:kr,hn?kr:Fr,mi,Ti);Cn&&vn((0,Pe.Z)({},Cn),"dragRebound")}},Wr=function(Oe){if(!(!Pn||Oe.deltaY==0)){var cr=Math.abs(Oe.deltaY/100),Cr=Math.min(cr,Jt),or=ct+Cr*Zt;Oe.deltaY>0&&(or=ct/or),$n(or,"wheel",Oe.clientX,Oe.clientY)}};return(0,De.useEffect)(function(){var oi,Oe,cr,Cr;if(Ot){cr=(0,nt.Z)(window,"mouseup",nr,!1),Cr=(0,nt.Z)(window,"mousemove",Jr,!1);try{window.top!==window.self&&(oi=(0,nt.Z)(window.top,"mouseup",nr,!1),Oe=(0,nt.Z)(window.top,"mousemove",Jr,!1))}catch(or){(0,yn.Kp)(!1,"[rc-image] ".concat(or))}}return function(){var or,kr,Fr,Or;(or=cr)===null||or===void 0||or.remove(),(kr=Cr)===null||kr===void 0||kr.remove(),(Fr=oi)===null||Fr===void 0||Fr.remove(),(Or=Oe)===null||Or===void 0||Or.remove()}},[Pn,$r,Xn,ir,mn,Ot]),{isMoving:$r,onMouseDown:ei,onMouseMove:Jr,onMouseUp:nr,onWheel:Wr}}function kt(gn){return new Promise(function(Ot){if(!gn){Ot(!1);return}var Pn=document.createElement("img");Pn.onerror=function(){return Ot(!1)},Pn.onload=function(){return Ot(!0)},Pn.src=gn})}function bn(gn){var Ot=gn.src,Pn=gn.isCustomPlaceholder,Zt=gn.fallback,tn=(0,De.useState)(Pn?"loading":"normal"),vn=(0,ke.Z)(tn,2),$n=vn[0],mn=vn[1],gt=(0,De.useRef)(!1),Xn=$n==="error";(0,De.useEffect)(function(){var $r=!0;return kt(Ot).then(function(Lr){!Lr&&$r&&mn("error")}),function(){$r=!1}},[Ot]),(0,De.useEffect)(function(){Pn&&!gt.current?mn("loading"):Xn&&mn("normal")},[Ot]);var ir=function(){mn("normal")},nn=function(Lr){gt.current=!1,$n==="loading"&&Lr!==null&&Lr!==void 0&&Lr.complete&&(Lr.naturalWidth||Lr.naturalHeight)&&(gt.current=!0,ir())},vr=Xn&&Zt?{src:Zt}:{onLoad:ir,src:Ot};return[nn,vr,$n]}function An(gn,Ot){var Pn=gn.x-Ot.x,Zt=gn.y-Ot.y;return Math.hypot(Pn,Zt)}function Yn(gn,Ot,Pn,Zt){var tn=An(gn,Pn),vn=An(Ot,Zt);if(tn===0&&vn===0)return[gn.x,gn.y];var $n=tn/(tn+vn),mn=gn.x+$n*(Ot.x-gn.x),gt=gn.y+$n*(Ot.y-gn.y);return[mn,gt]}function Vt(gn,Ot,Pn,Zt,tn,vn,$n){var mn=tn.rotate,gt=tn.scale,Xn=tn.x,ir=tn.y,nn=(0,De.useState)(!1),vr=(0,ke.Z)(nn,2),$r=vr[0],Lr=vr[1],Rn=(0,De.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),ei=function(Oe){Rn.current=(0,Pe.Z)((0,Pe.Z)({},Rn.current),Oe)},Jr=function(Oe){if(Ot){Oe.stopPropagation(),Lr(!0);var cr=Oe.touches,Cr=cr===void 0?[]:cr;Cr.length>1?ei({point1:{x:Cr[0].clientX,y:Cr[0].clientY},point2:{x:Cr[1].clientX,y:Cr[1].clientY},eventType:"touchZoom"}):ei({point1:{x:Cr[0].clientX-Xn,y:Cr[0].clientY-ir},eventType:"move"})}},nr=function(Oe){var cr=Oe.touches,Cr=cr===void 0?[]:cr,or=Rn.current,kr=or.point1,Fr=or.point2,Or=or.eventType;if(Cr.length>1&&Or==="touchZoom"){var mi={x:Cr[0].clientX,y:Cr[0].clientY},Ti={x:Cr[1].clientX,y:Cr[1].clientY},hn=Yn(kr,Fr,mi,Ti),Cn=(0,ke.Z)(hn,2),pn=Cn[0],Kr=Cn[1],Yr=An(mi,Ti)/An(kr,Fr);$n(Yr,"touchZoom",pn,Kr,!0),ei({point1:mi,point2:Ti,eventType:"touchZoom"})}else Or==="move"&&(vn({x:Cr[0].clientX-kr.x,y:Cr[0].clientY-kr.y},"move"),ei({eventType:"move"}))},Wr=function(){if(Pn){if($r&&Lr(!1),ei({eventType:"none"}),Zt>gt)return vn({x:0,y:0,scale:Zt},"touchZoom");var Oe=gn.current.offsetWidth*gt,cr=gn.current.offsetHeight*gt,Cr=gn.current.getBoundingClientRect(),or=Cr.left,kr=Cr.top,Fr=mn%180!==0,Or=ft(Fr?cr:Oe,Fr?Oe:cr,or,kr);Or&&vn((0,Pe.Z)({},Or),"dragRebound")}};return(0,De.useEffect)(function(){var oi;return Pn&&Ot&&(oi=(0,nt.Z)(window,"touchmove",function(Oe){return Oe.preventDefault()},{passive:!1})),function(){var Oe;(Oe=oi)===null||Oe===void 0||Oe.remove()}},[Pn,Ot]),{isTouching:$r,onTouchStart:Jr,onTouchMove:nr,onTouchEnd:Wr}}var Bn=["fallback","src","imgRef"],Mt=["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"],Hn=function(Ot){var Pn=Ot.fallback,Zt=Ot.src,tn=Ot.imgRef,vn=(0,Te.Z)(Ot,Bn),$n=bn({src:Zt,fallback:Pn}),mn=(0,ke.Z)($n,2),gt=mn[0],Xn=mn[1];return De.createElement("img",(0,oe.Z)({ref:function(nn){tn.current=nn,gt(nn)}},vn,Xn))},ur=function(Ot){var Pn=Ot.prefixCls,Zt=Ot.src,tn=Ot.alt,vn=Ot.imageInfo,$n=Ot.fallback,mn=Ot.movable,gt=mn===void 0?!0:mn,Xn=Ot.onClose,ir=Ot.visible,nn=Ot.icons,vr=nn===void 0?{}:nn,$r=Ot.rootClassName,Lr=Ot.closeIcon,Rn=Ot.getContainer,ei=Ot.current,Jr=ei===void 0?0:ei,nr=Ot.count,Wr=nr===void 0?1:nr,oi=Ot.countRender,Oe=Ot.scaleStep,cr=Oe===void 0?.5:Oe,Cr=Ot.minScale,or=Cr===void 0?1:Cr,kr=Ot.maxScale,Fr=kr===void 0?50:kr,Or=Ot.transitionName,mi=Or===void 0?"zoom":Or,Ti=Ot.maskTransitionName,hn=Ti===void 0?"fade":Ti,Cn=Ot.imageRender,pn=Ot.imgCommonProps,Kr=Ot.toolbarRender,Yr=Ot.onTransform,Vr=Ot.onChange,dr=(0,Te.Z)(Ot,Mt),Gr=(0,De.useRef)(),bi=(0,De.useContext)(it),Ai=bi&&Wr>1,Oi=bi&&Wr>=1,xt=(0,De.useState)(!0),on=(0,ke.Z)(xt,2),br=on[0],Br=on[1],Xt=Yt(Gr,or,Fr,Yr),fr=Xt.transform,Tn=Xt.resetTransform,un=Xt.updateTransform,Ue=Xt.dispatchZoomChange,Nr=fn(Gr,gt,ir,cr,fr,un,Ue),jr=Nr.isMoving,zn=Nr.onMouseDown,vi=Nr.onWheel,Xr=Vt(Gr,gt,ir,or,fr,un,Ue),ci=Xr.isTouching,Gn=Xr.onTouchStart,cn=Xr.onTouchMove,Ci=Xr.onTouchEnd,ji=fr.rotate,Qn=fr.scale,zr=lt()((0,Ie.Z)({},"".concat(Pn,"-moving"),jr));(0,De.useEffect)(function(){br||Br(!0)},[br]);var si=function(){Tn("close")},di=function(){Ue(ct+cr,"zoomIn")},ti=function(){Ue(ct/(ct+cr),"zoomOut")},ki=function(){un({rotate:ji+90},"rotateRight")},Bi=function(){un({rotate:ji-90},"rotateLeft")},Zi=function(){un({flipX:!fr.flipX},"flipX")},Fi=function(){un({flipY:!fr.flipY},"flipY")},Vi=function(){Tn("reset")},er=function(po){var ho=Jr+po;!Number.isInteger(ho)||ho<0||ho>Wr-1||(Br(!1),Tn(po<0?"prev":"next"),Vr==null||Vr(ho,Jr))},_i=function(po){!ir||!Ai||(po.keyCode===Je.Z.LEFT?er(-1):po.keyCode===Je.Z.RIGHT&&er(1))},ar=function(po){ir&&(Qn!==1?un({x:0,y:0,scale:1},"doubleClick"):Ue(ct+cr,"doubleClick",po.clientX,po.clientY))};(0,De.useEffect)(function(){var Ui=(0,nt.Z)(window,"keydown",_i,!1);return function(){Ui.remove()}},[ir,Ai,Jr]);var Ei=De.createElement(Hn,(0,oe.Z)({},pn,{width:Ot.width,height:Ot.height,imgRef:Gr,className:"".concat(Pn,"-img"),alt:tn,style:{transform:"translate3d(".concat(fr.x,"px, ").concat(fr.y,"px, 0) scale3d(").concat(fr.flipX?"-":"").concat(Qn,", ").concat(fr.flipY?"-":"").concat(Qn,", 1) rotate(").concat(ji,"deg)"),transitionDuration:(!br||ci)&&"0s"},fallback:$n,src:Zt,onWheel:vi,onMouseDown:zn,onDoubleClick:ar,onTouchStart:Gn,onTouchMove:cn,onTouchEnd:Ci,onTouchCancel:Ci})),Gi=(0,Pe.Z)({url:Zt,alt:tn},vn);return De.createElement(De.Fragment,null,De.createElement(Ye.Z,(0,oe.Z)({transitionName:mi,maskTransitionName:hn,closable:!1,keyboard:!0,prefixCls:Pn,onClose:Xn,visible:ir,classNames:{wrapper:zr},rootClassName:$r,getContainer:Rn},dr,{afterClose:si}),De.createElement("div",{className:"".concat(Pn,"-img-wrapper")},Cn?Cn(Ei,(0,Pe.Z)({transform:fr,image:Gi},bi?{current:Jr}:{})):Ei)),De.createElement(wt,{visible:ir,transform:fr,maskTransitionName:hn,closeIcon:Lr,getContainer:Rn,prefixCls:Pn,rootClassName:$r,icons:vr,countRender:oi,showSwitch:Ai,showProgress:Oi,current:Jr,count:Wr,scale:Qn,minScale:or,maxScale:Fr,toolbarRender:Kr,onActive:er,onZoomIn:di,onZoomOut:ti,onRotateRight:ki,onRotateLeft:Bi,onFlipX:Zi,onFlipY:Fi,onClose:Xn,onReset:Vi,zIndex:dr.zIndex!==void 0?dr.zIndex+1:void 0,image:Gi}))},at=ur,_e=ae(62730),Re=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function Xe(gn){var Ot=De.useState({}),Pn=(0,ke.Z)(Ot,2),Zt=Pn[0],tn=Pn[1],vn=De.useCallback(function(mn,gt){return tn(function(Xn){return(0,Pe.Z)((0,Pe.Z)({},Xn),{},(0,Ie.Z)({},mn,gt))}),function(){tn(function(Xn){var ir=(0,Pe.Z)({},Xn);return delete ir[mn],ir})}},[]),$n=De.useMemo(function(){return gn?gn.map(function(mn){if(typeof mn=="string")return{data:{src:mn}};var gt={};return Object.keys(mn).forEach(function(Xn){["src"].concat((0,_e.Z)(Re)).includes(Xn)&&(gt[Xn]=mn[Xn])}),{data:gt}}):Object.keys(Zt).reduce(function(mn,gt){var Xn=Zt[gt],ir=Xn.canPreview,nn=Xn.data;return ir&&mn.push({data:nn,id:gt}),mn},[])},[gn,Zt]);return[$n,vn,!!gn]}var st=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Be=["src"],Et=function(Ot){var Pn,Zt=Ot.previewPrefixCls,tn=Zt===void 0?"rc-image-preview":Zt,vn=Ot.children,$n=Ot.icons,mn=$n===void 0?{}:$n,gt=Ot.items,Xn=Ot.preview,ir=Ot.fallback,nn=(0,Ve.Z)(Xn)==="object"?Xn:{},vr=nn.visible,$r=nn.onVisibleChange,Lr=nn.getContainer,Rn=nn.current,ei=nn.movable,Jr=nn.minScale,nr=nn.maxScale,Wr=nn.countRender,oi=nn.closeIcon,Oe=nn.onChange,cr=nn.onTransform,Cr=nn.toolbarRender,or=nn.imageRender,kr=(0,Te.Z)(nn,st),Fr=Xe(gt),Or=(0,ke.Z)(Fr,3),mi=Or[0],Ti=Or[1],hn=Or[2],Cn=(0,Ae.Z)(0,{value:Rn}),pn=(0,ke.Z)(Cn,2),Kr=pn[0],Yr=pn[1],Vr=(0,De.useState)(!1),dr=(0,ke.Z)(Vr,2),Gr=dr[0],bi=dr[1],Ai=((Pn=mi[Kr])===null||Pn===void 0?void 0:Pn.data)||{},Oi=Ai.src,xt=(0,Te.Z)(Ai,Be),on=(0,Ae.Z)(!!vr,{value:vr,onChange:function(ci,Gn){$r==null||$r(ci,Gn,Kr)}}),br=(0,ke.Z)(on,2),Br=br[0],Xt=br[1],fr=(0,De.useState)(null),Tn=(0,ke.Z)(fr,2),un=Tn[0],Ue=Tn[1],Nr=De.useCallback(function(Xr,ci,Gn,cn){var Ci=hn?mi.findIndex(function(ji){return ji.data.src===ci}):mi.findIndex(function(ji){return ji.id===Xr});Yr(Ci<0?0:Ci),Xt(!0),Ue({x:Gn,y:cn}),bi(!0)},[mi,hn]);De.useEffect(function(){Br?Gr||Yr(0):bi(!1)},[Br]);var jr=function(ci,Gn){Yr(ci),Oe==null||Oe(ci,Gn)},zn=function(){Xt(!1),Ue(null)},vi=De.useMemo(function(){return{register:Ti,onPreview:Nr}},[Ti,Nr]);return De.createElement(it.Provider,{value:vi},vn,De.createElement(at,(0,oe.Z)({"aria-hidden":!Br,movable:ei,visible:Br,prefixCls:tn,closeIcon:oi,onClose:zn,mousePosition:un,imgCommonProps:xt,src:Oi,fallback:ir,icons:mn,minScale:Jr,maxScale:nr,getContainer:Lr,current:Kr,count:mi.length,countRender:Wr,onTransform:cr,toolbarRender:Cr,imageRender:or,onChange:jr},kr)))},En=Et,sn=0;function Mn(gn,Ot){var Pn=De.useState(function(){return sn+=1,String(sn)}),Zt=(0,ke.Z)(Pn,1),tn=Zt[0],vn=De.useContext(it),$n={data:Ot,canPreview:gn};return De.useEffect(function(){if(vn)return vn.register(tn,$n)},[]),De.useEffect(function(){vn&&vn.register(tn,$n)},[gn,Ot]),tn}var Dt=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],_t=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],jt=function(Ot){var Pn=Ot.src,Zt=Ot.alt,tn=Ot.onPreviewClose,vn=Ot.prefixCls,$n=vn===void 0?"rc-image":vn,mn=Ot.previewPrefixCls,gt=mn===void 0?"".concat($n,"-preview"):mn,Xn=Ot.placeholder,ir=Ot.fallback,nn=Ot.width,vr=Ot.height,$r=Ot.style,Lr=Ot.preview,Rn=Lr===void 0?!0:Lr,ei=Ot.className,Jr=Ot.onClick,nr=Ot.onError,Wr=Ot.wrapperClassName,oi=Ot.wrapperStyle,Oe=Ot.rootClassName,cr=(0,Te.Z)(Ot,Dt),Cr=Xn&&Xn!==!0,or=(0,Ve.Z)(Rn)==="object"?Rn:{},kr=or.src,Fr=or.visible,Or=Fr===void 0?void 0:Fr,mi=or.onVisibleChange,Ti=mi===void 0?tn:mi,hn=or.getContainer,Cn=hn===void 0?void 0:hn,pn=or.mask,Kr=or.maskClassName,Yr=or.movable,Vr=or.icons,dr=or.scaleStep,Gr=or.minScale,bi=or.maxScale,Ai=or.imageRender,Oi=or.toolbarRender,xt=(0,Te.Z)(or,_t),on=kr!=null?kr:Pn,br=(0,Ae.Z)(!!Or,{value:Or,onChange:Ti}),Br=(0,ke.Z)(br,2),Xt=Br[0],fr=Br[1],Tn=bn({src:Pn,isCustomPlaceholder:Cr,fallback:ir}),un=(0,ke.Z)(Tn,3),Ue=un[0],Nr=un[1],jr=un[2],zn=(0,De.useState)(null),vi=(0,ke.Z)(zn,2),Xr=vi[0],ci=vi[1],Gn=(0,De.useContext)(it),cn=!!Rn,Ci=function(){fr(!1),ci(null)},ji=lt()($n,Wr,Oe,(0,Ie.Z)({},"".concat($n,"-error"),jr==="error")),Qn=(0,De.useMemo)(function(){var ti={};return Re.forEach(function(ki){Ot[ki]!==void 0&&(ti[ki]=Ot[ki])}),ti},Re.map(function(ti){return Ot[ti]})),zr=(0,De.useMemo)(function(){return(0,Pe.Z)((0,Pe.Z)({},Qn),{},{src:on})},[on,Qn]),si=Mn(cn,zr),di=function(ki){var Bi=be(ki.target),Zi=Bi.left,Fi=Bi.top;Gn?Gn.onPreview(si,on,Zi,Fi):(ci({x:Zi,y:Fi}),fr(!0)),Jr==null||Jr(ki)};return De.createElement(De.Fragment,null,De.createElement("div",(0,oe.Z)({},cr,{className:ji,onClick:cn?di:Jr,style:(0,Pe.Z)({width:nn,height:vr},oi)}),De.createElement("img",(0,oe.Z)({},Qn,{className:lt()("".concat($n,"-img"),(0,Ie.Z)({},"".concat($n,"-img-placeholder"),Xn===!0),ei),style:(0,Pe.Z)({height:vr},$r),ref:Ue},Nr,{width:nn,height:vr,onError:nr})),jr==="loading"&&De.createElement("div",{"aria-hidden":"true",className:"".concat($n,"-placeholder")},Xn),pn&&cn&&De.createElement("div",{className:lt()("".concat($n,"-mask"),Kr),style:{display:($r==null?void 0:$r.display)==="none"?"none":void 0}},pn)),!Gn&&cn&&De.createElement(at,(0,oe.Z)({"aria-hidden":!Xt,visible:Xt,prefixCls:gt,onClose:Ci,mousePosition:Xr,src:on,alt:Zt,imageInfo:{width:nn,height:vr},fallback:ir,getContainer:Cn,icons:Vr,movable:Yr,scaleStep:dr,minScale:Gr,maxScale:bi,rootClassName:Oe,imageRender:Ai,imgCommonProps:Qn,toolbarRender:Oi},xt)))};jt.PreviewGroup=En;var dn=jt,Sn=dn},23425:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Ye}});var oe=ae(87075),Pe=ae(71409),Ie=ae(28788),ke=ae(89490),Ve=ae(11036),Te=ae(92310),Ge=ae.n(Te),lt=ae(18929),Ke=ae(10228),He=ae(26112),St=ae(48736),$e=ae(59301),It=ae(17119),Fe=[10,20,50,100],te=function(Je){var ot=Je.pageSizeOptions,mt=ot===void 0?Fe:ot,it=Je.locale,vt=Je.changeSize,wt=Je.pageSize,Nt=Je.goButton,Ht=Je.quickGo,Qt=Je.rootPrefixCls,Yt=Je.disabled,yn=Je.buildOptionText,bt=Je.showSizeChanger,ft=Je.sizeChangerRender,ct=$e.useState(""),Jt=(0,Ve.Z)(ct,2),fn=Jt[0],kt=Jt[1],bn=function(){return!fn||Number.isNaN(fn)?void 0:Number(fn)},An=typeof yn=="function"?yn:function(Re){return"".concat(Re," ").concat(it.items_per_page)},Yn=function(Xe){kt(Xe.target.value)},Vt=function(Xe){Nt||fn===""||(kt(""),!(Xe.relatedTarget&&(Xe.relatedTarget.className.indexOf("".concat(Qt,"-item-link"))>=0||Xe.relatedTarget.className.indexOf("".concat(Qt,"-item"))>=0))&&(Ht==null||Ht(bn())))},Bn=function(Xe){fn!==""&&(Xe.keyCode===Ke.Z.ENTER||Xe.type==="click")&&(kt(""),Ht==null||Ht(bn()))},Mt=function(){return mt.some(function(Xe){return Xe.toString()===wt.toString()})?mt:mt.concat([wt]).sort(function(Xe,st){var Be=Number.isNaN(Number(Xe))?0:Number(Xe),Et=Number.isNaN(Number(st))?0:Number(st);return Be-Et})},Hn="".concat(Qt,"-options");if(!bt&&!Ht)return null;var ur=null,at=null,_e=null;return bt&&ft&&(ur=ft({disabled:Yt,size:wt,onSizeChange:function(Xe){vt==null||vt(Number(Xe))},"aria-label":it.page_size,className:"".concat(Hn,"-size-changer"),options:Mt().map(function(Re){return{label:An(Re),value:Re}})})),Ht&&(Nt&&(_e=typeof Nt=="boolean"?$e.createElement("button",{type:"button",onClick:Bn,onKeyUp:Bn,disabled:Yt,className:"".concat(Hn,"-quick-jumper-button")},it.jump_to_confirm):$e.createElement("span",{onClick:Bn,onKeyUp:Bn},Nt)),at=$e.createElement("div",{className:"".concat(Hn,"-quick-jumper")},it.jump_to,$e.createElement("input",{disabled:Yt,type:"text",value:fn,onChange:Yn,onKeyUp:Bn,onBlur:Vt,"aria-label":it.page}),it.page,_e)),$e.createElement("li",{className:Hn},ur,at)},ee=te,he=function(Je){var ot=Je.rootPrefixCls,mt=Je.page,it=Je.active,vt=Je.className,wt=Je.showTitle,Nt=Je.onClick,Ht=Je.onKeyPress,Qt=Je.itemRender,Yt="".concat(ot,"-item"),yn=Ge()(Yt,"".concat(Yt,"-").concat(mt),(0,oe.Z)((0,oe.Z)({},"".concat(Yt,"-active"),it),"".concat(Yt,"-disabled"),!mt),vt),bt=function(){Nt(mt)},ft=function(fn){Ht(fn,Nt,mt)},ct=Qt(mt,"page",$e.createElement("a",{rel:"nofollow"},mt));return ct?$e.createElement("li",{title:wt?String(mt):null,className:yn,onClick:bt,onKeyDown:ft,tabIndex:0},ct):null},ue=he,fe=function(Je,ot,mt){return mt};function me(){}function be(nt){var Je=Number(nt);return typeof Je=="number"&&!Number.isNaN(Je)&&isFinite(Je)&&Math.floor(Je)===Je}function Ae(nt,Je,ot){var mt=typeof nt=="undefined"?Je:nt;return Math.floor((ot-1)/mt)+1}var De=function(Je){var ot=Je.prefixCls,mt=ot===void 0?"rc-pagination":ot,it=Je.selectPrefixCls,vt=it===void 0?"rc-select":it,wt=Je.className,Nt=Je.current,Ht=Je.defaultCurrent,Qt=Ht===void 0?1:Ht,Yt=Je.total,yn=Yt===void 0?0:Yt,bt=Je.pageSize,ft=Je.defaultPageSize,ct=ft===void 0?10:ft,Jt=Je.onChange,fn=Jt===void 0?me:Jt,kt=Je.hideOnSinglePage,bn=Je.align,An=Je.showPrevNextJumpers,Yn=An===void 0?!0:An,Vt=Je.showQuickJumper,Bn=Je.showLessItems,Mt=Je.showTitle,Hn=Mt===void 0?!0:Mt,ur=Je.onShowSizeChange,at=ur===void 0?me:ur,_e=Je.locale,Re=_e===void 0?It.Z:_e,Xe=Je.style,st=Je.totalBoundaryShowSizeChanger,Be=st===void 0?50:st,Et=Je.disabled,En=Je.simple,sn=Je.showTotal,Mn=Je.showSizeChanger,Dt=Mn===void 0?yn>Be:Mn,_t=Je.sizeChangerRender,jt=Je.pageSizeOptions,dn=Je.itemRender,Sn=dn===void 0?fe:dn,gn=Je.jumpPrevIcon,Ot=Je.jumpNextIcon,Pn=Je.prevIcon,Zt=Je.nextIcon,tn=$e.useRef(null),vn=(0,lt.Z)(10,{value:bt,defaultValue:ct}),$n=(0,Ve.Z)(vn,2),mn=$n[0],gt=$n[1],Xn=(0,lt.Z)(1,{value:Nt,defaultValue:Qt,postState:function(Gi){return Math.max(1,Math.min(Gi,Ae(void 0,mn,yn)))}}),ir=(0,Ve.Z)(Xn,2),nn=ir[0],vr=ir[1],$r=$e.useState(nn),Lr=(0,Ve.Z)($r,2),Rn=Lr[0],ei=Lr[1];(0,$e.useEffect)(function(){ei(nn)},[nn]);var Jr=fn!==me,nr="current"in Je,Wr=Math.max(1,nn-(Bn?3:5)),oi=Math.min(Ae(void 0,mn,yn),nn+(Bn?3:5));function Oe(Ei,Gi){var Ui=Ei||$e.createElement("button",{type:"button","aria-label":Gi,className:"".concat(mt,"-item-link")});return typeof Ei=="function"&&(Ui=$e.createElement(Ei,(0,ke.Z)({},Je))),Ui}function cr(Ei){var Gi=Ei.target.value,Ui=Ae(void 0,mn,yn),po;return Gi===""?po=Gi:Number.isNaN(Number(Gi))?po=Rn:Gi>=Ui?po=Ui:po=Number(Gi),po}function Cr(Ei){return be(Ei)&&Ei!==nn&&be(yn)&&yn>0}var or=yn>mn?Vt:!1;function kr(Ei){(Ei.keyCode===Ke.Z.UP||Ei.keyCode===Ke.Z.DOWN)&&Ei.preventDefault()}function Fr(Ei){var Gi=cr(Ei);switch(Gi!==Rn&&ei(Gi),Ei.keyCode){case Ke.Z.ENTER:Ti(Gi);break;case Ke.Z.UP:Ti(Gi-1);break;case Ke.Z.DOWN:Ti(Gi+1);break;default:break}}function Or(Ei){Ti(cr(Ei))}function mi(Ei){var Gi=Ae(Ei,mn,yn),Ui=nn>Gi&&Gi!==0?Gi:nn;gt(Ei),ei(Ui),at==null||at(nn,Ei),vr(Ui),fn==null||fn(Ui,Ei)}function Ti(Ei){if(Cr(Ei)&&!Et){var Gi=Ae(void 0,mn,yn),Ui=Ei;return Ei>Gi?Ui=Gi:Ei<1&&(Ui=1),Ui!==Rn&&ei(Ui),vr(Ui),fn==null||fn(Ui,mn),Ui}return nn}var hn=nn>1,Cn=nn<Ae(void 0,mn,yn);function pn(){hn&&Ti(nn-1)}function Kr(){Cn&&Ti(nn+1)}function Yr(){Ti(Wr)}function Vr(){Ti(oi)}function dr(Ei,Gi){if(Ei.key==="Enter"||Ei.charCode===Ke.Z.ENTER||Ei.keyCode===Ke.Z.ENTER){for(var Ui=arguments.length,po=new Array(Ui>2?Ui-2:0),ho=2;ho<Ui;ho++)po[ho-2]=arguments[ho];Gi.apply(void 0,po)}}function Gr(Ei){dr(Ei,pn)}function bi(Ei){dr(Ei,Kr)}function Ai(Ei){dr(Ei,Yr)}function Oi(Ei){dr(Ei,Vr)}function xt(Ei){var Gi=Sn(Ei,"prev",Oe(Pn,"prev page"));return $e.isValidElement(Gi)?$e.cloneElement(Gi,{disabled:!hn}):Gi}function on(Ei){var Gi=Sn(Ei,"next",Oe(Zt,"next page"));return $e.isValidElement(Gi)?$e.cloneElement(Gi,{disabled:!Cn}):Gi}function br(Ei){(Ei.type==="click"||Ei.keyCode===Ke.Z.ENTER)&&Ti(Rn)}var Br=null,Xt=(0,He.Z)(Je,{aria:!0,data:!0}),fr=sn&&$e.createElement("li",{className:"".concat(mt,"-total-text")},sn(yn,[yn===0?0:(nn-1)*mn+1,nn*mn>yn?yn:nn*mn])),Tn=null,un=Ae(void 0,mn,yn);if(kt&&yn<=mn)return null;var Ue=[],Nr={rootPrefixCls:mt,onClick:Ti,onKeyPress:dr,showTitle:Hn,itemRender:Sn,page:-1},jr=nn-1>0?nn-1:0,zn=nn+1<un?nn+1:un,vi=Vt&&Vt.goButton,Xr=(0,Ie.Z)(En)==="object"?En.readOnly:!En,ci=vi,Gn=null;En&&(vi&&(typeof vi=="boolean"?ci=$e.createElement("button",{type:"button",onClick:br,onKeyUp:br},Re.jump_to_confirm):ci=$e.createElement("span",{onClick:br,onKeyUp:br},vi),ci=$e.createElement("li",{title:Hn?"".concat(Re.jump_to).concat(nn,"/").concat(un):null,className:"".concat(mt,"-simple-pager")},ci)),Gn=$e.createElement("li",{title:Hn?"".concat(nn,"/").concat(un):null,className:"".concat(mt,"-simple-pager")},Xr?Rn:$e.createElement("input",{type:"text","aria-label":Re.jump_to,value:Rn,disabled:Et,onKeyDown:kr,onKeyUp:Fr,onChange:Fr,onBlur:Or,size:3}),$e.createElement("span",{className:"".concat(mt,"-slash")},"/"),un));var cn=Bn?1:2;if(un<=3+cn*2){un||Ue.push($e.createElement(ue,(0,Pe.Z)({},Nr,{key:"noPager",page:1,className:"".concat(mt,"-item-disabled")})));for(var Ci=1;Ci<=un;Ci+=1)Ue.push($e.createElement(ue,(0,Pe.Z)({},Nr,{key:Ci,page:Ci,active:nn===Ci})))}else{var ji=Bn?Re.prev_3:Re.prev_5,Qn=Bn?Re.next_3:Re.next_5,zr=Sn(Wr,"jump-prev",Oe(gn,"prev page")),si=Sn(oi,"jump-next",Oe(Ot,"next page"));Yn&&(Br=zr?$e.createElement("li",{title:Hn?ji:null,key:"prev",onClick:Yr,tabIndex:0,onKeyDown:Ai,className:Ge()("".concat(mt,"-jump-prev"),(0,oe.Z)({},"".concat(mt,"-jump-prev-custom-icon"),!!gn))},zr):null,Tn=si?$e.createElement("li",{title:Hn?Qn:null,key:"next",onClick:Vr,tabIndex:0,onKeyDown:Oi,className:Ge()("".concat(mt,"-jump-next"),(0,oe.Z)({},"".concat(mt,"-jump-next-custom-icon"),!!Ot))},si):null);var di=Math.max(1,nn-cn),ti=Math.min(nn+cn,un);nn-1<=cn&&(ti=1+cn*2),un-nn<=cn&&(di=un-cn*2);for(var ki=di;ki<=ti;ki+=1)Ue.push($e.createElement(ue,(0,Pe.Z)({},Nr,{key:ki,page:ki,active:nn===ki})));if(nn-1>=cn*2&&nn!==3&&(Ue[0]=$e.cloneElement(Ue[0],{className:Ge()("".concat(mt,"-item-after-jump-prev"),Ue[0].props.className)}),Ue.unshift(Br)),un-nn>=cn*2&&nn!==un-2){var Bi=Ue[Ue.length-1];Ue[Ue.length-1]=$e.cloneElement(Bi,{className:Ge()("".concat(mt,"-item-before-jump-next"),Bi.props.className)}),Ue.push(Tn)}di!==1&&Ue.unshift($e.createElement(ue,(0,Pe.Z)({},Nr,{key:1,page:1}))),ti!==un&&Ue.push($e.createElement(ue,(0,Pe.Z)({},Nr,{key:un,page:un})))}var Zi=xt(jr);if(Zi){var Fi=!hn||!un;Zi=$e.createElement("li",{title:Hn?Re.prev_page:null,onClick:pn,tabIndex:Fi?null:0,onKeyDown:Gr,className:Ge()("".concat(mt,"-prev"),(0,oe.Z)({},"".concat(mt,"-disabled"),Fi)),"aria-disabled":Fi},Zi)}var Vi=on(zn);if(Vi){var er,_i;En?(er=!Cn,_i=hn?0:null):(er=!Cn||!un,_i=er?null:0),Vi=$e.createElement("li",{title:Hn?Re.next_page:null,onClick:Kr,tabIndex:_i,onKeyDown:bi,className:Ge()("".concat(mt,"-next"),(0,oe.Z)({},"".concat(mt,"-disabled"),er)),"aria-disabled":er},Vi)}var ar=Ge()(mt,wt,(0,oe.Z)((0,oe.Z)((0,oe.Z)((0,oe.Z)((0,oe.Z)({},"".concat(mt,"-start"),bn==="start"),"".concat(mt,"-center"),bn==="center"),"".concat(mt,"-end"),bn==="end"),"".concat(mt,"-simple"),En),"".concat(mt,"-disabled"),Et));return $e.createElement("ul",(0,Pe.Z)({className:ar,style:Xe,ref:tn},Xt),fr,Zi,En?Gn:Ue,Vi,$e.createElement(ee,{locale:Re,rootPrefixCls:mt,disabled:Et,selectPrefixCls:vt,changeSize:mi,pageSize:mn,pageSizeOptions:jt,quickGo:or?Ti:null,goButton:ci,showSizeChanger:Dt,sizeChangerRender:_t}))},Ye=De},25930:function(We,Ee,ae){"use strict";ae.d(Ee,{Cd:function(){return mt}});var oe=ae(71409),Pe=ae(89490),Ie=ae(39224),ke=ae(59301),Ve=ae(92310),Te=ae.n(Ve),Ge={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},lt=function(){var wt=(0,ke.useRef)([]),Nt=(0,ke.useRef)(null);return(0,ke.useEffect)(function(){var Ht=Date.now(),Qt=!1;wt.current.forEach(function(Yt){if(Yt){Qt=!0;var yn=Yt.style;yn.transitionDuration=".3s, .3s, .3s, .06s",Nt.current&&Ht-Nt.current<100&&(yn.transitionDuration="0s, 0s")}}),Qt&&(Nt.current=Date.now())}),wt.current},Ke=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],He=function(wt){var Nt=(0,Pe.Z)((0,Pe.Z)({},Ge),wt),Ht=Nt.className,Qt=Nt.percent,Yt=Nt.prefixCls,yn=Nt.strokeColor,bt=Nt.strokeLinecap,ft=Nt.strokeWidth,ct=Nt.style,Jt=Nt.trailColor,fn=Nt.trailWidth,kt=Nt.transition,bn=(0,Ie.Z)(Nt,Ke);delete bn.gapPosition;var An=Array.isArray(Qt)?Qt:[Qt],Yn=Array.isArray(yn)?yn:[yn],Vt=lt(),Bn=ft/2,Mt=100-ft/2,Hn="M ".concat(bt==="round"?Bn:0,",").concat(Bn,`
L `).concat(bt==="round"?Mt:100,",").concat(Bn),ur="0 0 100 ".concat(ft),at=0;return ke.createElement("svg",(0,oe.Z)({className:Te()("".concat(Yt,"-line"),Ht),viewBox:ur,preserveAspectRatio:"none",style:ct},bn),ke.createElement("path",{className:"".concat(Yt,"-line-trail"),d:Hn,strokeLinecap:bt,stroke:Jt,strokeWidth:fn||ft,fillOpacity:"0"}),An.map(function(_e,Re){var Xe=1;switch(bt){case"round":Xe=1-ft/100;break;case"square":Xe=1-ft/2/100;break;default:Xe=1;break}var st={strokeDasharray:"".concat(_e*Xe,"px, 100px"),strokeDashoffset:"-".concat(at,"px"),transition:kt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Be=Yn[Re]||Yn[Yn.length-1];return at+=_e,ke.createElement("path",{key:Re,className:"".concat(Yt,"-line-path"),d:Hn,strokeLinecap:bt,stroke:Be,strokeWidth:ft,fillOpacity:"0",ref:function(En){Vt[Re]=En},style:st})}))},St=He,$e=ae(28788),It=ae(11036),Fe=ae(47273),te=0,ee=(0,Fe.Z)();function he(){var vt;return ee?(vt=te,te+=1):vt="TEST_OR_SSR",vt}var ue=function(vt){var wt=ke.useState(),Nt=(0,It.Z)(wt,2),Ht=Nt[0],Qt=Nt[1];return ke.useEffect(function(){Qt("rc_progress_".concat(he()))},[]),vt||Ht},fe=function(wt){var Nt=wt.bg,Ht=wt.children;return ke.createElement("div",{style:{width:"100%",height:"100%",background:Nt}},Ht)};function me(vt,wt){return Object.keys(vt).map(function(Nt){var Ht=parseFloat(Nt),Qt="".concat(Math.floor(Ht*wt),"%");return"".concat(vt[Nt]," ").concat(Qt)})}var be=ke.forwardRef(function(vt,wt){var Nt=vt.prefixCls,Ht=vt.color,Qt=vt.gradientId,Yt=vt.radius,yn=vt.style,bt=vt.ptg,ft=vt.strokeLinecap,ct=vt.strokeWidth,Jt=vt.size,fn=vt.gapDegree,kt=Ht&&(0,$e.Z)(Ht)==="object",bn=kt?"#FFF":void 0,An=Jt/2,Yn=ke.createElement("circle",{className:"".concat(Nt,"-circle-path"),r:Yt,cx:An,cy:An,stroke:bn,strokeLinecap:ft,strokeWidth:ct,opacity:bt===0?0:1,style:yn,ref:wt});if(!kt)return Yn;var Vt="".concat(Qt,"-conic"),Bn=fn?"".concat(180+fn/2,"deg"):"0deg",Mt=me(Ht,(360-fn)/360),Hn=me(Ht,1),ur="conic-gradient(from ".concat(Bn,", ").concat(Mt.join(", "),")"),at="linear-gradient(to ".concat(fn?"bottom":"top",", ").concat(Hn.join(", "),")");return ke.createElement(ke.Fragment,null,ke.createElement("mask",{id:Vt},Yn),ke.createElement("foreignObject",{x:0,y:0,width:Jt,height:Jt,mask:"url(#".concat(Vt,")")},ke.createElement(fe,{bg:at},ke.createElement(fe,{bg:ur}))))}),Ae=be,De=100,Ye=function(wt,Nt,Ht,Qt,Yt,yn,bt,ft,ct,Jt){var fn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,kt=Ht/100*360*((360-yn)/360),bn=yn===0?0:{bottom:0,top:180,left:90,right:-90}[bt],An=(100-Qt)/100*Nt;ct==="round"&&Qt!==100&&(An+=Jt/2,An>=Nt&&(An=Nt-.01));var Yn=De/2;return{stroke:typeof ft=="string"?ft:void 0,strokeDasharray:"".concat(Nt,"px ").concat(wt),strokeDashoffset:An+fn,transform:"rotate(".concat(Yt+kt+bn,"deg)"),transformOrigin:"".concat(Yn,"px ").concat(Yn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},nt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Je(vt){var wt=vt!=null?vt:[];return Array.isArray(wt)?wt:[wt]}var ot=function(wt){var Nt=(0,Pe.Z)((0,Pe.Z)({},Ge),wt),Ht=Nt.id,Qt=Nt.prefixCls,Yt=Nt.steps,yn=Nt.strokeWidth,bt=Nt.trailWidth,ft=Nt.gapDegree,ct=ft===void 0?0:ft,Jt=Nt.gapPosition,fn=Nt.trailColor,kt=Nt.strokeLinecap,bn=Nt.style,An=Nt.className,Yn=Nt.strokeColor,Vt=Nt.percent,Bn=(0,Ie.Z)(Nt,nt),Mt=De/2,Hn=ue(Ht),ur="".concat(Hn,"-gradient"),at=Mt-yn/2,_e=Math.PI*2*at,Re=ct>0?90+ct/2:-90,Xe=_e*((360-ct)/360),st=(0,$e.Z)(Yt)==="object"?Yt:{count:Yt,gap:2},Be=st.count,Et=st.gap,En=Je(Vt),sn=Je(Yn),Mn=sn.find(function(Ot){return Ot&&(0,$e.Z)(Ot)==="object"}),Dt=Mn&&(0,$e.Z)(Mn)==="object",_t=Dt?"butt":kt,jt=Ye(_e,Xe,0,100,Re,ct,Jt,fn,_t,yn),dn=lt(),Sn=function(){var Pn=0;return En.map(function(Zt,tn){var vn=sn[tn]||sn[sn.length-1],$n=Ye(_e,Xe,Pn,Zt,Re,ct,Jt,vn,_t,yn);return Pn+=Zt,ke.createElement(Ae,{key:tn,color:vn,ptg:Zt,radius:at,prefixCls:Qt,gradientId:ur,style:$n,strokeLinecap:_t,strokeWidth:yn,gapDegree:ct,ref:function(gt){dn[tn]=gt},size:De})}).reverse()},gn=function(){var Pn=Math.round(Be*(En[0]/100)),Zt=100/Be,tn=0;return new Array(Be).fill(null).map(function(vn,$n){var mn=$n<=Pn-1?sn[0]:fn,gt=mn&&(0,$e.Z)(mn)==="object"?"url(#".concat(ur,")"):void 0,Xn=Ye(_e,Xe,tn,Zt,Re,ct,Jt,mn,"butt",yn,Et);return tn+=(Xe-Xn.strokeDashoffset+Et)*100/Xe,ke.createElement("circle",{key:$n,className:"".concat(Qt,"-circle-path"),r:at,cx:Mt,cy:Mt,stroke:gt,strokeWidth:yn,opacity:1,style:Xn,ref:function(nn){dn[$n]=nn}})})};return ke.createElement("svg",(0,oe.Z)({className:Te()("".concat(Qt,"-circle"),An),viewBox:"0 0 ".concat(De," ").concat(De),style:bn,id:Ht,role:"presentation"},Bn),!Be&&ke.createElement("circle",{className:"".concat(Qt,"-circle-trail"),r:at,cx:Mt,cy:Mt,stroke:fn,strokeLinecap:_t,strokeWidth:bt||yn,style:jt}),Be?gn():Sn())},mt=ot,it={Line:St,Circle:mt}},738:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return me}});var oe=ae(71409),Pe=ae(87075),Ie=ae(11036),ke=ae(39224),Ve=ae(92310),Te=ae.n(Ve),Ge=ae(18929),lt=ae(10228),Ke=ae(26112),He=ae(59301);function St(be,Ae){var De=be.disabled,Ye=be.prefixCls,nt=be.character,Je=be.characterRender,ot=be.index,mt=be.count,it=be.value,vt=be.allowHalf,wt=be.focused,Nt=be.onHover,Ht=be.onClick,Qt=function(kt){Nt(kt,ot)},Yt=function(kt){Ht(kt,ot)},yn=function(kt){kt.keyCode===lt.Z.ENTER&&Ht(kt,ot)},bt=ot+1,ft=new Set([Ye]);it===0&&ot===0&&wt?ft.add("".concat(Ye,"-focused")):vt&&it+.5>=bt&&it<bt?(ft.add("".concat(Ye,"-half")),ft.add("".concat(Ye,"-active")),wt&&ft.add("".concat(Ye,"-focused"))):(bt<=it?ft.add("".concat(Ye,"-full")):ft.add("".concat(Ye,"-zero")),bt===it&&wt&&ft.add("".concat(Ye,"-focused")));var ct=typeof nt=="function"?nt(be):nt,Jt=He.createElement("li",{className:Te()(Array.from(ft)),ref:Ae},He.createElement("div",{onClick:De?null:Yt,onKeyDown:De?null:yn,onMouseMove:De?null:Qt,role:"radio","aria-checked":it>ot?"true":"false","aria-posinset":ot+1,"aria-setsize":mt,tabIndex:De?-1:0},He.createElement("div",{className:"".concat(Ye,"-first")},ct),He.createElement("div",{className:"".concat(Ye,"-second")},ct)));return Je&&(Jt=Je(Jt,be)),Jt}var $e=He.forwardRef(St);function It(){var be=He.useRef({});function Ae(Ye){return be.current[Ye]}function De(Ye){return function(nt){be.current[Ye]=nt}}return[Ae,De]}function Fe(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,nt=Ye.body,Je=Ye&&Ye.documentElement,ot=be.getBoundingClientRect();return Ae=ot.left,De=ot.top,Ae-=Je.clientLeft||nt.clientLeft||0,De-=Je.clientTop||nt.clientTop||0,{left:Ae,top:De}}function ee(be){var Ae=te(be),De=be.ownerDocument,Ye=De.defaultView||De.parentWindow;return Ae.left+=Fe(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,nt=be.className,Je=be.defaultValue,ot=be.value,mt=be.count,it=mt===void 0?5:mt,vt=be.allowHalf,wt=vt===void 0?!1:vt,Nt=be.allowClear,Ht=Nt===void 0?!0:Nt,Qt=be.keyboard,Yt=Qt===void 0?!0:Qt,yn=be.character,bt=yn===void 0?"\u2605":yn,ft=be.characterRender,ct=be.disabled,Jt=be.direction,fn=Jt===void 0?"ltr":Jt,kt=be.tabIndex,bn=kt===void 0?0:kt,An=be.autoFocus,Yn=be.onHoverChange,Vt=be.onChange,Bn=be.onFocus,Mt=be.onBlur,Hn=be.onKeyDown,ur=be.onMouseLeave,at=(0,ke.Z)(be,he),_e=It(),Re=(0,Ie.Z)(_e,2),Xe=Re[0],st=Re[1],Be=He.useRef(null),Et=function(){if(!ct){var Wr;(Wr=Be.current)===null||Wr===void 0||Wr.focus()}};He.useImperativeHandle(Ae,function(){return{focus:Et,blur:function(){if(!ct){var Wr;(Wr=Be.current)===null||Wr===void 0||Wr.blur()}}}});var En=(0,Ge.Z)(Je||0,{value:ot}),sn=(0,Ie.Z)(En,2),Mn=sn[0],Dt=sn[1],_t=(0,Ge.Z)(null),jt=(0,Ie.Z)(_t,2),dn=jt[0],Sn=jt[1],gn=function(Wr,oi){var Oe=fn==="rtl",cr=Wr+1;if(wt){var Cr=Xe(Wr),or=ee(Cr),kr=Cr.clientWidth;(Oe&&oi-or>kr/2||!Oe&&oi-or<kr/2)&&(cr-=.5)}return cr},Ot=function(Wr){Dt(Wr),Vt==null||Vt(Wr)},Pn=He.useState(!1),Zt=(0,Ie.Z)(Pn,2),tn=Zt[0],vn=Zt[1],$n=function(){vn(!0),Bn==null||Bn()},mn=function(){vn(!1),Mt==null||Mt()},gt=He.useState(null),Xn=(0,Ie.Z)(gt,2),ir=Xn[0],nn=Xn[1],vr=function(Wr,oi){var Oe=gn(oi,Wr.pageX);Oe!==dn&&(nn(Oe),Sn(null)),Yn==null||Yn(Oe)},$r=function(Wr){ct||(nn(null),Sn(null),Yn==null||Yn(void 0)),Wr&&(ur==null||ur(Wr))},Lr=function(Wr,oi){var Oe=gn(oi,Wr.pageX),cr=!1;Ht&&(cr=Oe===Mn),$r(),Ot(cr?0:Oe),Sn(cr?Oe:null)},Rn=function(Wr){var oi=Wr.keyCode,Oe=fn==="rtl",cr=wt?.5:1;Yt&&(oi===lt.Z.RIGHT&&Mn<it&&!Oe?(Ot(Mn+cr),Wr.preventDefault()):oi===lt.Z.LEFT&&Mn>0&&!Oe||oi===lt.Z.RIGHT&&Mn>0&&Oe?(Ot(Mn-cr),Wr.preventDefault()):oi===lt.Z.LEFT&&Mn<it&&Oe&&(Ot(Mn+cr),Wr.preventDefault())),Hn==null||Hn(Wr)};He.useEffect(function(){An&&!ct&&Et()},[]);var ei=new Array(it).fill(0).map(function(nr,Wr){return He.createElement($e,{ref:st(Wr),index:Wr,count:it,disabled:ct,prefixCls:"".concat(Ye,"-star"),allowHalf:wt,value:ir===null?Mn:ir,onClick:Lr,onHover:vr,key:nr||Wr,character:bt,characterRender:ft,focused:tn})}),Jr=Te()(Ye,nt,(0,Pe.Z)((0,Pe.Z)({},"".concat(Ye,"-disabled"),ct),"".concat(Ye,"-rtl"),fn==="rtl"));return He.createElement("ul",(0,oe.Z)({className:Jr,onMouseLeave:$r,tabIndex:ct?-1:bn,onFocus:ct?null:$n,onBlur:ct?null:mn,onKeyDown:ct?null:Rn,ref:Be},(0,Ke.Z)(at,{aria:!0,data:!0,attr:!0})),ei)}var fe=He.forwardRef(ue),me=fe},6551:function(We,Ee,ae){"use strict";ae.d(Ee,{ZP:function(){return Ge}});var oe=ae(11036),Pe=ae(59301),Ie=ae(47273),ke=0,Ve=(0,Ie.Z)();function Te(){var lt;return Ve?(lt=ke,ke+=1):lt="TEST_OR_SSR",lt}function Ge(lt){var Ke=Pe.useState(),He=(0,oe.Z)(Ke,2),St=He[0],$e=He[1];return Pe.useEffect(function(){$e("rc_select_".concat(Te()))},[]),lt||St}},37463:function(We,Ee,ae){"use strict";ae.d(Ee,{Ac:function(){return vn},Xo:function(){return mn},Wx:function(){return Xn},ZP:function(){return Oi},lk:function(){return me}});var oe=ae(71409),Pe=ae(62730),Ie=ae(87075),ke=ae(89490),Ve=ae(11036),Te=ae(39224),Ge=ae(28788),lt=ae(18929),Ke=ae(48736),He=ae(59301),St=ae(92310),$e=ae.n(St),It=ae(34280),Fe=ae(49658),te=ae(8654),ee=function(on){var br=on.className,Br=on.customizeIcon,Xt=on.customizeIconProps,fr=on.children,Tn=on.onMouseDown,un=on.onClick,Ue=typeof Br=="function"?Br(Xt):Br;return He.createElement("span",{className:br,onMouseDown:function(jr){jr.preventDefault(),Tn==null||Tn(jr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:un,"aria-hidden":!0},Ue!==void 0?Ue:He.createElement("span",{className:$e()(br.split(/\s+/).map(function(Nr){return"".concat(Nr,"-icon")}))},fr))},he=ee,ue=function(on,br,Br,Xt,fr){var Tn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,un=arguments.length>6?arguments[6]:void 0,Ue=arguments.length>7?arguments[7]:void 0,Nr=He.useMemo(function(){if((0,Ge.Z)(Xt)==="object")return Xt.clearIcon;if(fr)return fr},[Xt,fr]),jr=He.useMemo(function(){return!!(!Tn&&Xt&&(Br.length||un)&&!(Ue==="combobox"&&un===""))},[Xt,Tn,Br.length,un,Ue]);return{allowClear:jr,clearIcon:He.createElement(he,{className:"".concat(on,"-clear"),onMouseDown:br,customizeIcon:Nr},"\xD7")}},fe=He.createContext(null);function me(){return He.useContext(fe)}function be(){var xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,on=He.useState(!1),br=(0,Ve.Z)(on,2),Br=br[0],Xt=br[1],fr=He.useRef(null),Tn=function(){window.clearTimeout(fr.current)};He.useEffect(function(){return Tn},[]);var un=function(Nr,jr){Tn(),fr.current=window.setTimeout(function(){Xt(Nr),jr&&jr()},xt)};return[Br,un,Tn]}function Ae(){var xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,on=He.useRef(null),br=He.useRef(null);He.useEffect(function(){return function(){window.clearTimeout(br.current)}},[]);function Br(Xt){(Xt||on.current===null)&&(on.current=Xt),window.clearTimeout(br.current),br.current=window.setTimeout(function(){on.current=null},xt)}return[function(){return on.current},Br]}function De(xt,on,br,Br){var Xt=He.useRef(null);Xt.current={open:on,triggerOpen:br,customizedTrigger:Br},He.useEffect(function(){function fr(Tn){var un;if(!((un=Xt.current)!==null&&un!==void 0&&un.customizedTrigger)){var Ue=Tn.target;Ue.shadowRoot&&Tn.composed&&(Ue=Tn.composedPath()[0]||Ue),Xt.current.open&&xt().filter(function(Nr){return Nr}).every(function(Nr){return!Nr.contains(Ue)&&Nr!==Ue})&&Xt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",fr),function(){return window.removeEventListener("mousedown",fr)}},[])}var Ye=ae(10228);function nt(xt){return xt&&![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(xt)}var Je=ae(26112),ot=ae(11780);function mt(xt,on,br){var Br=(0,ke.Z)((0,ke.Z)({},xt),br?on:{});return Object.keys(on).forEach(function(Xt){var fr=on[Xt];typeof fr=="function"&&(Br[Xt]=function(){for(var Tn,un=arguments.length,Ue=new Array(un),Nr=0;Nr<un;Nr++)Ue[Nr]=arguments[Nr];return fr.apply(void 0,Ue),(Tn=xt[Xt])===null||Tn===void 0?void 0:Tn.call.apply(Tn,[xt].concat(Ue))})}),Br}var it=mt,vt=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],wt=function(on,br){var Br=on.prefixCls,Xt=on.id,fr=on.inputElement,Tn=on.autoFocus,un=on.autoComplete,Ue=on.editable,Nr=on.activeDescendantId,jr=on.value,zn=on.open,vi=on.attrs,Xr=(0,Te.Z)(on,vt),ci=fr||He.createElement("input",null),Gn=ci,cn=Gn.ref,Ci=Gn.props;return(0,Ke.Kp)(!("maxLength"in ci.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),ci=He.cloneElement(ci,(0,ke.Z)((0,ke.Z)((0,ke.Z)({type:"search"},it(Xr,Ci,!0)),{},{id:Xt,ref:(0,te.sQ)(br,cn),autoComplete:un||"off",autoFocus:Tn,className:$e()("".concat(Br,"-selection-search-input"),Ci==null?void 0:Ci.className),role:"combobox","aria-expanded":zn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Xt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Xt,"_list"),"aria-activedescendant":zn?Nr:void 0},vi),{},{value:Ue?jr:"",readOnly:!Ue,unselectable:Ue?null:"on",style:(0,ke.Z)((0,ke.Z)({},Ci.style),{},{opacity:Ue?null:0})})),ci},Nt=He.forwardRef(wt),Ht=Nt;function Qt(xt){return Array.isArray(xt)?xt:xt!==void 0?[xt]:[]}var Yt=typeof window!="undefined"&&window.document&&window.document.documentElement,yn=Yt;function bt(xt){return xt!=null}function ft(xt){return!xt&&xt!==0}function ct(xt){return["string","number"].includes((0,Ge.Z)(xt))}function Jt(xt){var on=void 0;return xt&&(ct(xt.title)?on=xt.title.toString():ct(xt.label)&&(on=xt.label.toString())),on}function fn(xt,on){yn?He.useLayoutEffect(xt,on):He.useEffect(xt,on)}function kt(xt){var on;return(on=xt.key)!==null&&on!==void 0?on:xt.value}var bn=function(on){on.preventDefault(),on.stopPropagation()},An=function(on){var br=on.id,Br=on.prefixCls,Xt=on.values,fr=on.open,Tn=on.searchValue,un=on.autoClearSearchValue,Ue=on.inputRef,Nr=on.placeholder,jr=on.disabled,zn=on.mode,vi=on.showSearch,Xr=on.autoFocus,ci=on.autoComplete,Gn=on.activeDescendantId,cn=on.tabIndex,Ci=on.removeIcon,ji=on.maxTagCount,Qn=on.maxTagTextLength,zr=on.maxTagPlaceholder,si=zr===void 0?function(xn){return"+ ".concat(xn.length," ...")}:zr,di=on.tagRender,ti=on.onToggleOpen,ki=on.onRemove,Bi=on.onInputChange,Zi=on.onInputPaste,Fi=on.onInputKeyDown,Vi=on.onInputMouseDown,er=on.onInputCompositionStart,_i=on.onInputCompositionEnd,ar=on.onInputBlur,Ei=He.useRef(null),Gi=(0,He.useState)(0),Ui=(0,Ve.Z)(Gi,2),po=Ui[0],ho=Ui[1],Qi=(0,He.useState)(!1),Ro=(0,Ve.Z)(Qi,2),Fn=Ro[0],pr=Ro[1],Ln="".concat(Br,"-selection"),rt=fr||zn==="multiple"&&un===!1||zn==="tags"?Tn:"",Hr=zn==="tags"||zn==="multiple"&&un===!1||vi&&(fr||Fn);fn(function(){ho(Ei.current.scrollWidth)},[rt]);var _r=function(wn,jn,On,sr,Un){return He.createElement("span",{title:Jt(wn),className:$e()("".concat(Ln,"-item"),(0,Ie.Z)({},"".concat(Ln,"-item-disabled"),On))},He.createElement("span",{className:"".concat(Ln,"-item-content")},jn),sr&&He.createElement(he,{className:"".concat(Ln,"-item-remove"),onMouseDown:bn,onClick:Un,customizeIcon:Ci},"\xD7"))},pi=function(wn,jn,On,sr,Un,ln){var qn=function(Ni){bn(Ni),ti(!fr)};return He.createElement("span",{onMouseDown:qn},di({label:jn,value:wn,disabled:On,closable:sr,onClose:Un,isMaxTag:!!ln}))},hi=function(wn){var jn=wn.disabled,On=wn.label,sr=wn.value,Un=!jr&&!jn,ln=On;if(typeof Qn=="number"&&(typeof On=="string"||typeof On=="number")){var qn=String(ln);qn.length>Qn&&(ln="".concat(qn.slice(0,Qn),"..."))}var Ur=function(ai){ai&&ai.stopPropagation(),ki(wn)};return typeof di=="function"?pi(sr,ln,jn,Un,Ur):_r(wn,ln,jn,Un,Ur)},ri=function(wn){if(!Xt.length)return null;var jn=typeof si=="function"?si(wn):si;return typeof di=="function"?pi(void 0,jn,!1,!1,void 0,!0):_r({title:jn},jn,!1)},yr=He.createElement("div",{className:"".concat(Ln,"-search"),style:{width:po},onFocus:function(){pr(!0)},onBlur:function(){pr(!1)}},He.createElement(Ht,{ref:Ue,open:fr,prefixCls:Br,id:br,inputElement:null,disabled:jr,autoFocus:Xr,autoComplete:ci,editable:Hr,activeDescendantId:Gn,value:rt,onKeyDown:Fi,onMouseDown:Vi,onChange:Bi,onPaste:Zi,onCompositionStart:er,onCompositionEnd:_i,onBlur:ar,tabIndex:cn,attrs:(0,Je.Z)(on,!0)}),He.createElement("span",{ref:Ei,className:"".concat(Ln,"-search-mirror"),"aria-hidden":!0},rt,"\xA0")),ht=He.createElement(ot.Z,{prefixCls:"".concat(Ln,"-overflow"),data:Xt,renderItem:hi,renderRest:ri,suffix:yr,itemKey:kt,maxCount:ji});return He.createElement("span",{className:"".concat(Ln,"-wrap")},ht,!Xt.length&&!rt&&He.createElement("span",{className:"".concat(Ln,"-placeholder")},Nr))},Yn=An,Vt=function(on){var br=on.inputElement,Br=on.prefixCls,Xt=on.id,fr=on.inputRef,Tn=on.disabled,un=on.autoFocus,Ue=on.autoComplete,Nr=on.activeDescendantId,jr=on.mode,zn=on.open,vi=on.values,Xr=on.placeholder,ci=on.tabIndex,Gn=on.showSearch,cn=on.searchValue,Ci=on.activeValue,ji=on.maxLength,Qn=on.onInputKeyDown,zr=on.onInputMouseDown,si=on.onInputChange,di=on.onInputPaste,ti=on.onInputCompositionStart,ki=on.onInputCompositionEnd,Bi=on.onInputBlur,Zi=on.title,Fi=He.useState(!1),Vi=(0,Ve.Z)(Fi,2),er=Vi[0],_i=Vi[1],ar=jr==="combobox",Ei=ar||Gn,Gi=vi[0],Ui=cn||"";ar&&Ci&&!er&&(Ui=Ci),He.useEffect(function(){ar&&_i(!1)},[ar,Ci]);var po=jr!=="combobox"&&!zn&&!Gn?!1:!!Ui,ho=Zi===void 0?Jt(Gi):Zi,Qi=He.useMemo(function(){return Gi?null:He.createElement("span",{className:"".concat(Br,"-selection-placeholder"),style:po?{visibility:"hidden"}:void 0},Xr)},[Gi,po,Xr,Br]);return He.createElement("span",{className:"".concat(Br,"-selection-wrap")},He.createElement("span",{className:"".concat(Br,"-selection-search")},He.createElement(Ht,{ref:fr,prefixCls:Br,id:Xt,open:zn,inputElement:br,disabled:Tn,autoFocus:un,autoComplete:Ue,editable:Ei,activeDescendantId:Nr,value:Ui,onKeyDown:Qn,onMouseDown:zr,onChange:function(Fn){_i(!0),si(Fn)},onPaste:di,onCompositionStart:ti,onCompositionEnd:ki,onBlur:Bi,tabIndex:ci,attrs:(0,Je.Z)(on,!0),maxLength:ar?ji:void 0})),!ar&&Gi?He.createElement("span",{className:"".concat(Br,"-selection-item"),title:ho,style:po?{visibility:"hidden"}:void 0},Gi.label):null,Qi)},Bn=Vt,Mt=function(on,br){var Br=(0,He.useRef)(null),Xt=(0,He.useRef)(!1),fr=on.prefixCls,Tn=on.open,un=on.mode,Ue=on.showSearch,Nr=on.tokenWithEnter,jr=on.disabled,zn=on.prefix,vi=on.autoClearSearchValue,Xr=on.onSearch,ci=on.onSearchSubmit,Gn=on.onToggleOpen,cn=on.onInputKeyDown,Ci=on.onInputBlur,ji=on.domRef;He.useImperativeHandle(br,function(){return{focus:function(ho){Br.current.focus(ho)},blur:function(){Br.current.blur()}}});var Qn=Ae(0),zr=(0,Ve.Z)(Qn,2),si=zr[0],di=zr[1],ti=function(ho){var Qi=ho.which,Ro=Br.current instanceof HTMLTextAreaElement;!Ro&&Tn&&(Qi===Ye.Z.UP||Qi===Ye.Z.DOWN)&&ho.preventDefault(),cn&&cn(ho),Qi===Ye.Z.ENTER&&un==="tags"&&!Xt.current&&!Tn&&(ci==null||ci(ho.target.value)),!(Ro&&!Tn&&~[Ye.Z.UP,Ye.Z.DOWN,Ye.Z.LEFT,Ye.Z.RIGHT].indexOf(Qi))&&nt(Qi)&&Gn(!0)},ki=function(){di(!0)},Bi=(0,He.useRef)(null),Zi=function(ho){Xr(ho,!0,Xt.current)!==!1&&Gn(!0)},Fi=function(){Xt.current=!0},Vi=function(ho){Xt.current=!1,un!=="combobox"&&Zi(ho.target.value)},er=function(ho){var Qi=ho.target.value;if(Nr&&Bi.current&&/[\r\n]/.test(Bi.current)){var Ro=Bi.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Qi=Qi.replace(Ro,Bi.current)}Bi.current=null,Zi(Qi)},_i=function(ho){var Qi=ho.clipboardData,Ro=Qi==null?void 0:Qi.getData("text");Bi.current=Ro||""},ar=function(ho){var Qi=ho.target;if(Qi!==Br.current){var Ro=document.body.style.msTouchAction!==void 0;Ro?setTimeout(function(){Br.current.focus()}):Br.current.focus()}},Ei=function(ho){var Qi=si();ho.target!==Br.current&&!Qi&&!(un==="combobox"&&jr)&&ho.preventDefault(),(un!=="combobox"&&(!Ue||!Qi)||!Tn)&&(Tn&&vi!==!1&&Xr("",!0,!1),Gn())},Gi={inputRef:Br,onInputKeyDown:ti,onInputMouseDown:ki,onInputChange:er,onInputPaste:_i,onInputCompositionStart:Fi,onInputCompositionEnd:Vi,onInputBlur:Ci},Ui=un==="multiple"||un==="tags"?He.createElement(Yn,(0,oe.Z)({},on,Gi)):He.createElement(Bn,(0,oe.Z)({},on,Gi));return He.createElement("div",{ref:ji,className:"".concat(fr,"-selector"),onClick:ar,onMouseDown:Ei},zn&&He.createElement("div",{className:"".concat(fr,"-prefix")},zn),Ui)},Hn=He.forwardRef(Mt),ur=Hn,at=ae(65352),_e=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Re=function(on){var br=on===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:br,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:br,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:br,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:br,adjustY:1},htmlRegion:"scroll"}}},Xe=function(on,br){var Br=on.prefixCls,Xt=on.disabled,fr=on.visible,Tn=on.children,un=on.popupElement,Ue=on.animation,Nr=on.transitionName,jr=on.dropdownStyle,zn=on.dropdownClassName,vi=on.direction,Xr=vi===void 0?"ltr":vi,ci=on.placement,Gn=on.builtinPlacements,cn=on.dropdownMatchSelectWidth,Ci=on.dropdownRender,ji=on.dropdownAlign,Qn=on.getPopupContainer,zr=on.empty,si=on.getTriggerDOMNode,di=on.onPopupVisibleChange,ti=on.onPopupMouseEnter,ki=(0,Te.Z)(on,_e),Bi="".concat(Br,"-dropdown"),Zi=un;Ci&&(Zi=Ci(un));var Fi=He.useMemo(function(){return Gn||Re(cn)},[Gn,cn]),Vi=Ue?"".concat(Bi,"-").concat(Ue):Nr,er=typeof cn=="number",_i=He.useMemo(function(){return er?null:cn===!1?"minWidth":"width"},[cn,er]),ar=jr;er&&(ar=(0,ke.Z)((0,ke.Z)({},ar),{},{width:cn}));var Ei=He.useRef(null);return He.useImperativeHandle(br,function(){return{getPopupElement:function(){var Ui;return(Ui=Ei.current)===null||Ui===void 0?void 0:Ui.popupElement}}}),He.createElement(at.Z,(0,oe.Z)({},ki,{showAction:di?["click"]:[],hideAction:di?["click"]:[],popupPlacement:ci||(Xr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Fi,prefixCls:Bi,popupTransitionName:Vi,popup:He.createElement("div",{onMouseEnter:ti},Zi),ref:Ei,stretch:_i,popupAlign:ji,popupVisible:fr,getPopupContainer:Qn,popupClassName:$e()(zn,(0,Ie.Z)({},"".concat(Bi,"-empty"),zr)),popupStyle:ar,getTriggerDOMNode:si,onPopupVisibleChange:di}),Tn)},st=He.forwardRef(Xe),Be=st,Et=ae(67900);function En(xt,on){var br=xt.key,Br;return"value"in xt&&(Br=xt.value),br!=null?br:Br!==void 0?Br:"rc-index-key-".concat(on)}function sn(xt){return typeof xt!="undefined"&&!Number.isNaN(xt)}function Mn(xt,on){var br=xt||{},Br=br.label,Xt=br.value,fr=br.options,Tn=br.groupLabel,un=Br||(on?"children":"label");return{label:un,value:Xt||"value",options:fr||"options",groupLabel:Tn||un}}function Dt(xt){var on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},br=on.fieldNames,Br=on.childrenAsData,Xt=[],fr=Mn(br,!1),Tn=fr.label,un=fr.value,Ue=fr.options,Nr=fr.groupLabel;function jr(zn,vi){Array.isArray(zn)&&zn.forEach(function(Xr){if(vi||!(Ue in Xr)){var ci=Xr[un];Xt.push({key:En(Xr,Xt.length),groupOption:vi,data:Xr,label:Xr[Tn],value:ci})}else{var Gn=Xr[Nr];Gn===void 0&&Br&&(Gn=Xr.label),Xt.push({key:En(Xr,Xt.length),group:!0,data:Xr,label:Gn}),jr(Xr[Ue],!0)}})}return jr(xt,!1),Xt}function _t(xt){var on=(0,ke.Z)({},xt);return"props"in on||Object.defineProperty(on,"props",{get:function(){return(0,Ke.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),on}}),on}var jt=function(on,br,Br){if(!br||!br.length)return null;var Xt=!1,fr=function un(Ue,Nr){var jr=(0,Et.Z)(Nr),zn=jr[0],vi=jr.slice(1);if(!zn)return[Ue];var Xr=Ue.split(zn);return Xt=Xt||Xr.length>1,Xr.reduce(function(ci,Gn){return[].concat((0,Pe.Z)(ci),(0,Pe.Z)(un(Gn,vi)))},[]).filter(Boolean)},Tn=fr(on,br);return Xt?typeof Br!="undefined"?Tn.slice(0,Br):Tn:null},dn=He.createContext(null),Sn=dn;function gn(xt){var on=xt.visible,br=xt.values;if(!on)return null;var Br=50;return He.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(br.slice(0,Br).map(function(Xt){var fr=Xt.label,Tn=Xt.value;return["number","string"].includes((0,Ge.Z)(fr))?fr:Tn}).join(", ")),br.length>Br?", ...":null)}var Ot=["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"],Pn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Zt=function(on){return on==="tags"||on==="multiple"},tn=He.forwardRef(function(xt,on){var br,Br=xt.id,Xt=xt.prefixCls,fr=xt.className,Tn=xt.showSearch,un=xt.tagRender,Ue=xt.direction,Nr=xt.omitDomProps,jr=xt.displayValues,zn=xt.onDisplayValuesChange,vi=xt.emptyOptions,Xr=xt.notFoundContent,ci=Xr===void 0?"Not Found":Xr,Gn=xt.onClear,cn=xt.mode,Ci=xt.disabled,ji=xt.loading,Qn=xt.getInputElement,zr=xt.getRawInputElement,si=xt.open,di=xt.defaultOpen,ti=xt.onDropdownVisibleChange,ki=xt.activeValue,Bi=xt.onActiveValueChange,Zi=xt.activeDescendantId,Fi=xt.searchValue,Vi=xt.autoClearSearchValue,er=xt.onSearch,_i=xt.onSearchSplit,ar=xt.tokenSeparators,Ei=xt.allowClear,Gi=xt.prefix,Ui=xt.suffixIcon,po=xt.clearIcon,ho=xt.OptionList,Qi=xt.animation,Ro=xt.transitionName,Fn=xt.dropdownStyle,pr=xt.dropdownClassName,Ln=xt.dropdownMatchSelectWidth,rt=xt.dropdownRender,Hr=xt.dropdownAlign,_r=xt.placement,pi=xt.builtinPlacements,hi=xt.getPopupContainer,ri=xt.showAction,yr=ri===void 0?[]:ri,ht=xt.onFocus,xn=xt.onBlur,wn=xt.onKeyUp,jn=xt.onKeyDown,On=xt.onMouseDown,sr=(0,Te.Z)(xt,Ot),Un=Zt(cn),ln=(Tn!==void 0?Tn:Un)||cn==="combobox",qn=(0,ke.Z)({},sr);Pn.forEach(function(pa){delete qn[pa]}),Nr==null||Nr.forEach(function(pa){delete qn[pa]});var Ur=He.useState(!1),Ni=(0,Ve.Z)(Ur,2),ai=Ni[0],Si=Ni[1];He.useEffect(function(){Si((0,Fe.Z)())},[]);var Ii=He.useRef(null),Ri=He.useRef(null),co=He.useRef(null),mo=He.useRef(null),zo=He.useRef(null),kn=He.useRef(!1),bo=be(),wo=(0,Ve.Z)(bo,3),Wi=wo[0],so=wo[1],ro=wo[2];He.useImperativeHandle(on,function(){var pa,na;return{focus:(pa=mo.current)===null||pa===void 0?void 0:pa.focus,blur:(na=mo.current)===null||na===void 0?void 0:na.blur,scrollTo:function(Mi){var ms;return(ms=zo.current)===null||ms===void 0?void 0:ms.scrollTo(Mi)},nativeElement:Ii.current||Ri.current}});var Xo=He.useMemo(function(){var pa;if(cn!=="combobox")return Fi;var na=(pa=jr[0])===null||pa===void 0?void 0:pa.value;return typeof na=="string"||typeof na=="number"?String(na):""},[Fi,cn,jr]),Vn=cn==="combobox"&&typeof Qn=="function"&&Qn()||null,yo=typeof zr=="function"&&zr(),ia=(0,te.x1)(Ri,yo==null||(br=yo.props)===null||br===void 0?void 0:br.ref),ws=He.useState(!1),Ba=(0,Ve.Z)(ws,2),xl=Ba[0],Cs=Ba[1];(0,It.Z)(function(){Cs(!0)},[]);var Xi=(0,lt.Z)(!1,{defaultValue:di,value:si}),Ia=(0,Ve.Z)(Xi,2),_a=Ia[0],ds=Ia[1],La=xl?_a:!1,Za=!ci&&vi;(Ci||Za&&La&&cn==="combobox")&&(La=!1);var fi=Za?!1:La,Ji=He.useCallback(function(pa){var na=pa!==void 0?pa:!La;Ci||(ds(na),La!==na&&(ti==null||ti(na)))},[Ci,La,ds,ti]),fo=He.useMemo(function(){return(ar||[]).some(function(pa){return[`
`,`\r
`].includes(pa)})},[ar]),Mo=He.useContext(Sn)||{},Oo=Mo.maxCount,ua=Mo.rawValues,qi=function(na,Ya,Mi){if(!(Un&&sn(Oo)&&(ua==null?void 0:ua.size)>=Oo)){var ms=!0,en=na;Bi==null||Bi(null);var Ar=jt(na,ar,sn(Oo)?Oo-ua.size:void 0),Ml=Mi?null:Ar;return cn!=="combobox"&&Ml&&(en="",_i==null||_i(Ml),Ji(!1),ms=!1),er&&Xo!==en&&er(en,{source:Ya?"typing":"effect"}),ms}},ps=function(na){!na||!na.trim()||er(na,{source:"submit"})};He.useEffect(function(){!La&&!Un&&cn!=="combobox"&&qi("",!1,!1)},[La]),He.useEffect(function(){_a&&Ci&&ds(!1),Ci&&!kn.current&&so(!1)},[Ci]);var Ga=Ae(),ca=(0,Ve.Z)(Ga,2),Uo=ca[0],da=ca[1],Us=He.useRef(!1),ba=function(na){var Ya=Uo(),Mi=na.key,ms=Mi==="Enter";if(ms&&(cn!=="combobox"&&na.preventDefault(),La||Ji(!0)),da(!!Xo),Mi==="Backspace"&&!Ya&&Un&&!Xo&&jr.length){for(var en=(0,Pe.Z)(jr),Ar=null,Ml=en.length-1;Ml>=0;Ml-=1){var su=en[Ml];if(!su.disabled){en.splice(Ml,1),Ar=su;break}}Ar&&zn(en,{type:"remove",values:[Ar]})}for(var ns=arguments.length,rs=new Array(ns>1?ns-1:0),Xs=1;Xs<ns;Xs++)rs[Xs-1]=arguments[Xs];if(La&&(!ms||!Us.current)){var Ol;ms&&(Us.current=!0),(Ol=zo.current)===null||Ol===void 0||Ol.onKeyDown.apply(Ol,[na].concat(rs))}jn==null||jn.apply(void 0,[na].concat(rs))},hs=function(na){for(var Ya=arguments.length,Mi=new Array(Ya>1?Ya-1:0),ms=1;ms<Ya;ms++)Mi[ms-1]=arguments[ms];if(La){var en;(en=zo.current)===null||en===void 0||en.onKeyUp.apply(en,[na].concat(Mi))}na.key==="Enter"&&(Us.current=!1),wn==null||wn.apply(void 0,[na].concat(Mi))},dl=function(na){var Ya=jr.filter(function(Mi){return Mi!==na});zn(Ya,{type:"remove",values:[na]})},js=function(){Us.current=!1},Ka=He.useRef(!1),Zl=function(){so(!0),Ci||(ht&&!Ka.current&&ht.apply(void 0,arguments),yr.includes("focus")&&Ji(!0)),Ka.current=!0},ac=function(){kn.current=!0,so(!1,function(){Ka.current=!1,kn.current=!1,Ji(!1)}),!Ci&&(Xo&&(cn==="tags"?er(Xo,{source:"submit"}):cn==="multiple"&&er("",{source:"blur"})),xn&&xn.apply(void 0,arguments))},hl=[];He.useEffect(function(){return function(){hl.forEach(function(pa){return clearTimeout(pa)}),hl.splice(0,hl.length)}},[]);var as=function(na){var Ya,Mi=na.target,ms=(Ya=co.current)===null||Ya===void 0?void 0:Ya.getPopupElement();if(ms&&ms.contains(Mi)){var en=setTimeout(function(){var ns=hl.indexOf(en);if(ns!==-1&&hl.splice(ns,1),ro(),!ai&&!ms.contains(document.activeElement)){var rs;(rs=mo.current)===null||rs===void 0||rs.focus()}});hl.push(en)}for(var Ar=arguments.length,Ml=new Array(Ar>1?Ar-1:0),su=1;su<Ar;su++)Ml[su-1]=arguments[su];On==null||On.apply(void 0,[na].concat(Ml))},fl=He.useState({}),xu=(0,Ve.Z)(fl,2),Kl=xu[1];function sc(){Kl({})}var ts;yo&&(ts=function(na){Ji(na)}),De(function(){var pa;return[Ii.current,(pa=co.current)===null||pa===void 0?void 0:pa.getPopupElement()]},fi,Ji,!!yo);var lc=He.useMemo(function(){return(0,ke.Z)((0,ke.Z)({},xt),{},{notFoundContent:ci,open:La,triggerOpen:fi,id:Br,showSearch:ln,multiple:Un,toggleOpen:Ji})},[xt,ci,fi,La,Br,ln,Un,Ji]),bc=!!Ui||ji,wu;bc&&(wu=He.createElement(he,{className:$e()("".concat(Xt,"-arrow"),(0,Ie.Z)({},"".concat(Xt,"-arrow-loading"),ji)),customizeIcon:Ui,customizeIconProps:{loading:ji,searchValue:Xo,open:La,focused:Wi,showSearch:ln}}));var Yu=function(){var na;Gn==null||Gn(),(na=mo.current)===null||na===void 0||na.focus(),zn([],{type:"clear",values:jr}),qi("",!1,!1)},ks=ue(Xt,Yu,jr,Ei,po,Ci,Xo,cn),Vs=ks.allowClear,gs=ks.clearIcon,Is=He.createElement(ho,{ref:zo}),Bu=$e()(Xt,fr,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(Xt,"-focused"),Wi),"".concat(Xt,"-multiple"),Un),"".concat(Xt,"-single"),!Un),"".concat(Xt,"-allow-clear"),Ei),"".concat(Xt,"-show-arrow"),bc),"".concat(Xt,"-disabled"),Ci),"".concat(Xt,"-loading"),ji),"".concat(Xt,"-open"),La),"".concat(Xt,"-customize-input"),Vn),"".concat(Xt,"-show-search"),ln)),Ws=He.createElement(Be,{ref:co,disabled:Ci,prefixCls:Xt,visible:fi,popupElement:Is,animation:Qi,transitionName:Ro,dropdownStyle:Fn,dropdownClassName:pr,direction:Ue,dropdownMatchSelectWidth:Ln,dropdownRender:rt,dropdownAlign:Hr,placement:_r,builtinPlacements:pi,getPopupContainer:hi,empty:vi,getTriggerDOMNode:function(na){return Ri.current||na},onPopupVisibleChange:ts,onPopupMouseEnter:sc},yo?He.cloneElement(yo,{ref:ia}):He.createElement(ur,(0,oe.Z)({},xt,{domRef:Ri,prefixCls:Xt,inputElement:Vn,ref:mo,id:Br,prefix:Gi,showSearch:ln,autoClearSearchValue:Vi,mode:cn,activeDescendantId:Zi,tagRender:un,values:jr,open:La,onToggleOpen:Ji,activeValue:ki,searchValue:Xo,onSearch:qi,onSearchSubmit:ps,onRemove:dl,tokenWithEnter:fo,onInputBlur:js}))),Sa;return yo?Sa=Ws:Sa=He.createElement("div",(0,oe.Z)({className:Bu},qn,{ref:Ii,onMouseDown:as,onKeyDown:ba,onKeyUp:hs,onFocus:Zl,onBlur:ac}),He.createElement(gn,{visible:Wi&&!La,values:jr}),Ws,wu,Vs&&gs),He.createElement(fe.Provider,{value:lc},Sa)}),vn=tn,$n=function(){return null};$n.isSelectOptGroup=!0;var mn=$n,gt=function(){return null};gt.isSelectOption=!0;var Xn=gt,ir=ae(80547),nn=ae(2738),vr=ae(65283);function $r(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Lr=["disabled","title","children","style","className"];function Rn(xt){return typeof xt=="string"||typeof xt=="number"}var ei=function(on,br){var Br=me(),Xt=Br.prefixCls,fr=Br.id,Tn=Br.open,un=Br.multiple,Ue=Br.mode,Nr=Br.searchValue,jr=Br.toggleOpen,zn=Br.notFoundContent,vi=Br.onPopupScroll,Xr=He.useContext(Sn),ci=Xr.maxCount,Gn=Xr.flattenOptions,cn=Xr.onActiveValue,Ci=Xr.defaultActiveFirstOption,ji=Xr.onSelect,Qn=Xr.menuItemSelectedIcon,zr=Xr.rawValues,si=Xr.fieldNames,di=Xr.virtual,ti=Xr.direction,ki=Xr.listHeight,Bi=Xr.listItemHeight,Zi=Xr.optionRender,Fi="".concat(Xt,"-item"),Vi=(0,ir.Z)(function(){return Gn},[Tn,Gn],function(ri,yr){return yr[0]&&ri[1]!==yr[1]}),er=He.useRef(null),_i=He.useMemo(function(){return un&&sn(ci)&&(zr==null?void 0:zr.size)>=ci},[un,ci,zr==null?void 0:zr.size]),ar=function(yr){yr.preventDefault()},Ei=function(yr){var ht;(ht=er.current)===null||ht===void 0||ht.scrollTo(typeof yr=="number"?{index:yr}:yr)},Gi=He.useCallback(function(ri){return Ue==="combobox"?!1:zr.has(ri)},[Ue,(0,Pe.Z)(zr).toString(),zr.size]),Ui=function(yr){for(var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,xn=Vi.length,wn=0;wn<xn;wn+=1){var jn=(yr+wn*ht+xn)%xn,On=Vi[jn]||{},sr=On.group,Un=On.data;if(!sr&&!(Un!=null&&Un.disabled)&&(Gi(Un.value)||!_i))return jn}return-1},po=He.useState(function(){return Ui(0)}),ho=(0,Ve.Z)(po,2),Qi=ho[0],Ro=ho[1],Fn=function(yr){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ro(yr);var xn={source:ht?"keyboard":"mouse"},wn=Vi[yr];if(!wn){cn(null,-1,xn);return}cn(wn.value,yr,xn)};(0,He.useEffect)(function(){Fn(Ci!==!1?Ui(0):-1)},[Vi.length,Nr]);var pr=He.useCallback(function(ri){return Ue==="combobox"?String(ri).toLowerCase()===Nr.toLowerCase():zr.has(ri)},[Ue,Nr,(0,Pe.Z)(zr).toString(),zr.size]);(0,He.useEffect)(function(){var ri=setTimeout(function(){if(!un&&Tn&&zr.size===1){var ht=Array.from(zr)[0],xn=Vi.findIndex(function(wn){var jn=wn.data;return Nr?String(jn.value).startsWith(Nr):jn.value===ht});xn!==-1&&(Fn(xn),Ei(xn))}});if(Tn){var yr;(yr=er.current)===null||yr===void 0||yr.scrollTo(void 0)}return function(){return clearTimeout(ri)}},[Tn,Nr]);var Ln=function(yr){yr!==void 0&&ji(yr,{selected:!zr.has(yr)}),un||jr(!1)};if(He.useImperativeHandle(br,function(){return{onKeyDown:function(yr){var ht=yr.which,xn=yr.ctrlKey;switch(ht){case Ye.Z.N:case Ye.Z.P:case Ye.Z.UP:case Ye.Z.DOWN:{var wn=0;if(ht===Ye.Z.UP?wn=-1:ht===Ye.Z.DOWN?wn=1:$r()&&xn&&(ht===Ye.Z.N?wn=1:ht===Ye.Z.P&&(wn=-1)),wn!==0){var jn=Ui(Qi+wn,wn);Ei(jn),Fn(jn,!0)}break}case Ye.Z.TAB:case Ye.Z.ENTER:{var On,sr=Vi[Qi];sr&&!(sr!=null&&(On=sr.data)!==null&&On!==void 0&&On.disabled)&&!_i?Ln(sr.value):Ln(void 0),Tn&&yr.preventDefault();break}case Ye.Z.ESC:jr(!1),Tn&&yr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(yr){Ei(yr)}}}),Vi.length===0)return He.createElement("div",{role:"listbox",id:"".concat(fr,"_list"),className:"".concat(Fi,"-empty"),onMouseDown:ar},zn);var rt=Object.keys(si).map(function(ri){return si[ri]}),Hr=function(yr){return yr.label};function _r(ri,yr){var ht=ri.group;return{role:ht?"presentation":"option",id:"".concat(fr,"_list_").concat(yr)}}var pi=function(yr){var ht=Vi[yr];if(!ht)return null;var xn=ht.data||{},wn=xn.value,jn=ht.group,On=(0,Je.Z)(xn,!0),sr=Hr(ht);return ht?He.createElement("div",(0,oe.Z)({"aria-label":typeof sr=="string"&&!jn?sr:null},On,{key:yr},_r(ht,yr),{"aria-selected":pr(wn)}),wn):null},hi={role:"listbox",id:"".concat(fr,"_list")};return He.createElement(He.Fragment,null,di&&He.createElement("div",(0,oe.Z)({},hi,{style:{height:0,width:0,overflow:"hidden"}}),pi(Qi-1),pi(Qi),pi(Qi+1)),He.createElement(vr.Z,{itemKey:"key",ref:er,data:Vi,height:ki,itemHeight:Bi,fullHeight:!1,onMouseDown:ar,onScroll:vi,virtual:di,direction:ti,innerProps:di?null:hi},function(ri,yr){var ht=ri.group,xn=ri.groupOption,wn=ri.data,jn=ri.label,On=ri.value,sr=wn.key;if(ht){var Un,ln=(Un=wn.title)!==null&&Un!==void 0?Un:Rn(jn)?jn.toString():void 0;return He.createElement("div",{className:$e()(Fi,"".concat(Fi,"-group"),wn.className),title:ln},jn!==void 0?jn:sr)}var qn=wn.disabled,Ur=wn.title,Ni=wn.children,ai=wn.style,Si=wn.className,Ii=(0,Te.Z)(wn,Lr),Ri=(0,nn.Z)(Ii,rt),co=Gi(On),mo=qn||!co&&_i,zo="".concat(Fi,"-option"),kn=$e()(Fi,zo,Si,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(zo,"-grouped"),xn),"".concat(zo,"-active"),Qi===yr&&!mo),"".concat(zo,"-disabled"),mo),"".concat(zo,"-selected"),co)),bo=Hr(ri),wo=!Qn||typeof Qn=="function"||co,Wi=typeof bo=="number"?bo:bo||On,so=Rn(Wi)?Wi.toString():void 0;return Ur!==void 0&&(so=Ur),He.createElement("div",(0,oe.Z)({},(0,Je.Z)(Ri),di?{}:_r(ri,yr),{"aria-selected":pr(On),className:kn,title:so,onMouseMove:function(){Qi===yr||mo||Fn(yr)},onClick:function(){mo||Ln(On)},style:ai}),He.createElement("div",{className:"".concat(zo,"-content")},typeof Zi=="function"?Zi(ri,{index:yr}):Wi),He.isValidElement(Qn)||co,wo&&He.createElement(he,{className:"".concat(Fi,"-option-state"),customizeIcon:Qn,customizeIconProps:{value:On,disabled:mo,isSelected:co}},co?"\u2713":null))}))},Jr=He.forwardRef(ei),nr=Jr,Wr=function(xt,on){var br=He.useRef({values:new Map,options:new Map}),Br=He.useMemo(function(){var fr=br.current,Tn=fr.values,un=fr.options,Ue=xt.map(function(zn){if(zn.label===void 0){var vi;return(0,ke.Z)((0,ke.Z)({},zn),{},{label:(vi=Tn.get(zn.value))===null||vi===void 0?void 0:vi.label})}return zn}),Nr=new Map,jr=new Map;return Ue.forEach(function(zn){Nr.set(zn.value,zn),jr.set(zn.value,on.get(zn.value)||un.get(zn.value))}),br.current.values=Nr,br.current.options=jr,Ue},[xt,on]),Xt=He.useCallback(function(fr){return on.get(fr)||br.current.options.get(fr)},[on]);return[Br,Xt]};function oi(xt,on){return Qt(xt).join("").toUpperCase().includes(on)}var Oe=function(xt,on,br,Br,Xt){return He.useMemo(function(){if(!br||Br===!1)return xt;var fr=on.options,Tn=on.label,un=on.value,Ue=[],Nr=typeof Br=="function",jr=br.toUpperCase(),zn=Nr?Br:function(Xr,ci){return Xt?oi(ci[Xt],jr):ci[fr]?oi(ci[Tn!=="children"?Tn:"label"],jr):oi(ci[un],jr)},vi=Nr?function(Xr){return _t(Xr)}:function(Xr){return Xr};return xt.forEach(function(Xr){if(Xr[fr]){var ci=zn(br,vi(Xr));if(ci)Ue.push(Xr);else{var Gn=Xr[fr].filter(function(cn){return zn(br,vi(cn))});Gn.length&&Ue.push((0,ke.Z)((0,ke.Z)({},Xr),{},(0,Ie.Z)({},fr,Gn)))}return}zn(br,vi(Xr))&&Ue.push(Xr)}),Ue},[xt,Br,Xt,br,on])},cr=ae(6551),Cr=ae(11592),or=["children","value"],kr=["children"];function Fr(xt){var on=xt,br=on.key,Br=on.props,Xt=Br.children,fr=Br.value,Tn=(0,Te.Z)(Br,or);return(0,ke.Z)({key:br,value:fr!==void 0?fr:br,children:Xt},Tn)}function Or(xt){var on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Cr.Z)(xt).map(function(br,Br){if(!He.isValidElement(br)||!br.type)return null;var Xt=br,fr=Xt.type.isSelectOptGroup,Tn=Xt.key,un=Xt.props,Ue=un.children,Nr=(0,Te.Z)(un,kr);return on||!fr?Fr(br):(0,ke.Z)((0,ke.Z)({key:"__RC_SELECT_GRP__".concat(Tn===null?Br:Tn,"__"),label:Tn},Nr),{},{options:Or(Ue)})}).filter(function(br){return br})}var mi=function(on,br,Br,Xt,fr){return He.useMemo(function(){var Tn=on,un=!on;un&&(Tn=Or(br));var Ue=new Map,Nr=new Map,jr=function(Xr,ci,Gn){Gn&&typeof Gn=="string"&&Xr.set(ci[Gn],ci)},zn=function vi(Xr){for(var ci=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Gn=0;Gn<Xr.length;Gn+=1){var cn=Xr[Gn];!cn[Br.options]||ci?(Ue.set(cn[Br.value],cn),jr(Nr,cn,Br.label),jr(Nr,cn,Xt),jr(Nr,cn,fr)):vi(cn[Br.options],!0)}};return zn(Tn),{options:Tn,valueOptions:Ue,labelOptions:Nr}},[on,br,Br,Xt,fr])},Ti=mi;function hn(xt){var on=He.useRef();on.current=xt;var br=He.useCallback(function(){return on.current.apply(on,arguments)},[]);return br}function Cn(xt){var on=xt.mode,br=xt.options,Br=xt.children,Xt=xt.backfill,fr=xt.allowClear,Tn=xt.placeholder,un=xt.getInputElement,Ue=xt.showSearch,Nr=xt.onSearch,jr=xt.defaultOpen,zn=xt.autoFocus,vi=xt.labelInValue,Xr=xt.value,ci=xt.inputValue,Gn=xt.optionLabelProp,cn=isMultiple(on),Ci=Ue!==void 0?Ue:cn||on==="combobox",ji=br||convertChildrenToData(Br);if(warning(on!=="tags"||ji.every(function(di){return!di.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),on==="tags"||on==="combobox"){var Qn=ji.some(function(di){return di.options?di.options.some(function(ti){return typeof("value"in ti?ti.value:ti.key)=="number"}):typeof("value"in di?di.value:di.key)=="number"});warning(!Qn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(on!=="combobox"||!Gn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(on==="combobox"||!Xt,"`backfill` only works with `combobox` mode."),warning(on==="combobox"||!un,"`getInputElement` only work with `combobox` mode."),noteOnce(on!=="combobox"||!un||!fr||!Tn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Nr&&!Ci&&on!=="combobox"&&on!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!jr||zn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Xr!=null){var zr=toArray(Xr);warning(!vi||zr.every(function(di){return _typeof(di)==="object"&&("key"in di||"value"in di)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!cn||Array.isArray(Xr),"`value` should be array when `mode` is `multiple` or `tags`")}if(Br){var si=null;toNodeArray(Br).some(function(di){if(!React.isValidElement(di)||!di.type)return!1;var ti=di,ki=ti.type;if(ki.isSelectOption)return!1;if(ki.isSelectOptGroup){var Bi=toNodeArray(di.props.children).every(function(Zi){return!React.isValidElement(Zi)||!di.type||Zi.type.isSelectOption?!0:(si=Zi.type,!1)});return!Bi}return si=ki,!0}),si&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(si.displayName||si.name||si,"`.")),warning(ci===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function pn(xt,on){if(xt){var br=function Br(Xt){for(var fr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Tn=0;Tn<Xt.length;Tn++){var un=Xt[Tn];if(un[on==null?void 0:on.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!fr&&Array.isArray(un[on==null?void 0:on.options])&&Br(un[on==null?void 0:on.options],!0))break}};br(xt)}}var Kr=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"],Vr=["inputValue"];function dr(xt){return!xt||(0,Ge.Z)(xt)!=="object"}var Gr=He.forwardRef(function(xt,on){var br=xt.id,Br=xt.mode,Xt=xt.prefixCls,fr=Xt===void 0?"rc-select":Xt,Tn=xt.backfill,un=xt.fieldNames,Ue=xt.inputValue,Nr=xt.searchValue,jr=xt.onSearch,zn=xt.autoClearSearchValue,vi=zn===void 0?!0:zn,Xr=xt.onSelect,ci=xt.onDeselect,Gn=xt.dropdownMatchSelectWidth,cn=Gn===void 0?!0:Gn,Ci=xt.filterOption,ji=xt.filterSort,Qn=xt.optionFilterProp,zr=xt.optionLabelProp,si=xt.options,di=xt.optionRender,ti=xt.children,ki=xt.defaultActiveFirstOption,Bi=xt.menuItemSelectedIcon,Zi=xt.virtual,Fi=xt.direction,Vi=xt.listHeight,er=Vi===void 0?200:Vi,_i=xt.listItemHeight,ar=_i===void 0?20:_i,Ei=xt.labelRender,Gi=xt.value,Ui=xt.defaultValue,po=xt.labelInValue,ho=xt.onChange,Qi=xt.maxCount,Ro=(0,Te.Z)(xt,Yr),Fn=(0,cr.ZP)(br),pr=Zt(Br),Ln=!!(!si&&ti),rt=He.useMemo(function(){return Ci===void 0&&Br==="combobox"?!1:Ci},[Ci,Br]),Hr=He.useMemo(function(){return Mn(un,Ln)},[JSON.stringify(un),Ln]),_r=(0,lt.Z)("",{value:Nr!==void 0?Nr:Ue,postState:function(fo){return fo||""}}),pi=(0,Ve.Z)(_r,2),hi=pi[0],ri=pi[1],yr=Ti(si,ti,Hr,Qn,zr),ht=yr.valueOptions,xn=yr.labelOptions,wn=yr.options,jn=He.useCallback(function(Ji){var fo=Qt(Ji);return fo.map(function(Mo){var Oo,ua,qi,ps,Ga;if(dr(Mo))Oo=Mo;else{var ca;qi=Mo.key,ua=Mo.label,Oo=(ca=Mo.value)!==null&&ca!==void 0?ca:qi}var Uo=ht.get(Oo);if(Uo){var da;if(ua===void 0&&(ua=Uo==null?void 0:Uo[zr||Hr.label]),qi===void 0&&(qi=(da=Uo==null?void 0:Uo.key)!==null&&da!==void 0?da:Oo),ps=Uo==null?void 0:Uo.disabled,Ga=Uo==null?void 0:Uo.title,0)var Us}return{label:ua,value:Oo,key:qi,disabled:ps,title:Ga}})},[Hr,zr,ht]),On=(0,lt.Z)(Ui,{value:Gi}),sr=(0,Ve.Z)(On,2),Un=sr[0],ln=sr[1],qn=He.useMemo(function(){var Ji,fo=pr&&Un===null?[]:Un,Mo=jn(fo);return Br==="combobox"&&ft((Ji=Mo[0])===null||Ji===void 0?void 0:Ji.value)?[]:Mo},[Un,jn,Br,pr]),Ur=Wr(qn,ht),Ni=(0,Ve.Z)(Ur,2),ai=Ni[0],Si=Ni[1],Ii=He.useMemo(function(){if(!Br&&ai.length===1){var Ji=ai[0];if(Ji.value===null&&(Ji.label===null||Ji.label===void 0))return[]}return ai.map(function(fo){var Mo;return(0,ke.Z)((0,ke.Z)({},fo),{},{label:(Mo=typeof Ei=="function"?Ei(fo):fo.label)!==null&&Mo!==void 0?Mo:fo.value})})},[Br,ai,Ei]),Ri=He.useMemo(function(){return new Set(ai.map(function(Ji){return Ji.value}))},[ai]);He.useEffect(function(){if(Br==="combobox"){var Ji,fo=(Ji=ai[0])===null||Ji===void 0?void 0:Ji.value;ri(bt(fo)?String(fo):"")}},[ai]);var co=hn(function(Ji,fo){var Mo=fo!=null?fo:Ji;return(0,Ie.Z)((0,Ie.Z)({},Hr.value,Ji),Hr.label,Mo)}),mo=He.useMemo(function(){if(Br!=="tags")return wn;var Ji=(0,Pe.Z)(wn),fo=function(Oo){return ht.has(Oo)};return(0,Pe.Z)(ai).sort(function(Mo,Oo){return Mo.value<Oo.value?-1:1}).forEach(function(Mo){var Oo=Mo.value;fo(Oo)||Ji.push(co(Oo,Mo.label))}),Ji},[co,wn,ht,ai,Br]),zo=Oe(mo,Hr,hi,rt,Qn),kn=He.useMemo(function(){return Br!=="tags"||!hi||zo.some(function(Ji){return Ji[Qn||"value"]===hi})||zo.some(function(Ji){return Ji[Hr.value]===hi})?zo:[co(hi)].concat((0,Pe.Z)(zo))},[co,Qn,Br,zo,hi,Hr]),bo=function Ji(fo){var Mo=(0,Pe.Z)(fo).sort(function(Oo,ua){return ji(Oo,ua,{searchValue:hi})});return Mo.map(function(Oo){return Array.isArray(Oo.options)?(0,ke.Z)((0,ke.Z)({},Oo),{},{options:Oo.options.length>0?Ji(Oo.options):Oo.options}):Oo})},wo=He.useMemo(function(){return ji?bo(kn):kn},[kn,ji,hi]),Wi=He.useMemo(function(){return Dt(wo,{fieldNames:Hr,childrenAsData:Ln})},[wo,Hr,Ln]),so=function(fo){var Mo=jn(fo);if(ln(Mo),ho&&(Mo.length!==ai.length||Mo.some(function(qi,ps){var Ga;return((Ga=ai[ps])===null||Ga===void 0?void 0:Ga.value)!==(qi==null?void 0:qi.value)}))){var Oo=po?Mo:Mo.map(function(qi){return qi.value}),ua=Mo.map(function(qi){return _t(Si(qi.value))});ho(pr?Oo:Oo[0],pr?ua:ua[0])}},ro=He.useState(null),Xo=(0,Ve.Z)(ro,2),Vn=Xo[0],yo=Xo[1],ia=He.useState(0),ws=(0,Ve.Z)(ia,2),Ba=ws[0],xl=ws[1],Cs=ki!==void 0?ki:Br!=="combobox",Xi=He.useCallback(function(Ji,fo){var Mo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Oo=Mo.source,ua=Oo===void 0?"keyboard":Oo;xl(fo),Tn&&Br==="combobox"&&Ji!==null&&ua==="keyboard"&&yo(String(Ji))},[Tn,Br]),Ia=function(fo,Mo,Oo){var ua=function(){var dl,js=Si(fo);return[po?{label:js==null?void 0:js[Hr.label],value:fo,key:(dl=js==null?void 0:js.key)!==null&&dl!==void 0?dl:fo}:fo,_t(js)]};if(Mo&&Xr){var qi=ua(),ps=(0,Ve.Z)(qi,2),Ga=ps[0],ca=ps[1];Xr(Ga,ca)}else if(!Mo&&ci&&Oo!=="clear"){var Uo=ua(),da=(0,Ve.Z)(Uo,2),Us=da[0],ba=da[1];ci(Us,ba)}},_a=hn(function(Ji,fo){var Mo,Oo=pr?fo.selected:!0;Oo?Mo=pr?[].concat((0,Pe.Z)(ai),[Ji]):[Ji]:Mo=ai.filter(function(ua){return ua.value!==Ji}),so(Mo),Ia(Ji,Oo),Br==="combobox"?yo(""):(!Zt||vi)&&(ri(""),yo(""))}),ds=function(fo,Mo){so(fo);var Oo=Mo.type,ua=Mo.values;(Oo==="remove"||Oo==="clear")&&ua.forEach(function(qi){Ia(qi.value,!1,Oo)})},La=function(fo,Mo){if(ri(fo),yo(null),Mo.source==="submit"){var Oo=(fo||"").trim();if(Oo){var ua=Array.from(new Set([].concat((0,Pe.Z)(Ri),[Oo])));so(ua),Ia(Oo,!0),ri("")}return}Mo.source!=="blur"&&(Br==="combobox"&&so(fo),jr==null||jr(fo))},Za=function(fo){var Mo=fo;Br!=="tags"&&(Mo=fo.map(function(ua){var qi=xn.get(ua);return qi==null?void 0:qi.value}).filter(function(ua){return ua!==void 0}));var Oo=Array.from(new Set([].concat((0,Pe.Z)(Ri),(0,Pe.Z)(Mo))));so(Oo),Oo.forEach(function(ua){Ia(ua,!0)})},fi=He.useMemo(function(){var Ji=Zi!==!1&&cn!==!1;return(0,ke.Z)((0,ke.Z)({},yr),{},{flattenOptions:Wi,onActiveValue:Xi,defaultActiveFirstOption:Cs,onSelect:_a,menuItemSelectedIcon:Bi,rawValues:Ri,fieldNames:Hr,virtual:Ji,direction:Fi,listHeight:er,listItemHeight:ar,childrenAsData:Ln,maxCount:Qi,optionRender:di})},[Qi,yr,Wi,Xi,Cs,_a,Bi,Ri,Hr,Zi,cn,Fi,er,ar,Ln,di]);return He.createElement(Sn.Provider,{value:fi},He.createElement(vn,(0,oe.Z)({},Ro,{id:Fn,prefixCls:fr,ref:on,omitDomProps:Vr,mode:Br,displayValues:Ii,onDisplayValuesChange:ds,direction:Fi,searchValue:hi,onSearch:La,autoClearSearchValue:vi,onSearchSplit:Za,dropdownMatchSelectWidth:cn,OptionList:nr,emptyOptions:!Wi.length,activeValue:Vn,activeDescendantId:"".concat(Fn,"_list_").concat(Ba)})))}),bi=Gr;bi.Option=Xn,bi.OptGroup=mn;var Ai=bi,Oi=Ai},63158:function(We,Ee,ae){"use strict";var oe=ae(71409),Pe=ae(87075),Ie=ae(11036),ke=ae(39224),Ve=ae(59301),Te=ae(92310),Ge=ae.n(Te),lt=ae(18929),Ke=ae(10228),He=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],St=Ve.forwardRef(function($e,It){var Fe,te=$e.prefixCls,ee=te===void 0?"rc-switch":te,he=$e.className,ue=$e.checked,fe=$e.defaultChecked,me=$e.disabled,be=$e.loadingIcon,Ae=$e.checkedChildren,De=$e.unCheckedChildren,Ye=$e.onClick,nt=$e.onChange,Je=$e.onKeyDown,ot=(0,ke.Z)($e,He),mt=(0,lt.Z)(!1,{value:ue,defaultValue:fe}),it=(0,Ie.Z)(mt,2),vt=it[0],wt=it[1];function Nt(yn,bt){var ft=vt;return me||(ft=yn,wt(ft),nt==null||nt(ft,bt)),ft}function Ht(yn){yn.which===Ke.Z.LEFT?Nt(!1,yn):yn.which===Ke.Z.RIGHT&&Nt(!0,yn),Je==null||Je(yn)}function Qt(yn){var bt=Nt(!vt,yn);Ye==null||Ye(bt,yn)}var Yt=Ge()(ee,he,(Fe={},(0,Pe.Z)(Fe,"".concat(ee,"-checked"),vt),(0,Pe.Z)(Fe,"".concat(ee,"-disabled"),me),Fe));return Ve.createElement("button",(0,oe.Z)({},ot,{type:"button",role:"switch","aria-checked":vt,disabled:me,className:Yt,ref:It,onKeyDown:Ht,onClick:Qt}),be,Ve.createElement("span",{className:"".concat(ee,"-inner")},Ve.createElement("span",{className:"".concat(ee,"-inner-checked")},Ae),Ve.createElement("span",{className:"".concat(ee,"-inner-unchecked")},De)))});St.displayName="Switch",Ee.Z=St},86351:function(We,Ee,ae){"use strict";ae.d(Ee,{R:function(){return Pe},w:function(){return oe}});var oe={},Pe="rc-table-internal-hook"},97347:function(We,Ee,ae){"use strict";ae.d(Ee,{L:function(){return ee},Z:function(){return be}});var oe=ae(11036),Pe=ae(87075),Ie=ae(62730),ke=ae(28788),Ve=ae(89490),Te=ae(39224),Ge=ae(11592),lt=ae(48736),Ke=ae(59301),He=ae(86351),St=ae(54451);function $e(Ae){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof De=="number"?De:De.endsWith("%")?Ae*parseFloat(De)/100:null}function It(Ae,De,Ye){return Ke.useMemo(function(){if(De&&De>0){var nt=0,Je=0;Ae.forEach(function(Qt){var Yt=$e(De,Qt.width);Yt?nt+=Yt:Je+=1});var ot=Math.max(De,Ye),mt=Math.max(ot-nt,Je),it=Je,vt=mt/Je,wt=0,Nt=Ae.map(function(Qt){var Yt=(0,Ve.Z)({},Qt),yn=$e(De,Yt.width);if(yn)Yt.width=yn;else{var bt=Math.floor(vt);Yt.width=it===1?mt:bt,mt-=bt,it-=1}return wt+=Yt.width,Yt});if(wt<ot){var Ht=ot/wt;mt=ot,Nt.forEach(function(Qt,Yt){var yn=Math.floor(Qt.width*Ht);Qt.width=Yt===Nt.length-1?mt:yn,mt-=yn})}return[Nt,Math.max(wt,ot)]}return[Ae,De]},[Ae,De,Ye])}var Fe=["children"],te=["fixed"];function ee(Ae){return(0,Ge.Z)(Ae).filter(function(De){return Ke.isValidElement(De)}).map(function(De){var Ye=De.key,nt=De.props,Je=nt.children,ot=(0,Te.Z)(nt,Fe),mt=(0,Ve.Z)({key:Ye},ot);return Je&&(mt.children=ee(Je)),mt})}function he(Ae){return Ae.filter(function(De){return De&&(0,ke.Z)(De)==="object"&&!De.hidden}).map(function(De){var Ye=De.children;return Ye&&Ye.length>0?(0,Ve.Z)((0,Ve.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,ke.Z)(Ye)==="object"}).reduce(function(Ye,nt,Je){var ot=nt.fixed,mt=ot===!0?"left":ot,it="".concat(De,"-").concat(Je),vt=nt.children;return vt&&vt.length>0?[].concat((0,Ie.Z)(Ye),(0,Ie.Z)(ue(vt,it).map(function(wt){return(0,Ve.Z)({fixed:mt},wt)}))):[].concat((0,Ie.Z)(Ye),[(0,Ve.Z)((0,Ve.Z)({key:it},nt),{},{fixed:mt})])},[])}function fe(Ae){return Ae.map(function(De){var Ye=De.fixed,nt=(0,Te.Z)(De,te),Je=Ye;return Ye==="left"?Je="right":Ye==="right"&&(Je="left"),(0,Ve.Z)({fixed:Je},nt)})}function me(Ae,De){var Ye=Ae.prefixCls,nt=Ae.columns,Je=Ae.children,ot=Ae.expandable,mt=Ae.expandedKeys,it=Ae.columnTitle,vt=Ae.getRowKey,wt=Ae.onTriggerExpand,Nt=Ae.expandIcon,Ht=Ae.rowExpandable,Qt=Ae.expandIconColumnIndex,Yt=Ae.direction,yn=Ae.expandRowByClick,bt=Ae.columnWidth,ft=Ae.fixed,ct=Ae.scrollWidth,Jt=Ae.clientWidth,fn=Ke.useMemo(function(){var ur=nt||ee(Je)||[];return he(ur.slice())},[nt,Je]),kt=Ke.useMemo(function(){if(ot){var ur=fn.slice();if(!ur.includes(He.w)){var at=Qt||0;at>=0&&(at||ft==="left"||!ft)&&ur.splice(at,0,He.w),ft==="right"&&ur.splice(fn.length,0,He.w)}var _e=ur.indexOf(He.w);ur=ur.filter(function(Be,Et){return Be!==He.w||Et===_e});var Re=fn[_e],Xe;ft?Xe=ft:Xe=Re?Re.fixed:null;var st=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},St.v,{className:"".concat(Ye,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",it),"fixed",Xe),"className","".concat(Ye,"-row-expand-icon-cell")),"width",bt),"render",function(Et,En,sn){var Mn=vt(En,sn),Dt=mt.has(Mn),_t=Ht?Ht(En):!0,jt=Nt({prefixCls:Ye,expanded:Dt,expandable:_t,record:En,onExpand:wt});return yn?Ke.createElement("span",{onClick:function(Sn){return Sn.stopPropagation()}},jt):jt});return ur.map(function(Be){return Be===He.w?st:Be})}return fn.filter(function(Be){return Be!==He.w})},[ot,fn,vt,mt,Nt,Yt]),bn=Ke.useMemo(function(){var ur=kt;return De&&(ur=De(ur)),ur.length||(ur=[{render:function(){return null}}]),ur},[De,kt,Yt]),An=Ke.useMemo(function(){return Yt==="rtl"?fe(ue(bn)):ue(bn)},[bn,Yt,ct]),Yn=Ke.useMemo(function(){for(var ur=-1,at=An.length-1;at>=0;at-=1){var _e=An[at].fixed;if(_e==="left"||_e===!0){ur=at;break}}if(ur>=0)for(var Re=0;Re<=ur;Re+=1){var Xe=An[Re].fixed;if(Xe!=="left"&&Xe!==!0)return!0}var st=An.findIndex(function(En){var sn=En.fixed;return sn==="right"});if(st>=0)for(var Be=st;Be<An.length;Be+=1){var Et=An[Be].fixed;if(Et!=="right")return!0}return!1},[An]),Vt=It(An,ct,Jt),Bn=(0,oe.Z)(Vt,2),Mt=Bn[0],Hn=Bn[1];return[bn,Mt,Hn,Yn]}var be=me},4030:function(We,Ee,ae){"use strict";ae.d(Ee,{w2:function(){return oe.w},vP:function(){return Rn.v},RQ:function(){return oe.R},ER:function(){return Mn},Q$:function(){return Ci},TN:function(){return ho}});var oe=ae(86351),Pe=ae(11036),Ie=ae(6089),ke=ae(34280),Ve=ae(13697),Te=ae(59301),Ge=ae(4676);function lt(Fn){var pr=Te.createContext(void 0),Ln=function(Hr){var _r=Hr.value,pi=Hr.children,hi=Te.useRef(_r);hi.current=_r;var ri=Te.useState(function(){return{getValue:function(){return hi.current},listeners:new Set}}),yr=(0,Pe.Z)(ri,1),ht=yr[0];return(0,ke.Z)(function(){(0,Ge.unstable_batchedUpdates)(function(){ht.listeners.forEach(function(xn){xn(_r)})})},[_r]),Te.createElement(pr.Provider,{value:ht},pi)};return{Context:pr,Provider:Ln,defaultValue:Fn}}function Ke(Fn,pr){var Ln=(0,Ie.Z)(typeof pr=="function"?pr:function(xn){if(pr===void 0)return xn;if(!Array.isArray(pr))return xn[pr];var wn={};return pr.forEach(function(jn){wn[jn]=xn[jn]}),wn}),rt=Te.useContext(Fn==null?void 0:Fn.Context),Hr=rt||{},_r=Hr.listeners,pi=Hr.getValue,hi=Te.useRef();hi.current=Ln(rt?pi():Fn==null?void 0:Fn.defaultValue);var ri=Te.useState({}),yr=(0,Pe.Z)(ri,2),ht=yr[1];return(0,ke.Z)(function(){if(!rt)return;function xn(wn){var jn=Ln(wn);(0,Ve.Z)(hi.current,jn,!0)||ht({})}return _r.add(xn),function(){_r.delete(xn)}},[rt]),hi.current}var He=ae(71409),St=ae(8654);function $e(){var Fn=Te.createContext(null);function pr(){return Te.useContext(Fn)}function Ln(Hr,_r){var pi=(0,St.Yr)(Hr),hi=function(yr,ht){var xn=pi?{ref:ht}:{},wn=Te.useRef(0),jn=Te.useRef(yr),On=pr();return On!==null?Te.createElement(Hr,(0,He.Z)({},yr,xn)):((!_r||_r(jn.current,yr))&&(wn.current+=1),jn.current=yr,Te.createElement(Fn.Provider,{value:wn.current},Te.createElement(Hr,(0,He.Z)({},yr,xn))))};return pi?Te.forwardRef(hi):hi}function rt(Hr,_r){var pi=(0,St.Yr)(Hr),hi=function(yr,ht){var xn=pi?{ref:ht}:{};return pr(),Te.createElement(Hr,(0,He.Z)({},yr,xn))};return pi?Te.memo(Te.forwardRef(hi),_r):Te.memo(hi,_r)}return{makeImmutable:Ln,responseImmutable:rt,useImmutableMark:pr}}var It=$e(),Fe=It.makeImmutable,te=It.responseImmutable,ee=It.useImmutableMark,he=$e(),ue=he.makeImmutable,fe=he.responseImmutable,me=he.useImmutableMark,be=lt(),Ae=be;function De(Fn,pr){var Ln=React.useRef(0);Ln.current+=1;var rt=React.useRef(Fn),Hr=[];Object.keys(Fn||{}).map(function(pi){var hi;(Fn==null?void 0:Fn[pi])!==((hi=rt.current)===null||hi===void 0?void 0:hi[pi])&&Hr.push(pi)}),rt.current=Fn;var _r=React.useRef([]);return Hr.length&&(_r.current=Hr),React.useDebugValue(Ln.current),React.useDebugValue(_r.current.join(", ")),pr&&console.log("".concat(pr,":"),Ln.current,_r.current),Ln.current}var Ye=null,nt=null,Je=ae(28788),ot=ae(89490),mt=ae(87075),it=ae(92310),vt=ae.n(it),wt=ae(80547),Nt=ae(97938),Ht=ae(48736),Qt=Te.createContext({renderWithProps:!1}),Yt=Qt,yn="RC_TABLE_KEY";function bt(Fn){return Fn==null?[]:Array.isArray(Fn)?Fn:[Fn]}function ft(Fn){var pr=[],Ln={};return Fn.forEach(function(rt){for(var Hr=rt||{},_r=Hr.key,pi=Hr.dataIndex,hi=_r||bt(pi).join("-")||yn;Ln[hi];)hi="".concat(hi,"_next");Ln[hi]=!0,pr.push(hi)}),pr}function ct(Fn){return Fn!=null}function Jt(Fn){return typeof Fn=="number"&&!Number.isNaN(Fn)}function fn(Fn){return Fn&&(0,Je.Z)(Fn)==="object"&&!Array.isArray(Fn)&&!Te.isValidElement(Fn)}function kt(Fn,pr,Ln,rt,Hr,_r){var pi=Te.useContext(Yt),hi=me(),ri=(0,wt.Z)(function(){if(ct(rt))return[rt];var yr=pr==null||pr===""?[]:Array.isArray(pr)?pr:[pr],ht=(0,Nt.Z)(Fn,yr),xn=ht,wn=void 0;if(Hr){var jn=Hr(ht,Fn,Ln);fn(jn)?(xn=jn.children,wn=jn.props,pi.renderWithProps=!0):xn=jn}return[xn,wn]},[hi,Fn,rt,pr,Hr,Ln],function(yr,ht){if(_r){var xn=(0,Pe.Z)(yr,2),wn=xn[1],jn=(0,Pe.Z)(ht,2),On=jn[1];return _r(On,wn)}return pi.renderWithProps?!0:!(0,Ve.Z)(yr,ht,!0)});return ri}function bn(Fn,pr,Ln,rt){var Hr=Fn+pr-1;return Fn<=rt&&Hr>=Ln}function An(Fn,pr){return Ke(Ae,function(Ln){var rt=bn(Fn,pr||1,Ln.hoverStartRow,Ln.hoverEndRow);return[rt,Ln.onHover]})}var Yn=ae(70425),Vt=function(pr){var Ln=pr.ellipsis,rt=pr.rowType,Hr=pr.children,_r,pi=Ln===!0?{showTitle:!0}:Ln;return pi&&(pi.showTitle||rt==="header")&&(typeof Hr=="string"||typeof Hr=="number"?_r=Hr.toString():Te.isValidElement(Hr)&&typeof Hr.props.children=="string"&&(_r=Hr.props.children)),_r};function Bn(Fn){var pr,Ln,rt,Hr,_r,pi,hi,ri,yr=Fn.component,ht=Fn.children,xn=Fn.ellipsis,wn=Fn.scope,jn=Fn.prefixCls,On=Fn.className,sr=Fn.align,Un=Fn.record,ln=Fn.render,qn=Fn.dataIndex,Ur=Fn.renderIndex,Ni=Fn.shouldCellUpdate,ai=Fn.index,Si=Fn.rowType,Ii=Fn.colSpan,Ri=Fn.rowSpan,co=Fn.fixLeft,mo=Fn.fixRight,zo=Fn.firstFixLeft,kn=Fn.lastFixLeft,bo=Fn.firstFixRight,wo=Fn.lastFixRight,Wi=Fn.appendNode,so=Fn.additionalProps,ro=so===void 0?{}:so,Xo=Fn.isSticky,Vn="".concat(jn,"-cell"),yo=Ke(Ae,["supportSticky","allColumnsFixedLeft","rowHoverable"]),ia=yo.supportSticky,ws=yo.allColumnsFixedLeft,Ba=yo.rowHoverable,xl=kt(Un,qn,Ur,ht,ln,Ni),Cs=(0,Pe.Z)(xl,2),Xi=Cs[0],Ia=Cs[1],_a={},ds=typeof co=="number"&&ia,La=typeof mo=="number"&&ia;ds&&(_a.position="sticky",_a.left=co),La&&(_a.position="sticky",_a.right=mo);var Za=(pr=(Ln=(rt=Ia==null?void 0:Ia.colSpan)!==null&&rt!==void 0?rt:ro.colSpan)!==null&&Ln!==void 0?Ln:Ii)!==null&&pr!==void 0?pr:1,fi=(Hr=(_r=(pi=Ia==null?void 0:Ia.rowSpan)!==null&&pi!==void 0?pi:ro.rowSpan)!==null&&_r!==void 0?_r:Ri)!==null&&Hr!==void 0?Hr:1,Ji=An(ai,fi),fo=(0,Pe.Z)(Ji,2),Mo=fo[0],Oo=fo[1],ua=(0,Yn.zX)(function(Us){var ba;Un&&Oo(ai,ai+fi-1),ro==null||(ba=ro.onMouseEnter)===null||ba===void 0||ba.call(ro,Us)}),qi=(0,Yn.zX)(function(Us){var ba;Un&&Oo(-1,-1),ro==null||(ba=ro.onMouseLeave)===null||ba===void 0||ba.call(ro,Us)});if(Za===0||fi===0)return null;var ps=(hi=ro.title)!==null&&hi!==void 0?hi:Vt({rowType:Si,ellipsis:xn,children:Xi}),Ga=vt()(Vn,On,(ri={},(0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)(ri,"".concat(Vn,"-fix-left"),ds&&ia),"".concat(Vn,"-fix-left-first"),zo&&ia),"".concat(Vn,"-fix-left-last"),kn&&ia),"".concat(Vn,"-fix-left-all"),kn&&ws&&ia),"".concat(Vn,"-fix-right"),La&&ia),"".concat(Vn,"-fix-right-first"),bo&&ia),"".concat(Vn,"-fix-right-last"),wo&&ia),"".concat(Vn,"-ellipsis"),xn),"".concat(Vn,"-with-append"),Wi),"".concat(Vn,"-fix-sticky"),(ds||La)&&Xo&&ia),(0,mt.Z)(ri,"".concat(Vn,"-row-hover"),!Ia&&Mo)),ro.className,Ia==null?void 0:Ia.className),ca={};sr&&(ca.textAlign=sr);var Uo=(0,ot.Z)((0,ot.Z)((0,ot.Z)((0,ot.Z)({},Ia==null?void 0:Ia.style),_a),ca),ro.style),da=Xi;return(0,Je.Z)(da)==="object"&&!Array.isArray(da)&&!Te.isValidElement(da)&&(da=null),xn&&(kn||bo)&&(da=Te.createElement("span",{className:"".concat(Vn,"-content")},da)),Te.createElement(yr,(0,He.Z)({},Ia,ro,{className:Ga,style:Uo,title:ps,scope:wn,onMouseEnter:Ba?ua:void 0,onMouseLeave:Ba?qi:void 0,colSpan:Za!==1?Za:null,rowSpan:fi!==1?fi:null}),Wi,da)}var Mt=Te.memo(Bn);function Hn(Fn,pr,Ln,rt,Hr){var _r=Ln[Fn]||{},pi=Ln[pr]||{},hi,ri;_r.fixed==="left"?hi=rt.left[Hr==="rtl"?pr:Fn]:pi.fixed==="right"&&(ri=rt.right[Hr==="rtl"?Fn:pr]);var yr=!1,ht=!1,xn=!1,wn=!1,jn=Ln[pr+1],On=Ln[Fn-1],sr=jn&&!jn.fixed||On&&!On.fixed||Ln.every(function(Ni){return Ni.fixed==="left"});if(Hr==="rtl"){if(hi!==void 0){var Un=On&&On.fixed==="left";wn=!Un&&sr}else if(ri!==void 0){var ln=jn&&jn.fixed==="right";xn=!ln&&sr}}else if(hi!==void 0){var qn=jn&&jn.fixed==="left";yr=!qn&&sr}else if(ri!==void 0){var Ur=On&&On.fixed==="right";ht=!Ur&&sr}return{fixLeft:hi,fixRight:ri,lastFixLeft:yr,firstFixRight:ht,lastFixRight:xn,firstFixLeft:wn,isSticky:rt.isSticky}}var ur=Te.createContext({}),at=ur;function _e(Fn){var pr=Fn.className,Ln=Fn.index,rt=Fn.children,Hr=Fn.colSpan,_r=Hr===void 0?1:Hr,pi=Fn.rowSpan,hi=Fn.align,ri=Ke(Ae,["prefixCls","direction"]),yr=ri.prefixCls,ht=ri.direction,xn=Te.useContext(at),wn=xn.scrollColumnIndex,jn=xn.stickyOffsets,On=xn.flattenColumns,sr=Ln+_r-1,Un=sr+1===wn?_r+1:_r,ln=Hn(Ln,Ln+Un-1,On,jn,ht);return Te.createElement(Mt,(0,He.Z)({className:pr,index:Ln,component:"td",prefixCls:yr,record:null,dataIndex:null,align:hi,colSpan:Un,rowSpan:pi,render:function(){return rt}},ln))}var Re=ae(39224),Xe=["children"];function st(Fn){var pr=Fn.children,Ln=(0,Re.Z)(Fn,Xe);return Te.createElement("tr",Ln,pr)}function Be(Fn){var pr=Fn.children;return pr}Be.Row=st,Be.Cell=_e;var Et=Be;function En(Fn){var pr=Fn.children,Ln=Fn.stickyOffsets,rt=Fn.flattenColumns,Hr=Ke(Ae,"prefixCls"),_r=rt.length-1,pi=rt[_r],hi=Te.useMemo(function(){return{stickyOffsets:Ln,flattenColumns:rt,scrollColumnIndex:pi!=null&&pi.scrollbar?_r:null}},[pi,rt,_r,Ln]);return Te.createElement(at.Provider,{value:hi},Te.createElement("tfoot",{className:"".concat(Hr,"-summary")},pr))}var sn=fe(En),Mn=Et,Dt=ae(29301),_t=ae(24514),jt=ae(75152),dn=ae(26112);function Sn(Fn,pr,Ln,rt,Hr,_r,pi){Fn.push({record:pr,indent:Ln,index:pi});var hi=_r(pr),ri=Hr==null?void 0:Hr.has(hi);if(pr&&Array.isArray(pr[rt])&&ri)for(var yr=0;yr<pr[rt].length;yr+=1)Sn(Fn,pr[rt][yr],Ln+1,rt,Hr,_r,yr)}function gn(Fn,pr,Ln,rt){var Hr=Te.useMemo(function(){if(Ln!=null&&Ln.size){for(var _r=[],pi=0;pi<(Fn==null?void 0:Fn.length);pi+=1){var hi=Fn[pi];Sn(_r,hi,0,pr,Ln,rt,pi)}return _r}return Fn==null?void 0:Fn.map(function(ri,yr){return{record:ri,indent:0,index:yr}})},[Fn,pr,Ln,rt]);return Hr}function Ot(Fn,pr,Ln,rt){var Hr=Ke(Ae,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),_r=Hr.flattenColumns,pi=Hr.expandableType,hi=Hr.expandedKeys,ri=Hr.childrenColumnName,yr=Hr.onTriggerExpand,ht=Hr.rowExpandable,xn=Hr.onRow,wn=Hr.expandRowByClick,jn=Hr.rowClassName,On=pi==="nest",sr=pi==="row"&&(!ht||ht(Fn)),Un=sr||On,ln=hi&&hi.has(pr),qn=ri&&Fn&&Fn[ri],Ur=(0,Yn.zX)(yr),Ni=xn==null?void 0:xn(Fn,Ln),ai=Ni==null?void 0:Ni.onClick,Si=function(mo){wn&&Un&&yr(Fn,mo);for(var zo=arguments.length,kn=new Array(zo>1?zo-1:0),bo=1;bo<zo;bo++)kn[bo-1]=arguments[bo];ai==null||ai.apply(void 0,[mo].concat(kn))},Ii;typeof jn=="string"?Ii=jn:typeof jn=="function"&&(Ii=jn(Fn,Ln,rt));var Ri=ft(_r);return(0,ot.Z)((0,ot.Z)({},Hr),{},{columnsKey:Ri,nestExpandable:On,expanded:ln,hasNestChildren:qn,record:Fn,onTriggerExpand:Ur,rowSupportExpand:sr,expandable:Un,rowProps:(0,ot.Z)((0,ot.Z)({},Ni),{},{className:vt()(Ii,Ni==null?void 0:Ni.className),onClick:Si})})}function Pn(Fn){var pr=Fn.prefixCls,Ln=Fn.children,rt=Fn.component,Hr=Fn.cellComponent,_r=Fn.className,pi=Fn.expanded,hi=Fn.colSpan,ri=Fn.isEmpty,yr=Ke(Ae,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),ht=yr.scrollbarSize,xn=yr.fixHeader,wn=yr.fixColumn,jn=yr.componentWidth,On=yr.horizonScroll,sr=Ln;return(ri?On&&jn:wn)&&(sr=Te.createElement("div",{style:{width:jn-(xn&&!ri?ht:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(pr,"-expanded-row-fixed")},sr)),Te.createElement(rt,{className:_r,style:{display:pi?null:"none"}},Te.createElement(Mt,{component:Hr,prefixCls:pr,colSpan:hi},sr))}var Zt=Pn;function tn(Fn){var pr=Fn.prefixCls,Ln=Fn.record,rt=Fn.onExpand,Hr=Fn.expanded,_r=Fn.expandable,pi="".concat(pr,"-row-expand-icon");if(!_r)return Te.createElement("span",{className:vt()(pi,"".concat(pr,"-row-spaced"))});var hi=function(yr){rt(Ln,yr),yr.stopPropagation()};return Te.createElement("span",{className:vt()(pi,(0,mt.Z)((0,mt.Z)({},"".concat(pr,"-row-expanded"),Hr),"".concat(pr,"-row-collapsed"),!Hr)),onClick:hi})}function vn(Fn,pr,Ln){var rt=[];function Hr(_r){(_r||[]).forEach(function(pi,hi){rt.push(pr(pi,hi)),Hr(pi[Ln])})}return Hr(Fn),rt}function $n(Fn,pr,Ln,rt){return typeof Fn=="string"?Fn:typeof Fn=="function"?Fn(pr,Ln,rt):""}function mn(Fn,pr,Ln,rt,Hr){var _r=Fn.record,pi=Fn.prefixCls,hi=Fn.columnsKey,ri=Fn.fixedInfoList,yr=Fn.expandIconColumnIndex,ht=Fn.nestExpandable,xn=Fn.indentSize,wn=Fn.expandIcon,jn=Fn.expanded,On=Fn.hasNestChildren,sr=Fn.onTriggerExpand,Un=hi[Ln],ln=ri[Ln],qn;Ln===(yr||0)&&ht&&(qn=Te.createElement(Te.Fragment,null,Te.createElement("span",{style:{paddingLeft:"".concat(xn*rt,"px")},className:"".concat(pi,"-row-indent indent-level-").concat(rt)}),wn({prefixCls:pi,expanded:jn,expandable:On,record:_r,onExpand:sr})));var Ur;return pr.onCell&&(Ur=pr.onCell(_r,Hr)),{key:Un,fixedInfo:ln,appendCellNode:qn,additionalCellProps:Ur||{}}}function gt(Fn){var pr=Fn.className,Ln=Fn.style,rt=Fn.record,Hr=Fn.index,_r=Fn.renderIndex,pi=Fn.rowKey,hi=Fn.indent,ri=hi===void 0?0:hi,yr=Fn.rowComponent,ht=Fn.cellComponent,xn=Fn.scopeCellComponent,wn=Ot(rt,pi,Hr,ri),jn=wn.prefixCls,On=wn.flattenColumns,sr=wn.expandedRowClassName,Un=wn.expandedRowRender,ln=wn.rowProps,qn=wn.expanded,Ur=wn.rowSupportExpand,Ni=Te.useRef(!1);Ni.current||(Ni.current=qn);var ai=$n(sr,rt,Hr,ri),Si=Te.createElement(yr,(0,He.Z)({},ln,{"data-row-key":pi,className:vt()(pr,"".concat(jn,"-row"),"".concat(jn,"-row-level-").concat(ri),ln==null?void 0:ln.className,(0,mt.Z)({},ai,ri>=1)),style:(0,ot.Z)((0,ot.Z)({},Ln),ln==null?void 0:ln.style)}),On.map(function(co,mo){var zo=co.render,kn=co.dataIndex,bo=co.className,wo=mn(wn,co,mo,ri,Hr),Wi=wo.key,so=wo.fixedInfo,ro=wo.appendCellNode,Xo=wo.additionalCellProps;return Te.createElement(Mt,(0,He.Z)({className:bo,ellipsis:co.ellipsis,align:co.align,scope:co.rowScope,component:co.rowScope?xn:ht,prefixCls:jn,key:Wi,record:rt,index:Hr,renderIndex:_r,dataIndex:kn,render:zo,shouldCellUpdate:co.shouldCellUpdate},so,{appendNode:ro,additionalProps:Xo}))})),Ii;if(Ur&&(Ni.current||qn)){var Ri=Un(rt,Hr,ri+1,qn);Ii=Te.createElement(Zt,{expanded:qn,className:vt()("".concat(jn,"-expanded-row"),"".concat(jn,"-expanded-row-level-").concat(ri+1),ai),prefixCls:jn,component:yr,cellComponent:ht,colSpan:On.length,isEmpty:!1},Ri)}return Te.createElement(Te.Fragment,null,Si,Ii)}var Xn=fe(gt);function ir(Fn){var pr=Fn.columnKey,Ln=Fn.onColumnResize,rt=Te.useRef();return(0,ke.Z)(function(){rt.current&&Ln(pr,rt.current.offsetWidth)},[]),Te.createElement(Dt.Z,{data:pr},Te.createElement("td",{ref:rt,style:{padding:0,border:0,height:0}},Te.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var nn=ae(29194);function vr(Fn){var pr=Fn.prefixCls,Ln=Fn.columnsKey,rt=Fn.onColumnResize,Hr=Te.useRef(null);return Te.createElement("tr",{"aria-hidden":"true",className:"".concat(pr,"-measure-row"),style:{height:0,fontSize:0},ref:Hr},Te.createElement(Dt.Z.Collection,{onBatchResize:function(pi){(0,nn.Z)(Hr.current)&&pi.forEach(function(hi){var ri=hi.data,yr=hi.size;rt(ri,yr.offsetWidth)})}},Ln.map(function(_r){return Te.createElement(ir,{key:_r,columnKey:_r,onColumnResize:rt})})))}function $r(Fn){var pr=Fn.data,Ln=Fn.measureColumnWidth,rt=Ke(Ae,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Hr=rt.prefixCls,_r=rt.getComponent,pi=rt.onColumnResize,hi=rt.flattenColumns,ri=rt.getRowKey,yr=rt.expandedKeys,ht=rt.childrenColumnName,xn=rt.emptyNode,wn=gn(pr,ht,yr,ri),jn=Te.useRef({renderWithProps:!1}),On=_r(["body","wrapper"],"tbody"),sr=_r(["body","row"],"tr"),Un=_r(["body","cell"],"td"),ln=_r(["body","cell"],"th"),qn;pr.length?qn=wn.map(function(Ni,ai){var Si=Ni.record,Ii=Ni.indent,Ri=Ni.index,co=ri(Si,ai);return Te.createElement(Xn,{key:co,rowKey:co,record:Si,index:ai,renderIndex:Ri,rowComponent:sr,cellComponent:Un,scopeCellComponent:ln,indent:Ii})}):qn=Te.createElement(Zt,{expanded:!0,className:"".concat(Hr,"-placeholder"),prefixCls:Hr,component:sr,cellComponent:Un,colSpan:hi.length,isEmpty:!0},xn);var Ur=ft(hi);return Te.createElement(Yt.Provider,{value:jn.current},Te.createElement(On,{className:"".concat(Hr,"-tbody")},Ln&&Te.createElement(vr,{prefixCls:Hr,columnsKey:Ur,onColumnResize:pi}),qn))}var Lr=fe($r),Rn=ae(54451),ei=["columnType"];function Jr(Fn){for(var pr=Fn.colWidths,Ln=Fn.columns,rt=Fn.columCount,Hr=Ke(Ae,["tableLayout"]),_r=Hr.tableLayout,pi=[],hi=rt||Ln.length,ri=!1,yr=hi-1;yr>=0;yr-=1){var ht=pr[yr],xn=Ln&&Ln[yr],wn=void 0,jn=void 0;if(xn&&(wn=xn[Rn.v],_r==="auto"&&(jn=xn.minWidth)),ht||jn||wn||ri){var On=wn||{},sr=On.columnType,Un=(0,Re.Z)(On,ei);pi.unshift(Te.createElement("col",(0,He.Z)({key:yr,style:{width:ht,minWidth:jn}},Un))),ri=!0}}return Te.createElement("colgroup",null,pi)}var nr=Jr,Wr=ae(62730),oi=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Oe(Fn,pr){return(0,Te.useMemo)(function(){for(var Ln=[],rt=0;rt<pr;rt+=1){var Hr=Fn[rt];if(Hr!==void 0)Ln[rt]=Hr;else return null}return Ln},[Fn.join("_"),pr])}var cr=Te.forwardRef(function(Fn,pr){var Ln=Fn.className,rt=Fn.noData,Hr=Fn.columns,_r=Fn.flattenColumns,pi=Fn.colWidths,hi=Fn.columCount,ri=Fn.stickyOffsets,yr=Fn.direction,ht=Fn.fixHeader,xn=Fn.stickyTopOffset,wn=Fn.stickyBottomOffset,jn=Fn.stickyClassName,On=Fn.onScroll,sr=Fn.maxContentScroll,Un=Fn.children,ln=(0,Re.Z)(Fn,oi),qn=Ke(Ae,["prefixCls","scrollbarSize","isSticky","getComponent"]),Ur=qn.prefixCls,Ni=qn.scrollbarSize,ai=qn.isSticky,Si=qn.getComponent,Ii=Si(["header","table"],"table"),Ri=ai&&!ht?0:Ni,co=Te.useRef(null),mo=Te.useCallback(function(Xo){(0,St.mH)(pr,Xo),(0,St.mH)(co,Xo)},[]);Te.useEffect(function(){var Xo;function Vn(yo){var ia=yo,ws=ia.currentTarget,Ba=ia.deltaX;Ba&&(On({currentTarget:ws,scrollLeft:ws.scrollLeft+Ba}),yo.preventDefault())}return(Xo=co.current)===null||Xo===void 0||Xo.addEventListener("wheel",Vn,{passive:!1}),function(){var yo;(yo=co.current)===null||yo===void 0||yo.removeEventListener("wheel",Vn)}},[]);var zo=Te.useMemo(function(){return _r.every(function(Xo){return Xo.width})},[_r]),kn=_r[_r.length-1],bo={fixed:kn?kn.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Ur,"-cell-scrollbar")}}},wo=(0,Te.useMemo)(function(){return Ri?[].concat((0,Wr.Z)(Hr),[bo]):Hr},[Ri,Hr]),Wi=(0,Te.useMemo)(function(){return Ri?[].concat((0,Wr.Z)(_r),[bo]):_r},[Ri,_r]),so=(0,Te.useMemo)(function(){var Xo=ri.right,Vn=ri.left;return(0,ot.Z)((0,ot.Z)({},ri),{},{left:yr==="rtl"?[].concat((0,Wr.Z)(Vn.map(function(yo){return yo+Ri})),[0]):Vn,right:yr==="rtl"?Xo:[].concat((0,Wr.Z)(Xo.map(function(yo){return yo+Ri})),[0]),isSticky:ai})},[Ri,ri,ai]),ro=Oe(pi,hi);return Te.createElement("div",{style:(0,ot.Z)({overflow:"hidden"},ai?{top:xn,bottom:wn}:{}),ref:mo,className:vt()(Ln,(0,mt.Z)({},jn,!!jn))},Te.createElement(Ii,{style:{tableLayout:"fixed",visibility:rt||ro?null:"hidden"}},(!rt||!sr||zo)&&Te.createElement(nr,{colWidths:ro?[].concat((0,Wr.Z)(ro),[Ri]):[],columCount:hi+1,columns:Wi}),Un((0,ot.Z)((0,ot.Z)({},ln),{},{stickyOffsets:so,columns:wo,flattenColumns:Wi}))))}),Cr=Te.memo(cr),or=function(pr){var Ln=pr.cells,rt=pr.stickyOffsets,Hr=pr.flattenColumns,_r=pr.rowComponent,pi=pr.cellComponent,hi=pr.onHeaderRow,ri=pr.index,yr=Ke(Ae,["prefixCls","direction"]),ht=yr.prefixCls,xn=yr.direction,wn;hi&&(wn=hi(Ln.map(function(On){return On.column}),ri));var jn=ft(Ln.map(function(On){return On.column}));return Te.createElement(_r,wn,Ln.map(function(On,sr){var Un=On.column,ln=Hn(On.colStart,On.colEnd,Hr,rt,xn),qn;return Un&&Un.onHeaderCell&&(qn=On.column.onHeaderCell(Un)),Te.createElement(Mt,(0,He.Z)({},On,{scope:Un.title?On.colSpan>1?"colgroup":"col":null,ellipsis:Un.ellipsis,align:Un.align,component:pi,prefixCls:ht,key:jn[sr]},ln,{additionalProps:qn,rowType:"header"}))}))},kr=or;function Fr(Fn){var pr=[];function Ln(pi,hi){var ri=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;pr[ri]=pr[ri]||[];var yr=hi,ht=pi.filter(Boolean).map(function(xn){var wn={key:xn.key,className:xn.className||"",children:xn.title,column:xn,colStart:yr},jn=1,On=xn.children;return On&&On.length>0&&(jn=Ln(On,yr,ri+1).reduce(function(sr,Un){return sr+Un},0),wn.hasSubColumns=!0),"colSpan"in xn&&(jn=xn.colSpan),"rowSpan"in xn&&(wn.rowSpan=xn.rowSpan),wn.colSpan=jn,wn.colEnd=wn.colStart+jn-1,pr[ri].push(wn),yr+=jn,jn});return ht}Ln(Fn,0);for(var rt=pr.length,Hr=function(hi){pr[hi].forEach(function(ri){!("rowSpan"in ri)&&!ri.hasSubColumns&&(ri.rowSpan=rt-hi)})},_r=0;_r<rt;_r+=1)Hr(_r);return pr}var Or=function(pr){var Ln=pr.stickyOffsets,rt=pr.columns,Hr=pr.flattenColumns,_r=pr.onHeaderRow,pi=Ke(Ae,["prefixCls","getComponent"]),hi=pi.prefixCls,ri=pi.getComponent,yr=Te.useMemo(function(){return Fr(rt)},[rt]),ht=ri(["header","wrapper"],"thead"),xn=ri(["header","row"],"tr"),wn=ri(["header","cell"],"th");return Te.createElement(ht,{className:"".concat(hi,"-thead")},yr.map(function(jn,On){var sr=Te.createElement(kr,{key:On,flattenColumns:Hr,cells:jn,stickyOffsets:Ln,rowComponent:xn,cellComponent:wn,onHeaderRow:_r,index:On});return sr}))},mi=fe(Or),Ti=ae(97347);function hn(Fn,pr,Ln){var rt=(0,Rn.g)(Fn),Hr=rt.expandIcon,_r=rt.expandedRowKeys,pi=rt.defaultExpandedRowKeys,hi=rt.defaultExpandAllRows,ri=rt.expandedRowRender,yr=rt.onExpand,ht=rt.onExpandedRowsChange,xn=rt.childrenColumnName,wn=Hr||tn,jn=xn||"children",On=Te.useMemo(function(){return ri?"row":Fn.expandable&&Fn.internalHooks===oe.R&&Fn.expandable.__PARENT_RENDER_ICON__||pr.some(function(ai){return ai&&(0,Je.Z)(ai)==="object"&&ai[jn]})?"nest":!1},[!!ri,pr]),sr=Te.useState(function(){return pi||(hi?vn(pr,Ln,jn):[])}),Un=(0,Pe.Z)(sr,2),ln=Un[0],qn=Un[1],Ur=Te.useMemo(function(){return new Set(_r||ln||[])},[_r,ln]),Ni=Te.useCallback(function(ai){var Si=Ln(ai,pr.indexOf(ai)),Ii,Ri=Ur.has(Si);Ri?(Ur.delete(Si),Ii=(0,Wr.Z)(Ur)):Ii=[].concat((0,Wr.Z)(Ur),[Si]),qn(Ii),yr&&yr(!Ri,ai),ht&&ht(Ii)},[Ln,Ur,pr,yr,ht]);return[rt,On,Ur,wn,jn,Ni]}function Cn(Fn,pr,Ln){var rt=Fn.map(function(Hr,_r){return Hn(_r,_r,Fn,pr,Ln)});return(0,wt.Z)(function(){return rt},[rt],function(Hr,_r){return!(0,Ve.Z)(Hr,_r)})}function pn(Fn){var pr=(0,Te.useRef)(Fn),Ln=(0,Te.useState)({}),rt=(0,Pe.Z)(Ln,2),Hr=rt[1],_r=(0,Te.useRef)(null),pi=(0,Te.useRef)([]);function hi(ri){pi.current.push(ri);var yr=Promise.resolve();_r.current=yr,yr.then(function(){if(_r.current===yr){var ht=pi.current,xn=pr.current;pi.current=[],ht.forEach(function(wn){pr.current=wn(pr.current)}),_r.current=null,xn!==pr.current&&Hr({})}})}return(0,Te.useEffect)(function(){return function(){_r.current=null}},[]),[pr.current,hi]}function Kr(Fn){var pr=(0,Te.useRef)(Fn||null),Ln=(0,Te.useRef)();function rt(){window.clearTimeout(Ln.current)}function Hr(pi){pr.current=pi,rt(),Ln.current=window.setTimeout(function(){pr.current=null,Ln.current=void 0},100)}function _r(){return pr.current}return(0,Te.useEffect)(function(){return rt},[]),[Hr,_r]}function Yr(){var Fn=Te.useState(-1),pr=(0,Pe.Z)(Fn,2),Ln=pr[0],rt=pr[1],Hr=Te.useState(-1),_r=(0,Pe.Z)(Hr,2),pi=_r[0],hi=_r[1],ri=Te.useCallback(function(yr,ht){rt(yr),hi(ht)},[]);return[Ln,pi,ri]}var Vr=ae(47273),dr=(0,Vr.Z)()?window:null;function Gr(Fn,pr){var Ln=(0,Je.Z)(Fn)==="object"?Fn:{},rt=Ln.offsetHeader,Hr=rt===void 0?0:rt,_r=Ln.offsetSummary,pi=_r===void 0?0:_r,hi=Ln.offsetScroll,ri=hi===void 0?0:hi,yr=Ln.getContainer,ht=yr===void 0?function(){return dr}:yr,xn=ht()||dr,wn=!!Fn;return Te.useMemo(function(){return{isSticky:wn,stickyClassName:wn?"".concat(pr,"-sticky-holder"):"",offsetHeader:Hr,offsetSummary:pi,offsetScroll:ri,container:xn}},[wn,ri,Hr,pi,pr,xn])}function bi(Fn,pr,Ln){var rt=(0,Te.useMemo)(function(){var Hr=pr.length,_r=function(yr,ht,xn){for(var wn=[],jn=0,On=yr;On!==ht;On+=xn)wn.push(jn),pr[On].fixed&&(jn+=Fn[On]||0);return wn},pi=_r(0,Hr,1),hi=_r(Hr-1,-1,-1).reverse();return Ln==="rtl"?{left:hi,right:pi}:{left:pi,right:hi}},[Fn,pr,Ln]);return rt}var Ai=bi;function Oi(Fn){var pr=Fn.className,Ln=Fn.children;return Te.createElement("div",{className:pr},Ln)}var xt=Oi,on=ae(8224),br=ae(16089),Br=ae(76846);function Xt(Fn){var pr=(0,Br.bn)(Fn),Ln=pr.getBoundingClientRect(),rt=document.documentElement;return{left:Ln.left+(window.pageXOffset||rt.scrollLeft)-(rt.clientLeft||document.body.clientLeft||0),top:Ln.top+(window.pageYOffset||rt.scrollTop)-(rt.clientTop||document.body.clientTop||0)}}var fr=function(pr,Ln){var rt,Hr,_r=pr.scrollBodyRef,pi=pr.onScroll,hi=pr.offsetScroll,ri=pr.container,yr=pr.direction,ht=Ke(Ae,"prefixCls"),xn=((rt=_r.current)===null||rt===void 0?void 0:rt.scrollWidth)||0,wn=((Hr=_r.current)===null||Hr===void 0?void 0:Hr.clientWidth)||0,jn=xn&&wn*(wn/xn),On=Te.useRef(),sr=pn({scrollLeft:0,isHiddenScrollBar:!0}),Un=(0,Pe.Z)(sr,2),ln=Un[0],qn=Un[1],Ur=Te.useRef({delta:0,x:0}),Ni=Te.useState(!1),ai=(0,Pe.Z)(Ni,2),Si=ai[0],Ii=ai[1],Ri=Te.useRef(null);Te.useEffect(function(){return function(){br.Z.cancel(Ri.current)}},[]);var co=function(){Ii(!1)},mo=function(Wi){Wi.persist(),Ur.current.delta=Wi.pageX-ln.scrollLeft,Ur.current.x=0,Ii(!0),Wi.preventDefault()},zo=function(Wi){var so,ro=Wi||((so=window)===null||so===void 0?void 0:so.event),Xo=ro.buttons;if(!Si||Xo===0){Si&&Ii(!1);return}var Vn=Ur.current.x+Wi.pageX-Ur.current.x-Ur.current.delta,yo=yr==="rtl";Vn=Math.max(yo?jn-wn:0,Math.min(yo?0:wn-jn,Vn));var ia=!yo||Math.abs(Vn)+Math.abs(jn)<wn;ia&&(pi({scrollLeft:Vn/wn*(xn+2)}),Ur.current.x=Wi.pageX)},kn=function(){br.Z.cancel(Ri.current),Ri.current=(0,br.Z)(function(){if(_r.current){var Wi=Xt(_r.current).top,so=Wi+_r.current.offsetHeight,ro=ri===window?document.documentElement.scrollTop+window.innerHeight:Xt(ri).top+ri.clientHeight;so-(0,jt.Z)()<=ro||Wi>=ro-hi?qn(function(Xo){return(0,ot.Z)((0,ot.Z)({},Xo),{},{isHiddenScrollBar:!0})}):qn(function(Xo){return(0,ot.Z)((0,ot.Z)({},Xo),{},{isHiddenScrollBar:!1})})}})},bo=function(Wi){qn(function(so){return(0,ot.Z)((0,ot.Z)({},so),{},{scrollLeft:Wi/xn*wn||0})})};return Te.useImperativeHandle(Ln,function(){return{setScrollLeft:bo,checkScrollBarVisible:kn}}),Te.useEffect(function(){var wo=(0,on.Z)(document.body,"mouseup",co,!1),Wi=(0,on.Z)(document.body,"mousemove",zo,!1);return kn(),function(){wo.remove(),Wi.remove()}},[jn,Si]),Te.useEffect(function(){if(_r.current){for(var wo=[],Wi=(0,Br.bn)(_r.current);Wi;)wo.push(Wi),Wi=Wi.parentElement;return wo.forEach(function(so){return so.addEventListener("scroll",kn,!1)}),window.addEventListener("resize",kn,!1),window.addEventListener("scroll",kn,!1),ri.addEventListener("scroll",kn,!1),function(){wo.forEach(function(so){return so.removeEventListener("scroll",kn)}),window.removeEventListener("resize",kn),window.removeEventListener("scroll",kn),ri.removeEventListener("scroll",kn)}}},[ri]),Te.useEffect(function(){ln.isHiddenScrollBar||qn(function(wo){var Wi=_r.current;return Wi?(0,ot.Z)((0,ot.Z)({},wo),{},{scrollLeft:Wi.scrollLeft/Wi.scrollWidth*Wi.clientWidth}):wo})},[ln.isHiddenScrollBar]),xn<=wn||!jn||ln.isHiddenScrollBar?null:Te.createElement("div",{style:{height:(0,jt.Z)(),width:wn,bottom:hi},className:"".concat(ht,"-sticky-scroll")},Te.createElement("div",{onMouseDown:mo,ref:On,className:vt()("".concat(ht,"-sticky-scroll-bar"),(0,mt.Z)({},"".concat(ht,"-sticky-scroll-bar-active"),Si)),style:{width:"".concat(jn,"px"),transform:"translate3d(".concat(ln.scrollLeft,"px, 0, 0)")}}))},Tn=Te.forwardRef(fr);function un(Fn){return null}var Ue=un;function Nr(Fn){return null}var jr=Nr,zn="rc-table",vi=[],Xr={};function ci(){return"No Data"}function Gn(Fn,pr){var Ln=(0,ot.Z)({rowKey:"key",prefixCls:zn,emptyText:ci},Fn),rt=Ln.prefixCls,Hr=Ln.className,_r=Ln.rowClassName,pi=Ln.style,hi=Ln.data,ri=Ln.rowKey,yr=Ln.scroll,ht=Ln.tableLayout,xn=Ln.direction,wn=Ln.title,jn=Ln.footer,On=Ln.summary,sr=Ln.caption,Un=Ln.id,ln=Ln.showHeader,qn=Ln.components,Ur=Ln.emptyText,Ni=Ln.onRow,ai=Ln.onHeaderRow,Si=Ln.onScroll,Ii=Ln.internalHooks,Ri=Ln.transformColumns,co=Ln.internalRefs,mo=Ln.tailor,zo=Ln.getContainerWidth,kn=Ln.sticky,bo=Ln.rowHoverable,wo=bo===void 0?!0:bo,Wi=hi||vi,so=!!Wi.length,ro=Ii===oe.R,Xo=Te.useCallback(function(Vo,ha){return(0,Nt.Z)(qn,Vo)||ha},[qn]),Vn=Te.useMemo(function(){return typeof ri=="function"?ri:function(Vo){var ha=Vo&&Vo[ri];return ha}},[ri]),yo=Xo(["body"]),ia=Yr(),ws=(0,Pe.Z)(ia,3),Ba=ws[0],xl=ws[1],Cs=ws[2],Xi=hn(Ln,Wi,Vn),Ia=(0,Pe.Z)(Xi,6),_a=Ia[0],ds=Ia[1],La=Ia[2],Za=Ia[3],fi=Ia[4],Ji=Ia[5],fo=yr==null?void 0:yr.x,Mo=Te.useState(0),Oo=(0,Pe.Z)(Mo,2),ua=Oo[0],qi=Oo[1],ps=(0,Ti.Z)((0,ot.Z)((0,ot.Z)((0,ot.Z)({},Ln),_a),{},{expandable:!!_a.expandedRowRender,columnTitle:_a.columnTitle,expandedKeys:La,getRowKey:Vn,onTriggerExpand:Ji,expandIcon:Za,expandIconColumnIndex:_a.expandIconColumnIndex,direction:xn,scrollWidth:ro&&mo&&typeof fo=="number"?fo:null,clientWidth:ua}),ro?Ri:null),Ga=(0,Pe.Z)(ps,4),ca=Ga[0],Uo=Ga[1],da=Ga[2],Us=Ga[3],ba=da!=null?da:fo,hs=Te.useMemo(function(){return{columns:ca,flattenColumns:Uo}},[ca,Uo]),dl=Te.useRef(),js=Te.useRef(),Ka=Te.useRef(),Zl=Te.useRef();Te.useImperativeHandle(pr,function(){return{nativeElement:dl.current,scrollTo:function(ha){var Ha;if(Ka.current instanceof HTMLElement){var As=ha.index,vs=ha.top,Fl=ha.key;if(Jt(vs)){var Nl;(Nl=Ka.current)===null||Nl===void 0||Nl.scrollTo({top:vs})}else{var Bl,Ll=Fl!=null?Fl:Vn(Wi[As]);(Bl=Ka.current.querySelector('[data-row-key="'.concat(Ll,'"]')))===null||Bl===void 0||Bl.scrollIntoView()}}else(Ha=Ka.current)!==null&&Ha!==void 0&&Ha.scrollTo&&Ka.current.scrollTo(ha)}}});var ac=Te.useRef(),hl=Te.useState(!1),as=(0,Pe.Z)(hl,2),fl=as[0],xu=as[1],Kl=Te.useState(!1),sc=(0,Pe.Z)(Kl,2),ts=sc[0],lc=sc[1],bc=Te.useState(new Map),wu=(0,Pe.Z)(bc,2),Yu=wu[0],ks=wu[1],Vs=ft(Uo),gs=Vs.map(function(Vo){return Yu.get(Vo)}),Is=Te.useMemo(function(){return gs},[gs.join("_")]),Bu=Ai(Is,Uo,xn),Ws=yr&&ct(yr.y),Sa=yr&&ct(ba)||!!_a.fixed,pa=Sa&&Uo.some(function(Vo){var ha=Vo.fixed;return ha}),na=Te.useRef(),Ya=Gr(kn,rt),Mi=Ya.isSticky,ms=Ya.offsetHeader,en=Ya.offsetSummary,Ar=Ya.offsetScroll,Ml=Ya.stickyClassName,su=Ya.container,ns=Te.useMemo(function(){return On==null?void 0:On(Wi)},[On,Wi]),rs=(Ws||Mi)&&Te.isValidElement(ns)&&ns.type===Et&&ns.props.fixed,Xs,Ol,uc;Ws&&(Ol={overflowY:so?"scroll":"auto",maxHeight:yr.y}),Sa&&(Xs={overflowX:"auto"},Ws||(Ol={overflowY:"hidden"}),uc={width:ba===!0?"auto":ba,minWidth:"100%"});var ja=Te.useCallback(function(Vo,ha){ks(function(Ha){if(Ha.get(Vo)!==ha){var As=new Map(Ha);return As.set(Vo,ha),As}return Ha})},[]),To=Kr(null),Ps=(0,Pe.Z)(To,2),Zs=Ps[0],oa=Ps[1];function Zo(Vo,ha){ha&&(typeof ha=="function"?ha(Vo):ha.scrollLeft!==Vo&&(ha.scrollLeft=Vo,ha.scrollLeft!==Vo&&setTimeout(function(){ha.scrollLeft=Vo},0)))}var Xa=(0,Ie.Z)(function(Vo){var ha=Vo.currentTarget,Ha=Vo.scrollLeft,As=xn==="rtl",vs=typeof Ha=="number"?Ha:ha.scrollLeft,Fl=ha||Xr;if(!oa()||oa()===Fl){var Nl;Zs(Fl),Zo(vs,js.current),Zo(vs,Ka.current),Zo(vs,ac.current),Zo(vs,(Nl=na.current)===null||Nl===void 0?void 0:Nl.setScrollLeft)}var Bl=ha||js.current;if(Bl){var Ll=ro&&mo&&typeof ba=="number"?ba:Bl.scrollWidth,cu=Bl.clientWidth;if(Ll===cu){xu(!1),lc(!1);return}As?(xu(-vs<Ll-cu),lc(-vs>0)):(xu(vs>0),lc(vs<Ll-cu))}}),pl=(0,Ie.Z)(function(Vo){Xa(Vo),Si==null||Si(Vo)}),Da=function(){if(Sa&&Ka.current){var ha;Xa({currentTarget:(0,Br.bn)(Ka.current),scrollLeft:(ha=Ka.current)===null||ha===void 0?void 0:ha.scrollLeft})}else xu(!1),lc(!1)},wl=function(ha){var Ha,As=ha.width;(Ha=na.current)===null||Ha===void 0||Ha.checkScrollBarVisible();var vs=dl.current?dl.current.offsetWidth:As;ro&&zo&&dl.current&&(vs=zo(dl.current,vs)||vs),vs!==ua&&(Da(),qi(vs))},Ts=Te.useRef(!1);Te.useEffect(function(){Ts.current&&Da()},[Sa,hi,ca.length]),Te.useEffect(function(){Ts.current=!0},[]);var _u=Te.useState(0),ga=(0,Pe.Z)(_u,2),Ds=ga[0],aa=ga[1],Pa=Te.useState(!0),ka=(0,Pe.Z)(Pa,2),Va=ka[0],ea=ka[1];(0,ke.Z)(function(){(!mo||!ro)&&(Ka.current instanceof Element?aa((0,jt.o)(Ka.current).width):aa((0,jt.o)(Zl.current).width)),ea((0,_t.G)("position","sticky"))},[]),Te.useEffect(function(){ro&&co&&(co.body.current=Ka.current)});var cc=Te.useCallback(function(Vo){return Te.createElement(Te.Fragment,null,Te.createElement(mi,Vo),rs==="top"&&Te.createElement(sn,Vo,ns))},[rs,ns]),Eo=Te.useCallback(function(Vo){return Te.createElement(sn,Vo,ns)},[ns]),dd=Xo(["table"],"table"),ra=Te.useMemo(function(){return ht||(pa?ba==="max-content"?"auto":"fixed":Ws||Mi||Uo.some(function(Vo){var ha=Vo.ellipsis;return ha})?"fixed":"auto")},[Ws,pa,Uo,ht,Mi]),Vc,Cu={colWidths:Is,columCount:Uo.length,stickyOffsets:Bu,onHeaderRow:ai,fixHeader:Ws,scroll:yr},lu=Te.useMemo(function(){return so?null:typeof Ur=="function"?Ur():Ur},[so,Ur]),Wc=Te.createElement(Lr,{data:Wi,measureColumnWidth:Ws||Sa||Mi}),Ec=Te.createElement(nr,{colWidths:Uo.map(function(Vo){var ha=Vo.width;return ha}),columns:Uo}),uu=sr!=null?Te.createElement("caption",{className:"".concat(rt,"-caption")},sr):void 0,Yl=(0,dn.Z)(Ln,{data:!0}),sa=(0,dn.Z)(Ln,{aria:!0});if(Ws||Mi){var Qs;typeof yo=="function"?(Qs=yo(Wi,{scrollbarSize:Ds,ref:Ka,onScroll:Xa}),Cu.colWidths=Uo.map(function(Vo,ha){var Ha=Vo.width,As=ha===Uo.length-1?Ha-Ds:Ha;return typeof As=="number"&&!Number.isNaN(As)?As:0})):Qs=Te.createElement("div",{style:(0,ot.Z)((0,ot.Z)({},Xs),Ol),onScroll:pl,ref:Ka,className:vt()("".concat(rt,"-body"))},Te.createElement(dd,(0,He.Z)({style:(0,ot.Z)((0,ot.Z)({},uc),{},{tableLayout:ra})},sa),uu,Ec,Wc,!rs&&ns&&Te.createElement(sn,{stickyOffsets:Bu,flattenColumns:Uo},ns)));var Uu=(0,ot.Z)((0,ot.Z)((0,ot.Z)({noData:!Wi.length,maxContentScroll:Sa&&ba==="max-content"},Cu),hs),{},{direction:xn,stickyClassName:Ml,onScroll:Xa});Vc=Te.createElement(Te.Fragment,null,ln!==!1&&Te.createElement(Cr,(0,He.Z)({},Uu,{stickyTopOffset:ms,className:"".concat(rt,"-header"),ref:js}),cc),Qs,rs&&rs!=="top"&&Te.createElement(Cr,(0,He.Z)({},Uu,{stickyBottomOffset:en,className:"".concat(rt,"-summary"),ref:ac}),Eo),Mi&&Ka.current&&Ka.current instanceof Element&&Te.createElement(Tn,{ref:na,offsetScroll:Ar,scrollBodyRef:Ka,onScroll:Xa,container:su,direction:xn}))}else Vc=Te.createElement("div",{style:(0,ot.Z)((0,ot.Z)({},Xs),Ol),className:vt()("".concat(rt,"-content")),onScroll:Xa,ref:Ka},Te.createElement(dd,(0,He.Z)({style:(0,ot.Z)((0,ot.Z)({},uc),{},{tableLayout:ra})},sa),uu,Ec,ln!==!1&&Te.createElement(mi,(0,He.Z)({},Cu,hs)),Wc,ns&&Te.createElement(sn,{stickyOffsets:Bu,flattenColumns:Uo},ns)));var gl=Te.createElement("div",(0,He.Z)({className:vt()(rt,Hr,(0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)({},"".concat(rt,"-rtl"),xn==="rtl"),"".concat(rt,"-ping-left"),fl),"".concat(rt,"-ping-right"),ts),"".concat(rt,"-layout-fixed"),ht==="fixed"),"".concat(rt,"-fixed-header"),Ws),"".concat(rt,"-fixed-column"),pa),"".concat(rt,"-fixed-column-gapped"),pa&&Us),"".concat(rt,"-scroll-horizontal"),Sa),"".concat(rt,"-has-fix-left"),Uo[0]&&Uo[0].fixed),"".concat(rt,"-has-fix-right"),Uo[Uo.length-1]&&Uo[Uo.length-1].fixed==="right")),style:pi,id:Un,ref:dl},Yl),wn&&Te.createElement(xt,{className:"".concat(rt,"-title")},wn(Wi)),Te.createElement("div",{ref:Zl,className:"".concat(rt,"-container")},Vc),jn&&Te.createElement(xt,{className:"".concat(rt,"-footer")},jn(Wi)));Sa&&(gl=Te.createElement(Dt.Z,{onResize:wl},gl));var Xl=Cn(Uo,Bu,xn),il=Te.useMemo(function(){return{scrollX:ba,prefixCls:rt,getComponent:Xo,scrollbarSize:Ds,direction:xn,fixedInfoList:Xl,isSticky:Mi,supportSticky:Va,componentWidth:ua,fixHeader:Ws,fixColumn:pa,horizonScroll:Sa,tableLayout:ra,rowClassName:_r,expandedRowClassName:_a.expandedRowClassName,expandIcon:Za,expandableType:ds,expandRowByClick:_a.expandRowByClick,expandedRowRender:_a.expandedRowRender,onTriggerExpand:Ji,expandIconColumnIndex:_a.expandIconColumnIndex,indentSize:_a.indentSize,allColumnsFixedLeft:Uo.every(function(Vo){return Vo.fixed==="left"}),emptyNode:lu,columns:ca,flattenColumns:Uo,onColumnResize:ja,hoverStartRow:Ba,hoverEndRow:xl,onHover:Cs,rowExpandable:_a.rowExpandable,onRow:Ni,getRowKey:Vn,expandedKeys:La,childrenColumnName:fi,rowHoverable:wo}},[ba,rt,Xo,Ds,xn,Xl,Mi,Va,ua,Ws,pa,Sa,ra,_r,_a.expandedRowClassName,Za,ds,_a.expandRowByClick,_a.expandedRowRender,Ji,_a.expandIconColumnIndex,_a.indentSize,lu,ca,Uo,ja,Ba,xl,Cs,_a.rowExpandable,Ni,Vn,La,fi,wo]);return Te.createElement(Ae.Provider,{value:il},gl)}var cn=Te.forwardRef(Gn);function Ci(Fn){return ue(cn,Fn)}var ji=Ci();ji.EXPAND_COLUMN=oe.w,ji.INTERNAL_HOOKS=oe.R,ji.Column=Ue,ji.ColumnGroup=jr,ji.Summary=Mn;var Qn=ji,zr=ae(65283),si=lt(null),di=lt(null);function ti(Fn,pr,Ln){var rt=pr||1;return Ln[Fn+rt]-(Ln[Fn]||0)}function ki(Fn){var pr=Fn.rowInfo,Ln=Fn.column,rt=Fn.colIndex,Hr=Fn.indent,_r=Fn.index,pi=Fn.component,hi=Fn.renderIndex,ri=Fn.record,yr=Fn.style,ht=Fn.className,xn=Fn.inverse,wn=Fn.getHeight,jn=Ln.render,On=Ln.dataIndex,sr=Ln.className,Un=Ln.width,ln=Ke(di,["columnsOffset"]),qn=ln.columnsOffset,Ur=mn(pr,Ln,rt,Hr,_r),Ni=Ur.key,ai=Ur.fixedInfo,Si=Ur.appendCellNode,Ii=Ur.additionalCellProps,Ri=Ii.style,co=Ii.colSpan,mo=co===void 0?1:co,zo=Ii.rowSpan,kn=zo===void 0?1:zo,bo=rt-1,wo=ti(bo,mo,qn),Wi=mo>1?Un-wo:0,so=(0,ot.Z)((0,ot.Z)((0,ot.Z)({},Ri),yr),{},{flex:"0 0 ".concat(wo,"px"),width:"".concat(wo,"px"),marginRight:Wi,pointerEvents:"auto"}),ro=Te.useMemo(function(){return xn?kn<=1:mo===0||kn===0||kn>1},[kn,mo,xn]);ro?so.visibility="hidden":xn&&(so.height=wn==null?void 0:wn(kn));var Xo=ro?function(){return null}:jn,Vn={};return(kn===0||mo===0)&&(Vn.rowSpan=1,Vn.colSpan=1),Te.createElement(Mt,(0,He.Z)({className:vt()(sr,ht),ellipsis:Ln.ellipsis,align:Ln.align,scope:Ln.rowScope,component:pi,prefixCls:pr.prefixCls,key:Ni,record:ri,index:_r,renderIndex:hi,dataIndex:On,render:Xo,shouldCellUpdate:Ln.shouldCellUpdate},ai,{appendNode:Si,additionalProps:(0,ot.Z)((0,ot.Z)({},Ii),{},{style:so},Vn)}))}var Bi=ki,Zi=["data","index","className","rowKey","style","extra","getHeight"],Fi=Te.forwardRef(function(Fn,pr){var Ln=Fn.data,rt=Fn.index,Hr=Fn.className,_r=Fn.rowKey,pi=Fn.style,hi=Fn.extra,ri=Fn.getHeight,yr=(0,Re.Z)(Fn,Zi),ht=Ln.record,xn=Ln.indent,wn=Ln.index,jn=Ke(Ae,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),On=jn.scrollX,sr=jn.flattenColumns,Un=jn.prefixCls,ln=jn.fixColumn,qn=jn.componentWidth,Ur=Ke(si,["getComponent"]),Ni=Ur.getComponent,ai=Ot(ht,_r,rt,xn),Si=Ni(["body","row"],"div"),Ii=Ni(["body","cell"],"div"),Ri=ai.rowSupportExpand,co=ai.expanded,mo=ai.rowProps,zo=ai.expandedRowRender,kn=ai.expandedRowClassName,bo;if(Ri&&co){var wo=zo(ht,rt,xn+1,co),Wi=$n(kn,ht,rt,xn),so={};ln&&(so={style:(0,mt.Z)({},"--virtual-width","".concat(qn,"px"))});var ro="".concat(Un,"-expanded-row-cell");bo=Te.createElement(Si,{className:vt()("".concat(Un,"-expanded-row"),"".concat(Un,"-expanded-row-level-").concat(xn+1),Wi)},Te.createElement(Mt,{component:Ii,prefixCls:Un,className:vt()(ro,(0,mt.Z)({},"".concat(ro,"-fixed"),ln)),additionalProps:so},wo))}var Xo=(0,ot.Z)((0,ot.Z)({},pi),{},{width:On});hi&&(Xo.position="absolute",Xo.pointerEvents="none");var Vn=Te.createElement(Si,(0,He.Z)({},mo,yr,{"data-row-key":_r,ref:Ri?null:pr,className:vt()(Hr,"".concat(Un,"-row"),mo==null?void 0:mo.className,(0,mt.Z)({},"".concat(Un,"-row-extra"),hi)),style:(0,ot.Z)((0,ot.Z)({},Xo),mo==null?void 0:mo.style)}),sr.map(function(yo,ia){return Te.createElement(Bi,{key:ia,component:Ii,rowInfo:ai,column:yo,colIndex:ia,indent:xn,index:rt,renderIndex:wn,record:ht,inverse:hi,getHeight:ri})}));return Ri?Te.createElement("div",{ref:pr},Vn,bo):Vn}),Vi=fe(Fi),er=Vi,_i=Te.forwardRef(function(Fn,pr){var Ln=Fn.data,rt=Fn.onScroll,Hr=Ke(Ae,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),_r=Hr.flattenColumns,pi=Hr.onColumnResize,hi=Hr.getRowKey,ri=Hr.expandedKeys,yr=Hr.prefixCls,ht=Hr.childrenColumnName,xn=Hr.scrollX,wn=Hr.direction,jn=Ke(si),On=jn.sticky,sr=jn.scrollY,Un=jn.listItemHeight,ln=jn.getComponent,qn=jn.onScroll,Ur=Te.useRef(),Ni=gn(Ln,ht,ri,hi),ai=Te.useMemo(function(){var bo=0;return _r.map(function(wo){var Wi=wo.width,so=wo.key;return bo+=Wi,[so,Wi,bo]})},[_r]),Si=Te.useMemo(function(){return ai.map(function(bo){return bo[2]})},[ai]);Te.useEffect(function(){ai.forEach(function(bo){var wo=(0,Pe.Z)(bo,2),Wi=wo[0],so=wo[1];pi(Wi,so)})},[ai]),Te.useImperativeHandle(pr,function(){var bo,wo={scrollTo:function(so){var ro;(ro=Ur.current)===null||ro===void 0||ro.scrollTo(so)},nativeElement:(bo=Ur.current)===null||bo===void 0?void 0:bo.nativeElement};return Object.defineProperty(wo,"scrollLeft",{get:function(){var so;return((so=Ur.current)===null||so===void 0?void 0:so.getScrollInfo().x)||0},set:function(so){var ro;(ro=Ur.current)===null||ro===void 0||ro.scrollTo({left:so})}}),wo});var Ii=function(wo,Wi){var so,ro=(so=Ni[Wi])===null||so===void 0?void 0:so.record,Xo=wo.onCell;if(Xo){var Vn,yo=Xo(ro,Wi);return(Vn=yo==null?void 0:yo.rowSpan)!==null&&Vn!==void 0?Vn:1}return 1},Ri=function(wo){var Wi=wo.start,so=wo.end,ro=wo.getSize,Xo=wo.offsetY;if(so<0)return null;for(var Vn=_r.filter(function(Za){return Ii(Za,Wi)===0}),yo=Wi,ia=function(fi){if(Vn=Vn.filter(function(Ji){return Ii(Ji,fi)===0}),!Vn.length)return yo=fi,1},ws=Wi;ws>=0&&!ia(ws);ws-=1);for(var Ba=_r.filter(function(Za){return Ii(Za,so)!==1}),xl=so,Cs=function(fi){if(Ba=Ba.filter(function(Ji){return Ii(Ji,fi)!==1}),!Ba.length)return xl=Math.max(fi-1,so),1},Xi=so;Xi<Ni.length&&!Cs(Xi);Xi+=1);for(var Ia=[],_a=function(fi){var Ji=Ni[fi];if(!Ji)return 1;_r.some(function(fo){return Ii(fo,fi)>1})&&Ia.push(fi)},ds=yo;ds<=xl;ds+=1)_a(ds);var La=Ia.map(function(Za){var fi=Ni[Za],Ji=hi(fi.record,Za),fo=function(ua){var qi=Za+ua-1,ps=hi(Ni[qi].record,qi),Ga=ro(Ji,ps);return Ga.bottom-Ga.top},Mo=ro(Ji);return Te.createElement(er,{key:Za,data:fi,rowKey:Ji,index:Za,style:{top:-Xo+Mo.top},extra:!0,getHeight:fo})});return La},co=Te.useMemo(function(){return{columnsOffset:Si}},[Si]),mo="".concat(yr,"-tbody"),zo=ln(["body","wrapper"]),kn={};return On&&(kn.position="sticky",kn.bottom=0,(0,Je.Z)(On)==="object"&&On.offsetScroll&&(kn.bottom=On.offsetScroll)),Te.createElement(di.Provider,{value:co},Te.createElement(zr.Z,{fullHeight:!1,ref:Ur,prefixCls:"".concat(mo,"-virtual"),styles:{horizontalScrollBar:kn},className:mo,height:sr,itemHeight:Un||24,data:Ni,itemKey:function(wo){return hi(wo.record)},component:zo,scrollWidth:xn,direction:wn,onVirtualScroll:function(wo){var Wi,so=wo.x;rt({currentTarget:(Wi=Ur.current)===null||Wi===void 0?void 0:Wi.nativeElement,scrollLeft:so})},onScroll:qn,extraRender:Ri},function(bo,wo,Wi){var so=hi(bo.record,wo);return Te.createElement(er,{data:bo,rowKey:so,index:wo,style:Wi.style})}))}),ar=fe(_i),Ei=ar,Gi=function(pr,Ln){var rt=Ln.ref,Hr=Ln.onScroll;return Te.createElement(Ei,{ref:rt,data:pr,onScroll:Hr})};function Ui(Fn,pr){var Ln=Fn.data,rt=Fn.columns,Hr=Fn.scroll,_r=Fn.sticky,pi=Fn.prefixCls,hi=pi===void 0?zn:pi,ri=Fn.className,yr=Fn.listItemHeight,ht=Fn.components,xn=Fn.onScroll,wn=Hr||{},jn=wn.x,On=wn.y;typeof jn!="number"&&(jn=1),typeof On!="number"&&(On=500);var sr=(0,Yn.zX)(function(qn,Ur){return(0,Nt.Z)(ht,qn)||Ur}),Un=(0,Yn.zX)(xn),ln=Te.useMemo(function(){return{sticky:_r,scrollY:On,listItemHeight:yr,getComponent:sr,onScroll:Un}},[_r,On,yr,sr,Un]);return Te.createElement(si.Provider,{value:ln},Te.createElement(Qn,(0,He.Z)({},Fn,{className:vt()(ri,"".concat(hi,"-virtual")),scroll:(0,ot.Z)((0,ot.Z)({},Hr),{},{x:jn}),components:(0,ot.Z)((0,ot.Z)({},ht),{},{body:Ln!=null&&Ln.length?Gi:void 0}),columns:rt,internalHooks:oe.R,tailor:!0,ref:pr})))}var po=Te.forwardRef(Ui);function ho(Fn){return ue(po,Fn)}var Qi=ho(),Ro=null},54451:function(We,Ee,ae){"use strict";ae.d(Ee,{g:function(){return Te},v:function(){return Ve}});var oe=ae(89490),Pe=ae(39224),Ie=ae(48736),ke=["expandable"],Ve="RC_TABLE_INTERNAL_COL_DEFINE";function Te(Ge){var lt=Ge.expandable,Ke=(0,Pe.Z)(Ge,ke),He;return"expandable"in Ge?He=(0,oe.Z)((0,oe.Z)({},Ke),lt):He=Ke,He.showExpandColumn===!1&&(He.expandIconColumnIndex=-1),He}},22711:function(We,Ee,ae){"use strict";ae.r(Ee),ae.d(Ee,{ResizableTextArea:function(){return it},default:function(){return Ht}});var oe=ae(71409),Pe=ae(87075),Ie=ae(89490),ke=ae(62730),Ve=ae(11036),Te=ae(39224),Ge=ae(92310),lt=ae.n(Ge),Ke=ae(36901),He=ae(66003),St=ae(30292),$e=ae(18929),It=ae(59301),Fe=ae(28788),te=ae(29301),ee=ae(34280),he=ae(16089),ue=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,fe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],me={},be;function Ae(Qt){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,yn=Qt.getAttribute("id")||Qt.getAttribute("data-reactid")||Qt.getAttribute("name");if(Yt&&me[yn])return me[yn];var bt=window.getComputedStyle(Qt),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")),Jt=parseFloat(bt.getPropertyValue("border-bottom-width"))+parseFloat(bt.getPropertyValue("border-top-width")),fn=fe.map(function(bn){return"".concat(bn,":").concat(bt.getPropertyValue(bn))}).join(";"),kt={sizingStyle:fn,paddingSize:ct,borderSize:Jt,boxSizing:ft};return Yt&&yn&&(me[yn]=kt),kt}function De(Qt){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,yn=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)),Qt.getAttribute("wrap")?be.setAttribute("wrap",Qt.getAttribute("wrap")):be.removeAttribute("wrap");var ft=Ae(Qt,Yt),ct=ft.paddingSize,Jt=ft.borderSize,fn=ft.boxSizing,kt=ft.sizingStyle;be.setAttribute("style","".concat(kt,";").concat(ue)),be.value=Qt.value||Qt.placeholder||"";var bn=void 0,An=void 0,Yn,Vt=be.scrollHeight;if(fn==="border-box"?Vt+=Jt:fn==="content-box"&&(Vt-=ct),yn!==null||bt!==null){be.value=" ";var Bn=be.scrollHeight-ct;yn!==null&&(bn=Bn*yn,fn==="border-box"&&(bn=bn+ct+Jt),Vt=Math.max(bn,Vt)),bt!==null&&(An=Bn*bt,fn==="border-box"&&(An=An+ct+Jt),Yn=Vt>An?"":"hidden",Vt=Math.min(An,Vt))}var Mt={height:Vt,overflowY:Yn,resize:"none"};return bn&&(Mt.minHeight=bn),An&&(Mt.maxHeight=An),Mt}var Ye=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],nt=0,Je=1,ot=2,mt=It.forwardRef(function(Qt,Yt){var yn=Qt,bt=yn.prefixCls,ft=yn.defaultValue,ct=yn.value,Jt=yn.autoSize,fn=yn.onResize,kt=yn.className,bn=yn.style,An=yn.disabled,Yn=yn.onChange,Vt=yn.onInternalAutoSize,Bn=(0,Te.Z)(yn,Ye),Mt=(0,$e.Z)(ft,{value:ct,postState:function(Xn){return Xn!=null?Xn:""}}),Hn=(0,Ve.Z)(Mt,2),ur=Hn[0],at=Hn[1],_e=function(Xn){at(Xn.target.value),Yn==null||Yn(Xn)},Re=It.useRef();It.useImperativeHandle(Yt,function(){return{textArea:Re.current}});var Xe=It.useMemo(function(){return Jt&&(0,Fe.Z)(Jt)==="object"?[Jt.minRows,Jt.maxRows]:[]},[Jt]),st=(0,Ve.Z)(Xe,2),Be=st[0],Et=st[1],En=!!Jt,sn=function(){try{if(document.activeElement===Re.current){var Xn=Re.current,ir=Xn.selectionStart,nn=Xn.selectionEnd,vr=Xn.scrollTop;Re.current.setSelectionRange(ir,nn),Re.current.scrollTop=vr}}catch($r){}},Mn=It.useState(ot),Dt=(0,Ve.Z)(Mn,2),_t=Dt[0],jt=Dt[1],dn=It.useState(),Sn=(0,Ve.Z)(dn,2),gn=Sn[0],Ot=Sn[1],Pn=function(){jt(nt)};(0,ee.Z)(function(){En&&Pn()},[ct,Be,Et,En]),(0,ee.Z)(function(){if(_t===nt)jt(Je);else if(_t===Je){var gt=De(Re.current,!1,Be,Et);jt(ot),Ot(gt)}else sn()},[_t]);var Zt=It.useRef(),tn=function(){he.Z.cancel(Zt.current)},vn=function(Xn){_t===ot&&(fn==null||fn(Xn),Jt&&(tn(),Zt.current=(0,he.Z)(function(){Pn()})))};It.useEffect(function(){return tn},[]);var $n=En?gn:null,mn=(0,Ie.Z)((0,Ie.Z)({},bn),$n);return(_t===nt||_t===Je)&&(mn.overflowY="hidden",mn.overflowX="hidden"),It.createElement(te.Z,{onResize:vn,disabled:!(Jt||fn)},It.createElement("textarea",(0,oe.Z)({},Bn,{ref:Re,style:mn,className:lt()(bt,kt,(0,Pe.Z)({},"".concat(bt,"-disabled"),An)),disabled:An,value:ur,onChange:_e})))}),it=mt,vt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],wt=It.forwardRef(function(Qt,Yt){var yn,bt=Qt.defaultValue,ft=Qt.value,ct=Qt.onFocus,Jt=Qt.onBlur,fn=Qt.onChange,kt=Qt.allowClear,bn=Qt.maxLength,An=Qt.onCompositionStart,Yn=Qt.onCompositionEnd,Vt=Qt.suffix,Bn=Qt.prefixCls,Mt=Bn===void 0?"rc-textarea":Bn,Hn=Qt.showCount,ur=Qt.count,at=Qt.className,_e=Qt.style,Re=Qt.disabled,Xe=Qt.hidden,st=Qt.classNames,Be=Qt.styles,Et=Qt.onResize,En=Qt.onClear,sn=Qt.onPressEnter,Mn=Qt.readOnly,Dt=Qt.autoSize,_t=Qt.onKeyDown,jt=(0,Te.Z)(Qt,vt),dn=(0,$e.Z)(bt,{value:ft,defaultValue:bt}),Sn=(0,Ve.Z)(dn,2),gn=Sn[0],Ot=Sn[1],Pn=gn==null?"":String(gn),Zt=It.useState(!1),tn=(0,Ve.Z)(Zt,2),vn=tn[0],$n=tn[1],mn=It.useRef(!1),gt=It.useState(null),Xn=(0,Ve.Z)(gt,2),ir=Xn[0],nn=Xn[1],vr=(0,It.useRef)(null),$r=(0,It.useRef)(null),Lr=function(){var bi;return(bi=$r.current)===null||bi===void 0?void 0:bi.textArea},Rn=function(){Lr().focus()};(0,It.useImperativeHandle)(Yt,function(){var Gr;return{resizableTextArea:$r.current,focus:Rn,blur:function(){Lr().blur()},nativeElement:((Gr=vr.current)===null||Gr===void 0?void 0:Gr.nativeElement)||Lr()}}),(0,It.useEffect)(function(){$n(function(Gr){return!Re&&Gr})},[Re]);var ei=It.useState(null),Jr=(0,Ve.Z)(ei,2),nr=Jr[0],Wr=Jr[1];It.useEffect(function(){if(nr){var Gr;(Gr=Lr()).setSelectionRange.apply(Gr,(0,ke.Z)(nr))}},[nr]);var oi=(0,He.Z)(ur,Hn),Oe=(yn=oi.max)!==null&&yn!==void 0?yn:bn,cr=Number(Oe)>0,Cr=oi.strategy(Pn),or=!!Oe&&Cr>Oe,kr=function(bi,Ai){var Oi=Ai;!mn.current&&oi.exceedFormatter&&oi.max&&oi.strategy(Ai)>oi.max&&(Oi=oi.exceedFormatter(Ai,{max:oi.max}),Ai!==Oi&&Wr([Lr().selectionStart||0,Lr().selectionEnd||0])),Ot(Oi),(0,St.rJ)(bi.currentTarget,bi,fn,Oi)},Fr=function(bi){mn.current=!0,An==null||An(bi)},Or=function(bi){mn.current=!1,kr(bi,bi.currentTarget.value),Yn==null||Yn(bi)},mi=function(bi){kr(bi,bi.target.value)},Ti=function(bi){bi.key==="Enter"&&sn&&sn(bi),_t==null||_t(bi)},hn=function(bi){$n(!0),ct==null||ct(bi)},Cn=function(bi){$n(!1),Jt==null||Jt(bi)},pn=function(bi){Ot(""),Rn(),(0,St.rJ)(Lr(),bi,fn)},Kr=Vt,Yr;oi.show&&(oi.showFormatter?Yr=oi.showFormatter({value:Pn,count:Cr,maxLength:Oe}):Yr="".concat(Cr).concat(cr?" / ".concat(Oe):""),Kr=It.createElement(It.Fragment,null,Kr,It.createElement("span",{className:lt()("".concat(Mt,"-data-count"),st==null?void 0:st.count),style:Be==null?void 0:Be.count},Yr)));var Vr=function(bi){var Ai;Et==null||Et(bi),(Ai=Lr())!==null&&Ai!==void 0&&Ai.style.height&&nn(!0)},dr=!Dt&&!Hn&&!kt;return It.createElement(Ke.BaseInput,{ref:vr,value:Pn,allowClear:kt,handleReset:pn,suffix:Kr,prefixCls:Mt,classNames:(0,Ie.Z)((0,Ie.Z)({},st),{},{affixWrapper:lt()(st==null?void 0:st.affixWrapper,(0,Pe.Z)((0,Pe.Z)({},"".concat(Mt,"-show-count"),Hn),"".concat(Mt,"-textarea-allow-clear"),kt))}),disabled:Re,focused:vn,className:lt()(at,or&&"".concat(Mt,"-out-of-range")),style:(0,Ie.Z)((0,Ie.Z)({},_e),ir&&!dr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Yr=="string"?Yr:void 0}},hidden:Xe,readOnly:Mn,onClear:En},It.createElement(it,(0,oe.Z)({},jt,{autoSize:Dt,maxLength:bn,onKeyDown:Ti,onChange:mi,onFocus:hn,onBlur:Cn,onCompositionStart:Fr,onCompositionEnd:Or,className:lt()(st==null?void 0:st.textarea),style:(0,Ie.Z)((0,Ie.Z)({},Be==null?void 0:Be.textarea),{},{resize:_e==null?void 0:_e.resize}),disabled:Re,prefixCls:Mt,onResize:Vr,ref:$r,readOnly:Mn})))}),Nt=wt,Ht=Nt},9940:function(We,Ee,ae){"use strict";ae.d(Ee,{Qw:function(){return Hn},FJ:function(){return at},hT:function(){return ur},OF:function(){return be},ZP:function(){return Mn}});var oe=ae(71409),Pe=ae(62730),Ie=ae(89490),ke=ae(11036),Ve=ae(39224),Te=ae(28788),Ge=ae(37463),lt=ae(6551),Ke=ae(34643),He=ae(18929),St=ae(48736),$e=ae(59301),It=function(Dt){var _t=$e.useRef({valueLabels:new Map});return $e.useMemo(function(){var jt=_t.current.valueLabels,dn=new Map,Sn=Dt.map(function(gn){var Ot=gn.value,Pn=gn.label,Zt=Pn!=null?Pn:jt.get(Ot);return dn.set(Ot,Zt),(0,Ie.Z)((0,Ie.Z)({},gn),{},{label:Zt})});return _t.current.valueLabels=dn,[Sn]},[Dt])},Fe=function(_t,jt,dn,Sn){return $e.useMemo(function(){var gn=function(gt){return gt.map(function(Xn){var ir=Xn.value;return ir})},Ot=gn(_t),Pn=gn(jt),Zt=Ot.filter(function(mn){return!Sn[mn]}),tn=Ot,vn=Pn;if(dn){var $n=(0,Ke.S)(Ot,!0,Sn);tn=$n.checkedKeys,vn=$n.halfCheckedKeys}return[Array.from(new Set([].concat((0,Pe.Z)(Zt),(0,Pe.Z)(tn)))),vn]},[_t,jt,dn,Sn])},te=Fe,ee=ae(34061),he=function(Dt,_t){return $e.useMemo(function(){var jt=(0,ee.I8)(Dt,{fieldNames:_t,initWrapper:function(Sn){return(0,Ie.Z)((0,Ie.Z)({},Sn),{},{valueEntities:new Map})},processEntity:function(Sn,gn){var Ot=Sn.node[_t.value];if(0)var Pn;gn.valueEntities.set(Ot,Sn)}});return jt},[Dt,_t])},ue=ae(87075),fe=ae(11592),me=function(){return null},be=me,Ae=["children","value"];function De(Dt){return(0,fe.Z)(Dt).map(function(_t){if(!$e.isValidElement(_t)||!_t.type)return null;var jt=_t,dn=jt.key,Sn=jt.props,gn=Sn.children,Ot=Sn.value,Pn=(0,Ve.Z)(Sn,Ae),Zt=(0,Ie.Z)({key:dn,value:Ot},Pn),tn=De(gn);return tn.length&&(Zt.children=tn),Zt}).filter(function(_t){return _t})}function Ye(Dt){if(!Dt)return Dt;var _t=(0,Ie.Z)({},Dt);return"props"in _t||Object.defineProperty(_t,"props",{get:function(){return(0,St.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),_t}}),_t}function nt(Dt,_t,jt,dn,Sn,gn){var Ot=null,Pn=null;function Zt(){function tn(vn){var $n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",mn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return vn.map(function(gt,Xn){var ir="".concat($n,"-").concat(Xn),nn=gt[gn.value],vr=jt.includes(nn),$r=tn(gt[gn.children]||[],ir,vr),Lr=$e.createElement(be,gt,$r.map(function(ei){return ei.node}));if(_t===nn&&(Ot=Lr),vr){var Rn={pos:ir,node:Lr,children:$r};return mn||Pn.push(Rn),Rn}return null}).filter(function(gt){return gt})}Pn||(Pn=[],tn(dn),Pn.sort(function(vn,$n){var mn=vn.node.props.value,gt=$n.node.props.value,Xn=jt.indexOf(mn),ir=jt.indexOf(gt);return Xn-ir}))}Object.defineProperty(Dt,"triggerNode",{get:function(){return(0,St.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Zt(),Ot}}),Object.defineProperty(Dt,"allCheckedNodes",{get:function(){return(0,St.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Zt(),Sn?Pn:Pn.map(function(vn){var $n=vn.node;return $n})}})}var Je=function(_t,jt,dn){var Sn=dn.fieldNames,gn=dn.treeNodeFilterProp,Ot=dn.filterTreeNode,Pn=Sn.children;return $e.useMemo(function(){if(!jt||Ot===!1)return _t;var Zt=typeof Ot=="function"?Ot:function(vn,$n){return String($n[gn]).toUpperCase().includes(jt.toUpperCase())},tn=function vn($n){var mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return $n.reduce(function(gt,Xn){var ir=Xn[Pn],nn=mn||Zt(jt,Ye(Xn)),vr=vn(ir||[],nn);return(nn||vr.length)&&gt.push((0,Ie.Z)((0,Ie.Z)({},Xn),{},(0,ue.Z)({isLeaf:void 0},Pn,vr))),gt},[])};return tn(_t)},[_t,jt,Pn,gn,Ot])},ot=Je;function mt(Dt){var _t=$e.useRef();_t.current=Dt;var jt=$e.useCallback(function(){return _t.current.apply(_t,arguments)},[]);return jt}function it(Dt,_t){var jt=_t.id,dn=_t.pId,Sn=_t.rootPId,gn=new Map,Ot=[];return Dt.forEach(function(Pn){var Zt=Pn[jt],tn=(0,Ie.Z)((0,Ie.Z)({},Pn),{},{key:Pn.key||Zt});gn.set(Zt,tn)}),gn.forEach(function(Pn){var Zt=Pn[dn],tn=gn.get(Zt);tn?(tn.children=tn.children||[],tn.children.push(Pn)):(Zt===Sn||Sn===null)&&Ot.push(Pn)}),Ot}function vt(Dt,_t,jt){return $e.useMemo(function(){if(Dt){if(jt){var dn=(0,Ie.Z)({id:"id",pId:"pId",rootPId:null},(0,Te.Z)(jt)==="object"?jt:{});return it(Dt,dn)}return Dt}return De(_t)},[_t,jt,Dt])}var wt=$e.createContext(null),Nt=wt,Ht=ae(26356),Qt=ae(62379),Yt=ae(10228),yn=ae(80547),bt=$e.createContext(null),ft=bt,ct=function(_t){return Array.isArray(_t)?_t:_t!==void 0?[_t]:[]},Jt=function(_t){var jt=_t||{},dn=jt.label,Sn=jt.value,gn=jt.children;return{_title:dn?[dn]:["title","label"],value:Sn||"value",key:Sn||"value",children:gn||"children"}},fn=function(_t){return!_t||_t.disabled||_t.disableCheckbox||_t.checkable===!1},kt=function(_t,jt){var dn=[],Sn=function gn(Ot){Ot.forEach(function(Pn){var Zt=Pn[jt.children];Zt&&(dn.push(Pn[jt.value]),gn(Zt))})};return Sn(_t),dn},bn=function(_t){return _t==null},An=ae(70425),Yn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Vt=function(_t,jt){var dn=(0,Ge.lk)(),Sn=dn.prefixCls,gn=dn.multiple,Ot=dn.searchValue,Pn=dn.toggleOpen,Zt=dn.open,tn=dn.notFoundContent,vn=$e.useContext(ft),$n=vn.virtual,mn=vn.listHeight,gt=vn.listItemHeight,Xn=vn.listItemScrollOffset,ir=vn.treeData,nn=vn.fieldNames,vr=vn.onSelect,$r=vn.dropdownMatchSelectWidth,Lr=vn.treeExpandAction,Rn=vn.treeTitleRender,ei=vn.onPopupScroll,Jr=vn.leftMaxCount,nr=vn.leafCountOnly,Wr=vn.valueEntities,oi=$e.useContext(Nt),Oe=oi.checkable,cr=oi.checkedKeys,Cr=oi.halfCheckedKeys,or=oi.treeExpandedKeys,kr=oi.treeDefaultExpandAll,Fr=oi.treeDefaultExpandedKeys,Or=oi.onTreeExpand,mi=oi.treeIcon,Ti=oi.showTreeIcon,hn=oi.switcherIcon,Cn=oi.treeLine,pn=oi.treeNodeFilterProp,Kr=oi.loadData,Yr=oi.treeLoadedKeys,Vr=oi.treeMotion,dr=oi.onTreeLoad,Gr=oi.keyEntities,bi=$e.useRef(),Ai=(0,yn.Z)(function(){return ir},[Zt,ir],function(er,_i){return _i[0]&&er[1]!==_i[1]}),Oi=$e.useMemo(function(){return Oe?{checked:cr,halfChecked:Cr}:null},[Oe,cr,Cr]);$e.useEffect(function(){if(Zt&&!gn&&cr.length){var er;(er=bi.current)===null||er===void 0||er.scrollTo({key:cr[0]})}},[Zt]);var xt=function(_i){_i.preventDefault()},on=function(_i,ar){var Ei=ar.node;Oe&&fn(Ei)||(vr(Ei.key,{selected:!cr.includes(Ei.key)}),gn||Pn(!1))},br=$e.useState(Fr),Br=(0,ke.Z)(br,2),Xt=Br[0],fr=Br[1],Tn=$e.useState(null),un=(0,ke.Z)(Tn,2),Ue=un[0],Nr=un[1],jr=$e.useMemo(function(){return or?(0,Pe.Z)(or):Ot?Ue:Xt},[Xt,Ue,or,Ot]),zn=function(_i){fr(_i),Nr(_i),Or&&Or(_i)},vi=String(Ot).toLowerCase(),Xr=function(_i){return vi?String(_i[pn]).toLowerCase().includes(vi):!1};$e.useEffect(function(){Ot&&Nr(kt(ir,nn))},[Ot]);var ci=$e.useState(function(){return new Map}),Gn=(0,ke.Z)(ci,2),cn=Gn[0],Ci=Gn[1];$e.useEffect(function(){Jr&&Ci(new Map)},[Jr]);function ji(er){var _i=er[nn.value];if(!cn.has(_i)){var ar=Wr.get(_i),Ei=(ar.children||[]).length===0;if(Ei)cn.set(_i,!1);else{var Gi=ar.children.filter(function(po){return!po.node.disabled&&!po.node.disableCheckbox&&!cr.includes(po.node[nn.value])}),Ui=Gi.length;cn.set(_i,Ui>Jr)}}return cn.get(_i)}var Qn=(0,An.zX)(function(er){var _i=er[nn.value];return cr.includes(_i)||Jr===null?!1:Jr<=0?!0:nr&&Jr?ji(er):!1}),zr=function er(_i){var ar=(0,Ht.Z)(_i),Ei;try{for(ar.s();!(Ei=ar.n()).done;){var Gi=Ei.value;if(!(Gi.disabled||Gi.selectable===!1)){if(Ot){if(Xr(Gi))return Gi}else return Gi;if(Gi[nn.children]){var Ui=er(Gi[nn.children]);if(Ui)return Ui}}}}catch(po){ar.e(po)}finally{ar.f()}return null},si=$e.useState(null),di=(0,ke.Z)(si,2),ti=di[0],ki=di[1],Bi=Gr[ti];$e.useEffect(function(){if(Zt){var er=null,_i=function(){var Ei=zr(Ai);return Ei?Ei[nn.value]:null};!gn&&cr.length&&!Ot?er=cr[0]:er=_i(),ki(er)}},[Zt,Ot]),$e.useImperativeHandle(jt,function(){var er;return{scrollTo:(er=bi.current)===null||er===void 0?void 0:er.scrollTo,onKeyDown:function(ar){var Ei,Gi=ar.which;switch(Gi){case Yt.Z.UP:case Yt.Z.DOWN:case Yt.Z.LEFT:case Yt.Z.RIGHT:(Ei=bi.current)===null||Ei===void 0||Ei.onKeyDown(ar);break;case Yt.Z.ENTER:{if(Bi){var Ui=Qn(Bi.node),po=(Bi==null?void 0:Bi.node)||{},ho=po.selectable,Qi=po.value,Ro=po.disabled;ho!==!1&&!Ro&&!Ui&&on(null,{node:{key:ti},selected:!cr.includes(Qi)})}break}case Yt.Z.ESC:Pn(!1)}},onKeyUp:function(){}}});var Zi=(0,yn.Z)(function(){return!Ot},[Ot,or||Xt],function(er,_i){var ar=(0,ke.Z)(er,1),Ei=ar[0],Gi=(0,ke.Z)(_i,2),Ui=Gi[0],po=Gi[1];return Ei!==Ui&&!!(Ui||po)}),Fi=Zi?Kr:null;if(Ai.length===0)return $e.createElement("div",{role:"listbox",className:"".concat(Sn,"-empty"),onMouseDown:xt},tn);var Vi={fieldNames:nn};return Yr&&(Vi.loadedKeys=Yr),jr&&(Vi.expandedKeys=jr),$e.createElement("div",{onMouseDown:xt},Bi&&Zt&&$e.createElement("span",{style:Yn,"aria-live":"assertive"},Bi.node.value),$e.createElement(Qt.y6.Provider,{value:{nodeDisabled:Qn}},$e.createElement(Qt.ZP,(0,oe.Z)({ref:bi,focusable:!1,prefixCls:"".concat(Sn,"-tree"),treeData:Ai,height:mn,itemHeight:gt,itemScrollOffset:Xn,virtual:$n!==!1&&$r!==!1,multiple:gn,icon:mi,showIcon:Ti,switcherIcon:hn,showLine:Cn,loadData:Fi,motion:Vr,activeKey:ti,checkable:Oe,checkStrictly:!0,checkedKeys:Oi,selectedKeys:Oe?[]:cr,defaultExpandAll:kr,titleRender:Rn},Vi,{onActiveChange:ki,onSelect:on,onCheck:on,onExpand:zn,onLoad:dr,filterTreeNode:Xr,expandAction:Lr,onScroll:ei}))))},Bn=$e.forwardRef(Vt),Mt=Bn,Hn="SHOW_ALL",ur="SHOW_PARENT",at="SHOW_CHILD";function _e(Dt,_t,jt,dn){var Sn=new Set(Dt);return _t===at?Dt.filter(function(gn){var Ot=jt[gn];return!Ot||!Ot.children||!Ot.children.some(function(Pn){var Zt=Pn.node;return Sn.has(Zt[dn.value])})||!Ot.children.every(function(Pn){var Zt=Pn.node;return fn(Zt)||Sn.has(Zt[dn.value])})}):_t===ur?Dt.filter(function(gn){var Ot=jt[gn],Pn=Ot?Ot.parent:null;return!Pn||fn(Pn.node)||!Sn.has(Pn.key)}):Dt}function Re(Dt){var _t=Dt.searchPlaceholder,jt=Dt.treeCheckStrictly,dn=Dt.treeCheckable,Sn=Dt.labelInValue,gn=Dt.value,Ot=Dt.multiple,Pn=Dt.showCheckedStrategy,Zt=Dt.maxCount;warning(!_t,"`searchPlaceholder` has been removed."),jt&&Sn===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Sn||jt)&&warning(toArray(gn).every(function(tn){return tn&&_typeof(tn)==="object"&&"value"in tn}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),jt||Ot||dn?warning(!gn||Array.isArray(gn),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(gn),"`value` should not be array when `TreeSelect` is single mode."),Zt&&(Pn==="SHOW_ALL"&&!jt||Pn==="SHOW_PARENT")&&warning(!1,"`maxCount` not work with `showCheckedStrategy=SHOW_ALL` (when `treeCheckStrictly=false`) or `showCheckedStrategy=SHOW_PARENT`.")}var Xe=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 Be(Dt){return!Dt||(0,Te.Z)(Dt)!=="object"}var Et=$e.forwardRef(function(Dt,_t){var jt=Dt.id,dn=Dt.prefixCls,Sn=dn===void 0?"rc-tree-select":dn,gn=Dt.value,Ot=Dt.defaultValue,Pn=Dt.onChange,Zt=Dt.onSelect,tn=Dt.onDeselect,vn=Dt.searchValue,$n=Dt.inputValue,mn=Dt.onSearch,gt=Dt.autoClearSearchValue,Xn=gt===void 0?!0:gt,ir=Dt.filterTreeNode,nn=Dt.treeNodeFilterProp,vr=nn===void 0?"value":nn,$r=Dt.showCheckedStrategy,Lr=Dt.treeNodeLabelProp,Rn=Dt.multiple,ei=Dt.treeCheckable,Jr=Dt.treeCheckStrictly,nr=Dt.labelInValue,Wr=Dt.maxCount,oi=Dt.fieldNames,Oe=Dt.treeDataSimpleMode,cr=Dt.treeData,Cr=Dt.children,or=Dt.loadData,kr=Dt.treeLoadedKeys,Fr=Dt.onTreeLoad,Or=Dt.treeDefaultExpandAll,mi=Dt.treeExpandedKeys,Ti=Dt.treeDefaultExpandedKeys,hn=Dt.onTreeExpand,Cn=Dt.treeExpandAction,pn=Dt.virtual,Kr=Dt.listHeight,Yr=Kr===void 0?200:Kr,Vr=Dt.listItemHeight,dr=Vr===void 0?20:Vr,Gr=Dt.listItemScrollOffset,bi=Gr===void 0?0:Gr,Ai=Dt.onDropdownVisibleChange,Oi=Dt.dropdownMatchSelectWidth,xt=Oi===void 0?!0:Oi,on=Dt.treeLine,br=Dt.treeIcon,Br=Dt.showTreeIcon,Xt=Dt.switcherIcon,fr=Dt.treeMotion,Tn=Dt.treeTitleRender,un=Dt.onPopupScroll,Ue=(0,Ve.Z)(Dt,st),Nr=(0,lt.ZP)(jt),jr=ei&&!Jr,zn=ei||Jr,vi=Jr||nr,Xr=zn||Rn,ci=(0,He.Z)(Ot,{value:gn}),Gn=(0,ke.Z)(ci,2),cn=Gn[0],Ci=Gn[1],ji=$e.useMemo(function(){return ei?$r||at:Hn},[$r,ei]),Qn=$e.useMemo(function(){return Jt(oi)},[JSON.stringify(oi)]),zr=(0,He.Z)("",{value:vn!==void 0?vn:$n,postState:function(ln){return ln||""}}),si=(0,ke.Z)(zr,2),di=si[0],ti=si[1],ki=function(ln){ti(ln),mn==null||mn(ln)},Bi=vt(cr,Cr,Oe),Zi=he(Bi,Qn),Fi=Zi.keyEntities,Vi=Zi.valueEntities,er=$e.useCallback(function(Un){var ln=[],qn=[];return Un.forEach(function(Ur){Vi.has(Ur)?qn.push(Ur):ln.push(Ur)}),{missingRawValues:ln,existRawValues:qn}},[Vi]),_i=ot(Bi,di,{fieldNames:Qn,treeNodeFilterProp:vr,filterTreeNode:ir}),ar=$e.useCallback(function(Un){if(Un){if(Lr)return Un[Lr];for(var ln=Qn._title,qn=0;qn<ln.length;qn+=1){var Ur=Un[ln[qn]];if(Ur!==void 0)return Ur}}},[Qn,Lr]),Ei=$e.useCallback(function(Un){var ln=ct(Un);return ln.map(function(qn){return Be(qn)?{value:qn}:qn})},[]),Gi=$e.useCallback(function(Un){var ln=Ei(Un);return ln.map(function(qn){var Ur=qn.label,Ni=qn.value,ai=qn.halfChecked,Si,Ii=Vi.get(Ni);if(Ii){var Ri;Ur=Tn?Tn(Ii.node):(Ri=Ur)!==null&&Ri!==void 0?Ri:ar(Ii.node),Si=Ii.node.disabled}else if(Ur===void 0){var co=Ei(cn).find(function(mo){return mo.value===Ni});Ur=co.label}return{label:Ur,value:Ni,halfChecked:ai,disabled:Si}})},[Vi,ar,Ei,cn]),Ui=$e.useMemo(function(){return Ei(cn===null?[]:cn)},[Ei,cn]),po=$e.useMemo(function(){var Un=[],ln=[];return Ui.forEach(function(qn){qn.halfChecked?ln.push(qn):Un.push(qn)}),[Un,ln]},[Ui]),ho=(0,ke.Z)(po,2),Qi=ho[0],Ro=ho[1],Fn=$e.useMemo(function(){return Qi.map(function(Un){return Un.value})},[Qi]),pr=te(Qi,Ro,jr,Fi),Ln=(0,ke.Z)(pr,2),rt=Ln[0],Hr=Ln[1],_r=$e.useMemo(function(){var Un=_e(rt,ji,Fi,Qn),ln=Un.map(function(ai){var Si,Ii;return(Si=(Ii=Fi[ai])===null||Ii===void 0||(Ii=Ii.node)===null||Ii===void 0?void 0:Ii[Qn.value])!==null&&Si!==void 0?Si:ai}),qn=ln.map(function(ai){var Si=Qi.find(function(Ri){return Ri.value===ai}),Ii=nr?Si==null?void 0:Si.label:Tn==null?void 0:Tn(Si);return{value:ai,label:Ii}}),Ur=Gi(qn),Ni=Ur[0];return!Xr&&Ni&&bn(Ni.value)&&bn(Ni.label)?[]:Ur.map(function(ai){var Si;return(0,Ie.Z)((0,Ie.Z)({},ai),{},{label:(Si=ai.label)!==null&&Si!==void 0?Si:ai.value})})},[Qn,Xr,rt,Qi,Gi,ji,Fi]),pi=It(_r),hi=(0,ke.Z)(pi,1),ri=hi[0],yr=$e.useMemo(function(){return Xr&&(ji==="SHOW_CHILD"||Jr||!ei)?Wr:null},[Wr,Xr,Jr,ji,ei]),ht=mt(function(Un,ln,qn){var Ur=_e(Un,ji,Fi,Qn);if(!(yr&&Ur.length>yr)){var Ni=Gi(Un);if(Ci(Ni),Xn&&ti(""),Pn){var ai=Un;jr&&(ai=Ur.map(function(Wi){var so=Vi.get(Wi);return so?so.node[Qn.value]:Wi}));var Si=ln||{triggerValue:void 0,selected:void 0},Ii=Si.triggerValue,Ri=Si.selected,co=ai;if(Jr){var mo=Ro.filter(function(Wi){return!ai.includes(Wi.value)});co=[].concat((0,Pe.Z)(co),(0,Pe.Z)(mo))}var zo=Gi(co),kn={preValue:Qi,triggerValue:Ii},bo=!0;(Jr||qn==="selection"&&!Ri)&&(bo=!1),nt(kn,Ii,Un,Bi,bo,Qn),zn?kn.checked=Ri:kn.selected=Ri;var wo=vi?zo:zo.map(function(Wi){return Wi.value});Pn(Xr?wo:wo[0],vi?null:zo.map(function(Wi){return Wi.label}),kn)}}}),xn=$e.useCallback(function(Un,ln){var qn,Ur=ln.selected,Ni=ln.source,ai=Fi[Un],Si=ai==null?void 0:ai.node,Ii=(qn=Si==null?void 0:Si[Qn.value])!==null&&qn!==void 0?qn:Un;if(!Xr)ht([Ii],{selected:!0,triggerValue:Ii},"option");else{var Ri=Ur?[].concat((0,Pe.Z)(Fn),[Ii]):rt.filter(function(so){return so!==Ii});if(jr){var co=er(Ri),mo=co.missingRawValues,zo=co.existRawValues,kn=zo.map(function(so){return Vi.get(so).key}),bo;if(Ur){var wo=(0,Ke.S)(kn,!0,Fi);bo=wo.checkedKeys}else{var Wi=(0,Ke.S)(kn,{checked:!1,halfCheckedKeys:Hr},Fi);bo=Wi.checkedKeys}Ri=[].concat((0,Pe.Z)(mo),(0,Pe.Z)(bo.map(function(so){return Fi[so].node[Qn.value]})))}ht(Ri,{selected:Ur,triggerValue:Ii},Ni||"option")}Ur||!Xr?Zt==null||Zt(Ii,Ye(Si)):tn==null||tn(Ii,Ye(Si))},[er,Vi,Fi,Qn,Xr,Fn,ht,jr,Zt,tn,rt,Hr,Wr]),wn=$e.useCallback(function(Un){if(Ai){var ln={};Object.defineProperty(ln,"documentClickClose",{get:function(){return(0,St.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Ai(Un,ln)}},[Ai]),jn=mt(function(Un,ln){var qn=Un.map(function(Ur){return Ur.value});if(ln.type==="clear"){ht(qn,{},"selection");return}ln.values.length&&xn(ln.values[0].value,{selected:!1,source:"selection"})}),On=$e.useMemo(function(){return{virtual:pn,dropdownMatchSelectWidth:xt,listHeight:Yr,listItemHeight:dr,listItemScrollOffset:bi,treeData:_i,fieldNames:Qn,onSelect:xn,treeExpandAction:Cn,treeTitleRender:Tn,onPopupScroll:un,leftMaxCount:Wr===void 0?null:Wr-ri.length,leafCountOnly:ji==="SHOW_CHILD"&&!Jr&&!!ei,valueEntities:Vi}},[pn,xt,Yr,dr,bi,_i,Qn,xn,Cn,Tn,un,Wr,ri.length,ji,Jr,ei,Vi]),sr=$e.useMemo(function(){return{checkable:zn,loadData:or,treeLoadedKeys:kr,onTreeLoad:Fr,checkedKeys:rt,halfCheckedKeys:Hr,treeDefaultExpandAll:Or,treeExpandedKeys:mi,treeDefaultExpandedKeys:Ti,onTreeExpand:hn,treeIcon:br,treeMotion:fr,showTreeIcon:Br,switcherIcon:Xt,treeLine:on,treeNodeFilterProp:vr,keyEntities:Fi}},[zn,or,kr,Fr,rt,Hr,Or,mi,Ti,hn,br,fr,Br,Xt,on,vr,Fi]);return $e.createElement(ft.Provider,{value:On},$e.createElement(Nt.Provider,{value:sr},$e.createElement(Ge.Ac,(0,oe.Z)({ref:_t},Ue,{id:Nr,prefixCls:Sn,mode:Xr?"multiple":void 0,displayValues:ri,onDisplayValuesChange:jn,searchValue:di,onSearch:ki,OptionList:Mt,emptyOptions:!Bi.length,onDropdownVisibleChange:wn,dropdownMatchSelectWidth:xt}))))}),En=Et;En.TreeNode=be,En.SHOW_ALL=Hn,En.SHOW_PARENT=ur,En.SHOW_CHILD=at;var sn=En,Mn=sn},639:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return me}});var oe=ae(71409),Pe=ae(87075),Ie=ae(89490),ke=ae(11036),Ve=ae(39224),Te=ae(59301),Ge=ae(92310),lt=ae.n(Ge),Ke=ae(26112),He=ae(30699),St=function(Ae){for(var De=Ae.prefixCls,Ye=Ae.level,nt=Ae.isStart,Je=Ae.isEnd,ot="".concat(De,"-indent-unit"),mt=[],it=0;it<Ye;it+=1)mt.push(Te.createElement("span",{key:it,className:lt()(ot,(0,Pe.Z)((0,Pe.Z)({},"".concat(ot,"-start"),nt[it]),"".concat(ot,"-end"),Je[it]))}));return Te.createElement("span",{"aria-hidden":"true",className:"".concat(De,"-indent")},mt)},$e=Te.memo(St),It=ae(65065),Fe=ae(34061),te=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ee="open",he="close",ue="---",fe=function(Ae){var De,Ye,nt,Je=Ae.eventKey,ot=Ae.className,mt=Ae.style,it=Ae.dragOver,vt=Ae.dragOverGapTop,wt=Ae.dragOverGapBottom,Nt=Ae.isLeaf,Ht=Ae.isStart,Qt=Ae.isEnd,Yt=Ae.expanded,yn=Ae.selected,bt=Ae.checked,ft=Ae.halfChecked,ct=Ae.loading,Jt=Ae.domRef,fn=Ae.active,kt=Ae.data,bn=Ae.onMouseMove,An=Ae.selectable,Yn=(0,Ve.Z)(Ae,te),Vt=Te.useContext(He.k),Bn=Te.useContext(He.y),Mt=Te.useRef(null),Hn=Te.useState(!1),ur=(0,ke.Z)(Hn,2),at=ur[0],_e=ur[1],Re=!!(Vt.disabled||Ae.disabled||(De=Bn.nodeDisabled)!==null&&De!==void 0&&De.call(Bn,kt)),Xe=Te.useMemo(function(){return!Vt.checkable||Ae.checkable===!1?!1:Vt.checkable},[Vt.checkable,Ae.checkable]),st=function(Cr){Re||Vt.onNodeSelect(Cr,(0,Fe.F)(Ae))},Be=function(Cr){Re||!Xe||Ae.disableCheckbox||Vt.onNodeCheck(Cr,(0,Fe.F)(Ae),!bt)},Et=Te.useMemo(function(){return typeof An=="boolean"?An:Vt.selectable},[An,Vt.selectable]),En=function(Cr){Vt.onNodeClick(Cr,(0,Fe.F)(Ae)),Et?st(Cr):Be(Cr)},sn=function(Cr){Vt.onNodeDoubleClick(Cr,(0,Fe.F)(Ae))},Mn=function(Cr){Vt.onNodeMouseEnter(Cr,(0,Fe.F)(Ae))},Dt=function(Cr){Vt.onNodeMouseLeave(Cr,(0,Fe.F)(Ae))},_t=function(Cr){Vt.onNodeContextMenu(Cr,(0,Fe.F)(Ae))},jt=Te.useMemo(function(){return!!(Vt.draggable&&(!Vt.draggable.nodeDraggable||Vt.draggable.nodeDraggable(kt)))},[Vt.draggable,kt]),dn=function(Cr){Cr.stopPropagation(),_e(!0),Vt.onNodeDragStart(Cr,Ae);try{Cr.dataTransfer.setData("text/plain","")}catch(or){}},Sn=function(Cr){Cr.preventDefault(),Cr.stopPropagation(),Vt.onNodeDragEnter(Cr,Ae)},gn=function(Cr){Cr.preventDefault(),Cr.stopPropagation(),Vt.onNodeDragOver(Cr,Ae)},Ot=function(Cr){Cr.stopPropagation(),Vt.onNodeDragLeave(Cr,Ae)},Pn=function(Cr){Cr.stopPropagation(),_e(!1),Vt.onNodeDragEnd(Cr,Ae)},Zt=function(Cr){Cr.preventDefault(),Cr.stopPropagation(),_e(!1),Vt.onNodeDrop(Cr,Ae)},tn=function(Cr){ct||Vt.onNodeExpand(Cr,(0,Fe.F)(Ae))},vn=Te.useMemo(function(){var cr=(0,It.Z)(Vt.keyEntities,Je)||{},Cr=cr.children;return!!(Cr||[]).length},[Vt.keyEntities,Je]),$n=Te.useMemo(function(){return Nt===!1?!1:Nt||!Vt.loadData&&!vn||Vt.loadData&&Ae.loaded&&!vn},[Nt,Vt.loadData,vn,Ae.loaded]);Te.useEffect(function(){ct||typeof Vt.loadData=="function"&&Yt&&!$n&&!Ae.loaded&&Vt.onNodeLoad((0,Fe.F)(Ae))},[ct,Vt.loadData,Vt.onNodeLoad,Yt,$n,Ae]);var mn=Te.useMemo(function(){var cr;return(cr=Vt.draggable)!==null&&cr!==void 0&&cr.icon?Te.createElement("span",{className:"".concat(Vt.prefixCls,"-draggable-icon")},Vt.draggable.icon):null},[Vt.draggable]),gt=function(Cr){var or=Ae.switcherIcon||Vt.switcherIcon;return typeof or=="function"?or((0,Ie.Z)((0,Ie.Z)({},Ae),{},{isLeaf:Cr})):or},Xn=function(){if($n){var Cr=gt(!0);return Cr!==!1?Te.createElement("span",{className:lt()("".concat(Vt.prefixCls,"-switcher"),"".concat(Vt.prefixCls,"-switcher-noop"))},Cr):null}var or=gt(!1);return or!==!1?Te.createElement("span",{onClick:tn,className:lt()("".concat(Vt.prefixCls,"-switcher"),"".concat(Vt.prefixCls,"-switcher_").concat(Yt?ee:he))},or):null},ir=Te.useMemo(function(){if(!Xe)return null;var cr=typeof Xe!="boolean"?Xe:null;return Te.createElement("span",{className:lt()("".concat(Vt.prefixCls,"-checkbox"),(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},"".concat(Vt.prefixCls,"-checkbox-checked"),bt),"".concat(Vt.prefixCls,"-checkbox-indeterminate"),!bt&&ft),"".concat(Vt.prefixCls,"-checkbox-disabled"),Re||Ae.disableCheckbox)),onClick:Be,role:"checkbox","aria-checked":ft?"mixed":bt,"aria-disabled":Re||Ae.disableCheckbox,"aria-label":"Select ".concat(typeof Ae.title=="string"?Ae.title:"tree node")},cr)},[Xe,bt,ft,Re,Ae.disableCheckbox,Ae.title]),nn=Te.useMemo(function(){return $n?null:Yt?ee:he},[$n,Yt]),vr=Te.useMemo(function(){return Te.createElement("span",{className:lt()("".concat(Vt.prefixCls,"-iconEle"),"".concat(Vt.prefixCls,"-icon__").concat(nn||"docu"),(0,Pe.Z)({},"".concat(Vt.prefixCls,"-icon_loading"),ct))})},[Vt.prefixCls,nn,ct]),$r=Te.useMemo(function(){var cr=!!Vt.draggable,Cr=!Ae.disabled&&cr&&Vt.dragOverNodeKey===Je;return Cr?Vt.dropIndicatorRender({dropPosition:Vt.dropPosition,dropLevelOffset:Vt.dropLevelOffset,indent:Vt.indent,prefixCls:Vt.prefixCls,direction:Vt.direction}):null},[Vt.dropPosition,Vt.dropLevelOffset,Vt.indent,Vt.prefixCls,Vt.direction,Vt.draggable,Vt.dragOverNodeKey,Vt.dropIndicatorRender]),Lr=Te.useMemo(function(){var cr=Ae.title,Cr=cr===void 0?ue:cr,or="".concat(Vt.prefixCls,"-node-content-wrapper"),kr;if(Vt.showIcon){var Fr=Ae.icon||Vt.icon;kr=Fr?Te.createElement("span",{className:lt()("".concat(Vt.prefixCls,"-iconEle"),"".concat(Vt.prefixCls,"-icon__customize"))},typeof Fr=="function"?Fr(Ae):Fr):vr}else Vt.loadData&&ct&&(kr=vr);var Or;return typeof Cr=="function"?Or=Cr(kt):Vt.titleRender?Or=Vt.titleRender(kt):Or=Cr,Te.createElement("span",{ref:Mt,title:typeof Cr=="string"?Cr:"",className:lt()(or,"".concat(or,"-").concat(nn||"normal"),(0,Pe.Z)({},"".concat(Vt.prefixCls,"-node-selected"),!Re&&(yn||at))),onMouseEnter:Mn,onMouseLeave:Dt,onContextMenu:_t,onClick:En,onDoubleClick:sn},kr,Te.createElement("span",{className:"".concat(Vt.prefixCls,"-title")},Or),$r)},[Vt.prefixCls,Vt.showIcon,Ae,Vt.icon,vr,Vt.titleRender,kt,nn,Mn,Dt,_t,En,sn]),Rn=(0,Ke.Z)(Yn,{aria:!0,data:!0}),ei=(0,It.Z)(Vt.keyEntities,Je)||{},Jr=ei.level,nr=Qt[Qt.length-1],Wr=!Re&&jt,oi=Vt.draggingNodeKey===Je,Oe=An!==void 0?{"aria-selected":!!An}:void 0;return Te.createElement("div",(0,oe.Z)({ref:Jt,role:"treeitem","aria-expanded":Nt?void 0:Yt,className:lt()(ot,"".concat(Vt.prefixCls,"-treenode"),(nt={},(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)(nt,"".concat(Vt.prefixCls,"-treenode-disabled"),Re),"".concat(Vt.prefixCls,"-treenode-switcher-").concat(Yt?"open":"close"),!Nt),"".concat(Vt.prefixCls,"-treenode-checkbox-checked"),bt),"".concat(Vt.prefixCls,"-treenode-checkbox-indeterminate"),ft),"".concat(Vt.prefixCls,"-treenode-selected"),yn),"".concat(Vt.prefixCls,"-treenode-loading"),ct),"".concat(Vt.prefixCls,"-treenode-active"),fn),"".concat(Vt.prefixCls,"-treenode-leaf-last"),nr),"".concat(Vt.prefixCls,"-treenode-draggable"),jt),"dragging",oi),(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)(nt,"drop-target",Vt.dropTargetKey===Je),"drop-container",Vt.dropContainerKey===Je),"drag-over",!Re&&it),"drag-over-gap-top",!Re&&vt),"drag-over-gap-bottom",!Re&&wt),"filter-node",(Ye=Vt.filterTreeNode)===null||Ye===void 0?void 0:Ye.call(Vt,(0,Fe.F)(Ae))),"".concat(Vt.prefixCls,"-treenode-leaf"),$n))),style:mt,draggable:Wr,onDragStart:Wr?dn:void 0,onDragEnter:jt?Sn:void 0,onDragOver:jt?gn:void 0,onDragLeave:jt?Ot:void 0,onDrop:jt?Zt:void 0,onDragEnd:jt?Pn:void 0,onMouseMove:bn},Oe,Rn),Te.createElement($e,{prefixCls:Vt.prefixCls,level:Jr,isStart:Ht,isEnd:Qt}),mn,Xn(),ir,Lr)};fe.isTreeNode=1;var me=fe},30699:function(We,Ee,ae){"use strict";ae.d(Ee,{k:function(){return Pe},y:function(){return Ie}});var oe=ae(59301),Pe=oe.createContext(null),Ie=oe.createContext({})},62379:function(We,Ee,ae){"use strict";ae.d(Ee,{OF:function(){return Je.Z},y6:function(){return he.y},ZP:function(){return Re}});var oe=ae(71409),Pe=ae(28788),Ie=ae(89490),ke=ae(62730),Ve=ae(16552),Te=ae(19210),Ge=ae(90264),lt=ae(46654),Ke=ae(37205),He=ae(87075),St=ae(92310),$e=ae.n(St),It=ae(10228),Fe=ae(26112),te=ae(48736),ee=ae(59301),he=ae(30699),ue=function(st){var Be=st.dropPosition,Et=st.dropLevelOffset,En=st.indent,sn={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Be){case-1:sn.top=0,sn.left=-Et*En;break;case 1:sn.bottom=0,sn.left=-Et*En;break;case 0:sn.bottom=0,sn.left=En;break}return ee.createElement("div",{style:sn})},fe=ue;function me(Xe){if(Xe==null)throw new TypeError("Cannot destructure "+Xe)}var be=ae(11036),Ae=ae(39224),De=ae(34280),Ye=ae(65283),nt=ae(77900),Je=ae(639);function ot(Xe,st){var Be=ee.useState(!1),Et=(0,be.Z)(Be,2),En=Et[0],sn=Et[1];(0,De.Z)(function(){if(En)return Xe(),function(){st()}},[En]),(0,De.Z)(function(){return sn(!0),function(){sn(!1)}},[])}var mt=ot,it=ae(34061),vt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],wt=ee.forwardRef(function(Xe,st){var Be=Xe.className,Et=Xe.style,En=Xe.motion,sn=Xe.motionNodes,Mn=Xe.motionType,Dt=Xe.onMotionStart,_t=Xe.onMotionEnd,jt=Xe.active,dn=Xe.treeNodeRequiredProps,Sn=(0,Ae.Z)(Xe,vt),gn=ee.useState(!0),Ot=(0,be.Z)(gn,2),Pn=Ot[0],Zt=Ot[1],tn=ee.useContext(he.k),vn=tn.prefixCls,$n=sn&&Mn!=="hide";(0,De.Z)(function(){sn&&$n!==Pn&&Zt($n)},[sn]);var mn=function(){sn&&Dt()},gt=ee.useRef(!1),Xn=function(){sn&&!gt.current&&(gt.current=!0,_t())};mt(mn,Xn);var ir=function(vr){$n===vr&&Xn()};return sn?ee.createElement(nt.default,(0,oe.Z)({ref:st,visible:Pn},En,{motionAppear:Mn==="show",onVisibleChanged:ir}),function(nn,vr){var $r=nn.className,Lr=nn.style;return ee.createElement("div",{ref:vr,className:$e()("".concat(vn,"-treenode-motion"),$r),style:Lr},sn.map(function(Rn){var ei=Object.assign({},(me(Rn.data),Rn.data)),Jr=Rn.title,nr=Rn.key,Wr=Rn.isStart,oi=Rn.isEnd;delete ei.children;var Oe=(0,it.H8)(nr,dn);return ee.createElement(Je.Z,(0,oe.Z)({},ei,Oe,{title:Jr,active:jt,data:Rn.data,key:nr,isStart:Wr,isEnd:oi}))}))}):ee.createElement(Je.Z,(0,oe.Z)({domRef:st,className:Be,style:Et},Sn,{active:jt}))}),Nt=wt;function Ht(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Be=Xe.length,Et=st.length;if(Math.abs(Be-Et)!==1)return{add:!1,key:null};function En(sn,Mn){var Dt=new Map;sn.forEach(function(jt){Dt.set(jt,!0)});var _t=Mn.filter(function(jt){return!Dt.has(jt)});return _t.length===1?_t[0]:null}return Be<Et?{add:!0,key:En(Xe,st)}:{add:!1,key:En(st,Xe)}}function Qt(Xe,st,Be){var Et=Xe.findIndex(function(Dt){return Dt.key===Be}),En=Xe[Et+1],sn=st.findIndex(function(Dt){return Dt.key===Be});if(En){var Mn=st.findIndex(function(Dt){return Dt.key===En.key});return st.slice(sn+1,Mn)}return st.slice(sn+1)}var Yt=["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"],yn={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},Jt={key:ft,level:0,index:0,pos:"0",node:ct,nodes:[ct]},fn={parent:null,children:[],pos:Jt.pos,data:ct,title:null,key:ft,isStart:[],isEnd:[]};function kt(Xe,st,Be,Et){return st===!1||!Be?Xe:Xe.slice(0,Math.ceil(Be/Et)+1)}function bn(Xe){var st=Xe.key,Be=Xe.pos;return(0,it.km)(st,Be)}function An(Xe){for(var st=String(Xe.data.key),Be=Xe;Be.parent;)Be=Be.parent,st="".concat(Be.data.key," > ").concat(st);return st}var Yn=ee.forwardRef(function(Xe,st){var Be=Xe.prefixCls,Et=Xe.data,En=Xe.selectable,sn=Xe.checkable,Mn=Xe.expandedKeys,Dt=Xe.selectedKeys,_t=Xe.checkedKeys,jt=Xe.loadedKeys,dn=Xe.loadingKeys,Sn=Xe.halfCheckedKeys,gn=Xe.keyEntities,Ot=Xe.disabled,Pn=Xe.dragging,Zt=Xe.dragOverNodeKey,tn=Xe.dropPosition,vn=Xe.motion,$n=Xe.height,mn=Xe.itemHeight,gt=Xe.virtual,Xn=Xe.scrollWidth,ir=Xe.focusable,nn=Xe.activeItem,vr=Xe.focused,$r=Xe.tabIndex,Lr=Xe.onKeyDown,Rn=Xe.onFocus,ei=Xe.onBlur,Jr=Xe.onActiveChange,nr=Xe.onListChangeStart,Wr=Xe.onListChangeEnd,oi=(0,Ae.Z)(Xe,Yt),Oe=ee.useRef(null),cr=ee.useRef(null);ee.useImperativeHandle(st,function(){return{scrollTo:function(un){Oe.current.scrollTo(un)},getIndentWidth:function(){return cr.current.offsetWidth}}});var Cr=ee.useState(Mn),or=(0,be.Z)(Cr,2),kr=or[0],Fr=or[1],Or=ee.useState(Et),mi=(0,be.Z)(Or,2),Ti=mi[0],hn=mi[1],Cn=ee.useState(Et),pn=(0,be.Z)(Cn,2),Kr=pn[0],Yr=pn[1],Vr=ee.useState([]),dr=(0,be.Z)(Vr,2),Gr=dr[0],bi=dr[1],Ai=ee.useState(null),Oi=(0,be.Z)(Ai,2),xt=Oi[0],on=Oi[1],br=ee.useRef(Et);br.current=Et;function Br(){var Tn=br.current;hn(Tn),Yr(Tn),bi([]),on(null),Wr()}(0,De.Z)(function(){Fr(Mn);var Tn=Ht(kr,Mn);if(Tn.key!==null)if(Tn.add){var un=Ti.findIndex(function(Xr){var ci=Xr.key;return ci===Tn.key}),Ue=kt(Qt(Ti,Et,Tn.key),gt,$n,mn),Nr=Ti.slice();Nr.splice(un+1,0,fn),Yr(Nr),bi(Ue),on("show")}else{var jr=Et.findIndex(function(Xr){var ci=Xr.key;return ci===Tn.key}),zn=kt(Qt(Et,Ti,Tn.key),gt,$n,mn),vi=Et.slice();vi.splice(jr+1,0,fn),Yr(vi),bi(zn),on("hide")}else Ti!==Et&&(hn(Et),Yr(Et))},[Mn,Et]),ee.useEffect(function(){Pn||Br()},[Pn]);var Xt=vn?Kr:Et,fr={expandedKeys:Mn,selectedKeys:Dt,loadedKeys:jt,loadingKeys:dn,checkedKeys:_t,halfCheckedKeys:Sn,dragOverNodeKey:Zt,dropPosition:tn,keyEntities:gn};return ee.createElement(ee.Fragment,null,vr&&nn&&ee.createElement("span",{style:yn,"aria-live":"assertive"},An(nn)),ee.createElement("div",null,ee.createElement("input",{style:yn,disabled:ir===!1||Ot,tabIndex:ir!==!1?$r:null,onKeyDown:Lr,onFocus:Rn,onBlur:ei,value:"",onChange:bt,"aria-label":"for screen reader"})),ee.createElement("div",{className:"".concat(Be,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ee.createElement("div",{className:"".concat(Be,"-indent")},ee.createElement("div",{ref:cr,className:"".concat(Be,"-indent-unit")}))),ee.createElement(Ye.Z,(0,oe.Z)({},oi,{data:Xt,itemKey:bn,height:$n,fullHeight:!1,virtual:gt,itemHeight:mn,scrollWidth:Xn,prefixCls:"".concat(Be,"-list"),ref:Oe,role:"tree",onVisibleChange:function(un){un.every(function(Ue){return bn(Ue)!==ft})&&Br()}}),function(Tn){var un=Tn.pos,Ue=Object.assign({},(me(Tn.data),Tn.data)),Nr=Tn.title,jr=Tn.key,zn=Tn.isStart,vi=Tn.isEnd,Xr=(0,it.km)(jr,un);delete Ue.key,delete Ue.children;var ci=(0,it.H8)(Xr,fr);return ee.createElement(Nt,(0,oe.Z)({},Ue,ci,{title:Nr,active:!!nn&&jr===nn.key,pos:un,data:Tn.data,isStart:zn,isEnd:vi,motion:vn,motionNodes:jr===ft?Gr:null,motionType:xt,onMotionStart:nr,onMotionEnd:Br,treeNodeRequiredProps:fr,onMouseMove:function(){Jr(null)}}))}))}),Vt=Yn,Bn=ae(82661),Mt=ae(34643),Hn=ae(65065),ur=10,at=function(Xe){(0,lt.Z)(Be,Xe);var st=(0,Ke.Z)(Be);function Be(){var Et;(0,Ve.Z)(this,Be);for(var En=arguments.length,sn=new Array(En),Mn=0;Mn<En;Mn++)sn[Mn]=arguments[Mn];return Et=st.call.apply(st,[this].concat(sn)),(0,He.Z)((0,Ge.Z)(Et),"destroyed",!1),(0,He.Z)((0,Ge.Z)(Et),"delayedDragEnterLogic",void 0),(0,He.Z)((0,Ge.Z)(Et),"loadingRetryTimes",{}),(0,He.Z)((0,Ge.Z)(Et),"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,it.w$)()}),(0,He.Z)((0,Ge.Z)(Et),"dragStartMousePosition",null),(0,He.Z)((0,Ge.Z)(Et),"dragNodeProps",null),(0,He.Z)((0,Ge.Z)(Et),"currentMouseOverDroppableNodeKey",null),(0,He.Z)((0,Ge.Z)(Et),"listRef",ee.createRef()),(0,He.Z)((0,Ge.Z)(Et),"onNodeDragStart",function(Dt,_t){var jt=Et.state,dn=jt.expandedKeys,Sn=jt.keyEntities,gn=Et.props.onDragStart,Ot=_t.eventKey;Et.dragNodeProps=_t,Et.dragStartMousePosition={x:Dt.clientX,y:Dt.clientY};var Pn=(0,Bn._5)(dn,Ot);Et.setState({draggingNodeKey:Ot,dragChildrenKeys:(0,Bn.wA)(Ot,Sn),indent:Et.listRef.current.getIndentWidth()}),Et.setExpandedKeys(Pn),window.addEventListener("dragend",Et.onWindowDragEnd),gn==null||gn({event:Dt,node:(0,it.F)(_t)})}),(0,He.Z)((0,Ge.Z)(Et),"onNodeDragEnter",function(Dt,_t){var jt=Et.state,dn=jt.expandedKeys,Sn=jt.keyEntities,gn=jt.dragChildrenKeys,Ot=jt.flattenNodes,Pn=jt.indent,Zt=Et.props,tn=Zt.onDragEnter,vn=Zt.onExpand,$n=Zt.allowDrop,mn=Zt.direction,gt=_t.pos,Xn=_t.eventKey;if(Et.currentMouseOverDroppableNodeKey!==Xn&&(Et.currentMouseOverDroppableNodeKey=Xn),!Et.dragNodeProps){Et.resetDragState();return}var ir=(0,Bn.OM)(Dt,Et.dragNodeProps,_t,Pn,Et.dragStartMousePosition,$n,Ot,Sn,dn,mn),nn=ir.dropPosition,vr=ir.dropLevelOffset,$r=ir.dropTargetKey,Lr=ir.dropContainerKey,Rn=ir.dropTargetPos,ei=ir.dropAllowed,Jr=ir.dragOverNodeKey;if(gn.includes($r)||!ei){Et.resetDragState();return}if(Et.delayedDragEnterLogic||(Et.delayedDragEnterLogic={}),Object.keys(Et.delayedDragEnterLogic).forEach(function(nr){clearTimeout(Et.delayedDragEnterLogic[nr])}),Et.dragNodeProps.eventKey!==_t.eventKey&&(Dt.persist(),Et.delayedDragEnterLogic[gt]=window.setTimeout(function(){if(Et.state.draggingNodeKey!==null){var nr=(0,ke.Z)(dn),Wr=(0,Hn.Z)(Sn,_t.eventKey);Wr&&(Wr.children||[]).length&&(nr=(0,Bn.L0)(dn,_t.eventKey)),Et.props.hasOwnProperty("expandedKeys")||Et.setExpandedKeys(nr),vn==null||vn(nr,{node:(0,it.F)(_t),expanded:!0,nativeEvent:Dt.nativeEvent})}},800)),Et.dragNodeProps.eventKey===$r&&vr===0){Et.resetDragState();return}Et.setState({dragOverNodeKey:Jr,dropPosition:nn,dropLevelOffset:vr,dropTargetKey:$r,dropContainerKey:Lr,dropTargetPos:Rn,dropAllowed:ei}),tn==null||tn({event:Dt,node:(0,it.F)(_t),expandedKeys:dn})}),(0,He.Z)((0,Ge.Z)(Et),"onNodeDragOver",function(Dt,_t){var jt=Et.state,dn=jt.dragChildrenKeys,Sn=jt.flattenNodes,gn=jt.keyEntities,Ot=jt.expandedKeys,Pn=jt.indent,Zt=Et.props,tn=Zt.onDragOver,vn=Zt.allowDrop,$n=Zt.direction;if(Et.dragNodeProps){var mn=(0,Bn.OM)(Dt,Et.dragNodeProps,_t,Pn,Et.dragStartMousePosition,vn,Sn,gn,Ot,$n),gt=mn.dropPosition,Xn=mn.dropLevelOffset,ir=mn.dropTargetKey,nn=mn.dropContainerKey,vr=mn.dropTargetPos,$r=mn.dropAllowed,Lr=mn.dragOverNodeKey;dn.includes(ir)||!$r||(Et.dragNodeProps.eventKey===ir&&Xn===0?Et.state.dropPosition===null&&Et.state.dropLevelOffset===null&&Et.state.dropTargetKey===null&&Et.state.dropContainerKey===null&&Et.state.dropTargetPos===null&&Et.state.dropAllowed===!1&&Et.state.dragOverNodeKey===null||Et.resetDragState():gt===Et.state.dropPosition&&Xn===Et.state.dropLevelOffset&&ir===Et.state.dropTargetKey&&nn===Et.state.dropContainerKey&&vr===Et.state.dropTargetPos&&$r===Et.state.dropAllowed&&Lr===Et.state.dragOverNodeKey||Et.setState({dropPosition:gt,dropLevelOffset:Xn,dropTargetKey:ir,dropContainerKey:nn,dropTargetPos:vr,dropAllowed:$r,dragOverNodeKey:Lr}),tn==null||tn({event:Dt,node:(0,it.F)(_t)}))}}),(0,He.Z)((0,Ge.Z)(Et),"onNodeDragLeave",function(Dt,_t){Et.currentMouseOverDroppableNodeKey===_t.eventKey&&!Dt.currentTarget.contains(Dt.relatedTarget)&&(Et.resetDragState(),Et.currentMouseOverDroppableNodeKey=null);var jt=Et.props.onDragLeave;jt==null||jt({event:Dt,node:(0,it.F)(_t)})}),(0,He.Z)((0,Ge.Z)(Et),"onWindowDragEnd",function(Dt){Et.onNodeDragEnd(Dt,null,!0),window.removeEventListener("dragend",Et.onWindowDragEnd)}),(0,He.Z)((0,Ge.Z)(Et),"onNodeDragEnd",function(Dt,_t){var jt=Et.props.onDragEnd;Et.setState({dragOverNodeKey:null}),Et.cleanDragState(),jt==null||jt({event:Dt,node:(0,it.F)(_t)}),Et.dragNodeProps=null,window.removeEventListener("dragend",Et.onWindowDragEnd)}),(0,He.Z)((0,Ge.Z)(Et),"onNodeDrop",function(Dt,_t){var jt,dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Sn=Et.state,gn=Sn.dragChildrenKeys,Ot=Sn.dropPosition,Pn=Sn.dropTargetKey,Zt=Sn.dropTargetPos,tn=Sn.dropAllowed;if(tn){var vn=Et.props.onDrop;if(Et.setState({dragOverNodeKey:null}),Et.cleanDragState(),Pn!==null){var $n=(0,Ie.Z)((0,Ie.Z)({},(0,it.H8)(Pn,Et.getTreeNodeRequiredProps())),{},{active:((jt=Et.getActiveItem())===null||jt===void 0?void 0:jt.key)===Pn,data:(0,Hn.Z)(Et.state.keyEntities,Pn).node}),mn=gn.includes(Pn);(0,te.ZP)(!mn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var gt=(0,Bn.yx)(Zt),Xn={event:Dt,node:(0,it.F)($n),dragNode:Et.dragNodeProps?(0,it.F)(Et.dragNodeProps):null,dragNodesKeys:[Et.dragNodeProps.eventKey].concat(gn),dropToGap:Ot!==0,dropPosition:Ot+Number(gt[gt.length-1])};dn||vn==null||vn(Xn),Et.dragNodeProps=null}}}),(0,He.Z)((0,Ge.Z)(Et),"cleanDragState",function(){var Dt=Et.state.draggingNodeKey;Dt!==null&&Et.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Et.dragStartMousePosition=null,Et.currentMouseOverDroppableNodeKey=null}),(0,He.Z)((0,Ge.Z)(Et),"triggerExpandActionExpand",function(Dt,_t){var jt=Et.state,dn=jt.expandedKeys,Sn=jt.flattenNodes,gn=_t.expanded,Ot=_t.key,Pn=_t.isLeaf;if(!(Pn||Dt.shiftKey||Dt.metaKey||Dt.ctrlKey)){var Zt=Sn.filter(function(vn){return vn.key===Ot})[0],tn=(0,it.F)((0,Ie.Z)((0,Ie.Z)({},(0,it.H8)(Ot,Et.getTreeNodeRequiredProps())),{},{data:Zt.data}));Et.setExpandedKeys(gn?(0,Bn._5)(dn,Ot):(0,Bn.L0)(dn,Ot)),Et.onNodeExpand(Dt,tn)}}),(0,He.Z)((0,Ge.Z)(Et),"onNodeClick",function(Dt,_t){var jt=Et.props,dn=jt.onClick,Sn=jt.expandAction;Sn==="click"&&Et.triggerExpandActionExpand(Dt,_t),dn==null||dn(Dt,_t)}),(0,He.Z)((0,Ge.Z)(Et),"onNodeDoubleClick",function(Dt,_t){var jt=Et.props,dn=jt.onDoubleClick,Sn=jt.expandAction;Sn==="doubleClick"&&Et.triggerExpandActionExpand(Dt,_t),dn==null||dn(Dt,_t)}),(0,He.Z)((0,Ge.Z)(Et),"onNodeSelect",function(Dt,_t){var jt=Et.state.selectedKeys,dn=Et.state,Sn=dn.keyEntities,gn=dn.fieldNames,Ot=Et.props,Pn=Ot.onSelect,Zt=Ot.multiple,tn=_t.selected,vn=_t[gn.key],$n=!tn;$n?Zt?jt=(0,Bn.L0)(jt,vn):jt=[vn]:jt=(0,Bn._5)(jt,vn);var mn=jt.map(function(gt){var Xn=(0,Hn.Z)(Sn,gt);return Xn?Xn.node:null}).filter(Boolean);Et.setUncontrolledState({selectedKeys:jt}),Pn==null||Pn(jt,{event:"select",selected:$n,node:_t,selectedNodes:mn,nativeEvent:Dt.nativeEvent})}),(0,He.Z)((0,Ge.Z)(Et),"onNodeCheck",function(Dt,_t,jt){var dn=Et.state,Sn=dn.keyEntities,gn=dn.checkedKeys,Ot=dn.halfCheckedKeys,Pn=Et.props,Zt=Pn.checkStrictly,tn=Pn.onCheck,vn=_t.key,$n,mn={event:"check",node:_t,checked:jt,nativeEvent:Dt.nativeEvent};if(Zt){var gt=jt?(0,Bn.L0)(gn,vn):(0,Bn._5)(gn,vn),Xn=(0,Bn._5)(Ot,vn);$n={checked:gt,halfChecked:Xn},mn.checkedNodes=gt.map(function(Rn){return(0,Hn.Z)(Sn,Rn)}).filter(Boolean).map(function(Rn){return Rn.node}),Et.setUncontrolledState({checkedKeys:gt})}else{var ir=(0,Mt.S)([].concat((0,ke.Z)(gn),[vn]),!0,Sn),nn=ir.checkedKeys,vr=ir.halfCheckedKeys;if(!jt){var $r=new Set(nn);$r.delete(vn);var Lr=(0,Mt.S)(Array.from($r),{checked:!1,halfCheckedKeys:vr},Sn);nn=Lr.checkedKeys,vr=Lr.halfCheckedKeys}$n=nn,mn.checkedNodes=[],mn.checkedNodesPositions=[],mn.halfCheckedKeys=vr,nn.forEach(function(Rn){var ei=(0,Hn.Z)(Sn,Rn);if(ei){var Jr=ei.node,nr=ei.pos;mn.checkedNodes.push(Jr),mn.checkedNodesPositions.push({node:Jr,pos:nr})}}),Et.setUncontrolledState({checkedKeys:nn},!1,{halfCheckedKeys:vr})}tn==null||tn($n,mn)}),(0,He.Z)((0,Ge.Z)(Et),"onNodeLoad",function(Dt){var _t,jt=Dt.key,dn=Et.state.keyEntities,Sn=(0,Hn.Z)(dn,jt);if(!(Sn!=null&&(_t=Sn.children)!==null&&_t!==void 0&&_t.length)){var gn=new Promise(function(Ot,Pn){Et.setState(function(Zt){var tn=Zt.loadedKeys,vn=tn===void 0?[]:tn,$n=Zt.loadingKeys,mn=$n===void 0?[]:$n,gt=Et.props,Xn=gt.loadData,ir=gt.onLoad;if(!Xn||vn.includes(jt)||mn.includes(jt))return null;var nn=Xn(Dt);return nn.then(function(){var vr=Et.state.loadedKeys,$r=(0,Bn.L0)(vr,jt);ir==null||ir($r,{event:"load",node:Dt}),Et.setUncontrolledState({loadedKeys:$r}),Et.setState(function(Lr){return{loadingKeys:(0,Bn._5)(Lr.loadingKeys,jt)}}),Ot()}).catch(function(vr){if(Et.setState(function(Lr){return{loadingKeys:(0,Bn._5)(Lr.loadingKeys,jt)}}),Et.loadingRetryTimes[jt]=(Et.loadingRetryTimes[jt]||0)+1,Et.loadingRetryTimes[jt]>=ur){var $r=Et.state.loadedKeys;(0,te.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Et.setUncontrolledState({loadedKeys:(0,Bn.L0)($r,jt)}),Ot()}Pn(vr)}),{loadingKeys:(0,Bn.L0)(mn,jt)}})});return gn.catch(function(){}),gn}}),(0,He.Z)((0,Ge.Z)(Et),"onNodeMouseEnter",function(Dt,_t){var jt=Et.props.onMouseEnter;jt==null||jt({event:Dt,node:_t})}),(0,He.Z)((0,Ge.Z)(Et),"onNodeMouseLeave",function(Dt,_t){var jt=Et.props.onMouseLeave;jt==null||jt({event:Dt,node:_t})}),(0,He.Z)((0,Ge.Z)(Et),"onNodeContextMenu",function(Dt,_t){var jt=Et.props.onRightClick;jt&&(Dt.preventDefault(),jt({event:Dt,node:_t}))}),(0,He.Z)((0,Ge.Z)(Et),"onFocus",function(){var Dt=Et.props.onFocus;Et.setState({focused:!0});for(var _t=arguments.length,jt=new Array(_t),dn=0;dn<_t;dn++)jt[dn]=arguments[dn];Dt==null||Dt.apply(void 0,jt)}),(0,He.Z)((0,Ge.Z)(Et),"onBlur",function(){var Dt=Et.props.onBlur;Et.setState({focused:!1}),Et.onActiveChange(null);for(var _t=arguments.length,jt=new Array(_t),dn=0;dn<_t;dn++)jt[dn]=arguments[dn];Dt==null||Dt.apply(void 0,jt)}),(0,He.Z)((0,Ge.Z)(Et),"getTreeNodeRequiredProps",function(){var Dt=Et.state,_t=Dt.expandedKeys,jt=Dt.selectedKeys,dn=Dt.loadedKeys,Sn=Dt.loadingKeys,gn=Dt.checkedKeys,Ot=Dt.halfCheckedKeys,Pn=Dt.dragOverNodeKey,Zt=Dt.dropPosition,tn=Dt.keyEntities;return{expandedKeys:_t||[],selectedKeys:jt||[],loadedKeys:dn||[],loadingKeys:Sn||[],checkedKeys:gn||[],halfCheckedKeys:Ot||[],dragOverNodeKey:Pn,dropPosition:Zt,keyEntities:tn}}),(0,He.Z)((0,Ge.Z)(Et),"setExpandedKeys",function(Dt){var _t=Et.state,jt=_t.treeData,dn=_t.fieldNames,Sn=(0,it.oH)(jt,Dt,dn);Et.setUncontrolledState({expandedKeys:Dt,flattenNodes:Sn},!0)}),(0,He.Z)((0,Ge.Z)(Et),"onNodeExpand",function(Dt,_t){var jt=Et.state.expandedKeys,dn=Et.state,Sn=dn.listChanging,gn=dn.fieldNames,Ot=Et.props,Pn=Ot.onExpand,Zt=Ot.loadData,tn=_t.expanded,vn=_t[gn.key];if(!Sn){var $n=jt.includes(vn),mn=!tn;if((0,te.ZP)(tn&&$n||!tn&&!$n,"Expand state not sync with index check"),jt=mn?(0,Bn.L0)(jt,vn):(0,Bn._5)(jt,vn),Et.setExpandedKeys(jt),Pn==null||Pn(jt,{node:_t,expanded:mn,nativeEvent:Dt.nativeEvent}),mn&&Zt){var gt=Et.onNodeLoad(_t);gt&&gt.then(function(){var Xn=(0,it.oH)(Et.state.treeData,jt,gn);Et.setUncontrolledState({flattenNodes:Xn})}).catch(function(){var Xn=Et.state.expandedKeys,ir=(0,Bn._5)(Xn,vn);Et.setExpandedKeys(ir)})}}}),(0,He.Z)((0,Ge.Z)(Et),"onListChangeStart",function(){Et.setUncontrolledState({listChanging:!0})}),(0,He.Z)((0,Ge.Z)(Et),"onListChangeEnd",function(){setTimeout(function(){Et.setUncontrolledState({listChanging:!1})})}),(0,He.Z)((0,Ge.Z)(Et),"onActiveChange",function(Dt){var _t=Et.state.activeKey,jt=Et.props,dn=jt.onActiveChange,Sn=jt.itemScrollOffset,gn=Sn===void 0?0:Sn;_t!==Dt&&(Et.setState({activeKey:Dt}),Dt!==null&&Et.scrollTo({key:Dt,offset:gn}),dn==null||dn(Dt))}),(0,He.Z)((0,Ge.Z)(Et),"getActiveItem",function(){var Dt=Et.state,_t=Dt.activeKey,jt=Dt.flattenNodes;return _t===null?null:jt.find(function(dn){var Sn=dn.key;return Sn===_t})||null}),(0,He.Z)((0,Ge.Z)(Et),"offsetActiveKey",function(Dt){var _t=Et.state,jt=_t.flattenNodes,dn=_t.activeKey,Sn=jt.findIndex(function(Pn){var Zt=Pn.key;return Zt===dn});Sn===-1&&Dt<0&&(Sn=jt.length),Sn=(Sn+Dt+jt.length)%jt.length;var gn=jt[Sn];if(gn){var Ot=gn.key;Et.onActiveChange(Ot)}else Et.onActiveChange(null)}),(0,He.Z)((0,Ge.Z)(Et),"onKeyDown",function(Dt){var _t=Et.state,jt=_t.activeKey,dn=_t.expandedKeys,Sn=_t.checkedKeys,gn=_t.fieldNames,Ot=Et.props,Pn=Ot.onKeyDown,Zt=Ot.checkable,tn=Ot.selectable;switch(Dt.which){case It.Z.UP:{Et.offsetActiveKey(-1),Dt.preventDefault();break}case It.Z.DOWN:{Et.offsetActiveKey(1),Dt.preventDefault();break}}var vn=Et.getActiveItem();if(vn&&vn.data){var $n=Et.getTreeNodeRequiredProps(),mn=vn.data.isLeaf===!1||!!(vn.data[gn.children]||[]).length,gt=(0,it.F)((0,Ie.Z)((0,Ie.Z)({},(0,it.H8)(jt,$n)),{},{data:vn.data,active:!0}));switch(Dt.which){case It.Z.LEFT:{mn&&dn.includes(jt)?Et.onNodeExpand({},gt):vn.parent&&Et.onActiveChange(vn.parent.key),Dt.preventDefault();break}case It.Z.RIGHT:{mn&&!dn.includes(jt)?Et.onNodeExpand({},gt):vn.children&&vn.children.length&&Et.onActiveChange(vn.children[0].key),Dt.preventDefault();break}case It.Z.ENTER:case It.Z.SPACE:{Zt&&!gt.disabled&&gt.checkable!==!1&&!gt.disableCheckbox?Et.onNodeCheck({},gt,!Sn.includes(jt)):!Zt&&tn&&!gt.disabled&&gt.selectable!==!1&&Et.onNodeSelect({},gt);break}}}Pn==null||Pn(Dt)}),(0,He.Z)((0,Ge.Z)(Et),"setUncontrolledState",function(Dt){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Et.destroyed){var dn=!1,Sn=!0,gn={};Object.keys(Dt).forEach(function(Ot){if(Et.props.hasOwnProperty(Ot)){Sn=!1;return}dn=!0,gn[Ot]=Dt[Ot]}),dn&&(!_t||Sn)&&Et.setState((0,Ie.Z)((0,Ie.Z)({},gn),jt))}}),(0,He.Z)((0,Ge.Z)(Et),"scrollTo",function(Dt){Et.listRef.current.scrollTo(Dt)}),Et}return(0,Te.Z)(Be,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var En=this.props,sn=En.activeKey,Mn=En.itemScrollOffset,Dt=Mn===void 0?0:Mn;sn!==void 0&&sn!==this.state.activeKey&&(this.setState({activeKey:sn}),sn!==null&&this.scrollTo({key:sn,offset:Dt}))}},{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 En=this.state,sn=En.focused,Mn=En.flattenNodes,Dt=En.keyEntities,_t=En.draggingNodeKey,jt=En.activeKey,dn=En.dropLevelOffset,Sn=En.dropContainerKey,gn=En.dropTargetKey,Ot=En.dropPosition,Pn=En.dragOverNodeKey,Zt=En.indent,tn=this.props,vn=tn.prefixCls,$n=tn.className,mn=tn.style,gt=tn.showLine,Xn=tn.focusable,ir=tn.tabIndex,nn=ir===void 0?0:ir,vr=tn.selectable,$r=tn.showIcon,Lr=tn.icon,Rn=tn.switcherIcon,ei=tn.draggable,Jr=tn.checkable,nr=tn.checkStrictly,Wr=tn.disabled,oi=tn.motion,Oe=tn.loadData,cr=tn.filterTreeNode,Cr=tn.height,or=tn.itemHeight,kr=tn.scrollWidth,Fr=tn.virtual,Or=tn.titleRender,mi=tn.dropIndicatorRender,Ti=tn.onContextMenu,hn=tn.onScroll,Cn=tn.direction,pn=tn.rootClassName,Kr=tn.rootStyle,Yr=(0,Fe.Z)(this.props,{aria:!0,data:!0}),Vr;ei&&((0,Pe.Z)(ei)==="object"?Vr=ei:typeof ei=="function"?Vr={nodeDraggable:ei}:Vr={});var dr={prefixCls:vn,selectable:vr,showIcon:$r,icon:Lr,switcherIcon:Rn,draggable:Vr,draggingNodeKey:_t,checkable:Jr,checkStrictly:nr,disabled:Wr,keyEntities:Dt,dropLevelOffset:dn,dropContainerKey:Sn,dropTargetKey:gn,dropPosition:Ot,dragOverNodeKey:Pn,indent:Zt,direction:Cn,dropIndicatorRender:mi,loadData:Oe,filterTreeNode:cr,titleRender:Or,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:dr},ee.createElement("div",{className:$e()(vn,$n,pn,(0,He.Z)((0,He.Z)((0,He.Z)({},"".concat(vn,"-show-line"),gt),"".concat(vn,"-focused"),sn),"".concat(vn,"-active-focused"),jt!==null)),style:Kr},ee.createElement(Vt,(0,oe.Z)({ref:this.listRef,prefixCls:vn,style:mn,data:Mn,disabled:Wr,selectable:vr,checkable:!!Jr,motion:oi,dragging:_t!==null,height:Cr,itemHeight:or,virtual:Fr,focusable:Xn,focused:sn,tabIndex:nn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ti,onScroll:hn,scrollWidth:kr},this.getTreeNodeRequiredProps(),Yr))))}}],[{key:"getDerivedStateFromProps",value:function(En,sn){var Mn=sn.prevProps,Dt={prevProps:En};function _t(nn){return!Mn&&En.hasOwnProperty(nn)||Mn&&Mn[nn]!==En[nn]}var jt,dn=sn.fieldNames;if(_t("fieldNames")&&(dn=(0,it.w$)(En.fieldNames),Dt.fieldNames=dn),_t("treeData")?jt=En.treeData:_t("children")&&((0,te.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),jt=(0,it.zn)(En.children)),jt){Dt.treeData=jt;var Sn=(0,it.I8)(jt,{fieldNames:dn});Dt.keyEntities=(0,Ie.Z)((0,He.Z)({},ft,Jt),Sn.keyEntities)}var gn=Dt.keyEntities||sn.keyEntities;if(_t("expandedKeys")||Mn&&_t("autoExpandParent"))Dt.expandedKeys=En.autoExpandParent||!Mn&&En.defaultExpandParent?(0,Bn.r7)(En.expandedKeys,gn):En.expandedKeys;else if(!Mn&&En.defaultExpandAll){var Ot=(0,Ie.Z)({},gn);delete Ot[ft];var Pn=[];Object.keys(Ot).forEach(function(nn){var vr=Ot[nn];vr.children&&vr.children.length&&Pn.push(vr.key)}),Dt.expandedKeys=Pn}else!Mn&&En.defaultExpandedKeys&&(Dt.expandedKeys=En.autoExpandParent||En.defaultExpandParent?(0,Bn.r7)(En.defaultExpandedKeys,gn):En.defaultExpandedKeys);if(Dt.expandedKeys||delete Dt.expandedKeys,jt||Dt.expandedKeys){var Zt=(0,it.oH)(jt||sn.treeData,Dt.expandedKeys||sn.expandedKeys,dn);Dt.flattenNodes=Zt}if(En.selectable&&(_t("selectedKeys")?Dt.selectedKeys=(0,Bn.BT)(En.selectedKeys,En):!Mn&&En.defaultSelectedKeys&&(Dt.selectedKeys=(0,Bn.BT)(En.defaultSelectedKeys,En))),En.checkable){var tn;if(_t("checkedKeys")?tn=(0,Bn.E6)(En.checkedKeys)||{}:!Mn&&En.defaultCheckedKeys?tn=(0,Bn.E6)(En.defaultCheckedKeys)||{}:jt&&(tn=(0,Bn.E6)(En.checkedKeys)||{checkedKeys:sn.checkedKeys,halfCheckedKeys:sn.halfCheckedKeys}),tn){var vn=tn,$n=vn.checkedKeys,mn=$n===void 0?[]:$n,gt=vn.halfCheckedKeys,Xn=gt===void 0?[]:gt;if(!En.checkStrictly){var ir=(0,Mt.S)(mn,!0,gn);mn=ir.checkedKeys,Xn=ir.halfCheckedKeys}Dt.checkedKeys=mn,Dt.halfCheckedKeys=Xn}}return _t("loadedKeys")&&(Dt.loadedKeys=En.loadedKeys),Dt}}]),Be}(ee.Component);(0,He.Z)(at,"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,He.Z)(at,"TreeNode",Je.Z);var _e=at,Re=_e},82661:function(We,Ee,ae){"use strict";ae.d(Ee,{BT:function(){return ee},E6:function(){return fe},L0:function(){return He},OM:function(){return te},_5:function(){return Ke},r7:function(){return me},wA:function(){return $e},yx:function(){return St}});var oe=ae(62730),Pe=ae(28788),Ie=ae(48736),ke=ae(59301),Ve=ae(639),Te=ae(65065),Ge=ae(34061),lt=null;function Ke(be,Ae){if(!be)return[];var De=be.slice(),Ye=De.indexOf(Ae);return Ye>=0&&De.splice(Ye,1),De}function He(be,Ae){var De=(be||[]).slice();return De.indexOf(Ae)===-1&&De.push(Ae),De}function St(be){return be.split("-")}function $e(be,Ae){var De=[],Ye=(0,Te.Z)(Ae,be);function nt(){var Je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Je.forEach(function(ot){var mt=ot.key,it=ot.children;De.push(mt),nt(it)})}return nt(Ye.children),De}function It(be){if(be.parent){var Ae=St(be.pos);return Number(Ae[Ae.length-1])===be.parent.children.length-1}return!1}function Fe(be){var Ae=St(be.pos);return Number(Ae[Ae.length-1])===0}function te(be,Ae,De,Ye,nt,Je,ot,mt,it,vt){var wt,Nt=be.clientX,Ht=be.clientY,Qt=be.target.getBoundingClientRect(),Yt=Qt.top,yn=Qt.height,bt=(vt==="rtl"?-1:1)*(((nt==null?void 0:nt.x)||0)-Nt),ft=(bt-12)/Ye,ct=it.filter(function(Re){var Xe;return(Xe=mt[Re])===null||Xe===void 0||(Xe=Xe.children)===null||Xe===void 0?void 0:Xe.length}),Jt=(0,Te.Z)(mt,De.eventKey);if(Ht<Yt+yn/2){var fn=ot.findIndex(function(Re){return Re.key===Jt.key}),kt=fn<=0?0:fn-1,bn=ot[kt].key;Jt=(0,Te.Z)(mt,bn)}var An=Jt.key,Yn=Jt,Vt=Jt.key,Bn=0,Mt=0;if(!ct.includes(An))for(var Hn=0;Hn<ft&&It(Jt);Hn+=1)Jt=Jt.parent,Mt+=1;var ur=Ae.data,at=Jt.node,_e=!0;return Fe(Jt)&&Jt.level===0&&Ht<Yt+yn/2&&Je({dragNode:ur,dropNode:at,dropPosition:-1})&&Jt.key===De.eventKey?Bn=-1:(Yn.children||[]).length&&ct.includes(Vt)?Je({dragNode:ur,dropNode:at,dropPosition:0})?Bn=0:_e=!1:Mt===0?ft>-1.5?Je({dragNode:ur,dropNode:at,dropPosition:1})?Bn=1:_e=!1:Je({dragNode:ur,dropNode:at,dropPosition:0})?Bn=0:Je({dragNode:ur,dropNode:at,dropPosition:1})?Bn=1:_e=!1:Je({dragNode:ur,dropNode:at,dropPosition:1})?Bn=1:_e=!1,{dropPosition:Bn,dropLevelOffset:Mt,dropTargetKey:Jt.key,dropTargetPos:Jt.pos,dragOverNodeKey:Vt,dropContainerKey:Bn===0?null:((wt=Jt.parent)===null||wt===void 0?void 0:wt.key)||null,dropAllowed:_e}}function ee(be,Ae){if(be){var De=Ae.multiple;return De?be.slice():be.length?[be[0]]:be}}var he=function(Ae){return Ae};function ue(be,Ae){if(!be)return[];var De=Ae||{},Ye=De.processProps,nt=Ye===void 0?he:Ye,Je=Array.isArray(be)?be:[be];return Je.map(function(ot){var mt=ot.children,it=_objectWithoutProperties(ot,lt),vt=ue(mt,Ae);return React.createElement(TreeNode,_extends({key:it.key},nt(it)),vt)})}function fe(be){if(!be)return null;var Ae;if(Array.isArray(be))Ae={checkedKeys:be,halfCheckedKeys:void 0};else if((0,Pe.Z)(be)==="object")Ae={checkedKeys:be.checked||void 0,halfCheckedKeys:be.halfChecked||void 0};else return(0,Ie.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ae}function me(be,Ae){var De=new Set;function Ye(nt){if(!De.has(nt)){var Je=(0,Te.Z)(Ae,nt);if(Je){De.add(nt);var ot=Je.parent,mt=Je.node;mt.disabled||ot&&Ye(ot.key)}}}return(be||[]).forEach(function(nt){Ye(nt)}),(0,oe.Z)(De)}},34643:function(We,Ee,ae){"use strict";ae.d(Ee,{S:function(){return Ge}});var oe=ae(48736),Pe=ae(65065);function Ie(lt,Ke){var He=new Set;return lt.forEach(function(St){Ke.has(St)||He.add(St)}),He}function ke(lt){var Ke=lt||{},He=Ke.disabled,St=Ke.disableCheckbox,$e=Ke.checkable;return!!(He||St)||$e===!1}function Ve(lt,Ke,He,St){for(var $e=new Set(lt),It=new Set,Fe=0;Fe<=He;Fe+=1){var te=Ke.get(Fe)||new Set;te.forEach(function(fe){var me=fe.key,be=fe.node,Ae=fe.children,De=Ae===void 0?[]:Ae;$e.has(me)&&!St(be)&&De.filter(function(Ye){return!St(Ye.node)}).forEach(function(Ye){$e.add(Ye.key)})})}for(var ee=new Set,he=He;he>=0;he-=1){var ue=Ke.get(he)||new Set;ue.forEach(function(fe){var me=fe.parent,be=fe.node;if(!(St(be)||!fe.parent||ee.has(fe.parent.key))){if(St(fe.parent.node)){ee.add(me.key);return}var Ae=!0,De=!1;(me.children||[]).filter(function(Ye){return!St(Ye.node)}).forEach(function(Ye){var nt=Ye.key,Je=$e.has(nt);Ae&&!Je&&(Ae=!1),!De&&(Je||It.has(nt))&&(De=!0)}),Ae&&$e.add(me.key),De&&It.add(me.key),ee.add(me.key)}})}return{checkedKeys:Array.from($e),halfCheckedKeys:Array.from(Ie(It,$e))}}function Te(lt,Ke,He,St,$e){for(var It=new Set(lt),Fe=new Set(Ke),te=0;te<=St;te+=1){var ee=He.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)&&!Fe.has(be)&&!$e(Ae)&&Ye.filter(function(nt){return!$e(nt.node)}).forEach(function(nt){It.delete(nt.key)})})}Fe=new Set;for(var he=new Set,ue=St;ue>=0;ue-=1){var fe=He.get(ue)||new Set;fe.forEach(function(me){var be=me.parent,Ae=me.node;if(!($e(Ae)||!me.parent||he.has(me.parent.key))){if($e(me.parent.node)){he.add(be.key);return}var De=!0,Ye=!1;(be.children||[]).filter(function(nt){return!$e(nt.node)}).forEach(function(nt){var Je=nt.key,ot=It.has(Je);De&&!ot&&(De=!1),!Ye&&(ot||Fe.has(Je))&&(Ye=!0)}),De||It.delete(be.key),Ye&&Fe.add(be.key),he.add(be.key)}})}return{checkedKeys:Array.from(It),halfCheckedKeys:Array.from(Ie(Fe,It))}}function Ge(lt,Ke,He,St){var $e=[],It;St?It=St:It=ke;var Fe=new Set(lt.filter(function(ue){var fe=!!(0,Pe.Z)(He,ue);return fe||$e.push(ue),fe})),te=new Map,ee=0;Object.keys(He).forEach(function(ue){var fe=He[ue],me=fe.level,be=te.get(me);be||(be=new Set,te.set(me,be)),be.add(fe),ee=Math.max(ee,me)}),(0,oe.ZP)(!$e.length,"Tree missing follow keys: ".concat($e.slice(0,100).map(function(ue){return"'".concat(ue,"'")}).join(", ")));var he;return Ke===!0?he=Ve(Fe,te,ee,It):he=Te(Fe,Ke.halfCheckedKeys,te,ee,It),he}},65065:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return oe}});function oe(Pe,Ie){return Pe[Ie]}},34061:function(We,Ee,ae){"use strict";ae.d(Ee,{F:function(){return me},H8:function(){return fe},I8:function(){return ue},km:function(){return $e},oH:function(){return ee},w$:function(){return It},zn:function(){return te}});var oe=ae(28788),Pe=ae(62730),Ie=ae(89490),ke=ae(39224),Ve=ae(11592),Te=ae(2738),Ge=ae(48736),lt=ae(65065),Ke=["children"];function He(be,Ae){return"".concat(be,"-").concat(Ae)}function St(be){return be&&be.type&&be.type.isTreeNode}function $e(be,Ae){return be!=null?be:Ae}function It(be){var Ae=be||{},De=Ae.title,Ye=Ae._title,nt=Ae.key,Je=Ae.children,ot=De||"title";return{title:ot,_title:Ye||[ot],key:nt||"key",children:Je||"children"}}function Fe(be,Ae){var De=new Map;function Ye(nt){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(nt||[]).forEach(function(ot){var mt=ot[Ae.key],it=ot[Ae.children];warning(mt!=null,"Tree node must have a certain key: [".concat(Je).concat(mt,"]"));var vt=String(mt);warning(!De.has(vt)||mt===null||mt===void 0,"Same 'key' exist in the Tree: ".concat(vt)),De.set(vt,!0),Ye(it,"".concat(Je).concat(vt," > "))})}Ye(be)}function te(be){function Ae(De){var Ye=(0,Ve.Z)(De);return Ye.map(function(nt){if(!St(nt))return(0,Ge.ZP)(!nt,"Tree/TreeNode can only accept TreeNode as children."),null;var Je=nt.key,ot=nt.props,mt=ot.children,it=(0,ke.Z)(ot,Ke),vt=(0,Ie.Z)({key:Je},it),wt=Ae(mt);return wt.length&&(vt.children=wt),vt}).filter(function(nt){return nt})}return Ae(be)}function ee(be,Ae,De){var Ye=It(De),nt=Ye._title,Je=Ye.key,ot=Ye.children,mt=new Set(Ae===!0?[]:Ae),it=[];function vt(wt){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return wt.map(function(Ht,Qt){for(var Yt=He(Nt?Nt.pos:"0",Qt),yn=$e(Ht[Je],Yt),bt,ft=0;ft<nt.length;ft+=1){var ct=nt[ft];if(Ht[ct]!==void 0){bt=Ht[ct];break}}var Jt=Object.assign((0,Te.Z)(Ht,[].concat((0,Pe.Z)(nt),[Je,ot])),{title:bt,key:yn,parent:Nt,pos:Yt,children:null,data:Ht,isStart:[].concat((0,Pe.Z)(Nt?Nt.isStart:[]),[Qt===0]),isEnd:[].concat((0,Pe.Z)(Nt?Nt.isEnd:[]),[Qt===wt.length-1])});return it.push(Jt),Ae===!0||mt.has(yn)?Jt.children=vt(Ht[ot]||[],Jt):Jt.children=[],Jt})}return vt(be),it}function he(be,Ae,De){var Ye={};(0,oe.Z)(De)==="object"?Ye=De:Ye={externalGetKey:De},Ye=Ye||{};var nt=Ye,Je=nt.childrenPropName,ot=nt.externalGetKey,mt=nt.fieldNames,it=It(mt),vt=it.key,wt=it.children,Nt=Je||wt,Ht;ot?typeof ot=="string"?Ht=function(yn){return yn[ot]}:typeof ot=="function"&&(Ht=function(yn){return ot(yn)}):Ht=function(yn,bt){return $e(yn[vt],bt)};function Qt(Yt,yn,bt,ft){var ct=Yt?Yt[Nt]:be,Jt=Yt?He(bt.pos,yn):"0",fn=Yt?[].concat((0,Pe.Z)(ft),[Yt]):[];if(Yt){var kt=Ht(Yt,Jt),bn={node:Yt,index:yn,pos:Jt,key:kt,parentPos:bt.node?bt.pos:null,level:bt.level+1,nodes:fn};Ae(bn)}ct&&ct.forEach(function(An,Yn){Qt(An,Yn,{node:Yt,pos:Jt,level:bt?bt.level+1:-1},fn)})}Qt(null)}function ue(be){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},De=Ae.initWrapper,Ye=Ae.processEntity,nt=Ae.onProcessFinished,Je=Ae.externalGetKey,ot=Ae.childrenPropName,mt=Ae.fieldNames,it=arguments.length>2?arguments[2]:void 0,vt=Je||it,wt={},Nt={},Ht={posEntities:wt,keyEntities:Nt};return De&&(Ht=De(Ht)||Ht),he(be,function(Qt){var Yt=Qt.node,yn=Qt.index,bt=Qt.pos,ft=Qt.key,ct=Qt.parentPos,Jt=Qt.level,fn=Qt.nodes,kt={node:Yt,nodes:fn,index:yn,key:ft,pos:bt,level:Jt},bn=$e(ft,bt);wt[bt]=kt,Nt[bn]=kt,kt.parent=wt[ct],kt.parent&&(kt.parent.children=kt.parent.children||[],kt.parent.children.push(kt)),Ye&&Ye(kt,Ht)},{externalGetKey:vt,childrenPropName:ot,fieldNames:mt}),nt&&nt(Ht),Ht}function fe(be,Ae){var De=Ae.expandedKeys,Ye=Ae.selectedKeys,nt=Ae.loadedKeys,Je=Ae.loadingKeys,ot=Ae.checkedKeys,mt=Ae.halfCheckedKeys,it=Ae.dragOverNodeKey,vt=Ae.dropPosition,wt=Ae.keyEntities,Nt=(0,lt.Z)(wt,be),Ht={eventKey:be,expanded:De.indexOf(be)!==-1,selected:Ye.indexOf(be)!==-1,loaded:nt.indexOf(be)!==-1,loading:Je.indexOf(be)!==-1,checked:ot.indexOf(be)!==-1,halfChecked:mt.indexOf(be)!==-1,pos:String(Nt?Nt.pos:""),dragOver:it===be&&vt===0,dragOverGapTop:it===be&&vt===-1,dragOverGapBottom:it===be&&vt===1};return Ht}function me(be){var Ae=be.data,De=be.expanded,Ye=be.selected,nt=be.checked,Je=be.loaded,ot=be.loading,mt=be.halfChecked,it=be.dragOver,vt=be.dragOverGapTop,wt=be.dragOverGapBottom,Nt=be.pos,Ht=be.active,Qt=be.eventKey,Yt=(0,Ie.Z)((0,Ie.Z)({},Ae),{},{expanded:De,selected:Ye,checked:nt,loaded:Je,loading:ot,halfChecked:mt,dragOver:it,dragOverGapTop:vt,dragOverGapBottom:wt,pos:Nt,active:Ht,key:Qt});return"props"in Yt||Object.defineProperty(Yt,"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}}),Yt}},90472:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Qt}});var oe=ae(71409),Pe=ae(16552),Ie=ae(19210),ke=ae(90264),Ve=ae(46654),Te=ae(37205),Ge=ae(87075),lt=ae(59301),Ke=ae(89490),He=ae(39224),St=ae(28788),$e=ae(58676),It=ae(93195),Fe=ae(62730),te=ae(92310),ee=ae.n(te),he=ae(26112),ue=ae(48736),fe=function(Yt,yn){if(Yt&&yn){var bt=Array.isArray(yn)?yn:yn.split(","),ft=Yt.name||"",ct=Yt.type||"",Jt=ct.replace(/\/.*$/,"");return bt.some(function(fn){var kt=fn.trim();if(/^\*(\/\*)?$/.test(fn))return!0;if(kt.charAt(0)==="."){var bn=ft.toLowerCase(),An=kt.toLowerCase(),Yn=[An];return(An===".jpg"||An===".jpeg")&&(Yn=[".jpg",".jpeg"]),Yn.some(function(Vt){return bn.endsWith(Vt)})}return/\/\*$/.test(kt)?Jt===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(Yt,yn){var bt="cannot ".concat(Yt.method," ").concat(Yt.action," ").concat(yn.status,"'"),ft=new Error(bt);return ft.status=yn.status,ft.method=Yt.method,ft.url=Yt.action,ft}function be(Yt){var yn=Yt.responseText||Yt.response;if(!yn)return yn;try{return JSON.parse(yn)}catch(bt){return yn}}function Ae(Yt){var yn=new XMLHttpRequest;Yt.onProgress&&yn.upload&&(yn.upload.onprogress=function(Jt){Jt.total>0&&(Jt.percent=Jt.loaded/Jt.total*100),Yt.onProgress(Jt)});var bt=new FormData;Yt.data&&Object.keys(Yt.data).forEach(function(ct){var Jt=Yt.data[ct];if(Array.isArray(Jt)){Jt.forEach(function(fn){bt.append("".concat(ct,"[]"),fn)});return}bt.append(ct,Jt)}),Yt.file instanceof Blob?bt.append(Yt.filename,Yt.file,Yt.file.name):bt.append(Yt.filename,Yt.file),yn.onerror=function(Jt){Yt.onError(Jt)},yn.onload=function(){return yn.status<200||yn.status>=300?Yt.onError(me(Yt,yn),be(yn)):Yt.onSuccess(be(yn),yn)},yn.open(Yt.method,Yt.action,!0),Yt.withCredentials&&"withCredentials"in yn&&(yn.withCredentials=!0);var ft=Yt.headers||{};return ft["X-Requested-With"]!==null&&yn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(ft).forEach(function(ct){ft[ct]!==null&&yn.setRequestHeader(ct,ft[ct])}),yn.send(bt),{abort:function(){yn.abort()}}}var De=function(){var Yt=(0,It.Z)((0,$e.Z)().mark(function yn(bt,ft){var ct,Jt,fn,kt,bn,An,Yn,Vt;return(0,$e.Z)().wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:An=function(){return An=(0,It.Z)((0,$e.Z)().mark(function ur(at){return(0,$e.Z)().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.abrupt("return",new Promise(function(Xe){at.file(function(st){ft(st)?(at.fullPath&&!st.webkitRelativePath&&(Object.defineProperties(st,{webkitRelativePath:{writable:!0}}),st.webkitRelativePath=at.fullPath.replace(/^\//,""),Object.defineProperties(st,{webkitRelativePath:{writable:!1}})),Xe(st)):Xe(null)})}));case 1:case"end":return Re.stop()}},ur)})),An.apply(this,arguments)},bn=function(ur){return An.apply(this,arguments)},kt=function(){return kt=(0,It.Z)((0,$e.Z)().mark(function ur(at){var _e,Re,Xe,st,Be;return(0,$e.Z)().wrap(function(En){for(;;)switch(En.prev=En.next){case 0:_e=at.createReader(),Re=[];case 2:return En.next=5,new Promise(function(sn){_e.readEntries(sn,function(){return sn([])})});case 5:if(Xe=En.sent,st=Xe.length,st){En.next=9;break}return En.abrupt("break",12);case 9:for(Be=0;Be<st;Be++)Re.push(Xe[Be]);En.next=2;break;case 12:return En.abrupt("return",Re);case 13:case"end":return En.stop()}},ur)})),kt.apply(this,arguments)},fn=function(ur){return kt.apply(this,arguments)},ct=[],Jt=[],bt.forEach(function(Hn){return Jt.push(Hn.webkitGetAsEntry())}),Yn=function(){var Hn=(0,It.Z)((0,$e.Z)().mark(function ur(at,_e){var Re,Xe;return(0,$e.Z)().wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:if(at){Be.next=2;break}return Be.abrupt("return");case 2:if(at.path=_e||"",!at.isFile){Be.next=10;break}return Be.next=6,bn(at);case 6:Re=Be.sent,Re&&ct.push(Re),Be.next=15;break;case 10:if(!at.isDirectory){Be.next=15;break}return Be.next=13,fn(at);case 13:Xe=Be.sent,Jt.push.apply(Jt,(0,Fe.Z)(Xe));case 15:case"end":return Be.stop()}},ur)}));return function(at,_e){return Hn.apply(this,arguments)}}(),Vt=0;case 9:if(!(Vt<Jt.length)){Mt.next=15;break}return Mt.next=12,Yn(Jt[Vt]);case 12:Vt++,Mt.next=9;break;case 15:return Mt.abrupt("return",ct);case 16:case"end":return Mt.stop()}},yn)}));return function(bt,ft){return Yt.apply(this,arguments)}}(),Ye=De,nt=+new Date,Je=0;function ot(){return"rc-upload-".concat(nt,"-").concat(++Je)}var mt=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],it=function(Yt){(0,Ve.Z)(bt,Yt);var yn=(0,Te.Z)(bt);function bt(){var ft;(0,Pe.Z)(this,bt);for(var ct=arguments.length,Jt=new Array(ct),fn=0;fn<ct;fn++)Jt[fn]=arguments[fn];return ft=yn.call.apply(yn,[this].concat(Jt)),(0,Ge.Z)((0,ke.Z)(ft),"state",{uid:ot()}),(0,Ge.Z)((0,ke.Z)(ft),"reqs",{}),(0,Ge.Z)((0,ke.Z)(ft),"fileInput",void 0),(0,Ge.Z)((0,ke.Z)(ft),"_isMounted",void 0),(0,Ge.Z)((0,ke.Z)(ft),"onChange",function(kt){var bn=ft.props,An=bn.accept,Yn=bn.directory,Vt=kt.target.files,Bn=(0,Fe.Z)(Vt).filter(function(Mt){return!Yn||fe(Mt,An)});ft.uploadFiles(Bn),ft.reset()}),(0,Ge.Z)((0,ke.Z)(ft),"onClick",function(kt){var bn=ft.fileInput;if(bn){var An=kt.target,Yn=ft.props.onClick;if(An&&An.tagName==="BUTTON"){var Vt=bn.parentNode;Vt.focus(),An.blur()}bn.click(),Yn&&Yn(kt)}}),(0,Ge.Z)((0,ke.Z)(ft),"onKeyDown",function(kt){kt.key==="Enter"&&ft.onClick(kt)}),(0,Ge.Z)((0,ke.Z)(ft),"onFileDrop",function(){var kt=(0,It.Z)((0,$e.Z)().mark(function bn(An){var Yn,Vt,Bn;return(0,$e.Z)().wrap(function(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:if(Yn=ft.props.multiple,An.preventDefault(),An.type!=="dragover"){Hn.next=4;break}return Hn.abrupt("return");case 4:if(!ft.props.directory){Hn.next=11;break}return Hn.next=7,Ye(Array.prototype.slice.call(An.dataTransfer.items),function(ur){return fe(ur,ft.props.accept)});case 7:Vt=Hn.sent,ft.uploadFiles(Vt),Hn.next=14;break;case 11:Bn=(0,Fe.Z)(An.dataTransfer.files).filter(function(ur){return fe(ur,ft.props.accept)}),Yn===!1&&(Bn=Bn.slice(0,1)),ft.uploadFiles(Bn);case 14:case"end":return Hn.stop()}},bn)}));return function(bn){return kt.apply(this,arguments)}}()),(0,Ge.Z)((0,ke.Z)(ft),"uploadFiles",function(kt){var bn=(0,Fe.Z)(kt),An=bn.map(function(Yn){return Yn.uid=ot(),ft.processFile(Yn,bn)});Promise.all(An).then(function(Yn){var Vt=ft.props.onBatchStart;Vt==null||Vt(Yn.map(function(Bn){var Mt=Bn.origin,Hn=Bn.parsedFile;return{file:Mt,parsedFile:Hn}})),Yn.filter(function(Bn){return Bn.parsedFile!==null}).forEach(function(Bn){ft.post(Bn)})})}),(0,Ge.Z)((0,ke.Z)(ft),"processFile",function(){var kt=(0,It.Z)((0,$e.Z)().mark(function bn(An,Yn){var Vt,Bn,Mt,Hn,ur,at,_e,Re,Xe;return(0,$e.Z)().wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:if(Vt=ft.props.beforeUpload,Bn=An,!Vt){Be.next=14;break}return Be.prev=3,Be.next=6,Vt(An,Yn);case 6:Bn=Be.sent,Be.next=12;break;case 9:Be.prev=9,Be.t0=Be.catch(3),Bn=!1;case 12:if(Bn!==!1){Be.next=14;break}return Be.abrupt("return",{origin:An,parsedFile:null,action:null,data:null});case 14:if(Mt=ft.props.action,typeof Mt!="function"){Be.next=21;break}return Be.next=18,Mt(An);case 18:Hn=Be.sent,Be.next=22;break;case 21:Hn=Mt;case 22:if(ur=ft.props.data,typeof ur!="function"){Be.next=29;break}return Be.next=26,ur(An);case 26:at=Be.sent,Be.next=30;break;case 29:at=ur;case 30:return _e=((0,St.Z)(Bn)==="object"||typeof Bn=="string")&&Bn?Bn:An,_e instanceof File?Re=_e:Re=new File([_e],An.name,{type:An.type}),Xe=Re,Xe.uid=An.uid,Be.abrupt("return",{origin:An,data:at,parsedFile:Xe,action:Hn});case 35:case"end":return Be.stop()}},bn,null,[[3,9]])}));return function(bn,An){return kt.apply(this,arguments)}}()),(0,Ge.Z)((0,ke.Z)(ft),"saveFileInput",function(kt){ft.fileInput=kt}),ft}return(0,Ie.Z)(bt,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(ct){var Jt=this,fn=ct.data,kt=ct.origin,bn=ct.action,An=ct.parsedFile;if(this._isMounted){var Yn=this.props,Vt=Yn.onStart,Bn=Yn.customRequest,Mt=Yn.name,Hn=Yn.headers,ur=Yn.withCredentials,at=Yn.method,_e=kt.uid,Re=Bn||Ae,Xe={action:bn,filename:Mt,data:fn,file:An,headers:Hn,withCredentials:ur,method:at||"post",onProgress:function(Be){var Et=Jt.props.onProgress;Et==null||Et(Be,An)},onSuccess:function(Be,Et){var En=Jt.props.onSuccess;En==null||En(Be,An,Et),delete Jt.reqs[_e]},onError:function(Be,Et){var En=Jt.props.onError;En==null||En(Be,Et,An),delete Jt.reqs[_e]}};Vt(kt),this.reqs[_e]=Re(Xe)}}},{key:"reset",value:function(){this.setState({uid:ot()})}},{key:"abort",value:function(ct){var Jt=this.reqs;if(ct){var fn=ct.uid?ct.uid:ct;Jt[fn]&&Jt[fn].abort&&Jt[fn].abort(),delete Jt[fn]}else Object.keys(Jt).forEach(function(kt){Jt[kt]&&Jt[kt].abort&&Jt[kt].abort(),delete Jt[kt]})}},{key:"render",value:function(){var ct=this.props,Jt=ct.component,fn=ct.prefixCls,kt=ct.className,bn=ct.classNames,An=bn===void 0?{}:bn,Yn=ct.disabled,Vt=ct.id,Bn=ct.name,Mt=ct.style,Hn=ct.styles,ur=Hn===void 0?{}:Hn,at=ct.multiple,_e=ct.accept,Re=ct.capture,Xe=ct.children,st=ct.directory,Be=ct.openFileDialogOnClick,Et=ct.onMouseEnter,En=ct.onMouseLeave,sn=ct.hasControlInside,Mn=(0,He.Z)(ct,mt),Dt=ee()((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({},fn,!0),"".concat(fn,"-disabled"),Yn),kt,kt)),_t=st?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},jt=Yn?{}:{onClick:Be?this.onClick:function(){},onKeyDown:Be?this.onKeyDown:function(){},onMouseEnter:Et,onMouseLeave:En,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:sn?void 0:"0"};return lt.createElement(Jt,(0,oe.Z)({},jt,{className:Dt,role:sn?void 0:"button",style:Mt}),lt.createElement("input",(0,oe.Z)({},(0,he.Z)(Mn,{aria:!0,data:!0}),{id:Vt,name:Bn,disabled:Yn,type:"file",ref:this.saveFileInput,onClick:function(Sn){return Sn.stopPropagation()},key:this.state.uid,style:(0,Ke.Z)({display:"none"},ur.input),className:An.input,accept:_e},_t,{multiple:at,onChange:this.onChange},Re!=null?{capture:Re}:{})),Xe)}}]),bt}(lt.Component),vt=it;function wt(){}var Nt=function(Yt){(0,Ve.Z)(bt,Yt);var yn=(0,Te.Z)(bt);function bt(){var ft;(0,Pe.Z)(this,bt);for(var ct=arguments.length,Jt=new Array(ct),fn=0;fn<ct;fn++)Jt[fn]=arguments[fn];return ft=yn.call.apply(yn,[this].concat(Jt)),(0,Ge.Z)((0,ke.Z)(ft),"uploader",void 0),(0,Ge.Z)((0,ke.Z)(ft),"saveUploader",function(kt){ft.uploader=kt}),ft}return(0,Ie.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)(Nt,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:wt,onError:wt,onSuccess:wt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var Ht=Nt,Qt=Ht},8224:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Pe}});var oe=ae(4676);function Pe(Ie,ke,Ve,Te){var Ge=oe.unstable_batchedUpdates?function(Ke){oe.unstable_batchedUpdates(Ve,Ke)}:Ve;return Ie!=null&&Ie.addEventListener&&Ie.addEventListener(ke,Ge,Te),{remove:function(){Ie!=null&&Ie.removeEventListener&&Ie.removeEventListener(ke,Ge,Te)}}}},24514:function(We,Ee,ae){"use strict";ae.d(Ee,{G:function(){return ke}});var oe=ae(47273),Pe=function(Te){if((0,oe.Z)()&&window.document.documentElement){var Ge=Array.isArray(Te)?Te:[Te],lt=window.document.documentElement;return Ge.some(function(Ke){return Ke in lt.style})}return!1},Ie=function(Te,Ge){if(!Pe(Te))return!1;var lt=document.createElement("div"),Ke=lt.style[Te];return lt.style[Te]=Ge,lt.style[Te]!==Ke};function ke(Ve,Te){return!Array.isArray(Ve)&&Te!==void 0?Ie(Ve,Te):Pe(Ve)}},65283:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return ur}});var oe=ae(71409),Pe=ae(28788),Ie=ae(89490),ke=ae(87075),Ve=ae(11036),Te=ae(39224),Ge=ae(92310),lt=ae.n(Ge),Ke=ae(29301),He=ae(70425),St=ae(34280),$e=ae(59301),It=ae(4676),Fe=$e.forwardRef(function(at,_e){var Re=at.height,Xe=at.offsetY,st=at.offsetX,Be=at.children,Et=at.prefixCls,En=at.onInnerResize,sn=at.innerProps,Mn=at.rtl,Dt=at.extra,_t={},jt={display:"flex",flexDirection:"column"};return Xe!==void 0&&(_t={height:Re,position:"relative",overflow:"hidden"},jt=(0,Ie.Z)((0,Ie.Z)({},jt),{},(0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)({transform:"translateY(".concat(Xe,"px)")},Mn?"marginRight":"marginLeft",-st),"position","absolute"),"left",0),"right",0),"top",0))),$e.createElement("div",{style:_t},$e.createElement(Ke.Z,{onResize:function(Sn){var gn=Sn.offsetHeight;gn&&En&&En()}},$e.createElement("div",(0,oe.Z)({style:jt,className:lt()((0,ke.Z)({},"".concat(Et,"-holder-inner"),Et)),ref:_e},sn),Be,Dt)))});Fe.displayName="Filler";var te=Fe;function ee(at){var _e=at.children,Re=at.setRef,Xe=$e.useCallback(function(st){Re(st)},[]);return $e.cloneElement(_e,{ref:Xe})}function he(at,_e,Re,Xe,st,Be,Et,En){var sn=En.getKey;return at.slice(_e,Re+1).map(function(Mn,Dt){var _t=_e+Dt,jt=Et(Mn,_t,{style:{width:Xe},offsetX:st}),dn=sn(Mn);return $e.createElement(ee,{key:dn,setRef:function(gn){return Be(Mn,gn)}},jt)})}function ue(at,_e,Re,Xe){var st=Re-at,Be=_e-Re,Et=Math.min(st,Be)*2;if(Xe<=Et){var En=Math.floor(Xe/2);return Xe%2?Re+En+1:Re-En}return st>Be?Re-(Xe-Be):Re+(Xe-st)}function fe(at,_e,Re){var Xe=at.length,st=_e.length,Be,Et;if(Xe===0&&st===0)return null;Xe<st?(Be=at,Et=_e):(Be=_e,Et=at);var En={__EMPTY_ITEM__:!0};function sn(Sn){return Sn!==void 0?Re(Sn):En}for(var Mn=null,Dt=Math.abs(Xe-st)!==1,_t=0;_t<Et.length;_t+=1){var jt=sn(Be[_t]),dn=sn(Et[_t]);if(jt!==dn){Mn=_t,Dt=Dt||jt!==sn(Et[_t+1]);break}}return Mn===null?null:{index:Mn,multiple:Dt}}function me(at,_e,Re){var Xe=$e.useState(at),st=(0,Ve.Z)(Xe,2),Be=st[0],Et=st[1],En=$e.useState(null),sn=(0,Ve.Z)(En,2),Mn=sn[0],Dt=sn[1];return $e.useEffect(function(){var _t=fe(Be||[],at||[],_e);(_t==null?void 0:_t.index)!==void 0&&(Re==null||Re(_t.index),Dt(at[_t.index])),Et(at)},[at]),[Mn]}var be=ae(16089),Ae=(typeof navigator=="undefined"?"undefined":(0,Pe.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),De=Ae,Ye=function(at,_e,Re,Xe){var st=(0,$e.useRef)(!1),Be=(0,$e.useRef)(null);function Et(){clearTimeout(Be.current),st.current=!0,Be.current=setTimeout(function(){st.current=!1},50)}var En=(0,$e.useRef)({top:at,bottom:_e,left:Re,right:Xe});return En.current.top=at,En.current.bottom=_e,En.current.left=Re,En.current.right=Xe,function(sn,Mn){var Dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,_t=sn?Mn<0&&En.current.left||Mn>0&&En.current.right:Mn<0&&En.current.top||Mn>0&&En.current.bottom;return Dt&&_t?(clearTimeout(Be.current),st.current=!1):(!_t||st.current)&&Et(),!st.current&&_t}};function nt(at,_e,Re,Xe,st,Be,Et){var En=(0,$e.useRef)(0),sn=(0,$e.useRef)(null),Mn=(0,$e.useRef)(null),Dt=(0,$e.useRef)(!1),_t=Ye(_e,Re,Xe,st);function jt(Zt,tn){if(be.Z.cancel(sn.current),!_t(!1,tn)){var vn=Zt;if(!vn._virtualHandled)vn._virtualHandled=!0;else return;En.current+=tn,Mn.current=tn,De||vn.preventDefault(),sn.current=(0,be.Z)(function(){var $n=Dt.current?10:1;Et(En.current*$n,!1),En.current=0})}}function dn(Zt,tn){Et(tn,!0),De||Zt.preventDefault()}var Sn=(0,$e.useRef)(null),gn=(0,$e.useRef)(null);function Ot(Zt){if(at){be.Z.cancel(gn.current),gn.current=(0,be.Z)(function(){Sn.current=null},2);var tn=Zt.deltaX,vn=Zt.deltaY,$n=Zt.shiftKey,mn=tn,gt=vn;(Sn.current==="sx"||!Sn.current&&$n&&vn&&!tn)&&(mn=vn,gt=0,Sn.current="sx");var Xn=Math.abs(mn),ir=Math.abs(gt);Sn.current===null&&(Sn.current=Be&&Xn>ir?"x":"y"),Sn.current==="y"?jt(Zt,gt):dn(Zt,mn)}}function Pn(Zt){at&&(Dt.current=Zt.detail===Mn.current)}return[Ot,Pn]}function Je(at,_e,Re,Xe){var st=$e.useMemo(function(){return[new Map,[]]},[at,Re.id,Xe]),Be=(0,Ve.Z)(st,2),Et=Be[0],En=Be[1],sn=function(Dt){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Dt,jt=Et.get(Dt),dn=Et.get(_t);if(jt===void 0||dn===void 0)for(var Sn=at.length,gn=En.length;gn<Sn;gn+=1){var Ot,Pn=at[gn],Zt=_e(Pn);Et.set(Zt,gn);var tn=(Ot=Re.get(Zt))!==null&&Ot!==void 0?Ot:Xe;if(En[gn]=(En[gn-1]||0)+tn,Zt===Dt&&(jt=gn),Zt===_t&&(dn=gn),jt!==void 0&&dn!==void 0)break}return{top:En[jt-1]||0,bottom:En[dn]}};return sn}var ot=ae(16552),mt=ae(19210),it=function(){function at(){(0,ot.Z)(this,at),(0,ke.Z)(this,"maps",void 0),(0,ke.Z)(this,"id",0),(0,ke.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,mt.Z)(at,[{key:"set",value:function(Re,Xe){this.diffRecords.set(Re,this.maps[Re]),this.maps[Re]=Xe,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}}]),at}(),vt=it;function wt(at){var _e=parseFloat(at);return isNaN(_e)?0:_e}function Nt(at,_e,Re){var Xe=$e.useState(0),st=(0,Ve.Z)(Xe,2),Be=st[0],Et=st[1],En=(0,$e.useRef)(new Map),sn=(0,$e.useRef)(new vt),Mn=(0,$e.useRef)(0);function Dt(){Mn.current+=1}function _t(){var dn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Dt();var Sn=function(){var Pn=!1;En.current.forEach(function(Zt,tn){if(Zt&&Zt.offsetParent){var vn=Zt.offsetHeight,$n=getComputedStyle(Zt),mn=$n.marginTop,gt=$n.marginBottom,Xn=wt(mn),ir=wt(gt),nn=vn+Xn+ir;sn.current.get(tn)!==nn&&(sn.current.set(tn,nn),Pn=!0)}}),Pn&&Et(function(Zt){return Zt+1})};if(dn)Sn();else{Mn.current+=1;var gn=Mn.current;Promise.resolve().then(function(){gn===Mn.current&&Sn()})}}function jt(dn,Sn){var gn=at(dn),Ot=En.current.get(gn);Sn?(En.current.set(gn,Sn),_t()):En.current.delete(gn),!Ot!=!Sn&&(Sn?_e==null||_e(dn):Re==null||Re(dn))}return(0,$e.useEffect)(function(){return Dt},[]),[jt,_t,sn.current,Be]}var Ht=14/15;function Qt(at,_e,Re){var Xe=(0,$e.useRef)(!1),st=(0,$e.useRef)(0),Be=(0,$e.useRef)(0),Et=(0,$e.useRef)(null),En=(0,$e.useRef)(null),sn,Mn=function(dn){if(Xe.current){var Sn=Math.ceil(dn.touches[0].pageX),gn=Math.ceil(dn.touches[0].pageY),Ot=st.current-Sn,Pn=Be.current-gn,Zt=Math.abs(Ot)>Math.abs(Pn);Zt?st.current=Sn:Be.current=gn;var tn=Re(Zt,Zt?Ot:Pn,!1,dn);tn&&dn.preventDefault(),clearInterval(En.current),tn&&(En.current=setInterval(function(){Zt?Ot*=Ht:Pn*=Ht;var vn=Math.floor(Zt?Ot:Pn);(!Re(Zt,vn,!0)||Math.abs(vn)<=.1)&&clearInterval(En.current)},16))}},Dt=function(){Xe.current=!1,sn()},_t=function(dn){sn(),dn.touches.length===1&&!Xe.current&&(Xe.current=!0,st.current=Math.ceil(dn.touches[0].pageX),Be.current=Math.ceil(dn.touches[0].pageY),Et.current=dn.target,Et.current.addEventListener("touchmove",Mn,{passive:!1}),Et.current.addEventListener("touchend",Dt,{passive:!0}))};sn=function(){Et.current&&(Et.current.removeEventListener("touchmove",Mn),Et.current.removeEventListener("touchend",Dt))},(0,St.Z)(function(){return at&&_e.current.addEventListener("touchstart",_t,{passive:!0}),function(){var jt;(jt=_e.current)===null||jt===void 0||jt.removeEventListener("touchstart",_t),sn(),clearInterval(En.current)}},[at])}function Yt(at){return Math.floor(Math.pow(at,.5))}function yn(at,_e){var Re="touches"in at?at.touches[0]:at;return Re[_e?"pageX":"pageY"]-window[_e?"scrollX":"scrollY"]}function bt(at,_e,Re){$e.useEffect(function(){var Xe=_e.current;if(at&&Xe){var st=!1,Be,Et,En=function(){be.Z.cancel(Be)},sn=function jt(){En(),Be=(0,be.Z)(function(){Re(Et),jt()})},Mn=function(dn){if(!(dn.target.draggable||dn.button!==0)){var Sn=dn;Sn._virtualHandled||(Sn._virtualHandled=!0,st=!0)}},Dt=function(){st=!1,En()},_t=function(dn){if(st){var Sn=yn(dn,!1),gn=Xe.getBoundingClientRect(),Ot=gn.top,Pn=gn.bottom;if(Sn<=Ot){var Zt=Ot-Sn;Et=-Yt(Zt),sn()}else if(Sn>=Pn){var tn=Sn-Pn;Et=Yt(tn),sn()}else En()}};return Xe.addEventListener("mousedown",Mn),Xe.ownerDocument.addEventListener("mouseup",Dt),Xe.ownerDocument.addEventListener("mousemove",_t),function(){Xe.removeEventListener("mousedown",Mn),Xe.ownerDocument.removeEventListener("mouseup",Dt),Xe.ownerDocument.removeEventListener("mousemove",_t),En()}}},[at])}var ft=10;function ct(at,_e,Re,Xe,st,Be,Et,En){var sn=$e.useRef(),Mn=$e.useState(null),Dt=(0,Ve.Z)(Mn,2),_t=Dt[0],jt=Dt[1];return(0,St.Z)(function(){if(_t&&_t.times<ft){if(!at.current){jt(function(oi){return(0,Ie.Z)({},oi)});return}Be();var dn=_t.targetAlign,Sn=_t.originAlign,gn=_t.index,Ot=_t.offset,Pn=at.current.clientHeight,Zt=!1,tn=dn,vn=null;if(Pn){for(var $n=dn||Sn,mn=0,gt=0,Xn=0,ir=Math.min(_e.length-1,gn),nn=0;nn<=ir;nn+=1){var vr=st(_e[nn]);gt=mn;var $r=Re.get(vr);Xn=gt+($r===void 0?Xe:$r),mn=Xn}for(var Lr=$n==="top"?Ot:Pn-Ot,Rn=ir;Rn>=0;Rn-=1){var ei=st(_e[Rn]),Jr=Re.get(ei);if(Jr===void 0){Zt=!0;break}if(Lr-=Jr,Lr<=0)break}switch($n){case"top":vn=gt-Ot;break;case"bottom":vn=Xn-Pn+Ot;break;default:{var nr=at.current.scrollTop,Wr=nr+Pn;gt<nr?tn="top":Xn>Wr&&(tn="bottom")}}vn!==null&&Et(vn),vn!==_t.lastTop&&(Zt=!0)}Zt&&jt((0,Ie.Z)((0,Ie.Z)({},_t),{},{times:_t.times+1,targetAlign:tn,lastTop:vn}))}},[_t,at.current]),function(dn){if(dn==null){En();return}if(be.Z.cancel(sn.current),typeof dn=="number")Et(dn);else if(dn&&(0,Pe.Z)(dn)==="object"){var Sn,gn=dn.align;"index"in dn?Sn=dn.index:Sn=_e.findIndex(function(Zt){return st(Zt)===dn.key});var Ot=dn.offset,Pn=Ot===void 0?0:Ot;jt({times:0,index:Sn,offset:Pn,originAlign:gn})}}}var Jt=$e.forwardRef(function(at,_e){var Re=at.prefixCls,Xe=at.rtl,st=at.scrollOffset,Be=at.scrollRange,Et=at.onStartMove,En=at.onStopMove,sn=at.onScroll,Mn=at.horizontal,Dt=at.spinSize,_t=at.containerSize,jt=at.style,dn=at.thumbStyle,Sn=at.showScrollBar,gn=$e.useState(!1),Ot=(0,Ve.Z)(gn,2),Pn=Ot[0],Zt=Ot[1],tn=$e.useState(null),vn=(0,Ve.Z)(tn,2),$n=vn[0],mn=vn[1],gt=$e.useState(null),Xn=(0,Ve.Z)(gt,2),ir=Xn[0],nn=Xn[1],vr=!Xe,$r=$e.useRef(),Lr=$e.useRef(),Rn=$e.useState(Sn),ei=(0,Ve.Z)(Rn,2),Jr=ei[0],nr=ei[1],Wr=$e.useRef(),oi=function(){Sn===!0||Sn===!1||(clearTimeout(Wr.current),nr(!0),Wr.current=setTimeout(function(){nr(!1)},3e3))},Oe=Be-_t||0,cr=_t-Dt||0,Cr=$e.useMemo(function(){if(st===0||Oe===0)return 0;var pn=st/Oe;return pn*cr},[st,Oe,cr]),or=function(Kr){Kr.stopPropagation(),Kr.preventDefault()},kr=$e.useRef({top:Cr,dragging:Pn,pageY:$n,startTop:ir});kr.current={top:Cr,dragging:Pn,pageY:$n,startTop:ir};var Fr=function(Kr){Zt(!0),mn(yn(Kr,Mn)),nn(kr.current.top),Et(),Kr.stopPropagation(),Kr.preventDefault()};$e.useEffect(function(){var pn=function(dr){dr.preventDefault()},Kr=$r.current,Yr=Lr.current;return Kr.addEventListener("touchstart",pn,{passive:!1}),Yr.addEventListener("touchstart",Fr,{passive:!1}),function(){Kr.removeEventListener("touchstart",pn),Yr.removeEventListener("touchstart",Fr)}},[]);var Or=$e.useRef();Or.current=Oe;var mi=$e.useRef();mi.current=cr,$e.useEffect(function(){if(Pn){var pn,Kr=function(dr){var Gr=kr.current,bi=Gr.dragging,Ai=Gr.pageY,Oi=Gr.startTop;be.Z.cancel(pn);var xt=$r.current.getBoundingClientRect(),on=_t/(Mn?xt.width:xt.height);if(bi){var br=(yn(dr,Mn)-Ai)*on,Br=Oi;!vr&&Mn?Br-=br:Br+=br;var Xt=Or.current,fr=mi.current,Tn=fr?Br/fr:0,un=Math.ceil(Tn*Xt);un=Math.max(un,0),un=Math.min(un,Xt),pn=(0,be.Z)(function(){sn(un,Mn)})}},Yr=function(){Zt(!1),En()};return window.addEventListener("mousemove",Kr,{passive:!0}),window.addEventListener("touchmove",Kr,{passive:!0}),window.addEventListener("mouseup",Yr,{passive:!0}),window.addEventListener("touchend",Yr,{passive:!0}),function(){window.removeEventListener("mousemove",Kr),window.removeEventListener("touchmove",Kr),window.removeEventListener("mouseup",Yr),window.removeEventListener("touchend",Yr),be.Z.cancel(pn)}}},[Pn]),$e.useEffect(function(){return oi(),function(){clearTimeout(Wr.current)}},[st]),$e.useImperativeHandle(_e,function(){return{delayHidden:oi}});var Ti="".concat(Re,"-scrollbar"),hn={position:"absolute",visibility:Jr?null:"hidden"},Cn={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Mn?(hn.height=8,hn.left=0,hn.right=0,hn.bottom=0,Cn.height="100%",Cn.width=Dt,vr?Cn.left=Cr:Cn.right=Cr):(hn.width=8,hn.top=0,hn.bottom=0,vr?hn.right=0:hn.left=0,Cn.width="100%",Cn.height=Dt,Cn.top=Cr),$e.createElement("div",{ref:$r,className:lt()(Ti,(0,ke.Z)((0,ke.Z)((0,ke.Z)({},"".concat(Ti,"-horizontal"),Mn),"".concat(Ti,"-vertical"),!Mn),"".concat(Ti,"-visible"),Jr)),style:(0,Ie.Z)((0,Ie.Z)({},hn),jt),onMouseDown:or,onMouseMove:oi},$e.createElement("div",{ref:Lr,className:lt()("".concat(Ti,"-thumb"),(0,ke.Z)({},"".concat(Ti,"-thumb-moving"),Pn)),style:(0,Ie.Z)((0,Ie.Z)({},Cn),dn),onMouseDown:Fr}))}),fn=Jt,kt=20;function bn(){var at=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,_e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Re=at/_e*at;return isNaN(Re)&&(Re=0),Re=Math.max(Re,kt),Math.floor(Re)}var An=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Yn=[],Vt={overflowY:"auto",overflowAnchor:"none"};function Bn(at,_e){var Re=at.prefixCls,Xe=Re===void 0?"rc-virtual-list":Re,st=at.className,Be=at.height,Et=at.itemHeight,En=at.fullHeight,sn=En===void 0?!0:En,Mn=at.style,Dt=at.data,_t=at.children,jt=at.itemKey,dn=at.virtual,Sn=at.direction,gn=at.scrollWidth,Ot=at.component,Pn=Ot===void 0?"div":Ot,Zt=at.onScroll,tn=at.onVirtualScroll,vn=at.onVisibleChange,$n=at.innerProps,mn=at.extraRender,gt=at.styles,Xn=at.showScrollBar,ir=Xn===void 0?"optional":Xn,nn=(0,Te.Z)(at,An),vr=$e.useCallback(function(yr){return typeof jt=="function"?jt(yr):yr==null?void 0:yr[jt]},[jt]),$r=Nt(vr,null,null),Lr=(0,Ve.Z)($r,4),Rn=Lr[0],ei=Lr[1],Jr=Lr[2],nr=Lr[3],Wr=!!(dn!==!1&&Be&&Et),oi=$e.useMemo(function(){return Object.values(Jr.maps).reduce(function(yr,ht){return yr+ht},0)},[Jr.id,Jr.maps]),Oe=Wr&&Dt&&(Math.max(Et*Dt.length,oi)>Be||!!gn),cr=Sn==="rtl",Cr=lt()(Xe,(0,ke.Z)({},"".concat(Xe,"-rtl"),cr),st),or=Dt||Yn,kr=(0,$e.useRef)(),Fr=(0,$e.useRef)(),Or=(0,$e.useRef)(),mi=(0,$e.useState)(0),Ti=(0,Ve.Z)(mi,2),hn=Ti[0],Cn=Ti[1],pn=(0,$e.useState)(0),Kr=(0,Ve.Z)(pn,2),Yr=Kr[0],Vr=Kr[1],dr=(0,$e.useState)(!1),Gr=(0,Ve.Z)(dr,2),bi=Gr[0],Ai=Gr[1],Oi=function(){Ai(!0)},xt=function(){Ai(!1)},on={getKey:vr};function br(yr){Cn(function(ht){var xn;typeof yr=="function"?xn=yr(ht):xn=yr;var wn=ki(xn);return kr.current.scrollTop=wn,wn})}var Br=(0,$e.useRef)({start:0,end:or.length}),Xt=(0,$e.useRef)(),fr=me(or,vr),Tn=(0,Ve.Z)(fr,1),un=Tn[0];Xt.current=un;var Ue=$e.useMemo(function(){if(!Wr)return{scrollHeight:void 0,start:0,end:or.length-1,offset:void 0};if(!Oe){var yr;return{scrollHeight:((yr=Fr.current)===null||yr===void 0?void 0:yr.offsetHeight)||0,start:0,end:or.length-1,offset:void 0}}for(var ht=0,xn,wn,jn,On=or.length,sr=0;sr<On;sr+=1){var Un=or[sr],ln=vr(Un),qn=Jr.get(ln),Ur=ht+(qn===void 0?Et:qn);Ur>=hn&&xn===void 0&&(xn=sr,wn=ht),Ur>hn+Be&&jn===void 0&&(jn=sr),ht=Ur}return xn===void 0&&(xn=0,wn=0,jn=Math.ceil(Be/Et)),jn===void 0&&(jn=or.length-1),jn=Math.min(jn+1,or.length-1),{scrollHeight:ht,start:xn,end:jn,offset:wn}},[Oe,Wr,hn,or,nr,Be]),Nr=Ue.scrollHeight,jr=Ue.start,zn=Ue.end,vi=Ue.offset;Br.current.start=jr,Br.current.end=zn,$e.useLayoutEffect(function(){var yr=Jr.getRecord();if(yr.size===1){var ht=Array.from(yr.keys())[0],xn=yr.get(ht),wn=or[jr];if(wn&&xn===void 0){var jn=vr(wn);if(jn===ht){var On=Jr.get(ht),sr=On-Et;br(function(Un){return Un+sr})}}}Jr.resetRecord()},[Nr]);var Xr=$e.useState({width:0,height:Be}),ci=(0,Ve.Z)(Xr,2),Gn=ci[0],cn=ci[1],Ci=function(ht){cn({width:ht.offsetWidth,height:ht.offsetHeight})},ji=(0,$e.useRef)(),Qn=(0,$e.useRef)(),zr=$e.useMemo(function(){return bn(Gn.width,gn)},[Gn.width,gn]),si=$e.useMemo(function(){return bn(Gn.height,Nr)},[Gn.height,Nr]),di=Nr-Be,ti=(0,$e.useRef)(di);ti.current=di;function ki(yr){var ht=yr;return Number.isNaN(ti.current)||(ht=Math.min(ht,ti.current)),ht=Math.max(ht,0),ht}var Bi=hn<=0,Zi=hn>=di,Fi=Yr<=0,Vi=Yr>=gn,er=Ye(Bi,Zi,Fi,Vi),_i=function(){return{x:cr?-Yr:Yr,y:hn}},ar=(0,$e.useRef)(_i()),Ei=(0,He.zX)(function(yr){if(tn){var ht=(0,Ie.Z)((0,Ie.Z)({},_i()),yr);(ar.current.x!==ht.x||ar.current.y!==ht.y)&&(tn(ht),ar.current=ht)}});function Gi(yr,ht){var xn=yr;ht?((0,It.flushSync)(function(){Vr(xn)}),Ei()):br(xn)}function Ui(yr){var ht=yr.currentTarget.scrollTop;ht!==hn&&br(ht),Zt==null||Zt(yr),Ei()}var po=function(ht){var xn=ht,wn=gn?gn-Gn.width:0;return xn=Math.max(xn,0),xn=Math.min(xn,wn),xn},ho=(0,He.zX)(function(yr,ht){ht?((0,It.flushSync)(function(){Vr(function(xn){var wn=xn+(cr?-yr:yr);return po(wn)})}),Ei()):br(function(xn){var wn=xn+yr;return wn})}),Qi=nt(Wr,Bi,Zi,Fi,Vi,!!gn,ho),Ro=(0,Ve.Z)(Qi,2),Fn=Ro[0],pr=Ro[1];Qt(Wr,kr,function(yr,ht,xn,wn){var jn=wn;return er(yr,ht,xn)?!1:!jn||!jn._virtualHandled?(jn&&(jn._virtualHandled=!0),Fn({preventDefault:function(){},deltaX:yr?ht:0,deltaY:yr?0:ht}),!0):!1}),bt(Oe,kr,function(yr){br(function(ht){return ht+yr})}),(0,St.Z)(function(){function yr(xn){var wn=Bi&&xn.detail<0,jn=Zi&&xn.detail>0;Wr&&!wn&&!jn&&xn.preventDefault()}var ht=kr.current;return ht.addEventListener("wheel",Fn,{passive:!1}),ht.addEventListener("DOMMouseScroll",pr,{passive:!0}),ht.addEventListener("MozMousePixelScroll",yr,{passive:!1}),function(){ht.removeEventListener("wheel",Fn),ht.removeEventListener("DOMMouseScroll",pr),ht.removeEventListener("MozMousePixelScroll",yr)}},[Wr,Bi,Zi]),(0,St.Z)(function(){if(gn){var yr=po(Yr);Vr(yr),Ei({x:yr})}},[Gn.width,gn]);var Ln=function(){var ht,xn;(ht=ji.current)===null||ht===void 0||ht.delayHidden(),(xn=Qn.current)===null||xn===void 0||xn.delayHidden()},rt=ct(kr,or,Jr,Et,vr,function(){return ei(!0)},br,Ln);$e.useImperativeHandle(_e,function(){return{nativeElement:Or.current,getScrollInfo:_i,scrollTo:function(ht){function xn(wn){return wn&&(0,Pe.Z)(wn)==="object"&&("left"in wn||"top"in wn)}xn(ht)?(ht.left!==void 0&&Vr(po(ht.left)),rt(ht.top)):rt(ht)}}}),(0,St.Z)(function(){if(vn){var yr=or.slice(jr,zn+1);vn(yr,or)}},[jr,zn,or]);var Hr=Je(or,vr,Jr,Et),_r=mn==null?void 0:mn({start:jr,end:zn,virtual:Oe,offsetX:Yr,offsetY:vi,rtl:cr,getSize:Hr}),pi=he(or,jr,zn,gn,Yr,Rn,_t,on),hi=null;Be&&(hi=(0,Ie.Z)((0,ke.Z)({},sn?"height":"maxHeight",Be),Vt),Wr&&(hi.overflowY="hidden",gn&&(hi.overflowX="hidden"),bi&&(hi.pointerEvents="none")));var ri={};return cr&&(ri.dir="rtl"),$e.createElement("div",(0,oe.Z)({ref:Or,style:(0,Ie.Z)((0,Ie.Z)({},Mn),{},{position:"relative"}),className:Cr},ri,nn),$e.createElement(Ke.Z,{onResize:Ci},$e.createElement(Pn,{className:"".concat(Xe,"-holder"),style:hi,ref:kr,onScroll:Ui,onMouseEnter:Ln},$e.createElement(te,{prefixCls:Xe,height:Nr,offsetX:Yr,offsetY:vi,scrollWidth:gn,onInnerResize:ei,ref:Fr,innerProps:$n,rtl:cr,extra:_r},pi))),Oe&&Nr>Be&&$e.createElement(fn,{ref:ji,prefixCls:Xe,scrollOffset:hn,scrollRange:Nr,rtl:cr,onScroll:Gi,onStartMove:Oi,onStopMove:xt,spinSize:si,containerSize:Gn.height,style:gt==null?void 0:gt.verticalScrollBar,thumbStyle:gt==null?void 0:gt.verticalScrollBarThumb,showScrollBar:ir}),Oe&&gn>Gn.width&&$e.createElement(fn,{ref:Qn,prefixCls:Xe,scrollOffset:Yr,scrollRange:gn,rtl:cr,onScroll:Gi,onStartMove:Oi,onStopMove:xt,spinSize:zr,containerSize:Gn.width,horizontal:!0,style:gt==null?void 0:gt.horizontalScrollBar,thumbStyle:gt==null?void 0:gt.horizontalScrollBarThumb,showScrollBar:ir}))}var Mt=$e.forwardRef(Bn);Mt.displayName="List";var Hn=Mt,ur=Hn},71426:function(We,Ee,ae){"use strict";ae.d(Ee,{Z5:function(){return vp},_l:function(){return Hl},bK:function(){return ec}});var oe=ae(59301),Pe=ae(51317);function Ie(we,Le){we.prototype=Object.create(Le.prototype),we.prototype.constructor=we,(0,Pe.Z)(we,Le)}var ke=ae(71409),Ve=ae(59781),Te=oe.createContext(null),Ge=null;function lt(we){we()}var Ke=lt,He=function(Le){return Ke=Le},St=function(){return Ke};function $e(){var we=St(),Le=null,je=null;return{clear:function(){Le=null,je=null},notify:function(){we(function(){for(var Lt=Le;Lt;)Lt.callback(),Lt=Lt.next})},get:function(){for(var Lt=[],At=Le;At;)Lt.push(At),At=At.next;return Lt},subscribe:function(Lt){var At=!0,zt=je={callback:Lt,next:null,prev:je};return zt.prev?zt.prev.next=zt:Le=zt,function(){!At||Le===null||(At=!1,zt.next?zt.next.prev=zt.prev:je=zt.prev,zt.prev?zt.prev.next=zt.next:Le=zt.next)}}}}var It={notify:function(){},get:function(){return[]}};function Fe(we,Le){var je,ut=It;function Lt(Zn){return _n(),ut.subscribe(Zn)}function At(){ut.notify()}function zt(){Jn.onStateChange&&Jn.onStateChange()}function Kt(){return!!je}function _n(){je||(je=Le?Le.addNestedSub(zt):we.subscribe(zt),ut=$e())}function rr(){je&&(je(),je=void 0,ut.clear(),ut=It)}var Jn={addNestedSub:Lt,notifyNestedSubs:At,handleChangeWrapper:zt,isSubscribed:Kt,trySubscribe:_n,tryUnsubscribe:rr,getListeners:function(){return ut}};return Jn}var te=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?oe.useLayoutEffect:oe.useEffect;function ee(we){var Le=we.store,je=we.context,ut=we.children,Lt=(0,oe.useMemo)(function(){var Kt=Fe(Le);return{store:Le,subscription:Kt}},[Le]),At=(0,oe.useMemo)(function(){return Le.getState()},[Le]);te(function(){var Kt=Lt.subscription;return Kt.onStateChange=Kt.notifyNestedSubs,Kt.trySubscribe(),At!==Le.getState()&&Kt.notifyNestedSubs(),function(){Kt.tryUnsubscribe(),Kt.onStateChange=null}},[Lt,At]);var zt=je||Te;return oe.createElement(zt.Provider,{value:Lt},ut)}var he=ee,ue=ae(91204),fe=ae(94266),me=ae.n(fe),be=ae(53410),Ae=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],De=["reactReduxForwardedRef"],Ye=[],nt=[null,null],Je=function(Le){try{return JSON.stringify(Le)}catch(je){return String(Le)}};function ot(we,Le){var je=we[1];return[Le.payload,je+1]}function mt(we,Le,je){te(function(){return we.apply(void 0,Le)},je)}function it(we,Le,je,ut,Lt,At,zt){we.current=ut,Le.current=Lt,je.current=!1,At.current&&(At.current=null,zt())}function vt(we,Le,je,ut,Lt,At,zt,Kt,_n,rr){if(we){var Jn=!1,Zn=null,Wn=function(){if(!Jn){var Hi=Le.getState(),Yi,io;try{Yi=ut(Hi,Lt.current)}catch(vo){io=vo,Zn=vo}io||(Zn=null),Yi===At.current?zt.current||_n():(At.current=Yi,Kt.current=Yi,zt.current=!0,rr({type:"STORE_UPDATED",payload:{error:io}}))}};je.onStateChange=Wn,je.trySubscribe(),Wn();var gr=function(){if(Jn=!0,je.tryUnsubscribe(),je.onStateChange=null,Zn)throw Zn};return gr}}var wt=function(){return[null,0]};function Nt(we,Le){Le===void 0&&(Le={});var je=Le,ut=je.getDisplayName,Lt=ut===void 0?function(Ea){return"ConnectAdvanced("+Ea+")"}:ut,At=je.methodName,zt=At===void 0?"connectAdvanced":At,Kt=je.renderCountProp,_n=Kt===void 0?void 0:Kt,rr=je.shouldHandleStateChanges,Jn=rr===void 0?!0:rr,Zn=je.storeKey,Wn=Zn===void 0?"store":Zn,gr=je.withRef,ni=gr===void 0?!1:gr,Hi=je.forwardRef,Yi=Hi===void 0?!1:Hi,io=je.context,vo=io===void 0?Te:io,ko=(0,ue.Z)(je,Ae);if(0)var Po;var jo=vo;return function(Ua){var bl=Ua.displayName||Ua.name||"Component",Oa=Lt(bl),ul=(0,ke.Z)({},ko,{getDisplayName:Lt,methodName:zt,renderCountProp:_n,shouldHandleStateChanges:Jn,storeKey:Wn,displayName:Oa,wrappedComponentName:bl,WrappedComponent:Ua}),vu=ko.pure;function ku(Ys){return we(Ys.dispatch,ul)}var qc=vu?oe.useMemo:function(Ys){return Ys()};function fc(Ys){var gd=(0,oe.useMemo)(function(){var tl=Ys.reactReduxForwardedRef,Cc=(0,ue.Z)(Ys,De);return[Ys.context,tl,Cc]},[Ys]),cl=gd[0],$c=gd[1],$h=gd[2],ed=(0,oe.useMemo)(function(){return cl&&cl.Consumer&&(0,be.isContextConsumer)(oe.createElement(cl.Consumer,null))?cl:jo},[cl,jo]),Fo=(0,oe.useContext)(ed),wh=!!Ys.store&&!!Ys.store.getState&&!!Ys.store.dispatch,Cp=!!Fo&&!!Fo.store,td=wh?Ys.store:Fo.store,Id=(0,oe.useMemo)(function(){return ku(td)},[td]),th=(0,oe.useMemo)(function(){if(!Jn)return nt;var tl=Fe(td,wh?null:Fo.subscription),Cc=tl.notifyNestedSubs.bind(tl);return[tl,Cc]},[td,wh,Fo]),nc=th[0],Bf=th[1],_f=(0,oe.useMemo)(function(){return wh?Fo:(0,ke.Z)({},Fo,{subscription:nc})},[wh,Fo,nc]),og=(0,oe.useReducer)(ot,Ye,wt),Vg=og[0],Pp=Vg[0],ef=og[1];if(Pp&&Pp.error)throw Pp.error;var ag=(0,oe.useRef)(),Tp=(0,oe.useRef)($h),tf=(0,oe.useRef)(),nf=(0,oe.useRef)(!1),Ap=qc(function(){return tf.current&&$h===Tp.current?tf.current:Id(td.getState(),$h)},[td,Pp,$h]);mt(it,[Tp,ag,nf,$h,Ap,tf,Bf]),mt(vt,[Jn,td,nc,Id,Tp,ag,nf,tf,Bf,ef],[td,nc,Id]);var la=(0,oe.useMemo)(function(){return oe.createElement(Ua,(0,ke.Z)({},Ap,{ref:$c}))},[$c,Ua,Ap]),Iu=(0,oe.useMemo)(function(){return Jn?oe.createElement(ed.Provider,{value:_f},la):la},[ed,la,_f]);return Iu}var tc=vu?oe.memo(fc):fc;if(tc.WrappedComponent=Ua,tc.displayName=fc.displayName=Oa,Yi){var Gl=oe.forwardRef(function(gd,cl){return oe.createElement(tc,(0,ke.Z)({},gd,{reactReduxForwardedRef:cl}))});return Gl.displayName=Oa,Gl.WrappedComponent=Ua,me()(Gl,Ua)}return me()(tc,Ua)}}function Ht(we,Le){return we===Le?we!==0||Le!==0||1/we===1/Le:we!==we&&Le!==Le}function Qt(we,Le){if(Ht(we,Le))return!0;if(typeof we!="object"||we===null||typeof Le!="object"||Le===null)return!1;var je=Object.keys(we),ut=Object.keys(Le);if(je.length!==ut.length)return!1;for(var Lt=0;Lt<je.length;Lt++)if(!Object.prototype.hasOwnProperty.call(Le,je[Lt])||!Ht(we[je[Lt]],Le[je[Lt]]))return!1;return!0}function Yt(we,Le){var je={},ut=function(zt){var Kt=we[zt];typeof Kt=="function"&&(je[zt]=function(){return Le(Kt.apply(void 0,arguments))})};for(var Lt in we)ut(Lt);return je}function yn(we){return function(je,ut){var Lt=we(je,ut);function At(){return Lt}return At.dependsOnOwnProps=!1,At}}function bt(we){return we.dependsOnOwnProps!==null&&we.dependsOnOwnProps!==void 0?!!we.dependsOnOwnProps:we.length!==1}function ft(we,Le){return function(ut,Lt){var At=Lt.displayName,zt=function(_n,rr){return zt.dependsOnOwnProps?zt.mapToProps(_n,rr):zt.mapToProps(_n)};return zt.dependsOnOwnProps=!0,zt.mapToProps=function(_n,rr){zt.mapToProps=we,zt.dependsOnOwnProps=bt(we);var Jn=zt(_n,rr);return typeof Jn=="function"&&(zt.mapToProps=Jn,zt.dependsOnOwnProps=bt(Jn),Jn=zt(_n,rr)),Jn},zt}}function ct(we){return typeof we=="function"?ft(we,"mapDispatchToProps"):void 0}function Jt(we){return we?void 0:yn(function(Le){return{dispatch:Le}})}function fn(we){return we&&typeof we=="object"?yn(function(Le){return Yt(we,Le)}):void 0}var kt=[ct,Jt,fn];function bn(we){return typeof we=="function"?ft(we,"mapStateToProps"):void 0}function An(we){return we?void 0:yn(function(){return{}})}var Yn=[bn,An];function Vt(we,Le,je){return(0,ke.Z)({},je,we,Le)}function Bn(we){return function(je,ut){var Lt=ut.displayName,At=ut.pure,zt=ut.areMergedPropsEqual,Kt=!1,_n;return function(Jn,Zn,Wn){var gr=we(Jn,Zn,Wn);return Kt?(!At||!zt(gr,_n))&&(_n=gr):(Kt=!0,_n=gr),_n}}}function Mt(we){return typeof we=="function"?Bn(we):void 0}function Hn(we){return we?void 0:function(){return Vt}}var ur=[Mt,Hn],at=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function _e(we,Le,je,ut){return function(At,zt){return je(we(At,zt),Le(ut,zt),zt)}}function Re(we,Le,je,ut,Lt){var At=Lt.areStatesEqual,zt=Lt.areOwnPropsEqual,Kt=Lt.areStatePropsEqual,_n=!1,rr,Jn,Zn,Wn,gr;function ni(ko,Po){return rr=ko,Jn=Po,Zn=we(rr,Jn),Wn=Le(ut,Jn),gr=je(Zn,Wn,Jn),_n=!0,gr}function Hi(){return Zn=we(rr,Jn),Le.dependsOnOwnProps&&(Wn=Le(ut,Jn)),gr=je(Zn,Wn,Jn),gr}function Yi(){return we.dependsOnOwnProps&&(Zn=we(rr,Jn)),Le.dependsOnOwnProps&&(Wn=Le(ut,Jn)),gr=je(Zn,Wn,Jn),gr}function io(){var ko=we(rr,Jn),Po=!Kt(ko,Zn);return Zn=ko,Po&&(gr=je(Zn,Wn,Jn)),gr}function vo(ko,Po){var jo=!zt(Po,Jn),Ea=!At(ko,rr,Po,Jn);return rr=ko,Jn=Po,jo&&Ea?Hi():jo?Yi():Ea?io():gr}return function(Po,jo){return _n?vo(Po,jo):ni(Po,jo)}}function Xe(we,Le){var je=Le.initMapStateToProps,ut=Le.initMapDispatchToProps,Lt=Le.initMergeProps,At=(0,ue.Z)(Le,at),zt=je(we,At),Kt=ut(we,At),_n=Lt(we,At),rr=At.pure?Re:_e;return rr(zt,Kt,_n,we,At)}var st=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function Be(we,Le,je){for(var ut=Le.length-1;ut>=0;ut--){var Lt=Le[ut](we);if(Lt)return Lt}return function(At,zt){throw new Error("Invalid value of type "+typeof we+" for "+je+" argument when connecting component "+zt.wrappedComponentName+".")}}function Et(we,Le){return we===Le}function En(we){var Le=we===void 0?{}:we,je=Le.connectHOC,ut=je===void 0?Nt:je,Lt=Le.mapStateToPropsFactories,At=Lt===void 0?Yn:Lt,zt=Le.mapDispatchToPropsFactories,Kt=zt===void 0?kt:zt,_n=Le.mergePropsFactories,rr=_n===void 0?ur:_n,Jn=Le.selectorFactory,Zn=Jn===void 0?Xe:Jn;return function(gr,ni,Hi,Yi){Yi===void 0&&(Yi={});var io=Yi,vo=io.pure,ko=vo===void 0?!0:vo,Po=io.areStatesEqual,jo=Po===void 0?Et:Po,Ea=io.areOwnPropsEqual,Ua=Ea===void 0?Qt:Ea,bl=io.areStatePropsEqual,Oa=bl===void 0?Qt:bl,ul=io.areMergedPropsEqual,vu=ul===void 0?Qt:ul,ku=(0,ue.Z)(io,st),qc=Be(gr,At,"mapStateToProps"),fc=Be(ni,Kt,"mapDispatchToProps"),tc=Be(Hi,rr,"mergeProps");return ut(Zn,(0,ke.Z)({methodName:"connect",getDisplayName:function(Ys){return"Connect("+Ys+")"},shouldHandleStateChanges:!!gr,initMapStateToProps:qc,initMapDispatchToProps:fc,initMergeProps:tc,pure:ko,areStatesEqual:jo,areOwnPropsEqual:Ua,areStatePropsEqual:Oa,areMergedPropsEqual:vu},ku))}}var sn=En();function Mn(){var we=useContext(ReactReduxContext);return we}function Dt(we){we===void 0&&(we=ReactReduxContext);var Le=we===ReactReduxContext?useDefaultReduxContext:function(){return useContext(we)};return function(){var ut=Le(),Lt=ut.store;return Lt}}var _t=null;function jt(we){we===void 0&&(we=ReactReduxContext);var Le=we===ReactReduxContext?useDefaultStore:createStoreHook(we);return function(){var ut=Le();return ut.dispatch}}var dn=null,Sn=function(Le,je){return Le===je};function gn(we,Le,je,ut){var Lt=useReducer(function(ni){return ni+1},0),At=Lt[1],zt=useMemo(function(){return createSubscription(je,ut)},[je,ut]),Kt=useRef(),_n=useRef(),rr=useRef(),Jn=useRef(),Zn=je.getState(),Wn;try{if(we!==_n.current||Zn!==rr.current||Kt.current){var gr=we(Zn);Jn.current===void 0||!Le(gr,Jn.current)?Wn=gr:Wn=Jn.current}else Wn=Jn.current}catch(ni){throw Kt.current&&(ni.message+=`
The error may be correlated with this previous error:
`+Kt.current.stack+`
`),ni}return useIsomorphicLayoutEffect(function(){_n.current=we,rr.current=Zn,Jn.current=Wn,Kt.current=void 0}),useIsomorphicLayoutEffect(function(){function ni(){try{var Hi=je.getState();if(Hi===rr.current)return;var Yi=_n.current(Hi);if(Le(Yi,Jn.current))return;Jn.current=Yi,rr.current=Hi}catch(io){Kt.current=io}At()}return zt.onStateChange=ni,zt.trySubscribe(),ni(),function(){return zt.tryUnsubscribe()}},[je,zt]),Wn}function Ot(we){we===void 0&&(we=ReactReduxContext);var Le=we===ReactReduxContext?useDefaultReduxContext:function(){return useContext(we)};return function(ut,Lt){Lt===void 0&&(Lt=Sn);var At=Le(),zt=At.store,Kt=At.subscription,_n=gn(ut,Lt,zt,Kt);return useDebugValue(_n),_n}}var Pn=null,Zt=ae(4676);He(Zt.unstable_batchedUpdates);function tn(we,Le){if(we.length!==Le.length)return!1;for(var je=0;je<we.length;je++)if(we[je]!==Le[je])return!1;return!0}function vn(we,Le){var je=(0,oe.useState)(function(){return{inputs:Le,result:we()}})[0],ut=(0,oe.useRef)(!0),Lt=(0,oe.useRef)(je),At=ut.current||!!(Le&&Lt.current.inputs&&tn(Le,Lt.current.inputs)),zt=At?Lt.current:{inputs:Le,result:we()};return(0,oe.useEffect)(function(){ut.current=!1,Lt.current=zt},[zt]),zt.result}function $n(we,Le){return vn(function(){return we},Le)}var mn=vn,gt=$n,Xn=!0,ir="Invariant failed";function nn(we,Le){if(!we){if(Xn)throw new Error(ir);var je=typeof Le=="function"?Le():Le,ut=je?"".concat(ir,": ").concat(je):ir;throw new Error(ut)}}var vr=function(Le){var je=Le.top,ut=Le.right,Lt=Le.bottom,At=Le.left,zt=ut-At,Kt=Lt-je,_n={top:je,right:ut,bottom:Lt,left:At,width:zt,height:Kt,x:At,y:je,center:{x:(ut+At)/2,y:(Lt+je)/2}};return _n},$r=function(Le,je){return{top:Le.top-je.top,left:Le.left-je.left,bottom:Le.bottom+je.bottom,right:Le.right+je.right}},Lr=function(Le,je){return{top:Le.top+je.top,left:Le.left+je.left,bottom:Le.bottom-je.bottom,right:Le.right-je.right}},Rn=function(Le,je){return{top:Le.top+je.y,left:Le.left+je.x,bottom:Le.bottom+je.y,right:Le.right+je.x}},ei={top:0,right:0,bottom:0,left:0},Jr=function(Le){var je=Le.borderBox,ut=Le.margin,Lt=ut===void 0?ei:ut,At=Le.border,zt=At===void 0?ei:At,Kt=Le.padding,_n=Kt===void 0?ei:Kt,rr=vr($r(je,Lt)),Jn=vr(Lr(je,zt)),Zn=vr(Lr(Jn,_n));return{marginBox:rr,borderBox:vr(je),paddingBox:Jn,contentBox:Zn,margin:Lt,border:zt,padding:_n}},nr=function(Le){var je=Le.slice(0,-2),ut=Le.slice(-2);if(ut!=="px")return 0;var Lt=Number(je);return isNaN(Lt)&&nn(!1),Lt},Wr=function(){return{x:window.pageXOffset,y:window.pageYOffset}},oi=function(Le,je){var ut=Le.borderBox,Lt=Le.border,At=Le.margin,zt=Le.padding,Kt=Rn(ut,je);return Jr({borderBox:Kt,border:Lt,margin:At,padding:zt})},Oe=function(Le,je){return je===void 0&&(je=Wr()),oi(Le,je)},cr=function(Le,je){var ut={top:nr(je.marginTop),right:nr(je.marginRight),bottom:nr(je.marginBottom),left:nr(je.marginLeft)},Lt={top:nr(je.paddingTop),right:nr(je.paddingRight),bottom:nr(je.paddingBottom),left:nr(je.paddingLeft)},At={top:nr(je.borderTopWidth),right:nr(je.borderRightWidth),bottom:nr(je.borderBottomWidth),left:nr(je.borderLeftWidth)};return Jr({borderBox:Le,margin:ut,padding:Lt,border:At})},Cr=function(Le){var je=Le.getBoundingClientRect(),ut=window.getComputedStyle(Le);return cr(je,ut)},or=Number.isNaN||function(Le){return typeof Le=="number"&&Le!==Le};function kr(we,Le){return!!(we===Le||or(we)&&or(Le))}function Fr(we,Le){if(we.length!==Le.length)return!1;for(var je=0;je<we.length;je++)if(!kr(we[je],Le[je]))return!1;return!0}function Or(we,Le){Le===void 0&&(Le=Fr);var je,ut=[],Lt,At=!1;function zt(){for(var Kt=[],_n=0;_n<arguments.length;_n++)Kt[_n]=arguments[_n];return At&&je===this&&Le(Kt,ut)||(Lt=we.apply(this,Kt),At=!0,je=this,ut=Kt),Lt}return zt}var mi=Or,Ti=function(Le){var je=[],ut=null,Lt=function(){for(var zt=arguments.length,Kt=new Array(zt),_n=0;_n<zt;_n++)Kt[_n]=arguments[_n];je=Kt,!ut&&(ut=requestAnimationFrame(function(){ut=null,Le.apply(void 0,je)}))};return Lt.cancel=function(){ut&&(cancelAnimationFrame(ut),ut=null)},Lt},hn=Ti,Cn=!0,pn=/[ \t]{2,}/g,Kr=/^[ \t]*/gm,Yr=function(Le){return Le.replace(pn," ").replace(Kr,"").trim()},Vr=function(Le){return Yr(`
%creact-beautiful-dnd
%c`+Yr(Le)+`
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
`)},dr=function(Le){return[Vr(Le),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},Gr="__react-beautiful-dnd-disable-dev-warnings";function bi(we,Le){var je;Cn||typeof window!="undefined"&&window[Gr]||(je=console)[we].apply(je,dr(Le))}var Ai=bi.bind(null,"warn"),Oi=bi.bind(null,"error");function xt(){}function on(we,Le){return(0,ke.Z)({},we,{},Le)}function br(we,Le,je){var ut=Le.map(function(Lt){var At=on(je,Lt.options);return we.addEventListener(Lt.eventName,Lt.fn,At),function(){we.removeEventListener(Lt.eventName,Lt.fn,At)}});return function(){ut.forEach(function(At){At()})}}var Br=!0,Xt="Invariant failed";function fr(we){this.message=we}fr.prototype.toString=function(){return this.message};function Tn(we,Le){if(!we)throw Br?new fr(Xt):new fr(Xt+": "+(Le||""))}var un=function(we){Ie(Le,we);function Le(){for(var ut,Lt=arguments.length,At=new Array(Lt),zt=0;zt<Lt;zt++)At[zt]=arguments[zt];return ut=we.call.apply(we,[this].concat(At))||this,ut.callbacks=null,ut.unbind=xt,ut.onWindowError=function(Kt){var _n=ut.getCallbacks();_n.isDragging()&&_n.tryAbort();var rr=Kt.error;rr instanceof fr&&Kt.preventDefault()},ut.getCallbacks=function(){if(!ut.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return ut.callbacks},ut.setCallbacks=function(Kt){ut.callbacks=Kt},ut}var je=Le.prototype;return je.componentDidMount=function(){this.unbind=br(window,[{eventName:"error",fn:this.onWindowError}])},je.componentWillUnmount=function(){this.unbind()},je.componentDidCatch=function(Lt){if(Lt instanceof fr){this.setState({});return}throw Lt},je.render=function(){return this.props.children(this.setCallbacks)},Le}(oe.Component),Ue=`
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
`,Nr=function(Le){return Le+1},jr=function(Le){return`
You have lifted an item in position `+Nr(Le.source.index)+`
`},zn=function(Le,je){var ut=Le.droppableId===je.droppableId,Lt=Nr(Le.index),At=Nr(je.index);return ut?`
You have moved the item from position `+Lt+`
to position `+At+`
`:`
You have moved the item from position `+Lt+`
in list `+Le.droppableId+`
to list `+je.droppableId+`
in position `+At+`
`},vi=function(Le,je,ut){var Lt=je.droppableId===ut.droppableId;return Lt?`
The item `+Le+`
has been combined with `+ut.draggableId:`
The item `+Le+`
in list `+je.droppableId+`
has been combined with `+ut.draggableId+`
in list `+ut.droppableId+`
`},Xr=function(Le){var je=Le.destination;if(je)return zn(Le.source,je);var ut=Le.combine;return ut?vi(Le.draggableId,Le.source,ut):"You are over an area that cannot be dropped on"},ci=function(Le){return`
The item has returned to its starting position
of `+Nr(Le.index)+`
`},Gn=function(Le){if(Le.reason==="CANCEL")return`
Movement cancelled.
`+ci(Le.source)+`
`;var je=Le.destination,ut=Le.combine;return je?`
You have dropped the item.
`+zn(Le.source,je)+`
`:ut?`
You have dropped the item.
`+vi(Le.draggableId,Le.source,ut)+`
`:`
The item has been dropped while not over a drop area.
`+ci(Le.source)+`
`},cn={dragHandleUsageInstructions:Ue,onDragStart:jr,onDragUpdate:Xr,onDragEnd:Gn},Ci={x:0,y:0},ji=function(Le,je){return{x:Le.x+je.x,y:Le.y+je.y}},Qn=function(Le,je){return{x:Le.x-je.x,y:Le.y-je.y}},zr=function(Le,je){return Le.x===je.x&&Le.y===je.y},si=function(Le){return{x:Le.x!==0?-Le.x:0,y:Le.y!==0?-Le.y:0}},di=function(Le,je,ut){var Lt;return ut===void 0&&(ut=0),Lt={},Lt[Le]=je,Lt[Le==="x"?"y":"x"]=ut,Lt},ti=function(Le,je){return Math.sqrt(Math.pow(je.x-Le.x,2)+Math.pow(je.y-Le.y,2))},ki=function(Le,je){return Math.min.apply(Math,je.map(function(ut){return ti(Le,ut)}))},Bi=function(Le){return function(je){return{x:Le(je.x),y:Le(je.y)}}},Zi=function(we,Le){var je=vr({top:Math.max(Le.top,we.top),right:Math.min(Le.right,we.right),bottom:Math.min(Le.bottom,we.bottom),left:Math.max(Le.left,we.left)});return je.width<=0||je.height<=0?null:je},Fi=function(Le,je){return{top:Le.top+je.y,left:Le.left+je.x,bottom:Le.bottom+je.y,right:Le.right+je.x}},Vi=function(Le){return[{x:Le.left,y:Le.top},{x:Le.right,y:Le.top},{x:Le.left,y:Le.bottom},{x:Le.right,y:Le.bottom}]},er={top:0,right:0,bottom:0,left:0},_i=function(Le,je){return je?Fi(Le,je.scroll.diff.displacement):Le},ar=function(Le,je,ut){if(ut&&ut.increasedBy){var Lt;return(0,ke.Z)({},Le,(Lt={},Lt[je.end]=Le[je.end]+ut.increasedBy[je.line],Lt))}return Le},Ei=function(Le,je){return je&&je.shouldClipSubject?Zi(je.pageMarginBox,Le):vr(Le)},Gi=function(we){var Le=we.page,je=we.withPlaceholder,ut=we.axis,Lt=we.frame,At=_i(Le.marginBox,Lt),zt=ar(At,ut,je),Kt=Ei(zt,Lt);return{page:Le,withPlaceholder:je,active:Kt}},Ui=function(we,Le){we.frame||Tn(!1);var je=we.frame,ut=Qn(Le,je.scroll.initial),Lt=si(ut),At=(0,ke.Z)({},je,{scroll:{initial:je.scroll.initial,current:Le,diff:{value:ut,displacement:Lt},max:je.scroll.max}}),zt=Gi({page:we.subject.page,withPlaceholder:we.subject.withPlaceholder,axis:we.axis,frame:At}),Kt=(0,ke.Z)({},we,{frame:At,subject:zt});return Kt};function po(we){return Number.isInteger?Number.isInteger(we):typeof we=="number"&&isFinite(we)&&Math.floor(we)===we}function ho(we){return Object.values?Object.values(we):Object.keys(we).map(function(Le){return we[Le]})}function Qi(we,Le){if(we.findIndex)return we.findIndex(Le);for(var je=0;je<we.length;je++)if(Le(we[je]))return je;return-1}function Ro(we,Le){if(we.find)return we.find(Le);var je=Qi(we,Le);if(je!==-1)return we[je]}function Fn(we){return Array.prototype.slice.call(we)}var pr=mi(function(we){return we.reduce(function(Le,je){return Le[je.descriptor.id]=je,Le},{})}),Ln=mi(function(we){return we.reduce(function(Le,je){return Le[je.descriptor.id]=je,Le},{})}),rt=mi(function(we){return ho(we)}),Hr=mi(function(we){return ho(we)}),_r=mi(function(we,Le){var je=Hr(Le).filter(function(ut){return we===ut.descriptor.droppableId}).sort(function(ut,Lt){return ut.descriptor.index-Lt.descriptor.index});return je});function pi(we){return we.at&&we.at.type==="REORDER"?we.at.destination:null}function hi(we){return we.at&&we.at.type==="COMBINE"?we.at.combine:null}var ri=mi(function(we,Le){return Le.filter(function(je){return je.descriptor.id!==we.descriptor.id})}),yr=function(we){var Le=we.isMovingForward,je=we.draggable,ut=we.destination,Lt=we.insideDestination,At=we.previousImpact;if(!ut.isCombineEnabled)return null;var zt=pi(At);if(!zt)return null;function Kt(Hi){var Yi={type:"COMBINE",combine:{draggableId:Hi,droppableId:ut.descriptor.id}};return(0,ke.Z)({},At,{at:Yi})}var _n=At.displaced.all,rr=_n.length?_n[0]:null;if(Le)return rr?Kt(rr):null;var Jn=ri(je,Lt);if(!rr){if(!Jn.length)return null;var Zn=Jn[Jn.length-1];return Kt(Zn.descriptor.id)}var Wn=Qi(Jn,function(Hi){return Hi.descriptor.id===rr});Wn===-1&&Tn(!1);var gr=Wn-1;if(gr<0)return null;var ni=Jn[gr];return Kt(ni.descriptor.id)},ht=function(we,Le){return we.descriptor.droppableId===Le.descriptor.id},xn={point:Ci,value:0},wn={invisible:{},visible:{},all:[]},jn={displaced:wn,displacedBy:xn,at:null},On=function(we,Le){return function(je){return we<=je&&je<=Le}},sr=function(we){var Le=On(we.top,we.bottom),je=On(we.left,we.right);return function(ut){var Lt=Le(ut.top)&&Le(ut.bottom)&&je(ut.left)&&je(ut.right);if(Lt)return!0;var At=Le(ut.top)||Le(ut.bottom),zt=je(ut.left)||je(ut.right),Kt=At&&zt;if(Kt)return!0;var _n=ut.top<we.top&&ut.bottom>we.bottom,rr=ut.left<we.left&&ut.right>we.right,Jn=_n&&rr;if(Jn)return!0;var Zn=_n&&zt||rr&&At;return Zn}},Un=function(we){var Le=On(we.top,we.bottom),je=On(we.left,we.right);return function(ut){var Lt=Le(ut.top)&&Le(ut.bottom)&&je(ut.left)&&je(ut.right);return Lt}},ln={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},qn={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Ur=function(we){return function(Le){var je=On(Le.top,Le.bottom),ut=On(Le.left,Le.right);return function(Lt){return we===ln?je(Lt.top)&&je(Lt.bottom):ut(Lt.left)&&ut(Lt.right)}}},Ni=function(Le,je){var ut=je.frame?je.frame.scroll.diff.displacement:Ci;return Fi(Le,ut)},ai=function(Le,je,ut){return je.subject.active?ut(je.subject.active)(Le):!1},Si=function(Le,je,ut){return ut(je)(Le)},Ii=function(Le){var je=Le.target,ut=Le.destination,Lt=Le.viewport,At=Le.withDroppableDisplacement,zt=Le.isVisibleThroughFrameFn,Kt=At?Ni(je,ut):je;return ai(Kt,ut,zt)&&Si(Kt,Lt,zt)},Ri=function(Le){return Ii((0,ke.Z)({},Le,{isVisibleThroughFrameFn:sr}))},co=function(Le){return Ii((0,ke.Z)({},Le,{isVisibleThroughFrameFn:Un}))},mo=function(Le){return Ii((0,ke.Z)({},Le,{isVisibleThroughFrameFn:Ur(Le.destination.axis)}))},zo=function(Le,je,ut){if(typeof ut=="boolean")return ut;if(!je)return!0;var Lt=je.invisible,At=je.visible;if(Lt[Le])return!1;var zt=At[Le];return zt?zt.shouldAnimate:!0};function kn(we,Le){var je=we.page.marginBox,ut={top:Le.point.y,right:0,bottom:0,left:Le.point.x};return vr($r(je,ut))}function bo(we){var Le=we.afterDragging,je=we.destination,ut=we.displacedBy,Lt=we.viewport,At=we.forceShouldAnimate,zt=we.last;return Le.reduce(function(_n,rr){var Jn=kn(rr,ut),Zn=rr.descriptor.id;_n.all.push(Zn);var Wn=Ri({target:Jn,destination:je,viewport:Lt,withDroppableDisplacement:!0});if(!Wn)return _n.invisible[rr.descriptor.id]=!0,_n;var gr=zo(Zn,zt,At),ni={draggableId:Zn,shouldAnimate:gr};return _n.visible[Zn]=ni,_n},{all:[],visible:{},invisible:{}})}function wo(we,Le){if(!we.length)return 0;var je=we[we.length-1].descriptor.index;return Le.inHomeList?je:je+1}function Wi(we){var Le=we.insideDestination,je=we.inHomeList,ut=we.displacedBy,Lt=we.destination,At=wo(Le,{inHomeList:je});return{displaced:wn,displacedBy:ut,at:{type:"REORDER",destination:{droppableId:Lt.descriptor.id,index:At}}}}function so(we){var Le=we.draggable,je=we.insideDestination,ut=we.destination,Lt=we.viewport,At=we.displacedBy,zt=we.last,Kt=we.index,_n=we.forceShouldAnimate,rr=ht(Le,ut);if(Kt==null)return Wi({insideDestination:je,inHomeList:rr,displacedBy:At,destination:ut});var Jn=Ro(je,function(Hi){return Hi.descriptor.index===Kt});if(!Jn)return Wi({insideDestination:je,inHomeList:rr,displacedBy:At,destination:ut});var Zn=ri(Le,je),Wn=je.indexOf(Jn),gr=Zn.slice(Wn),ni=bo({afterDragging:gr,destination:ut,displacedBy:At,last:zt,viewport:Lt.frame,forceShouldAnimate:_n});return{displaced:ni,displacedBy:At,at:{type:"REORDER",destination:{droppableId:ut.descriptor.id,index:Kt}}}}function ro(we,Le){return!!Le.effected[we]}var Xo=function(we){var Le=we.isMovingForward,je=we.destination,ut=we.draggables,Lt=we.combine,At=we.afterCritical;if(!je.isCombineEnabled)return null;var zt=Lt.draggableId,Kt=ut[zt],_n=Kt.descriptor.index,rr=ro(zt,At);return rr?Le?_n:_n-1:Le?_n+1:_n},Vn=function(we){var Le=we.isMovingForward,je=we.isInHomeList,ut=we.insideDestination,Lt=we.location;if(!ut.length)return null;var At=Lt.index,zt=Le?At+1:At-1,Kt=ut[0].descriptor.index,_n=ut[ut.length-1].descriptor.index,rr=je?_n:_n+1;return zt<Kt||zt>rr?null:zt},yo=function(we){var Le=we.isMovingForward,je=we.isInHomeList,ut=we.draggable,Lt=we.draggables,At=we.destination,zt=we.insideDestination,Kt=we.previousImpact,_n=we.viewport,rr=we.afterCritical,Jn=Kt.at;if(Jn||Tn(!1),Jn.type==="REORDER"){var Zn=Vn({isMovingForward:Le,isInHomeList:je,location:Jn.destination,insideDestination:zt});return Zn==null?null:so({draggable:ut,insideDestination:zt,destination:At,viewport:_n,last:Kt.displaced,displacedBy:Kt.displacedBy,index:Zn})}var Wn=Xo({isMovingForward:Le,destination:At,displaced:Kt.displaced,draggables:Lt,combine:Jn.combine,afterCritical:rr});return Wn==null?null:so({draggable:ut,insideDestination:zt,destination:At,viewport:_n,last:Kt.displaced,displacedBy:Kt.displacedBy,index:Wn})},ia=function(we){var Le=we.displaced,je=we.afterCritical,ut=we.combineWith,Lt=we.displacedBy,At=!!(Le.visible[ut]||Le.invisible[ut]);return ro(ut,je)?At?Ci:si(Lt.point):At?Lt.point:Ci},ws=function(we){var Le=we.afterCritical,je=we.impact,ut=we.draggables,Lt=hi(je);Lt||Tn(!1);var At=Lt.draggableId,zt=ut[At].page.borderBox.center,Kt=ia({displaced:je.displaced,afterCritical:Le,combineWith:At,displacedBy:je.displacedBy});return ji(zt,Kt)},Ba=function(Le,je){return je.margin[Le.start]+je.borderBox[Le.size]/2},xl=function(Le,je){return je.margin[Le.end]+je.borderBox[Le.size]/2},Cs=function(Le,je,ut){return je[Le.crossAxisStart]+ut.margin[Le.crossAxisStart]+ut.borderBox[Le.crossAxisSize]/2},Xi=function(Le){var je=Le.axis,ut=Le.moveRelativeTo,Lt=Le.isMoving;return di(je.line,ut.marginBox[je.end]+Ba(je,Lt),Cs(je,ut.marginBox,Lt))},Ia=function(Le){var je=Le.axis,ut=Le.moveRelativeTo,Lt=Le.isMoving;return di(je.line,ut.marginBox[je.start]-xl(je,Lt),Cs(je,ut.marginBox,Lt))},_a=function(Le){var je=Le.axis,ut=Le.moveInto,Lt=Le.isMoving;return di(je.line,ut.contentBox[je.start]+Ba(je,Lt),Cs(je,ut.contentBox,Lt))},ds=function(we){var Le=we.impact,je=we.draggable,ut=we.draggables,Lt=we.droppable,At=we.afterCritical,zt=_r(Lt.descriptor.id,ut),Kt=je.page,_n=Lt.axis;if(!zt.length)return _a({axis:_n,moveInto:Lt.page,isMoving:Kt});var rr=Le.displaced,Jn=Le.displacedBy,Zn=rr.all[0];if(Zn){var Wn=ut[Zn];if(ro(Zn,At))return Ia({axis:_n,moveRelativeTo:Wn.page,isMoving:Kt});var gr=oi(Wn.page,Jn.point);return Ia({axis:_n,moveRelativeTo:gr,isMoving:Kt})}var ni=zt[zt.length-1];if(ni.descriptor.id===je.descriptor.id)return Kt.borderBox.center;if(ro(ni.descriptor.id,At)){var Hi=oi(ni.page,si(At.displacedBy.point));return Xi({axis:_n,moveRelativeTo:Hi,isMoving:Kt})}return Xi({axis:_n,moveRelativeTo:ni.page,isMoving:Kt})},La=function(we,Le){var je=we.frame;return je?ji(Le,je.scroll.diff.displacement):Le},Za=function(Le){var je=Le.impact,ut=Le.draggable,Lt=Le.droppable,At=Le.draggables,zt=Le.afterCritical,Kt=ut.page.borderBox.center,_n=je.at;return!Lt||!_n?Kt:_n.type==="REORDER"?ds({impact:je,draggable:ut,draggables:At,droppable:Lt,afterCritical:zt}):ws({impact:je,draggables:At,afterCritical:zt})},fi=function(we){var Le=Za(we),je=we.droppable,ut=je?La(je,Le):Le;return ut},Ji=function(we,Le){var je=Qn(Le,we.scroll.initial),ut=si(je),Lt=vr({top:Le.y,bottom:Le.y+we.frame.height,left:Le.x,right:Le.x+we.frame.width}),At={frame:Lt,scroll:{initial:we.scroll.initial,max:we.scroll.max,current:Le,diff:{value:je,displacement:ut}}};return At};function fo(we,Le){return we.map(function(je){return Le[je]})}function Mo(we,Le){for(var je=0;je<Le.length;je++){var ut=Le[je].visible[we];if(ut)return ut}return null}var Oo=function(we){var Le=we.impact,je=we.viewport,ut=we.destination,Lt=we.draggables,At=we.maxScrollChange,zt=Ji(je,ji(je.scroll.current,At)),Kt=ut.frame?Ui(ut,ji(ut.frame.scroll.current,At)):ut,_n=Le.displaced,rr=bo({afterDragging:fo(_n.all,Lt),destination:ut,displacedBy:Le.displacedBy,viewport:zt.frame,last:_n,forceShouldAnimate:!1}),Jn=bo({afterDragging:fo(_n.all,Lt),destination:Kt,displacedBy:Le.displacedBy,viewport:je.frame,last:_n,forceShouldAnimate:!1}),Zn={},Wn={},gr=[_n,rr,Jn];_n.all.forEach(function(Hi){var Yi=Mo(Hi,gr);if(Yi){Wn[Hi]=Yi;return}Zn[Hi]=!0});var ni=(0,ke.Z)({},Le,{displaced:{all:_n.all,invisible:Zn,visible:Wn}});return ni},ua=function(we,Le){return ji(we.scroll.diff.displacement,Le)},qi=function(we){var Le=we.pageBorderBoxCenter,je=we.draggable,ut=we.viewport,Lt=ua(ut,Le),At=Qn(Lt,je.page.borderBox.center);return ji(je.client.borderBox.center,At)},ps=function(we){var Le=we.draggable,je=we.destination,ut=we.newPageBorderBoxCenter,Lt=we.viewport,At=we.withDroppableDisplacement,zt=we.onlyOnMainAxis,Kt=zt===void 0?!1:zt,_n=Qn(ut,Le.page.borderBox.center),rr=Fi(Le.page.borderBox,_n),Jn={target:rr,destination:je,withDroppableDisplacement:At,viewport:Lt};return Kt?mo(Jn):co(Jn)},Ga=function(we){var Le=we.isMovingForward,je=we.draggable,ut=we.destination,Lt=we.draggables,At=we.previousImpact,zt=we.viewport,Kt=we.previousPageBorderBoxCenter,_n=we.previousClientSelection,rr=we.afterCritical;if(!ut.isEnabled)return null;var Jn=_r(ut.descriptor.id,Lt),Zn=ht(je,ut),Wn=yr({isMovingForward:Le,draggable:je,destination:ut,insideDestination:Jn,previousImpact:At})||yo({isMovingForward:Le,isInHomeList:Zn,draggable:je,draggables:Lt,destination:ut,insideDestination:Jn,previousImpact:At,viewport:zt,afterCritical:rr});if(!Wn)return null;var gr=fi({impact:Wn,draggable:je,droppable:ut,draggables:Lt,afterCritical:rr}),ni=ps({draggable:je,destination:ut,newPageBorderBoxCenter:gr,viewport:zt.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(ni){var Hi=qi({pageBorderBoxCenter:gr,draggable:je,viewport:zt});return{clientSelection:Hi,impact:Wn,scrollJumpRequest:null}}var Yi=Qn(gr,Kt),io=Oo({impact:Wn,viewport:zt,destination:ut,draggables:Lt,maxScrollChange:Yi});return{clientSelection:_n,impact:io,scrollJumpRequest:Yi}},ca=function(Le){var je=Le.subject.active;return je||Tn(!1),je},Uo=function(we){var Le=we.isMovingForward,je=we.pageBorderBoxCenter,ut=we.source,Lt=we.droppables,At=we.viewport,zt=ut.subject.active;if(!zt)return null;var Kt=ut.axis,_n=On(zt[Kt.start],zt[Kt.end]),rr=rt(Lt).filter(function(Zn){return Zn!==ut}).filter(function(Zn){return Zn.isEnabled}).filter(function(Zn){return!!Zn.subject.active}).filter(function(Zn){return sr(At.frame)(ca(Zn))}).filter(function(Zn){var Wn=ca(Zn);return Le?zt[Kt.crossAxisEnd]<Wn[Kt.crossAxisEnd]:Wn[Kt.crossAxisStart]<zt[Kt.crossAxisStart]}).filter(function(Zn){var Wn=ca(Zn),gr=On(Wn[Kt.start],Wn[Kt.end]);return _n(Wn[Kt.start])||_n(Wn[Kt.end])||gr(zt[Kt.start])||gr(zt[Kt.end])}).sort(function(Zn,Wn){var gr=ca(Zn)[Kt.crossAxisStart],ni=ca(Wn)[Kt.crossAxisStart];return Le?gr-ni:ni-gr}).filter(function(Zn,Wn,gr){return ca(Zn)[Kt.crossAxisStart]===ca(gr[0])[Kt.crossAxisStart]});if(!rr.length)return null;if(rr.length===1)return rr[0];var Jn=rr.filter(function(Zn){var Wn=On(ca(Zn)[Kt.start],ca(Zn)[Kt.end]);return Wn(je[Kt.line])});return Jn.length===1?Jn[0]:Jn.length>1?Jn.sort(function(Zn,Wn){return ca(Zn)[Kt.start]-ca(Wn)[Kt.start]})[0]:rr.sort(function(Zn,Wn){var gr=ki(je,Vi(ca(Zn))),ni=ki(je,Vi(ca(Wn)));return gr!==ni?gr-ni:ca(Zn)[Kt.start]-ca(Wn)[Kt.start]})[0]},da=function(Le,je){var ut=Le.page.borderBox.center;return ro(Le.descriptor.id,je)?Qn(ut,je.displacedBy.point):ut},Us=function(Le,je){var ut=Le.page.borderBox;return ro(Le.descriptor.id,je)?Fi(ut,si(je.displacedBy.point)):ut},ba=function(we){var Le=we.pageBorderBoxCenter,je=we.viewport,ut=we.destination,Lt=we.insideDestination,At=we.afterCritical,zt=Lt.filter(function(Kt){return co({target:Us(Kt,At),destination:ut,viewport:je.frame,withDroppableDisplacement:!0})}).sort(function(Kt,_n){var rr=ti(Le,La(ut,da(Kt,At))),Jn=ti(Le,La(ut,da(_n,At)));return rr<Jn?-1:Jn<rr?1:Kt.descriptor.index-_n.descriptor.index});return zt[0]||null},hs=mi(function(Le,je){var ut=je[Le.line];return{value:ut,point:di(Le.line,ut)}}),dl=function(Le,je,ut){var Lt=Le.axis;if(Le.descriptor.mode==="virtual")return di(Lt.line,je[Lt.line]);var At=Le.subject.page.contentBox[Lt.size],zt=_r(Le.descriptor.id,ut),Kt=zt.reduce(function(Jn,Zn){return Jn+Zn.client.marginBox[Lt.size]},0),_n=Kt+je[Lt.line],rr=_n-At;return rr<=0?null:di(Lt.line,rr)},js=function(Le,je){return(0,ke.Z)({},Le,{scroll:(0,ke.Z)({},Le.scroll,{max:je})})},Ka=function(Le,je,ut){var Lt=Le.frame;ht(je,Le)&&Tn(!1),Le.subject.withPlaceholder&&Tn(!1);var At=hs(Le.axis,je.displaceBy).point,zt=dl(Le,At,ut),Kt={placeholderSize:At,increasedBy:zt,oldFrameMaxScroll:Le.frame?Le.frame.scroll.max:null};if(!Lt){var _n=Gi({page:Le.subject.page,withPlaceholder:Kt,axis:Le.axis,frame:Le.frame});return(0,ke.Z)({},Le,{subject:_n})}var rr=zt?ji(Lt.scroll.max,zt):Lt.scroll.max,Jn=js(Lt,rr),Zn=Gi({page:Le.subject.page,withPlaceholder:Kt,axis:Le.axis,frame:Jn});return(0,ke.Z)({},Le,{subject:Zn,frame:Jn})},Zl=function(Le){var je=Le.subject.withPlaceholder;je||Tn(!1);var ut=Le.frame;if(!ut){var Lt=Gi({page:Le.subject.page,axis:Le.axis,frame:null,withPlaceholder:null});return(0,ke.Z)({},Le,{subject:Lt})}var At=je.oldFrameMaxScroll;At||Tn(!1);var zt=js(ut,At),Kt=Gi({page:Le.subject.page,axis:Le.axis,frame:zt,withPlaceholder:null});return(0,ke.Z)({},Le,{subject:Kt,frame:zt})},ac=function(we){var Le=we.previousPageBorderBoxCenter,je=we.moveRelativeTo,ut=we.insideDestination,Lt=we.draggable,At=we.draggables,zt=we.destination,Kt=we.viewport,_n=we.afterCritical;if(!je){if(ut.length)return null;var rr={displaced:wn,displacedBy:xn,at:{type:"REORDER",destination:{droppableId:zt.descriptor.id,index:0}}},Jn=fi({impact:rr,draggable:Lt,droppable:zt,draggables:At,afterCritical:_n}),Zn=ht(Lt,zt)?zt:Ka(zt,Lt,At),Wn=ps({draggable:Lt,destination:Zn,newPageBorderBoxCenter:Jn,viewport:Kt.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return Wn?rr:null}var gr=Le[zt.axis.line]<=je.page.borderBox.center[zt.axis.line],ni=function(){var Yi=je.descriptor.index;return je.descriptor.id===Lt.descriptor.id||gr?Yi:Yi+1}(),Hi=hs(zt.axis,Lt.displaceBy);return so({draggable:Lt,insideDestination:ut,destination:zt,viewport:Kt,displacedBy:Hi,last:wn,index:ni})},hl=function(we){var Le=we.isMovingForward,je=we.previousPageBorderBoxCenter,ut=we.draggable,Lt=we.isOver,At=we.draggables,zt=we.droppables,Kt=we.viewport,_n=we.afterCritical,rr=Uo({isMovingForward:Le,pageBorderBoxCenter:je,source:Lt,droppables:zt,viewport:Kt});if(!rr)return null;var Jn=_r(rr.descriptor.id,At),Zn=ba({pageBorderBoxCenter:je,viewport:Kt,destination:rr,insideDestination:Jn,afterCritical:_n}),Wn=ac({previousPageBorderBoxCenter:je,destination:rr,draggable:ut,draggables:At,moveRelativeTo:Zn,insideDestination:Jn,viewport:Kt,afterCritical:_n});if(!Wn)return null;var gr=fi({impact:Wn,draggable:ut,droppable:rr,draggables:At,afterCritical:_n}),ni=qi({pageBorderBoxCenter:gr,draggable:ut,viewport:Kt});return{clientSelection:ni,impact:Wn,scrollJumpRequest:null}},as=function(we){var Le=we.at;return Le?Le.type==="REORDER"?Le.destination.droppableId:Le.combine.droppableId:null},fl=function(Le,je){var ut=as(Le);return ut?je[ut]:null},xu=function(we){var Le=we.state,je=we.type,ut=fl(Le.impact,Le.dimensions.droppables),Lt=!!ut,At=Le.dimensions.droppables[Le.critical.droppable.id],zt=ut||At,Kt=zt.axis.direction,_n=Kt==="vertical"&&(je==="MOVE_UP"||je==="MOVE_DOWN")||Kt==="horizontal"&&(je==="MOVE_LEFT"||je==="MOVE_RIGHT");if(_n&&!Lt)return null;var rr=je==="MOVE_DOWN"||je==="MOVE_RIGHT",Jn=Le.dimensions.draggables[Le.critical.draggable.id],Zn=Le.current.page.borderBoxCenter,Wn=Le.dimensions,gr=Wn.draggables,ni=Wn.droppables;return _n?Ga({isMovingForward:rr,previousPageBorderBoxCenter:Zn,draggable:Jn,destination:zt,draggables:gr,viewport:Le.viewport,previousClientSelection:Le.current.client.selection,previousImpact:Le.impact,afterCritical:Le.afterCritical}):hl({isMovingForward:rr,previousPageBorderBoxCenter:Zn,draggable:Jn,isOver:zt,draggables:gr,droppables:ni,viewport:Le.viewport,afterCritical:Le.afterCritical})};function Kl(we){return we.phase==="DRAGGING"||we.phase==="COLLECTING"}function sc(we){var Le=On(we.top,we.bottom),je=On(we.left,we.right);return function(Lt){return Le(Lt.y)&&je(Lt.x)}}function ts(we,Le){return we.left<Le.right&&we.right>Le.left&&we.top<Le.bottom&&we.bottom>Le.top}function lc(we){var Le=we.pageBorderBox,je=we.draggable,ut=we.candidates,Lt=je.page.borderBox.center,At=ut.map(function(zt){var Kt=zt.axis,_n=di(zt.axis.line,Le.center[Kt.line],zt.page.borderBox.center[Kt.crossAxisLine]);return{id:zt.descriptor.id,distance:ti(Lt,_n)}}).sort(function(zt,Kt){return Kt.distance-zt.distance});return At[0]?At[0].id:null}function bc(we){var Le=we.pageBorderBox,je=we.draggable,ut=we.droppables,Lt=rt(ut).filter(function(At){if(!At.isEnabled)return!1;var zt=At.subject.active;if(!zt||!ts(Le,zt))return!1;if(sc(zt)(Le.center))return!0;var Kt=At.axis,_n=zt.center[Kt.crossAxisLine],rr=Le[Kt.crossAxisStart],Jn=Le[Kt.crossAxisEnd],Zn=On(zt[Kt.crossAxisStart],zt[Kt.crossAxisEnd]),Wn=Zn(rr),gr=Zn(Jn);return!Wn&&!gr?!0:Wn?rr<_n:Jn>_n});return Lt.length?Lt.length===1?Lt[0].descriptor.id:lc({pageBorderBox:Le,draggable:je,candidates:Lt}):null}var wu=function(Le,je){return vr(Fi(Le,je))},Yu=function(we,Le){var je=we.frame;return je?wu(Le,je.scroll.diff.value):Le};function ks(we){var Le=we.displaced,je=we.id;return!!(Le.visible[je]||Le.invisible[je])}function Vs(we){var Le=we.draggable,je=we.closest,ut=we.inHomeList;return je?ut&&je.descriptor.index>Le.descriptor.index?je.descriptor.index-1:je.descriptor.index:null}var gs=function(we){var Le=we.pageBorderBoxWithDroppableScroll,je=we.draggable,ut=we.destination,Lt=we.insideDestination,At=we.last,zt=we.viewport,Kt=we.afterCritical,_n=ut.axis,rr=hs(ut.axis,je.displaceBy),Jn=rr.value,Zn=Le[_n.start],Wn=Le[_n.end],gr=ri(je,Lt),ni=Ro(gr,function(Yi){var io=Yi.descriptor.id,vo=Yi.page.borderBox.center[_n.line],ko=ro(io,Kt),Po=ks({displaced:At,id:io});return ko?Po?Wn<=vo:Zn<vo-Jn:Po?Wn<=vo+Jn:Zn<vo}),Hi=Vs({draggable:je,closest:ni,inHomeList:ht(je,ut)});return so({draggable:je,insideDestination:Lt,destination:ut,viewport:zt,last:At,displacedBy:rr,index:Hi})},Is=4,Bu=function(we){var Le=we.draggable,je=we.pageBorderBoxWithDroppableScroll,ut=we.previousImpact,Lt=we.destination,At=we.insideDestination,zt=we.afterCritical;if(!Lt.isCombineEnabled)return null;var Kt=Lt.axis,_n=hs(Lt.axis,Le.displaceBy),rr=_n.value,Jn=je[Kt.start],Zn=je[Kt.end],Wn=ri(Le,At),gr=Ro(Wn,function(Hi){var Yi=Hi.descriptor.id,io=Hi.page.borderBox,vo=io[Kt.size],ko=vo/Is,Po=ro(Yi,zt),jo=ks({displaced:ut.displaced,id:Yi});return Po?jo?Zn>io[Kt.start]+ko&&Zn<io[Kt.end]-ko:Jn>io[Kt.start]-rr+ko&&Jn<io[Kt.end]-rr-ko:jo?Zn>io[Kt.start]+rr+ko&&Zn<io[Kt.end]+rr-ko:Jn>io[Kt.start]+ko&&Jn<io[Kt.end]-ko});if(!gr)return null;var ni={displacedBy:_n,displaced:ut.displaced,at:{type:"COMBINE",combine:{draggableId:gr.descriptor.id,droppableId:Lt.descriptor.id}}};return ni},Ws=function(we){var Le=we.pageOffset,je=we.draggable,ut=we.draggables,Lt=we.droppables,At=we.previousImpact,zt=we.viewport,Kt=we.afterCritical,_n=wu(je.page.borderBox,Le),rr=bc({pageBorderBox:_n,draggable:je,droppables:Lt});if(!rr)return jn;var Jn=Lt[rr],Zn=_r(Jn.descriptor.id,ut),Wn=Yu(Jn,_n);return Bu({pageBorderBoxWithDroppableScroll:Wn,draggable:je,previousImpact:At,destination:Jn,insideDestination:Zn,afterCritical:Kt})||gs({pageBorderBoxWithDroppableScroll:Wn,draggable:je,destination:Jn,insideDestination:Zn,last:At.displaced,viewport:zt,afterCritical:Kt})},Sa=function(we,Le){var je;return(0,ke.Z)({},we,(je={},je[Le.descriptor.id]=Le,je))},pa=function(Le){var je=Le.previousImpact,ut=Le.impact,Lt=Le.droppables,At=as(je),zt=as(ut);if(!At||At===zt)return Lt;var Kt=Lt[At];if(!Kt.subject.withPlaceholder)return Lt;var _n=Zl(Kt);return Sa(Lt,_n)},na=function(we){var Le=we.draggable,je=we.draggables,ut=we.droppables,Lt=we.previousImpact,At=we.impact,zt=pa({previousImpact:Lt,impact:At,droppables:ut}),Kt=as(At);if(!Kt)return zt;var _n=ut[Kt];if(ht(Le,_n)||_n.subject.withPlaceholder)return zt;var rr=Ka(_n,Le,je);return Sa(zt,rr)},Ya=function(we){var Le=we.state,je=we.clientSelection,ut=we.dimensions,Lt=we.viewport,At=we.impact,zt=we.scrollJumpRequest,Kt=Lt||Le.viewport,_n=ut||Le.dimensions,rr=je||Le.current.client.selection,Jn=Qn(rr,Le.initial.client.selection),Zn={offset:Jn,selection:rr,borderBoxCenter:ji(Le.initial.client.borderBoxCenter,Jn)},Wn={selection:ji(Zn.selection,Kt.scroll.current),borderBoxCenter:ji(Zn.borderBoxCenter,Kt.scroll.current),offset:ji(Zn.offset,Kt.scroll.diff.value)},gr={client:Zn,page:Wn};if(Le.phase==="COLLECTING")return(0,ke.Z)({phase:"COLLECTING"},Le,{dimensions:_n,viewport:Kt,current:gr});var ni=_n.draggables[Le.critical.draggable.id],Hi=At||Ws({pageOffset:Wn.offset,draggable:ni,draggables:_n.draggables,droppables:_n.droppables,previousImpact:Le.impact,viewport:Kt,afterCritical:Le.afterCritical}),Yi=na({draggable:ni,impact:Hi,previousImpact:Le.impact,draggables:_n.draggables,droppables:_n.droppables}),io=(0,ke.Z)({},Le,{current:gr,dimensions:{draggables:_n.draggables,droppables:Yi},impact:Hi,viewport:Kt,scrollJumpRequest:zt||null,forceShouldAnimate:zt?!1:null});return io};function Mi(we,Le){return we.map(function(je){return Le[je]})}var ms=function(we){var Le=we.impact,je=we.viewport,ut=we.draggables,Lt=we.destination,At=we.forceShouldAnimate,zt=Le.displaced,Kt=Mi(zt.all,ut),_n=bo({afterDragging:Kt,destination:Lt,displacedBy:Le.displacedBy,viewport:je.frame,forceShouldAnimate:At,last:zt});return(0,ke.Z)({},Le,{displaced:_n})},en=function(we){var Le=we.impact,je=we.draggable,ut=we.droppable,Lt=we.draggables,At=we.viewport,zt=we.afterCritical,Kt=fi({impact:Le,draggable:je,draggables:Lt,droppable:ut,afterCritical:zt});return qi({pageBorderBoxCenter:Kt,draggable:je,viewport:At})},Ar=function(we){var Le=we.state,je=we.dimensions,ut=we.viewport;Le.movementMode!=="SNAP"&&Tn(!1);var Lt=Le.impact,At=ut||Le.viewport,zt=je||Le.dimensions,Kt=zt.draggables,_n=zt.droppables,rr=Kt[Le.critical.draggable.id],Jn=as(Lt);Jn||Tn(!1);var Zn=_n[Jn],Wn=ms({impact:Lt,viewport:At,destination:Zn,draggables:Kt}),gr=en({impact:Wn,draggable:rr,droppable:Zn,draggables:Kt,viewport:At,afterCritical:Le.afterCritical});return Ya({impact:Wn,clientSelection:gr,state:Le,dimensions:zt,viewport:At})},Ml=function(we){return{index:we.index,droppableId:we.droppableId}},su=function(we){var Le=we.draggable,je=we.home,ut=we.draggables,Lt=we.viewport,At=hs(je.axis,Le.displaceBy),zt=_r(je.descriptor.id,ut),Kt=zt.indexOf(Le);Kt===-1&&Tn(!1);var _n=zt.slice(Kt+1),rr=_n.reduce(function(gr,ni){return gr[ni.descriptor.id]=!0,gr},{}),Jn={inVirtualList:je.descriptor.mode==="virtual",displacedBy:At,effected:rr},Zn=bo({afterDragging:_n,destination:je,displacedBy:At,last:null,viewport:Lt.frame,forceShouldAnimate:!1}),Wn={displaced:Zn,displacedBy:At,at:{type:"REORDER",destination:Ml(Le.descriptor)}};return{impact:Wn,afterCritical:Jn}},ns=function(we,Le){return{draggables:we.draggables,droppables:Sa(we.droppables,Le)}},rs=function(Le){},Xs=function(Le){},Ol=function(we){var Le=we.draggable,je=we.offset,ut=we.initialWindowScroll,Lt=oi(Le.client,je),At=Oe(Lt,ut),zt=(0,ke.Z)({},Le,{placeholder:(0,ke.Z)({},Le.placeholder,{client:Lt}),client:Lt,page:At});return zt},uc=function(we){var Le=we.frame;return Le||Tn(!1),Le},ja=function(we){var Le=we.additions,je=we.updatedDroppables,ut=we.viewport,Lt=ut.scroll.diff.value;return Le.map(function(At){var zt=At.descriptor.droppableId,Kt=je[zt],_n=uc(Kt),rr=_n.scroll.diff.value,Jn=ji(Lt,rr),Zn=Ol({draggable:At,offset:Jn,initialWindowScroll:ut.scroll.initial});return Zn})},To=function(we){var Le=we.state,je=we.published;rs();var ut=je.modified.map(function(ko){var Po=Le.dimensions.droppables[ko.droppableId],jo=Ui(Po,ko.scroll);return jo}),Lt=(0,ke.Z)({},Le.dimensions.droppables,{},pr(ut)),At=Ln(ja({additions:je.additions,updatedDroppables:Lt,viewport:Le.viewport})),zt=(0,ke.Z)({},Le.dimensions.draggables,{},At);je.removals.forEach(function(ko){delete zt[ko]});var Kt={droppables:Lt,draggables:zt},_n=as(Le.impact),rr=_n?Kt.droppables[_n]:null,Jn=Kt.draggables[Le.critical.draggable.id],Zn=Kt.droppables[Le.critical.droppable.id],Wn=su({draggable:Jn,home:Zn,draggables:zt,viewport:Le.viewport}),gr=Wn.impact,ni=Wn.afterCritical,Hi=rr&&rr.isCombineEnabled?Le.impact:gr,Yi=Ws({pageOffset:Le.current.page.offset,draggable:Kt.draggables[Le.critical.draggable.id],draggables:Kt.draggables,droppables:Kt.droppables,previousImpact:Hi,viewport:Le.viewport,afterCritical:ni});Xs();var io=(0,ke.Z)({phase:"DRAGGING"},Le,{phase:"DRAGGING",impact:Yi,onLiftImpact:gr,dimensions:Kt,afterCritical:ni,forceShouldAnimate:!1});if(Le.phase==="COLLECTING")return io;var vo=(0,ke.Z)({phase:"DROP_PENDING"},io,{phase:"DROP_PENDING",reason:Le.reason,isWaiting:!1});return vo},Ps=function(Le){return Le.movementMode==="SNAP"},Zs=function(Le,je,ut){var Lt=ns(Le.dimensions,je);return!Ps(Le)||ut?Ya({state:Le,dimensions:Lt}):Ar({state:Le,dimensions:Lt})};function oa(we){return we.isDragging&&we.movementMode==="SNAP"?(0,ke.Z)({phase:"DRAGGING"},we,{scrollJumpRequest:null}):we}var Zo={phase:"IDLE",completed:null,shouldFlush:!1},Xa=function(we,Le){if(we===void 0&&(we=Zo),Le.type==="FLUSH")return(0,ke.Z)({},Zo,{shouldFlush:!0});if(Le.type==="INITIAL_PUBLISH"){we.phase!=="IDLE"&&Tn(!1);var je=Le.payload,ut=je.critical,Lt=je.clientSelection,At=je.viewport,zt=je.dimensions,Kt=je.movementMode,_n=zt.draggables[ut.draggable.id],rr=zt.droppables[ut.droppable.id],Jn={selection:Lt,borderBoxCenter:_n.client.borderBox.center,offset:Ci},Zn={client:Jn,page:{selection:ji(Jn.selection,At.scroll.initial),borderBoxCenter:ji(Jn.selection,At.scroll.initial),offset:ji(Jn.selection,At.scroll.diff.value)}},Wn=rt(zt.droppables).every(function(_f){return!_f.isFixedOnPage}),gr=su({draggable:_n,home:rr,draggables:zt.draggables,viewport:At}),ni=gr.impact,Hi=gr.afterCritical,Yi={phase:"DRAGGING",isDragging:!0,critical:ut,movementMode:Kt,dimensions:zt,initial:Zn,current:Zn,isWindowScrollAllowed:Wn,impact:ni,afterCritical:Hi,onLiftImpact:ni,viewport:At,scrollJumpRequest:null,forceShouldAnimate:null};return Yi}if(Le.type==="COLLECTION_STARTING"){if(we.phase==="COLLECTING"||we.phase==="DROP_PENDING")return we;we.phase!=="DRAGGING"&&Tn(!1);var io=(0,ke.Z)({phase:"COLLECTING"},we,{phase:"COLLECTING"});return io}if(Le.type==="PUBLISH_WHILE_DRAGGING")return we.phase==="COLLECTING"||we.phase==="DROP_PENDING"||Tn(!1),To({state:we,published:Le.payload});if(Le.type==="MOVE"){if(we.phase==="DROP_PENDING")return we;Kl(we)||Tn(!1);var vo=Le.payload.client;return zr(vo,we.current.client.selection)?we:Ya({state:we,clientSelection:vo,impact:Ps(we)?we.impact:null})}if(Le.type==="UPDATE_DROPPABLE_SCROLL"){if(we.phase==="DROP_PENDING"||we.phase==="COLLECTING")return oa(we);Kl(we)||Tn(!1);var ko=Le.payload,Po=ko.id,jo=ko.newScroll,Ea=we.dimensions.droppables[Po];if(!Ea)return we;var Ua=Ui(Ea,jo);return Zs(we,Ua,!1)}if(Le.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(we.phase==="DROP_PENDING")return we;Kl(we)||Tn(!1);var bl=Le.payload,Oa=bl.id,ul=bl.isEnabled,vu=we.dimensions.droppables[Oa];vu||Tn(!1),vu.isEnabled===ul&&Tn(!1);var ku=(0,ke.Z)({},vu,{isEnabled:ul});return Zs(we,ku,!0)}if(Le.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(we.phase==="DROP_PENDING")return we;Kl(we)||Tn(!1);var qc=Le.payload,fc=qc.id,tc=qc.isCombineEnabled,Gl=we.dimensions.droppables[fc];Gl||Tn(!1),Gl.isCombineEnabled===tc&&Tn(!1);var Ys=(0,ke.Z)({},Gl,{isCombineEnabled:tc});return Zs(we,Ys,!0)}if(Le.type==="MOVE_BY_WINDOW_SCROLL"){if(we.phase==="DROP_PENDING"||we.phase==="DROP_ANIMATING")return we;Kl(we)||Tn(!1),we.isWindowScrollAllowed||Tn(!1);var gd=Le.payload.newScroll;if(zr(we.viewport.scroll.current,gd))return oa(we);var cl=Ji(we.viewport,gd);return Ps(we)?Ar({state:we,viewport:cl}):Ya({state:we,viewport:cl})}if(Le.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Kl(we))return we;var $c=Le.payload.maxScroll;if(zr($c,we.viewport.scroll.max))return we;var $h=(0,ke.Z)({},we.viewport,{scroll:(0,ke.Z)({},we.viewport.scroll,{max:$c})});return(0,ke.Z)({phase:"DRAGGING"},we,{viewport:$h})}if(Le.type==="MOVE_UP"||Le.type==="MOVE_DOWN"||Le.type==="MOVE_LEFT"||Le.type==="MOVE_RIGHT"){if(we.phase==="COLLECTING"||we.phase==="DROP_PENDING")return we;we.phase!=="DRAGGING"&&Tn(!1);var ed=xu({state:we,type:Le.type});return ed?Ya({state:we,impact:ed.impact,clientSelection:ed.clientSelection,scrollJumpRequest:ed.scrollJumpRequest}):we}if(Le.type==="DROP_PENDING"){var Fo=Le.payload.reason;we.phase!=="COLLECTING"&&Tn(!1);var wh=(0,ke.Z)({phase:"DROP_PENDING"},we,{phase:"DROP_PENDING",isWaiting:!0,reason:Fo});return wh}if(Le.type==="DROP_ANIMATE"){var Cp=Le.payload,td=Cp.completed,Id=Cp.dropDuration,th=Cp.newHomeClientOffset;we.phase==="DRAGGING"||we.phase==="DROP_PENDING"||Tn(!1);var nc={phase:"DROP_ANIMATING",completed:td,dropDuration:Id,newHomeClientOffset:th,dimensions:we.dimensions};return nc}if(Le.type==="DROP_COMPLETE"){var Bf=Le.payload.completed;return{phase:"IDLE",completed:Bf,shouldFlush:!1}}return we},pl=function(Le){return{type:"BEFORE_INITIAL_CAPTURE",payload:Le}},Da=function(Le){return{type:"LIFT",payload:Le}},wl=function(Le){return{type:"INITIAL_PUBLISH",payload:Le}},Ts=function(Le){return{type:"PUBLISH_WHILE_DRAGGING",payload:Le}},_u=function(){return{type:"COLLECTION_STARTING",payload:null}},ga=function(Le){return{type:"UPDATE_DROPPABLE_SCROLL",payload:Le}},Ds=function(Le){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:Le}},aa=function(Le){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:Le}},Pa=function(Le){return{type:"MOVE",payload:Le}},ka=function(Le){return{type:"MOVE_BY_WINDOW_SCROLL",payload:Le}},Va=function(Le){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:Le}},ea=function(){return{type:"MOVE_UP",payload:null}},cc=function(){return{type:"MOVE_DOWN",payload:null}},Eo=function(){return{type:"MOVE_RIGHT",payload:null}},dd=function(){return{type:"MOVE_LEFT",payload:null}},ra=function(){return{type:"FLUSH",payload:null}},Vc=function(Le){return{type:"DROP_ANIMATE",payload:Le}},Cu=function(Le){return{type:"DROP_COMPLETE",payload:Le}},lu=function(Le){return{type:"DROP",payload:Le}},Wc=function(Le){return{type:"DROP_PENDING",payload:Le}},Ec=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function uu(we){if(!(we.length<=1)){for(var Le=we.map(function(Kt){return Kt.descriptor.index}),je={},ut=1;ut<Le.length;ut++){var Lt=Le[ut],At=Le[ut-1];Lt!==At+1&&(je[Lt]=!0)}if(Object.keys(je).length)var zt=Le.map(function(Kt){var _n=!!je[Kt];return _n?"[\u{1F525}"+Kt+"]":""+Kt}).join(", ")}}function Yl(we,Le){if(0)var je}var sa=function(we){return function(Le){var je=Le.getState,ut=Le.dispatch;return function(Lt){return function(At){if(At.type!=="LIFT"){Lt(At);return}var zt=At.payload,Kt=zt.id,_n=zt.clientSelection,rr=zt.movementMode,Jn=je();Jn.phase==="DROP_ANIMATING"&&ut(Cu({completed:Jn.completed})),je().phase!=="IDLE"&&Tn(!1),ut(ra()),ut(pl({draggableId:Kt,movementMode:rr}));var Zn={shouldPublishImmediately:rr==="SNAP"},Wn={draggableId:Kt,scrollOptions:Zn},gr=we.startPublishing(Wn),ni=gr.critical,Hi=gr.dimensions,Yi=gr.viewport;Yl(ni,Hi),ut(wl({critical:ni,dimensions:Hi,clientSelection:_n,movementMode:rr,viewport:Yi}))}}}},Qs=function(we){return function(){return function(Le){return function(je){je.type==="INITIAL_PUBLISH"&&we.dragging(),je.type==="DROP_ANIMATE"&&we.dropping(je.payload.completed.result.reason),(je.type==="FLUSH"||je.type==="DROP_COMPLETE")&&we.resting(),Le(je)}}}},Uu={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},gl={opacity:{drop:0,combining:.7},scale:{drop:.75}},Xl={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},il=Xl.outOfTheWay+"s "+Uu.outOfTheWay,Vo={fluid:"opacity "+il,snap:"transform "+il+", opacity "+il,drop:function(Le){var je=Le+"s "+Uu.drop;return"transform "+je+", opacity "+je},outOfTheWay:"transform "+il,placeholder:"height "+il+", width "+il+", margin "+il},ha=function(Le){return zr(Le,Ci)?null:"translate("+Le.x+"px, "+Le.y+"px)"},Ha={moveTo:ha,drop:function(Le,je){var ut=ha(Le);return ut?je?ut+" scale("+gl.scale.drop+")":ut:null}},As=Xl.minDropTime,vs=Xl.maxDropTime,Fl=vs-As,Nl=1500,Bl=.6,Ll=function(we){var Le=we.current,je=we.destination,ut=we.reason,Lt=ti(Le,je);if(Lt<=0)return As;if(Lt>=Nl)return vs;var At=Lt/Nl,zt=As+Fl*At,Kt=ut==="CANCEL"?zt*Bl:zt;return Number(Kt.toFixed(2))},cu=function(we){var Le=we.impact,je=we.draggable,ut=we.dimensions,Lt=we.viewport,At=we.afterCritical,zt=ut.draggables,Kt=ut.droppables,_n=as(Le),rr=_n?Kt[_n]:null,Jn=Kt[je.descriptor.droppableId],Zn=en({impact:Le,draggable:je,draggables:zt,afterCritical:At,droppable:rr||Jn,viewport:Lt}),Wn=Qn(Zn,je.client.borderBox.center);return Wn},xd=function(we){var Le=we.draggables,je=we.reason,ut=we.lastImpact,Lt=we.home,At=we.viewport,zt=we.onLiftImpact;if(!ut.at||je!=="DROP"){var Kt=ms({draggables:Le,impact:zt,destination:Lt,viewport:At,forceShouldAnimate:!0});return{impact:Kt,didDropInsideDroppable:!1}}if(ut.at.type==="REORDER")return{impact:ut,didDropInsideDroppable:!0};var _n=(0,ke.Z)({},ut,{displaced:wn});return{impact:_n,didDropInsideDroppable:!0}},hh=function(we){var Le=we.getState,je=we.dispatch;return function(ut){return function(Lt){if(Lt.type!=="DROP"){ut(Lt);return}var At=Le(),zt=Lt.payload.reason;if(At.phase==="COLLECTING"){je(Wc({reason:zt}));return}if(At.phase!=="IDLE"){var Kt=At.phase==="DROP_PENDING"&&At.isWaiting;Kt&&Tn(!1),At.phase==="DRAGGING"||At.phase==="DROP_PENDING"||Tn(!1);var _n=At.critical,rr=At.dimensions,Jn=rr.draggables[At.critical.draggable.id],Zn=xd({reason:zt,lastImpact:At.impact,afterCritical:At.afterCritical,onLiftImpact:At.onLiftImpact,home:At.dimensions.droppables[At.critical.droppable.id],viewport:At.viewport,draggables:At.dimensions.draggables}),Wn=Zn.impact,gr=Zn.didDropInsideDroppable,ni=gr?pi(Wn):null,Hi=gr?hi(Wn):null,Yi={index:_n.draggable.index,droppableId:_n.droppable.id},io={draggableId:Jn.descriptor.id,type:Jn.descriptor.type,source:Yi,reason:zt,mode:At.movementMode,destination:ni,combine:Hi},vo=cu({impact:Wn,draggable:Jn,dimensions:rr,viewport:At.viewport,afterCritical:At.afterCritical}),ko={critical:At.critical,afterCritical:At.afterCritical,result:io,impact:Wn},Po=!zr(At.current.client.offset,vo)||!!io.combine;if(!Po){je(Cu({completed:ko}));return}var jo=Ll({current:At.current.client.offset,destination:vo,reason:zt}),Ea={newHomeClientOffset:vo,dropDuration:jo,completed:ko};je(Vc(Ea))}}}},jd=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function fh(we){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(je){je.target!==window&&je.target!==window.document||we()}}}function ys(we){var Le=we.onWindowScroll;function je(){Le(jd())}var ut=hn(je),Lt=fh(ut),At=xt;function zt(){return At!==xt}function Kt(){zt()&&Tn(!1),At=br(window,[Lt])}function _n(){zt()||Tn(!1),ut.cancel(),At(),At=xt}return{start:Kt,stop:_n,isActive:zt}}var dc=function(Le){return Le.type==="DROP_COMPLETE"||Le.type==="DROP_ANIMATE"||Le.type==="FLUSH"},Na=function(we){var Le=ys({onWindowScroll:function(ut){we.dispatch(ka({newScroll:ut}))}});return function(je){return function(ut){!Le.isActive()&&ut.type==="INITIAL_PUBLISH"&&Le.start(),Le.isActive()&&dc(ut)&&Le.stop(),je(ut)}}},Hs=function(we){var Le=!1,je=!1,ut=setTimeout(function(){je=!0}),Lt=function(zt){Le||je||(Le=!0,we(zt),clearTimeout(ut))};return Lt.wasCalled=function(){return Le},Lt},Js=function(){var we=[],Le=function(At){var zt=Qi(we,function(rr){return rr.timerId===At});zt===-1&&Tn(!1);var Kt=we.splice(zt,1),_n=Kt[0];_n.callback()},je=function(At){var zt=setTimeout(function(){return Le(zt)}),Kt={timerId:zt,callback:At};we.push(Kt)},ut=function(){if(we.length){var At=[].concat(we);we.length=0,At.forEach(function(zt){clearTimeout(zt.timerId),zt.callback()})}};return{add:je,flush:ut}},Ks=function(Le,je){return Le==null&&je==null?!0:Le==null||je==null?!1:Le.droppableId===je.droppableId&&Le.index===je.index},xc=function(Le,je){return Le==null&&je==null?!0:Le==null||je==null?!1:Le.draggableId===je.draggableId&&Le.droppableId===je.droppableId},ol=function(Le,je){if(Le===je)return!0;var ut=Le.draggable.id===je.draggable.id&&Le.draggable.droppableId===je.draggable.droppableId&&Le.draggable.type===je.draggable.type&&Le.draggable.index===je.draggable.index,Lt=Le.droppable.id===je.droppable.id&&Le.droppable.type===je.droppable.type;return ut&&Lt},du=function(Le,je){rs(),je(),Xs()},Ic=function(Le,je){return{draggableId:Le.draggable.id,type:Le.droppable.type,source:{droppableId:Le.droppable.id,index:Le.draggable.index},mode:je}},Zc=function(Le,je,ut,Lt){if(!Le){ut(Lt(je));return}var At=Hs(ut),zt={announce:At};Le(je,zt),At.wasCalled()||ut(Lt(je))},kl=function(we,Le){var je=Js(),ut=null,Lt=function(Wn,gr){ut&&Tn(!1),du("onBeforeCapture",function(){var ni=we().onBeforeCapture;if(ni){var Hi={draggableId:Wn,mode:gr};ni(Hi)}})},At=function(Wn,gr){ut&&Tn(!1),du("onBeforeDragStart",function(){var ni=we().onBeforeDragStart;ni&&ni(Ic(Wn,gr))})},zt=function(Wn,gr){ut&&Tn(!1);var ni=Ic(Wn,gr);ut={mode:gr,lastCritical:Wn,lastLocation:ni.source,lastCombine:null},je.add(function(){du("onDragStart",function(){return Zc(we().onDragStart,ni,Le,cn.onDragStart)})})},Kt=function(Wn,gr){var ni=pi(gr),Hi=hi(gr);ut||Tn(!1);var Yi=!ol(Wn,ut.lastCritical);Yi&&(ut.lastCritical=Wn);var io=!Ks(ut.lastLocation,ni);io&&(ut.lastLocation=ni);var vo=!xc(ut.lastCombine,Hi);if(vo&&(ut.lastCombine=Hi),!(!Yi&&!io&&!vo)){var ko=(0,ke.Z)({},Ic(Wn,ut.mode),{combine:Hi,destination:ni});je.add(function(){du("onDragUpdate",function(){return Zc(we().onDragUpdate,ko,Le,cn.onDragUpdate)})})}},_n=function(){ut||Tn(!1),je.flush()},rr=function(Wn){ut||Tn(!1),ut=null,du("onDragEnd",function(){return Zc(we().onDragEnd,Wn,Le,cn.onDragEnd)})},Jn=function(){if(ut){var Wn=(0,ke.Z)({},Ic(ut.lastCritical,ut.mode),{combine:null,destination:null,reason:"CANCEL"});rr(Wn)}};return{beforeCapture:Lt,beforeStart:At,start:zt,update:Kt,flush:_n,drop:rr,abort:Jn}},Ce=function(we,Le){var je=kl(we,Le);return function(ut){return function(Lt){return function(At){if(At.type==="BEFORE_INITIAL_CAPTURE"){je.beforeCapture(At.payload.draggableId,At.payload.movementMode);return}if(At.type==="INITIAL_PUBLISH"){var zt=At.payload.critical;je.beforeStart(zt,At.payload.movementMode),Lt(At),je.start(zt,At.payload.movementMode);return}if(At.type==="DROP_COMPLETE"){var Kt=At.payload.completed.result;je.flush(),Lt(At),je.drop(Kt);return}if(Lt(At),At.type==="FLUSH"){je.abort();return}var _n=ut.getState();_n.phase==="DRAGGING"&&je.update(_n.critical,_n.impact)}}}},Qe=function(we){return function(Le){return function(je){if(je.type!=="DROP_ANIMATION_FINISHED"){Le(je);return}var ut=we.getState();ut.phase!=="DROP_ANIMATING"&&Tn(!1),we.dispatch(Cu({completed:ut.completed}))}}},tt=function(we){var Le=null,je=null;function ut(){je&&(cancelAnimationFrame(je),je=null),Le&&(Le(),Le=null)}return function(Lt){return function(At){if((At.type==="FLUSH"||At.type==="DROP_COMPLETE"||At.type==="DROP_ANIMATION_FINISHED")&&ut(),Lt(At),At.type==="DROP_ANIMATE"){var zt={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var _n=we.getState();_n.phase==="DROP_ANIMATING"&&we.dispatch(Ec())}};je=requestAnimationFrame(function(){je=null,Le=br(window,[zt])})}}}},pt=function(we){return function(){return function(Le){return function(je){(je.type==="DROP_COMPLETE"||je.type==="FLUSH"||je.type==="DROP_ANIMATE")&&we.stopPublishing(),Le(je)}}}},Ft=function(we){var Le=!1;return function(){return function(je){return function(ut){if(ut.type==="INITIAL_PUBLISH"){Le=!0,we.tryRecordFocus(ut.payload.critical.draggable.id),je(ut),we.tryRestoreFocusRecorded();return}if(je(ut),!!Le){if(ut.type==="FLUSH"){Le=!1,we.tryRestoreFocusRecorded();return}if(ut.type==="DROP_COMPLETE"){Le=!1;var Lt=ut.payload.completed.result;Lt.combine&&we.tryShiftRecord(Lt.draggableId,Lt.combine.draggableId),we.tryRestoreFocusRecorded()}}}}}},Ut=function(Le){return Le.type==="DROP_COMPLETE"||Le.type==="DROP_ANIMATE"||Le.type==="FLUSH"},an=function(we){return function(Le){return function(je){return function(ut){if(Ut(ut)){we.stop(),je(ut);return}if(ut.type==="INITIAL_PUBLISH"){je(ut);var Lt=Le.getState();Lt.phase!=="DRAGGING"&&Tn(!1),we.start(Lt);return}je(ut),we.scroll(Le.getState())}}}},Nn=function(we){return function(Le){return function(je){if(Le(je),je.type==="PUBLISH_WHILE_DRAGGING"){var ut=we.getState();ut.phase==="DROP_PENDING"&&(ut.isWaiting||we.dispatch(lu({reason:ut.reason})))}}}},Sr=Ve.qC,xr=function(we){var Le=we.dimensionMarshal,je=we.focusMarshal,ut=we.styleMarshal,Lt=we.getResponders,At=we.announce,zt=we.autoScroller;return(0,Ve.MT)(Xa,Sr((0,Ve.md)(Qs(ut),pt(Le),sa(Le),hh,Qe,tt,Nn,an(zt),Na,Ft(je),Ce(Lt,At))))},tr=function(){return{additions:{},removals:{},modified:{}}};function Zr(we){var Le=we.registry,je=we.callbacks,ut=tr(),Lt=null,At=function(){Lt||(je.collectionStarting(),Lt=requestAnimationFrame(function(){Lt=null,rs();var Jn=ut,Zn=Jn.additions,Wn=Jn.removals,gr=Jn.modified,ni=Object.keys(Zn).map(function(io){return Le.draggable.getById(io).getDimension(Ci)}).sort(function(io,vo){return io.descriptor.index-vo.descriptor.index}),Hi=Object.keys(gr).map(function(io){var vo=Le.droppable.getById(io),ko=vo.callbacks.getScrollWhileDragging();return{droppableId:io,scroll:ko}}),Yi={additions:ni,removals:Object.keys(Wn),modified:Hi};ut=tr(),Xs(),je.publish(Yi)}))},zt=function(Jn){var Zn=Jn.descriptor.id;ut.additions[Zn]=Jn,ut.modified[Jn.descriptor.droppableId]=!0,ut.removals[Zn]&&delete ut.removals[Zn],At()},Kt=function(Jn){var Zn=Jn.descriptor;ut.removals[Zn.id]=!0,ut.modified[Zn.droppableId]=!0,ut.additions[Zn.id]&&delete ut.additions[Zn.id],At()},_n=function(){Lt&&(cancelAnimationFrame(Lt),Lt=null,ut=tr())};return{add:zt,remove:Kt,stop:_n}}var Mr=function(we){var Le=we.scrollHeight,je=we.scrollWidth,ut=we.height,Lt=we.width,At=Qn({x:je,y:Le},{x:Lt,y:ut}),zt={x:Math.max(0,At.x),y:Math.max(0,At.y)};return zt},lr=function(){var we=document.documentElement;return we||Tn(!1),we},Ao=function(){var we=lr(),Le=Mr({scrollHeight:we.scrollHeight,scrollWidth:we.scrollWidth,width:we.clientWidth,height:we.clientHeight});return Le},Go=function(){var we=jd(),Le=Ao(),je=we.y,ut=we.x,Lt=lr(),At=Lt.clientWidth,zt=Lt.clientHeight,Kt=ut+At,_n=je+zt,rr=vr({top:je,left:ut,right:Kt,bottom:_n}),Jn={frame:rr,scroll:{initial:we,current:we,max:Le,diff:{value:Ci,displacement:Ci}}};return Jn},ta=function(we){var Le=we.critical,je=we.scrollOptions,ut=we.registry;rs();var Lt=Go(),At=Lt.scroll.current,zt=Le.droppable,Kt=ut.droppable.getAllByType(zt.type).map(function(Zn){return Zn.callbacks.getDimensionAndWatchScroll(At,je)}),_n=ut.draggable.getAllByType(Le.draggable.type).map(function(Zn){return Zn.getDimension(At)}),rr={draggables:Ln(_n),droppables:pr(Kt)};Xs();var Jn={dimensions:rr,critical:Le,viewport:Lt};return Jn};function ao(we,Le,je){if(je.descriptor.id===Le.id||je.descriptor.type!==Le.type)return!1;var ut=we.droppable.getById(je.descriptor.droppableId);return ut.descriptor.mode==="virtual"}var Do=function(we,Le){var je=null,ut=Zr({callbacks:{publish:Le.publishWhileDragging,collectionStarting:Le.collectionStarting},registry:we}),Lt=function(gr,ni){we.droppable.exists(gr)||Tn(!1),je&&Le.updateDroppableIsEnabled({id:gr,isEnabled:ni})},At=function(gr,ni){je&&(we.droppable.exists(gr)||Tn(!1),Le.updateDroppableIsCombineEnabled({id:gr,isCombineEnabled:ni}))},zt=function(gr,ni){je&&(we.droppable.exists(gr)||Tn(!1),Le.updateDroppableScroll({id:gr,newScroll:ni}))},Kt=function(gr,ni){je&&we.droppable.getById(gr).callbacks.scroll(ni)},_n=function(){if(je){ut.stop();var gr=je.critical.droppable;we.droppable.getAllByType(gr.type).forEach(function(ni){return ni.callbacks.dragStopped()}),je.unsubscribe(),je=null}},rr=function(gr){je||Tn(!1);var ni=je.critical.draggable;gr.type==="ADDITION"&&ao(we,ni,gr.value)&&ut.add(gr.value),gr.type==="REMOVAL"&&ao(we,ni,gr.value)&&ut.remove(gr.value)},Jn=function(gr){je&&Tn(!1);var ni=we.draggable.getById(gr.draggableId),Hi=we.droppable.getById(ni.descriptor.droppableId),Yi={draggable:ni.descriptor,droppable:Hi.descriptor},io=we.subscribe(rr);return je={critical:Yi,unsubscribe:io},ta({critical:Yi,registry:we,scrollOptions:gr.scrollOptions})},Zn={updateDroppableIsEnabled:Lt,updateDroppableIsCombineEnabled:At,scrollDroppable:Kt,updateDroppableScroll:zt,startPublishing:Jn,stopPublishing:_n};return Zn},Bo=function(we,Le){return we.phase==="IDLE"?!0:we.phase!=="DROP_ANIMATING"||we.completed.result.draggableId===Le?!1:we.completed.result.reason==="DROP"},Qa=function(we){window.scrollBy(we.x,we.y)},Ja=mi(function(we){return rt(we).filter(function(Le){return!(!Le.isEnabled||!Le.frame)})}),Ki=function(Le,je){var ut=Ro(Ja(je),function(Lt){return Lt.frame||Tn(!1),sc(Lt.frame.pageMarginBox)(Le)});return ut},es=function(we){var Le=we.center,je=we.destination,ut=we.droppables;if(je){var Lt=ut[je];return Lt.frame?Lt:null}var At=Ki(Le,ut);return At},Wa={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(Le){return Math.pow(Le,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},za=function(we,Le){var je=we[Le.size]*Wa.startFromPercentage,ut=we[Le.size]*Wa.maxScrollAtPercentage,Lt={startScrollingFrom:je,maxScrollValueAt:ut};return Lt},Co=function(we){var Le=we.startOfRange,je=we.endOfRange,ut=we.current,Lt=je-Le;if(Lt===0)return 0;var At=ut-Le,zt=At/Lt;return zt},ml=1,ss=function(we,Le){if(we>Le.startScrollingFrom)return 0;if(we<=Le.maxScrollValueAt)return Wa.maxPixelScroll;if(we===Le.startScrollingFrom)return ml;var je=Co({startOfRange:Le.maxScrollValueAt,endOfRange:Le.startScrollingFrom,current:we}),ut=1-je,Lt=Wa.maxPixelScroll*Wa.ease(ut);return Math.ceil(Lt)},Qo=Wa.durationDampening.accelerateAt,Ko=Wa.durationDampening.stopDampeningAt,wa=function(we,Le){var je=Le,ut=Ko,Lt=Date.now(),At=Lt-je;if(At>=Ko)return we;if(At<Qo)return ml;var zt=Co({startOfRange:Qo,endOfRange:ut,current:At}),Kt=we*Wa.ease(zt);return Math.ceil(Kt)},fs=function(we){var Le=we.distanceToEdge,je=we.thresholds,ut=we.dragStartTime,Lt=we.shouldUseTimeDampening,At=ss(Le,je);return At===0?0:Lt?Math.max(wa(At,ut),ml):At},qs=function(we){var Le=we.container,je=we.distanceToEdges,ut=we.dragStartTime,Lt=we.axis,At=we.shouldUseTimeDampening,zt=za(Le,Lt),Kt=je[Lt.end]<je[Lt.start];return Kt?fs({distanceToEdge:je[Lt.end],thresholds:zt,dragStartTime:ut,shouldUseTimeDampening:At}):-1*fs({distanceToEdge:je[Lt.start],thresholds:zt,dragStartTime:ut,shouldUseTimeDampening:At})},Cl=function(we){var Le=we.container,je=we.subject,ut=we.proposedScroll,Lt=je.height>Le.height,At=je.width>Le.width;return!At&&!Lt?ut:At&&Lt?null:{x:At?0:ut.x,y:Lt?0:ut.y}},Ql=Bi(function(we){return we===0?0:we}),Pr=function(we){var Le=we.dragStartTime,je=we.container,ut=we.subject,Lt=we.center,At=we.shouldUseTimeDampening,zt={top:Lt.y-je.top,right:je.right-Lt.x,bottom:je.bottom-Lt.y,left:Lt.x-je.left},Kt=qs({container:je,distanceToEdges:zt,dragStartTime:Le,axis:ln,shouldUseTimeDampening:At}),_n=qs({container:je,distanceToEdges:zt,dragStartTime:Le,axis:qn,shouldUseTimeDampening:At}),rr=Ql({x:_n,y:Kt});if(zr(rr,Ci))return null;var Jn=Cl({container:je,subject:ut,proposedScroll:rr});return Jn?zr(Jn,Ci)?null:Jn:null},Il=Bi(function(we){return we===0?0:we>0?1:-1}),_l=function(){var we=function(je,ut){return je<0?je:je>ut?je-ut:0};return function(Le){var je=Le.current,ut=Le.max,Lt=Le.change,At=ji(je,Lt),zt={x:we(At.x,ut.x),y:we(At.y,ut.y)};return zr(zt,Ci)?null:zt}}(),Ir=function(Le){var je=Le.max,ut=Le.current,Lt=Le.change,At={x:Math.max(ut.x,je.x),y:Math.max(ut.y,je.y)},zt=Il(Lt),Kt=_l({max:At,current:ut,change:zt});return!Kt||zt.x!==0&&Kt.x===0||zt.y!==0&&Kt.y===0},al=function(Le,je){return Ir({current:Le.scroll.current,max:Le.scroll.max,change:je})},Pu=function(Le,je){if(!al(Le,je))return null;var ut=Le.scroll.max,Lt=Le.scroll.current;return _l({current:Lt,max:ut,change:je})},hu=function(Le,je){var ut=Le.frame;return ut?Ir({current:ut.scroll.current,max:ut.scroll.max,change:je}):!1},$s=function(Le,je){var ut=Le.frame;return!ut||!hu(Le,je)?null:_l({current:ut.scroll.current,max:ut.scroll.max,change:je})},Ss=function(we){var Le=we.viewport,je=we.subject,ut=we.center,Lt=we.dragStartTime,At=we.shouldUseTimeDampening,zt=Pr({dragStartTime:Lt,container:Le.frame,subject:je,center:ut,shouldUseTimeDampening:At});return zt&&al(Le,zt)?zt:null},fu=function(we){var Le=we.droppable,je=we.subject,ut=we.center,Lt=we.dragStartTime,At=we.shouldUseTimeDampening,zt=Le.frame;if(!zt)return null;var Kt=Pr({dragStartTime:Lt,container:zt.pageMarginBox,subject:je,center:ut,shouldUseTimeDampening:At});return Kt&&hu(Le,Kt)?Kt:null},sl=function(we){var Le=we.state,je=we.dragStartTime,ut=we.shouldUseTimeDampening,Lt=we.scrollWindow,At=we.scrollDroppable,zt=Le.current.page.borderBoxCenter,Kt=Le.dimensions.draggables[Le.critical.draggable.id],_n=Kt.page.marginBox;if(Le.isWindowScrollAllowed){var rr=Le.viewport,Jn=Ss({dragStartTime:je,viewport:rr,subject:_n,center:zt,shouldUseTimeDampening:ut});if(Jn){Lt(Jn);return}}var Zn=es({center:zt,destination:as(Le.impact),droppables:Le.dimensions.droppables});if(Zn){var Wn=fu({dragStartTime:je,droppable:Zn,subject:_n,center:zt,shouldUseTimeDampening:ut});Wn&&At(Zn.descriptor.id,Wn)}},Xu=function(we){var Le=we.scrollWindow,je=we.scrollDroppable,ut=hn(Le),Lt=hn(je),At=null,zt=function(Jn){At||Tn(!1);var Zn=At,Wn=Zn.shouldUseTimeDampening,gr=Zn.dragStartTime;sl({state:Jn,scrollWindow:ut,scrollDroppable:Lt,dragStartTime:gr,shouldUseTimeDampening:Wn})},Kt=function(Jn){rs(),At&&Tn(!1);var Zn=Date.now(),Wn=!1,gr=function(){Wn=!0};sl({state:Jn,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:gr,scrollDroppable:gr}),At={dragStartTime:Zn,shouldUseTimeDampening:Wn},Xs(),Wn&&zt(Jn)},_n=function(){At&&(ut.cancel(),Lt.cancel(),At=null)};return{start:Kt,stop:_n,scroll:zt}},hc=function(we){var Le=we.move,je=we.scrollDroppable,ut=we.scrollWindow,Lt=function(rr,Jn){var Zn=ji(rr.current.client.selection,Jn);Le({client:Zn})},At=function(rr,Jn){if(!hu(rr,Jn))return Jn;var Zn=$s(rr,Jn);if(!Zn)return je(rr.descriptor.id,Jn),null;var Wn=Qn(Jn,Zn);je(rr.descriptor.id,Wn);var gr=Qn(Jn,Wn);return gr},zt=function(rr,Jn,Zn){if(!rr||!al(Jn,Zn))return Zn;var Wn=Pu(Jn,Zn);if(!Wn)return ut(Zn),null;var gr=Qn(Zn,Wn);ut(gr);var ni=Qn(Zn,gr);return ni},Kt=function(rr){var Jn=rr.scrollJumpRequest;if(Jn){var Zn=as(rr.impact);Zn||Tn(!1);var Wn=At(rr.dimensions.droppables[Zn],Jn);if(Wn){var gr=rr.viewport,ni=zt(rr.isWindowScrollAllowed,gr,Wn);ni&&Lt(rr,ni)}}};return Kt},wd=function(we){var Le=we.scrollDroppable,je=we.scrollWindow,ut=we.move,Lt=Xu({scrollWindow:je,scrollDroppable:Le}),At=hc({move:ut,scrollWindow:je,scrollDroppable:Le}),zt=function(rr){if(rr.phase==="DRAGGING"){if(rr.movementMode==="FLUID"){Lt.scroll(rr);return}rr.scrollJumpRequest&&At(rr)}},Kt={scroll:zt,start:Lt.start,stop:Lt.stop};return Kt},Pl="data-rbd",pu=function(){var we=Pl+"-drag-handle";return{base:we,draggableId:we+"-draggable-id",contextId:we+"-context-id"}}(),hd=function(){var we=Pl+"-draggable";return{base:we,contextId:we+"-context-id",id:we+"-id"}}(),ce=function(){var we=Pl+"-droppable";return{base:we,contextId:we+"-context-id",id:we+"-id"}}(),ge={contextId:Pl+"-scroll-container-context-id"},et=function(Le){return function(je){return"["+je+'="'+Le+'"]'}},qt=function(Le,je){return Le.map(function(ut){var Lt=ut.styles[je];return Lt?ut.selector+" { "+Lt+" }":""}).join(" ")},Er="pointer-events: none;",li=function(we){var Le=et(we),je=function(){var Kt=`
cursor: -webkit-grab;
cursor: grab;
`;return{selector:Le(pu.contextId),styles:{always:`
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
touch-action: manipulation;
`,resting:Kt,dragging:Er,dropAnimating:Kt}}}(),ut=function(){var Kt=`
transition: `+Vo.outOfTheWay+`;
`;return{selector:Le(hd.contextId),styles:{dragging:Kt,dropAnimating:Kt,userCancel:Kt}}}(),Lt={selector:Le(ce.contextId),styles:{always:"overflow-anchor: none;"}},At={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;
`}},zt=[ut,je,Lt,At];return{always:qt(zt,"always"),resting:qt(zt,"resting"),dragging:qt(zt,"dragging"),dropAnimating:qt(zt,"dropAnimating"),userCancel:qt(zt,"userCancel")}},Pi=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?oe.useLayoutEffect:oe.useEffect,Lo=function(){var Le=document.querySelector("head");return Le||Tn(!1),Le},Yo=function(Le){var je=document.createElement("style");return Le&&je.setAttribute("nonce",Le),je.type="text/css",je};function ii(we,Le){var je=mn(function(){return li(we)},[we]),ut=(0,oe.useRef)(null),Lt=(0,oe.useRef)(null),At=gt(mi(function(Zn){var Wn=Lt.current;Wn||Tn(!1),Wn.textContent=Zn}),[]),zt=gt(function(Zn){var Wn=ut.current;Wn||Tn(!1),Wn.textContent=Zn},[]);Pi(function(){!ut.current&&!Lt.current||Tn(!1);var Zn=Yo(Le),Wn=Yo(Le);return ut.current=Zn,Lt.current=Wn,Zn.setAttribute(Pl+"-always",we),Wn.setAttribute(Pl+"-dynamic",we),Lo().appendChild(Zn),Lo().appendChild(Wn),zt(je.always),At(je.resting),function(){var gr=function(Hi){var Yi=Hi.current;Yi||Tn(!1),Lo().removeChild(Yi),Hi.current=null};gr(ut),gr(Lt)}},[Le,zt,At,je.always,je.resting,we]);var Kt=gt(function(){return At(je.dragging)},[At,je.dragging]),_n=gt(function(Zn){if(Zn==="DROP"){At(je.dropAnimating);return}At(je.userCancel)},[At,je.dropAnimating,je.userCancel]),rr=gt(function(){Lt.current&&At(je.resting)},[At,je.resting]),Jn=mn(function(){return{dragging:Kt,dropping:_n,resting:rr}},[Kt,_n,rr]);return Jn}var no=function(we){return we&&we.ownerDocument?we.ownerDocument.defaultView:window};function Wo(we){return we instanceof no(we).HTMLElement}function Ta(we,Le){var je="["+pu.contextId+'="'+we+'"]',ut=Fn(document.querySelectorAll(je));if(!ut.length)return null;var Lt=Ro(ut,function(At){return At.getAttribute(pu.draggableId)===Le});return!Lt||!Wo(Lt)?null:Lt}function is(we){var Le=(0,oe.useRef)({}),je=(0,oe.useRef)(null),ut=(0,oe.useRef)(null),Lt=(0,oe.useRef)(!1),At=gt(function(Wn,gr){var ni={id:Wn,focus:gr};return Le.current[Wn]=ni,function(){var Yi=Le.current,io=Yi[Wn];io!==ni&&delete Yi[Wn]}},[]),zt=gt(function(Wn){var gr=Ta(we,Wn);gr&&gr!==document.activeElement&&gr.focus()},[we]),Kt=gt(function(Wn,gr){je.current===Wn&&(je.current=gr)},[]),_n=gt(function(){ut.current||Lt.current&&(ut.current=requestAnimationFrame(function(){ut.current=null;var Wn=je.current;Wn&&zt(Wn)}))},[zt]),rr=gt(function(Wn){je.current=null;var gr=document.activeElement;gr&&gr.getAttribute(pu.draggableId)===Wn&&(je.current=Wn)},[]);Pi(function(){return Lt.current=!0,function(){Lt.current=!1;var Wn=ut.current;Wn&&cancelAnimationFrame(Wn)}},[]);var Jn=mn(function(){return{register:At,tryRecordFocus:rr,tryRestoreFocusRecorded:_n,tryShiftRecord:Kt}},[At,rr,_n,Kt]);return Jn}function Hu(){var we={draggables:{},droppables:{}},Le=[];function je(Zn){return Le.push(Zn),function(){var gr=Le.indexOf(Zn);gr!==-1&&Le.splice(gr,1)}}function ut(Zn){Le.length&&Le.forEach(function(Wn){return Wn(Zn)})}function Lt(Zn){return we.draggables[Zn]||null}function At(Zn){var Wn=Lt(Zn);return Wn||Tn(!1),Wn}var zt={register:function(Wn){we.draggables[Wn.descriptor.id]=Wn,ut({type:"ADDITION",value:Wn})},update:function(Wn,gr){var ni=we.draggables[gr.descriptor.id];ni&&ni.uniqueId===Wn.uniqueId&&(delete we.draggables[gr.descriptor.id],we.draggables[Wn.descriptor.id]=Wn)},unregister:function(Wn){var gr=Wn.descriptor.id,ni=Lt(gr);ni&&Wn.uniqueId===ni.uniqueId&&(delete we.draggables[gr],ut({type:"REMOVAL",value:Wn}))},getById:At,findById:Lt,exists:function(Wn){return!!Lt(Wn)},getAllByType:function(Wn){return ho(we.draggables).filter(function(gr){return gr.descriptor.type===Wn})}};function Kt(Zn){return we.droppables[Zn]||null}function _n(Zn){var Wn=Kt(Zn);return Wn||Tn(!1),Wn}var rr={register:function(Wn){we.droppables[Wn.descriptor.id]=Wn},unregister:function(Wn){var gr=Kt(Wn.descriptor.id);gr&&Wn.uniqueId===gr.uniqueId&&delete we.droppables[Wn.descriptor.id]},getById:_n,findById:Kt,exists:function(Wn){return!!Kt(Wn)},getAllByType:function(Wn){return ho(we.droppables).filter(function(gr){return gr.descriptor.type===Wn})}};function Jn(){we.draggables={},we.droppables={},Le.length=0}return{draggable:zt,droppable:rr,subscribe:je,clean:Jn}}function Qu(){var we=mn(Hu,[]);return(0,oe.useEffect)(function(){return function(){requestAnimationFrame(we.clean)}},[we]),we}var Ju=oe.createContext(null),gu=function(){var we=document.body;return we||Tn(!1),we},Ul={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Tu=function(Le){return"rbd-announcement-"+Le};function Kc(we){var Le=mn(function(){return Tu(we)},[we]),je=(0,oe.useRef)(null);(0,oe.useEffect)(function(){var At=document.createElement("div");return je.current=At,At.id=Le,At.setAttribute("aria-live","assertive"),At.setAttribute("aria-atomic","true"),(0,ke.Z)(At.style,Ul),gu().appendChild(At),function(){setTimeout(function(){var _n=gu();_n.contains(At)&&_n.removeChild(At),At===je.current&&(je.current=null)})}},[Le]);var ut=gt(function(Lt){var At=je.current;if(At){At.textContent=Lt;return}},[]);return ut}var Jl=0,ph={separator:"::"};function Rs(){Jl=0}function Dc(we,Le){return Le===void 0&&(Le=ph),mn(function(){return""+we+Le.separator+Jl++},[Le.separator,we])}function Yp(we){var Le=we.contextId,je=we.uniqueId;return"rbd-hidden-text-"+Le+"-"+je}function Pf(we){var Le=we.contextId,je=we.text,ut=Dc("hidden-text",{separator:"-"}),Lt=mn(function(){return Yp({contextId:Le,uniqueId:ut})},[ut,Le]);return(0,oe.useEffect)(function(){var zt=document.createElement("div");return zt.id=Lt,zt.textContent=je,zt.style.display="none",gu().appendChild(zt),function(){var _n=gu();_n.contains(zt)&&_n.removeChild(zt)}},[Lt,je]),Lt}var Vh=oe.createContext(null),In={react:"^16.8.5","react-dom":"^16.8.5"},Vd=/(\d+)\.(\d+)\.(\d+)/,Rc=function(Le){var je=Vd.exec(Le);je==null&&Tn(!1);var ut=Number(je[1]),Lt=Number(je[2]),At=Number(je[3]);return{major:ut,minor:Lt,patch:At,raw:Le}},Xp=function(Le,je){return je.major>Le.major?!0:je.major<Le.major?!1:je.minor>Le.minor?!0:je.minor<Le.minor?!1:je.patch>=Le.patch},ep=function(we,Le){var je=Rc(we),ut=Rc(Le);Xp(je,ut)},Gg=`
We expect a html5 doctype: <!doctype html>
This is to ensure consistent browser layout and measurement
More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md
`,tp=function(we){var Le=we.doctype;Le&&(Le.name.toLowerCase(),Le.publicId)};function Um(we){}function ll(we,Le){}function Wh(){ll(function(){ep(In.react,oe.version),tp(document)},[])}function Zh(we){var Le=(0,oe.useRef)(we);return(0,oe.useEffect)(function(){Le.current=we}),Le}function Qp(){var we=null;function Le(){return!!we}function je(zt){return zt===we}function ut(zt){we&&Tn(!1);var Kt={abandon:zt};return we=Kt,Kt}function Lt(){we||Tn(!1),we=null}function At(){we&&(we.abandon(),Lt())}return{isClaimed:Le,isActive:je,claim:ut,release:Lt,tryAbandon:At}}var Jp=9,qp=13,Tf=27,Af=32,qu=33,gh=34,np=35,Yc=36,Kh=37,Nf=38,Yh=39,zu=40,mh,rp=(mh={},mh[qp]=!0,mh[Jp]=!0,mh),$u=function(we){rp[we.keyCode]&&we.preventDefault()},fd=function(){var we="visibilitychange";if(typeof document=="undefined")return we;var Le=[we,"ms"+we,"webkit"+we,"moz"+we,"o"+we],je=Ro(Le,function(ut){return"on"+ut in document});return je||we}(),Lf=0,ip=5;function Wd(we,Le){return Math.abs(Le.x-we.x)>=ip||Math.abs(Le.y-we.y)>=ip}var Au={type:"IDLE"};function op(we){var Le=we.cancel,je=we.completed,ut=we.getPhase,Lt=we.setPhase;return[{eventName:"mousemove",fn:function(zt){var Kt=zt.button,_n=zt.clientX,rr=zt.clientY;if(Kt===Lf){var Jn={x:_n,y:rr},Zn=ut();if(Zn.type==="DRAGGING"){zt.preventDefault(),Zn.actions.move(Jn);return}Zn.type!=="PENDING"&&Tn(!1);var Wn=Zn.point;if(Wd(Wn,Jn)){zt.preventDefault();var gr=Zn.actions.fluidLift(Jn);Lt({type:"DRAGGING",actions:gr})}}}},{eventName:"mouseup",fn:function(zt){var Kt=ut();if(Kt.type!=="DRAGGING"){Le();return}zt.preventDefault(),Kt.actions.drop({shouldBlockNextClick:!0}),je()}},{eventName:"mousedown",fn:function(zt){ut().type==="DRAGGING"&&zt.preventDefault(),Le()}},{eventName:"keydown",fn:function(zt){var Kt=ut();if(Kt.type==="PENDING"){Le();return}if(zt.keyCode===Tf){zt.preventDefault(),Le();return}$u(zt)}},{eventName:"resize",fn:Le},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){ut().type==="PENDING"&&Le()}},{eventName:"webkitmouseforcedown",fn:function(zt){var Kt=ut();if(Kt.type==="IDLE"&&Tn(!1),Kt.actions.shouldRespectForcePress()){Le();return}zt.preventDefault()}},{eventName:fd,fn:Le}]}function el(we){var Le=(0,oe.useRef)(Au),je=(0,oe.useRef)(xt),ut=mn(function(){return{eventName:"mousedown",fn:function(Zn){if(!Zn.defaultPrevented&&Zn.button===Lf&&!(Zn.ctrlKey||Zn.metaKey||Zn.shiftKey||Zn.altKey)){var Wn=we.findClosestDraggableId(Zn);if(Wn){var gr=we.tryGetLock(Wn,zt,{sourceEvent:Zn});if(gr){Zn.preventDefault();var ni={x:Zn.clientX,y:Zn.clientY};je.current(),rr(gr,ni)}}}}}},[we]),Lt=mn(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Zn){if(!Zn.defaultPrevented){var Wn=we.findClosestDraggableId(Zn);if(Wn){var gr=we.findOptionsForDraggable(Wn);gr&&(gr.shouldRespectForcePress||we.canGetLock(Wn)&&Zn.preventDefault())}}}}},[we]),At=gt(function(){var Zn={passive:!1,capture:!0};je.current=br(window,[Lt,ut],Zn)},[Lt,ut]),zt=gt(function(){var Jn=Le.current;Jn.type!=="IDLE"&&(Le.current=Au,je.current(),At())},[At]),Kt=gt(function(){var Jn=Le.current;zt(),Jn.type==="DRAGGING"&&Jn.actions.cancel({shouldBlockNextClick:!0}),Jn.type==="PENDING"&&Jn.actions.abort()},[zt]),_n=gt(function(){var Zn={capture:!0,passive:!1},Wn=op({cancel:Kt,completed:zt,getPhase:function(){return Le.current},setPhase:function(ni){Le.current=ni}});je.current=br(window,Wn,Zn)},[Kt,zt]),rr=gt(function(Zn,Wn){Le.current.type!=="IDLE"&&Tn(!1),Le.current={type:"PENDING",point:Wn,actions:Zn},_n()},[_n]);Pi(function(){return At(),function(){je.current()}},[At])}var Xc;function kf(){}var Cd=(Xc={},Xc[gh]=!0,Xc[qu]=!0,Xc[Yc]=!0,Xc[np]=!0,Xc);function vh(we,Le){function je(){Le(),we.cancel()}function ut(){Le(),we.drop()}return[{eventName:"keydown",fn:function(At){if(At.keyCode===Tf){At.preventDefault(),je();return}if(At.keyCode===Af){At.preventDefault(),ut();return}if(At.keyCode===zu){At.preventDefault(),we.moveDown();return}if(At.keyCode===Nf){At.preventDefault(),we.moveUp();return}if(At.keyCode===Yh){At.preventDefault(),we.moveRight();return}if(At.keyCode===Kh){At.preventDefault(),we.moveLeft();return}if(Cd[At.keyCode]){At.preventDefault();return}$u(At)}},{eventName:"mousedown",fn:je},{eventName:"mouseup",fn:je},{eventName:"click",fn:je},{eventName:"touchstart",fn:je},{eventName:"resize",fn:je},{eventName:"wheel",fn:je,options:{passive:!0}},{eventName:fd,fn:je}]}function yh(we){var Le=(0,oe.useRef)(kf),je=mn(function(){return{eventName:"keydown",fn:function(At){if(At.defaultPrevented||At.keyCode!==Af)return;var zt=we.findClosestDraggableId(At);if(!zt)return;var Kt=we.tryGetLock(zt,Jn,{sourceEvent:At});if(!Kt)return;At.preventDefault();var _n=!0,rr=Kt.snapLift();Le.current();function Jn(){_n||Tn(!1),_n=!1,Le.current(),ut()}Le.current=br(window,vh(rr,Jn),{capture:!0,passive:!1})}}},[we]),ut=gt(function(){var At={passive:!1,capture:!0};Le.current=br(window,[je],At)},[je]);Pi(function(){return ut(),function(){Le.current()}},[ut])}var Xh={type:"IDLE"},Sh=120,ap=.15;function Qc(we){var Le=we.cancel,je=we.getPhase;return[{eventName:"orientationchange",fn:Le},{eventName:"resize",fn:Le},{eventName:"contextmenu",fn:function(Lt){Lt.preventDefault()}},{eventName:"keydown",fn:function(Lt){if(je().type!=="DRAGGING"){Le();return}Lt.keyCode===Tf&&Lt.preventDefault(),Le()}},{eventName:fd,fn:Le}]}function Zd(we){var Le=we.cancel,je=we.completed,ut=we.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(At){var zt=ut();if(zt.type!=="DRAGGING"){Le();return}zt.hasMoved=!0;var Kt=At.touches[0],_n=Kt.clientX,rr=Kt.clientY,Jn={x:_n,y:rr};At.preventDefault(),zt.actions.move(Jn)}},{eventName:"touchend",fn:function(At){var zt=ut();if(zt.type!=="DRAGGING"){Le();return}At.preventDefault(),zt.actions.drop({shouldBlockNextClick:!0}),je()}},{eventName:"touchcancel",fn:function(At){if(ut().type!=="DRAGGING"){Le();return}At.preventDefault(),Le()}},{eventName:"touchforcechange",fn:function(At){var zt=ut();zt.type==="IDLE"&&Tn(!1);var Kt=At.touches[0];if(Kt){var _n=Kt.force>=ap;if(_n){var rr=zt.actions.shouldRespectForcePress();if(zt.type==="PENDING"){rr&&Le();return}if(rr){if(zt.hasMoved){At.preventDefault();return}Le();return}At.preventDefault()}}}},{eventName:fd,fn:Le}]}function If(we){var Le=(0,oe.useRef)(Xh),je=(0,oe.useRef)(xt),ut=gt(function(){return Le.current},[]),Lt=gt(function(gr){Le.current=gr},[]),At=mn(function(){return{eventName:"touchstart",fn:function(gr){if(!gr.defaultPrevented){var ni=we.findClosestDraggableId(gr);if(ni){var Hi=we.tryGetLock(ni,Kt,{sourceEvent:gr});if(Hi){var Yi=gr.touches[0],io=Yi.clientX,vo=Yi.clientY,ko={x:io,y:vo};je.current(),Zn(Hi,ko)}}}}}},[we]),zt=gt(function(){var gr={capture:!0,passive:!1};je.current=br(window,[At],gr)},[At]),Kt=gt(function(){var Wn=Le.current;Wn.type!=="IDLE"&&(Wn.type==="PENDING"&&clearTimeout(Wn.longPressTimerId),Lt(Xh),je.current(),zt())},[zt,Lt]),_n=gt(function(){var Wn=Le.current;Kt(),Wn.type==="DRAGGING"&&Wn.actions.cancel({shouldBlockNextClick:!0}),Wn.type==="PENDING"&&Wn.actions.abort()},[Kt]),rr=gt(function(){var gr={capture:!0,passive:!1},ni={cancel:_n,completed:Kt,getPhase:ut},Hi=br(window,Zd(ni),gr),Yi=br(window,Qc(ni),gr);je.current=function(){Hi(),Yi()}},[_n,ut,Kt]),Jn=gt(function(){var gr=ut();gr.type!=="PENDING"&&Tn(!1);var ni=gr.actions.fluidLift(gr.point);Lt({type:"DRAGGING",actions:ni,hasMoved:!1})},[ut,Lt]),Zn=gt(function(gr,ni){ut().type!=="IDLE"&&Tn(!1);var Hi=setTimeout(Jn,Sh);Lt({type:"PENDING",point:ni,actions:gr,longPressTimerId:Hi}),rr()},[rr,ut,Lt,Jn]);Pi(function(){return zt(),function(){je.current();var ni=ut();ni.type==="PENDING"&&(clearTimeout(ni.longPressTimerId),Lt(Xh))}},[ut,zt,Lt]),Pi(function(){var gr=br(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return gr},[])}function Df(we){}var Rf={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Pd(we,Le){if(Le==null)return!1;var je=!!Rf[Le.tagName.toLowerCase()];if(je)return!0;var ut=Le.getAttribute("contenteditable");return ut==="true"||ut===""?!0:Le===we?!1:Pd(we,Le.parentElement)}function sp(we,Le){var je=Le.target;return Wo(je)?Pd(we,je):!1}var lp=function(we){return vr(we.getBoundingClientRect()).center};function up(we){return we instanceof no(we).Element}var Mc=function(){var we="matches";if(typeof document=="undefined")return we;var Le=[we,"msMatchesSelector","webkitMatchesSelector"],je=Ro(Le,function(ut){return ut in Element.prototype});return je||we}();function cp(we,Le){return we==null?null:we[Mc](Le)?we:cp(we.parentElement,Le)}function dp(we,Le){return we.closest?we.closest(Le):cp(we,Le)}function bh(we){return"["+pu.contextId+'="'+we+'"]'}function Kd(we,Le){var je=Le.target;if(!up(je))return null;var ut=bh(we),Lt=dp(je,ut);return!Lt||!Wo(Lt)?null:Lt}function hp(we,Le){var je=Kd(we,Le);return je?je.getAttribute(pu.draggableId):null}function Oc(we,Le){var je="["+hd.contextId+'="'+we+'"]',ut=Fn(document.querySelectorAll(je)),Lt=Ro(ut,function(At){return At.getAttribute(hd.id)===Le});return!Lt||!Wo(Lt)?null:Lt}function fp(we){we.preventDefault()}function Yd(we){var Le=we.expected,je=we.phase,ut=we.isLockActive,Lt=we.shouldWarn;return!(!ut()||Le!==je)}function pp(we){var Le=we.lockAPI,je=we.store,ut=we.registry,Lt=we.draggableId;if(Le.isClaimed())return!1;var At=ut.draggable.findById(Lt);return!(!At||!At.options.isEnabled||!Bo(je.getState(),Lt))}function gp(we){var Le=we.lockAPI,je=we.contextId,ut=we.store,Lt=we.registry,At=we.draggableId,zt=we.forceSensorStop,Kt=we.sourceEvent,_n=pp({lockAPI:Le,store:ut,registry:Lt,draggableId:At});if(!_n)return null;var rr=Lt.draggable.getById(At),Jn=Oc(je,rr.descriptor.id);if(!Jn||Kt&&!rr.options.canDragInteractiveElements&&sp(Jn,Kt))return null;var Zn=Le.claim(zt||xt),Wn="PRE_DRAG";function gr(){return rr.options.shouldRespectForcePress}function ni(){return Le.isActive(Zn)}function Hi(Ea,Ua){Yd({expected:Ea,phase:Wn,isLockActive:ni,shouldWarn:!0})&&ut.dispatch(Ua())}var Yi=Hi.bind(null,"DRAGGING");function io(Ea){function Ua(){Le.release(),Wn="COMPLETED"}Wn!=="PRE_DRAG"&&(Ua(),Wn!=="PRE_DRAG"&&Tn(!1)),ut.dispatch(Da(Ea.liftActionArgs)),Wn="DRAGGING";function bl(Oa,ul){if(ul===void 0&&(ul={shouldBlockNextClick:!1}),Ea.cleanup(),ul.shouldBlockNextClick){var vu=br(window,[{eventName:"click",fn:fp,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(vu)}Ua(),ut.dispatch(lu({reason:Oa}))}return(0,ke.Z)({isActive:function(){return Yd({expected:"DRAGGING",phase:Wn,isLockActive:ni,shouldWarn:!1})},shouldRespectForcePress:gr,drop:function(ul){return bl("DROP",ul)},cancel:function(ul){return bl("CANCEL",ul)}},Ea.actions)}function vo(Ea){var Ua=hn(function(Oa){Yi(function(){return Pa({client:Oa})})}),bl=io({liftActionArgs:{id:At,clientSelection:Ea,movementMode:"FLUID"},cleanup:function(){return Ua.cancel()},actions:{move:Ua}});return(0,ke.Z)({},bl,{move:Ua})}function ko(){var Ea={moveUp:function(){return Yi(ea)},moveRight:function(){return Yi(Eo)},moveDown:function(){return Yi(cc)},moveLeft:function(){return Yi(dd)}};return io({liftActionArgs:{id:At,clientSelection:lp(Jn),movementMode:"SNAP"},cleanup:xt,actions:Ea})}function Po(){var Ea=Yd({expected:"PRE_DRAG",phase:Wn,isLockActive:ni,shouldWarn:!0});Ea&&Le.release()}var jo={isActive:function(){return Yd({expected:"PRE_DRAG",phase:Wn,isLockActive:ni,shouldWarn:!1})},shouldRespectForcePress:gr,fluidLift:vo,snapLift:ko,abort:Po};return jo}var mp=[el,yh,If];function jg(we){var Le=we.contextId,je=we.store,ut=we.registry,Lt=we.customSensors,At=we.enableDefaultSensors,zt=[].concat(At?mp:[],Lt||[]),Kt=(0,oe.useState)(function(){return Qp()})[0],_n=gt(function(vo,ko){vo.isDragging&&!ko.isDragging&&Kt.tryAbandon()},[Kt]);Pi(function(){var vo=je.getState(),ko=je.subscribe(function(){var Po=je.getState();_n(vo,Po),vo=Po});return ko},[Kt,je,_n]),Pi(function(){return Kt.tryAbandon},[Kt.tryAbandon]);var rr=gt(function(io){return pp({lockAPI:Kt,registry:ut,store:je,draggableId:io})},[Kt,ut,je]),Jn=gt(function(io,vo,ko){return gp({lockAPI:Kt,registry:ut,contextId:Le,store:je,draggableId:io,forceSensorStop:vo,sourceEvent:ko&&ko.sourceEvent?ko.sourceEvent:null})},[Le,Kt,ut,je]),Zn=gt(function(io){return hp(Le,io)},[Le]),Wn=gt(function(io){var vo=ut.draggable.findById(io);return vo?vo.options:null},[ut.draggable]),gr=gt(function(){Kt.isClaimed()&&(Kt.tryAbandon(),je.getState().phase!=="IDLE"&&je.dispatch(ra()))},[Kt,je]),ni=gt(Kt.isClaimed,[Kt]),Hi=mn(function(){return{canGetLock:rr,tryGetLock:Jn,findClosestDraggableId:Zn,findOptionsForDraggable:Wn,tryReleaseLock:gr,isLockClaimed:ni}},[rr,Jn,Zn,Wn,gr,ni]);Df(zt);for(var Yi=0;Yi<zt.length;Yi++)zt[Yi](Hi)}var $p=function(Le){return{onBeforeCapture:Le.onBeforeCapture,onBeforeDragStart:Le.onBeforeDragStart,onDragStart:Le.onDragStart,onDragEnd:Le.onDragEnd,onDragUpdate:Le.onDragUpdate}};function Td(we){return we.current||Tn(!1),we.current}function Mf(we){var Le=we.contextId,je=we.setCallbacks,ut=we.sensors,Lt=we.nonce,At=we.dragHandleUsageInstructions,zt=(0,oe.useRef)(null);Wh();var Kt=Zh(we),_n=gt(function(){return $p(Kt.current)},[Kt]),rr=Kc(Le),Jn=Pf({contextId:Le,text:At}),Zn=ii(Le,Lt),Wn=gt(function(Oa){Td(zt).dispatch(Oa)},[]),gr=mn(function(){return(0,Ve.DE)({publishWhileDragging:Ts,updateDroppableScroll:ga,updateDroppableIsEnabled:Ds,updateDroppableIsCombineEnabled:aa,collectionStarting:_u},Wn)},[Wn]),ni=Qu(),Hi=mn(function(){return Do(ni,gr)},[ni,gr]),Yi=mn(function(){return wd((0,ke.Z)({scrollWindow:Qa,scrollDroppable:Hi.scrollDroppable},(0,Ve.DE)({move:Pa},Wn)))},[Hi.scrollDroppable,Wn]),io=is(Le),vo=mn(function(){return xr({announce:rr,autoScroller:Yi,dimensionMarshal:Hi,focusMarshal:io,getResponders:_n,styleMarshal:Zn})},[rr,Yi,Hi,io,_n,Zn]);zt.current=vo;var ko=gt(function(){var Oa=Td(zt),ul=Oa.getState();ul.phase!=="IDLE"&&Oa.dispatch(ra())},[]),Po=gt(function(){var Oa=Td(zt).getState();return Oa.isDragging||Oa.phase==="DROP_ANIMATING"},[]),jo=mn(function(){return{isDragging:Po,tryAbort:ko}},[Po,ko]);je(jo);var Ea=gt(function(Oa){return Bo(Td(zt).getState(),Oa)},[]),Ua=gt(function(){return Kl(Td(zt).getState())},[]),bl=mn(function(){return{marshal:Hi,focus:io,contextId:Le,canLift:Ea,isMovementAllowed:Ua,dragHandleUsageInstructionsId:Jn,registry:ni}},[Le,Hi,Jn,io,Ea,Ua,ni]);return jg({contextId:Le,store:vo,registry:ni,customSensors:ut,enableDefaultSensors:we.enableDefaultSensors!==!1}),(0,oe.useEffect)(function(){return ko},[ko]),oe.createElement(Vh.Provider,{value:bl},oe.createElement(he,{context:Ju,store:vo},we.children))}var Qh=0;function eg(){Qh=0}function Of(){return mn(function(){return""+Qh++},[])}function Xd(){eg(),Rs()}function vp(we){var Le=Of(),je=we.dragHandleUsageInstructions||cn.dragHandleUsageInstructions;return oe.createElement(un,null,function(ut){return oe.createElement(Mf,{nonce:we.nonce,contextId:Le,setCallbacks:ut,dragHandleUsageInstructions:je,enableDefaultSensors:we.enableDefaultSensors,sensors:we.sensors,onBeforeCapture:we.onBeforeCapture,onBeforeDragStart:we.onBeforeDragStart,onDragStart:we.onDragStart,onDragUpdate:we.onDragUpdate,onDragEnd:we.onDragEnd},we.children)})}var Qd=function(Le){return function(je){return Le===je}},tg=Qd("scroll"),Ff=Qd("auto"),ng=Qd("visible"),Ra=function(Le,je){return je(Le.overflowX)||je(Le.overflowY)},Eh=function(Le,je){return je(Le.overflowX)&&je(Le.overflowY)},Ad=function(Le){var je=window.getComputedStyle(Le),ut={overflowX:je.overflowX,overflowY:je.overflowY};return Ra(ut,tg)||Ra(ut,Ff)},Tl=function(){return!1;var Le,je,ut,Lt},mu=function we(Le){return Le==null?null:Le===document.body?Tl()?Le:null:Le===document.documentElement?null:Ad(Le)?Le:we(Le.parentElement)},xh=function(we){if(we)var Le=mu(we.parentElement)},Jd=function(we){return{x:we.scrollLeft,y:we.scrollTop}},yp=function we(Le){if(!Le)return!1;var je=window.getComputedStyle(Le);return je.position==="fixed"?!0:we(Le.parentElement)},Sp=function(we){var Le=mu(we),je=yp(we);return{closestScrollable:Le,isFixedOnPage:je}},bp=function(we){var Le=we.descriptor,je=we.isEnabled,ut=we.isCombineEnabled,Lt=we.isFixedOnPage,At=we.direction,zt=we.client,Kt=we.page,_n=we.closest,rr=function(){if(!_n)return null;var gr=_n.scrollSize,ni=_n.client,Hi=Mr({scrollHeight:gr.scrollHeight,scrollWidth:gr.scrollWidth,height:ni.paddingBox.height,width:ni.paddingBox.width});return{pageMarginBox:_n.page.marginBox,frameClient:ni,scrollSize:gr,shouldClipSubject:_n.shouldClipSubject,scroll:{initial:_n.scroll,current:_n.scroll,max:Hi,diff:{value:Ci,displacement:Ci}}}}(),Jn=At==="vertical"?ln:qn,Zn=Gi({page:Kt,withPlaceholder:null,axis:Jn,frame:rr}),Wn={descriptor:Le,isCombineEnabled:ut,isFixedOnPage:Lt,axis:Jn,isEnabled:je,client:zt,page:Kt,frame:rr,subject:Zn};return Wn},Ep=function(Le,je){var ut=Cr(Le);if(!je||Le!==je)return ut;var Lt=ut.paddingBox.top-je.scrollTop,At=ut.paddingBox.left-je.scrollLeft,zt=Lt+je.scrollHeight,Kt=At+je.scrollWidth,_n={top:Lt,right:Kt,bottom:zt,left:At},rr=$r(_n,ut.border),Jn=Jr({borderBox:rr,margin:ut.margin,border:ut.border,padding:ut.padding});return Jn},xp=function(we){var Le=we.ref,je=we.descriptor,ut=we.env,Lt=we.windowScroll,At=we.direction,zt=we.isDropDisabled,Kt=we.isCombineEnabled,_n=we.shouldClipSubject,rr=ut.closestScrollable,Jn=Ep(Le,rr),Zn=Oe(Jn,Lt),Wn=function(){if(!rr)return null;var ni=Cr(rr),Hi={scrollHeight:rr.scrollHeight,scrollWidth:rr.scrollWidth};return{client:ni,page:Oe(ni,Lt),scroll:Jd(rr),scrollSize:Hi,shouldClipSubject:_n}}(),gr=bp({descriptor:je,isEnabled:!zt,isCombineEnabled:Kt,isFixedOnPage:ut.isFixedOnPage,direction:At,client:Jn,page:Zn,closest:Wn});return gr},Nd={passive:!1},Jh={passive:!0},pd=function(we){return we.shouldPublishImmediately?Nd:Jh};function qa(we){var Le=(0,oe.useContext)(we);return Le||Tn(!1),Le}var qd=function(Le){return Le&&Le.env.closestScrollable||null};function wp(we){var Le=(0,oe.useRef)(null),je=qa(Vh),ut=Dc("droppable"),Lt=je.registry,At=je.marshal,zt=Zh(we),Kt=mn(function(){return{id:we.droppableId,type:we.type,mode:we.mode}},[we.droppableId,we.mode,we.type]),_n=(0,oe.useRef)(Kt),rr=mn(function(){return mi(function(Po,jo){Le.current||Tn(!1);var Ea={x:Po,y:jo};At.updateDroppableScroll(Kt.id,Ea)})},[Kt.id,At]),Jn=gt(function(){var Po=Le.current;return!Po||!Po.env.closestScrollable?Ci:Jd(Po.env.closestScrollable)},[]),Zn=gt(function(){var Po=Jn();rr(Po.x,Po.y)},[Jn,rr]),Wn=mn(function(){return hn(Zn)},[Zn]),gr=gt(function(){var Po=Le.current,jo=qd(Po);Po&&jo||Tn(!1);var Ea=Po.scrollOptions;if(Ea.shouldPublishImmediately){Zn();return}Wn()},[Wn,Zn]),ni=gt(function(Po,jo){Le.current&&Tn(!1);var Ea=zt.current,Ua=Ea.getDroppableRef();Ua||Tn(!1);var bl=Sp(Ua),Oa={ref:Ua,descriptor:Kt,env:bl,scrollOptions:jo};Le.current=Oa;var ul=xp({ref:Ua,descriptor:Kt,env:bl,windowScroll:Po,direction:Ea.direction,isDropDisabled:Ea.isDropDisabled,isCombineEnabled:Ea.isCombineEnabled,shouldClipSubject:!Ea.ignoreContainerClipping}),vu=bl.closestScrollable;return vu&&(vu.setAttribute(ge.contextId,je.contextId),vu.addEventListener("scroll",gr,pd(Oa.scrollOptions))),ul},[je.contextId,Kt,gr,zt]),Hi=gt(function(){var Po=Le.current,jo=qd(Po);return Po&&jo||Tn(!1),Jd(jo)},[]),Yi=gt(function(){var Po=Le.current;Po||Tn(!1);var jo=qd(Po);Le.current=null,jo&&(Wn.cancel(),jo.removeAttribute(ge.contextId),jo.removeEventListener("scroll",gr,pd(Po.scrollOptions)))},[gr,Wn]),io=gt(function(Po){var jo=Le.current;jo||Tn(!1);var Ea=qd(jo);Ea||Tn(!1),Ea.scrollTop+=Po.y,Ea.scrollLeft+=Po.x},[]),vo=mn(function(){return{getDimensionAndWatchScroll:ni,getScrollWhileDragging:Hi,dragStopped:Yi,scroll:io}},[Yi,ni,Hi,io]),ko=mn(function(){return{uniqueId:ut,descriptor:Kt,callbacks:vo}},[vo,Kt,ut]);Pi(function(){return _n.current=ko.descriptor,Lt.droppable.register(ko),function(){Le.current&&Yi(),Lt.droppable.unregister(ko)}},[vo,Kt,Yi,ko,At,Lt.droppable]),Pi(function(){Le.current&&At.updateDroppableIsEnabled(_n.current.id,!we.isDropDisabled)},[we.isDropDisabled,At]),Pi(function(){Le.current&&At.updateDroppableIsCombineEnabled(_n.current.id,we.isCombineEnabled)},[we.isCombineEnabled,At])}function Ld(){}var $d={width:0,height:0,margin:er},qh=function(Le){var je=Le.isAnimatingOpenOnMount,ut=Le.placeholder,Lt=Le.animate;return je||Lt==="close"?$d:{height:ut.client.borderBox.height,width:ut.client.borderBox.width,margin:ut.client.margin}},rg=function(Le){var je=Le.isAnimatingOpenOnMount,ut=Le.placeholder,Lt=Le.animate,At=qh({isAnimatingOpenOnMount:je,placeholder:ut,animate:Lt});return{display:ut.display,boxSizing:"border-box",width:At.width,height:At.height,marginTop:At.margin.top,marginRight:At.margin.right,marginBottom:At.margin.bottom,marginLeft:At.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:Lt!=="none"?Vo.placeholder:null}};function vl(we){var Le=(0,oe.useRef)(null),je=gt(function(){Le.current&&(clearTimeout(Le.current),Le.current=null)},[]),ut=we.animate,Lt=we.onTransitionEnd,At=we.onClose,zt=we.contextId,Kt=(0,oe.useState)(we.animate==="open"),_n=Kt[0],rr=Kt[1];(0,oe.useEffect)(function(){return _n?ut!=="open"?(je(),rr(!1),Ld):Le.current?Ld:(Le.current=setTimeout(function(){Le.current=null,rr(!1)}),je):Ld},[ut,_n,je]);var Jn=gt(function(Wn){Wn.propertyName==="height"&&(Lt(),ut==="close"&&At())},[ut,At,Lt]),Zn=rg({isAnimatingOpenOnMount:_n,animate:we.animate,placeholder:we.placeholder});return oe.createElement(we.placeholder.tagName,{style:Zn,"data-rbd-placeholder-context-id":zt,onTransitionEnd:Jn,ref:we.innerRef})}var ig=oe.memo(vl),kd=oe.createContext(null);function Jc(we){we&&Wo(we)||Tn(!1)}function eh(we){return typeof we=="boolean"}function re(we,Le){Le.forEach(function(je){return je(we)})}var le=[function(Le){var je=Le.props;je.droppableId||Tn(!1),typeof je.droppableId!="string"&&Tn(!1)},function(Le){var je=Le.props;eh(je.isDropDisabled)||Tn(!1),eh(je.isCombineEnabled)||Tn(!1),eh(je.ignoreContainerClipping)||Tn(!1)},function(Le){var je=Le.getDroppableRef;Jc(je())}],ye=[function(Le){var je=Le.props,ut=Le.getPlaceholderRef;if(je.placeholder)var Lt=ut()}],ve=[function(Le){var je=Le.props;je.renderClone||Tn(!1)},function(Le){var je=Le.getPlaceholderRef;je()&&Tn(!1)}];function xe(we){ll(function(){re(we,le),we.props.mode==="standard"&&re(we,ye),we.props.mode==="virtual"&&re(we,ve)})}var Ze=function(we){Ie(Le,we);function Le(){for(var ut,Lt=arguments.length,At=new Array(Lt),zt=0;zt<Lt;zt++)At[zt]=arguments[zt];return ut=we.call.apply(we,[this].concat(At))||this,ut.state={isVisible:!!ut.props.on,data:ut.props.on,animate:ut.props.shouldAnimate&&ut.props.on?"open":"none"},ut.onClose=function(){ut.state.animate==="close"&&ut.setState({isVisible:!1})},ut}Le.getDerivedStateFromProps=function(Lt,At){return Lt.shouldAnimate?Lt.on?{isVisible:!0,data:Lt.on,animate:"open"}:At.isVisible?{isVisible:!0,data:At.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!Lt.on,data:Lt.on,animate:"none"}};var je=Le.prototype;return je.render=function(){if(!this.state.isVisible)return null;var Lt={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(Lt)},Le}(oe.PureComponent),dt={dragging:5e3,dropAnimating:4500},Tt=function(Le,je){return je?Vo.drop(je.duration):Le?Vo.snap:Vo.fluid},Ct=function(Le,je){return Le?je?gl.opacity.drop:gl.opacity.combining:null},Wt=function(Le){return Le.forceShouldAnimate!=null?Le.forceShouldAnimate:Le.mode==="SNAP"};function Kn(we){var Le=we.dimension,je=Le.client,ut=we.offset,Lt=we.combineWith,At=we.dropping,zt=!!Lt,Kt=Wt(we),_n=!!At,rr=_n?Ha.drop(ut,zt):Ha.moveTo(ut),Jn={position:"fixed",top:je.marginBox.top,left:je.marginBox.left,boxSizing:"border-box",width:je.borderBox.width,height:je.borderBox.height,transition:Tt(Kt,At),transform:rr,opacity:Ct(zt,_n),zIndex:_n?dt.dropAnimating:dt.dragging,pointerEvents:"none"};return Jn}function rn(we){return{transform:Ha.moveTo(we.offset),transition:we.shouldAnimateDisplacement?null:"none"}}function wr(we){return we.type==="DRAGGING"?Kn(we):rn(we)}function mr(we,Le,je){je===void 0&&(je=Ci);var ut=window.getComputedStyle(Le),Lt=Le.getBoundingClientRect(),At=cr(Lt,ut),zt=Oe(At,je),Kt={client:At,tagName:Le.tagName.toLowerCase(),display:ut.display},_n={x:At.marginBox.width,y:At.marginBox.height},rr={descriptor:we,placeholder:Kt,displaceBy:_n,client:At,page:zt};return rr}function yi(we){var Le=Dc("draggable"),je=we.descriptor,ut=we.registry,Lt=we.getDraggableRef,At=we.canDragInteractiveElements,zt=we.shouldRespectForcePress,Kt=we.isEnabled,_n=mn(function(){return{canDragInteractiveElements:At,shouldRespectForcePress:zt,isEnabled:Kt}},[At,Kt,zt]),rr=gt(function(gr){var ni=Lt();return ni||Tn(!1),mr(je,ni,gr)},[je,Lt]),Jn=mn(function(){return{uniqueId:Le,descriptor:je,options:_n,getDimension:rr}},[je,rr,_n,Le]),Zn=(0,oe.useRef)(Jn),Wn=(0,oe.useRef)(!0);Pi(function(){return ut.draggable.register(Zn.current),function(){return ut.draggable.unregister(Zn.current)}},[ut.draggable]),Pi(function(){if(Wn.current){Wn.current=!1;return}var gr=Zn.current;Zn.current=Jn,ut.draggable.update(Jn,gr)},[Jn,ut.draggable])}function wi(we,Le,je){ll(function(){function ut(At){return"Draggable[id: "+At+"]: "}var Lt=we.draggableId;Lt||Tn(!1),typeof Lt!="string"&&Tn(!1),po(we.index)||Tn(!1),we.mapped.type!=="DRAGGING"&&(Jc(je()),we.isEnabled&&(Ta(Le,Lt)||Tn(!1)))})}function Di(we){}function $i(we){we.preventDefault()}function xo(we){var Le=(0,oe.useRef)(null),je=gt(function(Oa){Le.current=Oa},[]),ut=gt(function(){return Le.current},[]),Lt=qa(Vh),At=Lt.contextId,zt=Lt.dragHandleUsageInstructionsId,Kt=Lt.registry,_n=qa(kd),rr=_n.type,Jn=_n.droppableId,Zn=mn(function(){return{id:we.draggableId,index:we.index,type:rr,droppableId:Jn}},[we.draggableId,we.index,rr,Jn]),Wn=we.children,gr=we.draggableId,ni=we.isEnabled,Hi=we.shouldRespectForcePress,Yi=we.canDragInteractiveElements,io=we.isClone,vo=we.mapped,ko=we.dropAnimationFinished;if(wi(we,At,ut),Di(io),!io){var Po=mn(function(){return{descriptor:Zn,registry:Kt,getDraggableRef:ut,canDragInteractiveElements:Yi,shouldRespectForcePress:Hi,isEnabled:ni}},[Zn,Kt,ut,Yi,Hi,ni]);yi(Po)}var jo=mn(function(){return ni?{tabIndex:0,role:"button","aria-describedby":zt,"data-rbd-drag-handle-draggable-id":gr,"data-rbd-drag-handle-context-id":At,draggable:!1,onDragStart:$i}:null},[At,zt,gr,ni]),Ea=gt(function(Oa){vo.type==="DRAGGING"&&vo.dropping&&Oa.propertyName==="transform"&&ko()},[ko,vo]),Ua=mn(function(){var Oa=wr(vo),ul=vo.type==="DRAGGING"&&vo.dropping?Ea:null,vu={innerRef:je,draggableProps:{"data-rbd-draggable-context-id":At,"data-rbd-draggable-id":gr,style:Oa,onTransitionEnd:ul},dragHandleProps:jo};return vu},[At,jo,gr,vo,Ea,je]),bl=mn(function(){return{draggableId:Zn.id,type:Zn.type,source:{index:Zn.index,droppableId:Zn.droppableId}}},[Zn.droppableId,Zn.id,Zn.index,Zn.type]);return Wn(Ua,vo.snapshot,bl)}var lo=function(we,Le){return we===Le},No=function(we){var Le=we.combine,je=we.destination;return je?je.droppableId:Le?Le.droppableId:null},Jo=function(Le){return Le.combine?Le.combine.draggableId:null},uo=function(Le){return Le.at&&Le.at.type==="COMBINE"?Le.at.combine.draggableId:null};function ya(){var we=mi(function(Lt,At){return{x:Lt,y:At}}),Le=mi(function(Lt,At,zt,Kt,_n){return{isDragging:!0,isClone:At,isDropAnimating:!!_n,dropAnimation:_n,mode:Lt,draggingOver:zt,combineWith:Kt,combineTargetFor:null}}),je=mi(function(Lt,At,zt,Kt,_n,rr,Jn){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:_n,combineWith:rr,mode:At,offset:Lt,dimension:zt,forceShouldAnimate:Jn,snapshot:Le(At,Kt,_n,rr,null)}}}),ut=function(At,zt){if(At.isDragging){if(At.critical.draggable.id!==zt.draggableId)return null;var Kt=At.current.client.offset,_n=At.dimensions.draggables[zt.draggableId],rr=as(At.impact),Jn=uo(At.impact),Zn=At.forceShouldAnimate;return je(we(Kt.x,Kt.y),At.movementMode,_n,zt.isClone,rr,Jn,Zn)}if(At.phase==="DROP_ANIMATING"){var Wn=At.completed;if(Wn.result.draggableId!==zt.draggableId)return null;var gr=zt.isClone,ni=At.dimensions.draggables[zt.draggableId],Hi=Wn.result,Yi=Hi.mode,io=No(Hi),vo=Jo(Hi),ko=At.dropDuration,Po={duration:ko,curve:Uu.drop,moveTo:At.newHomeClientOffset,opacity:vo?gl.opacity.drop:null,scale:vo?gl.scale.drop:null};return{mapped:{type:"DRAGGING",offset:At.newHomeClientOffset,dimension:ni,dropping:Po,draggingOver:io,combineWith:vo,mode:Yi,forceShouldAnimate:null,snapshot:Le(Yi,gr,io,vo,Po)}}}return null};return ut}function bs(we){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:we,combineWith:null}}var Al={mapped:{type:"SECONDARY",offset:Ci,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:bs(null)}};function Ms(){var we=mi(function(zt,Kt){return{x:zt,y:Kt}}),Le=mi(bs),je=mi(function(zt,Kt,_n){return Kt===void 0&&(Kt=null),{mapped:{type:"SECONDARY",offset:zt,combineTargetFor:Kt,shouldAnimateDisplacement:_n,snapshot:Le(Kt)}}}),ut=function(Kt){return Kt?je(Ci,Kt,!0):null},Lt=function(Kt,_n,rr,Jn){var Zn=rr.displaced.visible[Kt],Wn=!!(Jn.inVirtualList&&Jn.effected[Kt]),gr=hi(rr),ni=gr&&gr.draggableId===Kt?_n:null;if(!Zn){if(!Wn)return ut(ni);if(rr.displaced.invisible[Kt])return null;var Hi=si(Jn.displacedBy.point),Yi=we(Hi.x,Hi.y);return je(Yi,ni,!0)}if(Wn)return ut(ni);var io=rr.displacedBy.point,vo=we(io.x,io.y);return je(vo,ni,Zn.shouldAnimate)},At=function(Kt,_n){if(Kt.isDragging)return Kt.critical.draggable.id===_n.draggableId?null:Lt(_n.draggableId,Kt.critical.draggable.id,Kt.impact,Kt.afterCritical);if(Kt.phase==="DROP_ANIMATING"){var rr=Kt.completed;return rr.result.draggableId===_n.draggableId?null:Lt(_n.draggableId,rr.result.draggableId,rr.impact,rr.afterCritical)}return null};return At}var Nu=function(){var Le=ya(),je=Ms(),ut=function(At,zt){return Le(At,zt)||je(At,zt)||Al};return ut},ql={dropAnimationFinished:Ec},yl=sn(Nu,ql,null,{context:Ju,pure:!0,areStatePropsEqual:lo})(xo);function Lu(we){var Le=qa(kd),je=Le.isUsingCloneFor;return je===we.draggableId&&!we.isClone?null:oe.createElement(yl,we)}function Hl(we){var Le=typeof we.isDragDisabled=="boolean"?!we.isDragDisabled:!0,je=!!we.disableInteractiveElementBlocking,ut=!!we.shouldRespectForcePress;return oe.createElement(Lu,(0,ke.Z)({},we,{isClone:!1,isEnabled:Le,canDragInteractiveElements:je,shouldRespectForcePress:ut}))}function Sl(we){var Le=(0,oe.useContext)(Vh);Le||Tn(!1);var je=Le.contextId,ut=Le.isMovementAllowed,Lt=(0,oe.useRef)(null),At=(0,oe.useRef)(null),zt=we.children,Kt=we.droppableId,_n=we.type,rr=we.mode,Jn=we.direction,Zn=we.ignoreContainerClipping,Wn=we.isDropDisabled,gr=we.isCombineEnabled,ni=we.snapshot,Hi=we.useClone,Yi=we.updateViewportMaxScroll,io=we.getContainerForClone,vo=gt(function(){return Lt.current},[]),ko=gt(function(ku){Lt.current=ku},[]),Po=gt(function(){return At.current},[]),jo=gt(function(ku){At.current=ku},[]);xe({props:we,getDroppableRef:vo,getPlaceholderRef:Po});var Ea=gt(function(){ut()&&Yi({maxScroll:Ao()})},[ut,Yi]);wp({droppableId:Kt,type:_n,mode:rr,direction:Jn,isDropDisabled:Wn,isCombineEnabled:gr,ignoreContainerClipping:Zn,getDroppableRef:vo});var Ua=oe.createElement(Ze,{on:we.placeholder,shouldAnimate:we.shouldAnimatePlaceholder},function(ku){var qc=ku.onClose,fc=ku.data,tc=ku.animate;return oe.createElement(ig,{placeholder:fc,onClose:qc,innerRef:jo,animate:tc,contextId:je,onTransitionEnd:Ea})}),bl=mn(function(){return{innerRef:ko,placeholder:Ua,droppableProps:{"data-rbd-droppable-id":Kt,"data-rbd-droppable-context-id":je}}},[je,Kt,Ua,ko]),Oa=Hi?Hi.dragging.draggableId:null,ul=mn(function(){return{droppableId:Kt,type:_n,isUsingCloneFor:Oa}},[Kt,Oa,_n]);function vu(){if(!Hi)return null;var ku=Hi.dragging,qc=Hi.render,fc=oe.createElement(Lu,{draggableId:ku.draggableId,index:ku.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(tc,Gl){return qc(tc,Gl,ku)});return Zt.createPortal(fc,io())}return oe.createElement(kd.Provider,{value:ul},zt(bl,ni),vu())}var Ma=function(Le,je){return Le===je.droppable.type},Os=function(Le,je){return je.draggables[Le.draggable.id]},Dl=function(){var Le={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},je=(0,ke.Z)({},Le,{shouldAnimatePlaceholder:!1}),ut=mi(function(zt){return{draggableId:zt.id,type:zt.type,source:{index:zt.index,droppableId:zt.droppableId}}}),Lt=mi(function(zt,Kt,_n,rr,Jn,Zn){var Wn=Jn.descriptor.id,gr=Jn.descriptor.droppableId===zt;if(gr){var ni=Zn?{render:Zn,dragging:ut(Jn.descriptor)}:null,Hi={isDraggingOver:_n,draggingOverWith:_n?Wn:null,draggingFromThisWith:Wn,isUsingPlaceholder:!0};return{placeholder:Jn.placeholder,shouldAnimatePlaceholder:!1,snapshot:Hi,useClone:ni}}if(!Kt)return je;if(!rr)return Le;var Yi={isDraggingOver:_n,draggingOverWith:Wn,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:Jn.placeholder,shouldAnimatePlaceholder:!0,snapshot:Yi,useClone:null}}),At=function(Kt,_n){var rr=_n.droppableId,Jn=_n.type,Zn=!_n.isDropDisabled,Wn=_n.renderClone;if(Kt.isDragging){var gr=Kt.critical;if(!Ma(Jn,gr))return je;var ni=Os(gr,Kt.dimensions),Hi=as(Kt.impact)===rr;return Lt(rr,Zn,Hi,Hi,ni,Wn)}if(Kt.phase==="DROP_ANIMATING"){var Yi=Kt.completed;if(!Ma(Jn,Yi.critical))return je;var io=Os(Yi.critical,Kt.dimensions);return Lt(rr,Zn,No(Yi.result)===rr,as(Yi.impact)===rr,io,Wn)}if(Kt.phase==="IDLE"&&Kt.completed&&!Kt.shouldFlush){var vo=Kt.completed;if(!Ma(Jn,vo.critical))return je;var ko=as(vo.impact)===rr,Po=!!(vo.impact.at&&vo.impact.at.type==="COMBINE"),jo=vo.critical.droppable.id===rr;return ko?Po?Le:je:jo?Le:je}return je};return At},zl={updateViewportMaxScroll:Va};function wc(){return document.body||Tn(!1),document.body}var Fs={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:wc},ec=sn(Dl,zl,null,{context:Ju,pure:!0,areStatePropsEqual:lo})(Sl);ec.defaultProps=Fs},38486:function(We,Ee){"use strict";var ae;var oe=60103,Pe=60106,Ie=60107,ke=60108,Ve=60114,Te=60109,Ge=60110,lt=60112,Ke=60113,He=60120,St=60115,$e=60116,It=60121,Fe=60122,te=60117,ee=60129,he=60131;if(typeof Symbol=="function"&&Symbol.for){var ue=Symbol.for;oe=ue("react.element"),Pe=ue("react.portal"),Ie=ue("react.fragment"),ke=ue("react.strict_mode"),Ve=ue("react.profiler"),Te=ue("react.provider"),Ge=ue("react.context"),lt=ue("react.forward_ref"),Ke=ue("react.suspense"),He=ue("react.suspense_list"),St=ue("react.memo"),$e=ue("react.lazy"),It=ue("react.block"),Fe=ue("react.server.block"),te=ue("react.fundamental"),ee=ue("react.debug_trace_mode"),he=ue("react.legacy_hidden")}function fe(vt){if(typeof vt=="object"&&vt!==null){var wt=vt.$$typeof;switch(wt){case oe:switch(vt=vt.type,vt){case Ie:case Ve:case ke:case Ke:case He:return vt;default:switch(vt=vt&&vt.$$typeof,vt){case Ge:case lt:case $e:case St:case Te:return vt;default:return wt}}case Pe:return wt}}}var me=Te,be=oe,Ae=lt,De=Ie,Ye=$e,nt=St,Je=Pe,ot=Ve,mt=ke,it=Ke;ae=Ge,ae=me,ae=be,ae=Ae,ae=De,ae=Ye,ae=nt,ae=Je,ae=ot,ae=mt,ae=it,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)===Ie},ae=function(vt){return fe(vt)===$e},ae=function(vt){return fe(vt)===St},ae=function(vt){return fe(vt)===Pe},ae=function(vt){return fe(vt)===Ve},ae=function(vt){return fe(vt)===ke},ae=function(vt){return fe(vt)===Ke},ae=function(vt){return typeof vt=="string"||typeof vt=="function"||vt===Ie||vt===Ve||vt===ee||vt===ke||vt===Ke||vt===He||vt===he||typeof vt=="object"&&vt!==null&&(vt.$$typeof===$e||vt.$$typeof===St||vt.$$typeof===Te||vt.$$typeof===Ge||vt.$$typeof===lt||vt.$$typeof===te||vt.$$typeof===It||vt[0]===Fe)},ae=fe},53410:function(We,Ee,ae){"use strict";We.exports=ae(38486)},77596:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return ft}});var oe=ae(39224),Pe=ae(62730),Ie=ae(87075),ke=ae(59301),Ve=ae(71409);function Te(ct,Jt){var fn=Object.keys(ct);if(Object.getOwnPropertySymbols){var kt=Object.getOwnPropertySymbols(ct);Jt&&(kt=kt.filter(function(bn){return Object.getOwnPropertyDescriptor(ct,bn).enumerable})),fn.push.apply(fn,kt)}return fn}function Ge(ct){for(var Jt=1;Jt<arguments.length;Jt++){var fn=arguments[Jt]!=null?arguments[Jt]:{};Jt%2?Te(Object(fn),!0).forEach(function(kt){(0,Ie.Z)(ct,kt,fn[kt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ct,Object.getOwnPropertyDescriptors(fn)):Te(Object(fn)).forEach(function(kt){Object.defineProperty(ct,kt,Object.getOwnPropertyDescriptor(fn,kt))})}return ct}function lt(ct){var Jt=ct.length;if(Jt===0||Jt===1)return ct;if(Jt===2)return[ct[0],ct[1],"".concat(ct[0],".").concat(ct[1]),"".concat(ct[1],".").concat(ct[0])];if(Jt===3)return[ct[0],ct[1],ct[2],"".concat(ct[0],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[0]),"".concat(ct[1],".").concat(ct[2]),"".concat(ct[2],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[1],".").concat(ct[2]),"".concat(ct[0],".").concat(ct[2],".").concat(ct[1]),"".concat(ct[1],".").concat(ct[0],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[2],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[0],".").concat(ct[1]),"".concat(ct[2],".").concat(ct[1],".").concat(ct[0])];if(Jt>=4)return[ct[0],ct[1],ct[2],ct[3],"".concat(ct[0],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[2]),"".concat(ct[0],".").concat(ct[3]),"".concat(ct[1],".").concat(ct[0]),"".concat(ct[1],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[3]),"".concat(ct[2],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[1]),"".concat(ct[2],".").concat(ct[3]),"".concat(ct[3],".").concat(ct[0]),"".concat(ct[3],".").concat(ct[1]),"".concat(ct[3],".").concat(ct[2]),"".concat(ct[0],".").concat(ct[1],".").concat(ct[2]),"".concat(ct[0],".").concat(ct[1],".").concat(ct[3]),"".concat(ct[0],".").concat(ct[2],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[2],".").concat(ct[3]),"".concat(ct[0],".").concat(ct[3],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[3],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[0],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[0],".").concat(ct[3]),"".concat(ct[1],".").concat(ct[2],".").concat(ct[0]),"".concat(ct[1],".").concat(ct[2],".").concat(ct[3]),"".concat(ct[1],".").concat(ct[3],".").concat(ct[0]),"".concat(ct[1],".").concat(ct[3],".").concat(ct[2]),"".concat(ct[2],".").concat(ct[0],".").concat(ct[1]),"".concat(ct[2],".").concat(ct[0],".").concat(ct[3]),"".concat(ct[2],".").concat(ct[1],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[1],".").concat(ct[3]),"".concat(ct[2],".").concat(ct[3],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[3],".").concat(ct[1]),"".concat(ct[3],".").concat(ct[0],".").concat(ct[1]),"".concat(ct[3],".").concat(ct[0],".").concat(ct[2]),"".concat(ct[3],".").concat(ct[1],".").concat(ct[0]),"".concat(ct[3],".").concat(ct[1],".").concat(ct[2]),"".concat(ct[3],".").concat(ct[2],".").concat(ct[0]),"".concat(ct[3],".").concat(ct[2],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[1],".").concat(ct[2],".").concat(ct[3]),"".concat(ct[0],".").concat(ct[1],".").concat(ct[3],".").concat(ct[2]),"".concat(ct[0],".").concat(ct[2],".").concat(ct[1],".").concat(ct[3]),"".concat(ct[0],".").concat(ct[2],".").concat(ct[3],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[3],".").concat(ct[1],".").concat(ct[2]),"".concat(ct[0],".").concat(ct[3],".").concat(ct[2],".").concat(ct[1]),"".concat(ct[1],".").concat(ct[0],".").concat(ct[2],".").concat(ct[3]),"".concat(ct[1],".").concat(ct[0],".").concat(ct[3],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[2],".").concat(ct[0],".").concat(ct[3]),"".concat(ct[1],".").concat(ct[2],".").concat(ct[3],".").concat(ct[0]),"".concat(ct[1],".").concat(ct[3],".").concat(ct[0],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[3],".").concat(ct[2],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[0],".").concat(ct[1],".").concat(ct[3]),"".concat(ct[2],".").concat(ct[0],".").concat(ct[3],".").concat(ct[1]),"".concat(ct[2],".").concat(ct[1],".").concat(ct[0],".").concat(ct[3]),"".concat(ct[2],".").concat(ct[1],".").concat(ct[3],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[3],".").concat(ct[0],".").concat(ct[1]),"".concat(ct[2],".").concat(ct[3],".").concat(ct[1],".").concat(ct[0]),"".concat(ct[3],".").concat(ct[0],".").concat(ct[1],".").concat(ct[2]),"".concat(ct[3],".").concat(ct[0],".").concat(ct[2],".").concat(ct[1]),"".concat(ct[3],".").concat(ct[1],".").concat(ct[0],".").concat(ct[2]),"".concat(ct[3],".").concat(ct[1],".").concat(ct[2],".").concat(ct[0]),"".concat(ct[3],".").concat(ct[2],".").concat(ct[0],".").concat(ct[1]),"".concat(ct[3],".").concat(ct[2],".").concat(ct[1],".").concat(ct[0])]}var Ke={};function He(ct){if(ct.length===0||ct.length===1)return ct;var Jt=ct.join(".");return Ke[Jt]||(Ke[Jt]=lt(ct)),Ke[Jt]}function St(ct){var Jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fn=arguments.length>2?arguments[2]:void 0,kt=ct.filter(function(An){return An!=="token"}),bn=He(kt);return bn.reduce(function(An,Yn){return Ge(Ge({},An),fn[Yn])},Jt)}function $e(ct){return ct.join(" ")}function It(ct,Jt){var fn=0;return function(kt){return fn+=1,kt.map(function(bn,An){return Fe({node:bn,stylesheet:ct,useInlineStyles:Jt,key:"code-segment-".concat(fn,"-").concat(An)})})}}function Fe(ct){var Jt=ct.node,fn=ct.stylesheet,kt=ct.style,bn=kt===void 0?{}:kt,An=ct.useInlineStyles,Yn=ct.key,Vt=Jt.properties,Bn=Jt.type,Mt=Jt.tagName,Hn=Jt.value;if(Bn==="text")return Hn;if(Mt){var ur=It(fn,An),at;if(!An)at=Ge(Ge({},Vt),{},{className:$e(Vt.className)});else{var _e=Object.keys(fn).reduce(function(Be,Et){return Et.split(".").forEach(function(En){Be.includes(En)||Be.push(En)}),Be},[]),Re=Vt.className&&Vt.className.includes("token")?["token"]:[],Xe=Vt.className&&Re.concat(Vt.className.filter(function(Be){return!_e.includes(Be)}));at=Ge(Ge({},Vt),{},{className:$e(Xe)||void 0,style:St(Vt.className,Object.assign({},Vt.style,bn),fn)})}var st=ur(Jt.children);return ke.createElement(Mt,(0,Ve.Z)({key:Yn},at),st)}}var te=function(ct,Jt){var fn=ct.listLanguages();return fn.indexOf(Jt)!==-1},ee=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function he(ct,Jt){var fn=Object.keys(ct);if(Object.getOwnPropertySymbols){var kt=Object.getOwnPropertySymbols(ct);Jt&&(kt=kt.filter(function(bn){return Object.getOwnPropertyDescriptor(ct,bn).enumerable})),fn.push.apply(fn,kt)}return fn}function ue(ct){for(var Jt=1;Jt<arguments.length;Jt++){var fn=arguments[Jt]!=null?arguments[Jt]:{};Jt%2?he(Object(fn),!0).forEach(function(kt){(0,Ie.Z)(ct,kt,fn[kt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ct,Object.getOwnPropertyDescriptors(fn)):he(Object(fn)).forEach(function(kt){Object.defineProperty(ct,kt,Object.getOwnPropertyDescriptor(fn,kt))})}return ct}var fe=/\n/g;function me(ct){return ct.match(fe)}function be(ct){var Jt=ct.lines,fn=ct.startingLineNumber,kt=ct.style;return Jt.map(function(bn,An){var Yn=An+fn;return ke.createElement("span",{key:"line-".concat(An),className:"react-syntax-highlighter-line-number",style:typeof kt=="function"?kt(Yn):kt},"".concat(Yn,`
`))})}function Ae(ct){var Jt=ct.codeString,fn=ct.codeStyle,kt=ct.containerStyle,bn=kt===void 0?{float:"left",paddingRight:"10px"}:kt,An=ct.numberStyle,Yn=An===void 0?{}:An,Vt=ct.startingLineNumber;return ke.createElement("code",{style:Object.assign({},fn,bn)},be({lines:Jt.replace(/\n$/,"").split(`
`),style:Yn,startingLineNumber:Vt}))}function De(ct){return"".concat(ct.toString().length,".25em")}function Ye(ct,Jt){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(ct),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:Jt},children:[{type:"text",value:ct}]}}function nt(ct,Jt,fn){var kt={display:"inline-block",minWidth:De(fn),paddingRight:"1em",textAlign:"right",userSelect:"none"},bn=typeof ct=="function"?ct(Jt):ct,An=ue(ue({},kt),bn);return An}function Je(ct){var Jt=ct.children,fn=ct.lineNumber,kt=ct.lineNumberStyle,bn=ct.largestLineNumber,An=ct.showInlineLineNumbers,Yn=ct.lineProps,Vt=Yn===void 0?{}:Yn,Bn=ct.className,Mt=Bn===void 0?[]:Bn,Hn=ct.showLineNumbers,ur=ct.wrapLongLines,at=ct.wrapLines,_e=at===void 0?!1:at,Re=_e?ue({},typeof Vt=="function"?Vt(fn):Vt):{};if(Re.className=Re.className?[].concat((0,Pe.Z)(Re.className.trim().split(/\s+/)),(0,Pe.Z)(Mt)):Mt,fn&&An){var Xe=nt(kt,fn,bn);Jt.unshift(Ye(fn,Xe))}return ur&Hn&&(Re.style=ue({display:"flex"},Re.style)),{type:"element",tagName:"span",properties:Re,children:Jt}}function ot(ct){for(var Jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],fn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],kt=0;kt<ct.length;kt++){var bn=ct[kt];if(bn.type==="text")fn.push(Je({children:[bn],className:(0,Pe.Z)(new Set(Jt))}));else if(bn.children){var An=Jt.concat(bn.properties.className);ot(bn.children,An).forEach(function(Yn){return fn.push(Yn)})}}return fn}function mt(ct,Jt,fn,kt,bn,An,Yn,Vt,Bn){var Mt,Hn=ot(ct.value),ur=[],at=-1,_e=0;function Re(Mn,Dt){var _t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Je({children:Mn,lineNumber:Dt,lineNumberStyle:Vt,largestLineNumber:Yn,showInlineLineNumbers:bn,lineProps:fn,className:_t,showLineNumbers:kt,wrapLongLines:Bn,wrapLines:Jt})}function Xe(Mn,Dt){if(kt&&Dt&&bn){var _t=nt(Vt,Dt,Yn);Mn.unshift(Ye(Dt,_t))}return Mn}function st(Mn,Dt){var _t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Jt||_t.length>0?Re(Mn,Dt,_t):Xe(Mn,Dt)}for(var Be=function(){var Dt=Hn[_e],_t=Dt.children[0].value,jt=me(_t);if(jt){var dn=_t.split(`
`);dn.forEach(function(Sn,gn){var Ot=kt&&ur.length+An,Pn={type:"text",value:"".concat(Sn,`
`)};if(gn===0){var Zt=Hn.slice(at+1,_e).concat(Je({children:[Pn],className:Dt.properties.className})),tn=st(Zt,Ot);ur.push(tn)}else if(gn===dn.length-1){var vn=Hn[_e+1]&&Hn[_e+1].children&&Hn[_e+1].children[0],$n={type:"text",value:"".concat(Sn)};if(vn){var mn=Je({children:[$n],className:Dt.properties.className});Hn.splice(_e+1,0,mn)}else{var gt=[$n],Xn=st(gt,Ot,Dt.properties.className);ur.push(Xn)}}else{var ir=[Pn],nn=st(ir,Ot,Dt.properties.className);ur.push(nn)}}),at=_e}_e++};_e<Hn.length;)Be();if(at!==Hn.length-1){var Et=Hn.slice(at+1,Hn.length);if(Et&&Et.length){var En=kt&&ur.length+An,sn=st(Et,En);ur.push(sn)}}return Jt?ur:(Mt=[]).concat.apply(Mt,ur)}function it(ct){var Jt=ct.rows,fn=ct.stylesheet,kt=ct.useInlineStyles;return Jt.map(function(bn,An){return Fe({node:bn,stylesheet:fn,useInlineStyles:kt,key:"code-segement".concat(An)})})}function vt(ct){return ct&&typeof ct.highlightAuto!="undefined"}function wt(ct){var Jt=ct.astGenerator,fn=ct.language,kt=ct.code,bn=ct.defaultCodeValue;if(vt(Jt)){var An=te(Jt,fn);return fn==="text"?{value:bn,language:"text"}:An?Jt.highlight(fn,kt):Jt.highlightAuto(kt)}try{return fn&&fn!=="text"?{value:Jt.highlight(kt,fn)}:{value:bn}}catch(Yn){return{value:bn}}}function Nt(ct,Jt){return function(kt){var bn=kt.language,An=kt.children,Yn=kt.style,Vt=Yn===void 0?Jt:Yn,Bn=kt.customStyle,Mt=Bn===void 0?{}:Bn,Hn=kt.codeTagProps,ur=Hn===void 0?{className:bn?"language-".concat(bn):void 0,style:ue(ue({},Vt['code[class*="language-"]']),Vt['code[class*="language-'.concat(bn,'"]')])}:Hn,at=kt.useInlineStyles,_e=at===void 0?!0:at,Re=kt.showLineNumbers,Xe=Re===void 0?!1:Re,st=kt.showInlineLineNumbers,Be=st===void 0?!0:st,Et=kt.startingLineNumber,En=Et===void 0?1:Et,sn=kt.lineNumberContainerStyle,Mn=kt.lineNumberStyle,Dt=Mn===void 0?{}:Mn,_t=kt.wrapLines,jt=kt.wrapLongLines,dn=jt===void 0?!1:jt,Sn=kt.lineProps,gn=Sn===void 0?{}:Sn,Ot=kt.renderer,Pn=kt.PreTag,Zt=Pn===void 0?"pre":Pn,tn=kt.CodeTag,vn=tn===void 0?"code":tn,$n=kt.code,mn=$n===void 0?(Array.isArray(An)?An[0]:An)||"":$n,gt=kt.astGenerator,Xn=(0,oe.Z)(kt,ee);gt=gt||ct;var ir=Xe?ke.createElement(Ae,{containerStyle:sn,codeStyle:ur.style||{},numberStyle:Dt,startingLineNumber:En,codeString:mn}):null,nn=Vt.hljs||Vt['pre[class*="language-"]']||{backgroundColor:"#fff"},vr=vt(gt)?"hljs":"prismjs",$r=_e?Object.assign({},Xn,{style:Object.assign({},nn,Mt)}):Object.assign({},Xn,{className:Xn.className?"".concat(vr," ").concat(Xn.className):vr,style:Object.assign({},Mt)});if(dn?ur.style=ue({whiteSpace:"pre-wrap"},ur.style):ur.style=ue({whiteSpace:"pre"},ur.style),!gt)return ke.createElement(Zt,$r,ir,ke.createElement(vn,ur,mn));(_t===void 0&&Ot||dn)&&(_t=!0),Ot=Ot||it;var Lr=[{type:"text",value:mn}],Rn=wt({astGenerator:gt,language:bn,code:mn,defaultCodeValue:Lr});Rn.language===null&&(Rn.value=Lr);var ei=Rn.value.length;ei===1&&Rn.value[0].type==="text"&&(ei=Rn.value[0].value.split(`
`).length);var Jr=ei+En,nr=mt(Rn,_t,gn,Xe,Be,En,Jr,Dt,dn);return ke.createElement(Zt,$r,ke.createElement(vn,ur,!Be&&ir,Ot({rows:nr,stylesheet:Vt,useInlineStyles:_e})))}}var Ht={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}},Qt=ae(11594),Yt=ae.n(Qt),yn=["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=Nt(Yt(),Ht);bt.supportedLanguages=yn;var ft=bt},14179:function(We,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(We,Ee,ae){"use strict";ae(84126);var oe=ae(59301),Pe=60103;if(Ee.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var Ie=Symbol.for;Pe=Ie("react.element"),Ee.Fragment=Ie("react.fragment")}var ke=oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ve=Object.prototype.hasOwnProperty,Te={key:!0,ref:!0,__self:!0,__source:!0};function Ge(lt,Ke,He){var St,$e={},It=null,Fe=null;He!==void 0&&(It=""+He),Ke.key!==void 0&&(It=""+Ke.key),Ke.ref!==void 0&&(Fe=Ke.ref);for(St in Ke)Ve.call(Ke,St)&&!Te.hasOwnProperty(St)&&($e[St]=Ke[St]);if(lt&&lt.defaultProps)for(St in Ke=lt.defaultProps,Ke)$e[St]===void 0&&($e[St]=Ke[St]);return{$$typeof:Pe,type:lt,key:It,ref:Fe,props:$e,_owner:ke.current}}Ee.jsx=Ge,Ee.jsxs=Ge},37712:function(We,Ee,ae){"use strict";We.exports=ae(19524)},95489:function(We,Ee,ae){"use strict";var oe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof ae.g=="object"?ae.g:{},Pe=Ae();oe.Prism={manual:!0,disableWorkerMessageHandler:!0};var Ie=ae(43621),ke=ae(12256),Ve=ae(68398),Te=ae(70614),Ge=ae(54212),lt=ae(9720),Ke=ae(88786);Pe();var He={}.hasOwnProperty;function St(){}St.prototype=Ve;var $e=new St;We.exports=$e,$e.highlight=te,$e.register=It,$e.alias=Fe,$e.registered=ee,$e.listLanguages=he,It(Te),It(Ge),It(lt),It(Ke),$e.util.encode=me,$e.Token.stringify=ue;function It(De){if(typeof De!="function"||!De.displayName)throw new Error("Expected `function` for `grammar`, got `"+De+"`");$e.languages[De.displayName]===void 0&&De($e)}function Fe(De,Ye){var nt=$e.languages,Je=De,ot,mt,it,vt;Ye&&(Je={},Je[De]=Ye);for(ot in Je)for(mt=Je[ot],mt=typeof mt=="string"?[mt]:mt,it=mt.length,vt=-1;++vt<it;)nt[mt[vt]]=nt[ot]}function te(De,Ye){var nt=Ve.highlight,Je;if(typeof De!="string")throw new Error("Expected `string` for `value`, got `"+De+"`");if($e.util.type(Ye)==="Object")Je=Ye,Ye=null;else{if(typeof Ye!="string")throw new Error("Expected `string` for `name`, got `"+Ye+"`");if(He.call($e.languages,Ye))Je=$e.languages[Ye];else throw new Error("Unknown language: `"+Ye+"` is not registered")}return nt.call(this,De,Je,Ye)}function ee(De){if(typeof De!="string")throw new Error("Expected `string` for `language`, got `"+De+"`");return He.call($e.languages,De)}function he(){var De=$e.languages,Ye=[],nt;for(nt in De)He.call(De,nt)&&typeof De[nt]=="object"&&Ye.push(nt);return Ye}function ue(De,Ye,nt){var Je;return typeof De=="string"?{type:"text",value:De}:$e.util.type(De)==="Array"?fe(De,Ye):(Je={type:De.type,content:$e.Token.stringify(De.content,Ye,nt),tag:"span",classes:["token",De.type],attributes:{},language:Ye,parent:nt},De.alias&&(Je.classes=Je.classes.concat(De.alias)),$e.hooks.run("wrap",Je),Ie(Je.tag+"."+Je.classes.join("."),be(Je.attributes),Je.content))}function fe(De,Ye){for(var nt=[],Je=De.length,ot=-1,mt;++ot<Je;)mt=De[ot],mt!==""&&mt!==null&&mt!==void 0&&nt.push(mt);for(ot=-1,Je=nt.length;++ot<Je;)mt=nt[ot],nt[ot]=$e.Token.stringify(mt,Ye,nt);return nt}function me(De){return De}function be(De){var Ye;for(Ye in De)De[Ye]=ke(De[Ye]);return De}function Ae(){var De="Prism"in oe,Ye=De?oe.Prism:void 0;return nt;function nt(){De?oe.Prism=Ye:delete oe.Prism,De=void 0,Ye=void 0}}},11594:function(We,Ee,ae){"use strict";var oe=ae(95489);We.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(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="abnf",Ee.aliases=[];function Ee(ae){(function(oe){var Pe="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";oe.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+Pe+"|<"+Pe+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(ae)}},42746:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We,Ee,ae){"use strict";var oe=ae(69435);We.exports=Pe,Pe.displayName="apex",Pe.aliases=[];function Pe(Ie){Ie.register(oe),function(ke){var Ve=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,Te=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return Ve.source});function Ge(Ke){return RegExp(Ke.replace(/<CLASS-NAME>/g,function(){return Te}),"i")}var lt={keyword:Ve,punctuation:/[()\[\]{};,:.<>]/};ke.languages.apex={comment:ke.languages.clike.comment,string:ke.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:ke.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern: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:Ve,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(Ie)}},4248:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We,Ee,ae){"use strict";var oe=ae(87071);We.exports=Pe,Pe.displayName="arduino",Pe.aliases=["ino"];function Pe(Ie){Ie.register(oe),Ie.languages.arduino=Ie.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),Ie.languages.ino=Ie.languages.arduino}},22956:function(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="asciidoc",Ee.aliases=["adoc"];function Ee(ae){(function(oe){var Pe={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},Ie=oe.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:Pe,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:Pe.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:Pe,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function ke(Ve){Ve=Ve.split(" ");for(var Te={},Ge=0,lt=Ve.length;Ge<lt;Ge++)Te[Ve[Ge]]=Ie[Ve[Ge]];return Te}Pe.inside.interpreted.inside.rest=ke("macro inline replacement entity"),Ie["passthrough-block"].inside.rest=ke("macro"),Ie["literal-block"].inside.rest=ke("callout"),Ie.table.inside.rest=ke("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),Ie["other-block"].inside.rest=ke("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),Ie.title.inside.rest=ke("macro inline replacement entity"),oe.hooks.add("wrap",function(Ve){Ve.type==="entity"&&(Ve.attributes.title=Ve.content.value.replace(/&amp;/,"&"))}),oe.languages.adoc=oe.languages.asciidoc})(ae)}},45652:function(We){"use strict";We.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(We){"use strict";We.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(We,Ee,ae){"use strict";var oe=ae(87648);We.exports=Pe,Pe.displayName="aspnet",Pe.aliases=[];function Pe(Ie){Ie.register(oe),Ie.languages.aspnet=Ie.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:Ie.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:Ie.languages.csharp}}}),Ie.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,Ie.languages.insertBefore("inside","punctuation",{directive:Ie.languages.aspnet.directive},Ie.languages.aspnet.tag.inside["attr-value"]),Ie.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),Ie.languages.insertBefore("aspnet",Ie.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:Ie.languages.csharp||{}}})}},20803:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="avisynth",Ee.aliases=["avs"];function Ee(ae){(function(oe){function Pe(Ke,He){return Ke.replace(/<<(\d+)>>/g,function(St,$e){return He[+$e]})}function Ie(Ke,He,St){return RegExp(Pe(Ke,He),St||"")}var ke=/bool|clip|float|int|string|val/.source,Ve=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),Te=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),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=[Ve,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:Ie(/\b(?:<<0>>)\s+("?)\w+\1/.source,[ke],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:Ie(/\b(?:<<0>>)\b/.source,[lt],"i"),alias:"function"},"type-cast":{pattern:Ie(/\b(?:<<0>>)(?=\s*\()/.source,[ke],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},oe.languages.avs=oe.languages.avisynth})(ae)}},79571:function(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="bash",Ee.aliases=["shell"];function Ee(ae){(function(oe){var Pe="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",Ie={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},ke={bash:Ie,environment:{pattern:RegExp("\\$"+Pe),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+Pe),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};oe.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+Pe),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:ke},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:Ie}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:ke},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:ke.entity}}],environment:{pattern:RegExp("\\$?"+Pe),alias:"constant"},variable:ke.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},Ie.inside=oe.languages.bash;for(var Ve=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],Te=ke.variable[1].inside,Ge=0;Ge<Ve.length;Ge++)Te[Ve[Ge]]=oe.languages.bash[Ve[Ge]];oe.languages.shell=oe.languages.bash})(ae)}},51422:function(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="batch",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/%%?[~:\w]+%?|!\S+!/,Ie={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},ke=/"(?:[\\"]"|[^"])*"(?!")/,Ve=/(?:\b|-)\d+\b/;oe.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:ke,parameter:Ie,variable:Pe,number:Ve,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:ke,parameter:Ie,variable:Pe,number:Ve,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:ke,parameter:Ie,variable:[Pe,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:Ve,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:ke,parameter:Ie,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:Pe,number:Ve,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(ae)}},2505:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We,Ee,ae){"use strict";var oe=ae(79440);We.exports=Pe,Pe.displayName="bison",Pe.aliases=[];function Pe(Ie){Ie.register(oe),Ie.languages.bison=Ie.languages.extend("c",{}),Ie.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:Ie.languages.c}},comment:Ie.languages.c.comment,string:Ie.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}},87994:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We,Ee,ae){"use strict";var oe=ae(87071);We.exports=Pe,Pe.displayName="chaiscript",Pe.aliases=[];function Pe(Ie){Ie.register(oe),Ie.languages.chaiscript=Ie.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[Ie.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),Ie.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),Ie.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:Ie.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}},91372:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="coffeescript",Ee.aliases=["coffee"];function Ee(ae){(function(oe){var Pe=/#(?!\{).+/,Ie={pattern:/#\{[^}]+\}/,alias:"variable"};oe.languages.coffeescript=oe.languages.extend("javascript",{comment:Pe,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:Ie}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),oe.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:Pe,interpolation:Ie}}}),oe.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:oe.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:Ie}}]}),oe.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete oe.languages.coffeescript["template-string"],oe.languages.coffee=oe.languages.coffeescript})(ae)}},35348:function(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="coq",Ee.aliases=[];function Ee(ae){(function(oe){for(var Pe=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,Ie=0;Ie<2;Ie++)Pe=Pe.replace(/<self>/g,function(){return Pe});Pe=Pe.replace(/<self>/g,"[]"),oe.languages.coq={comment:RegExp(Pe),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return Pe})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(Pe),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(ae)}},87071:function(We,Ee,ae){"use strict";var oe=ae(79440);We.exports=Pe,Pe.displayName="cpp",Pe.aliases=[];function Pe(Ie){Ie.register(oe),function(ke){var Ve=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,Te=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return Ve.source});ke.languages.cpp=ke.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return Ve.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:Ve,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),ke.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return Te})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),ke.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:ke.languages.cpp}}}}),ke.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),ke.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:ke.languages.extend("cpp",{})}}),ke.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},ke.languages.cpp["base-clause"])}(Ie)}},13652:function(We,Ee,ae){"use strict";var oe=ae(75308);We.exports=Pe,Pe.displayName="crystal",Pe.aliases=[];function Pe(Ie){Ie.register(oe),function(ke){ke.languages.crystal=ke.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,ke.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),ke.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:ke.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:ke.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(Ie)}},87648:function(We){"use strict";We.exports=Ee,Ee.displayName="csharp",Ee.aliases=["dotnet","cs"];function Ee(ae){(function(oe){function Pe(yn,bt){return yn.replace(/<<(\d+)>>/g,function(ft,ct){return"(?:"+bt[+ct]+")"})}function Ie(yn,bt,ft){return RegExp(Pe(yn,bt),ft||"")}function ke(yn,bt){for(var ft=0;ft<bt;ft++)yn=yn.replace(/<<self>>/g,function(){return"(?:"+yn+")"});return yn.replace(/<<self>>/g,"[^\\s\\S]")}var Ve={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function Te(yn){return"\\b(?:"+yn.trim().replace(/ /g,"|")+")\\b"}var Ge=Te(Ve.typeDeclaration),lt=RegExp(Te(Ve.type+" "+Ve.typeDeclaration+" "+Ve.contextual+" "+Ve.other)),Ke=Te(Ve.typeDeclaration+" "+Ve.contextual+" "+Ve.other),He=Te(Ve.type+" "+Ve.typeDeclaration+" "+Ve.other),St=ke(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),$e=ke(/\((?:[^()]|<<self>>)*\)/.source,2),It=/@?\b[A-Za-z_]\w*\b/.source,Fe=Pe(/<<0>>(?:\s*<<1>>)?/.source,[It,St]),te=Pe(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[Ke,Fe]),ee=/\[\s*(?:,\s*)*\]/.source,he=Pe(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[te,ee]),ue=Pe(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[St,$e,ee]),fe=Pe(/\(<<0>>+(?:,<<0>>+)+\)/.source,[ue]),me=Pe(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[fe,te,ee]),be={keyword: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:Ie(/(^|[^$\\])<<0>>/.source,[Ye]),lookbehind:!0,greedy:!0},{pattern:Ie(/(^|[^@$\\])<<0>>/.source,[De]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:Ie(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[te]),lookbehind:!0,inside:be},{pattern:Ie(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[It,me]),lookbehind:!0,inside:be},{pattern:Ie(/(\busing\s+)<<0>>(?=\s*=)/.source,[It]),lookbehind:!0},{pattern:Ie(/(\b<<0>>\s+)<<1>>/.source,[Ge,Fe]),lookbehind:!0,inside:be},{pattern:Ie(/(\bcatch\s*\(\s*)<<0>>/.source,[te]),lookbehind:!0,inside:be},{pattern:Ie(/(\bwhere\s+)<<0>>/.source,[It]),lookbehind:!0},{pattern:Ie(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[he]),lookbehind:!0,inside:be},{pattern:Ie(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[me,He,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:Ie(/([(,]\s*)<<0>>(?=\s*:)/.source,[It]),lookbehind:!0,alias:"punctuation"}}),oe.languages.insertBefore("csharp","class-name",{namespace:{pattern:Ie(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[It]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:Ie(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[$e]),lookbehind:!0,alias:"class-name",inside:be},"return-type":{pattern:Ie(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[me,te]),inside:be,alias:"class-name"},"constructor-invocation":{pattern:Ie(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[me]),lookbehind:!0,inside:be,alias:"class-name"},"generic-method":{pattern:Ie(/<<0>>\s*<<1>>(?=\s*\()/.source,[It,St]),inside:{function:Ie(/^<<0>>/.source,[It]),generic:{pattern:RegExp(St),alias:"class-name",inside:be}}},"type-list":{pattern:Ie(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[Ge,Fe,It,me,lt.source,$e,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:Ie(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[Fe,$e]),lookbehind:!0,greedy:!0,inside:oe.languages.csharp},keyword: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 nt=De+"|"+Ae,Je=Pe(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[nt]),ot=ke(Pe(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Je]),2),mt=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,it=Pe(/<<0>>(?:\s*\(<<1>>*\))?/.source,[te,ot]);oe.languages.insertBefore("csharp","class-name",{attribute:{pattern:Ie(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[mt,it]),lookbehind:!0,greedy:!0,inside:{target:{pattern:Ie(/^<<0>>(?=\s*:)/.source,[mt]),alias:"keyword"},"attribute-arguments":{pattern:Ie(/\(<<0>>*\)/.source,[ot]),inside:oe.languages.csharp},"class-name":{pattern:RegExp(te),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var vt=/:[^}\r\n]+/.source,wt=ke(Pe(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Je]),2),Nt=Pe(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[wt,vt]),Ht=ke(Pe(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[nt]),2),Qt=Pe(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Ht,vt]);function Yt(yn,bt){return{interpolation:{pattern:Ie(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[yn]),lookbehind:!0,inside:{"format-string":{pattern:Ie(/(^\{(?:(?![}:])<<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:Ie(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[Nt]),lookbehind:!0,greedy:!0,inside:Yt(Nt,wt)},{pattern:Ie(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Qt]),lookbehind:!0,greedy:!0,inside:Yt(Qt,Ht)}],char:{pattern:RegExp(Ae),greedy:!0}}),oe.languages.dotnet=oe.languages.cs=oe.languages.csharp})(ae)}},10617:function(We,Ee,ae){"use strict";var oe=ae(87648);We.exports=Pe,Pe.displayName="cshtml",Pe.aliases=["razor"];function Pe(Ie){Ie.register(oe),function(ke){var Ve=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,Te=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function 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,"(?:"+Ve+")")}var lt=Ge(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),Ke=Ge(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),He=Ge(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),St=Ge(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),$e=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,It=/(?!\d)[^\s>\/=$<%]+/.source+$e+/\s*\/?>/.source,Fe=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+$e+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+It+"|"+Ge(/<\1/.source+$e+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+It+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+It+")";ke.languages.cshtml=ke.languages.extend("markup",{});var te=ke.languages.insertBefore("csharp","string",{html:{pattern:RegExp(Fe),greedy:!0,inside:ke.languages.cshtml}},{csharp:ke.languages.extend("csharp",{})}),ee={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:te};ke.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[He,/(?:code|functions)\s*/.source+He,/(?:for|foreach|lock|switch|using|while)\s*/.source+lt+/\s*/.source+He,/do\s*/.source+He+/\s*while\s*/.source+lt+/(?:\s*;)?/.source,/try\s*/.source+He+/\s*catch\s*/.source+lt+/\s*/.source+He+/\s*finally\s*/.source+He,/if\s*/.source+lt+/\s*/.source+He+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+lt+")?"+/\s*/.source+He+")*"].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+"|"+Ke+"|"+St+lt+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:ee}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),ke.languages.razor=ke.languages.cshtml}(Ie)}},5348:function(We){"use strict";We.exports=Ee,Ee.displayName="csp",Ee.aliases=[];function Ee(ae){(function(oe){function Pe(Ie){return RegExp(/([ \t])/.source+"(?:"+Ie+")"+/(?=[\s;]|$)/.source,"i")}oe.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:Pe(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:Pe(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:Pe(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:Pe(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:Pe(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:Pe(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:Pe(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(ae)}},71053:function(We){"use strict";We.exports=Ee,Ee.displayName="cssExtras",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,Ie;oe.languages.css.selector={pattern:oe.languages.css.selector.pattern,lookbehind:!0,inside:Ie={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+Pe.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[Pe,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},oe.languages.css.atrule.inside["selector-function-argument"].inside=Ie,oe.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var ke={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},Ve={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};oe.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:ke,number:Ve,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:ke,number:Ve})})(ae)}},54212:function(We){"use strict";We.exports=Ee,Ee.displayName="css",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;oe.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+Pe.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+Pe.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+Pe.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:Pe,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},oe.languages.css.atrule.inside.rest=oe.languages.css;var Ie=oe.languages.markup;Ie&&(Ie.tag.addInlined("style","css"),Ie.tag.addAttribute("style","css"))})(ae)}},69820:function(We){"use strict";We.exports=Ee,Ee.displayName="csv",Ee.aliases=[];function Ee(ae){ae.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}},41929:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="dart",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],Ie=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,ke={pattern:RegExp(Ie+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};oe.languages.dart=oe.languages.extend("clike",{"class-name":[ke,{pattern:RegExp(Ie+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:ke.inside}],keyword:Pe,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),oe.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:oe.languages.dart}}},string:/[\s\S]+/}},string:void 0}),oe.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),oe.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":ke,keyword:Pe,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(ae)}},22117:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="diff",Ee.aliases=[];function Ee(ae){(function(oe){oe.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var Pe={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(Pe).forEach(function(Ie){var ke=Pe[Ie],Ve=[];/^\w+$/.test(Ie)||Ve.push(/\w+/.exec(Ie)[0]),Ie==="diff"&&Ve.push("bold"),oe.languages.diff[Ie]={pattern:RegExp("^(?:["+ke+`].*(?:\r
?|
|(?![\\s\\S])))+`,"m"),alias:Ve,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(Ie)[0]}}}}),Object.defineProperty(oe.languages.diff,"PREFIXES",{value:Pe})})(ae)}},32126:function(We,Ee,ae){"use strict";var oe=ae(51478);We.exports=Pe,Pe.displayName="django",Pe.aliases=["jinja2"];function Pe(Ie){Ie.register(oe),function(ke){ke.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var Ve=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,Te=ke.languages["markup-templating"];ke.hooks.add("before-tokenize",function(Ge){Te.buildPlaceholders(Ge,"django",Ve)}),ke.hooks.add("after-tokenize",function(Ge){Te.tokenizePlaceholders(Ge,"django")}),ke.languages.jinja2=ke.languages.django,ke.hooks.add("before-tokenize",function(Ge){Te.buildPlaceholders(Ge,"jinja2",Ve)}),ke.hooks.add("after-tokenize",function(Ge){Te.tokenizePlaceholders(Ge,"jinja2")})}(Ie)}},26737:function(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="docker",Ee.aliases=["dockerfile"];function Ee(ae){(function(oe){var Pe=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,Ie=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return Pe}),ke=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,Ve=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return ke}),Te={pattern:RegExp(ke),greedy:!0},Ge={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function lt(Ke,He){return Ke=Ke.replace(/<OPT>/g,function(){return Ve}).replace(/<SP>/g,function(){return Ie}),RegExp(Ke,He)}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(We){"use strict";We.exports=Ee,Ee.displayName="dot",Ee.aliases=["gv"];function Ee(ae){(function(oe){var Pe="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",Ie={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:oe.languages.markup}};function ke(Ve,Te){return RegExp(Ve.replace(/<ID>/g,function(){return Pe}),Te)}oe.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:ke(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:Ie},"attr-value":{pattern:ke(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:Ie},"attr-name":{pattern:ke(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:Ie},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:ke(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:Ie},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},oe.languages.gv=oe.languages.dot})(ae)}},60841:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We,Ee,ae){"use strict";var oe=ae(51478);We.exports=Pe,Pe.displayName="ejs",Pe.aliases=["eta"];function Pe(Ie){Ie.register(oe),function(ke){ke.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:ke.languages.javascript}},ke.hooks.add("before-tokenize",function(Ve){var Te=/<%(?!%)[\s\S]+?%>/g;ke.languages["markup-templating"].buildPlaceholders(Ve,"ejs",Te)}),ke.hooks.add("after-tokenize",function(Ve){ke.languages["markup-templating"].tokenizePlaceholders(Ve,"ejs")}),ke.languages.eta=ke.languages.ejs}(Ie)}},83125:function(We){"use strict";We.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(We){"use strict";We.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(We,Ee,ae){"use strict";var oe=ae(75308),Pe=ae(51478);We.exports=Ie,Ie.displayName="erb",Ie.aliases=[];function Ie(ke){ke.register(oe),ke.register(Pe),function(Ve){Ve.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:Ve.languages.ruby}},Ve.hooks.add("before-tokenize",function(Te){var Ge=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;Ve.languages["markup-templating"].buildPlaceholders(Te,"erb",Ge)}),Ve.hooks.add("after-tokenize",function(Te){Ve.languages["markup-templating"].tokenizePlaceholders(Te,"erb")})}(ke)}},86549:function(We){"use strict";We.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(We,Ee,ae){"use strict";var oe=ae(33978),Pe=ae(51478);We.exports=Ie,Ie.displayName="etlua",Ie.aliases=[];function Ie(ke){ke.register(oe),ke.register(Pe),function(Ve){Ve.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:Ve.languages.lua}},Ve.hooks.add("before-tokenize",function(Te){var Ge=/<%[\s\S]+?%>/g;Ve.languages["markup-templating"].buildPlaceholders(Te,"etlua",Ge)}),Ve.hooks.add("after-tokenize",function(Te){Ve.languages["markup-templating"].tokenizePlaceholders(Te,"etlua")})}(ke)}},59250:function(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="factor",Ee.aliases=[];function Ee(ae){(function(oe){var Pe={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},Ie={number:/\\[^\s']|%\w/},ke={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:Pe},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:Pe},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:Pe}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:Ie.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:Ie},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:Ie}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:Ie}},Ve=function(Ke){return(Ke+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},Te=function(Ke){return new RegExp("(^|\\s)(?:"+Ke.map(Ve).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(Ke){ke[Ke].pattern=Te(Ge[Ke])});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"];ke.combinators.pattern=Te(lt),oe.languages.factor=ke})(ae)}},65245:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We,Ee,ae){"use strict";var oe=ae(51478);We.exports=Pe,Pe.displayName="ftl",Pe.aliases=[];function Pe(Ie){Ie.register(oe),function(ke){for(var Ve=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,Te=0;Te<2;Te++)Ve=Ve.replace(/<expr>/g,function(){return Ve});Ve=Ve.replace(/<expr>/g,/[^\s\S]/.source);var Ge={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return Ve})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return Ve})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};Ge.string[1].inside.interpolation.inside.rest=Ge,ke.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:Ge}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:Ge}}}},ke.hooks.add("before-tokenize",function(lt){var Ke=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return Ve}),"gi");ke.languages["markup-templating"].buildPlaceholders(lt,"ftl",Ke)}),ke.hooks.add("after-tokenize",function(lt){ke.languages["markup-templating"].tokenizePlaceholders(lt,"ftl")})}(Ie)}},33534:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="gherkin",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;oe.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+Pe+")(?:"+Pe+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(Pe),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(ae)}},58230:function(We){"use strict";We.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(We,Ee,ae){"use strict";var oe=ae(79440);We.exports=Pe,Pe.displayName="glsl",Pe.aliases=[];function Pe(Ie){Ie.register(oe),Ie.languages.glsl=Ie.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}},81084:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="graphql",Ee.aliases=[];function Ee(ae){ae.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:ae.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},ae.hooks.add("after-tokenize",function(Pe){if(Pe.language!=="graphql")return;var Ie=Pe.tokens.filter(function(ee){return typeof ee!="string"&&ee.type!=="comment"&&ee.type!=="scalar"}),ke=0;function Ve(ee){return Ie[ke+ee]}function Te(ee,he){he=he||0;for(var ue=0;ue<ee.length;ue++){var fe=Ve(ue+he);if(!fe||fe.type!==ee[ue])return!1}return!0}function Ge(ee,he){for(var ue=1,fe=ke;fe<Ie.length;fe++){var me=Ie[fe],be=me.content;if(me.type==="punctuation"&&typeof be=="string"){if(ee.test(be))ue++;else if(he.test(be)&&(ue--,ue===0))return fe}}return-1}function lt(ee,he){var ue=ee.alias;ue?Array.isArray(ue)||(ee.alias=ue=[ue]):ee.alias=ue=[],ue.push(he)}for(;ke<Ie.length;){var Ke=Ie[ke++];if(Ke.type==="keyword"&&Ke.content==="mutation"){var He=[];if(Te(["definition-mutation","punctuation"])&&Ve(1).content==="("){ke+=2;var St=Ge(/^\($/,/^\)$/);if(St===-1)continue;for(;ke<St;ke++){var $e=Ve(0);$e.type==="variable"&&(lt($e,"variable-input"),He.push($e.content))}ke=St+1}if(Te(["punctuation","property-query"])&&Ve(0).content==="{"&&(ke++,lt(Ve(0),"property-mutation"),He.length>0)){var It=Ge(/^\{$/,/^\}$/);if(It===-1)continue;for(var Fe=ke;Fe<It;Fe++){var te=Ie[Fe];te.type==="variable"&&He.indexOf(te.content)>=0&&lt(te,"variable-input")}}}}})}},63092:function(We){"use strict";We.exports=Ee,Ee.displayName="groovy",Ee.aliases=[];function Ee(ae){ae.languages.groovy=ae.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),ae.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),ae.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),ae.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),ae.hooks.add("wrap",function(oe){if(oe.language==="groovy"&&oe.type==="string"){var Pe=oe.content.value[0];if(Pe!="'"){var Ie=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;Pe==="$"&&(Ie=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),oe.content.value=oe.content.value.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),oe.content=ae.highlight(oe.content.value,{expression:{pattern:Ie,lookbehind:!0,inside:ae.languages.groovy}}),oe.classes.push(Pe==="/"?"regex":"gstring")}}})}},21550:function(We,Ee,ae){"use strict";var oe=ae(75308);We.exports=Pe,Pe.displayName="haml",Pe.aliases=[];function Pe(Ie){Ie.register(oe),function(ke){ke.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:ke.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:ke.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:ke.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:ke.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:ke.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:ke.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:ke.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var Ve="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",Te=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],Ge={},lt=0,Ke=Te.length;lt<Ke;lt++){var He=Te[lt];He=typeof He=="string"?{filter:He,language:He}:He,ke.languages[He.language]&&(Ge["filter-"+He.filter]={pattern:RegExp(Ve.replace("{{filter_name}}",function(){return He.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[He.language,"language-"+He.language],inside:ke.languages[He.language]}}})}ke.languages.insertBefore("haml","filter",Ge)}(Ie)}},29710:function(We,Ee,ae){"use strict";var oe=ae(51478);We.exports=Pe,Pe.displayName="handlebars",Pe.aliases=["hbs"];function Pe(Ie){Ie.register(oe),function(ke){ke.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},ke.hooks.add("before-tokenize",function(Ve){var Te=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;ke.languages["markup-templating"].buildPlaceholders(Ve,"handlebars",Te)}),ke.hooks.add("after-tokenize",function(Ve){ke.languages["markup-templating"].tokenizePlaceholders(Ve,"handlebars")}),ke.languages.hbs=ke.languages.handlebars}(Ie)}},2050:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We,Ee,ae){"use strict";var oe=ae(79440);We.exports=Pe,Pe.displayName="hlsl",Pe.aliases=[];function Pe(Ie){Ie.register(oe),Ie.languages.hlsl=Ie.languages.extend("c",{"class-name":[Ie.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}},54853:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="http",Ee.aliases=[];function Ee(ae){(function(oe){function Pe(He){return RegExp("(^(?:"+He+"):[ ]*(?![ ]))[^]+","i")}oe.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:oe.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:Pe(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:oe.languages.csp},{pattern:Pe(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:oe.languages.hpkp},{pattern:Pe(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:oe.languages.hsts},{pattern:Pe(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var Ie=oe.languages,ke={"application/javascript":Ie.javascript,"application/json":Ie.json||Ie.javascript,"application/xml":Ie.xml,"text/xml":Ie.xml,"text/html":Ie.html,"text/css":Ie.css,"text/plain":Ie.plain},Ve={"application/json":!0,"application/xml":!0};function Te(He){var St=He.replace(/^[a-z]+\//,""),$e="\\w+/(?:[\\w.-]+\\+)+"+St+"(?![+\\w.-])";return"(?:"+He+"|"+$e+")"}var Ge;for(var lt in ke)if(ke[lt]){Ge=Ge||{};var Ke=Ve[lt]?Te(lt):lt;Ge[lt.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+Ke+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:ke[lt]}}Ge&&oe.languages.insertBefore("http","header",Ge)})(ae)}},72252:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="icuMessageFormat",Ee.aliases=[];function Ee(ae){(function(oe){function Pe(lt,Ke){return Ke<=0?/[]/.source:lt.replace(/<SELF>/g,function(){return Pe(lt,Ke-1)})}var Ie=/'[{}:=,](?:[^']|'')*'(?!')/,ke={pattern:/''/,greedy:!0,alias:"operator"},Ve={pattern:Ie,greedy:!0,inside:{escape:ke}},Te=Pe(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return Ie.source}),8),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+Pe(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:ke,string:Ve},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(We,Ee,ae){"use strict";var oe=ae(2050);We.exports=Pe,Pe.displayName="idris",Pe.aliases=["idr"];function Pe(Ie){Ie.register(oe),Ie.languages.idris=Ie.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),Ie.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),Ie.languages.idr=Ie.languages.idris}},74494:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="java",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,Ie=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,ke={pattern:RegExp(Ie+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};oe.languages.java=oe.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[ke,{pattern:RegExp(Ie+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:ke.inside}],keyword:Pe,function:[oe.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),oe.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),oe.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":ke,keyword:Pe,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return Pe.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(ae)}},4005:function(We,Ee,ae){"use strict";var oe=ae(7093),Pe=ae(53510);We.exports=Ie,Ie.displayName="javadoc",Ie.aliases=[];function Ie(ke){ke.register(oe),ke.register(Pe),function(Ve){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});Ve.languages.javadoc=Ve.languages.extend("javadoclike",{}),Ve.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:Ve.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:Te,lookbehind:!0,inside:Ve.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:Te,lookbehind:!0,inside:{tag:Ve.languages.markup.tag,entity:Ve.languages.markup.entity,code:{pattern:/.+/,inside:Ve.languages.java,alias:"language-java"}}}}}],tag:Ve.languages.markup.tag,entity:Ve.languages.markup.entity}),Ve.languages.javadoclike.addSupport("java",Ve.languages.javadoc)}(ke)}},53510:function(We){"use strict";We.exports=Ee,Ee.displayName="javadoclike",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=oe.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function Ie(Ve,Te){var Ge="doc-comment",lt=oe.languages[Ve];if(lt){var Ke=lt[Ge];if(!Ke){var He={};He[Ge]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},lt=oe.languages.insertBefore(Ve,"comment",He),Ke=lt[Ge]}if(Ke instanceof RegExp&&(Ke=lt[Ge]={pattern:Ke}),Array.isArray(Ke))for(var St=0,$e=Ke.length;St<$e;St++)Ke[St]instanceof RegExp&&(Ke[St]={pattern:Ke[St]}),Te(Ke[St]);else Te(Ke)}}function ke(Ve,Te){typeof Ve=="string"&&(Ve=[Ve]),Ve.forEach(function(Ge){Ie(Ge,function(lt){lt.inside||(lt.inside={}),lt.inside.rest=Te})})}Object.defineProperty(Pe,"addSupport",{value:ke}),Pe.addSupport(["java","javascript","php"],Pe)})(ae)}},88786:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="jq",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/\\\((?:[^()]|\([^()]*\))*\)/.source,Ie=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return Pe})),ke={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+Pe),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},Ve=oe.languages.jq={comment:/#.*/,property:{pattern:RegExp(Ie.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:ke},string:{pattern:Ie,lookbehind:!0,greedy:!0,inside:ke},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};ke.interpolation.inside.content.inside=Ve})(ae)}},89246:function(We){"use strict";We.exports=Ee,Ee.displayName="jsExtras",Ee.aliases=[];function Ee(ae){(function(oe){oe.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+oe.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),oe.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+oe.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),oe.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function Pe(lt,Ke){return RegExp(lt.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),Ke)}oe.languages.insertBefore("javascript","keyword",{imports:{pattern:Pe(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:oe.languages.javascript},exports:{pattern:Pe(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:oe.languages.javascript}}),oe.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),oe.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),oe.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:Pe(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var Ie=["function","function-variable","method","method-variable","property-access"],ke=0;ke<Ie.length;ke++){var Ve=Ie[ke],Te=oe.languages.javascript[Ve];oe.util.type(Te)==="RegExp"&&(Te=oe.languages.javascript[Ve]={pattern:Te});var Ge=Te.inside||{};Te.inside=Ge,Ge["maybe-class-name"]=/^[A-Z][\s\S]*/}})(ae)}},487:function(We){"use strict";We.exports=Ee,Ee.displayName="jsTemplates",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=oe.languages.javascript["template-string"],Ie=Pe.pattern.source,ke=Pe.inside.interpolation,Ve=ke.inside["interpolation-punctuation"],Te=ke.pattern.source;function Ge(Fe,te){if(oe.languages[Fe])return{pattern:RegExp("((?:"+te+")\\s*)"+Ie),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:Fe}}}}oe.languages.javascript["template-string"]=[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),Pe].filter(Boolean);function lt(Fe,te){return"___"+te.toUpperCase()+"_"+Fe+"___"}function Ke(Fe,te,ee){var he={code:Fe,grammar:te,language:ee};return oe.hooks.run("before-tokenize",he),he.tokens=oe.tokenize(he.code,he.grammar),oe.hooks.run("after-tokenize",he),he.tokens}function He(Fe){var te={};te["interpolation-punctuation"]=Ve;var ee=oe.tokenize(Fe,te);if(ee.length===3){var he=[1,1];he.push.apply(he,Ke(ee[1],oe.languages.javascript,"javascript")),ee.splice.apply(ee,he)}return new oe.Token("interpolation",ee,ke.alias,Fe)}function St(Fe,te,ee){var he=oe.tokenize(Fe,{interpolation:{pattern:RegExp(Te),lookbehind:!0}}),ue=0,fe={},me=he.map(function(Ye){if(typeof Ye=="string")return Ye;for(var nt=Ye.content,Je;Fe.indexOf(Je=lt(ue++,ee))!==-1;);return fe[Je]=nt,Je}).join(""),be=Ke(me,te,ee),Ae=Object.keys(fe);ue=0;function De(Ye){for(var nt=0;nt<Ye.length;nt++){if(ue>=Ae.length)return;var Je=Ye[nt];if(typeof Je=="string"||typeof Je.content=="string"){var ot=Ae[ue],mt=typeof Je=="string"?Je:Je.content,it=mt.indexOf(ot);if(it!==-1){++ue;var vt=mt.substring(0,it),wt=He(fe[ot]),Nt=mt.substring(it+ot.length),Ht=[];if(vt&&Ht.push(vt),Ht.push(wt),Nt){var Qt=[Nt];De(Qt),Ht.push.apply(Ht,Qt)}typeof Je=="string"?(Ye.splice.apply(Ye,[nt,1].concat(Ht)),nt+=Ht.length-1):Je.content=Ht}}else{var Yt=Je.content;Array.isArray(Yt)?De(Yt):De([Yt])}}}return De(be),new oe.Token(ee,be,"language-"+ee,Fe)}var $e={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};oe.hooks.add("after-tokenize",function(Fe){if(!(Fe.language in $e))return;function te(ee){for(var he=0,ue=ee.length;he<ue;he++){var fe=ee[he];if(typeof fe!="string"){var me=fe.content;if(!Array.isArray(me)){typeof me!="string"&&te([me]);continue}if(fe.type==="template-string"){var be=me[1];if(me.length===3&&typeof be!="string"&&be.type==="embedded-code"){var Ae=It(be),De=be.alias,Ye=Array.isArray(De)?De[0]:De,nt=oe.languages[Ye];if(!nt)continue;me[1]=St(Ae,nt,Ye)}}else te(me)}}}te(Fe.tokens)});function It(Fe){return typeof Fe=="string"?Fe:Array.isArray(Fe)?Fe.map(It).join(""):It(Fe.content)}})(ae)}},79539:function(We,Ee,ae){"use strict";var oe=ae(53510),Pe=ae(92784);We.exports=Ie,Ie.displayName="jsdoc",Ie.aliases=[];function Ie(ke){ke.register(oe),ke.register(Pe),function(Ve){var Te=Ve.languages.javascript,Ge=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,lt="(@(?:arg|argument|param|property)\\s+(?:"+Ge+"\\s+)?)";Ve.languages.jsdoc=Ve.languages.extend("javadoclike",{parameter:{pattern:RegExp(lt+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),Ve.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:Ve.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:Te,alias:"language-javascript"}}}}),Ve.languages.javadoclike.addSupport("javascript",Ve.languages.jsdoc)}(ke)}},15628:function(We){"use strict";We.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(We,Ee,ae){"use strict";var oe=ae(15628);We.exports=Pe,Pe.displayName="json5",Pe.aliases=[];function Pe(Ie){Ie.register(oe),function(ke){var Ve=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;ke.languages.json5=ke.languages.extend("json",{property:[{pattern:RegExp(Ve.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:Ve,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(Ie)}},73222:function(We,Ee,ae){"use strict";var oe=ae(15628);We.exports=Pe,Pe.displayName="jsonp",Pe.aliases=[];function Pe(Ie){Ie.register(oe),Ie.languages.jsonp=Ie.languages.extend("json",{punctuation:/[{}[\]();,.]/}),Ie.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}},92486:function(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="jsx",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=oe.util.clone(oe.languages.javascript),Ie=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,ke=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,Ve=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function Te(Ke,He){return Ke=Ke.replace(/<S>/g,function(){return Ie}).replace(/<BRACES>/g,function(){return ke}).replace(/<SPREAD>/g,function(){return Ve}),RegExp(Ke,He)}Ve=Te(Ve).source,oe.languages.jsx=oe.languages.extend("markup",Pe),oe.languages.jsx.tag.pattern=Te(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),oe.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,oe.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,oe.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,oe.languages.jsx.tag.inside.comment=Pe.comment,oe.languages.insertBefore("inside","attr-name",{spread:{pattern:Te(/<SPREAD>/.source),inside:oe.languages.jsx}},oe.languages.jsx.tag),oe.languages.insertBefore("inside","special-attr",{script:{pattern:Te(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:oe.languages.jsx}}},oe.languages.jsx.tag);var Ge=function(Ke){return Ke?typeof Ke=="string"?Ke:typeof Ke.content=="string"?Ke.content:Ke.content.map(Ge).join(""):""},lt=function(Ke){for(var He=[],St=0;St<Ke.length;St++){var $e=Ke[St],It=!1;if(typeof $e!="string"&&($e.type==="tag"&&$e.content[0]&&$e.content[0].type==="tag"?$e.content[0].content[0].content==="</"?He.length>0&&He[He.length-1].tagName===Ge($e.content[0].content[1])&&He.pop():$e.content[$e.content.length-1].content==="/>"||He.push({tagName:Ge($e.content[0].content[1]),openedBraces:0}):He.length>0&&$e.type==="punctuation"&&$e.content==="{"?He[He.length-1].openedBraces++:He.length>0&&He[He.length-1].openedBraces>0&&$e.type==="punctuation"&&$e.content==="}"?He[He.length-1].openedBraces--:It=!0),(It||typeof $e=="string")&&He.length>0&&He[He.length-1].openedBraces===0){var Fe=Ge($e);St<Ke.length-1&&(typeof Ke[St+1]=="string"||Ke[St+1].type==="plain-text")&&(Fe+=Ge(Ke[St+1]),Ke.splice(St+1,1)),St>0&&(typeof Ke[St-1]=="string"||Ke[St-1].type==="plain-text")&&(Fe=Ge(Ke[St-1])+Fe,Ke.splice(St-1,1),St--),Ke[St]=new oe.Token("plain-text",Fe,null,Fe)}$e.content&&typeof $e.content!="string"&&lt($e.content)}};oe.hooks.add("after-tokenize",function(Ke){Ke.language!=="jsx"&&Ke.language!=="tsx"||lt(Ke.tokens)})})(ae)}},40604:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="kotlin",Ee.aliases=["kt","kts"];function Ee(ae){(function(oe){oe.languages.kotlin=oe.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete oe.languages.kotlin["class-name"];var Pe={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:oe.languages.kotlin}};oe.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:Pe},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:Pe},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete oe.languages.kotlin.string,oe.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),oe.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),oe.languages.kt=oe.languages.kotlin,oe.languages.kts=oe.languages.kotlin})(ae)}},37524:function(We){"use strict";We.exports=Ee,Ee.displayName="kumir",Ee.aliases=["kum"];function Ee(ae){(function(oe){var Pe=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function Ie(ke,Ve){return RegExp(ke.replace(/<nonId>/g,Pe),Ve)}oe.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:Ie(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:Ie(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:Ie(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:Ie(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:Ie(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:Ie(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:Ie(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:Ie(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},oe.languages.kum=oe.languages.kumir})(ae)}},6658:function(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="latex",Ee.aliases=["tex","context"];function Ee(ae){(function(oe){var Pe=/\\(?:[^a-z()[\]]|[a-z*]+)/i,Ie={"equation-command":{pattern:Pe,alias:"regex"}};oe.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:Ie,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:Ie,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:Pe,alias:"selector"},punctuation:/[[\]{}&]/},oe.languages.tex=oe.languages.latex,oe.languages.context=oe.languages.latex})(ae)}},22776:function(We,Ee,ae){"use strict";var oe=ae(51478),Pe=ae(53852);We.exports=Ie,Ie.displayName="latte",Ie.aliases=[];function Ie(ke){ke.register(oe),ke.register(Pe),function(Ve){Ve.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:Ve.languages.php}};var Te=Ve.languages.extend("markup",{});Ve.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:Ve.languages.php}}}}}},Te.tag),Ve.hooks.add("before-tokenize",function(Ge){if(Ge.language==="latte"){var lt=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;Ve.languages["markup-templating"].buildPlaceholders(Ge,"latte",lt),Ge.grammar=Te}}),Ve.hooks.add("after-tokenize",function(Ge){Ve.languages["markup-templating"].tokenizePlaceholders(Ge,"latte")})}(ke)}},89700:function(We){"use strict";We.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(We,Ee,ae){"use strict";var oe=ae(48780);We.exports=Pe,Pe.displayName="lilypond",Pe.aliases=[];function Pe(Ie){Ie.register(oe),function(ke){for(var Ve=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,Te=5,Ge=0;Ge<Te;Ge++)Ve=Ve.replace(/<expr>/g,function(){return Ve});Ve=Ve.replace(/<expr>/g,/[^\s\S]/.source);var lt=ke.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return Ve}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:ke.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};lt["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=lt,ke.languages.ly=lt}(Ie)}},39940:function(We,Ee,ae){"use strict";var oe=ae(51478);We.exports=Pe,Pe.displayName="liquid",Pe.aliases=[];function Pe(Ie){Ie.register(oe),Ie.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},Ie.hooks.add("before-tokenize",function(ke){var Ve=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,Te=!1;Ie.languages["markup-templating"].buildPlaceholders(ke,"liquid",Ve,function(Ge){var lt=/^\{%-?\s*(\w+)/.exec(Ge);if(lt){var Ke=lt[1];if(Ke==="raw"&&!Te)return Te=!0,!0;if(Ke==="endraw")return Te=!1,!0}return!Te})}),Ie.hooks.add("after-tokenize",function(ke){Ie.languages["markup-templating"].tokenizePlaceholders(ke,"liquid")})}},34973:function(We){"use strict";We.exports=Ee,Ee.displayName="lisp",Ee.aliases=[];function Ee(ae){(function(oe){function Pe(Fe){return RegExp(/(\()/.source+"(?:"+Fe+")"+/(?=[\s\)])/.source)}function Ie(Fe){return RegExp(/([\s([])/.source+"(?:"+Fe+")"+/(?=[\s)])/.source)}var ke=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,Ve="&"+ke,Te="(\\()",Ge="(?=\\))",lt="(?=\\s)",Ke=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,He={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+ke+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+ke),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+ke),alias:"property"},splice:{pattern:RegExp(",@?"+ke),alias:["symbol","variable"]},keyword:[{pattern:RegExp(Te+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+lt),lookbehind:!0},{pattern:RegExp(Te+"(?:append|by|collect|concat|do|finally|for|in|return)"+lt),lookbehind:!0}],declare:{pattern:Pe(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:Pe(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:Ie(/nil|t/.source),lookbehind:!0},number:{pattern:Ie(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(Te+"def(?:const|custom|group|var)\\s+"+ke),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(ke)}},defun:{pattern:RegExp(Te+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+ke+/\s+\(/.source+Ke+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+ke),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(Te+"lambda\\s+\\(\\s*(?:&?"+ke+"(?:\\s+&?"+ke+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(Te+ke),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},St={"lisp-marker":RegExp(Ve),varform:{pattern:RegExp(/\(/.source+ke+/\s+(?=\S)/.source+Ke+/\)/.source),inside:He},argument:{pattern:RegExp(/(^|[\s(])/.source+ke),lookbehind:!0,alias:"variable"},rest:He},$e="\\S+(?:\\s+\\S+)*",It={pattern:RegExp(Te+Ke+Ge),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+$e),inside:St},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+$e),inside:St},keys:{pattern:RegExp("&key\\s+"+$e+"(?:\\s+&allow-other-keys)?"),inside:St},argument:{pattern:RegExp(ke),alias:"variable"},punctuation:/[()]/}};He.lambda.inside.arguments=It,He.defun.inside.arguments=oe.util.clone(It),He.defun.inside.arguments.inside.sublist=It,oe.languages.lisp=He,oe.languages.elisp=He,oe.languages.emacs=He,oe.languages["emacs-lisp"]=He})(ae)}},98135:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="markdown",Ee.aliases=["md"];function Ee(ae){(function(oe){var Pe=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function Ie(St){return St=St.replace(/<inner>/g,function(){return Pe}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+St+")")}var ke=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,Ve=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return ke}),Te=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;oe.languages.markdown=oe.languages.extend("markup",{}),oe.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:oe.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+Ve+Te+"(?:"+Ve+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+Ve+Te+")(?:"+Ve+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(ke),inside:oe.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+Ve+")"+Te+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+Ve+"$"),inside:{"table-header":{pattern:RegExp(ke),alias:"important",inside:oe.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:Ie(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:Ie(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:Ie(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:Ie(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(St){["url","bold","italic","strike","code-snippet"].forEach(function($e){St!==$e&&(oe.languages.markdown[St].inside.content.inside[$e]=oe.languages.markdown[$e])})}),oe.hooks.add("after-tokenize",function(St){if(St.language!=="markdown"&&St.language!=="md")return;function $e(It){if(!(!It||typeof It=="string"))for(var Fe=0,te=It.length;Fe<te;Fe++){var ee=It[Fe];if(ee.type!=="code"){$e(ee.content);continue}var he=ee.content[1],ue=ee.content[3];if(he&&ue&&he.type==="code-language"&&ue.type==="code-block"&&typeof he.content=="string"){var fe=he.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");fe=(/[a-z][\w-]*/i.exec(fe)||[""])[0].toLowerCase();var me="language-"+fe;ue.alias?typeof ue.alias=="string"?ue.alias=[ue.alias,me]:ue.alias.push(me):ue.alias=[me]}}}$e(St.tokens)}),oe.hooks.add("wrap",function(St){if(St.type==="code-block"){for(var $e="",It=0,Fe=St.classes.length;It<Fe;It++){var te=St.classes[It],ee=/language-(.+)/.exec(te);if(ee){$e=ee[1];break}}var he=oe.languages[$e];if(he)St.content=oe.highlight(He(St.content.value),he,$e);else if($e&&$e!=="none"&&oe.plugins.autoloader){var ue="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);St.attributes.id=ue,oe.plugins.autoloader.loadLanguages($e,function(){var fe=document.getElementById(ue);fe&&(fe.innerHTML=oe.highlight(fe.textContent,oe.languages[$e],$e))})}}});var Ge=RegExp(oe.languages.markup.tag.pattern.source,"gi"),lt={amp:"&",lt:"<",gt:">",quot:'"'},Ke=String.fromCodePoint||String.fromCharCode;function He(St){var $e=St.replace(Ge,"");return $e=$e.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(It,Fe){if(Fe=Fe.toLowerCase(),Fe[0]==="#"){var te;return Fe[1]==="x"?te=parseInt(Fe.slice(2),16):te=Number(Fe.slice(1)),Ke(te)}else{var ee=lt[Fe];return ee||It}}),$e}oe.languages.md=oe.languages.markdown})(ae)}},51478:function(We){"use strict";We.exports=Ee,Ee.displayName="markupTemplating",Ee.aliases=[];function Ee(ae){(function(oe){function Pe(Ie,ke){return"___"+Ie.toUpperCase()+ke+"___"}Object.defineProperties(oe.languages["markup-templating"]={},{buildPlaceholders:{value:function(Ie,ke,Ve,Te){if(Ie.language===ke){var Ge=Ie.tokenStack=[];Ie.code=Ie.code.replace(Ve,function(lt){if(typeof Te=="function"&&!Te(lt))return lt;for(var Ke=Ge.length,He;Ie.code.indexOf(He=Pe(ke,Ke))!==-1;)++Ke;return Ge[Ke]=lt,He}),Ie.grammar=oe.languages.markup}}},tokenizePlaceholders:{value:function(Ie,ke){if(Ie.language!==ke||!Ie.tokenStack)return;Ie.grammar=oe.languages[ke];var Ve=0,Te=Object.keys(Ie.tokenStack);function Ge(lt){for(var Ke=0;Ke<lt.length&&!(Ve>=Te.length);Ke++){var He=lt[Ke];if(typeof He=="string"||He.content&&typeof He.content=="string"){var St=Te[Ve],$e=Ie.tokenStack[St],It=typeof He=="string"?He:He.content,Fe=Pe(ke,St),te=It.indexOf(Fe);if(te>-1){++Ve;var ee=It.substring(0,te),he=new oe.Token(ke,oe.tokenize($e,Ie.grammar),"language-"+ke,$e),ue=It.substring(te+Fe.length),fe=[];ee&&fe.push.apply(fe,Ge([ee])),fe.push(he),ue&&fe.push.apply(fe,Ge([ue])),typeof He=="string"?lt.splice.apply(lt,[Ke,1].concat(fe)):He.content=fe}}else He.content&&Ge(He.content)}return lt}Ge(Ie.tokens)}}})})(ae)}},70614:function(We){"use strict";We.exports=Ee,Ee.displayName="markup",Ee.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function Ee(ae){ae.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},ae.languages.markup.tag.inside["attr-value"].inside.entity=ae.languages.markup.entity,ae.languages.markup.doctype.inside["internal-subset"].inside=ae.languages.markup,ae.hooks.add("wrap",function(oe){oe.type==="entity"&&(oe.attributes.title=oe.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(ae.languages.markup.tag,"addInlined",{value:function(Pe,Ie){var ke={};ke["language-"+Ie]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:ae.languages[Ie]},ke.cdata=/^<!\[CDATA\[|\]\]>$/i;var Ve={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:ke}};Ve["language-"+Ie]={pattern:/[\s\S]+/,inside:ae.languages[Ie]};var Te={};Te[Pe]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return Pe}),"i"),lookbehind:!0,greedy:!0,inside:Ve},ae.languages.insertBefore("markup","cdata",Te)}}),Object.defineProperty(ae.languages.markup.tag,"addAttribute",{value:function(oe,Pe){ae.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+oe+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[Pe,"language-"+Pe],inside:ae.languages[Pe]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),ae.languages.html=ae.languages.markup,ae.languages.mathml=ae.languages.markup,ae.languages.svg=ae.languages.markup,ae.languages.xml=ae.languages.extend("markup",{}),ae.languages.ssml=ae.languages.xml,ae.languages.atom=ae.languages.xml,ae.languages.rss=ae.languages.xml}},16928:function(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="maxscript",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;oe.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+Pe.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+Pe.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:Pe,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(ae)}},37164:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="mongodb",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],Ie=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];Pe=Pe.map(function(Ve){return Ve.replace("$","\\$")});var ke="(?:"+Pe.join("|")+")\\b";oe.languages.mongodb=oe.languages.extend("javascript",{}),oe.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+ke+"(?:\\1)?$")}}}),oe.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},oe.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+Ie.join("|")+")\\b"),alias:"keyword"}})})(ae)}},65626:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="naniscript",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/\{[^\r\n\[\]{}]*\}/,Ie={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:Pe,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};oe.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:Pe,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:Ie}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:Pe,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:Ie},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},oe.languages.nani=oe.languages.naniscript,oe.hooks.add("after-tokenize",function(Te){var Ge=Te.tokens;Ge.forEach(function(lt){if(typeof lt!="string"&&lt.type==="generic-text"){var Ke=Ve(lt);ke(Ke)||(lt.type="bad-line",lt.content=Ke)}})});function ke(Te){for(var Ge="[]{}",lt=[],Ke=0;Ke<Te.length;Ke++){var He=Te[Ke],St=Ge.indexOf(He);if(St!==-1){if(St%2===0)lt.push(St+1);else if(lt.pop()!==St)return!1}}return lt.length===0}function Ve(Te){return typeof Te=="string"?Te:Array.isArray(Te)?Te.map(Ve).join(""):Ve(Te.content)}})(ae)}},42846:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="nginx",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;oe.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:Pe}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:Pe}},punctuation:/[{};]/}})(ae)}},66791:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We,Ee,ae){"use strict";var oe=ae(79440);We.exports=Pe,Pe.displayName="objectivec",Pe.aliases=["objc"];function Pe(Ie){Ie.register(oe),Ie.languages.objectivec=Ie.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Ie.languages.objectivec["class-name"],Ie.languages.objc=Ie.languages.objectivec}},66894:function(We){"use strict";We.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(We,Ee,ae){"use strict";var oe=ae(79440);We.exports=Pe,Pe.displayName="opencl",Pe.aliases=[];function Pe(Ie){Ie.register(oe),function(ke){ke.languages.opencl=ke.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),ke.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var Ve={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};ke.languages.insertBefore("c","keyword",Ve),ke.languages.cpp&&(Ve["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},ke.languages.insertBefore("cpp","keyword",Ve))}(Ie)}},27734:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="parigp",Ee.aliases=[];function Ee(ae){ae.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var oe=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return oe=oe.map(function(Pe){return Pe.split("").join(" *")}).join("|"),RegExp("\\b(?:"+oe+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}},37326:function(We){"use strict";We.exports=Ee,Ee.displayName="parser",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=oe.languages.parser=oe.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});Pe=oe.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:Pe.keyword,variable:Pe.variable,function:Pe.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:Pe.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:Pe.punctuation}}}),oe.languages.insertBefore("inside","punctuation",{expression:Pe.expression,keyword:Pe.keyword,variable:Pe.variable,function:Pe.function,escape:Pe.escape,"parser-punctuation":{pattern:Pe.punctuation,alias:"punctuation"}},Pe.tag.inside["attr-value"])})(ae)}},92949:function(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="pascaligo",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,Ie=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return Pe}),ke=oe.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,function(){return Ie}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return Ie}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return Ie})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},Ve=["comment","keyword","builtin","operator","punctuation"].reduce(function(Te,Ge){return Te[Ge]=ke[Ge],Te},{});ke["class-name"].forEach(function(Te){Te.inside=Ve})})(ae)}},70696:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="perl",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;oe.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,Pe].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,Pe].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,Pe+/\s*/.source+Pe].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(ae)}},65889:function(We,Ee,ae){"use strict";var oe=ae(53852);We.exports=Pe,Pe.displayName="phpExtras",Pe.aliases=[];function Pe(Ie){Ie.register(oe),Ie.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}},53852:function(We,Ee,ae){"use strict";var oe=ae(51478);We.exports=Pe,Pe.displayName="php",Pe.aliases=[];function Pe(Ie){Ie.register(oe),function(ke){var Ve=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,Te=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],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}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,Ke=/[{}\[\](),:;]/;ke.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:Ve,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:Te,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:Ge,operator:lt,punctuation:Ke};var He={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:ke.languages.php},St=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:He}},{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:He}}];ke.languages.insertBefore("php","variable",{string:St,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:Ve,string:St,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:Te,number:Ge,operator:lt,punctuation:Ke}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),ke.hooks.add("before-tokenize",function($e){if(/<\?/.test($e.code)){var It=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;ke.languages["markup-templating"].buildPlaceholders($e,"php",It)}}),ke.hooks.add("after-tokenize",function($e){ke.languages["markup-templating"].tokenizePlaceholders($e,"php")})}(Ie)}},97719:function(We,Ee,ae){"use strict";var oe=ae(53852),Pe=ae(53510);We.exports=Ie,Ie.displayName="phpdoc",Ie.aliases=[];function Ie(ke){ke.register(oe),ke.register(Pe),function(Ve){var Te=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;Ve.languages.phpdoc=Ve.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+Te+"\\s+)?)\\$\\w+"),lookbehind:!0}}),Ve.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+Te),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),Ve.languages.javadoclike.addSupport("php",Ve.languages.phpdoc)}(ke)}},63839:function(We,Ee,ae){"use strict";var oe=ae(69435);We.exports=Pe,Pe.displayName="plsql",Pe.aliases=[];function Pe(Ie){Ie.register(oe),Ie.languages.plsql=Ie.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),Ie.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}},67623:function(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="powershell",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=oe.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};Pe.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:Pe},boolean:Pe.boolean,variable:Pe.variable}})(ae)}},8938:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="promql",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],Ie=["on","ignoring","group_right","group_left","by","without"],ke=["offset"],Ve=Pe.concat(Ie,ke);oe.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+Ie.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+Ve.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(ae)}},15375:function(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="protobuf",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;oe.languages.protobuf=oe.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),oe.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:Pe}},builtin:Pe,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(ae)}},83588:function(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="pug",Ee.aliases=[];function Ee(ae){(function(oe){oe.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:oe.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:oe.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:oe.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:oe.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:oe.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:oe.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:oe.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:oe.languages.javascript}],punctuation:/[.\-!=|]+/};for(var Pe=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,Ie=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],ke={},Ve=0,Te=Ie.length;Ve<Te;Ve++){var Ge=Ie[Ve];Ge=typeof Ge=="string"?{filter:Ge,language:Ge}:Ge,oe.languages[Ge.language]&&(ke["filter-"+Ge.filter]={pattern:RegExp(Pe.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",ke)})(ae)}},21294:function(We){"use strict";We.exports=Ee,Ee.displayName="puppet",Ee.aliases=[];function Ee(ae){(function(oe){oe.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var Pe=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:oe.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];oe.languages.puppet.heredoc[0].inside.interpolation=Pe,oe.languages.puppet.string.inside["double-quoted"].inside.interpolation=Pe})(ae)}},38709:function(We){"use strict";We.exports=Ee,Ee.displayName="pure",Ee.aliases=[];function Ee(ae){(function(oe){oe.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var Pe=["c",{lang:"c++",alias:"cpp"},"fortran"],Ie=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;Pe.forEach(function(ke){var Ve=ke;if(typeof ke!="string"&&(Ve=ke.alias,ke=ke.lang),oe.languages[Ve]){var Te={};Te["inline-lang-"+Ve]={pattern:RegExp(Ie.replace("<lang>",ke.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:oe.util.clone(oe.languages.pure["inline-lang"].inside)},Te["inline-lang-"+Ve].inside.rest=oe.util.clone(oe.languages[Ve]),oe.languages.insertBefore("pure","inline-lang",Te)}}),oe.languages.c&&(oe.languages.pure["inline-lang"].inside.rest=oe.util.clone(oe.languages.c))})(ae)}},15008:function(We){"use strict";We.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(We,Ee,ae){"use strict";var oe=ae(2050);We.exports=Pe,Pe.displayName="purescript",Pe.aliases=["purs"];function Pe(Ie){Ie.register(oe),Ie.languages.purescript=Ie.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[Ie.languages.haskell.operator[0],Ie.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),Ie.languages.purs=Ie.languages.purescript}},5221:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="qml",Ee.aliases=[];function Ee(ae){(function(oe){for(var Pe=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,Ie=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,ke=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return Pe}).replace(/<comment>/g,function(){return Ie}),Ve=0;Ve<2;Ve++)ke=ke.replace(/<expr>/g,function(){return ke});ke=ke.replace(/<expr>/g,"[^\\s\\S]"),oe.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,function(){return ke}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:oe.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,function(){return ke}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:oe.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(ae)}},75542:function(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="qsharp",Ee.aliases=["qs"];function Ee(ae){(function(oe){function Pe(It,Fe){return It.replace(/<<(\d+)>>/g,function(te,ee){return"(?:"+Fe[+ee]+")"})}function Ie(It,Fe,te){return RegExp(Pe(It,Fe),te||"")}function ke(It,Fe){for(var te=0;te<Fe;te++)It=It.replace(/<<self>>/g,function(){return"(?:"+It+")"});return It.replace(/<<self>>/g,"[^\\s\\S]")}var Ve={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function Te(It){return"\\b(?:"+It.trim().replace(/ /g,"|")+")\\b"}var Ge=RegExp(Te(Ve.type+" "+Ve.other)),lt=/\b[A-Za-z_]\w*\b/.source,Ke=Pe(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[lt]),He={keyword:Ge,punctuation:/[<>()?,.:[\]]/},St=/"(?:\\.|[^\\"])*"/.source;oe.languages.qsharp=oe.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:Ie(/(^|[^$\\])<<0>>/.source,[St]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:Ie(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[Ke]),lookbehind:!0,inside:He},{pattern:Ie(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[Ke]),lookbehind:!0,inside:He}],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 $e=ke(Pe(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[St]),2);oe.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:Ie(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[$e]),greedy:!0,inside:{interpolation:{pattern:Ie(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[$e]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:oe.languages.qsharp}}},string:/[\s\S]+/}}})})(ae),ae.languages.qs=ae.languages.qsharp}},44298:function(We){"use strict";We.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(We,Ee,ae){"use strict";var oe=ae(48780);We.exports=Pe,Pe.displayName="racket",Pe.aliases=["rkt"];function Pe(Ie){Ie.register(oe),Ie.languages.racket=Ie.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),Ie.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),Ie.languages.rkt=Ie.languages.racket}},75266:function(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="regex",Ee.aliases=[];function Ee(ae){(function(oe){var Pe={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},Ie=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,ke={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},Ve={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},Te="(?:[^\\\\-]|"+Ie.source+")",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:Ie,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":Pe,"char-set":Ve,escape:Ie}},"special-escape":Pe,"char-set":ke,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":lt}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:Ie,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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="robotframework",Ee.aliases=[];function Ee(ae){(function(oe){var Pe={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},Ie={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function ke(lt,Ke){var He={};He["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var St in Ke)He[St]=Ke[St];return He.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},He.variable=Ie,He.comment=Pe,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return lt}),"im"),alias:"section",inside:He}}var Ve={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},Te={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:Ie}},Ge={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:Ie}};oe.languages.robotframework={settings:ke("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:ke("Variables"),"test-cases":ke("Test Cases",{"test-name":Te,documentation:Ve,property:Ge}),keywords:ke("Keywords",{"keyword-name":Te,documentation:Ve,property:Ge}),tasks:ke("Tasks",{"task-name":Te,documentation:Ve,property:Ge}),comment:Pe},oe.languages.robot=oe.languages.robotframework})(ae)}},75308:function(We){"use strict";We.exports=Ee,Ee.displayName="ruby",Ee.aliases=["rb"];function Ee(ae){(function(oe){oe.languages.ruby=oe.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),oe.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var Pe={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:oe.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete oe.languages.ruby.function;var Ie="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",ke=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;oe.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+Ie+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:Pe,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:Pe,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+ke),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+ke+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),oe.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+Ie),greedy:!0,inside:{interpolation:Pe,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:Pe,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:Pe,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+Ie),greedy:!0,inside:{interpolation:Pe,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:Pe,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete oe.languages.ruby.string,oe.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),oe.languages.rb=oe.languages.ruby})(ae)}},45315:function(We){"use strict";We.exports=Ee,Ee.displayName="rust",Ee.aliases=[];function Ee(ae){(function(oe){for(var Pe=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,Ie=0;Ie<2;Ie++)Pe=Pe.replace(/<self>/g,function(){return Pe});Pe=Pe.replace(/<self>/g,function(){return/[^\s\S]/.source}),oe.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+Pe),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},oe.languages.rust["closure-params"].inside.rest=oe.languages.rust,oe.languages.rust.attribute.inside.string=oe.languages.rust.string})(ae)}},13794:function(We){"use strict";We.exports=Ee,Ee.displayName="sas",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,Ie=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,ke={pattern:RegExp(Pe+"[bx]"),alias:"number"},Ve={pattern:/&[a-z_]\w*/i},Te={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},Ge={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},lt=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],Ke={pattern:RegExp(Pe),greedy:!0},He=/[$%@.(){}\[\];,\\]/,St={pattern:/%?\b\w+(?=\()/,alias:"keyword"},$e={function:St,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":Ve,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:Ie,"numeric-constant":ke,punctuation:He,string:Ke},It={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},Fe={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},te={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},ee={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},he=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,ue={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return he}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return he}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:lt,function:St,"arg-value":$e["arg-value"],operator:$e.operator,argument:$e.arg,number:Ie,"numeric-constant":ke,punctuation:He,string:Ke}},fe={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};oe.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,function(){return Pe}),"im"),alias:"language-sql",inside:oe.languages.sql},"global-statements":te,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:Ie,"numeric-constant":ke,punctuation:He,string:Ke}},"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 Pe}),"im"),lookbehind:!0,alias:"language-groovy",inside:oe.languages.groovy},keyword:fe,"submit-statement":ee,"global-statements":te,number:Ie,"numeric-constant":ke,punctuation:He,string:Ke}},"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 Pe}),"im"),lookbehind:!0,alias:"language-lua",inside:oe.languages.lua},keyword:fe,"submit-statement":ee,"global-statements":te,number:Ie,"numeric-constant":ke,punctuation:He,string:Ke}},"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:$e}},"cas-actions":ue,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:$e},step:Ge,keyword:fe,function:St,format:It,altformat:Fe,"global-statements":te,number:Ie,"numeric-constant":ke,punctuation:He,string:Ke}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return Pe}),"im"),lookbehind:!0,inside:$e},"macro-keyword":Te,"macro-variable":Ve,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":Te,"macro-variable":Ve,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:He}},"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:Ie,"numeric-constant":ke}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:$e},"cas-actions":ue,comment:lt,function:St,format:It,altformat:Fe,"numeric-constant":ke,datetime:{pattern:RegExp(Pe+"(?:dt?|t)"),alias:"number"},string:Ke,step:Ge,keyword:fe,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:Ie,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:He}})(ae)}},41299:function(We){"use strict";We.exports=Ee,Ee.displayName="sass",Ee.aliases=[];function Ee(ae){(function(oe){oe.languages.sass=oe.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),oe.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete oe.languages.sass.atrule;var Pe=/\$[-\w]+|#\{\$[-\w]+\}/,Ie=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];oe.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:Pe,operator:Ie}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:Pe,operator:Ie,important:oe.languages.sass.important}}}),delete oe.languages.sass.property,delete oe.languages.sass.important,oe.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(ae)}},98177:function(We,Ee,ae){"use strict";var oe=ae(7093);We.exports=Pe,Pe.displayName="scala",Pe.aliases=[];function Pe(Ie){Ie.register(oe),Ie.languages.scala=Ie.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),Ie.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:Ie.languages.scala}}},string:/[\s\S]+/}}}),delete Ie.languages.scala["class-name"],delete Ie.languages.scala.function}},48780:function(We){"use strict";We.exports=Ee,Ee.displayName="scheme",Ee.aliases=[];function Ee(ae){(function(oe){oe.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(Pe({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function Pe(Ie){for(var ke in Ie)Ie[ke]=Ie[ke].replace(/<[\w\s]+>/g,function(Ve){return"(?:"+Ie[Ve].trim()+")"});return Ie[ke]}})(ae)}},79793:function(We){"use strict";We.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(We,Ee,ae){"use strict";var oe=ae(3058);We.exports=Pe,Pe.displayName="shellSession",Pe.aliases=[];function Pe(Ie){Ie.register(oe),function(ke){var Ve=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");ke.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return Ve}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:ke.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},ke.languages["sh-session"]=ke.languages.shellsession=ke.languages["shell-session"]}(Ie)}},65411:function(We){"use strict";We.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(We){"use strict";We.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(We,Ee,ae){"use strict";var oe=ae(51478);We.exports=Pe,Pe.displayName="smarty",Pe.aliases=[];function Pe(Ie){Ie.register(oe),function(ke){ke.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:ke.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},ke.languages.smarty["embedded-php"].inside.smarty.inside=ke.languages.smarty,ke.languages.smarty.string[0].inside.interpolation.inside.expression.inside=ke.languages.smarty;var Ve=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,Te=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return Ve.source}),"g");ke.hooks.add("before-tokenize",function(Ge){var lt="{literal}",Ke="{/literal}",He=!1;ke.languages["markup-templating"].buildPlaceholders(Ge,"smarty",Te,function(St){return St===Ke&&(He=!1),He?!1:(St===lt&&(He=!0),!0)})}),ke.hooks.add("after-tokenize",function(Ge){ke.languages["markup-templating"].tokenizePlaceholders(Ge,"smarty")})}(Ie)}},66433:function(We){"use strict";We.exports=Ee,Ee.displayName="sml",Ee.aliases=["smlnj"];function Ee(ae){(function(oe){var Pe=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;oe.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,function(){return/\s*(?:[*,]|->)/.source}).replace(/<TERMINAL>/g,function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source}).replace(/<LONG-ID>/g,function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source}).replace(/<KEYWORD>/g,function(){return Pe.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:Pe,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},oe.languages.sml["class-name"][0].inside=oe.languages.sml,oe.languages.smlnj=oe.languages.sml})(ae)}},34855:function(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="solutionFile",Ee.aliases=[];function Ee(ae){(function(oe){var Pe={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};oe.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:Pe}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:Pe}},guid:Pe,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},oe.languages.sln=oe.languages["solution-file"]})(ae)}},10202:function(We,Ee,ae){"use strict";var oe=ae(51478);We.exports=Pe,Pe.displayName="soy",Pe.aliases=[];function Pe(Ie){Ie.register(oe),function(ke){var Ve=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,Te=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;ke.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:Ve,greedy:!0},number:Te,punctuation:/[\[\].?]/}},string:{pattern:Ve,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:Te,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},ke.hooks.add("before-tokenize",function(Ge){var lt=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,Ke="{literal}",He="{/literal}",St=!1;ke.languages["markup-templating"].buildPlaceholders(Ge,"soy",lt,function($e){return $e===He&&(St=!1),St?!1:($e===Ke&&(St=!0),!0)})}),ke.hooks.add("after-tokenize",function(Ge){ke.languages["markup-templating"].tokenizePlaceholders(Ge,"soy")})}(Ie)}},41186:function(We,Ee,ae){"use strict";var oe=ae(58710);We.exports=Pe,Pe.displayName="sparql",Pe.aliases=["rq"];function Pe(Ie){Ie.register(oe),Ie.languages.sparql=Ie.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),Ie.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),Ie.languages.rq=Ie.languages.sparql}},68963:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="stan",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;oe.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+Pe.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,Pe],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},oe.languages.stan.constraint.inside.expression.inside=oe.languages.stan})(ae)}},89032:function(We){"use strict";We.exports=Ee,Ee.displayName="stylus",Ee.aliases=[];function Ee(ae){(function(oe){var Pe={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},Ie={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},ke={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:Pe,number:Ie,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Pe,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:Ie,punctuation:/[{}()\[\];:,]/};ke.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:ke}},ke.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:ke}},oe.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:ke}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:ke}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:ke}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:ke.interpolation}},rest:ke}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:ke.interpolation,comment:ke.comment,punctuation:/[{},]/}},func:ke.func,string:ke.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:ke.interpolation,punctuation:/[{}()\[\];:.]/}})(ae)}},40241:function(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="systemd",Ee.aliases=[];function Ee(ae){(function(oe){var Pe={pattern:/^[;#].*/m,greedy:!0},Ie=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;oe.languages.systemd={comment:Pe,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+Ie+`|(?=[^"\r
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+Ie+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:Pe,quoted:{pattern:RegExp(/(^|\s)/.source+Ie),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(ae)}},16747:function(We,Ee,ae){"use strict";var oe=ae(73584),Pe=ae(87648);We.exports=Ie,Ie.displayName="t4Cs",Ie.aliases=[];function Ie(ke){ke.register(oe),ke.register(Pe),ke.languages.t4=ke.languages["t4-cs"]=ke.languages["t4-templating"].createT4("csharp")}},73584:function(We){"use strict";We.exports=Ee,Ee.displayName="t4Templating",Ee.aliases=[];function Ee(ae){(function(oe){function Pe(ke,Ve,Te){return{pattern:RegExp("<#"+ke+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+ke+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:Ve,alias:Te}}}}function Ie(ke){var Ve=oe.languages[ke],Te="language-"+ke;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:Pe("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:Pe("=",Ve,Te),"class-feature":Pe("\\+",Ve,Te),standard:Pe("",Ve,Te)}}}}oe.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:Ie})})(ae)}},79243:function(We,Ee,ae){"use strict";var oe=ae(73584),Pe=ae(55686);We.exports=Ie,Ie.displayName="t4Vb",Ie.aliases=[];function Ie(ke){ke.register(oe),ke.register(Pe),ke.languages["t4-vb"]=ke.languages["t4-templating"].createT4("vbnet")}},31788:function(We,Ee,ae){"use strict";var oe=ae(14409);We.exports=Pe,Pe.displayName="tap",Pe.aliases=[];function Pe(Ie){Ie.register(oe),Ie.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:Ie.languages.yaml,alias:"language-yaml"}}}},60871:function(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="textile",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,Ie=/\)|\((?![^|()\n]+\))/.source;function ke(St,$e){return RegExp(St.replace(/<MOD>/g,function(){return"(?:"+Pe+")"}).replace(/<PAR>/g,function(){return"(?:"+Ie+")"}),$e||"")}var Ve={css:{pattern:/\{[^{}]+\}/,inside:{rest:oe.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},Te=oe.languages.textile=oe.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:ke(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:ke(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:Ve},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:ke(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:ke(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:Ve},punctuation:/^[*#]+/}},table:{pattern:ke(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:ke(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:Ve},punctuation:/\||^\./}},inline:{pattern:ke(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:ke(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:ke(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:ke(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:ke(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:ke(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:ke(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:ke(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:ke(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:Ve},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:ke(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:ke(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:ke(/(^")<MOD>+/.source),lookbehind:!0,inside:Ve},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:ke(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:ke(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:ke(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:Ve},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),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 Ke=Ge.inline.inside;Ke.bold.inside=lt,Ke.italic.inside=lt,Ke.inserted.inside=lt,Ke.deleted.inside=lt,Ke.span.inside=lt;var He=Ge.table.inside;He.inline=lt.inline,He.link=lt.link,He.image=lt.image,He.footnote=lt.footnote,He.acronym=lt.acronym,He.mark=lt.mark})(ae)}},14693:function(We){"use strict";We.exports=Ee,Ee.displayName="toml",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function Ie(ke){return ke.replace(/__/g,function(){return Pe})}oe.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(Ie(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(Ie(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(ae)}},8743:function(We){"use strict";We.exports=Ee,Ee.displayName="tremor",Ee.aliases=[];function Ee(ae){(function(oe){oe.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var Pe=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;oe.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+Pe+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+Pe+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(Pe),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:oe.languages.tremor}}},string:/[\s\S]+/}},oe.languages.troy=oe.languages.tremor,oe.languages.trickle=oe.languages.tremor})(ae)}},1689:function(We,Ee,ae){"use strict";var oe=ae(24103),Pe=ae(92784);We.exports=Ie,Ie.displayName="tsx",Ie.aliases=[];function Ie(ke){ke.register(oe),ke.register(Pe),function(Ve){var Te=Ve.util.clone(Ve.languages.typescript);Ve.languages.tsx=Ve.languages.extend("jsx",Te),delete Ve.languages.tsx.parameter,delete Ve.languages.tsx["literal-property"];var Ge=Ve.languages.tsx.tag;Ge.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+Ge.pattern.source+")",Ge.pattern.flags),Ge.lookbehind=!0}(ke)}},69210:function(We,Ee,ae){"use strict";var oe=ae(51478);We.exports=Pe,Pe.displayName="tt2",Pe.aliases=[];function Pe(Ie){Ie.register(oe),function(ke){ke.languages.tt2=ke.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),ke.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),ke.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),ke.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete ke.languages.tt2.string,ke.hooks.add("before-tokenize",function(Ve){var Te=/\[%[\s\S]+?%\]/g;ke.languages["markup-templating"].buildPlaceholders(Ve,"tt2",Te)}),ke.hooks.add("after-tokenize",function(Ve){ke.languages["markup-templating"].tokenizePlaceholders(Ve,"tt2")})}(Ie)}},58710:function(We){"use strict";We.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(We,Ee,ae){"use strict";var oe=ae(51478);We.exports=Pe,Pe.displayName="twig",Pe.aliases=[];function Pe(Ie){Ie.register(oe),Ie.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},Ie.hooks.add("before-tokenize",function(ke){if(ke.language==="twig"){var Ve=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;Ie.languages["markup-templating"].buildPlaceholders(ke,"twig",Ve)}}),Ie.hooks.add("after-tokenize",function(ke){Ie.languages["markup-templating"].tokenizePlaceholders(ke,"twig")})}},92784:function(We){"use strict";We.exports=Ee,Ee.displayName="typescript",Ee.aliases=["ts"];function Ee(ae){(function(oe){oe.languages.typescript=oe.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),oe.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete oe.languages.typescript.parameter,delete oe.languages.typescript["literal-property"];var Pe=oe.languages.extend("typescript",{});delete Pe["class-name"],oe.languages.typescript["class-name"].inside=Pe,oe.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:Pe}}}}),oe.languages.ts=oe.languages.typescript})(ae)}},36489:function(We){"use strict";We.exports=Ee,Ee.displayName="typoscript",Ee.aliases=["tsconfig"];function Ee(ae){(function(oe){var Pe=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;oe.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:Pe}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:Pe,number:/^\d+$/,punctuation:/[,|:]/}},keyword:Pe,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},oe.languages.tsconfig=oe.languages.typoscript})(ae)}},78380:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="v",Ee.aliases=[];function Ee(ae){(function(oe){var Pe={pattern:/[\s\S]+/,inside:null};oe.languages.v=oe.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":Pe}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),Pe.inside=oe.languages.v,oe.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),oe.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),oe.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:oe.languages.v.generic.inside}}}})})(ae)}},62282:function(We){"use strict";We.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(We,Ee,ae){"use strict";var oe=ae(51422);We.exports=Pe,Pe.displayName="vbnet",Pe.aliases=[];function Pe(Ie){Ie.register(oe),Ie.languages.vbnet=Ie.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}},70889:function(We){"use strict";We.exports=Ee,Ee.displayName="velocity",Ee.aliases=[];function Ee(ae){(function(oe){oe.languages.velocity=oe.languages.extend("markup",{});var Pe={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};Pe.variable.inside={string:Pe.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:Pe.number,boolean:Pe.boolean,punctuation:Pe.punctuation},oe.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:Pe}},variable:Pe.variable}),oe.languages.velocity.tag.inside["attr-value"].inside.rest=oe.languages.velocity})(ae)}},37116:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="webIdl",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,Ie="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+Pe+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,ke={};oe.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+Pe),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:ke},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+Ie),lookbehind:!0,inside:ke},{pattern:RegExp("("+/\bcallback\s+/.source+Pe+/\s*=\s*/.source+")"+Ie),lookbehind:!0,inside:ke},{pattern:RegExp(/(\btypedef\b\s*)/.source+Ie),lookbehind:!0,inside:ke},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+Pe),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+Pe),lookbehind:!0},RegExp(Pe+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+Pe),lookbehind:!0},{pattern:RegExp(Ie+"(?="+/\s*(?:\.{3}\s*)?/.source+Pe+/\s*[(),;=]/.source+")"),inside:ke}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var Ve in oe.languages["web-idl"])Ve!=="class-name"&&(ke[Ve]=oe.languages["web-idl"][Ve]);oe.languages.webidl=oe.languages["web-idl"]})(ae)}},8921:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="xmlDoc",Ee.aliases=[];function Ee(ae){(function(oe){function Pe(Te,Ge){oe.languages[Te]&&oe.languages.insertBefore(Te,"comment",{"doc-comment":Ge})}var Ie=oe.languages.markup.tag,ke={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:Ie}},Ve={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:Ie}};Pe("csharp",ke),Pe("fsharp",ke),Pe("vbnet",Ve)})(ae)}},86095:function(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="xquery",Ee.aliases=[];function Ee(ae){(function(oe){oe.languages.xquery=oe.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),oe.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,oe.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,oe.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,oe.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:oe.languages.xquery,alias:"language-xquery"};var Pe=function(ke){return typeof ke=="string"?ke:typeof ke.content=="string"?ke.content:ke.content.map(Pe).join("")},Ie=function(ke){for(var Ve=[],Te=0;Te<ke.length;Te++){var Ge=ke[Te],lt=!1;if(typeof Ge!="string"&&(Ge.type==="tag"&&Ge.content[0]&&Ge.content[0].type==="tag"?Ge.content[0].content[0].content==="</"?Ve.length>0&&Ve[Ve.length-1].tagName===Pe(Ge.content[0].content[1])&&Ve.pop():Ge.content[Ge.content.length-1].content==="/>"||Ve.push({tagName:Pe(Ge.content[0].content[1]),openedBraces:0}):Ve.length>0&&Ge.type==="punctuation"&&Ge.content==="{"&&(!ke[Te+1]||ke[Te+1].type!=="punctuation"||ke[Te+1].content!=="{")&&(!ke[Te-1]||ke[Te-1].type!=="plain-text"||ke[Te-1].content!=="{")?Ve[Ve.length-1].openedBraces++:Ve.length>0&&Ve[Ve.length-1].openedBraces>0&&Ge.type==="punctuation"&&Ge.content==="}"?Ve[Ve.length-1].openedBraces--:Ge.type!=="comment"&&(lt=!0)),(lt||typeof Ge=="string")&&Ve.length>0&&Ve[Ve.length-1].openedBraces===0){var Ke=Pe(Ge);Te<ke.length-1&&(typeof ke[Te+1]=="string"||ke[Te+1].type==="plain-text")&&(Ke+=Pe(ke[Te+1]),ke.splice(Te+1,1)),Te>0&&(typeof ke[Te-1]=="string"||ke[Te-1].type==="plain-text")&&(Ke=Pe(ke[Te-1])+Ke,ke.splice(Te-1,1),Te--),/^\s+$/.test(Ke)?ke[Te]=Ke:ke[Te]=new oe.Token("plain-text",Ke,null,Ke)}Ge.content&&typeof Ge.content!="string"&&Ie(Ge.content)}};oe.hooks.add("after-tokenize",function(ke){ke.language==="xquery"&&Ie(ke.tokens)})})(ae)}},14409:function(We){"use strict";We.exports=Ee,Ee.displayName="yaml",Ee.aliases=["yml"];function Ee(ae){(function(oe){var Pe=/[*&][^\s[\]{},]+/,Ie=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,ke="(?:"+Ie.source+"(?:[ ]+"+Pe.source+")?|"+Pe.source+"(?:[ ]+"+Ie.source+")?)",Ve=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),Te=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function Ge(lt,Ke){Ke=(Ke||"").replace(/m/g,"")+"m";var He=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return ke}).replace(/<<value>>/g,function(){return lt});return RegExp(He,Ke)}oe.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return ke})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return ke}).replace(/<<key>>/g,function(){return"(?:"+Ve+"|"+Te+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern: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:Ie,important:Pe,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},oe.languages.yml=oe.languages.yaml})(ae)}},33460:function(We){"use strict";We.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(We){"use strict";We.exports=Ee,Ee.displayName="zig",Ee.aliases=[];function Ee(ae){(function(oe){function Pe(Ke){return function(){return Ke}}var Ie=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,ke="\\b(?!"+Ie.source+")(?!\\d)\\w+\\b",Ve=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,Te=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,Pe(Ve)),Ge=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,Pe(ke)),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,Pe(lt)).replace(/<ALIGN>/g,Pe(Ve))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,Pe(lt)).replace(/<ALIGN>/g,Pe(Ve))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:Ie,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},oe.languages.zig["class-name"].forEach(function(Ke){Ke.inside===null&&(Ke.inside=oe.languages.zig)})})(ae)}},92848:function(We,Ee){"use strict";var ae;Ee.Q=ke,ae=Ve;var oe="",Pe=" ",Ie=/[ \t\n\r\f]+/g;function ke(Te){var Ge=String(Te||oe).trim();return Ge===oe?[]:Ge.split(Ie)}function Ve(Te){return Te.join(Pe).trim()}},77179:function(We,Ee,ae){"use strict";var oe=this&&this.__importDefault||function(Ve){return Ve&&Ve.__esModule?Ve:{default:Ve}},Pe=oe(ae(58970)),Ie=ae(39159);function ke(Ve,Te){var Ge={};return!Ve||typeof Ve!="string"||(0,Pe.default)(Ve,function(lt,Ke){lt&&Ke&&(Ge[(0,Ie.camelCase)(lt,Te)]=Ke)}),Ge}ke.default=ke,We.exports=ke},39159:function(We,Ee){"use strict";Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.camelCase=void 0;var ae=/^--[a-zA-Z0-9_-]+$/,oe=/-([a-z])/g,Pe=/^[^-]+$/,Ie=/^-(webkit|moz|ms|o|khtml)-/,ke=/^-(ms)-/,Ve=function(Ke){return!Ke||Pe.test(Ke)||ae.test(Ke)},Te=function(Ke,He){return He.toUpperCase()},Ge=function(Ke,He){return"".concat(He,"-")},lt=function(Ke,He){return He===void 0&&(He={}),Ve(Ke)?Ke:(Ke=Ke.toLowerCase(),He.reactCompat?Ke=Ke.replace(ke,Ge):Ke=Ke.replace(Ie,Ge),Ke.replace(oe,Te))};Ee.camelCase=lt},58970:function(We,Ee,ae){"use strict";var oe=this&&this.__importDefault||function(ke){return ke&&ke.__esModule?ke:{default:ke}};Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.default=Ie;var Pe=oe(ae(93193));function Ie(ke,Ve){var Te=null;if(!ke||typeof ke!="string")return Te;var Ge=(0,Pe.default)(ke),lt=typeof Ve=="function";return Ge.forEach(function(Ke){if(Ke.type==="declaration"){var He=Ke.property,St=Ke.value;lt?Ve(He,St,Ke):St&&(Te=Te||{},Te[He]=St)}}),Te}},97270:function(We){We.exports=ae;var Ee=Object.prototype.hasOwnProperty;function ae(){for(var oe={},Pe=0;Pe<arguments.length;Pe++){var Ie=arguments[Pe];for(var ke in Ie)Ee.call(Ie,ke)&&(oe[ke]=Ie[ke])}return oe}},32637:function(We,Ee,ae){"use strict";We.exports=ae.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(We){"use strict";We.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(We){"use strict";We.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAZxJREFUOBGtlL1Ow0AMgH2XUIkOLFXVASgTsDHxBIAEzAwMPBQjT8AATGVBgEBCYmHmFcICYmBogCbNYSe52HUTVZWwFJ3PP599Z+WMcy6Af5SwYkWnLYifTyBzq5XNK8YNwbbvYP381ZuaVlN1+HJwAc4d1QYaA+gDsHYANrhGHTdCMtSDMILtwSMDn7ZiANPKwyjeQ0Reo4r1gEoEwRkDb7spdPcBeocMk1Cv00oii5L+fgPwcR/zHfb3AJY2sEpUVLOUhB/l+w7I1iS9TYDFrM3AzhqGDstPZ3li2Z12U2WLvk4fGJh+F0elYN8ZrbWiA7igAP4WR6sFzDAKPgPHP0VnlMsFS5IyyIGoeAamCKybYI5UQLWVE2fgGI/s72wqQXRd9jyxiHgGJtihFxGQm8Qd5XvtF3fEQOrQH9mDm1Z9hyJuEphXIq9uSWSQqv8a4RbAUTFdcs7gifwplYGjT3wzbPFz6Q70EZv8WZoxMP66ApMc86inirNBA8njcFIuvOTXhowPyzuQJiukzi3hQgS7b+I9nJtQn/AHsLGsvlcPPWsAAAAASUVORK5CYII="},5623:function(We){"use strict";We.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAedJREFUOBGtVDtLA0EQ/jY5z7dgEBVJLHyAitpYWQqKjVZa5BfEKpWlWPgrLG0UEdTexkILRUQiSBBBCAhGUINFHia53Dm7ufXcvfgIOHA3O69vvtnbPeY4ThD/KIF/xBJQhg/wbmkZtj0KMKbEGNIweg4xuPmq+DWDKSOfz2/AqaxpOVWzip8HC2xTsydfjoMHhMd2VMDjkSswTPqSucOhh3PmupaIediBOnL52UTLENC7QCV1bC9vkjkF3i4WVUDeORIF2sf5ymOk7mY1pr87hoHEhekHDLYQOfck8c6c6OeYfPHN3LyOxEB2KwQru0LrBvTPdaGRipj7ISUzqUWJ/moiRyc1tUXAQP42Tsa6sEIRCtwDRXqESDYS8RuG5iyRMEWFAat4CbvsAmgFmukmeYofJYeSAimab0L4DfQNHiF1laFAyMv840o2zN3Q1FMuIOIWStF9OtAxH4xkIC8NZyN9SnIOsNISkLRd3EWlFBP0lQJtDzVTyc8mBKB3U65nUnBYmDaFAr98BFGqvYKtwOMZHRsp1vsedVxV8bQRJXu5BbKWa6sAmK1lj2FiOoLcS5LYNX/N+3ktp+GapFJMeoDccdI9gEJ2nW5HhJjKuXmktih7yjJoC8VVwNpldXnr+KX8DfcD09mnwzz7SXEAAAAASUVORK5CYII="},36413:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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="},26356:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Pe}});var oe=ae(39787);function Pe(Ie,ke){var Ve=typeof Symbol!="undefined"&&Ie[Symbol.iterator]||Ie["@@iterator"];if(!Ve){if(Array.isArray(Ie)||(Ve=(0,oe.Z)(Ie))||ke&&Ie&&typeof Ie.length=="number"){Ve&&(Ie=Ve);var Te=0,Ge=function(){};return{s:Ge,n:function(){return Te>=Ie.length?{done:!0}:{done:!1,value:Ie[Te++]}},e:function($e){throw $e},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,Ke=!0,He=!1;return{s:function(){Ve=Ve.call(Ie)},n:function(){var $e=Ve.next();return Ke=$e.done,$e},e:function($e){He=!0,lt=$e},f:function(){try{Ke||Ve.return==null||Ve.return()}finally{if(He)throw lt}}}}},90302:function(We,Ee,ae){"use strict";ae.d(Ee,{ZP:function(){return be}});const oe=-1,Pe=0,Ie=1,ke=2,Ve=3,Te=4,Ge=5,lt=6,Ke=7,He=8,St=typeof self=="object"?self:globalThis,$e=(Ae,De)=>{const Ye=(Je,ot)=>(Ae.set(ot,Je),Je),nt=Je=>{if(Ae.has(Je))return Ae.get(Je);const[ot,mt]=De[Je];switch(ot){case Pe:case oe:return Ye(mt,Je);case Ie:{const it=Ye([],Je);for(const vt of mt)it.push(nt(vt));return it}case ke:{const it=Ye({},Je);for(const[vt,wt]of mt)it[nt(vt)]=nt(wt);return it}case Ve:return Ye(new Date(mt),Je);case Te:{const{source:it,flags:vt}=mt;return Ye(new RegExp(it,vt),Je)}case Ge:{const it=Ye(new Map,Je);for(const[vt,wt]of mt)it.set(nt(vt),nt(wt));return it}case lt:{const it=Ye(new Set,Je);for(const vt of mt)it.add(nt(vt));return it}case Ke:{const{name:it,message:vt}=mt;return Ye(new St[it](vt),Je)}case He:return Ye(BigInt(mt),Je);case"BigInt":return Ye(Object(BigInt(mt)),Je);case"ArrayBuffer":return Ye(new Uint8Array(mt).buffer,mt);case"DataView":{const{buffer:it}=new Uint8Array(mt);return Ye(new DataView(it),mt)}}return Ye(new St[ot](mt),Je)};return nt},It=Ae=>$e(new Map,Ae)(0),Fe="",{toString:te}={},{keys:ee}=Object,he=Ae=>{const De=typeof Ae;if(De!=="object"||!Ae)return[Pe,De];const Ye=te.call(Ae).slice(8,-1);switch(Ye){case"Array":return[Ie,Fe];case"Object":return[ke,Fe];case"Date":return[Ve,Fe];case"RegExp":return[Te,Fe];case"Map":return[Ge,Fe];case"Set":return[lt,Fe];case"DataView":return[Ie,Ye]}return Ye.includes("Array")?[Ie,Ye]:Ye.includes("Error")?[Ke,Ye]:[ke,Ye]},ue=([Ae,De])=>Ae===Pe&&(De==="function"||De==="symbol"),fe=(Ae,De,Ye,nt)=>{const Je=(mt,it)=>{const vt=nt.push(mt)-1;return Ye.set(it,vt),vt},ot=mt=>{if(Ye.has(mt))return Ye.get(mt);let[it,vt]=he(mt);switch(it){case Pe:{let Nt=mt;switch(vt){case"bigint":it=He,Nt=mt.toString();break;case"function":case"symbol":if(Ae)throw new TypeError("unable to serialize "+vt);Nt=null;break;case"undefined":return Je([oe],mt)}return Je([it,Nt],mt)}case Ie:{if(vt){let Qt=mt;return vt==="DataView"?Qt=new Uint8Array(mt.buffer):vt==="ArrayBuffer"&&(Qt=new Uint8Array(mt)),Je([vt,[...Qt]],mt)}const Nt=[],Ht=Je([it,Nt],mt);for(const Qt of mt)Nt.push(ot(Qt));return Ht}case ke:{if(vt)switch(vt){case"BigInt":return Je([vt,mt.toString()],mt);case"Boolean":case"Number":case"String":return Je([vt,mt.valueOf()],mt)}if(De&&"toJSON"in mt)return ot(mt.toJSON());const Nt=[],Ht=Je([it,Nt],mt);for(const Qt of ee(mt))(Ae||!ue(he(mt[Qt])))&&Nt.push([ot(Qt),ot(mt[Qt])]);return Ht}case Ve:return Je([it,mt.toISOString()],mt);case Te:{const{source:Nt,flags:Ht}=mt;return Je([it,{source:Nt,flags:Ht}],mt)}case Ge:{const Nt=[],Ht=Je([it,Nt],mt);for(const[Qt,Yt]of mt)(Ae||!(ue(he(Qt))||ue(he(Yt))))&&Nt.push([ot(Qt),ot(Yt)]);return Ht}case lt:{const Nt=[],Ht=Je([it,Nt],mt);for(const Qt of mt)(Ae||!ue(he(Qt)))&&Nt.push(ot(Qt));return Ht}}const{message:wt}=mt;return Je([it,{name:vt,message:wt}],mt)};return ot},me=(Ae,{json:De,lossy:Ye}={})=>{const nt=[];return fe(!(De||Ye),!!De,new Map,nt)(Ae),nt};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(We,Ee,ae){"use strict";ae.d(Ee,{P:function(){return Pe},Q:function(){return oe}});function oe(Ie){const ke=[],Ve=String(Ie||"");let Te=Ve.indexOf(","),Ge=0,lt=!1;for(;!lt;){Te===-1&&(Te=Ve.length,lt=!0);const Ke=Ve.slice(Ge,Te).trim();(Ke||!lt)&&ke.push(Ke),Ge=Te+1,Te=Ve.indexOf(",",Ge)}return ke}function Pe(Ie,ke){const Ve=ke||{};return(Ie[Ie.length-1]===""?[...Ie,""]:Ie).join((Ve.padRight?" ":"")+","+(Ve.padLeft===!1?"":" ")).trim()}},87342:function(We,Ee,ae){"use strict";ae.d(Ee,{ok:function(){return Ie},t1:function(){return ke}});function oe(Ve){return Ve}function Pe(){}function Ie(){}function ke(){}},40797:function(We,Ee,ae){"use strict";ae.d(Ee,{N:function(){return It}});var oe=ae(81994),Pe=ae(43309);function Ie(te,ee){return ke(te,ee||{})||{type:"root",children:[]}}function ke(te,ee){const he=Ve(te,ee);return he&&ee.afterTransform&&ee.afterTransform(te,he),he}function Ve(te,ee){switch(te.nodeType){case 1:return He(te,ee);case 3:return lt(te);case 8:return Ke(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:St(te,ee)}}function Ge(){return{type:"doctype"}}function lt(te){return{type:"text",value:te.nodeValue||""}}function Ke(te){return{type:"comment",value:te.nodeValue||""}}function He(te,ee){const he=te.namespaceURI,ue=he===Pe.t.svg?oe.s:oe.h,fe=he===Pe.t.html?te.tagName.toLowerCase():te.tagName,me=he===Pe.t.html&&fe==="template"?te.content:te,be=te.getAttributeNames(),Ae={};let De=-1;for(;++De<be.length;)Ae[be[De]]=te.getAttribute(be[De])||"";return ue(fe,Ae,St(me,ee))}function St(te,ee){const he=te.childNodes,ue=[];let fe=-1;for(;++fe<he.length;){const me=ke(he[fe],ee);me!==void 0&&ue.push(me)}return ue}const $e=new DOMParser;function It(te,ee){const he=ee!=null&&ee.fragment?Fe(te):$e.parseFromString(te,"text/html");return Ie(he)}function Fe(te){const ee=document.createElement("template");return ee.innerHTML=te,ee.content}},91378:function(We,Ee,ae){"use strict";ae.d(Ee,{l:function(){return ue}});var oe=ae(10502);const Pe=function(mt,it,vt){const wt=(0,oe.O)(vt);if(!mt||!mt.type||!mt.children)throw new Error("Expected parent node");if(typeof it=="number"){if(it<0||it===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(it=mt.children.indexOf(it),it<0)throw new Error("Expected child node or index");for(;++it<mt.children.length;)if(wt(mt.children[it],it,mt))return mt.children[it]},Ie=function(mt,it,vt,wt,Nt){const Ht=ke(it);if(vt!=null&&(typeof vt!="number"||vt<0||vt===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite `index`");if(wt!=null&&(!wt.type||!wt.children))throw new Error("Expected valid `parent`");if(vt==null!=(wt==null))throw new Error("Expected both `index` and `parent`");return Ke(mt)?Ht.call(Nt,mt,vt,wt):!1},ke=function(mt){if(mt==null)return lt;if(typeof mt=="string")return Te(mt);if(typeof mt=="object")return Ve(mt);if(typeof mt=="function")return Ge(mt);throw new Error("Expected function, string, or array as `test`")};function Ve(mt){const it=[];let vt=-1;for(;++vt<mt.length;)it[vt]=ke(mt[vt]);return Ge(wt);function wt(...Nt){let Ht=-1;for(;++Ht<it.length;)if(it[Ht].apply(this,Nt))return!0;return!1}}function Te(mt){return Ge(it);function it(vt){return vt.tagName===mt}}function Ge(mt){return it;function it(vt,wt,Nt){return!!(Ke(vt)&&mt.call(this,vt,typeof wt=="number"?wt:void 0,Nt||void 0))}}function lt(mt){return!!(mt&&typeof mt=="object"&&"type"in mt&&mt.type==="element"&&"tagName"in mt&&typeof mt.tagName=="string")}function Ke(mt){return mt!==null&&typeof mt=="object"&&"type"in mt&&"tagName"in mt}const He=/\n/g,St=/[\t ]+/g,$e=ke("br"),It=ke(Je),Fe=ke("p"),te=ke("tr"),ee=ke(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",nt,ot]),he=ke(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function ue(mt,it){const vt=it||{},wt="children"in mt?mt.children:[],Nt=he(mt),Ht=Ye(mt,{whitespace:vt.whitespace||"normal",breakBefore:!1,breakAfter:!1}),Qt=[];(mt.type==="text"||mt.type==="comment")&&Qt.push(...be(mt,{whitespace:Ht,breakBefore:!0,breakAfter:!0}));let Yt=-1;for(;++Yt<wt.length;)Qt.push(...fe(wt[Yt],mt,{whitespace:Ht,breakBefore:Yt?void 0:Nt,breakAfter:Yt<wt.length-1?$e(wt[Yt+1]):Nt}));const yn=[];let bt;for(Yt=-1;++Yt<Qt.length;){const ft=Qt[Yt];typeof ft=="number"?bt!==void 0&&ft>bt&&(bt=ft):ft&&(bt!==void 0&&bt>-1&&yn.push(`
`.repeat(bt)||" "),bt=-1,yn.push(ft))}return yn.join("")}function fe(mt,it,vt){return mt.type==="element"?me(mt,it,vt):mt.type==="text"?vt.whitespace==="normal"?be(mt,vt):Ae(mt):[]}function me(mt,it,vt){const wt=Ye(mt,vt),Nt=mt.children||[];let Ht=-1,Qt=[];if(ee(mt))return Qt;let Yt,yn;for($e(mt)||te(mt)&&Pe(it,mt,te)?yn=`
`:Fe(mt)?(Yt=2,yn=2):he(mt)&&(Yt=1,yn=1);++Ht<Nt.length;)Qt=Qt.concat(fe(Nt[Ht],mt,{whitespace:wt,breakBefore:Ht?void 0:Yt,breakAfter:Ht<Nt.length-1?$e(Nt[Ht+1]):yn}));return It(mt)&&Pe(it,mt,It)&&Qt.push(" "),Yt&&Qt.unshift(Yt),yn&&Qt.push(yn),Qt}function be(mt,it){const vt=String(mt.value),wt=[],Nt=[];let Ht=0;for(;Ht<=vt.length;){He.lastIndex=Ht;const yn=He.exec(vt),bt=yn&&"index"in yn?yn.index:vt.length;wt.push(De(vt.slice(Ht,bt).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),Ht===0?it.breakBefore:!0,bt===vt.length?it.breakAfter:!0)),Ht=bt+1}let Qt=-1,Yt;for(;++Qt<wt.length;)wt[Qt].charCodeAt(wt[Qt].length-1)===8203||Qt<wt.length-1&&wt[Qt+1].charCodeAt(0)===8203?(Nt.push(wt[Qt]),Yt=void 0):wt[Qt]?(typeof Yt=="number"&&Nt.push(Yt),Nt.push(wt[Qt]),Yt=0):(Qt===0||Qt===wt.length-1)&&Nt.push(0);return Nt}function Ae(mt){return[String(mt.value)]}function De(mt,it,vt){const wt=[];let Nt=0,Ht;for(;Nt<mt.length;){St.lastIndex=Nt;const Qt=St.exec(mt);Ht=Qt?Qt.index:mt.length,!Nt&&!Ht&&Qt&&!it&&wt.push(""),Nt!==Ht&&wt.push(mt.slice(Nt,Ht)),Nt=Qt?Ht+Qt[0].length:Ht}return Nt!==Ht&&!vt&&wt.push(""),wt.join(" ")}function Ye(mt,it){if(mt.type==="element"){const vt=mt.properties||{};switch(mt.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return vt.wrap?"pre-wrap":"pre";case"td":case"th":return vt.noWrap?"nowrap":it.whitespace;case"textarea":return"pre-wrap";default:}}return it.whitespace}function nt(mt){return!!(mt.properties||{}).hidden}function Je(mt){return mt.tagName==="td"||mt.tagName==="th"}function ot(mt){return mt.tagName==="dialog"&&!(mt.properties||{}).open}},81994:function(We,Ee,ae){"use strict";ae.d(Ee,{h:function(){return ee},s:function(){return he}});var oe=ae(14470),Pe=ae(11630);const Ie=/[#.]/g;function ke(ue,fe){const me=ue||"",be={};let Ae=0,De,Ye;for(;Ae<me.length;){Ie.lastIndex=Ae;const nt=Ie.exec(me),Je=me.slice(Ae,nt?nt.index:me.length);Je&&(De?De==="#"?be.id=Je:Array.isArray(be.className)?be.className.push(Je):be.className=[Je]:Ye=Je,Ae+=Je.length),nt&&(De=nt[0],Ae++)}return{type:"element",tagName:Ye||fe||"div",properties:be,children:[]}}var Ve=ae(86825),Te=ae(13830),Ge=ae(71523);function lt(ue,fe,me){const be=me?Fe(me):void 0;function Ae(De,Ye,...nt){let Je;if(De==null){Je={type:"root",children:[]};const ot=Ye;nt.unshift(ot)}else{Je=ke(De,fe);const ot=Je.tagName.toLowerCase(),mt=be?be.get(ot):void 0;if(Je.tagName=mt||ot,Ke(Ye))nt.unshift(Ye);else for(const[it,vt]of Object.entries(Ye))He(ue,Je.properties,it,vt)}for(const ot of nt)St(Je.children,ot);return Je.type==="element"&&Je.tagName==="template"&&(Je.content={type:"root",children:Je.children},Je.children=[]),Je}return Ae}function Ke(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 He(ue,fe,me,be){const Ae=(0,Ve.s)(ue,me);let De;if(be!=null){if(typeof be=="number"){if(Number.isNaN(be))return;De=be}else typeof be=="boolean"?De=be:typeof be=="string"?Ae.spaceSeparated?De=(0,Ge.Q)(be):Ae.commaSeparated?De=(0,Pe.Q)(be):Ae.commaOrSpaceSeparated?De=(0,Ge.Q)((0,Pe.Q)(be).join(" ")):De=$e(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 nt of De)Ye.push($e(Ae,Ae.property,nt));De=Ye}Ae.property==="className"&&Array.isArray(fe.className)&&(De=fe.className.concat(De)),fe[Ae.property]=De}}function St(ue,fe){if(fe!=null)if(typeof fe=="number"||typeof fe=="string")ue.push({type:"text",value:String(fe)});else if(Array.isArray(fe))for(const me of fe)St(ue,me);else if(typeof fe=="object"&&"type"in fe)fe.type==="root"?St(ue,fe.children):ue.push(fe);else throw new Error("Expected node, nodes, or string, got `"+fe+"`")}function $e(ue,fe,me){if(typeof me=="string"){if(ue.number&&me&&!Number.isNaN(Number(me)))return Number(me);if((ue.boolean||ue.overloadedBoolean)&&(me===""||(0,Te.F)(me)===(0,Te.F)(fe)))return!0}return me}function It(ue){const fe=[];for(const[me,be]of Object.entries(ue))fe.push([me,be].join(": "));return fe.join("; ")}function Fe(ue){const fe=new Map;for(const me of ue)fe.set(me.toLowerCase(),me);return fe}const te=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],ee=lt(oe.dy,"div"),he=lt(oe.YP,"g",te)},26735:function(We,Ee,ae){"use strict";ae.d(Ee,{f:function(){return Pe}});var oe=ae(80722);function Pe(Ie,ke,Ve,Te){const Ge=Te?Te-1:Number.POSITIVE_INFINITY;let lt=0;return Ke;function Ke(St){return(0,oe.xz)(St)?(Ie.enter(Ve),He(St)):ke(St)}function He(St){return(0,oe.xz)(St)&&lt++<Ge?(Ie.consume(St),He):(Ie.exit(Ve),ke(St))}}},80722:function(We,Ee,ae){"use strict";ae.d(Ee,{AF:function(){return Te},Av:function(){return ke},B8:function(){return $e},Ch:function(){return lt},H$:function(){return Pe},Xh:function(){return St},jv:function(){return oe},n9:function(){return Ie},pY:function(){return Ve},sR:function(){return Ge},xz:function(){return He},z3:function(){return Ke}});const oe=It(/[A-Za-z]/),Pe=It(/[\dA-Za-z]/),Ie=It(/[#-'*+\--9=?A-Z^-~]/);function ke(Fe){return Fe!==null&&(Fe<32||Fe===127)}const Ve=It(/\d/),Te=It(/[\dA-Fa-f]/),Ge=It(/[!-/:-@[-`{-~]/);function lt(Fe){return Fe!==null&&Fe<-2}function Ke(Fe){return Fe!==null&&(Fe<0||Fe===32)}function He(Fe){return Fe===-2||Fe===-1||Fe===32}const St=It(new RegExp("\\p{P}|\\p{S}","u")),$e=It(/\s/);function It(Fe){return te;function te(ee){return ee!==null&&ee>-1&&Fe.test(String.fromCharCode(ee))}}},14470:function(We,Ee,ae){"use strict";ae.d(Ee,{dy:function(){return te},YP:function(){return ee}});class oe{constructor(ue,fe,me){this.normal=fe,this.property=ue,me&&(this.space=me)}}oe.prototype.normal={},oe.prototype.property={},oe.prototype.space=void 0;function Pe(he,ue){const fe={},me={};for(const be of he)Object.assign(fe,be.property),Object.assign(me,be.normal);return new oe(fe,me,ue)}var Ie=ae(13830),ke=ae(53538);function Ve(he){const ue={},fe={};for(const[me,be]of Object.entries(he.properties)){const Ae=new ke.I(me,he.transform(he.attributes||{},me),be,he.space);he.mustUseProperty&&he.mustUseProperty.includes(me)&&(Ae.mustUseProperty=!0),ue[me]=Ae,fe[(0,Ie.F)(me)]=me,fe[(0,Ie.F)(Ae.attribute)]=me}return new oe(ue,fe,he.space)}var Te=ae(71337);const Ge=Ve({properties:{ariaActiveDescendant:null,ariaAtomic:Te.booleanish,ariaAutoComplete:null,ariaBusy:Te.booleanish,ariaChecked:Te.booleanish,ariaColCount:Te.number,ariaColIndex:Te.number,ariaColSpan:Te.number,ariaControls:Te.spaceSeparated,ariaCurrent:null,ariaDescribedBy:Te.spaceSeparated,ariaDetails:null,ariaDisabled:Te.booleanish,ariaDropEffect:Te.spaceSeparated,ariaErrorMessage:null,ariaExpanded:Te.booleanish,ariaFlowTo:Te.spaceSeparated,ariaGrabbed:Te.booleanish,ariaHasPopup:null,ariaHidden:Te.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Te.spaceSeparated,ariaLevel:Te.number,ariaLive:null,ariaModal:Te.booleanish,ariaMultiLine:Te.booleanish,ariaMultiSelectable:Te.booleanish,ariaOrientation:null,ariaOwns:Te.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:Te.number,ariaPressed:Te.booleanish,ariaReadOnly:Te.booleanish,ariaRelevant:null,ariaRequired:Te.booleanish,ariaRoleDescription:Te.spaceSeparated,ariaRowCount:Te.number,ariaRowIndex:Te.number,ariaRowSpan:Te.number,ariaSelected:Te.booleanish,ariaSetSize:Te.number,ariaSort:null,ariaValueMax:Te.number,ariaValueMin:Te.number,ariaValueNow:Te.number,ariaValueText:null,role:null},transform(he,ue){return ue==="role"?ue:"aria-"+ue.slice(4).toLowerCase()}});function lt(he,ue){return ue in he?he[ue]:ue}function Ke(he,ue){return lt(he,ue.toLowerCase())}const He=Ve({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Te.commaSeparated,acceptCharset:Te.spaceSeparated,accessKey:Te.spaceSeparated,action:null,allow:null,allowFullScreen:Te.boolean,allowPaymentRequest:Te.boolean,allowUserMedia:Te.boolean,alt:null,as:null,async:Te.boolean,autoCapitalize:null,autoComplete:Te.spaceSeparated,autoFocus:Te.boolean,autoPlay:Te.boolean,blocking:Te.spaceSeparated,capture:null,charSet:null,checked:Te.boolean,cite:null,className:Te.spaceSeparated,cols:Te.number,colSpan:null,content:null,contentEditable:Te.booleanish,controls:Te.boolean,controlsList:Te.spaceSeparated,coords:Te.number|Te.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Te.boolean,defer:Te.boolean,dir:null,dirName:null,disabled:Te.boolean,download:Te.overloadedBoolean,draggable:Te.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Te.boolean,formTarget:null,headers:Te.spaceSeparated,height:Te.number,hidden:Te.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:Ke}),St=Ve({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Te.commaOrSpaceSeparated,accentHeight:Te.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Te.number,amplitude:Te.number,arabicForm:null,ascent:Te.number,attributeName:null,attributeType:null,azimuth:Te.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Te.number,by:null,calcMode:null,capHeight:Te.number,className:Te.spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Te.number,diffuseConstant:Te.number,direction:null,display:null,dur:null,divisor:Te.number,dominantBaseline:null,download:Te.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:Te.number,enableBackground:null,end:null,event:null,exponent:Te.number,externalResourcesRequired:null,fill:null,fillOpacity:Te.number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Te.commaSeparated,g2:Te.commaSeparated,glyphName:Te.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Te.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Te.number,horizOriginX:Te.number,horizOriginY:Te.number,id:null,ideographic:Te.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Te.number,k:Te.number,k1:Te.number,k2:Te.number,k3:Te.number,k4:Te.number,kernelMatrix:Te.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Te.number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Te.number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Te.number,overlineThickness:Te.number,paintOrder:null,panose1:null,path:null,pathLength:Te.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Te.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Te.number,pointsAtY:Te.number,pointsAtZ:Te.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Te.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Te.commaOrSpaceSeparated,rev:Te.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Te.commaOrSpaceSeparated,requiredFeatures:Te.commaOrSpaceSeparated,requiredFonts:Te.commaOrSpaceSeparated,requiredFormats:Te.commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Te.number,specularExponent:Te.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Te.number,strikethroughThickness:Te.number,string:null,stroke:null,strokeDashArray:Te.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Te.number,strokeOpacity:Te.number,strokeWidth:null,style:null,surfaceScale:Te.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Te.commaOrSpaceSeparated,tabIndex:Te.number,tableValues:null,target:null,targetX:Te.number,targetY:Te.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Te.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Te.number,underlineThickness:Te.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Te.number,values:null,vAlphabetic:Te.number,vMathematical:Te.number,vectorEffect:null,vHanging:Te.number,vIdeographic:Te.number,version:null,vertAdvY:Te.number,vertOriginX:Te.number,vertOriginY:Te.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Te.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:lt}),$e=Ve({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(he,ue){return"xlink:"+ue.slice(5).toLowerCase()}}),It=Ve({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ke}),Fe=Ve({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(he,ue){return"xml:"+ue.slice(3).toLowerCase()}}),te=Pe([Ge,He,$e,It,Fe],"html"),ee=Pe([Ge,St,$e,It,Fe],"svg")},86825:function(We,Ee,ae){"use strict";ae.d(Ee,{s:function(){return Ge}});var oe=ae(53538),Pe=ae(25629),Ie=ae(13830);const ke=/[A-Z]/g,Ve=/-[a-z]/g,Te=/^data[-\w.:]+$/i;function Ge(He,St){const $e=(0,Ie.F)(St);let It=St,Fe=Pe.k;if($e in He.normal)return He.property[He.normal[$e]];if($e.length>4&&$e.slice(0,4)==="data"&&Te.test(St)){if(St.charAt(4)==="-"){const te=St.slice(5).replace(Ve,Ke);It="data"+te.charAt(0).toUpperCase()+te.slice(1)}else{const te=St.slice(4);if(!Ve.test(te)){let ee=te.replace(ke,lt);ee.charAt(0)!=="-"&&(ee="-"+ee),St="data"+ee}}Fe=oe.I}return new Fe(It,St)}function lt(He){return"-"+He.toLowerCase()}function Ke(He){return He.charAt(1).toUpperCase()}},13830:function(We,Ee,ae){"use strict";ae.d(Ee,{F:function(){return oe}});function oe(Pe){return Pe.toLowerCase()}},53538:function(We,Ee,ae){"use strict";ae.d(Ee,{I:function(){return ke}});var oe=ae(25629),Pe=ae(71337);const Ie=Object.keys(Pe);class ke extends oe.k{constructor(Ge,lt,Ke,He){let St=-1;if(super(Ge,lt),Ve(this,"space",He),typeof Ke=="number")for(;++St<Ie.length;){const $e=Ie[St];Ve(this,Ie[St],(Ke&Pe[$e])===Pe[$e])}}}ke.prototype.defined=!0;function Ve(Te,Ge,lt){lt&&(Te[Ge]=lt)}},25629:function(We,Ee,ae){"use strict";ae.d(Ee,{k:function(){return oe}});class oe{constructor(Ie,ke){this.attribute=ke,this.property=Ie}}oe.prototype.attribute="",oe.prototype.booleanish=!1,oe.prototype.boolean=!1,oe.prototype.commaOrSpaceSeparated=!1,oe.prototype.commaSeparated=!1,oe.prototype.defined=!1,oe.prototype.mustUseProperty=!1,oe.prototype.number=!1,oe.prototype.overloadedBoolean=!1,oe.prototype.property="",oe.prototype.spaceSeparated=!1,oe.prototype.space=void 0},71337:function(We,Ee,ae){"use strict";ae.r(Ee),ae.d(Ee,{boolean:function(){return Pe},booleanish:function(){return Ie},commaOrSpaceSeparated:function(){return lt},commaSeparated:function(){return Ge},number:function(){return Ve},overloadedBoolean:function(){return ke},spaceSeparated:function(){return Te}});let oe=0;const Pe=Ke(),Ie=Ke(),ke=Ke(),Ve=Ke(),Te=Ke(),Ge=Ke(),lt=Ke();function Ke(){return aS(2,++oe)}},74439:function(We,Ee,ae){"use strict";ae.d(Ee,{UG:function(){return Ks}});var oe={};ae.r(oe),ae.d(oe,{attentionMarkers:function(){return _a},contentInitial:function(){return ws},disable:function(){return ds},document:function(){return ia},flow:function(){return xl},flowInitial:function(){return Ba},insideSpan:function(){return Ia},string:function(){return Cs},text:function(){return Xi}});var Pe=ae(87342),Ie=ae(11630);const ke=/[$_\p{ID_Start}]/u,Ve=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Te=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Ge=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,lt=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ke={};function He(Ce){return Ce?ke.test(String.fromCodePoint(Ce)):!1}function St(Ce,Qe){const pt=(Qe||Ke).jsx?Te:Ve;return Ce?pt.test(String.fromCodePoint(Ce)):!1}function $e(Ce,Qe){return((Qe||Ke).jsx?lt:Ge).test(Ce)}const It=/[ \t\n\f\r]/g;function Fe(Ce){return typeof Ce=="object"?Ce.type==="text"?te(Ce.value):!1:te(Ce)}function te(Ce){return Ce.replace(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(77179),be=ae(17970);function Ae(Ce){return!Ce||typeof Ce!="object"?"":"position"in Ce||"type"in Ce?Ye(Ce.position):"start"in Ce||"end"in Ce?Ye(Ce):"line"in Ce||"column"in Ce?De(Ce):""}function De(Ce){return nt(Ce&&Ce.line)+":"+nt(Ce&&Ce.column)}function Ye(Ce){return De(Ce&&Ce.start)+"-"+De(Ce&&Ce.end)}function nt(Ce){return Ce&&typeof Ce=="number"?Ce:1}class Je extends Error{constructor(Qe,tt,pt){super(),typeof tt=="string"&&(pt=tt,tt=void 0);let Ft="",Ut={},an=!1;if(tt&&("line"in tt&&"column"in tt?Ut={place:tt}:"start"in tt&&"end"in tt?Ut={place:tt}:"type"in tt?Ut={ancestors:[tt],place:tt.position}:Ut=xa({},tt)),typeof Qe=="string"?Ft=Qe:!Ut.cause&&Qe&&(an=!0,Ft=Qe.message,Ut.cause=Qe),!Ut.ruleId&&!Ut.source&&typeof pt=="string"){const Sr=pt.indexOf(":");Sr===-1?Ut.ruleId=pt:(Ut.source=pt.slice(0,Sr),Ut.ruleId=pt.slice(Sr+1))}if(!Ut.place&&Ut.ancestors&&Ut.ancestors){const Sr=Ut.ancestors[Ut.ancestors.length-1];Sr&&(Ut.place=Sr.position)}const Nn=Ut.place&&"start"in Ut.place?Ut.place.start:Ut.place;this.ancestors=Ut.ancestors||void 0,this.cause=Ut.cause||void 0,this.column=Nn?Nn.column:void 0,this.fatal=void 0,this.file,this.message=Ft,this.line=Nn?Nn.line:void 0,this.name=Ae(Ut.place)||"1:1",this.place=Ut.place||void 0,this.reason=this.message,this.ruleId=Ut.ruleId||void 0,this.source=Ut.source||void 0,this.stack=an&&Ut.cause&&typeof Ut.cause.stack=="string"?Ut.cause.stack:"",this.actual,this.expected,this.note,this.url}}Je.prototype.file="",Je.prototype.name="",Je.prototype.reason="",Je.prototype.message="",Je.prototype.stack="",Je.prototype.column=void 0,Je.prototype.line=void 0,Je.prototype.ancestors=void 0,Je.prototype.cause=void 0,Je.prototype.fatal=void 0,Je.prototype.place=void 0,Je.prototype.ruleId=void 0,Je.prototype.source=void 0;const ot={}.hasOwnProperty,mt=new Map,it=/[A-Z]/g,vt=new Set(["table","tbody","thead","tfoot","tr"]),wt=new Set(["td","th"]),Nt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ht(Ce,Qe){if(!Qe||Qe.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const tt=Qe.filePath||void 0;let pt;if(Qe.development){if(typeof Qe.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");pt=An(tt,Qe.jsxDEV)}else{if(typeof Qe.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof Qe.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");pt=bn(tt,Qe.jsx,Qe.jsxs)}const Ft={Fragment:Qe.Fragment,ancestors:[],components:Qe.components||{},create:pt,elementAttributeNameCase:Qe.elementAttributeNameCase||"react",evaluater:Qe.createEvaluater?Qe.createEvaluater():void 0,filePath:tt,ignoreInvalidStyle:Qe.ignoreInvalidStyle||!1,passKeys:Qe.passKeys!==!1,passNode:Qe.passNode||!1,schema:Qe.space==="svg"?ee.YP:ee.dy,stylePropertyNameCase:Qe.stylePropertyNameCase||"dom",tableCellAlignToStyle:Qe.tableCellAlignToStyle!==!1},Ut=Qt(Ft,Ce,void 0);return Ut&&typeof Ut!="string"?Ut:Ft.create(Ce,Ft.Fragment,{children:Ut||void 0},void 0)}function Qt(Ce,Qe,tt){if(Qe.type==="element")return Yt(Ce,Qe,tt);if(Qe.type==="mdxFlowExpression"||Qe.type==="mdxTextExpression")return yn(Ce,Qe);if(Qe.type==="mdxJsxFlowElement"||Qe.type==="mdxJsxTextElement")return ft(Ce,Qe,tt);if(Qe.type==="mdxjsEsm")return bt(Ce,Qe);if(Qe.type==="root")return ct(Ce,Qe,tt);if(Qe.type==="text")return Jt(Ce,Qe)}function Yt(Ce,Qe,tt){const pt=Ce.schema;let Ft=pt;Qe.tagName.toLowerCase()==="svg"&&pt.space==="html"&&(Ft=ee.YP,Ce.schema=Ft),Ce.ancestors.push(Qe);const Ut=ur(Ce,Qe.tagName,!1),an=Yn(Ce,Qe);let Nn=Bn(Ce,Qe);return vt.has(Qe.tagName)&&(Nn=Nn.filter(function(Sr){return typeof Sr=="string"?!Fe(Sr):!0})),fn(Ce,an,Ut,Qe),kt(an,Nn),Ce.ancestors.pop(),Ce.schema=pt,Ce.create(Qe,Ut,an,tt)}function yn(Ce,Qe){if(Qe.data&&Qe.data.estree&&Ce.evaluater){const pt=Qe.data.estree.body[0];return(0,Pe.ok)(pt.type==="ExpressionStatement"),Ce.evaluater.evaluateExpression(pt.expression)}at(Ce,Qe.position)}function bt(Ce,Qe){if(Qe.data&&Qe.data.estree&&Ce.evaluater)return Ce.evaluater.evaluateProgram(Qe.data.estree);at(Ce,Qe.position)}function ft(Ce,Qe,tt){const pt=Ce.schema;let Ft=pt;Qe.name==="svg"&&pt.space==="html"&&(Ft=ee.YP,Ce.schema=Ft),Ce.ancestors.push(Qe);const Ut=Qe.name===null?Ce.Fragment:ur(Ce,Qe.name,!0),an=Vt(Ce,Qe),Nn=Bn(Ce,Qe);return fn(Ce,an,Ut,Qe),kt(an,Nn),Ce.ancestors.pop(),Ce.schema=pt,Ce.create(Qe,Ut,an,tt)}function ct(Ce,Qe,tt){const pt={};return kt(pt,Bn(Ce,Qe)),Ce.create(Qe,Ce.Fragment,pt,tt)}function Jt(Ce,Qe){return Qe.value}function fn(Ce,Qe,tt,pt){typeof tt!="string"&&tt!==Ce.Fragment&&Ce.passNode&&(Qe.node=pt)}function kt(Ce,Qe){if(Qe.length>0){const tt=Qe.length>1?Qe:Qe[0];tt&&(Ce.children=tt)}}function bn(Ce,Qe,tt){return pt;function pt(Ft,Ut,an,Nn){const xr=Array.isArray(an.children)?tt:Qe;return Nn?xr(Ut,an,Nn):xr(Ut,an)}}function An(Ce,Qe){return tt;function tt(pt,Ft,Ut,an){const Nn=Array.isArray(Ut.children),Sr=(0,be.Pk)(pt);return Qe(Ft,Ut,an,Nn,{columnNumber:Sr?Sr.column-1:void 0,fileName:Ce,lineNumber:Sr?Sr.line:void 0},void 0)}}function Yn(Ce,Qe){const tt={};let pt,Ft;for(Ft in Qe.properties)if(Ft!=="children"&&ot.call(Qe.properties,Ft)){const Ut=Mt(Ce,Ft,Qe.properties[Ft]);if(Ut){const[an,Nn]=Ut;Ce.tableCellAlignToStyle&&an==="align"&&typeof Nn=="string"&&wt.has(Qe.tagName)?pt=Nn:tt[an]=Nn}}if(pt){const Ut=tt.style||(tt.style={});Ut[Ce.stylePropertyNameCase==="css"?"text-align":"textAlign"]=pt}return tt}function Vt(Ce,Qe){const tt={};for(const pt of Qe.attributes)if(pt.type==="mdxJsxExpressionAttribute")if(pt.data&&pt.data.estree&&Ce.evaluater){const Ut=pt.data.estree.body[0];(0,Pe.ok)(Ut.type==="ExpressionStatement");const an=Ut.expression;(0,Pe.ok)(an.type==="ObjectExpression");const Nn=an.properties[0];(0,Pe.ok)(Nn.type==="SpreadElement"),Object.assign(tt,Ce.evaluater.evaluateExpression(Nn.argument))}else at(Ce,Qe.position);else{const Ft=pt.name;let Ut;if(pt.value&&typeof pt.value=="object")if(pt.value.data&&pt.value.data.estree&&Ce.evaluater){const Nn=pt.value.data.estree.body[0];(0,Pe.ok)(Nn.type==="ExpressionStatement"),Ut=Ce.evaluater.evaluateExpression(Nn.expression)}else at(Ce,Qe.position);else Ut=pt.value===null?!0:pt.value;tt[Ft]=Ut}return tt}function Bn(Ce,Qe){const tt=[];let pt=-1;const Ft=Ce.passKeys?new Map:mt;for(;++pt<Qe.children.length;){const Ut=Qe.children[pt];let an;if(Ce.passKeys){const Sr=Ut.type==="element"?Ut.tagName:Ut.type==="mdxJsxFlowElement"||Ut.type==="mdxJsxTextElement"?Ut.name:void 0;if(Sr){const xr=Ft.get(Sr)||0;an=Sr+"-"+xr,Ft.set(Sr,xr+1)}}const Nn=Qt(Ce,Ut,an);Nn!==void 0&&tt.push(Nn)}return tt}function Mt(Ce,Qe,tt){const pt=(0,he.s)(Ce.schema,Qe);if(!(tt==null||typeof tt=="number"&&Number.isNaN(tt))){if(Array.isArray(tt)&&(tt=pt.commaSeparated?(0,Ie.P)(tt):(0,fe.P)(tt)),pt.property==="style"){let Ft=typeof tt=="object"?tt:Hn(Ce,String(tt));return Ce.stylePropertyNameCase==="css"&&(Ft=_e(Ft)),["style",Ft]}return[Ce.elementAttributeNameCase==="react"&&pt.space?ue[pt.property]||pt.property:pt.attribute,tt]}}function Hn(Ce,Qe){try{return me(Qe,{reactCompat:!0})}catch(tt){if(Ce.ignoreInvalidStyle)return{};const pt=tt,Ft=new Je("Cannot parse `style` attribute",{ancestors:Ce.ancestors,cause:pt,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw Ft.file=Ce.filePath||void 0,Ft.url=Nt+"#cannot-parse-style-attribute",Ft}}function ur(Ce,Qe,tt){let pt;if(!tt)pt={type:"Literal",value:Qe};else if(Qe.includes(".")){const Ft=Qe.split(".");let Ut=-1,an;for(;++Ut<Ft.length;){const Nn=$e(Ft[Ut])?{type:"Identifier",name:Ft[Ut]}:{type:"Literal",value:Ft[Ut]};an=an?{type:"MemberExpression",object:an,property:Nn,computed:!!(Ut&&Nn.type==="Literal"),optional:!1}:Nn}(0,Pe.ok)(an,"always a result"),pt=an}else pt=$e(Qe)&&!/^[a-z]/.test(Qe)?{type:"Identifier",name:Qe}:{type:"Literal",value:Qe};if(pt.type==="Literal"){const Ft=pt.value;return ot.call(Ce.components,Ft)?Ce.components[Ft]:Ft}if(Ce.evaluater)return Ce.evaluater.evaluateExpression(pt);at(Ce)}function at(Ce,Qe){const tt=new Je("Cannot handle MDX estrees without `createEvaluater`",{ancestors:Ce.ancestors,place:Qe,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw tt.file=Ce.filePath||void 0,tt.url=Nt+"#cannot-handle-mdx-estrees-without-createevaluater",tt}function _e(Ce){const Qe={};let tt;for(tt in Ce)ot.call(Ce,tt)&&(Qe[Re(tt)]=Ce[tt]);return Qe}function Re(Ce){let Qe=Ce.replace(it,Xe);return Qe.slice(0,3)==="ms-"&&(Qe="-"+Qe),Qe}function Xe(Ce){return"-"+Ce.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 Be=ae(37712),Et=ae(59301);const En={};function sn(Ce,Qe){const tt=Qe||En,pt=typeof tt.includeImageAlt=="boolean"?tt.includeImageAlt:!0,Ft=typeof tt.includeHtml=="boolean"?tt.includeHtml:!0;return Mn(Ce,pt,Ft)}function Mn(Ce,Qe,tt){if(_t(Ce)){if("value"in Ce)return Ce.type==="html"&&!tt?"":Ce.value;if(Qe&&"alt"in Ce&&Ce.alt)return Ce.alt;if("children"in Ce)return Dt(Ce.children,Qe,tt)}return Array.isArray(Ce)?Dt(Ce,Qe,tt):""}function Dt(Ce,Qe,tt){const pt=[];let Ft=-1;for(;++Ft<Ce.length;)pt[Ft]=Mn(Ce[Ft],Qe,tt);return pt.join("")}function _t(Ce){return!!(Ce&&typeof Ce=="object")}function jt(Ce,Qe,tt,pt){const Ft=Ce.length;let Ut=0,an;if(Qe<0?Qe=-Qe>Ft?0:Ft+Qe:Qe=Qe>Ft?Ft:Qe,tt=tt>0?tt:0,pt.length<1e4)an=Array.from(pt),an.unshift(Qe,tt),Ce.splice(...an);else for(tt&&Ce.splice(Qe,tt);Ut<pt.length;)an=pt.slice(Ut,Ut+1e4),an.unshift(Qe,0),Ce.splice(...an),Ut+=1e4,Qe+=1e4}function dn(Ce,Qe){return Ce.length>0?(jt(Ce,Ce.length,0,Qe),Ce):Qe}class Sn{constructor(Qe){this.left=Qe?[...Qe]:[],this.right=[]}get(Qe){if(Qe<0||Qe>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+Qe+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return Qe<this.left.length?this.left[Qe]:this.right[this.right.length-Qe+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(Qe,tt){const pt=tt==null?Number.POSITIVE_INFINITY:tt;return pt<this.left.length?this.left.slice(Qe,pt):Qe>this.left.length?this.right.slice(this.right.length-pt+this.left.length,this.right.length-Qe+this.left.length).reverse():this.left.slice(Qe).concat(this.right.slice(this.right.length-pt+this.left.length).reverse())}splice(Qe,tt,pt){const Ft=tt||0;this.setCursor(Math.trunc(Qe));const Ut=this.right.splice(this.right.length-Ft,Number.POSITIVE_INFINITY);return pt&&gn(this.left,pt),Ut.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(Qe){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(Qe)}pushMany(Qe){this.setCursor(Number.POSITIVE_INFINITY),gn(this.left,Qe)}unshift(Qe){this.setCursor(0),this.right.push(Qe)}unshiftMany(Qe){this.setCursor(0),gn(this.right,Qe.reverse())}setCursor(Qe){if(!(Qe===this.left.length||Qe>this.left.length&&this.right.length===0||Qe<0&&this.left.length===0))if(Qe<this.left.length){const tt=this.left.splice(Qe,Number.POSITIVE_INFINITY);gn(this.right,tt.reverse())}else{const tt=this.right.splice(this.left.length+this.right.length-Qe,Number.POSITIVE_INFINITY);gn(this.left,tt.reverse())}}}function gn(Ce,Qe){let tt=0;if(Qe.length<1e4)Ce.push(...Qe);else for(;tt<Qe.length;)Ce.push(...Qe.slice(tt,tt+1e4)),tt+=1e4}function Ot(Ce){const Qe={};let tt=-1,pt,Ft,Ut,an,Nn,Sr,xr;const tr=new Sn(Ce);for(;++tt<tr.length;){for(;tt in Qe;)tt=Qe[tt];if(pt=tr.get(tt),tt&&pt[1].type==="chunkFlow"&&tr.get(tt-1)[1].type==="listItemPrefix"&&(Sr=pt[1]._tokenizer.events,Ut=0,Ut<Sr.length&&Sr[Ut][1].type==="lineEndingBlank"&&(Ut+=2),Ut<Sr.length&&Sr[Ut][1].type==="content"))for(;++Ut<Sr.length&&Sr[Ut][1].type!=="content";)Sr[Ut][1].type==="chunkText"&&(Sr[Ut][1]._isInFirstContentOfListItem=!0,Ut++);if(pt[0]==="enter")pt[1].contentType&&(Object.assign(Qe,Pn(tr,tt)),tt=Qe[tt],xr=!0);else if(pt[1]._container){for(Ut=tt,Ft=void 0;Ut--;)if(an=tr.get(Ut),an[1].type==="lineEnding"||an[1].type==="lineEndingBlank")an[0]==="enter"&&(Ft&&(tr.get(Ft)[1].type="lineEndingBlank"),an[1].type="lineEnding",Ft=Ut);else if(!(an[1].type==="linePrefix"||an[1].type==="listItemIndent"))break;Ft&&(pt[1].end=xa({},tr.get(Ft)[1].start),Nn=tr.slice(Ft,tt),Nn.unshift(pt),tr.splice(Ft,tt-Ft+1,Nn))}}return jt(Ce,0,Number.POSITIVE_INFINITY,tr.slice(0)),!xr}function Pn(Ce,Qe){const tt=Ce.get(Qe)[1],pt=Ce.get(Qe)[2];let Ft=Qe-1;const Ut=[];let an=tt._tokenizer;an||(an=pt.parser[tt.contentType](tt.start),tt._contentTypeTextTrailing&&(an._contentTypeTextTrailing=!0));const Nn=an.events,Sr=[],xr={};let tr,Zr,Mr=-1,lr=tt,Ao=0,Go=0;const ta=[Go];for(;lr;){for(;Ce.get(++Ft)[1]!==lr;);Ut.push(Ft),lr._tokenizer||(tr=pt.sliceStream(lr),lr.next||tr.push(null),Zr&&an.defineSkip(lr.start),lr._isInFirstContentOfListItem&&(an._gfmTasklistFirstContentOfListItem=!0),an.write(tr),lr._isInFirstContentOfListItem&&(an._gfmTasklistFirstContentOfListItem=void 0)),Zr=lr,lr=lr.next}for(lr=tt;++Mr<Nn.length;)Nn[Mr][0]==="exit"&&Nn[Mr-1][0]==="enter"&&Nn[Mr][1].type===Nn[Mr-1][1].type&&Nn[Mr][1].start.line!==Nn[Mr][1].end.line&&(Go=Mr+1,ta.push(Go),lr._tokenizer=void 0,lr.previous=void 0,lr=lr.next);for(an.events=[],lr?(lr._tokenizer=void 0,lr.previous=void 0):ta.pop(),Mr=ta.length;Mr--;){const ao=Nn.slice(ta[Mr],ta[Mr+1]),Do=Ut.pop();Sr.push([Do,Do+ao.length-1]),Ce.splice(Do,2,ao)}for(Sr.reverse(),Mr=-1;++Mr<Sr.length;)xr[Ao+Sr[Mr][0]]=Ao+Sr[Mr][1],Ao+=Sr[Mr][1]-Sr[Mr][0]-1;return xr}function Zt(Ce){for(;!Ot(Ce););return Ce}const tn={}.hasOwnProperty;function vn(Ce){const Qe={};let tt=-1;for(;++tt<Ce.length;)$n(Qe,Ce[tt]);return Qe}function $n(Ce,Qe){let tt;for(tt in Qe){const Ft=(tn.call(Ce,tt)?Ce[tt]:void 0)||(Ce[tt]={}),Ut=Qe[tt];let an;if(Ut)for(an in Ut){tn.call(Ft,an)||(Ft[an]=[]);const Nn=Ut[an];mn(Ft[an],Array.isArray(Nn)?Nn:Nn?[Nn]:[])}}}function mn(Ce,Qe){let tt=-1;const pt=[];for(;++tt<Qe.length;)(Qe[tt].add==="after"?Ce:pt).push(Qe[tt]);jt(Ce,0,0,pt)}function gt(Ce){const Qe={};let tt=-1;for(;++tt<Ce.length;)Xn(Qe,Ce[tt]);return Qe}function Xn(Ce,Qe){let tt;for(tt in Qe){const Ft=(tn.call(Ce,tt)?Ce[tt]:void 0)||(Ce[tt]={}),Ut=Qe[tt];let an;if(Ut)for(an in Ut)Ft[an]=Ut[an]}}var ir=ae(26735),nn=ae(80722);const vr={tokenize:$r};function $r(Ce){const Qe=Ce.attempt(this.parser.constructs.contentInitial,pt,Ft);let tt;return Qe;function pt(Nn){if(Nn===null){Ce.consume(Nn);return}return Ce.enter("lineEnding"),Ce.consume(Nn),Ce.exit("lineEnding"),(0,ir.f)(Ce,Qe,"linePrefix")}function Ft(Nn){return Ce.enter("paragraph"),Ut(Nn)}function Ut(Nn){const Sr=Ce.enter("chunkText",{contentType:"text",previous:tt});return tt&&(tt.next=Sr),tt=Sr,an(Nn)}function an(Nn){if(Nn===null){Ce.exit("chunkText"),Ce.exit("paragraph"),Ce.consume(Nn);return}return(0,nn.Ch)(Nn)?(Ce.consume(Nn),Ce.exit("chunkText"),Ut):(Ce.consume(Nn),an)}}const Lr={tokenize:ei},Rn={tokenize:Jr};function ei(Ce){const Qe=this,tt=[];let pt=0,Ft,Ut,an;return Nn;function Nn(Bo){if(pt<tt.length){const Qa=tt[pt];return Qe.containerState=Qa[1],Ce.attempt(Qa[0].continuation,Sr,xr)(Bo)}return xr(Bo)}function Sr(Bo){if(pt++,Qe.containerState._closeFlow){Qe.containerState._closeFlow=void 0,Ft&&Do();const Qa=Qe.events.length;let Ja=Qa,Ki;for(;Ja--;)if(Qe.events[Ja][0]==="exit"&&Qe.events[Ja][1].type==="chunkFlow"){Ki=Qe.events[Ja][1].end;break}ao(pt);let es=Qa;for(;es<Qe.events.length;)Qe.events[es][1].end=xa({},Ki),es++;return jt(Qe.events,Ja+1,0,Qe.events.slice(Qa)),Qe.events.length=es,xr(Bo)}return Nn(Bo)}function xr(Bo){if(pt===tt.length){if(!Ft)return Mr(Bo);if(Ft.currentConstruct&&Ft.currentConstruct.concrete)return Ao(Bo);Qe.interrupt=!!(Ft.currentConstruct&&!Ft._gfmTableDynamicInterruptHack)}return Qe.containerState={},Ce.check(Rn,tr,Zr)(Bo)}function tr(Bo){return Ft&&Do(),ao(pt),Mr(Bo)}function Zr(Bo){return Qe.parser.lazy[Qe.now().line]=pt!==tt.length,an=Qe.now().offset,Ao(Bo)}function Mr(Bo){return Qe.containerState={},Ce.attempt(Rn,lr,Ao)(Bo)}function lr(Bo){return pt++,tt.push([Qe.currentConstruct,Qe.containerState]),Mr(Bo)}function Ao(Bo){if(Bo===null){Ft&&Do(),ao(0),Ce.consume(Bo);return}return Ft=Ft||Qe.parser.flow(Qe.now()),Ce.enter("chunkFlow",{_tokenizer:Ft,contentType:"flow",previous:Ut}),Go(Bo)}function Go(Bo){if(Bo===null){ta(Ce.exit("chunkFlow"),!0),ao(0),Ce.consume(Bo);return}return(0,nn.Ch)(Bo)?(Ce.consume(Bo),ta(Ce.exit("chunkFlow")),pt=0,Qe.interrupt=void 0,Nn):(Ce.consume(Bo),Go)}function ta(Bo,Qa){const Ja=Qe.sliceStream(Bo);if(Qa&&Ja.push(null),Bo.previous=Ut,Ut&&(Ut.next=Bo),Ut=Bo,Ft.defineSkip(Bo.start),Ft.write(Ja),Qe.parser.lazy[Bo.start.line]){let Ki=Ft.events.length;for(;Ki--;)if(Ft.events[Ki][1].start.offset<an&&(!Ft.events[Ki][1].end||Ft.events[Ki][1].end.offset>an))return;const es=Qe.events.length;let Wa=es,za,Co;for(;Wa--;)if(Qe.events[Wa][0]==="exit"&&Qe.events[Wa][1].type==="chunkFlow"){if(za){Co=Qe.events[Wa][1].end;break}za=!0}for(ao(pt),Ki=es;Ki<Qe.events.length;)Qe.events[Ki][1].end=xa({},Co),Ki++;jt(Qe.events,Wa+1,0,Qe.events.slice(es)),Qe.events.length=Ki}}function ao(Bo){let Qa=tt.length;for(;Qa-- >Bo;){const Ja=tt[Qa];Qe.containerState=Ja[1],Ja[0].exit.call(Qe,Ce)}tt.length=Bo}function Do(){Ft.write([null]),Ut=void 0,Ft=void 0,Qe.containerState._closeFlow=void 0}}function Jr(Ce,Qe,tt){return(0,ir.f)(Ce,Ce.attempt(this.parser.constructs.document,Qe,tt),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const nr={partial:!0,tokenize:Wr};function Wr(Ce,Qe,tt){return pt;function pt(Ut){return(0,nn.xz)(Ut)?(0,ir.f)(Ce,Ft,"linePrefix")(Ut):Ft(Ut)}function Ft(Ut){return Ut===null||(0,nn.Ch)(Ut)?Qe(Ut):tt(Ut)}}const oi={resolve:cr,tokenize:Cr},Oe={partial:!0,tokenize:or};function cr(Ce){return Ot(Ce),Ce}function Cr(Ce,Qe){let tt;return pt;function pt(Nn){return Ce.enter("content"),tt=Ce.enter("chunkContent",{contentType:"content"}),Ft(Nn)}function Ft(Nn){return Nn===null?Ut(Nn):(0,nn.Ch)(Nn)?Ce.check(Oe,an,Ut)(Nn):(Ce.consume(Nn),Ft)}function Ut(Nn){return Ce.exit("chunkContent"),Ce.exit("content"),Qe(Nn)}function an(Nn){return Ce.consume(Nn),Ce.exit("chunkContent"),tt.next=Ce.enter("chunkContent",{contentType:"content",previous:tt}),tt=tt.next,Ft}}function or(Ce,Qe,tt){const pt=this;return Ft;function Ft(an){return Ce.exit("chunkContent"),Ce.enter("lineEnding"),Ce.consume(an),Ce.exit("lineEnding"),(0,ir.f)(Ce,Ut,"linePrefix")}function Ut(an){if(an===null||(0,nn.Ch)(an))return tt(an);const Nn=pt.events[pt.events.length-1];return!pt.parser.constructs.disable.null.includes("codeIndented")&&Nn&&Nn[1].type==="linePrefix"&&Nn[2].sliceSerialize(Nn[1],!0).length>=4?Qe(an):Ce.interrupt(pt.parser.constructs.flow,tt,Qe)(an)}}const kr={tokenize:Fr};function Fr(Ce){const Qe=this,tt=Ce.attempt(nr,pt,Ce.attempt(this.parser.constructs.flowInitial,Ft,(0,ir.f)(Ce,Ce.attempt(this.parser.constructs.flow,Ft,Ce.attempt(oi,Ft)),"linePrefix")));return tt;function pt(Ut){if(Ut===null){Ce.consume(Ut);return}return Ce.enter("lineEndingBlank"),Ce.consume(Ut),Ce.exit("lineEndingBlank"),Qe.currentConstruct=void 0,tt}function Ft(Ut){if(Ut===null){Ce.consume(Ut);return}return Ce.enter("lineEnding"),Ce.consume(Ut),Ce.exit("lineEnding"),Qe.currentConstruct=void 0,tt}}const Or={resolveAll:Cn()},mi=hn("string"),Ti=hn("text");function hn(Ce){return{resolveAll:Cn(Ce==="text"?pn:void 0),tokenize:Qe};function Qe(tt){const pt=this,Ft=this.parser.constructs[Ce],Ut=tt.attempt(Ft,an,Nn);return an;function an(tr){return xr(tr)?Ut(tr):Nn(tr)}function Nn(tr){if(tr===null){tt.consume(tr);return}return tt.enter("data"),tt.consume(tr),Sr}function Sr(tr){return xr(tr)?(tt.exit("data"),Ut(tr)):(tt.consume(tr),Sr)}function xr(tr){if(tr===null)return!0;const Zr=Ft[tr];let Mr=-1;if(Zr)for(;++Mr<Zr.length;){const lr=Zr[Mr];if(!lr.previous||lr.previous.call(pt,pt.previous))return!0}return!1}}}function Cn(Ce){return Qe;function Qe(tt,pt){let Ft=-1,Ut;for(;++Ft<=tt.length;)Ut===void 0?tt[Ft]&&tt[Ft][1].type==="data"&&(Ut=Ft,Ft++):(!tt[Ft]||tt[Ft][1].type!=="data")&&(Ft!==Ut+2&&(tt[Ut][1].end=tt[Ft-1][1].end,tt.splice(Ut+2,Ft-Ut-2),Ft=Ut+2),Ut=void 0);return Ce?Ce(tt,pt):tt}}function pn(Ce,Qe){let tt=0;for(;++tt<=Ce.length;)if((tt===Ce.length||Ce[tt][1].type==="lineEnding")&&Ce[tt-1][1].type==="data"){const pt=Ce[tt-1][1],Ft=Qe.sliceStream(pt);let Ut=Ft.length,an=-1,Nn=0,Sr;for(;Ut--;){const xr=Ft[Ut];if(typeof xr=="string"){for(an=xr.length;xr.charCodeAt(an-1)===32;)Nn++,an--;if(an)break;an=-1}else if(xr===-2)Sr=!0,Nn++;else if(xr!==-1){Ut++;break}}if(Qe._contentTypeTextTrailing&&tt===Ce.length&&(Nn=0),Nn){const xr={type:tt===Ce.length||Sr||Nn<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:Ut?an:pt.start._bufferIndex+an,_index:pt.start._index+Ut,line:pt.end.line,column:pt.end.column-Nn,offset:pt.end.offset-Nn},end:xa({},pt.end)};pt.end=xa({},xr.start),pt.start.offset===pt.end.offset?Object.assign(pt,xr):(Ce.splice(tt,0,["enter",xr,Qe],["exit",xr,Qe]),tt+=2)}tt++}return Ce}const Kr={name:"thematicBreak",tokenize:Yr};function Yr(Ce,Qe,tt){let pt=0,Ft;return Ut;function Ut(xr){return Ce.enter("thematicBreak"),an(xr)}function an(xr){return Ft=xr,Nn(xr)}function Nn(xr){return xr===Ft?(Ce.enter("thematicBreakSequence"),Sr(xr)):pt>=3&&(xr===null||(0,nn.Ch)(xr))?(Ce.exit("thematicBreak"),Qe(xr)):tt(xr)}function Sr(xr){return xr===Ft?(Ce.consume(xr),pt++,Sr):(Ce.exit("thematicBreakSequence"),(0,nn.xz)(xr)?(0,ir.f)(Ce,Nn,"whitespace")(xr):Nn(xr))}}const Vr={continuation:{tokenize:Ai},exit:xt,name:"list",tokenize:bi},dr={partial:!0,tokenize:on},Gr={partial:!0,tokenize:Oi};function bi(Ce,Qe,tt){const pt=this,Ft=pt.events[pt.events.length-1];let Ut=Ft&&Ft[1].type==="linePrefix"?Ft[2].sliceSerialize(Ft[1],!0).length:0,an=0;return Nn;function Nn(lr){const Ao=pt.containerState.type||(lr===42||lr===43||lr===45?"listUnordered":"listOrdered");if(Ao==="listUnordered"?!pt.containerState.marker||lr===pt.containerState.marker:(0,nn.pY)(lr)){if(pt.containerState.type||(pt.containerState.type=Ao,Ce.enter(Ao,{_container:!0})),Ao==="listUnordered")return Ce.enter("listItemPrefix"),lr===42||lr===45?Ce.check(Kr,tt,xr)(lr):xr(lr);if(!pt.interrupt||lr===49)return Ce.enter("listItemPrefix"),Ce.enter("listItemValue"),Sr(lr)}return tt(lr)}function Sr(lr){return(0,nn.pY)(lr)&&++an<10?(Ce.consume(lr),Sr):(!pt.interrupt||an<2)&&(pt.containerState.marker?lr===pt.containerState.marker:lr===41||lr===46)?(Ce.exit("listItemValue"),xr(lr)):tt(lr)}function xr(lr){return Ce.enter("listItemMarker"),Ce.consume(lr),Ce.exit("listItemMarker"),pt.containerState.marker=pt.containerState.marker||lr,Ce.check(nr,pt.interrupt?tt:tr,Ce.attempt(dr,Mr,Zr))}function tr(lr){return pt.containerState.initialBlankLine=!0,Ut++,Mr(lr)}function Zr(lr){return(0,nn.xz)(lr)?(Ce.enter("listItemPrefixWhitespace"),Ce.consume(lr),Ce.exit("listItemPrefixWhitespace"),Mr):tt(lr)}function Mr(lr){return pt.containerState.size=Ut+pt.sliceSerialize(Ce.exit("listItemPrefix"),!0).length,Qe(lr)}}function Ai(Ce,Qe,tt){const pt=this;return pt.containerState._closeFlow=void 0,Ce.check(nr,Ft,Ut);function Ft(Nn){return pt.containerState.furtherBlankLines=pt.containerState.furtherBlankLines||pt.containerState.initialBlankLine,(0,ir.f)(Ce,Qe,"listItemIndent",pt.containerState.size+1)(Nn)}function Ut(Nn){return pt.containerState.furtherBlankLines||!(0,nn.xz)(Nn)?(pt.containerState.furtherBlankLines=void 0,pt.containerState.initialBlankLine=void 0,an(Nn)):(pt.containerState.furtherBlankLines=void 0,pt.containerState.initialBlankLine=void 0,Ce.attempt(Gr,Qe,an)(Nn))}function an(Nn){return pt.containerState._closeFlow=!0,pt.interrupt=void 0,(0,ir.f)(Ce,Ce.attempt(Vr,Qe,tt),"linePrefix",pt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Nn)}}function Oi(Ce,Qe,tt){const pt=this;return(0,ir.f)(Ce,Ft,"listItemIndent",pt.containerState.size+1);function Ft(Ut){const an=pt.events[pt.events.length-1];return an&&an[1].type==="listItemIndent"&&an[2].sliceSerialize(an[1],!0).length===pt.containerState.size?Qe(Ut):tt(Ut)}}function xt(Ce){Ce.exit(this.containerState.type)}function on(Ce,Qe,tt){const pt=this;return(0,ir.f)(Ce,Ft,"listItemPrefixWhitespace",pt.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function Ft(Ut){const an=pt.events[pt.events.length-1];return!(0,nn.xz)(Ut)&&an&&an[1].type==="listItemPrefixWhitespace"?Qe(Ut):tt(Ut)}}const br={continuation:{tokenize:Xt},exit:fr,name:"blockQuote",tokenize:Br};function Br(Ce,Qe,tt){const pt=this;return Ft;function Ft(an){if(an===62){const Nn=pt.containerState;return Nn.open||(Ce.enter("blockQuote",{_container:!0}),Nn.open=!0),Ce.enter("blockQuotePrefix"),Ce.enter("blockQuoteMarker"),Ce.consume(an),Ce.exit("blockQuoteMarker"),Ut}return tt(an)}function Ut(an){return(0,nn.xz)(an)?(Ce.enter("blockQuotePrefixWhitespace"),Ce.consume(an),Ce.exit("blockQuotePrefixWhitespace"),Ce.exit("blockQuotePrefix"),Qe):(Ce.exit("blockQuotePrefix"),Qe(an))}}function Xt(Ce,Qe,tt){const pt=this;return Ft;function Ft(an){return(0,nn.xz)(an)?(0,ir.f)(Ce,Ut,"linePrefix",pt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(an):Ut(an)}function Ut(an){return Ce.attempt(br,Qe,tt)(an)}}function fr(Ce){Ce.exit("blockQuote")}function Tn(Ce,Qe,tt,pt,Ft,Ut,an,Nn,Sr){const xr=Sr||Number.POSITIVE_INFINITY;let tr=0;return Zr;function Zr(ao){return ao===60?(Ce.enter(pt),Ce.enter(Ft),Ce.enter(Ut),Ce.consume(ao),Ce.exit(Ut),Mr):ao===null||ao===32||ao===41||(0,nn.Av)(ao)?tt(ao):(Ce.enter(pt),Ce.enter(an),Ce.enter(Nn),Ce.enter("chunkString",{contentType:"string"}),Go(ao))}function Mr(ao){return ao===62?(Ce.enter(Ut),Ce.consume(ao),Ce.exit(Ut),Ce.exit(Ft),Ce.exit(pt),Qe):(Ce.enter(Nn),Ce.enter("chunkString",{contentType:"string"}),lr(ao))}function lr(ao){return ao===62?(Ce.exit("chunkString"),Ce.exit(Nn),Mr(ao)):ao===null||ao===60||(0,nn.Ch)(ao)?tt(ao):(Ce.consume(ao),ao===92?Ao:lr)}function Ao(ao){return ao===60||ao===62||ao===92?(Ce.consume(ao),lr):lr(ao)}function Go(ao){return!tr&&(ao===null||ao===41||(0,nn.z3)(ao))?(Ce.exit("chunkString"),Ce.exit(Nn),Ce.exit(an),Ce.exit(pt),Qe(ao)):tr<xr&&ao===40?(Ce.consume(ao),tr++,Go):ao===41?(Ce.consume(ao),tr--,Go):ao===null||ao===32||ao===40||(0,nn.Av)(ao)?tt(ao):(Ce.consume(ao),ao===92?ta:Go)}function ta(ao){return ao===40||ao===41||ao===92?(Ce.consume(ao),Go):Go(ao)}}function un(Ce,Qe,tt,pt,Ft,Ut){const an=this;let Nn=0,Sr;return xr;function xr(lr){return Ce.enter(pt),Ce.enter(Ft),Ce.consume(lr),Ce.exit(Ft),Ce.enter(Ut),tr}function tr(lr){return Nn>999||lr===null||lr===91||lr===93&&!Sr||lr===94&&!Nn&&"_hiddenFootnoteSupport"in an.parser.constructs?tt(lr):lr===93?(Ce.exit(Ut),Ce.enter(Ft),Ce.consume(lr),Ce.exit(Ft),Ce.exit(pt),Qe):(0,nn.Ch)(lr)?(Ce.enter("lineEnding"),Ce.consume(lr),Ce.exit("lineEnding"),tr):(Ce.enter("chunkString",{contentType:"string"}),Zr(lr))}function Zr(lr){return lr===null||lr===91||lr===93||(0,nn.Ch)(lr)||Nn++>999?(Ce.exit("chunkString"),tr(lr)):(Ce.consume(lr),Sr||(Sr=!(0,nn.xz)(lr)),lr===92?Mr:Zr)}function Mr(lr){return lr===91||lr===92||lr===93?(Ce.consume(lr),Nn++,Zr):Zr(lr)}}function Ue(Ce,Qe,tt,pt,Ft,Ut){let an;return Nn;function Nn(Mr){return Mr===34||Mr===39||Mr===40?(Ce.enter(pt),Ce.enter(Ft),Ce.consume(Mr),Ce.exit(Ft),an=Mr===40?41:Mr,Sr):tt(Mr)}function Sr(Mr){return Mr===an?(Ce.enter(Ft),Ce.consume(Mr),Ce.exit(Ft),Ce.exit(pt),Qe):(Ce.enter(Ut),xr(Mr))}function xr(Mr){return Mr===an?(Ce.exit(Ut),Sr(an)):Mr===null?tt(Mr):(0,nn.Ch)(Mr)?(Ce.enter("lineEnding"),Ce.consume(Mr),Ce.exit("lineEnding"),(0,ir.f)(Ce,xr,"linePrefix")):(Ce.enter("chunkString",{contentType:"string"}),tr(Mr))}function tr(Mr){return Mr===an||Mr===null||(0,nn.Ch)(Mr)?(Ce.exit("chunkString"),xr(Mr)):(Ce.consume(Mr),Mr===92?Zr:tr)}function Zr(Mr){return Mr===an||Mr===92?(Ce.consume(Mr),tr):tr(Mr)}}function Nr(Ce,Qe){let tt;return pt;function pt(Ft){return(0,nn.Ch)(Ft)?(Ce.enter("lineEnding"),Ce.consume(Ft),Ce.exit("lineEnding"),tt=!0,pt):(0,nn.xz)(Ft)?(0,ir.f)(Ce,pt,tt?"linePrefix":"lineSuffix")(Ft):Qe(Ft)}}function jr(Ce){return Ce.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const zn={name:"definition",tokenize:Xr},vi={partial:!0,tokenize:ci};function Xr(Ce,Qe,tt){const pt=this;let Ft;return Ut;function Ut(lr){return Ce.enter("definition"),an(lr)}function an(lr){return un.call(pt,Ce,Nn,tt,"definitionLabel","definitionLabelMarker","definitionLabelString")(lr)}function Nn(lr){return Ft=jr(pt.sliceSerialize(pt.events[pt.events.length-1][1]).slice(1,-1)),lr===58?(Ce.enter("definitionMarker"),Ce.consume(lr),Ce.exit("definitionMarker"),Sr):tt(lr)}function Sr(lr){return(0,nn.z3)(lr)?Nr(Ce,xr)(lr):xr(lr)}function xr(lr){return Tn(Ce,tr,tt,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(lr)}function tr(lr){return Ce.attempt(vi,Zr,Zr)(lr)}function Zr(lr){return(0,nn.xz)(lr)?(0,ir.f)(Ce,Mr,"whitespace")(lr):Mr(lr)}function Mr(lr){return lr===null||(0,nn.Ch)(lr)?(Ce.exit("definition"),pt.parser.defined.push(Ft),Qe(lr)):tt(lr)}}function ci(Ce,Qe,tt){return pt;function pt(Nn){return(0,nn.z3)(Nn)?Nr(Ce,Ft)(Nn):tt(Nn)}function Ft(Nn){return Ue(Ce,Ut,tt,"definitionTitle","definitionTitleMarker","definitionTitleString")(Nn)}function Ut(Nn){return(0,nn.xz)(Nn)?(0,ir.f)(Ce,an,"whitespace")(Nn):an(Nn)}function an(Nn){return Nn===null||(0,nn.Ch)(Nn)?Qe(Nn):tt(Nn)}}const Gn={name:"codeIndented",tokenize:Ci},cn={partial:!0,tokenize:ji};function Ci(Ce,Qe,tt){const pt=this;return Ft;function Ft(xr){return Ce.enter("codeIndented"),(0,ir.f)(Ce,Ut,"linePrefix",5)(xr)}function Ut(xr){const tr=pt.events[pt.events.length-1];return tr&&tr[1].type==="linePrefix"&&tr[2].sliceSerialize(tr[1],!0).length>=4?an(xr):tt(xr)}function an(xr){return xr===null?Sr(xr):(0,nn.Ch)(xr)?Ce.attempt(cn,an,Sr)(xr):(Ce.enter("codeFlowValue"),Nn(xr))}function Nn(xr){return xr===null||(0,nn.Ch)(xr)?(Ce.exit("codeFlowValue"),an(xr)):(Ce.consume(xr),Nn)}function Sr(xr){return Ce.exit("codeIndented"),Qe(xr)}}function ji(Ce,Qe,tt){const pt=this;return Ft;function Ft(an){return pt.parser.lazy[pt.now().line]?tt(an):(0,nn.Ch)(an)?(Ce.enter("lineEnding"),Ce.consume(an),Ce.exit("lineEnding"),Ft):(0,ir.f)(Ce,Ut,"linePrefix",5)(an)}function Ut(an){const Nn=pt.events[pt.events.length-1];return Nn&&Nn[1].type==="linePrefix"&&Nn[2].sliceSerialize(Nn[1],!0).length>=4?Qe(an):(0,nn.Ch)(an)?Ft(an):tt(an)}}const Qn={name:"headingAtx",resolve:zr,tokenize:si};function zr(Ce,Qe){let tt=Ce.length-2,pt=3,Ft,Ut;return Ce[pt][1].type==="whitespace"&&(pt+=2),tt-2>pt&&Ce[tt][1].type==="whitespace"&&(tt-=2),Ce[tt][1].type==="atxHeadingSequence"&&(pt===tt-1||tt-4>pt&&Ce[tt-2][1].type==="whitespace")&&(tt-=pt+1===tt?2:4),tt>pt&&(Ft={type:"atxHeadingText",start:Ce[pt][1].start,end:Ce[tt][1].end},Ut={type:"chunkText",start:Ce[pt][1].start,end:Ce[tt][1].end,contentType:"text"},jt(Ce,pt,tt-pt+1,[["enter",Ft,Qe],["enter",Ut,Qe],["exit",Ut,Qe],["exit",Ft,Qe]])),Ce}function si(Ce,Qe,tt){let pt=0;return Ft;function Ft(tr){return Ce.enter("atxHeading"),Ut(tr)}function Ut(tr){return Ce.enter("atxHeadingSequence"),an(tr)}function an(tr){return tr===35&&pt++<6?(Ce.consume(tr),an):tr===null||(0,nn.z3)(tr)?(Ce.exit("atxHeadingSequence"),Nn(tr)):tt(tr)}function Nn(tr){return tr===35?(Ce.enter("atxHeadingSequence"),Sr(tr)):tr===null||(0,nn.Ch)(tr)?(Ce.exit("atxHeading"),Qe(tr)):(0,nn.xz)(tr)?(0,ir.f)(Ce,Nn,"whitespace")(tr):(Ce.enter("atxHeadingText"),xr(tr))}function Sr(tr){return tr===35?(Ce.consume(tr),Sr):(Ce.exit("atxHeadingSequence"),Nn(tr))}function xr(tr){return tr===null||tr===35||(0,nn.z3)(tr)?(Ce.exit("atxHeadingText"),Nn(tr)):(Ce.consume(tr),xr)}}const di={name:"setextUnderline",resolveTo:ti,tokenize:ki};function ti(Ce,Qe){let tt=Ce.length,pt,Ft,Ut;for(;tt--;)if(Ce[tt][0]==="enter"){if(Ce[tt][1].type==="content"){pt=tt;break}Ce[tt][1].type==="paragraph"&&(Ft=tt)}else Ce[tt][1].type==="content"&&Ce.splice(tt,1),!Ut&&Ce[tt][1].type==="definition"&&(Ut=tt);const an={type:"setextHeading",start:xa({},Ce[pt][1].start),end:xa({},Ce[Ce.length-1][1].end)};return Ce[Ft][1].type="setextHeadingText",Ut?(Ce.splice(Ft,0,["enter",an,Qe]),Ce.splice(Ut+1,0,["exit",Ce[pt][1],Qe]),Ce[pt][1].end=xa({},Ce[Ut][1].end)):Ce[pt][1]=an,Ce.push(["exit",an,Qe]),Ce}function ki(Ce,Qe,tt){const pt=this;let Ft;return Ut;function Ut(xr){let tr=pt.events.length,Zr;for(;tr--;)if(pt.events[tr][1].type!=="lineEnding"&&pt.events[tr][1].type!=="linePrefix"&&pt.events[tr][1].type!=="content"){Zr=pt.events[tr][1].type==="paragraph";break}return!pt.parser.lazy[pt.now().line]&&(pt.interrupt||Zr)?(Ce.enter("setextHeadingLine"),Ft=xr,an(xr)):tt(xr)}function an(xr){return Ce.enter("setextHeadingLineSequence"),Nn(xr)}function Nn(xr){return xr===Ft?(Ce.consume(xr),Nn):(Ce.exit("setextHeadingLineSequence"),(0,nn.xz)(xr)?(0,ir.f)(Ce,Sr,"lineSuffix")(xr):Sr(xr))}function Sr(xr){return xr===null||(0,nn.Ch)(xr)?(Ce.exit("setextHeadingLine"),Qe(xr)):tt(xr)}}const Bi=["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"],Zi=["pre","script","style","textarea"],Fi={concrete:!0,name:"htmlFlow",resolveTo:_i,tokenize:ar},Vi={partial:!0,tokenize:Gi},er={partial:!0,tokenize:Ei};function _i(Ce){let Qe=Ce.length;for(;Qe--&&!(Ce[Qe][0]==="enter"&&Ce[Qe][1].type==="htmlFlow"););return Qe>1&&Ce[Qe-2][1].type==="linePrefix"&&(Ce[Qe][1].start=Ce[Qe-2][1].start,Ce[Qe+1][1].start=Ce[Qe-2][1].start,Ce.splice(Qe-2,2)),Ce}function ar(Ce,Qe,tt){const pt=this;let Ft,Ut,an,Nn,Sr;return xr;function xr(Ir){return tr(Ir)}function tr(Ir){return Ce.enter("htmlFlow"),Ce.enter("htmlFlowData"),Ce.consume(Ir),Zr}function Zr(Ir){return Ir===33?(Ce.consume(Ir),Mr):Ir===47?(Ce.consume(Ir),Ut=!0,Go):Ir===63?(Ce.consume(Ir),Ft=3,pt.interrupt?Qe:Pr):(0,nn.jv)(Ir)?(Ce.consume(Ir),an=String.fromCharCode(Ir),ta):tt(Ir)}function Mr(Ir){return Ir===45?(Ce.consume(Ir),Ft=2,lr):Ir===91?(Ce.consume(Ir),Ft=5,Nn=0,Ao):(0,nn.jv)(Ir)?(Ce.consume(Ir),Ft=4,pt.interrupt?Qe:Pr):tt(Ir)}function lr(Ir){return Ir===45?(Ce.consume(Ir),pt.interrupt?Qe:Pr):tt(Ir)}function Ao(Ir){const al="CDATA[";return Ir===al.charCodeAt(Nn++)?(Ce.consume(Ir),Nn===al.length?pt.interrupt?Qe:ss:Ao):tt(Ir)}function Go(Ir){return(0,nn.jv)(Ir)?(Ce.consume(Ir),an=String.fromCharCode(Ir),ta):tt(Ir)}function ta(Ir){if(Ir===null||Ir===47||Ir===62||(0,nn.z3)(Ir)){const al=Ir===47,Pu=an.toLowerCase();return!al&&!Ut&&Zi.includes(Pu)?(Ft=1,pt.interrupt?Qe(Ir):ss(Ir)):Bi.includes(an.toLowerCase())?(Ft=6,al?(Ce.consume(Ir),ao):pt.interrupt?Qe(Ir):ss(Ir)):(Ft=7,pt.interrupt&&!pt.parser.lazy[pt.now().line]?tt(Ir):Ut?Do(Ir):Bo(Ir))}return Ir===45||(0,nn.H$)(Ir)?(Ce.consume(Ir),an+=String.fromCharCode(Ir),ta):tt(Ir)}function ao(Ir){return Ir===62?(Ce.consume(Ir),pt.interrupt?Qe:ss):tt(Ir)}function Do(Ir){return(0,nn.xz)(Ir)?(Ce.consume(Ir),Do):Co(Ir)}function Bo(Ir){return Ir===47?(Ce.consume(Ir),Co):Ir===58||Ir===95||(0,nn.jv)(Ir)?(Ce.consume(Ir),Qa):(0,nn.xz)(Ir)?(Ce.consume(Ir),Bo):Co(Ir)}function Qa(Ir){return Ir===45||Ir===46||Ir===58||Ir===95||(0,nn.H$)(Ir)?(Ce.consume(Ir),Qa):Ja(Ir)}function Ja(Ir){return Ir===61?(Ce.consume(Ir),Ki):(0,nn.xz)(Ir)?(Ce.consume(Ir),Ja):Bo(Ir)}function Ki(Ir){return Ir===null||Ir===60||Ir===61||Ir===62||Ir===96?tt(Ir):Ir===34||Ir===39?(Ce.consume(Ir),Sr=Ir,es):(0,nn.xz)(Ir)?(Ce.consume(Ir),Ki):Wa(Ir)}function es(Ir){return Ir===Sr?(Ce.consume(Ir),Sr=null,za):Ir===null||(0,nn.Ch)(Ir)?tt(Ir):(Ce.consume(Ir),es)}function Wa(Ir){return Ir===null||Ir===34||Ir===39||Ir===47||Ir===60||Ir===61||Ir===62||Ir===96||(0,nn.z3)(Ir)?Ja(Ir):(Ce.consume(Ir),Wa)}function za(Ir){return Ir===47||Ir===62||(0,nn.xz)(Ir)?Bo(Ir):tt(Ir)}function Co(Ir){return Ir===62?(Ce.consume(Ir),ml):tt(Ir)}function ml(Ir){return Ir===null||(0,nn.Ch)(Ir)?ss(Ir):(0,nn.xz)(Ir)?(Ce.consume(Ir),ml):tt(Ir)}function ss(Ir){return Ir===45&&Ft===2?(Ce.consume(Ir),fs):Ir===60&&Ft===1?(Ce.consume(Ir),qs):Ir===62&&Ft===4?(Ce.consume(Ir),Il):Ir===63&&Ft===3?(Ce.consume(Ir),Pr):Ir===93&&Ft===5?(Ce.consume(Ir),Ql):(0,nn.Ch)(Ir)&&(Ft===6||Ft===7)?(Ce.exit("htmlFlowData"),Ce.check(Vi,_l,Qo)(Ir)):Ir===null||(0,nn.Ch)(Ir)?(Ce.exit("htmlFlowData"),Qo(Ir)):(Ce.consume(Ir),ss)}function Qo(Ir){return Ce.check(er,Ko,_l)(Ir)}function Ko(Ir){return Ce.enter("lineEnding"),Ce.consume(Ir),Ce.exit("lineEnding"),wa}function wa(Ir){return Ir===null||(0,nn.Ch)(Ir)?Qo(Ir):(Ce.enter("htmlFlowData"),ss(Ir))}function fs(Ir){return Ir===45?(Ce.consume(Ir),Pr):ss(Ir)}function qs(Ir){return Ir===47?(Ce.consume(Ir),an="",Cl):ss(Ir)}function Cl(Ir){if(Ir===62){const al=an.toLowerCase();return Zi.includes(al)?(Ce.consume(Ir),Il):ss(Ir)}return(0,nn.jv)(Ir)&&an.length<8?(Ce.consume(Ir),an+=String.fromCharCode(Ir),Cl):ss(Ir)}function Ql(Ir){return Ir===93?(Ce.consume(Ir),Pr):ss(Ir)}function Pr(Ir){return Ir===62?(Ce.consume(Ir),Il):Ir===45&&Ft===2?(Ce.consume(Ir),Pr):ss(Ir)}function Il(Ir){return Ir===null||(0,nn.Ch)(Ir)?(Ce.exit("htmlFlowData"),_l(Ir)):(Ce.consume(Ir),Il)}function _l(Ir){return Ce.exit("htmlFlow"),Qe(Ir)}}function Ei(Ce,Qe,tt){const pt=this;return Ft;function Ft(an){return(0,nn.Ch)(an)?(Ce.enter("lineEnding"),Ce.consume(an),Ce.exit("lineEnding"),Ut):tt(an)}function Ut(an){return pt.parser.lazy[pt.now().line]?tt(an):Qe(an)}}function Gi(Ce,Qe,tt){return pt;function pt(Ft){return Ce.enter("lineEnding"),Ce.consume(Ft),Ce.exit("lineEnding"),Ce.attempt(nr,Qe,tt)}}const Ui={partial:!0,tokenize:Qi},po={concrete:!0,name:"codeFenced",tokenize:ho};function ho(Ce,Qe,tt){const pt=this,Ft={partial:!0,tokenize:Ja};let Ut=0,an=0,Nn;return Sr;function Sr(Ki){return xr(Ki)}function xr(Ki){const es=pt.events[pt.events.length-1];return Ut=es&&es[1].type==="linePrefix"?es[2].sliceSerialize(es[1],!0).length:0,Nn=Ki,Ce.enter("codeFenced"),Ce.enter("codeFencedFence"),Ce.enter("codeFencedFenceSequence"),tr(Ki)}function tr(Ki){return Ki===Nn?(an++,Ce.consume(Ki),tr):an<3?tt(Ki):(Ce.exit("codeFencedFenceSequence"),(0,nn.xz)(Ki)?(0,ir.f)(Ce,Zr,"whitespace")(Ki):Zr(Ki))}function Zr(Ki){return Ki===null||(0,nn.Ch)(Ki)?(Ce.exit("codeFencedFence"),pt.interrupt?Qe(Ki):Ce.check(Ui,Go,Qa)(Ki)):(Ce.enter("codeFencedFenceInfo"),Ce.enter("chunkString",{contentType:"string"}),Mr(Ki))}function Mr(Ki){return Ki===null||(0,nn.Ch)(Ki)?(Ce.exit("chunkString"),Ce.exit("codeFencedFenceInfo"),Zr(Ki)):(0,nn.xz)(Ki)?(Ce.exit("chunkString"),Ce.exit("codeFencedFenceInfo"),(0,ir.f)(Ce,lr,"whitespace")(Ki)):Ki===96&&Ki===Nn?tt(Ki):(Ce.consume(Ki),Mr)}function lr(Ki){return Ki===null||(0,nn.Ch)(Ki)?Zr(Ki):(Ce.enter("codeFencedFenceMeta"),Ce.enter("chunkString",{contentType:"string"}),Ao(Ki))}function Ao(Ki){return Ki===null||(0,nn.Ch)(Ki)?(Ce.exit("chunkString"),Ce.exit("codeFencedFenceMeta"),Zr(Ki)):Ki===96&&Ki===Nn?tt(Ki):(Ce.consume(Ki),Ao)}function Go(Ki){return Ce.attempt(Ft,Qa,ta)(Ki)}function ta(Ki){return Ce.enter("lineEnding"),Ce.consume(Ki),Ce.exit("lineEnding"),ao}function ao(Ki){return Ut>0&&(0,nn.xz)(Ki)?(0,ir.f)(Ce,Do,"linePrefix",Ut+1)(Ki):Do(Ki)}function Do(Ki){return Ki===null||(0,nn.Ch)(Ki)?Ce.check(Ui,Go,Qa)(Ki):(Ce.enter("codeFlowValue"),Bo(Ki))}function Bo(Ki){return Ki===null||(0,nn.Ch)(Ki)?(Ce.exit("codeFlowValue"),Do(Ki)):(Ce.consume(Ki),Bo)}function Qa(Ki){return Ce.exit("codeFenced"),Qe(Ki)}function Ja(Ki,es,Wa){let za=0;return Co;function Co(wa){return Ki.enter("lineEnding"),Ki.consume(wa),Ki.exit("lineEnding"),ml}function ml(wa){return Ki.enter("codeFencedFence"),(0,nn.xz)(wa)?(0,ir.f)(Ki,ss,"linePrefix",pt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(wa):ss(wa)}function ss(wa){return wa===Nn?(Ki.enter("codeFencedFenceSequence"),Qo(wa)):Wa(wa)}function Qo(wa){return wa===Nn?(za++,Ki.consume(wa),Qo):za>=an?(Ki.exit("codeFencedFenceSequence"),(0,nn.xz)(wa)?(0,ir.f)(Ki,Ko,"whitespace")(wa):Ko(wa)):Wa(wa)}function Ko(wa){return wa===null||(0,nn.Ch)(wa)?(Ki.exit("codeFencedFence"),es(wa)):Wa(wa)}}}function Qi(Ce,Qe,tt){const pt=this;return Ft;function Ft(an){return an===null?tt(an):(Ce.enter("lineEnding"),Ce.consume(an),Ce.exit("lineEnding"),Ut)}function Ut(an){return pt.parser.lazy[pt.now().line]?tt(an):Qe(an)}}const Ro=document.createElement("i");function Fn(Ce){const Qe="&"+Ce+";";Ro.innerHTML=Qe;const tt=Ro.textContent;return tt.charCodeAt(tt.length-1)===59&&Ce!=="semi"||tt===Qe?!1:tt}const pr={name:"characterReference",tokenize:Ln};function Ln(Ce,Qe,tt){const pt=this;let Ft=0,Ut,an;return Nn;function Nn(Zr){return Ce.enter("characterReference"),Ce.enter("characterReferenceMarker"),Ce.consume(Zr),Ce.exit("characterReferenceMarker"),Sr}function Sr(Zr){return Zr===35?(Ce.enter("characterReferenceMarkerNumeric"),Ce.consume(Zr),Ce.exit("characterReferenceMarkerNumeric"),xr):(Ce.enter("characterReferenceValue"),Ut=31,an=nn.H$,tr(Zr))}function xr(Zr){return Zr===88||Zr===120?(Ce.enter("characterReferenceMarkerHexadecimal"),Ce.consume(Zr),Ce.exit("characterReferenceMarkerHexadecimal"),Ce.enter("characterReferenceValue"),Ut=6,an=nn.AF,tr):(Ce.enter("characterReferenceValue"),Ut=7,an=nn.pY,tr(Zr))}function tr(Zr){if(Zr===59&&Ft){const Mr=Ce.exit("characterReferenceValue");return an===nn.H$&&!Fn(pt.sliceSerialize(Mr))?tt(Zr):(Ce.enter("characterReferenceMarker"),Ce.consume(Zr),Ce.exit("characterReferenceMarker"),Ce.exit("characterReference"),Qe)}return an(Zr)&&Ft++<Ut?(Ce.consume(Zr),tr):tt(Zr)}}const rt={name:"characterEscape",tokenize:Hr};function Hr(Ce,Qe,tt){return pt;function pt(Ut){return Ce.enter("characterEscape"),Ce.enter("escapeMarker"),Ce.consume(Ut),Ce.exit("escapeMarker"),Ft}function Ft(Ut){return(0,nn.sR)(Ut)?(Ce.enter("characterEscapeValue"),Ce.consume(Ut),Ce.exit("characterEscapeValue"),Ce.exit("characterEscape"),Qe):tt(Ut)}}const _r={name:"lineEnding",tokenize:pi};function pi(Ce,Qe){return tt;function tt(pt){return Ce.enter("lineEnding"),Ce.consume(pt),Ce.exit("lineEnding"),(0,ir.f)(Ce,Qe,"linePrefix")}}function hi(Ce,Qe,tt){const pt=[];let Ft=-1;for(;++Ft<Ce.length;){const Ut=Ce[Ft].resolveAll;Ut&&!pt.includes(Ut)&&(Qe=Ut(Qe,tt),pt.push(Ut))}return Qe}const ri={name:"labelEnd",resolveAll:wn,resolveTo:jn,tokenize:On},yr={tokenize:sr},ht={tokenize:Un},xn={tokenize:ln};function wn(Ce){let Qe=-1;const tt=[];for(;++Qe<Ce.length;){const pt=Ce[Qe][1];if(tt.push(Ce[Qe]),pt.type==="labelImage"||pt.type==="labelLink"||pt.type==="labelEnd"){const Ft=pt.type==="labelImage"?4:2;pt.type="data",Qe+=Ft}}return Ce.length!==tt.length&&jt(Ce,0,Ce.length,tt),Ce}function jn(Ce,Qe){let tt=Ce.length,pt=0,Ft,Ut,an,Nn;for(;tt--;)if(Ft=Ce[tt][1],Ut){if(Ft.type==="link"||Ft.type==="labelLink"&&Ft._inactive)break;Ce[tt][0]==="enter"&&Ft.type==="labelLink"&&(Ft._inactive=!0)}else if(an){if(Ce[tt][0]==="enter"&&(Ft.type==="labelImage"||Ft.type==="labelLink")&&!Ft._balanced&&(Ut=tt,Ft.type!=="labelLink")){pt=2;break}}else Ft.type==="labelEnd"&&(an=tt);const Sr={type:Ce[Ut][1].type==="labelLink"?"link":"image",start:xa({},Ce[Ut][1].start),end:xa({},Ce[Ce.length-1][1].end)},xr={type:"label",start:xa({},Ce[Ut][1].start),end:xa({},Ce[an][1].end)},tr={type:"labelText",start:xa({},Ce[Ut+pt+2][1].end),end:xa({},Ce[an-2][1].start)};return Nn=[["enter",Sr,Qe],["enter",xr,Qe]],Nn=dn(Nn,Ce.slice(Ut+1,Ut+pt+3)),Nn=dn(Nn,[["enter",tr,Qe]]),Nn=dn(Nn,hi(Qe.parser.constructs.insideSpan.null,Ce.slice(Ut+pt+4,an-3),Qe)),Nn=dn(Nn,[["exit",tr,Qe],Ce[an-2],Ce[an-1],["exit",xr,Qe]]),Nn=dn(Nn,Ce.slice(an+1)),Nn=dn(Nn,[["exit",Sr,Qe]]),jt(Ce,Ut,Ce.length,Nn),Ce}function On(Ce,Qe,tt){const pt=this;let Ft=pt.events.length,Ut,an;for(;Ft--;)if((pt.events[Ft][1].type==="labelImage"||pt.events[Ft][1].type==="labelLink")&&!pt.events[Ft][1]._balanced){Ut=pt.events[Ft][1];break}return Nn;function Nn(Mr){return Ut?Ut._inactive?Zr(Mr):(an=pt.parser.defined.includes(jr(pt.sliceSerialize({start:Ut.end,end:pt.now()}))),Ce.enter("labelEnd"),Ce.enter("labelMarker"),Ce.consume(Mr),Ce.exit("labelMarker"),Ce.exit("labelEnd"),Sr):tt(Mr)}function Sr(Mr){return Mr===40?Ce.attempt(yr,tr,an?tr:Zr)(Mr):Mr===91?Ce.attempt(ht,tr,an?xr:Zr)(Mr):an?tr(Mr):Zr(Mr)}function xr(Mr){return Ce.attempt(xn,tr,Zr)(Mr)}function tr(Mr){return Qe(Mr)}function Zr(Mr){return Ut._balanced=!0,tt(Mr)}}function sr(Ce,Qe,tt){return pt;function pt(Zr){return Ce.enter("resource"),Ce.enter("resourceMarker"),Ce.consume(Zr),Ce.exit("resourceMarker"),Ft}function Ft(Zr){return(0,nn.z3)(Zr)?Nr(Ce,Ut)(Zr):Ut(Zr)}function Ut(Zr){return Zr===41?tr(Zr):Tn(Ce,an,Nn,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(Zr)}function an(Zr){return(0,nn.z3)(Zr)?Nr(Ce,Sr)(Zr):tr(Zr)}function Nn(Zr){return tt(Zr)}function Sr(Zr){return Zr===34||Zr===39||Zr===40?Ue(Ce,xr,tt,"resourceTitle","resourceTitleMarker","resourceTitleString")(Zr):tr(Zr)}function xr(Zr){return(0,nn.z3)(Zr)?Nr(Ce,tr)(Zr):tr(Zr)}function tr(Zr){return Zr===41?(Ce.enter("resourceMarker"),Ce.consume(Zr),Ce.exit("resourceMarker"),Ce.exit("resource"),Qe):tt(Zr)}}function Un(Ce,Qe,tt){const pt=this;return Ft;function Ft(Nn){return un.call(pt,Ce,Ut,an,"reference","referenceMarker","referenceString")(Nn)}function Ut(Nn){return pt.parser.defined.includes(jr(pt.sliceSerialize(pt.events[pt.events.length-1][1]).slice(1,-1)))?Qe(Nn):tt(Nn)}function an(Nn){return tt(Nn)}}function ln(Ce,Qe,tt){return pt;function pt(Ut){return Ce.enter("reference"),Ce.enter("referenceMarker"),Ce.consume(Ut),Ce.exit("referenceMarker"),Ft}function Ft(Ut){return Ut===93?(Ce.enter("referenceMarker"),Ce.consume(Ut),Ce.exit("referenceMarker"),Ce.exit("reference"),Qe):tt(Ut)}}const qn={name:"labelStartImage",resolveAll:ri.resolveAll,tokenize:Ur};function Ur(Ce,Qe,tt){const pt=this;return Ft;function Ft(Nn){return Ce.enter("labelImage"),Ce.enter("labelImageMarker"),Ce.consume(Nn),Ce.exit("labelImageMarker"),Ut}function Ut(Nn){return Nn===91?(Ce.enter("labelMarker"),Ce.consume(Nn),Ce.exit("labelMarker"),Ce.exit("labelImage"),an):tt(Nn)}function an(Nn){return Nn===94&&"_hiddenFootnoteSupport"in pt.parser.constructs?tt(Nn):Qe(Nn)}}function Ni(Ce){if(Ce===null||(0,nn.z3)(Ce)||(0,nn.B8)(Ce))return 1;if((0,nn.Xh)(Ce))return 2}const ai={name:"attention",resolveAll:Si,tokenize:Ii};function Si(Ce,Qe){let tt=-1,pt,Ft,Ut,an,Nn,Sr,xr,tr;for(;++tt<Ce.length;)if(Ce[tt][0]==="enter"&&Ce[tt][1].type==="attentionSequence"&&Ce[tt][1]._close){for(pt=tt;pt--;)if(Ce[pt][0]==="exit"&&Ce[pt][1].type==="attentionSequence"&&Ce[pt][1]._open&&Qe.sliceSerialize(Ce[pt][1]).charCodeAt(0)===Qe.sliceSerialize(Ce[tt][1]).charCodeAt(0)){if((Ce[pt][1]._close||Ce[tt][1]._open)&&(Ce[tt][1].end.offset-Ce[tt][1].start.offset)%3&&!((Ce[pt][1].end.offset-Ce[pt][1].start.offset+Ce[tt][1].end.offset-Ce[tt][1].start.offset)%3))continue;Sr=Ce[pt][1].end.offset-Ce[pt][1].start.offset>1&&Ce[tt][1].end.offset-Ce[tt][1].start.offset>1?2:1;const Zr=xa({},Ce[pt][1].end),Mr=xa({},Ce[tt][1].start);Ri(Zr,-Sr),Ri(Mr,Sr),an={type:Sr>1?"strongSequence":"emphasisSequence",start:Zr,end:xa({},Ce[pt][1].end)},Nn={type:Sr>1?"strongSequence":"emphasisSequence",start:xa({},Ce[tt][1].start),end:Mr},Ut={type:Sr>1?"strongText":"emphasisText",start:xa({},Ce[pt][1].end),end:xa({},Ce[tt][1].start)},Ft={type:Sr>1?"strong":"emphasis",start:xa({},an.start),end:xa({},Nn.end)},Ce[pt][1].end=xa({},an.start),Ce[tt][1].start=xa({},Nn.end),xr=[],Ce[pt][1].end.offset-Ce[pt][1].start.offset&&(xr=dn(xr,[["enter",Ce[pt][1],Qe],["exit",Ce[pt][1],Qe]])),xr=dn(xr,[["enter",Ft,Qe],["enter",an,Qe],["exit",an,Qe],["enter",Ut,Qe]]),xr=dn(xr,hi(Qe.parser.constructs.insideSpan.null,Ce.slice(pt+1,tt),Qe)),xr=dn(xr,[["exit",Ut,Qe],["enter",Nn,Qe],["exit",Nn,Qe],["exit",Ft,Qe]]),Ce[tt][1].end.offset-Ce[tt][1].start.offset?(tr=2,xr=dn(xr,[["enter",Ce[tt][1],Qe],["exit",Ce[tt][1],Qe]])):tr=0,jt(Ce,pt-1,tt-pt+3,xr),tt=pt+xr.length-tr-2;break}}for(tt=-1;++tt<Ce.length;)Ce[tt][1].type==="attentionSequence"&&(Ce[tt][1].type="data");return Ce}function Ii(Ce,Qe){const tt=this.parser.constructs.attentionMarkers.null,pt=this.previous,Ft=Ni(pt);let Ut;return an;function an(Sr){return Ut=Sr,Ce.enter("attentionSequence"),Nn(Sr)}function Nn(Sr){if(Sr===Ut)return Ce.consume(Sr),Nn;const xr=Ce.exit("attentionSequence"),tr=Ni(Sr),Zr=!tr||tr===2&&Ft||tt.includes(Sr),Mr=!Ft||Ft===2&&tr||tt.includes(pt);return xr._open=!!(Ut===42?Zr:Zr&&(Ft||!Mr)),xr._close=!!(Ut===42?Mr:Mr&&(tr||!Zr)),Qe(Sr)}}function Ri(Ce,Qe){Ce.column+=Qe,Ce.offset+=Qe,Ce._bufferIndex+=Qe}const co={name:"autolink",tokenize:mo};function mo(Ce,Qe,tt){let pt=0;return Ft;function Ft(lr){return Ce.enter("autolink"),Ce.enter("autolinkMarker"),Ce.consume(lr),Ce.exit("autolinkMarker"),Ce.enter("autolinkProtocol"),Ut}function Ut(lr){return(0,nn.jv)(lr)?(Ce.consume(lr),an):lr===64?tt(lr):xr(lr)}function an(lr){return lr===43||lr===45||lr===46||(0,nn.H$)(lr)?(pt=1,Nn(lr)):xr(lr)}function Nn(lr){return lr===58?(Ce.consume(lr),pt=0,Sr):(lr===43||lr===45||lr===46||(0,nn.H$)(lr))&&pt++<32?(Ce.consume(lr),Nn):(pt=0,xr(lr))}function Sr(lr){return lr===62?(Ce.exit("autolinkProtocol"),Ce.enter("autolinkMarker"),Ce.consume(lr),Ce.exit("autolinkMarker"),Ce.exit("autolink"),Qe):lr===null||lr===32||lr===60||(0,nn.Av)(lr)?tt(lr):(Ce.consume(lr),Sr)}function xr(lr){return lr===64?(Ce.consume(lr),tr):(0,nn.n9)(lr)?(Ce.consume(lr),xr):tt(lr)}function tr(lr){return(0,nn.H$)(lr)?Zr(lr):tt(lr)}function Zr(lr){return lr===46?(Ce.consume(lr),pt=0,tr):lr===62?(Ce.exit("autolinkProtocol").type="autolinkEmail",Ce.enter("autolinkMarker"),Ce.consume(lr),Ce.exit("autolinkMarker"),Ce.exit("autolink"),Qe):Mr(lr)}function Mr(lr){if((lr===45||(0,nn.H$)(lr))&&pt++<63){const Ao=lr===45?Mr:Zr;return Ce.consume(lr),Ao}return tt(lr)}}const zo={name:"htmlText",tokenize:kn};function kn(Ce,Qe,tt){const pt=this;let Ft,Ut,an;return Nn;function Nn(Pr){return Ce.enter("htmlText"),Ce.enter("htmlTextData"),Ce.consume(Pr),Sr}function Sr(Pr){return Pr===33?(Ce.consume(Pr),xr):Pr===47?(Ce.consume(Pr),Ja):Pr===63?(Ce.consume(Pr),Bo):(0,nn.jv)(Pr)?(Ce.consume(Pr),Wa):tt(Pr)}function xr(Pr){return Pr===45?(Ce.consume(Pr),tr):Pr===91?(Ce.consume(Pr),Ut=0,Ao):(0,nn.jv)(Pr)?(Ce.consume(Pr),Do):tt(Pr)}function tr(Pr){return Pr===45?(Ce.consume(Pr),lr):tt(Pr)}function Zr(Pr){return Pr===null?tt(Pr):Pr===45?(Ce.consume(Pr),Mr):(0,nn.Ch)(Pr)?(an=Zr,qs(Pr)):(Ce.consume(Pr),Zr)}function Mr(Pr){return Pr===45?(Ce.consume(Pr),lr):Zr(Pr)}function lr(Pr){return Pr===62?fs(Pr):Pr===45?Mr(Pr):Zr(Pr)}function Ao(Pr){const Il="CDATA[";return Pr===Il.charCodeAt(Ut++)?(Ce.consume(Pr),Ut===Il.length?Go:Ao):tt(Pr)}function Go(Pr){return Pr===null?tt(Pr):Pr===93?(Ce.consume(Pr),ta):(0,nn.Ch)(Pr)?(an=Go,qs(Pr)):(Ce.consume(Pr),Go)}function ta(Pr){return Pr===93?(Ce.consume(Pr),ao):Go(Pr)}function ao(Pr){return Pr===62?fs(Pr):Pr===93?(Ce.consume(Pr),ao):Go(Pr)}function Do(Pr){return Pr===null||Pr===62?fs(Pr):(0,nn.Ch)(Pr)?(an=Do,qs(Pr)):(Ce.consume(Pr),Do)}function Bo(Pr){return Pr===null?tt(Pr):Pr===63?(Ce.consume(Pr),Qa):(0,nn.Ch)(Pr)?(an=Bo,qs(Pr)):(Ce.consume(Pr),Bo)}function Qa(Pr){return Pr===62?fs(Pr):Bo(Pr)}function Ja(Pr){return(0,nn.jv)(Pr)?(Ce.consume(Pr),Ki):tt(Pr)}function Ki(Pr){return Pr===45||(0,nn.H$)(Pr)?(Ce.consume(Pr),Ki):es(Pr)}function es(Pr){return(0,nn.Ch)(Pr)?(an=es,qs(Pr)):(0,nn.xz)(Pr)?(Ce.consume(Pr),es):fs(Pr)}function Wa(Pr){return Pr===45||(0,nn.H$)(Pr)?(Ce.consume(Pr),Wa):Pr===47||Pr===62||(0,nn.z3)(Pr)?za(Pr):tt(Pr)}function za(Pr){return Pr===47?(Ce.consume(Pr),fs):Pr===58||Pr===95||(0,nn.jv)(Pr)?(Ce.consume(Pr),Co):(0,nn.Ch)(Pr)?(an=za,qs(Pr)):(0,nn.xz)(Pr)?(Ce.consume(Pr),za):fs(Pr)}function Co(Pr){return Pr===45||Pr===46||Pr===58||Pr===95||(0,nn.H$)(Pr)?(Ce.consume(Pr),Co):ml(Pr)}function ml(Pr){return Pr===61?(Ce.consume(Pr),ss):(0,nn.Ch)(Pr)?(an=ml,qs(Pr)):(0,nn.xz)(Pr)?(Ce.consume(Pr),ml):za(Pr)}function ss(Pr){return Pr===null||Pr===60||Pr===61||Pr===62||Pr===96?tt(Pr):Pr===34||Pr===39?(Ce.consume(Pr),Ft=Pr,Qo):(0,nn.Ch)(Pr)?(an=ss,qs(Pr)):(0,nn.xz)(Pr)?(Ce.consume(Pr),ss):(Ce.consume(Pr),Ko)}function Qo(Pr){return Pr===Ft?(Ce.consume(Pr),Ft=void 0,wa):Pr===null?tt(Pr):(0,nn.Ch)(Pr)?(an=Qo,qs(Pr)):(Ce.consume(Pr),Qo)}function Ko(Pr){return Pr===null||Pr===34||Pr===39||Pr===60||Pr===61||Pr===96?tt(Pr):Pr===47||Pr===62||(0,nn.z3)(Pr)?za(Pr):(Ce.consume(Pr),Ko)}function wa(Pr){return Pr===47||Pr===62||(0,nn.z3)(Pr)?za(Pr):tt(Pr)}function fs(Pr){return Pr===62?(Ce.consume(Pr),Ce.exit("htmlTextData"),Ce.exit("htmlText"),Qe):tt(Pr)}function qs(Pr){return Ce.exit("htmlTextData"),Ce.enter("lineEnding"),Ce.consume(Pr),Ce.exit("lineEnding"),Cl}function Cl(Pr){return(0,nn.xz)(Pr)?(0,ir.f)(Ce,Ql,"linePrefix",pt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Pr):Ql(Pr)}function Ql(Pr){return Ce.enter("htmlTextData"),an(Pr)}}const bo={name:"labelStartLink",resolveAll:ri.resolveAll,tokenize:wo};function wo(Ce,Qe,tt){const pt=this;return Ft;function Ft(an){return Ce.enter("labelLink"),Ce.enter("labelMarker"),Ce.consume(an),Ce.exit("labelMarker"),Ce.exit("labelLink"),Ut}function Ut(an){return an===94&&"_hiddenFootnoteSupport"in pt.parser.constructs?tt(an):Qe(an)}}const Wi={name:"hardBreakEscape",tokenize:so};function so(Ce,Qe,tt){return pt;function pt(Ut){return Ce.enter("hardBreakEscape"),Ce.consume(Ut),Ft}function Ft(Ut){return(0,nn.Ch)(Ut)?(Ce.exit("hardBreakEscape"),Qe(Ut)):tt(Ut)}}const ro={name:"codeText",previous:Vn,resolve:Xo,tokenize:yo};function Xo(Ce){let Qe=Ce.length-4,tt=3,pt,Ft;if((Ce[tt][1].type==="lineEnding"||Ce[tt][1].type==="space")&&(Ce[Qe][1].type==="lineEnding"||Ce[Qe][1].type==="space")){for(pt=tt;++pt<Qe;)if(Ce[pt][1].type==="codeTextData"){Ce[tt][1].type="codeTextPadding",Ce[Qe][1].type="codeTextPadding",tt+=2,Qe-=2;break}}for(pt=tt-1,Qe++;++pt<=Qe;)Ft===void 0?pt!==Qe&&Ce[pt][1].type!=="lineEnding"&&(Ft=pt):(pt===Qe||Ce[pt][1].type==="lineEnding")&&(Ce[Ft][1].type="codeTextData",pt!==Ft+2&&(Ce[Ft][1].end=Ce[pt-1][1].end,Ce.splice(Ft+2,pt-Ft-2),Qe-=pt-Ft-2,pt=Ft+2),Ft=void 0);return Ce}function Vn(Ce){return Ce!==96||this.events[this.events.length-1][1].type==="characterEscape"}function yo(Ce,Qe,tt){const pt=this;let Ft=0,Ut,an;return Nn;function Nn(Mr){return Ce.enter("codeText"),Ce.enter("codeTextSequence"),Sr(Mr)}function Sr(Mr){return Mr===96?(Ce.consume(Mr),Ft++,Sr):(Ce.exit("codeTextSequence"),xr(Mr))}function xr(Mr){return Mr===null?tt(Mr):Mr===32?(Ce.enter("space"),Ce.consume(Mr),Ce.exit("space"),xr):Mr===96?(an=Ce.enter("codeTextSequence"),Ut=0,Zr(Mr)):(0,nn.Ch)(Mr)?(Ce.enter("lineEnding"),Ce.consume(Mr),Ce.exit("lineEnding"),xr):(Ce.enter("codeTextData"),tr(Mr))}function tr(Mr){return Mr===null||Mr===32||Mr===96||(0,nn.Ch)(Mr)?(Ce.exit("codeTextData"),xr(Mr)):(Ce.consume(Mr),tr)}function Zr(Mr){return Mr===96?(Ce.consume(Mr),Ut++,Zr):Ut===Ft?(Ce.exit("codeTextSequence"),Ce.exit("codeText"),Qe(Mr)):(an.type="codeTextData",tr(Mr))}}const ia={42:Vr,43:Vr,45:Vr,48:Vr,49:Vr,50:Vr,51:Vr,52:Vr,53:Vr,54:Vr,55:Vr,56:Vr,57:Vr,62:br},ws={91:zn},Ba={[-2]:Gn,[-1]:Gn,32:Gn},xl={35:Qn,42:Kr,45:[di,Kr],60:Fi,61:di,95:Kr,96:po,126:po},Cs={38:pr,92:rt},Xi={[-5]:_r,[-4]:_r,[-3]:_r,33:qn,38:pr,42:ai,60:[co,zo],91:bo,92:[Wi,rt],93:ri,95:ai,96:ro},Ia={null:[ai,Or]},_a={null:[42,95]},ds={null:[]};function La(Ce,Qe,tt){let pt={_bufferIndex:-1,_index:0,line:tt&&tt.line||1,column:tt&&tt.column||1,offset:tt&&tt.offset||0};const Ft={},Ut=[];let an=[],Nn=[],Sr=!0;const xr={attempt:za(es),check:za(Wa),consume:Qa,enter:Ja,exit:Ki,interrupt:za(Wa,{interrupt:!0})},tr={code:null,containerState:{},defineSkip:ao,events:[],now:ta,parser:Ce,previous:null,sliceSerialize:Ao,sliceStream:Go,write:lr};let Zr=Qe.tokenize.call(tr,xr),Mr;return Qe.resolveAll&&Ut.push(Qe),tr;function lr(Qo){return an=dn(an,Qo),Do(),an[an.length-1]!==null?[]:(Co(Qe,0),tr.events=hi(Ut,tr.events,tr),tr.events)}function Ao(Qo,Ko){return fi(Go(Qo),Ko)}function Go(Qo){return Za(an,Qo)}function ta(){const{_bufferIndex:Qo,_index:Ko,line:wa,column:fs,offset:qs}=pt;return{_bufferIndex:Qo,_index:Ko,line:wa,column:fs,offset:qs}}function ao(Qo){Ft[Qo.line]=Qo.column,ss()}function Do(){let Qo;for(;pt._index<an.length;){const Ko=an[pt._index];if(typeof Ko=="string")for(Qo=pt._index,pt._bufferIndex<0&&(pt._bufferIndex=0);pt._index===Qo&&pt._bufferIndex<Ko.length;)Bo(Ko.charCodeAt(pt._bufferIndex));else Bo(Ko)}}function Bo(Qo){Sr=void 0,Mr=Qo,Zr=Zr(Qo)}function Qa(Qo){(0,nn.Ch)(Qo)?(pt.line++,pt.column=1,pt.offset+=Qo===-3?2:1,ss()):Qo!==-1&&(pt.column++,pt.offset++),pt._bufferIndex<0?pt._index++:(pt._bufferIndex++,pt._bufferIndex===an[pt._index].length&&(pt._bufferIndex=-1,pt._index++)),tr.previous=Qo,Sr=!0}function Ja(Qo,Ko){const wa=Ko||{};return wa.type=Qo,wa.start=ta(),tr.events.push(["enter",wa,tr]),Nn.push(wa),wa}function Ki(Qo){const Ko=Nn.pop();return Ko.end=ta(),tr.events.push(["exit",Ko,tr]),Ko}function es(Qo,Ko){Co(Qo,Ko.from)}function Wa(Qo,Ko){Ko.restore()}function za(Qo,Ko){return wa;function wa(fs,qs,Cl){let Ql,Pr,Il,_l;return Array.isArray(fs)?al(fs):"tokenize"in fs?al([fs]):Ir(fs);function Ir(Ss){return fu;function fu(sl){const Xu=sl!==null&&Ss[sl],hc=sl!==null&&Ss.null,wd=[...Array.isArray(Xu)?Xu:Xu?[Xu]:[],...Array.isArray(hc)?hc:hc?[hc]:[]];return al(wd)(sl)}}function al(Ss){return Ql=Ss,Pr=0,Ss.length===0?Cl:Pu(Ss[Pr])}function Pu(Ss){return fu;function fu(sl){return _l=ml(),Il=Ss,Ss.partial||(tr.currentConstruct=Ss),Ss.name&&tr.parser.constructs.disable.null.includes(Ss.name)?$s(sl):Ss.tokenize.call(Ko?Object.assign(Object.create(tr),Ko):tr,xr,hu,$s)(sl)}}function hu(Ss){return Sr=!0,Qo(Il,_l),qs}function $s(Ss){return Sr=!0,_l.restore(),++Pr<Ql.length?Pu(Ql[Pr]):Cl}}}function Co(Qo,Ko){Qo.resolveAll&&!Ut.includes(Qo)&&Ut.push(Qo),Qo.resolve&&jt(tr.events,Ko,tr.events.length-Ko,Qo.resolve(tr.events.slice(Ko),tr)),Qo.resolveTo&&(tr.events=Qo.resolveTo(tr.events,tr))}function ml(){const Qo=ta(),Ko=tr.previous,wa=tr.currentConstruct,fs=tr.events.length,qs=Array.from(Nn);return{from:fs,restore:Cl};function Cl(){pt=Qo,tr.previous=Ko,tr.currentConstruct=wa,tr.events.length=fs,Nn=qs,ss()}}function ss(){pt.line in Ft&&pt.column<2&&(pt.column=Ft[pt.line],pt.offset+=Ft[pt.line]-1)}}function Za(Ce,Qe){const tt=Qe.start._index,pt=Qe.start._bufferIndex,Ft=Qe.end._index,Ut=Qe.end._bufferIndex;let an;if(tt===Ft)an=[Ce[tt].slice(pt,Ut)];else{if(an=Ce.slice(tt,Ft),pt>-1){const Nn=an[0];typeof Nn=="string"?an[0]=Nn.slice(pt):an.shift()}Ut>0&&an.push(Ce[Ft].slice(0,Ut))}return an}function fi(Ce,Qe){let tt=-1;const pt=[];let Ft;for(;++tt<Ce.length;){const Ut=Ce[tt];let an;if(typeof Ut=="string")an=Ut;else switch(Ut){case-5:{an="\r";break}case-4:{an=`
`;break}case-3:{an=`\r
`;break}case-2:{an=Qe?" ":" ";break}case-1:{if(!Qe&&Ft)continue;an=" ";break}default:an=String.fromCharCode(Ut)}Ft=Ut===-2,pt.push(an)}return pt.join("")}function Ji(Ce){const pt={constructs:vn([oe,...(Ce||{}).extensions||[]]),content:Ft(vr),defined:[],document:Ft(Lr),flow:Ft(kr),lazy:{},string:Ft(mi),text:Ft(Ti)};return pt;function Ft(Ut){return an;function an(Nn){return La(pt,Ut,Nn)}}}const fo=/[\0\t\n\r]/g;function Mo(){let Ce=1,Qe="",tt=!0,pt;return Ft;function Ft(Ut,an,Nn){const Sr=[];let xr,tr,Zr,Mr,lr;for(Ut=Qe+(typeof Ut=="string"?Ut.toString():new TextDecoder(an||void 0).decode(Ut)),Zr=0,Qe="",tt&&(Ut.charCodeAt(0)===65279&&Zr++,tt=void 0);Zr<Ut.length;){if(fo.lastIndex=Zr,xr=fo.exec(Ut),Mr=xr&&xr.index!==void 0?xr.index:Ut.length,lr=Ut.charCodeAt(Mr),!xr){Qe=Ut.slice(Zr);break}if(lr===10&&Zr===Mr&&pt)Sr.push(-3),pt=void 0;else switch(pt&&(Sr.push(-5),pt=void 0),Zr<Mr&&(Sr.push(Ut.slice(Zr,Mr)),Ce+=Mr-Zr),lr){case 0:{Sr.push(65533),Ce++;break}case 9:{for(tr=Math.ceil(Ce/4)*4,Sr.push(-2);Ce++<tr;)Sr.push(-1);break}case 10:{Sr.push(-4),Ce=1;break}default:pt=!0,Ce=1}Zr=Mr+1}return Nn&&(pt&&Sr.push(-5),Qe&&Sr.push(Qe),Sr.push(null)),Sr}}function Oo(Ce,Qe){const tt=Number.parseInt(Ce,Qe);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 ua=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function qi(Ce){return Ce.replace(ua,ps)}function ps(Ce,Qe,tt){if(Qe)return Qe;if(tt.charCodeAt(0)===35){const Ft=tt.charCodeAt(1),Ut=Ft===120||Ft===88;return Oo(tt.slice(Ut?2:1),Ut?16:10)}return Fn(tt)||Ce}const Ga={}.hasOwnProperty;function ca(Ce,Qe,tt){return typeof Qe!="string"&&(tt=Qe,Qe=void 0),Uo(tt)(Zt(Ji(tt).document().write(Mo()(Ce,Qe,!0))))}function Uo(Ce){const Qe={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:Ut(et),autolinkProtocol:za,autolinkEmail:za,atxHeading:Ut(pu),blockQuote:Ut(sl),characterEscape:za,characterReference:za,codeFenced:Ut(Xu),codeFencedFenceInfo:an,codeFencedFenceMeta:an,codeIndented:Ut(Xu,an),codeText:Ut(hc,an),codeTextData:za,data:za,codeFlowValue:za,definition:Ut(wd),definitionDestinationString:an,definitionLabelString:an,definitionTitleString:an,emphasis:Ut(Pl),hardBreakEscape:Ut(hd),hardBreakTrailing:Ut(hd),htmlFlow:Ut(ce,an),htmlFlowData:za,htmlText:Ut(ce,an),htmlTextData:za,image:Ut(ge),label:an,link:Ut(et),listItem:Ut(Er),listItemValue:Mr,listOrdered:Ut(qt,Zr),listUnordered:Ut(qt),paragraph:Ut(li),reference:Ir,referenceString:an,resourceDestinationString:an,resourceTitleString:an,setextHeading:Ut(pu),strong:Ut(Pi),thematicBreak:Ut(Yo)},exit:{atxHeading:Sr(),atxHeadingSequence:Ja,autolink:Sr(),autolinkEmail:fu,autolinkProtocol:Ss,blockQuote:Sr(),characterEscapeValue:Co,characterReferenceMarkerHexadecimal:Pu,characterReferenceMarkerNumeric:Pu,characterReferenceValue:hu,characterReference:$s,codeFenced:Sr(ta),codeFencedFence:Go,codeFencedFenceInfo:lr,codeFencedFenceMeta:Ao,codeFlowValue:Co,codeIndented:Sr(ao),codeText:Sr(wa),codeTextData:Co,data:Co,definition:Sr(),definitionDestinationString:Qa,definitionLabelString:Do,definitionTitleString:Bo,emphasis:Sr(),hardBreakEscape:Sr(ss),hardBreakTrailing:Sr(ss),htmlFlow:Sr(Qo),htmlFlowData:Co,htmlText:Sr(Ko),htmlTextData:Co,image:Sr(qs),label:Ql,labelText:Cl,lineEnding:ml,link:Sr(fs),listItem:Sr(),listOrdered:Sr(),listUnordered:Sr(),paragraph:Sr(),referenceString:al,resourceDestinationString:Pr,resourceTitleString:Il,resource:_l,setextHeading:Sr(Wa),setextHeadingLineSequence:es,setextHeadingText:Ki,strong:Sr(),thematicBreak:Sr()}};Us(Qe,(Ce||{}).mdastExtensions||[]);const tt={};return pt;function pt(ii){let no={type:"root",children:[]};const Wo={stack:[no],tokenStack:[],config:Qe,enter:Nn,exit:xr,buffer:an,resume:tr,data:tt},Ta=[];let is=-1;for(;++is<ii.length;)if(ii[is][1].type==="listOrdered"||ii[is][1].type==="listUnordered")if(ii[is][0]==="enter")Ta.push(is);else{const Hu=Ta.pop();is=Ft(ii,Hu,is)}for(is=-1;++is<ii.length;){const Hu=Qe[ii[is][0]];Ga.call(Hu,ii[is][1].type)&&Hu[ii[is][1].type].call(Object.assign({sliceSerialize:ii[is][2].sliceSerialize},Wo),ii[is][1])}if(Wo.tokenStack.length>0){const Hu=Wo.tokenStack[Wo.tokenStack.length-1];(Hu[1]||hs).call(Wo,void 0,Hu[0])}for(no.position={start:da(ii.length>0?ii[0][1].start:{line:1,column:1,offset:0}),end:da(ii.length>0?ii[ii.length-2][1].end:{line:1,column:1,offset:0})},is=-1;++is<Qe.transforms.length;)no=Qe.transforms[is](no)||no;return no}function Ft(ii,no,Wo){let Ta=no-1,is=-1,Hu=!1,Qu,Ju,gu,Ul;for(;++Ta<=Wo;){const Tu=ii[Ta];switch(Tu[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Tu[0]==="enter"?is++:is--,Ul=void 0;break}case"lineEndingBlank":{Tu[0]==="enter"&&(Qu&&!Ul&&!is&&!gu&&(gu=Ta),Ul=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ul=void 0}if(!is&&Tu[0]==="enter"&&Tu[1].type==="listItemPrefix"||is===-1&&Tu[0]==="exit"&&(Tu[1].type==="listUnordered"||Tu[1].type==="listOrdered")){if(Qu){let Kc=Ta;for(Ju=void 0;Kc--;){const Jl=ii[Kc];if(Jl[1].type==="lineEnding"||Jl[1].type==="lineEndingBlank"){if(Jl[0]==="exit")continue;Ju&&(ii[Ju][1].type="lineEndingBlank",Hu=!0),Jl[1].type="lineEnding",Ju=Kc}else if(!(Jl[1].type==="linePrefix"||Jl[1].type==="blockQuotePrefix"||Jl[1].type==="blockQuotePrefixWhitespace"||Jl[1].type==="blockQuoteMarker"||Jl[1].type==="listItemIndent"))break}gu&&(!Ju||gu<Ju)&&(Qu._spread=!0),Qu.end=Object.assign({},Ju?ii[Ju][1].start:Tu[1].end),ii.splice(Ju||Ta,0,["exit",Qu,Tu[2]]),Ta++,Wo++}if(Tu[1].type==="listItemPrefix"){const Kc={type:"listItem",_spread:!1,start:Object.assign({},Tu[1].start),end:void 0};Qu=Kc,ii.splice(Ta,0,["enter",Kc,Tu[2]]),Ta++,Wo++,gu=void 0,Ul=!0}}}return ii[no][1]._spread=Hu,Wo}function Ut(ii,no){return Wo;function Wo(Ta){Nn.call(this,ii(Ta),Ta),no&&no.call(this,Ta)}}function an(){this.stack.push({type:"fragment",children:[]})}function Nn(ii,no,Wo){this.stack[this.stack.length-1].children.push(ii),this.stack.push(ii),this.tokenStack.push([no,Wo||void 0]),ii.position={start:da(no.start),end:void 0}}function Sr(ii){return no;function no(Wo){ii&&ii.call(this,Wo),xr.call(this,Wo)}}function xr(ii,no){const Wo=this.stack.pop(),Ta=this.tokenStack.pop();if(Ta)Ta[0].type!==ii.type&&(no?no.call(this,ii,Ta[0]):(Ta[1]||hs).call(this,ii,Ta[0]));else throw new Error("Cannot close `"+ii.type+"` ("+Ae({start:ii.start,end:ii.end})+"): it\u2019s not open");Wo.position.end=da(ii.end)}function tr(){return sn(this.stack.pop())}function Zr(){this.data.expectingFirstListItemValue=!0}function Mr(ii){if(this.data.expectingFirstListItemValue){const no=this.stack[this.stack.length-2];no.start=Number.parseInt(this.sliceSerialize(ii),10),this.data.expectingFirstListItemValue=void 0}}function lr(){const ii=this.resume(),no=this.stack[this.stack.length-1];no.lang=ii}function Ao(){const ii=this.resume(),no=this.stack[this.stack.length-1];no.meta=ii}function Go(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function ta(){const ii=this.resume(),no=this.stack[this.stack.length-1];no.value=ii.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function ao(){const ii=this.resume(),no=this.stack[this.stack.length-1];no.value=ii.replace(/(\r?\n|\r)$/g,"")}function Do(ii){const no=this.resume(),Wo=this.stack[this.stack.length-1];Wo.label=no,Wo.identifier=jr(this.sliceSerialize(ii)).toLowerCase()}function Bo(){const ii=this.resume(),no=this.stack[this.stack.length-1];no.title=ii}function Qa(){const ii=this.resume(),no=this.stack[this.stack.length-1];no.url=ii}function Ja(ii){const no=this.stack[this.stack.length-1];if(!no.depth){const Wo=this.sliceSerialize(ii).length;no.depth=Wo}}function Ki(){this.data.setextHeadingSlurpLineEnding=!0}function es(ii){const no=this.stack[this.stack.length-1];no.depth=this.sliceSerialize(ii).codePointAt(0)===61?1:2}function Wa(){this.data.setextHeadingSlurpLineEnding=void 0}function za(ii){const Wo=this.stack[this.stack.length-1].children;let Ta=Wo[Wo.length-1];(!Ta||Ta.type!=="text")&&(Ta=Lo(),Ta.position={start:da(ii.start),end:void 0},Wo.push(Ta)),this.stack.push(Ta)}function Co(ii){const no=this.stack.pop();no.value+=this.sliceSerialize(ii),no.position.end=da(ii.end)}function ml(ii){const no=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Wo=no.children[no.children.length-1];Wo.position.end=da(ii.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&Qe.canContainEols.includes(no.type)&&(za.call(this,ii),Co.call(this,ii))}function ss(){this.data.atHardBreak=!0}function Qo(){const ii=this.resume(),no=this.stack[this.stack.length-1];no.value=ii}function Ko(){const ii=this.resume(),no=this.stack[this.stack.length-1];no.value=ii}function wa(){const ii=this.resume(),no=this.stack[this.stack.length-1];no.value=ii}function fs(){const ii=this.stack[this.stack.length-1];if(this.data.inReference){const no=this.data.referenceType||"shortcut";ii.type+="Reference",ii.referenceType=no,delete ii.url,delete ii.title}else delete ii.identifier,delete ii.label;this.data.referenceType=void 0}function qs(){const ii=this.stack[this.stack.length-1];if(this.data.inReference){const no=this.data.referenceType||"shortcut";ii.type+="Reference",ii.referenceType=no,delete ii.url,delete ii.title}else delete ii.identifier,delete ii.label;this.data.referenceType=void 0}function Cl(ii){const no=this.sliceSerialize(ii),Wo=this.stack[this.stack.length-2];Wo.label=qi(no),Wo.identifier=jr(no).toLowerCase()}function Ql(){const ii=this.stack[this.stack.length-1],no=this.resume(),Wo=this.stack[this.stack.length-1];if(this.data.inReference=!0,Wo.type==="link"){const Ta=ii.children;Wo.children=Ta}else Wo.alt=no}function Pr(){const ii=this.resume(),no=this.stack[this.stack.length-1];no.url=ii}function Il(){const ii=this.resume(),no=this.stack[this.stack.length-1];no.title=ii}function _l(){this.data.inReference=void 0}function Ir(){this.data.referenceType="collapsed"}function al(ii){const no=this.resume(),Wo=this.stack[this.stack.length-1];Wo.label=no,Wo.identifier=jr(this.sliceSerialize(ii)).toLowerCase(),this.data.referenceType="full"}function Pu(ii){this.data.characterReferenceType=ii.type}function hu(ii){const no=this.sliceSerialize(ii),Wo=this.data.characterReferenceType;let Ta;Wo?(Ta=Oo(no,Wo==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ta=Fn(no);const is=this.stack[this.stack.length-1];is.value+=Ta}function $s(ii){const no=this.stack.pop();no.position.end=da(ii.end)}function Ss(ii){Co.call(this,ii);const no=this.stack[this.stack.length-1];no.url=this.sliceSerialize(ii)}function fu(ii){Co.call(this,ii);const no=this.stack[this.stack.length-1];no.url="mailto:"+this.sliceSerialize(ii)}function sl(){return{type:"blockquote",children:[]}}function Xu(){return{type:"code",lang:null,meta:null,value:""}}function hc(){return{type:"inlineCode",value:""}}function wd(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Pl(){return{type:"emphasis",children:[]}}function pu(){return{type:"heading",depth:0,children:[]}}function hd(){return{type:"break"}}function ce(){return{type:"html",value:""}}function ge(){return{type:"image",title:null,url:"",alt:null}}function et(){return{type:"link",title:null,url:"",children:[]}}function qt(ii){return{type:"list",ordered:ii.type==="listOrdered",start:null,spread:ii._spread,children:[]}}function Er(ii){return{type:"listItem",spread:ii._spread,checked:null,children:[]}}function li(){return{type:"paragraph",children:[]}}function Pi(){return{type:"strong",children:[]}}function Lo(){return{type:"text",value:""}}function Yo(){return{type:"thematicBreak"}}}function da(Ce){return{line:Ce.line,column:Ce.column,offset:Ce.offset}}function Us(Ce,Qe){let tt=-1;for(;++tt<Qe.length;){const pt=Qe[tt];Array.isArray(pt)?Us(Ce,pt):ba(Ce,pt)}}function ba(Ce,Qe){let tt;for(tt in Qe)if(Ga.call(Qe,tt))switch(tt){case"canContainEols":{const pt=Qe[tt];pt&&Ce[tt].push(...pt);break}case"transforms":{const pt=Qe[tt];pt&&Ce[tt].push(...pt);break}case"enter":case"exit":{const pt=Qe[tt];pt&&Object.assign(Ce[tt],pt);break}}}function hs(Ce,Qe){throw Ce?new Error("Cannot close `"+Ce.type+"` ("+Ae({start:Ce.start,end:Ce.end})+"): a different token (`"+Qe.type+"`, "+Ae({start:Qe.start,end:Qe.end})+") is open"):new Error("Cannot close document, a token (`"+Qe.type+"`, "+Ae({start:Qe.start,end:Qe.end})+") is still open")}function dl(Ce){const Qe=this;Qe.parser=tt;function tt(pt){return ca(pt,Kp(xa(xa({},Qe.data("settings")),Ce),{extensions:Qe.data("micromarkExtensions")||[],mdastExtensions:Qe.data("fromMarkdownExtensions")||[]}))}}var js=ae(90302);function Ka(Ce,Qe){const tt=encode(Zl(Ce||""));if(!Qe)return tt;const pt=tt.indexOf(":"),Ft=tt.indexOf("?"),Ut=tt.indexOf("#"),an=tt.indexOf("/");return pt<0||an>-1&&pt>an||Ft>-1&&pt>Ft||Ut>-1&&pt>Ut||Qe.test(tt.slice(0,pt))?tt:""}function Zl(Ce){const Qe=[];let tt=-1,pt=0,Ft=0;for(;++tt<Ce.length;){const Ut=Ce.charCodeAt(tt);let an="";if(Ut===37&&(0,nn.H$)(Ce.charCodeAt(tt+1))&&(0,nn.H$)(Ce.charCodeAt(tt+2)))Ft=2;else if(Ut<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(Ut))||(an=String.fromCharCode(Ut));else if(Ut>55295&&Ut<57344){const Nn=Ce.charCodeAt(tt+1);Ut<56320&&Nn>56319&&Nn<57344?(an=String.fromCharCode(Ut,Nn),Ft=1):an="\uFFFD"}else an=String.fromCharCode(Ut);an&&(Qe.push(Ce.slice(pt,tt),encodeURIComponent(an)),pt=tt+Ft+1,an=""),Ft&&(tt+=Ft,Ft=0)}return Qe.join("")+Ce.slice(pt)}function ac(Ce,Qe){const tt=[{type:"text",value:"\u21A9"}];return Qe>1&&tt.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(Qe)}]}),tt}function hl(Ce,Qe){return"Back to reference "+(Ce+1)+(Qe>1?"-"+Qe:"")}function as(Ce){const Qe=typeof Ce.options.clobberPrefix=="string"?Ce.options.clobberPrefix:"user-content-",tt=Ce.options.footnoteBackContent||ac,pt=Ce.options.footnoteBackLabel||hl,Ft=Ce.options.footnoteLabel||"Footnotes",Ut=Ce.options.footnoteLabelTagName||"h2",an=Ce.options.footnoteLabelProperties||{className:["sr-only"]},Nn=[];let Sr=-1;for(;++Sr<Ce.footnoteOrder.length;){const xr=Ce.footnoteById.get(Ce.footnoteOrder[Sr]);if(!xr)continue;const tr=Ce.all(xr),Zr=String(xr.identifier).toUpperCase(),Mr=Zl(Zr.toLowerCase());let lr=0;const Ao=[],Go=Ce.footnoteCounts.get(Zr);for(;Go!==void 0&&++lr<=Go;){Ao.length>0&&Ao.push({type:"text",value:" "});let Do=typeof tt=="string"?tt:tt(Sr,lr);typeof Do=="string"&&(Do={type:"text",value:Do}),Ao.push({type:"element",tagName:"a",properties:{href:"#"+Qe+"fnref-"+Mr+(lr>1?"-"+lr:""),dataFootnoteBackref:"",ariaLabel:typeof pt=="string"?pt:pt(Sr,lr),className:["data-footnote-backref"]},children:Array.isArray(Do)?Do:[Do]})}const ta=tr[tr.length-1];if(ta&&ta.type==="element"&&ta.tagName==="p"){const Do=ta.children[ta.children.length-1];Do&&Do.type==="text"?Do.value+=" ":ta.children.push({type:"text",value:" "}),ta.children.push(...Ao)}else tr.push(...Ao);const ao={type:"element",tagName:"li",properties:{id:Qe+"fn-"+Mr},children:Ce.wrap(tr,!0)};Ce.patch(xr,ao),Nn.push(ao)}if(Nn.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:Ut,properties:Kp(xa({},(0,js.ZP)(an)),{id:"footnote-label"}),children:[{type:"text",value:Ft}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:Ce.wrap(Nn,!0)},{type:"text",value:`
`}]}}var fl=ae(10528);function xu(Ce,Qe){const tt={type:"element",tagName:"blockquote",properties:{},children:Ce.wrap(Ce.all(Qe),!0)};return Ce.patch(Qe,tt),Ce.applyData(Qe,tt)}function Kl(Ce,Qe){const tt={type:"element",tagName:"br",properties:{},children:[]};return Ce.patch(Qe,tt),[Ce.applyData(Qe,tt),{type:"text",value:`
`}]}function sc(Ce,Qe){const tt=Qe.value?Qe.value+`
`:"",pt={};Qe.lang&&(pt.className=["language-"+Qe.lang]);let Ft={type:"element",tagName:"code",properties:pt,children:[{type:"text",value:tt}]};return Qe.meta&&(Ft.data={meta:Qe.meta}),Ce.patch(Qe,Ft),Ft=Ce.applyData(Qe,Ft),Ft={type:"element",tagName:"pre",properties:{},children:[Ft]},Ce.patch(Qe,Ft),Ft}function ts(Ce,Qe){const tt={type:"element",tagName:"del",properties:{},children:Ce.all(Qe)};return Ce.patch(Qe,tt),Ce.applyData(Qe,tt)}function lc(Ce,Qe){const tt={type:"element",tagName:"em",properties:{},children:Ce.all(Qe)};return Ce.patch(Qe,tt),Ce.applyData(Qe,tt)}function bc(Ce,Qe){const tt=typeof Ce.options.clobberPrefix=="string"?Ce.options.clobberPrefix:"user-content-",pt=String(Qe.identifier).toUpperCase(),Ft=Zl(pt.toLowerCase()),Ut=Ce.footnoteOrder.indexOf(pt);let an,Nn=Ce.footnoteCounts.get(pt);Nn===void 0?(Nn=0,Ce.footnoteOrder.push(pt),an=Ce.footnoteOrder.length):an=Ut+1,Nn+=1,Ce.footnoteCounts.set(pt,Nn);const Sr={type:"element",tagName:"a",properties:{href:"#"+tt+"fn-"+Ft,id:tt+"fnref-"+Ft+(Nn>1?"-"+Nn:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(an)}]};Ce.patch(Qe,Sr);const xr={type:"element",tagName:"sup",properties:{},children:[Sr]};return Ce.patch(Qe,xr),Ce.applyData(Qe,xr)}function wu(Ce,Qe){const tt={type:"element",tagName:"h"+Qe.depth,properties:{},children:Ce.all(Qe)};return Ce.patch(Qe,tt),Ce.applyData(Qe,tt)}function Yu(Ce,Qe){if(Ce.options.allowDangerousHtml){const tt={type:"raw",value:Qe.value};return Ce.patch(Qe,tt),Ce.applyData(Qe,tt)}}function ks(Ce,Qe){const tt=Qe.referenceType;let pt="]";if(tt==="collapsed"?pt+="[]":tt==="full"&&(pt+="["+(Qe.label||Qe.identifier)+"]"),Qe.type==="imageReference")return[{type:"text",value:"!["+Qe.alt+pt}];const Ft=Ce.all(Qe),Ut=Ft[0];Ut&&Ut.type==="text"?Ut.value="["+Ut.value:Ft.unshift({type:"text",value:"["});const an=Ft[Ft.length-1];return an&&an.type==="text"?an.value+=pt:Ft.push({type:"text",value:pt}),Ft}function Vs(Ce,Qe){const tt=String(Qe.identifier).toUpperCase(),pt=Ce.definitionById.get(tt);if(!pt)return ks(Ce,Qe);const Ft={src:Zl(pt.url||""),alt:Qe.alt};pt.title!==null&&pt.title!==void 0&&(Ft.title=pt.title);const Ut={type:"element",tagName:"img",properties:Ft,children:[]};return Ce.patch(Qe,Ut),Ce.applyData(Qe,Ut)}function gs(Ce,Qe){const tt={src:Zl(Qe.url)};Qe.alt!==null&&Qe.alt!==void 0&&(tt.alt=Qe.alt),Qe.title!==null&&Qe.title!==void 0&&(tt.title=Qe.title);const pt={type:"element",tagName:"img",properties:tt,children:[]};return Ce.patch(Qe,pt),Ce.applyData(Qe,pt)}function Is(Ce,Qe){const tt={type:"text",value:Qe.value.replace(/\r?\n|\r/g," ")};Ce.patch(Qe,tt);const pt={type:"element",tagName:"code",properties:{},children:[tt]};return Ce.patch(Qe,pt),Ce.applyData(Qe,pt)}function Bu(Ce,Qe){const tt=String(Qe.identifier).toUpperCase(),pt=Ce.definitionById.get(tt);if(!pt)return ks(Ce,Qe);const Ft={href:Zl(pt.url||"")};pt.title!==null&&pt.title!==void 0&&(Ft.title=pt.title);const Ut={type:"element",tagName:"a",properties:Ft,children:Ce.all(Qe)};return Ce.patch(Qe,Ut),Ce.applyData(Qe,Ut)}function Ws(Ce,Qe){const tt={href:Zl(Qe.url)};Qe.title!==null&&Qe.title!==void 0&&(tt.title=Qe.title);const pt={type:"element",tagName:"a",properties:tt,children:Ce.all(Qe)};return Ce.patch(Qe,pt),Ce.applyData(Qe,pt)}function Sa(Ce,Qe,tt){const pt=Ce.all(Qe),Ft=tt?pa(tt):na(Qe),Ut={},an=[];if(typeof Qe.checked=="boolean"){const tr=pt[0];let Zr;tr&&tr.type==="element"&&tr.tagName==="p"?Zr=tr:(Zr={type:"element",tagName:"p",properties:{},children:[]},pt.unshift(Zr)),Zr.children.length>0&&Zr.children.unshift({type:"text",value:" "}),Zr.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:Qe.checked,disabled:!0},children:[]}),Ut.className=["task-list-item"]}let Nn=-1;for(;++Nn<pt.length;){const tr=pt[Nn];(Ft||Nn!==0||tr.type!=="element"||tr.tagName!=="p")&&an.push({type:"text",value:`
`}),tr.type==="element"&&tr.tagName==="p"&&!Ft?an.push(...tr.children):an.push(tr)}const Sr=pt[pt.length-1];Sr&&(Ft||Sr.type!=="element"||Sr.tagName!=="p")&&an.push({type:"text",value:`
`});const xr={type:"element",tagName:"li",properties:Ut,children:an};return Ce.patch(Qe,xr),Ce.applyData(Qe,xr)}function pa(Ce){let Qe=!1;if(Ce.type==="list"){Qe=Ce.spread||!1;const tt=Ce.children;let pt=-1;for(;!Qe&&++pt<tt.length;)Qe=na(tt[pt])}return Qe}function na(Ce){const Qe=Ce.spread;return Qe==null?Ce.children.length>1:Qe}function Ya(Ce,Qe){const tt={},pt=Ce.all(Qe);let Ft=-1;for(typeof Qe.start=="number"&&Qe.start!==1&&(tt.start=Qe.start);++Ft<pt.length;){const an=pt[Ft];if(an.type==="element"&&an.tagName==="li"&&an.properties&&Array.isArray(an.properties.className)&&an.properties.className.includes("task-list-item")){tt.className=["contains-task-list"];break}}const Ut={type:"element",tagName:Qe.ordered?"ol":"ul",properties:tt,children:Ce.wrap(pt,!0)};return Ce.patch(Qe,Ut),Ce.applyData(Qe,Ut)}function Mi(Ce,Qe){const tt={type:"element",tagName:"p",properties:{},children:Ce.all(Qe)};return Ce.patch(Qe,tt),Ce.applyData(Qe,tt)}function ms(Ce,Qe){const tt={type:"root",children:Ce.wrap(Ce.all(Qe))};return Ce.patch(Qe,tt),Ce.applyData(Qe,tt)}function en(Ce,Qe){const tt={type:"element",tagName:"strong",properties:{},children:Ce.all(Qe)};return Ce.patch(Qe,tt),Ce.applyData(Qe,tt)}function Ar(Ce,Qe){const tt=Ce.all(Qe),pt=tt.shift(),Ft=[];if(pt){const an={type:"element",tagName:"thead",properties:{},children:Ce.wrap([pt],!0)};Ce.patch(Qe.children[0],an),Ft.push(an)}if(tt.length>0){const an={type:"element",tagName:"tbody",properties:{},children:Ce.wrap(tt,!0)},Nn=(0,be.Pk)(Qe.children[1]),Sr=(0,be.rb)(Qe.children[Qe.children.length-1]);Nn&&Sr&&(an.position={start:Nn,end:Sr}),Ft.push(an)}const Ut={type:"element",tagName:"table",properties:{},children:Ce.wrap(Ft,!0)};return Ce.patch(Qe,Ut),Ce.applyData(Qe,Ut)}function Ml(Ce,Qe,tt){const pt=tt?tt.children:void 0,Ut=(pt?pt.indexOf(Qe):1)===0?"th":"td",an=tt&&tt.type==="table"?tt.align:void 0,Nn=an?an.length:Qe.children.length;let Sr=-1;const xr=[];for(;++Sr<Nn;){const Zr=Qe.children[Sr],Mr={},lr=an?an[Sr]:void 0;lr&&(Mr.align=lr);let Ao={type:"element",tagName:Ut,properties:Mr,children:[]};Zr&&(Ao.children=Ce.all(Zr),Ce.patch(Zr,Ao),Ao=Ce.applyData(Zr,Ao)),xr.push(Ao)}const tr={type:"element",tagName:"tr",properties:{},children:Ce.wrap(xr,!0)};return Ce.patch(Qe,tr),Ce.applyData(Qe,tr)}function su(Ce,Qe){const tt={type:"element",tagName:"td",properties:{},children:Ce.all(Qe)};return Ce.patch(Qe,tt),Ce.applyData(Qe,tt)}const ns=9,rs=32;function Xs(Ce){const Qe=String(Ce),tt=/\r?\n|\r/g;let pt=tt.exec(Qe),Ft=0;const Ut=[];for(;pt;)Ut.push(Ol(Qe.slice(Ft,pt.index),Ft>0,!0),pt[0]),Ft=pt.index+pt[0].length,pt=tt.exec(Qe);return Ut.push(Ol(Qe.slice(Ft),Ft>0,!1)),Ut.join("")}function Ol(Ce,Qe,tt){let pt=0,Ft=Ce.length;if(Qe){let Ut=Ce.codePointAt(pt);for(;Ut===ns||Ut===rs;)pt++,Ut=Ce.codePointAt(pt)}if(tt){let Ut=Ce.codePointAt(Ft-1);for(;Ut===ns||Ut===rs;)Ft--,Ut=Ce.codePointAt(Ft-1)}return Ft>pt?Ce.slice(pt,Ft):""}function uc(Ce,Qe){const tt={type:"text",value:Xs(String(Qe.value))};return Ce.patch(Qe,tt),Ce.applyData(Qe,tt)}function ja(Ce,Qe){const tt={type:"element",tagName:"hr",properties:{},children:[]};return Ce.patch(Qe,tt),Ce.applyData(Qe,tt)}const To={blockquote:xu,break:Kl,code:sc,delete:ts,emphasis:lc,footnoteReference:bc,heading:wu,html:Yu,imageReference:Vs,image:gs,inlineCode:Is,linkReference:Bu,link:Ws,listItem:Sa,list:Ya,paragraph:Mi,root:ms,strong:en,table:Ar,tableCell:su,tableRow:Ml,text:uc,thematicBreak:ja,toml:Ps,yaml:Ps,definition:Ps,footnoteDefinition:Ps};function Ps(){}const Zs={}.hasOwnProperty,oa={};function Zo(Ce,Qe){const tt=Qe||oa,pt=new Map,Ft=new Map,Ut=new Map,an=xa(xa({},To),tt.handlers),Nn={all:xr,applyData:pl,definitionById:pt,footnoteById:Ft,footnoteCounts:Ut,footnoteOrder:[],handlers:an,one:Sr,options:tt,patch:Xa,wrap:wl};return(0,fl.Vn)(Ce,function(tr){if(tr.type==="definition"||tr.type==="footnoteDefinition"){const Zr=tr.type==="definition"?pt:Ft,Mr=String(tr.identifier).toUpperCase();Zr.has(Mr)||Zr.set(Mr,tr)}}),Nn;function Sr(tr,Zr){const Mr=tr.type,lr=Nn.handlers[Mr];if(Zs.call(Nn.handlers,Mr)&&lr)return lr(Nn,tr,Zr);if(Nn.options.passThrough&&Nn.options.passThrough.includes(Mr)){if("children"in tr){const Go=tr,{children:ta}=Go,ao=iE(Go,["children"]),Do=(0,js.ZP)(ao);return Do.children=Nn.all(tr),Do}return(0,js.ZP)(tr)}return(Nn.options.unknownHandler||Da)(Nn,tr,Zr)}function xr(tr){const Zr=[];if("children"in tr){const Mr=tr.children;let lr=-1;for(;++lr<Mr.length;){const Ao=Nn.one(Mr[lr],tr);if(Ao){if(lr&&Mr[lr-1].type==="break"&&(!Array.isArray(Ao)&&Ao.type==="text"&&(Ao.value=Ts(Ao.value)),!Array.isArray(Ao)&&Ao.type==="element")){const Go=Ao.children[0];Go&&Go.type==="text"&&(Go.value=Ts(Go.value))}Array.isArray(Ao)?Zr.push(...Ao):Zr.push(Ao)}}}return Zr}}function Xa(Ce,Qe){Ce.position&&(Qe.position=(0,be.FK)(Ce))}function pl(Ce,Qe){let tt=Qe;if(Ce&&Ce.data){const pt=Ce.data.hName,Ft=Ce.data.hChildren,Ut=Ce.data.hProperties;if(typeof pt=="string")if(tt.type==="element")tt.tagName=pt;else{const an="children"in tt?tt.children:[tt];tt={type:"element",tagName:pt,properties:{},children:an}}tt.type==="element"&&Ut&&Object.assign(tt.properties,(0,js.ZP)(Ut)),"children"in tt&&tt.children&&Ft!==null&&Ft!==void 0&&(tt.children=Ft)}return tt}function Da(Ce,Qe){const tt=Qe.data||{},pt="value"in Qe&&!(Zs.call(tt,"hProperties")||Zs.call(tt,"hChildren"))?{type:"text",value:Qe.value}:{type:"element",tagName:"div",properties:{},children:Ce.all(Qe)};return Ce.patch(Qe,pt),Ce.applyData(Qe,pt)}function wl(Ce,Qe){const tt=[];let pt=-1;for(Qe&&tt.push({type:"text",value:`
`});++pt<Ce.length;)pt&&tt.push({type:"text",value:`
`}),tt.push(Ce[pt]);return Qe&&Ce.length>0&&tt.push({type:"text",value:`
`}),tt}function Ts(Ce){let Qe=0,tt=Ce.charCodeAt(Qe);for(;tt===9||tt===32;)Qe++,tt=Ce.charCodeAt(Qe);return Ce.slice(Qe)}function _u(Ce,Qe){const tt=Zo(Ce,Qe),pt=tt.one(Ce,void 0),Ft=as(tt),Ut=Array.isArray(pt)?{type:"root",children:pt}:pt||{type:"root",children:[]};return Ft&&((0,Pe.ok)("children"in Ut),Ut.children.push({type:"text",value:`
`},Ft)),Ut}function ga(Ce,Qe){return Ce&&"run"in Ce?function(tt,pt){return sS(this,null,function*(){const Ft=_u(tt,xa({file:pt},Qe));yield Ce.run(Ft,pt)})}:function(tt,pt){return _u(tt,xa({file:pt},Ce||Qe))}}function Ds(Ce){if(Ce)throw Ce}var aa=ae(58847);function Pa(Ce){if(typeof Ce!="object"||Ce===null)return!1;const Qe=Object.getPrototypeOf(Ce);return(Qe===null||Qe===Object.prototype||Object.getPrototypeOf(Qe)===null)&&!(Symbol.toStringTag in Ce)&&!(Symbol.iterator in Ce)}function ka(){const Ce=[],Qe={run:tt,use:pt};return Qe;function tt(...Ft){let Ut=-1;const an=Ft.pop();if(typeof an!="function")throw new TypeError("Expected function as last argument, not "+an);Nn(null,...Ft);function Nn(Sr,...xr){const tr=Ce[++Ut];let Zr=-1;if(Sr){an(Sr);return}for(;++Zr<Ft.length;)(xr[Zr]===null||xr[Zr]===void 0)&&(xr[Zr]=Ft[Zr]);Ft=xr,tr?Va(tr,Nn)(...xr):an(null,...xr)}}function pt(Ft){if(typeof Ft!="function")throw new TypeError("Expected `middelware` to be a function, not "+Ft);return Ce.push(Ft),Qe}}function Va(Ce,Qe){let tt;return pt;function pt(...an){const Nn=Ce.length>an.length;let Sr;Nn&&an.push(Ft);try{Sr=Ce.apply(this,an)}catch(xr){const tr=xr;if(Nn&&tt)throw tr;return Ft(tr)}Nn||(Sr&&Sr.then&&typeof Sr.then=="function"?Sr.then(Ut,Ft):Sr instanceof Error?Ft(Sr):Ut(Sr))}function Ft(an,...Nn){tt||(tt=!0,Qe(an,...Nn))}function Ut(an){Ft(null,an)}}const ea={basename:cc,dirname:Eo,extname:dd,join:ra,sep:"/"};function cc(Ce,Qe){if(Qe!==void 0&&typeof Qe!="string")throw new TypeError('"ext" argument must be a string');lu(Ce);let tt=0,pt=-1,Ft=Ce.length,Ut;if(Qe===void 0||Qe.length===0||Qe.length>Ce.length){for(;Ft--;)if(Ce.codePointAt(Ft)===47){if(Ut){tt=Ft+1;break}}else pt<0&&(Ut=!0,pt=Ft+1);return pt<0?"":Ce.slice(tt,pt)}if(Qe===Ce)return"";let an=-1,Nn=Qe.length-1;for(;Ft--;)if(Ce.codePointAt(Ft)===47){if(Ut){tt=Ft+1;break}}else an<0&&(Ut=!0,an=Ft+1),Nn>-1&&(Ce.codePointAt(Ft)===Qe.codePointAt(Nn--)?Nn<0&&(pt=Ft):(Nn=-1,pt=an));return tt===pt?pt=an:pt<0&&(pt=Ce.length),Ce.slice(tt,pt)}function Eo(Ce){if(lu(Ce),Ce.length===0)return".";let Qe=-1,tt=Ce.length,pt;for(;--tt;)if(Ce.codePointAt(tt)===47){if(pt){Qe=tt;break}}else pt||(pt=!0);return Qe<0?Ce.codePointAt(0)===47?"/":".":Qe===1&&Ce.codePointAt(0)===47?"//":Ce.slice(0,Qe)}function dd(Ce){lu(Ce);let Qe=Ce.length,tt=-1,pt=0,Ft=-1,Ut=0,an;for(;Qe--;){const Nn=Ce.codePointAt(Qe);if(Nn===47){if(an){pt=Qe+1;break}continue}tt<0&&(an=!0,tt=Qe+1),Nn===46?Ft<0?Ft=Qe:Ut!==1&&(Ut=1):Ft>-1&&(Ut=-1)}return Ft<0||tt<0||Ut===0||Ut===1&&Ft===tt-1&&Ft===pt+1?"":Ce.slice(Ft,tt)}function ra(...Ce){let Qe=-1,tt;for(;++Qe<Ce.length;)lu(Ce[Qe]),Ce[Qe]&&(tt=tt===void 0?Ce[Qe]:tt+"/"+Ce[Qe]);return tt===void 0?".":Vc(tt)}function Vc(Ce){lu(Ce);const Qe=Ce.codePointAt(0)===47;let tt=Cu(Ce,!Qe);return tt.length===0&&!Qe&&(tt="."),tt.length>0&&Ce.codePointAt(Ce.length-1)===47&&(tt+="/"),Qe?"/"+tt:tt}function Cu(Ce,Qe){let tt="",pt=0,Ft=-1,Ut=0,an=-1,Nn,Sr;for(;++an<=Ce.length;){if(an<Ce.length)Nn=Ce.codePointAt(an);else{if(Nn===47)break;Nn=47}if(Nn===47){if(!(Ft===an-1||Ut===1))if(Ft!==an-1&&Ut===2){if(tt.length<2||pt!==2||tt.codePointAt(tt.length-1)!==46||tt.codePointAt(tt.length-2)!==46){if(tt.length>2){if(Sr=tt.lastIndexOf("/"),Sr!==tt.length-1){Sr<0?(tt="",pt=0):(tt=tt.slice(0,Sr),pt=tt.length-1-tt.lastIndexOf("/")),Ft=an,Ut=0;continue}}else if(tt.length>0){tt="",pt=0,Ft=an,Ut=0;continue}}Qe&&(tt=tt.length>0?tt+"/..":"..",pt=2)}else tt.length>0?tt+="/"+Ce.slice(Ft+1,an):tt=Ce.slice(Ft+1,an),pt=an-Ft-1;Ft=an,Ut=0}else Nn===46&&Ut>-1?Ut++:Ut=-1}return tt}function lu(Ce){if(typeof Ce!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(Ce))}const Wc={cwd:Ec};function Ec(){return"/"}function uu(Ce){return!!(Ce!==null&&typeof Ce=="object"&&"href"in Ce&&Ce.href&&"protocol"in Ce&&Ce.protocol&&Ce.auth===void 0)}function Yl(Ce){if(typeof Ce=="string")Ce=new URL(Ce);else if(!uu(Ce)){const Qe=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+Ce+"`");throw Qe.code="ERR_INVALID_ARG_TYPE",Qe}if(Ce.protocol!=="file:"){const Qe=new TypeError("The URL must be of scheme file");throw Qe.code="ERR_INVALID_URL_SCHEME",Qe}return sa(Ce)}function sa(Ce){if(Ce.hostname!==""){const pt=new TypeError('File URL host must be "localhost" or empty on darwin');throw pt.code="ERR_INVALID_FILE_URL_HOST",pt}const Qe=Ce.pathname;let tt=-1;for(;++tt<Qe.length;)if(Qe.codePointAt(tt)===37&&Qe.codePointAt(tt+1)===50){const pt=Qe.codePointAt(tt+2);if(pt===70||pt===102){const Ft=new TypeError("File URL path must not include encoded / characters");throw Ft.code="ERR_INVALID_FILE_URL_PATH",Ft}}return decodeURIComponent(Qe)}const Qs=["history","path","basename","stem","extname","dirname"];class Uu{constructor(Qe){let tt;Qe?uu(Qe)?tt={path:Qe}:typeof Qe=="string"||Vo(Qe)?tt={value:Qe}:tt=Qe:tt={},this.cwd="cwd"in tt?"":Wc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let pt=-1;for(;++pt<Qs.length;){const Ut=Qs[pt];Ut in tt&&tt[Ut]!==void 0&&tt[Ut]!==null&&(this[Ut]=Ut==="history"?[...tt[Ut]]:tt[Ut])}let Ft;for(Ft in tt)Qs.includes(Ft)||(this[Ft]=tt[Ft])}get basename(){return typeof this.path=="string"?ea.basename(this.path):void 0}set basename(Qe){Xl(Qe,"basename"),gl(Qe,"basename"),this.path=ea.join(this.dirname||"",Qe)}get dirname(){return typeof this.path=="string"?ea.dirname(this.path):void 0}set dirname(Qe){il(this.basename,"dirname"),this.path=ea.join(Qe||"",this.basename)}get extname(){return typeof this.path=="string"?ea.extname(this.path):void 0}set extname(Qe){if(gl(Qe,"extname"),il(this.dirname,"extname"),Qe){if(Qe.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(Qe.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ea.join(this.dirname,this.stem+(Qe||""))}get path(){return this.history[this.history.length-1]}set path(Qe){uu(Qe)&&(Qe=Yl(Qe)),Xl(Qe,"path"),this.path!==Qe&&this.history.push(Qe)}get stem(){return typeof this.path=="string"?ea.basename(this.path,this.extname):void 0}set stem(Qe){Xl(Qe,"stem"),gl(Qe,"stem"),this.path=ea.join(this.dirname||"",Qe+(this.extname||""))}fail(Qe,tt,pt){const Ft=this.message(Qe,tt,pt);throw Ft.fatal=!0,Ft}info(Qe,tt,pt){const Ft=this.message(Qe,tt,pt);return Ft.fatal=void 0,Ft}message(Qe,tt,pt){const Ft=new Je(Qe,tt,pt);return this.path&&(Ft.name=this.path+":"+Ft.name,Ft.file=this.path),Ft.fatal=!1,this.messages.push(Ft),Ft}toString(Qe){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(Qe||void 0).decode(this.value)}}function gl(Ce,Qe){if(Ce&&Ce.includes(ea.sep))throw new Error("`"+Qe+"` cannot be a path: did not expect `"+ea.sep+"`")}function Xl(Ce,Qe){if(!Ce)throw new Error("`"+Qe+"` cannot be empty")}function il(Ce,Qe){if(!Ce)throw new Error("Setting `"+Qe+"` requires `path` to be set too")}function Vo(Ce){return!!(Ce&&typeof Ce=="object"&&"byteLength"in Ce&&"byteOffset"in Ce)}const ha=function(Ce){const pt=this.constructor.prototype,Ft=pt[Ce],Ut=function(){return Ft.apply(Ut,arguments)};return Object.setPrototypeOf(Ut,pt),Ut},Ha={}.hasOwnProperty;class As extends ha{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=ka()}copy(){const Qe=new As;let tt=-1;for(;++tt<this.attachers.length;){const pt=this.attachers[tt];Qe.use(...pt)}return Qe.data(aa(!0,{},this.namespace)),Qe}data(Qe,tt){return typeof Qe=="string"?arguments.length===2?(Bl("data",this.frozen),this.namespace[Qe]=tt,this):Ha.call(this.namespace,Qe)&&this.namespace[Qe]||void 0:Qe?(Bl("data",this.frozen),this.namespace=Qe,this):this.namespace}freeze(){if(this.frozen)return this;const Qe=this;for(;++this.freezeIndex<this.attachers.length;){const[tt,...pt]=this.attachers[this.freezeIndex];if(pt[0]===!1)continue;pt[0]===!0&&(pt[0]=void 0);const Ft=tt.call(Qe,...pt);typeof Ft=="function"&&this.transformers.use(Ft)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(Qe){this.freeze();const tt=xd(Qe),pt=this.parser||this.Parser;return Fl("parse",pt),pt(String(tt),tt)}process(Qe,tt){const pt=this;return this.freeze(),Fl("process",this.parser||this.Parser),Nl("process",this.compiler||this.Compiler),tt?Ft(void 0,tt):new Promise(Ft);function Ft(Ut,an){const Nn=xd(Qe),Sr=pt.parse(Nn);pt.run(Sr,Nn,function(tr,Zr,Mr){if(tr||!Zr||!Mr)return xr(tr);const lr=Zr,Ao=pt.stringify(lr,Mr);jd(Ao)?Mr.value=Ao:Mr.result=Ao,xr(tr,Mr)});function xr(tr,Zr){tr||!Zr?an(tr):Ut?Ut(Zr):((0,Pe.ok)(tt,"`done` is defined if `resolve` is not"),tt(void 0,Zr))}}}processSync(Qe){let tt=!1,pt;return this.freeze(),Fl("processSync",this.parser||this.Parser),Nl("processSync",this.compiler||this.Compiler),this.process(Qe,Ft),cu("processSync","process",tt),(0,Pe.ok)(pt,"we either bailed on an error or have a tree"),pt;function Ft(Ut,an){tt=!0,Ds(Ut),pt=an}}run(Qe,tt,pt){Ll(Qe),this.freeze();const Ft=this.transformers;return!pt&&typeof tt=="function"&&(pt=tt,tt=void 0),pt?Ut(void 0,pt):new Promise(Ut);function Ut(an,Nn){(0,Pe.ok)(typeof tt!="function","`file` can\u2019t be a `done` anymore, we checked");const Sr=xd(tt);Ft.run(Qe,Sr,xr);function xr(tr,Zr,Mr){const lr=Zr||Qe;tr?Nn(tr):an?an(lr):((0,Pe.ok)(pt,"`done` is defined if `resolve` is not"),pt(void 0,lr,Mr))}}}runSync(Qe,tt){let pt=!1,Ft;return this.run(Qe,tt,Ut),cu("runSync","run",pt),(0,Pe.ok)(Ft,"we either bailed on an error or have a tree"),Ft;function Ut(an,Nn){Ds(an),Ft=Nn,pt=!0}}stringify(Qe,tt){this.freeze();const pt=xd(tt),Ft=this.compiler||this.Compiler;return Nl("stringify",Ft),Ll(Qe),Ft(Qe,pt)}use(Qe,...tt){const pt=this.attachers,Ft=this.namespace;if(Bl("use",this.frozen),Qe!=null)if(typeof Qe=="function")Sr(Qe,tt);else if(typeof Qe=="object")Array.isArray(Qe)?Nn(Qe):an(Qe);else throw new TypeError("Expected usable value, not `"+Qe+"`");return this;function Ut(xr){if(typeof xr=="function")Sr(xr,[]);else if(typeof xr=="object")if(Array.isArray(xr)){const[tr,...Zr]=xr;Sr(tr,Zr)}else an(xr);else throw new TypeError("Expected usable value, not `"+xr+"`")}function an(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");Nn(xr.plugins),xr.settings&&(Ft.settings=aa(!0,Ft.settings,xr.settings))}function Nn(xr){let tr=-1;if(xr!=null)if(Array.isArray(xr))for(;++tr<xr.length;){const Zr=xr[tr];Ut(Zr)}else throw new TypeError("Expected a list of plugins, not `"+xr+"`")}function Sr(xr,tr){let Zr=-1,Mr=-1;for(;++Zr<pt.length;)if(pt[Zr][0]===xr){Mr=Zr;break}if(Mr===-1)pt.push([xr,...tr]);else if(tr.length>0){let[lr,...Ao]=tr;const Go=pt[Mr][1];Pa(Go)&&Pa(lr)&&(lr=aa(!0,Go,lr)),pt[Mr]=[xr,lr,...Ao]}}}}const vs=new As().freeze();function Fl(Ce,Qe){if(typeof Qe!="function")throw new TypeError("Cannot `"+Ce+"` without `parser`")}function Nl(Ce,Qe){if(typeof Qe!="function")throw new TypeError("Cannot `"+Ce+"` without `compiler`")}function Bl(Ce,Qe){if(Qe)throw new Error("Cannot call `"+Ce+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ll(Ce){if(!Pa(Ce)||typeof Ce.type!="string")throw new TypeError("Expected node, got `"+Ce+"`")}function cu(Ce,Qe,tt){if(!tt)throw new Error("`"+Ce+"` finished async. Use `"+Qe+"` instead")}function xd(Ce){return hh(Ce)?Ce:new Uu(Ce)}function hh(Ce){return!!(Ce&&typeof Ce=="object"&&"message"in Ce&&"messages"in Ce)}function jd(Ce){return typeof Ce=="string"||fh(Ce)}function fh(Ce){return!!(Ce&&typeof Ce=="object"&&"byteLength"in Ce&&"byteOffset"in Ce)}const ys="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",dc=[],Na={allowDangerousHtml:!0},Hs=/^(https?|ircs?|mailto|xmpp)$/i,Js=[{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 Ks(Ce){const Qe=du(Ce),tt=Ic(Ce);return Zc(Qe.runSync(Qe.parse(tt),tt),Ce)}function xc(Ce){return sS(this,null,function*(){const Qe=du(Ce),tt=Ic(Ce),pt=yield Qe.run(Qe.parse(tt),tt);return Zc(pt,Ce)})}function ol(Ce){const Qe=du(Ce),[tt,pt]=useState(void 0),[Ft,Ut]=useState(void 0);if(useEffect(function(){const an=Ic(Ce);Qe.run(Qe.parse(an),an,function(Nn,Sr){pt(Nn),Ut(Sr)})},[Ce.children,Ce.rehypePlugins,Ce.remarkPlugins,Ce.remarkRehypeOptions]),tt)throw tt;return Ft?Zc(Ft,Ce):createElement(Fragment)}function du(Ce){const Qe=Ce.rehypePlugins||dc,tt=Ce.remarkPlugins||dc,pt=Ce.remarkRehypeOptions?xa(xa({},Ce.remarkRehypeOptions),Na):Na;return vs().use(dl).use(tt).use(ga,pt).use(Qe)}function Ic(Ce){const Qe=Ce.children||"",tt=new Uu;return typeof Qe=="string"?tt.value=Qe:(0,Pe.t1)("Unexpected value `"+Qe+"` for `children` prop, expected `string`"),tt}function Zc(Ce,Qe){const tt=Qe.allowedElements,pt=Qe.allowElement,Ft=Qe.components,Ut=Qe.disallowedElements,an=Qe.skipHtml,Nn=Qe.unwrapDisallowed,Sr=Qe.urlTransform||kl;for(const tr of Js)Object.hasOwn(Qe,tr.from)&&(0,Pe.t1)("Unexpected `"+tr.from+"` prop, "+(tr.to?"use `"+tr.to+"` instead":"remove it")+" (see <"+ys+"#"+tr.id+"> for more info)");return tt&&Ut&&(0,Pe.t1)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),Qe.className&&(Ce={type:"element",tagName:"div",properties:{className:Qe.className},children:Ce.type==="root"?Ce.children:[Ce]}),(0,fl.Vn)(Ce,xr),Ht(Ce,{Fragment:Be.Fragment,components:Ft,ignoreInvalidStyle:!0,jsx:Be.jsx,jsxs:Be.jsxs,passKeys:!0,passNode:!0});function xr(tr,Zr,Mr){if(tr.type==="raw"&&Mr&&typeof Zr=="number")return an?Mr.children.splice(Zr,1):Mr.children[Zr]={type:"text",value:tr.value},Zr;if(tr.type==="element"){let lr;for(lr in st)if(Object.hasOwn(st,lr)&&Object.hasOwn(tr.properties,lr)){const Ao=tr.properties[lr],Go=st[lr];(Go===null||Go.includes(tr.tagName))&&(tr.properties[lr]=Sr(String(Ao||""),lr,tr))}}if(tr.type==="element"){let lr=tt?!tt.includes(tr.tagName):Ut?Ut.includes(tr.tagName):!1;if(!lr&&pt&&typeof Zr=="number"&&(lr=!pt(tr,Zr,Mr)),lr&&Mr&&typeof Zr=="number")return Nn&&tr.children?Mr.children.splice(Zr,1,...tr.children):Mr.children.splice(Zr,1),Zr}}}function kl(Ce){const Qe=Ce.indexOf(":"),tt=Ce.indexOf("?"),pt=Ce.indexOf("#"),Ft=Ce.indexOf("/");return Qe===-1||Ft!==-1&&Qe>Ft||tt!==-1&&Qe>tt||pt!==-1&&Qe>pt||Hs.test(Ce.slice(0,Qe))?Ce:""}},3310:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return hd}});var oe={};ae.r(oe),ae.d(oe,{boolean:function(){return Je},booleanish:function(){return ot},commaOrSpaceSeparated:function(){return Nt},commaSeparated:function(){return wt},number:function(){return it},overloadedBoolean:function(){return mt},spaceSeparated:function(){return vt}});var Pe=ae(90302),Ie=ae(87342),ke=ae(81994),Ve=ae(14470),Te=ae(86825);function Ge(ce){const ge=String(ce),et=[];return{toOffset:Er,toPoint:qt};function qt(li){if(typeof li=="number"&&li>-1&&li<=ge.length){let Pi=0;for(;;){let Lo=et[Pi];if(Lo===void 0){const Yo=lt(ge,et[Pi-1]);Lo=Yo===-1?ge.length+1:Yo+1,et[Pi]=Lo}if(Lo>li)return{line:Pi+1,column:li-(Pi>0?et[Pi-1]:0)+1,offset:li};Pi++}}}function Er(li){if(li&&typeof li.line=="number"&&typeof li.column=="number"&&!Number.isNaN(li.line)&&!Number.isNaN(li.column)){for(;et.length<li.line;){const Lo=et[et.length-1],Yo=lt(ge,Lo),ii=Yo===-1?ge.length+1:Yo+1;if(Lo===ii)break;et.push(ii)}const Pi=(li.line>1?et[li.line-2]:0)+li.column-1;if(Pi<et[li.line-1])return Pi}}}function lt(ce,ge){const et=ce.indexOf("\r",ge),qt=ce.indexOf(`
`,ge);return qt===-1?et:et===-1||et+1===qt?qt:et<qt?et:qt}var Ke=ae(43309);const He={}.hasOwnProperty,St=Object.prototype;function $e(ce,ge){const et=ge||{};return It({file:et.file||void 0,location:!1,schema:et.space==="svg"?Ve.YP:Ve.dy,verbose:et.verbose||!1},ce)}function It(ce,ge){let et;switch(ge.nodeName){case"#comment":{const qt=ge;return et={type:"comment",value:qt.data},ee(ce,qt,et),et}case"#document":case"#document-fragment":{const qt=ge,Er="mode"in qt?qt.mode==="quirks"||qt.mode==="limited-quirks":!1;if(et={type:"root",children:Fe(ce,ge.childNodes),data:{quirksMode:Er}},ce.file&&ce.location){const li=String(ce.file),Pi=Ge(li),Lo=Pi.toPoint(0),Yo=Pi.toPoint(li.length);(0,Ie.ok)(Lo,"expected `start`"),(0,Ie.ok)(Yo,"expected `end`"),et.position={start:Lo,end:Yo}}return et}case"#documentType":{const qt=ge;return et={type:"doctype"},ee(ce,qt,et),et}case"#text":{const qt=ge;return et={type:"text",value:qt.value},ee(ce,qt,et),et}default:return et=te(ce,ge),et}}function Fe(ce,ge){let et=-1;const qt=[];for(;++et<ge.length;){const Er=It(ce,ge[et]);qt.push(Er)}return qt}function te(ce,ge){const et=ce.schema;ce.schema=ge.namespaceURI===Ke.t.svg?Ve.YP:Ve.dy;let qt=-1;const Er={};for(;++qt<ge.attrs.length;){const Lo=ge.attrs[qt],Yo=(Lo.prefix?Lo.prefix+":":"")+Lo.name;He.call(St,Yo)||(Er[Yo]=Lo.value)}const Pi=(ce.schema.space==="svg"?ke.s:ke.h)(ge.tagName,Er,Fe(ce,ge.childNodes));if(ee(ce,ge,Pi),Pi.tagName==="template"){const Lo=ge,Yo=Lo.sourceCodeLocation,ii=Yo&&Yo.startTag&&ue(Yo.startTag),no=Yo&&Yo.endTag&&ue(Yo.endTag),Wo=It(ce,Lo.content);ii&&no&&ce.file&&(Wo.position={start:ii.end,end:no.start}),Pi.content=Wo}return ce.schema=et,Pi}function ee(ce,ge,et){if("sourceCodeLocation"in ge&&ge.sourceCodeLocation&&ce.file){const qt=he(ce,et,ge.sourceCodeLocation);qt&&(ce.location=!0,et.position=qt)}}function he(ce,ge,et){const qt=ue(et);if(ge.type==="element"){const Er=ge.children[ge.children.length-1];if(qt&&!et.endTag&&Er&&Er.position&&Er.position.end&&(qt.end=Object.assign({},Er.position.end)),ce.verbose){const li={};let Pi;if(et.attrs)for(Pi in et.attrs)He.call(et.attrs,Pi)&&(li[(0,Te.s)(ce.schema,Pi).property]=ue(et.attrs[Pi]));(0,Ie.ok)(et.startTag,"a start tag should exist");const Lo=ue(et.startTag),Yo=et.endTag?ue(et.endTag):void 0,ii={opening:Lo};Yo&&(ii.closing=Yo),ii.properties=li,ge.data={position:ii}}}return qt}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,qt){this.property=ge,this.normal=et,qt&&(this.space=qt)}}be.prototype.property={},be.prototype.normal={},be.prototype.space=null;function Ae(ce,ge){const et={},qt={};let Er=-1;for(;++Er<ce.length;)Object.assign(et,ce[Er].property),Object.assign(qt,ce[Er].normal);return new be(et,qt,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 nt=0;const Je=Ht(),ot=Ht(),mt=Ht(),it=Ht(),vt=Ht(),wt=Ht(),Nt=Ht();function Ht(){return aS(2,++nt)}const Qt=Object.keys(oe);class Yt extends Ye{constructor(ge,et,qt,Er){let li=-1;if(super(ge,et),yn(this,"space",Er),typeof qt=="number")for(;++li<Qt.length;){const Pi=Qt[li];yn(this,Qt[li],(qt&oe[Pi])===oe[Pi])}}}Yt.prototype.defined=!0;function yn(ce,ge,et){et&&(ce[ge]=et)}const bt={}.hasOwnProperty;function ft(ce){const ge={},et={};let qt;for(qt in ce.properties)if(bt.call(ce.properties,qt)){const Er=ce.properties[qt],li=new Yt(qt,ce.transform(ce.attributes||{},qt),Er,ce.space);ce.mustUseProperty&&ce.mustUseProperty.includes(qt)&&(li.mustUseProperty=!0),ge[qt]=li,et[De(qt)]=qt,et[De(li.attribute)]=qt}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}}),Jt=ft({space:"xml",transform(ce,ge){return"xml:"+ge.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function fn(ce,ge){return ge in ce?ce[ge]:ge}function kt(ce,ge){return fn(ce,ge.toLowerCase())}const bn=ft({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:kt,properties:{xmlns:null,xmlnsXLink:null}}),An=ft({transform(ce,ge){return ge==="role"?ge:"aria-"+ge.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:ot,ariaAutoComplete:null,ariaBusy:ot,ariaChecked:ot,ariaColCount:it,ariaColIndex:it,ariaColSpan:it,ariaControls:vt,ariaCurrent:null,ariaDescribedBy:vt,ariaDetails:null,ariaDisabled:ot,ariaDropEffect:vt,ariaErrorMessage:null,ariaExpanded:ot,ariaFlowTo:vt,ariaGrabbed:ot,ariaHasPopup:null,ariaHidden:ot,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:vt,ariaLevel:it,ariaLive:null,ariaModal:ot,ariaMultiLine:ot,ariaMultiSelectable:ot,ariaOrientation:null,ariaOwns:vt,ariaPlaceholder:null,ariaPosInSet:it,ariaPressed:ot,ariaReadOnly:ot,ariaRelevant:null,ariaRequired:ot,ariaRoleDescription:vt,ariaRowCount:it,ariaRowIndex:it,ariaRowSpan:it,ariaSelected:ot,ariaSetSize:it,ariaSort:null,ariaValueMax:it,ariaValueMin:it,ariaValueNow:it,ariaValueText:null,role:null}}),Yn=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:wt,acceptCharset:vt,accessKey:vt,action:null,allow:null,allowFullScreen:Je,allowPaymentRequest:Je,allowUserMedia:Je,alt:null,as:null,async:Je,autoCapitalize:null,autoComplete:vt,autoFocus:Je,autoPlay:Je,blocking:vt,capture:null,charSet:null,checked:Je,cite:null,className:vt,cols:it,colSpan:null,content:null,contentEditable:ot,controls:Je,controlsList:vt,coords:it|wt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Je,defer:Je,dir:null,dirName:null,disabled:Je,download:mt,draggable:ot,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Je,formTarget:null,headers:vt,height:it,hidden:Je,high:it,href:null,hrefLang:null,htmlFor:vt,httpEquiv:vt,id:null,imageSizes:null,imageSrcSet:null,inert:Je,inputMode:null,integrity:null,is:null,isMap:Je,itemId:null,itemProp:vt,itemRef:vt,itemScope:Je,itemType:vt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Je,low:it,manifest:null,max:null,maxLength:it,media:null,method:null,min:null,minLength:it,multiple:Je,muted:Je,name:null,nonce:null,noModule:Je,noValidate:Je,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:Je,optimum:it,pattern:null,ping:vt,placeholder:null,playsInline:Je,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Je,referrerPolicy:null,rel:vt,required:Je,reversed:Je,rows:it,rowSpan:it,sandbox:vt,scope:null,scoped:Je,seamless:Je,selected:Je,shadowRootClonable:Je,shadowRootDelegatesFocus:Je,shadowRootMode:null,shape:null,size:it,sizes:null,slot:null,span:it,spellCheck:ot,src:null,srcDoc:null,srcLang:null,srcSet:null,start:it,step:null,style:null,tabIndex:it,target:null,title:null,translate:null,type:null,typeMustMatch:Je,useMap:null,value:ot,width:it,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:vt,axis:null,background:null,bgColor:null,border:it,borderColor:null,bottomMargin:it,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Je,declare:Je,event:null,face:null,frame:null,frameBorder:null,hSpace:it,leftMargin:it,link:null,longDesc:null,lowSrc:null,marginHeight:it,marginWidth:it,noResize:Je,noHref:Je,noShade:Je,noWrap:Je,object:null,profile:null,prompt:null,rev:null,rightMargin:it,rules:null,scheme:null,scrolling:ot,standby:null,summary:null,text:null,topMargin:it,valueType:null,version:null,vAlign:null,vLink:null,vSpace:it,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Je,disableRemotePlayback:Je,prefix:null,property:null,results:it,security:null,unselectable:null}}),Vt=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:fn,properties:{about:Nt,accentHeight:it,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:it,amplitude:it,arabicForm:null,ascent:it,attributeName:null,attributeType:null,azimuth:it,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:it,by:null,calcMode:null,capHeight:it,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:it,diffuseConstant:it,direction:null,display:null,dur:null,divisor:it,dominantBaseline:null,download:Je,dx:null,dy:null,edgeMode:null,editable:null,elevation:it,enableBackground:null,end:null,event:null,exponent:it,externalResourcesRequired:null,fill:null,fillOpacity:it,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:wt,g2:wt,glyphName:wt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:it,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:it,horizOriginX:it,horizOriginY:it,id:null,ideographic:it,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:it,k:it,k1:it,k2:it,k3:it,k4:it,kernelMatrix:Nt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:it,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:it,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:it,overlineThickness:it,paintOrder:null,panose1:null,path:null,pathLength:it,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:vt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:it,pointsAtY:it,pointsAtZ:it,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Nt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Nt,rev:Nt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Nt,requiredFeatures:Nt,requiredFonts:Nt,requiredFormats:Nt,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:it,specularExponent:it,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:it,strikethroughThickness:it,string:null,stroke:null,strokeDashArray:Nt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:it,strokeOpacity:it,strokeWidth:null,style:null,surfaceScale:it,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Nt,tabIndex:it,tableValues:null,target:null,targetX:it,targetY:it,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Nt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:it,underlineThickness:it,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:it,values:null,vAlphabetic:it,vMathematical:it,vectorEffect:null,vHanging:it,vIdeographic:it,version:null,vertAdvY:it,vertOriginX:it,vertOriginY:it,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:it,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Bn=Ae([Jt,ct,bn,An,Yn],"html"),Mt=Ae([Jt,ct,bn,An,Vt],"svg"),Hn=/^data[-\w.:]+$/i,ur=/-[a-z]/g,at=/[A-Z]/g;function _e(ce,ge){const et=De(ge);let qt=ge,Er=Ye;if(et in ce.normal)return ce.property[ce.normal[et]];if(et.length>4&&et.slice(0,4)==="data"&&Hn.test(ge)){if(ge.charAt(4)==="-"){const li=ge.slice(5).replace(ur,Xe);qt="data"+li.charAt(0).toUpperCase()+li.slice(1)}else{const li=ge.slice(4);if(!ur.test(li)){let Pi=li.replace(at,Re);Pi.charAt(0)!=="-"&&(Pi="-"+Pi),ge="data"+Pi}}Er=Yt}return new Er(qt,ge)}function Re(ce){return"-"+ce.toLowerCase()}function Xe(ce){return ce.charAt(1).toUpperCase()}var st=ae(71523);const Be={}.hasOwnProperty;function Et(ce,ge){const et=ge||{};function qt(Er,...li){let Pi=qt.invalid;const Lo=qt.handlers;if(Er&&Be.call(Er,ce)){const Yo=String(Er[ce]);Pi=Be.call(Lo,Yo)?Lo[Yo]:qt.unknown}if(Pi)return Pi.call(this,Er,...li)}return qt.handlers=et.handlers||{},qt.invalid=et.invalid,qt.unknown=et.unknown,qt}const En={},sn={}.hasOwnProperty,Mn=Et("type",{handlers:{root:_t,element:Ot,text:Sn,comment:gn,doctype:dn}});function Dt(ce,ge){const qt=(ge||En).space;return Mn(ce,qt==="svg"?Mt:Bn)}function _t(ce,ge){const et={nodeName:"#document",mode:(ce.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return et.childNodes=Zt(ce.children,et,ge),tn(ce,et),et}function jt(ce,ge){const et={nodeName:"#document-fragment",childNodes:[]};return et.childNodes=Zt(ce.children,et,ge),tn(ce,et),et}function dn(ce){const ge={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return tn(ce,ge),ge}function Sn(ce){const ge={nodeName:"#text",value:ce.value,parentNode:null};return tn(ce,ge),ge}function gn(ce){const ge={nodeName:"#comment",data:ce.value,parentNode:null};return tn(ce,ge),ge}function Ot(ce,ge){const et=ge;let qt=et;ce.type==="element"&&ce.tagName.toLowerCase()==="svg"&&et.space==="html"&&(qt=Mt);const Er=[];let li;if(ce.properties){for(li in ce.properties)if(li!=="children"&&sn.call(ce.properties,li)){const Yo=Pn(qt,li,ce.properties[li]);Yo&&Er.push(Yo)}}const Pi=qt.space;(0,Ie.ok)(Pi);const Lo={nodeName:ce.tagName,tagName:ce.tagName,attrs:Er,namespaceURI:Ke.t[Pi],childNodes:[],parentNode:null};return Lo.childNodes=Zt(ce.children,Lo,qt),tn(ce,Lo),ce.tagName==="template"&&ce.content&&(Lo.content=jt(ce.content,qt)),Lo}function Pn(ce,ge,et){const qt=_e(ce,ge);if(et===!1||et===null||et===void 0||typeof et=="number"&&Number.isNaN(et)||!et&&qt.boolean)return;Array.isArray(et)&&(et=qt.commaSeparated?(0,me.P)(et):(0,st.P)(et));const Er={name:qt.attribute,value:et===!0?"":String(et)};if(qt.space&&qt.space!=="html"&&qt.space!=="svg"){const li=Er.name.indexOf(":");li<0?Er.prefix="":(Er.name=Er.name.slice(li+1),Er.prefix=qt.attribute.slice(0,li)),Er.namespace=Ke.t[qt.space]}return Er}function Zt(ce,ge,et){let qt=-1;const Er=[];if(ce)for(;++qt<ce.length;){const li=Mn(ce[qt],et);li.parentNode=ge,Er.push(li)}return Er}function tn(ce,ge){const et=ce.position;et&&et.start&&et.end&&((0,Ie.ok)(typeof et.start.offset=="number"),(0,Ie.ok)(typeof et.end.offset=="number"),ge.sourceCodeLocation={startLine:et.start.line,startCol:et.start.column,startOffset:et.start.offset,endLine:et.end.line,endCol:et.end.column,endOffset:et.end.offset})}const vn=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],$n=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]),mn="\uFFFD";var gt;(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"})(gt||(gt={}));const Xn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function ir(ce){return ce>=55296&&ce<=57343}function nn(ce){return ce>=56320&&ce<=57343}function vr(ce,ge){return(ce-55296)*1024+9216+ge}function $r(ce){return ce!==32&&ce!==10&&ce!==13&&ce!==9&&ce!==12&&ce>=1&&ce<=31||ce>=127&&ce<=159}function Lr(ce){return ce>=64976&&ce<=65007||$n.has(ce)}var Rn;(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"})(Rn||(Rn={}));const ei=65536;class Jr{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=ei,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:qt,col:Er,offset:li}=this,Pi=Er+et,Lo=li+et;return{code:ge,startLine:qt,endLine:qt,startCol:Pi,endCol:Pi,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(nn(et))return this.pos++,this._addGap(),vr(ge,et)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,gt.EOF;return this._err(Rn.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 qt=0;qt<ge.length;qt++)if((this.html.charCodeAt(this.pos+qt)|32)!==ge.charCodeAt(qt))return!1;return!0}peek(ge){const et=this.pos+ge;if(et>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,gt.EOF;const qt=this.html.charCodeAt(et);return qt===gt.CARRIAGE_RETURN?gt.LINE_FEED:qt}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,gt.EOF;let ge=this.html.charCodeAt(this.pos);return ge===gt.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,gt.LINE_FEED):ge===gt.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===gt.LINE_FEED||ge===gt.CARRIAGE_RETURN||ge>159&&ge<64976||this._checkForProblematicCharacters(ge),ge)}_checkForProblematicCharacters(ge){$r(ge)?this._err(Rn.controlCharacterInInputStream):Lr(ge)&&this._err(Rn.noncharacterInInputStream)}retreat(ge){for(this.pos-=ge;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var nr;(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"})(nr||(nr={}));function Wr(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 oi=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(ce=>ce.charCodeAt(0))),Oe=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(ce=>ce.charCodeAt(0)));var cr;const Cr=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]]),or=(cr=String.fromCodePoint)!==null&&cr!==void 0?cr: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 kr(ce){var ge;return ce>=55296&&ce<=57343||ce>1114111?65533:(ge=Cr.get(ce))!==null&&ge!==void 0?ge:ce}function Fr(ce){return or(kr(ce))}var Or;(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"})(Or||(Or={}));const mi=32;var Ti;(function(ce){ce[ce.VALUE_LENGTH=49152]="VALUE_LENGTH",ce[ce.BRANCH_LENGTH=16256]="BRANCH_LENGTH",ce[ce.JUMP_TABLE=127]="JUMP_TABLE"})(Ti||(Ti={}));function hn(ce){return ce>=Or.ZERO&&ce<=Or.NINE}function Cn(ce){return ce>=Or.UPPER_A&&ce<=Or.UPPER_F||ce>=Or.LOWER_A&&ce<=Or.LOWER_F}function pn(ce){return ce>=Or.UPPER_A&&ce<=Or.UPPER_Z||ce>=Or.LOWER_A&&ce<=Or.LOWER_Z||hn(ce)}function Kr(ce){return ce===Or.EQUALS||pn(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 Vr;(function(ce){ce[ce.Legacy=0]="Legacy",ce[ce.Strict=1]="Strict",ce[ce.Attribute=2]="Attribute"})(Vr||(Vr={}));class dr{constructor(ge,et,qt){this.decodeTree=ge,this.emitCodePoint=et,this.errors=qt,this.state=Yr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Vr.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)===Or.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)|mi)===Or.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,qt,Er){if(et!==qt){const li=qt-et;this.result=this.result*Math.pow(Er,li)+Number.parseInt(ge.substr(et,li),Er),this.consumed+=li}}stateNumericHex(ge,et){const qt=et;for(;et<ge.length;){const Er=ge.charCodeAt(et);if(hn(Er)||Cn(Er))et+=1;else return this.addToNumericResult(ge,qt,et,16),this.emitNumericEntity(Er,3)}return this.addToNumericResult(ge,qt,et,16),-1}stateNumericDecimal(ge,et){const qt=et;for(;et<ge.length;){const Er=ge.charCodeAt(et);if(hn(Er))et+=1;else return this.addToNumericResult(ge,qt,et,10),this.emitNumericEntity(Er,2)}return this.addToNumericResult(ge,qt,et,10),-1}emitNumericEntity(ge,et){var qt;if(this.consumed<=et)return(qt=this.errors)===null||qt===void 0||qt.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(ge===Or.SEMI)this.consumed+=1;else if(this.decodeMode===Vr.Strict)return 0;return this.emitCodePoint(kr(this.result),this.consumed),this.errors&&(ge!==Or.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(ge,et){const{decodeTree:qt}=this;let Er=qt[this.treeIndex],li=(Er&Ti.VALUE_LENGTH)>>14;for(;et<ge.length;et++,this.excess++){const Pi=ge.charCodeAt(et);if(this.treeIndex=bi(qt,Er,this.treeIndex+Math.max(1,li),Pi),this.treeIndex<0)return this.result===0||this.decodeMode===Vr.Attribute&&(li===0||Kr(Pi))?0:this.emitNotTerminatedNamedEntity();if(Er=qt[this.treeIndex],li=(Er&Ti.VALUE_LENGTH)>>14,li!==0){if(Pi===Or.SEMI)return this.emitNamedEntityData(this.treeIndex,li,this.consumed+this.excess);this.decodeMode!==Vr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var ge;const{result:et,decodeTree:qt}=this,Er=(qt[et]&Ti.VALUE_LENGTH)>>14;return this.emitNamedEntityData(et,Er,this.consumed),(ge=this.errors)===null||ge===void 0||ge.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(ge,et,qt){const{decodeTree:Er}=this;return this.emitCodePoint(et===1?Er[ge]&~Ti.VALUE_LENGTH:Er[ge+1],qt),et===3&&this.emitCodePoint(Er[ge+2],qt),qt}end(){var ge;switch(this.state){case Yr.NamedEntity:return this.result!==0&&(this.decodeMode!==Vr.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 Gr(ce){let ge="";const et=new dr(ce,qt=>ge+=fromCodePoint(qt));return function(Er,li){let Pi=0,Lo=0;for(;(Lo=Er.indexOf("&",Lo))>=0;){ge+=Er.slice(Pi,Lo),et.startEntity(li);const ii=et.write(Er,Lo+1);if(ii<0){Pi=Lo+et.end();break}Pi=Lo+ii,Lo=ii===0?Pi+1:Pi}const Yo=ge+Er.slice(Pi);return ge="",Yo}}function bi(ce,ge,et,qt){const Er=(ge&Ti.BRANCH_LENGTH)>>7,li=ge&Ti.JUMP_TABLE;if(Er===0)return li!==0&&qt===li?et:-1;if(li){const Yo=qt-li;return Yo<0||Yo>=Er?-1:ce[et+Yo]-1}let Pi=et,Lo=Pi+Er-1;for(;Pi<=Lo;){const Yo=Pi+Lo>>>1,ii=ce[Yo];if(ii<qt)Pi=Yo+1;else if(ii>qt)Lo=Yo-1;else return ce[Yo+Er]}return-1}const Ai=null,Oi=null;function xt(ce,ge=Vr.Legacy){return Ai(ce,ge)}function on(ce){return Ai(ce,Vr.Attribute)}function br(ce){return Ai(ce,Vr.Strict)}function Br(ce){return Oi(ce,Vr.Strict)}var Xt;(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/"})(Xt||(Xt={}));var fr;(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"})(fr||(fr={}));var Tn;(function(ce){ce.NO_QUIRKS="no-quirks",ce.QUIRKS="quirks",ce.LIMITED_QUIRKS="limited-quirks"})(Tn||(Tn={}));var un;(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"})(un||(un={}));var Ue;(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"})(Ue||(Ue={}));const Nr=new Map([[un.A,Ue.A],[un.ADDRESS,Ue.ADDRESS],[un.ANNOTATION_XML,Ue.ANNOTATION_XML],[un.APPLET,Ue.APPLET],[un.AREA,Ue.AREA],[un.ARTICLE,Ue.ARTICLE],[un.ASIDE,Ue.ASIDE],[un.B,Ue.B],[un.BASE,Ue.BASE],[un.BASEFONT,Ue.BASEFONT],[un.BGSOUND,Ue.BGSOUND],[un.BIG,Ue.BIG],[un.BLOCKQUOTE,Ue.BLOCKQUOTE],[un.BODY,Ue.BODY],[un.BR,Ue.BR],[un.BUTTON,Ue.BUTTON],[un.CAPTION,Ue.CAPTION],[un.CENTER,Ue.CENTER],[un.CODE,Ue.CODE],[un.COL,Ue.COL],[un.COLGROUP,Ue.COLGROUP],[un.DD,Ue.DD],[un.DESC,Ue.DESC],[un.DETAILS,Ue.DETAILS],[un.DIALOG,Ue.DIALOG],[un.DIR,Ue.DIR],[un.DIV,Ue.DIV],[un.DL,Ue.DL],[un.DT,Ue.DT],[un.EM,Ue.EM],[un.EMBED,Ue.EMBED],[un.FIELDSET,Ue.FIELDSET],[un.FIGCAPTION,Ue.FIGCAPTION],[un.FIGURE,Ue.FIGURE],[un.FONT,Ue.FONT],[un.FOOTER,Ue.FOOTER],[un.FOREIGN_OBJECT,Ue.FOREIGN_OBJECT],[un.FORM,Ue.FORM],[un.FRAME,Ue.FRAME],[un.FRAMESET,Ue.FRAMESET],[un.H1,Ue.H1],[un.H2,Ue.H2],[un.H3,Ue.H3],[un.H4,Ue.H4],[un.H5,Ue.H5],[un.H6,Ue.H6],[un.HEAD,Ue.HEAD],[un.HEADER,Ue.HEADER],[un.HGROUP,Ue.HGROUP],[un.HR,Ue.HR],[un.HTML,Ue.HTML],[un.I,Ue.I],[un.IMG,Ue.IMG],[un.IMAGE,Ue.IMAGE],[un.INPUT,Ue.INPUT],[un.IFRAME,Ue.IFRAME],[un.KEYGEN,Ue.KEYGEN],[un.LABEL,Ue.LABEL],[un.LI,Ue.LI],[un.LINK,Ue.LINK],[un.LISTING,Ue.LISTING],[un.MAIN,Ue.MAIN],[un.MALIGNMARK,Ue.MALIGNMARK],[un.MARQUEE,Ue.MARQUEE],[un.MATH,Ue.MATH],[un.MENU,Ue.MENU],[un.META,Ue.META],[un.MGLYPH,Ue.MGLYPH],[un.MI,Ue.MI],[un.MO,Ue.MO],[un.MN,Ue.MN],[un.MS,Ue.MS],[un.MTEXT,Ue.MTEXT],[un.NAV,Ue.NAV],[un.NOBR,Ue.NOBR],[un.NOFRAMES,Ue.NOFRAMES],[un.NOEMBED,Ue.NOEMBED],[un.NOSCRIPT,Ue.NOSCRIPT],[un.OBJECT,Ue.OBJECT],[un.OL,Ue.OL],[un.OPTGROUP,Ue.OPTGROUP],[un.OPTION,Ue.OPTION],[un.P,Ue.P],[un.PARAM,Ue.PARAM],[un.PLAINTEXT,Ue.PLAINTEXT],[un.PRE,Ue.PRE],[un.RB,Ue.RB],[un.RP,Ue.RP],[un.RT,Ue.RT],[un.RTC,Ue.RTC],[un.RUBY,Ue.RUBY],[un.S,Ue.S],[un.SCRIPT,Ue.SCRIPT],[un.SEARCH,Ue.SEARCH],[un.SECTION,Ue.SECTION],[un.SELECT,Ue.SELECT],[un.SOURCE,Ue.SOURCE],[un.SMALL,Ue.SMALL],[un.SPAN,Ue.SPAN],[un.STRIKE,Ue.STRIKE],[un.STRONG,Ue.STRONG],[un.STYLE,Ue.STYLE],[un.SUB,Ue.SUB],[un.SUMMARY,Ue.SUMMARY],[un.SUP,Ue.SUP],[un.TABLE,Ue.TABLE],[un.TBODY,Ue.TBODY],[un.TEMPLATE,Ue.TEMPLATE],[un.TEXTAREA,Ue.TEXTAREA],[un.TFOOT,Ue.TFOOT],[un.TD,Ue.TD],[un.TH,Ue.TH],[un.THEAD,Ue.THEAD],[un.TITLE,Ue.TITLE],[un.TR,Ue.TR],[un.TRACK,Ue.TRACK],[un.TT,Ue.TT],[un.U,Ue.U],[un.UL,Ue.UL],[un.SVG,Ue.SVG],[un.VAR,Ue.VAR],[un.WBR,Ue.WBR],[un.XMP,Ue.XMP]]);function jr(ce){var ge;return(ge=Nr.get(ce))!==null&&ge!==void 0?ge:Ue.UNKNOWN}const zn=Ue,vi={[Xt.HTML]:new Set([zn.ADDRESS,zn.APPLET,zn.AREA,zn.ARTICLE,zn.ASIDE,zn.BASE,zn.BASEFONT,zn.BGSOUND,zn.BLOCKQUOTE,zn.BODY,zn.BR,zn.BUTTON,zn.CAPTION,zn.CENTER,zn.COL,zn.COLGROUP,zn.DD,zn.DETAILS,zn.DIR,zn.DIV,zn.DL,zn.DT,zn.EMBED,zn.FIELDSET,zn.FIGCAPTION,zn.FIGURE,zn.FOOTER,zn.FORM,zn.FRAME,zn.FRAMESET,zn.H1,zn.H2,zn.H3,zn.H4,zn.H5,zn.H6,zn.HEAD,zn.HEADER,zn.HGROUP,zn.HR,zn.HTML,zn.IFRAME,zn.IMG,zn.INPUT,zn.LI,zn.LINK,zn.LISTING,zn.MAIN,zn.MARQUEE,zn.MENU,zn.META,zn.NAV,zn.NOEMBED,zn.NOFRAMES,zn.NOSCRIPT,zn.OBJECT,zn.OL,zn.P,zn.PARAM,zn.PLAINTEXT,zn.PRE,zn.SCRIPT,zn.SECTION,zn.SELECT,zn.SOURCE,zn.STYLE,zn.SUMMARY,zn.TABLE,zn.TBODY,zn.TD,zn.TEMPLATE,zn.TEXTAREA,zn.TFOOT,zn.TH,zn.THEAD,zn.TITLE,zn.TR,zn.TRACK,zn.UL,zn.WBR,zn.XMP]),[Xt.MATHML]:new Set([zn.MI,zn.MO,zn.MN,zn.MS,zn.MTEXT,zn.ANNOTATION_XML]),[Xt.SVG]:new Set([zn.TITLE,zn.FOREIGN_OBJECT,zn.DESC]),[Xt.XLINK]:new Set,[Xt.XML]:new Set,[Xt.XMLNS]:new Set},Xr=new Set([zn.H1,zn.H2,zn.H3,zn.H4,zn.H5,zn.H6]),ci=new Set([un.STYLE,un.SCRIPT,un.XMP,un.IFRAME,un.NOEMBED,un.NOFRAMES,un.PLAINTEXT]);function Gn(ce,ge){return ci.has(ce)||ge&&ce===un.NOSCRIPT}var cn;(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"})(cn||(cn={}));const Ci={DATA:cn.DATA,RCDATA:cn.RCDATA,RAWTEXT:cn.RAWTEXT,SCRIPT_DATA:cn.SCRIPT_DATA,PLAINTEXT:cn.PLAINTEXT,CDATA_SECTION:cn.CDATA_SECTION};function ji(ce){return ce>=gt.DIGIT_0&&ce<=gt.DIGIT_9}function Qn(ce){return ce>=gt.LATIN_CAPITAL_A&&ce<=gt.LATIN_CAPITAL_Z}function zr(ce){return ce>=gt.LATIN_SMALL_A&&ce<=gt.LATIN_SMALL_Z}function si(ce){return zr(ce)||Qn(ce)}function di(ce){return si(ce)||ji(ce)}function ti(ce){return ce+32}function ki(ce){return ce===gt.SPACE||ce===gt.LINE_FEED||ce===gt.TABULATION||ce===gt.FORM_FEED}function Bi(ce){return ki(ce)||ce===gt.SOLIDUS||ce===gt.GREATER_THAN_SIGN}function Zi(ce){return ce===gt.NULL?Rn.nullCharacterReference:ce>1114111?Rn.characterReferenceOutsideUnicodeRange:ir(ce)?Rn.surrogateCharacterReference:Lr(ce)?Rn.noncharacterCharacterReference:$r(ce)||ce===gt.CARRIAGE_RETURN?Rn.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=cn.DATA,this.returnState=cn.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Jr(et),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new dr(oi,(qt,Er)=>{this.preprocessor.pos=this.entityStartPos+Er-1,this._flushCodePointConsumedAsCharacterReference(qt)},et.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Rn.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:qt=>{this._err(Rn.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+qt)},validateNumericCharacterReference:qt=>{const Er=Zi(qt);Er&&this._err(Er,1)}}:void 0)}_err(ge,et=0){var qt,Er;(Er=(qt=this.handler).onParseError)===null||Er===void 0||Er.call(qt,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,qt){this.active=!0,this.preprocessor.write(ge,et),this._runParsingLoop(),this.paused||qt==null||qt()}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:nr.START_TAG,tagName:"",tagID:Ue.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:nr.END_TAG,tagName:"",tagID:Ue.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(ge){this.currentToken={type:nr.COMMENT,data:"",location:this.getCurrentLocation(ge)}}_createDoctypeToken(ge){this.currentToken={type:nr.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 qt=this.currentToken;if(Wr(qt,this.currentAttr.name)===null){if(qt.attrs.push(this.currentAttr),qt.location&&this.currentLocation){const Er=(ge=(et=qt.location).attrs)!==null&&ge!==void 0?ge:et.attrs=Object.create(null);Er[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Rn.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=jr(ge.tagName),ge.type===nr.START_TAG?(this.lastStartTagName=ge.tagName,this.handler.onStartTag(ge)):(ge.attrs.length>0&&this._err(Rn.endTagWithAttributes),ge.selfClosing&&this._err(Rn.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 nr.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case nr.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case nr.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:nr.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=ki(ge)?nr.WHITESPACE_CHARACTER:ge===gt.NULL?nr.NULL_CHARACTER:nr.CHARACTER;this._appendCharToCurrentCharacterToken(et,String.fromCodePoint(ge))}_emitChars(ge){this._appendCharToCurrentCharacterToken(nr.CHARACTER,ge)}_startCharacterReference(){this.returnState=this.state,this.state=cn.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Vr.Attribute:Vr.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===cn.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===cn.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===cn.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(ge){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(ge):this._emitCodePoint(ge)}_callState(ge){switch(this.state){case cn.DATA:{this._stateData(ge);break}case cn.RCDATA:{this._stateRcdata(ge);break}case cn.RAWTEXT:{this._stateRawtext(ge);break}case cn.SCRIPT_DATA:{this._stateScriptData(ge);break}case cn.PLAINTEXT:{this._statePlaintext(ge);break}case cn.TAG_OPEN:{this._stateTagOpen(ge);break}case cn.END_TAG_OPEN:{this._stateEndTagOpen(ge);break}case cn.TAG_NAME:{this._stateTagName(ge);break}case cn.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(ge);break}case cn.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(ge);break}case cn.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(ge);break}case cn.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(ge);break}case cn.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(ge);break}case cn.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(ge);break}case cn.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(ge);break}case cn.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(ge);break}case cn.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(ge);break}case cn.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(ge);break}case cn.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(ge);break}case cn.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(ge);break}case cn.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(ge);break}case cn.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(ge);break}case cn.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(ge);break}case cn.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(ge);break}case cn.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(ge);break}case cn.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(ge);break}case cn.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(ge);break}case cn.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(ge);break}case cn.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(ge);break}case cn.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(ge);break}case cn.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(ge);break}case cn.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(ge);break}case cn.ATTRIBUTE_NAME:{this._stateAttributeName(ge);break}case cn.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(ge);break}case cn.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(ge);break}case cn.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(ge);break}case cn.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(ge);break}case cn.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(ge);break}case cn.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(ge);break}case cn.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(ge);break}case cn.BOGUS_COMMENT:{this._stateBogusComment(ge);break}case cn.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(ge);break}case cn.COMMENT_START:{this._stateCommentStart(ge);break}case cn.COMMENT_START_DASH:{this._stateCommentStartDash(ge);break}case cn.COMMENT:{this._stateComment(ge);break}case cn.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(ge);break}case cn.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(ge);break}case cn.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(ge);break}case cn.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(ge);break}case cn.COMMENT_END_DASH:{this._stateCommentEndDash(ge);break}case cn.COMMENT_END:{this._stateCommentEnd(ge);break}case cn.COMMENT_END_BANG:{this._stateCommentEndBang(ge);break}case cn.DOCTYPE:{this._stateDoctype(ge);break}case cn.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(ge);break}case cn.DOCTYPE_NAME:{this._stateDoctypeName(ge);break}case cn.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(ge);break}case cn.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(ge);break}case cn.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(ge);break}case cn.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(ge);break}case cn.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(ge);break}case cn.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(ge);break}case cn.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(ge);break}case cn.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(ge);break}case cn.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(ge);break}case cn.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(ge);break}case cn.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(ge);break}case cn.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(ge);break}case cn.BOGUS_DOCTYPE:{this._stateBogusDoctype(ge);break}case cn.CDATA_SECTION:{this._stateCdataSection(ge);break}case cn.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(ge);break}case cn.CDATA_SECTION_END:{this._stateCdataSectionEnd(ge);break}case cn.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case cn.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(ge);break}default:throw new Error("Unknown state")}}_stateData(ge){switch(ge){case gt.LESS_THAN_SIGN:{this.state=cn.TAG_OPEN;break}case gt.AMPERSAND:{this._startCharacterReference();break}case gt.NULL:{this._err(Rn.unexpectedNullCharacter),this._emitCodePoint(ge);break}case gt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateRcdata(ge){switch(ge){case gt.AMPERSAND:{this._startCharacterReference();break}case gt.LESS_THAN_SIGN:{this.state=cn.RCDATA_LESS_THAN_SIGN;break}case gt.NULL:{this._err(Rn.unexpectedNullCharacter),this._emitChars(mn);break}case gt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateRawtext(ge){switch(ge){case gt.LESS_THAN_SIGN:{this.state=cn.RAWTEXT_LESS_THAN_SIGN;break}case gt.NULL:{this._err(Rn.unexpectedNullCharacter),this._emitChars(mn);break}case gt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateScriptData(ge){switch(ge){case gt.LESS_THAN_SIGN:{this.state=cn.SCRIPT_DATA_LESS_THAN_SIGN;break}case gt.NULL:{this._err(Rn.unexpectedNullCharacter),this._emitChars(mn);break}case gt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_statePlaintext(ge){switch(ge){case gt.NULL:{this._err(Rn.unexpectedNullCharacter),this._emitChars(mn);break}case gt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateTagOpen(ge){if(si(ge))this._createStartTagToken(),this.state=cn.TAG_NAME,this._stateTagName(ge);else switch(ge){case gt.EXCLAMATION_MARK:{this.state=cn.MARKUP_DECLARATION_OPEN;break}case gt.SOLIDUS:{this.state=cn.END_TAG_OPEN;break}case gt.QUESTION_MARK:{this._err(Rn.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=cn.BOGUS_COMMENT,this._stateBogusComment(ge);break}case gt.EOF:{this._err(Rn.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Rn.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=cn.DATA,this._stateData(ge)}}_stateEndTagOpen(ge){if(si(ge))this._createEndTagToken(),this.state=cn.TAG_NAME,this._stateTagName(ge);else switch(ge){case gt.GREATER_THAN_SIGN:{this._err(Rn.missingEndTagName),this.state=cn.DATA;break}case gt.EOF:{this._err(Rn.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Rn.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=cn.BOGUS_COMMENT,this._stateBogusComment(ge)}}_stateTagName(ge){const et=this.currentToken;switch(ge){case gt.SPACE:case gt.LINE_FEED:case gt.TABULATION:case gt.FORM_FEED:{this.state=cn.BEFORE_ATTRIBUTE_NAME;break}case gt.SOLIDUS:{this.state=cn.SELF_CLOSING_START_TAG;break}case gt.GREATER_THAN_SIGN:{this.state=cn.DATA,this.emitCurrentTagToken();break}case gt.NULL:{this._err(Rn.unexpectedNullCharacter),et.tagName+=mn;break}case gt.EOF:{this._err(Rn.eofInTag),this._emitEOFToken();break}default:et.tagName+=String.fromCodePoint(Qn(ge)?ti(ge):ge)}}_stateRcdataLessThanSign(ge){ge===gt.SOLIDUS?this.state=cn.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=cn.RCDATA,this._stateRcdata(ge))}_stateRcdataEndTagOpen(ge){si(ge)?(this.state=cn.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(ge)):(this._emitChars("</"),this.state=cn.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 gt.SPACE:case gt.LINE_FEED:case gt.TABULATION:case gt.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=cn.BEFORE_ATTRIBUTE_NAME,!1;case gt.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=cn.SELF_CLOSING_START_TAG,!1;case gt.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=cn.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(ge){this.handleSpecialEndTag(ge)&&(this._emitChars("</"),this.state=cn.RCDATA,this._stateRcdata(ge))}_stateRawtextLessThanSign(ge){ge===gt.SOLIDUS?this.state=cn.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=cn.RAWTEXT,this._stateRawtext(ge))}_stateRawtextEndTagOpen(ge){si(ge)?(this.state=cn.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(ge)):(this._emitChars("</"),this.state=cn.RAWTEXT,this._stateRawtext(ge))}_stateRawtextEndTagName(ge){this.handleSpecialEndTag(ge)&&(this._emitChars("</"),this.state=cn.RAWTEXT,this._stateRawtext(ge))}_stateScriptDataLessThanSign(ge){switch(ge){case gt.SOLIDUS:{this.state=cn.SCRIPT_DATA_END_TAG_OPEN;break}case gt.EXCLAMATION_MARK:{this.state=cn.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=cn.SCRIPT_DATA,this._stateScriptData(ge)}}_stateScriptDataEndTagOpen(ge){si(ge)?(this.state=cn.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(ge)):(this._emitChars("</"),this.state=cn.SCRIPT_DATA,this._stateScriptData(ge))}_stateScriptDataEndTagName(ge){this.handleSpecialEndTag(ge)&&(this._emitChars("</"),this.state=cn.SCRIPT_DATA,this._stateScriptData(ge))}_stateScriptDataEscapeStart(ge){ge===gt.HYPHEN_MINUS?(this.state=cn.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=cn.SCRIPT_DATA,this._stateScriptData(ge))}_stateScriptDataEscapeStartDash(ge){ge===gt.HYPHEN_MINUS?(this.state=cn.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=cn.SCRIPT_DATA,this._stateScriptData(ge))}_stateScriptDataEscaped(ge){switch(ge){case gt.HYPHEN_MINUS:{this.state=cn.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case gt.LESS_THAN_SIGN:{this.state=cn.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case gt.NULL:{this._err(Rn.unexpectedNullCharacter),this._emitChars(mn);break}case gt.EOF:{this._err(Rn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateScriptDataEscapedDash(ge){switch(ge){case gt.HYPHEN_MINUS:{this.state=cn.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case gt.LESS_THAN_SIGN:{this.state=cn.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case gt.NULL:{this._err(Rn.unexpectedNullCharacter),this.state=cn.SCRIPT_DATA_ESCAPED,this._emitChars(mn);break}case gt.EOF:{this._err(Rn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=cn.SCRIPT_DATA_ESCAPED,this._emitCodePoint(ge)}}_stateScriptDataEscapedDashDash(ge){switch(ge){case gt.HYPHEN_MINUS:{this._emitChars("-");break}case gt.LESS_THAN_SIGN:{this.state=cn.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case gt.GREATER_THAN_SIGN:{this.state=cn.SCRIPT_DATA,this._emitChars(">");break}case gt.NULL:{this._err(Rn.unexpectedNullCharacter),this.state=cn.SCRIPT_DATA_ESCAPED,this._emitChars(mn);break}case gt.EOF:{this._err(Rn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=cn.SCRIPT_DATA_ESCAPED,this._emitCodePoint(ge)}}_stateScriptDataEscapedLessThanSign(ge){ge===gt.SOLIDUS?this.state=cn.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:si(ge)?(this._emitChars("<"),this.state=cn.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(ge)):(this._emitChars("<"),this.state=cn.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(ge))}_stateScriptDataEscapedEndTagOpen(ge){si(ge)?(this.state=cn.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(ge)):(this._emitChars("</"),this.state=cn.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(ge))}_stateScriptDataEscapedEndTagName(ge){this.handleSpecialEndTag(ge)&&(this._emitChars("</"),this.state=cn.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(ge))}_stateScriptDataDoubleEscapeStart(ge){if(this.preprocessor.startsWith(Xn.SCRIPT,!1)&&Bi(this.preprocessor.peek(Xn.SCRIPT.length))){this._emitCodePoint(ge);for(let et=0;et<Xn.SCRIPT.length;et++)this._emitCodePoint(this._consume());this.state=cn.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=cn.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(ge))}_stateScriptDataDoubleEscaped(ge){switch(ge){case gt.HYPHEN_MINUS:{this.state=cn.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case gt.LESS_THAN_SIGN:{this.state=cn.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case gt.NULL:{this._err(Rn.unexpectedNullCharacter),this._emitChars(mn);break}case gt.EOF:{this._err(Rn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateScriptDataDoubleEscapedDash(ge){switch(ge){case gt.HYPHEN_MINUS:{this.state=cn.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case gt.LESS_THAN_SIGN:{this.state=cn.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case gt.NULL:{this._err(Rn.unexpectedNullCharacter),this.state=cn.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(mn);break}case gt.EOF:{this._err(Rn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=cn.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(ge)}}_stateScriptDataDoubleEscapedDashDash(ge){switch(ge){case gt.HYPHEN_MINUS:{this._emitChars("-");break}case gt.LESS_THAN_SIGN:{this.state=cn.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case gt.GREATER_THAN_SIGN:{this.state=cn.SCRIPT_DATA,this._emitChars(">");break}case gt.NULL:{this._err(Rn.unexpectedNullCharacter),this.state=cn.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(mn);break}case gt.EOF:{this._err(Rn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=cn.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(ge)}}_stateScriptDataDoubleEscapedLessThanSign(ge){ge===gt.SOLIDUS?(this.state=cn.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=cn.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(ge))}_stateScriptDataDoubleEscapeEnd(ge){if(this.preprocessor.startsWith(Xn.SCRIPT,!1)&&Bi(this.preprocessor.peek(Xn.SCRIPT.length))){this._emitCodePoint(ge);for(let et=0;et<Xn.SCRIPT.length;et++)this._emitCodePoint(this._consume());this.state=cn.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=cn.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(ge))}_stateBeforeAttributeName(ge){switch(ge){case gt.SPACE:case gt.LINE_FEED:case gt.TABULATION:case gt.FORM_FEED:break;case gt.SOLIDUS:case gt.GREATER_THAN_SIGN:case gt.EOF:{this.state=cn.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(ge);break}case gt.EQUALS_SIGN:{this._err(Rn.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=cn.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=cn.ATTRIBUTE_NAME,this._stateAttributeName(ge)}}_stateAttributeName(ge){switch(ge){case gt.SPACE:case gt.LINE_FEED:case gt.TABULATION:case gt.FORM_FEED:case gt.SOLIDUS:case gt.GREATER_THAN_SIGN:case gt.EOF:{this._leaveAttrName(),this.state=cn.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(ge);break}case gt.EQUALS_SIGN:{this._leaveAttrName(),this.state=cn.BEFORE_ATTRIBUTE_VALUE;break}case gt.QUOTATION_MARK:case gt.APOSTROPHE:case gt.LESS_THAN_SIGN:{this._err(Rn.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(ge);break}case gt.NULL:{this._err(Rn.unexpectedNullCharacter),this.currentAttr.name+=mn;break}default:this.currentAttr.name+=String.fromCodePoint(Qn(ge)?ti(ge):ge)}}_stateAfterAttributeName(ge){switch(ge){case gt.SPACE:case gt.LINE_FEED:case gt.TABULATION:case gt.FORM_FEED:break;case gt.SOLIDUS:{this.state=cn.SELF_CLOSING_START_TAG;break}case gt.EQUALS_SIGN:{this.state=cn.BEFORE_ATTRIBUTE_VALUE;break}case gt.GREATER_THAN_SIGN:{this.state=cn.DATA,this.emitCurrentTagToken();break}case gt.EOF:{this._err(Rn.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=cn.ATTRIBUTE_NAME,this._stateAttributeName(ge)}}_stateBeforeAttributeValue(ge){switch(ge){case gt.SPACE:case gt.LINE_FEED:case gt.TABULATION:case gt.FORM_FEED:break;case gt.QUOTATION_MARK:{this.state=cn.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case gt.APOSTROPHE:{this.state=cn.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case gt.GREATER_THAN_SIGN:{this._err(Rn.missingAttributeValue),this.state=cn.DATA,this.emitCurrentTagToken();break}default:this.state=cn.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(ge)}}_stateAttributeValueDoubleQuoted(ge){switch(ge){case gt.QUOTATION_MARK:{this.state=cn.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case gt.AMPERSAND:{this._startCharacterReference();break}case gt.NULL:{this._err(Rn.unexpectedNullCharacter),this.currentAttr.value+=mn;break}case gt.EOF:{this._err(Rn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(ge)}}_stateAttributeValueSingleQuoted(ge){switch(ge){case gt.APOSTROPHE:{this.state=cn.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case gt.AMPERSAND:{this._startCharacterReference();break}case gt.NULL:{this._err(Rn.unexpectedNullCharacter),this.currentAttr.value+=mn;break}case gt.EOF:{this._err(Rn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(ge)}}_stateAttributeValueUnquoted(ge){switch(ge){case gt.SPACE:case gt.LINE_FEED:case gt.TABULATION:case gt.FORM_FEED:{this._leaveAttrValue(),this.state=cn.BEFORE_ATTRIBUTE_NAME;break}case gt.AMPERSAND:{this._startCharacterReference();break}case gt.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=cn.DATA,this.emitCurrentTagToken();break}case gt.NULL:{this._err(Rn.unexpectedNullCharacter),this.currentAttr.value+=mn;break}case gt.QUOTATION_MARK:case gt.APOSTROPHE:case gt.LESS_THAN_SIGN:case gt.EQUALS_SIGN:case gt.GRAVE_ACCENT:{this._err(Rn.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(ge);break}case gt.EOF:{this._err(Rn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(ge)}}_stateAfterAttributeValueQuoted(ge){switch(ge){case gt.SPACE:case gt.LINE_FEED:case gt.TABULATION:case gt.FORM_FEED:{this._leaveAttrValue(),this.state=cn.BEFORE_ATTRIBUTE_NAME;break}case gt.SOLIDUS:{this._leaveAttrValue(),this.state=cn.SELF_CLOSING_START_TAG;break}case gt.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=cn.DATA,this.emitCurrentTagToken();break}case gt.EOF:{this._err(Rn.eofInTag),this._emitEOFToken();break}default:this._err(Rn.missingWhitespaceBetweenAttributes),this.state=cn.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(ge)}}_stateSelfClosingStartTag(ge){switch(ge){case gt.GREATER_THAN_SIGN:{const et=this.currentToken;et.selfClosing=!0,this.state=cn.DATA,this.emitCurrentTagToken();break}case gt.EOF:{this._err(Rn.eofInTag),this._emitEOFToken();break}default:this._err(Rn.unexpectedSolidusInTag),this.state=cn.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(ge)}}_stateBogusComment(ge){const et=this.currentToken;switch(ge){case gt.GREATER_THAN_SIGN:{this.state=cn.DATA,this.emitCurrentComment(et);break}case gt.EOF:{this.emitCurrentComment(et),this._emitEOFToken();break}case gt.NULL:{this._err(Rn.unexpectedNullCharacter),et.data+=mn;break}default:et.data+=String.fromCodePoint(ge)}}_stateMarkupDeclarationOpen(ge){this._consumeSequenceIfMatch(Xn.DASH_DASH,!0)?(this._createCommentToken(Xn.DASH_DASH.length+1),this.state=cn.COMMENT_START):this._consumeSequenceIfMatch(Xn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Xn.DOCTYPE.length+1),this.state=cn.DOCTYPE):this._consumeSequenceIfMatch(Xn.CDATA_START,!0)?this.inForeignNode?this.state=cn.CDATA_SECTION:(this._err(Rn.cdataInHtmlContent),this._createCommentToken(Xn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=cn.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Rn.incorrectlyOpenedComment),this._createCommentToken(2),this.state=cn.BOGUS_COMMENT,this._stateBogusComment(ge))}_stateCommentStart(ge){switch(ge){case gt.HYPHEN_MINUS:{this.state=cn.COMMENT_START_DASH;break}case gt.GREATER_THAN_SIGN:{this._err(Rn.abruptClosingOfEmptyComment),this.state=cn.DATA;const et=this.currentToken;this.emitCurrentComment(et);break}default:this.state=cn.COMMENT,this._stateComment(ge)}}_stateCommentStartDash(ge){const et=this.currentToken;switch(ge){case gt.HYPHEN_MINUS:{this.state=cn.COMMENT_END;break}case gt.GREATER_THAN_SIGN:{this._err(Rn.abruptClosingOfEmptyComment),this.state=cn.DATA,this.emitCurrentComment(et);break}case gt.EOF:{this._err(Rn.eofInComment),this.emitCurrentComment(et),this._emitEOFToken();break}default:et.data+="-",this.state=cn.COMMENT,this._stateComment(ge)}}_stateComment(ge){const et=this.currentToken;switch(ge){case gt.HYPHEN_MINUS:{this.state=cn.COMMENT_END_DASH;break}case gt.LESS_THAN_SIGN:{et.data+="<",this.state=cn.COMMENT_LESS_THAN_SIGN;break}case gt.NULL:{this._err(Rn.unexpectedNullCharacter),et.data+=mn;break}case gt.EOF:{this._err(Rn.eofInComment),this.emitCurrentComment(et),this._emitEOFToken();break}default:et.data+=String.fromCodePoint(ge)}}_stateCommentLessThanSign(ge){const et=this.currentToken;switch(ge){case gt.EXCLAMATION_MARK:{et.data+="!",this.state=cn.COMMENT_LESS_THAN_SIGN_BANG;break}case gt.LESS_THAN_SIGN:{et.data+="<";break}default:this.state=cn.COMMENT,this._stateComment(ge)}}_stateCommentLessThanSignBang(ge){ge===gt.HYPHEN_MINUS?this.state=cn.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=cn.COMMENT,this._stateComment(ge))}_stateCommentLessThanSignBangDash(ge){ge===gt.HYPHEN_MINUS?this.state=cn.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=cn.COMMENT_END_DASH,this._stateCommentEndDash(ge))}_stateCommentLessThanSignBangDashDash(ge){ge!==gt.GREATER_THAN_SIGN&&ge!==gt.EOF&&this._err(Rn.nestedComment),this.state=cn.COMMENT_END,this._stateCommentEnd(ge)}_stateCommentEndDash(ge){const et=this.currentToken;switch(ge){case gt.HYPHEN_MINUS:{this.state=cn.COMMENT_END;break}case gt.EOF:{this._err(Rn.eofInComment),this.emitCurrentComment(et),this._emitEOFToken();break}default:et.data+="-",this.state=cn.COMMENT,this._stateComment(ge)}}_stateCommentEnd(ge){const et=this.currentToken;switch(ge){case gt.GREATER_THAN_SIGN:{this.state=cn.DATA,this.emitCurrentComment(et);break}case gt.EXCLAMATION_MARK:{this.state=cn.COMMENT_END_BANG;break}case gt.HYPHEN_MINUS:{et.data+="-";break}case gt.EOF:{this._err(Rn.eofInComment),this.emitCurrentComment(et),this._emitEOFToken();break}default:et.data+="--",this.state=cn.COMMENT,this._stateComment(ge)}}_stateCommentEndBang(ge){const et=this.currentToken;switch(ge){case gt.HYPHEN_MINUS:{et.data+="--!",this.state=cn.COMMENT_END_DASH;break}case gt.GREATER_THAN_SIGN:{this._err(Rn.incorrectlyClosedComment),this.state=cn.DATA,this.emitCurrentComment(et);break}case gt.EOF:{this._err(Rn.eofInComment),this.emitCurrentComment(et),this._emitEOFToken();break}default:et.data+="--!",this.state=cn.COMMENT,this._stateComment(ge)}}_stateDoctype(ge){switch(ge){case gt.SPACE:case gt.LINE_FEED:case gt.TABULATION:case gt.FORM_FEED:{this.state=cn.BEFORE_DOCTYPE_NAME;break}case gt.GREATER_THAN_SIGN:{this.state=cn.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(ge);break}case gt.EOF:{this._err(Rn.eofInDoctype),this._createDoctypeToken(null);const et=this.currentToken;et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Rn.missingWhitespaceBeforeDoctypeName),this.state=cn.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(ge)}}_stateBeforeDoctypeName(ge){if(Qn(ge))this._createDoctypeToken(String.fromCharCode(ti(ge))),this.state=cn.DOCTYPE_NAME;else switch(ge){case gt.SPACE:case gt.LINE_FEED:case gt.TABULATION:case gt.FORM_FEED:break;case gt.NULL:{this._err(Rn.unexpectedNullCharacter),this._createDoctypeToken(mn),this.state=cn.DOCTYPE_NAME;break}case gt.GREATER_THAN_SIGN:{this._err(Rn.missingDoctypeName),this._createDoctypeToken(null);const et=this.currentToken;et.forceQuirks=!0,this.emitCurrentDoctype(et),this.state=cn.DATA;break}case gt.EOF:{this._err(Rn.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=cn.DOCTYPE_NAME}}_stateDoctypeName(ge){const et=this.currentToken;switch(ge){case gt.SPACE:case gt.LINE_FEED:case gt.TABULATION:case gt.FORM_FEED:{this.state=cn.AFTER_DOCTYPE_NAME;break}case gt.GREATER_THAN_SIGN:{this.state=cn.DATA,this.emitCurrentDoctype(et);break}case gt.NULL:{this._err(Rn.unexpectedNullCharacter),et.name+=mn;break}case gt.EOF:{this._err(Rn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:et.name+=String.fromCodePoint(Qn(ge)?ti(ge):ge)}}_stateAfterDoctypeName(ge){const et=this.currentToken;switch(ge){case gt.SPACE:case gt.LINE_FEED:case gt.TABULATION:case gt.FORM_FEED:break;case gt.GREATER_THAN_SIGN:{this.state=cn.DATA,this.emitCurrentDoctype(et);break}case gt.EOF:{this._err(Rn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Xn.PUBLIC,!1)?this.state=cn.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Xn.SYSTEM,!1)?this.state=cn.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Rn.invalidCharacterSequenceAfterDoctypeName),et.forceQuirks=!0,this.state=cn.BOGUS_DOCTYPE,this._stateBogusDoctype(ge))}}_stateAfterDoctypePublicKeyword(ge){const et=this.currentToken;switch(ge){case gt.SPACE:case gt.LINE_FEED:case gt.TABULATION:case gt.FORM_FEED:{this.state=cn.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case gt.QUOTATION_MARK:{this._err(Rn.missingWhitespaceAfterDoctypePublicKeyword),et.publicId="",this.state=cn.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case gt.APOSTROPHE:{this._err(Rn.missingWhitespaceAfterDoctypePublicKeyword),et.publicId="",this.state=cn.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case gt.GREATER_THAN_SIGN:{this._err(Rn.missingDoctypePublicIdentifier),et.forceQuirks=!0,this.state=cn.DATA,this.emitCurrentDoctype(et);break}case gt.EOF:{this._err(Rn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Rn.missingQuoteBeforeDoctypePublicIdentifier),et.forceQuirks=!0,this.state=cn.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateBeforeDoctypePublicIdentifier(ge){const et=this.currentToken;switch(ge){case gt.SPACE:case gt.LINE_FEED:case gt.TABULATION:case gt.FORM_FEED:break;case gt.QUOTATION_MARK:{et.publicId="",this.state=cn.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case gt.APOSTROPHE:{et.publicId="",this.state=cn.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case gt.GREATER_THAN_SIGN:{this._err(Rn.missingDoctypePublicIdentifier),et.forceQuirks=!0,this.state=cn.DATA,this.emitCurrentDoctype(et);break}case gt.EOF:{this._err(Rn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Rn.missingQuoteBeforeDoctypePublicIdentifier),et.forceQuirks=!0,this.state=cn.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateDoctypePublicIdentifierDoubleQuoted(ge){const et=this.currentToken;switch(ge){case gt.QUOTATION_MARK:{this.state=cn.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case gt.NULL:{this._err(Rn.unexpectedNullCharacter),et.publicId+=mn;break}case gt.GREATER_THAN_SIGN:{this._err(Rn.abruptDoctypePublicIdentifier),et.forceQuirks=!0,this.emitCurrentDoctype(et),this.state=cn.DATA;break}case gt.EOF:{this._err(Rn.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 gt.APOSTROPHE:{this.state=cn.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case gt.NULL:{this._err(Rn.unexpectedNullCharacter),et.publicId+=mn;break}case gt.GREATER_THAN_SIGN:{this._err(Rn.abruptDoctypePublicIdentifier),et.forceQuirks=!0,this.emitCurrentDoctype(et),this.state=cn.DATA;break}case gt.EOF:{this._err(Rn.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 gt.SPACE:case gt.LINE_FEED:case gt.TABULATION:case gt.FORM_FEED:{this.state=cn.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case gt.GREATER_THAN_SIGN:{this.state=cn.DATA,this.emitCurrentDoctype(et);break}case gt.QUOTATION_MARK:{this._err(Rn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),et.systemId="",this.state=cn.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case gt.APOSTROPHE:{this._err(Rn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),et.systemId="",this.state=cn.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case gt.EOF:{this._err(Rn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Rn.missingQuoteBeforeDoctypeSystemIdentifier),et.forceQuirks=!0,this.state=cn.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateBetweenDoctypePublicAndSystemIdentifiers(ge){const et=this.currentToken;switch(ge){case gt.SPACE:case gt.LINE_FEED:case gt.TABULATION:case gt.FORM_FEED:break;case gt.GREATER_THAN_SIGN:{this.emitCurrentDoctype(et),this.state=cn.DATA;break}case gt.QUOTATION_MARK:{et.systemId="",this.state=cn.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case gt.APOSTROPHE:{et.systemId="",this.state=cn.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case gt.EOF:{this._err(Rn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Rn.missingQuoteBeforeDoctypeSystemIdentifier),et.forceQuirks=!0,this.state=cn.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateAfterDoctypeSystemKeyword(ge){const et=this.currentToken;switch(ge){case gt.SPACE:case gt.LINE_FEED:case gt.TABULATION:case gt.FORM_FEED:{this.state=cn.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case gt.QUOTATION_MARK:{this._err(Rn.missingWhitespaceAfterDoctypeSystemKeyword),et.systemId="",this.state=cn.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case gt.APOSTROPHE:{this._err(Rn.missingWhitespaceAfterDoctypeSystemKeyword),et.systemId="",this.state=cn.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case gt.GREATER_THAN_SIGN:{this._err(Rn.missingDoctypeSystemIdentifier),et.forceQuirks=!0,this.state=cn.DATA,this.emitCurrentDoctype(et);break}case gt.EOF:{this._err(Rn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Rn.missingQuoteBeforeDoctypeSystemIdentifier),et.forceQuirks=!0,this.state=cn.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateBeforeDoctypeSystemIdentifier(ge){const et=this.currentToken;switch(ge){case gt.SPACE:case gt.LINE_FEED:case gt.TABULATION:case gt.FORM_FEED:break;case gt.QUOTATION_MARK:{et.systemId="",this.state=cn.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case gt.APOSTROPHE:{et.systemId="",this.state=cn.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case gt.GREATER_THAN_SIGN:{this._err(Rn.missingDoctypeSystemIdentifier),et.forceQuirks=!0,this.state=cn.DATA,this.emitCurrentDoctype(et);break}case gt.EOF:{this._err(Rn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Rn.missingQuoteBeforeDoctypeSystemIdentifier),et.forceQuirks=!0,this.state=cn.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateDoctypeSystemIdentifierDoubleQuoted(ge){const et=this.currentToken;switch(ge){case gt.QUOTATION_MARK:{this.state=cn.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case gt.NULL:{this._err(Rn.unexpectedNullCharacter),et.systemId+=mn;break}case gt.GREATER_THAN_SIGN:{this._err(Rn.abruptDoctypeSystemIdentifier),et.forceQuirks=!0,this.emitCurrentDoctype(et),this.state=cn.DATA;break}case gt.EOF:{this._err(Rn.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 gt.APOSTROPHE:{this.state=cn.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case gt.NULL:{this._err(Rn.unexpectedNullCharacter),et.systemId+=mn;break}case gt.GREATER_THAN_SIGN:{this._err(Rn.abruptDoctypeSystemIdentifier),et.forceQuirks=!0,this.emitCurrentDoctype(et),this.state=cn.DATA;break}case gt.EOF:{this._err(Rn.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 gt.SPACE:case gt.LINE_FEED:case gt.TABULATION:case gt.FORM_FEED:break;case gt.GREATER_THAN_SIGN:{this.emitCurrentDoctype(et),this.state=cn.DATA;break}case gt.EOF:{this._err(Rn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Rn.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=cn.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateBogusDoctype(ge){const et=this.currentToken;switch(ge){case gt.GREATER_THAN_SIGN:{this.emitCurrentDoctype(et),this.state=cn.DATA;break}case gt.NULL:{this._err(Rn.unexpectedNullCharacter);break}case gt.EOF:{this.emitCurrentDoctype(et),this._emitEOFToken();break}default:}}_stateCdataSection(ge){switch(ge){case gt.RIGHT_SQUARE_BRACKET:{this.state=cn.CDATA_SECTION_BRACKET;break}case gt.EOF:{this._err(Rn.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateCdataSectionBracket(ge){ge===gt.RIGHT_SQUARE_BRACKET?this.state=cn.CDATA_SECTION_END:(this._emitChars("]"),this.state=cn.CDATA_SECTION,this._stateCdataSection(ge))}_stateCdataSectionEnd(ge){switch(ge){case gt.GREATER_THAN_SIGN:{this.state=cn.DATA;break}case gt.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=cn.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(gt.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&di(this.preprocessor.peek(1))?cn.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(ge){di(ge)?this._flushCodePointConsumedAsCharacterReference(ge):(ge===gt.SEMICOLON&&this._err(Rn.unknownNamedCharacterReference),this.state=this.returnState,this._callState(ge))}}const Vi=new Set([Ue.DD,Ue.DT,Ue.LI,Ue.OPTGROUP,Ue.OPTION,Ue.P,Ue.RB,Ue.RP,Ue.RT,Ue.RTC]),er=new Set([...Vi,Ue.CAPTION,Ue.COLGROUP,Ue.TBODY,Ue.TD,Ue.TFOOT,Ue.TH,Ue.THEAD,Ue.TR]),_i=new Set([Ue.APPLET,Ue.CAPTION,Ue.HTML,Ue.MARQUEE,Ue.OBJECT,Ue.TABLE,Ue.TD,Ue.TEMPLATE,Ue.TH]),ar=new Set([..._i,Ue.OL,Ue.UL]),Ei=new Set([..._i,Ue.BUTTON]),Gi=new Set([Ue.ANNOTATION_XML,Ue.MI,Ue.MN,Ue.MO,Ue.MS,Ue.MTEXT]),Ui=new Set([Ue.DESC,Ue.FOREIGN_OBJECT,Ue.TITLE]),po=new Set([Ue.TR,Ue.TEMPLATE,Ue.HTML]),ho=new Set([Ue.TBODY,Ue.TFOOT,Ue.THEAD,Ue.TEMPLATE,Ue.HTML]),Qi=new Set([Ue.TABLE,Ue.TEMPLATE,Ue.HTML]),Ro=new Set([Ue.TD,Ue.TH]);class Fn{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(ge,et,qt){this.treeAdapter=et,this.handler=qt,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=Ue.UNKNOWN,this.current=ge}_indexOf(ge){return this.items.lastIndexOf(ge,this.stackTop)}_isInTemplate(){return this.currentTagId===Ue.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Xt.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 qt=this._indexOf(ge);this.items[qt]=et,qt===this.stackTop&&(this.current=et)}insertAfter(ge,et,qt){const Er=this._indexOf(ge)+1;this.items.splice(Er,0,et),this.tagIDs.splice(Er,0,qt),this.stackTop++,Er===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,Er===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])!==Xt.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 qt=this._indexOfTagNames(ge,et);this.shortenToLength(Math.max(qt,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Xr,Xt.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Ro,Xt.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(ge,et){for(let qt=this.stackTop;qt>=0;qt--)if(ge.has(this.tagIDs[qt])&&this.treeAdapter.getNamespaceURI(this.items[qt])===et)return qt;return-1}clearBackTo(ge,et){const qt=this._indexOfTagNames(ge,et);this.shortenToLength(qt+1)}clearBackToTableContext(){this.clearBackTo(Qi,Xt.HTML)}clearBackToTableBodyContext(){this.clearBackTo(ho,Xt.HTML)}clearBackToTableRowContext(){this.clearBackTo(po,Xt.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]===Ue.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]===Ue.HTML}hasInDynamicScope(ge,et){for(let qt=this.stackTop;qt>=0;qt--){const Er=this.tagIDs[qt];switch(this.treeAdapter.getNamespaceURI(this.items[qt])){case Xt.HTML:{if(Er===ge)return!0;if(et.has(Er))return!1;break}case Xt.SVG:{if(Ui.has(Er))return!1;break}case Xt.MATHML:{if(Gi.has(Er))return!1;break}}}return!0}hasInScope(ge){return this.hasInDynamicScope(ge,_i)}hasInListItemScope(ge){return this.hasInDynamicScope(ge,ar)}hasInButtonScope(ge){return this.hasInDynamicScope(ge,Ei)}hasNumberedHeaderInScope(){for(let ge=this.stackTop;ge>=0;ge--){const et=this.tagIDs[ge];switch(this.treeAdapter.getNamespaceURI(this.items[ge])){case Xt.HTML:{if(Xr.has(et))return!0;if(_i.has(et))return!1;break}case Xt.SVG:{if(Ui.has(et))return!1;break}case Xt.MATHML:{if(Gi.has(et))return!1;break}}}return!0}hasInTableScope(ge){for(let et=this.stackTop;et>=0;et--)if(this.treeAdapter.getNamespaceURI(this.items[et])===Xt.HTML)switch(this.tagIDs[et]){case ge:return!0;case Ue.TABLE:case Ue.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let ge=this.stackTop;ge>=0;ge--)if(this.treeAdapter.getNamespaceURI(this.items[ge])===Xt.HTML)switch(this.tagIDs[ge]){case Ue.TBODY:case Ue.THEAD:case Ue.TFOOT:return!0;case Ue.TABLE:case Ue.HTML:return!1}return!0}hasInSelectScope(ge){for(let et=this.stackTop;et>=0;et--)if(this.treeAdapter.getNamespaceURI(this.items[et])===Xt.HTML)switch(this.tagIDs[et]){case ge:return!0;case Ue.OPTION:case Ue.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Vi.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&er.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(ge){for(;this.currentTagId!==void 0&&this.currentTagId!==ge&&er.has(this.currentTagId);)this.pop()}}const pr=3;var Ln;(function(ce){ce[ce.Marker=0]="Marker",ce[ce.Element=1]="Element"})(Ln||(Ln={}));const rt={type:Ln.Marker};class Hr{constructor(ge){this.treeAdapter=ge,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(ge,et){const qt=[],Er=et.length,li=this.treeAdapter.getTagName(ge),Pi=this.treeAdapter.getNamespaceURI(ge);for(let Lo=0;Lo<this.entries.length;Lo++){const Yo=this.entries[Lo];if(Yo.type===Ln.Marker)break;const{element:ii}=Yo;if(this.treeAdapter.getTagName(ii)===li&&this.treeAdapter.getNamespaceURI(ii)===Pi){const no=this.treeAdapter.getAttrList(ii);no.length===Er&&qt.push({idx:Lo,attrs:no})}}return qt}_ensureNoahArkCondition(ge){if(this.entries.length<pr)return;const et=this.treeAdapter.getAttrList(ge),qt=this._getNoahArkConditionCandidates(ge,et);if(qt.length<pr)return;const Er=new Map(et.map(Pi=>[Pi.name,Pi.value]));let li=0;for(let Pi=0;Pi<qt.length;Pi++){const Lo=qt[Pi];Lo.attrs.every(Yo=>Er.get(Yo.name)===Yo.value)&&(li+=1,li>=pr&&this.entries.splice(Lo.idx,1))}}insertMarker(){this.entries.unshift(rt)}pushElement(ge,et){this._ensureNoahArkCondition(ge),this.entries.unshift({type:Ln.Element,element:ge,token:et})}insertElementAfterBookmark(ge,et){const qt=this.entries.indexOf(this.bookmark);this.entries.splice(qt,0,{type:Ln.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(rt);ge===-1?this.entries.length=0:this.entries.splice(0,ge+1)}getElementEntryInScopeWithTagName(ge){const et=this.entries.find(qt=>qt.type===Ln.Marker||this.treeAdapter.getTagName(qt.element)===ge);return et&&et.type===Ln.Element?et:null}getElementEntry(ge){return this.entries.find(et=>et.type===Ln.Element&&et.element===ge)}}const _r={createDocument(){return{nodeName:"#document",mode:Tn.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 qt=ce.childNodes.indexOf(et);ce.childNodes.splice(qt,0,ge),ge.parentNode=ce},setTemplateContent(ce,ge){ce.content=ge},getTemplateContent(ce){return ce.content},setDocumentType(ce,ge,et,qt){const Er=ce.childNodes.find(li=>li.nodeName==="#documentType");if(Er)Er.name=ge,Er.publicId=et,Er.systemId=qt;else{const li={nodeName:"#documentType",name:ge,publicId:et,systemId:qt,parentNode:null};_r.appendChild(ce,li)}},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(_r.isTextNode(et)){et.value+=ge;return}}_r.appendChild(ce,_r.createTextNode(ge))},insertTextBefore(ce,ge,et){const qt=ce.childNodes[ce.childNodes.indexOf(et)-1];qt&&_r.isTextNode(qt)?qt.value+=ge:_r.insertBefore(ce,_r.createTextNode(ge),et)},adoptAttributes(ce,ge){const et=new Set(ce.attrs.map(qt=>qt.name));for(let qt=0;qt<ge.length;qt++)et.has(ge[qt].name)||ce.attrs.push(ge[qt])},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",hi="about:legacy-compat",ri="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",yr=["+//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//"],ht=[...yr,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],xn=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),wn=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],jn=[...wn,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function On(ce,ge){return ge.some(et=>ce.startsWith(et))}function sr(ce){return ce.name===pi&&ce.publicId===null&&(ce.systemId===null||ce.systemId===hi)}function Un(ce){if(ce.name!==pi)return Tn.QUIRKS;const{systemId:ge}=ce;if(ge&&ge.toLowerCase()===ri)return Tn.QUIRKS;let{publicId:et}=ce;if(et!==null){if(et=et.toLowerCase(),xn.has(et))return Tn.QUIRKS;let qt=ge===null?ht:yr;if(On(et,qt))return Tn.QUIRKS;if(qt=ge===null?wn:jn,On(et,qt))return Tn.LIMITED_QUIRKS}return Tn.NO_QUIRKS}const ln={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},qn="definitionurl",Ur="definitionURL",Ni=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])),ai=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Xt.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Xt.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Xt.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Xt.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Xt.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Xt.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Xt.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Xt.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Xt.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Xt.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Xt.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([Ue.B,Ue.BIG,Ue.BLOCKQUOTE,Ue.BODY,Ue.BR,Ue.CENTER,Ue.CODE,Ue.DD,Ue.DIV,Ue.DL,Ue.DT,Ue.EM,Ue.EMBED,Ue.H1,Ue.H2,Ue.H3,Ue.H4,Ue.H5,Ue.H6,Ue.HEAD,Ue.HR,Ue.I,Ue.IMG,Ue.LI,Ue.LISTING,Ue.MENU,Ue.META,Ue.NOBR,Ue.OL,Ue.P,Ue.PRE,Ue.RUBY,Ue.S,Ue.SMALL,Ue.SPAN,Ue.STRONG,Ue.STRIKE,Ue.SUB,Ue.SUP,Ue.TABLE,Ue.TT,Ue.U,Ue.UL,Ue.VAR]);function Ri(ce){const ge=ce.tagID;return ge===Ue.FONT&&ce.attrs.some(({name:qt})=>qt===fr.COLOR||qt===fr.SIZE||qt===fr.FACE)||Ii.has(ge)}function co(ce){for(let ge=0;ge<ce.attrs.length;ge++)if(ce.attrs[ge].name===qn){ce.attrs[ge].name=Ur;break}}function mo(ce){for(let ge=0;ge<ce.attrs.length;ge++){const et=Ni.get(ce.attrs[ge].name);et!=null&&(ce.attrs[ge].name=et)}}function zo(ce){for(let ge=0;ge<ce.attrs.length;ge++){const et=ai.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 kn(ce){const ge=Si.get(ce.tagName);ge!=null&&(ce.tagName=ge,ce.tagID=jr(ce.tagName))}function bo(ce,ge){return ge===Xt.MATHML&&(ce===Ue.MI||ce===Ue.MO||ce===Ue.MN||ce===Ue.MS||ce===Ue.MTEXT)}function wo(ce,ge,et){if(ge===Xt.MATHML&&ce===Ue.ANNOTATION_XML){for(let qt=0;qt<et.length;qt++)if(et[qt].name===fr.ENCODING){const Er=et[qt].value.toLowerCase();return Er===ln.TEXT_HTML||Er===ln.APPLICATION_XML}}return ge===Xt.SVG&&(ce===Ue.FOREIGN_OBJECT||ce===Ue.DESC||ce===Ue.TITLE)}function Wi(ce,ge,et,qt){return(!qt||qt===Xt.HTML)&&wo(ce,ge,et)||(!qt||qt===Xt.MATHML)&&bo(ce,ge)}const so="hidden",ro=8,Xo=3;var Vn;(function(ce){ce[ce.INITIAL=0]="INITIAL",ce[ce.BEFORE_HTML=1]="BEFORE_HTML",ce[ce.BEFORE_HEAD=2]="BEFORE_HEAD",ce[ce.IN_HEAD=3]="IN_HEAD",ce[ce.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",ce[ce.AFTER_HEAD=5]="AFTER_HEAD",ce[ce.IN_BODY=6]="IN_BODY",ce[ce.TEXT=7]="TEXT",ce[ce.IN_TABLE=8]="IN_TABLE",ce[ce.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",ce[ce.IN_CAPTION=10]="IN_CAPTION",ce[ce.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",ce[ce.IN_TABLE_BODY=12]="IN_TABLE_BODY",ce[ce.IN_ROW=13]="IN_ROW",ce[ce.IN_CELL=14]="IN_CELL",ce[ce.IN_SELECT=15]="IN_SELECT",ce[ce.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",ce[ce.IN_TEMPLATE=17]="IN_TEMPLATE",ce[ce.AFTER_BODY=18]="AFTER_BODY",ce[ce.IN_FRAMESET=19]="IN_FRAMESET",ce[ce.AFTER_FRAMESET=20]="AFTER_FRAMESET",ce[ce.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",ce[ce.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(Vn||(Vn={}));const yo={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},ia=new Set([Ue.TABLE,Ue.TBODY,Ue.TFOOT,Ue.THEAD,Ue.TR]),ws={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:_r,onParseError:null};class Ba{constructor(ge,et,qt=null,Er=null){this.fragmentContext=qt,this.scriptHandler=Er,this.currentToken=null,this.stopped=!1,this.insertionMode=Vn.INITIAL,this.originalInsertionMode=Vn.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options=xa(xa({},ws),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 Hr(this.treeAdapter),this.fragmentContextID=qt?jr(this.treeAdapter.getTagName(qt)):Ue.UNKNOWN,this._setContextModes(qt!=null?qt:this.document,this.fragmentContextID),this.openElements=new Fn(this.document,this.treeAdapter,this)}static parse(ge,et){const qt=new this(et);return qt.tokenizer.write(ge,!0),qt.document}static getFragmentParser(ge,et){const qt=xa(xa({},ws),et);ge!=null||(ge=qt.treeAdapter.createElement(un.TEMPLATE,Xt.HTML,[]));const Er=qt.treeAdapter.createElement("documentmock",Xt.HTML,[]),li=new this(qt,Er,ge);return li.fragmentContextID===Ue.TEMPLATE&&li.tmplInsertionModeStack.unshift(Vn.IN_TEMPLATE),li._initTokenizerForFragmentParsing(),li._insertFakeRootElement(),li._resetInsertionMode(),li._findFormInFragmentContext(),li}getFragment(){const ge=this.treeAdapter.getFirstChild(this.document),et=this.treeAdapter.createDocumentFragment();return this._adoptNodes(ge,et),et}_err(ge,et,qt){var Er;if(!this.onParseError)return;const li=(Er=ge.location)!==null&&Er!==void 0?Er:yo,Pi={code:et,startLine:li.startLine,startCol:li.startCol,startOffset:li.startOffset,endLine:qt?li.startLine:li.endLine,endCol:qt?li.startCol:li.endCol,endOffset:qt?li.startOffset:li.endOffset};this.onParseError(Pi)}onItemPush(ge,et,qt){var Er,li;(li=(Er=this.treeAdapter).onItemPush)===null||li===void 0||li.call(Er,ge),qt&&this.openElements.stackTop>0&&this._setContextModes(ge,et)}onItemPop(ge,et){var qt,Er;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(ge,this.currentToken),(Er=(qt=this.treeAdapter).onItemPop)===null||Er===void 0||Er.call(qt,ge,this.openElements.current),et){let li,Pi;this.openElements.stackTop===0&&this.fragmentContext?(li=this.fragmentContext,Pi=this.fragmentContextID):{current:li,currentTagId:Pi}=this.openElements,this._setContextModes(li,Pi)}}_setContextModes(ge,et){const qt=ge===this.document||ge&&this.treeAdapter.getNamespaceURI(ge)===Xt.HTML;this.currentNotInHTML=!qt,this.tokenizer.inForeignNode=!qt&&ge!==void 0&&et!==void 0&&!this._isIntegrationPoint(et,ge)}_switchToTextParsing(ge,et){this._insertElement(ge,Xt.HTML),this.tokenizer.state=et,this.originalInsertionMode=this.insertionMode,this.insertionMode=Vn.TEXT}switchToPlaintextParsing(){this.insertionMode=Vn.TEXT,this.originalInsertionMode=Vn.IN_BODY,this.tokenizer.state=Ci.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)===un.FORM){this.formElement=ge;break}ge=this.treeAdapter.getParentNode(ge)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Xt.HTML))switch(this.fragmentContextID){case Ue.TITLE:case Ue.TEXTAREA:{this.tokenizer.state=Ci.RCDATA;break}case Ue.STYLE:case Ue.XMP:case Ue.IFRAME:case Ue.NOEMBED:case Ue.NOFRAMES:case Ue.NOSCRIPT:{this.tokenizer.state=Ci.RAWTEXT;break}case Ue.SCRIPT:{this.tokenizer.state=Ci.SCRIPT_DATA;break}case Ue.PLAINTEXT:{this.tokenizer.state=Ci.PLAINTEXT;break}default:}}_setDocumentType(ge){const et=ge.name||"",qt=ge.publicId||"",Er=ge.systemId||"";if(this.treeAdapter.setDocumentType(this.document,et,qt,Er),ge.location){const Pi=this.treeAdapter.getChildNodes(this.document).find(Lo=>this.treeAdapter.isDocumentTypeNode(Lo));Pi&&this.treeAdapter.setNodeSourceCodeLocation(Pi,ge.location)}}_attachElementToTree(ge,et){if(this.options.sourceCodeLocationInfo){const qt=et&&Kp(xa({},et),{startTag:et});this.treeAdapter.setNodeSourceCodeLocation(ge,qt)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(ge);else{const qt=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(qt!=null?qt:this.document,ge)}}_appendElement(ge,et){const qt=this.treeAdapter.createElement(ge.tagName,et,ge.attrs);this._attachElementToTree(qt,ge.location)}_insertElement(ge,et){const qt=this.treeAdapter.createElement(ge.tagName,et,ge.attrs);this._attachElementToTree(qt,ge.location),this.openElements.push(qt,ge.tagID)}_insertFakeElement(ge,et){const qt=this.treeAdapter.createElement(ge,Xt.HTML,[]);this._attachElementToTree(qt,null),this.openElements.push(qt,et)}_insertTemplate(ge){const et=this.treeAdapter.createElement(ge.tagName,Xt.HTML,ge.attrs),qt=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(et,qt),this._attachElementToTree(et,ge.location),this.openElements.push(et,ge.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(qt,null)}_insertFakeRootElement(){const ge=this.treeAdapter.createElement(un.HTML,Xt.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(ge,null),this.treeAdapter.appendChild(this.openElements.current,ge),this.openElements.push(ge,Ue.HTML)}_appendCommentNode(ge,et){const qt=this.treeAdapter.createCommentNode(ge.data);this.treeAdapter.appendChild(et,qt),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(qt,ge.location)}_insertCharacters(ge){let et,qt;if(this._shouldFosterParentOnInsertion()?({parent:et,beforeElement:qt}=this._findFosterParentingLocation(),qt?this.treeAdapter.insertTextBefore(et,ge.chars,qt):this.treeAdapter.insertText(et,ge.chars)):(et=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(et,ge.chars)),!ge.location)return;const Er=this.treeAdapter.getChildNodes(et),li=qt?Er.lastIndexOf(qt):Er.length,Pi=Er[li-1];if(this.treeAdapter.getNodeSourceCodeLocation(Pi)){const{endLine:Yo,endCol:ii,endOffset:no}=ge.location;this.treeAdapter.updateNodeSourceCodeLocation(Pi,{endLine:Yo,endCol:ii,endOffset:no})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Pi,ge.location)}_adoptNodes(ge,et){for(let qt=this.treeAdapter.getFirstChild(ge);qt;qt=this.treeAdapter.getFirstChild(ge))this.treeAdapter.detachNode(qt),this.treeAdapter.appendChild(et,qt)}_setEndLocation(ge,et){if(this.treeAdapter.getNodeSourceCodeLocation(ge)&&et.location){const qt=et.location,Er=this.treeAdapter.getTagName(ge),li=et.type===nr.END_TAG&&Er===et.tagName?{endTag:xa({},qt),endLine:qt.endLine,endCol:qt.endCol,endOffset:qt.endOffset}:{endLine:qt.startLine,endCol:qt.startCol,endOffset:qt.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(ge,li)}}shouldProcessStartTagTokenInForeignContent(ge){if(!this.currentNotInHTML)return!1;let et,qt;return this.openElements.stackTop===0&&this.fragmentContext?(et=this.fragmentContext,qt=this.fragmentContextID):{current:et,currentTagId:qt}=this.openElements,ge.tagID===Ue.SVG&&this.treeAdapter.getTagName(et)===un.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(et)===Xt.MATHML?!1:this.tokenizer.inForeignNode||(ge.tagID===Ue.MGLYPH||ge.tagID===Ue.MALIGNMARK)&&qt!==void 0&&!this._isIntegrationPoint(qt,et,Xt.HTML)}_processToken(ge){switch(ge.type){case nr.CHARACTER:{this.onCharacter(ge);break}case nr.NULL_CHARACTER:{this.onNullCharacter(ge);break}case nr.COMMENT:{this.onComment(ge);break}case nr.DOCTYPE:{this.onDoctype(ge);break}case nr.START_TAG:{this._processStartTag(ge);break}case nr.END_TAG:{this.onEndTag(ge);break}case nr.EOF:{this.onEof(ge);break}case nr.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(ge);break}}}_isIntegrationPoint(ge,et,qt){const Er=this.treeAdapter.getNamespaceURI(et),li=this.treeAdapter.getAttrList(et);return Wi(ge,Er,li,qt)}_reconstructActiveFormattingElements(){const ge=this.activeFormattingElements.entries.length;if(ge){const et=this.activeFormattingElements.entries.findIndex(Er=>Er.type===Ln.Marker||this.openElements.contains(Er.element)),qt=et===-1?ge-1:et-1;for(let Er=qt;Er>=0;Er--){const li=this.activeFormattingElements.entries[Er];this._insertElement(li.token,this.treeAdapter.getNamespaceURI(li.element)),li.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Vn.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Ue.P),this.openElements.popUntilTagNamePopped(Ue.P)}_resetInsertionMode(){for(let ge=this.openElements.stackTop;ge>=0;ge--)switch(ge===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[ge]){case Ue.TR:{this.insertionMode=Vn.IN_ROW;return}case Ue.TBODY:case Ue.THEAD:case Ue.TFOOT:{this.insertionMode=Vn.IN_TABLE_BODY;return}case Ue.CAPTION:{this.insertionMode=Vn.IN_CAPTION;return}case Ue.COLGROUP:{this.insertionMode=Vn.IN_COLUMN_GROUP;return}case Ue.TABLE:{this.insertionMode=Vn.IN_TABLE;return}case Ue.BODY:{this.insertionMode=Vn.IN_BODY;return}case Ue.FRAMESET:{this.insertionMode=Vn.IN_FRAMESET;return}case Ue.SELECT:{this._resetInsertionModeForSelect(ge);return}case Ue.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case Ue.HTML:{this.insertionMode=this.headElement?Vn.AFTER_HEAD:Vn.BEFORE_HEAD;return}case Ue.TD:case Ue.TH:{if(ge>0){this.insertionMode=Vn.IN_CELL;return}break}case Ue.HEAD:{if(ge>0){this.insertionMode=Vn.IN_HEAD;return}break}}this.insertionMode=Vn.IN_BODY}_resetInsertionModeForSelect(ge){if(ge>0)for(let et=ge-1;et>0;et--){const qt=this.openElements.tagIDs[et];if(qt===Ue.TEMPLATE)break;if(qt===Ue.TABLE){this.insertionMode=Vn.IN_SELECT_IN_TABLE;return}}this.insertionMode=Vn.IN_SELECT}_isElementCausesFosterParenting(ge){return ia.has(ge)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.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 Ue.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(et)===Xt.HTML)return{parent:this.treeAdapter.getTemplateContent(et),beforeElement:null};break}case Ue.TABLE:{const qt=this.treeAdapter.getParentNode(et);return qt?{parent:qt,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 qt=this.treeAdapter.getNamespaceURI(ge);return vi[qt].has(et)}onCharacter(ge){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){pt(this,ge);return}switch(this.insertionMode){case Vn.INITIAL:{Oo(this,ge);break}case Vn.BEFORE_HTML:{ps(this,ge);break}case Vn.BEFORE_HEAD:{Uo(this,ge);break}case Vn.IN_HEAD:{hs(this,ge);break}case Vn.IN_HEAD_NO_SCRIPT:{Ka(this,ge);break}case Vn.AFTER_HEAD:{hl(this,ge);break}case Vn.IN_BODY:case Vn.IN_CAPTION:case Vn.IN_CELL:case Vn.IN_TEMPLATE:{xu(this,ge);break}case Vn.TEXT:case Vn.IN_SELECT:case Vn.IN_SELECT_IN_TABLE:{this._insertCharacters(ge);break}case Vn.IN_TABLE:case Vn.IN_TABLE_BODY:case Vn.IN_ROW:{Eo(this,ge);break}case Vn.IN_TABLE_TEXT:{gl(this,ge);break}case Vn.IN_COLUMN_GROUP:{vs(this,ge);break}case Vn.AFTER_BODY:{xc(this,ge);break}case Vn.AFTER_AFTER_BODY:{Ce(this,ge);break}default:}}onNullCharacter(ge){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){tt(this,ge);return}switch(this.insertionMode){case Vn.INITIAL:{Oo(this,ge);break}case Vn.BEFORE_HTML:{ps(this,ge);break}case Vn.BEFORE_HEAD:{Uo(this,ge);break}case Vn.IN_HEAD:{hs(this,ge);break}case Vn.IN_HEAD_NO_SCRIPT:{Ka(this,ge);break}case Vn.AFTER_HEAD:{hl(this,ge);break}case Vn.TEXT:{this._insertCharacters(ge);break}case Vn.IN_TABLE:case Vn.IN_TABLE_BODY:case Vn.IN_ROW:{Eo(this,ge);break}case Vn.IN_COLUMN_GROUP:{vs(this,ge);break}case Vn.AFTER_BODY:{xc(this,ge);break}case Vn.AFTER_AFTER_BODY:{Ce(this,ge);break}default:}}onComment(ge){if(this.skipNextNewLine=!1,this.currentNotInHTML){Za(this,ge);return}switch(this.insertionMode){case Vn.INITIAL:case Vn.BEFORE_HTML:case Vn.BEFORE_HEAD:case Vn.IN_HEAD:case Vn.IN_HEAD_NO_SCRIPT:case Vn.AFTER_HEAD:case Vn.IN_BODY:case Vn.IN_TABLE:case Vn.IN_CAPTION:case Vn.IN_COLUMN_GROUP:case Vn.IN_TABLE_BODY:case Vn.IN_ROW:case Vn.IN_CELL:case Vn.IN_SELECT:case Vn.IN_SELECT_IN_TABLE:case Vn.IN_TEMPLATE:case Vn.IN_FRAMESET:case Vn.AFTER_FRAMESET:{Za(this,ge);break}case Vn.IN_TABLE_TEXT:{Xl(this,ge);break}case Vn.AFTER_BODY:{fi(this,ge);break}case Vn.AFTER_AFTER_BODY:case Vn.AFTER_AFTER_FRAMESET:{Ji(this,ge);break}default:}}onDoctype(ge){switch(this.skipNextNewLine=!1,this.insertionMode){case Vn.INITIAL:{Mo(this,ge);break}case Vn.BEFORE_HEAD:case Vn.IN_HEAD:case Vn.IN_HEAD_NO_SCRIPT:case Vn.AFTER_HEAD:{this._err(ge,Rn.misplacedDoctype);break}case Vn.IN_TABLE_TEXT:{Xl(this,ge);break}default:}}onStartTag(ge){this.skipNextNewLine=!1,this.currentToken=ge,this._processStartTag(ge),ge.selfClosing&&!ge.ackSelfClosing&&this._err(ge,Rn.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(ge){this.shouldProcessStartTagTokenInForeignContent(ge)?Ut(this,ge):this._startTagOutsideForeignContent(ge)}_startTagOutsideForeignContent(ge){switch(this.insertionMode){case Vn.INITIAL:{Oo(this,ge);break}case Vn.BEFORE_HTML:{ua(this,ge);break}case Vn.BEFORE_HEAD:{Ga(this,ge);break}case Vn.IN_HEAD:{da(this,ge);break}case Vn.IN_HEAD_NO_SCRIPT:{dl(this,ge);break}case Vn.AFTER_HEAD:{Zl(this,ge);break}case Vn.IN_BODY:{oa(this,ge);break}case Vn.IN_TABLE:{Yl(this,ge);break}case Vn.IN_TABLE_TEXT:{Xl(this,ge);break}case Vn.IN_CAPTION:{Vo(this,ge);break}case Vn.IN_COLUMN_GROUP:{Ha(this,ge);break}case Vn.IN_TABLE_BODY:{Fl(this,ge);break}case Vn.IN_ROW:{Bl(this,ge);break}case Vn.IN_CELL:{cu(this,ge);break}case Vn.IN_SELECT:{hh(this,ge);break}case Vn.IN_SELECT_IN_TABLE:{fh(this,ge);break}case Vn.IN_TEMPLATE:{dc(this,ge);break}case Vn.AFTER_BODY:{Js(this,ge);break}case Vn.IN_FRAMESET:{ol(this,ge);break}case Vn.AFTER_FRAMESET:{Ic(this,ge);break}case Vn.AFTER_AFTER_BODY:{kl(this,ge);break}case Vn.AFTER_AFTER_FRAMESET:{Qe(this,ge);break}default:}}onEndTag(ge){this.skipNextNewLine=!1,this.currentToken=ge,this.currentNotInHTML?an(this,ge):this._endTagOutsideForeignContent(ge)}_endTagOutsideForeignContent(ge){switch(this.insertionMode){case Vn.INITIAL:{Oo(this,ge);break}case Vn.BEFORE_HTML:{qi(this,ge);break}case Vn.BEFORE_HEAD:{ca(this,ge);break}case Vn.IN_HEAD:{Us(this,ge);break}case Vn.IN_HEAD_NO_SCRIPT:{js(this,ge);break}case Vn.AFTER_HEAD:{ac(this,ge);break}case Vn.IN_BODY:{ka(this,ge);break}case Vn.TEXT:{ea(this,ge);break}case Vn.IN_TABLE:{sa(this,ge);break}case Vn.IN_TABLE_TEXT:{Xl(this,ge);break}case Vn.IN_CAPTION:{ha(this,ge);break}case Vn.IN_COLUMN_GROUP:{As(this,ge);break}case Vn.IN_TABLE_BODY:{Nl(this,ge);break}case Vn.IN_ROW:{Ll(this,ge);break}case Vn.IN_CELL:{xd(this,ge);break}case Vn.IN_SELECT:{jd(this,ge);break}case Vn.IN_SELECT_IN_TABLE:{ys(this,ge);break}case Vn.IN_TEMPLATE:{Na(this,ge);break}case Vn.AFTER_BODY:{Ks(this,ge);break}case Vn.IN_FRAMESET:{du(this,ge);break}case Vn.AFTER_FRAMESET:{Zc(this,ge);break}case Vn.AFTER_AFTER_BODY:{Ce(this,ge);break}default:}}onEof(ge){switch(this.insertionMode){case Vn.INITIAL:{Oo(this,ge);break}case Vn.BEFORE_HTML:{ps(this,ge);break}case Vn.BEFORE_HEAD:{Uo(this,ge);break}case Vn.IN_HEAD:{hs(this,ge);break}case Vn.IN_HEAD_NO_SCRIPT:{Ka(this,ge);break}case Vn.AFTER_HEAD:{hl(this,ge);break}case Vn.IN_BODY:case Vn.IN_TABLE:case Vn.IN_CAPTION:case Vn.IN_COLUMN_GROUP:case Vn.IN_TABLE_BODY:case Vn.IN_ROW:case Vn.IN_CELL:case Vn.IN_SELECT:case Vn.IN_SELECT_IN_TABLE:{Va(this,ge);break}case Vn.TEXT:{cc(this,ge);break}case Vn.IN_TABLE_TEXT:{Xl(this,ge);break}case Vn.IN_TEMPLATE:{Hs(this,ge);break}case Vn.AFTER_BODY:case Vn.IN_FRAMESET:case Vn.AFTER_FRAMESET:case Vn.AFTER_AFTER_BODY:case Vn.AFTER_AFTER_FRAMESET:{fo(this,ge);break}default:}}onWhitespaceCharacter(ge){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,ge.chars.charCodeAt(0)===gt.LINE_FEED)){if(ge.chars.length===1)return;ge.chars=ge.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(ge);return}switch(this.insertionMode){case Vn.IN_HEAD:case Vn.IN_HEAD_NO_SCRIPT:case Vn.AFTER_HEAD:case Vn.TEXT:case Vn.IN_COLUMN_GROUP:case Vn.IN_SELECT:case Vn.IN_SELECT_IN_TABLE:case Vn.IN_FRAMESET:case Vn.AFTER_FRAMESET:{this._insertCharacters(ge);break}case Vn.IN_BODY:case Vn.IN_CAPTION:case Vn.IN_CELL:case Vn.IN_TEMPLATE:case Vn.AFTER_BODY:case Vn.AFTER_AFTER_BODY:case Vn.AFTER_AFTER_FRAMESET:{fl(this,ge);break}case Vn.IN_TABLE:case Vn.IN_TABLE_BODY:case Vn.IN_ROW:{Eo(this,ge);break}case Vn.IN_TABLE_TEXT:{Uu(this,ge);break}default:}}}function xl(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):Pa(ce,ge),et}function Cs(ce,ge){let et=null,qt=ce.openElements.stackTop;for(;qt>=0;qt--){const Er=ce.openElements.items[qt];if(Er===ge.element)break;ce._isSpecialElement(Er,ce.openElements.tagIDs[qt])&&(et=Er)}return et||(ce.openElements.shortenToLength(Math.max(qt,0)),ce.activeFormattingElements.removeEntry(ge)),et}function Xi(ce,ge,et){let qt=ge,Er=ce.openElements.getCommonAncestor(ge);for(let li=0,Pi=Er;Pi!==et;li++,Pi=Er){Er=ce.openElements.getCommonAncestor(Pi);const Lo=ce.activeFormattingElements.getElementEntry(Pi),Yo=Lo&&li>=Xo;!Lo||Yo?(Yo&&ce.activeFormattingElements.removeEntry(Lo),ce.openElements.remove(Pi)):(Pi=Ia(ce,Lo),qt===ge&&(ce.activeFormattingElements.bookmark=Lo),ce.treeAdapter.detachNode(qt),ce.treeAdapter.appendChild(Pi,qt),qt=Pi)}return qt}function Ia(ce,ge){const et=ce.treeAdapter.getNamespaceURI(ge.element),qt=ce.treeAdapter.createElement(ge.token.tagName,et,ge.token.attrs);return ce.openElements.replace(ge.element,qt),ge.element=qt,qt}function _a(ce,ge,et){const qt=ce.treeAdapter.getTagName(ge),Er=jr(qt);if(ce._isElementCausesFosterParenting(Er))ce._fosterParentElement(et);else{const li=ce.treeAdapter.getNamespaceURI(ge);Er===Ue.TEMPLATE&&li===Xt.HTML&&(ge=ce.treeAdapter.getTemplateContent(ge)),ce.treeAdapter.appendChild(ge,et)}}function ds(ce,ge,et){const qt=ce.treeAdapter.getNamespaceURI(et.element),{token:Er}=et,li=ce.treeAdapter.createElement(Er.tagName,qt,Er.attrs);ce._adoptNodes(ge,li),ce.treeAdapter.appendChild(ge,li),ce.activeFormattingElements.insertElementAfterBookmark(li,Er),ce.activeFormattingElements.removeEntry(et),ce.openElements.remove(et.element),ce.openElements.insertAfter(ge,li,Er.tagID)}function La(ce,ge){for(let et=0;et<ro;et++){const qt=xl(ce,ge);if(!qt)break;const Er=Cs(ce,qt);if(!Er)break;ce.activeFormattingElements.bookmark=qt;const li=Xi(ce,Er,qt.element),Pi=ce.openElements.getCommonAncestor(qt.element);ce.treeAdapter.detachNode(li),Pi&&_a(ce,Pi,li),ds(ce,Er,qt)}}function Za(ce,ge){ce._appendCommentNode(ge,ce.openElements.currentTmplContentOrNode)}function fi(ce,ge){ce._appendCommentNode(ge,ce.openElements.items[0])}function Ji(ce,ge){ce._appendCommentNode(ge,ce.document)}function fo(ce,ge){if(ce.stopped=!0,ge.location){const et=ce.fragmentContext?0:2;for(let qt=ce.openElements.stackTop;qt>=et;qt--)ce._setEndLocation(ce.openElements.items[qt],ge);if(!ce.fragmentContext&&ce.openElements.stackTop>=0){const qt=ce.openElements.items[0],Er=ce.treeAdapter.getNodeSourceCodeLocation(qt);if(Er&&!Er.endTag&&(ce._setEndLocation(qt,ge),ce.openElements.stackTop>=1)){const li=ce.openElements.items[1],Pi=ce.treeAdapter.getNodeSourceCodeLocation(li);Pi&&!Pi.endTag&&ce._setEndLocation(li,ge)}}}}function Mo(ce,ge){ce._setDocumentType(ge);const et=ge.forceQuirks?Tn.QUIRKS:Un(ge);sr(ge)||ce._err(ge,Rn.nonConformingDoctype),ce.treeAdapter.setDocumentMode(ce.document,et),ce.insertionMode=Vn.BEFORE_HTML}function Oo(ce,ge){ce._err(ge,Rn.missingDoctype,!0),ce.treeAdapter.setDocumentMode(ce.document,Tn.QUIRKS),ce.insertionMode=Vn.BEFORE_HTML,ce._processToken(ge)}function ua(ce,ge){ge.tagID===Ue.HTML?(ce._insertElement(ge,Xt.HTML),ce.insertionMode=Vn.BEFORE_HEAD):ps(ce,ge)}function qi(ce,ge){const et=ge.tagID;(et===Ue.HTML||et===Ue.HEAD||et===Ue.BODY||et===Ue.BR)&&ps(ce,ge)}function ps(ce,ge){ce._insertFakeRootElement(),ce.insertionMode=Vn.BEFORE_HEAD,ce._processToken(ge)}function Ga(ce,ge){switch(ge.tagID){case Ue.HTML:{oa(ce,ge);break}case Ue.HEAD:{ce._insertElement(ge,Xt.HTML),ce.headElement=ce.openElements.current,ce.insertionMode=Vn.IN_HEAD;break}default:Uo(ce,ge)}}function ca(ce,ge){const et=ge.tagID;et===Ue.HEAD||et===Ue.BODY||et===Ue.HTML||et===Ue.BR?Uo(ce,ge):ce._err(ge,Rn.endTagWithoutMatchingOpenElement)}function Uo(ce,ge){ce._insertFakeElement(un.HEAD,Ue.HEAD),ce.headElement=ce.openElements.current,ce.insertionMode=Vn.IN_HEAD,ce._processToken(ge)}function da(ce,ge){switch(ge.tagID){case Ue.HTML:{oa(ce,ge);break}case Ue.BASE:case Ue.BASEFONT:case Ue.BGSOUND:case Ue.LINK:case Ue.META:{ce._appendElement(ge,Xt.HTML),ge.ackSelfClosing=!0;break}case Ue.TITLE:{ce._switchToTextParsing(ge,Ci.RCDATA);break}case Ue.NOSCRIPT:{ce.options.scriptingEnabled?ce._switchToTextParsing(ge,Ci.RAWTEXT):(ce._insertElement(ge,Xt.HTML),ce.insertionMode=Vn.IN_HEAD_NO_SCRIPT);break}case Ue.NOFRAMES:case Ue.STYLE:{ce._switchToTextParsing(ge,Ci.RAWTEXT);break}case Ue.SCRIPT:{ce._switchToTextParsing(ge,Ci.SCRIPT_DATA);break}case Ue.TEMPLATE:{ce._insertTemplate(ge),ce.activeFormattingElements.insertMarker(),ce.framesetOk=!1,ce.insertionMode=Vn.IN_TEMPLATE,ce.tmplInsertionModeStack.unshift(Vn.IN_TEMPLATE);break}case Ue.HEAD:{ce._err(ge,Rn.misplacedStartTagForHeadElement);break}default:hs(ce,ge)}}function Us(ce,ge){switch(ge.tagID){case Ue.HEAD:{ce.openElements.pop(),ce.insertionMode=Vn.AFTER_HEAD;break}case Ue.BODY:case Ue.BR:case Ue.HTML:{hs(ce,ge);break}case Ue.TEMPLATE:{ba(ce,ge);break}default:ce._err(ge,Rn.endTagWithoutMatchingOpenElement)}}function ba(ce,ge){ce.openElements.tmplCount>0?(ce.openElements.generateImpliedEndTagsThoroughly(),ce.openElements.currentTagId!==Ue.TEMPLATE&&ce._err(ge,Rn.closingOfElementWithOpenChildElements),ce.openElements.popUntilTagNamePopped(Ue.TEMPLATE),ce.activeFormattingElements.clearToLastMarker(),ce.tmplInsertionModeStack.shift(),ce._resetInsertionMode()):ce._err(ge,Rn.endTagWithoutMatchingOpenElement)}function hs(ce,ge){ce.openElements.pop(),ce.insertionMode=Vn.AFTER_HEAD,ce._processToken(ge)}function dl(ce,ge){switch(ge.tagID){case Ue.HTML:{oa(ce,ge);break}case Ue.BASEFONT:case Ue.BGSOUND:case Ue.HEAD:case Ue.LINK:case Ue.META:case Ue.NOFRAMES:case Ue.STYLE:{da(ce,ge);break}case Ue.NOSCRIPT:{ce._err(ge,Rn.nestedNoscriptInHead);break}default:Ka(ce,ge)}}function js(ce,ge){switch(ge.tagID){case Ue.NOSCRIPT:{ce.openElements.pop(),ce.insertionMode=Vn.IN_HEAD;break}case Ue.BR:{Ka(ce,ge);break}default:ce._err(ge,Rn.endTagWithoutMatchingOpenElement)}}function Ka(ce,ge){const et=ge.type===nr.EOF?Rn.openElementsLeftAfterEof:Rn.disallowedContentInNoscriptInHead;ce._err(ge,et),ce.openElements.pop(),ce.insertionMode=Vn.IN_HEAD,ce._processToken(ge)}function Zl(ce,ge){switch(ge.tagID){case Ue.HTML:{oa(ce,ge);break}case Ue.BODY:{ce._insertElement(ge,Xt.HTML),ce.framesetOk=!1,ce.insertionMode=Vn.IN_BODY;break}case Ue.FRAMESET:{ce._insertElement(ge,Xt.HTML),ce.insertionMode=Vn.IN_FRAMESET;break}case Ue.BASE:case Ue.BASEFONT:case Ue.BGSOUND:case Ue.LINK:case Ue.META:case Ue.NOFRAMES:case Ue.SCRIPT:case Ue.STYLE:case Ue.TEMPLATE:case Ue.TITLE:{ce._err(ge,Rn.abandonedHeadElementChild),ce.openElements.push(ce.headElement,Ue.HEAD),da(ce,ge),ce.openElements.remove(ce.headElement);break}case Ue.HEAD:{ce._err(ge,Rn.misplacedStartTagForHeadElement);break}default:hl(ce,ge)}}function ac(ce,ge){switch(ge.tagID){case Ue.BODY:case Ue.HTML:case Ue.BR:{hl(ce,ge);break}case Ue.TEMPLATE:{ba(ce,ge);break}default:ce._err(ge,Rn.endTagWithoutMatchingOpenElement)}}function hl(ce,ge){ce._insertFakeElement(un.BODY,Ue.BODY),ce.insertionMode=Vn.IN_BODY,as(ce,ge)}function as(ce,ge){switch(ge.type){case nr.CHARACTER:{xu(ce,ge);break}case nr.WHITESPACE_CHARACTER:{fl(ce,ge);break}case nr.COMMENT:{Za(ce,ge);break}case nr.START_TAG:{oa(ce,ge);break}case nr.END_TAG:{ka(ce,ge);break}case nr.EOF:{Va(ce,ge);break}default:}}function fl(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertCharacters(ge)}function xu(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertCharacters(ge),ce.framesetOk=!1}function Kl(ce,ge){ce.openElements.tmplCount===0&&ce.treeAdapter.adoptAttributes(ce.openElements.items[0],ge.attrs)}function sc(ce,ge){const et=ce.openElements.tryPeekProperlyNestedBodyElement();et&&ce.openElements.tmplCount===0&&(ce.framesetOk=!1,ce.treeAdapter.adoptAttributes(et,ge.attrs))}function ts(ce,ge){const et=ce.openElements.tryPeekProperlyNestedBodyElement();ce.framesetOk&&et&&(ce.treeAdapter.detachNode(et),ce.openElements.popAllUpToHtmlElement(),ce._insertElement(ge,Xt.HTML),ce.insertionMode=Vn.IN_FRAMESET)}function lc(ce,ge){ce.openElements.hasInButtonScope(Ue.P)&&ce._closePElement(),ce._insertElement(ge,Xt.HTML)}function bc(ce,ge){ce.openElements.hasInButtonScope(Ue.P)&&ce._closePElement(),ce.openElements.currentTagId!==void 0&&Xr.has(ce.openElements.currentTagId)&&ce.openElements.pop(),ce._insertElement(ge,Xt.HTML)}function wu(ce,ge){ce.openElements.hasInButtonScope(Ue.P)&&ce._closePElement(),ce._insertElement(ge,Xt.HTML),ce.skipNextNewLine=!0,ce.framesetOk=!1}function Yu(ce,ge){const et=ce.openElements.tmplCount>0;(!ce.formElement||et)&&(ce.openElements.hasInButtonScope(Ue.P)&&ce._closePElement(),ce._insertElement(ge,Xt.HTML),et||(ce.formElement=ce.openElements.current))}function ks(ce,ge){ce.framesetOk=!1;const et=ge.tagID;for(let qt=ce.openElements.stackTop;qt>=0;qt--){const Er=ce.openElements.tagIDs[qt];if(et===Ue.LI&&Er===Ue.LI||(et===Ue.DD||et===Ue.DT)&&(Er===Ue.DD||Er===Ue.DT)){ce.openElements.generateImpliedEndTagsWithExclusion(Er),ce.openElements.popUntilTagNamePopped(Er);break}if(Er!==Ue.ADDRESS&&Er!==Ue.DIV&&Er!==Ue.P&&ce._isSpecialElement(ce.openElements.items[qt],Er))break}ce.openElements.hasInButtonScope(Ue.P)&&ce._closePElement(),ce._insertElement(ge,Xt.HTML)}function Vs(ce,ge){ce.openElements.hasInButtonScope(Ue.P)&&ce._closePElement(),ce._insertElement(ge,Xt.HTML),ce.tokenizer.state=Ci.PLAINTEXT}function gs(ce,ge){ce.openElements.hasInScope(Ue.BUTTON)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped(Ue.BUTTON)),ce._reconstructActiveFormattingElements(),ce._insertElement(ge,Xt.HTML),ce.framesetOk=!1}function Is(ce,ge){const et=ce.activeFormattingElements.getElementEntryInScopeWithTagName(un.A);et&&(La(ce,ge),ce.openElements.remove(et.element),ce.activeFormattingElements.removeEntry(et)),ce._reconstructActiveFormattingElements(),ce._insertElement(ge,Xt.HTML),ce.activeFormattingElements.pushElement(ce.openElements.current,ge)}function Bu(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertElement(ge,Xt.HTML),ce.activeFormattingElements.pushElement(ce.openElements.current,ge)}function Ws(ce,ge){ce._reconstructActiveFormattingElements(),ce.openElements.hasInScope(Ue.NOBR)&&(La(ce,ge),ce._reconstructActiveFormattingElements()),ce._insertElement(ge,Xt.HTML),ce.activeFormattingElements.pushElement(ce.openElements.current,ge)}function Sa(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertElement(ge,Xt.HTML),ce.activeFormattingElements.insertMarker(),ce.framesetOk=!1}function pa(ce,ge){ce.treeAdapter.getDocumentMode(ce.document)!==Tn.QUIRKS&&ce.openElements.hasInButtonScope(Ue.P)&&ce._closePElement(),ce._insertElement(ge,Xt.HTML),ce.framesetOk=!1,ce.insertionMode=Vn.IN_TABLE}function na(ce,ge){ce._reconstructActiveFormattingElements(),ce._appendElement(ge,Xt.HTML),ce.framesetOk=!1,ge.ackSelfClosing=!0}function Ya(ce){const ge=Wr(ce,fr.TYPE);return ge!=null&&ge.toLowerCase()===so}function Mi(ce,ge){ce._reconstructActiveFormattingElements(),ce._appendElement(ge,Xt.HTML),Ya(ge)||(ce.framesetOk=!1),ge.ackSelfClosing=!0}function ms(ce,ge){ce._appendElement(ge,Xt.HTML),ge.ackSelfClosing=!0}function en(ce,ge){ce.openElements.hasInButtonScope(Ue.P)&&ce._closePElement(),ce._appendElement(ge,Xt.HTML),ce.framesetOk=!1,ge.ackSelfClosing=!0}function Ar(ce,ge){ge.tagName=un.IMG,ge.tagID=Ue.IMG,na(ce,ge)}function Ml(ce,ge){ce._insertElement(ge,Xt.HTML),ce.skipNextNewLine=!0,ce.tokenizer.state=Ci.RCDATA,ce.originalInsertionMode=ce.insertionMode,ce.framesetOk=!1,ce.insertionMode=Vn.TEXT}function su(ce,ge){ce.openElements.hasInButtonScope(Ue.P)&&ce._closePElement(),ce._reconstructActiveFormattingElements(),ce.framesetOk=!1,ce._switchToTextParsing(ge,Ci.RAWTEXT)}function ns(ce,ge){ce.framesetOk=!1,ce._switchToTextParsing(ge,Ci.RAWTEXT)}function rs(ce,ge){ce._switchToTextParsing(ge,Ci.RAWTEXT)}function Xs(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertElement(ge,Xt.HTML),ce.framesetOk=!1,ce.insertionMode=ce.insertionMode===Vn.IN_TABLE||ce.insertionMode===Vn.IN_CAPTION||ce.insertionMode===Vn.IN_TABLE_BODY||ce.insertionMode===Vn.IN_ROW||ce.insertionMode===Vn.IN_CELL?Vn.IN_SELECT_IN_TABLE:Vn.IN_SELECT}function Ol(ce,ge){ce.openElements.currentTagId===Ue.OPTION&&ce.openElements.pop(),ce._reconstructActiveFormattingElements(),ce._insertElement(ge,Xt.HTML)}function uc(ce,ge){ce.openElements.hasInScope(Ue.RUBY)&&ce.openElements.generateImpliedEndTags(),ce._insertElement(ge,Xt.HTML)}function ja(ce,ge){ce.openElements.hasInScope(Ue.RUBY)&&ce.openElements.generateImpliedEndTagsWithExclusion(Ue.RTC),ce._insertElement(ge,Xt.HTML)}function To(ce,ge){ce._reconstructActiveFormattingElements(),co(ge),zo(ge),ge.selfClosing?ce._appendElement(ge,Xt.MATHML):ce._insertElement(ge,Xt.MATHML),ge.ackSelfClosing=!0}function Ps(ce,ge){ce._reconstructActiveFormattingElements(),mo(ge),zo(ge),ge.selfClosing?ce._appendElement(ge,Xt.SVG):ce._insertElement(ge,Xt.SVG),ge.ackSelfClosing=!0}function Zs(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertElement(ge,Xt.HTML)}function oa(ce,ge){switch(ge.tagID){case Ue.I:case Ue.S:case Ue.B:case Ue.U:case Ue.EM:case Ue.TT:case Ue.BIG:case Ue.CODE:case Ue.FONT:case Ue.SMALL:case Ue.STRIKE:case Ue.STRONG:{Bu(ce,ge);break}case Ue.A:{Is(ce,ge);break}case Ue.H1:case Ue.H2:case Ue.H3:case Ue.H4:case Ue.H5:case Ue.H6:{bc(ce,ge);break}case Ue.P:case Ue.DL:case Ue.OL:case Ue.UL:case Ue.DIV:case Ue.DIR:case Ue.NAV:case Ue.MAIN:case Ue.MENU:case Ue.ASIDE:case Ue.CENTER:case Ue.FIGURE:case Ue.FOOTER:case Ue.HEADER:case Ue.HGROUP:case Ue.DIALOG:case Ue.DETAILS:case Ue.ADDRESS:case Ue.ARTICLE:case Ue.SEARCH:case Ue.SECTION:case Ue.SUMMARY:case Ue.FIELDSET:case Ue.BLOCKQUOTE:case Ue.FIGCAPTION:{lc(ce,ge);break}case Ue.LI:case Ue.DD:case Ue.DT:{ks(ce,ge);break}case Ue.BR:case Ue.IMG:case Ue.WBR:case Ue.AREA:case Ue.EMBED:case Ue.KEYGEN:{na(ce,ge);break}case Ue.HR:{en(ce,ge);break}case Ue.RB:case Ue.RTC:{uc(ce,ge);break}case Ue.RT:case Ue.RP:{ja(ce,ge);break}case Ue.PRE:case Ue.LISTING:{wu(ce,ge);break}case Ue.XMP:{su(ce,ge);break}case Ue.SVG:{Ps(ce,ge);break}case Ue.HTML:{Kl(ce,ge);break}case Ue.BASE:case Ue.LINK:case Ue.META:case Ue.STYLE:case Ue.TITLE:case Ue.SCRIPT:case Ue.BGSOUND:case Ue.BASEFONT:case Ue.TEMPLATE:{da(ce,ge);break}case Ue.BODY:{sc(ce,ge);break}case Ue.FORM:{Yu(ce,ge);break}case Ue.NOBR:{Ws(ce,ge);break}case Ue.MATH:{To(ce,ge);break}case Ue.TABLE:{pa(ce,ge);break}case Ue.INPUT:{Mi(ce,ge);break}case Ue.PARAM:case Ue.TRACK:case Ue.SOURCE:{ms(ce,ge);break}case Ue.IMAGE:{Ar(ce,ge);break}case Ue.BUTTON:{gs(ce,ge);break}case Ue.APPLET:case Ue.OBJECT:case Ue.MARQUEE:{Sa(ce,ge);break}case Ue.IFRAME:{ns(ce,ge);break}case Ue.SELECT:{Xs(ce,ge);break}case Ue.OPTION:case Ue.OPTGROUP:{Ol(ce,ge);break}case Ue.NOEMBED:case Ue.NOFRAMES:{rs(ce,ge);break}case Ue.FRAMESET:{ts(ce,ge);break}case Ue.TEXTAREA:{Ml(ce,ge);break}case Ue.NOSCRIPT:{ce.options.scriptingEnabled?rs(ce,ge):Zs(ce,ge);break}case Ue.PLAINTEXT:{Vs(ce,ge);break}case Ue.COL:case Ue.TH:case Ue.TD:case Ue.TR:case Ue.HEAD:case Ue.FRAME:case Ue.TBODY:case Ue.TFOOT:case Ue.THEAD:case Ue.CAPTION:case Ue.COLGROUP:break;default:Zs(ce,ge)}}function Zo(ce,ge){if(ce.openElements.hasInScope(Ue.BODY)&&(ce.insertionMode=Vn.AFTER_BODY,ce.options.sourceCodeLocationInfo)){const et=ce.openElements.tryPeekProperlyNestedBodyElement();et&&ce._setEndLocation(et,ge)}}function Xa(ce,ge){ce.openElements.hasInScope(Ue.BODY)&&(ce.insertionMode=Vn.AFTER_BODY,Ks(ce,ge))}function pl(ce,ge){const et=ge.tagID;ce.openElements.hasInScope(et)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped(et))}function Da(ce){const ge=ce.openElements.tmplCount>0,{formElement:et}=ce;ge||(ce.formElement=null),(et||ge)&&ce.openElements.hasInScope(Ue.FORM)&&(ce.openElements.generateImpliedEndTags(),ge?ce.openElements.popUntilTagNamePopped(Ue.FORM):et&&ce.openElements.remove(et))}function wl(ce){ce.openElements.hasInButtonScope(Ue.P)||ce._insertFakeElement(un.P,Ue.P),ce._closePElement()}function Ts(ce){ce.openElements.hasInListItemScope(Ue.LI)&&(ce.openElements.generateImpliedEndTagsWithExclusion(Ue.LI),ce.openElements.popUntilTagNamePopped(Ue.LI))}function _u(ce,ge){const et=ge.tagID;ce.openElements.hasInScope(et)&&(ce.openElements.generateImpliedEndTagsWithExclusion(et),ce.openElements.popUntilTagNamePopped(et))}function ga(ce){ce.openElements.hasNumberedHeaderInScope()&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilNumberedHeaderPopped())}function Ds(ce,ge){const et=ge.tagID;ce.openElements.hasInScope(et)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped(et),ce.activeFormattingElements.clearToLastMarker())}function aa(ce){ce._reconstructActiveFormattingElements(),ce._insertFakeElement(un.BR,Ue.BR),ce.openElements.pop(),ce.framesetOk=!1}function Pa(ce,ge){const et=ge.tagName,qt=ge.tagID;for(let Er=ce.openElements.stackTop;Er>0;Er--){const li=ce.openElements.items[Er],Pi=ce.openElements.tagIDs[Er];if(qt===Pi&&(qt!==Ue.UNKNOWN||ce.treeAdapter.getTagName(li)===et)){ce.openElements.generateImpliedEndTagsWithExclusion(qt),ce.openElements.stackTop>=Er&&ce.openElements.shortenToLength(Er);break}if(ce._isSpecialElement(li,Pi))break}}function ka(ce,ge){switch(ge.tagID){case Ue.A:case Ue.B:case Ue.I:case Ue.S:case Ue.U:case Ue.EM:case Ue.TT:case Ue.BIG:case Ue.CODE:case Ue.FONT:case Ue.NOBR:case Ue.SMALL:case Ue.STRIKE:case Ue.STRONG:{La(ce,ge);break}case Ue.P:{wl(ce);break}case Ue.DL:case Ue.UL:case Ue.OL:case Ue.DIR:case Ue.DIV:case Ue.NAV:case Ue.PRE:case Ue.MAIN:case Ue.MENU:case Ue.ASIDE:case Ue.BUTTON:case Ue.CENTER:case Ue.FIGURE:case Ue.FOOTER:case Ue.HEADER:case Ue.HGROUP:case Ue.DIALOG:case Ue.ADDRESS:case Ue.ARTICLE:case Ue.DETAILS:case Ue.SEARCH:case Ue.SECTION:case Ue.SUMMARY:case Ue.LISTING:case Ue.FIELDSET:case Ue.BLOCKQUOTE:case Ue.FIGCAPTION:{pl(ce,ge);break}case Ue.LI:{Ts(ce);break}case Ue.DD:case Ue.DT:{_u(ce,ge);break}case Ue.H1:case Ue.H2:case Ue.H3:case Ue.H4:case Ue.H5:case Ue.H6:{ga(ce);break}case Ue.BR:{aa(ce);break}case Ue.BODY:{Zo(ce,ge);break}case Ue.HTML:{Xa(ce,ge);break}case Ue.FORM:{Da(ce);break}case Ue.APPLET:case Ue.OBJECT:case Ue.MARQUEE:{Ds(ce,ge);break}case Ue.TEMPLATE:{ba(ce,ge);break}default:Pa(ce,ge)}}function Va(ce,ge){ce.tmplInsertionModeStack.length>0?Hs(ce,ge):fo(ce,ge)}function ea(ce,ge){var et;ge.tagID===Ue.SCRIPT&&((et=ce.scriptHandler)===null||et===void 0||et.call(ce,ce.openElements.current)),ce.openElements.pop(),ce.insertionMode=ce.originalInsertionMode}function cc(ce,ge){ce._err(ge,Rn.eofInElementThatCanContainOnlyText),ce.openElements.pop(),ce.insertionMode=ce.originalInsertionMode,ce.onEof(ge)}function Eo(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=Vn.IN_TABLE_TEXT,ge.type){case nr.CHARACTER:{gl(ce,ge);break}case nr.WHITESPACE_CHARACTER:{Uu(ce,ge);break}}else Qs(ce,ge)}function dd(ce,ge){ce.openElements.clearBackToTableContext(),ce.activeFormattingElements.insertMarker(),ce._insertElement(ge,Xt.HTML),ce.insertionMode=Vn.IN_CAPTION}function ra(ce,ge){ce.openElements.clearBackToTableContext(),ce._insertElement(ge,Xt.HTML),ce.insertionMode=Vn.IN_COLUMN_GROUP}function Vc(ce,ge){ce.openElements.clearBackToTableContext(),ce._insertFakeElement(un.COLGROUP,Ue.COLGROUP),ce.insertionMode=Vn.IN_COLUMN_GROUP,Ha(ce,ge)}function Cu(ce,ge){ce.openElements.clearBackToTableContext(),ce._insertElement(ge,Xt.HTML),ce.insertionMode=Vn.IN_TABLE_BODY}function lu(ce,ge){ce.openElements.clearBackToTableContext(),ce._insertFakeElement(un.TBODY,Ue.TBODY),ce.insertionMode=Vn.IN_TABLE_BODY,Fl(ce,ge)}function Wc(ce,ge){ce.openElements.hasInTableScope(Ue.TABLE)&&(ce.openElements.popUntilTagNamePopped(Ue.TABLE),ce._resetInsertionMode(),ce._processStartTag(ge))}function Ec(ce,ge){Ya(ge)?ce._appendElement(ge,Xt.HTML):Qs(ce,ge),ge.ackSelfClosing=!0}function uu(ce,ge){!ce.formElement&&ce.openElements.tmplCount===0&&(ce._insertElement(ge,Xt.HTML),ce.formElement=ce.openElements.current,ce.openElements.pop())}function Yl(ce,ge){switch(ge.tagID){case Ue.TD:case Ue.TH:case Ue.TR:{lu(ce,ge);break}case Ue.STYLE:case Ue.SCRIPT:case Ue.TEMPLATE:{da(ce,ge);break}case Ue.COL:{Vc(ce,ge);break}case Ue.FORM:{uu(ce,ge);break}case Ue.TABLE:{Wc(ce,ge);break}case Ue.TBODY:case Ue.TFOOT:case Ue.THEAD:{Cu(ce,ge);break}case Ue.INPUT:{Ec(ce,ge);break}case Ue.CAPTION:{dd(ce,ge);break}case Ue.COLGROUP:{ra(ce,ge);break}default:Qs(ce,ge)}}function sa(ce,ge){switch(ge.tagID){case Ue.TABLE:{ce.openElements.hasInTableScope(Ue.TABLE)&&(ce.openElements.popUntilTagNamePopped(Ue.TABLE),ce._resetInsertionMode());break}case Ue.TEMPLATE:{ba(ce,ge);break}case Ue.BODY:case Ue.CAPTION:case Ue.COL:case Ue.COLGROUP:case Ue.HTML:case Ue.TBODY:case Ue.TD:case Ue.TFOOT:case Ue.TH:case Ue.THEAD:case Ue.TR:break;default:Qs(ce,ge)}}function Qs(ce,ge){const et=ce.fosterParentingEnabled;ce.fosterParentingEnabled=!0,as(ce,ge),ce.fosterParentingEnabled=et}function Uu(ce,ge){ce.pendingCharacterTokens.push(ge)}function gl(ce,ge){ce.pendingCharacterTokens.push(ge),ce.hasNonWhitespacePendingCharacterToken=!0}function Xl(ce,ge){let et=0;if(ce.hasNonWhitespacePendingCharacterToken)for(;et<ce.pendingCharacterTokens.length;et++)Qs(ce,ce.pendingCharacterTokens[et]);else for(;et<ce.pendingCharacterTokens.length;et++)ce._insertCharacters(ce.pendingCharacterTokens[et]);ce.insertionMode=ce.originalInsertionMode,ce._processToken(ge)}const il=new Set([Ue.CAPTION,Ue.COL,Ue.COLGROUP,Ue.TBODY,Ue.TD,Ue.TFOOT,Ue.TH,Ue.THEAD,Ue.TR]);function Vo(ce,ge){const et=ge.tagID;il.has(et)?ce.openElements.hasInTableScope(Ue.CAPTION)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped(Ue.CAPTION),ce.activeFormattingElements.clearToLastMarker(),ce.insertionMode=Vn.IN_TABLE,Yl(ce,ge)):oa(ce,ge)}function ha(ce,ge){const et=ge.tagID;switch(et){case Ue.CAPTION:case Ue.TABLE:{ce.openElements.hasInTableScope(Ue.CAPTION)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped(Ue.CAPTION),ce.activeFormattingElements.clearToLastMarker(),ce.insertionMode=Vn.IN_TABLE,et===Ue.TABLE&&sa(ce,ge));break}case Ue.BODY:case Ue.COL:case Ue.COLGROUP:case Ue.HTML:case Ue.TBODY:case Ue.TD:case Ue.TFOOT:case Ue.TH:case Ue.THEAD:case Ue.TR:break;default:ka(ce,ge)}}function Ha(ce,ge){switch(ge.tagID){case Ue.HTML:{oa(ce,ge);break}case Ue.COL:{ce._appendElement(ge,Xt.HTML),ge.ackSelfClosing=!0;break}case Ue.TEMPLATE:{da(ce,ge);break}default:vs(ce,ge)}}function As(ce,ge){switch(ge.tagID){case Ue.COLGROUP:{ce.openElements.currentTagId===Ue.COLGROUP&&(ce.openElements.pop(),ce.insertionMode=Vn.IN_TABLE);break}case Ue.TEMPLATE:{ba(ce,ge);break}case Ue.COL:break;default:vs(ce,ge)}}function vs(ce,ge){ce.openElements.currentTagId===Ue.COLGROUP&&(ce.openElements.pop(),ce.insertionMode=Vn.IN_TABLE,ce._processToken(ge))}function Fl(ce,ge){switch(ge.tagID){case Ue.TR:{ce.openElements.clearBackToTableBodyContext(),ce._insertElement(ge,Xt.HTML),ce.insertionMode=Vn.IN_ROW;break}case Ue.TH:case Ue.TD:{ce.openElements.clearBackToTableBodyContext(),ce._insertFakeElement(un.TR,Ue.TR),ce.insertionMode=Vn.IN_ROW,Bl(ce,ge);break}case Ue.CAPTION:case Ue.COL:case Ue.COLGROUP:case Ue.TBODY:case Ue.TFOOT:case Ue.THEAD:{ce.openElements.hasTableBodyContextInTableScope()&&(ce.openElements.clearBackToTableBodyContext(),ce.openElements.pop(),ce.insertionMode=Vn.IN_TABLE,Yl(ce,ge));break}default:Yl(ce,ge)}}function Nl(ce,ge){const et=ge.tagID;switch(ge.tagID){case Ue.TBODY:case Ue.TFOOT:case Ue.THEAD:{ce.openElements.hasInTableScope(et)&&(ce.openElements.clearBackToTableBodyContext(),ce.openElements.pop(),ce.insertionMode=Vn.IN_TABLE);break}case Ue.TABLE:{ce.openElements.hasTableBodyContextInTableScope()&&(ce.openElements.clearBackToTableBodyContext(),ce.openElements.pop(),ce.insertionMode=Vn.IN_TABLE,sa(ce,ge));break}case Ue.BODY:case Ue.CAPTION:case Ue.COL:case Ue.COLGROUP:case Ue.HTML:case Ue.TD:case Ue.TH:case Ue.TR:break;default:sa(ce,ge)}}function Bl(ce,ge){switch(ge.tagID){case Ue.TH:case Ue.TD:{ce.openElements.clearBackToTableRowContext(),ce._insertElement(ge,Xt.HTML),ce.insertionMode=Vn.IN_CELL,ce.activeFormattingElements.insertMarker();break}case Ue.CAPTION:case Ue.COL:case Ue.COLGROUP:case Ue.TBODY:case Ue.TFOOT:case Ue.THEAD:case Ue.TR:{ce.openElements.hasInTableScope(Ue.TR)&&(ce.openElements.clearBackToTableRowContext(),ce.openElements.pop(),ce.insertionMode=Vn.IN_TABLE_BODY,Fl(ce,ge));break}default:Yl(ce,ge)}}function Ll(ce,ge){switch(ge.tagID){case Ue.TR:{ce.openElements.hasInTableScope(Ue.TR)&&(ce.openElements.clearBackToTableRowContext(),ce.openElements.pop(),ce.insertionMode=Vn.IN_TABLE_BODY);break}case Ue.TABLE:{ce.openElements.hasInTableScope(Ue.TR)&&(ce.openElements.clearBackToTableRowContext(),ce.openElements.pop(),ce.insertionMode=Vn.IN_TABLE_BODY,Nl(ce,ge));break}case Ue.TBODY:case Ue.TFOOT:case Ue.THEAD:{(ce.openElements.hasInTableScope(ge.tagID)||ce.openElements.hasInTableScope(Ue.TR))&&(ce.openElements.clearBackToTableRowContext(),ce.openElements.pop(),ce.insertionMode=Vn.IN_TABLE_BODY,Nl(ce,ge));break}case Ue.BODY:case Ue.CAPTION:case Ue.COL:case Ue.COLGROUP:case Ue.HTML:case Ue.TD:case Ue.TH:break;default:sa(ce,ge)}}function cu(ce,ge){const et=ge.tagID;il.has(et)?(ce.openElements.hasInTableScope(Ue.TD)||ce.openElements.hasInTableScope(Ue.TH))&&(ce._closeTableCell(),Bl(ce,ge)):oa(ce,ge)}function xd(ce,ge){const et=ge.tagID;switch(et){case Ue.TD:case Ue.TH:{ce.openElements.hasInTableScope(et)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped(et),ce.activeFormattingElements.clearToLastMarker(),ce.insertionMode=Vn.IN_ROW);break}case Ue.TABLE:case Ue.TBODY:case Ue.TFOOT:case Ue.THEAD:case Ue.TR:{ce.openElements.hasInTableScope(et)&&(ce._closeTableCell(),Ll(ce,ge));break}case Ue.BODY:case Ue.CAPTION:case Ue.COL:case Ue.COLGROUP:case Ue.HTML:break;default:ka(ce,ge)}}function hh(ce,ge){switch(ge.tagID){case Ue.HTML:{oa(ce,ge);break}case Ue.OPTION:{ce.openElements.currentTagId===Ue.OPTION&&ce.openElements.pop(),ce._insertElement(ge,Xt.HTML);break}case Ue.OPTGROUP:{ce.openElements.currentTagId===Ue.OPTION&&ce.openElements.pop(),ce.openElements.currentTagId===Ue.OPTGROUP&&ce.openElements.pop(),ce._insertElement(ge,Xt.HTML);break}case Ue.HR:{ce.openElements.currentTagId===Ue.OPTION&&ce.openElements.pop(),ce.openElements.currentTagId===Ue.OPTGROUP&&ce.openElements.pop(),ce._appendElement(ge,Xt.HTML),ge.ackSelfClosing=!0;break}case Ue.INPUT:case Ue.KEYGEN:case Ue.TEXTAREA:case Ue.SELECT:{ce.openElements.hasInSelectScope(Ue.SELECT)&&(ce.openElements.popUntilTagNamePopped(Ue.SELECT),ce._resetInsertionMode(),ge.tagID!==Ue.SELECT&&ce._processStartTag(ge));break}case Ue.SCRIPT:case Ue.TEMPLATE:{da(ce,ge);break}default:}}function jd(ce,ge){switch(ge.tagID){case Ue.OPTGROUP:{ce.openElements.stackTop>0&&ce.openElements.currentTagId===Ue.OPTION&&ce.openElements.tagIDs[ce.openElements.stackTop-1]===Ue.OPTGROUP&&ce.openElements.pop(),ce.openElements.currentTagId===Ue.OPTGROUP&&ce.openElements.pop();break}case Ue.OPTION:{ce.openElements.currentTagId===Ue.OPTION&&ce.openElements.pop();break}case Ue.SELECT:{ce.openElements.hasInSelectScope(Ue.SELECT)&&(ce.openElements.popUntilTagNamePopped(Ue.SELECT),ce._resetInsertionMode());break}case Ue.TEMPLATE:{ba(ce,ge);break}default:}}function fh(ce,ge){const et=ge.tagID;et===Ue.CAPTION||et===Ue.TABLE||et===Ue.TBODY||et===Ue.TFOOT||et===Ue.THEAD||et===Ue.TR||et===Ue.TD||et===Ue.TH?(ce.openElements.popUntilTagNamePopped(Ue.SELECT),ce._resetInsertionMode(),ce._processStartTag(ge)):hh(ce,ge)}function ys(ce,ge){const et=ge.tagID;et===Ue.CAPTION||et===Ue.TABLE||et===Ue.TBODY||et===Ue.TFOOT||et===Ue.THEAD||et===Ue.TR||et===Ue.TD||et===Ue.TH?ce.openElements.hasInTableScope(et)&&(ce.openElements.popUntilTagNamePopped(Ue.SELECT),ce._resetInsertionMode(),ce.onEndTag(ge)):jd(ce,ge)}function dc(ce,ge){switch(ge.tagID){case Ue.BASE:case Ue.BASEFONT:case Ue.BGSOUND:case Ue.LINK:case Ue.META:case Ue.NOFRAMES:case Ue.SCRIPT:case Ue.STYLE:case Ue.TEMPLATE:case Ue.TITLE:{da(ce,ge);break}case Ue.CAPTION:case Ue.COLGROUP:case Ue.TBODY:case Ue.TFOOT:case Ue.THEAD:{ce.tmplInsertionModeStack[0]=Vn.IN_TABLE,ce.insertionMode=Vn.IN_TABLE,Yl(ce,ge);break}case Ue.COL:{ce.tmplInsertionModeStack[0]=Vn.IN_COLUMN_GROUP,ce.insertionMode=Vn.IN_COLUMN_GROUP,Ha(ce,ge);break}case Ue.TR:{ce.tmplInsertionModeStack[0]=Vn.IN_TABLE_BODY,ce.insertionMode=Vn.IN_TABLE_BODY,Fl(ce,ge);break}case Ue.TD:case Ue.TH:{ce.tmplInsertionModeStack[0]=Vn.IN_ROW,ce.insertionMode=Vn.IN_ROW,Bl(ce,ge);break}default:ce.tmplInsertionModeStack[0]=Vn.IN_BODY,ce.insertionMode=Vn.IN_BODY,oa(ce,ge)}}function Na(ce,ge){ge.tagID===Ue.TEMPLATE&&ba(ce,ge)}function Hs(ce,ge){ce.openElements.tmplCount>0?(ce.openElements.popUntilTagNamePopped(Ue.TEMPLATE),ce.activeFormattingElements.clearToLastMarker(),ce.tmplInsertionModeStack.shift(),ce._resetInsertionMode(),ce.onEof(ge)):fo(ce,ge)}function Js(ce,ge){ge.tagID===Ue.HTML?oa(ce,ge):xc(ce,ge)}function Ks(ce,ge){var et;if(ge.tagID===Ue.HTML){if(ce.fragmentContext||(ce.insertionMode=Vn.AFTER_AFTER_BODY),ce.options.sourceCodeLocationInfo&&ce.openElements.tagIDs[0]===Ue.HTML){ce._setEndLocation(ce.openElements.items[0],ge);const qt=ce.openElements.items[1];qt&&!(!((et=ce.treeAdapter.getNodeSourceCodeLocation(qt))===null||et===void 0)&&et.endTag)&&ce._setEndLocation(qt,ge)}}else xc(ce,ge)}function xc(ce,ge){ce.insertionMode=Vn.IN_BODY,as(ce,ge)}function ol(ce,ge){switch(ge.tagID){case Ue.HTML:{oa(ce,ge);break}case Ue.FRAMESET:{ce._insertElement(ge,Xt.HTML);break}case Ue.FRAME:{ce._appendElement(ge,Xt.HTML),ge.ackSelfClosing=!0;break}case Ue.NOFRAMES:{da(ce,ge);break}default:}}function du(ce,ge){ge.tagID===Ue.FRAMESET&&!ce.openElements.isRootHtmlElementCurrent()&&(ce.openElements.pop(),!ce.fragmentContext&&ce.openElements.currentTagId!==Ue.FRAMESET&&(ce.insertionMode=Vn.AFTER_FRAMESET))}function Ic(ce,ge){switch(ge.tagID){case Ue.HTML:{oa(ce,ge);break}case Ue.NOFRAMES:{da(ce,ge);break}default:}}function Zc(ce,ge){ge.tagID===Ue.HTML&&(ce.insertionMode=Vn.AFTER_AFTER_FRAMESET)}function kl(ce,ge){ge.tagID===Ue.HTML?oa(ce,ge):Ce(ce,ge)}function Ce(ce,ge){ce.insertionMode=Vn.IN_BODY,as(ce,ge)}function Qe(ce,ge){switch(ge.tagID){case Ue.HTML:{oa(ce,ge);break}case Ue.NOFRAMES:{da(ce,ge);break}default:}}function tt(ce,ge){ge.chars=mn,ce._insertCharacters(ge)}function pt(ce,ge){ce._insertCharacters(ge),ce.framesetOk=!1}function Ft(ce){for(;ce.treeAdapter.getNamespaceURI(ce.openElements.current)!==Xt.HTML&&ce.openElements.currentTagId!==void 0&&!ce._isIntegrationPoint(ce.openElements.currentTagId,ce.openElements.current);)ce.openElements.pop()}function Ut(ce,ge){if(Ri(ge))Ft(ce),ce._startTagOutsideForeignContent(ge);else{const et=ce._getAdjustedCurrentElement(),qt=ce.treeAdapter.getNamespaceURI(et);qt===Xt.MATHML?co(ge):qt===Xt.SVG&&(kn(ge),mo(ge)),zo(ge),ge.selfClosing?ce._appendElement(ge,qt):ce._insertElement(ge,qt),ge.ackSelfClosing=!0}}function an(ce,ge){if(ge.tagID===Ue.P||ge.tagID===Ue.BR){Ft(ce),ce._endTagOutsideForeignContent(ge);return}for(let et=ce.openElements.stackTop;et>0;et--){const qt=ce.openElements.items[et];if(ce.treeAdapter.getNamespaceURI(qt)===Xt.HTML){ce._endTagOutsideForeignContent(ge);break}const Er=ce.treeAdapter.getTagName(qt);if(Er.toLowerCase()===ge.tagName){ge.tagName=Er,ce.openElements.shortenToLength(et);break}}}const Nn=/["$&'<>\u0080-\uFFFF]/g,Sr=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 tr(ce){let ge="",et=0,qt;for(;(qt=Nn.exec(ce))!==null;){const{index:Er}=qt,li=ce.charCodeAt(Er),Pi=Sr.get(li);Pi===void 0?(ge+=`${ce.substring(et,Er)}&#x${xr(ce,Er).toString(16)};`,et=Nn.lastIndex+=+((li&64512)===55296)):(ge+=ce.substring(et,Er)+Pi,et=Er+1)}return ge+ce.substr(et)}const Zr=null;function Mr(ce,ge){return function(qt){let Er,li=0,Pi="";for(;Er=ce.exec(qt);)li!==Er.index&&(Pi+=qt.substring(li,Er.index)),Pi+=ge.get(Er[0].charCodeAt(0)),li=Er.index+1;return Pi+qt.substring(li)}}const lr=null,Ao=Mr(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),Go=Mr(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),ta=new Set([un.AREA,un.BASE,un.BASEFONT,un.BGSOUND,un.BR,un.COL,un.EMBED,un.FRAME,un.HR,un.IMG,un.INPUT,un.KEYGEN,un.LINK,un.META,un.PARAM,un.SOURCE,un.TRACK,un.WBR]);function ao(ce,ge){return ge.treeAdapter.isElementNode(ce)&&ge.treeAdapter.getNamespaceURI(ce)===NS.HTML&&ta.has(ge.treeAdapter.getTagName(ce))}const Do={treeAdapter:_r,scriptingEnabled:!0};function Bo(ce,ge){const et=xa(xa({},Do),ge);return ao(ce,et)?"":Ja(ce,et)}function Qa(ce,ge){const et=xa(xa({},Do),ge);return Ki(ce,et)}function Ja(ce,ge){let et="";const qt=ge.treeAdapter.isElementNode(ce)&&ge.treeAdapter.getTagName(ce)===$.TEMPLATE&&ge.treeAdapter.getNamespaceURI(ce)===NS.HTML?ge.treeAdapter.getTemplateContent(ce):ce,Er=ge.treeAdapter.getChildNodes(qt);if(Er)for(const li of Er)et+=Ki(li,ge);return et}function Ki(ce,ge){return ge.treeAdapter.isElementNode(ce)?es(ce,ge):ge.treeAdapter.isTextNode(ce)?za(ce,ge):ge.treeAdapter.isCommentNode(ce)?Co(ce,ge):ge.treeAdapter.isDocumentTypeNode(ce)?ml(ce,ge):""}function es(ce,ge){const et=ge.treeAdapter.getTagName(ce);return`<${et}${Wa(ce,ge)}>${ao(ce,ge)?"":`${Ja(ce,ge)}</${et}>`}`}function Wa(ce,{treeAdapter:ge}){let et="";for(const qt of ge.getAttrList(ce)){if(et+=" ",qt.namespace)switch(qt.namespace){case NS.XML:{et+=`xml:${qt.name}`;break}case NS.XMLNS:{qt.name!=="xmlns"&&(et+="xmlns:"),et+=qt.name;break}case NS.XLINK:{et+=`xlink:${qt.name}`;break}default:et+=`${qt.prefix}:${qt.name}`}else et+=qt.name;et+=`="${escapeAttribute(qt.value)}"`}return et}function za(ce,ge){const{treeAdapter:et}=ge,qt=et.getTextNodeContent(ce),Er=et.getParentNode(ce),li=Er&&et.isElementNode(Er)&&et.getTagName(Er);return li&&et.getNamespaceURI(Er)===NS.HTML&&hasUnescapedText(li,ge.scriptingEnabled)?qt:escapeText(qt)}function Co(ce,{treeAdapter:ge}){return`<!--${ge.getCommentNodeContent(ce)}-->`}function ml(ce,{treeAdapter:ge}){return`<!DOCTYPE ${ge.getDocumentTypeNodeName(ce)}>`}function ss(ce,ge){return Parser.parse(ce,ge)}function Qo(ce,ge,et){typeof ce=="string"&&(et=ge,ge=ce,ce=null);const qt=Parser.getFragmentParser(ce,et);return qt.tokenizer.write(ge,!0),qt.getFragment()}var Ko=ae(17970),wa=ae(10528);const fs=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,qs=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Cl={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Ql(ce,ge){const et=wd(ce),qt=Et("type",{handlers:{root:Il,element:_l,text:Ir,comment:hu,doctype:al,raw:$s},unknown:Ss}),Er={parser:et?new Ba(Cl):Ba.getFragmentParser(void 0,Cl),handle(Lo){qt(Lo,Er)},stitches:!1,options:ge||{}};qt(ce,Er),fu(Er,(0,Ko.Pk)());const li=et?Er.parser.document:Er.parser.getFragment(),Pi=$e(li,{file:Er.options.file});return Er.stitches&&(0,wa.Vn)(Pi,"comment",function(Lo,Yo,ii){const no=Lo;if(no.value.stitch&&ii&&Yo!==void 0){const Wo=ii.children;return Wo[Yo]=no.value.stitch,Yo}}),Pi.type==="root"&&Pi.children.length===1&&Pi.children[0].type===ce.type?Pi.children[0]:Pi}function Pr(ce,ge){let et=-1;if(ce)for(;++et<ce.length;)ge.handle(ce[et])}function Il(ce,ge){Pr(ce.children,ge)}function _l(ce,ge){Xu(ce,ge),Pr(ce.children,ge),hc(ce,ge)}function Ir(ce,ge){ge.parser.tokenizer.state>4&&(ge.parser.tokenizer.state=0);const et={type:nr.CHARACTER,chars:ce.value,location:Pl(ce)};fu(ge,(0,Ko.Pk)(ce)),ge.parser.currentToken=et,ge.parser._processToken(ge.parser.currentToken)}function al(ce,ge){const et={type:nr.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Pl(ce)};fu(ge,(0,Ko.Pk)(ce)),ge.parser.currentToken=et,ge.parser._processToken(ge.parser.currentToken)}function Pu(ce,ge){ge.stitches=!0;const et=pu(ce);if("children"in ce&&"children"in et){const qt=Ql({type:"root",children:ce.children},ge.options);et.children=qt.children}hu({type:"comment",value:{stitch:et}},ge)}function hu(ce,ge){const et=ce.value,qt={type:nr.COMMENT,data:et,location:Pl(ce)};fu(ge,(0,Ko.Pk)(ce)),ge.parser.currentToken=qt,ge.parser._processToken(ge.parser.currentToken)}function $s(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,sl(ge,(0,Ko.Pk)(ce)),ge.parser.tokenizer.write(ge.options.tagfilter?ce.value.replace(fs,"&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 Ss(ce,ge){const et=ce;if(ge.options.passThrough&&ge.options.passThrough.includes(et.type))Pu(et,ge);else{let qt="";throw qs.has(et.type)&&(qt=". 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"+qt)}}function fu(ce,ge){sl(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=Ci.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 sl(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 Xu(ce,ge){const et=ce.tagName.toLowerCase();if(ge.parser.tokenizer.state===Ci.PLAINTEXT)return;fu(ge,(0,Ko.Pk)(ce));const qt=ge.parser.openElements.current;let Er="namespaceURI"in qt?qt.namespaceURI:Ke.t.html;Er===Ke.t.html&&et==="svg"&&(Er=Ke.t.svg);const li=Dt(Kp(xa({},ce),{children:[]}),{space:Er===Ke.t.svg?"svg":"html"}),Pi={type:nr.START_TAG,tagName:et,tagID:jr(et),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in li?li.attrs:[],location:Pl(ce)};ge.parser.currentToken=Pi,ge.parser._processToken(ge.parser.currentToken),ge.parser.tokenizer.lastStartTagName=et}function hc(ce,ge){const et=ce.tagName.toLowerCase();if(!ge.parser.tokenizer.inForeignNode&&vn.includes(et)||ge.parser.tokenizer.state===Ci.PLAINTEXT)return;fu(ge,(0,Ko.rb)(ce));const qt={type:nr.END_TAG,tagName:et,tagID:jr(et),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Pl(ce)};ge.parser.currentToken=qt,ge.parser._processToken(ge.parser.currentToken),et===ge.parser.tokenizer.lastStartTagName&&(ge.parser.tokenizer.state===Ci.RCDATA||ge.parser.tokenizer.state===Ci.RAWTEXT||ge.parser.tokenizer.state===Ci.SCRIPT_DATA)&&(ge.parser.tokenizer.state=Ci.DATA)}function wd(ce){const ge=ce.type==="root"?ce.children[0]:ce;return!!(ge&&(ge.type==="doctype"||ge.type==="element"&&ge.tagName.toLowerCase()==="html"))}function Pl(ce){const ge=(0,Ko.Pk)(ce)||{line:void 0,column:void 0,offset:void 0},et=(0,Ko.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 pu(ce){return"children"in ce?(0,Pe.ZP)(Kp(xa({},ce),{children:[]})):(0,Pe.ZP)(ce)}function hd(ce){return function(ge,et){return Ql(ge,Kp(xa({},ce),{file:et}))}}},10787:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return He}});function oe(St){if(typeof St!="string")throw new TypeError("Expected a string");return St.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Pe=ae(2348),Ie=ae(10502);function ke(St,$e,It){const Fe=It||{},te=(0,Ie.O)(Fe.ignore||[]),ee=Ve($e);let he=-1;for(;++he<ee.length;)(0,Pe.S4)(St,"text",ue);function ue(me,be){let Ae=-1,De;for(;++Ae<be.length;){const Ye=be[Ae],nt=De?De.children:void 0;if(te(Ye,nt?nt.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 nt=0;const ot=Ae.children.indexOf(me);let mt=!1,it=[];De.lastIndex=0;let vt=De.exec(me.value);for(;vt;){const wt=vt.index,Nt={index:vt.index,input:vt.input,stack:[...be,me]};let Ht=Ye(...vt,Nt);if(typeof Ht=="string"&&(Ht=Ht.length>0?{type:"text",value:Ht}:void 0),Ht===!1?De.lastIndex=wt+1:(nt!==wt&&it.push({type:"text",value:me.value.slice(nt,wt)}),Array.isArray(Ht)?it.push(...Ht):Ht&&it.push(Ht),nt=wt+vt[0].length,mt=!0),!De.global)break;vt=De.exec(me.value)}return mt?(nt<me.value.length&&it.push({type:"text",value:me.value.slice(nt)}),Ae.children.splice(ot,1,...it)):it=[me],ot+it.length}}function Ve(St){const $e=[];if(!Array.isArray(St))throw new TypeError("Expected find and replace tuple or list of tuples");const It=!St[0]||Array.isArray(St[0])?St:[St];let Fe=-1;for(;++Fe<It.length;){const te=It[Fe];$e.push([Te(te[0]),Ge(te[1])])}return $e}function Te(St){return typeof St=="string"?new RegExp(oe(St),"g"):St}function Ge(St){return typeof St=="function"?St:function(){return St}}function lt(St){ke(St,[/\r?\n|\r/g,Ke])}function Ke(){return{type:"break"}}function He(){return function(St){lt(St)}}},30084:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return ee}});var oe=ae(87342);function Pe(he,ue){const fe=String(he);let me=fe.indexOf(ue),be=me,Ae=0,De=0;if(typeof ue!="string")throw new TypeError("Expected substring");for(;me!==-1;)me===be?++Ae>De&&(De=Ae):Ae=1,be=me+ue.length,me=fe.indexOf(ue,be);return De}function Ie(){return{enter:{mathFlow:he,mathFlowFenceMeta:ue,mathText:Ae},exit:{mathFlow:be,mathFlowFence:me,mathFlowFenceMeta:fe,mathFlowValue:Ye,mathText:De,mathTextData:Ye}};function he(nt){const Je={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[Je]}},nt)}function ue(){this.buffer()}function fe(){const nt=this.resume(),Je=this.stack[this.stack.length-1];(0,oe.ok)(Je.type==="math"),Je.meta=nt}function me(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function be(nt){const Je=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),ot=this.stack[this.stack.length-1];(0,oe.ok)(ot.type==="math"),this.exit(nt),ot.value=Je;const mt=ot.data.hChildren[0];(0,oe.ok)(mt.type==="element"),(0,oe.ok)(mt.tagName==="code"),mt.children.push({type:"text",value:Je}),this.data.mathFlowInside=void 0}function Ae(nt){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},nt),this.buffer()}function De(nt){const Je=this.resume(),ot=this.stack[this.stack.length-1];(0,oe.ok)(ot.type==="inlineMath"),this.exit(nt),ot.value=Je,ot.data.hChildren.push({type:"text",value:Je})}function Ye(nt){this.config.enter.data.call(this,nt),this.config.exit.data.call(this,nt)}}function ke(he){let ue=(he||{}).singleDollarTextMath;return ue==null&&(ue=!0),me.peek=be,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
`,inConstruct:"mathFlowMeta"},{character:"$",after:ue?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:fe,inlineMath:me}};function fe(Ae,De,Ye,nt){const Je=Ae.value||"",ot=Ye.createTracker(nt),mt="$".repeat(Math.max(Pe(Je,"$")+1,2)),it=Ye.enter("mathFlow");let vt=ot.move(mt);if(Ae.meta){const wt=Ye.enter("mathFlowMeta");vt+=ot.move(Ye.safe(Ae.meta,xa({after:`
`,before:vt,encode:["$"]},ot.current()))),wt()}return vt+=ot.move(`
`),Je&&(vt+=ot.move(Je+`
`)),vt+=ot.move(mt),it(),vt}function me(Ae,De,Ye){let nt=Ae.value||"",Je=1;for(ue||Je++;new RegExp("(^|[^$])"+"\\$".repeat(Je)+"([^$]|$)").test(nt);)Je++;const ot="$".repeat(Je);/[^ \r\n]/.test(nt)&&(/^[ \r\n]/.test(nt)&&/[ \r\n]$/.test(nt)||/^\$|\$$/.test(nt))&&(nt=" "+nt+" ");let mt=-1;for(;++mt<Ye.unsafe.length;){const it=Ye.unsafe[mt];if(!it.atBreak)continue;const vt=Ye.compilePattern(it);let wt;for(;wt=vt.exec(nt);){let Nt=wt.index;nt.codePointAt(Nt)===10&&nt.codePointAt(Nt-1)===13&&Nt--,nt=nt.slice(0,Nt)+" "+nt.slice(wt.index+1)}}return ot+nt+ot}function be(){return"$"}}var Ve=ae(26735),Te=ae(80722);const Ge={tokenize:Ke,concrete:!0,name:"mathFlow"},lt={tokenize:He,partial:!0};function Ke(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(Yt){return he.enter("mathFlow"),he.enter("mathFlowFence"),he.enter("mathFlowFenceSequence"),nt(Yt)}function nt(Yt){return Yt===36?(he.consume(Yt),De++,nt):De<2?fe(Yt):(he.exit("mathFlowFenceSequence"),(0,Ve.f)(he,Je,"whitespace")(Yt))}function Je(Yt){return Yt===null||(0,Te.Ch)(Yt)?mt(Yt):(he.enter("mathFlowFenceMeta"),he.enter("chunkString",{contentType:"string"}),ot(Yt))}function ot(Yt){return Yt===null||(0,Te.Ch)(Yt)?(he.exit("chunkString"),he.exit("mathFlowFenceMeta"),mt(Yt)):Yt===36?fe(Yt):(he.consume(Yt),ot)}function mt(Yt){return he.exit("mathFlowFence"),me.interrupt?ue(Yt):he.attempt(lt,it,Ht)(Yt)}function it(Yt){return he.attempt({tokenize:Qt,partial:!0},Ht,vt)(Yt)}function vt(Yt){return(Ae?(0,Ve.f)(he,wt,"linePrefix",Ae+1):wt)(Yt)}function wt(Yt){return Yt===null?Ht(Yt):(0,Te.Ch)(Yt)?he.attempt(lt,it,Ht)(Yt):(he.enter("mathFlowValue"),Nt(Yt))}function Nt(Yt){return Yt===null||(0,Te.Ch)(Yt)?(he.exit("mathFlowValue"),wt(Yt)):(he.consume(Yt),Nt)}function Ht(Yt){return he.exit("mathFlow"),ue(Yt)}function Qt(Yt,yn,bt){let ft=0;return(0,Ve.f)(Yt,ct,"linePrefix",me.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function ct(kt){return Yt.enter("mathFlowFence"),Yt.enter("mathFlowFenceSequence"),Jt(kt)}function Jt(kt){return kt===36?(ft++,Yt.consume(kt),Jt):ft<De?bt(kt):(Yt.exit("mathFlowFenceSequence"),(0,Ve.f)(Yt,fn,"whitespace")(kt))}function fn(kt){return kt===null||(0,Te.Ch)(kt)?(Yt.exit("mathFlowFence"),yn(kt)):bt(kt)}}}function He(he,ue,fe){const me=this;return be;function be(De){return De===null?ue(De):(he.enter("lineEnding"),he.consume(De),he.exit("lineEnding"),Ae)}function Ae(De){return me.parser.lazy[me.now().line]?fe(De):ue(De)}}function St(he){let fe=(he||{}).singleDollarTextMath;return fe==null&&(fe=!0),{tokenize:me,resolve:$e,previous:It,name:"mathText"};function me(be,Ae,De){const Ye=this;let nt=0,Je,ot;return mt;function mt(Ht){return be.enter("mathText"),be.enter("mathTextSequence"),it(Ht)}function it(Ht){return Ht===36?(be.consume(Ht),nt++,it):nt<2&&!fe?De(Ht):(be.exit("mathTextSequence"),vt(Ht))}function vt(Ht){return Ht===null?De(Ht):Ht===36?(ot=be.enter("mathTextSequence"),Je=0,Nt(Ht)):Ht===32?(be.enter("space"),be.consume(Ht),be.exit("space"),vt):(0,Te.Ch)(Ht)?(be.enter("lineEnding"),be.consume(Ht),be.exit("lineEnding"),vt):(be.enter("mathTextData"),wt(Ht))}function wt(Ht){return Ht===null||Ht===32||Ht===36||(0,Te.Ch)(Ht)?(be.exit("mathTextData"),vt(Ht)):(be.consume(Ht),wt)}function Nt(Ht){return Ht===36?(be.consume(Ht),Je++,Nt):Je===nt?(be.exit("mathTextSequence"),be.exit("mathText"),Ae(Ht)):(ot.type="mathTextData",wt(Ht))}}}function $e(he){let ue=he.length-4,fe=3,me,be;if((he[fe][1].type==="lineEnding"||he[fe][1].type==="space")&&(he[ue][1].type==="lineEnding"||he[ue][1].type==="space")){for(me=fe;++me<ue;)if(he[me][1].type==="mathTextData"){he[ue][1].type="mathTextPadding",he[fe][1].type="mathTextPadding",fe+=2,ue-=2;break}}for(me=fe-1,ue++;++me<=ue;)be===void 0?me!==ue&&he[me][1].type!=="lineEnding"&&(be=me):(me===ue||he[me][1].type==="lineEnding")&&(he[be][1].type="mathTextData",me!==be+2&&(he[be][1].end=he[me-1][1].end,he.splice(be+2,me-be-2),ue-=me-be-2,me=be+2),be=void 0);return he}function It(he){return he!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Fe(he){return{flow:{36:Ge},text:{36:St(he)}}}const te={};function ee(he){const ue=this,fe=he||te,me=ue.data(),be=me.micromarkExtensions||(me.micromarkExtensions=[]),Ae=me.fromMarkdownExtensions||(me.fromMarkdownExtensions=[]),De=me.toMarkdownExtensions||(me.toMarkdownExtensions=[]);be.push(Fe(fe)),Ae.push(Ie()),De.push(ke(fe))}},16722:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return lt}});const oe=Ke=>typeof Ke=="object"&&Ke!=null&&Ke.nodeType===1,Pe=(Ke,He)=>(!He||Ke!=="hidden")&&Ke!=="visible"&&Ke!=="clip",Ie=(Ke,He)=>{if(Ke.clientHeight<Ke.scrollHeight||Ke.clientWidth<Ke.scrollWidth){const St=getComputedStyle(Ke,null);return Pe(St.overflowY,He)||Pe(St.overflowX,He)||($e=>{const It=(Fe=>{if(!Fe.ownerDocument||!Fe.ownerDocument.defaultView)return null;try{return Fe.ownerDocument.defaultView.frameElement}catch(te){return null}})($e);return!!It&&(It.clientHeight<$e.scrollHeight||It.clientWidth<$e.scrollWidth)})(Ke)}return!1},ke=(Ke,He,St,$e,It,Fe,te,ee)=>Fe<Ke&&te>He||Fe>Ke&&te<He?0:Fe<=Ke&&ee<=St||te>=He&&ee>=St?Fe-Ke-$e:te>He&&ee<St||Fe<Ke&&ee>St?te-He+It:0,Ve=Ke=>{const He=Ke.parentElement;return He==null?Ke.getRootNode().host||null:He},Te=(Ke,He)=>{var St,$e,It,Fe;if(typeof document=="undefined")return[];const{scrollMode:te,block:ee,inline:he,boundary:ue,skipOverflowHiddenElements:fe}=He,me=typeof ue=="function"?ue:fn=>fn!==ue;if(!oe(Ke))throw new TypeError("Invalid target");const be=document.scrollingElement||document.documentElement,Ae=[];let De=Ke;for(;oe(De)&&me(De);){if(De=Ve(De),De===be){Ae.push(De);break}De!=null&&De===document.body&&Ie(De)&&!Ie(document.documentElement)||De!=null&&Ie(De,fe)&&Ae.push(De)}const Ye=($e=(St=window.visualViewport)==null?void 0:St.width)!=null?$e:innerWidth,nt=(Fe=(It=window.visualViewport)==null?void 0:It.height)!=null?Fe:innerHeight,{scrollX:Je,scrollY:ot}=window,{height:mt,width:it,top:vt,right:wt,bottom:Nt,left:Ht}=Ke.getBoundingClientRect(),{top:Qt,right:Yt,bottom:yn,left:bt}=(fn=>{const kt=window.getComputedStyle(fn);return{top:parseFloat(kt.scrollMarginTop)||0,right:parseFloat(kt.scrollMarginRight)||0,bottom:parseFloat(kt.scrollMarginBottom)||0,left:parseFloat(kt.scrollMarginLeft)||0}})(Ke);let ft=ee==="start"||ee==="nearest"?vt-Qt:ee==="end"?Nt+yn:vt+mt/2-Qt+yn,ct=he==="center"?Ht+it/2-bt+Yt:he==="end"?wt+Yt:Ht-bt;const Jt=[];for(let fn=0;fn<Ae.length;fn++){const kt=Ae[fn],{height:bn,width:An,top:Yn,right:Vt,bottom:Bn,left:Mt}=kt.getBoundingClientRect();if(te==="if-needed"&&vt>=0&&Ht>=0&&Nt<=nt&&wt<=Ye&&(kt===be&&!Ie(kt)||vt>=Yn&&Nt<=Bn&&Ht>=Mt&&wt<=Vt))return Jt;const Hn=getComputedStyle(kt),ur=parseInt(Hn.borderLeftWidth,10),at=parseInt(Hn.borderTopWidth,10),_e=parseInt(Hn.borderRightWidth,10),Re=parseInt(Hn.borderBottomWidth,10);let Xe=0,st=0;const Be="offsetWidth"in kt?kt.offsetWidth-kt.clientWidth-ur-_e:0,Et="offsetHeight"in kt?kt.offsetHeight-kt.clientHeight-at-Re:0,En="offsetWidth"in kt?kt.offsetWidth===0?0:An/kt.offsetWidth:0,sn="offsetHeight"in kt?kt.offsetHeight===0?0:bn/kt.offsetHeight:0;if(be===kt)Xe=ee==="start"?ft:ee==="end"?ft-nt:ee==="nearest"?ke(ot,ot+nt,nt,at,Re,ot+ft,ot+ft+mt,mt):ft-nt/2,st=he==="start"?ct:he==="center"?ct-Ye/2:he==="end"?ct-Ye:ke(Je,Je+Ye,Ye,ur,_e,Je+ct,Je+ct+it,it),Xe=Math.max(0,Xe+ot),st=Math.max(0,st+Je);else{Xe=ee==="start"?ft-Yn-at:ee==="end"?ft-Bn+Re+Et:ee==="nearest"?ke(Yn,Bn,bn,at,Re+Et,ft,ft+mt,mt):ft-(Yn+bn/2)+Et/2,st=he==="start"?ct-Mt-ur:he==="center"?ct-(Mt+An/2)+Be/2:he==="end"?ct-Vt+_e+Be:ke(Mt,Vt,An,ur,_e+Be,ct,ct+it,it);const{scrollLeft:Mn,scrollTop:Dt}=kt;Xe=sn===0?0:Math.max(0,Math.min(Dt+Xe/sn,kt.scrollHeight-bn/sn+Et)),st=En===0?0:Math.max(0,Math.min(Mn+st/En,kt.scrollWidth-An/En+Be)),ft+=Dt-Xe,ct+=Mn-st}Jt.push({el:kt,top:Xe,left:st})}return Jt},Ge=Ke=>Ke===!1?{block:"end",inline:"nearest"}:(He=>He===Object(He)&&Object.keys(He).length!==0)(Ke)?Ke:{block:"start",inline:"nearest"};function lt(Ke,He){if(!Ke.isConnected||!(It=>{let Fe=It;for(;Fe&&Fe.parentNode;){if(Fe.parentNode===document)return!0;Fe=Fe.parentNode instanceof ShadowRoot?Fe.parentNode.host:Fe.parentNode}return!1})(Ke))return;const St=(It=>{const Fe=window.getComputedStyle(It);return{top:parseFloat(Fe.scrollMarginTop)||0,right:parseFloat(Fe.scrollMarginRight)||0,bottom:parseFloat(Fe.scrollMarginBottom)||0,left:parseFloat(Fe.scrollMarginLeft)||0}})(Ke);if((It=>typeof It=="object"&&typeof It.behavior=="function")(He))return He.behavior(Te(Ke,He));const $e=typeof He=="boolean"||He==null?void 0:He.behavior;for(const{el:It,top:Fe,left:te}of Te(Ke,Ge(He))){const ee=Fe-St.top+St.bottom,he=te-St.left+St.right;It.scroll({top:ee,left:he,behavior:$e})}}},71523:function(We,Ee,ae){"use strict";ae.d(Ee,{P:function(){return Pe},Q:function(){return oe}});function oe(Ie){const ke=String(Ie||"").trim();return ke?ke.split(/[ \t\n\r\f]+/g):[]}function Pe(Ie){return Ie.join(" ").trim()}},10502:function(We,Ee,ae){"use strict";ae.d(Ee,{O:function(){return Pe}});const oe=function(Ke,He,St,$e,It){const Fe=Pe(He);if(St!=null&&(typeof St!="number"||St<0||St===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if($e!=null&&(!oe($e)||!$e.children))throw new Error("Expected parent node");if($e==null!=(St==null))throw new Error("Expected both parent and index");return lt(Ke)?Fe.call(It,Ke,St,$e):!1},Pe=function(Ke){if(Ke==null)return Ge;if(typeof Ke=="function")return Te(Ke);if(typeof Ke=="object")return Array.isArray(Ke)?Ie(Ke):ke(Ke);if(typeof Ke=="string")return Ve(Ke);throw new Error("Expected function, string, or object as test")};function Ie(Ke){const He=[];let St=-1;for(;++St<Ke.length;)He[St]=Pe(Ke[St]);return Te($e);function $e(...It){let Fe=-1;for(;++Fe<He.length;)if(He[Fe].apply(this,It))return!0;return!1}}function ke(Ke){const He=Ke;return Te(St);function St($e){const It=$e;let Fe;for(Fe in Ke)if(It[Fe]!==He[Fe])return!1;return!0}}function Ve(Ke){return Te(He);function He(St){return St&&St.type===Ke}}function Te(Ke){return He;function He(St,$e,It){return!!(lt(St)&&Ke.call(this,St,typeof $e=="number"?$e:void 0,It||void 0))}}function Ge(){return!0}function lt(Ke){return Ke!==null&&typeof Ke=="object"&&"type"in Ke}},17970:function(We,Ee,ae){"use strict";ae.d(Ee,{FK:function(){return ke},Pk:function(){return Pe},rb:function(){return oe}});const oe=Ie("end"),Pe=Ie("start");function Ie(Ve){return Te;function Te(Ge){const lt=Ge&&Ge.position&&Ge.position[Ve]||{};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 ke(Ve){const Te=Pe(Ve),Ge=oe(Ve);if(Te&&Ge)return{start:Te,end:Ge}}},2348:function(We,Ee,ae){"use strict";ae.d(Ee,{AM:function(){return Te},S4:function(){return Ge}});var oe=ae(10502);function Pe(Ke){return Ke}const Ie=[],ke=!0,Ve=!1,Te="skip";function Ge(Ke,He,St,$e){let It;typeof He=="function"&&typeof St!="function"?($e=St,St=He):It=He;const Fe=(0,oe.O)(It),te=$e?-1:1;ee(Ke,void 0,[])();function ee(he,ue,fe){const me=he&&typeof he=="object"?he:{};if(typeof me.type=="string"){const Ae=typeof me.tagName=="string"?me.tagName:typeof me.name=="string"?me.name:void 0;Object.defineProperty(be,"name",{value:"node ("+(he.type+(Ae?"<"+Ae+">":""))+")"})}return be;function be(){let Ae=Ie,De,Ye,nt;if((!He||Fe(he,ue,fe[fe.length-1]||void 0))&&(Ae=lt(St(he,fe)),Ae[0]===Ve))return Ae;if("children"in he&&he.children){const Je=he;if(Je.children&&Ae[0]!==Te)for(Ye=($e?Je.children.length:-1)+te,nt=fe.concat(Je);Ye>-1&&Ye<Je.children.length;){const ot=Je.children[Ye];if(De=ee(ot,Ye,nt)(),De[0]===Ve)return De;Ye=typeof De[1]=="number"?De[1]:Ye+te}}return Ae}}}function lt(Ke){return Array.isArray(Ke)?Ke:typeof Ke=="number"?[ke,Ke]:Ke==null?Ie:[Ke]}},10528:function(We,Ee,ae){"use strict";ae.d(Ee,{Vn:function(){return Pe}});var oe=ae(2348);function Pe(Ie,ke,Ve,Te){let Ge,lt,Ke;typeof ke=="function"&&typeof Ve!="function"?(lt=void 0,Ke=ke,Ge=Ve):(lt=ke,Ke=Ve,Ge=Te),(0,oe.S4)(Ie,lt,He,Ge);function He(St,$e){const It=$e[$e.length-1],Fe=It?It.children.indexOf(St):void 0;return Ke(St,Fe,It)}}},43309:function(We,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(We){"use strict";We.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(We){"use strict";We.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"}')}}]);
}());