|
|
!(function(){var G1=Object.defineProperty,z1=Object.defineProperties;var V1=Object.getOwnPropertyDescriptors;var Tv=Object.getOwnPropertySymbols;var e1=Object.prototype.hasOwnProperty,t1=Object.prototype.propertyIsEnumerable;var n1=Math.pow,$b=(Ke,we,ae)=>we in Ke?G1(Ke,we,{enumerable:!0,configurable:!0,writable:!0,value:ae}):Ke[we]=ae,Uu=(Ke,we)=>{for(var ae in we||(we={}))e1.call(we,ae)&&$b(Ke,ae,we[ae]);if(Tv)for(var ae of Tv(we))t1.call(we,ae)&&$b(Ke,ae,we[ae]);return Ke},eg=(Ke,we)=>z1(Ke,V1(we));var r1=(Ke,we)=>{var ae={};for(var ie in Ke)e1.call(Ke,ie)&&we.indexOf(ie)<0&&(ae[ie]=Ke[ie]);if(Ke!=null&&Tv)for(var ie of Tv(Ke))we.indexOf(ie)<0&&t1.call(Ke,ie)&&(ae[ie]=Ke[ie]);return ae};var i1=(Ke,we,ae)=>new Promise((ie,Pe)=>{var Fe=Me=>{try{tt(ae.next(Me))}catch(_e){Pe(_e)}},Oe=Me=>{try{tt(ae.throw(Me))}catch(_e){Pe(_e)}},tt=Me=>Me.done?ie(Me.value):Promise.resolve(Me.value).then(Fe,Oe);tt((ae=ae.apply(Ke,we)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[7973],{71749:function(){"use strict"},30483:function(){"use strict"},71736:function(Ke,we){"use strict";we.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},52654:function(Ke,we){"use strict";we.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"}},62038:function(Ke,we){"use strict";we.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"}},57971:function(Ke,we,ae){"use strict";var ie=ae(67294),Pe=Object.defineProperty,Fe=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,Me=(et,lt,Et)=>lt in et?Pe(et,lt,{enumerable:!0,configurable:!0,writable:!0,value:Et}):et[lt]=Et,_e=(et,lt)=>{for(var Et in lt||(lt={}))Oe.call(lt,Et)&&Me(et,Et,lt[Et]);if(Fe)for(var Et of Fe(lt))tt.call(lt,Et)&&Me(et,Et,lt[Et]);return et};const ut=et=>React.createElement("svg",_e({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},et),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"}));we.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},36913:function(Ke,we,ae){"use strict";var ie=ae(67294),Pe=Object.defineProperty,Fe=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,Me=(et,lt,Et)=>lt in et?Pe(et,lt,{enumerable:!0,configurable:!0,writable:!0,value:Et}):et[lt]=Et,_e=(et,lt)=>{for(var Et in lt||(lt={}))Oe.call(lt,Et)&&Me(et,Et,lt[Et]);if(Fe)for(var Et of Fe(lt))tt.call(lt,Et)&&Me(et,Et,lt[Et]);return et};const ut=et=>React.createElement("svg",_e({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},et),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"}));we.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},18023:function(){"use strict";function Ke(Ge,te,ee,de){ee===void 0&&(ee=0),de===void 0&&(de=1/0),this._name=Ge,this._defaultValue=te,this._minimum=ee,this._maximum=de}Object.defineProperty(Ke.prototype,"name",{get:function(){return this._name},set:function(Ge){if(typeof Ge!="string"||Ge==="")throw new Error("Shape name must be a valid string.");this._name=Ge}}),Object.defineProperty(Ke.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Ge){if(typeof Ge!="number"||isNaN(Ge))throw new Error("The default value must be a real number, not: "+Ge);this._defaultValue=Ge}}),Object.defineProperty(Ke.prototype,"minimum",{get:function(){return this._minimum},set:function(Ge){if(typeof Ge!="number"||isNaN(Ge))throw new Error("Minimum must be a real number, not: "+Ge);this._minimum=Ge}}),Object.defineProperty(Ke.prototype,"maximum",{get:function(){return this._maximum},set:function(Ge){if(typeof Ge!="number"||isNaN(Ge))throw new Error("Maximum must be a real number, not: "+Ge);this._maximum=Ge}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Ge,te){var ee=go.Shape._FigureParameters[Ge];return ee?ee[te]:null},go.Shape.setFigureParameter=function(Ge,te,ee){if(!(ee instanceof Ke))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 de=go.Shape._FigureParameters[Ge];de||(de=[],go.Shape._FigureParameters[Ge]=de),de[te]=ee};var we=[];function ae(Ge,te){var ee=we.pop();return ee===void 0?new go.Point(Ge,te):(ee.x=Ge,ee.y=te,ee)}function ie(){var Ge=we.pop();return Ge===void 0?new go.Point:Ge}function Pe(Ge){we.push(Ge)}function Fe(Ge,te,ee,de,le,pe,me,xe,be){be||(be=new go.Point);var Be=Ge-ee,at=le-me,dt=NaN,gt=NaN;if(Be===0)if(at===0)Ge===ee&&(dt=Ge,gt=te);else{var ft=(pe-xe)/at,Nt=pe-ft*le;dt=Ge,gt=ft*dt+Nt}else if(at===0){var Tt=(te-de)/Be,Ct=te-Tt*Ge;dt=le,gt=Tt*dt+Ct}else{var Tt=(te-de)/Be,ft=(pe-xe)/at,Ct=te-Tt*Ge,Nt=pe-ft*le;dt=(Nt-Ct)/(Tt-ft),gt=Tt*dt+Ct}return be.x=dt,be.y=gt,be}function Oe(Ge,te,ee,de,le,pe,me,xe,be,Be,at,dt,gt,ft){var Nt=1-be,Tt=be,Ct=Ge*Nt+ee*Tt,Vt=te*Nt+de*Tt,Rt=ee*Nt+le*Tt,nn=de*Nt+pe*Tt,Cn=le*Nt+me*Tt,un=pe*Nt+xe*Tt,Nn=Ct*Nt+Rt*Tt,wt=Vt*Nt+nn*Tt,pt=Rt*Nt+Cn*Tt,Ie=nn*Nt+un*Tt,on=Nn*Nt+pt*Tt,Bn=wt*Nt+Ie*Tt;Be.x=Ct,Be.y=Vt,at.x=Nn,at.y=wt,dt.x=on,dt.y=Bn,gt.x=pt,gt.y=Ie,ft.x=Cn,ft.y=un}var tt=new go.Spot(.156,.156),Me=new go.Spot(.844,.844),_e=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ke("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;(isNaN(de)||de<0)&&(de=5),de=Math.min(de,te/3),de=Math.min(de,ee/3);var le=de*_e,pe=new go.Geometry().add(new go.PathFigure(de,0,!0).add(new go.PathSegment(go.PathSegment.Line,te-de,0)).add(new go.PathSegment(go.PathSegment.Bezier,te,de,te-le,0,te,le)).add(new go.PathSegment(go.PathSegment.Line,te,ee-de)).add(new go.PathSegment(go.PathSegment.Bezier,te-de,ee,te,ee-le,te-le,ee)).add(new go.PathSegment(go.PathSegment.Line,de,ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee-de,le,ee,0,ee-le)).add(new go.PathSegment(go.PathSegment.Line,0,de)).add(new go.PathSegment(go.PathSegment.Bezier,de,0,0,le,le,0).close()));return le>1&&(pe.spot1=new go.Spot(0,0,le,le),pe.spot2=new go.Spot(1,1,-le,-le)),pe}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Ge,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(Ge,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(Ge,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(Ge,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(Ge,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(Ge,te,ee){var de=new go.Geometry(go.Geometry.Line);return de.startX=0,de.startY=ee/2,de.endX=te,de.endY=ee/2,de}),go.Shape.defineFigureGenerator("LineV",function(Ge,te,ee){var de=new go.Geometry(go.Geometry.Line);return de.startX=te/2,de.startY=0,de.endX=te/2,de.endY=ee,de}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Ge,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(Ge,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(Ge,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(Ge,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(Ge,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(Ge,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(Ge,te,ee){var de=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(de*te,(1-de)*ee,!1).add(new go.PathSegment(go.PathSegment.Line,(1-de)*te,de*ee)).add(new go.PathSegment(go.PathSegment.Move,de*te,de*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-de)*te,(1-de)*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(Ge,te,ee){var de=te/2,le=new go.Geometry().add(new go.PathFigure(te,te/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,de,de,de,de).close()));return le.spot1=tt,le.spot2=Me,le.defaultStretch=go.GraphObject.Uniform,le}),go.Shape.defineFigureGenerator("Line1",function(Ge,te,ee){var de=new go.Geometry(go.Geometry.Line);return de.startX=0,de.startY=0,de.endX=te,de.endY=ee,de}),go.Shape.defineFigureGenerator("Line2",function(Ge,te,ee){var de=new go.Geometry(go.Geometry.Line);return de.startX=te,de.startY=0,de.endX=0,de.endY=ee,de}),go.Shape.defineFigureGenerator("Curve1",function(Ge,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ee,_e*te,0,te,(1-_e)*ee)))}),go.Shape.defineFigureGenerator("Curve2",function(Ge,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ee,0,_e*ee,(1-_e)*te,ee)))}),go.Shape.defineFigureGenerator("Curve3",function(Ge,te,ee){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,te,_e*ee,_e*te,ee)))}),go.Shape.defineFigureGenerator("Curve4",function(Ge,te,ee){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,(1-_e)*te,0,0,(1-_e)*ee)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Ge,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(Ge,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(Ge,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(Ge,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 Ke("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;isNaN(de)?de=.1:de<-1?de=-1:de>1&&(de=1);var le=Math.abs(de)*te;if(de===0){var pe=new go.Geometry(go.Geometry.Rectangle);return pe.startX=0,pe.startY=0,pe.endX=te,pe.endY=ee,pe}else{var pe=new go.Geometry;return de>0?pe.add(new go.PathFigure(le,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-le,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):pe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-le,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,le,ee).close())),le<te/2&&pe.setSpots(le/te,0,(te-le)/te,1),pe}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Ke("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;isNaN(de)?de=10:de<-te?de=-te:de>te&&(de=te);var le=Math.abs(de);if(de===0){var pe=new go.Geometry(go.Geometry.Rectangle);return pe.startX=0,pe.startY=0,pe.endX=te,pe.endY=ee,pe}else{var pe=new go.Geometry;return de>0?pe.add(new go.PathFigure(le,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-le,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):pe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-le,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,le,ee).close())),le<te/2&&pe.setSpots(le/te,0,(te-le)/te,1),pe}}),go.Shape.setFigureParameter("Trapezoid1",0,new Ke("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;isNaN(de)?de=.2:de<.5?de=-.5:de>.5&&(de=.5);var le=Math.abs(de)*te;if(de===0){var pe=new go.Geometry(go.Geometry.Rectangle);return pe.startX=0,pe.startY=0,pe.endX=te,pe.endY=ee,pe}else{var pe=new go.Geometry;return de>0?pe.add(new go.PathFigure(le,0).add(new go.PathSegment(go.PathSegment.Line,te-le,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):pe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-le,ee)).add(new go.PathSegment(go.PathSegment.Line,le,ee).close())),le<te/2&&pe.setSpots(le/te,0,(te-le)/te,1),pe}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Ke("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;isNaN(de)?de=20:de<-te?de=-te/2:de>te&&(de=te/2);var le=Math.abs(de);if(de===0){var pe=new go.Geometry(go.Geometry.Rectangle);return pe.startX=0,pe.startY=0,pe.endX=te,pe.endY=ee,pe}else{var pe=new go.Geometry;return de>0?pe.add(new go.PathFigure(le,0).add(new go.PathSegment(go.PathSegment.Line,te-le,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):pe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-le,ee)).add(new go.PathSegment(go.PathSegment.Line,le,ee).close())),le<te/2&&pe.setSpots(le/te,0,(te-le)/te,1),pe}}),go.Shape.setFigureParameter("ManualOperation",0,new Ke("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;isNaN(de)?de=10:de<-te?de=-te/2:de>te&&(de=te/2);var le=Math.abs(de);if(de===0){var pe=new go.Geometry(go.Geometry.Rectangle);return pe.startX=0,pe.startY=0,pe.endX=te,pe.endY=ee,pe}else{var pe=new go.Geometry;return de>0?pe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-le,ee)).add(new go.PathSegment(go.PathSegment.Line,le,ee).close())):pe.add(new go.PathFigure(le,0).add(new go.PathSegment(go.PathSegment.Line,te-le,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())),le<te/2&&pe.setSpots(le/te,0,(te-le)/te,1),pe}});var ut=[];function et(){var Ge=ut.pop();return Ge===void 0?[]:Ge}function lt(Ge){Ge.length=0,ut.push(Ge)}function Et(Ge){for(var te=et(),ee=.5,de=.5,le=Math.PI*1.5,pe=0,me=0;me<Ge;me++)pe=2*Math.PI/Ge*me+le,te[me]=new go.Point(de+ee*Math.cos(pe),de+ee*Math.sin(pe));return te.push(te[0]),te}function rt(Ge){var te=_t(Ge),ee=et();ee[0]=te[0];for(var de=1,le=1;de<te.length;de+=2,le+=3)ee[le]=te[de],ee[le+1]=te[de],ee[le+2]=te[de+1];return lt(te),ee}function _t(Ge){for(var te=Et(Ge),ee=et(),de=Math.floor(te.length/2),le=te.length-1,pe=Ge%2===0?2:1,me=0;me<le;me++){var xe=te[me],be=te[me+1],Be=te[(de+me-1)%le],at=te[(de+me+pe)%le];ee[me*2]=xe,ee[me*2+1]=Fe(xe.x,xe.y,Be.x,Be.y,be.x,be.y,at.x,at.y,new go.Point)}return ee[ee.length]=ee[0],lt(te),ee}go.Shape.defineFigureGenerator("Pentagon",function(Ge,te,ee){var de=Et(5),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ee,!0);le.add(pe);for(var me=1;me<5;me++)pe.add(new go.PathSegment(go.PathSegment.Line,de[me].x*te,de[me].y*ee));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ee).close()),lt(de),le.spot1=new go.Spot(.2,.22),le.spot2=new go.Spot(.8,.9),le}),go.Shape.defineFigureGenerator("Hexagon",function(Ge,te,ee){var de=Et(6),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ee,!0);le.add(pe);for(var me=1;me<6;me++)pe.add(new go.PathSegment(go.PathSegment.Line,de[me].x*te,de[me].y*ee));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ee).close()),lt(de),le.spot1=new go.Spot(.07,.25),le.spot2=new go.Spot(.93,.75),le}),go.Shape.defineFigureGenerator("Heptagon",function(Ge,te,ee){var de=Et(7),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ee,!0);le.add(pe);for(var me=1;me<7;me++)pe.add(new go.PathSegment(go.PathSegment.Line,de[me].x*te,de[me].y*ee));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ee).close()),lt(de),le.spot1=new go.Spot(.2,.15),le.spot2=new go.Spot(.8,.85),le}),go.Shape.defineFigureGenerator("Octagon",function(Ge,te,ee){var de=Et(8),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ee,!0);le.add(pe);for(var me=1;me<8;me++)pe.add(new go.PathSegment(go.PathSegment.Line,de[me].x*te,de[me].y*ee));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ee).close()),lt(de),le.spot1=new go.Spot(.15,.15),le.spot2=new go.Spot(.85,.85),le}),go.Shape.defineFigureGenerator("Nonagon",function(Ge,te,ee){var de=Et(9),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ee,!0);le.add(pe);for(var me=1;me<9;me++)pe.add(new go.PathSegment(go.PathSegment.Line,de[me].x*te,de[me].y*ee));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ee).close()),lt(de),le.spot1=new go.Spot(.17,.13),le.spot2=new go.Spot(.82,.82),le}),go.Shape.defineFigureGenerator("Decagon",function(Ge,te,ee){var de=Et(10),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ee,!0);le.add(pe);for(var me=1;me<10;me++)pe.add(new go.PathSegment(go.PathSegment.Line,de[me].x*te,de[me].y*ee));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ee).close()),lt(de),le.spot1=new go.Spot(.16,.16),le.spot2=new go.Spot(.84,.84),le}),go.Shape.defineFigureGenerator("Dodecagon",function(Ge,te,ee){var de=Et(12),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ee,!0);le.add(pe);for(var me=1;me<12;me++)pe.add(new go.PathSegment(go.PathSegment.Line,de[me].x*te,de[me].y*ee));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ee).close()),lt(de),le.spot1=new go.Spot(.16,.16),le.spot2=new go.Spot(.84,.84),le}),go.Shape.defineFigureGenerator("FivePointedStar",function(Ge,te,ee){var de=_t(5),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ee,!0);le.add(pe);for(var me=1;me<10;me++)pe.add(new go.PathSegment(go.PathSegment.Line,de[me].x*te,de[me].y*ee));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ee).close()),lt(de),le.spot1=new go.Spot(.266,.333),le.spot2=new go.Spot(.733,.733),le}),go.Shape.defineFigureGenerator("SixPointedStar",function(Ge,te,ee){var de=_t(6),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ee,!0);le.add(pe);for(var me=1;me<12;me++)pe.add(new go.PathSegment(go.PathSegment.Line,de[me].x*te,de[me].y*ee));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ee).close()),lt(de),le.spot1=new go.Spot(.17,.25),le.spot2=new go.Spot(.83,.75),le}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Ge,te,ee){var de=_t(7),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ee,!0);le.add(pe);for(var me=1;me<14;me++)pe.add(new go.PathSegment(go.PathSegment.Line,de[me].x*te,de[me].y*ee));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ee).close()),lt(de),le.spot1=new go.Spot(.222,.277),le.spot2=new go.Spot(.777,.666),le}),go.Shape.defineFigureGenerator("EightPointedStar",function(Ge,te,ee){var de=_t(8),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ee,!0);le.add(pe);for(var me=1;me<16;me++)pe.add(new go.PathSegment(go.PathSegment.Line,de[me].x*te,de[me].y*ee));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ee).close()),lt(de),le.spot1=new go.Spot(.25,.25),le.spot2=new go.Spot(.75,.75),le}),go.Shape.defineFigureGenerator("NinePointedStar",function(Ge,te,ee){var de=_t(9),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ee,!0);le.add(pe);for(var me=1;me<18;me++)pe.add(new go.PathSegment(go.PathSegment.Line,de[me].x*te,de[me].y*ee));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ee).close()),lt(de),le.spot1=new go.Spot(.222,.277),le.spot2=new go.Spot(.777,.666),le}),go.Shape.defineFigureGenerator("TenPointedStar",function(Ge,te,ee){var de=_t(10),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ee,!0);le.add(pe);for(var me=1;me<20;me++)pe.add(new go.PathSegment(go.PathSegment.Line,de[me].x*te,de[me].y*ee));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ee).close()),lt(de),le.spot1=new go.Spot(.281,.261),le.spot2=new go.Spot(.723,.748),le}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Ge,te,ee){var de=rt(5),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ee,!0);le.add(pe);for(var me=1;me<de.length;me+=3)pe.add(new go.PathSegment(go.PathSegment.Bezier,de[me+2].x*te,de[me+2].y*ee,de[me].x*te,de[me].y*ee,de[me+1].x*te,de[me+1].y*ee));return pe.segments.last().close(),lt(de),le.spot1=new go.Spot(.222,.277),le.spot2=new go.Spot(.777,.777),le}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Ge,te,ee){var de=rt(6),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ee,!0);le.add(pe);for(var me=1;me<de.length;me+=3)pe.add(new go.PathSegment(go.PathSegment.Bezier,de[me+2].x*te,de[me+2].y*ee,de[me].x*te,de[me].y*ee,de[me+1].x*te,de[me+1].y*ee));return pe.segments.last().close(),lt(de),le.spot1=new go.Spot(.17,.222),le.spot2=new go.Spot(.833,.777),le}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Ge,te,ee){var de=rt(7),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ee,!0);le.add(pe);for(var me=1;me<de.length;me+=3)pe.add(new go.PathSegment(go.PathSegment.Bezier,de[me+2].x*te,de[me+2].y*ee,de[me].x*te,de[me].y*ee,de[me+1].x*te,de[me+1].y*ee));return pe.segments.last().close(),lt(de),le.spot1=new go.Spot(.222,.222),le.spot2=new go.Spot(.777,.777),le}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Ge,te,ee){var de=rt(8),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ee,!0);le.add(pe);for(var me=1;me<de.length;me+=3)pe.add(new go.PathSegment(go.PathSegment.Bezier,de[me+2].x*te,de[me+2].y*ee,de[me].x*te,de[me].y*ee,de[me+1].x*te,de[me+1].y*ee));return pe.segments.last().close(),lt(de),le.spot1=new go.Spot(.222,.222),le.spot2=new go.Spot(.777,.777),le}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Ge,te,ee){var de=rt(9),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ee,!0);le.add(pe);for(var me=1;me<de.length;me+=3)pe.add(new go.PathSegment(go.PathSegment.Bezier,de[me+2].x*te,de[me+2].y*ee,de[me].x*te,de[me].y*ee,de[me+1].x*te,de[me+1].y*ee));return pe.segments.last().close(),lt(de),le.spot1=new go.Spot(.222,.222),le.spot2=new go.Spot(.777,.777),le}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Ge,te,ee){var de=rt(10),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ee,!0);le.add(pe);for(var me=1;me<de.length;me+=3)pe.add(new go.PathSegment(go.PathSegment.Bezier,de[me+2].x*te,de[me+2].y*ee,de[me].x*te,de[me].y*ee,de[me+1].x*te,de[me+1].y*ee));return pe.segments.last().close(),lt(de),le.spot1=new go.Spot(.222,.222),le.spot2=new go.Spot(.777,.777),le}),go.Shape.setFigureParameter("FramedRectangle",0,new Ke("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ke("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN,le=Ge?Ge.parameter2:NaN;isNaN(de)&&(de=8),isNaN(le)&&(le=8);var pe=new go.Geometry,me=new go.PathFigure(0,0,!0);return pe.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()),de<te/2&&le<ee/2&&(me.add(new go.PathSegment(go.PathSegment.Move,de,le)),me.add(new go.PathSegment(go.PathSegment.Line,de,ee-le)),me.add(new go.PathSegment(go.PathSegment.Line,te-de,ee-le)),me.add(new go.PathSegment(go.PathSegment.Line,te-de,le).close())),pe.setSpots(0,0,1,1,de,le,-de,-le),pe}),go.Shape.setFigureParameter("Ring",0,new Ke("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;(isNaN(de)||de<0)&&(de=8);var le=te/2,pe=new go.Geometry,me=new go.PathFigure(te,te/2,!0);pe.add(me),me.add(new go.PathSegment(go.PathSegment.Arc,0,360,le,le,le,le).close());var xe=Math.max(le-de,0);return xe>0&&(me.add(new go.PathSegment(go.PathSegment.Move,te/2+xe,te/2)),me.add(new go.PathSegment(go.PathSegment.Arc,0,-360,le,le,xe,xe).close())),pe.spot1=tt,pe.spot2=Me,pe.defaultStretch=go.GraphObject.Uniform,pe}),go.Shape.defineFigureGenerator("Cloud",function(Ge,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(Ge,te,ee){var de=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(de*te,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-de)*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,de*ee)).add(new go.PathSegment(go.PathSegment.Line,te,(1-de)*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-de)*te,ee)).add(new go.PathSegment(go.PathSegment.Line,de*te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,(1-de)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,de*ee).close())).setSpots(de/2,de/2,1-de/2,1-de/2)}),go.Shape.setFigureParameter("Pie",0,new Ke("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ke("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN,le=Ge?Ge.parameter2:NaN;isNaN(de)&&(de=0),isNaN(le)&&(le=315);var pe=de%360;pe<0&&(pe+=360);var me=le%360,xe=Math.min(te,ee)/2;return new go.Geometry().add(new go.PathFigure(xe,xe).add(new go.PathSegment(go.PathSegment.Arc,pe,me,xe,xe,xe,xe).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Ge,te,ee){var de=_e/Math.SQRT2*.5,le=Math.SQRT2/2,pe=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(te,ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,le*te,pe*ee,te,(1-de)*ee,(le+de)*te,(pe+de)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Ke("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;(isNaN(de)||de<0)&&(de=30);var le=Math.min(de,te)/2,pe=te/2,me=ee/2;return new go.Geometry().add(new go.PathFigure(pe-le,0,!0).add(new go.PathSegment(go.PathSegment.Line,pe+le,0)).add(new go.PathSegment(go.PathSegment.Line,pe+le,me-le)).add(new go.PathSegment(go.PathSegment.Line,te,me-le)).add(new go.PathSegment(go.PathSegment.Line,te,me+le)).add(new go.PathSegment(go.PathSegment.Line,pe+le,me+le)).add(new go.PathSegment(go.PathSegment.Line,pe+le,ee)).add(new go.PathSegment(go.PathSegment.Line,pe-le,ee)).add(new go.PathSegment(go.PathSegment.Line,pe-le,me+le)).add(new go.PathSegment(go.PathSegment.Line,0,me+le)).add(new go.PathSegment(go.PathSegment.Line,0,me-le)).add(new go.PathSegment(go.PathSegment.Line,pe-le,me-le).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Ke("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;(isNaN(de)||de<0)&&(de=10);var le=Math.min(de,te)/2,pe=te/2,me=ee/2;return new go.Geometry().add(new go.PathFigure(pe-le,0,!0).add(new go.PathSegment(go.PathSegment.Line,pe+le,0)).add(new go.PathSegment(go.PathSegment.Line,pe+le,me-le)).add(new go.PathSegment(go.PathSegment.Line,te,me-le)).add(new go.PathSegment(go.PathSegment.Line,te,me+le)).add(new go.PathSegment(go.PathSegment.Line,pe+le,me+le)).add(new go.PathSegment(go.PathSegment.Line,pe+le,ee)).add(new go.PathSegment(go.PathSegment.Line,pe-le,ee)).add(new go.PathSegment(go.PathSegment.Line,pe-le,me+le)).add(new go.PathSegment(go.PathSegment.Line,0,me+le)).add(new go.PathSegment(go.PathSegment.Line,0,me-le)).add(new go.PathSegment(go.PathSegment.Line,pe-le,me-le).close()))}),go.Shape.setFigureParameter("ThickX",0,new Ke("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;if((isNaN(de)||de<0)&&(de=30),te===0||ee===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=te,le.endY=ee,le}else{var pe=te/2,me=ee/2,xe=Math.atan2(ee,te),be=de-Math.min(Math.cos(xe)*de/2,pe),Be=de-Math.min(Math.sin(xe)*de/2,me),le=new go.Geometry,at=new go.PathFigure(be,0,!0);return le.add(at),at.add(new go.PathSegment(go.PathSegment.Line,pe,.2*ee)),at.add(new go.PathSegment(go.PathSegment.Line,te-be,0)),at.add(new go.PathSegment(go.PathSegment.Line,te,Be)),at.add(new go.PathSegment(go.PathSegment.Line,.8*te,me)),at.add(new go.PathSegment(go.PathSegment.Line,te,ee-Be)),at.add(new go.PathSegment(go.PathSegment.Line,te-be,ee)),at.add(new go.PathSegment(go.PathSegment.Line,pe,.8*ee)),at.add(new go.PathSegment(go.PathSegment.Line,be,ee)),at.add(new go.PathSegment(go.PathSegment.Line,0,ee-Be)),at.add(new go.PathSegment(go.PathSegment.Line,.2*te,me)),at.add(new go.PathSegment(go.PathSegment.Line,0,Be).close()),le}}),go.Shape.setFigureParameter("ThinX",0,new Ke("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;(isNaN(de)||de<0)&&(de=10);var le=new go.Geometry,pe=new go.PathFigure(.1*te,0,!0);return le.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.1*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.9*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.9*te,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.1*te,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee).close()),le}),go.Shape.setFigureParameter("SquareIBeam",0,new Ke("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;isNaN(de)&&(de=.2);var le=new go.Geometry,pe=new go.PathFigure(0,0,!0);return le.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,de*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,(.5+de/2)*te,de*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,(.5+de/2)*te,(1-de)*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,te,(1-de)*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,(1-de)*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,(.5-de/2)*te,(1-de)*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,(.5-de/2)*te,de*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,de*ee).close()),le}),go.Shape.setFigureParameter("RoundedIBeam",0,new Ke("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;isNaN(de)&&(de=.5);var le=new go.Geometry,pe=new go.PathFigure(0,0,!0);return le.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te,ee,Math.abs(1-de)*te,.25*ee,Math.abs(1-de)*te,.75*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,de*te,.75*ee,de*te,.25*ee).close()),le}),go.Shape.defineFigureGenerator("HalfEllipse",function(Ge,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,_e*te,0,te,(.5-_e/2)*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,te,(.5+_e/2)*ee,_e*te,ee).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Ge,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(Ge,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(Ge,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(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(.4*te,.6*ee,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.15*te,ee,.5*te,.75*ee,.45*te,.95*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.85*te,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.6*ee,.55*te,.95*ee,.5*te,.75*ee));var pe=.2,me=.3,xe=0,be=pe*_e;return le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5+pe+xe)*ee,(.5-pe+me)*te,(.5+be+xe)*ee,(.5-be+me)*te,(.5+pe+xe)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+pe+me)*te,(.5+xe)*ee,(.5+be+me)*te,(.5+pe+xe)*ee,(.5+pe+me)*te,(.5+be+xe)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5-pe+xe)*ee,(1-.5+pe+me)*te,(.5-be+xe)*ee,(.5+be+me)*te,(.5-pe+xe)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.65*te,.36771243*ee,(.5-be+me)*te,(.5-pe+xe)*ee,(.5-pe+me+.05)*te,(.5-be+xe-.02)*ee)),pe=.2,me=0,xe=-.3,be=pe*_e,le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+pe+me)*te,(.5+xe)*ee,(.5+be+me)*te,(.5+pe+xe)*ee,(.5+pe+me)*te,(.5+be+xe)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5-pe+xe)*ee,(1-.5+pe+me)*te,(.5-be+xe)*ee,(.5+be+me)*te,(.5-pe+xe)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-pe+me)*te,(.5+xe)*ee,(.5-be+me)*te,(.5-pe+xe)*ee,(.5-pe+me)*te,(.5-be+xe)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-be+me)*te,(.5+pe+xe)*ee,(.5-pe+me)*te,(.5+be+xe)*ee,(.5-be+me)*te,(.5+pe+xe)*ee)),pe=.2,me=-.3,xe=0,be=pe*_e,le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5-pe+xe)*ee,(1-.5+pe+me-.05)*te,(.5-be+xe-.02)*ee,(.5+be+me)*te,(.5-pe+xe)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-pe+me)*te,(.5+xe)*ee,(.5-be+me)*te,(.5-pe+xe)*ee,(.5-pe+me)*te,(.5-be+xe)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5+pe+xe)*ee,(.5-pe+me)*te,(.5+be+xe)*ee,(.5-be+me)*te,(.5+pe+xe)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.6*ee,(.5+be+me)*te,(.5+pe+xe)*ee,(.5+pe+me)*te,(.5+be+xe)*ee).close()),de.setSpots(.06,.33,.93,.68),de}),go.Shape.defineFigureGenerator("YinYang",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(te*.5,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*.5,te*.5,te*.5,te*.5)),le.add(new go.PathSegment(go.PathSegment.Arc,90,-180,te*.5,te*.75,te*.25,te*.25)),le.add(new go.PathSegment(go.PathSegment.Arc,90,180,te*.5,te*.25,te*.25,te*.25));var pe=.1,me=.5,xe=.25;return le.add(new go.PathSegment(go.PathSegment.Move,(me+pe)*te,xe*ee)),le.add(new go.PathSegment(go.PathSegment.Arc,0,-360,te*me,ee*xe,pe*te,pe*te).close()),le=new go.PathFigure(te*.5,0,!1),de.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*.5,te*.5,te*.5,te*.5)),xe=.75,le=new go.PathFigure((me+pe)*te,xe*ee,!0),de.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,0,360,te*me,ee*xe,pe*te,pe*te).close()),de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("Peace",function(Ge,te,ee){var de=.8535533905932737,le=.5*te,pe=.5*ee;return new go.Geometry().add(new go.PathFigure(le,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,le,pe,le,pe)).add(new go.PathSegment(go.PathSegment.Line,le,ee)).add(new go.PathSegment(go.PathSegment.Move,le,pe)).add(new go.PathSegment(go.PathSegment.Line,(1-de)*te,de*ee)).add(new go.PathSegment(go.PathSegment.Move,le,pe)).add(new go.PathSegment(go.PathSegment.Line,de*te,de*ee)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Ge,te,ee){var de=new go.Geometry,le=_e*.5,pe=.5,me=.5,xe=.5,be=new go.PathFigure(me*te,(xe-pe)*ee);de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,(me-pe)*te,xe*ee,(me-le)*te,(xe-pe)*ee,(me-pe)*te,(xe-le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(xe+pe)*ee,(me-pe)*te,(xe+le)*ee,(me-le)*te,(xe+pe)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+pe)*te,xe*ee,(me+le)*te,(xe+pe)*ee,(me+pe)*te,(xe+le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(xe-pe)*ee,(me+pe)*te,(xe-le)*ee,(me+le)*te,(xe-pe)*ee)),pe=.4,le=_e*.4;var Be=ie(),at=ie(),dt=ie(),gt=ie();Oe(me,xe-pe,me+le,xe-pe,me+pe,xe-le,me+pe,xe,.42,Be,at,dt,gt,gt);var ft=ie(),Nt=ie(),Tt=ie();Oe(me,xe-pe,me+le,xe-pe,me+pe,xe-le,me+pe,xe,.58,gt,gt,Tt,ft,Nt);var Ct=ie(),Vt=ie(),Rt=ie();Oe(me,xe+pe,me-le,xe+pe,me-pe,xe+le,me-pe,xe,.42,Ct,Vt,Rt,gt,gt);var nn=ie(),Cn=ie(),un=ie();return Oe(me,xe+pe,me-le,xe+pe,me-pe,xe+le,me-pe,xe,.58,gt,gt,un,nn,Cn),be.add(new go.PathSegment(go.PathSegment.Move,un.x*te,un.y*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me-pe)*te,xe*ee,nn.x*te,nn.y*ee,Cn.x*te,Cn.y*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(xe-pe)*ee,(me-pe)*te,(xe-le)*ee,(me-le)*te,(xe-pe)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,dt.x*te,dt.y*ee,Be.x*te,Be.y*ee,at.x*te,at.y*ee)),be.add(new go.PathSegment(go.PathSegment.Line,un.x*te,un.y*ee).close()),be.add(new go.PathSegment(go.PathSegment.Move,Rt.x*te,Rt.y*ee)),be.add(new go.PathSegment(go.PathSegment.Line,Tt.x*te,Tt.y*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+pe)*te,xe*ee,ft.x*te,ft.y*ee,Nt.x*te,Nt.y*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(xe+pe)*ee,(me+pe)*te,(xe+le)*ee,(me+le)*te,(xe+pe)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,Rt.x*te,Rt.y*ee,Ct.x*te,Ct.y*ee,Vt.x*te,Vt.y*ee).close()),Pe(Be),Pe(at),Pe(dt),Pe(gt),Pe(ft),Pe(Nt),Pe(Tt),Pe(Ct),Pe(Vt),Pe(Rt),Pe(nn),Pe(Cn),Pe(un),de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("Fragile",function(Ge,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 Ke("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;(isNaN(de)||de<0)&&(de=30),de>te&&(de=te);var le=(te-de)/2,pe=le+de;return new go.Geometry().add(new go.PathFigure(pe,.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,le,.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(Ge,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(Ge,te,ee){var de=new go.Geometry,le=_e*.4,pe=.4,me=.5,xe=.5,be=ie(),Be=ie(),at=ie(),dt=ie(),gt=new go.PathFigure((me-pe)*te,xe*ee,!1);de.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(xe-pe)*ee,(me-pe)*te,(xe-le)*ee,(me-le)*te,(xe-pe)*ee)),Oe(me,xe-pe,me+le,xe-pe,me+pe,xe-le,me+pe,xe,.44,at,dt,Be,be,be),gt.add(new go.PathSegment(go.PathSegment.Bezier,Be.x*te,Be.y*ee,at.x*te,at.y*ee,dt.x*te,dt.y*ee));var ft=ae(Be.x,Be.y);Oe(me,xe-pe,me+le,xe-pe,me+pe,xe-le,me+pe,xe,.56,be,be,Be,at,dt);var Nt=ae(Be.x,Be.y);gt.add(new go.PathSegment(go.PathSegment.Line,(ft.x*.1+.95*.9)*te,ft.y*.1*ee)),gt.add(new go.PathSegment(go.PathSegment.Line,.85*te,ft.y*.1*ee)),gt.add(new go.PathSegment(go.PathSegment.Line,.85*te,0)),gt.add(new go.PathSegment(go.PathSegment.Line,te,0)),gt.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),gt.add(new go.PathSegment(go.PathSegment.Line,(Nt.x*.1+.9)*te,.15*ee)),gt.add(new go.PathSegment(go.PathSegment.Line,(Nt.x*.1+.9)*te,(Nt.y*.1+.05*.9)*ee)),gt.add(new go.PathSegment(go.PathSegment.Line,Nt.x*te,Nt.y*ee)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(me+pe)*te,xe*ee,at.x*te,at.y*ee,dt.x*te,dt.y*ee)),gt.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(xe+pe)*ee,(me+pe)*te,(xe+le)*ee,(me+le)*te,(xe+pe)*ee)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(me-pe)*te,xe*ee,(me-le)*te,(xe+pe)*ee,(me-pe)*te,(xe+le)*ee)),pe=.35,le=_e*.35;var Tt=new go.PathFigure(me*te,(xe-pe)*ee,!1);de.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(me-pe)*te,xe*ee,(me-le)*te,(xe-pe)*ee,(me-pe)*te,(xe-le)*ee)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(xe+pe)*ee,(me-pe)*te,(xe+le)*ee,(me-le)*te,(xe+pe)*ee)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(me+pe)*te,xe*ee,(me+le)*te,(xe+pe)*ee,(me+pe)*te,(xe+le)*ee)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(xe-pe)*ee,(me+pe)*te,(xe-le)*ee,(me+le)*te,(xe-pe)*ee));var Ct=new go.PathFigure((me-pe)*te,xe*ee,!1);return de.add(Ct),Pe(be),Pe(Be),Pe(at),Pe(dt),Pe(ft),Pe(Nt),de.spot1=new go.Spot(.202,.257),de.spot2=new go.Spot(.792,.739),de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("GenderFemale",function(Ge,te,ee){var de=new go.Geometry,le=.375,pe=0,me=-.125,xe=le*_e,be=new go.PathFigure((.525+pe)*te,(.5+le+me)*ee,!1);de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+pe)*te,(.5+me)*ee,(.5+xe+pe)*te,(.5+le+me)*ee,(.5+le+pe)*te,(.5+xe+me)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pe)*te,(.5-le+me)*ee,(1-.5+le+pe)*te,(.5-xe+me)*ee,(.5+xe+pe)*te,(.5-le+me)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+pe)*te,(.5+me)*ee,(.5-xe+pe)*te,(.5-le+me)*ee,(.5-le+pe)*te,(.5-xe+me)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.475+pe)*te,(.5+le+me)*ee,(.5-le+pe)*te,(.5+xe+me)*ee,(.5-xe+pe)*te,(.5+le+me)*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.475*te,.85*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.425*te,.85*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.425*te,.9*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.475*te,.9*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.475*te,ee)),be.add(new go.PathSegment(go.PathSegment.Line,.525*te,ee)),be.add(new go.PathSegment(go.PathSegment.Line,.525*te,.9*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.575*te,.9*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.575*te,.85*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ee).close()),le=.325,pe=0,me=-.125,xe=le*_e;var be=new go.PathFigure((1-.5+le+pe)*te,(.5+me)*ee,!1);de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pe)*te,(.5+le+me)*ee,(.5+le+pe)*te,(.5+xe+me)*ee,(.5+xe+pe)*te,(.5+le+me)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+pe)*te,(.5+me)*ee,(.5-xe+pe)*te,(.5+le+me)*ee,(.5-le+pe)*te,(.5+xe+me)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pe)*te,(.5-le+me)*ee,(.5-le+pe)*te,(.5-xe+me)*ee,(.5-xe+pe)*te,(.5-le+me)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+pe)*te,(.5+me)*ee,(.5+xe+pe)*te,(.5-le+me)*ee,(1-.5+le+pe)*te,(.5-xe+me)*ee));var be=new go.PathFigure((.525+pe)*te,(.5+le+me)*ee,!1);return de.add(be),de.spot1=new go.Spot(.232,.136),de.spot2=new go.Spot(.682,.611),de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("LogicImplies",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;return isNaN(de)&&(de=.2),new go.Geometry().add(new go.PathFigure((1-de)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-de)*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(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;return isNaN(de)&&(de=.2),new go.Geometry().add(new go.PathFigure((1-de)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-de)*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,de*te,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,de*te,ee))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Ge,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(Ge,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(Ge,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(Ge,te,ee){var de=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 de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("LogicTruth",function(Ge,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(Ge,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(Ge,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(Ge,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(Ge,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(Ge,te,ee){var de=.5;return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,0,de*ee)).add(new go.PathSegment(go.PathSegment.Arc,180,180,de*te,de*ee,de*te,de*ee)).add(new go.PathSegment(go.PathSegment.Line,te,ee))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Ge,te,ee){var de=.5;return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,de*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,180,de*te,de*ee,de*te,de*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Ke("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ke("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;isNaN(de)&&(de=.3);var le=Ge?Ge.parameter2:NaN;isNaN(le)&&(le=.3);var pe=(1-de)*te,me=(.5-le/2)*ee,xe=(.5+le/2)*ee,be=new go.Geometry,Be=new go.PathFigure(0,me,!0);be.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,pe,me)),Be.add(new go.PathSegment(go.PathSegment.Line,pe,0)),Be.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,pe,ee)),Be.add(new go.PathSegment(go.PathSegment.Line,pe,xe)),Be.add(new go.PathSegment(go.PathSegment.Line,0,xe).close()),be.spot1=new go.Spot(0,me/ee);var at=Fe(0,xe/ee,1,xe/ee,pe/te,1,1,.5,ie());return be.spot2=new go.Spot(at.x,at.y),Pe(at),be}),go.Shape.setFigureParameter("Arrow2",0,new Ke("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ke("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;isNaN(de)&&(de=30),de>te&&(de=te);var le=Ge?Ge.parameter2:NaN;isNaN(le)&&(le=30),le=Math.min(le,ee/2);var pe=te-de,me=(ee-le)/2,xe=me+le,be=new go.Geometry,Be=new go.PathFigure(0,me,!0);be.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,pe,me)),Be.add(new go.PathSegment(go.PathSegment.Line,pe,0)),Be.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,pe,ee)),Be.add(new go.PathSegment(go.PathSegment.Line,pe,xe)),Be.add(new go.PathSegment(go.PathSegment.Line,0,xe).close()),be.spot1=new go.Spot(0,me/ee);var at=Fe(0,xe/ee,1,xe/ee,pe/te,1,1,.5,ie());return be.spot2=new go.Spot(at.x,at.y),Pe(at),be}),go.Shape.defineFigureGenerator("Chevron",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee).close()),de}),go.Shape.defineFigureGenerator("DoubleArrow",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.3*te,.214*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,1*te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.3*te,1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.3*te,.786*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,1*ee).close()),de}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Ke("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;isNaN(de)&&(de=.3);var le=(.5-de/2)*ee,pe=(.5+de/2)*ee,me=new go.Geometry,xe=new go.PathFigure(te,.5*ee,!0);me.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*te,pe)),xe.add(new go.PathSegment(go.PathSegment.Line,.3*te,pe)),xe.add(new go.PathSegment(go.PathSegment.Line,.3*te,ee)),xe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),xe.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),xe.add(new go.PathSegment(go.PathSegment.Line,.3*te,le)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*te,le)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close());var be=Fe(0,.5,.3,0,0,le/ee,.1,le/ee,ie());return me.spot1=new go.Spot(be.x,be.y),be=Fe(.7,1,1,.5,0,pe/ee,1,pe/ee,be),me.spot2=new go.Spot(be.x,be.y),Pe(be),me}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ke("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ke("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;isNaN(de)&&(de=40);var le=Ge?Ge.parameter2:NaN;isNaN(le)&&(le=100);var pe=(ee-de)/2,me=pe+de,xe=(ee-le)/2,be=xe+le;(de>ee||le>ee)&&(le>de?(de=de*ee/le,pe=(ee-de)/2,me=pe+de,xe=0,be=ee):(pe=0,me=ee,xe=0,be=ee));var Be=new go.Geometry,at=new go.PathFigure(te,.5*ee,!0);Be.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.7*te,be)),at.add(new go.PathSegment(go.PathSegment.Line,.7*te,me)),at.add(new go.PathSegment(go.PathSegment.Line,.3*te,me)),at.add(new go.PathSegment(go.PathSegment.Line,.3*te,be)),at.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),at.add(new go.PathSegment(go.PathSegment.Line,.3*te,xe)),at.add(new go.PathSegment(go.PathSegment.Line,.3*te,pe)),at.add(new go.PathSegment(go.PathSegment.Line,.7*te,pe)),at.add(new go.PathSegment(go.PathSegment.Line,.7*te,xe).close());var dt=Fe(0,.5,.3,xe/ee,0,pe/ee,1,pe/ee,ie());return Be.spot1=new go.Spot(dt.x,dt.y),dt=Fe(.7,be/ee,1,.5,0,me/ee,1,me/ee,dt),Be.spot2=new go.Spot(dt.x,dt.y),Pe(dt),Be}),go.Shape.setFigureParameter("IBeamArrow",0,new Ke("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;isNaN(de)&&(de=.3);var le=(.5-de/2)*ee,pe=(.5+de/2)*ee,me=new go.Geometry,xe=new go.PathFigure(te,.5*ee,!0);me.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*te,pe)),xe.add(new go.PathSegment(go.PathSegment.Line,.2*te,pe)),xe.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),xe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),xe.add(new go.PathSegment(go.PathSegment.Line,0,0)),xe.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),xe.add(new go.PathSegment(go.PathSegment.Line,.2*te,le)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*te,le)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),me.spot1=new go.Spot(0,le/ee);var be=Fe(.7,1,1,.5,0,pe/ee,1,pe/ee,ie());return me.spot2=new go.Spot(be.x,be.y),Pe(be),me}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ke("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ke("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;isNaN(de)&&(de=40);var le=Ge?Ge.parameter2:NaN;isNaN(le)&&(le=100);var pe=(ee-de)/2,me=pe+de,xe=(ee-le)/2,be=xe+le;(de>ee||le>ee)&&(le>de?(de=de*ee/le,pe=(ee-de)/2,me=pe+de,xe=0,be=ee):(pe=0,me=ee,xe=0,be=ee));var Be=new go.Geometry,at=new go.PathFigure(te,.5*ee,!0);Be.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.7*te,be)),at.add(new go.PathSegment(go.PathSegment.Line,.7*te,me)),at.add(new go.PathSegment(go.PathSegment.Line,.2*te,me)),at.add(new go.PathSegment(go.PathSegment.Line,.2*te,be)),at.add(new go.PathSegment(go.PathSegment.Line,0,be)),at.add(new go.PathSegment(go.PathSegment.Line,0,xe)),at.add(new go.PathSegment(go.PathSegment.Line,.2*te,xe)),at.add(new go.PathSegment(go.PathSegment.Line,.2*te,pe)),at.add(new go.PathSegment(go.PathSegment.Line,.7*te,pe)),at.add(new go.PathSegment(go.PathSegment.Line,.7*te,xe).close()),Be.spot1=new go.Spot(0,pe/ee);var dt=Fe(.7,be/ee,1,.5,0,me/ee,1,me/ee,ie());return Be.spot2=new go.Spot(dt.x,dt.y),Pe(dt),Be}),go.Shape.setFigureParameter("Pointer",0,new Ke("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;isNaN(de)&&(de=.1);var le=new go.Geometry,pe=new go.PathFigure(te,.5*ee,!0);le.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,de*te,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),le.spot1=new go.Spot(de,.35);var me=Fe(.2,.65,1,.65,0,1,1,.5,ie());return le.spot2=new go.Spot(me.x,me.y),Pe(me),le}),go.Shape.setFigureParameter("RoundedPointer",0,new Ke("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;isNaN(de)&&(de=.3);var le=new go.Geometry,pe=new go.PathFigure(te,.5*ee,!0);le.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,de*te,.75*ee,de*te,.25*ee).close()),le.spot1=new go.Spot(de,.35);var me=Fe(0,.65,1,.65,0,1,1,.5,ie());return le.spot2=new go.Spot(me.x,me.y),Pe(me),le}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ke("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;isNaN(de)&&(de=.4);var le=(.5-de/2)*ee,pe=(.5+de/2)*ee,me=new go.Geometry,xe=new go.PathFigure(te,.5*ee,!0);me.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*te,pe)),xe.add(new go.PathSegment(go.PathSegment.Line,0,pe)),xe.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ee)),xe.add(new go.PathSegment(go.PathSegment.Line,0,le)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*te,le)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),me.spot1=new go.Spot(.2,.3);var be=Fe(.7,1,1,.5,0,pe/ee,1,pe/ee,ie());return me.spot2=new go.Spot(be.x,be.y),Pe(be),me}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ke("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;isNaN(de)&&(de=50);var le=(ee-de)/2,pe=le+de;de>ee&&(le=0,pe=ee);var me=new go.Geometry,xe=new go.PathFigure(te,.5*ee,!0);me.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*te,pe)),xe.add(new go.PathSegment(go.PathSegment.Line,0,pe)),xe.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ee)),xe.add(new go.PathSegment(go.PathSegment.Line,0,le)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*te,le)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),me.spot1=new go.Spot(.2,le/ee);var be=Fe(.7,1,1,.5,0,pe/ee,1,pe/ee,ie());return me.spot2=new go.Spot(be.x,be.y),Pe(be),me}),go.Shape.setFigureParameter("SquareArrow",0,new Ke("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;isNaN(de)&&(de=.7);var le=new go.Geometry,pe=new go.PathFigure(te,.5*ee,!0);return le.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,de*te,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,0)),pe.add(new go.PathSegment(go.PathSegment.Line,de*te,0).close()),le.spot1=go.Spot.TopLeft,le.spot2=new go.Spot(de,1),le}),go.Shape.defineFigureGenerator("Cone1",function(Ge,te,ee){var de=new go.Geometry,le=_e*.5,pe=_e*.1,me=new go.PathFigure(0,.9*ee,!0);return de.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+pe)*ee,(.5+le)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-le)*te,ee,0,(.9+pe)*ee).close()),de.spot1=new go.Spot(.25,.5),de.spot2=new go.Spot(.75,.97),de}),go.Shape.defineFigureGenerator("Cone2",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,.9*ee,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ee,(1-.85/.9)*te,ee,.85/.9*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee).close());var pe=new go.PathFigure(0,.9*ee,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ee,(1-.85/.9)*te,.8*ee,.85/.9*te,.8*ee)),de.spot1=new go.Spot(.25,.5),de.spot2=new go.Spot(.75,.82),de}),go.Shape.defineFigureGenerator("Cube1",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(.5*te,ee,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,.85*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var pe=new go.PathFigure(.5*te,ee,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.5*te,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),de.spot1=new go.Spot(0,.3),de.spot2=new go.Spot(.5,.85),de}),go.Shape.defineFigureGenerator("Cube2",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,.3*ee,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.3*te,0).close());var pe=new go.PathFigure(0,.3*ee,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Move,.7*te,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),de.spot1=new go.Spot(0,.3),de.spot2=new go.Spot(.7,1),de}),go.Shape.defineFigureGenerator("Cylinder1",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;isNaN(de)&&(de=5),de=Math.min(de,ee/3);var le=new go.Geometry,pe=_e*.5,me=new go.PathFigure(0,de,!0);le.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,_e*de,(.5-pe)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,1*te,de,(.5+pe)*te,0,1*te,_e*de)),me.add(new go.PathSegment(go.PathSegment.Line,te,ee-de)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,1*ee,1*te,ee-_e*de,(.5+pe)*te,1*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-de,(.5-pe)*te,1*ee,0,ee-_e*de)),me.add(new go.PathSegment(go.PathSegment.Line,0,de));var xe=new go.PathFigure(te,de,!1);return le.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,2*de,1*te,2*de-_e*de,(.5+pe)*te,2*de)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,de,(.5-pe)*te,2*de,0,2*de-_e*de)),le.spot1=new go.Spot(0,0,0,2*de),le.spot2=new go.Spot(1,1),le}),go.Shape.defineFigureGenerator("Cylinder2",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;isNaN(de)&&(de=5),de=Math.min(de,ee/3);var le=new go.Geometry,pe=_e*.5,me=new go.PathFigure(0,ee-de,!0);le.add(me),me.add(new go.PathSegment(go.PathSegment.Line,0,de)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,_e*de,(.5-pe)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,de,(.5+pe)*te,0,te,_e*de)),me.add(new go.PathSegment(go.PathSegment.Line,te,ee-de)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,ee-_e*de,(.5+pe)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-de,(.5-pe)*te,ee,0,ee-_e*de));var xe=new go.PathFigure(0,ee-de,!1);return le.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee-2*de,0,ee-de-_e*de,(.5-pe)*te,ee-2*de)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te,ee-de,(.5+pe)*te,ee-2*de,te,ee-de-_e*de)),le.spot1=new go.Spot(0,0),le.spot2=new go.Spot(1,1,0,-2*de),le}),go.Shape.defineFigureGenerator("Cylinder3",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;isNaN(de)&&(de=5),de=Math.min(de,te/3);var le=new go.Geometry,pe=_e*.5,me=new go.PathFigure(de,0,!0);le.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te-de,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,te-_e*de,0,te,(.5-pe)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-de,ee,te,(.5+pe)*ee,te-_e*de,ee)),me.add(new go.PathSegment(go.PathSegment.Line,de,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,_e*de,ee,0,(.5+pe)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,de,0,0,(.5-pe)*ee,_e*de,0));var xe=new go.PathFigure(de,0,!1);return le.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,2*de,.5*ee,de+_e*de,0,2*de,(.5-pe)*ee)),xe.add(new go.PathSegment(go.PathSegment.Bezier,de,ee,2*de,(.5+pe)*ee,de+_e*de,ee)),le.spot1=new go.Spot(0,0,2*de,0),le.spot2=new go.Spot(1,1),le}),go.Shape.defineFigureGenerator("Cylinder4",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;isNaN(de)&&(de=5),de=Math.min(de,te/3);var le=new go.Geometry,pe=_e*.5,me=new go.PathFigure(te-de,0,!0);le.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,te-_e*de,0,te,(.5-pe)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-de,ee,te,(.5+pe)*ee,te-_e*de,ee)),me.add(new go.PathSegment(go.PathSegment.Line,de,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,_e*de,ee,0,(.5+pe)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,de,0,0,(.5-pe)*ee,_e*de,0)),me.add(new go.PathSegment(go.PathSegment.Line,te-de,0));var xe=new go.PathFigure(te-de,0,!1);return le.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,te-2*de,.5*ee,te-de-_e*de,0,te-2*de,(.5-pe)*ee)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te-de,ee,te-2*de,(.5+pe)*ee,te-de-_e*de,ee)),le.spot1=new go.Spot(0,0),le.spot2=new go.Spot(1,1,-2*de,0),le}),go.Shape.defineFigureGenerator("Prism1",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(.25*te,.25*ee,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var pe=new go.PathFigure(.25*te,.25*ee,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),de.spot1=new go.Spot(.408,.172),de.spot2=new go.Spot(.833,.662),de}),go.Shape.defineFigureGenerator("Prism2",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,.25*ee,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var pe=new go.PathFigure(0,ee,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ee)),de.spot1=new go.Spot(.25,.5),de.spot2=new go.Spot(.75,.75),de}),go.Shape.defineFigureGenerator("Pyramid1",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(.5*te,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,.75*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee).close());var pe=new go.PathFigure(.5*te,0,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),de.spot1=new go.Spot(.25,.367),de.spot2=new go.Spot(.75,.875),de}),go.Shape.defineFigureGenerator("Pyramid2",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(.5*te,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,.85*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var pe=new go.PathFigure(.5*te,0,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.85*ee)),de.spot1=new go.Spot(.25,.367),de.spot2=new go.Spot(.75,.875),de}),go.Shape.defineFigureGenerator("Actor",function(Ge,te,ee){var de=new go.Geometry,le=.2,pe=.1,me=_e*le,xe=_e*pe,be=.5,Be=.1,at=new go.PathFigure(be*te,(Be+pe)*ee,!0);de.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,(be-le)*te,Be*ee,(be-me)*te,(Be+pe)*ee,(be-le)*te,(Be+xe)*ee)),at.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Be-pe)*ee,(be-le)*te,(Be-xe)*ee,(be-me)*te,(Be-pe)*ee)),at.add(new go.PathSegment(go.PathSegment.Bezier,(be+le)*te,Be*ee,(be+me)*te,(Be-pe)*ee,(be+le)*te,(Be-xe)*ee)),at.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Be+pe)*ee,(be+le)*te,(Be+xe)*ee,(be+me)*te,(Be+pe)*ee));var dt=.05,gt=_e*dt;be=.05,Be=.25;var ft=new go.PathFigure(.5*te,.2*ee,!0);return de.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.95*te,.2*ee)),be=.95,Be=.25,ft.add(new go.PathSegment(go.PathSegment.Bezier,(be+dt)*te,Be*ee,(be+gt)*te,(Be-dt)*ee,(be+dt)*te,(Be-gt)*ee)),ft.add(new go.PathSegment(go.PathSegment.Line,te,.6*ee)),ft.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ee)),ft.add(new go.PathSegment(go.PathSegment.Line,.85*te,.35*ee)),dt=.025,gt=_e*dt,be=.825,Be=.35,ft.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Be-dt)*ee,(be+dt)*te,(Be-gt)*ee,(be+gt)*te,(Be-dt)*ee)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(be-dt)*te,Be*ee,(be-gt)*te,(Be-dt)*ee,(be-dt)*te,(Be-gt)*ee)),ft.add(new go.PathSegment(go.PathSegment.Line,.8*te,ee)),ft.add(new go.PathSegment(go.PathSegment.Line,.55*te,ee)),ft.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ee)),dt=.05,gt=_e*dt,be=.5,Be=.7,ft.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Be-dt)*ee,(be+dt)*te,(Be-gt)*ee,(be+gt)*te,(Be-dt)*ee)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(be-dt)*te,Be*ee,(be-gt)*te,(Be-dt)*ee,(be-dt)*te,(Be-gt)*ee)),ft.add(new go.PathSegment(go.PathSegment.Line,.45*te,ee)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*te,.35*ee)),dt=.025,gt=_e*dt,be=.175,Be=.35,ft.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Be-dt)*ee,(be+dt)*te,(Be-gt)*ee,(be+gt)*te,(Be-dt)*ee)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(be-dt)*te,Be*ee,(be-gt)*te,(Be-dt)*ee,(be-dt)*te,(Be-gt)*ee)),ft.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ee)),ft.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),ft.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),dt=.05,gt=_e*dt,be=.05,Be=.25,ft.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Be-dt)*ee,(be-dt)*te,(Be-gt)*ee,(be-gt)*te,(Be-dt)*ee)),ft.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ee)),de.spot1=new go.Spot(.2,.2),de.spot2=new go.Spot(.8,.65),de}),go.Shape.setFigureParameter("Card",0,new Ke("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;isNaN(de)&&(de=.2);var le=new go.Geometry,pe=new go.PathFigure(te,0,!0);return le.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,de*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,de*te,0).close()),le.spot1=new go.Spot(0,de),le.spot2=go.Spot.BottomRight,le}),go.Shape.defineFigureGenerator("Collate",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(.5*te,.5*ee,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee));var pe=new go.PathFigure(.5*te,.5*ee,!0);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),de.spot1=new go.Spot(.25,0),de.spot2=new go.Spot(.75,.25),de}),go.Shape.defineFigureGenerator("CreateRequest",function(Ge,te,ee){var de=new go.Geometry,le=Ge?Ge.parameter1:NaN;isNaN(le)&&(le=.1);var pe=new go.PathFigure(0,0,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var me=new go.PathFigure(0,le*ee,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,le*ee)),me.add(new go.PathSegment(go.PathSegment.Move,0,(1-le)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,(1-le)*ee)),de}),go.Shape.defineFigureGenerator("Database",function(Ge,te,ee){var de=new go.Geometry,le=_e*.5,pe=_e*.1,me=new go.PathFigure(te,.1*ee,!0);de.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+pe)*ee,(.5+le)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-le)*te,ee,0,(.9+pe)*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-pe)*ee,(.5-le)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ee,(.5+le)*te,0,te,(.1-pe)*ee));var xe=new go.PathFigure(te,.1*ee,!1);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ee,te,(.1+pe)*ee,(.5+le)*te,.2*ee)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-le)*te,.2*ee,0,(.1+pe)*ee)),xe.add(new go.PathSegment(go.PathSegment.Move,te,.2*ee)),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ee,te,(.2+pe)*ee,(.5+le)*te,.3*ee)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-le)*te,.3*ee,0,(.2+pe)*ee)),xe.add(new go.PathSegment(go.PathSegment.Move,te,.3*ee)),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.4*ee,te,(.3+pe)*ee,(.5+le)*te,.4*ee)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ee,(.5-le)*te,.4*ee,0,(.3+pe)*ee)),de.spot1=new go.Spot(0,.4),de.spot2=new go.Spot(1,.9),de}),go.Shape.defineFigureGenerator("DataStorage",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ee,te,0,te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.9*ee,.25*te,.1*ee).close()),de.spot1=new go.Spot(.226,0),de.spot2=new go.Spot(.81,1),de}),go.Shape.defineFigureGenerator("DiskStorage",function(Ge,te,ee){var de=new go.Geometry,le=_e*.5,pe=_e*.1,me=new go.PathFigure(te,.1*ee,!0);de.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+pe)*ee,(.5+le)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-le)*te,ee,0,(.9+pe)*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-pe)*ee,(.5-le)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ee,(.5+le)*te,0,te,(.1-pe)*ee));var xe=new go.PathFigure(te,.1*ee,!1);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ee,te,(.1+pe)*ee,(.5+le)*te,.2*ee)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-le)*te,.2*ee,0,(.1+pe)*ee)),xe.add(new go.PathSegment(go.PathSegment.Move,te,.2*ee)),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ee,te,(.2+pe)*ee,(.5+le)*te,.3*ee)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-le)*te,.3*ee,0,(.2+pe)*ee)),de.spot1=new go.Spot(0,.3),de.spot2=new go.Spot(1,.9),de}),go.Shape.defineFigureGenerator("Display",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(.25*te,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ee,te,0,te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.25*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close()),de.spot1=new go.Spot(.25,0),de.spot2=new go.Spot(.75,1),de}),go.Shape.defineFigureGenerator("DividedEvent",function(Ge,te,ee){var de=new go.Geometry,le=Ge?Ge.parameter1:NaN;isNaN(le)?le=.2:le<.15&&(le=.15);var pe=_e*.2,me=new go.PathFigure(0,.2*ee,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,0,(.2-pe)*ee,(.2-pe)*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+pe)*te,0,te,(.2-pe)*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+pe)*ee,(.8+pe)*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-pe)*te,ee,0,(.8+pe)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee));var xe=new go.PathFigure(0,le*ee,!1);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te,le*ee)),de}),go.Shape.defineFigureGenerator("DividedProcess",function(Ge,te,ee){var de=new go.Geometry,le=Ge?Ge.parameter1:NaN;(isNaN(le)||le<.1)&&(le=.1);var pe=new go.PathFigure(0,0,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var me=new go.PathFigure(0,le*ee,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,le*ee)),de}),go.Shape.defineFigureGenerator("Document",function(Ge,te,ee){var de=new go.Geometry;ee=ee/.8;var le=new go.PathFigure(0,.7*ee,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*te,.4*ee,.5*te,ee).close()),de.spot1=go.Spot.TopLeft,de.spot2=new go.Spot(1,.6),de}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Ge,te,ee){var de=new go.Geometry,le=Ge?Ge.parameter1:NaN;(isNaN(le)||le<.2)&&(le=.2);var pe=new go.PathFigure(0,0,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var me=new go.PathFigure(le*te,0,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,0,le*ee)),me.add(new go.PathSegment(go.PathSegment.Move,te,le*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(1-le)*te,0)),me.add(new go.PathSegment(go.PathSegment.Move,0,(1-le)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,le*te,ee)),me.add(new go.PathSegment(go.PathSegment.Move,(1-le)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,(1-le)*ee)),de}),go.Shape.defineFigureGenerator("ExternalProcess",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(.5*te,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var pe=new go.PathFigure(.1*te,.4*ee,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.9*te,.6*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.6*te,.1*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.1*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.4*te,.9*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.9*ee)),de.spot1=new go.Spot(.25,.25),de.spot2=new go.Spot(.75,.75),de}),go.Shape.defineFigureGenerator("File",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var pe=new go.PathFigure(.75*te,0,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),de.spot1=new go.Spot(0,.25),de.spot2=go.Spot.BottomRight,de}),go.Shape.defineFigureGenerator("Interrupt",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(te,.5*ee,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee));var pe=new go.PathFigure(te,.5*ee,!1);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,ee));var me=new go.PathFigure(te,.5*ee,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(.5,.75),de}),go.Shape.defineFigureGenerator("InternalStorage",function(Ge,te,ee){var de=new go.Geometry,le=Ge?Ge.parameter1:NaN,pe=Ge?Ge.parameter2:NaN;isNaN(le)&&(le=.1),isNaN(pe)&&(pe=.1);var me=new go.PathFigure(0,0,!0);de.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 xe=new go.PathFigure(le*te,0,!1);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,le*te,ee)),xe.add(new go.PathSegment(go.PathSegment.Move,0,pe*ee)),xe.add(new go.PathSegment(go.PathSegment.Line,te,pe*ee)),de}),go.Shape.defineFigureGenerator("Junction",function(Ge,te,ee){var de=new go.Geometry,le=1/Math.SQRT2,pe=(1-1/Math.SQRT2)/2,me=_e*.5,xe=.5,be=new go.PathFigure(te,xe*ee,!0);de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,ee,te,(xe+me)*ee,(xe+me)*te,ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,xe*ee,(xe-me)*te,ee,0,(xe+me)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,0,0,(xe-me)*ee,(xe-me)*te,0)),be.add(new go.PathSegment(go.PathSegment.Bezier,te,xe*ee,(xe+me)*te,0,te,(xe-me)*ee));var Be=new go.PathFigure((pe+le)*te,(pe+le)*ee,!1);return de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,pe*te,pe*ee)),Be.add(new go.PathSegment(go.PathSegment.Move,pe*te,(pe+le)*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,(pe+le)*te,pe*ee)),de}),go.Shape.defineFigureGenerator("LinedDocument",function(Ge,te,ee){var de=new go.Geometry;ee=ee/.8;var le=new go.PathFigure(0,.7*ee,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*te,.4*ee,.5*te,ee).close());var pe=new go.PathFigure(.1*te,0,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.1*te,.75*ee)),de.spot1=new go.Spot(.1,0),de.spot2=new go.Spot(1,.6),de}),go.Shape.defineFigureGenerator("LoopLimit",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,ee,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,ee).close()),de.spot1=new go.Spot(0,.25),de.spot2=go.Spot.BottomRight,de}),go.Shape.defineFigureGenerator("MagneticTape",function(Ge,te,ee){var de=new go.Geometry,le=_e*.5,pe=.5,me=new go.PathFigure(.5*te,ee,!0);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,0,pe*ee,(pe-le)*te,ee,0,(pe+le)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,0,0,(pe-le)*ee,(pe-le)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,pe*ee,(pe+le)*te,0,te,(pe-le)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,(pe+.1)*te,.9*ee,te,(pe+le)*ee,(pe+le)*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)),de.spot1=new go.Spot(.15,.15),de.spot2=new go.Spot(.85,.8),de}),go.Shape.defineFigureGenerator("ManualInput",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(te,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee).close()),de.spot1=new go.Spot(0,.25),de.spot2=go.Spot.BottomRight,de}),go.Shape.defineFigureGenerator("MessageFromUser",function(Ge,te,ee){var de=new go.Geometry,le=Ge?Ge.parameter1:NaN;isNaN(le)&&(le=.7);var pe=new go.PathFigure(0,0,!0);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,le*te,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),de.spot1=go.Spot.TopLeft,de}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Ge,te,ee){var de=new go.Geometry,le=Ge?Ge.parameter1:NaN;isNaN(le)&&(le=.25);var pe=new go.PathFigure(0,0,!0);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,le*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,(1-le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),de}),go.Shape.defineFigureGenerator("MicroformRecording",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,.85*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(1,.75),de}),go.Shape.defineFigureGenerator("MultiDocument",function(Ge,te,ee){var de=new go.Geometry;ee=ee/.8;var le=new go.PathFigure(te,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.44*ee,.96*te,.47*ee,.93*te,.45*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.54*ee,.86*te,.57*ee,.83*te,.55*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*te,.7*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.4*te,.4*ee,.4*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*te,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.2*te,0).close());var pe=new go.PathFigure(.1*te,.2*ee,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.54*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.1*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.44*ee)),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(.8,.77),de}),go.Shape.defineFigureGenerator("MultiProcess",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(.1*te,.1*ee,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ee).close());var pe=new go.PathFigure(.2*te,.1*ee,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.1*te,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ee)),de.spot1=new go.Spot(0,.2),de.spot2=new go.Spot(.8,1),de}),go.Shape.defineFigureGenerator("OfflineStorage",function(Ge,te,ee){var de=new go.Geometry,le=Ge?Ge.parameter1:NaN;isNaN(le)&&(le=.1);var pe=1-le,me=new go.PathFigure(0,0,!0);de.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 xe=new go.PathFigure(.5*le*te,le*ee,!1);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,(1-.5*le)*te,le*ee)),de}),go.Shape.defineFigureGenerator("OffPageConnector",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),de.spot1=go.Spot.TopLeft,de.spot2=new go.Spot(.75,1),de}),go.Shape.defineFigureGenerator("Or",function(Ge,te,ee){var de=new go.Geometry,le=_e*.5,pe=.5,me=new go.PathFigure(te,pe*ee,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,ee,te,(pe+le)*ee,(pe+le)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,pe*ee,(pe-le)*te,ee,0,(pe+le)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,0,0,(pe-le)*ee,(pe-le)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,pe*ee,(pe+le)*te,0,te,(pe-le)*ee));var xe=new go.PathFigure(te,.5*ee,!1);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),xe.add(new go.PathSegment(go.PathSegment.Move,.5*te,ee)),xe.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),de}),go.Shape.defineFigureGenerator("PaperTape",function(Ge,te,ee){var de=new go.Geometry;ee=ee/.8;var le=new go.PathFigure(0,.7*ee,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,te,.3*ee,.5*te,.6*ee,.5*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*te,.4*ee,.5*te,ee).close()),de.spot1=new go.Spot(0,.49),de.spot2=new go.Spot(1,.75),de}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Ge,te,ee){var de=new go.Geometry,le=Ge?Ge.parameter1:NaN,pe=Ge?Ge.parameter2:NaN;isNaN(le)&&(le=.1),isNaN(pe)&&(pe=.3);var me=new go.PathFigure(0,0,!0);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,(1-pe)*te,.5*ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),de}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Ge,te,ee){var de=new go.Geometry,le=Ge?Ge.parameter1:NaN,pe=Ge?Ge.parameter2:NaN;isNaN(le)&&(le=.1),isNaN(pe)&&(pe=.3);var me=new go.PathFigure(0,0,!0);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,(1-pe)*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(1-pe)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),de}),go.Shape.defineFigureGenerator("Procedure",function(Ge,te,ee){var de=new go.Geometry,le=Ge?Ge.parameter1:NaN;isNaN(le)&&(le=.1);var pe=new go.PathFigure(0,0,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var me=new go.PathFigure((1-le)*te,0,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,(1-le)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Move,le*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,le*te,ee)),de}),go.Shape.defineFigureGenerator("Process",function(Ge,te,ee){var de=new go.Geometry,le=Ge?Ge.parameter1:NaN;isNaN(le)&&(le=.1);var pe=new go.PathFigure(0,0,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var me=new go.PathFigure(le*te,0,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,le*te,ee)),de.spot2=go.Spot.BottomRight,de}),go.Shape.defineFigureGenerator("Sort",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(.5*te,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var pe=new go.PathFigure(0,.5*ee,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),de.spot1=new go.Spot(.25,.25),de.spot2=new go.Spot(.75,.5),de}),go.Shape.defineFigureGenerator("Start",function(Ge,te,ee){var de=new go.Geometry,le=Ge?Ge.parameter1:NaN;isNaN(le)&&(le=.25);var pe=new go.PathFigure(le*te,0,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ee,.25*te,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ee,.25*te,.5*ee));var me=new go.PathFigure(le*te,0,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,le*te,ee)),me.add(new go.PathSegment(go.PathSegment.Move,(1-le)*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,(1-le)*te,ee)),de.spot1=new go.Spot(le,0),de.spot2=new go.Spot(1-le,1),de}),go.Shape.defineFigureGenerator("Terminator",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(.25*te,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ee,.25*te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ee,.25*te,.5*ee)),de.spot1=new go.Spot(.23,0),de.spot2=new go.Spot(.77,1),de}),go.Shape.defineFigureGenerator("TransmittalTape",function(Ge,te,ee){var de=new go.Geometry,le=Ge?Ge.parameter1:NaN;isNaN(le)&&(le=.1);var pe=new go.PathFigure(0,0,!0);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.75*te,(1-le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,(1-le)*ee).close()),de.spot1=go.Spot.TopLeft,de}),go.Shape.defineFigureGenerator("AndGate",function(Ge,te,ee){var de=new go.Geometry,le=_e*.5,pe=new go.PathFigure(0,0,!0);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,(.5+le)*te,0,te,(.5-le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,(.5+le)*ee,(.5+le)*te,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),de.spot1=go.Spot.TopLeft,de.spot2=new go.Spot(.55,1),de}),go.Shape.defineFigureGenerator("Buffer",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(.5,.75),de}),go.Shape.defineFigureGenerator("Clock",function(Ge,te,ee){var de=new go.Geometry,le=_e*.5,pe=.5,me=new go.PathFigure(te,pe*ee,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,ee,te,(pe+le)*ee,(pe+le)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,pe*ee,(pe-le)*te,ee,0,(pe+le)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,0,0,(pe-le)*ee,(pe-le)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,pe*ee,(pe+le)*te,0,te,(pe-le)*ee));var xe=new go.PathFigure(te,pe*ee,!1);de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te,pe*ee));var be=new go.PathFigure(.8*te,.75*ee,!1);return de.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.8*te,.25*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.6*te,.25*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.6*te,.75*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.4*te,.75*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.4*te,.25*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,.25*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,.75*ee)),de}),go.Shape.defineFigureGenerator("Ground",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(.5*te,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.3*te,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.7*te,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.4*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*te,ee)),de}),go.Shape.defineFigureGenerator("Inverter",function(Ge,te,ee){var de=new go.Geometry,le=_e*.1,pe=.1,me=.9,xe=.5,be=new go.PathFigure(.8*te,.5*ee,!0);de.add(be),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,.8*te,.5*ee));var Be=new go.PathFigure((me+pe)*te,xe*ee,!0);return de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(xe+pe)*ee,(me+pe)*te,(xe+le)*ee,(me+le)*te,(xe+pe)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(me-pe)*te,xe*ee,(me-le)*te,(xe+pe)*ee,(me-pe)*te,(xe+le)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(xe-pe)*ee,(me-pe)*te,(xe-le)*ee,(me-le)*te,(xe-pe)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(me+pe)*te,xe*ee,(me+le)*te,(xe-pe)*ee,(me+pe)*te,(xe-le)*ee)),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(.4,.75),de}),go.Shape.defineFigureGenerator("NandGate",function(Ge,te,ee){var de=new go.Geometry,le=_e*.5,pe=_e*.4,me=_e*.1,xe=.1,be=.9,Be=.5,at=new go.PathFigure(.8*te,.5*ee,!0);de.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ee,.8*te,(.5+pe)*ee,(.4+le)*te,ee)),at.add(new go.PathSegment(go.PathSegment.Line,0,ee)),at.add(new go.PathSegment(go.PathSegment.Line,0,0)),at.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),at.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ee,(.4+le)*te,0,.8*te,(.5-pe)*ee));var dt=new go.PathFigure((be+xe)*te,Be*ee,!0);return de.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Be+xe)*ee,(be+xe)*te,(Be+me)*ee,(be+me)*te,(Be+xe)*ee)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(be-xe)*te,Be*ee,(be-me)*te,(Be+xe)*ee,(be-xe)*te,(Be+me)*ee)),dt.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Be-xe)*ee,(be-xe)*te,(Be-me)*ee,(be-me)*te,(Be-xe)*ee)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(be+xe)*te,Be*ee,(be+me)*te,(Be-xe)*ee,(be+xe)*te,(Be-me)*ee)),de.spot1=new go.Spot(0,.05),de.spot2=new go.Spot(.55,.95),de}),go.Shape.defineFigureGenerator("NorGate",function(Ge,te,ee){var de=new go.Geometry,le=.5,pe=_e*le,me=0,xe=.5,be=new go.PathFigure(.8*te,.5*ee,!0);de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.7*te,(xe+pe)*ee,(me+pe)*te,(xe+le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ee,.25*te,.25*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ee,(me+pe)*te,(xe-le)*ee,.7*te,(xe-pe)*ee)),le=.1,pe=_e*.1,me=.9,xe=.5;var Be=new go.PathFigure((me-le)*te,xe*ee,!0);return de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(xe-le)*ee,(me-le)*te,(xe-pe)*ee,(me-pe)*te,(xe-le)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(me+le)*te,xe*ee,(me+pe)*te,(xe-le)*ee,(me+le)*te,(xe-pe)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(xe+le)*ee,(me+le)*te,(xe+pe)*ee,(me+pe)*te,(xe+le)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(me-le)*te,xe*ee,(me-pe)*te,(xe+le)*ee,(me-le)*te,(xe+pe)*ee)),de.spot1=new go.Spot(.2,.25),de.spot2=new go.Spot(.6,.75),de}),go.Shape.defineFigureGenerator("OrGate",function(Ge,te,ee){var de=new go.Geometry,le=.5,pe=_e*le,me=0,xe=.5,be=new go.PathFigure(0,0,!0);return de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,(me+pe+pe)*te,(xe-le)*ee,.8*te,(xe-pe)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.8*te,(xe+pe)*ee,(me+pe+pe)*te,(xe+le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ee,.25*te,.25*ee).close()),de.spot1=new go.Spot(.2,.25),de.spot2=new go.Spot(.75,.75),de}),go.Shape.defineFigureGenerator("XnorGate",function(Ge,te,ee){var de=new go.Geometry,le=.5,pe=_e*le,me=.2,xe=.5,be=new go.PathFigure(.1*te,0,!1);de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ee,.35*te,.25*ee,.35*te,.75*ee));var Be=new go.PathFigure(.8*te,.5*ee,!0);de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ee,.7*te,(xe+pe)*ee,(me+pe)*te,(xe+le)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ee,.45*te,.25*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ee,(me+pe)*te,(xe-le)*ee,.7*te,(xe-pe)*ee)),le=.1,pe=_e*.1,me=.9,xe=.5;var at=new go.PathFigure((me-le)*te,xe*ee,!0);return de.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(xe-le)*ee,(me-le)*te,(xe-pe)*ee,(me-pe)*te,(xe-le)*ee)),at.add(new go.PathSegment(go.PathSegment.Bezier,(me+le)*te,xe*ee,(me+pe)*te,(xe-le)*ee,(me+le)*te,(xe-pe)*ee)),at.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(xe+le)*ee,(me+le)*te,(xe+pe)*ee,(me+pe)*te,(xe+le)*ee)),at.add(new go.PathSegment(go.PathSegment.Bezier,(me-le)*te,xe*ee,(me-pe)*te,(xe+le)*ee,(me-le)*te,(xe+pe)*ee)),de.spot1=new go.Spot(.4,.25),de.spot2=new go.Spot(.65,.75),de}),go.Shape.defineFigureGenerator("XorGate",function(Ge,te,ee){var de=new go.Geometry,le=.5,pe=_e*le,me=.2,xe=.5,be=new go.PathFigure(.1*te,0,!1);de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ee,.35*te,.25*ee,.35*te,.75*ee));var Be=new go.PathFigure(.2*te,0,!0);return de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,(me+pe)*te,(xe-le)*ee,.9*te,(xe-pe)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ee,.9*te,(xe+pe)*ee,(me+pe)*te,(xe+le)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ee,.45*te,.25*ee).close()),de.spot1=new go.Spot(.4,.25),de.spot2=new go.Spot(.8,.75),de}),go.Shape.defineFigureGenerator("Capacitor",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Move,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,ee)),de}),go.Shape.defineFigureGenerator("Resistor",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,.5*ee,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.4*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.6*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ee)),de}),go.Shape.defineFigureGenerator("Inductor",function(Ge,te,ee){var de=new go.Geometry,le=_e*.1,pe=.1,me=.1,xe=.5,be=new go.PathFigure((me-le*.5)*te,ee,!1);return de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+pe)*te,0,(me-le)*te,ee,(me-pe)*te,0)),me=.3,be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,ee,(me+pe)*te,0,(me+le)*te,ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+pe)*te,0,(me-le)*te,ee,(me-pe)*te,0)),me=.5,be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,ee,(me+pe)*te,0,(me+le)*te,ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+pe)*te,0,(me-le)*te,ee,(me-pe)*te,0)),me=.7,be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,ee,(me+pe)*te,0,(me+le)*te,ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+pe)*te,0,(me-le)*te,ee,(me-pe)*te,0)),me=.9,be.add(new go.PathSegment(go.PathSegment.Bezier,(me+le*.5)*te,ee,(me+pe)*te,0,(me+le)*te,ee)),de}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Ge,te,ee){var de=new go.Geometry,le=_e*.5,pe=.5,me=.5,xe=.5,be=new go.PathFigure((me-pe)*te,xe*ee,!1);return de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(xe-pe)*ee,(me-pe)*te,(xe-le)*ee,(me-le)*te,(xe-pe)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+pe)*te,xe*ee,(me+le)*te,(xe-pe)*ee,(me+pe)*te,(xe-le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(xe+pe)*ee,(me+pe)*te,(xe+le)*ee,(me+le)*te,(xe+pe)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me-pe)*te,xe*ee,(me-le)*te,(xe+pe)*ee,(me-pe)*te,(xe+le)*ee)),be.add(new go.PathSegment(go.PathSegment.Move,(me-pe+.1)*te,xe*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+pe-.1)*te,xe*ee,me*te,(xe-pe)*ee,me*te,(xe+pe)*ee)),de}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,.75*ee,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Move,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,ee)),de}),go.Shape.defineFigureGenerator("Diode",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(te,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,ee)),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(.5,.75),de}),go.Shape.defineFigureGenerator("Wifi",function(Ge,te,ee){var de=new go.Geometry,le=te,pe=ee;te=te*.38,ee=ee*.6;var me=_e*.8,xe=.8,be=0,Be=.5,at=(le-te)/2,dt=(pe-ee)/2,gt=new go.PathFigure(be*te+at,(Be+xe)*ee+dt,!0);de.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,(be-xe)*te+at,Be*ee+dt,(be-me)*te+at,(Be+xe)*ee+dt,(be-xe)*te+at,(Be+me)*ee+dt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,be*te+at,(Be-xe)*ee+dt,(be-xe)*te+at,(Be-me)*ee+dt,(be-me)*te+at,(Be-xe)*ee+dt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(be-xe+me*.5)*te+at,Be*ee+dt,be*te+at,(Be-xe)*ee+dt,(be-xe+me*.5)*te+at,(Be-me)*ee+dt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,be*te+at,(Be+xe)*ee+dt,(be-xe+me*.5)*te+at,(Be+me)*ee+dt,be*te+at,(Be+xe)*ee+dt).close()),me=_e*.4,xe=.4,be=.2,Be=.5;var ft=new go.PathFigure(be*te+at,(Be+xe)*ee+dt,!0);de.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,(be-xe)*te+at,Be*ee+dt,(be-me)*te+at,(Be+xe)*ee+dt,(be-xe)*te+at,(Be+me)*ee+dt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,be*te+at,(Be-xe)*ee+dt,(be-xe)*te+at,(Be-me)*ee+dt,(be-me)*te+at,(Be-xe)*ee+dt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(be-xe+me*.5)*te+at,Be*ee+dt,be*te+at,(Be-xe)*ee+dt,(be-xe+me*.5)*te+at,(Be-me)*ee+dt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,be*te+at,(Be+xe)*ee+dt,(be-xe+me*.5)*te+at,(Be+me)*ee+dt,be*te+at,(Be+xe)*ee+dt).close()),me=_e*.2,xe=.2,be=.5,Be=.5;var Nt=new go.PathFigure((be-xe)*te+at,Be*ee+dt,!0);de.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,be*te+at,(Be-xe)*ee+dt,(be-xe)*te+at,(Be-me)*ee+dt,(be-me)*te+at,(Be-xe)*ee+dt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(be+xe)*te+at,Be*ee+dt,(be+me)*te+at,(Be-xe)*ee+dt,(be+xe)*te+at,(Be-me)*ee+dt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,be*te+at,(Be+xe)*ee+dt,(be+xe)*te+at,(Be+me)*ee+dt,(be+me)*te+at,(Be+xe)*ee+dt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(be-xe)*te+at,Be*ee+dt,(be-me)*te+at,(Be+xe)*ee+dt,(be-xe)*te+at,(Be+me)*ee+dt)),me=_e*.4,xe=.4,be=.8,Be=.5;var Tt=new go.PathFigure(be*te+at,(Be-xe)*ee+dt,!0);de.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(be+xe)*te+at,Be*ee+dt,(be+me)*te+at,(Be-xe)*ee+dt,(be+xe)*te+at,(Be-me)*ee+dt)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,be*te+at,(Be+xe)*ee+dt,(be+xe)*te+at,(Be+me)*ee+dt,(be+me)*te+at,(Be+xe)*ee+dt)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(be+xe-me*.5)*te+at,Be*ee+dt,be*te+at,(Be+xe)*ee+dt,(be+xe-me*.5)*te+at,(Be+me)*ee+dt)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,be*te+at,(Be-xe)*ee+dt,(be+xe-me*.5)*te+at,(Be-me)*ee+dt,be*te+at,(Be-xe)*ee+dt).close()),me=_e*.8,xe=.8,be=1,Be=.5;var Ct=new go.PathFigure(be*te+at,(Be-xe)*ee+dt,!0);return de.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Bezier,(be+xe)*te+at,Be*ee+dt,(be+me)*te+at,(Be-xe)*ee+dt,(be+xe)*te+at,(Be-me)*ee+dt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,be*te+at,(Be+xe)*ee+dt,(be+xe)*te+at,(Be+me)*ee+dt,(be+me)*te+at,(Be+xe)*ee+dt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,(be+xe-me*.5)*te+at,Be*ee+dt,be*te+at,(Be+xe)*ee+dt,(be+xe-me*.5)*te+at,(Be+me)*ee+dt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,be*te+at,(Be-xe)*ee+dt,(be+xe-me*.5)*te+at,(Be-me)*ee+dt,be*te+at,(Be-xe)*ee+dt).close()),de}),go.Shape.defineFigureGenerator("Email",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pe=new go.PathFigure(0,0,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Move,0,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.45*te,.54*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,te,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.54*ee)),de}),go.Shape.defineFigureGenerator("Ethernet",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(.35*te,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.65*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.35*te,0).close());var pe=new go.PathFigure(.1*te,ee,!0,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.4*te,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.6*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.1*te,ee).close());var me=new go.PathFigure(.6*te,ee,!0,!0);de.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 xe=new go.PathFigure(0,.5*ee,!1);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),xe.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ee)),xe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ee)),xe.add(new go.PathSegment(go.PathSegment.Move,.75*te,.5*ee)),xe.add(new go.PathSegment(go.PathSegment.Line,.75*te,.6*ee)),xe.add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ee)),xe.add(new go.PathSegment(go.PathSegment.Line,.25*te,.6*ee)),de}),go.Shape.defineFigureGenerator("Power",function(Ge,te,ee){var de=new go.Geometry,le=_e*.4,pe=.4,me=.5,xe=.5,be=ie(),Be=ie(),at=ie(),dt=ie();Oe(me,xe-pe,me+le,xe-pe,me+pe,xe-le,me+pe,xe,.5,be,be,Be,at,dt);var gt=ae(Be.x,Be.y),ft=new go.PathFigure(Be.x*te,Be.y*ee,!0);de.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,(me+pe)*te,xe*ee,at.x*te,at.y*ee,dt.x*te,dt.y*ee)),ft.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(xe+pe)*ee,(me+pe)*te,(xe+le)*ee,(me+le)*te,(xe+pe)*ee)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(me-pe)*te,xe*ee,(me-le)*te,(xe+pe)*ee,(me-pe)*te,(xe+le)*ee)),Oe(me-pe,xe,me-pe,xe-le,me-le,xe-pe,me,xe-pe,.5,at,dt,Be,be,be),ft.add(new go.PathSegment(go.PathSegment.Bezier,Be.x*te,Be.y*ee,at.x*te,at.y*ee,dt.x*te,dt.y*ee)),le=_e*.3,pe=.3,Oe(me-pe,xe,me-pe,xe-le,me-le,xe-pe,me,xe-pe,.5,at,dt,Be,be,be),ft.add(new go.PathSegment(go.PathSegment.Line,Be.x*te,Be.y*ee)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(me-pe)*te,xe*ee,dt.x*te,dt.y*ee,at.x*te,at.y*ee)),ft.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(xe+pe)*ee,(me-pe)*te,(xe+le)*ee,(me-le)*te,(xe+pe)*ee)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(me+pe)*te,xe*ee,(me+le)*te,(xe+pe)*ee,(me+pe)*te,(xe+le)*ee)),Oe(me,xe-pe,me+le,xe-pe,me+pe,xe-le,me+pe,xe,.5,be,be,Be,at,dt),ft.add(new go.PathSegment(go.PathSegment.Bezier,Be.x*te,Be.y*ee,dt.x*te,dt.y*ee,at.x*te,at.y*ee).close());var ft=new go.PathFigure(.45*te,0,!0);return de.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ee)),ft.add(new go.PathSegment(go.PathSegment.Line,.55*te,.5*ee)),ft.add(new go.PathSegment(go.PathSegment.Line,.55*te,0).close()),Pe(be),Pe(Be),Pe(at),Pe(dt),Pe(gt),de.spot1=new go.Spot(.25,.45),de.spot2=new go.Spot(.75,.8),de}),go.Shape.defineFigureGenerator("Fallout",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,ee/2,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,180,360,te/2,ee/2,te/2,ee/2));function pe(me,xe,be){me.add(new go.PathSegment(go.PathSegment.Move,(.3+xe)*te,(.8+be)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(.5+xe)*te,(.5+be)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(.1+xe)*te,(.5+be)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(.3+xe)*te,(.8+be)*ee).close())}return pe(le,0,0),pe(le,.4,0),pe(le,.2,-.3),de}),go.Shape.defineFigureGenerator("IrritationHazard",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(.2*te,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.3*te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close()),de.spot1=new go.Spot(.3,.3),de.spot2=new go.Spot(.7,.7),de}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(.37*te,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.11*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.77*te,.04*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.33*te,.49*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,.37*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.63*te,.86*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.77*te,.91*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.34*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.34*te,.78*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.44*te,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.65*te,.56*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee).close()),de}),go.Shape.defineFigureGenerator("FireHazard",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(.1*te,ee,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.29*te,0,-.25*te,.63*ee,.45*te,.44*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.51*te,.42*ee,.48*te,.17*ee,.54*te,.35*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.59*te,.18*ee,.59*te,.29*ee,.58*te,.28*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,.6*ee,.8*te,.34*ee,.88*te,.43*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.88*te,.31*ee,.87*te,.48*ee,.88*te,.43*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ee,1.17*te,.76*ee,.82*te,.8*ee).close()),de.spot1=new go.Spot(.07,.445),de.spot2=new go.Spot(.884,.958),de}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Ge,te,ee){var de=new go.Geometry,le=.5,pe=0,me=0,xe=le*_e,be=.4*Math.SQRT2/2+.5,Be=.5-.5*Math.SQRT2/2,at=1,dt=.5,gt=.5,ft=0,Nt=new go.PathFigure(be*te,(1-Be)*ee,!1);return de.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,at*te,dt*ee,at*te,.7*ee,at*te,dt*ee)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(gt+pe)*te,(ft+pe)*ee,(.5+le+pe)*te,(.5-xe+pe)*ee,(.5+xe+pe)*te,(.5-le+pe)*ee)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+pe)*te,(.5+me)*ee,(.5-xe+pe)*te,(.5-le+me)*ee,(.5-le+pe)*te,(.5-xe+me)*ee)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(.35+pe)*te,.9*ee,(.5-le+pe)*te,(.5+xe+me)*ee,(.5-xe+pe)*te,.9*ee)),Nt.add(new go.PathSegment(go.PathSegment.Move,(.25+pe)*te,.8*ee)),Nt.add(new go.PathSegment(go.PathSegment.Line,(.35+pe)*te,.9*ee)),Nt.add(new go.PathSegment(go.PathSegment.Line,(.2+pe)*te,.95*ee)),de}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),le.add(new go.PathSegment(go.PathSegment.Move,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,ee)),de}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Move,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,ee)),de}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);de.add(le);var pe=new go.PathFigure(te,ee,!1);de.add(pe);var me=new go.PathFigure(0,.5*ee,!1);return de.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)),de}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,.5*ee,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee).close()),de}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,.2*ee,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee).close());var le=new go.PathFigure(0,.2*ee,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee)),de}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(.7*te,ee,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.3*te,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,0,.6*te,.5*ee,0,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.7*te,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,ee,.4*te,.5*ee,te,.5*ee).close());var pe=new go.PathFigure(.45*te,.73*ee,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,.73*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.38*te,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.63*te,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.31*te,.27*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.56*te,.27*ee)),de}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);de.add(le);var pe=new go.PathFigure(.335*te,(1-.555)*ee,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te,.68*ee,(1-.12)*te,.46*ee,(1-.02)*te,.54*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.335*te,(1-.555)*ee,.02*te,.54*ee,.12*te,.46*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.365*te,(1-.595)*ee));var me=.5-.285,xe=.5,be=me,Be=Math.PI/4,at=4*(1-Math.cos(Be))/(3*Math.sin(Be)),dt=at*.5,gt=me,ft=me,Nt=at*gt,Tt=at*ft;pe.add(new go.PathSegment(go.PathSegment.Bezier,(xe-gt)*te,be*ee,(xe-(Nt+gt)/2)*te,(be+(ft+Tt)/2)*ee,(xe-gt)*te,(be+Tt)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,(be-ft)*ee,(xe-gt)*te,(be-Tt)*ee,(xe-Nt)*te,(be-ft)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(xe+gt)*te,be*ee,(xe+Nt)*te,(be-ft)*ee,(xe+gt)*te,(be-Tt)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*te,(1-.595)*ee,(xe+gt)*te,(be+Tt)*ee,(xe+(Nt+gt)/2)*te,(be+(ft+Tt)/2)*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*te,(1-.595)*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ee));var Ct=new go.PathFigure(.2*te,ee,!1);de.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Line,.2*te,.8*ee));var Vt=new go.PathFigure(.8*te,ee,!1);return de.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ee)),de}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(.1*te,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.9*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*te,ee).close());var pe=new go.PathFigure(.2*te,.2*ee,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.8*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ee)),de}),go.Shape.defineFigureGenerator("BpmnEventError",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,ee,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.66*te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.66*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.33*te,.5*ee).close()),de}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);de.add(le);var pe=new go.PathFigure(te,ee,!1);de.add(pe);var me=new go.PathFigure(.1*te,ee,!0);return de.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()),de}),go.Shape.defineFigureGenerator("Caution",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(.05*te,ee,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.8*ee,0,ee,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.45*te,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.1*ee,.5*te,0,.5*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.95*te,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ee,te,ee,te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.05*te,ee));var pe=.05;return le.add(new go.PathSegment(go.PathSegment.Move,(.5-pe)*te,.875*ee)),le.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*te,.875*ee,pe*te,pe*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.5*te,.75*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.325*ee,.575*te,.725*ee,.625*te,.375*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.75*ee,.375*te,.375*ee,.425*te,.725*ee)),de}),go.Shape.defineFigureGenerator("Recycle",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(.45*te,.95*ee,!1);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.2*te,.95*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.185*te,.85*ee,.17*te,.95*ee,.15*te,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.235*te,.75*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.3*te,.625*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.35*te,.65*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.275*te,.45*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.05*te,.45*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.05*te,.575*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.1875*te,.95*ee,0,.675*ee,0,.7*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.45*te,.95*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.45*te,.775*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.22*te,.775*ee));var pe=new go.PathFigure(.475*te,.2*ee,!1);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.4*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.225*te,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.275*te,.175*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.325*te,.05*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.05*ee,.35*te,0,.375*te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.575*te,.375*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.525*te,.4*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.75*te,.475*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.85*te,.315*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.32*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.65*te,.05*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,0,.65*te,.05*ee,.625*te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.38*te,.0105*ee));var me=new go.PathFigure(.675*te,.575*ee,!1);return de.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)),de}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Ge,te,ee){var de=new go.Geometry,le=.5,pe=_e*.5,me=new go.PathFigure(te,le*ee,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,le*te,ee,te,(le+pe)*ee,(le+pe)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,le*ee,(le-pe)*te,ee,0,(le+pe)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,le*te,0,0,(le-pe)*ee,(le-pe)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,le*ee,(le+pe)*te,0,te,(le-pe)*ee));var xe=new go.PathFigure(le*te,0,!1);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,le*te,.15*ee)),xe.add(new go.PathSegment(go.PathSegment.Move,le*te,ee)),xe.add(new go.PathSegment(go.PathSegment.Line,le*te,.85*ee)),xe.add(new go.PathSegment(go.PathSegment.Move,0,le*ee)),xe.add(new go.PathSegment(go.PathSegment.Line,.15*te,le*ee)),xe.add(new go.PathSegment(go.PathSegment.Move,te,le*ee)),xe.add(new go.PathSegment(go.PathSegment.Line,.85*te,le*ee)),xe.add(new go.PathSegment(go.PathSegment.Move,le*te,le*ee)),xe.add(new go.PathSegment(go.PathSegment.Line,.58*te,.1*ee)),xe.add(new go.PathSegment(go.PathSegment.Move,le*te,le*ee)),xe.add(new go.PathSegment(go.PathSegment.Line,.78*te,.54*ee)),de}),go.Shape.defineFigureGenerator("Package",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,.15*ee,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var pe=new go.PathFigure(0,.15*ee,!0);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,0,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.65*te,.15*ee).close()),de.spot1=new go.Spot(0,.1),de.spot2=new go.Spot(1,1),de}),go.Shape.defineFigureGenerator("Class",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pe=new go.PathFigure(0,.2*ee,!1);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee).close());var me=new go.PathFigure(0,.5*ee,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee).close()),de}),go.Shape.defineFigureGenerator("Component",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(te,ee,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.15*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.15*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,ee).close());var pe=new go.PathFigure(0,.2*ee,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.45*te,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.4*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close());var me=new go.PathFigure(0,.6*ee,!0);return de.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()),de}),go.Shape.defineFigureGenerator("Boat Shipment",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(.15*te,.6*ee,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.15*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.85*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ee));var pe=new go.PathFigure(.15*te,.6*ee,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ee)),de}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(te,ee,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.66*te,.33*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.66*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.33*te,.33*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,ee).close()),de}),go.Shape.defineFigureGenerator("Workcell",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,ee,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.65*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.35*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),de}),go.Shape.defineFigureGenerator("Supermarket",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.33*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),le.add(new go.PathSegment(go.PathSegment.Move,te,.33*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,.66*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.66*ee)),le.add(new go.PathSegment(go.PathSegment.Move,te,.66*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),de}),go.Shape.defineFigureGenerator("TruckShipment",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pe=new go.PathFigure(te,.8*ee,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,.4*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.4*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee).close());var me=.1,xe=_e*.1,be=.2,Be=.9,at=new go.PathFigure((be-me)*te,Be*ee,!0);de.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Be-me)*ee,(be-me)*te,(Be-xe)*ee,(be-xe)*te,(Be-me)*ee)),at.add(new go.PathSegment(go.PathSegment.Bezier,(be+me)*te,Be*ee,(be+xe)*te,(Be-me)*ee,(be+me)*te,(Be-xe)*ee)),at.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Be+me)*ee,(be+me)*te,(Be+xe)*ee,(be+xe)*te,(Be+me)*ee)),at.add(new go.PathSegment(go.PathSegment.Bezier,(be-me)*te,Be*ee,(be-xe)*te,(Be+me)*ee,(be-me)*te,(Be+xe)*ee).close()),me=.1,xe=_e*.1,be=.8,Be=.9;var dt=new go.PathFigure((be-me)*te,Be*ee,!0);return de.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Be-me)*ee,(be-me)*te,(Be-xe)*ee,(be-xe)*te,(Be-me)*ee)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(be+me)*te,Be*ee,(be+xe)*te,(Be-me)*ee,(be+me)*te,(Be-xe)*ee)),dt.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Be+me)*ee,(be+me)*te,(Be+xe)*ee,(be+xe)*te,(Be+me)*ee)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(be-me)*te,Be*ee,(be-xe)*te,(Be+me)*ee,(be-me)*te,(Be+xe)*ee).close()),de}),go.Shape.defineFigureGenerator("KanbanPost",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(.2*te,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),le.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),le.add(new go.PathSegment(go.PathSegment.Move,.5*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*te,ee)),de}),go.Shape.defineFigureGenerator("Forklift",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,0));var pe=new go.PathFigure(0,.5*ee,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var me=new go.PathFigure(.5*te,.8*ee,!0);de.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 xe=new go.PathFigure(.5*te,.7*ee,!1);de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee));var be=.1,Be=_e*.1,at=.1,dt=.9,gt=new go.PathFigure((at-be)*te,dt*ee,!0);de.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,at*te,(dt-be)*ee,(at-be)*te,(dt-Be)*ee,(at-Be)*te,(dt-be)*ee)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(at+be)*te,dt*ee,(at+Be)*te,(dt-be)*ee,(at+be)*te,(dt-Be)*ee)),gt.add(new go.PathSegment(go.PathSegment.Bezier,at*te,(dt+be)*ee,(at+be)*te,(dt+Be)*ee,(at+Be)*te,(dt+be)*ee)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(at-be)*te,dt*ee,(at-Be)*te,(dt+be)*ee,(at-be)*te,(dt+Be)*ee)),be=.1,Be=_e*.1,at=.4,dt=.9;var ft=new go.PathFigure((at-be)*te,dt*ee,!0);return de.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,at*te,(dt-be)*ee,(at-be)*te,(dt-Be)*ee,(at-Be)*te,(dt-be)*ee)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(at+be)*te,dt*ee,(at+Be)*te,(dt-be)*ee,(at+be)*te,(dt-Be)*ee)),ft.add(new go.PathSegment(go.PathSegment.Bezier,at*te,(dt+be)*ee,(at+be)*te,(dt+Be)*ee,(at+Be)*te,(dt+be)*ee)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(at-be)*te,dt*ee,(at-Be)*te,(dt+be)*ee,(at-be)*te,(dt+Be)*ee)),de}),go.Shape.defineFigureGenerator("RailShipment",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(.1*te,.4*ee,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.45*te,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*te,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*te,.4*ee).close());var pe=new go.PathFigure(.45*te,.7*ee,!1);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ee));var me=new go.PathFigure(.55*te,.4*ee,!0);de.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 at=.05,dt=_e*.05,gt=.175,ft=.95,xe=new go.PathFigure((gt-at)*te,ft*ee,!0);de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,gt*te,(ft-at)*ee,(gt-at)*te,(ft-dt)*ee,(gt-dt)*te,(ft-at)*ee)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(gt+at)*te,ft*ee,(gt+dt)*te,(ft-at)*ee,(gt+at)*te,(ft-dt)*ee)),xe.add(new go.PathSegment(go.PathSegment.Bezier,gt*te,(ft+at)*ee,(gt+at)*te,(ft+dt)*ee,(gt+dt)*te,(ft+at)*ee)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(gt-at)*te,ft*ee,(gt-dt)*te,(ft+at)*ee,(gt-at)*te,(ft+dt)*ee));var at=.05,dt=_e*.05,gt=.375,ft=.95,be=new go.PathFigure((gt-at)*te,ft*ee,!0);de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,gt*te,(ft-at)*ee,(gt-at)*te,(ft-dt)*ee,(gt-dt)*te,(ft-at)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(gt+at)*te,ft*ee,(gt+dt)*te,(ft-at)*ee,(gt+at)*te,(ft-dt)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,gt*te,(ft+at)*ee,(gt+at)*te,(ft+dt)*ee,(gt+dt)*te,(ft+at)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(gt-at)*te,ft*ee,(gt-dt)*te,(ft+at)*ee,(gt-at)*te,(ft+dt)*ee));var at=.05,dt=_e*.05,gt=.625,ft=.95,Be=new go.PathFigure((gt-at)*te,ft*ee,!0);de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,gt*te,(ft-at)*ee,(gt-at)*te,(ft-dt)*ee,(gt-dt)*te,(ft-at)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(gt+at)*te,ft*ee,(gt+dt)*te,(ft-at)*ee,(gt+at)*te,(ft-dt)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,gt*te,(ft+at)*ee,(gt+at)*te,(ft+dt)*ee,(gt+dt)*te,(ft+at)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(gt-at)*te,ft*ee,(gt-dt)*te,(ft+at)*ee,(gt-at)*te,(ft+dt)*ee));var at=.05,dt=_e*.05,gt=.825,ft=.95,Nt=new go.PathFigure((gt-at)*te,ft*ee,!0);de.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,gt*te,(ft-at)*ee,(gt-at)*te,(ft-dt)*ee,(gt-dt)*te,(ft-at)*ee)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(gt+at)*te,ft*ee,(gt+dt)*te,(ft-at)*ee,(gt+at)*te,(ft-dt)*ee)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,gt*te,(ft+at)*ee,(gt+at)*te,(ft+dt)*ee,(gt+dt)*te,(ft+at)*ee)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(gt-at)*te,ft*ee,(gt-dt)*te,(ft+at)*ee,(gt-at)*te,(ft+dt)*ee).close());var Tt=new go.PathFigure(0,ee,!1);return de.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Line,te,ee).close()),de}),go.Shape.defineFigureGenerator("Warehouse",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pe=new go.PathFigure(0,.2*ee,!1);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee).close());var me=new go.PathFigure(.15*te,ee,!0);de.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 xe=.05,be=_e*.05,Be=.35,at=.775,dt=new go.PathFigure((Be-xe)*te,at*ee,!0);return de.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,Be*te,(at-xe)*ee,(Be-xe)*te,(at-be)*ee,(Be-be)*te,(at-xe)*ee)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(Be+xe)*te,at*ee,(Be+be)*te,(at-xe)*ee,(Be+xe)*te,(at-be)*ee)),dt.add(new go.PathSegment(go.PathSegment.Bezier,Be*te,(at+xe)*ee,(Be+xe)*te,(at+be)*ee,(Be+be)*te,(at+xe)*ee)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(Be-xe)*te,at*ee,(Be-be)*te,(at+xe)*ee,(Be-xe)*te,(at+be)*ee).close()),de}),go.Shape.defineFigureGenerator("ControlCenter",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,ee,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*te,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Move,.1*te,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee).close()),de}),go.Shape.defineFigureGenerator("Bluetooth",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,.75*ee,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,.75*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),de}),go.Shape.defineFigureGenerator("Bookmark",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ee)),de}),go.Shape.defineFigureGenerator("Bookmark",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ee)),de}),go.Shape.defineFigureGenerator("Globe",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(.5*te,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),le.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,.75*te,0,te,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,.75*ee,.75*te,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.25*te,ee,0,.75*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,.25*ee,.25*te,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,.15*te,.25*ee,.15*te,.75*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.85*te,.75*ee,.85*te,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.15*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.15*ee,.35*te,.3*ee,.65*te,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.85*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.85*ee,.35*te,.7*ee,.65*te,.7*ee)),de}),go.Shape.defineFigureGenerator("Wave",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,.25*ee,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.25*ee,.1*te,0,.2*te,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.25*ee,.425*te,.5*ee,.575*te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,te,.25*ee,.8*te,0,.9*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.75*ee)),le.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.75*ee,.1*te,.5*ee,.2*te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.75*ee,.425*te,ee,.575*te,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,te,.75*ee,.8*te,.5*ee,.9*te,.5*ee)),de}),go.Shape.defineFigureGenerator("Operator",function(Ge,te,ee){var de=new go.Geometry,le=.3,pe=_e*.3,me=.5,xe=.7,be=new go.PathFigure((me-le)*te,xe*ee,!0);de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(xe-le)*ee,(me-le)*te,(xe-pe)*ee,(me-pe)*te,(xe-le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+le)*te,xe*ee,(me+pe)*te,(xe-le)*ee,(me+le)*te,(xe-pe)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(xe+le)*ee,(me+le)*te,(xe+pe)*ee,(me+pe)*te,(xe+le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me-le)*te,xe*ee,(me-pe)*te,(xe+le)*ee,(me-le)*te,(xe+pe)*ee));var Be=new go.PathFigure(0,.7*ee,!1);return de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,te,.7*ee,0,0,te,0)),de}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(.5*te,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ee,.65*te,.3*ee,.65*te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.35*te,.5*ee,.35*te,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.3*te,.6*ee,.1*te,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ee,.2*te,ee,.35*te,.95*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,te,ee,.7*te,.6*ee,.9*te,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ee,.8*te,ee,.65*te,.95*ee)),de}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(te,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,0,.075*ee,0,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ee,0,ee,.4*te,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.4*ee,.8*te,ee,.85*te,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),de}),go.Shape.defineFigureGenerator("Battery",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,ee,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Move,.4*te,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.6*te,.1*ee));var pe=new go.PathFigure(0,.6*ee,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Move,0,.4*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.4*ee)),de}),go.Shape.defineFigureGenerator("Delete",function(Ge,te,ee){var de=new go.Geometry,le=.5,pe=_e*.5,me=.5,xe=.5,be=new go.PathFigure((me-le)*te,xe*ee,!0);de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(xe-le)*ee,(me-le)*te,(xe-pe)*ee,(me-pe)*te,(xe-le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+le)*te,xe*ee,(me+pe)*te,(xe-le)*ee,(me+le)*te,(xe-pe)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(xe+le)*ee,(me+le)*te,(xe+pe)*ee,(me+pe)*te,(xe+le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me-le)*te,xe*ee,(me-pe)*te,(xe+le)*ee,(me-le)*te,(xe+pe)*ee));var Be=new go.PathFigure(.15*te,.5*ee,!1);return de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,.85*te,.5*ee)),de}),go.Shape.defineFigureGenerator("Flag",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,.1*ee,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Move,0,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.1*ee,.15*te,0,.35*te,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ee,.65*te,.2*ee,.85*te,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ee,.85*te,.6*ee,.65*te,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.35*te,.4*ee,.15*te,.4*ee).close()),de}),go.Shape.defineFigureGenerator("Help",function(Ge,te,ee){var de=new go.Geometry,le=.5,pe=_e*.5,me=.5,xe=.5,be=new go.PathFigure((me-le)*te,xe*ee,!1);de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(xe-le)*ee,(me-le)*te,(xe-pe)*ee,(me-pe)*te,(xe-le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+le)*te,xe*ee,(me+pe)*te,(xe-le)*ee,(me+le)*te,(xe-pe)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(xe+le)*ee,(me+le)*te,(xe+pe)*ee,(me+pe)*te,(xe+le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me-le)*te,xe*ee,(me-pe)*te,(xe+le)*ee,(me-le)*te,(xe+pe)*ee).close()),le=.05,pe=_e*.05,me=.5,xe=.8;var Be=new go.PathFigure((me-le)*te,xe*ee,!1);return de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(xe-le)*ee,(me-le)*te,(xe-pe)*ee,(me-pe)*te,(xe-le)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(me+le)*te,xe*ee,(me+pe)*te,(xe-le)*ee,(me+le)*te,(xe-pe)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(xe+le)*ee,(me+le)*te,(xe+pe)*ee,(me+pe)*te,(xe+le)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(me-le)*te,xe*ee,(me-pe)*te,(xe+le)*ee,(me-le)*te,(xe+pe)*ee).close()),Be.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ee,.75*te,.475*ee,.75*te,.225*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.35*ee,.4*te,.2*ee,.3*te,.25*ee)),de}),go.Shape.defineFigureGenerator("Location",function(Ge,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(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,.5*ee,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var pe=new go.PathFigure(.2*te,.5*ee,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ee,.25*te,0,.75*te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.3*ee)),de}),go.Shape.defineFigureGenerator("Unlocked",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,.5*ee,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var pe=new go.PathFigure(.2*te,.5*ee,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ee,.25*te,0,.75*te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.35*ee)),de}),go.Shape.defineFigureGenerator("Gear",function(Ge,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(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,.5*ee,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.3*ee,0,.375*ee,.05*te,.325*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.45*te,.075*ee,.3*te,.225*ee,.4*te,.175*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.525*te,.075*ee,.46*te,.05*ee,.525*te,.05*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.4*ee,.525*te,.275*ee,.475*te,.325*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.55*ee,te,.4*ee,te,.55*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.425*te,.55*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*te,.55*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.7*ee,.675*te,.55*ee,.675*te,.7*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.575*te,.7*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,.85*ee,.65*te,.7*ee,.65*te,.85*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*te,.85*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.535*te,ee,.61*te,.85*ee,.61*te,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,.435*te,ee,0,ee).close()),de}),go.Shape.defineFigureGenerator("Map",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,.2*ee,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),le.add(new go.PathSegment(go.PathSegment.Move,.25*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.5*te,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),le.add(new go.PathSegment(go.PathSegment.Move,.75*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ee)),de}),go.Shape.defineFigureGenerator("Eject",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,ee,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,ee)),le.add(new go.PathSegment(go.PathSegment.Line,te,ee*.7)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee*.7).close());var pe=new go.PathFigure(0,ee*.6,!0);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,.6*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,0).close()),de}),go.Shape.defineFigureGenerator("Pencil",function(Ge,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(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(te*1,ee*1,!1);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee*.85)),le.add(new go.PathSegment(go.PathSegment.Line,.046*te,ee*.85)),le.add(new go.PathSegment(go.PathSegment.Line,.046*te,ee*.45)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee*.45)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee*.3)),le.add(new go.PathSegment(go.PathSegment.Line,.046*te,ee*.3)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ee*.3)),le.add(new go.PathSegment(go.PathSegment.Line,te,ee*.3)),le.add(new go.PathSegment(go.PathSegment.Line,te,ee*.45)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ee*.45)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ee*.85)),le.add(new go.PathSegment(go.PathSegment.Line,te,ee*.85).close());var pe=new go.PathFigure(.126*te,.85*ee,!1);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.126*te,.45*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.322*te,.45*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.322*te,.85*ee).close());var me=new go.PathFigure(.402*te,.85*ee,!1);de.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 xe=new go.PathFigure(.678*te,.85*ee,!1);de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,.678*te,.45*ee)),xe.add(new go.PathSegment(go.PathSegment.Line,.874*te,.45*ee)),xe.add(new go.PathSegment(go.PathSegment.Line,.874*te,.85*ee).close());var be=new go.PathFigure(.5*te,.1*ee,!1);return de.add(be),be.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*te,.3*ee)),be.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*te,.3*ee).close()),de}),go.Shape.defineFigureGenerator("Staircase",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,ee*1,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te*.2,ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*.2,ee*.8)),le.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.8)),le.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.6)),le.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.6)),le.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.4)),le.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*.4)),le.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*.2)),le.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.2)),le.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.15)),le.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.15)),le.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.35)),le.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.35)),le.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.55)),le.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*.55)),le.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.15,ee*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.15,ee*.95)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee*.95).close()),de}),go.Shape.defineFigureGenerator("5Bars",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,ee*1,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te*.184,ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*.184,ee*(1-.184)).close());var pe=new go.PathFigure(te*.204,ee,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te*.204,ee*(1-.184))),pe.add(new go.PathSegment(go.PathSegment.Line,te*.388,ee*(1-.184*2))),pe.add(new go.PathSegment(go.PathSegment.Line,te*.388,ee*1).close());var me=new go.PathFigure(te*.408,ee,!0);de.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 xe=new go.PathFigure(te*.612,ee,!0);de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te*.612,ee*(1-.184*3))),xe.add(new go.PathSegment(go.PathSegment.Line,te*.796,ee*(1-.184*4))),xe.add(new go.PathSegment(go.PathSegment.Line,te*.796,ee*1).close());var be=new go.PathFigure(te*.816,ee,!0);return de.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te*.816,ee*(1-.184*4))),be.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*(1-.184*5))),be.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1).close()),de}),go.Shape.defineFigureGenerator("PC",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*.3,0).close());var pe=new go.PathFigure(te*.055,.07*ee,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.07)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.1)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.055,ee*.1).close());var me=new go.PathFigure(te*.055,.13*ee,!0);de.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 xe=new go.PathFigure(te*.055,.18*ee,!0);de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.18)),xe.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.21)),xe.add(new go.PathSegment(go.PathSegment.Line,te*.055,ee*.21).close());var be=new go.PathFigure(te*1,0,!0);return de.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te*.4,0)),be.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.65)),be.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.65).close()),de}),go.Shape.defineFigureGenerator("Plane",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(.55*te,ee,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*te,.475*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.35*te,.525*ee,0,.4*ee,.225*te,.45*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*te,.475*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.15*te,.35*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.2*te,.325*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*te,.325*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.85*te,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.2*ee,.975*te,0,te,.08*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.7*te,.45*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*te,.95*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.55*te,ee).close()),de}),go.Shape.defineFigureGenerator("Key",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(te*1,ee*.5,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te*.9,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te*.5,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te*.5,.35*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te*.45,.35*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te*.3,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te*.15,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.35*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.65*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te*.15,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te*.3,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te*.45,.65*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te*.5,.65*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te*.5,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te*.6,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te*.65,.55*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te*.7,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te*.75,.55*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te*.8,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te*.85,.575*ee)),le.add(new go.PathSegment(go.PathSegment.Line,te*.9,.6*ee).close()),le.add(new go.PathSegment(go.PathSegment.Move,.17*te,.425*ee)),le.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*te,.5*ee,.075*te,.075*ee).close()),de}),go.Shape.defineFigureGenerator("FilmTape",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);de.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*0,te*.3,te*.055)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*.08,ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*.08,ee*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ee*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ee*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ee*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ee*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ee*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ee*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ee*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ee*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ee*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ee*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ee*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ee*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ee*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ee*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ee*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1));var pe=new go.PathFigure(0,0,!1);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*0)),pe.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*1,te*.3,te*.055)),pe.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1));var me=new go.PathFigure(te*.11,ee*.1,!1);de.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 xe=new go.PathFigure(te*(.11+.24133333*1+.028*1),ee*.1,!1);de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ee*.1)),xe.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ee*.8)),xe.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*1),ee*.8).close());var be=new go.PathFigure(te*(.11+.24133333*2+.028*2),ee*.1,!1);return de.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ee*.1)),be.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ee*.8)),be.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*2),ee*.8).close()),de}),go.Shape.defineFigureGenerator("FloppyDisk",function(Ge,te,ee){var de=new go.Geometry,le=8,pe=le*_e,me=new go.PathFigure(le,0,!1);de.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-le)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-le,ee,te,ee-pe,te-pe,ee)),me.add(new go.PathSegment(go.PathSegment.Line,le,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-le,pe,ee,0,ee-pe)),me.add(new go.PathSegment(go.PathSegment.Line,0,le)),me.add(new go.PathSegment(go.PathSegment.Bezier,le,0,0,pe,pe,0).close());var xe=new go.PathFigure(te*.83,0,!1);de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te*.83,ee*.3)),xe.add(new go.PathSegment(go.PathSegment.Line,te*.17,ee*.3)),xe.add(new go.PathSegment(go.PathSegment.Line,te*.17,ee*0).close());var be=new go.PathFigure(te*.83,ee*1,!1);de.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te*.83,ee*.5)),be.add(new go.PathSegment(go.PathSegment.Line,te*.17,ee*.5)),be.add(new go.PathSegment(go.PathSegment.Line,te*.17,ee*1).close());var Be=new go.PathFigure(te*.78,ee*.05,!1);return de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.05)),Be.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.25)),Be.add(new go.PathSegment(go.PathSegment.Line,te*.78,ee*.25).close()),de}),go.Shape.defineFigureGenerator("SpeechBubble",function(Ge,te,ee){var de=Ge?Ge.parameter1:NaN;(isNaN(de)||de<0)&&(de=15),de=Math.min(de,te/3),de=Math.min(de,ee/3);var le=de*_e,pe=ee*.8,me=new go.Geometry,xe=new go.PathFigure(de,0,!0);return me.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te-de,0)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te,de,te-le,0,te,le)),xe.add(new go.PathSegment(go.PathSegment.Line,te,pe-de)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te-de,pe,te,pe-le,te-le,pe)),xe.add(new go.PathSegment(go.PathSegment.Line,te*.7,pe)),xe.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee)),xe.add(new go.PathSegment(go.PathSegment.Line,te*.55,pe)),xe.add(new go.PathSegment(go.PathSegment.Line,de,pe)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,pe-de,le,pe,0,pe-le)),xe.add(new go.PathSegment(go.PathSegment.Line,0,de)),xe.add(new go.PathSegment(go.PathSegment.Bezier,de,0,0,le,le,0).close()),le>1?(me.spot1=new go.Spot(0,0,le,le),me.spot2=new go.Spot(1,.8,-le,-le)):(me.spot1=go.Spot.TopLeft,me.spot2=new go.Spot(1,.8)),me}),go.Shape.defineFigureGenerator("Repeat",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(te*0,ee*.45,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.45)),le.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*.45)),le.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*.9)),le.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.9)),le.add(new go.PathSegment(go.PathSegment.Line,te*.65,ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*.2,ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*.2,ee*.45).close());var pe=new go.PathFigure(te*1,ee*.55,!0);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*1)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.55)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee*.55)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee*.1)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.1)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*0)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*0)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*.55).close()),de}),go.Shape.defineFigureGenerator("Windows",function(Ge,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(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(te*0,ee*.1,!1);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.1)),le.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.9)),le.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*.9).close());var pe=new go.PathFigure(te*.1,ee*.2,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te*.1,ee*.25)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.22,ee*.285)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.1,ee*.32)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.1,ee*.37)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.275,ee*.32)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.275,ee*.25).close());var me=new go.PathFigure(te*.28,ee*.37,!0);return de.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()),de}),go.Shape.defineFigureGenerator("Beaker",function(Ge,te,ee){var de=new go.Geometry,le=15,pe=le*_e,me=new go.PathFigure(te*.62,ee*.475,!0);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,ee-le)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-le,ee,te,ee-pe,te-pe,ee)),me.add(new go.PathSegment(go.PathSegment.Line,le,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-le,pe,ee,0,ee-pe)),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()),pe>1?(de.spot1=new go.Spot(0,0,pe,pe),de.spot2=new go.Spot(1,1,-pe,-pe)):(de.spot1=go.Spot.TopLeft,de.spot2=go.Spot.BottomRight),de}),go.Shape.defineFigureGenerator("Download",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(te*0,ee*1,!0);de.add(le);var pe=.1/.3;le.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.055)),le.add(new go.PathSegment(go.PathSegment.Line,te*.755,ee*.055)),le.add(new go.PathSegment(go.PathSegment.Line,te*.93,ee*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*.64,ee*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*.61,ee*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.39,ee*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.36,ee*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*.07,ee*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ee*.055)),le.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*.055)),le.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*(1-pe)).close());var me=new go.PathFigure(te*.4,ee*0,!0);return de.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()),de}),go.Shape.defineFigureGenerator("Bin",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(te*0,ee*1,!0);de.add(le);var pe=.1/.3;return le.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.055)),le.add(new go.PathSegment(go.PathSegment.Line,te*.755,ee*.055)),le.add(new go.PathSegment(go.PathSegment.Line,te*.93,ee*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*.64,ee*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*.61,ee*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.39,ee*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.36,ee*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*.07,ee*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ee*.055)),le.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*.055)),le.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*(1-pe)).close()),de}),go.Shape.defineFigureGenerator("Upload",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(te*0,ee*1,!0);de.add(le);var pe=.1/.3;le.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.055)),le.add(new go.PathSegment(go.PathSegment.Line,te*.755,ee*.055)),le.add(new go.PathSegment(go.PathSegment.Line,te*.93,ee*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*.64,ee*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*.61,ee*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.39,ee*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.36,ee*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*.07,ee*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ee*.055)),le.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*.055)),le.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*(1-pe)).close());var me=new go.PathFigure(te*.5,ee*0,!0);return de.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()),de}),go.Shape.defineFigureGenerator("EmptyDrink",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(te*.15,ee*0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te*.85,ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*1).close()),de}),go.Shape.defineFigureGenerator("Drink",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(te*.15,ee*0,!1);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te*.85,ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*1).close());var pe=new go.PathFigure(te*.235,ee*.28,!0);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te*.765,ee*.28)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.655,ee*.97)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.345,ee*.97).close()),de}),go.Shape.defineFigureGenerator("4Arrows",function(Ge,te,ee){var de=new go.Geometry,le=new go.PathFigure(te*.5,ee*0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te*.65,ee*.25)),le.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.25)),le.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.45)),le.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.45)),le.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.35)),le.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.5)),le.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.65)),le.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.55)),le.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.55)),le.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.65,ee*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.55)),le.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*.55)),le.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*.65)),le.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*.5)),le.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*.35)),le.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*.45)),le.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.45)),le.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.25)),le.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*.25).close()),de}),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")},61016: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 Ke={},we="5.0",ae={},ie=null,Pe=!1,Fe=!1,Oe=null,tt=!1,Me=null,_e=null,ut=0;ut<arguments.length;ut++){var et=arguments[ut];if(et!==null)switch(typeof et){case"number":we=et.toFixed(1);break;case"string":et.match(new RegExp("^[0-9]\\.[0-9]+$"))?we=et:Oe=et;break;case"object":typeof et.is3D!="undefined"?ie=et:ae=et;break;case"boolean":Pe=et,Fe=!0;break}}ie===null&&(ie={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&&!Fe&&(Pe=!0)),Oe!==null&&ae.id===void 0&&(ae.id=Oe);var lt="",Et="",rt=!1,_t=null,Ge=null,te=null,ee=!1,de=null,le=null,pe=null,me=null,xe=null;ae.height!==void 0&&(ae.height=Math.round(ae.height)),ae.width!==void 0&&(ae.width=Math.round(ae.width));var be=function(Zt){return parseFloat(Zt)>4?parseFloat(Zt):5};Ke.setHTML5Codebase=function(Zt,zn){_e=Zt,Ie(Zt,zn)},Ke.setJavaCodebase=Ke.setJavaCodebaseVersion=Ke.isCompiledInstalled=Ke.setPreCompiledScriptPath=Ke.setPreCompiledResourcePath=function(){},Ke.setHTML5CodebaseVersion=function(Zt,zn){var _n=parseFloat(Zt);if(_n!==NaN&&_n<5){console.log("The GeoGebra HTML5 codebase version "+_n+" is deprecated. Using version latest instead.");return}Me=Zt,pt(Zt,zn)},Ke.getHTML5CodebaseVersion=function(){return Ge},Ke.getParameters=function(){return ae},Ke.setFontsCSSURL=function(Zt){me=Zt},Ke.setGiacJSURL=function(Zt){},Ke.setJNLPFile=function(Zt){lt=Zt},Ke.setJNLPBaseDir=function(Zt){},Ke.inject=function(){function Zt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var zn="auto",_n=ae.id,nr,Ft=!1,Wt=0;Wt<arguments.length;Wt++){var ht=arguments[Wt];typeof ht=="string"?(ht=ht.toLowerCase(),ht.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?zn=ht:_n=arguments[Wt]):typeof ht=="boolean"?Ft=ht:ht instanceof HTMLElement&&(nr=ht)}tn();function tn(){if(!tt){setTimeout(tn,200);return}zn=Nn(zn);var an=nr||document.getElementById(_n);if(!an){console.log("possibly bug on ajax loading? ");return}if(Ke.removeExistingApplet(an,!1),ae.width===void 0&&an.clientWidth&&(ae.width=an.clientWidth),ae.height===void 0&&an.clientHeight&&(ae.height=an.clientHeight),!(ae.width&&ae.height)&&zn==="html5"&&(delete ae.width,delete ae.height),_t=zn,zn==="screenshot")Vt(an,ae);else{var ct=!1;ae.hasOwnProperty("playButton")&&ae.playButton||ae.hasOwnProperty("clickToLoad")&&ae.clickToLoad?ct=!0:ae.hasOwnProperty("playButtonAutoDecide")&&ae.playButtonAutoDecide&&(ct=(!Be()||Zt())&&at()),ct?(_t="screenshot",nn(an,ae,Ft,zn)):Ct(an,ae,Ft)}}};function Be(){try{return window.self!==window.top}catch(Zt){return!0}}function at(){return ae.hasOwnProperty("screenshotGenerator")&&ae.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ke.getViews=function(){return ie},Ke.isJavaInstalled=function(){return!1};var dt=function(Zt){var zn=function(Wt){var ht=JSON.parse(Wt),tn=function(Ue){return Ue.type=="G"||Ue.type=="E"},an=ht.elements?ht.elements.filter(tn)[0]:ht;if(!an||!an.url){_n();return}ae.fileName=an.url,gt(an.settings||{}),ie.is3D=!0;var ct="https://www.geogebra.org/images/";Ke.setPreviewImage(de||an.previewUrl,ct+"GeoGebra_loading.png",ct+"applet_play.png"),Zt()},_n=function(){ae.onError&&ae.onError(),on("Error: Fetching material (id "+ae.material_id+") failed.",ae)},nr=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ft="/materials/"+ae.material_id+"?scope=basic";ft("https://"+nr+"/api/proxy.php?path="+encodeURIComponent(Ft),zn,_n)};function gt(Zt){var zn=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(_n){Zt[_n]=!!Zt[_n]}),zn.forEach(function(_n){ae[_n]===void 0&&Zt[_n]!==void 0&&(ae[_n]=Zt[_n])}),ae.showToolBarHelp===void 0&&(ae.showToolBarHelp=ae.showToolBar)}function ft(Zt,zn,_n){var nr=new XMLHttpRequest;nr.open("GET",Zt),nr.onload=function(){zn(nr.responseText)},nr.onerror=_n,nr.send()}Ke.isHTML5Installed=function(){return!0},Ke.getLoadedAppletType=function(){return _t},Ke.setPreviewImage=function(Zt,zn,_n){de=Zt,le=zn,pe=_n},Ke.removeExistingApplet=function(Zt,zn){var _n;typeof Zt=="string"&&(Zt=document.getElementById(Zt)),_t=null;var nr=null;for(_n=0;_n<Zt.childNodes.length;_n++){var Ft=Zt.childNodes[_n],Wt=Ft.className;Wt==="applet_screenshot"?zn?(Ft.style.display="block",_t="screenshot"):Ft.style.display="none":Wt!=="applet_scaler prerender"&&(Zt.removeChild(Ft),nr=Wt&&Wt.indexOf("appletParameters")!=-1?Ft.id:null,_n--)}var ht=ae.id!==void 0?ae.id:nr,tn=window[ht];tn&&typeof tn.getBase64=="function"&&(tn.remove(),window[ht]=null)},Ke.refreshHitPoints=function(){if(be(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Zt=Ke.getAppletObject();return Zt&&typeof Zt.recalculateEnvironments=="function"?(Zt.recalculateEnvironments(),!0):!1},Ke.startAnimation=function(){var Zt=Ke.getAppletObject();return Zt&&typeof Zt.startAnimation=="function"?(Zt.startAnimation(),!0):!1},Ke.stopAnimation=function(){var Zt=Ke.getAppletObject();return Zt&&typeof Zt.stopAnimation=="function"?(Zt.stopAnimation(),!0):!1},Ke.getAppletObject=function(){var Zt=ae.id!==void 0?ae.id:"ggbApplet";return window[Zt]},Ke.resize=function(){};var Nt=function(Zt,zn,_n){var nr=document.createElement("param");nr.setAttribute("name",zn),nr.setAttribute("value",_n),Zt.appendChild(nr)},Tt=function(Zt){return Zt&&Zt!=="false"},Ct=function(Zt,zn,_n){be(Ge)<=4.2&&(_n=!0);var nr=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ge||ggbHTML5LoadedCodebaseIsWebSimple&&!ee)&&(nr=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ft=document.createElement("div");Ft.classList.add("appletParameters","notranslate");var Wt=zn.width,ht=zn.height;if(zn.disableAutoScale=zn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():zn.disableAutoScale,zn.width!==void 0)if(be(Ge)<=4.4)Tt(zn.showToolBar)&&(zn.height-=7),Tt(zn.showAlgebraInput)&&(zn.height-=37),zn.width<605&&Tt(zn.showToolBar)&&(zn.width=605,Wt=605);else{var tn=100;(Tt(zn.showToolBar)||Tt(zn.showMenuBar))&&(zn.hasOwnProperty("customToolBar")&&(zn.customToolbar=zn.customToolBar),tn=Tt(zn.showMenuBar)?245:155),Wt<tn&&(zn.width=tn,Wt=tn)}Ft.style.border="none",Ft.style.display="inline-block";for(var an in zn)zn.hasOwnProperty(an)&&an!=="appletOnLoad"&&Ft.setAttribute("data-param-"+an,zn[an]);me&&Ft.setAttribute("data-param-fontscssurl",me),Ke.resize=function(){GGBAppletUtils.responsiveResize(Zt,zn)},window.addEventListener("resize",function(yn){Ke.resize()});var ct=typeof zn.appletOnLoad=="function"?zn.appletOnLoad:function(){};if(!_n&&zn.width!==void 0){zn.hasOwnProperty("showSplash")||Ft.setAttribute("data-param-showSplash","false");var Ue=Zt.querySelector(".applet_scaler.prerender"),He=Ue!==null;if(He)var it=Ue.querySelector(".ggb_preview");else{var it=un(Wt,ht,zn.borderColor,!1);Ue=document.createElement("div"),Ue.className="applet_scaler",Ue.style.position="relative",Ue.style.display="block",Ue.style.width=Wt+"px",Ue.style.height=ht+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ue,"66%"),be(Ge)>=5?(zn.appletOnLoad=function(yn){var Er=Zt.querySelector(".ggb_preview");Er&&Er.parentNode.removeChild(Er),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ue),window.GGBT_wsf_view&&$(window).trigger("resize"),ct(yn)},He||Ue.appendChild(it)):Ft.appendChild(it),Ue.appendChild(Ft),He||Zt.appendChild(Ue),setTimeout(function(){Ke.resize()},1)}else{var vt=document.createElement("div");vt.className="applet_scaler",vt.style.position="relative",vt.style.display="block",vt.appendChild(Ft),Zt.appendChild(vt),zn.appletOnLoad=function(yn){Ke.resize(),ct(yn)}}function Ye(yn,Er){Er&&typeof Er.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(yn,Er.appletOnLoad):renderGGBElement(yn),on("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Er)}function It(yn,Er){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:yn,params:Er}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(sr){Ye(sr.article,sr.params)}),html5AppletsToProcess=null)},be(Ge)<5&&(yn.className+=" geogebraweb")):Ye(yn,Er)}if(nr){scriptLoadStarted=!0;for(var In=0;In<Ft.childNodes.length;In++){var Kn=Ft.childNodes[In].tagName;Kn==="TABLE"&&(Ft.removeChild(Ft.childNodes[In]),In--)}if(ggbHTML5LoadedScript!==null){var dr=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');dr!=null&&dr.parentNode.removeChild(dr)}var Rn=document.createElement("script"),er=function(){It(Ft,zn)};Rn.src=Et+te,ggbHTML5LoadedCodebaseIsWebSimple=ee,ggbHTML5LoadedCodebaseVersion=Ge,ggbHTML5LoadedScript=Rn.src,on("GeoGebra HTML5 codebase loaded: '"+Et+"'.",zn),!_e&&(!Me||Me=="5.0")?(ee?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),er()):Et.requirejs?__webpack_require__.e(12).then(function(){var yn=[__webpack_require__(12)];er.apply(null,yn)}.bind(this)).catch(__webpack_require__.oe):(Rn.onload=er,Zt.appendChild(Rn))}else It(Ft,zn);zn.height=ht,zn.width=Wt},Vt=function(Zt,zn,_n){var nr=un(zn.width,zn.height,zn.borderColor,_n),Ft=document.createElement("div");Ft.style.position="relative",Ft.style.display="block",Ft.style.width=zn.width+"px",Ft.style.height=zn.height+"px",Ft.className="applet_screenshot applet_scaler"+(_n?" applet_screenshot_play":""),Ft.appendChild(nr);var Wt=GGBAppletUtils.getScale(zn,Zt,_n);_n?(Zt.appendChild(Cn()),window.GGBT_wsf_view||(Zt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ft,"66%"),Zt.appendChild(Ft),Wt!==1&&!isNaN(Wt)&&(GGBAppletUtils.scaleElement(Ft,Wt),Ft.style.width=zn.width+"px",Ft.style.height=zn.height+"px",Ft.parentNode.style.width=zn.width*Wt+"px",Ft.parentNode.style.height=zn.height*Wt+"px"),Ke.resize=function(){Rt(Zt,nr,Ft,_n)},window.addEventListener("resize",function(ht){Ke.resize()}),Ke.resize()};function Rt(Zt,zn,_n,nr){if(Zt.contains(zn)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Zt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Zt)}var Ft=GGBAppletUtils.getScale(ae,Zt,nr);_n.parentNode!==null&&(!isNaN(Ft)&&Ft!==1?(GGBAppletUtils.scaleElement(_n,Ft),_n.parentNode.style.width=ae.width*Ft+"px",_n.parentNode.style.height=ae.height*Ft+"px"):(GGBAppletUtils.scaleElement(_n,1),_n.parentNode.style.width=ae.width+"px",_n.parentNode.style.height=ae.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Zt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ke.onExitFullscreen=function(Zt,zn){zn.appendChild(Zt)};var nn=function(Zt,zn,_n,nr){Vt(Zt,zn,!0);for(var Ft=function(){var tn=[];for(ht=0;ht<Zt.childNodes.length;ht++)tn.push(Zt.childNodes[ht]);if(window.GGBT_wsf_view){var an=window.GGBT_wsf_view.renderFullScreen(Zt,zn.id),ct=document.getElementById("fullscreencontainer"),Ue=jQuery(Zt).find(".fullscreencontent");Ue.length>0?(an.remove(),Ue.attr("id","fullscreencontent").show(),jQuery(ct).append(Ue),window.dispatchEvent(new Event("resize"))):Ct(an,zn,!1),window.GGBT_wsf_view.launchFullScreen(ct)}else _t=nr,Ct(Zt,zn,!1);if(!window.GGBT_wsf_view)for(ht=0;ht<tn.length;ht++)Zt.removeChild(tn[ht])},Wt=Zt.getElementsByClassName("ggb_preview_play"),ht=0;ht<Wt.length;ht++)Wt[ht].addEventListener("click",Ft,!1),Wt[ht].addEventListener("ontouchstart",Ft,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Zt),at()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Cn=function(){var Zt=document.createElement("div");if(Zt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var zn='.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");}',_n=document.createElement("style");_n.styleSheet?_n.styleSheet.cssText=zn:_n.appendChild(document.createTextNode(zn)),document.getElementsByTagName("head")[0].appendChild(_n)}return Zt},un=function(Zt,zn,_n,nr){var Ft=document.createElement("div");Ft.className="ggb_preview",Ft.style.position="absolute",Ft.style.zIndex="90",Ft.style.width=Zt-2+"px",Ft.style.height=zn-2+"px",Ft.style.top="0px",Ft.style.left="0px",Ft.style.overflow="hidden",Ft.style.backgroundColor="white";var Wt="lightgrey";_n!==void 0&&(_n==="none"?Wt="transparent":Wt=_n),Ft.style.border="1px solid "+Wt;var ht=document.createElement("img");if(ht.style.position="relative",ht.style.zIndex="1000",ht.style.top="-1px",ht.style.left="-1px",de!==null&&ht.setAttribute("src",de),ht.style.opacity=.7,le!==null){var tn,an,ct;if(!nr){tn=document.createElement("img"),tn.style.position="absolute",tn.style.zIndex="1001",tn.style.opacity=1,ht.style.opacity=.3,an=360,an>Zt/4*3&&(an=Zt/4*3),ct=an/5.8,tn.setAttribute("src",le),tn.setAttribute("width",an),tn.setAttribute("height",ct);var Ue=(Zt-an)/2,He=(zn-ct)/2;tn.style.left=Ue+"px",tn.style.top=He+"px",Ft.appendChild(tn)}}return Ft.appendChild(ht),Ft},Nn=function(Zt){return Zt=Zt.toLowerCase(),Zt==="html5"||Zt==="screenshot"?Zt:"html5"},wt=["web","webSimple","web3d","tablet","tablet3d","phone"],pt=function(Zt,zn){if(Ge=Zt,zn){Ie(Ge,!0);return}var _n=!Pe;if(_n){var nr=be(Ge);!isNaN(nr)&&nr<4.4&&(_n=!1)}var Ft,Wt;window.location.protocol.substr(0,4)==="http"?Ft=window.location.protocol:Ft="http:";var ht=Ge.indexOf("//");ht>0?Wt=Ge:ht===0?Wt=Ft+Ge:Wt="https://www.geogebra.org/apps/5.2.814.0/";for(var tn in wt)if(Ge.slice(wt[tn].length*-1)===wt[tn]||Ge.slice((wt[tn].length+1)*-1)===wt[tn]+"/"){Ie(Wt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&_n&&!ie.is3D&&!ie.AV&&!ie.SV&&!ie.CV&&!ie.EV2&&!ie.CP&&!ie.PC&&!ie.DA&&!ie.FI&&!ie.PV&&!Tt(ae.showToolBar)&&!Tt(ae.showMenuBar)&&!Tt(ae.showAlgebraInput)&&!Tt(ae.enableRightClick)&&(!ae.appName||ae.appName=="classic")?Wt+="webSimple/":Wt+="web3d/",Ie(Wt,!1)},Ie=function(Zt,zn){if(Zt.requirejs){Et=Zt;return}Zt.slice(-1)!=="/"&&(Zt+="/"),Et=Zt,zn===null&&(zn=Zt.indexOf("http")===-1),rt=zn,te="web.nocache.js",ee=!1;var _n=Et.split("/");_n.length>1&&(!zn&&_n[_n.length-2]==="webSimple"?(te="webSimple.nocache.js",ee=!0):wt.indexOf(_n[_n.length-2])>=0&&(te=_n[_n.length-2]+".nocache.js")),_n=Zt.split("/"),Ge=_n[_n.length-3],Ge.substr(0,4)==="test"?Ge=Ge.substr(4,1)+"."+Ge.substr(5,1):(Ge.substr(0,3)==="war"||Ge.substr(0,4)==="beta")&&(Ge="5.0");var nr=parseFloat(Ge);nr!==NaN&&nr<5&&Zt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+nr+" is deprecated. Using version latest instead."),pt("5.0",zn))},on=function(Zt,zn){window.console&&window.console.log&&(!zn||typeof zn.showLogging=="undefined"||zn.showLogging&&zn.showLogging!=="false")&&console.log(Zt)};ae.material_id!==void 0?dt(Bn):Bn();function Bn(){var Zt=we;Me!==null?Zt=Me:parseFloat(Zt)<5&&(Zt="5.0"),pt(Zt,!1),_e!==null&&Ie(_e,rt),tt=!0}return Ke},GGBAppletUtils=function(){"use strict";function Ke(){return window.GGBT_wsf_edit!==void 0}function we(tt,Me){Me!=1?(tt.style.transformOrigin="0% 0% 0px",tt.style.webkitTransformOrigin="0% 0% 0px",tt.style.transform="scale("+Me+","+Me+")",tt.style.webkitTransform="scale("+Me+","+Me+")",tt.style.maxWidth="initial",tt.querySelector(".ggb_preview")!==null&&(tt.querySelector(".ggb_preview").style.maxWidth="initial"),tt.querySelectorAll(".ggb_preview img")[0]!==void 0&&(tt.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),tt.querySelectorAll(".ggb_preview img")[1]!==void 0&&(tt.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(tt.style.transform="none",tt.style.webkitTransform="none")}function ae(tt,Me,_e,ut,et,lt){var Et=null;if(lt!=null&<!="")for(var rt=tt.parentNode;rt!=null;)if((" "+rt.className+" ").indexOf(" "+lt+" ")>-1){Et=rt;break}else rt=rt.parentNode;var _t=0,Ge=0,te=0,ee=0,de=0,le=0,pe=0;if(Et)_t=Et.offsetWidth,Ge=Math.max(ut?Et.offsetWidth:0,Et.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(_t=Math.min(window.innerWidth,document.documentElement.clientWidth),Ge=Math.min(window.innerHeight,document.documentElement.clientHeight),te=_t):(_t=window.innerWidth,Ge=window.innerHeight,te=window.innerWidth),tt){var me=tt.getBoundingClientRect();me.left>0&&me.left<=_t&&(et===void 0||!et)&&(document.dir==="rtl"?(de=_t-me.width-me.left,le=te<=480?10:30):(le=me.left,de=te<=480?10:30),ee=le+de)}if(tt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var xe=tt.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ee=40,pe=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee=0,pe=40)}}return tt&&((_e===void 0||!_e)&&Me>0&&Me+ee<_t?_t=Me:_t-=ee,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(_e===void 0||!_e)&&(Ge-=pe)),{width:_t,height:Ge}}function ie(tt,Me,_e,ut,et){if(tt.isScreenshoGenerator)return 1;var lt=ut!==void 0&&ut,Et=tt.noScaleMargin!=null&&tt.noScaleMargin,rt=function(xe){return xe&&xe!=="false"},_t=rt(tt.autoHeight),Ge=ae(Me,tt.width,_e,_t,lt&&window.GGBT_wsf_view||Et,et),te=parseInt(Ge.width),ee=tt.width,de=tt.height;if(ee===void 0){var le=Me.querySelector(".appletParameters");le&&(ee=le.offsetWidth,de=le.offsetHeight)}var pe=te/ee,me=lt?1:Ge.height/de;return _e!==void 0&&!_e&&(pe=Math.min(1,pe),me=Math.min(1,me)),Math.min(pe,me)}function Pe(tt,Me,_e){var ut=1,et,lt=!1;if(tt.hasOwnProperty("allowUpscale")&&(lt=tt.allowUpscale),tt.hasOwnProperty("scale")&&(ut=parseFloat(tt.scale),(isNaN(ut)||ut===null||ut===0)&&(ut=1),ut>1&&(lt=!0)),Me&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(lt=!0),!(tt.hasOwnProperty("disableAutoScale")&&tt.disableAutoScale))et=ie(tt,Me,lt,_e,tt.scaleContainerClass);else return ut;return lt&&(!tt.hasOwnProperty("scale")||ut===1)?et:Math.min(ut,et)}function Fe(tt){var Me=Math.min(window.innerWidth,document.documentElement.clientWidth),_e=Math.min(window.innerHeight,document.documentElement.clientHeight),ut=tt.getBoundingClientRect(),et=(Me-ut.width)/2,lt=(_e-ut.height)/2;lt<0&&(lt=0),tt.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(et<40?tt.style.left="40px":tt.style.left=et+"px",tt.style.top=lt+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(lt<40?tt.style.top="40px":tt.style.top=lt+"px",tt.style.left=et+"px")}function Oe(tt,Me){var _e=tt.querySelector(".appletParameters");if(_e){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Me.id!==_e.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(tt)}if(_e.parentElement&&/fullscreen/.test(_e.parentElement.className))return;var ut=Pe(Me,tt);Ke()&&_e.setAttribute("data-param-scale",ut);for(var et=null,lt=0;lt<tt.childNodes.length;lt++)if(tt.childNodes[lt].className!==void 0&&tt.childNodes[lt].className.match(/^applet_scaler/)){et=tt.childNodes[lt];break}if(et!==null&&et.querySelector(".noscale")!==null)return;var Et=Me.id!==void 0?Me.id:"ggbApplet",rt=window[Et];(rt==null||!rt.recalculateEnvironments)&&et!==null&&!et.className.match(/fullscreen/)&&(et.parentNode.style.transform="",!isNaN(ut)&&ut!==1?(et.parentNode.style.width=Me.width*ut+"px",et.parentNode.style.height=Me.height*ut+"px",we(et,ut)):(we(et,1),et.parentNode.style.width=Me.width+"px",et.parentNode.style.height=Me.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Fe(tt),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(_e).parents(".content-added-content"))}}return{responsiveResize:Oe,isFlexibleWorksheetEditor:Ke,positionCenter:Fe,getScale:Pe,scaleElement:we}}();__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 Ke=n.location.search;return Ke.indexOf(J)!=-1||Ke.indexOf(K)!=-1}function q(Ke,we){}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(Ke){var we=s[L].bindings;s[L].bindings=function(){for(var ae=we?we():{},ie=Ke[webModule.__softPermutationId],Pe=O;Pe<ie.length;Pe++){var Fe=ie[Pe];ae[Fe[O]]=Fe[P]}return ae}};var t;function u(){return v(),t}function v(){if(!t){var Ke=o.createElement(Q);if(Ke.id=L,Ke.style.cssText=R+S,Ke.tabIndex=-1,o.body.appendChild(Ke),t=Ke.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var we=document.compatMode==U?V:W;t.write(we+X),t.close()}}}function w(Ke){function we(ie){function Pe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Fe=Pe();if(Fe){ie();return}function Oe(){if(!Fe){if(!Pe())return;Fe=!0,ie(),o.removeEventListener&&o.removeEventListener(Z,Oe,!1),tt&&clearInterval(tt)}}o.addEventListener&&o.addEventListener(Z,Oe,!1);var tt=setInterval(function(){Oe()},$)}function ae(ie){var Pe=u(),Fe=Pe.body,Oe=Pe.createElement(_);Oe.language=ab,Oe.crossOrigin=W,Oe.src=ie,webModule.__errFn&&(Oe.onerror=function(){webModule.__errFn(L,new Error(bb+ie))}),Fe.appendChild(Oe)}we(function(){ae(Ke)})}webModule.__startLoadingFragment=function(Ke){return C(Ke)},webModule.__installRunAsyncCode=function(Ke){var we=u(),ae=we.body,ie=we.createElement(_);ie.language=ab,ie.text=Ke,ae.appendChild(ie),ae.removeChild(ie)};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(Ke){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ke){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ke){var we=c[Ke];return we==null?null:we},r=d,webModule.__errFn=e}function B(){function Ke(tt){var Me=tt.lastIndexOf(rb);Me==-1&&(Me=tt.length);var _e=tt.indexOf(sb);_e==-1&&(_e=tt.length);var ut=tt.lastIndexOf(tb,Math.min(_e,Me));return ut>=O?tt.substring(O,ut+P):W}function we(tt){if(!tt.match(/^\w+:\/\//)){var Me=o.createElement(ub);Me.src=tt+vb,tt=Ke(Me.src)}return tt}function ae(){var tt=__gwt_getMetaProperty(wb);return tt!=null?tt:W}function ie(){for(var tt=o.getElementsByTagName(_),Me=O;Me<tt.length;++Me)if(tt[Me].src.indexOf(xb)!=-1)return Ke(tt[Me].src);return W}function Pe(){var tt=o.getElementsByTagName(yb);return tt.length>O?tt[tt.length-P].href:W}function Fe(){var tt=o.location;return tt.href==tt.protocol+zb+tt.host+tt.pathname+tt.search+tt.hash}var Oe=ae();return Oe==W&&(Oe=ie()),Oe==W&&(Oe=Pe()),Oe==W&&Fe()&&(Oe=Ke(o.location.href)),Oe=we(Oe),Oe}function C(Ke){return Ke.match(/^\//)||Ke.match(/^[a-zA-Z]+:\/\//)?Ke:webModule.__moduleBase+Ke}function D(){var Ke=[],we=O,ae=[],ie=[];function Pe(tt){var Me=ie[tt](),_e=ae[tt];if(Me in _e)return Me;var ut=[];for(var et in _e)ut[_e[et]]=et;throw r&&r(tt,ut,Me),null}if(__gwt_isKnownPropertyValue=function(tt,Me){return Me in ae[tt]},webModule.__getPropMap=function(){var tt={};for(var Me in ae)ae.hasOwnProperty(Me)&&(tt[Me]=Pe(Me));return tt},webModule.__computePropValue=Pe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Fe;try{Fe=Cb;var Oe=Fe.indexOf(Db);Oe!=-1&&(we=parseInt(Fe.substring(Oe+P),$),Fe=Fe.substring(O,Oe))}catch(tt){}return webModule.__softPermutationId=we,C(Fe+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})()},15476:function(Ke,we,ae){"use strict";ae.d(we,{Ax:function(){return Oe},Ds:function(){return tt},KI:function(){return _e},SI:function(){return Fe},f1:function(){return Pe}});var ie=ae(11320);function Pe(ut){let et=!0;if(ut.length>0){for(let lt=0;lt<ut.length;lt++)if(ut[lt].compile_success==0||!ut[lt].compile_success){et=!1;break}}else et=!1;return et}function Fe(ut,et=""){let lt=[];for(let Et=0;Et<ut.length;Et++){let rt=ut[Et],_t=et?`${et}/${rt.name}`:`${rt.name}`;lt.push({title:rt.name,type:rt.type,isLeaf:rt.type!=="tree",key:_t})}return lt}function Oe(ut,et,lt){for(let Et=0;Et<ut.length;Et++){let rt=ut[Et];if(rt.key===et){rt.children=lt;break}rt.children&&Oe(rt.children,et,lt)}return ut}function tt(ut,et,lt){let Et;return function(){let rt=this,_t=arguments,Ge=function(){Et=null,lt||ut.apply(rt,_t)},te=lt&&!Et;clearTimeout(Et),Et=setTimeout(Ge,et),te&&ut.apply(rt,_t)}}const Me=!0,_e=ie.Z.API_SERVER},60580:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return Ge}});var ie=ae(85804),Pe=ae(67294),Fe=Object.defineProperty,Oe=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,et=(te,ee,de)=>ee in te?Fe(te,ee,{enumerable:!0,configurable:!0,writable:!0,value:de}):te[ee]=de,lt=(te,ee)=>{for(var de in ee||(ee={}))_e.call(ee,de)&&et(te,de,ee[de]);if(Me)for(var de of Me(ee))ut.call(ee,de)&&et(te,de,ee[de]);return te},Et=(te,ee)=>Oe(te,tt(ee)),rt=(te,ee)=>{var de={};for(var le in te)_e.call(te,le)&&ee.indexOf(le)<0&&(de[le]=te[le]);if(te!=null&&Me)for(var le of Me(te))ee.indexOf(le)<0&&ut.call(te,le)&&(de[le]=te[le]);return de},_t=(te,ee,de)=>new Promise((le,pe)=>{var me=Be=>{try{be(de.next(Be))}catch(at){pe(at)}},xe=Be=>{try{be(de.throw(Be))}catch(at){pe(at)}},be=Be=>Be.done?le(Be.value):Promise.resolve(Be.value).then(me,xe);be((de=de.apply(te,ee)).next())});const Ge=te=>{var ee=te,{children:de}=ee,le=rt(ee,["children"]);const[pe,me]=(0,Pe.useState)(!1);return Pe.createElement(ie.ZP,Et(lt({},le),{loading:pe,onClick:xe=>_t(void 0,null,function*(){try{me(!0),yield le.onClick(xe),me(!1)}catch(be){console.error(be),me(!1)}})}),de)}},56243:function(Ke,we,ae){"use strict";var ie=ae(17187),Pe=ae.n(ie),Fe=Object.defineProperty,Oe=(ut,et,lt)=>et in ut?Fe(ut,et,{enumerable:!0,configurable:!0,writable:!0,value:lt}):ut[et]=lt,tt=(ut,et,lt)=>Oe(ut,typeof et!="symbol"?et+"":et,lt),Me=(ut,et,lt)=>new Promise((Et,rt)=>{var _t=ee=>{try{te(lt.next(ee))}catch(de){rt(de)}},Ge=ee=>{try{te(lt.throw(ee))}catch(de){rt(de)}},te=ee=>ee.done?Et(ee.value):Promise.resolve(ee.value).then(_t,Ge);te((lt=lt.apply(ut,et)).next())});class _e extends ie.EventEmitter{constructor(et,lt){super(),tt(this,"url"),tt(this,"body"),tt(this,"fullContent",""),tt(this,"controller",null),tt(this,"buffer",""),this.url=et,this.body=lt}startStream(){return Me(this,null,function*(){this.controller=new AbortController;const{signal:et}=this.controller;try{const lt=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:et});if(!lt.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${lt.status}`);const Et=lt.headers.get("content-type");if(!Et)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(Et.includes("application/json")){const Ge=yield lt.json();this.emit("error",Ge);return}if(!Et.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const rt=lt.body.getReader(),_t=new TextDecoder("utf-8");for(;;){const{done:Ge,value:te}=yield rt.read();if(Ge)break;const ee=_t.decode(te,{stream:!0});this.buffer+=ee;const de=this.buffer.split(`
|
|
|
`);this.buffer=de.pop()||"";for(const le of de)if(le.startsWith("data:")){const pe=le.slice(5).trim();if(pe==="[DONE]")break;try{const me=JSON.parse(pe);me.data&&this.handleData(me.data)}catch(me){this.buffer=le+`
|
|
|
`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",me)}}}this.emit("done",this.fullContent)}catch(lt){lt.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",lt.message)}})}handleData(et){et.content&&(this.fullContent+=et.content,this.emit("data",{chunk:et,full:this.fullContent}))}cancelRequest(){var et;(et=this.controller)==null||et.abort()}}we.Z=_e},64250:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return _t}});var ie=ae(67294),Pe=ae(95012),Fe=ae(71230),Oe=ae(15746),tt={smartWrp:"smartWrp___NjRcB"},Me=ae(36295),_e=ae(30001),ut=ae(60580),et=ae(67294),lt=(Ge,te,ee)=>new Promise((de,le)=>{var pe=be=>{try{xe(ee.next(be))}catch(Be){le(Be)}},me=be=>{try{xe(ee.throw(be))}catch(Be){le(Be)}},xe=be=>be.done?de(be.value):Promise.resolve(be.value).then(pe,me);xe((ee=ee.apply(Ge,te)).next())});const Et=`<!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 rt({open:Ge=!0,onChange:te,defaultValue:ee,placement:de,width:le,height:pe,extra:me,onDynamic:xe,onOpenChange:be,showExtra:Be=!0}){const at=(0,ie.useRef)(null),dt=(0,ie.useRef)(null),[gt,ft]=(0,ie.useState)(ee||""),[Nt,Tt]=(0,ie.useState)(ee||""),[Ct,Vt]=(0,ie.useState)(!!Ge),[Rt,nn]=(0,ie.useState)(1),Cn={selectOnLineNumbers:!0};(0,ie.useEffect)(()=>{Ge&&(ft(ee),Tt(ee),Vt(!0))},[Ge,ee]),(0,ie.useEffect)(()=>{gt!==""&&(clearTimeout(dt.current),dt.current=setTimeout(()=>{const Nn=document.createElement("iframe");if(Nn.style.width="100%",Nn.style.height="100%",Nn.style.border="0",at.current){at.current.innerHTML="",at.current.appendChild(Nn);const wt=Nn.contentDocument||Nn.contentWindow.document;wt.open(),wt.write(gt),wt.close()}},1e3))},[Ge,gt]);const un=Nn=>{ft(Nn),te==null||te(Nn,Nt)};return et.createElement(Pe.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Ct,width:"100%",height:pe||"100vh",rootClassName:tt.smartWrp,destroyOnClose:!0,onClose:()=>{Vt(!1),be==null||be(gt)},extra:Be&&et.createElement("div",null,et.createElement(_e.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Rt,onChange:Nn=>nn(Nn)}),et.createElement(ut.Z,{type:"primary",className:"ml20",onClick:()=>lt(this,null,function*(){yield xe(gt,()=>{Vt(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},et.createElement(Fe.Z,{className:"h100"},et.createElement(Oe.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Rt===1?"block":"none"}},et.createElement("div",{className:"h100",ref:at})),et.createElement(Oe.Z,{flex:"1",style:{display:Rt===2?"block":"none"}},et.createElement(Me.ZP,{height:"90vh",value:ee,language:"html",theme:"vs",showMiniMap:!1,options:Cn,onChange:un}))))}var _t=rt},89214:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return gt}});var ie=ae(67294),Pe=ae(94668),Fe=ae(91733),Oe=ae(17274),tt=ae(86032),Me=ae(74855),_e={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},ut=ae(2453),et=ae(30264),lt=ae(44140),Et=ae(41807),rt=ae(67127),_t=ae(81897),Ge=ae(64250),te=Object.defineProperty,ee=Object.defineProperties,de=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,xe=(ft,Nt,Tt)=>Nt in ft?te(ft,Nt,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):ft[Nt]=Tt,be=(ft,Nt)=>{for(var Tt in Nt||(Nt={}))pe.call(Nt,Tt)&&xe(ft,Tt,Nt[Tt]);if(le)for(var Tt of le(Nt))me.call(Nt,Tt)&&xe(ft,Tt,Nt[Tt]);return ft},Be=(ft,Nt)=>ee(ft,de(Nt)),at=(ft,Nt)=>{var Tt={};for(var Ct in ft)pe.call(ft,Ct)&&Nt.indexOf(Ct)<0&&(Tt[Ct]=ft[Ct]);if(ft!=null&&le)for(var Ct of le(ft))Nt.indexOf(Ct)<0&&me.call(ft,Ct)&&(Tt[Ct]=ft[Ct]);return Tt},gt=({onFinish:ft,value:Nt,streamingStatus:Tt,cancelIndex:Ct,loadImage:Vt,onDynamic:Rt,isHiddenHtml:nn})=>{const[Cn,un]=(0,ie.useState)(""),[Nn,wt]=(0,ie.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[pt,Ie]=(0,ie.useState)(0),[on,Bn]=(0,ie.useState)(!1),Zt=nr=>nr.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Ft,Wt)=>`<mathx data-text="${Wt.trim()}">$$${Wt.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,"`$&`"),zn=()=>{Bn(!0),ft==null||ft()};(0,ie.useEffect)(()=>{const nr=Vt?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
|
|
|
|
|
|
${Nt}`:Nt,Ft=Zt(nr);if(!on)if(Vt||!Tt||Ct>0){un(Ft),Ie(Ft.length),(!Tt||Ct>0)&&!Vt&&zn();return}else if((Ft==null?void 0:Ft.length)<4)un(Ft),Ie(Ft.length);else if(pt<Ft.length){const Wt=Ft.length-pt,ht=setInterval(()=>{un(Ft.slice(0,pt+2)),Ie(tn=>tn+2)},Wt>10?Math.max(500/(Wt/2),20):50);return()=>clearInterval(ht)}else Tt||zn()},[Nt,Tt,Ct,Vt,pt]);const _n=(0,ie.useMemo)(()=>ie.createElement("section",{className:`${_e.answer} fadeIn animated edu_md`},ie.createElement(Pe.U,{remarkPlugins:[Et.Z,rt.Z],rehypePlugins:[lt.Z,Oe.Z],components:{code(nr){var Ft=nr,{node:Wt,inline:ht,className:tn,children:an}=Ft,ct=at(Ft,["node","inline","className","children"]);const Ue=/language-(\w+)/.exec(tn||""),He=String(an).trim();return ht||!Ue?ie.createElement("code",be({className:tn},ct),an):ie.createElement("code",{className:_e.codeCopy,"data-text":`\`\`\`${Ue?Ue[1]:""}
|
|
|
${an}
|
|
|
\`\`\``},!nn&&ie.createElement(Me.CopyToClipboard,{text:He,onCopy:()=>ut.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},ie.createElement("button",null,"\u590D\u5236")),!nn&&Ue[1]==="html"&&on&&ie.createElement("button",{className:_e.runCode,onClick:()=>{wt(be({},Be(be({},Nn),{open:++Nn.open,defaultValue:He,language:Ue[1]})))}},"\u8FD0\u884CHTML"),ie.createElement(Fe.Z,be({wrapLongLines:!0,style:tt.Z,language:Ue[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},ct),He))},img({node:nr}){var Ft;const Wt=(Ft=nr.properties)==null?void 0:Ft.src;return ie.createElement(et.Z,{src:Wt,width:320,"data-text":Wt,onLoad:()=>Vt&&setTimeout(()=>zn(),500)})},a:nr=>{var Ft=nr,{node:Wt}=Ft,ht=at(Ft,["node"]);return ie.createElement("a",Be(be({},ht),{target:"_blank",rel:"noopener noreferrer"}))}}},on?Cn:`${Cn}__`)),[Cn]);return ie.createElement(ie.Fragment,null,ie.createElement(Ge.Z,{defaultValue:Nn.defaultValue,open:Nn.open,language:Nn.language,height:Nn.height,onChange:(nr,Ft)=>{un(Cn.replaceAll(Ft,nr))},onDynamic:Rt}),_n)}},1744:function(Ke,we,ae){"use strict";var ie=ae(67294),Pe=Object.defineProperty,Fe=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,Me=(rt,_t,Ge)=>_t in rt?Pe(rt,_t,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):rt[_t]=Ge,_e=(rt,_t)=>{for(var Ge in _t||(_t={}))Oe.call(_t,Ge)&&Me(rt,Ge,_t[Ge]);if(Fe)for(var Ge of Fe(_t))tt.call(_t,Ge)&&Me(rt,Ge,_t[Ge]);return rt},ut=(rt,_t)=>{var Ge={};for(var te in rt)Oe.call(rt,te)&&_t.indexOf(te)<0&&(Ge[te]=rt[te]);if(rt!=null&&Fe)for(var te of Fe(rt))_t.indexOf(te)<0&&tt.call(rt,te)&&(Ge[te]=rt[te]);return Ge};const et=ae(20441),lt={};et.keys().forEach(rt=>{const _t=rt.replace("./","").replace(".svg","");lt[_t]=et(rt)});const Et=rt=>{var _t=rt,{filename:Ge}=_t,te=ut(_t,["filename"]),ee;const de=((ee=Ge==null?void 0:Ge.split(".").pop())==null?void 0:ee.toLowerCase())||"unknown",le=lt[de]||lt.default;return ie.createElement("img",_e({src:le,alt:de},te))};we.Z=Et},14549:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return lt}});var ie=ae(67294),Pe={flex_box_center:"flex_box_center___kyfCX",flex_space_between:"flex_space_between___GHTzD",flex_box_vertical_center:"flex_box_vertical_center___FdgNd",flex_box_center_end:"flex_box_center_end___LMVYD",flex_box_column:"flex_box_column___Yb2bC",f_l_c:"f_l_c___nwLBO",officediv:"officediv___KkKIB",preclass:"preclass___SCKdC"},Fe=ae(96074),Oe=ae(1744),tt=ae(83062),Me=ae(55241),ut=({item:Et})=>{var rt;const[_t,Ge]=(0,ie.useState)(!1);return ie.createElement("div",{className:Pe.f_l_c},ie.createElement(tt.Z,{title:Et==null?void 0:Et.name},ie.createElement(Me.Z,{placement:"top",content:ie.createElement("div",null,ie.createElement(Fe.Z,null),ie.createElement("pre",{className:Pe.preclass,style:{maxWidth:600,maxHeight:400}},(rt=Et==null?void 0:Et.contents)==null?void 0:rt.toString())),title:ie.createElement("div",null,ie.createElement(Oe.Z,{filename:Et==null?void 0:Et.name,style:{width:16,height:16,marginRight:5}}),Et==null?void 0:Et.name),trigger:"click",open:_t,onOpenChange:te=>{Ge(te)}},ie.createElement("div",{className:Pe.officediv},ie.createElement(Oe.Z,{filename:Et==null?void 0:Et.name,style:{width:16,height:16,marginRight:5}}),Et==null?void 0:Et.name))))},lt=({Filelist:Et})=>ie.createElement("div",null,ie.createElement("div",{style:{display:"flex",alignItems:"center"}},ie.createElement("span",{style:{minWidth:40,fontWeight:500,color:"#333"}},"\u5F15\u7528"),ie.createElement(Fe.Z,{style:{flex:1,minWidth:"calc(100% - 40px)"}})),ie.createElement("div",{className:Pe.f_l_c},Et==null?void 0:Et.map(rt=>ie.createElement(ut,{item:rt}))))},17173:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return dt}});var ie=ae(67294),Pe=ae(2453),Fe=ae(95012),Oe=ae(71230),tt=ae(62844),Me=ae(28802),_e=ae(35059),ut=ae(83062),et=ae(15746),lt=ae(37720),Et={wrap:"wrap___Yz6fc",left:"left___F0axg",tip:"tip___nCmqI",bottomBtn:"bottomBtn___x70Gq",disabled:"disabled___CWzre"},rt=ae(30001),_t=ae(11320),Ge=ae(38478),te=ae(33170),ee=ae(43158),de=ae(28706),le=ae(93299),pe=ae(62442),me=ae(49627),xe=ae(74867),be="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==",Be=(gt,ft,Nt)=>new Promise((Tt,Ct)=>{var Vt=Cn=>{try{nn(Nt.next(Cn))}catch(un){Ct(un)}},Rt=Cn=>{try{nn(Nt.throw(Cn))}catch(un){Ct(un)}},nn=Cn=>Cn.done?Tt(Cn.value):Promise.resolve(Cn.value).then(Vt,Rt);nn((Nt=Nt.apply(gt,ft)).next())}),dt=(0,ie.forwardRef)(({onUpdateNum:gt,onSave:ft},Nt)=>{var Tt;const Ct=`\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%`,[Vt,Rt]=(0,ie.useState)(!1),[nn,Cn]=(0,ie.useState)([]),[un,Nn]=(0,ie.useState)(null),[wt,pt]=(0,ie.useState)([]),[Ie,on]=(0,ie.useState)(0),[Bn,Zt]=(0,ie.useState)(0),[zn,_n]=(0,ie.useState)(!1),[nr,Ft]=(0,ie.useState)(""),[Wt,ht]=(0,ie.useState)(0),[tn,an]=(0,ie.useState)(0),[ct,Ue]=(0,ie.useState)(0),[He,it]=(0,ie.useState)(0),[vt,Ye]=(0,ie.useState)(0),[It,In]=(0,ie.useState)(0),[Kn,dr]=(0,ie.useState)(0),[Rn,er]=(0,ie.useState)(0),[yn,Er]=(0,ie.useState)(xe.Q),{contentRef:sr,value:Hr,status:An,open:yi,close:ri}=yn,bn=(0,pe.Z)({contentRef:sr,status:An}),{openProgress:Xe,closeProgress:Ji,CreateProgressModal:Qn,progressOpen:Sn}=(0,le.Z)();(0,ie.useEffect)(()=>{un&&hi(),un===!1&&(ri(),gt==null||gt(),Cn([]),Ft(""),ht(0),an(0),Ue(0),it(0),Ye(0),In(0),dr(0),er(0))},[un]);const to=()=>{Nn(!0)};(0,ie.useImperativeHandle)(Nt,()=>({onClick:to}));const Ki=ai=>{_n(!0),on(ai),Zt(0)},Zr=ai=>Be(void 0,null,function*(){const Ni=ai.name.split(".").slice(-1)[0].toLowerCase();return["docx","doc","pdf","png","jpg"].indexOf(Ni)==-1?(Pe.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):ai.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}),hi=()=>Be(void 0,null,function*(){const ai=yield(0,te.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});ai.status===0&&(on(ai.total_number),Zt(ai.remaining_number))}),Ir=ai=>(ai=ai||"",ai=String(ai),ai=ai.replace(/\s+/g,""),ai),fn=(ai=!0)=>Be(void 0,null,function*(){var Ni,ir;const We=[{name:"\u5355\u9009\u9898",num:Wt||0},{name:"\u591A\u9009\u9898",num:tn||0},{name:"\u5224\u65AD\u9898",num:ct||0},{name:"\u586B\u7A7A\u9898",num:He||0},{name:"\u7B80\u7B54\u9898",num:vt||0},{name:"\u7EC4\u5408\u9898",num:Rn||0},{name:"\u7F16\u7A0B\u9898",num:It||0},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",num:Kn||0}];if(ai){if(Ir(nr)){if(nr.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(!Ir(nr)&&!(nn!=null&&nn.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 hr=We.reduce((Or,jr)=>Or+jr.num,0);if(hr===0){Pe.ZP.warning("\u8BF7\u8BBE\u7F6E\u51FA\u9898\u6570\u91CF");return}if(hr>50){Pe.ZP.warning("\u51FA\u9898\u6570\u91CF\u8FBE\u5230\u9650\u5236");return}if(Ie!==-1){_n(!0);return}}_n(!1);const ur={scene_type:6,request_identifier:Math.random(),file_id:(ir=(Ni=nn[0])==null?void 0:Ni.response)==null?void 0:ir.id,content:nr,count_arr:We.map(hr=>hr.num).join(",")};yield yi(ur),hi()}),Hi=()=>Be(void 0,null,function*(){const ai=bn();if(ft){Nn(!1),ft(ai);return}Xe(),Rt(!0),pt([]);const Ni=new FormData;Ni.append("html",ai);const ir=yield(0,te.ZP)("/api/intelligent_imports/import.json",{method:"post",body:Ni},!0);if((ir==null?void 0:ir.status)===0)if(ir!=null&&ir.data){Ji(100),pt(ir==null?void 0:ir.data);return}else Pe.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898");Rt(!1),Ji()}),ao=()=>Be(void 0,null,function*(){const ai=bn();(0,de.RG)(ai)}),ui=["uploading","error"].includes((Tt=nn==null?void 0:nn[0])==null?void 0:Tt.status);return ie.createElement(ie.Fragment,null,ie.createElement(me.Z,{visible:zn,totalCount:Ie,usedCount:Bn,onCancel:()=>_n(!1),onOk:()=>fn(!1)}),ie.createElement(Fe.Z,{title:"\u667A\u80FD\u51FA\u9898",extra:ie.createElement("div",{className:Et.extraHeader},ie.createElement(Oe.Z,{align:"middle"},!An&&!!Hr&&ie.createElement(ie.Fragment,null,ie.createElement(rt.op,{onClick:Hi,className:"mr15",shape:"default"},"\u4FDD\u5B58\u8BD5\u9898"),ie.createElement(rt.op,{onClick:ao,shape:"default",type:"text"},ie.createElement("i",{className:"iconfont icon-fuzhi8 mr5 font14"}),"\u590D\u5236")),ie.createElement("i",{onClick:()=>{const ai=Ni=>{tt.default.confirm({centered:!0,icon:null,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Ni,onOk:()=>{Nn(!1)}})};if(An){ai("\u6B63\u5728\u751F\u6210\u8BD5\u9898\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else Hr?ai("\u8BD5\u9898\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F"):Nn(!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:un},ie.createElement("div",{className:Et.wrap},ie.createElement("div",{className:Et.left},ie.createElement("div",{className:Et.tip},ie.createElement("img",{src:be}),ie.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")),ie.createElement("div",{className:"mb10 mt20 c-black"},ie.createElement("b",null,"\u51FA\u9898\u8981\u6C42")),ie.createElement(Me.default.TextArea,{style:{height:160},className:"mb20",value:nr,placeholder:Ct,onChange:ai=>{Ft(ai.target.value)}}),ie.createElement(_e.default,{accept:".doc,.docx,.pdf,.png,.jpg",action:`${_t.Z.API_SERVER}/api/attachments.json`,maxCount:1,fileList:nn,withCredentials:!0,data:{upload_type:1},beforeUpload:Zr,onChange:({file:ai})=>{var Ni,ir;ai.status!=="removed"&&(ai.status==="done"&&((Ni=ai==null?void 0:ai.response)==null?void 0:Ni.status)!==0&&(ai.status="error",ai.response=(ir=ai==null?void 0:ai.response)==null?void 0:ir.message),Cn([ai]))},onRemove:()=>Cn([])},ie.createElement(ut.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"},ie.createElement(rt.op,{style:{borderRadius:2}},ie.createElement("i",{className:"icon-shangchuan3 mr5"}),"\u4E0A\u4F20\u6750\u6599"))),ie.createElement("div",{className:"c-black mt20"},ie.createElement("div",{className:"mb10 c-black"},ie.createElement("b",null,"\u51FA\u9898\u6570\u91CF"),ie.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",ie.createElement("span",{style:{padding:"0 6px",color:"#FB901F"}},"50"),"\u9053\uFF09")),ie.createElement(Oe.Z,{style:{gap:16}},ie.createElement(et.Z,null,ie.createElement("label",null,"\u5355\u9009\u9898"),ie.createElement(lt.Z,{min:0,max:10,value:Wt,onChange:ht,style:{marginLeft:"8px"}})),ie.createElement(et.Z,null,ie.createElement("label",null,"\u591A\u9009\u9898"),ie.createElement(lt.Z,{min:0,max:10,value:tn,onChange:an,style:{marginLeft:"8px"}})),ie.createElement(et.Z,null,ie.createElement("label",null,"\u5224\u65AD\u9898"),ie.createElement(lt.Z,{min:0,max:10,value:ct,onChange:Ue,style:{marginLeft:"8px"}})),ie.createElement(et.Z,null,ie.createElement("label",null,"\u586B\u7A7A\u9898"),ie.createElement(lt.Z,{min:0,max:10,value:He,onChange:it,style:{marginLeft:"8px"}})),ie.createElement(et.Z,null,ie.createElement("label",null,"\u7B80\u7B54\u9898"),ie.createElement(lt.Z,{min:0,max:10,value:vt,onChange:Ye,style:{marginLeft:"8px"}})),ie.createElement(et.Z,null,ie.createElement("label",null,"\u7EC4\u5408\u9898"),ie.createElement(lt.Z,{min:0,max:10,value:Rn,onChange:er,style:{marginLeft:"8px"}})),ie.createElement(et.Z,null,ie.createElement("label",null,"\u7F16\u7A0B\u9898"),ie.createElement(lt.Z,{min:0,max:10,value:It,onChange:In,style:{marginLeft:"8px"}})),ie.createElement(et.Z,null,ie.createElement("label",null,"\u7A0B\u5E8F\u586B\u7A7A\u9898"),ie.createElement(lt.Z,{min:0,max:10,value:Kn,onChange:dr,style:{marginLeft:"8px"}})))),An?ie.createElement("div",{onClick:ri,className:Et.bottomBtn},ie.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u51FA\u9898"):ui?ie.createElement("div",{className:`${Et.bottomBtn} ${Et.disabled}`},ie.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898"):ie.createElement("div",{onClick:()=>{fn()},className:Et.bottomBtn},ie.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898")),ie.createElement(xe.Z,{onStatusChange:Er,loadingText:"\u8BD5\u9898\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!Sn,noRestrictModal:Ki,stringTransformer:ee.o,onError:ai=>{Object.prototype.toString.call(ai)==="[object Object]"&&ai.status===-9&&Ki(ai.data)}}))),ie.createElement(Fe.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:Vt},ie.createElement(Oe.Z,{align:"middle",style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},ie.createElement("img",{src:ae(36413),alt:"\u667A\u80FD\u51FA\u9898"}),ie.createElement("span",{className:"ml10"},"\u667A\u80FD\u51FA\u9898")),ie.createElement(Ge.Z,{stickyTop:-24,hideWordFeatures:!0,dataSource:wt,isRefreshItemBank:!0,okText:"\u5BFC\u5165\u9898\u5E93",mode:1,onCancel:()=>Rt(!1),onSuccess:()=>{Rt(!1),Nn(!1)}}),ie.createElement("div",{style:{height:70}})),Qn("\u5904\u7406\u4E2D"))})},66146:function(Ke,we,ae){"use strict";var ie=ae(67294);const Pe=({scrollBoxRef:Fe,bottomInspectRef:Oe,contentRef:tt,status:Me,rootMargin:_e="70px",bottomOffset:ut=110})=>{const[et,lt]=(0,ie.useState)(!0),Et=(0,ie.useRef)(!1);return(0,ie.useEffect)(()=>{if(!Fe.current||!Oe.current)return;const rt=new IntersectionObserver(([_t])=>{var Ge,te,ee,de;if(!document.contains(_t.target)){console.log("\u76EE\u6807\u5143\u7D20\u5DF2\u4ECE DOM \u79FB\u9664");return}if(((Ge=_t.rootBounds)==null?void 0:Ge.width)===0&&((te=_t.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=_t.boundingClientRect)==null?void 0:ee.width)===0&&((de=_t.boundingClientRect)==null?void 0:de.height)===0){console.log("\u76EE\u6807\u5143\u7D20\u5BBD\u9AD8\u4E3A 0\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664\u6216 display: none");return}lt(_t.isIntersecting)},{root:Fe.current,rootMargin:_e,threshold:0});return rt.observe(Oe.current),()=>{rt.disconnect()}},[Fe.current,Oe.current,_e]),(0,ie.useEffect)(()=>{if(!Me)return;const rt=Fe.current,_t=tt.current;Et.current=!1;let Ge=rt.scrollTop;const te=()=>{const{scrollTop:de,scrollHeight:le,clientHeight:pe}=rt;de>Ge?de+pe>=le-ut&&(rt.scrollTop=rt.scrollHeight,Et.current=!1):de<Ge&&(Et.current=!0),Ge=de};rt.addEventListener("scroll",te);const ee=new ResizeObserver(()=>{Et.current||(rt.scrollTop=rt.scrollHeight)});return ee.observe(_t),()=>{setTimeout(()=>{ee.unobserve(_t)},250),rt.removeEventListener("scroll",te)}},[Me]),et};we.Z=Pe},62442:function(Ke,we,ae){"use strict";var ie=ae(67294);const Pe=({contentRef:Fe,status:Oe})=>((0,ie.useEffect)(()=>{!Oe&&(Fe!=null&&Fe.current)&&Fe.current.querySelectorAll("code[data-text], mathx[data-text]").forEach(_e=>{_e.tagName.toLowerCase()==="code"?_e.parentElement&&(_e.parentElement.contentEditable="false"):_e.tagName.toLowerCase()==="mathx"&&(_e.contentEditable="false")})},[Oe]),(Me=!1)=>{const _e=Et=>{const rt={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":" ","©":"\xA9","®":"\xAE","€":"\u20AC"};return Et.replace(/&[^;]+;/g,_t=>rt[_t]||_t)};if(!Fe.current)return"";const ut=Fe.current.cloneNode(!0);ut.querySelectorAll("code[data-text], mathx[data-text]").forEach(Et=>{let rt=Et.getAttribute("data-text");Et.tagName.toLowerCase()==="code"?rt=rt.replace(/```.*\n|\n```/g,""):Et.tagName.toLowerCase()==="mathx"&&(rt=`$$${rt}$$`);const _t=document.createTextNode(rt);Et.parentNode.replaceChild(_t,Et)}),Me&&ut.querySelectorAll('[data-select="disabled"]').forEach(rt=>{var _t;const Ge=rt.textContent||"",te=document.createTextNode(Ge+`
|
|
|
`);(_t=rt.parentNode)==null||_t.replaceChild(te,rt)});let lt=ut.innerHTML;return Me||(lt=lt.replace(/<[^>]*data-select="disabled"[^>]*>.*?<\/[^>]*>/g,"")),lt=lt.replace(/<p>/g,""),lt=lt.replace(/<\/p>/g,`
|
|
|
`),lt=lt.replace(/<br>/g,`
|
|
|
`),lt=lt.replace(/\r\n/g,`
|
|
|
`),lt=lt.replace(/<[^>]*>/g,""),lt=_e(lt),lt});we.Z=Pe},93299:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return rt}});var ie=ae(67294),Pe=ae(62844),Fe=ae(71230),Oe=ae(26410),tt="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=",Me="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==",_e="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=",ut={dotLoading:"dotLoading___s6Sh4",showHide:"showHide___Dfprh",progress:"progress___QUpqo"},et=ae(67294);const lt=["\u6587\u4EF6\u89E3\u6790\u8BFB\u53D6\u4E2D","\u5185\u5BB9\u7406\u89E3\u5206\u6790\u4E2D","\u7ED3\u6784\u5316\u63D0\u53D6\u4E2D"];var rt=()=>{const[_t,Ge]=(0,ie.useState)(0),[te,ee]=(0,ie.useState)(!1),[de,le]=(0,ie.useState)(!0),pe=(0,ie.useRef)(null);(0,ie.useEffect)(()=>{if(de)return;const dt=()=>{Ge(gt=>gt>=99?(clearInterval(pe.current),99):gt+1)};return pe.current=setInterval(dt,5e4/99),()=>clearInterval(pe.current)},[de]);const me=()=>{Ge(0),ee(!0),le(!1)},xe=(dt=0)=>{le(!0),Ge(dt),ee(!1)},be=dt=>{const gt=dt/1048576;let ft;return gt<=.3?ft=3:gt<=.5?ft=5:gt<=1?ft=10:gt<=2?ft=20:gt<=3?ft=30:gt<=10?ft=gt*10:ft=100,` \u9884\u8BA1\u5904\u7406\u65F6\u957F\u4E3A${ft}\u5206\u949F\uFF0C\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3`},Be=()=>et.createElement("span",{className:ut.dotLoading},et.createElement("span",null,"."),et.createElement("span",null,"."),et.createElement("span",null,"."));return{progress:_t,progressOpen:te,openProgress:me,closeProgress:xe,toggleLock:()=>le(dt=>!dt),CreateProgressModal:(dt=lt,gt)=>(typeof dt=="string"&&(dt=[dt,dt,dt]),et.createElement(Pe.default,{centered:!0,closable:!1,destroyOnClose:!0,zIndex:1200,open:te,title:null,footer:null,width:500,afterClose:()=>Ge(0)},et.createElement(Fe.Z,{align:"middle",className:"mt40 mb20",style:{flexDirection:"column"}},_t<=30&&et.createElement(et.Fragment,null,et.createElement("img",{src:tt,alt:"Step 1"}),et.createElement("div",{className:"mt20 c-light-primary"},dt[0],Be())),_t>30&&_t<60&&et.createElement(et.Fragment,null,et.createElement("img",{src:Me,alt:"Step 2"}),et.createElement("div",{className:"mt20 c-light-primary"},dt[1],Be())),_t>=60&&et.createElement(et.Fragment,null,et.createElement("img",{src:_e,alt:"Step 3"}),et.createElement("div",{className:"mt20 c-light-primary"},dt[2],Be())),et.createElement(Oe.Z,{className:ut.progress,status:"active",style:{width:"auto"},size:[300,8],percent:_t}),!!gt&&et.createElement("div",{className:"c-grey-999"},be(gt)))))}}},11146:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return Ie}});var ie=ae(67294),Pe=ae(85418),Fe=ae(2453),Oe=ae(83062),tt=ae(28802),Me=ae(85804),_e=ae(89214),ut={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"},lt=({position:on,children:Bn})=>{const{left:Zt=0,top:zn=0}=on||{},[_n,nr]=(0,ie.useState)(Zt),[Ft,Wt]=(0,ie.useState)(zn),ht=(0,ie.useRef)(null),tn=()=>{if(ht.current){const an=ht.current.offsetWidth,ct=ht.current.offsetHeight,Ue=window.innerWidth,He=window.innerHeight;let it=Zt,vt=zn;Zt+an>Ue&&(it=Ue-an),it<0&&(it=0),zn+ct>He&&(vt=He-ct),vt<0&&(vt=0),nr(it),Wt(vt)}};return(0,ie.useEffect)(()=>{if(!ht.current||!on)return;const an=new ResizeObserver(()=>{tn()});return an.observe(ht.current),()=>{an.disconnect()}},[Zt,zn,on]),(0,ie.useEffect)(()=>{on&&tn()},[Zt,zn,on]),on?ie.createElement("div",{ref:ht,style:{position:"fixed",left:`${_n}px`,top:`${Ft}px`,zIndex:1050}},Bn):null},Et=ae(11320),rt=ae(74855),_t=ae(56243),Ge=Object.defineProperty,te=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,me=(on,Bn,Zt)=>Bn in on?Ge(on,Bn,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):on[Bn]=Zt,xe=(on,Bn)=>{for(var Zt in Bn||(Bn={}))le.call(Bn,Zt)&&me(on,Zt,Bn[Zt]);if(de)for(var Zt of de(Bn))pe.call(Bn,Zt)&&me(on,Zt,Bn[Zt]);return on},be=(on,Bn)=>te(on,ee(Bn)),Be=(on,Bn,Zt)=>new Promise((zn,_n)=>{var nr=ht=>{try{Wt(Zt.next(ht))}catch(tn){_n(tn)}},Ft=ht=>{try{Wt(Zt.throw(ht))}catch(tn){_n(tn)}},Wt=ht=>ht.done?zn(ht.value):Promise.resolve(ht.value).then(nr,Ft);Wt((Zt=Zt.apply(on,Bn)).next())}),dt=({visible:on,position:Bn,selectText:Zt,applyRefinedText:zn,fetchUrl:_n,noRestrictModal:nr})=>{var Ft;const[Wt,ht]=(0,ie.useState)(!1),[tn,an]=(0,ie.useState)([]),[ct,Ue]=(0,ie.useState)(""),[He,it]=(0,ie.useState)(1),[vt,Ye]=(0,ie.useState)(""),[It,In]=(0,ie.useState)(!1),Kn=(0,ie.useRef)(null),[dr,Rn]=(0,ie.useState)(!1),[er,yn]=(0,ie.useState)(0),Er=(0,ie.useRef)(!1),sr=((Ft=tn==null?void 0:tn[(tn==null?void 0:tn.length)-1])==null?void 0:Ft.loading)===!0;(0,ie.useEffect)(()=>{if(on){it(1);return}Rn(!1),ht(!1),Hr(),yn(0),an([]),it(0)},[on]);const Hr=()=>{var fn,Hi;Ue(""),Ye(""),(Hi=(fn=Kn.current)==null?void 0:fn.cancelRequest)==null||Hi.call(fn)},An=(...fn)=>Be(void 0,[...fn],function*(Hi="",ao=tn){const ui=Date.now(),ai=[...ao,{text:Hi,key:ui,sender:"user",show:!0},{loading:!0,key:ui,sender:"AI",show:!0}];it(2),an(ai);const Ni=ri(ao),ir={no_record_times:!0,prompt:Hi,history:Ni};Kn.current=new _t.Z(Et.Z.API_SERVER+_n,ir),yield new Promise(We=>{Kn.current.on("data",rr=>{const{chunk:{msg:ur},full:hr}=rr,Or=ur==="error";Rn(!0),Ye(Sn(hr)),an(jr=>jr.map((si,Fi)=>Fi===jr.length-1?be(xe({},si),{text:hr,loading:!1,error:Or}):si))}),Kn.current.on("done",()=>We()),Kn.current.on("error",rr=>{const ur="\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(rr)==="[object Object]"&&rr.status===-9&&(it(1),nr(rr.data)),an(hr=>hr.map((Or,jr)=>jr===hr.length-1?be(xe({},Or),{text:ur,loading:!1,error:!0}):Or)),We()}),Kn.current.on("cancelled",()=>We()),Kn.current.startStream()}),ht(!1)}),yi=fn=>{Ue(fn.target.value)},ri=fn=>fn.reduce((ao,ui)=>{if(ui.sender==="user"){const ai=fn.find(Ni=>Ni.key===ui.key&&Ni.sender==="AI");ai&&(ai!=null&&ai.text)&&!(ai!=null&&ai.error)&&ao.push({question:ui.text,answer:ai.text})}return ao},[]),bn=()=>{if(Ir)return;const fn=to("\u6539\u5199");Hr(),ht(!0),An(fn)},Xe=fn=>{if(fn.key==="Enter"&&!fn.shiftKey){if(fn.preventDefault(),Er.current||hi)return;bn()}},Ji=()=>{var fn,Hi;yn(ao=>ao+1),(Hi=(fn=Kn.current)==null?void 0:fn.cancelRequest)==null||Hi.call(fn),ht(!1),Rn(!1)},Qn=[{key:"1",label:ie.createElement("span",null," ",ie.createElement("i",{className:"iconfont icon-runse font14 mr10"}),"\u6DA6\u8272 ")},{key:"2",label:ie.createElement("span",null,ie.createElement("i",{className:"iconfont icon-kuoxie font14 mr10"}),"\u6269\u5199")},{key:"3",label:ie.createElement("span",null," ",ie.createElement("i",{className:"iconfont icon-suoxie font14 mr10"}),"\u7F29\u5199")}],Sn=(fn="")=>{const Hi=["\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((ao,ui)=>{Hi.push(`\u7B54\u6848${ui+1}\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${ui+1})\u8F93\u5165\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${ui+1})\u8F93\u51FA\uFF1A`)}),Hi.forEach(ao=>{const ui=new RegExp(ao,"g");fn=fn.replace(ui,`**${ao}** `)}),fn},to=fn=>fn==="\u6539\u5199"?`${ct}\uFF0C\u6839\u636E\u4E0A\u8FF0\u8981\u6C42\u6539\u5199\u8FD9\u53E5\u8BDD\uFF0C${Zt}\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`:`${Zt}\uFF0C${fn}\u4E0A\u9762\u8FD9\u53E5\u8BDD\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`,Ki=fn=>{let Hi="";fn.key==="1"&&(Hi=to("\u6DA6\u8272")),fn.key==="2"&&(Hi=to("\u6269\u5199")),fn.key==="3"&&(Hi=to("\u7F29\u5199")),Hr(),ht(!0),An(Hi)},Zr=()=>{const fn=tn.splice(tn.length-2),{text:Hi}=(fn==null?void 0:fn[0])||{};Hr(),ht(!0),An(Hi,tn)},hi=Wt||dr,Ir=(ct==null?void 0:ct.trim())==="";return on?ie.createElement(Pe.Z,{open:Ir&&!hi&&(It||!vt),overlayStyle:{minWidth:200},menu:{items:Qn,onClick:Ki}},ie.createElement(lt,{position:Bn},ie.createElement("div",{className:ut.wrap},He===2&&ie.createElement(ie.Fragment,null,ie.createElement("div",{className:ut.chatContainer},sr&&ie.createElement("div",{className:ut.loadingWrp},ie.createElement("span",null,"\u6B63\u5728\u751F\u6210\u4E2D"),ie.createElement("div",{className:"ai-loading"})),vt&&ie.createElement(_e.Z,{cancelIndex:er,streamingStatus:Wt,loadImage:!1,onFinish:()=>Be(void 0,null,function*(){yn(0),setTimeout(()=>Rn(!1),0)}),value:vt})),ie.createElement("div",{className:ut.btnContainer},ie.createElement("div",{onClick:()=>zn(!0,vt),className:ut.btn,style:{padding:"0 16px",width:"initial"}},ie.createElement("i",{className:"iconfont icon-tihuan mr10 font14"}),"\u66FF\u6362"),ie.createElement("div",{onClick:()=>zn(!1,vt),className:ut.btn,style:{padding:"0 16px",width:"initial"}},ie.createElement("i",{className:"iconfont icon-charu mr10 font14"}),"\u63D2\u5165"),ie.createElement(rt.CopyToClipboard,{text:vt,onCopy:()=>Fe.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},ie.createElement(Oe.Z,{title:"\u590D\u5236"},ie.createElement("div",{className:ut.btn,style:{marginLeft:"auto"}},ie.createElement("i",{className:"iconfont icon-fuzhi8 font14"})))),ie.createElement(Oe.Z,{title:"\u91CD\u65B0\u751F\u6210"},ie.createElement("div",{onClick:Zr,className:ut.btn},ie.createElement("i",{className:"iciconfontonfot icon-gengxin-genghuan-tihuan font17"}))),ie.createElement(Oe.Z,{title:"\u5220\u9664"},ie.createElement("div",{onClick:()=>{it(1),Hr(),an([])},className:ut.btn},ie.createElement("i",{className:"iconfont icon-shanchu14 font14"}))))),ie.createElement("div",{className:ut.inputContainer},ie.createElement(tt.default.TextArea,{placeholder:"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u7684\u6587\u672C\u4F18\u5316\u5EFA\u8BAE",value:ct,bordered:!1,onFocus:()=>In(!0),onBlur:()=>setTimeout(()=>In(!1),300),onChange:yi,onPressEnter:Xe,onCompositionStart:()=>Er.current=!0,onCompositionEnd:()=>Er.current=!1}),dr?ie.createElement("div",{className:`iconfont icon-tingzhihuida ${ut.cancelBtn}`,onClick:Ji}):ie.createElement(Me.ZP,{className:Ir?ut.sendBtnDisabled:ut.sendBtn,icon:ie.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:hi,onClick:bn}))))):ie.createElement(ie.Fragment,null)},gt={"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"},ft=Object.defineProperty,Nt=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,Vt=(on,Bn,Zt)=>Bn in on?ft(on,Bn,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):on[Bn]=Zt,Rt=(on,Bn)=>{for(var Zt in Bn||(Bn={}))Tt.call(Bn,Zt)&&Vt(on,Zt,Bn[Zt]);if(Nt)for(var Zt of Nt(Bn))Ct.call(Bn,Zt)&&Vt(on,Zt,Bn[Zt]);return on};const nn=on=>React.createElement("svg",Rt({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},on),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 Cn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIyNi43OTclIiB5MT0iMjIuMDczJSIgeDI9IjgyLjE4MSUiIHkyPSI4MC40NzQlIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iIzVDNjRGRiIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiM2OTg4RjgiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Im0xMC40MDYgNC43NDEuMDA3LjAxNWgtLjAwN3YtLjAyMi4wMDdabS0uMDQtLjA0Ljg1NS0xLjQ5NSAxLjQ5Ny0uODU1LTEuNDk2LS44NTVMMTAuMzY2IDBsLS44NTQgMS40OTctMS40OTcuODU1IDEuNDk2Ljg1NC44NTUgMS40OTVaTTMuMSA4LjQ0MmwxLjcxIDMuMSAxLjYwMy0zLjEgMy4xLTEuNzFMNi41MiA1LjAyM2wtMS43MS0zLjEtMS43MSAzLjFMMCA2LjczM2wzLjA5OSAxLjcwOUgzLjFabTYuODQgMy4xIDEuMDY5IDEuOTI0IDEuMDY4LTEuOTI0TDE0IDEwLjQ3M2wtMS45MjQtMS4wNjktMS4wNjktMS45MjNMOS45NCA5LjQwNWwtMS45MjQgMS4wNjggMS45MjQgMS4wN3YtLjAwMVoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",Nn=(0,ie.forwardRef)(({initialContent:on,onButtonClick:Bn},Zt)=>{const[zn,_n]=(0,ie.useState)(null),[nr,Ft]=(0,ie.useState)(null),[Wt,ht]=(0,ie.useState)(""),[tn,an]=(0,ie.useState)(null),ct=Zt,Ue=Kn=>{const dr=document.elementFromPoint(10,Kn),Rn=document.createRange();let er=null;const yn=document.createTreeWalker(ct.current,NodeFilter.SHOW_TEXT,{acceptNode:bn=>{const Xe=document.createRange();Xe.selectNodeContents(bn);const Ji=Xe.getBoundingClientRect();return Ji.top<=Kn&&Ji.bottom>=Kn?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let Er="",sr,Hr,An=null,yi=null,ri=null;for(;sr=yn.nextNode();){sr.parentNode.getAttribute("data-select")==="disabled"&&(Hr=!0),Er+=sr.textContent,yi||(yi=sr),ri=sr;const bn=document.createRange();bn.selectNodeContents(sr);const Xe=bn.getBoundingClientRect();An===null&&(An=Xe.top)}if(yi&&ri&&!Hr){const bn=document.createRange();bn.setStart(yi,0),bn.setEnd(ri,ri.textContent.length),an(bn)}else an(null);return Ft(An-1),Hr?"":Er.trim()};function He(Kn){for(;Kn.parentElement&&Kn.parentElement.tagName.toLowerCase()!=="section";){var dr=window.getComputedStyle(Kn.parentElement);if(dr.pointerEvents==="none")return!0;Kn=Kn.parentElement}return!1}const it=Kn=>{var dr,Rn;if(He(Kn.target)){Ft(-1e6);return}if(((Rn=(dr=document.getSelection())==null?void 0:dr.toString)==null?void 0:Rn.call(dr))!==""){Ft(-1e6);return}const er=Ue(Kn.clientY);if((er==null?void 0:er.trim())===""){Ft(-1e6);return}const yn=ct.current.getBoundingClientRect();_n(yn.left-30),ht(er)},vt=()=>{},Ye=Kn=>{Bn&&Wt&&Bn(Wt,Kn.clientX,Kn.clientY,tn)},It=()=>{if(tn){const Kn=window.getSelection();Kn.removeAllRanges(),Kn.addRange(tn)}},In=()=>{window.getSelection().removeAllRanges()};return(0,ie.useEffect)(()=>{const Kn=ct.current;return Kn.addEventListener("mousemove",it),Kn.addEventListener("mouseleave",vt),()=>{Kn.removeEventListener("mousemove",it),Kn.removeEventListener("mouseleave",vt),In()}},[on]),ie.createElement("div",{className:gt["hover-line-container2"]},nr!==null&&ie.createElement("div",{className:gt["line-button-container"],style:{top:nr,left:zn},onMouseEnter:()=>{It()},onMouseLeave:()=>{In(),Ft(null),ht(""),an(null)}},ie.createElement("div",{className:gt.button,onClick:Ye},ie.createElement("img",{src:Cn}),ie.createElement("span",null,"AI\u6539\u5199"))))}),wt={toolbar:"toolbar___qYQBF","chat-dialog":"chat-dialog___AUJYU",button:"button___VhNes"},Ie=({nodeRef:on,noRestrictModal:Bn})=>{const[Zt,zn]=(0,ie.useState)(null),[_n,nr]=(0,ie.useState)(null),[Ft,Wt]=(0,ie.useState)(!1),[ht,tn]=(0,ie.useState)(null),[an,ct]=(0,ie.useState)(!1),[Ue,He]=(0,ie.useState)(!1),it=on,vt=(0,ie.useRef)(null),Ye=(0,ie.useRef)(null),[It,In]=(0,ie.useState)("");(0,ie.useEffect)(()=>{Zt!=null&&Zt.toString()&&In(Zt==null?void 0:Zt.toString())},[Zt==null?void 0:Zt.toString()]);const Kn=()=>{const yn=window.getSelection(),Er=it.current.scrollTop,sr=it.current.getBoundingClientRect();if(yn.rangeCount>0&&yn.toString().length>0){const Hr=yn.getRangeAt(0);zn(Hr.cloneRange());const An=Hr.getBoundingClientRect(),yi=40;let ri=An.top+Er-5+yi;ri<Er&&(ri=An.bottom-sr.top+Er+5);const bn=it.current.scrollHeight-yi;ri=Math.min(Math.max(ri,Er),bn),nr({top:ri+6,left:An.left})}else zn(null),nr(null),Wt(!1);dr(yn)},dr=yn=>{if(!yn||yn.rangeCount===0){ct(!1);return}const sr=yn.getRangeAt(0).getBoundingClientRect(),Hr=window.getComputedStyle(it.current),An=parseInt(Hr.lineHeight),yi=parseInt(Hr.paddingTop),ri=it.current.scrollTop,bn=it.current.getBoundingClientRect(),Xe=sr.top-bn.top+ri,Ji=Math.floor((Xe-yi)/An),Qn=yi+Ji*An-ri;tn(Qn),ct(!0)},Rn=yn=>{it.current&&!it.current.contains(yn.target)&&He(!1)};(0,ie.useEffect)(()=>{const yn=it.current;return yn.addEventListener("scroll",Kn),yn.addEventListener("input",Kn),yn.addEventListener("click",Kn),yn.addEventListener("mouseup",Kn),yn.addEventListener("keyup",Kn),yn.addEventListener("click",Kn),document.addEventListener("mousedown",Rn),()=>{yn.removeEventListener("scroll",Kn),yn.removeEventListener("input",Kn),yn.removeEventListener("click",Kn),yn.removeEventListener("mouseup",Kn),yn.removeEventListener("keyup",Kn),yn.removeEventListener("click",Kn),document.removeEventListener("mousedown",Rn)}},[]);const er=(yn=!0,Er)=>{if(!Zt)return;const sr=Ye.current.querySelector("section.edu_md").innerHTML.replace(/<p[^>]*>([\s\S]*?)<\/p>/g,"$1"),Hr=Zt.cloneRange(),An=window.getSelection();if(An.removeAllRanges(),An.addRange(Hr),yn){Hr.deleteContents();const yi=document.createElement("div");yi.innerHTML=sr;const ri=Array.from(yi.childNodes);for(;ri.length>0;)Hr.insertNode(ri.pop())}else{Hr.collapse(!1);const yi=document.createElement("div");yi.innerHTML=" "+sr;const ri=Array.from(yi.childNodes);for(;ri.length>0;)Hr.insertNode(ri.pop())}An.removeAllRanges(),zn(null),Wt(!1),nr(null)};return ie.createElement("section",{ref:Ye},_n&&ie.createElement("div",{ref:vt,className:wt.toolbar,style:{top:_n==null?void 0:_n.top,left:_n==null?void 0:_n.left}},ie.createElement("div",{className:wt.button,onClick:()=>Wt(!0)},ie.createElement("img",{src:Cn}),ie.createElement("span",null,"AI\u6539\u5199"))),ie.createElement(dt,{key:JSON.stringify(_n),noRestrictModal:Bn,visible:Ft,position:_n,selectText:It,applyRefinedText:er,fetchUrl:"/api/stream/intelligent_imports/stream.json"}),it.current&&ie.createElement(Nn,{ref:it,onButtonClick:(yn,Er,sr,Hr)=>{zn(Hr),Wt(!0),In(yn),nr({left:Er,top:sr+20})}}))}},49627:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return tt}});var ie=ae(67294),Pe=ae(62844),Fe={num:"num___VQiqB"},tt=({visible:Me,usedCount:_e,totalCount:ut,onOk:et,onCancel:lt})=>{const Et=()=>_e>0?ie.createElement("div",null,"\u672C\u6B21\u5C06\u6D88\u80171\u6B21\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\uFF08\u6BCF\u65E5",ut,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",ie.createElement("span",{className:Fe.num},_e),"\u6B21\uFF09\uFF0C\u786E\u5B9A\u64CD\u4F5C\u5417\uFF1F"):ie.createElement("div",{className:"mb20"},"\u4ECA\u65E5\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\u5DF2\u7528\u5B8C\uFF08\u6BCF\u65E5",ut,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",ie.createElement("span",{className:Fe.num},_e),"\u6B21\uFF09\u3002");return ie.createElement(Pe.default,{centered:!0,open:Me,title:"\u63D0\u793A",width:620,onCancel:lt,onOk:et,footer:_e>0?void 0:null},Et())}},74867:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return de},Q:function(){return te}});var ie=ae(67294),Pe={container:"container___DAVRd",katex:"katex___oS9Qs",liWrap:"liWrap___pAkIe",backBottom:"backBottom___kT237",imgBox:"imgBox___O8q6M"},Fe=ae(56243),Oe=ae(11320),tt=ae(89214),Me=ae(11146),_e=ae(66146),ut=ae(9117),et="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==",lt=ae(94184),Et=ae.n(lt),rt=ae(2453),_t=ae(14549),Ge=(le,pe,me)=>new Promise((xe,be)=>{var Be=gt=>{try{dt(me.next(gt))}catch(ft){be(ft)}},at=gt=>{try{dt(me.throw(gt))}catch(ft){be(ft)}},dt=gt=>gt.done?xe(gt.value):Promise.resolve(gt.value).then(Be,at);dt((me=me.apply(le,pe)).next())});const te={contentRef:{current:null},value:null,status:!1,open:()=>Ge(void 0,null,function*(){}),close:()=>{}};var de=({className:le,style:pe,onChange:me,onSuccess:xe,onCancel:be,onError:Be,fetchUrl:at,noRestrictModal:dt=()=>{},showEditableToolbar:gt,bottomOffset:ft=110,loadingText:Nt,showEmptyData:Tt=!0,onStatusChange:Ct,stringTransformer:Vt,bottomContainerNode:Rt})=>{const[nn,Cn]=(0,ie.useState)(!1),[un,Nn]=(0,ie.useState)(""),[wt,pt]=(0,ie.useState)(0),[Ie,on]=(0,ie.useState)(!1),Bn=(0,ie.useRef)(null),Zt=(0,ie.useRef)(null),zn=(0,ie.useRef)(null),_n=(0,ie.useRef)(null),nr=(0,_e.Z)({scrollBoxRef:_n,bottomInspectRef:zn,contentRef:Zt,status:Ie,bottomOffset:ft}),Ft=nn||Ie;(0,ie.useEffect)(()=>{me==null||me(un)},[un]);const[Wt,ht]=(0,ie.useState)([]);(0,ie.useEffect)(()=>{Ct==null||Ct({contentRef:Zt,status:Ft,value:un,open:tn,close:an})},[Ft,un]);const tn=Ue=>Ge(void 0,null,function*(){Cn(!0),Nn(""),ht([]),pt(0);const He=at;Ue!=null&&Ue.fetchUrl&&delete Ue.fetchUrl,Bn.current=new Fe.Z(`${Oe.Z.API_SERVER}${He}`,Ue),yield new Promise((it,vt)=>{Bn.current.on("data",Ye=>{var It;let{chunk:{content:In,type:Kn}}=Ye;on(!0),Kn==="text"&&Nn(dr=>Vt?Vt(dr+In):dr+In),Kn==="knowledge"&&(console.log("---knowledge-",Ye==null?void 0:Ye.chunk),ht((It=Ye==null?void 0:Ye.chunk)==null?void 0:It.content))}),Bn.current.on("done",()=>{it()}),Bn.current.on("error",Ye=>{Object.prototype.toString.call(Ye)==="[object Object]"&&Ye.status===-1&&rt.ZP.warning((Ye==null?void 0:Ye.message)||""),it(),Be==null||Be(Ye)}),Bn.current.on("cancelled",()=>{it(),be==null||be()}),Bn.current.startStream()}),Cn(!1)}),an=()=>{var Ue,He;pt(1),(He=(Ue=Bn.current)==null?void 0:Ue.cancelRequest)==null||He.call(Ue),Cn(!1),on(!1)},ct=(0,ie.useMemo)(()=>Zt.current?ie.createElement(Me.Z,{noRestrictModal:dt,nodeRef:Zt}):ie.createElement(ie.Fragment,null),[Zt.current]);return ie.createElement(ie.Fragment,null,ie.createElement("div",{className:Et()(Pe.container,le),style:pe,ref:_n},ie.createElement("div",{ref:Zt,className:Pe.liWrap,contentEditable:!Ft},un&&ie.createElement(tt.Z,{cancelIndex:wt,streamingStatus:nn,loadImage:!1,onFinish:()=>Ge(void 0,null,function*(){pt(0),setTimeout(()=>on(!1),0),xe==null||xe(un)}),value:un}),(Wt==null?void 0:Wt.length)>0&&ie.createElement(_t.Z,{Filelist:Wt})),!un&&!Ft&&ie.createElement("div",{className:Pe.imgBox},ie.createElement("img",{width:56,src:et}),ie.createElement("span",null,"\u9884\u89C8\u533A")),Tt&&Ft&&ie.createElement(ut.Z,{text:Nt}),!nr&&ie.createElement("div",{className:Pe.backBottom,onClick:()=>{_n.current.scrollTop=_n.current.scrollHeight}},ie.createElement("i",{className:"iconfont icon-huidaodibu"})),ie.createElement("div",{ref:zn}),Rt),!Ft&>&&ct)}},9117:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return Oe}});var ie=ae(67294),Pe={loading:"loading___SifAS",dot:"dot___J5R0d","dot-fade":"dot-fade___BPUGC"},Oe=({text:tt})=>ie.createElement("div",null,ie.createElement("div",{className:Pe.loading},ie.createElement("div",{className:Pe.dot}),ie.createElement("div",{className:Pe.dot}),ie.createElement("div",{className:Pe.dot})),!!tt&&ie.createElement("div",{className:"mt5"},tt))},43158:function(Ke,we,ae){"use strict";ae.d(we,{o:function(){return ie}});const ie=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)},65213:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return Oe}});var ie=ae(67294),Pe={digitalLabel:"digitalLabel___tImKs",active:"active___Ck70Q"},Oe=({number:tt,active:Me,className:_e})=>ie.createElement("div",{className:`${Pe.digitalLabel} ${Me?Pe.active:""} ${_e}`},tt)},10208:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return le}});var ie=ae(67294),Pe=ae(51380),Fe={folderWrapper:"folderWrapper___G__0a",folderIcon:"folderIcon___oTG6c"},Oe=ae(73631),tt=ae(5623),Me=ae(38244),_e=Object.defineProperty,ut=Object.defineProperties,et=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable,_t=(pe,me,xe)=>me in pe?_e(pe,me,{enumerable:!0,configurable:!0,writable:!0,value:xe}):pe[me]=xe,Ge=(pe,me)=>{for(var xe in me||(me={}))Et.call(me,xe)&&_t(pe,xe,me[xe]);if(lt)for(var xe of lt(me))rt.call(me,xe)&&_t(pe,xe,me[xe]);return pe},te=(pe,me)=>ut(pe,et(me)),ee=(pe,me,xe)=>new Promise((be,Be)=>{var at=ft=>{try{gt(xe.next(ft))}catch(Nt){Be(Nt)}},dt=ft=>{try{gt(xe.throw(ft))}catch(Nt){Be(Nt)}},gt=ft=>ft.done?be(ft.value):Promise.resolve(ft.value).then(at,dt);gt((xe=xe.apply(pe,me)).next())}),le=({value:pe,onChange:me,scrollId:xe})=>{const[be,Be]=(0,ie.useState)([]);(0,ie.useEffect)(()=>{at()},[]);const at=()=>ee(void 0,null,function*(){const Ct=yield(0,Me.NZ)({});if(Ct!=null&&Ct.data){const Vt=[{title:"\u6839\u76EE\u5F55",value:0,key:0,icon:ie.createElement("img",{src:Oe,className:Fe.folderIcon}),isLeaf:!1,children:dt(Ct.data||[])}];Be(Vt)}}),dt=Ct=>Ct.map(Vt=>({title:Vt.name,key:Vt.group_id,icon:ie.createElement("img",{src:Oe,className:Fe.folderIcon}),isLeaf:Vt.children.length===0,children:dt(Vt.children)})),gt=(Ct,Vt,Rt)=>Ct.map(nn=>nn.key===Vt?Ge(Ge({},nn),Rt):nn.children?te(Ge({},nn),{children:gt(nn.children,Vt,Rt)}):nn),ft=(Ct,Vt,Rt)=>Ct.map(nn=>{if(nn.key===Vt)return te(Ge({},nn),{icon:Rt?ie.createElement("img",{src:tt,className:Fe.folderIcon}):ie.createElement("img",{src:Oe,className:Fe.folderIcon})});if(nn.children)return te(Ge({},nn),{children:ft(nn.children,Vt,Rt)})}),Nt=(Ct,Vt)=>{Be(Rt=>ft(Rt,Vt.node.key,Vt.expanded))},Tt=pe?{selectedKeys:pe,defaultExpandedKeys:pe}:{};return be.length>0&&ie.createElement("div",{id:xe||""},ie.createElement(Pe.default,Ge({showLine:{showLeafIcon:!1},showIcon:!0,treeData:be,className:Fe.folderWrapper,onSelect:me,onExpand:Nt},Tt)))}},20670:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return Me}});var ie=ae(55241),Pe={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},Fe=ae(32637),Oe=ae(67294),Me=({type:_e,style:ut})=>{const et=Oe.createElement("div",{className:Pe.wrap,onClick:lt=>{lt.preventDefault(),lt.stopPropagation()}},Oe.createElement("p",null,_e==="shixun"||_e==="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",Oe.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",_e==="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"),Oe.createElement("div",{className:Pe.contact},Oe.createElement("div",{className:Pe.img},Oe.createElement("img",{src:Fe,width:"124px",height:"124px"})),Oe.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return Oe.createElement(ie.Z,{content:et},Oe.createElement("span",{className:Pe.text,style:ut},"\u9AD8\u6D88\u8017"))}},63205:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return Et}});var ie=ae(67294),Pe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Fe=ae(94184),Oe=ae.n(Fe),tt=ae(74330),Me=ae(15979),_e=ae(33170),ut=ae(28706),et=(rt,_t,Ge)=>new Promise((te,ee)=>{var de=me=>{try{pe(Ge.next(me))}catch(xe){ee(xe)}},le=me=>{try{pe(Ge.throw(me))}catch(xe){ee(xe)}},pe=me=>me.done?te(me.value):Promise.resolve(me.value).then(de,le);pe((Ge=Ge.apply(rt,_t)).next())}),Et=({data:rt,className:_t,fullWidth:Ge,style:te={},onClose:ee,onOk:de,showFullTools:le,noAssociationId:pe})=>{const me=(0,ie.useRef)(null),xe=(0,ie.useRef)(null),be=(0,ie.useRef)(null),Be=(0,ie.useRef)(null),[at,dt]=(0,ie.useState)(!1),[gt,ft]=(0,ie.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ie.useEffect)(()=>(be.current||(be.current=document.createElement("style"),document.head.appendChild(be.current)),rt!=null&&rt.visible?(document.body.setAttribute("data-custom","y-hidden"),be.current.innerHTML=" html { overflow-y: hidden; }",rt!=null&&rt.src&&Nt()):(document.body.removeAttribute("data-custom"),be.current&&(document.head.removeChild(be.current),be.current=null)),()=>{document.body.removeAttribute("data-custom"),be.current&&(document.head.removeChild(be.current),be.current=null)}),[rt==null?void 0:rt.visible]);const Nt=()=>et(void 0,null,function*(){dt(!0),ft("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Rt=yield(0,ut.ZJ)(rt==null?void 0:rt.src);me.current.src="",me.current.src=Rt,me.current.onload=function(){Vt()},dt(!1),ft("")}),Tt=Rt=>et(void 0,null,function*(){dt(!0),ft("\u6B63\u5728\u4FDD\u5B58\u4E2D");const nn=yield(0,_e.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:rt.title,file:Rt.dataUrl}});nn!=null&&nn.id&&!pe?(yield(0,_e.ZP)(`/api/attachments/${rt.id}/add_subitem.json`,{method:"post",body:{subitem_id:nn==null?void 0:nn.id,settings:JSON.stringify(Rt.state)}})).status===0&&de():nn!=null&&nn.id&&de(nn),dt(!1),ft("")}),Ct=()=>{const Rt=document.querySelector('a[href="https://markerjs.com/"]');Rt&&Rt.parentNode&&(Rt.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(Cn=>{const un=document.querySelector(Cn.name);un&&un.setAttribute("title",Cn.title)})},Vt=()=>{xe.current=new Me.hP(me.current),xe.current.targetRoot=Be.current,xe.current.addEventListener("render",Tt),xe.current.addEventListener("beforeclose",ee),le&&(xe.current.availableMarkerTypes=xe.current.ALL_MARKER_TYPES,xe.current.uiStyleSettings.redoButtonVisible=!0,xe.current.uiStyleSettings.notesButtonVisible=!0,xe.current.uiStyleSettings.zoomButtonVisible=!0,xe.current.uiStyleSettings.zoomOutButtonVisible=!0,xe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=xe.current.uiStyleSettings,xe.current.show(),rt!=null&&rt.snapshotData&&xe.current.restoreState(rt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ct()},300)};return ie.createElement(ie.Fragment,null,(rt==null?void 0:rt.visible)&&ie.createElement(tt.Z,{spinning:at,tip:gt,style:{position:"absolute",width:"100vw"}},ie.createElement("div",{ref:Be,className:Oe()(Pe.imageDimensions,_t,Ge?Pe.fullWidth:""),style:te},ie.createElement("img",{className:Pe.img,ref:me}))))}},38478:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return He},$:function(){return Ue}});var ie=ae(67294),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"},Fe=ae(94184),Oe=ae.n(Fe),tt=ae(91773),Me=ae(2453),_e=ae(62844),ut=ae(37720),et=ae(71230),lt=ae(84567),Et=ae(85418),rt=ae(35059),_t=ae(85804),Ge=ae(26410),te=ae(38089),ee=ae(28802),de=ae(30001),le=ae(11320),pe="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=",xe="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==",be="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",Be=ae(33170),at=ae(10208),dt=ae(5623),gt=ae(81897),ft=ae(35713),Nt=ae(70859),Tt=ae(20527),Ct=ae.n(Tt),Vt=(it,vt,Ye)=>new Promise((It,In)=>{var Kn=er=>{try{Rn(Ye.next(er))}catch(yn){In(yn)}},dr=er=>{try{Rn(Ye.throw(er))}catch(yn){In(yn)}},Rn=er=>er.done?It(er.value):Promise.resolve(er.value).then(Kn,dr);Rn((Ye=Ye.apply(it,vt)).next())}),nn=ie.memo(({tagName:it="div",value:vt="",className:Ye,style:It={},onBlur:In,id:Kn})=>{const dr=(0,ie.useRef)(null);(0,ie.useEffect)(()=>{if(!dr.current)return;Vt(void 0,null,function*(){const yn=dr.current;yn.innerHTML="";const Er=vt==null?void 0:vt.split(/(`?\$\$[\s\S]*?\$\$`?)/g);for(const sr of Er)if(sr.startsWith("$$")&&sr.endsWith("$$")||sr.startsWith("`$$")&&sr.endsWith("$$`")){const Hr=sr.startsWith("`$$")?sr.slice(3,-3):sr.slice(2,-2),An=document.createElement("span");An.setAttribute("contentEditable","false"),An.setAttribute("title",sr),An.className="edu_latex",yn.appendChild(An),Ct().render(Hr,An,{throwOnError:!1})}else{const Hr=sr==null?void 0:sr.replace(/<[^>]*>/g,An=>An.startsWith("<img")?An:An.replace(/</g,"<"));yn.insertAdjacentHTML("beforeend",Hr)}})},[Kn]);const Rn=()=>{var er,yn;if(In&&dr.current){const sr=dr.current.cloneNode(!0),Hr=sr.querySelectorAll("span.edu_latex");for(let An of Hr){const yi=An.getAttribute("title"),ri=document.createTextNode(yi||""),bn=An;(yn=(er=bn.parentNode)==null?void 0:er.replaceChild)==null||yn.call(er,ri,bn)}In(sr.innerHTML)}};return ie.createElement(ie.Fragment,null,ie.createElement(it,{ref:dr,contentEditable:!0,className:Ye,style:It,onBlur:Rn}))}),Cn=ae(52262),un=ae(33054),Nn=ae(17173),wt=Object.defineProperty,pt=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,on=Object.getOwnPropertySymbols,Bn=Object.prototype.hasOwnProperty,Zt=Object.prototype.propertyIsEnumerable,zn=(it,vt,Ye)=>vt in it?wt(it,vt,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):it[vt]=Ye,_n=(it,vt)=>{for(var Ye in vt||(vt={}))Bn.call(vt,Ye)&&zn(it,Ye,vt[Ye]);if(on)for(var Ye of on(vt))Zt.call(vt,Ye)&&zn(it,Ye,vt[Ye]);return it},nr=(it,vt)=>pt(it,Ie(vt)),Ft=(it,vt,Ye)=>new Promise((It,In)=>{var Kn=er=>{try{Rn(Ye.next(er))}catch(yn){In(yn)}},dr=er=>{try{Rn(Ye.throw(er))}catch(yn){In(yn)}},Rn=er=>er.done?It(er.value):Promise.resolve(er.value).then(Kn,dr);Rn((Ye=Ye.apply(it,vt)).next())});const Wt=it=>{it.preventDefault();let Ye=(it.clipboardData||window.clipboardData).getData("Text");document.execCommand("insertText",!1,Ye)},ht=it=>{it.key==="Enter"&&it.preventDefault()},tn=({children:it,style:vt})=>ie.createElement("div",{className:Pe.leftBox,style:vt,onPaste:Wt},it),an=({children:it,style:vt,className:Ye})=>ie.createElement("div",{className:Oe()(Pe.rightBox,Ye),style:vt,onPaste:Wt},it),ct=({className:it,style:vt={},width:Ye=1200,onCancel:It=()=>{},onSuccess:In=()=>{},gather:Kn={},mode:dr=1,stickyTop:Rn=0,subDisciplineId:er=[],hideWordFeatures:yn,dataSource:Er=[],customLeftHeadNode:sr,customRightHeadNode:Hr,customLeftContent:An,hideRecognition:yi=!1,onExchange:ri,isSingleSelection:bn=!1,underpinBackgroundStyle:Xe={},headExtraNode:Ji,isRefreshItemBank:Qn=!1,okText:Sn="\u786E\u5B9A\u5BFC\u5165",onSave:to})=>{var Ki;const[Zr,hi]=(0,ie.useState)(1),[Ir,fn]=(0,ie.useState)(0),[Hi,ao]=(0,ie.useState)(""),[ui,ai]=(0,ie.useState)(!1),[Ni,ir]=(0,ie.useState)([]),[We,rr]=(0,ie.useState)([]),[ur,hr]=(0,ie.useState)(!1),[Or,jr]=(0,ie.useState)(!1),[si,Fi]=(0,ie.useState)(!1),[Vn,Wn]=(0,ie.useState)(!1),[vn,tr]=(0,ie.useState)([]),[mi,gi]=(0,ie.useState)(1),[ti,Hn]=(0,ie.useState)(!1),[Cr,Ri]=(0,ie.useState)(!0),[_i,Ur]=(0,ie.useState)(0),[Pn,xi]=(0,ie.useState)(!1),[ji]=tt.default.useForm(),[Xo]=tt.default.useForm(),wr=(0,ie.useRef)(null),Gi=(0,ie.useRef)(null),Jr=(0,ie.useRef)(),ls=(0,ie.useRef)(null),Pa=["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"],Oi=["C","C++","Java","Python","JavaScript","Ruby"];(0,ie.useEffect)(()=>{Er!=null&&Er.length&&zo(Er)},[Er]),(0,ie.useEffect)(()=>{Zr===2&&wr.current.focus()},[Zr]),(0,ie.useEffect)(()=>{si&&uo()},[si]);const Yi=()=>{if(Zr===1){Me.ZP.warning("\u8BF7\u5148\u4E0A\u4F20\u8BD5\u9898\uFF01");return}_e.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:()=>Ft(void 0,null,function*(){hi(1)})})},uo=()=>Ft(void 0,null,function*(){const Gt=yield(0,Be.ZP)("/api/disciplines.json",{method:"get",params:{source:dr===1?"new_question":"subject"}});tr(Gt.disciplines||[])}),ba=Gt=>{const fr=[],pr=(Tr,Ln)=>{Tr.length>=2&&fr.push(Tr.join(""));for(let or=Ln;or<Gt.length;or++)Tr.push(Gt[or]),pr(Tr,or+1),Tr.pop()};return pr([],0),fr},Go=Gt=>(Gt=Gt||"",Gt=String(Gt),Gt=Gt.replace(/\s+/g,""),Gt),zr=Gt=>(Gt=Gt||"",Gt=String(Gt),Gt=Gt.replace(/<div>/g,""),Gt=Gt.replace(/<br>/g,`
|
|
|
`),Gt=Gt.replace(/<\/div>/g,`
|
|
|
`),Gt=sl(Gt),Gt),vo=Gt=>Gt.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),sl=Gt=>Gt.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"),gs=Gt=>{var fr;const pr=Gt.clipboardData;if(pr){const Tr=pr.types.toString(),Ln=pr.items;if(Tr==="Files"||pr.types.indexOf("Files")>-1){Gt.preventDefault();try{let or=Ln[1];((fr=Ln[0])==null?void 0:fr.kind)==="file"&&(or=Ln[0]);const vr=or.getAsFile();(0,Nt.I)(vr,sn=>{var mr;if(sn.id){if(((mr=vr==null?void 0:vr.type)==null?void 0:mr.indexOf("image"))>-1){const Vr=`<img src='${le.Z.API_SERVER}${sn.url}'>`;document.execCommand("insertText",!1,Vr)}}else(sn==null?void 0:sn.status)===401&&(document.location.href="/user/login")})}catch(or){Me.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};function es(Gt,fr){return Ft(this,null,function*(){if(typeof Gt=="string")return yield fr(Gt);if(typeof Gt!="object"||Gt===null)return Gt;if(Array.isArray(Gt))return yield Promise.all(Gt.map(Ln=>Ft(this,null,function*(){return yield es(Ln,fr)})));const pr={};for(const Tr in Gt)if(Object.prototype.hasOwnProperty.call(Gt,Tr)){const Ln=Gt[Tr];typeof Ln=="string"?pr[Tr]=yield fr(Ln):typeof Ln=="object"?pr[Tr]=yield es(Ln,fr):pr[Tr]=Ln}return pr})}const Mn=()=>Ft(void 0,null,function*(){var Gt;ai(!0),ao("\u5904\u7406\u4E2D"),yield new Promise(Tr=>setTimeout(Tr,1e3));let fr=(Gt=Gi.current)==null?void 0:Gt.querySelectorAll('[data-text="edit"]'),pr="";try{fr.forEach(function(Tr){var Ln,or,vr,sn;const mr=Tr.cloneNode(!0),Vr=mr.querySelectorAll("span.edu_latex");for(let Xi of Vr){const zi=Xi.getAttribute("title"),_o=document.createTextNode(zi),sa=Xi;(or=(Ln=sa.parentNode)==null?void 0:Ln.replaceChild)==null||or.call(Ln,_o,sa)}const no=mr.querySelectorAll("span[style]");for(let Xi of no)if(Xi.style.fontFamily){const zi=Xi.innerHTML,_o=document.createTextNode(zi),sa=Xi;(sn=(vr=sa.parentNode)==null?void 0:vr.replaceChild)==null||sn.call(vr,_o,sa)}mr==null||mr.childNodes.forEach(function(Xi){Xi.nodeType===Node.ELEMENT_NODE&&Xi.localName!=="h5"&&Xi.localName!=="h4"?pr+=`<p>${Xi.innerHTML}</p>`:Xi.nodeType===Node.TEXT_NODE&&(pr+=`<p>${Xi.textContent}</p>`)})}),ya("/api/intelligent_imports/import.json",{html:sl(pr)})}catch(Tr){console.error("\u5904\u7406\u8282\u70B9\u9519\u8BEF:",Tr)}}),Co=Gt=>{let fr=Gt.filter(pr=>!!(pr!=null&&pr.type));return fr=fr.map(pr=>{var Tr;const Ln=(Tr=ni.find(vr=>vr.id===(pr==null?void 0:pr.type)))==null?void 0:Tr.deal,or=nr(_n({},pr),{id:String(Math.random()).slice(-6),knowledgePoint:Go(pr==null?void 0:pr.knowledgePoint)});return Ln?Ln(or):or}),fr},Ta=()=>{if(Zr===1){Me.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!");return}_e.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u91CD\u65B0\u8BC6\u522B\u4F1A\u8986\u76D6\u53F3\u4FA7\u5DF2\u8BC6\u522B\u7ED3\u679C\uFF0C\u5305\u62EC\u4EBA\u5DE5\u4FEE\u6539\u7684\u5185\u5BB9\uFF0C\u786E\u5B9A\u91CD\u65B0\u8BC6\u522B\u5417?",onOk:Mn})},lo=()=>ie.createElement("div",{className:Pe.row},ie.createElement("div",{className:Pe.leftLayout},ie.createElement(tn,{style:{height:675}},Zr===1&&ie.createElement("div",{style:{height:"100%",display:"flex",flexDirection:"column",alignItems:"center"},onClick:()=>hi(2)},ie.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",ie.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",ie.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",ie.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",ie.createElement("br",null)),ie.createElement("div",{className:Pe.imgBox,style:{marginTop:75}},ie.createElement("img",{width:56,src:me}),ie.createElement("span",null,"\u7F16\u8F91\u533A"))),Zr===2&&ie.createElement("div",{"data-text":"edit",onBlur:()=>{wr.current.innerHTML||hi(1)},ref:wr,contentEditable:!0,style:{color:"#9096A3",height:"100%",overflow:"auto"}}))),ie.createElement("div",{className:Pe.rightLayout,style:{display:"flex",alignItems:"start",justifyContent:"center"}},ie.createElement("div",{className:Pe.imgBox,style:{marginTop:240}},ie.createElement("img",{width:56,src:xe}),ie.createElement("span",null,"\u9884\u89C8\u533A")))),oa=(Gt,fr,pr,Tr)=>{var Ln;console.log(Gt,fr,pr,Tr,"onDataChange\u4FEE\u6539\u6570\u503C");const or=JSON.parse(JSON.stringify(We));Tr===void 0?or[fr][Gt]=pr:or[fr].questions[Tr][Gt]=pr;const vr=_n({},or[fr]),sn=(Ln=ni.find(mr=>mr.id===(vr==null?void 0:vr.type)))==null?void 0:Ln.deal;or[fr]=sn(vr),rr(or)},fa=(Gt,fr,pr)=>{var Tr;const Ln=pr!==void 0,or=(Tr=ni.find(mr=>mr.id===(Gt==null?void 0:Gt.type)))==null?void 0:Tr.type,vr=`${fr+1}.${pr===void 0?"":pr+1+"."}`,sn=`${(Gt==null?void 0:Gt.type)==="7"?"{{":""}${vr}\u3010${or}\u3011${(Gt==null?void 0:Gt.question)||""}`;return ie.createElement(ie.Fragment,null,Ln&&ie.createElement("h4",{contentEditable:!0}),ie.createElement(nn,{id:Gt==null?void 0:Gt.id,tagName:"div",value:sn}))},Ka=(Gt,fr)=>Ft(void 0,null,function*(){var pr;const Tr=yield ri(Gt,fr),Ln=(pr=Tr==null?void 0:Tr.data)==null?void 0:pr.content;if(Ln!=null&&Ln.length){const or=Co(Ln)[0];Ni.splice(fr,1,or),We.splice(fr,1,or),ir([...Ni]),rr([...We])}}),qo=(Gt,fr,pr)=>{var Tr;const Ln=pr!==void 0,or=(Tr=ni.find(sn=>sn.id===(Gt==null?void 0:Gt.type)))==null?void 0:Tr.type,vr=`${fr+1}.${pr===void 0?"":pr+1+"."}`;return Ln?ie.createElement("div",{style:{padding:"10px 18px"}},`${vr}\u3010${or}\u3011`,ie.createElement(nn,{id:Gt==null?void 0:Gt.id,tagName:"span",className:Pe.edit,onBlur:sn=>oa("question",fr,sn,pr),value:(Gt==null?void 0:Gt.question)||""})):ie.createElement(ie.Fragment,null,ie.createElement("div",{className:Pe.actionHead},ie.createElement("div",{className:"c-light-primary"},`${vr}\u3010${or}\u3011`),dr!==1&&ie.createElement(ut.Z,{disabled:(Gt==null?void 0:Gt.type)==="7",min:0,max:100,style:{width:100,marginLeft:10},addonAfter:"\u5206",precision:1,size:"middle",onChange:sn=>oa("score",fr,sn,pr),value:Gt==null?void 0:Gt.score}),ie.createElement(et.Z,{align:"middle",style:{marginLeft:"auto"}},!!ri&&ie.createElement("span",{className:"current c-light-primary mr30",onClick:()=>Ka(Gt,fr)},ie.createElement("i",{className:"iconfont icon-huanyihuan mr5"}),"\u6362\u4E00\u6362"),ie.createElement(lt.default,{onChange:sn=>oa("checked",fr,sn.target.checked,pr),checked:!!(Gt!=null&&Gt.checked)},"\u4E0D\u5BFC\u5165\u6B64\u9898"))),ie.createElement(nn,{id:Gt==null?void 0:Gt.id,tagName:"div",style:{padding:"10px 18px"},className:Pe.edit,onBlur:sn=>oa("question",fr,sn,pr),value:Gt==null?void 0:Gt.question}))},aa=(Gt,fr,pr)=>ie.createElement(ie.Fragment,null,["0","1","2","4"].includes(Gt==null?void 0:Gt.type)&&ie.createElement(nn,{id:Gt==null?void 0:Gt.id,value:`\u7B54\u6848\uFF1A${fr||""}`,tagName:"p"}),!pr&&ie.createElement(nn,{id:Gt==null?void 0:Gt.id,value:`\u96BE\u5EA6\uFF1A${(Gt==null?void 0:Gt.difficulty)||""}`,tagName:"p"}),(Gt==null?void 0:Gt.type)!=="7"&&ie.createElement(nn,{id:Gt==null?void 0:Gt.id,value:`\u89E3\u6790\uFF1A${(Gt==null?void 0:Gt.analyze)||""}`,tagName:"p"}),!pr&&ie.createElement(nn,{id:Gt==null?void 0:Gt.id,value:`\u77E5\u8BC6\u70B9\uFF1A${(Gt==null?void 0:Gt.knowledgePoint)||""}`,tagName:"p"})),za=(Gt,fr,pr,Tr)=>{const Ln=Tr!==void 0,or=["\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],vr=Ln&&!Gt.last&&!Gt.errorMsg?{marginBottom:10}:{},sn=or.map(mr=>({key:mr,label:mr,onClick:()=>oa("difficulty",pr,mr,Tr)}));return ie.createElement("div",{className:Pe.liWrap,style:vr},["4"].includes(Gt==null?void 0:Gt.type)&&ie.createElement("div",{className:Pe.li},ie.createElement("aside",null,"\u7B54\xA0\xA0\xA0\xA0\u6848\uFF1A"),ie.createElement(nn,{id:Gt==null?void 0:Gt.id,tagName:"div",className:`${Pe.edit} c-black`,onBlur:mr=>oa("answer",pr,[mr],Tr),value:fr})),!Ln&&ie.createElement("div",{className:Pe.li},ie.createElement("aside",null,"\u96BE\xA0\xA0\xA0\xA0\u5EA6\uFF1A"),ie.createElement("div",{className:"c-black"},ie.createElement(Et.Z,{menu:{items:sn}},ie.createElement("span",{className:"c-light-primary"},Gt==null?void 0:Gt.difficulty,ie.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),(Gt==null?void 0:Gt.type)!=="7"&&ie.createElement("div",{className:Pe.li},ie.createElement("aside",null,"\u89E3\xA0\xA0\xA0\xA0\u6790\uFF1A"),ie.createElement(nn,{id:Gt==null?void 0:Gt.id,tagName:"div",className:`${Pe.edit} c-grey-333`,onBlur:mr=>oa("analyze",pr,mr,Tr),value:Gt==null?void 0:Gt.analyze})),!Ln&&ie.createElement("div",{onKeyDown:ht,className:Pe.li},ie.createElement("aside",null,"\u77E5\u8BC6\u70B9\uFF1A"),ie.createElement(nn,{id:Gt==null?void 0:Gt.id,tagName:"div",value:(Gt==null?void 0:Gt.knowledgePoint)||"",className:`${Pe.edit} c-grey-333`,onBlur:mr=>oa("knowledgePoint",pr,Go(zr(mr)),Tr)})))},Ar=Gt=>ie.createElement(ie.Fragment,null,typeof(Gt==null?void 0:Gt.errorMsg)=="string"&&!!(Gt!=null&&Gt.errorMsg)&&ie.createElement("h5",{contentEditable:!1},ie.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),ie.createElement("div",null,Gt==null?void 0:Gt.errorMsg))),us=Gt=>ie.createElement(ie.Fragment,null,typeof(Gt==null?void 0:Gt.errorMsg)=="string"&&!!(Gt!=null&&Gt.errorMsg)&&ie.createElement("h5",null,ie.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),ie.createElement("div",null,Gt==null?void 0:Gt.errorMsg))),qt=(Gt,fr,pr,Tr)=>{let Ln="flex";return(bn&&_i!==Tr||ur&&!(pr!=null&&pr.errorMsg))&&(Ln="none"),ie.createElement("div",{className:Pe.row,style:{display:Ln}},ie.createElement("div",{className:Pe.leftLayout},An||ie.createElement(tn,null,ie.createElement("div",{"data-text":"edit",contentEditable:!0,className:Pe.question},Gt))),ie.createElement("div",{className:Pe.rightLayout},ie.createElement(an,{className:pr!=null&&pr.errorMsg?Pe.error:""},fr)))},ni=[{id:"0",type:"\u5355\u9009\u9898",element:(Gt,fr,pr)=>{var Tr,Ln;const or=pr!==void 0;let vr=(Tr=Gt==null?void 0:Gt.answer)==null?void 0:Tr[0];const sn=ie.createElement(ie.Fragment,null,fa(Gt,fr,pr),(Ln=Gt==null?void 0:Gt.options)==null?void 0:Ln.map((Xi,zi)=>ie.createElement(nn,{id:Gt==null?void 0:Gt.id,key:zi,value:`${Pa[zi]}.${Xi}`,tagName:"p"})),aa(Gt,vr,or),Ar(Gt));let mr=or?Gt:We[fr];const Vr=mr==null?void 0:mr.options,no=ie.createElement(ie.Fragment,null,qo(mr,fr,pr),Vr==null?void 0:Vr.map((Xi,zi)=>{var _o;return ie.createElement("div",{key:zi,className:Pe.option},ie.createElement("aside",{className:((_o=mr==null?void 0:mr.answer)==null?void 0:_o[0])===Pa[zi]?Pe.active:"",onClick:()=>oa("answer",fr,[Pa[zi]],pr)},Pa[zi]),ie.createElement(nn,{id:mr==null?void 0:mr.id,tagName:"div",className:`${Pe.text}`,onBlur:sa=>{Vr[zi]=sa,oa("options",fr,Vr,pr)},value:Xi}))}),za(mr,"",fr,pr),us(mr));return or?[sn,no]:qt(sn,no,mr,fr)},deal:Gt=>{var fr,pr,Tr;Gt.score=Gt.score===void 0?2:Gt.score;let Ln=Go((fr=Gt==null?void 0:Gt.answer)==null?void 0:fr[0]).toUpperCase();Gt.answer=Ln?[Ln]:[];let or=[];if(!(Gt!=null&&Gt.options))or.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{Gt.options=(pr=Gt.options)==null?void 0:pr.slice(0,8);const vr=Gt.options.map(mr=>mr==null?void 0:mr.trim().replace(/^\s+|\s+$/g,""));new Set(vr).size!==vr.length&&or.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return Ln||or.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D"),Ln&&(Pa.slice(0,((Tr=Gt==null?void 0:Gt.options)==null?void 0:Tr.length)||8).includes(Ln)||or.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")),Go(Gt==null?void 0:Gt.question)||or.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Gt.errorMsg=or.join(`
|
|
|
`),Gt}},{id:"1",type:"\u591A\u9009\u9898",element:(Gt,fr,pr)=>{var Tr,Ln;const or=pr!==void 0;let vr=(Tr=Gt==null?void 0:Gt.answer)==null?void 0:Tr[0];const sn=ie.createElement(ie.Fragment,null,fa(Gt,fr,pr),(Ln=Gt==null?void 0:Gt.options)==null?void 0:Ln.map((Xi,zi)=>ie.createElement(nn,{id:Gt==null?void 0:Gt.id,key:zi,value:`${Pa[zi]}.${Xi}`,tagName:"p"})),aa(Gt,vr,or),Ar(Gt));let mr=or?Gt:We[fr];const Vr=mr==null?void 0:mr.options,no=ie.createElement(ie.Fragment,null,qo(mr,fr,pr),Vr==null?void 0:Vr.map((Xi,zi)=>{var _o,sa;return ie.createElement("div",{key:zi,className:Pe.option},ie.createElement("aside",{className:(sa=(_o=mr==null?void 0:mr.answer)==null?void 0:_o[0])!=null&&sa.includes(Pa[zi])?Pe.active:"",onClick:()=>{var Va;let os=((Va=mr==null?void 0:mr.answer)==null?void 0:Va[0])||"";const Zs=Pa[zi];os.includes(Zs)?os=os.replace(new RegExp(Zs,"g"),""):os+=Zs,os=os.split("").sort().join(""),oa("answer",fr,[os],pr)}},Pa[zi]),ie.createElement(nn,{id:mr==null?void 0:mr.id,tagName:"div",className:`${Pe.text}`,onBlur:Va=>{Vr[zi]=Va,oa("options",fr,Vr,pr)},value:Xi}))}),za(mr,"",fr,pr),us(mr));return or?[sn,no]:qt(sn,no,mr,fr)},deal:Gt=>{var fr,pr,Tr;Gt.score=Gt.score===void 0?2:Gt.score;let Ln=Go((fr=Gt==null?void 0:Gt.answer)==null?void 0:fr[0]).toUpperCase().split("").sort().join("");Gt.answer=Ln?[Ln]:[];let or=[];if(!(Gt!=null&&Gt.options))or.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{Gt.options=(pr=Gt.options)==null?void 0:pr.slice(0,8);const vr=Gt.options.map(mr=>mr==null?void 0:mr.trim().replace(/^\s+|\s+$/g,""));new Set(vr).size!==vr.length&&or.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}if(Ln||or.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D"),Ln){const vr=Pa.slice(0,((Tr=Gt==null?void 0:Gt.options)==null?void 0:Tr.length)||8);ba(vr).includes(Ln)||or.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 Go(Gt==null?void 0:Gt.question)||or.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Gt.errorMsg=or.join(`
|
|
|
`),Gt}},{id:"2",type:"\u5224\u65AD\u9898",element:(Gt,fr,pr)=>{var Tr,Ln;const or=pr!==void 0;let vr=(Tr=Gt==null?void 0:Gt.answer)==null?void 0:Tr[0];const sn=ie.createElement(ie.Fragment,null,fa(Gt,fr,pr),aa(Gt,vr,or),Ar(Gt));let mr=or?Gt:We[fr];const Vr=["\u6B63\u786E","\u9519\u8BEF"];let no=((Ln=mr==null?void 0:mr.answer)==null?void 0:Ln[0])||"";["\u6B63\u786E","\u5BF9","T","True","t","true"].includes(no)?no="\u6B63\u786E":["\u9519\u8BEF","\u9519","T","true","t","false"].includes(no)&&(no="\u9519\u8BEF");const Xi=ie.createElement(ie.Fragment,null,qo(mr,fr,pr),Vr==null?void 0:Vr.map((zi,_o)=>ie.createElement("div",{key:_o,className:Pe.option},ie.createElement("aside",{style:{borderRadius:2},className:no===zi?Pe.active:"",onClick:()=>oa("answer",fr,[zi],pr)},zi==="\u6B63\u786E"?"T":"F"),ie.createElement("div",{style:{pointerEvents:"none"},className:`${Pe.text}`},zi))),za(mr,"",fr,pr),us(mr));return or?[sn,Xi]:qt(sn,Xi,mr,fr)},deal:Gt=>{var fr;Gt.score=Gt.score===void 0?2:Gt.score;let pr=Go((fr=Gt==null?void 0:Gt.answer)==null?void 0:fr[0]);Gt.answer=pr?[pr]:[];let Tr=[];return pr||Tr.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),pr&&!["\u6B63\u786E","\u5BF9","T","True","t","true","\u9519\u8BEF","\u9519","T","true","t","false"].includes(pr)&&Tr.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),Go(Gt==null?void 0:Gt.question)||Tr.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Gt.errorMsg=Tr.join(`
|
|
|
`),Gt}},{id:"3",type:"\u586B\u7A7A\u9898",element:(Gt,fr,pr)=>{var Tr,Ln;const or=pr!==void 0,vr=ie.createElement(ie.Fragment,null,fa(Gt,fr,pr),(Tr=Gt==null?void 0:Gt.answer)==null?void 0:Tr.map((Vr,no)=>ie.createElement(nn,{id:Gt==null?void 0:Gt.id,key:no,tagName:"p",value:`\u7B54\u6848${no+1}\uFF1A${Vr.text||""}`})),aa(Gt,"",or),Ar(Gt));let sn=or?Gt:We[fr];const mr=ie.createElement(ie.Fragment,null,qo(sn,fr,pr),(Ln=sn==null?void 0:sn.answer)==null?void 0:Ln.map((Vr,no)=>ie.createElement("div",{key:no,className:Pe.option},ie.createElement("aside",{className:Pe.fill},"\u586B\u7A7A\u9879",no+1),Vr.model===1&&ie.createElement(nn,{id:sn==null?void 0:sn.id,tagName:"div",onBlur:Xi=>{sn.answer[no].latex=zr(Xi),oa("answer",fr,sn.answer,pr)},className:`${Pe.text}`,value:Vr.latex}),Vr.model===2&&ie.createElement(ft.Z,{value:Vr.latex,onChange:Xi=>{sn.answer[no].latex=Xi,oa("answer",fr,sn.answer,pr)}}))),za(sn,"",fr,pr),us(sn));return or?[vr,mr]:qt(vr,mr,sn,fr)},deal:Gt=>{var fr,pr,Tr,Ln;Gt.score=Gt.score===void 0?2:Gt.score,Gt.question=(fr=Gt.question)==null?void 0:fr.replaceAll("\u2581","_");const or=(pr=Gt.answer)==null?void 0:pr.map(sn=>{if(Object.prototype.toString.call(sn)==="[object Object]")return sn;sn=sn==null?void 0:sn.trim();const mr={model:1,text:sn,latex:sn};return sn.startsWith("$$")&&sn.endsWith("$$")||sn.startsWith("`$$")&&sn.endsWith("$$`")?(mr.model=2,mr.latex=sn.slice(2,-2)):mr.latex=zr(sn),mr});Gt.answer=or;let vr=[];return or||vr.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1A\u4E2D\u56FD\uFF1B\u7B54\u68482\uFF1A\u4E16\u754C"),Go(Gt==null?void 0:Gt.question)?Gt!=null&&Gt.question.includes("_")?(Tr=Gt==null?void 0:Gt.answer)!=null&&Tr.length&&((Gt==null?void 0:Gt.question.match(/_+/g))||[]).length!==((Ln=Gt==null?void 0:Gt.answer)==null?void 0:Ln.length)&&vr.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):vr.push("\u586B\u7A7A\u9879\u672A\u8BBE\u7F6E\uFF0C\u8BF7\u4F7F\u7528\u82F1\u6587\u4E0B\u5212\u7EBF\u201C___\u201D\u8868\u793A\u586B\u7A7A\u9879"):vr.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Gt.errorMsg=vr.join(`
|
|
|
`),Gt}},{id:"4",type:"\u7B80\u7B54\u9898",element:(Gt,fr,pr)=>{var Tr,Ln;const or=pr!==void 0;let vr=(Tr=Gt==null?void 0:Gt.answer)==null?void 0:Tr[0];const sn=ie.createElement(ie.Fragment,null,fa(Gt,fr,pr),aa(Gt,vr,or),Ar(Gt));let mr=or?Gt:We[fr];const Vr=ie.createElement(ie.Fragment,null,qo(mr,fr,pr),za(mr,(Ln=mr==null?void 0:mr.answer)==null?void 0:Ln[0],fr,pr),us(mr));return or?[sn,Vr]:qt(sn,Vr,mr,fr)},deal:Gt=>{Gt.score=Gt.score===void 0?5:Gt.score;let fr=[];return Go(Gt==null?void 0:Gt.question)||fr.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Gt.errorMsg=fr.join(`
|
|
|
`),Gt}},{id:"6",type:"\u7F16\u7A0B\u9898",element:(Gt,fr)=>{var pr,Tr;const Ln=We[fr],or=Oi.slice(0,4).map(vr=>({key:vr,label:vr,onClick:()=>oa("platform",fr,vr)}));return ie.createElement("div",{className:Pe.row,style:{display:ur?Ln!=null&&Ln.errorMsg?"flex":"none":"flex"}},ie.createElement("div",{className:Pe.leftLayout},ie.createElement(tn,null,ie.createElement("div",{"data-text":"edit",contentEditable:!0,className:Pe.question},fa(Gt,fr),ie.createElement(nn,{id:Gt==null?void 0:Gt.id,value:`\u8BD5\u9898\u63CF\u8FF0\uFF1A${(Gt==null?void 0:Gt.description)||""}`,tagName:"p"}),aa(Gt),ie.createElement(nn,{id:Gt==null?void 0:Gt.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${Gt==null?void 0:Gt.timeLimit}`,tagName:"p"}),ie.createElement(nn,{id:Gt==null?void 0:Gt.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(Gt==null?void 0:Gt.platform)||""}`,tagName:"p"}),ie.createElement("p",{contentEditable:!0},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),ie.createElement("h4",null),ie.createElement(nn,{id:Gt==null?void 0:Gt.id,value:(Gt==null?void 0:Gt.code)||"",tagName:"div"}),(pr=Gt==null?void 0:Gt.inputs)==null?void 0:pr.map((vr,sn)=>{var mr;return ie.createElement(ie.Fragment,{key:sn},ie.createElement("h4",null),ie.createElement(nn,{id:Gt==null?void 0:Gt.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${sn+1})\u8F93\u5165\uFF1A${vr||""}`,tagName:"div"}),ie.createElement(nn,{id:Gt==null?void 0:Gt.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${sn+1})\u8F93\u51FA\uFF1A${((mr=Gt==null?void 0:Gt.outputs)==null?void 0:mr[sn])||""}`,tagName:"div"}))}),Ar(Gt)))),ie.createElement("div",{className:Pe.rightLayout},ie.createElement(an,{className:Ln!=null&&Ln.errorMsg?Pe.error:""},qo(Ln,fr),ie.createElement("div",{className:Pe.liWrap,style:{background:"transparent",marginBottom:0,padding:0}},ie.createElement("div",{className:Pe.li},ie.createElement("aside",null,"\u8BD5\u9898\u63CF\u8FF0\uFF1A"),ie.createElement(nn,{className:Pe.edit,id:Ln==null?void 0:Ln.id,value:Ln==null?void 0:Ln.description,tagName:"div",onBlur:vr=>oa("description",fr,vr)}))),za(Ln,"",fr),ie.createElement("div",{className:Pe.liWrap},ie.createElement("div",{className:Pe.li},ie.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),ie.createElement(nn,{className:Pe.edit,id:Ln==null?void 0:Ln.id,value:Ln==null?void 0:Ln.timeLimit,tagName:"div",onBlur:vr=>oa("timeLimit",fr,zr(vr))})),ie.createElement("div",{className:Pe.li},ie.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),ie.createElement("div",{className:"c-black"},ie.createElement(Et.Z,{menu:{items:or}},ie.createElement("span",{className:"c-light-primary"},Ln==null?void 0:Ln.platform,ie.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),ie.createElement("div",{className:Pe.li,style:{flexDirection:"column",alignItems:"start"}},ie.createElement("aside",{className:"mb10"},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),ie.createElement(nn,{className:Pe.edit,id:Ln==null?void 0:Ln.id,value:(Ln==null?void 0:Ln.code)||"",onBlur:vr=>oa("code",fr,zr(vr)),tagName:"div"}))),(Tr=Ln==null?void 0:Ln.inputs)==null?void 0:Tr.map((vr,sn)=>{var mr;return ie.createElement("div",{className:Pe.liWrap,key:sn},ie.createElement("div",{className:Pe.li},ie.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",sn+1,")\u8F93\u5165\uFF1A"),ie.createElement(nn,{id:Ln==null?void 0:Ln.id,value:vr||"",className:Pe.edit,onBlur:Vr=>{const no=[...(Ln==null?void 0:Ln.inputs)||[]];no[sn]=zr(Vr),oa("inputs",fr,no)},tagName:"div"})),ie.createElement("div",{className:Pe.li},ie.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",sn+1,")\u8F93\u51FA\uFF1A"),ie.createElement(nn,{id:Ln==null?void 0:Ln.id,value:((mr=Ln==null?void 0:Ln.outputs)==null?void 0:mr[sn])||"",className:Pe.edit,onBlur:Vr=>{const no=[...(Ln==null?void 0:Ln.outputs)||[]];no[sn]=zr(Vr),oa("outputs",fr,no)},tagName:"div"})))}),us(Ln))))},deal:Gt=>{var fr,pr,Tr;Gt.score=Gt.score===void 0?10:Gt.score,Gt.code=(fr=Gt.code)==null?void 0:fr.trim();let Ln=[];Go(Gt==null?void 0:Gt.question)?((pr=Gt==null?void 0:Gt.question)==null?void 0:pr.length)>60&&Ln.push("\u7F16\u7A0B\u9898\u540D\u79F0\u9650\u523660\u4E2A\u5B57\u7B26"):Ln.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Go(Gt==null?void 0:Gt.description)||Ln.push("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\u63CF\u8FF0");const or=Go(String((Gt==null?void 0:Gt.timeLimit)||""));if(Gt.timeLimit=or,(!or||or&&!["3","4","5","6","7","8","9","10"].includes(or))&&Ln.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),Gt.platform=Go(Gt==null?void 0:Gt.platform),Gt!=null&&Gt.platform){const vr=["c","c++","java","python"],sn=(Tr=Gt==null?void 0:Gt.platform)==null?void 0:Tr.toLowerCase(),mr=vr.findIndex(Vr=>Vr===sn);mr>-1?Gt.platform=Oi[mr]:Ln.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00")}else Ln.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00");if(!(Gt!=null&&Gt.inputs)||!(Gt!=null&&Gt.outputs))Gt.inputs=[],Gt.outputs=[],Ln.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 vr=Math.min(Gt.inputs.length,Gt.outputs.length);Gt.inputs=Gt.inputs.slice(0,vr),Gt.outputs=Gt.outputs.slice(0,vr),Gt.outputs.some(sn=>!Go(sn))&&Ln.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879")}return Gt.errorMsg=Ln.join(`
|
|
|
`),Gt}},{id:"7",type:"\u7EC4\u5408\u9898",element:(Gt,fr)=>{var pr,Tr;const Ln=We[fr];return ie.createElement("div",{className:Pe.row,style:{display:ur?Ln!=null&&Ln.errorMsg?"flex":"none":"flex"}},ie.createElement("div",{className:Pe.leftLayout},ie.createElement(tn,null,ie.createElement("div",{"data-text":"edit",contentEditable:!0,className:Pe.question},fa(Gt,fr),aa(Gt),(pr=Gt==null?void 0:Gt.questions)==null?void 0:pr.map((or,vr)=>{var sn;const mr=(sn=ni.find(Vr=>Vr.id===(or==null?void 0:or.type)))==null?void 0:sn.element;return ie.createElement(ie.Fragment,{key:`left-${Gt.id}-${vr}`},mr(or,fr,vr)[0])}),Ar(Gt),ie.createElement("p",{contentEditable:!0},"}}")))),ie.createElement("div",{className:Pe.rightLayout},ie.createElement(an,{className:Ln!=null&&Ln.errorMsg?Pe.error:""},qo(Ln,fr),za(Ln,"",fr),(Tr=Ln==null?void 0:Ln.questions)==null?void 0:Tr.map((or,vr)=>{var sn;const mr=(sn=ni.find(Vr=>Vr.id===(or==null?void 0:or.type)))==null?void 0:sn.element;return ie.createElement(ie.Fragment,{key:`right-${Ln.id}-${vr}`},mr(or,fr,vr)[1])}),us(Ln))))},deal:Gt=>{var fr,pr,Tr,Ln,or;const vr=Co,sn=[...ni],mr=sn.findIndex(zi=>zi.id==="0"),Vr=sn.findIndex(zi=>zi.id==="1");if(mr!==-1){const zi=sn[mr].deal;sn[mr].deal=_o=>{const sa=zi(_o);return sa.errorMsg&&(sa.errorMsg=sa.errorMsg.split(`
|
|
|
`).filter(Va=>Va!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(`
|
|
|
`)),sa}}if(Vr!==-1){const zi=sn[Vr].deal;sn[Vr].deal=_o=>{const sa=zi(_o);return sa.errorMsg&&(sa.errorMsg=sa.errorMsg.split(`
|
|
|
`).filter(Va=>Va!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(`
|
|
|
`)),sa}}Gt.questions=(fr=Gt.questions)!=null&&fr.length?Co(Gt.questions.slice(0,20)):[],Gt.questions=(pr=Gt.questions)==null?void 0:pr.map((zi,_o)=>{var sa;if(zi.type==="0"||zi.type==="1"){const Va=(sa=zi.options)==null?void 0:sa.map(os=>os==null?void 0:os.trim().replace(/^\s+|\s+$/g,""));Va&&new Set(Va).size!==Va.length&&(zi.errorMsg=(zi.errorMsg?zi.errorMsg+`
|
|
|
`:"")+"\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return nr(_n({},zi),{last:_o===Gt.questions.length-1})});const no=(Tr=Gt.questions)==null?void 0:Tr.reduce((zi,_o)=>{const sa=parseFloat(_o.score);return isNaN(sa)?zi:zi+sa},0);Gt.score=no;let Xi=[];return(Ln=Gt.questions)!=null&&Ln.length?Gt.errorMsg=((or=Gt.questions)==null?void 0:or.findIndex(zi=>!!zi.errorMsg))>-1:Xi.push("\u8BF7\u6DFB\u52A0\u5C0F\u9898"),Go(Gt==null?void 0:Gt.question)||Xi.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Xi.length&&(Gt.errorMsg=Xi.join(`
|
|
|
`)),Gt}},{id:"8",type:"\u7A0B\u5E8F\u586B\u7A7A\u9898",element:(Gt,fr)=>{var pr,Tr;const Ln=We[fr],or=Oi.map(vr=>({key:vr,label:vr,onClick:()=>oa("platform",fr,vr)}));return ie.createElement("div",{className:Pe.row,style:{display:ur?Ln!=null&&Ln.errorMsg?"flex":"none":"flex"}},ie.createElement("div",{className:Pe.leftLayout},ie.createElement(tn,null,ie.createElement("div",{"data-text":"edit",contentEditable:!0,className:Pe.question},fa(Gt,fr),aa(Gt),ie.createElement(nn,{id:Gt==null?void 0:Gt.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${Gt==null?void 0:Gt.timeLimit}`,tagName:"p"}),ie.createElement(nn,{id:Gt==null?void 0:Gt.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(Gt==null?void 0:Gt.platform)||""}`,tagName:"p"}),ie.createElement("p",{contentEditable:!0},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),ie.createElement("h4",null),ie.createElement(nn,{id:Gt==null?void 0:Gt.id,value:(Gt==null?void 0:Gt.code)||"",tagName:"div"}),ie.createElement("h4",null),ie.createElement(nn,{id:Gt==null?void 0:Gt.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A${(Gt==null?void 0:Gt.input)||""}`,tagName:"p"}),ie.createElement(nn,{id:Gt==null?void 0:Gt.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A${(Gt==null?void 0:Gt.output)||""}`,tagName:"p"}),(pr=Gt==null?void 0:Gt.answer)==null?void 0:pr.map((vr,sn)=>ie.createElement(nn,{key:sn,id:Gt==null?void 0:Gt.id,value:`\u7B54\u6848${sn+1}\uFF1A${vr||""}`,tagName:"p"})),Ar(Gt)))),ie.createElement("div",{className:Pe.rightLayout},ie.createElement(an,{className:Ln!=null&&Ln.errorMsg?Pe.error:""},qo(Ln,fr),za(Ln,"",fr),ie.createElement("div",{className:Pe.liWrap},ie.createElement("div",{className:Pe.li,onKeyDown:ht},ie.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),ie.createElement(nn,{className:Pe.edit,id:Ln==null?void 0:Ln.id,value:Ln==null?void 0:Ln.timeLimit,tagName:"div",onBlur:vr=>oa("timeLimit",fr,zr(vr))})),ie.createElement("div",{className:Pe.li},ie.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),ie.createElement("div",{className:"c-black"},ie.createElement(Et.Z,{menu:{items:or}},ie.createElement("span",{className:"c-light-primary"},Ln==null?void 0:Ln.platform,ie.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),ie.createElement("div",{className:Pe.li,style:{flexDirection:"column",alignItems:"start"}},ie.createElement("aside",{className:"mb10"},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),ie.createElement(nn,{className:Pe.edit,id:Ln==null?void 0:Ln.id,value:(Ln==null?void 0:Ln.code)||"",onBlur:vr=>oa("code",fr,zr(vr)),tagName:"div"})),ie.createElement("div",{className:Pe.li},ie.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A"),ie.createElement(nn,{className:Pe.edit,id:Ln==null?void 0:Ln.id,value:(Ln==null?void 0:Ln.input)||"",onBlur:vr=>oa("input",fr,zr(vr)),tagName:"div"})),ie.createElement("div",{className:Pe.li},ie.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"),ie.createElement(nn,{className:Pe.edit,id:Ln==null?void 0:Ln.id,value:(Ln==null?void 0:Ln.output)||"",onBlur:vr=>oa("output",fr,zr(vr)),tagName:"div"}))),ie.createElement("div",{className:Pe.liWrap},(Tr=Ln==null?void 0:Ln.answer)==null?void 0:Tr.map((vr,sn)=>ie.createElement("div",{className:Pe.li,key:sn},ie.createElement("aside",null,"\u7B54\u6848",sn+1,"\uFF1A"),ie.createElement(nn,{id:Ln==null?void 0:Ln.id,value:vr||"",className:Pe.edit,onBlur:mr=>{const Vr=[...(Ln==null?void 0:Ln.answer)||[]];Vr[sn]=zr(mr),oa("output",fr,Vr)},tagName:"div"})))),us(Ln))))},deal:Gt=>{var fr,pr,Tr,Ln,or,vr,sn,mr;Gt.score=Gt.score===void 0?10:Gt.score,Gt.code=(Tr=(pr=(fr=Gt.code)==null?void 0:fr.trim())==null?void 0:pr.replace(/@_@/g,"@\u2581@"))==null?void 0:Tr.replace(/@__@/g,"@\u2581\u2581@");let Vr=[];if(Go(Gt==null?void 0:Gt.question)||Vr.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Go(Gt==null?void 0:Gt.code)?/@▁@|@▁▁@/.test(Gt==null?void 0:Gt.code)?(Ln=Gt==null?void 0:Gt.answer)!=null&&Ln.length&&((or=Gt==null?void 0:Gt.code.match(/@▁@|@▁▁@/g))==null?void 0:or.length)!==((vr=Gt==null?void 0:Gt.answer)==null?void 0:vr.length)&&Vr.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):Vr.push("\u7A0B\u5E8F\u4EE3\u7801\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u7A0B\u5E8F\u4EE3\u7801\u4E2D\u7684\u586B\u7A7A\u9879\u9700\u8981\u4F7F\u7528 @\u2581@ \u7B26\u53F7\u6807\u8BC6\u51FA\u6765"):Vr.push("\u672A\u8BC6\u522B\u5230\u7A0B\u5E8F\u4EE3\u7801"),Gt!=null&&Gt.answer?(sn=Gt.answer)!=null&&sn.some(Xi=>!Go(Xi))&&Vr.push("\u7B54\u6848\u4E3A\u5FC5\u586B\u9879"):Vr.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1AHello\uFF1B\u7B54\u68482\uFF1AWorld"),Gt.platform=Go(Gt==null?void 0:Gt.platform),Gt!=null&&Gt.platform){const Xi=["c","c++","java","python","javascript","ruby"],zi=(mr=Gt==null?void 0:Gt.platform)==null?void 0:mr.toLowerCase(),_o=Xi.findIndex(sa=>sa===zi);_o>-1?Gt.platform=Oi[_o]:Vr.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00")}else Vr.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00");Go(Gt==null?void 0:Gt.output)||Vr.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879");const no=Go(String((Gt==null?void 0:Gt.timeLimit)||""));return Gt.timeLimit=no,(!no||no&&!["3","4","5","6","7","8","9","10"].includes(no))&&Vr.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),Gt.errorMsg=Vr.join(`
|
|
|
`),Gt}}],xr=()=>ie.createElement(ie.Fragment,null,Ni.filter(Gt=>{var fr;return!!((fr=ni.find(Tr=>Tr.id===(Gt==null?void 0:Gt.type)))==null?void 0:fr.element)}).map((Gt,fr)=>{var pr;const Tr=(pr=ni.find(Ln=>Ln.id===(Gt==null?void 0:Gt.type)))==null?void 0:pr.element;return ie.createElement(ie.Fragment,{key:Gt.id},Tr(Gt,fr))})),xt=()=>Ft(void 0,null,function*(){const Gt=We.filter(fr=>!fr.checked);if(Zr!==3||!Gt.length){Me.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\uFF01");return}if(to){xi(!0),yield to(We),xi(!1);return}ji.setFieldsValue({sub_discipline_id:er}),Fi(!0)}),Po=(Gt,fr=[])=>{if(typeof Gt=="string")return Gt.trim();if(Array.isArray(Gt))return Gt.map(pr=>Po(pr,fr));if(typeof Gt=="object"&&Gt!==null){const pr={};for(const Tr in Gt)Gt.hasOwnProperty(Tr)&&(fr.includes(Tr)?pr[Tr]=Gt[Tr]:pr[Tr]=Po(Gt[Tr],fr));return pr}return Gt},zo=Gt=>Ft(void 0,null,function*(){const fr=Co(Po(Gt));ir(fr),rr(JSON.parse(JSON.stringify(fr))),hi(3),ai(!1),hr(!1)});(0,ie.useEffect)(()=>{if(Cr)return;const Gt=()=>{fn(fr=>fr>=90?(clearInterval(Jr.current),90):fr+1)};return Jr.current=setInterval(Gt,5e4/90),()=>clearInterval(Jr.current)},[Cr]);const ya=(Gt,fr)=>{Ri(!1);const pr=new FormData;Object.keys(fr).forEach(Ln=>{pr.append(Ln,fr[Ln])});const Tr=new window.XMLHttpRequest;Tr.withCredentials=!0,Tr.addEventListener("load",function(Ln){return Ft(this,null,function*(){var or,vr;try{const sn=JSON.parse((or=Ln==null?void 0:Ln.target)==null?void 0:or.response);if(Ri(!0),fn(100),yield new Promise(mr=>setTimeout(()=>mr(),780)),sn.status===0){if(!((vr=sn==null?void 0:sn.data)!=null&&vr.length)){Me.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!"),ai(!1);return}zo((sn==null?void 0:sn.data)||[])}else ai(!1),Me.ZP.warning(sn==null?void 0:sn.message)}catch(sn){console.log("\u8BF7\u6C42\u9519\u8BEF\uFF1A",sn)}})}),Tr.addEventListener("error",()=>{ai(!1)}),Tr.open("POST",`${le.Z.API_SERVER}${Gt}`),Tr.send(pr)},xa=Gt=>Ft(void 0,null,function*(){const fr=Gt.name.split(".").slice(-1)[0].toLowerCase();return["docx"].indexOf(fr)==-1?(Me.ZP.error(`${Gt.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()):(ai(!0),ao("\u5904\u7406\u4E2D"),ya("/api/intelligent_imports/import.json",{file:Gt}),Promise.reject())});let Sa=[{key:1,label:ie.createElement(rt.default,{showUploadList:!1,accept:".docx",maxCount:1,beforeUpload:xa},ie.createElement("div",{style:{padding:"0 5px",width:108,height:35,lineHeight:"35px"}},"\u672C\u5730\u5BFC\u5165"))}];((0,Cn.Ny)()||(0,Cn.$O)())&&Sa.push({key:2,label:ie.createElement("div",{style:{padding:"0 5px"}},"\u5927\u6A21\u578B\u667A\u80FD\u51FA\u9898"),onClick:()=>{ls.current.onClick()}});const ha=[We.length,(Ki=We.filter(Gt=>!!(Gt!=null&&Gt.errorMsg)))==null?void 0:Ki.length];return ie.createElement("div",{className:Oe()(Pe.intelligentBox,"intelligent-body-curb",it),style:nr(_n({},vt),{width:Ye}),ref:Gi},ie.createElement("div",{className:Pe.underpin},ie.createElement("b",{style:Xe}),ie.createElement("b",{style:Xe})),ie.createElement("div",{className:Pe.head,style:{top:Rn}},ie.createElement("div",{className:Pe.leftLayout},sr||ie.createElement(ie.Fragment,null,ie.createElement(et.Z,{align:"middle"},ie.createElement("div",{className:Pe.title},"\u8BD5\u9898\u7F16\u8F91"),!yn&&ie.createElement(de.op,{href:`${le.Z.API_SERVER}/api/intelligent_imports/download_template`,download:!0,type:"link"},"\u4E0B\u8F7DWord\u6A21\u7248",ie.createElement("i",{className:"iconfont icon-xiazai4 font14 ml10"})),ie.createElement(de.op,{onClick:Yi,shape:"default"},"\u4E00\u952E\u6E05\u7A7A"),!yn&&ie.createElement(Et.Z,{overlayClassName:Pe.menu,menu:{items:Sa}},ie.createElement(de.op,{className:"ml20",type:"primary",shape:"default"},"\u5BFC\u5165\u8BD5\u9898")),!!Ji&&Ji),ie.createElement("div",{className:Pe.tip},ie.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"))),ie.createElement(et.Z,{className:Pe.rightLayout,style:{alignItems:"start"}},Hr||ie.createElement(ie.Fragment,null,ie.createElement("div",{className:Pe.title,style:{marginRight:0}},"\u8BD5\u9898\u9884\u89C8"),[3].includes(Zr)&&ie.createElement(lt.default,{className:"ml20",checked:ur,onChange:Gt=>hr(Gt.target.checked)},"\u4EC5\u67E5\u770B\u9519\u8BEF\u8BD5\u9898"),[3].includes(Zr)&&ie.createElement("div",{style:{color:"#5F6368",marginLeft:"auto"}},"\u5171\u8BC6\u522B",ie.createElement("span",{className:"ml5 mr5 c-light-primary"},ha[0]),"\u9898\uFF0C\u5176\u4E2D\u8BC6\u522B\u6709\u8BEF",ie.createElement("span",{className:"ml5 mr5 c-red-e53"},ha[1]),"\u9898")),bn&&ie.createElement("div",{className:Pe.tabs},Ni==null?void 0:Ni.map((Gt,fr)=>ie.createElement("div",{onClick:()=>{Ur(fr)},className:_i===fr&&Pe.active,key:fr},"\u65B0\u9898",fr+1)))),ie.createElement("div",{className:Pe.centerBox},ie.createElement("img",{className:"mb10",src:be,width:56}),!yi&&ie.createElement(de.op,{onClick:Ta},"\u8BC6\u522B"))),[1,2].includes(Zr)&&lo(),[3].includes(Zr)&&xr(),ie.createElement("div",{className:"pb10"}),ie.createElement("div",{className:Pe.buttonFixed},ie.createElement("div",{className:Pe.buttonWrap},ie.createElement(_t.ZP,{size:"middle",className:`${Pe.button} mr20`,onClick:It},"\u53D6\u6D88"),ie.createElement(_t.ZP,{size:"middle",type:"primary",loading:Pn,className:`${Pe.button}`,onClick:xt},Sn))),ie.createElement(_e.default,{centered:!0,closable:!1,destroyOnClose:!0,open:ui,title:null,footer:null,width:320,afterClose:()=>fn(0)},ie.createElement(et.Z,{align:"middle",style:{flexDirection:"column"}},ie.createElement("b",{style:{color:"#5F6368"},className:"font16 mb5 mt20"},Hi,ie.createElement("span",{className:Pe.dotLoading},ie.createElement("span",null,"."),ie.createElement("span",null,"."),ie.createElement("span",null,"."))),ie.createElement(Ge.Z,{style:{width:"auto"},size:[200,8],showInfo:!1,percent:Ir}),ie.createElement("div",{style:{color:"#5F6368"},className:"mb20"},"\u6B63\u5728\u8BC6\u522B\uFF0C\u5DF2\u5B8C\u6210",ie.createElement("span",{className:"ml5 c-light-primary"},Ir,"%")))),ie.createElement(_e.default,{centered:!0,open:si,title:"\u8BD5\u9898\u5BFC\u5165\u8BBE\u7F6E",confirmLoading:Or,width:500,onCancel:()=>Fi(!1),onOk:()=>ji.submit(),afterClose:()=>{ji.resetFields()}},ie.createElement(tt.default,{style:{maxHeight:550},form:ji,layout:"horizontal",colon:!1,size:"large",onFinish:Gt=>Ft(void 0,null,function*(){var fr,pr,Tr,Ln,or;const vr=We.filter(Vr=>!Vr.checked&&!Vr.errorMsg);jr(!0);const sn=()=>Ft(void 0,null,function*(){var Vr,no;const Xi=yield(0,Be.ZP)("/api/intelligent_imports/save.json",{method:"post",body:nr(_n(_n({},Kn),Gt),{list:vr,mode:dr})});Xi.status===0&&(Qn&&((Vr=Xi==null?void 0:Xi.data)!=null&&Vr.success)&&window.location.pathname==="/problemset"&&(un.Z.publish("refresh-item-bank",Gt.group_id),yield new Promise(zi=>setTimeout(()=>zi(),1500))),Me.ZP.success(`\u6210\u529F\u5BFC\u5165${(no=Xi==null?void 0:Xi.data)==null?void 0:no.success}\u9053\u8BD5\u9898`,3),In(Xi),Fi(!1)),jr(!1)});if(dr!==1){yield sn();return}const mr=yield(0,Be.ZP)("/api/intelligent_imports/is_repeated.json",{method:"post",body:{list:We,mode:dr}});if(mr.status===0){if(!((fr=mr==null?void 0:mr.data)!=null&&fr.error_size)){yield sn();return}_e.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onCancel:()=>{jr(!1)},title:"\u63D0\u793A",content:ie.createElement("div",{style:{overflow:"auto",maxHeight:500}},"\u5171",ie.createElement("span",{className:"c-light-primary ml5 mr5"},(pr=mr==null?void 0:mr.data)==null?void 0:pr.all_size),"\u9053\u8BD5\u9898\uFF0C\u5176\u4E2D",ie.createElement("span",{style:{color:"#FF9D18"},className:"ml5 mr5"},(Tr=mr==null?void 0:mr.data)==null?void 0:Tr.error_size),"\u9053\u8BD5\u9898\u91CD\u590D\uFF08\u7B2C",ie.createElement("span",{className:"ml5 mr5"},(or=(Ln=mr==null?void 0:mr.data)==null?void 0:Ln.index)==null?void 0:or.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:sn})}})},ie.createElement("div",{className:"c-grey-999 mb20"},"\u63D0\u793A\uFF1A\u8BC6\u522B\u6709\u8BEF\u7684\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u5BFC\u5165"),ie.createElement(tt.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"}]},ie.createElement(te.Z,{placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",fieldNames:{label:"name",value:"id",children:"sub_disciplines"},options:vn})),dr===1&&ie.createElement(tt.default.Item,{label:ie.createElement(et.Z,{align:"middle",style:{justifyContent:"space-between"}},ie.createElement("span",null,"\u653E\u5165\u6587\u4EF6\u5939\u76EE\u5F55"),ie.createElement("div",{onClick:()=>Wn(!0),style:{marginLeft:211,transform:"translateX(14px)",display:"flex",color:"#5F6368",cursor:"pointer"}},ie.createElement("img",{className:"mr5 primary-hover",src:dt}),"\u65B0\u5EFA\u6587\u4EF6\u5939")),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"group_id",labelCol:{span:24},wrapperCol:{span:24}},ie.createElement(at.Z,{key:mi})))),ie.createElement(_e.default,{centered:!0,open:Vn,title:"\u65B0\u5EFA\u6587\u4EF6\u5939",destroyOnClose:!0,width:480,confirmLoading:ti,onCancel:()=>Wn(!1),onOk:()=>Xo.submit(),afterClose:()=>{Xo.resetFields()}},ie.createElement(tt.default,{style:{maxHeight:550},form:Xo,layout:"horizontal",colon:!1,size:"large",onFinish:Gt=>Ft(void 0,null,function*(){var fr;Hn(!0),(yield(0,Be.ZP)("/api/item_banks_groups.json",{method:"post",body:{name:Gt.name,parent_id:(fr=Gt==null?void 0:Gt.parent_id)==null?void 0:fr[0]}})).status===0?(gi(mi+1),setTimeout(()=>{Me.ZP.success("\u64CD\u4F5C\u6210\u529F"),Wn(!1),Hn(!1)},1e3)):Hn(!1)})},ie.createElement(tt.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"}]},ie.createElement(ee.default,{maxLength:60,showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"})),ie.createElement(tt.default.Item,{label:"\u6587\u4EF6\u5939\u4F4D\u7F6E",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"parent_id"},ie.createElement(at.Z,null)))),ie.createElement(Nn.Z,{onSave:Gt=>{ai(!0),ao("\u5904\u7406\u4E2D"),ya("/api/intelligent_imports/import.json",{html:Gt})},ref:ls}))},Ue=pe;var He=ct},35713:function(Ke,we,ae){"use strict";var ie=ae(67294),Pe=ae(71736),Fe=ae(84279),Oe=ae(36527),tt=ae(62844),Me=ae(67294);const _e=(0,ie.forwardRef)(({callback:ut,width:et,onChange:lt,disabled:Et,readOnly:rt,type:_t="",value:Ge="",style:te={}},ee)=>{const de=(0,ie.useRef)(),le=(0,ie.useRef)(),[pe,me]=(0,ie.useState)(0),[xe,be]=(0,ie.useState)(0),[Be,at]=(0,ie.useState)(!1),dt=()=>{var Tt=document.createElement("div");Tt.innerHTML=de.current.getValue();var Ct=Tt.innerText;return ut&&ut(Ct),Ct};(0,ie.useImperativeHandle)(ee,()=>({getData:dt}));const gt=Tt=>{Tt.preventDefault();const Ct=Tt.clientX-pe,Vt=Tt.clientY-xe;document.body.onmousemove=Rt=>{let nn=Rt.clientX-Ct,Cn=Rt.clientY-Vt;const un=document.getElementsByClassName("markdown-popup-form")[0],Nn=window.innerWidth-un.offsetWidth,wt=window.innerHeight-un.offsetHeight;nn=Math.max(0,Math.min(nn,Nn)),Cn=Math.max(0,Math.min(Cn,wt)),ft(Rt.clientX,Rt.clientY,Ct,Vt)&&(me(nn),be(Cn))},document.body.onmouseup=function(){document.body.onmousemove=null}},ft=(Tt,Ct,Vt,Rt)=>{const nn=document.body.clientHeight,Cn=document.body.clientWidth;return Tt<20&&Vt>Tt||Tt>Cn-20&&Vt<Tt||Ct<20&&Rt>Ct||Ct>nn-20&&Rt<Ct?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,ie.useEffect)(()=>{Be&&setTimeout(()=>{const Tt=document.getElementsByClassName("markdown-popup-form")[0],Ct=window.innerWidth/2-Tt.offsetWidth/2,Vt=window.innerHeight/2-Tt.offsetHeight/2;me(Ct),be(Vt)},0)},[Be]);const Nt=()=>{Et||rt||at(!0)};return Me.createElement("div",{style:te},Me.createElement("div",{style:{width:et||"100%",position:"relative"},className:`${Pe.Z.mathFillWrap} ${Et||rt?"cursorDefault":""}`,onClick:()=>Nt()},Me.createElement("math-field",{disabled:Et,locale:"zh_cn",class:`${Pe.Z.mathField} ${_t}`,readOnly:rt,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:de,style:{width:"100%",fontSize:Ge?18:14},value:Ge||""})),Me.createElement(tt.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:pe,top:xe},title:Me.createElement("div",{style:{cursor:"move"},onMouseDown:gt},"\u8F93\u5165\u516C\u5F0F"),open:Be,onOk:()=>{const Tt=le.current.getData();de.current.setValue(Tt),lt(Tt),at(!1)},onCancel:()=>{at(!1)},destroyOnClose:!0,className:"markdown-popup-form"},Me.createElement(Oe.Z,{value:Ge,ref:le,onChange:lt,showSaveButton:!1})))});we.Z=_e},36527:function(Ke,we,ae){"use strict";var ie=ae(67294),Pe=ae(71230),Fe=ae(15746),Oe=ae(55238),tt=ae(85804),Me=ae(65226),_e=ae(71736),ut=ae(84279),et=ae(67294);const lt=(0,ie.forwardRef)(({callback:Et,showSaveButton:rt,value:_t=""},Ge)=>{const te=(0,ie.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 "}]}]}],de=[{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}`}]}]}],le=xe=>{te.current.setValue(te.current.getValue()+" "+xe.value+" ")},pe=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:et.createElement(Pe.Z,{className:_e.Z.lists,gutter:[10,10]},ee.map((xe,be)=>et.createElement(Fe.Z,{flex:"110px",className:_e.Z.item},et.createElement("div",null,et.createElement(Me.Z,{value:`$$${xe.value}$$`}),xe.name),et.createElement("div",{className:_e.Z.children},xe.children.map((Be,at)=>et.createElement("div",{key:at},et.createElement("h1",null,Be.name),et.createElement(Pe.Z,{gutter:[10,10]},Be.data.map((dt,gt)=>et.createElement(Fe.Z,{key:gt,onClick:()=>le(dt),className:_e.Z.diamond},et.createElement(Me.Z,{value:"`$$"+dt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:et.createElement(Pe.Z,{className:_e.Z.lists,gutter:[10,10]},de.map((xe,be)=>et.createElement(Fe.Z,{flex:"110px",className:_e.Z.item},et.createElement("div",null,et.createElement(Me.Z,{value:"`$$"+xe.value+"$$`"}),xe.name),et.createElement("div",{className:_e.Z.children},xe.children.map((Be,at)=>et.createElement("div",{key:at},Be.name&&et.createElement("h1",null,Be.name),et.createElement(Pe.Z,{gutter:[10,10]},Be.data.map((dt,gt)=>et.createElement(Fe.Z,{key:gt,onClick:()=>le(dt),className:_e.Z.diamond},et.createElement(Me.Z,{value:"`$$"+dt.value+"$$`"}))))))))))}],me=()=>{var xe=document.createElement("div");xe.innerHTML=te.current.getValue();var be=xe.innerText;return Et&&Et(be),be};return(0,ie.useImperativeHandle)(Ge,()=>({getData:me})),et.createElement("div",{className:_e.Z.mathWrap},et.createElement(Oe.default,{defaultActiveKey:"1",items:pe}),et.createElement("math-field",{locale:"zh_cn",className:_e.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:te,style:{width:800,marginTop:30,fontSize:18}},_t||""),rt&&et.createElement("div",{className:_e.Z.button},et.createElement(tt.ZP,{size:"large",onClick:me,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});we.Z=lt},41188:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return rt}});var ie=ae(67294),Pe=ae(91773),Fe=ae(62844),Oe=ae(28802),tt=ae(55304),Me=ae(33170),_e={publicQuest:"publicQuest___iYvzo",publicQuestContent:"publicQuestContent___vgbKh",public_tips:"public_tips___UX0Dn",concat:"concat___wOfND"},ut=ae(99640),et=ae(67294),lt=(_t,Ge,te)=>new Promise((ee,de)=>{var le=xe=>{try{me(te.next(xe))}catch(be){de(be)}},pe=xe=>{try{me(te.throw(xe))}catch(be){de(be)}},me=xe=>xe.done?ee(xe.value):Promise.resolve(xe.value).then(le,pe);me((te=te.apply(_t,Ge)).next())}),rt=({type:_t="subject",open:Ge,onCancel:te,onOkClick:ee,subDisciplineId:de})=>{const[le]=Pe.default.useForm(),[pe,me]=(0,ie.useState)([]),[xe,be]=(0,ie.useState)(!1);(0,ie.useEffect)(()=>{},[]);const Be=()=>lt(void 0,null,function*(){if(_t){const at=yield(0,Me.ZP)("/api/disciplines.json",{method:"get",params:{source:_t}});me(at.disciplines||[])}});return et.createElement(Fe.default,{title:et.createElement("div",{style:{fontWeight:"bold"}},"\u65B0\u5EFA\u77E5\u8BC6\u70B9"),open:Ge,width:558,centered:!0,className:_e.publicQuest,onCancel:()=>{te(),le.resetFields()},onOk:()=>{le.validateFields().then(at=>lt(void 0,null,function*(){const dt=yield(0,Me.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:at==null?void 0:at.name,sub_discipline_id:de}});(dt==null?void 0:dt.status)===0&&ee({name:at==null?void 0:at.name,id:dt==null?void 0:dt.tag_discipline_id,public:!1,type:"personal"}),le.resetFields(),te()}))}},et.createElement("div",{className:_e.publicQuestContent},et.createElement("div",{className:_e.public_tips},et.createElement(tt.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"),et.createElement(Pe.default,{labelAlign:"left",form:le,colon:!1},et.createElement(Pe.default.Item,{label:"\u77E5\u8BC6\u70B9\u540D\u79F0",name:"name",rules:[{required:!0}]},et.createElement(Oe.default,{showCount:!0,maxLength:20,placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"}))),et.createElement(ut.Z,{open:xe,onCancel:()=>{be(!1)}})))}},26194:function(Ke,we,ae){"use strict";var ie=ae(67294),Pe=ae(4977),Fe=ae(85804),Oe=Object.defineProperty,tt=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,lt=(Ge,te,ee)=>te in Ge?Oe(Ge,te,{enumerable:!0,configurable:!0,writable:!0,value:ee}):Ge[te]=ee,Et=(Ge,te)=>{for(var ee in te||(te={}))ut.call(te,ee)&<(Ge,ee,te[ee]);if(_e)for(var ee of _e(te))et.call(te,ee)&<(Ge,ee,te[ee]);return Ge},rt=(Ge,te)=>tt(Ge,Me(te));const _t=({img:Ge,buttonProps:te={},styles:ee={},customText:de,ButtonText:le,ButtonClick:pe,Buttonclass:me,ButtonTwo:xe,imgStyles:be,loading:Be=!1,className:at=""})=>ie.createElement("section",{className:`tc animated fadeIn ${at}`,style:Et({color:"#999",margin:"100px auto",visibility:Be?"hidden":"visible"},ee)},ie.createElement("img",{src:Ge||Pe,style:rt(Et({},be),{pointerEvents:"none",userSelect:"none"})}),ie.createElement("p",{className:"mt20 font14"},de||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),le&&ie.createElement(Fe.ZP,Et({className:me,onClick:pe},te),le),xe&&xe);we.Z=_t},20819:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return me}});var ie=ae(67294),Pe={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Fe=ae(85804),Oe=ae(30153),tt=ae(36295),Me=ae(83062),_e=ae(28706),ut=ae(15835),et=ae(26194),lt=ae(11320),Et=ae(66540),rt=ae(67294),_t=Object.defineProperty,Ge=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,de=(xe,be,Be)=>be in xe?_t(xe,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):xe[be]=Be,le=(xe,be)=>{for(var Be in be||(be={}))te.call(be,Be)&&de(xe,Be,be[Be]);if(Ge)for(var Be of Ge(be))ee.call(be,Be)&&de(xe,Be,be[Be]);return xe},pe=(xe,be,Be)=>new Promise((at,dt)=>{var gt=Tt=>{try{Nt(Be.next(Tt))}catch(Ct){dt(Ct)}},ft=Tt=>{try{Nt(Be.throw(Tt))}catch(Ct){dt(Ct)}},Nt=Tt=>Tt.done?at(Tt.value):Promise.resolve(Tt.value).then(gt,ft);Nt((Be=Be.apply(xe,be)).next())}),me=({editOffice:xe="view",data:be,issaver:Be,onSaver:at,theme:dt,type:gt,filename:ft,monacoEditor:Nt,className:Tt,style:Ct,close:Vt,onClose:Rt,hasMask:nn,disabledDownload:Cn,onImgDimensions:un,showNodata:Nn,recordInfo:wt})=>{const[pt,Ie]=(0,ie.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[on,Bn]=(0,ie.useState)(""),[Zt,zn]=(0,ie.useState)(),_n=window.ENV==="build"?"/react/build":"",nr=location.host.startsWith("localhost")?lt.Z.PROXY_SERVER:lt.Z.API_SERVER,Wt=10*(1024*1024),ht=(0,ie.useRef)();be!=null&&be.startsWith("/api")&>!=="txt"&&(be=lt.Z.API_SERVER+be);const tn=it=>it.substring(it.lastIndexOf("/")+1).split(".").pop();ft&&Nt&&(Nt.filename=ft),(0,ie.useEffect)(()=>{var it,vt;const Ye=(vt=(it=document.cookie)==null?void 0:it.replace(/\s/g,""))==null?void 0:vt.split(";");Ye==null||Ye.map(It=>{let In=It.split("=");In[0]==="_educoder_session"&&Bn(In[1])})},[]),(0,ie.useEffect)(()=>{gt==="office"&&(be.indexOf("bigfilescdn.")>-1||be.indexOf("bigfiles1")>-1?zn({url:be,fileType:tn(be),model:be.indexOf("model=edit")?"edit":"view"}):ct())},[gt,be]);function an(it){return pe(this,null,function*(){it.data.type==="pdfdata"&&(at(it.data.data),window.removeEventListener("message",an,!1)),console.log("mess---:",it.data)})}const ct=()=>pe(void 0,null,function*(){console.log("data:",be);let it=be;be.startsWith("http")||(it=location.origin+it);let vt=new URL(it).pathname.split("/").pop();const Ye=yield(0,ut.gJ)({attachment_id:vt});Ye.url=nr+Ye.url,zn(Ye)}),Ue=()=>{if(be.startsWith("http")||be.startsWith("blob:")){He();return}(0,_e.Sv)(ft||"educoder",be,ft)},He=()=>{wt&&(0,Et.fc)({id:wt==null?void 0:wt.id,watch_type:1,course_id:wt==null?void 0:wt.course_id}),(0,_e.Nd)(ft||"educoder",decodeURIComponent(be))};return rt.createElement("div",{style:le({},Ct||{}),className:`${nn&&Pe.bgBlack} ${gt?Pe.wrp:"hide"}`},Vt&&rt.createElement("div",{className:Pe.close,ref:ht},!!un&&rt.createElement(Me.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>ht.current},rt.createElement("span",{onClick:()=>{Rt(),un()}},rt.createElement("i",{className:"icon-yulanpizhu"}))),!Cn&&rt.createElement(Me.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>ht.current},rt.createElement("span",{onClick:He},rt.createElement("i",{className:"icon-quxiaozhiding"}))),Be&&rt.createElement(Me.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>ht.current},rt.createElement("span",{className:"",onClick:()=>{const it=document.getElementById("pdfiframe");window.addEventListener("message",an,!1),setTimeout(()=>{it.contentWindow.postMessage("getData","*")},300)}},rt.createElement("i",{className:"icon-baocun"}))),rt.createElement(Me.Z,{title:"\u5173\u95ED",getPopupContainer:()=>ht.current},rt.createElement("span",{className:"",onClick:()=>{Rt()}},rt.createElement("i",{className:"icon-guanbi1"})))),rt.createElement("div",{className:`${Pe[Tt]} ${Tt} ${Pe.monaco} ${gt==="txt"?"show":"hide"}`},gt==="txt"&&rt.createElement(rt.Fragment,null,rt.createElement(tt.ZP,le({},Nt)))),gt==="audio"&&rt.createElement("audio",{src:`${(be==null?void 0:be.indexOf("http://"))>-1||(be==null?void 0:be.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${be}`,autoPlay:!0}),gt==="video"&&rt.createElement(rt.Fragment,null,(be==null?void 0:be.indexOf("http"))>-1?rt.createElement("video",{controls:!0,src:`${be}`,autoPlay:!0}):rt.createElement("video",{controls:!0,src:`data:video/mp4;base64,${be}`,autoPlay:!0})),gt==="office"&&Zt&&rt.createElement("iframe",{src:`${_n}/office.html?key=${Zt.key}&url=${btoa(Zt.url)}&callbackUrl=${nr+(Zt.callbackUrl||"")}&fileType=${Zt.fileType}&title=${Zt.title||""}&model=${xe}&officeServer=${lt.Z.ONLYOFFICE}&disabledDownload=${!!Cn}`}),gt==="html"&&rt.createElement("iframe",{src:be+"&disposition=inline"}),gt==="pdf"&&rt.createElement("iframe",{id:"pdfiframe",src:`${_n}/js/pdfview/index.html?filename=${ft||"educoder.pdf"}&url=${encodeURIComponent(be)}&disabledDownload=${!!Cn}&model=${xe}`}),gt==="image"&&rt.createElement("img",{src:`${(be==null?void 0:be.indexOf("http://"))>-1||(be==null?void 0:be.indexOf("https://"))>-1?"":"data:image/png;base64,"}${be}`}),(gt==="other"||gt==="download")&&rt.createElement(rt.Fragment,null,Nn?rt.createElement(et.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:rt.createElement(Fe.ZP,{icon:rt.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Ue,disabled:Cn},"\u4E0B\u8F7D")}):rt.createElement(Fe.ZP,{type:"primary",size:"middle",onClick:Ue,disabled:Cn},rt.createElement(Oe.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},3830:function(Ke,we,ae){"use strict";ae.d(we,{Q:function(){return et},Z:function(){return Et}});var ie=ae(67294),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"},Fe=ae(94184),Oe=ae.n(Fe),tt=ae(62844),Me=ae(2453),_e=ae(84567),ut=(rt,_t,Ge)=>new Promise((te,ee)=>{var de=me=>{try{pe(Ge.next(me))}catch(xe){ee(xe)}},le=me=>{try{pe(Ge.throw(me))}catch(xe){ee(xe)}},pe=me=>me.done?te(me.value):Promise.resolve(me.value).then(de,le);pe((Ge=Ge.apply(rt,_t)).next())});const et=({title:rt="\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00",dataSource:_t=[],visible:Ge,setVisible:te,tip:ee,onOk:de})=>{const[le,pe]=(0,ie.useState)([]),[me,xe]=(0,ie.useState)(!1);return(0,ie.useEffect)(()=>{Ge&&pe(_t)},[Ge]),ie.createElement(tt.default,{centered:!0,open:Ge,title:rt,confirmLoading:me,width:564,onOk:()=>ut(void 0,null,function*(){if(!le.length){Me.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}xe(!0),yield de(le),xe(!1)}),onCancel:()=>te(!1)},!!ee&&ie.createElement("div",{className:"c-grey-666 font16 mb10"},ee),ie.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},ie.createElement(_e.default.Group,{value:le,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:be=>{pe(be)}})))};var Et=({title:rt="\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00",className:_t,style:Ge={},onEdit:te,dataSource:ee=[]})=>{const de={C:ie.createElement("div",{className:Pe.c},"C"),"C++":ie.createElement("div",{className:Pe.cpp},"C++"),Java:ie.createElement("div",{className:Pe.java},"Java"),Python:ie.createElement("div",{className:Pe.python},"Python")};return ie.createElement("div",{className:Oe()(Pe.tags,_t),style:Ge},!!rt&&ie.createElement("div",{className:Pe.text},rt),ie.createElement("div",{className:Pe.tagWrap},ee==null?void 0:ee.map(le=>ie.createElement(ie.Fragment,{key:le},de[le]))),!!te&&ie.createElement("div",{onClick:te,className:`iconfont icon-bianji_Hover ${Pe.edit}`}))}},15312:function(Ke,we,ae){"use strict";ae.d(we,{t:function(){return He}});var ie=ae(67294),Pe=ae(28802),Fe=ae(91773),Oe=ae(62844),tt=ae(71230),Me=ae(15746),_e=ae(37720),ut=ae(88044),et=ae(98813),lt=ae(41307),Et=ae(35973),rt=ae(52654),_t=ae(2453),Ge=ae(85804),te=ae(74330),ee=ae(19575),de={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"},le=ae(33170),pe=ae(88742),me=ae(35567),xe=ae(74855),be=ae(96707),Be=ae(67294),at=Object.defineProperty,dt=Object.defineProperties,gt=Object.getOwnPropertyDescriptors,ft=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,Tt=Object.prototype.propertyIsEnumerable,Ct=(it,vt,Ye)=>vt in it?at(it,vt,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):it[vt]=Ye,Vt=(it,vt)=>{for(var Ye in vt||(vt={}))Nt.call(vt,Ye)&&Ct(it,Ye,vt[Ye]);if(ft)for(var Ye of ft(vt))Tt.call(vt,Ye)&&Ct(it,Ye,vt[Ye]);return it},Rt=(it,vt)=>dt(it,gt(vt)),nn=(it,vt,Ye)=>new Promise((It,In)=>{var Kn=er=>{try{Rn(Ye.next(er))}catch(yn){In(yn)}},dr=er=>{try{Rn(Ye.throw(er))}catch(yn){In(yn)}},Rn=er=>er.done?It(er.value):Promise.resolve(er.value).then(Kn,dr);Rn((Ye=Ye.apply(it,vt)).next())}),un=({buttonProps:it,buttonText:vt,form:Ye,hackIdentifier:It="",answerKey:In,data:Kn})=>{const[dr,Rn]=(0,ie.useState)(!1),[er,yn]=(0,ie.useState)(!1),[Er,sr]=(0,ie.useState)(!1),[Hr,An]=(0,ie.useState)({}),[yi,ri]=(0,ie.useState)(""),[bn,Xe]=(0,ie.useState)(""),Ji=(0,ie.useRef)(It),Qn=(0,ie.useRef)(""),Sn=(0,ie.useRef)(!1);(0,ie.useEffect)(()=>{Er&&hi()},[Er]),(0,ie.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const to=()=>new Date().getTime(),Ki=Kn==null?void 0:Kn.code,Zr=()=>{var Hi,ao;let ui=Ki?Kn==null?void 0:Kn.code:(Hi=Ye.getFieldValue("hack_codes"))==null?void 0:Hi.code,ai=Ki?Kn==null?void 0:Kn.answer_content:Ye.getFieldValue(In),Ni=Ki?Kn==null?void 0:Kn.input:(ao=Ye.getFieldValue("hack_sets"))==null?void 0:ao.input;ai==null||ai.forEach(ir=>{const We=ir.value||ir.answer_text||"";ui=ui.replace(/(@▁@|@▁▁@)/,We)}),Xe(Ni),ri(ui),An({}),sr(!0)},hi=()=>nn(void 0,null,function*(){var Hi,ao,ui,ai;const Ni=to(),ir=Ki?Kn==null?void 0:Kn.time_limit:(Hi=Ye.getFieldsValue())==null?void 0:Hi.hack.time_limit,We=Ki?(ao=Kn==null?void 0:Kn.answer_content)==null?void 0:ao.length:(ai=(ui=Ye.getFieldsValue())==null?void 0:ui.standard_answers)==null?void 0:ai.length;Rn(!0),yield(0,pe.bM)(Qn.current,{test_hack_code:yi,test_input:bn});function rr(){return nn(this,null,function*(){const{status:ur,data:hr}=yield(0,pe.rX)(Qn.current,"submit"),jr=to()-Ni>(ir+3)*1e3*We;if(Sn.current){if(jr){_t.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),Rn(!1);return}if(ur===0){Rn(!1),An(Rt(Vt({},hr),{showText:!0}));return}setTimeout(rr,1e3)}})}rr()}),Ir=()=>nn(void 0,null,function*(){var Hi,ao,ui,ai,Ni,ir,We;if(!Kn){try{yield Ye.validateFields()}catch(Or){(ui=(ao=(Hi=Or==null?void 0:Or.errorFields)==null?void 0:Hi[0])==null?void 0:ao.name)!=null&&ui.includes("standard_answers")?_t.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):_t.ZP.error(Or.errorFields[0].errors[0]),Ye.scrollToField(Or.errorFields[0].name,{behavior:"smooth",block:"center"});return}yn(!0);let ur="";const hr=Ye.getFieldsValue();Ji.current?ur=yield(0,le.ZP)(`/api/problems/${Ji.current}.json`,{method:"put",body:Rt(Vt({},hr),{hack:Rt(Vt({},hr==null?void 0:hr.hack),{sub_discipline_id:(We=(ir=hr==null?void 0:hr.hack)==null?void 0:ir.sub_discipline_id)==null?void 0:We[1],difficult:hr.difficulty,item_banks_group_id:hr.item_banks_group_id}),hack_codes:Rt(Vt({},hr.hack_codes),{code:ee.Base64.encode(hr.hack_codes.code)}),update_hack_sets:[Vt({},hr.hack_sets)],is_blank:!0,item_type:"BPROGRAM"})}):(ur=yield(0,le.ZP)("/api/problems.json",{method:"post",body:Rt(Vt({},hr),{hack:Rt(Vt({},hr==null?void 0:hr.hack),{sub_discipline_id:(Ni=(ai=hr==null?void 0:hr.hack)==null?void 0:ai.sub_discipline_id)==null?void 0:Ni[1],difficult:hr.difficulty,item_banks_group_id:hr.item_banks_group_id}),hack_codes:Rt(Vt({},hr.hack_codes),{code:ee.Base64.encode(hr.hack_codes.code)}),hack_sets:[Vt({},hr.hack_sets)],is_blank:!0,item_type:"BPROGRAM"})}),Ji.current=ur==null?void 0:ur.identifier,sessionStorage.projectFill=ur==null?void 0:ur.identifier)}const rr=yield(0,le.ZP)(`/api/problems/${Ji.current}/start.json`,{method:"get"});if((rr==null?void 0:rr.status)===0){Qn.current=rr==null?void 0:rr.identifier,Sn.current=!0,yn(!1),Zr();return}yn(!1)}),fn=Hi=>{const{status:ao,error_msg:ui,execute_time:ai,output:Ni,input:ir,expected_output:We}=Hi;let rr=null;switch(ao){case be.h.OK:rr=Be.createElement(Be.Fragment,null,Be.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",ai/1e3,"\u79D2"),Be.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case be.h.NOMATCH:rr=Be.createElement(Be.Fragment,null,Be.createElement("div",null,"\u8F93\u5165\uFF1A"),Be.createElement("pre",{style:{fontFamily:"initial"}},ir),Be.createElement("div",null,"\u8F93\u51FA\uFF1A"),Be.createElement("pre",{style:{fontFamily:"initial"}},Ni&&ee.Base64.decode(Ni)),Be.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),Be.createElement("pre",{style:{fontFamily:"initial"}},We&&ee.Base64.decode(We)));break;case be.h.EXECUTEFAILURE:rr=Be.createElement(Be.Fragment,null,Be.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",Be.createElement("pre",null,ir)),Be.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),Be.createElement("pre",{className:"error"},ee.Base64.decode(ui)));break;case be.h.COMPILEFAILURE:rr=Be.createElement(Be.Fragment,null,Be.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",Be.createElement("pre",null,ir)),Be.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),Be.createElement("pre",{className:"error"},ee.Base64.decode(ui)));break;case be.h.PODFAILURE:rr=Be.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case be.h.TIMEOUT:rr=Be.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return Be.createElement(Be.Fragment,null," ",rr," ")};return Be.createElement("div",null,Be.createElement(Ge.ZP,Rt(Vt({loading:er},it),{onClick:Ir}),vt),Be.createElement(Oe.default,{open:Er,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:dr,cancelButtonProps:{style:{display:"none"}},onOk:()=>hi(),onCancel:()=>{Sn.current=!1,sr(!1)}},Be.createElement("div",{className:de.result},Be.createElement("div",{className:de.left},Be.createElement("div",{className:"mb20"},Be.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!Kn&&Be.createElement(xe.CopyToClipboard,{text:yi,onCopy:()=>_t.ZP.success("\u590D\u5236\u6210\u529F")},Be.createElement("span",{style:{float:"right"},className:"current c-light-primary"},Be.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),Be.createElement(me.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:yi,onChange:Hi=>ri(Hi)})),Be.createElement("div",{className:de.right},Be.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),Be.createElement("div",{className:de.box},Be.createElement("div",{className:de.li},Be.createElement(Pe.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:bn,onChange:Hi=>Xe(Hi.target.value),bordered:!1,style:{height:180}}))),Be.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),Be.createElement("div",{className:de.box},Be.createElement(te.Z,{spinning:dr,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},Be.createElement("div",{className:de.li,style:{height:196,overflow:"auto",padding:10}},fn(Hr))))))))},Nn=ae(55304),wt=ae(67294),pt=Object.defineProperty,Ie=Object.defineProperties,on=Object.getOwnPropertyDescriptors,Bn=Object.getOwnPropertySymbols,Zt=Object.prototype.hasOwnProperty,zn=Object.prototype.propertyIsEnumerable,_n=(it,vt,Ye)=>vt in it?pt(it,vt,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):it[vt]=Ye,nr=(it,vt)=>{for(var Ye in vt||(vt={}))Zt.call(vt,Ye)&&_n(it,Ye,vt[Ye]);if(Bn)for(var Ye of Bn(vt))zn.call(vt,Ye)&&_n(it,Ye,vt[Ye]);return it},Ft=(it,vt)=>Ie(it,on(vt)),Wt=(it,vt)=>{var Ye={};for(var It in it)Zt.call(it,It)&&vt.indexOf(It)<0&&(Ye[It]=it[It]);if(it!=null&&Bn)for(var It of Bn(it))vt.indexOf(It)<0&&zn.call(it,It)&&(Ye[It]=it[It]);return Ye};const{TextArea:ht}=Pe.default,tn=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],an=({value:it,onChange:vt})=>wt.createElement(Switch,{checked:it,onChange:Ye=>{vt(Ye)}}),ct="@\u2581@",Ue="@\u2581\u2581@",He=({questionTitlePlaceholder:it,form:vt,scoreByBlank:Ye=!1,hackidentifier:It,answerKey:In})=>{const[Kn,dr]=(0,ie.useState)(!1),[Rn,er]=(0,ie.useState)(!1),Er=(0,Et.useParams)().type==="edit",sr=(Qn,Sn)=>{const to=Sn.line;let Ki=0;for(let hi=0;hi<to;hi++)Ki+=Qn.getLine(hi).split(ct).length-1;for(let hi=0;hi<to;hi++)Ki+=Qn.getLine(hi).split(Ue).length-1;const Zr=Qn.getLine(to).substring(0,Sn.ch);return Ki+=Zr.split(ct).length-1,Ki+=Zr.split(Ue).length-1,Ki},Hr=(Qn,Sn,to,Ki)=>{const Zr=Qn.getRange(Sn.from,Sn.to);let hi=0;if(Sn.text.forEach(Ir=>{hi+=Ir.split(ct).length-1}),Sn.text.forEach(Ir=>{hi+=Ir.split(Ue).length-1}),Sn.origin!=="setValue"){if(Zr&&(Zr.indexOf(ct)!==-1||Zr.indexOf(Ue)!==-1)){const Ir=Zr.split(ct).length-1+Zr.split(Ue).length-1,fn=sr(Qn,Sn.from);if(console.log(`\u5220\u9664${Ir}\u4E2A\uFF0C \u524D\u9762\u6709${fn}\u4E2A\uFF0C\u65B0\u589E${hi}\u4E2A`),Ir>1){const Hi=Array.from({length:Ir},(ao,ui)=>fn+ui);Ki(Hi)}else Ki(fn)}else if(hi>0){const Ir=sr(Qn,Sn.from);console.log(`\u65B0\u589E${hi}\u4E2A\uFF0C\u4E4B\u524D\u6709${Ir}\u4E2A`),to(hi,Ir)}}},An=()=>{const Qn=vt.getFieldValue(In);vt.setFieldsValue({[In]:Qn==null?void 0:Qn.map((Sn,to)=>Ft(nr({},Sn),{position:to+1}))})},yi=(0,ie.useRef)(),ri=(Qn,Sn)=>{for(let to=0;to<Qn;to++)yi.current({position:null,answer_text:""},Sn+to);An()},bn=(0,ie.useRef)(),Xe=Qn=>{bn.current(Qn),An()},Ji=Fe.default.useWatch(In,vt);return wt.createElement("div",{className:rt.Z.wrap},wt.createElement(Fe.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},wt.createElement(lt.h,{scrollId:"name",watch:!0,height:140})),wt.createElement("div",{className:rt.Z.questionTitleEditorWrap},wt.createElement(Fe.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},wt.createElement(lt.h,{scrollId:"name",watch:!0,height:400,showNullProgramButton:!0,onChange:(Qn,Sn)=>{const to=vt.getFieldValue(In);console.log("--preAnswerData",to,Sn),vt.setFieldsValue({[In]:to==null?void 0:to.map((Ki,Zr)=>{var hi;return Ft(nr({},Ki),{position:Zr+1,multi_line:(hi=Sn==null?void 0:Sn[Zr])==null?void 0:hi.multiLine})})})},placeholder:it,onCMBeforeChange:(Qn,Sn)=>{Hr(Qn,Sn,ri,Xe)}}))),wt.createElement(Fe.default.List,{name:In,rules:[{validator(Qn,Sn){if(!(Sn!=null&&Sn.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const to of Sn){const{answer_text:Ki}=to||{};if((Ki==null?void 0:Ki.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Qn,{add:Sn,remove:to},{errors:Ki})=>(yi.current=Sn,bn.current=to,wt.createElement(wt.Fragment,null,wt.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},wt.createElement(Fe.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),wt.createElement("div",{onClick:()=>{Oe.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:wt.createElement("div",null,wt.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",wt.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),wt.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"}},wt.createElement(Nn.Z,{style:{marginRight:3,color:"#3061D0"}}),wt.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),Qn.map((Zr,hi)=>{var Ir=Zr,{key:fn,name:Hi}=Ir,ao=Wt(Ir,["key","name"]),ui,ai;return wt.createElement(tt.Z,{className:"mb20",key:fn,align:"middle",wrap:!1},wt.createElement(Me.Z,{flex:"0 0 auto",className:`${rt.Z.blankIndex}`},"\u586B\u7A7A\u9879",hi+1),wt.createElement(Me.Z,{flex:1},wt.createElement(tt.Z,{align:"top",justify:"space-between",wrap:!1},wt.createElement(Me.Z,null,wt.createElement(Fe.default.Item,Ft(nr({},ao),{name:[Hi,"answer_text"],noStyle:!0}),(ui=Ji==null?void 0:Ji[Hi])!=null&&ui.multi_line||(ai=Ji==null?void 0:Ji[Hi])!=null&&ai.multiLine?wt.createElement(ht,{spellCheck:!1,style:{marginLeft:10,width:550}}):wt.createElement(Pe.default,{style:{marginLeft:10,width:550},className:rt.Z.blankInput,size:"large",maxLength:1e3,onBlur:Ni=>{}}))),Ye&&wt.createElement(Me.Z,{flex:"224px"},wt.createElement(Fe.default.Item,Ft(nr({},ao),{name:[Hi,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),wt.createElement(_e.Z,{size:"large",className:rt.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),wt.createElement("div",{onClick:()=>dr(!0)},wt.createElement(Fe.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},wt.createElement(lt.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Kn}))),wt.createElement(Fe.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"}]},wt.createElement(ut.default,{size:"large"},tn.map(Qn=>wt.createElement(ut.default.Option,{key:Qn.title,value:Qn.key}," ",Qn.title)))),wt.createElement(Fe.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},wt.createElement(Fe.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},wt.createElement(_e.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),wt.createElement("span",{className:"ml10 font14"},"\u79D2")),wt.createElement(Fe.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"}]},wt.createElement(et.ZP.Group,{style:{marginTop:-10}},wt.createElement(et.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),wt.createElement(et.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),wt.createElement(et.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),wt.createElement(Fe.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),wt.createElement("div",{style:{background:"#F6F7F9",padding:15}},wt.createElement(Fe.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},wt.createElement(ht,{rows:4})),wt.createElement(Fe.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},wt.createElement(ht,{rows:4}))),wt.createElement(un,{form:vt,answerKey:In,hackIdentifier:It,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:wt.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"}}}))}},11776:function(Ke,we,ae){"use strict";ae.d(we,{u:function(){return Be}});var ie=ae(67294),Pe=ae(71230),Fe=ae(15746),Oe=ae(83062),tt=ae(91773),Me=ae(52654),_e=ae(40043),ut=ae(24018),et=ae(41307),lt=ae(67294),Et=Object.defineProperty,rt=Object.defineProperties,_t=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,de=(at,dt,gt)=>dt in at?Et(at,dt,{enumerable:!0,configurable:!0,writable:!0,value:gt}):at[dt]=gt,le=(at,dt)=>{for(var gt in dt||(dt={}))te.call(dt,gt)&&de(at,gt,dt[gt]);if(Ge)for(var gt of Ge(dt))ee.call(dt,gt)&&de(at,gt,dt[gt]);return at},pe=(at,dt)=>rt(at,_t(dt)),me=(at,dt)=>{var gt={};for(var ft in at)te.call(at,ft)&&dt.indexOf(ft)<0&&(gt[ft]=at[ft]);if(at!=null&&Ge)for(var ft of Ge(at))dt.indexOf(ft)<0&&ee.call(at,ft)&&(gt[ft]=at[ft]);return gt};const xe=["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"],be=({value:at,onChange:dt,choiceTextKey:gt,answerKey:ft,index:Nt,isEdit:Tt,setInputActive:Ct,form:Vt,choiceOptionsPath:Rt,allowChangeMode:nn,showAddIcon:Cn,addItem:un,deleteItem:Nn})=>{console.log(at,"value");const wt=(at==null?void 0:at[ft])===1,pt=()=>{const on=Vt.getFieldValue(Rt);Vt.setFieldValue(Rt,on.map(Bn=>pe(le({},Bn),{[ft]:0})))},Ie=()=>{wt?dt(pe(le({},at),{[ft]:0})):(nn||pt(),dt(pe(le({},at),{[ft]:1})))};return lt.createElement(Pe.Z,{className:Me.Z.choiceWrap,align:"middle",wrap:!1},lt.createElement(Fe.Z,{onClick:Ie,className:`${Me.Z.choiceIndex} ${wt?Me.Z.activeAnswer:""}`},xe[Nt]),lt.createElement(Fe.Z,{flex:1,className:`${Me.Z.editorWrap} ml15`,onClick:Ct},lt.createElement(et.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Tt,value:at==null?void 0:at[gt],onChange:on=>{dt(pe(le({},at),{[gt]:on}))}})),lt.createElement(Fe.Z,{flex:"0 0 auto",className:"ml15"},lt.createElement("div",{onClick:Ie,className:`${Me.Z.setAnswerBtn} ${wt?Me.Z.activeAnswer:""}`},wt?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),lt.createElement(Fe.Z,{className:Me.Z.actionWrapper},lt.createElement(Oe.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},lt.createElement(_e.Z,{className:Me.Z.addIcon,onClick:un,style:{visibility:Cn?"visible":"hidden"}})),lt.createElement(Oe.Z,{title:"\u5220\u9664"},lt.createElement(ut.Z,{className:Me.Z.deleteIcon,onClick:Nn,style:{visibility:Nt>1?"visible":"hidden"}}))))},Be=({questionTitlePlaceholder:at,titleKey:dt,choiceKey:gt,analysisKey:ft,choiceTextKey:Nt,answerKey:Tt,choiceOptionsPath:Ct,allowChangeMode:Vt=!0,form:Rt,showAnalysis:nn=!0})=>{const[Cn,un]=(0,ie.useState)(),[Nn,wt]=(0,ie.useState)(!1);return lt.createElement("div",{className:Me.Z.wrap},lt.createElement("div",{className:Me.Z.questionTitleEditorWrap},lt.createElement(tt.default.Item,{label:"\u9898\u5E72",name:dt,labelCol:{span:24},rules:[{required:!0}]},lt.createElement(et.h,{scrollId:Array.isArray(dt)?dt.join("_"):`${dt}`,watch:!0,height:140,placeholder:at}))),lt.createElement(tt.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),lt.createElement(tt.default.List,{name:gt,rules:[{validator(pt,Ie){const on=Ie.some(Zt=>Zt[Tt]===1),Bn=Ie.findIndex(Zt=>{var zn;return((zn=Zt[Nt])==null?void 0:zn.length)<=0});return Bn!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${xe[Bn]}\u9009\u9879\u7684\u5185\u5BB9`)):on?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(pt,{add:Ie,remove:on})=>lt.createElement("div",{id:Array.isArray(Ct)?Ct.join("_"):`${Ct}`},pt.map((Bn,Zt)=>{var zn=Bn,{key:_n,name:nr}=zn,Ft=me(zn,["key","name"]);const Wt=Cn===_n,ht=()=>{un(_n)},tn=Zt<7&&Zt===pt.length-1,an=()=>Ie({[Nt]:"",[Tt]:0}),ct=()=>on(nr);return lt.createElement(tt.default.Item,pe(le({},Ft),{key:_n,name:nr,className:Me.Z.choiceListWrap,rules:[{validator(Ue,He){return He!=null&&He.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${xe[Zt]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),lt.createElement(be,{choiceTextKey:Nt,answerKey:Tt,index:Zt,isEdit:Wt,setInputActive:ht,form:Rt,choiceOptionsPath:Ct,allowChangeMode:Vt,showAddIcon:tn,addItem:an,deleteItem:ct}))}),pt.length<8&<.createElement("div",{className:`${Me.Z.addBtn} mb30`,onClick:()=>Ie({[Nt]:"",[Tt]:0})},"\u6DFB\u52A0\u9009\u9879"))),nn&<.createElement("div",{onClick:()=>wt(!0)},lt.createElement(tt.default.Item,{name:ft,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},lt.createElement(et.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Nn}))))}},81580:function(Ke,we,ae){"use strict";ae.d(we,{u:function(){return Vt}});var ie=ae(67294),Pe=ae(62844),Fe=ae(71230),Oe=ae(15746),tt=ae(28802),Me=ae(83062),_e=ae(59637),ut=ae(91773),et=ae(98813),lt=ae(37720),Et=ae(41307),rt=ae(24018),_t=ae(17663),Ge=ae(52654),te=ae(35713),ee=ae(67294),de=Object.defineProperty,le=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,Be=(Rt,nn,Cn)=>nn in Rt?de(Rt,nn,{enumerable:!0,configurable:!0,writable:!0,value:Cn}):Rt[nn]=Cn,at=(Rt,nn)=>{for(var Cn in nn||(nn={}))xe.call(nn,Cn)&&Be(Rt,Cn,nn[Cn]);if(me)for(var Cn of me(nn))be.call(nn,Cn)&&Be(Rt,Cn,nn[Cn]);return Rt},dt=(Rt,nn)=>le(Rt,pe(nn)),gt=(Rt,nn)=>{var Cn={};for(var un in Rt)xe.call(Rt,un)&&nn.indexOf(un)<0&&(Cn[un]=Rt[un]);if(Rt!=null&&me)for(var un of me(Rt))nn.indexOf(un)<0&&be.call(Rt,un)&&(Cn[un]=Rt[un]);return Cn};const ft=({value:Rt,onChange:nn})=>{const Cn=Nn=>{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:Ge.Z.modal,onOk:()=>{const wt=[...Rt];wt.splice(Nn,1),nn(wt)}})},un=()=>{const Nn=[...Rt];Nn.push(""),nn(Nn)};return ee.createElement(Fe.Z,{className:"ml20"},ee.createElement(Oe.Z,{flex:1},Rt==null?void 0:Rt.map((Nn,wt)=>ee.createElement(Fe.Z,{key:`${Nn}_${wt}`,className:"mb20"},ee.createElement(tt.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Nn,autoSize:{maxRows:3},maxLength:1e3,onBlur:pt=>{const Ie=[...Rt],on=pt.target.value.trim();Ie[wt]=on,nn(Ie)}}),ee.createElement(Me.Z,{title:"\u5220\u9664"},ee.createElement(rt.Z,{className:Ge.Z.deleteIcon,style:{marginLeft:15,visibility:wt>0?"visible":"hidden"},onClick:()=>Cn(wt)}))))),ee.createElement(Oe.Z,null,ee.createElement("div",{className:`${Ge.Z.addBtn}`,onClick:()=>{un()}},"\u65B0\u589E\u7B54\u6848")))},Nt=({value:Rt,onChange:nn})=>{const Cn=Nn=>{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:Ge.Z.modal,onOk:()=>{const wt=[...Rt];wt.splice(Nn,1),nn(wt)}})},un=()=>{const Nn=[...Rt];Nn.push(""),nn(Nn)};return ee.createElement(Fe.Z,{className:"ml20"},ee.createElement(Oe.Z,{flex:1},Rt==null?void 0:Rt.map((Nn,wt)=>ee.createElement(Fe.Z,{key:`${Nn}_${wt}`,align:"middle",className:"mb20"},ee.createElement(te.Z,{value:Nn,style:{flex:1},onChange:pt=>{const Ie=[...Rt];Ie[wt]=pt,nn(Ie)}}),ee.createElement(Me.Z,{title:"\u5220\u9664"},ee.createElement(rt.Z,{className:Ge.Z.deleteIcon,style:{marginLeft:15,visibility:wt>0?"visible":"hidden"},onClick:()=>Cn(wt)}))))),ee.createElement(Oe.Z,null,ee.createElement("div",{className:`${Ge.Z.addBtn}`,onClick:()=>{un()}},"\u65B0\u589E\u7B54\u6848")))},Tt=({value:Rt=!0,onChange:nn})=>ee.createElement(_e.Z,{checked:!Rt,onChange:Cn=>{nn(!Cn)}}),Ct="\u2581",Vt=({questionTitlePlaceholder:Rt,form:nn,scoreByBlank:Cn=!1,answerKey:un})=>{const[Nn,wt]=(0,ie.useState)(!1),pt=(Ft,Wt)=>{const ht=Wt.line;let tn=0;for(let ct=0;ct<ht;ct++)tn+=Ft.getLine(ct).split(Ct).length-1;const an=Ft.getLine(ht).substring(0,Wt.ch);return tn+=an.split(Ct).length-1,tn},Ie=(Ft,Wt,ht,tn)=>{const an=Ft.getRange(Wt.from,Wt.to);let ct=0;if(Wt.text.forEach(Ue=>{ct+=Ue.split(Ct).length-1}),Wt.origin!=="setValue"){if(an&&an.indexOf(Ct)!==-1){const Ue=an.split(Ct).length-1,He=pt(Ft,Wt.from);if(console.log(`\u5220\u9664${Ue}\u4E2A\uFF0C \u524D\u9762\u6709${He}\u4E2A\uFF0C\u65B0\u589E${ct}\u4E2A`),Ue>1){const it=Array.from({length:Ue},(vt,Ye)=>He+Ye);tn(it)}else tn(He)}else if(ct>0){const Ue=pt(Ft,Wt.from);console.log(`\u65B0\u589E${ct}\u4E2A\uFF0C\u4E4B\u524D\u6709${Ue}\u4E2A`),ht(ct,Ue)}}},on=()=>{const Ft=nn.getFieldValue(un);nn.setFieldsValue({[un]:Ft.map((Wt,ht)=>dt(at({},Wt),{position:ht+1}))})},Bn=(0,ie.useRef)(),Zt=(Ft,Wt)=>{for(let ht=0;ht<Ft;ht++)Bn.current({position:null,answer_text:[""],model:1},Wt+ht);on()},zn=(0,ie.useRef)(),_n=Ft=>{zn.current(Ft),on()},nr=ut.default.useWatch(un,nn);return ee.createElement("div",{className:Ge.Z.wrap},ee.createElement("div",{className:Ge.Z.questionTitleEditorWrap},ee.createElement(ut.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},ee.createElement(Et.h,{scrollId:"name",watch:!0,height:140,placeholder:Rt,showNullButton:!0,onCMBeforeChange:(Ft,Wt)=>{Ie(Ft,Wt,Zt,_n)}}))),ee.createElement(ut.default.List,{name:un,rules:[{validator(Ft,Wt){if(!(Wt!=null&&Wt.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const ht of Wt){const{answer_text:tn}=ht||{};if(tn!=null&&tn.some(an=>(an==null?void 0:an.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Ft,{add:Wt,remove:ht},{errors:tn})=>(Bn.current=Wt,zn.current=ht,ee.createElement(ee.Fragment,null,ee.createElement(ut.default.Item,{label:ee.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(Ft!=null&&Ft.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}}),Ft.map((an,ct)=>{var Ue=an,{key:He,name:it}=Ue,vt=gt(Ue,["key","name"]),Ye,It;return ee.createElement("div",{style:{marginBottom:10},key:He},ee.createElement(Fe.Z,{className:"mb20",align:"middle",wrap:!1},ee.createElement(Oe.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${Ge.Z.blankIndex}`},"\u586B\u7A7A\u9879",ct+1),ee.createElement(ut.default.Item,dt(at({},vt),{name:[it,"model"],noStyle:!0}),ee.createElement(et.ZP.Group,{onChange:()=>{const In=nn.getFieldValue(un);nn.setFieldsValue({[un]:In.map((Kn,dr)=>dt(at({},Kn),{answer_text:it===dr?[""]:Kn.answer_text}))})}},ee.createElement(et.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",ee.createElement(Me.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},ee.createElement(_t.Z,null))),ee.createElement(et.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",ee.createElement(Me.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},ee.createElement(_t.Z,null)))))),ee.createElement(Fe.Z,{style:{marginLeft:20},align:"middle",wrap:!1},ee.createElement(Oe.Z,{flex:1},ee.createElement(Fe.Z,{align:"top",justify:"space-between",wrap:!1},ee.createElement(Oe.Z,{flex:1},ee.createElement(ut.default.Item,dt(at({},vt),{name:[it,"answer_text"],noStyle:!0}),((It=(Ye=nn.getFieldValue(un))==null?void 0:Ye[it])==null?void 0:It.model)===1?ee.createElement(ft,null):ee.createElement(Nt,null))),Cn&&ee.createElement(Oe.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},ee.createElement(ut.default.Item,dt(at({},vt),{name:[it,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Ge.Z.blankInputNumberWrapper}),ee.createElement(lt.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),ee.createElement(ut.default.Item,dt(at({},vt),{name:[it,"position"],noStyle:!0}),ee.createElement(tt.default,{type:"hidden"})))))})))),ee.createElement(Fe.Z,{align:"middle"},ee.createElement(ut.default.Item,{name:"downcase",valuePropName:"checked"},ee.createElement(_e.Z,null)),ee.createElement(Oe.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),ee.createElement(Fe.Z,{align:"middle"},ee.createElement(ut.default.Item,{name:"no_space",valuePropName:"checked"},ee.createElement(_e.Z,null)),ee.createElement(Oe.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(nr==null?void 0:nr.length)>1&&ee.createElement(Fe.Z,{align:"middle",className:(nr==null?void 0:nr.length)>1?"mb30":`${Ge.Z.hide}`},ee.createElement(ut.default.Item,{name:"is_ordered"},ee.createElement(Tt,null)),ee.createElement(Oe.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:()=>wt(!0)},ee.createElement(ut.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ee.createElement(Et.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Nn}))))}},66495:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return me}});var ie=ae(67294),Pe=ae(71230),Fe=ae(15746),Oe=ae(91773),tt=ae(52654),Me=ae(41307),_e=ae(67294),ut=Object.defineProperty,et=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,Et=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable,Ge=(xe,be,Be)=>be in xe?ut(xe,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):xe[be]=Be,te=(xe,be)=>{for(var Be in be||(be={}))rt.call(be,Be)&&Ge(xe,Be,be[Be]);if(Et)for(var Be of Et(be))_t.call(be,Be)&&Ge(xe,Be,be[Be]);return xe},ee=(xe,be)=>et(xe,lt(be)),de=(xe,be)=>{var Be={};for(var at in xe)rt.call(xe,at)&&be.indexOf(at)<0&&(Be[at]=xe[at]);if(xe!=null&&Et)for(var at of Et(xe))be.indexOf(at)<0&&_t.call(xe,at)&&(Be[at]=xe[at]);return Be};const le={\u6B63\u786E:"T",\u9519\u8BEF:"F"},pe=({value:xe,onChange:be,form:Be})=>{const at=(xe==null?void 0:xe.is_answer)===1,dt=xe==null?void 0:xe.choice_text,gt=()=>{const ft=Be.getFieldsValue().choices.map(Nt=>({choice_text:Nt.choice_text,is_answer:0}));Be.setFieldsValue({choices:ft}),be(ee(te({},xe),{is_answer:1}))};return _e.createElement(Pe.Z,{className:tt.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},_e.createElement(Fe.Z,{onClick:gt,className:`${tt.Z.choiceIndex} ${tt.Z.judgementIndex} ${at?tt.Z.activeAnswer:""}`},le[dt]),_e.createElement(Fe.Z,{flex:1,className:`${tt.Z.editorWrap} ml15`},_e.createElement("div",{className:`${tt.Z.inputBorder} ${tt.Z.placeholder} ${at?tt.Z.activeJudgementAnswer:""}`},dt)),_e.createElement(Fe.Z,{flex:"0 0 auto",className:"ml15"},_e.createElement("div",{onClick:gt,className:`${tt.Z.setAnswerBtn} ${at?tt.Z.activeAnswer:""}`},at?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},me=({questionTitlePlaceholder:xe,choiceKey:be,form:Be})=>{const[at,dt]=(0,ie.useState)(!1);return _e.createElement("div",{className:tt.Z.wrap},_e.createElement("div",{className:tt.Z.questionTitleEditorWrap},_e.createElement(Oe.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},_e.createElement(Me.h,{scrollId:"name",watch:!0,height:140,placeholder:xe}))),_e.createElement(Oe.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},_e.createElement(Oe.default.List,{name:"choices",rules:[{validator(gt,ft){return ft.some(Tt=>(Tt==null?void 0:Tt.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},gt=>_e.createElement("div",{id:"choices"},gt.map(ft=>{var Nt=ft,{key:Tt,name:Ct}=Nt,Vt=de(Nt,["key","name"]);return _e.createElement(Oe.default.Item,ee(te({},Vt),{key:Tt,name:Ct,noStyle:!0}),_e.createElement(pe,{form:Be}))})))),_e.createElement("div",{onClick:()=>dt(!0)},_e.createElement(Oe.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},_e.createElement(Me.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:at}))))}},41307:function(Ke,we,ae){"use strict";ae.d(we,{h:function(){return te},x:function(){return ee}});var ie=ae(35567),Pe=ae(52654),Fe=ae(65226),Oe=ae(67294),tt=Object.defineProperty,Me=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,ut=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,Et=(de,le,pe)=>le in de?tt(de,le,{enumerable:!0,configurable:!0,writable:!0,value:pe}):de[le]=pe,rt=(de,le)=>{for(var pe in le||(le={}))et.call(le,pe)&&Et(de,pe,le[pe]);if(ut)for(var pe of ut(le))lt.call(le,pe)&&Et(de,pe,le[pe]);return de},_t=(de,le)=>Me(de,_e(le)),Ge=(de,le)=>{var pe={};for(var me in de)et.call(de,me)&&le.indexOf(me)<0&&(pe[me]=de[me]);if(de!=null&&ut)for(var me of ut(de))le.indexOf(me)<0&<.call(de,me)&&(pe[me]=de[me]);return pe};const te=de=>{var le=de,{value:pe,onChange:me,scrollId:xe}=le,be=Ge(le,["value","onChange","scrollId"]);return Oe.createElement("div",{id:xe||""},Oe.createElement(ie.Z,_t(rt({},be),{defaultValue:pe,onChange:(Be,at)=>{at!=null&&at.length?me(Be,at):me(Be)}})))},ee=({value:de,onChange:le,placeholder:pe,height:me=140,isEdit:xe,miniToolbar:be,watch:Be=!0})=>xe?Oe.createElement(ie.Z,{watch:Be,isFocus:!0,height:me||void 0,placeholder:pe,defaultValue:de,onChange:le,miniToolbar:be}):Oe.createElement("div",{style:{cursor:"pointer"}},de?Oe.createElement(Fe.Z,{className:Pe.Z.inputBorder,value:de}):Oe.createElement("div",{className:`${Pe.Z.inputBorder} ${Pe.Z.placeholder} inputBorderError`},pe))},77792:function(Ke,we,ae){"use strict";ae.d(we,{W:function(){return Nt}});var ie=ae(67294),Pe=ae(2453),Fe=ae(66309),Oe=ae(91773),tt=ae(59637),Me=ae(71230),_e=ae(15746),ut=ae(83062),et=ae(28802),lt=ae(37720),Et=ae(52654),rt=ae(41307),_t=ae(35567),Ge=ae(17663),te=Object.defineProperty,ee=Object.defineProperties,de=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,xe=(Tt,Ct,Vt)=>Ct in Tt?te(Tt,Ct,{enumerable:!0,configurable:!0,writable:!0,value:Vt}):Tt[Ct]=Vt,be=(Tt,Ct)=>{for(var Vt in Ct||(Ct={}))pe.call(Ct,Vt)&&xe(Tt,Vt,Ct[Vt]);if(le)for(var Vt of le(Ct))me.call(Ct,Vt)&&xe(Tt,Vt,Ct[Vt]);return Tt},Be=(Tt,Ct)=>ee(Tt,de(Ct)),at=(Tt,Ct)=>{var Vt={};for(var Rt in Tt)pe.call(Tt,Rt)&&Ct.indexOf(Rt)<0&&(Vt[Rt]=Tt[Rt]);if(Tt!=null&&le)for(var Rt of le(Tt))Ct.indexOf(Rt)<0&&me.call(Tt,Rt)&&(Vt[Rt]=Tt[Rt]);return Vt};const dt=Tt=>{var Ct=Tt,{value:Vt,onChange:Rt}=Ct,nn=at(Ct,["value","onChange"]);const Cn=un=>{Rt([un])};return ie.createElement(_t.Z,Be(be({},nn),{defaultValue:Vt==null?void 0:Vt[0],onChange:Cn}))},gt=Tt=>{if(!Tt)return!1;if(/^s*$/.test(Tt)||Tt.trim()===""){Pe.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let Ct=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 Tt==="|"?(Pe.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},ft=({value:Tt=[],onClose:Ct})=>ie.createElement(Fe.default,{closable:!0,onClose:Ct,className:Et.Z.keywordTag},ie.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Tt.join(" \u6216 "))),Nt=({questionTitlePlaceholder:Tt,form:Ct,showKeywords:Vt,isMustKeyWords:Rt=Vt})=>{const[nn,Cn]=(0,ie.useState)(!1),[un,Nn]=(0,ie.useState)(""),wt=Oe.default.useWatch("use_keywords",Ct),pt=Oe.default.useWatch("question_score",Ct);return ie.createElement("div",{className:Et.Z.wrap},ie.createElement("div",{className:Et.Z.questionTitleEditorWrap},ie.createElement(Oe.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},ie.createElement(rt.h,{scrollId:"name",watch:!0,height:140,placeholder:Tt}))),ie.createElement(Oe.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},ie.createElement(dt,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Vt&&!Rt&&ie.createElement(Oe.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},ie.createElement(tt.Z,{defaultChecked:!0})),Vt&&Rt&&ie.createElement(Me.Z,{align:"middle",className:"mb30"},ie.createElement(Oe.default.Item,{name:"use_keywords",valuePropName:"checked"},ie.createElement(tt.Z,null)),ie.createElement(_e.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),ie.createElement(_e.Z,null,ie.createElement(ut.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"},ie.createElement(Ge.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(wt||!Rt)&&ie.createElement(Oe.default.List,{name:"keywords",rules:[{validator(Ie,on){return Rt?on!=null&&on.length?(on==null?void 0:on.reduce((Zt,zn)=>Zt+zn.score,0))>parseFloat(pt)?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()}}]},(Ie,{add:on,remove:Bn})=>ie.createElement(ie.Fragment,null,ie.createElement("div",{className:`${Et.Z.title} mb10`},Rt?"\u5173\u952E\u8BCD":ie.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),ie.createElement(Me.Z,{align:"middle",className:"font14 mb30"},ie.createElement(_e.Z,{flex:1},ie.createElement(et.default,{value:un,onChange:Zt=>{Nn(Zt.target.value)},maxLength:50,allowClear:!0,onPressEnter:Zt=>{var zn,_n,nr,Ft;const Wt=`${(zn=Zt.target)==null?void 0:zn.value}`,ht=(nr=(_n=Wt==null?void 0:Wt.split("|"))==null?void 0:_n.filter(ct=>!!ct))==null?void 0:nr.map(ct=>ct==null?void 0:ct.trim()),tn=Ct.getFieldValue("keywords"),an=((Ft=tn==null?void 0:tn.map(ct=>ct==null?void 0:ct.keyword))==null?void 0:Ft.flat())||[];for(const ct of ht)if(an.includes(ct)){Pe.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}gt(Wt)&&(on({keyword:ht,score:1}),Nn(""))},className:Et.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"})),ie.createElement(_e.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Ie.map(Zt=>{var zn=Zt,{key:_n,name:nr}=zn,Ft=at(zn,["key","name"]);return ie.createElement(Me.Z,{key:_n,className:"mb20",style:{marginRight:148}},ie.createElement(_e.Z,{flex:1},ie.createElement(Me.Z,{align:"middle",justify:"space-between"},ie.createElement(Oe.default.Item,Be(be({},Ft),{name:[nr,"keyword"]}),ie.createElement(ft,{onClose:()=>Bn(nr)})),Rt&&ie.createElement(Oe.default.Item,Be(be({},Ft),{name:[nr,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Et.Z.blankInputNumberWrapper}),ie.createElement(lt.Z,{className:Et.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),ie.createElement("div",{onClick:()=>Cn(!0)},ie.createElement(Oe.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ie.createElement(rt.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:nn}))))}},39044:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return tt}});var ie={text:"text___bQulM",sup:"sup___rX_Y3"},Pe=ae(91773),Fe=ae(67294),tt=({text:Me,name:_e="question_score"})=>{const ut=({value:et})=>Fe.createElement("div",{className:ie.text},Fe.createElement("span",{className:ie.sup},"*"),Fe.createElement("span",{className:"mr10"},"\u5206\u503C"),Fe.createElement("span",null,et||"--"),Fe.createElement("span",{className:"c-grey-999"},Me));return Fe.createElement(Pe.default.Item,{noStyle:!0,name:_e},Fe.createElement(ut,null))}},65226:function(Ke,we,ae){"use strict";ae.d(we,{z:function(){return gt},Z:function(){return ft}});var ie=ae(67294),Pe=ae(81897),Fe=ae(51161),Oe=ae(11771),tt=ae(67631),Me=ae.n(tt),_e=ae(11320),ut=ae(28706),et=ae(20527),lt=ae(25934),Et=ae(20819),rt=ae(67294),Ge=({html:Nt})=>{const Tt=(0,ie.useRef)(null),Ct=(0,ie.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,ie.useEffect)(()=>{const Rt=Tt.current.attachShadow({mode:"open"});Ct.current=document.createElement("div"),Ct.current.className="markdown-body",Ct.current.innerHTML=Nt,Rt.appendChild(Ct.current);const nn=document.createElement("style");return nn.textContent=Vt,Rt.appendChild(nn),()=>{Rt.innerHTML=""}},[]),(0,ie.useEffect)(()=>{Ct.current&&(Ct.current.innerHTML=Nt)},[Nt]),rt.createElement("div",{ref:Tt})};function te(Nt){const Tt=["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"],Ct=new RegExp(`\\b(${Tt.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return Nt.replace(Ct,"").trim()}var ee=Object.defineProperty,de=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,me=(Nt,Tt,Ct)=>Tt in Nt?ee(Nt,Tt,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):Nt[Tt]=Ct,xe=(Nt,Tt)=>{for(var Ct in Tt||(Tt={}))le.call(Tt,Ct)&&me(Nt,Ct,Tt[Ct]);if(de)for(var Ct of de(Tt))pe.call(Tt,Ct)&&me(Nt,Ct,Tt[Ct]);return Nt};const be="@\u2581\u2581@",Be="@\u2581@",at=/<pre[^>]*>/g;function dt(Nt){let Tt=document.createElement("div");return Tt.innerHTML=Nt,Tt.childNodes.length===0?"":Tt.childNodes[0].nodeValue}const gt=(Nt,Tt)=>{Nt=Nt||"";const Ct=/(?: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,Rt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,nn=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Tt?Nt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Ct,(Cn,un,Nn,wt,pt,Ie,on)=>{const Bn=un||wt||Ie,Zt=Nn||pt||on||"?";return _e.Z.API_SERVER+"/api/attachments/"+Bn+Zt+"&t="+(0,ut.Jn)(Bn,Date.now())+(Cn.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Nt=Nt.replace(nn,(Cn,un,Nn,wt,pt,Ie,on)=>{const Bn=un||wt||Ie,Zt=Nn||pt||on||"?";return _e.Z.API_SERVER+"/attachments/download/"+Bn+Zt+"&t="+(0,ut.Jn)(Bn,Date.now())+(Cn.indexOf(")")>-1?")":"&")}).replace(Ct,(Cn,un,Nn,wt,pt,Ie,on)=>{const Bn=un||wt||Ie,Zt=Nn||pt||on||"?";return _e.Z.API_SERVER+"/api/attachments/"+Bn+Zt+"&t="+(0,ut.Jn)(Bn,Date.now())+(Cn.indexOf(")")>-1?")":"&")}).replace(Vt,(Cn,un,Nn,wt,pt)=>{const Ie=un||wt,on=Nn||pt||"";return'"'+_e.Z.API_SERVER+"/api/attachments/"+Ie+on+Ie+on+"&t="+(0,ut.Jn)(Ie,Date.now())}).replace(Rt,(Cn,un,Nn,wt,pt)=>{const Ie=un||wt,on=Nn||pt||"";return"("+_e.Z.API_SERVER+"/files/uploads/"+Ie+on+Ie+on+"&t="+(0,ut.Jn)(Ie,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,`
|
|
|
`),Nt)};var ft=({value:Nt="",className:Tt,showTextOnly:Ct,showLines:Vt,style:Rt={},stylesPrev:nn={},highlightKeywords:Cn,showProgramFill:un,isProgramFill:Nn,disabledFill:wt=!1,programFillValue:pt,onFillChange:Ie=Zt=>{},onFillBlur:on=()=>{},onFillFocus:Bn=()=>{}})=>{let Zt=te(String(Nt||""));const[zn,_n]=(0,ie.useState)(""),[nr,Ft]=(0,ie.useState)("office"),[Wt,ht]=(0,ie.useState)([]),tn=(0,ie.useRef)("a"+(0,lt.Z)()),an={},ct=yn=>/<style[\s\S]*?>/i.test(yn||""),Ue=(yn,Er,sr)=>{const Hr=document.createElement(yn===Be?"input":"textarea");Hr.style.width="100%",Hr.style.height=yn===Be?"40px":"151px",Hr.rows=5,Hr.spellcheck=!1,Hr.name="edu-program-fill",Hr.placeholder="\u8BF7\u8F93\u5165",Hr.dataset.id=Er;const An=Object.keys(an).length;return an[An]=Hr,`<span class="edu-program-fill-wrap ${yn===Be?"":"show"}" style="width:${yn===Be?"600px":"100%"}" title=${sr||""}><span>${Hr.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function He(yn){return yn=yn.replace(/!\[.*?\]\(.*?\)/g,""),yn=yn.replace(/\[.*?\]\(.*?\)/g,""),yn=yn.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),yn=yn.replace(/<embed.*?>/g,""),yn=yn.replace(/<img.*?>/g,""),yn=yn.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),yn=yn.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),yn=yn.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),yn=yn.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),yn}const it=yn=>!Ct&&ct(Zt)?yn:yn.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Er,sr){let Hr=sr.replace(/(\n|\r)/g,"").split("}"),An=[];return Hr.map(yi=>{yi!=""&&An.push(`.${tn.current} ${yi}`)}),`<style>${An.join("}")}</style>`}),vt=(0,ie.useMemo)(()=>{try{const Hr=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,An=/\"\/api\/attachments\/|\"\/attachments\/download\//g,yi=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,ri=/\(\/attachments\/download\//g;Zt=Zt.replace(ri,"("+_e.Z.API_SERVER+"/attachments/download/").replace(Hr,"("+_e.Z.API_SERVER+"/api/attachments/").replace(An,'"'+_e.Z.API_SERVER+"/api/attachments/").replace(yi,'"'+_e.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(Hr){}if(un){let Hr=-1;return Zt=Zt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(An,yi,ri){var bn;return++Hr,Ue(An,Hr,(bn=pt==null?void 0:pt[Hr])==null?void 0:bn.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${it(Zt||"")}</pre>`}let yn=it(Zt);yn=(0,Fe.ZP)(yn);const Er=(0,Fe.ez)();Zt.match(/\[TOC\]/)&&(yn=yn.replace("<p>[TOC]</p>",(0,Fe.Qv)()),(0,Fe.Iy)()),yn=yn.replace(/(__special_katext_id_\d+__)/g,(Hr,An)=>{const{type:yi,expression:ri}=Er[An];return(0,et.renderToString)(dt(ri)||"",{displayMode:yi==="block",throwOnError:!1,output:"html"})}),yn=yn.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Fe.AL)();const sr=document.createElement("div");if(sr.innerHTML=yn,Ct)return sr.innerText;if(Cn){const Hr=Cn.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Kn(sr,Hr),sr.innerHTML}return setTimeout(()=>er(),500),sr.innerHTML},[Zt,Cn]);(0,ie.useEffect)(()=>{dr.current&&dr.current.querySelectorAll(["input","textarea"]).forEach(Er=>{Er.oninput=Ye,Er.onblur=It,Er.onfocus=In})},[Wt]),(0,ie.useEffect)(()=>{var yn,Er,sr,Hr,An;if(pt!=null&&pt.length)try{const yi=dr.current.querySelectorAll(".edu-program-fill-score"),ri=dr.current.querySelectorAll('[name="edu-program-fill"]');for(const[bn,Xe]of ri.entries())Xe.value=((yn=pt==null?void 0:pt[bn])==null?void 0:yn.value)||"",((Er=pt==null?void 0:pt[bn])==null?void 0:Er.type)==="warning"?Xe.className="program-fill-warning":((sr=pt==null?void 0:pt[bn])==null?void 0:sr.type)==="success"?Xe.className="program-fill-success":Xe.className="";for(const[bn,Xe]of yi.entries())Xe.innerHTML=(Hr=pt==null?void 0:pt[bn])!=null&&Hr.score?`${(An=pt==null?void 0:pt[bn])==null?void 0:An.score}\u5206`:"";ht(pt)}catch(yi){console.log(yi,"error")}},[pt]);const Ye=yn=>{Wt[yn.target.dataset.id]=Wt[yn.target.dataset.id]||{},Wt[yn.target.dataset.id].value=yn.target.value,ht([...Wt]),Ie(Wt,yn.target.dataset.id)},It=yn=>{Wt[yn.target.dataset.id]=Wt[yn.target.dataset.id]||{},Wt[yn.target.dataset.id].value=yn.target.value,ht([...Wt]),on(Wt,yn.target.dataset.id)},In=yn=>{Wt[yn.target.dataset.id]=Wt[yn.target.dataset.id]||{},Wt[yn.target.dataset.id].value=yn.target.value,ht([...Wt]),Bn(Wt,yn.target.dataset.id)};function Kn(yn,Er){return yn.childNodes.forEach(sr=>{var Hr;if(sr.childNodes.length>0)Kn(sr,Er);else if(sr.nodeName!=="IMG")if(sr.innerHTML)sr.innerHTML=(Hr=sr.innerHTML)==null?void 0:Hr.replace(new RegExp(Er,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const An=document.createElement("span");An.innerHTML=sr.textContent.replace(new RegExp(Er,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),sr.replaceWith(An)}})}const dr=(0,ie.useRef)();Fe.jb.WebkitLineClamp=Vt,Vt&&(Rt=xe(xe({},Rt),Fe.jb));function Rn(yn){let Er=yn.target;if(Er.tagName.toUpperCase()==="A"){let sr=Er.getAttribute("href");if(sr.indexOf("office")>-1)yn.preventDefault(),_n(sr),Ft("office");else if(sr.indexOf("application/pdf")>-1)yn.preventDefault(),_n(sr),Ft("pdf");else if(sr.indexOf("text/html")>-1)yn.preventDefault(),_n(sr),Ft("html");else if(sr.startsWith("#")){yn.preventDefault();let Hr=document.getElementById(sr.replace("#",""));Hr&&Hr.scrollIntoView(!0)}}}const er=()=>{var yn;const Er=(yn=dr.current)==null?void 0:yn.querySelectorAll("video");Er==null||Er.forEach(sr=>{if(sr.oncontextmenu=()=>!1,sr.src.indexOf(".m3u8")>-1&&!sr.canPlayType("application/vnd.apple.mpegurl")){if(Me().isSupported()){var Hr=new(Me());Hr.loadSource(sr.src),Hr.attachMedia(sr)}}})};return(0,ie.useEffect)(()=>{if(dr.current&&vt&&vt.match(at)&&window.PR.prettyPrint(),dr.current)return dr.current.addEventListener("click",Rn),()=>{var yn;(yn=dr.current)==null||yn.removeEventListener("click",Rn),(0,Fe.AL)(),(0,Fe.Iy)()}},[vt,dr.current,Rn]),(0,ie.useEffect)(()=>{var yn;const Er=sr=>{sr.preventDefault(),sr.clipboardData.setData("text",window.getSelection().toString())};return(yn=dr.current)==null||yn.addEventListener("copy",Er),()=>{var sr;(sr=dr.current)==null||sr.removeEventListener("copy",Er)}},[dr.current]),ie.createElement(ie.Fragment,null,Ct&&ie.createElement("div",{ref:dr},vt),!Ct&&!ct(vt)&&ie.createElement("div",{ref:dr,style:xe({},Rt),className:`${Tt||""} ${wt?"disabled-fill":""} markdown-body ${tn.current}`,dangerouslySetInnerHTML:{__html:vt}}),!Ct&&ct(vt)&&ie.createElement(Ge,{html:vt}),ie.createElement(Et.Z,{close:!0,data:zn,type:zn!=null&&zn.length?nr:"",style:xe({},nn),onClose:()=>_n("")}))}},57444:function(Ke,we,ae){"use strict";ae.d(we,{h:function(){return xe}});var ie=ae(67294),Pe=ae(88044),Fe=ae(91773),Oe=ae(85804),tt=ae(4631),Me=ae.n(tt),_e=ae(71749),ut=ae(30483),et=Object.defineProperty,lt=Object.defineProperties,Et=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,te=(be,Be,at)=>Be in be?et(be,Be,{enumerable:!0,configurable:!0,writable:!0,value:at}):be[Be]=at,ee=(be,Be)=>{for(var at in Be||(Be={}))_t.call(Be,at)&&te(be,at,Be[at]);if(rt)for(var at of rt(Be))Ge.call(Be,at)&&te(be,at,Be[at]);return be},de=(be,Be)=>lt(be,Et(Be));const le=Pe.default.Option,pe={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"]};we.Z=({callback:be,onCancel:Be})=>{const[at,dt]=(0,ie.useState)("python");function gt(Nt){dt(me[Nt][1])}function ft(Nt){be(Nt)}return ie.createElement(Fe.default,de(ee({},pe),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ft,style:{width:500}}),ie.createElement(Fe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ie.createElement(Pe.default,{getPopupContainer:Nt=>Nt.parentNode,onChange:gt},Object.keys(me).map(Nt=>ie.createElement(le,{key:Nt,value:Nt},me[Nt][0])))),ie.createElement(Fe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ie.createElement(xe,{mode:at})),ie.createElement("div",{className:"flex-container flex-end"},ie.createElement(Oe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ie.createElement(Oe.ZP,{type:"ghost",onClick:Be},"\u53D6\u6D88")))};function xe({value:be,onChange:Be,mode:at,options:dt={}}){const gt=(0,ie.useRef)(),[ft,Nt]=(0,ie.useState)();return(0,ie.useEffect)(()=>{if(ft){let Tt=function(Ct){const Vt=Ct.getValue();Be&&Be(Vt)};return ft.on("change",Tt),()=>{ft.off("change",Tt)}}},[ft,Be]),(0,ie.useEffect)(()=>{ft&&ft.setOption("mode",at)},[ft,at]),(0,ie.useEffect)(()=>{ft&&(be!==ft.getValue()||be==="")&&setTimeout(()=>{ft.setValue(be||"")},300)},[ft,be]),(0,ie.useEffect)(()=>{if(gt.current&&!ft){const Tt=Me().fromTextArea(gt.current,ee({mode:at,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},dt));Nt(Tt)}},[gt.current,ft]),ie.createElement("div",{className:"my-codemirror-container"},ie.createElement("textarea",{ref:gt}))}},35567:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return Fi}});var ie=ae(67294),Pe=ae(4631),Fe=ae.n(Pe),Oe=ae(91033),tt=ae(71749),Me=ae(57341),_e=ae(82801),ut=ae(88386),et=ae(49047),lt=ae(80785),Et=ae(65226),rt=({value:Vn="",className:Wn,showTextOnly:vn,showLines:tr,style:mi={}})=>{const gi=(0,ie.useMemo)(()=>"",[Vn]);return ie.createElement(ie.Fragment,null,ie.createElement("div",{dangerouslySetInnerHTML:{__html:gi}}))},_t=Object.defineProperty,Ge=Object.defineProperties,te=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,pe=(Vn,Wn,vn)=>Wn in Vn?_t(Vn,Wn,{enumerable:!0,configurable:!0,writable:!0,value:vn}):Vn[Wn]=vn,me=(Vn,Wn)=>{for(var vn in Wn||(Wn={}))de.call(Wn,vn)&&pe(Vn,vn,Wn[vn]);if(ee)for(var vn of ee(Wn))le.call(Wn,vn)&&pe(Vn,vn,Wn[vn]);return Vn},xe=(Vn,Wn)=>Ge(Vn,te(Wn));let be=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Be({onActionCallback:Vn,title:Wn,icon:vn,actionName:tr,className:mi="",children:gi}){function ti(){Vn(tr)}return ie.createElement("a",{title:Wn,className:mi,onClick:ti},ie.createElement("i",{className:`${vn}`}),gi)}var at=({watch:Vn,showNullButton:Wn,showNullProgramButton:vn,onActionCallback:tr,fullScreen:mi,insertTemp:gi,hidetoolBar:ti,extraUse:Hn})=>{const Cr=[...be,{title:`${Vn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Vn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ie.createElement("ul",{className:"markdown-toolbar-container"},!ti&&Cr.map((Ri,_i)=>ie.createElement("li",{key:_i},Ri.actionName?ie.createElement(Be,xe(me({},Ri),{onActionCallback:tr})):ie.createElement("span",{className:"v-line"}))),Wn?ie.createElement("li",null,ie.createElement(Be,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:tr},ie.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,vn?ie.createElement(ie.Fragment,null,ie.createElement("li",null,ie.createElement(Be,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:tr},ie.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),ie.createElement("li",null,ie.createElement(Be,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:tr},ie.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,gi&&ie.createElement("li",null,ie.createElement(Be,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${gi}`,onActionCallback:tr},ie.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Hn&&ie.createElement("li",null,Hn),ie.createElement("li",{className:"btn-full-screen"},ie.createElement(Be,{icon:`${mi?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:mi?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:tr})))},dt=ae(76621),gt=ae(91773),ft=ae(28802),Nt=ae(85804),Tt=Object.defineProperty,Ct=Object.defineProperties,Vt=Object.getOwnPropertyDescriptors,Rt=Object.getOwnPropertySymbols,nn=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable,un=(Vn,Wn,vn)=>Wn in Vn?Tt(Vn,Wn,{enumerable:!0,configurable:!0,writable:!0,value:vn}):Vn[Wn]=vn,Nn=(Vn,Wn)=>{for(var vn in Wn||(Wn={}))nn.call(Wn,vn)&&un(Vn,vn,Wn[vn]);if(Rt)for(var vn of Rt(Wn))Cn.call(Wn,vn)&&un(Vn,vn,Wn[vn]);return Vn},wt=(Vn,Wn)=>Ct(Vn,Vt(Wn));const pt={labelCol:{span:4},wrapperCol:{span:20}};var Ie=({callback:Vn,onCancel:Wn})=>{function vn(tr){Vn(tr)}return ie.createElement(gt.default,wt(Nn({},pt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:vn,style:{width:500}}),ie.createElement(gt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ie.createElement(ft.default,null)),ie.createElement(gt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ie.createElement(ft.default,null)),ie.createElement("div",{className:"flex-container flex-end"},ie.createElement(Nt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ie.createElement(Nt.ZP,{type:"ghost",onClick:Wn},"\u53D6\u6D88")))},on=ae(57444),Bn=ae(70859),Zt=ae(62844),zn=ae(71230),_n=ae(63205),nr=ae(67294),Ft=({callback:Vn,onCancel:Wn})=>{const vn=document.createElement("canvas"),tr=vn.getContext("2d");vn.width=1e3,vn.height=800,tr.fillStyle="#ffffff",tr.fillRect(0,0,vn.width,vn.height);const mi=vn.toDataURL("image/png");return nr.createElement(Zt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},nr.createElement(zn.Z,{style:{height:"100vh"}},nr.createElement(_n.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:mi,visible:!0,title:String(Date.now())},onOk:gi=>{Vn({src:gi.url})},onClose:Wn})))},Wt=ae(23495);function ht(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(ht,go.CommandHandler),ht.prototype.canAlignSelection=function(){var Vn=this.diagram;return!(Vn===null||Vn.isReadOnly||Vn.isModelReadOnly||Vn.selection.count<2)},ht.prototype.alignLeft=function(){var Vn=this.diagram;Vn.startTransaction("aligning left");var Wn=1/0;Vn.selection.each(function(vn){vn instanceof go.Link||(Wn=Math.min(vn.position.x,Wn))}),Vn.selection.each(function(vn){vn instanceof go.Link||vn.move(new go.Point(Wn,vn.position.y))}),Vn.commitTransaction("aligning left")},ht.prototype.alignRight=function(){var Vn=this.diagram;Vn.startTransaction("aligning right");var Wn=-1/0;Vn.selection.each(function(vn){if(!(vn instanceof go.Link)){var tr=vn.actualBounds.x+vn.actualBounds.width;Wn=Math.max(tr,Wn)}}),Vn.selection.each(function(vn){vn instanceof go.Link||vn.move(new go.Point(Wn-vn.actualBounds.width,vn.position.y))}),Vn.commitTransaction("aligning right")},ht.prototype.alignTop=function(){var Vn=this.diagram;Vn.startTransaction("alignTop");var Wn=1/0;Vn.selection.each(function(vn){vn instanceof go.Link||(Wn=Math.min(vn.position.y,Wn))}),Vn.selection.each(function(vn){vn instanceof go.Link||vn.move(new go.Point(vn.position.x,Wn))}),Vn.commitTransaction("alignTop")},ht.prototype.alignBottom=function(){var Vn=this.diagram;Vn.startTransaction("aligning bottom");var Wn=-1/0;Vn.selection.each(function(vn){if(!(vn instanceof go.Link)){var tr=vn.actualBounds.y+vn.actualBounds.height;Wn=Math.max(tr,Wn)}}),Vn.selection.each(function(vn){vn instanceof go.Link||vn.move(new go.Point(vn.actualBounds.x,Wn-vn.actualBounds.height))}),Vn.commitTransaction("aligning bottom")},ht.prototype.alignCenterX=function(){var Vn=this.diagram,Wn=Vn.selection.first();if(Wn){Vn.startTransaction("aligning Center X");var vn=Wn.actualBounds.x+Wn.actualBounds.width/2;Vn.selection.each(function(tr){tr instanceof go.Link||tr.move(new go.Point(vn-tr.actualBounds.width/2,tr.actualBounds.y))}),Vn.commitTransaction("aligning Center X")}},ht.prototype.alignCenterY=function(){var Vn=this.diagram,Wn=Vn.selection.first();if(Wn){Vn.startTransaction("aligning Center Y");var vn=Wn.actualBounds.y+Wn.actualBounds.height/2;Vn.selection.each(function(tr){tr instanceof go.Link||tr.move(new go.Point(tr.actualBounds.x,vn-tr.actualBounds.height/2))}),Vn.commitTransaction("aligning Center Y")}},ht.prototype.alignColumn=function(Vn){var Wn=this.diagram;Wn.startTransaction("align Column"),Vn===void 0&&(Vn=0),Vn=parseFloat(Vn);var vn=new Array;Wn.selection.each(function(Hn){Hn instanceof go.Link||vn.push(Hn)});for(var tr=0;tr<vn.length-1;tr++){var mi=vn[tr],gi=mi.actualBounds.y+mi.actualBounds.height+Vn,ti=vn[tr+1];ti.move(new go.Point(mi.actualBounds.x,gi))}Wn.commitTransaction("align Column")},ht.prototype.alignRow=function(Vn){Vn===void 0&&(Vn=0),Vn=parseFloat(Vn);var Wn=this.diagram;Wn.startTransaction("align Row");var vn=new Array;Wn.selection.each(function(Hn){Hn instanceof go.Link||vn.push(Hn)});for(var tr=0;tr<vn.length-1;tr++){var mi=vn[tr],gi=mi.actualBounds.x+mi.actualBounds.width+Vn,ti=vn[tr+1];ti.move(new go.Point(gi,mi.actualBounds.y))}Wn.commitTransaction("align Row")},ht.prototype.canRotate=function(Vn){var Wn=this.diagram;return!(Wn===null||Wn.isReadOnly||Wn.isModelReadOnly||Wn.selection.count<1)},ht.prototype.rotate=function(Vn){Vn===void 0&&(Vn=90);var Wn=this.diagram;Wn.startTransaction("rotate "+Vn.toString());var Wn=this.diagram;Wn.selection.each(function(vn){vn instanceof go.Link||vn instanceof go.Group||(vn.angle+=Vn)}),Wn.commitTransaction("rotate "+Vn.toString())},ht.prototype.pullToFront=function(){var Vn=this.diagram;Vn.startTransaction("pullToFront");var Wn=new go.Map;Vn.selection.each(function(vn){Wn.set(vn.layer,0)}),Wn.iteratorKeys.each(function(vn){var tr=0;vn.parts.each(function(mi){if(!mi.isSelected){var gi=mi.zOrder;isNaN(gi)?mi.zOrder=0:tr=Math.max(tr,gi)}}),Wn.set(vn,tr)}),Vn.selection.each(function(vn){ht._assignZOrder(vn,Wn.get(vn.layer)+1)}),Vn.commitTransaction("pullToFront")},ht.prototype.pushToBack=function(){var Vn=this.diagram;Vn.startTransaction("pushToBack");var Wn=new go.Map;Vn.selection.each(function(vn){Wn.set(vn.layer,0)}),Wn.iteratorKeys.each(function(vn){var tr=0;vn.parts.each(function(mi){if(!mi.isSelected){var gi=mi.zOrder;isNaN(gi)?mi.zOrder=0:tr=Math.min(tr,gi)}}),Wn.set(vn,tr)}),Vn.selection.each(function(vn){ht._assignZOrder(vn,Wn.get(vn.layer)-1-ht._findGroupDepth(vn))}),Vn.commitTransaction("pushToBack")},ht._assignZOrder=function(Vn,Wn,vn){vn===void 0&&(vn=Vn),Vn.layer===vn.layer&&(Vn.zOrder=Wn),Vn instanceof go.Group&&Vn.memberParts.each(function(tr){ht._assignZOrder(tr,Wn+1,vn)})},ht._findGroupDepth=function(Vn){if(Vn instanceof go.Group){var Wn=0;return Vn.memberParts.each(function(vn){Wn=Math.max(Wn,ht._findGroupDepth(vn))}),Wn+1}else return 0},ht.prototype.doKeyDown=function(){var Vn=this.diagram;if(Vn!==null){var Wn=Vn.lastInput;if(Wn.key==="Up"||Wn.key==="Down"||Wn.key==="Left"||Wn.key==="Right"){var vn=this.arrowKeyBehavior;if(vn==="none")return;if(vn==="select"){this._arrowKeySelect();return}else if(vn==="move"){this._arrowKeyMove();return}else if(vn==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},ht.prototype._getAllParts=function(){var Vn=new Array;return this.diagram.nodes.each(function(Wn){Vn.push(Wn)}),this.diagram.parts.each(function(Wn){Vn.push(Wn)}),Vn},ht.prototype._arrowKeyMove=function(){var Vn=this.diagram,Wn=Vn.lastInput,vn=0,tr=0;if(Wn.control||Wn.meta)vn=1,tr=1;else if(Vn.grid!==null){var mi=Vn.grid.gridCellSize;tr=mi.width,vn=mi.height}Vn.startTransaction("arrowKeyMove"),Vn.selection.each(function(gi){Wn.key==="Up"?gi.move(new go.Point(gi.actualBounds.x,gi.actualBounds.y-vn)):Wn.key==="Down"?gi.move(new go.Point(gi.actualBounds.x,gi.actualBounds.y+vn)):Wn.key==="Left"?gi.move(new go.Point(gi.actualBounds.x-tr,gi.actualBounds.y)):Wn.key==="Right"&&gi.move(new go.Point(gi.actualBounds.x+tr,gi.actualBounds.y))}),Vn.commitTransaction("arrowKeyMove")},ht.prototype._arrowKeySelect=function(){var Vn=this.diagram,Wn=Vn.lastInput,vn=null;Wn.key==="Up"?vn=this._findNearestPartTowards(270):Wn.key==="Down"?vn=this._findNearestPartTowards(90):Wn.key==="Left"?vn=this._findNearestPartTowards(180):Wn.key==="Right"&&(vn=this._findNearestPartTowards(0)),vn!==null&&(Wn.shift?vn.isSelected=!0:Wn.control||Wn.meta?vn.isSelected=!vn.isSelected:Vn.select(vn))},ht.prototype._findNearestPartTowards=function(Vn){var Wn=this.diagram.selection.first();if(Wn===null)return null;for(var vn=Wn.actualBounds.center,tr=this._getAllParts(),mi=1/0,gi=Wn,ti=0;ti<tr.length;ti++){var Hn=tr[ti];if(Hn!==Wn&&Hn.canSelect()){var Cr=Hn.actualBounds.center,Ri=vn.directionPoint(Cr),_i=this._angleCloseness(Ri,Vn);if(_i<=45){var Ur=vn.distanceSquaredPoint(Cr);Ur*=1+Math.sin(_i*Math.PI/180),Ur<mi&&(mi=Ur,gi=Hn)}}}return gi},ht.prototype._angleCloseness=function(Vn,Wn){return Math.min(Math.abs(Wn-Vn),Math.min(Math.abs(Wn+360-Vn),Math.abs(Wn-360-Vn)))},ht.prototype._arrowKeyTree=function(){var Vn=this.diagram,Wn=Vn.selection.first();if(Wn instanceof go.Node){var vn=Vn.lastInput;if(vn.key==="Right"){if(!Wn.isTreeLeaf)if(!Wn.isTreeExpanded)Vn.commandHandler.canExpandTree(Wn)&&Vn.commandHandler.expandTree(Wn);else{var tr=this._sortTreeChildrenByY(Wn).first();tr!==null&&Vn.select(tr)}}else if(vn.key==="Left")if(!Wn.isTreeLeaf&&Wn.isTreeExpanded)Vn.commandHandler.canCollapseTree(Wn)&&Vn.commandHandler.collapseTree(Wn);else{var mi=Wn.findTreeParentNode();mi!==null&&Vn.select(mi)}else if(vn.key==="Up"){var mi=Wn.findTreeParentNode();if(mi!==null){var gi=this._sortTreeChildrenByY(mi),ti=gi.indexOf(Wn);if(ti>0){for(var Hn=gi.elt(ti-1);Hn!==null&&Hn.isTreeExpanded&&!Hn.isTreeLeaf;){var Cr=this._sortTreeChildrenByY(Hn);Hn=Cr.last()}Hn!==null&&Vn.select(Hn)}else Vn.select(mi)}}else if(vn.key==="Down")if(Wn.isTreeExpanded&&!Wn.isTreeLeaf){var tr=this._sortTreeChildrenByY(Wn).first();tr!==null&&Vn.select(tr)}else for(;Wn!==null;){var mi=Wn.findTreeParentNode();if(mi===null)break;var gi=this._sortTreeChildrenByY(mi),ti=gi.indexOf(Wn);if(ti<gi.length-1){Vn.select(gi.elt(ti+1));break}else Wn=mi}var Ri=Vn.selection.first();Ri!==null&&Vn.scrollToRect(Ri.actualBounds)}},ht.prototype._sortTreeChildrenByY=function(Vn){var Wn=new go.List().addAll(Vn.findTreeChildrenNodes());return Wn.sort(function(vn,tr){var mi=vn.location,gi=tr.location;return mi.y<gi.y?-1:mi.y>gi.y?1:mi.x<gi.x?-1:mi.x>gi.x?1:0}),Wn},ht.prototype.copyToClipboard=function(Vn){go.CommandHandler.prototype.copyToClipboard.call(this,Vn),this._lastPasteOffset.set(this.pasteOffset)},ht.prototype.pasteFromClipboard=function(){var Vn=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Vn,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Vn},Object.defineProperty(ht.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Vn){if(Vn!=="move"&&Vn!=="select"&&Vn!=="scroll"&&Vn!=="tree"&&Vn!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Vn);this._arrowKeyBehavior=Vn}}),Object.defineProperty(ht.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Vn){if(!(Vn instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Vn);this._pasteOffset.set(Vn)}});var tn=ht,an=ae(18023),ct=ae(15746),Ue=ae(33170),He={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},it=ae(52262),vt=ae(67294),Ye=(Vn,Wn,vn)=>new Promise((tr,mi)=>{var gi=Cr=>{try{Hn(vn.next(Cr))}catch(Ri){mi(Ri)}},ti=Cr=>{try{Hn(vn.throw(Cr))}catch(Ri){mi(Ri)}},Hn=Cr=>Cr.done?tr(Cr.value):Promise.resolve(Cr.value).then(gi,ti);Hn((vn=vn.apply(Vn,Wn)).next())});function It({onCancel:Vn,callback:Wn}){let vn=(0,ie.useRef)(),tr=(0,ie.useRef)(),mi=(0,ie.useRef)(),gi=(0,ie.useRef)(!1);const ti=(0,ie.useRef)(!1),[Hn,Cr]=(0,ie.useState)(0);function Ri(){const Ur=Wt.bx.make,Pn={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"};vn.current=new Wt.S0(tr.current,{padding:20,grid:Ur(Wt.s_,"Grid",Ur(Wt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ur(Wt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Mn=>{var Co=Mn.diagram.commandHandler.addTopLevelParts(Mn.diagram.selection,!0);Co||Mn.diagram.currentTool.doCancel()},commandHandler:Ur(tn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Mn=>{var Co=Mn.subject;Co.location=Co.location.copy().snapToGridPoint(Mn.diagram.grid.gridOrigin,Mn.diagram.grid.gridCellSize),setTimeout(()=>{Mn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Mn=>{var Co=Mn.subject;setTimeout(()=>{Mn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Mn=>{var Co=Mn.parameter.part;Co.invalidateConnectedLinks();var Ta=Mn.subject;Mn.diagram.toolManager.linkingTool.isForwards?Ta.toNode.invalidateConnectedLinks():Ta.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),vn.current.nodeTemplate=Ur(Wt.NB,"Auto",{locationSpot:Wt.z6.Center,locationObjectName:"SHAPE",desiredSize:new Wt.$u(120,60),minSize:new Wt.$u(40,40),resizable:!0,resizeCellSize:new Wt.$u(10,10),rotatable:!0},new Wt.KX("location","loc",Wt.E9.parse).makeTwoWay(Wt.E9.stringify),new Wt.KX("desiredSize","size",Wt.$u.parse).makeTwoWay(Wt.$u.stringify),Ur(Wt.bn,{name:"SHAPE",fill:Pn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Wt.z6.AllSides,toSpot:Wt.z6.AllSides},new Wt.KX("figure"),new Wt.KX("fill"),new Wt.KX("stroke","borderColor"),new Wt.KX("strokeWidth","thickness"),new Wt.KX("strokeDashArray","dash")),Ur(Wt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ur(Wt.al,{margin:1,textAlign:"center",overflow:Wt.al.OverflowEllipsis,editable:!0},new Wt.KX("text").makeTwoWay(),new Wt.KX("stroke","color"))),vn.current.nodeTemplate.toolTip=Ur("ToolTip",Ur(Wt.s_,"Vertical",{maxSize:new Wt.$u(200,NaN)},Ur(Wt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Wt.KX("text")),Ur(Wt.al,{font:"10pt sans-serif",textAlign:"center"},new Wt.KX("text","details"))));function xi(Mn,Co){var Ta=(lo,oa)=>{lo.handled=!0,lo.diagram.model.commit(fa=>{var Ka=oa.part.adornedPart,qo=new Wt.E9().setRectSpot(Ka.actualBounds,Mn);qo.subtract(Ka.location),qo.scale(2,2),qo.x+=Math.sign(qo.x)*130,qo.y+=Math.sign(qo.y)*130,qo.add(Ka.location),qo.snapToGridPoint(lo.diagram.grid.gridOrigin,lo.diagram.grid.gridCellSize);var aa=fa.copyNodeData(Ka.data);fa.setGroupKeyForNodeData(aa,fa.getGroupKeyForNodeData(Ka.data)),fa.addNodeData(aa);var za={from:Ka.key,to:fa.getKeyForNodeData(aa)};fa.addLinkData(za);var Ar=lo.diagram.findNodeForData(aa);Ar.location=qo,lo.diagram.select(Ar),setTimeout(()=>{lo.diagram.commandHandler.editTextBlock()},20)})};return Ur(Wt.bn,{figure:Co,alignment:Mn,alignmentFocus:Mn.opposite(),width:Mn.equals(Wt.z6.Top)||Mn.equals(Wt.z6.Bottom)?25:18,height:Mn.equals(Wt.z6.Top)||Mn.equals(Wt.z6.Bottom)?18:25,fill:"orange",stroke:Pn.white,strokeWidth:4,mouseEnter:(lo,oa)=>oa.fill="dodgerblue",mouseLeave:(lo,oa)=>oa.fill="orange",isActionable:!0,click:Ta,contextClick:Ta})}function ji(Mn){return Ur(Wt.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:(Co,Ta)=>Ta.fill="dodgerblue",mouseLeave:(Co,Ta)=>Ta.fill="orange",click:(Co,Ta)=>{Co.diagram.commandHandler.showContextMenu(Ta.part.adornedPart)}},Mn||{})}vn.current.nodeTemplate.selectionAdornmentTemplate=Ur(Wt.uz,"Spot",Ur(Wt.Vm,{padding:10}),xi(Wt.z6.Top,"TriangleUp"),xi(Wt.z6.Left,"TriangleLeft"),xi(Wt.z6.Right,"TriangleRight"),xi(Wt.z6.Bottom,"TriangleDown"),ji({alignment:new Wt.z6(.75,0)}));function Xo(Mn,Co){return(Ta,lo)=>{Ta.handled=!0,Ta.diagram.model.commit(oa=>{oa.set(lo.part.adornedPart.data,Mn,Co)})}}function wr(Mn,Co){return Co||(Co="color"),Ur(Wt.bn,{width:16,height:16,stroke:"lightgray",fill:Mn,margin:1,background:"transparent",mouseEnter:(Ta,lo)=>lo.stroke="dodgerblue",mouseLeave:(Ta,lo)=>lo.stroke="lightgray",click:Xo(Co,Mn),contextClick:Xo(Co,Mn)})}function Gi(){return[Ur("ContextMenuButton",Ur(Wt.s_,"Horizontal",wr(Pn.white,"fill"),wr(Pn.beige,"fill"),wr(Pn.extralightblue,"fill"),wr(Pn.extralightred,"fill"))),Ur("ContextMenuButton",Ur(Wt.s_,"Horizontal",wr(Pn.lightgray,"fill"),wr(Pn.lightgreen,"fill"),wr(Pn.lightblue,"fill"),wr(Pn.lightred,"fill")))]}function Jr(){return[Ur("ContextMenuButton",Ur(Wt.s_,"Horizontal",wr(Pn.black),wr(Pn.green),wr(Pn.blue),wr(Pn.red))),Ur("ContextMenuButton",Ur(Wt.s_,"Horizontal",wr(Pn.white),wr(Pn.magenta),wr(Pn.purple),wr(Pn.orange)))]}function ls(Mn,Co){return Co||(Co="thickness"),Ur(Wt.bn,"LineH",{width:16,height:16,strokeWidth:Mn,margin:1,background:"transparent",mouseEnter:(Ta,lo)=>lo.background="dodgerblue",mouseLeave:(Ta,lo)=>lo.background="transparent",click:Xo(Co,Mn),contextClick:Xo(Co,Mn)})}function Pa(Mn,Co){return Co||(Co="dash"),Ur(Wt.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Mn,margin:1,background:"transparent",mouseEnter:(Ta,lo)=>lo.background="dodgerblue",mouseLeave:(Ta,lo)=>lo.background="transparent",click:Xo(Co,Mn),contextClick:Xo(Co,Mn)})}function Oi(){return[Ur("ContextMenuButton",Ur(Wt.s_,"Horizontal",ls(1),ls(2),ls(3),ls(4))),Ur("ContextMenuButton",Ur(Wt.s_,"Horizontal",Pa(null),Pa([2,4]),Pa([4,4])))]}function Yi(Mn,Co){return Co||(Co="figure"),Ur(Wt.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Mn,margin:1,background:"transparent",mouseEnter:(Ta,lo)=>lo.fill="dodgerblue",mouseLeave:(Ta,lo)=>lo.fill="lightgray",click:Xo(Co,Mn),contextClick:Xo(Co,Mn)})}vn.current.nodeTemplate.contextMenu=Ur("ContextMenu",Ur("ContextMenuButton",Ur(Wt.s_,"Horizontal",Yi("Rectangle"),Yi("RoundedRectangle"),Yi("Ellipse"),Yi("Diamond"))),Ur("ContextMenuButton",Ur(Wt.s_,"Horizontal",Yi("Parallelogram2"),Yi("ManualOperation"),Yi("Procedure"),Yi("Cylinder1"))),Ur("ContextMenuButton",Ur(Wt.s_,"Horizontal",Yi("Terminator"),Yi("CreateRequest"),Yi("Document"),Yi("TriangleDown"))),Gi(),Jr(),Oi()),vn.current.groupTemplate=Ur(Wt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Wt.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Mn,Co)=>{var Ta=Co.addMembers(Co.diagram.selection,!0);Ta||Co.diagram.currentTool.doCancel()},avoidable:!1},new Wt.KX("location","loc",Wt.E9.parse).makeTwoWay(Wt.E9.stringify),Ur(Wt.s_,"Auto",{name:"BODY"},Ur(Wt.bn,{parameter1:10,fill:Pn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Wt.z6.AllSides,toSpot:Wt.z6.AllSides},new Wt.KX("fill"),new Wt.KX("stroke","color"),new Wt.KX("strokeWidth","thickness"),new Wt.KX("strokeDashArray","dash")),Ur(Wt.Vm,{background:"transparent",margin:20})),Ur(Wt.al,{alignment:Wt.z6.Top,alignmentFocus:Wt.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Wt.KX("text"),new Wt.KX("stroke","color"))),vn.current.groupTemplate.selectionAdornmentTemplate=Ur(Wt.uz,"Spot",Ur(Wt.s_,"Auto",Ur(Wt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ur(Wt.Vm,{margin:1.5})),ji({alignment:Wt.z6.TopRight,alignmentFocus:Wt.z6.BottomRight})),vn.current.groupTemplate.contextMenu=Ur("ContextMenu",Gi(),Jr(),Oi()),vn.current.linkTemplate=Ur(Wt.rU,{layerName:"Foreground",routing:Wt.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Wt.KX("fromSpot","fromSpot",Wt.z6.parse),new Wt.KX("toSpot","toSpot",Wt.z6.parse),new Wt.KX("fromShortLength","dir",Mn=>Mn>=1?10:0),new Wt.KX("toShortLength","dir",Mn=>Mn>=1?10:0),new Wt.KX("points").makeTwoWay(),Ur(Wt.bn,{strokeWidth:2},new Wt.KX("stroke","color"),new Wt.KX("strokeWidth","thickness"),new Wt.KX("strokeDashArray","dash")),Ur(Wt.bn,{segmentIndex:0,segmentOffset:new Wt.E9(15,0),segmentOrientation:Wt.rU.OrientAlong,alignmentFocus:Wt.z6.Right,figure:"circle",width:10,strokeWidth:0},new Wt.KX("fill","color"),new Wt.KX("visible","dir",Mn=>Mn===1)),Ur(Wt.bn,{segmentIndex:-1,segmentOffset:new Wt.E9(-10,6),segmentOrientation:Wt.rU.OrientPlus90,alignmentFocus:Wt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Wt.KX("fill","color"),new Wt.KX("visible","dir",Mn=>Mn>=1),new Wt.KX("width","thickness",Mn=>7+3*Mn),new Wt.KX("height","thickness",Mn=>7+3*Mn),new Wt.KX("segmentOffset","thickness",Mn=>new Wt.E9(-15,4+1.5*Mn))),Ur(Wt.bn,{segmentIndex:0,segmentOffset:new Wt.E9(15,-6),segmentOrientation:Wt.rU.OrientMinus90,alignmentFocus:Wt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Wt.KX("fill","color"),new Wt.KX("visible","dir",Mn=>Mn===2),new Wt.KX("width","thickness",Mn=>7+3*Mn),new Wt.KX("height","thickness",Mn=>7+3*Mn),new Wt.KX("segmentOffset","thickness",Mn=>new Wt.E9(-15,4+1.5*Mn))),Ur(Wt.al,{alignmentFocus:new Wt.z6(0,1,-4,0),editable:!0},new Wt.KX("text").makeTwoWay(),new Wt.KX("stroke","color"))),vn.current.linkTemplate.selectionAdornmentTemplate=Ur(Wt.uz,Ur(Wt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:uo(2)},new Wt.KX("pathPattern","thickness",uo)),ji({alignmentFocus:new Wt.z6(0,0,-6,-4)}));function uo(Mn){return Ur(Wt.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Mn+4).toString()+" H3"})}function ba(Mn){var Co="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Mn===0?Co="M0 0 M16 16 M0 8 L16 8":Mn===2&&(Co="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ur(Wt.bn,{geometryString:Co,margin:2,background:"transparent",mouseEnter:(Ta,lo)=>lo.background="dodgerblue",mouseLeave:(Ta,lo)=>lo.background="transparent",click:Xo("dir",Mn),contextClick:Xo("dir",Mn)})}function Go(Mn){var Co=(Ta,lo)=>{Ta.handled=!0,Ta.diagram.model.commit(oa=>{var fa=lo.part.adornedPart;oa.set(fa.data,Mn?"toSpot":"fromSpot",Wt.z6.stringify(Wt.z6.AllSides)),(Mn?fa.toNode:fa.fromNode).invalidateConnectedLinks()})};return Ur(Wt.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Ta,lo)=>lo.background="dodgerblue",mouseLeave:(Ta,lo)=>lo.background="transparent",click:Co,contextClick:Co})}function zr(Mn,Co){var Ta=0,lo=Wt.z6.RightSide;Mn.equals(Wt.z6.Top)?(Ta=270,lo=Wt.z6.TopSide):Mn.equals(Wt.z6.Left)?(Ta=180,lo=Wt.z6.LeftSide):Mn.equals(Wt.z6.Bottom)&&(Ta=90,lo=Wt.z6.BottomSide),Co||(Ta-=180);var oa=(fa,Ka)=>{fa.handled=!0,fa.diagram.model.commit(qo=>{var aa=Ka.part.adornedPart;qo.set(aa.data,Co?"toSpot":"fromSpot",Wt.z6.stringify(lo)),(Co?aa.toNode:aa.fromNode).invalidateConnectedLinks()})};return Ur(Wt.bn,{alignment:Mn,alignmentFocus:Mn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Ta,background:"transparent",mouseEnter:(fa,Ka)=>Ka.background="dodgerblue",mouseLeave:(fa,Ka)=>Ka.background="transparent",click:oa,contextClick:oa})}vn.current.linkTemplate.contextMenu=Ur("ContextMenu",Jr(),Oi(),Ur("ContextMenuButton",Ur(Wt.s_,"Horizontal",ba(0),ba(1),ba(2))),Ur("ContextMenuButton",Ur(Wt.s_,"Horizontal",Ur(Wt.s_,"Spot",Go(!1),zr(Wt.z6.Top,!1),zr(Wt.z6.Left,!1),zr(Wt.z6.Right,!1),zr(Wt.z6.Bottom,!1)),Ur(Wt.s_,"Spot",{margin:new Wt.Zt(0,0,0,2)},Go(!0),zr(Wt.z6.Top,!0),zr(Wt.z6.Left,!0),zr(Wt.z6.Right,!0),zr(Wt.z6.Bottom,!0)))));const vo=`{ "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 sl=["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 gs(Mn){return console.log("shapeName:",Mn),sl.indexOf(Mn)>=0}var es=new Wt.YI(mi.current,{maxSelectionCount:1,linkTemplate:Ur(Wt.rU,{locationSpot:Wt.z6.Center,selectionAdornmentTemplate:Ur(Wt.uz,"Link",{locationSpot:Wt.z6.Center},Ur(Wt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ur(Wt.bn,{toArrow:"Standard",stroke:null}))},{routing:Wt.rU.AvoidsNodes,curve:Wt.rU.JumpOver,corner:5,toShortLength:4},new Wt.KX("points"),Ur(Wt.bn,{isPanelMain:!0,strokeWidth:2}),Ur(Wt.bn,{toArrow:"Standard",stroke:null})),model:new Wt.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Wt.bn.getFigureGenerators().toArray().map(Mn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Mn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return vn.current.addDiagramListener("TextEdited",function(Mn){var Co;const Ta=Mn.subject.part;var lo=(Co=document.activeElement)==null?void 0:Co.value;typeof lo=="string"&&lo.trim()===""&&vn.current.model.commit(function(oa){oa.set(Ta.data,"text","\u672A\u547D\u540D"),vn.current.commandHandler.stopCommand()},"increment")}),es.nodeTemplate=Ur(Wt.NB,"Auto",{locationSpot:Wt.z6.Center},new Wt.KX("location","location",Wt.E9.parse).makeTwoWay(Wt.E9.stringify),Ur(Wt.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 Wt.KX("stroke").makeTwoWay(),new Wt.KX("fill").makeTwoWay(),new Wt.KX("figure")),Ur(Wt.al,{margin:new Wt.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Wt.$u(16,16),maxSize:new Wt.$u(10,NaN),textAlign:"center",editable:!0},new Wt.KX("key").makeTwoWay())),setTimeout(()=>{vn.current.grid=Ur(Wt.s_,"Grid",Ur(Wt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ur(Wt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),vn.current.grid.visible=!0,vn.current.grid.gridCellStroke="darkgray",vn.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=vn.current,vn.current}const _i=()=>Ye(this,null,function*(){var Ur,Pn=vn.current.makeImage();const xi=yield(0,Ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Pn.src,file_data:JSON.stringify({login:(Ur=(0,it.eY)())==null?void 0:Ur.login,data:JSON.parse(vn.current.model.toJson())})}});Wn({src:xi.url})});return(0,ie.useEffect)(()=>(setTimeout(()=>{Ri()},500),Cr(Hn+1),()=>{vn.current=null}),[]),vt.createElement("div",{ref:ti,className:"body-overflow-initial"},vt.createElement(Zt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Hn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:vt.createElement(zn.Z,null,vt.createElement(ct.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),vt.createElement(ct.Z,{onClick:()=>{var Ur,Pn,xi=vn.current.selection.first();if(gi.current=!gi.current,document.activeElement&&xi){let ji=(Pn=(Ur=document.activeElement)==null?void 0:Ur.value)==null?void 0:Pn.trim();typeof ji=="string"&&vn.current.model.commit(function(Xo){Xo.set(xi.data,"text",ji||"\u672A\u547D\u540D"),vn.current.commandHandler.stopCommand()},"increment")}Cr(Hn+1)}},vt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Vn},vt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:gi.current?"none":"block"},className:He.flowChartWrp},vt.createElement("div",{style:{display:"flex",height:"100%"}},vt.createElement("div",{style:{width:"300px",height:"100%"}},vt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),vt.createElement("div",{style:{height:"calc(100% - 50px)"},className:He.myPaletteDiv,ref:mi})),vt.createElement("div",{style:{flex:1,position:"relative"}},vt.createElement("div",{ref:tr,style:{height:"80vh"}}))),vt.createElement("div",{className:"tr"},vt.createElement(Nt.ZP,{size:"large",onClick:_i,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var In=It,Kn=ae(98813),dr=ae(37720);const Rn=Kn.ZP.Group,er={margin:"0 8px"};var yn=({callback:Vn,onCancel:Wn})=>{function vn(tr){Vn(tr)}return ie.createElement(gt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:vn},ie.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ie.createElement("span",{style:er},"\u5355\u5143\u683C\u6570\uFF1A"),ie.createElement("span",{style:er},"\u884C\u6570"),ie.createElement(gt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ie.createElement(dr.Z,null)),ie.createElement("span",{style:er},"\u5217\u6570"),ie.createElement(gt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ie.createElement(dr.Z,null))),ie.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ie.createElement("span",{style:er},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ie.createElement(gt.default.Item,{name:"align"},ie.createElement(Rn,null,ie.createElement(Kn.ZP,{value:"default"},ie.createElement("i",{className:"fa fa-align-justify"})),ie.createElement(Kn.ZP,{value:"left"},ie.createElement("i",{className:"fa fa-align-left"})),ie.createElement(Kn.ZP,{value:"center"},ie.createElement("i",{className:"fa fa-align-center"})),ie.createElement(Kn.ZP,{value:"right"},ie.createElement("i",{className:"fa fa-align-right"}))))),ie.createElement("div",{className:"flex-container flex-end"},ie.createElement(Nt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ie.createElement(Nt.ZP,{type:"ghost",onClick:Wn},"\u53D6\u6D88")))},Er=ae(59637),sr=ae(61016),Hr=ae.n(sr),yi=(0,ie.forwardRef)(({use3d:Vn,width:Wn,height:vn,callback:tr,showSaveButton:mi},gi)=>{const ti=(0,ie.useRef)(),Hn=(0,ie.useRef)(),[Cr,Ri]=(0,ie.useState)(!1),_i=(0,ie.useRef)({id:ti,appName:"graphing",width:Wn||1e3,height:vn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ie.useEffect)(()=>{Hn.current=new(Hr())(_i.current,!0),window.onload=function(){Hn.current.inject("applet_container")}},[]);const Ur=()=>{var Pn=window.ggbApplet.getPNGBase64(1,!0,72);return tr&&tr(Pn),Pn};return(0,ie.useEffect)(()=>{_i.current.appName=Cr?"3D":"graphing",Hn.current.inject("applet_container")},[Cr]),(0,ie.useEffect)(()=>{Ri(Vn)},[Vn]),(0,ie.useImperativeHandle)(gi,()=>({getImgData:Ur})),ie.createElement(ie.Fragment,null,ie.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ti}),ie.createElement(zn.Z,{align:"middle"},ie.createElement(ct.Z,{flex:1},ie.createElement(Er.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Cr,onChange:Pn=>Ri(Pn)})),ie.createElement(ct.Z,null,ie.createElement(Nt.ZP,{size:"large",onClick:Ur,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),ri=ae(36527),bn=ae(2453);const Xe="link",Ji="upload-image",Qn="add-flowchart",Sn="draw-image",to="add-flowchart",Ki="code-block",Zr="add-table",hi="------------",Ir={default:hi,left:`:${hi}`,center:`:${hi}:`,right:`${hi}:`};var fn=ae(99914);function Hi(){}let ao=0;const ui=1e4,ai="\u2581",Ni="@\u2581\u2581@",ir="@\u2581@",We=`
|
|
|
**\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`,rr=["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 ur(Vn){return/^\d+$/.test(Vn)?`${Vn}px`:Vn}const Or=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",jr={[Or+"-B"]:"bold",[Or+"-I"]:"italic"},si={[Xe]:"\u6DFB\u52A0\u94FE\u63A5",[Ki]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Ji]:"\u6DFB\u52A0\u56FE\u7247",[Sn]:"\u6DFB\u52A0\u753B\u56FE",[Qn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Zr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Fi=({defaultValue:Vn="",onChange:Wn,width:vn="100%",height:tr=400,miniToolbar:mi=!1,isFocus:gi=!1,watch:ti,insertTemp:Hn,mode:Cr="markdown",id:Ri="markdown-editor-id",showResizeBar:_i=!1,noStorage:Ur=!1,showNullButton:Pn=!1,showNullProgramButton:xi=!1,hidetoolBar:ji=!1,fullScreen:Xo=!1,onBlur:wr,onCMBeforeChange:Gi,onFullScreen:Jr,className:ls="",disablePaste:Pa=!1,disabled:Oi=!1,disabledFill:Yi=!1,placeholder:uo="",values:ba="",extraUse:Go})=>{const[zr,vo]=(0,ie.useState)(null),[sl,gs]=(0,ie.useState)(Vn),[es,Mn]=(0,ie.useState)(ti),[Co,Ta]=(0,ie.useState)(Xo),[lo,oa]=(0,ie.useState)(""),[fa,Ka]=(0,ie.useState)(0),[qo,aa]=(0,ie.useState)(tr),[za,Ar]=(0,ie.useState)(!1),[us,qt]=(0,ie.useState)(0),[At,Nr]=(0,ie.useState)(0),Qt=(0,ie.useRef)(),ln=(0,ie.useRef)(),En=(0,ie.useRef)(),Xn=(0,ie.useRef)();(0,ie.useEffect)(()=>{const Ln=window.scrollY||window.pageYOffset;gs(ba),zr==null||zr.setValue(ba),window.scrollTo(0,Ln)},[ba]),(0,ie.useEffect)(()=>{Jr==null||Jr(Co)},[Co]),(0,ie.useEffect)(()=>{if(Qt.current){let Ln=function(vr,sn){var mr;if(Pa){sn.preventDefault();return}const Vr=sn.clipboardData;if(Vr){const no=Vr.types.toString(),Xi=Vr.items;if(no==="Files"||Vr.types.indexOf("Files")>-1){if(sn.preventDefault(),Cr=="stex")return;try{let zi=Xi[1];((mr=Xi[0])==null?void 0:mr.kind)==="file"&&(zi=Xi[0]);const _o=zi.getAsFile(),sa=_o.name.split(".").pop();(0,Bn.I)(_o,Va=>{var os,Zs,Un;Va.id?((os=_o==null?void 0:_o.type)==null?void 0:os.indexOf("image"))>-1?or.replaceSelection(`<img width="100%" src="/api/attachments/${Va.id}?type=${Va.content_type})" alt="" />`):((Zs=_o==null?void 0:_o.type)==null?void 0:Zs.indexOf("video"))>-1?or.replaceSelection(`<video width="100%" controls src="/api/attachments/${Va.id}"></video>`):((Un=_o==null?void 0:_o.type)==null?void 0:Un.indexOf("pdf"))>-1?or.replaceSelection(`<a href="/api/attachments/${Va.id}?type=${_o.type}&disposition=inline" target="_blank">${_o.name}</a>`):rr.includes(sa)?or.replaceSelection(`<a href="/api/attachments/${Va.id}?type=office&disposition=inline" target="_blank">${_o.name}</a>`):or.replaceSelection(`[${_o.name}](/api/attachments/${Va.id}?type=${Va.content_type})`):(Va==null?void 0:Va.status)===401&&(document.location.href="/user/login")})}catch(zi){bn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const or=Fe().fromTextArea(Qt.current,{mode:Cr,lineNumbers:!mi,lineWrapping:!0,value:Vn,autoCloseTags:!0,autoCloseBrackets:!0});return or.on("keyup",function(vr,sn){sn.keyCode===8&&(vr.getValue()==""?or.setOption("placeholder",uo):or.setOption("placeholder",null))}),or.on("keydown",function(vr,sn){if(sn.keyCode===8){var mr=vi(vr);mr&&sn.preventDefault()}}),gi&&or.focus(),or.on("paste",Ln),Oi&&or.on("beforeChange",function(vr,sn){(sn.origin==="paste"||sn.origin==="+input")&&sn.cancel()}),vo(or),()=>{or.off("paste",Ln)}}},[]);const Rr=(0,ie.useCallback)(()=>{if(ln.current)try{}catch(Ln){console.log(Ln,"---- to set md editor body height")}},[qo,ln,Co]);(0,ie.useEffect)(()=>{function Ln(){let or=new Oe.Z(vr=>{for(let sn of vr)(sn.target.offsetHeight>0||sn.target.offsetWidth>0)&&(Rr(),zr.setSize("100%","100%"),zr.refresh())});return or.observe(Qt.current.parentElement),or}if(zr){const or=Ln();return()=>{var vr,sn;(vr=Qt.current)!=null&&vr.parentElement&&or.unobserve((sn=Qt.current)==null?void 0:sn.parentElement)}}},[zr,Rr]),(0,ie.useEffect)(()=>{if(zr){let Ln=[];for(const[or,vr]of Object.entries(jr)){let sn={[or]:()=>{ni(vr)}};Ln.push(sn),zr.addKeyMap(sn)}return()=>{for(let or of Ln)zr.removeKeyMap(or)}}},[zr]),(0,ie.useEffect)(()=>{Xo!==Co&&Ta(Xo)},[Xo]),(0,fn.Z)(()=>{if(!Ur&&fa>0){let Ln=new Date().getTime(),or=window.sessionStorage.getItem(Ri);Ln>=fa+ui&&(!or||or!==sl)&&(window.sessionStorage.setItem(Ri,sl),Ar(!0))}},ui),(0,ie.useEffect)(()=>{Mn(ti)},[zr,ti]),(0,ie.useEffect)(()=>{zr&&gi&&zr.focus()},[zr,gi]),(0,ie.useEffect)(()=>{if(es&&zr){let Ln=function(vr){let sn=vr.target;if(Xn.current){let mr=sn.scrollTop/sn.scrollHeight;Xn.current.scrollTop=Xn.current.scrollHeight*mr}};const or=zr.getScrollerElement();return or.addEventListener("scroll",Ln),()=>{or.removeEventListener("scroll",Ln)}}},[zr,es]),(0,ie.useEffect)(()=>{if(zr&&Gi){let Ln=function(or,vr){Gi(or,vr)};return zr.on("beforeChange",Ln),()=>{zr.off("beforeChange",Ln)}}},[zr,Gi]),(0,ie.useEffect)(()=>{if(zr&&wr){let Ln=function(){wr(zr.getValue())};return zr.on("blur",Ln),()=>{zr.off("blur",Ln)}}},[zr,wr]);function vi(Ln,or){var vr=Ln.getDoc(),sn=vr.getCursor(),mr=vr.getLine(sn.line),Vr=mr.charAt(sn.ch-1),no=mr.lastIndexOf("@\u2581@",sn.ch),Xi=mr.lastIndexOf("@\u2581\u2581@",sn.ch),zi=no>Xi?no:Xi,_o=no>Xi?3:4;if(Ni.indexOf(Vr)===-1)return null;if(console.log("change1:",or,Ln,mr,sn,zi,no,Xi,Vr),zi>=0&&sn.ch-zi<5){var sa=zi+_o;return vr.replaceRange("",{line:sn.line,ch:zi},{line:sn.line,ch:sa}),{line:sn.line,ch:sa}}return null}(0,ie.useEffect)(()=>{if(zr){let Ln=function(or,vr){const sn=or.getValue();gs(sn),Ka(new Date().getTime()),or.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Wn&&(xi?Wn(sn,ha(sn)):Wn(sn))};return zr.on("change",Ln),()=>{zr.off("change",Ln)}}},[zr,Wn]),(0,ie.useEffect)(()=>{if(zr)if(Vn==null)zr.setValue(""),gs("");else{const Ln=window.scrollY||window.pageYOffset;Vn!==zr.getValue()&&(zr.setValue(Vn),gs(Vn),zr.setCursor(Oi?1:zr.lineCount(),0),window.scrollTo(0,Ln))}},[zr,Vn]);const ni=(0,ie.useCallback)(Ln=>{const or=zr.getCursor(),vr=zr.getSelection();let sn=vr.split(`
|
|
|
`);switch(Ln){case"bold":return zr.replaceSelection("**"+vr+"**"),vr===""&&zr.setCursor(or.line,or.ch+2),zr.focus();case"italic":return zr.replaceSelection("*"+vr+"*"),vr===""&&zr.setCursor(or.line,or.ch+1),zr.focus();case"code":return zr.replaceSelection("`"+vr+"`"),vr===""&&zr.setCursor(or.line,or.ch+1),zr.focus();case"inline-latex":return oa("inline-latex"),zr.focus();case"latex":return zr.replaceSelection("```latex\n"+vr+"\n```"),zr.setCursor(or.line+1,vr.length+1),zr.focus();case"line-break":return zr.replaceSelection(`<br/>
|
|
|
`),zr.focus();case"list-ul":return vr===""?zr.replaceSelection("- "+vr):zr.replaceSelection(sn.map(mr=>mr===""?"":`- ${mr}`).join(`
|
|
|
`)),zr.focus();case"list-ol":return vr===""?zr.replaceSelection("1. "+vr):zr.replaceSelection(sn.map((mr,Vr)=>mr===""?"":`${Vr+1}. ${mr}`).join(`
|
|
|
`)),zr.focus();case"add-null-ch":return vr===""&&zr.setCursor(or.line,or.ch),zr.replaceSelection(ai),zr.focus();case"add-signal":return vr===""&&zr.setCursor(or.line,or.ch),zr.replaceSelection(ir),zr.focus();case"add-multiple":return vr===""&&zr.setCursor(or.line,or.ch),zr.replaceSelection(Ni),zr.focus();case"inster-template-1":return vr===""&&zr.setCursor(or.line,or.ch),zr.replaceSelection(We),zr.focus();case"eraser":return zr.setValue(""),zr.focus();case"trigger-watch":return Mn(!es),zr.focus();case"trigger-full-screen":return Ta(!Co),zr.focus();case Xe:oa(Xe);return;case Ki:oa(Ki);return;case Ji:oa(Ji);return;case Sn:oa(Sn);return;case"maths-latex":oa("maths-latex");return;case Qn:oa(Qn);return;case Zr:oa(Zr);return;default:throw new Error}},[zr,es,Co]),xr=(0,ie.useCallback)((Ln,or)=>{var vr,sn,mr,Vr,no,Xi;switch(oa(""),lo){case Xe:const{title:os,link:Zs}=Ln;return zr.replaceSelection(`[${os}](${Zs})`),zr.focus();case Ki:const{language:Un,content:ws}=Ln;return zr.replaceSelection(["```"+Un,ws,"```"].join(`
|
|
|
`)),zr.focus();case"maths-latex":for(var zi=atob(Ln),_o=new Uint8Array(zi.length),sa=0;sa<zi.length;sa++)_o[sa]=zi.charCodeAt(sa);var Va=new Blob([_o],{type:"image/png"});(0,Bn.I)(Va,Io=>{Io.id?zr.replaceSelection(``):(Io==null?void 0:Io.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":zr.replaceSelection("`$$"+Ln+"$$`");break;case Ji:case Sn:case to:const{src:Ds,alt:dl}=Ln,_a=or,js=(mr=(sn=(vr=_a==null?void 0:_a.name)==null?void 0:vr.split("."))==null?void 0:sn.pop)==null?void 0:mr.call(sn);return((Vr=_a==null?void 0:_a.type)==null?void 0:Vr.indexOf("image"))>-1||!(_a!=null&&_a.type)?_a!=null&&_a.align||_a!=null&&_a.width?zr.replaceSelection(`<p style="text-align:${_a.align||"initial"}"><img width="${_a.width?_a.width+"%":"initial"}" src="${Ds}" alt="${dl||""}" /></p>`):zr.replaceSelection(`<img width="100%" src="${Ds}" alt="${dl||""}" />`):((no=_a==null?void 0:_a.type)==null?void 0:no.indexOf("video"))>-1?zr.replaceSelection(`<video width="100%" controls src="${Ds}"></video>`):((Xi=_a==null?void 0:_a.type)==null?void 0:Xi.indexOf("pdf"))>-1?zr.replaceSelection(`<a href="${Ds}?type=${_a.type}&disposition=inline" target="_blank">${_a.name}</a>`):rr.includes(js)?zr.replaceSelection(`<a href="${Ds}?type=office&disposition=inline" target="_blank">${_a.name}</a>`):zr.replaceSelection(`[${_a.name}](${Ds})`),zr.focus();case Zr:const{row:ol,col:Tl,align:Wa}=Ln;let vs=`
|
|
|
`;for(let Io=0;Io<ol;Io++){let pa=[],Ua=[];for(let as=0;as<Tl;as++)Io===1&&Ua.push(Ir[Wa]),pa.push(" ");Io===1&&(vs+=`| ${Ua.join(" | ")} |
|
|
|
`),vs+=`| ${pa.join(Tl===1?"":" | ")} |
|
|
|
`}return zr.replaceSelection(vs+`
|
|
|
`),zr.focus();default:throw new Error}},[zr,lo]),xt=(0,ie.useMemo)(()=>{switch(lo){case Xe:return ie.createElement(Ie,{callback:xr,onCancel:Po});case Ki:return ie.createElement(on.Z,{callback:xr,onCancel:Po});case Ji:return ie.createElement(Bn.Z,{callback:xr,onCancel:Po});case Qn:return ie.createElement(In,{callback:xr,onCancel:Po});case Zr:return ie.createElement(yn,{callback:xr,onCancel:Po});case"maths-latex":return ie.createElement(yi,{showSaveButton:!0,callback:xr});case"inline-latex":return ie.createElement(ri.Z,{showSaveButton:!0,callback:xr});default:return null}},[lo]);function Po(){oa("")}(0,ie.useEffect)(()=>{if(En.current){let Ln=function(no){mr=!0,Vr=no.pageY},or=function(){mr=!1},vr=function(no){if(mr){let Xi=no.pageY-Vr;Xi<0&&(Xi=0),Xi>300&&(Xi=300);let zi=tr+Xi+"px";aa(zi)}},sn=En.current,mr=!1,Vr=0;return sn.addEventListener("mousedown",Ln),document.addEventListener("mousemove",vr),document.addEventListener("mouseup",or),()=>{sn.removeEventListener("mousedown",Ln),document.removeEventListener("mousemove",vr),document.removeEventListener("mouseup",or)}}},[zr,En]),(0,ie.useEffect)(()=>{aa(tr)},[tr]);const zo=ur(vn),ya=ur(qo),xa={width:zo,height:ya},Sa=(0,ie.useMemo)(()=>{if(fa){let Ln=new Date(fa),or=Ln.getHours(),vr=Ln.getMinutes(),sn=Ln.getSeconds();return or=or<10?"0"+or:or,vr=vr<10?"0"+vr:vr,sn=sn<10?"0"+sn:sn,`${or}:${vr}:${sn}`}return 0},[fa]),ha=Ln=>{const or=[];if(xi){let vr=-1;Ln=Ln.replace(/(@▁▁@|@▁@)/g,function(sn,mr,Vr){or.push({multiLine:sn!==ir})})}return or};function Gt(){window.sessionStorage.removeItem(Ri),Ar(!1),Ka(0)}function fr(){Ar(!1),Ka(0),zr.setValue(window.sessionStorage.getItem(Ri))}(0,ie.useEffect)(()=>{si[lo]&&lo!==Sn&&lo!==Qn&&setTimeout(()=>{const Ln=document.getElementsByClassName("markdown-popup-form")[0],or=window.innerWidth/2-Ln.offsetWidth/2,vr=window.innerHeight/2-Ln.offsetHeight/2;qt(or),Nr(vr)},0)},[lo]);const pr=Ln=>{Ln.preventDefault();const or=Ln.clientX-us,vr=Ln.clientY-At;document.body.onmousemove=sn=>{let mr=sn.clientX-or,Vr=sn.clientY-vr;const no=document.getElementsByClassName("markdown-popup-form")[0],Xi=window.innerWidth-no.offsetWidth,zi=window.innerHeight-no.offsetHeight;mr=Math.max(0,Math.min(mr,Xi)),Vr=Math.max(0,Math.min(Vr,zi)),Tr(sn.clientX,sn.clientY,or,vr)&&(qt(mr),Nr(Vr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Tr=(Ln,or,vr,sn)=>{const mr=document.body.clientHeight,Vr=document.body.clientWidth;return Ln<20&&vr>Ln||Ln>Vr-20&&vr<Ln||or<20&&sn>or||or>mr-20&&sn<or?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ie.createElement(ie.Fragment,null,ie.createElement("div",{className:"markdown-editor-wrapper",ref:ln},ie.createElement("div",{className:`markdown-editor-container ${ls} ${es?"on-preview":""} ${mi?"mini":""} ${Co?"full-screen":""}`,style:xa},ie.createElement(at,{insertTemp:Hn,watch:es,fullScreen:Co,showNullButton:Pn,showNullProgramButton:xi,onActionCallback:ni,hidetoolBar:ji,extraUse:Go}),ie.createElement("div",{className:"markdown-editor-body"},ie.createElement("div",{className:"codemirror-container"},ie.createElement("textarea",{ref:Qt,placeholder:uo})),es?ie.createElement("div",{ref:Xn,className:"preview-container"},Cr==="stex"&&ie.createElement(rt,{value:sl}),Cr!=="stex"&&ie.createElement(Et.Z,{disabledFill:Yi,showProgramFill:xi,value:sl})):null))),_i?ie.createElement("a",{ref:En,className:"editor-resize"}):null,lo===Sn&&ie.createElement(Ft,{callback:xr,onCancel:Po}),lo===Qn&&ie.createElement(In,{callback:xr,onCancel:Po}),ie.createElement(dt.Z,null,si[lo]&&lo!==Sn&&lo!==Qn?ie.createElement(Zt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:us,top:At},title:ie.createElement("div",{style:{cursor:"move"},onMouseDown:pr},si[lo]),open:!0,onCancel:Po,footer:null,destroyOnClose:!0,width:lo===Qn?"1200px":null,height:lo===Qn?"80vh":null,className:"markdown-popup-form"},xt):null))}},70859:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return Be},I:function(){return dt}});var ie=ae(91773),Pe=ae(2453),Fe=ae(28802),Oe=ae(78957),tt=ae(37720),Me=ae(98813),_e=ae(85804),ut=ae(15476),et=ae(67294),lt=ae(67294),Et=Object.defineProperty,rt=Object.defineProperties,_t=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,de=(gt,ft,Nt)=>ft in gt?Et(gt,ft,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):gt[ft]=Nt,le=(gt,ft)=>{for(var Nt in ft||(ft={}))te.call(ft,Nt)&&de(gt,Nt,ft[Nt]);if(Ge)for(var Nt of Ge(ft))ee.call(ft,Nt)&&de(gt,Nt,ft[Nt]);return gt},pe=(gt,ft)=>rt(gt,_t(ft));const{useForm:me}=ie.default,xe={width:280,marginRight:10},be={labelCol:{span:5},wrapperCol:{span:19}};var Be=({callback:gt,onCancel:ft})=>{const[Nt]=me();let Tt=(0,et.useRef)();function Ct(nn){Tt.current.width=Nt.getFieldValue("width"),Tt.current.align=Nt.getFieldValue("align"),gt(nn,Tt.current)}function Vt(nn,Cn){if(nn.status===-1){Pe.ZP.error(nn.message);return}Nt.setFieldsValue({src:`/api/attachments/${nn.id}`,type:Cn.type})}function Rt(nn){let Cn=nn.target.files[0];Tt.current=Cn,dt(Cn,Vt)}return lt.createElement(ie.default,pe(le({form:Nt},be),{className:"upload-image-panel",onFinish:Ct,style:{width:470,overflow:"hidden"}}),lt.createElement(ie.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},lt.createElement("div",{className:"flex-container"},lt.createElement(ie.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},lt.createElement(Fe.default,{style:xe})),lt.createElement(at,{onFileChange:Rt}))),lt.createElement(ie.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},lt.createElement(Fe.default,{style:{width:264}})),lt.createElement(ie.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},lt.createElement(Oe.Z,null,lt.createElement(ie.default.Item,{name:"width",style:{margin:0}},lt.createElement(tt.Z,{style:{width:264}})),lt.createElement("span",{className:"ml8"},"%"))),lt.createElement(ie.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},lt.createElement(Me.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"}]})),lt.createElement("aside",null,lt.createElement(ie.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},lt.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),lt.createElement(_e.ZP,{type:"default",onClick:ft},"\u53D6\u6D88"))))};function at({onFileChange:gt}){return lt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",lt.createElement("input",{type:"file",onChange:gt}))}function dt(gt,ft){if(!gt)throw new String("\u6CA1\u6709\u6587\u4EF6");let Nt=new FormData;Nt.append("editormd-image-file",gt),Nt.append("file_param_name","editormd-image-file"),Nt.append("byxhr","true");var Tt=new window.XMLHttpRequest;Tt.withCredentials=!0,Tt.addEventListener("load",function(Ct){ft(JSON.parse(Ct.target.responseText),gt)},!1),Tt.addEventListener("error",function(Ct){console.error(Ct)},!1),Tt.open("POST",`${ut.KI}/api/attachments.json`),Tt.send(Nt)}},76621:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return Fe}});var ie=ae(67294),Pe=ae(73935);class Fe extends ie.Component{constructor(tt){super(tt);const Me=window.document;this.node=Me.createElement("div"),Me.body.appendChild(this.node)}render(){const{children:tt}=this.props;return(0,Pe.createPortal)(tt,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},36295:function(Ke,we,ae){"use strict";ae.d(we,{SV:function(){return Wt},ZP:function(){return Ft}});var ie=ae(67294),Pe=ae(91033);const Fe={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"]},Oe={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"]},tt={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(`
|
|
|
`)}]},Me={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(`
|
|
|
`)}]},_e={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 ut=ae(84204),et=ae.n(ut),lt=(ht,tn,an)=>new Promise((ct,Ue)=>{var He=Ye=>{try{vt(an.next(Ye))}catch(It){Ue(It)}},it=Ye=>{try{vt(an.throw(Ye))}catch(It){Ue(It)}},vt=Ye=>Ye.done?ct(Ye.value):Promise.resolve(Ye.value).then(He,it);vt((an=an.apply(ht,tn)).next())});const Et={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"]}},rt=(ht,tn,an,ct)=>{const Ue=tn.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:an.lineNumber,endColumn:an.column});return Array.from(new Set(Ue.match(/\b\w{2,}\b/g)||[])).map(it=>({label:it,kind:ht.languages.CompletionItemKind.Text,insertText:it,range:ct}))},_t=(ht,tn,an,ct)=>{ht.languages.registerCompletionItemProvider(tn,{provideCompletionItems(Ue,He){const it=Ue.getWordUntilPosition(He),vt={startLineNumber:He.lineNumber,endLineNumber:He.lineNumber,startColumn:it.startColumn,endColumn:it.endColumn},Ye=Ue.getLineContent(He.lineNumber).substring(it.startColumn-2,it.endColumn);return{suggestions:[...rt(ht,Ue,He,vt),...an.map(In=>({label:In,kind:ht.languages.CompletionItemKind.Keyword,documentation:In,insertText:In,insertTextRules:ht.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:vt})),...ct.map(In=>({label:In.label,kind:ht.languages.CompletionItemKind.Snippet,documentation:In.content,insertText:Ye.startsWith("#")?In.content.replace(/#/,""):In.content,insertTextRules:ht.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:vt}))]}}})};var Ge=ht=>{Et.languages.forEach(tn=>{ht.languages.registerDocumentFormattingEditProvider(tn,{provideDocumentFormattingEdits(an){return lt(this,null,function*(){const ct=et()(an.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:an.getFullModelRange(),text:ct}]})}})}),_t(ht,"java",Oe.keywords,Oe.quickKey),_t(ht,"cpp",tt.keywords,tt.quickKey),_t(ht,"c",Fe.keywords,[]),_t(ht,"python",Me.keywords,Me.quickKey),_t(ht,"scala",_e.keywords,_e.quickKey)};const te="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ee=Object.defineProperty,de=(ht,tn,an)=>tn in ht?ee(ht,tn,{enumerable:!0,configurable:!0,writable:!0,value:an}):ht[tn]=an,le=(ht,tn,an)=>de(ht,typeof tn!="symbol"?tn+"":tn,an);const pe=class o1{constructor(tn,an,ct){this.placeholder=tn,this.editor=an,this.monaco=ct,an.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return o1.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)}};le(pe,"ID","editor.widget.placeholderHint");var xe=pe,be=ae(84144),Be=ae(2453),at=ae(83062),dt=ae(96486),gt=ae(33054),ft=ae(74855),Nt=Object.defineProperty,Tt=Object.defineProperties,Ct=Object.getOwnPropertyDescriptors,Vt=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,nn=Object.prototype.propertyIsEnumerable,Cn=(ht,tn,an)=>tn in ht?Nt(ht,tn,{enumerable:!0,configurable:!0,writable:!0,value:an}):ht[tn]=an,un=(ht,tn)=>{for(var an in tn||(tn={}))Rt.call(tn,an)&&Cn(ht,an,tn[an]);if(Vt)for(var an of Vt(tn))nn.call(tn,an)&&Cn(ht,an,tn[an]);return ht},Nn=(ht,tn)=>Tt(ht,Ct(tn)),wt=(ht,tn)=>{var an={};for(var ct in ht)Rt.call(ht,ct)&&tn.indexOf(ct)<0&&(an[ct]=ht[ct]);if(ht!=null&&Vt)for(var ct of Vt(ht))tn.indexOf(ct)<0&&nn.call(ht,ct)&&(an[ct]=ht[ct]);return an},pt=(ht,tn,an)=>new Promise((ct,Ue)=>{var He=Ye=>{try{vt(an.next(Ye))}catch(It){Ue(It)}},it=Ye=>{try{vt(an.throw(Ye))}catch(It){Ue(It)}},vt=Ye=>Ye.done?ct(Ye.value):Promise.resolve(Ye.value).then(He,it);vt((an=an.apply(ht,tn)).next())});function Ie(ht){return/^\d+$/.test(ht)?`${ht}px`:ht}function on(){}let Bn=!1;const Zt={"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 zn(ht=[]){let tn=ht;if(Array.isArray(ht)){for(let an=0;an<ht.length;an++){let ct=Zt[ht[an]];if(ct)return ct}return tn[0]}return Zt[tn]||tn}let _n=null;const nr=()=>pt(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(ht){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",ht)}});var Ft=ht=>{var tn=ht,{width:an="100%",height:ct="100%",value:Ue,language:He="javascript",style:it={},options:vt={},overrideServices:Ye={},theme:It="vs-dark",onEditBlur:In,isCopy:Kn=!1,onSave:dr,autoHeight:Rn=!1,forbidCopy:er=!1,onChange:yn=on,editorDidMount:Er=on,onFocus:sr=on,onBreakPoint:Hr=on,breakPointValue:An=[],filename:yi="educoder.txt",errorLine:ri,errorContent:bn="",highlightLine:Xe,openBreakPoint:Ji=!1,placeholder:Qn="",showMiniMap:Sn=!0}=tn,to=wt(tn,["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 Ki=(0,ie.useRef)(),Zr=(0,ie.useRef)({}),hi=(0,ie.useRef)(),Ir=(0,ie.useRef)(),fn=(0,ie.useRef)([]),Hi=(0,ie.useRef)(!1),ao=(0,ie.useRef)(),ui=(0,ie.useRef)(),ai=(0,ie.useRef)(!1),[Ni,ir]=(0,ie.useState)(!1);function We(){let Hn;return Ki.current&&(Hn=new Pe.Z(Cr=>{for(let Ri of Cr)(Ri.target.offsetHeight>0||Ri.target.offsetWidth>0)&&Zr.current.instance.layout()}),Hn.observe(Ki.current)),Hn}function rr(){Be.ZP.warning({content:decodeURIComponent(te),key:"monaco-editor-tip"})}const ur=()=>{let Hn=Zr.current.instance;if(Ue!=null&&Hn&&Ni){const Cr=Hn.getModel();Cr&&Ue!==Cr.getValue()&&(Bn=!0,Cr.setValue(Ue),Hn.layout(),Bn=!1)}};(0,ie.useEffect)(()=>{const Hn=gt.Z.subscribe("formatDocument",Cr=>{var Ri;let _i=Zr.current.instance;(Ri=_i==null?void 0:_i.getAction)==null||Ri.call(_i,"editor.action.formatDocument").run()});return window.updateMonacoValue=Cr=>{yn(Cr)},Hn},[]),(0,ie.useEffect)(()=>{var Hn;let Cr=Zr.current.instance;Ir.current&&clearTimeout(Ir.current),Ir.current=setTimeout(()=>{ur()},500),Ue&&(Ue!=null&&Ue.length)&&((Hn=Cr==null?void 0:Cr.updateOptions)==null||Hn.call(Cr,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Ue.split(/\r\n|\r|\n/g).length))+3,5)}))},[Ue,Ni,Zr.current]),(0,ie.useEffect)(()=>{if(ri&&Zr.current&&Zr.current.instance){let Cr=Zr.current.instance;Cr.changeViewZones(function(Ri){var _i=document.createElement("div");_i.style.padding="10px 20px",_i.style.width="calc(100% - 20px)",_i.className="my-error-line-wrp",_i.innerHTML=bn,Ri.addZone({afterLineNumber:ri||11,heightInLines:3,domNode:_i})});var Hn={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}};Cr.addOverlayWidget(Hn),Cr.revealPositionInCenter({lineNumber:20,column:1})}},[ri,Zr.current,Ni]);const hr=(Hn="",Cr)=>{if(!Hn||Hn.trim()==="")return!0;const _i=Zr.current.instance.getModel().getLineTokens(Cr);let Ur=!1;for(let Pn=0;Pn<2;Pn++)_i.getStandardTokenType(Pn)===1&&(Ur=!0);return Ur};(0,ie.useEffect)(()=>{var Hn;const Cr=(Hn=Zr.current)==null?void 0:Hn.instance;if(Cr&&Ni&&er){const Ri=Cr.onDidBlurEditorWidget(()=>{ai.current=!1}),_i=Cr.onDidFocusEditorText(()=>{ai.current=!0});return()=>{Ri.dispose(),_i.dispose()}}},[Zr.current,Ni,er]),(0,ie.useEffect)(()=>{var Hn;if((Hn=Zr.current)!=null&&Hn.instance&&Ni&&Ji){let Cr=Zr.current.instance,Ri=Cr.getModel();if(!Ri)return;(()=>{var Oi;let Yi=[],uo=[];const ba=Ri.getAllDecorations();for(let zr of ba)zr.options.className==="highlighted-line"&&(Yi.push((Oi=zr==null?void 0:zr.range)==null?void 0:Oi.startLineNumber),uo.push(zr==null?void 0:zr.id));if(Xe===Yi[0])return;Ri.deltaDecorations(uo,[]);const Go=Ri.getLineCount();Xe&&Xe<=Go&&(Cr.deltaDecorations([],[{range:new _n.Range(Xe,1,Xe,Ri.getLineMaxColumn(Xe)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Cr.revealLineInCenter(Xe))})();const Ur=(Oi=!1)=>{var Yi;let uo=[],ba=[];const Go=Ri.getAllDecorations();for(let zr of Go)zr.options.linesDecorationsClassName==="breakpoints-select"&&(uo.push((Yi=zr==null?void 0:zr.range)==null?void 0:Yi.startLineNumber),ba.push(zr==null?void 0:zr.id));if(Oi)return{lines:uo,ids:ba};Hr(uo)},Pn=Oi=>pt(void 0,null,function*(){let Yi={range:new _n.Range(Oi,1,Oi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Ri.deltaDecorations([],[Yi]),Ur()}),xi=Oi=>pt(void 0,null,function*(){let Yi=[];const uo=Cr.getLineDecorations(Oi);for(let ba of uo)ba.options.linesDecorationsClassName==="breakpoints-select"&&Yi.push(ba.id);yield Ri.deltaDecorations(Yi,[]),Ur()}),ji=Oi=>{let Yi=Cr.getLineDecorations(Oi);for(let uo of Yi)if(uo.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,dt.isEqual)(An,Ur(!0).lines)){Ri.deltaDecorations(Ur(!0).ids,[]);const Oi=An.map(Yi=>({range:new _n.Range(Yi,1,Yi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Ri.deltaDecorations([],Oi)}const Xo=Cr.onDidChangeModelContent(Oi=>{let Yi=Cr.getPosition();if(Yi){let uo=Yi.lineNumber;clearTimeout(ui.current),ui.current=setTimeout(()=>{hr(Ri.getLineContent(uo),uo)?xi(uo):ji(uo)?(xi(uo),Pn(uo)):Ur()},100)}}),wr=Cr.onMouseDown(Oi=>{var Yi,uo,ba;if(Oi.target.detail&&((ba=(uo=(Yi=Oi.target)==null?void 0:Yi.element)==null?void 0:uo.className)!=null&&ba.includes("line-numbers"))){let Go=Oi.target.position.lineNumber;if(hr(Ri.getLineContent(Go),Go))return;ji(Go)?xi(Go):Pn(Go)}}),Gi=Oi=>{let Yi={range:new _n.Range(Oi,1,Oi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};fn.current=Cr.deltaDecorations(fn.current,[Yi])},Jr=()=>{fn.current=Cr.deltaDecorations(fn.current,[])},ls=Cr.onMouseMove(Oi=>{var Yi,uo,ba;if(Jr(),Oi.target.detail&&((ba=(uo=(Yi=Oi.target)==null?void 0:Yi.element)==null?void 0:uo.className)!=null&&ba.includes("line-numbers"))){let Go=Oi.target.position.lineNumber;if(hr(Ri.getLineContent(Go),Go))return;Gi(Go)}}),Pa=Cr.onMouseLeave(()=>{Jr()});return()=>{Xo.dispose(),wr.dispose(),ls.dispose(),Pa.dispose()}}},[Zr.current,Ni,An,Xe,Ji,He]),(0,ie.useEffect)(()=>{var Hn;(Hn=Zr.current)!=null&&Hn.instance&&Ji&&Zr.current.instance.setPosition({lineNumber:0,column:0})},[Xe]);function Or(){let Hn=Zr.current.instance;if(Hn){const Cr=Hn.getSelection(),Ri=Zr.current.pastePos||{},_i=new _n.Range(Ri.startLineNumber||Cr.endLineNumber,Ri.startColumn||Cr.endColumn,Ri.endLineNumber||Cr.endLineNumber,Ri.endColumn||Cr.endColumn);setTimeout(()=>{Hn.executeEdits("",[{range:_i,text:""}])},300)}}function jr(Hn){(window.navigator.platform.match("Mac")?Hn.metaKey:Hn.ctrlKey)&&Hn.keyCode==83&&(Hn.preventDefault(),dr())}const si=()=>{if(Rn&&Zr.current.instance){const Hn=Zr.current.instance.getContentHeight();gi(Hn<ct?ct:Hn)}else gi(ct)};function Fi(Hn){var Cr=document.createEvent("MouseEvents");Cr.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Hn.dispatchEvent(Cr)}const Vn=Hn=>{if(!ai.current)return;const{keyCode:Cr,ctrlKey:Ri,metaKey:_i,target:Ur,type:Pn}=Hn;return(Pn==="paste"||(Cr===67||Cr===86)&&(_i||Ri))&&Ur.nodeName==="TEXTAREA"&&(rr(),Hn.preventDefault()),!1};function Wn(Hn,Cr){var Ri=window.URL||window.webkitURL||window,_i=new Blob([Cr]),Ur=document.createElementNS("http://www.w3.org/1999/xhtml","a");Ur.href=Ri.createObjectURL(_i),Ur.download=Hn,Fi(Ur)}(0,ie.useEffect)(()=>{si()},[si]),(0,ie.useEffect)(()=>{Ki.current&&!Ni&&Promise.all([ae.e(5552),ae.e(9651)]).then(ae.bind(ae,55826)).then(Hn=>{try{_n=Hn,Zr.current.instance=_n.editor.create(Ki.current,{value:Ue,language:zn(He),theme:It,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Sn||!1}},Ye);const Cr=Zr.current.instance;let Ur=[...be.BH._menuItems].find(Xo=>Xo[0]._debugName=="EditorContext")[1],Pn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],xi=(Xo,wr)=>{var Gi,Jr;let ls=Xo._first;do wr.includes((Jr=(Gi=ls.element)==null?void 0:Gi.command)==null?void 0:Jr.id)&&Xo._remove(ls);while(ls=ls.next)};if(Er(Cr,_n),setTimeout(()=>{si(),Zr.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Wn(yi||"educoder.txt",Cr.getValue())}})},500),Zr.current.subscription=Cr.onDidChangeModelContent(Xo=>{Hi.current?clearTimeout(ao.current):(si(),yn(Cr.getValue(),Xo)),ao.current=setTimeout(()=>{Hi.current=!1},500)}),window.Monaco||Ge(_n,zn(He)),er&&(xi(Ur,Pn),Ki.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Vn),window.removeEventListener("paste",Vn),window.addEventListener("keydown",Vn),window.addEventListener("paste",Vn)),window.Monaco=_n,In&&Cr.onDidBlurEditorWidget(()=>{In(Cr.getValue())}),sr&&Cr.onDidFocusEditorText(()=>{er&&nr(),sr(Cr.getValue())}),er){nr();try{Cr.onDidPaste(Xo=>{const wr=Cr.getSelection(),Gi=Zr.current.pastePos||{},Jr=new _n.Range(Gi.startLineNumber||wr.endLineNumber,Gi.startColumn||wr.endColumn,Gi.endLineNumber||wr.endLineNumber,Gi.endColumn||wr.endColumn);Cr.executeEdits("",[{range:Xo.range,text:""}])})}catch(Xo){}}let ji=We();return Qn&&typeof Qn=="string"&&new xe(Qn,Cr,_n),ir(!0),()=>{const Xo=Zr.current.instance;Xo.dispose();const wr=Xo.getModel();wr&&wr.dispose(),Zr.current.subscription&&Zr.current.subscription.dispose(),ji.unobserve(Ki.current)}}catch(Cr){}})},[]),(0,ie.useEffect)(()=>{if(Zr.current.instance&&Ni)return document.addEventListener("keydown",jr,!1),()=>{document.removeEventListener("keydown",jr)}},[dr,Ni]),(0,ie.useEffect)(()=>{let Hn=Zr.current.instance;if(Hn&&Ni){let Cr=zn(He);_n.editor.setModelLanguage(Hn.getModel(),Cr)}},[He,Ni]),(0,ie.useEffect)(()=>{Zr.current.instance&&Ni&&_n.editor.setTheme(It)},[It,Ni]),(0,ie.useEffect)(()=>{let Hn=Zr.current.instance;hi.current=vt,Hn&&Ni&&(Hn.updateOptions(un({},vt)),setTimeout(()=>{Hn.getModel().updateOptions(un({},vt))},200))},[JSON.stringify(vt),Ni]),(0,ie.useEffect)(()=>{let Hn=Zr.current.instance;Hn&&Ni&&Hn.layout()},[an,ct,Ni]);const[vn,tr]=(0,ie.useState)(Ie(an)),[mi,gi]=(0,ie.useState)(Ie(ct)),ti=Nn(un({},it),{width:vn,height:mi,position:"relative"});return ie.createElement("div",{className:"my-monaco-editor",ref:Ki,style:ti},Kn&&ie.createElement(ft.CopyToClipboard,{text:Ue,onCopy:()=>Be.ZP.success("\u590D\u5236\u6210\u529F")},ie.createElement(at.Z,{title:"\u590D\u5236\u4EE3\u7801"},ie.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},ie.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Wt({width:ht="100%",height:tn="100%",original:an,modified:ct,language:Ue,options:He={}}){const it=(0,ie.useRef)(),[vt,Ye]=(0,ie.useState)(null);function It(Rn){let er;return it.current&&(er=new Pe.Z(yn=>{for(let Er of yn)(Er.target.offsetHeight>0||Er.target.offsetWidth>0)&&Rn.layout()}),er.observe(it.current)),er}(0,ie.useEffect)(()=>(it.current&&Promise.all([ae.e(5552),ae.e(9404)]).then(ae.bind(ae,50048)).then(Rn=>{_n=Rn;const er=_n.editor.createDiffEditor(it.current,Nn(un({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},He),{wordWrap:!0}));Ye(er);let yn=It(er);return()=>{er.dispose();const Er=er.getModel();Er&&Er.dispose(),yn.unobserve(it.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,ie.useEffect)(()=>{vt&&vt.setModel({original:_n.editor.createModel(an,Ue),modified:_n.editor.createModel(ct,Ue)})},[an,ct,Ue,vt]);const In=Ie(ht),Kn=Ie(tn),dr={width:In,height:Kn};return ie.createElement("div",{className:"my-diff-editor",ref:it,style:dr})}},5476:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return Et}});var ie={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(74330),Fe=ae(83062),Oe=ae(94184),tt=ae.n(Oe),Me=ae(28706),_e=ae(26194),ut=ae(52262),et=ae(67294),Et=({className:rt,dataSource:_t=[],col:Ge=4,right:te,bottom:ee=23,precision:de=0,wrapWidth:le=1200,trackEventItems:pe,loading:me,onRemove:xe=()=>{},isCurrent:be=!0,showAlias:Be=!1})=>{const at=Math.floor((le-(Ge-1)*te)/Ge),dt=[{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 et.createElement(Pe.Z,{spinning:me},et.createElement("div",{className:tt()(ie.list,rt)},!!(_t!=null&&_t.length)&&(_t==null?void 0:_t.map((gt,ft)=>{var Nt;const{name:Tt,id:Ct,identifier:Vt,featured:Rt,school_name:nn,image_url:Cn,excellent:un,is_plan:Nn}=gt;return et.createElement("div",{key:Ct,className:ie.wrap,style:{width:at,marginRight:(1+ft)%Ge===0?0:te+de,marginBottom:ee}},et.createElement("a",{className:ie.li,onClick:wt=>{wt.preventDefault(),wt.stopPropagation(),pe&&(0,Me.L9)([pe]),(0,Me.xg)(`/paths/${Vt}`)}},et.createElement("div",{className:ie.img},et.createElement("img",{className:ie.cover,src:`${Cn}`}),be&&(0,ut.bg)()&&(gt==null?void 0:gt.studying)&&et.createElement("div",{className:`${ie.movebq} user-path-items`,onClick:wt=>{wt.stopPropagation(),xe(gt)}},et.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),et.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Nt=gt==null?void 0:gt.subject_tags)==null?void 0:Nt.map((wt,pt)=>{var Ie,on;if(pt===0){const Zt=(Ie=dt.find(zn=>zn.name==wt))==null?void 0:Ie.swimg;return et.createElement("img",{className:ie.sign,src:Zt,style:{left:"-4px"}})}const Bn=(on=dt.find(Zt=>Zt.name==wt))==null?void 0:on.ptimg;return et.createElement("img",{className:ie.sign,src:Bn,style:{left:`${48+52*(pt-1)+2*pt}px`}})}),et.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(gt==null?void 0:gt.excellent)&&et.createElement("div",{className:ie.bq},"\u5F00\u653E\u8BFE\u7A0B"))),et.createElement("div",{className:ie.name},et.createElement(Fe.Z,{title:Be&&(gt!=null&>.excellent_alias_name)?et.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Tt}`,et.createElement("br",null),et.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${gt==null?void 0:gt.excellent_alias_name}`)):Tt},et.createElement("span",{className:ie.e},Be&&(gt==null?void 0:gt.excellent_alias_name)||Tt))),et.createElement(Fe.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${nn}`},et.createElement("div",{className:ie.unit},et.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),nn)),et.createElement("div",{className:ie.tags},et.createElement("div",null,et.createElement(Fe.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},et.createElement("span",null,et.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),et.createElement("span",null,gt.stages_count))),et.createElement(Fe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},et.createElement("span",null,et.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),et.createElement("span",null,gt.members_count)))))))})),!_t.length&&et.createElement(_e.Z,null)))}},30001:function(Ke,we,ae){"use strict";ae.d(we,{jL:function(){return tt},w9:function(){return Ie},QD:function(){return ri},cQ:function(){return Cn.Z},op:function(){return yn},O5:function(){return ur},_b:function(){return to},t7:function(){return le},Gi:function(){return nr},YG:function(){return zn},qp:function(){return Et},vr:function(){return Ji},qE:function(){return Hr},Je:function(){return xe},wb:function(){return nn},cq:function(){return ct},tp:function(){return Ge}});var ie=ae(67294),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"},Fe="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==",tt=({dataSource:hr=[],img:Or,imgWidth:jr=346,title:si,sunTitle:Fi,bannerExtraContent:Vn})=>ie.createElement("div",{className:Pe.banner},ie.createElement("div",{className:Pe.content},ie.createElement("aside",null,ie.createElement("p",null,ie.createElement("b",null,si),ie.createElement("span",null,Fi)),hr.length>0&&ie.createElement("div",{className:Pe.btns},hr.map((Wn,vn)=>ie.createElement("div",{key:vn,onClick:Wn.click},Wn.name,Wn.sign?ie.createElement("img",{src:Fe,width:39}):null))),Vn),Or&&ie.createElement("img",{style:{marginTop:33,marginRight:38},src:Or,width:jr}))),Me={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"},_e=ae(94184),ut=ae.n(_e),et=ae(96486),Et=({dataSource:hr=[],value:Or,onChange:jr,onTitleChange:si,className:Fi,title:Vn,titleWidth:Wn=41,style:vn={},fontColor:tr="#6A7283",showCount:mi})=>{const[gi,ti]=(0,ie.useState)(0),[Hn,Cr]=(0,ie.useState)(!1),Ri=(0,ie.useRef)(null),_i=(0,ie.useRef)(null);return(0,ie.useEffect)(()=>{var Ur;hr.length!==0&&(((Ur=Ri==null?void 0:Ri.current)==null?void 0:Ur.clientHeight)>97?ti(1):ti(0)),hr.length===0&&ti(0),Cr(!1)},[hr]),ie.createElement("div",{className:ut()(Me.row,Fi),style:vn},ie.createElement("div",{onClick:(0,et.throttle)(()=>si==null?void 0:si(),2e3),style:{width:Wn,marginTop:Hn?12:4},className:`${Me.title} ${si?"current":""}`},Vn),ie.createElement("div",{className:Hn?`${Me.tagsWrap} ${Me.tagsBorderWrap}`:Me.tagsWrap},ie.createElement("div",{className:Me.bar,ref:_i,style:gi>0?{height:gi===1?97:"auto",overflow:gi===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ie.createElement("div",{className:Me.tag,ref:Ri},hr==null?void 0:hr.map(Ur=>ie.createElement("span",{onClick:()=>jr(Ur.id),key:Ur.id,style:{color:tr},className:Or===Ur.id?Me.active:""},ie.createElement("span",{title:Ur.name,className:Me.name},Ur.name),!!mi&&ie.createElement("span",{className:Me.num},Ur.count))))),!!gi&&ie.createElement(ie.Fragment,null,gi===1?ie.createElement("div",{onClick:()=>{var Ur;ti(2),((Ur=Ri==null?void 0:Ri.current)==null?void 0:Ur.clientHeight)>245?Cr(!0):Cr(!1)},className:Me.action},"\u5C55\u5F00",ie.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ie.createElement("div",{onClick:()=>{_i.current.scrollTop=0,ti(1),Cr(!1)},className:Me.action},"\u6536\u8D77",ie.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},rt={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"},Ge=({dataSource:hr=[],value:Or,onChange:jr,className:si,style:Fi={}})=>ie.createElement("div",{style:Fi,className:ut()(rt.tabs,si)},hr.map(Vn=>ie.createElement("span",{onClick:()=>jr(Vn.id),className:Or===Vn.id?rt.active:"",key:Vn.id},Vn.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(28802),le=({dataSource:hr=[],value:Or="",onChange:jr,onInputChange:si=()=>{},className:Fi,style:Vn={},placeholder:Wn,allowClear:vn=!1})=>{var tr;const[mi,gi]=(0,ie.useState)(""),[ti,Hn]=(0,ie.useState)("");(0,ie.useEffect)(()=>{var _i;let Ur=Or;(_i=JSON.stringify(Or))!=null&&_i.includes("{")&&(gi(Or.id),Ur=Or.value||"");try{Hn(decodeURIComponent(Ur||""))}catch(Pn){Hn(decodeURIComponent(Ur||""))}},[Or]);const Cr=()=>{jr(encodeURIComponent(ti),mi||null)},Ri=_i=>{_i!==mi&&(gi(_i),jr(encodeURIComponent(ti),_i))};return ie.createElement("div",{className:ut()(te.input,Fi),style:Vn},!!hr.length&&ie.createElement("div",{className:te.dropdown},ie.createElement("div",{className:te.text},(tr=hr.find(_i=>_i.id===mi))==null?void 0:tr.name,ie.createElement("i",{className:"iconfont icon-zhankai4"}),ie.createElement("b",{className:te.b1}),ie.createElement("b",{className:te.b2})),ie.createElement("div",{className:te.menu},hr.map((_i,Ur)=>ie.createElement("div",{key:Ur,onClick:()=>Ri(_i.id)},_i.name)))),ie.createElement(ee.default,{onPressEnter:Cr,value:ti,onChange:_i=>{Hn(_i.target.value),si(encodeURIComponent(_i.target.value),mi||null)},bordered:!1,placeholder:Wn}),ie.createElement("i",{onClick:Cr,className:"iconfont icon-sousuo9 font14 pl10 current"}))},pe={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"},xe=({value:hr,onChange:Or,className:jr,total:si,pageSize:Fi,style:Vn={}})=>{const Wn=hr<2,vn=hr>=Math.ceil(si/Fi);return si<=Fi?ie.createElement(ie.Fragment,null):ie.createElement("div",{className:ut()(pe.quickPager,jr),style:Vn},ie.createElement("div",{onClick:()=>{Wn||Or(hr-1,"prev")},className:Wn?pe.disabled:""},"\u4E0A\u4E00\u9875"),ie.createElement("div",{onClick:()=>{vn||Or(hr+1,"next")},className:vn?pe.disabled:""},"\u4E0B\u4E00\u9875"))},be={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Be=ae(74330),at=ae(83062),dt=ae(57097),gt=ae(11320),ft=ae(28706),Nt=ae(96908),Tt=ae(57177),Ct=ae(81378),Vt=ae(26194),nn=({className:hr,dataSource:Or=[],col:jr=4,right:si,bottom:Fi=23,precision:Vn=0,wrapWidth:Wn=1200,trackEventItems:vn,loading:tr})=>{const mi=Math.floor((Wn-(jr-1)*si)/jr);return ie.createElement(Be.Z,{spinning:tr},ie.createElement("div",{className:ut()(be.list,hr)},!!Or.length&&Or.map((gi,ti)=>{const{name:Hn,id:Cr,identifier:Ri,power:_i,cover_image_id:Ur,pic:Pn}=gi;return ie.createElement("div",{className:be.wrap,key:Cr,style:{width:mi,marginRight:(1+ti)%jr===0?0:si+Vn,marginBottom:Fi}},ie.createElement("a",{target:"_blank",href:`/shixuns/${Ri}/challenges`,className:be.li,onClick:xi=>{xi.preventDefault(),vn&&(0,ft.L9)([vn]),_i&&(0,ft.xg)(`/shixuns/${Ri}/challenges`)}},ie.createElement("div",{className:be.img},ie.createElement("img",{className:be.cover,src:`${Pn}`}),gi.is_jupyter&&ie.createElement("img",{className:be.sign,src:Nt}),gi.is_jupyter_lab&&ie.createElement("img",{className:be.sign,src:Tt}),gi.is_unity_3d&&ie.createElement("img",{className:be.sign,src:Ct})),ie.createElement("div",{className:be.name},ie.createElement(at.Z,{title:Hn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ie.createElement("span",{className:be.e},Hn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ie.createElement("div",{className:be.tags},ie.createElement(at.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ie.createElement("span",null,ie.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ie.createElement("span",null,gi.challenges_count))),!!gi.myshixuns_count&&ie.createElement(at.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ie.createElement("span",null,ie.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ie.createElement("span",null,gi.myshixuns_count))),ie.createElement(at.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ie.createElement("span",null,ie.createElement("span",null,gi.level))),ie.createElement("div",{className:be.rate},ie.createElement(dt.Z,{allowHalf:!0,disabled:!0,defaultValue:gi.score_info}),ie.createElement("span",null,"\xA0",gi.score_info?`${gi.score_info}\u5206`:"5\u5206")))),!_i&&ie.createElement("div",{className:be.lockWrap},ie.createElement("img",{src:`${gt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ie.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Or.length&&ie.createElement(Vt.Z,null)))},Cn=ae(5476),un={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Nn="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",wt=ae(67294),Ie=({className:hr,dataSource:Or=[],col:jr=4,right:si,bottom:Fi=23,precision:Vn=0,wrapWidth:Wn=1200,trackEventItems:vn,loading:tr,handleVery:mi=()=>!0})=>{const gi=Math.floor((Wn-(jr-1)*si)/jr);return wt.createElement(Be.Z,{spinning:tr},wt.createElement("div",{className:ut()(un.list,hr)},!!Or.length&&Or.map((ti,Hn)=>{const{subject_identifier:Cr,id:Ri,identifier:_i,power:Ur}=ti,Pn=ti.is_public!=0&&ti.is_public;return wt.createElement("div",{className:un.wrap,key:Ri,style:{width:gi,marginRight:(1+Hn)%jr===0?0:si+Vn,marginBottom:Fi}},wt.createElement("a",{className:un.li,onClick:xi=>{xi.preventDefault(),mi(ti==null?void 0:ti.first_category_url)&&(vn&&(0,ft.L9)([vn]),(0,ft.xg)(ti.first_category_url))}},wt.createElement("div",{className:un.top},wt.createElement(at.Z,{title:ti.name},wt.createElement("div",{className:un.name},ti.name)),wt.createElement("img",{className:un.img,src:gt.Z.IMG_SERVER+"/images/"+ti.avatar_url}),wt.createElement("div",{className:un.text,title:ti.creator},ti.creator),Cr&&wt.createElement("div",{className:un.btns},wt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),wt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Pn&&wt.createElement("div",{className:un.sign},"\u516C\u5F00")),wt.createElement("div",{className:un.bottom},ti.visits>0&&wt.createElement(at.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},wt.createElement("span",null,wt.createElement("i",{className:"iconfont icon-liulanyan"}),wt.createElement("span",null,ti.visits))),ti.course_members_count>0&&wt.createElement(at.Z,{title:"\u6210\u5458",placement:"bottom"},wt.createElement("span",null,wt.createElement("i",{className:"iconfont icon-chengyuan"}),ti.course_members_count)),ti.tasks_count>0&&wt.createElement(at.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},wt.createElement("span",null,wt.createElement("i",{className:"iconfont icon-zuoye"}),ti.tasks_count)),ti.is_end?wt.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):wt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!ti.is_accessible&&wt.createElement("div",{className:un.lockWrap},wt.createElement("img",{src:`${gt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),wt.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Or.length&&wt.createElement(Vt.Z,null)))},on={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"},Bn=ae(35973),zn=({dataSource:hr=[],value:Or,onChange:jr,className:si,style:Fi={},tabBarExtraContent:Vn})=>ie.createElement("div",{className:ut()(on.tabs,si),style:Fi},ie.createElement("div",{className:on.tabsWrap},hr.map((Wn,vn)=>!(Wn!=null&&Wn.hide)&&ie.createElement("aside",{className:on.tab,onClick:()=>{jr(Wn.id),Wn.link&&Bn.history.push(Wn.link)},key:vn},ie.createElement("div",{className:Or===Wn.id?on.active:""},Wn.name),(Wn==null?void 0:Wn.resetCount)==null&&(Wn==null?void 0:Wn.total)!==void 0&&ie.createElement("span",null,"\uFF08",Wn==null?void 0:Wn.total,"\uFF09"),(Wn==null?void 0:Wn.resetCount)!==void 0&&(Wn==null?void 0:Wn.total)!==void 0&&ie.createElement(at.Z,{title:(Wn==null?void 0:Wn.tip)!=null?Wn==null?void 0:Wn.tip:""},ie.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ie.createElement("span",{style:{color:"#000"}},Wn==null?void 0:Wn.resetCount),"/",ie.createElement("span",null,Wn==null?void 0:Wn.total),"\uFF09"))))),ie.createElement("div",{className:on.tabBar},Vn)),nr=({className:hr,style:Or={},children:jr})=>ie.createElement("div",{className:ut()(hr),style:Or},jr),Ft={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"},Wt=ae(85418),ht=ae(50136);const tn=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ct=({sortValue:hr,dropValue:Or,className:jr,onSort:si,onDrop:Fi,dataSource:Vn=tn})=>{var Wn;return ie.createElement("div",{className:ut()(Ft.orderWrap,jr)},ie.createElement(Wt.Z,{dropdownRender:()=>ie.createElement(ht.default,null,Vn.map((vn,tr)=>ie.createElement(ht.default.Item,{key:tr,onClick:()=>Fi(vn.id)},vn.name)))},ie.createElement("span",{className:Ft.orderTextWrap},(Wn=Vn.find(vn=>Or===vn.id))==null?void 0:Wn.name)),ie.createElement("span",{className:Ft.orderIconWrap},ie.createElement("span",{className:Ft.orderAsc},ie.createElement("i",{className:hr==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Ft.cursorPointer} ${Ft.active}`:`iconfont icon-sanjiaoxing-up font12 ${Ft.cursorPointer}`,onClick:()=>si(hr==="asc"?"desc":"asc")})),ie.createElement("span",{className:Ft.orderDesc},ie.createElement("i",{className:hr==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Ft.cursorPointer} ${Ft.active}`:`iconfont icon-sanjiaoxing-down font12 ${Ft.cursorPointer}`,onClick:()=>si(hr==="asc"?"desc":"asc")}))))},Ue={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"},He=ae(85804),it=Object.defineProperty,vt=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,In=(hr,Or,jr)=>Or in hr?it(hr,Or,{enumerable:!0,configurable:!0,writable:!0,value:jr}):hr[Or]=jr,Kn=(hr,Or)=>{for(var jr in Or||(Or={}))Ye.call(Or,jr)&&In(hr,jr,Or[jr]);if(vt)for(var jr of vt(Or))It.call(Or,jr)&&In(hr,jr,Or[jr]);return hr},dr=(hr,Or)=>{var jr={};for(var si in hr)Ye.call(hr,si)&&Or.indexOf(si)<0&&(jr[si]=hr[si]);if(hr!=null&&vt)for(var si of vt(hr))Or.indexOf(si)<0&&It.call(hr,si)&&(jr[si]=hr[si]);return jr},Rn=(hr,Or,jr)=>new Promise((si,Fi)=>{var Vn=tr=>{try{vn(jr.next(tr))}catch(mi){Fi(mi)}},Wn=tr=>{try{vn(jr.throw(tr))}catch(mi){Fi(mi)}},vn=tr=>tr.done?si(tr.value):Promise.resolve(tr.value).then(Vn,Wn);vn((jr=jr.apply(hr,Or)).next())}),yn=hr=>{var Or=hr,{className:jr,style:si,children:Fi,loading:Vn=!1,openLoading:Wn,onClick:vn=()=>{},size:tr="middle",shape:mi="round"}=Or,gi=dr(Or,["className","style","children","loading","openLoading","onClick","size","shape"]);const[ti,Hn]=(0,ie.useState)(!1);return ie.createElement(He.ZP,Kn({onClick:(0,et.throttle)(Cr=>Rn(void 0,null,function*(){Wn&&Hn(!0);try{yield vn(Cr)}catch(Ri){console.log("error",Ri)}Wn&&Hn(!1)}),2e3,{leading:!0,trailing:!1}),className:ut()(Ue.btn,Ue[`${tr}-${mi}`],jr),style:si,size:tr,shape:mi,loading:ti||Vn},gi),Fi)},Er={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"},Hr=({className:hr,style:Or,children:jr=null,onClick:si,title:Fi})=>ie.createElement("div",{className:ut()(Er.head,hr),style:Or},ie.createElement("span",{className:"primary-hover",onClick:si},ie.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ie.createElement("b",{title:Fi},Fi),ie.createElement("div",{className:Er.node},jr)),An={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"},ri=({confirmShow:hr=!0,confirmTitle:Or,confirmClick:jr,cancelShow:si=!0,cancelTitle:Fi,cancelClick:Vn,className:Wn,style:vn,confirmLoading:tr=!1})=>ie.createElement("div",{className:ut()(An.btns,Wn),style:vn},hr&&ie.createElement(He.ZP,{loading:tr,onClick:jr,type:"primary",className:An.confirm},Or),si&&ie.createElement(He.ZP,{onClick:Vn,className:An.cancel},Fi)),bn={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"},Ji=({className:hr,style:Or={},LeftContent:jr,children:si,RightContent:Fi})=>ie.createElement("div",{className:ut()(bn.fixedBottom,hr),style:Or},ie.createElement("div",{className:bn.wrap},ie.createElement("div",{className:bn.left},jr),ie.createElement("div",{className:bn.center},si),ie.createElement("div",{className:bn.right},Fi))),Qn={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"},to=({className:hr,style:Or={},dataSource:jr=[]})=>ie.createElement("div",{className:ut()(Qn.crumbs,hr),style:Or},jr.map((si,Fi)=>Fi<jr.length-1?ie.createElement(ie.Fragment,{key:Fi},si.path||si.onClick?ie.createElement("span",{className:Qn.hover,onClick:si!=null&&si.onClick?si.onClick:()=>Bn.history.push(si.path)},si.name):ie.createElement("span",null,si.name),ie.createElement("span",null,"\xA0",">","\xA0")):ie.createElement("span",{key:Fi,style:{color:"#5F6368"}},si.name))),Ki=ae(55054),Zr=Object.defineProperty,hi=Object.defineProperties,Ir=Object.getOwnPropertyDescriptors,fn=Object.getOwnPropertySymbols,Hi=Object.prototype.hasOwnProperty,ao=Object.prototype.propertyIsEnumerable,ui=(hr,Or,jr)=>Or in hr?Zr(hr,Or,{enumerable:!0,configurable:!0,writable:!0,value:jr}):hr[Or]=jr,ai=(hr,Or)=>{for(var jr in Or||(Or={}))Hi.call(Or,jr)&&ui(hr,jr,Or[jr]);if(fn)for(var jr of fn(Or))ao.call(Or,jr)&&ui(hr,jr,Or[jr]);return hr},Ni=(hr,Or)=>hi(hr,Ir(Or)),ir=(hr,Or)=>{var jr={};for(var si in hr)Hi.call(hr,si)&&Or.indexOf(si)<0&&(jr[si]=hr[si]);if(hr!=null&&fn)for(var si of fn(hr))Or.indexOf(si)<0&&ao.call(hr,si)&&(jr[si]=hr[si]);return jr};const{Countdown:We}=Ki.default;var ur=hr=>{var Or=hr,{onChange:jr}=Or,si=ir(Or,["onChange"]);const[Fi,Vn]=(0,ie.useState)(null);(0,ie.useEffect)(()=>{typeof Fi=="number"&&Fi>=0&&jr(Fi)},[Fi]);const Wn=vn=>{const tr=Math.floor(vn/1e3);Vn(tr)};return ie.createElement(We,Ni(ai({},si),{onChange:Wn}))}},99914:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return Pe}});var ie=ae(67294);function Pe(Fe,Oe){const tt=(0,ie.useRef)();(0,ie.useEffect)(()=>{tt.current=Fe}),(0,ie.useEffect)(()=>{function Me(){tt.current()}if(Oe!==null){let _e=setInterval(Me,Oe);return()=>clearInterval(_e)}},[Oe])}},92359:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return te}});var ie=ae(67294),Pe=ae(2453),Fe=ae(62844),Oe=ae(38089),tt=ae(35059),Me=ae(85804),_e=ae(11320),ut=ae(28706),et=ae(33170),lt=ae(35973),Et={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"},rt=ae(67294),_t=(ee,de,le)=>new Promise((pe,me)=>{var xe=at=>{try{Be(le.next(at))}catch(dt){me(dt)}},be=at=>{try{Be(le.throw(at))}catch(dt){me(dt)}},Be=at=>at.done?pe(at.value):Promise.resolve(at.value).then(xe,be);Be((le=le.apply(ee,de)).next())}),te=({visible:ee,onOk:de,onCancel:le,sub_discipline_id:pe=[]})=>{const[me,xe]=(0,ie.useState)([]),[be,Be]=(0,ie.useState)(!1),at=(0,lt.useParams)(),[dt,gt]=(0,ie.useState)([]),[ft,Nt]=(0,ie.useState)([]);(0,ie.useEffect)(()=>{ee?Tt():(Nt([]),xe([]),Be(!1))},[ee]);const Tt=()=>_t(void 0,null,function*(){const un=yield(0,et.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});gt(un.disciplines||[]),Nt((pe==null?void 0:pe.length)>0?pe:[])}),Ct=()=>{if((ft==null?void 0:ft.length)===0)return Pe.ZP.warning("\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B\uFF01");console.log("subDisciplineId",ft),Be(!0),de(me,ft[1],()=>{Be(!1)})},Vt=()=>{le()},Rt=()=>{const un=`${_e.Z.API_SERVER}/api/courses/${at.coursesId}/exercises/down_template`;(0,ut.Nd)(null,un)},nn=un=>{const Nn={name:un.name,uid:un.uid,file:un};return xe([Nn]),!1},Cn=()=>{xe([])};return rt.createElement(Fe.default,{title:"\u5BFC\u5165\u8BD5\u9898",open:ee,onOk:Ct,centered:!0,wrapClassName:Et.customModal,onCancel:Vt,width:663,okText:"\u786E\u8BA4",okButtonProps:{className:Et.okBtn},cancelText:"\u53D6\u6D88",confirmLoading:be},rt.createElement("div",{className:Et.content},rt.createElement("aside",null,rt.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA41"),rt.createElement("ul",null,rt.createElement("li",null,rt.createElement("span",{style:{color:"#5F6367"}},"\u6839\u636E\u6A21\u677F\u8981\u6C42\u7F16\u8F91\u9700\u8981\u4E0A\u4F20\u7684\u8BD5\u9898"),rt.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginLeft:20},onClick:Rt},"\u4E0B\u8F7D\u8003\u8BD5\u8BD5\u9898\u6A21\u677F"),rt.createElement("i",{className:"iconfont icon-xiazai4 ml10",onClick:Rt,style:{fontSize:14,cursor:"pointer",color:"#0152d9"}})),rt.createElement("li",{style:{color:"#FA6400"},className:"mt10"},"\u63D0\u793A"),rt.createElement("li",{className:Et.infoText},"1\u3001\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F\uFF1B "),rt.createElement("li",{className:Et.infoText},"2\u3001\u4E0D\u652F\u6301\u7EC4\u5408\u9898\u548C\u5B9E\u8BAD\u9898\u5BFC\u5165\uFF1B"),rt.createElement("li",{className:Et.infoText},"3\u3001\u6BCF\u6B21\u6700\u591A\u5BFC\u5165300\u9898\uFF1B"),rt.createElement("li",{className:Et.infoText},"4\u3001\u586B\u7A7A\u9898\u5BFC\u5165\u6700\u591A\u652F\u63018\u4E2A\u586B\u7A7A\u9879\u3002"))),rt.createElement("aside",{style:{marginTop:22}},rt.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA42"),rt.createElement("ul",{style:{flex:1}},rt.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&&rt.createElement(rt.Fragment,null,rt.createElement(Oe.Z,{value:ft,className:Et.selectitems,expandTrigger:"hover",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:dt,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:(un,Nn)=>{Nt(un||[])}}),rt.createElement("br",null),rt.createElement(tt.default,{action:`${_e.Z.API_SERVER}/api/attachments.json`,beforeUpload:nn,onRemove:Cn,withCredentials:!0,fileList:me,accept:".xls,.xlsx",showUploadList:!1},rt.createElement(Me.ZP,{className:Et.upload,type:"primary",icon:rt.createElement("i",{className:"iconfont icon-shangchuan3",style:{fontSize:14}})},"\u4E0A\u4F20\u6587\u4EF6"))),me.map((un,Nn)=>rt.createElement("div",{key:Nn,className:Et.fileList},rt.createElement("span",{className:Et.fileName},un==null?void 0:un.name),rt.createElement("i",{className:"iconfont icon-shanchu12",style:{color:"#F65160",fontSize:16,cursor:"pointer"},onClick:Cn})))))))}},96707:function(Ke,we,ae){"use strict";ae.d(we,{h:function(){return ie}});var ie=(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))(ie||{})},88742:function(Ke,we,ae){"use strict";ae.d(we,{H7:function(){return te},MK:function(){return Ge},MU:function(){return lt},X6:function(){return rt},bM:function(){return et},fi:function(){return ee},fu:function(){return ut},n4:function(){return de},rX:function(){return _t},vl:function(){return le},zO:function(){return Et}});var ie=ae(33170),Pe=Object.defineProperty,Fe=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,Me=(pe,me,xe)=>me in pe?Pe(pe,me,{enumerable:!0,configurable:!0,writable:!0,value:xe}):pe[me]=xe,_e=(pe,me)=>{for(var xe in me||(me={}))Oe.call(me,xe)&&Me(pe,xe,me[xe]);if(Fe)for(var xe of Fe(me))tt.call(me,xe)&&Me(pe,xe,me[xe]);return pe};function ut(pe,me){return(0,ie.U2)(`myproblems/${pe}.json`,_e({hidePopLogin:!0},me||{}))}function et(pe,me){return(0,ie.v_)(`myproblems/${pe}/code_submit.json`,me)}function lt(pe,me){return(0,ie.v_)(`myproblems/${pe}/code_debug.json`,me)}function Et(pe,me){return me.language&&(me.language=encodeURIComponent(me.language)),(0,ie.U2)(`myproblems/${pe}/submit_records.json`,me)}function rt(pe){return(0,ie.U2)("myproblems/record_detail.json",{id:pe})}function _t(pe,me){return(0,ie.U2)(`myproblems/${pe}/result.json`,{mode:me})}function Ge(pe,me){return(0,ie.v_)(`myproblems/${pe}/add_notes.json`,me)}function te(pe,me){return(0,ie.v_)(`myproblems/${pe}/restore_initial_code.json`,me)}function ee(pe){return(0,ie.v_)(`myproblems/${pe}/sync_code.json`)}function de(pe,me){return(0,ie.v_)(`myproblems/${pe}/update_code.json`,me)}function le(pe,me){return(0,ie.v_)(`discusses/${pe}/plus.json`,me)}},50637:function(Ke,we,ae){"use strict";var ie=ae(67294),Pe=ae(83062),Fe=ae(28802),Oe=ae(2453),tt=ae(62038),Me=ae(67294),_e=(et,lt,Et)=>new Promise((rt,_t)=>{var Ge=de=>{try{ee(Et.next(de))}catch(le){_t(le)}},te=de=>{try{ee(Et.throw(de))}catch(le){_t(le)}},ee=de=>de.done?rt(de.value):Promise.resolve(de.value).then(Ge,te);ee((Et=Et.apply(et,lt)).next())});const ut=({defaultValue:et,onFinish:lt})=>{const[Et,rt]=(0,ie.useState)(!1),[_t,Ge]=(0,ie.useState)(et);return(0,ie.useEffect)(()=>{Ge(et)},[et]),Me.createElement("div",null,Et?Me.createElement(Fe.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:_t,onChange:te=>{Ge(te.target.value)},onBlur:()=>_e(void 0,null,function*(){var te;if(((te=_t==null?void 0:_t.replaceAll(" ",""))==null?void 0:te.length)<=0){Oe.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield lt(_t))&&rt(!1)}),onPressEnter:()=>_e(void 0,null,function*(){var te;if(((te=_t==null?void 0:_t.replaceAll(" ",""))==null?void 0:te.length)<=0){Oe.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield lt(_t))&&rt(!1)})}):Me.createElement("div",{className:tt.Z.title},_t,Me.createElement(Pe.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},Me.createElement("i",{className:`${tt.Z.editIcon} iconfont icon-bianji_Hover`,onClick:()=>rt(!0)}))))};we.Z=ut},99640:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return lt}});var ie=ae(62844),Pe={ul:"ul___TdfYY"},Fe=ae(32637),Oe=ae(67294),tt=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,ut=(Et,rt)=>{var _t={};for(var Ge in Et)Me.call(Et,Ge)&&rt.indexOf(Ge)<0&&(_t[Ge]=Et[Ge]);if(Et!=null&&tt)for(var Ge of tt(Et))rt.indexOf(Ge)<0&&_e.call(Et,Ge)&&(_t[Ge]=Et[Ge]);return _t},lt=Et=>{var rt=Et,{open:_t,onCancel:Ge}=rt,te=ut(rt,["open","onCancel"]);return Oe.createElement(ie.default,{centered:!0,open:_t,title:Oe.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:Ge,footer:null},Oe.createElement("div",null,Oe.createElement("div",{className:"tc"},Oe.createElement("img",{className:"mt10",src:Fe,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),Oe.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),Oe.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),Oe.createElement("div",{style:{color:"#333"},className:"pt30 font14"},Oe.createElement("ul",{className:Pe.ul},Oe.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"),Oe.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"),Oe.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")))))}},84223:function(Ke,we,ae){"use strict";ae.d(we,{I:function(){return Pe}});var ie=ae(67294);const Pe=()=>{const[Fe,Oe]=(0,ie.useState)("hidden");return{overflow:Fe,handleMouseEnter:()=>Oe("auto"),handleMouseLeave:()=>Oe("hidden")}}},51161:function(Ke,we,ae){"use strict";ae.d(we,{AL:function(){return xe},Iy:function(){return Et},Qv:function(){return Ge},ez:function(){return me},jb:function(){return rt}});var ie=ae(47084),Pe=ae.n(ie),Fe=ae(90621),Oe=ae.n(Fe);let tt=1;function Me(gt,ft){const Nt=gt.match(/^(\s+)(?:```)/);if(Nt===null)return ft;const Tt=Nt[1];return ft.split(`
|
|
|
`).map(Ct=>{const Vt=Ct.match(/^\s+/);if(Vt===null)return Ct;const[Rt]=Vt;return Rt.length>=Tt.length?Ct.slice(Tt.length):Ct}).join(`
|
|
|
`)}let _e=[],ut=["<ul>"];const et=new(Pe()).Renderer,lt=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Et(){_e.length=0,ut=["<ul>"]}const rt={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function _t(gt,ft,Nt,Tt){if(ft>=gt.length||gt[ft].level<=Nt)return ft;var Ct=gt[ft];Tt.push("<li><a href='#"+tt+Ct.anchor+"'>"+Ct.text+"</a>"),ft++;var Vt=[];return ft=_t(gt,ft,Ct.level,Vt),Vt.length>0&&(Tt.push("<ul>"),Vt.forEach(function(Rt){Tt.push(Rt)}),Tt.push("</ul>")),Tt.push("</li>"),ft=_t(gt,ft,Nt,Tt),ft}function Ge(){return _t(_e,0,0,ut),ut.push("</ul>"),ut.join("")}const te={heading(gt){const ft=lt.exec(gt);if(tt+=1,ft)return{type:"heading",raw:ft[0],depth:ft[1].length,text:ft[2]}},fences(gt){const ft=this.rules.block.fences.exec(gt);if(ft){const Nt=ft[0];let Tt=Me(Nt,ft[3]||"");const Ct=ft[2]?ft[2].trim():ft[2];if(["latex","katex","math"].indexOf(Ct)>=0){const Vt=le(),Rt=Tt;Tt=Vt,pe[Vt]={type:"block",expression:Rt}}return{type:"code",raw:Nt,lang:Ct,text:Tt}}}},ee=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let de=0;const le=()=>`__special_katext_id_${de++}__`;let pe={};function me(){return pe}function xe(){de=0,pe={}}function be(gt){return gt=gt.replace(ee,(ft,Nt)=>{const Tt=le();return pe[Tt]={type:"inline",expression:Nt},Tt}),gt}const Be=et.listitem;et.listitem=function(gt){return Be(be(gt))};const at=et.paragraph;et.paragraph=function(gt){return at(be(gt))};const dt=et.tablecell;et.tablecell=function(gt,ft){return dt(be(gt),ft)},et.code=function(gt,ft,Nt){const Tt=(ft||"").match(/\S*/)[0];return Tt?["latex","katex","math"].indexOf(Tt)>=0?`<p class='editormd-tex'>${gt}</p>`:`<pre class="prettyprint linenums"><code class="language-${ft}">${Nt?gt:(0,Fe.escape)(gt,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(Nt?gt:(0,Fe.escape)(gt,!0))+"</code></pre>"},et.heading=function(gt,ft,Nt){let Tt=this.options.headerPrefix+Nt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return _e.push({anchor:Tt,level:ft,text:gt}),"<h"+ft+' id="'+tt+Tt+'">'+gt+"</h"+ft+">"},Pe().setOptions({silent:!0,gfm:!0,pedantic:!1}),Pe().use({tokenizer:te,renderer:et}),we.ZP=Pe()},88386:function(Ke,we,ae){(function(ie){ie(ae(4631))})(function(ie){ie.defineOption("placeholder","",function(ut,et,lt){var Et=lt&<!=ie.Init;if(et&&!Et)ut.on("blur",tt),ut.on("change",Me),ut.on("swapDoc",Me),ie.on(ut.getInputField(),"compositionupdate",ut.state.placeholderCompose=function(){Oe(ut)}),Me(ut);else if(!et&&Et){ut.off("blur",tt),ut.off("change",Me),ut.off("swapDoc",Me),ie.off(ut.getInputField(),"compositionupdate",ut.state.placeholderCompose),Pe(ut);var rt=ut.getWrapperElement();rt.className=rt.className.replace(" CodeMirror-empty","")}et&&!ut.hasFocus()&&tt(ut)});function Pe(ut){ut.state.placeholder&&(ut.state.placeholder.parentNode.removeChild(ut.state.placeholder),ut.state.placeholder=null)}function Fe(ut){Pe(ut);var et=ut.state.placeholder=document.createElement("pre");et.style.cssText="height: 0; overflow: visible",et.style.direction=ut.getOption("direction"),et.className="CodeMirror-placeholder CodeMirror-line-like";var lt=ut.getOption("placeholder");typeof lt=="string"&&(lt=document.createTextNode(lt)),et.appendChild(lt),ut.display.lineSpace.insertBefore(et,ut.display.lineSpace.firstChild)}function Oe(ut){setTimeout(function(){var et=!1,lt=ut.getInputField();lt.nodeName=="TEXTAREA"?et=!lt.value:ut.lineCount()==1&&(et=!/[^\u200b]/.test(lt.querySelector(".CodeMirror-line").textContent)),et?Fe(ut):Pe(ut)},20)}function tt(ut){_e(ut)&&Fe(ut)}function Me(ut){var et=ut.getWrapperElement(),lt=_e(ut);et.className=et.className.replace(" CodeMirror-empty","")+(lt?" CodeMirror-empty":""),lt?Fe(ut):Pe(ut)}function _e(ut){return ut.lineCount()===1&&ut.getLine(0)===""}})},82801:function(Ke,we,ae){(function(ie){ie(ae(4631))})(function(ie){var Pe={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Fe=ie.Pos;ie.defineOption("autoCloseBrackets",!1,function(te,ee,de){de&&de!=ie.Init&&(te.removeKeyMap(tt),te.state.closeBrackets=null),ee&&(Me(Oe(ee,"pairs")),te.state.closeBrackets=ee,te.addKeyMap(tt))});function Oe(te,ee){return ee=="pairs"&&typeof te=="string"?te:typeof te=="object"&&te[ee]!=null?te[ee]:Pe[ee]}var tt={Backspace:et,Enter:lt};function Me(te){for(var ee=0;ee<te.length;ee++){var de=te.charAt(ee),le="'"+de+"'";tt[le]||(tt[le]=_e(de))}}Me(Pe.pairs+"`");function _e(te){return function(ee){return rt(ee,te)}}function ut(te){var ee=te.state.closeBrackets;if(!ee||ee.override)return ee;var de=te.getModeAt(te.getCursor());return de.closeBrackets||ee}function et(te){var ee=ut(te);if(!ee||te.getOption("disableInput"))return ie.Pass;for(var de=Oe(ee,"pairs"),le=te.listSelections(),pe=0;pe<le.length;pe++){if(!le[pe].empty())return ie.Pass;var me=_t(te,le[pe].head);if(!me||de.indexOf(me)%2!=0)return ie.Pass}for(var pe=le.length-1;pe>=0;pe--){var xe=le[pe].head;te.replaceRange("",Fe(xe.line,xe.ch-1),Fe(xe.line,xe.ch+1),"+delete")}}function lt(te){var ee=ut(te),de=ee&&Oe(ee,"explode");if(!de||te.getOption("disableInput"))return ie.Pass;for(var le=te.listSelections(),pe=0;pe<le.length;pe++){if(!le[pe].empty())return ie.Pass;var me=_t(te,le[pe].head);if(!me||de.indexOf(me)%2!=0)return ie.Pass}te.operation(function(){var xe=te.lineSeparator()||`
|
|
|
`;te.replaceSelection(xe+xe,null),te.execCommand("goCharLeft"),le=te.listSelections();for(var be=0;be<le.length;be++){var Be=le[be].head.line;te.indentLine(Be,null,!0),te.indentLine(Be+1,null,!0)}})}function Et(te){var ee=ie.cmpPos(te.anchor,te.head)>0;return{anchor:new Fe(te.anchor.line,te.anchor.ch+(ee?-1:1)),head:new Fe(te.head.line,te.head.ch+(ee?1:-1))}}function rt(te,ee){var de=ut(te);if(!de||te.getOption("disableInput"))return ie.Pass;var le=Oe(de,"pairs"),pe=le.indexOf(ee);if(pe==-1)return ie.Pass;for(var me=Oe(de,"closeBefore"),xe=Oe(de,"triples"),be=le.charAt(pe+1)==ee,Be=te.listSelections(),at=pe%2==0,dt,gt=0;gt<Be.length;gt++){var ft=Be[gt],Nt=ft.head,Tt,Ct=te.getRange(Nt,Fe(Nt.line,Nt.ch+1));if(at&&!ft.empty())Tt="surround";else if((be||!at)&&Ct==ee)be&&Ge(te,Nt)?Tt="both":xe.indexOf(ee)>=0&&te.getRange(Nt,Fe(Nt.line,Nt.ch+3))==ee+ee+ee?Tt="skipThree":Tt="skip";else if(be&&Nt.ch>1&&xe.indexOf(ee)>=0&&te.getRange(Fe(Nt.line,Nt.ch-2),Nt)==ee+ee){if(Nt.ch>2&&/\bstring/.test(te.getTokenTypeAt(Fe(Nt.line,Nt.ch-2))))return ie.Pass;Tt="addFour"}else if(be){var Vt=Nt.ch==0?" ":te.getRange(Fe(Nt.line,Nt.ch-1),Nt);if(!ie.isWordChar(Ct)&&Vt!=ee&&!ie.isWordChar(Vt))Tt="both";else return ie.Pass}else if(at&&(Ct.length===0||/\s/.test(Ct)||me.indexOf(Ct)>-1))Tt="both";else return ie.Pass;if(!dt)dt=Tt;else if(dt!=Tt)return ie.Pass}var Rt=pe%2?le.charAt(pe-1):ee,nn=pe%2?ee:le.charAt(pe+1);te.operation(function(){if(dt=="skip")te.execCommand("goCharRight");else if(dt=="skipThree")for(var Cn=0;Cn<3;Cn++)te.execCommand("goCharRight");else if(dt=="surround"){for(var un=te.getSelections(),Cn=0;Cn<un.length;Cn++)un[Cn]=Rt+un[Cn]+nn;te.replaceSelections(un,"around"),un=te.listSelections().slice();for(var Cn=0;Cn<un.length;Cn++)un[Cn]=Et(un[Cn]);te.setSelections(un)}else dt=="both"?(te.replaceSelection(Rt+nn,null),te.triggerElectric(Rt+nn),te.execCommand("goCharLeft")):dt=="addFour"&&(te.replaceSelection(Rt+Rt+Rt+Rt,"before"),te.execCommand("goCharRight"))})}function _t(te,ee){var de=te.getRange(Fe(ee.line,ee.ch-1),Fe(ee.line,ee.ch+1));return de.length==2?de:null}function Ge(te,ee){var de=te.getTokenAt(Fe(ee.line,ee.ch+1));return/\bstring/.test(de.type)&&de.start==ee.ch&&(ee.ch==0||!/\bstring/.test(te.getTokenTypeAt(ee)))}})},57341:function(Ke,we,ae){(function(ie){ie(ae(4631),ae(4786))})(function(ie){ie.defineOption("autoCloseTags",!1,function(et,lt,Et){if(Et!=ie.Init&&Et&&et.removeKeyMap("autoCloseTags"),!!lt){var rt={name:"autoCloseTags"};(typeof lt!="object"||lt.whenClosing!==!1)&&(rt["'/'"]=function(_t){return Me(_t)}),(typeof lt!="object"||lt.whenOpening!==!1)&&(rt["'>'"]=function(_t){return Oe(_t)}),et.addKeyMap(rt)}});var Pe=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Fe=["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 Oe(et){if(et.getOption("disableInput"))return ie.Pass;for(var lt=et.listSelections(),Et=[],rt=et.getOption("autoCloseTags"),_t=0;_t<lt.length;_t++){if(!lt[_t].empty())return ie.Pass;var Ge=lt[_t].head,te=et.getTokenAt(Ge),ee=ie.innerMode(et.getMode(),te.state),de=ee.state,le=ee.mode.xmlCurrentTag&&ee.mode.xmlCurrentTag(de),pe=le&&le.name;if(!pe)return ie.Pass;var me=ee.mode.configuration=="html",xe=typeof rt=="object"&&rt.dontCloseTags||me&&Pe,be=typeof rt=="object"&&rt.indentTags||me&&Fe;te.end>Ge.ch&&(pe=pe.slice(0,pe.length-te.end+Ge.ch));var Be=pe.toLowerCase();if(!pe||te.type=="string"&&(te.end!=Ge.ch||!/[\"\']/.test(te.string.charAt(te.string.length-1))||te.string.length==1)||te.type=="tag"&&le.close||te.string.indexOf("/")==Ge.ch-te.start-1||xe&&_e(xe,Be)>-1||ut(et,ee.mode.xmlCurrentContext&&ee.mode.xmlCurrentContext(de)||[],pe,Ge,!0))return ie.Pass;var at=typeof rt=="object"&&rt.emptyTags;if(at&&_e(at,pe)>-1){Et[_t]={text:"/>",newPos:ie.Pos(Ge.line,Ge.ch+2)};continue}var dt=be&&_e(be,Be)>-1;Et[_t]={indent:dt,text:">"+(dt?`
|
|
|
|
|
|
`:"")+"</"+pe+">",newPos:dt?ie.Pos(Ge.line+1,0):ie.Pos(Ge.line,Ge.ch+1)}}for(var gt=typeof rt=="object"&&rt.dontIndentOnAutoClose,_t=lt.length-1;_t>=0;_t--){var ft=Et[_t];et.replaceRange(ft.text,lt[_t].head,lt[_t].anchor,"+insert");var Nt=et.listSelections().slice(0);Nt[_t]={head:ft.newPos,anchor:ft.newPos},et.setSelections(Nt),!gt&&ft.indent&&(et.indentLine(ft.newPos.line,null,!0),et.indentLine(ft.newPos.line+1,null,!0))}}function tt(et,lt){for(var Et=et.listSelections(),rt=[],_t=lt?"/":"</",Ge=et.getOption("autoCloseTags"),te=typeof Ge=="object"&&Ge.dontIndentOnSlash,ee=0;ee<Et.length;ee++){if(!Et[ee].empty())return ie.Pass;var de=Et[ee].head,le=et.getTokenAt(de),pe=ie.innerMode(et.getMode(),le.state),me=pe.state;if(lt&&(le.type=="string"||le.string.charAt(0)!="<"||le.start!=de.ch-1))return ie.Pass;var xe,be=pe.mode.name!="xml"&&et.getMode().name=="htmlmixed";if(be&&pe.mode.name=="javascript")xe=_t+"script";else if(be&&pe.mode.name=="css")xe=_t+"style";else{var Be=pe.mode.xmlCurrentContext&&pe.mode.xmlCurrentContext(me);if(!Be||Be.length&&ut(et,Be,Be[Be.length-1],de))return ie.Pass;xe=_t+Be[Be.length-1]}et.getLine(de.line).charAt(le.end)!=">"&&(xe+=">"),rt[ee]=xe}if(et.replaceSelections(rt),Et=et.listSelections(),!te)for(var ee=0;ee<Et.length;ee++)(ee==Et.length-1||Et[ee].head.line<Et[ee+1].head.line)&&et.indentLine(Et[ee].head.line)}function Me(et){return et.getOption("disableInput")?ie.Pass:tt(et,!0)}ie.commands.closeTag=function(et){return tt(et)};function _e(et,lt){if(et.indexOf)return et.indexOf(lt);for(var Et=0,rt=et.length;Et<rt;++Et)if(et[Et]==lt)return Et;return-1}function ut(et,lt,Et,rt,_t){if(!ie.scanForClosingTag)return!1;var Ge=Math.min(et.lastLine()+1,rt.line+500),te=ie.scanForClosingTag(et,rt,null,Ge);if(!te||te.tag!=Et)return!1;for(var ee=_t?1:0,de=lt.length-1;de>=0&<[de]==Et;de--)++ee;rt=te.to;for(var de=1;de<ee;de++){var le=ie.scanForClosingTag(et,rt,null,Ge);if(!le||le.tag!=Et)return!1;rt=le.to}return!0}})},4786:function(Ke,we,ae){(function(ie){ie(ae(4631))})(function(ie){"use strict";var Pe=ie.Pos;function Fe(de,le){return de.line-le.line||de.ch-le.ch}var Oe="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",tt=Oe+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Me=new RegExp("<(/?)(["+Oe+"]["+tt+"]*)","g");function _e(de,le,pe,me){this.line=le,this.ch=pe,this.cm=de,this.text=de.getLine(le),this.min=me?Math.max(me.from,de.firstLine()):de.firstLine(),this.max=me?Math.min(me.to-1,de.lastLine()):de.lastLine()}function ut(de,le){var pe=de.cm.getTokenTypeAt(Pe(de.line,le));return pe&&/\btag\b/.test(pe)}function et(de){if(!(de.line>=de.max))return de.ch=0,de.text=de.cm.getLine(++de.line),!0}function lt(de){if(!(de.line<=de.min))return de.text=de.cm.getLine(--de.line),de.ch=de.text.length,!0}function Et(de){for(;;){var le=de.text.indexOf(">",de.ch);if(le==-1){if(et(de))continue;return}if(!ut(de,le+1)){de.ch=le+1;continue}var pe=de.text.lastIndexOf("/",le),me=pe>-1&&!/\S/.test(de.text.slice(pe+1,le));return de.ch=le+1,me?"selfClose":"regular"}}function rt(de){for(;;){var le=de.ch?de.text.lastIndexOf("<",de.ch-1):-1;if(le==-1){if(lt(de))continue;return}if(!ut(de,le+1)){de.ch=le;continue}Me.lastIndex=le,de.ch=le;var pe=Me.exec(de.text);if(pe&&pe.index==le)return pe}}function _t(de){for(;;){Me.lastIndex=de.ch;var le=Me.exec(de.text);if(!le){if(et(de))continue;return}if(!ut(de,le.index+1)){de.ch=le.index+1;continue}return de.ch=le.index+le[0].length,le}}function Ge(de){for(;;){var le=de.ch?de.text.lastIndexOf(">",de.ch-1):-1;if(le==-1){if(lt(de))continue;return}if(!ut(de,le+1)){de.ch=le;continue}var pe=de.text.lastIndexOf("/",le),me=pe>-1&&!/\S/.test(de.text.slice(pe+1,le));return de.ch=le+1,me?"selfClose":"regular"}}function te(de,le){for(var pe=[];;){var me=_t(de),xe,be=de.line,Be=de.ch-(me?me[0].length:0);if(!me||!(xe=Et(de)))return;if(xe!="selfClose")if(me[1]){for(var at=pe.length-1;at>=0;--at)if(pe[at]==me[2]){pe.length=at;break}if(at<0&&(!le||le==me[2]))return{tag:me[2],from:Pe(be,Be),to:Pe(de.line,de.ch)}}else pe.push(me[2])}}function ee(de,le){for(var pe=[];;){var me=Ge(de);if(!me)return;if(me=="selfClose"){rt(de);continue}var xe=de.line,be=de.ch,Be=rt(de);if(!Be)return;if(Be[1])pe.push(Be[2]);else{for(var at=pe.length-1;at>=0;--at)if(pe[at]==Be[2]){pe.length=at;break}if(at<0&&(!le||le==Be[2]))return{tag:Be[2],from:Pe(de.line,de.ch),to:Pe(xe,be)}}}}ie.registerHelper("fold","xml",function(de,le){for(var pe=new _e(de,le.line,0);;){var me=_t(pe);if(!me||pe.line!=le.line)return;var xe=Et(pe);if(!xe)return;if(!me[1]&&xe!="selfClose"){var be=Pe(pe.line,pe.ch),Be=te(pe,me[2]);return Be&&Fe(Be.from,be)>0?{from:be,to:Be.from}:null}}}),ie.findMatchingTag=function(de,le,pe){var me=new _e(de,le.line,le.ch,pe);if(!(me.text.indexOf(">")==-1&&me.text.indexOf("<")==-1)){var xe=Et(me),be=xe&&Pe(me.line,me.ch),Be=xe&&rt(me);if(!(!xe||!Be||Fe(me,le)>0)){var at={from:Pe(me.line,me.ch),to:be,tag:Be[2]};return xe=="selfClose"?{open:at,close:null,at:"open"}:Be[1]?{open:ee(me,Be[2]),close:at,at:"close"}:(me=new _e(de,be.line,be.ch,pe),{open:at,close:te(me,Be[2]),at:"open"})}}},ie.findEnclosingTag=function(de,le,pe,me){for(var xe=new _e(de,le.line,le.ch,pe);;){var be=ee(xe,me);if(!be)break;var Be=new _e(de,le.line,le.ch,pe),at=te(Be,be.tag);if(at)return{open:be,close:at}}},ie.scanForClosingTag=function(de,le,pe,me){var xe=new _e(de,le.line,le.ch,me?{from:0,to:me}:null);return te(xe,pe)}})},4631:function(Ke){(function(we,ae){Ke.exports=ae()})(this,function(){"use strict";var we=navigator.userAgent,ae=navigator.platform,ie=/gecko\/\d/i.test(we),Pe=/MSIE \d/.test(we),Fe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(we),Oe=/Edge\/(\d+)/.exec(we),tt=Pe||Fe||Oe,Me=tt&&(Pe?document.documentMode||6:+(Oe||Fe)[1]),_e=!Oe&&/WebKit\//.test(we),ut=_e&&/Qt\/\d+\.\d+/.test(we),et=!Oe&&/Chrome\//.test(we),lt=/Opera\//.test(we),Et=/Apple Computer/.test(navigator.vendor),rt=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(we),_t=/PhantomJS/.test(we),Ge=!Oe&&/AppleWebKit/.test(we)&&/Mobile\/\w+/.test(we),te=/Android/.test(we),ee=Ge||te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(we),de=Ge||/Mac/.test(ae),le=/\bCrOS\b/.test(we),pe=/win/i.test(ae),me=lt&&we.match(/Version\/(\d*\.\d*)/);me&&(me=Number(me[1])),me&&me>=15&&(lt=!1,_e=!0);var xe=de&&(ut||lt&&(me==null||me<12.11)),be=ie||tt&&Me>=9;function Be(re){return new RegExp("(^|\\s)"+re+"(?:$|\\s)\\s*")}var at=function(re,ce){var ye=re.className,ve=Be(ce).exec(ye);if(ve){var Ce=ye.slice(ve.index+ve[0].length);re.className=ye.slice(0,ve.index)+(Ce?ve[1]+Ce:"")}};function dt(re){for(var ce=re.childNodes.length;ce>0;--ce)re.removeChild(re.firstChild);return re}function gt(re,ce){return dt(re).appendChild(ce)}function ft(re,ce,ye,ve){var Ce=document.createElement(re);if(ye&&(Ce.className=ye),ve&&(Ce.style.cssText=ve),typeof ce=="string")Ce.appendChild(document.createTextNode(ce));else if(ce)for(var $e=0;$e<ce.length;++$e)Ce.appendChild(ce[$e]);return Ce}function Nt(re,ce,ye,ve){var Ce=ft(re,ce,ye,ve);return Ce.setAttribute("role","presentation"),Ce}var Tt;document.createRange?Tt=function(re,ce,ye,ve){var Ce=document.createRange();return Ce.setEnd(ve||re,ye),Ce.setStart(re,ce),Ce}:Tt=function(re,ce,ye){var ve=document.body.createTextRange();try{ve.moveToElementText(re.parentNode)}catch(Ce){return ve}return ve.collapse(!0),ve.moveEnd("character",ye),ve.moveStart("character",ce),ve};function Ct(re,ce){if(ce.nodeType==3&&(ce=ce.parentNode),re.contains)return re.contains(ce);do if(ce.nodeType==11&&(ce=ce.host),ce==re)return!0;while(ce=ce.parentNode)}function Vt(){var re;try{re=document.activeElement}catch(ce){re=document.body||null}for(;re&&re.shadowRoot&&re.shadowRoot.activeElement;)re=re.shadowRoot.activeElement;return re}function Rt(re,ce){var ye=re.className;Be(ce).test(ye)||(re.className+=(ye?" ":"")+ce)}function nn(re,ce){for(var ye=re.split(" "),ve=0;ve<ye.length;ve++)ye[ve]&&!Be(ye[ve]).test(ce)&&(ce+=" "+ye[ve]);return ce}var Cn=function(re){re.select()};Ge?Cn=function(re){re.selectionStart=0,re.selectionEnd=re.value.length}:tt&&(Cn=function(re){try{re.select()}catch(ce){}});function un(re){var ce=Array.prototype.slice.call(arguments,1);return function(){return re.apply(null,ce)}}function Nn(re,ce,ye){ce||(ce={});for(var ve in re)re.hasOwnProperty(ve)&&(ye!==!1||!ce.hasOwnProperty(ve))&&(ce[ve]=re[ve]);return ce}function wt(re,ce,ye,ve,Ce){ce==null&&(ce=re.search(/[^\s\u00a0]/),ce==-1&&(ce=re.length));for(var $e=ve||0,bt=Ce||0;;){var Dt=re.indexOf(" ",$e);if(Dt<0||Dt>=ce)return bt+(ce-$e);bt+=Dt-$e,bt+=ye-bt%ye,$e=Dt+1}}var pt=function(){this.id=null,this.f=null,this.time=0,this.handler=un(this.onTimeout,this)};pt.prototype.onTimeout=function(re){re.id=0,re.time<=+new Date?re.f():setTimeout(re.handler,re.time-+new Date)},pt.prototype.set=function(re,ce){this.f=ce;var ye=+new Date+re;(!this.id||ye<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,re),this.time=ye)};function Ie(re,ce){for(var ye=0;ye<re.length;++ye)if(re[ye]==ce)return ye;return-1}var on=50,Bn={toString:function(){return"CodeMirror.Pass"}},Zt={scroll:!1},zn={origin:"*mouse"},_n={origin:"+move"};function nr(re,ce,ye){for(var ve=0,Ce=0;;){var $e=re.indexOf(" ",ve);$e==-1&&($e=re.length);var bt=$e-ve;if($e==re.length||Ce+bt>=ce)return ve+Math.min(bt,ce-Ce);if(Ce+=$e-ve,Ce+=ye-Ce%ye,ve=$e+1,Ce>=ce)return ve}}var Ft=[""];function Wt(re){for(;Ft.length<=re;)Ft.push(ht(Ft)+" ");return Ft[re]}function ht(re){return re[re.length-1]}function tn(re,ce){for(var ye=[],ve=0;ve<re.length;ve++)ye[ve]=ce(re[ve],ve);return ye}function an(re,ce,ye){for(var ve=0,Ce=ye(ce);ve<re.length&&ye(re[ve])<=Ce;)ve++;re.splice(ve,0,ce)}function ct(){}function Ue(re,ce){var ye;return Object.create?ye=Object.create(re):(ct.prototype=re,ye=new ct),ce&&Nn(ce,ye),ye}var He=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function it(re){return/\w/.test(re)||re>"\x80"&&(re.toUpperCase()!=re.toLowerCase()||He.test(re))}function vt(re,ce){return ce?ce.source.indexOf("\\w")>-1&&it(re)?!0:ce.test(re):it(re)}function Ye(re){for(var ce in re)if(re.hasOwnProperty(ce)&&re[ce])return!1;return!0}var It=/[\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 In(re){return re.charCodeAt(0)>=768&&It.test(re)}function Kn(re,ce,ye){for(;(ye<0?ce>0:ce<re.length)&&In(re.charAt(ce));)ce+=ye;return ce}function dr(re,ce,ye){for(var ve=ce>ye?-1:1;;){if(ce==ye)return ce;var Ce=(ce+ye)/2,$e=ve<0?Math.ceil(Ce):Math.floor(Ce);if($e==ce)return re($e)?ce:ye;re($e)?ye=$e:ce=$e+ve}}function Rn(re,ce,ye,ve){if(!re)return ve(ce,ye,"ltr",0);for(var Ce=!1,$e=0;$e<re.length;++$e){var bt=re[$e];(bt.from<ye&&bt.to>ce||ce==ye&&bt.to==ce)&&(ve(Math.max(bt.from,ce),Math.min(bt.to,ye),bt.level==1?"rtl":"ltr",$e),Ce=!0)}Ce||ve(ce,ye,"ltr")}var er=null;function yn(re,ce,ye){var ve;er=null;for(var Ce=0;Ce<re.length;++Ce){var $e=re[Ce];if($e.from<ce&&$e.to>ce)return Ce;$e.to==ce&&($e.from!=$e.to&&ye=="before"?ve=Ce:er=Ce),$e.from==ce&&($e.from!=$e.to&&ye!="before"?ve=Ce:er=Ce)}return ve!=null?ve:er}var Er=function(){var re="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ce="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ye($t){return $t<=247?re.charAt($t):1424<=$t&&$t<=1524?"R":1536<=$t&&$t<=1785?ce.charAt($t-1536):1774<=$t&&$t<=2220?"r":8192<=$t&&$t<=8203?"w":$t==8204?"b":"L"}var ve=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Ce=/[stwN]/,$e=/[LRr]/,bt=/[Lb1n]/,Dt=/[1n]/;function Mt($t,Jn,pn){this.level=$t,this.from=Jn,this.to=pn}return function($t,Jn){var pn=Jn=="ltr"?"L":"R";if($t.length==0||Jn=="ltr"&&!ve.test($t))return!1;for(var Lr=$t.length,Sr=[],wi=0;wi<Lr;++wi)Sr.push(ye($t.charCodeAt(wi)));for(var ki=0,oo=pn;ki<Lr;++ki){var Mo=Sr[ki];Mo=="m"?Sr[ki]=oo:oo=Mo}for(var Na=0,Jo=pn;Na<Lr;++Na){var Ra=Sr[Na];Ra=="1"&&Jo=="r"?Sr[Na]="n":$e.test(Ra)&&(Jo=Ra,Ra=="r"&&(Sr[Na]="R"))}for(var Es=1,$o=Sr[0];Es<Lr-1;++Es){var Ys=Sr[Es];Ys=="+"&&$o=="1"&&Sr[Es+1]=="1"?Sr[Es]="1":Ys==","&&$o==Sr[Es+1]&&($o=="1"||$o=="n")&&(Sr[Es]=$o),$o=Ys}for(var ou=0;ou<Lr;++ou){var nc=Sr[ou];if(nc==",")Sr[ou]="N";else if(nc=="%"){var Su=void 0;for(Su=ou+1;Su<Lr&&Sr[Su]=="%";++Su);for(var Qc=ou&&Sr[ou-1]=="!"||Su<Lr&&Sr[Su]=="1"?"1":"N",Ac=ou;Ac<Su;++Ac)Sr[Ac]=Qc;ou=Su-1}}for(var Yu=0,Jc=pn;Yu<Lr;++Yu){var mc=Sr[Yu];Jc=="L"&&mc=="1"?Sr[Yu]="L":$e.test(mc)&&(Jc=mc)}for(var Zu=0;Zu<Lr;++Zu)if(Ce.test(Sr[Zu])){var xl=void 0;for(xl=Zu+1;xl<Lr&&Ce.test(Sr[xl]);++xl);for(var Eu=(Zu?Sr[Zu-1]:pn)=="L",lc=(xl<Lr?Sr[xl]:pn)=="L",vc=Eu==lc?Eu?"L":"R":pn,Rd=Zu;Rd<xl;++Rd)Sr[Rd]=vc;Zu=xl-1}for(var bu=[],vd,Ne=0;Ne<Lr;)if(bt.test(Sr[Ne])){var Re=Ne;for(++Ne;Ne<Lr&&bt.test(Sr[Ne]);++Ne);bu.push(new Mt(0,Re,Ne))}else{var Je=Ne,yt=bu.length,Ht=Jn=="rtl"?1:0;for(++Ne;Ne<Lr&&Sr[Ne]!="L";++Ne);for(var Bt=Je;Bt<Ne;)if(Dt.test(Sr[Bt])){Je<Bt&&(bu.splice(yt,0,new Mt(1,Je,Bt)),yt+=Ht);var Xt=Bt;for(++Bt;Bt<Ne&&Dt.test(Sr[Bt]);++Bt);bu.splice(yt,0,new Mt(2,Xt,Bt)),yt+=Ht,Je=Bt}else++Bt;Je<Ne&&bu.splice(yt,0,new Mt(1,Je,Ne))}return Jn=="ltr"&&(bu[0].level==1&&(vd=$t.match(/^\s+/))&&(bu[0].from=vd[0].length,bu.unshift(new Mt(0,0,vd[0].length))),ht(bu).level==1&&(vd=$t.match(/\s+$/))&&(ht(bu).to-=vd[0].length,bu.push(new Mt(0,Lr-vd[0].length,Lr)))),Jn=="rtl"?bu.reverse():bu}}();function sr(re,ce){var ye=re.order;return ye==null&&(ye=re.order=Er(re.text,ce)),ye}var Hr=[],An=function(re,ce,ye){if(re.addEventListener)re.addEventListener(ce,ye,!1);else if(re.attachEvent)re.attachEvent("on"+ce,ye);else{var ve=re._handlers||(re._handlers={});ve[ce]=(ve[ce]||Hr).concat(ye)}};function yi(re,ce){return re._handlers&&re._handlers[ce]||Hr}function ri(re,ce,ye){if(re.removeEventListener)re.removeEventListener(ce,ye,!1);else if(re.detachEvent)re.detachEvent("on"+ce,ye);else{var ve=re._handlers,Ce=ve&&ve[ce];if(Ce){var $e=Ie(Ce,ye);$e>-1&&(ve[ce]=Ce.slice(0,$e).concat(Ce.slice($e+1)))}}}function bn(re,ce){var ye=yi(re,ce);if(ye.length)for(var ve=Array.prototype.slice.call(arguments,2),Ce=0;Ce<ye.length;++Ce)ye[Ce].apply(null,ve)}function Xe(re,ce,ye){return typeof ce=="string"&&(ce={type:ce,preventDefault:function(){this.defaultPrevented=!0}}),bn(re,ye||ce.type,re,ce),Zr(ce)||ce.codemirrorIgnore}function Ji(re){var ce=re._handlers&&re._handlers.cursorActivity;if(ce)for(var ye=re.curOp.cursorActivityHandlers||(re.curOp.cursorActivityHandlers=[]),ve=0;ve<ce.length;++ve)Ie(ye,ce[ve])==-1&&ye.push(ce[ve])}function Qn(re,ce){return yi(re,ce).length>0}function Sn(re){re.prototype.on=function(ce,ye){An(this,ce,ye)},re.prototype.off=function(ce,ye){ri(this,ce,ye)}}function to(re){re.preventDefault?re.preventDefault():re.returnValue=!1}function Ki(re){re.stopPropagation?re.stopPropagation():re.cancelBubble=!0}function Zr(re){return re.defaultPrevented!=null?re.defaultPrevented:re.returnValue==!1}function hi(re){to(re),Ki(re)}function Ir(re){return re.target||re.srcElement}function fn(re){var ce=re.which;return ce==null&&(re.button&1?ce=1:re.button&2?ce=3:re.button&4&&(ce=2)),de&&re.ctrlKey&&ce==1&&(ce=3),ce}var Hi=function(){if(tt&&Me<9)return!1;var re=ft("div");return"draggable"in re||"dragDrop"in re}(),ao;function ui(re){if(ao==null){var ce=ft("span","\u200B");gt(re,ft("span",[ce,document.createTextNode("x")])),re.firstChild.offsetHeight!=0&&(ao=ce.offsetWidth<=1&&ce.offsetHeight>2&&!(tt&&Me<8))}var ye=ao?ft("span","\u200B"):ft("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ye.setAttribute("cm-text",""),ye}var ai;function Ni(re){if(ai!=null)return ai;var ce=gt(re,document.createTextNode("A\u062EA")),ye=Tt(ce,0,1).getBoundingClientRect(),ve=Tt(ce,1,2).getBoundingClientRect();return dt(re),!ye||ye.left==ye.right?!1:ai=ve.right-ye.right<3}var ir=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(re){for(var ce=0,ye=[],ve=re.length;ce<=ve;){var Ce=re.indexOf(`
|
|
|
`,ce);Ce==-1&&(Ce=re.length);var $e=re.slice(ce,re.charAt(Ce-1)=="\r"?Ce-1:Ce),bt=$e.indexOf("\r");bt!=-1?(ye.push($e.slice(0,bt)),ce+=bt+1):(ye.push($e),ce=Ce+1)}return ye}:function(re){return re.split(/\r\n?|\n/)},We=window.getSelection?function(re){try{return re.selectionStart!=re.selectionEnd}catch(ce){return!1}}:function(re){var ce;try{ce=re.ownerDocument.selection.createRange()}catch(ye){}return!ce||ce.parentElement()!=re?!1:ce.compareEndPoints("StartToEnd",ce)!=0},rr=function(){var re=ft("div");return"oncopy"in re?!0:(re.setAttribute("oncopy","return;"),typeof re.oncopy=="function")}(),ur=null;function hr(re){if(ur!=null)return ur;var ce=gt(re,ft("span","x")),ye=ce.getBoundingClientRect(),ve=Tt(ce,0,1).getBoundingClientRect();return ur=Math.abs(ye.left-ve.left)>1}var Or={},jr={};function si(re,ce){arguments.length>2&&(ce.dependencies=Array.prototype.slice.call(arguments,2)),Or[re]=ce}function Fi(re,ce){jr[re]=ce}function Vn(re){if(typeof re=="string"&&jr.hasOwnProperty(re))re=jr[re];else if(re&&typeof re.name=="string"&&jr.hasOwnProperty(re.name)){var ce=jr[re.name];typeof ce=="string"&&(ce={name:ce}),re=Ue(ce,re),re.name=ce.name}else{if(typeof re=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(re))return Vn("application/xml");if(typeof re=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(re))return Vn("application/json")}return typeof re=="string"?{name:re}:re||{name:"null"}}function Wn(re,ce){ce=Vn(ce);var ye=Or[ce.name];if(!ye)return Wn(re,"text/plain");var ve=ye(re,ce);if(vn.hasOwnProperty(ce.name)){var Ce=vn[ce.name];for(var $e in Ce)Ce.hasOwnProperty($e)&&(ve.hasOwnProperty($e)&&(ve["_"+$e]=ve[$e]),ve[$e]=Ce[$e])}if(ve.name=ce.name,ce.helperType&&(ve.helperType=ce.helperType),ce.modeProps)for(var bt in ce.modeProps)ve[bt]=ce.modeProps[bt];return ve}var vn={};function tr(re,ce){var ye=vn.hasOwnProperty(re)?vn[re]:vn[re]={};Nn(ce,ye)}function mi(re,ce){if(ce===!0)return ce;if(re.copyState)return re.copyState(ce);var ye={};for(var ve in ce){var Ce=ce[ve];Ce instanceof Array&&(Ce=Ce.concat([])),ye[ve]=Ce}return ye}function gi(re,ce){for(var ye;re.innerMode&&(ye=re.innerMode(ce),!(!ye||ye.mode==re));)ce=ye.state,re=ye.mode;return ye||{mode:re,state:ce}}function ti(re,ce,ye){return re.startState?re.startState(ce,ye):!0}var Hn=function(re,ce,ye){this.pos=this.start=0,this.string=re,this.tabSize=ce||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ye};Hn.prototype.eol=function(){return this.pos>=this.string.length},Hn.prototype.sol=function(){return this.pos==this.lineStart},Hn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Hn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Hn.prototype.eat=function(re){var ce=this.string.charAt(this.pos),ye;if(typeof re=="string"?ye=ce==re:ye=ce&&(re.test?re.test(ce):re(ce)),ye)return++this.pos,ce},Hn.prototype.eatWhile=function(re){for(var ce=this.pos;this.eat(re););return this.pos>ce},Hn.prototype.eatSpace=function(){for(var re=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>re},Hn.prototype.skipToEnd=function(){this.pos=this.string.length},Hn.prototype.skipTo=function(re){var ce=this.string.indexOf(re,this.pos);if(ce>-1)return this.pos=ce,!0},Hn.prototype.backUp=function(re){this.pos-=re},Hn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=wt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?wt(this.string,this.lineStart,this.tabSize):0)},Hn.prototype.indentation=function(){return wt(this.string,null,this.tabSize)-(this.lineStart?wt(this.string,this.lineStart,this.tabSize):0)},Hn.prototype.match=function(re,ce,ye){if(typeof re=="string"){var ve=function(bt){return ye?bt.toLowerCase():bt},Ce=this.string.substr(this.pos,re.length);if(ve(Ce)==ve(re))return ce!==!1&&(this.pos+=re.length),!0}else{var $e=this.string.slice(this.pos).match(re);return $e&&$e.index>0?null:($e&&ce!==!1&&(this.pos+=$e[0].length),$e)}},Hn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Hn.prototype.hideFirstChars=function(re,ce){this.lineStart+=re;try{return ce()}finally{this.lineStart-=re}},Hn.prototype.lookAhead=function(re){var ce=this.lineOracle;return ce&&ce.lookAhead(re)},Hn.prototype.baseToken=function(){var re=this.lineOracle;return re&&re.baseToken(this.pos)};function Cr(re,ce){if(ce-=re.first,ce<0||ce>=re.size)throw new Error("There is no line "+(ce+re.first)+" in the document.");for(var ye=re;!ye.lines;)for(var ve=0;;++ve){var Ce=ye.children[ve],$e=Ce.chunkSize();if(ce<$e){ye=Ce;break}ce-=$e}return ye.lines[ce]}function Ri(re,ce,ye){var ve=[],Ce=ce.line;return re.iter(ce.line,ye.line+1,function($e){var bt=$e.text;Ce==ye.line&&(bt=bt.slice(0,ye.ch)),Ce==ce.line&&(bt=bt.slice(ce.ch)),ve.push(bt),++Ce}),ve}function _i(re,ce,ye){var ve=[];return re.iter(ce,ye,function(Ce){ve.push(Ce.text)}),ve}function Ur(re,ce){var ye=ce-re.height;if(ye)for(var ve=re;ve;ve=ve.parent)ve.height+=ye}function Pn(re){if(re.parent==null)return null;for(var ce=re.parent,ye=Ie(ce.lines,re),ve=ce.parent;ve;ce=ve,ve=ve.parent)for(var Ce=0;ve.children[Ce]!=ce;++Ce)ye+=ve.children[Ce].chunkSize();return ye+ce.first}function xi(re,ce){var ye=re.first;e:do{for(var ve=0;ve<re.children.length;++ve){var Ce=re.children[ve],$e=Ce.height;if(ce<$e){re=Ce;continue e}ce-=$e,ye+=Ce.chunkSize()}return ye}while(!re.lines);for(var bt=0;bt<re.lines.length;++bt){var Dt=re.lines[bt],Mt=Dt.height;if(ce<Mt)break;ce-=Mt}return ye+bt}function ji(re,ce){return ce>=re.first&&ce<re.first+re.size}function Xo(re,ce){return String(re.lineNumberFormatter(ce+re.firstLineNumber))}function wr(re,ce,ye){if(ye===void 0&&(ye=null),!(this instanceof wr))return new wr(re,ce,ye);this.line=re,this.ch=ce,this.sticky=ye}function Gi(re,ce){return re.line-ce.line||re.ch-ce.ch}function Jr(re,ce){return re.sticky==ce.sticky&&Gi(re,ce)==0}function ls(re){return wr(re.line,re.ch)}function Pa(re,ce){return Gi(re,ce)<0?ce:re}function Oi(re,ce){return Gi(re,ce)<0?re:ce}function Yi(re,ce){return Math.max(re.first,Math.min(ce,re.first+re.size-1))}function uo(re,ce){if(ce.line<re.first)return wr(re.first,0);var ye=re.first+re.size-1;return ce.line>ye?wr(ye,Cr(re,ye).text.length):ba(ce,Cr(re,ce.line).text.length)}function ba(re,ce){var ye=re.ch;return ye==null||ye>ce?wr(re.line,ce):ye<0?wr(re.line,0):re}function Go(re,ce){for(var ye=[],ve=0;ve<ce.length;ve++)ye[ve]=uo(re,ce[ve]);return ye}var zr=function(re,ce){this.state=re,this.lookAhead=ce},vo=function(re,ce,ye,ve){this.state=ce,this.doc=re,this.line=ye,this.maxLookAhead=ve||0,this.baseTokens=null,this.baseTokenPos=1};vo.prototype.lookAhead=function(re){var ce=this.doc.getLine(this.line+re);return ce!=null&&re>this.maxLookAhead&&(this.maxLookAhead=re),ce},vo.prototype.baseToken=function(re){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=re;)this.baseTokenPos+=2;var ce=this.baseTokens[this.baseTokenPos+1];return{type:ce&&ce.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-re}},vo.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},vo.fromSaved=function(re,ce,ye){return ce instanceof zr?new vo(re,mi(re.mode,ce.state),ye,ce.lookAhead):new vo(re,mi(re.mode,ce),ye)},vo.prototype.save=function(re){var ce=re!==!1?mi(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new zr(ce,this.maxLookAhead):ce};function sl(re,ce,ye,ve){var Ce=[re.state.modeGen],$e={};Ka(re,ce.text,re.doc.mode,ye,function($t,Jn){return Ce.push($t,Jn)},$e,ve);for(var bt=ye.state,Dt=function($t){ye.baseTokens=Ce;var Jn=re.state.overlays[$t],pn=1,Lr=0;ye.state=!0,Ka(re,ce.text,Jn.mode,ye,function(Sr,wi){for(var ki=pn;Lr<Sr;){var oo=Ce[pn];oo>Sr&&Ce.splice(pn,1,Sr,Ce[pn+1],oo),pn+=2,Lr=Math.min(Sr,oo)}if(wi)if(Jn.opaque)Ce.splice(ki,pn-ki,Sr,"overlay "+wi),pn=ki+2;else for(;ki<pn;ki+=2){var Mo=Ce[ki+1];Ce[ki+1]=(Mo?Mo+" ":"")+"overlay "+wi}},$e),ye.state=bt,ye.baseTokens=null,ye.baseTokenPos=1},Mt=0;Mt<re.state.overlays.length;++Mt)Dt(Mt);return{styles:Ce,classes:$e.bgClass||$e.textClass?$e:null}}function gs(re,ce,ye){if(!ce.styles||ce.styles[0]!=re.state.modeGen){var ve=es(re,Pn(ce)),Ce=ce.text.length>re.options.maxHighlightLength&&mi(re.doc.mode,ve.state),$e=sl(re,ce,ve);Ce&&(ve.state=Ce),ce.stateAfter=ve.save(!Ce),ce.styles=$e.styles,$e.classes?ce.styleClasses=$e.classes:ce.styleClasses&&(ce.styleClasses=null),ye===re.doc.highlightFrontier&&(re.doc.modeFrontier=Math.max(re.doc.modeFrontier,++re.doc.highlightFrontier))}return ce.styles}function es(re,ce,ye){var ve=re.doc,Ce=re.display;if(!ve.mode.startState)return new vo(ve,!0,ce);var $e=qo(re,ce,ye),bt=$e>ve.first&&Cr(ve,$e-1).stateAfter,Dt=bt?vo.fromSaved(ve,bt,$e):new vo(ve,ti(ve.mode),$e);return ve.iter($e,ce,function(Mt){Mn(re,Mt.text,Dt);var $t=Dt.line;Mt.stateAfter=$t==ce-1||$t%5==0||$t>=Ce.viewFrom&&$t<Ce.viewTo?Dt.save():null,Dt.nextLine()}),ye&&(ve.modeFrontier=Dt.line),Dt}function Mn(re,ce,ye,ve){var Ce=re.doc.mode,$e=new Hn(ce,re.options.tabSize,ye);for($e.start=$e.pos=ve||0,ce==""&&Co(Ce,ye.state);!$e.eol();)Ta(Ce,$e,ye.state),$e.start=$e.pos}function Co(re,ce){if(re.blankLine)return re.blankLine(ce);if(re.innerMode){var ye=gi(re,ce);if(ye.mode.blankLine)return ye.mode.blankLine(ye.state)}}function Ta(re,ce,ye,ve){for(var Ce=0;Ce<10;Ce++){ve&&(ve[0]=gi(re,ye).mode);var $e=re.token(ce,ye);if(ce.pos>ce.start)return $e}throw new Error("Mode "+re.name+" failed to advance stream.")}var lo=function(re,ce,ye){this.start=re.start,this.end=re.pos,this.string=re.current(),this.type=ce||null,this.state=ye};function oa(re,ce,ye,ve){var Ce=re.doc,$e=Ce.mode,bt;ce=uo(Ce,ce);var Dt=Cr(Ce,ce.line),Mt=es(re,ce.line,ye),$t=new Hn(Dt.text,re.options.tabSize,Mt),Jn;for(ve&&(Jn=[]);(ve||$t.pos<ce.ch)&&!$t.eol();)$t.start=$t.pos,bt=Ta($e,$t,Mt.state),ve&&Jn.push(new lo($t,bt,mi(Ce.mode,Mt.state)));return ve?Jn:new lo($t,bt,Mt.state)}function fa(re,ce){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";ce[ve]==null?ce[ve]=ye[2]:new RegExp("(?:^|\\s)"+ye[2]+"(?:$|\\s)").test(ce[ve])||(ce[ve]+=" "+ye[2])}return re}function Ka(re,ce,ye,ve,Ce,$e,bt){var Dt=ye.flattenSpans;Dt==null&&(Dt=re.options.flattenSpans);var Mt=0,$t=null,Jn=new Hn(ce,re.options.tabSize,ve),pn,Lr=re.options.addModeClass&&[null];for(ce==""&&fa(Co(ye,ve.state),$e);!Jn.eol();){if(Jn.pos>re.options.maxHighlightLength?(Dt=!1,bt&&Mn(re,ce,ve,Jn.pos),Jn.pos=ce.length,pn=null):pn=fa(Ta(ye,Jn,ve.state,Lr),$e),Lr){var Sr=Lr[0].name;Sr&&(pn="m-"+(pn?Sr+" "+pn:Sr))}if(!Dt||$t!=pn){for(;Mt<Jn.start;)Mt=Math.min(Jn.start,Mt+5e3),Ce(Mt,$t);$t=pn}Jn.start=Jn.pos}for(;Mt<Jn.pos;){var wi=Math.min(Jn.pos,Mt+5e3);Ce(wi,$t),Mt=wi}}function qo(re,ce,ye){for(var ve,Ce,$e=re.doc,bt=ye?-1:ce-(re.doc.mode.innerMode?1e3:100),Dt=ce;Dt>bt;--Dt){if(Dt<=$e.first)return $e.first;var Mt=Cr($e,Dt-1),$t=Mt.stateAfter;if($t&&(!ye||Dt+($t instanceof zr?$t.lookAhead:0)<=$e.modeFrontier))return Dt;var Jn=wt(Mt.text,null,re.options.tabSize);(Ce==null||ve>Jn)&&(Ce=Dt-1,ve=Jn)}return Ce}function aa(re,ce){if(re.modeFrontier=Math.min(re.modeFrontier,ce),!(re.highlightFrontier<ce-10)){for(var ye=re.first,ve=ce-1;ve>ye;ve--){var Ce=Cr(re,ve).stateAfter;if(Ce&&(!(Ce instanceof zr)||ve+Ce.lookAhead<ce)){ye=ve+1;break}}re.highlightFrontier=Math.min(re.highlightFrontier,ye)}}var za=!1,Ar=!1;function us(){za=!0}function qt(){Ar=!0}function At(re,ce,ye){this.marker=re,this.from=ce,this.to=ye}function Nr(re,ce){if(re)for(var ye=0;ye<re.length;++ye){var ve=re[ye];if(ve.marker==ce)return ve}}function Qt(re,ce){for(var ye,ve=0;ve<re.length;++ve)re[ve]!=ce&&(ye||(ye=[])).push(re[ve]);return ye}function ln(re,ce){re.markedSpans=re.markedSpans?re.markedSpans.concat([ce]):[ce],ce.marker.attachLine(re)}function En(re,ce,ye){var ve;if(re)for(var Ce=0;Ce<re.length;++Ce){var $e=re[Ce],bt=$e.marker,Dt=$e.from==null||(bt.inclusiveLeft?$e.from<=ce:$e.from<ce);if(Dt||$e.from==ce&&bt.type=="bookmark"&&(!ye||!$e.marker.insertLeft)){var Mt=$e.to==null||(bt.inclusiveRight?$e.to>=ce:$e.to>ce);(ve||(ve=[])).push(new At(bt,$e.from,Mt?null:$e.to))}}return ve}function Xn(re,ce,ye){var ve;if(re)for(var Ce=0;Ce<re.length;++Ce){var $e=re[Ce],bt=$e.marker,Dt=$e.to==null||(bt.inclusiveRight?$e.to>=ce:$e.to>ce);if(Dt||$e.from==ce&&bt.type=="bookmark"&&(!ye||$e.marker.insertLeft)){var Mt=$e.from==null||(bt.inclusiveLeft?$e.from<=ce:$e.from<ce);(ve||(ve=[])).push(new At(bt,Mt?null:$e.from-ce,$e.to==null?null:$e.to-ce))}}return ve}function Rr(re,ce){if(ce.full)return null;var ye=ji(re,ce.from.line)&&Cr(re,ce.from.line).markedSpans,ve=ji(re,ce.to.line)&&Cr(re,ce.to.line).markedSpans;if(!ye&&!ve)return null;var Ce=ce.from.ch,$e=ce.to.ch,bt=Gi(ce.from,ce.to)==0,Dt=En(ye,Ce,bt),Mt=Xn(ve,$e,bt),$t=ce.text.length==1,Jn=ht(ce.text).length+($t?Ce:0);if(Dt)for(var pn=0;pn<Dt.length;++pn){var Lr=Dt[pn];if(Lr.to==null){var Sr=Nr(Mt,Lr.marker);Sr?$t&&(Lr.to=Sr.to==null?null:Sr.to+Jn):Lr.to=Ce}}if(Mt)for(var wi=0;wi<Mt.length;++wi){var ki=Mt[wi];if(ki.to!=null&&(ki.to+=Jn),ki.from==null){var oo=Nr(Dt,ki.marker);oo||(ki.from=Jn,$t&&(Dt||(Dt=[])).push(ki))}else ki.from+=Jn,$t&&(Dt||(Dt=[])).push(ki)}Dt&&(Dt=vi(Dt)),Mt&&Mt!=Dt&&(Mt=vi(Mt));var Mo=[Dt];if(!$t){var Na=ce.text.length-2,Jo;if(Na>0&&Dt)for(var Ra=0;Ra<Dt.length;++Ra)Dt[Ra].to==null&&(Jo||(Jo=[])).push(new At(Dt[Ra].marker,null,null));for(var Es=0;Es<Na;++Es)Mo.push(Jo);Mo.push(Mt)}return Mo}function vi(re){for(var ce=0;ce<re.length;++ce){var ye=re[ce];ye.from!=null&&ye.from==ye.to&&ye.marker.clearWhenEmpty!==!1&&re.splice(ce--,1)}return re.length?re:null}function ni(re,ce,ye){var ve=null;if(re.iter(ce.line,ye.line+1,function(Sr){if(Sr.markedSpans)for(var wi=0;wi<Sr.markedSpans.length;++wi){var ki=Sr.markedSpans[wi].marker;ki.readOnly&&(!ve||Ie(ve,ki)==-1)&&(ve||(ve=[])).push(ki)}}),!ve)return null;for(var Ce=[{from:ce,to:ye}],$e=0;$e<ve.length;++$e)for(var bt=ve[$e],Dt=bt.find(0),Mt=0;Mt<Ce.length;++Mt){var $t=Ce[Mt];if(!(Gi($t.to,Dt.from)<0||Gi($t.from,Dt.to)>0)){var Jn=[Mt,1],pn=Gi($t.from,Dt.from),Lr=Gi($t.to,Dt.to);(pn<0||!bt.inclusiveLeft&&!pn)&&Jn.push({from:$t.from,to:Dt.from}),(Lr>0||!bt.inclusiveRight&&!Lr)&&Jn.push({from:Dt.to,to:$t.to}),Ce.splice.apply(Ce,Jn),Mt+=Jn.length-3}}return Ce}function xr(re){var ce=re.markedSpans;if(ce){for(var ye=0;ye<ce.length;++ye)ce[ye].marker.detachLine(re);re.markedSpans=null}}function xt(re,ce){if(ce){for(var ye=0;ye<ce.length;++ye)ce[ye].marker.attachLine(re);re.markedSpans=ce}}function Po(re){return re.inclusiveLeft?-1:0}function zo(re){return re.inclusiveRight?1:0}function ya(re,ce){var ye=re.lines.length-ce.lines.length;if(ye!=0)return ye;var ve=re.find(),Ce=ce.find(),$e=Gi(ve.from,Ce.from)||Po(re)-Po(ce);if($e)return-$e;var bt=Gi(ve.to,Ce.to)||zo(re)-zo(ce);return bt||ce.id-re.id}function xa(re,ce){var ye=Ar&&re.markedSpans,ve;if(ye)for(var Ce=void 0,$e=0;$e<ye.length;++$e)Ce=ye[$e],Ce.marker.collapsed&&(ce?Ce.from:Ce.to)==null&&(!ve||ya(ve,Ce.marker)<0)&&(ve=Ce.marker);return ve}function Sa(re){return xa(re,!0)}function ha(re){return xa(re,!1)}function Gt(re,ce){var ye=Ar&&re.markedSpans,ve;if(ye)for(var Ce=0;Ce<ye.length;++Ce){var $e=ye[Ce];$e.marker.collapsed&&($e.from==null||$e.from<ce)&&($e.to==null||$e.to>ce)&&(!ve||ya(ve,$e.marker)<0)&&(ve=$e.marker)}return ve}function fr(re,ce,ye,ve,Ce){var $e=Cr(re,ce),bt=Ar&&$e.markedSpans;if(bt)for(var Dt=0;Dt<bt.length;++Dt){var Mt=bt[Dt];if(Mt.marker.collapsed){var $t=Mt.marker.find(0),Jn=Gi($t.from,ye)||Po(Mt.marker)-Po(Ce),pn=Gi($t.to,ve)||zo(Mt.marker)-zo(Ce);if(!(Jn>=0&&pn<=0||Jn<=0&&pn>=0)&&(Jn<=0&&(Mt.marker.inclusiveRight&&Ce.inclusiveLeft?Gi($t.to,ye)>=0:Gi($t.to,ye)>0)||Jn>=0&&(Mt.marker.inclusiveRight&&Ce.inclusiveLeft?Gi($t.from,ve)<=0:Gi($t.from,ve)<0)))return!0}}}function pr(re){for(var ce;ce=Sa(re);)re=ce.find(-1,!0).line;return re}function Tr(re){for(var ce;ce=ha(re);)re=ce.find(1,!0).line;return re}function Ln(re){for(var ce,ye;ce=ha(re);)re=ce.find(1,!0).line,(ye||(ye=[])).push(re);return ye}function or(re,ce){var ye=Cr(re,ce),ve=pr(ye);return ye==ve?ce:Pn(ve)}function vr(re,ce){if(ce>re.lastLine())return ce;var ye=Cr(re,ce),ve;if(!sn(re,ye))return ce;for(;ve=ha(ye);)ye=ve.find(1,!0).line;return Pn(ye)+1}function sn(re,ce){var ye=Ar&&ce.markedSpans;if(ye){for(var ve=void 0,Ce=0;Ce<ye.length;++Ce)if(ve=ye[Ce],!!ve.marker.collapsed){if(ve.from==null)return!0;if(!ve.marker.widgetNode&&ve.from==0&&ve.marker.inclusiveLeft&&mr(re,ce,ve))return!0}}}function mr(re,ce,ye){if(ye.to==null){var ve=ye.marker.find(1,!0);return mr(re,ve.line,Nr(ve.line.markedSpans,ye.marker))}if(ye.marker.inclusiveRight&&ye.to==ce.text.length)return!0;for(var Ce=void 0,$e=0;$e<ce.markedSpans.length;++$e)if(Ce=ce.markedSpans[$e],Ce.marker.collapsed&&!Ce.marker.widgetNode&&Ce.from==ye.to&&(Ce.to==null||Ce.to!=ye.from)&&(Ce.marker.inclusiveLeft||ye.marker.inclusiveRight)&&mr(re,ce,Ce))return!0}function Vr(re){re=pr(re);for(var ce=0,ye=re.parent,ve=0;ve<ye.lines.length;++ve){var Ce=ye.lines[ve];if(Ce==re)break;ce+=Ce.height}for(var $e=ye.parent;$e;ye=$e,$e=ye.parent)for(var bt=0;bt<$e.children.length;++bt){var Dt=$e.children[bt];if(Dt==ye)break;ce+=Dt.height}return ce}function no(re){if(re.height==0)return 0;for(var ce=re.text.length,ye,ve=re;ye=Sa(ve);){var Ce=ye.find(0,!0);ve=Ce.from.line,ce+=Ce.from.ch-Ce.to.ch}for(ve=re;ye=ha(ve);){var $e=ye.find(0,!0);ce-=ve.text.length-$e.from.ch,ve=$e.to.line,ce+=ve.text.length-$e.to.ch}return ce}function Xi(re){var ce=re.display,ye=re.doc;ce.maxLine=Cr(ye,ye.first),ce.maxLineLength=no(ce.maxLine),ce.maxLineChanged=!0,ye.iter(function(ve){var Ce=no(ve);Ce>ce.maxLineLength&&(ce.maxLineLength=Ce,ce.maxLine=ve)})}var zi=function(re,ce,ye){this.text=re,xt(this,ce),this.height=ye?ye(this):1};zi.prototype.lineNo=function(){return Pn(this)},Sn(zi);function _o(re,ce,ye,ve){re.text=ce,re.stateAfter&&(re.stateAfter=null),re.styles&&(re.styles=null),re.order!=null&&(re.order=null),xr(re),xt(re,ye);var Ce=ve?ve(re):1;Ce!=re.height&&Ur(re,Ce)}function sa(re){re.parent=null,xr(re)}var Va={},os={};function Zs(re,ce){if(!re||/^\s*$/.test(re))return null;var ye=ce.addModeClass?os:Va;return ye[re]||(ye[re]=re.replace(/\S+/g,"cm-$&"))}function Un(re,ce){var ye=Nt("span",null,null,_e?"padding-right: .1px":null),ve={pre:Nt("pre",[ye],"CodeMirror-line"),content:ye,col:0,pos:0,cm:re,trailingSpace:!1,splitSpaces:re.getOption("lineWrapping")};ce.measure={};for(var Ce=0;Ce<=(ce.rest?ce.rest.length:0);Ce++){var $e=Ce?ce.rest[Ce-1]:ce.line,bt=void 0;ve.pos=0,ve.addToken=Ds,Ni(re.display.measure)&&(bt=sr($e,re.doc.direction))&&(ve.addToken=_a(ve.addToken,bt)),ve.map=[];var Dt=ce!=re.display.externalMeasured&&Pn($e);ol($e,ve,gs(re,$e,Dt)),$e.styleClasses&&($e.styleClasses.bgClass&&(ve.bgClass=nn($e.styleClasses.bgClass,ve.bgClass||"")),$e.styleClasses.textClass&&(ve.textClass=nn($e.styleClasses.textClass,ve.textClass||""))),ve.map.length==0&&ve.map.push(0,0,ve.content.appendChild(ui(re.display.measure))),Ce==0?(ce.measure.map=ve.map,ce.measure.cache={}):((ce.measure.maps||(ce.measure.maps=[])).push(ve.map),(ce.measure.caches||(ce.measure.caches=[])).push({}))}if(_e){var Mt=ve.content.lastChild;(/\bcm-tab\b/.test(Mt.className)||Mt.querySelector&&Mt.querySelector(".cm-tab"))&&(ve.content.className="cm-tab-wrap-hack")}return bn(re,"renderLine",re,ce.line,ve.pre),ve.pre.className&&(ve.textClass=nn(ve.pre.className,ve.textClass||"")),ve}function ws(re){var ce=ft("span","\u2022","cm-invalidchar");return ce.title="\\u"+re.charCodeAt(0).toString(16),ce.setAttribute("aria-label",ce.title),ce}function Ds(re,ce,ye,ve,Ce,$e,bt){if(ce){var Dt=re.splitSpaces?dl(ce,re.trailingSpace):ce,Mt=re.cm.state.specialChars,$t=!1,Jn;if(!Mt.test(ce))re.col+=ce.length,Jn=document.createTextNode(Dt),re.map.push(re.pos,re.pos+ce.length,Jn),tt&&Me<9&&($t=!0),re.pos+=ce.length;else{Jn=document.createDocumentFragment();for(var pn=0;;){Mt.lastIndex=pn;var Lr=Mt.exec(ce),Sr=Lr?Lr.index-pn:ce.length-pn;if(Sr){var wi=document.createTextNode(Dt.slice(pn,pn+Sr));tt&&Me<9?Jn.appendChild(ft("span",[wi])):Jn.appendChild(wi),re.map.push(re.pos,re.pos+Sr,wi),re.col+=Sr,re.pos+=Sr}if(!Lr)break;pn+=Sr+1;var ki=void 0;if(Lr[0]==" "){var oo=re.cm.options.tabSize,Mo=oo-re.col%oo;ki=Jn.appendChild(ft("span",Wt(Mo),"cm-tab")),ki.setAttribute("role","presentation"),ki.setAttribute("cm-text"," "),re.col+=Mo}else Lr[0]=="\r"||Lr[0]==`
|
|
|
`?(ki=Jn.appendChild(ft("span",Lr[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ki.setAttribute("cm-text",Lr[0]),re.col+=1):(ki=re.cm.options.specialCharPlaceholder(Lr[0]),ki.setAttribute("cm-text",Lr[0]),tt&&Me<9?Jn.appendChild(ft("span",[ki])):Jn.appendChild(ki),re.col+=1);re.map.push(re.pos,re.pos+1,ki),re.pos++}}if(re.trailingSpace=Dt.charCodeAt(ce.length-1)==32,ye||ve||Ce||$t||$e||bt){var Na=ye||"";ve&&(Na+=ve),Ce&&(Na+=Ce);var Jo=ft("span",[Jn],Na,$e);if(bt)for(var Ra in bt)bt.hasOwnProperty(Ra)&&Ra!="style"&&Ra!="class"&&Jo.setAttribute(Ra,bt[Ra]);return re.content.appendChild(Jo)}re.content.appendChild(Jn)}}function dl(re,ce){if(re.length>1&&!/ /.test(re))return re;for(var ye=ce,ve="",Ce=0;Ce<re.length;Ce++){var $e=re.charAt(Ce);$e==" "&&ye&&(Ce==re.length-1||re.charCodeAt(Ce+1)==32)&&($e="\xA0"),ve+=$e,ye=$e==" "}return ve}function _a(re,ce){return function(ye,ve,Ce,$e,bt,Dt,Mt){Ce=Ce?Ce+" cm-force-border":"cm-force-border";for(var $t=ye.pos,Jn=$t+ve.length;;){for(var pn=void 0,Lr=0;Lr<ce.length&&(pn=ce[Lr],!(pn.to>$t&&pn.from<=$t));Lr++);if(pn.to>=Jn)return re(ye,ve,Ce,$e,bt,Dt,Mt);re(ye,ve.slice(0,pn.to-$t),Ce,$e,null,Dt,Mt),$e=null,ve=ve.slice(pn.to-$t),$t=pn.to}}}function js(re,ce,ye,ve){var Ce=!ve&&ye.widgetNode;Ce&&re.map.push(re.pos,re.pos+ce,Ce),!ve&&re.cm.display.input.needsContentAttribute&&(Ce||(Ce=re.content.appendChild(document.createElement("span"))),Ce.setAttribute("cm-marker",ye.id)),Ce&&(re.cm.display.input.setUneditable(Ce),re.content.appendChild(Ce)),re.pos+=ce,re.trailingSpace=!1}function ol(re,ce,ye){var ve=re.markedSpans,Ce=re.text,$e=0;if(!ve){for(var bt=1;bt<ye.length;bt+=2)ce.addToken(ce,Ce.slice($e,$e=ye[bt]),Zs(ye[bt+1],ce.cm.options));return}for(var Dt=Ce.length,Mt=0,$t=1,Jn="",pn,Lr,Sr=0,wi,ki,oo,Mo,Na;;){if(Sr==Mt){wi=ki=oo=Lr="",Na=null,Mo=null,Sr=1/0;for(var Jo=[],Ra=void 0,Es=0;Es<ve.length;++Es){var $o=ve[Es],Ys=$o.marker;if(Ys.type=="bookmark"&&$o.from==Mt&&Ys.widgetNode)Jo.push(Ys);else if($o.from<=Mt&&($o.to==null||$o.to>Mt||Ys.collapsed&&$o.to==Mt&&$o.from==Mt)){if($o.to!=null&&$o.to!=Mt&&Sr>$o.to&&(Sr=$o.to,ki=""),Ys.className&&(wi+=" "+Ys.className),Ys.css&&(Lr=(Lr?Lr+";":"")+Ys.css),Ys.startStyle&&$o.from==Mt&&(oo+=" "+Ys.startStyle),Ys.endStyle&&$o.to==Sr&&(Ra||(Ra=[])).push(Ys.endStyle,$o.to),Ys.title&&((Na||(Na={})).title=Ys.title),Ys.attributes)for(var ou in Ys.attributes)(Na||(Na={}))[ou]=Ys.attributes[ou];Ys.collapsed&&(!Mo||ya(Mo.marker,Ys)<0)&&(Mo=$o)}else $o.from>Mt&&Sr>$o.from&&(Sr=$o.from)}if(Ra)for(var nc=0;nc<Ra.length;nc+=2)Ra[nc+1]==Sr&&(ki+=" "+Ra[nc]);if(!Mo||Mo.from==Mt)for(var Su=0;Su<Jo.length;++Su)js(ce,0,Jo[Su]);if(Mo&&(Mo.from||0)==Mt){if(js(ce,(Mo.to==null?Dt+1:Mo.to)-Mt,Mo.marker,Mo.from==null),Mo.to==null)return;Mo.to==Mt&&(Mo=!1)}}if(Mt>=Dt)break;for(var Qc=Math.min(Dt,Sr);;){if(Jn){var Ac=Mt+Jn.length;if(!Mo){var Yu=Ac>Qc?Jn.slice(0,Qc-Mt):Jn;ce.addToken(ce,Yu,pn?pn+wi:wi,oo,Mt+Yu.length==Sr?ki:"",Lr,Na)}if(Ac>=Qc){Jn=Jn.slice(Qc-Mt),Mt=Qc;break}Mt=Ac,oo=""}Jn=Ce.slice($e,$e=ye[$t++]),pn=Zs(ye[$t++],ce.cm.options)}}}function Tl(re,ce,ye){this.line=ce,this.rest=Ln(ce),this.size=this.rest?Pn(ht(this.rest))-ye+1:1,this.node=this.text=null,this.hidden=sn(re,ce)}function Wa(re,ce,ye){for(var ve=[],Ce,$e=ce;$e<ye;$e=Ce){var bt=new Tl(re.doc,Cr(re.doc,$e),$e);Ce=$e+bt.size,ve.push(bt)}return ve}var vs=null;function Io(re){vs?vs.ops.push(re):re.ownsGroup=vs={ops:[re],delayedCallbacks:[]}}function pa(re){var ce=re.delayedCallbacks,ye=0;do{for(;ye<ce.length;ye++)ce[ye].call(null);for(var ve=0;ve<re.ops.length;ve++){var Ce=re.ops[ve];if(Ce.cursorActivityHandlers)for(;Ce.cursorActivityCalled<Ce.cursorActivityHandlers.length;)Ce.cursorActivityHandlers[Ce.cursorActivityCalled++].call(null,Ce.cm)}}while(ye<ce.length)}function Ua(re,ce){var ye=re.ownsGroup;if(ye)try{pa(ye)}finally{vs=null,ce(ye)}}var as=null;function Bi(re,ce){var ye=yi(re,ce);if(ye.length){var ve=Array.prototype.slice.call(arguments,2),Ce;vs?Ce=vs.delayedCallbacks:as?Ce=as:(Ce=as=[],setTimeout(Xs,0));for(var $e=function(Dt){Ce.push(function(){return ye[Dt].apply(null,ve)})},bt=0;bt<ye.length;++bt)$e(bt)}}function Xs(){var re=as;as=null;for(var ce=0;ce<re.length;++ce)re[ce]()}function Ls(re,ce,ye,ve){for(var Ce=0;Ce<ce.changes.length;Ce++){var $e=ce.changes[Ce];$e=="text"?ci(re,ce):$e=="gutter"?Vs(re,ce,ye,ve):$e=="class"?zs(re,ce):$e=="widget"&&Ul(re,ce,ve)}ce.changes=null}function Gs(re){return re.node==re.text&&(re.node=ft("div",null,null,"position: relative"),re.text.parentNode&&re.text.parentNode.replaceChild(re.node,re.text),re.node.appendChild(re.text),tt&&Me<8&&(re.node.style.zIndex=2)),re.node}function vl(re,ce){var ye=ce.bgClass?ce.bgClass+" "+(ce.line.bgClass||""):ce.line.bgClass;if(ye&&(ye+=" CodeMirror-linebackground"),ce.background)ye?ce.background.className=ye:(ce.background.parentNode.removeChild(ce.background),ce.background=null);else if(ye){var ve=Gs(ce);ce.background=ve.insertBefore(ft("div",null,ye),ve.firstChild),re.display.input.setUneditable(ce.background)}}function Ml(re,ce){var ye=re.display.externalMeasured;return ye&&ye.line==ce.line?(re.display.externalMeasured=null,ce.measure=ye.measure,ye.built):Un(re,ce)}function ci(re,ce){var ye=ce.text.className,ve=Ml(re,ce);ce.text==ce.node&&(ce.node=ve.pre),ce.text.parentNode.replaceChild(ve.pre,ce.text),ce.text=ve.pre,ve.bgClass!=ce.bgClass||ve.textClass!=ce.textClass?(ce.bgClass=ve.bgClass,ce.textClass=ve.textClass,zs(re,ce)):ye&&(ce.text.className=ye)}function zs(re,ce){vl(re,ce),ce.line.wrapClass?Gs(ce).className=ce.line.wrapClass:ce.node!=ce.text&&(ce.node.className="");var ye=ce.textClass?ce.textClass+" "+(ce.line.textClass||""):ce.line.textClass;ce.text.className=ye||""}function Vs(re,ce,ye,ve){if(ce.gutter&&(ce.node.removeChild(ce.gutter),ce.gutter=null),ce.gutterBackground&&(ce.node.removeChild(ce.gutterBackground),ce.gutterBackground=null),ce.line.gutterClass){var Ce=Gs(ce);ce.gutterBackground=ft("div",null,"CodeMirror-gutter-background "+ce.line.gutterClass,"left: "+(re.options.fixedGutter?ve.fixedPos:-ve.gutterTotalWidth)+"px; width: "+ve.gutterTotalWidth+"px"),re.display.input.setUneditable(ce.gutterBackground),Ce.insertBefore(ce.gutterBackground,ce.text)}var $e=ce.line.gutterMarkers;if(re.options.lineNumbers||$e){var bt=Gs(ce),Dt=ce.gutter=ft("div",null,"CodeMirror-gutter-wrapper","left: "+(re.options.fixedGutter?ve.fixedPos:-ve.gutterTotalWidth)+"px");if(re.display.input.setUneditable(Dt),bt.insertBefore(Dt,ce.text),ce.line.gutterClass&&(Dt.className+=" "+ce.line.gutterClass),re.options.lineNumbers&&(!$e||!$e["CodeMirror-linenumbers"])&&(ce.lineNumber=Dt.appendChild(ft("div",Xo(re.options,ye),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ve.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+re.display.lineNumInnerWidth+"px"))),$e)for(var Mt=0;Mt<re.display.gutterSpecs.length;++Mt){var $t=re.display.gutterSpecs[Mt].className,Jn=$e.hasOwnProperty($t)&&$e[$t];Jn&&Dt.appendChild(ft("div",[Jn],"CodeMirror-gutter-elt","left: "+ve.gutterLeft[$t]+"px; width: "+ve.gutterWidth[$t]+"px"))}}}function Ul(re,ce,ye){ce.alignable&&(ce.alignable=null);for(var ve=Be("CodeMirror-linewidget"),Ce=ce.node.firstChild,$e=void 0;Ce;Ce=$e)$e=Ce.nextSibling,ve.test(Ce.className)&&ce.node.removeChild(Ce);Dl(re,ce,ye)}function Qs(re,ce,ye,ve){var Ce=Ml(re,ce);return ce.text=ce.node=Ce.pre,Ce.bgClass&&(ce.bgClass=Ce.bgClass),Ce.textClass&&(ce.textClass=Ce.textClass),zs(re,ce),Vs(re,ce,ye,ve),Dl(re,ce,ve),ce.node}function Dl(re,ce,ye){if(la(re,ce.line,ce,ye,!0),ce.rest)for(var ve=0;ve<ce.rest.length;ve++)la(re,ce.rest[ve],ce,ye,!1)}function la(re,ce,ye,ve,Ce){if(ce.widgets)for(var $e=Gs(ye),bt=0,Dt=ce.widgets;bt<Dt.length;++bt){var Mt=Dt[bt],$t=ft("div",[Mt.node],"CodeMirror-linewidget"+(Mt.className?" "+Mt.className:""));Mt.handleMouseEvents||$t.setAttribute("cm-ignore-events","true"),gu(Mt,$t,ye,ve),re.display.input.setUneditable($t),Ce&&Mt.above?$e.insertBefore($t,ye.gutter||ye.text):$e.appendChild($t),Bi(Mt,"redraw")}}function gu(re,ce,ye,ve){if(re.noHScroll){(ye.alignable||(ye.alignable=[])).push(ce);var Ce=ve.wrapperWidth;ce.style.left=ve.fixedPos+"px",re.coverGutter||(Ce-=ve.gutterTotalWidth,ce.style.paddingLeft=ve.gutterTotalWidth+"px"),ce.style.width=Ce+"px"}re.coverGutter&&(ce.style.zIndex=5,ce.style.position="relative",re.noHScroll||(ce.style.marginLeft=-ve.gutterTotalWidth+"px"))}function Pl(re){if(re.height!=null)return re.height;var ce=re.doc.cm;if(!ce)return 0;if(!Ct(document.body,re.node)){var ye="position: relative;";re.coverGutter&&(ye+="margin-left: -"+ce.display.gutters.offsetWidth+"px;"),re.noHScroll&&(ye+="width: "+ce.display.wrapper.clientWidth+"px;"),gt(ce.display.measure,ft("div",[re.node],null,ye))}return re.height=re.node.parentNode.offsetHeight}function Is(re,ce){for(var ye=Ir(ce);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 eu(re){return re.lineSpace.offsetTop}function Hu(re){return re.mover.offsetHeight-re.lineSpace.offsetHeight}function cc(re){if(re.cachedPaddingH)return re.cachedPaddingH;var ce=gt(re.measure,ft("pre","x","CodeMirror-line-like")),ye=window.getComputedStyle?window.getComputedStyle(ce):ce.currentStyle,ve={left:parseInt(ye.paddingLeft),right:parseInt(ye.paddingRight)};return!isNaN(ve.left)&&!isNaN(ve.right)&&(re.cachedPaddingH=ve),ve}function Il(re){return on-re.display.nativeBarWidth}function al(re){return re.display.scroller.clientWidth-Il(re)-re.display.barWidth}function Dc(re){return re.display.scroller.clientHeight-Il(re)-re.display.barHeight}function Fc(re,ce,ye){var ve=re.options.lineWrapping,Ce=ve&&al(re);if(!ce.measure.heights||ve&&ce.measure.width!=Ce){var $e=ce.measure.heights=[];if(ve){ce.measure.width=Ce;for(var bt=ce.text.firstChild.getClientRects(),Dt=0;Dt<bt.length-1;Dt++){var Mt=bt[Dt],$t=bt[Dt+1];Math.abs(Mt.bottom-$t.bottom)>2&&$e.push((Mt.bottom+$t.top)/2-ye.top)}}$e.push(ye.bottom-ye.top)}}function rc(re,ce,ye){if(re.line==ce)return{map:re.measure.map,cache:re.measure.cache};for(var ve=0;ve<re.rest.length;ve++)if(re.rest[ve]==ce)return{map:re.measure.maps[ve],cache:re.measure.caches[ve]};for(var Ce=0;Ce<re.rest.length;Ce++)if(Pn(re.rest[Ce])>ye)return{map:re.measure.maps[Ce],cache:re.measure.caches[Ce],before:!0}}function Bc(re,ce){ce=pr(ce);var ye=Pn(ce),ve=re.display.externalMeasured=new Tl(re.doc,ce,ye);ve.lineN=ye;var Ce=ve.built=Un(re,ve);return ve.text=Ce.pre,gt(re.display.lineMeasure,Ce.pre),ve}function Iu(re,ce,ye,ve){return Ju(re,Fl(re,ce),ye,ve)}function Al(re,ce){if(ce>=re.display.viewFrom&&ce<re.display.viewTo)return re.display.view[Jl(re,ce)];var ye=re.display.externalMeasured;if(ye&&ce>=ye.lineN&&ce<ye.lineN+ye.size)return ye}function Fl(re,ce){var ye=Pn(ce),ve=Al(re,ye);ve&&!ve.text?ve=null:ve&&ve.changes&&(Ls(re,ve,ye,fc(re)),re.curOp.forceUpdate=!0),ve||(ve=Bc(re,ce));var Ce=rc(ve,ce,ye);return{line:ce,view:ve,rect:null,map:Ce.map,cache:Ce.cache,before:Ce.before,hasHeights:!1}}function Ju(re,ce,ye,ve,Ce){ce.before&&(ye=-1);var $e=ye+(ve||""),bt;return ce.cache.hasOwnProperty($e)?bt=ce.cache[$e]:(ce.rect||(ce.rect=ce.view.text.getBoundingClientRect()),ce.hasHeights||(Fc(re,ce.view,ce.rect),ce.hasHeights=!0),bt=yl(re,ce,ye,ve),bt.bogus||(ce.cache[$e]=bt)),{left:bt.left,right:bt.right,top:Ce?bt.rtop:bt.top,bottom:Ce?bt.rbottom:bt.bottom}}var _c={left:0,right:0,top:0,bottom:0};function $u(re,ce,ye){for(var ve,Ce,$e,bt,Dt,Mt,$t=0;$t<re.length;$t+=3)if(Dt=re[$t],Mt=re[$t+1],ce<Dt?(Ce=0,$e=1,bt="left"):ce<Mt?(Ce=ce-Dt,$e=Ce+1):($t==re.length-3||ce==Mt&&re[$t+3]>ce)&&($e=Mt-Dt,Ce=$e-1,ce>=Mt&&(bt="right")),Ce!=null){if(ve=re[$t+2],Dt==Mt&&ye==(ve.insertLeft?"left":"right")&&(bt=ye),ye=="left"&&Ce==0)for(;$t&&re[$t-2]==re[$t-3]&&re[$t-1].insertLeft;)ve=re[($t-=3)+2],bt="left";if(ye=="right"&&Ce==Mt-Dt)for(;$t<re.length-3&&re[$t+3]==re[$t+4]&&!re[$t+5].insertLeft;)ve=re[($t+=3)+2],bt="right";break}return{node:ve,start:Ce,end:$e,collapse:bt,coverStart:Dt,coverEnd:Mt}}function od(re,ce){var ye=_c;if(ce=="left")for(var ve=0;ve<re.length&&(ye=re[ve]).left==ye.right;ve++);else for(var Ce=re.length-1;Ce>=0&&(ye=re[Ce]).left==ye.right;Ce--);return ye}function yl(re,ce,ye,ve){var Ce=$u(ce.map,ye,ve),$e=Ce.node,bt=Ce.start,Dt=Ce.end,Mt=Ce.collapse,$t;if($e.nodeType==3){for(var Jn=0;Jn<4;Jn++){for(;bt&&In(ce.line.text.charAt(Ce.coverStart+bt));)--bt;for(;Ce.coverStart+Dt<Ce.coverEnd&&In(ce.line.text.charAt(Ce.coverStart+Dt));)++Dt;if(tt&&Me<9&&bt==0&&Dt==Ce.coverEnd-Ce.coverStart?$t=$e.parentNode.getBoundingClientRect():$t=od(Tt($e,bt,Dt).getClientRects(),ve),$t.left||$t.right||bt==0)break;Dt=bt,bt=bt-1,Mt="right"}tt&&Me<11&&($t=fd(re.display.measure,$t))}else{bt>0&&(Mt=ve="right");var pn;re.options.lineWrapping&&(pn=$e.getClientRects()).length>1?$t=pn[ve=="right"?pn.length-1:0]:$t=$e.getBoundingClientRect()}if(tt&&Me<9&&!bt&&(!$t||!$t.left&&!$t.right)){var Lr=$e.parentNode.getClientRects()[0];Lr?$t={left:Lr.left,right:Lr.left+Tu(re.display),top:Lr.top,bottom:Lr.bottom}:$t=_c}for(var Sr=$t.top-ce.rect.top,wi=$t.bottom-ce.rect.top,ki=(Sr+wi)/2,oo=ce.view.measure.heights,Mo=0;Mo<oo.length-1&&!(ki<oo[Mo]);Mo++);var Na=Mo?oo[Mo-1]:0,Jo=oo[Mo],Ra={left:(Mt=="right"?$t.right:$t.left)-ce.rect.left,right:(Mt=="left"?$t.left:$t.right)-ce.rect.left,top:Na,bottom:Jo};return!$t.left&&!$t.right&&(Ra.bogus=!0),re.options.singleCursorHeightPerLine||(Ra.rtop=Sr,Ra.rbottom=wi),Ra}function fd(re,ce){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!hr(re))return ce;var ye=screen.logicalXDPI/screen.deviceXDPI,ve=screen.logicalYDPI/screen.deviceYDPI;return{left:ce.left*ye,right:ce.right*ye,top:ce.top*ve,bottom:ce.bottom*ve}}function pd(re){if(re.measure&&(re.measure.cache={},re.measure.heights=null,re.rest))for(var ce=0;ce<re.rest.length;ce++)re.measure.caches[ce]={}}function Uc(re){re.display.externalMeasure=null,dt(re.display.lineMeasure);for(var ce=0;ce<re.display.view.length;ce++)pd(re.display.view[ce])}function ic(re){Uc(re),re.display.cachedCharWidth=re.display.cachedTextHeight=re.display.cachedPaddingH=null,re.options.lineWrapping||(re.display.maxLineChanged=!0),re.display.lineNumChars=null}function lu(){return et&&te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function mu(){return et&&te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function kl(re){var ce=0;if(re.widgets)for(var ye=0;ye<re.widgets.length;++ye)re.widgets[ye].above&&(ce+=Pl(re.widgets[ye]));return ce}function Hl(re,ce,ye,ve,Ce){if(!Ce){var $e=kl(ce);ye.top+=$e,ye.bottom+=$e}if(ve=="line")return ye;ve||(ve="local");var bt=Vr(ce);if(ve=="local"?bt+=eu(re.display):bt-=re.display.viewOffset,ve=="page"||ve=="window"){var Dt=re.display.lineSpace.getBoundingClientRect();bt+=Dt.top+(ve=="window"?0:mu());var Mt=Dt.left+(ve=="window"?0:lu());ye.left+=Mt,ye.right+=Mt}return ye.top+=bt,ye.bottom+=bt,ye}function Yc(re,ce,ye){if(ye=="div")return ce;var ve=ce.left,Ce=ce.top;if(ye=="page")ve-=lu(),Ce-=mu();else if(ye=="local"||!ye){var $e=re.display.sizer.getBoundingClientRect();ve+=$e.left,Ce+=$e.top}var bt=re.display.lineSpace.getBoundingClientRect();return{left:ve-bt.left,top:Ce-bt.top}}function Wl(re,ce,ye,ve,Ce){return ve||(ve=Cr(re.doc,ce.line)),Hl(re,ve,Iu(re,ve,ce.ch,Ce),ye)}function hl(re,ce,ye,ve,Ce,$e){ve=ve||Cr(re.doc,ce.line),Ce||(Ce=Fl(re,ve));function bt(wi,ki){var oo=Ju(re,Ce,wi,ki?"right":"left",$e);return ki?oo.left=oo.right:oo.right=oo.left,Hl(re,ve,oo,ye)}var Dt=sr(ve,re.doc.direction),Mt=ce.ch,$t=ce.sticky;if(Mt>=ve.text.length?(Mt=ve.text.length,$t="before"):Mt<=0&&(Mt=0,$t="after"),!Dt)return bt($t=="before"?Mt-1:Mt,$t=="before");function Jn(wi,ki,oo){var Mo=Dt[ki],Na=Mo.level==1;return bt(oo?wi-1:wi,Na!=oo)}var pn=yn(Dt,Mt,$t),Lr=er,Sr=Jn(Mt,pn,$t=="before");return Lr!=null&&(Sr.other=Jn(Mt,Lr,$t!="before")),Sr}function ad(re,ce){var ye=0;ce=uo(re.doc,ce),re.options.lineWrapping||(ye=Tu(re.display)*ce.ch);var ve=Cr(re.doc,ce.line),Ce=Vr(ve)+eu(re.display);return{left:ye,right:ye,top:Ce,bottom:Ce+ve.height}}function oc(re,ce,ye,ve,Ce){var $e=wr(re,ce,ye);return $e.xRel=Ce,ve&&($e.outside=ve),$e}function ju(re,ce,ye){var ve=re.doc;if(ye+=re.display.viewOffset,ye<0)return oc(ve.first,0,null,-1,-1);var Ce=xi(ve,ye),$e=ve.first+ve.size-1;if(Ce>$e)return oc(ve.first+ve.size-1,Cr(ve,$e).text.length,null,1,1);ce<0&&(ce=0);for(var bt=Cr(ve,Ce);;){var Dt=Mr(re,bt,Ce,ce,ye),Mt=Gt(bt,Dt.ch+(Dt.xRel>0||Dt.outside>0?1:0));if(!Mt)return Dt;var $t=Mt.find(1);if($t.line==Ce)return $t;bt=Cr(ve,Ce=$t.line)}}function No(re,ce,ye,ve){ve-=kl(ce);var Ce=ce.text.length,$e=dr(function(bt){return Ju(re,ye,bt-1).bottom<=ve},Ce,0);return Ce=dr(function(bt){return Ju(re,ye,bt).top>ve},$e,Ce),{begin:$e,end:Ce}}function xc(re,ce,ye,ve){ye||(ye=Fl(re,ce));var Ce=Hl(re,ce,Ju(re,ye,ve),"line").top;return No(re,ce,ye,Ce)}function gn(re,ce,ye,ve){return re.bottom<=ye?!1:re.top>ye?!0:(ve?re.left:re.right)>ce}function Mr(re,ce,ye,ve,Ce){Ce-=Vr(ce);var $e=Fl(re,ce),bt=kl(ce),Dt=0,Mt=ce.text.length,$t=!0,Jn=sr(ce,re.doc.direction);if(Jn){var pn=(re.options.lineWrapping?dc:Cu)(re,ce,ye,$e,Jn,ve,Ce);$t=pn.level!=1,Dt=$t?pn.from:pn.to-1,Mt=$t?pn.to:pn.from-1}var Lr=null,Sr=null,wi=dr(function(Es){var $o=Ju(re,$e,Es);return $o.top+=bt,$o.bottom+=bt,gn($o,ve,Ce,!1)?($o.top<=Ce&&$o.left<=ve&&(Lr=Es,Sr=$o),!0):!1},Dt,Mt),ki,oo,Mo=!1;if(Sr){var Na=ve-Sr.left<Sr.right-ve,Jo=Na==$t;wi=Lr+(Jo?0:1),oo=Jo?"after":"before",ki=Na?Sr.left:Sr.right}else{!$t&&(wi==Mt||wi==Dt)&&wi++,oo=wi==0?"after":wi==ce.text.length?"before":Ju(re,$e,wi-($t?1:0)).bottom+bt<=Ce==$t?"after":"before";var Ra=hl(re,wr(ye,wi,oo),"line",ce,$e);ki=Ra.left,Mo=Ce<Ra.top?-1:Ce>=Ra.bottom?1:0}return wi=Kn(ce.text,wi,1),oc(ye,wi,oo,Mo,ve-ki)}function Cu(re,ce,ye,ve,Ce,$e,bt){var Dt=dr(function(pn){var Lr=Ce[pn],Sr=Lr.level!=1;return gn(hl(re,wr(ye,Sr?Lr.to:Lr.from,Sr?"before":"after"),"line",ce,ve),$e,bt,!0)},0,Ce.length-1),Mt=Ce[Dt];if(Dt>0){var $t=Mt.level!=1,Jn=hl(re,wr(ye,$t?Mt.from:Mt.to,$t?"after":"before"),"line",ce,ve);gn(Jn,$e,bt,!0)&&Jn.top>bt&&(Mt=Ce[Dt-1])}return Mt}function dc(re,ce,ye,ve,Ce,$e,bt){var Dt=No(re,ce,ve,bt),Mt=Dt.begin,$t=Dt.end;/\s/.test(ce.text.charAt($t-1))&&$t--;for(var Jn=null,pn=null,Lr=0;Lr<Ce.length;Lr++){var Sr=Ce[Lr];if(!(Sr.from>=$t||Sr.to<=Mt)){var wi=Sr.level!=1,ki=Ju(re,ve,wi?Math.min($t,Sr.to)-1:Math.max(Mt,Sr.from)).right,oo=ki<$e?$e-ki+1e9:ki-$e;(!Jn||pn>oo)&&(Jn=Sr,pn=oo)}}return Jn||(Jn=Ce[Ce.length-1]),Jn.from<Mt&&(Jn={from:Mt,to:Jn.to,level:Jn.level}),Jn.to>$t&&(Jn={from:Jn.from,to:$t,level:Jn.level}),Jn}var hc;function yu(re){if(re.cachedTextHeight!=null)return re.cachedTextHeight;if(hc==null){hc=ft("pre",null,"CodeMirror-line-like");for(var ce=0;ce<49;++ce)hc.appendChild(document.createTextNode("x")),hc.appendChild(ft("br"));hc.appendChild(document.createTextNode("x"))}gt(re.measure,hc);var ye=hc.offsetHeight/50;return ye>3&&(re.cachedTextHeight=ye),dt(re.measure),ye||1}function Tu(re){if(re.cachedCharWidth!=null)return re.cachedCharWidth;var ce=ft("span","xxxxxxxxxx"),ye=ft("pre",[ce],"CodeMirror-line-like");gt(re.measure,ye);var ve=ce.getBoundingClientRect(),Ce=(ve.right-ve.left)/10;return Ce>2&&(re.cachedCharWidth=Ce),Ce||10}function fc(re){for(var ce=re.display,ye={},ve={},Ce=ce.gutters.clientLeft,$e=ce.gutters.firstChild,bt=0;$e;$e=$e.nextSibling,++bt){var Dt=re.display.gutterSpecs[bt].className;ye[Dt]=$e.offsetLeft+$e.clientLeft+Ce,ve[Dt]=$e.clientWidth}return{fixedPos:Du(ce),gutterTotalWidth:ce.gutters.offsetWidth,gutterLeft:ye,gutterWidth:ve,wrapperWidth:ce.wrapper.clientWidth}}function Du(re){return re.scroller.getBoundingClientRect().left-re.sizer.getBoundingClientRect().left}function ml(re){var ce=yu(re.display),ye=re.options.lineWrapping,ve=ye&&Math.max(5,re.display.scroller.clientWidth/Tu(re.display)-3);return function(Ce){if(sn(re.doc,Ce))return 0;var $e=0;if(Ce.widgets)for(var bt=0;bt<Ce.widgets.length;bt++)Ce.widgets[bt].height&&($e+=Ce.widgets[bt].height);return ye?$e+(Math.ceil(Ce.text.length/ve)||1)*ce:$e+ce}}function ua(re){var ce=re.doc,ye=ml(re);ce.iter(function(ve){var Ce=ye(ve);Ce!=ve.height&&Ur(ve,Ce)})}function Ql(re,ce,ye,ve){var Ce=re.display;if(!ye&&Ir(ce).getAttribute("cm-not-content")=="true")return null;var $e,bt,Dt=Ce.lineSpace.getBoundingClientRect();try{$e=ce.clientX-Dt.left,bt=ce.clientY-Dt.top}catch(pn){return null}var Mt=ju(re,$e,bt),$t;if(ve&&Mt.xRel>0&&($t=Cr(re.doc,Mt.line).text).length==Mt.ch){var Jn=wt($t,$t.length,re.options.tabSize)-$t.length;Mt=wr(Mt.line,Math.max(0,Math.round(($e-cc(re.display).left)/Tu(re.display))-Jn))}return Mt}function Jl(re,ce){if(ce>=re.display.viewTo||(ce-=re.display.viewFrom,ce<0))return null;for(var ye=re.display.view,ve=0;ve<ye.length;ve++)if(ce-=ye[ve].size,ce<0)return ve}function el(re,ce,ye,ve){ce==null&&(ce=re.doc.first),ye==null&&(ye=re.doc.first+re.doc.size),ve||(ve=0);var Ce=re.display;if(ve&&ye<Ce.viewTo&&(Ce.updateLineNumbers==null||Ce.updateLineNumbers>ce)&&(Ce.updateLineNumbers=ce),re.curOp.viewChanged=!0,ce>=Ce.viewTo)Ar&&or(re.doc,ce)<Ce.viewTo&&Nl(re);else if(ye<=Ce.viewFrom)Ar&&vr(re.doc,ye+ve)>Ce.viewFrom?Nl(re):(Ce.viewFrom+=ve,Ce.viewTo+=ve);else if(ce<=Ce.viewFrom&&ye>=Ce.viewTo)Nl(re);else if(ce<=Ce.viewFrom){var $e=Au(re,ye,ye+ve,1);$e?(Ce.view=Ce.view.slice($e.index),Ce.viewFrom=$e.lineN,Ce.viewTo+=ve):Nl(re)}else if(ye>=Ce.viewTo){var bt=Au(re,ce,ce,-1);bt?(Ce.view=Ce.view.slice(0,bt.index),Ce.viewTo=bt.lineN):Nl(re)}else{var Dt=Au(re,ce,ce,-1),Mt=Au(re,ye,ye+ve,1);Dt&&Mt?(Ce.view=Ce.view.slice(0,Dt.index).concat(Wa(re,Dt.lineN,Mt.lineN)).concat(Ce.view.slice(Mt.index)),Ce.viewTo+=ve):Nl(re)}var $t=Ce.externalMeasured;$t&&(ye<$t.lineN?$t.lineN+=ve:ce<$t.lineN+$t.size&&(Ce.externalMeasured=null))}function ns(re,ce,ye){re.curOp.viewChanged=!0;var ve=re.display,Ce=re.display.externalMeasured;if(Ce&&ce>=Ce.lineN&&ce<Ce.lineN+Ce.size&&(ve.externalMeasured=null),!(ce<ve.viewFrom||ce>=ve.viewTo)){var $e=ve.view[Jl(re,ce)];if($e.node!=null){var bt=$e.changes||($e.changes=[]);Ie(bt,ye)==-1&&bt.push(ye)}}}function Nl(re){re.display.viewFrom=re.display.viewTo=re.doc.first,re.display.view=[],re.display.viewOffset=0}function Au(re,ce,ye,ve){var Ce=Jl(re,ce),$e,bt=re.display.view;if(!Ar||ye==re.doc.first+re.doc.size)return{index:Ce,lineN:ye};for(var Dt=re.display.viewFrom,Mt=0;Mt<Ce;Mt++)Dt+=bt[Mt].size;if(Dt!=ce){if(ve>0){if(Ce==bt.length-1)return null;$e=Dt+bt[Ce].size-ce,Ce++}else $e=Dt-ce;ce+=$e,ye+=$e}for(;or(re.doc,ye)!=ye;){if(Ce==(ve<0?0:bt.length-1))return null;ye+=ve*bt[Ce-(ve<0?1:0)].size,Ce+=ve}return{index:Ce,lineN:ye}}function ll(re,ce,ye){var ve=re.display,Ce=ve.view;Ce.length==0||ce>=ve.viewTo||ye<=ve.viewFrom?(ve.view=Wa(re,ce,ye),ve.viewFrom=ce):(ve.viewFrom>ce?ve.view=Wa(re,ce,ve.viewFrom).concat(ve.view):ve.viewFrom<ce&&(ve.view=ve.view.slice(Jl(re,ce))),ve.viewFrom=ce,ve.viewTo<ye?ve.view=ve.view.concat(Wa(re,ve.viewTo,ye)):ve.viewTo>ye&&(ve.view=ve.view.slice(0,Jl(re,ye)))),ve.viewTo=ye}function uu(re){for(var ce=re.display.view,ye=0,ve=0;ve<ce.length;ve++){var Ce=ce[ve];!Ce.hidden&&(!Ce.node||Ce.changes)&&++ye}return ye}function $l(re){re.display.input.showSelection(re.display.input.prepareSelection())}function ac(re,ce){ce===void 0&&(ce=!0);for(var ye=re.doc,ve={},Ce=ve.cursors=document.createDocumentFragment(),$e=ve.selection=document.createDocumentFragment(),bt=0;bt<ye.sel.ranges.length;bt++)if(!(!ce&&bt==ye.sel.primIndex)){var Dt=ye.sel.ranges[bt];if(!(Dt.from().line>=re.display.viewTo||Dt.to().line<re.display.viewFrom)){var Mt=Dt.empty();(Mt||re.options.showCursorWhenSelecting)&&ks(re,Dt.head,Ce),Mt||ys(re,Dt,$e)}}return ve}function ks(re,ce,ye){var ve=hl(re,ce,"div",null,null,!re.options.singleCursorHeightPerLine),Ce=ye.appendChild(ft("div","\xA0","CodeMirror-cursor"));if(Ce.style.left=ve.left+"px",Ce.style.top=ve.top+"px",Ce.style.height=Math.max(0,ve.bottom-ve.top)*re.options.cursorHeight+"px",ve.other){var $e=ye.appendChild(ft("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));$e.style.display="",$e.style.left=ve.other.left+"px",$e.style.top=ve.other.top+"px",$e.style.height=(ve.other.bottom-ve.other.top)*.85+"px"}}function tu(re,ce){return re.top-ce.top||re.left-ce.left}function ys(re,ce,ye){var ve=re.display,Ce=re.doc,$e=document.createDocumentFragment(),bt=cc(re.display),Dt=bt.left,Mt=Math.max(ve.sizerWidth,al(re)-ve.sizer.offsetLeft)-bt.right,$t=Ce.direction=="ltr";function Jn(Jo,Ra,Es,$o){Ra<0&&(Ra=0),Ra=Math.round(Ra),$o=Math.round($o),$e.appendChild(ft("div",null,"CodeMirror-selected","position: absolute; left: "+Jo+`px;
|
|
|
top: `+Ra+"px; width: "+(Es==null?Mt-Jo:Es)+`px;
|
|
|
height: `+($o-Ra)+"px"))}function pn(Jo,Ra,Es){var $o=Cr(Ce,Jo),Ys=$o.text.length,ou,nc;function Su(Yu,Jc){return Wl(re,wr(Jo,Yu),"div",$o,Jc)}function Qc(Yu,Jc,mc){var Zu=xc(re,$o,null,Yu),xl=Jc=="ltr"==(mc=="after")?"left":"right",Eu=mc=="after"?Zu.begin:Zu.end-(/\s/.test($o.text.charAt(Zu.end-1))?2:1);return Su(Eu,xl)[xl]}var Ac=sr($o,Ce.direction);return Rn(Ac,Ra||0,Es==null?Ys:Es,function(Yu,Jc,mc,Zu){var xl=mc=="ltr",Eu=Su(Yu,xl?"left":"right"),lc=Su(Jc-1,xl?"right":"left"),vc=Ra==null&&Yu==0,Rd=Es==null&&Jc==Ys,bu=Zu==0,vd=!Ac||Zu==Ac.length-1;if(lc.top-Eu.top<=3){var Ne=($t?vc:Rd)&&bu,Re=($t?Rd:vc)&&vd,Je=Ne?Dt:(xl?Eu:lc).left,yt=Re?Mt:(xl?lc:Eu).right;Jn(Je,Eu.top,yt-Je,Eu.bottom)}else{var Ht,Bt,Xt,rn;xl?(Ht=$t&&vc&&bu?Dt:Eu.left,Bt=$t?Mt:Qc(Yu,mc,"before"),Xt=$t?Dt:Qc(Jc,mc,"after"),rn=$t&&Rd&&vd?Mt:lc.right):(Ht=$t?Qc(Yu,mc,"before"):Dt,Bt=!$t&&vc&&bu?Mt:Eu.right,Xt=!$t&&Rd&&vd?Dt:lc.left,rn=$t?Qc(Jc,mc,"after"):Mt),Jn(Ht,Eu.top,Bt-Ht,Eu.bottom),Eu.bottom<lc.top&&Jn(Dt,Eu.bottom,null,lc.top),Jn(Xt,lc.top,rn-Xt,lc.bottom)}(!ou||tu(Eu,ou)<0)&&(ou=Eu),tu(lc,ou)<0&&(ou=lc),(!nc||tu(Eu,nc)<0)&&(nc=Eu),tu(lc,nc)<0&&(nc=lc)}),{start:ou,end:nc}}var Lr=ce.from(),Sr=ce.to();if(Lr.line==Sr.line)pn(Lr.line,Lr.ch,Sr.ch);else{var wi=Cr(Ce,Lr.line),ki=Cr(Ce,Sr.line),oo=pr(wi)==pr(ki),Mo=pn(Lr.line,Lr.ch,oo?wi.text.length+1:null).end,Na=pn(Sr.line,oo?0:null,Sr.ch).start;oo&&(Mo.top<Na.top-2?(Jn(Mo.right,Mo.top,null,Mo.bottom),Jn(Dt,Na.top,Na.left,Na.bottom)):Jn(Mo.right,Mo.top,Na.left-Mo.right,Mo.bottom)),Mo.bottom<Na.top&&Jn(Dt,Mo.bottom,null,Na.top)}ye.appendChild($e)}function Js(re){if(re.state.focused){var ce=re.display;clearInterval(ce.blinker);var ye=!0;ce.cursorDiv.style.visibility="",re.options.cursorBlinkRate>0?ce.blinker=setInterval(function(){re.hasFocus()||wc(re),ce.cursorDiv.style.visibility=(ye=!ye)?"":"hidden"},re.options.cursorBlinkRate):re.options.cursorBlinkRate<0&&(ce.cursorDiv.style.visibility="hidden")}}function ul(re){re.state.focused||(re.display.input.focus(),Fs(re))}function Sl(re){re.state.delayingBlurEvent=!0,setTimeout(function(){re.state.delayingBlurEvent&&(re.state.delayingBlurEvent=!1,wc(re))},100)}function Fs(re,ce){re.state.delayingBlurEvent&&(re.state.delayingBlurEvent=!1),re.options.readOnly!="nocursor"&&(re.state.focused||(bn(re,"focus",re,ce),re.state.focused=!0,Rt(re.display.wrapper,"CodeMirror-focused"),!re.curOp&&re.display.selForContextMenu!=re.doc.sel&&(re.display.input.reset(),_e&&setTimeout(function(){return re.display.input.reset(!0)},20)),re.display.input.receivedFocus()),Js(re))}function wc(re,ce){re.state.delayingBlurEvent||(re.state.focused&&(bn(re,"blur",re,ce),re.state.focused=!1,at(re.display.wrapper,"CodeMirror-focused")),clearInterval(re.display.blinker),setTimeout(function(){re.state.focused||(re.display.shift=!1)},150))}function Ti(re){for(var ce=re.display,ye=ce.lineDiv.offsetTop,ve=0;ve<ce.view.length;ve++){var Ce=ce.view[ve],$e=re.options.lineWrapping,bt=void 0,Dt=0;if(!Ce.hidden){if(tt&&Me<8){var Mt=Ce.node.offsetTop+Ce.node.offsetHeight;bt=Mt-ye,ye=Mt}else{var $t=Ce.node.getBoundingClientRect();bt=$t.bottom-$t.top,!$e&&Ce.text.firstChild&&(Dt=Ce.text.firstChild.getBoundingClientRect().right-$t.left-1)}var Jn=Ce.line.height-bt;if((Jn>.005||Jn<-.005)&&(Ur(Ce.line,bt),Cc(Ce.line),Ce.rest))for(var pn=0;pn<Ce.rest.length;pn++)Cc(Ce.rest[pn]);if(Dt>re.display.sizerWidth){var Lr=Math.ceil(Dt/Tu(re.display));Lr>re.display.maxLineLength&&(re.display.maxLineLength=Lr,re.display.maxLine=Ce.line,re.display.maxLineChanged=!0)}}}}function Cc(re){if(re.widgets)for(var ce=0;ce<re.widgets.length;++ce){var ye=re.widgets[ce],ve=ye.node.parentNode;ve&&(ye.height=ve.offsetHeight)}}function ms(re,ce,ye){var ve=ye&&ye.top!=null?Math.max(0,ye.top):re.scroller.scrollTop;ve=Math.floor(ve-eu(re));var Ce=ye&&ye.bottom!=null?ye.bottom:ve+re.wrapper.clientHeight,$e=xi(ce,ve),bt=xi(ce,Ce);if(ye&&ye.ensure){var Dt=ye.ensure.from.line,Mt=ye.ensure.to.line;Dt<$e?($e=Dt,bt=xi(ce,Vr(Cr(ce,Dt))+re.wrapper.clientHeight)):Math.min(Mt,ce.lastLine())>=bt&&($e=xi(ce,Vr(Cr(ce,Mt))-re.wrapper.clientHeight),bt=Mt)}return{from:$e,to:Math.max(bt,$e+1)}}function Id(re,ce){if(!Xe(re,"scrollCursorIntoView")){var ye=re.display,ve=ye.sizer.getBoundingClientRect(),Ce=null;if(ce.top+ve.top<0?Ce=!0:ce.bottom+ve.top>(window.innerHeight||document.documentElement.clientHeight)&&(Ce=!1),Ce!=null&&!_t){var $e=ft("div","\u200B",null,`position: absolute;
|
|
|
top: `+(ce.top-ye.viewOffset-eu(re.display))+`px;
|
|
|
height: `+(ce.bottom-ce.top+Il(re)+ye.barHeight)+`px;
|
|
|
left: `+ce.left+"px; width: "+Math.max(2,ce.right-ce.left)+"px;");re.display.lineSpace.appendChild($e),$e.scrollIntoView(Ce),re.display.lineSpace.removeChild($e)}}}function sc(re,ce,ye,ve){ve==null&&(ve=0);var Ce;!re.options.lineWrapping&&ce==ye&&(ce=ce.ch?wr(ce.line,ce.sticky=="before"?ce.ch-1:ce.ch,"after"):ce,ye=ce.sticky=="before"?wr(ce.line,ce.ch+1,"before"):ce);for(var $e=0;$e<5;$e++){var bt=!1,Dt=hl(re,ce),Mt=!ye||ye==ce?Dt:hl(re,ye);Ce={left:Math.min(Dt.left,Mt.left),top:Math.min(Dt.top,Mt.top)-ve,right:Math.max(Dt.left,Mt.left),bottom:Math.max(Dt.bottom,Mt.bottom)+ve};var $t=gd(re,Ce),Jn=re.doc.scrollTop,pn=re.doc.scrollLeft;if($t.scrollTop!=null&&(en(re,$t.scrollTop),Math.abs(re.doc.scrollTop-Jn)>1&&(bt=!0)),$t.scrollLeft!=null&&(hn(re,$t.scrollLeft),Math.abs(re.doc.scrollLeft-pn)>1&&(bt=!0)),!bt)break}return Ce}function Zc(re,ce){var ye=gd(re,ce);ye.scrollTop!=null&&en(re,ye.scrollTop),ye.scrollLeft!=null&&hn(re,ye.scrollLeft)}function gd(re,ce){var ye=re.display,ve=yu(re.display);ce.top<0&&(ce.top=0);var Ce=re.curOp&&re.curOp.scrollTop!=null?re.curOp.scrollTop:ye.scroller.scrollTop,$e=Dc(re),bt={};ce.bottom-ce.top>$e&&(ce.bottom=ce.top+$e);var Dt=re.doc.height+Hu(ye),Mt=ce.top<ve,$t=ce.bottom>Dt-ve;if(ce.top<Ce)bt.scrollTop=Mt?0:ce.top;else if(ce.bottom>Ce+$e){var Jn=Math.min(ce.top,($t?Dt:ce.bottom)-$e);Jn!=Ce&&(bt.scrollTop=Jn)}var pn=re.options.fixedGutter?0:ye.gutters.offsetWidth,Lr=re.curOp&&re.curOp.scrollLeft!=null?re.curOp.scrollLeft:ye.scroller.scrollLeft-pn,Sr=al(re)-ye.gutters.offsetWidth,wi=ce.right-ce.left>Sr;return wi&&(ce.right=ce.left+Sr),ce.left<10?bt.scrollLeft=0:ce.left<Lr?bt.scrollLeft=Math.max(0,ce.left+pn-(wi?0:10)):ce.right>Sr+Lr-3&&(bt.scrollLeft=ce.right+(wi?0:10)-Sr),bt}function Gu(re,ce){ce!=null&&(Pu(re),re.curOp.scrollTop=(re.curOp.scrollTop==null?re.doc.scrollTop:re.curOp.scrollTop)+ce)}function pc(re){Pu(re);var ce=re.getCursor();re.curOp.scrollToPos={from:ce,to:ce,margin:re.options.cursorScrollMargin}}function gc(re,ce,ye){(ce!=null||ye!=null)&&Pu(re),ce!=null&&(re.curOp.scrollLeft=ce),ye!=null&&(re.curOp.scrollTop=ye)}function Do(re,ce){Pu(re),re.curOp.scrollToPos=ce}function Pu(re){var ce=re.curOp.scrollToPos;if(ce){re.curOp.scrollToPos=null;var ye=ad(re,ce.from),ve=ad(re,ce.to);kt(re,ye,ve,ce.margin)}}function kt(re,ce,ye,ve){var Ce=gd(re,{left:Math.min(ce.left,ye.left),top:Math.min(ce.top,ye.top)-ve,right:Math.max(ce.right,ye.right),bottom:Math.max(ce.bottom,ye.bottom)+ve});gc(re,Ce.scrollLeft,Ce.scrollTop)}function en(re,ce){Math.abs(re.doc.scrollTop-ce)<2||(ie||Qe(re,{top:ce}),cn(re,ce,!0),ie&&Qe(re),ss(re,100))}function cn(re,ce,ye){ce=Math.max(0,Math.min(re.display.scroller.scrollHeight-re.display.scroller.clientHeight,ce)),!(re.display.scroller.scrollTop==ce&&!ye)&&(re.doc.scrollTop=ce,re.display.scrollbars.setScrollTop(ce),re.display.scroller.scrollTop!=ce&&(re.display.scroller.scrollTop=ce))}function hn(re,ce,ye,ve){ce=Math.max(0,Math.min(ce,re.display.scroller.scrollWidth-re.display.scroller.clientWidth)),!((ye?ce==re.doc.scrollLeft:Math.abs(re.doc.scrollLeft-ce)<2)&&!ve)&&(re.doc.scrollLeft=ce,qe(re),re.display.scroller.scrollLeft!=ce&&(re.display.scroller.scrollLeft=ce),re.display.scrollbars.setScrollLeft(ce))}function Dn(re){var ce=re.display,ye=ce.gutters.offsetWidth,ve=Math.round(re.doc.height+Hu(re.display));return{clientHeight:ce.scroller.clientHeight,viewHeight:ce.wrapper.clientHeight,scrollWidth:ce.scroller.scrollWidth,clientWidth:ce.scroller.clientWidth,viewWidth:ce.wrapper.clientWidth,barLeft:re.options.fixedGutter?ye:0,docHeight:ve,scrollHeight:ve+Il(re)+ce.barHeight,nativeBarWidth:ce.nativeBarWidth,gutterWidth:ye}}var qn=function(re,ce,ye){this.cm=ye;var ve=this.vert=ft("div",[ft("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Ce=this.horiz=ft("div",[ft("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ve.tabIndex=Ce.tabIndex=-1,re(ve),re(Ce),An(ve,"scroll",function(){ve.clientHeight&&ce(ve.scrollTop,"vertical")}),An(Ce,"scroll",function(){Ce.clientWidth&&ce(Ce.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,tt&&Me<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};qn.prototype.update=function(re){var ce=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=ce?ve+"px":"0";var Ce=re.viewHeight-(ce?ve:0);this.vert.firstChild.style.height=Math.max(0,re.scrollHeight-re.clientHeight+Ce)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(ce){this.horiz.style.display="block",this.horiz.style.right=ye?ve+"px":"0",this.horiz.style.left=re.barLeft+"px";var $e=re.viewWidth-re.barLeft-(ye?ve:0);this.horiz.firstChild.style.width=Math.max(0,re.scrollWidth-re.clientWidth+$e)+"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:ce?ve:0}},qn.prototype.setScrollLeft=function(re){this.horiz.scrollLeft!=re&&(this.horiz.scrollLeft=re),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},qn.prototype.setScrollTop=function(re){this.vert.scrollTop!=re&&(this.vert.scrollTop=re),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},qn.prototype.zeroWidthHack=function(){var re=de&&!rt?"12px":"18px";this.horiz.style.height=this.vert.style.width=re,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new pt,this.disableVert=new pt},qn.prototype.enableZeroWidthBar=function(re,ce,ye){re.style.pointerEvents="auto";function ve(){var Ce=re.getBoundingClientRect(),$e=ye=="vert"?document.elementFromPoint(Ce.right-1,(Ce.top+Ce.bottom)/2):document.elementFromPoint((Ce.right+Ce.left)/2,Ce.bottom-1);$e!=re?re.style.pointerEvents="none":ce.set(1e3,ve)}ce.set(1e3,ve)},qn.prototype.clear=function(){var re=this.horiz.parentNode;re.removeChild(this.horiz),re.removeChild(this.vert)};var lr=function(){};lr.prototype.update=function(){return{bottom:0,right:0}},lr.prototype.setScrollLeft=function(){},lr.prototype.setScrollTop=function(){},lr.prototype.clear=function(){};function Pr(re,ce){ce||(ce=Dn(re));var ye=re.display.barWidth,ve=re.display.barHeight;Kr(re,ce);for(var Ce=0;Ce<4&&ye!=re.display.barWidth||ve!=re.display.barHeight;Ce++)ye!=re.display.barWidth&&re.options.lineWrapping&&Ti(re),Kr(re,Dn(re)),ye=re.display.barWidth,ve=re.display.barHeight}function Kr(re,ce){var ye=re.display,ve=ye.scrollbars.update(ce);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=ce.gutterWidth+"px"):ye.gutterFiller.style.display=""}var Br={native:qn,null:lr};function Si(re){re.display.scrollbars&&(re.display.scrollbars.clear(),re.display.scrollbars.addClass&&at(re.display.wrapper,re.display.scrollbars.addClass)),re.display.scrollbars=new Br[re.options.scrollbarStyle](function(ce){re.display.wrapper.insertBefore(ce,re.display.scrollbarFiller),An(ce,"mousedown",function(){re.state.focused&&setTimeout(function(){return re.display.input.focus()},0)}),ce.setAttribute("cm-not-content","true")},function(ce,ye){ye=="horizontal"?hn(re,ce):en(re,ce)},re),re.display.scrollbars.addClass&&Rt(re.display.wrapper,re.display.scrollbars.addClass)}var Gr=0;function li(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:++Gr},Io(re.curOp)}function $r(re){var ce=re.curOp;ce&&Ua(ce,function(ye){for(var ve=0;ve<ye.ops.length;ve++)ye.ops[ve].cm.curOp=null;Ii(ye)})}function Ii(re){for(var ce=re.ops,ye=0;ye<ce.length;ye++)co(ce[ye]);for(var ve=0;ve<ce.length;ve++)To(ce[ve]);for(var Ce=0;Ce<ce.length;Ce++)ra(ce[Ce]);for(var $e=0;$e<ce.length;$e++)Mi(ce[$e]);for(var bt=0;bt<ce.length;bt++)bo(ce[bt])}function co(re){var ce=re.cm,ye=ce.display;Le(ce),re.updateMaxLine&&Xi(ce),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&&ce.options.lineWrapping,re.update=re.mustUpdate&&new qa(ce,re.mustUpdate&&{top:re.scrollTop,ensure:re.scrollToPos},re.forceUpdate)}function To(re){re.updatedDisplay=re.mustUpdate&&Te(re.cm,re.update)}function ra(re){var ce=re.cm,ye=ce.display;re.updatedDisplay&&Ti(ce),re.barMeasure=Dn(ce),ye.maxLineChanged&&!ce.options.lineWrapping&&(re.adjustWidthTo=Iu(ce,ye.maxLine,ye.maxLine.text.length).left+3,ce.display.sizerWidth=re.adjustWidthTo,re.barMeasure.scrollWidth=Math.max(ye.scroller.clientWidth,ye.sizer.offsetLeft+re.adjustWidthTo+Il(ce)+ce.display.barWidth),re.maxScrollLeft=Math.max(0,ye.sizer.offsetLeft+re.adjustWidthTo-al(ce))),(re.updatedDisplay||re.selectionChanged)&&(re.preparedSelection=ye.input.prepareSelection())}function Mi(re){var ce=re.cm;re.adjustWidthTo!=null&&(ce.display.sizer.style.minWidth=re.adjustWidthTo+"px",re.maxScrollLeft<ce.doc.scrollLeft&&hn(ce,Math.min(ce.display.scroller.scrollLeft,re.maxScrollLeft),!0),ce.display.maxLineChanged=!1);var ye=re.focus&&re.focus==Vt();re.preparedSelection&&ce.display.input.showSelection(re.preparedSelection,ye),(re.updatedDisplay||re.startHeight!=ce.doc.height)&&Pr(ce,re.barMeasure),re.updatedDisplay&&De(ce,re.barMeasure),re.selectionChanged&&Js(ce),ce.state.focused&&re.updateInput&&ce.display.input.reset(re.typing),ye&&ul(re.cm)}function bo(re){var ce=re.cm,ye=ce.display,ve=ce.doc;if(re.updatedDisplay&&ze(ce,re.update),ye.wheelStartX!=null&&(re.scrollTop!=null||re.scrollLeft!=null||re.scrollToPos)&&(ye.wheelStartX=ye.wheelStartY=null),re.scrollTop!=null&&cn(ce,re.scrollTop,re.forceScroll),re.scrollLeft!=null&&hn(ce,re.scrollLeft,!0,!0),re.scrollToPos){var Ce=sc(ce,uo(ve,re.scrollToPos.from),uo(ve,re.scrollToPos.to),re.scrollToPos.margin);Id(ce,Ce)}var $e=re.maybeHiddenMarkers,bt=re.maybeUnhiddenMarkers;if($e)for(var Dt=0;Dt<$e.length;++Dt)$e[Dt].lines.length||bn($e[Dt],"hide");if(bt)for(var Mt=0;Mt<bt.length;++Mt)bt[Mt].lines.length&&bn(bt[Mt],"unhide");ye.wrapper.offsetHeight&&(ve.scrollTop=ce.display.scroller.scrollTop),re.changeObjs&&bn(ce,"changes",ce,re.changeObjs),re.update&&re.update.finish()}function ro(re,ce){if(re.curOp)return ce();li(re);try{return ce()}finally{$r(re)}}function ea(re,ce){return function(){if(re.curOp)return ce.apply(re,arguments);li(re);try{return ce.apply(re,arguments)}finally{$r(re)}}}function Ia(re){return function(){if(this.curOp)return re.apply(this,arguments);li(this);try{return re.apply(this,arguments)}finally{$r(this)}}}function Vo(re){return function(){var ce=this.cm;if(!ce||ce.curOp)return re.apply(this,arguments);li(ce);try{return re.apply(this,arguments)}finally{$r(ce)}}}function ss(re,ce){re.doc.highlightFrontier<re.display.viewTo&&re.state.highlight.set(ce,un(Ma,re))}function Ma(re){var ce=re.doc;if(!(ce.highlightFrontier>=re.display.viewTo)){var ye=+new Date+re.options.workTime,ve=es(re,ce.highlightFrontier),Ce=[];ce.iter(ve.line,Math.min(ce.first+ce.size,re.display.viewTo+500),function($e){if(ve.line>=re.display.viewFrom){var bt=$e.styles,Dt=$e.text.length>re.options.maxHighlightLength?mi(ce.mode,ve.state):null,Mt=sl(re,$e,ve,!0);Dt&&(ve.state=Dt),$e.styles=Mt.styles;var $t=$e.styleClasses,Jn=Mt.classes;Jn?$e.styleClasses=Jn:$t&&($e.styleClasses=null);for(var pn=!bt||bt.length!=$e.styles.length||$t!=Jn&&(!$t||!Jn||$t.bgClass!=Jn.bgClass||$t.textClass!=Jn.textClass),Lr=0;!pn&&Lr<bt.length;++Lr)pn=bt[Lr]!=$e.styles[Lr];pn&&Ce.push(ve.line),$e.stateAfter=ve.save(),ve.nextLine()}else $e.text.length<=re.options.maxHighlightLength&&Mn(re,$e.text,ve),$e.stateAfter=ve.line%5==0?ve.save():null,ve.nextLine();if(+new Date>ye)return ss(re,re.options.workDelay),!0}),ce.highlightFrontier=ve.line,ce.modeFrontier=Math.max(ce.modeFrontier,ve.line),Ce.length&&ro(re,function(){for(var $e=0;$e<Ce.length;$e++)ns(re,Ce[$e],"text")})}}var qa=function(re,ce,ye){var ve=re.display;this.viewport=ce,this.visible=ms(ve,re.doc,ce),this.editorIsHidden=!ve.wrapper.offsetWidth,this.wrapperHeight=ve.wrapper.clientHeight,this.wrapperWidth=ve.wrapper.clientWidth,this.oldDisplayWidth=al(re),this.force=ye,this.dims=fc(re),this.events=[]};qa.prototype.signal=function(re,ce){Qn(re,ce)&&this.events.push(arguments)},qa.prototype.finish=function(){for(var re=0;re<this.events.length;re++)bn.apply(null,this.events[re])};function Le(re){var ce=re.display;!ce.scrollbarsClipped&&ce.scroller.offsetWidth&&(ce.nativeBarWidth=ce.scroller.offsetWidth-ce.scroller.clientWidth,ce.heightForcer.style.height=Il(re)+"px",ce.sizer.style.marginBottom=-ce.nativeBarWidth+"px",ce.sizer.style.borderRightWidth=Il(re)+"px",ce.scrollbarsClipped=!0)}function nt(re){if(re.hasFocus())return null;var ce=Vt();if(!ce||!Ct(re.display.lineDiv,ce))return null;var ye={activeElt:ce};if(window.getSelection){var ve=window.getSelection();ve.anchorNode&&ve.extend&&Ct(re.display.lineDiv,ve.anchorNode)&&(ye.anchorNode=ve.anchorNode,ye.anchorOffset=ve.anchorOffset,ye.focusNode=ve.focusNode,ye.focusOffset=ve.focusOffset)}return ye}function Se(re){if(!(!re||!re.activeElt||re.activeElt==Vt())&&(re.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(re.activeElt.nodeName)&&re.anchorNode&&Ct(document.body,re.anchorNode)&&Ct(document.body,re.focusNode))){var ce=window.getSelection(),ye=document.createRange();ye.setEnd(re.anchorNode,re.anchorOffset),ye.collapse(!1),ce.removeAllRanges(),ce.addRange(ye),ce.extend(re.focusNode,re.focusOffset)}}function Te(re,ce){var ye=re.display,ve=re.doc;if(ce.editorIsHidden)return Nl(re),!1;if(!ce.force&&ce.visible.from>=ye.viewFrom&&ce.visible.to<=ye.viewTo&&(ye.updateLineNumbers==null||ye.updateLineNumbers>=ye.viewTo)&&ye.renderedView==ye.view&&uu(re)==0)return!1;ot(re)&&(Nl(re),ce.dims=fc(re));var Ce=ve.first+ve.size,$e=Math.max(ce.visible.from-re.options.viewportMargin,ve.first),bt=Math.min(Ce,ce.visible.to+re.options.viewportMargin);ye.viewFrom<$e&&$e-ye.viewFrom<20&&($e=Math.max(ve.first,ye.viewFrom)),ye.viewTo>bt&&ye.viewTo-bt<20&&(bt=Math.min(Ce,ye.viewTo)),Ar&&($e=or(re.doc,$e),bt=vr(re.doc,bt));var Dt=$e!=ye.viewFrom||bt!=ye.viewTo||ye.lastWrapHeight!=ce.wrapperHeight||ye.lastWrapWidth!=ce.wrapperWidth;ll(re,$e,bt),ye.viewOffset=Vr(Cr(re.doc,ye.viewFrom)),re.display.mover.style.top=ye.viewOffset+"px";var Mt=uu(re);if(!Dt&&Mt==0&&!ce.force&&ye.renderedView==ye.view&&(ye.updateLineNumbers==null||ye.updateLineNumbers>=ye.viewTo))return!1;var $t=nt(re);return Mt>4&&(ye.lineDiv.style.display="none"),mt(re,ye.updateLineNumbers,ce.dims),Mt>4&&(ye.lineDiv.style.display=""),ye.renderedView=ye.view,Se($t),dt(ye.cursorDiv),dt(ye.selectionDiv),ye.gutters.style.height=ye.sizer.style.minHeight=0,Dt&&(ye.lastWrapHeight=ce.wrapperHeight,ye.lastWrapWidth=ce.wrapperWidth,ss(re,400)),ye.updateLineNumbers=null,!0}function ze(re,ce){for(var ye=ce.viewport,ve=!0;;ve=!1){if(!ve||!re.options.lineWrapping||ce.oldDisplayWidth==al(re)){if(ye&&ye.top!=null&&(ye={top:Math.min(re.doc.height+Hu(re.display)-Dc(re),ye.top)}),ce.visible=ms(re.display,re.doc,ye),ce.visible.from>=re.display.viewFrom&&ce.visible.to<=re.display.viewTo)break}else ve&&(ce.visible=ms(re.display,re.doc,ye));if(!Te(re,ce))break;Ti(re);var Ce=Dn(re);$l(re),Pr(re,Ce),De(re,Ce),ce.force=!1}ce.signal(re,"update",re),(re.display.viewFrom!=re.display.reportedViewFrom||re.display.viewTo!=re.display.reportedViewTo)&&(ce.signal(re,"viewportChange",re,re.display.viewFrom,re.display.viewTo),re.display.reportedViewFrom=re.display.viewFrom,re.display.reportedViewTo=re.display.viewTo)}function Qe(re,ce){var ye=new qa(re,ce);if(Te(re,ye)){Ti(re),ze(re,ye);var ve=Dn(re);$l(re),Pr(re,ve),De(re,ve),ye.finish()}}function mt(re,ce,ye){var ve=re.display,Ce=re.options.lineNumbers,$e=ve.lineDiv,bt=$e.firstChild;function Dt(wi){var ki=wi.nextSibling;return _e&&de&&re.display.currentWheelTarget==wi?wi.style.display="none":wi.parentNode.removeChild(wi),ki}for(var Mt=ve.view,$t=ve.viewFrom,Jn=0;Jn<Mt.length;Jn++){var pn=Mt[Jn];if(!pn.hidden)if(!pn.node||pn.node.parentNode!=$e){var Lr=Qs(re,pn,$t,ye);$e.insertBefore(Lr,bt)}else{for(;bt!=pn.node;)bt=Dt(bt);var Sr=Ce&&ce!=null&&ce<=$t&&pn.lineNumber;pn.changes&&(Ie(pn.changes,"gutter")>-1&&(Sr=!1),Ls(re,pn,$t,ye)),Sr&&(dt(pn.lineNumber),pn.lineNumber.appendChild(document.createTextNode(Xo(re.options,$t)))),bt=pn.node.nextSibling}$t+=pn.size}for(;bt;)bt=Dt(bt)}function Ae(re){var ce=re.gutters.offsetWidth;re.sizer.style.marginLeft=ce+"px"}function De(re,ce){re.display.sizer.style.minHeight=ce.docHeight+"px",re.display.heightForcer.style.top=ce.docHeight+"px",re.display.gutters.style.height=ce.docHeight+re.display.barHeight+Il(re)+"px"}function qe(re){var ce=re.display,ye=ce.view;if(!(!ce.alignWidgets&&(!ce.gutters.firstChild||!re.options.fixedGutter))){for(var ve=Du(ce)-ce.scroller.scrollLeft+re.doc.scrollLeft,Ce=ce.gutters.offsetWidth,$e=ve+"px",bt=0;bt<ye.length;bt++)if(!ye[bt].hidden){re.options.fixedGutter&&(ye[bt].gutter&&(ye[bt].gutter.style.left=$e),ye[bt].gutterBackground&&(ye[bt].gutterBackground.style.left=$e));var Dt=ye[bt].alignable;if(Dt)for(var Mt=0;Mt<Dt.length;Mt++)Dt[Mt].style.left=$e}re.options.fixedGutter&&(ce.gutters.style.left=ve+Ce+"px")}}function ot(re){if(!re.options.lineNumbers)return!1;var ce=re.doc,ye=Xo(re.options,ce.first+ce.size-1),ve=re.display;if(ye.length!=ve.lineNumChars){var Ce=ve.measure.appendChild(ft("div",[ft("div",ye)],"CodeMirror-linenumber CodeMirror-gutter-elt")),$e=Ce.firstChild.offsetWidth,bt=Ce.offsetWidth-$e;return ve.lineGutter.style.width="",ve.lineNumInnerWidth=Math.max($e,ve.lineGutter.offsetWidth-bt)+1,ve.lineNumWidth=ve.lineNumInnerWidth+bt,ve.lineNumChars=ve.lineNumInnerWidth?ye.length:-1,ve.lineGutter.style.width=ve.lineNumWidth+"px",Ae(re.display),!0}return!1}function Lt(re,ce){for(var ye=[],ve=!1,Ce=0;Ce<re.length;Ce++){var $e=re[Ce],bt=null;if(typeof $e!="string"&&(bt=$e.style,$e=$e.className),$e=="CodeMirror-linenumbers")if(ce)ve=!0;else continue;ye.push({className:$e,style:bt})}return ce&&!ve&&ye.push({className:"CodeMirror-linenumbers",style:null}),ye}function Ut(re){var ce=re.gutters,ye=re.gutterSpecs;dt(ce),re.lineGutter=null;for(var ve=0;ve<ye.length;++ve){var Ce=ye[ve],$e=Ce.className,bt=Ce.style,Dt=ce.appendChild(ft("div",null,"CodeMirror-gutter "+$e));bt&&(Dt.style.cssText=bt),$e=="CodeMirror-linenumbers"&&(re.lineGutter=Dt,Dt.style.width=(re.lineNumWidth||1)+"px")}ce.style.display=ye.length?"":"none",Ae(re)}function jt(re){Ut(re.display),el(re),qe(re)}function se(re,ce,ye,ve){var Ce=this;this.input=ye,Ce.scrollbarFiller=ft("div",null,"CodeMirror-scrollbar-filler"),Ce.scrollbarFiller.setAttribute("cm-not-content","true"),Ce.gutterFiller=ft("div",null,"CodeMirror-gutter-filler"),Ce.gutterFiller.setAttribute("cm-not-content","true"),Ce.lineDiv=Nt("div",null,"CodeMirror-code"),Ce.selectionDiv=ft("div",null,null,"position: relative; z-index: 1"),Ce.cursorDiv=ft("div",null,"CodeMirror-cursors"),Ce.measure=ft("div",null,"CodeMirror-measure"),Ce.lineMeasure=ft("div",null,"CodeMirror-measure"),Ce.lineSpace=Nt("div",[Ce.measure,Ce.lineMeasure,Ce.selectionDiv,Ce.cursorDiv,Ce.lineDiv],null,"position: relative; outline: none");var $e=Nt("div",[Ce.lineSpace],"CodeMirror-lines");Ce.mover=ft("div",[$e],null,"position: relative"),Ce.sizer=ft("div",[Ce.mover],"CodeMirror-sizer"),Ce.sizerWidth=null,Ce.heightForcer=ft("div",null,null,"position: absolute; height: "+on+"px; width: 1px;"),Ce.gutters=ft("div",null,"CodeMirror-gutters"),Ce.lineGutter=null,Ce.scroller=ft("div",[Ce.sizer,Ce.heightForcer,Ce.gutters],"CodeMirror-scroll"),Ce.scroller.setAttribute("tabIndex","-1"),Ce.wrapper=ft("div",[Ce.scrollbarFiller,Ce.gutterFiller,Ce.scroller],"CodeMirror"),tt&&Me<8&&(Ce.gutters.style.zIndex=-1,Ce.scroller.style.paddingRight=0),!_e&&!(ie&&ee)&&(Ce.scroller.draggable=!0),re&&(re.appendChild?re.appendChild(Ce.wrapper):re(Ce.wrapper)),Ce.viewFrom=Ce.viewTo=ce.first,Ce.reportedViewFrom=Ce.reportedViewTo=ce.first,Ce.view=[],Ce.renderedView=null,Ce.externalMeasured=null,Ce.viewOffset=0,Ce.lastWrapHeight=Ce.lastWrapWidth=0,Ce.updateLineNumbers=null,Ce.nativeBarWidth=Ce.barHeight=Ce.barWidth=0,Ce.scrollbarsClipped=!1,Ce.lineNumWidth=Ce.lineNumInnerWidth=Ce.lineNumChars=null,Ce.alignWidgets=!1,Ce.cachedCharWidth=Ce.cachedTextHeight=Ce.cachedPaddingH=null,Ce.maxLine=null,Ce.maxLineLength=0,Ce.maxLineChanged=!1,Ce.wheelDX=Ce.wheelDY=Ce.wheelStartX=Ce.wheelStartY=null,Ce.shift=!1,Ce.selForContextMenu=null,Ce.activeTouch=null,Ce.gutterSpecs=Lt(ve.gutters,ve.lineNumbers),Ut(Ce),ye.init(Ce)}var fe=0,je=null;tt?je=-.53:ie?je=15:et?je=-.7:Et&&(je=-1/3);function St(re){var ce=re.wheelDeltaX,ye=re.wheelDeltaY;return ce==null&&re.detail&&re.axis==re.HORIZONTAL_AXIS&&(ce=re.detail),ye==null&&re.detail&&re.axis==re.VERTICAL_AXIS?ye=re.detail:ye==null&&(ye=re.wheelDelta),{x:ce,y:ye}}function Yt(re){var ce=St(re);return ce.x*=je,ce.y*=je,ce}function mn(re,ce){var ye=St(ce),ve=ye.x,Ce=ye.y,$e=re.display,bt=$e.scroller,Dt=bt.scrollWidth>bt.clientWidth,Mt=bt.scrollHeight>bt.clientHeight;if(ve&&Dt||Ce&&Mt){if(Ce&&de&&_e){e:for(var $t=ce.target,Jn=$e.view;$t!=bt;$t=$t.parentNode)for(var pn=0;pn<Jn.length;pn++)if(Jn[pn].node==$t){re.display.currentWheelTarget=$t;break e}}if(ve&&!ie&&!lt&&je!=null){Ce&&Mt&&en(re,Math.max(0,bt.scrollTop+Ce*je)),hn(re,Math.max(0,bt.scrollLeft+ve*je)),(!Ce||Ce&&Mt)&&to(ce),$e.wheelStartX=null;return}if(Ce&&je!=null){var Lr=Ce*je,Sr=re.doc.scrollTop,wi=Sr+$e.wrapper.clientHeight;Lr<0?Sr=Math.max(0,Sr+Lr-50):wi=Math.min(re.doc.height,wi+Lr+50),Qe(re,{top:Sr,bottom:wi})}fe<20&&($e.wheelStartX==null?($e.wheelStartX=bt.scrollLeft,$e.wheelStartY=bt.scrollTop,$e.wheelDX=ve,$e.wheelDY=Ce,setTimeout(function(){if($e.wheelStartX!=null){var ki=bt.scrollLeft-$e.wheelStartX,oo=bt.scrollTop-$e.wheelStartY,Mo=oo&&$e.wheelDY&&oo/$e.wheelDY||ki&&$e.wheelDX&&ki/$e.wheelDX;$e.wheelStartX=$e.wheelStartY=null,Mo&&(je=(je*fe+Mo)/(fe+1),++fe)}},200)):($e.wheelDX+=ve,$e.wheelDY+=Ce))}}var wn=function(re,ce){this.ranges=re,this.primIndex=ce};wn.prototype.primary=function(){return this.ranges[this.primIndex]},wn.prototype.equals=function(re){if(re==this)return!0;if(re.primIndex!=this.primIndex||re.ranges.length!=this.ranges.length)return!1;for(var ce=0;ce<this.ranges.length;ce++){var ye=this.ranges[ce],ve=re.ranges[ce];if(!Jr(ye.anchor,ve.anchor)||!Jr(ye.head,ve.head))return!1}return!0},wn.prototype.deepCopy=function(){for(var re=[],ce=0;ce<this.ranges.length;ce++)re[ce]=new On(ls(this.ranges[ce].anchor),ls(this.ranges[ce].head));return new wn(re,this.primIndex)},wn.prototype.somethingSelected=function(){for(var re=0;re<this.ranges.length;re++)if(!this.ranges[re].empty())return!0;return!1},wn.prototype.contains=function(re,ce){ce||(ce=re);for(var ye=0;ye<this.ranges.length;ye++){var ve=this.ranges[ye];if(Gi(ce,ve.from())>=0&&Gi(re,ve.to())<=0)return ye}return-1};var On=function(re,ce){this.anchor=re,this.head=ce};On.prototype.from=function(){return Oi(this.anchor,this.head)},On.prototype.to=function(){return Pa(this.anchor,this.head)},On.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Tn(re,ce,ye){var ve=re&&re.options.selectionsMayTouch,Ce=ce[ye];ce.sort(function(Lr,Sr){return Gi(Lr.from(),Sr.from())}),ye=Ie(ce,Ce);for(var $e=1;$e<ce.length;$e++){var bt=ce[$e],Dt=ce[$e-1],Mt=Gi(Dt.to(),bt.from());if(ve&&!bt.empty()?Mt>0:Mt>=0){var $t=Oi(Dt.from(),bt.from()),Jn=Pa(Dt.to(),bt.to()),pn=Dt.empty()?bt.from()==bt.head:Dt.from()==Dt.head;$e<=ye&&--ye,ce.splice(--$e,2,new On(pn?Jn:$t,pn?$t:Jn))}}return new wn(ce,ye)}function br(re,ce){return new wn([new On(re,ce||re)],0)}function Wr(re){return re.text?wr(re.from.line+re.text.length-1,ht(re.text).length+(re.text.length==1?re.from.ch:0)):re.to}function di(re,ce){if(Gi(re,ce.from)<0)return re;if(Gi(re,ce.to)<=0)return Wr(ce);var ye=re.line+ce.text.length-(ce.to.line-ce.from.line)-1,ve=re.ch;return re.line==ce.to.line&&(ve+=Wr(ce).ch-ce.to.ch),wr(ye,ve)}function ii(re,ce){for(var ye=[],ve=0;ve<re.sel.ranges.length;ve++){var Ce=re.sel.ranges[ve];ye.push(new On(di(Ce.anchor,ce),di(Ce.head,ce)))}return Tn(re.cm,ye,re.sel.primIndex)}function oi(re,ce,ye){return re.line==ce.line?wr(ye.line,re.ch-ce.ch+ye.ch):wr(ye.line+(re.line-ce.line),re.ch)}function Di(re,ce,ye){for(var ve=[],Ce=wr(re.first,0),$e=Ce,bt=0;bt<ce.length;bt++){var Dt=ce[bt],Mt=oi(Dt.from,Ce,$e),$t=oi(Wr(Dt),Ce,$e);if(Ce=Dt.to,$e=$t,ye=="around"){var Jn=re.sel.ranges[bt],pn=Gi(Jn.head,Jn.anchor)<0;ve[bt]=new On(pn?$t:Mt,pn?Mt:$t)}else ve[bt]=new On(Mt,Mt)}return new wn(ve,re.sel.primIndex)}function cr(re){re.doc.mode=Wn(re.options,re.doc.modeOption),pi(re)}function pi(re){re.doc.iter(function(ce){ce.stateAfter&&(ce.stateAfter=null),ce.styles&&(ce.styles=null)}),re.doc.modeFrontier=re.doc.highlightFrontier=re.doc.first,ss(re,100),re.state.modeGen++,re.curOp&&el(re)}function Yr(re,ce){return ce.from.ch==0&&ce.to.ch==0&&ht(ce.text)==""&&(!re.cm||re.cm.options.wholeLineUpdateBefore)}function Li(re,ce,ye,ve){function Ce(Na){return ye?ye[Na]:null}function $e(Na,Jo,Ra){_o(Na,Jo,Ra,ve),Bi(Na,"change",Na,ce)}function bt(Na,Jo){for(var Ra=[],Es=Na;Es<Jo;++Es)Ra.push(new zi($t[Es],Ce(Es),ve));return Ra}var Dt=ce.from,Mt=ce.to,$t=ce.text,Jn=Cr(re,Dt.line),pn=Cr(re,Mt.line),Lr=ht($t),Sr=Ce($t.length-1),wi=Mt.line-Dt.line;if(ce.full)re.insert(0,bt(0,$t.length)),re.remove($t.length,re.size-$t.length);else if(Yr(re,ce)){var ki=bt(0,$t.length-1);$e(pn,pn.text,Sr),wi&&re.remove(Dt.line,wi),ki.length&&re.insert(Dt.line,ki)}else if(Jn==pn)if($t.length==1)$e(Jn,Jn.text.slice(0,Dt.ch)+Lr+Jn.text.slice(Mt.ch),Sr);else{var oo=bt(1,$t.length-1);oo.push(new zi(Lr+Jn.text.slice(Mt.ch),Sr,ve)),$e(Jn,Jn.text.slice(0,Dt.ch)+$t[0],Ce(0)),re.insert(Dt.line+1,oo)}else if($t.length==1)$e(Jn,Jn.text.slice(0,Dt.ch)+$t[0]+pn.text.slice(Mt.ch),Ce(0)),re.remove(Dt.line+1,wi);else{$e(Jn,Jn.text.slice(0,Dt.ch)+$t[0],Ce(0)),$e(pn,Lr+pn.text.slice(Mt.ch),Sr);var Mo=bt(1,$t.length-1);wi>1&&re.remove(Dt.line+1,wi-1),re.insert(Dt.line+1,Mo)}Bi(re,"change",re,ce)}function Vi(re,ce,ye){function ve(Ce,$e,bt){if(Ce.linked)for(var Dt=0;Dt<Ce.linked.length;++Dt){var Mt=Ce.linked[Dt];if(Mt.doc!=$e){var $t=bt&&Mt.sharedHist;ye&&!$t||(ce(Mt.doc,$t),ve(Mt.doc,Ce,$t))}}}ve(re,null,!0)}function bi(re,ce){if(ce.cm)throw new Error("This document is already in use.");re.doc=ce,ce.cm=re,ua(re),cr(re),xo(re),re.options.lineWrapping||Xi(re),re.options.mode=ce.modeOption,el(re)}function xo(re){(re.doc.direction=="rtl"?Rt:at)(re.display.lineDiv,"CodeMirror-rtl")}function Fn(re){ro(re,function(){xo(re),el(re)})}function mo(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 Ci(re,ce){var ye={from:ls(ce.from),to:Wr(ce),text:Ri(re,ce.from,ce.to)};return ta(re,ye,ce.from.line,ce.to.line+1),Vi(re,function(ve){return ta(ve,ye,ce.from.line,ce.to.line+1)},!0),ye}function jn(re){for(;re.length;){var ce=ht(re);if(ce.ranges)re.pop();else break}}function Uo(re,ce){if(ce)return jn(re.done),ht(re.done);if(re.done.length&&!ht(re.done).ranges)return ht(re.done);if(re.done.length>1&&!re.done[re.done.length-2].ranges)return re.done.pop(),ht(re.done)}function ga(re,ce,ye,ve){var Ce=re.history;Ce.undone.length=0;var $e=+new Date,bt,Dt;if((Ce.lastOp==ve||Ce.lastOrigin==ce.origin&&ce.origin&&(ce.origin.charAt(0)=="+"&&Ce.lastModTime>$e-(re.cm?re.cm.options.historyEventDelay:500)||ce.origin.charAt(0)=="*"))&&(bt=Uo(Ce,Ce.lastOp==ve)))Dt=ht(bt.changes),Gi(ce.from,ce.to)==0&&Gi(ce.from,Dt.to)==0?Dt.to=Wr(ce):bt.changes.push(Ci(re,ce));else{var Mt=ht(Ce.done);for((!Mt||!Mt.ranges)&&yo(re.sel,Ce.done),bt={changes:[Ci(re,ce)],generation:Ce.generation},Ce.done.push(bt);Ce.done.length>Ce.undoDepth;)Ce.done.shift(),Ce.done[0].ranges||Ce.done.shift()}Ce.done.push(ye),Ce.generation=++Ce.maxGeneration,Ce.lastModTime=Ce.lastSelTime=$e,Ce.lastOp=Ce.lastSelOp=ve,Ce.lastOrigin=Ce.lastSelOrigin=ce.origin,Dt||bn(re,"historyAdded")}function ca(re,ce,ye,ve){var Ce=ce.charAt(0);return Ce=="*"||Ce=="+"&&ye.ranges.length==ve.ranges.length&&ye.somethingSelected()==ve.somethingSelected()&&new Date-re.history.lastSelTime<=(re.cm?re.cm.options.historyEventDelay:500)}function $i(re,ce,ye,ve){var Ce=re.history,$e=ve&&ve.origin;ye==Ce.lastSelOp||$e&&Ce.lastSelOrigin==$e&&(Ce.lastModTime==Ce.lastSelTime&&Ce.lastOrigin==$e||ca(re,$e,ht(Ce.done),ce))?Ce.done[Ce.done.length-1]=ce:yo(ce,Ce.done),Ce.lastSelTime=+new Date,Ce.lastSelOrigin=$e,Ce.lastSelOp=ye,ve&&ve.clearRedo!==!1&&jn(Ce.undone)}function yo(re,ce){var ye=ht(ce);ye&&ye.ranges&&ye.equals(re)||ce.push(re)}function ta(re,ce,ye,ve){var Ce=ce["spans_"+re.id],$e=0;re.iter(Math.max(re.first,ye),Math.min(re.first+re.size,ve),function(bt){bt.markedSpans&&((Ce||(Ce=ce["spans_"+re.id]={}))[$e]=bt.markedSpans),++$e})}function na(re){if(!re)return null;for(var ce,ye=0;ye<re.length;++ye)re[ye].marker.explicitlyCleared?ce||(ce=re.slice(0,ye)):ce&&ce.push(re[ye]);return ce?ce.length?ce:null:re}function Ha(re,ce){var ye=ce["spans_"+re.id];if(!ye)return null;for(var ve=[],Ce=0;Ce<ce.text.length;++Ce)ve.push(na(ye[Ce]));return ve}function wa(re,ce){var ye=Ha(re,ce),ve=Rr(re,ce);if(!ye)return ve;if(!ve)return ye;for(var Ce=0;Ce<ye.length;++Ce){var $e=ye[Ce],bt=ve[Ce];if($e&&bt)e:for(var Dt=0;Dt<bt.length;++Dt){for(var Mt=bt[Dt],$t=0;$t<$e.length;++$t)if($e[$t].marker==Mt.marker)continue e;$e.push(Mt)}else bt&&(ye[Ce]=bt)}return ye}function ko(re,ce,ye){for(var ve=[],Ce=0;Ce<re.length;++Ce){var $e=re[Ce];if($e.ranges){ve.push(ye?wn.prototype.deepCopy.call($e):$e);continue}var bt=$e.changes,Dt=[];ve.push({changes:Dt});for(var Mt=0;Mt<bt.length;++Mt){var $t=bt[Mt],Jn=void 0;if(Dt.push({from:$t.from,to:$t.to,text:$t.text}),ce)for(var pn in $t)(Jn=pn.match(/^spans_(\d+)$/))&&Ie(ce,Number(Jn[1]))>-1&&(ht(Dt)[pn]=$t[pn],delete $t[pn])}}return ve}function fo(re,ce,ye,ve){if(ve){var Ce=re.anchor;if(ye){var $e=Gi(ce,Ce)<0;$e!=Gi(ye,Ce)<0?(Ce=ce,ce=ye):$e!=Gi(ce,ye)<0&&(ce=ye)}return new On(Ce,ce)}else return new On(ye||ce,ce)}function Qo(re,ce,ye,ve,Ce){Ce==null&&(Ce=re.cm&&(re.cm.display.shift||re.extend)),Pi(re,new wn([fo(re.sel.primary(),ce,ye,Ce)],0),ve)}function ja(re,ce,ye){for(var ve=[],Ce=re.cm&&(re.cm.display.shift||re.extend),$e=0;$e<re.sel.ranges.length;$e++)ve[$e]=fo(re.sel.ranges[$e],ce[$e],null,Ce);var bt=Tn(re.cm,ve,re.sel.primIndex);Pi(re,bt,ye)}function Lo(re,ce,ye,ve){var Ce=re.sel.ranges.slice(0);Ce[ce]=ye,Pi(re,Tn(re.cm,Ce,re.sel.primIndex),ve)}function Ui(re,ce,ye,ve){Pi(re,br(ce,ye),ve)}function so(re,ce,ye){var ve={ranges:ce.ranges,update:function(Ce){this.ranges=[];for(var $e=0;$e<Ce.length;$e++)this.ranges[$e]=new On(uo(re,Ce[$e].anchor),uo(re,Ce[$e].head))},origin:ye&&ye.origin};return bn(re,"beforeSelectionChange",re,ve),re.cm&&bn(re.cm,"beforeSelectionChange",re.cm,ve),ve.ranges!=ce.ranges?Tn(re.cm,ve.ranges,ve.ranges.length-1):ce}function ho(re,ce,ye){var ve=re.history.done,Ce=ht(ve);Ce&&Ce.ranges?(ve[ve.length-1]=ce,Zi(re,ce,ye)):Pi(re,ce,ye)}function Pi(re,ce,ye){Zi(re,ce,ye),$i(re,re.sel,re.cm?re.cm.curOp.id:NaN,ye)}function Zi(re,ce,ye){(Qn(re,"beforeSelectionChange")||re.cm&&Qn(re.cm,"beforeSelectionChange"))&&(ce=so(re,ce,ye));var ve=ye&&ye.bias||(Gi(ce.primary().head,re.sel.primary().head)<0?-1:1);wo(re,_r(re,ce,ve,!0)),!(ye&&ye.scroll===!1)&&re.cm&&pc(re.cm)}function wo(re,ce){ce.equals(re.sel)||(re.sel=ce,re.cm&&(re.cm.curOp.updateInput=1,re.cm.curOp.selectionChanged=!0,Ji(re.cm)),Bi(re,"cursorActivity",re))}function Ea(re){wo(re,_r(re,re.sel,null,!1))}function _r(re,ce,ye,ve){for(var Ce,$e=0;$e<ce.ranges.length;$e++){var bt=ce.ranges[$e],Dt=ce.ranges.length==re.sel.ranges.length&&re.sel.ranges[$e],Mt=Ro(re,bt.anchor,Dt&&Dt.anchor,ye,ve),$t=Ro(re,bt.head,Dt&&Dt.head,ye,ve);(Ce||Mt!=bt.anchor||$t!=bt.head)&&(Ce||(Ce=ce.ranges.slice(0,$e)),Ce[$e]=new On(Mt,$t))}return Ce?Tn(re.cm,Ce,ce.primIndex):ce}function Qr(re,ce,ye,ve,Ce){var $e=Cr(re,ce.line);if($e.markedSpans)for(var bt=0;bt<$e.markedSpans.length;++bt){var Dt=$e.markedSpans[bt],Mt=Dt.marker,$t="selectLeft"in Mt?!Mt.selectLeft:Mt.inclusiveLeft,Jn="selectRight"in Mt?!Mt.selectRight:Mt.inclusiveRight;if((Dt.from==null||($t?Dt.from<=ce.ch:Dt.from<ce.ch))&&(Dt.to==null||(Jn?Dt.to>=ce.ch:Dt.to>ce.ch))){if(Ce&&(bn(Mt,"beforeCursorEnter"),Mt.explicitlyCleared))if($e.markedSpans){--bt;continue}else break;if(!Mt.atomic)continue;if(ye){var pn=Mt.find(ve<0?1:-1),Lr=void 0;if((ve<0?Jn:$t)&&(pn=Bo(re,pn,-ve,pn&&pn.line==ce.line?$e:null)),pn&&pn.line==ce.line&&(Lr=Gi(pn,ye))&&(ve<0?Lr<0:Lr>0))return Qr(re,pn,ce,ve,Ce)}var Sr=Mt.find(ve<0?-1:1);return(ve<0?$t:Jn)&&(Sr=Bo(re,Sr,ve,Sr.line==ce.line?$e:null)),Sr?Qr(re,Sr,ce,ve,Ce):null}}return ce}function Ro(re,ce,ye,ve,Ce){var $e=ve||1,bt=Qr(re,ce,ye,$e,Ce)||!Ce&&Qr(re,ce,ye,$e,!0)||Qr(re,ce,ye,-$e,Ce)||!Ce&&Qr(re,ce,ye,-$e,!0);return bt||(re.cantEdit=!0,wr(re.first,0))}function Bo(re,ce,ye,ve){return ye<0&&ce.ch==0?ce.line>re.first?uo(re,wr(ce.line-1)):null:ye>0&&ce.ch==(ve||Cr(re,ce.line)).text.length?ce.line<re.first+re.size-1?wr(ce.line+1,0):null:new wr(ce.line,ce.ch+ye)}function Wo(re){re.setSelection(wr(re.firstLine(),0),wr(re.lastLine()),Zt)}function Za(re,ce,ye){var ve={canceled:!1,from:ce.from,to:ce.to,text:ce.text,origin:ce.origin,cancel:function(){return ve.canceled=!0}};return ye&&(ve.update=function(Ce,$e,bt,Dt){Ce&&(ve.from=uo(re,Ce)),$e&&(ve.to=uo(re,$e)),bt&&(ve.text=bt),Dt!==void 0&&(ve.origin=Dt)}),bn(re,"beforeChange",re,ve),re.cm&&bn(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 Ko(re,ce,ye){if(re.cm){if(!re.cm.curOp)return ea(re.cm,Ko)(re,ce,ye);if(re.cm.state.suppressEdits)return}if(!((Qn(re,"beforeChange")||re.cm&&Qn(re.cm,"beforeChange"))&&(ce=Za(re,ce,!0),!ce))){var ve=za&&!ye&&ni(re,ce.from,ce.to);if(ve)for(var Ce=ve.length-1;Ce>=0;--Ce)Oa(re,{from:ve[Ce].from,to:ve[Ce].to,text:Ce?[""]:ce.text,origin:ce.origin});else Oa(re,ce)}}function Oa(re,ce){if(!(ce.text.length==1&&ce.text[0]==""&&Gi(ce.from,ce.to)==0)){var ye=ii(re,ce);ga(re,ce,ye,re.cm?re.cm.curOp.id:NaN),Qa(re,ce,ye,Rr(re,ce));var ve=[];Vi(re,function(Ce,$e){!$e&&Ie(ve,Ce.history)==-1&&(tl(Ce.history,ce),ve.push(Ce.history)),Qa(Ce,ce,null,Rr(Ce,ce))})}}function cs(re,ce,ye){var ve=re.cm&&re.cm.state.suppressEdits;if(!(ve&&!ye)){for(var Ce=re.history,$e,bt=re.sel,Dt=ce=="undo"?Ce.done:Ce.undone,Mt=ce=="undo"?Ce.undone:Ce.done,$t=0;$t<Dt.length&&($e=Dt[$t],!(ye?$e.ranges&&!$e.equals(re.sel):!$e.ranges));$t++);if($t!=Dt.length){for(Ce.lastOrigin=Ce.lastSelOrigin=null;;)if($e=Dt.pop(),$e.ranges){if(yo($e,Mt),ye&&!$e.equals(re.sel)){Pi(re,$e,{clearRedo:!1});return}bt=$e}else if(ve){Dt.push($e);return}else break;var Jn=[];yo(bt,Mt),Mt.push({changes:Jn,generation:Ce.generation}),Ce.generation=$e.generation||++Ce.maxGeneration;for(var pn=Qn(re,"beforeChange")||re.cm&&Qn(re.cm,"beforeChange"),Lr=function(ki){var oo=$e.changes[ki];if(oo.origin=ce,pn&&!Za(re,oo,!1))return Dt.length=0,{};Jn.push(Ci(re,oo));var Mo=ki?ii(re,oo):ht(Dt);Qa(re,oo,Mo,wa(re,oo)),!ki&&re.cm&&re.cm.scrollIntoView({from:oo.from,to:Wr(oo)});var Na=[];Vi(re,function(Jo,Ra){!Ra&&Ie(Na,Jo.history)==-1&&(tl(Jo.history,oo),Na.push(Jo.history)),Qa(Jo,oo,null,wa(Jo,oo))})},Sr=$e.changes.length-1;Sr>=0;--Sr){var wi=Lr(Sr);if(wi)return wi.v}}}}function Ws(re,ce){if(ce!=0&&(re.first+=ce,re.sel=new wn(tn(re.sel.ranges,function(Ce){return new On(wr(Ce.anchor.line+ce,Ce.anchor.ch),wr(Ce.head.line+ce,Ce.head.ch))}),re.sel.primIndex),re.cm)){el(re.cm,re.first,re.first-ce,ce);for(var ye=re.cm.display,ve=ye.viewFrom;ve<ye.viewTo;ve++)ns(re.cm,ve,"gutter")}}function Qa(re,ce,ye,ve){if(re.cm&&!re.cm.curOp)return ea(re.cm,Qa)(re,ce,ye,ve);if(ce.to.line<re.first){Ws(re,ce.text.length-1-(ce.to.line-ce.from.line));return}if(!(ce.from.line>re.lastLine())){if(ce.from.line<re.first){var Ce=ce.text.length-1-(re.first-ce.from.line);Ws(re,Ce),ce={from:wr(re.first,0),to:wr(ce.to.line+Ce,ce.to.ch),text:[ht(ce.text)],origin:ce.origin}}var $e=re.lastLine();ce.to.line>$e&&(ce={from:ce.from,to:wr($e,Cr(re,$e).text.length),text:[ce.text[0]],origin:ce.origin}),ce.removed=Ri(re,ce.from,ce.to),ye||(ye=ii(re,ce)),re.cm?ds(re.cm,ce,ve):Li(re,ce,ve),Zi(re,ye,Zt),re.cantEdit&&Ro(re,wr(re.firstLine(),0))&&(re.cantEdit=!1)}}function ds(re,ce,ye){var ve=re.doc,Ce=re.display,$e=ce.from,bt=ce.to,Dt=!1,Mt=$e.line;re.options.lineWrapping||(Mt=Pn(pr(Cr(ve,$e.line))),ve.iter(Mt,bt.line+1,function(Sr){if(Sr==Ce.maxLine)return Dt=!0,!0})),ve.sel.contains(ce.from,ce.to)>-1&&Ji(re),Li(ve,ce,ye,ml(re)),re.options.lineWrapping||(ve.iter(Mt,$e.line+ce.text.length,function(Sr){var wi=no(Sr);wi>Ce.maxLineLength&&(Ce.maxLine=Sr,Ce.maxLineLength=wi,Ce.maxLineChanged=!0,Dt=!1)}),Dt&&(re.curOp.updateMaxLine=!0)),aa(ve,$e.line),ss(re,400);var $t=ce.text.length-(bt.line-$e.line)-1;ce.full?el(re):$e.line==bt.line&&ce.text.length==1&&!Yr(re.doc,ce)?ns(re,$e.line,"text"):el(re,$e.line,bt.line+1,$t);var Jn=Qn(re,"changes"),pn=Qn(re,"change");if(pn||Jn){var Lr={from:$e,to:bt,text:ce.text,removed:ce.removed,origin:ce.origin};pn&&Bi(re,"change",re,Lr),Jn&&(re.curOp.changeObjs||(re.curOp.changeObjs=[])).push(Lr)}re.display.selForContextMenu=null}function ma(re,ce,ye,ve,Ce){var $e;ve||(ve=ye),Gi(ve,ye)<0&&($e=[ve,ye],ye=$e[0],ve=$e[1]),typeof ce=="string"&&(ce=re.splitLines(ce)),Ko(re,{from:ye,to:ve,text:ce,origin:Ce})}function Ks(re,ce,ye,ve){ye<re.line?re.line+=ve:ce<re.line&&(re.line=ce,re.ch=0)}function Rs(re,ce,ye,ve){for(var Ce=0;Ce<re.length;++Ce){var $e=re[Ce],bt=!0;if($e.ranges){$e.copied||($e=re[Ce]=$e.deepCopy(),$e.copied=!0);for(var Dt=0;Dt<$e.ranges.length;Dt++)Ks($e.ranges[Dt].anchor,ce,ye,ve),Ks($e.ranges[Dt].head,ce,ye,ve);continue}for(var Mt=0;Mt<$e.changes.length;++Mt){var $t=$e.changes[Mt];if(ye<$t.from.line)$t.from=wr($t.from.line+ve,$t.from.ch),$t.to=wr($t.to.line+ve,$t.to.ch);else if(ce<=$t.to.line){bt=!1;break}}bt||(re.splice(0,Ce+1),Ce=0)}}function tl(re,ce){var ye=ce.from.line,ve=ce.to.line,Ce=ce.text.length-(ve-ye)-1;Rs(re.done,ye,ve,Ce),Rs(re.undone,ye,ve,Ce)}function qi(re,ce,ye,ve){var Ce=ce,$e=ce;return typeof ce=="number"?$e=Cr(re,Yi(re,ce)):Ce=Pn(ce),Ce==null?null:(ve($e,Ce)&&re.cm&&ns(re.cm,Ce,ye),$e)}function eo(re){this.lines=re,this.parent=null;for(var ce=0,ye=0;ye<re.length;++ye)re[ye].parent=this,ce+=re[ye].height;this.height=ce}eo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(re,ce){for(var ye=re,ve=re+ce;ye<ve;++ye){var Ce=this.lines[ye];this.height-=Ce.height,sa(Ce),Bi(Ce,"delete")}this.lines.splice(re,ce)},collapse:function(re){re.push.apply(re,this.lines)},insertInner:function(re,ce,ye){this.height+=ye,this.lines=this.lines.slice(0,re).concat(ce).concat(this.lines.slice(re));for(var ve=0;ve<ce.length;++ve)ce[ve].parent=this},iterN:function(re,ce,ye){for(var ve=re+ce;re<ve;++re)if(ye(this.lines[re]))return!0}};function po(re){this.children=re;for(var ce=0,ye=0,ve=0;ve<re.length;++ve){var Ce=re[ve];ce+=Ce.chunkSize(),ye+=Ce.height,Ce.parent=this}this.size=ce,this.height=ye,this.parent=null}po.prototype={chunkSize:function(){return this.size},removeInner:function(re,ce){this.size-=ce;for(var ye=0;ye<this.children.length;++ye){var ve=this.children[ye],Ce=ve.chunkSize();if(re<Ce){var $e=Math.min(ce,Ce-re),bt=ve.height;if(ve.removeInner(re,$e),this.height-=bt-ve.height,Ce==$e&&(this.children.splice(ye--,1),ve.parent=null),(ce-=$e)==0)break;re=0}else re-=Ce}if(this.size-ce<25&&(this.children.length>1||!(this.children[0]instanceof eo))){var Dt=[];this.collapse(Dt),this.children=[new eo(Dt)],this.children[0].parent=this}},collapse:function(re){for(var ce=0;ce<this.children.length;++ce)this.children[ce].collapse(re)},insertInner:function(re,ce,ye){this.size+=ce.length,this.height+=ye;for(var ve=0;ve<this.children.length;++ve){var Ce=this.children[ve],$e=Ce.chunkSize();if(re<=$e){if(Ce.insertInner(re,ce,ye),Ce.lines&&Ce.lines.length>50){for(var bt=Ce.lines.length%25+25,Dt=bt;Dt<Ce.lines.length;){var Mt=new eo(Ce.lines.slice(Dt,Dt+=25));Ce.height-=Mt.height,this.children.splice(++ve,0,Mt),Mt.parent=this}Ce.lines=Ce.lines.slice(0,bt),this.maybeSpill()}break}re-=$e}},maybeSpill:function(){if(!(this.children.length<=10)){var re=this;do{var ce=re.children.splice(re.children.length-5,5),ye=new po(ce);if(re.parent){re.size-=ye.size,re.height-=ye.height;var Ce=Ie(re.parent.children,re);re.parent.children.splice(Ce+1,0,ye)}else{var ve=new po(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,ce,ye){for(var ve=0;ve<this.children.length;++ve){var Ce=this.children[ve],$e=Ce.chunkSize();if(re<$e){var bt=Math.min(ce,$e-re);if(Ce.iterN(re,bt,ye))return!0;if((ce-=bt)==0)break;re=0}else re-=$e}}};var da=function(re,ce,ye){if(ye)for(var ve in ye)ye.hasOwnProperty(ve)&&(this[ve]=ye[ve]);this.doc=re,this.node=ce};da.prototype.clear=function(){var re=this.doc.cm,ce=this.line.widgets,ye=this.line,ve=Pn(ye);if(!(ve==null||!ce)){for(var Ce=0;Ce<ce.length;++Ce)ce[Ce]==this&&ce.splice(Ce--,1);ce.length||(ye.widgets=null);var $e=Pl(this);Ur(ye,Math.max(0,ye.height-$e)),re&&(ro(re,function(){hs(re,ye,-$e),ns(re,ve,"widget")}),Bi(re,"lineWidgetCleared",re,this,ve))}},da.prototype.changed=function(){var re=this,ce=this.height,ye=this.doc.cm,ve=this.line;this.height=null;var Ce=Pl(this)-ce;Ce&&(sn(this.doc,ve)||Ur(ve,ve.height+Ce),ye&&ro(ye,function(){ye.curOp.forceUpdate=!0,hs(ye,ve,Ce),Bi(ye,"lineWidgetChanged",ye,re,Pn(ve))}))},Sn(da);function hs(re,ce,ye){Vr(ce)<(re.curOp&&re.curOp.scrollTop||re.doc.scrollTop)&&Gu(re,ye)}function Bs(re,ce,ye,ve){var Ce=new da(re,ye,ve),$e=re.cm;return $e&&Ce.noHScroll&&($e.display.alignWidgets=!0),qi(re,ce,"widget",function(bt){var Dt=bt.widgets||(bt.widgets=[]);if(Ce.insertAt==null?Dt.push(Ce):Dt.splice(Math.min(Dt.length-1,Math.max(0,Ce.insertAt)),0,Ce),Ce.line=bt,$e&&!sn(re,bt)){var Mt=Vr(bt)<re.scrollTop;Ur(bt,bt.height+Pl(Ce)),Mt&&Gu($e,Ce.height),$e.curOp.forceUpdate=!0}return!0}),$e&&Bi($e,"lineWidgetAdded",$e,Ce,typeof ce=="number"?ce:Pn(ce)),Ce}var $s=0,xn=function(re,ce){this.lines=[],this.type=ce,this.doc=re,this.id=++$s};xn.prototype.clear=function(){if(!this.explicitlyCleared){var re=this.doc.cm,ce=re&&!re.curOp;if(ce&&li(re),Qn(this,"clear")){var ye=this.find();ye&&Bi(this,"clear",ye.from,ye.to)}for(var ve=null,Ce=null,$e=0;$e<this.lines.length;++$e){var bt=this.lines[$e],Dt=Nr(bt.markedSpans,this);re&&!this.collapsed?ns(re,Pn(bt),"text"):re&&(Dt.to!=null&&(Ce=Pn(bt)),Dt.from!=null&&(ve=Pn(bt))),bt.markedSpans=Qt(bt.markedSpans,Dt),Dt.from==null&&this.collapsed&&!sn(this.doc,bt)&&re&&Ur(bt,yu(re.display))}if(re&&this.collapsed&&!re.options.lineWrapping)for(var Mt=0;Mt<this.lines.length;++Mt){var $t=pr(this.lines[Mt]),Jn=no($t);Jn>re.display.maxLineLength&&(re.display.maxLine=$t,re.display.maxLineLength=Jn,re.display.maxLineChanged=!0)}ve!=null&&re&&this.collapsed&&el(re,ve,Ce+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,re&&Ea(re.doc)),re&&Bi(re,"markerCleared",re,this,ve,Ce),ce&&$r(re),this.parent&&this.parent.clear()}},xn.prototype.find=function(re,ce){re==null&&this.type=="bookmark"&&(re=1);for(var ye,ve,Ce=0;Ce<this.lines.length;++Ce){var $e=this.lines[Ce],bt=Nr($e.markedSpans,this);if(bt.from!=null&&(ye=wr(ce?$e:Pn($e),bt.from),re==-1))return ye;if(bt.to!=null&&(ve=wr(ce?$e:Pn($e),bt.to),re==1))return ve}return ye&&{from:ye,to:ve}},xn.prototype.changed=function(){var re=this,ce=this.find(-1,!0),ye=this,ve=this.doc.cm;!ce||!ve||ro(ve,function(){var Ce=ce.line,$e=Pn(ce.line),bt=Al(ve,$e);if(bt&&(pd(bt),ve.curOp.selectionChanged=ve.curOp.forceUpdate=!0),ve.curOp.updateMaxLine=!0,!sn(ye.doc,Ce)&&ye.height!=null){var Dt=ye.height;ye.height=null;var Mt=Pl(ye)-Dt;Mt&&Ur(Ce,Ce.height+Mt)}Bi(ve,"markerChanged",ve,re)})},xn.prototype.attachLine=function(re){if(!this.lines.length&&this.doc.cm){var ce=this.doc.cm.curOp;(!ce.maybeHiddenMarkers||Ie(ce.maybeHiddenMarkers,this)==-1)&&(ce.maybeUnhiddenMarkers||(ce.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(re)},xn.prototype.detachLine=function(re){if(this.lines.splice(Ie(this.lines,re),1),!this.lines.length&&this.doc.cm){var ce=this.doc.cm.curOp;(ce.maybeHiddenMarkers||(ce.maybeHiddenMarkers=[])).push(this)}},Sn(xn);function Da(re,ce,ye,ve,Ce){if(ve&&ve.shared)return fs(re,ce,ye,ve,Ce);if(re.cm&&!re.cm.curOp)return ea(re.cm,Da)(re,ce,ye,ve,Ce);var $e=new xn(re,Ce),bt=Gi(ce,ye);if(ve&&Nn(ve,$e,!1),bt>0||bt==0&&$e.clearWhenEmpty!==!1)return $e;if($e.replacedWith&&($e.collapsed=!0,$e.widgetNode=Nt("span",[$e.replacedWith],"CodeMirror-widget"),ve.handleMouseEvents||$e.widgetNode.setAttribute("cm-ignore-events","true"),ve.insertLeft&&($e.widgetNode.insertLeft=!0)),$e.collapsed){if(fr(re,ce.line,ce,ye,$e)||ce.line!=ye.line&&fr(re,ye.line,ce,ye,$e))throw new Error("Inserting collapsed marker partially overlapping an existing one");qt()}$e.addToHistory&&ga(re,{from:ce,to:ye,origin:"markText"},re.sel,NaN);var Dt=ce.line,Mt=re.cm,$t;if(re.iter(Dt,ye.line+1,function(pn){Mt&&$e.collapsed&&!Mt.options.lineWrapping&&pr(pn)==Mt.display.maxLine&&($t=!0),$e.collapsed&&Dt!=ce.line&&Ur(pn,0),ln(pn,new At($e,Dt==ce.line?ce.ch:null,Dt==ye.line?ye.ch:null)),++Dt}),$e.collapsed&&re.iter(ce.line,ye.line+1,function(pn){sn(re,pn)&&Ur(pn,0)}),$e.clearOnEnter&&An($e,"beforeCursorEnter",function(){return $e.clear()}),$e.readOnly&&(us(),(re.history.done.length||re.history.undone.length)&&re.clearHistory()),$e.collapsed&&($e.id=++$s,$e.atomic=!0),Mt){if($t&&(Mt.curOp.updateMaxLine=!0),$e.collapsed)el(Mt,ce.line,ye.line+1);else if($e.className||$e.startStyle||$e.endStyle||$e.css||$e.attributes||$e.title)for(var Jn=ce.line;Jn<=ye.line;Jn++)ns(Mt,Jn,"text");$e.atomic&&Ea(Mt.doc),Bi(Mt,"markerAdded",Mt,$e)}return $e}var Ja=function(re,ce){this.markers=re,this.primary=ce;for(var ye=0;ye<re.length;++ye)re[ye].parent=this};Ja.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var re=0;re<this.markers.length;++re)this.markers[re].clear();Bi(this,"clear")}},Ja.prototype.find=function(re,ce){return this.primary.find(re,ce)},Sn(Ja);function fs(re,ce,ye,ve,Ce){ve=Nn(ve),ve.shared=!1;var $e=[Da(re,ce,ye,ve,Ce)],bt=$e[0],Dt=ve.widgetNode;return Vi(re,function(Mt){Dt&&(ve.widgetNode=Dt.cloneNode(!0)),$e.push(Da(Mt,uo(Mt,ce),uo(Mt,ye),ve,Ce));for(var $t=0;$t<Mt.linked.length;++$t)if(Mt.linked[$t].isParent)return;bt=ht($e)}),new Ja($e,bt)}function jl(re){return re.findMarks(wr(re.first,0),re.clipPos(wr(re.lastLine())),function(ce){return ce.parent})}function fl(re,ce){for(var ye=0;ye<ce.length;ye++){var ve=ce[ye],Ce=ve.find(),$e=re.clipPos(Ce.from),bt=re.clipPos(Ce.to);if(Gi($e,bt)){var Dt=Da(re,$e,bt,ve.primary,ve.primary.type);ve.markers.push(Dt),Dt.parent=ve}}}function Qi(re){for(var ce=function(ve){var Ce=re[ve],$e=[Ce.primary.doc];Vi(Ce.primary.doc,function(Mt){return $e.push(Mt)});for(var bt=0;bt<Ce.markers.length;bt++){var Dt=Ce.markers[bt];Ie($e,Dt.doc)==-1&&(Dt.parent=null,Ce.markers.splice(bt--,1))}},ye=0;ye<re.length;ye++)ce(ye)}var jo=0,io=function(re,ce,ye,ve,Ce){if(!(this instanceof io))return new io(re,ce,ye,ve,Ce);ye==null&&(ye=0),po.call(this,[new eo([new zi("",null)])]),this.first=ye,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ye;var $e=wr(ye,0);this.sel=br($e),this.history=new mo(null),this.id=++jo,this.modeOption=ce,this.lineSep=ve,this.direction=Ce=="rtl"?"rtl":"ltr",this.extend=!1,typeof re=="string"&&(re=this.splitLines(re)),Li(this,{from:$e,to:$e,text:re}),Pi(this,br($e),Zt)};io.prototype=Ue(po.prototype,{constructor:io,iter:function(re,ce,ye){ye?this.iterN(re-this.first,ce-re,ye):this.iterN(this.first,this.first+this.size,re)},insert:function(re,ce){for(var ye=0,ve=0;ve<ce.length;++ve)ye+=ce[ve].height;this.insertInner(re-this.first,ce,ye)},remove:function(re,ce){this.removeInner(re-this.first,ce)},getValue:function(re){var ce=_i(this,this.first,this.first+this.size);return re===!1?ce:ce.join(re||this.lineSeparator())},setValue:Vo(function(re){var ce=wr(this.first,0),ye=this.first+this.size-1;Ko(this,{from:ce,to:wr(ye,Cr(this,ye).text.length),text:this.splitLines(re),origin:"setValue",full:!0},!0),this.cm&&gc(this.cm,0,0),Pi(this,br(ce),Zt)}),replaceRange:function(re,ce,ye,ve){ce=uo(this,ce),ye=ye?uo(this,ye):ce,ma(this,re,ce,ye,ve)},getRange:function(re,ce,ye){var ve=Ri(this,uo(this,re),uo(this,ce));return ye===!1?ve:ve.join(ye||this.lineSeparator())},getLine:function(re){var ce=this.getLineHandle(re);return ce&&ce.text},getLineHandle:function(re){if(ji(this,re))return Cr(this,re)},getLineNumber:function(re){return Pn(re)},getLineHandleVisualStart:function(re){return typeof re=="number"&&(re=Cr(this,re)),pr(re)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(re){return uo(this,re)},getCursor:function(re){var ce=this.sel.primary(),ye;return re==null||re=="head"?ye=ce.head:re=="anchor"?ye=ce.anchor:re=="end"||re=="to"||re===!1?ye=ce.to():ye=ce.from(),ye},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Vo(function(re,ce,ye){Ui(this,uo(this,typeof re=="number"?wr(re,ce||0):re),null,ye)}),setSelection:Vo(function(re,ce,ye){Ui(this,uo(this,re),uo(this,ce||re),ye)}),extendSelection:Vo(function(re,ce,ye){Qo(this,uo(this,re),ce&&uo(this,ce),ye)}),extendSelections:Vo(function(re,ce){ja(this,Go(this,re),ce)}),extendSelectionsBy:Vo(function(re,ce){var ye=tn(this.sel.ranges,re);ja(this,Go(this,ye),ce)}),setSelections:Vo(function(re,ce,ye){if(re.length){for(var ve=[],Ce=0;Ce<re.length;Ce++)ve[Ce]=new On(uo(this,re[Ce].anchor),uo(this,re[Ce].head));ce==null&&(ce=Math.min(re.length-1,this.sel.primIndex)),Pi(this,Tn(this.cm,ve,ce),ye)}}),addSelection:Vo(function(re,ce,ye){var ve=this.sel.ranges.slice(0);ve.push(new On(uo(this,re),uo(this,ce||re))),Pi(this,Tn(this.cm,ve,ve.length-1),ye)}),getSelection:function(re){for(var ce=this.sel.ranges,ye,ve=0;ve<ce.length;ve++){var Ce=Ri(this,ce[ve].from(),ce[ve].to());ye=ye?ye.concat(Ce):Ce}return re===!1?ye:ye.join(re||this.lineSeparator())},getSelections:function(re){for(var ce=[],ye=this.sel.ranges,ve=0;ve<ye.length;ve++){var Ce=Ri(this,ye[ve].from(),ye[ve].to());re!==!1&&(Ce=Ce.join(re||this.lineSeparator())),ce[ve]=Ce}return ce},replaceSelection:function(re,ce,ye){for(var ve=[],Ce=0;Ce<this.sel.ranges.length;Ce++)ve[Ce]=re;this.replaceSelections(ve,ce,ye||"+input")},replaceSelections:Vo(function(re,ce,ye){for(var ve=[],Ce=this.sel,$e=0;$e<Ce.ranges.length;$e++){var bt=Ce.ranges[$e];ve[$e]={from:bt.from(),to:bt.to(),text:this.splitLines(re[$e]),origin:ye}}for(var Dt=ce&&ce!="end"&&Di(this,ve,ce),Mt=ve.length-1;Mt>=0;Mt--)Ko(this,ve[Mt]);Dt?ho(this,Dt):this.cm&&pc(this.cm)}),undo:Vo(function(){cs(this,"undo")}),redo:Vo(function(){cs(this,"redo")}),undoSelection:Vo(function(){cs(this,"undo",!0)}),redoSelection:Vo(function(){cs(this,"redo",!0)}),setExtending:function(re){this.extend=re},getExtending:function(){return this.extend},historySize:function(){for(var re=this.history,ce=0,ye=0,ve=0;ve<re.done.length;ve++)re.done[ve].ranges||++ce;for(var Ce=0;Ce<re.undone.length;Ce++)re.undone[Ce].ranges||++ye;return{undo:ce,redo:ye}},clearHistory:function(){var re=this;this.history=new mo(this.history.maxGeneration),Vi(this,function(ce){return ce.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:ko(this.history.done),undone:ko(this.history.undone)}},setHistory:function(re){var ce=this.history=new mo(this.history.maxGeneration);ce.done=ko(re.done.slice(0),null,!0),ce.undone=ko(re.undone.slice(0),null,!0)},setGutterMarker:Vo(function(re,ce,ye){return qi(this,re,"gutter",function(ve){var Ce=ve.gutterMarkers||(ve.gutterMarkers={});return Ce[ce]=ye,!ye&&Ye(Ce)&&(ve.gutterMarkers=null),!0})}),clearGutter:Vo(function(re){var ce=this;this.iter(function(ye){ye.gutterMarkers&&ye.gutterMarkers[re]&&qi(ce,ye,"gutter",function(){return ye.gutterMarkers[re]=null,Ye(ye.gutterMarkers)&&(ye.gutterMarkers=null),!0})})}),lineInfo:function(re){var ce;if(typeof re=="number"){if(!ji(this,re)||(ce=re,re=Cr(this,re),!re))return null}else if(ce=Pn(re),ce==null)return null;return{line:ce,handle:re,text:re.text,gutterMarkers:re.gutterMarkers,textClass:re.textClass,bgClass:re.bgClass,wrapClass:re.wrapClass,widgets:re.widgets}},addLineClass:Vo(function(re,ce,ye){return qi(this,re,ce=="gutter"?"gutter":"class",function(ve){var Ce=ce=="text"?"textClass":ce=="background"?"bgClass":ce=="gutter"?"gutterClass":"wrapClass";if(!ve[Ce])ve[Ce]=ye;else{if(Be(ye).test(ve[Ce]))return!1;ve[Ce]+=" "+ye}return!0})}),removeLineClass:Vo(function(re,ce,ye){return qi(this,re,ce=="gutter"?"gutter":"class",function(ve){var Ce=ce=="text"?"textClass":ce=="background"?"bgClass":ce=="gutter"?"gutterClass":"wrapClass",$e=ve[Ce];if($e)if(ye==null)ve[Ce]=null;else{var bt=$e.match(Be(ye));if(!bt)return!1;var Dt=bt.index+bt[0].length;ve[Ce]=$e.slice(0,bt.index)+(!bt.index||Dt==$e.length?"":" ")+$e.slice(Dt)||null}else return!1;return!0})}),addLineWidget:Vo(function(re,ce,ye){return Bs(this,re,ce,ye)}),removeLineWidget:function(re){re.clear()},markText:function(re,ce,ye){return Da(this,uo(this,re),uo(this,ce),ye,ye&&ye.type||"range")},setBookmark:function(re,ce){var ye={replacedWith:ce&&(ce.nodeType==null?ce.widget:ce),insertLeft:ce&&ce.insertLeft,clearWhenEmpty:!1,shared:ce&&ce.shared,handleMouseEvents:ce&&ce.handleMouseEvents};return re=uo(this,re),Da(this,re,re,ye,"bookmark")},findMarksAt:function(re){re=uo(this,re);var ce=[],ye=Cr(this,re.line).markedSpans;if(ye)for(var ve=0;ve<ye.length;++ve){var Ce=ye[ve];(Ce.from==null||Ce.from<=re.ch)&&(Ce.to==null||Ce.to>=re.ch)&&ce.push(Ce.marker.parent||Ce.marker)}return ce},findMarks:function(re,ce,ye){re=uo(this,re),ce=uo(this,ce);var ve=[],Ce=re.line;return this.iter(re.line,ce.line+1,function($e){var bt=$e.markedSpans;if(bt)for(var Dt=0;Dt<bt.length;Dt++){var Mt=bt[Dt];!(Mt.to!=null&&Ce==re.line&&re.ch>=Mt.to||Mt.from==null&&Ce!=re.line||Mt.from!=null&&Ce==ce.line&&Mt.from>=ce.ch)&&(!ye||ye(Mt.marker))&&ve.push(Mt.marker.parent||Mt.marker)}++Ce}),ve},getAllMarks:function(){var re=[];return this.iter(function(ce){var ye=ce.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 ce,ye=this.first,ve=this.lineSeparator().length;return this.iter(function(Ce){var $e=Ce.text.length+ve;if($e>re)return ce=re,!0;re-=$e,++ye}),uo(this,wr(ye,ce))},indexFromPos:function(re){re=uo(this,re);var ce=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){ce+=ve.text.length+ye}),ce},copy:function(re){var ce=new io(_i(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return ce.scrollTop=this.scrollTop,ce.scrollLeft=this.scrollLeft,ce.sel=this.sel,ce.extend=!1,re&&(ce.history.undoDepth=this.history.undoDepth,ce.setHistory(this.getHistory())),ce},linkedDoc:function(re){re||(re={});var ce=this.first,ye=this.first+this.size;re.from!=null&&re.from>ce&&(ce=re.from),re.to!=null&&re.to<ye&&(ye=re.to);var ve=new io(_i(this,ce,ye),re.mode||this.modeOption,ce,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}],fl(ve,jl(this)),ve},unlinkDoc:function(re){if(re instanceof bl&&(re=re.doc),this.linked)for(var ce=0;ce<this.linked.length;++ce){var ye=this.linked[ce];if(ye.doc==re){this.linked.splice(ce,1),re.unlinkDoc(this),Qi(jl(this));break}}if(re.history==this.history){var ve=[re.id];Vi(re,function(Ce){return ve.push(Ce.id)},!0),re.history=new mo(null),re.history.done=ko(this.history.done,ve),re.history.undone=ko(this.history.undone,ve)}},iterLinkedDocs:function(re){Vi(this,re)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(re){return this.lineSep?re.split(this.lineSep):ir(re)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Vo(function(re){re!="rtl"&&(re="ltr"),re!=this.direction&&(this.direction=re,this.iter(function(ce){return ce.order=null}),this.cm&&Fn(this.cm))})}),io.prototype.eachLine=io.prototype.iter;var La=0;function Cs(re){var ce=this;if(Ga(ce),!(Xe(ce,re)||Is(ce.display,re))){to(re),tt&&(La=+new Date);var ye=Ql(ce,re,!0),ve=re.dataTransfer.files;if(!(!ye||ce.isReadOnly()))if(ve&&ve.length&&window.FileReader&&window.File)for(var Ce=ve.length,$e=Array(Ce),bt=0,Dt=function(){++bt==Ce&&ea(ce,function(){ye=uo(ce.doc,ye);var Sr={from:ye,to:ye,text:ce.doc.splitLines($e.filter(function(wi){return wi!=null}).join(ce.doc.lineSeparator())),origin:"paste"};Ko(ce.doc,Sr),ho(ce.doc,br(uo(ce.doc,ye),uo(ce.doc,Wr(Sr))))})()},Mt=function(Sr,wi){if(ce.options.allowDropFileTypes&&Ie(ce.options.allowDropFileTypes,Sr.type)==-1){Dt();return}var ki=new FileReader;ki.onerror=function(){return Dt()},ki.onload=function(){var oo=ki.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(oo)){Dt();return}$e[wi]=oo,Dt()},ki.readAsText(Sr)},$t=0;$t<ve.length;$t++)Mt(ve[$t],$t);else{if(ce.state.draggingText&&ce.doc.sel.contains(ye)>-1){ce.state.draggingText(re),setTimeout(function(){return ce.display.input.focus()},20);return}try{var Jn=re.dataTransfer.getData("Text");if(Jn){var pn;if(ce.state.draggingText&&!ce.state.draggingText.copy&&(pn=ce.listSelections()),Zi(ce.doc,br(ye,ye)),pn)for(var Lr=0;Lr<pn.length;++Lr)ma(ce.doc,"",pn[Lr].anchor,pn[Lr].head,"drag");ce.replaceSelection(Jn,"around","paste"),ce.display.input.focus()}}catch(Sr){}}}}function Yo(re,ce){if(tt&&(!re.state.draggingText||+new Date-La<100)){hi(ce);return}if(!(Xe(re,ce)||Is(re.display,ce))&&(ce.dataTransfer.setData("Text",re.getSelection()),ce.dataTransfer.effectAllowed="copyMove",ce.dataTransfer.setDragImage&&!Et)){var ye=ft("img",null,null,"position: fixed; left: 0; top: 0;");ye.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",lt&&(ye.width=ye.height=1,re.display.wrapper.appendChild(ye),ye._top=ye.offsetTop),ce.dataTransfer.setDragImage(ye,0,0),lt&&ye.parentNode.removeChild(ye)}}function is(re,ce){var ye=Ql(re,ce);if(ye){var ve=document.createDocumentFragment();ks(re,ye,ve),re.display.dragCursor||(re.display.dragCursor=ft("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),re.display.lineSpace.insertBefore(re.display.dragCursor,re.display.cursorDiv)),gt(re.display.dragCursor,ve)}}function Ga(re){re.display.dragCursor&&(re.display.lineSpace.removeChild(re.display.dragCursor),re.display.dragCursor=null)}function $a(re){if(document.getElementsByClassName){for(var ce=document.getElementsByClassName("CodeMirror"),ye=[],ve=0;ve<ce.length;ve++){var Ce=ce[ve].CodeMirror;Ce&&ye.push(Ce)}ye.length&&ye[0].operation(function(){for(var $e=0;$e<ye.length;$e++)re(ye[$e])})}}var Ss=!1;function Ms(){Ss||(cu(),Ss=!0)}function cu(){var re;An(window,"resize",function(){re==null&&(re=setTimeout(function(){re=null,$a(zu)},100))}),An(window,"blur",function(){return $a(wc)})}function zu(re){var ce=re.display;ce.cachedCharWidth=ce.cachedTextHeight=ce.cachedPaddingH=null,ce.scrollbarsClipped=!1,re.setSize()}for(var Ts={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"},rs=0;rs<10;rs++)Ts[rs+48]=Ts[rs+96]=String(rs);for(var As=65;As<=90;As++)Ts[As]=String.fromCharCode(As);for(var nl=1;nl<=12;nl++)Ts[nl+111]=Ts[nl+63235]="F"+nl;var Ol={};Ol.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"},Ol.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"},Ol.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"},Ol.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"]},Ol.default=de?Ol.macDefault:Ol.pcDefault;function zl(re){var ce=re.split(/-(?!$)/);re=ce[ce.length-1];for(var ye,ve,Ce,$e,bt=0;bt<ce.length-1;bt++){var Dt=ce[bt];if(/^(cmd|meta|m)$/i.test(Dt))$e=!0;else if(/^a(lt)?$/i.test(Dt))ye=!0;else if(/^(c|ctrl|control)$/i.test(Dt))ve=!0;else if(/^s(hift)?$/i.test(Dt))Ce=!0;else throw new Error("Unrecognized modifier name: "+Dt)}return ye&&(re="Alt-"+re),ve&&(re="Ctrl-"+re),$e&&(re="Cmd-"+re),Ce&&(re="Shift-"+re),re}function Aa(re){var ce={};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 Ce=tn(ye.split(" "),zl),$e=0;$e<Ce.length;$e++){var bt=void 0,Dt=void 0;$e==Ce.length-1?(Dt=Ce.join(" "),bt=ve):(Dt=Ce.slice(0,$e+1).join(" "),bt="...");var Mt=ce[Dt];if(!Mt)ce[Dt]=bt;else if(Mt!=bt)throw new Error("Inconsistent bindings for "+Dt)}delete re[ye]}for(var $t in ce)re[$t]=ce[$t];return re}function ia(re,ce,ye,ve){ce=du(ce);var Ce=ce.call?ce.call(re,ve):ce[re];if(Ce===!1)return"nothing";if(Ce==="...")return"multi";if(Ce!=null&&ye(Ce))return"handled";if(ce.fallthrough){if(Object.prototype.toString.call(ce.fallthrough)!="[object Array]")return ia(re,ce.fallthrough,ye,ve);for(var $e=0;$e<ce.fallthrough.length;$e++){var bt=ia(re,ce.fallthrough[$e],ye,ve);if(bt)return bt}}}function rl(re){var ce=typeof re=="string"?re:Ts[re.keyCode];return ce=="Ctrl"||ce=="Alt"||ce=="Shift"||ce=="Mod"}function nu(re,ce,ye){var ve=re;return ce.altKey&&ve!="Alt"&&(re="Alt-"+re),(xe?ce.metaKey:ce.ctrlKey)&&ve!="Ctrl"&&(re="Ctrl-"+re),(xe?ce.ctrlKey:ce.metaKey)&&ve!="Mod"&&(re="Cmd-"+re),!ye&&ce.shiftKey&&ve!="Shift"&&(re="Shift-"+re),re}function ql(re,ce){if(lt&&re.keyCode==34&&re.char)return!1;var ye=Ts[re.keyCode];return ye==null||re.altGraphKey?!1:(re.keyCode==3&&re.code&&(ye=re.code),nu(ye,re,ce))}function du(re){return typeof re=="string"?Ol[re]:re}function Rl(re,ce){for(var ye=re.doc.sel.ranges,ve=[],Ce=0;Ce<ye.length;Ce++){for(var $e=ce(ye[Ce]);ve.length&&Gi($e.from,ht(ve).to)<=0;){var bt=ve.pop();if(Gi(bt.from,$e.from)<0){$e.from=bt.from;break}}ve.push($e)}ro(re,function(){for(var Dt=ve.length-1;Dt>=0;Dt--)ma(re.doc,"",ve[Dt].from,ve[Dt].to,"+delete");pc(re)})}function Vu(re,ce,ye){var ve=Kn(re.text,ce+ye,ye);return ve<0||ve>re.text.length?null:ve}function El(re,ce,ye){var ve=Vu(re,ce.ch,ye);return ve==null?null:new wr(ce.line,ve,ye<0?"after":"before")}function ru(re,ce,ye,ve,Ce){if(re){ce.doc.direction=="rtl"&&(Ce=-Ce);var $e=sr(ye,ce.doc.direction);if($e){var bt=Ce<0?ht($e):$e[0],Dt=Ce<0==(bt.level==1),Mt=Dt?"after":"before",$t;if(bt.level>0||ce.doc.direction=="rtl"){var Jn=Fl(ce,ye);$t=Ce<0?ye.text.length-1:0;var pn=Ju(ce,Jn,$t).top;$t=dr(function(Lr){return Ju(ce,Jn,Lr).top==pn},Ce<0==(bt.level==1)?bt.from:bt.to-1,$t),Mt=="before"&&($t=Vu(ye,$t,1))}else $t=Ce<0?bt.to:bt.from;return new wr(ve,$t,Mt)}}return new wr(ve,Ce<0?ye.text.length:0,Ce<0?"before":"after")}function Hc(re,ce,ye,ve){var Ce=sr(ce,re.doc.direction);if(!Ce)return El(ce,ye,ve);ye.ch>=ce.text.length?(ye.ch=ce.text.length,ye.sticky="before"):ye.ch<=0&&(ye.ch=0,ye.sticky="after");var $e=yn(Ce,ye.ch,ye.sticky),bt=Ce[$e];if(re.doc.direction=="ltr"&&bt.level%2==0&&(ve>0?bt.to>ye.ch:bt.from<ye.ch))return El(ce,ye,ve);var Dt=function(Mo,Na){return Vu(ce,Mo instanceof wr?Mo.ch:Mo,Na)},Mt,$t=function(Mo){return re.options.lineWrapping?(Mt=Mt||Fl(re,ce),xc(re,ce,Mt,Mo)):{begin:0,end:ce.text.length}},Jn=$t(ye.sticky=="before"?Dt(ye,-1):ye.ch);if(re.doc.direction=="rtl"||bt.level==1){var pn=bt.level==1==ve<0,Lr=Dt(ye,pn?1:-1);if(Lr!=null&&(pn?Lr<=bt.to&&Lr<=Jn.end:Lr>=bt.from&&Lr>=Jn.begin)){var Sr=pn?"before":"after";return new wr(ye.line,Lr,Sr)}}var wi=function(Mo,Na,Jo){for(var Ra=function(ou,nc){return nc?new wr(ye.line,Dt(ou,1),"before"):new wr(ye.line,ou,"after")};Mo>=0&&Mo<Ce.length;Mo+=Na){var Es=Ce[Mo],$o=Na>0==(Es.level!=1),Ys=$o?Jo.begin:Dt(Jo.end,-1);if(Es.from<=Ys&&Ys<Es.to||(Ys=$o?Es.from:Dt(Es.to,-1),Jo.begin<=Ys&&Ys<Jo.end))return Ra(Ys,$o)}},ki=wi($e+ve,ve,Jn);if(ki)return ki;var oo=ve>0?Jn.end:Dt(Jn.begin,-1);return oo!=null&&!(ve>0&&oo==ce.text.length)&&(ki=wi(ve>0?0:Ce.length-1,ve,$t(oo)),ki)?ki:null}var md={selectAll:Wo,singleSelection:function(re){return re.setSelection(re.getCursor("anchor"),re.getCursor("head"),Zt)},killLine:function(re){return Rl(re,function(ce){if(ce.empty()){var ye=Cr(re.doc,ce.head.line).text.length;return ce.head.ch==ye&&ce.head.line<re.lastLine()?{from:ce.head,to:wr(ce.head.line+1,0)}:{from:ce.head,to:wr(ce.head.line,ye)}}else return{from:ce.from(),to:ce.to()}})},deleteLine:function(re){return Rl(re,function(ce){return{from:wr(ce.from().line,0),to:uo(re.doc,wr(ce.to().line+1,0))}})},delLineLeft:function(re){return Rl(re,function(ce){return{from:wr(ce.from().line,0),to:ce.from()}})},delWrappedLineLeft:function(re){return Rl(re,function(ce){var ye=re.charCoords(ce.head,"div").top+5,ve=re.coordsChar({left:0,top:ye},"div");return{from:ve,to:ce.from()}})},delWrappedLineRight:function(re){return Rl(re,function(ce){var ye=re.charCoords(ce.head,"div").top+5,ve=re.coordsChar({left:re.display.lineDiv.offsetWidth+100,top:ye},"div");return{from:ce.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(wr(re.firstLine(),0))},goDocEnd:function(re){return re.extendSelection(wr(re.lastLine()))},goLineStart:function(re){return re.extendSelectionsBy(function(ce){return Jd(re,ce.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(re){return re.extendSelectionsBy(function(ce){return $d(re,ce.head)},{origin:"+move",bias:1})},goLineEnd:function(re){return re.extendSelectionsBy(function(ce){return Hd(re,ce.head.line)},{origin:"+move",bias:-1})},goLineRight:function(re){return re.extendSelectionsBy(function(ce){var ye=re.cursorCoords(ce.head,"div").top+5;return re.coordsChar({left:re.display.lineDiv.offsetWidth+100,top:ye},"div")},_n)},goLineLeft:function(re){return re.extendSelectionsBy(function(ce){var ye=re.cursorCoords(ce.head,"div").top+5;return re.coordsChar({left:0,top:ye},"div")},_n)},goLineLeftSmart:function(re){return re.extendSelectionsBy(function(ce){var ye=re.cursorCoords(ce.head,"div").top+5,ve=re.coordsChar({left:0,top:ye},"div");return ve.ch<re.getLine(ve.line).search(/\S/)?$d(re,ce.head):ve},_n)},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 ce=[],ye=re.listSelections(),ve=re.options.tabSize,Ce=0;Ce<ye.length;Ce++){var $e=ye[Ce].from(),bt=wt(re.getLine($e.line),$e.ch,ve);ce.push(Wt(ve-bt%ve))}re.replaceSelections(ce)},defaultTab:function(re){re.somethingSelected()?re.indentSelection("add"):re.execCommand("insertTab")},transposeChars:function(re){return ro(re,function(){for(var ce=re.listSelections(),ye=[],ve=0;ve<ce.length;ve++)if(ce[ve].empty()){var Ce=ce[ve].head,$e=Cr(re.doc,Ce.line).text;if($e){if(Ce.ch==$e.length&&(Ce=new wr(Ce.line,Ce.ch-1)),Ce.ch>0)Ce=new wr(Ce.line,Ce.ch+1),re.replaceRange($e.charAt(Ce.ch-1)+$e.charAt(Ce.ch-2),wr(Ce.line,Ce.ch-2),Ce,"+transpose");else if(Ce.line>re.doc.first){var bt=Cr(re.doc,Ce.line-1).text;bt&&(Ce=new wr(Ce.line,1),re.replaceRange($e.charAt(0)+re.doc.lineSeparator()+bt.charAt(bt.length-1),wr(Ce.line-1,bt.length-1),Ce,"+transpose"))}}ye.push(new On(Ce,Ce))}re.setSelections(ye)})},newlineAndIndent:function(re){return ro(re,function(){for(var ce=re.listSelections(),ye=ce.length-1;ye>=0;ye--)re.replaceRange(re.doc.lineSeparator(),ce[ye].anchor,ce[ye].head,"+input");ce=re.listSelections();for(var ve=0;ve<ce.length;ve++)re.indentLine(ce[ve].from().line,null,!0);pc(re)})},openLine:function(re){return re.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(re){return re.toggleOverwrite()}};function Jd(re,ce){var ye=Cr(re.doc,ce),ve=pr(ye);return ve!=ye&&(ce=Pn(ve)),ru(!0,re,ve,ce,1)}function Hd(re,ce){var ye=Cr(re.doc,ce),ve=Tr(ye);return ve!=ye&&(ce=Pn(ve)),ru(!0,re,ye,ce,-1)}function $d(re,ce){var ye=Jd(re,ce.line),ve=Cr(re.doc,ye.line),Ce=sr(ve,re.doc.direction);if(!Ce||Ce[0].level==0){var $e=Math.max(ye.ch,ve.text.search(/\S/)),bt=ce.line==ye.line&&ce.ch<=$e&&ce.ch;return wr(ye.line,bt?0:$e,ye.sticky)}return ye}function qd(re,ce,ye){if(typeof ce=="string"&&(ce=md[ce],!ce))return!1;re.display.input.ensurePolled();var ve=re.display.shift,Ce=!1;try{re.isReadOnly()&&(re.state.suppressEdits=!0),ye&&(re.display.shift=!1),Ce=ce(re)!=Bn}finally{re.display.shift=ve,re.state.suppressEdits=!1}return Ce}function ph(re,ce,ye){for(var ve=0;ve<re.state.keyMaps.length;ve++){var Ce=ia(ce,re.state.keyMaps[ve],ye,re);if(Ce)return Ce}return re.options.extraKeys&&ia(ce,re.options.extraKeys,ye,re)||ia(ce,re.options.keyMap,ye,re)}var Xc=new pt;function pl(re,ce,ye,ve){var Ce=re.state.keySeq;if(Ce){if(rl(ce))return"handled";if(/\'$/.test(ce)?re.state.keySeq=null:Xc.set(50,function(){re.state.keySeq==Ce&&(re.state.keySeq=null,re.display.input.reset())}),qs(re,Ce+" "+ce,ye,ve))return!0}return qs(re,ce,ye,ve)}function qs(re,ce,ye,ve){var Ce=ph(re,ce,ve);return Ce=="multi"&&(re.state.keySeq=ce),Ce=="handled"&&Bi(re,"keyHandled",re,ce,ye),(Ce=="handled"||Ce=="multi")&&(to(ye),Js(re)),!!Ce}function qu(re,ce){var ye=ql(ce,!0);return ye?ce.shiftKey&&!re.state.keySeq?pl(re,"Shift-"+ye,ce,function(ve){return qd(re,ve,!0)})||pl(re,ye,ce,function(ve){if(typeof ve=="string"?/^go[A-Z]/.test(ve):ve.motion)return qd(re,ve)}):pl(re,ye,ce,function(ve){return qd(re,ve)}):!1}function Wu(re,ce,ye){return pl(re,"'"+ye+"'",ce,function(ve){return qd(re,ve,!0)})}var Kl=null;function Ps(re){var ce=this;if(!(re.target&&re.target!=ce.display.input.getField())&&(ce.curOp.focus=Vt(),!Xe(ce,re))){tt&&Me<11&&re.keyCode==27&&(re.returnValue=!1);var ye=re.keyCode;ce.display.shift=ye==16||re.shiftKey;var ve=qu(ce,re);lt&&(Kl=ve?ye:null,!ve&&ye==88&&!rr&&(de?re.metaKey:re.ctrlKey)&&ce.replaceSelection("",null,"cut")),ie&&!de&&!ve&&ye==46&&re.shiftKey&&!re.ctrlKey&&document.execCommand&&document.execCommand("cut"),ye==18&&!/\bCodeMirror-crosshair\b/.test(ce.display.lineDiv.className)&&Ns(ce)}}function Ns(re){var ce=re.display.lineDiv;Rt(ce,"CodeMirror-crosshair");function ye(ve){(ve.keyCode==18||!ve.altKey)&&(at(ce,"CodeMirror-crosshair"),ri(document,"keyup",ye),ri(document,"mouseover",ye))}An(document,"keyup",ye),An(document,"mouseover",ye)}function hu(re){re.keyCode==16&&(this.doc.sel.shift=!1),Xe(this,re)}function Gl(re){var ce=this;if(!(re.target&&re.target!=ce.display.input.getField())&&!(Is(ce.display,re)||Xe(ce,re)||re.ctrlKey&&!re.altKey||de&&re.metaKey)){var ye=re.keyCode,ve=re.charCode;if(lt&&ye==Kl){Kl=null,to(re);return}if(!(lt&&(!re.which||re.which<10)&&qu(ce,re))){var Ce=String.fromCharCode(ve==null?ye:ve);Ce!="\b"&&(Wu(ce,re,Ce)||ce.display.input.onKeyPress(re))}}}var iu=400,vu=function(re,ce,ye){this.time=re,this.pos=ce,this.button=ye};vu.prototype.compare=function(re,ce,ye){return this.time+iu>re&&Gi(ce,this.pos)==0&&ye==this.button};var ec,Fu;function jd(re,ce){var ye=+new Date;return Fu&&Fu.compare(ye,re,ce)?(ec=Fu=null,"triple"):ec&&ec.compare(ye,re,ce)?(Fu=new vu(ye,re,ce),ec=null,"double"):(ec=new vu(ye,re,ce),Fu=null,"single")}function Tc(re){var ce=this,ye=ce.display;if(!(Xe(ce,re)||ye.activeTouch&&ye.input.supportsTouch())){if(ye.input.ensurePolled(),ye.shift=re.shiftKey,Is(ye,re)){_e||(ye.scroller.draggable=!1,setTimeout(function(){return ye.scroller.draggable=!0},100));return}if(!np(ce,re)){var ve=Ql(ce,re),Ce=fn(re),$e=ve?jd(ve,Ce):"single";window.focus(),Ce==1&&ce.state.selectingText&&ce.state.selectingText(re),!(ve&&Gd(ce,Ce,ve,$e,re))&&(Ce==1?ve?wh(ce,ve,$e,re):Ir(re)==ye.scroller&&to(re):Ce==2?(ve&&Qo(ce.doc,ve),setTimeout(function(){return ye.input.focus()},20)):Ce==3&&(be?ce.display.input.onContextMenu(re):Sl(ce)))}}}function Gd(re,ce,ye,ve,Ce){var $e="Click";return ve=="double"?$e="Double"+$e:ve=="triple"&&($e="Triple"+$e),$e=(ce==1?"Left":ce==2?"Middle":"Right")+$e,pl(re,nu($e,Ce),Ce,function(bt){if(typeof bt=="string"&&(bt=md[bt]),!bt)return!1;var Dt=!1;try{re.isReadOnly()&&(re.state.suppressEdits=!0),Dt=bt(re,ye)!=Bn}finally{re.state.suppressEdits=!1}return Dt})}function kd(re,ce,ye){var ve=re.getOption("configureMouse"),Ce=ve?ve(re,ce,ye):{};if(Ce.unit==null){var $e=le?ye.shiftKey&&ye.metaKey:ye.altKey;Ce.unit=$e?"rectangle":ce=="single"?"char":ce=="double"?"word":"line"}return(Ce.extend==null||re.doc.extend)&&(Ce.extend=re.doc.extend||ye.shiftKey),Ce.addNew==null&&(Ce.addNew=de?ye.metaKey:ye.ctrlKey),Ce.moveOnDrag==null&&(Ce.moveOnDrag=!(de?ye.altKey:ye.ctrlKey)),Ce}function wh(re,ce,ye,ve){tt?setTimeout(un(ul,re),0):re.curOp.focus=Vt();var Ce=kd(re,ye,ve),$e=re.doc.sel,bt;re.options.dragDrop&&Hi&&!re.isReadOnly()&&ye=="single"&&(bt=$e.contains(ce))>-1&&(Gi((bt=$e.ranges[bt]).from(),ce)<0||ce.xRel>0)&&(Gi(bt.to(),ce)>0||ce.xRel<0)?xp(re,ve,ce,Ce):Vg(re,ve,ce,Ce)}function xp(re,ce,ye,ve){var Ce=re.display,$e=!1,bt=ea(re,function($t){_e&&(Ce.scroller.draggable=!1),re.state.draggingText=!1,ri(Ce.wrapper.ownerDocument,"mouseup",bt),ri(Ce.wrapper.ownerDocument,"mousemove",Dt),ri(Ce.scroller,"dragstart",Mt),ri(Ce.scroller,"drop",bt),$e||(to($t),ve.addNew||Qo(re.doc,ye,null,null,ve.extend),_e&&!Et||tt&&Me==9?setTimeout(function(){Ce.wrapper.ownerDocument.body.focus({preventScroll:!0}),Ce.input.focus()},20):Ce.input.focus())}),Dt=function($t){$e=$e||Math.abs(ce.clientX-$t.clientX)+Math.abs(ce.clientY-$t.clientY)>=10},Mt=function(){return $e=!0};_e&&(Ce.scroller.draggable=!0),re.state.draggingText=bt,bt.copy=!ve.moveOnDrag,Ce.scroller.dragDrop&&Ce.scroller.dragDrop(),An(Ce.wrapper.ownerDocument,"mouseup",bt),An(Ce.wrapper.ownerDocument,"mousemove",Dt),An(Ce.scroller,"dragstart",Mt),An(Ce.scroller,"drop",bt),Sl(re),setTimeout(function(){return Ce.input.focus()},20)}function wp(re,ce,ye){if(ye=="char")return new On(ce,ce);if(ye=="word")return re.findWordAt(ce);if(ye=="line")return new On(wr(ce.line,0),uo(re.doc,wr(ce.line+1,0)));var ve=ye(re,ce);return new On(ve.from,ve.to)}function Vg(re,ce,ye,ve){var Ce=re.display,$e=re.doc;to(ce);var bt,Dt,Mt=$e.sel,$t=Mt.ranges;if(ve.addNew&&!ve.extend?(Dt=$e.sel.contains(ye),Dt>-1?bt=$t[Dt]:bt=new On(ye,ye)):(bt=$e.sel.primary(),Dt=$e.sel.primIndex),ve.unit=="rectangle")ve.addNew||(bt=new On(ye,ye)),ye=Ql(re,ce,!0,!0),Dt=-1;else{var Jn=wp(re,ye,ve.unit);ve.extend?bt=fo(bt,Jn.anchor,Jn.head,ve.extend):bt=Jn}ve.addNew?Dt==-1?(Dt=$t.length,Pi($e,Tn(re,$t.concat([bt]),Dt),{scroll:!1,origin:"*mouse"})):$t.length>1&&$t[Dt].empty()&&ve.unit=="char"&&!ve.extend?(Pi($e,Tn(re,$t.slice(0,Dt).concat($t.slice(Dt+1)),0),{scroll:!1,origin:"*mouse"}),Mt=$e.sel):Lo($e,Dt,bt,zn):(Dt=0,Pi($e,new wn([bt],0),zn),Mt=$e.sel);var pn=ye;function Lr(Jo){if(Gi(pn,Jo)!=0)if(pn=Jo,ve.unit=="rectangle"){for(var Ra=[],Es=re.options.tabSize,$o=wt(Cr($e,ye.line).text,ye.ch,Es),Ys=wt(Cr($e,Jo.line).text,Jo.ch,Es),ou=Math.min($o,Ys),nc=Math.max($o,Ys),Su=Math.min(ye.line,Jo.line),Qc=Math.min(re.lastLine(),Math.max(ye.line,Jo.line));Su<=Qc;Su++){var Ac=Cr($e,Su).text,Yu=nr(Ac,ou,Es);ou==nc?Ra.push(new On(wr(Su,Yu),wr(Su,Yu))):Ac.length>Yu&&Ra.push(new On(wr(Su,Yu),wr(Su,nr(Ac,nc,Es))))}Ra.length||Ra.push(new On(ye,ye)),Pi($e,Tn(re,Mt.ranges.slice(0,Dt).concat(Ra),Dt),{origin:"*mouse",scroll:!1}),re.scrollIntoView(Jo)}else{var Jc=bt,mc=wp(re,Jo,ve.unit),Zu=Jc.anchor,xl;Gi(mc.anchor,Zu)>0?(xl=mc.head,Zu=Oi(Jc.from(),mc.anchor)):(xl=mc.anchor,Zu=Pa(Jc.to(),mc.head));var Eu=Mt.ranges.slice(0);Eu[Dt]=tg(re,new On(uo($e,Zu),xl)),Pi($e,Tn(re,Eu,Dt),zn)}}var Sr=Ce.wrapper.getBoundingClientRect(),wi=0;function ki(Jo){var Ra=++wi,Es=Ql(re,Jo,!0,ve.unit=="rectangle");if(Es)if(Gi(Es,pn)!=0){re.curOp.focus=Vt(),Lr(Es);var $o=ms(Ce,$e);(Es.line>=$o.to||Es.line<$o.from)&&setTimeout(ea(re,function(){wi==Ra&&ki(Jo)}),150)}else{var Ys=Jo.clientY<Sr.top?-20:Jo.clientY>Sr.bottom?20:0;Ys&&setTimeout(ea(re,function(){wi==Ra&&(Ce.scroller.scrollTop+=Ys,ki(Jo))}),50)}}function oo(Jo){re.state.selectingText=!1,wi=1/0,Jo&&(to(Jo),Ce.input.focus()),ri(Ce.wrapper.ownerDocument,"mousemove",Mo),ri(Ce.wrapper.ownerDocument,"mouseup",Na),$e.history.lastSelOrigin=null}var Mo=ea(re,function(Jo){Jo.buttons===0||!fn(Jo)?oo(Jo):ki(Jo)}),Na=ea(re,oo);re.state.selectingText=Na,An(Ce.wrapper.ownerDocument,"mousemove",Mo),An(Ce.wrapper.ownerDocument,"mouseup",Na)}function tg(re,ce){var ye=ce.anchor,ve=ce.head,Ce=Cr(re.doc,ye.line);if(Gi(ye,ve)==0&&ye.sticky==ve.sticky)return ce;var $e=sr(Ce);if(!$e)return ce;var bt=yn($e,ye.ch,ye.sticky),Dt=$e[bt];if(Dt.from!=ye.ch&&Dt.to!=ye.ch)return ce;var Mt=bt+(Dt.from==ye.ch==(Dt.level!=1)?0:1);if(Mt==0||Mt==$e.length)return ce;var $t;if(ve.line!=ye.line)$t=(ve.line-ye.line)*(re.doc.direction=="ltr"?1:-1)>0;else{var Jn=yn($e,ve.ch,ve.sticky),pn=Jn-bt||(ve.ch-ye.ch)*(Dt.level==1?-1:1);Jn==Mt-1||Jn==Mt?$t=pn<0:$t=pn>0}var Lr=$e[Mt+($t?-1:0)],Sr=$t==(Lr.level==1),wi=Sr?Lr.from:Lr.to,ki=Sr?"after":"before";return ye.ch==wi&&ye.sticky==ki?ce:new On(new wr(ye.line,wi,ki),ve)}function Ch(re,ce,ye,ve){var Ce,$e;if(ce.touches)Ce=ce.touches[0].clientX,$e=ce.touches[0].clientY;else try{Ce=ce.clientX,$e=ce.clientY}catch(Lr){return!1}if(Ce>=Math.floor(re.display.gutters.getBoundingClientRect().right))return!1;ve&&to(ce);var bt=re.display,Dt=bt.lineDiv.getBoundingClientRect();if($e>Dt.bottom||!Qn(re,ye))return Zr(ce);$e-=Dt.top-bt.viewOffset;for(var Mt=0;Mt<re.display.gutterSpecs.length;++Mt){var $t=bt.gutters.childNodes[Mt];if($t&&$t.getBoundingClientRect().right>=Ce){var Jn=xi(re.doc,$e),pn=re.display.gutterSpecs[Mt];return bn(re,ye,re,Jn,pn.className,ce),Zr(ce)}}}function np(re,ce){return Ch(re,ce,"gutterClick",!0)}function Nf(re,ce){Is(re.display,ce)||ng(re,ce)||Xe(re,ce,"contextmenu")||be||re.display.input.onContextMenu(ce)}function ng(re,ce){return Qn(re,"gutterContextMenu")?Ch(re,ce,"gutterContextMenu",!1):!1}function rp(re){re.display.wrapper.className=re.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+re.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ic(re)}var jh={toString:function(){return"CodeMirror.Init"}},Cp={},Gh={};function rg(re){var ce=re.optionHandlers;function ye(ve,Ce,$e,bt){re.defaults[ve]=Ce,$e&&(ce[ve]=bt?function(Dt,Mt,$t){$t!=jh&&$e(Dt,Mt,$t)}:$e)}re.defineOption=ye,re.Init=jh,ye("value","",function(ve,Ce){return ve.setValue(Ce)},!0),ye("mode",null,function(ve,Ce){ve.doc.modeOption=Ce,cr(ve)},!0),ye("indentUnit",2,cr,!0),ye("indentWithTabs",!1),ye("smartIndent",!0),ye("tabSize",4,function(ve){pi(ve),ic(ve),el(ve)},!0),ye("lineSeparator",null,function(ve,Ce){if(ve.doc.lineSep=Ce,!!Ce){var $e=[],bt=ve.doc.first;ve.doc.iter(function(Mt){for(var $t=0;;){var Jn=Mt.text.indexOf(Ce,$t);if(Jn==-1)break;$t=Jn+Ce.length,$e.push(wr(bt,Jn))}bt++});for(var Dt=$e.length-1;Dt>=0;Dt--)ma(ve.doc,Ce,$e[Dt],wr($e[Dt].line,$e[Dt].ch+Ce.length))}}),ye("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ve,Ce,$e){ve.state.specialChars=new RegExp(Ce.source+(Ce.test(" ")?"":"| "),"g"),$e!=jh&&ve.refresh()}),ye("specialCharPlaceholder",ws,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,Ce){return ve.getInputField().spellcheck=Ce},!0),ye("autocorrect",!1,function(ve,Ce){return ve.getInputField().autocorrect=Ce},!0),ye("autocapitalize",!1,function(ve,Ce){return ve.getInputField().autocapitalize=Ce},!0),ye("rtlMoveVisually",!pe),ye("wholeLineUpdateBefore",!0),ye("theme","default",function(ve){rp(ve),jt(ve)},!0),ye("keyMap","default",function(ve,Ce,$e){var bt=du(Ce),Dt=$e!=jh&&du($e);Dt&&Dt.detach&&Dt.detach(ve,bt),bt.attach&&bt.attach(ve,Dt||null)}),ye("extraKeys",null),ye("configureMouse",null),ye("lineWrapping",!1,ig,!0),ye("gutters",[],function(ve,Ce){ve.display.gutterSpecs=Lt(Ce,ve.options.lineNumbers),jt(ve)},!0),ye("fixedGutter",!0,function(ve,Ce){ve.display.gutters.style.left=Ce?Du(ve.display)+"px":"0",ve.refresh()},!0),ye("coverGutterNextToScrollbar",!1,function(ve){return Pr(ve)},!0),ye("scrollbarStyle","native",function(ve){Si(ve),Pr(ve),ve.display.scrollbars.setScrollTop(ve.doc.scrollTop),ve.display.scrollbars.setScrollLeft(ve.doc.scrollLeft)},!0),ye("lineNumbers",!1,function(ve,Ce){ve.display.gutterSpecs=Lt(ve.options.gutters,Ce),jt(ve)},!0),ye("firstLineNumber",1,jt,!0),ye("lineNumberFormatter",function(ve){return ve},jt,!0),ye("showCursorWhenSelecting",!1,$l,!0),ye("resetSelectionOnContextMenu",!0),ye("lineWiseCopyCut",!0),ye("pasteLinesPerSelection",!0),ye("selectionsMayTouch",!1),ye("readOnly",!1,function(ve,Ce){Ce=="nocursor"&&(wc(ve),ve.display.input.blur()),ve.display.input.readOnlyChanged(Ce)}),ye("screenReaderLabel",null,function(ve,Ce){Ce=Ce===""?null:Ce,ve.display.input.screenReaderLabelChanged(Ce)}),ye("disableInput",!1,function(ve,Ce){Ce||ve.display.input.reset()},!0),ye("dragDrop",!0,ip),ye("allowDropFileTypes",null),ye("cursorBlinkRate",530),ye("cursorScrollMargin",0),ye("cursorHeight",1,$l,!0),ye("singleCursorHeightPerLine",!0,$l,!0),ye("workTime",100),ye("workDelay",100),ye("flattenSpans",!0,pi,!0),ye("addModeClass",!1,pi,!0),ye("pollInterval",100),ye("undoDepth",200,function(ve,Ce){return ve.doc.history.undoDepth=Ce}),ye("historyEventDelay",1250),ye("viewportMargin",10,function(ve){return ve.refresh()},!0),ye("maxHighlightLength",1e4,pi,!0),ye("moveInputWithCursor",!0,function(ve,Ce){Ce||ve.display.input.resetPosition()}),ye("tabindex",null,function(ve,Ce){return ve.display.input.getField().tabIndex=Ce||""}),ye("autofocus",null),ye("direction","ltr",function(ve,Ce){return ve.doc.setDirection(Ce)},!0),ye("phrases",null)}function ip(re,ce,ye){var ve=ye&&ye!=jh;if(!ce!=!ve){var Ce=re.display.dragFunctions,$e=ce?An:ri;$e(re.display.scroller,"dragstart",Ce.start),$e(re.display.scroller,"dragenter",Ce.enter),$e(re.display.scroller,"dragover",Ce.over),$e(re.display.scroller,"dragleave",Ce.leave),$e(re.display.scroller,"drop",Ce.drop)}}function ig(re){re.options.lineWrapping?(Rt(re.display.wrapper,"CodeMirror-wrap"),re.display.sizer.style.minWidth="",re.display.sizerWidth=null):(at(re.display.wrapper,"CodeMirror-wrap"),Xi(re)),ua(re),el(re),ic(re),setTimeout(function(){return Pr(re)},100)}function bl(re,ce){var ye=this;if(!(this instanceof bl))return new bl(re,ce);this.options=ce=ce?Nn(ce):{},Nn(Cp,ce,!1);var ve=ce.value;typeof ve=="string"?ve=new io(ve,ce.mode,null,ce.lineSeparator,ce.direction):ce.mode&&(ve.modeOption=ce.mode),this.doc=ve;var Ce=new bl.inputStyles[ce.inputStyle](this),$e=this.display=new se(re,ve,Ce,ce);$e.wrapper.CodeMirror=this,rp(this),ce.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Si(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 pt,keySeq:null,specialChars:null},ce.autofocus&&!ee&&$e.input.focus(),tt&&Me<11&&setTimeout(function(){return ye.display.input.reset(!0)},20),of(this),Ms(),li(this),this.curOp.forceUpdate=!0,bi(this,ve),ce.autofocus&&!ee||this.hasFocus()?setTimeout(function(){ye.hasFocus()&&!ye.state.focused&&Fs(ye)},20):wc(this);for(var bt in Gh)Gh.hasOwnProperty(bt)&&Gh[bt](this,ce[bt],jh);ot(this),ce.finishInit&&ce.finishInit(this);for(var Dt=0;Dt<Th.length;++Dt)Th[Dt](this);$r(this),_e&&ce.lineWrapping&&getComputedStyle($e.lineDiv).textRendering=="optimizelegibility"&&($e.lineDiv.style.textRendering="auto")}bl.defaults=Cp,bl.optionHandlers=Gh;function of(re){var ce=re.display;An(ce.scroller,"mousedown",ea(re,Tc)),tt&&Me<11?An(ce.scroller,"dblclick",ea(re,function(Mt){if(!Xe(re,Mt)){var $t=Ql(re,Mt);if(!(!$t||np(re,Mt)||Is(re.display,Mt))){to(Mt);var Jn=re.findWordAt($t);Qo(re.doc,Jn.anchor,Jn.head)}}})):An(ce.scroller,"dblclick",function(Mt){return Xe(re,Mt)||to(Mt)}),An(ce.scroller,"contextmenu",function(Mt){return Nf(re,Mt)}),An(ce.input.getField(),"contextmenu",function(Mt){ce.scroller.contains(Mt.target)||Nf(re,Mt)});var ye,ve={end:0};function Ce(){ce.activeTouch&&(ye=setTimeout(function(){return ce.activeTouch=null},1e3),ve=ce.activeTouch,ve.end=+new Date)}function $e(Mt){if(Mt.touches.length!=1)return!1;var $t=Mt.touches[0];return $t.radiusX<=1&&$t.radiusY<=1}function bt(Mt,$t){if($t.left==null)return!0;var Jn=$t.left-Mt.left,pn=$t.top-Mt.top;return Jn*Jn+pn*pn>20*20}An(ce.scroller,"touchstart",function(Mt){if(!Xe(re,Mt)&&!$e(Mt)&&!np(re,Mt)){ce.input.ensurePolled(),clearTimeout(ye);var $t=+new Date;ce.activeTouch={start:$t,moved:!1,prev:$t-ve.end<=300?ve:null},Mt.touches.length==1&&(ce.activeTouch.left=Mt.touches[0].pageX,ce.activeTouch.top=Mt.touches[0].pageY)}}),An(ce.scroller,"touchmove",function(){ce.activeTouch&&(ce.activeTouch.moved=!0)}),An(ce.scroller,"touchend",function(Mt){var $t=ce.activeTouch;if($t&&!Is(ce,Mt)&&$t.left!=null&&!$t.moved&&new Date-$t.start<300){var Jn=re.coordsChar(ce.activeTouch,"page"),pn;!$t.prev||bt($t,$t.prev)?pn=new On(Jn,Jn):!$t.prev.prev||bt($t,$t.prev.prev)?pn=re.findWordAt(Jn):pn=new On(wr(Jn.line,0),uo(re.doc,wr(Jn.line+1,0))),re.setSelection(pn.anchor,pn.head),re.focus(),to(Mt)}Ce()}),An(ce.scroller,"touchcancel",Ce),An(ce.scroller,"scroll",function(){ce.scroller.clientHeight&&(en(re,ce.scroller.scrollTop),hn(re,ce.scroller.scrollLeft,!0),bn(re,"scroll",re))}),An(ce.scroller,"mousewheel",function(Mt){return mn(re,Mt)}),An(ce.scroller,"DOMMouseScroll",function(Mt){return mn(re,Mt)}),An(ce.wrapper,"scroll",function(){return ce.wrapper.scrollTop=ce.wrapper.scrollLeft=0}),ce.dragFunctions={enter:function(Mt){Xe(re,Mt)||hi(Mt)},over:function(Mt){Xe(re,Mt)||(is(re,Mt),hi(Mt))},start:function(Mt){return Yo(re,Mt)},drop:ea(re,Cs),leave:function(Mt){Xe(re,Mt)||Ga(re)}};var Dt=ce.input.getField();An(Dt,"keyup",function(Mt){return hu.call(re,Mt)}),An(Dt,"keydown",ea(re,Ps)),An(Dt,"keypress",ea(re,Gl)),An(Dt,"focus",function(Mt){return Fs(re,Mt)}),An(Dt,"blur",function(Mt){return wc(re,Mt)})}var Th=[];bl.defineInitHook=function(re){return Th.push(re)};function tc(re,ce,ye,ve){var Ce=re.doc,$e;ye==null&&(ye="add"),ye=="smart"&&(Ce.mode.indent?$e=es(re,ce).state:ye="prev");var bt=re.options.tabSize,Dt=Cr(Ce,ce),Mt=wt(Dt.text,null,bt);Dt.stateAfter&&(Dt.stateAfter=null);var $t=Dt.text.match(/^\s*/)[0],Jn;if(!ve&&!/\S/.test(Dt.text))Jn=0,ye="not";else if(ye=="smart"&&(Jn=Ce.mode.indent($e,Dt.text.slice($t.length),Dt.text),Jn==Bn||Jn>150)){if(!ve)return;ye="prev"}ye=="prev"?ce>Ce.first?Jn=wt(Cr(Ce,ce-1).text,null,bt):Jn=0:ye=="add"?Jn=Mt+re.options.indentUnit:ye=="subtract"?Jn=Mt-re.options.indentUnit:typeof ye=="number"&&(Jn=Mt+ye),Jn=Math.max(0,Jn);var pn="",Lr=0;if(re.options.indentWithTabs)for(var Sr=Math.floor(Jn/bt);Sr;--Sr)Lr+=bt,pn+=" ";if(Lr<Jn&&(pn+=Wt(Jn-Lr)),pn!=$t)return ma(Ce,pn,wr(ce,0),wr(ce,$t.length),"+input"),Dt.stateAfter=null,!0;for(var wi=0;wi<Ce.sel.ranges.length;wi++){var ki=Ce.sel.ranges[wi];if(ki.head.line==ce&&ki.head.ch<$t.length){var oo=wr(ce,$t.length);Lo(Ce,wi,new On(oo,oo));break}}}var jc=null;function af(re){jc=re}function zh(re,ce,ye,ve,Ce){var $e=re.doc;re.display.shift=!1,ve||(ve=$e.sel);var bt=+new Date-200,Dt=Ce=="paste"||re.state.pasteIncoming>bt,Mt=ir(ce),$t=null;if(Dt&&ve.ranges.length>1)if(jc&&jc.text.join(`
|
|
|
`)==ce){if(ve.ranges.length%jc.text.length==0){$t=[];for(var Jn=0;Jn<jc.text.length;Jn++)$t.push($e.splitLines(jc.text[Jn]))}}else Mt.length==ve.ranges.length&&re.options.pasteLinesPerSelection&&($t=tn(Mt,function(Mo){return[Mo]}));for(var pn=re.curOp.updateInput,Lr=ve.ranges.length-1;Lr>=0;Lr--){var Sr=ve.ranges[Lr],wi=Sr.from(),ki=Sr.to();Sr.empty()&&(ye&&ye>0?wi=wr(wi.line,wi.ch-ye):re.state.overwrite&&!Dt?ki=wr(ki.line,Math.min(Cr($e,ki.line).text.length,ki.ch+ht(Mt).length)):Dt&&jc&&jc.lineWise&&jc.text.join(`
|
|
|
`)==Mt.join(`
|
|
|
`)&&(wi=ki=wr(wi.line,0)));var oo={from:wi,to:ki,text:$t?$t[Lr%$t.length]:Mt,origin:Ce||(Dt?"paste":re.state.cutIncoming>bt?"cut":"+input")};Ko(re.doc,oo),Bi(re,"inputRead",re,oo)}ce&&!Dt&&Ap(re,ce),pc(re),re.curOp.updateInput<2&&(re.curOp.updateInput=pn),re.curOp.typing=!0,re.state.pasteIncoming=re.state.cutIncoming=-1}function Tp(re,ce){var ye=re.clipboardData&&re.clipboardData.getData("Text");if(ye)return re.preventDefault(),!ce.isReadOnly()&&!ce.options.disableInput&&ro(ce,function(){return zh(ce,ye,0,null,"paste")}),!0}function Ap(re,ce){if(!(!re.options.electricChars||!re.options.smartIndent))for(var ye=re.doc.sel,ve=ye.ranges.length-1;ve>=0;ve--){var Ce=ye.ranges[ve];if(!(Ce.head.ch>100||ve&&ye.ranges[ve-1].head.line==Ce.head.line)){var $e=re.getModeAt(Ce.head),bt=!1;if($e.electricChars){for(var Dt=0;Dt<$e.electricChars.length;Dt++)if(ce.indexOf($e.electricChars.charAt(Dt))>-1){bt=tc(re,Ce.head.line,"smart");break}}else $e.electricInput&&$e.electricInput.test(Cr(re.doc,Ce.head.line).text.slice(0,Ce.head.ch))&&(bt=tc(re,Ce.head.line,"smart"));bt&&Bi(re,"electricInput",re,Ce.head.line)}}}function Pp(re){for(var ce=[],ye=[],ve=0;ve<re.doc.sel.ranges.length;ve++){var Ce=re.doc.sel.ranges[ve].head.line,$e={anchor:wr(Ce,0),head:wr(Ce+1,0)};ye.push($e),ce.push(re.getRange($e.anchor,$e.head))}return{text:ce,ranges:ye}}function Np(re,ce,ye,ve){re.setAttribute("autocorrect",ye?"":"off"),re.setAttribute("autocapitalize",ve?"":"off"),re.setAttribute("spellcheck",!!ce)}function Lp(){var re=ft("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),ce=ft("div",[re],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return _e?re.style.width="1000px":re.setAttribute("wrap","off"),Ge&&(re.style.border="1px solid black"),Np(re),ce}function Ah(re){var ce=re.optionHandlers,ye=re.helpers={};re.prototype={constructor:re,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ve,Ce){var $e=this.options,bt=$e[ve];$e[ve]==Ce&&ve!="mode"||($e[ve]=Ce,ce.hasOwnProperty(ve)&&ea(this,ce[ve])(this,Ce,bt),bn(this,"optionChange",this,ve))},getOption:function(ve){return this.options[ve]},getDoc:function(){return this.doc},addKeyMap:function(ve,Ce){this.state.keyMaps[Ce?"push":"unshift"](du(ve))},removeKeyMap:function(ve){for(var Ce=this.state.keyMaps,$e=0;$e<Ce.length;++$e)if(Ce[$e]==ve||Ce[$e].name==ve)return Ce.splice($e,1),!0},addOverlay:Ia(function(ve,Ce){var $e=ve.token?ve:re.getMode(this.options,ve);if($e.startState)throw new Error("Overlays may not be stateful.");an(this.state.overlays,{mode:$e,modeSpec:ve,opaque:Ce&&Ce.opaque,priority:Ce&&Ce.priority||0},function(bt){return bt.priority}),this.state.modeGen++,el(this)}),removeOverlay:Ia(function(ve){for(var Ce=this.state.overlays,$e=0;$e<Ce.length;++$e){var bt=Ce[$e].modeSpec;if(bt==ve||typeof ve=="string"&&bt.name==ve){Ce.splice($e,1),this.state.modeGen++,el(this);return}}}),indentLine:Ia(function(ve,Ce,$e){typeof Ce!="string"&&typeof Ce!="number"&&(Ce==null?Ce=this.options.smartIndent?"smart":"prev":Ce=Ce?"add":"subtract"),ji(this.doc,ve)&&tc(this,ve,Ce,$e)}),indentSelection:Ia(function(ve){for(var Ce=this.doc.sel.ranges,$e=-1,bt=0;bt<Ce.length;bt++){var Dt=Ce[bt];if(Dt.empty())Dt.head.line>$e&&(tc(this,Dt.head.line,ve,!0),$e=Dt.head.line,bt==this.doc.sel.primIndex&&pc(this));else{var Mt=Dt.from(),$t=Dt.to(),Jn=Math.max($e,Mt.line);$e=Math.min(this.lastLine(),$t.line-($t.ch?0:1))+1;for(var pn=Jn;pn<$e;++pn)tc(this,pn,ve);var Lr=this.doc.sel.ranges;Mt.ch==0&&Ce.length==Lr.length&&Lr[bt].from().ch>0&&Lo(this.doc,bt,new On(Mt,Lr[bt].to()),Zt)}}}),getTokenAt:function(ve,Ce){return oa(this,ve,Ce)},getLineTokens:function(ve,Ce){return oa(this,wr(ve),Ce,!0)},getTokenTypeAt:function(ve){ve=uo(this.doc,ve);var Ce=gs(this,Cr(this.doc,ve.line)),$e=0,bt=(Ce.length-1)/2,Dt=ve.ch,Mt;if(Dt==0)Mt=Ce[2];else for(;;){var $t=$e+bt>>1;if(($t?Ce[$t*2-1]:0)>=Dt)bt=$t;else if(Ce[$t*2+1]<Dt)$e=$t+1;else{Mt=Ce[$t*2+2];break}}var Jn=Mt?Mt.indexOf("overlay "):-1;return Jn<0?Mt:Jn==0?null:Mt.slice(0,Jn-1)},getModeAt:function(ve){var Ce=this.doc.mode;return Ce.innerMode?re.innerMode(Ce,this.getTokenAt(ve).state).mode:Ce},getHelper:function(ve,Ce){return this.getHelpers(ve,Ce)[0]},getHelpers:function(ve,Ce){var $e=[];if(!ye.hasOwnProperty(Ce))return $e;var bt=ye[Ce],Dt=this.getModeAt(ve);if(typeof Dt[Ce]=="string")bt[Dt[Ce]]&&$e.push(bt[Dt[Ce]]);else if(Dt[Ce])for(var Mt=0;Mt<Dt[Ce].length;Mt++){var $t=bt[Dt[Ce][Mt]];$t&&$e.push($t)}else Dt.helperType&&bt[Dt.helperType]?$e.push(bt[Dt.helperType]):bt[Dt.name]&&$e.push(bt[Dt.name]);for(var Jn=0;Jn<bt._global.length;Jn++){var pn=bt._global[Jn];pn.pred(Dt,this)&&Ie($e,pn.val)==-1&&$e.push(pn.val)}return $e},getStateAfter:function(ve,Ce){var $e=this.doc;return ve=Yi($e,ve==null?$e.first+$e.size-1:ve),es(this,ve+1,Ce).state},cursorCoords:function(ve,Ce){var $e,bt=this.doc.sel.primary();return ve==null?$e=bt.head:typeof ve=="object"?$e=uo(this.doc,ve):$e=ve?bt.from():bt.to(),hl(this,$e,Ce||"page")},charCoords:function(ve,Ce){return Wl(this,uo(this.doc,ve),Ce||"page")},coordsChar:function(ve,Ce){return ve=Yc(this,ve,Ce||"page"),ju(this,ve.left,ve.top)},lineAtHeight:function(ve,Ce){return ve=Yc(this,{top:ve,left:0},Ce||"page").top,xi(this.doc,ve+this.display.viewOffset)},heightAtLine:function(ve,Ce,$e){var bt=!1,Dt;if(typeof ve=="number"){var Mt=this.doc.first+this.doc.size-1;ve<this.doc.first?ve=this.doc.first:ve>Mt&&(ve=Mt,bt=!0),Dt=Cr(this.doc,ve)}else Dt=ve;return Hl(this,Dt,{top:0,left:0},Ce||"page",$e||bt).top+(bt?this.doc.height-Vr(Dt):0)},defaultTextHeight:function(){return yu(this.display)},defaultCharWidth:function(){return Tu(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ve,Ce,$e,bt,Dt){var Mt=this.display;ve=hl(this,uo(this.doc,ve));var $t=ve.bottom,Jn=ve.left;if(Ce.style.position="absolute",Ce.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Ce),Mt.sizer.appendChild(Ce),bt=="over")$t=ve.top;else if(bt=="above"||bt=="near"){var pn=Math.max(Mt.wrapper.clientHeight,this.doc.height),Lr=Math.max(Mt.sizer.clientWidth,Mt.lineSpace.clientWidth);(bt=="above"||ve.bottom+Ce.offsetHeight>pn)&&ve.top>Ce.offsetHeight?$t=ve.top-Ce.offsetHeight:ve.bottom+Ce.offsetHeight<=pn&&($t=ve.bottom),Jn+Ce.offsetWidth>Lr&&(Jn=Lr-Ce.offsetWidth)}Ce.style.top=$t+"px",Ce.style.left=Ce.style.right="",Dt=="right"?(Jn=Mt.sizer.clientWidth-Ce.offsetWidth,Ce.style.right="0px"):(Dt=="left"?Jn=0:Dt=="middle"&&(Jn=(Mt.sizer.clientWidth-Ce.offsetWidth)/2),Ce.style.left=Jn+"px"),$e&&Zc(this,{left:Jn,top:$t,right:Jn+Ce.offsetWidth,bottom:$t+Ce.offsetHeight})},triggerOnKeyDown:Ia(Ps),triggerOnKeyPress:Ia(Gl),triggerOnKeyUp:hu,triggerOnMouseDown:Ia(Tc),execCommand:function(ve){if(md.hasOwnProperty(ve))return md[ve].call(null,this)},triggerElectric:Ia(function(ve){Ap(this,ve)}),findPosH:function(ve,Ce,$e,bt){var Dt=1;Ce<0&&(Dt=-1,Ce=-Ce);for(var Mt=uo(this.doc,ve),$t=0;$t<Ce&&(Mt=Lf(this.doc,Mt,Dt,$e,bt),!Mt.hitSide);++$t);return Mt},moveH:Ia(function(ve,Ce){var $e=this;this.extendSelectionsBy(function(bt){return $e.display.shift||$e.doc.extend||bt.empty()?Lf($e.doc,bt.head,ve,Ce,$e.options.rtlMoveVisually):ve<0?bt.from():bt.to()},_n)}),deleteH:Ia(function(ve,Ce){var $e=this.doc.sel,bt=this.doc;$e.somethingSelected()?bt.replaceSelection("",null,"+delete"):Rl(this,function(Dt){var Mt=Lf(bt,Dt.head,ve,Ce,!1);return ve<0?{from:Mt,to:Dt.head}:{from:Dt.head,to:Mt}})}),findPosV:function(ve,Ce,$e,bt){var Dt=1,Mt=bt;Ce<0&&(Dt=-1,Ce=-Ce);for(var $t=uo(this.doc,ve),Jn=0;Jn<Ce;++Jn){var pn=hl(this,$t,"div");if(Mt==null?Mt=pn.left:pn.left=Mt,$t=gh(this,pn,Dt,$e),$t.hitSide)break}return $t},moveV:Ia(function(ve,Ce){var $e=this,bt=this.doc,Dt=[],Mt=!this.display.shift&&!bt.extend&&bt.sel.somethingSelected();if(bt.extendSelectionsBy(function(Jn){if(Mt)return ve<0?Jn.from():Jn.to();var pn=hl($e,Jn.head,"div");Jn.goalColumn!=null&&(pn.left=Jn.goalColumn),Dt.push(pn.left);var Lr=gh($e,pn,ve,Ce);return Ce=="page"&&Jn==bt.sel.primary()&&Gu($e,Wl($e,Lr,"div").top-pn.top),Lr},_n),Dt.length)for(var $t=0;$t<bt.sel.ranges.length;$t++)bt.sel.ranges[$t].goalColumn=Dt[$t]}),findWordAt:function(ve){var Ce=this.doc,$e=Cr(Ce,ve.line).text,bt=ve.ch,Dt=ve.ch;if($e){var Mt=this.getHelper(ve,"wordChars");(ve.sticky=="before"||Dt==$e.length)&&bt?--bt:++Dt;for(var $t=$e.charAt(bt),Jn=vt($t,Mt)?function(pn){return vt(pn,Mt)}:/\s/.test($t)?function(pn){return/\s/.test(pn)}:function(pn){return!/\s/.test(pn)&&!vt(pn)};bt>0&&Jn($e.charAt(bt-1));)--bt;for(;Dt<$e.length&&Jn($e.charAt(Dt));)++Dt}return new On(wr(ve.line,bt),wr(ve.line,Dt))},toggleOverwrite:function(ve){ve!=null&&ve==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Rt(this.display.cursorDiv,"CodeMirror-overwrite"):at(this.display.cursorDiv,"CodeMirror-overwrite"),bn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Vt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ia(function(ve,Ce){gc(this,ve,Ce)}),getScrollInfo:function(){var ve=this.display.scroller;return{left:ve.scrollLeft,top:ve.scrollTop,height:ve.scrollHeight-Il(this)-this.display.barHeight,width:ve.scrollWidth-Il(this)-this.display.barWidth,clientHeight:Dc(this),clientWidth:al(this)}},scrollIntoView:Ia(function(ve,Ce){ve==null?(ve={from:this.doc.sel.primary().head,to:null},Ce==null&&(Ce=this.options.cursorScrollMargin)):typeof ve=="number"?ve={from:wr(ve,0),to:null}:ve.from==null&&(ve={from:ve,to:null}),ve.to||(ve.to=ve.from),ve.margin=Ce||0,ve.from.line!=null?Do(this,ve):kt(this,ve.from,ve.to,ve.margin)}),setSize:Ia(function(ve,Ce){var $e=this,bt=function(Mt){return typeof Mt=="number"||/^\d+$/.test(String(Mt))?Mt+"px":Mt};ve!=null&&(this.display.wrapper.style.width=bt(ve)),Ce!=null&&(this.display.wrapper.style.height=bt(Ce)),this.options.lineWrapping&&Uc(this);var Dt=this.display.viewFrom;this.doc.iter(Dt,this.display.viewTo,function(Mt){if(Mt.widgets){for(var $t=0;$t<Mt.widgets.length;$t++)if(Mt.widgets[$t].noHScroll){ns($e,Dt,"widget");break}}++Dt}),this.curOp.forceUpdate=!0,bn(this,"refresh",this)}),operation:function(ve){return ro(this,ve)},startOperation:function(){return li(this)},endOperation:function(){return $r(this)},refresh:Ia(function(){var ve=this.display.cachedTextHeight;el(this),this.curOp.forceUpdate=!0,ic(this),gc(this,this.doc.scrollLeft,this.doc.scrollTop),Ae(this.display),(ve==null||Math.abs(ve-yu(this.display))>.5||this.options.lineWrapping)&&ua(this),bn(this,"refresh",this)}),swapDoc:Ia(function(ve){var Ce=this.doc;return Ce.cm=null,this.state.selectingText&&this.state.selectingText(),bi(this,ve),ic(this),this.display.input.reset(),gc(this,ve.scrollLeft,ve.scrollTop),this.curOp.forceScroll=!0,Bi(this,"swapDoc",this,Ce),Ce}),phrase:function(ve){var Ce=this.options.phrases;return Ce&&Object.prototype.hasOwnProperty.call(Ce,ve)?Ce[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}},Sn(re),re.registerHelper=function(ve,Ce,$e){ye.hasOwnProperty(ve)||(ye[ve]=re[ve]={_global:[]}),ye[ve][Ce]=$e},re.registerGlobalHelper=function(ve,Ce,$e,bt){re.registerHelper(ve,Ce,bt),ye[ve]._global.push({pred:$e,val:bt})}}function Lf(re,ce,ye,ve,Ce){var $e=ce,bt=ye,Dt=Cr(re,ce.line),Mt=Ce&&re.direction=="rtl"?-ye:ye;function $t(){var Na=ce.line+Mt;return Na<re.first||Na>=re.first+re.size?!1:(ce=new wr(Na,ce.ch,ce.sticky),Dt=Cr(re,Na))}function Jn(Na){var Jo;if(ve=="codepoint"){var Ra=Dt.text.charCodeAt(ce.ch+(ve>0?0:-1));isNaN(Ra)?Jo=null:Jo=new wr(ce.line,Math.max(0,Math.min(Dt.text.length,ce.ch+ye*(Ra>=55296&&Ra<56320?2:1))),-ye)}else Ce?Jo=Hc(re.cm,Dt,ce,ye):Jo=El(Dt,ce,ye);if(Jo==null)if(!Na&&$t())ce=ru(Ce,re.cm,Dt,ce.line,Mt);else return!1;else ce=Jo;return!0}if(ve=="char"||ve=="codepoint")Jn();else if(ve=="column")Jn(!0);else if(ve=="word"||ve=="group")for(var pn=null,Lr=ve=="group",Sr=re.cm&&re.cm.getHelper(ce,"wordChars"),wi=!0;!(ye<0&&!Jn(!wi));wi=!1){var ki=Dt.text.charAt(ce.ch)||`
|
|
|
`,oo=vt(ki,Sr)?"w":Lr&&ki==`
|
|
|
`?"n":!Lr||/\s/.test(ki)?null:"p";if(Lr&&!wi&&!oo&&(oo="s"),pn&&pn!=oo){ye<0&&(ye=1,Jn(),ce.sticky="after");break}if(oo&&(pn=oo),ye>0&&!Jn(!wi))break}var Mo=Ro(re,ce,$e,bt,!0);return Jr($e,Mo)&&(Mo.hitSide=!0),Mo}function gh(re,ce,ye,ve){var Ce=re.doc,$e=ce.left,bt;if(ve=="page"){var Dt=Math.min(re.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Mt=Math.max(Dt-.5*yu(re.display),3);bt=(ye>0?ce.bottom:ce.top)+ye*Mt}else ve=="line"&&(bt=ye>0?ce.bottom+3:ce.top-3);for(var $t;$t=ju(re,$e,bt),!!$t.outside;){if(ye<0?bt<=0:bt>=Ce.height){$t.hitSide=!0;break}bt+=ye*5}return $t}var Bl=function(re){this.cm=re,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new pt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Bl.prototype.init=function(re){var ce=this,ye=this,ve=ye.cm,Ce=ye.div=re.lineDiv;Np(Ce,ve.options.spellcheck,ve.options.autocorrect,ve.options.autocapitalize);function $e(Dt){for(var Mt=Dt.target;Mt;Mt=Mt.parentNode){if(Mt==Ce)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Mt.className))break}return!1}An(Ce,"paste",function(Dt){!$e(Dt)||Xe(ve,Dt)||Tp(Dt,ve)||Me<=11&&setTimeout(ea(ve,function(){return ce.updateFromDOM()}),20)}),An(Ce,"compositionstart",function(Dt){ce.composing={data:Dt.data,done:!1}}),An(Ce,"compositionupdate",function(Dt){ce.composing||(ce.composing={data:Dt.data,done:!1})}),An(Ce,"compositionend",function(Dt){ce.composing&&(Dt.data!=ce.composing.data&&ce.readFromDOMSoon(),ce.composing.done=!0)}),An(Ce,"touchstart",function(){return ye.forceCompositionEnd()}),An(Ce,"input",function(){ce.composing||ce.readFromDOMSoon()});function bt(Dt){if(!(!$e(Dt)||Xe(ve,Dt))){if(ve.somethingSelected())af({lineWise:!1,text:ve.getSelections()}),Dt.type=="cut"&&ve.replaceSelection("",null,"cut");else if(ve.options.lineWiseCopyCut){var Mt=Pp(ve);af({lineWise:!0,text:Mt.text}),Dt.type=="cut"&&ve.operation(function(){ve.setSelections(Mt.ranges,0,Zt),ve.replaceSelection("",null,"cut")})}else return;if(Dt.clipboardData){Dt.clipboardData.clearData();var $t=jc.text.join(`
|
|
|
`);if(Dt.clipboardData.setData("Text",$t),Dt.clipboardData.getData("Text")==$t){Dt.preventDefault();return}}var Jn=Lp(),pn=Jn.firstChild;ve.display.lineSpace.insertBefore(Jn,ve.display.lineSpace.firstChild),pn.value=jc.text.join(`
|
|
|
`);var Lr=document.activeElement;Cn(pn),setTimeout(function(){ve.display.lineSpace.removeChild(Jn),Lr.focus(),Lr==Ce&&ye.showPrimarySelection()},50)}}An(Ce,"copy",bt),An(Ce,"cut",bt)},Bl.prototype.screenReaderLabelChanged=function(re){re?this.div.setAttribute("aria-label",re):this.div.removeAttribute("aria-label")},Bl.prototype.prepareSelection=function(){var re=ac(this.cm,!1);return re.focus=document.activeElement==this.div,re},Bl.prototype.showSelection=function(re,ce){!re||!this.cm.display.view.length||((re.focus||ce)&&this.showPrimarySelection(),this.showMultipleSelections(re))},Bl.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Bl.prototype.showPrimarySelection=function(){var re=this.getSelection(),ce=this.cm,ye=ce.doc.sel.primary(),ve=ye.from(),Ce=ye.to();if(ce.display.viewTo==ce.display.viewFrom||ve.line>=ce.display.viewTo||Ce.line<ce.display.viewFrom){re.removeAllRanges();return}var $e=If(ce,re.anchorNode,re.anchorOffset),bt=If(ce,re.focusNode,re.focusOffset);if(!($e&&!$e.bad&&bt&&!bt.bad&&Gi(Oi($e,bt),ve)==0&&Gi(Pa($e,bt),Ce)==0)){var Dt=ce.display.view,Mt=ve.line>=ce.display.viewFrom&&Vh(ce,ve)||{node:Dt[0].measure.map[2],offset:0},$t=Ce.line<ce.display.viewTo&&Vh(ce,Ce);if(!$t){var Jn=Dt[Dt.length-1].measure,pn=Jn.maps?Jn.maps[Jn.maps.length-1]:Jn.map;$t={node:pn[pn.length-1],offset:pn[pn.length-2]-pn[pn.length-3]}}if(!Mt||!$t){re.removeAllRanges();return}var Lr=re.rangeCount&&re.getRangeAt(0),Sr;try{Sr=Tt(Mt.node,Mt.offset,$t.offset,$t.node)}catch(wi){}Sr&&(!ie&&ce.state.focused?(re.collapse(Mt.node,Mt.offset),Sr.collapsed||(re.removeAllRanges(),re.addRange(Sr))):(re.removeAllRanges(),re.addRange(Sr)),Lr&&re.anchorNode==null?re.addRange(Lr):ie&&this.startGracePeriod()),this.rememberSelection()}},Bl.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)},Bl.prototype.showMultipleSelections=function(re){gt(this.cm.display.cursorDiv,re.cursors),gt(this.cm.display.selectionDiv,re.selection)},Bl.prototype.rememberSelection=function(){var re=this.getSelection();this.lastAnchorNode=re.anchorNode,this.lastAnchorOffset=re.anchorOffset,this.lastFocusNode=re.focusNode,this.lastFocusOffset=re.focusOffset},Bl.prototype.selectionInEditor=function(){var re=this.getSelection();if(!re.rangeCount)return!1;var ce=re.getRangeAt(0).commonAncestorContainer;return Ct(this.div,ce)},Bl.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Bl.prototype.blur=function(){this.div.blur()},Bl.prototype.getField=function(){return this.div},Bl.prototype.supportsTouch=function(){return!0},Bl.prototype.receivedFocus=function(){var re=this;this.selectionInEditor()?this.pollSelection():ro(this.cm,function(){return re.cm.curOp.selectionChanged=!0});function ce(){re.cm.state.focused&&(re.pollSelection(),re.polling.set(re.cm.options.pollInterval,ce))}this.polling.set(this.cm.options.pollInterval,ce)},Bl.prototype.selectionChanged=function(){var re=this.getSelection();return re.anchorNode!=this.lastAnchorNode||re.anchorOffset!=this.lastAnchorOffset||re.focusNode!=this.lastFocusNode||re.focusOffset!=this.lastFocusOffset},Bl.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var re=this.getSelection(),ce=this.cm;if(te&&et&&this.cm.display.gutterSpecs.length&&Ip(re.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ye=If(ce,re.anchorNode,re.anchorOffset),ve=If(ce,re.focusNode,re.focusOffset);ye&&ve&&ro(ce,function(){Pi(ce.doc,br(ye,ve),Zt),(ye.bad||ve.bad)&&(ce.curOp.selectionChanged=!0)})}}},Bl.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var re=this.cm,ce=re.display,ye=re.doc.sel.primary(),ve=ye.from(),Ce=ye.to();if(ve.ch==0&&ve.line>re.firstLine()&&(ve=wr(ve.line-1,Cr(re.doc,ve.line-1).length)),Ce.ch==Cr(re.doc,Ce.line).text.length&&Ce.line<re.lastLine()&&(Ce=wr(Ce.line+1,0)),ve.line<ce.viewFrom||Ce.line>ce.viewTo-1)return!1;var $e,bt,Dt;ve.line==ce.viewFrom||($e=Jl(re,ve.line))==0?(bt=Pn(ce.view[0].line),Dt=ce.view[0].node):(bt=Pn(ce.view[$e].line),Dt=ce.view[$e-1].node.nextSibling);var Mt=Jl(re,Ce.line),$t,Jn;if(Mt==ce.view.length-1?($t=ce.viewTo-1,Jn=ce.lineDiv.lastChild):($t=Pn(ce.view[Mt+1].line)-1,Jn=ce.view[Mt+1].node.previousSibling),!Dt)return!1;for(var pn=re.doc.splitLines(Wh(re,Dt,Jn,bt,$t)),Lr=Ri(re.doc,wr(bt,0),wr($t,Cr(re.doc,$t).text.length));pn.length>1&&Lr.length>1;)if(ht(pn)==ht(Lr))pn.pop(),Lr.pop(),$t--;else if(pn[0]==Lr[0])pn.shift(),Lr.shift(),bt++;else break;for(var Sr=0,wi=0,ki=pn[0],oo=Lr[0],Mo=Math.min(ki.length,oo.length);Sr<Mo&&ki.charCodeAt(Sr)==oo.charCodeAt(Sr);)++Sr;for(var Na=ht(pn),Jo=ht(Lr),Ra=Math.min(Na.length-(pn.length==1?Sr:0),Jo.length-(Lr.length==1?Sr:0));wi<Ra&&Na.charCodeAt(Na.length-wi-1)==Jo.charCodeAt(Jo.length-wi-1);)++wi;if(pn.length==1&&Lr.length==1&&bt==ve.line)for(;Sr&&Sr>ve.ch&&Na.charCodeAt(Na.length-wi-1)==Jo.charCodeAt(Jo.length-wi-1);)Sr--,wi++;pn[pn.length-1]=Na.slice(0,Na.length-wi).replace(/^\u200b+/,""),pn[0]=pn[0].slice(Sr).replace(/\u200b+$/,"");var Es=wr(bt,Sr),$o=wr($t,Lr.length?ht(Lr).length-wi:0);if(pn.length>1||pn[0]||Gi(Es,$o))return ma(re.doc,pn,Es,$o,"+input"),!0},Bl.prototype.ensurePolled=function(){this.forceCompositionEnd()},Bl.prototype.reset=function(){this.forceCompositionEnd()},Bl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Bl.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))},Bl.prototype.updateFromDOM=function(){var re=this;(this.cm.isReadOnly()||!this.pollContent())&&ro(this.cm,function(){return el(re.cm)})},Bl.prototype.setUneditable=function(re){re.contentEditable="false"},Bl.prototype.onKeyPress=function(re){re.charCode==0||this.composing||(re.preventDefault(),this.cm.isReadOnly()||ea(this.cm,zh)(this.cm,String.fromCharCode(re.charCode==null?re.keyCode:re.charCode),0))},Bl.prototype.readOnlyChanged=function(re){this.div.contentEditable=String(re!="nocursor")},Bl.prototype.onContextMenu=function(){},Bl.prototype.resetPosition=function(){},Bl.prototype.needsContentAttribute=!0;function Vh(re,ce){var ye=Al(re,ce.line);if(!ye||ye.hidden)return null;var ve=Cr(re.doc,ce.line),Ce=rc(ye,ve,ce.line),$e=sr(ve,re.doc.direction),bt="left";if($e){var Dt=yn($e,ce.ch);bt=Dt%2?"right":"left"}var Mt=$u(Ce.map,ce.ch,bt);return Mt.offset=Mt.collapse=="right"?Mt.end:Mt.start,Mt}function Ip(re){for(var ce=re;ce;ce=ce.parentNode)if(/CodeMirror-gutter-wrapper/.test(ce.className))return!0;return!1}function Ph(re,ce){return ce&&(re.bad=!0),re}function Wh(re,ce,ye,ve,Ce){var $e="",bt=!1,Dt=re.doc.lineSeparator(),Mt=!1;function $t(Sr){return function(wi){return wi.id==Sr}}function Jn(){bt&&($e+=Dt,Mt&&($e+=Dt),bt=Mt=!1)}function pn(Sr){Sr&&(Jn(),$e+=Sr)}function Lr(Sr){if(Sr.nodeType==1){var wi=Sr.getAttribute("cm-text");if(wi){pn(wi);return}var ki=Sr.getAttribute("cm-marker"),oo;if(ki){var Mo=re.findMarks(wr(ve,0),wr(Ce+1,0),$t(+ki));Mo.length&&(oo=Mo[0].find(0))&&pn(Ri(re.doc,oo.from,oo.to).join(Dt));return}if(Sr.getAttribute("contenteditable")=="false")return;var Na=/^(pre|div|p|li|table|br)$/i.test(Sr.nodeName);if(!/^br$/i.test(Sr.nodeName)&&Sr.textContent.length==0)return;Na&&Jn();for(var Jo=0;Jo<Sr.childNodes.length;Jo++)Lr(Sr.childNodes[Jo]);/^(pre|p)$/i.test(Sr.nodeName)&&(Mt=!0),Na&&(bt=!0)}else Sr.nodeType==3&&pn(Sr.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Lr(ce),ce!=ye;)ce=ce.nextSibling,Mt=!1;return $e}function If(re,ce,ye){var ve;if(ce==re.display.lineDiv){if(ve=re.display.lineDiv.childNodes[ye],!ve)return Ph(re.clipPos(wr(re.display.viewTo-1)),!0);ce=null,ye=0}else for(ve=ce;;ve=ve.parentNode){if(!ve||ve==re.display.lineDiv)return null;if(ve.parentNode&&ve.parentNode==re.display.lineDiv)break}for(var Ce=0;Ce<re.display.view.length;Ce++){var $e=re.display.view[Ce];if($e.node==ve)return og($e,ce,ye)}}function og(re,ce,ye){var ve=re.text.firstChild,Ce=!1;if(!ce||!Ct(ve,ce))return Ph(wr(Pn(re.line),0),!0);if(ce==ve&&(Ce=!0,ce=ve.childNodes[ye],ye=0,!ce)){var $e=re.rest?ht(re.rest):re.line;return Ph(wr(Pn($e),$e.text.length),Ce)}var bt=ce.nodeType==3?ce:null,Dt=ce;for(!bt&&ce.childNodes.length==1&&ce.firstChild.nodeType==3&&(bt=ce.firstChild,ye&&(ye=bt.nodeValue.length));Dt.parentNode!=ve;)Dt=Dt.parentNode;var Mt=re.measure,$t=Mt.maps;function Jn(oo,Mo,Na){for(var Jo=-1;Jo<($t?$t.length:0);Jo++)for(var Ra=Jo<0?Mt.map:$t[Jo],Es=0;Es<Ra.length;Es+=3){var $o=Ra[Es+2];if($o==oo||$o==Mo){var Ys=Pn(Jo<0?re.line:re.rest[Jo]),ou=Ra[Es]+Na;return(Na<0||$o!=oo)&&(ou=Ra[Es+(Na?1:0)]),wr(Ys,ou)}}}var pn=Jn(bt,Dt,ye);if(pn)return Ph(pn,Ce);for(var Lr=Dt.nextSibling,Sr=bt?bt.nodeValue.length-ye:0;Lr;Lr=Lr.nextSibling){if(pn=Jn(Lr,Lr.firstChild,0),pn)return Ph(wr(pn.line,pn.ch-Sr),Ce);Sr+=Lr.textContent.length}for(var wi=Dt.previousSibling,ki=ye;wi;wi=wi.previousSibling){if(pn=Jn(wi,wi.firstChild,-1),pn)return Ph(wr(pn.line,pn.ch+ki),Ce);ki+=wi.textContent.length}}var Ku=function(re){this.cm=re,this.prevInput="",this.pollingFast=!1,this.polling=new pt,this.hasSelection=!1,this.composing=null};Ku.prototype.init=function(re){var ce=this,ye=this,ve=this.cm;this.createField(re);var Ce=this.textarea;re.wrapper.insertBefore(this.wrapper,re.wrapper.firstChild),Ge&&(Ce.style.width="0px"),An(Ce,"input",function(){tt&&Me>=9&&ce.hasSelection&&(ce.hasSelection=null),ye.poll()}),An(Ce,"paste",function(bt){Xe(ve,bt)||Tp(bt,ve)||(ve.state.pasteIncoming=+new Date,ye.fastPoll())});function $e(bt){if(!Xe(ve,bt)){if(ve.somethingSelected())af({lineWise:!1,text:ve.getSelections()});else if(ve.options.lineWiseCopyCut){var Dt=Pp(ve);af({lineWise:!0,text:Dt.text}),bt.type=="cut"?ve.setSelections(Dt.ranges,null,Zt):(ye.prevInput="",Ce.value=Dt.text.join(`
|
|
|
`),Cn(Ce))}else return;bt.type=="cut"&&(ve.state.cutIncoming=+new Date)}}An(Ce,"cut",$e),An(Ce,"copy",$e),An(re.scroller,"paste",function(bt){if(!(Is(re,bt)||Xe(ve,bt))){if(!Ce.dispatchEvent){ve.state.pasteIncoming=+new Date,ye.focus();return}var Dt=new Event("paste");Dt.clipboardData=bt.clipboardData,Ce.dispatchEvent(Dt)}}),An(re.lineSpace,"selectstart",function(bt){Is(re,bt)||to(bt)}),An(Ce,"compositionstart",function(){var bt=ve.getCursor("from");ye.composing&&ye.composing.range.clear(),ye.composing={start:bt,range:ve.markText(bt,ve.getCursor("to"),{className:"CodeMirror-composing"})}}),An(Ce,"compositionend",function(){ye.composing&&(ye.poll(),ye.composing.range.clear(),ye.composing=null)})},Ku.prototype.createField=function(re){this.wrapper=Lp(),this.textarea=this.wrapper.firstChild},Ku.prototype.screenReaderLabelChanged=function(re){re?this.textarea.setAttribute("aria-label",re):this.textarea.removeAttribute("aria-label")},Ku.prototype.prepareSelection=function(){var re=this.cm,ce=re.display,ye=re.doc,ve=ac(re);if(re.options.moveInputWithCursor){var Ce=hl(re,ye.sel.primary().head,"div"),$e=ce.wrapper.getBoundingClientRect(),bt=ce.lineDiv.getBoundingClientRect();ve.teTop=Math.max(0,Math.min(ce.wrapper.clientHeight-10,Ce.top+bt.top-$e.top)),ve.teLeft=Math.max(0,Math.min(ce.wrapper.clientWidth-10,Ce.left+bt.left-$e.left))}return ve},Ku.prototype.showSelection=function(re){var ce=this.cm,ye=ce.display;gt(ye.cursorDiv,re.cursors),gt(ye.selectionDiv,re.selection),re.teTop!=null&&(this.wrapper.style.top=re.teTop+"px",this.wrapper.style.left=re.teLeft+"px")},Ku.prototype.reset=function(re){if(!(this.contextMenuPending||this.composing)){var ce=this.cm;if(ce.somethingSelected()){this.prevInput="";var ye=ce.getSelection();this.textarea.value=ye,ce.state.focused&&Cn(this.textarea),tt&&Me>=9&&(this.hasSelection=ye)}else re||(this.prevInput=this.textarea.value="",tt&&Me>=9&&(this.hasSelection=null))}},Ku.prototype.getField=function(){return this.textarea},Ku.prototype.supportsTouch=function(){return!1},Ku.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ee||Vt()!=this.textarea))try{this.textarea.focus()}catch(re){}},Ku.prototype.blur=function(){this.textarea.blur()},Ku.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ku.prototype.receivedFocus=function(){this.slowPoll()},Ku.prototype.slowPoll=function(){var re=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){re.poll(),re.cm.state.focused&&re.slowPoll()})},Ku.prototype.fastPoll=function(){var re=!1,ce=this;ce.pollingFast=!0;function ye(){var ve=ce.poll();!ve&&!re?(re=!0,ce.polling.set(60,ye)):(ce.pollingFast=!1,ce.slowPoll())}ce.polling.set(20,ye)},Ku.prototype.poll=function(){var re=this,ce=this.cm,ye=this.textarea,ve=this.prevInput;if(this.contextMenuPending||!ce.state.focused||We(ye)&&!ve&&!this.composing||ce.isReadOnly()||ce.options.disableInput||ce.state.keySeq)return!1;var Ce=ye.value;if(Ce==ve&&!ce.somethingSelected())return!1;if(tt&&Me>=9&&this.hasSelection===Ce||de&&/[\uf700-\uf7ff]/.test(Ce))return ce.display.input.reset(),!1;if(ce.doc.sel==ce.display.selForContextMenu){var $e=Ce.charCodeAt(0);if($e==8203&&!ve&&(ve="\u200B"),$e==8666)return this.reset(),this.cm.execCommand("undo")}for(var bt=0,Dt=Math.min(ve.length,Ce.length);bt<Dt&&ve.charCodeAt(bt)==Ce.charCodeAt(bt);)++bt;return ro(ce,function(){zh(ce,Ce.slice(bt),ve.length-bt,null,re.composing?"*compose":null),Ce.length>1e3||Ce.indexOf(`
|
|
|
`)>-1?ye.value=re.prevInput="":re.prevInput=Ce,re.composing&&(re.composing.range.clear(),re.composing.range=ce.markText(re.composing.start,ce.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ku.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ku.prototype.onKeyPress=function(){tt&&Me>=9&&(this.hasSelection=null),this.fastPoll()},Ku.prototype.onContextMenu=function(re){var ce=this,ye=ce.cm,ve=ye.display,Ce=ce.textarea;ce.contextMenuPending&&ce.contextMenuPending();var $e=Ql(ye,re),bt=ve.scroller.scrollTop;if(!$e||lt)return;var Dt=ye.options.resetSelectionOnContextMenu;Dt&&ye.doc.sel.contains($e)==-1&&ea(ye,Pi)(ye.doc,br($e),Zt);var Mt=Ce.style.cssText,$t=ce.wrapper.style.cssText,Jn=ce.wrapper.offsetParent.getBoundingClientRect();ce.wrapper.style.cssText="position: static",Ce.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(re.clientY-Jn.top-5)+"px; left: "+(re.clientX-Jn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(tt?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var pn;_e&&(pn=window.scrollY),ve.input.focus(),_e&&window.scrollTo(null,pn),ve.input.reset(),ye.somethingSelected()||(Ce.value=ce.prevInput=" "),ce.contextMenuPending=Sr,ve.selForContextMenu=ye.doc.sel,clearTimeout(ve.detectingSelectAll);function Lr(){if(Ce.selectionStart!=null){var ki=ye.somethingSelected(),oo="\u200B"+(ki?Ce.value:"");Ce.value="\u21DA",Ce.value=oo,ce.prevInput=ki?"":"\u200B",Ce.selectionStart=1,Ce.selectionEnd=oo.length,ve.selForContextMenu=ye.doc.sel}}function Sr(){if(ce.contextMenuPending==Sr&&(ce.contextMenuPending=!1,ce.wrapper.style.cssText=$t,Ce.style.cssText=Mt,tt&&Me<9&&ve.scrollbars.setScrollTop(ve.scroller.scrollTop=bt),Ce.selectionStart!=null)){(!tt||tt&&Me<9)&&Lr();var ki=0,oo=function(){ve.selForContextMenu==ye.doc.sel&&Ce.selectionStart==0&&Ce.selectionEnd>0&&ce.prevInput=="\u200B"?ea(ye,Wo)(ye):ki++<10?ve.detectingSelectAll=setTimeout(oo,500):(ve.selForContextMenu=null,ve.input.reset())};ve.detectingSelectAll=setTimeout(oo,200)}}if(tt&&Me>=9&&Lr(),be){hi(re);var wi=function(){ri(window,"mouseup",wi),setTimeout(Sr,20)};An(window,"mouseup",wi)}else setTimeout(Sr,50)},Ku.prototype.readOnlyChanged=function(re){re||this.reset(),this.textarea.disabled=re=="nocursor",this.textarea.readOnly=!!re},Ku.prototype.setUneditable=function(){},Ku.prototype.needsContentAttribute=!1;function ag(re,ce){if(ce=ce?Nn(ce):{},ce.value=re.value,!ce.tabindex&&re.tabIndex&&(ce.tabindex=re.tabIndex),!ce.placeholder&&re.placeholder&&(ce.placeholder=re.placeholder),ce.autofocus==null){var ye=Vt();ce.autofocus=ye==re||re.getAttribute("autofocus")!=null&&ye==document.body}function ve(){re.value=Dt.getValue()}var Ce;if(re.form&&(An(re.form,"submit",ve),!ce.leaveSubmitMethodAlone)){var $e=re.form;Ce=$e.submit;try{var bt=$e.submit=function(){ve(),$e.submit=Ce,$e.submit(),$e.submit=bt}}catch(Mt){}}ce.finishInit=function(Mt){Mt.save=ve,Mt.getTextArea=function(){return re},Mt.toTextArea=function(){Mt.toTextArea=isNaN,ve(),re.parentNode.removeChild(Mt.getWrapperElement()),re.style.display="",re.form&&(ri(re.form,"submit",ve),!ce.leaveSubmitMethodAlone&&typeof re.form.submit=="function"&&(re.form.submit=Ce))}},re.style.display="none";var Dt=bl(function(Mt){return re.parentNode.insertBefore(Mt,re.nextSibling)},ce);return Dt}function Nh(re){re.off=ri,re.on=An,re.wheelEventPixels=Yt,re.Doc=io,re.splitLines=ir,re.countColumn=wt,re.findColumn=nr,re.isWordChar=it,re.Pass=Bn,re.signal=bn,re.Line=zi,re.changeEnd=Wr,re.scrollbarModel=Br,re.Pos=wr,re.cmpPos=Gi,re.modes=Or,re.mimeModes=jr,re.resolveMode=Vn,re.getMode=Wn,re.modeExtensions=vn,re.extendMode=tr,re.copyState=mi,re.startState=ti,re.innerMode=gi,re.commands=md,re.keyMap=Ol,re.keyName=ql,re.isModifierKey=rl,re.lookupKey=ia,re.normalizeKeyMap=Aa,re.StringStream=Hn,re.SharedTextMarker=Ja,re.TextMarker=xn,re.LineWidget=da,re.e_preventDefault=to,re.e_stopPropagation=Ki,re.e_stop=hi,re.addClass=Rt,re.contains=Ct,re.rmClass=at,re.keyNames=Ts}rg(bl),Ah(bl);var eh="iter insert remove copy getEditor constructor".split(" ");for(var Kh in io.prototype)io.prototype.hasOwnProperty(Kh)&&Ie(eh,Kh)<0&&(bl.prototype[Kh]=function(re){return function(){return re.apply(this.doc,arguments)}}(io.prototype[Kh]));return Sn(io),bl.inputStyles={textarea:Ku,contenteditable:Bl},bl.defineMode=function(re){!bl.defaults.mode&&re!="null"&&(bl.defaults.mode=re),si.apply(this,arguments)},bl.defineMIME=Fi,bl.defineMode("null",function(){return{token:function(re){return re.skipToEnd()}}}),bl.defineMIME("text/plain","null"),bl.defineExtension=function(re,ce){bl.prototype[re]=ce},bl.defineDocExtension=function(re,ce){io.prototype[re]=ce},bl.fromTextArea=ag,Nh(bl),bl.version="5.58.2",bl})},49047:function(Ke,we,ae){(function(ie){ie(ae(4631),ae(29589),ae(52539))})(function(ie){"use strict";ie.defineMode("markdown",function(Pe,Fe){var Oe=ie.getMode(Pe,"text/html"),tt=Oe.name=="null";function Me(wt){if(ie.findModeByName){var pt=ie.findModeByName(wt);pt&&(wt=pt.mime||pt.mimes[0])}var Ie=ie.getMode(Pe,wt);return Ie.name=="null"?null:Ie}Fe.highlightFormatting===void 0&&(Fe.highlightFormatting=!1),Fe.maxBlockquoteDepth===void 0&&(Fe.maxBlockquoteDepth=0),Fe.taskLists===void 0&&(Fe.taskLists=!1),Fe.strikethrough===void 0&&(Fe.strikethrough=!1),Fe.emoji===void 0&&(Fe.emoji=!1),Fe.fencedCodeBlockHighlighting===void 0&&(Fe.fencedCodeBlockHighlighting=!0),Fe.fencedCodeBlockDefaultMode===void 0&&(Fe.fencedCodeBlockDefaultMode="text/plain"),Fe.xml===void 0&&(Fe.xml=!0),Fe.tokenTypeOverrides===void 0&&(Fe.tokenTypeOverrides={});var _e={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 ut in _e)_e.hasOwnProperty(ut)&&Fe.tokenTypeOverrides[ut]&&(_e[ut]=Fe.tokenTypeOverrides[ut]);var et=/^([*\-_])(?:\s*\1){2,}\s*$/,lt=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Et=/^\[(x| )\](?=\s)/i,rt=Fe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,_t=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ge=/^[^#!\[\]*_\\<>` "'(~:]+/,te=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ee=/^\s*\[[^\]]+?\]:.*$/,de=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,le=" ";function pe(wt,pt,Ie){return pt.f=pt.inline=Ie,Ie(wt,pt)}function me(wt,pt,Ie){return pt.f=pt.block=Ie,Ie(wt,pt)}function xe(wt){return!wt||!/\S/.test(wt.string)}function be(wt){if(wt.linkTitle=!1,wt.linkHref=!1,wt.linkText=!1,wt.em=!1,wt.strong=!1,wt.strikethrough=!1,wt.quote=0,wt.indentedCode=!1,wt.f==at){var pt=tt;if(!pt){var Ie=ie.innerMode(Oe,wt.htmlState);pt=Ie.mode.name=="xml"&&Ie.state.tagStart===null&&!Ie.state.context&&Ie.state.tokenize.isInText}pt&&(wt.f=Nt,wt.block=Be,wt.htmlState=null)}return wt.trailingSpace=0,wt.trailingSpaceNewLine=!1,wt.prevLine=wt.thisLine,wt.thisLine={stream:null},null}function Be(wt,pt){var Ie=wt.column()===pt.indentation,on=xe(pt.prevLine.stream),Bn=pt.indentedCode,Zt=pt.prevLine.hr,zn=pt.list!==!1,_n=(pt.listStack[pt.listStack.length-1]||0)+3;pt.indentedCode=!1;var nr=pt.indentation;if(pt.indentationDiff===null&&(pt.indentationDiff=pt.indentation,zn)){for(pt.list=null;nr<pt.listStack[pt.listStack.length-1];)pt.listStack.pop(),pt.listStack.length?pt.indentation=pt.listStack[pt.listStack.length-1]:pt.list=!1;pt.list!==!1&&(pt.indentationDiff=nr-pt.listStack[pt.listStack.length-1])}var Ft=!on&&!Zt&&!pt.prevLine.header&&(!zn||!Bn)&&!pt.prevLine.fencedCodeEnd,Wt=(pt.list===!1||Zt||on)&&pt.indentation<=_n&&wt.match(et),ht=null;if(pt.indentationDiff>=4&&(Bn||pt.prevLine.fencedCodeEnd||pt.prevLine.header||on))return wt.skipToEnd(),pt.indentedCode=!0,_e.code;if(wt.eatSpace())return null;if(Ie&&pt.indentation<=_n&&(ht=wt.match(rt))&&ht[1].length<=6)return pt.quote=0,pt.header=ht[1].length,pt.thisLine.header=!0,Fe.highlightFormatting&&(pt.formatting="header"),pt.f=pt.inline,gt(pt);if(pt.indentation<=_n&&wt.eat(">"))return pt.quote=Ie?1:pt.quote+1,Fe.highlightFormatting&&(pt.formatting="quote"),wt.eatSpace(),gt(pt);if(!Wt&&!pt.setext&&Ie&&pt.indentation<=_n&&(ht=wt.match(lt))){var tn=ht[1]?"ol":"ul";return pt.indentation=nr+wt.current().length,pt.list=!0,pt.quote=0,pt.listStack.push(pt.indentation),pt.em=!1,pt.strong=!1,pt.code=!1,pt.strikethrough=!1,Fe.taskLists&&wt.match(Et,!1)&&(pt.taskList=!0),pt.f=pt.inline,Fe.highlightFormatting&&(pt.formatting=["list","list-"+tn]),gt(pt)}else{if(Ie&&pt.indentation<=_n&&(ht=wt.match(te,!0)))return pt.quote=0,pt.fencedEndRE=new RegExp(ht[1]+"+ *$"),pt.localMode=Fe.fencedCodeBlockHighlighting&&Me(ht[2]||Fe.fencedCodeBlockDefaultMode),pt.localMode&&(pt.localState=ie.startState(pt.localMode)),pt.f=pt.block=dt,Fe.highlightFormatting&&(pt.formatting="code-block"),pt.code=-1,gt(pt);if(pt.setext||(!Ft||!zn)&&!pt.quote&&pt.list===!1&&!pt.code&&!Wt&&!ee.test(wt.string)&&(ht=wt.lookAhead(1))&&(ht=ht.match(_t)))return pt.setext?(pt.header=pt.setext,pt.setext=0,wt.skipToEnd(),Fe.highlightFormatting&&(pt.formatting="header")):(pt.header=ht[0].charAt(0)=="="?1:2,pt.setext=pt.header),pt.thisLine.header=!0,pt.f=pt.inline,gt(pt);if(Wt)return wt.skipToEnd(),pt.hr=!0,pt.thisLine.hr=!0,_e.hr;if(wt.peek()==="[")return pe(wt,pt,nn)}return pe(wt,pt,pt.inline)}function at(wt,pt){var Ie=Oe.token(wt,pt.htmlState);if(!tt){var on=ie.innerMode(Oe,pt.htmlState);(on.mode.name=="xml"&&on.state.tagStart===null&&!on.state.context&&on.state.tokenize.isInText||pt.md_inside&&wt.current().indexOf(">")>-1)&&(pt.f=Nt,pt.block=Be,pt.htmlState=null)}return Ie}function dt(wt,pt){var Ie=pt.listStack[pt.listStack.length-1]||0,on=pt.indentation<Ie,Bn=Ie+3;if(pt.fencedEndRE&&pt.indentation<=Bn&&(on||wt.match(pt.fencedEndRE))){Fe.highlightFormatting&&(pt.formatting="code-block");var Zt;return on||(Zt=gt(pt)),pt.localMode=pt.localState=null,pt.block=Be,pt.f=Nt,pt.fencedEndRE=null,pt.code=0,pt.thisLine.fencedCodeEnd=!0,on?me(wt,pt,pt.block):Zt}else return pt.localMode?pt.localMode.token(wt,pt.localState):(wt.skipToEnd(),_e.code)}function gt(wt){var pt=[];if(wt.formatting){pt.push(_e.formatting),typeof wt.formatting=="string"&&(wt.formatting=[wt.formatting]);for(var Ie=0;Ie<wt.formatting.length;Ie++)pt.push(_e.formatting+"-"+wt.formatting[Ie]),wt.formatting[Ie]==="header"&&pt.push(_e.formatting+"-"+wt.formatting[Ie]+"-"+wt.header),wt.formatting[Ie]==="quote"&&(!Fe.maxBlockquoteDepth||Fe.maxBlockquoteDepth>=wt.quote?pt.push(_e.formatting+"-"+wt.formatting[Ie]+"-"+wt.quote):pt.push("error"))}if(wt.taskOpen)return pt.push("meta"),pt.length?pt.join(" "):null;if(wt.taskClosed)return pt.push("property"),pt.length?pt.join(" "):null;if(wt.linkHref?pt.push(_e.linkHref,"url"):(wt.strong&&pt.push(_e.strong),wt.em&&pt.push(_e.em),wt.strikethrough&&pt.push(_e.strikethrough),wt.emoji&&pt.push(_e.emoji),wt.linkText&&pt.push(_e.linkText),wt.code&&pt.push(_e.code),wt.image&&pt.push(_e.image),wt.imageAltText&&pt.push(_e.imageAltText,"link"),wt.imageMarker&&pt.push(_e.imageMarker)),wt.header&&pt.push(_e.header,_e.header+"-"+wt.header),wt.quote&&(pt.push(_e.quote),!Fe.maxBlockquoteDepth||Fe.maxBlockquoteDepth>=wt.quote?pt.push(_e.quote+"-"+wt.quote):pt.push(_e.quote+"-"+Fe.maxBlockquoteDepth)),wt.list!==!1){var on=(wt.listStack.length-1)%3;on?on===1?pt.push(_e.list2):pt.push(_e.list3):pt.push(_e.list1)}return wt.trailingSpaceNewLine?pt.push("trailing-space-new-line"):wt.trailingSpace&&pt.push("trailing-space-"+(wt.trailingSpace%2?"a":"b")),pt.length?pt.join(" "):null}function ft(wt,pt){if(wt.match(Ge,!0))return gt(pt)}function Nt(wt,pt){var Ie=pt.text(wt,pt);if(typeof Ie!="undefined")return Ie;if(pt.list)return pt.list=null,gt(pt);if(pt.taskList){var on=wt.match(Et,!0)[1]===" ";return on?pt.taskOpen=!0:pt.taskClosed=!0,Fe.highlightFormatting&&(pt.formatting="task"),pt.taskList=!1,gt(pt)}if(pt.taskOpen=!1,pt.taskClosed=!1,pt.header&&wt.match(/^#+$/,!0))return Fe.highlightFormatting&&(pt.formatting="header"),gt(pt);var Bn=wt.next();if(pt.linkTitle){pt.linkTitle=!1;var Zt=Bn;Bn==="("&&(Zt=")"),Zt=(Zt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var zn="^\\s*(?:[^"+Zt+"\\\\]+|\\\\\\\\|\\\\.)"+Zt;if(wt.match(new RegExp(zn),!0))return _e.linkHref}if(Bn==="`"){var _n=pt.formatting;Fe.highlightFormatting&&(pt.formatting="code"),wt.eatWhile("`");var nr=wt.current().length;if(pt.code==0&&(!pt.quote||nr==1))return pt.code=nr,gt(pt);if(nr==pt.code){var Ft=gt(pt);return pt.code=0,Ft}else return pt.formatting=_n,gt(pt)}else if(pt.code)return gt(pt);if(Bn==="\\"&&(wt.next(),Fe.highlightFormatting)){var Wt=gt(pt),ht=_e.formatting+"-escape";return Wt?Wt+" "+ht:ht}if(Bn==="!"&&wt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return pt.imageMarker=!0,pt.image=!0,Fe.highlightFormatting&&(pt.formatting="image"),gt(pt);if(Bn==="["&&pt.imageMarker&&wt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return pt.imageMarker=!1,pt.imageAltText=!0,Fe.highlightFormatting&&(pt.formatting="image"),gt(pt);if(Bn==="]"&&pt.imageAltText){Fe.highlightFormatting&&(pt.formatting="image");var Wt=gt(pt);return pt.imageAltText=!1,pt.image=!1,pt.inline=pt.f=Ct,Wt}if(Bn==="["&&!pt.image)return pt.linkText&&wt.match(/^.*?\]/)||(pt.linkText=!0,Fe.highlightFormatting&&(pt.formatting="link")),gt(pt);if(Bn==="]"&&pt.linkText){Fe.highlightFormatting&&(pt.formatting="link");var Wt=gt(pt);return pt.linkText=!1,pt.inline=pt.f=wt.match(/\(.*?\)| ?\[.*?\]/,!1)?Ct:Nt,Wt}if(Bn==="<"&&wt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){pt.f=pt.inline=Tt,Fe.highlightFormatting&&(pt.formatting="link");var Wt=gt(pt);return Wt?Wt+=" ":Wt="",Wt+_e.linkInline}if(Bn==="<"&&wt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){pt.f=pt.inline=Tt,Fe.highlightFormatting&&(pt.formatting="link");var Wt=gt(pt);return Wt?Wt+=" ":Wt="",Wt+_e.linkEmail}if(Fe.xml&&Bn==="<"&&wt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var tn=wt.string.indexOf(">",wt.pos);if(tn!=-1){var an=wt.string.substring(wt.start,tn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(an)&&(pt.md_inside=!0)}return wt.backUp(1),pt.htmlState=ie.startState(Oe),me(wt,pt,at)}if(Fe.xml&&Bn==="<"&&wt.match(/^\/\w*?>/))return pt.md_inside=!1,"tag";if(Bn==="*"||Bn==="_"){for(var ct=1,Ue=wt.pos==1?" ":wt.string.charAt(wt.pos-2);ct<3&&wt.eat(Bn);)ct++;var He=wt.peek()||" ",it=!/\s/.test(He)&&(!de.test(He)||/\s/.test(Ue)||de.test(Ue)),vt=!/\s/.test(Ue)&&(!de.test(Ue)||/\s/.test(He)||de.test(He)),Ye=null,It=null;if(ct%2&&(!pt.em&&it&&(Bn==="*"||!vt||de.test(Ue))?Ye=!0:pt.em==Bn&&vt&&(Bn==="*"||!it||de.test(He))&&(Ye=!1)),ct>1&&(!pt.strong&&it&&(Bn==="*"||!vt||de.test(Ue))?It=!0:pt.strong==Bn&&vt&&(Bn==="*"||!it||de.test(He))&&(It=!1)),It!=null||Ye!=null){Fe.highlightFormatting&&(pt.formatting=Ye==null?"strong":It==null?"em":"strong em"),Ye===!0&&(pt.em=Bn),It===!0&&(pt.strong=Bn);var Ft=gt(pt);return Ye===!1&&(pt.em=!1),It===!1&&(pt.strong=!1),Ft}}else if(Bn===" "&&(wt.eat("*")||wt.eat("_"))){if(wt.peek()===" ")return gt(pt);wt.backUp(1)}if(Fe.strikethrough){if(Bn==="~"&&wt.eatWhile(Bn)){if(pt.strikethrough){Fe.highlightFormatting&&(pt.formatting="strikethrough");var Ft=gt(pt);return pt.strikethrough=!1,Ft}else if(wt.match(/^[^\s]/,!1))return pt.strikethrough=!0,Fe.highlightFormatting&&(pt.formatting="strikethrough"),gt(pt)}else if(Bn===" "&&wt.match(/^~~/,!0)){if(wt.peek()===" ")return gt(pt);wt.backUp(2)}}if(Fe.emoji&&Bn===":"&&wt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){pt.emoji=!0,Fe.highlightFormatting&&(pt.formatting="emoji");var In=gt(pt);return pt.emoji=!1,In}return Bn===" "&&(wt.match(/^ +$/,!1)?pt.trailingSpace++:pt.trailingSpace&&(pt.trailingSpaceNewLine=!0)),gt(pt)}function Tt(wt,pt){var Ie=wt.next();if(Ie===">"){pt.f=pt.inline=Nt,Fe.highlightFormatting&&(pt.formatting="link");var on=gt(pt);return on?on+=" ":on="",on+_e.linkInline}return wt.match(/^[^>]+/,!0),_e.linkInline}function Ct(wt,pt){if(wt.eatSpace())return null;var Ie=wt.next();return Ie==="("||Ie==="["?(pt.f=pt.inline=Rt(Ie==="("?")":"]"),Fe.highlightFormatting&&(pt.formatting="link-string"),pt.linkHref=!0,gt(pt)):"error"}var Vt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Rt(wt){return function(pt,Ie){var on=pt.next();if(on===wt){Ie.f=Ie.inline=Nt,Fe.highlightFormatting&&(Ie.formatting="link-string");var Bn=gt(Ie);return Ie.linkHref=!1,Bn}return pt.match(Vt[wt]),Ie.linkHref=!0,gt(Ie)}}function nn(wt,pt){return wt.match(/^([^\]\\]|\\.)*\]:/,!1)?(pt.f=Cn,wt.next(),Fe.highlightFormatting&&(pt.formatting="link"),pt.linkText=!0,gt(pt)):pe(wt,pt,Nt)}function Cn(wt,pt){if(wt.match(/^\]:/,!0)){pt.f=pt.inline=un,Fe.highlightFormatting&&(pt.formatting="link");var Ie=gt(pt);return pt.linkText=!1,Ie}return wt.match(/^([^\]\\]|\\.)+/,!0),_e.linkText}function un(wt,pt){return wt.eatSpace()?null:(wt.match(/^[^\s]+/,!0),wt.peek()===void 0?pt.linkTitle=!0:wt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),pt.f=pt.inline=Nt,_e.linkHref+" url")}var Nn={startState:function(){return{f:Be,prevLine:{stream:null},thisLine:{stream:null},block:Be,htmlState:null,indentation:0,inline:Nt,text:ft,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(wt){return{f:wt.f,prevLine:wt.prevLine,thisLine:wt.thisLine,block:wt.block,htmlState:wt.htmlState&&ie.copyState(Oe,wt.htmlState),indentation:wt.indentation,localMode:wt.localMode,localState:wt.localMode?ie.copyState(wt.localMode,wt.localState):null,inline:wt.inline,text:wt.text,formatting:!1,linkText:wt.linkText,linkTitle:wt.linkTitle,linkHref:wt.linkHref,code:wt.code,em:wt.em,strong:wt.strong,strikethrough:wt.strikethrough,emoji:wt.emoji,header:wt.header,setext:wt.setext,hr:wt.hr,taskList:wt.taskList,list:wt.list,listStack:wt.listStack.slice(0),quote:wt.quote,indentedCode:wt.indentedCode,trailingSpace:wt.trailingSpace,trailingSpaceNewLine:wt.trailingSpaceNewLine,md_inside:wt.md_inside,fencedEndRE:wt.fencedEndRE}},token:function(wt,pt){if(pt.formatting=!1,wt!=pt.thisLine.stream){if(pt.header=0,pt.hr=!1,wt.match(/^\s*$/,!0))return be(pt),null;if(pt.prevLine=pt.thisLine,pt.thisLine={stream:wt},pt.taskList=!1,pt.trailingSpace=0,pt.trailingSpaceNewLine=!1,!pt.localState&&(pt.f=pt.block,pt.f!=at)){var Ie=wt.match(/^\s*/,!0)[0].replace(/\t/g,le).length;if(pt.indentation=Ie,pt.indentationDiff=null,Ie>0)return null}}return pt.f(wt,pt)},innerMode:function(wt){return wt.block==at?{state:wt.htmlState,mode:Oe}:wt.localState?{state:wt.localState,mode:wt.localMode}:{state:wt,mode:Nn}},indent:function(wt,pt,Ie){return wt.block==at&&Oe.indent?Oe.indent(wt.htmlState,pt,Ie):wt.localState&&wt.localMode.indent?wt.localMode.indent(wt.localState,pt,Ie):ie.Pass},blankLine:be,getType:gt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Nn},"xml"),ie.defineMIME("text/markdown","markdown"),ie.defineMIME("text/x-markdown","markdown")})},52539:function(Ke,we,ae){(function(ie){ie(ae(4631))})(function(ie){"use strict";ie.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<ie.modeInfo.length;Pe++){var Fe=ie.modeInfo[Pe];Fe.mimes&&(Fe.mime=Fe.mimes[0])}ie.findModeByMIME=function(Oe){Oe=Oe.toLowerCase();for(var tt=0;tt<ie.modeInfo.length;tt++){var Me=ie.modeInfo[tt];if(Me.mime==Oe)return Me;if(Me.mimes){for(var _e=0;_e<Me.mimes.length;_e++)if(Me.mimes[_e]==Oe)return Me}}if(/\+xml$/.test(Oe))return ie.findModeByMIME("application/xml");if(/\+json$/.test(Oe))return ie.findModeByMIME("application/json")},ie.findModeByExtension=function(Oe){Oe=Oe.toLowerCase();for(var tt=0;tt<ie.modeInfo.length;tt++){var Me=ie.modeInfo[tt];if(Me.ext){for(var _e=0;_e<Me.ext.length;_e++)if(Me.ext[_e]==Oe)return Me}}},ie.findModeByFileName=function(Oe){for(var tt=0;tt<ie.modeInfo.length;tt++){var Me=ie.modeInfo[tt];if(Me.file&&Me.file.test(Oe))return Me}var _e=Oe.lastIndexOf("."),ut=_e>-1&&Oe.substring(_e+1,Oe.length);if(ut)return ie.findModeByExtension(ut)},ie.findModeByName=function(Oe){Oe=Oe.toLowerCase();for(var tt=0;tt<ie.modeInfo.length;tt++){var Me=ie.modeInfo[tt];if(Me.name.toLowerCase()==Oe)return Me;if(Me.alias){for(var _e=0;_e<Me.alias.length;_e++)if(Me.alias[_e].toLowerCase()==Oe)return Me}}}})},80785:function(Ke,we,ae){(function(ie){ie(ae(4631))})(function(ie){"use strict";ie.defineMode("stex",function(Pe,Fe){"use strict";function Oe(Ge,te){Ge.cmdState.push(te)}function tt(Ge){return Ge.cmdState.length>0?Ge.cmdState[Ge.cmdState.length-1]:null}function Me(Ge){var te=Ge.cmdState.pop();te&&te.closeBracket()}function _e(Ge){for(var te=Ge.cmdState,ee=te.length-1;ee>=0;ee--){var de=te[ee];if(de.name!="DEFAULT")return de}return{styleIdentifier:function(){return null}}}function ut(Ge,te,ee){return function(){this.name=Ge,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 et={};et.importmodule=ut("importmodule","tag",["string","builtin"]),et.documentclass=ut("documentclass","tag",["","atom"]),et.usepackage=ut("usepackage","tag",["atom"]),et.begin=ut("begin","tag",["atom"]),et.end=ut("end","tag",["atom"]),et.label=ut("label","tag",["atom"]),et.ref=ut("ref","tag",["atom"]),et.eqref=ut("eqref","tag",["atom"]),et.cite=ut("cite","tag",["atom"]),et.bibitem=ut("bibitem","tag",["atom"]),et.Bibitem=ut("Bibitem","tag",["atom"]),et.RBibitem=ut("RBibitem","tag",["atom"]),et.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function lt(Ge,te){Ge.f=te}function Et(Ge,te){var ee;if(Ge.match(/^\\[a-zA-Z@]+/)){var de=Ge.current().slice(1);return ee=et.hasOwnProperty(de)?et[de]:et.DEFAULT,ee=new ee,Oe(te,ee),lt(te,_t),ee.style}if(Ge.match(/^\\[$&%#{}_]/)||Ge.match(/^\\[,;!\/\\]/))return"tag";if(Ge.match("\\["))return lt(te,function(pe,me){return rt(pe,me,"\\]")}),"keyword";if(Ge.match("\\("))return lt(te,function(pe,me){return rt(pe,me,"\\)")}),"keyword";if(Ge.match("$$"))return lt(te,function(pe,me){return rt(pe,me,"$$")}),"keyword";if(Ge.match("$"))return lt(te,function(pe,me){return rt(pe,me,"$")}),"keyword";var le=Ge.next();if(le=="%")return Ge.skipToEnd(),"comment";if(le=="}"||le=="]"){if(ee=tt(te),ee)ee.closeBracket(le),lt(te,_t);else return"error";return"bracket"}else return le=="{"||le=="["?(ee=et.DEFAULT,ee=new ee,Oe(te,ee),"bracket"):/\d/.test(le)?(Ge.eatWhile(/[\w.%]/),"atom"):(Ge.eatWhile(/[\w\-_]/),ee=_e(te),ee.name=="begin"&&(ee.argument=Ge.current()),ee.styleIdentifier())}function rt(Ge,te,ee){if(Ge.eatSpace())return null;if(ee&&Ge.match(ee))return lt(te,Et),"keyword";if(Ge.match(/^\\[a-zA-Z@]+/))return"tag";if(Ge.match(/^[a-zA-Z]+/))return"variable-2";if(Ge.match(/^\\[$&%#{}_]/)||Ge.match(/^\\[,;!\/]/)||Ge.match(/^[\^_&]/))return"tag";if(Ge.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ge.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var de=Ge.next();return de=="{"||de=="}"||de=="["||de=="]"||de=="("||de==")"?"bracket":de=="%"?(Ge.skipToEnd(),"comment"):"error"}function _t(Ge,te){var ee=Ge.peek(),de;return ee=="{"||ee=="["?(de=tt(te),de.openBracket(ee),Ge.eat(ee),lt(te,Et),"bracket"):/[ \t\r]/.test(ee)?(Ge.eat(ee),null):(lt(te,Et),Me(te),Et(Ge,te))}return{startState:function(){var Ge=Fe.inMathMode?function(te,ee){return rt(te,ee)}:Et;return{cmdState:[],f:Ge}},copyState:function(Ge){return{cmdState:Ge.cmdState.slice(),f:Ge.f}},token:function(Ge,te){return te.f(Ge,te)},blankLine:function(Ge){Ge.f=Et,Ge.cmdState.length=0},lineComment:"%"}}),ie.defineMIME("text/x-stex","stex"),ie.defineMIME("text/x-latex","stex")})},29589:function(Ke,we,ae){(function(ie){ie(ae(4631))})(function(ie){"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},Fe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ie.defineMode("xml",function(Oe,tt){var Me=Oe.indentUnit,_e={},ut=tt.htmlMode?Pe:Fe;for(var et in ut)_e[et]=ut[et];for(var et in tt)_e[et]=tt[et];var lt,Et;function rt(Tt,Ct){function Vt(Cn){return Ct.tokenize=Cn,Cn(Tt,Ct)}var Rt=Tt.next();if(Rt=="<")return Tt.eat("!")?Tt.eat("[")?Tt.match("CDATA[")?Vt(te("atom","]]>")):null:Tt.match("--")?Vt(te("comment","-->")):Tt.match("DOCTYPE",!0,!0)?(Tt.eatWhile(/[\w\._\-]/),Vt(ee(1))):null:Tt.eat("?")?(Tt.eatWhile(/[\w\._\-]/),Ct.tokenize=te("meta","?>"),"meta"):(lt=Tt.eat("/")?"closeTag":"openTag",Ct.tokenize=_t,"tag bracket");if(Rt=="&"){var nn;return Tt.eat("#")?Tt.eat("x")?nn=Tt.eatWhile(/[a-fA-F\d]/)&&Tt.eat(";"):nn=Tt.eatWhile(/[\d]/)&&Tt.eat(";"):nn=Tt.eatWhile(/[\w\.\-:]/)&&Tt.eat(";"),nn?"atom":"error"}else return Tt.eatWhile(/[^&<]/),null}rt.isInText=!0;function _t(Tt,Ct){var Vt=Tt.next();if(Vt==">"||Vt=="/"&&Tt.eat(">"))return Ct.tokenize=rt,lt=Vt==">"?"endTag":"selfcloseTag","tag bracket";if(Vt=="=")return lt="equals",null;if(Vt=="<"){Ct.tokenize=rt,Ct.state=me,Ct.tagName=Ct.tagStart=null;var Rt=Ct.tokenize(Tt,Ct);return Rt?Rt+" tag error":"tag error"}else return/[\'\"]/.test(Vt)?(Ct.tokenize=Ge(Vt),Ct.stringStartCol=Tt.column(),Ct.tokenize(Tt,Ct)):(Tt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ge(Tt){var Ct=function(Vt,Rt){for(;!Vt.eol();)if(Vt.next()==Tt){Rt.tokenize=_t;break}return"string"};return Ct.isInAttribute=!0,Ct}function te(Tt,Ct){return function(Vt,Rt){for(;!Vt.eol();){if(Vt.match(Ct)){Rt.tokenize=rt;break}Vt.next()}return Tt}}function ee(Tt){return function(Ct,Vt){for(var Rt;(Rt=Ct.next())!=null;){if(Rt=="<")return Vt.tokenize=ee(Tt+1),Vt.tokenize(Ct,Vt);if(Rt==">")if(Tt==1){Vt.tokenize=rt;break}else return Vt.tokenize=ee(Tt-1),Vt.tokenize(Ct,Vt)}return"meta"}}function de(Tt,Ct,Vt){this.prev=Tt.context,this.tagName=Ct,this.indent=Tt.indented,this.startOfLine=Vt,(_e.doNotIndent.hasOwnProperty(Ct)||Tt.context&&Tt.context.noIndent)&&(this.noIndent=!0)}function le(Tt){Tt.context&&(Tt.context=Tt.context.prev)}function pe(Tt,Ct){for(var Vt;;){if(!Tt.context||(Vt=Tt.context.tagName,!_e.contextGrabbers.hasOwnProperty(Vt)||!_e.contextGrabbers[Vt].hasOwnProperty(Ct)))return;le(Tt)}}function me(Tt,Ct,Vt){return Tt=="openTag"?(Vt.tagStart=Ct.column(),xe):Tt=="closeTag"?be:me}function xe(Tt,Ct,Vt){return Tt=="word"?(Vt.tagName=Ct.current(),Et="tag",dt):_e.allowMissingTagName&&Tt=="endTag"?(Et="tag bracket",dt(Tt,Ct,Vt)):(Et="error",xe)}function be(Tt,Ct,Vt){if(Tt=="word"){var Rt=Ct.current();return Vt.context&&Vt.context.tagName!=Rt&&_e.implicitlyClosed.hasOwnProperty(Vt.context.tagName)&&le(Vt),Vt.context&&Vt.context.tagName==Rt||_e.matchClosing===!1?(Et="tag",Be):(Et="tag error",at)}else return _e.allowMissingTagName&&Tt=="endTag"?(Et="tag bracket",Be(Tt,Ct,Vt)):(Et="error",at)}function Be(Tt,Ct,Vt){return Tt!="endTag"?(Et="error",Be):(le(Vt),me)}function at(Tt,Ct,Vt){return Et="error",Be(Tt,Ct,Vt)}function dt(Tt,Ct,Vt){if(Tt=="word")return Et="attribute",gt;if(Tt=="endTag"||Tt=="selfcloseTag"){var Rt=Vt.tagName,nn=Vt.tagStart;return Vt.tagName=Vt.tagStart=null,Tt=="selfcloseTag"||_e.autoSelfClosers.hasOwnProperty(Rt)?pe(Vt,Rt):(pe(Vt,Rt),Vt.context=new de(Vt,Rt,nn==Vt.indented)),me}return Et="error",dt}function gt(Tt,Ct,Vt){return Tt=="equals"?ft:(_e.allowMissing||(Et="error"),dt(Tt,Ct,Vt))}function ft(Tt,Ct,Vt){return Tt=="string"?Nt:Tt=="word"&&_e.allowUnquoted?(Et="string",dt):(Et="error",dt(Tt,Ct,Vt))}function Nt(Tt,Ct,Vt){return Tt=="string"?Nt:dt(Tt,Ct,Vt)}return{startState:function(Tt){var Ct={tokenize:rt,state:me,indented:Tt||0,tagName:null,tagStart:null,context:null};return Tt!=null&&(Ct.baseIndent=Tt),Ct},token:function(Tt,Ct){if(!Ct.tagName&&Tt.sol()&&(Ct.indented=Tt.indentation()),Tt.eatSpace())return null;lt=null;var Vt=Ct.tokenize(Tt,Ct);return(Vt||lt)&&Vt!="comment"&&(Et=null,Ct.state=Ct.state(lt||Vt,Tt,Ct),Et&&(Vt=Et=="error"?Vt+" error":Et)),Vt},indent:function(Tt,Ct,Vt){var Rt=Tt.context;if(Tt.tokenize.isInAttribute)return Tt.tagStart==Tt.indented?Tt.stringStartCol+1:Tt.indented+Me;if(Rt&&Rt.noIndent)return ie.Pass;if(Tt.tokenize!=_t&&Tt.tokenize!=rt)return Vt?Vt.match(/^(\s*)/)[0].length:0;if(Tt.tagName)return _e.multilineTagIndentPastTag!==!1?Tt.tagStart+Tt.tagName.length+2:Tt.tagStart+Me*(_e.multilineTagIndentFactor||1);if(_e.alignCDATA&&/<!\[CDATA\[/.test(Ct))return 0;var nn=Ct&&/^<(\/)?([\w_:\.-]*)/.exec(Ct);if(nn&&nn[1])for(;Rt;)if(Rt.tagName==nn[2]){Rt=Rt.prev;break}else if(_e.implicitlyClosed.hasOwnProperty(Rt.tagName))Rt=Rt.prev;else break;else if(nn)for(;Rt;){var Cn=_e.contextGrabbers[Rt.tagName];if(Cn&&Cn.hasOwnProperty(nn[2]))Rt=Rt.prev;else break}for(;Rt&&Rt.prev&&!Rt.startOfLine;)Rt=Rt.prev;return Rt?Rt.indent+Me:Tt.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:_e.htmlMode?"html":"xml",helperType:_e.htmlMode?"html":"xml",skipAttribute:function(Tt){Tt.state==ft&&(Tt.state=dt)},xmlCurrentTag:function(Tt){return Tt.tagName?{name:Tt.tagName,close:Tt.type=="closeTag"}:null},xmlCurrentContext:function(Tt){for(var Ct=[],Vt=Tt.context;Vt;Vt=Vt.prev)Vt.tagName&&Ct.push(Vt.tagName);return Ct.reverse()}}}),ie.defineMIME("text/xml","xml"),ie.defineMIME("application/xml","xml"),ie.mimeModes.hasOwnProperty("text/html")||ie.defineMIME("text/html",{name:"xml",htmlMode:!0})})},17187:function(Ke){"use strict";var we=typeof Reflect=="object"?Reflect:null,ae=we&&typeof we.apply=="function"?we.apply:function(me,xe,be){return Function.prototype.apply.call(me,xe,be)},ie;we&&typeof we.ownKeys=="function"?ie=we.ownKeys:Object.getOwnPropertySymbols?ie=function(me){return Object.getOwnPropertyNames(me).concat(Object.getOwnPropertySymbols(me))}:ie=function(me){return Object.getOwnPropertyNames(me)};function Pe(pe){console&&console.warn&&console.warn(pe)}var Fe=Number.isNaN||function(me){return me!==me};function Oe(){Oe.init.call(this)}Ke.exports=Oe,Ke.exports.once=ee,Oe.EventEmitter=Oe,Oe.prototype._events=void 0,Oe.prototype._eventsCount=0,Oe.prototype._maxListeners=void 0;var tt=10;function Me(pe){if(typeof pe!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof pe)}Object.defineProperty(Oe,"defaultMaxListeners",{enumerable:!0,get:function(){return tt},set:function(pe){if(typeof pe!="number"||pe<0||Fe(pe))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+pe+".");tt=pe}}),Oe.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},Oe.prototype.setMaxListeners=function(me){if(typeof me!="number"||me<0||Fe(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 _e(pe){return pe._maxListeners===void 0?Oe.defaultMaxListeners:pe._maxListeners}Oe.prototype.getMaxListeners=function(){return _e(this)},Oe.prototype.emit=function(me){for(var xe=[],be=1;be<arguments.length;be++)xe.push(arguments[be]);var Be=me==="error",at=this._events;if(at!==void 0)Be=Be&&at.error===void 0;else if(!Be)return!1;if(Be){var dt;if(xe.length>0&&(dt=xe[0]),dt instanceof Error)throw dt;var gt=new Error("Unhandled error."+(dt?" ("+dt.message+")":""));throw gt.context=dt,gt}var ft=at[me];if(ft===void 0)return!1;if(typeof ft=="function")ae(ft,this,xe);else for(var Nt=ft.length,Tt=_t(ft,Nt),be=0;be<Nt;++be)ae(Tt[be],this,xe);return!0};function ut(pe,me,xe,be){var Be,at,dt;if(Me(xe),at=pe._events,at===void 0?(at=pe._events=Object.create(null),pe._eventsCount=0):(at.newListener!==void 0&&(pe.emit("newListener",me,xe.listener?xe.listener:xe),at=pe._events),dt=at[me]),dt===void 0)dt=at[me]=xe,++pe._eventsCount;else if(typeof dt=="function"?dt=at[me]=be?[xe,dt]:[dt,xe]:be?dt.unshift(xe):dt.push(xe),Be=_e(pe),Be>0&&dt.length>Be&&!dt.warned){dt.warned=!0;var gt=new Error("Possible EventEmitter memory leak detected. "+dt.length+" "+String(me)+" listeners added. Use emitter.setMaxListeners() to increase limit");gt.name="MaxListenersExceededWarning",gt.emitter=pe,gt.type=me,gt.count=dt.length,Pe(gt)}return pe}Oe.prototype.addListener=function(me,xe){return ut(this,me,xe,!1)},Oe.prototype.on=Oe.prototype.addListener,Oe.prototype.prependListener=function(me,xe){return ut(this,me,xe,!0)};function et(){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 lt(pe,me,xe){var be={fired:!1,wrapFn:void 0,target:pe,type:me,listener:xe},Be=et.bind(be);return Be.listener=xe,be.wrapFn=Be,Be}Oe.prototype.once=function(me,xe){return Me(xe),this.on(me,lt(this,me,xe)),this},Oe.prototype.prependOnceListener=function(me,xe){return Me(xe),this.prependListener(me,lt(this,me,xe)),this},Oe.prototype.removeListener=function(me,xe){var be,Be,at,dt,gt;if(Me(xe),Be=this._events,Be===void 0)return this;if(be=Be[me],be===void 0)return this;if(be===xe||be.listener===xe)--this._eventsCount===0?this._events=Object.create(null):(delete Be[me],Be.removeListener&&this.emit("removeListener",me,be.listener||xe));else if(typeof be!="function"){for(at=-1,dt=be.length-1;dt>=0;dt--)if(be[dt]===xe||be[dt].listener===xe){gt=be[dt].listener,at=dt;break}if(at<0)return this;at===0?be.shift():Ge(be,at),be.length===1&&(Be[me]=be[0]),Be.removeListener!==void 0&&this.emit("removeListener",me,gt||xe)}return this},Oe.prototype.off=Oe.prototype.removeListener,Oe.prototype.removeAllListeners=function(me){var xe,be,Be;if(be=this._events,be===void 0)return this;if(be.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):be[me]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete be[me]),this;if(arguments.length===0){var at=Object.keys(be),dt;for(Be=0;Be<at.length;++Be)dt=at[Be],dt!=="removeListener"&&this.removeAllListeners(dt);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(xe=be[me],typeof xe=="function")this.removeListener(me,xe);else if(xe!==void 0)for(Be=xe.length-1;Be>=0;Be--)this.removeListener(me,xe[Be]);return this};function Et(pe,me,xe){var be=pe._events;if(be===void 0)return[];var Be=be[me];return Be===void 0?[]:typeof Be=="function"?xe?[Be.listener||Be]:[Be]:xe?te(Be):_t(Be,Be.length)}Oe.prototype.listeners=function(me){return Et(this,me,!0)},Oe.prototype.rawListeners=function(me){return Et(this,me,!1)},Oe.listenerCount=function(pe,me){return typeof pe.listenerCount=="function"?pe.listenerCount(me):rt.call(pe,me)},Oe.prototype.listenerCount=rt;function rt(pe){var me=this._events;if(me!==void 0){var xe=me[pe];if(typeof xe=="function")return 1;if(xe!==void 0)return xe.length}return 0}Oe.prototype.eventNames=function(){return this._eventsCount>0?ie(this._events):[]};function _t(pe,me){for(var xe=new Array(me),be=0;be<me;++be)xe[be]=pe[be];return xe}function Ge(pe,me){for(;me+1<pe.length;me++)pe[me]=pe[me+1];pe.pop()}function te(pe){for(var me=new Array(pe.length),xe=0;xe<me.length;++xe)me[xe]=pe[xe].listener||pe[xe];return me}function ee(pe,me){return new Promise(function(xe,be){function Be(dt){pe.removeListener(me,at),be(dt)}function at(){typeof pe.removeListener=="function"&&pe.removeListener("error",Be),xe([].slice.call(arguments))}le(pe,me,at,{once:!0}),me!=="error"&&de(pe,Be,{once:!0})})}function de(pe,me,xe){typeof pe.on=="function"&&le(pe,"error",me,xe)}function le(pe,me,xe,be){if(typeof pe.on=="function")be.once?pe.once(me,xe):pe.on(me,xe);else if(typeof pe.addEventListener=="function")pe.addEventListener(me,function Be(at){be.once&&pe.removeEventListener(me,Be),xe(at)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof pe)}},94470:function(Ke){"use strict";var we=Object.prototype.hasOwnProperty,ae=Object.prototype.toString,ie=Object.defineProperty,Pe=Object.getOwnPropertyDescriptor,Fe=function(ut){return typeof Array.isArray=="function"?Array.isArray(ut):ae.call(ut)==="[object Array]"},Oe=function(ut){if(!ut||ae.call(ut)!=="[object Object]")return!1;var et=we.call(ut,"constructor"),lt=ut.constructor&&ut.constructor.prototype&&we.call(ut.constructor.prototype,"isPrototypeOf");if(ut.constructor&&!et&&!lt)return!1;var Et;for(Et in ut);return typeof Et=="undefined"||we.call(ut,Et)},tt=function(ut,et){ie&&et.name==="__proto__"?ie(ut,et.name,{enumerable:!0,configurable:!0,value:et.newValue,writable:!0}):ut[et.name]=et.newValue},Me=function(ut,et){if(et==="__proto__")if(we.call(ut,et)){if(Pe)return Pe(ut,et).value}else return;return ut[et]};Ke.exports=function _e(){var ut,et,lt,Et,rt,_t,Ge=arguments[0],te=1,ee=arguments.length,de=!1;for(typeof Ge=="boolean"&&(de=Ge,Ge=arguments[1]||{},te=2),(Ge==null||typeof Ge!="object"&&typeof Ge!="function")&&(Ge={});te<ee;++te)if(ut=arguments[te],ut!=null)for(et in ut)lt=Me(Ge,et),Et=Me(ut,et),Ge!==Et&&(de&&Et&&(Oe(Et)||(rt=Fe(Et)))?(rt?(rt=!1,_t=lt&&Fe(lt)?lt:[]):_t=lt&&Oe(lt)?lt:{},tt(Ge,{name:et,newValue:_e(de,_t,Et)})):typeof Et!="undefined"&&tt(Ge,{name:et,newValue:Et}));return Ge}},23495:function(Ke,we,ae){"use strict";ae.d(we,{$u:function(){return et},BD:function(){return ct},E9:function(){return ut},FF:function(){return ao},FJ:function(){return me},Hn:function(){return pe},KX:function(){return be},NB:function(){return Rn},S0:function(){return ht},UL:function(){return lt},Vk:function(){return le},Vm:function(){return yn},YI:function(){return tn},ZA:function(){return Fe},Zt:function(){return Et},al:function(){return Ye},bn:function(){return vt},bx:function(){return Ue},g2:function(){return an},h1:function(){return ft},hD:function(){return Sn},l4:function(){return Me},rU:function(){return er},s_:function(){return He},uz:function(){return dr},z6:function(){return rt}}),Ke=ae.hmd(Ke),function(){var We;function rr(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function ur(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:rr(a)}}function hr(a){for(var y,E=[];!(y=a.next()).done;)E.push(y.value);return E}var Or=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},jr;if(typeof Object.setPrototypeOf=="function")jr=Object.setPrototypeOf;else{var si;e:{var Fi={a:!0},Vn={};try{Vn.__proto__=Fi,si=Vn.a;break e}catch(a){}si=!1}jr=si?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var Wn=jr;function vn(a,y){if(a.prototype=Or(y.prototype),a.prototype.constructor=a,Wn)Wn(a,y);else for(var E in y)if(E!="prototype")if(Object.defineProperties){var b=Object.getOwnPropertyDescriptor(y,E);b&&Object.defineProperty(a,E,b)}else a[E]=y[E];a.QA=y.prototype}var tr=typeof ae.g!="undefined"&&ae.g!=null?ae.g:self,mi=typeof Object.assign=="function"?Object.assign:function(a,y){for(var E=1;E<arguments.length;E++){var b=arguments[E];if(b)for(var x in b)Object.prototype.hasOwnProperty.call(b,x)&&(a[x]=b[x])}return a},gi=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,E){a!=Array.prototype&&a!=Object.prototype&&(a[y]=E.value)};function ti(a,y){if(y){var E=tr;a=a.split(".");for(var b=0;b<a.length-1;b++){var x=a[b];x in E||(E[x]={}),E=E[x]}a=a[a.length-1],b=E[a],y=y(b),y!=b&&y!=null&&gi(E,a,{writable:!0,value:y})}}ti("Object.assign",function(a){return a||mi}),ti("Array.prototype.fill",function(a){return a||function(y,E,b){var x=this.length||0;for(0>E&&(E=Math.max(0,x+E)),(b==null||b>x)&&(b=x),b=Number(b),0>b&&(b=Math.max(0,x+b)),E=Number(E||0);E<b;E++)this[E]=y;return this}});var Hn=typeof globalThis=="object"&&globalThis||typeof ae.g=="object"&&ae.g.global===ae.g&&ae.g||typeof self=="object"&&self.self===self&&self||{};Hn.requestAnimationFrame===void 0&&(Hn.setImmediate===void 0?Hn.requestAnimationFrame=function(a){Hn.setTimeout(a,0)}:Hn.requestAnimationFrame=Hn.setImmediate);function Cr(){}function Ri(a,y){var E=-1;return function(){var b=this,x=arguments;E!==-1&&Hn.clearTimeout(E),E=_i(function(){E=-1,a.apply(b,x)},y)}}function _i(a,y){return Hn.setTimeout(a,y)}function Ur(a){return Hn.document.createElement(a)}function Pn(a){throw Error(a)}function xi(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),Pn(a)}function ji(a,y,E,b){E=E===null?"*":typeof E=="string"?E:typeof E=="function"&&typeof E.className=="string"?E.className:"",b!==void 0&&(E+="."+b),Pn(E+" is not in the range "+y+": "+a)}function Xo(a){Hn.console&&Hn.console.log(a)}function wr(a){return typeof a=="object"&&a!==null}function Gi(a){return Array.isArray(a)||Hn.NodeList&&a instanceof Hn.NodeList||Hn.HTMLCollection&&a instanceof Hn.HTMLCollection}function Jr(a){return Array.prototype.slice.call(a)}function ls(a,y,E){Array.isArray(a)?y>=a.length?a.push(E):a.splice(y,0,E):Pn("Cannot insert an object into an HTMLCollection or NodeList: "+E+" at "+y)}function Pa(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Pn("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function Oi(){var a=es.pop();return a===void 0?[]:a}function Yi(a){a.length=0,es.push(a)}function uo(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(wr(a)&&a.constructor)return uo(a.constructor);return typeof a}function ba(a){var y=a;return wr(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 Go(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var E=a.CA;if(E&&E[y])return!0;a=Object.getPrototypeOf(a)}return!1}function zr(a,y,E){Object.defineProperty(ms.prototype,a,{get:y,set:E})}function vo(a){for(var y=[],E=0;256>E;E++)y["0123456789abcdef".charAt(E>>4)+"0123456789abcdef".charAt(E&15)]=String.fromCharCode(E);a.length%2&&(a="0"+a),E=[];for(var b=0,x=0;x<a.length;x+=2)E[b++]=y[a.substr(x,2)];for(a=E.join(""),a=a===""?"0":a,y=[],E=0;256>E;E++)y[E]=E;for(E=b=0;256>E;E++)b=(b+y[E]+119)%256,x=y[E],y[E]=y[b],y[b]=x;b=E=0;for(var z="",ne=0;ne<a.length;ne++)E=(E+1)%256,b=(b+y[E])%256,x=y[E],y[E]=y[b],y[b]=x,z+=String.fromCharCode(a.charCodeAt(ne)^y[(y[E]+y[b])%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 sl=Hn.navigator!==void 0&&0<Hn.navigator.userAgent.indexOf("Trident/7"),gs=Hn.navigator!==void 0&&Hn.navigator.platform!==void 0&&Hn.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,es=[];Object.freeze([]),Cr.className="Util",Cr.Dx="32ab5ff3b26f42dc0ed90f21472913b5",Cr.adym="gojs.net",Cr.vfo="28e645fdb266",Cr.className="Util";function Mn(a,y,E){At(this),this.j=a,this.xa=y,this.o=E}Mn.prototype.toString=function(){return"EnumValue."+this.xa};function Co(a,y){return y==null||y===""?null:a[y]}tr.Object.defineProperties(Mn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),Mn.className="EnumValue";function Ta(){this.ew=[]}Ta.prototype.toString=function(){return this.ew.join("")},Ta.prototype.add=function(a){a!==""&&this.ew.push(a)},Ta.className="StringBuilder";function lo(){}lo.className="PropertyCollection";var oa={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Hn.console&&Hn.console.log(a)},HA:function(a,y,E,b){a.strokeStyle="red",a.fillStyle="red",a.font="8px sans-serif",a.beginPath(),a.moveTo(-10,0),a.lineTo(10,0),a.moveTo(0,-10),a.lineTo(0,10),a.stroke(),a.setTransform(1,0,0,1,0,0),a.scale(E,E),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(b.left,b.top+20),a.lineTo(b.left,b.top),a.lineTo(b.left+20,b.top),a.moveTo(b.right,b.bottom-20),a.lineTo(b.right,b.bottom),a.lineTo(b.right-20,b.bottom),a.stroke(),a.fillText("DB: "+Math.round(b.x)+", "+Math.round(b.y)+", "+Math.round(b.width)+", "+Math.round(b.height),b.left,b.top-5)},DA:function(a){var y={},E;for(E in a){if(y.x=E,y.x!=="licenseKey"){var b=a[y.x];if(b.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(b.prototype);for(var x={Tj:0};x.Tj<y.Zl.length;x={Tj:x.Tj},x.Tj++){var z=Object.getOwnPropertyDescriptor(b.prototype,y.Zl[x.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(b.prototype,y.Zl[x.Tj],{set:function(ne,oe){return function(){throw Error("Property "+ne.Zl[oe.Tj]+" of "+ne.x+" is read-only.")}}(y,x)})}}}y={Zl:y.Zl,x:y.x}}}};function fa(){}fa.prototype.reset=function(){},fa.prototype.next=function(){return!1},fa.prototype.Ad=function(){return!1},fa.prototype.first=function(){return null},fa.prototype.any=function(){return!1},fa.prototype.all=function(){return!0},fa.prototype.each=function(){return this},fa.prototype.map=function(){return this},fa.prototype.filter=function(){return this},fa.prototype.de=function(){},fa.prototype.toString=function(){return"EmptyIterator"},tr.Object.defineProperties(fa.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),fa.prototype.first=fa.prototype.first,fa.prototype.hasNext=fa.prototype.Ad,fa.prototype.next=fa.prototype.next,fa.prototype.reset=fa.prototype.reset;var Ka=null;fa.className="EmptyIterator",Ka=new fa;function qo(a){this.key=-1,this.value=a}qo.prototype.reset=function(){this.key=-1},qo.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},qo.prototype.Ad=function(){return this.next()},qo.prototype.first=function(){return this.key=0,this.value},qo.prototype.any=function(a){return this.key=-1,a(this.value)},qo.prototype.all=function(a){return this.key=-1,a(this.value)},qo.prototype.each=function(a){return this.key=-1,a(this.value),this},qo.prototype.map=function(a){return new qo(a(this.value))},qo.prototype.filter=function(a){return a(this.value)?new qo(this.value):Ka},qo.prototype.de=function(){this.value=null},qo.prototype.toString=function(){return"SingletonIterator("+this.value+")"},tr.Object.defineProperties(qo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),qo.prototype.first=qo.prototype.first,qo.prototype.hasNext=qo.prototype.Ad,qo.prototype.next=qo.prototype.next,qo.prototype.reset=qo.prototype.reset,qo.className="SingletonIterator";function aa(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}aa.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},aa.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;a=a.s;var y=a.length,E=++this.Za,b=this.qf;if(b!==null)for(;E<y;){var x=a[E];if(b(x))return this.key=this.Za=E,this.value=x,!0;E++}else{if(E<y)return this.key=E,this.value=a[E],!0;this.de()}return!1},aa.prototype.Ad=function(){return this.next()},aa.prototype.first=function(){var a=this.Bb;this.qa=a.Ja,this.Za=0,a=a.s;var y=a.length,E=this.qf;if(E!==null){for(var b=0;b<y;){var x=a[b];if(E(x))return this.key=this.Za=b,this.value=x;b++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},aa.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var E=y.length,b=this.qf,x=0;x<E;x++){var z=y[x];if((b===null||b(z))&&a(z))return!0}return!1},aa.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var E=y.length,b=this.qf,x=0;x<E;x++){var z=y[x];if((b===null||b(z))&&!a(z))return!1}return!0},aa.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var E=y.length,b=this.qf,x=0;x<E;x++){var z=y[x];(b===null||b(z))&&a(z)}return this},aa.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var E=[];y=y.s;for(var b=y.length,x=this.qf,z=0;z<b;z++){var ne=y[z];(x===null||x(ne))&&E.push(a(ne))}return a=new Ar,a.s=E,a.xb(),a.iterator},aa.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var E=[];y=y.s;for(var b=y.length,x=this.qf,z=0;z<b;z++){var ne=y[z];(x===null||x(ne))&&a(ne)&&E.push(ne)}return a=new Ar,a.s=E,a.xb(),a.iterator},aa.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},aa.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},tr.Object.defineProperties(aa.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(a){this.qf=a}},count:{get:function(){var a=this.qf;if(a!==null){for(var y=0,E=this.Bb.s,b=E.length,x=0;x<b;x++)a(E[x])&&y++;return y}return this.Bb.s.length}}}),aa.prototype.first=aa.prototype.first,aa.prototype.hasNext=aa.prototype.Ad,aa.prototype.next=aa.prototype.next,aa.prototype.reset=aa.prototype.reset,aa.className="ListIterator";function za(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}za.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},za.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)},za.prototype.Ad=function(){return this.next()},za.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},za.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)if(a(y[E]))return!0;return!1},za.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)if(!a(y[E]))return!1;return!0},za.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)a(y[E]);return this},za.prototype.map=function(a){var y=this.Bb;y.Hg=null;var E=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--)E.push(a(y[b]));return a=new Ar,a.s=E,a.xb(),a.iterator},za.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var E=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--){var x=y[b];a(x)&&E.push(x)}return a=new Ar,a.s=E,a.xb(),a.iterator},za.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},za.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},tr.Object.defineProperties(za.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),za.prototype.first=za.prototype.first,za.prototype.hasNext=za.prototype.Ad,za.prototype.next=za.prototype.next,za.prototype.reset=za.prototype.reset,za.className="ListIteratorBackwards";function Ar(a){At(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Pn("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}We=Ar.prototype,We.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},We.freeze=function(){return this._isFrozen=!0,this},We.ka=function(){return this._isFrozen=!1,this},We.toString=function(){return"List()#"+Qt(this)},We.add=function(a){return a===null?this:(this._isFrozen&&xi(this,a),this.s.push(a),this.xb(),this)},We.push=function(a){this.add(a)},We.addAll=function(a){if(a===null)return this;this._isFrozen&&xi(this);var y=this.s;if(Gi(a))for(var E=a.length,b=0;b<E;b++)y.push(a[b]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},We.clear=function(){this._isFrozen&&xi(this),this.s.length=0,this.xb()},We.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},We.has=function(a){return this.contains(a)},We.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},We.M=function(a){var y=this.s;return(0>a||a>=y.length)&&ji(a,"0 <= i < length",Ar,"elt:i"),y[a]},We.get=function(a){return this.M(a)},We.cd=function(a,y){var E=this.s;(0>a||a>=E.length)&&ji(a,"0 <= i < length",Ar,"setElt:i"),this._isFrozen&&xi(this,a),E[a]=y},We.set=function(a,y){this.cd(a,y)},We.first=function(){var a=this.s;return a.length===0?null:a[0]},We.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},We.pop=function(){this._isFrozen&&xi(this);var a=this.s;return 0<a.length?a.pop():null},Ar.prototype.any=function(a){for(var y=this.s,E=y.length,b=0;b<E;b++)if(a(y[b]))return!0;return!1},Ar.prototype.all=function(a){for(var y=this.s,E=y.length,b=0;b<E;b++)if(!a(y[b]))return!1;return!0},Ar.prototype.each=function(a){for(var y=this.s,E=y.length,b=0;b<E;b++)a(y[b]);return this},Ar.prototype.map=function(a){for(var y=new Ar,E=[],b=this.s,x=b.length,z=0;z<x;z++)E.push(a(b[z]));return y.s=E,y.xb(),y},Ar.prototype.filter=function(a){for(var y=new Ar,E=[],b=this.s,x=b.length,z=0;z<x;z++){var ne=b[z];a(ne)&&E.push(ne)}return y.s=E,y.xb(),y},We=Ar.prototype,We.Gb=function(a,y){0>a&&ji(a,">= 0",Ar,"insertAt:i"),this._isFrozen&&xi(this,a);var E=this.s;a>=E.length?E.push(y):E.splice(a,0,y),this.xb()},We.remove=function(a){if(a===null)return!1;this._isFrozen&&xi(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)},We.delete=function(a){return this.remove(a)},We.mb=function(a){var y=this.s;(0>a||a>=y.length)&&ji(a,"0 <= i < length",Ar,"removeAt:i"),this._isFrozen&&xi(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},We.removeRange=function(a,y){var E=this.s,b=E.length;if(0>a)a=0;else if(a>=b)return this;if(0>y)return this;if(y>=b&&(y=b-1),a>y)return this;this._isFrozen&&xi(this);for(var x=a,z=y+1;z<b;)E[x++]=E[z++];return E.length=b-(y-a+1),this.xb(),this},Ar.prototype.copy=function(){var a=new Ar,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},We=Ar.prototype,We.Fa=function(){for(var a=this.s,y=this.count,E=Array(y),b=0;b<y;b++)E[b]=a[b];return E},We.Iv=function(){for(var a=new qt,y=this.s,E=this.count,b=0;b<E;b++)a.add(y[b]);return a},We.sort=function(a){return this._isFrozen&&xi(this),this.s.sort(a),this.xb(),this},We.zi=function(a,y,E){var b=this.s,x=b.length;y===void 0&&(y=0),E===void 0&&(E=x),this._isFrozen&&xi(this);var z=E-y;if(1>=z)return this;if((0>y||y>=x-1)&&ji(y,"0 <= from < length",Ar,"sortRange:from"),z===2)return E=b[y],x=b[y+1],0<a(E,x)&&(b[y]=x,b[y+1]=E,this.xb()),this;if(y===0)if(E>=x)b.sort(a);else for(y=b.slice(0,E),y.sort(a),a=0;a<E;a++)b[a]=y[a];else if(E>=x)for(E=b.slice(y),E.sort(a),a=y;a<x;a++)b[a]=E[a-y];else for(x=b.slice(y,E),x.sort(a),a=y;a<E;a++)b[a]=x[a-y];return this.xb(),this},We.reverse=function(){return this._isFrozen&&xi(this),this.s.reverse(),this.xb(),this},tr.Object.defineProperties(Ar.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 Ka;var a=this.Sa;return a!==null?(a.reset(),a):new aa(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Ka;var a=this.Hg;return a!==null?(a.reset(),a):new za(this)}}}),Ar.prototype.reverse=Ar.prototype.reverse,Ar.prototype.sortRange=Ar.prototype.zi,Ar.prototype.sort=Ar.prototype.sort,Ar.prototype.toSet=Ar.prototype.Iv,Ar.prototype.toArray=Ar.prototype.Fa,Ar.prototype.removeRange=Ar.prototype.removeRange,Ar.prototype.removeAt=Ar.prototype.mb,Ar.prototype.delete=Ar.prototype.delete,Ar.prototype.remove=Ar.prototype.remove,Ar.prototype.insertAt=Ar.prototype.Gb,Ar.prototype.pop=Ar.prototype.pop,Ar.prototype.last=Ar.prototype.jc,Ar.prototype.first=Ar.prototype.first,Ar.prototype.set=Ar.prototype.set,Ar.prototype.setElt=Ar.prototype.cd,Ar.prototype.get=Ar.prototype.get,Ar.prototype.elt=Ar.prototype.M,Ar.prototype.indexOf=Ar.prototype.indexOf,Ar.prototype.has=Ar.prototype.has,Ar.prototype.contains=Ar.prototype.contains,Ar.prototype.clear=Ar.prototype.clear,Ar.prototype.addAll=Ar.prototype.addAll,Ar.prototype.push=Ar.prototype.push,Ar.prototype.add=Ar.prototype.add,Ar.prototype.thaw=Ar.prototype.ka,Ar.prototype.freeze=Ar.prototype.freeze,Ar.className="List";function us(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}us.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},us.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)},us.prototype.Ad=function(){return this.next()},us.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},us.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},us.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},us.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},us.prototype.map=function(a){var y=this.eg;y.Sa=null;var E=new Ar;for(y=y.ea;y!==null;)E.add(a(y.value)),y=y.va;return E.iterator},us.prototype.filter=function(a){var y=this.eg;y.Sa=null;var E=new Ar;for(y=y.ea;y!==null;){var b=y.value;a(b)&&E.add(b),y=y.va}return E.iterator},us.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},us.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},tr.Object.defineProperties(us.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),us.prototype.first=us.prototype.first,us.prototype.hasNext=us.prototype.Ad,us.prototype.next=us.prototype.next,us.prototype.reset=us.prototype.reset,us.className="SetIterator";function qt(a){At(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Pn("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}We=qt.prototype,We.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},We.freeze=function(){return this._isFrozen=!0,this},We.ka=function(){return this._isFrozen=!1,this},We.toString=function(){return"Set()#"+Qt(this)},We.add=function(a){if(a===null)return this;this._isFrozen&&xi(this,a);var y=a;return wr(a)&&(y=Nr(a)),this.Tb[y]===void 0&&(this.Sb++,a=new vi(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},We.addAll=function(a){if(a===null)return this;if(this._isFrozen&&xi(this),Gi(a))for(var y=a.length,E=0;E<y;E++)this.add(a[E]);else for(a=a.iterator;a.next();)this.add(a.value);return this},We.contains=function(a){if(a===null)return!1;var y=a;return wr(a)&&(y=Qt(a),y===void 0)?!1:this.Tb[y]!==void 0},We.has=function(a){return this.contains(a)},We.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},We.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},We.first=function(){var a=this.ea;return a===null?null:a.value},qt.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},qt.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},qt.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},qt.prototype.map=function(a){for(var y=new qt,E=this.ea;E!==null;)y.add(a(E.value)),E=E.va;return y},qt.prototype.filter=function(a){for(var y=new qt,E=this.ea;E!==null;){var b=E.value;a(b)&&y.add(b),E=E.va}return y},We=qt.prototype,We.remove=function(a){if(a===null)return!1;this._isFrozen&&xi(this,a);var y=a;if(wr(a)&&(y=Qt(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var E=a.va,b=a.ll;return E!==null&&(E.ll=b),b!==null&&(b.va=E),this.ea===a&&(this.ea=E),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},We.delete=function(a){return this.remove(a)},We.hp=function(a){if(a===null)return this;if(this._isFrozen&&xi(this),Gi(a))for(var y=a.length,E=0;E<y;E++)this.remove(a[E]);else for(a=a.iterator;a.next();)this.remove(a.value);return this},We.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&xi(this);var y=new qt;y.addAll(a),a=[];for(var E=this.iterator;E.next();){var b=E.value;y.contains(b)||a.push(b)}return this.hp(a),this},We.clear=function(){this._isFrozen&&xi(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},qt.prototype.copy=function(){var a=new qt,y=this.Tb,E;for(E in y)a.add(y[E].value);return a},qt.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,E=0,b;for(b in y)a[E]=y[b].value,E++;return a},qt.prototype.Hv=function(){var a=new Ar,y=this.Tb,E;for(E in y)a.add(y[E].value);return a};function At(a){a.__gohashid=ln++}function Nr(a){var y=a.__gohashid;return y===void 0&&(y=ln++,a.__gohashid=y),y}function Qt(a){return a.__gohashid}tr.Object.defineProperties(qt.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Ka;var a=this.Sa;return a!==null?(a.reset(),a):new us(this)}}}),qt.prototype.toList=qt.prototype.Hv,qt.prototype.toArray=qt.prototype.Fa,qt.prototype.clear=qt.prototype.clear,qt.prototype.retainAll=qt.prototype.pA,qt.prototype.removeAll=qt.prototype.hp,qt.prototype.delete=qt.prototype.delete,qt.prototype.remove=qt.prototype.remove,qt.prototype.first=qt.prototype.first,qt.prototype.containsAny=qt.prototype.Ty,qt.prototype.containsAll=qt.prototype.Sy,qt.prototype.has=qt.prototype.has,qt.prototype.contains=qt.prototype.contains,qt.prototype.addAll=qt.prototype.addAll,qt.prototype.add=qt.prototype.add,qt.prototype.thaw=qt.prototype.ka,qt.prototype.freeze=qt.prototype.freeze;var ln=1;qt.className="Set",qt.uniqueHash=At,qt.hashIdUnique=Nr,qt.hashId=Qt;function En(a){this.ma=a,this.qa=a.Ja,this.sa=null}En.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},En.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)},En.prototype.Ad=function(){return this.next()},En.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},En.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},En.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},En.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},En.prototype.map=function(a){var y=this.ma;this.sa=null;var E=new Ar;for(y=y.ea;y!==null;)E.add(a(y.key)),y=y.va;return E.iterator},En.prototype.filter=function(a){var y=this.ma;this.sa=null;var E=new Ar;for(y=y.ea;y!==null;){var b=y.key;a(b)&&E.add(b),y=y.va}return E.iterator},En.prototype.de=function(){this.value=this.key=null,this.qa=-1},En.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},tr.Object.defineProperties(En.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),En.prototype.first=En.prototype.first,En.prototype.hasNext=En.prototype.Ad,En.prototype.next=En.prototype.next,En.prototype.reset=En.prototype.reset,En.className="MapKeySetIterator";function Xn(a){qt.call(this),At(this),this._isFrozen=!0,this.ma=a}vn(Xn,qt),We=Xn.prototype,We.freeze=function(){return this},We.ka=function(){return this},We.toString=function(){return"MapKeySet("+this.ma.toString()+")"},We.add=function(){Pn("This Set is read-only: "+this.toString())},We.contains=function(a){return this.ma.contains(a)},We.has=function(a){return this.contains(a)},We.remove=function(){Pn("This Set is read-only: "+this.toString())},We.delete=function(a){return this.remove(a)},We.clear=function(){Pn("This Set is read-only: "+this.toString())},We.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Xn.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Xn.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Xn.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Xn.prototype.map=function(a){for(var y=new qt,E=this.ma.ea;E!==null;)y.add(a(E.key)),E=E.va;return y},Xn.prototype.filter=function(a){for(var y=new qt,E=this.ma.ea;E!==null;){var b=E.key;a(b)&&y.add(b),E=E.va}return y},Xn.prototype.copy=function(){return new Xn(this.ma)},Xn.prototype.Iv=function(){var a=new qt,y=this.ma.Tb,E;for(E in y)a.add(y[E].key);return a},Xn.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),E=0,b;for(b in a)y[E]=a[b].key,E++;return y},Xn.prototype.Hv=function(){var a=new Ar,y=this.ma.Tb,E;for(E in y)a.add(y[E].key);return a},tr.Object.defineProperties(Xn.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Ka:new En(this.ma)}}}),Xn.prototype.toList=Xn.prototype.Hv,Xn.prototype.toArray=Xn.prototype.Fa,Xn.prototype.toSet=Xn.prototype.Iv,Xn.prototype.first=Xn.prototype.first,Xn.prototype.clear=Xn.prototype.clear,Xn.prototype.delete=Xn.prototype.delete,Xn.prototype.remove=Xn.prototype.remove,Xn.prototype.has=Xn.prototype.has,Xn.prototype.contains=Xn.prototype.contains,Xn.prototype.add=Xn.prototype.add,Xn.prototype.thaw=Xn.prototype.ka,Xn.prototype.freeze=Xn.prototype.freeze,Xn.className="MapKeySet";function Rr(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Rr.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Rr.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)},Rr.prototype.Ad=function(){return this.next()},Rr.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},Rr.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},Rr.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},Rr.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},Rr.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var E=new Ar;for(y=y.ea;y!==null;)E.add(a(y.value)),y=y.va;return E.iterator},Rr.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var E=new Ar;for(y=y.ea;y!==null;){var b=y.value;a(b)&&E.add(b),y=y.va}return E.iterator},Rr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Rr.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},tr.Object.defineProperties(Rr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Rr.prototype.first=Rr.prototype.first,Rr.prototype.hasNext=Rr.prototype.Ad,Rr.prototype.next=Rr.prototype.next,Rr.prototype.reset=Rr.prototype.reset,Rr.className="MapValueSetIterator";function vi(a,y){this.key=a,this.value=y,this.ll=this.va=null}vi.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},vi.className="KeyValuePair";function ni(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}ni.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},ni.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)},ni.prototype.Ad=function(){return this.next()},ni.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},ni.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},ni.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},ni.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},ni.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var E=new Ar;for(y=y.ea;y!==null;)E.add(a(y)),y=y.va;return E.iterator},ni.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var E=new Ar;for(y=y.ea;y!==null;)a(y)&&E.add(y),y=y.va;return E.iterator},ni.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},ni.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},tr.Object.defineProperties(ni.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ni.prototype.first=ni.prototype.first,ni.prototype.hasNext=ni.prototype.Ad,ni.prototype.next=ni.prototype.next,ni.prototype.reset=ni.prototype.reset,ni.className="MapIterator";function xr(a){At(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"&&Pn("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}We=xr.prototype,We.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},We.freeze=function(){return this._isFrozen=!0,this},We.ka=function(){return this._isFrozen=!1,this},We.toString=function(){return"Map()#"+Qt(this)},We.add=function(a,y){this._isFrozen&&xi(this,a);var E=a;wr(a)&&(E=Nr(a));var b=this.Tb[E];return b===void 0?(this.Sb++,a=new vi(a,y),this.Tb[E]=a,E=this.kf,E===null?this.ea=a:(a.ll=E,E.va=a),this.kf=a,this.xb()):b.value=y,this},We.set=function(a,y){return this.add(a,y)},We.addAll=function(a){if(a===null)return this;if(Gi(a))for(var y=a.length,E=0;E<y;E++){var b=a[E];this.add(b.key,b.value)}else if(a instanceof xr)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},We.first=function(){return this.ea},xr.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},xr.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},xr.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},xr.prototype.map=function(a){for(var y=new xr,E=this.ea;E!==null;)y.add(E.key,a(E)),E=E.va;return y},xr.prototype.filter=function(a){for(var y=new xr,E=this.ea;E!==null;)a(E)&&y.add(E.key,E.value),E=E.va;return y},We=xr.prototype,We.contains=function(a){var y=a;return wr(a)&&(y=Qt(a),y===void 0)?!1:this.Tb[y]!==void 0},We.has=function(a){return this.contains(a)},We.I=function(a){var y=a;return wr(a)&&(y=Qt(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},We.get=function(a){return this.I(a)},We.remove=function(a){if(a===null)return!1;this._isFrozen&&xi(this,a);var y=a;if(wr(a)&&(y=Qt(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var E=a.va,b=a.ll;return E!==null&&(E.ll=b),b!==null&&(b.va=E),this.ea===a&&(this.ea=E),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},We.delete=function(a){return this.remove(a)},We.clear=function(){this._isFrozen&&xi(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()},xr.prototype.copy=function(){var a=new xr,y=this.Tb,E;for(E in y){var b=y[E];a.add(b.key,b.value)}return a},xr.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),E=0,b;for(b in a){var x=a[b];y[E]=new vi(x.key,x.value),E++}return y},xr.prototype.Lf=function(){return new Xn(this)},tr.Object.defineProperties(xr.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Ka;var a=this.Sa;return a!==null?(a.reset(),a):new ni(this)}},iteratorKeys:{get:function(){return 0>=this.count?Ka:new En(this)}},iteratorValues:{get:function(){if(0>=this.count)return Ka;var a=this.jf;return a!==null?(a.reset(),a):new Rr(this)}}}),xr.prototype.toKeySet=xr.prototype.Lf,xr.prototype.toArray=xr.prototype.Fa,xr.prototype.clear=xr.prototype.clear,xr.prototype.delete=xr.prototype.delete,xr.prototype.remove=xr.prototype.remove,xr.prototype.get=xr.prototype.get,xr.prototype.getValue=xr.prototype.I,xr.prototype.has=xr.prototype.has,xr.prototype.contains=xr.prototype.contains,xr.prototype.first=xr.prototype.first,xr.prototype.addAll=xr.prototype.addAll,xr.prototype.set=xr.prototype.set,xr.prototype.add=xr.prototype.add,xr.prototype.thaw=xr.prototype.ka,xr.prototype.freeze=xr.prototype.freeze,xr.className="Map";function xt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Pn("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Po,zo,ya,xa,Sa;xt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},xt.prototype.h=function(a,y){return this.x=a,this.y=y,this},xt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},xt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},xt.prototype.copy=function(){var a=new xt;return a.x=this.x,a.y=this.y,a},We=xt.prototype,We.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},We.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},We.freeze=function(){return this._isFrozen=!0,this},We.ka=function(){return Object.isFrozen(this)&&Pn("cannot thaw constant: "+this),this._isFrozen=!1,this};function ha(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,E=0;a[y]==="";)y++;var b=a[y++];b&&(E=parseFloat(b));for(var x=0;a[y]==="";)y++;return(b=a[y++])&&(x=parseFloat(b)),new xt(E,x)}return new xt}function Gt(a){return a.x.toString()+" "+a.y.toString()}We.toString=function(){return"Point("+this.x+","+this.y+")"},We.D=function(a){return a instanceof xt?this.x===a.x&&this.y===a.y:!1},We.hi=function(a,y){return this.x===a&&this.y===y},We.Xa=function(a){return gn.B(this.x,a.x)&&gn.B(this.y,a.y)},We.add=function(a){return this.x+=a.x,this.y+=a.y,this},We.re=function(a){return this.x-=a.x,this.y-=a.y,this},We.offset=function(a,y){return this.x+=a,this.y+=y,this},xt.prototype.rotate=function(a){if(a===0)return this;var y=this.x,E=this.y;if(y===0&&E===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));return this.x=a*y-b*E,this.y=b*y+a*E,this},We=xt.prototype,We.scale=function(a,y){return this.x*=a,this.y*=y,this},We.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},We.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},We.normalize=function(){var a=this.x,y=this.y,E=Math.sqrt(a*a+y*y);return 0<E&&(this.x=a/E,this.y=y/E),this},We.ab=function(a){return fr(a.x-this.x,a.y-this.y)},We.direction=function(a,y){return fr(a-this.x,y-this.y)};function fr(a,y){if(a===0)return 0<y?90:0>y?270:0;if(y===0)return 0<a?0:180;if(isNaN(a)||isNaN(y))return 0;var E=180*Math.atan(Math.abs(y/a))/Math.PI;return 0>a?E=0>y?E+180:180-E:0>y&&(E=360-E),E}We.Ry=function(a,y){return gn.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},We.fA=function(a,y,E,b){return gn.qh(a,y,E,b,this.x,this.y,this),this},We.gA=function(a,y){return gn.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},We.uA=function(a,y,E,b){return gn.No(this.x,this.y,a,y,E,b,this),this},We.vA=function(a,y){return gn.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},We.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},We.yi=function(a,y,E,b,x){return this.x=a+x.x*E+x.offsetX,this.y=y+x.y*b+x.offsetY,this},We.transform=function(a){return a.Ga(this),this};function pr(a,y){return y.Cd(a),a}function Tr(a,y,E,b,x,z){var ne=x-E,oe=z-b,ue=ne*ne+oe*oe;E-=a,b-=y;var he=-E*ne-b*oe;return 0>=he||he>=ue?(ne=x-a,oe=z-y,Math.min(E*E+b*b,ne*ne+oe*oe)):(a=ne*b-oe*E,a*a/ue)}function Ln(a,y,E,b){return a=E-a,y=b-y,a*a+y*y}function or(a,y,E,b){return a=E-a,y=b-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(b=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?b=0>y?b+180:180-b:0>y&&(b=360-b),b)}We.w=function(){return isFinite(this.x)&&isFinite(this.y)},xt.alloc=function(){var a=vr.pop();return a===void 0?new xt:a},xt.allocAt=function(a,y){var E=vr.pop();return E===void 0?new xt(a,y):(E.x=a,E.y=y,E)},xt.free=function(a){vr.push(a)},xt.prototype.isReal=xt.prototype.w,xt.prototype.setSpot=xt.prototype.yi,xt.prototype.setRectSpot=xt.prototype.xi,xt.prototype.snapToGridPoint=xt.prototype.vA,xt.prototype.snapToGrid=xt.prototype.uA,xt.prototype.projectOntoLineSegmentPoint=xt.prototype.gA,xt.prototype.projectOntoLineSegment=xt.prototype.fA,xt.intersectingLineSegments=function(a,y,E,b,x,z,ne,oe){return gn.Rl(a,y,E,b,x,z,ne,oe)},xt.prototype.compareWithLineSegmentPoint=xt.prototype.Ry,xt.compareWithLineSegment=function(a,y,E,b,x,z){return gn.Fl(a,y,E,b,x,z)},xt.prototype.direction=xt.prototype.direction,xt.prototype.directionPoint=xt.prototype.ab,xt.prototype.normalize=xt.prototype.normalize,xt.prototype.distanceSquared=xt.prototype.zd,xt.prototype.distanceSquaredPoint=xt.prototype.Bf,xt.prototype.scale=xt.prototype.scale,xt.prototype.rotate=xt.prototype.rotate,xt.prototype.offset=xt.prototype.offset,xt.prototype.subtract=xt.prototype.re,xt.prototype.add=xt.prototype.add,xt.prototype.equalsApprox=xt.prototype.Xa,xt.prototype.equalTo=xt.prototype.hi,xt.prototype.equals=xt.prototype.D,xt.prototype.set=xt.prototype.set,xt.prototype.setTo=xt.prototype.sg;var vr=[];xt.className="Point",xt.parse=ha,xt.stringify=Gt,xt.distanceLineSegmentSquared=Tr,xt.distanceSquared=Ln,xt.direction=or,xt.Origin=Po=new xt(0,0).ja(),xt.InfiniteTopLeft=zo=new xt(-1/0,-1/0).ja(),xt.InfiniteBottomRight=ya=new xt(1/0,1/0).ja(),xt.SixPoint=xa=new xt(6,6).ja(),xt.NoPoint=Sa=new xt(NaN,NaN).ja(),xt.parse=ha,xt.stringify=Gt,xt.distanceLineSegmentSquared=Tr,xt.distanceSquared=Ln,xt.direction=or;function sn(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):Pn("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var mr,Vr,no,Xi,zi,_o,sa;sn.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},sn.prototype.h=function(a,y){return this.width=a,this.height=y,this},sn.prototype.sg=function(a,y){return this.width=a,this.height=y,this},sn.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},sn.prototype.copy=function(){var a=new sn;return a.width=this.width,a.height=this.height,a},We=sn.prototype,We.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},We.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},We.freeze=function(){return this._isFrozen=!0,this},We.ka=function(){return Object.isFrozen(this)&&Pn("cannot thaw constant: "+this),this._isFrozen=!1,this};function Va(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,E=0;a[y]==="";)y++;var b=a[y++];b&&(E=parseFloat(b));for(var x=0;a[y]==="";)y++;return(b=a[y++])&&(x=parseFloat(b)),new sn(E,x)}return new sn}function os(a){return a.width.toString()+" "+a.height.toString()}We.toString=function(){return"Size("+this.width+","+this.height+")"},We.D=function(a){return a instanceof sn?this.width===a.width&&this.height===a.height:!1},We.hi=function(a,y){return this.width===a&&this.height===y},We.Xa=function(a){return gn.B(this.width,a.width)&&gn.B(this.height,a.height)},We.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},We.w=function(){return isFinite(this.width)&&isFinite(this.height)},sn.alloc=function(){var a=Zs.pop();return a===void 0?new sn:a},sn.free=function(a){Zs.push(a)},sn.prototype.isReal=sn.prototype.w,sn.prototype.inflate=sn.prototype.Bc,sn.prototype.equalsApprox=sn.prototype.Xa,sn.prototype.equalTo=sn.prototype.hi,sn.prototype.equals=sn.prototype.D,sn.prototype.set=sn.prototype.set,sn.prototype.setTo=sn.prototype.sg;var Zs=[];sn.className="Size",sn.parse=Va,sn.stringify=os,sn.ZeroSize=mr=new sn(0,0).ja(),sn.OneSize=Vr=new sn(1,1).ja(),sn.SixSize=no=new sn(6,6).ja(),sn.EightSize=Xi=new sn(8,8).ja(),sn.TenSize=zi=new sn(10,10).ja(),sn.InfiniteSize=_o=new sn(1/0,1/0).ja(),sn.NoSize=sa=new sn(NaN,NaN).ja(),sn.parse=Va,sn.stringify=os;function Un(a,y,E,b){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof E=="number"&&(0<=E||isNaN(E))&&typeof b=="number"&&(0<=b||isNaN(b))?(this.x=a,this.y=y,this.width=E,this.height=b):a instanceof xt?(E=a.x,a=a.y,y instanceof xt?(b=y.x,y=y.y,this.x=Math.min(E,b),this.y=Math.min(a,y),this.width=Math.abs(E-b),this.height=Math.abs(a-y)):y instanceof sn?(this.x=E,this.y=a,this.width=y.width,this.height=y.height):Pn("Incorrect second argument supplied to Rect constructor "+y)):Pn("Invalid arguments to Rect constructor: "+a+", "+y+", "+E+", "+b),this._isFrozen=!1}We=Un.prototype,We.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},We.h=function(a,y,E,b){return this.x=a,this.y=y,this.width=E,this.height=b,this};function ws(a,y,E){a.width=y,a.height=E}We.sg=function(a,y,E,b){return this.x=a,this.y=y,this.width=E,this.height=b,this},We.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},We.dd=function(a){return this.x=a.x,this.y=a.y,this},We.tA=function(a){return this.width=a.width,this.height=a.height,this},Un.prototype.copy=function(){var a=new Un;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},We=Un.prototype,We.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},We.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},We.freeze=function(){return this._isFrozen=!0,this},We.ka=function(){return Object.isFrozen(this)&&Pn("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ds(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,E=0;a[y]==="";)y++;var b=a[y++];b&&(E=parseFloat(b));for(var x=0;a[y]==="";)y++;(b=a[y++])&&(x=parseFloat(b));for(var z=0;a[y]==="";)y++;(b=a[y++])&&(z=parseFloat(b));for(var ne=0;a[y]==="";)y++;return(b=a[y++])&&(ne=parseFloat(b)),new Un(E,x,z,ne)}return new Un}function dl(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}We.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},We.D=function(a){return a instanceof Un?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},We.hi=function(a,y,E,b){return this.x===a&&this.y===y&&this.width===E&&this.height===b},We.Xa=function(a){return gn.B(this.x,a.x)&&gn.B(this.y,a.y)&&gn.B(this.width,a.width)&&gn.B(this.height,a.height)};function _a(a,y){return gn.$(a.x,y.x)&&gn.$(a.y,y.y)&&gn.$(a.width,y.width)&&gn.$(a.height,y.height)}We.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},We.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},We.contains=function(a,y,E,b){return E===void 0&&(E=0),b===void 0&&(b=0),this.x<=a&&a+E<=this.x+this.width&&this.y<=y&&y+b<=this.y+this.height},We.offset=function(a,y){return this.x+=a,this.y+=y,this},We.Bc=function(a,y){return js(this,y,a,y,a)},We.Co=function(a){return js(this,a.top,a.right,a.bottom,a.left)},We.Fv=function(a){return js(this,-a.top,-a.right,-a.bottom,-a.left)},We.Hz=function(a,y,E,b){return js(this,a,y,E,b)};function js(a,y,E,b,x){var z=a.width;return E+x<=-z?(a.x+=z/2,a.width=0):(a.x-=x,a.width+=E+x),E=a.height,y+b<=-E?(a.y+=E/2,a.height=0):(a.y-=y,a.height+=y+b),a}We.Ex=function(a){return ol(this,a.x,a.y,a.width,a.height)},We.Uu=function(a,y,E,b){return ol(this,a,y,E,b)};function ol(a,y,E,b,x){var z=Math.max(a.x,y),ne=Math.max(a.y,E);return y=Math.min(a.x+a.width,y+b),E=Math.min(a.y+a.height,E+x),a.x=z,a.y=ne,a.width=Math.max(0,y-z),a.height=Math.max(0,E-ne),a}We.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},We.Vu=function(a,y,E,b){var x=this.width,z=this.x;return x!==1/0&&E!==1/0&&(x+=z,E+=a,isNaN(E)||isNaN(x)||z>E||a>x)?!1:(a=this.height,E=this.y,!(a!==1/0&&b!==1/0&&(a+=E,b+=y,isNaN(b)||isNaN(a)||E>b||y>a)))};function Tl(a,y){var E=a.width,b=a.x,x=y.x-10;return b>y.width+10+10+x||x>E+b?!1:(E=a.height,a=a.y,b=y.y-10,!(a>y.height+10+10+b||b>E+a))}We.Ye=function(a){return Wa(this,a.x,a.y,0,0)},We.ed=function(a){return Wa(this,a.x,a.y,a.width,a.height)},We.Kv=function(a,y,E,b){return E===void 0&&(E=0),b===void 0&&(b=0),Wa(this,a,y,E,b)};function Wa(a,y,E,b,x){var z=Math.min(a.x,y),ne=Math.min(a.y,E);return y=Math.max(a.x+a.width,y+b),E=Math.max(a.y+a.height,E+x),a.x=z,a.y=ne,a.width=y-z,a.height=E-ne,a}We.yi=function(a,y,E){return this.x=a-E.offsetX-E.x*this.width,this.y=y-E.offsetY-E.y*this.height,this};function vs(a,y,E,b,x,z,ne,oe){return ne===void 0&&(ne=0),oe===void 0&&(oe=0),a<=x&&x+ne<=a+E&&y<=z&&z+oe<=y+b}function Io(a,y,E,b,x,z,ne,oe){return a>ne+x||x>E+a?!1:!(y>oe+z||z>b+y)}We.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},We.Mz=function(){return this.width===0&&this.height===0},Un.alloc=function(){var a=as.pop();return a===void 0?new Un:a},Un.allocAt=function(a,y,E,b){var x=as.pop();return x===void 0?new Un(a,y,E,b):x.h(a,y,E,b)},Un.free=function(a){as.push(a)},tr.Object.defineProperties(Un.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 xt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new sn(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new xt(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}}}),Un.prototype.isEmpty=Un.prototype.Mz,Un.prototype.isReal=Un.prototype.w,Un.intersectsLineSegment=function(a,y,E,b,x,z,ne,oe){return gn.Fx(a,y,E,b,x,z,ne,oe)},Un.prototype.setSpot=Un.prototype.yi,Un.prototype.union=Un.prototype.Kv,Un.prototype.unionRect=Un.prototype.ed,Un.prototype.unionPoint=Un.prototype.Ye,Un.prototype.intersects=Un.prototype.Vu,Un.prototype.intersectsRect=Un.prototype.Yc,Un.prototype.intersect=Un.prototype.Uu,Un.prototype.intersectRect=Un.prototype.Ex,Un.prototype.grow=Un.prototype.Hz,Un.prototype.subtractMargin=Un.prototype.Fv,Un.prototype.addMargin=Un.prototype.Co,Un.prototype.inflate=Un.prototype.Bc,Un.prototype.offset=Un.prototype.offset,Un.prototype.contains=Un.prototype.contains,Un.prototype.containsRect=Un.prototype.Re,Un.prototype.containsPoint=Un.prototype.ca,Un.prototype.equalsApprox=Un.prototype.Xa,Un.prototype.equalTo=Un.prototype.hi,Un.prototype.equals=Un.prototype.D,Un.prototype.setSize=Un.prototype.tA,Un.prototype.setPoint=Un.prototype.dd,Un.prototype.set=Un.prototype.set,Un.prototype.setTo=Un.prototype.sg;var pa=null,Ua=null,as=[];Un.className="Rect",Un.parse=Ds,Un.stringify=dl,Un.contains=vs,Un.intersects=Io,Un.ZeroRect=pa=new Un(0,0,0,0).ja(),Un.NoRect=Ua=new Un(NaN,NaN,NaN,NaN).ja(),Un.parse=Ds,Un.stringify=dl,Un.contains=vs,Un.intersects=Io;function Bi(a,y,E,b){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:E===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):b!==void 0?(this.top=a,this.right=y,this.bottom=E,this.left=b):Pn("Invalid arguments to Margin constructor: "+a+", "+y+", "+E+", "+b),this._isFrozen=!1}Bi.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Bi.prototype.sg=function(a,y,E,b){return this.top=a,this.right=y,this.bottom=E,this.left=b,this},Bi.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Bi.prototype.copy=function(){var a=new Bi;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},We=Bi.prototype,We.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},We.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},We.freeze=function(){return this._isFrozen=!0,this},We.ka=function(){return Object.isFrozen(this)&&Pn("cannot thaw constant: "+this),this._isFrozen=!1,this};function Xs(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,E=NaN;a[y]==="";)y++;var b=a[y++];if(b&&(E=parseFloat(b)),isNaN(E))return new Bi;for(var x=NaN;a[y]==="";)y++;if((b=a[y++])&&(x=parseFloat(b)),isNaN(x))return new Bi(E);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new Bi(E,x);for(var ne=NaN;a[y]==="";)y++;return(b=a[y++])&&(ne=parseFloat(b)),isNaN(ne)?new Bi(E,x):new Bi(E,x,z,ne)}return new Bi}function Ls(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}We.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},We.D=function(a){return a instanceof Bi?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},We.hi=function(a,y,E,b){return this.top===a&&this.right===y&&this.bottom===E&&this.left===b},We.Xa=function(a){return gn.B(this.top,a.top)&&gn.B(this.right,a.right)&&gn.B(this.bottom,a.bottom)&&gn.B(this.left,a.left)},We.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Bi.alloc=function(){var a=Ml.pop();return a===void 0?new Bi:a},Bi.free=function(a){Ml.push(a)},Bi.prototype.isReal=Bi.prototype.w,Bi.prototype.equalsApprox=Bi.prototype.Xa,Bi.prototype.equalTo=Bi.prototype.hi,Bi.prototype.equals=Bi.prototype.D,Bi.prototype.set=Bi.prototype.set,Bi.prototype.setTo=Bi.prototype.sg;var Gs=null,vl=null,Ml=[];Bi.className="Margin",Bi.parse=Xs,Bi.stringify=Ls,Bi.ZeroMargin=Gs=new Bi(0,0,0,0).ja(),Bi.TwoMargin=vl=new Bi(2,2,2,2).ja(),Bi.parse=Xs,Bi.stringify=Ls;function ci(a,y,E,b){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),E===void 0&&(E=0),b===void 0&&(b=0),this.x=a,this.y=y,this.offsetX=E,this.offsetY=b),this._isFrozen=!1}var zs,Vs,Ul,Qs,Dl,la,gu,Pl,Is,eu,Hu,cc,Il,al,Dc,Fc,rc,Bc,Iu,Al,Fl,Ju,_c,$u,od,yl,fd,pd,Uc,ic,lu,mu,kl,Hl,Yc,Wl;ci.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},ci.prototype.sg=function(a,y,E,b){return this.x=a,this.y=y,this.offsetX=E,this.offsetY=b,this},ci.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},ci.prototype.copy=function(){var a=new ci;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},We=ci.prototype,We.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},We.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},We.freeze=function(){return this._isFrozen=!0,this},We.ka=function(){return Object.isFrozen(this)&&Pn("cannot thaw constant: "+this),this._isFrozen=!1,this};function hl(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function ad(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return zs;if(a==="TopLeft")return Vs;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Ul;if(a==="TopRight")return Qs;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Dl;if(a==="Center")return la;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return gu;if(a==="BottomLeft")return Pl;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Is;if(a==="BottomRight")return eu;if(a==="TopSide")return Hu;if(a==="LeftSide")return cc;if(a==="RightSide")return Il;if(a==="BottomSide")return al;if(a==="TopBottomSides")return Dc;if(a==="LeftRightSides")return Fc;if(a==="TopLeftSides")return rc;if(a==="TopRightSides")return Bc;if(a==="BottomLeftSides")return Iu;if(a==="BottomRightSides")return Al;if(a==="NotTopSide")return Fl;if(a==="NotLeftSide")return Ju;if(a==="NotRightSide")return _c;if(a==="NotBottomSide")return $u;if(a==="AllSides")return od;if(a==="Default")return yl;a=a.split(" ");for(var y=0,E=0;a[y]==="";)y++;var b=a[y++];b!==void 0&&0<b.length&&(E=parseFloat(b));for(var x=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(x=parseFloat(b));for(var z=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(z=parseFloat(b));for(var ne=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(ne=parseFloat(b)),new ci(E,x,z,ne)}return new ci}function oc(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}We.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(zs)?"None":this.D(Vs)?"TopLeft":this.D(Ul)?"Top":this.D(Qs)?"TopRight":this.D(Dl)?"Left":this.D(la)?"Center":this.D(gu)?"Right":this.D(Pl)?"BottomLeft":this.D(Is)?"Bottom":this.D(eu)?"BottomRight":this.D(Hu)?"TopSide":this.D(cc)?"LeftSide":this.D(Il)?"RightSide":this.D(al)?"BottomSide":this.D(Dc)?"TopBottomSides":this.D(Fc)?"LeftRightSides":this.D(rc)?"TopLeftSides":this.D(Bc)?"TopRightSides":this.D(Iu)?"BottomLeftSides":this.D(Al)?"BottomRightSides":this.D(Fl)?"NotTopSide":this.D(Ju)?"NotLeftSide":this.D(_c)?"NotRightSide":this.D($u)?"NotBottomSide":this.D(od)?"AllSides":this.D(yl)?"Default":"None"},We.D=function(a){return a instanceof ci?(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},We.gv=function(){return new ci(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},We.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(fd))a=cc;else if(a.D(pd))a=Il;else if(a.D(Uc))a=Hu;else if(a.D(ic))a=al;else return!1;return a=a.offsetY,(this.offsetY&a)===a},We.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},We.Mc=function(){return isNaN(this.x)||isNaN(this.y)},We.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},We.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},We.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},ci.alloc=function(){var a=ju.pop();return a===void 0?new ci:a},ci.free=function(a){ju.push(a)},ci.prototype.isDefault=ci.prototype.Xb,ci.prototype.isNone=ci.prototype.ys,ci.prototype.isSide=ci.prototype.$c,ci.prototype.isNoSpot=ci.prototype.Mc,ci.prototype.isSpot=ci.prototype.sb,ci.prototype.includesSide=ci.prototype.Hf,ci.prototype.opposite=ci.prototype.gv,ci.prototype.equals=ci.prototype.D,ci.prototype.set=ci.prototype.set,ci.prototype.setTo=ci.prototype.sg;var ju=[];ci.className="Spot",ci.parse=ad,ci.stringify=oc,ci.None=zs=hl(new ci(0,0,0,0),0).ja(),ci.Default=yl=hl(new ci(0,0,-1,0),-1).ja(),ci.TopLeft=Vs=new ci(0,0,0,0).ja(),ci.TopCenter=Ul=new ci(.5,0,0,0).ja(),ci.TopRight=Qs=new ci(1,0,0,0).ja(),ci.LeftCenter=Dl=new ci(0,.5,0,0).ja(),ci.Center=la=new ci(.5,.5,0,0).ja(),ci.RightCenter=gu=new ci(1,.5,0,0).ja(),ci.BottomLeft=Pl=new ci(0,1,0,0).ja(),ci.BottomCenter=Is=new ci(.5,1,0,0).ja(),ci.BottomRight=eu=new ci(1,1,0,0).ja(),ci.MiddleTop=lu=Ul,ci.MiddleLeft=mu=Dl,ci.MiddleRight=kl=gu,ci.MiddleBottom=Hl=Is,ci.Top=Uc=Ul,ci.Left=fd=Dl,ci.Right=pd=gu,ci.Bottom=ic=Is,ci.TopSide=Hu=hl(new ci(0,0,1,1),1).ja(),ci.LeftSide=cc=hl(new ci(0,0,1,2),1).ja(),ci.RightSide=Il=hl(new ci(0,0,1,4),1).ja(),ci.BottomSide=al=hl(new ci(0,0,1,8),1).ja(),ci.TopBottomSides=Dc=hl(new ci(0,0,1,9),1).ja(),ci.LeftRightSides=Fc=hl(new ci(0,0,1,6),1).ja(),ci.TopLeftSides=rc=hl(new ci(0,0,1,3),1).ja(),ci.TopRightSides=Bc=hl(new ci(0,0,1,5),1).ja(),ci.BottomLeftSides=Iu=hl(new ci(0,0,1,10),1).ja(),ci.BottomRightSides=Al=hl(new ci(0,0,1,12),1).ja(),ci.NotTopSide=Fl=hl(new ci(0,0,1,14),1).ja(),ci.NotLeftSide=Ju=hl(new ci(0,0,1,13),1).ja(),ci.NotRightSide=_c=hl(new ci(0,0,1,11),1).ja(),ci.NotBottomSide=$u=hl(new ci(0,0,1,7),1).ja(),ci.AllSides=od=hl(new ci(0,0,1,15),1).ja(),Yc=new ci(.156,.156).ja(),Wl=new ci(.844,.844).ja(),ci.parse=ad,ci.stringify=oc;function No(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}No.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},No.prototype.setTransform=function(a,y,E,b,x,z){return this.m11=a,this.m12=y,this.m21=E,this.m22=b,this.dx=x,this.dy=z,this},No.prototype.copy=function(){var a=new No;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},No.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},No.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},No.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},No.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},No.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,E=this.m12*a.m11+this.m22*a.m12,b=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=E,this.m21=b,this.m22=x,this},No.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),E=a.m22*y,b=-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*E+this.m21*b,E=this.m12*E+this.m22*b,b=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=E,this.m21=b,this.m22=x,this},No.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,E=-this.m21*a,b=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=E,this.m22=b,this.dx=x,this.dy=z,this},No.prototype.rotate=function(a,y,E){if(360<=a?a-=360:0>a&&(a+=360),a===0)return this;if(this.translate(y,E),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var x=this.m12*a+this.m22*b,z=this.m11*-b+this.m21*a,ne=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=x,this.m21=z,this.m22=ne,this.translate(-y,-E),this},We=No.prototype,We.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},We.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},We.Ga=function(a){var y=a.x,E=a.y;return a.h(y*this.m11+E*this.m21+this.dx,y*this.m12+E*this.m22+this.dy)},We.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),E=a.x,b=a.y;return a.h(E*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),E*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},We.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),E=1.25*a.x,b=1.2*a.y;return a.h(E*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),E*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},We.pp=function(a){var y=a.x,E=a.y,b=y+a.width,x=E+a.height,z=this.m11,ne=this.m12,oe=this.m21,ue=this.m22,he=this.dx,ge=this.dy,Ee=y*z+E*oe+he,ke=y*ne+E*ue+ge,Ve=b*z+E*oe+he,Ze=b*ne+E*ue+ge;return E=y*z+x*oe+he,y=y*ne+x*ue+ge,z=b*z+x*oe+he,b=b*ne+x*ue+ge,x=Math.min(Ee,Ve),Ee=Math.max(Ee,Ve),Ve=Math.min(ke,Ze),ke=Math.max(ke,Ze),x=Math.min(x,E),Ee=Math.max(Ee,E),Ve=Math.min(Ve,y),ke=Math.max(ke,y),x=Math.min(x,z),Ee=Math.max(Ee,z),Ve=Math.min(Ve,b),ke=Math.max(ke,b),a.h(x,Ve,Ee-x,ke-Ve),a},No.alloc=function(){var a=xc.pop();return a===void 0?new No:a},No.free=function(a){xc.push(a)},No.prototype.transformRect=No.prototype.pp,No.prototype.transformPoint=No.prototype.Ga,No.prototype.scale=No.prototype.scale,No.prototype.translate=No.prototype.translate,No.prototype.rotate=No.prototype.rotate,No.prototype.invert=No.prototype.Vj,No.prototype.multiplyInverted=No.prototype.bv,No.prototype.multiply=No.prototype.multiply,No.prototype.reset=No.prototype.reset,No.prototype.isIdentity=No.prototype.ws,No.prototype.equals=No.prototype.D,No.prototype.setTransform=No.prototype.setTransform,No.prototype.set=No.prototype.set;var xc=[];No.className="Transform",No.xF="54a702f3e53909c447824c6706603faf4c";var gn={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=gn.Uv;if(y===null){y=[];for(var E=0;2e3>=E;E++)y[E]=Math.sqrt(E);gn.Uv=y}return 1>a?(E=1/a,2e3>=E?1/y[E|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5<a},$:function(a,y){return a-=y,5e-8>a&&-5e-8<a},Yb:function(a,y,E,b,x,z,ne){if(0>=x&&(x=1e-6),a<E)var oe=a,ue=E;else oe=E,ue=a;if(y<b)var he=y,ge=b;else he=b,ge=y;if(a===E)return he<=ne&&ne<=ge&&a-x<=z&&z<=a+x;if(y===b)return oe<=z&&z<=ue&&y-x<=ne&&ne<=y+x;if(ue+=x,oe-=x,oe<=z&&z<=ue&&(ge+=x,he-=x,he<=ne&&ne<=ge))if(ue-oe>ge-he)if(a-E>x||E-a>x){if(z=(b-y)/(E-a)*(z-a)+y,z-x<=ne&&ne<=z+x)return!0}else return!0;else if(y-b>x||b-y>x){if(ne=(E-a)/(b-y)*(ne-y)+a,ne-x<=z&&z<=ne+x)return!0}else return!0;return!1},cs:function(a,y,E,b,x,z,ne,oe,ue,he,ge,Ee){if(gn.Yb(a,y,ne,oe,Ee,E,b)&&gn.Yb(a,y,ne,oe,Ee,x,z))return gn.Yb(a,y,ne,oe,Ee,he,ge);var ke=(a+E)/2,Ve=(y+b)/2,Ze=(E+x)/2,st=(b+z)/2;x=(x+ne)/2,z=(z+oe)/2,b=(ke+Ze)/2,E=(Ve+st)/2,Ze=(Ze+x)/2,st=(st+z)/2;var Ot=(b+Ze)/2,Pt=(E+st)/2;return gn.cs(a,y,ke,Ve,b,E,Ot,Pt,ue,he,ge,Ee)||gn.cs(Ot,Pt,Ze,st,x,z,ne,oe,ue,he,ge,Ee)},ax:function(a,y,E,b,x,z,ne,oe,ue){var he=(E+x)/2,ge=(b+z)/2;return ue.h((((a+E)/2+he)/2+(he+(x+ne)/2)/2)/2,(((y+b)/2+ge)/2+(ge+(z+oe)/2)/2)/2),ue},My:function(a,y,E,b,x,z,ne,oe){var ue=(E+x)/2,he=(b+z)/2;return or(((a+E)/2+ue)/2,((y+b)/2+he)/2,(ue+(x+ne)/2)/2,(he+(z+oe)/2)/2)},Dl:function(a,y,E,b,x,z,ne,oe,ue,he){if(gn.Yb(a,y,ne,oe,ue,E,b)&&gn.Yb(a,y,ne,oe,ue,x,z))Wa(he,a,y,0,0),Wa(he,ne,oe,0,0);else{var ge=(a+E)/2,Ee=(y+b)/2,ke=(E+x)/2,Ve=(b+z)/2;x=(x+ne)/2,z=(z+oe)/2,b=(ge+ke)/2,E=(Ee+Ve)/2,ke=(ke+x)/2,Ve=(Ve+z)/2;var Ze=(b+ke)/2,st=(E+Ve)/2;gn.Dl(a,y,ge,Ee,b,E,Ze,st,ue,he),gn.Dl(Ze,st,ke,Ve,x,z,ne,oe,ue,he)}return he},Qe:function(a,y,E,b,x,z,ne,oe,ue,he){if(gn.Yb(a,y,ne,oe,ue,E,b)&&gn.Yb(a,y,ne,oe,ue,x,z))he.length===0&&(he.push(a),he.push(y)),he.push(ne),he.push(oe);else{var ge=(a+E)/2,Ee=(y+b)/2,ke=(E+x)/2,Ve=(b+z)/2;x=(x+ne)/2,z=(z+oe)/2,b=(ge+ke)/2,E=(Ee+Ve)/2,ke=(ke+x)/2,Ve=(Ve+z)/2;var Ze=(b+ke)/2,st=(E+Ve)/2;gn.Qe(a,y,ge,Ee,b,E,Ze,st,ue,he),gn.Qe(Ze,st,ke,Ve,x,z,ne,oe,ue,he)}return he},jv:function(a,y,E,b,x,z,ne,oe,ue,he){if(gn.Yb(a,y,x,z,he,E,b))return gn.Yb(a,y,x,z,he,oe,ue);var ge=(a+E)/2,Ee=(y+b)/2;E=(E+x)/2,b=(b+z)/2;var ke=(ge+E)/2,Ve=(Ee+b)/2;return gn.jv(a,y,ge,Ee,ke,Ve,ne,oe,ue,he)||gn.jv(ke,Ve,E,b,x,z,ne,oe,ue,he)},OA:function(a,y,E,b,x,z,ne){return ne.h(((a+E)/2+(E+x)/2)/2,((y+b)/2+(b+z)/2)/2),ne},iv:function(a,y,E,b,x,z,ne,oe){if(gn.Yb(a,y,x,z,ne,E,b))Wa(oe,a,y,0,0),Wa(oe,x,z,0,0);else{var ue=(a+E)/2,he=(y+b)/2;E=(E+x)/2,b=(b+z)/2;var ge=(ue+E)/2,Ee=(he+b)/2;gn.iv(a,y,ue,he,ge,Ee,ne,oe),gn.iv(ge,Ee,E,b,x,z,ne,oe)}return oe},ep:function(a,y,E,b,x,z,ne,oe){if(gn.Yb(a,y,x,z,ne,E,b))oe.length===0&&(oe.push(a),oe.push(y)),oe.push(x),oe.push(z);else{var ue=(a+E)/2,he=(y+b)/2;E=(E+x)/2,b=(b+z)/2;var ge=(ue+E)/2,Ee=(he+b)/2;gn.ep(a,y,ue,he,ge,Ee,ne,oe),gn.ep(ge,Ee,E,b,x,z,ne,oe)}return oe},Eo:function(a,y,E,b,x,z,ne,oe,ue,he,ge,Ee,ke,Ve){if(gn.Yb(a,y,ne,oe,ke,E,b)&&gn.Yb(a,y,ne,oe,ke,x,z))return!gn.Rl(a,y,ne,oe,ue,he,ge,Ee)||(ke=(a-ne)*(he-Ee)-(y-oe)*(ue-ge),ke===0)?!1:(Ve.h(((a*oe-y*ne)*(ue-ge)-(a-ne)*(ue*Ee-he*ge))/ke,((a*oe-y*ne)*(he-Ee)-(y-oe)*(ue*Ee-he*ge))/ke),!0);var Ze=(a+E)/2,st=(y+b)/2,Ot=(E+x)/2,Pt=(b+z)/2;x=(x+ne)/2,z=(z+oe)/2,b=(Ze+Ot)/2,E=(st+Pt)/2,Ot=(Ot+x)/2,Pt=(Pt+z)/2;var zt=(b+Ot)/2,Kt=(E+Pt)/2,Jt=1/0,dn=!1,kn=0,Xr=0;return gn.Eo(a,y,Ze,st,b,E,zt,Kt,ue,he,ge,Ee,ke,Ve)&&(a=(Ve.x-ue)*(Ve.x-ue)+(Ve.y-he)*(Ve.y-he),a<Jt&&(Jt=a,dn=!0,kn=Ve.x,Xr=Ve.y)),gn.Eo(zt,Kt,Ot,Pt,x,z,ne,oe,ue,he,ge,Ee,ke,Ve)&&(Ve.x-ue)*(Ve.x-ue)+(Ve.y-he)*(Ve.y-he)<Jt&&(dn=!0,kn=Ve.x,Xr=Ve.y),dn&&(Ve.x=kn,Ve.y=Xr),dn},Fo:function(a,y,E,b,x,z,ne,oe,ue,he,ge,Ee,ke){var Ve=0;if(gn.Yb(a,y,ne,oe,ke,E,b)&&gn.Yb(a,y,ne,oe,ke,x,z)){if(ke=(a-ne)*(he-Ee)-(y-oe)*(ue-ge),ke===0)return Ve;var Ze=((a*oe-y*ne)*(ue-ge)-(a-ne)*(ue*Ee-he*ge))/ke,st=((a*oe-y*ne)*(he-Ee)-(y-oe)*(ue*Ee-he*ge))/ke;if(Ze>=ge)return Ve;if((ue>ge?ue-ge:ge-ue)<(he>Ee?he-Ee:Ee-he)){if(y<oe?(ue=y,a=oe):(ue=oe,a=y),st<ue||st>a)return Ve}else if(a<ne?(ue=a,a=ne):ue=ne,Ze<ue||Ze>a)return Ve;0<ke?Ve++:0>ke&&Ve--}else{Ze=(a+E)/2,st=(y+b)/2;var Ot=(E+x)/2,Pt=(b+z)/2;x=(x+ne)/2,z=(z+oe)/2,b=(Ze+Ot)/2,E=(st+Pt)/2,Ot=(Ot+x)/2,Pt=(Pt+z)/2;var zt=(b+Ot)/2,Kt=(E+Pt)/2;Ve+=gn.Fo(a,y,Ze,st,b,E,zt,Kt,ue,he,ge,Ee,ke),Ve+=gn.Fo(zt,Kt,Ot,Pt,x,z,ne,oe,ue,he,ge,Ee,ke)}return Ve},qh:function(a,y,E,b,x,z,ne){return gn.$(a,E)?(y<b?(E=y,y=b):E=b,z<E?(ne.h(a,E),!1):z>y?(ne.h(a,y),!1):(ne.h(a,z),!0)):gn.$(y,b)?(a<E?(b=a,a=E):b=E,x<b?(ne.h(b,y),!1):x>a?(ne.h(a,y),!1):(ne.h(x,y),!0)):(x=((a-x)*(a-E)+(y-z)*(y-b))/((E-a)*(E-a)+(b-y)*(b-y)),-5e-6>x?(ne.h(a,y),!1):1.000005<x?(ne.h(E,b),!1):(ne.h(a+x*(E-a),y+x*(b-y)),!0))},Ve:function(a,y,E,b,x,z,ne,oe,ue){return gn.B(a,E)&&gn.B(y,b)?(ue.h(a,y),!1):gn.$(x,ne)?gn.$(a,E)?(gn.qh(a,y,E,b,x,z,ue),!1):gn.qh(a,y,E,b,x,(b-y)/(E-a)*(x-a)+y,ue):(oe=(oe-z)/(ne-x),gn.$(a,E)?(E=oe*(a-x)+z,y<b?(x=y,y=b):x=b,E<x?(ue.h(a,x),!1):E>y?(ue.h(a,y),!1):(ue.h(a,E),!0)):(ne=(b-y)/(E-a),gn.$(oe,ne)?(gn.qh(a,y,E,b,x,z,ue),!1):(x=(ne*a-oe*x+z-y)/(ne-oe),gn.$(ne,0)?(a<E?(b=a,a=E):b=E,x<b?(ue.h(b,y),!1):x>a?(ue.h(a,y),!1):(ue.h(x,y),!0)):gn.qh(a,y,E,b,x,ne*(x-a)+y,ue))))},MA:function(a,y,E,b,x){return gn.Ve(E.x,E.y,b.x,b.y,a.x,a.y,y.x,y.y,x)},KA:function(a,y,E,b,x,z,ne,oe,ue,he){function ge(Ot,Pt){var zt=(Ot-a)*(Ot-a)+(Pt-y)*(Pt-y);zt<Ee&&(Ee=zt,ue.h(Ot,Pt))}var Ee=1/0;ge(ue.x,ue.y);var ke=0,Ve=0,Ze=0,st=0;if(x<ne?(ke=x,Ve=ne):(ke=ne,Ve=x),z<oe?(Ze=x,st=ne):(Ze=ne,st=x),ke=(Ve-ke)/2+he,he=(st-Ze)/2+he,x=(x+ne)/2,z=(z+oe)/2,ke===0||he===0)return ue;if(.5>(E>a?E-a:a-E)){if(ke=1-(E-x)*(E-x)/(ke*ke),0>ke)return ue;ke=Math.sqrt(ke),b=-he*ke+z,ge(E,he*ke+z),ge(E,b)}else{if(E=(b-y)/(E-a),b=1/(ke*ke)+E*E/(he*he),oe=2*E*(y-E*a)/(he*he)-2*E*z/(he*he)-2*x/(ke*ke),ke=oe*oe-4*b*(2*E*a*z/(he*he)-2*y*z/(he*he)+z*z/(he*he)+x*x/(ke*ke)-1+(y-E*a)*(y-E*a)/(he*he)),0>ke)return ue;ke=Math.sqrt(ke),he=(-oe+ke)/(2*b),ge(he,E*he-E*a+y),ke=(-oe-ke)/(2*b),ge(ke,E*ke-E*a+y)}return ue},Ff:function(a,y,E,b,x,z,ne,oe,ue){var he=1e21,ge=a,Ee=y;if(gn.Ve(a,y,a,b,x,z,ne,oe,ue)){var ke=(ue.x-x)*(ue.x-x)+(ue.y-z)*(ue.y-z);ke<he&&(he=ke,ge=ue.x,Ee=ue.y)}return gn.Ve(E,y,E,b,x,z,ne,oe,ue)&&(ke=(ue.x-x)*(ue.x-x)+(ue.y-z)*(ue.y-z),ke<he&&(he=ke,ge=ue.x,Ee=ue.y)),gn.Ve(a,y,E,y,x,z,ne,oe,ue)&&(y=(ue.x-x)*(ue.x-x)+(ue.y-z)*(ue.y-z),y<he&&(he=y,ge=ue.x,Ee=ue.y)),gn.Ve(a,b,E,b,x,z,ne,oe,ue)&&(a=(ue.x-x)*(ue.x-x)+(ue.y-z)*(ue.y-z),a<he&&(he=a,ge=ue.x,Ee=ue.y)),ue.h(ge,Ee),1e21>he},us:function(a,y,E){return gn.Fx(a.x,a.y,a.width,a.height,y.x,y.y,E.x,E.y)},Fx:function(a,y,E,b,x,z,ne,oe){var ue=a+E,he=y+b;return x===ne?(z<oe?(ne=z,z=oe):ne=oe,a<=x&&x<=ue&&ne<=he&&z>=y):z===oe?(x<ne?(oe=x,x=ne):oe=ne,y<=z&&z<=he&&oe<=ue&&x>=a):!!(vs(a,y,E,b,x,z)||vs(a,y,E,b,ne,oe)||gn.Rl(a,y,ue,y,x,z,ne,oe)||gn.Rl(ue,y,ue,he,x,z,ne,oe)||gn.Rl(ue,he,a,he,x,z,ne,oe)||gn.Rl(a,he,a,y,x,z,ne,oe))},Rl:function(a,y,E,b,x,z,ne,oe){return a===E&&y===b&&x===ne&&z===oe?a===x&&y===z:0>=gn.Fl(a,y,E,b,x,z)*gn.Fl(a,y,E,b,ne,oe)&&0>=gn.Fl(x,z,ne,oe,a,y)*gn.Fl(x,z,ne,oe,E,b)},Fl:function(a,y,E,b,x,z){return E-=a,b-=y,a=x-a,y=z-y,z=a*b-y*E,z===0&&(z=a*E+y*b,0<z&&(z=(a-E)*E+(y-b)*b,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,E,b,x,z){var ne=Math.PI;z||(b*=ne/180,x*=ne/180);var oe=b>x?-1:1;z=[];var ue=ne/2,he=b;if(b=Math.min(2*ne,Math.abs(x-b)),1e-5>b)return ue=he+oe*Math.min(b,ue),oe=a+E*Math.cos(he),he=y+E*Math.sin(he),a+=E*Math.cos(ue),y+=E*Math.sin(ue),E=(oe+a)/2,ue=(he+y)/2,z.push([oe,he,E,ue,E,ue,a,y]),z;for(;1e-5<b;)x=he+oe*Math.min(b,ue),z.push(gn.Vy(E,he,x,a,y)),b-=Math.abs(x-he),he=x;return z},Vy:function(a,y,E,b,x){var z=(E-y)/2,ne=a*Math.cos(z),oe=a*Math.sin(z),ue=-oe,he=ne*ne+ue*ue,ge=he+ne*ne+ue*oe;return he=4/3*(Math.sqrt(2*he*ge)-ge)/(ne*oe-ue*ne),oe=ne-he*ue,ne=ue+he*ne,ue=-ne,he=z+y,z=Math.cos(he),he=Math.sin(he),[b+a*Math.cos(y),x+a*Math.sin(y),b+oe*z-ne*he,x+oe*he+ne*z,b+oe*z-ue*he,x+oe*he+ue*z,b+a*Math.cos(E),x+a*Math.sin(E)]},No:function(a,y,E,b,x,z,ne){E=Math.floor((a-E)/x)*x+E,b=Math.floor((y-b)/z)*z+b;var oe=E;return E+x-a<x/2&&(oe=E+x),a=b,b+z-y<z/2&&(a=b+z),ne.h(oe,a),ne},vx:function(a,y){var E=Math.max(a,y);a=Math.min(a,y);var b;do y=E%a,E=b=a,a=y;while(0<y);return b},$y:function(a,y,E,b){var x=0>E,z=0>b;if(a<y)var ne=1,oe=0;else ne=0,oe=1;var ue=ne===0?a:y,he=ne===0?E:b;return(ne===0?x:z)&&(he=-he),ne=oe,E=ne===0?E:b,(ne===0?x:z)&&(E=-E),gn.az(ue,ne===0?a:y,he,E,0,0)},az:function(a,y,E,b,x,z){if(0<b)if(0<E){x=a*a,z=y*y,a*=E;var ne=y*b,oe=-z+ne,ue=-z+Math.sqrt(a*a+ne*ne);y=oe;for(var he=0;9999999999>he&&(y=.5*(oe+ue),!(y===oe||y===ue));++he){var ge=a/(y+x),Ee=ne/(y+z);if(ge=ge*ge+Ee*Ee-1,0<ge)oe=y;else if(0>ge)ue=y;else break}E=x*E/(y+x)-E,b=z*b/(y+z)-b,E=Math.sqrt(E*E+b*b)}else E=Math.abs(b-y);else b=a*a-y*y,z=a*E,z<b?(b=z/b,z=y*Math.sqrt(Math.abs(1-b*b)),E=a*b-E,E=Math.sqrt(E*E+z*z)):E=Math.abs(E-a);return E},Ze:new lo,um:new lo,Mf:new lo,Nf:0,vm:100};gn.za=gn.AA;function Mr(a){At(this),this.l=2,a===void 0&&(a=Mr.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Mr.o?this.ee=new Ar:(Mr.V===null&&(Mr.V=new Ar().freeze()),this.ee=Mr.V),this.aq=this.ee.Ja,this.Ip=new Un().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Vs,this.gg=eu,this.Rk=this.Sk=NaN,this.Uf=Lr}Mr.prototype.copy=function(){var a=new Mr;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===Mr.o){for(var y=this.ee.s,E=a.ee,b=0;b<y.length;b++)E.add(y[b].copy());a.ee=E}else a.ee=this.ee;return a.aq=this.aq,a.Ip.assign(this.Ip),a.tk=this.tk,a.ym=this.ym,a.zm=this.zm,a.fg=this.fg.J(),a.gg=this.gg.J(),a.Sk=this.Sk,a.Rk=this.Rk,a.Uf=this.Uf,a},Mr.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Mr.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Mr.o)return this;var a=this.figures;a.freeze(),a=a.s;for(var y=a.length,E=0;E<y;E++)a[E].freeze();return this},Mr.prototype.ka=function(){if(Object.isFrozen(this)&&Pn("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Mr.o)return this;var a=this.figures;a.ka(),a=a.s;for(var y=a.length,E=0;E<y;E++)a[E].ka();return this},Mr.prototype.Xa=function(a){if(!(a instanceof Mr))return!1;if(this.type!==a.type)return this.type===Mr.j&&a.type===Mr.o?Cu(this,a):a.type===Mr.j&&this.type===Mr.o?Cu(a,this):!1;if(this.type===Mr.o){var y=this.figures.s;a=a.figures.s;var E=y.length;if(E!==a.length)return!1;for(var b=0;b<E;b++)if(!y[b].Xa(a[b]))return!1;return!0}return gn.B(this.startX,a.startX)&&gn.B(this.startY,a.startY)&&gn.B(this.endX,a.endX)&&gn.B(this.endY,a.endY)};function Cu(a,y){return a.type!==Mr.j||y.type!==Mr.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&gn.B(a.startX,y.startX)&&gn.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===ns&&gn.B(a.endX,y.endX)&&gn.B(a.endY,y.endY))))}Mr.ia=function(a){return a.toString()},Mr.prototype.qb=function(a){a.classType===Mr&&(this.type=a)},Mr.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Mr.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 Mr.u:var y=new Un(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 Mr.F:if(y=new Un(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var E=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+E+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+E;case Mr.o:y="",E=this.figures.s;for(var b=E.length,x=0;x<b;x++){var z=E[x];0<x&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},Mr.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,E="",b=0;b<y;b++){var x=a[b];E=x.match(/[Ff]/)!==null?b===0?E+x:E+("X"+(x[0]===" "?"":" ")+x):E+((b===0?"":"X ")+"F"+(x[0]===" "?"":" ")+x)}return E},Mr.parse=function(a,y){function E(){return st>=Jt-1?!0:he[st+1].match(dn)!==null}function b(){return st++,he[st]}function x(Oo){var Eo=parseFloat(b()),ts=parseFloat(b());Ot===Ot.toLowerCase()&&(Eo=Kt.x+Eo,ts=Kt.y+ts),Oo.h(Eo,ts)}function z(){return x(Kt),Kt}function ne(){return x(zt),zt}function oe(){var Oo=Pt.toLowerCase();return Oo!=="c"&&Oo!=="s"&&Oo!=="q"&&Oo!=="t"?Kt:new xt(2*Kt.x-zt.x,2*Kt.y-zt.y)}y===void 0&&(y=!1);var ue=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(ue,"$1 $2"),a=a.replace(ue,"$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 he=a.split(" ");for(a=0;a<he.length;a++){var ge=he[a];if(ge.match(/(\.[0-9]*)(\.)/gm)!==null){ue=Oi();for(var Ee="",ke=!1,Ve=0;Ve<ge.length;Ve++){var Ze=ge[Ve];Ze!=="."||ke?Ze==="."?(ue.push(Ee),Ee="."):Ee+=Ze:(ke=!0,Ee+=Ze)}for(ue.push(Ee),he.splice(a,1),ge=0;ge<ue.length;ge++)he.splice(a+ge,0,ue[ge]);a+=ue.length-1,Yi(ue)}}var st=-1,Ot="",Pt="";ue=new xt(0,0);var zt=new xt(0,0),Kt=new xt(0,0),Jt=he.length;a=DS(null),ke=Ee=ge=!1,Ve=!0,Ze=null;for(var dn=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(st>=Jt-1);)if(Pt=Ot,Ot=b(),Ot!=="")switch(Ot.toUpperCase()){case"X":Ve=!0,Ee=ge=!1;break;case"M":for(Ze=z(),a.mc===null||Ve===!0?(vg(a,Ze.x,Ze.y,ge,!Ee,ke),Ve=!1):a.moveTo(Ze.x,Ze.y),ue.assign(Kt);!E();)Ze=z(),a.lineTo(Ze.x,Ze.y);break;case"L":for(;!E();)Ze=z(),a.lineTo(Ze.x,Ze.y);break;case"H":for(;!E();)Kt=new xt((Ot===Ot.toLowerCase()?Kt.x:0)+parseFloat(b()),Kt.y),a.lineTo(Kt.x,Kt.y);break;case"V":for(;!E();)Kt=new xt(Kt.x,(Ot===Ot.toLowerCase()?Kt.y:0)+parseFloat(b())),a.lineTo(Kt.x,Kt.y);break;case"C":for(;!E();){Ze=new xt,x(Ze);var kn=ne(),Xr=z();cf(a,Ze.x,Ze.y,kn.x,kn.y,Xr.x,Xr.y)}break;case"S":for(;!E();)Ze=oe(),kn=ne(),Xr=z(),cf(a,Ze.x,Ze.y,kn.x,kn.y,Xr.x,Xr.y);break;case"Q":for(;!E();)Ze=ne(),kn=z(),d0(a,Ze.x,Ze.y,kn.x,kn.y);break;case"T":for(;!E();)zt=Ze=oe(),kn=z(),d0(a,Ze.x,Ze.y,kn.x,kn.y);break;case"B":for(;!E();){Ze=parseFloat(b()),kn=parseFloat(b()),Xr=parseFloat(b());var Ei=parseFloat(b()),fi=parseFloat(b()),Dr=fi,gr=!1;E()||(Dr=parseFloat(b()),E()||(gr=parseFloat(b())!==0)),Ot===Ot.toLowerCase()&&(Xr+=Kt.x,Ei+=Kt.y),a.arcTo(Ze,kn,Xr,Ei,fi,Dr,gr)}break;case"A":for(;!E();)Ze=Math.abs(parseFloat(b())),kn=Math.abs(parseFloat(b())),Xr=parseFloat(b()),fi=Ei=!1,gr=Dr=0,Dr=b(),Dr.length===1?(Ei=!!parseFloat(Dr),fi=!!parseFloat(b()),Dr=parseFloat(b())):Dr.length===2?(Ei=!!parseFloat(Dr[0]),fi=!!parseFloat(Dr[1]),Dr=parseFloat(b())):(Ei=!!parseFloat(Dr[0]),fi=!!parseFloat(Dr[1]),Dr=parseFloat(Dr.slice(2))),gr=parseFloat(b()),Ot===Ot.toLowerCase()&&(Dr=Kt.x+Dr,gr=Kt.y+gr),Kt.h(Dr,gr),d1(a,Ze,kn,Xr,Ei,fi,Dr,gr);break;case"Z":c1(a),Kt.assign(ue);break;case"F":for(Ze="",kn=1;he[st+kn];)if(he[st+kn]==="0")ke=!0,kn++;else if(he[st+kn].match(/[Uu]/)!==null)kn++;else if(he[st+kn].match(dn)===null)kn++;else{Ze=he[st+kn];break}Ze.match(/[Mm]/)?ge=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Ze="",kn=1;he[st+kn];)if(he[st+kn].match(/[Ff]/)!==null)kn++;else if(he[st+kn].match(dn)===null)kn++;else{Ze=he[st+kn];break}Ze.match(/[Mm]/)?Ee=!0:a.mc.isShadowed=!1}if(ue=a.os,h0=a,y)for(y=ue.figures.iterator;y.next();)y.value.isFilled=!0;return ue},Mr.Ha=function(a,y){for(var E=a.length,b=xt.alloc(),x=0;x<E;x++){var z=a[x];b.x=z[0],b.y=z[1],y.Ga(b),z[0]=b.x,z[1]=b.y,b.x=z[2],b.y=z[3],y.Ga(b),z[2]=b.x,z[3]=b.y,b.x=z[4],b.y=z[5],y.Ga(b),z[4]=b.x,z[5]=b.y,b.x=z[6],b.y=z[7],y.Ga(b),z[6]=b.x,z[7]=b.y}xt.free(b)},Mr.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Mr.o){if(this.aq!==this.figures.Ja)return!0;for(var a=this.figures.s,y=a.length,E=0;E<y;E++)if(a[E].Zu())return!0}return!1},Mr.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Mr.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,E=0;E<y;E++){var b=a[E];b._isInvalidBounds=!1;var x=b.segments;b.sr=x.Ja,b=x.s,x=b.length;for(var z=0;z<x;z++){var ne=b[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),dc(this,a,!1),Wa(a,0,0,0,0),a.freeze()},Mr.prototype.ix=function(){var a=new Un;return dc(this,a,!0),a};function dc(a,y,E){switch(a.type){case Mr.j:case Mr.u:case Mr.F:E?y.h(a.od,a.pd,0,0):Wa(y,a.od,a.pd,0,0),Wa(y,a.Dc,a.Ec,0,0);break;case Mr.o:var b=a.figures;a=b.s,b=b.length;for(var x=0;x<b;x++){var z=a[x];E&&x===0?y.h(z.startX,z.startY,0,0):Wa(y,z.startX,z.startY,0,0);for(var ne=z.segments.s,oe=ne.length,ue=z.startX,he=z.startY,ge=0;ge<oe;ge++){var Ee=ne[ge];switch(Ee.type){case ns:case el:ue=Ee.endX,he=Ee.endY,Wa(y,ue,he,0,0);break;case Nl:gn.Dl(ue,he,Ee.point1X,Ee.point1Y,Ee.point2X,Ee.point2Y,Ee.endX,Ee.endY,.5,y),ue=Ee.endX,he=Ee.endY;break;case Au:gn.iv(ue,he,Ee.point1X,Ee.point1Y,Ee.endX,Ee.endY,.5,y),ue=Ee.endX,he=Ee.endY;break;case ll:case uu:var ke=Ee.type===ll?Ql(Ee,z):Jl(Ee,z,ue,he),Ve=ke.length;if(Ve===0){ue=Ee.type===ll?Ee.centerX:Ee.endX,he=Ee.type===ll?Ee.centerY:Ee.endY,Wa(y,ue,he,0,0);break}Ee=null;for(var Ze=0;Ze<Ve;Ze++)Ee=ke[Ze],gn.Dl(Ee[0],Ee[1],Ee[2],Ee[3],Ee[4],Ee[5],Ee[6],Ee[7],.5,y);Ee!==null&&(ue=Ee[6],he=Ee[7]);break;default:Pn("Unknown Segment type: "+Ee.type)}}}break;default:Pn("Unknown Geometry type: "+a.type)}}Mr.prototype.normalize=function(){this._isFrozen&&xi(this);var a=this.ix();return this.offset(-a.x,-a.y),new xt(-a.x,-a.y)},Mr.prototype.offset=function(a,y){return this._isFrozen&&xi(this),this.transform(1,0,0,1,a,y),this},Mr.prototype.scale=function(a,y){return this._isFrozen&&xi(this),this.transform(a,0,0,y,0,0),this},Mr.prototype.rotate=function(a,y,E){this._isFrozen&&xi(this),y===void 0&&(y=0),E===void 0&&(E=0);var b=No.alloc();return b.reset(),b.rotate(a,y,E),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),No.free(b),this},We=Mr.prototype,We.transform=function(a,y,E,b,x,z){switch(this.type){case Mr.j:case Mr.u:case Mr.F:var ne=this.od,oe=this.pd;this.od=ne*a+oe*E+x,this.pd=ne*y+oe*b+z,ne=this.Dc,oe=this.Ec,this.Dc=ne*a+oe*E+x,this.Ec=ne*y+oe*b+z;break;case Mr.o:for(var ue=this.figures.s,he=ue.length,ge=0;ge<he;ge++){var Ee=ue[ge];ne=Ee.startX,oe=Ee.startY,Ee.startX=ne*a+oe*E+x,Ee.startY=ne*y+oe*b+z,Ee=Ee.segments.s;for(var ke=Ee.length,Ve=0;Ve<ke;Ve++){var Ze=Ee[Ve];switch(Ze.type){case ns:case el:ne=Ze.endX,oe=Ze.endY,Ze.endX=ne*a+oe*E+x,Ze.endY=ne*y+oe*b+z;break;case Nl:ne=Ze.point1X,oe=Ze.point1Y,Ze.point1X=ne*a+oe*E+x,Ze.point1Y=ne*y+oe*b+z,ne=Ze.point2X,oe=Ze.point2Y,Ze.point2X=ne*a+oe*E+x,Ze.point2Y=ne*y+oe*b+z,ne=Ze.endX,oe=Ze.endY,Ze.endX=ne*a+oe*E+x,Ze.endY=ne*y+oe*b+z;break;case Au:ne=Ze.point1X,oe=Ze.point1Y,Ze.point1X=ne*a+oe*E+x,Ze.point1Y=ne*y+oe*b+z,ne=Ze.endX,oe=Ze.endY,Ze.endX=ne*a+oe*E+x,Ze.endY=ne*y+oe*b+z;break;case ll:ne=Ze.centerX,oe=Ze.centerY,Ze.centerX=ne*a+oe*E+x,Ze.centerY=ne*y+oe*b+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>b&&(Ze.startAngle=-Ze.startAngle,Ze.sweepAngle=-Ze.sweepAngle),Ze.radiusX*=Math.sqrt(a*a+E*E),Ze.radiusY!==void 0&&(Ze.radiusY*=Math.sqrt(y*y+b*b));break;case uu:if(ne=Ze.endX,oe=Ze.endY,Ze.endX=ne*a+oe*E+x,Ze.endY=ne*y+oe*b+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>b&&(Ze.xAxisRotation=-Ze.xAxisRotation,Ze.isClockwiseArc=!Ze.isClockwiseArc),Ze.radiusX*=Math.sqrt(a*a+E*E),Ze.radiusY*=Math.sqrt(y*y+b*b);break;default:Pn("Unknown Segment type: "+Ze.type)}}}}return this._isInvalidBounds=!0,this},We.ca=function(a,y){y===void 0&&(y=0);var E=this.od,b=this.pd,x=this.Dc,z=this.Ec;switch(this.type){case Mr.j:return gn.Yb(E,b,x,z,y,a.x,a.y);case Mr.u:var ne=Un.allocAt(Math.min(E,x)-y,Math.min(b,z)-y,Math.abs(x-E)+2*y,Math.abs(z-b)+2*y);return a=ne.ca(a),Un.free(ne),a;case Mr.F:ne=Math.min(E,x)-y;var oe=Math.min(b,z)-y;return E=(Math.abs(x-E)+2*y)/2,y=(Math.abs(z-b)+2*y)/2,0>=E||0>=y?!1:(ne=a.x-(ne+E),oe=a.y-(oe+y),1>=ne*ne/(E*E)+oe*oe/(y*y));case Mr.o:return hc(this,a,y,!0,!1);default:return!1}};function hc(a,y,E,b,x){var z=y.x;y=y.y;for(var ne=a.bounds.x-20,oe=0,ue,he,ge,Ee,ke=a.figures.s,Ve=ke.length,Ze=0;Ze<Ve;Ze++){var st=ke[Ze],Ot=!st.isEvenOdd;if(st.isFilled){if(b&&st.ca(z,y,E))return!0;var Pt=st.segments;ue=st.startX,he=st.startY;for(var zt=ue,Kt=he,Jt=Pt.s,dn=0;dn<=Pt.length;dn++){var kn=void 0;if(dn!==Pt.length){kn=Jt[dn];var Xr=kn.type;a=kn.endX,Ee=kn.endY}else Xr=ns,a=zt,Ee=Kt;switch(Xr){case el:if(zt=yu(z,y,ne,y,ue,he,zt,Kt),isNaN(zt))return!0;oe+=zt,zt=a,Kt=Ee;break;case ns:if(ue=yu(z,y,ne,y,ue,he,a,Ee),isNaN(ue))return!0;oe+=ue;break;case Nl:ge=gn.Fo(ue,he,kn.point1X,kn.point1Y,kn.point2X,kn.point2Y,a,Ee,ne,y,z,y,.5),oe+=ge;break;case Au:ge=gn.Fo(ue,he,(ue+2*kn.point1X)/3,(he+2*kn.point1Y)/3,(2*kn.point1X+a)/3,(2*kn.point1Y+Ee)/3,a,Ee,ne,y,z,y,.5),oe+=ge;break;case ll:case uu:Xr=kn.type===ll?Ql(kn,st):Jl(kn,st,ue,he);var Ei=Xr.length;if(Ei===0){if(ue=yu(z,y,ne,y,ue,he,kn.type===ll?kn.centerX:kn.endX,kn.type===ll?kn.centerY:kn.endY),isNaN(ue))return!0;oe+=ue;break}kn=null;for(var fi=0;fi<Ei;fi++){if(kn=Xr[fi],fi===0){if(ge=yu(z,y,ne,y,ue,he,kn[0],kn[1]),isNaN(ge))return!0;oe+=ge}ge=gn.Fo(kn[0],kn[1],kn[2],kn[3],kn[4],kn[5],kn[6],kn[7],ne,y,z,y,.5),oe+=ge}kn!==null&&(a=kn[6],Ee=kn[7]);break;default:Pn("Unknown Segment type: "+kn.type)}ue=a,he=Ee}if(Ot){if(oe!==0)return!0}else if(oe%2!==0)return!0;oe=0}else if(st.ca(z,y,x?E:E+2))return!0}return!1}function yu(a,y,E,b,x,z,ne,oe){if(gn.Yb(x,z,ne,oe,.05,a,y))return NaN;var ue=(a-E)*(z-oe);if(ue===0)return 0;var he=((a*b-y*E)*(x-ne)-(a-E)*(x*oe-z*ne))/ue;if(y=(a*b-y*E)*(z-oe)/ue,he>=a)return 0;if((x>ne?x-ne:ne-x)<(z>oe?z-oe:oe-z)){if(z<oe){if(y<z||y>oe)return 0}else if(y<oe||y>z)return 0}else if(x<ne){if(he<x||he>ne)return 0}else if(he<ne||he>x)return 0;return 0<ue?1:-1}function Tu(a,y,E,b){a=a.figures.s;for(var x=a.length,z=0;z<x;z++)if(a[z].ca(y,E,b))return!0;return!1}We.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new xt),this.type===Mr.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var E=this.flattenedSegments,b=this.flattenedLengths,x=E.length,z=this.flattenedTotalLength*a,ne=0,oe=0;oe<x;oe++){var ue=b[oe],he=ue.length;for(a=0;a<he;a++){var ge=ue[a];if(ne+ge>=z)return b=z-ne,b=ge===0?0:b/ge,E=E[oe],oe=E[2*a],x=E[2*a+1],y.h(oe+(E[2*a+2]-oe)*b,x+(E[2*a+3]-x)*b),y;ne+=ge}}return y},We.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Mr.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,E=this.flattenedLengths,b=y.length,x=this.flattenedTotalLength*a,z=0,ne=0;ne<b;ne++){var oe=E[ne],ue=oe.length;for(a=0;a<ue;a++){var he=oe[a];if(z+he>=x)return x=y[ne],y=x[2*a],E=x[2*a+1],b=x[2*a+2],a=x[2*a+3],1>Math.abs(b-y)&&1>Math.abs(a-E)?0:1>Math.abs(b-y)?0<=a-E?90:270:1>Math.abs(a-E)?0<=b-y?0:180:180*Math.atan2(a-E,b-y)/Math.PI;z+=he}}return NaN},We.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Mr.j)return y[0]=this.startX+a*(this.endX-this.startX),y[1]=this.startY+a*(this.endY-this.startY),y[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,y;for(var E=this.flattenedSegments,b=this.flattenedLengths,x=E.length,z=this.flattenedTotalLength*a,ne=0,oe=0;oe<x;oe++){var ue=b[oe],he=ue.length;for(a=0;a<he;a++){var ge=ue[a];if(ne+ge>=z)return b=z-ne,b=ge===0?0:b/ge,ge=E[oe],E=ge[2*a],oe=ge[2*a+1],x=ge[2*a+2],a=ge[2*a+3],y[0]=E+(x-E)*b,y[1]=oe+(a-oe)*b,y[2]=1>Math.abs(x-E)&&1>Math.abs(a-oe)?0:1>Math.abs(x-E)?0<=a-oe?90:270:1>Math.abs(a-oe)?0<=x-E?0:180:180*Math.atan2(a-oe,x-E)/Math.PI,y;ne+=ge}}return y},We.xx=function(a){if(this.type===Mr.j){var y=this.startX,E=this.startY,b=this.endX,x=this.endY;if(y!==b||E!==x){var z=a.x;if(a=a.y,y===b){if(E<x){var ne=E;b=x}else ne=x,b=E;return a<=ne?ne===E?0:1:a>=b?b===E?0:1:Math.abs(a-E)/(b-ne)}if(E===x)return y<b?ne=y:(ne=b,b=y),z<=ne?ne===y?0:1:z>=b?b===y?0:1:Math.abs(z-y)/(b-ne);ne=(b-y)*(b-y)+(x-E)*(x-E);var oe=xt.alloc();return gn.qh(y,E,b,x,z,a,oe),a=oe.x,z=oe.y,xt.free(oe),Math.sqrt(((a-y)*(a-y)+(z-E)*(z-E))/ne)}}else if(this.type===Mr.u){ne=this.startX,oe=this.startY;var ue=this.endX;if(x=this.endY,ne!==ue||oe!==x){y=ue-ne,E=x-oe,z=2*y+2*E,b=a.x,a=a.y,b=Math.min(Math.max(b,ne),ue),a=Math.min(Math.max(a,oe),x),ne=Math.abs(b-ne),ue=Math.abs(b-ue),oe=Math.abs(a-oe),x=Math.abs(a-x);var he=Math.min(ne,ue,oe,x);if(he===oe)return b/z;if(he===ue)return(y+a)/z;if(he===x)return(2*y+E-b)/z;if(he===ne)return(2*y+2*E-a)/z}}else{y=this.flattenedSegments,E=this.flattenedLengths,z=this.flattenedTotalLength,b=xt.alloc(),x=1/0,oe=ne=0,ue=y.length;for(var ge=he=0,Ee=0;Ee<ue;Ee++)for(var ke=y[Ee],Ve=E[Ee],Ze=ke.length,st=0;st<Ze;st+=2){var Ot=ke[st],Pt=ke[st+1];if(st!==0){gn.qh(he,ge,Ot,Pt,a.x,a.y,b);var zt=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);zt<x&&(x=zt,ne=oe,ne+=Math.sqrt((b.x-he)*(b.x-he)+(b.y-ge)*(b.y-ge))),oe+=Ve[(st-2)/2]}he=Ot,ge=Pt}return xt.free(b),a=ne/z,0>a?0:1<a?1:a}return 0};function fc(a){if(a.tk===null){var y=a.tk=[],E=a.ym=[],b=[],x=[];if(a.type===Mr.j)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.endY),y.push(b),x.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),E.push(x);else if(a.type===Mr.u)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.startY),b.push(a.endX),b.push(a.endY),b.push(a.startX),b.push(a.endY),b.push(a.startX),b.push(a.startY),y.push(b),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)),E.push(x);else if(a.type===Mr.F){var z=new ml;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var ne=new ua(ll);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=Ql(ne,z),x=a.length,x===0)b.push(ne.centerX),b.push(ne.centerY);else{ne=z.startX,z=z.startY;for(var oe=0;oe<x;oe++){var ue=a[oe];gn.Qe(ne,z,ue[2],ue[3],ue[4],ue[5],ue[6],ue[7],.5,b),ne=ue[6],z=ue[7]}}y.push(b),E.push(Du(b))}else for(a=a.figures.iterator;a.next();){x=a.value,b=[],b.push(x.startX),b.push(x.startY),ne=x.startX,z=x.startY,oe=ne,ue=z;for(var he=x.segments.s,ge=he.length,Ee=0;Ee<ge;Ee++){var ke=he[Ee];switch(ke.type){case el:4<=b.length&&(y.push(b),E.push(Du(b))),b=[],b.push(ke.endX),b.push(ke.endY),ne=ke.endX,z=ke.endY,oe=ne,ue=z;break;case ns:b.push(ke.endX),b.push(ke.endY),ne=ke.endX,z=ke.endY;break;case Nl:gn.Qe(ne,z,ke.point1X,ke.point1Y,ke.point2X,ke.point2Y,ke.endX,ke.endY,.5,b),ne=ke.endX,z=ke.endY;break;case Au:gn.ep(ne,z,ke.point1X,ke.point1Y,ke.endX,ke.endY,.5,b),ne=ke.endX,z=ke.endY;break;case ll:var Ve=Ql(ke,x),Ze=Ve.length;if(Ze===0){b.push(ke.centerX),b.push(ke.centerY),ne=ke.centerX,z=ke.centerY;break}for(var st=0;st<Ze;st++){var Ot=Ve[st];gn.Qe(ne,z,Ot[2],Ot[3],Ot[4],Ot[5],Ot[6],Ot[7],.5,b),ne=Ot[6],z=Ot[7]}break;case uu:if(Ve=Jl(ke,x,ne,z),Ze=Ve.length,st=ke.endX,Ot=ke.endY,Ze===0){b.push(st),b.push(Ot),ne=st,z=Ot;break}for(st=0;st<Ze;st++)Ot=Ve[st],gn.Qe(ne,z,Ot[2],Ot[3],Ot[4],Ot[5],Ot[6],Ot[7],.5,b),ne=Ot[6],z=Ot[7];break;default:Pn("Segment not of valid type: "+ke.type)}ke.isClosed&&(b.push(oe),b.push(ue))}4<=b.length&&(y.push(b),E.push(Du(b)))}}}function Du(a){for(var y=[],E=0,b=0,x=a.length,z=0;z<x;z+=2){var ne=a[z],oe=a[z+1];z!==0&&y.push(Math.sqrt(Ln(E,b,ne,oe))),E=ne,b=oe}return y}We.add=function(a){return this.ee.add(a),this},We.pm=function(a,y,E,b,x,z,ne,oe){return this._isFrozen&&xi(this),this.fg=new ci(a,y,x,z).freeze(),this.gg=new ci(E,b,ne,oe).freeze(),this},tr.Object.defineProperties(Mr.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 fc(this),this.tk}},flattenedLengths:{get:function(){return fc(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===Mr.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===Mr.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var E=y.length,b=a=0;b<E;b++)for(var x=y[b],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&&xi(this,a),this.na=a,a===Mr.o?this.ee=new Ar:(Mr.V===null&&(Mr.V=new Ar().freeze()),this.ee=Mr.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&xi(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&xi(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&xi(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&xi(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&xi(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&xi(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&xi(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&xi(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Mr.prototype.setSpots=Mr.prototype.pm,Mr.prototype.add=Mr.prototype.add,Mr.prototype.getFractionForPoint=Mr.prototype.xx,Mr.prototype.getPointAndAngleAlongPath=Mr.prototype.Qu,Mr.prototype.getAngleAlongPath=Mr.prototype.wx,Mr.prototype.getPointAlongPath=Mr.prototype.Pu,Mr.prototype.containsPoint=Mr.prototype.ca,Mr.prototype.transform=Mr.prototype.transform,Mr.prototype.rotate=Mr.prototype.rotate,Mr.prototype.scale=Mr.prototype.scale,Mr.prototype.offset=Mr.prototype.offset,Mr.prototype.normalize=Mr.prototype.normalize,Mr.prototype.computeBoundsWithoutOrigin=Mr.prototype.ix,Mr.prototype.equalsApprox=Mr.prototype.Xa,Mr.className="Geometry",Mr.j=new Mn(Mr,"Line",0),Mr.u=new Mn(Mr,"Rectangle",1),Mr.F=new Mn(Mr,"Ellipse",2),Mr.o=new Mn(Mr,"Path",3),Mr.V=null,Mr.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Mr.className="Geometry",Mr.stringify=Mr.ia,Mr.fillPath=Mr.nb,Mr.parse=Mr.parse,Mr.Line=Mr.j,Mr.Rectangle=Mr.u,Mr.Ellipse=Mr.F,Mr.Path=Mr.o;function ml(a,y,E,b,x){At(this),E===void 0&&(E=!0),b===void 0&&(b=!0),x===void 0&&(x=!1),this.l=2|(E?4:0)|(b?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 Ar,this.sr=this.pl.Ja,this.fw=null}ml.prototype.copy=function(){var a=new ml;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,E=y.length,b=a.pl,x=0;x<E;x++){var z=y[x].copy();b.add(z)}return a.sr=this.sr,a.fw=this.fw,a},We=ml.prototype,We.Xa=function(a){if(!(a instanceof ml&&gn.B(this.startX,a.startX)&&gn.B(this.startY,a.startY)))return!1;var y=this.segments.s;a=a.segments.s;var E=y.length;if(E!==a.length)return!1;for(var b=0;b<E;b++)if(!y[b].Xa(a[b]))return!1;return!0},We.toString=function(a){a===void 0&&(a=-1);for(var y=0>a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),E=this.segments.s,b=E.length,x=0;x<b;x++)y+=" "+E[x].toString(a);return y},We.freeze=function(){this._isFrozen=!0;var a=this.segments;a.freeze();var y=a.s;a=a.length;for(var E=0;E<a;E++)y[E].freeze();return this},We.ka=function(){this._isFrozen=!1;var a=this.segments;a.ka(),a=a.s;for(var y=a.length,E=0;E<y;E++)a[E].ka();return this},We.Zu=function(){if(this._isInvalidBounds)return!0;var a=this.segments;if(this.sr!==a.Ja)return!0;a=a.s;for(var y=a.length,E=0;E<y;E++)if(a[E]._isInvalidBounds)return!0;return!1},We.add=function(a){return this.pl.add(a),this},We.ca=function(a,y,E){for(var b=this.startX,x=this.startY,z=b,ne=x,oe=this.segments.s,ue=oe.length,he=0;he<ue;he++){var ge=oe[he];switch(ge.type){case el:z=ge.endX,ne=ge.endY,b=ge.endX,x=ge.endY;break;case ns:if(gn.Yb(b,x,ge.endX,ge.endY,E,a,y))return!0;b=ge.endX,x=ge.endY;break;case Nl:if(gn.cs(b,x,ge.point1X,ge.point1Y,ge.point2X,ge.point2Y,ge.endX,ge.endY,.5,a,y,E))return!0;b=ge.endX,x=ge.endY;break;case Au:if(gn.jv(b,x,ge.point1X,ge.point1Y,ge.endX,ge.endY,.5,a,y,E))return!0;b=ge.endX,x=ge.endY;break;case ll:case uu:var Ee=ge.type===ll?Ql(ge,this):Jl(ge,this,b,x),ke=Ee.length,Ve=ge.type===ll?ge.centerX:ge.endX,Ze=ge.type===ll?ge.centerY:ge.endY;if(ke===0){if(gn.Yb(b,x,Ve,Ze,E,a,y))return!0;b=Ve,x=Ze;break}for(Ve=null,Ze=0;Ze<ke;Ze++)if(Ve=Ee[Ze],Ze===0&&gn.Yb(b,x,Ve[0],Ve[1],E,a,y)||gn.cs(Ve[0],Ve[1],Ve[2],Ve[3],Ve[4],Ve[5],Ve[6],Ve[7],.5,a,y,E))return!0;Ve!==null&&(b=Ve[6],x=Ve[7]);break;default:Pn("Unknown Segment type: "+ge.type)}if(ge.isClosed&&(b!==z||x!==ne)&&gn.Yb(b,x,z,ne,E,a,y))return!0}return!1},tr.Object.defineProperties(ml.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&&xi(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&xi(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&xi(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&xi(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&xi(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&xi(this,a),this.pl=a,this._isInvalidBounds=!0}}}),ml.prototype.add=ml.prototype.add,ml.prototype.equalsApprox=ml.prototype.Xa,ml.className="PathFigure";function ua(a,y,E,b,x,z,ne,oe){At(this),a===void 0&&(a=ns),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,E!==void 0?this.Ec=E:this.Ec=0,b===void 0&&(b=0),x===void 0&&(x=0),z===void 0&&(z=0),ne===void 0&&(ne=0),a===uu?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(b,0),this.Pg=Math.max(x,0),typeof ne=="boolean"?ne&&(this.isLargeArc=!0):typeof ne=="number"&&ne&&(this.isLargeArc=!0),oe&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=x,a===ll&&(z=Math.max(z,0)),this.Wh=z,typeof ne=="number"?(a===ll&&(ne=Math.max(ne,0)),this.Pg=ne):this.Pg=0),this.ae=null}ua.prototype.copy=function(){var a=new ua;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},We=ua.prototype,We.Xa=function(a){if(!(a instanceof ua)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case el:case ns:return gn.B(this.endX,a.endX)&&gn.B(this.endY,a.endY);case Nl:return gn.B(this.endX,a.endX)&&gn.B(this.endY,a.endY)&&gn.B(this.point1X,a.point1X)&&gn.B(this.point1Y,a.point1Y)&&gn.B(this.point2X,a.point2X)&&gn.B(this.point2Y,a.point2Y);case Au:return gn.B(this.endX,a.endX)&&gn.B(this.endY,a.endY)&&gn.B(this.point1X,a.point1X)&&gn.B(this.point1Y,a.point1Y);case ll:return gn.B(this.startAngle,a.startAngle)&&gn.B(this.sweepAngle,a.sweepAngle)&&gn.B(this.centerX,a.centerX)&&gn.B(this.centerY,a.centerY)&&gn.B(this.radiusX,a.radiusX)&&gn.B(this.radiusY,a.radiusY);case uu:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&gn.B(this.xAxisRotation,a.xAxisRotation)&&gn.B(this.endX,a.endX)&&gn.B(this.endY,a.endY)&&gn.B(this.radiusX,a.radiusX)&&gn.B(this.radiusY,a.radiusY);default:return!1}},We.qb=function(a){a.classType===ua&&(this.type=a)},We.toString=function(a){switch(a===void 0&&(a=-1),this.type){case el:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ns:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Nl: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 Au: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 ll: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 uu: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":"")},We.freeze=function(){return this._isFrozen=!0,this},We.ka=function(){return this._isFrozen=!1,this},We.close=function(){return this.isClosed=!0,this};function Ql(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var E=a.radiusX,b=a.radiusY;if(b===void 0&&(b=E),E===0||b===0)return a.ae=[],a.ae;y=a.Ne;var x=a.Vh,z=gn.jx(0,0,E<b?E:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(E!==b){var ne=No.alloc();ne.reset(),E<b?ne.scale(1,b/E):ne.scale(E/b,1),Mr.Ha(z,ne),No.free(ne)}for(E=z.length,b=0;b<E;b++)ne=z[b],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 Jl(a,y,E,b){function x(st,Ot,Pt,zt){return(st*zt<Ot*Pt?-1:1)*Math.acos((st*Pt+Ot*zt)/(Math.sqrt(st*st+Ot*Ot)*Math.sqrt(Pt*Pt+zt*zt)))}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,oe=a.isLargeArc,ue=a.isClockwiseArc,he=a.Dc,ge=a.Ec,Ee=Math.cos(ne),ke=Math.sin(ne),Ve=Ee*(E-he)/2+ke*(b-ge)/2;ne=-ke*(E-he)/2+Ee*(b-ge)/2;var Ze=Ve*Ve/(y*y)+ne*ne/(z*z);return 1<Ze&&(y*=Math.sqrt(Ze),z*=Math.sqrt(Ze)),Ze=(oe===ue?-1:1)*Math.sqrt((y*y*z*z-y*y*ne*ne-z*z*Ve*Ve)/(y*y*ne*ne+z*z*Ve*Ve)),isNaN(Ze)&&(Ze=0),oe=Ze*y*ne/z,Ze=Ze*-z*Ve/y,isNaN(oe)&&(oe=0),isNaN(Ze)&&(Ze=0),E=(E+he)/2+Ee*oe-ke*Ze,b=(b+ge)/2+ke*oe+Ee*Ze,ge=x(1,0,(Ve-oe)/y,(ne-Ze)/z),Ee=(Ve-oe)/y,he=(ne-Ze)/z,Ve=(-Ve-oe)/y,oe=(-ne-Ze)/z,ne=x(Ee,he,Ve,oe),Ve=(Ee*Ve+he*oe)/(Math.sqrt(Ee*Ee+he*he)*Math.sqrt(Ve*Ve+oe*oe)),-1>=Ve?ne=Math.PI:1<=Ve&&(ne=0),!ue&&0<ne&&(ne-=2*Math.PI),ue&&0>ne&&(ne+=2*Math.PI),ue=y>z?1:y/z,Ve=y>z?z/y:1,y=gn.jx(0,0,y>z?y:z,ge,ge+ne,!0),z=No.alloc(),z.reset(),z.translate(E,b),z.rotate(a.Ne,0,0),z.scale(ue,Ve),Mr.Ha(y,z),No.free(z),a.ae=y,a.ae}tr.Object.defineProperties(ua.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&&xi(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&xi(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&xi(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&xi(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&xi(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&xi(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&xi(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&xi(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&xi(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&ji(a,">= zero",ua,"radiusX"),this._isFrozen&&xi(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&ji(a,">= zero",ua,"radiusY"),this._isFrozen&&xi(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&xi(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&&xi(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&&xi(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&&xi(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&&xi(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),ua.prototype.equalsApprox=ua.prototype.Xa;var el=new Mn(ua,"Move",0),ns=new Mn(ua,"Line",1),Nl=new Mn(ua,"Bezier",2),Au=new Mn(ua,"QuadraticBezier",3),ll=new Mn(ua,"Arc",4),uu=new Mn(ua,"SvgArc",4);ua.className="PathSegment",ua.Move=el,ua.Line=ns,ua.Bezier=Nl,ua.QuadraticBezier=Au,ua.Arc=ll,ua.SvgArc=uu;function $l(){this.H=null,this.xu=new xt(0,0).freeze(),this.mt=new xt(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}$l.prototype.copy=function(){var a=new $l;return this.clone(a)},$l.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},$l.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},$l.prototype.So=function(a,y){var E=this.diagram;return E===null||nu(E,a,y),y},$l.prototype.Bz=function(a,y){var E=this.diagram;return E===null||(nu(E,a,y),y.assign(E.Ps(y))),y},tr.Object.defineProperties($l.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}}}),$l.prototype.getMultiTouchDocumentPoint=$l.prototype.Bz,$l.prototype.getMultiTouchViewPoint=$l.prototype.So,$l.className="InputEvent";function ac(){this.H=null,this.xa="",this.ar=this.Lr=null}ac.prototype.copy=function(){var a=new ac;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},ac.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},tr.Object.defineProperties(ac.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}}}),ac.className="DiagramEvent";function ks(){this.Fm=ys,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}ks.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},ks.prototype.copy=function(){var a=new ks;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=wr(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=wr(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=wr(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=wr(y)&&typeof y.J=="function"?y.J():y,a},ks.prototype.qb=function(a){a.classType===ks&&(this.change=a)},ks.prototype.toString=function(){var a="";return a=this.change===tu?a+"* ":this.change===ys?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===tu?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=ba(this.object)),this.oldValue!==null&&(a+=" old: "+ba(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+ba(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},ks.prototype.I=function(a){return a?this.oldValue:this.newValue},ks.prototype.Dz=function(a){return a?this.oldParam:this.newParam},ks.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},ks.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},ks.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},ks.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},tr.Object.defineProperties(ks.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===tu&&(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}}}),ks.prototype.redo=ks.prototype.redo,ks.prototype.canRedo=ks.prototype.canRedo,ks.prototype.undo=ks.prototype.undo,ks.prototype.canUndo=ks.prototype.canUndo,ks.prototype.getParam=ks.prototype.Dz,ks.prototype.getValue=ks.prototype.I,ks.prototype.clear=ks.prototype.clear;var tu=new Mn(ks,"Transaction",-1),ys=new Mn(ks,"Property",0),Js=new Mn(ks,"Insert",1),ul=new Mn(ks,"Remove",2);ks.className="ChangedEvent",ks.Transaction=tu,ks.Property=ys,ks.Insert=Js,ks.Remove=ul;function Sl(){this.o=new Ar().freeze(),this.xa="",this.j=!1}Sl.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0<a){a=this.changes.count;for(var E=0;E<a;E++){var b=this.changes.M(E);b!==null&&(y+=`
|
|
|
`+b.toString())}}return y},Sl.prototype.clear=function(){var a=this.changes;a.ka();for(var y=a.count-1;0<=y;y--){var E=a.M(y);E!==null&&E.clear()}a.clear(),a.freeze()},Sl.prototype.canUndo=function(){return this.isComplete},Sl.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()}},Sl.prototype.canRedo=function(){return this.isComplete},Sl.prototype.redo=function(){if(this.canRedo())for(var a=this.changes.count,y=0;y<a;y++){var E=this.changes.M(y);E!==null&&E.redo()}},Sl.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new xr,E=0;E<a.count;E++){var b=a.M(E);if(b!==null&&b.change===ys&&b.object){var x=y.get(b.object);x||(x=new xr,y.set(b.object,x));var z=x.get(b.propertyName);z===null?x.set(b.propertyName,-1):(0<z&&a.cd(z,null),x.set(b.propertyName,E))}}for(E=y=0;E<a.count;E++)b=a.M(E),b!==null&&(E>y&&a.cd(y,b),y++);for(;a.length>y;)a.pop();a.freeze()}},tr.Object.defineProperties(Sl.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}}}),Sl.prototype.optimize=Sl.prototype.ak,Sl.prototype.redo=Sl.prototype.redo,Sl.prototype.canRedo=Sl.prototype.canRedo,Sl.prototype.undo=Sl.prototype.undo,Sl.prototype.canUndo=Sl.prototype.canUndo,Sl.prototype.clear=Sl.prototype.clear,Sl.className="Transaction";function Fs(){this.Pt=new qt,this.Jd=!1,this.u=new Ar().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Ar().freeze(),this.hl=new Ar,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Fs.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var E=this.nestedTransactionNames.count,b=0;b<E;b++)0<b&&(y+=" "),y+=this.nestedTransactionNames.M(b);if(y+="]",a!==void 0&&0<a)for(E=this.history.count,b=0;b<E;b++)y+=`
|
|
|
`+this.history.M(b).toString(a-1);return y},Fs.prototype.clear=function(){var a=this.history;a.ka();for(var y=a.count-1;0<=y;y--){var E=a.M(y);E!==null&&E.clear()}a.clear(),this.Ce=-1,a.freeze(),this.Fe=!1,this.Np=null,this.bi=0,this.Ie.ka(),this.Ie.clear(),this.Ie.freeze(),this.hl.clear(),this.Dt=this.rq=this.Gt=this.Ft=!1},Fs.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},We=Fs.prototype,We.Xw=function(a){this.Pt.add(a)},We.Rx=function(a){this.Pt.remove(a)},We.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},We.eb=function(a){return a===void 0&&(a=""),wc(this,!0,a)},We.Kf=function(){return wc(this,!1,"")};function wc(a,y,E){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&Xo("Ending transaction without having started a transaction: "+E);var b=a.transactionLevel===1,x=a.currentTransaction;b&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",E,x));var z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var ne=a.Ie.count;0<ne&&(E===""&&(E=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(b){if(y)a.rq=!1,x===null&&E!==""&&(x=a.currentTransaction),a.isEnabled&&x!==null&&(x.isComplete||(x.isComplete=!0,x.name=E),a.lx(),y=a.history,y.ka(),b=a.maxHistoryLength,0<=b&&(b===0?y.clear():y.count>=b&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),b===0||y.count!==0&&y.get(y.count-1)===x||(y.add(x),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",E,x);else{a.Fe=!0;try{a.isEnabled&&x!==null&&(x.isComplete=!0,x.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",E,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,E=x.changes,x=E.count-1;x>=a;x--)y=E.M(x),y!==null&&y.undo(),E.ka(),E.mb(x);E.freeze()}return!1}We.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var E=a.M(y);E!==null&&E.clear(),a.mb(y),this.rq=!0}a.freeze()}},Fs.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},Fs.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){Xo("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},Fs.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},Fs.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){Xo("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},Fs.prototype.Ob=function(a,y,E){E===void 0&&(E=null);var b=new ks;for(b.change=tu,b.propertyName=a,b.object=E,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},Fs.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Sl);var E=a.copy();y=y.changes,y.ka(),y.add(E),y.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||Xo("Change not within a transaction: "+E.toString()))}},Fs.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},tr.Object.defineProperties(Fs.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}}}),Fs.prototype.handleChanged=Fs.prototype.Tu,Fs.prototype.redo=Fs.prototype.redo,Fs.prototype.undo=Fs.prototype.undo,Fs.prototype.canUndo=Fs.prototype.canUndo,Fs.prototype.discardHistoryAfterIndex=Fs.prototype.lx,Fs.prototype.rollbackTransaction=Fs.prototype.Kf,Fs.prototype.commitTransaction=Fs.prototype.eb,Fs.prototype.startTransaction=Fs.prototype.Ea,Fs.prototype.removeModel=Fs.prototype.Rx,Fs.prototype.addModel=Fs.prototype.Xw,Fs.prototype.clear=Fs.prototype.clear,Fs.className="UndoManager";function Ti(){At(this),this.H=Ja,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new $l,this.Zr=-1}Ti.prototype.toString=function(){return this.name!==""?this.name+" Tool":uo(this.constructor)},Ti.prototype.updateAdornments=function(){},Ti.prototype.canStart=function(){return this.isEnabled},Ti.prototype.doStart=function(){},Ti.prototype.doActivate=function(){this.isActive=!0},Ti.prototype.doDeactivate=function(){this.isActive=!1},Ti.prototype.doStop=function(){},Ti.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Ti.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},Ti.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Ti.prototype.doMouseMove=function(){},Ti.prototype.doMouseUp=function(){this.stopTool()},Ti.prototype.doMouseWheel=function(){},Ti.prototype.canStartMultiTouch=function(){return!0},Ti.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,E=y.So(0,xt.allocAt(NaN,NaN)),b=y.So(1,xt.allocAt(NaN,NaN));if(E.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var x=b.x-E.x,z=b.y-E.y;a.Jw=Math.sqrt(x*x+z*z),y.bubbles=!1}xt.free(E),xt.free(b)},Ti.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,E=y.So(0,xt.allocAt(NaN,NaN)),b=y.So(1,xt.allocAt(NaN,NaN));if(E.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var x=b.x-E.x,z=b.y-E.y;z=Math.sqrt(x*x+z*z)/a.Jw,x=new xt((Math.min(b.x,E.x)+Math.max(b.x,E.x))/2,(Math.min(b.y,E.y)+Math.max(b.y,E.y))/2),z*=a.Bw;var ne=a.commandHandler;if(z!==a.scale&&ne.canResetZoom(z)){var oe=a.zoomPoint;a.zoomPoint=x,ne.resetZoom(z),a.zoomPoint=oe}y.bubbles=!1}xt.free(E),xt.free(b)},Ti.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Ti.prototype.doKeyUp=function(){},Ti.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},Ti.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},Ti.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,E=a.Ol(y.documentPoint,!1);if(E!==null){if(gs?y.meta:y.control){for(a.R("ChangingSelection",a.selection),y=E;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!y.isSelected),a.R("ChangedSelection",a.selection)}else if(y.shift){if(!E.isSelected){for(a.R("ChangingSelection",a.selection),y=E;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!0),a.R("ChangedSelection",a.selection)}}else if(!E.isSelected){for(y=E;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&a.select(y)}}else!y.left||(gs?y.meta:y.control)||y.shift||a.clearSelection()}},Ti.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(x){return!x.layer.isTemporary});var E=this.diagram,b=E.lastInput;return a=E.ic(b.documentPoint,a,y),b.targetObject=a,Cc(a,b,E),b.handled};function Cc(a,y,E){if(y.handled=!1,a===null||a.If()){var b=0;y.left?b=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(b=3);var x="ObjectSingleClicked";if(a!==null){switch(b){case 1:x="ObjectSingleClicked";break;case 2:x="ObjectDoubleClicked";break;case 3:x="ObjectContextClicked"}b!==0&&E.R(x,a)}else{switch(b){case 1:x="BackgroundSingleClicked";break;case 2:x="BackgroundDoubleClicked";break;case 3:x="BackgroundContextClicked"}b!==0&&E.R(x)}if(a!==null)for(;a!==null;){switch(E=null,b){case 1:E=a.click;break;case 2:E=a.doubleClick?a.doubleClick:a.click;break;case 3:E=a.contextClick}if(E!==null&&(E(y,a),y.handled))break;a=a.panel}else{switch(a=null,b){case 1:a=E.click;break;case 2:a=E.doubleClick?E.doubleClick:E.click;break;case 3:a=E.contextClick}a!==null&&a(y)}}}Ti.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var E=a.skipsUndoManager;a.skipsUndoManager=!0;var b=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(b=null),y.targetObject=b;var x=!1;if(b!==a.Ck){var z=a.Ck,ne=z;for(a.Ck=b,this.doCurrentObjectChanged(z,b),y.handled=!1;z!==null;){var oe=z.mouseLeave;if(oe!==null&&(b===z||b!==null&&b.rg(z)||(oe(y,z,b),x=!0,y.handled)))break;z=z.panel}for(z=ne,y.handled=!1;b!==null&&(ne=b.mouseEnter,!(ne!==null&&(z===b||z!==null&&z.rg(b)||(ne(y,b,z),x=!0,y.handled))));)b=b.panel;b=a.Ck}if(b!==null){for(z=b,ne="";z!==null&&(ne=z.cursor,ne==="");)z=z.panel;for(a.currentCursor=ne,y.handled=!1,z=b;z!==null&&(b=z.mouseOver,!(b!==null&&(b(y,z),x=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),b=a.mouseOver,b!==null&&(b(y),x=!0);x&&a.$b(),a.skipsUndoManager=E}},Ti.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},Ti.prototype.doCurrentObjectChanged=function(){},Ti.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,E=y.delta;if(E!==0&&a.documentBounds.w()){var b=a.commandHandler,x=a.toolManager.mouseWheelBehavior;if(b!==null&&(x===Zc&&!y.shift||x===sc&&y.control))(0<E?b.canIncreaseZoom():b.canDecreaseZoom())&&(x=a.zoomPoint,a.zoomPoint=y.viewPoint,0<E?b.increaseZoom():b.decreaseZoom(),a.zoomPoint=x),y.bubbles=!1;else if(x===Zc&&y.shift||x===sc&&!y.control){b=a.position.copy();var z=y.event;x=z.deltaMode;var ne=z.deltaX;z=z.deltaY;var oe="pixel";if(ne===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(E=3*E*a.scrollVerticalLineChange,a.scroll(oe,0<E?"up":"down",Math.abs(E))):y.shift&&a.allowHorizontalScroll&&(E=3*E*a.scrollHorizontalLineChange,a.scroll(oe,0<E?"left":"right",Math.abs(E)));else{switch(x){case 0:oe="pixel";break;case 1:oe="line";break;case 2:oe="page"}ne!==0&&a.allowHorizontalScroll&&(ne*=a.scrollHorizontalLineChange/16,a.scroll(oe,0<ne?"right":"left",Math.abs(ne))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(oe,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,b,y)}}},Ti.prototype.doWheelChange=function(a,y,E){a.position.D(y)&&E.event.wheelDeltaX===0||(E.bubbles=!1)},Ti.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var E=this,b=y.clone(this.yy);this.Zr=_i(function(){E.doWaitAfter(b)},a)},Ti.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Hn.clearTimeout(this.Zr),this.Zr=-1},Ti.prototype.doWaitAfter=function(){},Ti.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(E){for(;E!==null&&!(E.panel instanceof Xa);)E=E.panel;return E}),a===null?null:a.part.category===y?a:null},Ti.prototype.isBeyondDragSize=function(a,y){var E=this.diagram;a===void 0&&(a=E.firstInput.viewPoint),y===void 0&&(y=E.lastInput.viewPoint);var b=E.toolManager.dragSize,x=b.width;return b=b.height,E.firstInput.isTouchEvent&&(x+=6,b+=6),Math.abs(y.x-a.x)>x||Math.abs(y.y-a.y)>b},tr.Object.defineProperties(Ti.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof xn&&(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}}}),Ti.prototype.startTransaction=Ti.prototype.Ea,Ti.className="Tool";function ms(){Ti.call(this),this.name="ToolManager",this.hb=new Ar,this.ob=new Ar,this.Hb=new Ar,this.F=this.V=850,this.o=new sn(2,2).ja(),this.Ha=5e3,this.ia=sc,this.u=Gu,this.Mp=this.j=null,this.zj=-1}vn(ms,Ti),ms.prototype.initializeStandardTools=function(){},ms.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Xa&&this.Mp===a){var E=y.adornedObject;(a!==null?E.part===a:E===null)?this.showToolTip(y,E):this.hideToolTip()}},ms.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===pc&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===gc){y.bubbles=!0;return}if(this.gestureBehavior===pc)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var E=this.mouseDownTools.length,b=0;b<E;b++){var x=this.mouseDownTools.M(b);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===sc?this.mouseWheelBehavior=Zc:this.mouseWheelBehavior===Zc&&(this.mouseWheelBehavior=sc)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},ms.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===gc){y.bubbles=!0;return}if(this.gestureBehavior===pc)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var E=this.mouseMoveTools.length,b=0;b<E;b++){var x=this.mouseMoveTools.M(b);if(x.diagram=this.diagram,x.canStart()){a.doFocus(),a.currentTool=x,a.currentTool===x&&(x.isActive||x.doActivate(),x.doMouseMove());return}}Id(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Id(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}ms.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Xa&&(y===a||y.rg(a))||this.hideToolTip()},ms.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()))},ms.prototype.doMouseHover=function(){var a=this.diagram,y=a.lastInput;y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null));var E=y.targetObject;if(E!==null)for(y.handled=!1;E!==null&&(a=this.isActive?E.mouseHold:E.mouseHover,!(a!==null&&(a(y,E),y.handled)));)E=E.panel;else E=this.isActive?a.mouseHold:a.mouseHover,E!==null&&E(y)},ms.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 Xa)||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()},ms.prototype.showToolTip=function(a,y){var E=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Xa){a.layerName="Tool",a.selectable=!1,a.scale=1/E.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=E.scale);var b=a.diagram;b!==null&&b!==E&&b.remove(a),E.add(a),y!==null?a.adornedObject=y:a.data=E.model,a.Va(),this.positionToolTip(a,y)}else a instanceof St&&a!==this.currentToolTip&&a.show(y,E,this);if(this.currentToolTip=a,this.zj!==-1&&(Hn.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var x=this;this.zj=_i(function(){x.hideToolTip()},a)}},ms.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,E=y.lastInput.documentPoint.copy(),b=a.measuredBounds,x=y.viewportBounds;y.lastInput.isTouchEvent&&(E.x-=b.width),E.x+b.width>x.right&&(E.x-=b.width+5/y.scale),E.x<x.x&&(E.x=x.x),E.y=E.y+20/y.scale+b.height>x.bottom?E.y-(b.height+5/y.scale):E.y+20/y.scale,E.y<x.y&&(E.y=x.y),a.position=E}},ms.prototype.hideToolTip=function(){this.zj!==-1&&(Hn.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Xa?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof St&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},ms.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,E=0;E<y;E++){var b=this.mouseUpTools.M(E);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseUp());return}}a.doFocus(),this.doDeactivate()},ms.prototype.doMouseWheel=function(){this.standardMouseWheel()},ms.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},ms.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},ms.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,E=0;E<y;E++){var b=this.mouseDownTools.M(E);if(b.name===a)return b}for(y=this.mouseMoveTools.length,E=0;E<y;E++)if(b=this.mouseMoveTools.M(E),b.name===a)return b;for(y=this.mouseUpTools.length,E=0;E<y;E++)if(b=this.mouseUpTools.M(E),b.name===a)return b;return null},ms.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var E=this.mouseDownTools.length,b=0;b<E;b++){var x=this.mouseDownTools.M(b);if(x.name===a)return y!==null?this.mouseDownTools.cd(b,y):this.mouseDownTools.mb(b),x}for(E=this.mouseMoveTools.length,b=0;b<E;b++)if(x=this.mouseMoveTools.M(b),x.name===a)return y!==null?this.mouseMoveTools.cd(b,y):this.mouseMoveTools.mb(b),x;for(E=this.mouseUpTools.length,b=0;b<E;b++)if(x=this.mouseUpTools.M(b),x.name===a)return y!==null?this.mouseUpTools.cd(b,y):this.mouseUpTools.mb(b),x;return null},ms.prototype.gb=function(a,y,E){y!==null&&(y.name=a,y.diagram=this.diagram),this.findTool(a)?this.replaceTool(a,y):y!==null&&E.add(y)},tr.Object.defineProperties(ms.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 Xa?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}}}),ms.prototype.replaceStandardTool=ms.prototype.gb;var sc=new Mn(ms,"WheelScroll",0),Zc=new Mn(ms,"WheelZoom",1),gd=new Mn(ms,"WheelNone",2),Gu=new Mn(ms,"GestureZoom",3),pc=new Mn(ms,"GestureCancel",4),gc=new Mn(ms,"GestureNone",5);ms.className="ToolManager",ms.WheelScroll=sc,ms.WheelZoom=Zc,ms.WheelNone=gd,ms.GestureZoom=Gu,ms.GestureCancel=pc,ms.GestureNone=gc;function Do(){Ti.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 xt(NaN,NaN),this.Fr=new xt,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new qt().freeze(),this.ia=new ce,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Pu;vn(Do,Ti),Do.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},Do.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},Do.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,(gs?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Do.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),Mi=null,this.isActive=!0,this.tl.set(a.position),kt(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&&io(a),Wu(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Mi=this,bo=this.diagram,this.doSimulatedDragOut()))};function kt(a,y){if(a.dragsLink){var E=a.diagram;E.allowRelink&&(E.model.Wj()&&y.count===1&&y.first()instanceof Fr?(a.draggedLink=y.first(),a.draggedLink.canRelinkFrom()&&a.draggedLink.canRelinkTo()&&a.draggedLink.Ej(),a.Oe=E.toolManager.findTool("Relinking"),a.Oe===null&&(a.Oe=new Se,a.Oe.diagram=E),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Do.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Do.prototype.Pd=function(a){return a===void 0?new eh(Po):this.isGridSnapEnabled?new eh(new xt(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new eh(a.copy())},Do.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),en(this),Kl(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Pu.count){for(var y=Pu,E=y.length,b=0;b<E;b++){var x=y.M(b);qn(x),Dn(x),en(x),x.diagram.ug()}y.clear()}qn(this),this.tl.h(NaN,NaN),bo!==null&&(bo.currentCursor=""),Mi=bo=null,Dn(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),La(a,!0)},Do.prototype.stopTransaction=function(){var a=this.diagram,y=Ti.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function en(a){var y=a.diagram,E=y.skipsUndoManager;y.skipsUndoManager=!0,Br(a,y.lastInput,null),y.skipsUndoManager=E,a.Cg.length=0}function cn(){var a=Mi;Dn(a),Pr(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Do.prototype.doCancel=function(){Dn(this),Pr(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Do.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Do.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function hn(a,y){if(a.copiedParts===null){var E=a.diagram;if((!y||!E.isReadOnly&&!E.isModelReadOnly)&&a.draggedParts!==null){var b=E.undoManager;for(b.isEnabled&&b.isInTransaction?b.currentTransaction!==null&&0<b.currentTransaction.changes.count&&(E.undoManager.Kf(),E.Ea("Drag")):Pr(a),E.skipsUndoManager=!y,E.partManager.addsToTemporaryLayer=!y,a.startPoint=E.firstInput.documentPoint,y=a.copiesEffectiveCollection?a.draggedParts.Lf():E.selection,y=E.Kj(y,E,!0),E=new xr,b=a.draggedParts.iterator;b.next();){var x=b.key;if(x.Zc()&&x.canCopy()){var z=y.I(x);z!==null&&(z.location=x.location,z.Va(),E.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)b=y.value,b instanceof Fr&&b.canCopy()&&E.add(b,a.Pd());a.copiedParts=E,kt(a,E.Lf()),a.draggedLink!==null&&(E=a.draggedLink,y=E.routeBounds,ff(E,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function Dn(a){var y=a.diagram;if(a.copiedParts!==null){if(y.Is(a.copiedParts.Lf(),!1),a.copiedParts=null,a.draggedParts!==null)for(var E=a.draggedParts.iterator;E.next();)E.key instanceof Fr&&(E.value.point=new xt(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function qn(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 lr(a,y,E){var b=a.diagram,x=a.startPoint,z=xt.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(x),E),xt.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(io(b),b.hk())}Do.prototype.moveParts=function(a,y,E){E===void 0&&(E=!1);var b=this.diagram;b!==null&&pl(b,a,y,this.dragOptions,E)};function Pr(a){if(a.draggedParts!==null){for(var y=a.diagram,E=a.draggedParts.iterator;E.next();){var b=E.key;b.Zc()&&(b.location=E.value.point)}for(E=a.draggedParts.iterator;E.next();)if(b=E.key,b instanceof Fr&&b.suspendsRouting){var x=E.value.point;a.draggedParts.add(b,a.Pd()),ff(b,-x.x,-x.y)}y.bd()}}function Kr(a,y){var E=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),li(a,!1));var b=a.findDragOverObject(y),x=E.lastInput;x.targetObject=b,a.doUpdateCursor(b);var z=E.skipsUndoManager,ne=!1;try{if(E.skipsUndoManager=!0,ne=Br(a,x,b),!a.isActive&&Mi===null)return;var oe=b!==null?b.part:null;if(oe===null||E.handlesDragDropForTopLevelParts&&oe.isTopLevel&&!(oe instanceof Fo)){var ue=E.mouseDragOver;ue!==null&&(ue(x),ne=!0)}if(!a.isActive&&Mi===null||(a.doDragOver(y,b),!a.isActive&&Mi===null))return}finally{E.skipsUndoManager=z,ne&&E.bd()}a.Bn=b,E.isReadOnly||!E.allowMove&&!E.allowCopy||!E.allowHorizontalScroll&&!E.allowVerticalScroll||E.gs(x.viewPoint)}Do.prototype.findDragOverObject=function(a){var y=this;return Ts(this.diagram,a,null,function(E){return E===null?E=!0:(E=E.part,E=!!(E===null||E instanceof Xa||E.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(E)||y.copiedParts&&y.copiedParts.contains(E))),!E})},Do.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 Br(a,y,E){var b=!1,x=a.Cg.length,z=0<x?a.Cg[0]:null;if(E===z)return!1;y.handled=!1;for(var ne=0;ne<x;ne++){var oe=a.Cg[ne],ue=oe.mouseDragLeave;if(ue!==null&&(ue(y,oe,E),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Mi===null||E===null)return b;for(y.handled=!1,x=E;x!==null;)a.Cg.push(x),x=Si(x);for(x=a.Cg.length,E=0;E<x&&(ne=a.Cg[E],oe=ne.mouseDragEnter,oe===null||(oe(y,ne,z),b=!0,!y.handled));E++);return b}function Si(a){var y=a.panel;return y!==null?y:a instanceof Wi&&!(a instanceof Fo)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Gr(a,y,E){var b=a.Oe;if(b===null)return null;var x=a.diagram.og(y,b.portGravity,function(he){return b.findValidLinkablePort(he,E)});a=xt.alloc();var z=1/0,ne=null;for(x=x.iterator;x.next();){var oe=x.value;if(oe.part!==null){var ue=oe.ga(la,a);ue=y.Bf(ue),ue<z&&(ne=oe,z=ue)}}return xt.free(a),ne}function li(a,y){var E=a.draggedLink;if(E!==null&&!(2>E.pointsCount)){var b=a.diagram;if(!b.isReadOnly){var x=a.Oe;if(x!==null){var z=null,ne=null;E.fromNode===null&&(z=Gr(a,E.i(0),!1),z!==null&&(ne=z.part));var oe=null,ue=null;E.toNode===null&&(oe=Gr(a,E.i(E.pointsCount-1),!0),oe!==null&&(ue=oe.part)),x.isValidLink(ne,z,ue,oe)?y?(E.defaultFromPoint=E.i(0),E.defaultToPoint=E.i(E.pointsCount-1),E.suspendsRouting=!1,E.fromNode=ne,z!==null&&(E.fromPortId=z.portId),E.toNode=ue,oe!==null&&(E.toPortId=oe.portId),E.fromPort!==b.Mx&&b.R("LinkRelinked",E,b.Mx),E.toPort!==b.Nx&&b.R("LinkRelinked",E,b.Nx)):Te(x,ne,z,ue,oe):Te(x,null,null,null,null)}}}}Do.prototype.doDragOver=function(){};function $r(a,y){var E=a.diagram;a.dragsLink&&li(a,!0),en(a);var b=a.findDragOverObject(y),x=E.lastInput;if(x.targetObject=b,b!==null){x.handled=!1;for(var z=b;z!==null;){var ne=z.mouseDrop;if(ne!==null&&(ne(x,z),x.handled))break;Ii(a,x,z),z=Si(z)}}else z=E.mouseDrop,z!==null&&z(x);if(a.isActive||Mi!==null){for(x=(a.copiedParts||a.draggedParts).iterator;x.next();)z=x.key,z instanceof qr&&z.linksConnected.each(function(oe){oe.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||Mi!==null){for(a=Un.alloc(),y=E.selection.iterator;y.next();)b=y.value,b instanceof qr&&co(E,b,a);Un.free(a)}}}function Ii(a,y,E){a=a.diagram,E=E.part,!a.handlesDragDropForTopLevelParts||!E.isTopLevel||E instanceof Fo||(E=a.mouseDrop,E!==null&&E(y))}function co(a,y,E){var b=!1;if(E=y.getAvoidableRect(E),a.viewportBounds.Re(E)&&(b=!0),a=a.Nu(E,function(x){return x.part},function(x){return x instanceof Fr},!0,function(x){return x instanceof Fr},b),a.count!==0)for(a=a.iterator;a.next();)E=a.value,!E.Td(y)&&E.isAvoiding&&E.bb()}Do.prototype.doDropOnto=function(){},Do.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()?(hn(this,!1),Wu(a,this.copiedParts),lr(this,this.copiedParts,!1),Kl(a,this.copiedParts)):this.mayMove()?(Dn(this),lr(this,this.draggedParts,!0)):this.mayDragOut()?(hn(this,!1),lr(this,this.copiedParts,!1)):Dn(this),Kr(this,a.lastInput.documentPoint))}},Do.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var E=this.mayCopy();if(E&&this.copiedParts!==null?(Dn(this),hn(this,!0),Wu(a,this.copiedParts),lr(this,this.copiedParts,!1),Kl(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,Dn(this),this.mayMove()&&(lr(this,this.draggedParts,!0),Kr(this,a.lastInput.documentPoint))),this.Ym=!0,$r(this,a.lastInput.documentPoint),this.isActive){var b=E?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&To(this),a.Ya(),Kl(a,this.draggedParts),this.transactionResult=E?"Copy":"Move",a.R(E?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),E&&a.R("ChangedSelection",a.selection)}}},Do.prototype.simulatedMouseMove=function(a,y,E){if(Mi===null)return!1;var b=Mi.diagram;E instanceof xn||(E=null);var x=bo;return E!==x&&(x!==null&&x!==b&&(x.ug(),Mi.isDragOutStarted=!1,x=x.toolManager.findTool("Dragging"),x!==null&&x.doSimulatedDragLeave()),bo=E,E!==null&&E!==b&&(cn(),x=E.toolManager.findTool("Dragging"),x!==null&&(Pu.contains(x)||Pu.add(x),x.doSimulatedDragEnter())),this.doUpdateCursor(null)),E===null||E===b||!E.allowDrop||E.isReadOnly||!E.allowInsert?!1:(b=E.toolManager.findTool("Dragging"),b!==null&&(a!==null&&(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=E.getMouse(a)),E.lastInput.documentPoint=y,E.lastInput.viewPoint=E.op(y),E.lastInput.down=!1,E.lastInput.up=!1,b.doSimulatedDragOver()),!0)},Do.prototype.simulatedMouseUp=function(a,y,E){if(Mi===null)return!1;var b=bo,x=Mi.diagram;if(E===null)return Mi.doCancel(),!0;if(E!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==x&&z!==null)return b.ug(),Mi.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;bo=E,b=E.toolManager.findTool("Dragging"),b!==null&&(cn(),Pu.contains(b)||Pu.add(b),b.doSimulatedDragEnter())}return E!==this.diagram?(a!==null?(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=E.getMouse(a)):y===null&&(y=new xt),E.lastInput.documentPoint=y,E.lastInput.viewPoint=E.op(y),E.lastInput.down=!1,E.lastInput.up=!0,a=E.toolManager.findTool("Dragging"),a!==null&&a.doSimulatedDrop(),a=Mi,a!==null&&(E=a.mayCopy(),a.transactionResult=E?"Copy":"Move",a.stopTool()),!0):!1};function To(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var E=y.key;E instanceof qr&&(E=E.containingGroup,E===null||E.placeholder===null||a.draggedParts.contains(E)||E.placeholder.v())}}Do.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(gs?!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())},Do.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())},Do.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())},Do.prototype.computeBorder=function(a,y,E){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:E.assign(y)},Do.prototype.Az=function(){return Mi},Do.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Mi;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Do.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),Rl(a),a.animationManager.Cc(),a=Mi,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Do.prototype.doSimulatedDragLeave=function(){var a=Mi;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Do.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Mi;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;ra(this,y.draggedParts.Lf(),!1,a.firstInput),lr(this,this.copiedParts,!1),Kr(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Do.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Mi;if(y!==null){var E=y.diagram;if(y.Ym=!0,Dn(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),ra(this,y.draggedParts.Lf(),!0,a.lastInput),lr(this,this.copiedParts,!1);var b=new qt;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(x){x.isSelected=!0,b.add(x)})),$r(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",b,E),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function ra(a,y,E,b){if(a.copiedParts===null){var x=a.diagram;if(!x.isReadOnly&&!x.isModelReadOnly){x.skipsUndoManager=!E,x.partManager.addsToTemporaryLayer=!E,a.startPoint=b.documentPoint,E=x.Kj(y,x,!0);var z=Un.alloc();x=b=1/0;for(var ne=-1/0,oe=-1/0,ue=y.iterator;ue.next();){var he=ue.value;if(he.isVisible()){var ge=he.location;he=ge.x,ge=ge.y,isNaN(he)||isNaN(ge)||(he<b&&(b=he),ge<x&&(x=ge),he>ne&&(ne=he),ge>oe&&(oe=ge))}}for(b===1/0?z.h(0,0,0,0):z.h(b,x,ne-b,oe-x),b=z.x+z.width/2,x=z.y+z.height/2,Un.free(z),z=a.Fr,ne=new xr,oe=xt.alloc(),ue=y.iterator;ue.next();)he=ue.value,he instanceof Fr&&he.canCopy()&&(ge=E.I(he),ge!==null&&(ge.points=he.points,ff(ge,z.x-b,z.y-x),ge.suspendsRouting=!0,ne.add(ge,a.Pd())));for(y=y.iterator;y.next();)he=y.value,he.Zc()&&he.canCopy()&&(ue=E.I(he),ue!==null&&(he=he.location,oe.h(z.x-(b-he.x),z.y-(x-he.y)),ue.location=oe,ue.Va(),ne.add(ue,a.Pd(oe))));xt.free(oe),a.copiedParts=ne,kt(a,ne.Lf()),a.draggedLink!==null&&(E=a.draggedLink,y=E.routeBounds,ff(E,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Do.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Do.prototype.computeMove=function(a,y,E,b){return E=this.diagram,E!==null?E.computeMove(a,y,this.dragOptions,b):new xt},tr.Object.defineProperties(Do.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}}}),Do.prototype.getDraggingSource=Do.prototype.Az;var Mi=null,bo=null;Do.className="DraggingTool",Pu=new Ar,zr("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),ms.prototype.doCancel=function(){Mi!==null&&Mi.doCancel(),Ti.prototype.doCancel.call(this)};function ro(){Ti.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Fr,y=new Zo;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Zo,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new qr,y=new Zo,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Vr,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new qr,y=new Zo,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Vr,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new xr,this.Of=this.gj=this.Pf=null}vn(ro,Ti),ro.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},ro.prototype.copyPortProperties=function(a,y,E,b,x){if(a!==null&&y!==null&&E!==null&&b!==null){var z=y.Df(),ne=sn.alloc();ne.width=y.naturalBounds.width*z,ne.height=y.naturalBounds.height*z,b.desiredSize=ne,sn.free(ne),x?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),E.locationSpot=la,z=xt.alloc(),E.location=y.ga(la,z),xt.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,E,b,x)}},ro.prototype.setNoTargetPortProperties=function(a,y,E){y!==null&&(y.desiredSize=Vr,y.fromSpot=zs,y.toSpot=zs),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,E)},ro.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},ro.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)}},ro.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var E=a.part;if(!(E instanceof qr))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof qr)&&(y?this.isValidTo(E,a):this.isValidFrom(E,a)))return a;if(b===!1)break;a=a.panel}return null},ro.prototype.findTargetPort=function(a){var y=this.diagram,E=y.lastInput.documentPoint,b=this.portGravity;0>=b&&(b=.1);var x=this,z=y.og(E,b,function(Ee){return x.findValidLinkablePort(Ee,a)},null,!0);for(b=1/0,y=null,z=z.iterator;z.next();){var ne=z.value,oe=ne.part;if(oe instanceof qr){var ue=ne.ga(la,xt.alloc()),he=E.x-ue.x,ge=E.y-ue.y;xt.free(ue),ue=he*he+ge*ge,ue<b&&(he=this.validPortsCache.I(ne),he!==null?he&&(y=ne,b=ue):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,oe,ne)||!a&&this.isValidLink(oe,ne,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(ne,!0),y=ne,b=ue):this.validPortsCache.add(ne,!1))}}return y!==null&&(E=y.part,E instanceof qr&&(E.layer===null||E.layer.allowLink))?y:null},ro.prototype.isValidFrom=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.fromLinkable!==!0))return!1;var E=y.fromMaxLinks;if(1/0>E){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=E)return!1}return!0},ro.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var E=y.toMaxLinks;if(1/0>E){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=E)return!1}return!0},ro.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},ro.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var E=a.part;if(!(E instanceof qr))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof qr))return!1;for(y=y.portId,y===null&&(y=""),y=b.Sd(y);y.next();)if(b=y.value,b.fromNode===E&&b.fromPortId===a)return!0;return!1},ro.prototype.isValidLink=function(a,y,E,b){if(!this.isValidFrom(a,y)||!this.isValidTo(E,b)||!(y===null||b===null||(y.fromLinkableSelfNode&&b.toLinkableSelfNode||!this.isInSameNode(y,b))&&(y.fromLinkableDuplicates&&b.toLinkableDuplicates||!this.isLinked(y,b)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||E!==null&&this.isLabelDependentOnLink(E,this.originalLink))||a!==null&&E!==null&&(a.data===null&&E.data!==null||a.data!==null&&E.data===null)||!this.isValidCycle(a,E,this.originalLink))return!1;if(a!==null){var x=a.linkValidation;if(x!==null&&!x(a,y,E,b,this.originalLink))return!1}return E!==null&&(x=E.linkValidation,x!==null&&!x(a,y,E,b,this.originalLink))?!1:(x=this.linkValidation,x!==null?x(a,y,E,b,this.originalLink):!0)},ro.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var E=a.labeledLink;if(E===null)return!1;if(E===y)return!0;var b=new qt;return b.add(a),ea(this,E,y,b)};function ea(a,y,E,b){if(y===E)return!0;var x=y.fromNode;return x!==null&&x.isLinkLabel&&(b.add(x),ea(a,x.labeledLink,E,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),ea(a,y.labeledLink,E,b))))}ro.prototype.isValidCycle=function(a,y,E){if(E===void 0&&(E=null),a===null||y===null)return this.isUnconnectedLinkValid;var b=this.diagram.validCycle;if(b!==zh){if(b===Np){if(b=E||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=y.linksConnected;b.next();){var x=b.value;if(x!==E&&x.isTreeLink&&x.toNode===y)return!1}return!Ia(this,a,y,E,!0)}if(b===Lp){if(b=E||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=a.linksConnected;b.next();)if(x=b.value,x!==E&&x.isTreeLink&&x.fromNode===a)return!1;return!Ia(this,a,y,E,!0)}if(b===Tp)return a===y?a=!0:(b=new qt,b.add(y),a=Vo(this,b,a,y,E)),!a;if(b===Ap)return!Ia(this,a,y,E,!1);if(b===Pp)return a===y?a=!0:(b=new qt,b.add(y),a=ss(this,b,a,y,E)),!a}return!0};function Ia(a,y,E,b,x){if(y===E)return!0;if(y===null||E===null)return!1;for(var z=y.linksConnected;z.next();){var ne=z.value;if(ne!==b&&(!x||ne.isTreeLink)&&ne.toNode===y&&(ne=ne.fromNode,ne!==y&&Ia(a,ne,E,b,x)))return!0}return!1}function Vo(a,y,E,b,x){if(E===b)return!0;if(E===null||b===null||y.contains(E))return!1;y.add(E);for(var z=E.linksConnected;z.next();){var ne=z.value;if(ne!==x&&ne.toNode===E&&(ne=ne.fromNode,ne!==E&&Vo(a,y,ne,b,x)))return!0}return!1}function ss(a,y,E,b,x){if(E===b)return!0;if(E===null||b===null||y.contains(E))return!1;y.add(E);for(var z=E.linksConnected;z.next();){var ne=z.value;if(ne!==x){var oe=ne.fromNode;if(ne=ne.toNode,oe=oe===E?ne:oe,oe!==E&&ss(a,y,oe,b,x))return!0}}return!1}tr.Object.defineProperties(ro.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var E=y.O.indexOf(this.j);y.mb(E),y.Gb(E,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var E=y.O.indexOf(this.o);y.mb(E),y.Gb(E,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),ro.className="LinkingBaseTool";function Ma(){ro.call(this),this.name="Linking",this.V={},this.F=null,this.K=qa,this.Xd=null}vn(Ma,ro),Ma.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},Ma.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 E=this.direction;if(E===qa||E===Le){var b=this.findValidLinkablePort(y,!1);if(b!==null||this.startObject===a&&(b=a.port,this.findValidLinkablePort(b,!1)))return this.isForwards=!0,b}return(E===qa||E===nt)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},Ma.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)},Ma.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()},Ma.prototype.doStop=function(){ro.prototype.doStop.call(this),this.startObject=null},Ma.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,E=null,b=null,x=null,z=null;try{var ne=this.targetPort=this.findTargetPort(this.isForwards);if(ne!==null){var oe=ne.part;oe instanceof qr&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,E=this.originalFromPort),b=oe,x=ne):(y=oe,E=ne,this.originalToNode!==null&&(b=this.originalToNode,x=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,E=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(b=this.originalToNode,x=this.originalToPort);y!==null||b!==null?(z=this.insertLink(y,E,b,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,E,b,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)}}},Ma.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Fr)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)},Ma.prototype.insertLink=function(a,y,E,b){return this.diagram.partManager.insertLink(a,y,E,b)},Ma.prototype.doNoLink=function(){},tr.Object.defineProperties(Ma.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 qa=new Mn(Ma,"Either",0),Le=new Mn(Ma,"ForwardsOnly",0),nt=new Mn(Ma,"BackwardsOnly",0);Ma.className="LinkingTool",Ma.Either=qa,Ma.ForwardsOnly=Le,Ma.BackwardsOnly=nt;function Se(){ro.call(this),this.name="Relinking";var a=new Zo;a.figure="Diamond",a.desiredSize=Xi,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Zo,a.figure="Diamond",a.desiredSize=Xi,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new Un}vn(Se,ro),Se.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Fr){var y="RelinkFrom",E=null;if(a.isSelected&&!this.diagram.isReadOnly){var b=a.selectionObject;b!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(E=a.Pj(y),E===null&&(E=this.makeAdornment(b,!1),a.bh(y,E)))}E===null&&a.Jf(y),y="RelinkTo",E=null,a.isSelected&&!this.diagram.isReadOnly&&(b=a.selectionObject,b!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(E=a.Pj(y),E===null?(E=this.makeAdornment(b,!0),a.bh(y,E)):E.v())),E===null&&a.Jf(y)}},Se.prototype.makeAdornment=function(a,y){var E=new Xa;return E.type=kr.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&E.add(y.copy()),E.adornedObject=a,E},Se.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},Se.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var E=y.part;if(!(E instanceof Xa&&E.adornedPart instanceof Fr))return;this.handle=y,this.isForwards=E===null||E.category==="RelinkTo",this.originalLink=E.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0<this.originalLink.pointsCount&&(this.originalLink.fromNode===null&&(this.temporaryFromPort!==null&&(this.temporaryFromPort.desiredSize=mr),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=mr),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},Se.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var E=a.curve;(E===Eg||E===pf)&&(E=Nc),y.curve=E,y.curviness=a.curviness,y.isTreeLink=a.isTreeLink,y.points=a.points,y.routing=a.routing,y.smoothness=a.smoothness,y.fromSpot=a.fromSpot,y.fromEndSegmentLength=a.fromEndSegmentLength,y.fromShortLength=a.fromShortLength,y.toSpot=a.toSpot,y.toEndSegmentLength=a.toEndSegmentLength,y.toShortLength=a.toShortLength}},Se.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()},Se.prototype.doStop=function(){ro.prototype.doStop.call(this),this.handle=null},Se.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,E=this.originalFromPort,b=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?(b=ne,x=this.targetPort):(y=ne,E=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?x=b=null:E=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?b:y,this.isForwards?x:E,this.isForwards),this.targetPort===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint,z.bb()),this.transactionResult=this.name,a.R("LinkRelinked",z,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},Se.prototype.reconnectLink=function(a,y,E,b){return E=E!==null&&E.portId!==null?E.portId:"",b?(a.toNode=y,a.toPortId=E):(a.fromNode=y,a.fromPortId=E),!0},Se.prototype.doNoRelink=function(){};function Te(a,y,E,b,x){y!==null?(a.copyPortProperties(y,E,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),b!==null?(a.copyPortProperties(b,x,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}tr.Object.defineProperties(Se.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 Xa))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),Se.className="RelinkingTool",zr("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),zr("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function ze(){Ti.call(this),this.name="LinkReshaping";var a=new Zo;a.figure="Rectangle",a.desiredSize=no,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Zo,a.figure="Diamond",a.desiredSize=Xi,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new xt,this.Yq=new Ar}vn(ze,Ti),ze.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:mt},ze.prototype.om=function(a,y){a.reshapingBehavior=y},ze.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Fr){var y=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.path;E!==null&&a.canReshape()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(y=a.Pj(this.name),y===null||y.Aw!==a.pointsCount||y.Uw!==a.resegmentable)&&(y=this.makeAdornment(E),y!==null&&(y.Aw=a.pointsCount,y.Uw=a.resegmentable,a.bh(this.name,y)))}y===null&&a.Jf(this.name)}},ze.prototype.makeAdornment=function(a){var y=a.part,E=y.pointsCount,b=y.isOrthogonal,x=null;if(y.points!==null&&1<E){x=new Xa,x.type=kr.Link,E=y.firstPickIndex;var z=y.lastPickIndex,ne=b?1:0;if(y.resegmentable&&y.computeCurve()!==Ed)for(var oe=E+ne;oe<z-ne;oe++){var ue=this.makeResegmentHandle(a,oe);ue!==null&&(ue.segmentIndex=oe,ue.segmentFraction=.5,ue.fromMaxLinks=999,x.add(ue))}for(ne=E+1;ne<z;ne++)if(oe=this.makeHandle(a,ne),oe!==null){if(oe.segmentIndex=ne,ne!==E)if(ne===E+1&&b){ue=y.i(E);var he=y.i(E+1);gn.B(ue.x,he.x)&&gn.B(ue.y,he.y)&&(he=y.i(E-1)),gn.B(ue.x,he.x)?(this.om(oe,De),oe.cursor="n-resize"):gn.B(ue.y,he.y)&&(this.om(oe,Ae),oe.cursor="w-resize")}else ne===z-1&&b?(ue=y.i(z-1),he=y.i(z),gn.B(ue.x,he.x)&&gn.B(ue.y,he.y)&&(ue=y.i(z+1)),gn.B(ue.x,he.x)?(this.om(oe,De),oe.cursor="n-resize"):gn.B(ue.y,he.y)&&(this.om(oe,Ae),oe.cursor="w-resize")):ne!==z&&(this.om(oe,qe),oe.cursor="move");x.add(oe)}x.adornedObject=a}return x},ze.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},ze.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},ze.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},ze.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 Fr){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var E=y.points.copy(),b=this.getResegmentingPoint();if(E.Gb(this.handle.segmentIndex+1,b),y.isOrthogonal&&E.Gb(this.handle.segmentIndex+1,b),y.points=E,y.Wb(),y.updateAdornments(),this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=y.i(this.handle.segmentIndex),this.Yq=y.points.copy(),this.isActive=!0}}},ze.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},ze.prototype.stopTransaction=function(){var a=this.diagram,y=Ti.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ze.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},ze.prototype.getResegmentingPoint=function(){return this.handle.ga(la)},ze.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},ze.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.computeReshape(a.lastInput.documentPoint);if(this.reshape(y),y=this.adornedLink,y!==null&&y.resegmentable){var E=this.handle.segmentIndex,b=y.i(E-1),x=y.i(E),z=y.i(E+1);if(y.isOrthogonal){if(E>y.firstPickIndex+1&&E<y.lastPickIndex-1){var ne=y.i(E-2);if(Math.abs(b.x-x.x)<this.resegmentingDistance&&Math.abs(b.y-x.y)<this.resegmentingDistance&&(Qe(this,ne,b,x,z,!0)||Qe(this,ne,b,x,z,!1))){var oe=y.points.copy();Qe(this,ne,b,x,z,!0)?(oe.cd(E-2,new xt(ne.x,(z.y+ne.y)/2)),oe.cd(E+1,new xt(z.x,(z.y+ne.y)/2))):(oe.cd(E-2,new xt((z.x+ne.x)/2,ne.y)),oe.cd(E+1,new xt((z.x+ne.x)/2,z.y))),oe.mb(E),oe.mb(E-1),y.points=oe,y.Wb()}else ne=y.i(E+2),Math.abs(x.x-z.x)<this.resegmentingDistance&&Math.abs(x.y-z.y)<this.resegmentingDistance&&(Qe(this,b,x,z,ne,!0)||Qe(this,b,x,z,ne,!1))&&(oe=y.points.copy(),Qe(this,b,x,z,ne,!0)?(oe.cd(E-1,new xt(b.x,(b.y+ne.y)/2)),oe.cd(E+2,new xt(ne.x,(b.y+ne.y)/2))):(oe.cd(E-1,new xt((b.x+ne.x)/2,b.y)),oe.cd(E+2,new xt((b.x+ne.x)/2,ne.y))),oe.mb(E+1),oe.mb(E),y.points=oe,y.Wb())}}else ne=xt.alloc(),gn.qh(b.x,b.y,z.x,z.y,x.x,x.y,ne)&&ne.Bf(x)<this.resegmentingDistance*this.resegmentingDistance&&(b=y.points.copy(),b.mb(E),y.points=b,y.Wb()),xt.free(ne)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Qe(a,y,E,b,x,z){return z?Math.abs(y.y-E.y)<a.resegmentingDistance&&Math.abs(E.y-b.y)<a.resegmentingDistance&&Math.abs(b.y-x.y)<a.resegmentingDistance:Math.abs(y.x-E.x)<a.resegmentingDistance&&Math.abs(E.x-b.x)<a.resegmentingDistance&&Math.abs(b.x-x.x)<a.resegmentingDistance}ze.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var E=this.handle.segmentIndex,b=this.Ru(this.handle);if(y.isOrthogonal)if(E===y.firstPickIndex+1)E=y.firstPickIndex+1,b===De?(y.L(E,y.i(E-1).x,a.y),y.L(E+1,y.i(E+2).x,a.y)):b===Ae&&(y.L(E,a.x,y.i(E-1).y),y.L(E+1,a.x,y.i(E+2).y));else if(E===y.lastPickIndex-1)E=y.lastPickIndex-1,b===De?(y.L(E-1,y.i(E-2).x,a.y),y.L(E,y.i(E+1).x,a.y)):b===Ae&&(y.L(E-1,a.x,y.i(E-2).y),y.L(E,a.x,y.i(E+1).y));else{b=E;var x=y.i(b),z=y.i(b-1),ne=y.i(b+1);gn.B(z.x,x.x)&&gn.B(x.y,ne.y)?(gn.B(z.x,y.i(b-2).x)&&!gn.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),E++,b++):y.L(b-1,a.x,z.y),gn.B(ne.y,y.i(b+2).y)&&!gn.B(ne.x,y.i(b+2).x)?y.m(b+1,ne.x,a.y):y.L(b+1,ne.x,a.y)):gn.B(z.y,x.y)&&gn.B(x.x,ne.x)?(gn.B(z.y,y.i(b-2).y)&&!gn.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),E++,b++):y.L(b-1,z.x,a.y),gn.B(ne.x,y.i(b+2).x)&&!gn.B(ne.y,y.i(b+2).y)?y.m(b+1,a.x,ne.y):y.L(b+1,a.x,ne.y)):gn.B(z.x,x.x)&&gn.B(x.x,ne.x)?(gn.B(z.x,y.i(b-2).x)&&!gn.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),E++,b++):y.L(b-1,a.x,z.y),gn.B(ne.x,y.i(b+2).x)&&!gn.B(ne.y,y.i(b+2).y)?y.m(b+1,a.x,ne.y):y.L(b+1,a.x,ne.y)):gn.B(z.y,x.y)&&gn.B(x.y,ne.y)&&(gn.B(z.y,y.i(b-2).y)&&!gn.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),E++,b++):y.L(b-1,z.x,a.y),gn.B(ne.y,y.i(b+2).y)&&!gn.B(ne.x,y.i(b+2).x)?y.m(b+1,ne.x,a.y):y.L(b+1,ne.x,a.y)),y.L(E,a.x,a.y)}else y.L(E,a.x,a.y),b=y.fromNode,x=y.fromPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,x=b.port)),E===1&&y.computeSpot(!0,x).Mc()&&(z=x.ga(la,xt.alloc()),b=y.getLinkPointFromPoint(b,x,z,a,!0,xt.alloc()),y.L(0,b.x,b.y),xt.free(z),xt.free(b)),b=y.toNode,x=y.toPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,x=b.port)),E===y.pointsCount-2&&y.computeSpot(!1,x).Mc()&&(E=x.ga(la,xt.alloc()),a=y.getLinkPointFromPoint(b,x,E,a,!1,xt.alloc()),y.L(y.pointsCount-1,a.x,a.y),xt.free(E),xt.free(a));y.zf()},ze.prototype.computeReshape=function(a){var y=this.adornedLink,E=this.handle.segmentIndex;switch(this.Ru(this.handle)){case qe:return a;case De:return new xt(y.i(E).x,a.y);case Ae:return new xt(a.x,y.i(E).y);default:case mt:return y.i(E)}},tr.Object.defineProperties(ze.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 Xa))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}}}),ze.prototype.setReshapingBehavior=ze.prototype.om,ze.prototype.getReshapingBehavior=ze.prototype.Ru;var mt=new Mn(ze,"None",0),Ae=new Mn(ze,"Horizontal",1),De=new Mn(ze,"Vertical",2),qe=new Mn(ze,"All",3);ze.className="LinkReshapingTool",ze.None=mt,ze.Horizontal=Ae,ze.Vertical=De,ze.All=qe,zr("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function ot(){Ti.call(this),this.name="Resizing",this.o=new sn(1,1).freeze(),this.j=new sn(9999,9999).freeze(),this.yg=new sn(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Zo;a.alignmentFocus=la,a.figure="Rectangle",a.desiredSize=no,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new xt,this.Dw=new sn,this.Tn=new xt,this.rt=new sn(0,0),this.qt=new sn(1/0,1/0),this.pt=new sn(1,1)}vn(ot,Ti),ot.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Fr)){if(a.isSelected&&!this.diagram.isReadOnly){var y=a.resizeObject,E=a.Pj(this.name);if(y!==null&&a.canResize()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed()&&((E===null||E.adornedObject!==y)&&(E=this.makeAdornment(y)),E!==null)){y=y.li(),Ff(a)&&this.updateResizeHandles(E,y),a.bh(this.name,E);return}}a.Jf(this.name)}},ot.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Xa,y.type=kr.Spot,y.locationSpot=la;var E=new Pc;E.isPanelMain=!0,y.add(E),y.add(this.makeHandle(a,Vs)),y.add(this.makeHandle(a,Qs)),y.add(this.makeHandle(a,eu)),y.add(this.makeHandle(a,Pl)),y.add(this.makeHandle(a,lu)),y.add(this.makeHandle(a,kl)),y.add(this.makeHandle(a,Hl)),y.add(this.makeHandle(a,mu))}else if(Od(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},ot.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},ot.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))e:{var E=a.alignment;if(E.Mc()&&(E=la),0>=E.x)y=0>=E.y?y+225:1<=E.y?y+135:y+180;else if(1<=E.x)0>=E.y?y+=315:1<=E.y&&(y+=45);else if(0>=E.y)y+=270;else if(1<=E.y)y+=90;else break e;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof kr)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},ot.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},ot.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))},ot.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},ot.prototype.stopTransaction=function(){var a=this.diagram,y=Ti.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ot.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},ot.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,E=this.qt,b=this.pt,x=this.adornedObject.qs(a.lastInput.documentPoint,xt.alloc()),z=this.computeReshape();y=this.computeResize(x,this.handle.alignment,y,E,b,z),this.resize(y),a.bd(),xt.free(x)}},ot.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,E=this.qt,b=this.pt,x=this.adornedObject.qs(a.lastInput.documentPoint,xt.alloc()),z=this.computeReshape();y=this.computeResize(x,this.handle.alignment,y,E,b,z),this.resize(y),xt.free(x),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},ot.prototype.resize=function(a){var y=this.diagram,E=this.adornedObject;if(E!==null){if(E.desiredSize=a.size,a=E.part,a.Va(),E=E.ga(this.handle.alignment.gv()),a instanceof Fo){var b=new Ar;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var x=new ce;x.dragsMembers=!1}y.moveParts(b,this.oppositePoint.copy().re(E),!0,x)}else a.location=a.location.copy().re(E).add(this.oppositePoint);y.bd()}},ot.prototype.computeResize=function(a,y,E,b,x,z){y.Mc()&&(y=la);var ne=this.adornedObject.naturalBounds,oe=ne.x,ue=ne.y,he=ne.x+ne.width,ge=ne.y+ne.height,Ee=1;if(!z){Ee=ne.width;var ke=ne.height;0>=Ee&&(Ee=1),0>=ke&&(ke=1),Ee=ke/Ee}return ke=xt.alloc(),gn.No(a.x,a.y,oe,ue,x.width,x.height,ke),a=ne.copy(),0>=y.x?0>=y.y?(a.x=Math.max(ke.x,he-b.width),a.x=Math.min(a.x,he-E.width),a.width=Math.max(he-a.x,E.width),a.y=Math.max(ke.y,ge-b.height),a.y=Math.min(a.y,ge-E.height),a.height=Math.max(ge-a.y,E.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Ee*a.width,b.height),E.height),a.width=a.height/Ee):(a.width=Math.max(Math.min(a.height/Ee,b.width),E.width),a.height=Ee*a.width),a.x=he-a.width,a.y=ge-a.height)):1<=y.y?(a.x=Math.max(ke.x,he-b.width),a.x=Math.min(a.x,he-E.width),a.width=Math.max(he-a.x,E.width),a.height=Math.max(Math.min(ke.y-ue,b.height),E.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Ee*a.width,b.height),E.height),a.width=a.height/Ee):(a.width=Math.max(Math.min(a.height/Ee,b.width),E.width),a.height=Ee*a.width),a.x=he-a.width)):(a.x=Math.max(ke.x,he-b.width),a.x=Math.min(a.x,he-E.width),a.width=he-a.x,z||(a.height=Math.max(Math.min(Ee*a.width,b.height),E.height),a.width=a.height/Ee,a.y=ue+.5*(ge-ue-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(ke.x-oe,b.width),E.width),a.y=Math.max(ke.y,ge-b.height),a.y=Math.min(a.y,ge-E.height),a.height=Math.max(ge-a.y,E.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Ee*a.width,b.height),E.height),a.width=a.height/Ee):(a.width=Math.max(Math.min(a.height/Ee,b.width),E.width),a.height=Ee*a.width),a.y=ge-a.height)):1<=y.y?(a.width=Math.max(Math.min(ke.x-oe,b.width),E.width),a.height=Math.max(Math.min(ke.y-ue,b.height),E.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Ee*a.width,b.height),E.height),a.width=a.height/Ee):(a.width=Math.max(Math.min(a.height/Ee,b.width),E.width),a.height=Ee*a.width))):(a.width=Math.max(Math.min(ke.x-oe,b.width),E.width),z||(a.height=Math.max(Math.min(Ee*a.width,b.height),E.height),a.width=a.height/Ee,a.y=ue+.5*(ge-ue-a.height))):0>=y.y?(a.y=Math.max(ke.y,ge-b.height),a.y=Math.min(a.y,ge-E.height),a.height=ge-a.y,z||(a.width=Math.max(Math.min(a.height/Ee,b.width),E.width),a.height=Ee*a.width,a.x=oe+.5*(he-oe-a.width))):1<=y.y&&(a.height=Math.max(Math.min(ke.y-ue,b.height),E.height),z||(a.width=Math.max(Math.min(a.height/Ee,b.width),E.width),a.height=Ee*a.width,a.x=oe+.5*(he-oe-a.width))),xt.free(ke),a},ot.prototype.computeReshape=function(){var a=Sr;return this.adornedObject instanceof Zo&&(a=Bv(this.adornedObject)),!(a===wi||this.diagram.lastInput.shift)},ot.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},ot.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},ot.prototype.computeCellSize=function(){var a=new sn(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},tr.Object.defineProperties(ot.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 Xa))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 Xa)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}}}),ot.className="ResizingTool",zr("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Lt(){Ti.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new xt,this.ue=null;var a=new Zo;a.figure="Ellipse",a.desiredSize=Xi,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new xt(NaN,NaN),this.u=0,this.F=50}vn(Lt,Ti),Lt.prototype.updateAdornments=function(a){if(a!==null){if(a.ph()){var y=a.rotateObject;if(y===a||y===a.path||y.isPanelMain)return}if(a.isSelected&&!this.diagram.isReadOnly&&(y=a.rotateObject,y!==null&&a.canRotate()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed())){var E=a.Pj(this.name);if((E===null||E.adornedObject!==y)&&(E=this.makeAdornment(y)),E!==null){E.angle=y.li(),E.placeholder===null&&(E.location=this.computeAdornmentLocation(y)),a.bh(this.name,E);return}}a.Jf(this.name)}},Lt.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Xa,y.type=kr.Position,y.locationSpot=la;var E=this.handleArchetype;E!==null&&y.add(E.copy())}else if(Od(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Lt.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},Lt.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)},Lt.prototype.computeRotationPoint=function(a){var y=a.part,E=y.locationObject;return y.rotationSpot.sb()?a.ga(y.rotationSpot):a===y||a===E?E.ga(y.locationSpot):a.ga(la)},Lt.prototype.computeAdornmentLocation=function(a){var y=this.rotationPoint;y.w()||(y=this.computeRotationPoint(a)),y=a.qs(y);var E=this.handleAngle;0>E?E+=360:360<=E&&(E-=360),E=Math.round(45*Math.round(E/45));var b=this.handleDistance;return E===0?y.x=a.naturalBounds.width+b:E===45?(y.x=a.naturalBounds.width+b,y.y=a.naturalBounds.height+b):E===90?y.y=a.naturalBounds.height+b:E===135?(y.x=-b,y.y=a.naturalBounds.height+b):E===180?y.x=-b:E===225?(y.x=-b,y.y=-b):E===270?y.y=-b:E===315&&(y.x=a.naturalBounds.width+b,y.y=-b),a.ga(y)},Lt.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new xt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Lt.prototype.stopTransaction=function(){var a=this.diagram,y=Ti.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Lt.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Lt.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Lt.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()},Lt.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var E=y.locationObject,b=y.rotateObject;(E===b||E.rg(b))&&(E=this.Tn.copy(),y.location=E.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},Lt.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var E=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0<y&&0<E&&(a%y<E?a=Math.floor(a/y)*y:a%y>y-E&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},tr.Object.defineProperties(Lt.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 Xa))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 Xa)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}}}),Lt.className="RotatingTool",zr("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Ut(){Ti.call(this),this.name="ClickSelecting"}vn(Ut,Ti),Ut.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Ut.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Ut.className="ClickSelectingTool";function jt(){Ti.call(this),this.name="Action",this.pk=null}vn(jt,Ti),jt.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,E=a.ic(y.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b});return E!==null&&E.isActionable?(this.pk=E,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},jt.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()},jt.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))}},jt.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(E){for(;E.panel!==null&&(!E.isActionable||E!==y);)E=E.panel;return E},function(E){return E===y})}this.stopTool()},jt.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())},jt.prototype.doStop=function(){this.pk=null},jt.className="ActionTool";function se(){Ti.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new xt(0,0)}vn(se,Ti),se.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)},se.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},se.prototype.insertPart=function(a){var y=this.diagram,E=this.archetypeNodeData;if(E===null)return null;var b=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),E instanceof Wi)E.Zc()&&(Od(E),b=E.copy(),b!==null&&y.add(b));else if(E!==null){var x=y.model.copyNodeData(E);wr(x)&&(y.model.xf(x),b=y.Lc(x))}if(b!==null){var z=xt.allocAt(a.x,a.y);this.isGridSnapEnabled&&qu(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),xt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},tr.Object.defineProperties(se.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}}}),se.className="ClickCreatingTool";function fe(){Ti.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Wi;a.layerName="Tool",a.selectable=!1;var y=new Zo;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}vn(fe,Ti),fe.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))},fe.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},fe.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},fe.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),E=this.box.fb("SHAPE");E===null&&(E=this.box.Pb());var b=sn.alloc().h(y.width,y.height);E.desiredSize=b,this.box.mm(y.x,y.y,!1),sn.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},fe.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()},fe.prototype.computeBoxBounds=function(){var a=this.diagram;return new Un(a.firstInput.documentPoint,a.lastInput.documentPoint)},fe.prototype.selectInRect=function(a){var y=this.diagram,E=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),gs?E.meta:E.control)if(E.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected&&(y.isSelected=!1);else for(a=a.iterator;a.next();)y=a.value,y.isSelected=!y.isSelected;else if(E.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0);else{for(E=new Ar,y=y.selection.iterator;y.next();){var b=y.value;a.contains(b)||E.add(b)}for(y=E.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},tr.Object.defineProperties(fe.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}}}),fe.className="DragSelectingTool";function je(){Ti.call(this),this.name="Panning",this.Xt=new xt,this.xy=new xt,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Hn.document,"scroll",a.Kw,!1),a.stopTool()}}vn(je,Ti),je.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())},je.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Hn.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},je.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},je.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},je.prototype.doMouseMove=function(){this.move()},je.prototype.doMouseUp=function(){this.move(),this.stopTool()},je.prototype.move=function(){var a=this.diagram;if(this.isActive&&a)if(this.xg)a.lastInput.bubbles=!0;else{var y=a.position,E=a.firstInput.documentPoint,b=a.lastInput.documentPoint,x=y.x+E.x-b.x;E=y.y+E.y-b.y,a.allowHorizontalScroll||(x=y.x),a.allowVerticalScroll||(E=y.y),a.position=this.xy.h(x,E)}},tr.Object.defineProperties(je.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),je.className="PanningTool",zr("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),zr("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),zr("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),zr("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),zr("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function St(){this.F=this.u=this.j=this.o=null}tr.Object.defineProperties(St.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}}}),St.className="HTMLInfo";function Yt(a,y,E){this.text=a,this.hx=y,this.visible=E}Yt.className="ContextMenuButtonInfo";function mn(){Ti.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new xt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}vn(mn,Ti);function wn(a){var y=new St;y.show=function(x,z,ne){ne.showDefaultContextMenu()},y.hide=function(x,z){z.hideDefaultContextMenu()},di=y,a.tu=function(){a.stopTool()},y=Ur("div");var E=Ur("div");y.style.cssText="top: 0px;z-index:10002;position: fixed;display: none;text-align: center;left: 25%;width: 50%;background-color: #F5F5F5;padding: 16px;border: 16px solid #444;border-radius: 10px;margin-top: 10px",E.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var b=Ur("style");Hn.document.getElementsByTagName("head")[0].appendChild(b),b.sheet.insertRule(".goCXul { list-style: none; }",0),b.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),b.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),b=a.diagram,b!==null&&(b.addEventListener(y,"contextmenu",On,!1),b.addEventListener(y,"selectstart",On,!1),b.addEventListener(E,"contextmenu",On,!1)),y.className="goCXforeground",E.className="goCXbackground",Hn.document.body&&(Hn.document.body.appendChild(y),Hn.document.body.appendChild(E)),Di=y,oi=E,ii=!0}function On(a){return a.preventDefault(),!1}mn.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)},mn.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},mn.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},mn.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,E=y.lastInput,b=null;if(a instanceof xn||(a instanceof pn?b=a:b=y.ic(E.documentPoint,null,function(x){return!x.layer.isTemporary})),b!==null){for(a=b;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return b.part}else if(y.contextMenu!==null)return y;return null},mn.prototype.doActivate=function(){},mn.prototype.doMouseDown=function(){if(Ti.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Xa){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Tn(this)},mn.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Xa){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Tn(this)};function Tn(a){var y=a.diagram;if(a.isActive){var E=a.currentContextMenu;if(E!==null){var b=null;E instanceof St||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(E)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(br(a,!0),a.isActive||a.stopTool())}mn.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function br(a,y,E){if(E===void 0&&(E=null),!a.Et&&(a.Et=!0,y&&a.standardMouseSelect(),y=a.standardMouseClick(),a.Et=!1,!y)){if(a.isActive=!0,y=di,E===null&&(E=a.findObjectWithContextMenu()),E!==null){var b=E.contextMenu;b!==null?(a.currentObject=E instanceof pn?E:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Xa&&!a.currentContextMenu.visible&&a.stopTool()}}mn.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},mn.prototype.showContextMenu=function(a,y){var E=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Xa){a.layerName="Tool",a.selectable=!1,a.scale=1/E.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=E.scale);var b=a.diagram;b!==null&&b!==E&&b.remove(a),E.add(a),y!==null?a.adornedObject=y:a.data=E.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof St&&a.show(y,E,this);this.currentContextMenu=a},mn.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,E=y.lastInput.documentPoint.copy(),b=a.measuredBounds,x=y.viewportBounds;y.lastInput.isTouchEvent&&(E.x-=b.width),E.x+b.width>x.right&&(E.x-=b.width+5/y.scale),E.x<x.x&&(E.x=x.x),E.y+b.height>x.bottom&&(E.y-=b.height+5/y.scale),E.y<x.y&&(E.y=x.y),a.position=E}},mn.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Xa?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof St&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Wr(a){var y=new Ar;return y.add(new Yt("Copy",function(E){E.commandHandler.copySelection()},function(E){return E.commandHandler.canCopySelection()})),y.add(new Yt("Cut",function(E){E.commandHandler.cutSelection()},function(E){return E.commandHandler.canCutSelection()})),y.add(new Yt("Delete",function(E){E.commandHandler.deleteSelection()},function(E){return E.commandHandler.canDeleteSelection()})),y.add(new Yt("Paste",function(E){E.commandHandler.pasteSelection(a.mouseDownPoint)},function(E){return E.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Yt("Select All",function(E){E.commandHandler.selectAll()},function(E){return E.commandHandler.canSelectAll()})),y.add(new Yt("Undo",function(E){E.commandHandler.undo()},function(E){return E.commandHandler.canUndo()})),y.add(new Yt("Redo",function(E){E.commandHandler.redo()},function(E){return E.commandHandler.canRedo()})),y.add(new Yt("Scroll To Part",function(E){E.commandHandler.scrollToPart()},function(E){return E.commandHandler.canScrollToPart()})),y.add(new Yt("Zoom To Fit",function(E){E.commandHandler.zoomToFit()},function(E){return E.commandHandler.canZoomToFit()})),y.add(new Yt("Reset Zoom",function(E){E.commandHandler.resetZoom()},function(E){return E.commandHandler.canResetZoom()})),y.add(new Yt("Group Selection",function(E){E.commandHandler.groupSelection()},function(E){return E.commandHandler.canGroupSelection()})),y.add(new Yt("Ungroup Selection",function(E){E.commandHandler.ungroupSelection()},function(E){return E.commandHandler.canUngroupSelection()})),y.add(new Yt("Edit Text",function(E){E.commandHandler.editTextBlock()},function(E){return E.commandHandler.canEditTextBlock()})),y}mn.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Wr(this)),Di.innerHTML="",oi.addEventListener("pointerdown",this.tu,!1);var y=this,E=Ur("ul");E.className="goCXul",Di.appendChild(E),E.innerHTML="";for(var b=this.jt.iterator;b.next();){var x=b.value,z=x.visible;if(typeof x.hx=="function"&&(typeof z!="function"||z(a))){z=Ur("li"),z.className="goCXli";var ne=Ur("a");ne.className="goCXa",ne.href="#",ne.ky=x.hx,ne.addEventListener("pointerdown",function(oe){return this.ky(a),y.stopTool(),oe.preventDefault(),!1},!1),ne.textContent=x.text,z.appendChild(ne),E.appendChild(z)}}Di.style.display="block",oi.style.display="block"},mn.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===di){Di.style.display="none",oi.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(oi,"pointerdown",this.tu,!1),this.currentContextMenu=null}},tr.Object.defineProperties(mn.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Xa?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return ii===!1&&di===null&&bl&&wn(this),di},set:function(a){a===null&&(ii=!0),di=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var di=null,ii=!1,oi=null,Di=null;mn.className="ContextMenuTool",zr("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function cr(){Ti.call(this),this.name="TextEditing",this.Zh=new Us,this.ia=null,this.V=mo,this.vj=null,this.qa=jn,this.u=1,this.F=!0,this.o=null,this.j=new St,this.kt=null,pi(this,this.j)}vn(cr,Ti);function pi(a,y){if(bl){var E=Ur("textarea");a.kt=E,E.addEventListener("input",function(){if(a.textBlock!==null){var b=a.Lx(this.value);this.style.width=20+b.measuredBounds.width*this.wA+"px",this.rows=b.lineCount}},!1),E.addEventListener("keydown",function(b){if(!b.isComposing&&a.textBlock!==null){var x=b.key;x==="Enter"?(a.textBlock.isMultiline===!1&&b.preventDefault(),a.acceptText(xo)):x==="Tab"?(a.acceptText(bi),b.preventDefault()):x==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),E.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==jn){var b=a.kt;a.qa===Uo&&(a.qa=ga),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),E.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==jn){var b=a.kt;typeof b.focus=="function"&&b.focus(),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return E.value},y.mainElement=E,y.show=function(b,x,z){if(b instanceof Us&&z instanceof cr)if(z.state===$i)E.style.border="3px solid red",E.focus();else{var ne=b.ga(la),oe=x.position,ue=x.scale,he=b.Df()*ue;he<z.minimumEditorScale&&(he=z.minimumEditorScale);var ge=b.naturalBounds.width*he+6,Ee=b.naturalBounds.height*he+2,ke=(ne.x-oe.x)*ue;ne=(ne.y-oe.y)*ue,oe=b.verticalAlignment,ue=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*he,Ee=oe.y*Ee-oe.y*ue+oe.offsetY-(.5*Ee-.5*ue)-ue/2,E.value=b.text,x.div.style.font=b.font,E.style.position="absolute",E.style.zIndex="100",E.style.font="inherit",E.style.fontSize=100*he+"%",E.style.lineHeight="normal",E.style.width=ge+"px",E.style.left=(ke-ge/2|0)-1+"px",E.style.top=(ne+Ee|0)-1+"px",E.style.textAlign=b.textAlign,E.style.margin="0",E.style.padding="1px",E.style.border="0",E.style.outline="none",E.style.whiteSpace="pre-wrap",E.style.overflow="hidden",E.rows=b.lineCount,E.wA=he,E.className="goTXarea",x.div.appendChild(E),E.focus(),z.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},y.hide=function(b){b.div.removeChild(E)}}}cr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||ta&&ta!==this&&(ta.acceptText(Vi),ta&&ta!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof Us&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===mo&&!y.isSelected||this.starting===Ci&&2>a.lastInput.clickCount)):!1},cr.prototype.doStart=function(){ta=this,this.textBlock!==null&&this.doActivate()},cr.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 Us&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Uo;var E=this.defaultTextEditor;y.textEditor!==null&&(E=y.textEditor),this.Zh=this.textBlock.copy();var b=new Un(this.textBlock.ga(Vs),this.textBlock.ga(eu));a.tv(b),E.show(y,a,this),this.currentTextEditor=E}}}},cr.prototype.doCancel=function(){this.stopTool()},cr.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},cr.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Vi)},cr.prototype.acceptText=function(a){switch(a){case Vi:this.qa===yo?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Uo||this.qa===$i||this.qa===ga)&&(this.qa=ca,Yr(this));break;case Li:case xo:case bi:(xo!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Uo||this.qa===$i||this.qa===ga)&&(this.qa=ca,Yr(this))}};function Yr(a){var y=a.textBlock,E=a.diagram,b=a.currentTextEditor;if(y!==null&&b!==null){var x=y.text,z="";b.valueFunction!==null&&(z=b.valueFunction()),a.isValidText(y,x,z)?(a.Ea(a.name),a.qa=yo,a.transactionResult=a.name,y.text=z,a.doSuccess(x,z),E!==null&&E.R("TextEdited",y,x),a.stopTransaction(),a.stopTool(),E!==null&&E.doFocus()):(a.qa=$i,a.doError(x,z))}}cr.prototype.doError=function(a,y){var E=this.textBlock;E.errorFunction!==null&&E.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(E,this.diagram,this)},cr.prototype.doSuccess=function(a,y){var E=this.textBlock;E.textEdited!==null&&E.textEdited(E,a,y)},cr.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=jn,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},cr.prototype.doStop=function(){ta=null},cr.prototype.isValidText=function(a,y,E){var b=this.textValidation;return b!==null&&!b(a,y,E)?!1:(b=a.textValidation,!!(b===null||b(a,y,E)))},cr.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},tr.Object.defineProperties(cr.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)}}}),cr.prototype.measureTemporaryTextBlock=cr.prototype.Lx;var Li=new Mn(cr,"LostFocus",0),Vi=new Mn(cr,"MouseDown",1),bi=new Mn(cr,"Tab",2),xo=new Mn(cr,"Enter",3),Fn=new Mn(cr,"SingleClick",0),mo=new Mn(cr,"SingleClickSelected",1),Ci=new Mn(cr,"DoubleClick",2),jn=new Mn(cr,"StateNone",0),Uo=new Mn(cr,"StateActive",1),ga=new Mn(cr,"StateEditing",2),ca=new Mn(cr,"StateValidating",3),$i=new Mn(cr,"StateInvalid",4),yo=new Mn(cr,"StateValidated",5),ta=null;cr.className="TextEditingTool",cr.LostFocus=Li,cr.MouseDown=Vi,cr.Tab=bi,cr.Enter=xo,cr.SingleClick=Fn,cr.SingleClickSelected=mo,cr.DoubleClick=Ci,cr.StateNone=jn,cr.StateActive=Uo,cr.StateEditing=ga,cr.StateValidating=ca,cr.StateInvalid=$i,cr.StateValidated=yo,zr("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function na(a){_r||(wo(),_r=!0),this.H=Ja,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Qr,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new qt,this.ce=new Wo,this.ce.Yd=this,this.Ei=new qt,this.pu=new qt,this.Sr=new qt,this.pr=new qt,a&&Object.assign(this,a)}na.prototype.Xe=function(a){this.H=a},na.prototype.canStart=function(){return!0};function Ha(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),El(a.H),a.zb=!0)}function wa(a){if(a.Jd&&a.zb){var y=a.ce,E=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===Qr?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(E,"position",E.position.copy().offset(0,-200),E.position),y.add(E,"opacity",0,1)):a.Pk===Bo&&y.vc.clear(),a.Qw=!!(a.Pk===Ro&&E.du.D(E.pa)),E.R("InitialAnimationStarting",a)),b&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),Za(y,E),a.Ok=!1,E.N()):(a.Zd.clear(),E.kg=!1,b=y.vc.get(E),E.autoScale!==tc&&b!==null&&(delete b.start.scale,delete b.end.scale),Hn.requestAnimationFrame(function(){a.zb===!1||y.bc||(E.Gf("temporaryPixelRatio")&&io(E),Cs(E),a.zb=!1,y.start(),y.bc&&(Lo(a),E.Ya(),Ws(y,0),Rl(E,!0),Ui(a),E.R("AnimationStarting",a)))}))}}function ko(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function fo(a,y,E,b){a.isTicking||ko(a)||y instanceof Fr&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",E,b,!1)}We=na.prototype,We.fv=function(a){return this.ce.fv(a)},We.Xu=function(a){return this.ce.Xu(a)};function Qo(a,y){function E(){if(0<x.Sr.count&&(b.addAll(x.Sr),x.Sr.clear(),x.bc=!0),x.bc!==!1&&b.count!==0){x.pu.addAll(b);for(var z=x.pu.iterator;z.next();){var ne=z.value;if(ne.bc!==!1){e:if(0<ne.yl.count)var oe=!0;else{for(oe=ne.vc.iterator;oe.next();){var ue=oe.key;if(ue instanceof pn&&ue.diagram!==null||ue instanceof xn){oe=!0;break e}}oe=!1}oe?cs(ne,!1):ne.Xk=!0}}x.pu.clear(),x.bc!==!1&&(Lo(x),Rl(x.H),Ui(x)),Hn.requestAnimationFrame(E)}}var b=a.Ei,x=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),Hn.requestAnimationFrame(function(){E()}))}function ja(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function Lo(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 Ui(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}We.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(),Za(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Za(y,this.H)},We.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))},We.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Pi(this,a))},We.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),Ko(this.ce,y,"position",y.position,y.position),Pi(this,a))};function so(a,y,E){!a.zb||y.D(E)||ko(a)||(a.H.pi||(y=E.copy()),Ko(a.ce,a.H,"position",y,E))}function ho(a,y,E){y.fd&&(y.Tg=E,a.pr.add(y))}function Pi(a,y){for(y=y.findLinksConnected();y.next();){var E=y.value;E.fd&&(E.Tg=E.points.copy(),a.pr.add(E))}}function Zi(a,y,E,b,x){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],ne=a[1],oe=a[2];a=a[3];var ue=y[0],he=y[1],ge=y[2];return y=y[3],oe===0||oe===100?(z=ue,ne=he):(ge===0||ge===100)&&(ue=z,he=ne),180<Math.abs(ue-z)&&(ue>z?z+=360:ue+=360),z=x(E,z,ue-z,b)%360,ne=x(E,ne,he-ne,b),oe=x(E,oe,ge-oe,b),E=x(E,a,y-a,b),"hsla("+z+", "+ne+"%, "+oe+"%, "+E+")"}function wo(){function a(E,b,x,z,ne,oe){E.position=new xt(z(ne,b.x,x.x-b.x,oe),z(ne,b.y,x.y-b.y,oe))}var y=new xr;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(E,b,x,z,ne,oe){ne<oe?E.mm(z(ne,b.x,x.x-b.x,oe),z(ne,b.y,x.y-b.y,oe),!1):E.position=new xt(z(ne,b.x,x.x-b.x,oe),z(ne,b.y,x.y-b.y,oe))}),y.add("location",function(E,b,x,z,ne,oe){ne<oe?E.mm(z(ne,b.x,x.x-b.x,oe),z(ne,b.y,x.y-b.y,oe),!0):E.location=new xt(z(ne,b.x,x.x-b.x,oe),z(ne,b.y,x.y-b.y,oe))}),y.add("position:placeholder",function(E,b,x,z,ne,oe){ne<oe?E.mm(z(ne,b.x,x.x-b.x,oe),z(ne,b.y,x.y-b.y,oe),!1):E.position=new xt(z(ne,b.x,x.x-b.x,oe),z(ne,b.y,x.y-b.y,oe))}),y.add("position:nodeCollapse",function(E,b,x,z,ne,oe){var ue=E.actualBounds,he=x.actualBounds;x=he.x+he.width/2-ue.width/2,ue=he.y+he.height/2-ue.height/2,ne<oe?E.mm(z(ne,b.x,x-b.x,oe),z(ne,b.y,ue-b.y,oe),!1):E.position=new xt(z(ne,b.x,x-b.x,oe),z(ne,b.y,ue-b.y,oe))}),y.add("desiredSize",function(E,b,x,z,ne,oe){E.desiredSize=new Un(z(ne,b.width,x.width-b.width,oe),z(ne,b.height,x.height-b.height,oe))}),y.add("width",function(E,b,x,z,ne,oe){E.width=z(ne,b,x-b,oe)}),y.add("height",function(E,b,x,z,ne,oe){E.height=z(ne,b,x-b,oe)}),y.add("fill",function(E,b,x,z,ne,oe){E.fill=Zi(b,x,ne,oe,z)}),y.add("stroke",function(E,b,x,z,ne,oe){E.stroke=Zi(b,x,ne,oe,z)}),y.add("strokeWidth",function(E,b,x,z,ne,oe){E.strokeWidth=z(ne,b,x-b,oe)}),y.add("strokeDashOffset",function(E,b,x,z,ne,oe){E.strokeDashOffset=z(ne,b,x-b,oe)}),y.add("background",function(E,b,x,z,ne,oe){E.background=Zi(b,x,ne,oe,z)}),y.add("areaBackground",function(E,b,x,z,ne,oe){E.areaBackground=Zi(b,x,ne,oe,z)}),y.add("opacity",function(E,b,x,z,ne,oe){E.opacity=z(ne,b,x-b,oe)}),y.add("scale",function(E,b,x,z,ne,oe){E.scale=z(ne,b,x-b,oe)}),y.add("angle",function(E,b,x,z,ne,oe){E.angle=z(ne,b,x-b,oe)}),Ea=y}tr.Object.defineProperties(na.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&&ji(a,">= 1",na,"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}}}),na.prototype.stopAnimation=na.prototype.Cc;var Ea=null,_r=!1,Qr=new Mn(na,"Default",1),Ro=new Mn(na,"AnimateLocations",2),Bo=new Mn(na,"None",3);na.className="AnimationManager",na.defineAnimationEffect=function(a,y){_r||(wo(),_r=!0),Ea.add(a,y)},na.Default=Qr,na.AnimateLocations=Ro,na.None=Bo;function Wo(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=Qa,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Po,this.vc=new xr,this.Tt=new xr,this.yl=new qt,this.Ut=new qt,this.dw=Ah,a&&Object.assign(this,a)}Wo.prototype.suspend=function(){this.Xk=!0},Wo.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,cs(this,!0),Lo(this.Yd),Rl(this.H),Ui(this.Yd),this.H.redraw()};function Za(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}We=Wo.prototype,We.start=function(){if(this.vc.count===0||this.bc)return this;for(var a=this.H,y=this.vc.iterator;y.next();){var E=y.key;a===null&&(E instanceof xn?a=E:E instanceof pn&&(a=E.diagram))}if(a!==null)this.H=a,this.Yd=a.animationManager;else return this;return y=this.Yd,y.isEnabled===!1?this:(this.Gd=isNaN(this.Dg)?y.duration:this.Dg,this.Lp=this.ot,y.Ok&&y.Pk===Qr&&this===y.defaultAnimation&&(this.Lp=ds,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Lf),Lo(y),this.yl.each(function(b){b.data=null,a.add(b)}),Ui(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,Qo(y,this),this)},We.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},We.add=function(a,y,E,b,x){if(y==="position"&&E.Xa(b))return this;if(this.H===null&&(a instanceof xn?this.H=a:a instanceof pn&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Wi){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return Ko(this,a,y,E,b,x),this};function Ko(a,y,E,b,x,z){var ne=a.vc;if(y instanceof xn&&E==="position"&&(E="position:diagram"),(E==="fill"||E==="stroke"||E==="background"||E==="areaBackground")&&(Sd(b),op(),b=[qc.j,qc.u,qc.o,qc.F],Sd(x),op(),x=[qc.j,qc.u,qc.o,qc.F]),ne.contains(y)){var oe=ne.I(y),ue=oe.start,he=oe.end;ue[E]===void 0&&(ue[E]=Oa(b)),he[E]=Oa(x)}else ue={},he={},ue[E]=Oa(b),he[E]=Oa(x),oe=ue.position,y instanceof pn&&oe instanceof xt&&!oe.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&oe.assign(he.position),oe=new ma(ue,he,z),ne.add(y,oe);ne=ue[E],ne instanceof xt&&!ne.w()&&ne.assign(a.o),z&&E.indexOf("position:")===0&&y instanceof Wi?oe.Ku.location=Oa(y.location):z&&(oe.Ku[E]=Oa(b))}function Oa(a){return a instanceof xt||a instanceof sn?a.copy():a}We.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},We.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function cs(a,y){if(!a.Xk||y){var E=a.Yd;if(a.bc!==!1){var b=+new Date,x=b>a.cn?a.Gd:b-a.Qd;y&&(x=a.gw,x<a.Gd?(a.Qd=+new Date-x,a.cn=a.Qd+a.Gd):x=a.Gd),Lo(E),Ws(a,x),Rl(a.H,!0),Ui(E),b>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function Ws(a,y){for(var E=a.Gd,b=a.vc.iterator,x=a.Wk;b.next();){var z=b.key;if(!(z instanceof pn&&z.diagram===null)){var ne=b.value,oe=x?ne.end:ne.start;ne=x?ne.start:ne.end;var ue=Ea,he;for(he in ne)he==="position"&&(ne["position:placeholder"]||ne["position:nodeCollapse"])||ue.get(he)===null||ue.get(he)(z,oe[he],ne[he],a.Lp,y,E,a)}}}We.stop=function(){return this.bc?(this.Ml(!0),this):this},We.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,E=this.Yd;this.Xk=this.bc=E.Ok=!1,Lo(E);for(var b=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,b=b.iterator;for(var z=Ea;b.next();){var ne=b.key,oe=b.value,ue=x?oe.end:oe.start,he=x?oe.start:oe.end,ge=oe.Ku,Ee;for(Ee in he)if(z.get(Ee)!==null){var ke=Ee;!oe.Hu||ke!=="position:nodeCollapse"&&ke!=="position:placeholder"||(ke="position"),z.get(ke)(ne,ue[Ee],ge[Ee]!==void 0?ge[Ee]:oe.Hu?ue[Ee]:he[Ee],this.Lp,this.Gd,this.Gd,this)}oe.Hu&&ge.location!==void 0&&ne instanceof Wi&&(ne.location=ge.location),oe.nv&&ne instanceof Wi&&ne.Zb(!1)}if(y.As.clear(),La(y,!1),y.Ya(),y.N(),Rl(y,!0),E.defaultAnimation===this){for(Ee=E.pr.iterator;Ee.next();)x=Ee.value,x.Tg!==null&&(x.points=x.Tg,x.Tg=null);E.pr.clear()}Rl(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Ui(E),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Za(this,null),E.Ml(this),y.$b())}},We.Cj=function(a,y){var E=y.actualBounds,b=null;if(y instanceof Fo&&(b=y.placeholder),b!==null?(E=b.ga(Vs),b=b.padding,E.x+=b.left,E.y+=b.top,this.add(a,"position",E,a.position,!1)):this.add(a,"position",new xt(E.x+E.width/2,E.y+E.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Fo)for(a=a.memberParts;a.next();)b=a.value,b instanceof qr&&this.Cj(b,y)},We.Aj=function(a,y){if(a.isVisible()){var E=null;if(y instanceof Fo&&(E=y.placeholder),E!==null){var b=E.ga(Vs);E=E.padding,b.x+=E.left,b.y+=E.top,this.add(a,"position:placeholder",a.position,b,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),b=this.vc,b.contains(a)&&(b.I(a).nv=!0),a instanceof Fo)for(a=a.memberParts;a.next();)b=a.value,b instanceof qr&&this.Aj(b,y)}},We.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},tr.Object.defineProperties(Wo.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&ji(a,">= 1",Wo,"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:Pn("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}}}),Wo.prototype.getTemporaryState=Wo.prototype.Ez,Wo.prototype.stop=Wo.prototype.stop,Wo.prototype.add=Wo.prototype.add,Wo.prototype.addTemporaryPart=Wo.prototype.Iy;function Qa(a,y,E,b){return a/=b/2,1>a?E/2*a*a+y:-E/2*(--a*(a-2)-1)+y}function ds(a,y,E,b){return a===b?y+E:E*(-Math.pow(2,-10*a/b)+1)+y}Wo.className="Animation",Wo.EaseLinear=function(a,y,E,b){return E*a/b+y},Wo.EaseInOutQuad=Qa,Wo.EaseInQuad=function(a,y,E,b){return E*(a/=b)*a+y},Wo.EaseOutQuad=function(a,y,E,b){return-E*(a/=b)*(a-2)+y},Wo.EaseInExpo=function(a,y,E,b){return a===0?y:E*Math.pow(2,10*(a/b-1))+y},Wo.EaseOutExpo=ds;function ma(a,y,E){this.start=a,this.end=y,this.Ku={},this.Hu=E,this.nv=!1}ma.className="AnimationState";function Ks(a,y,E){this.xd=null,this.rf=a,this.so=E||tl,this.uk=null,y!==void 0&&(this.uk=y,E===void 0&&(this.so=qi))}Ks.prototype.copy=function(){var a=new Ks(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var E={};y.duration!==void 0&&(E.duration=y.duration),y.finished!==void 0&&(E.finished=y.finished),y.easing!==void 0&&(E.easing=y.easing),a.uk=E}return a};function Rs(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))}tr.Object.defineProperties(Ks.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 tl=new Mn(Ks,"Default",1),qi=new Mn(Ks,"Immediate",2),eo=new Mn(Ks,"Bundled",3);Ks.className="AnimationTrigger",Ks.Default=tl,Ks.Immediate=qi,Ks.Bundled=eo;function po(a){At(this),this.H=null,this.Pa=new Ar,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)}We=po.prototype,We.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var E=a.s[y];E.Ig=null,Zu(E)}a.clear(),this.Zq.length=0},We.Xe=function(a){this.H=a},We.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var E=0,b=0,x=0,z=0,ne=0,oe=this.Pa.iterator;oe.next();){var ue=oe.value;ue instanceof Fo?x++:ue instanceof qr?b++:ue instanceof Fr?z++:ue instanceof Xa?ne++:E++}if(oe="",0<E&&(oe+=E+" Parts "),0<b&&(oe+=b+" Nodes "),0<x&&(oe+=x+" Groups "),0<z&&(oe+=z+" Links "),0<ne&&(oe+=ne+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)E=a.value,oe+=`
|
|
|
`+E.toString(),b=E.data,b!==null&&Qt(b)&&(oe+=" #"+Qt(b)),E instanceof qr?oe+=" "+ba(b):E instanceof Fr&&(oe+=" "+ba(E.fromNode)+" "+ba(E.toNode));return y+" "+this.Pa.count+": "+oe},We.ic=function(a,y,E){if(y===void 0&&(y=null),E===void 0&&(E=null),this.Uh===!1)return null;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var x=xt.alloc(),z=this.Pa.s,ne=z.length;ne--;){var oe=z[ne];if((b!==!0||Ff(oe)!==!1)&&oe.isVisible()&&(x.assign(a),pr(x,oe.oe),oe=oe.ic(x,y,E),oe!==null&&(y!==null&&(oe=y(oe)),oe!==null&&(E===null||E(oe)))))return xt.free(x),oe}return xt.free(x),null},We.ji=function(a,y,E,b){if(y===void 0&&(y=null),E===void 0&&(E=null),b instanceof Ar||b instanceof qt||(b=new qt),this.Uh===!1)return b;var x=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(x=!0);for(var z=xt.alloc(),ne=this.Pa.s,oe=ne.length;oe--;){var ue=ne[oe];if((x!==!0||Ff(ue)!==!1)&&ue.isVisible()){z.assign(a),pr(z,ue.oe);var he=ue;ue.ji(z,y,E,b)&&(y!==null&&(he=y(he)),he===null||E!==null&&!E(he)||b.add(he))}}return xt.free(z),b},We.Cf=function(a,y,E,b,x){if(y===void 0&&(y=null),E===void 0&&(E=null),b===void 0&&(b=!1),x instanceof Ar||x instanceof qt||(x=new qt),this.Uh===!1)return x;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var ne=this.Pa.s,oe=ne.length;oe--;){var ue=ne[oe];if((z!==!0||Ff(ue)!==!1)&&ue.isVisible()){var he=ue;ue.Cf(a,y,E,b,x)&&(y!==null&&(he=y(he)),he===null||E!==null&&!E(he)||x.add(he))}}return x},We.Nu=function(a,y,E,b,x,z,ne){if(this.Uh===!1)return x;for(var oe=this.Pa.s,ue=oe.length;ue--;){var he=oe[ue];if((ne!==!0||Ff(he)!==!1)&&z(he)&&he.isVisible()){var ge=he;he.Cf(a,y,E,b,x)&&(y!==null&&(ge=y(ge)),ge===null||E!==null&&!E(ge)||x.add(ge))}}return x},We.og=function(a,y,E,b,x,z){if(E===void 0&&(E=null),b===void 0&&(b=null),x===void 0&&(x=!0),x!==!1&&x!==!0&&((x instanceof Ar||x instanceof qt)&&(z=x),x=!0),z instanceof Ar||z instanceof qt||(z=new qt),this.Uh===!1)return z;var ne=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ne=!0);for(var oe=xt.alloc(),ue=xt.alloc(),he=this.Pa.s,ge=he.length;ge--;){var Ee=he[ge];if((ne!==!0||Ff(Ee)!==!1)&&Ee.isVisible()){oe.assign(a),pr(oe,Ee.oe),ue.h(a.x+y,a.y),pr(ue,Ee.oe);var ke=Ee;Ee.og(oe,ue,E,b,x,z)&&(E!==null&&(ke=E(ke)),ke===null||b!==null&&!b(ke)||z.add(ke))}}return xt.free(oe),xt.free(ue),z},We.Fd=function(a,y){if(this.visible){var E=this.Pa.s,b=E.length;if(b!==0){a=Oi();for(var x=Oi(),z=0;z<b;z++){var ne=E[z];if(ne.vw=z,ne instanceof Fr){if(ne.fd===!1)continue}else if(ne instanceof Xa&&ne.adornedPart!==null)continue;var oe=ne.actualBounds;ne.isVisible()&&Tl(oe,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(E=a[y],Zv(E),E=E.adornments;E.next();)b=E.value,b.measure(1/0,1/0),b.arrange(),b.Fd(!0);for(y=0;y<x.length;y++)Zv(x[y]);Yi(a),Yi(x)}}};function da(a,y){var E=1;return a.pb!==1&&(E=y.globalAlpha,y.globalAlpha=E*a.pb),E}We.gc=function(a,y,E){if(this.visible&&this.pb!==0&&(E===void 0&&(E=!0),E||!this.isTemporary)){E=this.Pa.s;var b=E.length;if(b!==0){if(a.isTemporary)for(var x=0;x<b;x++)E[x].Gj();x=da(this,a);var z=this.Zq;z.length=0;for(var ne=y.scale,oe=Un.alloc(),ue=0;ue<b;ue++)this.Oj(a,E[ue],y,z,ne,oe,!0);if(Un.free(oe),a.isTemporary)for(y=0;y<b;y++)E[y].Gj();a.globalAlpha=x}}};function hs(a,y,E,b,x){if(a.visible&&a.pb!==0&&(x||!a.isTemporary)){x=a.Pa.s;var z=x.length;if(z!==0){var ne=da(a,y),oe=a.Zq;oe.length=0;for(var ue=E.scale,he=Un.alloc(),ge=0;ge<z;ge++){var Ee=x[ge];b.contains(Ee)&&a.Oj(y,Ee,E,oe,ue,he,!1)}Un.free(he),y.globalAlpha=ne}}}We.Oj=function(a,y,E,b,x,z,ne){if(ne&&!Ff(y))a.Hs(y);else{if(b!==null&&y instanceof Fr&&(y.isOrthogonal&&b.push(y),y.fd===!1)){a.Hs(y);return}for(ne=!1,b=y.containingGroup;b!==null;)ne?b.tb!==null&&z.Ex(b.tb):b.tb!==null&&(ne=!0,z.assign(b.tb)),b=b.containingGroup;var oe=y.actualBounds;if(b=!1,ne&&y.isVisible()){if(!z.Yc(oe)){a.Hs(y);return}b=!z.Re(oe)}b&&(a.save(),a instanceof ps?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),oe.width*x>E.Oq||oe.height*x>E.Oq?y.gc(a,E):(x=y.actualBounds,z=y.naturalBounds,x.width===0||x.height===0||isNaN(x.x)||isNaN(x.y)||!y.isVisible()||(E=y.transform,y.areaBackground!==null&&(xl(y,a,y.areaBackground,!0,!0,z,x),a.fillRect(x.x,x.y,x.width,x.height)),y.areaBackground===null&&y.background===null&&(xl(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(E.m11,E.m12,E.m21,E.m22,E.dx,E.dy),xl(y,a,y.background,!0,!1,z,x),a.fillRect(0,0,z.width/2,z.height/2),E.ws()||(y=1/(E.m11*E.m22-E.m12*E.m21),a.transform(E.m22*y,-E.m12*y,-E.m21*y,E.m11*y,y*(E.m21*E.dy-E.m22*E.dx),y*(E.m12*E.dx-E.m11*E.dy)))))),b&&(a.restore(),a.Vc(!0))}},We.g=function(a,y,E,b,x){var z=this.diagram;z!==null&&z.cb(ys,a,this,y,E,b,x)},We.oi=function(a,y,E){var b=this.Pa;if(y.Ig=this,this===null&&Zu(y),a>=b.count)a=b.count;else if(b.M(a)===y)return-1;return b.Gb(a,y),y.Vo(E),b=this.diagram,b!==null&&(E?b.N():b.oi(y)),Bs(this,a,y),a},We.pc=function(a,y,E){if(!E&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,E);var b=this.Pa;if(0>a||a>=b.length){if(a=b.indexOf(y),0>a)return-1}else if(b.M(a)!==y&&(a=b.indexOf(y),0>a))return-1;return y.Wo(E),b.mb(a),b=this.diagram,b!==null&&(E?b.N():b.pc(y)),y.Ig=null,Zu(y),a};function Bs(a,y,E){if(y=$s(a,y,E),E instanceof Fo&&E!==null&&isNaN(E.zOrder)){if(E.memberParts.count!==0){for(var b=-1,x=a.Pa.s,z=x.length,ne=0;ne<z;ne++){var oe=x[ne];if(oe===E&&(y=ne,0<=b)||0>b&&oe.containingGroup===E&&(b=ne,0<=y))break}!(0>b)&&b<y&&(x=a.Pa,x.mb(y),x.Gb(b,E))}y=E.containingGroup,y!==null&&Bs(a,-1,y)}E.svg!==null&&E.svg.remove()}function $s(a,y,E){var b=E.zOrder;if(isNaN(b))return y;a=a.Pa;var x=a.count;if(1>=x)return y;if(0>y&&(y=a.indexOf(E)),0>y)return-1;for(var z=y-1,ne=NaN;0<=z&&(ne=a.M(z).zOrder,!!isNaN(ne));)z--;for(var oe=y+1,ue=NaN;oe<x&&(ue=a.M(oe).zOrder,!!isNaN(ue));)oe++;if(!isNaN(ne)&&ne>b)for(;;){if(z===-1||ne<=b){if(z++,z===y)break;return a.mb(y),a.Gb(z,E),z}for(ne=NaN;0<=--z&&(ne=a.M(z).zOrder,isNaN(ne)););}else if(!isNaN(ue)&&ue<b)for(;;){if(oe===x||ue>=b){if(oe--,oe===y)break;return a.mb(y),a.Gb(oe,E),oe}for(ue=NaN;++oe<x&&(ue=a.M(oe).zOrder,isNaN(ue)););}return y}tr.Object.defineProperties(po.prototype,{parts:{get:function(){return this.Pa.iterator}},partsBackwards:{get:function(){return this.Pa.iteratorBackwards}},diagram:{get:function(){return this.H}},name:{get:function(){return this.xa},set:function(a){var y=this.xa;if(y!==a){var E=this.diagram;if(E!==null)for(y===""&&Pn("Cannot rename default Layer to: "+a),E=E.layers;E.next();)E.value.name===a&&Pn("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)&&ji(a,"0 <= value <= 1",po,"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))}}}),po.prototype.findObjectsNear=po.prototype.og,po.prototype.findObjectsIn=po.prototype.Cf,po.prototype.findObjectsAt=po.prototype.ji,po.prototype.findObjectAt=po.prototype.ic,po.className="Layer";function xn(a,y){if(og||(Ku(),og=!0),At(this),Ja=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,bl){var E=this,b=function(){E.removeEventListener(Hn.document,"DOMContentLoaded",b,!1),E.setRTL()};Hn.document.body!==null?this.setRTL():E.addEventListener(Hn.document,"DOMContentLoaded",b,!1)}this.ol=null,ip.add("Model",bs);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 oe=z.change;z.modelChange===""&&oe===ys&&ne.updateDataBindings(z.object,z.propertyName)}finally{ne.diagram.aa=!0}}},this.Oc=function(z){x.partManager.doModelChanged(z)},this.hu=this.ku=null,fs(this),this.model=wy(),this.Wg=!0,Yo(this),this.layout=new gl,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 ag,a!==void 0&&(typeof a=="string"||Hn.Element&&a instanceof Element?Qi(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var Da,Ja;function fs(a){a.Yd=new na,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new Ar,a.pj=new xr,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new xt(NaN,NaN).freeze(),a.du=new xt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new xt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new No,a.zu=new xt(NaN,NaN).freeze(),a.ut=new Un(NaN,NaN,NaN,NaN).freeze(),a.rj=new Bi(0,0,0,0).freeze(),a.sj=Ah,a.nu=!1,a.Zt=null,a.fu=null,a.yh=tc,a.zk=yl,a.Fg=tc,a.pq=yl,a.yt=Vs,a.Bt=Vs,a.Fc=!0,a.pn=!1,a.De=new qt,a.Eh=new xr,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Bi(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new $l,a.bq.diagram=a,a.Qg=new $l,a.Qg.diagram=a,a.cj=new $l,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,Vg(a),a.ai=new qt,a.Ht=!0,a.uu=gh,a.pw=!1,a.wu=zh,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 xr,a.Xn=new Ar,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 Bi(5).freeze(),a.Hw=new qt().freeze(),a.Nt=999999999,a.nw=new qt().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 qt,a.ow=new qt,a.Xh=null,a.aw=new sn(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new xt,bounds:new Un,Py:new sn,bA:new sn,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new Un(NaN,NaN,NaN,NaN).freeze(),a.wo=new sn(NaN,NaN).freeze(),a.Sp=new Un(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new xr;var y=new qr,E=new Us;E.bind(new Yl("text","",ba)),y.add(E),a.ny=y,a.Lg.add("",y),y=new qr,E=new Us,E.stroke="brown",E.bind(new Yl("text","",ba)),y.add(E),a.Lg.add("Comment",y),y=new qr,y.selectable=!1,y.avoidable=!1,E=new Zo,E.figure="Ellipse",E.fill="black",E.stroke=null,E.desiredSize=new sn(3,3).ja(),y.add(E),a.Lg.add("LinkLabel",y),a.Yi=new xr,y=new Fo,y.selectionObjectName="GROUPPANEL",y.type=kr.Vertical,E=new Us,E.font="bold 12pt sans-serif",E.bind(new Yl("text","",ba)),y.add(E),E=new kr(kr.Auto),E.name="GROUPPANEL";var b=new Zo;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",E.add(b),b=new Pc,b.padding=new Bi(5,5,5,5).ja(),E.add(b),y.add(E),a.ly=y,a.Yi.add("",y),a.Kh=new xr,y=new Fr,E=new Zo,E.isPanelMain=!0,y.add(E),E=new Zo,E.toArrow="Standard",E.fill="black",E.stroke=null,E.strokeWidth=0,y.add(E),a.my=y,a.Kh.add("",y),y=new Fr,E=new Zo,E.isPanelMain=!0,E.stroke="brown",y.add(E),a.Kh.add("Comment",y),y=new Xa,y.type=kr.Auto,E=new Zo,E.fill=null,E.stroke="dodgerblue",E.strokeWidth=3,y.add(E),E=new Pc,E.margin=new Bi(1.5,1.5,1.5,1.5).ja(),y.add(E),a.St=y,a.wt=y,y=new Xa,y.type=kr.Link,E=new Zo,E.isPanelMain=!0,E.fill=null,E.stroke="dodgerblue",E.strokeWidth=3,y.add(E),a.Kt=y,a.fe=null,a.mq=!1,a.Ck=null,a.partManager=new bs,a.toolManager=new ms,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new ce,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=fl(),a.eq=null,a.fq=Sa,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 xt,a.zy=500,a.wp=new xt,a.wq=!1}xn.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),of=null,Th="",jl(this,!1),this.Xn.clear(),gg(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function jl(a,y){a.animationManager.Cc(!0),a.Hw=new qt().freeze(),a.nw=new qt().freeze();var E=a.skipsUndoManager,b=a.cc!==null&&a.cc!==void 0;b&&(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 oe=a.Wa.s[y].parts;oe.next();){var ue=oe.value;ue!==x&&ue.data===null&&z.push(ue)}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(),gg(),a.Og.clear(),es=[],x!==null&&(a.add(x),a.partManager.parts.remove(x)),b&&(a.skipsUndoManager=E),z}function fl(){return null}xn.prototype.reset=function(){this.clear(),this.vb=!0,fs(this),Tc(this),this.Wg=!0,Yo(this),this.layout=new gl,this.Wg=!1,this.model=wy(),this.model.undoManager=new Fs,this.vb=this.rn=!1,this.N()},xn.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Hn.document.body);var y=Ur("div");y.dir="rtl",y.style.cssText="font-size: 14px; width: 1px; height: 1px; position: absolute; top: -1000px; overflow: scroll;",y.textContent="A",a.appendChild(y);var E="reverse";0<y.scrollLeft?E="default":(y.scrollLeft=1,y.scrollLeft===0&&(E="negative")),a.removeChild(y),this.bu=E},xn.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Hn.document.body);var y=0;if(bl){var E=ig;y=Da,E===null&&(E=ig=Ur("p"),E.style.width="100%",E.style.height="200px",E.style.boxSizing="content-box",y=Da=Ur("div"),y.style.position="absolute",y.style.visibility="hidden",y.style.width="200px",y.style.height="150px",y.style.boxSizing="content-box",y.appendChild(E)),y.style.overflow="hidden",a.appendChild(y);var b=E.offsetWidth;y.style.overflow="scroll",E=E.offsetWidth,b===E&&(E=y.clientWidth),a.removeChild(y),y=b-E,y!==0||gs||(y=11)}this.Db=y,this.Gw=!0},xn.prototype.qb=function(a){a.classType===xn&&(this.autoScale=a)},xn.prototype.toString=function(a){a===void 0&&(a=0);var y="";if(this.div&&this.div.id&&(y=this.div.id),y='Diagram "'+y+'"',0>=a)return y;for(var E=this.Wa.iterator;E.next();)y+=`
|
|
|
`+E.value.toString(a-1);return y};function Qi(a,y){if(bl){if(y!=null||Pn("Diagram setup requires an argument DIV."),a.Ka!==null&&Pn("Diagram has already completed setup."),typeof y=="string"?a.Ka=Hn.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Pn("No DIV or DIV id supplied: "+y),a.Ka===null&&Pn("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Pn("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Hn.ResizeObserver){var E=Ri(function(){a.$b()},250);a.ol=new Hn.ResizeObserver(function(){E()}),a.ol.observe(a.Ka)}Hn.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var b="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=b,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=Hn.go;var x=new _u(a);if(x.style!==void 0&&(x.style.position="absolute",x.style.top="0px",x.style.left="0px",Hn.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,b=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),$d(a,a.Aa,a.ya),a.Ka.insertBefore(x.Oa,a.Ka.firstChild),x=new _u(null),x.width=1,x.height=1,a.jw=x,a.oy=x.context,bl){x=Ur("div");var z=Ur("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=Ga,x.addEventListener("pointerdown",$a),x.H=a,x.uy=!0,x.vy=!0,a.ku=x,a.hu=z}a.hk=Ri(function(){a.Yh=null,a.N()},300),a.Ov=Ri(function(){Cs(a)},250),a.preventDefault=function(ne){return ne.preventDefault(),!1},a.$j=function(ne){if(a.isEnabled){var oe=Ol(a,ne,!0);oe.bubbles=!0;var ue=0,he=0;oe.delta=0,ne.deltaX!==void 0?(ne.deltaX!==0&&(ue=0<ne.deltaX?1:-1),ne.deltaY!==0&&(he=0<ne.deltaY?1:-1),oe.delta=Math.abs(ne.deltaX)>Math.abs(ne.deltaY)?-ue:-he):ne.wheelDeltaX!==void 0?(ne.wheelDeltaX!==0&&(ue=0<ne.wheelDeltaX?-1:1),ne.wheelDeltaY!==0&&(he=0<ne.wheelDeltaY?-1:1),oe.delta=Math.abs(ne.wheelDeltaX)>Math.abs(ne.wheelDeltaY)?-ue:-he):ne.wheelDelta!==void 0&&ne.wheelDelta!==0&&(oe.delta=0<ne.wheelDelta?1:-1),a.doMouseWheel(),ia(oe,ne)}},a.aA=function(ne){a.isEnabled&&(a.Vk=!1,Ol(a,ne,!0),ne=a.currentTool,ne.cancelWaitAfter(),ne.standardMouseOver())},a.ui=function(ne){if(a.isEnabled){a.Vk=!0;var oe=a.Yt;oe[ne.pointerId]===void 0&&(oe[ne.pointerId]=ne),oe=a.oj;var ue=!1;if(oe[0]===null||oe[0].pointerId!==ne.pointerId&&oe[0].pointerType===ne.pointerType)if(oe[1]!==null&&oe[1].pointerId===ne.pointerId)oe[1]=ne,ue=!0;else if(oe[0]===null)oe[0]=ne;else if(oe[1]===null)oe[1]=ne,ue=!0;else{ne.preventDefault();return}else oe[0]=ne;(oe=ne.pointerType==="touch"||ne.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var he=ue;ue=Aa(a,ne,!0,!1,!0,he),rl(a,ne,ue),ue.targetDiagram=zl(ne,ne.target),ue.targetObject=null,he||ue.clone(a.bq),he=a.uw,oe=oe?25:10,ne.timeStamp-a.tw<a.zy&&!(Math.abs(he.x-ne.screenX)>oe||Math.abs(he.y-ne.screenY)>oe)?a.yq++:a.yq=1,ue.clickCount=a.yq,a.tw=ne.timeStamp,a.uw.sg(ne.screenX,ne.screenY),a.doMouseDown(),ne.button===1?ne.preventDefault():ia(ue,ne)}},a.dk=function(ne){if(a.isEnabled){a.Vk=!0;var oe=a.oj;if(oe[0]===null||oe[0].pointerId!==ne.pointerId&&oe[0].pointerType===ne.pointerType){if(oe[1]!==null&&oe[1].pointerId===ne.pointerId){oe[1]=ne;return}if(oe[0]===null)oe[0]=ne;else return}else oe[0]=ne;if(oe[0].pointerId===ne.pointerId){oe=Aa(a,ne,!1,!1,!1,oe[1]!==null);var ue=Hn.document.elementFromPoint(ne.clientX,ne.clientY)||null;ue!==null&&ue.shadowRoot!==void 0&&ue.shadowRoot!==null&&(ue=ue.shadowRoot.elementFromPoint(ne.clientX,ne.clientY));var he=a,ge=ne;ue&&ue.H&&(ge=ne,he=ue.H),oe.targetDiagram=he,rl(a,ge,oe),oe.targetObject=null,a.doMouseMove(),ia(oe,ne)}}},a.fk=function(ne){if(a.isEnabled){a.Vk=!0;var oe=ne.pointerType==="touch"||ne.pointerType==="pen",ue=a.Yt;if(oe&&a.qu)delete ue[ne.pointerId],ne.preventDefault();else if(ue=a.oj,ue[0]===null||ue[0].pointerId!==ne.pointerId&&ue[0].pointerType===ne.pointerType)ue[1]!==null&&ue[1].pointerId===ne.pointerId&&(ue[1]=null);else{ue[0]=null,ue=Aa(a,ne,!1,!0,!0,!1);var he=Hn.document.elementFromPoint(ne.clientX,ne.clientY)||null;he!==null&&he.shadowRoot!==void 0&&he.shadowRoot!==null&&(he=he.shadowRoot.elementFromPoint(ne.clientX,ne.clientY)),he!==null&&he.H instanceof xn&&he.H!==a&&rl(he.H,ne,ue),he===null&&(he=ne.target),rl(a,ne,ue),ue.clickCount=a.yq,ue.targetDiagram=zl(ne,he),ue.targetObject=null,a.doMouseUp(),ia(ue,ne),oe&&(a.wq=!1)}}},a.ek=function(ne){if(a.isEnabled){a.Vk=!1;var oe=a.Yt;oe[ne.pointerId]&&delete oe[ne.pointerId],oe=a.oj,oe[0]!==null&&oe[0].pointerId===ne.pointerId&&(oe[0]=null),oe[1]!==null&&oe[1].pointerId===ne.pointerId&&(oe[1]=null),ne.pointerType!=="touch"&&ne.pointerType!=="pen"&&(ne=a.currentTool,ne.cancelWaitAfter(),ne.standardMouseOver())}},a.ck=function(ne){var oe=a.oj;oe[0]!==null&&oe[0].pointerId===ne.pointerId?(oe[0]=null,a.wq=!1):oe[1]!==null&&oe[1].pointerId===ne.pointerId&&(oe[1]=null)},a.Vp=b.Z["d"+Kh[1]+Kh[2]+"wI"+Wh.slice(1,5)]["b"+b1.slice(1,y)](b.Z,If,y,y),b.Vc(!0),jo(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}xn.prototype.addEventListener=function(a,y,E,b){a.addEventListener(y,E,{capture:b,passive:!1})},xn.prototype.removeEventListener=function(a,y,E,b){a.removeEventListener(y,E,{capture:b})};function jo(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(E){return E.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(E){return E.preventDefault(),!1},!1),a.addEventListener(Hn,"resize",a.Ov,!1)}function io(a){30<a.Sq&&(a.Yh=1)}function La(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),oa&&oa.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}xn.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Hn.devicePixelRatio||1},xn.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},xn.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},xn.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},xn.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},xn.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},xn.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},xn.prototype.doFocus=function(){this.focus()},xn.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Hn.scrollX||Hn.pageXOffset,y=Hn.scrollY||Hn.pageYOffset;this.ta.focus(),Hn.scrollTo(a,y)}},xn.prototype.Oy=function(){this.H.R("GainedFocus")},xn.prototype.Ny=function(){this.H.R("LostFocus")};function Cs(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var E=a.gf?a.Db:0,b=a.Be?a.Db:0,x=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==x&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+E||y.clientHeight!==a.ya+b)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===tc&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function Yo(a){var y=new po;y.name="Background",a.Al(y),y=new po,y.name="",a.Al(y),y=new po,y.name="Foreground",a.Al(y),y=new po,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new po,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new po,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function is(a){var y=new kr(kr.Grid);y.name="GRID";var E=new Zo;return E.figure="LineH",E.stroke="lightgray",E.strokeWidth=.5,E.interval=1,y.add(E),E=new Zo,E.figure="LineH",E.stroke="gray",E.strokeWidth=.5,E.interval=5,y.add(E),E=new Zo,E.figure="LineH",E.stroke="gray",E.strokeWidth=1,E.interval=10,y.add(E),E=new Zo,E.figure="LineV",E.stroke="lightgray",E.strokeWidth=.5,E.interval=1,y.add(E),E=new Zo,E.figure="LineV",E.stroke="gray",E.strokeWidth=.5,E.interval=5,y.add(E),E=new Zo,E.figure="LineV",E.stroke="gray",E.strokeWidth=1,E.interval=10,y.add(E),E=new Wi,E.add(y),E.layerName="Grid",E.zOrder=0,E.isInDocumentBounds=!1,E.isAnimated=!1,E.pickable=!1,E.locationObjectName="GRID",a.add(E),a.partManager.parts.remove(E),y.visible=!1,y}function Ga(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):qd(this.H)}function $a(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):qd(this.H)}xn.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,E=this.hu;this.qr=!0;var b=this.documentBounds,x=this.viewportBounds,z=this.rj,ne=b.x-z.left,oe=b.y-z.top,ue=b.width+z.left+z.right,he=b.height+z.top+z.bottom,ge=b.right+z.right;z=b.bottom+z.bottom;var Ee=x.x;b=x.y;var ke=x.width,Ve=x.height,Ze=x.right,st=x.bottom;x=this.scale;var Ot=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Ot=Ot+a.scrollWidth-a.clientWidth;break;case"reverse":Ot=a.scrollWidth-Ot-a.clientWidth}var Pt=Ot;ke<ue||Ve<he?(Ot=xt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Pt&&(Ot.x=Pt/x+ne,this.ju=Pt),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Ot.y=a.scrollTop/x+oe,this.lu=a.scrollTop),this.position=Ot,xt.free(Ot),this.Ee=this.qr=!1):(Ot=xt.alloc(),a.uy&&this.allowHorizontalScroll&&(ne<Ee&&(this.position=Ot.h(Pt+ne,this.position.y)),ge>Ze&&(this.position=Ot.h(-(y.scrollWidth-this.Aa)+Pt-this.Aa/x+ge,this.position.y))),a.vy&&this.allowVerticalScroll&&(oe<b&&(this.position=Ot.h(this.position.x,a.scrollTop+oe)),z>st&&(this.position=Ot.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/x+z))),xt.free(Ot),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,x=this.viewportBounds,ge=b.right,Ze=x.right,z=b.bottom,st=x.bottom,ne=b.x,Ee=x.x,oe=b.y,b=x.y,ke>=ue&&ne>=Ee&&ge<=Ze&&(E.style.width="1px"),Ve>=he&&oe>=b&&z<=st&&(E.style.height="1px"))}},xn.prototype.computeBounds=function(a){return a===void 0&&(a=new Un),El(this),Ss(this,a)};function Ss(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var E=!0,b=a.Wa.s,x=b.length,z=0;z<x;z++){var ne=b[z];if(ne.visible&&ne.isInDocumentBounds){ne=ne.Pa.s;for(var oe=ne.length,ue=0;ue<oe;ue++){var he=ne[ue];he.isInDocumentBounds&&he.isVisible()&&(he=he.actualBounds,he.w()&&(E?(E=!1,y.assign(he)):y.ed(he)))}}}return E&&y.h(0,0,0,0),y.Co(a.yb),y}xn.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var E=null;if(Gi(a))for(var b=0;b<a.length;b++){var x=a[b];!y&&x instanceof Fr||(x.Va(),E===null?E=x.actualBounds.copy():E.ed(x.actualBounds))}else for(a=a.iterator;a.next();)b=a.value,!y&&b instanceof Fr||(b.Va(),E===null?E=b.actualBounds.copy():E.ed(b.actualBounds));return E===null?new Un(NaN,NaN,0,0):E};function Ms(a,y){if((y||a.hf)&&!a.vb&&a.ta!==null&&a.documentBounds.w()){if(a.vb=!0,y){var E=a.initialPosition;if(E.w()){a.vb=!1,a.position=E;return}E=xt.alloc(),E.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=Un.allocAt(0,0,b.width,b.height);var x=xt.alloc();x.xi(b,a.initialViewportSpot),x.h(E.x-x.x,E.y-x.y),a.position=x,Un.free(b),xt.free(x),xt.free(E)}E=a.yh,y&&a.Fg!==tc&&(E=a.Fg);var z=E!==tc?cu(a,E):a.scale;E=a.pa.x,b=a.pa.y,x=a.Aa/z;var ne=a.ya/z,oe=a.zk,ue=a.pq;y&&!oe.sb()&&(ue.sb()||ue.Xb())&&(oe=ue.Xb()?la:ue),zu(a,a.documentBounds,x,ne,oe,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,gn.B(z.x,E)&&gn.B(z.y,b)&&gn.B(z.width,x)&&gn.B(z.height,ne)||a.onViewportBoundsChanged(new Un(E,b,x,ne),z,y,!1)}}function cu(a,y){var E=a.Pp;if(a.ta===null)return E;a.Va();var b=a.documentBounds;if(!b.w())return E;var x=b.width;b=b.height;var z=a.Aa+(a.gf?a.Db:0),ne=a.ya+(a.Be?a.Db:0),oe=z/x,ue=ne/b;return y===jc?(y=Math.min(ue,oe),y>E&&(y=E),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===af?(y=ue>oe?(ne-a.Db)/b:(z-a.Db)/x,y>E&&(y=E),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}xn.prototype.zoomToFit=function(){var a=this.sj;this.sj=Ah,this.scale=cu(this,jc),a!==Ah&&(Ms(this,!1),zu(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},We=xn.prototype,We.BA=function(a,y){y===void 0&&(y=jc);var E=a.width,b=a.height;if(!(E===0||b===0||isNaN(E)&&isNaN(b))){var x=1;if(y===jc||y===af)if(isNaN(E))x=this.viewportBounds.height*this.scale/b;else if(isNaN(b))x=this.viewportBounds.width*this.scale/E;else{x=this.Aa;var z=this.ya;x=y===af?z/b>x/E?(z-(this.Be?this.Db:0))/b:(x-(this.gf?this.Db:0))/E:Math.min(z/b,x/E)}this.scale=x,this.position=new xt(a.x,a.y)}},We.Jy=function(a,y){this.Va();var E=this.documentBounds,b=this.viewportBounds;this.position=new xt(E.x+(a.x*E.width+a.offsetX)-(y.x*b.width-y.offsetX),E.y+(a.y*E.height+a.offsetY)-(y.y*b.height-y.offsetY))},We.zz=function(a){if(a instanceof pn){this.eq=a;var y=xt.alloc();this.fq=this.op(a.ga(Vs,y)),xt.free(y)}else this.eq=null,this.fq=Sa};function zu(a,y,E,b,x,z){var ne=xt.allocAt(a.pa.x,a.pa.y),oe=ne.x,ue=ne.y;if(a.eq!==null){var he=xt.alloc();he=a.eq.ga(Vs,he),oe=he.x-a.fq.x/a.scale,ue=he.y-a.fq.y/a.scale,x=zs,xt.free(he)}(z||a.scrollMode===Ah)&&(x.sb()&&(E>y.width&&(oe=y.x+(x.x*y.width+x.offsetX)-(x.x*E-x.offsetX)),b>y.height&&(ue=y.y+(x.y*y.height+x.offsetY)-(x.y*b-x.offsetY))),x=a.rj,z=E-y.width,E<y.width+x.left+x.right?(oe=Math.min(oe+E/2,y.right+Math.max(z,x.right)-E/2),oe=Math.max(oe,y.left-Math.max(z,x.left)+E/2),oe-=E/2):oe>y.left?oe=y.left:oe<y.right-E&&(oe=y.right-E),E=b-y.height,b<y.height+x.top+x.bottom?(ue=Math.min(ue+b/2,y.bottom+Math.max(E,x.bottom)-b/2),ue=Math.max(ue,y.top-Math.max(E,x.top)+b/2),ue-=b/2):ue>y.top?ue=y.top:ue<y.bottom-b&&(ue=y.bottom-b)),ne.x=isFinite(oe)?oe:-a.yb.left,ne.y=isFinite(ue)?ue:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,ne),ne.x=y.x,ne.y=y.y),so(a.Yd,a.pa,ne),a.pa.h(ne.x,ne.y),Tc(a),xt.free(ne)}We.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Ts(this,a,function(E){return E.part},function(E){return E.canSelect()}),a instanceof Wi)return a}else if(a=Ts(this,a,function(E){return E.part}),a instanceof Wi)return a;return null},We.ic=function(a,y,E){y===void 0&&(y=null),E===void 0&&(E=null),El(this);for(var b=this.Wa.iteratorBackwards;b.next();){var x=b.value;if(x.visible&&(x=x.ic(a,y,E),x!==null))return x}return null};function Ts(a,y,E,b){for(E===void 0&&(E=null),b===void 0&&(b=null),El(a),a=a.Wa.iteratorBackwards;a.next();){var x=a.value;if(x.visible&&!x.isTemporary&&(x=x.ic(y,E,b),x!==null))return x}return null}We.lz=function(a,y,E){return y===void 0&&(y=!0),rs(this,a,function(b){return b.part},y?function(b){return b instanceof Wi&&b.canSelect()}:null,E)};function rs(a,y,E,b,x){for(E===void 0&&(E=null),b===void 0&&(b=null),x instanceof Ar||x instanceof qt||(x=new qt),El(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,E,b,x)}return x}We.ji=function(a,y,E,b){y===void 0&&(y=null),E===void 0&&(E=null),b instanceof Ar||b instanceof qt||(b=new qt),El(this);for(var x=this.Wa.iteratorBackwards;x.next();){var z=x.value;z.visible&&z.ji(a,y,E,b)}return b},We.ux=function(a,y,E,b){return y===void 0&&(y=!1),E===void 0&&(E=!0),As(this,a,function(x){return x instanceof Wi&&(!E||x.canSelect())},y,b)},We.Cf=function(a,y,E,b,x){y===void 0&&(y=null),E===void 0&&(E=null),b===void 0&&(b=!1),x instanceof Ar||x instanceof qt||(x=new qt),El(this);for(var z=this.Wa.iteratorBackwards;z.next();){var ne=z.value;ne.visible&&ne.Cf(a,y,E,b,x)}return x},We.Nu=function(a,y,E,b,x,z){var ne=new qt;El(this);for(var oe=this.Wa.iteratorBackwards;oe.next();){var ue=oe.value;ue.visible&&ue.Nu(a,y,E,b,ne,x,z)}return ne};function As(a,y,E,b,x){var z=null;for(z===void 0&&(z=null),E===void 0&&(E=null),b===void 0&&(b=!1),x instanceof Ar||x instanceof qt||(x=new qt),El(a),a=a.Wa.iteratorBackwards;a.next();){var ne=a.value;ne.visible&&!ne.isTemporary&&ne.Cf(y,z,E,b,x)}return x}We.mz=function(a,y,E,b,x){return E===void 0&&(E=!0),b===void 0&&(b=!0),nl(this,a,y,function(z){return z instanceof Wi&&(!b||z.canSelect())},E,x)},We.og=function(a,y,E,b,x,z){E===void 0&&(E=null),b===void 0&&(b=null),x===void 0&&(x=!0),x!==!1&&x!==!0&&((x instanceof Ar||x instanceof qt)&&(z=x),x=!0),z instanceof Ar||z instanceof qt||(z=new qt),El(this);for(var ne=this.Wa.iteratorBackwards;ne.next();){var oe=ne.value;oe.visible&&oe.og(a,y,E,b,x,z)}return z};function nl(a,y,E,b,x,z){var ne=null;for(ne===void 0&&(ne=null),b===void 0&&(b=null),x===void 0&&(x=!0),x!==!1&&x!==!0&&((x instanceof Ar||x instanceof qt)&&(z=x),x=!0),z instanceof Ar||z instanceof qt||(z=new qt),El(a),a=a.Wa.iteratorBackwards;a.next();){var oe=a.value;oe.visible&&!oe.isTemporary&&oe.og(y,E,ne,b,x,z)}return z}xn.prototype.acceptEvent=function(a){return Ol(this,a,a instanceof MouseEvent)};function Ol(a,y,E){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,E?rl(a,y,b):(b.viewPoint=a.Qg.viewPoint,b.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),b.modifiers=a,b.button=y.button,y.buttons!==void 0&&(b.buttons=y.buttons),gs&&y.button===0&&y.ctrlKey&&(b.button=2),b.down=!1,b.up=!1,b.clickCount=1,b.delta=0,b.handled=!1,b.bubbles=!1,b.timestamp=y.timeStamp,b.isMultiTouch=!1,b.targetDiagram=zl(y,y.target),b.targetObject=null,b}function zl(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 Aa(a,y,E,b,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,gs&&y.button===0&&y.ctrlKey&&(ne.button=2),ne.down=E,ne.up=b,ne.handled=!1,ne.bubbles=x,ne.isMultiTouch=z,ne}function ia(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}xn.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var E=Ol(y,a,!1);switch(E.key=String.fromCharCode(a.which),E.down=!0,a.which){case 8:E.key="Backspace";break;case 33:E.key="PageUp";break;case 34:E.key="PageDown";break;case 35:E.key="End";break;case 36:E.key="Home";break;case 37:E.key="Left";break;case 38:E.key="Up";break;case 39:E.key="Right";break;case 40:E.key="Down";break;case 45:E.key="Insert";break;case 46:E.key="Del";break;case 48:E.key="0";break;case 187:case 61:case 107:E.key="Add";break;case 189:case 173:case 109:E.key="Subtract";break;case 27:E.key="Esc"}return y.doKeyDown(),ia(E,a)},xn.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var E=Ol(y,a,!1);switch(E.key=String.fromCharCode(a.which),E.up=!0,a.which){case 8:E.key="Backspace";break;case 33:E.key="PageUp";break;case 34:E.key="PageDown";break;case 35:E.key="End";break;case 36:E.key="Home";break;case 37:E.key="Left";break;case 38:E.key="Up";break;case 39:E.key="Right";break;case 40:E.key="Down";break;case 45:E.key="Insert";break;case 46:E.key="Del"}return y.doKeyUp(),ia(E,a)},xn.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var E=Ol(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(E),y.currentTool.standardMouseOver(),ia(E,a)},xn.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var E=Ol(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(E),ia(E,a)},xn.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new xt(0,0);var E=y.getBoundingClientRect();return y=a.clientX-this.Aa/E.width*E.left,a=a.clientY-this.ya/E.height*E.top,this.Ab!==null?pr(new xt(y,a),this.Ab):new xt(y,a)};function rl(a,y,E){var b=a.ta,x=a.Aa,z=a.ya,ne=0,oe=0;b!==null&&(b=b.getBoundingClientRect(),ne=y.clientX-x/b.width*b.left,oe=y.clientY-z/b.height*b.top),E.viewPoint.h(ne,oe),a.Ab!==null?(y=xt.allocAt(ne,oe),a.Ab.Cd(y),E.documentPoint.assign(y),xt.free(y)):E.documentPoint.h(ne,oe)}function nu(a,y,E){if(a.oj[0]!==null){y=a.oj[y];var b=a.ta;b!==null&&(b=b.getBoundingClientRect(),E.h(y.clientX-a.Aa/b.width*b.left,y.clientY-a.ya/b.height*b.top))}}xn.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function ql(a){a.ld||El(a),a.Va()}xn.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},We=xn.prototype,We.Pz=function(){return this.kg},We.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,E=y.isEnabled;y.Cc(),y.isEnabled=!1,Rl(this),this.hf=!1,this.du=new xt(NaN,NaN),y.isEnabled=E,this.ld=!0;var b=this;a!==null&&_i(function(){b.ld=!1,Ha(y,"Model"),a(b)},1)},We.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Hn.requestAnimationFrame(function(){y.kg&&y.bd()})}},We.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),Rl(this))};function du(a,y,E){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||qd(a)||(y&&El(a),E&&Ms(a,!1))}function Rl(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var E=a.animationManager,b=a.Xn;if(!E.isAnimating&&b.length!==0){for(var x=b.s,z=x.length,ne=0;ne<z;ne++){var oe=x[ne];Bt(oe,!1),oe.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(ue){ue.Nv()}),b.clear()),x=b=!1,E.defaultAnimation.isAnimating&&(x=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),E.zb||Cs(a),du(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Gl(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),El(a),z=!1,(!a.hf||a.xh)&&(a.hf?xp(a,!a.Jk):(a.Ea("Initial Layout"),E.isEnabled===!1&&E.Cc(),xp(a,!1)),z=!0),a.Jk=!1,El(a),a.ou||ql(a),du(a,!0,!1),ne=!1,z?(E=Un.alloc(),E.assign(a.viewportBounds),a.hf||(ne=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Vu(a)),a.R("LayoutCompleted"),du(a,!0,!1),Un.free(E)):E.Ok&&E.Qw&&(a.Fg!==tc?a.scale=cu(a,a.Fg):a.yh!==tc?a.scale=cu(a,a.yh):(E=a.initialScale,isFinite(E)&&0<E&&(a.scale=E)),Ms(a,!0)),z&&ne&&a.eb("Initial Layout"),El(a),y||a.gc(a.ib),x&&(a.skipsUndoManager=b),a.ld=!1}}function Vu(a){if(a.Fg!==tc)a.scale=cu(a,a.Fg);else if(a.yh!==tc)a.scale=cu(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Ms(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),Gl(a)}function El(a){if(a.De.count!==0&&(a.ld||!a.animationManager.isTicking)){for(var y=0;23>y;y++){var E=a.De.iterator;if(E===null||a.De.count===0)break;a.De=new qt,a.Nv(E,a.De)}a.nodes.each(function(b){b instanceof Fo&&b.U&65536&&(b.U=b.U^65536)})}}We.Nv=function(a,y){for(a.reset();a.next();){var E=a.value;!E.Zc()||E instanceof Fo||(E.si()?(E.measure(1/0,1/0),E.arrange()):y.add(E))}for(a.reset();a.next();)E=a.value,E instanceof Fo&&E.isVisible()&&ru(this,E);for(a.reset();a.next();)E=a.value,E instanceof Fr&&E.isVisible()&&(E.si()?(E.measure(1/0,1/0),E.arrange()):y.add(E));for(a.reset();a.next();)E=a.value,E instanceof Xa&&E.isVisible()&&(E.si()?(E.measure(1/0,1/0),E.arrange()):y.add(E))};function ru(a,y){for(var E=Oi(),b=Oi(),x=y.memberParts;x.next();){var z=x.value;z.isVisible()&&(z instanceof Fo?(Ht(z)||Xt(z)||Df(z))&&ru(a,z):z instanceof Fr?z.fromNode===y||z.toNode===y?b.push(z):E.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=E.length,x=0;x<a;x++)z=E[x],z.measure(1/0,1/0),z.arrange();for(Yi(E),y.measure(1/0,1/0),y.arrange(),a=b.length,y=0;y<a;y++)E=b[y],E.measure(1/0,1/0),E.arrange();Yi(b)}We.Fd=function(a,y,E,b){if(this.vd||this.animationManager.isAnimating)for(var x=0;x<y;x++)a[x].Fd(E,b)},We.gc=function(a){if(this.Ka!==null){if(this.ta===null&&Pn("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){Hd(this);var E=this.Aa,b=this.ya;if(a.Gv.resize(E,b,E,b),E=this.Wa.s,b=E.length,this.Fd(E,b,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,oe=this.Ab;for(oe.reset(),x!==1&&oe.scale(x),y.x===0&&y.y===0||oe.translate(-z,-ne),a.ti=null,il(a,oe.m11,oe.m12,oe.m21,oe.m22,oe.dx,oe.dy),this.pb!==1&&(a.globalAlpha=this.pb),md(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<b;y++)E[y].gc(a,this);a=!1,this.Yf?Nh(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(No.prototype.Cd=No.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(E=new Date,Hd(this),this.Ka.style.opacity!=="0")){if(b=a!==this.ib,y=this.Wa.s,x=y.length,this.Fd(y,x,this,this.viewportBounds),b)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break e;z=this.Ab,z.reset(),ne=this.Mb,oe=this.pa;var ue=this.Ca,he=Math.round(oe.x*ue)/ue,ge=Math.round(oe.y*ue)/ue;for(ue!==1&&z.scale(ue),oe.x===0&&oe.y===0||z.translate(-he,-ge),a.setTransform(ne,0,0,ne,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),md(this,a),oe=0;oe<x;oe++)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[oe].gc(a,this);if(y=!1,this.Yf?Nh(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(No.prototype.Cd=No.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+E,b=oa&&oa.nx,E=this.zw,b||this.Yh===null){for(E[this.Tq]=y,this.Tq=(this.Tq+1)%E.length,x=y=0;x<E.length;x++)y+=E[x];this.Sq=y/E.length}if(this.pb!==1&&(a.globalAlpha=1),b)for(a.setTransform(1,0,0,1,0,0),b=0;b<E.length;b++)a.fillText(E[b].toString(),20,150+ +(20*b))}}};function Hc(a,y,E,b,x,z,ne,oe,ue,he){if(a.Ka!==null){a.ta===null&&Pn("No canvas specified"),ne===void 0&&(ne=null),oe===void 0&&(oe=null),ue===void 0&&(ue=!1),he===void 0&&(he=!1),Hd(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ge=a.Ca;a.Ca=x;var Ee=a.Wa.s,ke=Ee.length;try{var Ve=new Un(z.x,z.y,b.width/x,b.height/x),Ze=Ve.copy();Ze.Co(E),Gl(a,Ze),El(a),a.Fd(Ee,ke,a,Ve),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),oe!==null&&oe!==""&&(y.fillStyle=oe,y.ox(0,0,b.width,b.height));var st=a.Mb;y.scale(st,st);var Ot=No.alloc();Ot.reset(),Ot.translate(E.left,E.top),Ot.scale(x),z.x===0&&z.y===0||Ot.translate(-z.x,-z.y),y.setTransform(Ot.m11,Ot.m12,Ot.m21,Ot.m22,Ot.dx,Ot.dy),y.yc(),y instanceof ps&&il(y,Ot.m11,Ot.m12,Ot.m21,Ot.m22,Ot.dx,Ot.dy),No.free(Ot),md(a,y),y.globalAlpha=a.pb;var Pt=a.Qj("Grid");if(ne){var zt=new qt,Kt=ne.iterator;for(Kt.reset();Kt.next();){var Jt=Kt.value;Jt instanceof Wi&&(he||Jt.layer!==Pt)&&(Jt.Gj(),zt.add(Jt))}for(he=0;he<ke;he++)hs(Ee[he],y,a,zt,ue);zt.each(function(kn){return kn.Gj()})}else for(zt=0;zt<ke;zt++){var dn=Ee[zt];dn===Pt?he&&dn.gc(y,a,!0):dn.gc(y,a,ue)}a.$i=!1,a.Yf&&Nh(a.Yf,a)&&a.Vp()}finally{a.Ca=ge,a.ib.Vc(!0),a.vd=!0,a.Fd(Ee,ke,a,a.viewportBounds),Gl(a),a.ib instanceof ps&&(a.ib.Nj.PA(),a.redraw())}}}We.Gf=function(a){return this.Rg[a]},We.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},We.Tx=function(){this.Rg=new lo,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(gs||sl),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function md(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}We.Ql=function(a){return this.on[a]},We.sA=function(a,y){this.on[a]=y},We.Sx=function(){this.on=new lo,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},We.set=function(a){return Object.assign(this,a),this},We.Du=function(a){return this.nm(a)},We.nm=function(a){return Jd(this,a),this};function Jd(a,y){var E=a instanceof kr,b=a instanceof xn,x;for(x in y){x===""&&Pn("Setting properties requires non-empty property names");var z=a,ne=x;if(E||b){var oe=x.indexOf(".");if(0<oe){var ue=x.substring(0,oe);E?z=a.fb(ue):(z=a[ue],z==null&&(z=a.toolManager[ue])),wr(z)?ne=x.substr(oe+1):Pn("Unable to find object named: "+ue+" in "+a.toString()+" when trying to set property: "+x)}}if(ne[0]!=="_"&&!Go(z,ne))if(b&&ne==="ModelChanged"){a.Yw(y[ne]);continue}else if(b&&ne==="Changed"){a.Pe(y[ne]);continue}else if(b&&Go(a.toolManager,ne))z=a.toolManager;else if(b&&tg(a,ne)){a.Bj(ne,y[ne]);continue}else if(a instanceof Ai&&ne==="Changed"){a.Pe(y[ne]);continue}else Pn('Trying to set undefined property "'+ne+'" on object: '+z.toString());z[ne]=y[x],ne[0]==="_"&&z instanceof pn&&z.Vw(ne)}}We.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new xr,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},We.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")},xn.prototype.invalidateViewport=function(a,y){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var E=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==Lf&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var b=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))*b&&0<Math.max(0,z-x)*b){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(b=Un.alloc(),Gd(this,this.computeBounds(b)),Un.free(b)),b=this.ta,b===null||b instanceof ka)))){var ne=this.Mb;x=this.Aa*ne;var oe=this.ya*ne,ue=this.scale*ne;z=Math.round(Math.round(y.x*ue)-Math.round(a.x*ue)),y=Math.round(Math.round(y.y*ue)-Math.round(a.y*ue)),ue=this.jw,a=this.oy,ue.width!==x&&(ue.width=x),ue.height!==oe&&(ue.height=oe),a.clearRect(0,0,x,oe),ue=190*ne;var he=70*ne,ge=Math.max(z,0),Ee=Math.max(y,0),ke=Math.floor(x-ge),Ve=Math.floor(oe-Ee);a.drawImage(b.Oa,ge,Ee,ke,Ve,0,0,ke,Ve),Nh(this.Yf,this)&&a.clearRect(0,0,ue,he),b=Oi(),a=Oi(),Ve=Math.abs(z),ke=Math.abs(y);var Ze=ge===0?0:x-Ve;ge=xt.allocAt(Ze,0),Ve=xt.allocAt(Ve+Ze,oe),a.push(new Un(Math.min(ge.x,Ve.x),Math.min(ge.y,Ve.y),Math.abs(ge.x-Ve.x),Math.abs(ge.y-Ve.y)));var st=this.Ab;if(st.reset(),st.scale(ne,ne),this.Ca!==1&&st.scale(this.Ca),ne=this.pa,(ne.x!==0||ne.y!==0)&&isFinite(ne.x)&&isFinite(ne.y)&&st.translate(-ne.x,-ne.y),pr(ge,st),pr(Ve,st),b.push(new Un(Math.min(ge.x,Ve.x),Math.min(ge.y,Ve.y),Math.abs(ge.x-Ve.x),Math.abs(ge.y-Ve.y))),Ze=Ee===0?0:oe-ke,ge.h(0,Ze),Ve.h(x,ke+Ze),a.push(new Un(Math.min(ge.x,Ve.x),Math.min(ge.y,Ve.y),Math.abs(ge.x-Ve.x),Math.abs(ge.y-Ve.y))),pr(ge,st),pr(Ve,st),b.push(new Un(Math.min(ge.x,Ve.x),Math.min(ge.y,Ve.y),Math.abs(ge.x-Ve.x),Math.abs(ge.y-Ve.y))),Nh(this.Yf,this)&&(x=0<z?0:-z,oe=0<y?0:-y,ge.h(x,oe),Ve.h(ue+x,he+oe),a.push(new Un(Math.min(ge.x,Ve.x),Math.min(ge.y,Ve.y),Math.abs(ge.x-Ve.x),Math.abs(ge.y-Ve.y))),pr(ge,st),pr(Ve,st),b.push(new Un(Math.min(ge.x,Ve.x),Math.min(ge.y,Ve.y),Math.abs(ge.x-Ve.x),Math.abs(ge.y-Ve.y)))),xt.free(ge),xt.free(Ve),du(this,!1,!0),this.Ka===null&&Pn("No div specified"),this.ta===null&&Pn("No canvas specified"),!this.animationManager.zb&&(x=this.ib,this.Fc)){for(Hd(this),oe=this.Mb,x.setTransform(1,0,0,1,0,0),x.clearRect(0,0,this.Aa*oe,this.ya*oe),x.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,ne=this.Ca,ue=Math.round(z.x*ne)/ne,he=Math.round(z.y*ne)/ne,y=this.Ab,y.reset(),ne!==1&&y.scale(ne),z.x===0&&z.y===0||y.translate(-ue,-he),x.save(),x.beginPath(),z=a.length,ne=0;ne<z;ne++)ue=a[ne],ue.width!==0&&ue.height!==0&&x.rect(Math.floor(ue.x),Math.floor(ue.y),Math.ceil(ue.width),Math.ceil(ue.height));for(x.clip(),x.setTransform(oe,0,0,oe,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),md(this,x),x.globalAlpha=this.pb,oe=0;oe<z;oe++)if(ne=y[oe],ue=b,ne.visible&&ne.pb!==0){he=da(ne,x),Ee=ne.Zq,Ee.length=0,ge=this.scale,ke=Un.alloc(),Ve=ne.Pa.s,st=Ve.length,Ze=ue.length;for(var Ot=0;Ot<st;Ot++){var Pt=Ve[Ot],zt=cp(Pt,Pt.actualBounds);e:{for(var Kt=2/ge,Jt=4/ge,dn=0;dn<Ze;dn++){var kn=ue[dn];if(kn.width!==0&&kn.height!==0&&zt.Vu(kn.x-Kt,kn.y-Kt,kn.width+Jt,kn.height+Jt)){zt=!0;break e}}zt=!1}zt&&ne.Oj(x,Pt,this,Ee,ge,ke,!0)}Un.free(ke),x.globalAlpha=he}x.restore(),x.Vc(!0),this.Yf&&Nh(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}Yi(b),Yi(a),this.ld=!1}}else this.bd();E&&(io(this),this.bd(),La(this,!0))}else E?(io(this),this.bd(),La(this,!0)):this.bd()}};function Hd(a){a.pn!==!1&&(a.pn=!1,$d(a,a.Aa,a.ya))}function $d(a,y,E){Tc(a);var b=a.Mb;a.ta.resize(y*b,E*b,y,E)&&(a.Fc=!0,a.ib.Vc(!0))}function qd(a){var y=a.ta;if(y===null||a.wo.w())return!0;var E=a.Aa,b=a.ya,x=a.Ka,z=!1,ne=a.gf?a.Db:0,oe=a.Be?a.Db:0,ue=x.clientWidth||E+ne,he=x.clientHeight||b+oe,ge=a.viewportBounds;x=ge.x;var Ee=ge.y,ke=ge.width,Ve=ge.height;if((ue!==E+ne||he!==b+oe)&&(a.gf=!1,a.Be=!1,oe=ne=0,a.Aa=ue,a.ya=he,z=a.pn=!0,Tc(a)),!a.hf||!a.viewportBounds.w())return!0;var Ze=a.ku,st=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var Ot=a.documentBounds,Pt=0,zt=0,Kt=0,Jt=0,dn=ge.width,kn=ge.height,Xr=a.rj;a.contentAlignment.sb()?(Ot.width>dn&&(Pt=Xr.left,zt=Xr.right),Ot.height>kn&&(Kt=Xr.top,Jt=Xr.bottom)):(Pt=Xr.left,zt=Xr.right,Kt=Xr.top,Jt=Xr.bottom);var Ei=Ot.width+Pt+zt,fi=Ot.height+Kt+Jt;Xr=a.scale;var Dr=Ei>ue/Xr,gr=fi>he/Xr;if(!(z||a.gf||a.Be||Dr||gr))return!0;Pt=Ot.x-Pt,ue=ge.x,zt=Ot.right+zt,he=ge.right+ne,Kt=Ot.y-Kt;var Oo=ge.y;Ot=Ot.bottom+Jt,ge=ge.bottom+oe;var Eo="1px";if(Jt="1px",a.scrollMode===Ah&&(Dr||gr)&&(Dr&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Dr=1,Pt+1<ue&&(Dr=Math.max((ue-Pt)*Xr+a.Aa,Dr)),zt>he+1&&(Dr=Math.max((zt-he)*Xr+a.Aa,Dr)),dn+ne+1<Ei&&(Dr=Math.max((Ei-dn)*Xr+a.Aa,Dr)),Eo=Dr.toString()+"px"),gr&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Dr=1,Kt+1<Oo&&(Dr=Math.max((Oo-Kt)*Xr+a.ya,Dr)),Ot>ge+1&&(Dr=Math.max((Ot-ge)*Xr+a.ya,Dr)),kn+oe+1<fi&&(Dr=Math.max((fi-kn)*Xr+a.ya,Dr)),Jt=Dr.toString()+"px")),Dr=Eo!=="1px",gr=Jt!=="1px",Dr&&gr||!Dr&&!gr||(gr&&(he-=a.Db),Dr&&(ge-=a.Db),Ei<dn+ne||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ne=1,Pt+1<ue&&(ne=Math.max((ue-Pt)*Xr+a.Aa,ne)),zt>he+1&&(ne=Math.max((zt-he)*Xr+a.Aa,ne)),dn+1<Ei&&(ne=Math.max((Ei-dn)*Xr+a.Aa,ne)),Eo=ne.toString()+"px"),Dr=Eo!=="1px",ne=a.ya,Dr!==a.Be&&(ne=Dr?a.ya-a.Db:a.ya+a.Db),fi<kn+oe||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(oe=1,Kt+1<Oo&&(oe=Math.max((Oo-Kt)*Xr+ne,oe)),Ot>ge+1&&(oe=Math.max((Ot-ge)*Xr+ne,oe)),kn+1<fi&&(oe=Math.max((fi-kn)*Xr+ne,oe)),Jt=oe.toString()+"px"),gr=Jt!=="1px"),a.qr&&Dr===a.Be&&gr===a.gf)return E===a.Aa&&b===a.ya||a.bd(),!1;if(Dr!==a.Be&&(Eo==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=Dr,st.style.width=Eo,gr!==a.gf&&(Jt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(oe=xt.alloc(),gr?(y.style.left=a.Db+"px",a.position=oe.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=oe.h(a.pa.x-a.Db/a.scale,a.pa.y)),xt.free(oe))),z&&Tc(a),a.gf=gr,st.style.height=Jt,a.gu=!0,z&&(a.pn=!0),y=Ze.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(dn+1<Ei?y=(a.position.x-Pt)*Xr:Pt+1<ue?y=Ze.scrollWidth-Ze.clientWidth:zt>he+1&&(y=a.position.x*Xr)),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&&(kn+1<fi?Ze.scrollTop=(a.position.y-Kt)*Xr:Kt+1<Oo?Ze.scrollTop=Ze.scrollHeight-Ze.clientHeight:Ot>ge+1&&(Ze.scrollTop=a.position.y*Xr)),ue=a.Aa,he=a.ya,Ze.style.width=ue+(a.gf?a.Db:0)+"px",Ze.style.height=he+(a.Be?a.Db:0)+"px",E!==ue||b!==he||a.animationManager.zb?(E=Un.allocAt(x,Ee,ke,Ve),a.onViewportBoundsChanged(E,a.viewportBounds,Xr,z),Un.free(E),!1):!0}We=xn.prototype,We.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Pn("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&&Pn('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var E=y.oi(99999999,a,a.diagram===this);0<=E&&this.cb(Js,"parts",y,null,a,null,E),y.isTemporary||this.Ya(),a.C(1),E=a.layerChanged,E!==null&&E(a,null,y)}},We.oi=function(a){this.partManager.oi(a);var y=this;sp(a,function(E){ec(y,E)}),(a instanceof Xa||a instanceof Fo&&a.placeholder!==null)&&a.v(),a.data!==null&&sp(a,function(E){Ey(y.partManager,E)}),Xt(a)!==!0&&Df(a)!==!0||this.De.add(a),GS(a,!0,this),VS(a)?(a.actualBounds.w()&&this.N(cp(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(cp(a,a.actualBounds)),this.$b()},We.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&sp(a,function(E){by(y.partManager,E,y)}),this.De.remove(a),VS(a)?(a.actualBounds.w()&&this.N(cp(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(cp(a,a.actualBounds)),this.$b()},We.remove=function(a){ph(this,a,!0)};function ph(a,y,E){var b=y.layer;b!==null&&b.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),E&&y.Lj(),E=b.pc(-1,y,!1),0<=E&&a.cb(ul,"parts",b,y,null,E,null),a=y.layerChanged,a!==null&&a(y,b,null))}We.Is=function(a,y){if(y===void 0&&(y=!1),Gi(a))for(var E=a.length,b=0;b<E;b++){var x=a[b];y&&!x.canDelete()||this.remove(x)}else for(E=new qt,E.addAll(a),a=E.iterator;a.next();)E=a.value,y&&!E.canDelete()||this.remove(E)},We.Kj=function(a,y,E){return E===void 0&&(E=!1),this.partManager.Kj(a,y,E)},xn.prototype.moveParts=function(a,y,E,b){if(E===void 0&&(E=!1),b===void 0&&(b=qs(this)),this.toolManager!==null){var x=new xr;if(a!==null)if(Gi(a))for(var z=0;z<a.length;z++)Xc(this,x,a[z],E,b);else for(a=a.iterator;a.next();)Xc(this,x,a.value,E,b);else{for(a=this.parts;a.next();)Xc(this,x,a.value,E,b);for(a=this.nodes;a.next();)Xc(this,x,a.value,E,b);for(a=this.links;a.next();)Xc(this,x,a.value,E,b)}pl(this,x,y,b,E)}};function Xc(a,y,E,b,x,z){if(!y.contains(E)&&(z===void 0&&(z=!1),!b||z||E.canMove()||E.canCopy()))if(x===void 0&&(x=qs(a)),E instanceof qr){if(y.add(E,a.Pd(x,E,E.location)),E instanceof Fo&&(E.placeholder!==null||x.dragsMembers))for(z=E.memberParts;z.next();)Xc(a,y,z.value,b,x,x.groupsAlwaysMove);for(z=E.linksConnected;z.next();){var ne=z.value;if(!y.contains(ne)){var oe=ne.fromNode,ue=ne.toNode;oe!==null&&y.contains(oe)&&ue!==null&&y.contains(ue)&&Xc(a,y,ne,b,x)}}if(x.dragsTree)for(E=E.Ou();E.next();)Xc(a,y,E.value,b,x)}else if(E instanceof Fr)for(y.add(E,a.Pd(x,E)),E=E.labelNodes;E.next();)Xc(a,y,E.value,b,x);else E instanceof Xa||y.add(E,a.Pd(x,E,E.location))}function pl(a,y,E,b,x){if(y!==null&&y.count!==0){var z=xt.alloc(),ne=xt.alloc();ne.assign(E),isNaN(ne.x)&&(ne.x=0),isNaN(ne.y)&&(ne.y=0),(E=a.Mr)||Wu(a,y);for(var oe=Oi(),ue=Oi(),he=y.iterator,ge=xt.alloc();he.next();){var Ee=he.key,ke=he.value;if(Ee.Zc()){var Ve=Ps(a,Ee,y);Ve!==null?oe.push(new re(Ee,ke,Ve)):(!x||Ee.canMove())&&(Ve=ke.point,z.assign(Ve),a.computeMove(Ee,z.add(ne),b,ge),Ee.location=ge,ke.shifted===void 0&&(ke.shifted=new xt),ke.shifted.assign(ge.re(Ve)))}else he.key instanceof Fr&&ue.push(he.sa)}for(xt.free(ge),x=oe.length,he=0;he<x;he++)Ee=oe[he],z.assign(Ee.info.point),Ee.Su.shifted===void 0&&(Ee.Su.shifted=new xt),Ee.node.location=z.add(Ee.Su.shifted);for(x=xt.alloc(),he=xt.alloc(),Ee=ue.length,ke=0;ke<Ee;ke++){var Ze=ue[ke];if(Ve=Ze.key,Ve instanceof Fr)if(Ve.suspendsRouting){Ve.Tg=null,ge=Ve.fromNode;var st=Ve.toNode;if(a.draggedLink!==null&&b.dragsLink)if(st=Ze.value.point,Ve.dragComputation===null)y.add(Ve,a.Pd(b,Ve,ne)),ff(Ve,ne.x-st.x,ne.y-st.y);else{Ze=xt.allocAt(0,0),(ge=Ve.i(0))&&ge.w()&&Ze.assign(ge);var Ot=ge=xt.alloc().assign(Ze).add(ne);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(Ot=xt.alloc(),qu(a,Ve,ge,Ot,b)),ge.assign(Ve.dragComputation(Ve,ge,Ot)).re(Ze),y.add(Ve,a.Pd(b,Ve,ge)),ff(Ve,ge.x-st.x,ge.y-st.y),xt.free(Ze),xt.free(ge),Ot!==ge&&xt.free(Ot)}else ge!==null&&(x.assign(ge.location),Ot=y.I(ge),Ot!==null&&x.re(Ot.point)),st!==null&&(he.assign(st.location),Ot=y.I(st),Ot!==null&&he.re(Ot.point)),ge!==null&&st!==null?x.Xa(he)?(ge=Ze.value.point,st=z,st.assign(x),st.re(ge),y.add(Ve,a.Pd(b,Ve,x)),ff(Ve,st.x,st.y)):(Ve.suspendsRouting=!1,Ve.bb()):(Ze=Ze.value.point,ge=ge!==null?x:st!==null?he:ne,y.add(Ve,a.Pd(b,Ve,ge)),ff(Ve,ge.x-Ze.x,ge.y-Ze.y))}else(Ve.fromNode===null||Ve.toNode===null)&&(ge=Ze.value.point,y.add(Ve,a.Pd(b,Ve,ne)),ff(Ve,ne.x-ge.x,ne.y-ge.y))}xt.free(z),xt.free(ne),xt.free(x),xt.free(he),Yi(oe),Yi(ue),E||(El(a),Kl(a,y))}}xn.prototype.computeMove=function(a,y,E,b){if(b===void 0&&(b=new xt),b.assign(y),a===null)return b;var x=y,z=E.isGridSnapEnabled;z&&(E.isGridSnapRealtime||this.lastInput.up)&&(x=xt.alloc(),qu(this,a,y,x,E)),E=a.dragComputation!==null?a.dragComputation(a,y,x):x;var ne=a.minLocation,oe=ne.x;isNaN(oe)&&(oe=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 ue=a.maxLocation,he=ue.x;return isNaN(he)&&(he=z?Math.round(1e3*a.location.x)/1e3:a.location.x),ue=ue.y,isNaN(ue)&&(ue=z?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(oe,Math.min(E.x,he)),Math.max(ne,Math.min(E.y,ue))),x!==y&&xt.free(x),b};function qs(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function qu(a,y,E,b,x){if(x===void 0&&(x=qs(a)),b.assign(E),y!==null){var z=a.grid;y=x.gridSnapCellSize,a=y.width,y=y.height;var ne=x.gridSnapOrigin,oe=ne.x;if(ne=ne.y,x=x.gridSnapCellSpot,z!==null){var ue=z.gridCellSize;isNaN(a)&&(a=ue.width),isNaN(y)&&(y=ue.height),z=z.gridOrigin,isNaN(oe)&&(oe=z.x),isNaN(ne)&&(ne=z.y)}z=xt.allocAt(0,0),z.yi(0,0,a,y,x),gn.No(E.x,E.y,oe+z.x,ne+z.y,a,y,b),xt.free(z)}}function Wu(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Fr&&(y.suspendsRouting=!0)}function Kl(a,y){if(y!==null){for(y=y.iterator;y.next();){var E=y.key;E instanceof Fr&&(E.suspendsRouting=!1,ay(E)&&E.bb())}a.Mr=!1}}function Ps(a,y,E){return y=y.containingGroup,y!==null&&(a=Ps(a,y,E),a!==null||(a=E.I(y),a!==null))?a:null}We=xn.prototype,We.Pd=function(a,y,E){if(E===void 0)return new eh(Po);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new eh(new xt(Math.round(1e3*E.x)/1e3,Math.round(1e3*E.y)/1e3)):new eh(E.copy())};function Ns(a,y,E){if(y.diagram!==null&&y.diagram!==a&&Pn("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),E===null?y.diagram!==null&&Pn("Cannot add an existing Layer to this Diagram again: "+y):(E.diagram!==a&&Pn("Existing Layer must be in this Diagram: "+E+" not in "+E.diagram),y===E&&Pn("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,E=a.count;for(var b=0;b<E;b++)a.M(b).name===y&&Pn("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}We.Al=function(a){Ns(this,a,null),a.Xe(this);var y=this.Wa,E=y.count-1;if(!a.isTemporary)for(;0<=E&&y.M(E).isTemporary;)E--;return y.Gb(E+1,a),this.cc!==null&&this.cb(Js,"layers",this,null,a,null,E+1),this.N(),this.Ya(),this},We.Ww=function(a,y){Ns(this,a,y),a.Xe(this);var E=this.Wa,b=E.indexOf(a);0<=b&&(E.remove(a),this.cc!==null&&this.cb(ul,"layers",this,a,null,b,null));var x=E.count,z;for(z=0;z<x;z++)if(E.M(z)===y){E.Gb(z,a);break}return this.cc!==null&&this.cb(Js,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},We.Cy=function(a,y){Ns(this,a,y),a.Xe(this);var E=this.Wa,b=E.indexOf(a);0<=b&&(E.remove(a),this.cc!==null&&this.cb(ul,"layers",this,a,null,b,null));var x=E.count,z;for(z=0;z<x;z++)if(E.M(z)===y){E.Gb(z+1,a);break}return this.cc!==null&&this.cb(Js,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},We.kA=function(a){if(a.diagram!==this&&Pn("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,E=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var b=y.value,x=b.layerName;x!==a.name?b.layerName=x:b.layerName=""}this.cc!==null&&this.cb(ul,"layers",this,a,null,E,null),this.N(),this.Ya()}}},We.Qj=function(a){for(var y=this.layers;y.next();){var E=y.value;if(E.name===a)return E}return null},We.Yw=function(a){return this.pf===null&&(this.pf=new Ar),this.pf.add(a),this.model.Pe(a),this},We.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},We.Pe=function(a){return this.zg===null&&(this.zg=new Ar),this.zg.add(a),this},We.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},We.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==tu&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,E=y.length,b=0;b<E;b++)y.M(b)(a)},We.cb=function(a,y,E,b,x,z,ne){z===void 0&&(z=null),ne===void 0&&(ne=null);var oe=new ks;oe.diagram=this,oe.change=a,oe.propertyName=y,oe.object=E,oe.oldValue=b,oe.oldParam=z,oe.newValue=x,oe.newParam=ne,this.ds(oe)},We.g=function(a,y,E,b,x){this.cb(ys,a,this,y,E,b,x)},xn.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var E=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var b=a.change;if(b===ys){var x=a.object;if(cl(x,a.propertyName,a.I(y)),x instanceof pn){var z=x.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===Js){var ne=a.object,oe=a.newParam,ue=a.newValue;if(ne instanceof kr)if(typeof oe=="number"&&ue instanceof pn){y?ne.pc(oe):ne.Gb(oe,ue);var he=ne.part;he!==null&&he.Wb()}else typeof oe=="number"&&ue instanceof au&&(ue.isRow?pS(ne,oe,y?void 0:ue):gS(ne,oe,y?void 0:ue));else if(ne instanceof po){var ge=a.oldParam===!0;typeof oe=="number"&&ue instanceof Wi&&(y?(ue.isSelected=!1,ue.isHighlighted=!1,ue.Wb(),ne.pc(ge?oe:-1,ue,ge)):ne.oi(oe,ue,ge))}else ne instanceof xn?typeof oe=="number"&&ue instanceof po&&(y?this.Wa.mb(oe):(ue.Xe(this),this.Wa.Gb(oe,ue))):Pn("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===ul){var Ee=a.object,ke=a.oldParam,Ve=a.oldValue;if(Ee instanceof kr)typeof ke=="number"&&Ve instanceof pn?y?Ee.Gb(ke,Ve):Ee.pc(ke):typeof ke=="number"&&Ve instanceof au&&(Ve.isRow?pS(Ee,ke,y?Ve:void 0):gS(Ee,ke,y?Ve:void 0));else if(Ee instanceof po){var Ze=a.newParam===!0;typeof ke=="number"&&Ve instanceof Wi&&(y?0>Ee.Pa.indexOf(Ve)&&Ee.oi(ke,Ve,Ze):(Ve.isSelected=!1,Ve.isHighlighted=!1,Ve.Wb(),Ee.pc(Ze?ke:-1,Ve,Ze)))}else Ee instanceof xn?typeof ke=="number"&&Ve instanceof po&&(y?(Ve.Xe(this),this.Wa.Gb(ke,Ve)):this.Wa.mb(ke)):Pn("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==tu&&Pn("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=E}}},xn.prototype.Ea=function(a){return this.undoManager.Ea(a)},xn.prototype.eb=function(a){return this.undoManager.eb(a)},xn.prototype.Kf=function(){return this.undoManager.Kf()},xn.prototype.commit=function(a,y){y===void 0&&(y="");var E=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=E}},xn.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},xn.prototype.rp=function(){this.partManager.rp()};function hu(a,y,E){var b=a.animationManager;if(a.vb||a.ld)a.Ca=E,Tc(a),a.N(),a.Ee=!0,b.zb&&(ko(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=E,Tc(a);else{a.vb=!0;var x=a.viewportBounds.copy(),z=a.Aa,ne=a.ya,oe=a.zoomPoint.x,ue=a.zoomPoint.y,he=a.contentAlignment;isNaN(oe)&&(he.$c()?he.Hf(cc)?oe=0:he.Hf(Il)&&(oe=z-1):oe=he.sb()?he.x*(z-1):z/2),isNaN(ue)&&(he.$c()?he.Hf(Hu)?ue=0:he.Hf(al)&&(ue=ne-1):ue=he.sb()?he.y*(ne-1):ne/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(E=a.scaleComputation(a,E)),E<a.minScale&&(E=a.minScale),E>a.maxScale&&(E=a.maxScale),z=xt.allocAt(a.pa.x+oe/y-oe/E,a.pa.y+ue/y-ue/E),a.position=z,xt.free(z),a.Ca=E,Tc(a),a.vb=!1,a.onViewportBoundsChanged(x,a.viewportBounds,y,!1),Ms(a,!1),b.zb&&(ko(b)||b.ce.add(b.H,"scale",y,a.Ca))}}xn.prototype.onViewportBoundsChanged=function(a,y,E,b){if(!a.D(y)){b===void 0&&(b=!1),b||(this.Ee=!0),this.vd=!0;var x=this.layout;x===null||!x.isViewportSized||this.autoScale!==tc||a.width===y.width&&a.height===y.height||x.C(),x=this.currentTool,this.Vk===!0&&x instanceof ms&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Id(x,this)),this.vb||this.invalidateViewport(a,y),Gl(this),this.fc.scale=E,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*E),this.fc.canvasSize.height=Math.round(a.height*E),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=b,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function Gl(a,y){var E=a.fe;if(E!==null&&E.visible){for(var b=sn.alloc(),x=1,z=1,ne=E.O.s,oe=ne.length,ue=0;ue<oe;ue++){var he=ne[ue],ge=Math.abs(he.interval);2>ge||(Nv(he.figure)?z=z*ge/gn.vx(z,ge):x=x*ge/gn.vx(x,ge))}if(ne=E.gridCellSize,b.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=Un.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){Un.free(y);return}x=y.width,z=y.height,a=y.x,ne=y.y,Un.free(y)}E.width=x+2*b.width,E.height=z+2*b.height,y=xt.alloc(),gn.No(a,ne,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),sn.free(b),E.part.location=y,xt.free(y)}}xn.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var E=y.Fa(),b=E.length,x=0;x<b;x++)E[x].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},xn.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))},xn.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),Gi(a))for(var y=a.length,E=0;E<y;E++){var b=a[E];b instanceof Wi||Pn("Diagram.selectCollection given something that is not a Part: "+b),b.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof Wi||Pn("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},xn.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),E=y.length,b=0;b<E;b++)y[b].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},We=xn.prototype,We.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},We.Jz=function(a){a=new qt().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 Wi||Pn("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},We.scroll=function(a,y,E){E===void 0&&(E=1);var b=y==="up"||y==="down",x=0,z=xt.alloc();if(a==="pixel")x=E;else if(a==="line")x=E*(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=b?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(x=E*Math.max(a-(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){x=this.documentBounds,E=this.viewportBounds,y==="up"?this.position=z.h(E.x,x.y):y==="left"?this.position=z.h(x.x,E.y):y==="down"?this.position=z.h(E.x,x.bottom-E.height):y==="right"&&(this.position=z.h(x.right-E.width,E.y)),xt.free(z);return}Pn("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}x/=this.scale,E=this.position,y==="up"?this.position=z.h(E.x,E.y-x):y==="down"?this.position=z.h(E.x,E.y+x):y==="left"?this.position=z.h(E.x-x,E.y):y==="right"?this.position=z.h(E.x+x,E.y):Pn("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),xt.free(z)},We.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)},We.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},We.op=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var E=this.pa;return(E.x!==0||E.y!==0)&&isFinite(E.x)&&isFinite(E.y)&&y.translate(-E.x,-E.y),a.copy().transform(this.Ab)},We.zA=function(a){var y=this.Ab,E=a.x,b=a.y,x=E+a.width,z=b+a.height,ne=y.m11,oe=y.m12,ue=y.m21,he=y.m22,ge=y.dx,Ee=y.dy,ke=E*ne+b*ue+ge;y=E*oe+b*he+Ee;var Ve=x*ne+b*ue+ge;return a=x*oe+b*he+Ee,b=E*ne+z*ue+ge,E=E*oe+z*he+Ee,ne=x*ne+z*ue+ge,x=x*oe+z*he+Ee,z=Math.min(ke,Ve),ke=Math.max(ke,Ve),Ve=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),ke=Math.max(ke,b),Ve=Math.min(Ve,E),y=Math.max(y,E),z=Math.min(z,ne),ke=Math.max(ke,ne),Ve=Math.min(Ve,x),y=Math.max(y,x),new Un(z,Ve,ke-z,y-Ve)},We.Ps=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var E=this.pa;return(E.x!==0||E.y!==0)&&isFinite(E.x)&&isFinite(E.y)&&y.translate(-E.x,-E.y),pr(a.copy(),this.Ab)};function iu(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function vu(a){return a=ip.get(a),a!==null?new a:new bs}xn.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var E=a.change,b=a.propertyName;if(E===tu&&b[0]==="S")if(b==="StartingFirstTransaction"){var x=this;a=this.toolManager,a.mouseDownTools.each(function(ue){return ue.diagram=x}),a.mouseMoveTools.each(function(ue){return ue.diagram=x}),a.mouseUpTools.each(function(ue){return ue.diagram=x}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else b==="StartingUndo"||b==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):b==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&E===tu){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),El(this));var z=this.animationManager;b==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||wa(z),b==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),b!=="CommittedTransaction"&&b!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var ne=a.isTransactionFinished;if(ne&&(iu(this),this.As.clear(),ja(this.animationManager)),!this.Rt&&ne&&this.lastInput.targetDiagram){this.Rt=!0;var oe=this;_i(function(){oe.currentTool.standardMouseOver(),oe.Rt=!1},10)}}}finally{this.aa=!0}}}};function ec(a,y){y=y.O.s;for(var E=y.length,b=0;b<E;b++)Fu(a,y[b])}function Fu(a,y){if(y instanceof Vc){var E=y.element;if(E!==null&&E instanceof HTMLImageElement){E.Bg instanceof qt&&E.Bg.add(a);var b=y.Eg;if(b!==null&&b.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),E.hn)if(E=E.getAttribute("src")||"",b=a.Og.I(E),b===null)b=[],b.push(y),a.Og.add(E,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}}function jd(a,y){if(y instanceof Vc){var E=y.element;if(E!==null&&E instanceof HTMLImageElement&&E.hn){var b=E.getAttribute("src")||"",x=a.Og.I(b);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(b),E.Fq&&E.removeEventListener("load",E.Fq),E.Yp&&E.removeEventListener("error",E.Yp),delete E.Fq,delete E.Yp,E.Bg instanceof qt&&E.Bg.remove(a),gg(b));break}}}}}xn.prototype.Wd=function(){this.partManager.Wd()},xn.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},xn.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},xn.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},xn.prototype.Vb=function(a){return this.partManager.Vb(a)},xn.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},We=xn.prototype,We.Lc=function(a){return this.partManager.Lc(a)},We.ii=function(a){return this.partManager.ii(a)},We.Kc=function(a){return this.partManager.Kc(a)},We.ms=function(a){for(var y=[],E=0;E<arguments.length;++E)y[E]=arguments[E];return this.partManager.ms.apply(this.partManager,y instanceof Array?y:hr(ur(y)))},We.ls=function(a){for(var y=[],E=0;E<arguments.length;++E)y[E]=arguments[E];return this.partManager.ls.apply(this.partManager,y instanceof Array?y:hr(ur(y)))};function Tc(a){var y=a.pa,E=a.Ca;a.Rw.h(y.x,y.y,Math.max(a.Aa,0)/E,Math.max(a.ya,0)/E),a.vd=!0}function Gd(a,y){a.Zi=!1;var E=a.Sp;E.D(y)||(E=E.copy(),a.Sp.assign(y),Ms(a,!1),a.R("DocumentBoundsChanged",void 0,E),a.Ee=!0,a.N())}We.Va=function(){if(this.Zi){var a=Un.alloc();Gd(this,this.computeBounds(a)),Un.free(a)}},We.rz=function(){for(var a=new qt,y=this.nodes;y.next();){var E=y.value;E.isTopLevel&&a.add(E)}for(y=this.links;y.next();)E=y.value,E.isTopLevel&&a.add(E);return a.iterator},We.qz=function(){return this.ai.iterator},We.Uz=function(a){El(this),a&&kd(this,!0),this.ld?xp(this,!1):(this.Jk=!0,Rl(this))};function kd(a,y){for(var E=a.ai.iterator;E.next();)wh(a,E.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function wh(a,y,E){if(y!==null){for(var b=y.gl.iterator;b.next();)wh(a,b.value,E);y.layout!==null&&(E?y.layout.isValidLayout=!1:y.layout.C())}}function xp(a,y){if(a.xh&&!a.lt){var E=a.aa;a.aa=!0;var b=a.undoManager.transactionLevel,x=a.layout,z=a.animationManager;try{b===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=b&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Ha(z,"Layout")),a.xh=!1;for(var ne=a.ai.iterator;ne.next();)wp(a,ne.value,y,b);x.isValidLayout||(!y||x.isRealtime||x.isRealtime===null||b===0?(x.doLayout(a),El(a),x.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,b===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||b!==0&&b!==1||wa(z),a.aa=E}}}function wp(a,y,E,b){if(y!==null){for(var x=y.gl.iterator;x.next();)wp(a,x.value,E,b);x=y.layout,x===null||x.isValidLayout||(!E||x.isRealtime||b===0?(y.rh=!y.location.w(),x.doLayout(y),y.C(32),ru(a,y),x.isValidLayout=!0):a.xh=!0)}}We.yz=function(){for(var a=new Ar,y=this.nodes;y.next();){var E=y.value;E.isTopLevel&&E.kh()===null&&a.add(E)}return a.iterator};function Vg(a){function y(x){var z=x.toLowerCase(),ne=new Ar;E.add(x,ne),E.add(z,ne),b.add(x,x),b.add(z,x)}var E=new xr,b=new xr;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=E,a.hw=b}function tg(a,y){var E=a.hw.I(y);return E!==null?E:a.hw.I(y.toLowerCase())}function Ch(a,y){var E=a.iw.I(y);if(E!==null||(E=a.iw.I(y.toLowerCase()),E!==null))return E;Pn("Unknown DiagramEvent name: "+y)}We.Bj=function(a,y){return a=Ch(this,a),a!==null&&a.add(y),this},We.am=function(a,y){a=Ch(this,a),a!==null&&a.remove(y)},We.R=function(a,y,E){var b=Ch(this,a),x=new ac;if(x.diagram=this,a=tg(this,a),a!==null&&(x.name=a),y!==void 0&&(x.subject=y),E!==void 0&&(x.parameter=E),y=b.length,y===1)b.M(0)(x);else if(y!==0)for(b=b.Fa(),E=0;E<y;E++)(0,b[E])(x)};function np(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}We.Yj=function(a,y){return Nf(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},xn.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Ss(this,a):a.assign(this.documentBounds)};function Nf(a,y,E,b){var x=a.Xh;if(x===null&&(a.Xh=x=new cm(a.avoidanceCellSize)),x.vs||x.group!==E||x.Yx!==b){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)),E!==null&&(E=ng(a,E)),E===null){y=Un.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),x.initialize(y);for(var z=a.nodes;z.next();){var ne=z.value,oe=ne.layer;oe!==null&&oe.visible&&!oe.isTemporary&&rp(a,ne,b,y)}Un.free(y)}else{for(0<E.memberParts.count&&(y=a.computePartsBounds(E.memberParts,!1),y.Bc(20,20),x.initialize(y)),y=Un.alloc(),z=E.memberParts;z.next();)ne=z.value,ne instanceof qr&&rp(a,ne,b,y);Un.free(y)}x.group=E,x.Yx=b,x.vs=!1}else y&&uE(x);return x}function ng(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?ng(a,y.containingGroup):null}function rp(a,y,E,b){if(y!==E&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(b),a=a.Xh;var x=y.x,z=y.y;if(bg(a,x,z))for(E=(z-a.Od)/a.sc|0,b=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<=b;x++)if(z=a.ac[x],z.fill)z.fill(gf,E,y+1);else for(var ne=E;ne<=y;ne++)z[ne]=gf}else if(y instanceof Fo)for(y=y.memberParts;y.next();)x=y.value,x instanceof qr&&rp(a,x,E,b)}}function jh(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}xn.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():Cp(this)};function Cp(a){a.vk===-1&&(a.vk=_i(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=Un.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Gd(a,y),Un.free(y),a.Fc=!0,a.bd(),Cp(a))}},a.vp))}xn.prototype.ug=function(){this.vk!==-1&&(Hn.clearTimeout(this.vk),this.vk=-1)},xn.prototype.computeAutoScrollPosition=function(a){var y=this.position,E=this.xp;if(0>=E.top&&0>=E.left&&0>=E.right&&0>=E.bottom)return y;var b=this.viewportBounds,x=this.scale;b=Un.allocAt(0,0,b.width*x,b.height*x);var z=xt.allocAt(0,0);if(a.x>=b.x&&a.x<b.x+E.left&&this.allowHorizontalScroll){var ne=Math.max(this.scrollHorizontalLineChange,1);ne|=0,z.x-=ne,a.x<b.x+E.left/2&&(z.x-=ne),a.x<b.x+E.left/4&&(z.x-=4*ne)}else a.x<=b.x+b.width&&a.x>b.x+b.width-E.right&&this.allowHorizontalScroll&&(ne=Math.max(this.scrollHorizontalLineChange,1),ne|=0,z.x+=ne,a.x>b.x+b.width-E.right/2&&(z.x+=ne),a.x>b.x+b.width-E.right/4&&(z.x+=4*ne));return a.y>=b.y&&a.y<b.y+E.top&&this.allowVerticalScroll?(ne=Math.max(this.scrollVerticalLineChange,1),ne|=0,z.y-=ne,a.y<b.y+E.top/2&&(z.y-=ne),a.y<b.y+E.top/4&&(z.y-=4*ne)):a.y<=b.y+b.height&&a.y>b.y+b.height-E.bottom&&this.allowVerticalScroll&&(ne=Math.max(this.scrollVerticalLineChange,1),ne|=0,z.y+=ne,a.y>b.y+b.height-E.bottom/2&&(z.y+=ne),a.y>b.y+b.height-E.bottom/4&&(z.y+=4*ne)),z.Xa(Po)||(y=new xt(y.x+z.x/x,y.y+z.y/x)),Un.free(b),xt.free(z),y},We=xn.prototype,We.Cs=function(){return null},We.av=function(){return null},We.bs=function(a,y){this.pj.add(a,y)},We.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Fo&&(y.$p=null)})};function Gh(a,y,E){function b(){var ge=+new Date;for(z=!0,ne.reset();ne.next();)if(!ne.value[0].al){z=!1;break}z||ge-he>ue?y(E,x,oe):Hn.requestAnimationFrame(b)}for(var x=E.callback,z=!0,ne=a.Og.iterator;ne.next();)if(!ne.value[0].al){z=!1;break}if(typeof x!="function"||z)return y(E,x,a);var oe=a,ue=E.callbackTimeout||300,he=+new Date;return Hn.requestAnimationFrame(function(){b()}),null}We.Wz=function(a){return bl?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},We.Jx=function(a){return a===void 0&&(a={}),Gh(this,this.Xz,a)},We.Xz=function(a,y,E){var b=rg(E,a,"canvas",null);if(b===null)return null;E=b.Z.canvas;var x=null;if(E!==null)switch(x=a.returnType,x===void 0?x="string":x=x.toLowerCase(),x){case Wh+"data":x=b.getImageData(0,0,E.width,E.height);break;case Wh:b=(a.document||document).createElement("img"),b.src=E.toDataURL(a.type,a.details),x=b;break;case"blob":return typeof y!="function"&&Pn('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof E.toBlob=="function"?(E.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:x=E.toDataURL(a.type,a.details)}return typeof y=="function"?(y(x),null):x};function rg(a,y,E,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&Pn("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=E==="SVG"?new sn(1/0,1/0):new sn(2e3,2e3));var oe=y.position||null,ue=y.parts||null,he=y.padding===void 0?1:y.padding,ge=y.background||null,Ee=y.omitTemporary;Ee===void 0&&(Ee=!0);var ke=y.document||document,Ve=y.elementFinished||null,Ze=y.showTemporary;Ze===void 0&&(Ze=!Ee),y=y.showGrid,y===void 0&&(y=Ze),x!==null&&isNaN(x.width)&&isNaN(x.height)&&(x=null),typeof he=="number"?he=new Bi(he):he instanceof Bi||Pn("MakeImage padding must be a Margin or a number."),he.left=Math.max(he.left,0),he.right=Math.max(he.right,0),he.top=Math.max(he.top,0),he.bottom=Math.max(he.bottom,0),a.ib.Vc(!0),Ee=new _u(null,ke,void 0,!0);var st=Ee.context;if(!(x||z||ue||oe))return Ee.width=a.Aa+Math.ceil(he.left+he.right),Ee.height=a.ya+Math.ceil(he.top+he.bottom),E==="SVG"?b===null?null:(b.resize(Ee.width,Ee.height,Ee.width,Ee.height),b.ownerDocument=ke,b.hs=Ve,Hc(a,b.context,he,new sn(Ee.width,Ee.height),a.Ca,a.pa,ue,ge,Ze,y),b.context):(a.Xm=!1,Hc(a,st,he,new sn(Ee.width,Ee.height),a.Ca,a.pa,ue,ge,Ze,y),a.Xm=!0,Ee.context);var Ot=a.Pp,Pt=a.documentBounds.copy();if(Pt.Fv(a.yb),Ze)for(var zt=a.Wa.s,Kt=zt.length,Jt=0;Jt<Kt;Jt++){var dn=zt[Jt];if(dn.visible&&dn.isTemporary){dn=dn.Pa.s;for(var kn=dn.length,Xr=0;Xr<kn;Xr++){var Ei=dn[Xr];Ei.isInDocumentBounds&&Ei.isVisible()&&(Ei=Ei.actualBounds,Ei.w()&&Pt.ed(Ei))}}}if(zt=new xt(Pt.x,Pt.y),ue!==null){for(Kt=new Un(0,0,0,0),Jt=!0,dn=ue.iterator,dn.reset();dn.next();)kn=dn.value,kn instanceof Wi&&(Xr=kn.layer,Xr!==null&&!Xr.visible||Xr!==null&&!Ze&&Xr.isTemporary||!kn.isVisible()||(kn=kn.actualBounds,kn.w()&&(Jt?(Jt=!1,Kt.assign(kn)):Kt.ed(kn))));Pt.width=Kt.width,Pt.height=Kt.height,zt.x=Kt.x,zt.y=Kt.y}return oe!==null&&oe.w()&&(zt=oe,z||(z=Ot)),Kt=oe=0,he!==null&&(oe=he.left+he.right,Kt=he.top+he.bottom),Jt=dn=0,x!==null&&(dn=x.width,Jt=x.height,isFinite(dn)&&(dn=Math.max(0,dn-oe)),isFinite(Jt)&&(Jt=Math.max(0,Jt-Kt))),x!==null&&z!==null?(z==="NaN"&&(z=Ot),x.w()?(x=dn,Pt=Jt):isNaN(Jt)?(x=dn,Pt=Pt.height*z):(x=Pt.width*z,Pt=Jt)):x!==null?x.w()?(z=Math.min(dn/Pt.width,Jt/Pt.height),x=dn,Pt=Jt):isNaN(Jt)?(z=dn/Pt.width,x=dn,Pt=Pt.height*z):(z=Jt/Pt.height,x=Pt.width*z,Pt=Jt):z!==null?z==="NaN"&&ne.w()?(z=Math.min((ne.width-oe)/Pt.width,(ne.height-Kt)/Pt.height),z>Ot?(z=Ot,x=Pt.width,Pt=Pt.height):(x=ne.width,Pt=ne.height)):(x=Pt.width*z,Pt=Pt.height*z):(z=Ot,x=Pt.width,Pt=Pt.height),he!==null?(x+=oe,Pt+=Kt):he=new Bi(0),ne!==null&&(Ot=ne.width,ne=ne.height,isNaN(Ot)&&(Ot=2e3),isNaN(ne)&&(ne=2e3),isFinite(Ot)&&(x=Math.min(x,Ot)),isFinite(ne)&&(Pt=Math.min(Pt,ne))),Ee.width=Math.ceil(x),Ee.height=Math.ceil(Pt),E==="SVG"?b===null?null:(b.resize(Ee.width,Ee.height,Ee.width,Ee.height),b.ownerDocument=ke,b.hs=Ve,Hc(a,b.context,he,new sn(Math.ceil(x),Math.ceil(Pt)),z,zt,ue,ge,Ze,y),b.context):(a.Xm=!1,Hc(a,st,he,new sn(Math.ceil(x),Math.ceil(Pt)),z,zt,ue,ge,Ze,y),a.Xm=!0,Ee.context)}tr.Object.defineProperties(xn.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof Ce||(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 ka(this,Hn.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 ka(this,Hn.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(E){E.cancelWaitAfter()}),y.mouseMoveTools.each(function(E){E.cancelWaitAfter()}),y.mouseUpTools.each(function(E){E.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(Hn,"resize",this.Ov,!1),this.removeEventListener(Hn,"wheel",this.$j,!0),Ja===this&&(Ja=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Qi(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)&&ji(a,"0 <= value <= 1",xn,"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),Ms(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),Ms(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),Ms(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),Ms(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&ji(a,">= 0",xn,"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&&ji(a,">= 0",xn,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,E=this.Ka;if(y!==null&&E!==null){this.it=a;var b=y.style.cursor;y.style.cursor=a,E.style.cursor=a,y.style.cursor===b&&(y.style.cursor="-webkit-"+a,E.style.cursor="-webkit-"+a,y.style.cursor===b&&(y.style.cursor="-moz-"+a,E.style.cursor="-moz-"+a,y.style.cursor===b&&(y.style.cursor=a,E.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0<a)){this.R("ChangingSelection",this.selection),y=this.selection.Fa();for(var E=0;E<a;E++)y[E].isSelected=!1;this.R("ChangedSelection",this.selection)}}else ji(a,">= 0",xn,"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||iu(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&&Pn("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var E=jl(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,Ha(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=vu(this.cc.type);for(var x=0;x<E.length;x++)this.add(E[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=b,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(Hn,"pointermove",this.dk,!0),this.addEventListener(Hn,"pointerdown",this.ui,!0),this.addEventListener(Hn,"pointerup",this.fk,!0),this.addEventListener(Hn,"pointerout",this.ek,!0),this.addEventListener(Hn,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Hn,"wheel",this.$j,!0),this.addEventListener(Hn,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Hn,"pointermove",this.dk,!0),this.removeEventListener(Hn,"pointerdown",this.ui,!0),this.removeEventListener(Hn,"pointerup",this.fk,!0),this.removeEventListener(Hn,"pointerout",this.ek,!0),this.removeEventListener(Hn,"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(Hn,"wheel",this.$j,!0),this.removeEventListener(Hn,"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=xt.alloc().assign(this.pa);if(!y.D(a)){var E=this.viewportBounds.copy();this.pa.assign(a),so(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Tc(this):(this.vb=!0,a=this.scale,zu(this,this.Sp,this.Aa/a,this.ya/a,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(E,this.viewportBounds,this.Ca,!1)}xt.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=is(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=is(this)),a.type!==kr.Grid&&Pn("Diagram.grid must be a Panel of type Panel.Grid");var E=y.panel;E!==null&&E.remove(y),this.fe=a,a.name="GRID",E!==null&&E.add(a),Gl(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),Tc(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||Pn("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 Bi(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===Ah&&Ms(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,Ms(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,hu(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&&hu(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!==tc&&Ms(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()||Pn("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()||Pn("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)):ji(a,"> 0",xn,"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)):ji(a,"> 0",xn,"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),Ms(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 Bi(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&&Pn("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();)em(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==gh&&a!==Bl&&a!==Vh&&Pn("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 sn(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 Bi(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),tr.Object.defineProperties(xn,{licenseKey:{get:function(){return Ip.jc()},set:function(a){Ip.add(a.replace(/\s/g,""))}},version:{get:function(){return Ph}}}),xn.prototype.makeImageData=xn.prototype.Jx,xn.prototype.makeImage=xn.prototype.Wz,xn.prototype.cacheGroupExternalLinks=xn.prototype.Fu,xn.prototype.addRenderer=xn.prototype.bs,xn.prototype.makeSVG=xn.prototype.av,xn.prototype.makeSvg=xn.prototype.Cs,xn.prototype.stopAutoScroll=xn.prototype.ug,xn.prototype.doAutoScroll=xn.prototype.gs,xn.prototype.isUnoccupied=xn.prototype.Yj,xn.prototype.raiseDiagramEvent=xn.prototype.R,xn.prototype.removeDiagramListener=xn.prototype.am,xn.prototype.addDiagramListener=xn.prototype.Bj,xn.prototype.findTreeRoots=xn.prototype.yz,xn.prototype.layoutDiagram=xn.prototype.Uz,xn.prototype.findTopLevelGroups=xn.prototype.qz,xn.prototype.findTopLevelNodesAndLinks=xn.prototype.rz,xn.prototype.ensureBounds=xn.prototype.Va,xn.prototype.findLinksByExample=xn.prototype.ls,xn.prototype.findNodesByExample=xn.prototype.ms,xn.prototype.findLinkForData=xn.prototype.Kc,xn.prototype.findNodeForData=xn.prototype.ii,xn.prototype.findPartForData=xn.prototype.Lc,xn.prototype.findLinkForKey=xn.prototype.findLinkForKey,xn.prototype.findNodeForKey=xn.prototype.Vb,xn.prototype.findPartForKey=xn.prototype.findPartForKey,xn.prototype.rebuildParts=xn.prototype.Wd,xn.prototype.transformViewToDoc=xn.prototype.Ps,xn.prototype.transformRectDocToView=xn.prototype.zA,xn.prototype.transformDocToView=xn.prototype.op,xn.prototype.centerRect=xn.prototype.es,xn.prototype.scrollToRect=xn.prototype.tv,xn.prototype.scroll=xn.prototype.scroll,xn.prototype.highlightCollection=xn.prototype.Jz,xn.prototype.highlight=xn.prototype.Iz,xn.prototype.selectCollection=xn.prototype.rA,xn.prototype.select=xn.prototype.select,xn.prototype.updateAllRelationshipsFromData=xn.prototype.rp,xn.prototype.updateAllTargetBindings=xn.prototype.updateAllTargetBindings,xn.prototype.commit=xn.prototype.commit,xn.prototype.rollbackTransaction=xn.prototype.Kf,xn.prototype.commitTransaction=xn.prototype.eb,xn.prototype.startTransaction=xn.prototype.Ea,xn.prototype.raiseChanged=xn.prototype.g,xn.prototype.raiseChangedEvent=xn.prototype.cb,xn.prototype.removeChangedListener=xn.prototype.ik,xn.prototype.addChangedListener=xn.prototype.Pe,xn.prototype.removeModelChangedListener=xn.prototype.mA,xn.prototype.addModelChangedListener=xn.prototype.Yw,xn.prototype.findLayer=xn.prototype.Qj,xn.prototype.removeLayer=xn.prototype.kA,xn.prototype.addLayerAfter=xn.prototype.Cy,xn.prototype.addLayerBefore=xn.prototype.Ww,xn.prototype.addLayer=xn.prototype.Al,xn.prototype.moveParts=xn.prototype.moveParts,xn.prototype.copyParts=xn.prototype.Kj,xn.prototype.removeParts=xn.prototype.Is,xn.prototype.remove=xn.prototype.remove,xn.prototype.add=xn.prototype.add,xn.prototype.clearDelayedGeometries=xn.prototype.bx,xn.prototype.setProperties=xn.prototype.nm,xn.prototype.attach=xn.prototype.Du,xn.prototype.set=xn.prototype.set,xn.prototype.resetInputOptions=xn.prototype.Sx,xn.prototype.setInputOption=xn.prototype.sA,xn.prototype.getInputOption=xn.prototype.Ql,xn.prototype.resetRenderingHints=xn.prototype.Tx,xn.prototype.setRenderingHint=xn.prototype.Xx,xn.prototype.getRenderingHint=xn.prototype.Gf,xn.prototype.maybeUpdate=xn.prototype.bd,xn.prototype.requestUpdate=xn.prototype.$b,xn.prototype.delayInitialization=xn.prototype.Xy,xn.prototype.isUpdateRequested=xn.prototype.Pz,xn.prototype.invalidateDocumentBounds=xn.prototype.Ya,xn.prototype.findObjectsNear=xn.prototype.og,xn.prototype.findPartsNear=xn.prototype.mz,xn.prototype.findObjectsIn=xn.prototype.Cf,xn.prototype.findPartsIn=xn.prototype.ux,xn.prototype.findObjectsAt=xn.prototype.ji,xn.prototype.findPartsAt=xn.prototype.lz,xn.prototype.findObjectAt=xn.prototype.ic,xn.prototype.findPartAt=xn.prototype.Ol,xn.prototype.focusObject=xn.prototype.zz,xn.prototype.alignDocument=xn.prototype.Jy,xn.prototype.zoomToRect=xn.prototype.BA,xn.prototype.zoomToFit=xn.prototype.zoomToFit,xn.prototype.diagramScroll=xn.prototype.kx,xn.prototype.focus=xn.prototype.focus;var ip=new xr,ig=null,bl=Hn.document!==void 0,of=null,Th="",tc=new Mn(xn,"None",0),jc=new Mn(xn,"Uniform",1),af=new Mn(xn,"UniformToFill",2),zh=new Mn(xn,"CycleAll",10),Tp=new Mn(xn,"CycleNotDirected",11),Ap=new Mn(xn,"CycleNotDirectedFast",12),Pp=new Mn(xn,"CycleNotUndirected",13),Np=new Mn(xn,"CycleDestinationTree",14),Lp=new Mn(xn,"CycleSourceTree",15),Ah=new Mn(xn,"DocumentScroll",1),Lf=new Mn(xn,"InfiniteScroll",2),gh=new Mn(xn,"TreeParentCollapsed",21),Bl=new Mn(xn,"AllParentsCollapsed",22),Vh=new Mn(xn,"AnyParentsCollapsed",23),Ip=new Ar,Ph="2.3.10",Wh="image",If=null,og=!1;function Ku(){if(bl){var a=Hn.document.createElement("canvas"),y=a.getContext("2d"),E=vo("7ca11abfd022028846");y[E]=vo("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",Cr.Dx+"4ae6247590da4bb21c324ba3a84e385776",No.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",gn.za],x=1;5>x;x++)y[vo("7ca11abfd7330390")](vo(b[x-1]),10,15*x);for(y[E]=vo("39f046ebb36e4b"),E=1;5>E;E++)y[vo("7ca11abfd7330390")](vo(b[E-1]),10,15*E);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(No.prototype.Cd=No.prototype.Eu),If=a}}xn.className="Diagram",xn.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Hn.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof xn?y.H:null},xn.inherit=function(a,y){function E(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class
|
|
|
`+a);E.prototype=y.prototype,a.prototype=new E,a.prototype.constructor=a},xn.useDOM=function(a){bl=a?Hn.document!==void 0:!1},xn.isUsingDOM=function(){return bl},xn.None=tc,xn.Uniform=jc,xn.UniformToFill=af,xn.CycleAll=zh,xn.CycleNotDirected=Tp,xn.CycleNotDirectedFast=Ap,xn.CycleNotUndirected=Pp,xn.CycleDestinationTree=Np,xn.CycleSourceTree=Lp,xn.DocumentScroll=Ah,xn.InfiniteScroll=Lf,xn.TreeParentCollapsed=gh,xn.AllParentsCollapsed=Bl,xn.AnyParentsCollapsed=Vh;function ag(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Nh(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)e:{y="f";var E=Hn[vo("76a715b2f73f148a")][vo("72ba13b5")]||"";if(a.Rc=!0,bl){var b=xn[vo("76a115b6ed251eaf4692")];if(b)for(var x=Ip.iterator;x.next()&&(b=x.value,b=vo(b).split(vo("39e9")),!(6>b.length));){var z=vo(b[1]).split(".");if(b[4]!=="7da71ca0")break;var ne=vo(Cr[vo("6cae19")]).split(".");if(z[0]>ne[0]||z[0]===ne[0]&&z[1]>=ne[1]){var oe=Hn[vo("74a900bae4370f8b51")][vo("6fbb13a1c2311e8a57")].toLowerCase();if(ne=oe[vo("73a612b6fb191d")](vo("3aad1ab6e022098b4dc4")),z=vo(b[2]),-1<ne&&(oe=oe[vo("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<oe&&oe<ne),!a.Rc))break;for(ne=E[vo("76ad18b4f73e")],oe=E[vo("73a612b6fb191d")](vo("35e7"))+2;oe<ne;oe++)y+=E[oe];if(ne=y[vo("73a612b6fb191d")](z),0>ne&&z!==vo("7da71ca0ad381e90")&&(ne=y[vo("73a612b6fb191d")](vo("76a715b2ef3e149757"))),0>ne&&(ne=y[vo("73a612b6fb191d")](vo("76a715b2ef3e149757"))),0>ne&&(ne=y[vo("73a612b6fb191d")](vo("2bfa41fdb3784bca12"))),0>ne&&(ne=E[vo("73a612b6fb191d")](vo("7baa19a6f76c1988428554"))),a.Rc=!(0<=ne&&ne<y[vo("73a612b6fb191d")](vo("35"))||y[vo("73a612b6fb191d")](vo("35"))===-1),!a.Rc||E[vo("73a612b6fb191d")](vo("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<E[vo("73a612b6fb191d")](z)),!a.Rc)||(ne=Hn[vo("76a715b2f73f148a")][vo("69ad17a1e03e")],oe=ne[vo("73a612b6fb191d")](vo("7fb002b6ed25128b4da25b2e")),-1<oe&&(a.Rc=!(ne[vo("73a612b6fb191d")](z)>oe),!a.Rc)))break;if(z[0]==="#"){ne=Hn.document.createElement("div");for(var ue=b[0].replace(/[A-Za-z]/g,"");4>ue.length;)ue+="9";if(oe=ue,ue=ue.substr(ue.length-4),b="",b+=["gsh","gsf"][parseInt(ue.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(ue.substr(0,1),10)%4],ne[vo("79a417a0f0181a8946")]=b,Hn.document[vo("78a712aa")]){Hn.document[vo("78a712aa")][vo("7bb806b6ed32388c4a875b")](ne),ue=Hn.getComputedStyle(ne).getPropertyValue(vo("78a704b7e62456904c9b12701b6532a8"));var he=Hn.getComputedStyle(ne).getPropertyValue(vo("75b817b0ea2202"));if(Hn.document[vo("78a712aa")][vo("68ad1bbcf533388c4a875b")](ne),ue){if(ne=Hn[vo("77a902b0eb1b1e804a8a")],he==="0."+parseInt(oe,10)%100||ue.indexOf(parseInt(z[1]+z[2],16))!==-1&&ue.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(ne&&ne(vo("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,z=0;z<document.styleSheets.length;z++){ne=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var ge in ne)if(b===ne[ge].selectorText){a.Rc=!1;break e}}}}else a.Rc=null,a.Rc=!1}}}else{for(ge=E[vo("76ad18b4f73e")],x=E[vo("73a612b6fb191d")](vo("35e7"))+2;x<ge;x++)y+=E[x];E=y[vo("73a612b6fb191d")](vo("7da71ca0ad381e90")),a.Rc=!(0<=E&&E<y[vo("73a612b6fb191d")](vo("35")))}}}return 0<a.Rc&&a!==a.wy}ag.className="DiagramHelper";function eh(a){this.j=a===void 0?new xt:a,this.o=new xt}tr.Object.defineProperties(eh.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 Kh="DraggingInfo";eh.className="DraggingInfo";function re(a,y,E){this.node=a,this.info=y,this.Su=E}re.className="DraggingNodeInfoPair";function ce(){this.reset()}ce.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new sn(NaN,NaN).freeze(),this.gridSnapCellSpot=Vs,this.gridSnapOrigin=new xt(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},ce.className="DraggingOptions";function ye(a,y){if(typeof a=="string"||Hn.Element&&a instanceof Element)var E=xn.call(this,a)||this;else E=xn.call(this)||this,y=a;return ve(E),y&&E.nm(y),E}vn(ye,xn);function ve(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Ul,a.layout=new Mu}ye.prototype.reset=function(){xn.prototype.reset.call(this),ve(this)},ye.className="Palette";function Ce(a,y){if(typeof a=="string"||Hn.Element&&a instanceof Element)var E=xn.call(this,a)||this;else E=xn.call(this)||this,y=a;var b=E;E.animationManager.isEnabled=!1,E.vb=!0,E.V=null,E.mn=!1,E.nn=!1,E.F=!0,E.u=!0,E.ia=0,E.o=!1,E.ql=null,E.Xx("drawShadows",!1),a=new Wi;var x=new Zo;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),E.j=a,E.allowCopy=!1,E.allowDelete=!1,E.allowSelect=!0,E.autoScrollRegion=new Bi(0,0,0,0),E.pa.h(0,0),E.toolManager.gb("Dragging",new Dt,E.toolManager.mouseMoveTools),E.click=function(){var z=b.observed;if(z!==null){var ne=z.viewportBounds,oe=b.lastInput.documentPoint;z.position=new xt(oe.x-ne.width/2,oe.y-ne.height/2)}},E.Pf=function(){b.Ya(),bt(b)},E.Xd=function(){b.observed!==null&&(b.Ya(),b.N())},E.Ha=function(){1>b.updateDelay?b.N():b.o||(b.o=!0,setTimeout(function(){return b.redraw()},b.updateDelay))},E.Of=function(){b.observed!==null&&bt(b)},E.autoScale=jc,E.vb=!1,y&&Object.assign(E,y),E}vn(Ce,xn),Ce.prototype.computePixelRatio=function(){return 1},Ce.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(Hd(this),this.ql===null){var E=new _u(null);E.width=a.width,E.height=a.height,this.ql=E}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),$e(this)}finally{this.ta=a,this.ib=y}}}xn.prototype.redraw.call(this)},Ce.prototype.gc=function(){if(this.Ka===null&&Pn("No div specified"),this.ta===null&&Pn("No canvas specified"),!(this.ta instanceof ka)&&(Zv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){Hd(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?$e(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var E=y.length,b=0;b<E;b++)y[b].gc(a,this);this.Fc=this.vd=!1}}};function $e(a){var y=a.observed;if(y!==null){var E=a.drawsTemporaryLayers,b=a.drawsGrid&&E,x=y.grid;b&&x!==null&&x.visible&&!isNaN(x.width)&&!isNaN(x.height)&&(x=Un.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Gl(y,x),Un.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 oe=y[ne],ue=a;if(oe.visible&&oe.opacity!==0){var he=oe.diagram.grid.part;if(!E&&oe.isTemporary)b&&he.layer===oe&&(oe=da(oe,x),he.gc(x,ue),x.globalAlpha=oe);else{for(var ge=da(oe,x),Ee=ue.scale,ke=Un.alloc(),Ve=oe.Pa.s,Ze=Ve.length,st=0;st<Ze;st++){var Ot=Ve[st];(b||Ot!==he)&&oe.Oj(x,Ot,ue,null,Ee,ke,!1)}Un.free(ke),x.globalAlpha=ge}}}}}function bt(a){var y=a.box;if(y!==null){var E=a.observed;if(E!==null){a.Fc=!0,E=E.viewportBounds;var b=y.selectionObject,x=sn.alloc();x.h(E.width,E.height),b.desiredSize=x,sn.free(x),a=2/a.scale,b instanceof Zo&&(b.strokeWidth=a),y.location=new xt(E.x-a/2,E.y-a/2),y.isSelected=!0}}}Ce.prototype.computeBounds=function(){var a=this.observed;if(a===null)return pa;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},Ce.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},Ce.prototype.onViewportBoundsChanged=function(a,y,E,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),bt(this),this.fc.scale=E,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.Oz=b,this.R("ViewportBoundsChanged",this.fc,a))},tr.Object.defineProperties(Ce.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof Ce&&Pn("Overview.observed Diagram may not be an Overview itself: "+a),y!==a){if(y!==null&&(this.remove(this.box),y.am("ViewportBoundsChanged",this.Pf),y.am("DocumentBoundsChanged",this.Xd),y.am("InvalidateDraw",this.Ha),y.am("AnimationFinished",this.Of)),this.V=a,a!==null&&(a.Bj("ViewportBoundsChanged",this.Pf),a.Bj("DocumentBoundsChanged",this.Xd),a.Bj("InvalidateDraw",this.Ha),a.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),a===null){this.ql=null;var E=this.ta,b=this.ib;E&&b&&(b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,E.width,E.height))}else this.Ha(null),bt(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),bt(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)}}}),Ce.className="Overview";function Dt(){Do.call(this),this.j=null}vn(Dt,Do),Dt.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var E=a.lastInput;return!E.left||a.currentTool!==this&&(!this.isBeyondDragSize()||E.isTouchEvent&&E.timestamp-a.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(E=y.viewportBounds,this.j=new xt(E.width/2,E.height/2),a=a.firstInput.documentPoint,y.position=new xt(a.x-this.j.x,a.y-this.j.y)),!0)},Dt.prototype.doActivate=function(){this.j=null,Do.prototype.doActivate.call(this)},Dt.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Dt.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var E=a.box;if(E!==null){if(this.j===null){var b=a.firstInput.documentPoint;E=E.location,this.j=new xt(b.x-E.x,b.y-E.y)}a=a.lastInput.documentPoint,y.position=new xt(a.x-this.j.x,a.y-this.j.y)}}},Dt.className="OverviewDraggingTool";function Mt(){At(this),this.H=Ja,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=pa,this.hb=!0,this.cg=null,this.ob=200}Mt.prototype.toString=function(){return"CommandHandler"},Mt.prototype.Xe=function(a){this.H=a},Mt.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,E=gs?y.meta:y.control,b=y.shift,x=y.alt,z=y.key;!E||z!=="C"&&z!=="Insert"?E&&z==="X"||b&&z==="Del"?this.canCutSelection()&&this.cutSelection():E&&z==="V"||b&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():E&&z==="Y"||x&&b&&z==="Backspace"?this.canRedo()&&this.redo():E&&z==="Z"||x&&z==="Backspace"?this.canUndo()&&this.undo():z==="Del"||z==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():E&&z==="A"?this.canSelectAll()&&this.selectAll():z==="Esc"?this.canStopCommand()&&this.stopCommand():z==="Up"?a.allowVerticalScroll&&(E?a.scroll("pixel","up"):a.scroll("line","up")):z==="Down"?a.allowVerticalScroll&&(E?a.scroll("pixel","down"):a.scroll("line","down")):z==="Left"?a.allowHorizontalScroll&&(E?a.scroll("pixel","left"):a.scroll("line","left")):z==="Right"?a.allowHorizontalScroll&&(E?a.scroll("pixel","right"):a.scroll("line","right")):z==="PageUp"?b&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?b&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):z==="Home"?E&&a.allowVerticalScroll?a.scroll("document","up"):!E&&a.allowHorizontalScroll&&a.scroll("document","left"):z==="End"?E&&a.allowVerticalScroll?a.scroll("document","down"):!E&&a.allowHorizontalScroll&&a.scroll("document","right"):z===" "?this.canScrollToPart()&&this.scrollToPart():z==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():z==="Add"?this.canIncreaseZoom()&&this.increaseZoom():E&&z==="0"?this.canResetZoom()&&this.resetZoom():b&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():E&&!b&&z==="G"?this.canGroupSelection()&&this.groupSelection():E&&b&&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()},Mt.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Mt.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof ms&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Mt.prototype.canStopCommand=function(){return!0},Mt.prototype.selectAll=function(){var a=this.diagram;a.N();try{a.currentCursor="wait",a.R("ChangingSelection",a.selection);for(var y=a.parts;y.next();)y.value.isSelected=!0;for(var E=a.nodes;E.next();)E.value.isSelected=!0;for(var b=a.links;b.next();)b.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},Mt.prototype.canSelectAll=function(){return this.diagram.allowSelect},Mt.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 qt,E=a.selection.iterator;E.next();)Bf(y,E.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(b){return b.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},Mt.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Mt.prototype.copySelection=function(){var a=this.diagram,y=new qt;for(a=a.selection.iterator;a.next();)Bf(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(E){return E.canCopy()});this.copyToClipboard(y)},Mt.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Mt.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Mt.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Mt.prototype.copyToClipboard=function(a){var y=this.diagram,E=null;if(a===null)of=null,Th="";else{E=y.model;var b=!1,x=!1,z=null;try{E.Tl()&&(b=E.Jj,E.Jj=this.copiesParentKey),E.Wj()&&(x=E.Ij,E.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{E.Tl()&&(E.Jj=b),E.Wj()&&(E.Ij=x),E=new Ar,E.addAll(z),of=E,Th=y.model.dataFormat}}y.R("ClipboardChanged",E)},Mt.prototype.pasteFromClipboard=function(){var a=new qt,y=of;if(y===null)return a;var E=this.diagram;if(Th!==E.model.dataFormat)return a;var b=E.model,x=!1,z=!1,ne=null;try{b.Tl()&&(x=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(z=b.Ij,b.Ij=this.copiesGroupKey),ne=E.Kj(y,E,!1)}finally{for(b.Tl()&&(b.Jj=x),b.Wj()&&(b.Ij=z),y=ne.iterator;y.next();)E=y.value,b=y.key,E.location.w()||(b.location.w()?E.location=b.location:!E.position.w()&&b.position.w()&&(E.position=b.position)),a.add(E)}return a},Mt.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var E=this.pasteFromClipboard();0<E.count&&y.clearSelection(!0);for(var b=E.iterator;b.next();)b.value.isSelected=!0;if(a!==null){var x=y.computePartsBounds(y.selection);if(x.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);pl(y,z,new xt(a.x-x.centerX,a.y-x.centerY),y.Wm,!1)}}y.R("ClipboardPasted",E)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Mt.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||of===null||of.count===0||Th!==a.model.dataFormat)},Mt.prototype.undo=function(){this.diagram.undoManager.undo()},Mt.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Mt.prototype.redo=function(){this.diagram.undoManager.redo()},Mt.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Mt.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===tc&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Mt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==tc?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Mt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===tc&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Mt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==tc?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Mt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Mt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Mt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var E=a.position,b=a.scale;Ha(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&b===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=pa):(this.Jt=b,this.sw=E.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),wa(y)},Mt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Mt.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(ue){this.cg=null}a===null&&(0<y.highlighteds.count?this.cg=y.highlighteds.iterator:0<y.selection.count&&(this.cg=y.selection.iterator),this.cg!==null&&this.cg.next()&&(a=this.cg.value))}if(a!==null){var E=y.animationManager;Ha(E,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var x=$t(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 ue=x.pop();0<x.length&&ue instanceof qr&&ue.isTreeExpanded&&(!(ue instanceof Fo)||ue.isSubGraphExpanded);)ue=x.pop();0<x.length?(ue instanceof Wi&&y.tv(ue.actualBounds),ue instanceof qr&&!ue.isTreeExpanded&&(ue.isTreeExpanded=!0),ue instanceof Fo&&!ue.isSubGraphExpanded&&(ue.isSubGraphExpanded=!0)):(ue instanceof Wi&&y.es(ue.actualBounds),y.am("LayoutCompleted",ne)),y.eb("Scroll To Part")},ne=function(){_i(z,(E.isEnabled?E.duration:0)+b)};y.Bj("LayoutCompleted",ne),z()}}else{var oe=y.position.copy();y.es(a.actualBounds),oe.Xa(y.position)&&E.Cc()}}};function $t(a,y,E){if(y.isVisible())return E;if(y instanceof Xa)$t(a,y.adornedPart,E);else if(y instanceof Fr){var b=y.fromNode;b!==null&&$t(a,b,E),y=y.toNode,y!==null&&$t(a,y,E)}else y instanceof qr&&(b=y.labeledLink,b!==null&&$t(a,b,E),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||E.push(b),$t(a,b,E))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||E.push(y),$t(a,y,E));return E}Mt.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Wi)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},Mt.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Ha(y.animationManager,"Collapse Tree");var E=new Ar;if(a!==null&&a.isTreeExpanded)a.collapseTree(),E.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var x=b.value;x instanceof qr&&x.isTreeExpanded&&(x.collapseTree(),E.add(x))}y.R("TreeCollapsed",E)}finally{y.eb("Collapse Tree")}},Mt.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},Mt.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Ha(y.animationManager,"Expand Tree");var E=new Ar;if(a!==null&&!a.isTreeExpanded)a.expandTree(),E.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var x=b.value;x instanceof qr&&!x.isTreeExpanded&&(x.expandTree(),E.add(x))}y.R("TreeExpanded",E)}finally{y.eb("Expand Tree")}},Mt.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},Mt.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var E=this.archetypeGroupData;if(E!==null){var b=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var x=new Ar,z=a.selection.iterator;z.next();){var ne=z.value;ne.Zc()&&ne.canGroup()&&x.add(ne)}for(var oe=new Ar,ue=x.iterator;ue.next();){var he=ue.value;z=!1;for(var ge=x.iterator;ge.next();)if(he.Td(ge.value)){z=!0;break}z||oe.add(he)}if(0<oe.count){var Ee=oe.first().containingGroup;if(Ee!==null)for(;Ee!==null;){x=!1;for(var ke=oe.iterator;ke.next();)if(!ke.value.Td(Ee)){x=!0;break}if(x)Ee=Ee.containingGroup;else break}if(E instanceof Fo)Od(E),b=E.copy(),b!==null&&a.add(b);else if(y.Yu(E)){var Ve=y.copyNodeData(E);wr(Ve)&&(y.xf(Ve),b=a.ii(Ve))}if(b!==null){Ee!==null&&this.isValidMember(Ee,b)&&(b.containingGroup=Ee);for(var Ze=oe.iterator;Ze.next();){var st=Ze.value;this.isValidMember(b,st)&&(st.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},Mt.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 Jn(a){var y=Oi();for(a=a.iterator;a.next();){var E=a.value;E instanceof Fr||y.push(E)}a=new qt,E=y.length;for(var b=0;b<E;b++){for(var x=y[b],z=!0,ne=0;ne<E;ne++)if(x.Td(y[ne])){z=!1;break}z&&a.add(x)}return Yi(y),a}Mt.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Fr)return!1;if(a!==null){if(a===y||a.Td(y))return!1;var E=a.memberValidation;if(E!==null&&!E(a,y)||a.data===null&&y.data!==null||a.data!==null&&y.data===null)return!1}return E=this.memberValidation,E!==null?E(a,y):!0},Mt.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,E=y.model;if(E.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var b=new Ar;if(a!==null)b.add(a);else for(var x=y.selection.iterator;x.next();){var z=x.value;z instanceof Fo&&z.canUngroup()&&b.add(z)}var ne=new Ar;if(0<b.count){y.clearSelection(!0);for(var oe=b.iterator;oe.next();){var ue=oe.value;ue.expandSubGraph();var he=ue.containingGroup,ge=he!==null&&he.data!==null?E.wa(he.data):void 0;ne.addAll(ue.memberParts);for(var Ee=ne.iterator;Ee.next();){var ke=Ee.value;if(ke.isSelected=!0,!(ke instanceof Fr)){var Ve=ke.data;Ve!==null?E.mp(Ve,ge):ke.containingGroup=he}}y.remove(ue)}}y.R("SelectionUngrouped",b,ne)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Mt.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 Fo))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Fo&&y.canUngroup())return!0;return!1},Mt.prototype.addTopLevelParts=function(a,y){var E=!0;for(a=Jn(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:E=!1)}return E},Mt.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Ha(y.animationManager,"Collapse SubGraph");var E=new Ar;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),E.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var x=b.value;x instanceof Fo&&x.isSubGraphExpanded&&(x.collapseSubGraph(),E.add(x))}y.R("SubGraphCollapsed",E)}finally{y.eb("Collapse SubGraph")}},Mt.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Fo&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Fo&&y.isSubGraphExpanded)return!0;return!1},Mt.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Ha(y.animationManager,"Expand SubGraph");var E=new Ar;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),E.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var x=b.value;x instanceof Fo&&!x.isSubGraphExpanded&&(x.expandSubGraph(),E.add(x))}y.R("SubGraphExpanded",E)}finally{y.eb("Expand SubGraph")}},Mt.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Fo&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Fo&&!y.isSubGraphExpanded)return!0;return!1},Mt.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,E=y.toolManager.findTool("TextEditing");if(E!==null){if(a===null){a=null;for(var b=y.selection.iterator;b.next();){var x=b.value;if(x.canEdit()){a=x;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof Us&&z.editable})}a!==null&&(y.currentTool=null,E.textBlock=a,y.currentTool=E)}},Mt.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 Us))return!1;if(a=a.part,a!==null&&a.canEdit())return!0}else for(y=y.selection.iterator;y.next();)if(a=y.value,a.canEdit()&&(a=a.Nl(function(E){return E instanceof Us&&E.editable}),a!==null))return!0;return!1},Mt.prototype.showContextMenu=function(a){var y=this.diagram,E=y.toolManager.findTool("ContextMenu");if(E!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=E.findObjectWithContextMenu(a),a!==null)){var b=y.lastInput,x=null;a instanceof pn?x=a.ga(la):y.viewportBounds.ca(b.documentPoint)||(x=y.viewportBounds,x=new xt(x.x+x.width/2,x.y+x.height/2)),x!==null&&(b.viewPoint=y.op(x),b.documentPoint=x,b.left=!1,b.right=!0,b.up=!0),y.currentTool=E,br(E,!1,a)}},Mt.prototype.canShowContextMenu=function(a){var y=this.diagram,E=y.toolManager.findTool("ContextMenu");return E===null?!1:(a===void 0&&(a=0<y.selection.count?y.selection.first():y),E.findObjectWithContextMenu(a)!==null)},Mt.prototype.computeEffectiveCollection=function(a,y){var E=this.diagram,b=E.toolManager.findTool("Dragging"),x=E.currentTool===b;if(y===void 0&&(y=x?b.dragOptions:E.Wm),b=new xr,a===null)return b;for(var z=a.iterator;z.next();)Xc(E,b,z.value,x,y);if(E.draggedLink!==null&&y.dragsLink)return b;for(z=a.iterator;z.next();)a=z.value,a instanceof Fr&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},tr.Object.defineProperties(Mt.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||Pn("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}}}),Mt.className="CommandHandler",fl=function(){return new Mt};function pn(){At(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new xt(NaN,NaN).freeze(),this.jd=sa,this.Ab=new No,this.wh=new No,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Gs,this.uc=new Un(NaN,NaN,NaN,NaN).freeze(),this.Ib=new Un(NaN,NaN,NaN,NaN).freeze(),this.dc=new Un(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=yl,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 Lr,Sr,wi,ki,oo,Mo,Na,Jo,Ra,Es;pn.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=Jr(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},pn.prototype.Vw=function(a){var y=this.Dh;if(Gi(y)){for(var E=0;E<y.length;E++)if(y[E]===a)return}else this.Dh=y=[];y.push(a)},pn.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},pn.prototype.clone=function(){var a=new this.constructor;if(this.cloneProtected(a),this.Dh!==null)for(var y=0;y<this.Dh.length;y++){var E=this.Dh[y];a[E]=this[E]}return a},pn.prototype.copy=function(){return this.clone()},We=pn.prototype,We.qb=function(a){a.classType===Fr?a.name.indexOf("Orient")===0?this.segmentOrientation=a:Pn("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===pn&&(this.stretch=a)},We.toString=function(){return uo(this.constructor)+"#"+Qt(this)},We.th=function(){this.A!==null&&(this.A.nc=!0)};function $o(a){a.A===null?a.A=new So:a.A.nc&&(a.A=a.A.copy())}We.Xc=function(){if(this.ba===null){var a=new Ho;a.Xi=zs,a.yj=zs,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},We.cb=function(a,y,E,b,x,z,ne){var oe=this.part;if(oe!==null&&(oe.gk(a,y,E,b,x,z,ne),E===this&&a===ys&&Ne(this)&&Ys(this,oe,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 xr),ne=z.undoManager.transactionLevel===0,a.startCondition===qi?ne=!0:a.startCondition===eo&&(ne=!1),ne?(z=new Wo,Rs(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,b,x),z.start()):(Ha(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,b,x)))),this instanceof kr&&E===oe&&(oe.l&16777216)!==0&&oe.data!==null))for(E=this.O.s,b=E.length,x=0;x<b;x++)oe=E[x],oe instanceof kr&&sp(oe,function(ue){ue.data!==null&&ue.l&16777216&&ue.La(y)})};function Ys(a,y,E){var b=a.ih();if(b!==null)for(var x=a.localBindings.iterator;x.next();){var z=x.value,ne=null;if(z.sourceName!==null){if(ne=kE(z,b,a),ne===null)continue;z.sp(a,ne,E,null)}else if(z.isToModel){var oe=y.diagram;oe===null||oe.skipsModelSourceBindings||z.sp(a,oe.model.modelData,E,b)}else{if(oe=b.data,oe===null)continue;var ue=y.diagram;ue===null||ue.skipsModelSourceBindings||z.sp(a,oe,E,b)}ne===a&&(oe=b.ks(z.Ai),oe!==null&&z.Mv(oe,ne,E))}}We.ks=function(a){return this.bindingId===a?this:null},We.g=function(a,y,E){this.cb(ys,a,this,y,E)},We.Ge=function(a,y,E,b){var x=this.uc;if(x.h(a,y,E,b),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new No);var z=this.Lb;z.reset(),this.no(z,a,y,E,b),z.pp(x)}};function ou(a,y,E,b){return a.pickable===!1?!1:(b.multiply(a.transform),E?a.Yc(y,b):a.fh(y,b))}We.tx=function(a,y,E){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),E?Tr(a.x,a.y,0,0,0,b.height)<=y||Tr(a.x,a.y,0,b.height,b.width,b.height)<=y||Tr(a.x,a.y,b.width,b.height,b.width,0)<=y||Tr(a.x,a.y,b.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,b.height)<=y&&a.zd(b.width,0)<=y&&a.zd(b.width,b.height)<=y},We.se=function(){return!0},We.ca=function(a){var y=xt.alloc();y.assign(a),this.transform.Ga(y);var E=this.actualBounds;if(!E.w())return xt.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var x=b.Ql("extraTouchThreshold"),z=b.Ql("extraTouchArea"),ne=z/2,oe=this.naturalBounds;b=this.Df()*b.scale;var ue=1/b;if(oe.width*b<x&&oe.height*b<x)return a=vs(E.x-ne*ue,E.y-ne*ue,E.width+z*ue,E.height+z*ue,y.x,y.y),xt.free(y),a}return x=!1,(this instanceof Xa||this instanceof Zo?vs(E.x-5,E.y-5,E.width+10,E.height+10,y.x,y.y):E.ca(y))&&(this.tb&&!this.tb.ca(y)?x=!1:this.areaBackground!==null&&E.ca(y)||this.Ma!==null&&this.dc.ca(a)?x=!0:x=this.gh(a)),xt.free(y),x},We.gh=function(a){var y=this.naturalBounds;return vs(0,0,y.width,y.height,a.x,a.y)},We.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=Un.allocAt(0,0,y.width,y.height);var E=this.transform,b=!1,x=xt.allocAt(a.x,a.y);return y.ca(E.Cd(x))&&(x.h(a.x,a.bottom),y.ca(E.Cd(x))&&(x.h(a.right,a.bottom),y.ca(E.Cd(x))&&(x.h(a.right,a.y),y.ca(E.Cd(x))&&(b=!0)))),xt.free(x),Un.free(y),b},We.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var E=this.naturalBounds,b=!1,x=xt.allocAt(0,0);return a.ca(y.Ga(x))&&(x.h(0,E.height),a.ca(y.Ga(x))&&(x.h(E.width,E.height),a.ca(y.Ga(x))&&(x.h(E.width,0),a.ca(y.Ga(x))&&(b=!0)))),xt.free(x),b},We.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var E=this.naturalBounds,b=xt.allocAt(0,0),x=xt.allocAt(0,E.height),z=xt.allocAt(E.width,E.height),ne=xt.allocAt(E.width,0),oe=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(x))||a.ca(y.Ga(z))||a.ca(y.Ga(ne)))oe=!0;else{E=Un.allocAt(0,0,E.width,E.height);var ue=xt.allocAt(a.x,a.y);E.ca(y.Cd(ue))?oe=!0:(ue.h(a.x,a.bottom),E.ca(y.Cd(ue))?oe=!0:(ue.h(a.right,a.bottom),E.ca(y.Cd(ue))?oe=!0:(ue.h(a.right,a.y),E.ca(y.Cd(ue))&&(oe=!0)))),xt.free(ue),Un.free(E),!oe&&(gn.us(a,b,x)||gn.us(a,x,z)||gn.us(a,z,ne)||gn.us(a,ne,b))&&(oe=!0)}return xt.free(b),xt.free(x),xt.free(z),xt.free(ne),oe},We.ga=function(a,y){if(y===void 0&&(y=new xt),a instanceof ci){var E=this.naturalBounds;y.h(a.x*E.width+a.offsetX,a.y*E.height+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},We.mi=function(a){a===void 0&&(a=new Un);var y=this.naturalBounds,E=this.oe,b=xt.allocAt(0,0).transform(E);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(E),Wa(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(E),Wa(a,b.x,b.y,0,0),b.h(0,y.height).transform(E),Wa(a,b.x,b.y,0,0),xt.free(b),a},We.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},We.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},We.qs=function(a,y){return y===void 0&&(y=new xt),y.assign(a),this.oe.Cd(y),y},We.rs=function(a,y,E){return this.Sj(a.x,a.y,y.x,y.y,E)},We.Sj=function(a,y,E,b,x){var z=this.transform,ne=1/(z.m11*z.m22-z.m12*z.m21),oe=z.m22*ne,ue=-z.m12*ne,he=-z.m21*ne,ge=z.m11*ne,Ee=ne*(z.m21*z.dy-z.m22*z.dx),ke=ne*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,gn.Ff(z.left,z.top,z.right,z.bottom,a,y,E,b,x)):(ne=a*oe+y*he+Ee,a=a*ue+y*ge+ke,y=E*oe+b*he+Ee,E=E*ue+b*ge+ke,x.h(0,0),b=this.naturalBounds,E=gn.Ff(0,0,b.width,b.height,ne,a,y,E,x),x.transform(z),E)},pn.prototype.measure=function(a,y,E,b){if(Ht(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),E=Math.max((E||0)-z,0),b=Math.max((b||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=E||0,ne=b||0;var oe=this instanceof kr;switch(vc(this,!0)){case Sr:ne=x=0,oe&&(y=a=1/0);break;case Lr:isFinite(a)&&a>E&&(x=a),isFinite(y)&&y>b&&(ne=y);break;case ki:isFinite(a)&&a>E&&(x=a),ne=0,oe&&(y=1/0);break;case oo:isFinite(y)&&y>b&&(ne=y),x=0,oe&&(a=1/0)}oe=this.maxSize;var ue=this.minSize;x>oe.width&&ue.width<oe.width&&(x=oe.width),ne>oe.height&&ue.height<oe.height&&(ne=oe.height),E=Math.max(x,ue.width),b=Math.max(ne,ue.height),oe.width<E&&(E=Math.min(ue.width,E)),oe.height<b&&(b=Math.min(ue.height,b)),a=Math.min(oe.width,a),y=Math.min(oe.height,y),a=Math.max(E,a),y=Math.max(b,y),(z===90||z===270)&&(z=a,a=y,y=z,z=E,E=b,b=z),this.uc.ka(),this.Wl(a,y,E,b),this.uc.freeze(),this.uc.w()||Pn("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Bt(this,!1)}},pn.prototype.Wl=function(){},pn.prototype.Dd=function(){return!1},pn.prototype.arrange=function(a,y,E,b,x){this.Uk();var z=Un.alloc();z.assign(this.Ib),this.Ib.ka(),Xt(this)===!1?this.Ib.h(a,y,E,b):this.eh(a,y,E,b),this.Ib.freeze(),x===void 0?this.tb=null:this.tb=x,E=!1,x!==void 0?E=!0:(x=this.panel,x!==null&&uf(x)&&(x=x.panel),x!==null&&(x=x.dc,b=this.measuredBounds,this.areaBackground!==null&&(b=this.Ib),E=y+b.height,b=a+b.width,E=!(0<=a+.05&&b<=x.width+.05&&0<=y+.05&&E<=x.height+.05),this instanceof Us&&(a=this.naturalBounds,this.Lq>a.height||this.Cb>a.width))&&(E=!0)),this.l=E?this.l|256:this.l&-257,this.Ib.w()||Pn("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),rn(this,!1),Un.free(z)},We=pn.prototype,We.eh=function(){};function nc(a,y,E,b,x){if(a.Ib.h(y,E,b,x),!a.desiredSize.w()){var z=a.uc;E=a.Kg,y=E.right+E.left;var ne=E.top+E.bottom;switch(E=z.width+y,z=z.height+ne,b+=y,x+=ne,y=vc(a,!0),E===b&&z===x&&(y=Sr),y){case Sr:(E>b||z>x)&&(Bt(a,!0),a.measure(E>b?b:E,z>x?x:z,0,0));break;case Lr:Bt(a,!0),a.measure(b,x,0,0);break;case ki:Bt(a,!0),a.measure(b,z,0,0);break;case oo:Bt(a,!0),a.measure(E,x,0,0)}}}We.Xl=function(a,y){var E=this.part;E!==null&&E.diagram!==null&&(E.selectionObject!==this&&E.resizeObject!==this&&E.rotateObject!==this||Jv(E,!0),this.N(),_a(a,y)||(E.oh(),this.Pn(E)))},We.Pn=function(a){this.portId!==null&&(Jv(a,!0),a instanceof qr&&ZS(a,this))},We.gc=function(a,y){if(!Jc(this,a,y)&&this.visible){var E=this.opacity;if(E!==0){var b=1;E!==1&&(b=a.globalAlpha,a.globalAlpha=b*E);var x="";this.filter!==""&&(x=a.filter,a.filter=this.filter);var z=this instanceof kr&&uf(this),ne=this.Ib;if(z){var oe=this.Ib,ue=this.dc,he=this.areaBackground,ge=this.Ma;he===null&&ge===null||a.yc(),he!==null&&(xl(this,a,he,!0,!0,ue,oe),he instanceof Ya&&he.type===Cd?(a.beginPath(),a.rect(oe.x,oe.y,oe.width,oe.height),a.ng(he)):a.fillRect(oe.x,oe.y,oe.width,oe.height)),ge!==null&&(xl(this,a,ge,!0,!1,ue,oe),ge instanceof Ya&&ge.type===Cd?(a.beginPath(),a.rect(oe.x,oe.y,oe.width,oe.height),a.ng(ge)):a.fillRect(oe.x,oe.y,oe.width,oe.height)),this.hh(a,y)}if(!z&&(z||ne.width!==0&&ne.height!==0&&!isNaN(ne.x)&&!isNaN(ne.y))){z=this.transform,oe=this.panel,this.l&4096&&Eu(this),he=this.part,ue=!1;var Ee=0;he&&y.Gf("drawShadows")&&(ue=he.isShadowed)&&(ge=he.shadowOffset,Ee=Math.max(ge.y,ge.x)*y.scale*y.Mb),ge=this.Dd();var ke;if(!(ke=y.$i||!ge)){var Ve=this.naturalBounds;ke=this.wh;var Ze=ke.m11,st=ke.m21,Ot=ke.dx,Pt=ke.m12,zt=ke.m22,Kt=ke.dy,Jt,dn=Jt=0;ke=Jt*Ze+dn*st+Ot;var kn=Jt*Pt+dn*zt+Kt;Jt=Ve.width+Ee,dn=0;var Xr=Jt*Ze+dn*st+Ot;Jt=Jt*Pt+dn*zt+Kt,dn=Math.min(ke,Xr);var Ei=Math.min(kn,Jt),fi=Math.max(ke+0,Xr)-dn,Dr=Math.max(kn+0,Jt)-Ei;ke=dn,kn=Ei,Jt=Ve.width+Ee,dn=Ve.height+Ee,Xr=Jt*Ze+dn*st+Ot,Jt=Jt*Pt+dn*zt+Kt,dn=Math.min(ke,Xr),Ei=Math.min(kn,Jt),fi=Math.max(ke+fi,Xr)-dn,Dr=Math.max(kn+Dr,Jt)-Ei,ke=dn,kn=Ei,Jt=0,dn=Ve.height+Ee,Xr=Jt*Ze+dn*st+Ot,Jt=Jt*Pt+dn*zt+Kt,dn=Math.min(ke,Xr),Ei=Math.min(kn,Jt),fi=Math.max(ke+fi,Xr)-dn,Dr=Math.max(kn+Dr,Jt)-Ei,ke=dn,kn=Ei,Ee=y.viewportBounds,Ve=Ee.x,Ze=Ee.y,ke=!(ke>Ee.width+Ve||Ve>fi+ke||kn>Ee.height+Ze||Ze>Dr+kn)}if(ke){if(ke=(this.l&256)!==0,a.clipInsteadOfFill&&(ke=!1),this instanceof Us&&(a.font=this.font),ke){if(kn=oe.se()?oe.naturalBounds:oe.actualBounds,fi=Math.max(ne.x,kn.x),Dr=Math.max(ne.y,kn.y),Ee=Math.min(ne.right,kn.right)-fi,Ve=Math.min(ne.bottom,kn.bottom)-Dr,Ze=this.tb,Ze!==null&&(fi=Ze.x,Dr=Ze.y,Ee=Ze.width,Ve=Ze.height),fi>ne.width+ne.x||ne.x>kn.width+kn.x){E!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=x);return}a.save(),a.beginPath(),a.rect(fi,Dr,Ee,Ve),a.clip()}if(ge){if(!he.isVisible()){E!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=x);return}ue&&(kn=he.shadowOffset,a.Ev(kn.x*y.scale*this.scale*y.Mb,kn.y*y.scale*this.scale*y.Mb,he.shadowBlur),ku(a),a.shadowColor=he.shadowColor)}ue&&this.shadowVisible===!0?ku(a):ue&&this.shadowVisible===!1&&yc(a),he=this.naturalBounds,this.areaBackground!==null&&(a.yc(),Qc(this,a,he,ne)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),ue&&Su(this,oe)&&this.shadowVisible===null&&yc(a),this.Ma!==null&&(a.yc(),Ac(this,a,he,ne)),ue&&(this.Ma!==null||this.areaBackground!==null||Su(this,oe))?(vd(this,!0),this.shadowVisible===null&&yc(a)):vd(this,!1),this.hh(a,y),ue&&this.l&512&&ku(a),ge&&ue&&yc(a),ke&&(a.restore(),a.Vc(this instanceof kr)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}E!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=x)}}};function Su(a,y){return y===null?!1:(uf(y)&&(y=y.panel),(y.l&512)!==0||(y.type===kr.Auto||y.type===kr.Spot)&&y.Pb()!==a)}We.Dv=function(){};function Qc(a,y,E,b){xl(a,y,a.areaBackground,!0,!0,E,b),a.areaBackground instanceof Ya&&a.areaBackground.type===Cd?(y.beginPath(),y.rect(b.x,b.y,b.width,b.height),y.ng(a.areaBackground)):y.fillRect(b.x,b.y,b.width,b.height)}function Ac(a,y,E,b){var x=a.kq(),z=E.x,ne=E.y,oe=E.width+x,ue=E.height+x;xl(a,y,a.Ma,!0,!1,E,b),a.Ma instanceof Ya&&a.Ma.type===Cd?(y.beginPath(),y.rect(z-x/2,ne-x/2,oe,ue),y.ng(a.Ma)):y.fillRect(z-x/2,ne-x/2,oe,ue)}function Yu(a,y,E){for(var b=y.O.s,x=b.length,z=-1,ne=0;ne<x;ne++)if(b[ne]===a){z=ne;break}if(a=z,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(E):y.svg.Ma?y.svg.Ma.after(E):y.type===kr.Table?(y=y.svg.getElementsByClassName("gojs-ts"),y=y.length!==0?y[0]:null,y!==null&&y.after(E)):y.svg.prepend(E);else{for(;a!==0&&!y.M(a-1).Ed();)a--;a===0?y.svg.prepend(E):(a=y.M(a-1).svg,a!==null?a.after(E):y.svg.appendChild(E))}}function Jc(a,y,E){if(!(y instanceof ps))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 b=a.panel,x=a.nk(y);if(a.kk(y,E,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):b&&Yu(a,b,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*E.scale*a.scale*E.Mb,z.y*E.scale*a.scale*E.Mb,a.shadowBlur),ku(y),y.shadowColor=a.shadowColor}a instanceof Us&&(y.font=a.font),y.yd=null;var ne=a.transform;z=a instanceof kr;var oe=a instanceof kr?uf(a):!1;a.l&4096&&Eu(a);var ue=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,x&&(y.o=!0,z&&oe?(wd(y,1,0,0,1,0,0),a.svg=y.ad):z?(wd(y,ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy),a.svg=y.ad):wd(y,1,0,0,1,0,0)),x=a.naturalBounds,a.areaBackground!==null){var he=ne.copy().Vj();y.rb.ha=[he.m11,he.m12,he.m21,he.m22,he.dx,he.dy],Qc(a,y,x,ue),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?(oe&&(y.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy]),Ac(a,y,x,ue),oe&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy],Ac(a,y,x,ue)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),ne=y.yd,x=a.part,oe=!1,x&&E.Gf("drawShadows")&&(oe=x.isShadowed),y.clipInsteadOfFill&&(oe=!1),a.Dd()&&oe&&ku(y),oe&&a.shadowVisible===!0?ku(y):oe&&a.shadowVisible===!1&&yc(y),x=a.panel,oe&&Su(a,x)&&a.shadowVisible===null&&yc(y),y.Il&&(he=E.computePixelRatio(),he="drop-shadow("+y.shadowOffsetX/he+"px "+y.shadowOffsetY/he+"px "+y.shadowBlur/he/2+"px "+y.shadowColor+")",a.background!==null&&ne.Ma.setAttributeNS(null,"filter",he),a.areaBackground!==null&&ne.gd.setAttributeNS(null,"filter",he)),oe&&(a.Ma!==null||a.areaBackground!==null||Su(a,x))?(vd(a,!0),a.shadowVisible===null&&yc(y)):vd(a,!1),x=oe,a.hh(y,E),z&&y.nh.pop(),y.o&&y.nh.pop(),ne=y.Gv.hs,oe=z?a.svg:y.yd,he=a.svg,!z&&he!==null&&oe!==he&&he.parentNode===a.panel.svg?(a.svg.replaceWith(oe),a.svg=oe,oe!==null&&a.$o(y,b,ue,oe),mc(y,he),!0):(a.svg=oe,ne!==null&&oe===null&&(yd(y),y.nh.pop()),oe===null||(a.$o(y,b,ue,oe),y.Il&&(E=E.computePixelRatio(),a.Dv(oe,"drop-shadow("+y.shadowOffsetX/E+"px "+y.shadowOffsetY/E+"px "+y.shadowBlur/E/2+"px "+y.shadowColor+")")),x&&a.l&512&&ku(y),a.Dd()&&yc(y),E=a.Dd()?a.opacity*y.globalAlpha:a.opacity,E!==1&&oe.setAttributeNS(null,"opacity",E.toString()),a.filter!==""&&oe.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(oe):y.Nj.prepend(oe),y.ti=oe):b!==null&&Yu(a,b,oe),ne!==null&&ne(a,oe)),!0)}We.$o=function(a,y,E,b){var x=(this.l&256)!==0;if(a.clipInsteadOfFill&&(x=!1),x){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(E.x,z.x),x=Math.max(E.y,z.y);var ne=Math.min(E.right,z.right)-y;E=Math.min(E.bottom,z.bottom)-x,z=this.tb,z!==null&&(y=z.x,x=z.y,ne=z.width,E=z.height),z=b.getAttribute("clip-path");var oe=null;z!==null&&(oe=a.svg.getElementById(z.split("#")[1].slice(0,-1))),oe===null?(z="CLIP"+ln++,oe=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:x,width:ne,height:E}),this instanceof kr&&(x=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+x.m11+", "+x.m12+", "+x.m21+", "+x.m22+", "+x.dx+", "+x.dy+")")),oe.appendChild(y),a.svg.appendChild(oe),b.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=oe.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",x.toString()),a.setAttribute("width",ne.toString()),a.setAttribute("height",E.toString()))}else b.removeAttributeNS(null,"clip-path"),mc(a,b)};function mc(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Zu(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),E=a.svg.ownerDocument;if(y!==null){y=ur(y);for(var b=y.next();!b.done;b=y.next())b=E.getElementById(b.value.split("#")[1].slice(0,-1)),b!==null&&b.remove()}a.svg.remove()}}We.hh=function(){},We.lv=function(){this.Uc=!0},We.kk=function(a,y,E){if(this.Uc)return this.lv(),this.Uc=!1;if(y=this.svg,y===null)return!1;if(!this.visible)return y.remove(),!1;if(y.nodeName!=="g"&&E||y.nodeName==="g"&&!E)return!1;var b=this.transform,x=this instanceof kr?uf(this):!1;if(!(this instanceof kr&&x))if(this instanceof Vc){var z=this.bt;a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy],z!==null&&Ll(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),E?y.lastElementChild.setAttributeNS(null,"transform",Xu(a)):y.setAttributeNS(null,"transform",Xu(a))}else if(!E||this instanceof kr)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof Zo){z=y.getElementsByTagName("path");for(var ne=0;ne<z.length;ne++)z[ne].setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.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=b.copy().Vj(),a.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy],Qc(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&&mh(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(mh(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((x||E&&!(this instanceof kr))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),Ac(this,a,this.naturalBounds,this.actualBounds),y.Ma?(mh(a,y.Ma),E=y.Ma.getAttribute("filter"),E!==null&&a.ad.setAttribute("filter",E),y.Ma.replaceWith(a.ad)):y.prepend(a.ad),y.Ma=a.ad),z&&mh(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},We.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 xl(a,y,E,b,x,z,ne){if(E!==null){var oe=1,ue=1;if(typeof E=="string")b?y.fillStyle=E:y.strokeStyle=E;else if(E.type===lf)b?y.fillStyle=E.color:y.strokeStyle=E.color;else{var he=a.kq();if(oe=z.width,ue=z.height,x?(oe=ne.width,ue=ne.height):b||(oe+=he,ue+=he),(z=y instanceof nh)&&E.xe&&(E.type===cg||E.yk===oe&&E.ft===ue))var ge=E.xe;else{var Ee=0,ke=0,Ve=0,Ze=0,st=0,Ot=0;if(Ot=st=0,x?(st=ne.x,Ot=ne.y):b||(st-=he/2,Ot-=he/2),Ee=E.start.x*oe+E.start.offsetX,ke=E.start.y*ue+E.start.offsetY,Ve=E.end.x*oe+E.end.offsetX,Ze=E.end.y*ue+E.end.offsetY,Ee+=st,Ve+=st,ke+=Ot,Ze+=Ot,E.type===Zh)ge=y.createLinearGradient(Ee,ke,Ve,Ze);else if(E.type===Cd)Ot=isNaN(E.endRadius)?Math.max(oe,ue)/2:E.endRadius,isNaN(E.startRadius)?(st=0,Ot=Math.max(oe,ue)/2):st=E.startRadius,ge=y.createRadialGradient(Ee,ke,st,Ve,Ze,Ot);else if(E.type===cg)try{ge=y.createPattern(E.pattern,"repeat")}catch(zt){ge=null}if(E.type!==cg&&(x=E.colorStops,x!==null))for(x=x.iterator;x.next();)ge.addColorStop(x.key,x.value);if(z&&(E.xe=ge,ge!==null&&(E.yk=oe,E.ft=ue),ge===null&&E.type===cg&&E.yk!==-1)){E.yk=-1;var Pt=a.diagram;Pt!==null&&E.yk===-1&&_i(function(){Pt.redraw()},600)}}b?y.fillStyle=ge:y.strokeStyle=ge}}}We.rg=function(a){if(a instanceof kr)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},We.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},We.If=function(){for(var a=this instanceof kr?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Eu(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 E=a.naturalBounds;a.no(y,E.x,E.y,E.width,E.height)}Je(a,!1),yt(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,yt(a,!1)):y.oe!==null&&(E=a.wh,E.reset(),y.se()?E.multiply(y.wh):y.panel!==null&&E.multiply(y.panel.wh),E.multiply(a.Ab),a.Kk=a.scale*y.Kk,yt(a,!1)))}We.no=function(a,y,E,b,x){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=xt.alloc();z.yi(y,E,b,x,la),a.rotate(this.Kb,z.x,z.y),xt.free(z)}},We.v=function(a){if(!Ht(this)){a===void 0&&(a=!1),Bt(this,!0),rn(this,!0);var y=this.panel;y===null||a||y.v()}},We.Uj=function(){Ht(this)||(Bt(this,!0),rn(this,!0))};function lc(a){if(!Xt(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())),rn(a,!0)}}We.Uk=function(){!(this.l&2048)&&(Je(this,!0),yt(this,!0))},We.Wu=function(){yt(this,!0)},We.N=function(){var a=this.part;a!==null&&a.N()};function vc(a,y){var E=a.stretch,b=a.panel;return b!==null&&b.type===kr.Table?Rd(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===kr.Auto&&b.Pb()===a?bu(a,Lr,y):E===Mo?b!==null?b.type===kr.Spot&&b.Pb()===a?bu(a,Lr,y):(E=b.defaultStretch,E===Mo?bu(a,Sr,y):bu(a,E,y)):bu(a,Sr,y):bu(a,E,y)}function Rd(a,y,E,b){var x=a.stretch;if(x!==Mo)return bu(a,x,b);var z=x=null;switch(y.stretch){case oo:z=!0;break;case Lr:z=!0}switch(E.stretch){case ki:x=!0;break;case Lr:x=!0}return y=a.panel.defaultStretch,x===null&&(x=y===ki||y===Lr),z===null&&(z=y===oo||y===Lr),x===!0&&z===!0?bu(a,Lr,b):x===!0?bu(a,ki,b):z===!0?bu(a,oo,b):bu(a,Sr,b)}function bu(a,y,E){if(E)return y;if(y===Sr||(E=a.desiredSize,E.w()))return Sr;if(a=a.angle,!isNaN(E.width))if(a!==90&&a!==270){if(y===ki)return Sr;if(y===Lr)return oo}else{if(y===oo)return Sr;if(y===Lr)return ki}if(!isNaN(E.height))if(a!==90&&a!==270){if(y===oo)return Sr;if(y===Lr)return ki}else{if(y===ki)return Sr;if(y===Lr)return oo}return y}function vd(a,y){a.l=y?a.l|512:a.l&-513}function Ne(a){return(a.l&1024)!==0}function Re(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 yt(a,y){a.l=y?a.l|4096:a.l&-4097}function Ht(a){return(a.l&8192)!==0}function Bt(a,y){a.l=y?a.l|8192:a.l&-8193}function Xt(a){return(a.l&16384)!==0}function rn(a,y){a.l=y?a.l|16384:a.l&-16385}We.Gj=function(){this.svg=null},We.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},We.Av=function(){},We.zv=function(a){return this.pa=a,lc(this),!0},We.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},We.kq=function(){return 0};function Gn(a){var y=a.part;if(y instanceof qr&&(a.portId!==null||a===y.port)){var E=y.diagram;E===null||E.undoManager.isUndoingRedoing||ZS(y,a)}}function ar(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof kr?a instanceof qr?a.Bd():a.qm(a,function(E){Gn(E)}):Gn(a))}We.bind=function(a,y,E,b){var x=null;return typeof a=="string"?x=new Yl(a,y,E,b):x=a,x.xd=this,a=this.ih(),a!==null&&mS(a)&&Pn("Cannot add a Binding to a template that has already been copied: "+x),this.localBindings===null&&(this.localBindings=new Ar),this.localBindings.add(x),this},We.set=function(a){return Object.assign(this,a),this},We.Du=function(a){return Zn(this,a),this},We.apply=function(a){return a(this),this},We.nm=function(a){return Jd(this,a),this},We.pz=function(){return this.ih()},We.ih=function(){for(var a=this instanceof kr?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},We.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new xr),this.animationTriggers.add(a.propertyName,a),this};function $n(a,y){for(var E=1;E<arguments.length;++E);E=arguments;var b=null,x=null;if(typeof a=="function")x=a;else if(typeof a=="string"){var z=ei.I(a);typeof z=="function"?(E=Jr(arguments),b=z(E),wr(b)||Pn('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):x=Hn.go[a]}if(b===null&&(x!=null&&x.constructor||Pn("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),b=new x),x=1,b instanceof xn&&1<E.length){z=b;var ne=E[1];(typeof ne=="string"||ne instanceof HTMLDivElement)&&(Qi(z,ne),x++)}for(;x<E.length;x++)z=E[x],z===void 0?Pn("Undefined value at argument "+x+" for object being constructed by GraphObject.make: "+b):Zn(b,z);return b}function Zn(a,y){if(typeof y=="string")if(a instanceof Us)a.text=y;else if(a instanceof Zo)a.figure=y;else if(a instanceof Vc)a.source=y;else if(a instanceof kr)y=zd.I(y),y!==null&&(a.type=y);else if(a instanceof Ya){var E=Co(Ya,y);E!==null?a.type=E:Pn("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Mr?(y=Co(Mr,y),y!==null&&(a.type=y)):a instanceof ua&&(y=Co(ua,y),y!==null&&(a.type=y));else if(y instanceof pn)a instanceof kr||Pn("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof au){var b;y.isRow&&typeof a.getRowDefinition=="function"?b=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(b=a.getColumnDefinition(y.index)),b instanceof au?e0(b,y):Pn("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof Mn)typeof a.qb=="function"&&a.qb(y);else if(y instanceof fu)a.type=y;else if(y instanceof Yl)a instanceof pn||a instanceof au?a.bind(y):Pn("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Ks)a instanceof pn?a.Jv(y):Pn("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof ml)a instanceof Mr&&a.type===Mr.o?a.figures.add(y):Pn("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof ua)a instanceof ml?a.segments.add(y):Pn("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof gl)a instanceof xn||a instanceof Fo?a.layout=y:Pn("A Layout can only be assigned to a Diagram or a Group, not to: "+a);else if(Array.isArray(y))for(E=0;E<y.length;E++)Zn(a,y[E]);else if(typeof y=="object"&&y!==null)if(a instanceof Ya){E=new lo;for(var x in y)b=parseFloat(x),isNaN(b)?E[x]=y[x]:a.addColorStop(b,y[x]);Jd(a,E)}else if(a instanceof au){y.row!==void 0?(x=y.row,(x==null||x===1/0||isNaN(x)||0>x)&&Pn("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)&&Pn("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+x),a.isRow=!1,a.index=x),x=new lo;for(E in y)E!=="row"&&E!=="column"&&(x[E]=y[E]);Jd(a,x)}else Jd(a,y);else Pn('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Yn(a,y){ei.add(a,y)}function yr(a,y,E){E===void 0&&(E=null);var b=a[1];if(typeof E=="function"?E(b):typeof b=="string")return a.splice(1,1),b;if(y===void 0)throw Error("no "+(typeof E=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}tr.Object.defineProperties(pn.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new So),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 So),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 So),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&($o(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&&($o(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Nc},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Ao),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Nc&&(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 Ao),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 Ao),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:Po},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new Ao),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:Mo},set:function(a){var y=this.stretch;y!==a&&($o(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&&($o(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)&&ji(a,"0 <= value <= 1",pn,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(cp(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(cp(y,y.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(a){var y=(this.l&1)!==0;y!==a&&(this.l^=1,this.g("visible",y,a),y=this.panel,y!==null?y.v():this.Dd()&&this.Zb(a),this.N(),ar(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(a){var y=(this.l&2)!==0;y!==a&&(this.l^=2,this.g("pickable",y,a))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(a){var y=(this.l&4)!==0;y!==a&&(this.l^=4,this.g("fromLinkableDuplicates",y,a))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(a){var y=(this.l&8)!==0;y!==a&&(this.l^=8,this.g("fromLinkableSelfNode",y,a))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(a){var y=(this.l&16)!==0;y!==a&&(this.l^=16,this.g("toLinkableDuplicates",y,a))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(a){var y=(this.l&32)!==0;y!==a&&(this.l^=32,this.g("toLinkableSelfNode",y,a))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(a){var y=(this.l&64)!==0;y!==a&&(this.l^=64,this.v(),this.g("isPanelMain",y,a))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(a){var y=(this.l&128)!==0;y!==a&&(this.l^=128,this.g("isActionable",y,a))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(a){var y=this.areaBackground;y!==a&&(a!==null&&Rf(a,"GraphObject.areaBackground"),a instanceof Ya&&a.freeze(),$o(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&&Rf(a,"GraphObject.background"),a instanceof Ya&&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 Wi)return this.Ng=a;a=a.panel}return null}},svg:{get:function(){return this.V},set:function(a){this.V=a}},panel:{get:function(){return this.Me}},layer:{get:function(){var a=this.part;return a!==null?a.layer:null}},diagram:{get:function(){var a=this.part;return a!==null?a.diagram:null}},position:{get:function(){return this.pa},set:function(a){var y=a.x,E=a.y,b=this.pa,x=b.x;b=b.y,(x===y||isNaN(x)&&isNaN(y))&&(b===E||isNaN(b)&&isNaN(E))?this.Av():(a=a.copy(),this.zv(a,x,b)&&this.g("position",new xt(x,b),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&Pn("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,ar(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,E=a.height,b=this.jd,x=b.width,z=b.height;(x===y||isNaN(x)&&isNaN(y))&&(z===E||isNaN(z)&&isNaN(E))||(this.jd=a=a.J(),this.v(),this instanceof Zo&&this.qc(),this.g("desiredSize",b,a),Ne(this)&&(a=this.part,a!==null&&(Ys(this,a,"width"),Ys(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 sn(a,this.jd.height).freeze(),this.v(),this instanceof Zo&&this.qc(),this.g("desiredSize",y,a),Ne(this)&&(a=this.part,a!==null&&Ys(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 sn(this.jd.width,a).freeze(),this.v(),this instanceof Zo&&this.qc(),this.g("desiredSize",y,a),Ne(this)&&(a=this.part,a!==null&&Ys(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:mr},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(),$o(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:_o},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(),$o(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 Bi(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&&Eu(this),this.Ab}},oe:{get:function(){return this.l&4096&&Eu(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&($o(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Sr},set:function(a){this.reshapingBehavior!==a&&($o(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()&&Pn("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),lc(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&&ji(a,">= 0",pn,"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&&ji(a,">= 1",pn,"columnSpan"),$o(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&&ji(a,">= 0",pn,"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&&ji(a,">= 1",pn,"rowSpan"),$o(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&&($o(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var E=this.part;E===null||E instanceof qr||Pn("Cannot set portID on a Link: "+a),y!==null&&E!==null&&ty(E,this),this.Yn=a,a!==null&&E!==null&&(E.Te=!0,JS(E,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:zs},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Gn(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&ji(a,">= 0",pn,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Gn(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),Gn(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&&ji(a,">= 0",pn,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:zs},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Gn(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&ji(a,">= 0",pn,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Gn(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),Gn(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&&ji(a,">= 0",pn,"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&&($o(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&&($o(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&&($o(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&&($o(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&&($o(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&&($o(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&&($o(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&&($o(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&&($o(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&&($o(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&&($o(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&&($o(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&&($o(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&&($o(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&&($o(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&&($o(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&&($o(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&&($o(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),pn.prototype.trigger=pn.prototype.Jv,pn.prototype.findBindingPanel=pn.prototype.ih,pn.prototype.findTemplateBinder=pn.prototype.pz,pn.prototype.setProperties=pn.prototype.nm,pn.prototype.apply=pn.prototype.apply,pn.prototype.attach=pn.prototype.Du,pn.prototype.set=pn.prototype.set,pn.prototype.isEnabledObject=pn.prototype.If,pn.prototype.isVisibleObject=pn.prototype.Ed,pn.prototype.isContainedBy=pn.prototype.rg,pn.prototype.getNearestIntersectionPoint=pn.prototype.rs,pn.prototype.getLocalPoint=pn.prototype.qs,pn.prototype.getDocumentScale=pn.prototype.Df,pn.prototype.getDocumentAngle=pn.prototype.li,pn.prototype.getDocumentBounds=pn.prototype.mi,pn.prototype.getDocumentPoint=pn.prototype.ga,pn.prototype.intersectsRect=pn.prototype.Yc,pn.prototype.containedInRect=pn.prototype.fh,pn.prototype.containsRect=pn.prototype.Re,pn.prototype.containsPoint=pn.prototype.ca,pn.prototype.raiseChanged=pn.prototype.g,pn.prototype.raiseChangedEvent=pn.prototype.cb,pn.prototype.addCopyProperty=pn.prototype.Vw;var ei=null;pn.className="GraphObject",ei=new xr,Yn("Button",function(){function a(E,b){return E.diagram.ic(E.documentPoint,function(x){for(;x.panel!==null&&!x.isActionable;)x=x.panel;return x},function(x){return x===b})!==null}var y=$n(kr,kr.Auto,{isActionable:!0,enabledChanged:function(E,b){if(E instanceof kr){var x=E.fb("ButtonBorder");x!==null&&(x.fill=b?E._buttonFillNormal:E._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},$n(Zo,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new ci(0,0,2.76142374915397,2.761423749153969),spot2:new ci(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(E,b){if(b.If()&&b instanceof kr&&(E=b.fb("ButtonBorder"),E instanceof Zo)){var x=b._buttonFillOver;b._buttonFillNormal=E.fill,E.fill=x,x=b._buttonStrokeOver,b._buttonStrokeNormal=E.stroke,E.stroke=x}},y.mouseLeave=function(E,b){b.If()&&b instanceof kr&&(E=b.fb("ButtonBorder"),E instanceof Zo&&(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal))},y.actionDown=function(E,b){if(b.If()&&b instanceof kr&&b._buttonFillPressed!==null&&E.button===0){var x=b.fb("ButtonBorder");if(x instanceof Zo){E=E.diagram;var z=E.skipsUndoManager;E.skipsUndoManager=!0;var ne=b._buttonFillPressed;b._buttonFillOver=x.fill,x.fill=ne,ne=b._buttonStrokePressed,b._buttonStrokeOver=x.stroke,x.stroke=ne,E.skipsUndoManager=z}}},y.actionUp=function(E,b){if(b.If()&&b instanceof kr&&b._buttonFillPressed!==null&&E.button===0){var x=b.fb("ButtonBorder");if(x instanceof Zo){var z=E.diagram,ne=z.skipsUndoManager;z.skipsUndoManager=!0,a(E,b)?(x.fill=b._buttonFillOver,x.stroke=b._buttonStrokeOver):(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal),z.skipsUndoManager=ne}}},y.actionCancel=function(E,b){if(b.If()&&b instanceof kr&&b._buttonFillPressed!==null){var x=b.fb("ButtonBorder");if(x instanceof Zo){var z=E.diagram,ne=z.skipsUndoManager;z.skipsUndoManager=!0,a(E,b)?(x.fill=b._buttonFillOver,x.stroke=b._buttonStrokeOver):(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal),z.skipsUndoManager=ne}}},y.actionMove=function(E,b){if(b.If()&&b instanceof kr&&b._buttonFillPressed!==null){var x=E.diagram;if(x.firstInput.button===0&&(x.currentTool.standardMouseOver(),a(E,b)&&(E=b.fb("ButtonBorder"),E instanceof Zo))){var z=x.skipsUndoManager;x.skipsUndoManager=!0;var ne=b._buttonFillPressed;E.fill!==ne&&(E.fill=ne),ne=b._buttonStrokePressed,E.stroke!==ne&&(E.stroke=ne),x.skipsUndoManager=z}}},y}),Yn("TreeExpanderButton",function(){var a=$n("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},$n(Zo,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Xi},new Yl("figure","isTreeExpanded",function(y,E){return E=E.panel,y?E._treeExpandedFigure:E._treeCollapsedFigure}).cp()),{visible:!1},new Yl("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,E){if(E=E.part,E instanceof Xa&&(E=E.adornedPart),E instanceof qr){var b=E.diagram;if(b!==null){if(b=b.commandHandler,E.isTreeExpanded){if(!b.canCollapseTree(E))return}else if(!b.canExpandTree(E))return;y.handled=!0,E.isTreeExpanded?b.collapseTree(E):b.expandTree(E)}}},a}),Yn("SubGraphExpanderButton",function(){var a=$n("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},$n(Zo,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Xi},new Yl("figure","isSubGraphExpanded",function(y,E){return E=E.panel,y?E._subGraphExpandedFigure:E._subGraphCollapsedFigure}).cp()));return a.click=function(y,E){if(E=E.part,E instanceof Xa&&(E=E.adornedPart),E instanceof Fo){var b=E.diagram;if(b!==null){if(b=b.commandHandler,E.isSubGraphExpanded){if(!b.canCollapseSubGraph(E))return}else if(!b.canExpandSubGraph(E))return;y.handled=!0,E.isSubGraphExpanded?b.collapseSubGraph(E):b.expandSubGraph(E)}}},a}),Yn("ToolTip",function(){return $n(Xa,kr.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new xt(0,3),shadowBlur:5},$n(Zo,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new ci(0,0,4,6),spot2:new ci(1,1,-4,-4)}))}),Yn("ContextMenu",function(){return $n(Xa,kr.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new xt(0,3),shadowBlur:5},new Yl("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Yn("ContextMenuButton",function(){var a=$n("Button");a.stretch=ki;var y=a.fb("ButtonBorder");return y instanceof Zo&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new ci(0,0,2,3),y.spot2=new ci(1,1,-2,-2)),a}),Yn("PanelExpanderButton",function(a){var y=yr(a,"COLLAPSIBLE"),E=$n("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},$n(Zo,{name:"ButtonIcon",strokeWidth:2},new Yl("geometryString","visible",function(b){return b?E._buttonExpandedFigure:E._buttonCollapsedFigure}).cp(y)));return a=E.fb("ButtonBorder"),a instanceof Zo&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),E.click=function(b,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&&(b.handled=!0,z.Ea("Collapse/Expand Panel"),x.visible=!x.visible,z.eb("Collapse/Expand Panel")))}},E}),Yn("CheckBoxButton",function(a){var y=yr(a);return a=$n("Button",{desiredSize:new sn(14,14)},$n(Zo,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Lr,geometryStretch:wi,visible:!1},y!==""?new Yl("visible",y).Kx():[])),a.click=function(E,b){if(b instanceof kr){var x=E.diagram;if(!(x===null||x.isReadOnly||y!==""&&x.model.isReadOnly)){E.handled=!0;var z=b.fb("ButtonIcon");x.Ea("checkbox"),z.visible=!z.visible,typeof b._doClick=="function"&&b._doClick(E,b),x.eb("checkbox")}}},a}),Yn("CheckBox",function(a){a=yr(a),a=$n("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Bi(0,1,0,0)});var y=$n(kr,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Bi(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}),pn.None=Sr=new Mn(pn,"None",0),pn.Default=Mo=new Mn(pn,"Default",0),pn.Vertical=oo=new Mn(pn,"Vertical",4),pn.Horizontal=ki=new Mn(pn,"Horizontal",5),pn.Fill=Lr=new Mn(pn,"Fill",3),pn.Uniform=wi=new Mn(pn,"Uniform",1),pn.UniformToFill=Na=new Mn(pn,"UniformToFill",2),pn.FlipVertical=Jo=new Mn(pn,"FlipVertical",1),pn.FlipHorizontal=Ra=new Mn(pn,"FlipHorizontal",2),pn.FlipBoth=Es=new Mn(pn,"FlipBoth",3),pn.make=$n,pn.getBuilders=function(){var a=new xr,y;for(y in ei)if(y!==y.toLowerCase()){var E=ei.I(y);typeof E=="function"&&a.add(y,E)}return a.freeze(),a},pn.defineBuilder=Yn,pn.build=function(a,y,E){for(var b=[],x=2;x<arguments.length;++x)b[x-2]=arguments[x];if(x=ei.I(a),typeof x=="function"&&(b=x([a].concat(b)),b instanceof pn))return y&&b.set(y),b;Pn('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},pn.takeBuilderArgument=yr;function So(){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=mr,this.o=_o,this.hg=Mo,this.ob=this.Bi=1,this.Pf=Sr,this.Pc=this.Ci=this.gd=null,this.Oc="category"}So.prototype.copy=function(){var a=new So;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 Ao(){this.u=-1/0,this.o=0,this.F=Po,this.rr=Nc,this.j=this.V="None"}Ao.prototype.copy=function(){var a=new Ao;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},Ao.className="LinkElementSettings";function Ho(){this.yj=this.Xi=yl,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}Ho.prototype.copy=function(){var a=new Ho;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},Ho.className="LinkSettings";function va(){this.ha=[1,0,0,1,0,0]}va.prototype.copy=function(){var a=new va;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},va.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},va.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},va.prototype.rotate=function(a,y,E){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,E),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var x=this.ha[1]*a+this.ha[3]*b,z=this.ha[0]*-b+this.ha[2]*a,ne=this.ha[1]*-b+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*b,this.ha[1]=x,this.ha[2]=z,this.ha[3]=ne,this.translate(-y,-E)}},va.className="STransform";function Fa(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Fa.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Fa.className="SGradient";function ka(a,y,E){this.ownerDocument=a=y===void 0?Hn.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 ps(this,E)}ka.prototype.resize=function(a,y,E,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=E+"px",this.style.height=b+"px",this.Oa.setAttributeNS(null,"width",E+"px"),this.Oa.setAttributeNS(null,"height",b+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+E+" "+b),this.context.ww.firstElementChild.setAttributeNS(null,"width",E+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",b+"px"),!0):!1},ka.prototype.Ud=function(a,y,E){if(a=this.ownerDocument.createElementNS(this.cA,a),wr(y))for(var b in y)a.setAttributeNS(b==="href"?"http://www.w3.org/1999/xlink":"",b,y[b]);return E!==void 0&&(a.textContent=E),a},ka.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},ka.prototype.focus=function(){this.Oa.focus()},ka.prototype.mx=function(){this.ownerDocument=null},tr.Object.defineProperties(ka.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}}}),ka.className="SVGSurface";function ps(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 va,this.j=yd(this),this.Nj=yd(this,"gojs-diagram"),this.Hl=this.ti=null;var E=ln++,b=this.Ud("clipPath",{id:"mainClip"+E});b.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=b,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(b),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+E+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function il(a,y,E,b,x,z,ne){a.Nj===void 0?wd(a,y,E,b,x,z,ne):a.Nj.setAttribute("transform","matrix("+y+", "+E+", "+b+", "+x+", "+z+", "+ne+")")}We=ps.prototype,We.arc=function(a,y,E,b,x,z,ne,oe){var ue=2*Math.PI,he=ue-1e-6,ge=E*Math.cos(b),Ee=E*Math.sin(b),ke=a+ge,Ve=y+Ee,Ze=z?0:1;b=z?b-x:x-b,(1e-6<Math.abs(ne-ke)||1e-6<Math.abs(oe-Ve))&&this.path.push(["L",ke,+Ve]),0>b&&(b=b%ue+ue),b>he?(this.path.push(["A",E,E,0,1,Ze,a-ge,y-Ee]),this.path.push(["A",E,E,0,1,Ze,ke,Ve])):1e-6<b&&this.path.push(["A",E,E,0,+(b>=Math.PI),Ze,a+E*Math.cos(x),y+E*Math.sin(x)])},We.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},We.Se=function(a){this.addPath(this.path,this.rb,a||0)},We.bezierCurveTo=function(a,y,E,b,x,z){this.path.push(["C",a,y,E,b,x,z])},We.clearRect=function(){},We.clip=function(){this.Yl.clipPath=!0},We.closePath=function(){this.path.push(["z"])},We.createLinearGradient=function(a,y,E,b){var x=new Fa("linear");return x.x1=a,x.y1=y,x.x2=E,x.y2=b,x},We.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var E=this.eA;if(E[y])return"url(#"+E[y]+")";var b="PATTERN"+ln++,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:b,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(Wh,x)),this.svg.appendChild(a),E[y]=b,"url(#"+b+")"},We.createRadialGradient=function(a,y,E,b,x,z){var ne=new Fa("radial");return ne.x1=a,ne.y1=y,ne.r1=E,ne.x2=b,ne.y2=x,ne.r2=z,ne};function Ll(a,y,E,b,x,z,ne,oe,ue){b=oe/b,x=ue/x,z===0&&ne===0||a.rb.translate(z,ne),b===1&&x===1||a.rb.scale(b,x),y===0&&E===0||a.rb.translate(-y,-E)}We.drawImage=function(a,y,E,b,x,z,ne,oe,ue){var he="";a instanceof HTMLCanvasElement&&(he=a.toDataURL()),a instanceof HTMLImageElement&&(he=a.getAttribute("src"));var ge=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(z=y,ne=E,oe=b=ge,ue=x=a),b=b||0,x=x||0,oe=oe||0,ue=ue||0,Ll(this,y,E,b,x,z||0,ne||0,oe,ue),z={x:0,y:0,width:ge||b,height:a||x,href:he},gn.$(b,oe)&&gn.$(x,ue)?he.toLowerCase().indexOf(".svg")===-1&&he.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||E!==0||b!==ge||x!==a)&&(b+=y,x+=E,z["clip-path"]="path('M "+y+","+E+" L "+b+" "+E+" L "+b+" "+x+" L "+y+" "+x+" z')"),wl(this,Wh,z,this.rb),this.addElement(Wh,z)},We.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),Bu(this,this.Yl)},We.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},We.fillRect=function(a,y,E,b){a=[a,y,E,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},wl(this,"fill",a,this.rb),this.addElement("rect",a)},We.ox=function(a,y,E,b){a={x:a,y,width:E,height:b},wl(this,"fill",a,this.rb),Bu(this,a),this.svg.prepend(this.Ud("rect",a))},We.fillText=function(a,y,E){a=[a,y,E],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},wl(this,"fill",y,this.rb),this.addElement("text",y,a[0])},We.lineTo=function(a,y){this.path.push(["L",a,y])},We.moveTo=function(a,y){this.path.push(["M",a,y])},We.quadraticCurveTo=function(a,y,E,b){this.path.push(["Q",a,y,E,b])},We.rect=function(a,y,E,b){this.path.push(["M",a,y],["L",a+E,y],["L",a+E,y+b],["L",a,y+b],["z"])},We.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},We.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())},We.setTransform=function(a,y,E,b,x,z){a===1&&y===0&&E===0&&b===1&&x===0&&z===0||wd(this,a,y,E,b,x,z)};function Xu(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}We.scale=function(a,y){this.rb.scale(a,y)},We.translate=function(a,y){this.rb.translate(a,y)},We.transform=function(){},We.yc=function(){},We.stroke=function(){$c(this,this.Yl)},We.jk=function(){this.clipInsteadOfFill||this.stroke()},We.Ud=function(a,y,E){return this.Gv.Ud(a,y,E)},We.addElement=function(a,y,E){return a=this.Ud(a,y,E),this.yd!==null?this.yd.appendChild(a):this.yd=a,this.ad=a};function wl(a,y,E,b){y==="fill"?Bu(a,E):y==="stroke"&&$c(a,E),b!==null&&(a=b.ha,E.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function Bu(a,y){a.fillStyle instanceof Fa?y.fill=th(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 Gc(a,y,E){E=E?"fill":"stroke",a.fillStyle instanceof Fa?y.setAttributeNS(null,"fill",th(a,a.fillStyle,!0)):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.setAttributeNS(null,E,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,E+"-opacity",a[4])):y.setAttributeNS(null,E,a.fillStyle)}function $c(a,y){if(a.strokeStyle instanceof Fa)y.stroke=th(a,a.strokeStyle,!1);else if(/^rgba\(/.test(a.strokeStyle)){var E=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+E[1]+","+E[2]+","+E[3]+")",y["stroke-opacity"]=E[4]}else y.stroke=a.strokeStyle;y["stroke-width"]=a.lineWidth,y["stroke-linecap"]=a.lineCap,y["stroke-linejoin"]=a.lineJoin,y["stroke-miterlimit"]=a.miterLimit,a.Ct&&(y["stroke-dasharray"]=a.Yg.toString(),y["stroke-dashoffset"]=a.uj)}function th(a,y,E){var b="";if(b=a.Hl!==null?a.Hl.getAttribute(E?"fill":"stroke"):null,b!==null&&b.indexOf("GRAD")!==-1?(b=b.split("#")[1].slice(0,-1),E=a.svg.getElementById(b),E!==null&&E.remove()):b="GRAD"+ln++,y.type==="linear")E=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:b,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")E=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:b});else throw Error("invalid gradient");var x=y.gx;y=x.length;for(var z=[],ne=0;ne<y;ne++){var oe=x[ne],ue=oe.color;oe={offset:oe.offset,"stop-color":ue},/^rgba\(/.test(ue)&&(ue=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(ue),oe["stop-color"]="rgb("+ue[1]+","+ue[2]+","+ue[3]+")",oe["stop-opacity"]=ue[4]),z.push(oe)}for(z.sort(function(he,ge){return he.offset>ge.offset?1:-1}),x=0;x<y;x++)E.appendChild(a.Ud("stop",z[x]));return a.svg.appendChild(E),"url(#"+b+")"}We.addPath=function(a,y,E){for(var b=[],x=0;x<a.length;x++){var z=Jr(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());b.push(ne.join(" "))}if(b=b.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+b+'")');else if(a.d=b,wl(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var oe in a)oe!=="transform"&&y.setAttributeNS(null,oe,a[oe]);else{oe=y.getElementsByTagName("path");for(var ue in a)ue!=="transform"&&oe[E].setAttributeNS(null,ue,a[ue])}else this.addElement("path",a)};function wd(a,y,E,b,x,z,ne){var oe=new va;oe.ha=[y,E,b,x,z,ne],y={},wl(a,"g",y,oe),oe=a.addElement("g",y),a.nh.push(oe)}function yd(a,y){var E={};return y&&(E.class=y),y=a.addElement("g",E),a.nh.push(y),y}We.Ev=function(a,y,E){this.Ar=a,this.Br=y,this.Vg=E};function yc(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function ku(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}We.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},We.fs=function(){this.Ct=!1},We.Vc=function(){},We.Wx=function(){},ps.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},ps.prototype.getImageData=function(){return null},ps.prototype.measureText=function(){return null};function mh(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()))}ps.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},ps.className="SVGContext",xn.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new ka(this,Hn.document));var y=new ka(this,Hn.document,!0);a===void 0&&(a=new lo);var E=this;return Gh(this,function(b,x){return b=rg(E,b,"SVG",y),b=b!==null?b.svg:null,typeof x=="function"?(x(b),null):b},a)},xn.prototype.makeSvg=xn.prototype.Cs,xn.prototype.av=function(a){return this.Cs(a)},xn.prototype.makeSVG=xn.prototype.av;function _u(a,y,E,b){this.ownerDocument=y=y===void 0?Hn.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new nh(y,E,b),y.H=a}_u.prototype.resize=function(a,y,E,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=E+"px",this.style.height=b+"px",!0):!1},_u.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},_u.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},_u.prototype.focus=function(){this.Oa.focus()},_u.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},tr.Object.defineProperties(_u.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}}}),_u.className="CanvasSurface";function nh(a,y,E){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&Pn("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 No,this.isTemporary=!!E}We=nh.prototype,We.Wx=function(a){this.Z.imageSmoothingEnabled=a},We.arc=function(a,y,E,b,x,z){this.Z.arc(a,y,E,b,x,z)},We.beginPath=function(){this.Z.beginPath()},We.Se=function(){},We.bezierCurveTo=function(a,y,E,b,x,z){this.Z.bezierCurveTo(a,y,E,b,x,z)},We.clearRect=function(a,y,E,b){this.yc(),this.Z.clearRect(a,y,E,b)},We.clip=function(){this.Z.clip()},We.closePath=function(){this.Z.closePath()},We.createLinearGradient=function(a,y,E,b){return this.Z.createLinearGradient(a,y,E,b)},We.createPattern=function(a,y){return this.Z.createPattern(a,y)},We.createRadialGradient=function(a,y,E,b,x,z){return this.Z.createRadialGradient(a,y,E,b,x,z)},We.drawImage=function(a,y,E,b,x,z,ne,oe,ue){b===void 0?this.Z.drawImage(a,y,E):this.Z.drawImage(a,y,E,b,x,z,ne,oe,ue)},We.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},We.fillRect=function(a,y,E,b){this.Z.fillRect(a,y,E,b)},We.ox=function(a,y,E,b){this.Z.fillRect(a,y,E,b)},We.fillText=function(a,y,E){this.Z.fillText(a,y,E)},We.getImageData=function(a,y,E,b){return this.Z.getImageData(a,y,E,b)},We.lineTo=function(a,y){this.Z.lineTo(a,y)},We.measureText=function(a){return this.Z.measureText(a)},We.moveTo=function(a,y){this.Z.moveTo(a,y)},We.quadraticCurveTo=function(a,y,E,b){this.Z.quadraticCurveTo(a,y,E,b)},We.rect=function(a,y,E,b){this.Z.rect(a,y,E,b)},We.restore=function(){this.Z.restore()},We.save=function(){this.yc(),this.Z.save()},nh.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},We=nh.prototype,We.setTransform=function(a,y,E,b,x,z){this.El.setTransform(a,y,E,b,x,z)},We.scale=function(a,y){this.El.scale(a,y)},We.translate=function(a,y){this.El.translate(a,y)},We.stroke=function(){this.Z.stroke()},We.transform=function(a,y,E,b,x,z){if(a!==1||y!==0||E!==0||b!==1||x!==0||z!==0){var ne=this.El,oe=ne.m11*a+ne.m21*y;a=ne.m12*a+ne.m22*y,y=ne.m11*E+ne.m21*b,E=ne.m12*E+ne.m22*b,ne.dx=ne.m11*x+ne.m21*z+ne.dx,ne.dy=ne.m12*x+ne.m22*z+ne.dy,ne.m11=oe,ne.m12=a,ne.m21=y,ne.m22=E}},We.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},We.ng=function(a,y){if(a instanceof Ya&&a.type===Cd){var E=a.yk;a=a.ft,a>E?(this.scale(E/a,1),this.translate((a-E)/2,0)):E>a&&(this.scale(1,a/E),this.translate(0,(E-a)/2)),this.Hm?this.clip():this.fill(y),a>E?(this.translate(-(a-E)/2,0),this.scale(1/(E/a),1)):E>a&&(this.translate(0,-(E-a)/2),this.scale(1,1/(a/E)))}else this.Hm?this.clip():this.fill(y)},We.jk=function(){this.Hm||this.stroke()},We.Ev=function(a,y,E){this.Ar=a,this.Br=y,this.Vg=E},We.js=function(a,y){var E=this.Z;E.setLineDash!==void 0&&(E.setLineDash(a),E.lineDashOffset=y)},We.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(kf),a.lineDashOffset=0)},We.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},We.Hs=function(){},tr.Object.defineProperties(nh.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 kf=Object.freeze([]);nh.className="CanvasSurfaceContext";function rh(){this.F=this.o=this.u=this.j=0}rh.className="ColorNumbers";function Ya(a,y){ug||(lg(),ug=!0),At(this),this._isFrozen=!1,a===void 0?(this.na=lf,this.xk="black"):typeof a=="string"?(this.na=lf,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===Zh?(this.Qd=Ul,this.Lk=Is):this.Lk=a===Cd?this.Qd=la:this.Qd=zs,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}Ya.prototype.copy=function(){var a=new Ya;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},We=Ya.prototype,We.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},We.ka=function(){return Object.isFrozen(this)&&Pn("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},We.qb=function(a){a.classType===Ya&&(this.type=a)},We.toString=function(){var a="Brush(";if(this.type===lf)a+=this.color;else if(a=this.type===Zh?a+"Linear ":this.type===Cd?a+"Radial ":this.type===cg?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+")"},We.addColorStop=function(a,y){return this._isFrozen&&xi(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&ji(a,"0 <= loc <= 1",Ya,"addColorStop:loc"),this.we===null&&(this.we=new xr),this.we.add(a,y),this.na===lf&&(this.type=Zh),this.xe=null,this},We.Vz=function(a,y){if(this._isFrozen&&xi(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?dg:y,this.type===lf)Sd(this.color),this.color=Yh(a,y);else if((this.type===Zh||this.type===Cd)&&this.colorStops!==null)for(var E=this.colorStops.iterator;E.next();)Sd(E.value),this.addColorStop(E.key,Yh(a,y));return this};function sf(a,y,E){return y=y===void 0||typeof y!="number"?.2:y,E=E===void 0?dg:E,Sd(a),Yh(y,E)}We.Wy=function(a,y){if(this._isFrozen&&xi(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?dg:y,this.type===lf)Sd(this.color),this.color=Yh(-a,y);else if((this.type===Zh||this.type===Cd)&&this.colorStops!==null)for(var E=this.colorStops.iterator;E.next();)Sd(E.value),this.addColorStop(E.key,Yh(-a,y));return this};function kp(a,y,E){return y=y===void 0||typeof y!="number"?.2:y,E=E===void 0?dg:E,Sd(a),Yh(-y,E)}function ih(a,y,E){Sd(a),a=Os.j;var b=Os.u,x=Os.o,z=Os.F;return Sd(y),E===void 0&&(E=.5),"rgba("+Math.round((Os.j-a)*E+a)+", "+Math.round((Os.u-b)*E+b)+", "+Math.round((Os.o-x)*E+x)+", "+Math.round((Os.F-z)*E+z)+")"}We.Gx=function(){if(this.type===lf)return Lh(this.color);if((this.type===Zh||this.type===Cd)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Cd)return Lh(a.first().value);if(a.get(.5)!==null)return Lh(a.get(.5));if(a.count===2)return a=a.Fa(),Lh(ih(a[0].value,a[1].value));for(var y=a.iterator,E=-1,b=-1,x=1,z=1;y.next();){var ne=y.key,oe=Math.abs(.5-y.key);x>z&&oe<x?(E=ne,x=oe):z>=x&&oe<z&&(b=ne,z=oe)}return E>b&&(z=E,E=b,b=z,z=x),x=b-E,Lh(ih(a.get(E),a.get(b),1-z/x))}return!1};function Lh(a){return a?a instanceof Ya?a.Gx():(Sd(a),128>(299*Os.j+587*Os.u+114*Os.o)/1e3):!1}function Yh(a,y){switch(y){case dg:y=100*ap(Os.j);var E=100*ap(Os.u),b=100*ap(Os.o);return Ru.j=.4124564*y+.3575761*E+.1804375*b,Ru.u=.2126729*y+.7151522*E+.072175*b,Ru.o=.0193339*y+.119192*E+.9503041*b,Ru.F=Os.F,y=Wg(Ru.j/Of[0]),E=Wg(Ru.u/Of[1]),b=Wg(Ru.o/Of[2]),Md.j=116*E-16,Md.u=500*(y-E),Md.o=200*(E-b),Md.F=Ru.F,Md.j=Math.min(100,Math.max(0,Md.j+100*a)),a=(Md.j+16)/116,y=a-Md.o/200,Ru.j=Of[0]*Rp(Md.u/500+a),Ru.u=Of[1]*(Md.j>Mf*Mp?Math.pow(a,3):Md.j/Mf),Ru.o=Of[2]*Rp(y),Ru.F=Md.F,a=-.969266*Ru.j+1.8760108*Ru.u+.041556*Ru.o,y=.0556434*Ru.j+-.2040259*Ru.u+1.0572252*Ru.o,Os.j=255*sg((3.2404542*Ru.j+-1.5371385*Ru.u+-.4985314*Ru.o)/100),Os.u=255*sg(a/100),Os.o=255*sg(y/100),Os.F=Ru.F,Os.j=Math.round(Os.j),255<Os.j?Os.j=255:0>Os.j&&(Os.j=0),Os.u=Math.round(Os.u),255<Os.u?Os.u=255:0>Os.u&&(Os.u=0),Os.o=Math.round(Os.o),255<Os.o?Os.o=255:0>Os.o&&(Os.o=0),"rgba("+Os.j+", "+Os.u+", "+Os.o+", "+Os.F+")";case aS:return op(),qc.o=Math.min(100,Math.max(0,qc.o+100*a)),"hsla("+qc.j+", "+qc.u+"%, "+qc.o+"%, "+qc.F+")";default:Pn("Unknown color space: "+y)}}function Sd(a){ug||(lg(),ug=!0);var y=Op;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var E=y.fillStyle;y.fillStyle=a,y.fillStyle!==E?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,Os.j=a[0],Os.u=a[1],Os.o=a[2],Os.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Os.j=0,Os.u=0,Os.o=0,Os.F=1)}}function op(){var a=Os.j/255,y=Os.u/255,E=Os.o/255,b=Math.max(a,y,E),x=Math.min(a,y,E),z=b-x;if(x=(b+x)/2,z===0)var ne=a=0;else{switch(b){case a:ne=(y-E)/z%6;break;case y:ne=(E-a)/z+2;break;case E:ne=(a-y)/z+4}ne*=60,0>ne&&(ne+=360),a=z/(1-Math.abs(2*x-1))}qc.j=Math.round(ne),qc.u=Math.round(100*a),qc.o=Math.round(100*x),qc.F=Os.F}function ap(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function sg(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function Wg(a){return a>Mp?Math.pow(a,1/3):(Mf*a+16)/116}function Rp(a){var y=a*a*a;return y>Mp?y:(116*a-16)/Mf}function Rf(a,y){typeof a!="string"&&(a instanceof Ya||Pn("Value for "+y+" must be a color string or a Brush, not "+a))}function lg(){Op=bl?new _u(null,void 0,{willReadFrequently:!0}).context:null}tr.Object.defineProperties(Ya.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&xi(this,a),this.na=a,this.start.Mc()&&(a===Zh?this.start=Ul:a===Cd&&(this.start=la)),this.end.Mc()&&(a===Zh?this.end=Is:a===Cd&&(this.end=la)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&xi(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&xi(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&xi(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&xi(this,a),0>a&&ji(a,">= zero",Ya,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&xi(this,a),0>a&&ji(a,">= zero",Ya,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&xi(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&xi(this,a),this.cr=a,this.xe=null}}}),Ya.prototype.isDark=Ya.prototype.Gx,Ya.prototype.darkenBy=Ya.prototype.Wy,Ya.prototype.lightenBy=Ya.prototype.Vz,Ya.prototype.addColorStop=Ya.prototype.addColorStop;var Mp=216/24389,Mf=24389/27,Of=[95.047,100,108.883],Op=null,Os=new rh,qc=new rh,Ru=new rh,Md=new rh,ug=!1;Ya.className="Brush";var lf;Ya.Solid=lf=new Mn(Ya,"Solid",0);var Zh;Ya.Linear=Zh=new Mn(Ya,"Linear",1);var Cd;Ya.Radial=Cd=new Mn(Ya,"Radial",2);var cg;Ya.Pattern=cg=new Mn(Ya,"Pattern",4);var dg;Ya.Lab=dg=new Mn(Ya,"Lab",5);var aS;Ya.HSL=aS=new Mn(Ya,"HSL",6),Ya.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var E=Math.abs(y-a);y=Math.floor(a+Math.random()*E).toString(16);var b=Math.floor(a+Math.random()*E).toString(16);return a=Math.floor(a+Math.random()*E).toString(16),2>y.length&&(y="0"+y),2>b.length&&(b="0"+b),2>a.length&&(a="0"+a),"#"+y+b+a},Ya.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;ug||(lg(),ug=!0);var y=Op;if(y===null)return!0;y.fillStyle="#000000";var E=y.fillStyle;return y.fillStyle=a,y.fillStyle!==E?!0:(y.fillStyle="#FFFFFF",E=y.fillStyle,y.fillStyle=a,y.fillStyle!==E)},Ya.lighten=function(a){return sf(a)},Ya.lightenBy=sf,Ya.darken=function(a){return kp(a)},Ya.darkenBy=kp,Ya.mix=ih,Ya.isDark=Lh;function fu(){this.xa="Base"}fu.prototype.measure=function(){},fu.prototype.Yz=function(a,y,E,b,x){a.measure(y,E,b,x)},fu.prototype.arrange=function(){},fu.prototype.Ly=function(a,y,E,b,x,z){a.arrange(y,E,b,x,z)},fu.prototype.iA=function(a){a.Uj()},fu.prototype.gc=function(){},tr.Object.defineProperties(fu.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return kr}}}),fu.prototype.remeasureObject=fu.prototype.iA,fu.prototype.arrangeElement=fu.prototype.Ly,fu.prototype.measureElement=fu.prototype.Yz,fu.className="PanelLayout";function Hm(){this.xa="Base"}vn(Hm,fu),Hm.prototype.measure=function(a,y,E,b,x,z,ne){var oe=b.length;a=Xh(a);for(var ue=0;ue<oe;ue++){var he=b[ue];if(he.visible||he===a){var ge=he.margin,Ee=ge.right+ge.left;ge=ge.top+ge.bottom,he.measure(y,E,z,ne);var ke=he.measuredBounds;Ee=Math.max(ke.width+Ee,0),ge=Math.max(ke.height+ge,0),ke=he.position.x;var Ve=he.position.y;isFinite(ke)||(ke=0),isFinite(Ve)||(Ve=0),he instanceof Zo&&he.isGeometryPositioned&&(he=he.strokeWidth/2,ke-=he,Ve-=he),Wa(x,ke,Ve,Ee,ge)}}},Hm.prototype.arrange=function(a,y,E){var b=y.length,x=a.padding;for(a=E.x-x.left,E=E.y-x.top,x=0;x<b;x++){var z=y[x],ne=z.measuredBounds,oe=z.margin,ue=z.position.x,he=z.position.y;if(ue=isNaN(ue)?-a:ue-a,he=isNaN(he)?-E:he-E,z instanceof Zo&&z.isGeometryPositioned){var ge=z.strokeWidth/2;ue-=ge,he-=ge}z.visible&&z.arrange(ue+oe.left,he+oe.top,ne.width,ne.height)}};function jm(){this.xa="Base"}vn(jm,fu),jm.prototype.measure=function(a,y,E,b,x,z,ne){var oe=b.length;y=Oi(),z=Xh(a);for(var ue=0;ue<oe;ue++){var he=b[ue];if(he.visible||he===z){var ge=vc(he,!1);if(ge!==Sr&&ge!==ki)y.push(he);else{he.measure(1/0,E,0,ne),ge=he.margin,he=he.measuredBounds;var Ee=Math.max(he.height+ge.top+ge.bottom,0);x.width+=Math.max(he.width+ge.right+ge.left,0),x.height=Math.max(x.height,Ee)}}}for(b=y.length,a.desiredSize.height?E=Math.min(a.desiredSize.height,a.maxSize.height):x.height!==0&&(E=Math.min(x.height,a.maxSize.height)),a=0;a<b;a++)ue=y[a],(ue.visible||ue===z)&&(ge=ue.margin,oe=ge.right+ge.left,ge=ge.top+ge.bottom,ue.measure(1/0,E,0,ne),ue=ue.measuredBounds,ge=Math.max(ue.height+ge,0),x.width+=Math.max(ue.width+oe,0),x.height=Math.max(x.height,ge));Yi(y)},jm.prototype.arrange=function(a,y,E){for(var b=y.length,x=a.padding,z=x.top,ne=a.isOpposite,oe=ne?E.width:x.left,ue=0;ue<b;ue++){var he=z,ge=y[ue];if(ge.visible){var Ee=ge.measuredBounds,ke=ge.margin,Ve=ke.top+ke.bottom,Ze=z+x.bottom,st=Ee.height,Ot=vc(ge,!1);(isNaN(ge.desiredSize.height)&&Ot===Lr||Ot===oo)&&(st=Math.max(E.height-Ve-Ze,0)),Ve=st+Ve+Ze,Ze=ge.alignment,Ze.Xb()&&(Ze=a.defaultAlignment),Ze.sb()||(Ze=la),ne&&(oe-=Ee.width+ke.left+ke.right),ge.arrange(oe+Ze.offsetX+ke.left,he+Ze.offsetY+ke.top+(E.height*Ze.y-Ve*Ze.y),Ee.width,st),ne||(oe+=Ee.width+ke.left+ke.right)}}};function Gm(){this.xa="Base"}vn(Gm,fu),Gm.prototype.measure=function(a,y,E,b,x,z){var ne=b.length;E=Oi();for(var oe=Xh(a),ue=0;ue<ne;ue++){var he=b[ue];if(he.visible||he===oe){var ge=vc(he,!1);if(ge!==Sr&&ge!==oo)E.push(he);else{var Ee=he.margin;ge=Ee.right+Ee.left,Ee=Ee.top+Ee.bottom,he.measure(y,1/0,z,0),he=he.measuredBounds,ws(x,Math.max(x.width,Math.max(he.width+ge,0)),x.height+Math.max(he.height+Ee,0))}}}if(b=E.length,b!==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<b;a++)ue=E[a],(ue.visible||ue===oe)&&(he=ue.margin,ne=he.right+he.left,he=he.top+he.bottom,ue.measure(y,1/0,z,0),ue=ue.measuredBounds,he=Math.max(ue.height+he,0),x.width=Math.max(x.width,Math.max(ue.width+ne,0)),x.height+=he);Yi(E)}},Gm.prototype.arrange=function(a,y,E){for(var b=y.length,x=a.padding,z=x.left,ne=a.isOpposite,oe=ne?E.height:x.top,ue=0;ue<b;ue++){var he=z,ge=y[ue];if(ge.visible){var Ee=ge.measuredBounds,ke=ge.margin,Ve=ke.left+ke.right,Ze=z+x.right,st=Ee.width,Ot=vc(ge,!1);(isNaN(ge.desiredSize.width)&&Ot===Lr||Ot===ki)&&(st=Math.max(E.width-Ve-Ze,0)),Ve=st+Ve+Ze,Ze=ge.alignment,Ze.Xb()&&(Ze=a.defaultAlignment),Ze.sb()||(Ze=la),ne&&(oe-=Ee.height+ke.bottom+ke.top),ge.arrange(he+Ze.offsetX+ke.left+(E.width*Ze.x-Ve*Ze.x),oe+Ze.offsetY+ke.top,st,Ee.height),ne||(oe+=Ee.height+ke.bottom+ke.top)}}};function zm(){this.xa="Base"}vn(zm,fu),zm.prototype.measure=function(a,y,E,b,x,z,ne){var oe=b.length,ue=a.Pb(),he=ue.margin,ge=he.right+he.left,Ee=he.top+he.bottom;ue.measure(y,E,z,ne);var ke=ue.measuredBounds;z=ke.width,ne=ke.height;var Ve=Math.max(z+ge,0),Ze=Math.max(ne+Ee,0),st=a.isClipping,Ot=Un.allocAt(-he.left,-he.top,Ve,Ze),Pt=Un.allocAt(0,0,z,ne);Av(ue,Pt,!0),z=Pt.width,ne=Pt.height;for(var zt=!0,Kt=Xh(a),Jt=0;Jt<oe;Jt++){var dn=b[Jt];ke=y;var kn=E;if(dn!==ue&&(dn.visible||dn===Kt)){he=dn.margin;var Xr=he.left,Ei=he.top;switch(Ve=he.right+he.left,Ze=he.top+he.bottom,he=vc(dn,!1),he){case Lr:ke=z,kn=ne,Ei=Xr=Ze=Ve=0;break;case ki:ke=z,Xr=Ve=0;break;case oo:kn=ne,Ei=Ze=0}dn.measure(ke,kn,0,0),ke=dn.measuredBounds,Ve=Math.max(ke.width+Ve,0),Ze=Math.max(ke.height+Ze,0),he=dn.alignment,he.Xb()&&(he=a.defaultAlignment),he.sb()||(he=la);var fi=dn.alignmentFocus;if(fi.Xb()&&(fi=la),kn=null,dn instanceof kr&&dn.$e!==""&&(kn=dn.fb(dn.$e),kn===dn&&(kn=null)),Xr=Pt.x-Xr,Ei=Pt.y-Ei,kn!==null){for(dn.arrange(0,0,ke.width,ke.height),ke=kn.actualBounds,ke=xt.allocAt(ke.x+(fi.x*ke.width-fi.offsetX),ke.y+(fi.y*ke.height-fi.offsetY)),kn=kn.panel;kn!==dn;)kn.transform.Ga(ke),kn=kn.panel;Xr+=he.x*z+he.offsetX-ke.x,Ei+=he.y*ne+he.offsetY-ke.y,xt.free(ke)}else Xr+=he.x*z+he.offsetX-(fi.x*ke.width+fi.offsetX),Ei+=he.y*ne+he.offsetY-(fi.y*ke.height+fi.offsetY);zt?(zt=!1,x.h(Xr,Ei,Ve,Ze)):Wa(x,Xr,Ei,Ve,Ze)}}switch(zt?x.assign(Ot):st?x.Uu(Pt.x,Pt.y,Pt.width,Pt.height):Wa(x,Ot.x,Ot.y,Ot.width,Ot.height),Un.free(Ot),Un.free(Pt),he=ue.stretch,he===Mo&&(he=vc(ue,!1)),he){case Sr:return;case Lr:if(!isFinite(y)&&!isFinite(E))return;break;case ki:if(!isFinite(y))return;break;case oo:if(!isFinite(E))return}for(ke=ue.measuredBounds,z=ke.width,ne=ke.height,Ve=Math.max(z+ge,0),Ze=Math.max(ne+Ee,0),he=ue.margin,Pt=Un.allocAt(-he.left,-he.top,Ve,Ze),Av(ue,Pt,!0),z=Pt.width,ne=Pt.height,y=0;y<oe;y++)E=b[y],E===ue||!E.visible&&E!==Kt||(he=E.margin,Ve=he.right+he.left,Ze=he.top+he.bottom,ke=E.measuredBounds,Ve=Math.max(ke.width+Ve,0),Ze=Math.max(ke.height+Ze,0),ge=E.alignment,ge.Xb()&&(ge=a.defaultAlignment),ge.sb()||(ge=la),E=E.alignmentFocus,E.Xb()&&(E=la),zt?(zt=!1,x.h(ge.x*z+ge.offsetX-(E.x*ke.width+E.offsetX)-he.left,ge.y*ne+ge.offsetY-(E.y*ke.height+E.offsetY)-he.top,Ve,Ze)):Wa(x,ge.x*z+ge.offsetX-(E.x*ke.width+E.offsetX)-he.left,ge.y*ne+ge.offsetY-(E.y*ke.height+E.offsetY)-he.top,Ve,Ze));zt?x.assign(Ot):st?x.Uu(Pt.x,Pt.y,Pt.width,Pt.height):Wa(x,Ot.x,Ot.y,Ot.width,Ot.height),Un.free(Pt)},zm.prototype.arrange=function(a,y,E){var b=y.length,x=a.Pb(),z=x.measuredBounds,ne=z.width,oe=z.height,ue=a.padding;z=ue.left,ue=ue.top;var he=z-E.x,ge=ue-E.y;for(x.arrange(he,ge,ne,oe),ne=Un.allocAt(0,0,ne,oe),Av(x,ne,!1),oe=0;oe<b;oe++){var Ee=y[oe];if(Ee!==x){he=Ee.measuredBounds;var ke=he.width,Ve=he.height;ge=Ee.alignment,ge.Xb()&&(ge=a.defaultAlignment),ge.sb()||(ge=la);var Ze=Ee.alignmentFocus;if(Ze.Xb()&&(Ze=la),he=null,Ee instanceof kr&&Ee.$e!==""&&(he=Ee.fb(Ee.$e),he===Ee&&(he=null)),he!==null){var st=he.actualBounds;for(Ze=xt.allocAt(st.x+(Ze.x*st.width-Ze.offsetX),st.y+(Ze.y*st.height-Ze.offsetY)),he=he.panel;he!==Ee;)he.transform.Ga(Ze),he=he.panel;he=ge.x*ne.width+ge.offsetX-Ze.x,ge=ge.y*ne.height+ge.offsetY-Ze.y,xt.free(Ze)}else he=ge.x*ne.width+ge.offsetX-(Ze.x*ke+Ze.offsetX),ge=ge.y*ne.height+ge.offsetY-(Ze.y*Ve+Ze.offsetY);he+=ne.x-E.x,ge+=ne.y-E.y,Ee.visible&&Ee.arrange(z+he,ue+ge,ke,Ve)}}Un.free(ne)};function Av(a,y,E){var b=null;if(a instanceof kr&&a.$e!==""&&(b=a.fb(a.$e),b===a&&(b=null)),b!==null)for(E&&a.arrange(0,0,y.width,y.height),y.assign(b.actualBounds),b=b.panel;b!==a;)b.transform.pp(y),b=b.panel}function Vm(){this.xa="Base"}vn(Vm,fu),Vm.prototype.measure=function(a,y,E,b,x,z,ne){var oe=b.length,ue=a.Pb(),he=ue.margin,ge=y,Ee=E,ke=he.right+he.left,Ve=he.top+he.bottom;ue.measure(y,E,z,ne),he=ue.measuredBounds;var Ze=0,st=null;ue instanceof Zo&&(st=ue,Ze=st.strokeWidth*st.scale);var Ot=Math.max(he.width+ke,0);he=Math.max(he.height+Ve,0);var Pt=Iv(ue),zt=Pt.x*Ot+Pt.offsetX;Pt=Pt.y*he+Pt.offsetY;var Kt=kv(ue),Jt=Kt.x*Ot+Kt.offsetX;for(Kt=Kt.y*he+Kt.offsetY,isFinite(y)&&(ge=Math.max(Math.abs(zt-Jt)-Ze,0)),isFinite(E)&&(Ee=Math.max(Math.abs(Pt-Kt)-Ze,0)),Ze=sn.alloc(),Ze.h(0,0),a=Xh(a),Kt=0;Kt<oe;Kt++)Pt=b[Kt],Pt===ue||!Pt.visible&&Pt!==a||(he=Pt.margin,Ot=he.right+he.left,zt=he.top+he.bottom,Pt.measure(ge,Ee,0,0),he=Pt.measuredBounds,Ot=Math.max(he.width+Ot,0),he=Math.max(he.height+zt,0),Ze.h(Math.max(Ot,Ze.width),Math.max(he,Ze.height)));if(oe===1)x.width=Ot,x.height=he,sn.free(Ze);else{switch(Pt=Iv(ue),Kt=kv(ue),oe=b=0,Kt.x!==Pt.x&&Kt.y!==Pt.y&&(b=Ze.width/Math.abs(Kt.x-Pt.x),oe=Ze.height/Math.abs(Kt.y-Pt.y)),sn.free(Ze),Ze=0,st!==null&&(Ze=st.strokeWidth*st.scale,Bv(st)===wi&&(b=oe=Math.max(b,oe))),b+=Math.abs(Pt.offsetX)+Math.abs(Kt.offsetX)+Ze,oe+=Math.abs(Pt.offsetY)+Math.abs(Kt.offsetY)+Ze,st=ue.stretch,st===Mo&&(st=vc(ue,!1)),st){case Sr:ne=z=0;break;case Lr:isFinite(y)&&(b=y),isFinite(E)&&(oe=E);break;case ki:isFinite(y)&&(b=y),ne=0;break;case oo:z=0,isFinite(E)&&(oe=E)}ue.Uj(),ue.measure(b,oe,z,ne),x.width=ue.measuredBounds.width+ke,x.height=ue.measuredBounds.height+Ve}},Vm.prototype.arrange=function(a,y){var E=y.length,b=a.Pb(),x=b.measuredBounds,z=Un.alloc();z.h(0,0,1,1);var ne=b.margin,oe=ne.left;ne=ne.top;var ue=a.padding,he=ue.left;ue=ue.top,b.arrange(he+oe,ue+ne,x.width,x.height);var ge=Iv(b),Ee=kv(b),ke=ge.y*x.height+ge.offsetY,Ve=Ee.x*x.width+Ee.offsetX;for(Ee=Ee.y*x.height+Ee.offsetY,z.x=ge.x*x.width+ge.offsetX,z.y=ke,Wa(z,Ve,Ee,0,0),z.x+=oe+he,z.y+=ne+ue,x=0;x<E;x++)oe=y[x],oe!==b&&(he=oe.measuredBounds,ne=oe.margin,ue=Math.max(he.width+ne.right+ne.left,0),ge=Math.max(he.height+ne.top+ne.bottom,0),ke=oe.alignment,ke.Xb()&&(ke=a.defaultAlignment),ke.sb()||(ke=la),ue=z.width*ke.x+ke.offsetX-ue*ke.x+ne.left+z.x,ne=z.height*ke.y+ke.offsetY-ge*ke.y+ne.top+z.y,oe.visible&&(vs(z.x,z.y,z.width,z.height,ue,ne,he.width,he.height)?oe.arrange(ue,ne,he.width,he.height):oe.arrange(ue,ne,he.width,he.height,new Un(z.x,z.y,z.width,z.height))));Un.free(z)};function Wm(){this.xa="Base",this.name="Table"}vn(Wm,fu),Wm.prototype.measure=function(a,y,E,b,x){for(var z=b.length,ne=Oi(),oe=Oi(),ue=0;ue<z;ue++){var he=b[ue],ge=he instanceof kr?he:null;if(ge!==null&&uf(ge)&&he.visible){oe.push(ge);for(var Ee=ge.O.s,ke=Ee.length,Ve=0;Ve<ke;Ve++){var Ze=Ee[Ve];ge.type===kr.TableRow?Ze.row=he.row:ge.type===kr.TableColumn&&(Ze.column=he.column),ne.push(Ze)}}else ne.push(he)}z=ne.length,z===0&&(a.Fb(0),a.Eb(0));for(var st=[],Ot=0;Ot<z;Ot++){var Pt=ne[Ot];Pt.visible&&(Bt(Pt,!0),rn(Pt,!0),st[Pt.row]||(st[Pt.row]=[]),st[Pt.row][Pt.column]||(st[Pt.row][Pt.column]=[]),st[Pt.row][Pt.column].push(Pt))}Yi(ne);var zt=Oi(),Kt=Oi(),Jt=Oi(),dn={count:0},kn={count:0},Xr=y,Ei=E,fi=a.rowDefs,Dr=a.colDefs,gr=null;z=fi.length;for(var Oo=0;Oo<z;Oo++)gr=fi[Oo],gr!==void 0&&(gr.actual=0);z=Dr.length;for(var Eo=0;Eo<z;Eo++)gr=Dr[Eo],gr!==void 0&&(gr.actual=0);for(var ts=st.length,_s=0,xu=0;xu<ts;xu++)st[xu]&&(_s=Math.max(_s,st[xu].length));var Lu=Math.min(a.topIndex,ts-1),Sc=Math.min(a.leftIndex,_s-1),wu=0;ts=st.length;for(var Sf=Xh(a),Zl=0;Zl<ts;Zl++)if(st[Zl]){_s=st[Zl].length;var uh=a.Fb(Zl);uh.actual=0;for(var Ec=uh.oc=0;Ec<_s;Ec++)if(st[Zl][Ec]){var Ef=a.Eb(Ec);zt[Ec]===void 0&&(Ef.actual=0,Ef.oc=0,zt[Ec]=!0);for(var xd=st[Zl][Ec],Bd=xd.length,ud=0;ud<Bd;ud++){var td=xd[ud];if(td.visible||td===Sf){var Zf=1<td.rowSpan||1<td.columnSpan;Zf&&(Zl<Lu||Ec<Sc||Kt.push(td));var ch=td.margin,Og=ch.right+ch.left,cd=ch.top+ch.bottom,bc=Rd(td,uh,Ef,!1),Rm=td.desiredSize,Kp=!isNaN(Rm.height),Sh=!isNaN(Rm.width)&&Kp;if(Zf||bc===Sr||Sh||Zl<Lu||Ec<Sc||(dn[Ec]!==void 0||bc!==Lr&&bc!==ki||(dn[Ec]=-1,dn.count++),kn[Zl]!==void 0||bc!==Lr&&bc!==oo||(kn[Zl]=-1,kn.count++),Jt.push(td)),td.measure(1/0,1/0,0,0),!(Zl<Lu||Ec<Sc)){var nd=td.measuredBounds,gp=Math.max(nd.width+Og,0),dd=Math.max(nd.height+cd,0);if(td.rowSpan===1&&(bc===Sr||bc===ki)){gr=a.Fb(Zl);var Xf=gr.Wc();wu=Math.max(dd-gr.actual,0),wu+Xf>Ei&&(wu=Math.max(Ei-Xf,0));var pv=gr.oa===0;gr.oc=gr.oc+wu,gr.actual=gr.oa+wu,Ei=Math.max(Ei-(wu+(pv?Xf:0)),0)}if(td.columnSpan===1&&(bc===Sr||bc===oo)){gr=a.Eb(Ec);var Mm=gr.Wc();wu=Math.max(gp-gr.actual,0),wu+Mm>Xr&&(wu=Math.max(Xr-Mm,0));var qy=gr.oa===0;gr.oc=gr.oc+wu,gr.actual=gr.oa+wu,Xr=Math.max(Xr-(wu+(qy?Mm:0)),0)}Zf&&td.Uj()}}}}}Yi(zt);var _h=0,$h=0;z=a.columnCount;for(var Yp=0;Yp<z;Yp++){var Qf=Dr[Yp];Qf!==void 0&&(_h+=isNaN(Qf.Hc)?Qf.oc:Qf.Hc,Qf.oc!==0&&(_h+=Qf.Wc()))}z=a.rowCount;for(var Dg=0;Dg<z;Dg++){var Jf=fi[Dg];Jf!==void 0&&($h+=isNaN(Jf.Hc)?Jf.oc:Jf.Hc,Jf.oc!==0&&($h+=Jf.Wc()))}Xr=Math.max(y-_h,0);var Uh=Ei=Math.max(E-$h,0),bf=Xr;z=Jt.length;for(var rd=0;rd<z;rd++){var Eh=Jt[rd],gv=a.Fb(Eh.row),qh=a.Eb(Eh.column),Fg=Eh.measuredBounds,dh=Eh.margin,mp=dh.right+dh.left,bh=dh.top+dh.bottom;dn[Eh.column]=qh.oc===0&&dn[Eh.column]!==void 0?Math.max(Fg.width+mp,dn[Eh.column]):null,kn[Eh.row]=gv.oc===0&&kn[Eh.row]!==void 0?Math.max(Fg.height+bh,kn[Eh.row]):null}var Zp=0,Bg=0,Xd;for(Xd in kn)Xd!=="count"&&(Zp+=kn[Xd]);for(Xd in dn)Xd!=="count"&&(Bg+=dn[Xd]);for(var Ou=sn.alloc(),Om=0;Om<z;Om++){var Mc=Jt[Om];if(Mc.visible||Mc===Sf){var Xl=a.Fb(Mc.row),Oc=a.Eb(Mc.column),ef=0;isFinite(Oc.width)?ef=Oc.width:(isFinite(Xr)&&dn[Mc.column]!==null?Bg===0?ef=Oc.actual+Xr:ef=dn[Mc.column]/Bg*bf:dn[Mc.column]!==null?ef=Xr:ef=Oc.actual||Xr,ef=Math.max(0,ef-Oc.Wc()));var xf=0;switch(isFinite(Xl.height)?xf=Xl.height:(isFinite(Ei)&&kn[Mc.row]!==null?Zp===0?xf=Xl.actual+Ei:xf=kn[Mc.row]/Zp*Uh:kn[Mc.row]!==null?xf=Ei:xf=Xl.actual||Ei,xf=Math.max(0,xf-Xl.Wc())),Ou.h(Math.max(Oc.minimum,Math.min(ef,Oc.maximum)),Math.max(Xl.minimum,Math.min(xf,Xl.maximum))),bc=Rd(Mc,Xl,Oc,!1),bc){case ki:Ou.height=Math.max(Ou.height,Xl.actual+Ei);break;case oo:Ou.width=Math.max(Ou.width,Oc.actual+Xr)}var vp=Mc.margin,eS=vp.right+vp.left,mv=vp.top+vp.bottom;Mc.Uj(),Mc.measure(Ou.width,Ou.height,Oc.minimum,Xl.minimum);var _g=Mc.measuredBounds,yp=Math.max(_g.width+eS,0),Xp=Math.max(_g.height+mv,0);isFinite(Xr)&&(yp=Math.min(yp,Ou.width)),isFinite(Ei)&&(Xp=Math.min(Xp,Ou.height));var id=0;id=Xl.actual,Xl.actual=Math.max(Xl.actual,Xp),Xl.oc=Math.max(Xl.oc,Xp),wu=Xl.actual-id,Ei=Math.max(Ei-wu,0),kn[Mc.row]===null&&(Uh=Math.max(Uh-wu,0)),id=Oc.actual,Oc.actual=Math.max(Oc.actual,yp),Oc.oc=Math.max(Oc.oc,yp),wu=Oc.actual-id,Xr=Math.max(Xr-wu,0),dn[Mc.column]===null&&(bf=Math.max(bf-wu,0))}}Yi(Jt);var tf=sn.alloc(),hh=Oi(),Ld=Oi();if(z=Kt.length,z!==0){for(var $f=0;$f<ts;$f++)if(st[$f]){_s=st[$f].length;var Ug=a.Fb($f);hh[$f]=Ug.actual;for(var qf=0;qf<_s;qf++)if(st[$f][qf]){var vv=a.Eb(qf);Ld[qf]=vv.actual}}}for(var Hg=0;Hg<z;Hg++){var _l=Kt[Hg];if(_l.visible||_l===Sf){var Qd=a.Fb(_l.row),_d=a.Eb(_l.column);switch(Ou.h(Math.max(_d.minimum,Math.min(y,_d.maximum)),Math.max(Qd.minimum,Math.min(E,Qd.maximum))),bc=Rd(_l,Qd,_d,!1),bc){case Lr:Ld[_d.index]!==0&&(Ou.width=Math.min(Ou.width,Ld[_d.index])),hh[Qd.index]!==0&&(Ou.height=Math.min(Ou.height,hh[Qd.index]));break;case ki:Ld[_d.index]!==0&&(Ou.width=Math.min(Ou.width,Ld[_d.index]));break;case oo:hh[Qd.index]!==0&&(Ou.height=Math.min(Ou.height,hh[Qd.index]))}isFinite(_d.width)&&(Ou.width=_d.width),isFinite(Qd.height)&&(Ou.height=Qd.height),tf.h(0,0);for(var yv=_d.minimum,hd=Qd.minimum,wf=1;wf<_l.rowSpan&&!(_l.row+wf>=a.rowCount);wf++)gr=a.Fb(_l.row+wf),wu=0,wu=bc===Lr||bc===oo?Math.max(gr.minimum,hh[_l.row+wf]===0?gr.maximum:Math.min(hh[_l.row+wf],gr.maximum)):Math.max(gr.minimum,isNaN(gr.Hc)?gr.maximum:Math.min(gr.Hc,gr.maximum)),tf.height+=wu,hd+=gr.minimum;for(var Ud=1;Ud<_l.columnSpan&&!(_l.column+Ud>=a.columnCount);Ud++)gr=a.Eb(_l.column+Ud),wu=0,wu=bc===Lr||bc===ki?Math.max(gr.minimum,Ld[_l.column+Ud]===0?gr.maximum:Math.min(Ld[_l.column+Ud],gr.maximum)):Math.max(gr.minimum,isNaN(gr.Hc)?gr.maximum:Math.min(gr.Hc,gr.maximum)),tf.width+=wu,yv+=gr.minimum;Ou.width+=tf.width,Ou.height+=tf.height;var jg=_l.margin,ep=jg.right+jg.left,Dm=jg.top+jg.bottom;_l.measure(Ou.width,Ou.height,yv,hd);for(var Gg=_l.measuredBounds,xh=Math.max(Gg.width+ep,0),Sp=Math.max(Gg.height+Dm,0),tp=0,zg=0;zg<_l.rowSpan&&!(_l.row+zg>=a.rowCount);zg++)gr=a.Fb(_l.row+zg),tp+=gr.total||0;if(tp<Sp){var Cf=Sp-tp,Hh=Sp-tp;if(_l.spanAllocation!==null)for(var Tf=_l.spanAllocation,nf=0;nf<_l.rowSpan&&!(0>=Cf)&&!(_l.row+nf>=a.rowCount);nf++){gr=a.Fb(_l.row+nf);var Af=gr.oa||0,Ep=Tf(_l,gr,Hh);gr.actual=Math.min(gr.maximum,Af+Ep),gr.oa!==Af&&(Cf-=gr.oa-Af)}for(;0<Cf;){var fh=gr.oa||0;if(isNaN(gr.height)&&gr.maximum>fh&&(gr.actual=Math.min(gr.maximum,fh+Cf),gr.oa!==fh&&(Cf-=gr.oa-fh)),gr.index===0)break;gr=a.Fb(gr.index-1)}}for(var Qp=0,Pf=0;Pf<_l.columnSpan&&!(_l.column+Pf>=a.columnCount);Pf++)gr=a.Eb(_l.column+Pf),Qp+=gr.total||0;if(Qp<xh){var Jp=xh-Qp,tS=xh-Qp;if(_l.spanAllocation!==null)for(var rf=_l.spanAllocation,bp=0;bp<_l.columnSpan&&!(0>=Jp)&&!(_l.column+bp>=a.columnCount);bp++){gr=a.Eb(_l.column+bp);var Fm=gr.oa||0,nS=rf(_l,gr,tS);gr.actual=Math.min(gr.maximum,Fm+nS),gr.oa!==Fm&&(Jp-=gr.oa-Fm)}for(;0<Jp;){var Sv=gr.oa||0;if(isNaN(gr.width)&&gr.maximum>Sv&&(gr.actual=Math.min(gr.maximum,Sv+Jp),gr.oa!==Sv&&(Jp-=gr.oa-Sv)),gr.index===0)break;gr=a.Eb(gr.index-1)}}}}Yi(Kt),sn.free(tf),sn.free(Ou),hh!==void 0&&Yi(hh),Ld!==void 0&&Yi(Ld);var $p=0,qp=0,Ev=a.desiredSize,Jb=a.maxSize;bc=vc(a,!0);var Bm=$h=_h=0,_m=0;z=a.columnCount;for(var bv=0;bv<z;bv++)Dr[bv]!==void 0&&(gr=a.Eb(bv),isFinite(gr.width)?(Bm+=gr.width,Bm+=gr.Wc()):t0(gr)===Xg?(Bm+=gr.oa,Bm+=gr.Wc()):gr.oa!==0&&(_h+=gr.oa,_h+=gr.Wc()));isFinite(Ev.width)?$p=Math.min(Ev.width,Jb.width):$p=bc!==Sr&&isFinite(y)?y:_h,$p=Math.max($p,a.minSize.width),$p=Math.max($p-Bm,0);for(var H1=_h===0?1:Math.max($p/_h,1),xv=0;xv<z;xv++)Dr[xv]!==void 0&&(gr=a.Eb(xv),isFinite(gr.width)||t0(gr)===Xg||(gr.actual=gr.oa*H1),gr.position=x.width,gr.oa!==0&&(x.width+=gr.oa,x.width+=gr.Wc()));z=a.rowCount;for(var wv=0;wv<z;wv++)fi[wv]!==void 0&&(gr=a.Fb(wv),isFinite(gr.height)?(_m+=gr.height,_m+=gr.Wc()):t0(gr)===Xg?(_m+=gr.oa,_m+=gr.Wc()):gr.oa!==0&&($h+=gr.oa,$h+=gr.Wc()));isFinite(Ev.height)?qp=Math.min(Ev.height,Jb.height):qp=bc!==Sr&&isFinite(E)?E:$h,qp=Math.max(qp,a.minSize.height),qp=Math.max(qp-_m,0);for(var j1=$h===0?1:Math.max(qp/$h,1),Cv=0;Cv<z;Cv++)fi[Cv]!==void 0&&(gr=a.Fb(Cv),isFinite(gr.height)||t0(gr)===Xg||(gr.actual=gr.oa*j1),gr.position=x.height,gr.oa!==0&&(x.height+=gr.oa,x.height+=gr.Wc()));z=oe.length;for(var rS=0;rS<z;rS++){var Um=oe[rS],iS=0,oS=0;Um.type===kr.TableRow?(iS=x.width,gr=a.Fb(Um.row),oS=gr.actual):(gr=a.Eb(Um.column),iS=gr.actual,oS=x.height),Um.measuredBounds.h(0,0,iS,oS),Bt(Um,!1)}Yi(oe),a.inRowsCols=st},Wm.prototype.arrange=function(a,y,E){var b=y.length,x=a.padding,z=x.left;x=x.top;var ne=a.inRowsCols;if(ne!==null){for(var oe,ue,he=ne.length,ge=0,Ee=0;Ee<he;Ee++)ne[Ee]&&(ge=Math.max(ge,ne[Ee].length));ue=a.rowDefs,oe=a.colDefs;var ke=Ee=0,Ve=Math.min(a.topIndex,he-1);if(0<ue.length){for(;Ve!==he&&(ue[Ve]===void 0||ue[Ve].oa===0);)Ve++;Ve=Math.max(Math.min(Ve,he-1),0),Ee=-ue[Ve].position}var Ze=Math.min(a.leftIndex,ge-1);if(0<oe.length){for(;Ze!==ge&&(oe[Ze]===void 0||oe[Ze].oa===0);)Ze++;Ze=Math.max(Math.min(Ze,ge-1),0),ke=-oe[Ze].position}for(var st=0,Ot=0;st!==he&&ue[st]===void 0;)st++;for(;Ot!==he&&oe[Ot]===void 0;)Ot++;ge=a.part,a.Fb(st),a.Eb(Ot);for(var Pt=0;Pt<y.length;Pt++){var zt=y[Pt];if(zt instanceof kr&&zt.visible&&uf(zt)){if(zt.type===kr.TableRow){oe=a.Fb(zt.row);var Kt=a.Eb(Ot)}else oe=a.Fb(st),Kt=a.Eb(zt.column);ue=oe.position+Ee+x,oe.oa!==0&&(ue+=oe.Io(Math.max(st,Ve))),oe=Kt.position+ke+z,Kt.oa!==0&&(oe+=Kt.Io(Math.max(Ot,Ze))),Kt=zt.measuredBounds,zt.Uk(),zt.actualBounds.ka();var Jt=zt.actualBounds,dn=Un.allocAt(Jt.x,Jt.y,Jt.width,Jt.height);Jt.x=zt.type===kr.TableRow?z:oe,Jt.y=zt.type===kr.TableColumn?x:ue,Jt.width=Kt.width,Jt.height=Kt.height,zt.actualBounds.freeze(),rn(zt,!1),_a(dn,Jt)||ge===null||(ge.oh(),zt.Pn(ge)),Un.free(dn)}}for(Pt=sn.alloc(),zt=0;zt<he;zt++)if(ne[zt]){for(ge=ne[zt].length,Kt=a.Fb(zt),ue=Kt.position+Ee+x,Kt.oa!==0&&(ue+=Kt.Io(Math.max(st,Ve))),Jt=0;Jt<ge;Jt++)if(ne[zt][Jt]){dn=a.Eb(Jt),oe=dn.position+ke+z,dn.oa!==0&&(oe+=dn.Io(Math.max(Ot,Ze)));for(var kn=ne[zt][Jt],Xr=kn.length,Ei=0;Ei<Xr;Ei++){var fi=kn[Ei],Dr=fi.measuredBounds;Pt.h(0,0);for(var gr=1;gr<fi.rowSpan&&!(zt+gr>=a.rowCount);gr++){var Oo=a.Fb(zt+gr);Oo.oa!==0&&(Pt.height+=Oo.total)}for(gr=1;gr<fi.columnSpan&&!(Jt+gr>=a.columnCount);gr++)Oo=a.Eb(Jt+gr),Oo.oa!==0&&(Pt.width+=Oo.total);var Eo=dn.oa+Pt.width,ts=Kt.oa+Pt.height;gr=oe,Oo=ue;var _s=Eo,xu=ts,Lu=oe,Sc=ue,wu=Eo,Sf=ts;oe+Eo>E.width&&(wu=Math.max(E.width-oe,0)),ue+ts>E.height&&(Sf=Math.max(E.height-ue,0));var Zl=fi.alignment;if(Zl.Xb()){Zl=a.defaultAlignment,Zl.sb()||(Zl=la);var uh=Zl.x,Ec=Zl.y,Ef=Zl.offsetX;Zl=Zl.offsetY;var xd=dn.alignment,Bd=Kt.alignment;xd.sb()&&(uh=xd.x,Ef=xd.offsetX),Bd.sb()&&(Ec=Bd.y,Zl=Bd.offsetY)}else uh=Zl.x,Ec=Zl.y,Ef=Zl.offsetX,Zl=Zl.offsetY;(isNaN(uh)||isNaN(Ec))&&(Ec=uh=.5,Zl=Ef=0),xd=Dr.width,Bd=Dr.height;var ud=fi.margin,td=ud.left+ud.right,Zf=ud.top+ud.bottom,ch=Rd(fi,Kt,dn,!1);!isNaN(fi.desiredSize.width)||ch!==Lr&&ch!==ki||(xd=Math.max(Eo-td,0)),!isNaN(fi.desiredSize.height)||ch!==Lr&&ch!==oo||(Bd=Math.max(ts-Zf,0)),Eo=fi.maxSize,ts=fi.minSize,xd=Math.min(Eo.width,xd),Bd=Math.min(Eo.height,Bd),xd=Math.max(ts.width,xd),Bd=Math.max(ts.height,Bd),Eo=Bd+Zf,gr+=_s*uh-(xd+td)*uh+Ef+ud.left,Oo+=xu*Ec-Eo*Ec+Zl+ud.top,fi.visible&&(vs(Lu,Sc,wu,Sf,gr,Oo,Dr.width,Dr.height)?fi.arrange(gr,Oo,xd,Bd):fi.arrange(gr,Oo,xd,Bd,new Un(Lu,Sc,wu,Sf)))}}}for(sn.free(Pt),a=0;a<b;a++)E=y[a],z=E instanceof kr?E:null,z!==null&&uf(z)&&(z=E.actualBounds,E.naturalBounds.ka(),E.naturalBounds.h(0,0,z.width,z.height),E.naturalBounds.freeze())}};function Km(){this.xa="Base"}vn(Km,fu),Km.prototype.measure=function(){},Km.prototype.arrange=function(){};function Ym(){this.xa="Base"}vn(Ym,fu),Ym.prototype.measure=function(){},Ym.prototype.arrange=function(){};function Zm(){this.xa="Base"}vn(Zm,fu),Zm.prototype.measure=function(a,y,E,b,x,z,ne){1<b.length&&Pn("Viewbox Panel cannot contain more than one GraphObject."),b=b[0],b.Ca=1,b.Uj(),b.measure(1/0,1/0,z,ne);var oe=b.measuredBounds,ue=b.margin,he=ue.right+ue.left;if(ue=ue.top+ue.bottom,isFinite(y)||isFinite(E)){var ge=b.scale,Ee=oe.width;oe=oe.height;var ke=Math.max(y-he,0),Ve=Math.max(E-ue,0),Ze=1;a.viewboxStretch===wi?Ee!==0&&oe!==0&&(Ze=Math.min(ke/Ee,Ve/oe)):Ee!==0&&oe!==0&&(Ze=Math.max(ke/Ee,Ve/oe)),Ze===0&&(Ze=1e-4),b.Ca*=Ze,ge!==b.scale&&(Bt(b,!0),b.measure(1/0,1/0,z,ne))}oe=b.measuredBounds,x.width=isFinite(y)?y:Math.max(oe.width+he,0),x.height=isFinite(E)?E:Math.max(oe.height+ue,0)},Zm.prototype.arrange=function(a,y,E){y=y[0];var b=y.measuredBounds,x=y.margin,z=Math.max(b.width+(x.right+x.left),0);x=Math.max(b.height+(x.top+x.bottom),0);var ne=y.alignment;ne.Xb()&&(ne=a.defaultAlignment),ne.sb()||(ne=la),y.arrange(E.width*ne.x-z*ne.x+ne.offsetX,E.height*ne.y-x*ne.y+ne.offsetY,b.width,b.height)};function Kg(){this.xa="Base"}vn(Kg,fu),Kg.prototype.measure=function(){},Kg.prototype.arrange=function(){},Kg.prototype.gc=function(a,y,E){E=a.Df()*E.scale,0>=E&&(E=1);var b=a.gridCellSize,x=b.width;b=b.height;var z=a.naturalBounds,ne=a.actualBounds,oe=z.width,ue=z.height,he=Math.ceil(oe/x),ge=Math.ceil(ue/b),Ee=a.gridOrigin,ke=Ee.x;Ee=Ee.y,y.save(),y.beginPath(),y.rect(0,0,oe,ue),y.clip(),y.Se();for(var Ve=[],Ze=a.O.s,st=Ze.length,Ot=0;Ot<st;Ot++){var Pt=Ze[Ot],zt=[];if(Ve.push(zt),Pt.visible){var Kt=Pt.interval;if(!(0>Kt)){Pt=Nv(Pt.figure);for(var Jt=0;Jt<st;Jt++)if(Jt!==Ot){var dn=Ze[Jt];dn.visible&&Nv(dn.figure)===Pt&&(dn=dn.interval,dn>Kt&&zt.push(dn))}}}}for(Ze=a.O.s,st=Ze.length,Ot=0;Ot<st;Ot++){var kn=Ze[Ot];if(kn.visible&&(zt=kn.interval||1,Pt=Math.abs(zt),!(2>x*Pt*E))){if(Kt=kn.segmentIndex,(!isFinite(Kt)||isNaN(Kt))&&(Kt=0),0>Kt&&(Kt=Pt-Math.min(-Kt,Pt)),Kt=Math.round(Kt%Pt),Pt=kn.opacity,Jt=1,Pt!==1){if(Pt===0)continue;Jt=y.globalAlpha,y.globalAlpha=Jt*Pt}dn=Ve[Ot];var Xr=!1,Ei=kn.strokeDashArray;if(Ei!==null&&(Xr=!0,y.js(Ei,kn.strokeDashOffset)),kn.figure==="LineV"&&kn.stroke!==null&&0<kn.strokeWidth){for(y.lineWidth=kn.strokeWidth,xl(a,y,kn.stroke,!1,!1,z,ne),y.beginPath(),Ei=kn=Math.floor((ke-x)/x);Ei<=kn+he;Ei++){var fi=Ei*x+ke;0<=fi&&fi<=oe&&Xm(Ei,zt,Kt,dn)&&(y.moveTo(fi,0),y.lineTo(fi,ue))}y.stroke(),y.Se()}else if(kn.figure==="LineH"&&kn.stroke!==null&&0<kn.strokeWidth){for(y.lineWidth=kn.strokeWidth,xl(a,y,kn.stroke,!1,!1,z,ne),y.beginPath(),Ei=kn=Math.floor((Ee-b)/b);Ei<=kn+ge;Ei++)fi=Ei*b+Ee,0<=fi&&fi<=ue&&Xm(Ei,zt,Kt,dn)&&(y.moveTo(0,fi),y.lineTo(oe,fi));y.stroke(),y.Se()}else if(kn.figure==="BarV"&&kn.fill!==null)for(xl(a,y,kn.fill,!0,!1,z,ne),kn=kn.width,isNaN(kn)&&(kn=x),fi=Ei=Math.floor((ke-x)/x);fi<=Ei+he;fi++){var Dr=fi*x+ke;0<=Dr+kn&&Dr<=oe&&Xm(fi,zt,Kt,dn)&&y.fillRect(Dr,0,kn,ue)}else if(kn.figure==="BarH"&&kn.fill!==null)for(xl(a,y,kn.fill,!0,!1,z,ne),kn=kn.height,isNaN(kn)&&(kn=b),fi=Ei=Math.floor((Ee-b)/b);fi<=Ei+ge;fi++)Dr=fi*b+Ee,0<=Dr+kn&&Dr<=ue&&Xm(fi,zt,Kt,dn)&&y.fillRect(0,Dr,oe,kn);Xr&&y.fs(),Pt!==1&&(y.globalAlpha=Jt)}}y.restore(),y.Vc(!1)};function Xm(a,y,E,b){if(0>y)return a%y===E;if(a%y!==E)return!1;y=b.length;for(var x=0;x<y;x++)if(a%b[x]===E)return!1;return!0}function Qm(){this.xa="Base"}vn(Qm,fu),Qm.prototype.measure=function(a,y,E,b,x){var z=b.length;if(a instanceof Xa||a instanceof Fr){var ne=null,oe=null;if(a instanceof Fr&&(ne=a),a instanceof Xa&&(oe=a,ne=oe.adornedPart,a.j===null&&(a.j=[])),ne instanceof Fr){var ue=ne;if(z===0)ws(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var he=a instanceof Xa?null:ne.path;y=ne.routeBounds,E=a.jg,E.h(0,0,y.width,y.height);var ge=ue.points,Ee=ne.pointsCount;oe!==null?oe.Ul(!1):ne!==null&&ne.Ul(!1),oe=y.width;var ke=y.height,Ve=a.j;if(Ve.length=0,he!==null){sS(a,oe,ke,he);var Ze=he.measuredBounds;E.ed(Ze),Ve.push(Ze)}Ze=No.alloc();for(var st=xt.alloc(),Ot=xt.alloc(),Pt=0;Pt<z;Pt++){var zt=b[Pt];if(zt!==he)if(zt.isPanelMain&&zt instanceof Zo){sS(a,oe,ke,zt);var Kt=zt.measuredBounds;E.ed(Kt),Ve.push(Kt)}else if(2>Ee)zt.measure(1/0,1/0,0,0),Kt=zt.measuredBounds,E.ed(Kt),Ve.push(Kt);else{var Jt=zt.segmentIndex,dn=zt.segmentFraction,kn=zt.alignmentFocus;kn.Mc()&&(kn=la);var Xr=zt.segmentOrientation,Ei=zt.segmentOffset;if(isNaN(Jt)){var fi=ue.ua;Kt=Oi(),fi.Qu(dn,Kt);var Dr=xt.allocAt(Kt[0],Kt[1]);if(Dr.add(ue.i(0)),fi.type===Mr.j?Dr.offset(-fi.startX,-fi.startY):(fi=fi.figures.first(),fi!==null&&Dr.offset(-fi.startX,-fi.startY)),fi=Kt[2],Xr!==Nc){var gr=ue.computeAngle(zt,Xr,fi);zt.Kb=gr}gr=Dr.x-y.x;var Oo=Dr.y-y.y;xt.free(Dr),Yi(Kt)}else if(Jt<-Ee||Jt>=Ee)Kt=xt.alloc(),ue.vg(),ue.computeMidPoint(Kt),fi=ue.midAngle,Xr!==Nc&&(gr=ue.computeAngle(zt,Xr,fi),zt.Kb=gr),gr=Kt.x-y.x,Oo=Kt.y-y.y,xt.free(Kt);else{if(gr=0,0<=Jt?(Oo=ge.M(Jt),Kt=Jt<Ee-1?ge.M(Jt+1):Oo):(gr=Ee+Jt,Oo=ge.M(gr),Kt=0<gr?ge.M(gr-1):Oo),Oo.Xa(Kt)){0<=Jt?(fi=0<Jt?ge.M(Jt-1):Oo,gr=Jt<Ee-2?ge.M(Jt+2):Kt):(fi=gr<Ee-1?ge.M(gr+1):Oo,gr=1<gr?ge.M(gr-2):Kt),Dr=fi.Bf(Oo);var Eo=Kt.Bf(gr);fi=Dr>Eo+10?0<=Jt?fi.ab(Oo):Oo.ab(fi):Eo>Dr+10?0<=Jt?Kt.ab(gr):gr.ab(Kt):0<=Jt?fi.ab(gr):gr.ab(fi)}else fi=0<=Jt?Oo.ab(Kt):Kt.ab(Oo);Xr!==Nc&&(gr=ue.computeAngle(zt,Xr,fi),zt.Kb=gr),gr=Oo.x+(Kt.x-Oo.x)*dn-y.x,Oo=Oo.y+(Kt.y-Oo.y)*dn-y.y}zt.measure(1/0,1/0,0,0),Kt=zt.measuredBounds,Dr=zt.naturalBounds;var ts=0;zt instanceof Zo&&(ts=zt.strokeWidth),Eo=Dr.width+ts;var _s=Dr.height+ts;Ze.reset(),Ze.translate(-Kt.x,-Kt.y),Ze.scale(zt.scale,zt.scale),Ze.rotate(Xr===Nc?zt.angle:fi,Eo/2,_s/2),Xr!==om&&Xr!==sm||Ze.rotate(90,Eo/2,_s/2),Xr!==am&&Xr!==lm||Ze.rotate(-90,Eo/2,_s/2),Xr===A0&&(45<fi&&135>fi||225<fi&&315>fi)&&Ze.rotate(-fi,Eo/2,_s/2),Dr=new Un(0,0,Eo,_s),st.xi(Dr,kn),Ze.Ga(st),kn=-st.x+ts/2*zt.scale,zt=-st.y+ts/2*zt.scale,Ot.assign(Ei),ts=isNaN(Ei.x);var xu=isNaN(Ei.y);if(ts||xu){Eo=Eo/2+3,_s=_s/2+3;var Lu=45<=fi&&135>=fi,Sc=225<=fi&&315>=fi;Xr===Nc&&(Lu||Sc)?(Ot.x=xu?Eo:Ei.y,Ot.y=ts?_s:Ei.x,Lu?0<=Jt||isNaN(Jt)&&.5>dn||!ts||(Ot.y=-_s):Sc&&((0<=Jt||isNaN(Jt)&&.5>dn)&&ts&&(Ot.y=-_s),xu&&(Ot.x=-Eo))):(ts&&(Ot.x=0<=Jt||isNaN(Jt)&&.5>dn?Eo:-Eo),xu&&(Ot.y=-_s),Ot.rotate(fi))}else Ot.rotate(fi);gr+=Ot.x,Oo+=Ot.y,Dr.set(Kt),Dr.h(gr+kn,Oo+zt,Kt.width,Kt.height),Ve.push(Dr),E.ed(Dr)}}if(ne!==null)for(b=ne.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=E,a.position.h(y.x+E.x,y.y+E.y),ws(x,E.width||0,E.height||0),No.free(Ze),xt.free(st),xt.free(Ot)}}}},Qm.prototype.arrange=function(a,y){var E=y.length;if(a instanceof Xa||a instanceof Fr){var b=a,x=null;a instanceof Xa&&(x=a,b=x.adornedPart);var z=a instanceof Xa?null:b.path,ne=a.j;if(ne.length!==0){var oe=0;if(z!==null&&oe<ne.length){var ue=ne[oe];oe++,z.arrange(ue.x-a.jg.x,ue.y-a.jg.y,ue.width,ue.height)}for(ue=0;ue<E;ue++){var he=y[ue];if(he!==z&&oe<ne.length){var ge=ne[oe];oe++,he.arrange(ge.x-a.jg.x,ge.y-a.jg.y,ge.width,ge.height)}}}if(y=b.points,E=y.count,2<=E&&a instanceof Fr)for(z=a.labelNodes;z.next();){var Ee=a;ne=z.value,oe=ne.segmentIndex,ue=ne.segmentFraction;var ke=ne.alignmentFocus;if(he=ne.segmentOrientation,ge=ne.segmentOffset,isNaN(oe)){var Ve=Ee.ua,Ze=Oi();Ve.Qu(ue,Ze);var st=xt.allocAt(Ze[0],Ze[1]);st.add(Ee.i(0)),Ve.type===Mr.j||(Ve=Ve.figures.first()),st.offset(-Ve.startX,-Ve.startY),Ve=Ze[2],he!==Nc&&(Ee=Ee.computeAngle(ne,he,Ve),ne.angle=Ee),Ee=st.x;var Ot=st.y;xt.free(st),Yi(Ze)}else if(oe<-E||oe>=E)Ze=xt.alloc(),Ve=Ee,Ot=Ze,Ve.vg(),Ve.computeMidPoint(Ot),Ve=Ee.midAngle,he!==Nc&&(Ee=Ee.computeAngle(ne,he,Ve),ne.angle=Ee),Ee=Ze.x,Ot=Ze.y,xt.free(Ze);else{if(st=0,0<=oe?(Ze=y.s[oe],Ot=oe<E-1?y.s[oe+1]:Ze):(st=E+oe,Ze=y.s[st],Ot=0<st?y.s[st-1]:Ze),Ze.Xa(Ot)){0<=oe?(Ve=0<oe?y.s[oe-1]:Ze,st=oe<E-2?y.s[oe+2]:Ot):(Ve=st<E-1?y.s[st+1]:Ze,st=1<st?y.s[st-2]:Ot);var Pt=Ve.Bf(Ze),zt=Ot.Bf(st);Ve=Pt>zt+10?0<=oe?Ve.ab(Ze):Ze.ab(Ve):zt>Pt+10?0<=oe?Ot.ab(st):st.ab(Ot):0<=oe?Ve.ab(st):st.ab(Ve)}else Ve=0<=oe?Ze.ab(Ot):Ot.ab(Ze);he!==Nc&&(Ee=Ee.computeAngle(ne,he,Ve),ne.angle=Ee),Ee=Ze.x+(Ot.x-Ze.x)*ue,Ot=Ze.y+(Ot.y-Ze.y)*ue}if(ke.ys())ne.location=new xt(Ee,Ot);else{ke.Mc()&&(ke=la),Ze=No.alloc(),Ze.reset(),Ze.scale(ne.scale,ne.scale),Ze.rotate(ne.angle,0,0);var Kt=ne.naturalBounds;st=Un.allocAt(0,0,Kt.width,Kt.height),Pt=xt.alloc(),Pt.xi(st,ke),Ze.Ga(Pt),ke=-Pt.x,zt=-Pt.y;var Jt=Kt.width,dn=Kt.height;Kt=xt.alloc(),Kt.assign(ge);var kn=isNaN(ge.x),Xr=isNaN(ge.y);if(kn||Xr){Jt=Jt/2+3,dn=dn/2+3;var Ei=45<=Ve&&135>=Ve,fi=225<=Ve&&315>=Ve;he===Nc&&(Ei||fi)?(Kt.x=Xr?Jt:ge.y,Kt.y=kn?dn:ge.x,Ei?0<=oe||isNaN(oe)&&.5>ue||!kn||(Kt.y=-dn):fi&&((0<=oe||isNaN(oe)&&.5>ue)&&kn&&(Kt.y=-dn),Xr&&(Kt.x=-Jt))):(kn&&(Kt.x=0<=oe||isNaN(oe)&&.5>ue?Jt:-Jt),Xr&&(Kt.y=-dn),Kt.rotate(Ve))}else Kt.rotate(Ve);Ee+=Kt.x,Ot+=Kt.y,Ze.pp(st),ke+=st.x,zt+=st.y,oe=xt.allocAt(Ee+ke,Ot+zt),ne.move(oe),xt.free(oe),xt.free(Kt),xt.free(Pt),Un.free(st),No.free(Ze)}}x!==null?x.Ul(!1):b.Ul(!1),b=BS(a),a.location.h(a.position.x+b.x,a.position.y+b.y),xt.free(b)}};function sS(a,y,E,b){if(Ht(b)!==!1){var x=b.strokeWidth;x===0&&a instanceof Xa&&a.type===kr.Link&&a.adornedObject instanceof Zo&&(x=a.adornedObject.strokeWidth),x*=b.Ca,a instanceof Fr&&a.ua!==null?(a=a.geometry.bounds,b.Ge(a.x-x/2,a.y-x/2,a.width+x,a.height+x)):a instanceof Xa&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,b.Ge(a.x-x/2,a.y-x/2,a.width+x,a.height+x)):b.Ge(-(x/2),-(x/2),y+x,E+x),x=b.desiredSize,x.w()||b.ua===null?b.dc.h(0,0,x.width,x.height):b.dc.assign(b.ua.bounds),Bt(b,!1)}}function Yg(){this.xa="Base"}vn(Yg,fu),Yg.prototype.measure=function(a,y,E,b,x,z,ne){var oe=a.Pb();a.graduatedBounds=[];var ue=oe.margin,he=ue.right+ue.left,ge=ue.top+ue.bottom;oe.measure(y,E,z,ne);var Ee=oe.measuredBounds,ke=new Un(-ue.left,-ue.top,Math.max(Ee.width+he,0),Math.max(Ee.height+ge,0));a.graduatedBounds.push(ke),x.assign(ke);for(var Ve=oe.geometry,Ze=oe.strokeWidth,st=Ve.flattenedSegments,Ot=Ve.flattenedLengths,Pt=Ve.flattenedTotalLength,zt=st.length,Kt=0,Jt=0,dn=Oi(),kn=0;kn<zt;kn++){var Xr=st[kn],Ei=[];Jt=Kt=0;for(var fi=Xr.length,Dr=0;Dr<fi;Dr+=2){var gr=Xr[Dr],Oo=Xr[Dr+1];if(Dr!==0){var Eo=180*Math.atan2(Oo-Jt,gr-Kt)/Math.PI;0>Eo&&(Eo+=360),Ei.push(Eo)}Kt=gr,Jt=Oo}dn.push(Ei)}if(a.graduatedIntervals===null){for(var ts=[],_s=a.O.s,xu=_s.length,Lu=0;Lu<xu;Lu++){var Sc=_s[Lu],wu=[];if(ts.push(wu),Sc.visible){var Sf=Sc.interval;if(!(0>Sf)){for(var Zl=0;Zl<xu;Zl++)if(Zl!==Lu){var uh=_s[Zl];if(uh.visible&&Sc.constructor===uh.constructor){var Ec=uh.interval;Ec>Sf&&wu.push(Ec)}}}}}a.graduatedIntervals=ts}var Ef=a.graduatedIntervals,xd=a.O.s,Bd=xd.length,ud=0,td=0,Zf=Pt;a.graduatedMarks=[];for(var ch,Og=0;Og<Bd;Og++){var cd=xd[Og];if(ch=[],cd.visible&&cd!==oe){var bc=Math.abs(cd.interval),Rm=a.graduatedTickUnit;if(!(2>Rm*bc*Pt/a.graduatedRange&&cd.graduatedSkip===null)){var Kp=Ot[0][0],Sh=0,nd=0;td=Pt*cd.graduatedStart-1e-4,Zf=Pt*cd.graduatedEnd+1e-4;var gp=Rm*bc,dd=a.graduatedTickBase;if(dd<a.graduatedMin){var Xf=(a.graduatedMin-dd)/gp;Xf=Xf%1===0?Xf:Math.floor(Xf+1),dd+=Xf*gp}else dd>a.graduatedMin+gp&&(dd-=Math.floor((dd-a.graduatedMin)/gp)*gp);for(var pv=Ef[Og],Mm=dd,qy=1e-6*a.graduatedMax,_h=1;dd<=a.graduatedMax+qy;_h++){e:{for(var $h=pv.length,Yp=0;Yp<$h;Yp++){var Qf=(dd-a.graduatedTickBase)%(pv[Yp]*a.graduatedTickUnit),Dg=1e-6*a.graduatedTickUnit;if(Qf<Dg&&Qf>-Dg){var Jf=!1;break e}}Jf=!0}if(Jf&&(dd>a.graduatedMax&&(dd=a.graduatedMax),cd.graduatedSkip===null||cd instanceof Us&&!cd.graduatedSkip(dd,cd)||cd instanceof Zo&&!cd.graduatedSkip(dd,cd))&&(ud=(dd-a.graduatedMin)*Pt/a.graduatedRange,ud>Pt&&(ud=Pt),td<=ud&&ud<=Zf)){for(var Uh=dn[Sh][nd],bf=Ot[Sh][nd];Sh<Ot.length;){for(;ud>Kp&&nd<Ot[Sh].length-1;)nd++,Uh=dn[Sh][nd],bf=Ot[Sh][nd],Kp+=bf;if(ud<=Kp)break;Sh++,nd=0,Uh=dn[Sh][nd],bf=Ot[Sh][nd],Kp+=bf}var rd=st[Sh],Eh=rd[2*nd],gv=rd[2*nd+1],qh=(ud-(Kp-bf))/bf,Fg=new xt(Eh+(rd[2*nd+2]-Eh)*qh+Ze/2-Ve.bounds.x,gv+(rd[2*nd+3]-gv)*qh+Ze/2-Ve.bounds.y);Fg.scale(oe.scale,oe.scale);e:{var dh=Uh,mp=dn[Sh];if(!(.5005>qh&&.4995<qh)){var bh=dh;if(.5>qh?0<nd?bh=mp[nd-1]:gn.$(rd[0],rd[rd.length-2])&&gn.$(rd[1],rd[rd.length-1])&&(bh=mp[mp.length-1]):.5<qh&&(nd+1<mp.length?bh=mp[nd+1]:gn.$(rd[0],rd[rd.length-2])&&gn.$(rd[1],rd[rd.length-1])&&(bh=mp[0])),dh!==bh){var Zp=Math.abs(dh-bh);if(180<Zp&&(dh<bh?dh+=360:bh+=360,Zp=Math.abs(dh-bh)),5e-4>qh||.9995<qh){Uh=(dh+bh)/2%360;break e}if(10>Zp){var Bg=1-Math.abs(.5-qh);Uh=(dh*Bg+bh*(1-Bg))%360;break e}}}Uh=dh}if(cd instanceof Us){var Xd="";cd.graduatedFunction!==null?(Xd=cd.graduatedFunction(dd,cd),Xd=Xd!=null?Xd.toString():""):Xd=(+dd.toFixed(2)).toString(),Xd!==""&&ch.push({$l:Fg,angle:Uh,text:Xd})}else ch.push({$l:Fg,angle:Uh})}dd=Mm+_h*gp}}}a.graduatedMarks.push(ch)}Yi(dn);var Ou=a.graduatedMarks;if(Ou!==null)for(var Om=b.length,Mc=0;Mc<Om;Mc++){var Xl=b[Mc],Oc=Ou[Mc];if(Xl.visible&&Xl!==oe&&Oc.length!==0){if(Xl instanceof Zo){var ef=a,xf=x,vp=Xl.alignmentFocus;vp.Mc()&&(vp=Ul);var eS=Xl.angle;Xl.Kb=0,Xl.measure(1/0,1/0,0,0),Xl.Kb=eS;var mv=Xl.measuredBounds,_g=mv.width,yp=mv.height,Xp=Un.allocAt(0,0,_g,yp),id=xt.alloc();id.xi(Xp,vp),Un.free(Xp);for(var tf=-id.x,hh=-id.y,Ld=new Un,$f=Oc.length,Ug=0;Ug<$f;Ug++)for(var qf=Oc[Ug],vv=qf.$l.x,Hg=qf.$l.y,_l=qf.angle,Qd=0;4>Qd;Qd++){switch(Qd){case 0:id.h(tf,hh);break;case 1:id.h(tf+_g,hh);break;case 2:id.h(tf,hh+yp);break;case 3:id.h(tf+_g,hh+yp)}id.rotate(_l+Xl.angle),id.offset(vv,Hg),Ug===0&&Qd===0?Ld.h(id.x,id.y,0,0):Ld.Ye(id),id.offset(-vv,-Hg),id.rotate(-_l-Xl.angle)}xt.free(id),ef.graduatedBounds!==null&&ef.graduatedBounds.push(Ld),Wa(xf,Ld.x,Ld.y,Ld.width,Ld.height)}else if(Xl instanceof Us){var _d=a,yv=x;_d.temporaryTextBlock===null&&(_d.temporaryTextBlock=new Us);var hd=_d.temporaryTextBlock;xS(hd,Xl);var wf=Xl.alignmentFocus;wf.Mc()&&(wf=Ul);for(var Ud=Xl.segmentOrientation,jg=Xl.segmentOffset,ep=new Un,Dm=0,Gg=0,xh=0,Sp=0,tp=0,zg=Oc.length,Cf=0;Cf<zg;Cf++){var Hh=Oc[Cf];Dm=Hh.$l.x,Gg=Hh.$l.y,xh=Hh.angle,tp=Sp=Xl.angle,Ud!==Nc&&(tp=Ud===im||Ud===T0?xh+Xl.angle:xh,Sp=Fr.computeAngle(Ud,tp)),hd.Kb=Sp,hd.text=Hh.text||"",hd.measure(1/0,1/0,0,0);var Tf=hd.measuredBounds,nf=hd.naturalBounds,Af=nf.width,Ep=nf.height,fh=No.alloc();fh.reset(),fh.translate(-Tf.x,-Tf.y),fh.scale(hd.scale,hd.scale),fh.rotate(tp,Af/2,Ep/2),Ud!==om&&Ud!==sm||fh.rotate(90,Af/2,Ep/2),Ud!==am&&Ud!==lm||fh.rotate(-90,Af/2,Ep/2),Ud===A0&&(45<xh&&135>xh||225<xh&&315>xh)&&fh.rotate(-xh,Af/2,Ep/2);var Qp=Un.allocAt(0,0,Af,Ep),Pf=xt.alloc();Pf.xi(Qp,wf),fh.Ga(Pf);var Jp=-Pf.x,tS=-Pf.y,rf=xt.alloc();rf.assign(jg),isNaN(rf.x)&&(rf.x=Af/2+3),isNaN(rf.y)&&(rf.y=-(Ep/2+3)),rf.rotate(xh),Dm+=rf.x+Jp,Gg+=rf.y+tS;var bp=new Un(Dm,Gg,Tf.width,Tf.height),Fm=new Un(Tf.x,Tf.y,Tf.width,Tf.height),nS=new Un(nf.x,nf.y,nf.width,nf.height);Hh.Sz=Sp,Hh.lineCount=hd.lineCount,Hh.lines=[hd.Cb,hd.Ih,hd.df,hd.Le,hd.Qc,hd.Qb,hd.ze],Hh.actualBounds=bp,Hh.measuredBounds=Fm,Hh.naturalBounds=nS,Cf===0?ep.assign(bp):ep.ed(bp),xt.free(rf),xt.free(Pf),Un.free(Qp),No.free(fh)}_d.graduatedBounds!==null&&_d.graduatedBounds.push(ep),Wa(yv,ep.x,ep.y,ep.width,ep.height)}Bt(Xl,!1)}}},Yg.prototype.arrange=function(a,y,E){if(a.graduatedBounds!==null){var b=a.Pb(),x=a.graduatedMarks;if(x!==null){var z=a.graduatedBounds,ne=0,oe=z[ne];ne++,b!==null&&b.arrange(oe.x-E.x,oe.y-E.y,oe.width,oe.height);for(var ue=y.length,he=0;he<ue;he++){var ge=y[he];oe=x[he],ge.visible&&ge!==b&&oe.length!==0&&(oe=z[ne],ne++,ge.arrange(oe.x-E.x,oe.y-E.y,oe.width,oe.height))}a.graduatedBounds=null}}},Yg.prototype.gc=function(a,y,E){var b=E.$i;E.$i=!0;var x=a.naturalBounds,z=x.width,ne=x.height;x=y instanceof ps,y.save(),y.beginPath(),y.rect(-1,-1,z+1,ne+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,E),ne=a.Df()*E.scale,0>=ne&&(ne=1);for(var oe=z.actualBounds,ue=a.O.s,he=a.graduatedMarks,ge=ue.length,Ee=0;Ee<ge;Ee++){var ke=ue[Ee],Ve=he[Ee],Ze=Ve.length;if(ke.visible&&ke!==z&&Ve.length!==0){if(ke instanceof Zo){if(!(2>a.graduatedTickUnit*ke.interval*z.geometry.flattenedTotalLength/a.graduatedRange*ne&&ke.graduatedSkip===null)){var st=ke.measuredBounds,Ot=ke.strokeWidth*ke.scale,Pt=ke.alignmentFocus;Pt.Mc()&&(Pt=Ul);for(var zt=0;zt<Ze;zt++){var Kt=Ve[zt].$l,Jt=Ve[zt].angle,dn=Pt,kn=ke.Ab;kn.reset(),kn.translate(Kt.x+oe.x,Kt.y+oe.y),kn.rotate(Jt+ke.angle,0,0),kn.translate(-st.width*dn.x+dn.offsetX+Ot/2,-st.height*dn.y+dn.offsetY+Ot/2),kn.scale(ke.scale,ke.scale),Je(ke,!1),ke.wh.set(ke.Ab),ke.Kk=ke.scale,yt(ke,!1),ke.gc(y,E),x&&(a.svg.appendChild(ke.svg),ke.svg=null),ke.Ab.reset()}}}else if(ke instanceof Us)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Us),st=a.temporaryTextBlock,xS(st,ke),Ot=0;Ot<Ze;Ot++)Pt=Ve[Ot],Pt.actualBounds&&Pt.measuredBounds&&Pt.naturalBounds&&(st.ec=Pt.text||"",st.Kb=Pt.Sz||0,st.Gc=Pt.lineCount||0,zt=Pt.lines,zt!==void 0&&(st.Cb=zt[0],st.Ih=zt[1],st.df=zt[2],st.Le=zt[3],st.Qc=zt[4],st.Qb=zt[5],st.ze=zt[6]),Pt.naturalBounds&&(st.dc=Pt.naturalBounds),Pt.actualBounds&&(zt=Pt.actualBounds,st.arrange(zt.x,zt.y,zt.width,zt.height)),zt=Pt.actualBounds,st.arrange(zt.x,zt.y,zt.width,zt.height),Kt=Pt.measuredBounds,Pt=Pt.naturalBounds,Jt=st.Ab,Jt.reset(),Jt.translate(zt.x+oe.x,zt.y+oe.y),Jt.translate(-Kt.x,-Kt.y),st.no(Jt,Pt.x,Pt.y,Pt.width,Pt.height),Je(st,!1),st.wh.set(st.Ab),st.Kk=st.scale,yt(st,!1),st.Ng=ke.part,st.Me=ke.panel,st.gc(y,E),st.Me=null,st.Ng=null,x&&(a.svg.appendChild(st.svg),st.svg=null))}}E.$i=b,y.restore(),y.Vc(!0)};function kr(a,y){if(pn.call(this),this.na=null,a===void 0)this.na=kr.Position;else if(typeof a=="string"){var E=zd.I(a);E!==null&&(this.na=E)}else a instanceof fu?this.na=a:a&&(this.na=kr.Position,y=a);this.na===null&&Pn("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===kr.Grid?1048576:0),this.O=new Ar,this.yb=Gs,this.Tm=yl,this.Uf=Mo,this.$g=null,this.$e="",this.jg=new Un(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=wi,this.jn=zi,this.kn=Po,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}vn(kr,pn),kr.prototype.cloneProtected=function(a){pn.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},kr.prototype.Af=function(a){pn.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,E=y.length,b=0;b<E;b++)y[b].Me=a;a.$g=null},kr.prototype.copy=function(){var a=pn.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,E=y.length,b=0;b<E;b++){var x=y[b].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 oe=a.diagram;oe!==null&&oe.undoManager.isUndoingRedoing||z.cb(Js,"elements",a,null,x,null,ne)}}return a}return null},We=kr.prototype,We.toString=function(){return"Panel("+this.type.name+")#"+Qt(this)},We.Pn=function(a){pn.prototype.Pn.call(this,a);for(var y=this.O.s,E=y.length,b=0;b<E;b++)y[b].Pn(a)},We.hh=function(a,y){if(this.na===kr.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===kr.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===kr.Table)if(a.yc(),a instanceof ps){var E=a.yd;a.yd=yd(a,"gojs-ts"),Pv(this,a),a.nh.pop(),a.yd=E}else Pv(this,a);(E=this.isClipping&&this.na===kr.Spot)&&a.save();for(var b=this.Pb(),x=this.O.s,z=x.length,ne=0;ne<z;ne++){var oe=x[ne];E&&oe===b&&(a.clipInsteadOfFill=!0),oe.gc(a,y),E&&oe===b&&(a.clipInsteadOfFill=!1)}E&&(a.restore(),a.Vc(!0))}};function Pv(a,y){y.lineCap="butt";var E=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;E!==null&&Jm(a,y,!0,E,!0),b!==null&&Jm(a,y,!1,b,!0),E!==null&&lS(a,y,!0,E),b!==null&&lS(a,y,!1,b),E!==null&&Jm(a,y,!0,E,!1),b!==null&&Jm(a,y,!1,b,!1)}function lS(a,y,E,b){for(var x=b.length,z=a.actualBounds,ne=a.naturalBounds,oe=!0,ue=0;ue<x;ue++){var he=b[ue];if(he!==void 0&&he.actual!==0)if(oe)oe=!1;else{if(E){if(he.position>ne.height)continue}else if(he.position>ne.width)continue;var ge=he.separatorStrokeWidth;isNaN(ge)&&(ge=E?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Ee=he.separatorStroke;if(Ee===null&&(Ee=E?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ge!==0&&Ee!==null){xl(a,y,Ee,!1,!1,ne,z),Ee=!1;var ke=he.separatorDashArray;ke===null&&(ke=E?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),ke!==null&&(Ee=!0,y.js(ke,0)),y.beginPath(),ke=he.position+ge,E?ke>ne.height&&(ge-=ke-ne.height):ke>ne.width&&(ge-=ke-ne.width),he=he.position+ge/2,y.lineWidth=ge,ge=a.yb,E?(he+=ge.top,ke=ne.width-ge.right,y.moveTo(ge.left,he),y.lineTo(ke,he)):(he+=ge.left,ke=ne.height-ge.bottom,y.moveTo(he,ge.top),y.lineTo(he,ke)),y.stroke(),y.Se(),Ee&&y.fs()}}}}function Jm(a,y,E,b,x){for(var z=b.length,ne=a.actualBounds,oe=a.naturalBounds,ue=uS(a,!0),he=uS(a,!1),ge=0;ge<z;ge++){var Ee=b[ge];if(Ee!==void 0&&Ee.background!==null&&Ee.coversSeparators!==x&&Ee.actual!==0){var ke=E?ne.height:ne.width;if(!(Ee.position>ke)){var Ve=Ee.Wc(),Ze=Ee.separatorStrokeWidth;isNaN(Ze)&&(Ze=E?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var st=Ee.separatorStroke;st===null&&(st=E?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(st===null||Ee.index===(E?ue:he))&&(Ze=0),Ve-=Ze,Ze=Ee.position+Ze,Ve+=Ee.actual,Ze+Ve>ke&&(Ve=ke-Ze),0>=Ve||(ke=a.yb,xl(a,y,Ee.background,!0,!1,oe,ne),E?y.fillRect(ke.left,Ze+ke.top,ne.width-(ke.left+ke.right),Ve):y.fillRect(Ze+ke.left,ke.top,Ve,ne.height-(ke.top+ke.bottom)))}}}}function uS(a,y){for(var E=y?a.rowCount:a.columnCount,b=0;b<E;b++){var x=y?a.rowDefs[b]:a.colDefs[b];if(x!==void 0)return x.index}return 0}function Nv(a){return a==="LineV"||a==="BarV"}We.lv=function(){for(var a=this.O.s,y=a.length,E=0;E<y;E++)a[E].lv();this.Uc=!0},We.kk=function(a,y,E){if(!pn.prototype.kk.call(this,a,y,E))return!1;if(this.type===kr.Table)E=this.svg.getElementsByClassName("gojs-ts"),E=E.length!==0?E[0]:null,E!==null&&(E.innerHTML=""),a.yd=E,Pv(this,a),a.yd=null;else if(this.na===kr.Grid||this.na===kr.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;E=this.O.s;for(var b=E.length,x=0;x<b;x++)E[x].gc(a,y);return!0},We.nk=function(){return!0},We.$o=function(a,y,E,b){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 oe=y[ne].actualBounds;x=ne===0?oe.x:Math.min(oe.x,x),z=ne===0?oe.y:Math.min(oe.y,z)}b.setAttributeNS(null,"clip-path","path('M "+(a.x-E.x-x)+","+(a.y-E.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else pn.prototype.$o.call(this,a,y,E,b)},We.Sj=function(a,y,E,b,x){var z=this.se(),ne=this.transform,oe=1/(ne.m11*ne.m22-ne.m12*ne.m21),ue=ne.m22*oe,he=-ne.m12*oe,ge=-ne.m21*oe,Ee=ne.m11*oe,ke=oe*(ne.m21*ne.dy-ne.m22*ne.dx),Ve=oe*(ne.m12*ne.dx-ne.m11*ne.dy);if(this.areaBackground!==null)return ne=this.actualBounds,gn.Ff(ne.left,ne.top,ne.right,ne.bottom,a,y,E,b,x);if(this.background!==null)return z=a*ue+y*ge+ke,oe=a*he+y*Ee+Ve,a=E*ue+b*ge+ke,ue=E*he+b*Ee+Ve,x.h(0,0),E=this.naturalBounds,z=gn.Ff(0,0,E.width,E.height,z,oe,a,ue,x),x.transform(ne),z;z||(ue=1,ge=he=0,Ee=1,Ve=ke=0),oe=a*ue+y*ge+ke,a=a*he+y*Ee+Ve,ue=E*ue+b*ge+ke,E=E*he+b*Ee+Ve,x.h(ue,E),b=(ue-oe)*(ue-oe)+(E-a)*(E-a),he=!1,Ee=this.O.s,Ve=Ee.length,ge=xt.alloc(),ke=null,y=1/0;var Ze=null,st=this.isClipping&&this.na===kr.Spot;st&&(Ze=xt.alloc(),ke=this.Pb(),(he=ke.Sj(oe,a,ue,E,Ze))&&(y=(oe-Ze.x)*(oe-Ze.x)+(a-Ze.y)*(a-Ze.y)));for(var Ot=0;Ot<Ve;Ot++){var Pt=Ee[Ot];Pt.visible&&Pt!==ke&&Pt.Sj(oe,a,ue,E,ge)&&(he=!0,Pt=(oe-ge.x)*(oe-ge.x)+(a-ge.y)*(a-ge.y),Pt<b&&(b=Pt,x.set(ge)))}return st&&(y>b&&x.set(Ze),xt.free(Ze)),xt.free(ge),z&&x.transform(ne),he},We.Gj=function(){for(var a=this.O.s,y=a.length,E=0;E<y;E++)a[E].Gj();pn.prototype.Gj.call(this)},We.v=function(a){if(!Ht(this)){pn.prototype.v.call(this,a),a=null,(this.na===kr.Auto||this.na===kr.Link)&&(a=this.Pb());for(var y=this.O.s,E=y.length,b=0;b<E;b++){var x=y[b];if((x===a||x.isPanelMain)&&x.v(!0),!x.desiredSize.w()){var z=vc(x,!1);(x instanceof Pc||x instanceof kr||x instanceof Us||z!==Sr)&&x.v(!0)}}}},We.Uj=function(){if(!Ht(this)){Bt(this,!0),rn(this,!0);for(var a=this.O.s,y=a.length,E=0;E<y;E++)a[E].Uj()}},We.Uk=function(){if(!(this.l&2048)){Je(this,!0),yt(this,!0);for(var a=this.O.s,y=a.length,E=0;E<y;E++)a[E].Wu()}},We.Wu=function(){yt(this,!0);for(var a=this.O.s,y=a.length,E=0;E<y;E++)a[E].Wu()},We.Wl=function(a,y,E,b){var x=this.jg;x.h(0,0,0,0);var z=this.desiredSize,ne=this.minSize;E===void 0&&(E=ne.width,b=ne.height),E=Math.max(E,ne.width),b=Math.max(b,ne.height);var oe=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,oe.width)),isNaN(z.height)||(y=Math.min(z.height,oe.height)),a=Math.max(E,a),y=Math.max(b,y);var ue=this.yb;a=Math.max(a-ue.left-ue.right,0),y=Math.max(y-ue.top-ue.bottom,0);var he=this.O.s;he.length!==0&&this.na.measure(this,a,y,he,x,E,b),a=x.width+ue.left+ue.right,ue=x.height+ue.top+ue.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(ue=z.height),a=Math.min(oe.width,a),ue=Math.min(oe.height,ue),a=Math.max(ne.width,a),ue=Math.max(ne.height,ue),a=Math.max(E,a),ue=Math.max(b,ue),ws(x,a,ue),ws(this.naturalBounds,a,ue),this.Ge(0,0,a,ue)},We.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var E=0;E<y;E++){var b=a[E];if(b.isPanelMain===!0)return this.$g=b}this.$g=a[0]}return this.$g};function Xh(a){return a.part!==null?a.part.locationObject:null}We.eh=function(a,y,E,b){var x=this.O.s;if(this.actualBounds.h(a,y,E,b),x.length!==0){if(!this.desiredSize.w()){a=vc(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var ne=this.Kg,oe=ne.left+ne.right;switch(ne=ne.top+ne.bottom,y===E&&z===b&&(a=Sr),a){case Sr:(y>E||z>b)&&(this.v(),this.measure(y>E?E:y,z>b?b:z,0,0));break;case Lr:this.v(!0),this.measure(E+oe,b+ne,0,0);break;case ki:this.v(!0),this.measure(E+oe,z+ne,0,0);break;case oo:this.v(!0),this.measure(y+oe,b+ne,0,0)}}this.na.arrange(this,x,this.jg)}},We.gh=function(a){var y=this.naturalBounds,E=Xh(this);if(vs(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,x=xt.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===E)&&(pr(x.set(a),z.transform),z.ca(x)))return xt.free(x),!0}return xt.free(x),!(this.Ma===null&&this.areaBackground===null)}return!1},We.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,E=y.length,b=0;b<E;b++){var x=y[b].ks(a);if(x!==null)return x}return null},We.qm=function(a,y){if(y(this,a),a instanceof kr){a=a.O.s;for(var E=a.length,b=0;b<E;b++)this.qm(a[b],y)}};function sp(a,y){cS(a,a,y)}function cS(a,y,E){E(y),y=y.O.s;for(var b=y.length,x=0;x<b;x++){var z=y[x];z instanceof kr&&cS(a,z,E)}}function a1(a,y){dS(a,a,y)}function dS(a,y,E){if(E(y),y instanceof kr){y=y.O.s;for(var b=y.length,x=0;x<b;x++)dS(a,y[x],E)}}We.Nl=function(a){return hS(this,this,a)};function hS(a,y,E){if(E(y))return y;if(y instanceof kr){y=y.O.s;for(var b=y.length,x=0;x<b;x++){var z=hS(a,y[x],E);if(z!==null)return z}}return null}We.fb=function(a){if(this.name===a)return this;var y=this.O.s,E=y.length;this.Hh===null&&this.itemTemplateMap===null||(E=Zg(this));for(var b=0;b<E;b++){var x=y[b];if(x instanceof kr){var z=x.fb(a);if(z!==null)return z}if(x.name===a)return x}return null};function fS(a){a=a.O.s;for(var y=a.length,E=0,b=0;b<y;b++){var x=a[b];x instanceof kr?E=Math.max(E,fS(x)):x instanceof Zo&&(E=Math.max(E,x.ig/2*x.strokeMiterLimit*x.Df()))}return E}We.se=function(){return!(this.type===kr.TableRow||this.type===kr.TableColumn)};function uf(a){return a.type===kr.TableRow||a.type===kr.TableColumn}We.ic=function(a,y,E){if(this.pickable===!1||(y===void 0&&(y=null),E===void 0&&(E=null),Xt(this)))return null;var b=this.naturalBounds,x=1/this.Df(),z=this.se(),ne=z?a:pr(xt.allocAt(a.x,a.y),this.transform),oe=this.diagram,ue=10,he=5;if(oe!==null&&(ue=oe.Ql("extraTouchArea"),he=ue/2),vs(-(he*x),-(he*x),b.width+ue*x,b.height+ue*x,ne.x,ne.y)){if(!this.isAtomic){x=this.O.s;var ge=x.length;if(oe=xt.alloc(),he=(ue=this.isClipping&&this.na===kr.Spot)?this.Pb():null,ue&&(he.se()?pr(oe.set(a),he.transform):oe.set(a),!he.ca(oe)))return xt.free(oe),z||xt.free(ne),null;for(var Ee=Xh(this);ge--;){var ke=x[ge];if((ke.visible||ke===Ee)&&(ke.se()?pr(oe.set(a),ke.transform):oe.set(a),!ue||ke!==he)){var Ve=null;if(ke instanceof kr?Ve=ke.ic(oe,y,E):ke.pickable===!0&&ke.ca(oe)&&(Ve=ke),Ve!==null&&(y!==null&&(Ve=y(Ve)),Ve!==null&&(E===null||E(Ve))))return xt.free(oe),z||xt.free(ne),Ve}}xt.free(oe)}return this.background===null&&this.areaBackground===null?(z||xt.free(ne),null):(a=vs(0,0,b.width,b.height,ne.x,ne.y)?this:null,z||xt.free(ne),a)}return z||xt.free(ne),null},We.ji=function(a,y,E,b){if(this.pickable===!1)return!1;y===void 0&&(y=null),E===void 0&&(E=null);var x=this.naturalBounds,z=this.se(),ne=z?a:pr(xt.allocAt(a.x,a.y),this.transform);if(x=vs(0,0,x.width,x.height,ne.x,ne.y),uf(this)||x){if(!this.isAtomic){for(var oe=this.O.s,ue=oe.length,he=xt.alloc(),ge=Xh(this);ue--;){var Ee=oe[ue];if(Ee.visible||Ee===ge){Ee.se()?pr(he.set(a),Ee.transform):he.set(a);var ke=Ee;Ee=Ee instanceof kr?Ee:null,(Ee!==null?Ee.ji(he,y,E,b):ke.ca(he))&&ke.pickable!==!1&&(y!==null&&(ke=y(ke)),ke===null||E!==null&&!E(ke)||b.add(ke))}}xt.free(he)}return z||xt.free(ne),x&&(this.background!==null||this.areaBackground!==null)}return z||xt.free(ne),!1},We.Cf=function(a,y,E,b,x,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),E===void 0&&(E=null);var ne=z;if(z===void 0&&(ne=No.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return Lv(this,y,E,x),z===void 0&&No.free(ne),!0;if(this.Yc(a,ne)){if(!this.isAtomic)for(var oe=Xh(this),ue=this.O.s,he=ue.length;he--;){var ge=ue[he];if(ge.visible||ge===oe){var Ee=ge.actualBounds,ke=this.naturalBounds;Ee.x>ke.width||Ee.y>ke.height||0>Ee.x+Ee.width||0>Ee.y+Ee.height||(Ee=ge,ge=ge instanceof kr?ge:null,ke=No.alloc(),ke.set(ne),(ge!==null?ge.Cf(a,y,E,b,x,ke):ou(Ee,a,b,ke))&&(y!==null&&(Ee=y(Ee)),Ee===null||E!==null&&!E(Ee)||x.add(Ee)),No.free(ke))}}return z===void 0&&No.free(ne),b}return z===void 0&&No.free(ne),!1};function Lv(a,y,E,b){for(var x=a.O.s,z=x.length;z--;){var ne=x[z];if(ne.visible){var oe=ne.actualBounds,ue=a.naturalBounds;oe.x>ue.width||oe.y>ue.height||0>oe.x+oe.width||0>oe.y+oe.height||(ne instanceof kr&&Lv(ne,y,E,b),y!==null&&(ne=y(ne)),ne===null||E!==null&&!E(ne)||b.add(ne))}}}We.og=function(a,y,E,b,x,z){if(this.pickable===!1)return!1;E===void 0&&(E=null),b===void 0&&(b=null);var ne=this.naturalBounds,oe=this.se(),ue=oe?a:pr(xt.allocAt(a.x,a.y),this.transform),he=oe?y:pr(xt.allocAt(y.x,y.y),this.transform),ge=ue.Bf(he),Ee=0<ue.x&&ue.x<ne.width&&0<ue.y&&ue.y<ne.height||Tr(ue.x,ue.y,0,0,0,ne.height)<=ge||Tr(ue.x,ue.y,0,ne.height,ne.width,ne.height)<=ge||Tr(ue.x,ue.y,ne.width,ne.height,ne.width,0)<=ge||Tr(ue.x,ue.y,ne.width,0,0,0)<=ge;if(ne=ue.zd(0,0)<=ge&&ue.zd(0,ne.height)<=ge&&ue.zd(ne.width,0)<=ge&&ue.zd(ne.width,ne.height)<=ge,oe||(xt.free(ue),xt.free(he)),Ee){if(!this.isAtomic){ue=xt.alloc(),he=xt.alloc(),ge=Xh(this);for(var ke=this.O.s,Ve=ke.length;Ve--;){var Ze=ke[Ve];if(Ze.visible||Ze===ge){var st=Ze.actualBounds,Ot=this.naturalBounds;(!oe||!(st.x>Ot.width||st.y>Ot.height||0>st.x+st.width||0>st.y+st.height))&&(Ze.se()?(st=Ze.transform,pr(ue.set(a),st),pr(he.set(y),st)):(ue.set(a),he.set(y)),st=Ze,Ze=Ze instanceof kr?Ze:null,(Ze!==null?Ze.og(ue,he,E,b,x,z):st.tx(ue,he,x))&&(E!==null&&(st=E(st)),st===null||b!==null&&!b(st)||z.add(st)))}}xt.free(ue),xt.free(he)}return x?Ee:ne}return!1};function Iv(a){var y=null;return a instanceof Zo&&(y=a.spot1,y===yl&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Vs),y}function kv(a){var y=null;return a instanceof Zo&&(y=a.spot2,y===yl&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=eu),y}We.add=function(a){for(var y=[],E=0;E<arguments.length;++E)y[E]=arguments[E];for(E=0;E<y.length;E++)this.Gb(this.O.count,y[E]);return this},We.M=function(a){return this.O.M(a)},We.Gb=function(a,y){y instanceof Wi&&Pn("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&Pn("Cannot make a Panel contain itself: "+this.toString()),Pn("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var E=y.panel;if(E!==null&&E!==this&&Pn("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+y.toString()+", already contained by "+E.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==kr.Grid||y instanceof Zo||Pn("Can only add Shapes to a Grid Panel, not: "+y),this.na!==kr.Graduated||y instanceof Zo||y instanceof Us||Pn("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var b=y.data;b!==null&&typeof b=="object"&&(this.ge===null&&(this.ge=new xr),this.ge.add(b,y))}var x=this.O;if(b=-1,E===this){for(var z=-1,ne=this.O.s,oe=ne.length,ue=0;ue<oe;ue++)if(ne[ue]===y){z=ue;break}if(z!==-1){if(z===a||z+1>=x.count&&a>=x.count)return;x.mb(z),b=z}else Pn("element "+y.toString()+" has panel "+E.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),Ht(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof kr&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||qm(this,y,!1),E=this.part,E!==null&&(E.Rh=null,E.ag=NaN,this.Te&&E instanceof qr&&(E.Te=!0),E.Te&&E instanceof qr&&(E.wc=null),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||(b!==-1&&E.cb(ul,"elements",this,y,null,b,null),E.cb(Js,"elements",this,null,y,null,a)))};function Rv(a,y){a.l=y?a.l|16777216:a.l&-16777217}We.remove=function(a){for(var y=this.O.s,E=y.length,b=-1,x=0;x<E;x++)if(y[x]===a){b=x;break}b!==-1&&this.pc(b,!0)},We.mb=function(a){0<=a&&this.pc(a,!0)},We.pc=function(a,y){var E=this.O,b=E.M(a);if(b.Ng=null,b.wi(null),this.ge!==null){var x=b.data;typeof x=="object"&&this.ge.remove(x)}E.mb(a),Bt(this,!1),this.v(),this.$g===b&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof qr&&(b instanceof kr?b.qm(b,function(ne,oe){ty(z,oe,y)}):ty(z,b,y)),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||z.cb(ul,"elements",this,b,null,a,null))},We.Fb=function(a){0>a&&ji(a,">= 0",kr,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var E=new au;E.wi(this),E.isRow=!0,E.index=a,y[a]=E,this.cb(Js,"rowdefs",this,null,E,null,a)}return y[a]},We.oA=function(a){if(0>a&&ji(a,">= 0",kr,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,E=y[a];if(E){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(ul,"rowdefs",this,E,null,a,null),this.v()}}};function pS(a,y,E){var b=a.rowDefs;if(!(0>y)){if(b[y]=E instanceof au?E:void 0,!E)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}We.Eb=function(a){0>a&&ji(a,">= 0",kr,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var E=new au;E.wi(this),E.isRow=!1,E.index=a,y[a]=E,this.cb(Js,"coldefs",this,null,E,null,a)}return y[a]},We.jA=function(a){if(0>a&&ji(a,">= 0",kr,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,E=y[a];if(E){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(ul,"coldefs",this,E,null,a,null),this.v()}}};function gS(a,y,E){var b=a.colDefs;if(!(0>y)){if(b[y]=E instanceof au?E:void 0,!E)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}We.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},We.Hy=function(a,y){return(a=this.Fb(a))&&e0(a,new au(y)),this},We.By=function(a,y){return(a=this.Eb(a))&&e0(a,new au(y)),this},We.nz=function(a){if(0>a||this.type!==kr.Table||this.rowCount===0)return-1;for(var y=0,E=this.rowDefs,b=E.length,x=this.topIndex;x<b;x++){var z=E[x];if(z!==void 0&&(y+=z.total,a<y))break}return x},We.fz=function(a){if(0>a||this.type!==kr.Table||this.columnCount===0)return-1;for(var y=0,E=this.colDefs,b=E.length,x=this.leftIndex;x<b;x++){var z=E[x];if(z!==void 0&&(y+=z.total,a<y))break}return x},We.Fz=function(a,y){if(y===void 0&&(y=new xt(NaN,NaN)),this.type!==kr.Graduated)return y.h(NaN,NaN),y;a=Math.min(Math.max(a,this.graduatedMin),this.graduatedMax);var E=this.Pb();return E.geometry.Pu((a-this.graduatedMin)/this.graduatedRange,y),E.transform.Ga(y)},We.Gz=function(a){if(this.type!==kr.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function mS(a){return a=a.allBindings,a!==null&&a._isFrozen}function Od(a){var y=a.allBindings;if(y===null)a.data!==null&&Pn("Template cannot have .data be non-null: "+a),a.allBindings=y=new Ar;else if(y._isFrozen)return;var E=new Ar;Rv(a,!1),a.qm(a,function(he,ge){ge.th();var Ee=ge.localBindings;if(Ee!==null)for(Re(ge,!1),Ee=Ee.iterator;Ee.next();){var ke=Ee.value;ke.mode===mm&&Re(ge,!0);var Ve=ke.sourceName;Ve!==null&&(Ve==="/"&&Rv(he,!0),Ve=kE(ke,he,ge),Ve!==null&&(E.add(Ve),Ve.srcBindings===null&&(Ve.srcBindings=new Ar),Ve.srcBindings.add(ke))),y.add(ke)}if(ge instanceof kr&&ge.type===kr.Table){if(0<ge.rowCount){for(he=ge.rowDefs,Ee=he.length,ke=0;ke<Ee;ke++)if(Ve=he[ke],Ve!==void 0&&Ve.be!==null)for(var Ze=Ve.be.iterator;Ze.next();){var st=Ze.value;st.xd=Ve,st.to=2,st.wl=Ve.index,y.add(st)}}if(0<ge.columnCount){for(ge=ge.colDefs,he=ge.length,Ee=0;Ee<he;Ee++)if(ke=ge[Ee],ke!==void 0&&ke.be!==null)for(Ve=ke.be.iterator;Ve.next();)Ze=Ve.value,Ze.xd=ke,Ze.to=1,Ze.wl=ke.index,y.add(Ze)}}});for(var b=E.iterator;b.next();){var x=b.value;if(x.srcBindings!==null){Re(x,!0);for(var z=x.srcBindings.iterator;z.next();){var ne=z.value;x.localBindings===null&&(x.localBindings=new Ar),x.localBindings.add(ne)}}x.srcBindings=null}for(b=y.iterator;b.next();)if(x=b.value,z=x.xd,z!==null){x.xd=null;var oe=x.targetProperty,ue=oe.indexOf(".");0<ue&&z instanceof kr&&(ne=oe.substring(0,ue),oe=oe.substr(ue+1),ue=z.fb(ne),ue!==null?(z=ue,x.targetProperty=oe):Xo('Warning: unable to find GraphObject named "'+ne+'" for Binding: '+x.toString())),z instanceof au?(ne=Qt(z.panel),x.Ai=ne===void 0?-1:ne,z.panel.bindingId=x.Ai):z instanceof pn?(ne=Qt(z),x.Ai=ne===void 0?-1:ne,z.bindingId=x.Ai):Pn("Unknown type of binding target: "+z)}y.freeze(),a instanceof Wi&&a.Zc()&&a.Va()}We.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return a1(y,function(E){E instanceof kr&&(E.allBindings=null,E.ub=null);var b=E.localBindings;b!==null&&(E.localBindings=null,b.each(function(x){E.bind(x.copy())})),b=E.animationTriggers,b!==null&&(E.animationTriggers=null,b.each(function(x){E.Jv(x.value.copy())}))}),a&&Od(y),y},We.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var E=y.value,b=E.sourceProperty;if((a===""||b===""||b===a)&&(b=E.targetProperty,E.converter!==null||b!=="")){b=this.data;var x=E.sourceName;if(x!==null){if(x==="")b=this;else if(x==="/")b=this;else if(x===".")b=this;else if(x==="..")b=this;else if(b=this.fb(x),b===null)continue}else if(E.isToModel)if(b=this.diagram,b!==null)b=b.model.modelData;else continue;var z=this,ne=E.Ai;if(ne!==-1){if(z=this.ks(ne),z===null)continue}else E.xd!==null&&(z=E.xd);if(x==="/"?b=z.part:x==="."?b=z:x===".."&&(b=z.panel),x=E.to,x!==0){if(!(z instanceof kr))continue;x===1?z=z.Eb(E.wl):x===2&&(z=z.Fb(E.wl))}z!==void 0&&E.Mv(z,b)}}},We.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function s1(a,y){a=a.O.s;for(var E=a.length,b=y.length,x=0,z=null;x<E&&(z=a[x],!(z instanceof kr&&z.data!==null));)x++,z=a[x];if(E-x!==b)return!0;if(z===null)return 0<b;for(var ne=0;x<E&&ne<b;){if(z=a[x],!(z instanceof kr)||z.data!==y[ne])return!0;x++,ne++}return!1}function Zg(a){if(a.type===kr.Spot||a.type===kr.Auto)return Math.min(a.O.length,1);if(a.type===kr.Link){a=a.O;for(var y=a.length,E=0;E<y;E++){var b=a.M(E);if(!(b instanceof Zo&&b.isPanelMain))break}return E}return a.type===kr.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof kr&&uf(a))?1:0}We.mv=function(){for(var a=Zg(this);this.O.length>a;)this.pc(this.O.length-1,!1);vS(this,this.itemArray)};function vS(a,y){var E=Zg(a);if(y===null||y.length===0)for(;a.O.length>E;)a.pc(a.O.length-1,!1);else if(a.O.length<=E){E=y.length;for(var b=0;b<E;b++)$m(a,y[b],b,!0)}else{b=E;for(var x=0;x<y.length;x++,b++){var z=y[x],ne=b<a.O.length?a.O.M(b):null;if(ne instanceof kr){if(ne.data!==z){var oe=Ov(a,ne.data),ue=Ov(a,z),he=ue!==oe;he||(oe=Dv(a,oe),he=Dv(a,ue)!==oe),he?(a.pc(b,!1),$m(a,z,x,!1)):ne.data=z}}else $m(a,z,x,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,Mv(a,E,0),Ht(a)||a.v(),a.graduatedIntervals=null,a.If()||qm(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 $m(a,y,E,b){if(!(y==null||0>E)){var x=Ov(a,y);if(x=Dv(a,x),x!==null){if(Od(x),x=x.copy(),x.l&16777216){var z=a.ih();z!==null&&Rv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new xr),a.ge.add(y,x)),z=E+Zg(a),a.Gb(z,x),b&&(x.ub=y,Mv(a,z,E),x.ub=null),x.data=y}}}function Mv(a,y,E){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof kr){var x=y,z=E;b.type===kr.TableRow?b.row=x:b.type===kr.TableColumn&&(b.column=x),b.itemIndex=z}y++,E++}}function Ov(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=Vl(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;Pn("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Dv(a,y){var E=a.itemTemplateMap,b=null;return E!==null&&(b=E.I(y)),b===null&&(E!==null&&(b=E.I("")),b===null&&(yS||(yS=!0,Xo('No item template Panel found for category "'+y+'" on '+a),Xo(" Using default item template."),a=new kr,y=new Us,y.bind(new Yl("text","",ba)),a.add(y),SS=a),b=SS)),b}function qm(a,y,E){var b=y.enabledChanged;if(b!==null&&b(y,E),y instanceof kr){y=y.O.s,b=y.length;for(var x=0;x<b;x++){var z=y[x];E&&z instanceof kr&&!z.isEnabled||qm(a,z,E)}}}function vh(a,y){y.name=a,zd.add(a,y)}tr.Object.defineProperties(kr.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===kr.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&&ji(a,">= 0",kr,"padding"),a=new Bi(a)):(0>a.left&&ji(a.left,">= 0",kr,"padding:value.left"),0>a.right&&ji(a.right,">= 0",kr,"padding:value.right"),0>a.top&&ji(a.top,">= 0",kr,"padding:value.top"),0>a.bottom&&ji(a.bottom,">= 0",kr,"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:Gs},set:function(a){typeof a=="number"&&(a=new Bi(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new Td),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 Ya)&&(a instanceof Ya&&a.freeze(),this.T===null&&(this.T=new Td),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 Td),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var E=a.length,b=0,x=0;x<E;x++){var z=a[x];typeof z=="number"&&0<=z&&isFinite(z)||Pn("defaultRowSeparatorDashArray value "+z+" at index "+x+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Td),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 Ya)&&(a instanceof Ya&&a.freeze(),this.T===null&&(this.T=new Td),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 Td),this.T.F=a,this.v(),this.g("defaultColumnSeparatorStrokeWidth",y,a))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(a){var y=this.defaultColumnSeparatorDashArray;if(y!==a){if(a!==null){for(var E=a.length,b=0,x=0;x<E;x++){var z=a[x];typeof z=="number"&&0<=z&&isFinite(z)||Pn("defaultColumnSeparatorDashArray value "+z+" at index "+x+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Td),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 Td),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||Pn("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var E=this.diagram;E!==null&&this===E.grid&&Gl(E),this.N(),this.g("gridCellSize",y,a)}}},gridOrigin:{get:function(){return this.kn},set:function(a){var y=this.kn;if(!y.D(a)){a.w()||Pn("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var E=this.diagram;E!==null&&this===E.grid&&Gl(E),this.N(),this.g("gridOrigin",y,a)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(a){var y=this.graduatedMin;y!==a&&(this.ra===null&&(this.ra=new Qh),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),Ne(this)&&(a=this.part,a!==null&&Ys(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 Qh),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),Ne(this)&&(a=this.part,a!==null&&Ys(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 Qh),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 Qh),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 Qh,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 Qh,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 Qh,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 Qh,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 Td),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Td),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 Td),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 Td),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)&&Pn("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Td),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)&&Pn("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Td),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var E=this instanceof Wi&&!(this instanceof Xa);Od(this),this.ub=a;var b=this.diagram;b!==null&&(E?(E=b.partManager,this instanceof Fr?(y!==null&&E.bf.remove(y),a!==null&&E.bf.add(a,this)):this instanceof Wi&&(y!==null&&E.cf.remove(y),a!==null&&E.cf.add(a,this))):(E=this.panel,E!==null&&E.ge!==null&&(y!==null&&E.ge.remove(y),a!==null&&E.ge.add(a,this)))),this.g("data",y,a),b!==null&&b.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 So),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&s1(this,a)){var E=this.diagram;y!==a&&(E!==null&&y!==null&&by(E.partManager,this,E),this.Hh=a,E!==null&&a!==null&&Ey(E.partManager,this)),this.g("itemArray",y,a),E!==null&&E.undoManager.isUndoingRedoing||vS(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 xr}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Wi||a.isPanelMain)&&Pn("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var E=a.iterator;E.next(););$o(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&&($o(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 Fo&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var E=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||E&&qm(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))}}}),tr.Object.defineProperties(kr,{Position:{get:function(){return zd.I("Position")}},Horizontal:{get:function(){return zd.I("Horizontal")}},Vertical:{get:function(){return zd.I("Vertical")}},Spot:{get:function(){return zd.I("Spot")}},Auto:{get:function(){return zd.I("Auto")}},Table:{get:function(){return zd.I("Table")}},Viewbox:{get:function(){return zd.I("Viewbox")}},TableRow:{get:function(){return zd.I("TableRow")}},TableColumn:{get:function(){return zd.I("TableColumn")}},Link:{get:function(){return zd.I("Link")}},Grid:{get:function(){return zd.I("Grid")}},Graduated:{get:function(){return zd.I("Graduated")}}}),kr.prototype.rebuildItemElements=kr.prototype.mv,kr.prototype.findItemPanelForData=kr.prototype.sx,kr.prototype.updateTargetBindings=kr.prototype.La,kr.prototype.copyTemplate=kr.prototype.Uy,kr.prototype.graduatedValueForPoint=kr.prototype.Gz,kr.prototype.graduatedPointForValue=kr.prototype.Fz,kr.prototype.findColumnForLocalX=kr.prototype.fz,kr.prototype.findRowForLocalY=kr.prototype.nz,kr.prototype.addColumnDefinition=kr.prototype.By,kr.prototype.addRowDefinition=kr.prototype.Hy,kr.prototype.addRowColumnDefinition=kr.prototype.Gy,kr.prototype.removeColumnDefinition=kr.prototype.jA,kr.prototype.getColumnDefinition=kr.prototype.Eb,kr.prototype.removeRowDefinition=kr.prototype.oA,kr.prototype.getRowDefinition=kr.prototype.Fb,kr.prototype.removeAt=kr.prototype.mb,kr.prototype.remove=kr.prototype.remove,kr.prototype.insertAt=kr.prototype.Gb,kr.prototype.elt=kr.prototype.M,kr.prototype.add=kr.prototype.add,kr.prototype.findObject=kr.prototype.fb,kr.prototype.findInVisualTree=kr.prototype.Nl,kr.prototype.walkVisualTreeFrom=kr.prototype.qm,kr.prototype.findMainElement=kr.prototype.Pb;var yS=!1,SS=null,zd=new xr;kr.className="Panel",kr.definePanelLayout=vh,vh("Position",new Hm),vh("Vertical",new Gm),vh("Auto",new Vm),vh("Link",new Qm);function Qh(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}Qh.prototype.copy=function(){var a=new Qh;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},Qh.className="GradPanelSettings";function Td(){this.Pc=[],this.Oc=[],this.j=this.ob=n0,this.hb=this.Hb=0,this.Qp=Gs,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Td.prototype.copy=function(a){for(var y=new Td,E=this.Pc,b=E.length,x=y.Pc,z=0;z<b;z++)if(E[z]!==void 0){var ne=E[z].copy();ne.wi(a),x[z]=ne}for(E=this.Oc,b=E.length,x=y.Oc,z=0;z<b;z++)E[z]!==void 0&&(ne=E[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},Td.className="TablePanelSettings";function au(a){At(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=yl,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Fv,this.hg=Mo,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))}au.prototype.copy=function(){var a=new au;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=Jr(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=Jr(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}We=au.prototype,We.qb=function(a){a.classType===au&&(this.sizing=a)},We.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Qt(this)},We.wi=function(a){this.Me=a},We.Io=function(a){var y=0,E=this.Me;if(this.index!==a&&(a=this.separatorStroke,a===null&&E!==null&&(a=this.isRow?E.defaultRowSeparatorStroke:E.defaultColumnSeparatorStroke),a!==null&&(y=this.separatorStrokeWidth,isNaN(y)&&(E!==null?y=this.isRow?E.defaultRowSeparatorStrokeWidth:E.defaultColumnSeparatorStrokeWidth:y=0))),a=this.dg,a===null)if(E!==null)a=E.defaultSeparatorPadding;else return y;return y+(this.isRow?a.top:a.left)},We.Wc=function(){var a=0,y=this.Me,E=0,b=this.isRow;if(y!==null&&y.type===kr.Table)for(var x=b?y.rowDefs.length:y.colDefs.length,z=0;z<x;z++){var ne=b?y.rowDefs[z]:y.colDefs[z];if(ne!==void 0&&ne.oa!==0){E=ne.index;break}}if(this.index!==E&&(E=this.separatorStroke,E===null&&y!==null&&(E=b?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),E!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=b?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),b=this.dg,b===null)if(y!==null)b=y.defaultSeparatorPadding;else return a;return a+(this.isRow?b.top+b.bottom:b.left+b.right)},We.Ob=function(a,y,E){var b=this.Me;if(b!==null&&(b.cb(ys,a,this,y,E,void 0,void 0),this.be!==null&&(y=b.diagram,y!==null&&!y.skipsModelSourceBindings&&(b=b.ih(),b!==null&&(y=b.data,y!==null)))))for(E=this.be.iterator;E.next();)E.value.sp(this,y,a,b)};function t0(a){if(a.sizing===Fv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}We.bind=function(a,y,E,b){var x=null;return typeof a=="string"?x=new Yl(a,y,E,b):x=a,x.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&mS(y)&&Pn("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+x+" on "+a)),this.be===null&&(this.be=new Ar),this.be.add(x),this},tr.Object.defineProperties(au.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&&ji(a,">= 0",au,"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&&ji(a,">= 0",au,"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))&&ji(a,">= 0",au,"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&&ji(a,">= 0",au,"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 Bi(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&&Rf(a,"RowColumnDefinition.separatorStroke"),a instanceof Ya&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var E=a.length,b=0,x=0;x<E;x++){var z=a[x];typeof z=="number"&&0<=z&&isFinite(z)||Pn("separatorDashArray value "+z+" at index "+x+" must be a positive number or zero."),b+=z}if(b===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&&Rf(a,"RowColumnDefinition.background"),a instanceof Ya&&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}}}),au.prototype.computeEffectiveSpacing=au.prototype.Wc,au.prototype.computeEffectiveSpacingTop=au.prototype.Io;var Fv=new Mn(au,"Default",0),Xg=new Mn(au,"None",1),n0=new Mn(au,"ProportionalExtra",2);au.className="RowColumnDefinition",au.Default=Fv,au.None=Xg,au.ProportionalExtra=n0;function Zo(a,y){pn.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)}vn(Zo,pn),Zo.prototype.cloneProtected=function(a){pn.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=Jr(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 lp(a){a.Na===null?a.Na=new Uv:a.Na.nc&&(a.Na=a.Na.copy())}We=Zo.prototype,We.th=function(){pn.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},We.qb=function(a){a===Sr||a===wi||a===Na||a===Mo?this.geometryStretch=a:pn.prototype.qb.call(this,a)},We.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Qt(this)};function hg(a,y,E,b){var x=E.length;if(!(4>x)){var z=b.measuredBounds,ne=Math.max(1,z.width);z=z.height;for(var oe=E[0],ue=E[1],he,ge,Ee,ke,Ve,Ze,st=0,Ot=Oi(),Pt=2;Pt<x;Pt+=2)he=E[Pt],ge=E[Pt+1],Ee=he-oe,oe=ge-ue,Ee===0&&(Ee=.001),ke=oe/Ee,Ve=Math.atan2(oe,Ee),Ze=Math.sqrt(Ee*Ee+oe*oe),Ot.push([Ee,Ve,ke,Ze]),st+=Ze,oe=he,ue=ge;oe=E[0],ue=E[1],Ee=b.measuredBounds.width,b instanceof Zo&&(Ee-=b.strokeWidth),1>Ee&&(Ee=1),x=E=Ee,he=ne/2,ge=he!==0,Pt=0,Ze=Ot[Pt],Ee=Ze[0],Ve=Ze[1],ke=Ze[2],Ze=Ze[3];for(var zt=0;.1<=st;){if(zt===0&&(ge?(x=E,x-=he,st-=he,ge=!1):x=E,x===0&&(x=1)),x>st){Yi(Ot);return}x>Ze?(zt=x-Ze,x=Ze):zt=0;var Kt=Math.sqrt(x*x/(1+ke*ke));if(0>Ee&&(Kt=-Kt),oe+=Kt,ue+=ke*Kt,a.translate(oe,ue),a.rotate(Ve),a.translate(-(ne/2),-(z/2)),zt===0&&b.hh(a,y),a.translate(ne/2,z/2),a.rotate(-Ve),a.translate(-oe,-ue),st-=x,Ze-=x,zt!==0){if(Pt++,Pt===Ot.length){Yi(Ot);return}Ze=Ot[Pt],Ee=Ze[0],Ve=Ze[1],ke=Ze[2],Ze=Ze[3],x=zt}}Yi(Ot)}}We.hh=function(a,y){var E=this.xc,b=this.Ui;if(E!==null||b!==null){var x=this.ua;if(x!==null){a.yc();var z=this.actualBounds,ne=this.naturalBounds;b!==null&&xl(this,a,b,!0,!1,ne,z);var oe=this.part,ue=this.ig;if(E===null||ue!==0||oe===null||!this.isPanelMain&&oe.Pb()!==this||(ue=oe.type===kr.Link&&oe instanceof Xa&&oe.category==="Selection"&&oe.adornedObject instanceof Zo&&oe.adornedPart.Pb()===oe.adornedObject?oe.adornedObject.strokeWidth:0),ue===0&&(E=null),E!==null&&ue!==0&&(xl(this,a,E,!1,!1,ne,z),a.lineWidth=ue,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,oe&&y.Gf("drawShadows")&&(z=oe.isShadowed),a.Il===!1&&(z=!1),oe=!0,E===null||b!==null&&b!=="transparent"||(oe=!1),ne=!1,ue=this.strokeDashArray,ue!==null&&(ne=!0,a.js(ue,this.strokeDashOffset)),x.type===Mr.j)a.beginPath(),a.moveTo(x.startX,x.startY),a.lineTo(x.endX,x.endY),E!==null&&a.jk(),a.Se();else if(x.type===Mr.u){var he=x.startX;ue=x.startY;var ge=x.endX,Ee=x.endY;x=Math.min(he,ge);var ke=Math.min(ue,Ee);he=Math.abs(ge-he),ue=Math.abs(Ee-ue),a.beginPath(),a.rect(x,ke,he,ue),b!==null&&a.ng(b),E!==null&&(oe&&z&&yc(a),a.jk(),oe&&z&&ku(a)),a.Se()}else if(x.type===Mr.F)he=x.startX,ue=x.startY,ge=x.endX,Ee=x.endY,x=Math.abs(ge-he)/2,ke=Math.abs(Ee-ue)/2,he=Math.min(he,ge)+x,ue=Math.min(ue,Ee)+ke,a.beginPath(),a.moveTo(he,ue-ke),a.bezierCurveTo(he+gn.wg*x,ue-ke,he+x,ue-gn.wg*ke,he+x,ue),a.bezierCurveTo(he+x,ue+gn.wg*ke,he+gn.wg*x,ue+ke,he,ue+ke),a.bezierCurveTo(he-gn.wg*x,ue+ke,he-x,ue+gn.wg*ke,he-x,ue),a.bezierCurveTo(he-x,ue-gn.wg*ke,he-gn.wg*x,ue-ke,he,ue-ke),a.closePath(),b!==null&&a.ng(b),E!==null&&(oe&&z&&yc(a),a.jk(),oe&&z&&ku(a)),a.Se();else if(x.type===Mr.o)for(x=x.figures,ue=x.length,ke=0;ke<ue;ke++){he=x.s[ke],a.beginPath(),a.moveTo(he.startX,he.startY),ge=he.segments.s,Ee=ge.length;for(var Ve=null,Ze=0;Ze<Ee;Ze++){var st=ge[Ze];switch(st.type){case el:a.moveTo(st.endX,st.endY);break;case ns:a.lineTo(st.endX,st.endY);break;case Nl:a.bezierCurveTo(st.point1X,st.point1Y,st.point2X,st.point2Y,st.endX,st.endY);break;case Au:a.quadraticCurveTo(st.point1X,st.point1Y,st.endX,st.endY);break;case ll:if(st.radiusX===st.radiusY){var Ot=Math.PI/180;a.arc(st.point1X,st.point1Y,st.radiusX,st.startAngle*Ot,(st.startAngle+st.sweepAngle)*Ot,0>st.sweepAngle,Ve!==null?Ve.endX:he.startX,Ve!==null?Ve.endY:he.startY)}else if(Ve=Ql(st,he),Ot=Ve.length,Ot===0)a.lineTo(st.centerX,st.centerY);else for(var Pt=0;Pt<Ot;Pt++){var zt=Ve[Pt];Pt===0&&a.lineTo(zt[0],zt[1]),a.bezierCurveTo(zt[2],zt[3],zt[4],zt[5],zt[6],zt[7])}break;case uu:if(Pt=Ot=0,Ve!==null&&Ve.type===ll){if(Ve=Ql(Ve,he),zt=Ve.length,zt===0){a.lineTo(st.endX,st.endY);break}Ve=Ve[zt-1]||null,Ve!==null&&(Ot=Ve[6],Pt=Ve[7])}else Ot=Ve!==null?Ve.endX:he.startX,Pt=Ve!==null?Ve.endY:he.startY;if(Ve=Jl(st,he,Ot,Pt),Ot=Ve.length,Ot===0){a.lineTo(st.endX,st.endY);break}for(Pt=0;Pt<Ot;Pt++)zt=Ve[Pt],a.bezierCurveTo(zt[2],zt[3],zt[4],zt[5],zt[6],zt[7]);break;default:Pn("Segment not of valid type: "+st.type)}st.isClosed&&a.closePath(),Ve=st}ge=he.isFilled,z?he.isShadowed?(ge===!0&&b!=="transparent"&&b!==null&&a.ng(b,he.isEvenOdd),E!==null&&(ge&&oe&&yc(a),a.jk(),ge&&oe&&ku(a))):(yc(a),ge&&b!=="transparent"&&b!==null&&a.ng(b,he.isEvenOdd),E!==null&&a.jk(),ku(a)):(ge&&b!==null&&a.ng(b,he.isEvenOdd),E!==null&&a.jk()),a.Se(ke)}if(ne&&a.fs(),this.pathPattern!==null){if(E=this.pathPattern,E.measure(1/0,1/0),b=E.measuredBounds,E.arrange(0,0,b.width,b.height),z=this.geometry,a.save(),a.beginPath(),b=Oi(),z.type===Mr.j)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.endY),hg(a,y,b,E);else if(z.type===Mr.o)for(z=z.figures.iterator;z.next();){for(oe=z.value,b.length=0,b.push(oe.startX),b.push(oe.startY),ne=oe.startX,x=oe.startY,ue=ne,ke=x,he=oe.segments.s,ge=he.length,Ee=0;Ee<ge;Ee++){switch(Ze=he[Ee],Ze.type){case el:hg(a,y,b,E),b.length=0,b.push(Ze.endX),b.push(Ze.endY),ne=Ze.endX,x=Ze.endY,ue=ne,ke=x;break;case ns:b.push(Ze.endX),b.push(Ze.endY),ne=Ze.endX,x=Ze.endY;break;case Nl:gn.Qe(ne,x,Ze.point1X,Ze.point1Y,Ze.point2X,Ze.point2Y,Ze.endX,Ze.endY,.5,b),ne=Ze.endX,x=Ze.endY;break;case Au:gn.ep(ne,x,Ze.point1X,Ze.point1Y,Ze.endX,Ze.endY,.5,b),ne=Ze.endX,x=Ze.endY;break;case ll:if(st=Ql(Ze,oe),Ve=st.length,Ve===0){b.push(Ze.centerX),b.push(Ze.centerY),ne=Ze.centerX,x=Ze.centerY;break}for(Ot=0;Ot<Ve;Ot++)Pt=st[Ot],gn.Qe(ne,x,Pt[2],Pt[3],Pt[4],Pt[5],Pt[6],Pt[7],.5,b),ne=Pt[6],x=Pt[7];break;case uu:if(st=Jl(Ze,oe,ne,x),Ve=st.length,Ve===0){b.push(Ze.endX),b.push(Ze.endY),ne=Ze.endX,x=Ze.endY;break}for(Ot=0;Ot<Ve;Ot++)Pt=st[Ot],gn.Qe(ne,x,Pt[2],Pt[3],Pt[4],Pt[5],Pt[6],Pt[7],.5,b),ne=Pt[6],x=Pt[7];break;default:Pn("Segment not of valid type: "+Ze.type)}Ze.isClosed&&(b.push(ue),b.push(ke),hg(a,y,b,E))}hg(a,y,b,E)}else if(z.type===Mr.u)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.startY),b.push(z.endX),b.push(z.endY),b.push(z.startX),b.push(z.endY),b.push(z.startX),b.push(z.startY),hg(a,y,b,E);else if(z.type===Mr.F){if(x=new ml,x.startX=z.endX,x.startY=(z.startY+z.endY)/2,ne=new ua(ll),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=Ql(ne,x),oe=z.length,oe===0)b.push(ne.centerX),b.push(ne.centerY);else for(ne=x.startX,x=x.startY,ue=0;ue<oe;ue++)ke=z[ue],gn.Qe(ne,x,ke[2],ke[3],ke[4],ke[5],ke[6],ke[7],.5,b),ne=ke[6],x=ke[7];hg(a,y,b,E)}Yi(b),a.restore(),a.Vc(!1)}}}},We.kk=function(a,y,E){return!pn.prototype.kk.call(this,a,y,E)||this.xc===null&&this.Ui===null||this.ua===null||this.pathPattern!==null||this.geometry.figures.length!==this.svg.getElementsByTagName("path").length?!1:(a.Hl=this.svg,this.hh(a,y),a.Hl=null,!0)},We.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:pn.prototype.nk.call(this,a)},We.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("path");for(var E=0;E<a.length;E++)a[E].setAttributeNS(null,"filter",y)}},We.ga=function(a,y){if(y===void 0&&(y=new xt),a instanceof ci){a.Mc()&&Pn("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var E=this.naturalBounds,b=this.strokeWidth;y.h(a.x*(E.width+b)-b/2+E.x+a.offsetX,a.y*(E.height+b)-b/2+E.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},We.mi=function(a){a===void 0&&(a=new Un);var y=this.naturalBounds,E=this.oe;y=Un.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=xt.allocAt(y.x,y.y).transform(E),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(E),Wa(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(E),Wa(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(E),Wa(a,b.x,b.y,0,0),Un.free(y),xt.free(b),a},We.gh=function(a,y){var E=this.geometry;if(E===null||this.fill===null&&this.stroke===null)return!1;var b=E.bounds,x=this.strokeWidth/2;E.type!==Mr.j||y||(x+=2);var z=Un.alloc();if(z.assign(b),z.Bc(x+2,x+2),!z.ca(a))return Un.free(z),!1;if(b=x+1e-4,E.type===Mr.j)return this.stroke===null||(b=(E.endX-E.startX)*(a.x-E.startX)+(E.endY-E.startY)*(a.y-E.startY),0>(E.startX-E.endX)*(a.x-E.endX)+(E.startY-E.endY)*(a.y-E.endY)||0>b)?!1:(Un.free(z),gn.Yb(E.startX,E.startY,E.endX,E.endY,x,a.x,a.y));if(E.type===Mr.u){y=E.startX;var ne=E.startY,oe=E.endX;if(E=E.endY,z.x=Math.min(y,oe),z.y=Math.min(ne,E),z.width=Math.abs(oe-y),z.height=Math.abs(E-ne),this.fill===null){if(z.Bc(-b,-b),z.ca(a))return Un.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(x,x),a=z.ca(a),Un.free(z),a}if(E.type===Mr.F){ne=E.startX,x=E.startY,oe=E.endX;var ue=E.endY;if(E=Math.min(ne,oe),y=Math.min(x,ue),ne=Math.abs(oe-ne)/2,x=Math.abs(ue-x)/2,E=a.x-(E+ne),y=a.y-(y+x),this.fill===null){if(ne-=b,x-=b,0>=ne||0>=x||1>=E*E/(ne*ne)+y*y/(x*x))return Un.free(z),!1;ne+=b,x+=b}return this.stroke!==null&&(ne+=b,x+=b),Un.free(z),0>=ne||0>=x?!1:1>=E*E/(ne*ne)+y*y/(x*x)}if(E.type===Mr.o)return Un.free(z),this.fill===null?Tu(E,a.x,a.y,x):hc(E,a,x,1<this.strokeWidth,y);Pn("Unknown Geometry type: "+E.type)},We.Wl=function(a,y,E,b){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 oe=this.figure,ue=_v[oe];if(ue===void 0){var he=gn.Ze[oe];typeof he=="string"&&(he=gn.Ze[he]),typeof he=="function"?(ue=he(null,100,100),_v[oe]=ue):Pn("Unsupported Figure: "+oe)}ne=ue.bounds}oe=ne.width,ue=ne.height,he=ne.width;var ge=ne.height;switch(vc(this,!0)){case Sr:b=E=0;break;case Lr:he=Math.max(a-z,0),ge=Math.max(y-z,0);break;case ki:he=Math.max(a-z,0),b=0;break;case oo:E=0,ge=Math.max(y-z,0)}isFinite(x.width)&&(he=x.width),isFinite(x.height)&&(ge=x.height);var Ee=this.maxSize,ke=this.minSize;switch(E=Math.max(E-z,ke.width),b=Math.max(b-z,ke.height),he=Math.min(Ee.width,he),ge=Math.min(Ee.height,ge),he=isFinite(he)?Math.max(E,he):Math.max(oe,E),ge=isFinite(ge)?Math.max(b,ge):Math.max(ue,b),E=Bv(this),E){case Sr:break;case Lr:oe=he,ue=ge;break;case wi:E=Math.min(he/oe,ge/ue),isFinite(E)||(E=1),oe*=E,ue*=E;break;default:Pn(E+" is not a valid geometryStretch.")}this.Rd!==null?(oe===0&&(oe=.001),ue===0&&(ue=.001),E=this.Rd!==null?this.Rd:this.ua,ne=E.bounds,b=oe/ne.width,ne=ue/ne.height,isFinite(b)||(b=1),isFinite(ne)||(ne=1),this.ua=b===1&&ne===1?E:E.copy().scale(b,ne)):this.ua!==null&&gn.$(this.ua.Sk,a-z)&&gn.$(this.ua.Rk,y-z)||(this.ua=Zo.makeGeometry(this,oe,ue)),ne=this.ua.bounds,a===1/0||y===1/0?this.Ge(ne.x-z/2,ne.y-z/2,a===0&&oe===0?0:ne.width+z,y===0&&ue===0?0:ne.height+z):this.Ge(-(z/2),-(z/2),he+z,ge+z),x.w()?(he=x.width,ge=x.height,he=Math.min(Ee.width,he),ge=Math.min(Ee.height,ge),he=Math.max(ke.width,he),ge=Math.max(ke.height,ge),this.dc.h(0,0,he,ge)):this.dc.assign(ne)};function Bv(a){var y=a.geometryStretch;return a.Rd!==null?y===Mo?Lr:y:y===Mo?_v[a.figure].defaultStretch:y}We.eh=function(a,y,E,b){nc(this,a,y,E,b)},We.rs=function(a,y,E){return this.Sj(a.x,a.y,y.x,y.y,E)},We.Sj=function(a,y,E,b,x){var z=this.transform,ne=1/(z.m11*z.m22-z.m12*z.m21),oe=z.m22*ne,ue=-z.m12*ne,he=-z.m21*ne,ge=z.m11*ne,Ee=ne*(z.m21*z.dy-z.m22*z.dx),ke=ne*(z.m12*z.dx-z.m11*z.dy);z=a*oe+y*he+Ee,ne=a*ue+y*ge+ke,oe=E*oe+b*he+Ee,ue=E*ue+b*ge+ke,Ee=this.ig/2,he=this.ua,he===null&&(this.measure(1/0,1/0),he=this.ua);var Ve=he.bounds;if(ge=!1,he.type===Mr.j)if(1.5>=this.strokeWidth)ge=gn.Ve(he.startX,he.startY,he.endX,he.endY,z,ne,oe,ue,x);else{if(he.startX===he.endX?(b=Ee,ge=0):(y=(he.endY-he.startY)/(he.endX-he.startX),ge=Ee/Math.sqrt(1+y*y),b=ge*y),y=Oi(),a=new xt,gn.Ve(he.startX+b,he.startY+ge,he.endX+b,he.endY+ge,z,ne,oe,ue,a)&&y.push(a),a=new xt,gn.Ve(he.startX-b,he.startY-ge,he.endX-b,he.endY-ge,z,ne,oe,ue,a)&&y.push(a),a=new xt,gn.Ve(he.startX+b,he.startY+ge,he.startX-b,he.startY-ge,z,ne,oe,ue,a)&&y.push(a),a=new xt,gn.Ve(he.endX+b,he.endY+ge,he.endX-b,he.endY-ge,z,ne,oe,ue,a)&&y.push(a),oe=y.length,oe===0)return Yi(y),!1;for(ge=!0,ue=1/0,b=0;b<oe;b++)a=y[b],E=(a.x-z)*(a.x-z)+(a.y-ne)*(a.y-ne),E<ue&&(ue=E,x.x=a.x,x.y=a.y);Yi(y)}else if(he.type===Mr.u)ge=gn.Ff(Ve.x-Ee,Ve.y-Ee,Ve.x+Ve.width+Ee,Ve.y+Ve.height+Ee,z,ne,oe,ue,x);else if(he.type===Mr.F){y=Un.allocAt(Ve.x,Ve.y,Ve.width,Ve.height).Bc(Ee,Ee);e:if(y.width===0)ge=gn.Ve(y.x,y.y,y.x,y.y+y.height,z,ne,oe,ue,x);else if(y.height===0)ge=gn.Ve(y.x,y.y,y.x+y.width,y.y,z,ne,oe,ue,x);else{if(a=y.width/2,he=y.height/2,b=y.x+a,ge=y.y+he,E=9999,z!==oe&&(E=(ne-ue)/(z-oe)),9999>Math.abs(E)){if(ue=ne-ge-E*(z-b),0>a*a*E*E+he*he-ue*ue){x.x=NaN,x.y=NaN,ge=!1;break e}Ee=Math.sqrt(a*a*E*E+he*he-ue*ue),oe=(-(a*a*E*ue)+a*he*Ee)/(he*he+a*a*E*E)+b,a=(-(a*a*E*ue)-a*he*Ee)/(he*he+a*a*E*E)+b,he=E*(oe-b)+ue+ge,ue=E*(a-b)+ue+ge,Math.abs((z-oe)*(z-oe))+Math.abs((ne-he)*(ne-he))<Math.abs((z-a)*(z-a))+Math.abs((ne-ue)*(ne-ue))?(x.x=oe,x.y=he):(x.x=a,x.y=ue)}else{if(oe=he*he,ue=z-b,oe-=oe/(a*a)*ue*ue,0>oe){x.x=NaN,x.y=NaN,ge=!1;break e}ue=Math.sqrt(oe),oe=ge+ue,ue=ge-ue,Math.abs(oe-ne)<Math.abs(ue-ne)?(x.x=z,x.y=oe):(x.x=z,x.y=ue)}ge=!0}Un.free(y)}else if(he.type===Mr.o){ke=xt.alloc();var Ze=oe-z,st=ue-ne,Ot=Ze*Ze+st*st,Pt=z,zt=ne;if(0<Ot&&Ve.contains(Pt,zt)&&(ke.x=Pt,ke.y=zt,this.ca(ke)))for(Ze!==0&&.5>Math.abs(Ze)?(st*=.5/Ze,Ze=.5):st!==0&&.5>Math.abs(st)&&(Ze*=.5/st,st=.5),Pt-=Ze,zt-=st;Ve.contains(Pt,zt);)Pt-=Ze,zt-=st;for(x.x=oe,x.y=ue,st=0;st<he.figures.count;st++){var Kt=he.figures.s[st],Jt=Kt.isFilled?Pt:z,dn=Kt.isFilled?zt:ne,kn=Kt.segments;Ve=Kt.startX,Ze=Kt.startY;for(var Xr=Ve,Ei=Ze,fi=0;fi<kn.count;fi++){var Dr=kn.s[fi],gr=Dr.type,Oo=Dr.endX,Eo=Dr.endY,ts=!1;switch(gr){case el:Xr=Oo,Ei=Eo;break;case ns:ts=i0(Ve,Ze,Oo,Eo,Jt,dn,oe,ue,ke);break;case Nl:ts=gn.Eo(Ve,Ze,Dr.point1X,Dr.point1Y,Dr.point2X,Dr.point2Y,Oo,Eo,Jt,dn,oe,ue,.6,ke);break;case Au:ts=gn.Eo(Ve,Ze,Ve+2/3*(Dr.point1X-Ve),Ze+2/3*(Dr.point1Y-Ze),Oo+2/3*(Dr.point1X-Oo),Eo+2/3*(Dr.point1Y-Eo),Oo,Eo,Jt,dn,oe,ue,.6,ke);break;case ll:case uu:gr=Dr.type===ll?Ql(Dr,Kt):Jl(Dr,Kt,Ve,Ze);var _s=gr.length;if(_s===0){ts=i0(Ve,Ze,Dr.type===ll?Dr.centerX:Dr.endX,Dr.type===ll?Dr.centerY:Dr.endY,Jt,dn,oe,ue,ke);break}for(Eo=null,Oo=0;Oo<_s;Oo++){if(Eo=gr[Oo],Oo===0&&i0(Ve,Ze,Eo[0],Eo[1],Jt,dn,oe,ue,ke)){var xu=r0(Jt,dn,ke,Ot,x);xu<Ot&&(Ot=xu,ge=!0)}gn.Eo(Eo[0],Eo[1],Eo[2],Eo[3],Eo[4],Eo[5],Eo[6],Eo[7],Jt,dn,oe,ue,.6,ke)&&(xu=r0(Jt,dn,ke,Ot,x),xu<Ot&&(Ot=xu,ge=!0))}Oo=Eo[6],Eo=Eo[7];break;default:Pn("Unknown Segment type: "+gr)}Ve=Oo,Ze=Eo,ts&&(ts=r0(Jt,dn,ke,Ot,x),ts<Ot&&(Ot=ts,ge=!0)),Dr.isClosed&&(Oo=Xr,Eo=Ei,i0(Ve,Ze,Oo,Eo,Jt,dn,oe,ue,ke)&&(Dr=r0(Jt,dn,ke,Ot,x),Dr<Ot&&(Ot=Dr,ge=!0)))}}z=E-a,ne=b-y,oe=Math.sqrt(z*z+ne*ne),oe!==0&&(z/=oe,ne/=oe),x.x-=z*Ee,x.y-=ne*Ee,xt.free(ke)}else Pn("Unknown Geometry type: "+he.type);return ge?(this.transform.Ga(x),!0):!1};function r0(a,y,E,b,x){return a=E.x-a,y=E.y-y,y=a*a+y*y,y<b?(x.x=E.x,x.y=E.y,y):b}function i0(a,y,E,b,x,z,ne,oe,ue){if(gn.$(a,E)&&gn.$(y,b)||gn.$(x,ne)&&gn.$(z,oe))return!1;var he=!1,ge=(x-ne)*(y-b)-(z-oe)*(a-E);return ge===0?!1:(ue.x=((x*oe-z*ne)*(a-E)-(x-ne)*(a*b-y*E))/ge,ue.y=((x*oe-z*ne)*(y-b)-(z-oe)*(a*b-y*E))/ge,(a>E?a-E:E-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(ue.y>a||gn.$(ue.y,a))&&(ue.y<y||gn.$(ue.y,y))&&(he=!0)):(y=a<E?a:E,a=a<E?E:a,(ue.x>y||gn.$(ue.x,y))&&(ue.x<a||gn.$(ue.x,a))&&(he=!0)),he)}We.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var E=this.ua;E===null&&(this.measure(1/0,1/0),E=this.ua),E=E.bounds;var b=this.strokeWidth/2,x=!1,z=xt.alloc();return z.h(E.x-b,E.y-b),a.ca(y.Ga(z))&&(z.h(E.x-b,E.bottom+b),a.ca(y.Ga(z))&&(z.h(E.right+b,E.bottom+b),a.ca(y.Ga(z))&&(z.h(E.right+b,E.y-b),a.ca(y.Ga(z))&&(x=!0)))),xt.free(z),x},We.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var E=No.alloc();E.set(y),E.Vj();var b=a.left,x=a.right,z=a.top;a=a.bottom;var ne=xt.alloc();if(ne.h(b,z),E.Ga(ne),this.gh(ne,!0)||(ne.h(x,z),E.Ga(ne),this.gh(ne,!0))||(ne.h(b,a),E.Ga(ne),this.gh(ne,!0))||(ne.h(x,a),E.Ga(ne),this.gh(ne,!0)))return xt.free(ne),!0;var oe=xt.alloc(),ue=xt.alloc();return E.set(y),E.bv(this.transform),E.Vj(),oe.x=x,oe.y=z,oe.transform(E),ne.x=b,ne.y=z,ne.transform(E),y=!1,up(this,ne,oe,ue)?y=!0:(ne.x=x,ne.y=a,ne.transform(E),up(this,ne,oe,ue)?y=!0:(oe.x=b,oe.y=a,oe.transform(E),up(this,ne,oe,ue)?y=!0:(ne.x=b,ne.y=z,ne.transform(E),up(this,ne,oe,ue)&&(y=!0)))),xt.free(ne),No.free(E),xt.free(oe),xt.free(ue),y};function up(a,y,E,b){if(!a.rs(y,E,b))return!1;a=y.x,y=y.y;var x=E.x,z=E.y;return E=b.x,b=b.y,a===x?(y<z?(a=y,y=z):a=z,b>=a&&b<=y):(a<x?(b=a,a=x):b=x,E>=b&&E<=a)}We.tx=function(a,y,E){function b(Ot,Pt){for(var zt=Ot.length,Kt=0;Kt<zt;Kt+=2)if(Pt.zd(Ot[Kt],Ot[Kt+1])>x)return!0;return!1}if(E&&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(!E){var ne=y.bounds,oe=ne.x,ue=ne.y,he=ne.x+ne.width;if(ne=ne.y+ne.height,Ln(a.x,a.y,oe,ue)<=x&&Ln(a.x,a.y,he,ue)<=x&&Ln(a.x,a.y,oe,ne)<=x&&Ln(a.x,a.y,he,ne)<=x)return!0}if(oe=y.startX,ue=y.startY,he=y.endX,ne=y.endY,y.type===Mr.j){if(E=(oe-he)*(a.x-he)+(ue-ne)*(a.y-ne),Tr(a.x,a.y,oe,ue,he,ne)<=(0<=(he-oe)*(a.x-oe)+(ne-ue)*(a.y-ue)&&0<=E?x:z))return!0}else{if(y.type===Mr.u)return y=!1,E&&(y=Tr(a.x,a.y,oe,ue,oe,ne)<=x||Tr(a.x,a.y,oe,ue,he,ue)<=x||Tr(a.x,a.y,he,ue,he,ne)<=x||Tr(a.x,a.y,oe,ne,he,ne)<=x),y;if(y.type===Mr.F){y=a.x-(oe+he)/2,z=a.y-(ue+ne)/2;var ge=Math.abs(he-oe)/2,Ee=Math.abs(ne-ue)/2;if(ge===0||Ee===0)return Tr(a.x,a.y,oe,ue,he,ne)<=x;if(E){if(a=gn.$y(ge,Ee,y,z),a*a<=x)return!0}else return!(Ln(y,z,-ge,0)>=x||Ln(y,z,0,-Ee)>=x||Ln(y,z,0,Ee)>=x||Ln(y,z,ge,0)>=x)}else if(y.type===Mr.o){if(he=y.bounds,z=he.x,oe=he.y,ue=he.x+he.width,he=he.y+he.height,a.x>ue&&a.x<z&&a.y>he&&a.y<oe&&Tr(a.x,a.y,z,oe,z,he)>x&&Tr(a.x,a.y,z,oe,ue,oe)>x&&Tr(a.x,a.y,ue,he,z,he)>x&&Tr(a.x,a.y,ue,he,ue,oe)>x)return!1;if(z=Math.sqrt(x),E){if(this.fill===null?Tu(y,a.x,a.y,z):hc(y,a,z,!0,!1))return!0}else{for(E=y.figures,y=0;y<E.count;y++){if(z=E.s[y],ne=z.startX,ge=z.startY,a.zd(ne,ge)>x)return!1;for(oe=z.segments.s,ue=oe.length,he=0;he<ue;he++)switch(Ee=oe[he],Ee.type){case el:case ns:if(ne=Ee.endX,ge=Ee.endY,a.zd(ne,ge)>x)return!1;break;case Nl:var ke=Oi();if(gn.Qe(ne,ge,Ee.point1X,Ee.point1Y,Ee.point2X,Ee.point2Y,Ee.endX,Ee.endY,.8,ke),ne=b(ke,a),Yi(ke),ne||(ne=Ee.endX,ge=Ee.endY,a.zd(ne,ge)>x))return!1;break;case Au:if(ke=Oi(),gn.ep(ne,ge,Ee.point1X,Ee.point1Y,Ee.endX,Ee.endY,.8,ke),ne=b(ke,a),Yi(ke),ne||(ne=Ee.endX,ge=Ee.endY,a.zd(ne,ge)>x))return!1;break;case ll:case uu:ke=Ee.type===ll?Ql(Ee,z):Jl(Ee,z,ne,ge);var Ve=ke.length;if(Ve===0){if(ne=Ee.type===ll?Ee.centerX:Ee.endX,ge=Ee.type===ll?Ee.centerY:Ee.endY,a.zd(ne,ge)>x)return!1;break}Ee=null;for(var Ze=Oi(),st=0;st<Ve;st++)if(Ee=ke[st],Ze.length=0,gn.Qe(Ee[0],Ee[1],Ee[2],Ee[3],Ee[4],Ee[5],Ee[6],Ee[7],.8,Ze),b(Ze,a))return Yi(Ze),!1;Yi(Ze),Ee!==null&&(ne=Ee[6],ge=Ee[7]);break;default:Pn("Unknown Segment type: "+Ee.type)}}return!0}}}return!1},We.qc=function(){this.ua=null},We.kq=function(){return this.ig};function ES(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=im,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=kl):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new ci(1-kl.x,kl.y)))}Zo.makeGeometry=function(a,y,E){if(a.toArrow!=="None")var b=Ih[a.toArrow];else a.fromArrow!=="None"?b=Ih[a.fromArrow]:(b=gn.Ze[a.figure],typeof b=="string"&&(b=gn.Ze[b]),b===void 0&&Pn("Unknown Shape.figure: "+a.figure),b=b(a,y,E),b.Sk=y,b.Rk=E);if(b===null){var x=gn.Ze.Rectangle;typeof x=="function"&&(b=x(a,y,E))}return b};function bS(a){var y=Ih[a];if(y===void 0){var E=a.toLowerCase();if(E==="none")return"None";if(y=Ih[E],y===void 0){var b=null,x;for(x in gn.um)if(x.toLowerCase()===E){b=x;break}if(b!==null)return a=Mr.parse(gn.um[b],!1),Ih[b]=a,E!==b&&(Ih[E]=b),b}}return typeof y=="string"?y:y instanceof Mr?a:null}tr.Object.defineProperties(Zo.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(a){var y=this.ua,E=this.Rd;if(y!==a){a!==null?this.Rd=this.ua=a.freeze():this.Rd=this.ua=null;var b=this.part;b!==null&&(b.ag=NaN),this.v(),this.g("geometry",y||E,a),Ne(this)&&(a=this.part,a!==null&&Ys(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Mr.parse(a);var y=a.normalize();this.geometry=a,this.position=a=xt.allocAt(-y.x,-y.y),xt.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&&Rf(a,"Shape.fill"),a instanceof Ya&&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&&Rf(a,"Shape.stroke"),a instanceof Ya&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},strokeWidth:{get:function(){return this.ig},set:function(a){var y=this.ig;if(y!==a)if(0<=a){this.ig=a,this.v();var E=this.part;E!==null&&(E.ag=NaN),this.g("strokeWidth",y,a)}else ji(a,"value >= 0",Zo,"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"?ji(a,'"butt", "round", or "square"',Zo,"strokeCap"):(lp(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"?ji(a,'"miter", "bevel", or "round"',Zo,"strokeJoin"):(lp(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){lp(this),this.Na.Jr=a,this.N();var E=this.part;E!==null&&(E.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var E=a.length,b=0,x=0;x<E;x++){var z=a[x];0<=z&&isFinite(z)||Pn("strokeDashArray:value "+z+" at index "+x+" must be a positive number or zero."),b+=z}if(b===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&&(lp(this),this.Na.uj=a,this.N(),this.g("strokeDashOffset",y,a))}},figure:{get:function(){return this.an},set:function(a){var y=this.an;if(y!==a){var E=gn.Ze[a];typeof E=="function"?E=a:(E=gn.Ze[a.toLowerCase()])||Pn("Unknown Shape.figure: "+a),y!==E&&(a=this.part,a!==null&&(a.ag=NaN),this.an=E,this.Rd=null,this.qc(),this.v(),this.g("figure",y,E))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(a){var y=this.toArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var E=bS(a);E===null?Pn("Unknown Shape.toArrow: "+a):y!==E&&(this.Ua===null&&(this.Ua=new Ao),this.Ua.V=E,this.Rd=null,this.qc(),this.v(),ES(this),this.g("toArrow",y,E))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(a){var y=this.fromArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var E=bS(a);E===null?Pn("Unknown Shape.fromArrow: "+a):y!==E&&(this.Ua===null&&(this.Ua=new Ao),this.Ua.j=E,this.Rd=null,this.qc(),this.v(),ES(this),this.g("fromArrow",y,E))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:yl},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),lp(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:yl},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),lp(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&&(lp(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:Mo},set:function(a){var y=this.geometryStretch;y!==a&&(lp(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 kh),this.fa.Tk=a;var E=this.diagram;E!==null&&this.panel===E.grid&&Gl(E),this.v(),E=this.panel,E!==null&&(E.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new kh),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 kh),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 kh),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Zo.prototype.intersectsRect=Zo.prototype.Yc,Zo.prototype.containedInRect=Zo.prototype.fh,Zo.prototype.getNearestIntersectionPoint=Zo.prototype.rs,Zo.prototype.getDocumentBounds=Zo.prototype.mi,Zo.prototype.getDocumentPoint=Zo.prototype.ga;var Ih=new lo,_v=new lo;Zo.className="Shape",Zo.getFigureGenerators=function(){var a=new xr,y;for(y in gn.Ze)y!==y.toLowerCase()&&a.add(y,gn.Ze[y]);return a.freeze(),a},Zo.defineFigureGenerator=function(a,y){var E=a.toLowerCase(),b=gn.Ze;b[a]=y,b[E]=a},Zo.getArrowheadGeometries=function(){var a=new xr;for(b in gn.um)if(Ih[b]===void 0){var y=Mr.parse(gn.um[b],!1);Ih[b]=y,y=b.toLowerCase(),y!==b&&(Ih[y]=b)}for(var E in Ih)if(E!==E.toLowerCase()){var b=Ih[E];b instanceof Mr&&a.add(E,b)}return a.freeze(),a},Zo.defineArrowheadGeometry=function(a,y){var E=null;typeof y=="string"?E=Mr.parse(y,!1):E=y,y=a.toLowerCase(),y!=="none"&&a!==y||Pn("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=Ih;b[a]=E,b[y]=a};function Uv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=Mo,this.gg=this.fg=yl}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 Us(a,y){return pn.call(this),u0||(zc=bl?new _u(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}vn(Us,pn),Us.prototype.cloneProtected=function(a){pn.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 yh(a){a.da===null?a.da=new Kv:a.da.nc&&(a.da=a.da.copy())}We=Us.prototype,We.th=function(){pn.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function xS(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}We.qb=function(a){a.classType===Us?this.wrap=a:pn.prototype.qb.call(this,a)},We.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},We.v=function(){pn.prototype.v.call(this)},We.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var E=this.naturalBounds,b=this.actualBounds,x=E.width,z=E.height,ne=Jg(this),oe=a.textAlign=this.textAlign,ue=y.tn;oe==="start"?oe=ue?"right":"left":oe==="end"&&(oe=ue?"left":"right"),ue=this.isUnderline;var he=this.isStrikethrough;xl(this,a,this.xc,!0,!1,E,b),(ue||he)&&xl(this,a,this.xc,!1,!1,E,b),b=0,E=!1;var ge=this.oe,Ee=ge.dx-(ne*ge.m21+ge.dx);ge=ge.dy-(ne*ge.m22+ge.dy);var ke=y.scale;switch(8>(Ee*Ee+ge*ge)*ke*ke&&(E=!0),y.ib!==a&&(E=!1),y.ib instanceof ps&&(E=!1),y.Gf("textGreeking")===!1&&(E=!1),y=this.spacingAbove,Ee=this.spacingBelow,this.flip){case Ra:a.translate(x,0),a.scale(-1,1);break;case Jo:a.translate(0,z),a.scale(1,-1);break;case Es:a.translate(x,z),a.scale(-1,-1)}if(a.yc(),ge=this.Gc,ke=(y+ne+Ee)*ge,z>ke&&(b=this.verticalAlignment,b=b.y*z-b.y*ke+b.offsetY),ge===1&&this.ze!==null)Ee=this.Cb,Ee>x&&(Ee=x),this.Oj(this.ze,a,0,b+y,x,ne,Ee,E,oe,ue,he);else if(this.Qc!==null&&this.Qb!==null)for(ke=0;ke<ge;ke++){var Ve=this.Qc[ke];Ve>x&&(Ve=x),b+=y,this.Oj(this.Qb[ke],a,0,b,x,ne,Ve,E,oe,ue,he),b+=ne+Ee}switch(this.flip){case Ra:a.scale(-1,1),a.translate(-x,0);break;case Jo:a.scale(1,-1),a.translate(0,-z);break;case Es:a.scale(-1,-1),a.translate(-x,-z)}}},We.Oj=function(a,y,E,b,x,z,ne,oe,ue,he,ge){var Ee=0;if(oe)ue==="left"?Ee=0:ue==="right"?Ee=x-ne:ue==="center"&&(Ee=(x-ne)/2),y.fillRect(E+Ee,b+.25*z,ne,1);else{if(ue==="left"?Ee=0:ue==="right"?Ee=x:ue==="center"&&(Ee=x/2),x=o0!==null?o0(this,z):.75*z,y.fillText(a,E+Ee,b+x),a=z/20|0,a===0&&(a=1),ue==="right"?Ee-=ne:ue==="center"&&(Ee-=ne/2),he){oe=a0!==null?a0(this,z):.8*z,ue=E+Ee,he=b+oe,x=E+Ee+ne,oe=b+oe;var ke=a;y.beginPath(),y.lineWidth=ke,y.moveTo(ue,he),y.lineTo(x,oe),y.stroke(),y.Se(),y instanceof ps&&y.ad.classList.add("gojs-td")}ge&&(ge=b+z-z/2.2|0,a%2!==0&&(ge+=.5),b=E+Ee,z=ge,E=E+Ee+ne,ne=ge,Ee=a,y.beginPath(),y.lineWidth=Ee,y.moveTo(b,z),y.lineTo(E,ne),y.stroke(),y.Se(),y instanceof ps&&y.ad.classList.add("gojs-td"))}},We.kk=function(a,y,E){if(!pn.prototype.kk.call(this,a,y,E))return!1;if(xl(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),E){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),E=0;E<y.length;E++)Gc(a,y[E],!1)}else y=this.svg,y.innerHTML=this.text,Gc(a,y,!0);return!0},We.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:pn.prototype.nk.call(this,a)},We.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("text");for(var E=0;E<a.length;E++)a[E].setAttributeNS(null,"filter",y)}},We.Wl=function(a,y,E,b){var x=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;zc!==null&&IS!==z&&(IS=zc.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 oe=ne=0,ue=!1;!ue;){var he=z.indexOf(`
|
|
|
`,oe);he===-1&&(he=z.length,ue=!0),oe=z.substr(oe,he-oe),this.formatting===$g&&(oe=oe.trim()),ne=Math.max(ne,Vd(oe)),oe=he+1}z=ne}else ne=z.indexOf(`
|
|
|
`,0),0<=ne&&(z=z.substr(0,ne)),z=Vd(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=CS(this,z),isNaN(this.desiredSize.height)?ne=Math.min(ne,y/this.scale):ne=this.desiredSize.height,ue=ne,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===s0&&(y=this.Ae,y=this.overflow===s0?wS(y):0,he=this.spacingAbove+this.spacingBelow,he=Math.max(0,Jg(this)+he),ue=Math.min(this.maxLines-1,Math.max(Math.floor(ue/he+.01)-1,0)),!(ue+1>=this.Qb.length))){for(this.l|=16777216,he=this.Qb[ue],y=Math.max(1,a-y);Vd(he)>y&&1<he.length;)he=he.substr(0,he.length-1);he+=qg,y=Vd(he),this.Qb[ue]=he,this.Qb=this.Qb.slice(0,ue+1),this.Qc[ue]=y,this.Qc=this.Qc.slice(0,ue+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===TS||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(E,z),ne=Math.max(b,ne),ws(this.dc,z,ne),this.Ge(0,0,z,ne),this.svg!==null&&x!==this.Gc&&(this.Uc=!0)},We.eh=function(a,y,E,b){nc(this,a,y,E,b)};function Qg(a,y,E){a.ze===null?(a.ze=y,a.Cb=E):((a.Qb===null||a.Qc===null)&&(a.Qb=[],a.Qc=[],a.Qb.push(a.ze),a.Qc.push(a.Cb)),a.Qb.push(y),a.Qc.push(E),a.Qb.length>a.maxLines&&(a.l|=16777216))}function Hv(a,y,E,b){var x=a.formatting===$g;x&&(y=y.trim());var z=0,ne=a.Ae,oe=a.spacingAbove+a.spacingBelow;oe=Math.max(0,Jg(a)+oe);var ue=a.overflow===s0?wS(ne):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,oe);else if(ne=y,a.wrap===jv){a.Le=1;var he=Vd(y);if(ue===0||he<=E)a.Cb=Math.max(a.Cb,he),Qg(a,y,a.Cb),b!==null&&b.h(he,oe);else{for(z=fg(a,ne),ne=ne.substr(z.length),y=fg(a,ne),he=Vd(z+y);0<y.length&&he<=E;)z+=y,ne=ne.substr(y.length),y=fg(a,ne),he=z+y,x&&(he=he.trim()),he=Vd(he);for(x&&(y=y.trim()),z+=y,E=Math.max(1,E-ue);Vd(z)>E&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=qg;var ge=Vd(z);a.Cb=ge,Qg(a,z,ge),b!==null&&b.h(ge,oe)}}else{for(ue=0,ne.length===0&&(ue=1,Qg(a,ne,0));0<ne.length;){for(y=fg(a,ne),ne=ne.substr(y.length);Vd(y)>E;){var Ee=1;for(he=Vd(y.substr(0,Ee)),ge=0;he<=E;)Ee++,ge=he,he=Vd(y.substr(0,Ee));if(Ee===1){var ke=he;z=Math.max(z,he)}else ke=ge,z=Math.max(z,ge);if(Ee--,1>Ee&&(Ee=1),Qg(a,y.substr(0,Ee),ke),ue++,y=y.substr(Ee),a.Gc+ue>a.maxLines)break}for(ge=fg(a,ne),he=Vd(y+ge);0<ge.length&&he<=E;)y+=ge,ne=ne.substr(ge.length),ge=fg(a,ne),he=y+ge,x&&(he=he.trim()),he=Vd(he);if(x&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ge.length===0?(Ee=he,z=Math.max(z,he)):(Ee=ge=Vd(y),z=Math.max(z,ge)),Qg(a,y,Ee),ue++,a.Gc+ue>a.maxLines))break}a.Le=Math.min(a.maxLines,ue),a.Cb=Math.max(a.Cb,z),b!==null&&b.h(a.Cb,oe*a.Le)}}function fg(a,y){if(a.wrap===AS)return y.substr(0,1);for(var E=y.length,b=0,x=l1;b<E&&!x.test(y.charAt(b));)b++;for(a.formatting===PS&&(E=Math.min(E,b+1));b<E&&x.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function Vd(a){return zc===null?8*a.length:zc.measureText(a).width}function Jg(a){if(a.df!==null)return a.df;var y=a.Ae;if(zc===null){var E=16;return a.df=E}return Vv[y]!==void 0&&5e3>LS?E=Vv[y]:(E=1.3*zc.measureText("M").width,Vv[y]=E,LS++),a.df=E}function wS(a){if(zc===null)return 6;if(l0[a]!==void 0&&5e3>Wv)var y=l0[a];else y=zc.measureText(qg).width,l0[a]=y,Wv++;return y}function CS(a,y){var E=a.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,Jg(a)+b),E.length===0)return a.Cb=0,a.Gc=1,b;if(!a.isMultiline){var x=E.indexOf(`
|
|
|
`,0);0<=x&&(E=E.substr(0,x))}x=0;for(var z=a.Gc=0,ne,oe=!1;!oe;){if(ne=E.indexOf(`
|
|
|
`,z),ne===-1&&(ne=E.length,oe=!0),z<=ne){if(z=E.substr(z,ne-z),a.wrap!==jv){a.Le=0;var ue=sn.alloc();Hv(a,z,y,ue),x+=ue.height,sn.free(ue),a.Gc+=a.Le}else Hv(a,z,y,null),x+=b,a.Gc++;a.Gc===a.maxLines&&(oe=!0)}z=ne+1}return a.Lq=x}tr.Object.defineProperties(Us.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"||(yh(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Sr},set:function(a){var y=this.flip;y!==a&&(yh(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Uc},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),yh(this),this.da.Yr=a,lc(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=sn.alloc();Hv(this,this.ec,999999,a);var y=a.width;sn.free(a),a=CS(this,y);var E=this.desiredSize;isNaN(E.width)||(y=E.width),isNaN(E.height)||(a=E.height),ws(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&&(yh(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:zv},set:function(a){var y=this.overflow;y!==a&&(yh(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&&Rf(a,"TextBlock.stroke"),a instanceof Ya&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Jg(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&&(yh(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&&(yh(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 kh),this.fa.Tk=a,this.v();var E=this.panel;E!==null&&(E.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new kh),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 kh),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 kh),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 kh),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&&(yh(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&&(yh(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&&(yh(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&&(yh(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:$g},set:function(a){var y=this.formatting;y!==a&&(yh(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&&ji(a,"> 0",Us,"maxLines"),yh(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,jv=new Mn(Us,"None",0),TS=new Mn(Us,"WrapFit",1),Gv=new Mn(Us,"WrapDesiredSize",2),AS=new Mn(Us,"WrapBreakAll",3),zv=new Mn(Us,"OverflowClip",0),s0=new Mn(Us,"OverflowEllipsis",1),$g=new Mn(Us,"FormatTrim",0),PS=new Mn(Us,"FormatNone",0),l1=/[ \u200b\u00ad]/,Vv=new lo,LS=0,l0=new lo,Wv=0,qg="...",IS="",zc=null,u0=!1;Us.className="TextBlock";function Kv(){this.nc=!1,this.Hd=null,this.Xf=Sr,this.gq=$g,this.Jq=1/0,this.$q=zv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Uc,this.$r=Gv}Kv.prototype.copy=function(){var a=new Kv;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},Us.getEllipsis=function(){return qg},Us.setEllipsis=function(a){qg=a,l0=new lo,Wv=0},Us.getBaseline=function(){return o0},Us.setBaseline=function(a){o0=a},Us.getUnderline=function(){return a0},Us.setUnderline=function(a){a0=a},Us.isValidFont=function(a){if(u0||(zc=bl?new _u(null).context:null,u0=!0),zc===null)return!0;var y=zc.font;if(a===y||a==="10px sans-serif")return!0;zc.font="10px sans-serif",zc.font=a;var E=zc.font;if(E!=="10px sans-serif")return zc.font=y,!0;zc.font="19px serif";var b=zc.font;return zc.font=a,E=zc.font,zc.font=y,E!==b},Us.FormatNone=PS,Us.FormatTrim=$g,Us.None=jv,Us.OverflowClip=zv,Us.OverflowEllipsis=s0,Us.WrapBreakAll=AS,Us.WrapDesiredSize=Gv,Us.WrapFit=TS;function kh(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}kh.prototype.copy=function(){var a=new kh;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},kh.className="GradElementSettings";function Vc(a,y){pn.call(this),this.Eg=null,this.qo="",this.Xg=Ua,this.Nk=Lr,this.Zg=this.Hd=null,this.Mk=la,this.Xf=Sr,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 pg;vn(Vc,pn),Vc.prototype.cloneProtected=function(a){pn.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},Vc.prototype.qb=function(a){a===Sr||a===wi||a===Na?this.imageStretch=a:pn.prototype.qb.call(this,a)},Vc.prototype.toString=function(){return"Picture("+this.source+")#"+Qt(this)};function gg(a){a===void 0&&(a=""),a!==""?pg[a]&&(delete pg[a],c0--):(pg=new lo,c0=0)}function kS(a,y){y.qy||(y.Fq=function(E){y.sq=!0,y.ln=!1;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var x=b.value;x.N();var z=y.getAttribute("src")||"",ne=x.Og.I(z);if(ne!==null)for(var oe=ne.length,ue=0;ue<oe;ue++)z=ne[ue],x.Xn.add(z),z.Uc=!0,x.$b(),y.hn&&(y.eu===void 0&&(y.eu=E),z.Zg!==null&&z.Zg(z,E))}y.Bg.clear()}a.desiredSize.w()||(Bt(a,!1),a.v())},y.Yp=function(E){y.ln=E;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var x=b.value,z=y.getAttribute("src")||"",ne=x.Og.I(z);if(ne!==null){x=ne.length,z=Oi();for(var oe=0;oe<x;oe++)z.push(ne[oe]);if(y.hn)for(oe=0;oe<x;oe++)ne=z[oe],ne.Hd!==null&&ne.Hd(ne,E);Yi(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}Vc.prototype.hA=function(){if(this.source!==""){gg(this.source);var a=this.source;this.source="",this.source=a}},Vc.prototype.redraw=function(){this.N(),this.Uc=!0},Vc.prototype.hh=function(a,y){var E=this.Eg;if(E!==null){var b=E.getAttribute("src");if(!(E instanceof HTMLImageElement&&(b===null||b==="")||E.ln instanceof Event&&a instanceof nh)){var x=a instanceof ps;b=this.naturalBounds;var z=0,ne=0,oe=this.qn,ue=oe?+E.width:E.naturalWidth;if(oe=oe?+E.height:E.naturalHeight,ue===void 0&&E.videoWidth&&(ue=E.videoWidth),oe===void 0&&E.videoHeight&&(oe=E.videoHeight),ue=ue||b.width,oe=oe||b.height,ue!==0&&oe!==0){var he=ue,ge=oe;this.sourceRect.w()&&(z=this.Xg.x,ne=this.Xg.y,ue=this.Xg.width,oe=this.Xg.height);var Ee=ue,ke=oe,Ve=this.Nk,Ze=this.Mk;switch(Ve){case Sr:if(this.sourceRect.w())break;Ee>=b.width&&(z=z+Ze.offsetX+(Ee*Ze.x-b.width*Ze.x)),ke>=b.height&&(ne=ne+Ze.offsetY+(ke*Ze.y-b.height*Ze.y)),ue=Math.min(b.width,Ee),oe=Math.min(b.height,ke);break;case Lr:Ee=b.width,ke=b.height;break;case wi:case Na:Ve===wi?(Ve=Math.min(b.height/ke,b.width/Ee),Ee*=Ve,ke*=Ve):Ve===Na&&(Ve=Math.max(b.height/ke,b.width/Ee),Ee*=Ve,ke*=Ve,Ee>=b.width&&(z=(z+Ze.offsetX+(Ee*Ze.x-b.width*Ze.x)/Ee)*ue),ke>=b.height&&(ne=(ne+Ze.offsetY+(ke*Ze.y-b.height*Ze.y)/ke)*oe),ue*=1/(Ee/b.width),oe*=1/(ke/b.height),Ee=b.width,ke=b.height)}Ve=this.Df()*y.scale;var st=Ee*Ve*ke*Ve,Ot=ue*oe/st,Pt=E.__goCache;Ve=null;var zt=u1;if(!x){if(E.sq&&Pt!==void 0&&4<st&&Ot>zt*zt)for(Pt.gi===null&&(MS(Pt,4,he,ge,E),MS(Pt,16,he,ge,E)),x=Pt.gi,he=x.length,ge=0;ge<he&&x[ge].ratio*x[ge].ratio<Ot;ge++)Ve=x[ge];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{x=new _u(null).context;try{x.drawImage(this.Eg,0,0)}catch(Kt){this.en=!1}try{x.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Kt){this.vl=!0}}if(this.vl)return}}switch(x=Ee<b.width?Ze.offsetX+(b.width*Ze.x-Ee*Ze.x):0,Ze=ke<b.height?Ze.offsetY+(b.height*Ze.y-ke*Ze.y):0,this.flip){case Ra:a.translate(Math.min(b.width,Ee),0),a.scale(-1,1);break;case Jo:a.translate(0,Math.min(b.height,ke)),a.scale(1,-1);break;case Es:a.translate(Math.min(b.width,Ee),Math.min(b.height,ke)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Pt!==void 0&&Ve!==null&&Ve.ratio!==1){a.save(),y=Ve.ratio;try{a.drawImage(Ve.source,z/y,ne/y,Math.min(Ve.source.width,ue/y),Math.min(Ve.source.height,oe/y),x,Ze,Math.min(b.width,Ee),Math.min(b.height,ke)),a instanceof ps&&(this.bt=[z/y,ne/y,Math.min(Ve.source.width,ue/y),Math.min(Ve.source.height,oe/y),x,Ze,Math.min(b.width,Ee),Math.min(b.height,ke)])}catch(Kt){this.en=!1}a.restore()}else try{a.drawImage(E,z,ne,ue,oe,x,Ze,Math.min(b.width,Ee),Math.min(b.height,ke)),a instanceof ps&&(this.bt=[z,ne,ue,oe,x,Ze,Math.min(b.width,Ee),Math.min(b.height,ke)])}catch(Kt){this.en=!1}switch(this.flip){case Ra:a.scale(-1,1),a.translate(-Math.min(b.width,Ee),0);break;case Jo:a.scale(1,-1),a.translate(0,-Math.min(b.height,ke));break;case Es:a.scale(-1,-1),a.translate(-Math.min(b.width,Ee),-Math.min(b.height,ke))}}}}},Vc.prototype.Wl=function(a,y,E,b){var x=this.desiredSize,z=vc(this,!0),ne=this.Eg,oe=this.qn,ue=0,he=0;(oe||!this.al&&ne&&ne.complete)&&(this.al=!0),ne===null?(isFinite(x.width)||(a=0),isFinite(x.height)||(y=0)):(ue=oe?+ne.width:ne.naturalWidth,he=oe?+ne.height:ne.naturalHeight),isFinite(x.width)||z===Lr||z===ki?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:ne!==null&&(a=ue)),E=0):ne!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:ue),isFinite(x.height)||z===Lr||z===oo?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:ne!==null&&(y=he)),b=0):ne!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:he),isFinite(x.width)&&(a=x.width),isFinite(x.height)&&(y=x.height),x=this.maxSize,z=this.minSize,E=Math.max(E||0,z.width),b=Math.max(b||0,z.height),a=Math.min(x.width,a),y=Math.min(x.height,y),a=Math.max(E,a),y=Math.max(b,y),ne===null||ne.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),ws(this.dc,a,y),this.Ge(0,0,a,y)},Vc.prototype.eh=function(a,y,E,b){nc(this,a,y,E,b)},tr.Object.defineProperties(Vc.prototype,{element:{get:function(){return this.Eg},set:function(a){var y=this.Eg;if(this.Uc=!0,y!==a){this.qn=a instanceof HTMLCanvasElement;var E=a instanceof HTMLImageElement;a===null||E||a instanceof HTMLVideoElement||this.qn||Pn("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&jd(b,this),this.Eg=a,a!==null&&E&&a.Bg===void 0&&(a.Bg=new qt),b!==null&&E&&Fu(b,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()||(Bt(this,!1),this.v())):E&&kS(this,a)),this.g("element",y,a),this.N()}}},source:{get:function(){return this.qo},set:function(a){var y=this.qo;if(y!==a){this.Uc=!0,this.qo=a;var E=pg;if(bl){var b=null;if(E[a]!==void 0)b=E[a];else if(a!==""){30<c0&&(gg(),E=pg),b=Ur("img"),b.hn=!0,kS(this,b);var x=this.rl;x!==null&&(b.crossOrigin=x(this)),b.src=a,E[a]=b,c0++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new RS),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}}}),Vc.prototype.redraw=Vc.prototype.redraw,Vc.prototype.reloadSource=Vc.prototype.hA;var c0=0,u1=4;Vc.className="Picture",pg=new lo,Vc.clearCache=gg;function RS(){this.gi=null}function MS(a,y,E,b,x){a.gi===null&&(a.gi=[]);var z=new _u(null),ne=z.context,oe=1/y;z.width=E/y,z.height=b/y,z.width!==0&&z.height!==0&&(y=new OS(z.Oa,y),E=1,0<a.gi.length&&(E=a.gi[a.gi.length-1],x=E.source,E=E.ratio),ne.setTransform(oe*E,0,0,oe*E,0,0),ne.yc(),ne.drawImage(x,0,0),a.gi.push(y))}RS.className="PictureCacheArray";function OS(a,y){this.source=a,this.ratio=y}OS.className="PictureCacheInstance";function mg(){this.os=new Mr,this.mc=null}mg.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Mr,this.mc=null};function vg(a,y,E,b,x,z){a.mc=new ml,a.mc.startX=y,a.mc.startY=E,a.mc.isFilled=b,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),x!==void 0&&(a.mc.isShadowed=x)}function c1(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}mg.prototype.moveTo=function(a,y,E){E===void 0&&(E=!1);var b=new ua(el);b.endX=a,b.endY=y,E&&b.close(),this.mc.segments.add(b)},mg.prototype.lineTo=function(a,y,E){E===void 0&&(E=!1);var b=new ua(ns);b.endX=a,b.endY=y,E&&b.close(),this.mc.segments.add(b)};function cf(a,y,E,b,x,z,ne){var oe;oe===void 0&&(oe=!1);var ue=new ua(Nl);ue.point1X=y,ue.point1Y=E,ue.point2X=b,ue.point2Y=x,ue.endX=z,ue.endY=ne,oe&&ue.close(),a.mc.segments.add(ue)}function d0(a,y,E,b,x){var z;z===void 0&&(z=!1);var ne=new ua(Au);ne.point1X=y,ne.point1Y=E,ne.endX=b,ne.endY=x,z&&ne.close(),a.mc.segments.add(ne)}mg.prototype.arcTo=function(a,y,E,b,x,z,ne){z===void 0&&(z=0),ne===void 0&&(ne=!1);var oe=new ua(ll);oe.startAngle=a,oe.sweepAngle=y,oe.centerX=E,oe.centerY=b,oe.radiusX=x,oe.radiusY=z!==0?z:x,ne&&oe.close(),this.mc.segments.add(oe)};function d1(a,y,E,b,x,z,ne,oe){var ue;ue===void 0&&(ue=!1),y=new ua(uu,ne,oe,y,E,b,x,z),ue&&y.close(),a.mc.segments.add(y)}function DS(a){var y=h0;return y!==null?(h0=null,y.reset(a),y):(y=new mg,y.reset(a),y)}var h0=null;mg.className="StreamGeometryContext";function uc(a,y){var E=a.toLowerCase(),b=gn.Ze;b[a]=y,b[E]=a}uc("Rectangle",function(a,y,E){a="r"+y+","+E;var b=gn.Mf[a];return b!==void 0||(b=new Mr(Mr.u),b.endX=y,b.endY=E,gn.Nf<gn.vm&&(gn.Mf[a]=b,gn.Nf++)),b}),uc("Square",function(a,y,E){a="s"+y+","+E;var b=gn.Mf[a];return b!==void 0||(b=new Mr(Mr.u),b.endX=y,b.endY=E,b.defaultStretch=wi,gn.Nf<gn.vm&&(gn.Mf[a]=b,gn.Nf++)),b}),uc("RoundedRectangle",function(a,y,E){a=a?a.parameter1:NaN,(isNaN(a)||0>a)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,E/3);var b="rr"+y+","+E+","+a,x=gn.Mf[b];if(x!==void 0)return x;var z=a*gn.wg;return x=new Mr().add(new ml(a,0,!0).add(new ua(ns,y-a,0)).add(new ua(Nl,y,a,y-z,0,y,z)).add(new ua(ns,y,E-a)).add(new ua(Nl,y-a,E,y,E-z,y-z,E)).add(new ua(ns,a,E)).add(new ua(Nl,0,E-a,z,E,0,E-z)).add(new ua(ns,0,a)).add(new ua(Nl,a,0,0,z,z,0).close())),1<z&&(x.spot1=new ci(0,0,z,z),x.spot2=new ci(1,1,-z,-z)),gn.Nf<gn.vm&&(gn.Mf[b]=x,gn.Nf++),x}),uc("Border","RoundedRectangle"),uc("Ellipse",function(a,y,E){a="e"+y+","+E;var b=gn.Mf[a];return b!==void 0||(b=new Mr(Mr.F),b.endX=y,b.endY=E,b.spot1=Yc,b.spot2=Wl,gn.Nf<gn.vm&&(gn.Mf[a]=b,gn.Nf++)),b}),uc("Circle",function(a,y,E){a="c"+y+","+E;var b=gn.Mf[a];return b!==void 0||(b=new Mr(Mr.F),b.endX=y,b.endY=E,b.spot1=Yc,b.spot2=Wl,b.defaultStretch=wi,gn.Nf<gn.vm&&(gn.Mf[a]=b,gn.Nf++)),b}),uc("TriangleRight",function(a,y,E){return new Mr().add(new ml(0,0).add(new ua(ns,y,.5*E)).add(new ua(ns,0,E).close())).pm(0,.25,.5,.75)}),uc("TriangleDown",function(a,y,E){return new Mr().add(new ml(0,0).add(new ua(ns,y,0)).add(new ua(ns,.5*y,E).close())).pm(.25,0,.75,.5)}),uc("TriangleLeft",function(a,y,E){return new Mr().add(new ml(y,E).add(new ua(ns,0,.5*E)).add(new ua(ns,y,0).close())).pm(.5,.25,1,.75)}),uc("TriangleUp",function(a,y,E){return new Mr().add(new ml(y,E).add(new ua(ns,0,E)).add(new ua(ns,.5*y,0).close())).pm(.25,.5,.75,1)}),uc("Triangle","TriangleUp"),uc("Diamond",function(a,y,E){return new Mr().add(new ml(.5*y,0).add(new ua(ns,0,.5*E)).add(new ua(ns,.5*y,E)).add(new ua(ns,y,.5*E).close())).pm(.25,.25,.75,.75)}),uc("LineH",function(a,y,E){return a=new Mr(Mr.j),a.startX=0,a.startY=E/2,a.endX=y,a.endY=E/2,a}),uc("LineV",function(a,y,E){return a=new Mr(Mr.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=E,a}),uc("None","Rectangle"),uc("BarH","Rectangle"),uc("BarV","Rectangle"),uc("MinusLine","LineH"),uc("PlusLine",function(a,y,E){return new Mr().add(new ml(0,E/2,!1).add(new ua(ns,y,E/2)).add(new ua(el,y/2,0)).add(new ua(ns,y/2,E)))}),uc("XLine",function(a,y,E){return new Mr().add(new ml(0,E,!1).add(new ua(ns,y,0)).add(new ua(el,0,0)).add(new ua(ns,y,E)))}),uc("LineRight",function(a,y,E){return new Mr().add(new ml(.25*y,0,!1).add(new ua(ns,.75*y,.5*E)).add(new ua(ns,.25*y,E)))}),uc("LineDown",function(a,y,E){return new Mr().add(new ml(0,.25*E,!1).add(new ua(ns,.5*y,.75*E)).add(new ua(ns,y,.25*E)))}),uc("LineLeft",function(a,y,E){return new Mr().add(new ml(.75*y,0,!1).add(new ua(ns,.25*y,.5*E)).add(new ua(ns,.75*y,E)))}),uc("LineUp",function(a,y,E){return new Mr().add(new ml(0,.75*E,!1).add(new ua(ns,.5*y,.25*E)).add(new ua(ns,y,.75*E)))}),gn.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 Yv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=sa,this.ir=null,this.jr="",this.lr=yl,this.Gq="",this.Hq=Vs,this.Pq=zo,this.Kq=ya,this.Up=null,this.Cq=127,this.zr=xa,this.yr="gray",this.Vg=4}Yv.prototype.copy=function(){var a=new Yv;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 Wi(a,y){a===void 0||a instanceof fu||typeof a=="string"?kr.call(this,a):(kr.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 xt(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new Un,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}vn(Wi,kr),Wi.prototype.cloneProtected=function(a){kr.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},We=Wi.prototype,We.Af=function(a){kr.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},We.toString=function(){var a=uo(this.constructor)+"#"+Qt(this);return this.data!==null&&(a+="("+ba(this.data)+")"),a};function Wc(a){a.P===null?a.P=new Yv:a.P.nc&&(a.P=a.P.copy())}We.th=function(){kr.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},We.gk=function(a,y,E,b,x,z,ne){var oe=this.diagram;oe!==null&&(a===Js&&y==="elements"?x instanceof kr?sp(x,function(ue){Ey(oe.partManager,ue),ec(oe,ue)}):Fu(oe,x):a===ul&&y==="elements"&&(x instanceof kr?sp(x,function(ue){by(oe.partManager,ue,oe)}):jd(oe,x)),oe.cb(a,y,E,b,x,z,ne))},We.La=function(a){if(kr.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,E=y.length,b=0;b<E;b++){var x=y[b];x instanceof kr&&sp(x,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Wi.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Wi.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Wi.prototype.bh=function(a,y){if(y!==null){var E=null,b=this.Qf;if(b!==null&&(E=b.I(a)),E!==y){if(E!==null){var x=E.diagram;x!==null&&x.remove(E)}b===null&&(this.Qf=b=new xr),y.Tf!==a&&(y.category=a),b.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)))}}},Wi.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var E=y.I(a);if(E!==null){var b=E.diagram;b!==null&&b.remove(E)}y.remove(a),y.count===0&&(this.Qf=null)}},Wi.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=Oi();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var E=0;E<a;E++)this.Jf(y[E]);Yi(y)}},Wi.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var E=y.value;E.v(),E.placeholder&&E.placeholder.v()}e:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(E=this.Pj("Selection"),E===null){if(E=this.selectionAdornmentTemplate,E===null&&(E=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof Fo?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(E instanceof Xa))break e;Od(E),E=E.copy(),E!==null&&(this.ph()&&this.selectionObject===this.path&&(E.type=kr.Link),E.adornedObject=y)}if(E!==null){E.type===kr.Link&&E.v(),this.bh("Selection",E);break e}}this.Jf("Selection")}for(h1(this,a),y=this.adornments;y.next();)y.value.La()}},Wi.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Zv(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function h1(a,y){y.toolManager.mouseDownTools.each(function(E){E.isEnabled&&E.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function f0(a){if(Df(a)===!1){Qv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function FS(a){if(a.G|=2097152,Df(a)!==!1){var y=a.position,E=a.location;E.w()&&y.w()||US(a,y,E),E=a.Ib;var b=Un.alloc().assign(E);E.ka(),E.x=y.x,E.y=y.y,E.freeze(),a.Xl(b,E),Un.free(b),Qv(a,!1)}}Wi.prototype.Ge=function(a,y,E,b){var x=this.uc;x.h(a,y,E,b),this.Lb===null&&(this.Lb=new No);var z=this.Lb;z.reset(),this.no(z,a,y,E,b),this.Lb=z,z.ws()||z.pp(x)},Wi.prototype.no=function(a,y,E,b,x){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=la;this.locationSpot.sb()&&(z=this.locationSpot);var ne=xt.alloc();if(this.locationObject!==this)for(y=this.locationObject,E=y.naturalBounds,ne.yi(E.x,E.y,E.width,E.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,E,b,x,z);a.rotate(this.Kb,ne.x,ne.y),xt.free(ne)}},Wi.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Wi.prototype.moveTo=function(a,y,E){a=xt.allocAt(a,y),this.move(a,E),xt.free(a)},Wi.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())},Wi.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())},Wi.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new xr),y.I(a)!==null)return y.I(a);var E=kr.prototype.fb.call(this,a);return E!==null?(y.set(a,E),E):(y.set(a,null),null)};function df(a,y,E,b){b===void 0&&(b=new xt),E=E.Mc()?la:E;var x=y.naturalBounds;if(b.h(x.width*E.x+E.offsetX,x.height*E.y+E.offsetY),y===null||y===a)return b;for(y.transform.Ga(b),y=y.panel;y!==null&&y!==a;)y.transform.Ga(b),y=y.panel;return a.Lb!==null&&a.Lb.Ga(b),b.offset(-a.uc.x,-a.uc.y),b}Wi.prototype.mi=function(a){return a===void 0&&(a=new Un),a.assign(this.actualBounds)},Wi.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function BS(a){var y=xt.alloc(),E=a.locationObject,b=E.naturalBounds,x=E instanceof Zo?E.strokeWidth:0;if(y.yi(0,0,b.width+x,b.height+x,a.locationSpot),E!==a)for(y.offset(-x/2,-x/2),E.transform.Ga(y),E=E.panel;E!==null&&E!==a;)E.transform.Ga(y),E=E.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function cp(a,y){var E=a.py;isNaN(a.ag)&&(a.ag=fS(a));var b=a.ag,x=2*b;if(!a.isShadowed)return E.h(y.x-1-b,y.y-1-b,y.width+2+x,y.height+2+x),E;b=y.x,x=y.y;var z=y.width;y=y.height;var ne=a.shadowBlur;return a=a.shadowOffset,z+=ne,y+=ne,b-=ne/2,x-=ne/2,0<a.x?z+=a.x:(b+=a.x,z-=a.x),0<a.y?y+=a.y:(x+=a.y,y-=a.y),E.h(b-1,x-1,z+2,y+2),E}Wi.prototype.arrange=function(){if(Xt(this)===!1)FS(this);else{rn(this,!1);var a=this.Ib,y=Un.alloc();y.assign(a);var E=Ff(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;US(this,b,this.location),a.ka(),a.x=b.x,a.y=b.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(E):!this.Zc()||gn.B(y.width,a.width)&&gn.B(y.height,a.height)||0<=this.vw&&this.C(16),Un.free(y),Qv(this,!1)}},We=Wi.prototype,We.Xl=function(a,y){var E=this.diagram;if(E!==null){var b=!1;if(E.Zi===!1&&a.w()){var x=Un.alloc();x.assign(E.documentBounds),x.Fv(E.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&&(b=!0),Un.free(x)}!(this.G&65536)&&a.D(y)||GS(this,b,E),E.N(),!a.w()&&!y.w()||_a(a,y)||(this instanceof qr&&!E.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},We.zv=function(a,y,E){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&_S(this,b,a,y,E),this.pa=a,this.G&=-2097153,!this.ke.w()||b!==null&&!b.animationManager.isTicking&&b.undoManager.isUndoingRedoing||(b=this.ke,this.ke=new xt(b.x+(a.x-y),b.y+(a.y-E)),this.g("location",b,this.ke.copy())),Df(this)===!1&&Xt(this)===!1&&(f0(this),FS(this)),!0};function _S(a,y,E,b,x){y===null||a instanceof Xa||(y=y.animationManager,y.zb&&fo(y,a,new xt(b,x),E))}We.mm=function(a,y,E){var b=this.ke,x=this.pa;if(E){if(b.x===a&&b.y===y)return;Df(this)||Xt(this)?x.h(NaN,NaN):x.h(x.x+a-b.x,x.y+y-b.y),b.h(a,y)}else{if(x.x===a&&x.y===y)return;b.h(b.x+a-x.x,b.y+y-x.y),x.h(a,y)}f0(this)},We.Av=function(){this.G&=-2097153,f0(this)};function US(a,y,E){var b=BS(a),x=a.diagram,z=E.w(),ne=y.w();z&&ne?a.G&2097152?HS(a,y,E,x,b):jS(a,y,E,x,b):z?HS(a,y,E,x,b):ne&&jS(a,y,E,x,b),a.G|=2097152,xt.free(b),a.Uk()}function HS(a,y,E,b,x){var z=y.x,ne=y.y;y.h(E.x-x.x,E.y-x.y),b!==null&&(E=b.animationManager,(b=E.defaultAnimation.isAnimating)||!E.zb||a instanceof Xa||fo(E,a,new xt(z,ne),y),b||y.x===z&&y.y===ne||a.g("position",new xt(z,ne),y.copy()))}function jS(a,y,E,b,x){var z=E.copy();E.h(y.x+x.x,y.y+x.y),E.D(z)||b===null||a.g("location",z,E.copy())}function GS(a,y,E){Jv(a,!1),a instanceof qr&&jh(E,a),a.layer.isTemporary||y||E.Ya(),y=a.Ib;var b=E.viewportBounds;b.w()?Ff(a)?(Tl(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():E.vd=!0}We.si=function(){return!0},We.Zc=function(){return!0},We.ph=function(){return!1},We.Dd=function(){return!0};function Xv(a,y,E,b){y.constructor===a.constructor||WS||(WS=!0,Xo('Should not change the class of the Part when changing category from "'+E+'" to "'+b+'"'),Xo(" Old class: "+uo(a.constructor)+", new class: "+uo(y.constructor)+", part: "+a.toString())),a.Ej();var x=a.data;E=a.layerName;var z=a.isSelected,ne=a.isHighlighted,oe=!0,ue=!0,he=!1;a instanceof qr&&(oe=a.isTreeLeaf,ue=a.isTreeExpanded,he=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=b,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,b=!0,y!==null&&(b=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=oe?a.U|4:a.U&-5,a.U=ue?a.U|1:a.U&-2,a.U=he?a.U|2:a.U&-3),x!==null&&a.La(),x=a.layerName,x!==E&&(a.Jg=E,a.layerName=x),y!==null&&(y.skipsUndoManager=b),a.Zc()&&a.C(64)}Wi.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},Wi.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},Wi.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},Wi.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},Wi.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},Wi.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},Wi.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},Wi.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},Wi.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 Df(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 Ff(a){return(a.G&131072)!==0}We=Wi.prototype,We.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}We.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},We.N=function(){var a=this.diagram;a!==null&&!Xt(this)&&!Df(this)&&this.isVisible()&&this.Ib.w()&&a.N(cp(this,this.Ib))},We.v=function(){kr.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof qr&&this.labeledLink!==null&&lc(this.labeledLink),a.$b(!0))},We.Vo=function(a){a||(a=this.Ah,a!==null&&ry(a,this))},We.Wo=function(a){a||(a=this.Ah,a!==null&&iy(a,this))},We.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},We.oz=function(){return $v(this,this)};function $v(a,y){var E=y.containingGroup;return E!==null?1+$v(a,E):y instanceof qr&&(y=y.labeledLink,y!==null)?$v(a,y):0}We.sz=function(){return zS(this,this)};function zS(a,y){var E=y.containingGroup;return E!==null||y instanceof qr&&(E=y.labeledLink,E!==null)?zS(a,E):y}We.Td=function(a){return a instanceof Fo?qv(this,this,a):!1};function qv(a,y,E){if(y===E||E===null)return!1;var b=y.containingGroup;return b===null||b!==E&&!qv(a,b,E)?y instanceof qr&&(y=y.labeledLink,y!==null)?qv(a,y,E):!1:!0}We.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Fo&&p0(y,!0),y instanceof qr){var E=y.labeledLink;E!==null&&(y=E)}y=y.containingGroup}for(E=null,y=a;y!==null;){if(y.G&1048576){E=y;break}y instanceof qr&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Fo&&p0(y,!1),y instanceof qr&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return E},Wi.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof qr&&this.isLinkLabel)},Wi.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 E=y.layout;E!==null?E.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function VS(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function Bf(a,y,E,b,x,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof Xa)){if(a.add(y),y instanceof qr){if(E&&y instanceof Fo)for(var ne=y.memberParts;ne.next();)Bf(a,ne.value,E,b,x,z);if(x!==!1)for(ne=y.linksConnected;ne.next();){var oe=ne.value;if(!a.contains(oe)){var ue=oe.fromNode,he=oe.toNode;ue=ue===null||a.contains(ue),he=he===null||a.contains(he),(x?ue&&he:ue||he)&&Bf(a,oe,E,b,x,z)}}if(1<b)for(y=y.Ou();y.next();)Bf(a,y.value,E,b-1,x,z)}else if(y instanceof Fr)for(y=y.labelNodes;y.next();)Bf(a,y.value,E,b,x,z)}}tr.Object.defineProperties(Wi.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Ka:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var a=this.Ig;return a==null?null:a.diagram}},layerName:{get:function(){return this.Jg},set:function(a){var y=this.Jg;if(y!==a){var E=this.diagram;if((E===null||E.Qj(a)!==null&&!E.partManager.addsToTemporaryLayer)&&(this.Jg=a,E!==null&&E.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(E=y.diagram,E!==null&&(a=E.Qj(a),a!==null&&a!==y)))){var b=y.pc(-1,this,!0);if(0<=b&&E.cb(ul,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&E.cb(Js,"parts",a,null,this,!0,b),b=this.layerChanged,b!==null){var x=E.aa;E.aa=!0,b(this,y,a),E.aa=x}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(Wc(this),this.P.zq=a,this.g("layerChanged",y,a))}},zOrder:{get:function(){return this.Ao},set:function(a){var y=this.Ao;if(y!==a){this.Ao=a;var E=this.layer;E!==null&&Bs(E,-1,this),this.g("zOrder",y,a),a=this.diagram,a!==null&&a.N()}}},locationObject:{get:function(){if(this.nf===null){var a=this.locationObjectName;a!==""?(a=this.fb(a),a!==null?this.nf=a:this.nf=this):this instanceof Xa?this.type!==kr.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:zo},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),Wc(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:ya},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),Wc(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&&(Wc(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:Vs},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),Wc(this),this.P.Hq=a,this.v(),this.g("locationSpot",y,a))}},location:{get:function(){return this.ke},set:function(a){var y=a.x,E=a.y,b=this.ke;if(!(b.x===y||isNaN(b.x)&&isNaN(y))||!(b.y===E||isNaN(b.y)&&isNaN(E))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,Xt(this)===!1&&(f0(this),E=this.pa,E.w())){var x=this.diagram;if(x===null||x.animationManager.isTicking||!x.undoManager.isUndoingRedoing){var z=E.copy();E.h(E.x+(y.x-b.x),E.y+(y.y-b.y)),_S(this,x,E,z.x,z.y),this.g("position",z,E.copy())}}y=!0}y&&this.g("location",b,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var E=this.diagram,b=this.data,x=null;if(E!==null&&b!==null&&!(this instanceof Xa)){var z=E.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(x=this.clone(),x.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),E===null||b===null||this instanceof Xa?this instanceof Xa&&(x=this.adornedPart,x!==null&&(a=x.Qf,a!==null&&a.remove(y),x.bh(this.category,this))):(z=E.model,z.undoManager.isUndoingRedoing||(this.ph()?(E.partManager.setLinkCategoryForData(b,a),E=E.partManager.findLinkTemplateForCategory(a),E!==null&&(Od(E),E=E.copy(),E!==null&&Xv(this,E,y,a))):(z!==null&&z.jm(b,a),E=mE(E.partManager,b,a),E!==null&&(Od(E),E=E.copy(),E===null||E instanceof Fr||(b=this.location.copy(),Xv(this,E,y,a),this.location.w()||(this.location=b)))),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 E=this.diagram;E!==null&&E.Ya(),this.g("isInDocumentBounds",y,a)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(a){var y=(this.G&128)!==0;y!==a&&(this.G^=128,this.g("isLayoutPositioned",y,a),this.C(a?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(a){var y=(this.G&256)!==0;y!==a&&(this.G^=256,this.g("selectable",y,a),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(a){var y=(this.G&512)!==0;y!==a&&(this.G^=512,this.g("reshapable",y,a),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(a){var y=(this.G&1024)!==0;y!==a&&(this.G^=1024,this.g("resizable",y,a),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(a){var y=(this.G&2048)!==0;y!==a&&(this.G^=2048,this.g("rotatable",y,a),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(a){var y=(this.G&4096)!==0;if(y!==a){var E=this.diagram;if(!a||this.canSelect()&&!(E!==null&&E.selection.count>=E.maxSelectionCount)){this.G^=4096;var b=!1;if(E!==null){b=E.skipsUndoManager,E.skipsUndoManager=!0;var x=E.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),E!==null&&(E.$b(),E.skipsUndoManager=b)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var E=this.diagram;E!==null&&(E=E.highlighteds,E.ka(),a?E.add(this):E.remove(this),E.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(Wc(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&&(Wc(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&&(Wc(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 Fr?(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&&(Wc(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&&(Wc(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&&(Wc(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:sa},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),Wc(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&&(Wc(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&&(Wc(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:yl},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),Wc(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&&Pn("Cannot make a Group a member of itself: "+this.toString()),Pn("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var E=this.diagram;if(y!==null?iy(y,this):this instanceof Fo&&E!==null&&E.ai.remove(this),this.Ah=a,a!==null?ry(a,this):this instanceof Fo&&E!==null&&E.ai.add(this),this.C(1),E!==null&&E.aa){var b=this.data,x=E.model;if(b!==null&&x.Xj()){var z=x.wa(a!==null?a.data:null);x.mp(b,z)}}if(b=this.containingGroupChanged,b!==null&&(x=!0,E!==null&&(x=E.aa,E.aa=!0),b(this,y,a),E!==null&&(E.aa=x)),this instanceof Fo){for(E=new qt,Bf(E,this,!0,0,!0),E=E.iterator;E.next();)if(b=E.value,b instanceof qr)for(b=b.linksConnected;b.next();)yg(b.value)}if(this instanceof qr){for(E=this.linksConnected;E.next();)yg(E.value);E=this.labeledLink,E!==null&&yg(E)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Bs(y,-1,a))}}else Pn("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&&(Wc(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&&(Wc(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&&(Wc(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:xa},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Wc(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&&(Wc(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&&(Wc(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Wi.prototype.invalidateLayout=Wi.prototype.C,Wi.prototype.findCommonContainingGroup=Wi.prototype.px,Wi.prototype.isMemberOf=Wi.prototype.Td,Wi.prototype.findTopLevelPart=Wi.prototype.sz,Wi.prototype.findSubGraphLevel=Wi.prototype.oz,Wi.prototype.ensureBounds=Wi.prototype.Va,Wi.prototype.getDocumentBounds=Wi.prototype.mi,Wi.prototype.findObject=Wi.prototype.fb,Wi.prototype.moveTo=Wi.prototype.moveTo,Wi.prototype.invalidateAdornments=Wi.prototype.Wb,Wi.prototype.clearAdornments=Wi.prototype.Ej,Wi.prototype.removeAdornment=Wi.prototype.Jf,Wi.prototype.addAdornment=Wi.prototype.bh,Wi.prototype.findAdornment=Wi.prototype.Pj,Wi.prototype.updateTargetBindings=Wi.prototype.La;var WS=!1;Wi.className="Part",Wi.LayoutNone=0,Wi.LayoutAdded=1,Wi.LayoutRemoved=2,Wi.LayoutShown=4,Wi.LayoutHidden=8,Wi.LayoutNodeSized=16,Wi.LayoutGroupLayout=32,Wi.LayoutNodeReplaced=64,Wi.LayoutStandard=127,Wi.LayoutAll=16777215;function Xa(a,y){a===void 0||a instanceof fu||typeof a=="string"?Wi.call(this,a):(Wi.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)}vn(Xa,Wi),Xa.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Xa.prototype.updateRelationshipsFromData=function(){},Xa.prototype.Ul=function(a){var y=this.adornedObject,E=y==null?void 0:y.part;if(E instanceof Fr&&y instanceof Zo){y=E.path,E.Ul(a),a=y.geometry,E=this.O.s,y=E.length;for(var b=0;b<y;b++){var x=E[b];x.isPanelMain&&x instanceof Zo&&(x.ua=a)}}},Xa.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Xt(a))},Xa.prototype.Zc=function(){return!1},Xa.prototype.gk=function(a,y,E,b,x,z,ne){if(a===Js&&y==="elements"){if(x instanceof Pc)this.$a===null&&(this.$a=x);else if(x instanceof kr){var oe=x.Nl(function(ue){return ue instanceof Pc});oe instanceof Pc&&this.$a===null&&(this.$a=oe)}}else a===ul&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof kr&&this.$a.rg(b)&&(this.$a=null));Wi.prototype.gk.call(this,a,y,E,b,x,z,ne)},Xa.prototype.updateAdornments=function(){},Xa.prototype.Lj=function(){},tr.Object.defineProperties(Xa.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(a){var y=this.adornedPart,E=null;a!==null&&(E=a.part),y===null||a!==null&&y===E||y.Jf(this.category),this.ue=a,E!==null&&E.bh(this.category,this)}},adornedPart:{get:function(){var a=this.ue;return a!==null?a.part:null}},containingGroup:{get:function(){return null}}}),Xa.className="Adornment";function ey(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=vl,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 fu||typeof a=="string"?Wi.call(this,a):(Wi.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new Ar,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}vn(qr,Wi),qr.prototype.cloneProtected=function(a){Wi.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},We=qr.prototype,We.Af=function(a){Wi.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function hf(a){a.Ba===null?a.Ba=new ey:a.Ba.nc&&(a.Ba=a.Ba.copy())}We.th=function(){Wi.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function KS(a,y){y!==null&&(a.af===null&&(a.af=new qt),a.af.add(y))}function YS(a,y,E,b){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===E&&z.Px===b||z.Ds===y&&z.cv===a&&z.Ox===b&&z.Px===E)return z}return null}We.Lz=function(a,y,E){y==null&&(y=""),E==null&&(E=""),a=YS(this,a,y,E),a!==null&&a.Sl()},We.gk=function(a,y,E,b,x,z,ne){a===Js&&y==="elements"?this.wc=null:a===ul&&y==="elements"&&(this.wc=null),Wi.prototype.gk.call(this,a,y,E,b,x,z,ne)},We.Bd=function(a){for(var y=this.linksConnected;y.next();){var E=y.value;a!==void 0&&a.contains(E)||(sd(E.fromPort),sd(E.toPort),E.bb())}};function ZS(a,y){for(a=a.linksConnected;a.next();){var E=a.value;(E.fromPort===y||E.toPort===y)&&(sd(E.fromPort),sd(E.toPort),E.bb())}}function sd(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||sd(y.port)}}We.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(!Wi.prototype.isVisible.call(this))return!1;var a=!0,y=gh,E=this.diagram;if(E!==null&&(a=E.isTreePathToChildren,y=E.treeCollapsePolicy),y===gh){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===Bl){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===Vh&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(b){return!b.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},qr.prototype.Zb=function(a){Wi.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var E=y.value;if(a&&this.containingGroup!==null){var b=E.To(this);b===null||b.Td(this.containingGroup)||E.bb()}E.Zb(a)}},qr.prototype.qx=function(){var a=new qt,y=new qt;return XS(this,this,a,y),y.iterator};function XS(a,y,E,b){if(y!==null&&!E.has(y)){E.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)&&XS(a,x?ne.toNode:ne.fromNode,E,b):b.add(ne)})}}qr.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new aa(this.jb),E=this;return y.predicate=function(b){return b.fromNode===E&&b.fromPortId===a||b.toNode===E&&b.toPortId===a},y},We=qr.prototype,We.Mo=function(a){a===void 0&&(a=null);var y=new aa(this.jb),E=this;return y.predicate=function(b){return b.fromNode!==E?!1:a===null?!0:b.fromPortId===a},y},We.Sd=function(a){a===void 0&&(a=null);var y=new aa(this.jb),E=this;return y.predicate=function(b){return b.toNode!==E?!1:a===null?!0:b.toPortId===a},y},We.Mu=function(a){a===void 0&&(a=null);for(var y=null,E=null,b=this.jb.iterator;b.next();){var x=b.value;x.fromNode===this?(a===null||x.fromPortId===a)&&(x=x.toNode,y!==null?y.add(x):E!==null&&E!==x?(y=new qt,y.add(E),y.add(x)):E=x):x.toNode!==this||a!==null&&x.toPortId!==a||(x=x.fromNode,y!==null?y.add(x):E!==null&&E!==x?(y=new qt,y.add(E),y.add(x)):E=x)}return y!==null?y.iterator:E!==null?new qo(E):Ka},We.Po=function(a){a===void 0&&(a=null);for(var y=null,E=null,b=this.jb.iterator;b.next();){var x=b.value;x.fromNode!==this||a!==null&&x.fromPortId!==a||(x=x.toNode,y!==null?y.add(x):E!==null&&E!==x?(y=new qt,y.add(E),y.add(x)):E=x)}return y!==null?y.iterator:E!==null?new qo(E):Ka},We.Oo=function(a){a===void 0&&(a=null);for(var y=null,E=null,b=this.jb.iterator;b.next();){var x=b.value;x.toNode!==this||a!==null&&x.toPortId!==a||(x=x.fromNode,y!==null?y.add(x):E!==null&&E!==x?(y=new qt,y.add(E),y.add(x)):E=x)}return y!==null?y.iterator:E!==null?new qo(E):Ka},We.jz=function(a,y,E){y===void 0&&(y=null),E===void 0&&(E=null);var b=new aa(this.jb),x=this;return b.predicate=function(z){return!((z.fromNode!==x||z.toNode!==a||y!==null&&z.fromPortId!==y||E!==null&&z.toPortId!==E)&&(z.fromNode!==a||z.toNode!==x||E!==null&&z.fromPortId!==E||y!==null&&z.toPortId!==y))},b},We.kz=function(a,y,E){y===void 0&&(y=null),E===void 0&&(E=null);var b=new aa(this.jb),x=this;return b.predicate=function(z){return!(z.fromNode!==x||z.toNode!==a||y!==null&&z.fromPortId!==y||E!==null&&z.toPortId!==E)},b};function g0(a,y,E){sd(E);var b=a.jb.contains(y);if(b||a.jb.add(y),!b||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,E),ne!==null&&(ne.aa=z)}}!b&&y.isTreeLink&&(E=y.fromNode,y=y.toNode,E!==null&&y!==null&&E!==y&&(b=!0,a=a.diagram,a!==null&&(b=a.isTreePathToChildren),x=b?y:E,z=b?E:y,x.ci||(x.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(b?E===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function m0(a,y,E){sd(E);var b=a.jb.remove(y),x=null;if(b||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,E),x!==null&&(x.aa=ne)}}b&&y.isTreeLink&&(E=!0,x!==null&&(E=x.isTreePathToChildren),a=E?y.toNode:y.fromNode,y=E?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,x!==null&&x.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):em(y)))}function em(a){if(a.ci=!1,a.jb.count!==0){var y=!0,E=a.diagram;if(E===null||!E.undoManager.isUndoingRedoing){for(E!==null&&(y=E.isTreePathToChildren),E=a.jb.iterator;E.next();){var b=E.value;if(b.isTreeLink){if(y){if(b.fromNode===a){a.isTreeLeaf=!1;return}}else if(b.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}qr.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},We=qr.prototype,We.Vo=function(a){Wi.prototype.Vo.call(this,a),a||(em(this),a=this.Yk,a!==null&&iE(a,this))},We.Wo=function(a){Wi.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},We.Lj=function(){if(0<this.jb.count){var a=this.diagram;if(a!==null)for(var y=a.commandHandler!==null?a.commandHandler.deletesConnectedLinks:!0,E=this.jb.copy().iterator;E.next();){var b=E.value;y?a.remove(b):(b.fromNode===this&&(b.fromNode=null),b.toNode===this&&(b.toNode=null))}}this.labeledLink=null,Wi.prototype.Lj.call(this)},We.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 xr:a.wc.clear(),a.qm(a,function(y,E){JS(y,E)}),a.wc.count===0&&a.wc.add("",a)}function JS(a,y){var E=y.portId;E!==null&&a.wc!==null&&a.wc.add(E,y)}function ty(a,y,E){var b=y.portId;if(b!==null&&(a.wc!==null&&a.wc.remove(b),y=a.diagram,y!==null&&E)){for(E=null,a=a.findLinksConnected(b);a.next();)b=a.value,E===null&&(E=Oi()),E.push(b);if(E!==null){for(a=0;a<E.length;a++)y.remove(E[a]);Yi(E)}}}We.Nz=function(a){if(a===null||a===this)return!1;var y=!0,E=this.diagram;if(E!==null&&(y=E.isTreePathToChildren),E=this,y)for(;E!==a;){y=null;for(var b=E.jb.iterator;b.next();){var x=b.value;if(x.isTreeLink&&(y=x.fromNode,y!==E&&y!==this))break}if(y===this||y===null||y===E)return!1;E=y}else for(;E!==a;){for(y=null,b=E.jb.iterator;b.next()&&(x=b.value,!x.isTreeLink||(y=x.toNode,y===E||y===this)););if(y===this||y===null||y===E)return!1;E=y}return!0},We.xz=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this,a)for(;;){a=null;for(var E=y.jb.iterator;E.next();){var b=E.value;if(b.isTreeLink&&(a=b.fromNode,a!==y&&a!==this))break}if(a===this)return this;if(a===null||a===y)return y;y=a}else for(;;){for(a=null,E=y.jb.iterator;E.next()&&(b=E.value,!b.isTreeLink||(a=b.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},We.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 E=null;for(y=a;y!==null;){if(y.G&1048576){E=y;break}y=y.pg()}for(y=this;y!==null;)p0(y,!1),y=y.pg();return E},We.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},We.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 E=y.value;if(E.isTreeLink&&(E=a?E.fromNode:E.toNode,E!==this))return this.ci=E}return this.ci=null},We.vz=function(){function a(E,b){b.add(E);var x=E.kh();x!==null&&(b.add(x),E=E.pg(),E!==null&&a(E,b))}var y=new qt;return a(this,y),y},We.uz=function(){return $S(this,this)};function $S(a,y){return y=y.pg(),y===null?0:1+$S(a,y)}We.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new aa(this.jb);var E=this;return y.predicate=a?function(b){return!!(b.isTreeLink&&b.fromNode===E)}:function(b){return!!(b.isTreeLink&&b.toNode===E)},y},We.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var E=y=null,b=this.jb.iterator;if(a)for(;b.next();)a=b.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):E!==null&&E!==a?(y=new Ar,y.add(E),y.add(a)):E=a);else for(;b.next();)a=b.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):E!==null&&E!==a?(y=new Ar,y.add(E),y.add(a)):E=a);return y!==null?y.iterator:E!==null?new qo(E):Ka},We.wz=function(a){a===void 0&&(a=1/0);var y=new qt;return Bf(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 E=new qt;E.add(this),qS(this,E,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===gh),y.Ue=!1}};function qS(a,y,E,b,x,z,ne){if(1<b)for(var oe=E?a.Mo():a.Sd();oe.next();){var ue=oe.value;ue.isTreeLink&&(ue=ue.To(a),ue===null||ue===a||y.contains(ue)||(y.add(ue),qS(ue,y,E,b-1,x,z,ne)))}else eE(a,y,E,x,z,ne)}function eE(a,y,E,b,x,z){for(var ne=x===a?!0:a.isTreeExpanded,oe=E?a.Mo():a.Sd(),ue={};oe.next();){var he=oe.value;if(he.isTreeLink&&(he=he.To(a),he!==null&&he!==a)){var ge=y.contains(he);if(ge||y.add(he),ne){var Ee=E?he.Oo():he.Po();ue.uv=a,Ee.all(function(ke){return function(Ve){return Ve===ke.uv||!Ve.isTreeExpanded}}(ue))&&b.Aj(he,x),he.oh(),he.Zb(!1)}he.isTreeExpanded&&(he.wasTreeExpanded=he.isTreeExpanded,ge||eE(he,y,E,b,x,z))}ue={uv:ue.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 E=new qt;E.add(this),tE(this,E,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===gh),y.Ue=!1}};function tE(a,y,E,b,x,z,ne){for(var oe=z===a?!1:a.isTreeExpanded,ue=E?a.Mo():a.Sd(),he={};ue.next();){var ge=ue.value;if(ge.isTreeLink&&(oe||ge.fd||ge.bb(),ge=ge.To(a),ge!==null&&ge!==a&&!y.contains(ge))){if(y.add(ge),!oe){ge.Zb(!0),ge.oh();var Ee=E?ge.Oo():ge.Po();he.vv=a,Ee.all(function(ke){return function(Ve){return Ve===ke.vv||!Ve.isTreeExpanded}}(he))&&x.Cj(ge,z)}(2<b||ge.wasTreeExpanded)&&(ge.wasTreeExpanded=!1,tE(ge,y,E,b-1,x,z,ne))}he={vv:he.vv}}a.isTreeExpanded=!0}tr.Object.defineProperties(qr.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:v0},set:function(a){var y=this.portSpreading;y!==a&&(hf(this),this.Ba.er=a,this.g("portSpreading",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return(this.U&8)!==0},set:function(a){var y=(this.U&8)!==0;if(y!==a){this.U^=8;var E=this.diagram;E!==null&&jh(E,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:vl},set:function(a){typeof a=="number"&&(a=new Bi(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),hf(this),this.Ba.yp=a;var E=this.diagram;E!==null&&jh(E,this),this.g("avoidableMargin",y,a)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return this.Ba!==null?this.Ba.Dq:null},set:function(a){var y=this.linkConnected;y!==a&&(hf(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&&(hf(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&&(hf(this),this.Ba.gj=a,this.g("linkValidation",y,a))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(a){var y=this.Yk;if(y!==a){var E=this.diagram,b=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),E!==null&&b!==null&&!E.undoManager.isUndoingRedoing){var x=y.data,z=E.model;if(x!==null&&z.ri()){var ne=z.wa(b);ne!==void 0&&z.Qx(x,ne)}}this.containingGroup=null}this.Yk=a,a!==null&&(iE(a,this),E===null||b===null||E.undoManager.isUndoingRedoing||(x=a.data,E=E.model,x!==null&&E.ri()&&(b=E.wa(b),b!==void 0&&E.Bu(x,b))),this.containingGroup=a.containingGroup),lc(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 E=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var b=!0;E!==null&&(b=E.aa,E.aa=!0),y(this),E!==null&&(E.aa=b)}E!==null&&E.undoManager.isUndoingRedoing?this.Zb(a):a?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(a){var y=(this.U&2)!==0;y!==a&&(this.U^=2,this.g("wasTreeExpanded",y,a))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(a){var y=this.treeExpandedChanged;y!==a&&(hf(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 f1=new Mn(qr,"SpreadingNone",10),v0=new Mn(qr,"SpreadingEvenly",11),ny=new Mn(qr,"SpreadingPacked",12);qr.className="Node",qr.SpreadingNone=f1,qr.SpreadingEvenly=v0,qr.SpreadingPacked=ny;function Fo(a,y){a===void 0||a instanceof fu||typeof a=="string"?qr.call(this,a):(qr.call(this),a&&(y=a)),this.U|=4608,this.Gn=new qt,this.$a=null,this.Sc=new gl,this.Sc.group=this,this.gl=new qt,this.tb=this.$p=null,y&&Object.assign(this,y)}vn(Fo,qr),Fo.prototype.cloneProtected=function(a){qr.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(E){return E instanceof Pc});y instanceof Pc?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())},We=Fo.prototype,We.Af=function(a){qr.prototype.Af.call(this,a);var y=a.Rj();for(a=a.memberParts;a.next();){var E=a.value;if(E.v(),E.C(8),E.Ej(),E instanceof qr)E.Bd(y);else if(E instanceof Fr)for(E=E.labelNodes;E.next();)E.value.Bd(y)}},We.gk=function(a,y,E,b,x,z,ne){if(a===Js&&y==="elements"){if(x instanceof Pc)this.$a===null?this.$a=x:this.$a!==x&&Pn("Cannot insert a second Placeholder into the visual tree of a Group.");else if(x instanceof kr){var oe=x.Nl(function(ue){return ue instanceof Pc});oe instanceof Pc&&(this.$a===null?this.$a=oe:this.$a!==oe&&Pn("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===ul&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof kr&&this.$a.rg(b)&&(this.$a=null));qr.prototype.gk.call(this,a,y,E,b,x,z,ne)},We.Xl=function(a,y){qr.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==kr.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof kr&&(a=a.Pb()),this.tb===null&&(this.tb=new Un),a.mi(this.tb),a instanceof Zo&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},We.eh=function(a,y,E,b){this.nf=this.$a,qr.prototype.eh.call(this,a,y,E,b)},We.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Fr||y.Va()}),qr.prototype.Va.call(this)},We.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()&&Xt(y))return!1}else if(y instanceof Fr&&y.isVisible()&&Xt(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function ry(a,y){if(a.Gn.add(y)){y instanceof Fo&&a.gl.add(y);var E=a.memberAdded;if(E!==null){var b=!0,x=a.diagram;x!==null&&(b=x.aa,x.aa=!0),E(a,y),x!==null&&(x.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof Fr&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function iy(a,y){if(a.Gn.remove(y)){y instanceof Fo&&a.gl.remove(y);var E=a.memberRemoved;if(E!==null){var b=!0,x=a.diagram;x!==null&&(b=x.aa,x.aa=!0),E(a,y),x!==null&&(x.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof Fr&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}We.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)},Fo.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=Jn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Fo.prototype.addMembers=function(a,y){var E=this.diagram;if(E===null)return!1;E=E.commandHandler;var b=!0;for(a=Jn(a).iterator;a.next();){var x=a.value;!y||E.isValidMember(this,x)?x.containingGroup=this:b=!1}return b},Fo.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))},We=Fo.prototype,We.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 E=y.value;if(a===void 0||!a.contains(E)){var b=E.fromNode;b!==null&&b!==this&&b.Td(this)&&!b.isVisible()?(sd(E.fromPort),sd(E.toPort),E.bb()):(b=E.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(sd(E.fromPort),sd(E.toPort),E.bb()))}}},We.Lu=function(){var a=this.diagram!==null&&this.diagram.Pw;if(a&&this.$p!==null)return this.$p.iterator;var y=this.Rj();y.add(this);for(var E=new qt,b=y.iterator;b.next();){var x=b.value;if(x instanceof qr)for(x=x.linksConnected;x.next();){var z=x.value;y.contains(z)||E.add(z)}}return a&&(this.$p=E),E.iterator},We.iz=function(){var a=this.Rj();a.add(this);for(var y=new qt,E=a.iterator;E.next();){var b=E.value;if(b instanceof qr)for(b=b.linksConnected;b.next();){var x=b.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},We.hz=function(){function a(E,b){E!==null&&(b.add(E),a(E.containingGroup,b))}var y=new qt;return a(this,y),y},We.Rj=function(){var a=new qt;return Bf(a,this,!0,0,!0),a.remove(this),a},We.Zb=function(a){qr.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Fo.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();nE(this,y,a,this),a.Ue=!1}};function nE(a,y,E,b){for(var x=a.memberParts;x.next();){var z=x.value;if(z.Zb(!1),z instanceof Fo&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,nE(z,y,E,b)),z instanceof qr)z.Bd(y),E.Aj(z,b);else if(z instanceof Fr)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Fo.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();rE(this,y,a,this),a.Ue=!1}};function rE(a,y,E,b){for(var x=a.memberParts;x.next();){var z=x.value;if(z.Zb(!0),z instanceof Fo&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,rE(z,y,E,b)),z instanceof qr)z.Bd(y),E.Cj(z,b);else if(z instanceof Fr)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Fo.prototype.move=function(a,y){y===void 0&&(y=!1);var E=y?this.location:this.position,b=E.x;E=E.y;var x=a.x,z=a.y;if(!(b===x||isNaN(b)&&isNaN(x))||!(E===z||isNaN(E)&&isNaN(z))){for(b=x-(isNaN(b)?0:b),E=z-(isNaN(E)?0:E),z=xt.alloc(),qr.prototype.move.call(this,a,y),a=new qt,y=this.Rj().iterator;y.next();)x=y.value,x instanceof Fr&&(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,oe=x.location;ne.w()?(z.x=ne.x+b,z.y=ne.y+E,x.position=z):oe.w()&&(z.x=oe.x+b,z.y=oe.y+E,x.location=z)}for(y.reset();y.next();)x=y.value,x instanceof Fr&&(x.suspendsRouting=a.contains(x),x.fd||x.fromNode!==this&&x.toNode!==this)&&(ne=x.position,z.x=ne.x+b,z.y=ne.y+E,z.w()?x.move(z):x.bb(),ay(x)&&x.bb());xt.free(z)}},tr.Object.defineProperties(Fo.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&&Pn("A layout cannot be both the Diagram.layout and a Group.layout: "+a),y!==null&&(y.diagram=null,y.group=null),this.Sc=a;var E=this.diagram;a!==null&&(a.diagram=E,a.group=this),E!==null&&(E.xh=!0),this.g("layout",y,a),E!==null&&E.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(a){var y=this.memberAdded;y!==a&&(hf(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&&(hf(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&&(hf(this),this.Ba.ij=a,this.g("memberValidation",y,a))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(a){var y=(this.U&256)!==0;y!==a&&(this.U^=256,this.g("ungroupable",y,a))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(a){var y=(this.U&512)!==0;if(y!==a){this.U^=512;var E=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var b=!0;E!==null&&(b=E.aa,E.aa=!0),y(this),E!==null&&(E.aa=b)}E!==null&&E.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&&(hf(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)}}}),Fo.prototype.expandSubGraph=Fo.prototype.expandSubGraph,Fo.prototype.collapseSubGraph=Fo.prototype.collapseSubGraph,Fo.prototype.findSubGraphParts=Fo.prototype.Rj,Fo.prototype.findContainingGroupChain=Fo.prototype.hz,Fo.prototype.findExternalNodesConnected=Fo.prototype.iz,Fo.prototype.findExternalLinksConnected=Fo.prototype.Lu,Fo.prototype.ensureBounds=Fo.prototype.Va,Fo.className="Group";function Pc(a){pn.call(this),this.yb=Gs,this.ko=new Un(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}vn(Pc,pn),Pc.prototype.cloneProtected=function(a){pn.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Pc.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return vs(0,0,y.width,y.height,a.x,a.y)},Pc.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Fo||a instanceof Xa)||Pn("Placeholder is not inside a Group or Adornment."),a instanceof Fo){var y=this.computeBorder(this.ko),E=this.minSize,b=this.dc;for(ws(b,(isFinite(E.width)?Math.max(E.width,y.width):y.width)||0,(isFinite(E.height)?Math.max(E.height,y.height):y.height)||0),this.Ge(0,0,b.width,b.height),b=a.memberParts,E=!1;b.next();)if(b.value.isVisible()){E=!0;break}b=a.diagram,!E||b===null||b.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(E=xt.alloc(),E.xi(y,a.locationSpot),E.D(a.location)||(a.location=E),xt.free(E))}else{y=this.dc,E=this.yb,b=E.left+E.right;var x=E.top+E.bottom,z=a.adornedObject;a.angle=z.li();var ne=0;z instanceof Zo&&(ne=z.strokeWidth);var oe=z.Df(),ue=z.naturalBounds,he=(ue.width+ne)*oe;ne=(ue.height+ne)*oe,a.type!==kr.Link&&(oe=z.ga(a.category==="Selection"?Vs:a.locationSpot,xt.alloc()),a.location=oe,xt.free(oe)),isNaN(he)||isNaN(ne)?(a=z.ga(Vs,xt.alloc()),he=Un.allocAt(a.x,a.y,0,0),he.Ye(z.ga(eu,a)),he.Ye(z.ga(Qs,a)),he.Ye(z.ga(Pl,a)),ws(y,he.width+b||0,he.height+x||0),this.Ge(-E.left,-E.top,y.width,y.height),xt.free(a),Un.free(he)):(ws(y,he+b||0,ne+x||0),this.Ge(-E.left,-E.top,y.width,y.height))}},Pc.prototype.eh=function(a,y,E,b){this.actualBounds.h(a,y,E,b)},Pc.prototype.computeBorder=function(a){var y=this.part,E=y.diagram,b=E===null||!E.animationManager.isAnimating;if(E!==null&&y instanceof Fo&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var x=E.toolManager.findTool("Dragging");if(x===E.currentTool&&(E=x.computeBorder(y,this.ko,a),E!==null))return E}E=Un.alloc(),x=this.computeMemberBounds(E);var z=this.yb;return y instanceof Fo&&!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)),Un.free(E),b&&y instanceof Fo&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Pc.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Fo))return a.h(0,0,0,0),a;for(var y=this.part,E=1/0,b=1/0,x=-1/0,z=-1/0,ne=y.memberParts;ne.next();){var oe=ne.value;if(oe.isVisible()){if(oe instanceof Fr&&(!y.computesBoundsIncludingLinks||Ht(oe)||oe.fromNode===y||oe.toNode===y))continue;oe=oe.actualBounds,oe.left<E&&(E=oe.left),oe.top<b&&(b=oe.top),oe.right>x&&(x=oe.right),oe.bottom>z&&(z=oe.bottom)}}return isFinite(E)&&isFinite(b)?a.h(E,b,x-E,z-b):(y=y.location,a.h(y.x,y.y,0,0)),a},tr.Object.defineProperties(Pc.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Bi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Pc.className="Placeholder";function Fr(a){Wi.call(this,kr.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Nc,this.Om=0,this.Qm=Nc,this.Rm=NaN,this.qj=uy,this.po=.5,this.wd=null,this.Nb=new Ar().freeze(),this.Tg=this.Mg=null,this.ml=new Un,this.ua=new Mr,this.u=this.o=this.Sf=this.Wf=null,this.su=new xt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}vn(Fr,Wi),Fr.prototype.cloneProtected=function(a){Wi.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())},We=Fr.prototype,We.Af=function(a){Wi.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&&sd(y),a=a.toPort,a!==null&&sd(a)},We.qb=function(a){a.classType===Fr?(a.value&2)===2?this.routing=a:a===Ed||a===pf||a===Eg?this.curve=a:a===rm||a===w0||a===C0?this.adjusting=a:a!==uy&&a!==Nc&&Pn("Unknown Link enum value for a Link property: "+a):Wi.prototype.qb.call(this,a)},We.Xc=function(){this.ba===null&&(this.ba=new Ho)},We.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Xt(a)||Df(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Xt(a)||Df(a)))},We.zv=function(){return!1},We.Av=function(){},We.Zc=function(){return!1},Fr.prototype.computeAngle=function(a,y,E){return Fr.computeAngle(y,E)},Fr.computeAngle=function(a,y){switch(a){default:case Nc:a=0;break;case im:a=y;break;case om:a=y+90;break;case am:a=y-90;break;case cy:a=y+180;break;case T0:a=gn.bp(y),90<a&&270>a&&(a-=180);break;case sm:a=gn.bp(y+90),90<a&&270>a&&(a-=180);break;case lm:a=gn.bp(y-90),90<a&&270>a&&(a-=180);break;case A0:if(a=gn.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return gn.bp(a)};function yg(a){var y=a.fromNode,E=a.toNode,b=null;if(y!==null?b=E!==null?y.px(E):y.containingGroup:E!==null?b=E.containingGroup:b=null,y=b,E=a.Ah,E!==y){E!==null&&iy(E,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,E,y),ne!==null&&(ne.aa=z)}!a.fd||a.Lw!==E&&a.Mw!==E||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=b}We=Fr.prototype,We.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Wi.prototype.oh.call(this)},We.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},We.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function iE(a,y){a.wd===null&&(a.wd=new qt),a.wd.add(y),a.v()}We.Vo=function(a){if(Wi.prototype.Vo.call(this,a),dp(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,g0(a,this,y));var E=this.uf;if(E!==null){var b=this.toPort;E===a&&b===y||g0(E,this,b)}tm(this)}},We.Wo=function(a){if(Wi.prototype.Wo.call(this,a),dp(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,m0(a,this,y));var E=this.uf;if(E!==null){var b=this.toPort;E===a&&b===y||m0(E,this,b)}nm(this)}},We.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))},Fr.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Fr.prototype.move=function(a,y){var E=y?this.location:this.position,b=E.x;isNaN(b)&&(b=0);var x=E.y;for(isNaN(x)&&(x=0),b=a.x-b,x=a.y-x,y===!0?Wi.prototype.move.call(this,a,!1):(a=xt.allocAt(E.x+b,E.y+x),Wi.prototype.move.call(this,a,!1),xt.free(a)),ff(this,b,x),a=this.labelNodes;a.next();)y=a.value,E=y.position,y.moveTo(E.x+b,E.y+x)},Fr.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},Fr.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},Fr.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Sa),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var E=this.i(0),b=this.i(1);return a.h((E.x+b.x)/2,(E.y+b.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Ed))return this.ua.Pu(.5,a),a.add(this.i(0)),E=this.ua.figures.first(),a.offset(-E.startX,-E.startY),a;if(this.computeCurve()===Ed){if(y===3){E=this.i(0),b=this.i(1);var x=this.i(2);return gn.ax(E.x,E.y,b.x,b.y,b.x,b.y,x.x,x.y,a),a}if(b=(y-1)/3|0,E=3*(b/2|0),b%2===1){b=this.i(E),x=this.i(E+1);var z=this.i(E+2);E=this.i(E+3),gn.ax(b.x,b.y,x.x,x.y,z.x,z.y,E.x,E.y,a)}else a.assign(this.i(E));return a}var ne=this.flattenedLengths;for(E=this.flattenedTotalLength,x=z=b=0;b<E/2&&z<y&&(x=ne[z],!(b+x>E/2));)b+=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-(E/2-b)):a.h(y.x,y.y+(E/2-b)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(E/2-b),y.y):a.h(y.x+(E/2-b),y.y):(E=(E/2-b)/x,a.h(y.x+E*(z.x-y.x),y.y+E*(z.y-y.y))),a},Fr.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()===Ed))return this.ua.wx(.5);if(this.computeCurve()===Ed&&4<=a){var y=(a-1)/3|0,E=3*(y/2|0);if(y%2===1){E=Math.floor(E),a=this.i(E),y=this.i(E+1);var b=this.i(E+2);return E=this.i(E+3),gn.My(a.x,a.y,y.x,y.y,b.x,b.y,E.x,E.y)}if(0<E&&E+1<a)return this.i(E-1).ab(this.i(E+1))}y=this.flattenedLengths,b=this.flattenedTotalLength;var x=0;E=0;for(var z;x<b/2&&E<a&&(z=y[E],!(x+z>b/2));)x+=z,E++;if(y=this.i(E),b=this.i(E+1),1>Math.abs(y.x-b.x)&&1>Math.abs(y.y-b.y)){if(0<E&&E+2<a)return this.i(E-1).ab(this.i(E+2))}else{if(1>Math.abs(y.x-b.x))return y.y>b.y?270:90;if(1>Math.abs(y.y-b.y))return y.x>b.x?180:0}return y.ab(b)},We=Fr.prototype,We.i=function(a){return this.Nb.s[a]},We.dd=function(a,y){this.Nb.cd(a,y)},We.L=function(a,y,E){this.Nb.cd(a,new xt(y,E))},We.Kz=function(a,y){this.Nb.Gb(a,y)},We.m=function(a,y,E){this.Nb.Gb(a,new xt(y,E))},We.ne=function(a){this.Nb.add(a)},We.yf=function(a,y){this.Nb.add(new xt(a,y))},We.pv=function(a){this.Nb.mb(a)},We.Fj=function(){this.Nb.clear()};function ff(a,y,E){if(y!==0||E!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,E),a.defaultToPoint&&a.defaultToPoint.offset(y,E);else{for(var b=a.fd,x=new Ar,z=a.Nb.iterator;z.next();){var ne=z.value;x.add(new xt(ne.x+y,ne.y+E).freeze())}x.freeze(),z=a.Nb,a.Nb=x,ne=a.diagram,isNaN(y)||isNaN(E)||ne!==null&&ne.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+E),a.pa.h(a.pa.x+y,a.pa.y+E),lc(a)),b?y0(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),ne!==null&&ne.animationManager.zb&&ho(ne.animationManager,a,x),a.g("points",z,x)}}We.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},We.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,E=1/0,b=1/0,x=a.s,z=x.length,ne=0;ne<z;ne++){var oe=x[ne];E=Math.min(oe.x,E),b=Math.min(oe.y,b)}oe=ne=1/0;for(var ue=y.s,he=ue.length,ge=0;ge<he;ge++){var Ee=ue[ge];ne=Math.min(Ee.x,ne),oe=Math.min(Ee.y,oe),Ee.freeze()}if(y.freeze(),he===z){for(z=0;z<he;z++)if(ge=x[z],Ee=ue[z],ge.x-E!==Ee.x-ne||ge.y-b!==Ee.y-oe){this.qc();break}}else this.qc();this.Mg=null,E=this.diagram,E!==null&&E.animationManager.zb&&ho(E.animationManager,this,y),y0(this),this.g("points",a,y)}},We.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))}We.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())}},We.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()}}},Fr.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(Bp||(Bp=new qr,Bp.desiredSize=mr,Bp.Va()),this.defaultFromPoint&&(Bp.location=this.defaultFromPoint,Bp.Va(),y=a=Bp)):y=this.fromPort,y!==null&&!a.isVisible()){var E=a.findVisibleNode();E!==null&&E!==a?(a=E,y=E.port):a=E}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var b=this.toNode,x=null;if(b===null?(_p||(_p=new qr,_p.desiredSize=mr,_p.Va()),this.defaultToPoint&&(_p.location=this.defaultToPoint,_p.Va(),x=b=_p)):x=this.toPort,x===null||b.isVisible()||(E=b.findVisibleNode(),E!==null&&E!==b?(b=E,x=E.port):b=E),this.Mw=b,b===null||!b.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);E=this.computeSpot(!1,x);var oe=Sg(ne),ue=Sg(E),he=y===x&&y!==null,ge=this.isOrthogonal,Ee=this.curve===Ed;this.Wf=he&&!ge?Ee=!0:!1;var ke=this.computeAdjusting()===Nc||he;if(!ge&&!he&&oe&&ue){if(oe=!1,!ke&&3<=z&&(ke=this.getLinkPoint(a,y,ne,!0,!1,b,x),ue=this.getLinkPoint(b,x,E,!1,!1,a,y),oe=this.adjustPoints(0,ke,z-1,ue))&&(ke=this.getLinkPoint(a,y,ne,!0,!1,b,x),ue=this.getLinkPoint(b,x,E,!1,!1,a,y),this.adjustPoints(0,ke,z-1,ue)),!oe)if(this.Fj(),Ee){z=this.getLinkPoint(a,y,ne,!0,!1,b,x),ke=this.getLinkPoint(b,x,E,!1,!1,a,y),oe=ke.x-z.x,ue=ke.y-z.y,he=this.computeCurviness(),Ee=ge=0;var Ve=z.x+oe/3,Ze=z.y+ue/3,st=Ve,Ot=Ze;gn.B(ue,0)?Ot=0<oe?Ot-he:Ot+he:(ge=-oe/ue,Ee=Math.sqrt(he*he/(ge*ge+1)),0>he&&(Ee=-Ee),st=(0>ue?-1:1)*Ee+Ve,Ot=ge*(st-Ve)+Ze),Ve=z.x+2*oe/3,Ze=z.y+2*ue/3;var Pt=Ve,zt=Ze;gn.B(ue,0)?zt=0<oe?zt-he:zt+he:(Pt=(0>ue?-1:1)*Ee+Ve,zt=ge*(Pt-Ve)+Ze),this.Fj(),this.ne(z),this.yf(st,Ot),this.yf(Pt,zt),this.ne(ke),this.dd(0,this.getLinkPoint(a,y,ne,!0,!1,b,x)),this.dd(3,this.getLinkPoint(b,x,E,!1,!1,a,y))}else z=b,ke=x,b=this.getLinkPoint(a,y,ne,!0,!1,z,ke),x=this.getLinkPoint(z,ke,E,!1,!1,a,y),this.hasCurviness()?(ke=x.x-b.x,E=x.y-b.y,ne=this.computeCurviness(),a=b.x+ke/2,y=b.y+E/2,z=a,oe=y,gn.B(E,0)?oe=0<ke?oe-ne:oe+ne:(ke=-ke/E,z=Math.sqrt(ne*ne/(ke*ke+1)),0>ne&&(z=-z),z=(0>E?-1:1)*z+a,oe=ke*(z-a)+y),this.ne(b),this.yf(z,oe),this.ne(x)):(this.ne(b),this.ne(x),oe=Un.alloc(),y.mi(oe),ue=oe.ca(x),ke.mi(oe),he=oe.ca(b),(ue||he)&&(ne=y.ga(E0(ne),new xt),this.dd(0,this.getLinkPointFromPoint(a,y,ne,x,!0,ne)),E=ke.ga(E0(E),new xt),this.dd(1,this.getLinkPointFromPoint(z,ke,E,b,!1,E))),Un.free(oe))}else{Ee=this.isAvoiding,ke&&(ge&&Ee||he)&&this.Fj();var Kt=he?this.computeCurviness():0;Ee=this.getLinkPoint(a,y,ne,!0,ge,b,x),Ve=st=Ze=0,(ge||!oe||he)&&(Ot=this.computeEndSegmentLength(a,y,ne,!0),Ve=this.getLinkDirection(a,y,Ee,ne,!0,ge,b,x),he&&(oe||ne.D(E)||!ge&&ne.x+E.x===1&&ne.y+E.y===1)&&(Ve-=ge?90:30,0>Kt&&(Ve-=180)),0>Ve?Ve+=360:360<=Ve&&(Ve-=360),he&&(Ot+=Math.abs(Kt)*(ge?1:2)),Ve===0?Ze=Ot:Ve===90?st=Ot:Ve===180?Ze=-Ot:Ve===270?st=-Ot:(Ze=Ot*Math.cos(Ve*Math.PI/180),st=Ot*Math.sin(Ve*Math.PI/180)),ne.Mc()&&he&&(Ot=y.ga(la,xt.alloc()),Pt=xt.allocAt(Ot.x+1e3*Ze,Ot.y+1e3*st),this.getLinkPointFromPoint(a,y,Ot,Pt,!0,Ee),xt.free(Ot),xt.free(Pt))),Ot=this.getLinkPoint(b,x,E,!1,ge,a,y);var Jt=zt=Pt=0;if(ge||!ue||he){var dn=this.computeEndSegmentLength(b,x,E,!1);Jt=this.getLinkDirection(b,x,Ot,E,!1,ge,a,y),he&&(ue||ne.D(E)||!ge&&ne.x+E.x===1&&ne.y+E.y===1)&&(Jt+=ge?0:30,0>Kt&&(Jt+=180)),0>Jt?Jt+=360:360<=Jt&&(Jt-=360),he&&(dn+=Math.abs(Kt)*(ge?1:2)),Jt===0?Pt=dn:Jt===90?zt=dn:Jt===180?Pt=-dn:Jt===270?zt=-dn:(Pt=dn*Math.cos(Jt*Math.PI/180),zt=dn*Math.sin(Jt*Math.PI/180)),E.Mc()&&he&&(E=x.ga(la,xt.alloc()),ne=xt.allocAt(E.x+1e3*Pt,E.y+1e3*zt),this.getLinkPointFromPoint(b,x,E,ne,!1,Ot),xt.free(E),xt.free(ne))}E=Ee,(ge||!oe||he)&&(E=new xt(Ee.x+Ze,Ee.y+st)),ne=Ot,(ge||!ue||he)&&(ne=new xt(Ot.x+Pt,Ot.y+zt)),!ke&&!ge&&oe&&3<z&&this.adjustPoints(0,Ee,z-2,ne)?this.dd(z-1,Ot):!ke&&!ge&&ue&&3<z&&this.adjustPoints(1,E,z-1,Ot)?this.dd(0,Ee):!ke&&(ge?6<=z:4<z)&&this.adjustPoints(1,E,z-2,ne)?(this.dd(0,Ee),this.dd(z-1,Ot)):(this.Fj(),this.ne(Ee),(ge||!oe||he)&&this.ne(E),ge&&this.addOrthoPoints(E,Ve,ne,Jt,a,b),(ge||!ue||he)&&this.ne(ne),this.ne(Ot))}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}Fr.prototype.getLinkPointFromPoint=function(a,y,E,b,x,z){if(z===void 0&&(z=new xt),a===null||y===null)return z.assign(E),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=b.x,b=b.y;var ne=E.x;E=E.y}else{a=x.oe,x=1/(a.m11*a.m22-a.m12*a.m21),ne=a.m22*x;var oe=-a.m12*x,ue=-a.m21*x,he=a.m11*x,ge=x*(a.m21*a.dy-a.m22*a.dx),Ee=x*(a.m12*a.dx-a.m11*a.dy);x=b.x*ne+b.y*ue+ge,b=b.x*oe+b.y*he+Ee,ne=E.x*ne+E.y*ue+ge,E=E.x*oe+E.y*he+Ee}return y.Sj(x,b,ne,E,z),a!==null&&z.transform(a),z};function S0(a,y){var E=y.Zn;return E===null&&(E=new Up,E.port=y,E.node=y.part,y.Zn=E),hE(E,a)}Fr.prototype.getLinkPoint=function(a,y,E,b,x,z,ne,oe){if(oe===void 0&&(oe=new xt),E.sb()&&!Sg(E))return y.ga(E,oe),oe;if(E.$c()){var ue=S0(this,y);if(ue!==null){if(oe.assign(ue.Zo),x&&this.routing===aE){var he=S0(this,ne);if(he!==null&&ue.Gl<he.Gl){ue=xt.alloc(),he=xt.alloc();var ge=new Un(y.ga(Vs,ue),y.ga(eu,he)),Ee=this.computeSpot(!b,ne);a=this.getLinkPoint(z,ne,Ee,!b,x,a,y,he),(E.Hf(cc)||E.Hf(Il))&&a.y>=ge.y&&a.y<=ge.y+ge.height?oe.y=a.y:(E.Hf(Hu)||E.Hf(al))&&a.x>=ge.x&&a.x<=ge.x+ge.width&&(oe.x=a.x),xt.free(ue),xt.free(he)}}return oe}}return E=y.ga(E0(E),xt.alloc()),this.pointsCount>(x?6:2)?(ne=b?this.i(1):this.i(this.pointsCount-2),x&&(ne=oy(E,ne.copy()))):(ue=this.computeSpot(!b,ne),z=xt.alloc(),ne=ne.ga(E0(ue),z),x&&(ne=oy(E,ne)),xt.free(z)),this.getLinkPointFromPoint(a,y,E,ne,b,oe),xt.free(E),oe},Fr.prototype.getLinkDirection=function(a,y,E,b,x,z,ne,oe){e:if(b.sb())var ue=b.x>b.y?b.x>1-b.y?0:b.x<1-b.y?270:315:b.x<b.y?b.x>1-b.y?90:b.x<1-b.y?180:135:.5>b.x?225:.5<b.x?45:0;else{if(b.$c()&&(ue=S0(this,y),ue!==null))switch(ue.Nc){case 1:ue=270;break e;case 2:ue=180;break e;default:case 4:ue=0;break e;case 8:ue=90;break e}ue=y.ga(la,xt.alloc()),this.pointsCount>(z?6:2)?(oe=x?this.i(1):this.i(this.pointsCount-2),oe=z?oy(ue,oe.copy()):E):(E=xt.alloc(),oe=oe.ga(la,E),xt.free(E)),E=Math.abs(oe.x-ue.x)>Math.abs(oe.y-ue.y)?oe.x>=ue.x?0:180:oe.y>=ue.y?90:270,xt.free(ue),ue=E}return b.Mc()&&ne.Td(a)&&(ue+=180,360<=ue&&(ue-=360)),Sg(b)||(a=y.li(),a===0)||(45<=a&&135>a?ue+=90:135<=a&&225>a?ue+=180:225<=a&&315>a&&(ue+=270),360<=ue&&(ue-=360)),ue},Fr.prototype.computeEndSegmentLength=function(a,y,E,b){return y!==null&&E.$c()&&(a=S0(this,y),a!==null)?a.Ju:(a=b?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=b?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},Fr.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=la:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===yl?zs:y)):(a=y||this.toPort,a===null?a=la:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===yl?zs:y)),a};function Sg(a){return a===zs||a.x===.5&&a.y===.5}function E0(a){return a.x===.5&&a.y===.5?a:la}Fr.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Nc&&4<this.pointsCount?this.computeMidPoint(new xt):(a=y.Zn,a=a!==null?hE(a,this):null,a!==null?a.Zo:y.ga(la))},Fr.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},Fr.prototype.Cf=function(a,y,E,b,x,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),E===void 0&&(E=null);var ne=z;if(z===void 0&&(ne=No.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return Lv(this,y,E,x),z===void 0&&No.free(ne),!0;if(this.Yc(a,ne)){var oe=!1;if(!this.isAtomic)for(var ue=this.O.s,he=ue.length;he--;){var ge=ue[he];if(ge.visible||ge===this.locationObject){var Ee=ge.actualBounds,ke=this.naturalBounds;if(!(Ee.x>ke.width||Ee.y>ke.height||0>Ee.x+Ee.width||0>Ee.y+Ee.height)){if(Ee=No.alloc(),Ee.set(ne),ge instanceof kr)oe=ge.Cf(a,y,E,b,x,Ee);else if(this.path===ge){if(ge instanceof Zo)if(oe=a,ke=b,ge.pickable===!1)oe=!1;else if(Ee.multiply(ge.transform),ke)e:{var Ve=oe,Ze=Ee;if(ge.fh(Ve,Ze))oe=!0;else{if(Ze===void 0&&(Ze=ge.transform,Ve.Re(ge.actualBounds))){oe=!0;break e}oe=Ve.left,ke=Ve.right;var st=Ve.top;Ve=Ve.bottom;var Ot=xt.alloc(),Pt=xt.alloc(),zt=xt.alloc(),Kt=No.alloc();Kt.set(Ze),Kt.bv(ge.transform),Kt.Vj(),Pt.x=ke,Pt.y=st,Pt.transform(Kt),Ot.x=oe,Ot.y=st,Ot.transform(Kt),Ze=!1,up(ge,Ot,Pt,zt)?Ze=!0:(Ot.x=ke,Ot.y=Ve,Ot.transform(Kt),up(ge,Ot,Pt,zt)?Ze=!0:(Pt.x=oe,Pt.y=Ve,Pt.transform(Kt),up(ge,Ot,Pt,zt)?Ze=!0:(Ot.x=oe,Ot.y=st,Ot.transform(Kt),up(ge,Ot,Pt,zt)&&(Ze=!0)))),No.free(Kt),xt.free(Ot),xt.free(Pt),xt.free(zt),oe=Ze}}else oe=ge.fh(oe,Ee)}else oe=ou(ge,a,b,Ee);oe&&(ke=ge,y!==null&&(ke=y(ge)),ke&&(E===null||E(ke))&&x.add(ke)),No.free(Ee)}}}return z===void 0&&No.free(ne),oe||this.background!==null||this.areaBackground!==null}return z===void 0&&No.free(ne),!1},Fr.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?Ed:this.curve},Fr.prototype.computeCorner=function(){if(this.curve===Ed)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Fr.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,E=y.length,b=0;b<E;b++){var x=y[b];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},Fr.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=lE;a=Math.max(a,this.computeThickness());var y=this.fromPort,E=this.toPort;if(y!==null&&E!==null){var b=this.findMidLabel();if(b!==null){var x=b.naturalBounds,z=b.margin,ne=isNaN(x.width)?30:x.width*b.scale+z.left+z.right;x=isNaN(x.height)?14:x.height*b.scale+z.top+z.bottom,b=b.segmentOrientation,b===im||b===T0||b===cy?a=Math.max(a,x):b===am||b===lm||b===om||b===sm?a=Math.max(a,ne):(y=y.ga(la).ab(E.ga(la))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ne)+Math.abs(Math.cos(y)*x)+1)),this.curve===Ed&&(a*=1.333)}}return a},Fr.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var E=a[y];E.computeAdjusting()===Nc&&E.bb()}},Fr.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=sE;var y=this.Sf;if(y!==null){for(var E=Oi(),b=0,x=y.links,z=0;z<x.length;z++){var ne=x[z].computeSpacing();E.push(ne),b+=ne}for(b=-b/2,z=0;z<x.length;z++){if(x[z]===this){a=b+E[z]/2;break}b+=E[z]}y.Ds===this.fromNode&&(a=-a),Yi(E)}}return a},Fr.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Fr.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Fr.prototype.adjustPoints=function(a,y,E,b){var x=this.computeAdjusting();if(this.isOrthogonal){if(x===w0)return!1;x===C0&&(x=rm)}switch(x){case w0:var z=this.i(a),ne=this.i(E);if(!z.Xa(y)||!ne.Xa(b)){x=z.x,z=z.y;var oe=ne.x-x,ue=ne.y-z,he=Math.sqrt(oe*oe+ue*ue);if(!gn.$(he,0)){if(gn.$(oe,0))var ge=0>ue?-Math.PI/2:Math.PI/2;else ge=Math.atan(ue/Math.abs(oe)),0>oe&&(ge=Math.PI-ge);ne=y.x;var Ee=y.y;oe=b.x-ne;var ke=b.y-Ee;for(ue=Math.sqrt(oe*oe+ke*ke),gn.$(oe,0)?ke=0>ke?-Math.PI/2:Math.PI/2:(ke=Math.atan(ke/Math.abs(oe)),0>oe&&(ke=Math.PI-ke)),he=ue/he,ge=ke-ge,this.dd(a,y),a+=1;a<E;a++)y=this.i(a),oe=y.x-x,ue=y.y-z,y=Math.sqrt(oe*oe+ue*ue),gn.$(y,0)||(gn.$(oe,0)?ue=0>ue?-Math.PI/2:Math.PI/2:(ue=Math.atan(ue/Math.abs(oe)),0>oe&&(ue=Math.PI-ue)),oe=ue+ge,y*=he,this.L(a,ne+y*Math.cos(oe),Ee+y*Math.sin(oe)));this.dd(E,b)}}return!0;case C0:if(z=this.i(a),Ee=this.i(E),!z.Xa(y)||!Ee.Xa(b)){x=z.x,z=z.y,ne=Ee.x,Ee=Ee.y,he=(ne-x)*(ne-x)+(Ee-z)*(Ee-z),oe=y.x,ge=y.y,ue=b.x,ke=b.y;var Ve=1;if(ue-oe!==0){var Ze=(ke-ge)/(ue-oe);Ve=Math.sqrt(1+1/(Ze*Ze))}else Ze=9e9;for(this.dd(a,y),a+=1;a<E;a++){y=this.i(a);var st=y.x,Ot=y.y,Pt=.5;he!==0&&(Pt=((x-st)*(x-ne)+(z-Ot)*(z-Ee))/he);var zt=x+Pt*(ne-x),Kt=z+Pt*(Ee-z);y=Math.sqrt((st-zt)*(st-zt)+(Ot-Kt)*(Ot-Kt)),Ot<Ze*(st-zt)+Kt&&(y=-y),0<Ze&&(y=-y),st=oe+Pt*(ue-oe),Pt=ge+Pt*(ke-ge),Ze!==0?(y=st+y/Ve,this.L(a,y,Pt-(y-st)/Ze)):this.L(a,st,Pt+y)}this.dd(E,b)}return!0;case rm:e:{if(this.isOrthogonal&&(x=this.i(a),z=this.i(a+1),ne=this.i(a+2),oe=z.x,ge=z.y,Ee=oe,he=ge,gn.B(x.y,z.y)?gn.B(z.x,ne.x)?ge=y.y:gn.B(z.y,ne.y)&&(oe=y.x):gn.B(x.x,z.x)&&(gn.B(z.y,ne.y)?oe=y.x:gn.B(z.x,ne.x)&&(ge=y.y)),this.L(a+1,oe,ge),x=this.i(E),z=this.i(E-1),ne=this.i(E-2),oe=z.x,ge=z.y,ue=oe,ke=ge,gn.B(x.y,z.y)?gn.B(z.x,ne.x)?ge=b.y:gn.B(z.y,ne.y)&&(oe=b.x):gn.B(x.x,z.x)&&(gn.B(z.y,ne.y)?oe=b.x:gn.B(z.x,ne.x)&&(ge=b.y)),this.L(E-1,oe,ge),ay(this))){this.L(a+1,Ee,he),this.L(E-1,ue,ke),E=!1;break e}this.dd(a,y),this.dd(E,b),E=!0}return E;default:return!1}},Fr.prototype.addOrthoPoints=function(a,y,E,b,x,z){0>y?y+=360:360<=y&&(y-=360),0>b?b+=360:360<=b&&(b-=360);var ne=b;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,b=315<=b||45>b?0:45<=b&&135>b?90:135<=b&&225>b?180:270;var oe=x.actualBounds.copy(),ue=z.actualBounds.copy();if(oe.w()&&ue.w()){oe.Bc(um,um),ue.Bc(um,um),oe.Ye(a),ue.Ye(E);var he=xt.alloc(),ge=xt.alloc();y===0?E.x>a.x||b===270&&E.y<a.y&&ue.right>a.x||b===90&&E.y>a.y&&ue.right>a.x?(he.h(E.x,a.y),ge.h(E.x,(a.y+E.y)/2),b===180?(he.x=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!1),ge.x=he.x,ge.y=E.y):b===270&&E.y<a.y||b===90&&E.y>a.y?(he.x=a.x<ue.left?this.computeMidOrthoPosition(a.x,a.y,ue.left,E.y,!1):a.x<ue.right&&(b===270&&a.y<ue.top||b===90&&a.y>ue.bottom)?this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!1):ue.right,ge.x=he.x,ge.y=E.y):b===0&&a.x<ue.left&&a.y>ue.top&&a.y<ue.bottom&&(he.x=a.x,he.y=a.y<E.y?Math.min(E.y,ue.top):Math.max(E.y,ue.bottom),ge.y=he.y)):(he.h(a.x,E.y),ge.h((a.x+E.x)/2,E.y),(b===180||b===90&&E.y<oe.top||b===270&&E.y>oe.bottom)&&(b===180&&(ue.ca(a)||oe.ca(E))?he.y=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!0):E.y<a.y&&(b===180||b===90)?he.y=this.computeMidOrthoPosition(a.x,oe.top,E.x,Math.max(E.y,ue.bottom),!0):E.y>a.y&&(b===180||b===270)&&(he.y=this.computeMidOrthoPosition(a.x,oe.bottom,E.x,Math.min(E.y,ue.top),!0)),ge.x=E.x,ge.y=he.y),he.y>oe.top&&he.y<oe.bottom&&(E.x>=oe.left&&E.x<=a.x||a.x<=ue.right&&a.x>=E.x?(b===90||b===270)&&(he.h(Math.max((a.x+E.x)/2,a.x),a.y),ge.h(he.x,E.y)):(he.y=b===270||(b===0||b===180)&&E.y<a.y?Math.min(E.y,b===0?oe.top:Math.min(oe.top,ue.top)):Math.max(E.y,b===0?oe.bottom:Math.max(oe.bottom,ue.bottom)),ge.x=E.x,ge.y=he.y))):y===180?E.x<a.x||b===270&&E.y<a.y&&ue.left<a.x||b===90&&E.y>a.y&&ue.left<a.x?(he.h(E.x,a.y),ge.h(E.x,(a.y+E.y)/2),b===0?(he.x=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!1),ge.x=he.x,ge.y=E.y):b===270&&E.y<a.y||b===90&&E.y>a.y?(he.x=a.x>ue.right?this.computeMidOrthoPosition(a.x,a.y,ue.right,E.y,!1):a.x>ue.left&&(b===270&&a.y<ue.top||b===90&&a.y>ue.bottom)?this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!1):ue.left,ge.x=he.x,ge.y=E.y):b===180&&a.x>ue.right&&a.y>ue.top&&a.y<ue.bottom&&(he.x=a.x,he.y=a.y<E.y?Math.min(E.y,ue.top):Math.max(E.y,ue.bottom),ge.y=he.y)):(he.h(a.x,E.y),ge.h((a.x+E.x)/2,E.y),(b===0||b===90&&E.y<oe.top||b===270&&E.y>oe.bottom)&&(b===0&&(ue.ca(a)||oe.ca(E))?he.y=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!0):E.y<a.y&&(b===0||b===90)?he.y=this.computeMidOrthoPosition(a.x,oe.top,E.x,Math.max(E.y,ue.bottom),!0):E.y>a.y&&(b===0||b===270)&&(he.y=this.computeMidOrthoPosition(a.x,oe.bottom,E.x,Math.min(E.y,ue.top),!0)),ge.x=E.x,ge.y=he.y),he.y>oe.top&&he.y<oe.bottom&&(E.x<=oe.right&&E.x>=a.x||a.x>=ue.left&&a.x<=E.x?(b===90||b===270)&&(he.h(Math.min((a.x+E.x)/2,a.x),a.y),ge.h(he.x,E.y)):(he.y=b===270||(b===0||b===180)&&E.y<a.y?Math.min(E.y,b===180?oe.top:Math.min(oe.top,ue.top)):Math.max(E.y,b===180?oe.bottom:Math.max(oe.bottom,ue.bottom)),ge.x=E.x,ge.y=he.y))):y===90?E.y>a.y||b===180&&E.x<a.x&&ue.bottom>a.y||b===0&&E.x>a.x&&ue.bottom>a.y?(he.h(a.x,E.y),ge.h((a.x+E.x)/2,E.y),b===270?(he.y=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!0),ge.x=E.x,ge.y=he.y):b===180&&E.x<a.x||b===0&&E.x>a.x?(he.y=a.y<ue.top?this.computeMidOrthoPosition(a.x,a.y,E.x,ue.top,!0):a.y<ue.bottom&&(b===180&&a.x<ue.left||b===0&&a.x>ue.right)?this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!0):ue.bottom,ge.x=E.x,ge.y=he.y):b===90&&a.y<ue.top&&a.x>ue.left&&a.x<ue.right&&(he.x=a.x<E.x?Math.min(E.x,ue.left):Math.max(E.x,ue.right),he.y=a.y,ge.x=he.x)):(he.h(E.x,a.y),ge.h(E.x,(a.y+E.y)/2),(b===270||b===0&&E.x<oe.left||b===180&&E.x>oe.right)&&(b===270&&(ue.ca(a)||oe.ca(E))?he.x=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!1):E.x<a.x&&(b===270||b===0)?he.x=this.computeMidOrthoPosition(oe.left,a.y,Math.max(E.x,ue.right),E.y,!1):E.x>a.x&&(b===270||b===180)&&(he.x=this.computeMidOrthoPosition(oe.right,a.y,Math.min(E.x,ue.left),E.y,!1)),ge.x=he.x,ge.y=E.y),he.x>oe.left&&he.x<oe.right&&(E.y>=oe.top&&E.y<=a.y||a.y<=ue.bottom&&a.y>=E.y?(b===0||b===180)&&(he.h(a.x,Math.max((a.y+E.y)/2,a.y)),ge.h(E.x,he.y)):(he.x=b===180||(b===90||b===270)&&E.x<a.x?Math.min(E.x,b===90?oe.left:Math.min(oe.left,ue.left)):Math.max(E.x,b===90?oe.right:Math.max(oe.right,ue.right)),ge.x=he.x,ge.y=E.y))):E.y<a.y||b===180&&E.x<a.x&&ue.top<a.y||b===0&&E.x>a.x&&ue.top<a.y?(he.h(a.x,E.y),ge.h((a.x+E.x)/2,E.y),b===90?(he.y=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!0),ge.x=E.x,ge.y=he.y):b===180&&E.x<a.x||b===0&&E.x>=a.x?(he.y=a.y>ue.bottom?this.computeMidOrthoPosition(a.x,a.y,E.x,ue.bottom,!0):a.y>ue.top&&(b===180&&a.x<ue.left||b===0&&a.x>ue.right)?this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!0):ue.top,ge.x=E.x,ge.y=he.y):b===270&&a.y>ue.bottom&&a.x>ue.left&&a.x<ue.right&&(he.x=a.x<E.x?Math.min(E.x,ue.left):Math.max(E.x,ue.right),he.y=a.y,ge.x=he.x)):(he.h(E.x,a.y),ge.h(E.x,(a.y+E.y)/2),(b===90||b===0&&E.x<oe.left||b===180&&E.x>oe.right)&&(b===90&&(ue.ca(a)||oe.ca(E))?he.x=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!1):E.x<a.x&&(b===90||b===0)?he.x=this.computeMidOrthoPosition(oe.left,a.y,Math.max(E.x,ue.right),E.y,!1):E.x>a.x&&(b===90||b===180)&&(he.x=this.computeMidOrthoPosition(oe.right,a.y,Math.min(E.x,ue.left),E.y,!1)),ge.x=he.x,ge.y=E.y),he.x>oe.left&&he.x<oe.right&&(E.y<=oe.bottom&&E.y>=a.y||a.y>=ue.top&&a.y<=E.y?(b===0||b===180)&&(he.h(a.x,Math.min((a.y+E.y)/2,a.y)),ge.h(E.x,he.y)):(he.x=b===180||(b===90||b===270)&&E.x<a.x?Math.min(E.x,b===270?oe.left:Math.min(oe.left,ue.left)):Math.max(E.x,b===270?oe.right:Math.max(oe.right,ue.right)),ge.x=he.x,ge.y=E.y)));var Ee=E;if(this.isAvoiding){var ke=this.diagram;if(ke===null||x===z||this.layer.isTemporary||!np(ke)||oe.ca(Ee)&&!z.Td(x)||ue.ca(a)&&!x.Td(z))y=!1;else{var Ve=Nf(ke,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Ve.Yj(Math.min(a.x,he.x),Math.min(a.y,he.y),Math.abs(a.x-he.x),Math.abs(a.y-he.y))&&Ve.Yj(Math.min(he.x,ge.x),Math.min(he.y,ge.y),Math.abs(he.x-ge.x),Math.abs(he.y-ge.y))&&Ve.Yj(Math.min(ge.x,Ee.x),Math.min(ge.y,Ee.y),Math.abs(ge.x-Ee.x),Math.abs(ge.y-Ee.y)))y=!1;else{x=a,z=Ee;var Ze=E=null;if(ke.isVirtualized){ke=Ve.bounds.copy(),ke.Bc(-Ve.Ho,-Ve.Go);var st=xt.alloc();bg(Ve,a.x,a.y)||(gn.Ff(ke.x,ke.y,ke.x+ke.width,ke.y+ke.height,a.x,a.y,he.x,he.y,st)?(E=a=st.copy(),y=st.ab(he)):gn.Ff(ke.x,ke.y,ke.x+ke.width,ke.y+ke.height,he.x,he.y,ge.x,ge.y,st)?(E=a=st.copy(),y=st.ab(ge)):gn.Ff(ke.x,ke.y,ke.x+ke.width,ke.y+ke.height,ge.x,ge.y,Ee.x,Ee.y,st)&&(E=a=st.copy(),y=st.ab(Ee))),bg(Ve,Ee.x,Ee.y)||(gn.Ff(ke.x,ke.y,ke.x+ke.width,ke.y+ke.height,Ee.x,Ee.y,ge.x,ge.y,st)?(Ze=Ee=st.copy(),b=ge.ab(st)):gn.Ff(ke.x,ke.y,ke.x+ke.width,ke.y+ke.height,ge.x,ge.y,he.x,he.y,st)?(Ze=Ee=st.copy(),b=he.ab(st)):gn.Ff(ke.x,ke.y,ke.x+ke.width,ke.y+ke.height,he.x,he.y,a.x,a.y,st)&&(Ze=Ee=st.copy(),b=a.ab(st))),xt.free(st)}oe=oe.copy().ed(ue),oe.Bc(Ve.Ho*Ve.Os,Ve.Go*Ve.Os),cE(Ve,a,y,Ee,b,oe,!0),ue=Rh(Ve,Ee.x,Ee.y),!Ve.abort&&ue>=xg&&(uE(Ve),oe.Bc(Ve.Ho*Ve.Hx,Ve.Go*Ve.Ix),cE(Ve,a,y,Ee,b,oe,!1),ue=Rh(Ve,Ee.x,Ee.y)),!Ve.abort&&ue<xg&&Rh(Ve,Ee.x,Ee.y)!==gf?(sy(this,Ve,Ee.x,Ee.y,b,!0,ne),oe=this.i(2),4>this.pointsCount?(y===0||y===180?(oe.x=a.x,oe.y=Ee.y):(oe.x=Ee.x,oe.y=a.y),this.L(2,oe.x,oe.y),this.m(3,oe.x,oe.y)):(ne=this.i(3),y===0||y===180?gn.B(oe.x,ne.x)?(oe=y===0?Math.max(oe.x,a.x):Math.min(oe.x,a.x),this.L(2,oe,a.y),this.L(3,oe,ne.y)):gn.B(oe.y,ne.y)?(Math.abs(a.y-oe.y)<=Ve.Go/2&&(this.L(2,oe.x,a.y),this.L(3,ne.x,a.y)),this.m(2,oe.x,a.y)):this.L(2,a.x,oe.y):(y===90||y===270)&&(gn.B(oe.y,ne.y)?(oe=y===90?Math.max(oe.y,a.y):Math.min(oe.y,a.y),this.L(2,a.x,oe),this.L(3,ne.x,oe)):gn.B(oe.x,ne.x)?(Math.abs(a.x-oe.x)<=Ve.Ho/2&&(this.L(2,a.x,oe.y),this.L(3,a.x,ne.y)),this.m(2,a.x,oe.y)):this.L(2,oe.x,a.y))),E!==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,E.y):this.m(2,E.x,x.y)),Ze!==null&&(b===0||b===180?this.yf(z.x,Ze.y):this.yf(Ze.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(he.copy()),this.ne(ge.copy())),xt.free(he),xt.free(ge)}},Fr.prototype.computeMidOrthoPosition=function(a,y,E,b,x){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),x?(y+b)/2+z:(a+E)/2+z};function ay(a){if(a.diagram===null||!a.isAvoiding||!np(a.diagram))return!1;var y=a.points.s,E=y.length;if(4>E)return!1;a=Nf(a.diagram,!0,a.containingGroup,null);for(var b=1;b<E-2;b++){var x=y[b],z=y[b+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,E,b,x,z,ne){var oe=y.Ho,ue=y.Go,he=Rh(y,E,b),ge=E,Ee=b;for(x===0?ge+=oe:x===90?Ee+=ue:x===180?ge-=oe:Ee-=ue,x!==ne&&he>hp&&Rh(y,ge,Ee)!==he-1&&(Rh(y,E-oe,b)===he-1?(x=180,ge=E-oe,Ee=b):Rh(y,E+oe,b)===he-1?(x=0,ge=E+oe,Ee=b):Rh(y,E,b-ue)===he-1?(x=270,ge=E,Ee=b-ue):Rh(y,E,b+ue)===he-1&&(x=90,ge=E,Ee=b+ue));he>hp&&Rh(y,ge,Ee)===he-1;)E=ge,b=Ee,x===0?ge+=oe:x===90?Ee+=ue:x===180?ge-=oe:Ee-=ue,--he;z?he>hp&&(x===180||x===0?E=Math.floor(E/oe)*oe+oe/2:(x===90||x===270)&&(b=Math.floor(b/ue)*ue+ue/2)):(E=Math.floor(E/oe)*oe+oe/2,b=Math.floor(b/ue)*ue+ue/2),he>hp&&(z=x,ne=E,ge=b,x===0?(z=90,ge+=ue):x===90?(z=180,ne-=oe):x===180?(z=270,ge-=ue):x===270&&(z=0,ne+=oe),Rh(y,ne,ge)===he-1?sy(a,y,ne,ge,z,!1,z):(ne=E,ge=b,x===0?(z=270,ge-=ue):x===90?(z=0,ne+=oe):x===180?(z=90,ge+=ue):x===270&&(z=180,ne-=oe),Rh(y,ne,ge)===he-1&&sy(a,y,ne,ge,z,!1,z))),a.yf(E,b)}Fr.prototype.ez=function(a){var y=a.x;a=a.y;for(var E=this.i(0),b=this.i(1),x=Tr(y,a,E.x,E.y,b.x,b.y),z=0,ne=1;ne<this.pointsCount-1;ne++){E=this.i(ne+1);var oe=Tr(y,a,b.x,b.y,E.x,E.y);b=E,oe<x&&(z=ne,x=oe)}return z},Fr.prototype.qc=function(){this.lk=!1,this.v()},Fr.prototype.Ul=function(a){if(!(!a&&(this.fd===!1||(a=this.Pb(),this.lk&&(a===null||a.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,E=y.length,b=0;b<E;b++){var x=y[b];x!==a&&x.isPanelMain&&x instanceof Zo&&(x.ua=this.ua)}}},Fr.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,E=!1,b=this.diagram;b!==null&&dp(this)&&b.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(b.animationManager.isAnimating||b.currentTool!==b.toolManager)&&(E=!0);var x=this.i(0).copy(),z=x.copy();b=this.Nb.s;var ne=this.computeCurve();if(ne===Ed&&3<=y&&!gn.$(this.smoothness,0))if(y===3){var oe=this.i(1);b=Math.min(x.x,oe.x);var ue=Math.min(x.y,oe.y);oe=this.i(2),b=Math.min(b,oe.x),ue=Math.min(ue,oe.y)}else{if(this.isOrthogonal)for(ue=0;ue<y;ue++)oe=b[ue],z.x=Math.min(oe.x,z.x),z.y=Math.min(oe.y,z.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),ue=this.i(b),z.x=Math.min(ue.x,z.x),z.y=Math.min(ue.y,z.y);b=z.x,ue=z.y}else{for(ue=0;ue<y;ue++)oe=b[ue],z.x=Math.min(oe.x,z.x),z.y=Math.min(oe.y,z.y);b=z.x,ue=z.y}if(b-=this.su.x,ue-=this.su.y,x.x-=b,x.y-=ue,y!==2||dp(this)){if(a.type=Mr.o,oe=DS(a),this.computeShortLength(!0)!==0&&(x=Dp(this,x,!0,z)),vg(oe,x.x,x.y,!1),ne===Ed&&3<=y&&!gn.$(this.smoothness,0))if(y===3)E=this.i(1),y=E.x-b,E=E.y-ue,x=this.i(2).copy(),x.x-=b,x.y-=ue,this.computeShortLength(!1)!==0&&(x=Dp(this,x,!1,z)),cf(oe,y,E,y,E,x.x,x.y);else if(this.isOrthogonal){y=xt.allocAt(b,ue),E=xt.alloc(),E.assign(this.i(1)),z=xt.allocAt(b,ue),x=xt.allocAt(b,ue),ne=this.i(0);for(var he,ge=this.smoothness/3,Ee=1;Ee<this.pointsCount-1;Ee++){he=this.i(Ee);var ke=ne,Ve=he,Ze=this.i(ly(this,he,Ee,!1));if((!gn.$(ke.x,Ve.x)||!gn.$(Ve.x,Ze.x))&&(!gn.$(ke.y,Ve.y)||!gn.$(Ve.y,Ze.y))){var st=ge;isNaN(st)&&(st=this.smoothness/3);var Ot=ke.x;ke=ke.y;var Pt=Ve.x;Ve=Ve.y;var zt=Ze.x;Ze=Ze.y;var Kt=st*b0(Ot,ke,Pt,Ve);st*=b0(Pt,Ve,zt,Ze),gn.$(ke,Ve)&&gn.$(Pt,zt)&&(Pt>Ot?Ze>Ve?(z.x=Pt-Kt,z.y=Ve-Kt,x.x=Pt+st,x.y=Ve+st):(z.x=Pt-Kt,z.y=Ve+Kt,x.x=Pt+st,x.y=Ve-st):Ze>Ve?(z.x=Pt+Kt,z.y=Ve-Kt,x.x=Pt-st,x.y=Ve+st):(z.x=Pt+Kt,z.y=Ve+Kt,x.x=Pt-st,x.y=Ve-st)),gn.$(Ot,Pt)&&gn.$(Ve,Ze)&&(Ve>ke?(zt>Pt?(z.x=Pt-Kt,z.y=Ve-Kt,x.x=Pt+st):(z.x=Pt+Kt,z.y=Ve-Kt,x.x=Pt-st),x.y=Ve+st):(zt>Pt?(z.x=Pt-Kt,z.y=Ve+Kt,x.x=Pt+st):(z.x=Pt+Kt,z.y=Ve+Kt,x.x=Pt-st),x.y=Ve-st)),(gn.$(Ot,Pt)&&gn.$(Pt,zt)||gn.$(ke,Ve)&&gn.$(Ve,Ze))&&(Ot=.5*(Ot+zt),ke=.5*(ke+Ze),z.x=Ot,z.y=ke,x.x=Ot,x.y=ke),(Ee===1||Ee===2&&gn.$(ne.x,this.i(0).x)&&gn.$(ne.y,this.i(0).y))&&(E.x=.5*(ne.x+he.x),E.y=.5*(ne.y+he.y)),cf(oe,E.x-b,E.y-ue,z.x-b,z.y-ue,he.x-b,he.y-ue),y.set(z),E.set(x),ne=he}}he=ne.x,ne=ne.y,ge=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ge=Dp(this,ge.copy(),!1,Po)),he=.5*(he+ge.x),ne=.5*(ne+ge.y),cf(oe,x.x-b,x.y-ue,he-b,ne-ue,ge.x-b,ge.y-ue),xt.free(y),xt.free(E),xt.free(z),xt.free(x)}else for(E=3;E<y;E+=3)z=this.i(E-2),E+3>=y&&(E=y-1),x=this.i(E-1),ne=this.i(E),E===y-1&&this.computeShortLength(!1)!==0&&(ne=Dp(this,ne.copy(),!1,Po)),cf(oe,z.x-b,z.y-ue,x.x-b,x.y-ue,ne.x-b,ne.y-ue);else{for(z=xt.alloc(),z.assign(this.i(0)),x=xt.alloc(),x.assign(z),ne=this.computeCorner(),Ee=1,he=0;Ee<y;){if(Ee=ly(this,z,Ee,1<Ee),ge=this.i(Ee),Ee>=y-1){if(!z.D(ge))this.computeShortLength(!1)!==0&&(ge=Dp(this,ge.copy(),!1,Po)),Fp(this,oe,-b,-ue,z,ge,E);else if(he===0)for(Ee=1;Ee<y;)x.assign(z),ge=this.i(Ee++),Fp(this,oe,-b,-ue,z,ge,E),z.assign(ge);break}if(he=ly(this,ge,Ee+1,Ee<y-3),Ee=-b,Ot=-ue,ke=ge,Pt=this.i(he),st=E,gn.B(z.y,ke.y)&&gn.B(ke.x,Pt.x))if(Ze=Math.min(ne,Math.abs(ke.x-x.x)/2),Ze=Kt=Math.min(Ze,Math.abs(Pt.y-ke.y)/2),gn.B(Ze,0))Fp(this,oe,Ee,Ot,z,ke,st),z.assign(ke);else{var Jt=ke.x,dn=ke.y;Ve=Jt,zt=dn,ke.x>z.x?Jt=ke.x-Ze:Jt=ke.x+Ze,Pt.y>ke.y?zt=ke.y+Kt:zt=ke.y-Kt,Pt=xt.allocAt(Jt,dn),Fp(this,oe,Ee,Ot,z,Pt,st),xt.free(Pt),d0(oe,ke.x+Ee,ke.y+Ot,Ve+Ee,zt+Ot),z.h(Ve,zt)}else gn.B(z.x,ke.x)&&gn.B(ke.y,Pt.y)?(Ze=Math.min(ne,Math.abs(ke.y-x.y)/2),Ze=Kt=Math.min(Ze,Math.abs(Pt.x-ke.x)/2),gn.B(Kt,0)?(Fp(this,oe,Ee,Ot,z,ke,st),z.assign(ke)):(Jt=ke.x,dn=ke.y,Ve=Jt,zt=dn,ke.y>z.y?dn=ke.y-Ze:dn=ke.y+Ze,Pt.x>ke.x?Ve=ke.x+Kt:Ve=ke.x-Kt,Pt=xt.allocAt(Jt,dn),Fp(this,oe,Ee,Ot,z,Pt,st),xt.free(Pt),d0(oe,ke.x+Ee,ke.y+Ot,Ve+Ee,zt+Ot),z.h(Ve,zt))):(Fp(this,oe,Ee,Ot,z,ke,st),z.assign(ke));x.assign(ge),Ee=he}xt.free(z)}h0=oe}else oe=this.i(1).copy(),oe.x-=b,oe.y-=ue,this.computeShortLength(!0)!==0&&(x=Dp(this,x,!0,z)),this.computeShortLength(!1)!==0&&(oe=Dp(this,oe,!1,z)),a.type=Mr.j,a.startX=x.x,a.startY=x.y,a.endX=oe.x,a.endY=oe.y;return this.lk=!0,a};function b0(a,y,E,b){return a=E-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=b-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),gn.$(a,0)?y:gn.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Dp(a,y,E,b){var x=a.pointsCount;if(2>x)return y;if(E){var z=a.i(1);if(E=z.x-b.x,z=z.y-b.y,b=b0(y.x,y.y,E,z),b===0)return y;x=x===2?.5*b:b,a=a.computeShortLength(!0),a>x&&(a=x),x=a*(z-y.y)/b,y.x+=a*(E-y.x)/b,y.y+=x}else{if(z=a.i(x-2),E=z.x-b.x,z=z.y-b.y,b=b0(y.x,y.y,E,z),b===0)return y;x=x===2?.5*b:b,a=a.computeShortLength(!1),a>x&&(a=x),x=a*(y.y-z)/b,y.x-=a*(y.x-E)/b,y.y-=x}return y}function ly(a,y,E,b){for(var x=a.pointsCount,z=y;gn.$(y.x,z.x)&&gn.$(y.y,z.y);){if(E>=x)return x-1;z=a.i(E++)}if(!gn.$(y.x,z.x)&&!gn.$(y.y,z.y))return E-1;for(var ne=z;gn.$(y.x,z.x)&&gn.$(z.x,ne.x)&&(!b||(y.y>=z.y?z.y>=ne.y:z.y<=ne.y))||gn.$(y.y,z.y)&&gn.$(z.y,ne.y)&&(!b||(y.x>=z.x?z.x>=ne.x:z.x<=ne.x));){if(E>=x)return x-1;ne=a.i(E++)}return E-2}Fr.prototype.computeJumpLength=function(){return 10};function Fp(a,y,E,b,x,z,ne){if(!ne&&dp(a)){ne=a.computeJumpLength();var oe=ne/2,ue=[],he=0;if(a.isVisible()&&(he=p1(a,x,z,ue)),0<he){if(gn.B(x.y,z.y))if(x.x<z.x)for(var ge=0;ge<he;){var Ee=Math.max(x.x,Math.min(ue[ge++]-oe,z.x-ne));y.lineTo(Ee+E,z.y+b);for(var ke=Ee+E,Ve=Math.min(Ee+ne,z.x);ge<he&&(Ee=ue[ge],Ee<Ve+ne);)ge++,Ve=Math.min(Ee+oe,z.x);Ee=z.y-ne+b,Ve+=E;var Ze=z.y+b;a.curve===pf?vg(y,Ve,Ze,!1):cf(y,ke,Ee,Ve,Ee,Ve,Ze)}else for(--he;0<=he;){for(ge=Math.min(x.x,Math.max(ue[he--]+oe,z.x+ne)),y.lineTo(ge+E,z.y+b),ke=ge+E,Ee=Math.max(ge-ne,z.x);0<=he&&(ge=ue[he],ge>Ee-ne);)he--,Ee=Math.max(ge-oe,z.x);ge=z.y-ne+b,Ee+=E,Ve=z.y+b,a.curve===pf?vg(y,Ee,Ve,!1):cf(y,ke,ge,Ee,ge,Ee,Ve)}else if(gn.B(x.x,z.x))if(x.y<z.y)for(ge=0;ge<he;){for(Ee=Math.max(x.y,Math.min(ue[ge++]-oe,z.y-ne)),y.lineTo(z.x+E,Ee+b),ke=Ee+b,Ee=Math.min(Ee+ne,z.y);ge<he&&(Ve=ue[ge],Ve<Ee+ne);)ge++,Ee=Math.min(Ve+oe,z.y);Ve=z.x-ne+E,Ze=z.x+E,Ee+=b,a.curve===pf?vg(y,Ze,Ee,!1):cf(y,Ve,ke,Ve,Ee,Ze,Ee)}else for(--he;0<=he;){for(ge=Math.min(x.y,Math.max(ue[he--]+oe,z.y+ne)),y.lineTo(z.x+E,ge+b),ke=ge+b,ge=Math.max(ge-ne,z.y);0<=he&&(Ee=ue[he],Ee>ge-ne);)he--,ge=Math.max(Ee-oe,z.y);Ee=z.x-ne+E,Ve=z.x+E,ge+=b,a.curve===pf?vg(y,Ve,ge,!1):cf(y,Ee,ke,Ee,ge,Ve,ge)}}}y.lineTo(z.x+E,z.y+b)}function p1(a,y,E,b){var x=a.diagram;if(x===null||y.D(E))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,oe=0;oe<ne;oe++){var ue=z[oe];if(ue instanceof Fr){if(ue===a)return 0<b.length&&b.sort(function(ge,Ee){return ge-Ee}),b.length;if(ue.isVisible()&&dp(ue)){var he=ue.routeBounds;he.w()&&a.routeBounds.Yc(he)&&!a.usesSamePort(ue)&&(he=ue.path,he!==null&&he.Ed()&&g1(y,E,b,ue))}}}}}return 0<b.length&&b.sort(function(ge,Ee){return ge-Ee}),b.length}function g1(a,y,E,b){for(var x=gn.B(a.y,y.y),z=b.pointsCount,ne=b.i(0),oe=xt.alloc(),ue=1;ue<z;ue++){var he=b.i(ue);if(ue<z-1){var ge=b.i(ue+1);if(ne.y===he.y&&he.y===ge.y){if(he.x>ne.x&&ge.x>=he.x||he.x<ne.x&&ge.x<=he.x)continue}else if(ne.x===he.x&&he.x===ge.x&&(he.y>ne.y&&ge.y>=he.y||he.y<ne.y&&ge.y<=he.y))continue}e:{ge=a.x;var Ee=a.y,ke=y.x,Ve=y.y,Ze=ne.x;ne=ne.y;var st=he.x,Ot=he.y;if(gn.B(ge,ke)){if(!gn.B(Ee,Ve)&&gn.B(ne,Ot)&&Math.min(Ee,Ve)<ne&&Math.max(Ee,Ve)>ne&&Math.min(Ze,st)<ge&&Math.max(Ze,st)>ge&&!gn.B(Ze,st)){oe.x=ge,oe.y=ne,ge=!0;break e}}else if(gn.B(Ee,Ve)&&gn.B(Ze,st)&&Math.min(ge,ke)<Ze&&Math.max(ge,ke)>Ze&&Math.min(ne,Ot)<Ee&&Math.max(ne,Ot)>Ee&&!gn.B(ne,Ot)){oe.x=Ze,oe.y=Ee,ge=!0;break e}oe.x=0,oe.y=0,ge=!1}ge&&(x?E.push(oe.x):E.push(oe.y)),ne=he}xt.free(oe)}function dp(a){return a=a.curve,a===Eg||a===pf}function x0(a,y){(y||dp(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()))}Fr.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var E=y.diagram;if(E!==null&&!E.animationManager.isTicking){var b=!1;for(E=E.layers;E.next();){var x=E.value;if(x.visible){if(x===y){b=!0;var z=!1;x=x.Pa.s;for(var ne=x.length,oe=0;oe<ne;oe++){var ue=x[oe];ue instanceof Fr&&(ue===this?z=!0:z&&oE(this,ue,a))}}else if(b)for(z=x.Pa.s,x=z.length,ne=0;ne<x;ne++)oe=z[ne],oe instanceof Fr&&oE(this,oe,a)}}}}};function oE(a,y,E){if(y!==null&&y.lk&&y.fd&&dp(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||E.Yc(b))&&(a.usesSamePort(y)||y.qc())}}Fr.prototype.usesSamePort=function(a){var y=this.pointsCount,E=a.pointsCount;if(0<y&&0<E){var b=this.i(0),x=a.i(0);if(b.Xa(x)||(y=this.i(y-1),a=a.i(E-1),y.Xa(a)||b.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},Fr.prototype.isVisible=function(){if(!Wi.prototype.isVisible.call(this))return!1;var a=this.containingGroup,y=!0,E=this.diagram;if(E!==null&&(y=E.isTreePathToChildren),E=this.fromNode,E!==null){if(this.isTreeLink&&y&&!E.isTreeExpanded)return!1;if(E===a)return!0;for(var b=E;b!==null;){if(b.labeledLink===this)return!0;b=b.containingGroup}if(E=E.findVisibleNode(),E===null||E===a)return!1}if(E=this.toNode,E!==null){if(this.isTreeLink&&!y&&!E.isTreeExpanded)return!1;if(E===a)return!0;for(y=E;y!==null;){if(y.labeledLink===this)return!0;y=y.containingGroup}if(y=E.findVisibleNode(),y===null||y===a)return!1}return!0},Fr.prototype.Zb=function(a){if(Wi.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)},Fr.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?rm:this.qk};function tm(a){var y=a.ef;if(y!==null){var E=a.uf;if(E!==null&&isNaN(a.curviness)){for(var b=a.ff,x=a.vf,z=a=null,ne=y.jb.s,oe=ne.length,ue=0;ue<oe;ue++){var he=ne[ue];(he.ef===y&&he.ff===b&&he.uf===E&&he.vf===x||he.ef===E&&he.ff===x&&he.uf===y&&he.vf===b)&&(z===null?z=he:(a===null&&(a=[],a.push(z)),a.push(he)))}if(a!==null){for(z=YS(y,E,b,x),z===null&&(z=new P0(y,b,E,x),KS(y,z),KS(E,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function nm(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(Pa(y.links,a),y.Sl()))}Fr.prototype.ph=function(){return!0},tr.Object.defineProperties(Fr.prototype,{fromNode:{get:function(){return this.ef},set:function(a){var y=this.ef;if(y!==a){var E=this.fromPort;y!==null&&(this.uf!==y&&m0(y,this,E),nm(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setFromNodeForLink(this,a,y);var x=this.fromPort,z=this.fromPortChanged;if(z!==null){var ne=!0;b!==null&&(ne=b.aa,b.aa=!0),z(this,E,x),b!==null&&(b.aa=ne)}a!==null&&(this.uf!==a&&g0(a,this,x),tm(this),this.C(1)),this.g("fromNode",y,a),yg(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var E=this.fromPort;E!==null&&sd(E),nm(this),this.ff=a;var b=this.fromPort;b!==null&&sd(b);var x=this.diagram;if(x!==null){var z=this.data,ne=x.model;z!==null&&ne.ri()&&ne.xv(z,a)}E!==b&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(ne=!0,x!==null&&(ne=x.aa,x.aa=!0),z(this,E,b),x!==null&&(x.aa=ne))),tm(this),this.g("fromPortId",y,a)}}},fromPort:{get:function(){var a=this.ef;return a===null?null:a.ns(this.ff)}},fromPortChanged:{get:function(){return this.gn},set:function(a){var y=this.gn;y!==a&&(this.gn=a,this.g("fromPortChanged",y,a))}},toNode:{get:function(){return this.uf},set:function(a){var y=this.uf;if(y!==a){var E=this.toPort;y!==null&&(this.ef!==y&&m0(y,this,E),nm(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setToNodeForLink(this,a,y);var x=this.toPort,z=this.toPortChanged;if(z!==null){var ne=!0;b!==null&&(ne=b.aa,b.aa=!0),z(this,E,x),b!==null&&(b.aa=ne)}a!==null&&(this.ef!==a&&g0(a,this,x),tm(this),this.C(1)),this.g("toNode",y,a),yg(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var E=this.toPort;E!==null&&sd(E),nm(this),this.vf=a;var b=this.toPort;b!==null&&sd(b);var x=this.diagram;if(x!==null){var z=this.data,ne=x.model;z!==null&&ne.ri()&&ne.Cv(z,a)}E!==b&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(ne=!0,x!==null&&(ne=x.aa,x.aa=!0),z(this,E,b),x!==null&&(x.aa=ne))),tm(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:yl},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&&sd(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&&ji(a,">= 0",Fr,"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:yl},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&&sd(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&&ji(a,">= 0",Fr,"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?Ka: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&&em(this.fromNode),this.toNode!==null&&em(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Zo?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,E=1/0,b=this.pointsCount;if(b===0)a.h(NaN,NaN,0,0);else{if(b===1)b=this.i(0),y=Math.min(b.x,y),E=Math.min(b.y,E),a.h(b.x,b.y,0,0);else if(b===2){b=this.i(0);var x=this.i(1);y=Math.min(b.x,x.x),E=Math.min(b.y,x.y),a.h(b.x,b.y,0,0),a.Ye(x)}else if(this.computeCurve()===Ed&&3<=b&&!this.isOrthogonal)if(x=this.i(0),y=x.x,E=x.y,a.h(y,E,0,0),b===3){b=this.i(1),y=Math.min(b.x,y),E=Math.min(b.y,E);var z=this.i(2);y=Math.min(z.x,y),E=Math.min(z.y,E),gn.Dl(x.x,x.y,b.x,b.y,b.x,b.y,z.x,z.y,.5,a)}else for(z=3;z<b;z+=3){var ne=this.i(z-2);z+3>=b&&(z=b-1);var oe=this.i(z-1),ue=this.i(z);gn.Dl(x.x,x.y,ne.x,ne.y,oe.x,oe.y,ue.x,ue.y,.5,a),y=Math.min(ue.x,y),E=Math.min(ue.y,E),x=ue}else for(x=this.i(0),z=this.i(1),y=Math.min(x.x,z.x),E=Math.min(x.y,z.y),a.h(x.x,x.y,0,0),a.Ye(z),x=2;x<b;x++)z=this.i(x),y=Math.min(z.x,y),E=Math.min(z.y,E),a.Ye(z);this.su.h(y-a.x,E-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new xt)}},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,E=0;E<y-1;E++){var b=this.i(E),x=this.i(E+1);gn.$(b.x,x.x)?(b=x.y-b.y,0>b&&(b=-b)):gn.$(b.y,x.y)?(b=x.x-b.x,0>b&&(b=-b)):b=Math.sqrt(b.Bf(x)),a.push(b)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,E=y.length,b=a=0;b<E;b++)a+=y[b];this.vt=a}return a}},points:{get:function(){return this.Nb},set:function(a){var y=this.Nb;if(y!==a){var E=null;if(Array.isArray(a)){var b=a.length%2===0;if(b){for(var x=0;x<a.length;x++)if(typeof a[x]!="number"||isNaN(a[x])){b=!1;break}}if(b)for(E=new Ar,b=0;b<a.length/2;b++)x=new xt(a[2*b],a[2*b+1]).freeze(),E.add(x);else{for(b=!0,x=0;x<a.length;x++){var z=a[x];if(!wr(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){b=!1;break}}if(b)for(E=new Ar,b=0;b<a.length;b++)x=a[b],E.add(new xt(x.x,x.y).freeze())}}else if(a instanceof Ar)for(E=a.copy(),a=E.iterator;a.next();)a.value.freeze();else Pn("Link.points value is not an instance of List or Array: "+a);E.freeze(),this.Nb=E,this.qc(),y0(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&ho(a.animationManager,this,E)),this.g("points",y,E)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return(this.Qa&16)!==0},set:function(a){(this.Qa&16)!==0!==a&&(this.Qa^=16)}},suspendsRouting:{get:function(){return(this.Qa&32)!==0},set:function(a){(this.Qa&32)!==0!==a&&(this.Qa^=32)}},computingPoints:{get:function(){return(this.Qa&64)!==0},set:function(a){(this.Qa&64)!==0!==a&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(a){this.o=a.copy()}},defaultToPoint:{get:function(){return this.u},set:function(a){this.u=a.copy()}},isOrthogonal:{get:function(){return(this.qj.value&2)===2}},isAvoiding:{get:function(){return(this.qj.value&4)===4}},lk:{get:function(){return(this.Qa&128)!==0},set:function(a){(this.Qa&128)!==0!==a&&(this.Qa^=128)}},geometry:{get:function(){if(!this.lk){if(this.vg(),2>this.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Sg(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Sg(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===pf||y===Eg||a===pf||a===Eg),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)}}}),Fr.prototype.invalidateOtherJumpOvers=Fr.prototype.Xo,Fr.prototype.findClosestSegment=Fr.prototype.ez,Fr.prototype.updateRoute=Fr.prototype.vg,Fr.prototype.invalidateRoute=Fr.prototype.bb,Fr.prototype.rollbackRoute=Fr.prototype.rv,Fr.prototype.commitRoute=Fr.prototype.zf,Fr.prototype.startRoute=Fr.prototype.uh,Fr.prototype.clearPoints=Fr.prototype.Fj,Fr.prototype.removePoint=Fr.prototype.pv,Fr.prototype.addPointAt=Fr.prototype.yf,Fr.prototype.addPoint=Fr.prototype.ne,Fr.prototype.insertPointAt=Fr.prototype.m,Fr.prototype.insertPoint=Fr.prototype.Kz,Fr.prototype.setPointAt=Fr.prototype.L,Fr.prototype.setPoint=Fr.prototype.dd,Fr.prototype.getPoint=Fr.prototype.i,Fr.prototype.getOtherPort=Fr.prototype.Cz,Fr.prototype.getOtherNode=Fr.prototype.To;var Bp=null,_p=null,uy=new Mn(Fr,"Normal",1),m1=new Mn(Fr,"Orthogonal",2),v1=new Mn(Fr,"AvoidsNodes",6),aE=new Mn(Fr,"AvoidsNodesStraight",7),Nc=new Mn(Fr,"None",0),Ed=new Mn(Fr,"Bezier",9),pf=new Mn(Fr,"JumpGap",10),Eg=new Mn(Fr,"JumpOver",11),rm=new Mn(Fr,"End",17),w0=new Mn(Fr,"Scale",18),C0=new Mn(Fr,"Stretch",19),im=new Mn(Fr,"OrientAlong",21),om=new Mn(Fr,"OrientPlus90",22),am=new Mn(Fr,"OrientMinus90",23),cy=new Mn(Fr,"OrientOpposite",24),T0=new Mn(Fr,"OrientUpright",25),sm=new Mn(Fr,"OrientPlus90Upright",26),lm=new Mn(Fr,"OrientMinus90Upright",27),A0=new Mn(Fr,"OrientUpright45",28),sE=16,lE=14,um=8;Fr.className="Link",Fr.Normal=uy,Fr.Orthogonal=m1,Fr.AvoidsNodes=v1,Fr.AvoidsNodesStraight=aE,Fr.None=Nc,Fr.Bezier=Ed,Fr.JumpGap=pf,Fr.JumpOver=Eg,Fr.End=rm,Fr.Scale=w0,Fr.Stretch=C0,Fr.OrientAlong=im,Fr.OrientPlus90=om,Fr.OrientMinus90=am,Fr.OrientOpposite=cy,Fr.OrientUpright=T0,Fr.OrientPlus90Upright=sm,Fr.OrientMinus90Upright=lm,Fr.OrientUpright45=A0,Fr.EndSegmentStep=8,Fr.CurvinessStart=sE,Fr.SpacingMin=lE,Fr.OrthoShortCut=um;function P0(a,y,E,b){At(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=E,this.Px=b,this.links=[]}P0.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},P0.prototype.Nv=function(){if(this.qq){this.qq=!1;var a=this.links;if(0<a.length){var y=a[0],E=y.diagram;E=E===null||E.pi&&!this.Fe,this.Fe=!1,y.arrangeBundledLinks(a,E),a.length===1&&(y.Sf=null,a.length=0)}a.length===0&&(a=this.Ds,this!==null&&a.af!==null&&a.af.remove(this),a=this.cv,this!==null&&a.af!==null&&a.af.remove(this))}},P0.className="LinkBundle";function cm(a){At(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}cm.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,E=a.x+a.width,b=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((E+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((b+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<a-1||this.ei<y-1){for(E=[],b=0;b<=a;b++)E[b]=new Uint32Array(y);this.ac=E,this.di=a-1,this.ei=y-1}if(a=dy,this.ac!==null)for(y=0;y<=this.di;y++)if(E=this.ac[y],E.fill)E.fill(a);else for(b=0;b<=this.ei;b++)E[b]=a}};function bg(a,y,E){return a.Nd<=y&&y<=a.En&&a.Od<=E&&E<=a.Fn}function Rh(a,y,E){return bg(a,y,E)?(y-=a.Nd,y/=a.rc,E-=a.Od,E/=a.sc,a.ac[y|0][E|0]):dy}function uE(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var E=a.ac[y],b=0;b<=a.ei;b++)E[b]>=hp&&(E[b]=dy)}cm.prototype.Yj=function(a,y,E,b){if(a>this.En||a+E<this.Nd||y>this.Fn||y+b<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,E=Math.max(0,E)/this.rc+1|0;var x=Math.max(0,b)/this.sc+1|0;if(0>a&&(E+=a,a=0),0>y&&(x+=y,y=0),0>E||0>x)return!0;for(b=Math.min(a+E-1,this.di)|0,E=Math.min(y+x-1,this.ei)|0;a<=b;a++){x=this.ac[a];for(var z=y;z<=E;z++)if(x[z]===gf)return!1}return!0};function Mh(a,y,E,b,x,z,ne,oe,ue){if(!(y<z||y>ne||E<oe||E>ue)){var he=y|0,ge=E|0,Ee=a.ac[he][ge];if(Ee>=hp&&Ee<xg)for(x?ge+=b:he+=b,Ee+=1;z<=he&&he<=ne&&oe<=ge&&ge<=ue&&!(Ee>=a.ac[he][ge]);)a.ac[he][ge]=Ee,Ee+=1,x?ge+=b:he+=b;if(he=x?ge:he,x)if(0<b)for(E+=b;E<he;E+=b)Mh(a,y,E,1,!x,z,ne,oe,ue),Mh(a,y,E,-1,!x,z,ne,oe,ue);else for(E+=b;E>he;E+=b)Mh(a,y,E,1,!x,z,ne,oe,ue),Mh(a,y,E,-1,!x,z,ne,oe,ue);else if(0<b)for(y+=b;y<he;y+=b)Mh(a,y,E,1,!x,z,ne,oe,ue),Mh(a,y,E,-1,!x,z,ne,oe,ue);else for(y+=b;y>he;y+=b)Mh(a,y,E,1,!x,z,ne,oe,ue),Mh(a,y,E,-1,!x,z,ne,oe,ue)}}function N0(a,y,E,b,x,z,ne,oe,ue){y|=0,E|=0;var he=gf,ge=hp;for(a.ac[y][E]=ge;he===gf&&y>z&&y<ne&&E>oe&&E<ue;)ge+=1,a.ac[y][E]=ge,x?E+=b:y+=b,he=a.ac[y][E]}function L0(a,y,E,b,x,z,ne,oe,ue){y|=0,E|=0;var he=gf,ge=xg;for(a.ac[y][E]=ge;he===gf&&y>z&&y<ne&&E>oe&&E<ue;)a.ac[y][E]=ge,x?E+=b:y+=b,he=a.ac[y][E]}function cE(a,y,E,b,x,z,ne){if(a.ac!==null){a.abort=!1;var oe=y.x,ue=y.y;if(bg(a,oe,ue)){oe-=a.Nd,oe/=a.rc,ue-=a.Od,ue/=a.sc;var he=b.x,ge=b.y;if(bg(a,he,ge))if(he-=a.Nd,he/=a.rc,ge-=a.Od,ge/=a.sc,1>=Math.abs(oe-he)&&1>=Math.abs(ue-ge))a.abort=!0;else{var Ee=z.x;b=z.y,y=z.x+z.width;var ke=z.y+z.height;Ee-=a.Nd,Ee/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,ke-=a.Od,ke/=a.sc,z=Math.max(0,Math.min(a.di,Ee|0)),y=Math.min(a.di,Math.max(0,y|0)),Ee=Math.max(0,Math.min(a.ei,b|0)),ke=Math.min(a.ei,Math.max(0,ke|0)),b=a.ac,oe|=0,ue|=0,he|=0,ge|=0;var Ve=E===0||E===90?1:-1;if(E=E===90||E===270,b[oe][ue]===gf?(N0(a,oe,ue,Ve,E,z,y,Ee,ke),N0(a,oe,ue,1,!E,z,y,Ee,ke),N0(a,oe,ue,-1,!E,z,y,Ee,ke)):N0(a,oe,ue,Ve,E,oe,ue,oe,ue),b[he][ge]===gf?(L0(a,he,ge,x===0||x===90?1:-1,x===90||x===270,z,y,Ee,ke),L0(a,he,ge,1,!(x===90||x===270),z,y,Ee,ke),L0(a,he,ge,-1,!(x===90||x===270),z,y,Ee,ke)):L0(a,he,ge,Ve,E,he,ge,he,ge),E=Oi(),ne&&dE(a,he,ge,x,oe,ue,E))for((E[0]!==he||E[1]!==ge)&&(E.unshift(ge),E.unshift(he)),(E[E.length-2]!==oe||E[E.length-1]!==ue)&&(E.push(oe),E.push(ue)),a=hp,x=E[E.length-2],ne=E[E.length-1],b[x][ne]=a++,z=E.length-4;0<=z;z-=2)for(x=E[z+2],ne=E[z+3],y=E[z],he=E[z+1];y>x?x++:y<x?x--:he>ne?ne++:he<ne&&ne--,b[x][ne]=a++,x!==y||ne!==he;);else Mh(a,oe,ue,1,!1,z,y,Ee,ke),Mh(a,oe,ue,-1,!1,z,y,Ee,ke),Mh(a,oe,ue,1,!0,z,y,Ee,ke),Mh(a,oe,ue,-1,!0,z,y,Ee,ke);Yi(E)}}}}function dE(a,y,E,b,x,z,ne){for(var oe=a.ac,ue=y,he=E;;){if(ue===x&&he===z)return!0;var ge=ue,Ee=he;if(b===0)if(ge<x)ge++;else break;else if(b===90)if(Ee<z)Ee++;else break;else if(b===180)if(ge>x)ge--;else break;else if(Ee>z)Ee--;else break;var ke=oe[ge][Ee];if(ke===0||ke===hy)break;ue=ge,he=Ee}for(;;){if(ge=b,Ee=ue,ke=he,b===0?ke<z?(ge=90,ke++):ke>z&&(ge=270,ke--):b===90?Ee<x?(ge=0,Ee++):Ee>x&&(ge=180,Ee--):b===180?ke<z?(ge=90,ke++):ke>z&&(ge=270,ke--):Ee<x?(ge=0,Ee++):Ee>x&&(ge=180,Ee--),Ee=oe[Ee][ke],ge!==b&&Ee!==0&&Ee!==hy){if(ne.push(ue),ne.push(he),dE(a,ue,he,ge,x,z,ne))return!0;ne.pop(),ne.pop()}if(oe[ue][he]=hy,b===0){if(ue===y)return!1;ue--}else if(b===90){if(he===E)return!1;he--}else if(b===180){if(ue===y)return!1;ue++}else{if(he===E)return!1;he++}}}tr.Object.defineProperties(cm.prototype,{bounds:{get:function(){return new Un(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 gf=0,hp=1,xg=999999,dy=xg+1,hy=xg+2;cm.className="PositionArray";function Up(){At(this),this.port=this.node=null,this.pe=[],this.ap=!1}Up.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",E=0;E<a.length;E++){var b=a[E];b!==null&&(y+=`
|
|
|
`+b.toString())}return y};function y1(a,y,E,b){switch(y=y.offsetY,y){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(y){case 9:return 180<E?270:90;case 6:return 90<E&&270>=E?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return E>a&&E<=180+a?180:270;case 5:return E>180-a&&E<=360-a?270:0;case 12:return E>a&&E<=180+a?90:0;case 10:return E>180-a&&E<=360-a?180:90;case 7:return 90<E&&E<=180+a?180:E>180+a&&E<=360-a?270:0;case 13:return 180<E&&E<=360-a?270:E>a&&180>=E?90:0;case 14:return E>a&&E<=180-a?90:E>180-a&&270>=E?180:0;case 11:return E>180-a&&E<=180+a?180:E>180+a?270:90}return b&&y!==15&&(E-=15,0>E&&(E+=360)),E>a&&E<180-a?90:E>=180-a&&E<=180+a?180:E>180+a&&E<360-a?270:0}Up.prototype.Sl=function(){this.pe.length=0};function hE(a,y){var E=a.pe;if(E.length===0){e:if(!a.ap){E=a.ap,a.ap=!0;var b=null,x=a.node,z=x instanceof Fo?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=E;break e}b=z,ne=b.Lu()}z=a.pe.length=0;var oe=a.port.ga(Vs,xt.alloc()),ue=a.port.ga(eu,xt.alloc());for(x=Un.allocAt(oe.x,oe.y,0,0),x.Ye(ue),xt.free(oe),xt.free(ue),oe=xt.allocAt(x.x+x.width/2,x.y+x.height/2),ue=a.port.li(),ne=ne.iterator;ne.next();){var he=ne.value;if(he.isVisible()&&he.fromPort!==he.toPort){var ge=he.fromPort===a.port||he.fromNode!==null&&he.fromNode.Td(b),Ee=he.computeSpot(ge,a.port);if(Ee.$c()&&(ge=ge?he.toPort:he.fromPort,ge!==null)){var ke=ge.part;if(ke!==null){var Ve=ke.findVisibleNode();Ve!==null&&Ve!==ke&&(ke=Ve,ge=ke.port),ge=he.computeOtherPoint(ke,ge),ke=oe.ab(ge),ke-=ue,0>ke?ke+=360:360<=ke&&(ke-=360),Ee=y1(x,Ee,ke,he.isOrthogonal),Ee===0?(Ee=4,180<ke&&(ke-=360)):Ee===90?(Ee=8,270<ke&&(ke-=360)):Ee===180?Ee=2:(Ee=1,90>ke&&(ke+=360)),Ve=a.pe[z],Ve===void 0?(Ve=new fy(he,ke,Ee),a.pe[z]=Ve):(Ve.link=he,Ve.angle=ke,Ve.Nc=Ee),Ve.hv.set(ge),z++}}}}for(xt.free(oe),a.pe.sort(Up.prototype.j),ue=a.pe.length,b=-1,z=oe=0;z<ue;z++)ne=a.pe[z],ne!==void 0&&(ne.Nc!==b&&(b=ne.Nc,oe=0),ne.Uo=oe,oe++);for(b=-1,oe=0,z=ue-1;0<=z;z--)ue=a.pe[z],ue!==void 0&&(ue.Nc!==b&&(b=ue.Nc,oe=ue.Uo+1),ue.Gl=oe);if(z=a.pe,Ee=a.port,b=a.node.portSpreading,oe=xt.alloc(),ue=xt.alloc(),ne=xt.alloc(),he=xt.alloc(),Ee.ga(Vs,oe),Ee.ga(Qs,ue),Ee.ga(eu,ne),Ee.ga(Pl,he),Ve=ke=ge=Ee=0,b===ny)for(var Ze=0;Ze<z.length;Ze++){var st=z[Ze];if(st!==null){var Ot=st.link.computeThickness();switch(st.Nc){case 8:ke+=Ot;break;case 2:Ve+=Ot;break;case 1:Ee+=Ot;break;default:case 4:ge+=Ot}}}var Pt=Ze=0,zt=1,Kt=st=0;for(Ot=0;Ot<z.length;Ot++){var Jt=z[Ot];if(Jt!==null){if(Ze!==Jt.Nc){switch(Ze=Jt.Nc,Ze){case 8:var dn=ne;Pt=he;break;case 2:dn=he,Pt=oe;break;case 1:dn=oe,Pt=ue;break;default:case 4:dn=ue,Pt=ne}switch(st=Pt.x-dn.x,Kt=Pt.y-dn.y,Ze){case 8:ke>Math.abs(st)?(zt=Math.abs(st)/ke,ke=Math.abs(st)):zt=1;break;case 2:Ve>Math.abs(Kt)?(zt=Math.abs(Kt)/Ve,Ve=Math.abs(Kt)):zt=1;break;case 1:Ee>Math.abs(st)?(zt=Math.abs(st)/Ee,Ee=Math.abs(st)):zt=1;break;default:case 4:ge>Math.abs(Kt)?(zt=Math.abs(Kt)/ge,ge=Math.abs(Kt)):zt=1}Pt=0}var kn=Jt.Zo;if(b===ny){switch(Jt=Jt.link.computeThickness(),Jt*=zt,kn.set(dn),Ze){case 8:kn.x=dn.x+st/2+ke/2-Pt-Jt/2;break;case 2:kn.y=dn.y+Kt/2+Ve/2-Pt-Jt/2;break;case 1:kn.x=dn.x+st/2-Ee/2+Pt+Jt/2;break;default:case 4:kn.y=dn.y+Kt/2-ge/2+Pt+Jt/2}Pt+=Jt}else{var Xr=.5;b===v0&&(Xr=(Jt.Uo+1)/(Jt.Gl+1)),kn.x=dn.x+st*Xr,kn.y=dn.y+Kt*Xr}}}for(xt.free(oe),xt.free(ue),xt.free(ne),xt.free(he),dn=a.pe,z=0;z<dn.length;z++)b=dn[z],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=E,Un.free(x)}E=a.pe}for(a=0;a<E.length;a++)if(x=E[a],x!==null&&x.link===y)return x;return null}Up.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},Up.prototype.computeEndSegmentLength=function(a){var y=a.link,E=y.computeEndSegmentLength(this.node,this.port,zs,y.fromPort===this.port),b=a.Uo;if(0>b)return E;var x=a.Gl;if(1>=x||!y.isOrthogonal)return E;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(b=x-1-b),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?E+8*b:(a?y.y===z.y:y.x===z.x)?E:E+8*(x-1-b)},Up.className="Knot";function fy(a,y,E){this.link=a,this.angle=y,this.Nc=E,this.hv=new xt,this.Gl=this.Uo=0,this.Zo=new xt,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 gl(a){At(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new xt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}gl.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},gl.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},gl.prototype.qb=function(){},gl.prototype.toString=function(){var a=uo(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},gl.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())}}},gl.prototype.createNetwork=function(){return new Hs(this)},gl.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof xn?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Fo?y.lg(a.memberParts):y.lg(a.iterator),y},gl.prototype.updateParts=function(){this.isValidLayout=!0;var a=this.diagram;if(a===null&&this.network!==null)for(var y=this.network.vertexes.iterator;y.next();){var E=y.value.node;if(E!==null&&(a=E.diagram,a!==null))break}try{a!==null&&a.Ea("Layout"),this.commitLayout()}finally{a!==null&&a.eb("Layout")}},gl.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()}},gl.prototype.doLayout=function(a){var y=new qt;a instanceof xn?(_f(this,y,a.nodes,!0,this.rh,!0,!1,!0),_f(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Fo?_f(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},gl.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var E=this.arrangementOrigin.x,b=E,x=this.arrangementOrigin.y,z=0,ne=0;for(a=a.iterator;a.next();){var oe=a.value;dm(oe);var ue=oe.measuredBounds,he=ue.width;ue=ue.height,oe.moveTo(b,x),oe instanceof Fo&&(oe.rh=!1),b+=Math.max(he,50)+20,ne=Math.max(ne,Math.max(ue,50)),z>=y-1?(z=0,b=E,x+=ne+20,ne=0):z++}},gl.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,E=y,b=this.arrangementOrigin.y,x=0,z=0,ne=this.network.vertexes.iterator;ne.next();){var oe=ne.value.node;if(!(oe===null||oe instanceof Fr)&&(dm(oe),this.rh(oe))){var ue=oe.measuredBounds,he=ue.width;ue=ue.height,oe.moveTo(E,b),oe instanceof Fo&&(oe.rh=!1),E+=Math.max(he,50)+20,z=Math.max(z,Math.max(ue,50)),x>=a-1?(x=0,E=y,b+=z+20,z=0):x++}}},gl.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Fo&&a.rh)};function _f(a,y,E,b,x,z,ne,oe){for(E=E.iterator;E.next();){var ue=E.value;b&&!ue.isTopLevel||x!==null&&!x(ue)||!ue.canLayout()||(z&&ue instanceof qr?ue.isLinkLabel||(ue instanceof Fo&&ue.layout===null?_f(a,y,ue.memberParts,!1,x,z,ne,oe):(dm(ue),y.add(ue))):ne&&ue instanceof Fr?y.add(ue):!oe||!ue.Zc()||ue instanceof qr||(dm(ue),y.add(ue)))}}function dm(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}gl.prototype.ni=function(a,y){var E=this.boundsComputation;return E!==null?(y||(y=new Un),E(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},gl.prototype.ex=function(a){var y=new qt;return a instanceof xn?(_f(this,y,a.nodes,!0,null,!0,!0,!0),_f(this,y,a.links,!0,null,!0,!0,!0),_f(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Fo?_f(this,y,a.memberParts,!1,null,!0,!0,!0):_f(this,y,a.iterator,!1,null,!0,!0,!0),y},gl.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var E=y.position.copy();return(isNaN(E.x)||isNaN(E.y))&&E.set(a),y=y.placeholder,y!==null&&(E=y.ga(Vs),(isNaN(E.x)||isNaN(E.y))&&E.set(a),a=y.padding,E.x+=a.left,E.y+=a.top),E}return a},tr.Object.defineProperties(gl.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())}}}),gl.prototype.collectParts=gl.prototype.ex,gl.prototype.getLayoutBounds=gl.prototype.ni,gl.prototype.invalidateLayout=gl.prototype.C,gl.className="Layout";function Hs(a){At(this),this.Sc=a,this.wf=new qt,this.ye=new qt,this.Es=new xr,this.zs=new xr}Hs.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 qt,this.ye=new qt,this.Es=new xr,this.zs=new xr},Hs.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1<a){for(var E=this.wf.iterator;E.next();)y+=`
|
|
|
`+E.value.toString(a-1);for(E=this.ye.iterator;E.next();)y+=`
|
|
|
`+E.value.toString(a-1)}return y},Hs.prototype.createVertex=function(){return new pu(this)},Hs.prototype.createEdge=function(){return new ld(this)},Hs.prototype.lg=function(a,y,E){if(a!==null){for(y===void 0&&(y=!1),E===void 0&&(E=null),E===null&&(E=function(ne){if(ne instanceof qr)return!ne.isLinkLabel;if(ne instanceof Fr){var oe=ne.fromNode;return oe===null||oe.isLinkLabel?!1:(ne=ne.toNode,!(ne===null||ne.isLinkLabel))}return!1}),a=a.iterator;a.next();){var b=a.value;if(b instanceof qr&&(!y||b.isTopLevel)&&b.canLayout()&&E(b)){if(b instanceof Fo&&b.layout===null)this.lg(b.memberParts,!1);else if(this.ki(b)===null){var x=this.createVertex();x.node=b,this.dh(x)}}}for(a.reset();a.next();)if(b=a.value,b instanceof Fr&&(!y||b.isTopLevel)&&b.canLayout()&&E(b)&&this.Lo(b)===null){var z=b.fromNode;x=b.toNode,z!==null&&x!==null&&z!==x&&(z=this.findGroupVertex(z),x=this.findGroupVertex(x),z!==null&&x!==null&&this.Zj(z,x,b))}}},Hs.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},We=Hs.prototype,We.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},We.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},We.Iu=function(a){if(a!==null&&fE(this,a)){for(var y=a.tg,E=y.count-1;0<=E;E--){var b=y.M(E);this.Mj(b)}for(y=a.mg,a=y.count-1;0<=a;a--)E=y.M(a),this.Mj(E)}};function fE(a,y){if(y===null)return!1;var E=a.wf.remove(y);return E&&(y=y.node,y!==null&&a.Es.remove(y)),E}We.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},We.ki=function(a){return a===null?null:this.Es.I(a)},We.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 E=y.link;E!==null&&a.Lo(E)===null&&a.zs.add(E,y),y.network=a}}We.Dy=function(a){if(a===null)return null;var y=a.fromNode,E=a.toNode,b=this.Lo(a);return b===null?(b=this.createEdge(),b.link=a,y!==null&&(b.fromVertex=this.Bl(y)),E!==null&&(b.toVertex=this.Bl(E)),this.Bo(b)):(y!==null?b.fromVertex=this.Bl(y):b.fromVertex=null,E!==null?b.toVertex=this.Bl(E):b.toVertex=null),b},We.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))}We.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},We.Lo=function(a){return a===null?null:this.zs.I(a)},We.Zj=function(a,y,E){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var b=this.createEdge();return b.link=E,b.fromVertex=a,b.toVertex=y,this.Bo(b),b}return null},We.gm=function(a){if(a!==null){var y=a.fromVertex,E=a.toVertex;y!==null&&E!==null&&(y.Jl(a),E.Kl(a),a.gm(),y.Cl(a),E.zl(a))}},We.Ko=function(){for(var a=Oi(),y=this.ye.iterator;y.next();){var E=y.value;E.fromVertex===E.toVertex&&a.push(E)}for(y=a.length,E=0;E<y;E++)this.Mj(a[E]);Yi(a)},Hs.prototype.deleteArtificialVertexes=function(){for(var a=Oi(),y=this.wf.iterator;y.next();){var E=y.value;E.node===null&&E.data===null&&a.push(E)}for(E=a.length,y=0;y<E;y++)this.Iu(a[y]);for(y=Oi(),E=this.ye.iterator;E.next();){var b=E.value;b.link===null&&b.data===null&&y.push(b)}for(E=y.length,b=0;b<E;b++)this.Mj(y[b]);Yi(a),Yi(y)};function S1(a){for(var y=Oi(),E=a.ye.iterator;E.next();){var b=E.value;b.fromVertex!==null&&b.toVertex!==null||y.push(b)}for(E=y.length,b=0;b<E;b++)a.Mj(y[b]);Yi(y)}Hs.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),S1(this),this.Ko()),a=new Ar;for(var y=!0;y;){y=!1;for(var E=this.wf.iterator;E.next();){var b=E.value;if(0<b.tg.count||0<b.mg.count){y=this.layout.createNetwork(),a.add(y),my(this,y,b),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,E){if(E!==null&&E.network!==y){fE(a,E),y.dh(E);for(var b=E.sourceEdges;b.next();){var x=b.value;x.network!==y&&(gy(a,x),py(y,x),my(a,y,x.fromVertex))}for(b=E.destinationEdges;b.next();)E=b.value,E.network!==y&&(gy(a,E),py(y,E),my(a,y,E.toVertex))}}Hs.prototype.dz=function(){for(var a=new qt,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},tr.Object.defineProperties(Hs.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}}}),Hs.prototype.findAllParts=Hs.prototype.dz,Hs.prototype.splitIntoSubNetworks=Hs.prototype.Zx,Hs.prototype.deleteSelfEdges=Hs.prototype.Ko,Hs.prototype.reverseEdge=Hs.prototype.gm,Hs.prototype.linkVertexes=Hs.prototype.Zj,Hs.prototype.findEdge=Hs.prototype.Lo,Hs.prototype.deleteLink=Hs.prototype.Yy,Hs.prototype.deleteEdge=Hs.prototype.Mj,Hs.prototype.addLink=Hs.prototype.Dy,Hs.prototype.addEdge=Hs.prototype.Bo,Hs.prototype.findVertex=Hs.prototype.ki,Hs.prototype.deleteNode=Hs.prototype.Zy,Hs.prototype.deleteVertex=Hs.prototype.Iu,Hs.prototype.addNode=Hs.prototype.Bl,Hs.prototype.addVertex=Hs.prototype.dh,Hs.prototype.addParts=Hs.prototype.lg,Hs.className="LayoutNetwork";function pu(a){At(this),this.ob=a,this.j=new Un(0,0,10,10).freeze(),this.o=new xt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Ar,this.mg=new Ar}pu.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Ar,this.mg=new Ar},pu.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Qt(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var E=!0,b=this.tg.iterator;b.next();){var x=b.value;E?E=!1:a+=",",a+=x.toString(0)}for(x="",E=!0,b=this.mg.iterator;b.next();){var z=b.value;E?E=!1:x+=",",x+=z.toString(0)}y+=" sources: "+a+" destinations: "+x}return y},pu.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,E=a.bounds;wr(E)?(E.x=y.x,E.y=y.y,E.width=y.width,E.height=y.height):a.bounds=y.copy()}else if(a=this.node,a!==null){if(y=this.bounds,!(a instanceof Fo)){E=Un.alloc(),a.Va();var b=this.network.layout.ni(a,E),x=a.locationObject.ga(la);if(b.w()&&x.w()){a.moveTo(y.x+this.focusX-(x.x-b.x),y.y+this.focusY-(x.y-b.y)),Un.free(E);return}Un.free(E)}a.moveTo(y.x,y.y)}},pu.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},pu.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},pu.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},pu.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}tr.Object.defineProperties(pu.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var E=y.y,b=y.width;y=y.height,this.o.h(b/2,y/2),this.j.h(a,E,b,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,E=Un.alloc(),b=y.ni(a,E);y=b.x;var x=b.y,z=b.width;if(b=b.height,isNaN(y)&&(y=0),isNaN(x)&&(x=0),this.j.h(y,x,z,b),Un.free(E),!(a instanceof Fo)&&(a=a.locationObject.ga(la),a.w())){this.o.h(a.x-y,a.y-x);return}this.o.h(z/2,b/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 qt,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new qt,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new qt,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 Ar,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}}}),pu.prototype.deleteDestinationEdge=pu.prototype.Jl,pu.prototype.addDestinationEdge=pu.prototype.zl,pu.prototype.deleteSourceEdge=pu.prototype.Kl,pu.prototype.addSourceEdge=pu.prototype.Cl,pu.className="LayoutVertex",pu.standardComparer=vy,pu.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var E=y.Sh;if(a!==null){if(E!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=E.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),E=0;E<y.length;E++)if(a[E]!==""&&a[E]!==void 0){var b=parseFloat(y[E]),x=parseFloat(a[E]);if(isNaN(b))if(isNaN(x)){if(y[E].localeCompare(a[E])!==0)return y[E].localeCompare(a[E])}else return 1;else{if(isNaN(x))return-1;if(b-x!==0)return b-x}}else if(y[E]!=="")return 1;return a[E]!==""&&a[E]!==void 0?-1:0}return 1}return E!==null?-1:0}return 1}return y!==null?-1:0};function ld(a){At(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}ld.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},ld.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Qt(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},ld.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},ld.prototype.commit=function(){},ld.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},tr.Object.defineProperties(ld.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)}}}),ld.prototype.getOtherVertex=ld.prototype.Ax,ld.className="LayoutEdge";function Mu(a){gl.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new sn(NaN,NaN).freeze(),this.tf=new sn(10,10).freeze(),this.Jb=hm,this.Rb=k0,this.nd=fm,this.hd=pE,a&&Object.assign(this,a)}vn(Mu,gl),Mu.prototype.cloneProtected=function(a){gl.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},Mu.prototype.qb=function(a){a.classType===Mu?a===fm||a===M0||a===yy||a===R0?this.sorting=a:a===k0||a===oh?this.arrangement=a:a===hm||a===I0?this.alignment=a:Pn("Unknown enum value: "+a):gl.prototype.qb.call(this,a)},Mu.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var E=y.copy().iterator;E.next();){var b=E.value;if(!b.ph()||b.fromNode===null&&b.toNode===null){if(b.Va(),b instanceof Fo)for(b=b.memberParts;b.next();)y.remove(b.value)}else y.remove(b)}var x=y.Fa();if(x.length!==0){switch(this.sorting){case R0:x.reverse();break;case fm:x.sort(this.comparer);break;case M0: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),E=this.spacing.height,isFinite(E)||(E=0),a!==null&&a.Ea("Layout"),b=[],this.alignment){case I0:var oe=y,ue=E,he=Un.alloc(),ge=Math.max(this.cellSize.width,1);if(!isFinite(ge))for(var Ee=ge=0;Ee<x.length;Ee++){var ke=this.ni(x[Ee],he);ge=Math.max(ge,ke.width)}if(ge=Math.max(ge+oe,1),Ee=Math.max(this.cellSize.height,1),!isFinite(Ee))for(ke=Ee=0;ke<x.length;ke++){var Ve=this.ni(x[ke],he);Ee=Math.max(Ee,Ve.height)}Ee=Math.max(Ee+ue,1),ke=this.arrangement;for(var Ze=Ve=this.arrangementOrigin.x,st=this.arrangementOrigin.y,Ot=0,Pt=0,zt=0;zt<x.length;zt++){var Kt=x[zt],Jt=this.ni(Kt,he),dn=Math.ceil((Jt.width+oe)/ge)*ge,kn=Math.ceil((Jt.height+ue)/Ee)*Ee;switch(ke){case oh:var Xr=Math.abs(Ze-Jt.width);break;default:Xr=Ze+Jt.width}switch((0<z&&Ot>z-1||0<ne&&0<Ot&&Xr-Ve>ne)&&(b.push(new Un(0,st,ne+oe,Pt)),Ot=0,Ze=Ve,st+=Pt,Pt=0),Pt=Math.max(Pt,kn),ke){case oh:Jt=-Jt.width;break;default:Jt=0}switch(Kt.moveTo(Ze+Jt,st),ke){case oh:Ze-=dn;break;default:Ze+=dn}Ot++}b.push(new Un(0,st,ne+oe,Pt)),Un.free(he);break;case hm:for(ue=ne,ge=z,Ee=y,ke=E,ne=Un.alloc(),Ve=Math.max(this.cellSize.width,1),z=st=he=0,oe=xt.alloc(),Ze=0;Ze<x.length;Ze++)Pt=x[Ze],Ot=this.ni(Pt,ne),Pt=df(Pt,Pt.locationObject,Pt.locationSpot,oe),he=Math.max(he,Pt.x),st=Math.max(st,Ot.width-Pt.x),z=Math.max(z,Pt.y);switch(Ze=this.arrangement,Ze){case oh:he+=Ee;break;default:st+=Ee}Ve=isFinite(Ve)?Math.max(Ve+Ee,1):Math.max(he+st,1);var Ei=Pt=this.arrangementOrigin.x;for(zt=this.arrangementOrigin.y,st=0,ue>=he&&(ue-=he),he=Kt=0,dn=Math.max(this.cellSize.height,1),Jt=z=0,kn=!0,Ot=xt.alloc(),Xr=0;Xr<x.length;Xr++){var fi=x[Xr],Dr=this.ni(fi,ne),gr=df(fi,fi.locationObject,fi.locationSpot,oe);if(0<st)switch(Ze){case oh:Ei=(Ei-Pt-(Dr.width-gr.x))/Ve,Ei=gn.$(Math.round(Ei),Ei)?Math.round(Ei):Math.floor(Ei),Ei=Ei*Ve+Pt;break;default:Ei=(Ei-Pt+gr.x)/Ve,Ei=gn.$(Math.round(Ei),Ei)?Math.round(Ei):Math.ceil(Ei),Ei=Ei*Ve+Pt}else switch(Ze){case oh:Kt=Ei+gr.x+Dr.width;break;default:Kt=Ei-gr.x}switch(Ze){case oh:var Oo=-(Ei+gr.x)+Kt;break;default:Oo=Ei+Dr.width-gr.x-Kt}if(0<ge&&st>ge-1||0<ue&&0<st&&Oo>ue){for(b.push(new Un(0,kn?zt-z:zt,ue+Ee,Jt+z+ke)),Ei=0;Ei<st&&Xr!==st;Ei++){Oo=x[Xr-st+Ei];var Eo=df(Oo,Oo.locationObject,Oo.locationSpot,Ot);Oo.moveTo(Oo.position.x,Oo.position.y+z-Eo.y)}Jt+=ke,zt=kn?zt+Jt:zt+(Jt+z),st=Jt=z=0,Ei=Pt,kn=!1}switch(Ei===Pt&&(he=Ze===oh?Math.max(he,Dr.width-gr.x):Math.min(he,-gr.x)),z=Math.max(z,gr.y),Jt=Math.max(Jt,Dr.height-gr.y),isFinite(dn)&&(Jt=Math.max(Jt,Math.max(Dr.height,dn)-gr.y)),kn?fi.moveTo(Ei-gr.x,zt-gr.y):fi.moveTo(Ei-gr.x,zt),Ze){case oh:Ei-=gr.x+Ee;break;default:Ei+=Dr.width-gr.x+Ee}st++}if(b.push(new Un(0,zt,ue+Ee,(kn?Jt:Jt+z)+ke)),x.length!==st)for(ue=0;ue<st;ue++)ge=x[x.length-st+ue],Ee=df(ge,ge.locationObject,ge.locationSpot,oe),ge.moveTo(ge.position.x,ge.position.y+z-Ee.y);if(xt.free(oe),xt.free(Ot),Ze===oh)for(x=0;x<b.length;x++)z=b[x],z.width+=he,z.x-=he;else for(x=0;x<b.length;x++)z=b[x],z.x>he&&(z.width+=z.x-he,z.x=he);Un.free(ne)}for(oe=z=ne=x=0;oe<b.length;oe++)ue=b[oe],x=Math.min(x,ue.x),ne=Math.min(ne,ue.y),z=Math.max(z,ue.x+ue.width);this.arrangement===oh?this.commitLayers(b,new xt(x+y/2-(z+x),ne-E/2)):this.commitLayers(b,new xt(x-y/2,ne-E/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},Mu.prototype.commitLayers=function(){};function pE(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}tr.Object.defineProperties(Mu.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!==hm&&a!==I0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==k0&&a!==oh||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==yy&&a!==R0&&a!==fm&&a!==M0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var I0=new Mn(Mu,"Position",0),hm=new Mn(Mu,"Location",1),k0=new Mn(Mu,"LeftToRight",2),oh=new Mn(Mu,"RightToLeft",3),yy=new Mn(Mu,"Forward",4),R0=new Mn(Mu,"Reverse",5),fm=new Mn(Mu,"Ascending",6),M0=new Mn(Mu,"Descending",7);Mu.className="GridLayout",Mu.standardComparer=pE,Mu.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),y=y.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var E=0;E<a.length;E++)if(y[E]!==""&&y[E]!==void 0){var b=parseFloat(a[E]),x=parseFloat(y[E]);if(isNaN(b))if(isNaN(x)){if(a[E].localeCompare(y[E])!==0)return a[E].localeCompare(y[E])}else return 1;else{if(isNaN(x))return-1;if(b-x!==0)return b-x}}else if(a[E]!=="")return 1;return y[E]!==""&&y[E]!==void 0?-1:0}return 1}return y!==null?-1:0},Mu.Position=I0,Mu.Location=hm,Mu.LeftToRight=k0,Mu.RightToLeft=oh,Mu.Forward=yy,Mu.Reverse=R0,Mu.Ascending=fm,Mu.Descending=M0;function bs(){this.On=new qt,this.Dn=new qt,this.Pa=new qt,this.cf=new xr,this.bf=new xr,this.aj=new xr,this.H=null,this.tp=!1}We=bs.prototype,We.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},We.Xe=function(a){this.H=a},We.oi=function(a){if(a instanceof qr){if(this.On.add(a),a instanceof Fo){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 Fr?this.Dn.add(a):a instanceof Xa||this.Pa.add(a);y=a.data,y===null||a instanceof Xa||(a instanceof Fr?this.bf.add(y,a):this.cf.add(y,a))},We.pc=function(a){if(a.Ej(),a instanceof qr){if(this.On.remove(a),a instanceof Fo){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 Fr?this.Dn.remove(a):a instanceof Xa||this.Pa.remove(a);y=a.data,y===null||a instanceof Xa||(a instanceof Fr?this.bf.remove(y):this.cf.remove(y))},We.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var E=y.value,b=y.key;(!E.Zc()||E instanceof Fo)&&Pn('Invalid node template in Diagram.nodeTemplateMap: template for "'+b+'" must be a Node or a simple Part, not a Group or Link: '+E)}for(y=a.groupTemplateMap.iterator;y.next();)E=y.value,b=y.key,E instanceof Fo||Pn('Invalid group template in Diagram.groupTemplateMap: template for "'+b+'" must be a Group, not a normal Node or Link: '+E);for(y=a.linkTemplateMap.iterator;y.next();)E=y.value,b=y.key,E instanceof Fr||Pn('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+E);for(y=Oi(),E=a.selection.iterator;E.next();)(b=E.value.data)&&y.push(b);for(E=Oi(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&E.push(b);for(a=Oi(),b=this.nodes.iterator;b.next();){var x=b.value;x.data!==null&&(a.push(x.data),a.push(x.location))}for(b=this.links.iterator;b.next();)x=b.value,x.data!==null&&(a.push(x.data),a.push(x.location));for(b=this.parts.iterator;b.next();)x=b.value,x.data!==null&&(a.push(x.data),a.push(x.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),b=0;b<y.length;b++)x=this.Lc(y[b]),x!==null&&(x.isSelected=!0);for(b=0;b<E.length;b++)x=this.Lc(E[b]),x!==null&&(x.isHighlighted=!0);for(b=0;b<a.length;b+=2)x=this.Lc(a[b]),x!==null&&(x.location=a[b+1]);Yi(y),Yi(E),Yi(a)}},bs.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},bs.prototype.addModeledParts=function(a,y){var E=this,b=this.diagram.model;a.forEach(function(x){b.lb(x)&&gE(E,x,!1)}),a.forEach(function(x){b.lb(x)&&E.resolveReferencesForData(x)}),y!==!1&&kd(this.diagram,!1)};function gE(a,y,E){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){E===void 0&&(E=!0);e:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var b=a.Ro(y),x=mE(a,y,b);if(x!==null&&(Od(x),x=x.copy(),x!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,x.Tf=b,x.ub=y,a.tp&&(x.Jg="Tool"),a.diagram.add(x),x.ub=null,x.data=y,a.diagram.skipsModelSourceBindings=z,b=x;break e}}b=null}b!==null&&E&&a.resolveReferencesForData(y)}}bs.prototype.insertLink=function(){return null},bs.prototype.resolveReferencesForData=function(){},bs.prototype.Ro=function(a){return this.H.model.Ro(a)};function mE(a,y,E){a=a.H;var b=a.model;return b.Xj()&&b.Yu(y)?(y=a.groupTemplateMap.I(E),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(SE||(SE=!0,Xo('No Group template found for category "'+E+'"'),Xo(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(E),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(yE||(yE=!0,Xo('No Node template found for category "'+E+'"'),Xo(" Using default node template")),y=a.ny))),y}bs.prototype.getLinkCategoryForData=function(){return""},bs.prototype.setLinkCategoryForData=function(){},bs.prototype.setFromNodeForLink=function(){},bs.prototype.setToNodeForLink=function(){},bs.prototype.findLinkTemplateForCategory=function(a){var y=this.H,E=y.linkTemplateMap.I(a);return E===null&&(E=y.linkTemplateMap.I(""),E===null&&(EE||(EE=!0,Xo('No Link template found for category "'+a+'"'),Xo(" Using default link template")),E=y.my)),E},bs.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},bs.prototype.Gs=function(a){var y=this;a.forEach(function(E){y.ip(E)})},bs.prototype.ip=function(a){a=this.Lc(a),a!==null&&(ph(this.diagram,a,!1),this.unresolveReferencesForPart(a))},bs.prototype.unresolveReferencesForPart=function(){},bs.prototype.removeDataForLink=function(){},bs.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},bs.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)},bs.prototype.findLinkForKey=function(){return null},We=bs.prototype,We.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},We.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof qr?a:null)},We.Kc=function(a){return a===null?null:this.bf.I(a)},We.ms=function(a){for(var y=0;y<arguments.length;++y);y=new qt;for(var E=this.On.iterator;E.next();){var b=E.value,x=b.data;if(x!==null)for(var z=0;z<arguments.length;z++){var ne=arguments[z];if(wr(ne)&&Sy(this,x,ne)){y.add(b);break}}}return y.iterator},We.ls=function(a){for(var y=0;y<arguments.length;++y);y=new qt;for(var E=this.Dn.iterator;E.next();){var b=E.value,x=b.data;if(x!==null)for(var z=0;z<arguments.length;z++){var ne=arguments[z];if(wr(ne)&&Sy(this,x,ne)){y.add(b);break}}}return y.iterator};function Sy(a,y,E){for(var b in E){var x=y[b],z=E[b];if(Gi(z)){if(!Gi(x)||x.length<z.length)return!1;for(var ne=0;ne<x.length;ne++){var oe=z[ne];if(oe!==void 0&&!vE(a,x[ne],oe))return!1}}else if(!vE(a,x,z))return!1}return!0}function vE(a,y,E){if(typeof E=="function"){if(!E(y))return!1}else if(E instanceof RegExp){if(!y||!E.test(y.toString()))return!1}else if(wr(y)&&wr(E)){if(!Sy(a,y,E))return!1}else if(y!==E)return!1;return!0}bs.prototype.doModelChanged=function(a){if(this.H){var y=this.H;if(a.model===y.model){var E=a.change;if(y.doModelChanged(a),y.aa){y.aa=!1;try{var b=a.modelChange;if(b!=="")if(E===ys){if(b==="nodeCategory"){var x=this.Lc(a.object),z=a.newValue;x!==null&&typeof z=="string"&&(x.category=z)}else b==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(E===Js){var ne=a.newValue;b==="nodeDataArray"&&wr(ne)&&gE(this,ne),y.isModified=!0}else if(E===ul){var oe=a.oldValue;b==="nodeDataArray"&&wr(oe)&&this.ip(oe),y.isModified=!0}else E===tu&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(E===ys){var ue=a.propertyName,he=a.object;he===y.model?(ue==="nodeKeyProperty"||ue==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(he,ue),y.isModified=!0}else if(E===Js||E===ul){var ge=a.change===Js,Ee=ge?a.newParam:a.oldParam,ke=ge?a.newValue:a.oldValue,Ve=this.aj.I(a.object);if(Array.isArray(Ve))for(a=0;a<Ve.length;a++){var Ze=Ve[a];if(ge)$m(Ze,ke,Ee,!0);else if(!(0>Ee)){var st=Ee+Zg(Ze);Ze.pc(st,!0),Mv(Ze,st,Ee)}}y.isModified=!0}}finally{y.aa=!0}}}}},bs.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)},bs.prototype.rp=function(){for(var a=this.H.model,y=new qt,E=a.nodeDataArray,b=0;b<E.length;b++)y.add(E[b]);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){LE(a,ne,!1)}),b=0;b<E.length;b++){var z=E[b];this.Lc(z)===null&&NE(a,z,!1)}for(this.refreshDataBoundLinks(),E=this.parts.iterator;E.next();)E.value.updateRelationshipsFromData();for(E=this.nodes.iterator;E.next();)E.value.updateRelationshipsFromData();for(E=this.links.iterator;E.next();)E.value.updateRelationshipsFromData()},bs.prototype.refreshDataBoundLinks=function(){},bs.prototype.updateRelationshipsFromData=function(){},bs.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var E=this.Lc(a);if(E!==null)E.La(y);else{E=null;for(var b=this.aj.iterator;b.next();){for(var x=b.value,z=0;z<x.length;z++){var ne=x[z].sx(a);ne!==null&&(E===null&&(E=Oi()),E.push(ne))}if(E!==null)break}if(E!==null){for(b=0;b<E.length;b++)E[b].La(y);Yi(E)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function Ey(a,y){var E=y.Hh;if(Gi(E)){var b=a.aj.I(E);if(b===null)b=[],b.push(y),a.aj.add(E,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}function by(a,y,E){sp(y,function(ne){ne=ne.O.s;for(var oe=ne.length,ue=0;ue<oe;ue++)jd(E,ne[ue])});var b=y.Hh;if(Gi(b)){var x=a.aj.I(b);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(b);break}}}}bs.prototype.Kj=function(a,y,E){E===void 0&&(E=!1);var b=new xr;if(Gi(a))for(var x=0;x<a.length;x++)O0(this,a[x],y,b,E);else for(a=a.iterator;a.next();)O0(this,a.value,y,b,E);if(y!==null){E=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,x=new qt;for(var z=new xr,ne=b.iterator;ne.next();){var oe=ne.value;if(oe instanceof Fr)a||oe.fromNode!==null&&oe.toNode!==null||x.add(oe);else if(oe instanceof qr&&oe.data!==null&&E.Tl()){var ue=oe;oe=ne.key;var he=oe.pg();he!==null&&(he=b.I(he),he!==null?(E.qe(ue.data,E.wa(he.data)),ue=y.Kc(ue.data),oe=oe.kh(),oe!==null&&ue!==null&&z.add(oe,ue)):E.qe(ue.data,void 0))}}if(0<x.count&&y.Is(x,!1),0<z.count)for(E=z.iterator;E.next();)b.add(E.key,E.value)}if(y!==null&&this.H!==null&&(y=y.model,E=y.afterCopyFunction,E!==null)){var ge=new xr;b.each(function(Ee){Ee.key.data!==null&&ge.add(Ee.key.data,Ee.value.data)}),E(ge,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function O0(a,y,E,b,x){if(y===null||x&&!y.canCopy())return null;if(b.contains(y))return b.I(y);var z=a.copyPartData(y,E);if(!(z instanceof Wi))return null;if(z.isSelected=!1,z.isHighlighted=!1,b.add(y,z),y instanceof qr){for(var ne=y.linksConnected;ne.next();){var oe=ne.value;if(oe.fromNode===y){var ue=b.I(oe);ue!==null&&(ue.fromNode=z)}oe.toNode===y&&(oe=b.I(oe),oe!==null&&(oe.toNode=z))}if(y instanceof Fo&&z instanceof Fo)for(y=y.memberParts;y.next();)ne=O0(a,y.value,E,b,x),ne instanceof Fr||ne===null||(ne.containingGroup=z)}else if(y instanceof Fr&&z instanceof Fr)for(ne=y.fromNode,ne!==null&&(ne=b.I(ne),ne!==null&&(z.fromNode=ne)),ne=y.toNode,ne!==null&&(ne=b.I(ne),ne!==null&&(z.toNode=ne)),y=y.labelNodes;y.next();)ne=O0(a,y.value,E,b,x),ne!==null&&ne instanceof qr&&(ne.labeledLink=z);return z}bs.prototype.copyPartData=function(a,y){var E=null,b=a.data;if(b!==null&&y!==null){var x=y.model;a instanceof Fr||(b=x.copyNodeData(b),wr(b)&&(x.xf(b),E=y.Lc(b)))}else Od(a),E=a.copy(),E!==null&&(x=this.H,y!==null?y.add(E):b!==null&&x!==null&&x.commandHandler!==null&&x.commandHandler.copiesClipboardData&&(y=x.model,x=null,E instanceof Fr||(x=y.copyNodeData(b)),wr(x)&&(E.data=x)));return E},tr.Object.defineProperties(bs.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}}}),bs.prototype.updateAllRelationshipsFromData=bs.prototype.rp,bs.prototype.findLinksByExample=bs.prototype.ls,bs.prototype.findNodesByExample=bs.prototype.ms,bs.prototype.findLinkForData=bs.prototype.Kc,bs.prototype.findNodeForData=bs.prototype.ii,bs.prototype.findPartForData=bs.prototype.Lc,bs.prototype.findNodeForKey=bs.prototype.Vb,bs.prototype.removeModeledPart=bs.prototype.ip,bs.prototype.removeModeledParts=bs.prototype.Gs,bs.prototype.rebuildParts=bs.prototype.Wd;var yE=!1,SE=!1,EE=!1;bs.className="PartManager";function Nu(a){bs.apply(this,arguments)}vn(Nu,bs),Nu.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),bE(this,a.linkDataArray)},Nu.prototype.addModeledParts=function(a){for(bs.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)yg(a.value);kd(this.diagram,!1)};function bE(a,y){y.forEach(function(E){xE(a,E)}),kd(a.diagram,!1)}function xE(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var E=a.getLinkCategoryForData(y),b=a.findLinkTemplateForCategory(E);if(b!==null){Od(b);var x=b.copy();if(x!==null){b=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,x.Tf=E,x.ub=y,E=a.diagram.model;var z=_0(E,y,!0);z!==""&&(x.fromPortId=z),z=bd(E,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof qr&&(x.fromNode=z)),z=_0(E,y,!1),z!==""&&(x.toPortId=z),z=bd(E,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof qr&&(x.toNode=z)),E=E.Ef(y),Array.isArray(E)&&E.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=b}}}}Nu.prototype.removeAllModeledParts=function(){var a=this.diagram.model;wE(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function wE(a,y){y.forEach(function(E){a.ip(E)})}Nu.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},Nu.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},Nu.prototype.setFromNodeForLink=function(a,y){var E=this.diagram.model;E.wv(a.data,E.wa(y!==null?y.data:null))},Nu.prototype.setToNodeForLink=function(a,y){var E=this.diagram.model;E.Bv(a.data,E.wa(y!==null?y.data:null))},Nu.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},Nu.prototype.findPartForKey=function(a){var y=bs.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},Nu.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},Nu.prototype.doModelChanged=function(a){var y=this;if(bs.prototype.doModelChanged.call(this,a),this.diagram){var E=this.diagram;if(a.model===E.model){var b=a.change;if(E.aa){E.aa=!1;try{var x=a.modelChange;if(x!==""){if(b===ys){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 oe=this.Kc(a.object);if(oe!==null){var ue=this.Vb(a.newValue);oe.toNode=ue}}else if(x==="linkFromPortId"){var he=this.Kc(a.object);if(he!==null){var ge=a.newValue;typeof ge=="string"&&(he.fromPortId=ge)}}else if(x==="linkToPortId"){var Ee=this.Kc(a.object);if(Ee!==null){var ke=a.newValue;typeof ke=="string"&&(Ee.toPortId=ke)}}else if(x==="nodeGroupKey"){var Ve=this.Lc(a.object);if(Ve!==null){var Ze=a.newValue;if(Ze!==void 0){var st=this.Vb(Ze);st instanceof Fo?Ve.containingGroup=st:Ve.containingGroup=null}else Ve.containingGroup=null}}else if(x==="linkLabelKeys"){var Ot=this.Kc(a.object);if(Ot!==null){var Pt=a.oldValue,zt=a.newValue;Array.isArray(Pt)&&Pt.forEach(function(gr){0<=zt.indexOf(gr)||(gr=y.Vb(gr),gr!==null&&(gr.labeledLink=null))}),Array.isArray(zt)&&zt.forEach(function(gr){gr=y.Vb(gr),gr!==null&&(gr.labeledLink=Ot)})}}else if(x==="linkCategory"){var Kt=this.Kc(a.object),Jt=a.newValue;Kt!==null&&typeof Jt=="string"&&(Kt.category=Jt)}else x==="linkDataArray"&&(wE(this,a.oldValue),bE(this,a.newValue));E.isModified=!0}else if(b===Js){var dn=a.newValue;if(x==="linkDataArray"&&typeof dn=="object"&&dn!==null)xE(this,dn);else if(x==="linkLabelKeys"&&Hf(dn)){var kn=this.Kc(a.object),Xr=this.Vb(dn);kn!==null&&Xr!==null&&(Xr.labeledLink=kn)}E.isModified=!0}else if(b===ul){var Ei=a.oldValue;if(x==="linkDataArray"&&typeof Ei=="object"&&Ei!==null)this.ip(Ei);else if(x==="linkLabelKeys"&&Hf(Ei)){var fi=this.Vb(Ei);fi!==null&&(fi.labeledLink=null)}E.isModified=!0}}else if(b===ys){var Dr=a.propertyName;a.object!==E.model||Dr!=="linkFromKeyProperty"&&Dr!=="linkToKeyProperty"&&Dr!=="linkFromPortIdProperty"&&Dr!=="linkToPortIdProperty"&&Dr!=="linkLabelKeysProperty"&&Dr!=="nodeIsGroupProperty"&&Dr!=="nodeGroupKeyProperty"&&Dr!=="linkCategoryProperty"||E.undoManager.isUndoingRedoing||this.Wd(),E.isModified=!0}}finally{E.aa=!0}}}}},Nu.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,E=new qt,b=y.linkDataArray;b.forEach(function(z){E.add(z)});var x=[];this.links.each(function(z){z.data===null||E.contains(z.data)||x.push(z.data)}),x.forEach(function(z){DE(y,z,!1)}),b.forEach(function(z){a.Kc(z)===null&&OE(y,z,!1)})},Nu.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var E=a.diagram;if(E!==null){var b=E.model;if(a instanceof Fr){var x=bd(b,y,!0);if(x=E.Vb(x),a.fromNode=x,x=bd(b,y,!1),x=E.Vb(x),a.toNode=x,y=b.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(b.wa(z.data)===x)return}x=new qt().addAll(y);var ne=new qt;a.labelNodes.each(function(oe){oe.data!==null&&(oe=b.wa(oe.data),oe!==void 0&&ne.add(oe))}),y=ne.copy(),y.hp(x),x=x.copy(),x.hp(ne),(0<y.count||0<x.count)&&(y.each(function(oe){oe=E.Vb(oe),oe!==null&&oe.labeledLink===a&&(oe.labeledLink=null)}),x.each(function(oe){oe=E.Vb(oe),oe!==null&&oe.labeledLink!==a&&(oe.labeledLink=a)}))}}else!(a instanceof Xa)&&(y=b.lh(y),y=E.findPartForKey(y),y===null||y instanceof Fo)&&(a.containingGroup=y)}}},Nu.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,E=y.wa(a);if(E!==void 0){var b=pm(y,E),x=this.Lc(a);if(b!==null&&x!==null){b=b.iterator;for(var z={};b.next();){var ne=b.value;y.lb(ne)?x instanceof Fo&&y.lh(ne)===E&&(ne=this.Lc(ne),ne!==null&&(ne.containingGroup=x)):(z.link=this.Kc(ne),z.link!==null&&x instanceof qr&&(bd(y,ne,!0)===E&&(z.link.fromNode=x),bd(y,ne,!1)===E&&(z.link.toNode=x),ne=y.Ef(ne),Array.isArray(ne)&&ne.some(function(oe){return function(ue){return ue===E?(x.labeledLink=oe.link,!0):!1}}(z)))),z={link:z.link}}sh(y,E)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Fo&&(x.containingGroup=a))}},Nu.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof qr){var E=y.wa(a.data);if(E!==void 0){for(var b=a.linksConnected;b.next();)ah(y,E,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&ah(y,E,b.data)),a instanceof Fo)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&ah(y,E,b)}}},Nu.prototype.copyPartData=function(a,y){var E=bs.prototype.copyPartData.call(this,a,y);if(a instanceof Fr)if(a=a.data,a!==null&&y!==null){var b=y.model;a=b.Jo(a),typeof a=="object"&&a!==null&&(b.fi(a),E=y.Kc(a))}else E!==null&&(y=this.diagram,a!==null&&y!==null&&y.commandHandler!==null&&y.commandHandler.copiesClipboardData&&(y=y.model.Jo(a),typeof y=="object"&&y!==null&&(E.data=y)));return E},Nu.prototype.insertLink=function(a,y,E,b){var x=this.diagram,z=x.model,ne=x.toolManager.findTool("Linking"),oe="";if(a!==null&&(y===null&&(y=a),oe=y.portId,oe===null&&(oe="")),y="",E!==null&&(b===null&&(b=E),y=b.portId,y===null&&(y="")),b=ne.archetypeLinkData,b instanceof Fr){if(Od(b),z=b.copy(),z!==null)return z.fromNode=a,z.fromPortId=oe,z.toNode=E,z.toPortId=y,x.add(z),a=ne.archetypeLabelNodeData,a instanceof qr&&(Od(a),a=a.copy(),a!==null&&(a.labeledLink=z,x.add(a))),z}else if(b!==null&&(b=z.Jo(b),typeof b=="object"&&b!==null))return a!==null&&Cg(z,b,z.wa(a.data),!0),Tg(z,b,oe,!0),E!==null&&Cg(z,b,z.wa(E.data),!1),Tg(z,b,y,!1),z.fi(b),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(b,a))),x.Kc(b);return null},Nu.prototype.findLinkForKey=Nu.prototype.findLinkForKey,Nu.prototype.findPartForKey=Nu.prototype.findPartForKey,Nu.prototype.removeAllModeledParts=Nu.prototype.removeAllModeledParts,Nu.prototype.addModeledParts=Nu.prototype.addModeledParts,Nu.prototype.addAllModeledParts=Nu.prototype.addAllModeledParts,Nu.className="GraphLinksPartManager";function Ad(){bs.apply(this,arguments),this.Sg=null}vn(Ad,bs);function D0(a,y,E){if(y!==null&&E!==null&&E.kh()===null){var b=a.diagram.toolManager.findTool("Linking"),x=y,z=E;if(a.diagram.isTreePathToChildren||(x=E,z=y),(b===null||!Ia(b,x,z,null,!0))&&(y=a.getLinkCategoryForData(E.data),b=a.findLinkTemplateForCategory(y),b!==null&&(Od(b),b=b.copy(),b!==null))){var ne=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=y,b.ub=E.data,b.fromNode=x,b.toNode=z,a.diagram.add(b),b.ub=null,b.data=E.data,a.diagram.skipsModelSourceBindings=ne}}}Ad.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},Ad.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},Ad.prototype.setFromNodeForLink=function(a,y,E){var b=this.diagram.model;if(E===void 0&&(E=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)b.qe(a.data,b.wa(y));else{var x=this.Sg;this.Sg=a,E!==null&&b.qe(E.data,void 0),b.qe(y,b.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=x}},Ad.prototype.setToNodeForLink=function(a,y,E){var b=this.diagram.model;if(E===void 0&&(E=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var x=this.Sg;this.Sg=a,E!==null&&b.qe(E.data,void 0),b.qe(y,b.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=x}else b.qe(a.data,b.wa(y))},Ad.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},Ad.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},Ad.prototype.doModelChanged=function(a){if(bs.prototype.doModelChanged.call(this,a),this.diagram){var y=this.diagram;if(a.model===y.model){var E=a.change;if(y.aa){y.aa=!1;try{var b=a.modelChange;if(b!==""){if(E===ys){if(b==="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 oe=ne.kh();oe!==null?z===null?y.remove(oe):y.isTreePathToChildren?oe.fromNode=z:oe.toNode=z:D0(this,z,ne)}}else if(b==="parentLinkCategory"){var ue=this.ii(a.object),he=a.newValue;if(ue!==null&&typeof he=="string"){var ge=ue.kh();ge!==null&&(ge.category=he)}}y.isModified=!0}}else if(E===ys){var Ee=a.propertyName;a.object===y.model&&Ee==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},Ad.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var E=a.diagram;if(E!==null){var b=E.model;a instanceof qr&&(y=b.mh(y),y=E.Vb(y),b=a.pg(),y!==b&&(b=a.kh(),y!==null?b!==null?E.isTreePathToChildren?b.fromNode=y:b.toNode=y:D0(this,y,a):b!==null&&ph(E,b,!1)))}}},Ad.prototype.updateDataBindings=function(a,y){bs.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},Ad.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,E=y.wa(a);if(E!==void 0){var b=pm(y,E),x=this.Lc(a);if(b!==null&&x!==null){for(b=b.iterator;b.next();){var z=b.value;y.lb(z)&&x instanceof qr&&y.mh(z)===E&&D0(this,x,this.ii(z))}sh(y,E)}a=y.mh(a),a!==void 0&&x instanceof qr&&(a=this.Vb(a),D0(this,a,x))}},Ad.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof qr){var E=y.wa(a.data),b=this.Kc(a.data);if(b!==null){b.isSelected=!1,b.isHighlighted=!1;var x=b.layer;if(x!==null){var z=x.pc(-1,b,!1);0<=z&&this.diagram.cb(ul,"parts",x,b,null,z,null),z=b.layerChanged,z!==null&&z(b,x,null)}}for(b=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)x=a.value,x=(b?x.toNode:x.fromNode).data,y.lb(x)&&ah(y,E,x)}},Ad.prototype.insertLink=function(a,y,E){y=this.diagram.model;var b=a,x=E;return this.diagram.isTreePathToChildren||(b=E,x=a),b!==null&&x!==null?(y.qe(x.data,y.wa(b.data)),x.kh()):null},Ad.prototype.findLinkForKey=Ad.prototype.findLinkForKey,Ad.className="TreePartManager";function Ai(a,y){this.kl=new qt,this.il=new qt,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,At(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new xr,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 xr,this.Lt=new Ar,this.Wg=!1,this.o=null,this.undoManager=new Fs,a!==void 0&&(Gi(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Ai.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},Ai.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ai.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Ai.prototype.toString=function(a){if(a===void 0&&(a=0),1<a)return this.np();var y=(this.name!==""?this.name:"")+" Model";if(0<a){y+=`
|
|
|
node data:`,a=this.nodeDataArray;for(var E=a.length,b=0;b<E;b++){var x=a[b];y+=" "+this.wa(x)+":"+ba(x)}}return y},Ai.prototype.xA=function(a){a.change!==tu&&Pn("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Sl?(TE(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Ai.prototype.Qv=function(a,y){var E=this,b=!1,x=new qt,z=new qt,ne=new qt,oe=this.vh;a.changes.each(function(Ee){Ee.model===E&&(Ee.modelChange==="nodeDataArray"?Ee.change===Js?x.add(Ee.newValue):Ee.change===ul&&ne.add(Ee.oldValue):E.lb(Ee.object)?z.add(Ee.object):Ee.change!==ys||E.modelData!==Ee.object&&Ee.propertyName!=="modelData"?Ee.object!==null&&(oe&&oe.contains(Ee.object)?oe.get(Ee.object).each(function(ke){E.lb(ke)&&z.add(ke)}):Ee.object instanceof Ai||E.ri()&&E.Jc(Ee.object)||AE(E,Ee.object).each(function(ke){z.add(ke)})):b=!0)});var ue=this.il;ue.clear(),x.each(function(Ee){ue.add(E.wa(Ee)),y||z.add(Ee)});var he=this.kl;he.clear(),ne.each(function(Ee){he.add(E.wa(Ee)),y&&z.add(Ee)}),a=E.cloneDeep(z.Fa());var ge=null;return b&&(ge===null&&(ge={}),ge.modelData=this.cloneDeep(this.modelData)),0<ue.count&&(ge===null&&(ge={}),y?ge.removedNodeKeys=ue.Fa():ge.insertedNodeKeys=ue.Fa()),0<a.length&&(ge===null&&(ge={}),ge.modifiedNodeData=a),0<he.count&&(ge===null&&(ge={}),y?ge.insertedNodeKeys=he.Fa():ge.removedNodeKeys=he.Fa()),he.clear(),ue.clear(),ge},Ai.prototype.cloneDeep=function(a){return wg(this,a,!0)};function wg(a,y,E,b,x,z){function ne(Ee,ke){oe?(Ee.__gohashid===void 0&&z.push(Ee),b.set(Ee,ke)):(Ee=ln++,b.set(Ee,ke),x.set(Ee,y))}if(!wr(y))return y;z||(z=[]);var oe=Object.isExtensible(y);if(b||(b=new xr),oe){var ue=b.get(y);if(ue)return ue}else for(x||(x=new xr),ue=x.iterator;ue.next();){var he=ue.key;if(ue.value===y&&(he=b.get(he)))return he}if(Array.isArray(y)){ue=[],ne(y,ue);for(var ge=0;ge<y.length;ge++)ue.push(wg(a,y[ge],!1,b,x,z))}else if(y instanceof xt||y instanceof sn||y instanceof Un||y instanceof Bi||y instanceof ci)ue=y.copy(),ne(y,ue);else{if(y instanceof Ya||y instanceof Mr||y instanceof Mn)return y;if(y instanceof Ar)ue=new Ar().addAll(wg(a,y.Fa(),!1,b,x,z)),ne(y,ue);else if(y instanceof qt)ue=new qt().addAll(wg(a,y.Fa(),!1,b,x,z)),ne(y,ue);else if(y instanceof xr)ue=new xr().addAll(wg(a,y.Fa(),!1,b,x,z)),ne(y,ue);else if(y instanceof Date)ue=new Date(y.getTime()),ne(y,ue);else if(y instanceof RegExp)ue=new RegExp(y),ne(y,ue),ue.lastIndex=y.lastIndex;else if(typeof y.copy=="function")ue=y.copy(),ne(y,ue);else for(ge in ue={},ne(y,ue),y)ge!=="__gohashid"&&(ue[ge]=wg(a,y[ge],!1,b,x,z))}return E&&z.forEach(function(Ee){delete Ee.__gohashid}),ue}We=Ai.prototype,We.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},We.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},We.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 CE(a,y){y=y.modelData,wr(y)&&(a.dm(y),a.modelData=y)}We.Rv=function(){var a=this.modelData,y=!1,E;for(E in a)if(!PE(E,a[E])){y=!0;break}return a="",y&&(a=`,
|
|
|
"modelData": `+xy(this,this.modelData)),a+`,
|
|
|
"nodeDataArray": `+Uf(this,this.nodeDataArray,!0)},We.kv=function(a){CE(this,a),a=a.nodeDataArray,Gi(a)&&(this.dm(a),this.nodeDataArray=a)};function TE(a,y){function E(x,z){if((z=z.part)&&(z=z.data,x!==z)){var ne=b.get(x);ne===null?(ne=new qt,ne.add(z),b.add(x,ne)):ne.add(z)}}var b=a.vh;b===null&&(b=new xr,y.changes.each(function(x){if(x.diagram!==null){var z=x.change;z===ys?(x=x.object.panel)&&(z=x.data)&&E(z,x):(z===Js||z===ul)&&(x=x.object,(z=x.itemArray)&&E(z,x))}}),a.vh=b)}function AE(a,y){for(var E=new qt,b=0;b<a.nodeDataArray.length;b++){var x=a.nodeDataArray[b];F0(a,y,x,x,E)}return E}function F0(a,y,E,b,x){if(Array.isArray(E))for(var z=0;z<E.length;z++){var ne=E[z];if(ne===y)return x.add(b),!0;if(F0(a,y,ne,b,x))return!0}else if(wr(E)&&Object.getPrototypeOf(E)===Object.prototype)for(z in E){if(ne=E[z],ne===y)return x.add(b),!0;if(F0(a,y,ne,b,x))return!0}return!1}We.Pv=function(a,y){var E=this,b=!1,x=new qt,z=new qt,ne=new qt,oe=this.vh;a.changes.each(function(ge){ge.model===E&&(ge.modelChange==="nodeDataArray"?ge.change===Js?x.add(ge.newValue):ge.change===ul&&ne.add(ge.oldValue):E.lb(ge.object)?z.add(ge.object):ge.change!==ys||E.modelData!==ge.object&&ge.propertyName!=="modelData"?ge.object!==null&&(oe&&oe.contains(ge.object)?oe.get(ge.object).each(function(Ee){E.lb(Ee)&&z.add(Ee)}):ge.object instanceof Ai||E.ri()&&E.Jc(ge.object)||AE(E,ge.object).each(function(Ee){z.add(Ee)})):b=!0)});var ue=this.il;ue.clear(),x.each(function(ge){ue.add(E.wa(ge)),y||z.add(ge)});var he=this.kl;return he.clear(),ne.each(function(ge){he.add(E.wa(ge)),y&&z.add(ge)}),a="",b&&(a+=`,
|
|
|
"modelData": `+xy(this,this.modelData)),0<ue.count&&(a+=(y?this.Yv:this.Wv)+Uf(this,ue.Fa(),!0)),0<z.count&&(a+=this.jy+Uf(this,z.Fa(),!0)),0<he.count&&(a+=(y?this.Wv:this.Yv)+Uf(this,he.Fa(),!0)),he.clear(),ue.clear(),a},We.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)&&Pn("applyIncrementalJson cannot change Model properties"),CE(this,a);var y=a.insertedNodeKeys,E=a.modifiedNodeData,b=new xr;if(Array.isArray(E))for(var x=0;x<E.length;x++){var z=E[x],ne=this.wa(z);ne!=null&&b.set(ne,z)}if(Array.isArray(y))for(x=y.length,z=0;z<x;z++){ne=y[z];var oe=this.hc(ne);oe===null&&(oe=(oe=b.get(ne))?oe:this.copyNodeData({}),this.km(oe,ne),this.xf(oe))}if(Array.isArray(E)){for(y=E.length,b=0;b<y;b++)if(x=E[b],z=this.wa(x),z=this.hc(z),z!==null){for(var ue in x)ue==="__gohashid"||ue===this.nodeKeyProperty||this.Wj()&&ue===this.nodeIsGroupProperty||this.setDataProperty(z,ue,x[ue]);this.lm(x,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(E=a.length,ue=0;ue<E;ue++)y=this.hc(a[ue]),y!==null&&this.cm(y)},We.$x=function(a,y){a.change!==tu&&Pn("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var E=a.object;return a.isTransactionFinished&&E instanceof Sl?(y===void 0&&(y=gm(this,this)),TE(this,E),a=this.Pv(E,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},We.yA=function(a,y){return this.$x(a,y)},We.np=function(a){return a===void 0&&(a=gm(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},We.toJSON=function(a){return this.np(a)},We.Zw=function(a){var y=null;if(typeof a=="string")try{y=Hn.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:Pn("Unable to modify a Model from: "+a);var E=y.incremental;typeof E!="number"&&Pn("Unable to apply non-incremental changes to Model: "+a),E!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},We.Ky=function(a){return this.Zw(a)},Ai.constructGraphLinksModel=function(){return new Ai},We=Ai.prototype,We.dm=function(a){if(Gi(a))for(var y=a.length,E=0;E<y;E++){var b=a[E];if(wr(b)){var x=E;b=this.dm(b),Array.isArray(a)?a[x]=b:Pn("Cannot replace an object in an HTMLCollection or NodeList at "+x)}}else if(wr(a)){for(y in a)if(E=a[y],wr(E)&&(E=this.dm(E),a[y]=E,y==="points"&&Array.isArray(E))){for(x=E.length%2===0,b=0;b<E.length;b++)if(typeof E[b]!="number"){x=!1;break}if(x){for(x=new Ar,b=0;b<E.length/2;b++)x.add(new xt(E[2*b],E[2*b+1]));x.freeze(),a[y]=x}}return E1(a)}return a},We.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()):Gi(a)?Uf(this,a):wr(a)?xy(this,a):typeof a=="function"?"null":a.toString()};function Uf(a,y,E){E===void 0&&(E=!1);var b=y.length;if(0>=b)return"[]";var x=new Ta;x.add("["),E&&1<b&&x.add(`
|
|
|
`);for(var z=0;z<b;z++){var ne=y[z];ne!==void 0&&(0<z&&(x.add(","),E&&x.add(`
|
|
|
`)),x.add(a.sm(ne)))}return E&&1<b&&x.add(`
|
|
|
`),x.add("]"),x.toString()}function PE(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function Lc(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function xy(a,y){var E=y;if(E instanceof xt)y={class:"go.Point",x:Lc(E.x),y:Lc(E.y)};else if(E instanceof sn)y={class:"go.Size",width:Lc(E.width),height:Lc(E.height)};else if(E instanceof Un)y={class:"go.Rect",x:Lc(E.x),y:Lc(E.y),width:Lc(E.width),height:Lc(E.height)};else if(E instanceof Bi)y={class:"go.Margin",top:Lc(E.top),right:Lc(E.right),bottom:Lc(E.bottom),left:Lc(E.left)};else if(E instanceof ci)E.sb()?y={class:"go.Spot",x:Lc(E.x),y:Lc(E.y),offsetX:Lc(E.offsetX),offsetY:Lc(E.offsetY)}:y={class:"go.Spot",enum:E.toString()};else if(E instanceof Ya){if(y={class:"go.Brush",type:E.type.name},E.type===lf?y.color=E.color:(E.type===Zh||E.type===Cd)&&(y.start=E.start,y.end=E.end,E.type===Cd&&(E.startRadius!==0&&(y.startRadius=Lc(E.startRadius)),isNaN(E.endRadius)||(y.endRadius=Lc(E.endRadius)))),E.colorStops!==null){var b={};for(E=E.colorStops.iterator;E.next();)b[E.key]=E.value;y.colorStops=b}}else E instanceof Mr?(y={class:"go.Geometry",type:E.type.name},E.startX!==0&&(y.startX=Lc(E.startX)),E.startY!==0&&(y.startY=Lc(E.startY)),E.endX!==0&&(y.endX=Lc(E.endX)),E.endY!==0&&(y.endY=Lc(E.endY)),E.spot1.D(Vs)||(y.spot1=E.spot1),E.spot2.D(eu)||(y.spot2=E.spot2),E.type===Mr.o&&(y.path=Mr.ia(E))):E instanceof Mn&&(y={class:"go.EnumValue",classType:gm(a,E.classType),name:E.name});b="{",E=!0;for(var x in y){var z=Vl(y,x);if(!PE(x,z))if(E?E=!1:b+=",",b+=a.quote(x)+":",x==="points"&&z instanceof Ar){var ne="[";for(z=z.iterator;z.next();){var oe=z.value;1<ne.length&&(ne+=","),ne+=a.sm(oe.x),ne+=",",ne+=a.sm(oe.y)}ne+="]",b+=ne}else b+=a.sm(z)}return b+"}"}function Ic(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function E1(a){if(typeof a!="object")return a;var y=a.class||"";if(y==="NaN")return NaN;if(y==="Date")return new Date(a.value);if(y.indexOf("go.")!==0)return a;y=y.substr(3);var E=a;if(y==="Point")E=new xt(Ic(a.x),Ic(a.y));else if(y==="Size")E=new sn(Ic(a.width),Ic(a.height));else if(y==="Rect")E=new Un(Ic(a.x),Ic(a.y),Ic(a.width),Ic(a.height));else if(y==="Margin")E=new Bi(Ic(a.top),Ic(a.right),Ic(a.bottom),Ic(a.left));else if(y==="Spot")typeof a.enum=="string"?E=ad(a.enum):E=new ci(Ic(a.x),Ic(a.y),Ic(a.offsetX),Ic(a.offsetY));else if(y==="Brush"){if(E=new Ya,E.type=Co(Ya,a.type),typeof a.color=="string"&&(E.color=a.color),a.start instanceof ci&&(E.start=a.start),a.end instanceof ci&&(E.end=a.end),typeof a.startRadius=="number"&&(E.startRadius=Ic(a.startRadius)),typeof a.endRadius=="number"&&(E.endRadius=Ic(a.endRadius)),a=a.colorStops,wr(a))for(var b in a)E.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(E=null,typeof a.path=="string"?E=Mr.parse(a.path):E=new Mr,E.type=Co(Mr,a.type),typeof a.startX=="number"&&(E.startX=Ic(a.startX)),typeof a.startY=="number"&&(E.startY=Ic(a.startY)),typeof a.endX=="number"&&(E.endX=Ic(a.endX)),typeof a.endY=="number"&&(E.endY=Ic(a.endY)),a.spot1 instanceof ci&&(E.spot1=a.spot1),a.spot2 instanceof ci&&(E.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=Cy(b),typeof b=="function"&&(E=Co(b,a.name)));return E}We.Pe=function(a){return this.Lt.add(a),this},We.ik=function(a){this.Lt.remove(a)},We.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,E=y.length,b=0;b<E;b++)y.M(b)(a)},We.cb=function(a,y,E,b,x,z,ne){su(this,"",a,y,E,b,x,z,ne)},We.g=function(a,y,E,b,x){su(this,"",ys,a,this,y,E,b,x)},We.Fs=function(a,y,E,b,x,z){su(this,"",ys,y,a,E,b,x,z)};function su(a,y,E,b,x,z,ne,oe,ue){oe===void 0&&(oe=null),ue===void 0&&(ue=null);var he=new ks;he.model=a,he.change=E,he.modelChange=y,he.propertyName=b,he.object=x,he.oldValue=z,he.oldParam=oe,he.newValue=ne,he.newParam=ue,a.ds(he)}Ai.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===ys){var E=a.object,b=a.propertyName,x=a.I(y);b===this.nodeKeyProperty&&this.lb(E)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),x!==void 0&&this.kb.add(x,E)),cl(E,b,x)}else a.change===Js?(E=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,wr(a)&&typeof E=="number"&&(b=this.wa(a),y?(this.Tc[E]===a&&Pa(this.Tc,E),b!==void 0&&this.kb.remove(b)):(this.Tc[E]!==a&&ls(this.Tc,E,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!Gi(b)&&a.propertyName&&(b=Vl(a.object,a.propertyName)),Gi(b)&&typeof E=="number"&&(a=a.newValue,y?Pa(b,E):ls(b,E,a))):Pn("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===ul?(E=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,wr(a)&&typeof E=="number"&&(b=this.wa(a),y?(this.Tc[E]!==a&&ls(this.Tc,E,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[E]===a&&Pa(this.Tc,E),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!Gi(b)&&a.propertyName&&(b=Vl(a.object,a.propertyName)),Gi(b)&&typeof E=="number"&&(a=a.oldValue,y?ls(b,E,a):Pa(b,E))):Pn("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==tu&&Pn("unknown ChangedEvent: "+a.toString())},Ai.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ai.prototype.eb=function(a){return this.undoManager.eb(a)},Ai.prototype.Kf=function(){return this.undoManager.Kf()},Ai.prototype.commit=function(a,y){y===void 0&&(y="");var E=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=E}},We=Ai.prototype,We.La=function(a,y){y===void 0&&(y=""),su(this,"SourceChanged",tu,y,a,null,null)},We.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=Vl(a,y),y!==void 0)){if(Hf(y))return y;Pn("Key value for node data "+a+" is not a number or a string: "+y)}}},We.km=function(a,y){if(a!==null){var E=this.Th;if(E!=="")if(this.lb(a)){var b=Vl(a,E);b!==y&&this.hc(y)===null&&(cl(a,E,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),su(this,"nodeKey",ys,E,a,b,y),typeof E=="string"&&this.La(a,E),this.jp(b,y))}else cl(a,E,y)}};function Hf(a){return typeof a=="number"||typeof a=="string"}We.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},We.hc=function(a){return a===null&&Pn("Model.findNodeDataForKey:key must not be null"),a!==void 0&&Hf(a)?this.kb.I(a):null},We.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var E=this.wa(a);if(E===void 0||this.kb.contains(E)){var b=this.bl;if(b!==null&&(E=b(this,a),E!=null&&!this.kb.contains(E))){cl(a,y,E);return}if(typeof E=="string"){for(b=2;this.kb.contains(E+b);)b++;cl(a,y,E+b)}else if(E===void 0||typeof E=="number"){for(E=-this.kb.count-1;this.kb.contains(E);)E--;cl(a,y,E)}}}}},We.xf=function(a){a!==null&&(Nr(a),this.lb(a)||NE(this,a,!0))};function NE(a,y,E){var b=a.wa(y);(b===void 0||a.kb.I(b)!==y)&&(a.$u(y),b=a.wa(y),b===void 0&&Pn("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,E&&(b=a.Tc.length,ls(a.Tc,b,y)),su(a,"nodeDataArray",Js,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}We.Fy=function(a){if(Gi(a))for(var y=a.length,E=0;E<y;E++)this.xf(a[E]);else for(a=a.iterator;a.next();)this.xf(a.value)},We.cm=function(a){a!==null&&LE(this,a,!0)};function LE(a,y,E){var b=a.wa(y);if(b!==void 0&&a.kb.remove(b),b=null,E){e:if(E=a.Tc,Array.isArray(E))b=E.indexOf(y);else{b=E.length;for(var x=0;x<b;x++)if(E[x]===y){b=x;break e}b=-1}if(0>b)return;Pa(a.Tc,b)}su(a,"nodeDataArray",ul,"nodeDataArray",a,y,null,b,null),a.qp(y)}We.nA=function(a){if(Gi(a))for(var y=a.length,E=0;E<y;E++)this.cm(a[E]);else for(a=a.iterator;a.next();)this.cm(a.value)},We.$z=function(a){if(a!==this.nodeDataArray&&Gi(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var E=this.il;E.clear();for(var b=a.length,x=0;x<b;x++){var z=a[x],ne=this.wa(z);if(ne!==void 0){E.add(ne);var oe=this.hc(ne);oe!==z&&(oe!==null?(this.Do(oe,z),this.lm(z,oe)):(z=this.cloneDeep(z),this.km(z,ne),this.xf(z)))}else ne=this.cloneDeep(z),this.xf(ne),E.add(this.wa(ne))}for(a=y.iterator;a.next();)b=a.value,E.contains(b)||(b=this.hc(b))&&this.cm(b);y.clear(),E.clear()}},We.jp=function(a,y){y!==void 0&&(a=pm(this,a),a instanceof qt&&this.Vf.add(y,a))},We.Lv=function(){},We.fm=function(){},We.em=function(){},We.qp=function(){};function ah(a,y,E){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new qt,a.Vf.add(y,b)),b.add(E)}}function sh(a,y,E){if(y!==void 0){var b=a.Vf.I(y);b instanceof qt&&(E==null?a.Vf.remove(y):(b.remove(E),b.count===0&&a.Vf.remove(y)))}}function pm(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof qt?a:null)}We.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Ai.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):B0(this,a,!0),wr(a)&&At(a),a};function B0(a,y,E){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(E=0;E<y.length;E++){var x=B0(a,y[E],a.copiesArrayObjects);b.push(x)}return At(b),b}if(E&&wr(y)){E=(E=y.constructor)?new E:{},x=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(b in y)if(b==="__gohashid")E.__gohashid=void 0;else if(b===x)E[x]=void 0;else{var z=Vl(y,b),ne=gm(a,z);ne==="GraphObject"||ne==="Diagram"||ne==="Layer"||ne==="RowColumnDefinition"||ne==="AnimationManager"||ne==="Tool"||ne==="CommandHandler"||ne==="Layout"||ne==="InputEvent"||ne==="DiagramEvent"||z instanceof Ai||z instanceof Fs||z instanceof Sl||z instanceof ks||(z=B0(a,z,!1)),cl(E,b,z)}return At(E),E}return y instanceof xt||y instanceof sn||y instanceof Un||y instanceof ci||y instanceof Bi?y.copy():y}Ai.prototype.setDataProperty=function(a,y,E){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,E);return}if(y===this.nodeCategoryProperty){this.jm(a,E);return}}else!IE&&a instanceof pn&&(IE=!0,Xo('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Xo(" Is that really your intent?"));var b=Vl(a,y);b!==E&&(cl(a,y,E),this.Fs(a,y,b,E))},We=Ai.prototype,We.set=function(a,y,E){this.setDataProperty(a,y,E)},We.Do=function(a,y){if(y){var E=this.lb(a),b;for(b in y)b==="__gohashid"||E&&b===this.nodeKeyProperty||this.setDataProperty(a,b,y[b])}},We.Ay=function(a,y){this.ts(a,-1,y)},We.ts=function(a,y,E){0>y&&(y=a.length),ls(a,y,E),su(this,"",Js,"",a,null,E,null,y)},We.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Pn("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var E=a[y];Pa(a,y),su(this,"",ul,"",a,E,null,y,null)},We.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Vl(a,y),y===void 0))return"";if(typeof y=="string")return y;Pn("getCategoryForNodeData found a non-string category for "+a+": "+y)},We.jm=function(a,y){if(a!==null){var E=this.lj;if(E!=="")if(this.lb(a)){var b=Vl(a,E);b===void 0&&(b=""),b!==y&&(cl(a,E,y),su(this,"nodeCategory",ys,E,a,b,y))}else cl(a,E,y)}},We.lm=function(a,y){this.jm(y,this.Ro(a))},We.Tl=function(){return!1},We.Wj=function(){return!1},We.ri=function(){return!1},We.xs=function(){return!1},We.Xj=function(){return!1};function wy(){return new Ai}function gm(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 gm(a,y.constructor);return typeof y}function Cy(a){return Wd[a]?Wd[a]:Hn.go!==void 0&&Hn.go[a]?Hn.go[a]:null}function Vl(a,y){if(!a||!y)return null;try{if(typeof y=="function")var E=y(a);else typeof a.getAttribute=="function"?(E=a.getAttribute(y),E===null&&(E=void 0)):E=a[y]}catch(b){}return E}function cl(a,y,E){if(a&&y)try{typeof y=="function"?y(a,E):typeof a.setAttribute=="function"?a.setAttribute(y,E):a[y]=E}catch(b){}}tr.Object.defineProperties(Ai.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===""&&Pn("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Pn("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=a,this.g("nodeKeyProperty",y,a))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(a){var y=this.bl;y!==a&&(this.bl=a,this.g("makeUniqueKeyFunction",y,a))}},nodeDataArray:{get:function(){return this.Tc},set:function(a){var y=this.Tc;if(y!==a){this.kb.clear(),this.Lv();for(var E=a.length,b=0;b<E;b++){var x=a[b];wr(x)||Pn("Model.nodeDataArray must only contain Objects, not: "+x),Nr(x)}for(this.Tc=a,b=new Ar,x=0;x<E;x++){var z=a[x],ne=this.wa(z);ne===void 0||this.kb.I(ne)!==null?b.add(z):this.kb.add(ne,z)}for(b=b.iterator;b.next();)x=b.value,this.$u(x),z=this.wa(x),z!==void 0&&this.kb.add(z,x);for(su(this,"nodeDataArray",ys,"nodeDataArray",this,y,a),y=0;y<E;y++)b=a[y],this.fm(b),this.em(b);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"}}}),Ai.prototype.setCategoryForNodeData=Ai.prototype.jm,Ai.prototype.getCategoryForNodeData=Ai.prototype.Ro,Ai.prototype.removeArrayItem=Ai.prototype.ov,Ai.prototype.insertArrayItem=Ai.prototype.ts,Ai.prototype.addArrayItem=Ai.prototype.Ay,Ai.prototype.assignAllDataProperties=Ai.prototype.Do,Ai.prototype.set=Ai.prototype.set,Ai.prototype.clearUnresolvedReferences=Ai.prototype.Qy,Ai.prototype.mergeNodeDataArray=Ai.prototype.$z,Ai.prototype.removeNodeDataCollection=Ai.prototype.nA,Ai.prototype.removeNodeData=Ai.prototype.cm,Ai.prototype.addNodeDataCollection=Ai.prototype.Fy,Ai.prototype.addNodeData=Ai.prototype.xf,Ai.prototype.makeNodeDataKeyUnique=Ai.prototype.$u,Ai.prototype.findNodeDataForKey=Ai.prototype.hc,Ai.prototype.containsNodeData=Ai.prototype.lb,Ai.prototype.setKeyForNodeData=Ai.prototype.km,Ai.prototype.getKeyForNodeData=Ai.prototype.wa,Ai.prototype.updateTargetBindings=Ai.prototype.La,Ai.prototype.commit=Ai.prototype.commit,Ai.prototype.rollbackTransaction=Ai.prototype.Kf,Ai.prototype.commitTransaction=Ai.prototype.eb,Ai.prototype.startTransaction=Ai.prototype.Ea,Ai.prototype.raiseDataChanged=Ai.prototype.Fs,Ai.prototype.raiseChanged=Ai.prototype.g,Ai.prototype.raiseChangedEvent=Ai.prototype.cb,Ai.prototype.removeChangedListener=Ai.prototype.ik,Ai.prototype.addChangedListener=Ai.prototype.Pe,Ai.prototype.writeJsonValue=Ai.prototype.sm,Ai.prototype.replaceJsonObjects=Ai.prototype.dm,Ai.prototype.applyIncrementalJSON=Ai.prototype.Ky,Ai.prototype.applyIncrementalJson=Ai.prototype.Zw,Ai.prototype.toJSON=Ai.prototype.toJSON,Ai.prototype.toJson=Ai.prototype.np,Ai.prototype.toIncrementalJSON=Ai.prototype.yA,Ai.prototype.toIncrementalJson=Ai.prototype.$x,Ai.prototype.toIncrementalData=Ai.prototype.xA,Ai.prototype.clear=Ai.prototype.clear;var IE=!1,Wd={};Ai.className="Model",Ai.fromJSON=Ai.fromJson=function(a,y){y===void 0&&(y=null);var E=null;if(typeof a=="string")try{E=Hn.JSON.parse(a)}catch(z){}else typeof a=="object"?E=a:Pn("Unable to construct a Model from: "+a);if(y===null){a=null;var b=E.class;if(typeof b=="string")try{var x=null;b.indexOf("go.")===0?(b=b.substr(3),x=Cy(b)):(x=Cy(b),x===null&&(x=Hn[b])),typeof x=="function"&&(a=new x)}catch(z){}a===null||a instanceof Ai?y=a:Pn("Unable to construct a Model of declared class: "+E.class)}return y===null&&(y=Ai.constructGraphLinksModel()),y.gp(E),y.kv(E),y},Ai.safePropertyValue=Vl,Ai.safePropertySet=cl,Wd.Brush=Ya,Wd.ChangedEvent=ks,Wd.Geometry=Mr,Wd.Margin=Bi,Wd.Panel=kr,Wd.Point=xt,Wd.Rect=Un,Wd.Size=sn,Wd.Spot=ci,Wd.Transaction=Sl,Wd.UndoManager=Fs;function Yl(a,y,E,b){At(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),E===void 0&&(E=null),this.j=-1,this.xd=null,this.xl=a,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=y,this.Im=E,b===void 0?(this.el=RE,this.wk=null):(this.el=mm,this.wk=b),this.st=new qt}Yl.prototype.copy=function(){var a=new Yl;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},We=Yl.prototype,We.qb=function(a){a.classType===Yl&&(this.mode=a)},We.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},We.freeze=function(){return this._isFrozen=!0,this},We.ka=function(){return this._isFrozen=!1,this},We.Kx=function(a){return a===void 0&&(a=null),this.mode=mm,this.backConverter=a,this},We.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},We.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function kE(a,y,E){return a=a.sourceName,a===null||a===""?y:a==="/"?E.part:a==="."?E:a===".."?E.panel:y.fb(a)}We.Mv=function(a,y,E){var b=this.sl;if(E===void 0||b===""||b===E){E=this.xl;var x=this.Im;if(x===null&&E==="")Xo("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(b!==""&&(z=Vl(y,b)),z!==void 0)if(x===null)E!==""&&cl(a,E,z);else try{if(E!==""){var ne=x(z,a);cl(a,E,ne)}else x(z,a)}catch(oe){}}}},We.sp=function(a,y,E,b){if(this.el===mm){var x=this.xl;if(E===void 0||x===E){E=this.sl;var z=this.wk,ne=a;if(x!==""&&(ne=Vl(a,x)),ne!==void 0&&!this.st.contains(a))try{this.st.add(a);var oe=b!==null?b.diagram:null,ue=oe!==null?oe.model:null;if(z===null){if(E!=="")ue!==null?ue.setDataProperty(y,E,ne):cl(y,E,ne);else if(ue!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var he=b.itemIndex,ge=b.panel.itemArray;ue.ov(ge,he),ue.ts(ge,he,ne)}}else try{if(E!==""){var Ee=z(ne,y,ue);ue!==null?ue.setDataProperty(y,E,Ee):cl(y,E,Ee)}else{var ke=z(ne,y,ue);if(ke!==void 0&&ue!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var Ve=b.itemIndex,Ze=b.panel.itemArray;ue.ov(Ze,Ve),ue.ts(Ze,Ve,ke)}}}catch(st){}}finally{this.st.remove(a)}}}},tr.Object.defineProperties(Yl.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&xi(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&xi(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&xi(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&xi(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&xi(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&xi(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&xi(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&xi(this),this.el=a}}}),Yl.prototype.updateSource=Yl.prototype.sp,Yl.prototype.updateTarget=Yl.prototype.Mv,Yl.prototype.ofModel=Yl.prototype.dA,Yl.prototype.ofObject=Yl.prototype.cp,Yl.prototype.makeTwoWay=Yl.prototype.Kx;var b1="Binding",RE=new Mn(Yl,"OneWay",1),mm=new Mn(Yl,"TwoWay",2);Yl.className="Binding",Yl.parseEnum=function(a,y){return function(E){return E=Co(a,E),E===null?y:E}},Yl.toString=ba,Yl.OneWay=RE,Yl.TwoWay=mm;function Ba(a,y,E){Ai.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new qt,this.wb=new xr,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&&(Gi(a)?this.nodeDataArray=a:E=a),E&&(Object.assign(this,E),a=E.Changed)&&(delete this.Changed,this.Pe(a))}vn(Ba,Ai),Ba.constructGraphLinksModel=Ai.constructGraphLinksModel,Ba.prototype.cloneProtected=function(a){Ai.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},We=Ba.prototype,We.clear=function(){Ai.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},We.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<a){y+=`
|
|
|
node data:`,a=this.nodeDataArray;var E=a.length,b;for(b=0;b<E;b++){var x=a[b];y+=" "+this.wa(x)+":"+ba(x)}for(y+=`
|
|
|
link data:`,a=this.linkDataArray,E=a.length,b=0;b<E;b++)x=a[b],y+=" "+bd(this,x,!0)+"-->"+bd(this,x,!1)}return y},We.Qv=function(a,y){this.linkKeyProperty===""&&Pn("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var E=Ai.prototype.Qv.call(this,a,y),b=this,x=new qt,z=new qt,ne=new qt,oe=this.vh;a.changes.each(function(ge){ge.model===b&&(ge.modelChange==="linkDataArray"?ge.change===Js?x.add(ge.newValue):ge.change===ul&&ne.add(ge.oldValue):b.Jc(ge.object)?z.add(ge.object):ge.object!==null&&(ge.object!==null&&oe&&oe.contains(ge.object)?oe.get(ge.object).each(function(Ee){b.Jc(Ee)&&z.add(Ee)}):ge.object instanceof Ai||b.lb(ge.object)||ME(b,ge.object).each(function(Ee){z.add(Ee)})))});var ue=this.il;ue.clear(),x.each(function(ge){ue.add(b.Ac(ge)),y||z.add(ge)});var he=this.kl;return he.clear(),ne.each(function(ge){he.add(b.Ac(ge)),y&&z.add(ge)}),a=b.cloneDeep(z.Fa()),0<ue.count&&(E===null&&(E={}),y?E.removedLinkKeys=ue.Fa():E.insertedLinkKeys=ue.Fa()),0<a.length&&(E===null&&(E={}),E.modifiedLinkData=a),0<he.count&&(E===null&&(E={}),y?E.insertedLinkKeys=he.Fa():E.removedLinkKeys=he.Fa()),he.clear(),ue.clear(),E},We.rm=function(){var a=Ai.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},We.gp=function(a){Ai.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)},We.Rv=function(){var a=Ai.prototype.Rv.call(this),y=`,
|
|
|
"linkDataArray": `+Uf(this,this.linkDataArray,!0);return a+y},We.kv=function(a){Ai.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function ME(a,y){for(var E=new qt,b=0;b<a.linkDataArray.length;b++){var x=a.linkDataArray[b];F0(a,y,x,x,E)}return E}We.Pv=function(a,y){this.linkKeyProperty===""&&Pn("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var E=Ai.prototype.Pv.call(this,a,y),b=this,x=new qt,z=new qt,ne=new qt,oe=this.vh;a.changes.each(function(ge){ge.model===b&&(ge.modelChange==="linkDataArray"?ge.change===Js?x.add(ge.newValue):ge.change===ul&&ne.add(ge.oldValue):b.Jc(ge.object)?z.add(ge.object):ge.object!==null&&(ge.object!==null&&oe&&oe.contains(ge.object)?oe.get(ge.object).each(function(Ee){b.Jc(Ee)&&z.add(Ee)}):ge.object instanceof Ai||b.lb(ge.object)||ME(b,ge.object).each(function(Ee){z.add(Ee)})))});var ue=this.il;ue.clear(),x.each(function(ge){ue.add(b.Ac(ge)),y||z.add(ge)});var he=this.kl;return he.clear(),ne.each(function(ge){he.add(b.Ac(ge)),y&&z.add(ge)}),a=E,0<ue.count&&(a+=(y?this.Xv:this.Vv)+Uf(this,ue.Fa(),!0)),0<z.count&&(a+=this.iy+Uf(this,z.Fa(),!0)),0<he.count&&(a+=(y?this.Vv:this.Xv)+Uf(this,he.Fa(),!0)),he.clear(),ue.clear(),a},We.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)&&Pn("applyIncrementalJson cannot change Model properties"),Ai.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var E=y.length,b=0;b<E;b++){var x=y[b],z=this.jh(x);z===null&&(z=this.Jo({}),this.Ks(z,x),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(E=y.length,b=0;b<E;b++)if(x=y[b],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]);FE(this,x,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(ne=a.length,y=0;y<ne;y++)E=this.jh(a[y]),E!==null&&this.bm(E)},Ba.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===ys){var E=a.object,b=a.propertyName;if(b===this.linkKeyProperty&&this.Jc(E)){var x=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),x!==void 0&&this.wb.add(x,E),cl(E,b,x);return}}else if(a.change===Js){if(E=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,wr(a)&&typeof E=="number"&&(b=this.Ac(a),y?(this.$f.remove(a),this.md[E]===a&&this.md.splice(E,1),b!==void 0&&this.wb.remove(b)):(this.$f.add(a),this.md[E]!==a&&this.md.splice(E,0,a),b!==void 0&&this.wb.add(b,a)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof E=="number"&&(y?(E=b.indexOf(a.newValue),0<=E&&b.splice(E,1)):0>b.indexOf(a.newValue)&&b.splice(E,0,a.newValue));return}}else if(a.change===ul){if(E=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,wr(a)&&typeof E=="number"&&(b=this.Ac(a),y?(this.$f.add(a),this.md[E]!==a&&this.md.splice(E,0,a),b!==void 0&&this.wb.add(b,a)):(this.$f.remove(a),this.md[E]===a&&this.md.splice(E,1),b!==void 0&&this.wb.remove(b)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof E=="number"&&(y?0>b.indexOf(a.newValue)&&b.splice(E,0,a.newValue):(E=b.indexOf(a.newValue),0<=E&&b.splice(E,1)));return}}Ai.prototype.changeState.call(this,a,y)}},We=Ba.prototype,We.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var E=this.hc(a);E===null&&(E=this.copyNodeData(y),cl(E,this.nodeKeyProperty,a),this.xf(E))}return a}},We.yx=function(a){return bd(this,a,!0)},We.wv=function(a,y){Cg(this,a,y,!0)},We.Bx=function(a){return bd(this,a,!1)},We.Bv=function(a,y){Cg(this,a,y,!1)};function bd(a,y,E){if(y!==null&&(a=E?a.lf:a.mf,a!==""&&(a=Vl(y,a),a!==void 0))){if(Hf(a))return a;Pn((E?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Cg(a,y,E,b){if(E===null&&(E=void 0),y!==null){var x=b?a.lf:a.mf;if(x!=="")if(E=a.Vl(E),a.Jc(y)){var z=Vl(y,x);z!==E&&(sh(a,z,y),cl(y,x,E),a.hc(E)===null&&ah(a,E,y),su(a,b?"linkFromKey":"linkToKey",ys,x,y,z,E),typeof x=="string"&&a.La(y,x))}else cl(y,x,E)}}We.zx=function(a){return _0(this,a,!0)},We.xv=function(a,y){Tg(this,a,y,!0)},We.Cx=function(a){return _0(this,a,!1)},We.Cv=function(a,y){Tg(this,a,y,!1)};function _0(a,y,E){return y===null||(a=E?a.ej:a.fj,a==="")?"":(y=Vl(y,a),y===void 0?"":y)}function Tg(a,y,E,b){if(y!==null){var x=b?a.ej:a.fj;if(x!=="")if(a.Jc(y)){var z=Vl(y,x);z===void 0&&(z=""),z!==E&&(cl(y,x,E),su(a,b?"linkFromPortId":"linkToPortId",ys,x,y,z,E),typeof x=="string"&&a.La(y,x))}else cl(y,x,E)}}We.Ef=function(a){if(a===null)return U0;var y=this.je;return y===""?U0:(a=Vl(a,y),a===void 0?U0:a)},We.Ls=function(a,y){if(a!==null){var E=this.je;if(E!=="")if(this.Jc(a)){var b=Vl(a,E);if(b===void 0&&(b=U0),b!==y){if(Array.isArray(b))for(var x=b.length,z=0;z<x;z++)sh(this,b[z],a);for(cl(a,E,y),x=y.length,z=0;z<x;z++){var ne=y[z];this.hc(ne)===null&&ah(this,ne,a)}su(this,"linkLabelKeys",ys,E,a,b,y),typeof E=="string"&&this.La(a,E)}}else cl(a,E,y)}},We.Bu=function(a,y){if(y!=null&&a!==null){var E=this.je;if(E!==""){var b=Vl(a,E);if(b===void 0)E=[],E.push(y),this.Ls(a,E);else if(Array.isArray(b)){var x=b.indexOf(y);0<=x||(x=b.length,b.push(y),this.Jc(a)&&(this.hc(y)===null&&ah(this,y,a),su(this,"linkLabelKeys",Js,E,a,null,y,null,x)))}else Pn(E+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},We.Qx=function(a,y){if(y!=null&&a!==null){var E=this.je;if(E!==""){var b=Vl(a,E);if(Array.isArray(b)){var x=b.indexOf(y);0>x||(b.splice(x,1),this.Jc(a)&&(sh(this,y,a),su(this,"linkLabelKeys",ul,E,a,y,null,x,null)))}else b!==void 0&&Pn(E+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},We.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Vl(a,y),y!==void 0)){if(Hf(y))return y;Pn("Key value for link data "+a+" is not a number or a string: "+y)}}},We.Ks=function(a,y){if(a!==null){var E=this.Jh;if(E!=="")if(this.Jc(a)){var b=Vl(a,E);b!==y&&this.jh(y)===null&&(cl(a,E,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),su(this,"linkKey",ys,E,a,b,y),typeof E=="string"&&this.La(a,E))}else cl(a,E,y)}},We.jh=function(a){return a===null&&Pn("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Hf(a)?this.wb.I(a):null},We.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var E=this.Ac(a);if(E===void 0||this.wb.contains(E)){var b=this.cl;if(b!==null&&(E=b(this,a),E!=null&&!this.wb.contains(E))){cl(a,y,E);return}if(typeof E=="string"){for(b=2;this.wb.contains(E+b);)b++;cl(a,y,E+b)}else if(E===void 0||typeof E=="number"){for(E=-this.wb.count-1;this.wb.contains(E);)E--;cl(a,y,E)}}}}},We.Jc=function(a){return a===null?!1:this.$f.contains(a)},We.fi=function(a){a!==null&&(Nr(a),this.Jc(a)||OE(this,a,!0))};function OE(a,y,E){if(a.linkKeyProperty!==""){var b=a.Ac(y);if(b!==void 0&&a.wb.I(b)===y)return;a.Bs(y),b=a.Ac(y),b===void 0&&Pn("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(b,y)}a.$f.add(y),b=null,E&&(b=a.md.length,a.md.splice(b,0,y)),su(a,"linkDataArray",Js,"linkDataArray",a,null,y,null,b),Ty(a,y)}We.Ey=function(a){if(Array.isArray(a))for(var y=a.length,E=0;E<y;E++)this.fi(a[E]);else for(a=a.iterator;a.next();)this.fi(a.value)},We.bm=function(a){a!==null&&DE(this,a,!0)};function DE(a,y,E){a.$f.remove(y);var b=a.Ac(y);if(b!==void 0&&a.wb.remove(b),b=null,E){if(b=a.md.indexOf(y),0>b)return;a.md.splice(b,1)}if(su(a,"linkDataArray",ul,"linkDataArray",a,y,null,b,null),E=bd(a,y,!0),sh(a,E,y),E=bd(a,y,!1),sh(a,E,y),b=a.Ef(y),Array.isArray(b))for(var x=b.length,z=0;z<x;z++)E=b[z],sh(a,E,y)}We.lA=function(a){if(Array.isArray(a))for(var y=a.length,E=0;E<y;E++)this.bm(a[E]);else for(a=a.iterator;a.next();)this.bm(a.value)},We.Zz=function(a){if(this.linkKeyProperty===""&&Pn("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&Gi(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var E=this.il;E.clear();for(var b=a.length,x=0;x<b;x++){var z=a[x],ne=this.Ac(z);if(ne!==void 0){E.add(ne);var oe=this.jh(ne);oe!==z&&(oe!==null?(this.Do(oe,z),FE(this,z,oe)):(z=this.cloneDeep(z),this.Ks(z,ne),this.fi(z)))}else ne=this.cloneDeep(z),this.fi(ne),E.add(this.Ac(ne))}for(a=y.iterator;a.next();)b=a.value,E.contains(b)||(b=this.jh(b))&&this.bm(b);y.clear(),E.clear()}};function Ty(a,y){var E=bd(a,y,!0);E=a.Vl(E),a.hc(E)===null&&ah(a,E,y),E=bd(a,y,!1),E=a.Vl(E),a.hc(E)===null&&ah(a,E,y);var b=a.Ef(y);if(Array.isArray(b))for(var x=b.length,z=0;z<x;z++)E=b[z],a.hc(E)===null&&ah(a,E,y)}We.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):B0(this,a,!0),wr(a)&&(At(a),this.lf!==""&&cl(a,this.lf,void 0),this.mf!==""&&cl(a,this.mf,void 0),this.je!==""&&cl(a,this.je,[])),a},We.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!Vl(a,y)},We.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=Vl(a,y),y!==void 0)){if(Hf(y))return y;Pn("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},We.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var E=this.Je;if(E!=="")if(this.lb(a)){var b=Vl(a,E);b!==y&&(sh(this,b,a),cl(a,E,y),this.hc(y)===null&&ah(this,y,a),su(this,"nodeGroupKey",ys,E,a,b,y),typeof E=="string"&&this.La(a,E))}else cl(a,E,y)}},Ba.prototype.copyNodeData=function(a){return a===null?null:(a=Ai.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||Vl(a,this.Je)===void 0||cl(a,this.Je,void 0),a)},Ba.prototype.setDataProperty=function(a,y,E){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,E);return}if(y===this.nodeCategoryProperty){this.jm(a,E);return}if(y===this.nodeGroupKeyProperty){this.mp(a,E);return}}else if(this.Jc(a)){if(y===this.linkFromKeyProperty){Cg(this,a,E,!0);return}if(y===this.linkToKeyProperty){Cg(this,a,E,!1);return}if(y===this.linkFromPortIdProperty){Tg(this,a,E,!0);return}if(y===this.linkToPortIdProperty){Tg(this,a,E,!1);return}if(y===this.linkKeyProperty){this.Ks(a,E);return}if(y===this.linkCategoryProperty){this.lp(a,E);return}if(y===this.linkLabelKeysProperty){this.Ls(a,E);return}}var b=Vl(a,y);b!==E&&(cl(a,y,E),this.Fs(a,y,b,E))},We=Ba.prototype,We.Do=function(a,y){if(y){var E=this.lb(a),b=this.Jc(a),x;for(x in y)x==="__gohashid"||E&&x===this.nodeKeyProperty||E&&x===this.nodeIsGroupProperty&&Vl(a,x)===y[x]||b&&x===this.linkKeyProperty||this.setDataProperty(a,x,y[x])}},We.jp=function(a,y){Ai.prototype.jp.call(this,a,y);for(var E=this.kb.iterator;E.next();)this.qv(E.value,a,y);for(E=this.$f.iterator;E.next();){var b=E.value,x=a,z=y;if(bd(this,b,!0)===x){var ne=this.lf;cl(b,ne,z),su(this,"linkFromKey",ys,ne,b,x,z),typeof ne=="string"&&this.La(b,ne)}if(bd(this,b,!1)===x&&(ne=this.mf,cl(b,ne,z),su(this,"linkToKey",ys,ne,b,x,z),typeof ne=="string"&&this.La(b,ne)),ne=this.Ef(b),Array.isArray(ne))for(var oe=ne.length,ue=this.je,he=0;he<oe;he++)ne[he]===x&&(ne[he]=z,su(this,"linkLabelKeys",Js,ue,b,x,z,he,he))}},We.qv=function(a,y,E){if(this.lh(a)===y){var b=this.Je;cl(a,b,E),su(this,"nodeGroupKey",ys,b,a,y,E),typeof b=="string"&&this.La(a,b)}},We.Lv=function(){Ai.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,E=0;E<y;E++)Ty(this,a[E])},We.fm=function(a){Ai.prototype.fm.call(this,a),a=this.wa(a);var y=pm(this,a);if(y!==null){var E=Oi();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var x=this.Je;su(this,"nodeGroupKey",ys,x,b,a,a),typeof x=="string"&&this.La(b,x),E.push(b)}}else if(bd(this,b,!0)===a&&(x=this.lf,su(this,"linkFromKey",ys,x,b,a,a),typeof x=="string"&&this.La(b,x),E.push(b)),bd(this,b,!1)===a&&(x=this.mf,su(this,"linkToKey",ys,x,b,a,a),typeof x=="string"&&this.La(b,x),E.push(b)),x=this.Ef(b),Array.isArray(x))for(var z=x.length,ne=this.je,oe=0;oe<z;oe++)x[oe]===a&&(su(this,"linkLabelKeys",Js,ne,b,a,a,oe,oe),E.push(b))}for(y=0;y<E.length;y++)sh(this,a,E[y]);Yi(E)}},We.em=function(a){Ai.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&ah(this,y,a)},We.qp=function(a){Ai.prototype.qp.call(this,a);var y=this.lh(a);sh(this,y,a)},We.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=Vl(a,y),y===void 0))return"";if(typeof y=="string")return y;Pn("getCategoryForLinkData found a non-string category for "+a+": "+y)},Ba.prototype.getLinkCategoryForData=function(a){return this.ps(a)},Ba.prototype.lp=function(a,y){if(a!==null){var E=this.dj;if(E!=="")if(this.Jc(a)){var b=Vl(a,E);b===void 0&&(b=""),b!==y&&(cl(a,E,y),su(this,"linkCategory",ys,E,a,b,y),typeof E=="string"&&this.La(a,E))}else cl(a,E,y)}},Ba.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},We=Ba.prototype,We.lm=function(a,y){Ai.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function FE(a,y,E){a.lp(E,a.ps(y)),a.wv(E,a.yx(y)),a.Bv(E,a.Bx(y)),a.Ls(E,a.Ef(y)),a.xv(E,a.zx(y)),a.Cv(E,a.Cx(y))}We.Wj=function(){return!0},We.ri=function(){return!0},We.xs=function(){return!0},We.Xj=function(){return!0},tr.Object.defineProperties(Ba.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){var y=this.Ri;y!==a&&(this.Ri=a,this.g("archetypeNodeData",y,a))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(a){var y=this.lf;y!==a&&(this.lf=a,this.g("linkFromKeyProperty",y,a))}},linkToKeyProperty:{get:function(){return this.mf},set:function(a){var y=this.mf;y!==a&&(this.mf=a,this.g("linkToKeyProperty",y,a))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(a){var y=this.ej;y!==a&&(this.ej=a,this.g("linkFromPortIdProperty",y,a))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(a){var y=this.fj;y!==a&&(this.fj=a,this.g("linkToPortIdProperty",y,a))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(a){var y=this.je;y!==a&&(this.je=a,this.g("linkLabelKeysProperty",y,a))}},linkDataArray:{get:function(){return this.md},set:function(a){var y=this.md;if(y!==a){this.wb.clear();for(var E=a.length,b=0;b<E;b++){var x=a[b];wr(x)||Pn("GraphLinksModel.linkDataArray must only contain Objects, not: "+x),Nr(x)}if(this.md=a,this.linkKeyProperty!==""){for(b=new Ar,x=0;x<E;x++){var z=a[x],ne=this.Ac(z);ne===void 0||this.wb.I(ne)!==null?b.add(z):this.wb.add(ne,z)}for(b=b.iterator;b.next();)x=b.value,this.Bs(x),z=this.Ac(x),z!==void 0&&this.wb.add(z,x)}for(b=new qt,x=0;x<E;x++)b.add(a[x]);for(this.$f=b,su(this,"linkDataArray",ys,"linkDataArray",this,y,a),y=0;y<E;y++)Ty(this,a[y])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(a){var y=this.Jh;if(y!==a){this.Jh=a,this.wb.clear();for(var E=this.linkDataArray.length,b=0;b<E;b++){var x=this.linkDataArray[b],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"}}}),Ba.prototype.setCategoryForLinkData=Ba.prototype.lp,Ba.prototype.getCategoryForLinkData=Ba.prototype.ps,Ba.prototype.assignAllDataProperties=Ba.prototype.Do,Ba.prototype.setGroupKeyForNodeData=Ba.prototype.mp,Ba.prototype.getGroupKeyForNodeData=Ba.prototype.lh,Ba.prototype.isGroupForNodeData=Ba.prototype.Yu,Ba.prototype.copyLinkData=Ba.prototype.Jo,Ba.prototype.mergeLinkDataArray=Ba.prototype.Zz,Ba.prototype.removeLinkDataCollection=Ba.prototype.lA,Ba.prototype.removeLinkData=Ba.prototype.bm,Ba.prototype.addLinkDataCollection=Ba.prototype.Ey,Ba.prototype.addLinkData=Ba.prototype.fi,Ba.prototype.containsLinkData=Ba.prototype.Jc,Ba.prototype.makeLinkDataKeyUnique=Ba.prototype.Bs,Ba.prototype.findLinkDataForKey=Ba.prototype.jh,Ba.prototype.setKeyForLinkData=Ba.prototype.Ks,Ba.prototype.getKeyForLinkData=Ba.prototype.Ac,Ba.prototype.removeLabelKeyForLinkData=Ba.prototype.Qx,Ba.prototype.addLabelKeyForLinkData=Ba.prototype.Bu,Ba.prototype.setLabelKeysForLinkData=Ba.prototype.Ls,Ba.prototype.getLabelKeysForLinkData=Ba.prototype.Ef,Ba.prototype.setToPortIdForLinkData=Ba.prototype.Cv,Ba.prototype.getToPortIdForLinkData=Ba.prototype.Cx,Ba.prototype.setFromPortIdForLinkData=Ba.prototype.xv,Ba.prototype.getFromPortIdForLinkData=Ba.prototype.zx,Ba.prototype.setToKeyForLinkData=Ba.prototype.Bv,Ba.prototype.getToKeyForLinkData=Ba.prototype.Bx,Ba.prototype.setFromKeyForLinkData=Ba.prototype.wv,Ba.prototype.getFromKeyForLinkData=Ba.prototype.yx,Ba.prototype.clear=Ba.prototype.clear;var U0=Object.freeze([]);Ba.className="GraphLinksModel",Wd.GraphLinksModel=Ba,Ai.constructGraphLinksModel=Ai.constructGraphLinksModel=function(){return new Ba},Ai.initDiagramModel=wy=function(){return new Ba};function kc(a,y){Ai.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(Gi(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}vn(kc,Ai),kc.constructGraphLinksModel=Ai.constructGraphLinksModel,kc.prototype.cloneProtected=function(a){Ai.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},We=kc.prototype,We.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" TreeModel";if(0<a){y+=`
|
|
|
node data:`,a=this.nodeDataArray;for(var E=a.length,b=0;b<E;b++){var x=a[b];y+=" "+this.wa(x)+":"+ba(x)}}return y},We.rm=function(){var a=Ai.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},We.gp=function(a){Ai.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},We.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Pn("applyIncrementalJson cannot change Model properties"),Ai.prototype.fp.call(this,a)},We.Vl=function(a){return a},We.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=Vl(a,y),y!==void 0)){if(Hf(y))return y;Pn("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},We.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var E=this.Ke;if(E!=="")if(y=this.Vl(y),this.lb(a)){var b=Vl(a,E);b!==y&&(sh(this,b,a),cl(a,E,y),this.hc(y)===null&&ah(this,y,a),su(this,"nodeParentKey",ys,E,a,b,y),typeof E=="string"&&this.La(a,E))}else cl(a,E,y)}},We.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=Vl(a,y),y===void 0)?"":typeof y=="string"?y:(Pn("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},kc.prototype.getLinkCategoryForData=function(a){return this.ss(a)},kc.prototype.Ms=function(a,y){if(a!==null){var E=this.nj;if(E!=="")if(this.lb(a)){var b=Vl(a,E);b===void 0&&(b=""),b!==y&&(cl(a,E,y),su(this,"parentLinkCategory",ys,E,a,b,y),typeof E=="string"&&this.La(a,E))}else cl(a,E,y)}},kc.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},kc.prototype.copyNodeData=function(a){return a===null?null:(a=Ai.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||Vl(a,this.Ke)===void 0||cl(a,this.Ke,void 0),a)},kc.prototype.setDataProperty=function(a,y,E){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,E);return}if(y===this.nodeCategoryProperty){this.jm(a,E);return}if(y===this.nodeParentKeyProperty){this.qe(a,E);return}}var b=Vl(a,y);b!==E&&(cl(a,y,E),this.Fs(a,y,b,E))},We=kc.prototype,We.jp=function(a,y){Ai.prototype.jp.call(this,a,y);for(var E=this.kb.iterator;E.next();)this.qv(E.value,a,y)},We.qv=function(a,y,E){if(this.mh(a)===y){var b=this.Ke;cl(a,b,E),su(this,"nodeParentKey",ys,b,a,y,E),typeof b=="string"&&this.La(a,b)}},We.fm=function(a){Ai.prototype.fm.call(this,a),a=this.wa(a);var y=pm(this,a);if(y!==null){var E=Oi();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var x=this.Ke;su(this,"nodeParentKey",ys,x,b,a,a),typeof x=="string"&&this.La(b,x),E.push(b)}}for(y=0;y<E.length;y++)sh(this,a,E[y]);Yi(E)}},We.em=function(a){Ai.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&ah(this,y,a)},We.qp=function(a){Ai.prototype.qp.call(this,a);var y=this.mh(a);sh(this,y,a)},We.lm=function(a,y){Ai.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},We.Tl=function(){return!0},We.xs=function(){return!0},tr.Object.defineProperties(kc.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"}}}),kc.prototype.setParentLinkCategoryForNodeData=kc.prototype.Ms,kc.prototype.getParentLinkCategoryForNodeData=kc.prototype.ss,kc.prototype.setParentKeyForNodeData=kc.prototype.qe,kc.prototype.getParentKeyForNodeData=kc.prototype.mh,kc.className="TreeModel",Wd.TreeModel=kc;function Cl(a){gl.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=Kd,this.Ti=0,this.Zv=new xt,this.Jp=this.me=0,this.Xr=new Em,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=Kd,this.K=Rc,this.nd=Pg,this.hd=vy,this.tf=6,this.Nn=K0,a&&Object.assign(this,a)}vn(Cl,gl),Cl.prototype.cloneProtected=function(a){gl.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},Cl.prototype.qb=function(a){a.classType===Cl?a===V0||a===W0||a===G0||a===z0||a===Pg?this.sorting=a:a===fp||a===Ag||a===Rc||a===Gf?this.direction=a:a===mf||a===jf||a===Kd||a===Yd?this.arrangement=a:(a===Hp||a===K0)&&(this.nodeDiameterFormula=a):gl.prototype.qb.call(this,a)},Cl.prototype.createNetwork=function(){return new Ng(this)},Cl.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 Ar;y.addAll(a.iterator),a=new Ar;var E=new Ar,b=this.sort(y),x,z,ne=this.Jp,oe=this.arrangement,ue=this.nodeDiameterFormula,he=this.radius;(!isFinite(he)||0>=he)&&(he=NaN);var ge=this.aspectRatio;(!isFinite(ge)||0>=ge)&&(ge=1);var Ee=this.startAngle;isFinite(Ee)||(Ee=0);var ke=this.sweepAngle;if((!isFinite(ke)||360<ke||1>ke)&&(ke=360),y=this.spacing,isFinite(y)||(y=NaN),oe===Yd&&ue===Hp?oe=Kd:oe===Yd&&ue!==Hp&&(oe=this.arrangement),(this.direction===fp||this.direction===Ag)&&this.sorting!==Pg){for(ue=0;!(ue>=b.length)&&(a.add(b.M(ue)),!(ue+1>=b.length));ue+=2)E.add(b.M(ue+1));this.direction===fp?(this.arrangement===Yd&&a.reverse(),b=new Ar,b.addAll(a),b.addAll(E)):(this.arrangement===Yd&&E.reverse(),b=new Ar,b.addAll(E),b.addAll(a))}ue=b.length;for(var Ve=z=x=0;Ve<b.length;Ve++){var Ze=Ee+ke*z*(this.direction===Rc?1:-1)/ue,st=b.M(Ve).diameter;isNaN(st)&&(st=zf(b.M(Ve),Ze)),360>ke&&(Ve===0||Ve===b.length-1)&&(st/=2),x+=st,z++}if(isNaN(he)||oe===Yd){if(isNaN(y)&&(y=6),oe!==Kd&&oe!==Yd){for(z=-1/0,ne=0;ne<ue;ne++)Ve=b.M(ne),x=b.M(ne===ue-1?0:ne+1),isNaN(Ve.diameter)&&zf(Ve,0),isNaN(x.diameter)&&zf(x,0),z=Math.max(z,(Ve.diameter+x.diameter)/2);ne=z+y,oe===mf?he=(z+y)/(2*Math.PI/ue):he=H0(this,ne*(360<=ke?ue:ue-1),ge,Ee*Math.PI/180,ke*Math.PI/180)}else he=H0(this,x+(360<=ke?ue:ue-1)*(oe!==Yd?y:1.6*y),ge,Ee*Math.PI/180,ke*Math.PI/180);z=he*ge}else if(z=he*ge,Ve=Ay(this,he,z,Ee*Math.PI/180,ke*Math.PI/180),isNaN(y))(oe===Kd||oe===Yd)&&(y=(Ve-x)/(360<=ke?ue:ue-1));else if(oe===Kd||oe===Yd)Ve=(Ve-x)/(360<=ke?ue:ue-1),Ve<y?(he=H0(this,x+y*(360<=ke?ue:ue-1),ge,Ee*Math.PI/180,ke*Math.PI/180),z=he*ge):y=Ve;else{for(ne=-1/0,x=0;x<ue;x++)Ze=b.M(x),st=b.M(x===ue-1?0:x+1),isNaN(Ze.diameter)&&zf(Ze,0),isNaN(st.diameter)&&zf(st,0),ne=Math.max(ne,(Ze.diameter+st.diameter)/2);ne+=y,x=H0(this,ne*(360<=ke?ue:ue-1),ge,Ee*Math.PI/180,ke*Math.PI/180),x>he?(he=x,z=he*ge):ne=Ve/(360<=ke?ue:ue-1)}if(this.kw=oe,this.lc=he,this.Zm=ge,this.lw=Ee,this.Wp=ke,this.Ti=y,this.me=z,this.Jp=ne,y=b,b=this.kw,oe=this.lc,he=this.lw,ge=this.Wp,Ee=this.Ti,ke=this.me,ue=this.Jp,this.direction!==fp&&this.direction!==Ag||b!==Yd)if(this.direction===fp||this.direction===Ag){switch(ne=0,b){case jf:ne=180*j0(this,oe,ke,he,ue)/Math.PI;break;case Kd:ue=y=0,ne=a.first(),ne!==null&&(y=zf(ne,Math.PI/2)),ne=E.first(),ne!==null&&(ue=zf(ne,Math.PI/2)),ne=180*j0(this,oe,ke,he,Ee+(y+ue)/2)/Math.PI;break;case mf:ne=ge/y.length}if(this.direction===fp){switch(b){case jf:Sm(this,a,he,Gf);break;case Kd:ym(this,a,he,Gf);break;case mf:vm(this,a,ge/2,he,Gf)}switch(b){case jf:Sm(this,E,he+ne,Rc);break;case Kd:ym(this,E,he+ne,Rc);break;case mf:vm(this,E,ge/2,he+ne,Rc)}}else{switch(b){case jf:Sm(this,E,he,Gf);break;case Kd:ym(this,E,he,Gf);break;case mf:vm(this,E,ge/2,he,Gf)}switch(b){case jf:Sm(this,a,he+ne,Rc);break;case Kd:ym(this,a,he+ne,Rc);break;case mf:vm(this,a,ge/2,he+ne,Rc)}}}else switch(b){case jf:Sm(this,y,he,this.direction);break;case Kd:ym(this,y,he,this.direction);break;case mf:vm(this,y,ge,he,this.direction);break;case Yd:BE(this,y,ge,he,this.direction)}else BE(this,y,ge,he-ge/2,Rc)}this.updateParts(),this.network=null,this.isValidLayout=!0};function vm(a,y,E,b,x){var z=a.Wp,ne=a.lc;a=a.me,b=b*Math.PI/180,E=E*Math.PI/180;for(var oe=y.length,ue=0;ue<oe;ue++){var he=b+(x===Rc?ue*E/(360<=z?oe:oe-1):-(ue*E)/oe),ge=y.M(ue),Ee=ne*Math.tan(he)/a;Ee=Math.sqrt((ne*ne+a*a*Ee*Ee)/(1+Ee*Ee)),ge.centerX=Ee*Math.cos(he),ge.centerY=Ee*Math.sin(he),ge.actualAngle=180*he/Math.PI}}function ym(a,y,E,b){var x=a.lc,z=a.me,ne=a.Ti;E=E*Math.PI/180;for(var oe=y.length,ue=0;ue<oe;ue++){var he=y.M(ue),ge=y.M(ue===oe-1?0:ue+1),Ee=z*Math.sin(E);he.centerX=x*Math.cos(E),he.centerY=Ee,he.actualAngle=180*E/Math.PI,isNaN(he.diameter)&&zf(he,0),isNaN(ge.diameter)&&zf(ge,0),he=j0(a,x,z,b===Rc?E:-E,(he.diameter+ge.diameter)/2+ne),E+=b===Rc?he:-he}}function Sm(a,y,E,b){var x=a.lc,z=a.me,ne=a.Jp;E=E*Math.PI/180;for(var oe=y.length,ue=0;ue<oe;ue++){var he=y.M(ue);he.centerX=x*Math.cos(E),he.centerY=z*Math.sin(E),he.actualAngle=180*E/Math.PI,he=j0(a,x,z,b===Rc?E:-E,ne),E+=b===Rc?he:-he}}function BE(a,y,E,b,x){var z=a.Wp;if(a.mj=0,a.Xr=new Em,360>E){for(z=b+(x===Rc?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,UE(a,y,E,b,x)}else _E(a,y,E,b,x);a.Xr.commit(y)}function _E(a,y,E,b,x){var z=a.lc,ne=a.Ti,oe=a.Zm,ue=z*Math.cos(b*Math.PI/180),he=a.me*Math.sin(b*Math.PI/180),ge=y.Fa();if(ge.length===3)ge[0].centerX=z,ge[0].centerY=0,ge[1].centerX=ge[0].centerX-ge[0].width/2-ge[1].width/2-ne,ge[1].y=ge[0].y,ge[2].centerX=(ge[0].centerX+ge[1].centerX)/2,ge[2].y=ge[0].y-ge[2].height-ne;else if(ge.length===4)ge[0].centerX=z,ge[0].centerY=0,ge[2].centerX=-ge[0].centerX,ge[2].centerY=ge[0].centerY,ge[1].centerX=0,ge[1].y=Math.min(ge[0].y,ge[2].y)-ge[1].height-ne,ge[3].centerX=0,ge[3].y=Math.max(ge[0].y+ge[0].height+ne,ge[2].y+ge[2].height+ne);else{z=xt.alloc();for(var Ee=0;Ee<ge.length&&(ge[Ee].centerX=ue,ge[Ee].centerY=he,!(Ee>=ge.length-1));Ee++)HE(a,ue,he,ge,Ee,x,z)||jE(a,ue,he,ge,Ee,x,z),ue=z.x,he=z.y;if(xt.free(z),a.mj++,!(23<a.mj)){ue=ge[0].centerX,he=ge[0].centerY,z=ge[ge.length-1].centerX,Ee=ge[ge.length-1].centerY;var ke=Math.abs(ue-z)-((ge[0].width+ge[ge.length-1].width)/2+ne),Ve=Math.abs(he-Ee)-((ge[0].height+ge[ge.length-1].height)/2+ne);ne=0,1>Math.abs(Ve)?Math.abs(ue-z)<(ge[0].width+ge[ge.length-1].width)/2&&(ne=0):ne=0<Ve?Ve:1>Math.abs(ke)?0:ke,ue=Math.abs(z)>Math.abs(Ee)?0<z!=he>Ee:0<Ee!=ue<z,(ue=x===Rc?ue:!ue)&&(ne=-Math.abs(ne),ne=Math.min(ne,-ge[ge.length-1].width),ne=Math.min(ne,-ge[ge.length-1].height)),a.Xr.compare(ne,ge),1<Math.abs(ne)&&(a.lc=8>a.mj?a.lc-ne/(2*Math.PI):5>ge.length&&10<ne?a.lc/2:a.lc-(0<ne?1.7:-2.3),a.me=a.lc*oe,_E(a,y,E,b,x))}}}function UE(a,y,E,b,x){for(var z=a.lc,ne=a.me,oe=a.Zm,ue=z*Math.cos(b*Math.PI/180),he=ne*Math.sin(b*Math.PI/180),ge=xt.alloc(),Ee=y.Fa(),ke=0;ke<Ee.length&&(Ee[ke].centerX=ue,Ee[ke].centerY=he,!(ke>=Ee.length-1));ke++)HE(a,ue,he,Ee,ke,x,ge)||jE(a,ue,he,Ee,ke,x,ge),ue=ge.x,he=ge.y;if(xt.free(ge),a.mj++,!(23<a.mj)){if(ue=Math.atan2(he,ue),ue=x===Rc?a.gt-ue:ue-a.gt,ue=Math.abs(ue)<Math.abs(ue-2*Math.PI)?ue:ue-2*Math.PI,z=ue*(z+ne)/2,ne=a.Xr,Math.abs(z)<Math.abs(ne.Pl))for(ne.Pl=z,ne.mk=[],ne.tm=[],ue=0;ue<Ee.length;ue++)ne.mk[ue]=Ee[ue].bounds.x,ne.tm[ue]=Ee[ue].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*oe,UE(a,y,E,b,x))}}function HE(a,y,E,b,x,z,ne){var oe=a.lc,ue=a.me,he=0;a=(b[x].width+b[x+1].width)/2+a.Ti;var ge=!1;if(0<=E!=(z===Rc)){if(z=y+a,z>oe){if(z=y-a,z<-oe)return ne.x=z,ne.y=he,!1;ge=!0}}else if(z=y-a,z<-oe){if(z=y+a,z>oe)return ne.x=z,ne.y=he,!1;ge=!0}return he=Math.sqrt(1-Math.min(1,z*z/(oe*oe)))*ue,0>E!==ge&&(he=-he),Math.abs(E-he)>(b[x].height+b[x+1].height)/2?(ne.x=z,ne.y=he,!1):(ne.x=z,ne.y=he,!0)}function jE(a,y,E,b,x,z,ne){var oe=a.lc,ue=a.me,he=0;if(a=(b[x].height+b[x+1].height)/2+a.Ti,b=!1,0<=y!=(z===Rc)){if(z=E-a,z<-ue){if(z=E+a,z>ue){ne.x=he,ne.y=z;return}b=!0}}else if(z=E+a,z>ue){if(z=E-a,z<-ue){ne.x=he,ne.y=z;return}b=!0}he=Math.sqrt(1-Math.min(1,z*z/(ue*ue)))*oe,0>y!==b&&(he=-he),ne.x=he,ne.y=z}Cl.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Cl.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,E=this.actualCenter;a?E=new xt(0,0):(E.x=this.arrangementOrigin.x+this.lc,E.y=this.arrangementOrigin.y+this.me);for(var b=this.network.vertexes.iterator;b.next();){var x=b.value;x.x+=E.x,x.y+=E.y,x.commit()}a&&(this.group.Va(),a=this.group.position.copy(),E=this.group.location.copy(),y=y.re(E.re(a)),this.group.move(y),this.Zv=y.re(a))},Cl.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function Ay(a,y,E,b,x){var z=a.ty;if(.001>Math.abs(a.Zm-1))return b!==void 0&&x!==void 0?x*y:2*Math.PI*y;a=y>E?Math.sqrt(y*y-E*E)/y:Math.sqrt(E*E-y*y)/E;for(var ne=0,oe=b!==void 0&&x!==void 0?x/(z+1):Math.PI/(2*(z+1)),ue=0,he=0;he<=z;he++){b!==void 0&&x!==void 0?ue=b+he*x/z:ue=he*Math.PI/(2*z);var ge=Math.sin(ue);ne+=Math.sqrt(1-a*a*ge*ge)*oe}return b!==void 0&&x!==void 0?(y>E?y:E)*ne:4*(y>E?y:E)*ne}function H0(a,y,E,b,x){return y/(b!==void 0&&x!==void 0?Ay(a,1,E,b,x):Ay(a,1,E))}function j0(a,y,E,b,x){if(.001>Math.abs(a.Zm-1))return x/y;var z=y>E?Math.sqrt(y*y-E*E)/y:Math.sqrt(E*E-y*y)/E,ne=0;a=2*Math.PI/(700*a.network.vertexes.count),y>E&&(b+=Math.PI/2);for(var oe=0;;oe++){var ue=Math.sin(b+oe*a);if(ne+=(y>E?y:E)*Math.sqrt(1-z*z*ue*ue)*a,ne>=x)return oe*a}}Cl.prototype.sort=function(a){switch(this.sorting){case G0:break;case z0:a.reverse();break;case V0:a.sort(this.comparer);break;case W0:a.sort(this.comparer),a.reverse();break;case Pg:return this.ak(x1(a));default:Pn("Invalid sorting type.")}return a};function x1(a){for(var y=[],E=0;E<a.length;E++)y.push(0);E=new Ar;for(var b=0;b<a.length;b++){var x=-1,z=-1;if(b===0)for(var ne=0;ne<a.length;ne++){var oe=a.M(ne).edgesCount;oe>x&&(x=oe,z=ne)}else for(ne=0;ne<a.length;ne++)oe=y[ne],oe>x&&(x=oe,z=ne);for(E.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 E}Cl.prototype.ak=function(a){for(var y=[],E=0;E<a.length;E++){var b=a.M(E);y[E]=[];for(var x,z=b.destinationEdges;z.next();)x=a.indexOf(z.value.toVertex),x!==E&&0>y[E].indexOf(x)&&y[E].push(x);for(b=b.sourceEdges;b.next();)x=a.indexOf(b.value.fromVertex),x!==E&&0>y[E].indexOf(x)&&y[E].push(x)}for(z=[],E=0;E<y.length;E++)z[E]=0;E=[];var ne=[],oe=[];b=[],x=new Ar;for(var ue=0,he=0;he<y.length;he++){var ge=y[he].length;if(ge===1)b.push(he);else if(ge===0)x.add(a.M(he));else{if(ue===0)E.push(he);else{for(var Ee=ge=1/0,ke=-1,Ve=[],Ze=0;Ze<E.length;Ze++)0>y[E[Ze]].indexOf(E[Ze===E.length-1?0:Ze+1])&&Ve.push(Ze===E.length-1?0:Ze+1);if(Ve.length===0)for(Ze=0;Ze<E.length;Ze++)Ve.push(Ze);for(Ze=0;Ze<Ve.length;Ze++){for(var st=Ve[Ze],Ot=y[he],Pt=0,zt=0;zt<ne.length;zt++){var Kt=z[ne[zt]],Jt=z[oe[zt]];if(Kt<Jt){var dn=Kt;Kt=Jt}else dn=Jt;if(dn<st&&st<=Kt)for(Jt=0;Jt<Ot.length;Jt++){var kn=Ot[Jt];0>E.indexOf(kn)||dn<z[kn]&&z[kn]<Kt||dn===z[kn]||Kt===z[kn]||Pt++}else for(Jt=0;Jt<Ot.length;Jt++)kn=Ot[Jt],0>E.indexOf(kn)||dn<z[kn]&&z[kn]<Kt&&dn!==z[kn]&&Kt!==z[kn]&&Pt++}for(Ot=Pt,zt=Pt=0;zt<y[he].length;zt++)dn=E.indexOf(y[he][zt]),0<=dn&&(dn=Math.abs(st-(dn>=st?dn+1:dn)),Pt+=dn<E.length+1-dn?dn:E.length+1-dn);for(zt=0;zt<ne.length;zt++)dn=z[ne[zt]],Kt=z[oe[zt]],dn>=st&&dn++,Kt>=st&&Kt++,dn>Kt&&(Jt=Kt,Kt=dn,dn=Jt),Kt-dn<(E.length+2)/2==(dn<st&&st<=Kt)&&Pt++;(Ot<ge||Ot===ge&&Pt<Ee)&&(ge=Ot,Ee=Pt,ke=st)}for(E.splice(ke,0,he),ge=0;ge<E.length;ge++)z[E[ge]]=ge;for(ge=0;ge<y[he].length;ge++)Ee=y[he][ge],0<=E.indexOf(Ee)&&(ne.push(he),oe.push(Ee))}ue++}}for(ne=E.length;;){for(z=!0,oe=0;oe<b.length;oe++)if(ue=b[oe],he=y[ue][0],ge=E.indexOf(he),0<=ge){for(ke=Ee=0;ke<y[he].length;ke++)Ve=E.indexOf(y[he][ke]),0>Ve||Ve===ge||(Ze=Ve>ge?Ve-ge:ge-Ve,Ee+=Ve<ge!=Ze>ne-Ze?1:-1);E.splice(0>Ee?ge:ge+1,0,ue),b.splice(oe,1),oe--}else z=!1;if(z)break;E.push(b[0]),b.splice(0,1)}for(y=0;y<E.length;y++)x.add(a.M(E[y]));return x},tr.Object.defineProperties(Cl.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!==Yd&&a!==Kd&&a!==jf&&a!==mf||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Rc&&a!==Gf&&a!==fp&&a!==Ag||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==G0&&a!==z0&&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!==K0&&a!==Hp||(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 Kd=new Mn(Cl,"ConstantSpacing",0),jf=new Mn(Cl,"ConstantDistance",1),mf=new Mn(Cl,"ConstantAngle",2),Yd=new Mn(Cl,"Packed",3),Rc=new Mn(Cl,"Clockwise",4),Gf=new Mn(Cl,"Counterclockwise",5),fp=new Mn(Cl,"BidirectionalLeft",6),Ag=new Mn(Cl,"BidirectionalRight",7),G0=new Mn(Cl,"Forwards",8),z0=new Mn(Cl,"Reverse",9),V0=new Mn(Cl,"Ascending",10),W0=new Mn(Cl,"Descending",11),Pg=new Mn(Cl,"Optimized",12),K0=new Mn(Cl,"Pythagorean",13),Hp=new Mn(Cl,"Circular",14);Cl.className="CircularLayout",Cl.ConstantSpacing=Kd,Cl.ConstantDistance=jf,Cl.ConstantAngle=mf,Cl.Packed=Yd,Cl.Clockwise=Rc,Cl.Counterclockwise=Gf,Cl.BidirectionalLeft=fp,Cl.BidirectionalRight=Ag,Cl.Forwards=G0,Cl.Reverse=z0,Cl.Ascending=V0,Cl.Descending=W0,Cl.Optimized=Pg,Cl.Pythagorean=K0,Cl.Circular=Hp;function Em(){this.Pl=-1/0,this.tm=this.mk=null}Em.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},Em.prototype.commit=function(a){if(this.mk!==null&&this.tm!==null)for(var y=0;y<this.mk.length;y++){var E=a.M(y);E.x=this.mk[y],E.y=this.tm[y]}},Em.className="VertexArrangement";function Ng(a){Hs.call(this,a)}vn(Ng,Hs),Ng.prototype.createVertex=function(){return new bm(this)},Ng.prototype.createEdge=function(){return new Y0(this)},Ng.className="CircularNetwork";function bm(a){pu.call(this,a),this.u=this.Si=NaN}vn(bm,pu);function zf(a,y){var E=a.network;if(E===null)return NaN;if(E=E.layout,E===null)return NaN;if(E.arrangement===Yd)if(E.nodeDiameterFormula===Hp)a.Si=Math.max(a.width,a.height);else{if(E=Math.abs(Math.sin(y)),y=Math.abs(Math.cos(y)),E===0)return a.width;if(y===0)return a.height;a.Si=Math.min(a.height/E,a.width/y)}else a.Si=E.nodeDiameterFormula===Hp?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}tr.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 Y0(a){ld.call(this,a)}vn(Y0,ld),Y0.className="CircularEdge";function Qu(a){gl.call(this),this.ah=null,this.An=0,this.$d=new sn(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)}vn(Qu,gl),Qu.prototype.cloneProtected=function(a){gl.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},Qu.prototype.createNetwork=function(){return new jp(this)},Qu.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),a=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var y=this.network.vertexes.iterator;y.next();){var E=y.value;E.charge=this.electricalCharge(E),E.mass=this.gravitationalMass(E)}for(y=this.network.edges.iterator;y.next();)E=y.value,E.stiffness=this.springStiffness(E),E.length=this.springLength(E);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,E=y.Zx();for(var b=E.iterator;b.next();){this.network=b.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}GE(this,0,a)}this.network=y;var ne=b=E.iterator;b=this.arrangementSpacing;var oe=ne.count,ue=!0;z=x=0;for(var he=Oi(),ge=0;ge<oe+y.vertexes.count+2;ge++)he[ge]=null;oe=0,ne.reset();for(var Ee=Un.alloc();ne.next();)if(ge=ne.value,this.computeBounds(ge,Ee),ue)ue=!1,x=Ee.x+Ee.width/2,z=Ee.y+Ee.height/2,he[0]=new xt(Ee.x+Ee.width+b.width,Ee.y),he[1]=new xt(Ee.x,Ee.y+Ee.height+b.height),oe=2;else{var ke=zE(he,oe,x,z,Ee.width,Ee.height,b),Ve=he[ke],Ze=new xt(Ve.x+Ee.width+b.width,Ve.y),st=new xt(Ve.x,Ve.y+Ee.height+b.height);for(ke+1<oe&&he.splice(ke+1,0,null),he[ke]=Ze,he[ke+1]=st,oe++,ke=Ve.x-Ee.x,Ve=Ve.y-Ee.y,ge=ge.vertexes.iterator;ge.next();)Ze=ge.value,Ze.centerX+=ke,Ze.centerY+=Ve}for(Un.free(Ee),ge=y.vertexes.iterator;ge.next();)ne=ge.value,ke=ne.bounds,2>oe?(x=ke.x+ke.width/2,z=ke.y+ke.height/2,he[0]=new xt(ke.x+ke.width+b.width,ke.y),he[1]=new xt(ke.x,ke.y+ke.height+b.height),oe=2):(ue=zE(he,oe,x,z,ke.width,ke.height,b),Ee=he[ue],Ve=new xt(Ee.x+ke.width+b.width,Ee.y),ke=new xt(Ee.x,Ee.y+ke.height+b.height),ue+1<oe&&he.splice(ue+1,0,null),he[ue]=Ve,he[ue+1]=ke,oe++,ne.centerX=Ee.x+ne.width/2,ne.centerY=Ee.y+ne.height/2);for(Yi(he),b=E.iterator;b.next();){for(E=b.value,x=E.vertexes.iterator;x.next();)y.dh(x.value);for(E=E.edges.iterator;E.next();)y.Bo(E.value)}}WE(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},Qu.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,E=this.network.vertexes.first().bounds,b=this.network.vertexes.iterator;b.next();){if(b.value.bounds.Yc(E)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},Qu.prototype.computeBounds=function(a,y){var E=!0;for(a=a.vertexes.iterator;a.next();){var b=a.value;E?(E=!1,y.set(b.bounds)):y.ed(b.bounds)}return y};function GE(a,y,E){if(w1(a,y)){var b=a.Zf;a.Zf*=1+1/(y+1);var x=C1(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,E*(y+1)/11),10));for(a.maxIterations+=z,GE(a,y+1,E),WE(a,z),T1(a,x),y=x.vertexes.Fa(),y.sort(function(ne,oe){return ne===null||oe===null||ne===oe?0:oe.Vd-ne.Vd}),E=0;E<y.length;E++)A1(a,y[E]);a.Zf=b}}function w1(a,y){if(10<y||3>a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(E,b){return E===null||b===null||E===b?0:b.Vd-E.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function C1(a,y){for(var E=a.network,b=new jp(a),x=0;x<a.ah.length;x++){var z=a.ah[x];if(1<z.Vd){b.dh(z);var ne=new KE;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 Ar),z.We.add(ne),z.sv=z.We.count-1}else break}for(z=E.edges.iterator;z.next();){var oe=z.value;x=oe.fromVertex,ne=oe.toVertex,x.network===b&&ne.network===b?b.Bo(oe):x.network===b?(oe=x.Hj,oe===null&&(oe=new Ar,x.Hj=oe),oe.add(ne),x.Vd--,x.sh+=ne.sh):ne.network===b&&(oe=ne.Hj,oe===null&&(oe=new Ar,ne.Hj=oe),oe.add(x),ne.Vd--,ne.sh+=x.sh)}for(x=b.edges.iterator;x.next();)z=x.value,z.length*=Math.max(1,gn.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){x=y.value;var ue=x.Hj;if(ue!==null&&0<ue.count&&(ne=x.We.M(x.We.count-1).Rs-x.Vd,!(0>=ne))){for(var he=oe=0,ge=ue.count-ne;ge<ue.count;ge++){var Ee=ue.M(ge),ke=null;for(z=Ee.edges.iterator;z.next();){var Ve=z.value;if(Ve.Ax(Ee)===x){ke=Ve;break}}ke!==null&&(he+=ke.length,oe+=Ee.width*Ee.height)}z=x.centerX,ue=x.centerY,ge=x.width,Ee=x.height,ke=x.focus,Ve=ge*Ee,1>Ve&&(Ve=1),oe=gn.sqrt((oe+Ve+he*he*4/(ne*ne))/Ve),ne=(oe-1)*ge/2,oe=(oe-1)*Ee/2,x.bounds=new Un(z-ke.x-ne,ue-ke.y-oe,ge+2*ne,Ee+2*oe),x.focus=new xt(ke.x+ne,ke.y+oe)}}return a.network=b,E}function T1(a,y){for(var E=a.network.vertexes.iterator;E.next();){var b=E.value;if(b.network=y,b.We!==null){var x=b.We.M(b.sv);b.Vd=x.Rs;var z=x.Sv,ne=x.Tv;b.bounds=new Un(b.centerX-z,b.centerY-ne,x.Ss,x.Qs),b.focus=new xt(z,ne),b.sv--}}for(E=a.network.edges.iterator;E.next();)E.value.network=y;a.network=y}function A1(a,y){var E=y.Hj;if(E!==null&&E.count!==0){var b=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=gn.sqrt(z*z+ne*ne)/2;for(var oe=!1,ue=ne=0,he=0,ge=y.vertexes.iterator;ge.next();){var Ee=ge.value;1>=Ee.Vd?ue++:(oe=!0,he++,ne+=Math.atan2(y.centerY-Ee.centerY,y.centerX-Ee.centerX))}if(ue!==0){for(0<he&&(ne/=he),he=y=0,y=oe?2*Math.PI/(ue+1):2*Math.PI/ue,ue%2===0&&(he=y/2),1<E.count&&E.sort(function(Ve,Ze){return Ve===null||Ze===null||Ve===Ze?0:Ze.width*Ze.height-Ve.width*Ve.height}),oe=ue%2===0?0:1,E=E.iterator;E.next();)if(ue=E.value,!(1<ue.Vd||a.isFixed(ue))){for(ge=null,Ee=ue.edges.iterator;Ee.next();){ge=Ee.value;break}Ee=ue.width;var ke=ue.height;Ee=gn.sqrt(Ee*Ee+ke*ke)/2,ge=z+ge.length+Ee,Ee=ne+(y*(oe/2>>1)+he)*(oe%2===0?1:-1),ue.centerX=b+ge*Math.cos(Ee),ue.centerY=x+ge*Math.sin(Ee),oe++}}}}function zE(a,y,E,b,x,z,ne){var oe=9e19,ue=-1,he=0;e:for(;he<y;he++){var ge=a[he],Ee=ge.x-E,ke=ge.y-b;if(Ee=Ee*Ee+ke*ke,Ee<oe){for(ke=he-1;0<=ke;ke--)if(a[ke].y>ge.y&&a[ke].x-ge.x<x+ne.width)continue e;for(ke=he+1;ke<y;ke++)if(a[ke].x>ge.x&&a[ke].y-ge.y<z+ne.height)continue e;ue=he,oe=Ee}}return ue}Qu.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Qu.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var E=y.value;if(E.category==="Comment"&&E.isVisible()){var b=this.network.ki(E);b===null&&(b=this.network.Bl(E)),b.charge=this.defaultCommentElectricalCharge,E=null;for(var x=b.destinationEdges;x.next();){var z=x.value;if(z.toVertex===a){E=z;break}}if(E===null){for(x=b.sourceEdges;x.next();)if(z=x.value,z.fromVertex===a){E=z;break}}E===null&&(E=this.network.Zj(a,b,null)),E.length=this.defaultCommentSpringLength}}};function VE(a,y){var E=a.bounds,b=E.x;a=E.y;var x=E.width;E=E.height;var z=y.bounds,ne=z.x;y=z.y;var oe=z.width;return z=z.height,b+x<ne?a>y+z?(E=b+x-ne,a=a-y-z,gn.sqrt(E*E+a*a)):a+E<y?(b=b+x-ne,a=a+E-y,gn.sqrt(b*b+a*a)):ne-(b+x):b>ne+oe?a>y+z?(E=b-ne-oe,a=a-y-z,gn.sqrt(E*E+a*a)):a+E<y?(b=b-ne-oe,a=a+E-y,gn.sqrt(b*b+a*a)):b-(ne+oe):a>y+z?a-(y+z):a+E<y?y-(a+E):.1}function WE(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,P1(a)););a.ah=null}function P1(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var E=y[0];E.forceX=0,E.forceY=0;for(var b=E.centerX,x=b,z=E=E.centerY,ne=1;ne<y.length;ne++){var oe=y[ne];oe.forceX=0,oe.forceY=0;var ue=oe.centerX;oe=oe.centerY,b=Math.min(b,ue),x=Math.max(x,ue),E=Math.min(E,oe),z=Math.max(z,oe)}(x=x-b>z-E)?y.sort(function(st,Ot){return st===null||Ot===null||st===Ot?0:st.centerX-Ot.centerX}):y.sort(function(st,Ot){return st===null||Ot===null||st===Ot?0:st.centerY-Ot.centerY}),E=a.Zf;var he=b=oe=0;for(z=0;z<y.length;z++){ne=y[z],b=ne.bounds,oe=ne.focus,ue=b.x+oe.x;var ge=b.y+oe.y;b=ne.charge*a.electricalFieldX(ue,ge),he=ne.charge*a.electricalFieldY(ue,ge),b+=ne.mass*a.gravitationalFieldX(ue,ge),he+=ne.mass*a.gravitationalFieldY(ue,ge),ne.forceX+=b,ne.forceY+=he;for(var Ee=z+1;Ee<y.length;Ee++){var ke=y[Ee];if(ke!==ne){b=ke.bounds,oe=ke.focus,he=b.x+oe.x;var Ve=b.y+oe.y;if(ue-he>E||he-ue>E){if(x)break}else if(ge-Ve>E||Ve-ge>E){if(!x)break}else{var Ze=VE(ne,ke);1>Ze?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new Z0),Ze=b.random(),oe=b.random(),ue>he?(b=Math.abs(ke.bounds.right-ne.bounds.x),b=(1+b)*Ze):ue<he?(b=Math.abs(ke.bounds.x-ne.bounds.right),b=-(1+b)*Ze):(b=Math.max(ke.width,ne.width),b=(1+b)*Ze-b/2),ge>Ve?(he=Math.abs(ke.bounds.bottom-ne.bounds.y),he=(1+he)*oe):ue<he?(he=Math.abs(ke.bounds.y-ne.bounds.bottom),he=-(1+he)*oe):(he=Math.max(ke.height,ne.height),he=(1+he)*oe-he/2)):(oe=-(ne.charge*ke.charge)/(Ze*Ze),b=(he-ue)/Ze*oe,he=(Ve-ge)/Ze*oe),ne.forceX+=b,ne.forceY+=he,ke.forceX-=b,ke.forceY-=he}}}}for(x=a.network.edges.iterator;x.next();)oe=x.value,E=oe.fromVertex,z=oe.toVertex,ne=E.bounds,ue=E.focus,b=ne.x+ue.x,ne=ne.y+ue.y,ge=z.bounds,Ee=z.focus,ue=ge.x+Ee.x,ge=ge.y+Ee.y,Ee=VE(E,z),1>Ee?(Ee=a.randomNumberGenerator,Ee===null&&(a.randomNumberGenerator=Ee=new Z0),oe=Ee.random(),Ee=Ee.random(),b=(b>ue?1:-1)*(1+(z.width>E.width?z.width:E.width))*oe,he=(ne>ge?1:-1)*(1+(z.height>E.height?z.height:E.height))*Ee):(oe=oe.stiffness*(Ee-oe.length),b=(ue-b)/Ee*oe,he=(ge-ne)/Ee*oe),E.forceX+=b,E.forceY+=he,z.forceX-=b,z.forceY-=he;for(x=b=0;x<y.length;x++)E=y[x],a.isFixed(E)?a.moveFixedVertex(E):b=Math.max(b,a.moveVertex(E)||0);return b>a.epsilonDistance*a.epsilonDistance}Qu.prototype.moveVertex=function(a){var y=a.forceX,E=a.forceY,b=this.moveLimit;return y<-b?y=-b:y>b&&(y=b),E<-b?E=-b:E>b&&(E=b),a.centerX+=y,a.centerY+=E,y*y+E*E},Qu.prototype.moveFixedVertex=function(){},Qu.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Qu.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=yl,y.toSpot=yl)}},Qu.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var E=Un.alloc();this.computeBounds(this.network,E),y=this.arrangementOrigin,a=y.x-E.x,y=y.y-E.y,Un.free(E)}E=Un.alloc();for(var b=this.network.vertexes.iterator;b.next();){var x=b.value;(a!==0||y!==0)&&(E.assign(x.bounds),E.x+=a,E.y+=y,x.bounds=E),x.commit()}Un.free(E)},Qu.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Qu.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},Qu.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},Qu.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},Qu.prototype.electricalFieldX=function(){return 0},Qu.prototype.electricalFieldY=function(){return 0},Qu.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},Qu.prototype.gravitationalFieldX=function(){return 0},Qu.prototype.gravitationalFieldY=function(){return 0},Qu.prototype.isFixed=function(a){return a.isFixed},tr.Object.defineProperties(Qu.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"&&Pn('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())}}}),Qu.className="ForceDirectedLayout";function KE(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}KE.className="ForceDirectedSubnet";function jp(a){Hs.call(this,a)}vn(jp,Hs),jp.prototype.createVertex=function(){return new xm(this)},jp.prototype.createEdge=function(){return new wm(this)},jp.className="ForceDirectedNetwork";function xm(a){pu.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}vn(xm,pu),tr.Object.defineProperties(xm.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)}}}),xm.className="ForceDirectedVertex";function wm(a){ld.call(this,a),this.j=this.o=NaN}vn(wm,ld),tr.Object.defineProperties(wm.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)}}}),wm.className="ForceDirectedEdge";function Z0(){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()}Z0.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},Z0.className="RandomNumberGenerator";function xs(a){gl.call(this),this.kc=this.ie=25,this.K=0,this.Dk=q0,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 xt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}vn(xs,gl),xs.prototype.cloneProtected=function(a){gl.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},xs.prototype.qb=function(a){a.classType===xs?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:Pn("Unknown enum value: "+a):gl.prototype.qb.call(this,a)},xs.prototype.createNetwork=function(){return new Ig(this)},xs.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!==Tm&&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===Tm&&this.removeCycles(),a=this.network;for(var y=[],E=a.edges.iterator;E.next();){var b=E.value;b.valid=!1,y.push(b)}for(E=0;E<y.length;E++){b=y[E];var x=b.fromVertex,z=b.toVertex;if(!(b.valid||(x.node===null&&x.data===null||z.node===null&&z.data===null)&&x.layer===z.layer)){var ne=0,oe=0,ue=0,he=0;if(b.link!==null){if(oe=b.link,oe===null)continue;var ge=x.node;if(ne=z.node,ge===null||ne===null)continue;var Ee=oe.fromNode;ue=oe.toNode;for(var ke=oe.fromPort;ke!==null&&!ke.Ed();)ke=ke.panel;for(oe=oe.toPort;oe!==null&&!oe.Ed();)oe=oe.panel;if(b.rev){he=Ee;var Ve=ke;Ee=ue,ke=oe,ue=he,oe=Ve}var Ze=x.focus;he=z.focus;var st=b.rev?z.bounds:x.bounds;Ve=xt.alloc(),ge!==Ee?st.w()&&Ee.isVisible()?Ee.actualBounds.w()?(df(Ee,ke,la,Ve),Ve.x+=Ee.actualBounds.x-st.x,Ve.y+=Ee.actualBounds.y-st.y):(df(Ee,ke,la,Ve),Ve.w()||Ve.assign(Ze)):Ve.assign(Ze):st.w()?(df(Ee,ke,la,Ve),Ve.w()||Ve.assign(Ze)):Ve.assign(Ze),Ee=b.rev?x.bounds:z.bounds,ge=xt.alloc(),ne!==ue?Ee.w()&&ue.isVisible()?ue.actualBounds.w()?(df(ue,oe,la,ge),ge.x+=ue.actualBounds.x-Ee.x,ge.y+=ue.actualBounds.y-Ee.y):(df(ue,oe,la,ge),ge.w()||ge.assign(he)):ge.assign(he):Ee.w()?(df(ue,oe,la,ge),ge.w()||ge.assign(he)):ge.assign(he),this.K===90||this.K===270?(ne=Math.round((Ve.x-Ze.x)/this.kc),ue=Ve.x,oe=Math.round((ge.x-he.x)/this.kc),he=ge.x):(ne=Math.round((Ve.y-Ze.y)/this.kc),ue=Ve.y,oe=Math.round((ge.y-he.y)/this.kc),he=ge.y),xt.free(Ve),xt.free(ge),b.portFromColOffset=ne,b.portFromPos=ue,b.portToColOffset=oe,b.portToPos=he}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(Ve=x.layer,ge=z.layer,Ee=0,st=b.link,st!==null){var Ot=st.fromPort,Pt=st.toPort;if(Ot!==null&&Pt!==null){var zt=st.fromNode;if(ke=st.toNode,zt!==null&&ke!==null){var Kt=$0(this,!0),Jt=$0(this,!1),dn=this.setsPortSpots?Kt:st.computeSpot(!0,Ot);Ze=this.setsPortSpots?Jt:st.computeSpot(!1,Pt);var kn=st.isOrthogonal;dn.$c()&&dn.Hf(Jt)&&Ze.$c()&&Ze.Hf(Kt)?Ee=0:(Kt=st.getLinkPoint(zt,Ot,dn,!0,kn,ke,Pt,xt.alloc()),Jt=st.getLinkDirection(zt,Ot,Kt,dn,!0,kn,ke,Pt),xt.free(Kt),dn.ys()||Jt!==Tb(this,b,!0)?this.setsPortSpots&&zt!==null&&zt.ports.count===1&&b.rev&&(Ee+=1):Ee+=1,dn=st.getLinkPoint(ke,Pt,Ze,!1,kn,zt,Ot,xt.alloc()),st=st.getLinkDirection(ke,Pt,dn,Ze,!1,kn,zt,Ot),xt.free(dn),Ze.ys()||st!==Tb(this,b,!1)?this.setsPortSpots&&ke!==null&&ke.ports.count===1&&b.rev&&(Ee+=2):Ee+=2)}}}if(ke=Ee,Ee=ke===1||ke===3,(ke=ke===2||ke===3)&&(Ze=a.createVertex(),Ze.node=null,Ze.Dj=1,Ze.layer=Ve,Ze.near=x,a.dh(Ze),x=a.Zj(x,Ze,b.link),x.valid=!1,x.rev=b.rev,x.portFromColOffset=ne,x.portToColOffset=0,x.portFromPos=ue,x.portToPos=0,x=Ze),st=1,Ee&&st--,Ve-ge>st&&0<Ve){for(b.valid=!1,Ze=a.createVertex(),Ze.node=null,Ze.Dj=2,Ze.layer=Ve-1,a.dh(Ze),x=a.Zj(x,Ze,b.link),x.valid=!0,x.rev=b.rev,x.portFromColOffset=ke?0:ne,x.portToColOffset=0,x.portFromPos=ke?0:ue,x.portToPos=0,x=Ze,Ve--;Ve-ge>st&&0<Ve;)Ze=a.createVertex(),Ze.node=null,Ze.Dj=3,Ze.layer=Ve-1,a.dh(Ze),x=a.Zj(x,Ze,b.link),x.valid=!0,x.rev=b.rev,x.portFromColOffset=0,x.portToColOffset=0,x.portFromPos=0,x.portToPos=0,x=Ze,Ve--;x=a.Zj(Ze,z,b.link),x.valid=!Ee,Ee&&(Ze.near=z),x.rev=b.rev,x.portFromColOffset=0,x.portToColOffset=oe,x.portFromPos=0,x.portToPos=he}else b.valid=!0}}for(a=this.tc=[],y=0;y<=this.Ia;y++)a[y]=0;for(y=this.network.vertexes.iterator;y.next();)y.value.index=-1;for(this.initializeIndices(),this.Iq=-1,E=this.Md=this.Hn=0;E<=this.Ia;E++)a[E]>a[this.Md]&&(this.Iq=a[E]-1,this.Md=E),a[E]<a[this.Hn]&&(this.Hn=E);for(this.fl=[],E=0;E<a.length;E++)this.fl[E]=[];for(y.reset();y.next();)a=y.value,this.fl[a.layer][a.index]=a;for(this.Ra=-1,a=0;a<=this.Ia;a++){for(y=Vf(this,a),E=0,b=this.tc[a],z=0;z<b;z++)x=y[z],E+=this.nodeMinColumnSpace(x,!0),x.column=E,E+=1,E+=this.nodeMinColumnSpace(x,!1);this.Ra=Math.max(this.Ra,E-1),Wf(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},xs.prototype.linkMinLength=function(){return 1};function Py(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}xs.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},xs.prototype.nodeMinColumnSpace=function(a,y){if(a.node===null&&a.data===null)return 0;var E=y?a.ev:a.dv;return E!==null?E:(E=this.K,E===90||E===270?y?a.ev=a.focus.x/this.kc+1|0:a.dv=(a.bounds.width-a.focus.x)/this.kc+1|0:y?a.ev=a.focus.y/this.kc+1|0:a.dv=(a.bounds.height-a.focus.y)/this.kc+1|0)};function Kc(a){a.kj===null&&(a.kj=[]);for(var y=0,E=a.network.vertexes.iterator;E.next();){var b=E.value;a.kj[y]=b.layer,y++,a.kj[y]=b.column,y++,a.kj[y]=b.index,y++}return a.kj}function Pd(a,y){var E=0;for(a=a.network.vertexes.iterator;a.next();){var b=a.value;b.layer=y[E],E++,b.column=y[E],E++,b.index=y[E],E++}}function YE(a,y,E){var b=Vf(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 oe=0,ue=b[ne],he=ue.near;if(he!==null&&he.layer===ue.layer)if(ue=he.index,ue>ne)for(var ge=ne+1;ge<ue;ge++){var Ee=b[ge];Ee.near===he&&Ee.Dj===he.Dj||oe++}else for(ge=ne-1;ge>ue;ge--)Ee=b[ge],Ee.near===he&&Ee.Dj===he.Dj||oe++;var ke;if(0<=E)for(ue=b[ne].sourceEdgesArrayAccess,he=0;he<ue.length;he++){var Ve=ue[he];if(Ve.valid&&Ve.fromVertex.layer!==y)for(Ee=Ve.fromVertex.index,ge=Ve.portToPos,Ve=Ve.portFromPos,ke=he+1;ke<ue.length;ke++){var Ze=ue[ke];if(Ze.valid&&Ze.fromVertex.layer!==y){var st=Ze.fromVertex.index,Ot=Ze.portToPos;Ze=Ze.portFromPos,ge<Ot&&(Ee>st||Ee===st&&Ve>Ze)&&oe++,Ot<ge&&(st>Ee||st===Ee&&Ze>Ve)&&oe++}}}if(0>=E){for(ue=b[ne].destinationEdgesArrayAccess,he=0;he<ue.length;he++)if(Ve=ue[he],Ve.valid&&Ve.toVertex.layer!==y)for(Ee=Ve.toVertex.index,ge=Ve.portToPos,Ve=Ve.portFromPos,ke=he+1;ke<ue.length;ke++)Ze=ue[ke],Ze.valid&&Ze.toVertex.layer!==y&&(st=Ze.toVertex.index,Ot=Ze.portToPos,Ze=Ze.portFromPos,Ve<Ze&&(Ee>st||Ee===st&&ge>Ot)&&oe++,Ze<Ve&&(st>Ee||st===Ee&&Ot>ge)&&oe++)}for(z[ne*x+ne]=oe,ue=ne+1;ue<x;ue++){var Pt=0,zt=0;if(0<=E){oe=b[ne].sourceEdgesArrayAccess;var Kt=b[ue].sourceEdgesArrayAccess;for(he=0;he<oe.length;he++)if(Ve=oe[he],Ve.valid&&Ve.fromVertex.layer!==y)for(Ee=Ve.fromVertex.index,Ve=Ve.portFromPos,ke=0;ke<Kt.length;ke++)Ze=Kt[ke],Ze.valid&&Ze.fromVertex.layer!==y&&(st=Ze.fromVertex.index,Ze=Ze.portFromPos,(Ee<st||Ee===st&&Ve<Ze)&&zt++,(st<Ee||st===Ee&&Ze<Ve)&&Pt++)}if(0>=E){for(oe=b[ne].destinationEdgesArrayAccess,Kt=b[ue].destinationEdgesArrayAccess,he=0;he<oe.length;he++)if(Ve=oe[he],Ve.valid&&Ve.toVertex.layer!==y)for(Ee=Ve.toVertex.index,ge=Ve.portToPos,ke=0;ke<Kt.length;ke++)Ze=Kt[ke],Ze.valid&&Ze.toVertex.layer!==y&&(st=Ze.toVertex.index,Ot=Ze.portToPos,(Ee<st||Ee===st&&ge<Ot)&&zt++,(st<Ee||st===Ee&&Ot<ge)&&Pt++)}z[ne*x+ue]=Pt,z[ue*x+ne]=zt}}return Wf(a,y,b),z}xs.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var E=YE(this,y,1),b=this.tc[y],x=0;x<b;x++)for(var z=x;z<b;z++)a+=E[x*b+z];return a};function X0(a){for(var y=0,E=0;E<=a.Ia;E++){for(var b=a,x=E,z=Vf(b,x),ne=b.tc[x],oe=0,ue=0;ue<ne;ue++){var he=z[ue].destinationEdgesArrayAccess;if(he!==null)for(var ge=0;ge<he.length;ge++){var Ee=he[ge];if(Ee.valid&&Ee.toVertex.layer!==x){var ke=Ee.fromVertex.column+Ee.portFromColOffset,Ve=Ee.toVertex.column+Ee.portToColOffset;oe+=(Math.abs(ke-Ve)+1)*Py(Ee)}}}Wf(b,x,z),y+=oe}return y}xs.prototype.normalize=function(){var a=1/0;this.Ra=-1;for(var y=this.network.vertexes.iterator;y.next();){var E=y.value;a=Math.min(a,E.column-this.nodeMinColumnSpace(E,!0)),this.Ra=Math.max(this.Ra,E.column+this.nodeMinColumnSpace(E,!1))}for(y.reset();y.next();)y.value.column-=a;this.Ra-=a};function Ny(a,y,E){for(var b=Vf(a,y),x=a.tc[y],z=[],ne=0;ne<x;ne++){var oe=b[ne],ue=null;0>=E&&(ue=oe.sourceEdgesArrayAccess);var he=null;0<=E&&(he=oe.destinationEdgesArrayAccess);var ge=0,Ee=0,ke=oe.near;if(ke!==null&&ke.layer===oe.layer&&(ge+=ke.column-1,Ee++),ue!==null)for(ke=0;ke<ue.length;ke++){oe=ue[ke];var Ve=oe.fromVertex;oe.valid&&!oe.rev&&Ve.layer!==y&&(ge+=Ve.column,Ee++)}if(he!==null)for(ue=0;ue<he.length;ue++)oe=he[ue],ke=oe.toVertex,oe.valid&&!oe.rev&&ke.layer!==y&&(ge+=ke.column,Ee++);z[ne]=Ee===0?-1:ge/Ee}return Wf(a,y,b),z}function ZE(a,y,E){for(var b=Vf(a,y),x=a.tc[y],z=[],ne=0;ne<x;ne++){var oe=b[ne],ue=null;0>=E&&(ue=oe.sourceEdgesArrayAccess);var he=null;0<=E&&(he=oe.destinationEdgesArrayAccess);var ge=0,Ee=[],ke=oe.near;if(ke!==null&&ke.layer===oe.layer&&(Ee[ge]=ke.column-1,ge++),oe=void 0,ue!==null)for(ke=0;ke<ue.length;ke++){oe=ue[ke];var Ve=oe.fromVertex;oe.valid&&!oe.rev&&Ve.layer!==y&&(Ee[ge]=Ve.column+oe.portFromColOffset,ge++)}if(he!==null)for(ue=0;ue<he.length;ue++)oe=he[ue],ke=oe.toVertex,oe.valid&&!oe.rev&&ke.layer!==y&&(Ee[ge]=ke.column+oe.portToColOffset,ge++);ge===0?z[ne]=-1:(Ee.sort(function(Ze,st){return Ze-st}),he=ge>>1,z[ne]=ge&1?Ee[he]:Ee[he-1]+Ee[he]>>1)}return Wf(a,y,b),z}function Cm(a,y,E,b,x,z){if(y.component===b){if(y.component=E,x)for(var ne=y.destinationEdges;ne.next();){var oe=ne.value,ue=oe.toVertex,he=y.layer-ue.layer;oe=a.linkMinLength(oe),he===oe&&Cm(a,ue,E,b,x,z)}if(z)for(ne=y.sourceEdges;ne.next();)oe=ne.value,ue=oe.fromVertex,he=ue.layer-y.layer,oe=a.linkMinLength(oe),he===oe&&Cm(a,ue,E,b,x,z)}}function Ly(a,y,E,b,x,z){if(y.component===b){if(y.component=E,x)for(var ne=y.destinationEdges;ne.next();)Ly(a,ne.value.toVertex,E,b,x,z);if(z)for(y=y.sourceEdges;y.next();)Ly(a,y.value.fromVertex,E,b,x,z)}}xs.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Ry:a=this.network;var y=0,E=a.vertexes.count-1,b=[];b.length=E+1;for(var x=a.vertexes.iterator;x.next();)x.value.valid=!0;for(;N1(a)!==null;){for(x=XE(a);x!==null;)b[E]=x,E--,x.valid=!1,x=XE(a);for(x=QE(a);x!==null;)b[y]=x,y++,x.valid=!1,x=QE(a);x=null;for(var z=0,ne=this.network.vertexes.iterator;ne.next();){var oe=ne.value;if(oe.valid){for(var ue=0,he=oe.destinationEdges;he.next();)he.value.toVertex.valid&&ue++;he=0;for(var ge=oe.sourceEdges;ge.next();)ge.value.fromVertex.valid&&he++;(x===null||z<ue-he)&&(x=oe,z=ue-he)}}x!==null&&(b[y]=x,y++,x.valid=!1)}for(y=0;y<a.vertexes.count;y++)b[y].index=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case q0:for(b=this.network.vertexes.iterator;b.next();)a=b.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,b.reset();b.next();)y=b.value,y.sourceEdges.count===0&&Iy(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&Iy(this,y);for(a.reset();a.next();)b=a.value,b.forest||(y=b.fromVertex,E=y.finish,x=b.toVertex,z=x.finish,x.Ll<y.Ll&&E<z&&(this.network.gm(b),b.rev=!0));break;case Tm:for(a=this.network,y=a.vertexes.iterator,b=1/0;y.next();)b=Math.min(b,y.value.layer);if(1/0>b){if(0>b)for(y.reset();y.next();)y.value.layer-=b;for(b=[],y.reset();y.next();)E=y.value,x=b[E.layer],x===void 0?b[E.layer]=[E]:x.push(E);for(E=y=0;E<b.length;E++)if(x=b[E],!x||x.length===0)y++;else if(0<E)for(z=0;z<x.length;z++)x[z].layer-=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function N1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function XE(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var E=!0,b=y.destinationEdges;b.next();)if(b.value.toVertex.valid){E=!1;break}if(E)return y}}return null}function QE(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var E=!0,b=y.sourceEdges;b.next();)if(b.value.fromVertex.valid){E=!1;break}if(E)return y}}return null}function Iy(a,y){y.Ll=a.Kn,a.Kn++;for(var E=y.destinationEdges;E.next();){var b=E.value,x=b.toVertex;x.Ll===-1&&(b.forest=!0,Iy(a,x))}y.finish=a.Kn,a.Kn++}xs.prototype.assignLayers=function(){switch(this.Zk){case My:JE(this);break;case Oy:for(var a,y=this.network.vertexes.iterator;y.next();)a=qE(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(JE(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&Sb(this,a);for(a=1/0,y.reset();y.next();)a=Math.min(a,y.value.layer);for(this.Ia=-1,y.reset();y.next();){var E=y.value;E.layer-=a,this.Ia=Math.max(this.Ia,E.layer)}}};function JE(a){for(var y=a.network.vertexes.iterator;y.next();){var E=$E(a,y.value);a.Ia=Math.max(E,a.Ia)}}function $E(a,y){var E=0;if(y.layer===-1){for(var b=y.destinationEdges;b.next();){var x=b.value,z=x.toVertex;x=a.linkMinLength(x),E=Math.max(E,$E(a,z)+x)}y.layer=E}else E=y.layer;return E}function qE(a,y){var E=0;if(y.layer===-1){for(var b=y.sourceEdges;b.next();){var x=b.value,z=x.fromVertex;x=a.linkMinLength(x),E=Math.max(E,qE(a,z)+x)}y.layer=E}else E=y.layer;return E}function Sb(a,y){if(!y.valid){y.valid=!0;for(var E=y.destinationEdges;E.next();)Sb(a,E.value.toVertex);for(E=a.network.vertexes.iterator;E.next();)E.value.component=-1;for(var b=y.sourceEdgesArrayAccess,x=b.length,z=0;z<x;z++){var ne=b[z],oe=ne.fromVertex,ue=ne.toVertex;ne=a.linkMinLength(ne),oe.layer-ue.layer>ne&&Cm(a,oe,0,-1,!0,!1)}for(Cm(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,b=1/0,oe=0,ue=null,ne=a.network.vertexes.iterator;ne.next();){var he=ne.value;if(he.component===1){var ge=0,Ee=!1,ke=he.sourceEdgesArrayAccess;x=ke.length;for(var Ve=0;Ve<x;Ve++){var Ze=ke[Ve],st=Ze.fromVertex;ge+=1,st.component!==1&&(z+=1,st=st.layer-he.layer,Ze=a.linkMinLength(Ze),b=Math.min(b,st-Ze))}for(ke=he.destinationEdgesArrayAccess,x=ke.length,Ve=0;Ve<x;Ve++)Ze=ke[Ve].toVertex,--ge,Ze.component!==1?--z:Ee=!0;(ue===null||ge<oe)&&!Ee&&(ue=he,oe=ge)}}if(0<z){for(E.reset();E.next();)x=E.value,x.component===1&&(x.layer+=b);y.component=0}else ue.component=0}for(E=a.network.vertexes.iterator;E.next();)E.value.component=-1;for(Cm(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,x=1/0,z=0,oe=null,ue=a.network.vertexes.iterator;ue.next();)if(ne=ue.value,ne.component===1){for(he=0,ge=!1,ke=ne.sourceEdgesArrayAccess,Ee=ke.length,Ve=0;Ve<Ee;Ve++)Ze=ke[Ve].fromVertex,he+=1,Ze.component!==1?b+=1:ge=!0;for(ke=ne.destinationEdgesArrayAccess,Ee=ke.length,Ve=0;Ve<Ee;Ve++)Ze=ke[Ve],st=Ze.toVertex,--he,st.component!==1&&(--b,st=ne.layer-st.layer,Ze=a.linkMinLength(Ze),x=Math.min(x,st-Ze));(oe===null||he>z)&&!ge&&(oe=ne,z=he)}if(0>b){for(E.reset();E.next();)b=E.value,b.component===1&&(b.layer-=x);y.component=0}else oe.component=0}}}function Tb(a,y,E){return a.K===90?E&&!y.rev||!E&&y.rev?270:90:a.K===180?E&&!y.rev||!E&&y.rev?0:180:a.K===270?E&&!y.rev||!E&&y.rev?90:270:E&&!y.rev||!E&&y.rev?180:0}xs.prototype.initializeIndices=function(){switch(this.Qk){default:case Fy:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,E=y.layer;y.index=this.tc[E],this.tc[E]++}break;case tv:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)E=a.value,E.layer===y&&E.index===-1&&Pb(this,E);break;case Dy:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)E=a.value,E.layer===y&&E.index===-1&&Nb(this,E)}};function Pb(a,y){var E=y.layer;for(y.index=a.tc[E],a.tc[E]++,y=y.destinationEdgesArrayAccess,E=!0;E;){E=!1;for(var b=0;b<y.length-1;b++){var x=y[b],z=y[b+1];x.portFromColOffset>z.portFromColOffset&&(E=!0,y[b]=z,y[b+1]=x)}}for(E=0;E<y.length;E++)b=y[E],b.valid&&(b=b.toVertex,b.index===-1&&Pb(a,b))}function Nb(a,y){var E=y.layer;y.index=a.tc[E],a.tc[E]++,y=y.sourceEdgesArrayAccess;for(var b=!0;b;)for(b=!1,E=0;E<y.length-1;E++){var x=y[E],z=y[E+1];x.portToColOffset>z.portToColOffset&&(b=!0,y[E]=z,y[E+1]=x)}for(E=0;E<y.length;E++)b=y[E],b.valid&&(b=b.fromVertex,b.index===-1&&Nb(a,b))}xs.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Kc(this),E,b;for(E=0;E<this.bj;E++){for(b=0;b<=this.Ia;b++)Q0(this,b,1),Dd(this,b,1);var x=this.countCrossings();for(x<a&&(a=x,y=Kc(this)),b=this.Ia;0<=b;b--)Q0(this,b,-1),Dd(this,b,-1);x=this.countCrossings(),x<a&&(a=x,y=Kc(this))}for(Pd(this,y),E=0;E<this.bj;E++){for(b=0;b<=this.Ia;b++)Q0(this,b,0),Dd(this,b,0);for(x=this.countCrossings(),x<a&&(a=x,y=Kc(this)),b=this.Ia;0<=b;b--)Q0(this,b,0),Dd(this,b,0);x=this.countCrossings(),x<a&&(a=x,y=Kc(this))}Pd(this,y);var z,ne,oe;switch(this.rk){case By:break;case _y:for(oe=a+1;(b=this.countCrossings())<oe;)for(oe=b,E=this.Ia;0<=E;E--)for(ne=0;ne<=E;ne++){for(z=!0;z;)for(z=!1,b=E;b>=ne;b--)z=Dd(this,b,-1)||z;for(x=this.countCrossings(),x>=a?Pd(this,y):(a=x,y=Kc(this)),z=!0;z;)for(z=!1,b=E;b>=ne;b--)z=Dd(this,b,1)||z;for(x=this.countCrossings(),x>=a?Pd(this,y):(a=x,y=Kc(this)),z=!0;z;)for(z=!1,b=ne;b<=E;b++)z=Dd(this,b,1)||z;for(x>=a?Pd(this,y):(a=x,y=Kc(this)),z=!0;z;)for(z=!1,b=ne;b<=E;b++)z=Dd(this,b,-1)||z;for(x>=a?Pd(this,y):(a=x,y=Kc(this)),z=!0;z;)for(z=!1,b=E;b>=ne;b--)z=Dd(this,b,0)||z;for(x>=a?Pd(this,y):(a=x,y=Kc(this)),z=!0;z;)for(z=!1,b=ne;b<=E;b++)z=Dd(this,b,0)||z;x>=a?Pd(this,y):(a=x,y=Kc(this))}break;default:case nv:for(E=this.Ia,ne=0,oe=a+1;(b=this.countCrossings())<oe;){for(oe=b,z=!0;z;)for(z=!1,b=E;b>=ne;b--)z=Dd(this,b,-1)||z;for(x=this.countCrossings(),x>=a?Pd(this,y):(a=x,y=Kc(this)),z=!0;z;)for(z=!1,b=E;b>=ne;b--)z=Dd(this,b,1)||z;for(x=this.countCrossings(),x>=a?Pd(this,y):(a=x,y=Kc(this)),z=!0;z;)for(z=!1,b=ne;b<=E;b++)z=Dd(this,b,1)||z;for(x>=a?Pd(this,y):(a=x,y=Kc(this)),z=!0;z;)for(z=!1,b=ne;b<=E;b++)z=Dd(this,b,-1)||z;for(x>=a?Pd(this,y):(a=x,y=Kc(this)),z=!0;z;)for(z=!1,b=E;b>=ne;b--)z=Dd(this,b,0)||z;for(x>=a?Pd(this,y):(a=x,y=Kc(this)),z=!0;z;)for(z=!1,b=ne;b<=E;b++)z=Dd(this,b,0)||z;x>=a?Pd(this,y):(a=x,y=Kc(this))}}Pd(this,y)};function Q0(a,y,E){var b=Vf(a,y),x=a.tc[y],z=ZE(a,y,E),ne=Ny(a,y,E);for(E=0;E<x;E++)ne[E]===-1&&(ne[E]=b[E].column),z[E]===-1&&(z[E]=b[E].column);for(var oe=!0,ue;oe;)for(oe=!1,E=0;E<x-1;E++)(z[E+1]<z[E]||z[E+1]===z[E]&&ne[E+1]<ne[E])&&(oe=!0,ue=z[E],z[E]=z[E+1],z[E+1]=ue,ue=ne[E],ne[E]=ne[E+1],ne[E+1]=ue,ue=b[E],b[E]=b[E+1],b[E+1]=ue);for(E=z=0;E<x;E++)ue=b[E],ue.index=E,z+=a.nodeMinColumnSpace(ue,!0),ue.column=z,z+=1,z+=a.nodeMinColumnSpace(ue,!1);Wf(a,y,b)}function Dd(a,y,E){var b=Vf(a,y),x=a.tc[y];E=YE(a,y,E);var z,ne=[];for(z=0;z<x;z++)ne[z]=-1;var oe=[];for(z=0;z<x;z++)oe[z]=-1;for(var ue=!1,he=!0;he;)for(he=!1,z=0;z<x-1;z++){var ge=E[b[z].index*x+b[z+1].index],Ee=E[b[z+1].index*x+b[z].index],ke=0,Ve=0,Ze=b[z].column,st=b[z+1].column,Ot=a.nodeMinColumnSpace(b[z],!0),Pt=a.nodeMinColumnSpace(b[z],!1),zt=a.nodeMinColumnSpace(b[z+1],!0),Kt=a.nodeMinColumnSpace(b[z+1],!1);Ot=Ze-Ot+zt,Pt=st-Pt+Kt;var Jt=b[z].sourceEdges.iterator;for(Jt.reset();Jt.next();)if(zt=Jt.value,Kt=zt.fromVertex,zt.valid&&Kt.layer===y){for(zt=0;b[zt]!==Kt;)zt++;zt<z&&(ke+=2*(z-zt),Ve+=2*(z+1-zt)),zt===z+1&&(ke+=1),zt>z+1&&(ke+=4*(zt-z),Ve+=4*(zt-(z+1)))}for(Jt=b[z].destinationEdges.iterator,Jt.reset();Jt.next();)if(zt=Jt.value,Kt=zt.toVertex,zt.valid&&Kt.layer===y){for(zt=0;b[zt]!==Kt;)zt++;zt===z+1&&(Ve+=1)}for(Jt=b[z+1].sourceEdges.iterator,Jt.reset();Jt.next();)if(zt=Jt.value,Kt=zt.fromVertex,zt.valid&&Kt.layer===y){for(zt=0;b[zt]!==Kt;)zt++;zt<z&&(ke+=2*(z+1-zt),Ve+=2*(z-zt)),zt===z&&(Ve+=1),zt>z+1&&(ke+=4*(zt-(z+1)),Ve+=4*(zt-z))}for(Jt=b[z+1].destinationEdges.iterator,Jt.reset();Jt.next();)if(zt=Jt.value,Kt=zt.toVertex,zt.valid&&Kt.layer===y){for(zt=0;b[zt]!==Kt;)zt++;zt===z&&(ke+=1)}zt=Kt=0,Jt=ne[b[z].index];var dn=oe[b[z].index],kn=ne[b[z+1].index],Xr=oe[b[z+1].index];Jt!==-1&&(Kt+=Math.abs(Jt-Ze),zt+=Math.abs(Jt-Pt)),dn!==-1&&(Kt+=Math.abs(dn-Ze),zt+=Math.abs(dn-Pt)),kn!==-1&&(Kt+=Math.abs(kn-st),zt+=Math.abs(kn-Ot)),Xr!==-1&&(Kt+=Math.abs(Xr-st),zt+=Math.abs(Xr-Ot)),(Ve<ke-.5||Ve===ke&&Ee<ge-.5||Ve===ke&&Ee===ge&&zt<Kt-.5)&&(he=ue=!0,b[z].column=Pt,b[z+1].column=Ot,ge=b[z],b[z]=b[z+1],b[z+1]=ge)}for(z=0;z<x;z++)b[z].index=z;return Wf(a,y,b),ue}xs.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&F1)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var E=[];for(y=0;y<=this.Ia;y++)E[y]=0;for(var b,x=this.network.vertexes.iterator;x.next();){var z=x.value;y=z.layer,b=z.column,z=this.nodeMinColumnSpace(z,!1),E[y]=Math.max(E[y],b+z)}for(x.reset();x.next();)z=x.value,y=z.layer,b=z.column,z.column=(8*(this.Ra-E[y])>>1)+8*b;this.Ra*=8}if(this.bg&2)for(E=!0;E;){for(E=!1,y=this.Md+1;y<=this.Ia;y++)E=Lg(this,y,1)||E;for(y=this.Md-1;0<=y;y--)E=Lg(this,y,-1)||E;E=Lg(this,this.Md,0)||E}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)ky(this,y,1);for(y=this.Md-1;0<=y;y--)ky(this,y,-1);ky(this,this.Md,0)}if(a&&(Lb(this,-1),Lb(this,1)),this.bg&2)for(E=!0;E;){for(E=!1,E=Lg(this,this.Md,0)||E,y=this.Md+1;y<=this.Ia;y++)E=Lg(this,y,0)||E;for(y=this.Md-1;0<=y;y--)E=Lg(this,y,0)||E}}else R1(this)};function Lg(a,y,E){for(var b=!1;L1(a,y,E);)b=!0;return b}function L1(a,y,E){var b,x=Vf(a,y),z=a.tc[y],ne=Ny(a,y,-1);if(0<E)for(b=0;b<z;b++)ne[b]=-1;var oe=Ny(a,y,1);if(0>E)for(b=0;b<z;b++)oe[b]=-1;for(var ue=!1,he=!0;he;)for(he=!1,b=0;b<z;b++){var ge=x[b].column,Ee=a.nodeMinColumnSpace(x[b],!0),ke=a.nodeMinColumnSpace(x[b],!1),Ve=0;0>b-1||ge-x[b-1].column-1>Ee+a.nodeMinColumnSpace(x[b-1],!1)?Ve=ge-1:Ve=ge,Ee=b+1>=z||x[b+1].column-ge-1>ke+a.nodeMinColumnSpace(x[b+1],!0)?ge+1:ge;var Ze=ke=0,st=0;if(0>=E)for(var Ot=x[b].sourceEdges.iterator;Ot.next();){var Pt=Ot.value,zt=Pt.fromVertex;if(Pt.valid&&zt.layer!==y){var Kt=Py(Pt),Jt=Pt.portFromColOffset;Pt=Pt.portToColOffset,zt=zt.column,ke+=(Math.abs(ge+Pt-(zt+Jt))+1)*Kt,Ze+=(Math.abs(Ve+Pt-(zt+Jt))+1)*Kt,st+=(Math.abs(Ee+Pt-(zt+Jt))+1)*Kt}}if(0<=E)for(Ot=x[b].destinationEdges.iterator;Ot.next();)Pt=Ot.value,zt=Pt.toVertex,Pt.valid&&zt.layer!==y&&(Kt=Py(Pt),Jt=Pt.portFromColOffset,Pt=Pt.portToColOffset,zt=zt.column,ke+=(Math.abs(ge+Jt-(zt+Pt))+1)*Kt,Ze+=(Math.abs(Ve+Jt-(zt+Pt))+1)*Kt,st+=(Math.abs(Ee+Jt-(zt+Pt))+1)*Kt);Pt=Jt=Kt=0,Ot=ne[x[b].index],zt=oe[x[b].index],Ot!==-1&&(Kt+=Math.abs(Ot-ge),Jt+=Math.abs(Ot-Ve),Pt+=Math.abs(Ot-Ee)),zt!==-1&&(Kt+=Math.abs(zt-ge),Jt+=Math.abs(zt-Ve),Pt+=Math.abs(zt-Ee)),Ze<ke||Ze===ke&&Jt<Kt?(he=ue=!0,x[b].column=Ve):(st<ke||st===ke&&Pt<Kt)&&(he=ue=!0,x[b].column=Ee)}return Wf(a,y,x),a.normalize(),ue}function ky(a,y,E){var b=Vf(a,y),x=a.tc[y],z=ZE(a,y,E),ne=[];for(E=0;E<x;E++)ne[E]=z[E];for(z=!0;z;)for(z=!1,E=0;E<x;E++){var oe=b[E].column,ue=a.nodeMinColumnSpace(b[E],!0),he=a.nodeMinColumnSpace(b[E],!1),ge=0;if(ne[E]===-1)if(E===0&&E===x-1)ge=oe;else if(E===0){var Ee=b[E+1].column;Ee-oe===he+a.nodeMinColumnSpace(b[E+1],!0)?ge=oe-1:ge=oe}else E===x-1?(Ee=b[E-1].column,ge=oe-Ee===ue+a.nodeMinColumnSpace(b[E-1],!1)?oe+1:oe):(Ee=b[E-1].column,ue=Ee+a.nodeMinColumnSpace(b[E-1],!1)+ue+1,Ee=b[E+1].column,he=Ee-a.nodeMinColumnSpace(b[E+1],!0)-he-1,ge=(ue+he)/2|0);else E===0&&E===x-1?ge=ne[E]:E===0?(Ee=b[E+1].column,he=Ee-a.nodeMinColumnSpace(b[E+1],!0)-he-1,ge=Math.min(ne[E],he)):E===x-1?(Ee=b[E-1].column,ue=Ee+a.nodeMinColumnSpace(b[E-1],!1)+ue+1,ge=Math.max(ne[E],ue)):(Ee=b[E-1].column,ue=Ee+a.nodeMinColumnSpace(b[E-1],!1)+ue+1,Ee=b[E+1].column,he=Ee-a.nodeMinColumnSpace(b[E+1],!0)-he-1,ue<ne[E]&&ne[E]<he?ge=ne[E]:ue>=ne[E]?ge=ue:he<=ne[E]&&(ge=he));ge!==oe&&(z=!0,b[E].column=ge)}Wf(a,y,b),a.normalize()}function I1(a,y){for(var E=!0,b=a.network.vertexes.iterator;b.next();){var x=b.value,z=a.nodeMinColumnSpace(x,!0),ne=a.nodeMinColumnSpace(x,!1);if(x.column-z<=y&&x.column+ne>=y){E=!1;break}}if(a=!1,E)for(b.reset();b.next();)E=b.value,E.column>y&&(--E.column,a=!0);return a}function k1(a,y){var E=y+1,b,x=[],z=[];for(b=0;b<=a.Ia;b++)x[b]=!1,z[b]=!1;for(var ne=a.network.vertexes.iterator;ne.next();){b=ne.value;var oe=b.column-a.nodeMinColumnSpace(b,!0),ue=b.column+a.nodeMinColumnSpace(b,!1);oe<=y&&ue>=y&&(x[b.layer]=!0),oe<=E&&ue>=E&&(z[b.layer]=!0)}for(oe=!0,E=!1,b=0;b<=a.Ia;b++)oe=oe&&!(x[b]&&z[b]);if(oe)for(ne.reset();ne.next();)a=ne.value,a.column>y&&(--a.column,E=!0);return E}function Lb(a,y){for(var E=0;E<=a.Ra;E++)for(;I1(a,E););for(a.normalize(),E=0;E<a.Ra;E++)for(;k1(a,E););a.normalize();var b;if(0<y)for(E=0;E<=a.Ra;E++){var x=Kc(a),z=X0(a);for(b=z+1;z<b;){b=z,Ib(a,E,1);var ne=X0(a);ne>z?Pd(a,x):ne<z&&(z=ne,x=Kc(a))}}if(0>y)for(E=a.Ra;0<=E;E--)for(x=Kc(a),z=X0(a),b=z+1;z<b;)b=z,Ib(a,E,-1),ne=X0(a),ne>z?Pd(a,x):ne<z&&(z=ne,x=Kc(a));a.normalize()}function Ib(a,y,E){a.le=0;for(var b=a.network.vertexes.iterator;b.next();)b.value.component=-1;if(0<E)for(b.reset();b.next();){var x=b.value;x.column-a.nodeMinColumnSpace(x,!0)<=y&&(x.component=a.le)}if(0>E)for(b.reset();b.next();)x=b.value,x.column+a.nodeMinColumnSpace(x,!1)>=y&&(x.component=a.le);for(a.le++,b.reset();b.next();)y=b.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(b.reset();b.next();){z=b.value;for(var ne=z.layer,oe=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),ue=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));oe<=ue;oe++)x[ne*(a.Ra+1)+oe]=z.component}for(z=0;z<=a.Ia;z++){if(0<E)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>E)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(ue=ne[ne.length-1],ne.pop(),x[ue])for(x[ue]=!1,z=0;z<a.le;z++)y[ue*a.le+z]&&ne.splice(0,0,z);if(0<E)for(b.reset();b.next();)a=b.value,x[a.component]&&--a.column;if(0>E)for(b.reset();b.next();)E=b.value,x[E.component]&&(E.column+=1)}function R1(a){for(var y=Oi(),E=a.fl.length,b=0;b<=E;b++)y[b]=[];for(b=a.network.vertexes.iterator;b.next();){var x=b.value;y[E-x.layer][x.index]=x}E=new qt,M1(y,E);var z=null,ne=null,oe=null,ue=null,he=(a.ve&1)!==0,ge=(a.ve&2)!==0,Ee=(a.ve&4)!==0,ke=(a.ve&8)!==0;for(he&&(a.verticalAlignment(y,E,!0),z=J0(a,y,!0,!1)),y.reverse(),Ee&&(a.verticalAlignment(y,E,!1),oe=J0(a,y,!1,!1)),b=ur(y),x=b.next();!x.done;x=b.next())x.value.reverse();ke&&(a.verticalAlignment(y,E,!1),ue=J0(a,y,!1,!0)),y.reverse(),ge&&(a.verticalAlignment(y,E,!0),ne=J0(a,y,!0,!0)),Yi(y),a.u(z,ne,oe,ue),a.network.vertexes.each(function(Ve){var Ze=Oi();he&&Ze.push(z.get(Ve)),ge&&Ze.push(ne.get(Ve)),Ee&&Ze.push(oe.get(Ve)),ke&&Ze.push(ue.get(Ve)),Ze.sort(function(Ot,Pt){return Ot-Pt});var st=Ze.length;st=(Ze[Math.floor((st-1)/2)]+Ze[Math.ceil((st-1)/2)])/2,Yi(Ze),Ve.zc=st})}function M1(a,y){for(var E=a.length,b=1;b<E-1;b++)for(var x=0,z=0,ne=a[b],oe=a[b+1],ue=0;z<oe.length;ue++){var he=oe[ue];e:{if(he.node===null){var ge=Uy(he);if(0<ge.length){ge=ge[0].node===null;break e}}ge=!1}var Ee=ge;if(ue===oe.length-1||Ee){for(ge=ne.length-1,Ee&&(ge=Uy(he)[0].index);z<=ue;){if(he=oe[z],!he.bo){Ee=[];for(var ke=ur(he.sourceEdgesArrayAccess),Ve=ke.next();!Ve.done;Ve=ke.next())Ve=Ve.value,Ve.valid&&Ee.push(Ve);he.bo=Ee}for(he=ur(he.bo),Ee=he.next();!Ee.done;Ee=he.next())Ee=Ee.value,ke=Ee.fromVertex.index,(ke<x||ke>ge)&&y.add(Ee);z++}x=ge}}}xs.prototype.verticalAlignment=function(a,y,E){O1(a),a=ur(a);for(var b=a.next();!b.done;b=a.next()){var x=-1;b=ur(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var ne=E?Uy(z):B1(z),oe=ne.length;if(0<oe){ne.sort(function(Ee,ke){return Ee.vi-ke.vi});var ue=(oe-1)/2;for(oe=Math.floor(ue),ue=Math.ceil(ue);oe<=ue;oe++)if(z.align===z){var he=ne[oe],ge=void 0;ge=E?rv(he,z):rv(z,he),!y.contains(ge)&&x<he.vi&&(he.align=z,z.root=he.root,z.align=he.root,x=he.vi)}}}}};function O1(a){for(var y=0;y<a.length;y++)for(var E=a[y],b=0;b<E.length;b++){var x=E[b];x.root=x,x.align=x,x.Tz=y,x.vi=b}}function J0(a,y,E,b){for(var x=a.K===90||a.K===270,z=ur(y),ne=z.next();!ne.done;ne=z.next()){var oe=ur(ne.value);for(ne=oe.next();!ne.done;ne=oe.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=ur(y),oe=z.next();!oe.done;oe=z.next()){oe=ur(oe.value);for(var ue=oe.next();!ue.done;ue=oe.next())if(ue=ue.value,ue.root===ue){for(var he=0,ge=ue;ge.align!==ue;){var Ee=ge.align,ke=ne?ge.width:ge.height,Ve=ne?Ee.width:Ee.height;if(E){var Ze=rv(ge,Ee),st=Ze.portFromPos,Ot=Ze.portToPos;Ze.link!==null&&(ge.node&&ge.node!==Ze.link.fromNode&&(st=ne?ge.focusX:ge.focusY),Ee.node&&Ee.node!==Ze.link.toNode&&(Ot=ne?Ee.focusX:Ee.focusY))}else Ze=rv(Ee,ge),st=Ze.portToPos,Ot=Ze.portFromPos,Ze.link!==null&&(ge.node&&ge.node!==Ze.link.toNode&&(st=ne?ge.focusX:ge.focusY),Ee.node&&Ee.node!==Ze.link.fromNode&&(Ot=ne?Ee.focusX:Ee.focusY));ke=b?ge.qg+(ke-st)-(Ve-Ot):ge.qg+st-Ot,Ee.qg=ke,he=Math.min(he,ke),ge=ge.align}ge=ue;do ge.qg=ge.qg-he,ge=ge.align;while(ge!==ue)}}for(E=ur(y),ne=E.next();!ne.done;ne=E.next())for(z=ur(ne.value),ne=z.next();!ne.done;ne=z.next())ne=ne.value,ne.root===ne&&Rb(a,ne,y);for(E=0;E<y.length;E++)if(!(0>=y[E].length)&&(ne=y[E][0],ne.sd===ne)){ne.sd.shift===1/0&&(ne.sd.shift=0),ne=E,oe=0;do{for(z=y[ne][oe];z.align!==z.root;)z=z.align,ne++,0<z.vi&&(oe=Mb(z,y),oe.sd.shift=Math.min(oe.sd.shift,z.sd.shift+z.zc+z.qg-(oe.zc+oe.qg+(x?oe.width:oe.height)+a.columnSpacing)));oe=z.vi+1}while(ne<y.length&&oe<y[ne].length&&z.sd===y[ne][oe].sd)}for(a=new xr,y=ur(y),ne=y.next();!ne.done;ne=y.next())for(E=ur(ne.value),ne=E.next();!ne.done;ne=E.next())ne=ne.value,ne.zc=ne.zc+ne.sd.shift+ne.qg,z=x?ne.width:ne.height,a.add(ne,b?-ne.zc-z:ne.zc);return a}function Rb(a,y,E){if(isNaN(y.zc)){y.zc=0;var b=y;do{if(0<b.vi){var x=Mb(b,E),z=x.root;Rb(a,z,E),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-b.qg+a.columnSpacing))}b=b.align}while(b!==y);for(;b.align!==y;)b=b.align,b.zc=y.zc,b.sd=y.sd}}function Mb(a,y){var E=a.Tz;return a=a.vi,1>a&&Pn("Could not determine previous vertex in layer"),y[E][a-1]}xs.prototype.u=function(a){for(var y=[],E=0;E<arguments.length;++E)y[E]=arguments[E];E=-1;for(var b=Oi(),x=Oi(),z=1/0,ne=0;4>ne;ne++)if(y[ne]){var oe=D1(this,y[ne],b,x,ne);oe<z&&(E=ne,z=oe)}for(z={},ne=0;4>ne;z={delta:z.delta},ne++)y[ne]&&(z.delta=ne===0||ne===2?b[E]-b[ne]:x[E]-x[ne],z.delta!==0&&y[ne].each(function(ue){return function(he){he.value+=ue.delta}}(z)));Yi(b),Yi(x)};function D1(a,y,E,b,x){if(!y||y.count===0)return E[x]=0,b[x]=0,1/0;var z=1/0,ne=-1/0;return y.each(function(oe){var ue=oe.key;oe=oe.value,ue=a.K===90||a.K===270?ue.width:ue.height,oe<z&&(z=oe),oe+ue>ne&&(ne=oe+ue)}),E[x]=z,b[x]=ne,ne-z}xs.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=$0(this,!0),y=$0(this,!1),E=this.network.edges.iterator;E.next();){var b=E.value.link;b!==null&&(b.fromSpot=a,b.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function $0(a,y){return a.K===270?y?lu:Hl:a.K===90?y?Hl:lu:a.K===180?y?mu:kl:y?kl:mu}xs.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,E=y.layer;this.he[E]=Math.max(this.he[E],this.nodeMinLayerSpace(y,!0)),this.Ld[E]=Math.max(this.Ld[E],this.nodeMinLayerSpace(y,!1))}y=0,E=this.ie;for(var b=0;b<=this.Ia;b++){var x=E;0>=this.he[b]+this.Ld[b]&&(x=0),0<b&&(y+=x/2),this.K===90||this.K===0?(y+=this.Ld[b],this.Kd[b]=y,y+=this.he[b]):(y+=this.he[b],this.Kd[b]=y,y+=this.Ld[b]),b<this.Ia&&(y+=x/2),this.Ta[b]=y}for(E=y,y=this.arrangementOrigin,b=0;b<=this.Ia;b++)this.K===270?this.Kd[b]=y.y+this.Kd[b]:this.K===90?(this.Kd[b]=y.y+E-this.Kd[b],this.Ta[b]=E-this.Ta[b]):this.K===180?this.Kd[b]=y.x+this.Kd[b]:(this.Kd[b]=y.x+E-this.Kd[b],this.Ta[b]=E-this.Ta[b]);E=this.ve!==0,a.reset(),b=this.K===270||this.K===90;for(var z=1/0,ne=x=1/0,oe=-1/0;a.next();){var ue=a.value,he=ue.layer,ge=ue.column|0;b?(ne=y.x+this.kc*ge,he=this.Kd[he]):(ne=this.Kd[he],he=y.y+this.kc*ge),ue.centerX=ne,ue.centerY=he,E&&isFinite(ue.zc)&&(b?ue.node?ue.x=y.x+ue.zc:ue.centerX=y.x+ue.zc:ue.node?ue.y=y.y+ue.zc:ue.centerY=y.y+ue.zc),z=Math.min(ue.x,z),x=Math.min(ue.y,x),b?(ne=z,oe=Math.max(oe,ue.bounds.right)):(ne=x,oe=Math.max(oe,ue.bounds.bottom))}for(this.xw=oe-ne,z=y.x-z,y=y.y-x,this.Rf=new xt(E&&b?0:z,E&&!b?0:y),a.reset();a.next();)E=a.value,E.x+=z,E.y+=y,E.commit()},xs.prototype.Gu=function(){for(var a=0,y=this.ie,E=0;E<=this.Ia;E++)a+=this.he[E],a+=this.Ld[E];a+=this.Ia*y,y=[],E=this.ve!==0?this.xw:this.kc*this.Ra;for(var b=this.maxLayer;0<=b;b--)this.K===270?b===0?y.push(new Un(0,0,E,Math.abs(this.Ta[0]))):y.push(new Un(0,this.Ta[b-1],E,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new Un(0,this.Ta[0],E,Math.abs(this.Ta[0]-a))):y.push(new Un(0,this.Ta[b],E,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new Un(0,0,Math.abs(this.Ta[0]),E)):y.push(new Un(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),E)):b===0?y.push(new Un(this.Ta[0],0,Math.abs(this.Ta[0]-a),E)):y.push(new Un(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),E));this.commitLayers(y,this.Rf)},xs.prototype.commitLayers=function(){},xs.prototype.commitLinks=function(){for(var a=this.network.edges.iterator,y;a.next();)y=a.value.link,y!==null&&(y.uh(),y.Fj(),y.zf());for(a.reset();a.next();)y=a.value.link,y!==null&&y.vg();for(a.reset();a.next();){var E=a.value;if(y=E.link,y!==null){y.uh();var b=y,x=b.fromNode,z=b.toNode,ne=b.fromPort,oe=b.toPort;if(x!==null){var ue=x.findVisibleNode();ue!==null&&ue!==x&&(x=ue,ne=ue.port)}z!==null&&(ue=z.findVisibleNode(),ue!==null&&ue!==z&&(z=ue,oe=ue.port));var he=y.computeSpot(!0,ne);ue=y.computeSpot(!1,oe);var ge=E.fromVertex,Ee=E.toVertex;if(E.valid)y.curve===Ed&&y.pointsCount===4&&(ge.column===Ee.column&&this.alignOption===0?(E=y.getLinkPoint(x,ne,he,!0,!1,z,oe),oe=y.getLinkPoint(z,oe,ue,!1,!1,x,ne),E.w()||E.set(x.actualBounds.center),oe.w()||oe.set(z.actualBounds.center),y.Fj(),y.yf(E.x,E.y),y.yf((2*E.x+oe.x)/3,(2*E.y+oe.y)/3),y.yf((E.x+2*oe.x)/3,(E.y+2*oe.y)/3),y.yf(oe.x,oe.y)):(E=b=!1,ne!==null&&he===zs&&(b=!0),oe!==null&&ue===zs&&(E=!0),(b||E)&&(ue=null,b&&(ue=y.getLinkPointFromPoint(x,ne,ne.ga(la),y.i(3),!0),ue.w()||ue.set(x.actualBounds.center),y.L(0,ue.x,ue.y)),x=null,E&&(x=y.getLinkPointFromPoint(z,oe,oe.ga(la),y.i(0),!1),x.w()||x.set(z.actualBounds.center),y.L(3,x.x,x.y)),ue&&(z=y.i(2),y.L(1,(2*ue.x+z.x)/3,(2*ue.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(ge.layer===Ee.layer)y.zf();else{var ke=!1,Ve=!1,Ze=this.ie,st=y.firstPickIndex+1;if(y.isOrthogonal){Ve=!0;var Ot=y.pointsCount;4<Ot&&y.points.removeRange(2,Ot-3)}else if(y.curve===Ed)ke=!0,Ot=y.pointsCount,4<Ot&&y.points.removeRange(2,Ot-3),Ot===4&&(st=2);else{Ot=y.pointsCount;var Pt=he===zs,zt=ue===zs;2<Ot&&Pt&&zt?y.points.removeRange(1,Ot-2):3<Ot&&Pt&&!zt?y.points.removeRange(1,Ot-3):3<Ot&&!Pt&&zt?y.points.removeRange(2,Ot-2):4<Ot&&!Pt&&!zt&&y.points.removeRange(2,Ot-3)}if(E.rev){for(;Ee!==null&&ge!==Ee;){var Kt=Ot=null;for(Pt=Ee.sourceEdges.iterator;Pt.next()&&(zt=Pt.value,zt.link!==E.link||(Ot=zt.fromVertex,Kt=zt.toVertex,Ot.node!==null)););if(Ot===null)break;if(Ot!==ge){Pt=y.i(st-1).x,zt=y.i(st-1).y;var Jt=Ot.centerX,dn=Ot.centerY;if(Ve)this.K===180||this.K===0?st===y.firstPickIndex+1?(y.m(st++,Pt,zt),y.m(st++,Pt,dn)):(Kt!==null?Kt.centerY:zt)!==dn&&(Kt=this.Ta[Ot.layer-1]+this.Rf.x,y.m(st++,Kt,zt),y.m(st++,Kt,dn)):st===y.firstPickIndex+1?(y.m(st++,Pt,zt),y.m(st++,Jt,zt)):(Kt!==null?Kt.centerX:Pt)!==Jt&&(Kt=this.Ta[Ot.layer-1]+this.Rf.y,y.m(st++,Pt,Kt),y.m(st++,Jt,Kt));else if(st===y.firstPickIndex+1){Kt=Math.max(10,this.he[Ee.layer]);var kn=Math.max(10,this.Ld[Ee.layer]);if(ke)this.K===180?Jt<=Ee.bounds.x?(Ee=Ee.bounds.x,y.m(st++,Ee-Kt,dn),y.m(st++,Ee,dn),y.m(st++,Ee+kn,dn)):(y.m(st++,Jt-Kt,dn),y.m(st++,Jt,dn),y.m(st++,Jt+kn,dn)):this.K===90?dn>=Ee.bounds.bottom?(Ee=Ee.bounds.y+Ee.bounds.height,y.m(st++,Jt,Ee+kn),y.m(st++,Jt,Ee),y.m(st++,Jt,Ee-Kt)):(y.m(st++,Jt,dn+kn),y.m(st++,Jt,dn),y.m(st++,Jt,dn-Kt)):this.K===270?dn<=Ee.bounds.y?(Ee=Ee.bounds.y,y.m(st++,Jt,Ee-Kt),y.m(st++,Jt,Ee),y.m(st++,Jt,Ee+kn)):(y.m(st++,Jt,dn-Kt),y.m(st++,Jt,dn),y.m(st++,Jt,dn+kn)):this.K===0&&(Jt>=Ee.bounds.right?(Ee=Ee.bounds.x+Ee.bounds.width,y.m(st++,Ee+kn,dn),y.m(st++,Ee,dn),y.m(st++,Ee-Kt,dn)):(y.m(st++,Jt+kn,dn),y.m(st++,Jt,dn),y.m(st++,Jt-Kt,dn)));else{y.m(st++,Pt,zt);var Xr=0;this.K===180||this.K===0?((this.K===180?Jt>=Ee.bounds.right:Jt<=Ee.bounds.x)&&(Xr=(this.K===0?-Kt:kn)/2),y.m(st++,Pt+Xr,dn)):((this.K===270?dn>=Ee.bounds.bottom:dn<=Ee.bounds.y)&&(Xr=(this.K===90?-Kt:kn)/2),y.m(st++,Jt,zt+Xr)),y.m(st++,Jt,dn)}}else Kt=Math.max(10,this.he[Ot.layer]),kn=Math.max(10,this.Ld[Ot.layer]),ke?this.K===180?(y.m(st++,Jt-Kt-Ze,dn),y.m(st++,Math.min(Jt-Kt+Ze/2,Jt),dn),y.m(st++,Jt,dn),y.m(st++,Jt,dn),y.m(st++,Math.max(Jt+kn-Ze/2,Jt),dn),y.m(st++,Jt+kn+Ze,dn)):this.K===90?(y.m(st++,Jt,dn+kn+Ze),y.m(st++,Jt,Math.max(dn+kn-Ze/2,dn)),y.m(st++,Jt,dn),y.m(st++,Jt,dn),y.m(st++,Jt,Math.min(dn-Kt+Ze/2,dn)),y.m(st++,Jt,dn-Kt-Ze)):this.K===270?(y.m(st++,Jt,dn-Kt-Ze),y.m(st++,Jt,Math.min(dn-Kt+Ze/2,dn)),y.m(st++,Jt,dn),y.m(st++,Jt,dn),y.m(st++,Jt,Math.max(dn+kn-Ze/2,dn)),y.m(st++,Jt,dn+kn+Ze)):(y.m(st++,Jt+kn+Ze,dn),y.m(st++,Math.max(Jt+kn-Ze/2,Jt),dn),y.m(st++,Jt,dn),y.m(st++,Jt,dn),y.m(st++,Math.min(Jt-Kt+Ze/2,Jt),dn),y.m(st++,Jt-Kt-Ze,dn)):y.m(st++,Jt,dn)}Ee=Ot}(oe===null||he!==zs||Ve)&&(Pt=y.i(st-1).x,zt=y.i(st-1).y,Jt=y.i(st).x,dn=y.i(st).y,Ve?(Ze=this.Ld[ge.layer],this.K===180||this.K===0?(Ve=zt,Ve>=ge.bounds.y&&Ve<=ge.bounds.bottom&&(this.K===180?Jt>=ge.bounds.x:Jt<=ge.bounds.right)&&(Ee=ge.centerX+(this.K===180?-Ze:Ze),Ve<ge.bounds.y+ge.bounds.height/2?Ve=ge.bounds.y-this.kc/2:Ve=ge.bounds.bottom+this.kc/2,y.m(st++,Ee,zt),y.m(st++,Ee,Ve)),y.m(st++,Jt,Ve)):(Ve=Pt,Ve>=ge.bounds.x&&Ve<=ge.bounds.right&&(this.K===270?dn>=ge.bounds.y:dn<=ge.bounds.bottom)&&(Ee=ge.centerY+(this.K===270?-Ze:Ze),Ve<ge.bounds.x+ge.bounds.width/2?Ve=ge.bounds.x-this.kc/2:Ve=ge.bounds.right+this.kc/2,y.m(st++,Pt,Ee),y.m(st++,Ve,Ee)),y.m(st++,Ve,dn)),y.m(st++,Jt,dn)):ke?(Kt=Math.max(10,this.he[ge.layer]),kn=Math.max(10,this.Ld[ge.layer]),this.K===180&&Jt>=ge.bounds.x?(Ee=ge.bounds.x+ge.bounds.width,y.L(st-2,Ee,zt),y.L(st-1,Ee+kn,zt)):this.K===90&&dn<=ge.bounds.bottom?(Ee=ge.bounds.y,y.L(st-2,Pt,Ee),y.L(st-1,Pt,Ee-Kt)):this.K===270&&dn>=ge.bounds.y?(Ee=ge.bounds.y+ge.bounds.height,y.L(st-2,Pt,Ee),y.L(st-1,Pt,Ee+kn)):this.K===0&&Jt<=ge.bounds.right&&(Ee=ge.bounds.x,y.L(st-2,Ee,zt),y.L(st-1,Ee-Kt,zt))):(Kt=Math.max(10,this.he[ge.layer]),kn=Math.max(10,this.Ld[ge.layer]),Ve=0,this.K===180||this.K===0?((this.K===180?Jt<=ge.bounds.x:Jt>=ge.bounds.right)&&(Ve=(this.K===0?kn:-Kt)/2),y.m(st++,Jt+Ve,zt)):((this.K===270?dn<=ge.bounds.y:dn>=ge.bounds.bottom)&&(Ve=(this.K===90?kn:-Kt)/2),y.m(st++,Pt,dn+Ve)),y.m(st++,Jt,dn)))}else{for(;ge!==null&&ge!==Ee;){for(Kt=Ot=null,ge=ge.destinationEdges.iterator;ge.next()&&(Pt=ge.value,Pt.link!==E.link||(Ot=Pt.toVertex,Kt=Pt.fromVertex,Kt.node!==null&&(Kt=null),Ot.node!==null)););if(Ot===null)break;Ot!==Ee&&(Pt=y.i(st-1).x,zt=y.i(st-1).y,Jt=Ot.centerX,dn=Ot.centerY,Ve?this.K===180||this.K===0?(Kt!==null?Kt.centerY:zt)!==dn&&(Kt=this.Ta[Ot.layer]+this.Rf.x,st===y.firstPickIndex+1&&(Kt=this.K===0?Math.max(Kt,Pt):Math.min(Kt,Pt)),y.m(st++,Kt,zt),y.m(st++,Kt,dn)):(Kt!==null?Kt.centerX:Pt)!==Jt&&(Kt=this.Ta[Ot.layer]+this.Rf.y,st===y.firstPickIndex+1&&(Kt=this.K===90?Math.max(Kt,zt):Math.min(Kt,zt)),y.m(st++,Pt,Kt),y.m(st++,Jt,Kt)):(Kt=Math.max(10,this.he[Ot.layer]),kn=Math.max(10,this.Ld[Ot.layer]),ke?this.K===180?(y.m(st++,Jt+kn+Ze,dn),y.m(st++,Math.max(Jt+kn-Ze/2,Jt),dn),y.m(st++,Jt,dn),y.m(st++,Jt,dn),y.m(st++,Math.min(Jt-Kt+Ze/2,Jt),dn),y.m(st++,Jt-Kt-Ze,dn)):this.K===90?(y.m(st++,Jt,dn-Kt-Ze),y.m(st++,Jt,Math.min(dn-Kt+Ze/2,dn)),y.m(st++,Jt,dn),y.m(st++,Jt,dn),y.m(st++,Jt,Math.max(dn+kn-Ze/2,dn)),y.m(st++,Jt,dn+kn+Ze)):this.K===270?(y.m(st++,Jt,dn+kn+Ze),y.m(st++,Jt,Math.max(dn+kn-Ze/2,dn)),y.m(st++,Jt,dn),y.m(st++,Jt,dn),y.m(st++,Jt,Math.min(dn-Kt+Ze/2,dn)),y.m(st++,Jt,dn-Kt-Ze)):(y.m(st++,Jt-Kt-Ze,dn),y.m(st++,Math.min(Jt-Kt+Ze/2,Jt),dn),y.m(st++,Jt,dn),y.m(st++,Jt,dn),y.m(st++,Math.max(Jt+kn-Ze/2,Jt),dn),y.m(st++,Jt+kn+Ze,dn)):this.K===180?(y.m(st++,Jt+kn,dn),y.m(st++,Jt-Kt,dn)):this.K===90?(y.m(st++,Jt,dn-Kt),y.m(st++,Jt,dn+kn)):this.K===270?(y.m(st++,Jt,dn+kn),y.m(st++,Jt,dn-Kt)):(y.m(st++,Jt-Kt,dn),y.m(st++,Jt+kn,dn)))),ge=Ot}Ve&&(Pt=y.i(st-1).x,zt=y.i(st-1).y,Jt=y.i(st).x,dn=y.i(st).y,this.K===180||this.K===0?zt!==dn&&(Kt=this.K===0?Math.min(Math.max((Jt+Pt)/2,this.Ta[Ee.layer]+this.Rf.x),Jt):Math.max(Math.min((Jt+Pt)/2,this.Ta[Ee.layer]+this.Rf.x),Jt),y.m(st++,Kt,zt),y.m(st++,Kt,dn)):Pt!==Jt&&(Kt=this.K===90?Math.min(Math.max((dn+zt)/2,this.Ta[Ee.layer]+this.Rf.y),dn):Math.max(Math.min((dn+zt)/2,this.Ta[Ee.layer]+this.Rf.y),dn),y.m(st++,Pt,Kt),y.m(st++,Jt,Kt)))}b!==null&&ke&&4<=y.pointsCount&&(ne!==null&&(ne=he===zs?y.getLinkPointFromPoint(x,ne,ne.ga(la),y.i(3),!0):y.i(0),he===zs&&(he=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(ne.x+he.x)/2,he.y),y.L(2,b.x,(he.y+b.y)/2)):(y.L(1,he.x,(ne.y+he.y)/2),y.L(2,(he.x+b.x)/2,b.y))),ne.w()||ne.set(x.actualBounds.center),y.L(0,ne.x,ne.y)),oe!==null&&(x=ue===zs?y.getLinkPointFromPoint(z,oe,oe.ga(la),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),ue===zs&&(oe=y.i(y.pointsCount-3),ue=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(x.x+oe.x)/2,oe.y),y.L(y.pointsCount-2,ue.x,(oe.y+ue.y)/2)):(y.L(y.pointsCount-2,oe.x,(x.y+oe.y)/2),y.L(y.pointsCount-3,(oe.x+ue.x)/2,ue.y))),x.w()||x.set(z.actualBounds.center),y.L(y.pointsCount-1,x.x,x.y))),y.zf(),E.commit()}}}this.avoidOrthogonalOverlaps()},xs.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Ar,y=this.network.edges.iterator;y.next();){var E=y.value.link;E!==null&&E.isOrthogonal&&!a.contains(E)&&a.add(E)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,E=[],a=a.iterator;a.next();){var b=a.value;if(b!==null&&b.isOrthogonal)for(var x=2;x<b.pointsCount-3;x++){var z=b.i(x),ne=b.i(x+1);if(this.B(z.y,ne.y)&&!this.B(z.x,ne.x)){var oe=new Kf;oe.layer=Math.floor(z.y/2);var ue=b.i(0),he=b.i(b.pointsCount-1);if(oe.first=ue.x*ue.x+ue.y,oe.jc=he.x*he.x+he.y,oe.rd=Math.min(z.x,ne.x),oe.Ic=Math.max(z.x,ne.x),oe.index=x,oe.link=b,x+2<b.pointsCount){ue=b.i(x-1),he=b.i(x+2);var ge=0;ue.y<z.y?ge=he.y<z.y?3:z.x<ne.x?2:1:ue.y>z.y&&(ge=he.y>z.y?0:ne.x<z.x?2:1),oe.j=ge}E.push(oe)}}}if(1<E.length)for(E.sort(this.Vx),a=0;a<E.length;){for(z=E[a].layer,b=a+1;b<E.length&&E[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(ne=E[z].Ic,x=a+1;x<b&&E[x].rd<ne;)ne=Math.max(ne,E[x].Ic),x++;if(ne=x-z,1<ne){for(this.zi(E,this.Js,z,z+ne),ge=1,oe=E[z].jc,ue=z;ue<x;ue++)he=E[ue],he.jc!==oe&&(ge++,oe=he.jc);this.zi(E,this.Ux,z,z+ne);var Ee=1;for(oe=E[z].first,ue=z;ue<x;ue++)he=E[ue],he.first!==oe&&(Ee++,oe=he.first);for(ue=!0,he=Ee,ge<Ee?(ue=!1,he=ge,oe=E[z].jc,this.zi(E,this.Js,z,z+ne)):oe=E[z].first,ge=0,Ee=z;Ee<x;Ee++){var ke=E[Ee];(ue?ke.first:ke.jc)!==oe&&(ge++,oe=ue?ke.first:ke.jc);var Ve=ke.link;z=Ve.i(ke.index),ne=Ve.i(ke.index+1);var Ze=this.linkSpacing*(ge-(he-1)/2);y++,Ve.uh(),Ve.L(ke.index,z.x,z.y+Ze),Ve.L(ke.index+1,ne.x,ne.y+Ze),Ve.zf()}}z=x}a=b}}else{for(y=0,E=[],a=a.iterator;a.next();)if(b=a.value,b!==null&&b.isOrthogonal)for(x=2;x<b.pointsCount-3;x++)z=b.i(x),ne=b.i(x+1),this.B(z.x,ne.x)&&!this.B(z.y,ne.y)&&(oe=new Kf,oe.layer=Math.floor(z.x/2),ue=b.i(0),he=b.i(b.pointsCount-1),oe.first=ue.x+ue.y*ue.y,oe.jc=he.x+he.y*he.y,oe.rd=Math.min(z.y,ne.y),oe.Ic=Math.max(z.y,ne.y),oe.index=x,oe.link=b,x+2<b.pointsCount&&(ue=b.i(x-1),he=b.i(x+2),ge=0,ue.x<z.x?ge=he.x<z.x?3:z.y<ne.y?2:1:ue.x>z.x&&(ge=he.x>z.x?0:ne.y<z.y?2:1),oe.j=ge),E.push(oe));if(1<E.length)for(E.sort(this.Vx),a=0;a<E.length;){for(z=E[a].layer,b=a+1;b<E.length&&E[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(ne=E[z].Ic,x=a+1;x<b&&E[x].rd<ne;)ne=Math.max(ne,E[x].Ic),x++;if(ne=x-z,1<ne){for(this.zi(E,this.Js,z,z+ne),ge=1,oe=E[z].jc,ue=z;ue<x;ue++)he=E[ue],he.jc!==oe&&(ge++,oe=he.jc);for(this.zi(E,this.Ux,z,z+ne),Ee=1,oe=E[z].first,ue=z;ue<x;ue++)he=E[ue],he.first!==oe&&(Ee++,oe=he.first);for(ue=!0,he=Ee,ge<Ee?(ue=!1,he=ge,oe=E[z].jc,this.zi(E,this.Js,z,z+ne)):oe=E[z].first,ge=0,Ee=z;Ee<x;Ee++)ke=E[Ee],(ue?ke.first:ke.jc)!==oe&&(ge++,oe=ue?ke.first:ke.jc),Ve=ke.link,z=Ve.i(ke.index),ne=Ve.i(ke.index+1),Ze=this.linkSpacing*(ge-(he-1)/2),y++,Ve.uh(),Ve.L(ke.index,z.x+Ze,z.y),Ve.L(ke.index+1,ne.x+Ze,ne.y),Ve.zf()}z=x}a=b}}}},We=xs.prototype,We.Vx=function(a,y){return a instanceof Kf&&y instanceof Kf&&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},We.Ux=function(a,y){return a instanceof Kf&&y instanceof Kf&&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},We.Js=function(a,y){return a instanceof Kf&&y instanceof Kf&&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},We.B=function(a,y){return a-=y,-1<a&&1>a},We.zi=function(a,y,E,b){var x=a.length,z=b-E;if(!(1>=z))if((0>E||E>=x-1)&&Pn("not in range 0 <= from < length: "+E),z===2)b=a[E],x=a[E+1],0<y(b,x)&&(a[E]=x,a[E+1]=b);else if(E===0)if(b>=x)a.sort(y);else for(E=a.slice(0,b),E.sort(y),y=0;y<b;y++)a[y]=E[y];else if(b>=x)for(b=a.slice(E),b.sort(y),y=E;y<x;y++)a[y]=b[y-E];else for(x=a.slice(E,b),x.sort(y),y=E;y<b;y++)a[y]=x[y-E]};function Vf(a,y){var E=a.tc[y];if(E>=a.He.length){for(var b=[],x=0;x<a.He.length;x++)b[x]=a.He[x];a.He=b}for(a.He[E]===void 0||a.He[E]===null?b=[]:(b=a.He[E],a.He[E]=null),a=a.fl[y],y=0;y<a.length;y++)E=a[y],b[E.index]=E;return b}function Wf(a,y,E){a.He[a.tc[y]]=E}tr.Object.defineProperties(xs.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()):Pn("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==Ry&&a!==q0&&a!==Tm||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==ev&&a!==My&&a!==Oy||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==tv&&a!==Dy&&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 q0=new Mn(xs,"CycleDepthFirst",0),Ry=new Mn(xs,"CycleGreedy",1),Tm=new Mn(xs,"CycleFromLayers",2),ev=new Mn(xs,"LayerOptimalLinkLength",0),My=new Mn(xs,"LayerLongestPathSink",1),Oy=new Mn(xs,"LayerLongestPathSource",2),tv=new Mn(xs,"InitDepthFirstOut",0),Dy=new Mn(xs,"InitDepthFirstIn",1),Fy=new Mn(xs,"InitNaive",2),By=new Mn(xs,"AggressiveNone",0),nv=new Mn(xs,"AggressiveLess",1),_y=new Mn(xs,"AggressiveMore",2),F1=8;xs.className="LayeredDigraphLayout",xs.CycleDepthFirst=q0,xs.CycleGreedy=Ry,xs.CycleFromLayers=Tm,xs.LayerOptimalLinkLength=ev,xs.LayerLongestPathSink=My,xs.LayerLongestPathSource=Oy,xs.InitDepthFirstOut=tv,xs.InitDepthFirstIn=Dy,xs.InitNaive=Fy,xs.AggressiveNone=By,xs.AggressiveLess=nv,xs.AggressiveMore=_y,xs.PackNone=0,xs.PackExpand=1,xs.PackStraighten=2,xs.PackMedian=4,xs.PackAll=15,xs.AlignNone=0,xs.AlignUpperLeft=1,xs.AlignUpperRight=2,xs.AlignLowerLeft=4,xs.AlignLowerRight=8,xs.AlignAll=15;function Kf(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Kf.className="SegInfo";function Ig(a){Hs.call(this,a)}vn(Ig,Hs),Ig.prototype.createVertex=function(){return new Nd(this)},Ig.prototype.createEdge=function(){return new Am(this)},Ig.className="LayeredDigraphNetwork";function Nd(a){pu.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}vn(Nd,pu);function Ob(a,y){return a.index-y.index}function rv(a,y){if(!a.$n){for(var E=[],b=ur(a.destinationEdgesArrayAccess),x=b.next();!x.done;x=b.next())x=x.value,x.valid&&E.push(x);a.$n=E}for(a=ur(a.$n),E=a.next();!E.done;E=a.next())if(E=E.value,E.toVertex===y)return E;Pn("Unable to find destination edge to given vertex")}function Uy(a){if(!a.co){for(var y=[],E=ur(a.sourceEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(Ob),a.co=y}return a.co}function B1(a){if(!a.ao){for(var y=[],E=ur(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(Ob),a.ao=y}return a.ao}Nd.prototype.Cl=function(a){pu.prototype.Cl.call(this,a),this.bo=this.co=null},Nd.prototype.Kl=function(a){pu.prototype.Kl.call(this,a),this.bo=this.co=null},Nd.prototype.zl=function(a){pu.prototype.zl.call(this,a),this.$n=this.ao=null},Nd.prototype.Jl=function(a){pu.prototype.Jl.call(this,a),this.$n=this.ao=null},tr.Object.defineProperties(Nd.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)}}}),Nd.prototype.deleteDestinationEdge=Nd.prototype.Jl,Nd.prototype.addDestinationEdge=Nd.prototype.zl,Nd.prototype.deleteSourceEdge=Nd.prototype.Kl,Nd.prototype.addSourceEdge=Nd.prototype.Cl,Nd.className="LayeredDigraphVertex";function Am(a){ld.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}vn(Am,ld),tr.Object.defineProperties(Am.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)}}}),Am.className="LayeredDigraphEdge";function Ca(a){gl.call(this),this.Ub=new qt,this.Wn=sv,this.ud=Oh,this.vo=uv,this.Bq=Qy,this.$v=[],this.td=!0,this.Rb=cv,this.$d=new sn(10,10).freeze();var y=new Wp(this);this.W=new Fd(y),this.Y=new Fd(y),this.ru=[],a&&Object.assign(this,a)}vn(Ca,gl),Ca.prototype.cloneProtected=function(a){gl.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)},Ca.prototype.qb=function(a){a.classType===Ca?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:Pn("Unknown enum value: "+a):gl.prototype.qb.call(this,a)},Ca.prototype.createNetwork=function(){return new Wp(this)},Ca.prototype.makeNetwork=function(a){function y(b){if(b instanceof qr)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof Fr){var x=b.fromNode;return x===null||x.isLinkLabel||x.category==="Comment"?!1:(b=b.toNode,!(b===null||b.isLinkLabel||b.category==="Comment"))}return!1}var E=this.createNetwork();return a instanceof xn?(E.lg(a.nodes,!0,y),E.lg(a.links,!0,y)):a instanceof Fo?E.lg(a.memberParts,!1,y):E.lg(a.iterator,!1,y),E},Ca.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 xn&&(y=a),this.path===sv&&y!==null?this.ud=y.isTreePathToChildren?Oh:zp:this.ud=this.path===sv?Oh: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 qt,y=this.Ub.iterator;y.next();){var E=y.value;E instanceof qr?(E=this.network.ki(E),E!==null&&a.add(E)):E instanceof Fd&&a.add(E)}this.Ub=a}for(this.Ub.count===0&&this.findRoots(),a=this.Ub.copy().iterator;a.next();)y=a.value,y.initialized||(y.initialized=!0,Hy(this,y));for(y=this.network.vertexes,a=null;a=_1(y),0<a.count;)y=_b(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 Fd&&Hb(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Fd&&Vb(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Fd&&Wb(this,y);if(this.Cu(),this.layerStyle===hv){for(a=[],y=this.network.vertexes.iterator;y.next();){E=y.value;var b=E.parent;b===null&&(b=E),b=b.angle===0||b.angle===180;var x=a[E.level];x===void 0&&(x=0),a[E.level]=Math.max(x,b?E.width:E.height)}for(y=0;y<a.length;y++)a[y]===void 0&&(a[y]=0);for(this.$v=a,y=this.network.vertexes.iterator;y.next();)E=y.value,b=E.parent,b===null&&(b=E),b.angle===0||b.angle===180?(b.angle===180&&(E.focusX+=a[E.level]-E.width),E.width=a[E.level]):(b.angle===270&&(E.focusY+=a[E.level]-E.height),E.height=a[E.level])}else if(this.layerStyle===Jy)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,E=y.angle===0||y.angle===180,b=-1,x=0;x<y.children.length;x++){var z=y.children[x];b=Math.max(b,E?z.width:z.height)}if(0<=b)for(x=0;x<y.children.length;x++)z=y.children[x],E?(y.angle===180&&(z.focusX+=b-z.width),z.width=b):(y.angle===270&&(z.focusY+=b-z.height),z.height=b)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Fd&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new qt,this.isValidLayout=!0};function _1(a){var y=new qt;for(a=a.iterator;a.next();){var E=a.value;E.initialized||y.add(E)}return y}Ca.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var E=y.value;switch(this.ud){case Oh:E.sourceEdges.count===0&&this.Ub.add(E);break;case zp:E.destinationEdges.count===0&&this.Ub.add(E);break;default:Pn("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=_b(this,a),a!==null&&this.Ub.add(a))};function _b(a,y){var E=999999,b=null;for(y=y.iterator;y.next();){var x=y.value;switch(a.ud){case Oh:x.sourceEdges.count<E&&(E=x.sourceEdges.count,b=x);break;case zp:x.destinationEdges.count<E&&(E=x.destinationEdges.count,b=x);break;default:Pn("Unhandled path value "+a.ud.toString())}}return b}function Hy(a,y){if(y!==null){switch(a.ud){case Oh:if(0<y.destinationEdges.count){for(var E=new Ar,b=y.destinationVertexes;b.next();){var x=b.value;Ub(a,y,x)&&E.add(x)}0<E.count&&(y.children=E.Fa())}break;case zp:if(0<y.sourceEdges.count){for(E=new Ar,b=y.sourceVertexes;b.next();)x=b.value,Ub(a,y,x)&&E.add(x);0<E.count&&(y.children=E.Fa())}break;default:Pn("Unhandled path value"+a.ud.toString())}for(E=y.children,b=E.length,x=0;x<b;x++){var z=E[x];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<b;y++)Hy(a,E[y])}}function Ub(a,y,E){if(E.initialized){if(y===null)var b=!1;else{for(b=y.parent;b!==null&&b!==E;)b=b.parent;b=b===E}if(b||E.level>y.level)return!1;a.removeChild(E.parent,E)}return!0}Ca.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var E=a.children,b=0,x=0;x<E.length;x++)E[x]===y&&b++;if(0<b){b=Array(E.length-b);for(var z=x=0;z<E.length;z++)E[z]!==y&&(b[x++]=E[z]);a.children=b}}};function Hb(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===Bh&&a.sortTreeVertexChildren(y);for(var E=0,b=y.childrenCount,x=0,z=y.children,ne=z.length,oe=0;oe<ne;oe++){var ue=z[oe];Hb(a,ue),E+=ue.descendantCount+1,b=Math.max(b,ue.maxChildrenCount),x=Math.max(x,ue.maxGenerationCount)}y.descendantCount=E,y.maxChildrenCount=b,y.maxGenerationCount=0<b?x+1:0}}function U1(a,y){switch(a.vo){default:case uv:return y.parent!==null?y.parent:a.W;case Zy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case Yy:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Ky:var E=!0;if(y.childrenCount===0)E=!1;else for(var b=y.children,x=b.length,z=0;z<x;z++)if(0<b[z].childrenCount){E=!1;break}return E&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}Ca.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(U1(this,a)),a.parent!==null&&a.parent.alignment===Bh){for(var y=a.angle,E=a.parent.children,b=0;b<E.length&&a!==E[b];)b++;b%2===0?b!==E.length-1&&(y=y===90?180:y===180?270:y===270?180:270):y=y===90?0:y===180?90:y===270?0:90,a.angle=y}a.initialized=!0};function Vb(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var E=y.length,b=0;b<E;b++)Vb(a,y[b])}}Ca.prototype.assignTreeVertexValues=function(){};function Wb(a,y){if(y!==null){y.alignment!==Bh&&a.sortTreeVertexChildren(y),y=y.children;for(var E=y.length,b=0;b<E;b++)Wb(a,y[b])}}Ca.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case kg:break;case Nm:a.children.reverse();break;case Lm:a.children.sort(a.comparer);break;case Im:a.children.sort(a.comparer),a.children.reverse();break;default:Pn("Unhandled sorting value "+a.sorting.toString())}},Ca.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Ca.prototype.addComments=function(a){var y=a.angle,E=a.parent,b=0,x=!1;E!==null&&(b=E.angle,x=E.alignment,x=Yf(x)),y=y===90||y===270,b=b===90||b===270,E=a.childrenCount===0;var z=0,ne=0,oe=0,ue=a.commentSpacing;if(a.node!==null)for(var he=a.node.Mu();he.next();){var ge=he.value;ge.category==="Comment"&&ge.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(ge),ge.Va(),ge=ge.measuredBounds,y&&!E||!x&&!b&&E||x&&b&&E?(z=Math.max(z,ge.width),ne+=ge.height+Math.abs(oe)):(z+=ge.width+Math.abs(oe),ne=Math.max(ne,ge.height)),oe=ue)}a.comments!==null&&(y&&!E||!x&&!b&&E||x&&b&&E?(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=Un.allocAt(0,0,a.bounds.width+z,a.bounds.height+ne),a.bounds=x,Un.free(x))};function Yf(a){return a===vf||a===Bh||a===yf||a===Jh}function Pm(a){return a===vf||a===Bh}function jy(a){var y=a.parent;if(y!==null){var E=y.alignment;if(Yf(E)){if(Pm(E)){for(y=y.children,E=0;E<y.length&&a!==y[E];)E++;return E%2===0}if(E===yf)return!0}}return!1}Ca.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,E=a.parent,b=a.angle,x=0,z=!1;E!==null&&(x=E.angle,z=E.alignment,z=Yf(z)),b=b===90||b===270,E=x===90||x===270;for(var ne=a.childrenCount===0,oe=jy(a),ue=0,he=a.comments,ge=he.length,Ee=xt.alloc(),ke=0;ke<ge;ke++){var Ve=he[ke],Ze=Ve.measuredBounds;if(b&&!ne||!z&&!E&&ne||z&&E&&ne){if(135<x&&!z||E&&oe)if(0<=a.commentMargin)for(Ee.h(a.bounds.x-a.commentMargin-Ze.width,a.bounds.y+ue),Ve.move(Ee),Ve=Ve.Sd();Ve.next();){var st=Ve.value;st.fromSpot=mu,st.toSpot=kl}else for(Ee.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+ue),Ve.move(Ee),Ve=Ve.Sd();Ve.next();)st=Ve.value,st.fromSpot=kl,st.toSpot=mu;else if(0<=a.commentMargin)for(Ee.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+ue),Ve.move(Ee),Ve=Ve.Sd();Ve.next();)st=Ve.value,st.fromSpot=kl,st.toSpot=mu;else for(Ee.h(a.bounds.x+a.commentMargin-Ze.width,a.bounds.y+ue),Ve.move(Ee),Ve=Ve.Sd();Ve.next();)st=Ve.value,st.fromSpot=mu,st.toSpot=kl;ue=0<=a.commentSpacing?ue+(Ze.height+a.commentSpacing):ue+(a.commentSpacing-Ze.height)}else{if(135<x&&!z||!E&&oe)if(0<=a.commentMargin)for(Ee.h(a.bounds.x+ue,a.bounds.y-a.commentMargin-Ze.height),Ve.move(Ee),Ve=Ve.Sd();Ve.next();)st=Ve.value,st.fromSpot=lu,st.toSpot=Hl;else for(Ee.h(a.bounds.x+ue,a.bounds.y+2*a.focus.y-a.commentMargin),Ve.move(Ee),Ve=Ve.Sd();Ve.next();)st=Ve.value,st.fromSpot=Hl,st.toSpot=lu;else if(0<=a.commentMargin)for(Ee.h(a.bounds.x+ue,a.bounds.y+2*a.focus.y+a.commentMargin),Ve.move(Ee),Ve=Ve.Sd();Ve.next();)st=Ve.value,st.fromSpot=Hl,st.toSpot=lu;else for(Ee.h(a.bounds.x+ue,a.bounds.y+a.commentMargin-Ze.height),Ve.move(Ee),Ve=Ve.Sd();Ve.next();)st=Ve.value,st.fromSpot=lu,st.toSpot=Hl;ue=0<=a.commentSpacing?ue+(Ze.width+a.commentSpacing):ue+(a.commentSpacing-Ze.width)}}if(xt.free(Ee),y=ue-a.commentSpacing-(b?y.height:y.width),this.ud===Oh)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)}},Ca.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,E=y.length,b=0;b<E;b++)this.layoutTree(y[b]);switch(a.compaction){case lv:Kb(this,a);break;case km:if(a.alignment===Bh)Kb(this,a);else if(a.childrenCount===0)b=a.parent,E=!1,y=0,b!==null&&(y=b.angle,E=b.alignment,E=Yf(E)),b=jy(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||E)&&!b?a.la.h(0,0):y===180&&!E||(y===90||y===270)&&b?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=Zd(a);y=x===90||x===270;var z=0,ne=a.children,oe=ne.length;for(E=0;E<oe;E++)b=ne[E],z=Math.max(z,y?b.Da.width:b.Da.height);var ue=a.alignment;b=ue===Dh;var he=ue===Fh,ge=Yf(ue),Ee=Math.max(0,a.breadthLimit);E=this.computeLayerSpacing(a);var ke=a.nodeSpacing,Ve=this.computeNodeIndent(a),Ze=a.rowSpacing,st=0;(b||he||a.hm||a.im&&a.maxGenerationCount===1)&&(st=Math.max(0,a.rowIndent)),b=a.width;var Ot=a.height,Pt=0,zt=0,Kt=0,Jt=null,dn=null,kn=0,Xr=0,Ei=0,fi=0,Dr=0,gr=0,Oo=0,Eo=0;if(ge&&!Pm(ue)&&135<x&&ne.reverse(),Pm(ue))if(1<oe)for(var ts=0;ts<oe;ts++)ts%2===0&&ts!==oe-1&&(Eo=Math.max(Eo,y?ne[ts].Da.width:ne[ts].Da.height));else oe===1&&(Eo=y?ne[0].Da.width:ne[0].Da.height);if(ge){switch(ue){case vf:zt=135>x?Yb(this,a,ne,Eo,Pt,zt):Zb(this,a,ne,Eo,Pt,zt),Eo=zt.x,Pt=zt.width,zt=zt.height;break;case yf:for(Jt=0;Jt<oe;Jt++)dn=ne[Jt],Ee=dn.Da,Kt=gr===0?0:Ze,y?(dn.S.h(z-Ee.width,fi+Kt),Pt=Math.max(Pt,Ee.width),zt=Math.max(zt,fi+Kt+Ee.height),fi+=Kt+Ee.height):(dn.S.h(Ei+Kt,z-Ee.height),Pt=Math.max(Pt,Ei+Kt+Ee.width),zt=Math.max(zt,Ee.height),Ei+=Kt+Ee.width),gr++;break;case Jh:for(Jt=0;Jt<oe;Jt++)dn=ne[Jt],z=dn.Da,Ee=gr===0?0:Ze,y?(dn.S.h(ke/2+a.focus.x,fi+Ee),Pt=Math.max(Pt,z.width),zt=Math.max(zt,fi+Ee+z.height),fi+=Ee+z.height):(dn.S.h(Ei+Ee,ke/2+a.focus.y),Pt=Math.max(Pt,Ei+Ee+z.width),zt=Math.max(zt,z.height),Ei+=Ee+z.width),gr++}Jt=ed(this,2),dn=ed(this,2),y?(Jt[0].h(0,0),Jt[1].h(0,zt),dn[0].h(Pt,0)):(Jt[0].h(0,0),Jt[1].h(Pt,0),dn[0].h(0,zt)),dn[1].h(Pt,zt)}else for(ts=0;ts<oe;ts++){var _s=ne[ts],xu=_s.Da;if(y){0<Ee&&0<gr&&Ei+ke+xu.width>Ee&&(Ei<z&&pp(a,ue,z-Ei,0,Oo,ts-1),Dr++,gr=0,Oo=ts,Kt=zt,Ei=0,fi=135<x?-zt-Ze:zt+Ze),ov(this,_s,0,fi);var Lu=0;if(gr===0)Jt=_s.Yo,dn=_s.kp,kn=xu.width,Xr=xu.height,(Jt===null||dn===null||x!==Zd(_s))&&(Jt=ed(this,2),dn=ed(this,2),Jt[0].h(0,0),Jt[1].h(0,Xr),dn[0].h(kn,0),dn[1].h(kn,Xr));else{var Sc=Oi();Xr=Xb(this,a,_s,Jt,dn,kn,Xr,Sc),Lu=Xr.x,Jt=Sc[0],dn=Sc[1],kn=Xr.width,Xr=Xr.height,Yi(Sc),Ei<xu.width&&0>Lu&&(Gp(a,-Lu,0,Oo,ts-1),av(Jt,-Lu,0),av(dn,-Lu,0),Lu=0)}_s.S.h(Lu,fi),Pt=Math.max(Pt,kn),zt=Math.max(zt,Kt+(Dr===0?0:Ze)+xu.height),Ei=kn}else 0<Ee&&0<gr&&fi+ke+xu.height>Ee&&(fi<z&&pp(a,ue,0,z-fi,Oo,ts-1),Dr++,gr=0,Oo=ts,Kt=Pt,fi=0,Ei=135<x?-Pt-Ze:Pt+Ze),ov(this,_s,Ei,0),Lu=0,gr===0?(Jt=_s.Yo,dn=_s.kp,kn=xu.width,Xr=xu.height,(Jt===null||dn===null||x!==Zd(_s))&&(Jt=ed(this,2),dn=ed(this,2),Jt[0].h(0,0),Jt[1].h(kn,0),dn[0].h(0,Xr),dn[1].h(kn,Xr))):(Sc=Oi(),Xr=Xb(this,a,_s,Jt,dn,kn,Xr,Sc),Lu=Xr.x,Jt=Sc[0],dn=Sc[1],kn=Xr.width,Xr=Xr.height,Yi(Sc),fi<xu.height&&0>Lu&&(Gp(a,0,-Lu,Oo,ts-1),av(Jt,0,-Lu),av(dn,0,-Lu),Lu=0)),_s.S.h(Ei,Lu),zt=Math.max(zt,Xr),Pt=Math.max(Pt,Kt+(Dr===0?0:Ze)+xu.width),fi=Xr;gr++}switch(0<Dr&&(y?(zt+=Math.max(0,E),Ei<Pt&&pp(a,ue,Pt-Ei,0,Oo,oe-1),0<st&&(he||Gp(a,st,0,0,oe-1),Pt+=st)):(Pt+=Math.max(0,E),fi<zt&&pp(a,ue,0,zt-fi,Oo,oe-1),0<st&&(he||Gp(a,0,st,0,oe-1),zt+=st))),st=he=0,ue){case Rg:y?he+=Pt/2-a.focus.x-Ve/2:st+=zt/2-a.focus.y-Ve/2;break;case Vp:0<Dr?y?he+=Pt/2-a.focus.x-Ve/2:st+=zt/2-a.focus.y-Ve/2:y?(Eo=ne[0].S.x+ne[0].la.x,he+=Eo+(ne[oe-1].S.x+ne[oe-1].la.x+2*ne[oe-1].focus.x-Eo)/2-a.focus.x-Ve/2):(Eo=ne[0].S.y+ne[0].la.y,st+=Eo+(ne[oe-1].S.y+ne[oe-1].la.y+2*ne[oe-1].focus.y-Eo)/2-a.focus.y-Ve/2);break;case Dh:y?(he-=Ve,Pt+=Ve):(st-=Ve,zt+=Ve);break;case Fh:y?(he+=Pt-a.width+Ve,Pt+=Ve):(st+=zt-a.height+Ve,zt+=Ve);break;case vf:y?1<oe?he+=Eo+ke/2-a.focus.x:he+=ne[0].focus.x-a.focus.x+ne[0].la.x:1<oe?st+=Eo+ke/2-a.focus.y:st+=ne[0].focus.y-a.focus.y+ne[0].la.y;break;case yf:y?he+=Pt+ke/2-a.focus.x:st+=zt+ke/2-a.focus.y;break;case Jh:break;default:zt=this.customAlignment(a,he,st,Pt,zt),he=zt[0],st=zt[1],Pt=zt[2],zt=zt[3]}for(Ve=0;Ve<oe;Ve++)Eo=ne[Ve],y?Eo.S.h(Eo.S.x+Eo.la.x-he,Eo.S.y+(135<x?(ge?-zt:-Eo.Da.height)+Eo.la.y-E:Ot+E+Eo.la.y)):Eo.S.h(Eo.S.x+(135<x?(ge?-Pt:-Eo.Da.width)+Eo.la.x-E:b+E+Eo.la.x),Eo.S.y+Eo.la.y-st);if(oe=ne=0,ge?y?(Pt=Gy(a,Pt,he),0>he&&(he=0),135<x&&(st+=zt+E),zt+=Ot+E,ue===Jh&&(ne+=ke/2+a.focus.x),oe+=Ot+E):(135<x&&(he+=Pt+E),Pt+=b+E,zt=zy(a,zt,st),0>st&&(st=0),ue===Jh&&(oe+=ke/2+a.focus.y),ne+=b+E):y?(a.comments===null?b>Pt&&(Pt=Vy(ue,b-Pt,0),ne=Pt.x,oe=Pt.y,Pt=b,he=0):Pt=Gy(a,Pt,he),0>he&&(ne-=he,he=0),135<x&&(st+=zt+E),zt=Math.max(Math.max(zt,Ot),zt+Ot+E),oe+=Ot+E):(135<x&&(he+=Pt+E),Pt=Math.max(Math.max(Pt,b),Pt+b+E),a.comments===null?Ot>zt&&(zt=Vy(ue,0,Ot-zt),ne=zt.x,oe=zt.y,zt=Ot,st=0):zt=zy(a,zt,st),0>st&&(oe-=st,st=0),ne+=b+E),0<Dr)x=ed(this,4),Dr=ed(this,4),y?(x[2].h(0,Ot+E),x[3].h(x[2].x,zt),Dr[2].h(Pt,x[2].y),Dr[3].h(Dr[2].x,x[3].y)):(x[2].h(b+E,0),x[3].h(Pt,x[2].y),Dr[2].h(x[2].x,zt),Dr[3].h(x[3].x,Dr[2].y));else{for(x=ed(this,Jt.length+2),Dr=ed(this,dn.length+2),ue=0;ue<Jt.length;ue++)ge=Jt[ue],x[ue+2].h(ge.x+ne,ge.y+oe);for(ue=0;ue<dn.length;ue++)ge=dn[ue],Dr[ue+2].h(ge.x+ne,ge.y+oe)}y?(x[0].h(he,0),x[1].h(x[0].x,Ot),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(he+b,0),Dr[1].h(Dr[0].x,Ot),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-=E/2,Dr[2].y-=E/2):(x[0].h(0,st),x[1].h(b,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,st+Ot),Dr[1].h(b,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-=E/2,Dr[2].x-=E/2),lh(this,Jt),lh(this,dn),a.Yo=x,a.kp=Dr,a.la.h(he,st),a.Da.h(Pt,zt)}break;default:Pn("Unhandled compaction value "+a.compaction.toString())}}};function Kb(a,y){if(y.childrenCount===0){var E=!1,b=0;y.parent!==null&&(b=y.parent.angle,E=y.parent.alignment,E=Yf(E));var x=jy(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(b!==180&&b!==270||E)&&!x?y.la.h(0,0):b===180&&!E||(b===90||b===270)&&x?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{b=Zd(y),E=b===90||b===270;var z=0;x=y.children;for(var ne=x.length,oe=0;oe<ne;oe++){var ue=x[oe];z=Math.max(z,E?ue.Da.width:ue.Da.height)}var he=y.alignment,ge=he===Dh,Ee=he===Fh;oe=Yf(he);var ke=Math.max(0,y.breadthLimit);ue=a.computeLayerSpacing(y);var Ve=y.nodeSpacing,Ze=a.computeNodeIndent(y),st=ge||Ee?0:Ze/2,Ot=y.rowSpacing,Pt=0;(ge||Ee||y.hm||y.im&&y.maxGenerationCount===1)&&(Pt=Math.max(0,y.rowIndent)),ge=y.width;var zt=y.height,Kt=0,Jt=0,dn=0,kn=0,Xr=0,Ei=0,fi=0,Dr=0,gr=0,Oo=0;if(oe&&!Pm(he)&&135<b&&x.reverse(),Pm(he))if(1<ne)for(var Eo=0;Eo<ne;Eo++){var ts=x[Eo],_s=ts.Da;Eo%2===0&&Eo!==ne-1?gr=Math.max(gr,(E?_s.width:_s.height)+a.computeBusNodeSpacing(ts)-Ve):Eo%2!==0&&(Oo=Math.max(Oo,(E?_s.width:_s.height)+a.computeBusNodeSpacing(ts)-Ve))}else ne===1&&(gr=E?x[0].Da.width:x[0].Da.height);if(oe)switch(he){case vf:case Bh:Jt=135>b?Yb(a,y,x,gr,Kt,Jt):Zb(a,y,x,gr,Kt,Jt),gr=Jt.x,Kt=Jt.width,Jt=Jt.height;break;case yf:for(ke=0;ke<ne;ke++)st=x[ke],dn=st.Da,Oo=fi===0?0:Ot,E?(st.S.h(z-dn.width,Xr+Oo),Kt=Math.max(Kt,dn.width),Jt=Math.max(Jt,Xr+Oo+dn.height),Xr+=Oo+dn.height):(st.S.h(kn+Oo,z-dn.height),Kt=Math.max(Kt,kn+Oo+dn.width),Jt=Math.max(Jt,dn.height),kn+=Oo+dn.width),fi++;break;case Jh:for(z=0;z<ne;z++)ke=x[z],st=ke.Da,dn=fi===0?0:Ot,E?(ke.S.h(Ve/2+y.focus.x,Xr+dn),Kt=Math.max(Kt,st.width),Jt=Math.max(Jt,Xr+dn+st.height),Xr+=dn+st.height):(ke.S.h(kn+dn,Ve/2+y.focus.y),Kt=Math.max(Kt,kn+dn+st.width),Jt=Math.max(Jt,st.height),kn+=dn+st.width),fi++}else for(Oo=0;Oo<ne;Oo++)Eo=x[Oo],ts=Eo.Da,E?(0<ke&&0<fi&&kn+Ve+ts.width>ke&&(kn<z&&pp(y,he,z-kn,0,Dr,Oo-1),Ei++,fi=0,Dr=Oo,dn=Jt,kn=0,Xr=135<b?-Jt-Ot:Jt+Ot),_s=fi===0?st:Ve,ov(a,Eo,0,Xr),Eo.S.h(kn+_s,Xr),Kt=Math.max(Kt,kn+_s+ts.width),Jt=Math.max(Jt,dn+(Ei===0?0:Ot)+ts.height),kn+=_s+ts.width):(0<ke&&0<fi&&Xr+Ve+ts.height>ke&&(Xr<z&&pp(y,he,0,z-Xr,Dr,Oo-1),Ei++,fi=0,Dr=Oo,dn=Kt,Xr=0,kn=135<b?-Kt-Ot:Kt+Ot),_s=fi===0?st:Ve,ov(a,Eo,kn,0),Eo.S.h(kn,Xr+_s),Jt=Math.max(Jt,Xr+_s+ts.height),Kt=Math.max(Kt,dn+(Ei===0?0:Ot)+ts.width),Xr+=_s+ts.height),fi++;switch(0<Ei&&(E?(Jt+=Math.max(0,ue),kn<Kt&&pp(y,he,Kt-kn,0,Dr,ne-1),0<Pt&&(Ee||Gp(y,Pt,0,0,ne-1),Kt+=Pt)):(Kt+=Math.max(0,ue),Xr<Jt&&pp(y,he,0,Jt-Xr,Dr,ne-1),0<Pt&&(Ee||Gp(y,0,Pt,0,ne-1),Jt+=Pt))),Pt=Ee=0,he){case Rg:E?Ee+=Kt/2-y.focus.x-Ze/2:Pt+=Jt/2-y.focus.y-Ze/2;break;case Vp:0<Ei?E?Ee+=Kt/2-y.focus.x-Ze/2:Pt+=Jt/2-y.focus.y-Ze/2:E?(a=x[0].S.x+x[0].la.x,Ee+=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,Pt+=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 Dh:E?(Ee-=Ze,Kt+=Ze):(Pt-=Ze,Jt+=Ze);break;case Fh:E?(Ee+=Kt-y.width+Ze,Kt+=Ze):(Pt+=Jt-y.height+Ze,Jt+=Ze);break;case vf:case Bh:E?1<ne?Ee+=gr+Ve/2-y.focus.x:Ee+=x[0].focus.x-y.focus.x+x[0].la.x:1<ne?Pt+=gr+Ve/2-y.focus.y:Pt+=x[0].focus.y-y.focus.y+x[0].la.y;break;case yf:E?Ee+=Kt+Ve/2-y.focus.x:Pt+=Jt+Ve/2-y.focus.y;break;case Jh:break;default:a=a.customAlignment(y,Ee,Pt,Kt,Jt),Ee=a[0],Pt=a[1],Kt=a[2],Jt=a[3]}for(a=0;a<ne;a++)Ze=x[a],E?Ze.S.h(Ze.S.x+Ze.la.x-Ee,Ze.S.y+(135<b?(oe?-Jt:-Ze.Da.height)+Ze.la.y-ue:zt+ue+Ze.la.y)):Ze.S.h(Ze.S.x+(135<b?(oe?-Kt:-Ze.Da.width)+Ze.la.x-ue:ge+ue+Ze.la.x),Ze.S.y+Ze.la.y-Pt);E?(Kt=Gy(y,Kt,Ee),0>Ee&&(Ee=0),135<b&&(Pt+=Jt+ue),Jt=Math.max(Math.max(Jt,zt),Jt+zt+ue)):(135<b&&(Ee+=Kt+ue),Kt=Math.max(Math.max(Kt,ge),Kt+ge+ue),Jt=zy(y,Jt,Pt),0>Pt&&(Pt=0)),y.la.h(Ee,Pt),y.Da.h(Kt,Jt)}}Ca.prototype.customAlignment=function(a,y,E,b,x){return[y,E,b,x]};function Yb(a,y,E,b,x,z){var ne=E.length;if(ne===0)return new Un(b,0,x,z);if(ne===1)return y=E[0],x=y.Da.width,z=y.Da.height,new Un(b,0,x,z);for(var oe=y.nodeSpacing,ue=y.rowSpacing,he=Zd(y)===90,ge=0,Ee=0,ke=0,Ve=0;Ve<ne;Ve++)if(!(Ve%2!==0||1<ne&&Ve===ne-1)){var Ze=E[Ve],st=Ze.Da,Ot=ge===0?0:ue;if(he){var Pt=a.computeBusNodeSpacing(Ze)-oe;Ze.S.h(b-(st.width+Pt),ke+Ot),x=Math.max(x,st.width+Pt),z=Math.max(z,ke+Ot+st.height),ke+=Ot+st.height}else Pt=a.computeBusNodeSpacing(Ze)-oe,Ze.S.h(Ee+Ot,b-(st.height+Pt)),z=Math.max(z,st.height+Pt),x=Math.max(x,Ee+Ot+st.width),Ee+=Ot+st.width;ge++}for(ge=0,Ze=Ee,Ve=ke,he?(Ee=b+oe,ke=0):(Ee=0,ke=b+oe),st=0;st<ne;st++)if(st%2!==0){Ot=E[st],Pt=Ot.Da;var zt=ge===0?0:ue;if(he){var Kt=a.computeBusNodeSpacing(Ot)-oe;Ot.S.h(Ee+Kt,ke+zt),x=Math.max(x,Ee+Pt.width+Kt),z=Math.max(z,ke+zt+Pt.height),ke+=zt+Pt.height}else Kt=a.computeBusNodeSpacing(Ot)-oe,Ot.S.h(Ee+zt,ke+Kt),x=Math.max(x,Ee+zt+Pt.width),z=Math.max(z,ke+Pt.height+Kt),Ee+=zt+Pt.width;ge++}return 1<ne&&ne%2===1&&(E=E[ne-1],ne=E.Da,a=a.computeBusLastRowSpacing(E,he?Math.max(Math.abs(Ve),Math.abs(ke)):Math.max(Math.abs(Ze),Math.abs(Ee))),he?(E.S.h(b+oe/2-E.focus.x-E.la.x,z+a),he=b+oe/2-E.focus.x-E.la.x,x=Math.max(x,he+ne.width),0>he&&(x-=he),z=Math.max(z,Math.max(Ve,ke)+a+ne.height),0>E.S.x&&(b=iv(y,E.S.x,!1,b,oe))):(E.S.h(x+a,b+oe/2-E.focus.y-E.la.y),x=Math.max(x,Math.max(Ze,Ee)+a+ne.width),ke=b+oe/2-E.focus.y-E.la.y,z=Math.max(z,ke+ne.height),0>ke&&(z-=ke),0>E.S.y&&(b=iv(y,E.S.y,!0,b,oe)))),new Un(b,0,x,z)}function Zb(a,y,E,b,x,z){var ne=E.length;if(ne===0)return new Un(b,0,x,z);if(ne===1)return E=E[0],x=E.Da.width,z=E.Da.height,new Un(b,0,x,z);for(var oe=y.nodeSpacing,ue=y.rowSpacing,he=Zd(y)===270,ge=0,Ee=0,ke=0,Ve=0;Ve<ne;Ve++)if(!(Ve%2!==0||1<ne&&Ve===ne-1)){var Ze=E[Ve],st=Ze.Da,Ot=ge===0?0:ue;if(he){var Pt=a.computeBusNodeSpacing(Ze)-oe;ke-=Ot+st.height,Ze.S.h(b-(st.width+Pt),ke),x=Math.max(x,st.width+Pt),z=Math.max(z,Math.abs(ke))}else Pt=a.computeBusNodeSpacing(Ze)-oe,Ee-=Ot+st.width,Ze.S.h(Ee,b-(st.height+Pt)),z=Math.max(z,st.height+Pt),x=Math.max(x,Math.abs(Ee));ge++}for(ge=0,Ze=Ee,Ve=ke,he?(Ee=b+oe,ke=0):(Ee=0,ke=b+oe),st=0;st<ne;st++)if(st%2!==0){Ot=E[st],Pt=Ot.Da;var zt=ge===0?0:ue;if(he){var Kt=a.computeBusNodeSpacing(Ot)-oe;ke-=zt+Pt.height,Ot.S.h(Ee+Kt,ke),x=Math.max(x,Ee+Pt.width+Kt),z=Math.max(z,Math.abs(ke))}else Kt=a.computeBusNodeSpacing(Ot)-oe,Ee-=zt+Pt.width,Ot.S.h(Ee,ke+Kt),z=Math.max(z,ke+Pt.height+Kt),x=Math.max(x,Math.abs(Ee));ge++}for(1<ne&&ne%2===1&&(ue=E[ne-1],ge=ue.Da,a=a.computeBusLastRowSpacing(ue,he?Math.max(Math.abs(Ve),Math.abs(ke)):Math.max(Math.abs(Ze),Math.abs(Ee))),he?(ue.S.h(b+oe/2-ue.focus.x-ue.la.x,-z-ge.height-a),Ee=b+oe/2-ue.focus.x-ue.la.x,x=Math.max(x,Ee+ge.width),0>Ee&&(x-=Ee),z=Math.max(z,Math.abs(Math.min(Ve,ke))+a+ge.height),0>ue.S.x&&(b=iv(y,ue.S.x,!1,b,oe))):(ue.S.h(-x-ge.width-a,b+oe/2-ue.focus.y-ue.la.y),x=Math.max(x,Math.abs(Math.min(Ze,Ee))+a+ge.width),ke=b+oe/2-ue.focus.y-ue.la.y,z=Math.max(z,ke+ge.height),0>ke&&(z-=ke),0>ue.S.y&&(b=iv(y,ue.S.y,!0,b,oe)))),y=0;y<ne;y++)oe=E[y],he?oe.S.h(oe.S.x,oe.S.y+z):oe.S.h(oe.S.x+x,oe.S.y);return new Un(b,0,x,z)}Ca.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},Ca.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function iv(a,y,E,b,x){a=a.children;for(var z=a.length,ne=0;ne<z;ne++)E?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(b,E?y.la.y+y.focus.y-x/2:y.la.x+y.focus.x-x/2)}function Gy(a,y,E){switch(a.alignment){case Vp:case Rg:return E+a.width>y&&(y=E+a.width),0>E&&(y-=E),y;case Dh:return a.width>y?a.width:y;case Fh:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case vf:case Bh:return Math.max(a.width,Math.max(y,E+a.width)-Math.min(0,E));case yf:return a.width-a.focus.x+a.nodeSpacing/2+y;case Jh:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function zy(a,y,E){switch(a.alignment){case Vp:case Rg:return E+a.height>y&&(y=E+a.height),0>E&&(y-=E),y;case Dh:return a.height>y?a.height:y;case Fh:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case vf:case Bh:return Math.max(a.height,Math.max(y,E+a.height)-Math.min(0,E));case yf:return a.height-a.focus.y+a.nodeSpacing/2+y;case Jh:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Vy(a,y,E){switch(a){case Rg:y/=2,E/=2;break;case Vp:y/=2,E/=2;break;case Dh:E=y=0;break;case Fh:break;default:Pn("Unhandled alignment value "+a.toString())}return new xt(y,E)}function pp(a,y,E,b,x,z){y=Vy(y,E,b),Gp(a,y.x,y.y,x,z)}function Gp(a,y,E,b,x){if(y!==0||E!==0)for(a=a.children;b<=x;b++){var z=a[b].S;z.x+=y,z.y+=E}}function ov(a,y,E,b){var x=y.parent;switch(a.ud){case Oh:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===x&&y.relativePoint.h(E,b);break;case zp:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===x&&y.relativePoint.h(E,b);break;default:Pn("Unhandled path value "+a.ud.toString())}}function av(a,y,E){for(var b=0;b<a.length;b++){var x=a[b];x.x+=y,x.y+=E}}function Xb(a,y,E,b,x,z,ne,oe){var ue=Zd(y),he=ue===90||ue===270,ge=y.nodeSpacing;y=b;var Ee=x;b=z;var ke=ne,Ve=E.Yo,Ze=E.kp;ne=E.Da;var st=he?Math.max(ke,ne.height):Math.max(b,ne.width);if((Ve===null||ue!==Zd(E))&&(Ve=ed(a,2),Ze=ed(a,2),he?(Ve[0].h(0,0),Ve[1].h(0,ne.height),Ze[0].h(ne.width,0),Ze[1].h(Ze[0].x,Ve[1].y)):(Ve[0].h(0,0),Ve[1].h(ne.width,0),Ze[0].h(0,ne.height),Ze[1].h(Ve[1].x,Ze[0].y))),he){if(ke=9999999,!(Ee===null||2>Ee.length||Ve===null||2>Ve.length))for(x=E=0;E<Ee.length&&x<Ve.length;){z=Ee[E];var Ot=Ve[x];ue=Ot.x,he=Ot.y,ue+=b;var Pt=z;E+1<Ee.length&&(Pt=Ee[E+1]);var zt=Ot;Ot=zt.x,zt=zt.y,x+1<Ve.length&&(zt=Ve[x+1],Ot=zt.x,zt=zt.y,Ot+=b);var Kt=ke;z.y===he?Kt=ue-z.x:z.y>he&&z.y<zt?Kt=ue+(z.y-he)/(zt-he)*(Ot-ue)-z.x:he>z.y&&he<Pt.y&&(Kt=ue-(z.x+(he-z.y)/(Pt.y-z.y)*(Pt.x-z.x))),Kt<ke&&(ke=Kt),Pt.y<=z.y?E++:zt<=he?x++:(Pt.y<=zt&&E++,zt<=Pt.y&&x++)}if(ke=b-ke,ke+=ge,E=Ve,x=ke,y===null||2>y.length||E===null||2>E.length)b=null;else{for(ge=ed(a,y.length+E.length),b=z=ue=0;z<E.length&&E[z].y<y[0].y;)he=E[z++],ge[b++].h(he.x+x,he.y);for(;ue<y.length;)he=y[ue++],ge[b++].h(he.x,he.y);for(ue=y[y.length-1].y;z<E.length&&E[z].y<=ue;)z++;for(;z<E.length&&E[z].y>ue;)he=E[z++],ge[b++].h(he.x+x,he.y);for(E=ed(a,b),ue=0;ue<b;ue++)E[ue].assign(ge[ue]);lh(a,ge),b=E}if(z=Ze,ue=ke,Ee===null||2>Ee.length||z===null||2>z.length)x=null;else{for(ge=ed(a,Ee.length+z.length),x=he=E=0;E<Ee.length&&Ee[E].y<z[0].y;)Pt=Ee[E++],ge[x++].h(Pt.x,Pt.y);for(;he<z.length;)Pt=z[he++],ge[x++].h(Pt.x+ue,Pt.y);for(z=z[z.length-1].y;E<Ee.length&&Ee[E].y<=z;)E++;for(;E<Ee.length&&Ee[E].y>z;)ue=Ee[E++],ge[x++].h(ue.x,ue.y);for(z=ed(a,x),E=0;E<x;E++)z[E].assign(ge[E]);lh(a,ge),x=z}return z=Math.max(0,ke)+ne.width,ne=st,lh(a,y),lh(a,Ve),lh(a,Ee),lh(a,Ze),oe[0]=b,oe[1]=x,new Un(ke,0,z,ne)}if(b=9999999,!(Ee===null||2>Ee.length||Ve===null||2>Ve.length))for(x=E=0;E<Ee.length&&x<Ve.length;)z=Ee[E],Ot=Ve[x],ue=Ot.x,he=Ot.y,he+=ke,Pt=z,E+1<Ee.length&&(Pt=Ee[E+1]),zt=Ot,Ot=zt.x,zt=zt.y,x+1<Ve.length&&(zt=Ve[x+1],Ot=zt.x,zt=zt.y,zt+=ke),Kt=b,z.x===ue?Kt=he-z.y:z.x>ue&&z.x<Ot?Kt=he+(z.x-ue)/(Ot-ue)*(zt-he)-z.y:ue>z.x&&ue<Pt.x&&(Kt=he-(z.y+(ue-z.x)/(Pt.x-z.x)*(Pt.y-z.y))),Kt<b&&(b=Kt),Pt.x<=z.x?E++:Ot<=ue?x++:(Pt.x<=Ot&&E++,Ot<=Pt.x&&x++);if(ke-=b,ke+=ge,E=Ve,x=ke,y===null||2>y.length||E===null||2>E.length)b=null;else{for(ge=ed(a,y.length+E.length),b=z=ue=0;z<E.length&&E[z].x<y[0].x;)he=E[z++],ge[b++].h(he.x,he.y+x);for(;ue<y.length;)he=y[ue++],ge[b++].h(he.x,he.y);for(ue=y[y.length-1].x;z<E.length&&E[z].x<=ue;)z++;for(;z<E.length&&E[z].x>ue;)he=E[z++],ge[b++].h(he.x,he.y+x);for(E=ed(a,b),ue=0;ue<b;ue++)E[ue].assign(ge[ue]);lh(a,ge),b=E}if(z=Ze,ue=ke,Ee===null||2>Ee.length||z===null||2>z.length)x=null;else{for(ge=ed(a,Ee.length+z.length),x=he=E=0;E<Ee.length&&Ee[E].x<z[0].x;)Pt=Ee[E++],ge[x++].h(Pt.x,Pt.y);for(;he<z.length;)Pt=z[he++],ge[x++].h(Pt.x,Pt.y+ue);for(z=z[z.length-1].x;E<Ee.length&&Ee[E].x<=z;)E++;for(;E<Ee.length&&Ee[E].x>z;)ue=Ee[E++],ge[x++].h(ue.x,ue.y);for(z=ed(a,x),E=0;E<x;E++)z[E].assign(ge[E]);lh(a,ge),x=z}return z=st,ne=Math.max(0,ke)+ne.height,lh(a,y),lh(a,Ve),lh(a,Ee),lh(a,Ze),oe[0]=b,oe[1]=x,new Un(ke,0,z,ne)}function ed(a,y){if(a=a.ru[y],a!==void 0&&(a=a.pop(),a!==void 0))return a;a=[];for(var E=0;E<y;E++)a[E]=new xt;return a}function lh(a,y){var E=y.length,b=a.ru[E];b===void 0&&(b=[],a.ru[E]=b),b.push(y)}Ca.prototype.arrangeTrees=function(){if(this.Rb===dv)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Fd){var E=y.node;if(E!==null){var b=E.position;E=b.x,b=b.y,isFinite(E)||(E=0),isFinite(b)||(b=0),Wy(this,y,E,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)E=y.value,E instanceof Fd&&a.push(E);switch(this.sorting){case kg:break;case Nm:a.reverse();break;case Lm:a.sort(this.comparer);break;case Im:a.sort(this.comparer),a.reverse();break;default:Pn("Unhandled sorting value "+this.sorting.toString())}for(E=this.arrangementOrigin,y=E.x,E=E.y,b=0;b<a.length;b++){var x=a[b];switch(Wy(this,x,y+x.la.x,E+x.la.y),this.Rb){case cv:E+=x.Da.height+this.$d.height;break;case Xy:y+=x.Da.width+this.$d.width;break;default:Pn("Unhandled arrangement value "+this.Rb.toString())}}}};function Wy(a,y,E,b){if(y!==null){y.x=E,y.y=b,y=y.children;for(var x=y.length,z=0;z<x;z++){var ne=y[z];Wy(a,ne,E+ne.S.x,b+ne.S.y)}}}Ca.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Ca.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},Ca.prototype.Gu=function(){if(this.layerStyle===hv){for(var a=this.$v,y=[],E=null,b=this.network.vertexes.iterator;b.next();){var x=b.value;E===null?E=x.bounds.copy():E.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(b=0;b<y.length;b++)y[b]===void 0&&(y[b]=0);if(this.angle===90||this.angle===270?(E.Bc(this.nodeSpacing/2,this.layerSpacing),b=new xt(-this.nodeSpacing/2,-this.layerSpacing/2)):(E.Bc(this.layerSpacing,this.nodeSpacing/2),b=new xt(-this.layerSpacing/2,-this.nodeSpacing/2)),x=[],E=this.angle===90||this.angle===270?E.width:E.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 oe=a[ne]+y[ne];this.angle===270?(z-=oe,x.push(new Un(0,z,E,oe))):this.angle===90?(x.push(new Un(0,z,E,oe)),z+=oe):this.angle===180?(z-=oe,x.push(new Un(z,0,oe,E))):(x.push(new Un(z,0,oe,E)),z+=oe)}this.commitLayers(x,b)}},Ca.prototype.commitLayers=function(){},Ca.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Ca.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Fd&&Qb(this,y)}};function Qb(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var E=y.length,b=0;b<E;b++)Qb(a,y[b])}}Ca.prototype.setPortSpots=function(a){var y=a.alignment;if(Yf(y)){var E=this.ud===Oh,b=Zd(a);switch(b){case 0:var x=kl;break;case 90:x=Hl;break;case 180:x=mu;break;default:x=lu}var z=a.children,ne=z.length;switch(y){case vf:case Bh:for(y=0;y<ne;y++){var oe=z[y];if(oe=(E?oe.sourceEdges:oe.destinationEdges).first(),oe!==null&&(oe=oe.link,oe!==null)){var ue=b===90||b===270?mu:lu;if(ne===1||y===ne-1&&ne%2===1)switch(b){case 0:ue=mu;break;case 90:ue=lu;break;case 180:ue=kl;break;default:ue=Hl}else y%2===0&&(ue=b===90||b===270?kl:Hl);E?(a.setsPortSpot&&(oe.fromSpot=x),a.setsChildPortSpot&&(oe.toSpot=ue)):(a.setsPortSpot&&(oe.fromSpot=ue),a.setsChildPortSpot&&(oe.toSpot=x))}}break;case yf:for(b=b===90||b===270?kl:Hl,z=E?a.destinationEdges:a.sourceEdges;z.next();)ne=z.value.link,ne!==null&&(E?(a.setsPortSpot&&(ne.fromSpot=x),a.setsChildPortSpot&&(ne.toSpot=b)):(a.setsPortSpot&&(ne.fromSpot=b),a.setsChildPortSpot&&(ne.toSpot=x)));break;case Jh:for(b=b===90||b===270?mu:lu,z=E?a.destinationEdges:a.sourceEdges;z.next();)ne=z.value.link,ne!==null&&(E?(a.setsPortSpot&&(ne.fromSpot=x),a.setsChildPortSpot&&(ne.toSpot=b)):(a.setsPortSpot&&(ne.fromSpot=b),a.setsChildPortSpot&&(ne.toSpot=x)))}}else if(E=Zd(a),this.ud===Oh){for(x=a.destinationEdges;x.next();)if(b=x.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(E){case 0:b.fromSpot=kl;break;case 90:b.fromSpot=Hl;break;case 180:b.fromSpot=mu;break;default:b.fromSpot=lu}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(E){case 0:b.toSpot=mu;break;case 90:b.toSpot=lu;break;case 180:b.toSpot=kl;break;default:b.toSpot=Hl}else b.toSpot=a.childPortSpot}}else for(x=a.sourceEdges;x.next();)if(b=x.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(E){case 0:b.toSpot=kl;break;case 90:b.toSpot=Hl;break;case 180:b.toSpot=mu;break;default:b.toSpot=lu}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(E){case 0:b.fromSpot=mu;break;case 90:b.fromSpot=lu;break;case 180:b.fromSpot=kl;break;default:b.fromSpot=Hl}else b.fromSpot=a.childPortSpot}};function Zd(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}Ca.prototype.computeLayerSpacing=function(a){var y=Zd(a);y=y===90||y===270;var E=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var b=Math.min(1,a.layerSpacingParentOverlap);E-=y?a.height*b:a.width*b}return E<(y?-a.height:-a.width)&&(E=y?-a.height:-a.width),E},Ca.prototype.computeNodeIndent=function(a){var y=Zd(a),E=a.nodeIndent;if(0<a.nodeIndentPastParent){var b=Math.min(1,a.nodeIndentPastParent);E+=y===90||y===270?a.width*b:a.height*b}return E=Math.max(0,E)},tr.Object.defineProperties(Ca.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!==Yy&&a!==Ky&&a!==Zy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Qy&&a!==Jy&&a!==hv||(this.Bq=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==cv&&a!==Xy&&a!==dv||(this.Rb=a,this.C())}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},rootDefaults:{get:function(){return this.W},set:function(a){this.W!==a&&(this.W=a,this.C())}},alternateDefaults:{get:function(){return this.Y},set:function(a){this.Y!==a&&(this.Y=a,this.C())}},sorting:{get:function(){return this.W.sorting},set:function(a){this.W.sorting===a||a!==kg&&a!==Nm&&a!==Lm&&!Im||(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()):Pn("TreeLayout.angle must be 0, 90, 180, or 270"))}},alignment:{get:function(){return this.W.alignment},set:function(a){this.W.alignment!==a&&(this.W.alignment=a,this.C())}},nodeIndent:{get:function(){return this.W.nodeIndent},set:function(a){this.W.nodeIndent!==a&&0<=a&&(this.W.nodeIndent=a,this.C())}},nodeIndentPastParent:{get:function(){return this.W.nodeIndentPastParent},set:function(a){this.W.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==lv&&a!==km||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==kg&&a!==Nm&&a!==Lm&&!Im||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==lv&&a!==km||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var sv=new Mn(Ca,"PathDefault",-1),Oh=new Mn(Ca,"PathDestination",0),zp=new Mn(Ca,"PathSource",1),kg=new Mn(Ca,"SortingForwards",10),Nm=new Mn(Ca,"SortingReverse",11),Lm=new Mn(Ca,"SortingAscending",12),Im=new Mn(Ca,"SortingDescending",13),Rg=new Mn(Ca,"AlignmentCenterSubtrees",20),Vp=new Mn(Ca,"AlignmentCenterChildren",21),Dh=new Mn(Ca,"AlignmentStart",22),Fh=new Mn(Ca,"AlignmentEnd",23),vf=new Mn(Ca,"AlignmentBus",24),Bh=new Mn(Ca,"AlignmentBusBranching",25),yf=new Mn(Ca,"AlignmentTopLeftBus",26),Jh=new Mn(Ca,"AlignmentBottomRightBus",27),lv=new Mn(Ca,"CompactionNone",30),km=new Mn(Ca,"CompactionBlock",31),uv=new Mn(Ca,"StyleLayered",40),Ky=new Mn(Ca,"StyleLastParents",41),Yy=new Mn(Ca,"StyleAlternating",42),Zy=new Mn(Ca,"StyleRootOnly",43),cv=new Mn(Ca,"ArrangementVertical",50),Xy=new Mn(Ca,"ArrangementHorizontal",51),dv=new Mn(Ca,"ArrangementFixedRoots",52),Qy=new Mn(Ca,"LayerIndividual",60),Jy=new Mn(Ca,"LayerSiblings",61),hv=new Mn(Ca,"LayerUniform",62);Ca.className="TreeLayout",Ca.PathDefault=sv,Ca.PathDestination=Oh,Ca.PathSource=zp,Ca.SortingForwards=kg,Ca.SortingReverse=Nm,Ca.SortingAscending=Lm,Ca.SortingDescending=Im,Ca.AlignmentCenterSubtrees=Rg,Ca.AlignmentCenterChildren=Vp,Ca.AlignmentStart=Dh,Ca.AlignmentEnd=Fh,Ca.AlignmentBus=vf,Ca.AlignmentBusBranching=Bh,Ca.AlignmentTopLeftBus=yf,Ca.AlignmentBottomRightBus=Jh,Ca.CompactionNone=lv,Ca.CompactionBlock=km,Ca.StyleLayered=uv,Ca.StyleLastParents=Ky,Ca.StyleAlternating=Yy,Ca.StyleRootOnly=Zy,Ca.ArrangementVertical=cv,Ca.ArrangementHorizontal=Xy,Ca.ArrangementFixedRoots=dv,Ca.LayerIndividual=Qy,Ca.LayerSiblings=Jy,Ca.LayerUniform=hv;function Wp(a){Hs.call(this,a)}vn(Wp,Hs),Wp.prototype.createVertex=function(){return new Fd(this)},Wp.prototype.createEdge=function(){return new Mg(this)},Wp.className="TreeNetwork";function Fd(a){pu.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 xt(0,0),this.Da=new sn(0,0),this.la=new xt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=kg,this.hd=vy,this.Kb=0,this.Jb=Vp,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=yl,this.wr=!0,this.Dp=yl}vn(Fd,pu),Fd.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)},tr.Object.defineProperties(Fd.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,E=0;E<y;E++);this.u=a}}},level:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},descendantCount:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},maxChildrenCount:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},maxGenerationCount:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a)}},comments:{get:function(){return this.td},set:function(a){if(this.td!==a){if(a!==null)for(var y=a.length,E=0;E<y;E++);this.td=a}}},sorting:{get:function(){return this.nd},set:function(a){this.nd!==a&&(this.nd=a)}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a)}},angle:{get:function(){return this.Kb},set:function(a){this.Kb!==a&&(this.Kb=a)}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb!==a&&(this.Jb=a)}},nodeIndent:{get:function(){return this.Uq},set:function(a){this.Uq!==a&&(this.Uq=a)}},nodeIndentPastParent:{get:function(){return this.Vq},set:function(a){this.Vq!==a&&(this.Vq=a)}},nodeSpacing:{get:function(){return this.Wq},set:function(a){this.Wq!==a&&(this.Wq=a)}},layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&(this.ie=a)}},layerSpacingParentOverlap:{get:function(){return this.Aq},set:function(a){this.Aq!==a&&(this.Aq=a)}},compaction:{get:function(){return this.Hp},set:function(a){this.Hp!==a&&(this.Hp=a)}},breadthLimit:{get:function(){return this.Ap},set:function(a){this.Ap!==a&&(this.Ap=a)}},rowSpacing:{get:function(){return this.nr},set:function(a){this.nr!==a&&(this.nr=a)}},rowIndent:{get:function(){return this.mr},set:function(a){this.mr!==a&&(this.mr=a)}},commentSpacing:{get:function(){return this.Gp},set:function(a){this.Gp!==a&&(this.Gp=a)}},commentMargin:{get:function(){return this.Fp},set:function(a){this.Fp!==a&&(this.Fp=a)}},setsPortSpot:{get:function(){return this.xr},set:function(a){this.xr!==a&&(this.xr=a)}},portSpot:{get:function(){return this.dr},set:function(a){this.dr.D(a)||(this.dr=a)}},setsChildPortSpot:{get:function(){return this.wr},set:function(a){this.wr!==a&&(this.wr=a)}},childPortSpot:{get:function(){return this.Dp},set:function(a){this.Dp.D(a)||(this.Dp=a)}},childrenCount:{get:function(){return this.children.length}},relativePosition:{get:function(){return this.S},set:function(a){this.S.set(a)}},subtreeSize:{get:function(){return this.Da},set:function(a){this.Da.set(a)}},subtreeOffset:{get:function(){return this.la},set:function(a){this.la.set(a)}}}),Fd.className="TreeVertex";function Mg(a){ld.call(this,a),this.$t=new xt(0,0)}vn(Mg,ld),Mg.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,E=null,b=null;switch(y.ud){case Oh:E=this.fromVertex,b=this.toVertex;break;case zp:E=this.toVertex,b=this.fromVertex;break;default:Pn("Unhandled path value "+y.ud.toString())}if(E!==null&&b!==null){var x=this.$t;if(x.x!==0||x.y!==0||E.qA){b=E.bounds;var z=Zd(E),ne=y.computeLayerSpacing(E),oe=E.rowSpacing;a.vg();var ue=a.curve===Ed,he=a.isOrthogonal,ge;if(a.uh(),he||ue){for(ge=2;4<a.pointsCount;)a.pv(2);var Ee=a.i(1),ke=a.i(2)}else{for(ge=1;3<a.pointsCount;)a.pv(1);Ee=a.i(0),ke=a.i(a.pointsCount-1)}var Ve=a.i(a.pointsCount-1);z===0?(E.alignment===Fh?(z=b.bottom+x.y,x.y===0&&Ee.y>Ve.y+E.rowIndent&&(z=Math.min(z,Math.max(Ee.y,z-y.computeNodeIndent(E))))):E.alignment===Dh?(z=b.top+x.y,x.y===0&&Ee.y<Ve.y-E.rowIndent&&(z=Math.max(z,Math.min(Ee.y,z+y.computeNodeIndent(E))))):z=E.hm||E.im&&E.maxGenerationCount===1?b.top-E.la.y+x.y:b.y+b.height/2+x.y,ue?(a.m(ge,Ee.x,z),ge++,a.m(ge,b.right+ne,z),ge++,a.m(ge,b.right+ne+(x.x-oe)/3,z),ge++,a.m(ge,b.right+ne+2*(x.x-oe)/3,z),ge++,a.m(ge,b.right+ne+(x.x-oe),z),ge++,a.m(ge,ke.x,z)):(he&&(a.m(ge,b.right+ne/2,Ee.y),ge++),a.m(ge,b.right+ne/2,z),ge++,a.m(ge,b.right+ne+x.x-(he?oe/2:oe),z),ge++,he&&a.m(ge,a.i(ge-1).x,ke.y))):z===90?(E.alignment===Fh?(z=b.right+x.x,x.x===0&&Ee.x>Ve.x+E.rowIndent&&(z=Math.min(z,Math.max(Ee.x,z-y.computeNodeIndent(E))))):E.alignment===Dh?(z=b.left+x.x,x.x===0&&Ee.x<Ve.x-E.rowIndent&&(z=Math.max(z,Math.min(Ee.x,z+y.computeNodeIndent(E))))):z=E.hm||E.im&&E.maxGenerationCount===1?b.left-E.la.x+x.x:b.x+b.width/2+x.x,ue?(a.m(ge,z,Ee.y),ge++,a.m(ge,z,b.bottom+ne),ge++,a.m(ge,z,b.bottom+ne+(x.y-oe)/3),ge++,a.m(ge,z,b.bottom+ne+2*(x.y-oe)/3),ge++,a.m(ge,z,b.bottom+ne+(x.y-oe)),ge++,a.m(ge,z,ke.y)):(he&&(a.m(ge,Ee.x,b.bottom+ne/2),ge++),a.m(ge,z,b.bottom+ne/2),ge++,a.m(ge,z,b.bottom+ne+x.y-(he?oe/2:oe)),ge++,he&&a.m(ge,ke.x,a.i(ge-1).y))):z===180?(E.alignment===Fh?(z=b.bottom+x.y,x.y===0&&Ee.y>Ve.y+E.rowIndent&&(z=Math.min(z,Math.max(Ee.y,z-y.computeNodeIndent(E))))):E.alignment===Dh?(z=b.top+x.y,x.y===0&&Ee.y<Ve.y-E.rowIndent&&(z=Math.max(z,Math.min(Ee.y,z+y.computeNodeIndent(E))))):z=E.hm||E.im&&E.maxGenerationCount===1?b.top-E.la.y+x.y:b.y+b.height/2+x.y,ue?(a.m(ge,Ee.x,z),ge++,a.m(ge,b.left-ne,z),ge++,a.m(ge,b.left-ne+(x.x+oe)/3,z),ge++,a.m(ge,b.left-ne+2*(x.x+oe)/3,z),ge++,a.m(ge,b.left-ne+(x.x+oe),z),ge++,a.m(ge,ke.x,z)):(he&&(a.m(ge,b.left-ne/2,Ee.y),ge++),a.m(ge,b.left-ne/2,z),ge++,a.m(ge,b.left-ne+x.x+(he?oe/2:oe),z),ge++,he&&a.m(ge,a.i(ge-1).x,ke.y))):z===270?(E.alignment===Fh?(z=b.right+x.x,x.x===0&&Ee.x>Ve.x+E.rowIndent&&(z=Math.min(z,Math.max(Ee.x,z-y.computeNodeIndent(E))))):E.alignment===Dh?(z=b.left+x.x,x.x===0&&Ee.x<Ve.x-E.rowIndent&&(z=Math.max(z,Math.min(Ee.x,z+y.computeNodeIndent(E))))):z=E.hm||E.im&&E.maxGenerationCount===1?b.left-E.la.x+x.x:b.x+b.width/2+x.x,ue?(a.m(ge,z,Ee.y),ge++,a.m(ge,z,b.top-ne),ge++,a.m(ge,z,b.top-ne+(x.y+oe)/3),ge++,a.m(ge,z,b.top-ne+2*(x.y+oe)/3),ge++,a.m(ge,z,b.top-ne+(x.y+oe)),ge++,a.m(ge,z,ke.y)):(he&&(a.m(ge,Ee.x,b.top-ne/2),ge++),a.m(ge,z,b.top-ne/2),ge++,a.m(ge,z,b.top-ne+x.y+(he?oe/2:oe)),ge++,he&&a.m(ge,ke.x,a.i(ge-1).y))):Pn("Invalid angle "+z),a.zf()}else x=b,a=this.link,b=this.network.layout,y=Zd(E),y!==Zd(x)&&(ne=b.computeLayerSpacing(E),oe=E.bounds,E=x.bounds,y===0&&E.left-oe.right<ne+1||y===90&&E.top-oe.bottom<ne+1||y===180&&oe.left-E.right<ne+1||y===270&&oe.top-E.bottom<ne+1||(a.vg(),E=a.curve===Ed,x=a.isOrthogonal,b=Yf(this.fromVertex.alignment),a.uh(),y===0?(y=oe.right+ne/2,E?a.pointsCount===4&&(E=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,E),a.m(3,y,E),a.m(4,y+20,E),a.L(5,a.i(5).x,E)):x?b?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=oe.bottom+ne/2,E?a.pointsCount===4&&(E=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,E,y-20),a.m(3,E,y),a.m(4,E,y+20),a.L(5,E,a.i(5).y)):x?b?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=oe.left-ne/2,E?a.pointsCount===4&&(E=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,E),a.m(3,y,E),a.m(4,y-20,E),a.L(5,a.i(5).x,E)):x?b?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=oe.top-ne/2,E?a.pointsCount===4&&(E=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,E,y+20),a.m(3,E,y),a.m(4,E,y-20),a.L(5,E,a.i(5).y)):x?b?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()))}}},tr.Object.defineProperties(Mg.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},relativePoint:{get:function(){return this.$t},set:function(a){this.$t.set(a)}}}),Mg.className="TreeEdge",ms.prototype.initializeStandardTools=function(){this.gb("Action",new jt,this.mouseDownTools),this.gb("Relinking",new Se,this.mouseDownTools),this.gb("LinkReshaping",new ze,this.mouseDownTools),this.gb("Rotating",new Lt,this.mouseDownTools),this.gb("Resizing",new ot,this.mouseDownTools),this.gb("Linking",new Ma,this.mouseMoveTools),this.gb("Dragging",new Do,this.mouseMoveTools),this.gb("DragSelecting",new fe,this.mouseMoveTools),this.gb("Panning",new je,this.mouseMoveTools),this.gb("ContextMenu",new mn,this.mouseUpTools),this.gb("TextEditing",new cr,this.mouseUpTools),this.gb("ClickCreating",new se,this.mouseUpTools),this.gb("ClickSelecting",new Ut,this.mouseUpTools)},vh("Horizontal",new jm),vh("Spot",new zm),vh("Table",new Wm),vh("Viewbox",new Zm),vh("TableRow",new Km),vh("TableColumn",new Ym),vh("Graduated",new Yg),vh("Grid",new Kg),ip.add("GraphLinksModel",Nu),ip.add("TreeModel",Ad);var fv=Hn.go,$y={get licenseKey(){return xn.licenseKey},set licenseKey(a){xn.licenseKey=a},get version(){return xn.version},Group:Fo,EnumValue:Mn,List:Ar,Set:qt,Map:xr,Point:xt,Size:sn,Rect:Un,Margin:Bi,Spot:ci,Geometry:Mr,PathFigure:ml,PathSegment:ua,InputEvent:$l,DiagramEvent:ac,ChangedEvent:ks,Model:Ai,GraphLinksModel:Ba,TreeModel:kc,Binding:Yl,Transaction:Sl,UndoManager:Fs,CommandHandler:Mt,Tool:Ti,DraggingTool:Do,DraggingInfo:eh,DraggingOptions:ce,LinkingBaseTool:ro,LinkingTool:Ma,RelinkingTool:Se,LinkReshapingTool:ze,ResizingTool:ot,RotatingTool:Lt,ClickSelectingTool:Ut,ActionTool:jt,ClickCreatingTool:se,HTMLInfo:St,ContextMenuTool:mn,DragSelectingTool:fe,PanningTool:je,TextEditingTool:cr,ToolManager:ms,Animation:Wo,AnimationManager:na,AnimationTrigger:Ks,Layer:po,Diagram:xn,Palette:ye,Overview:Ce,Brush:Ya,GraphObject:pn,Panel:kr,RowColumnDefinition:au,Shape:Zo,TextBlock:Us,Picture:Vc,Part:Wi,Adornment:Xa,Node:qr,Link:Fr,Placeholder:Pc,Layout:gl,LayoutNetwork:Hs,LayoutVertex:pu,LayoutEdge:ld,GridLayout:Mu,PanelLayout:fu,CircularLayout:Cl,CircularNetwork:Ng,CircularVertex:bm,CircularEdge:Y0,ForceDirectedLayout:Qu,ForceDirectedNetwork:jp,ForceDirectedVertex:xm,ForceDirectedEdge:wm,LayeredDigraphLayout:xs,LayeredDigraphNetwork:Ig,LayeredDigraphVertex:Nd,LayeredDigraphEdge:Am,TreeLayout:Ca,TreeNetwork:Wp,TreeVertex:Fd,TreeEdge:Mg};typeof fv=="object"&&fv.version&&Xo("WARNING: a `go` object on the root object is already defined. "+("Debug"in fv?"debug ":"")+"version: "+fv.version+", replaced with version: "+$y.version),xn.prototype.go=$y,Hn.go=$y,typeof Ke.exports=="object"&&(Ke.exports=typeof ae.g!="undefined"?ae.g.go:self.go)}();var ie=typeof ae.g!="undefined"?ae.g.go:self.go;const Pe=typeof ae.g!="undefined"?ae.g.go:self.go,Fe=Pe.Group,Oe=Pe.EnumValue,tt=Pe.List,Me=Pe.Set,_e=Pe.Map,ut=Pe.Point,et=Pe.Size,lt=Pe.Rect,Et=Pe.Margin,rt=Pe.Spot,_t=Pe.Geometry,Ge=Pe.PathFigure,te=Pe.PathSegment,ee=Pe.InputEvent,de=Pe.DiagramEvent,le=Pe.ChangedEvent,pe=Pe.Model,me=Pe.GraphLinksModel,xe=Pe.TreeModel,be=Pe.Binding,Be=Pe.Transaction,at=Pe.UndoManager,dt=Pe.CommandHandler,gt=Pe.Tool,ft=Pe.DraggingTool,Nt=Pe.DraggingInfo,Tt=Pe.LinkingBaseTool,Ct=Pe.LinkingTool,Vt=Pe.RelinkingTool,Rt=Pe.LinkReshapingTool,nn=Pe.ResizingTool,Cn=Pe.RotatingTool,un=Pe.ClickSelectingTool,Nn=Pe.ActionTool,wt=Pe.ClickCreatingTool,pt=Pe.HTMLInfo,Ie=Pe.ContextMenuTool,on=Pe.DragSelectingTool,Bn=Pe.PanningTool,Zt=Pe.TextEditingTool,zn=Pe.ToolManager,_n=Pe.Animation,nr=Pe.AnimationManager,Ft=Pe.AnimationTrigger,Wt=Pe.Layer,ht=Pe.Diagram,tn=Pe.Palette,an=Pe.Overview,ct=Pe.Brush,Ue=Pe.GraphObject,He=Pe.Panel,it=Pe.RowColumnDefinition,vt=Pe.Shape,Ye=Pe.TextBlock,It=Pe.TextBlockMetrics,In=Pe.Picture,Kn=Pe.Part,dr=Pe.Adornment,Rn=Pe.Node,er=Pe.Link,yn=Pe.Placeholder,Er=Pe.Layout,sr=Pe.LayoutNetwork,Hr=Pe.LayoutVertex,An=Pe.LayoutEdge,yi=Pe.GridLayout,ri=Pe.PanelLayout,bn=Pe.CircularLayout,Xe=Pe.CircularNetwork,Ji=Pe.CircularVertex,Qn=Pe.CircularEdge,Sn=Pe.ForceDirectedLayout,to=Pe.ForceDirectedNetwork,Ki=Pe.ForceDirectedVertex,Zr=Pe.ForceDirectedEdge,hi=Pe.LayeredDigraphLayout,Ir=Pe.LayeredDigraphNetwork,fn=Pe.LayeredDigraphVertex,Hi=Pe.LayeredDigraphEdge,ao=Pe.TreeLayout,ui=Pe.TreeNetwork,ai=Pe.TreeVertex,Ni=Pe.TreeEdge,ir=Pe.version},18139:function(Ke){var we=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ae=/\n/g,ie=/^\s*/,Pe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Fe=/^:\s*/,Oe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,tt=/^[;\s]*/,Me=/^\s+|\s+$/g,_e=`
|
|
|
`,ut="/",et="*",lt="",Et="comment",rt="declaration";Ke.exports=function(Ge,te){if(typeof Ge!="string")throw new TypeError("First argument must be a string");if(!Ge)return[];te=te||{};var ee=1,de=1;function le(Tt){var Ct=Tt.match(ae);Ct&&(ee+=Ct.length);var Vt=Tt.lastIndexOf(_e);de=~Vt?Tt.length-Vt:de+Tt.length}function pe(){var Tt={line:ee,column:de};return function(Ct){return Ct.position=new me(Tt),at(),Ct}}function me(Tt){this.start=Tt,this.end={line:ee,column:de},this.source=te.source}me.prototype.content=Ge;var xe=[];function be(Tt){var Ct=new Error(te.source+":"+ee+":"+de+": "+Tt);if(Ct.reason=Tt,Ct.filename=te.source,Ct.line=ee,Ct.column=de,Ct.source=Ge,te.silent)xe.push(Ct);else throw Ct}function Be(Tt){var Ct=Tt.exec(Ge);if(Ct){var Vt=Ct[0];return le(Vt),Ge=Ge.slice(Vt.length),Ct}}function at(){Be(ie)}function dt(Tt){var Ct;for(Tt=Tt||[];Ct=gt();)Ct!==!1&&Tt.push(Ct);return Tt}function gt(){var Tt=pe();if(!(ut!=Ge.charAt(0)||et!=Ge.charAt(1))){for(var Ct=2;lt!=Ge.charAt(Ct)&&(et!=Ge.charAt(Ct)||ut!=Ge.charAt(Ct+1));)++Ct;if(Ct+=2,lt===Ge.charAt(Ct-1))return be("End of comment missing");var Vt=Ge.slice(2,Ct-2);return de+=2,le(Vt),Ge=Ge.slice(Ct),de+=2,Tt({type:Et,comment:Vt})}}function ft(){var Tt=pe(),Ct=Be(Pe);if(Ct){if(gt(),!Be(Fe))return be("property missing ':'");var Vt=Be(Oe),Rt=Tt({type:rt,property:_t(Ct[0].replace(we,lt)),value:Vt?_t(Vt[0].replace(we,lt)):lt});return Be(tt),Rt}}function Nt(){var Tt=[];dt(Tt);for(var Ct;Ct=ft();)Ct!==!1&&(Tt.push(Ct),dt(Tt));return Tt}return at(),Nt()};function _t(Ge){return Ge?Ge.replace(Me,lt):lt}},46260:function(Ke){"use strict";Ke.exports=we;function we(ae){var ie=typeof ae=="string"?ae.charCodeAt(0):ae;return ie>=97&&ie<=122||ie>=65&&ie<=90}},7961:function(Ke,we,ae){"use strict";var ie=ae(46260),Pe=ae(46195);Ke.exports=Fe;function Fe(Oe){return ie(Oe)||Pe(Oe)}},46195:function(Ke){"use strict";Ke.exports=we;function we(ae){var ie=typeof ae=="string"?ae.charCodeAt(0):ae;return ie>=48&&ie<=57}},79480:function(Ke){"use strict";Ke.exports=we;function we(ae){var ie=typeof ae=="string"?ae.charCodeAt(0):ae;return ie>=97&&ie<=102||ie>=65&&ie<=70||ie>=48&&ie<=57}},19575:function(Ke,we,ae){var ie,Pe;(function(Fe,Oe){Ke.exports=Oe(Fe)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ae.g!="undefined"?ae.g:this,function(Fe){"use strict";Fe=Fe||{};var Oe=Fe.Base64,tt="2.6.4",Me="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_e=function(Vt){for(var Rt={},nn=0,Cn=Vt.length;nn<Cn;nn++)Rt[Vt.charAt(nn)]=nn;return Rt}(Me),ut=String.fromCharCode,et=function(Vt){if(Vt.length<2){var Rt=Vt.charCodeAt(0);return Rt<128?Vt:Rt<2048?ut(192|Rt>>>6)+ut(128|Rt&63):ut(224|Rt>>>12&15)+ut(128|Rt>>>6&63)+ut(128|Rt&63)}else{var Rt=65536+(Vt.charCodeAt(0)-55296)*1024+(Vt.charCodeAt(1)-56320);return ut(240|Rt>>>18&7)+ut(128|Rt>>>12&63)+ut(128|Rt>>>6&63)+ut(128|Rt&63)}},lt=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Et=function(Vt){return Vt.replace(lt,et)},rt=function(Vt){var Rt=[0,2,1][Vt.length%3],nn=Vt.charCodeAt(0)<<16|(Vt.length>1?Vt.charCodeAt(1):0)<<8|(Vt.length>2?Vt.charCodeAt(2):0),Cn=[Me.charAt(nn>>>18),Me.charAt(nn>>>12&63),Rt>=2?"=":Me.charAt(nn>>>6&63),Rt>=1?"=":Me.charAt(nn&63)];return Cn.join("")},_t=Fe.btoa&&typeof Fe.btoa=="function"?function(Vt){return Fe.btoa(Vt)}:function(Vt){if(Vt.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Vt.replace(/[\s\S]{1,3}/g,rt)},Ge=function(Vt){return _t(Et(String(Vt)))},te=function(Vt){return Vt.replace(/[+\/]/g,function(Rt){return Rt=="+"?"-":"_"}).replace(/=/g,"")},ee=function(Vt,Rt){return Rt?te(Ge(Vt)):Ge(Vt)},de=function(Vt){return ee(Vt,!0)},le;Fe.Uint8Array&&(le=function(Vt,Rt){for(var nn="",Cn=0,un=Vt.length;Cn<un;Cn+=3){var Nn=Vt[Cn],wt=Vt[Cn+1],pt=Vt[Cn+2],Ie=Nn<<16|wt<<8|pt;nn+=Me.charAt(Ie>>>18)+Me.charAt(Ie>>>12&63)+(typeof wt!="undefined"?Me.charAt(Ie>>>6&63):"=")+(typeof pt!="undefined"?Me.charAt(Ie&63):"=")}return Rt?te(nn):nn});var pe=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,me=function(Vt){switch(Vt.length){case 4:var Rt=(7&Vt.charCodeAt(0))<<18|(63&Vt.charCodeAt(1))<<12|(63&Vt.charCodeAt(2))<<6|63&Vt.charCodeAt(3),nn=Rt-65536;return ut((nn>>>10)+55296)+ut((nn&1023)+56320);case 3:return ut((15&Vt.charCodeAt(0))<<12|(63&Vt.charCodeAt(1))<<6|63&Vt.charCodeAt(2));default:return ut((31&Vt.charCodeAt(0))<<6|63&Vt.charCodeAt(1))}},xe=function(Vt){return Vt.replace(pe,me)},be=function(Vt){var Rt=Vt.length,nn=Rt%4,Cn=(Rt>0?_e[Vt.charAt(0)]<<18:0)|(Rt>1?_e[Vt.charAt(1)]<<12:0)|(Rt>2?_e[Vt.charAt(2)]<<6:0)|(Rt>3?_e[Vt.charAt(3)]:0),un=[ut(Cn>>>16),ut(Cn>>>8&255),ut(Cn&255)];return un.length-=[0,0,2,1][nn],un.join("")},Be=Fe.atob&&typeof Fe.atob=="function"?function(Vt){return Fe.atob(Vt)}:function(Vt){return Vt.replace(/\S{1,4}/g,be)},at=function(Vt){return Be(String(Vt).replace(/[^A-Za-z0-9\+\/]/g,""))},dt=function(Vt){return xe(Be(Vt))},gt=function(Vt){return String(Vt).replace(/[-_]/g,function(Rt){return Rt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ft=function(Vt){return dt(gt(Vt))},Nt;Fe.Uint8Array&&(Nt=function(Vt){return Uint8Array.from(at(gt(Vt)),function(Rt){return Rt.charCodeAt(0)})});var Tt=function(){var Vt=Fe.Base64;return Fe.Base64=Oe,Vt};if(Fe.Base64={VERSION:tt,atob:at,btoa:_t,fromBase64:ft,toBase64:ee,utob:Et,encode:ee,encodeURI:de,btou:xe,decode:ft,noConflict:Tt,fromUint8Array:le,toUint8Array:Nt},typeof Object.defineProperty=="function"){var Ct=function(Vt){return{value:Vt,enumerable:!1,writable:!0,configurable:!0}};Fe.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Ct(function(){return ft(this)})),Object.defineProperty(String.prototype,"toBase64",Ct(function(Vt){return ee(this,Vt)})),Object.defineProperty(String.prototype,"toBase64URI",Ct(function(){return ee(this,!0)}))}}return Fe.Meteor&&(Base64=Fe.Base64),Ke.exports?Ke.exports.Base64=Fe.Base64:(ie=[],Pe=function(){return Fe.Base64}.apply(we,ie),Pe!==void 0&&(Ke.exports=Pe)),{Base64:Fe.Base64}})},15979:function(Ke,we,ae){"use strict";ae.d(we,{hP:function(){return an}});var ie=function(ct,Ue){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(He,it){He.__proto__=it}||function(He,it){for(var vt in it)Object.prototype.hasOwnProperty.call(it,vt)&&(He[vt]=it[vt])})(ct,Ue)};function Pe(ct,Ue){function He(){this.constructor=ct}ie(ct,Ue),ct.prototype=Ue===null?Object.create(Ue):(He.prototype=Ue.prototype,new He)}function Fe(ct,Ue,He,it){return new(He||(He=Promise))(function(vt,Ye){function It(dr){try{Kn(it.next(dr))}catch(Rn){Ye(Rn)}}function In(dr){try{Kn(it.throw(dr))}catch(Rn){Ye(Rn)}}function Kn(dr){var Rn;dr.done?vt(dr.value):(Rn=dr.value,Rn instanceof He?Rn:new He(function(er){er(Rn)})).then(It,In)}Kn((it=it.apply(ct,Ue||[])).next())})}function Oe(ct,Ue){var He,it,vt,Ye,It={label:0,sent:function(){if(1&vt[0])throw vt[1];return vt[1]},trys:[],ops:[]};return Ye={next:In(0),throw:In(1),return:In(2)},typeof Symbol=="function"&&(Ye[Symbol.iterator]=function(){return this}),Ye;function In(Kn){return function(dr){return function(Rn){if(He)throw new TypeError("Generator is already executing.");for(;It;)try{if(He=1,it&&(vt=2&Rn[0]?it.return:Rn[0]?it.throw||((vt=it.return)&&vt.call(it),0):it.next)&&!(vt=vt.call(it,Rn[1])).done)return vt;switch(it=0,vt&&(Rn=[2&Rn[0],vt.value]),Rn[0]){case 0:case 1:vt=Rn;break;case 4:return It.label++,{value:Rn[1],done:!1};case 5:It.label++,it=Rn[1],Rn=[0];continue;case 7:Rn=It.ops.pop(),It.trys.pop();continue;default:if(vt=It.trys,!((vt=vt.length>0&&vt[vt.length-1])||Rn[0]!==6&&Rn[0]!==2)){It=0;continue}if(Rn[0]===3&&(!vt||Rn[1]>vt[0]&&Rn[1]<vt[3])){It.label=Rn[1];break}if(Rn[0]===6&&It.label<vt[1]){It.label=vt[1],vt=Rn;break}if(vt&&It.label<vt[2]){It.label=vt[2],It.ops.push(Rn);break}vt[2]&&It.ops.pop(),It.trys.pop();continue}Rn=Ue.call(ct,It)}catch(er){Rn=[6,er],it=0}finally{He=vt=0}if(5&Rn[0])throw Rn[1];return{value:Rn[0]?Rn[1]:void 0,done:!0}}([Kn,dr])}}}function tt(){for(var ct=0,Ue=0,He=arguments.length;Ue<He;Ue++)ct+=arguments[Ue].length;var it=Array(ct),vt=0;for(Ue=0;Ue<He;Ue++)for(var Ye=arguments[Ue],It=0,In=Ye.length;It<In;It++,vt++)it[vt]=Ye[It];return it}var Me=function(){function ct(){}return ct.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ct.setAttributes=function(Ue,He){for(var it=0,vt=He;it<vt.length;it++){var Ye=vt[it],It=Ye[0],In=Ye[1];Ue.setAttribute(It,In)}},ct.createRect=function(Ue,He,it){var vt=document.createElementNS("http://www.w3.org/2000/svg","rect");return vt.setAttribute("width",Ue.toString()),vt.setAttribute("height",He.toString()),it&&ct.setAttributes(vt,it),vt},ct.createLine=function(Ue,He,it,vt,Ye){var It=document.createElementNS("http://www.w3.org/2000/svg","line");return It.setAttribute("x1",Ue.toString()),It.setAttribute("y1",He.toString()),It.setAttribute("x2",it.toString()),It.setAttribute("y2",vt.toString()),Ye&&ct.setAttributes(It,Ye),It},ct.createPolygon=function(Ue,He){var it=document.createElementNS("http://www.w3.org/2000/svg","polygon");return it.setAttribute("points",Ue),He&&ct.setAttributes(it,He),it},ct.createCircle=function(Ue,He){var it=document.createElementNS("http://www.w3.org/2000/svg","circle");return it.setAttribute("cx",(Ue/2).toString()),it.setAttribute("cy",(Ue/2).toString()),it.setAttribute("r",Ue.toString()),He&&ct.setAttributes(it,He),it},ct.createEllipse=function(Ue,He,it){var vt=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return vt.setAttribute("cx",(Ue/2).toString()),vt.setAttribute("cy",(He/2).toString()),vt.setAttribute("rx",(Ue/2).toString()),vt.setAttribute("ry",(He/2).toString()),it&&ct.setAttributes(vt,it),vt},ct.createGroup=function(Ue){var He=document.createElementNS("http://www.w3.org/2000/svg","g");return Ue&&ct.setAttributes(He,Ue),He},ct.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ct.createMarker=function(Ue,He,it,vt,Ye,It,In){var Kn=document.createElementNS("http://www.w3.org/2000/svg","marker");return ct.setAttributes(Kn,[["id",Ue],["orient",He],["markerWidth",it.toString()],["markerHeight",vt.toString()],["refX",Ye.toString()],["refY",It.toString()]]),Kn.appendChild(In),Kn},ct.createText=function(Ue){var He=document.createElementNS("http://www.w3.org/2000/svg","text");return He.setAttribute("x","0"),He.setAttribute("y","0"),Ue&&ct.setAttributes(He,Ue),He},ct.createTSpan=function(Ue,He){var it=document.createElementNS("http://www.w3.org/2000/svg","tspan");return it.textContent=Ue,He&&ct.setAttributes(it,He),it},ct.createImage=function(Ue){var He=document.createElementNS("http://www.w3.org/2000/svg","image");return Ue&&ct.setAttributes(He,Ue),He},ct.createPoint=function(Ue,He){var it=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return it.x=Ue,it.y=He,it},ct.createPath=function(Ue,He){var it=document.createElementNS("http://www.w3.org/2000/svg","path");return it.setAttribute("d",Ue),He&&ct.setAttributes(it,He),it},ct}(),_e=function(){function ct(){}return ct.addKey=function(Ue){ct.key=Ue},Object.defineProperty(ct,"isLicensed",{get:function(){return!!ct.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ct.key)},enumerable:!1,configurable:!0}),ct}(),ut=function(){function ct(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ct.prototype.rasterize=function(Ue,He,it){var vt=this;return new Promise(function(Ye){var It=it!==void 0?it:document.createElement("canvas");Ue===null&&(vt.markersOnly=!0,vt.naturalSize=!1);var In=document.createElementNS("http://www.w3.org/2000/svg","svg");In.setAttribute("xmlns","http://www.w3.org/2000/svg"),In.setAttribute("width",He.width.baseVal.valueAsString),In.setAttribute("height",He.height.baseVal.valueAsString),In.setAttribute("viewBox","0 0 "+He.viewBox.baseVal.width.toString()+" "+He.viewBox.baseVal.height.toString()),In.innerHTML=He.innerHTML,vt.naturalSize===!0?(In.width.baseVal.value=Ue.naturalWidth,In.height.baseVal.value=Ue.naturalHeight):vt.width!==void 0&&vt.height!==void 0&&(In.width.baseVal.value=vt.width,In.height.baseVal.value=vt.height),It.width=In.width.baseVal.value,It.height=In.height.baseVal.value;var Kn=In.outerHTML,dr=It.getContext("2d");vt.markersOnly!==!0&&dr.drawImage(Ue,0,0,It.width,It.height);var Rn=window.URL,er=new Image(It.width,It.height);er.setAttribute("crossOrigin","anonymous");var yn=new Blob([Kn],{type:"image/svg+xml"}),Er=Rn.createObjectURL(yn);er.onload=function(){dr.drawImage(er,0,0),Rn.revokeObjectURL(Er);var sr=It.toDataURL(vt.imageType,vt.imageQuality);Ye(sr)},er.src=Er})},ct}(),et=function(){},lt=function(){function ct(Ue){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Ue+"_"}return Object.defineProperty(ct.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ct.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(ct.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ct.prototype.addClass=function(Ue){return this.styleSheet===void 0&&this.addStyleSheet(),Ue.name=""+this.classNamePrefix+Ue.localName,this.classes.push(Ue),this.styleSheet.sheet.insertRule("."+Ue.name+" {"+Ue.style+"}",this.styleSheet.sheet.cssRules.length),Ue},ct.prototype.addRule=function(Ue){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Ue),this.styleSheet.sheet.insertRule(Ue.selector+" {"+Ue.style+"}",this.styleSheet.sheet.cssRules.length)},ct.prototype.addStyleSheet=function(){var Ue;this.styleSheet=document.createElement("style"),((Ue=this.styleSheetRoot)!==null&&Ue!==void 0?Ue:document.head).appendChild(this.styleSheet),this.addRule(new Et("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Et("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new Et("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new rt("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new rt("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},ct.prototype.removeStyleSheet=function(){var Ue;this.styleSheet&&(((Ue=this.styleSheetRoot)!==null&&Ue!==void 0?Ue:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ct}(),Et=function(ct,Ue){this.selector=ct,this.style=Ue},rt=function(ct,Ue){this.localName=ct,this.style=Ue},_t=function(){function ct(Ue,He,it,vt,Ye){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Ue,this.displayMode=He,this.markerItems=it,this.uiStyleSettings=vt,this.styles=Ye,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ct.prototype.show=function(Ue){var He=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Ue,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var it=document.createElement("div");it.className=this.toolbarBlockStyleClass.name,it.style.whiteSpace="nowrap",this.uiContainer.appendChild(it),this.addActionButton(it,'<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(it,'<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(it,'<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(it,'<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(it,'<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(it,'<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(it,'<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(it,'<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(Ye){var It=document.createElement("div");It.className=""+He.toolbarButtonStyleClass.name,It.setAttribute("data-type-name",Ye.typeName),It.innerHTML=Ye.icon,It.addEventListener("click",function(){He.markerToolbarButtonClicked(It,Ye)}),He.buttons.push(It),He.markerButtons.push(It)}),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 vt=document.createElement("div");vt.className=this.toolbarBlockStyleClass.name,vt.style.whiteSpace="nowrap",vt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(vt),this.addActionButton(vt,'<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(vt,'<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()},ct.prototype.addButtonClickListener=function(Ue){this.buttonClickListeners.push(Ue)},ct.prototype.removeButtonClickListener=function(Ue){this.buttonClickListeners.indexOf(Ue)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Ue),1)},ct.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ct.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Ue=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var He=0;He<this.markerButtons.length;He++)He<Ue||He===Ue&&this.markerButtons.length-1===Ue?this.markerButtonBlock.appendChild(this.markerButtons[He]):(He===Ue&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[He]))}},ct.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")},ct.prototype.resetButtonStyles=function(){var Ue=this;this.buttons.forEach(function(He){He.className=He.className.replace(Ue.uiStyleSettings.toolbarButtonStyleColorsClassName?Ue.uiStyleSettings.toolbarButtonStyleColorsClassName:Ue.toolbarButtonStyleColorsClass.name,"").trim(),He.className=He.className.replace(Ue.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Ue.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Ue.toolbarActiveButtonStyleColorsClass.name,"").trim(),He.className+=" "+(Ue.uiStyleSettings.toolbarButtonStyleColorsClassName?Ue.uiStyleSettings.toolbarButtonStyleColorsClassName:Ue.toolbarButtonStyleColorsClass.name)})},ct.prototype.addActionButton=function(Ue,He,it){var vt=this,Ye=document.createElement("div");switch(Ye.className=""+this.toolbarButtonStyleClass.name,Ye.innerHTML=He,Ye.setAttribute("data-action",it),Ye.addEventListener("click",function(){vt.actionToolbarButtonClicked(Ye,it)}),it){case"select":Ye.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Ye.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Ye.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Ye.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Ye.style.fill=this.uiStyleSettings.closeButtonColor}Ue.appendChild(Ye),this.buttons.push(Ye)},ct.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new rt("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 rt("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new rt("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new rt("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 rt("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var Ue=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new rt("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Ue)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Ue)+`px;
|
|
|
padding: `+Ue+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new rt("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new rt("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Et("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new Et("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},ct.prototype.markerToolbarButtonClicked=function(Ue,He){this.setActiveButton(Ue),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(it){return it("marker",He)}),this.markerButtonOverflowBlock.style.display="none"},ct.prototype.actionToolbarButtonClicked=function(Ue,He){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(it){return it("action",He)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ct.prototype.setActiveButton=function(Ue){this.resetButtonStyles(),Ue.className=Ue.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Ue.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ct.prototype.setActiveMarkerButton=function(Ue){var He=this.markerButtons.find(function(it){return it.getAttribute("data-type-name")===Ue});He&&this.setActiveButton(He)},ct.prototype.setCurrentMarker=function(Ue){var He=this;this.currentMarker=Ue,this.buttons.filter(function(it){return/delete|notes/.test(it.getAttribute("data-action"))}).forEach(function(it){He.currentMarker===void 0?(it.style.fillOpacity="0.4",it.style.pointerEvents="none"):(it.style.fillOpacity="1",it.style.pointerEvents="all")})},ct}(),Ge=function(){function ct(Ue,He,it,vt){this.panels=[],this.panelButtons=[],this.markerjsContainer=Ue,this.displayMode=He,this.uiStyleSettings=it,this.styles=vt,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ct.prototype.addStyles=function(){var Ue;this.toolboxStyleClass=this.styles.addClass(new rt("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 rt("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var He=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new rt("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new rt("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new rt("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 rt("toolbox-panel-row_colors",`
|
|
|
background-color: `+((Ue=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Ue!==void 0?Ue:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new rt("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*He)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*He)+`px;
|
|
|
padding: `+He+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new rt("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new rt("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new Et("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Et("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},ct.prototype.show=function(Ue){var He;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Ue,this.uiContainer.className=this.toolboxStyleClass.name+" "+((He=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&He!==void 0?He:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ct.prototype.setPanelButtons=function(Ue){var He,it,vt=this;this.panels=Ue,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((He=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&He!==void 0?He:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((it=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&it!==void 0?it:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Ye){var It;Ye.uiStyleSettings=vt.uiStyleSettings;var In=document.createElement("div");In.className=vt.toolboxButtonStyleClass.name+" "+((It=vt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&It!==void 0?It:vt.toolboxButtonStyleColorsClass.name),In.innerHTML=Ye.icon,In.title=Ye.title,In.addEventListener("click",function(){vt.panelButtonClick(Ye)}),vt.panelButtons.push(In),vt.buttonRow.appendChild(In)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ct.prototype.panelButtonClick=function(Ue){var He=this,it=-1;if(Ue!==this.activePanel){it=this.panels.indexOf(Ue),this.panelRow.innerHTML="";var vt=Ue.getUi();vt.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(vt),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=Ue}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){He.displayMode==="inline"?He.panelRow.style.display="none":He.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Ye,It){var In,Kn;Ye.className=He.toolboxButtonStyleClass.name+" "+(It===it?""+((In=He.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&In!==void 0?In:He.toolboxActiveButtonStyleColorsClass.name):""+((Kn=He.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Kn!==void 0?Kn:He.toolboxButtonStyleColorsClass.name))})},ct}(),te=function(ct,Ue){this.title=ct,this.icon=Ue},ee=function(ct){function Ue(He,it,vt,Ye){var It=ct.call(this,He,Ye||'<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 It.colors=[],It.addTransparent=!1,It.colorBoxes=[],It.colors=it,It.currentColor=vt,It.setCurrentColor=It.setCurrentColor.bind(It),It.getColorBox=It.getColorBox.bind(It),It}return Pe(Ue,ct),Ue.prototype.getUi=function(){var He=this,it=document.createElement("div");return it.style.overflow="hidden",it.style.whiteSpace="nowrap",this.colors.forEach(function(vt){var Ye=He.getColorBox(vt);it.appendChild(Ye),He.colorBoxes.push(Ye)}),it},Ue.prototype.getColorBox=function(He){var it=this,vt=this.uiStyleSettings.toolbarHeight/4,Ye=this.uiStyleSettings.toolbarHeight-vt,It=document.createElement("div");It.style.display="inline-block",It.style.boxSizing="content-box",It.style.width=Ye-2+"px",It.style.height=Ye-2+"px",It.style.padding="1px",It.style.marginRight="2px",It.style.marginBottom="2px",It.style.borderWidth="2px",It.style.borderStyle="solid",It.style.borderRadius=(Ye+2)/2+"px",It.style.borderColor=He===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",It.addEventListener("click",function(){it.setCurrentColor(He,It)});var In=document.createElement("div");return In.style.display="inline-block",In.style.width=Ye-2+"px",In.style.height=Ye-2+"px",In.style.backgroundColor=He,In.style.borderRadius=Ye/2+"px",He==="transparent"&&(In.style.fill=this.uiStyleSettings.toolboxAccentColor,In.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>`),It.appendChild(In),It},Ue.prototype.setCurrentColor=function(He,it){var vt=this;this.currentColor=He,this.colorBoxes.forEach(function(Ye){Ye.style.borderColor=Ye===it?vt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(He)},Ue}(te),de=function(){function ct(Ue,He,it){this._state="new",this._isSelected=!1,this._container=Ue,this._overlayContainer=He,this.globalSettings=it,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ct.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ct.prototype.ownsTarget=function(Ue){return!1},Object.defineProperty(ct.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ct.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ct.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ct.prototype.pointerDown=function(Ue,He){},ct.prototype.dblClick=function(Ue,He){},ct.prototype.manipulate=function(Ue){},ct.prototype.pointerUp=function(Ue){this.stateChanged()},ct.prototype.dispose=function(){},ct.prototype.addMarkerVisualToContainer=function(Ue){this.container.childNodes.length>0?this.container.insertBefore(Ue,this.container.childNodes[0]):this.container.appendChild(Ue)},ct.prototype.getState=function(){return{typeName:ct.typeName,state:this.state,notes:this.notes}},ct.prototype.restoreState=function(Ue){this._state=Ue.state,this.notes=Ue.notes},ct.prototype.scale=function(Ue,He){},ct.prototype.colorChanged=function(Ue){this.onColorChanged&&this.onColorChanged(Ue),this.stateChanged()},ct.prototype.fillColorChanged=function(Ue){this.onFillColorChanged&&this.onFillColorChanged(Ue),this.stateChanged()},ct.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Ue=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Ue.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Ue)&&this.onStateChanged(this)}},ct.typeName="MarkerBase",ct}(),le=function(){function ct(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ct.prototype.findGripByVisual=function(Ue){return this.topLeft.ownsTarget(Ue)?this.topLeft:this.topCenter.ownsTarget(Ue)?this.topCenter:this.topRight.ownsTarget(Ue)?this.topRight:this.centerLeft.ownsTarget(Ue)?this.centerLeft:this.centerRight.ownsTarget(Ue)?this.centerRight:this.bottomLeft.ownsTarget(Ue)?this.bottomLeft:this.bottomCenter.ownsTarget(Ue)?this.bottomCenter:this.bottomRight.ownsTarget(Ue)?this.bottomRight:void 0},ct}(),pe=function(){function ct(){this.GRIP_SIZE=10,this.visual=Me.createGroup(),this.visual.appendChild(Me.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Me.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ct.prototype.ownsTarget=function(Ue){return Ue===this.visual||Ue===this.visual.childNodes[0]||Ue===this.visual.childNodes[1]},ct}(),me=function(){function ct(){}return ct.toITransformMatrix=function(Ue){return{a:Ue.a,b:Ue.b,c:Ue.c,d:Ue.d,e:Ue.e,f:Ue.f}},ct.toSVGMatrix=function(Ue,He){return Ue.a=He.a,Ue.b=He.b,Ue.c=He.c,Ue.d=He.d,Ue.e=He.e,Ue.f=He.f,Ue},ct}(),xe=function(ct){function Ue(He,it,vt){var Ye=ct.call(this,He,it,vt)||this;return Ye.left=0,Ye.top=0,Ye.width=0,Ye.height=0,Ye.defaultSize={x:50,y:20},Ye.offsetX=0,Ye.offsetY=0,Ye.rotationAngle=0,Ye.CB_DISTANCE=10,Ye._suppressMarkerCreateEvent=!1,Ye.container.transform.baseVal.appendItem(Me.createTransform()),Ye.setupControlBox(),Ye}return Pe(Ue,ct),Object.defineProperty(Ue.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ue.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ue.prototype,"visual",{get:function(){return this._visual},set:function(He){this._visual=He;var it=Me.createTransform();this._visual.transform.baseVal.appendItem(it)},enumerable:!1,configurable:!0}),Ue.prototype.ownsTarget=function(He){return!!ct.prototype.ownsTarget.call(this,He)||!!(this.controlGrips.findGripByVisual(He)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(He))},Ue.prototype.pointerDown=function(He,it){ct.prototype.pointerDown.call(this,He,it),this.state==="new"&&(this.left=He.x,this.top=He.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var vt=this.unrotatePoint(He);if(this.manipulationStartX=vt.x,this.manipulationStartY=vt.y,this.offsetX=vt.x-this.left,this.offsetY=vt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(it),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(it)){this.activeGrip=this.rotatorGrip;var Ye=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Ye.x-this.width/2,this.top=Ye.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var It=this.container.transform.baseVal.getItem(0);It.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(It,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Ue.prototype.pointerUp=function(He){var it=this.state;ct.prototype.pointerUp.call(this,He),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(He),this._state="select",it==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Ue.prototype.moveVisual=function(He){this.visual.style.transform="translate("+He.x+"px, "+He.y+"px)"},Ue.prototype.manipulate=function(He){var it=this.unrotatePoint(He);this.state==="creating"?this.resize(He):this.state==="move"?(this.left=this.manipulationStartLeft+(it.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(it.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(it):this.state==="rotate"&&this.rotate(He)},Ue.prototype.resize=function(He){var it=this.manipulationStartLeft,vt=this.manipulationStartWidth,Ye=this.manipulationStartTop,It=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:it=this.manipulationStartLeft+He.x-this.manipulationStartX,vt=this.manipulationStartWidth+this.manipulationStartLeft-it;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:vt=this.manipulationStartWidth+He.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Ye=this.manipulationStartTop+He.y-this.manipulationStartY,It=this.manipulationStartHeight+this.manipulationStartTop-Ye;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:It=this.manipulationStartHeight+He.y-this.manipulationStartY}vt>=0?(this.left=it,this.width=vt):(this.left=it+vt,this.width=-vt),It>=0?(this.top=Ye,this.height=It):(this.top=Ye+It,this.height=-It),this.setSize()},Ue.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Ue.prototype.rotate=function(He){if(Math.abs(He.x-this.centerX)>.1){var it=Math.sign(He.x-this.centerX);this.rotationAngle=180*Math.atan((He.y-this.centerY)/(He.x-this.centerX))/Math.PI+90*it,this.applyRotation()}},Ue.prototype.applyRotation=function(){var He=this.container.transform.baseVal.getItem(0);He.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(He,0)},Ue.prototype.rotatePoint=function(He){if(this.rotationAngle===0)return He;var it=this.container.getCTM(),vt=Me.createPoint(He.x,He.y);return{x:(vt=vt.matrixTransform(it)).x,y:vt.y}},Ue.prototype.unrotatePoint=function(He){if(this.rotationAngle===0)return He;var it=this.container.getCTM();it=it.inverse();var vt=Me.createPoint(He.x,He.y);return{x:(vt=vt.matrixTransform(it)).x,y:vt.y}},Ue.prototype.select=function(){ct.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ue.prototype.deselect=function(){ct.prototype.deselect.call(this),this.controlBox.style.display="none"},Ue.prototype.setupControlBox=function(){this.controlBox=Me.createGroup();var He=Me.createTransform();He.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(He),this.container.appendChild(this.controlBox),this.controlRect=Me.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=Me.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 le,this.addControlGrips(),this.controlBox.style.display="none"},Ue.prototype.adjustControlBox=function(){var He=this.controlBox.transform.baseVal.getItem(0);He.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(He,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()},Ue.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()},Ue.prototype.createGrip=function(){var He=new pe;return He.visual.transform.baseVal.appendItem(Me.createTransform()),this.controlBox.appendChild(He.visual),He},Ue.prototype.positionGrips=function(){var He=this.controlGrips.topLeft.GRIP_SIZE,it=-He/2,vt=it,Ye=(this.width+this.CB_DISTANCE)/2-He/2,It=(this.height+this.CB_DISTANCE)/2-He/2,In=this.height+this.CB_DISTANCE-He/2,Kn=this.width+this.CB_DISTANCE-He/2;this.positionGrip(this.controlGrips.topLeft.visual,it,vt),this.positionGrip(this.controlGrips.topCenter.visual,Ye,vt),this.positionGrip(this.controlGrips.topRight.visual,Kn,vt),this.positionGrip(this.controlGrips.centerLeft.visual,it,It),this.positionGrip(this.controlGrips.centerRight.visual,Kn,It),this.positionGrip(this.controlGrips.bottomLeft.visual,it,In),this.positionGrip(this.controlGrips.bottomCenter.visual,Ye,In),this.positionGrip(this.controlGrips.bottomRight.visual,Kn,In),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Ye,vt-3*this.CB_DISTANCE)},Ue.prototype.positionGrip=function(He,it,vt){var Ye=He.transform.baseVal.getItem(0);Ye.setTranslate(it,vt),He.transform.baseVal.replaceItem(Ye,0)},Ue.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Ue.prototype.showControlBox=function(){this.controlBox.style.display=""},Ue.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)},ct.prototype.getState.call(this))},Ue.prototype.restoreState=function(He){ct.prototype.restoreState.call(this,He);var it=He;this.left=it.left,this.top=it.top,this.width=it.width,this.height=it.height,this.rotationAngle=it.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,it.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,it.containerTransformMatrix))},Ue.prototype.scale=function(He,it){ct.prototype.scale.call(this,He,it);var vt=this.rotatePoint({x:this.left,y:this.top}),Ye=this.unrotatePoint({x:vt.x*He,y:vt.y*it});this.left=Ye.x,this.top=Ye.y,this.width=this.width*He,this.height=this.height*it,this.adjustControlBox()},Ue}(de),be=function(ct){function Ue(He,it,vt){var Ye=ct.call(this,He,it,vt)||this;return Ye.fillColor="transparent",Ye.strokeColor="transparent",Ye.strokeWidth=0,Ye.strokeDasharray="",Ye.opacity=1,Ye.setStrokeColor=Ye.setStrokeColor.bind(Ye),Ye.setFillColor=Ye.setFillColor.bind(Ye),Ye.setStrokeWidth=Ye.setStrokeWidth.bind(Ye),Ye.setStrokeDasharray=Ye.setStrokeDasharray.bind(Ye),Ye.createVisual=Ye.createVisual.bind(Ye),Ye}return Pe(Ue,ct),Ue.prototype.ownsTarget=function(He){return!(!ct.prototype.ownsTarget.call(this,He)&&He!==this.visual)},Ue.prototype.createVisual=function(){this.visual=Me.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)},Ue.prototype.pointerDown=function(He,it){ct.prototype.pointerDown.call(this,He,it),this.state==="new"&&(this.createVisual(),this.moveVisual(He),this._state="creating")},Ue.prototype.manipulate=function(He){ct.prototype.manipulate.call(this,He)},Ue.prototype.resize=function(He){ct.prototype.resize.call(this,He),this.setSize()},Ue.prototype.setSize=function(){ct.prototype.setSize.call(this),Me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Ue.prototype.pointerUp=function(He){ct.prototype.pointerUp.call(this,He),this.setSize()},Ue.prototype.setStrokeColor=function(He){this.strokeColor=He,this.visual&&Me.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(He),this.stateChanged()},Ue.prototype.setFillColor=function(He){this.fillColor=He,this.visual&&Me.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Ue.prototype.setStrokeWidth=function(He){this.strokeWidth=He,this.visual&&Me.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ue.prototype.setStrokeDasharray=function(He){this.strokeDasharray=He,this.visual&&Me.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Ue.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ct.prototype.getState.call(this))},Ue.prototype.restoreState=function(He){var it=He;this.fillColor=it.fillColor,this.strokeColor=it.strokeColor,this.strokeWidth=it.strokeWidth,this.strokeDasharray=it.strokeDasharray,this.opacity=it.opacity,this.createVisual(),ct.prototype.restoreState.call(this,He),this.setSize()},Ue.prototype.scale=function(He,it){ct.prototype.scale.call(this,He,it),this.setSize()},Ue.title="Rectangle marker",Ue}(xe),Be=function(ct){function Ue(He,it,vt,Ye){var It=ct.call(this,He,Ye||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return It.widths=[],It.widthBoxes=[],It.widths=it,It.currentWidth=vt,It.setCurrentWidth=It.setCurrentWidth.bind(It),It}return Pe(Ue,ct),Ue.prototype.getUi=function(){var He=this,it=document.createElement("div");return it.style.display="flex",it.style.overflow="hidden",it.style.flexGrow="2",this.widths.forEach(function(vt){var Ye=document.createElement("div");Ye.style.display="flex",Ye.style.flexGrow="2",Ye.style.alignItems="center",Ye.style.justifyContent="space-between",Ye.style.padding="5px",Ye.style.borderWidth="2px",Ye.style.borderStyle="solid",Ye.style.borderColor=vt===He.currentWidth?He.uiStyleSettings.toolboxAccentColor:"transparent",Ye.addEventListener("click",function(){He.setCurrentWidth(vt,Ye)}),it.appendChild(Ye);var It=document.createElement("div");It.innerText=vt.toString(),It.style.marginRight="5px",Ye.appendChild(It);var In=document.createElement("div");In.style.minHeight="20px",In.style.flexGrow="2",In.style.display="flex",In.style.alignItems="center";var Kn=document.createElement("hr");Kn.style.minWidth="20px",Kn.style.border="0px",Kn.style.borderTop=vt+"px solid "+He.uiStyleSettings.toolboxColor,Kn.style.flexGrow="2",In.appendChild(Kn),Ye.appendChild(In),He.widthBoxes.push(Ye)}),it},Ue.prototype.setCurrentWidth=function(He,it){var vt=this;this.currentWidth=He,this.widthBoxes.forEach(function(Ye){Ye.style.borderColor=Ye===it?vt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Ue}(te),at=function(ct){function Ue(He,it,vt,Ye){var It=ct.call(this,He,Ye||'<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 It.styles=[],It.styleBoxes=[],It.styles=it,It.currentStyle=vt,It.setCurrentStyle=It.setCurrentStyle.bind(It),It}return Pe(Ue,ct),Ue.prototype.getUi=function(){var He=this,it=document.createElement("div");return it.style.display="flex",it.style.overflow="hidden",it.style.flexGrow="2",this.styles.forEach(function(vt){var Ye=document.createElement("div");Ye.style.display="flex",Ye.style.alignItems="center",Ye.style.justifyContent="space-between",Ye.style.padding="5px",Ye.style.borderWidth="2px",Ye.style.borderStyle="solid",Ye.style.overflow="hidden",Ye.style.maxWidth=100/He.styles.length-5+"%",Ye.style.borderColor=vt===He.currentStyle?He.uiStyleSettings.toolboxAccentColor:"transparent",Ye.addEventListener("click",function(){He.setCurrentStyle(vt,Ye)}),it.appendChild(Ye);var It=document.createElement("div");It.style.minHeight="20px",It.style.flexGrow="2",It.style.overflow="hidden";var In=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+He.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(vt!==""?'stroke-dasharray="'+vt+'"':"")+` />
|
|
|
</svg>`;It.innerHTML=In,Ye.appendChild(It),He.styleBoxes.push(Ye)}),it},Ue.prototype.setCurrentStyle=function(He,it){var vt=this;this.currentStyle=He,this.styleBoxes.forEach(function(Ye){Ye.style.borderColor=Ye===it?vt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Ue}(te),dt=function(ct){function Ue(He,it,vt){var Ye=ct.call(this,He,it,vt)||this;return Ye.strokeColor=vt.defaultColor,Ye.strokeWidth=vt.defaultStrokeWidth,Ye.strokeDasharray=vt.defaultStrokeDasharray,Ye.strokePanel=new ee("Line color",vt.defaultColorSet,vt.defaultColor),Ye.strokePanel.onColorChanged=Ye.setStrokeColor,Ye.strokeWidthPanel=new Be("Line width",vt.defaultStrokeWidths,vt.defaultStrokeWidth),Ye.strokeWidthPanel.onWidthChanged=Ye.setStrokeWidth,Ye.strokeStylePanel=new at("Line style",vt.defaultStrokeDasharrays,vt.defaultStrokeDasharray),Ye.strokeStylePanel.onStyleChanged=Ye.setStrokeDasharray,Ye}return Pe(Ue,ct),Object.defineProperty(Ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ue.prototype.getState=function(){var He=ct.prototype.getState.call(this);return He.typeName=Ue.typeName,He},Ue.typeName="FrameMarker",Ue.title="Frame marker",Ue.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Ue}(be),gt=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},ft=function(ct){function Ue(He,it,vt){var Ye=ct.call(this,He,it,vt)||this;return Ye.x1=0,Ye.y1=0,Ye.x2=0,Ye.y2=0,Ye.defaultLength=50,Ye.manipulationStartX=0,Ye.manipulationStartY=0,Ye.manipulationStartX1=0,Ye.manipulationStartY1=0,Ye.manipulationStartX2=0,Ye.manipulationStartY2=0,Ye.setupControlBox(),Ye}return Pe(Ue,ct),Ue.prototype.ownsTarget=function(He){return!!ct.prototype.ownsTarget.call(this,He)||!(!this.grip1.ownsTarget(He)&&!this.grip2.ownsTarget(He))},Ue.prototype.pointerDown=function(He,it){ct.prototype.pointerDown.call(this,He,it),this.manipulationStartX=He.x,this.manipulationStartY=He.y,this.state==="new"&&(this.x1=He.x,this.y1=He.y,this.x2=He.x,this.y2=He.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(it)?this.activeGrip=this.grip1:this.grip2.ownsTarget(it)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Ue.prototype.pointerUp=function(He){var it=this.state;ct.prototype.pointerUp.call(this,He),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(He),this._state="select",it==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Ue.prototype.adjustVisual=function(){},Ue.prototype.manipulate=function(He){this.state==="creating"?this.resize(He):this.state==="move"?(this.x1=this.manipulationStartX1+He.x-this.manipulationStartX,this.y1=this.manipulationStartY1+He.y-this.manipulationStartY,this.x2=this.manipulationStartX2+He.x-this.manipulationStartX,this.y2=this.manipulationStartY2+He.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(He)},Ue.prototype.resize=function(He){switch(this.activeGrip){case this.grip1:this.x1=He.x,this.y1=He.y;break;case this.grip2:case void 0:this.x2=He.x,this.y2=He.y}this.adjustVisual(),this.adjustControlBox()},Ue.prototype.select=function(){ct.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ue.prototype.deselect=function(){ct.prototype.deselect.call(this),this.controlBox.style.display="none"},Ue.prototype.setupControlBox=function(){this.controlBox=Me.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Ue.prototype.adjustControlBox=function(){this.positionGrips()},Ue.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Ue.prototype.createGrip=function(){var He=new pe;return He.visual.transform.baseVal.appendItem(Me.createTransform()),this.controlBox.appendChild(He.visual),He},Ue.prototype.positionGrips=function(){var He=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-He/2,this.y1-He/2),this.positionGrip(this.grip2.visual,this.x2-He/2,this.y2-He/2)},Ue.prototype.positionGrip=function(He,it,vt){var Ye=He.transform.baseVal.getItem(0);Ye.setTranslate(it,vt),He.transform.baseVal.replaceItem(Ye,0)},Ue.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ct.prototype.getState.call(this))},Ue.prototype.restoreState=function(He){ct.prototype.restoreState.call(this,He);var it=He;this.x1=it.x1,this.y1=it.y1,this.x2=it.x2,this.y2=it.y2},Ue.prototype.scale=function(He,it){ct.prototype.scale.call(this,He,it),this.x1=this.x1*He,this.y1=this.y1*it,this.x2=this.x2*He,this.y2=this.y2*it,this.adjustVisual(),this.adjustControlBox()},Ue}(de),Nt=function(ct){function Ue(He,it,vt){var Ye=ct.call(this,He,it,vt)||this;return Ye.strokeColor="transparent",Ye.strokeWidth=0,Ye.strokeDasharray="",Ye.setStrokeColor=Ye.setStrokeColor.bind(Ye),Ye.setStrokeWidth=Ye.setStrokeWidth.bind(Ye),Ye.setStrokeDasharray=Ye.setStrokeDasharray.bind(Ye),Ye.strokeColor=vt.defaultColor,Ye.strokeWidth=vt.defaultStrokeWidth,Ye.strokeDasharray=vt.defaultStrokeDasharray,Ye.strokePanel=new ee("Line color",vt.defaultColorSet,vt.defaultColor),Ye.strokePanel.onColorChanged=Ye.setStrokeColor,Ye.strokeWidthPanel=new Be("Line width",vt.defaultStrokeWidths,vt.defaultStrokeWidth),Ye.strokeWidthPanel.onWidthChanged=Ye.setStrokeWidth,Ye.strokeStylePanel=new at("Line style",vt.defaultStrokeDasharrays,vt.defaultStrokeDasharray),Ye.strokeStylePanel.onStyleChanged=Ye.setStrokeDasharray,Ye}return Pe(Ue,ct),Ue.prototype.ownsTarget=function(He){return!(!ct.prototype.ownsTarget.call(this,He)&&He!==this.visual&&He!==this.selectorLine&&He!==this.visibleLine)},Ue.prototype.createVisual=function(){this.visual=Me.createGroup(),this.selectorLine=Me.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Me.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)},Ue.prototype.pointerDown=function(He,it){ct.prototype.pointerDown.call(this,He,it),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Ue.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()),Me.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Me.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Me.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ue.prototype.setStrokeColor=function(He){this.strokeColor=He,this.adjustVisual(),this.colorChanged(He)},Ue.prototype.setStrokeWidth=function(He){this.strokeWidth=He,this.adjustVisual()},Ue.prototype.setStrokeDasharray=function(He){this.strokeDasharray=He,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ue.prototype.getState=function(){var He=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ct.prototype.getState.call(this));return He.typeName=Ue.typeName,He},Ue.prototype.restoreState=function(He){ct.prototype.restoreState.call(this,He);var it=He;this.strokeColor=it.strokeColor,this.strokeWidth=it.strokeWidth,this.strokeDasharray=it.strokeDasharray,this.createVisual(),this.adjustVisual()},Ue.typeName="LineMarker",Ue.title="Line marker",Ue.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Ue}(ft),Tt=function(ct){function Ue(He,it,vt,Ye){var It=ct.call(this,He,Ye||'<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 It.fonts=[],It.fontBoxes=[],It.fonts=it,It.currentFont=vt,It.setCurrentFont=It.setCurrentFont.bind(It),It}return Pe(Ue,ct),Ue.prototype.getUi=function(){var He=this,it=document.createElement("div");return it.style.overflow="hidden",it.style.flexGrow="2",this.fonts.forEach(function(vt){var Ye=document.createElement("div");Ye.style.display="inline-block",Ye.style.alignItems="center",Ye.style.justifyContent="space-between",Ye.style.padding="5px",Ye.style.borderWidth="2px",Ye.style.borderStyle="solid",Ye.style.overflow="hidden",Ye.style.maxWidth=100/He.fonts.length-5+"%",Ye.style.borderColor=vt===He.currentFont?He.uiStyleSettings.toolboxAccentColor:"transparent",Ye.addEventListener("click",function(){He.setCurrentFont(vt,Ye)}),it.appendChild(Ye);var It=document.createElement("div");It.style.display="flex",It.style.minHeight="20px",It.style.flexGrow="2",It.style.fontFamily=vt,It.style.overflow="hidden";var In=document.createElement("div");In.style.whiteSpace="nowrap",In.style.overflow="hidden",In.style.textOverflow="ellipsis",In.innerHTML="The quick brown fox jumps over the lazy dog",It.appendChild(In),Ye.appendChild(It),He.fontBoxes.push(Ye)}),it},Ue.prototype.setCurrentFont=function(He,it){var vt=this;this.currentFont=He,this.fontBoxes.forEach(function(Ye){Ye.style.borderColor=Ye===it?vt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Ue}(te),Ct=function(ct){function Ue(He,it,vt){var Ye=ct.call(this,He,it,vt)||this;return Ye.color="transparent",Ye.padding=5,Ye.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Ye.text=Ye.DEFAULT_TEXT,Ye.isMoved=!1,Ye.color=vt.defaultColor,Ye.fontFamily=vt.defaultFontFamily,Ye.defaultSize={x:100,y:30},Ye.setColor=Ye.setColor.bind(Ye),Ye.setFont=Ye.setFont.bind(Ye),Ye.renderText=Ye.renderText.bind(Ye),Ye.sizeText=Ye.sizeText.bind(Ye),Ye.textEditDivClicked=Ye.textEditDivClicked.bind(Ye),Ye.showTextEditor=Ye.showTextEditor.bind(Ye),Ye.setSize=Ye.setSize.bind(Ye),Ye.positionTextEditor=Ye.positionTextEditor.bind(Ye),Ye.colorPanel=new ee("Color",vt.defaultColorSet,vt.defaultColor),Ye.colorPanel.onColorChanged=Ye.setColor,Ye.fontFamilyPanel=new Tt("Font",vt.defaultFontFamilies,vt.defaultFontFamily),Ye.fontFamilyPanel.onFontChanged=Ye.setFont,Ye}return Pe(Ue,ct),Ue.prototype.ownsTarget=function(He){if(ct.prototype.ownsTarget.call(this,He)||He===this.visual||He===this.textElement||He===this.bgRectangle)return!0;var it=!1;return this.textElement.childNodes.forEach(function(vt){vt===He&&(it=!0)}),it},Ue.prototype.createVisual=function(){this.visual=Me.createGroup(),this.bgRectangle=Me.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Me.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Me.createTransform()),this.textElement.transform.baseVal.appendItem(Me.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Ue.prototype.pointerDown=function(He,it){ct.prototype.pointerDown.call(this,He,it),this.isMoved=!1,this.pointerDownPoint=He,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(He),this._state="creating")},Ue.prototype.renderText=function(){var He=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(it){He.textElement.appendChild(Me.createTSpan(it.trim()===""?" ":it.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Ue.prototype.getTextScale=function(){var He=this.textElement.getBBox(),it=1;if(He.width>0&&He.height>0){var vt=(1*this.width-this.width*this.padding*2/100)/He.width,Ye=(1*this.height-this.height*this.padding*2/100)/He.height;it=Math.min(vt,Ye)}return it},Ue.prototype.getTextPosition=function(He){var it=this.textElement.getBBox(),vt=0,Ye=0;return it.width>0&&it.height>0&&(vt=(this.width-it.width*He)/2,Ye=this.height/2-it.height*He/2),{x:vt,y:Ye}},Ue.prototype.sizeText=function(){var He=this.textElement.getBBox(),it=this.getTextScale(),vt=this.getTextPosition(it);vt.y-=He.y*it,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+vt.x+"px, "+vt.y+"px) scale("+it+", "+it+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(vt.x,vt.y),this.textElement.transform.baseVal.getItem(1).setScale(it,it))},Ue.prototype.manipulate=function(He){ct.prototype.manipulate.call(this,He),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(He.x-this.pointerDownPoint.x)>5||Math.abs(He.y-this.pointerDownPoint.y)>5)},Ue.prototype.resize=function(He){ct.prototype.resize.call(this,He),this.isMoved=!0,this.setSize(),this.sizeText()},Ue.prototype.setSize=function(){ct.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Me.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Ue.prototype.pointerUp=function(He){var it=this.state;it==="creating"&&(this._suppressMarkerCreateEvent=!0),ct.prototype.pointerUp.call(this,He),this.setSize(),(it==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Ue.prototype.showTextEditor=function(){var He=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(it){it.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var it=Number.parseFloat(He.textEditor.style.fontSize);He.textEditor.clientWidth>=Number.parseInt(He.textEditor.style.maxWidth)&&it>.9;)it-=.1,He.textEditor.style.fontSize=Math.max(it,.9)+"em"}),this.textEditor.addEventListener("keyup",function(it){it.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(it){if(it.clipboardData){var vt=it.clipboardData.getData("text"),Ye=window.getSelection();if(!Ye.rangeCount)return!1;Ye.deleteFromDocument(),Ye.getRangeAt(0).insertNode(document.createTextNode(vt)),it.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){He.textEditDivClicked(He.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Ue.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var He=this.getTextScale(),it=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),vt=this.textElement.getBBox(),Ye={x:vt.width*He,y:vt.height*He};it.x-=Ye.x/2,it.y-=Ye.y/2,this.textEditor.style.top=it.y+"px",this.textEditor.style.left=it.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-it.x+"px",this.textEditor.style.fontSize=Math.max(16*He,12)+"px",this.textElement.style.display="none"}},Ue.prototype.textEditDivClicked=function(He){this.text=He.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Ue.prototype.select=function(){ct.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Ue.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ct.prototype.deselect.call(this)},Ue.prototype.dblClick=function(He,it){ct.prototype.dblClick.call(this,He,it),this.showTextEditor()},Ue.prototype.setColor=function(He){this.textElement&&Me.setAttributes(this.textElement,[["fill",He]]),this.color=He,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(He)},Ue.prototype.setFont=function(He){this.textElement&&Me.setAttributes(this.textElement,[["font-family",He]]),this.fontFamily=He,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Ue.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Ue.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Ue.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Ue.prototype.getState=function(){var He=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ct.prototype.getState.call(this));return He.typeName=Ue.typeName,He},Ue.prototype.restoreState=function(He){var it=He;this.color=it.color,this.fontFamily=it.fontFamily,this.padding=it.padding,this.text=it.text,this.createVisual(),ct.prototype.restoreState.call(this,He),this.setSize()},Ue.prototype.scale=function(He,it){ct.prototype.scale.call(this,He,it),this.setSize(),this.sizeText(),this.positionTextEditor()},Ue.typeName="TextMarker",Ue.title="Text marker",Ue.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>',Ue}(xe),Vt=function(ct){function Ue(He,it,vt){var Ye=ct.call(this,He,it,vt)||this;return Ye.color="transparent",Ye.lineWidth=3,Ye.drawing=!1,Ye.pixelRatio=1,Ye.color=vt.defaultColor,Ye.lineWidth=vt.defaultStrokeWidth,Ye.pixelRatio=vt.freehandPixelRatio,Ye.setColor=Ye.setColor.bind(Ye),Ye.addCanvas=Ye.addCanvas.bind(Ye),Ye.finishCreation=Ye.finishCreation.bind(Ye),Ye.setLineWidth=Ye.setLineWidth.bind(Ye),Ye.colorPanel=new ee("Color",vt.defaultColorSet,vt.defaultColor),Ye.colorPanel.onColorChanged=Ye.setColor,Ye.lineWidthPanel=new Be("Line width",vt.defaultStrokeWidths,vt.defaultStrokeWidth),Ye.lineWidthPanel.onWidthChanged=Ye.setLineWidth,Ye}return Pe(Ue,ct),Ue.prototype.ownsTarget=function(He){return!(!ct.prototype.ownsTarget.call(this,He)&&He!==this.visual&&He!==this.drawingImage)},Ue.prototype.createVisual=function(){this.visual=Me.createGroup(),this.drawingImage=Me.createImage(),this.visual.appendChild(this.drawingImage);var He=Me.createTransform();this.visual.transform.baseVal.appendItem(He),this.addMarkerVisualToContainer(this.visual)},Ue.prototype.pointerDown=function(He,it){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(He.x,He.y),this.drawing=!0):ct.prototype.pointerDown.call(this,He,it)},Ue.prototype.manipulate=function(He){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(He.x,He.y),this.canvasContext.stroke()):ct.prototype.manipulate.call(this,He)},Ue.prototype.resize=function(He){ct.prototype.resize.call(this,He),Me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Ue.prototype.pointerUp=function(He){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ct.prototype.pointerUp.call(this,He)},Ue.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)},Ue.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ct.prototype.select.call(this)},Ue.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ct.prototype.deselect.call(this)},Ue.prototype.finishCreation=function(){for(var He=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),it=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],vt=it[0],Ye=it[1],It=it[2],In=it[3],Kn=!1,dr=0;dr<this.canvasElement.height;dr++)for(var Rn=0;Rn<this.canvasElement.width;Rn++)He.data[dr*this.canvasElement.width*4+4*Rn+3]>0&&(Kn=!0,dr<Ye&&(Ye=dr),Rn<vt&&(vt=Rn),dr>In&&(In=dr),Rn>It&&(It=Rn));if(Kn){this.left=vt/this.pixelRatio,this.top=Ye/this.pixelRatio,this.width=(It-vt)/this.pixelRatio,this.height=(In-Ye)/this.pixelRatio;var er=document.createElement("canvas");er.width=It-vt,er.height=In-Ye,er.getContext("2d").putImageData(this.canvasContext.getImageData(vt,Ye,It-vt,In-Ye),0,0),this.drawingImgUrl=er.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Ue.prototype.setDrawingImage=function(){Me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Me.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Ue.prototype.setColor=function(He){this.color=He,this.colorChanged(He)},Ue.prototype.setLineWidth=function(He){this.lineWidth=He},Object.defineProperty(Ue.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Ue.prototype.getState=function(){var He=Object.assign({drawingImgUrl:this.drawingImgUrl},ct.prototype.getState.call(this));return He.typeName=Ue.typeName,He},Ue.prototype.restoreState=function(He){this.createVisual(),ct.prototype.restoreState.call(this,He),this.drawingImgUrl=He.drawingImgUrl,this.setDrawingImage()},Ue.prototype.scale=function(He,it){ct.prototype.scale.call(this,He,it),this.setDrawingImage()},Ue.typeName="FreehandMarker",Ue.title="Freehand marker",Ue.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>',Ue}(xe),Rt=function(ct){function Ue(He,it,vt){var Ye=ct.call(this,He,vt||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Ye.typeBoxes=[],Ye.currentType=it,Ye.setCurrentType=Ye.setCurrentType.bind(Ye),Ye}return Pe(Ue,ct),Ue.prototype.getUi=function(){var He=this,it=document.createElement("div");it.style.display="flex",it.style.overflow="hidden",it.style.flexGrow="2";for(var vt=function(In){var Kn="both";switch(In){case 0:Kn="both";break;case 1:Kn="start";break;case 2:Kn="end";break;case 3:Kn="none"}var dr=document.createElement("div");if(dr.style.display="flex",dr.style.flexGrow="2",dr.style.alignItems="center",dr.style.justifyContent="space-between",dr.style.padding="5px",dr.style.borderWidth="2px",dr.style.borderStyle="solid",dr.style.borderColor=Kn===Ye.currentType?Ye.uiStyleSettings.toolboxAccentColor:"transparent",dr.addEventListener("click",function(){He.setCurrentType(Kn,dr)}),it.appendChild(dr),Kn==="both"||Kn==="start"){var Rn=document.createElement("div");Rn.style.display="flex",Rn.style.alignItems="center",Rn.style.minHeight="20px",Rn.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="`+(Ye.uiStyleSettings!==void 0?Ye.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Rn.style.marginLeft="5px",dr.appendChild(Rn)}var er=document.createElement("div");er.style.display="flex",er.style.alignItems="center",er.style.minHeight="20px",er.style.flexGrow="2";var yn=document.createElement("hr");if(yn.style.minWidth="20px",yn.style.border="0px",yn.style.borderTop="3px solid "+(Ye.uiStyleSettings!==void 0?Ye.uiStyleSettings.toolboxColor:"#eeeeee"),yn.style.flexGrow="2",er.appendChild(yn),dr.appendChild(er),Kn==="both"||Kn==="end"){var Er=document.createElement("div");Er.style.display="flex",Er.style.alignItems="center",Er.style.minHeight="20px",Er.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="`+(Ye.uiStyleSettings!==void 0?Ye.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Er.style.marginRight="5px",dr.appendChild(Er)}Ye.typeBoxes.push(dr)},Ye=this,It=0;It<4;It++)vt(It);return it},Ue.prototype.setCurrentType=function(He,it){var vt=this;this.currentType=He,this.typeBoxes.forEach(function(Ye){Ye.style.borderColor=Ye===it?vt.uiStyleSettings!==void 0?vt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Ue}(te),nn=function(ct){function Ue(He,it,vt){var Ye=ct.call(this,He,it,vt)||this;return Ye.arrowType="end",Ye.arrowBaseHeight=10,Ye.arrowBaseWidth=10,Ye.getArrowPoints=Ye.getArrowPoints.bind(Ye),Ye.setArrowType=Ye.setArrowType.bind(Ye),Ye.arrowTypePanel=new Rt("Arrow type","end"),Ye.arrowTypePanel.onArrowTypeChanged=Ye.setArrowType,Ye}return Pe(Ue,ct),Ue.prototype.ownsTarget=function(He){return!(!ct.prototype.ownsTarget.call(this,He)&&He!==this.arrow1&&He!==this.arrow2)},Ue.prototype.getArrowPoints=function(He,it){var vt=this.arrowBaseWidth+2*this.strokeWidth,Ye=this.arrowBaseHeight+2*this.strokeWidth;return He-vt/2+","+(it+Ye/2)+" "+He+","+(it-Ye/2)+" "+(He+vt/2)+","+(it+Ye/2)},Ue.prototype.createTips=function(){this.arrow1=Me.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Me.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Me.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Me.createTransform()),this.visual.appendChild(this.arrow2)},Ue.prototype.pointerDown=function(He,it){ct.prototype.pointerDown.call(this,He,it),this.state==="creating"&&this.createTips()},Ue.prototype.adjustVisual=function(){if(ct.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",Me.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Me.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var He=0;Math.abs(this.x1-this.x2)>.1&&(He=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var it=this.arrow1.transform.baseVal.getItem(0);it.setRotate(He,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(it,0);var vt=this.arrow2.transform.baseVal.getItem(0);vt.setRotate(He+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(vt,0)}},Ue.prototype.setArrowType=function(He){this.arrowType=He,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Ue.prototype.getState=function(){var He=Object.assign({arrowType:this.arrowType},ct.prototype.getState.call(this));return He.typeName=Ue.typeName,He},Ue.prototype.restoreState=function(He){ct.prototype.restoreState.call(this,He);var it=He;this.arrowType=it.arrowType,this.createTips(),this.adjustVisual()},Ue.typeName="ArrowMarker",Ue.title="Arrow marker",Ue.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Ue}(Nt),Cn=function(ct){function Ue(He,it,vt){var Ye=ct.call(this,He,it,vt)||this;return Ye.fillColor=vt.defaultFillColor,Ye.strokeWidth=0,Ye.fillPanel=new ee("Color",vt.defaultColorSet,vt.defaultFillColor),Ye.fillPanel.onColorChanged=Ye.setFillColor,Ye}return Pe(Ue,ct),Object.defineProperty(Ue.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Ue.prototype.getState=function(){var He=ct.prototype.getState.call(this);return He.typeName=Ue.typeName,He},Ue.typeName="CoverMarker",Ue.title="Cover marker",Ue.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Ue}(be),un=function(ct){function Ue(He,it,vt,Ye){var It=ct.call(this,He,Ye||'<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 It.opacities=[],It.opacityBoxes=[],It.opacities=it,It.currentOpacity=vt,It.setCurrentOpacity=It.setCurrentOpacity.bind(It),It}return Pe(Ue,ct),Ue.prototype.getUi=function(){var He=this,it=document.createElement("div");return it.style.display="flex",it.style.overflow="hidden",it.style.flexGrow="2",it.style.justifyContent="space-between",this.opacities.forEach(function(vt){var Ye=document.createElement("div");Ye.style.display="flex",Ye.style.alignItems="center",Ye.style.justifyContent="center",Ye.style.padding="5px",Ye.style.borderWidth="2px",Ye.style.borderStyle="solid",Ye.style.borderColor=vt===He.currentOpacity?He.uiStyleSettings.toolboxAccentColor:"transparent",Ye.addEventListener("click",function(){He.setCurrentOpacity(vt,Ye)}),it.appendChild(Ye);var It=document.createElement("div");It.innerText=100*vt+"%",Ye.appendChild(It),He.opacityBoxes.push(Ye)}),it},Ue.prototype.setCurrentOpacity=function(He,it){var vt=this;this.currentOpacity=He,this.opacityBoxes.forEach(function(Ye){Ye.style.borderColor=Ye===it?vt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Ue}(te),Nn=function(ct){function Ue(He,it,vt){var Ye=ct.call(this,He,it,vt)||this;return Ye.setOpacity=Ye.setOpacity.bind(Ye),Ye.fillColor=vt.defaultHighlightColor,Ye.strokeWidth=0,Ye.opacity=vt.defaultHighlightOpacity,Ye.fillPanel=new ee("Color",vt.defaultColorSet,Ye.fillColor),Ye.fillPanel.onColorChanged=Ye.setFillColor,Ye.opacityPanel=new un("Opacity",vt.defaultOpacitySteps,Ye.opacity),Ye.opacityPanel.onOpacityChanged=Ye.setOpacity,Ye}return Pe(Ue,ct),Ue.prototype.setOpacity=function(He){this.opacity=He,this.visual&&Me.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Ue.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Ue.prototype.getState=function(){var He=ct.prototype.getState.call(this);return He.typeName=Ue.typeName,He},Ue.typeName="HighlightMarker",Ue.title="Highlight marker",Ue.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>',Ue}(Cn),wt='<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>',pt='<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>',Ie=function(ct){function Ue(He,it,vt){var Ye=ct.call(this,He,it,vt)||this;return Ye.bgColor="transparent",Ye.tipPosition={x:0,y:0},Ye.tipBase1Position={x:0,y:0},Ye.tipBase2Position={x:0,y:0},Ye.tipMoving=!1,Ye.color=vt.defaultStrokeColor,Ye.bgColor=vt.defaultFillColor,Ye.fontFamily=vt.defaultFontFamily,Ye.defaultSize={x:100,y:30},Ye.setBgColor=Ye.setBgColor.bind(Ye),Ye.getTipPoints=Ye.getTipPoints.bind(Ye),Ye.positionTip=Ye.positionTip.bind(Ye),Ye.setTipPoints=Ye.setTipPoints.bind(Ye),Ye.colorPanel=new ee("Text color",vt.defaultColorSet,Ye.color,wt),Ye.colorPanel.onColorChanged=Ye.setColor,Ye.bgColorPanel=new ee("Fill color",vt.defaultColorSet,Ye.bgColor,pt),Ye.bgColorPanel.onColorChanged=Ye.setBgColor,Ye.fontFamilyPanel=new Tt("Font",vt.defaultFontFamilies,vt.defaultFontFamily),Ye.fontFamilyPanel.onFontChanged=Ye.setFont,Ye.tipGrip=new pe,Ye.tipGrip.visual.transform.baseVal.appendItem(Me.createTransform()),Ye.controlBox.appendChild(Ye.tipGrip.visual),Ye}return Pe(Ue,ct),Ue.prototype.ownsTarget=function(He){return ct.prototype.ownsTarget.call(this,He)||this.tipGrip.ownsTarget(He)||this.tip===He},Ue.prototype.createTip=function(){Me.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Me.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Ue.prototype.pointerDown=function(He,it){this.state==="new"&&ct.prototype.pointerDown.call(this,He,it),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(it)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ct.prototype.pointerDown.call(this,He,it)},Ue.prototype.pointerUp=function(He){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ct.prototype.pointerUp.call(this,He);else{var it=this.state==="creating";ct.prototype.pointerUp.call(this,He),this.setTipPoints(it),this.positionTip()}},Ue.prototype.manipulate=function(He){if(this.tipMoving){var it=this.unrotatePoint(He);this.tipPosition={x:it.x-this.manipulationStartLeft,y:it.y-this.manipulationStartTop},this.positionTip()}else ct.prototype.manipulate.call(this,He)},Ue.prototype.setBgColor=function(He){this.bgRectangle&&this.tip&&(Me.setAttributes(this.bgRectangle,[["fill",He]]),Me.setAttributes(this.tip,[["fill",He]])),this.bgColor=He,this.fillColorChanged(He)},Ue.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},Ue.prototype.setTipPoints=function(He){He===void 0&&(He=!1);var it=Math.min(this.height/2,15),vt=this.height/5;He&&(this.tipPosition={x:it+vt/2,y:this.height+20});var Ye=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Ye<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(vt=this.width/5,it=Math.min(this.width/2,15),this.tipBase1Position={x:it,y:0},this.tipBase2Position={x:it+vt,y:0}):(this.tipBase1Position={x:0,y:it},this.tipBase2Position={x:0,y:it+vt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Ye<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(vt=this.width/5,it=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-it-vt,y:0},this.tipBase2Position={x:this.width-it,y:0}):(this.tipBase1Position={x:this.width,y:it},this.tipBase2Position={x:this.width,y:it+vt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Ye<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(vt=this.width/5,it=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-it-vt,y:this.height},this.tipBase2Position={x:this.width-it,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-it-vt},this.tipBase2Position={x:this.width,y:this.height-it}):Ye<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(vt=this.width/5,it=Math.min(this.width/2,15),this.tipBase1Position={x:it,y:this.height},this.tipBase2Position={x:it+vt,y:this.height}):(this.tipBase1Position={x:0,y:this.height-it},this.tipBase2Position={x:0,y:this.height-it-vt})},Ue.prototype.resize=function(He){ct.prototype.resize.call(this,He),this.positionTip()},Ue.prototype.positionTip=function(){Me.setAttributes(this.tip,[["points",this.getTipPoints()]]);var He=this.tipGrip.visual.transform.baseVal.getItem(0);He.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(He,0)},Object.defineProperty(Ue.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Ue.prototype.select=function(){this.positionTip(),ct.prototype.select.call(this)},Ue.prototype.getState=function(){var He=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ct.prototype.getState.call(this));return He.typeName=Ue.typeName,He},Ue.prototype.restoreState=function(He){var it=He;this.bgColor=it.bgColor,this.tipPosition=it.tipPosition,ct.prototype.restoreState.call(this,He),this.createTip(),this.setTipPoints()},Ue.prototype.scale=function(He,it){ct.prototype.scale.call(this,He,it),this.tipPosition={x:this.tipPosition.x*He,y:this.tipPosition.y*it},this.positionTip()},Ue.typeName="CalloutMarker",Ue.title="Callout marker",Ue.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>',Ue}(Ct),on=function(ct){function Ue(He,it,vt){var Ye=ct.call(this,He,it,vt)||this;return Ye.fillColor="transparent",Ye.strokeColor="transparent",Ye.strokeWidth=0,Ye.strokeDasharray="",Ye.opacity=1,Ye.strokeColor=vt.defaultColor,Ye.strokeWidth=vt.defaultStrokeWidth,Ye.strokeDasharray=vt.defaultStrokeDasharray,Ye.fillColor=vt.defaultFillColor,Ye.setStrokeColor=Ye.setStrokeColor.bind(Ye),Ye.setFillColor=Ye.setFillColor.bind(Ye),Ye.setStrokeWidth=Ye.setStrokeWidth.bind(Ye),Ye.setStrokeDasharray=Ye.setStrokeDasharray.bind(Ye),Ye.setOpacity=Ye.setOpacity.bind(Ye),Ye.createVisual=Ye.createVisual.bind(Ye),Ye.strokePanel=new ee("Line color",tt(vt.defaultColorSet,["transparent"]),vt.defaultColor),Ye.strokePanel.onColorChanged=Ye.setStrokeColor,Ye.fillPanel=new ee("Fill color",tt(vt.defaultColorSet,["transparent"]),Ye.fillColor,pt),Ye.fillPanel.onColorChanged=Ye.setFillColor,Ye.strokeWidthPanel=new Be("Line width",vt.defaultStrokeWidths,vt.defaultStrokeWidth),Ye.strokeWidthPanel.onWidthChanged=Ye.setStrokeWidth,Ye.strokeStylePanel=new at("Line style",vt.defaultStrokeDasharrays,vt.defaultStrokeDasharray),Ye.strokeStylePanel.onStyleChanged=Ye.setStrokeDasharray,Ye.opacityPanel=new un("Opacity",vt.defaultOpacitySteps,Ye.opacity),Ye.opacityPanel.onOpacityChanged=Ye.setOpacity,Ye}return Pe(Ue,ct),Ue.prototype.ownsTarget=function(He){return!(!ct.prototype.ownsTarget.call(this,He)&&He!==this.visual)},Ue.prototype.createVisual=function(){this.visual=Me.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)},Ue.prototype.pointerDown=function(He,it){ct.prototype.pointerDown.call(this,He,it),this.state==="new"&&(this.createVisual(),this.moveVisual(He),this._state="creating")},Ue.prototype.manipulate=function(He){ct.prototype.manipulate.call(this,He)},Ue.prototype.resize=function(He){ct.prototype.resize.call(this,He),this.setSize()},Ue.prototype.setSize=function(){ct.prototype.setSize.call(this),Me.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Ue.prototype.pointerUp=function(He){ct.prototype.pointerUp.call(this,He),this.setSize()},Ue.prototype.setStrokeColor=function(He){this.strokeColor=He,this.visual&&Me.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(He),this.stateChanged()},Ue.prototype.setFillColor=function(He){this.fillColor=He,this.visual&&Me.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(He),this.stateChanged()},Ue.prototype.setStrokeWidth=function(He){this.strokeWidth=He,this.visual&&Me.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ue.prototype.setStrokeDasharray=function(He){this.strokeDasharray=He,this.visual&&Me.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Ue.prototype.setOpacity=function(He){this.opacity=He,this.visual&&Me.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Ue.prototype.getState=function(){var He=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ct.prototype.getState.call(this));return He.typeName=Ue.typeName,He},Ue.prototype.restoreState=function(He){var it=He;this.fillColor=it.fillColor,this.strokeColor=it.strokeColor,this.strokeWidth=it.strokeWidth,this.strokeDasharray=it.strokeDasharray,this.opacity=it.opacity,this.createVisual(),ct.prototype.restoreState.call(this,He),this.setSize()},Ue.prototype.scale=function(He,it){ct.prototype.scale.call(this,He,it),this.setSize()},Ue.typeName="EllipseMarker",Ue.title="Ellipse marker",Ue.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>',Ue}(xe),Bn=function(ct){function Ue(He,it,vt){return ct.call(this,He,it,vt)||this}return Pe(Ue,ct),Object.defineProperty(Ue.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Ue.prototype.ownsTarget=function(He){return!(!ct.prototype.ownsTarget.call(this,He)&&He!==this.tip1&&He!==this.tip2)},Ue.prototype.createTips=function(){this.tip1=Me.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(Me.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Me.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(Me.createTransform()),this.visual.appendChild(this.tip2)},Ue.prototype.pointerDown=function(He,it){ct.prototype.pointerDown.call(this,He,it),this.state==="creating"&&this.createTips()},Ue.prototype.adjustVisual=function(){if(ct.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Me.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()]]),Me.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 He=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),it=this.tip1.transform.baseVal.getItem(0);it.setRotate(He,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(it,0);var vt=this.tip2.transform.baseVal.getItem(0);vt.setRotate(He+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(vt,0)}},Object.defineProperty(Ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ue.prototype.getState=function(){var He=ct.prototype.getState.call(this);return He.typeName=Ue.typeName,He},Ue.prototype.restoreState=function(He){ct.prototype.restoreState.call(this,He),this.createTips(),this.adjustVisual()},Ue.typeName="MeasurementMarker",Ue.title="Measurement marker",Ue.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>',Ue}(Nt),Zt=function(ct){function Ue(He,it,vt){var Ye=ct.call(this,He,it,vt)||this;return Ye.strokePanel.colors=vt.defaultColorSet,Ye.fillColor="transparent",Ye}return Pe(Ue,ct),Object.defineProperty(Ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ue.prototype.getState=function(){var He=ct.prototype.getState.call(this);return He.typeName=Ue.typeName,He},Ue.typeName="EllipseFrameMarker",Ue.title="Ellipse frame marker",Ue.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>',Ue}(on),zn=function(){function ct(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ct.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ct.prototype.addUndoStep=function(Ue){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Ue)||(this.undoStack.push(Ue),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Ue)&&this.redoStack.splice(0,this.redoStack.length))},ct.prototype.replaceLastUndoStep=function(Ue){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Ue)},ct.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ct.prototype.undo=function(){if(this.undoStack.length>1){var Ue=this.undoStack.pop();return Ue!==void 0&&this.redoStack.push(Ue),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ct.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ct}(),_n=function(ct){function Ue(He,it,vt){var Ye=ct.call(this,He,it,vt)||this;return Ye.strokeColor="transparent",Ye.strokeWidth=0,Ye.strokeDasharray="",Ye.curveX=0,Ye.curveY=0,Ye.manipulationStartCurveX=0,Ye.manipulationStartCurveY=0,Ye.setStrokeColor=Ye.setStrokeColor.bind(Ye),Ye.setStrokeWidth=Ye.setStrokeWidth.bind(Ye),Ye.setStrokeDasharray=Ye.setStrokeDasharray.bind(Ye),Ye.positionGrips=Ye.positionGrips.bind(Ye),Ye.addControlGrips=Ye.addControlGrips.bind(Ye),Ye.adjustVisual=Ye.adjustVisual.bind(Ye),Ye.setupControlBox=Ye.setupControlBox.bind(Ye),Ye.resize=Ye.resize.bind(Ye),Ye.strokeColor=vt.defaultColor,Ye.strokeWidth=vt.defaultStrokeWidth,Ye.strokeDasharray=vt.defaultStrokeDasharray,Ye.strokePanel=new ee("Line color",vt.defaultColorSet,vt.defaultColor),Ye.strokePanel.onColorChanged=Ye.setStrokeColor,Ye.strokeWidthPanel=new Be("Line width",vt.defaultStrokeWidths,vt.defaultStrokeWidth),Ye.strokeWidthPanel.onWidthChanged=Ye.setStrokeWidth,Ye.strokeStylePanel=new at("Line style",vt.defaultStrokeDasharrays,vt.defaultStrokeDasharray),Ye.strokeStylePanel.onStyleChanged=Ye.setStrokeDasharray,Ye}return Pe(Ue,ct),Ue.prototype.ownsTarget=function(He){return!(!ct.prototype.ownsTarget.call(this,He)&&He!==this.visual&&He!==this.selectorCurve&&He!==this.visibleCurve&&!this.curveGrip.ownsTarget(He))},Ue.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Ue.prototype.createVisual=function(){this.visual=Me.createGroup(),this.selectorCurve=Me.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Me.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)},Ue.prototype.pointerDown=function(He,it){ct.prototype.pointerDown.call(this,He,it),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=He.x,this.curveY=He.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(it)&&(this.activeGrip=this.curveGrip,this._state="resize")},Ue.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Me.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Me.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Me.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ue.prototype.setupControlBox=function(){ct.prototype.setupControlBox.call(this),this.curveControlLine1=Me.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Me.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)},Ue.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ct.prototype.addControlGrips.call(this)},Ue.prototype.positionGrips=function(){ct.prototype.positionGrips.call(this);var He=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-He/2,this.curveY-He/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()))},Ue.prototype.manipulate=function(He){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+He.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+He.y-this.manipulationStartY),ct.prototype.manipulate.call(this,He)},Ue.prototype.resize=function(He){this.activeGrip===this.curveGrip&&(this.curveX=He.x,this.curveY=He.y),ct.prototype.resize.call(this,He),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Ue.prototype.setStrokeColor=function(He){this.strokeColor=He,this.adjustVisual(),this.colorChanged(He)},Ue.prototype.setStrokeWidth=function(He){this.strokeWidth=He,this.adjustVisual()},Ue.prototype.setStrokeDasharray=function(He){this.strokeDasharray=He,this.adjustVisual()},Ue.prototype.scale=function(He,it){this.curveX=this.curveX*He,this.curveY=this.curveY*it,ct.prototype.scale.call(this,He,it)},Object.defineProperty(Ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ue.prototype.getState=function(){var He=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ct.prototype.getState.call(this));return He.typeName=Ue.typeName,He},Ue.prototype.restoreState=function(He){ct.prototype.restoreState.call(this,He);var it=He;this.strokeColor=it.strokeColor,this.strokeWidth=it.strokeWidth,this.strokeDasharray=it.strokeDasharray,this.curveX=it.curveX,this.curveY=it.curveY,this.createVisual(),this.adjustVisual()},Ue.typeName="CurveMarker",Ue.title="Curve marker",Ue.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>',Ue}(ft),nr=function(ct){function Ue(He,it,vt){var Ye=ct.call(this,He,it,vt)||this;return Ye.fillColor="transparent",Ye.strokeColor="transparent",Ye.strokeWidth=0,Ye.strokeDasharray="",Ye.textColor="transparent",Ye.fontSize="1rem",Ye.isMoved=!1,Ye.captionText="Caption",Ye.PADDING=5,Ye.captionBoxWidth=0,Ye.captionBoxHeight=0,Ye.strokeColor=vt.defaultColor,Ye.strokeWidth=vt.defaultStrokeWidth,Ye.strokeDasharray=vt.defaultStrokeDasharray,Ye.fillColor=vt.defaultFillColor,Ye.textColor=vt.defaultStrokeColor,Ye.fontFamily=vt.defaultFontFamily,Ye.fontSize=vt.defaultCaptionFontSize,Ye.captionText=vt.defaultCaptionText,Ye.setStrokeColor=Ye.setStrokeColor.bind(Ye),Ye.setFillColor=Ye.setFillColor.bind(Ye),Ye.setStrokeWidth=Ye.setStrokeWidth.bind(Ye),Ye.setStrokeDasharray=Ye.setStrokeDasharray.bind(Ye),Ye.createVisual=Ye.createVisual.bind(Ye),Ye.sizeCaption=Ye.sizeCaption.bind(Ye),Ye.setCaptionText=Ye.setCaptionText.bind(Ye),Ye.showTextEditor=Ye.showTextEditor.bind(Ye),Ye.positionTextEditor=Ye.positionTextEditor.bind(Ye),Ye.finishTextEditing=Ye.finishTextEditing.bind(Ye),Ye.setFont=Ye.setFont.bind(Ye),Ye.setTextColor=Ye.setTextColor.bind(Ye),Ye.strokePanel=new ee("Line color",tt(vt.defaultColorSet,["transparent"]),Ye.strokeColor),Ye.strokePanel.onColorChanged=Ye.setStrokeColor,Ye.fillPanel=new ee("Fill color",tt(vt.defaultColorSet,["transparent"]),Ye.fillColor,pt),Ye.fillPanel.onColorChanged=Ye.setFillColor,Ye.strokeWidthPanel=new Be("Line width",vt.defaultStrokeWidths,vt.defaultStrokeWidth),Ye.strokeWidthPanel.onWidthChanged=Ye.setStrokeWidth,Ye.strokeStylePanel=new at("Line style",vt.defaultStrokeDasharrays,vt.defaultStrokeDasharray),Ye.strokeStylePanel.onStyleChanged=Ye.setStrokeDasharray,Ye.fontFamilyPanel=new Tt("Font",vt.defaultFontFamilies,vt.defaultFontFamily),Ye.fontFamilyPanel.onFontChanged=Ye.setFont,Ye.textColorPanel=new ee("Text color",vt.defaultColorSet,Ye.textColor,wt),Ye.textColorPanel.onColorChanged=Ye.setTextColor,Ye}return Pe(Ue,ct),Ue.prototype.ownsTarget=function(He){return!(!ct.prototype.ownsTarget.call(this,He)&&He!==this.visual&&He!==this.frame&&He!==this.captionBg&&He!==this.captionElement)},Ue.prototype.createVisual=function(){this.visual=Me.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Me.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Me.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=Me.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()},Ue.prototype.setCaptionText=function(He){this.captionText=He,this.captionElement.textContent=this.captionText,this.sizeCaption()},Ue.prototype.pointerDown=function(He,it){ct.prototype.pointerDown.call(this,He,it),this.isMoved=!1,this.pointerDownPoint=He,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(He),this._state="creating")},Ue.prototype.manipulate=function(He){ct.prototype.manipulate.call(this,He),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(He.x-this.pointerDownPoint.x)>5||Math.abs(He.y-this.pointerDownPoint.y)>5)},Ue.prototype.resize=function(He){ct.prototype.resize.call(this,He),this.setSize()},Ue.prototype.sizeCaption=function(){var He=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=He.width+2*this.PADDING,this.captionBoxHeight=He.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Me.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')"]]),Me.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')"]])},Ue.prototype.showTextEditor=function(){var He=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(it){it.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(it){it.key==="Enter"&&He.finishTextEditing(He.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(it){it.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){He.finishTextEditing(He.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){He.finishTextEditing(He.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Ue.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"))},Ue.prototype.finishTextEditing=function(He){this.setCaptionText(He.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Ue.prototype.setFont=function(He){this.captionElement&&Me.setAttributes(this.captionElement,[["font-family",He]]),this.fontFamily=He,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Ue.prototype.setTextColor=function(He){this.captionElement&&Me.setAttributes(this.captionElement,[["fill",He]]),this.textColor=He,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Ue.prototype.setSize=function(){ct.prototype.setSize.call(this),Me.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Ue.prototype.pointerUp=function(He){ct.prototype.pointerUp.call(this,He),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Ue.prototype.dblClick=function(He,it){ct.prototype.dblClick.call(this,He,it),this.showTextEditor()},Ue.prototype.setStrokeColor=function(He){this.strokeColor=He,this.frame&&Me.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(He),this.stateChanged()},Ue.prototype.setFillColor=function(He){this.fillColor=He,this.captionBg&&Me.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(He),this.stateChanged()},Ue.prototype.setStrokeWidth=function(He){this.strokeWidth=He,this.frame&&Me.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ue.prototype.setStrokeDasharray=function(He){this.strokeDasharray=He,this.frame&&Me.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Ue.prototype.getState=function(){var He=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},ct.prototype.getState.call(this));return He.typeName=this.typeName,He},Ue.prototype.restoreState=function(He){var it=He;this.fillColor=it.fillColor,this.strokeColor=it.strokeColor,this.strokeWidth=it.strokeWidth,this.strokeDasharray=it.strokeDasharray,this.textColor=it.textColor,this.fontFamily=it.fontFamily,this.captionText=it.captionText,this.fontSize=it.fontSize,this.createVisual(),ct.prototype.restoreState.call(this,He),this.setSize()},Ue.prototype.scale=function(He,it){ct.prototype.scale.call(this,He,it),this.setSize()},Ue.typeName="CaptionFrameMarker",Ue.title="Caption frame marker",Ue.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>',Ue}(xe),Ft=function(){function ct(Ue,He){He===void 0&&(He=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Ue,this.cancelable=He}return Object.defineProperty(ct.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ct.prototype.preventDefault=function(){this._defaultPrevented=!0},ct}(),Wt=function(ct){function Ue(He,it,vt){var Ye=ct.call(this,He,!1)||this;return Ye.dataUrl=it,Ye.state=vt,Ye}return Pe(Ue,ct),Ue}(Ft),ht=function(ct){function Ue(He,it,vt){vt===void 0&&(vt=!1);var Ye=ct.call(this,He,vt)||this;return Ye.marker=it,Ye}return Pe(Ue,ct),Ue}(Ft),tn=function(){function ct(){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 ct.prototype.addEventListener=function(Ue,He){this[Ue].push(He)},ct.prototype.removeEventListener=function(Ue,He){var it=this[Ue].indexOf(He);it>-1&&this[Ue].splice(it,1)},ct}(),an=function(){function ct(Ue){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new gt,this._isOpen=!1,this.undoRedoManager=new zn,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 tn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ct.instanceCounter++,this.styles=new lt(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Ue,this.targetRoot=document.body,this.width=Ue.clientWidth,this.height=Ue.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(ct.prototype,"ALL_MARKER_TYPES",{get:function(){return[dt,Vt,nn,Ct,Zt,on,Nn,Ie,Bn,Cn,Nt,_n,nr]},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[dt,Vt,nn,Ct,on,Nn,Ie]},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"BASIC_MARKER_TYPES",{get:function(){return[dt,Vt,nn,Ct,Nn]},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Ue){var He=this;this._availableMarkerTypes.splice(0),Ue.forEach(function(it){if(typeof it=="string"){var vt=He.ALL_MARKER_TYPES.find(function(Ye){return Ye.typeName===it});vt!==void 0&&He._availableMarkerTypes.push(vt)}else He._availableMarkerTypes.push(it)})},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Ue){this._zoomLevel=Ue,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(ct.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ct.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),_e.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ct.prototype.show=function(){var Ue=this;this.styles.styleSheetRoot===void 0&&et.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=et.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(He){return He(new Ft(Ue))})},ct.prototype.render=function(){return Fe(this,void 0,void 0,function(){var Ue;return Oe(this,function(He){switch(He.label){case 0:return this.setCurrentMarker(),(Ue=new ut).naturalSize=this.renderAtNaturalSize,Ue.imageType=this.renderImageType,Ue.imageQuality=this.renderImageQuality,Ue.markersOnly=this.renderMarkersOnly,Ue.width=this.renderWidth,Ue.height=this.renderHeight,[4,Ue.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return He.sent(),[4,Ue.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,He.sent()]}})})},ct.prototype.close=function(Ue){var He=this;if(Ue===void 0&&(Ue=!1),this.isOpen){var it=!1;Ue||this.eventListeners.beforeclose.forEach(function(vt){var Ye=new Ft(He,!0);vt(Ye),Ye.defaultPrevented&&(it=!0)}),it||(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(vt){return vt(new Ft(He))}),this.detachEvents(),this._isOpen=!1)}},ct.prototype.addMarkersToToolbar=function(){for(var Ue,He=[],it=0;it<arguments.length;it++)He[it]=arguments[it];(Ue=this._availableMarkerTypes).push.apply(Ue,He)},ct.prototype.addRenderEventListener=function(Ue){this.addEventListener("render",function(He){Ue(He.dataUrl,He.state)})},ct.prototype.removeRenderEventListener=function(Ue){},ct.prototype.addCloseEventListener=function(Ue){this.addEventListener("close",function(){Ue()})},ct.prototype.removeCloseEventListener=function(Ue){},ct.prototype.setupResizeObserver=function(){var Ue=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Ue.resize(Ue.target.clientWidth,Ue.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Ue.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ct.prototype.onPopupTargetResize=function(){var Ue=1*this.target.clientWidth/this.target.clientHeight,He=this.editorCanvas.clientWidth/Ue>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Ue:this.editorCanvas.clientWidth,it=He<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Ue;this.resize(He,it)},ct.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ct.prototype.resize=function(Ue,He){this._isResizing=!0;var it=Ue/this.imageWidth,vt=He/this.imageHeight;this.imageWidth=Math.round(Ue),this.imageHeight=Math.round(He),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(it,vt),this._isResizing=!1},ct.prototype.scaleMarkers=function(Ue,He){var it,vt=this;this._currentMarker&&this._currentMarker instanceof Ct?this._currentMarker.scale(Ue,He):(it=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Ye){Ye!==vt._currentMarker&&Ye.scale(Ue,He)}),it!==void 0&&this.setCurrentMarker(it)},ct.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"},ct.prototype.setTopLeft=function(){var Ue=this.editingTarget.getBoundingClientRect(),He=this.editorCanvas.getBoundingClientRect();this.left=Ue.left-He.left,this.top=Ue.top-He.top},ct.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)},ct.prototype.addDefs=function(){for(var Ue,He=[],it=0;it<arguments.length;it++)He[it]=arguments[it];this.defs=Me.createDefs(),this.addDefsToImage(),(Ue=this.defs).append.apply(Ue,He)},ct.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ct.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)},ct.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ct.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ct.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)},ct.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ct.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)},ct.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 Ue=document.createElement("a");Ue.href="https://markerjs.com/",Ue.target="_blank",Ue.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>',Ue.title="Powered by marker.js",Ue.style.display="grid",Ue.style.alignItems="center",Ue.style.justifyItems="center",Ue.style.padding="3px",Ue.style.width="20px",Ue.style.height="20px",this.logoUI.appendChild(Ue),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ct.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")},ct.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"},ct.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ct.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 Ue=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=Ue+"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 _t(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 Ge(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ct.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ct.prototype.removeMarker=function(Ue){this.markerImage.removeChild(Ue.container),this.markers.indexOf(Ue)>-1&&this.markers.splice(this.markers.indexOf(Ue),1),Ue.dispose()},ct.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())},ct.prototype.toolbarButtonClicked=function(Ue,He){if(Ue==="marker"&&He!==void 0)this.createNewMarker(He);else if(Ue==="action")switch(He){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()}},ct.prototype.deleteSelectedMarker=function(){var Ue=this;if(this._currentMarker!==void 0){var He=!1;if(this.eventListeners.markerbeforedelete.forEach(function(vt){var Ye=new ht(Ue,Ue._currentMarker,!0);vt(Ye),Ye.defaultPrevented&&(He=!0)}),!He){var it=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(vt){return vt(new ht(Ue,it))})}}},ct.prototype.clear=function(){var Ue=this,He=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(It){var In=new ht(Ue,void 0,!0);It(In),In.defaultPrevented&&(He=!0)}),!He)){this.setCurrentMarker();for(var it=function(It){var In=vt.markers[It];vt.setCurrentMarker(vt.markers[It]),vt._currentMarker.dispose(),vt.markerImage.removeChild(vt._currentMarker.container),vt.markers.splice(vt.markers.indexOf(vt._currentMarker),1),vt.eventListeners.markerdelete.forEach(function(Kn){return Kn(new ht(Ue,In))})},vt=this,Ye=this.markers.length-1;Ye>=0;Ye--)it(Ye);this.addUndoStep()}},Object.defineProperty(ct.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ct.prototype.showNotesEditor=function(){var Ue;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=(Ue=this._currentMarker.notes)!==null&&Ue!==void 0?Ue:"",this.overlayContainer.appendChild(this.notesArea))},ct.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)},ct.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ct.prototype.addUndoStep=function(){var Ue=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var He=this.getState(),it=this.undoRedoManager.getLastUndoStep();if(!it||it.width===He.width&&it.height===He.height){var vt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(He),vt<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Ye){return Ye(new Ft(Ue))})}else this.undoRedoManager.replaceLastUndoStep(He),this.eventListeners.statechange.forEach(function(Ye){return Ye(new Ft(Ue))})}},ct.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ct.prototype.undoStep=function(){var Ue=this,He=this.undoRedoManager.undo();He!==void 0&&(this.restoreState(He),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(it){return it(new Ft(Ue))}))},ct.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ct.prototype.redoStep=function(){var Ue=this,He=this.undoRedoManager.redo();He!==void 0&&(this.restoreState(He),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(it){return it(new Ft(Ue))}))},ct.prototype.stepZoom=function(){var Ue=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Ue<this.zoomSteps.length-1?this.zoomSteps[Ue+1]:this.zoomSteps[0]},ct.prototype.panTo=function(Ue){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Ue.x,top:this.prevPanPoint.y-Ue.y}),this.prevPanPoint=Ue},ct.prototype.startRenderAndClose=function(){return Fe(this,void 0,void 0,function(){var Ue,He,it=this;return Oe(this,function(vt){switch(vt.label){case 0:return[4,this.render()];case 1:return Ue=vt.sent(),He=this.getState(),this.eventListeners.render.forEach(function(Ye){return Ye(new Wt(it,Ue,He))}),this.close(!0),[2]}})})},ct.prototype.getState=function(Ue){Ue===!0&&this.setCurrentMarker();var He={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(it){return He.markers.push(it.getState())}),He},ct.prototype.restoreState=function(Ue){var He=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Ue.markers.forEach(function(it){var vt=He._availableMarkerTypes.find(function(It){return It.typeName===it.typeName});if(vt!==void 0){var Ye=He.addNewMarker(vt);Ye.restoreState(it),He.markers.push(Ye)}}),Ue.width&&Ue.height&&(Ue.width!==this.imageWidth||Ue.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Ue.width,this.imageHeight/Ue.height),this.eventListeners.restorestate.forEach(function(it){return it(new Ft(He))})},ct.prototype.addNewMarker=function(Ue){var He=Me.createGroup();return this.markerImage.appendChild(He),new Ue(He,this.overlayContainer,this.settings)},ct.prototype.createNewMarker=function(Ue){var He,it=this;(He=typeof Ue=="string"?this._availableMarkerTypes.find(function(vt){return vt.typeName===Ue}):Ue)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(He),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(He.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(vt){return vt(new ht(it,it._currentMarker))}))},ct.prototype.markerCreated=function(Ue){var He=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Ue),this.setCurrentMarker(Ue),Ue instanceof Vt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Vt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(it){return it(new ht(He,He._currentMarker))})},ct.prototype.colorChanged=function(Ue){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Ue,this.settings.defaultStrokeColor=Ue)},ct.prototype.fillColorChanged=function(Ue){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Ue)},ct.prototype.markerStateChanged=function(Ue){var He=this;this.eventListeners.markerchange.forEach(function(it){return it(new ht(He,Ue))})},ct.prototype.setCurrentMarker=function(Ue){var He=this;this._currentMarker!==Ue&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(it){return it(new ht(He,He._currentMarker))})),this._currentMarker=Ue,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(it){return it(new ht(He,He._currentMarker))}))},ct.prototype.onPointerDown=function(Ue){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Ue.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var He=this.markers.find(function(it){return it.ownsTarget(Ue.target)});He!==void 0?(this.setCurrentMarker(He),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Ue.clientX,Ue.clientY),Ue.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Ue.clientX,y:Ue.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Ue.clientX,Ue.clientY))},ct.prototype.onDblClick=function(Ue){if(this._isFocused||this.focus(),this.mode==="select"){var He=this.markers.find(function(it){return it.ownsTarget(Ue.target)});He!==void 0&&He!==this._currentMarker&&this.setCurrentMarker(He),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Ue.clientX,Ue.clientY),Ue.target):this.setCurrentMarker()}},ct.prototype.onPointerMove=function(Ue){this.touchPoints!==1&&Ue.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Ue.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Ue.clientX,Ue.clientY)):this.zoomLevel>1&&this.panTo({x:Ue.clientX,y:Ue.clientY}))},ct.prototype.onPointerUp=function(Ue){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Ue.clientX,Ue.clientY)),this.isDragging=!1,this.addUndoStep()},ct.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ct.prototype.onKeyUp=function(Ue){this._currentMarker===void 0||this.notesArea!==void 0||Ue.key!=="Delete"&&Ue.key!=="Backspace"||this.deleteSelectedMarker()},ct.prototype.clientToLocalCoordinates=function(Ue,He){var it=this.markerImage.getBoundingClientRect();return{x:(Ue-it.left)/this.zoomLevel,y:(He-it.top)/this.zoomLevel}},ct.prototype.onWindowResize=function(){this.positionUI()},ct.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Ue=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Ue+"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()},ct.prototype.addLicenseKey=function(Ue){_e.addKey(Ue)},ct.prototype.addEventListener=function(Ue,He){this.eventListeners.addEventListener(Ue,He)},ct.prototype.removeEventListener=function(Ue,He){this.eventListeners.removeEventListener(Ue,He)},ct.prototype.renderState=function(Ue){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Ue),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ct.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ct.prototype.focus=function(){var Ue=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(He){return He(new Ft(Ue))}))},ct.prototype.blur=function(){var Ue=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(He){return He(new Ft(Ue))}))},ct.instanceCounter=0,ct}()},89435:function(Ke){"use strict";var we,ae=59;Ke.exports=ie;function ie(Pe){var Fe="&"+Pe+";",Oe;return we=we||document.createElement("i"),we.innerHTML=Fe,Oe=we.textContent,Oe.charCodeAt(Oe.length-1)===ae&&Pe!=="semi"||Oe===Fe?!1:Oe}},57574:function(Ke,we,ae){"use strict";var ie=ae(21922),Pe=ae(93580),Fe=ae(46195),Oe=ae(79480),tt=ae(7961),Me=ae(89435);Ke.exports=Nn;var _e={}.hasOwnProperty,ut=String.fromCharCode,et=Function.prototype,lt={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},Et=9,rt=10,_t=12,Ge=32,te=38,ee=59,de=60,le=61,pe=35,me=88,xe=120,be=65533,Be="named",at="hexadecimal",dt="decimal",gt={};gt[at]=16,gt[dt]=10;var ft={};ft[Be]=tt,ft[dt]=Fe,ft[at]=Oe;var Nt=1,Tt=2,Ct=3,Vt=4,Rt=5,nn=6,Cn=7,un={};un[Nt]="Named character references must be terminated by a semicolon",un[Tt]="Numeric character references must be terminated by a semicolon",un[Ct]="Named character references cannot be empty",un[Vt]="Numeric character references cannot be empty",un[Rt]="Named character references must be known",un[nn]="Numeric character references cannot be disallowed",un[Cn]="Numeric character references cannot be outside the permissible Unicode range";function Nn(on,Bn){var Zt={},zn,_n;Bn||(Bn={});for(_n in lt)zn=Bn[_n],Zt[_n]=zn==null?lt[_n]:zn;return(Zt.position.indent||Zt.position.start)&&(Zt.indent=Zt.position.indent||[],Zt.position=Zt.position.start),wt(on,Zt)}function wt(on,Bn){var Zt=Bn.additional,zn=Bn.nonTerminated,_n=Bn.text,nr=Bn.reference,Ft=Bn.warning,Wt=Bn.textContext,ht=Bn.referenceContext,tn=Bn.warningContext,an=Bn.position,ct=Bn.indent||[],Ue=on.length,He=0,it=-1,vt=an.column||1,Ye=an.line||1,It="",In=[],Kn,dr,Rn,er,yn,Er,sr,Hr,An,yi,ri,bn,Xe,Ji,Qn,Sn,to,Ki,Zr;for(typeof Zt=="string"&&(Zt=Zt.charCodeAt(0)),Sn=hi(),Hr=Ft?Ir:et,He--,Ue++;++He<Ue;)if(yn===rt&&(vt=ct[it]||1),yn=on.charCodeAt(He),yn===te){if(sr=on.charCodeAt(He+1),sr===Et||sr===rt||sr===_t||sr===Ge||sr===te||sr===de||sr!==sr||Zt&&sr===Zt){It+=ut(yn),vt++;continue}for(Xe=He+1,bn=Xe,Zr=Xe,sr===pe?(Zr=++bn,sr=on.charCodeAt(Zr),sr===me||sr===xe?(Ji=at,Zr=++bn):Ji=dt):Ji=Be,Kn="",ri="",er="",Qn=ft[Ji],Zr--;++Zr<Ue&&(sr=on.charCodeAt(Zr),!!Qn(sr));)er+=ut(sr),Ji===Be&&_e.call(ie,er)&&(Kn=er,ri=ie[er]);Rn=on.charCodeAt(Zr)===ee,Rn&&(Zr++,dr=Ji===Be?Me(er):!1,dr&&(Kn=er,ri=dr)),Ki=1+Zr-Xe,!Rn&&!zn||(er?Ji===Be?(Rn&&!ri?Hr(Rt,1):(Kn!==er&&(Zr=bn+Kn.length,Ki=1+Zr-bn,Rn=!1),Rn||(An=Kn?Nt:Ct,Bn.attribute?(sr=on.charCodeAt(Zr),sr===le?(Hr(An,Ki),ri=null):tt(sr)?ri=null:Hr(An,Ki)):Hr(An,Ki))),Er=ri):(Rn||Hr(Tt,Ki),Er=parseInt(er,gt[Ji]),pt(Er)?(Hr(Cn,Ki),Er=ut(be)):Er in Pe?(Hr(nn,Ki),Er=Pe[Er]):(yi="",Ie(Er)&&Hr(nn,Ki),Er>65535&&(Er-=65536,yi+=ut(Er>>>10|55296),Er=56320|Er&1023),Er=yi+ut(Er))):Ji!==Be&&Hr(Vt,Ki)),Er?(fn(),Sn=hi(),He=Zr-1,vt+=Zr-Xe+1,In.push(Er),to=hi(),to.offset++,nr&&nr.call(ht,Er,{start:Sn,end:to},on.slice(Xe-1,Zr)),Sn=to):(er=on.slice(Xe-1,Zr),It+=er,vt+=er.length,He=Zr-1)}else yn===10&&(Ye++,it++,vt=0),yn===yn?(It+=ut(yn),vt++):fn();return In.join("");function hi(){return{line:Ye,column:vt,offset:He+(an.offset||0)}}function Ir(Hi,ao){var ui=hi();ui.column+=ao,ui.offset+=ao,Ft.call(tn,un[Hi],ui,Hi)}function fn(){It&&(In.push(It),_n&&_n.call(Wt,It,{start:Sn,end:hi()}),It="")}}function pt(on){return on>=55296&&on<=57343||on>1114111}function Ie(on){return on>=1&&on<=8||on===11||on>=13&&on<=31||on>=127&&on<=159||on>=64976&&on<=65007||(on&65535)===65535||(on&65535)===65534}},13272:function(Ke,we,ae){"use strict";ae.d(we,{s:function(){return qa},default:function(){return mt}});function ie(){return ie=Object.assign?Object.assign.bind():function(Ae){for(var De=1;De<arguments.length;De++){var qe=arguments[De];for(var ot in qe)({}).hasOwnProperty.call(qe,ot)&&(Ae[ot]=qe[ot])}return Ae},ie.apply(null,arguments)}function Pe(Ae){"@babel/helpers - typeof";return Pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(De){return typeof De}:function(De){return De&&typeof Symbol=="function"&&De.constructor===Symbol&&De!==Symbol.prototype?"symbol":typeof De},Pe(Ae)}function Fe(Ae,De){if(Pe(Ae)!="object"||!Ae)return Ae;var qe=Ae[Symbol.toPrimitive];if(qe!==void 0){var ot=qe.call(Ae,De||"default");if(Pe(ot)!="object")return ot;throw new TypeError("@@toPrimitive must return a primitive value.")}return(De==="string"?String:Number)(Ae)}function Oe(Ae){var De=Fe(Ae,"string");return Pe(De)=="symbol"?De:De+""}function tt(Ae,De,qe){return(De=Oe(De))in Ae?Object.defineProperty(Ae,De,{value:qe,enumerable:!0,configurable:!0,writable:!0}):Ae[De]=qe,Ae}function Me(Ae,De){var qe=Object.keys(Ae);if(Object.getOwnPropertySymbols){var ot=Object.getOwnPropertySymbols(Ae);De&&(ot=ot.filter(function(Lt){return Object.getOwnPropertyDescriptor(Ae,Lt).enumerable})),qe.push.apply(qe,ot)}return qe}function _e(Ae){for(var De=1;De<arguments.length;De++){var qe=arguments[De]!=null?arguments[De]:{};De%2?Me(Object(qe),!0).forEach(function(ot){tt(Ae,ot,qe[ot])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ae,Object.getOwnPropertyDescriptors(qe)):Me(Object(qe)).forEach(function(ot){Object.defineProperty(Ae,ot,Object.getOwnPropertyDescriptor(qe,ot))})}return Ae}function ut(Ae,De){(De==null||De>Ae.length)&&(De=Ae.length);for(var qe=0,ot=Array(De);qe<De;qe++)ot[qe]=Ae[qe];return ot}function et(Ae){if(Array.isArray(Ae))return ut(Ae)}function lt(Ae){if(typeof Symbol!="undefined"&&Ae[Symbol.iterator]!=null||Ae["@@iterator"]!=null)return Array.from(Ae)}function Et(Ae,De){if(Ae){if(typeof Ae=="string")return ut(Ae,De);var qe={}.toString.call(Ae).slice(8,-1);return qe==="Object"&&Ae.constructor&&(qe=Ae.constructor.name),qe==="Map"||qe==="Set"?Array.from(Ae):qe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(qe)?ut(Ae,De):void 0}}function rt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _t(Ae){return et(Ae)||lt(Ae)||Et(Ae)||rt()}function Ge(Ae){if(Array.isArray(Ae))return Ae}function te(Ae,De){var qe=Ae==null?null:typeof Symbol!="undefined"&&Ae[Symbol.iterator]||Ae["@@iterator"];if(qe!=null){var ot,Lt,Ut,jt,se=[],fe=!0,je=!1;try{if(Ut=(qe=qe.call(Ae)).next,De===0){if(Object(qe)!==qe)return;fe=!1}else for(;!(fe=(ot=Ut.call(qe)).done)&&(se.push(ot.value),se.length!==De);fe=!0);}catch(St){je=!0,Lt=St}finally{try{if(!fe&&qe.return!=null&&(jt=qe.return(),Object(jt)!==jt))return}finally{if(je)throw Lt}}return se}}function ee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function de(Ae,De){return Ge(Ae)||te(Ae,De)||Et(Ae,De)||ee()}function le(Ae,De){if(Ae==null)return{};var qe={};for(var ot in Ae)if({}.hasOwnProperty.call(Ae,ot)){if(De.indexOf(ot)!==-1)continue;qe[ot]=Ae[ot]}return qe}function pe(Ae,De){if(Ae==null)return{};var qe,ot,Lt=le(Ae,De);if(Object.getOwnPropertySymbols){var Ut=Object.getOwnPropertySymbols(Ae);for(ot=0;ot<Ut.length;ot++)qe=Ut[ot],De.indexOf(qe)===-1&&{}.propertyIsEnumerable.call(Ae,qe)&&(Lt[qe]=Ae[qe])}return Lt}function me(){return me=Object.assign?Object.assign.bind():function(Ae){for(var De=1;De<arguments.length;De++){var qe=arguments[De];for(var ot in qe)Object.prototype.hasOwnProperty.call(qe,ot)&&(Ae[ot]=qe[ot])}return Ae},me.apply(this,arguments)}function xe(Ae,De){(De==null||De>Ae.length)&&(De=Ae.length);for(var qe=0,ot=new Array(De);qe<De;qe++)ot[qe]=Ae[qe];return ot}function be(Ae){if(Array.isArray(Ae))return xe(Ae)}function Be(Ae){if(typeof Symbol!="undefined"&&Ae[Symbol.iterator]!=null||Ae["@@iterator"]!=null)return Array.from(Ae)}function at(Ae,De){if(Ae){if(typeof Ae=="string")return xe(Ae,De);var qe=Object.prototype.toString.call(Ae).slice(8,-1);if(qe==="Object"&&Ae.constructor&&(qe=Ae.constructor.name),qe==="Map"||qe==="Set")return Array.from(Ae);if(qe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(qe))return xe(Ae,De)}}function dt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gt(Ae){return be(Ae)||Be(Ae)||at(Ae)||dt()}function ft(Ae){"@babel/helpers - typeof";return ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(De){return typeof De}:function(De){return De&&typeof Symbol=="function"&&De.constructor===Symbol&&De!==Symbol.prototype?"symbol":typeof De},ft(Ae)}function Nt(Ae,De){if(ft(Ae)!=="object"||Ae===null)return Ae;var qe=Ae[Symbol.toPrimitive];if(qe!==void 0){var ot=qe.call(Ae,De||"default");if(ft(ot)!=="object")return ot;throw new TypeError("@@toPrimitive must return a primitive value.")}return(De==="string"?String:Number)(Ae)}function Tt(Ae){var De=Nt(Ae,"string");return ft(De)==="symbol"?De:String(De)}function Ct(Ae,De,qe){return De=Tt(De),De in Ae?Object.defineProperty(Ae,De,{value:qe,enumerable:!0,configurable:!0,writable:!0}):Ae[De]=qe,Ae}function Vt(Ae,De){var qe=Object.keys(Ae);if(Object.getOwnPropertySymbols){var ot=Object.getOwnPropertySymbols(Ae);De&&(ot=ot.filter(function(Lt){return Object.getOwnPropertyDescriptor(Ae,Lt).enumerable})),qe.push.apply(qe,ot)}return qe}function Rt(Ae){for(var De=1;De<arguments.length;De++){var qe=arguments[De]!=null?arguments[De]:{};De%2?Vt(Object(qe),!0).forEach(function(ot){Ct(Ae,ot,qe[ot])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ae,Object.getOwnPropertyDescriptors(qe)):Vt(Object(qe)).forEach(function(ot){Object.defineProperty(Ae,ot,Object.getOwnPropertyDescriptor(qe,ot))})}return Ae}function nn(Ae){if(Array.isArray(Ae))return Ae}function Cn(Ae,De){var qe=Ae==null?null:typeof Symbol!="undefined"&&Ae[Symbol.iterator]||Ae["@@iterator"];if(qe!=null){var ot,Lt,Ut,jt,se=[],fe=!0,je=!1;try{if(Ut=(qe=qe.call(Ae)).next,De===0){if(Object(qe)!==qe)return;fe=!1}else for(;!(fe=(ot=Ut.call(qe)).done)&&(se.push(ot.value),se.length!==De);fe=!0);}catch(St){je=!0,Lt=St}finally{try{if(!fe&&qe.return!=null&&(jt=qe.return(),Object(jt)!==jt))return}finally{if(je)throw Lt}}return se}}function un(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nn(Ae,De){return nn(Ae)||Cn(Ae,De)||at(Ae,De)||un()}function wt(Ae,De){if(Ae==null)return{};var qe={},ot=Object.keys(Ae),Lt,Ut;for(Ut=0;Ut<ot.length;Ut++)Lt=ot[Ut],!(De.indexOf(Lt)>=0)&&(qe[Lt]=Ae[Lt]);return qe}function pt(Ae,De){if(Ae==null)return{};var qe=wt(Ae,De),ot,Lt;if(Object.getOwnPropertySymbols){var Ut=Object.getOwnPropertySymbols(Ae);for(Lt=0;Lt<Ut.length;Lt++)ot=Ut[Lt],!(De.indexOf(ot)>=0)&&Object.prototype.propertyIsEnumerable.call(Ae,ot)&&(qe[ot]=Ae[ot])}return qe}var Ie=ae(67294);function on(Ae){var De=Ie.useRef();De.current=Ae;var qe=Ie.useCallback(function(){for(var ot,Lt=arguments.length,Ut=new Array(Lt),jt=0;jt<Lt;jt++)Ut[jt]=arguments[jt];return(ot=De.current)===null||ot===void 0?void 0:ot.call.apply(ot,[De].concat(Ut))},[]);return qe}function Bn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Zt=Bn()?Ie.useLayoutEffect:Ie.useEffect,zn=Zt,_n=function(De,qe){var ot=Ie.useRef(!0);Zt(function(){if(!ot.current)return De()},qe),Zt(function(){return ot.current=!1,function(){ot.current=!0}},[])};function nr(Ae){var De=Ie.useRef(!1),qe=Ie.useState(Ae),ot=Nn(qe,2),Lt=ot[0],Ut=ot[1];Ie.useEffect(function(){return De.current=!1,function(){De.current=!0}},[]);function jt(se,fe){fe&&De.current||Ut(se)}return[Lt,jt]}function Ft(Ae){return Ae!==void 0}function Wt(Ae,De){var qe=De||{},ot=qe.defaultValue,Lt=qe.value,Ut=qe.onChange,jt=qe.postState,se=nr(function(){return Ft(Lt)?Lt:Ft(ot)?typeof ot=="function"?ot():ot:typeof Ae=="function"?Ae():Ae}),fe=Nn(se,2),je=fe[0],St=fe[1],Yt=Lt!==void 0?Lt:je,mn=jt?jt(Yt):Yt,wn=on(Ut),On=nr([Yt]),Tn=Nn(On,2),br=Tn[0],Wr=Tn[1];_n(function(){var ii=br[0];je!==ii&&wn(je,ii)},[br]),_n(function(){Ft(Lt)||St(Lt)},[Lt]);var di=on(function(ii,oi){St(ii,oi),Wr([Yt],oi)});return[mn,di]}var ht={};function tn(Ae,De){}function an(Ae,De){}function ct(){ht={}}function Ue(Ae,De,qe){!De&&!ht[qe]&&(Ae(!1,qe),ht[qe]=!0)}function He(Ae,De){Ue(tn,Ae,De)}function it(Ae,De){Ue(an,Ae,De)}var vt=He,Ye=ae(94184),It=ae.n(Ye),In=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Ae=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Ae)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Ae==null?void 0:Ae.substr(0,4))},Kn=ae(16357);function dr(Ae,De,qe){var ot=Ie.useRef({});return(!("value"in ot.current)||qe(ot.current.condition,De))&&(ot.current.value=Ae(),ot.current.condition=De),ot.current.value}function Rn(Ae,De){typeof Ae=="function"?Ae(De):ft(Ae)==="object"&&Ae&&"current"in Ae&&(Ae.current=De)}function er(){for(var Ae=arguments.length,De=new Array(Ae),qe=0;qe<Ae;qe++)De[qe]=arguments[qe];var ot=De.filter(function(Lt){return Lt});return ot.length<=1?ot[0]:function(Lt){De.forEach(function(Ut){Rn(Ut,Lt)})}}function yn(){for(var Ae=arguments.length,De=new Array(Ae),qe=0;qe<Ae;qe++)De[qe]=arguments[qe];return dr(function(){return er.apply(void 0,De)},De,function(ot,Lt){return ot.length===Lt.length&&ot.every(function(Ut,jt){return Ut===Lt[jt]})})}function Er(Ae){var De,qe,ot=isMemo(Ae)?Ae.type.type:Ae.type;return!(typeof ot=="function"&&!((De=ot.prototype)!==null&&De!==void 0&&De.render)||typeof Ae=="function"&&!((qe=Ae.prototype)!==null&&qe!==void 0&&qe.render))}var sr=function(De){var qe=De.className,ot=De.customizeIcon,Lt=De.customizeIconProps,Ut=De.children,jt=De.onMouseDown,se=De.onClick,fe=typeof ot=="function"?ot(Lt):ot;return Ie.createElement("span",{className:qe,onMouseDown:function(St){St.preventDefault(),jt==null||jt(St)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:se,"aria-hidden":!0},fe!==void 0?fe:Ie.createElement("span",{className:It()(qe.split(/\s+/).map(function(je){return"".concat(je,"-icon")}))},Ut))},Hr=sr,An=function(De,qe,ot,Lt,Ut){var jt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,se=arguments.length>6?arguments[6]:void 0,fe=arguments.length>7?arguments[7]:void 0,je=Ie.useMemo(function(){if(ft(Lt)==="object")return Lt.clearIcon;if(Ut)return Ut},[Lt,Ut]),St=Ie.useMemo(function(){return!!(!jt&&Lt&&(ot.length||se)&&!(fe==="combobox"&&se===""))},[Lt,jt,ot.length,se,fe]);return{allowClear:St,clearIcon:Ie.createElement(Hr,{className:"".concat(De,"-clear"),onMouseDown:qe,customizeIcon:je},"\xD7")}},yi=Ie.createContext(null);function ri(){return Ie.useContext(yi)}function bn(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,De=Ie.useState(!1),qe=Nn(De,2),ot=qe[0],Lt=qe[1],Ut=Ie.useRef(null),jt=function(){window.clearTimeout(Ut.current)};Ie.useEffect(function(){return jt},[]);var se=function(je,St){jt(),Ut.current=window.setTimeout(function(){Lt(je),St&&St()},Ae)};return[ot,se,jt]}function Xe(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,De=Ie.useRef(null),qe=Ie.useRef(null);Ie.useEffect(function(){return function(){window.clearTimeout(qe.current)}},[]);function ot(Lt){(Lt||De.current===null)&&(De.current=Lt),window.clearTimeout(qe.current),qe.current=window.setTimeout(function(){De.current=null},Ae)}return[function(){return De.current},ot]}function Ji(Ae,De,qe,ot){var Lt=Ie.useRef(null);Lt.current={open:De,triggerOpen:qe,customizedTrigger:ot},Ie.useEffect(function(){function Ut(jt){var se;if(!((se=Lt.current)!==null&&se!==void 0&&se.customizedTrigger)){var fe=jt.target;fe.shadowRoot&&jt.composed&&(fe=jt.composedPath()[0]||fe),Lt.current.open&&Ae().filter(function(je){return je}).every(function(je){return!je.contains(fe)&&je!==fe})&&Lt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Ut),function(){return window.removeEventListener("mousedown",Ut)}},[])}var Qn={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(De){var qe=De.keyCode;if(De.altKey&&!De.ctrlKey||De.metaKey||qe>=Qn.F1&&qe<=Qn.F12)return!1;switch(qe){case Qn.ALT:case Qn.CAPS_LOCK:case Qn.CONTEXT_MENU:case Qn.CTRL:case Qn.DOWN:case Qn.END:case Qn.ESC:case Qn.HOME:case Qn.INSERT:case Qn.LEFT:case Qn.MAC_FF_META:case Qn.META:case Qn.NUMLOCK:case Qn.NUM_CENTER:case Qn.PAGE_DOWN:case Qn.PAGE_UP:case Qn.PAUSE:case Qn.PRINT_SCREEN:case Qn.RIGHT:case Qn.SHIFT:case Qn.UP:case Qn.WIN_KEY:case Qn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(De){if(De>=Qn.ZERO&&De<=Qn.NINE||De>=Qn.NUM_ZERO&&De<=Qn.NUM_MULTIPLY||De>=Qn.A&&De<=Qn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&De===0)return!0;switch(De){case Qn.SPACE:case Qn.QUESTION_MARK:case Qn.NUM_PLUS:case Qn.NUM_MINUS:case Qn.NUM_PERIOD:case Qn.NUM_DIVISION:case Qn.SEMICOLON:case Qn.DASH:case Qn.EQUALS:case Qn.COMMA:case Qn.PERIOD:case Qn.SLASH:case Qn.APOSTROPHE:case Qn.SINGLE_QUOTE:case Qn.OPEN_SQUARE_BRACKET:case Qn.BACKSLASH:case Qn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Sn=Qn;function to(Ae){return Ae&&![Sn.ESC,Sn.SHIFT,Sn.BACKSPACE,Sn.TAB,Sn.WIN_KEY,Sn.ALT,Sn.META,Sn.WIN_KEY_RIGHT,Sn.CTRL,Sn.SEMICOLON,Sn.EQUALS,Sn.CAPS_LOCK,Sn.CONTEXT_MENU,Sn.F1,Sn.F2,Sn.F3,Sn.F4,Sn.F5,Sn.F6,Sn.F7,Sn.F8,Sn.F9,Sn.F10,Sn.F11,Sn.F12].includes(Ae)}var Ki=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,Zr=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,hi="".concat(Ki," ").concat(Zr).split(/[\s\n]+/),Ir="aria-",fn="data-";function Hi(Ae,De){return Ae.indexOf(De)===0}function ao(Ae){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe;De===!1?qe={aria:!0,data:!0,attr:!0}:De===!0?qe={aria:!0}:qe=Rt({},De);var ot={};return Object.keys(Ae).forEach(function(Lt){(qe.aria&&(Lt==="role"||Hi(Lt,Ir))||qe.data&&Hi(Lt,fn)||qe.attr&&hi.includes(Lt))&&(ot[Lt]=Ae[Lt])}),ot}function ui(){return ui=Object.assign?Object.assign.bind():function(Ae){for(var De=1;De<arguments.length;De++){var qe=arguments[De];for(var ot in qe)Object.prototype.hasOwnProperty.call(qe,ot)&&(Ae[ot]=qe[ot])}return Ae},ui.apply(this,arguments)}function ai(Ae){"@babel/helpers - typeof";return ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(De){return typeof De}:function(De){return De&&typeof Symbol=="function"&&De.constructor===Symbol&&De!==Symbol.prototype?"symbol":typeof De},ai(Ae)}function Ni(Ae,De){if(ai(Ae)!=="object"||Ae===null)return Ae;var qe=Ae[Symbol.toPrimitive];if(qe!==void 0){var ot=qe.call(Ae,De||"default");if(ai(ot)!=="object")return ot;throw new TypeError("@@toPrimitive must return a primitive value.")}return(De==="string"?String:Number)(Ae)}function ir(Ae){var De=Ni(Ae,"string");return ai(De)==="symbol"?De:String(De)}function We(Ae,De,qe){return De=ir(De),De in Ae?Object.defineProperty(Ae,De,{value:qe,enumerable:!0,configurable:!0,writable:!0}):Ae[De]=qe,Ae}function rr(Ae,De){var qe=Object.keys(Ae);if(Object.getOwnPropertySymbols){var ot=Object.getOwnPropertySymbols(Ae);De&&(ot=ot.filter(function(Lt){return Object.getOwnPropertyDescriptor(Ae,Lt).enumerable})),qe.push.apply(qe,ot)}return qe}function ur(Ae){for(var De=1;De<arguments.length;De++){var qe=arguments[De]!=null?arguments[De]:{};De%2?rr(Object(qe),!0).forEach(function(ot){We(Ae,ot,qe[ot])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ae,Object.getOwnPropertyDescriptors(qe)):rr(Object(qe)).forEach(function(ot){Object.defineProperty(Ae,ot,Object.getOwnPropertyDescriptor(qe,ot))})}return Ae}function hr(Ae){if(Array.isArray(Ae))return Ae}function Or(Ae,De){var qe=Ae==null?null:typeof Symbol!="undefined"&&Ae[Symbol.iterator]||Ae["@@iterator"];if(qe!=null){var ot,Lt,Ut,jt,se=[],fe=!0,je=!1;try{if(Ut=(qe=qe.call(Ae)).next,De===0){if(Object(qe)!==qe)return;fe=!1}else for(;!(fe=(ot=Ut.call(qe)).done)&&(se.push(ot.value),se.length!==De);fe=!0);}catch(St){je=!0,Lt=St}finally{try{if(!fe&&qe.return!=null&&(jt=qe.return(),Object(jt)!==jt))return}finally{if(je)throw Lt}}return se}}function jr(Ae,De){(De==null||De>Ae.length)&&(De=Ae.length);for(var qe=0,ot=new Array(De);qe<De;qe++)ot[qe]=Ae[qe];return ot}function si(Ae,De){if(Ae){if(typeof Ae=="string")return jr(Ae,De);var qe=Object.prototype.toString.call(Ae).slice(8,-1);if(qe==="Object"&&Ae.constructor&&(qe=Ae.constructor.name),qe==="Map"||qe==="Set")return Array.from(Ae);if(qe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(qe))return jr(Ae,De)}}function Fi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vn(Ae,De){return hr(Ae)||Or(Ae,De)||si(Ae,De)||Fi()}function Wn(Ae,De){if(Ae==null)return{};var qe={},ot=Object.keys(Ae),Lt,Ut;for(Ut=0;Ut<ot.length;Ut++)Lt=ot[Ut],!(De.indexOf(Lt)>=0)&&(qe[Lt]=Ae[Lt]);return qe}function vn(Ae,De){if(Ae==null)return{};var qe=Wn(Ae,De),ot,Lt;if(Object.getOwnPropertySymbols){var Ut=Object.getOwnPropertySymbols(Ae);for(Lt=0;Lt<Ut.length;Lt++)ot=Ut[Lt],!(De.indexOf(ot)>=0)&&Object.prototype.propertyIsEnumerable.call(Ae,ot)&&(qe[ot]=Ae[ot])}return qe}var tr=ae(48555);function mi(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var gi=mi()?Ie.useLayoutEffect:Ie.useEffect,ti=function(De,qe){var ot=Ie.useRef(!0);gi(function(){return De(ot.current)},qe),gi(function(){return ot.current=!1,function(){ot.current=!0}},[])},Hn=function(De,qe){ti(function(ot){if(!ot)return De()},qe)},Cr=ti,Ri=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],_i=void 0;function Ur(Ae,De){var qe=Ae.prefixCls,ot=Ae.invalidate,Lt=Ae.item,Ut=Ae.renderItem,jt=Ae.responsive,se=Ae.responsiveDisabled,fe=Ae.registerSize,je=Ae.itemKey,St=Ae.className,Yt=Ae.style,mn=Ae.children,wn=Ae.display,On=Ae.order,Tn=Ae.component,br=Tn===void 0?"div":Tn,Wr=vn(Ae,Ri),di=jt&&!wn;function ii(Yr){fe(je,Yr)}Ie.useEffect(function(){return function(){ii(null)}},[]);var oi=Ut&&Lt!==_i?Ut(Lt):mn,Di;ot||(Di={opacity:di?0:1,height:di?0:_i,overflowY:di?"hidden":_i,order:jt?On:_i,pointerEvents:di?"none":_i,position:di?"absolute":_i});var cr={};di&&(cr["aria-hidden"]=!0);var pi=Ie.createElement(br,ui({className:It()(!ot&&qe,St),style:ur(ur({},Di),Yt)},cr,Wr,{ref:De}),oi);return jt&&(pi=Ie.createElement(tr.Z,{onResize:function(Li){var Vi=Li.offsetWidth;ii(Vi)},disabled:se},pi)),pi}var Pn=Ie.forwardRef(Ur);Pn.displayName="Item";var xi=Pn;function ji(Ae){var De=Ie.useRef();De.current=Ae;var qe=Ie.useCallback(function(){for(var ot,Lt=arguments.length,Ut=new Array(Lt),jt=0;jt<Lt;jt++)Ut[jt]=arguments[jt];return(ot=De.current)===null||ot===void 0?void 0:ot.call.apply(ot,[De].concat(Ut))},[]);return qe}var Xo=ae(73935),wr=function(De){return+setTimeout(De,16)},Gi=function(De){return clearTimeout(De)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(wr=function(De){return window.requestAnimationFrame(De)},Gi=function(De){return window.cancelAnimationFrame(De)});var Jr=0,ls=new Map;function Pa(Ae){ls.delete(Ae)}var Oi=function(De){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Jr+=1;var ot=Jr;function Lt(Ut){if(Ut===0)Pa(ot),De();else{var jt=wr(function(){Lt(Ut-1)});ls.set(ot,jt)}}return Lt(qe),ot};Oi.cancel=function(Ae){var De=ls.get(Ae);return Pa(De),Gi(De)};var Yi=Oi;function uo(Ae){if(typeof MessageChannel=="undefined")Yi(Ae);else{var De=new MessageChannel;De.port1.onmessage=function(){return Ae()},De.port2.postMessage(void 0)}}function ba(){var Ae=Ie.useRef(null),De=function(ot){Ae.current||(Ae.current=[],uo(function(){(0,Xo.unstable_batchedUpdates)(function(){Ae.current.forEach(function(Lt){Lt()}),Ae.current=null})})),Ae.current.push(ot)};return De}function Go(Ae,De){var qe=Ie.useState(De),ot=Vn(qe,2),Lt=ot[0],Ut=ot[1],jt=ji(function(se){Ae(function(){Ut(se)})});return[Lt,jt]}var zr=Ie.createContext(null),vo=["component"],sl=["className"],gs=["className"],es=function(De,qe){var ot=Ie.useContext(zr);if(!ot){var Lt=De.component,Ut=Lt===void 0?"div":Lt,jt=vn(De,vo);return Ie.createElement(Ut,ui({},jt,{ref:qe}))}var se=ot.className,fe=vn(ot,sl),je=De.className,St=vn(De,gs);return Ie.createElement(zr.Provider,{value:null},Ie.createElement(xi,ui({ref:qe,className:It()(se,je)},fe,St)))},Mn=Ie.forwardRef(es);Mn.displayName="RawItem";var Co=Mn,Ta=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],lo="responsive",oa="invalidate";function fa(Ae){return"+ ".concat(Ae.length," ...")}function Ka(Ae,De){var qe=Ae.prefixCls,ot=qe===void 0?"rc-overflow":qe,Lt=Ae.data,Ut=Lt===void 0?[]:Lt,jt=Ae.renderItem,se=Ae.renderRawItem,fe=Ae.itemKey,je=Ae.itemWidth,St=je===void 0?10:je,Yt=Ae.ssr,mn=Ae.style,wn=Ae.className,On=Ae.maxCount,Tn=Ae.renderRest,br=Ae.renderRawRest,Wr=Ae.suffix,di=Ae.component,ii=di===void 0?"div":di,oi=Ae.itemComponent,Di=Ae.onVisibleChange,cr=vn(Ae,Ta),pi=Yt==="full",Yr=ba(),Li=Go(Yr,null),Vi=Vn(Li,2),bi=Vi[0],xo=Vi[1],Fn=bi||0,mo=Go(Yr,new Map),Ci=Vn(mo,2),jn=Ci[0],Uo=Ci[1],ga=Go(Yr,0),ca=Vn(ga,2),$i=ca[0],yo=ca[1],ta=Go(Yr,0),na=Vn(ta,2),Ha=na[0],wa=na[1],ko=Go(Yr,0),fo=Vn(ko,2),Qo=fo[0],ja=fo[1],Lo=(0,Ie.useState)(null),Ui=Vn(Lo,2),so=Ui[0],ho=Ui[1],Pi=(0,Ie.useState)(null),Zi=Vn(Pi,2),wo=Zi[0],Ea=Zi[1],_r=Ie.useMemo(function(){return wo===null&&pi?Number.MAX_SAFE_INTEGER:wo||0},[wo,bi]),Qr=(0,Ie.useState)(!1),Ro=Vn(Qr,2),Bo=Ro[0],Wo=Ro[1],Za="".concat(ot,"-item"),Ko=Math.max($i,Ha),Oa=On===lo,cs=Ut.length&&Oa,Ws=On===oa,Qa=cs||typeof On=="number"&&Ut.length>On,ds=(0,Ie.useMemo)(function(){var Qi=Ut;return cs?bi===null&&pi?Qi=Ut:Qi=Ut.slice(0,Math.min(Ut.length,Fn/St)):typeof On=="number"&&(Qi=Ut.slice(0,On)),Qi},[Ut,St,bi,On,cs]),ma=(0,Ie.useMemo)(function(){return cs?Ut.slice(_r+1):Ut.slice(ds.length)},[Ut,ds,cs,_r]),Ks=(0,Ie.useCallback)(function(Qi,jo){var io;return typeof fe=="function"?fe(Qi):(io=fe&&(Qi==null?void 0:Qi[fe]))!==null&&io!==void 0?io:jo},[fe]),Rs=(0,Ie.useCallback)(jt||function(Qi){return Qi},[jt]);function tl(Qi,jo,io){wo===Qi&&(jo===void 0||jo===so)||(Ea(Qi),io||(Wo(Qi<Ut.length-1),Di==null||Di(Qi)),jo!==void 0&&ho(jo))}function qi(Qi,jo){xo(jo.clientWidth)}function eo(Qi,jo){Uo(function(io){var La=new Map(io);return jo===null?La.delete(Qi):La.set(Qi,jo),La})}function po(Qi,jo){wa(jo),yo(Ha)}function da(Qi,jo){ja(jo)}function hs(Qi){return jn.get(Ks(ds[Qi],Qi))}Cr(function(){if(Fn&&typeof Ko=="number"&&ds){var Qi=Qo,jo=ds.length,io=jo-1;if(!jo){tl(0,null);return}for(var La=0;La<jo;La+=1){var Cs=hs(La);if(pi&&(Cs=Cs||0),Cs===void 0){tl(La-1,void 0,!0);break}if(Qi+=Cs,io===0&&Qi<=Fn||La===io-1&&Qi+hs(io)<=Fn){tl(io,null);break}else if(Qi+Ko>Fn){tl(La-1,Qi-Cs-Qo+Ha);break}}Wr&&hs(0)+Qo>Fn&&ho(null)}},[Fn,jn,Ha,Qo,Ks,ds]);var Bs=Bo&&!!ma.length,$s={};so!==null&&cs&&($s={position:"absolute",left:so,top:0});var xn={prefixCls:Za,responsive:cs,component:oi,invalidate:Ws},Da=se?function(Qi,jo){var io=Ks(Qi,jo);return Ie.createElement(zr.Provider,{key:io,value:ur(ur({},xn),{},{order:jo,item:Qi,itemKey:io,registerSize:eo,display:jo<=_r})},se(Qi,jo))}:function(Qi,jo){var io=Ks(Qi,jo);return Ie.createElement(xi,ui({},xn,{order:jo,key:io,item:Qi,renderItem:Rs,itemKey:io,registerSize:eo,display:jo<=_r}))},Ja,fs={order:Bs?_r:Number.MAX_SAFE_INTEGER,className:"".concat(Za,"-rest"),registerSize:po,display:Bs};if(br)br&&(Ja=Ie.createElement(zr.Provider,{value:ur(ur({},xn),fs)},br(ma)));else{var jl=Tn||fa;Ja=Ie.createElement(xi,ui({},xn,fs),typeof jl=="function"?jl(ma):jl)}var fl=Ie.createElement(ii,ui({className:It()(!Ws&&ot,wn),style:mn,ref:De},cr),ds.map(Da),Qa?Ja:null,Wr&&Ie.createElement(xi,ui({},xn,{responsive:Oa,responsiveDisabled:!cs,order:_r,className:"".concat(Za,"-suffix"),registerSize:da,display:!0,style:$s}),Wr));return Oa&&(fl=Ie.createElement(tr.Z,{onResize:qi,disabled:!cs},fl)),fl}var qo=Ie.forwardRef(Ka);qo.displayName="Overflow",qo.Item=Co,qo.RESPONSIVE=lo,qo.INVALIDATE=oa;var aa=qo,za=aa,Ar=function(De,qe){var ot,Lt=De.prefixCls,Ut=De.id,jt=De.inputElement,se=De.disabled,fe=De.tabIndex,je=De.autoFocus,St=De.autoComplete,Yt=De.editable,mn=De.activeDescendantId,wn=De.value,On=De.maxLength,Tn=De.onKeyDown,br=De.onMouseDown,Wr=De.onChange,di=De.onPaste,ii=De.onCompositionStart,oi=De.onCompositionEnd,Di=De.onBlur,cr=De.open,pi=De.attrs,Yr=jt||Ie.createElement("input",null),Li=Yr,Vi=Li.ref,bi=Li.props,xo=bi.onKeyDown,Fn=bi.onChange,mo=bi.onMouseDown,Ci=bi.onCompositionStart,jn=bi.onCompositionEnd,Uo=bi.onBlur,ga=bi.style;return"maxLength"in Yr.props,Yr=Ie.cloneElement(Yr,Rt(Rt(Rt({type:"search"},bi),{},{id:Ut,ref:er(qe,Vi),disabled:se,tabIndex:fe,autoComplete:St||"off",autoFocus:je,className:It()("".concat(Lt,"-selection-search-input"),(ot=Yr)===null||ot===void 0||(ot=ot.props)===null||ot===void 0?void 0:ot.className),role:"combobox","aria-expanded":cr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ut,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ut,"_list"),"aria-activedescendant":cr?mn:void 0},pi),{},{value:Yt?wn:"",maxLength:On,readOnly:!Yt,unselectable:Yt?null:"on",style:Rt(Rt({},ga),{},{opacity:Yt?null:0}),onKeyDown:function($i){Tn($i),xo&&xo($i)},onMouseDown:function($i){br($i),mo&&mo($i)},onChange:function($i){Wr($i),Fn&&Fn($i)},onCompositionStart:function($i){ii($i),Ci&&Ci($i)},onCompositionEnd:function($i){oi($i),jn&&jn($i)},onPaste:di,onBlur:function($i){Di($i),Uo&&Uo($i)}})),Yr},us=Ie.forwardRef(Ar),qt=us;function At(Ae){return Array.isArray(Ae)?Ae:Ae!==void 0?[Ae]:[]}var Nr=typeof window!="undefined"&&window.document&&window.document.documentElement,Qt=Nr;function ln(Ae){return Ae!=null}function En(Ae){return!Ae&&Ae!==0}function Xn(Ae){return["string","number"].includes(ft(Ae))}function Rr(Ae){var De=void 0;return Ae&&(Xn(Ae.title)?De=Ae.title.toString():Xn(Ae.label)&&(De=Ae.label.toString())),De}function vi(Ae,De){Qt?Ie.useLayoutEffect(Ae,De):Ie.useEffect(Ae,De)}function ni(Ae){var De;return(De=Ae.key)!==null&&De!==void 0?De:Ae.value}var xr=function(De){De.preventDefault(),De.stopPropagation()},xt=function(De){var qe=De.id,ot=De.prefixCls,Lt=De.values,Ut=De.open,jt=De.searchValue,se=De.autoClearSearchValue,fe=De.inputRef,je=De.placeholder,St=De.disabled,Yt=De.mode,mn=De.showSearch,wn=De.autoFocus,On=De.autoComplete,Tn=De.activeDescendantId,br=De.tabIndex,Wr=De.removeIcon,di=De.maxTagCount,ii=De.maxTagTextLength,oi=De.maxTagPlaceholder,Di=oi===void 0?function(Pi){return"+ ".concat(Pi.length," ...")}:oi,cr=De.tagRender,pi=De.onToggleOpen,Yr=De.onRemove,Li=De.onInputChange,Vi=De.onInputPaste,bi=De.onInputKeyDown,xo=De.onInputMouseDown,Fn=De.onInputCompositionStart,mo=De.onInputCompositionEnd,Ci=De.onInputBlur,jn=Ie.useRef(null),Uo=(0,Ie.useState)(0),ga=Nn(Uo,2),ca=ga[0],$i=ga[1],yo=(0,Ie.useState)(!1),ta=Nn(yo,2),na=ta[0],Ha=ta[1],wa="".concat(ot,"-selection"),ko=Ut||Yt==="multiple"&&se===!1||Yt==="tags"?jt:"",fo=Yt==="tags"||Yt==="multiple"&&se===!1||mn&&(Ut||na);vi(function(){$i(jn.current.scrollWidth)},[ko]);var Qo=function(Zi,wo,Ea,_r,Qr){return Ie.createElement("span",{title:Rr(Zi),className:It()("".concat(wa,"-item"),Ct({},"".concat(wa,"-item-disabled"),Ea))},Ie.createElement("span",{className:"".concat(wa,"-item-content")},wo),_r&&Ie.createElement(Hr,{className:"".concat(wa,"-item-remove"),onMouseDown:xr,onClick:Qr,customizeIcon:Wr},"\xD7"))},ja=function(Zi,wo,Ea,_r,Qr,Ro){var Bo=function(Za){xr(Za),pi(!Ut)};return Ie.createElement("span",{onMouseDown:Bo},cr({label:wo,value:Zi,disabled:Ea,closable:_r,onClose:Qr,isMaxTag:!!Ro}))},Lo=function(Zi){var wo=Zi.disabled,Ea=Zi.label,_r=Zi.value,Qr=!St&&!wo,Ro=Ea;if(typeof ii=="number"&&(typeof Ea=="string"||typeof Ea=="number")){var Bo=String(Ro);Bo.length>ii&&(Ro="".concat(Bo.slice(0,ii),"..."))}var Wo=function(Ko){Ko&&Ko.stopPropagation(),Yr(Zi)};return typeof cr=="function"?ja(_r,Ro,wo,Qr,Wo):Qo(Zi,Ro,wo,Qr,Wo)},Ui=function(Zi){if(!Lt.length)return null;var wo=typeof Di=="function"?Di(Zi):Di;return typeof cr=="function"?ja(void 0,wo,!1,!1,void 0,!0):Qo({title:wo},wo,!1)},so=Ie.createElement("div",{className:"".concat(wa,"-search"),style:{width:ca},onFocus:function(){Ha(!0)},onBlur:function(){Ha(!1)}},Ie.createElement(qt,{ref:fe,open:Ut,prefixCls:ot,id:qe,inputElement:null,disabled:St,autoFocus:wn,autoComplete:On,editable:fo,activeDescendantId:Tn,value:ko,onKeyDown:bi,onMouseDown:xo,onChange:Li,onPaste:Vi,onCompositionStart:Fn,onCompositionEnd:mo,onBlur:Ci,tabIndex:br,attrs:ao(De,!0)}),Ie.createElement("span",{ref:jn,className:"".concat(wa,"-search-mirror"),"aria-hidden":!0},ko,"\xA0")),ho=Ie.createElement(za,{prefixCls:"".concat(wa,"-overflow"),data:Lt,renderItem:Lo,renderRest:Ui,suffix:so,itemKey:ni,maxCount:di});return Ie.createElement("span",{className:"".concat(wa,"-wrap")},ho,!Lt.length&&!ko&&Ie.createElement("span",{className:"".concat(wa,"-placeholder")},je))},Po=xt,zo=function(De){var qe=De.inputElement,ot=De.prefixCls,Lt=De.id,Ut=De.inputRef,jt=De.disabled,se=De.autoFocus,fe=De.autoComplete,je=De.activeDescendantId,St=De.mode,Yt=De.open,mn=De.values,wn=De.placeholder,On=De.tabIndex,Tn=De.showSearch,br=De.searchValue,Wr=De.activeValue,di=De.maxLength,ii=De.onInputKeyDown,oi=De.onInputMouseDown,Di=De.onInputChange,cr=De.onInputPaste,pi=De.onInputCompositionStart,Yr=De.onInputCompositionEnd,Li=De.onInputBlur,Vi=De.title,bi=Ie.useState(!1),xo=Nn(bi,2),Fn=xo[0],mo=xo[1],Ci=St==="combobox",jn=Ci||Tn,Uo=mn[0],ga=br||"";Ci&&Wr&&!Fn&&(ga=Wr),Ie.useEffect(function(){Ci&&mo(!1)},[Ci,Wr]);var ca=St!=="combobox"&&!Yt&&!Tn?!1:!!ga,$i=Vi===void 0?Rr(Uo):Vi,yo=Ie.useMemo(function(){return Uo?null:Ie.createElement("span",{className:"".concat(ot,"-selection-placeholder"),style:ca?{visibility:"hidden"}:void 0},wn)},[Uo,ca,wn,ot]);return Ie.createElement("span",{className:"".concat(ot,"-selection-wrap")},Ie.createElement("span",{className:"".concat(ot,"-selection-search")},Ie.createElement(qt,{ref:Ut,prefixCls:ot,id:Lt,open:Yt,inputElement:qe,disabled:jt,autoFocus:se,autoComplete:fe,editable:jn,activeDescendantId:je,value:ga,onKeyDown:ii,onMouseDown:oi,onChange:function(na){mo(!0),Di(na)},onPaste:cr,onCompositionStart:pi,onCompositionEnd:Yr,onBlur:Li,tabIndex:On,attrs:ao(De,!0),maxLength:Ci?di:void 0})),!Ci&&Uo?Ie.createElement("span",{className:"".concat(ot,"-selection-item"),title:$i,style:ca?{visibility:"hidden"}:void 0},Uo.label):null,yo)},ya=zo,xa=function(De,qe){var ot=(0,Ie.useRef)(null),Lt=(0,Ie.useRef)(!1),Ut=De.prefixCls,jt=De.open,se=De.mode,fe=De.showSearch,je=De.tokenWithEnter,St=De.disabled,Yt=De.prefix,mn=De.autoClearSearchValue,wn=De.onSearch,On=De.onSearchSubmit,Tn=De.onToggleOpen,br=De.onInputKeyDown,Wr=De.onInputBlur,di=De.domRef;Ie.useImperativeHandle(qe,function(){return{focus:function($i){ot.current.focus($i)},blur:function(){ot.current.blur()}}});var ii=Xe(0),oi=Nn(ii,2),Di=oi[0],cr=oi[1],pi=function($i){var yo=$i.which,ta=ot.current instanceof HTMLTextAreaElement;!ta&&jt&&(yo===Sn.UP||yo===Sn.DOWN)&&$i.preventDefault(),br&&br($i),yo===Sn.ENTER&&se==="tags"&&!Lt.current&&!jt&&(On==null||On($i.target.value)),!(ta&&!jt&&~[Sn.UP,Sn.DOWN,Sn.LEFT,Sn.RIGHT].indexOf(yo))&&to(yo)&&Tn(!0)},Yr=function(){cr(!0)},Li=(0,Ie.useRef)(null),Vi=function($i){wn($i,!0,Lt.current)!==!1&&Tn(!0)},bi=function(){Lt.current=!0},xo=function($i){Lt.current=!1,se!=="combobox"&&Vi($i.target.value)},Fn=function($i){var yo=$i.target.value;if(je&&Li.current&&/[\r\n]/.test(Li.current)){var ta=Li.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");yo=yo.replace(ta,Li.current)}Li.current=null,Vi(yo)},mo=function($i){var yo=$i.clipboardData,ta=yo==null?void 0:yo.getData("text");Li.current=ta||""},Ci=function($i){var yo=$i.target;if(yo!==ot.current){var ta=document.body.style.msTouchAction!==void 0;ta?setTimeout(function(){ot.current.focus()}):ot.current.focus()}},jn=function($i){var yo=Di();$i.target!==ot.current&&!yo&&!(se==="combobox"&&St)&&$i.preventDefault(),(se!=="combobox"&&(!fe||!yo)||!jt)&&(jt&&mn!==!1&&wn("",!0,!1),Tn())},Uo={inputRef:ot,onInputKeyDown:pi,onInputMouseDown:Yr,onInputChange:Fn,onInputPaste:mo,onInputCompositionStart:bi,onInputCompositionEnd:xo,onInputBlur:Wr},ga=se==="multiple"||se==="tags"?Ie.createElement(Po,me({},De,Uo)):Ie.createElement(ya,me({},De,Uo));return Ie.createElement("div",{ref:di,className:"".concat(Ut,"-selector"),onClick:Ci,onMouseDown:jn},Yt&&Ie.createElement("div",{className:"".concat(Ut,"-prefix")},Yt),ga)},Sa=Ie.forwardRef(xa),ha=Sa,Gt=ae(98280),fr=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],pr=function(De){var qe=De===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:qe,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:qe,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:qe,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:qe,adjustY:1},htmlRegion:"scroll"}}},Tr=function(De,qe){var ot=De.prefixCls,Lt=De.disabled,Ut=De.visible,jt=De.children,se=De.popupElement,fe=De.animation,je=De.transitionName,St=De.dropdownStyle,Yt=De.dropdownClassName,mn=De.direction,wn=mn===void 0?"ltr":mn,On=De.placement,Tn=De.builtinPlacements,br=De.dropdownMatchSelectWidth,Wr=De.dropdownRender,di=De.dropdownAlign,ii=De.getPopupContainer,oi=De.empty,Di=De.getTriggerDOMNode,cr=De.onPopupVisibleChange,pi=De.onPopupMouseEnter,Yr=pt(De,fr),Li="".concat(ot,"-dropdown"),Vi=se;Wr&&(Vi=Wr(se));var bi=Ie.useMemo(function(){return Tn||pr(br)},[Tn,br]),xo=fe?"".concat(Li,"-").concat(fe):je,Fn=typeof br=="number",mo=Ie.useMemo(function(){return Fn?null:br===!1?"minWidth":"width"},[br,Fn]),Ci=St;Fn&&(Ci=Rt(Rt({},Ci),{},{width:br}));var jn=Ie.useRef(null);return Ie.useImperativeHandle(qe,function(){return{getPopupElement:function(){var ga;return(ga=jn.current)===null||ga===void 0?void 0:ga.popupElement}}}),Ie.createElement(Gt.Z,me({},Yr,{showAction:cr?["click"]:[],hideAction:cr?["click"]:[],popupPlacement:On||(wn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:bi,prefixCls:Li,popupTransitionName:xo,popup:Ie.createElement("div",{onMouseEnter:pi},Vi),ref:jn,stretch:mo,popupAlign:di,popupVisible:Ut,getPopupContainer:ii,popupClassName:It()(Yt,Ct({},"".concat(Li,"-empty"),oi)),popupStyle:Ci,getTriggerDOMNode:Di,onPopupVisibleChange:cr}),jt)},Ln=Ie.forwardRef(Tr),or=Ln;function vr(Ae){return nn(Ae)||Be(Ae)||at(Ae)||un()}function sn(Ae,De){var qe=Ae.key,ot;return"value"in Ae&&(ot=Ae.value),qe!=null?qe:ot!==void 0?ot:"rc-index-key-".concat(De)}function mr(Ae){return typeof Ae!="undefined"&&!Number.isNaN(Ae)}function Vr(Ae,De){var qe=Ae||{},ot=qe.label,Lt=qe.value,Ut=qe.options,jt=qe.groupLabel,se=ot||(De?"children":"label");return{label:se,value:Lt||"value",options:Ut||"options",groupLabel:jt||se}}function no(Ae){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},qe=De.fieldNames,ot=De.childrenAsData,Lt=[],Ut=Vr(qe,!1),jt=Ut.label,se=Ut.value,fe=Ut.options,je=Ut.groupLabel;function St(Yt,mn){Array.isArray(Yt)&&Yt.forEach(function(wn){if(mn||!(fe in wn)){var On=wn[se];Lt.push({key:sn(wn,Lt.length),groupOption:mn,data:wn,label:wn[jt],value:On})}else{var Tn=wn[je];Tn===void 0&&ot&&(Tn=wn.label),Lt.push({key:sn(wn,Lt.length),group:!0,data:wn,label:Tn}),St(wn[fe],!0)}})}return St(Ae,!1),Lt}function Xi(Ae){var De=Rt({},Ae);return"props"in De||Object.defineProperty(De,"props",{get:function(){return vt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),De}}),De}var zi=function(De,qe,ot){if(!qe||!qe.length)return null;var Lt=!1,Ut=function se(fe,je){var St=vr(je),Yt=St[0],mn=St.slice(1);if(!Yt)return[fe];var wn=fe.split(Yt);return Lt=Lt||wn.length>1,wn.reduce(function(On,Tn){return[].concat(gt(On),gt(se(Tn,mn)))},[]).filter(Boolean)},jt=Ut(De,qe);return Lt?typeof ot!="undefined"?jt.slice(0,ot):jt:null},_o=Ie.createContext(null),sa=_o;function Va(Ae){var De=Ae.visible,qe=Ae.values;if(!De)return null;var ot=50;return Ie.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(qe.slice(0,ot).map(function(Lt){var Ut=Lt.label,jt=Lt.value;return["number","string"].includes(ft(Ut))?Ut:jt}).join(", ")),qe.length>ot?", ...":null)}var os=["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"],Zs=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Un=function(De){return De==="tags"||De==="multiple"},ws=Ie.forwardRef(function(Ae,De){var qe,ot=Ae.id,Lt=Ae.prefixCls,Ut=Ae.className,jt=Ae.showSearch,se=Ae.tagRender,fe=Ae.direction,je=Ae.omitDomProps,St=Ae.displayValues,Yt=Ae.onDisplayValuesChange,mn=Ae.emptyOptions,wn=Ae.notFoundContent,On=wn===void 0?"Not Found":wn,Tn=Ae.onClear,br=Ae.mode,Wr=Ae.disabled,di=Ae.loading,ii=Ae.getInputElement,oi=Ae.getRawInputElement,Di=Ae.open,cr=Ae.defaultOpen,pi=Ae.onDropdownVisibleChange,Yr=Ae.activeValue,Li=Ae.onActiveValueChange,Vi=Ae.activeDescendantId,bi=Ae.searchValue,xo=Ae.autoClearSearchValue,Fn=Ae.onSearch,mo=Ae.onSearchSplit,Ci=Ae.tokenSeparators,jn=Ae.allowClear,Uo=Ae.prefix,ga=Ae.suffixIcon,ca=Ae.clearIcon,$i=Ae.OptionList,yo=Ae.animation,ta=Ae.transitionName,na=Ae.dropdownStyle,Ha=Ae.dropdownClassName,wa=Ae.dropdownMatchSelectWidth,ko=Ae.dropdownRender,fo=Ae.dropdownAlign,Qo=Ae.placement,ja=Ae.builtinPlacements,Lo=Ae.getPopupContainer,Ui=Ae.showAction,so=Ui===void 0?[]:Ui,ho=Ae.onFocus,Pi=Ae.onBlur,Zi=Ae.onKeyUp,wo=Ae.onKeyDown,Ea=Ae.onMouseDown,_r=pt(Ae,os),Qr=Un(br),Ro=(jt!==void 0?jt:Qr)||br==="combobox",Bo=Rt({},_r);Zs.forEach(function(Ps){delete Bo[Ps]}),je==null||je.forEach(function(Ps){delete Bo[Ps]});var Wo=Ie.useState(!1),Za=Nn(Wo,2),Ko=Za[0],Oa=Za[1];Ie.useEffect(function(){Oa(In())},[]);var cs=Ie.useRef(null),Ws=Ie.useRef(null),Qa=Ie.useRef(null),ds=Ie.useRef(null),ma=Ie.useRef(null),Ks=Ie.useRef(!1),Rs=bn(),tl=Nn(Rs,3),qi=tl[0],eo=tl[1],po=tl[2];Ie.useImperativeHandle(De,function(){var Ps,Ns;return{focus:(Ps=ds.current)===null||Ps===void 0?void 0:Ps.focus,blur:(Ns=ds.current)===null||Ns===void 0?void 0:Ns.blur,scrollTo:function(Gl){var iu;return(iu=ma.current)===null||iu===void 0?void 0:iu.scrollTo(Gl)},nativeElement:cs.current||Ws.current}});var da=Ie.useMemo(function(){var Ps;if(br!=="combobox")return bi;var Ns=(Ps=St[0])===null||Ps===void 0?void 0:Ps.value;return typeof Ns=="string"||typeof Ns=="number"?String(Ns):""},[bi,br,St]),hs=br==="combobox"&&typeof ii=="function"&&ii()||null,Bs=typeof oi=="function"&&oi(),$s=yn(Ws,Bs==null||(qe=Bs.props)===null||qe===void 0?void 0:qe.ref),xn=Ie.useState(!1),Da=Nn(xn,2),Ja=Da[0],fs=Da[1];zn(function(){fs(!0)},[]);var jl=Wt(!1,{defaultValue:cr,value:Di}),fl=Nn(jl,2),Qi=fl[0],jo=fl[1],io=Ja?Qi:!1,La=!On&&mn;(Wr||La&&io&&br==="combobox")&&(io=!1);var Cs=La?!1:io,Yo=Ie.useCallback(function(Ps){var Ns=Ps!==void 0?Ps:!io;Wr||(jo(Ns),io!==Ns&&(pi==null||pi(Ns)))},[Wr,io,jo,pi]),is=Ie.useMemo(function(){return(Ci||[]).some(function(Ps){return[`
|
|
|
`,`\r
|
|
|
`].includes(Ps)})},[Ci]),Ga=Ie.useContext(sa)||{},$a=Ga.maxCount,Ss=Ga.rawValues,Ms=function(Ns,hu,Gl){if(!(Qr&&mr($a)&&(Ss==null?void 0:Ss.size)>=$a)){var iu=!0,vu=Ns;Li==null||Li(null);var ec=zi(Ns,Ci,mr($a)?$a-Ss.size:void 0),Fu=Gl?null:ec;return br!=="combobox"&&Fu&&(vu="",mo==null||mo(Fu),Yo(!1),iu=!1),Fn&&da!==vu&&Fn(vu,{source:hu?"typing":"effect"}),iu}},cu=function(Ns){!Ns||!Ns.trim()||Fn(Ns,{source:"submit"})};Ie.useEffect(function(){!io&&!Qr&&br!=="combobox"&&Ms("",!1,!1)},[io]),Ie.useEffect(function(){Qi&&Wr&&jo(!1),Wr&&!Ks.current&&eo(!1)},[Wr]);var zu=Xe(),Ts=Nn(zu,2),rs=Ts[0],As=Ts[1],nl=Ie.useRef(!1),Ol=function(Ns){var hu=rs(),Gl=Ns.key,iu=Gl==="Enter";if(iu&&(br!=="combobox"&&Ns.preventDefault(),io||Yo(!0)),As(!!da),Gl==="Backspace"&&!hu&&Qr&&!da&&St.length){for(var vu=gt(St),ec=null,Fu=vu.length-1;Fu>=0;Fu-=1){var jd=vu[Fu];if(!jd.disabled){vu.splice(Fu,1),ec=jd;break}}ec&&Yt(vu,{type:"remove",values:[ec]})}for(var Tc=arguments.length,Gd=new Array(Tc>1?Tc-1:0),kd=1;kd<Tc;kd++)Gd[kd-1]=arguments[kd];if(io&&(!iu||!nl.current)){var wh;iu&&(nl.current=!0),(wh=ma.current)===null||wh===void 0||wh.onKeyDown.apply(wh,[Ns].concat(Gd))}wo==null||wo.apply(void 0,[Ns].concat(Gd))},zl=function(Ns){for(var hu=arguments.length,Gl=new Array(hu>1?hu-1:0),iu=1;iu<hu;iu++)Gl[iu-1]=arguments[iu];if(io){var vu;(vu=ma.current)===null||vu===void 0||vu.onKeyUp.apply(vu,[Ns].concat(Gl))}Ns.key==="Enter"&&(nl.current=!1),Zi==null||Zi.apply(void 0,[Ns].concat(Gl))},Aa=function(Ns){var hu=St.filter(function(Gl){return Gl!==Ns});Yt(hu,{type:"remove",values:[Ns]})},ia=function(){nl.current=!1},rl=Ie.useRef(!1),nu=function(){eo(!0),Wr||(ho&&!rl.current&&ho.apply(void 0,arguments),so.includes("focus")&&Yo(!0)),rl.current=!0},ql=function(){Ks.current=!0,eo(!1,function(){rl.current=!1,Ks.current=!1,Yo(!1)}),!Wr&&(da&&(br==="tags"?Fn(da,{source:"submit"}):br==="multiple"&&Fn("",{source:"blur"})),Pi&&Pi.apply(void 0,arguments))},du=[];Ie.useEffect(function(){return function(){du.forEach(function(Ps){return clearTimeout(Ps)}),du.splice(0,du.length)}},[]);var Rl=function(Ns){var hu,Gl=Ns.target,iu=(hu=Qa.current)===null||hu===void 0?void 0:hu.getPopupElement();if(iu&&iu.contains(Gl)){var vu=setTimeout(function(){var Tc=du.indexOf(vu);if(Tc!==-1&&du.splice(Tc,1),po(),!Ko&&!iu.contains(document.activeElement)){var Gd;(Gd=ds.current)===null||Gd===void 0||Gd.focus()}});du.push(vu)}for(var ec=arguments.length,Fu=new Array(ec>1?ec-1:0),jd=1;jd<ec;jd++)Fu[jd-1]=arguments[jd];Ea==null||Ea.apply(void 0,[Ns].concat(Fu))},Vu=Ie.useState({}),El=Nn(Vu,2),ru=El[1];function Hc(){ru({})}var md;Bs&&(md=function(Ns){Yo(Ns)}),Ji(function(){var Ps;return[cs.current,(Ps=Qa.current)===null||Ps===void 0?void 0:Ps.getPopupElement()]},Cs,Yo,!!Bs);var Jd=Ie.useMemo(function(){return Rt(Rt({},Ae),{},{notFoundContent:On,open:io,triggerOpen:Cs,id:ot,showSearch:Ro,multiple:Qr,toggleOpen:Yo})},[Ae,On,Cs,io,ot,Ro,Qr,Yo]),Hd=!!ga||di,$d;Hd&&($d=Ie.createElement(Hr,{className:It()("".concat(Lt,"-arrow"),Ct({},"".concat(Lt,"-arrow-loading"),di)),customizeIcon:ga,customizeIconProps:{loading:di,searchValue:da,open:io,focused:qi,showSearch:Ro}}));var qd=function(){var Ns;Tn==null||Tn(),(Ns=ds.current)===null||Ns===void 0||Ns.focus(),Yt([],{type:"clear",values:St}),Ms("",!1,!1)},ph=An(Lt,qd,St,jn,ca,Wr,da,br),Xc=ph.allowClear,pl=ph.clearIcon,qs=Ie.createElement($i,{ref:ma}),qu=It()(Lt,Ut,Ct(Ct(Ct(Ct(Ct(Ct(Ct(Ct(Ct(Ct({},"".concat(Lt,"-focused"),qi),"".concat(Lt,"-multiple"),Qr),"".concat(Lt,"-single"),!Qr),"".concat(Lt,"-allow-clear"),jn),"".concat(Lt,"-show-arrow"),Hd),"".concat(Lt,"-disabled"),Wr),"".concat(Lt,"-loading"),di),"".concat(Lt,"-open"),io),"".concat(Lt,"-customize-input"),hs),"".concat(Lt,"-show-search"),Ro)),Wu=Ie.createElement(or,{ref:Qa,disabled:Wr,prefixCls:Lt,visible:Cs,popupElement:qs,animation:yo,transitionName:ta,dropdownStyle:na,dropdownClassName:Ha,direction:fe,dropdownMatchSelectWidth:wa,dropdownRender:ko,dropdownAlign:fo,placement:Qo,builtinPlacements:ja,getPopupContainer:Lo,empty:mn,getTriggerDOMNode:function(Ns){return Ws.current||Ns},onPopupVisibleChange:md,onPopupMouseEnter:Hc},Bs?Ie.cloneElement(Bs,{ref:$s}):Ie.createElement(ha,me({},Ae,{domRef:Ws,prefixCls:Lt,inputElement:hs,ref:ds,id:ot,prefix:Uo,showSearch:Ro,autoClearSearchValue:xo,mode:br,activeDescendantId:Vi,tagRender:se,values:St,open:io,onToggleOpen:Yo,activeValue:Yr,searchValue:da,onSearch:Ms,onSearchSubmit:cu,onRemove:Aa,tokenWithEnter:is,onInputBlur:ia}))),Kl;return Bs?Kl=Wu:Kl=Ie.createElement("div",me({className:qu},Bo,{ref:cs,onMouseDown:Rl,onKeyDown:Ol,onKeyUp:zl,onFocus:nu,onBlur:ql}),Ie.createElement(Va,{visible:qi&&!io,values:St}),Wu,$d,Xc&&pl),Ie.createElement(yi.Provider,{value:Jd},Kl)}),Ds=ws,dl=function(){return null};dl.isSelectOptGroup=!0;var _a=dl,js=function(){return null};js.isSelectOption=!0;var ol=js;function Tl(Ae,De){var qe=Rt({},Ae);return Array.isArray(De)&&De.forEach(function(ot){delete qe[ot]}),qe}var Wa=ae(73299);function vs(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Io=["disabled","title","children","style","className"];function pa(Ae){return typeof Ae=="string"||typeof Ae=="number"}var Ua=function(De,qe){var ot=ri(),Lt=ot.prefixCls,Ut=ot.id,jt=ot.open,se=ot.multiple,fe=ot.mode,je=ot.searchValue,St=ot.toggleOpen,Yt=ot.notFoundContent,mn=ot.onPopupScroll,wn=Ie.useContext(sa),On=wn.maxCount,Tn=wn.flattenOptions,br=wn.onActiveValue,Wr=wn.defaultActiveFirstOption,di=wn.onSelect,ii=wn.menuItemSelectedIcon,oi=wn.rawValues,Di=wn.fieldNames,cr=wn.virtual,pi=wn.direction,Yr=wn.listHeight,Li=wn.listItemHeight,Vi=wn.optionRender,bi="".concat(Lt,"-item"),xo=dr(function(){return Tn},[jt,Tn],function(Ui,so){return so[0]&&Ui[1]!==so[1]}),Fn=Ie.useRef(null),mo=Ie.useMemo(function(){return se&&mr(On)&&(oi==null?void 0:oi.size)>=On},[se,On,oi==null?void 0:oi.size]),Ci=function(so){so.preventDefault()},jn=function(so){var ho;(ho=Fn.current)===null||ho===void 0||ho.scrollTo(typeof so=="number"?{index:so}:so)},Uo=Ie.useCallback(function(Ui){return fe==="combobox"?!1:oi.has(Ui)},[fe,gt(oi).toString(),oi.size]),ga=function(so){for(var ho=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Pi=xo.length,Zi=0;Zi<Pi;Zi+=1){var wo=(so+Zi*ho+Pi)%Pi,Ea=xo[wo]||{},_r=Ea.group,Qr=Ea.data;if(!_r&&!(Qr!=null&&Qr.disabled)&&(Uo(Qr.value)||!mo))return wo}return-1},ca=Ie.useState(function(){return ga(0)}),$i=Nn(ca,2),yo=$i[0],ta=$i[1],na=function(so){var ho=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ta(so);var Pi={source:ho?"keyboard":"mouse"},Zi=xo[so];if(!Zi){br(null,-1,Pi);return}br(Zi.value,so,Pi)};(0,Ie.useEffect)(function(){na(Wr!==!1?ga(0):-1)},[xo.length,je]);var Ha=Ie.useCallback(function(Ui){return fe==="combobox"?String(Ui).toLowerCase()===je.toLowerCase():oi.has(Ui)},[fe,je,gt(oi).toString(),oi.size]);(0,Ie.useEffect)(function(){var Ui=setTimeout(function(){if(!se&&jt&&oi.size===1){var ho=Array.from(oi)[0],Pi=xo.findIndex(function(Zi){var wo=Zi.data;return wo.value===ho});Pi!==-1&&(na(Pi),jn(Pi))}});if(jt){var so;(so=Fn.current)===null||so===void 0||so.scrollTo(void 0)}return function(){return clearTimeout(Ui)}},[jt,je]);var wa=function(so){so!==void 0&&di(so,{selected:!oi.has(so)}),se||St(!1)};if(Ie.useImperativeHandle(qe,function(){return{onKeyDown:function(so){var ho=so.which,Pi=so.ctrlKey;switch(ho){case Sn.N:case Sn.P:case Sn.UP:case Sn.DOWN:{var Zi=0;if(ho===Sn.UP?Zi=-1:ho===Sn.DOWN?Zi=1:vs()&&Pi&&(ho===Sn.N?Zi=1:ho===Sn.P&&(Zi=-1)),Zi!==0){var wo=ga(yo+Zi,Zi);jn(wo),na(wo,!0)}break}case Sn.TAB:case Sn.ENTER:{var Ea,_r=xo[yo];_r&&!(_r!=null&&(Ea=_r.data)!==null&&Ea!==void 0&&Ea.disabled)&&!mo?wa(_r.value):wa(void 0),jt&&so.preventDefault();break}case Sn.ESC:St(!1),jt&&so.stopPropagation()}},onKeyUp:function(){},scrollTo:function(so){jn(so)}}}),xo.length===0)return Ie.createElement("div",{role:"listbox",id:"".concat(Ut,"_list"),className:"".concat(bi,"-empty"),onMouseDown:Ci},Yt);var ko=Object.keys(Di).map(function(Ui){return Di[Ui]}),fo=function(so){return so.label};function Qo(Ui,so){var ho=Ui.group;return{role:ho?"presentation":"option",id:"".concat(Ut,"_list_").concat(so)}}var ja=function(so){var ho=xo[so];if(!ho)return null;var Pi=ho.data||{},Zi=Pi.value,wo=ho.group,Ea=ao(Pi,!0),_r=fo(ho);return ho?Ie.createElement("div",me({"aria-label":typeof _r=="string"&&!wo?_r:null},Ea,{key:so},Qo(ho,so),{"aria-selected":Ha(Zi)}),Zi):null},Lo={role:"listbox",id:"".concat(Ut,"_list")};return Ie.createElement(Ie.Fragment,null,cr&&Ie.createElement("div",me({},Lo,{style:{height:0,width:0,overflow:"hidden"}}),ja(yo-1),ja(yo),ja(yo+1)),Ie.createElement(Wa.Z,{itemKey:"key",ref:Fn,data:xo,height:Yr,itemHeight:Li,fullHeight:!1,onMouseDown:Ci,onScroll:mn,virtual:cr,direction:pi,innerProps:cr?null:Lo},function(Ui,so){var ho=Ui.group,Pi=Ui.groupOption,Zi=Ui.data,wo=Ui.label,Ea=Ui.value,_r=Zi.key;if(ho){var Qr,Ro=(Qr=Zi.title)!==null&&Qr!==void 0?Qr:pa(wo)?wo.toString():void 0;return Ie.createElement("div",{className:It()(bi,"".concat(bi,"-group"),Zi.className),title:Ro},wo!==void 0?wo:_r)}var Bo=Zi.disabled,Wo=Zi.title,Za=Zi.children,Ko=Zi.style,Oa=Zi.className,cs=pt(Zi,Io),Ws=Tl(cs,ko),Qa=Uo(Ea),ds=Bo||!Qa&&mo,ma="".concat(bi,"-option"),Ks=It()(bi,ma,Oa,Ct(Ct(Ct(Ct({},"".concat(ma,"-grouped"),Pi),"".concat(ma,"-active"),yo===so&&!ds),"".concat(ma,"-disabled"),ds),"".concat(ma,"-selected"),Qa)),Rs=fo(Ui),tl=!ii||typeof ii=="function"||Qa,qi=typeof Rs=="number"?Rs:Rs||Ea,eo=pa(qi)?qi.toString():void 0;return Wo!==void 0&&(eo=Wo),Ie.createElement("div",me({},ao(Ws),cr?{}:Qo(Ui,so),{"aria-selected":Ha(Ea),className:Ks,title:eo,onMouseMove:function(){yo===so||ds||na(so)},onClick:function(){ds||wa(Ea)},style:Ko}),Ie.createElement("div",{className:"".concat(ma,"-content")},typeof Vi=="function"?Vi(Ui,{index:so}):qi),Ie.isValidElement(ii)||Qa,tl&&Ie.createElement(Hr,{className:"".concat(bi,"-option-state"),customizeIcon:ii,customizeIconProps:{value:Ea,disabled:ds,isSelected:Qa}},Qa?"\u2713":null))}))},as=Ie.forwardRef(Ua),Bi=as,Xs=function(Ae,De){var qe=Ie.useRef({values:new Map,options:new Map}),ot=Ie.useMemo(function(){var Ut=qe.current,jt=Ut.values,se=Ut.options,fe=Ae.map(function(Yt){if(Yt.label===void 0){var mn;return Rt(Rt({},Yt),{},{label:(mn=jt.get(Yt.value))===null||mn===void 0?void 0:mn.label})}return Yt}),je=new Map,St=new Map;return fe.forEach(function(Yt){je.set(Yt.value,Yt),St.set(Yt.value,De.get(Yt.value)||se.get(Yt.value))}),qe.current.values=je,qe.current.options=St,fe},[Ae,De]),Lt=Ie.useCallback(function(Ut){return De.get(Ut)||qe.current.options.get(Ut)},[De]);return[ot,Lt]};function Ls(Ae,De){return At(Ae).join("").toUpperCase().includes(De)}var Gs=function(Ae,De,qe,ot,Lt){return Ie.useMemo(function(){if(!qe||ot===!1)return Ae;var Ut=De.options,jt=De.label,se=De.value,fe=[],je=typeof ot=="function",St=qe.toUpperCase(),Yt=je?ot:function(wn,On){return Lt?Ls(On[Lt],St):On[Ut]?Ls(On[jt!=="children"?jt:"label"],St):Ls(On[se],St)},mn=je?function(wn){return Xi(wn)}:function(wn){return wn};return Ae.forEach(function(wn){if(wn[Ut]){var On=Yt(qe,mn(wn));if(On)fe.push(wn);else{var Tn=wn[Ut].filter(function(br){return Yt(qe,mn(br))});Tn.length&&fe.push(Rt(Rt({},wn),{},Ct({},Ut,Tn)))}return}Yt(qe,mn(wn))&&fe.push(wn)}),fe},[Ae,ot,Lt,qe,De])},vl=0,Ml=Bn();function ci(){var Ae;return Ml?(Ae=vl,vl+=1):Ae="TEST_OR_SSR",Ae}function zs(Ae){var De=Ie.useState(),qe=Nn(De,2),ot=qe[0],Lt=qe[1];return Ie.useEffect(function(){Lt("rc_select_".concat(ci()))},[]),Ae||ot}function Vs(Ae){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},qe=[];return Ie.Children.forEach(Ae,function(ot){ot==null&&!De.keepEmpty||(Array.isArray(ot)?qe=qe.concat(Vs(ot)):(0,Kn.isFragment)(ot)&&ot.props?qe=qe.concat(Vs(ot.props.children,De)):qe.push(ot))}),qe}var Ul=["children","value"],Qs=["children"];function Dl(Ae){var De=Ae,qe=De.key,ot=De.props,Lt=ot.children,Ut=ot.value,jt=pt(ot,Ul);return Rt({key:qe,value:Ut!==void 0?Ut:qe,children:Lt},jt)}function la(Ae){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Vs(Ae).map(function(qe,ot){if(!Ie.isValidElement(qe)||!qe.type)return null;var Lt=qe,Ut=Lt.type.isSelectOptGroup,jt=Lt.key,se=Lt.props,fe=se.children,je=pt(se,Qs);return De||!Ut?Dl(qe):Rt(Rt({key:"__RC_SELECT_GRP__".concat(jt===null?ot:jt,"__"),label:jt},je),{},{options:la(fe)})}).filter(function(qe){return qe})}var gu=function(De,qe,ot,Lt,Ut){return Ie.useMemo(function(){var jt=De,se=!De;se&&(jt=la(qe));var fe=new Map,je=new Map,St=function(wn,On,Tn){Tn&&typeof Tn=="string"&&wn.set(On[Tn],On)},Yt=function mn(wn){for(var On=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Tn=0;Tn<wn.length;Tn+=1){var br=wn[Tn];!br[ot.options]||On?(fe.set(br[ot.value],br),St(je,br,ot.label),St(je,br,Lt),St(je,br,Ut)):mn(br[ot.options],!0)}};return Yt(jt),{options:jt,valueOptions:fe,labelOptions:je}},[De,qe,ot,Lt,Ut])},Pl=gu;function Is(Ae){var De=Ie.useRef();De.current=Ae;var qe=Ie.useCallback(function(){return De.current.apply(De,arguments)},[]);return qe}function eu(Ae){var De=Ae.mode,qe=Ae.options,ot=Ae.children,Lt=Ae.backfill,Ut=Ae.allowClear,jt=Ae.placeholder,se=Ae.getInputElement,fe=Ae.showSearch,je=Ae.onSearch,St=Ae.defaultOpen,Yt=Ae.autoFocus,mn=Ae.labelInValue,wn=Ae.value,On=Ae.inputValue,Tn=Ae.optionLabelProp,br=isMultiple(De),Wr=fe!==void 0?fe:br||De==="combobox",di=qe||convertChildrenToData(ot);if(warning(De!=="tags"||di.every(function(cr){return!cr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),De==="tags"||De==="combobox"){var ii=di.some(function(cr){return cr.options?cr.options.some(function(pi){return typeof("value"in pi?pi.value:pi.key)=="number"}):typeof("value"in cr?cr.value:cr.key)=="number"});warning(!ii,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(De!=="combobox"||!Tn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(De==="combobox"||!Lt,"`backfill` only works with `combobox` mode."),warning(De==="combobox"||!se,"`getInputElement` only work with `combobox` mode."),noteOnce(De!=="combobox"||!se||!Ut||!jt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),je&&!Wr&&De!=="combobox"&&De!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!St||Yt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),wn!=null){var oi=toArray(wn);warning(!mn||oi.every(function(cr){return _typeof(cr)==="object"&&("key"in cr||"value"in cr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!br||Array.isArray(wn),"`value` should be array when `mode` is `multiple` or `tags`")}if(ot){var Di=null;toNodeArray(ot).some(function(cr){if(!React.isValidElement(cr)||!cr.type)return!1;var pi=cr,Yr=pi.type;if(Yr.isSelectOption)return!1;if(Yr.isSelectOptGroup){var Li=toNodeArray(cr.props.children).every(function(Vi){return!React.isValidElement(Vi)||!cr.type||Vi.type.isSelectOption?!0:(Di=Vi.type,!1)});return!Li}return Di=Yr,!0}),Di&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Di.displayName||Di.name||Di,"`.")),warning(On===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Hu(Ae,De){if(Ae){var qe=function ot(Lt){for(var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,jt=0;jt<Lt.length;jt++){var se=Lt[jt];if(se[De==null?void 0:De.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Ut&&Array.isArray(se[De==null?void 0:De.options])&&ot(se[De==null?void 0:De.options],!0))break}};qe(Ae)}}var cc=null,Il=["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"],al=["inputValue"];function Dc(Ae){return!Ae||ft(Ae)!=="object"}var Fc=Ie.forwardRef(function(Ae,De){var qe=Ae.id,ot=Ae.mode,Lt=Ae.prefixCls,Ut=Lt===void 0?"rc-select":Lt,jt=Ae.backfill,se=Ae.fieldNames,fe=Ae.inputValue,je=Ae.searchValue,St=Ae.onSearch,Yt=Ae.autoClearSearchValue,mn=Yt===void 0?!0:Yt,wn=Ae.onSelect,On=Ae.onDeselect,Tn=Ae.dropdownMatchSelectWidth,br=Tn===void 0?!0:Tn,Wr=Ae.filterOption,di=Ae.filterSort,ii=Ae.optionFilterProp,oi=Ae.optionLabelProp,Di=Ae.options,cr=Ae.optionRender,pi=Ae.children,Yr=Ae.defaultActiveFirstOption,Li=Ae.menuItemSelectedIcon,Vi=Ae.virtual,bi=Ae.direction,xo=Ae.listHeight,Fn=xo===void 0?200:xo,mo=Ae.listItemHeight,Ci=mo===void 0?20:mo,jn=Ae.labelRender,Uo=Ae.value,ga=Ae.defaultValue,ca=Ae.labelInValue,$i=Ae.onChange,yo=Ae.maxCount,ta=pt(Ae,Il),na=zs(qe),Ha=Un(ot),wa=!!(!Di&&pi),ko=Ie.useMemo(function(){return Wr===void 0&&ot==="combobox"?!1:Wr},[Wr,ot]),fo=Ie.useMemo(function(){return Vr(se,wa)},[JSON.stringify(se),wa]),Qo=Wt("",{value:je!==void 0?je:fe,postState:function(is){return is||""}}),ja=Nn(Qo,2),Lo=ja[0],Ui=ja[1],so=Pl(Di,pi,fo,ii,oi),ho=so.valueOptions,Pi=so.labelOptions,Zi=so.options,wo=Ie.useCallback(function(Yo){var is=At(Yo);return is.map(function(Ga){var $a,Ss,Ms,cu,zu;if(Dc(Ga))$a=Ga;else{var Ts;Ms=Ga.key,Ss=Ga.label,$a=(Ts=Ga.value)!==null&&Ts!==void 0?Ts:Ms}var rs=ho.get($a);if(rs){var As;if(Ss===void 0&&(Ss=rs==null?void 0:rs[oi||fo.label]),Ms===void 0&&(Ms=(As=rs==null?void 0:rs.key)!==null&&As!==void 0?As:$a),cu=rs==null?void 0:rs.disabled,zu=rs==null?void 0:rs.title,0)var nl}return{label:Ss,value:$a,key:Ms,disabled:cu,title:zu}})},[fo,oi,ho]),Ea=Wt(ga,{value:Uo}),_r=Nn(Ea,2),Qr=_r[0],Ro=_r[1],Bo=Ie.useMemo(function(){var Yo,is=Ha&&Qr===null?[]:Qr,Ga=wo(is);return ot==="combobox"&&En((Yo=Ga[0])===null||Yo===void 0?void 0:Yo.value)?[]:Ga},[Qr,wo,ot,Ha]),Wo=Xs(Bo,ho),Za=Nn(Wo,2),Ko=Za[0],Oa=Za[1],cs=Ie.useMemo(function(){if(!ot&&Ko.length===1){var Yo=Ko[0];if(Yo.value===null&&(Yo.label===null||Yo.label===void 0))return[]}return Ko.map(function(is){var Ga;return Rt(Rt({},is),{},{label:(Ga=typeof jn=="function"?jn(is):is.label)!==null&&Ga!==void 0?Ga:is.value})})},[ot,Ko,jn]),Ws=Ie.useMemo(function(){return new Set(Ko.map(function(Yo){return Yo.value}))},[Ko]);Ie.useEffect(function(){if(ot==="combobox"){var Yo,is=(Yo=Ko[0])===null||Yo===void 0?void 0:Yo.value;Ui(ln(is)?String(is):"")}},[Ko]);var Qa=Is(function(Yo,is){var Ga=is!=null?is:Yo;return Ct(Ct({},fo.value,Yo),fo.label,Ga)}),ds=Ie.useMemo(function(){if(ot!=="tags")return Zi;var Yo=gt(Zi),is=function($a){return ho.has($a)};return gt(Ko).sort(function(Ga,$a){return Ga.value<$a.value?-1:1}).forEach(function(Ga){var $a=Ga.value;is($a)||Yo.push(Qa($a,Ga.label))}),Yo},[Qa,Zi,ho,Ko,ot]),ma=Gs(ds,fo,Lo,ko,ii),Ks=Ie.useMemo(function(){return ot!=="tags"||!Lo||ma.some(function(Yo){return Yo[ii||"value"]===Lo})||ma.some(function(Yo){return Yo[fo.value]===Lo})?ma:[Qa(Lo)].concat(gt(ma))},[Qa,ii,ot,ma,Lo,fo]),Rs=function Yo(is){var Ga=gt(is).sort(function($a,Ss){return di($a,Ss,{searchValue:Lo})});return Ga.map(function($a){return Array.isArray($a.options)?Rt(Rt({},$a),{},{options:$a.options.length>0?Yo($a.options):$a.options}):$a})},tl=Ie.useMemo(function(){return di?Rs(Ks):Ks},[Ks,di,Lo]),qi=Ie.useMemo(function(){return no(tl,{fieldNames:fo,childrenAsData:wa})},[tl,fo,wa]),eo=function(is){var Ga=wo(is);if(Ro(Ga),$i&&(Ga.length!==Ko.length||Ga.some(function(Ms,cu){var zu;return((zu=Ko[cu])===null||zu===void 0?void 0:zu.value)!==(Ms==null?void 0:Ms.value)}))){var $a=ca?Ga:Ga.map(function(Ms){return Ms.value}),Ss=Ga.map(function(Ms){return Xi(Oa(Ms.value))});$i(Ha?$a:$a[0],Ha?Ss:Ss[0])}},po=Ie.useState(null),da=Nn(po,2),hs=da[0],Bs=da[1],$s=Ie.useState(0),xn=Nn($s,2),Da=xn[0],Ja=xn[1],fs=Yr!==void 0?Yr:ot!=="combobox",jl=Ie.useCallback(function(Yo,is){var Ga=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},$a=Ga.source,Ss=$a===void 0?"keyboard":$a;Ja(is),jt&&ot==="combobox"&&Yo!==null&&Ss==="keyboard"&&Bs(String(Yo))},[jt,ot]),fl=function(is,Ga,$a){var Ss=function(){var Aa,ia=Oa(is);return[ca?{label:ia==null?void 0:ia[fo.label],value:is,key:(Aa=ia==null?void 0:ia.key)!==null&&Aa!==void 0?Aa:is}:is,Xi(ia)]};if(Ga&&wn){var Ms=Ss(),cu=Nn(Ms,2),zu=cu[0],Ts=cu[1];wn(zu,Ts)}else if(!Ga&&On&&$a!=="clear"){var rs=Ss(),As=Nn(rs,2),nl=As[0],Ol=As[1];On(nl,Ol)}},Qi=Is(function(Yo,is){var Ga,$a=Ha?is.selected:!0;$a?Ga=Ha?[].concat(gt(Ko),[Yo]):[Yo]:Ga=Ko.filter(function(Ss){return Ss.value!==Yo}),eo(Ga),fl(Yo,$a),ot==="combobox"?Bs(""):(!Un||mn)&&(Ui(""),Bs(""))}),jo=function(is,Ga){eo(is);var $a=Ga.type,Ss=Ga.values;($a==="remove"||$a==="clear")&&Ss.forEach(function(Ms){fl(Ms.value,!1,$a)})},io=function(is,Ga){if(Ui(is),Bs(null),Ga.source==="submit"){var $a=(is||"").trim();if($a){var Ss=Array.from(new Set([].concat(gt(Ws),[$a])));eo(Ss),fl($a,!0),Ui("")}return}Ga.source!=="blur"&&(ot==="combobox"&&eo(is),St==null||St(is))},La=function(is){var Ga=is;ot!=="tags"&&(Ga=is.map(function(Ss){var Ms=Pi.get(Ss);return Ms==null?void 0:Ms.value}).filter(function(Ss){return Ss!==void 0}));var $a=Array.from(new Set([].concat(gt(Ws),gt(Ga))));eo($a),$a.forEach(function(Ss){fl(Ss,!0)})},Cs=Ie.useMemo(function(){var Yo=Vi!==!1&&br!==!1;return Rt(Rt({},so),{},{flattenOptions:qi,onActiveValue:jl,defaultActiveFirstOption:fs,onSelect:Qi,menuItemSelectedIcon:Li,rawValues:Ws,fieldNames:fo,virtual:Yo,direction:bi,listHeight:Fn,listItemHeight:Ci,childrenAsData:wa,maxCount:yo,optionRender:cr})},[yo,so,qi,jl,fs,Qi,Li,Ws,fo,Vi,br,bi,Fn,Ci,wa,cr]);return Ie.createElement(sa.Provider,{value:Cs},Ie.createElement(Ds,me({},ta,{id:na,prefixCls:Ut,ref:De,omitDomProps:al,mode:ot,displayValues:cs,onDisplayValuesChange:jo,direction:bi,searchValue:Lo,onSearch:io,autoClearSearchValue:mn,onSearchSplit:La,dropdownMatchSelectWidth:br,OptionList:Bi,emptyOptions:!qi.length,activeValue:hs,activeDescendantId:"".concat(na,"_list_").concat(Da)})))}),rc=Fc;rc.Option=ol,rc.OptGroup=_a;var Bc=null,Iu=null;function Al(Ae){var De=Ie.useRef();De.current=Ae;var qe=Ie.useCallback(function(){for(var ot,Lt=arguments.length,Ut=new Array(Lt),jt=0;jt<Lt;jt++)Ut[jt]=arguments[jt];return(ot=De.current)===null||ot===void 0?void 0:ot.call.apply(ot,[De].concat(Ut))},[]);return qe}function Fl(Ae){if(Array.isArray(Ae))return Ae}function Ju(Ae,De){var qe=Ae==null?null:typeof Symbol!="undefined"&&Ae[Symbol.iterator]||Ae["@@iterator"];if(qe!=null){var ot,Lt,Ut,jt,se=[],fe=!0,je=!1;try{if(Ut=(qe=qe.call(Ae)).next,De===0){if(Object(qe)!==qe)return;fe=!1}else for(;!(fe=(ot=Ut.call(qe)).done)&&(se.push(ot.value),se.length!==De);fe=!0);}catch(St){je=!0,Lt=St}finally{try{if(!fe&&qe.return!=null&&(jt=qe.return(),Object(jt)!==jt))return}finally{if(je)throw Lt}}return se}}function _c(Ae,De){(De==null||De>Ae.length)&&(De=Ae.length);for(var qe=0,ot=new Array(De);qe<De;qe++)ot[qe]=Ae[qe];return ot}function $u(Ae,De){if(Ae){if(typeof Ae=="string")return _c(Ae,De);var qe=Object.prototype.toString.call(Ae).slice(8,-1);if(qe==="Object"&&Ae.constructor&&(qe=Ae.constructor.name),qe==="Map"||qe==="Set")return Array.from(Ae);if(qe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(qe))return _c(Ae,De)}}function od(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yl(Ae,De){return Fl(Ae)||Ju(Ae,De)||$u(Ae,De)||od()}function fd(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var pd=fd()?Ie.useLayoutEffect:Ie.useEffect,Uc=function(De,qe){var ot=Ie.useRef(!0);pd(function(){return De(ot.current)},qe),pd(function(){return ot.current=!1,function(){ot.current=!0}},[])},ic=function(De,qe){Uc(function(ot){if(!ot)return De()},qe)},lu=null;function mu(Ae){var De=Ie.useRef(!1),qe=Ie.useState(Ae),ot=yl(qe,2),Lt=ot[0],Ut=ot[1];Ie.useEffect(function(){return De.current=!1,function(){De.current=!0}},[]);function jt(se,fe){fe&&De.current||Ut(se)}return[Lt,jt]}function kl(Ae){return Ae!==void 0}function Hl(Ae,De){var qe=De||{},ot=qe.defaultValue,Lt=qe.value,Ut=qe.onChange,jt=qe.postState,se=mu(function(){return kl(Lt)?Lt:kl(ot)?typeof ot=="function"?ot():ot:typeof Ae=="function"?Ae():Ae}),fe=yl(se,2),je=fe[0],St=fe[1],Yt=Lt!==void 0?Lt:je,mn=jt?jt(Yt):Yt,wn=Al(Ut),On=mu([Yt]),Tn=yl(On,2),br=Tn[0],Wr=Tn[1];ic(function(){var ii=br[0];je!==ii&&wn(je,ii)},[br]),ic(function(){kl(Lt)||St(Lt)},[Lt]);var di=Al(function(ii,oi){St(ii,oi),Wr([Yt],oi)});return[mn,di]}var Yc=Ie.createContext({}),Wl=Yc,hl="__rc_cascader_search_mark__",ad=function(De,qe,ot){var Lt=ot.label,Ut=Lt===void 0?"":Lt;return qe.some(function(jt){return String(jt[Ut]).toLowerCase().includes(De.toLowerCase())})},oc=function(De,qe,ot,Lt){return qe.map(function(Ut){return Ut[Lt.label]}).join(" / ")},ju=function(De,qe,ot,Lt,Ut,jt){var se=Ut.filter,fe=se===void 0?ad:se,je=Ut.render,St=je===void 0?oc:je,Yt=Ut.limit,mn=Yt===void 0?50:Yt,wn=Ut.sort;return Ie.useMemo(function(){var On=[];if(!De)return[];function Tn(br,Wr){var di=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;br.forEach(function(ii){if(!(!wn&&mn!==!1&&mn>0&&On.length>=mn)){var oi=[].concat(_t(Wr),[ii]),Di=ii[ot.children],cr=di||ii.disabled;if((!Di||Di.length===0||jt)&&fe(De,oi,{label:ot.label})){var pi;On.push(_e(_e({},ii),{},(pi={disabled:cr},tt(pi,ot.label,St(De,oi,Lt,ot)),tt(pi,hl,oi),tt(pi,ot.children,void 0),pi)))}Di&&Tn(ii[ot.children],oi,cr)}})}return Tn(qe,[]),wn&&On.sort(function(br,Wr){return wn(br[hl],Wr[hl],De,ot)}),mn!==!1&&mn>0?On.slice(0,mn):On},[De,qe,ot,Lt,St,jt,fe,wn,mn])},No=ju,xc="__RC_CASCADER_SPLIT__",gn="SHOW_PARENT",Mr="SHOW_CHILD";function Cu(Ae){return Ae.join(xc)}function dc(Ae){return Ae.map(Cu)}function hc(Ae){return Ae.split(xc)}function yu(Ae){var De=Ae||{},qe=De.label,ot=De.value,Lt=De.children,Ut=ot||"value";return{label:qe||"label",value:Ut,key:Ut,children:Lt||"children"}}function Tu(Ae,De){var qe,ot;return(qe=Ae.isLeaf)!==null&&qe!==void 0?qe:!((ot=Ae[De.children])!==null&&ot!==void 0&&ot.length)}function fc(Ae){var De=Ae.parentElement;if(De){var qe=Ae.offsetTop-De.offsetTop;qe-De.scrollTop<0?De.scrollTo({top:qe}):qe+Ae.offsetHeight-De.scrollTop>De.offsetHeight&&De.scrollTo({top:qe+Ae.offsetHeight-De.offsetHeight})}}function Du(Ae,De){return Ae.map(function(qe){var ot;return(ot=qe[hl])===null||ot===void 0?void 0:ot.map(function(Lt){return Lt[De.value]})})}function ml(Ae){return Array.isArray(Ae)&&Array.isArray(Ae[0])}function ua(Ae){return Ae?ml(Ae)?Ae:(Ae.length===0?[]:[Ae]).map(function(De){return Array.isArray(De)?De:[De]}):[]}function Ql(Ae,De,qe){var ot=new Set(Ae),Lt=De();return Ae.filter(function(Ut){var jt=Lt[Ut],se=jt?jt.parent:null,fe=jt?jt.children:null;return jt&&jt.node.disabled?!0:qe===Mr?!(fe&&fe.some(function(je){return je.key&&ot.has(je.key)})):!(se&&!se.node.disabled&&ot.has(se.key))})}function Jl(Ae,De,qe){for(var ot=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Lt=De,Ut=[],jt=function(){var je,St,Yt,mn=Ae[se],wn=(je=Lt)===null||je===void 0?void 0:je.findIndex(function(Tn){var br=Tn[qe.value];return ot?String(br)===String(mn):br===mn}),On=wn!==-1?(St=Lt)===null||St===void 0?void 0:St[wn]:null;Ut.push({value:(Yt=On==null?void 0:On[qe.value])!==null&&Yt!==void 0?Yt:mn,index:wn,option:On}),Lt=On==null?void 0:On[qe.children]},se=0;se<Ae.length;se+=1)jt();return Ut}var el=function(Ae,De,qe,ot,Lt){return Ie.useMemo(function(){var Ut=Lt||function(jt){var se=ot?jt.slice(-1):jt,fe=" / ";return se.every(function(je){return["string","number"].includes(Pe(je))})?se.join(fe):se.reduce(function(je,St,Yt){var mn=Ie.isValidElement(St)?Ie.cloneElement(St,{key:Yt}):St;return Yt===0?[mn]:[].concat(_t(je),[fe,mn])},[])};return Ae.map(function(jt){var se,fe=Jl(jt,De,qe),je=Ut(fe.map(function(Yt){var mn,wn=Yt.option,On=Yt.value;return(mn=wn==null?void 0:wn[qe.label])!==null&&mn!==void 0?mn:On}),fe.map(function(Yt){var mn=Yt.option;return mn})),St=Cu(jt);return{label:je,value:St,key:St,valueCells:jt,disabled:(se=fe[fe.length-1])===null||se===void 0||(se=se.option)===null||se===void 0?void 0:se.disabled}})},[Ae,De,qe,Lt,ot])};function ns(Ae,De){return Ie.useCallback(function(qe){var ot=[],Lt=[];return qe.forEach(function(Ut){var jt=Jl(Ut,Ae,De);jt.every(function(se){return se.option})?Lt.push(Ut):ot.push(Ut)}),[Lt,ot]},[Ae,De])}var Nl=ae(1089),Au=function(Ae,De){var qe=Ie.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),ot=Ie.useCallback(function(){return qe.current.options!==Ae&&(qe.current.options=Ae,qe.current.info=(0,Nl.I8)(Ae,{fieldNames:De,initWrapper:function(Ut){return _e(_e({},Ut),{},{pathKeyEntities:{}})},processEntity:function(Ut,jt){var se=Ut.nodes.map(function(fe){return fe[De.value]}).join(xc);jt.pathKeyEntities[se]=Ut,Ut.key=se}})),qe.current.info.pathKeyEntities},[De,Ae]);return ot};function ll(Ae,De){var qe=Ie.useMemo(function(){return De||[]},[De]),ot=Au(qe,Ae),Lt=Ie.useCallback(function(Ut){var jt=ot();return Ut.map(function(se){var fe=jt[se].nodes;return fe.map(function(je){return je[Ae.value]})})},[ot,Ae]);return[qe,ot,Lt]}var uu={},$l=[],ac=function(De){$l.push(De)};function ks(Ae,De){if(0)var qe}function tu(Ae,De){if(0)var qe}function ys(){uu={}}function Js(Ae,De,qe){!De&&!uu[qe]&&(Ae(!1,qe),uu[qe]=!0)}function ul(Ae,De){Js(ks,Ae,De)}function Sl(Ae,De){Js(tu,Ae,De)}ul.preMessage=ac,ul.resetWarned=ys,ul.noteOnce=Sl;var Fs=null;function wc(Ae){return Ie.useMemo(function(){if(!Ae)return[!1,{}];var De={matchInputWidth:!0,limit:50};return Ae&&Pe(Ae)==="object"&&(De=_e(_e({},De),Ae)),De.limit<=0&&(De.limit=!1),[!0,De]},[Ae])}var Ti=ae(17341);function Cc(Ae,De,qe,ot,Lt,Ut,jt,se){return function(fe){if(!Ae)De(fe);else{var je=Cu(fe),St=dc(qe),Yt=dc(ot),mn=St.includes(je),wn=Lt.some(function(cr){return Cu(cr)===je}),On=qe,Tn=Lt;if(wn&&!mn)Tn=Lt.filter(function(cr){return Cu(cr)!==je});else{var br=mn?St.filter(function(cr){return cr!==je}):[].concat(_t(St),[je]),Wr=Ut(),di;if(mn){var ii=(0,Ti.S)(br,{checked:!1,halfCheckedKeys:Yt},Wr);di=ii.checkedKeys}else{var oi=(0,Ti.S)(br,!0,Wr);di=oi.checkedKeys}var Di=Ql(di,Ut,se);On=jt(Di)}De([].concat(_t(Tn),_t(On)))}}}function ms(Ae,De,qe,ot,Lt){return Ie.useMemo(function(){var Ut=Lt(De),jt=de(Ut,2),se=jt[0],fe=jt[1];if(!Ae||!De.length)return[se,[],fe];var je=dc(se),St=qe(),Yt=(0,Ti.S)(je,!0,St),mn=Yt.checkedKeys,wn=Yt.halfCheckedKeys;return[ot(mn),ot(wn),fe]},[Ae,De,qe,ot,Lt])}var Id=Ie.memo(function(Ae){var De=Ae.children;return De},function(Ae,De){return!De.open}),sc=Id;function Zc(Ae){var De,qe=Ae.prefixCls,ot=Ae.checked,Lt=Ae.halfChecked,Ut=Ae.disabled,jt=Ae.onClick,se=Ae.disableCheckbox,fe=Ie.useContext(Wl),je=fe.checkable,St=typeof je!="boolean"?je:null;return Ie.createElement("span",{className:It()("".concat(qe),(De={},tt(De,"".concat(qe,"-checked"),ot),tt(De,"".concat(qe,"-indeterminate"),!ot&&Lt),tt(De,"".concat(qe,"-disabled"),Ut||se),De)),onClick:jt},St)}var gd="__cascader_fix_label__";function Gu(Ae){var De=Ae.prefixCls,qe=Ae.multiple,ot=Ae.options,Lt=Ae.activeValue,Ut=Ae.prevValuePath,jt=Ae.onToggleOpen,se=Ae.onSelect,fe=Ae.onActive,je=Ae.checkedSet,St=Ae.halfCheckedSet,Yt=Ae.loadingKeys,mn=Ae.isSelectable,wn=Ae.disabled,On="".concat(De,"-menu"),Tn="".concat(De,"-menu-item"),br=Ie.useContext(Wl),Wr=br.fieldNames,di=br.changeOnSelect,ii=br.expandTrigger,oi=br.expandIcon,Di=br.loadingIcon,cr=br.dropdownMenuColumnStyle,pi=br.optionRender,Yr=ii==="hover",Li=function(xo){return wn||xo},Vi=Ie.useMemo(function(){return ot.map(function(bi){var xo,Fn=bi.disabled,mo=bi.disableCheckbox,Ci=bi[hl],jn=(xo=bi[gd])!==null&&xo!==void 0?xo:bi[Wr.label],Uo=bi[Wr.value],ga=Tu(bi,Wr),ca=Ci?Ci.map(function(Ha){return Ha[Wr.value]}):[].concat(_t(Ut),[Uo]),$i=Cu(ca),yo=Yt.includes($i),ta=je.has($i),na=St.has($i);return{disabled:Fn,label:jn,value:Uo,isLeaf:ga,isLoading:yo,checked:ta,halfChecked:na,option:bi,disableCheckbox:mo,fullPath:ca,fullPathKey:$i}})},[ot,je,Wr,St,Yt,Ut]);return Ie.createElement("ul",{className:On,role:"menu"},Vi.map(function(bi){var xo,Fn=bi.disabled,mo=bi.label,Ci=bi.value,jn=bi.isLeaf,Uo=bi.isLoading,ga=bi.checked,ca=bi.halfChecked,$i=bi.option,yo=bi.fullPath,ta=bi.fullPathKey,na=bi.disableCheckbox,Ha=function(){if(!Li(Fn)){var Qo=_t(yo);Yr&&jn&&Qo.pop(),fe(Qo)}},wa=function(){mn($i)&&!Li(Fn)&&se(yo,jn)},ko;return typeof $i.title=="string"?ko=$i.title:typeof mo=="string"&&(ko=mo),Ie.createElement("li",{key:ta,className:It()(Tn,(xo={},tt(xo,"".concat(Tn,"-expand"),!jn),tt(xo,"".concat(Tn,"-active"),Lt===Ci||Lt===ta),tt(xo,"".concat(Tn,"-disabled"),Li(Fn)),tt(xo,"".concat(Tn,"-loading"),Uo),xo)),style:cr,role:"menuitemcheckbox",title:ko,"aria-checked":ga,"data-path-key":ta,onClick:function(){Ha(),!na&&(!qe||jn)&&wa()},onDoubleClick:function(){di&&jt(!1)},onMouseEnter:function(){Yr&&Ha()},onMouseDown:function(Qo){Qo.preventDefault()}},qe&&Ie.createElement(Zc,{prefixCls:"".concat(De,"-checkbox"),checked:ga,halfChecked:ca,disabled:Li(Fn)||na,disableCheckbox:na,onClick:function(Qo){na||(Qo.stopPropagation(),wa())}}),Ie.createElement("div",{className:"".concat(Tn,"-content")},pi?pi($i):mo),!Uo&&oi&&!jn&&Ie.createElement("div",{className:"".concat(Tn,"-expand-icon")},oi),Uo&&Di&&Ie.createElement("div",{className:"".concat(Tn,"-loading-icon")},Di))}))}var pc=function(De,qe){var ot=Ie.useContext(Wl),Lt=ot.values,Ut=Lt[0],jt=Ie.useState([]),se=de(jt,2),fe=se[0],je=se[1];return Ie.useEffect(function(){De||je(Ut||[])},[qe,Ut]),[fe,je]},gc=pc,Do={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(De){var qe=De.keyCode;if(De.altKey&&!De.ctrlKey||De.metaKey||qe>=Do.F1&&qe<=Do.F12)return!1;switch(qe){case Do.ALT:case Do.CAPS_LOCK:case Do.CONTEXT_MENU:case Do.CTRL:case Do.DOWN:case Do.END:case Do.ESC:case Do.HOME:case Do.INSERT:case Do.LEFT:case Do.MAC_FF_META:case Do.META:case Do.NUMLOCK:case Do.NUM_CENTER:case Do.PAGE_DOWN:case Do.PAGE_UP:case Do.PAUSE:case Do.PRINT_SCREEN:case Do.RIGHT:case Do.SHIFT:case Do.UP:case Do.WIN_KEY:case Do.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(De){if(De>=Do.ZERO&&De<=Do.NINE||De>=Do.NUM_ZERO&&De<=Do.NUM_MULTIPLY||De>=Do.A&&De<=Do.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&De===0)return!0;switch(De){case Do.SPACE:case Do.QUESTION_MARK:case Do.NUM_PLUS:case Do.NUM_MINUS:case Do.NUM_PERIOD:case Do.NUM_DIVISION:case Do.SEMICOLON:case Do.DASH:case Do.EQUALS:case Do.COMMA:case Do.PERIOD:case Do.SLASH:case Do.APOSTROPHE:case Do.SINGLE_QUOTE:case Do.OPEN_SQUARE_BRACKET:case Do.BACKSLASH:case Do.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Pu=Do,kt=function(Ae,De,qe,ot,Lt,Ut,jt){var se=jt.direction,fe=jt.searchValue,je=jt.toggleOpen,St=jt.open,Yt=se==="rtl",mn=Ie.useMemo(function(){for(var cr=-1,pi=De,Yr=[],Li=[],Vi=ot.length,bi=Du(De,qe),xo=function(Uo){var ga=pi.findIndex(function(ca,$i){return(bi[$i]?Cu(bi[$i]):ca[qe.value])===ot[Uo]});if(ga===-1)return 1;cr=ga,Yr.push(cr),Li.push(ot[Uo]),pi=pi[cr][qe.children]},Fn=0;Fn<Vi&&pi&&!xo(Fn);Fn+=1);for(var mo=De,Ci=0;Ci<Yr.length-1;Ci+=1)mo=mo[Yr[Ci]][qe.children];return[Li,cr,mo,bi]},[ot,qe,De]),wn=de(mn,4),On=wn[0],Tn=wn[1],br=wn[2],Wr=wn[3],di=function(pi){Lt(pi)},ii=function(pi){var Yr=br.length,Li=Tn;Li===-1&&pi<0&&(Li=Yr);for(var Vi=0;Vi<Yr;Vi+=1){Li=(Li+pi+Yr)%Yr;var bi=br[Li];if(bi&&!bi.disabled){var xo=On.slice(0,-1).concat(Wr[Li]?Cu(Wr[Li]):bi[qe.value]);di(xo);return}}},oi=function(){if(On.length>1){var pi=On.slice(0,-1);di(pi)}else je(!1)},Di=function(){var pi,Yr=((pi=br[Tn])===null||pi===void 0?void 0:pi[qe.children])||[],Li=Yr.find(function(bi){return!bi.disabled});if(Li){var Vi=[].concat(_t(On),[Li[qe.value]]);di(Vi)}};Ie.useImperativeHandle(Ae,function(){return{onKeyDown:function(pi){var Yr=pi.which;switch(Yr){case Pu.UP:case Pu.DOWN:{var Li=0;Yr===Pu.UP?Li=-1:Yr===Pu.DOWN&&(Li=1),Li!==0&&ii(Li);break}case Pu.LEFT:{if(fe)break;Yt?Di():oi();break}case Pu.RIGHT:{if(fe)break;Yt?oi():Di();break}case Pu.BACKSPACE:{fe||oi();break}case Pu.ENTER:{if(On.length){var Vi=br[Tn],bi=(Vi==null?void 0:Vi[hl])||[];bi.length?Ut(bi.map(function(xo){return xo[qe.value]}),bi[bi.length-1]):Ut(On,br[Tn])}break}case Pu.ESC:je(!1),St&&pi.stopPropagation()}},onKeyUp:function(){}}})},en=Ie.forwardRef(function(Ae,De){var qe,ot,Lt,Ut=Ae.prefixCls,jt=Ae.multiple,se=Ae.searchValue,fe=Ae.toggleOpen,je=Ae.notFoundContent,St=Ae.direction,Yt=Ae.open,mn=Ae.disabled,wn=Ie.useRef(null),On=St==="rtl",Tn=Ie.useContext(Wl),br=Tn.options,Wr=Tn.values,di=Tn.halfValues,ii=Tn.fieldNames,oi=Tn.changeOnSelect,Di=Tn.onSelect,cr=Tn.searchOptions,pi=Tn.dropdownPrefixCls,Yr=Tn.loadData,Li=Tn.expandTrigger,Vi=pi||Ut,bi=Ie.useState([]),xo=de(bi,2),Fn=xo[0],mo=xo[1],Ci=function(Pi){if(!(!Yr||se)){var Zi=Jl(Pi,br,ii),wo=Zi.map(function(Qr){var Ro=Qr.option;return Ro}),Ea=wo[wo.length-1];if(Ea&&!Tu(Ea,ii)){var _r=Cu(Pi);mo(function(Qr){return[].concat(_t(Qr),[_r])}),Yr(wo)}}};Ie.useEffect(function(){Fn.length&&Fn.forEach(function(ho){var Pi=hc(ho),Zi=Jl(Pi,br,ii,!0).map(function(Ea){var _r=Ea.option;return _r}),wo=Zi[Zi.length-1];(!wo||wo[ii.children]||Tu(wo,ii))&&mo(function(Ea){return Ea.filter(function(_r){return _r!==ho})})})},[br,Fn,ii]);var jn=Ie.useMemo(function(){return new Set(dc(Wr))},[Wr]),Uo=Ie.useMemo(function(){return new Set(dc(di))},[di]),ga=gc(jt,Yt),ca=de(ga,2),$i=ca[0],yo=ca[1],ta=function(Pi){yo(Pi),Ci(Pi)},na=function(Pi){if(mn)return!1;var Zi=Pi.disabled,wo=Tu(Pi,ii);return!Zi&&(wo||oi||jt)},Ha=function(Pi,Zi){var wo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Di(Pi),!jt&&(Zi||oi&&(Li==="hover"||wo))&&fe(!1)},wa=Ie.useMemo(function(){return se?cr:br},[se,cr,br]),ko=Ie.useMemo(function(){for(var ho=[{options:wa}],Pi=wa,Zi=Du(Pi,ii),wo=function(){var Qr=$i[Ea],Ro=Pi.find(function(Wo,Za){return(Zi[Za]?Cu(Zi[Za]):Wo[ii.value])===Qr}),Bo=Ro==null?void 0:Ro[ii.children];if(!(Bo!=null&&Bo.length))return 1;Pi=Bo,ho.push({options:Bo})},Ea=0;Ea<$i.length&&!wo();Ea+=1);return ho},[wa,$i,ii]),fo=function(Pi,Zi){na(Zi)&&Ha(Pi,Tu(Zi,ii),!0)};kt(De,wa,ii,$i,ta,fo,{direction:St,searchValue:se,toggleOpen:fe,open:Yt}),Ie.useEffect(function(){if(!se)for(var ho=0;ho<$i.length;ho+=1){var Pi,Zi=$i.slice(0,ho+1),wo=Cu(Zi),Ea=(Pi=wn.current)===null||Pi===void 0?void 0:Pi.querySelector('li[data-path-key="'.concat(wo.replace(/\\{0,2}"/g,'\\"'),'"]'));Ea&&fc(Ea)}},[$i,se]);var Qo=!((qe=ko[0])!==null&&qe!==void 0&&(qe=qe.options)!==null&&qe!==void 0&&qe.length),ja=[(ot={},tt(ot,ii.value,"__EMPTY__"),tt(ot,gd,je),tt(ot,"disabled",!0),ot)],Lo=_e(_e({},Ae),{},{multiple:!Qo&&jt,onSelect:Ha,onActive:ta,onToggleOpen:fe,checkedSet:jn,halfCheckedSet:Uo,loadingKeys:Fn,isSelectable:na}),Ui=Qo?[{options:ja}]:ko,so=Ui.map(function(ho,Pi){var Zi=$i.slice(0,Pi),wo=$i[Pi];return Ie.createElement(Gu,ie({key:Pi},Lo,{prefixCls:Vi,options:ho.options,prevValuePath:Zi,activeValue:wo}))});return Ie.createElement(sc,{open:Yt},Ie.createElement("div",{className:It()("".concat(Vi,"-menus"),(Lt={},tt(Lt,"".concat(Vi,"-menu-empty"),Qo),tt(Lt,"".concat(Vi,"-rtl"),On),Lt)),ref:wn},so))}),cn=en,hn=Ie.forwardRef(function(Ae,De){var qe=ri();return Ie.createElement(cn,ie({},Ae,qe,{ref:De}))}),Dn=hn,qn=ae(80705);function lr(Ae,De,qe){var ot=React.useRef({});return(!("value"in ot.current)||qe(ot.current.condition,De))&&(ot.current.value=Ae(),ot.current.condition=De),ot.current.value}var Pr=Symbol.for("react.element"),Kr=Symbol.for("react.transitional.element"),Br=Symbol.for("react.fragment");function Si(Ae){return Ae&&_typeof(Ae)==="object"&&(Ae.$$typeof===Pr||Ae.$$typeof===Kr)&&Ae.type===Br}var Gr=Number(Ie.version.split(".")[0]),li=function(De,qe){typeof De=="function"?De(qe):_typeof(De)==="object"&&De&&"current"in De&&(De.current=qe)},$r=function(){for(var De=arguments.length,qe=new Array(De),ot=0;ot<De;ot++)qe[ot]=arguments[ot];var Lt=qe.filter(Boolean);return Lt.length<=1?Lt[0]:function(Ut){qe.forEach(function(jt){li(jt,Ut)})}},Ii=function(){for(var De=arguments.length,qe=new Array(De),ot=0;ot<De;ot++)qe[ot]=arguments[ot];return useMemo(function(){return $r.apply(void 0,qe)},qe,function(Lt,Ut){return Lt.length!==Ut.length||Lt.every(function(jt,se){return jt!==Ut[se]})})},co=function(De){var qe,ot;if(!De)return!1;if(To(De)&&Gr>=19)return!0;var Lt=isMemo(De)?De.type.type:De.type;return!(typeof Lt=="function"&&!((qe=Lt.prototype)!==null&&qe!==void 0&&qe.render)&&Lt.$$typeof!==ForwardRef||typeof De=="function"&&!((ot=De.prototype)!==null&&ot!==void 0&&ot.render)&&De.$$typeof!==ForwardRef)};function To(Ae){return isValidElement(Ae)&&!isFragment(Ae)}var ra=function(De){return To(De)&&co(De)},Mi=function(De){if(De&&To(De)){var qe=De;return qe.props.propertyIsEnumerable("ref")?qe.props.ref:qe.ref}return null};function bo(Ae,De,qe,ot){if(!De.length)return qe;var Lt=_toArray(De),Ut=Lt[0],jt=Lt.slice(1),se;return!Ae&&typeof Ut=="number"?se=[]:Array.isArray(Ae)?se=_toConsumableArray(Ae):se=_objectSpread({},Ae),ot&&qe===void 0&&jt.length===1?delete se[Ut][jt[0]]:se[Ut]=bo(se[Ut],jt,qe,ot),se}function ro(Ae,De,qe){var ot=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return De.length&&ot&&qe===void 0&&!get(Ae,De.slice(0,-1))?Ae:bo(Ae,De,qe,ot)}function ea(Ae){return _typeof(Ae)==="object"&&Ae!==null&&Object.getPrototypeOf(Ae)===Object.prototype}function Ia(Ae){return Array.isArray(Ae)?[]:{}}var Vo=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function ss(){for(var Ae=arguments.length,De=new Array(Ae),qe=0;qe<Ae;qe++)De[qe]=arguments[qe];var ot=Ia(De[0]);return De.forEach(function(Lt){function Ut(jt,se){var fe=new Set(se),je=get(Lt,jt),St=Array.isArray(je);if(St||ea(je)){if(!fe.has(je)){fe.add(je);var Yt=get(ot,jt);St?ot=ro(ot,jt,[]):(!Yt||_typeof(Yt)!=="object")&&(ot=ro(ot,jt,Ia(je))),Vo(je).forEach(function(mn){Ut([].concat(_toConsumableArray(jt),[mn]),fe)})}}else ot=ro(ot,jt,je)}Ut([])}),ot}function Ma(){}function qa(Ae){var De,qe=Ae,ot=qe.prefixCls,Lt=ot===void 0?"rc-cascader":ot,Ut=qe.style,jt=qe.className,se=qe.options,fe=qe.checkable,je=qe.defaultValue,St=qe.value,Yt=qe.fieldNames,mn=qe.changeOnSelect,wn=qe.onChange,On=qe.showCheckedStrategy,Tn=qe.loadData,br=qe.expandTrigger,Wr=qe.expandIcon,di=Wr===void 0?">":Wr,ii=qe.loadingIcon,oi=qe.direction,Di=qe.notFoundContent,cr=Di===void 0?"Not Found":Di,pi=qe.disabled,Yr=!!fe,Li=Hl(je,{value:St,postState:ua}),Vi=de(Li,2),bi=Vi[0],xo=Vi[1],Fn=Ie.useMemo(function(){return yu(Yt)},[JSON.stringify(Yt)]),mo=ll(Fn,se),Ci=de(mo,3),jn=Ci[0],Uo=Ci[1],ga=Ci[2],ca=ns(jn,Fn),$i=ms(Yr,bi,Uo,ga,ca),yo=de($i,3),ta=yo[0],na=yo[1],Ha=yo[2],wa=Al(function(Ui){if(xo(Ui),wn){var so=ua(Ui),ho=so.map(function(wo){return Jl(wo,jn,Fn).map(function(Ea){return Ea.option})}),Pi=Yr?so:so[0],Zi=Yr?ho:ho[0];wn(Pi,Zi)}}),ko=Cc(Yr,wa,ta,na,Ha,Uo,ga,On),fo=Al(function(Ui){ko(Ui)}),Qo=Ie.useMemo(function(){return{options:jn,fieldNames:Fn,values:ta,halfValues:na,changeOnSelect:mn,onSelect:fo,checkable:fe,searchOptions:[],dropdownPrefixCls:void 0,loadData:Tn,expandTrigger:br,expandIcon:di,loadingIcon:ii,dropdownMenuColumnStyle:void 0}},[jn,Fn,ta,na,mn,fo,fe,Tn,br,di,ii]),ja="".concat(Lt,"-panel"),Lo=!jn.length;return Ie.createElement(Wl.Provider,{value:Qo},Ie.createElement("div",{className:It()(ja,(De={},tt(De,"".concat(ja,"-rtl"),oi==="rtl"),tt(De,"".concat(ja,"-empty"),Lo),De),jt),style:Ut},Lo?cr:Ie.createElement(cn,{prefixCls:Lt,searchValue:"",multiple:Yr,toggleOpen:Ma,open:!0,direction:oi,disabled:pi})))}function Le(Ae){var De=Ae.onPopupVisibleChange,qe=Ae.popupVisible,ot=Ae.popupClassName,Lt=Ae.popupPlacement;warning(!De,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(qe===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(ot===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Lt===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function nt(Ae,De){if(Ae){var qe=function ot(Lt){for(var Ut=0;Ut<Lt.length;Ut++){var jt=Lt[Ut];if(jt[De==null?void 0:De.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(jt[De==null?void 0:De.children])&&ot(jt[De==null?void 0:De.children]))return!0}};qe(Ae)}}var Se=null,Te=["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"],ze=Ie.forwardRef(function(Ae,De){var qe=Ae.id,ot=Ae.prefixCls,Lt=ot===void 0?"rc-cascader":ot,Ut=Ae.fieldNames,jt=Ae.defaultValue,se=Ae.value,fe=Ae.changeOnSelect,je=Ae.onChange,St=Ae.displayRender,Yt=Ae.checkable,mn=Ae.autoClearSearchValue,wn=mn===void 0?!0:mn,On=Ae.searchValue,Tn=Ae.onSearch,br=Ae.showSearch,Wr=Ae.expandTrigger,di=Ae.options,ii=Ae.dropdownPrefixCls,oi=Ae.loadData,Di=Ae.popupVisible,cr=Ae.open,pi=Ae.popupClassName,Yr=Ae.dropdownClassName,Li=Ae.dropdownMenuColumnStyle,Vi=Ae.dropdownStyle,bi=Ae.popupPlacement,xo=Ae.placement,Fn=Ae.onDropdownVisibleChange,mo=Ae.onPopupVisibleChange,Ci=Ae.expandIcon,jn=Ci===void 0?">":Ci,Uo=Ae.loadingIcon,ga=Ae.children,ca=Ae.dropdownMatchSelectWidth,$i=ca===void 0?!1:ca,yo=Ae.showCheckedStrategy,ta=yo===void 0?gn:yo,na=Ae.optionRender,Ha=pe(Ae,Te),wa=zs(qe),ko=!!Yt,fo=Hl(jt,{value:se,postState:ua}),Qo=de(fo,2),ja=Qo[0],Lo=Qo[1],Ui=Ie.useMemo(function(){return yu(Ut)},[JSON.stringify(Ut)]),so=ll(Ui,di),ho=de(so,3),Pi=ho[0],Zi=ho[1],wo=ho[2],Ea=Hl("",{value:On,postState:function(Qi){return Qi||""}}),_r=de(Ea,2),Qr=_r[0],Ro=_r[1],Bo=function(Qi,jo){Ro(Qi),jo.source!=="blur"&&Tn&&Tn(Qi)},Wo=wc(br),Za=de(Wo,2),Ko=Za[0],Oa=Za[1],cs=No(Qr,Pi,Ui,ii||Lt,Oa,fe||ko),Ws=ns(Pi,Ui),Qa=ms(ko,ja,Zi,wo,Ws),ds=de(Qa,3),ma=ds[0],Ks=ds[1],Rs=ds[2],tl=Ie.useMemo(function(){var fl=dc(ma),Qi=Ql(fl,Zi,ta);return[].concat(_t(Rs),_t(wo(Qi)))},[ma,Zi,wo,Rs,ta]),qi=el(tl,Pi,Ui,ko,St),eo=Al(function(fl){if(Lo(fl),je){var Qi=ua(fl),jo=Qi.map(function(Cs){return Jl(Cs,Pi,Ui).map(function(Yo){return Yo.option})}),io=ko?Qi:Qi[0],La=ko?jo:jo[0];je(io,La)}}),po=Cc(ko,eo,ma,Ks,Rs,Zi,wo,ta),da=Al(function(fl){(!ko||wn)&&Ro(""),po(fl)}),hs=function(Qi,jo){if(jo.type==="clear"){eo([]);return}var io=jo.values[0],La=io.valueCells;da(La)},Bs=cr!==void 0?cr:Di,$s=Yr||pi,xn=xo||bi,Da=function(Qi){Fn==null||Fn(Qi),mo==null||mo(Qi)},Ja=Ie.useMemo(function(){return{options:Pi,fieldNames:Ui,values:ma,halfValues:Ks,changeOnSelect:fe,onSelect:da,checkable:Yt,searchOptions:cs,dropdownPrefixCls:ii,loadData:oi,expandTrigger:Wr,expandIcon:jn,loadingIcon:Uo,dropdownMenuColumnStyle:Li,optionRender:na}},[Pi,Ui,ma,Ks,fe,da,Yt,cs,ii,oi,Wr,jn,Uo,Li,na]),fs=!(Qr?cs:Pi).length,jl=Qr&&Oa.matchInputWidth||fs?{}:{minWidth:"auto"};return Ie.createElement(Wl.Provider,{value:Ja},Ie.createElement(Ds,ie({},Ha,{ref:De,id:wa,prefixCls:Lt,autoClearSearchValue:wn,dropdownMatchSelectWidth:$i,dropdownStyle:_e(_e({},jl),Vi),displayValues:qi,onDisplayValuesChange:hs,mode:ko?"multiple":void 0,searchValue:Qr,onSearch:Bo,showSearch:Ko,OptionList:Dn,emptyOptions:fs,open:Bs,dropdownClassName:$s,placement:xn,onDropdownVisibleChange:Da,getRawInputElement:function(){return ga}})))});ze.SHOW_PARENT=gn,ze.SHOW_CHILD=Mr,ze.Panel=qa;var Qe=ze,mt=Qe},42767:function(Ke,we){"use strict";var ae;var ie=typeof Symbol=="function"&&Symbol.for,Pe=ie?Symbol.for("react.element"):60103,Fe=ie?Symbol.for("react.portal"):60106,Oe=ie?Symbol.for("react.fragment"):60107,tt=ie?Symbol.for("react.strict_mode"):60108,Me=ie?Symbol.for("react.profiler"):60114,_e=ie?Symbol.for("react.provider"):60109,ut=ie?Symbol.for("react.context"):60110,et=ie?Symbol.for("react.async_mode"):60111,lt=ie?Symbol.for("react.concurrent_mode"):60111,Et=ie?Symbol.for("react.forward_ref"):60112,rt=ie?Symbol.for("react.suspense"):60113,_t=ie?Symbol.for("react.suspense_list"):60120,Ge=ie?Symbol.for("react.memo"):60115,te=ie?Symbol.for("react.lazy"):60116,ee=ie?Symbol.for("react.block"):60121,de=ie?Symbol.for("react.fundamental"):60117,le=ie?Symbol.for("react.responder"):60118,pe=ie?Symbol.for("react.scope"):60119;function me(be){if(typeof be=="object"&&be!==null){var Be=be.$$typeof;switch(Be){case Pe:switch(be=be.type,be){case et:case lt:case Oe:case Me:case tt:case rt:return be;default:switch(be=be&&be.$$typeof,be){case ut:case Et:case te:case Ge:case _e:return be;default:return Be}}case Fe:return Be}}}function xe(be){return me(be)===lt}ae=et,ae=lt,ae=ut,ae=_e,ae=Pe,ae=Et,ae=Oe,ae=te,ae=Ge,ae=Fe,ae=Me,ae=tt,ae=rt,ae=function(be){return xe(be)||me(be)===et},ae=xe,ae=function(be){return me(be)===ut},ae=function(be){return me(be)===_e},ae=function(be){return typeof be=="object"&&be!==null&&be.$$typeof===Pe},ae=function(be){return me(be)===Et},we.isFragment=function(be){return me(be)===Oe},ae=function(be){return me(be)===te},ae=function(be){return me(be)===Ge},ae=function(be){return me(be)===Fe},ae=function(be){return me(be)===Me},ae=function(be){return me(be)===tt},ae=function(be){return me(be)===rt},ae=function(be){return typeof be=="string"||typeof be=="function"||be===Oe||be===lt||be===Me||be===tt||be===rt||be===_t||typeof be=="object"&&be!==null&&(be.$$typeof===te||be.$$typeof===Ge||be.$$typeof===_e||be.$$typeof===ut||be.$$typeof===Et||be.$$typeof===de||be.$$typeof===le||be.$$typeof===pe||be.$$typeof===ee)},ae=me},16357:function(Ke,we,ae){"use strict";Ke.exports=ae(42767)},16404:function(Ke,we){"use strict";var ae;var ie=Symbol.for("react.element"),Pe=Symbol.for("react.portal"),Fe=Symbol.for("react.fragment"),Oe=Symbol.for("react.strict_mode"),tt=Symbol.for("react.profiler"),Me=Symbol.for("react.provider"),_e=Symbol.for("react.context"),ut=Symbol.for("react.server_context"),et=Symbol.for("react.forward_ref"),lt=Symbol.for("react.suspense"),Et=Symbol.for("react.suspense_list"),rt=Symbol.for("react.memo"),_t=Symbol.for("react.lazy"),Ge=Symbol.for("react.offscreen"),te;te=Symbol.for("react.module.reference");function ee(de){if(typeof de=="object"&&de!==null){var le=de.$$typeof;switch(le){case ie:switch(de=de.type,de){case Fe:case tt:case Oe:case lt:case Et:return de;default:switch(de=de&&de.$$typeof,de){case ut:case _e:case et:case _t:case rt:case Me:return de;default:return le}}case Pe:return le}}}ae=_e,ae=Me,ae=ie,ae=et,ae=Fe,ae=_t,ae=rt,ae=Pe,ae=tt,ae=Oe,ae=lt,ae=Et,ae=function(){return!1},ae=function(){return!1},ae=function(de){return ee(de)===_e},ae=function(de){return ee(de)===Me},ae=function(de){return typeof de=="object"&&de!==null&&de.$$typeof===ie},ae=function(de){return ee(de)===et},ae=function(de){return ee(de)===Fe},ae=function(de){return ee(de)===_t},ae=function(de){return ee(de)===rt},ae=function(de){return ee(de)===Pe},ae=function(de){return ee(de)===tt},ae=function(de){return ee(de)===Oe},ae=function(de){return ee(de)===lt},ae=function(de){return ee(de)===Et},ae=function(de){return typeof de=="string"||typeof de=="function"||de===Fe||de===tt||de===Oe||de===lt||de===Et||de===Ge||typeof de=="object"&&de!==null&&(de.$$typeof===_t||de.$$typeof===rt||de.$$typeof===Me||de.$$typeof===_e||de.$$typeof===et||de.$$typeof===te||de.getModuleId!==void 0)},ae=ee},80705:function(Ke,we,ae){"use strict";ae(16404)},3510:function(Ke,we,ae){"use strict";ae.r(we),ae.d(we,{Panel:function(){return Vt},default:function(){return Ct}});var ie=ae(87462),Pe=ae(74902),Fe=ae(97685),Oe=ae(71002),tt=ae(94184),Me=ae.n(tt),_e=ae(21770),ut=ae(80334),et=ae(67294),lt=ae(45987),Et=ae(50344),rt=ae(1413),_t=ae(4942),Ge=ae(62874),te=ae(15105),ee=et.forwardRef(function(Rt,nn){var Cn=Rt.prefixCls,un=Rt.forceRender,Nn=Rt.className,wt=Rt.style,pt=Rt.children,Ie=Rt.isActive,on=Rt.role,Bn=Rt.classNames,Zt=Rt.styles,zn=et.useState(Ie||un),_n=(0,Fe.Z)(zn,2),nr=_n[0],Ft=_n[1];return et.useEffect(function(){(un||Ie)&&Ft(!0)},[un,Ie]),nr?et.createElement("div",{ref:nn,className:Me()("".concat(Cn,"-content"),(0,_t.Z)((0,_t.Z)({},"".concat(Cn,"-content-active"),Ie),"".concat(Cn,"-content-inactive"),!Ie),Nn),style:wt,role:on},et.createElement("div",{className:Me()("".concat(Cn,"-content-box"),Bn==null?void 0:Bn.body),style:Zt==null?void 0:Zt.body},pt)):null});ee.displayName="PanelContent";var de=ee,le=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],pe=et.forwardRef(function(Rt,nn){var Cn=Rt.showArrow,un=Cn===void 0?!0:Cn,Nn=Rt.headerClass,wt=Rt.isActive,pt=Rt.onItemClick,Ie=Rt.forceRender,on=Rt.className,Bn=Rt.classNames,Zt=Bn===void 0?{}:Bn,zn=Rt.styles,_n=zn===void 0?{}:zn,nr=Rt.prefixCls,Ft=Rt.collapsible,Wt=Rt.accordion,ht=Rt.panelKey,tn=Rt.extra,an=Rt.header,ct=Rt.expandIcon,Ue=Rt.openMotion,He=Rt.destroyInactivePanel,it=Rt.children,vt=(0,lt.Z)(Rt,le),Ye=Ft==="disabled",It=tn!=null&&typeof tn!="boolean",In=(0,_t.Z)((0,_t.Z)((0,_t.Z)({onClick:function(){pt==null||pt(ht)},onKeyDown:function(sr){(sr.key==="Enter"||sr.keyCode===te.Z.ENTER||sr.which===te.Z.ENTER)&&(pt==null||pt(ht))},role:Wt?"tab":"button"},"aria-expanded",wt),"aria-disabled",Ye),"tabIndex",Ye?-1:0),Kn=typeof ct=="function"?ct(Rt):et.createElement("i",{className:"arrow"}),dr=Kn&&et.createElement("div",(0,ie.Z)({className:"".concat(nr,"-expand-icon")},["header","icon"].includes(Ft)?In:{}),Kn),Rn=Me()("".concat(nr,"-item"),(0,_t.Z)((0,_t.Z)({},"".concat(nr,"-item-active"),wt),"".concat(nr,"-item-disabled"),Ye),on),er=Me()(Nn,"".concat(nr,"-header"),(0,_t.Z)({},"".concat(nr,"-collapsible-").concat(Ft),!!Ft),Zt.header),yn=(0,rt.Z)({className:er,style:_n.header},["header","icon"].includes(Ft)?{}:In);return et.createElement("div",(0,ie.Z)({},vt,{ref:nn,className:Rn}),et.createElement("div",yn,un&&dr,et.createElement("span",(0,ie.Z)({className:"".concat(nr,"-header-text")},Ft==="header"?In:{}),an),It&&et.createElement("div",{className:"".concat(nr,"-extra")},tn)),et.createElement(Ge.Z,(0,ie.Z)({visible:wt,leavedClassName:"".concat(nr,"-content-hidden")},Ue,{forceRender:Ie,removeOnLeave:He}),function(Er,sr){var Hr=Er.className,An=Er.style;return et.createElement(de,{ref:sr,prefixCls:nr,className:Hr,classNames:Zt,style:An,styles:_n,isActive:wt,forceRender:Ie,role:Wt?"tabpanel":void 0},it)}))}),me=pe,xe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],be=function(nn,Cn){var un=Cn.prefixCls,Nn=Cn.accordion,wt=Cn.collapsible,pt=Cn.destroyInactivePanel,Ie=Cn.onItemClick,on=Cn.activeKey,Bn=Cn.openMotion,Zt=Cn.expandIcon;return nn.map(function(zn,_n){var nr=zn.children,Ft=zn.label,Wt=zn.key,ht=zn.collapsible,tn=zn.onItemClick,an=zn.destroyInactivePanel,ct=(0,lt.Z)(zn,xe),Ue=String(Wt!=null?Wt:_n),He=ht!=null?ht:wt,it=an!=null?an:pt,vt=function(In){He!=="disabled"&&(Ie(In),tn==null||tn(In))},Ye=!1;return Nn?Ye=on[0]===Ue:Ye=on.indexOf(Ue)>-1,et.createElement(me,(0,ie.Z)({},ct,{prefixCls:un,key:Ue,panelKey:Ue,isActive:Ye,accordion:Nn,openMotion:Bn,expandIcon:Zt,header:Ft,collapsible:He,onItemClick:vt,destroyInactivePanel:it}),nr)})},Be=function(nn,Cn,un){if(!nn)return null;var Nn=un.prefixCls,wt=un.accordion,pt=un.collapsible,Ie=un.destroyInactivePanel,on=un.onItemClick,Bn=un.activeKey,Zt=un.openMotion,zn=un.expandIcon,_n=nn.key||String(Cn),nr=nn.props,Ft=nr.header,Wt=nr.headerClass,ht=nr.destroyInactivePanel,tn=nr.collapsible,an=nr.onItemClick,ct=!1;wt?ct=Bn[0]===_n:ct=Bn.indexOf(_n)>-1;var Ue=tn!=null?tn:pt,He=function(Ye){Ue!=="disabled"&&(on(Ye),an==null||an(Ye))},it={key:_n,panelKey:_n,header:Ft,headerClass:Wt,isActive:ct,prefixCls:Nn,destroyInactivePanel:ht!=null?ht:Ie,openMotion:Zt,accordion:wt,children:nn.props.children,onItemClick:He,expandIcon:zn,collapsible:Ue};return typeof nn.type=="string"?nn:(Object.keys(it).forEach(function(vt){typeof it[vt]=="undefined"&&delete it[vt]}),et.cloneElement(nn,it))};function at(Rt,nn,Cn){return Array.isArray(Rt)?be(Rt,Cn):(0,Et.Z)(nn).map(function(un,Nn){return Be(un,Nn,Cn)})}var dt=at,gt=ae(64217);function ft(Rt){var nn=Rt;if(!Array.isArray(nn)){var Cn=(0,Oe.Z)(nn);nn=Cn==="number"||Cn==="string"?[nn]:[]}return nn.map(function(un){return String(un)})}var Nt=et.forwardRef(function(Rt,nn){var Cn=Rt.prefixCls,un=Cn===void 0?"rc-collapse":Cn,Nn=Rt.destroyInactivePanel,wt=Nn===void 0?!1:Nn,pt=Rt.style,Ie=Rt.accordion,on=Rt.className,Bn=Rt.children,Zt=Rt.collapsible,zn=Rt.openMotion,_n=Rt.expandIcon,nr=Rt.activeKey,Ft=Rt.defaultActiveKey,Wt=Rt.onChange,ht=Rt.items,tn=Me()(un,on),an=(0,_e.Z)([],{value:nr,onChange:function(It){return Wt==null?void 0:Wt(It)},defaultValue:Ft,postState:ft}),ct=(0,Fe.Z)(an,2),Ue=ct[0],He=ct[1],it=function(It){return He(function(){if(Ie)return Ue[0]===It?[]:[It];var In=Ue.indexOf(It),Kn=In>-1;return Kn?Ue.filter(function(dr){return dr!==It}):[].concat((0,Pe.Z)(Ue),[It])})};(0,ut.ZP)(!Bn,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var vt=dt(ht,Bn,{prefixCls:un,accordion:Ie,openMotion:zn,expandIcon:_n,collapsible:Zt,destroyInactivePanel:wt,onItemClick:it,activeKey:Ue});return et.createElement("div",(0,ie.Z)({ref:nn,className:tn,style:pt,role:Ie?"tablist":void 0},(0,gt.Z)(Rt,{aria:!0,data:!0})),vt)}),Tt=Object.assign(Nt,{Panel:me}),Ct=Tt,Vt=Tt.Panel},42289:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return Nr}});function ie(Qt){"@babel/helpers - typeof";return ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ln){return typeof ln}:function(ln){return ln&&typeof Symbol=="function"&&ln.constructor===Symbol&&ln!==Symbol.prototype?"symbol":typeof ln},ie(Qt)}function Pe(Qt,ln){if(ie(Qt)!="object"||!Qt)return Qt;var En=Qt[Symbol.toPrimitive];if(En!==void 0){var Xn=En.call(Qt,ln||"default");if(ie(Xn)!="object")return Xn;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ln==="string"?String:Number)(Qt)}function Fe(Qt){var ln=Pe(Qt,"string");return ie(ln)=="symbol"?ln:ln+""}function Oe(Qt,ln,En){return(ln=Fe(ln))in Qt?Object.defineProperty(Qt,ln,{value:En,enumerable:!0,configurable:!0,writable:!0}):Qt[ln]=En,Qt}function tt(Qt,ln){var En=Object.keys(Qt);if(Object.getOwnPropertySymbols){var Xn=Object.getOwnPropertySymbols(Qt);ln&&(Xn=Xn.filter(function(Rr){return Object.getOwnPropertyDescriptor(Qt,Rr).enumerable})),En.push.apply(En,Xn)}return En}function Me(Qt){for(var ln=1;ln<arguments.length;ln++){var En=arguments[ln]!=null?arguments[ln]:{};ln%2?tt(Object(En),!0).forEach(function(Xn){Oe(Qt,Xn,En[Xn])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Qt,Object.getOwnPropertyDescriptors(En)):tt(Object(En)).forEach(function(Xn){Object.defineProperty(Qt,Xn,Object.getOwnPropertyDescriptor(En,Xn))})}return Qt}function _e(Qt){if(Array.isArray(Qt))return Qt}function ut(Qt,ln){var En=Qt==null?null:typeof Symbol!="undefined"&&Qt[Symbol.iterator]||Qt["@@iterator"];if(En!=null){var Xn,Rr,vi,ni,xr=[],xt=!0,Po=!1;try{if(vi=(En=En.call(Qt)).next,ln===0){if(Object(En)!==En)return;xt=!1}else for(;!(xt=(Xn=vi.call(En)).done)&&(xr.push(Xn.value),xr.length!==ln);xt=!0);}catch(zo){Po=!0,Rr=zo}finally{try{if(!xt&&En.return!=null&&(ni=En.return(),Object(ni)!==ni))return}finally{if(Po)throw Rr}}return xr}}function et(Qt,ln){(ln==null||ln>Qt.length)&&(ln=Qt.length);for(var En=0,Xn=Array(ln);En<ln;En++)Xn[En]=Qt[En];return Xn}function lt(Qt,ln){if(Qt){if(typeof Qt=="string")return et(Qt,ln);var En={}.toString.call(Qt).slice(8,-1);return En==="Object"&&Qt.constructor&&(En=Qt.constructor.name),En==="Map"||En==="Set"?Array.from(Qt):En==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(En)?et(Qt,ln):void 0}}function Et(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rt(Qt,ln){return _e(Qt)||ut(Qt,ln)||lt(Qt,ln)||Et()}function _t(Qt){if(Array.isArray(Qt))return Qt}function Ge(Qt,ln){var En=Qt==null?null:typeof Symbol!="undefined"&&Qt[Symbol.iterator]||Qt["@@iterator"];if(En!=null){var Xn,Rr,vi,ni,xr=[],xt=!0,Po=!1;try{if(vi=(En=En.call(Qt)).next,ln===0){if(Object(En)!==En)return;xt=!1}else for(;!(xt=(Xn=vi.call(En)).done)&&(xr.push(Xn.value),xr.length!==ln);xt=!0);}catch(zo){Po=!0,Rr=zo}finally{try{if(!xt&&En.return!=null&&(ni=En.return(),Object(ni)!==ni))return}finally{if(Po)throw Rr}}return xr}}function te(Qt,ln){(ln==null||ln>Qt.length)&&(ln=Qt.length);for(var En=0,Xn=new Array(ln);En<ln;En++)Xn[En]=Qt[En];return Xn}function ee(Qt,ln){if(Qt){if(typeof Qt=="string")return te(Qt,ln);var En=Object.prototype.toString.call(Qt).slice(8,-1);if(En==="Object"&&Qt.constructor&&(En=Qt.constructor.name),En==="Map"||En==="Set")return Array.from(Qt);if(En==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(En))return te(Qt,ln)}}function de(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function le(Qt,ln){return _t(Qt)||Ge(Qt,ln)||ee(Qt,ln)||de()}var pe=ae(67294),me=ae(73935);function xe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var be={};function Be(Qt,ln){}function at(Qt,ln){}function dt(){be={}}function gt(Qt,ln,En){!ln&&!be[En]&&(Qt(!1,En),be[En]=!0)}function ft(Qt,ln){gt(Be,Qt,ln)}function Nt(Qt,ln){gt(at,Qt,ln)}var Tt=null;function Ct(Qt){"@babel/helpers - typeof";return Ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ln){return typeof ln}:function(ln){return ln&&typeof Symbol=="function"&&ln.constructor===Symbol&&ln!==Symbol.prototype?"symbol":typeof ln},Ct(Qt)}var Vt=ae(18459);function Rt(Qt,ln,En){var Xn=pe.useRef({});return(!("value"in Xn.current)||En(Xn.current.condition,ln))&&(Xn.current.value=Qt(),Xn.current.condition=ln),Xn.current.value}function nn(Qt,ln){typeof Qt=="function"?Qt(ln):Ct(Qt)==="object"&&Qt&&"current"in Qt&&(Qt.current=ln)}function Cn(){for(var Qt=arguments.length,ln=new Array(Qt),En=0;En<Qt;En++)ln[En]=arguments[En];var Xn=ln.filter(function(Rr){return Rr});return Xn.length<=1?Xn[0]:function(Rr){ln.forEach(function(vi){nn(vi,Rr)})}}function un(){for(var Qt=arguments.length,ln=new Array(Qt),En=0;En<Qt;En++)ln[En]=arguments[En];return Rt(function(){return Cn.apply(void 0,ln)},ln,function(Xn,Rr){return Xn.length===Rr.length&&Xn.every(function(vi,ni){return vi===Rr[ni]})})}function Nn(Qt){var ln,En,Xn=(0,Vt.isMemo)(Qt)?Qt.type.type:Qt.type;return!(typeof Xn=="function"&&!((ln=Xn.prototype)!==null&&ln!==void 0&&ln.render)||typeof Qt=="function"&&!((En=Qt.prototype)!==null&&En!==void 0&&En.render))}var wt=pe.createContext(null),pt=wt;function Ie(Qt){if(Array.isArray(Qt))return te(Qt)}function on(Qt){if(typeof Symbol!="undefined"&&Qt[Symbol.iterator]!=null||Qt["@@iterator"]!=null)return Array.from(Qt)}function Bn(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zt(Qt){return Ie(Qt)||on(Qt)||ee(Qt)||Bn()}var zn=xe()?pe.useLayoutEffect:pe.useEffect,_n=zn,nr=function(ln,En){var Xn=React.useRef(!0);zn(function(){if(!Xn.current)return ln()},En),zn(function(){return Xn.current=!1,function(){Xn.current=!0}},[])},Ft=[];function Wt(Qt,ln){var En=pe.useState(function(){if(!xe())return null;var ha=document.createElement("div");return ha}),Xn=le(En,1),Rr=Xn[0],vi=pe.useRef(!1),ni=pe.useContext(pt),xr=pe.useState(Ft),xt=le(xr,2),Po=xt[0],zo=xt[1],ya=ni||(vi.current?void 0:function(ha){zo(function(Gt){var fr=[ha].concat(Zt(Gt));return fr})});function xa(){Rr.parentElement||document.body.appendChild(Rr),vi.current=!0}function Sa(){var ha;(ha=Rr.parentElement)===null||ha===void 0||ha.removeChild(Rr),vi.current=!1}return _n(function(){return Qt?ni?ni(xa):xa():Sa(),Sa},[Qt]),_n(function(){Po.length&&(Po.forEach(function(ha){return ha()}),zo(Ft))},[Po]),[Rr,ya]}function ht(Qt,ln){if(!Qt)return!1;if(Qt.contains)return Qt.contains(ln);for(var En=ln;En;){if(En===Qt)return!0;En=En.parentNode}return!1}var tn="data-rc-order",an="rc-util-key",ct=new Map;function Ue(){var Qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ln=Qt.mark;return ln?ln.startsWith("data-")?ln:"data-".concat(ln):an}function He(Qt){if(Qt.attachTo)return Qt.attachTo;var ln=document.querySelector("head");return ln||document.body}function it(Qt){return Qt==="queue"?"prependQueue":Qt?"prepend":"append"}function vt(Qt){return Array.from((ct.get(Qt)||Qt).children).filter(function(ln){return ln.tagName==="STYLE"})}function Ye(Qt){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!xe())return null;var En=ln.csp,Xn=ln.prepend,Rr=document.createElement("style");Rr.setAttribute(tn,it(Xn)),En!=null&&En.nonce&&(Rr.nonce=En==null?void 0:En.nonce),Rr.innerHTML=Qt;var vi=He(ln),ni=vi.firstChild;if(Xn){if(Xn==="queue"){var xr=vt(vi).filter(function(xt){return["prepend","prependQueue"].includes(xt.getAttribute(tn))});if(xr.length)return vi.insertBefore(Rr,xr[xr.length-1].nextSibling),Rr}vi.insertBefore(Rr,ni)}else vi.appendChild(Rr);return Rr}function It(Qt){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},En=He(ln);return vt(En).find(function(Xn){return Xn.getAttribute(Ue(ln))===Qt})}function In(Qt){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},En=It(Qt,ln);if(En){var Xn=He(ln);Xn.removeChild(En)}}function Kn(Qt,ln){var En=ct.get(Qt);if(!En||!ht(document,En)){var Xn=Ye("",ln),Rr=Xn.parentNode;ct.set(Qt,Rr),Qt.removeChild(Xn)}}function dr(){ct.clear()}function Rn(Qt,ln){var En=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Xn=He(En);Kn(Xn,En);var Rr=It(ln,En);if(Rr){var vi,ni;if((vi=En.csp)!==null&&vi!==void 0&&vi.nonce&&Rr.nonce!==((ni=En.csp)===null||ni===void 0?void 0:ni.nonce)){var xr;Rr.nonce=(xr=En.csp)===null||xr===void 0?void 0:xr.nonce}return Rr.innerHTML!==Qt&&(Rr.innerHTML=Qt),Rr}var xt=Ye(Qt,En);return xt.setAttribute(Ue(En),ln),xt}var er;function yn(Qt){if(typeof document=="undefined")return 0;if(Qt||er===void 0){var ln=document.createElement("div");ln.style.width="100%",ln.style.height="200px";var En=document.createElement("div"),Xn=En.style;Xn.position="absolute",Xn.top="0",Xn.left="0",Xn.pointerEvents="none",Xn.visibility="hidden",Xn.width="200px",Xn.height="150px",Xn.overflow="hidden",En.appendChild(ln),document.body.appendChild(En);var Rr=ln.offsetWidth;En.style.overflow="scroll";var vi=ln.offsetWidth;Rr===vi&&(vi=En.clientWidth),document.body.removeChild(En),er=Rr-vi}return er}function Er(Qt){var ln=Qt.match(/^(.*)px$/),En=Number(ln==null?void 0:ln[1]);return Number.isNaN(En)?yn():En}function sr(Qt){if(typeof document=="undefined"||!Qt||!(Qt instanceof Element))return{width:0,height:0};var ln=getComputedStyle(Qt,"::-webkit-scrollbar"),En=ln.width,Xn=ln.height;return{width:Er(En),height:Er(Xn)}}function Hr(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var An="rc-util-locker-".concat(Date.now()),yi=0;function ri(Qt){var ln=!!Qt,En=pe.useState(function(){return yi+=1,"".concat(An,"_").concat(yi)}),Xn=le(En,1),Rr=Xn[0];_n(function(){if(ln){var vi=sr(document.body).width,ni=Hr();Rn(`
|
|
|
html body {
|
|
|
overflow-y: hidden;
|
|
|
`.concat(ni?"width: calc(100% - ".concat(vi,"px);"):"",`
|
|
|
}`),Rr)}else In(Rr);return function(){In(Rr)}},[ln,Rr])}var bn=!1;function Xe(Qt){return typeof Qt=="boolean"&&(bn=Qt),bn}var Ji=function(ln){return ln===!1?!1:!xe()||!ln?null:typeof ln=="string"?document.querySelector(ln):typeof ln=="function"?ln():ln},Qn=pe.forwardRef(function(Qt,ln){var En=Qt.open,Xn=Qt.autoLock,Rr=Qt.getContainer,vi=Qt.debug,ni=Qt.autoDestroy,xr=ni===void 0?!0:ni,xt=Qt.children,Po=pe.useState(En),zo=le(Po,2),ya=zo[0],xa=zo[1],Sa=ya||En;pe.useEffect(function(){(xr||En)&&xa(En)},[En,xr]);var ha=pe.useState(function(){return Ji(Rr)}),Gt=le(ha,2),fr=Gt[0],pr=Gt[1];pe.useEffect(function(){var _o=Ji(Rr);pr(_o!=null?_o:null)});var Tr=Wt(Sa&&!fr,vi),Ln=le(Tr,2),or=Ln[0],vr=Ln[1],sn=fr!=null?fr:or;ri(Xn&&En&&xe()&&(sn===or||sn===document.body));var mr=null;if(xt&&Nn(xt)&&ln){var Vr=xt;mr=Vr.ref}var no=un(mr,ln);if(!Sa||!xe()||fr===void 0)return null;var Xi=sn===!1||Xe(),zi=xt;return ln&&(zi=pe.cloneElement(xt,{ref:no})),pe.createElement(pt.Provider,{value:vr},Xi?zi:(0,me.createPortal)(zi,sn))}),Sn=Qn,to=Sn;function Ki(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Zr=Ki()?pe.useLayoutEffect:pe.useEffect,hi=function(ln,En){var Xn=pe.useRef(!0);Zr(function(){return ln(Xn.current)},En),Zr(function(){return Xn.current=!1,function(){Xn.current=!0}},[])},Ir=function(ln,En){hi(function(Xn){if(!Xn)return ln()},En)},fn=hi,Hi=pe.createContext(null),ao=pe.createContext({}),ui=Hi;function ai(){return ai=Object.assign?Object.assign.bind():function(Qt){for(var ln=1;ln<arguments.length;ln++){var En=arguments[ln];for(var Xn in En)({}).hasOwnProperty.call(En,Xn)&&(Qt[Xn]=En[Xn])}return Qt},ai.apply(null,arguments)}var Ni=ae(94184),ir=ae.n(Ni),We=ae(62874),rr={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ln){var En=ln.keyCode;if(ln.altKey&&!ln.ctrlKey||ln.metaKey||En>=rr.F1&&En<=rr.F12)return!1;switch(En){case rr.ALT:case rr.CAPS_LOCK:case rr.CONTEXT_MENU:case rr.CTRL:case rr.DOWN:case rr.END:case rr.ESC:case rr.HOME:case rr.INSERT:case rr.LEFT:case rr.MAC_FF_META:case rr.META:case rr.NUMLOCK:case rr.NUM_CENTER:case rr.PAGE_DOWN:case rr.PAGE_UP:case rr.PAUSE:case rr.PRINT_SCREEN:case rr.RIGHT:case rr.SHIFT:case rr.UP:case rr.WIN_KEY:case rr.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ln){if(ln>=rr.ZERO&&ln<=rr.NINE||ln>=rr.NUM_ZERO&&ln<=rr.NUM_MULTIPLY||ln>=rr.A&&ln<=rr.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ln===0)return!0;switch(ln){case rr.SPACE:case rr.QUESTION_MARK:case rr.NUM_PLUS:case rr.NUM_MINUS:case rr.NUM_PERIOD:case rr.NUM_DIVISION:case rr.SEMICOLON:case rr.DASH:case rr.EQUALS:case rr.COMMA:case rr.PERIOD:case rr.SLASH:case rr.APOSTROPHE:case rr.SINGLE_QUOTE:case rr.OPEN_SQUARE_BRACKET:case rr.BACKSLASH:case rr.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ur=rr;function hr(Qt){"@babel/helpers - typeof";return hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ln){return typeof ln}:function(ln){return ln&&typeof Symbol=="function"&&ln.constructor===Symbol&&ln!==Symbol.prototype?"symbol":typeof ln},hr(Qt)}function Or(Qt,ln){if(hr(Qt)!=="object"||Qt===null)return Qt;var En=Qt[Symbol.toPrimitive];if(En!==void 0){var Xn=En.call(Qt,ln||"default");if(hr(Xn)!=="object")return Xn;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ln==="string"?String:Number)(Qt)}function jr(Qt){var ln=Or(Qt,"string");return hr(ln)==="symbol"?ln:String(ln)}function si(Qt,ln,En){return ln=jr(ln),ln in Qt?Object.defineProperty(Qt,ln,{value:En,enumerable:!0,configurable:!0,writable:!0}):Qt[ln]=En,Qt}function Fi(Qt,ln){var En=Object.keys(Qt);if(Object.getOwnPropertySymbols){var Xn=Object.getOwnPropertySymbols(Qt);ln&&(Xn=Xn.filter(function(Rr){return Object.getOwnPropertyDescriptor(Qt,Rr).enumerable})),En.push.apply(En,Xn)}return En}function Vn(Qt){for(var ln=1;ln<arguments.length;ln++){var En=arguments[ln]!=null?arguments[ln]:{};ln%2?Fi(Object(En),!0).forEach(function(Xn){si(Qt,Xn,En[Xn])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Qt,Object.getOwnPropertyDescriptors(En)):Fi(Object(En)).forEach(function(Xn){Object.defineProperty(Qt,Xn,Object.getOwnPropertyDescriptor(En,Xn))})}return Qt}var Wn=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,vn=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,tr="".concat(Wn," ").concat(vn).split(/[\s\n]+/),mi="aria-",gi="data-";function ti(Qt,ln){return Qt.indexOf(ln)===0}function Hn(Qt){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,En;ln===!1?En={aria:!0,data:!0,attr:!0}:ln===!0?En={aria:!0}:En=Vn({},ln);var Xn={};return Object.keys(Qt).forEach(function(Rr){(En.aria&&(Rr==="role"||ti(Rr,mi))||En.data&&ti(Rr,gi)||En.attr&&tr.includes(Rr))&&(Xn[Rr]=Qt[Rr])}),Xn}function Cr(Qt,ln){if(Qt==null)return{};var En={};for(var Xn in Qt)if({}.hasOwnProperty.call(Qt,Xn)){if(ln.indexOf(Xn)!==-1)continue;En[Xn]=Qt[Xn]}return En}function Ri(Qt,ln){if(Qt==null)return{};var En,Xn,Rr=Cr(Qt,ln);if(Object.getOwnPropertySymbols){var vi=Object.getOwnPropertySymbols(Qt);for(Xn=0;Xn<vi.length;Xn++)En=vi[Xn],ln.indexOf(En)===-1&&{}.propertyIsEnumerable.call(Qt,En)&&(Rr[En]=Qt[En])}return Rr}var _i=ae(33993);function Ur(Qt,ln,En){var Xn=pe.useRef({});return(!("value"in Xn.current)||En(Xn.current.condition,ln))&&(Xn.current.value=Qt(),Xn.current.condition=ln),Xn.current.value}var Pn=Symbol.for("react.element"),xi=Symbol.for("react.transitional.element"),ji=Symbol.for("react.fragment");function Xo(Qt){return Qt&&_typeof(Qt)==="object"&&(Qt.$$typeof===Pn||Qt.$$typeof===xi)&&Qt.type===ji}var wr=Number(pe.version.split(".")[0]),Gi=function(ln,En){typeof ln=="function"?ln(En):hr(ln)==="object"&&ln&&"current"in ln&&(ln.current=En)},Jr=function(){for(var ln=arguments.length,En=new Array(ln),Xn=0;Xn<ln;Xn++)En[Xn]=arguments[Xn];var Rr=En.filter(Boolean);return Rr.length<=1?Rr[0]:function(vi){En.forEach(function(ni){Gi(ni,vi)})}},ls=function(){for(var ln=arguments.length,En=new Array(ln),Xn=0;Xn<ln;Xn++)En[Xn]=arguments[Xn];return Ur(function(){return Jr.apply(void 0,En)},En,function(Rr,vi){return Rr.length!==vi.length||Rr.every(function(ni,xr){return ni!==vi[xr]})})},Pa=function(ln){var En,Xn;if(!ln)return!1;if(Oi(ln)&&wr>=19)return!0;var Rr=isMemo(ln)?ln.type.type:ln.type;return!(typeof Rr=="function"&&!((En=Rr.prototype)!==null&&En!==void 0&&En.render)&&Rr.$$typeof!==ForwardRef||typeof ln=="function"&&!((Xn=ln.prototype)!==null&&Xn!==void 0&&Xn.render)&&ln.$$typeof!==ForwardRef)};function Oi(Qt){return isValidElement(Qt)&&!isFragment(Qt)}var Yi=function(ln){return Oi(ln)&&Pa(ln)},uo=function(ln){if(ln&&Oi(ln)){var En=ln;return En.props.propertyIsEnumerable("ref")?En.props.ref:En.ref}return null},ba=["prefixCls","className","containerRef"],Go=function(ln){var En=ln.prefixCls,Xn=ln.className,Rr=ln.containerRef,vi=Ri(ln,ba),ni=pe.useContext(ao),xr=ni.panel,xt=ls(xr,Rr);return pe.createElement("div",ai({className:ir()("".concat(En,"-content"),Xn),role:"dialog",ref:xt},Hn(ln,{aria:!0}),{"aria-modal":"true"},vi))},zr=Go,vo={},sl=[],gs=function(ln){sl.push(ln)};function es(Qt,ln){if(0)var En}function Mn(Qt,ln){if(0)var En}function Co(){vo={}}function Ta(Qt,ln,En){!ln&&!vo[En]&&(Qt(!1,En),vo[En]=!0)}function lo(Qt,ln){Ta(es,Qt,ln)}function oa(Qt,ln){Ta(Mn,Qt,ln)}lo.preMessage=gs,lo.resetWarned=Co,lo.noteOnce=oa;var fa=lo;function Ka(Qt){return typeof Qt=="string"&&String(Number(Qt))===Qt?(fa(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Qt)):Qt}function qo(Qt){warning(!("wrapperClassName"in Qt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Qt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var aa={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function za(Qt,ln){var En,Xn,Rr,vi=Qt.prefixCls,ni=Qt.open,xr=Qt.placement,xt=Qt.inline,Po=Qt.push,zo=Qt.forceRender,ya=Qt.autoFocus,xa=Qt.keyboard,Sa=Qt.classNames,ha=Qt.rootClassName,Gt=Qt.rootStyle,fr=Qt.zIndex,pr=Qt.className,Tr=Qt.id,Ln=Qt.style,or=Qt.motion,vr=Qt.width,sn=Qt.height,mr=Qt.children,Vr=Qt.mask,no=Qt.maskClosable,Xi=Qt.maskMotion,zi=Qt.maskClassName,_o=Qt.maskStyle,sa=Qt.afterOpenChange,Va=Qt.onClose,os=Qt.onMouseEnter,Zs=Qt.onMouseOver,Un=Qt.onMouseLeave,ws=Qt.onClick,Ds=Qt.onKeyDown,dl=Qt.onKeyUp,_a=Qt.styles,js=Qt.drawerRender,ol=pe.useRef(),Tl=pe.useRef(),Wa=pe.useRef();pe.useImperativeHandle(ln,function(){return ol.current});var vs=function(Dl){var la=Dl.keyCode,gu=Dl.shiftKey;switch(la){case ur.TAB:{if(la===ur.TAB){if(!gu&&document.activeElement===Wa.current){var Pl;(Pl=Tl.current)===null||Pl===void 0||Pl.focus({preventScroll:!0})}else if(gu&&document.activeElement===Tl.current){var Is;(Is=Wa.current)===null||Is===void 0||Is.focus({preventScroll:!0})}}break}case ur.ESC:{Va&&xa&&(Dl.stopPropagation(),Va(Dl));break}}};pe.useEffect(function(){if(ni&&ya){var Qs;(Qs=ol.current)===null||Qs===void 0||Qs.focus({preventScroll:!0})}},[ni]);var Io=pe.useState(!1),pa=rt(Io,2),Ua=pa[0],as=pa[1],Bi=pe.useContext(ui),Xs;typeof Po=="boolean"?Xs=Po?{}:{distance:0}:Xs=Po||{};var Ls=(En=(Xn=(Rr=Xs)===null||Rr===void 0?void 0:Rr.distance)!==null&&Xn!==void 0?Xn:Bi==null?void 0:Bi.pushDistance)!==null&&En!==void 0?En:180,Gs=pe.useMemo(function(){return{pushDistance:Ls,push:function(){as(!0)},pull:function(){as(!1)}}},[Ls]);pe.useEffect(function(){if(ni){var Qs;Bi==null||(Qs=Bi.push)===null||Qs===void 0||Qs.call(Bi)}else{var Dl;Bi==null||(Dl=Bi.pull)===null||Dl===void 0||Dl.call(Bi)}},[ni]),pe.useEffect(function(){return function(){var Qs;Bi==null||(Qs=Bi.pull)===null||Qs===void 0||Qs.call(Bi)}},[]);var vl=Vr&&pe.createElement(We.Z,ai({key:"mask"},Xi,{visible:ni}),function(Qs,Dl){var la=Qs.className,gu=Qs.style;return pe.createElement("div",{className:ir()("".concat(vi,"-mask"),la,Sa==null?void 0:Sa.mask,zi),style:Me(Me(Me({},gu),_o),_a==null?void 0:_a.mask),onClick:no&&ni?Va:void 0,ref:Dl})}),Ml=typeof or=="function"?or(xr):or,ci={};if(Ua&&Ls)switch(xr){case"top":ci.transform="translateY(".concat(Ls,"px)");break;case"bottom":ci.transform="translateY(".concat(-Ls,"px)");break;case"left":ci.transform="translateX(".concat(Ls,"px)");break;default:ci.transform="translateX(".concat(-Ls,"px)");break}xr==="left"||xr==="right"?ci.width=Ka(vr):ci.height=Ka(sn);var zs={onMouseEnter:os,onMouseOver:Zs,onMouseLeave:Un,onClick:ws,onKeyDown:Ds,onKeyUp:dl},Vs=pe.createElement(We.Z,ai({key:"panel"},Ml,{visible:ni,forceRender:zo,onVisibleChanged:function(Dl){sa==null||sa(Dl)},removeOnLeave:!1,leavedClassName:"".concat(vi,"-content-wrapper-hidden")}),function(Qs,Dl){var la=Qs.className,gu=Qs.style,Pl=pe.createElement(zr,ai({id:Tr,containerRef:Dl,prefixCls:vi,className:ir()(pr,Sa==null?void 0:Sa.content),style:Me(Me({},Ln),_a==null?void 0:_a.content)},Hn(Qt,{aria:!0}),zs),mr);return pe.createElement("div",ai({className:ir()("".concat(vi,"-content-wrapper"),Sa==null?void 0:Sa.wrapper,la),style:Me(Me(Me({},ci),gu),_a==null?void 0:_a.wrapper)},Hn(Qt,{data:!0})),js?js(Pl):Pl)}),Ul=Me({},Gt);return fr&&(Ul.zIndex=fr),pe.createElement(ui.Provider,{value:Gs},pe.createElement("div",{className:ir()(vi,"".concat(vi,"-").concat(xr),ha,Oe(Oe({},"".concat(vi,"-open"),ni),"".concat(vi,"-inline"),xt)),style:Ul,tabIndex:-1,ref:ol,onKeyDown:vs},vl,pe.createElement("div",{tabIndex:0,ref:Tl,style:aa,"aria-hidden":"true","data-sentinel":"start"}),Vs,pe.createElement("div",{tabIndex:0,ref:Wa,style:aa,"aria-hidden":"true","data-sentinel":"end"})))}var Ar=pe.forwardRef(za),us=Ar,qt=function(ln){var En=ln.open,Xn=En===void 0?!1:En,Rr=ln.prefixCls,vi=Rr===void 0?"rc-drawer":Rr,ni=ln.placement,xr=ni===void 0?"right":ni,xt=ln.autoFocus,Po=xt===void 0?!0:xt,zo=ln.keyboard,ya=zo===void 0?!0:zo,xa=ln.width,Sa=xa===void 0?378:xa,ha=ln.mask,Gt=ha===void 0?!0:ha,fr=ln.maskClosable,pr=fr===void 0?!0:fr,Tr=ln.getContainer,Ln=ln.forceRender,or=ln.afterOpenChange,vr=ln.destroyOnClose,sn=ln.onMouseEnter,mr=ln.onMouseOver,Vr=ln.onMouseLeave,no=ln.onClick,Xi=ln.onKeyDown,zi=ln.onKeyUp,_o=ln.panelRef,sa=pe.useState(!1),Va=rt(sa,2),os=Va[0],Zs=Va[1],Un=pe.useState(!1),ws=rt(Un,2),Ds=ws[0],dl=ws[1];fn(function(){dl(!0)},[]);var _a=Ds?Xn:!1,js=pe.useRef(),ol=pe.useRef();fn(function(){_a&&(ol.current=document.activeElement)},[_a]);var Tl=function(Ua){var as;if(Zs(Ua),or==null||or(Ua),!Ua&&ol.current&&!((as=js.current)!==null&&as!==void 0&&as.contains(ol.current))){var Bi;(Bi=ol.current)===null||Bi===void 0||Bi.focus({preventScroll:!0})}},Wa=pe.useMemo(function(){return{panel:_o}},[_o]);if(!Ln&&!os&&!_a&&vr)return null;var vs={onMouseEnter:sn,onMouseOver:mr,onMouseLeave:Vr,onClick:no,onKeyDown:Xi,onKeyUp:zi},Io=Me(Me({},ln),{},{open:_a,prefixCls:vi,placement:xr,autoFocus:Po,keyboard:ya,width:Sa,mask:Gt,maskClosable:pr,inline:Tr===!1,afterOpenChange:Tl,ref:js},vs);return pe.createElement(ao.Provider,{value:Wa},pe.createElement(to,{open:_a||Ln||os,autoDestroy:!1,getContainer:Tr,autoLock:Gt&&(_a||os)},pe.createElement(us,Io)))},At=qt,Nr=At},26819:function(Ke,we){"use strict";var ae;var ie=typeof Symbol=="function"&&Symbol.for,Pe=ie?Symbol.for("react.element"):60103,Fe=ie?Symbol.for("react.portal"):60106,Oe=ie?Symbol.for("react.fragment"):60107,tt=ie?Symbol.for("react.strict_mode"):60108,Me=ie?Symbol.for("react.profiler"):60114,_e=ie?Symbol.for("react.provider"):60109,ut=ie?Symbol.for("react.context"):60110,et=ie?Symbol.for("react.async_mode"):60111,lt=ie?Symbol.for("react.concurrent_mode"):60111,Et=ie?Symbol.for("react.forward_ref"):60112,rt=ie?Symbol.for("react.suspense"):60113,_t=ie?Symbol.for("react.suspense_list"):60120,Ge=ie?Symbol.for("react.memo"):60115,te=ie?Symbol.for("react.lazy"):60116,ee=ie?Symbol.for("react.block"):60121,de=ie?Symbol.for("react.fundamental"):60117,le=ie?Symbol.for("react.responder"):60118,pe=ie?Symbol.for("react.scope"):60119;function me(be){if(typeof be=="object"&&be!==null){var Be=be.$$typeof;switch(Be){case Pe:switch(be=be.type,be){case et:case lt:case Oe:case Me:case tt:case rt:return be;default:switch(be=be&&be.$$typeof,be){case ut:case Et:case te:case Ge:case _e:return be;default:return Be}}case Fe:return Be}}}function xe(be){return me(be)===lt}ae=et,ae=lt,ae=ut,ae=_e,ae=Pe,ae=Et,ae=Oe,ae=te,ae=Ge,ae=Fe,ae=Me,ae=tt,ae=rt,ae=function(be){return xe(be)||me(be)===et},ae=xe,ae=function(be){return me(be)===ut},ae=function(be){return me(be)===_e},ae=function(be){return typeof be=="object"&&be!==null&&be.$$typeof===Pe},ae=function(be){return me(be)===Et},ae=function(be){return me(be)===Oe},ae=function(be){return me(be)===te},we.isMemo=function(be){return me(be)===Ge},ae=function(be){return me(be)===Fe},ae=function(be){return me(be)===Me},ae=function(be){return me(be)===tt},ae=function(be){return me(be)===rt},ae=function(be){return typeof be=="string"||typeof be=="function"||be===Oe||be===lt||be===Me||be===tt||be===rt||be===_t||typeof be=="object"&&be!==null&&(be.$$typeof===te||be.$$typeof===Ge||be.$$typeof===_e||be.$$typeof===ut||be.$$typeof===Et||be.$$typeof===de||be.$$typeof===le||be.$$typeof===pe||be.$$typeof===ee)},ae=me},18459:function(Ke,we,ae){"use strict";Ke.exports=ae(26819)},16651:function(Ke,we){"use strict";var ae;var ie=Symbol.for("react.element"),Pe=Symbol.for("react.portal"),Fe=Symbol.for("react.fragment"),Oe=Symbol.for("react.strict_mode"),tt=Symbol.for("react.profiler"),Me=Symbol.for("react.provider"),_e=Symbol.for("react.context"),ut=Symbol.for("react.server_context"),et=Symbol.for("react.forward_ref"),lt=Symbol.for("react.suspense"),Et=Symbol.for("react.suspense_list"),rt=Symbol.for("react.memo"),_t=Symbol.for("react.lazy"),Ge=Symbol.for("react.offscreen"),te;te=Symbol.for("react.module.reference");function ee(de){if(typeof de=="object"&&de!==null){var le=de.$$typeof;switch(le){case ie:switch(de=de.type,de){case Fe:case tt:case Oe:case lt:case Et:return de;default:switch(de=de&&de.$$typeof,de){case ut:case _e:case et:case _t:case rt:case Me:return de;default:return le}}case Pe:return le}}}ae=_e,ae=Me,ae=ie,ae=et,ae=Fe,ae=_t,ae=rt,ae=Pe,ae=tt,ae=Oe,ae=lt,ae=Et,ae=function(){return!1},ae=function(){return!1},ae=function(de){return ee(de)===_e},ae=function(de){return ee(de)===Me},ae=function(de){return typeof de=="object"&&de!==null&&de.$$typeof===ie},ae=function(de){return ee(de)===et},ae=function(de){return ee(de)===Fe},ae=function(de){return ee(de)===_t},ae=function(de){return ee(de)===rt},ae=function(de){return ee(de)===Pe},ae=function(de){return ee(de)===tt},ae=function(de){return ee(de)===Oe},ae=function(de){return ee(de)===lt},ae=function(de){return ee(de)===Et},ae=function(de){return typeof de=="string"||typeof de=="function"||de===Fe||de===tt||de===Oe||de===lt||de===Et||de===Ge||typeof de=="object"&&de!==null&&(de.$$typeof===_t||de.$$typeof===rt||de.$$typeof===Me||de.$$typeof===_e||de.$$typeof===et||de.$$typeof===te||de.getModuleId!==void 0)},ae=ee},33993:function(Ke,we,ae){"use strict";ae(16651)},64909:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return us}});var ie=ae(87462),Pe=ae(1413),Fe=ae(4942),Oe=ae(97685),tt=ae(71002),Me=ae(45987),_e=ae(94184),ut=ae.n(_e),et=/margin|padding|width|height|max|min|offset/,lt={left:!0,top:!0},Et={cssFloat:1,styleFloat:1,float:1};function rt(qt){return qt.nodeType===1?qt.ownerDocument.defaultView.getComputedStyle(qt,null):{}}function _t(qt,At,Nr){if(At=At.toLowerCase(),Nr==="auto"){if(At==="height")return qt.offsetHeight;if(At==="width")return qt.offsetWidth}return At in lt||(lt[At]=et.test(At)),lt[At]?parseFloat(Nr)||0:Nr}function Ge(qt,At){var Nr=arguments.length,Qt=rt(qt);return At=Et[At]?"cssFloat"in qt.style?"cssFloat":"styleFloat":At,Nr===1?Qt:_t(qt,At,Qt[At]||qt.style[At])}function te(qt,At,Nr){var Qt=arguments.length;if(At=Et[At]?"cssFloat"in qt.style?"cssFloat":"styleFloat":At,Qt===3)return typeof Nr=="number"&&et.test(At)&&(Nr="".concat(Nr,"px")),qt.style[At]=Nr,Nr;for(var ln in At)At.hasOwnProperty(ln)&&te(qt,ln,At[ln]);return rt(qt)}function ee(qt){return qt===document.body?document.documentElement.clientWidth:qt.offsetWidth}function de(qt){return qt===document.body?window.innerHeight||document.documentElement.clientHeight:qt.offsetHeight}function le(){var qt=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),At=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:qt,height:At}}function pe(){var qt=document.documentElement.clientWidth,At=window.innerHeight||document.documentElement.clientHeight;return{width:qt,height:At}}function me(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function xe(qt){var At=qt.getBoundingClientRect(),Nr=document.documentElement;return{left:At.left+(window.pageXOffset||Nr.scrollLeft)-(Nr.clientLeft||document.body.clientLeft||0),top:At.top+(window.pageYOffset||Nr.scrollTop)-(Nr.clientTop||document.body.clientTop||0)}}var be=ae(67294),Be=ae.t(be,2);function at(qt){var At=be.useRef();At.current=qt;var Nr=be.useCallback(function(){for(var Qt,ln=arguments.length,En=new Array(ln),Xn=0;Xn<ln;Xn++)En[Xn]=arguments[Xn];return(Qt=At.current)===null||Qt===void 0?void 0:Qt.call.apply(Qt,[At].concat(En))},[]);return Nr}function dt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var gt=dt()?be.useLayoutEffect:be.useEffect,ft=function(At,Nr){var Qt=be.useRef(!0);gt(function(){return At(Qt.current)},Nr),gt(function(){return Qt.current=!1,function(){Qt.current=!0}},[])},Nt=function(At,Nr){ft(function(Qt){if(!Qt)return At()},Nr)},Tt=null;function Ct(qt){var At=be.useRef(!1),Nr=be.useState(qt),Qt=(0,Oe.Z)(Nr,2),ln=Qt[0],En=Qt[1];be.useEffect(function(){return At.current=!1,function(){At.current=!0}},[]);function Xn(Rr,vi){vi&&At.current||En(Rr)}return[ln,Xn]}function Vt(qt){return qt!==void 0}function Rt(qt,At){var Nr=At||{},Qt=Nr.defaultValue,ln=Nr.value,En=Nr.onChange,Xn=Nr.postState,Rr=Ct(function(){return Vt(ln)?ln:Vt(Qt)?typeof Qt=="function"?Qt():Qt:typeof qt=="function"?qt():qt}),vi=(0,Oe.Z)(Rr,2),ni=vi[0],xr=vi[1],xt=ln!==void 0?ln:ni,Po=Xn?Xn(xt):xt,zo=at(En),ya=Ct([xt]),xa=(0,Oe.Z)(ya,2),Sa=xa[0],ha=xa[1];Nt(function(){var fr=Sa[0];ni!==fr&&zo(ni,fr)},[Sa]),Nt(function(){Vt(ln)||xr(ln)},[ln]);var Gt=at(function(fr,pr){xr(fr,pr),ha([xt],pr)});return[Po,Gt]}var nn=ae(2788),Cn=be.createContext({});function un(qt,At){if(!qt)return!1;if(qt.contains)return qt.contains(At);for(var Nr=At;Nr;){if(Nr===qt)return!0;Nr=Nr.parentNode}return!1}function Nn(){var qt=(0,Pe.Z)({},Be);return qt.useId}var wt=0;function pt(){}function Ie(qt){var At=be.useState("ssr-id"),Nr=(0,Oe.Z)(At,2),Qt=Nr[0],ln=Nr[1],En=Nn(),Xn=En==null?void 0:En();return be.useEffect(function(){if(!En){var Rr=wt;wt+=1,ln("rc_unique_".concat(Rr))}},[]),qt||Xn||Qt}var on={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(At){var Nr=At.keyCode;if(At.altKey&&!At.ctrlKey||At.metaKey||Nr>=on.F1&&Nr<=on.F12)return!1;switch(Nr){case on.ALT:case on.CAPS_LOCK:case on.CONTEXT_MENU:case on.CTRL:case on.DOWN:case on.END:case on.ESC:case on.HOME:case on.INSERT:case on.LEFT:case on.MAC_FF_META:case on.META:case on.NUMLOCK:case on.NUM_CENTER:case on.PAGE_DOWN:case on.PAGE_UP:case on.PAUSE:case on.PRINT_SCREEN:case on.RIGHT:case on.SHIFT:case on.UP:case on.WIN_KEY:case on.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(At){if(At>=on.ZERO&&At<=on.NINE||At>=on.NUM_ZERO&&At<=on.NUM_MULTIPLY||At>=on.A&&At<=on.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&At===0)return!0;switch(At){case on.SPACE:case on.QUESTION_MARK:case on.NUM_PLUS:case on.NUM_MINUS:case on.NUM_PERIOD:case on.NUM_DIVISION:case on.SEMICOLON:case on.DASH:case on.EQUALS:case on.COMMA:case on.PERIOD:case on.SLASH:case on.APOSTROPHE:case on.SINGLE_QUOTE:case on.OPEN_SQUARE_BRACKET:case on.BACKSLASH:case on.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Bn=on,Zt=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,zn=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,_n="".concat(Zt," ").concat(zn).split(/[\s\n]+/),nr="aria-",Ft="data-";function Wt(qt,At){return qt.indexOf(At)===0}function ht(qt){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Nr;At===!1?Nr={aria:!0,data:!0,attr:!0}:At===!0?Nr={aria:!0}:Nr=(0,Pe.Z)({},At);var Qt={};return Object.keys(qt).forEach(function(ln){(Nr.aria&&(ln==="role"||Wt(ln,nr))||Nr.data&&Wt(ln,Ft)||Nr.attr&&_n.includes(ln))&&(Qt[ln]=qt[ln])}),Qt}function tn(qt,At,Nr){var Qt=At;return!Qt&&Nr&&(Qt="".concat(qt,"-").concat(Nr)),Qt}function an(qt,At){var Nr=qt["page".concat(At?"Y":"X","Offset")],Qt="scroll".concat(At?"Top":"Left");if(typeof Nr!="number"){var ln=qt.document;Nr=ln.documentElement[Qt],typeof Nr!="number"&&(Nr=ln.body[Qt])}return Nr}function ct(qt){var At=qt.getBoundingClientRect(),Nr={left:At.left,top:At.top},Qt=qt.ownerDocument,ln=Qt.defaultView||Qt.parentWindow;return Nr.left+=an(ln),Nr.top+=an(ln,!0),Nr}var Ue=ae(62874),He=ae(59864);function it(qt,At,Nr){var Qt=be.useRef({});return(!("value"in Qt.current)||Nr(Qt.current.condition,At))&&(Qt.current.value=qt(),Qt.current.condition=At),Qt.current.value}function vt(qt,At){typeof qt=="function"?qt(At):(0,tt.Z)(qt)==="object"&&qt&&"current"in qt&&(qt.current=At)}function Ye(){for(var qt=arguments.length,At=new Array(qt),Nr=0;Nr<qt;Nr++)At[Nr]=arguments[Nr];var Qt=At.filter(function(ln){return ln});return Qt.length<=1?Qt[0]:function(ln){At.forEach(function(En){vt(En,ln)})}}function It(){for(var qt=arguments.length,At=new Array(qt),Nr=0;Nr<qt;Nr++)At[Nr]=arguments[Nr];return it(function(){return Ye.apply(void 0,At)},At,function(Qt,ln){return Qt.length===ln.length&&Qt.every(function(En,Xn){return En===ln[Xn]})})}function In(qt){var At,Nr,Qt=isMemo(qt)?qt.type.type:qt.type;return!(typeof Qt=="function"&&!((At=Qt.prototype)!==null&&At!==void 0&&At.render)||typeof qt=="function"&&!((Nr=qt.prototype)!==null&&Nr!==void 0&&Nr.render))}var Kn=be.memo(function(qt){var At=qt.children;return At},function(qt,At){var Nr=At.shouldUpdate;return!Nr}),dr={width:0,height:0,overflow:"hidden",outline:"none"},Rn={outline:"none"},er=be.forwardRef(function(qt,At){var Nr=qt.prefixCls,Qt=qt.className,ln=qt.style,En=qt.title,Xn=qt.ariaId,Rr=qt.footer,vi=qt.closable,ni=qt.closeIcon,xr=qt.onClose,xt=qt.children,Po=qt.bodyStyle,zo=qt.bodyProps,ya=qt.modalRender,xa=qt.onMouseDown,Sa=qt.onMouseUp,ha=qt.holderRef,Gt=qt.visible,fr=qt.forceRender,pr=qt.width,Tr=qt.height,Ln=qt.classNames,or=qt.styles,vr=be.useContext(Cn),sn=vr.panel,mr=It(ha,sn),Vr=(0,be.useRef)(),no=(0,be.useRef)();be.useImperativeHandle(At,function(){return{focus:function(){var Ds;(Ds=Vr.current)===null||Ds===void 0||Ds.focus({preventScroll:!0})},changeActive:function(Ds){var dl=document,_a=dl.activeElement;Ds&&_a===no.current?Vr.current.focus({preventScroll:!0}):!Ds&&_a===Vr.current&&no.current.focus({preventScroll:!0})}}});var Xi={};pr!==void 0&&(Xi.width=pr),Tr!==void 0&&(Xi.height=Tr);var zi=Rr?be.createElement("div",{className:ut()("".concat(Nr,"-footer"),Ln==null?void 0:Ln.footer),style:(0,Pe.Z)({},or==null?void 0:or.footer)},Rr):null,_o=En?be.createElement("div",{className:ut()("".concat(Nr,"-header"),Ln==null?void 0:Ln.header),style:(0,Pe.Z)({},or==null?void 0:or.header)},be.createElement("div",{className:"".concat(Nr,"-title"),id:Xn},En)):null,sa=(0,be.useMemo)(function(){return(0,tt.Z)(vi)==="object"&&vi!==null?vi:vi?{closeIcon:ni!=null?ni:be.createElement("span",{className:"".concat(Nr,"-close-x")})}:{}},[vi,ni,Nr]),Va=ht(sa,!0),os=(0,tt.Z)(vi)==="object"&&vi.disabled,Zs=vi?be.createElement("button",(0,ie.Z)({type:"button",onClick:xr,"aria-label":"Close"},Va,{className:"".concat(Nr,"-close"),disabled:os}),sa.closeIcon):null,Un=be.createElement("div",{className:ut()("".concat(Nr,"-content"),Ln==null?void 0:Ln.content),style:or==null?void 0:or.content},Zs,_o,be.createElement("div",(0,ie.Z)({className:ut()("".concat(Nr,"-body"),Ln==null?void 0:Ln.body),style:(0,Pe.Z)((0,Pe.Z)({},Po),or==null?void 0:or.body)},zo),xt),zi);return be.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":En?Xn:null,"aria-modal":"true",ref:mr,style:(0,Pe.Z)((0,Pe.Z)({},ln),Xi),className:ut()(Nr,Qt),onMouseDown:xa,onMouseUp:Sa},be.createElement("div",{ref:Vr,tabIndex:0,style:Rn},be.createElement(Kn,{shouldUpdate:Gt||fr},ya?ya(Un):Un)),be.createElement("div",{tabIndex:0,ref:no,style:dr}))}),yn=er,Er=be.forwardRef(function(qt,At){var Nr=qt.prefixCls,Qt=qt.title,ln=qt.style,En=qt.className,Xn=qt.visible,Rr=qt.forceRender,vi=qt.destroyOnClose,ni=qt.motionName,xr=qt.ariaId,xt=qt.onVisibleChanged,Po=qt.mousePosition,zo=(0,be.useRef)(),ya=be.useState(),xa=(0,Oe.Z)(ya,2),Sa=xa[0],ha=xa[1],Gt={};Sa&&(Gt.transformOrigin=Sa);function fr(){var pr=ct(zo.current);ha(Po&&(Po.x||Po.y)?"".concat(Po.x-pr.left,"px ").concat(Po.y-pr.top,"px"):"")}return be.createElement(Ue.Z,{visible:Xn,onVisibleChanged:xt,onAppearPrepare:fr,onEnterPrepare:fr,forceRender:Rr,motionName:ni,removeOnLeave:vi,ref:zo},function(pr,Tr){var Ln=pr.className,or=pr.style;return be.createElement(yn,(0,ie.Z)({},qt,{ref:At,title:Qt,ariaId:xr,prefixCls:Nr,holderRef:Tr,style:(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},or),ln),Gt),className:ut()(En,Ln)}))})});Er.displayName="Content";var sr=Er,Hr=function(At){var Nr=At.prefixCls,Qt=At.style,ln=At.visible,En=At.maskProps,Xn=At.motionName,Rr=At.className;return be.createElement(Ue.Z,{key:"mask",visible:ln,motionName:Xn,leavedClassName:"".concat(Nr,"-mask-hidden")},function(vi,ni){var xr=vi.className,xt=vi.style;return be.createElement("div",(0,ie.Z)({ref:ni,style:(0,Pe.Z)((0,Pe.Z)({},xt),Qt),className:ut()("".concat(Nr,"-mask"),xr,Rr)},En))})},An=Hr,yi={};function ri(qt,At){}function bn(qt,At){}function Xe(){yi={}}function Ji(qt,At,Nr){!At&&!yi[Nr]&&(qt(!1,Nr),yi[Nr]=!0)}function Qn(qt,At){Ji(ri,qt,At)}function Sn(qt,At){Ji(bn,qt,At)}var to=null,Ki=function(At){var Nr=At.prefixCls,Qt=Nr===void 0?"rc-dialog":Nr,ln=At.zIndex,En=At.visible,Xn=En===void 0?!1:En,Rr=At.keyboard,vi=Rr===void 0?!0:Rr,ni=At.focusTriggerAfterClose,xr=ni===void 0?!0:ni,xt=At.wrapStyle,Po=At.wrapClassName,zo=At.wrapProps,ya=At.onClose,xa=At.afterOpenChange,Sa=At.afterClose,ha=At.transitionName,Gt=At.animation,fr=At.closable,pr=fr===void 0?!0:fr,Tr=At.mask,Ln=Tr===void 0?!0:Tr,or=At.maskTransitionName,vr=At.maskAnimation,sn=At.maskClosable,mr=sn===void 0?!0:sn,Vr=At.maskStyle,no=At.maskProps,Xi=At.rootClassName,zi=At.classNames,_o=At.styles,sa=(0,be.useRef)(),Va=(0,be.useRef)(),os=(0,be.useRef)(),Zs=be.useState(Xn),Un=(0,Oe.Z)(Zs,2),ws=Un[0],Ds=Un[1],dl=Ie();function _a(){un(Va.current,document.activeElement)||(sa.current=document.activeElement)}function js(){if(!un(Va.current,document.activeElement)){var Xs;(Xs=os.current)===null||Xs===void 0||Xs.focus()}}function ol(Xs){if(Xs)js();else{if(Ds(!1),Ln&&sa.current&&xr){try{sa.current.focus({preventScroll:!0})}catch(Ls){}sa.current=null}ws&&(Sa==null||Sa())}xa==null||xa(Xs)}function Tl(Xs){ya==null||ya(Xs)}var Wa=(0,be.useRef)(!1),vs=(0,be.useRef)(),Io=function(){clearTimeout(vs.current),Wa.current=!0},pa=function(){vs.current=setTimeout(function(){Wa.current=!1})},Ua=null;mr&&(Ua=function(Ls){Wa.current?Wa.current=!1:Va.current===Ls.target&&Tl(Ls)});function as(Xs){if(vi&&Xs.keyCode===Bn.ESC){Xs.stopPropagation(),Tl(Xs);return}Xn&&Xs.keyCode===Bn.TAB&&os.current.changeActive(!Xs.shiftKey)}(0,be.useEffect)(function(){Xn&&(Ds(!0),_a())},[Xn]),(0,be.useEffect)(function(){return function(){clearTimeout(vs.current)}},[]);var Bi=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({zIndex:ln},xt),_o==null?void 0:_o.wrapper),{},{display:ws?null:"none"});return be.createElement("div",(0,ie.Z)({className:ut()("".concat(Qt,"-root"),Xi)},ht(At,{data:!0})),be.createElement(An,{prefixCls:Qt,visible:Ln&&Xn,motionName:tn(Qt,or,vr),style:(0,Pe.Z)((0,Pe.Z)({zIndex:ln},Vr),_o==null?void 0:_o.mask),maskProps:no,className:zi==null?void 0:zi.mask}),be.createElement("div",(0,ie.Z)({tabIndex:-1,onKeyDown:as,className:ut()("".concat(Qt,"-wrap"),Po,zi==null?void 0:zi.wrapper),ref:Va,onClick:Ua,style:Bi},zo),be.createElement(sr,(0,ie.Z)({},At,{onMouseDown:Io,onMouseUp:pa,ref:os,closable:pr,ariaId:dl,prefixCls:Qt,visible:Xn&&ws,onClose:Tl,onVisibleChanged:ol,motionName:tn(Qt,ha,Gt)}))))},Zr=Ki,hi=function(At){var Nr=At.visible,Qt=At.getContainer,ln=At.forceRender,En=At.destroyOnClose,Xn=En===void 0?!1:En,Rr=At.afterClose,vi=At.panelRef,ni=be.useState(Nr),xr=(0,Oe.Z)(ni,2),xt=xr[0],Po=xr[1],zo=be.useMemo(function(){return{panel:vi}},[vi]);return be.useEffect(function(){Nr&&Po(!0)},[Nr]),!ln&&Xn&&!xt?null:be.createElement(Cn.Provider,{value:zo},be.createElement(nn.Z,{open:Nr||ln||xt,autoDestroy:!1,getContainer:Qt,autoLock:Nr||xt},be.createElement(Zr,(0,ie.Z)({},At,{destroyOnClose:Xn,afterClose:function(){Rr==null||Rr(),Po(!1)}}))))};hi.displayName="Dialog";var Ir=hi,fn=Ir,Hi=ae(73935);function ao(qt,At,Nr,Qt){var ln=Hi.unstable_batchedUpdates?function(Xn){Hi.unstable_batchedUpdates(Nr,Xn)}:Nr;return qt!=null&&qt.addEventListener&&qt.addEventListener(At,ln,Qt),{remove:function(){qt!=null&&qt.removeEventListener&&qt.removeEventListener(At,ln,Qt)}}}var ui={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(At){var Nr=At.keyCode;if(At.altKey&&!At.ctrlKey||At.metaKey||Nr>=ui.F1&&Nr<=ui.F12)return!1;switch(Nr){case ui.ALT:case ui.CAPS_LOCK:case ui.CONTEXT_MENU:case ui.CTRL:case ui.DOWN:case ui.END:case ui.ESC:case ui.HOME:case ui.INSERT:case ui.LEFT:case ui.MAC_FF_META:case ui.META:case ui.NUMLOCK:case ui.NUM_CENTER:case ui.PAGE_DOWN:case ui.PAGE_UP:case ui.PAUSE:case ui.PRINT_SCREEN:case ui.RIGHT:case ui.SHIFT:case ui.UP:case ui.WIN_KEY:case ui.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(At){if(At>=ui.ZERO&&At<=ui.NINE||At>=ui.NUM_ZERO&&At<=ui.NUM_MULTIPLY||At>=ui.A&&At<=ui.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&At===0)return!0;switch(At){case ui.SPACE:case ui.QUESTION_MARK:case ui.NUM_PLUS:case ui.NUM_MINUS:case ui.NUM_PERIOD:case ui.NUM_DIVISION:case ui.SEMICOLON:case ui.DASH:case ui.EQUALS:case ui.COMMA:case ui.PERIOD:case ui.SLASH:case ui.APOSTROPHE:case ui.SINGLE_QUOTE:case ui.OPEN_SQUARE_BRACKET:case ui.BACKSLASH:case ui.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ai=ui,Ni=be.createContext(null),ir=function(At){var Nr=At.visible,Qt=At.maskTransitionName,ln=At.getContainer,En=At.prefixCls,Xn=At.rootClassName,Rr=At.icons,vi=At.countRender,ni=At.showSwitch,xr=At.showProgress,xt=At.current,Po=At.transform,zo=At.count,ya=At.scale,xa=At.minScale,Sa=At.maxScale,ha=At.closeIcon,Gt=At.onActive,fr=At.onClose,pr=At.onZoomIn,Tr=At.onZoomOut,Ln=At.onRotateRight,or=At.onRotateLeft,vr=At.onFlipX,sn=At.onFlipY,mr=At.onReset,Vr=At.toolbarRender,no=At.zIndex,Xi=At.image,zi=(0,be.useContext)(Ni),_o=Rr.rotateLeft,sa=Rr.rotateRight,Va=Rr.zoomIn,os=Rr.zoomOut,Zs=Rr.close,Un=Rr.left,ws=Rr.right,Ds=Rr.flipX,dl=Rr.flipY,_a="".concat(En,"-operations-operation");be.useEffect(function(){var Ls=function(vl){vl.keyCode===ai.ESC&&fr()};return Nr&&window.addEventListener("keydown",Ls),function(){window.removeEventListener("keydown",Ls)}},[Nr]);var js=function(Gs,vl){Gs.preventDefault(),Gs.stopPropagation(),Gt(vl)},ol=be.useCallback(function(Ls){var Gs=Ls.type,vl=Ls.disabled,Ml=Ls.onClick,ci=Ls.icon;return be.createElement("div",{key:Gs,className:ut()(_a,"".concat(En,"-operations-operation-").concat(Gs),(0,Fe.Z)({},"".concat(En,"-operations-operation-disabled"),!!vl)),onClick:Ml},ci)},[_a,En]),Tl=ni?ol({icon:Un,onClick:function(Gs){return js(Gs,-1)},type:"prev",disabled:xt===0}):void 0,Wa=ni?ol({icon:ws,onClick:function(Gs){return js(Gs,1)},type:"next",disabled:xt===zo-1}):void 0,vs=ol({icon:dl,onClick:sn,type:"flipY"}),Io=ol({icon:Ds,onClick:vr,type:"flipX"}),pa=ol({icon:_o,onClick:or,type:"rotateLeft"}),Ua=ol({icon:sa,onClick:Ln,type:"rotateRight"}),as=ol({icon:os,onClick:Tr,type:"zoomOut",disabled:ya<=xa}),Bi=ol({icon:Va,onClick:pr,type:"zoomIn",disabled:ya===Sa}),Xs=be.createElement("div",{className:"".concat(En,"-operations")},vs,Io,pa,Ua,as,Bi);return be.createElement(Ue.Z,{visible:Nr,motionName:Qt},function(Ls){var Gs=Ls.className,vl=Ls.style;return be.createElement(nn.Z,{open:!0,getContainer:ln!=null?ln:document.body},be.createElement("div",{className:ut()("".concat(En,"-operations-wrapper"),Gs,Xn),style:(0,Pe.Z)((0,Pe.Z)({},vl),{},{zIndex:no})},ha===null?null:be.createElement("button",{className:"".concat(En,"-close"),onClick:fr},ha||Zs),ni&&be.createElement(be.Fragment,null,be.createElement("div",{className:ut()("".concat(En,"-switch-left"),(0,Fe.Z)({},"".concat(En,"-switch-left-disabled"),xt===0)),onClick:function(ci){return js(ci,-1)}},Un),be.createElement("div",{className:ut()("".concat(En,"-switch-right"),(0,Fe.Z)({},"".concat(En,"-switch-right-disabled"),xt===zo-1)),onClick:function(ci){return js(ci,1)}},ws)),be.createElement("div",{className:"".concat(En,"-footer")},xr&&be.createElement("div",{className:"".concat(En,"-progress")},vi?vi(xt+1,zo):"".concat(xt+1," / ").concat(zo)),Vr?Vr(Xs,(0,Pe.Z)((0,Pe.Z)({icons:{prevIcon:Tl,nextIcon:Wa,flipYIcon:vs,flipXIcon:Io,rotateLeftIcon:pa,rotateRightIcon:Ua,zoomOutIcon:as,zoomInIcon:Bi},actions:{onActive:Gt,onFlipY:sn,onFlipX:vr,onRotateLeft:or,onRotateRight:Ln,onZoomOut:Tr,onZoomIn:pr,onReset:mr,onClose:fr},transform:Po},zi?{current:xt,total:zo}:{}),{},{image:Xi})):Xs)))})},We=ir,rr={},ur=[],hr=function(At){ur.push(At)};function Or(qt,At){if(0)var Nr}function jr(qt,At){if(0)var Nr}function si(){rr={}}function Fi(qt,At,Nr){!At&&!rr[Nr]&&(qt(!1,Nr),rr[Nr]=!0)}function Vn(qt,At){Fi(Or,qt,At)}function Wn(qt,At){Fi(jr,qt,At)}Vn.preMessage=hr,Vn.resetWarned=si,Vn.noteOnce=Wn;var vn=Vn;function tr(qt,At){var Nr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Qt=new Set;function ln(En,Xn){var Rr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,vi=Qt.has(En);if(vn(!vi,"Warning: There may be circular references"),vi)return!1;if(En===Xn)return!0;if(Nr&&Rr>1)return!1;Qt.add(En);var ni=Rr+1;if(Array.isArray(En)){if(!Array.isArray(Xn)||En.length!==Xn.length)return!1;for(var xr=0;xr<En.length;xr++)if(!ln(En[xr],Xn[xr],ni))return!1;return!0}if(En&&Xn&&(0,tt.Z)(En)==="object"&&(0,tt.Z)(Xn)==="object"){var xt=Object.keys(En);return xt.length!==Object.keys(Xn).length?!1:xt.every(function(Po){return ln(En[Po],Xn[Po],ni)})}return!1}return ln(qt,At)}var mi=tr,gi=function(At){return+setTimeout(At,16)},ti=function(At){return clearTimeout(At)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(gi=function(At){return window.requestAnimationFrame(At)},ti=function(At){return window.cancelAnimationFrame(At)});var Hn=0,Cr=new Map;function Ri(qt){Cr.delete(qt)}var _i=function(At){var Nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Hn+=1;var Qt=Hn;function ln(En){if(En===0)Ri(Qt),At();else{var Xn=gi(function(){ln(En-1)});Cr.set(Qt,Xn)}}return ln(Nr),Qt};_i.cancel=function(qt){var At=Cr.get(qt);return Ri(At),ti(At)};var Ur=_i,Pn={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function xi(qt,At,Nr,Qt){var ln=(0,be.useRef)(null),En=(0,be.useRef)([]),Xn=(0,be.useState)(Pn),Rr=(0,Oe.Z)(Xn,2),vi=Rr[0],ni=Rr[1],xr=function(ya){ni(Pn),mi(Pn,vi)||Qt==null||Qt({transform:Pn,action:ya})},xt=function(ya,xa){ln.current===null&&(En.current=[],ln.current=Ur(function(){ni(function(Sa){var ha=Sa;return En.current.forEach(function(Gt){ha=(0,Pe.Z)((0,Pe.Z)({},ha),Gt)}),ln.current=null,Qt==null||Qt({transform:ha,action:xa}),ha})})),En.current.push((0,Pe.Z)((0,Pe.Z)({},vi),ya))},Po=function(ya,xa,Sa,ha,Gt){var fr=qt.current,pr=fr.width,Tr=fr.height,Ln=fr.offsetWidth,or=fr.offsetHeight,vr=fr.offsetLeft,sn=fr.offsetTop,mr=ya,Vr=vi.scale*ya;Vr>Nr?(Vr=Nr,mr=Nr/vi.scale):Vr<At&&(Vr=Gt?Vr:At,mr=Vr/vi.scale);var no=Sa!=null?Sa:innerWidth/2,Xi=ha!=null?ha:innerHeight/2,zi=mr-1,_o=zi*pr*.5,sa=zi*Tr*.5,Va=zi*(no-vi.x-vr),os=zi*(Xi-vi.y-sn),Zs=vi.x-(Va-_o),Un=vi.y-(os-sa);if(ya<1&&Vr===1){var ws=Ln*Vr,Ds=or*Vr,dl=pe(),_a=dl.width,js=dl.height;ws<=_a&&Ds<=js&&(Zs=0,Un=0)}xt({x:Zs,y:Un,scale:Vr},xa)};return{transform:vi,resetTransform:xr,updateTransform:xt,dispatchZoomChange:Po}}function ji(qt,At,Nr,Qt){var ln=At+Nr,En=(Nr-Qt)/2;if(Nr>Qt){if(At>0)return(0,Fe.Z)({},qt,En);if(At<0&&ln<Qt)return(0,Fe.Z)({},qt,-En)}else if(At<0||ln>Qt)return(0,Fe.Z)({},qt,At<0?En:-En);return{}}function Xo(qt,At,Nr,Qt){var ln=pe(),En=ln.width,Xn=ln.height,Rr=null;return qt<=En&&At<=Xn?Rr={x:0,y:0}:(qt>En||At>Xn)&&(Rr=(0,Pe.Z)((0,Pe.Z)({},ji("x",Nr,qt,En)),ji("y",Qt,At,Xn))),Rr}var wr=1,Gi=1;function Jr(qt,At,Nr,Qt,ln,En,Xn){var Rr=ln.rotate,vi=ln.scale,ni=ln.x,xr=ln.y,xt=(0,be.useState)(!1),Po=(0,Oe.Z)(xt,2),zo=Po[0],ya=Po[1],xa=(0,be.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),Sa=function(Tr){!At||Tr.button!==0||(Tr.preventDefault(),Tr.stopPropagation(),xa.current={diffX:Tr.pageX-ni,diffY:Tr.pageY-xr,transformX:ni,transformY:xr},ya(!0))},ha=function(Tr){Nr&&zo&&En({x:Tr.pageX-xa.current.diffX,y:Tr.pageY-xa.current.diffY},"move")},Gt=function(){if(Nr&&zo){ya(!1);var Tr=xa.current,Ln=Tr.transformX,or=Tr.transformY,vr=ni!==Ln&&xr!==or;if(!vr)return;var sn=qt.current.offsetWidth*vi,mr=qt.current.offsetHeight*vi,Vr=qt.current.getBoundingClientRect(),no=Vr.left,Xi=Vr.top,zi=Rr%180!==0,_o=Xo(zi?mr:sn,zi?sn:mr,no,Xi);_o&&En((0,Pe.Z)({},_o),"dragRebound")}},fr=function(Tr){if(!(!Nr||Tr.deltaY==0)){var Ln=Math.abs(Tr.deltaY/100),or=Math.min(Ln,Gi),vr=wr+or*Qt;Tr.deltaY>0&&(vr=wr/vr),Xn(vr,"wheel",Tr.clientX,Tr.clientY)}};return(0,be.useEffect)(function(){var pr,Tr,Ln,or;if(At){Ln=ao(window,"mouseup",Gt,!1),or=ao(window,"mousemove",ha,!1);try{window.top!==window.self&&(pr=ao(window.top,"mouseup",Gt,!1),Tr=ao(window.top,"mousemove",ha,!1))}catch(vr){Or(!1,"[rc-image] ".concat(vr))}}return function(){var vr,sn,mr,Vr;(vr=Ln)===null||vr===void 0||vr.remove(),(sn=or)===null||sn===void 0||sn.remove(),(mr=pr)===null||mr===void 0||mr.remove(),(Vr=Tr)===null||Vr===void 0||Vr.remove()}},[Nr,zo,ni,xr,Rr,At]),{isMoving:zo,onMouseDown:Sa,onMouseMove:ha,onMouseUp:Gt,onWheel:fr}}function ls(qt){return new Promise(function(At){if(!qt){At(!1);return}var Nr=document.createElement("img");Nr.onerror=function(){return At(!1)},Nr.onload=function(){return At(!0)},Nr.src=qt})}function Pa(qt){var At=qt.src,Nr=qt.isCustomPlaceholder,Qt=qt.fallback,ln=(0,be.useState)(Nr?"loading":"normal"),En=(0,Oe.Z)(ln,2),Xn=En[0],Rr=En[1],vi=(0,be.useRef)(!1),ni=Xn==="error";(0,be.useEffect)(function(){var zo=!0;return ls(At).then(function(ya){!ya&&zo&&Rr("error")}),function(){zo=!1}},[At]),(0,be.useEffect)(function(){Nr&&!vi.current?Rr("loading"):ni&&Rr("normal")},[At]);var xr=function(){Rr("normal")},xt=function(ya){vi.current=!1,Xn==="loading"&&ya!==null&&ya!==void 0&&ya.complete&&(ya.naturalWidth||ya.naturalHeight)&&(vi.current=!0,xr())},Po=ni&&Qt?{src:Qt}:{onLoad:xr,src:At};return[xt,Po,Xn]}function Oi(qt,At){var Nr=qt.x-At.x,Qt=qt.y-At.y;return Math.hypot(Nr,Qt)}function Yi(qt,At,Nr,Qt){var ln=Oi(qt,Nr),En=Oi(At,Qt);if(ln===0&&En===0)return[qt.x,qt.y];var Xn=ln/(ln+En),Rr=qt.x+Xn*(At.x-qt.x),vi=qt.y+Xn*(At.y-qt.y);return[Rr,vi]}function uo(qt,At,Nr,Qt,ln,En,Xn){var Rr=ln.rotate,vi=ln.scale,ni=ln.x,xr=ln.y,xt=(0,be.useState)(!1),Po=(0,Oe.Z)(xt,2),zo=Po[0],ya=Po[1],xa=(0,be.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),Sa=function(Tr){xa.current=(0,Pe.Z)((0,Pe.Z)({},xa.current),Tr)},ha=function(Tr){if(At){Tr.stopPropagation(),ya(!0);var Ln=Tr.touches,or=Ln===void 0?[]:Ln;or.length>1?Sa({point1:{x:or[0].clientX,y:or[0].clientY},point2:{x:or[1].clientX,y:or[1].clientY},eventType:"touchZoom"}):Sa({point1:{x:or[0].clientX-ni,y:or[0].clientY-xr},eventType:"move"})}},Gt=function(Tr){var Ln=Tr.touches,or=Ln===void 0?[]:Ln,vr=xa.current,sn=vr.point1,mr=vr.point2,Vr=vr.eventType;if(or.length>1&&Vr==="touchZoom"){var no={x:or[0].clientX,y:or[0].clientY},Xi={x:or[1].clientX,y:or[1].clientY},zi=Yi(sn,mr,no,Xi),_o=(0,Oe.Z)(zi,2),sa=_o[0],Va=_o[1],os=Oi(no,Xi)/Oi(sn,mr);Xn(os,"touchZoom",sa,Va,!0),Sa({point1:no,point2:Xi,eventType:"touchZoom"})}else Vr==="move"&&(En({x:or[0].clientX-sn.x,y:or[0].clientY-sn.y},"move"),Sa({eventType:"move"}))},fr=function(){if(Nr){if(zo&&ya(!1),Sa({eventType:"none"}),Qt>vi)return En({x:0,y:0,scale:Qt},"touchZoom");var Tr=qt.current.offsetWidth*vi,Ln=qt.current.offsetHeight*vi,or=qt.current.getBoundingClientRect(),vr=or.left,sn=or.top,mr=Rr%180!==0,Vr=Xo(mr?Ln:Tr,mr?Tr:Ln,vr,sn);Vr&&En((0,Pe.Z)({},Vr),"dragRebound")}};return(0,be.useEffect)(function(){var pr;return Nr&&At&&(pr=ao(window,"touchmove",function(Tr){return Tr.preventDefault()},{passive:!1})),function(){var Tr;(Tr=pr)===null||Tr===void 0||Tr.remove()}},[Nr,At]),{isTouching:zo,onTouchStart:ha,onTouchMove:Gt,onTouchEnd:fr}}var ba=["fallback","src","imgRef"],Go=["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"],zr=function(At){var Nr=At.fallback,Qt=At.src,ln=At.imgRef,En=(0,Me.Z)(At,ba),Xn=Pa({src:Qt,fallback:Nr}),Rr=(0,Oe.Z)(Xn,2),vi=Rr[0],ni=Rr[1];return be.createElement("img",(0,ie.Z)({ref:function(xt){ln.current=xt,vi(xt)}},En,ni))},vo=function(At){var Nr=At.prefixCls,Qt=At.src,ln=At.alt,En=At.imageInfo,Xn=At.fallback,Rr=At.movable,vi=Rr===void 0?!0:Rr,ni=At.onClose,xr=At.visible,xt=At.icons,Po=xt===void 0?{}:xt,zo=At.rootClassName,ya=At.closeIcon,xa=At.getContainer,Sa=At.current,ha=Sa===void 0?0:Sa,Gt=At.count,fr=Gt===void 0?1:Gt,pr=At.countRender,Tr=At.scaleStep,Ln=Tr===void 0?.5:Tr,or=At.minScale,vr=or===void 0?1:or,sn=At.maxScale,mr=sn===void 0?50:sn,Vr=At.transitionName,no=Vr===void 0?"zoom":Vr,Xi=At.maskTransitionName,zi=Xi===void 0?"fade":Xi,_o=At.imageRender,sa=At.imgCommonProps,Va=At.toolbarRender,os=At.onTransform,Zs=At.onChange,Un=(0,Me.Z)(At,Go),ws=(0,be.useRef)(),Ds=(0,be.useContext)(Ni),dl=Ds&&fr>1,_a=Ds&&fr>=1,js=(0,be.useState)(!0),ol=(0,Oe.Z)(js,2),Tl=ol[0],Wa=ol[1],vs=xi(ws,vr,mr,os),Io=vs.transform,pa=vs.resetTransform,Ua=vs.updateTransform,as=vs.dispatchZoomChange,Bi=Jr(ws,vi,xr,Ln,Io,Ua,as),Xs=Bi.isMoving,Ls=Bi.onMouseDown,Gs=Bi.onWheel,vl=uo(ws,vi,xr,vr,Io,Ua,as),Ml=vl.isTouching,ci=vl.onTouchStart,zs=vl.onTouchMove,Vs=vl.onTouchEnd,Ul=Io.rotate,Qs=Io.scale,Dl=ut()((0,Fe.Z)({},"".concat(Nr,"-moving"),Xs));(0,be.useEffect)(function(){Tl||Wa(!0)},[Tl]);var la=function(){pa("close")},gu=function(){as(wr+Ln,"zoomIn")},Pl=function(){as(wr/(wr+Ln),"zoomOut")},Is=function(){Ua({rotate:Ul+90},"rotateRight")},eu=function(){Ua({rotate:Ul-90},"rotateLeft")},Hu=function(){Ua({flipX:!Io.flipX},"flipX")},cc=function(){Ua({flipY:!Io.flipY},"flipY")},Il=function(){pa("reset")},al=function(Al){var Fl=ha+Al;!Number.isInteger(Fl)||Fl<0||Fl>fr-1||(Wa(!1),pa(Al<0?"prev":"next"),Zs==null||Zs(Fl,ha))},Dc=function(Al){!xr||!dl||(Al.keyCode===ai.LEFT?al(-1):Al.keyCode===ai.RIGHT&&al(1))},Fc=function(Al){xr&&(Qs!==1?Ua({x:0,y:0,scale:1},"doubleClick"):as(wr+Ln,"doubleClick",Al.clientX,Al.clientY))};(0,be.useEffect)(function(){var Iu=ao(window,"keydown",Dc,!1);return function(){Iu.remove()}},[xr,dl,ha]);var rc=be.createElement(zr,(0,ie.Z)({},sa,{width:At.width,height:At.height,imgRef:ws,className:"".concat(Nr,"-img"),alt:ln,style:{transform:"translate3d(".concat(Io.x,"px, ").concat(Io.y,"px, 0) scale3d(").concat(Io.flipX?"-":"").concat(Qs,", ").concat(Io.flipY?"-":"").concat(Qs,", 1) rotate(").concat(Ul,"deg)"),transitionDuration:(!Tl||Ml)&&"0s"},fallback:Xn,src:Qt,onWheel:Gs,onMouseDown:Ls,onDoubleClick:Fc,onTouchStart:ci,onTouchMove:zs,onTouchEnd:Vs,onTouchCancel:Vs})),Bc=(0,Pe.Z)({url:Qt,alt:ln},En);return be.createElement(be.Fragment,null,be.createElement(fn,(0,ie.Z)({transitionName:no,maskTransitionName:zi,closable:!1,keyboard:!0,prefixCls:Nr,onClose:ni,visible:xr,classNames:{wrapper:Dl},rootClassName:zo,getContainer:xa},Un,{afterClose:la}),be.createElement("div",{className:"".concat(Nr,"-img-wrapper")},_o?_o(rc,(0,Pe.Z)({transform:Io,image:Bc},Ds?{current:ha}:{})):rc)),be.createElement(We,{visible:xr,transform:Io,maskTransitionName:zi,closeIcon:ya,getContainer:xa,prefixCls:Nr,rootClassName:zo,icons:Po,countRender:pr,showSwitch:dl,showProgress:_a,current:ha,count:fr,scale:Qs,minScale:vr,maxScale:mr,toolbarRender:Va,onActive:al,onZoomIn:gu,onZoomOut:Pl,onRotateRight:Is,onRotateLeft:eu,onFlipX:Hu,onFlipY:cc,onClose:ni,onReset:Il,zIndex:Un.zIndex!==void 0?Un.zIndex+1:void 0,image:Bc}))},sl=vo,gs=ae(74902),es=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function Mn(qt){var At=be.useState({}),Nr=(0,Oe.Z)(At,2),Qt=Nr[0],ln=Nr[1],En=be.useCallback(function(Rr,vi){return ln(function(ni){return(0,Pe.Z)((0,Pe.Z)({},ni),{},(0,Fe.Z)({},Rr,vi))}),function(){ln(function(ni){var xr=(0,Pe.Z)({},ni);return delete xr[Rr],xr})}},[]),Xn=be.useMemo(function(){return qt?qt.map(function(Rr){if(typeof Rr=="string")return{data:{src:Rr}};var vi={};return Object.keys(Rr).forEach(function(ni){["src"].concat((0,gs.Z)(es)).includes(ni)&&(vi[ni]=Rr[ni])}),{data:vi}}):Object.keys(Qt).reduce(function(Rr,vi){var ni=Qt[vi],xr=ni.canPreview,xt=ni.data;return xr&&Rr.push({data:xt,id:vi}),Rr},[])},[qt,Qt]);return[Xn,En,!!qt]}var Co=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Ta=["src"],lo=function(At){var Nr,Qt=At.previewPrefixCls,ln=Qt===void 0?"rc-image-preview":Qt,En=At.children,Xn=At.icons,Rr=Xn===void 0?{}:Xn,vi=At.items,ni=At.preview,xr=At.fallback,xt=(0,tt.Z)(ni)==="object"?ni:{},Po=xt.visible,zo=xt.onVisibleChange,ya=xt.getContainer,xa=xt.current,Sa=xt.movable,ha=xt.minScale,Gt=xt.maxScale,fr=xt.countRender,pr=xt.closeIcon,Tr=xt.onChange,Ln=xt.onTransform,or=xt.toolbarRender,vr=xt.imageRender,sn=(0,Me.Z)(xt,Co),mr=Mn(vi),Vr=(0,Oe.Z)(mr,3),no=Vr[0],Xi=Vr[1],zi=Vr[2],_o=Rt(0,{value:xa}),sa=(0,Oe.Z)(_o,2),Va=sa[0],os=sa[1],Zs=(0,be.useState)(!1),Un=(0,Oe.Z)(Zs,2),ws=Un[0],Ds=Un[1],dl=((Nr=no[Va])===null||Nr===void 0?void 0:Nr.data)||{},_a=dl.src,js=(0,Me.Z)(dl,Ta),ol=Rt(!!Po,{value:Po,onChange:function(Ml,ci){zo==null||zo(Ml,ci,Va)}}),Tl=(0,Oe.Z)(ol,2),Wa=Tl[0],vs=Tl[1],Io=(0,be.useState)(null),pa=(0,Oe.Z)(Io,2),Ua=pa[0],as=pa[1],Bi=be.useCallback(function(vl,Ml,ci,zs){var Vs=zi?no.findIndex(function(Ul){return Ul.data.src===Ml}):no.findIndex(function(Ul){return Ul.id===vl});os(Vs<0?0:Vs),vs(!0),as({x:ci,y:zs}),Ds(!0)},[no,zi]);be.useEffect(function(){Wa?ws||os(0):Ds(!1)},[Wa]);var Xs=function(Ml,ci){os(Ml),Tr==null||Tr(Ml,ci)},Ls=function(){vs(!1),as(null)},Gs=be.useMemo(function(){return{register:Xi,onPreview:Bi}},[Xi,Bi]);return be.createElement(Ni.Provider,{value:Gs},En,be.createElement(sl,(0,ie.Z)({"aria-hidden":!Wa,movable:Sa,visible:Wa,prefixCls:ln,closeIcon:pr,onClose:Ls,mousePosition:Ua,imgCommonProps:js,src:_a,fallback:xr,icons:Rr,minScale:ha,maxScale:Gt,getContainer:ya,current:Va,count:no.length,countRender:fr,onTransform:Ln,toolbarRender:or,imageRender:vr,onChange:Xs},sn)))},oa=lo,fa=0;function Ka(qt,At){var Nr=be.useState(function(){return fa+=1,String(fa)}),Qt=(0,Oe.Z)(Nr,1),ln=Qt[0],En=be.useContext(Ni),Xn={data:At,canPreview:qt};return be.useEffect(function(){if(En)return En.register(ln,Xn)},[]),be.useEffect(function(){En&&En.register(ln,Xn)},[qt,At]),ln}var qo=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],aa=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],za=function(At){var Nr=At.src,Qt=At.alt,ln=At.onPreviewClose,En=At.prefixCls,Xn=En===void 0?"rc-image":En,Rr=At.previewPrefixCls,vi=Rr===void 0?"".concat(Xn,"-preview"):Rr,ni=At.placeholder,xr=At.fallback,xt=At.width,Po=At.height,zo=At.style,ya=At.preview,xa=ya===void 0?!0:ya,Sa=At.className,ha=At.onClick,Gt=At.onError,fr=At.wrapperClassName,pr=At.wrapperStyle,Tr=At.rootClassName,Ln=(0,Me.Z)(At,qo),or=ni&&ni!==!0,vr=(0,tt.Z)(xa)==="object"?xa:{},sn=vr.src,mr=vr.visible,Vr=mr===void 0?void 0:mr,no=vr.onVisibleChange,Xi=no===void 0?ln:no,zi=vr.getContainer,_o=zi===void 0?void 0:zi,sa=vr.mask,Va=vr.maskClassName,os=vr.movable,Zs=vr.icons,Un=vr.scaleStep,ws=vr.minScale,Ds=vr.maxScale,dl=vr.imageRender,_a=vr.toolbarRender,js=(0,Me.Z)(vr,aa),ol=sn!=null?sn:Nr,Tl=Rt(!!Vr,{value:Vr,onChange:Xi}),Wa=(0,Oe.Z)(Tl,2),vs=Wa[0],Io=Wa[1],pa=Pa({src:Nr,isCustomPlaceholder:or,fallback:xr}),Ua=(0,Oe.Z)(pa,3),as=Ua[0],Bi=Ua[1],Xs=Ua[2],Ls=(0,be.useState)(null),Gs=(0,Oe.Z)(Ls,2),vl=Gs[0],Ml=Gs[1],ci=(0,be.useContext)(Ni),zs=!!xa,Vs=function(){Io(!1),Ml(null)},Ul=ut()(Xn,fr,Tr,(0,Fe.Z)({},"".concat(Xn,"-error"),Xs==="error")),Qs=(0,be.useMemo)(function(){var Pl={};return es.forEach(function(Is){At[Is]!==void 0&&(Pl[Is]=At[Is])}),Pl},es.map(function(Pl){return At[Pl]})),Dl=(0,be.useMemo)(function(){return(0,Pe.Z)((0,Pe.Z)({},Qs),{},{src:ol})},[ol,Qs]),la=Ka(zs,Dl),gu=function(Is){var eu=xe(Is.target),Hu=eu.left,cc=eu.top;ci?ci.onPreview(la,ol,Hu,cc):(Ml({x:Hu,y:cc}),Io(!0)),ha==null||ha(Is)};return be.createElement(be.Fragment,null,be.createElement("div",(0,ie.Z)({},Ln,{className:Ul,onClick:zs?gu:ha,style:(0,Pe.Z)({width:xt,height:Po},pr)}),be.createElement("img",(0,ie.Z)({},Qs,{className:ut()("".concat(Xn,"-img"),(0,Fe.Z)({},"".concat(Xn,"-img-placeholder"),ni===!0),Sa),style:(0,Pe.Z)({height:Po},zo),ref:as},Bi,{width:xt,height:Po,onError:Gt})),Xs==="loading"&&be.createElement("div",{"aria-hidden":"true",className:"".concat(Xn,"-placeholder")},ni),sa&&zs&&be.createElement("div",{className:ut()("".concat(Xn,"-mask"),Va),style:{display:(zo==null?void 0:zo.display)==="none"?"none":void 0}},sa)),!ci&&zs&&be.createElement(sl,(0,ie.Z)({"aria-hidden":!vs,visible:vs,prefixCls:vi,onClose:Vs,mousePosition:vl,src:ol,alt:Qt,imageInfo:{width:xt,height:Po},fallback:xr,getContainer:_o,icons:Zs,movable:os,scaleStep:Un,minScale:ws,maxScale:Ds,rootClassName:Tr,imageRender:dl,imgCommonProps:Qs,toolbarRender:_a},js)))};za.PreviewGroup=oa;var Ar=za,us=Ar},31457:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return ht}});var ie=ae(4942),Pe=ae(87462),Fe=ae(71002),Oe=ae(1413),tt=ae(97685),Me=ae(94184),_e=ae.n(Me),ut=ae(67294);function et(tn){var an=ut.useRef();an.current=tn;var ct=ut.useCallback(function(){for(var Ue,He=arguments.length,it=new Array(He),vt=0;vt<He;vt++)it[vt]=arguments[vt];return(Ue=an.current)===null||Ue===void 0?void 0:Ue.call.apply(Ue,[an].concat(it))},[]);return ct}function lt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Et=lt()?ut.useLayoutEffect:ut.useEffect,rt=function(an,ct){var Ue=ut.useRef(!0);Et(function(){return an(Ue.current)},ct),Et(function(){return Ue.current=!1,function(){Ue.current=!0}},[])},_t=function(an,ct){rt(function(Ue){if(!Ue)return an()},ct)},Ge=null;function te(tn){var an=ut.useRef(!1),ct=ut.useState(tn),Ue=(0,tt.Z)(ct,2),He=Ue[0],it=Ue[1];ut.useEffect(function(){return an.current=!1,function(){an.current=!0}},[]);function vt(Ye,It){It&&an.current||it(Ye)}return[He,vt]}function ee(tn){return tn!==void 0}function de(tn,an){var ct=an||{},Ue=ct.defaultValue,He=ct.value,it=ct.onChange,vt=ct.postState,Ye=te(function(){return ee(He)?He:ee(Ue)?typeof Ue=="function"?Ue():Ue:typeof tn=="function"?tn():tn}),It=(0,tt.Z)(Ye,2),In=It[0],Kn=It[1],dr=He!==void 0?He:In,Rn=vt?vt(dr):dr,er=et(it),yn=te([dr]),Er=(0,tt.Z)(yn,2),sr=Er[0],Hr=Er[1];_t(function(){var yi=sr[0];In!==yi&&er(In,yi)},[sr]),_t(function(){ee(He)||Kn(He)},[He]);var An=et(function(yi,ri){Kn(yi,ri),Hr([dr],ri)});return[Rn,An]}var le={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(an){var ct=an.keyCode;if(an.altKey&&!an.ctrlKey||an.metaKey||ct>=le.F1&&ct<=le.F12)return!1;switch(ct){case le.ALT:case le.CAPS_LOCK:case le.CONTEXT_MENU:case le.CTRL:case le.DOWN:case le.END:case le.ESC:case le.HOME:case le.INSERT:case le.LEFT:case le.MAC_FF_META:case le.META:case le.NUMLOCK:case le.NUM_CENTER:case le.PAGE_DOWN:case le.PAGE_UP:case le.PAUSE:case le.PRINT_SCREEN:case le.RIGHT:case le.SHIFT:case le.UP:case le.WIN_KEY:case le.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(an){if(an>=le.ZERO&&an<=le.NINE||an>=le.NUM_ZERO&&an<=le.NUM_MULTIPLY||an>=le.A&&an<=le.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&an===0)return!0;switch(an){case le.SPACE:case le.QUESTION_MARK:case le.NUM_PLUS:case le.NUM_MINUS:case le.NUM_PERIOD:case le.NUM_DIVISION:case le.SEMICOLON:case le.DASH:case le.EQUALS:case le.COMMA:case le.PERIOD:case le.SLASH:case le.APOSTROPHE:case le.SINGLE_QUOTE:case le.OPEN_SQUARE_BRACKET:case le.BACKSLASH:case le.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},pe=le,me=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,xe=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,be="".concat(me," ").concat(xe).split(/[\s\n]+/),Be="aria-",at="data-";function dt(tn,an){return tn.indexOf(an)===0}function gt(tn){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ct;an===!1?ct={aria:!0,data:!0,attr:!0}:an===!0?ct={aria:!0}:ct=(0,Oe.Z)({},an);var Ue={};return Object.keys(tn).forEach(function(He){(ct.aria&&(He==="role"||dt(He,Be))||ct.data&&dt(He,at)||ct.attr&&be.includes(He))&&(Ue[He]=tn[He])}),Ue}var ft={},Nt=[],Tt=function(an){Nt.push(an)};function Ct(tn,an){if(0)var ct}function Vt(tn,an){if(0)var ct}function Rt(){ft={}}function nn(tn,an,ct){!an&&!ft[ct]&&(tn(!1,ct),ft[ct]=!0)}function Cn(tn,an){nn(Ct,tn,an)}function un(tn,an){nn(Vt,tn,an)}Cn.preMessage=Tt,Cn.resetWarned=Rt,Cn.noteOnce=un;var Nn=null,wt=ae(81626),pt=[10,20,50,100],Ie=function(an){var ct=an.pageSizeOptions,Ue=ct===void 0?pt:ct,He=an.locale,it=an.changeSize,vt=an.pageSize,Ye=an.goButton,It=an.quickGo,In=an.rootPrefixCls,Kn=an.disabled,dr=an.buildOptionText,Rn=an.showSizeChanger,er=an.sizeChangerRender,yn=ut.useState(""),Er=(0,tt.Z)(yn,2),sr=Er[0],Hr=Er[1],An=function(){return!sr||Number.isNaN(sr)?void 0:Number(sr)},yi=typeof dr=="function"?dr:function(Zr){return"".concat(Zr," ").concat(He.items_per_page)},ri=function(hi){Hr(hi.target.value)},bn=function(hi){Ye||sr===""||(Hr(""),!(hi.relatedTarget&&(hi.relatedTarget.className.indexOf("".concat(In,"-item-link"))>=0||hi.relatedTarget.className.indexOf("".concat(In,"-item"))>=0))&&(It==null||It(An())))},Xe=function(hi){sr!==""&&(hi.keyCode===pe.ENTER||hi.type==="click")&&(Hr(""),It==null||It(An()))},Ji=function(){return Ue.some(function(hi){return hi.toString()===vt.toString()})?Ue:Ue.concat([vt]).sort(function(hi,Ir){var fn=Number.isNaN(Number(hi))?0:Number(hi),Hi=Number.isNaN(Number(Ir))?0:Number(Ir);return fn-Hi})},Qn="".concat(In,"-options");if(!Rn&&!It)return null;var Sn=null,to=null,Ki=null;return Rn&&er&&(Sn=er({disabled:Kn,size:vt,onSizeChange:function(hi){it==null||it(Number(hi))},"aria-label":He.page_size,className:"".concat(Qn,"-size-changer"),options:Ji().map(function(Zr){return{label:yi(Zr),value:Zr}})})),It&&(Ye&&(Ki=typeof Ye=="boolean"?ut.createElement("button",{type:"button",onClick:Xe,onKeyUp:Xe,disabled:Kn,className:"".concat(Qn,"-quick-jumper-button")},He.jump_to_confirm):ut.createElement("span",{onClick:Xe,onKeyUp:Xe},Ye)),to=ut.createElement("div",{className:"".concat(Qn,"-quick-jumper")},He.jump_to,ut.createElement("input",{disabled:Kn,type:"text",value:sr,onChange:ri,onKeyUp:Xe,onBlur:bn,"aria-label":He.page}),He.page,Ki)),ut.createElement("li",{className:Qn},Sn,to)},on=Ie,Bn=function(an){var ct=an.rootPrefixCls,Ue=an.page,He=an.active,it=an.className,vt=an.showTitle,Ye=an.onClick,It=an.onKeyPress,In=an.itemRender,Kn="".concat(ct,"-item"),dr=_e()(Kn,"".concat(Kn,"-").concat(Ue),(0,ie.Z)((0,ie.Z)({},"".concat(Kn,"-active"),He),"".concat(Kn,"-disabled"),!Ue),it),Rn=function(){Ye(Ue)},er=function(sr){It(sr,Ye,Ue)},yn=In(Ue,"page",ut.createElement("a",{rel:"nofollow"},Ue));return yn?ut.createElement("li",{title:vt?String(Ue):null,className:dr,onClick:Rn,onKeyDown:er,tabIndex:0},yn):null},Zt=Bn,zn=function(an,ct,Ue){return Ue};function _n(){}function nr(tn){var an=Number(tn);return typeof an=="number"&&!Number.isNaN(an)&&isFinite(an)&&Math.floor(an)===an}function Ft(tn,an,ct){var Ue=typeof tn=="undefined"?an:tn;return Math.floor((ct-1)/Ue)+1}var Wt=function(an){var ct=an.prefixCls,Ue=ct===void 0?"rc-pagination":ct,He=an.selectPrefixCls,it=He===void 0?"rc-select":He,vt=an.className,Ye=an.current,It=an.defaultCurrent,In=It===void 0?1:It,Kn=an.total,dr=Kn===void 0?0:Kn,Rn=an.pageSize,er=an.defaultPageSize,yn=er===void 0?10:er,Er=an.onChange,sr=Er===void 0?_n:Er,Hr=an.hideOnSinglePage,An=an.align,yi=an.showPrevNextJumpers,ri=yi===void 0?!0:yi,bn=an.showQuickJumper,Xe=an.showLessItems,Ji=an.showTitle,Qn=Ji===void 0?!0:Ji,Sn=an.onShowSizeChange,to=Sn===void 0?_n:Sn,Ki=an.locale,Zr=Ki===void 0?wt.Z:Ki,hi=an.style,Ir=an.totalBoundaryShowSizeChanger,fn=Ir===void 0?50:Ir,Hi=an.disabled,ao=an.simple,ui=an.showTotal,ai=an.showSizeChanger,Ni=ai===void 0?dr>fn:ai,ir=an.sizeChangerRender,We=an.pageSizeOptions,rr=an.itemRender,ur=rr===void 0?zn:rr,hr=an.jumpPrevIcon,Or=an.jumpNextIcon,jr=an.prevIcon,si=an.nextIcon,Fi=ut.useRef(null),Vn=de(10,{value:Rn,defaultValue:yn}),Wn=(0,tt.Z)(Vn,2),vn=Wn[0],tr=Wn[1],mi=de(1,{value:Ye,defaultValue:In,postState:function(mr){return Math.max(1,Math.min(mr,Ft(void 0,vn,dr)))}}),gi=(0,tt.Z)(mi,2),ti=gi[0],Hn=gi[1],Cr=ut.useState(ti),Ri=(0,tt.Z)(Cr,2),_i=Ri[0],Ur=Ri[1];(0,ut.useEffect)(function(){Ur(ti)},[ti]);var Pn=sr!==_n,xi="current"in an,ji=Math.max(1,ti-(Xe?3:5)),Xo=Math.min(Ft(void 0,vn,dr),ti+(Xe?3:5));function wr(sn,mr){var Vr=sn||ut.createElement("button",{type:"button","aria-label":mr,className:"".concat(Ue,"-item-link")});return typeof sn=="function"&&(Vr=ut.createElement(sn,(0,Oe.Z)({},an))),Vr}function Gi(sn){var mr=sn.target.value,Vr=Ft(void 0,vn,dr),no;return mr===""?no=mr:Number.isNaN(Number(mr))?no=_i:mr>=Vr?no=Vr:no=Number(mr),no}function Jr(sn){return nr(sn)&&sn!==ti&&nr(dr)&&dr>0}var ls=dr>vn?bn:!1;function Pa(sn){(sn.keyCode===pe.UP||sn.keyCode===pe.DOWN)&&sn.preventDefault()}function Oi(sn){var mr=Gi(sn);switch(mr!==_i&&Ur(mr),sn.keyCode){case pe.ENTER:ba(mr);break;case pe.UP:ba(mr-1);break;case pe.DOWN:ba(mr+1);break;default:break}}function Yi(sn){ba(Gi(sn))}function uo(sn){var mr=Ft(sn,vn,dr),Vr=ti>mr&&mr!==0?mr:ti;tr(sn),Ur(Vr),to==null||to(ti,sn),Hn(Vr),sr==null||sr(Vr,sn)}function ba(sn){if(Jr(sn)&&!Hi){var mr=Ft(void 0,vn,dr),Vr=sn;return sn>mr?Vr=mr:sn<1&&(Vr=1),Vr!==_i&&Ur(Vr),Hn(Vr),sr==null||sr(Vr,vn),Vr}return ti}var Go=ti>1,zr=ti<Ft(void 0,vn,dr);function vo(){Go&&ba(ti-1)}function sl(){zr&&ba(ti+1)}function gs(){ba(ji)}function es(){ba(Xo)}function Mn(sn,mr){if(sn.key==="Enter"||sn.charCode===pe.ENTER||sn.keyCode===pe.ENTER){for(var Vr=arguments.length,no=new Array(Vr>2?Vr-2:0),Xi=2;Xi<Vr;Xi++)no[Xi-2]=arguments[Xi];mr.apply(void 0,no)}}function Co(sn){Mn(sn,vo)}function Ta(sn){Mn(sn,sl)}function lo(sn){Mn(sn,gs)}function oa(sn){Mn(sn,es)}function fa(sn){var mr=ur(sn,"prev",wr(jr,"prev page"));return ut.isValidElement(mr)?ut.cloneElement(mr,{disabled:!Go}):mr}function Ka(sn){var mr=ur(sn,"next",wr(si,"next page"));return ut.isValidElement(mr)?ut.cloneElement(mr,{disabled:!zr}):mr}function qo(sn){(sn.type==="click"||sn.keyCode===pe.ENTER)&&ba(_i)}var aa=null,za=gt(an,{aria:!0,data:!0}),Ar=ui&&ut.createElement("li",{className:"".concat(Ue,"-total-text")},ui(dr,[dr===0?0:(ti-1)*vn+1,ti*vn>dr?dr:ti*vn])),us=null,qt=Ft(void 0,vn,dr);if(Hr&&dr<=vn)return null;var At=[],Nr={rootPrefixCls:Ue,onClick:ba,onKeyPress:Mn,showTitle:Qn,itemRender:ur,page:-1},Qt=ti-1>0?ti-1:0,ln=ti+1<qt?ti+1:qt,En=bn&&bn.goButton,Xn=(0,Fe.Z)(ao)==="object"?ao.readOnly:!ao,Rr=En,vi=null;ao&&(En&&(typeof En=="boolean"?Rr=ut.createElement("button",{type:"button",onClick:qo,onKeyUp:qo},Zr.jump_to_confirm):Rr=ut.createElement("span",{onClick:qo,onKeyUp:qo},En),Rr=ut.createElement("li",{title:Qn?"".concat(Zr.jump_to).concat(ti,"/").concat(qt):null,className:"".concat(Ue,"-simple-pager")},Rr)),vi=ut.createElement("li",{title:Qn?"".concat(ti,"/").concat(qt):null,className:"".concat(Ue,"-simple-pager")},Xn?_i:ut.createElement("input",{type:"text","aria-label":Zr.jump_to,value:_i,disabled:Hi,onKeyDown:Pa,onKeyUp:Oi,onChange:Oi,onBlur:Yi,size:3}),ut.createElement("span",{className:"".concat(Ue,"-slash")},"/"),qt));var ni=Xe?1:2;if(qt<=3+ni*2){qt||At.push(ut.createElement(Zt,(0,Pe.Z)({},Nr,{key:"noPager",page:1,className:"".concat(Ue,"-item-disabled")})));for(var xr=1;xr<=qt;xr+=1)At.push(ut.createElement(Zt,(0,Pe.Z)({},Nr,{key:xr,page:xr,active:ti===xr})))}else{var xt=Xe?Zr.prev_3:Zr.prev_5,Po=Xe?Zr.next_3:Zr.next_5,zo=ur(ji,"jump-prev",wr(hr,"prev page")),ya=ur(Xo,"jump-next",wr(Or,"next page"));ri&&(aa=zo?ut.createElement("li",{title:Qn?xt:null,key:"prev",onClick:gs,tabIndex:0,onKeyDown:lo,className:_e()("".concat(Ue,"-jump-prev"),(0,ie.Z)({},"".concat(Ue,"-jump-prev-custom-icon"),!!hr))},zo):null,us=ya?ut.createElement("li",{title:Qn?Po:null,key:"next",onClick:es,tabIndex:0,onKeyDown:oa,className:_e()("".concat(Ue,"-jump-next"),(0,ie.Z)({},"".concat(Ue,"-jump-next-custom-icon"),!!Or))},ya):null);var xa=Math.max(1,ti-ni),Sa=Math.min(ti+ni,qt);ti-1<=ni&&(Sa=1+ni*2),qt-ti<=ni&&(xa=qt-ni*2);for(var ha=xa;ha<=Sa;ha+=1)At.push(ut.createElement(Zt,(0,Pe.Z)({},Nr,{key:ha,page:ha,active:ti===ha})));if(ti-1>=ni*2&&ti!==3&&(At[0]=ut.cloneElement(At[0],{className:_e()("".concat(Ue,"-item-after-jump-prev"),At[0].props.className)}),At.unshift(aa)),qt-ti>=ni*2&&ti!==qt-2){var Gt=At[At.length-1];At[At.length-1]=ut.cloneElement(Gt,{className:_e()("".concat(Ue,"-item-before-jump-next"),Gt.props.className)}),At.push(us)}xa!==1&&At.unshift(ut.createElement(Zt,(0,Pe.Z)({},Nr,{key:1,page:1}))),Sa!==qt&&At.push(ut.createElement(Zt,(0,Pe.Z)({},Nr,{key:qt,page:qt})))}var fr=fa(Qt);if(fr){var pr=!Go||!qt;fr=ut.createElement("li",{title:Qn?Zr.prev_page:null,onClick:vo,tabIndex:pr?null:0,onKeyDown:Co,className:_e()("".concat(Ue,"-prev"),(0,ie.Z)({},"".concat(Ue,"-disabled"),pr)),"aria-disabled":pr},fr)}var Tr=Ka(ln);if(Tr){var Ln,or;ao?(Ln=!zr,or=Go?0:null):(Ln=!zr||!qt,or=Ln?null:0),Tr=ut.createElement("li",{title:Qn?Zr.next_page:null,onClick:sl,tabIndex:or,onKeyDown:Ta,className:_e()("".concat(Ue,"-next"),(0,ie.Z)({},"".concat(Ue,"-disabled"),Ln)),"aria-disabled":Ln},Tr)}var vr=_e()(Ue,vt,(0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)({},"".concat(Ue,"-start"),An==="start"),"".concat(Ue,"-center"),An==="center"),"".concat(Ue,"-end"),An==="end"),"".concat(Ue,"-simple"),ao),"".concat(Ue,"-disabled"),Hi));return ut.createElement("ul",(0,Pe.Z)({className:vr,style:hi,ref:Fi},za),Ar,fr,ao?vi:At,Tr,ut.createElement(on,{locale:Zr,rootPrefixCls:Ue,disabled:Hi,selectPrefixCls:it,changeSize:uo,pageSize:vn,pageSizeOptions:We,quickGo:ls?ba:null,goButton:Rr,showSizeChanger:Ni,sizeChangerRender:ir}))},ht=Wt},43579:function(Ke,we,ae){"use strict";ae.d(we,{Cd:function(){return Nt}});var ie=ae(87462),Pe=ae(1413),Fe=ae(45987),Oe=ae(67294),tt=ae(94184),Me=ae.n(tt),_e={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ut=function(){var Vt=(0,Oe.useRef)([]),Rt=(0,Oe.useRef)(null);return(0,Oe.useEffect)(function(){var nn=Date.now(),Cn=!1;Vt.current.forEach(function(un){if(un){Cn=!0;var Nn=un.style;Nn.transitionDuration=".3s, .3s, .3s, .06s",Rt.current&&nn-Rt.current<100&&(Nn.transitionDuration="0s, 0s")}}),Cn&&(Rt.current=Date.now())}),Vt.current},et=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],lt=function(Vt){var Rt=(0,Pe.Z)((0,Pe.Z)({},_e),Vt),nn=Rt.className,Cn=Rt.percent,un=Rt.prefixCls,Nn=Rt.strokeColor,wt=Rt.strokeLinecap,pt=Rt.strokeWidth,Ie=Rt.style,on=Rt.trailColor,Bn=Rt.trailWidth,Zt=Rt.transition,zn=(0,Fe.Z)(Rt,et);delete zn.gapPosition;var _n=Array.isArray(Cn)?Cn:[Cn],nr=Array.isArray(Nn)?Nn:[Nn],Ft=ut(),Wt=pt/2,ht=100-pt/2,tn="M ".concat(wt==="round"?Wt:0,",").concat(Wt,`
|
|
|
L `).concat(wt==="round"?ht:100,",").concat(Wt),an="0 0 100 ".concat(pt),ct=0;return Oe.createElement("svg",(0,ie.Z)({className:Me()("".concat(un,"-line"),nn),viewBox:an,preserveAspectRatio:"none",style:Ie},zn),Oe.createElement("path",{className:"".concat(un,"-line-trail"),d:tn,strokeLinecap:wt,stroke:on,strokeWidth:Bn||pt,fillOpacity:"0"}),_n.map(function(Ue,He){var it=1;switch(wt){case"round":it=1-pt/100;break;case"square":it=1-pt/2/100;break;default:it=1;break}var vt={strokeDasharray:"".concat(Ue*it,"px, 100px"),strokeDashoffset:"-".concat(ct,"px"),transition:Zt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ye=nr[He]||nr[nr.length-1];return ct+=Ue,Oe.createElement("path",{key:He,className:"".concat(un,"-line-path"),d:tn,strokeLinecap:wt,stroke:Ye,strokeWidth:pt,fillOpacity:"0",ref:function(In){Ft[He]=In},style:vt})}))},Et=lt,rt=ae(71002),_t=ae(97685),Ge=ae(98924),te=0,ee=(0,Ge.Z)();function de(){var Ct;return ee?(Ct=te,te+=1):Ct="TEST_OR_SSR",Ct}var le=function(Ct){var Vt=Oe.useState(),Rt=(0,_t.Z)(Vt,2),nn=Rt[0],Cn=Rt[1];return Oe.useEffect(function(){Cn("rc_progress_".concat(de()))},[]),Ct||nn},pe=function(Vt){var Rt=Vt.bg,nn=Vt.children;return Oe.createElement("div",{style:{width:"100%",height:"100%",background:Rt}},nn)};function me(Ct,Vt){return Object.keys(Ct).map(function(Rt){var nn=parseFloat(Rt),Cn="".concat(Math.floor(nn*Vt),"%");return"".concat(Ct[Rt]," ").concat(Cn)})}var xe=Oe.forwardRef(function(Ct,Vt){var Rt=Ct.prefixCls,nn=Ct.color,Cn=Ct.gradientId,un=Ct.radius,Nn=Ct.style,wt=Ct.ptg,pt=Ct.strokeLinecap,Ie=Ct.strokeWidth,on=Ct.size,Bn=Ct.gapDegree,Zt=nn&&(0,rt.Z)(nn)==="object",zn=Zt?"#FFF":void 0,_n=on/2,nr=Oe.createElement("circle",{className:"".concat(Rt,"-circle-path"),r:un,cx:_n,cy:_n,stroke:zn,strokeLinecap:pt,strokeWidth:Ie,opacity:wt===0?0:1,style:Nn,ref:Vt});if(!Zt)return nr;var Ft="".concat(Cn,"-conic"),Wt=Bn?"".concat(180+Bn/2,"deg"):"0deg",ht=me(nn,(360-Bn)/360),tn=me(nn,1),an="conic-gradient(from ".concat(Wt,", ").concat(ht.join(", "),")"),ct="linear-gradient(to ".concat(Bn?"bottom":"top",", ").concat(tn.join(", "),")");return Oe.createElement(Oe.Fragment,null,Oe.createElement("mask",{id:Ft},nr),Oe.createElement("foreignObject",{x:0,y:0,width:on,height:on,mask:"url(#".concat(Ft,")")},Oe.createElement(pe,{bg:ct},Oe.createElement(pe,{bg:an}))))}),be=xe,Be=100,at=function(Vt,Rt,nn,Cn,un,Nn,wt,pt,Ie,on){var Bn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Zt=nn/100*360*((360-Nn)/360),zn=Nn===0?0:{bottom:0,top:180,left:90,right:-90}[wt],_n=(100-Cn)/100*Rt;Ie==="round"&&Cn!==100&&(_n+=on/2,_n>=Rt&&(_n=Rt-.01));var nr=Be/2;return{stroke:typeof pt=="string"?pt:void 0,strokeDasharray:"".concat(Rt,"px ").concat(Vt),strokeDashoffset:_n+Bn,transform:"rotate(".concat(un+Zt+zn,"deg)"),transformOrigin:"".concat(nr,"px ").concat(nr,"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}},dt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function gt(Ct){var Vt=Ct!=null?Ct:[];return Array.isArray(Vt)?Vt:[Vt]}var ft=function(Vt){var Rt=(0,Pe.Z)((0,Pe.Z)({},_e),Vt),nn=Rt.id,Cn=Rt.prefixCls,un=Rt.steps,Nn=Rt.strokeWidth,wt=Rt.trailWidth,pt=Rt.gapDegree,Ie=pt===void 0?0:pt,on=Rt.gapPosition,Bn=Rt.trailColor,Zt=Rt.strokeLinecap,zn=Rt.style,_n=Rt.className,nr=Rt.strokeColor,Ft=Rt.percent,Wt=(0,Fe.Z)(Rt,dt),ht=Be/2,tn=le(nn),an="".concat(tn,"-gradient"),ct=ht-Nn/2,Ue=Math.PI*2*ct,He=Ie>0?90+Ie/2:-90,it=Ue*((360-Ie)/360),vt=(0,rt.Z)(un)==="object"?un:{count:un,gap:2},Ye=vt.count,It=vt.gap,In=gt(Ft),Kn=gt(nr),dr=Kn.find(function(An){return An&&(0,rt.Z)(An)==="object"}),Rn=dr&&(0,rt.Z)(dr)==="object",er=Rn?"butt":Zt,yn=at(Ue,it,0,100,He,Ie,on,Bn,er,Nn),Er=ut(),sr=function(){var yi=0;return In.map(function(ri,bn){var Xe=Kn[bn]||Kn[Kn.length-1],Ji=at(Ue,it,yi,ri,He,Ie,on,Xe,er,Nn);return yi+=ri,Oe.createElement(be,{key:bn,color:Xe,ptg:ri,radius:ct,prefixCls:Cn,gradientId:an,style:Ji,strokeLinecap:er,strokeWidth:Nn,gapDegree:Ie,ref:function(Sn){Er[bn]=Sn},size:Be})}).reverse()},Hr=function(){var yi=Math.round(Ye*(In[0]/100)),ri=100/Ye,bn=0;return new Array(Ye).fill(null).map(function(Xe,Ji){var Qn=Ji<=yi-1?Kn[0]:Bn,Sn=Qn&&(0,rt.Z)(Qn)==="object"?"url(#".concat(an,")"):void 0,to=at(Ue,it,bn,ri,He,Ie,on,Qn,"butt",Nn,It);return bn+=(it-to.strokeDashoffset+It)*100/it,Oe.createElement("circle",{key:Ji,className:"".concat(Cn,"-circle-path"),r:ct,cx:ht,cy:ht,stroke:Sn,strokeWidth:Nn,opacity:1,style:to,ref:function(Zr){Er[Ji]=Zr}})})};return Oe.createElement("svg",(0,ie.Z)({className:Me()("".concat(Cn,"-circle"),_n),viewBox:"0 0 ".concat(Be," ").concat(Be),style:zn,id:nn,role:"presentation"},Wt),!Ye&&Oe.createElement("circle",{className:"".concat(Cn,"-circle-trail"),r:ct,cx:ht,cy:ht,stroke:Bn,strokeLinecap:er,strokeWidth:wt||Nn,style:yn}),Ye?Hr():sr())},Nt=ft,Tt={Line:Et,Circle:Nt}},71032:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return me}});var ie=ae(87462),Pe=ae(4942),Fe=ae(97685),Oe=ae(45987),tt=ae(94184),Me=ae.n(tt),_e=ae(21770),ut=ae(15105),et=ae(64217),lt=ae(67294);function Et(xe,be){var Be=xe.disabled,at=xe.prefixCls,dt=xe.character,gt=xe.characterRender,ft=xe.index,Nt=xe.count,Tt=xe.value,Ct=xe.allowHalf,Vt=xe.focused,Rt=xe.onHover,nn=xe.onClick,Cn=function(Zt){Rt(Zt,ft)},un=function(Zt){nn(Zt,ft)},Nn=function(Zt){Zt.keyCode===ut.Z.ENTER&&nn(Zt,ft)},wt=ft+1,pt=new Set([at]);Tt===0&&ft===0&&Vt?pt.add("".concat(at,"-focused")):Ct&&Tt+.5>=wt&&Tt<wt?(pt.add("".concat(at,"-half")),pt.add("".concat(at,"-active")),Vt&&pt.add("".concat(at,"-focused"))):(wt<=Tt?pt.add("".concat(at,"-full")):pt.add("".concat(at,"-zero")),wt===Tt&&Vt&&pt.add("".concat(at,"-focused")));var Ie=typeof dt=="function"?dt(xe):dt,on=lt.createElement("li",{className:Me()(Array.from(pt)),ref:be},lt.createElement("div",{onClick:Be?null:un,onKeyDown:Be?null:Nn,onMouseMove:Be?null:Cn,role:"radio","aria-checked":Tt>ft?"true":"false","aria-posinset":ft+1,"aria-setsize":Nt,tabIndex:Be?-1:0},lt.createElement("div",{className:"".concat(at,"-first")},Ie),lt.createElement("div",{className:"".concat(at,"-second")},Ie)));return gt&&(on=gt(on,xe)),on}var rt=lt.forwardRef(Et);function _t(){var xe=lt.useRef({});function be(at){return xe.current[at]}function Be(at){return function(dt){xe.current[at]=dt}}return[be,Be]}function Ge(xe){var be=xe.pageXOffset,Be="scrollLeft";if(typeof be!="number"){var at=xe.document;be=at.documentElement[Be],typeof be!="number"&&(be=at.body[Be])}return be}function te(xe){var be,Be,at=xe.ownerDocument,dt=at.body,gt=at&&at.documentElement,ft=xe.getBoundingClientRect();return be=ft.left,Be=ft.top,be-=gt.clientLeft||dt.clientLeft||0,Be-=gt.clientTop||dt.clientTop||0,{left:be,top:Be}}function ee(xe){var be=te(xe),Be=xe.ownerDocument,at=Be.defaultView||Be.parentWindow;return be.left+=Ge(at),be.left}var de=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function le(xe,be){var Be=xe.prefixCls,at=Be===void 0?"rc-rate":Be,dt=xe.className,gt=xe.defaultValue,ft=xe.value,Nt=xe.count,Tt=Nt===void 0?5:Nt,Ct=xe.allowHalf,Vt=Ct===void 0?!1:Ct,Rt=xe.allowClear,nn=Rt===void 0?!0:Rt,Cn=xe.keyboard,un=Cn===void 0?!0:Cn,Nn=xe.character,wt=Nn===void 0?"\u2605":Nn,pt=xe.characterRender,Ie=xe.disabled,on=xe.direction,Bn=on===void 0?"ltr":on,Zt=xe.tabIndex,zn=Zt===void 0?0:Zt,_n=xe.autoFocus,nr=xe.onHoverChange,Ft=xe.onChange,Wt=xe.onFocus,ht=xe.onBlur,tn=xe.onKeyDown,an=xe.onMouseLeave,ct=(0,Oe.Z)(xe,de),Ue=_t(),He=(0,Fe.Z)(Ue,2),it=He[0],vt=He[1],Ye=lt.useRef(null),It=function(){if(!Ie){var Ni;(Ni=Ye.current)===null||Ni===void 0||Ni.focus()}};lt.useImperativeHandle(be,function(){return{focus:It,blur:function(){if(!Ie){var Ni;(Ni=Ye.current)===null||Ni===void 0||Ni.blur()}}}});var In=(0,_e.Z)(gt||0,{value:ft}),Kn=(0,Fe.Z)(In,2),dr=Kn[0],Rn=Kn[1],er=(0,_e.Z)(null),yn=(0,Fe.Z)(er,2),Er=yn[0],sr=yn[1],Hr=function(Ni,ir){var We=Bn==="rtl",rr=Ni+1;if(Vt){var ur=it(Ni),hr=ee(ur),Or=ur.clientWidth;(We&&ir-hr>Or/2||!We&&ir-hr<Or/2)&&(rr-=.5)}return rr},An=function(Ni){Rn(Ni),Ft==null||Ft(Ni)},yi=lt.useState(!1),ri=(0,Fe.Z)(yi,2),bn=ri[0],Xe=ri[1],Ji=function(){Xe(!0),Wt==null||Wt()},Qn=function(){Xe(!1),ht==null||ht()},Sn=lt.useState(null),to=(0,Fe.Z)(Sn,2),Ki=to[0],Zr=to[1],hi=function(Ni,ir){var We=Hr(ir,Ni.pageX);We!==Er&&(Zr(We),sr(null)),nr==null||nr(We)},Ir=function(Ni){Ie||(Zr(null),sr(null),nr==null||nr(void 0)),Ni&&(an==null||an(Ni))},fn=function(Ni,ir){var We=Hr(ir,Ni.pageX),rr=!1;nn&&(rr=We===dr),Ir(),An(rr?0:We),sr(rr?We:null)},Hi=function(Ni){var ir=Ni.keyCode,We=Bn==="rtl",rr=Vt?.5:1;un&&(ir===ut.Z.RIGHT&&dr<Tt&&!We?(An(dr+rr),Ni.preventDefault()):ir===ut.Z.LEFT&&dr>0&&!We||ir===ut.Z.RIGHT&&dr>0&&We?(An(dr-rr),Ni.preventDefault()):ir===ut.Z.LEFT&&dr<Tt&&We&&(An(dr+rr),Ni.preventDefault())),tn==null||tn(Ni)};lt.useEffect(function(){_n&&!Ie&&It()},[]);var ao=new Array(Tt).fill(0).map(function(ai,Ni){return lt.createElement(rt,{ref:vt(Ni),index:Ni,count:Tt,disabled:Ie,prefixCls:"".concat(at,"-star"),allowHalf:Vt,value:Ki===null?dr:Ki,onClick:fn,onHover:hi,key:ai||Ni,character:wt,characterRender:pt,focused:bn})}),ui=Me()(at,dt,(0,Pe.Z)((0,Pe.Z)({},"".concat(at,"-disabled"),Ie),"".concat(at,"-rtl"),Bn==="rtl"));return lt.createElement("ul",(0,ie.Z)({className:ui,onMouseLeave:Ir,tabIndex:Ie?-1:zn,onFocus:Ie?null:Ji,onBlur:Ie?null:Qn,onKeyDown:Ie?null:Hi,ref:Ye},(0,et.Z)(ct,{aria:!0,data:!0,attr:!0})),ao)}var pe=lt.forwardRef(le),me=pe},58212:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return Nn}});function ie(){return ie=Object.assign?Object.assign.bind():function(wt){for(var pt=1;pt<arguments.length;pt++){var Ie=arguments[pt];for(var on in Ie)Object.prototype.hasOwnProperty.call(Ie,on)&&(wt[on]=Ie[on])}return wt},ie.apply(this,arguments)}function Pe(wt){"@babel/helpers - typeof";return Pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(pt){return typeof pt}:function(pt){return pt&&typeof Symbol=="function"&&pt.constructor===Symbol&&pt!==Symbol.prototype?"symbol":typeof pt},Pe(wt)}function Fe(wt,pt){if(Pe(wt)!=="object"||wt===null)return wt;var Ie=wt[Symbol.toPrimitive];if(Ie!==void 0){var on=Ie.call(wt,pt||"default");if(Pe(on)!=="object")return on;throw new TypeError("@@toPrimitive must return a primitive value.")}return(pt==="string"?String:Number)(wt)}function Oe(wt){var pt=Fe(wt,"string");return Pe(pt)==="symbol"?pt:String(pt)}function tt(wt,pt,Ie){return pt=Oe(pt),pt in wt?Object.defineProperty(wt,pt,{value:Ie,enumerable:!0,configurable:!0,writable:!0}):wt[pt]=Ie,wt}function Me(wt){if(Array.isArray(wt))return wt}function _e(wt,pt){var Ie=wt==null?null:typeof Symbol!="undefined"&&wt[Symbol.iterator]||wt["@@iterator"];if(Ie!=null){var on,Bn,Zt,zn,_n=[],nr=!0,Ft=!1;try{if(Zt=(Ie=Ie.call(wt)).next,pt===0){if(Object(Ie)!==Ie)return;nr=!1}else for(;!(nr=(on=Zt.call(Ie)).done)&&(_n.push(on.value),_n.length!==pt);nr=!0);}catch(Wt){Ft=!0,Bn=Wt}finally{try{if(!nr&&Ie.return!=null&&(zn=Ie.return(),Object(zn)!==zn))return}finally{if(Ft)throw Bn}}return _n}}function ut(wt,pt){(pt==null||pt>wt.length)&&(pt=wt.length);for(var Ie=0,on=new Array(pt);Ie<pt;Ie++)on[Ie]=wt[Ie];return on}function et(wt,pt){if(wt){if(typeof wt=="string")return ut(wt,pt);var Ie=Object.prototype.toString.call(wt).slice(8,-1);if(Ie==="Object"&&wt.constructor&&(Ie=wt.constructor.name),Ie==="Map"||Ie==="Set")return Array.from(wt);if(Ie==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ie))return ut(wt,pt)}}function lt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Et(wt,pt){return Me(wt)||_e(wt,pt)||et(wt,pt)||lt()}function rt(wt,pt){if(wt==null)return{};var Ie={},on=Object.keys(wt),Bn,Zt;for(Zt=0;Zt<on.length;Zt++)Bn=on[Zt],!(pt.indexOf(Bn)>=0)&&(Ie[Bn]=wt[Bn]);return Ie}function _t(wt,pt){if(wt==null)return{};var Ie=rt(wt,pt),on,Bn;if(Object.getOwnPropertySymbols){var Zt=Object.getOwnPropertySymbols(wt);for(Bn=0;Bn<Zt.length;Bn++)on=Zt[Bn],!(pt.indexOf(on)>=0)&&Object.prototype.propertyIsEnumerable.call(wt,on)&&(Ie[on]=wt[on])}return Ie}var Ge=ae(67294),te=ae(94184),ee=ae.n(te);function de(wt){if(Array.isArray(wt))return wt}function le(wt,pt){var Ie=wt==null?null:typeof Symbol!="undefined"&&wt[Symbol.iterator]||wt["@@iterator"];if(Ie!=null){var on,Bn,Zt,zn,_n=[],nr=!0,Ft=!1;try{if(Zt=(Ie=Ie.call(wt)).next,pt===0){if(Object(Ie)!==Ie)return;nr=!1}else for(;!(nr=(on=Zt.call(Ie)).done)&&(_n.push(on.value),_n.length!==pt);nr=!0);}catch(Wt){Ft=!0,Bn=Wt}finally{try{if(!nr&&Ie.return!=null&&(zn=Ie.return(),Object(zn)!==zn))return}finally{if(Ft)throw Bn}}return _n}}function pe(wt,pt){(pt==null||pt>wt.length)&&(pt=wt.length);for(var Ie=0,on=new Array(pt);Ie<pt;Ie++)on[Ie]=wt[Ie];return on}function me(wt,pt){if(wt){if(typeof wt=="string")return pe(wt,pt);var Ie=Object.prototype.toString.call(wt).slice(8,-1);if(Ie==="Object"&&wt.constructor&&(Ie=wt.constructor.name),Ie==="Map"||Ie==="Set")return Array.from(wt);if(Ie==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ie))return pe(wt,pt)}}function xe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function be(wt,pt){return de(wt)||le(wt,pt)||me(wt,pt)||xe()}function Be(wt){var pt=Ge.useRef();pt.current=wt;var Ie=Ge.useCallback(function(){for(var on,Bn=arguments.length,Zt=new Array(Bn),zn=0;zn<Bn;zn++)Zt[zn]=arguments[zn];return(on=pt.current)===null||on===void 0?void 0:on.call.apply(on,[pt].concat(Zt))},[]);return Ie}function at(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var dt=at()?Ge.useLayoutEffect:Ge.useEffect,gt=function(pt,Ie){var on=Ge.useRef(!0);dt(function(){return pt(on.current)},Ie),dt(function(){return on.current=!1,function(){on.current=!0}},[])},ft=function(pt,Ie){gt(function(on){if(!on)return pt()},Ie)},Nt=null;function Tt(wt){var pt=Ge.useRef(!1),Ie=Ge.useState(wt),on=be(Ie,2),Bn=on[0],Zt=on[1];Ge.useEffect(function(){return pt.current=!1,function(){pt.current=!0}},[]);function zn(_n,nr){nr&&pt.current||Zt(_n)}return[Bn,zn]}function Ct(wt){return wt!==void 0}function Vt(wt,pt){var Ie=pt||{},on=Ie.defaultValue,Bn=Ie.value,Zt=Ie.onChange,zn=Ie.postState,_n=Tt(function(){return Ct(Bn)?Bn:Ct(on)?typeof on=="function"?on():on:typeof wt=="function"?wt():wt}),nr=be(_n,2),Ft=nr[0],Wt=nr[1],ht=Bn!==void 0?Bn:Ft,tn=zn?zn(ht):ht,an=Be(Zt),ct=Tt([ht]),Ue=be(ct,2),He=Ue[0],it=Ue[1];ft(function(){var Ye=He[0];Ft!==Ye&&an(Ft,Ye)},[He]),ft(function(){Ct(Bn)||Wt(Bn)},[Bn]);var vt=Be(function(Ye,It){Wt(Ye,It),it([ht],It)});return[tn,vt]}var Rt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(pt){var Ie=pt.keyCode;if(pt.altKey&&!pt.ctrlKey||pt.metaKey||Ie>=Rt.F1&&Ie<=Rt.F12)return!1;switch(Ie){case Rt.ALT:case Rt.CAPS_LOCK:case Rt.CONTEXT_MENU:case Rt.CTRL:case Rt.DOWN:case Rt.END:case Rt.ESC:case Rt.HOME:case Rt.INSERT:case Rt.LEFT:case Rt.MAC_FF_META:case Rt.META:case Rt.NUMLOCK:case Rt.NUM_CENTER:case Rt.PAGE_DOWN:case Rt.PAGE_UP:case Rt.PAUSE:case Rt.PRINT_SCREEN:case Rt.RIGHT:case Rt.SHIFT:case Rt.UP:case Rt.WIN_KEY:case Rt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(pt){if(pt>=Rt.ZERO&&pt<=Rt.NINE||pt>=Rt.NUM_ZERO&&pt<=Rt.NUM_MULTIPLY||pt>=Rt.A&&pt<=Rt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&pt===0)return!0;switch(pt){case Rt.SPACE:case Rt.QUESTION_MARK:case Rt.NUM_PLUS:case Rt.NUM_MINUS:case Rt.NUM_PERIOD:case Rt.NUM_DIVISION:case Rt.SEMICOLON:case Rt.DASH:case Rt.EQUALS:case Rt.COMMA:case Rt.PERIOD:case Rt.SLASH:case Rt.APOSTROPHE:case Rt.SINGLE_QUOTE:case Rt.OPEN_SQUARE_BRACKET:case Rt.BACKSLASH:case Rt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},nn=Rt,Cn=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],un=Ge.forwardRef(function(wt,pt){var Ie,on=wt.prefixCls,Bn=on===void 0?"rc-switch":on,Zt=wt.className,zn=wt.checked,_n=wt.defaultChecked,nr=wt.disabled,Ft=wt.loadingIcon,Wt=wt.checkedChildren,ht=wt.unCheckedChildren,tn=wt.onClick,an=wt.onChange,ct=wt.onKeyDown,Ue=_t(wt,Cn),He=Vt(!1,{value:zn,defaultValue:_n}),it=Et(He,2),vt=it[0],Ye=it[1];function It(Rn,er){var yn=vt;return nr||(yn=Rn,Ye(yn),an==null||an(yn,er)),yn}function In(Rn){Rn.which===nn.LEFT?It(!1,Rn):Rn.which===nn.RIGHT&&It(!0,Rn),ct==null||ct(Rn)}function Kn(Rn){var er=It(!vt,Rn);tn==null||tn(er,Rn)}var dr=ee()(Bn,Zt,(Ie={},tt(Ie,"".concat(Bn,"-checked"),vt),tt(Ie,"".concat(Bn,"-disabled"),nr),Ie));return Ge.createElement("button",ie({},Ue,{type:"button",role:"switch","aria-checked":vt,disabled:nr,className:dr,ref:pt,onKeyDown:In,onClick:Kn}),Ft,Ge.createElement("span",{className:"".concat(Bn,"-inner")},Ge.createElement("span",{className:"".concat(Bn,"-inner-checked")},Wt),Ge.createElement("span",{className:"".concat(Bn,"-inner-unchecked")},ht)))});un.displayName="Switch";var Nn=un},45233:function(Ke,we,ae){"use strict";ae.d(we,{R:function(){return Pe},w:function(){return ie}});var ie={},Pe="rc-table-internal-hook"},54768:function(Ke,we,ae){"use strict";ae.d(we,{L:function(){return de},Z:function(){return be}});var ie=ae(97685),Pe=ae(4942),Fe=ae(74902),Oe=ae(71002),tt=ae(1413),Me=ae(45987),_e=ae(63295),ut=ae(67294);function et(Be){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},dt=[];return ut.Children.forEach(Be,function(gt){gt==null&&!at.keepEmpty||(Array.isArray(gt)?dt=dt.concat(et(gt)):(0,_e.Z)(gt)&>.props?dt=dt.concat(et(gt.props.children,at)):dt.push(gt))}),dt}var lt=ae(40830),Et=ae(45233),rt=ae(62978);function _t(Be){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof at=="number"?at:at.endsWith("%")?Be*parseFloat(at)/100:null}function Ge(Be,at,dt){return ut.useMemo(function(){if(at&&at>0){var gt=0,ft=0;Be.forEach(function(un){var Nn=_t(at,un.width);Nn?gt+=Nn:ft+=1});var Nt=Math.max(at,dt),Tt=Math.max(Nt-gt,ft),Ct=ft,Vt=Tt/ft,Rt=0,nn=Be.map(function(un){var Nn=(0,tt.Z)({},un),wt=_t(at,Nn.width);if(wt)Nn.width=wt;else{var pt=Math.floor(Vt);Nn.width=Ct===1?Tt:pt,Tt-=pt,Ct-=1}return Rt+=Nn.width,Nn});if(Rt<Nt){var Cn=Nt/Rt;Tt=Nt,nn.forEach(function(un,Nn){var wt=Math.floor(un.width*Cn);un.width=Nn===nn.length-1?Tt:wt,Tt-=wt})}return[nn,Math.max(Rt,Nt)]}return[Be,at]},[Be,at,dt])}var te=["children"],ee=["fixed"];function de(Be){return et(Be).filter(function(at){return ut.isValidElement(at)}).map(function(at){var dt=at.key,gt=at.props,ft=gt.children,Nt=(0,Me.Z)(gt,te),Tt=(0,tt.Z)({key:dt},Nt);return ft&&(Tt.children=de(ft)),Tt})}function le(Be){return Be.filter(function(at){return at&&(0,Oe.Z)(at)==="object"&&!at.hidden}).map(function(at){var dt=at.children;return dt&&dt.length>0?(0,tt.Z)((0,tt.Z)({},at),{},{children:le(dt)}):at})}function pe(Be){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Be.filter(function(dt){return dt&&(0,Oe.Z)(dt)==="object"}).reduce(function(dt,gt,ft){var Nt=gt.fixed,Tt=Nt===!0?"left":Nt,Ct="".concat(at,"-").concat(ft),Vt=gt.children;return Vt&&Vt.length>0?[].concat((0,Fe.Z)(dt),(0,Fe.Z)(pe(Vt,Ct).map(function(Rt){return(0,tt.Z)({fixed:Tt},Rt)}))):[].concat((0,Fe.Z)(dt),[(0,tt.Z)((0,tt.Z)({key:Ct},gt),{},{fixed:Tt})])},[])}function me(Be){return Be.map(function(at){var dt=at.fixed,gt=(0,Me.Z)(at,ee),ft=dt;return dt==="left"?ft="right":dt==="right"&&(ft="left"),(0,tt.Z)({fixed:ft},gt)})}function xe(Be,at){var dt=Be.prefixCls,gt=Be.columns,ft=Be.children,Nt=Be.expandable,Tt=Be.expandedKeys,Ct=Be.columnTitle,Vt=Be.getRowKey,Rt=Be.onTriggerExpand,nn=Be.expandIcon,Cn=Be.rowExpandable,un=Be.expandIconColumnIndex,Nn=Be.direction,wt=Be.expandRowByClick,pt=Be.columnWidth,Ie=Be.fixed,on=Be.scrollWidth,Bn=Be.clientWidth,Zt=ut.useMemo(function(){var ct=gt||de(ft)||[];return le(ct.slice())},[gt,ft]),zn=ut.useMemo(function(){if(Nt){var ct=Zt.slice();if(!ct.includes(Et.w)){var Ue=un||0;Ue>=0&&(Ue||Ie==="left"||!Ie)&&ct.splice(Ue,0,Et.w),Ie==="right"&&ct.splice(Zt.length,0,Et.w)}var He=ct.indexOf(Et.w);ct=ct.filter(function(It,In){return It!==Et.w||In===He});var it=Zt[He],vt;Ie?vt=Ie:vt=it?it.fixed:null;var Ye=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},rt.v,{className:"".concat(dt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",Ct),"fixed",vt),"className","".concat(dt,"-row-expand-icon-cell")),"width",pt),"render",function(In,Kn,dr){var Rn=Vt(Kn,dr),er=Tt.has(Rn),yn=Cn?Cn(Kn):!0,Er=nn({prefixCls:dt,expanded:er,expandable:yn,record:Kn,onExpand:Rt});return wt?ut.createElement("span",{onClick:function(Hr){return Hr.stopPropagation()}},Er):Er});return ct.map(function(It){return It===Et.w?Ye:It})}return Zt.filter(function(It){return It!==Et.w})},[Nt,Zt,Vt,Tt,nn,Nn]),_n=ut.useMemo(function(){var ct=zn;return at&&(ct=at(ct)),ct.length||(ct=[{render:function(){return null}}]),ct},[at,zn,Nn]),nr=ut.useMemo(function(){return Nn==="rtl"?me(pe(_n)):pe(_n)},[_n,Nn,on]),Ft=ut.useMemo(function(){for(var ct=-1,Ue=nr.length-1;Ue>=0;Ue-=1){var He=nr[Ue].fixed;if(He==="left"||He===!0){ct=Ue;break}}if(ct>=0)for(var it=0;it<=ct;it+=1){var vt=nr[it].fixed;if(vt!=="left"&&vt!==!0)return!0}var Ye=nr.findIndex(function(Kn){var dr=Kn.fixed;return dr==="right"});if(Ye>=0)for(var It=Ye;It<nr.length;It+=1){var In=nr[It].fixed;if(In!=="right")return!0}return!1},[nr]),Wt=Ge(nr,on,Bn),ht=(0,ie.Z)(Wt,2),tn=ht[0],an=ht[1];return[_n,tn,an,Ft]}var be=xe},29104:function(Ke,we,ae){"use strict";ae.d(we,{w2:function(){return ie.w},vP:function(){return qo.v},RQ:function(){return ie.R},ER:function(){return ir},Q$:function(){return vs},TN:function(){return gc}});var ie=ae(45233),Pe=ae(97685),Fe=ae(66680),Oe=ae(8410),tt=ae(91881),Me=ae(67294),_e=ae(73935);function ut(kt){var en=Me.createContext(void 0),cn=function(Dn){var qn=Dn.value,lr=Dn.children,Pr=Me.useRef(qn);Pr.current=qn;var Kr=Me.useState(function(){return{getValue:function(){return Pr.current},listeners:new Set}}),Br=(0,Pe.Z)(Kr,1),Si=Br[0];return(0,Oe.Z)(function(){(0,_e.unstable_batchedUpdates)(function(){Si.listeners.forEach(function(Gr){Gr(qn)})})},[qn]),Me.createElement(en.Provider,{value:Si},lr)};return{Context:en,Provider:cn,defaultValue:kt}}function et(kt,en){var cn=(0,Fe.Z)(typeof en=="function"?en:function(Gr){if(en===void 0)return Gr;if(!Array.isArray(en))return Gr[en];var li={};return en.forEach(function($r){li[$r]=Gr[$r]}),li}),hn=Me.useContext(kt==null?void 0:kt.Context),Dn=hn||{},qn=Dn.listeners,lr=Dn.getValue,Pr=Me.useRef();Pr.current=cn(hn?lr():kt==null?void 0:kt.defaultValue);var Kr=Me.useState({}),Br=(0,Pe.Z)(Kr,2),Si=Br[1];return(0,Oe.Z)(function(){if(!hn)return;function Gr(li){var $r=cn(li);(0,tt.Z)(Pr.current,$r,!0)||Si({})}return qn.add(Gr),function(){qn.delete(Gr)}},[hn]),Pr.current}var lt=ae(87462),Et=ae(42550);function rt(){var kt=Me.createContext(null);function en(){return Me.useContext(kt)}function cn(Dn,qn){var lr=(0,Et.Yr)(Dn),Pr=function(Br,Si){var Gr=lr?{ref:Si}:{},li=Me.useRef(0),$r=Me.useRef(Br),Ii=en();return Ii!==null?Me.createElement(Dn,(0,lt.Z)({},Br,Gr)):((!qn||qn($r.current,Br))&&(li.current+=1),$r.current=Br,Me.createElement(kt.Provider,{value:li.current},Me.createElement(Dn,(0,lt.Z)({},Br,Gr))))};return lr?Me.forwardRef(Pr):Pr}function hn(Dn,qn){var lr=(0,Et.Yr)(Dn),Pr=function(Br,Si){var Gr=lr?{ref:Si}:{};return en(),Me.createElement(Dn,(0,lt.Z)({},Br,Gr))};return lr?Me.memo(Me.forwardRef(Pr),qn):Me.memo(Pr,qn)}return{makeImmutable:cn,responseImmutable:hn,useImmutableMark:en}}var _t=rt(),Ge=_t.makeImmutable,te=_t.responseImmutable,ee=_t.useImmutableMark,de=rt(),le=de.makeImmutable,pe=de.responseImmutable,me=de.useImmutableMark,xe=ut(),be=xe;function Be(kt,en){var cn=React.useRef(0);cn.current+=1;var hn=React.useRef(kt),Dn=[];Object.keys(kt||{}).map(function(lr){var Pr;(kt==null?void 0:kt[lr])!==((Pr=hn.current)===null||Pr===void 0?void 0:Pr[lr])&&Dn.push(lr)}),hn.current=kt;var qn=React.useRef([]);return Dn.length&&(qn.current=Dn),React.useDebugValue(cn.current),React.useDebugValue(qn.current.join(", ")),en&&console.log("".concat(en,":"),cn.current,qn.current),cn.current}var at=null,dt=null,gt=ae(71002),ft=ae(1413),Nt=ae(4942),Tt=ae(94184),Ct=ae.n(Tt);function Vt(kt,en,cn){var hn=Me.useRef({});return(!("value"in hn.current)||cn(hn.current.condition,en))&&(hn.current.value=kt(),hn.current.condition=en),hn.current.value}var Rt=ae(40830);function nn(kt,en){var cn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,hn=new Set;function Dn(qn,lr){var Pr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Kr=hn.has(qn);if((0,Rt.ZP)(!Kr,"Warning: There may be circular references"),Kr)return!1;if(qn===lr)return!0;if(cn&&Pr>1)return!1;hn.add(qn);var Br=Pr+1;if(Array.isArray(qn)){if(!Array.isArray(lr)||qn.length!==lr.length)return!1;for(var Si=0;Si<qn.length;Si++)if(!Dn(qn[Si],lr[Si],Br))return!1;return!0}if(qn&&lr&&(0,gt.Z)(qn)==="object"&&(0,gt.Z)(lr)==="object"){var Gr=Object.keys(qn);return Gr.length!==Object.keys(lr).length?!1:Gr.every(function(li){return Dn(qn[li],lr[li],Br)})}return!1}return Dn(kt,en)}var Cn=nn;function un(kt,en){for(var cn=kt,hn=0;hn<en.length;hn+=1){if(cn==null)return;cn=cn[en[hn]]}return cn}var Nn=Me.createContext({renderWithProps:!1}),wt=Nn,pt="RC_TABLE_KEY";function Ie(kt){return kt==null?[]:Array.isArray(kt)?kt:[kt]}function on(kt){var en=[],cn={};return kt.forEach(function(hn){for(var Dn=hn||{},qn=Dn.key,lr=Dn.dataIndex,Pr=qn||Ie(lr).join("-")||pt;cn[Pr];)Pr="".concat(Pr,"_next");cn[Pr]=!0,en.push(Pr)}),en}function Bn(kt){return kt!=null}function Zt(kt){return typeof kt=="number"&&!Number.isNaN(kt)}function zn(kt){return kt&&(0,gt.Z)(kt)==="object"&&!Array.isArray(kt)&&!Me.isValidElement(kt)}function _n(kt,en,cn,hn,Dn,qn){var lr=Me.useContext(wt),Pr=me(),Kr=Vt(function(){if(Bn(hn))return[hn];var Br=en==null||en===""?[]:Array.isArray(en)?en:[en],Si=un(kt,Br),Gr=Si,li=void 0;if(Dn){var $r=Dn(Si,kt,cn);zn($r)?(Gr=$r.children,li=$r.props,lr.renderWithProps=!0):Gr=$r}return[Gr,li]},[Pr,kt,hn,en,Dn,cn],function(Br,Si){if(qn){var Gr=(0,Pe.Z)(Br,2),li=Gr[1],$r=(0,Pe.Z)(Si,2),Ii=$r[1];return qn(Ii,li)}return lr.renderWithProps?!0:!Cn(Br,Si,!0)});return Kr}function nr(kt,en,cn,hn){var Dn=kt+en-1;return kt<=hn&&Dn>=cn}function Ft(kt,en){return et(be,function(cn){var hn=nr(kt,en||1,cn.hoverStartRow,cn.hoverEndRow);return[hn,cn.onHover]})}function Wt(kt){var en=Me.useRef();en.current=kt;var cn=Me.useCallback(function(){for(var hn,Dn=arguments.length,qn=new Array(Dn),lr=0;lr<Dn;lr++)qn[lr]=arguments[lr];return(hn=en.current)===null||hn===void 0?void 0:hn.call.apply(hn,[en].concat(qn))},[]);return cn}function ht(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var tn=ht()?Me.useLayoutEffect:Me.useEffect,an=function(en,cn){var hn=React.useRef(!0);tn(function(){return en(hn.current)},cn),tn(function(){return hn.current=!1,function(){hn.current=!0}},[])},ct=function(en,cn){an(function(hn){if(!hn)return en()},cn)},Ue=null;function He(kt){var en=React.useRef(!1),cn=React.useState(kt),hn=_slicedToArray(cn,2),Dn=hn[0],qn=hn[1];React.useEffect(function(){return en.current=!1,function(){en.current=!0}},[]);function lr(Pr,Kr){Kr&&en.current||qn(Pr)}return[Dn,lr]}function it(kt){return kt!==void 0}function vt(kt,en){var cn=en||{},hn=cn.defaultValue,Dn=cn.value,qn=cn.onChange,lr=cn.postState,Pr=useState(function(){return it(Dn)?Dn:it(hn)?typeof hn=="function"?hn():hn:typeof kt=="function"?kt():kt}),Kr=_slicedToArray(Pr,2),Br=Kr[0],Si=Kr[1],Gr=Dn!==void 0?Dn:Br,li=lr?lr(Gr):Gr,$r=useEvent(qn),Ii=useState([Gr]),co=_slicedToArray(Ii,2),To=co[0],ra=co[1];useLayoutUpdateEffect(function(){var bo=To[0];Br!==bo&&$r(Br,bo)},[To]),useLayoutUpdateEffect(function(){it(Dn)||Si(Dn)},[Dn]);var Mi=useEvent(function(bo,ro){Si(bo,ro),ra([Gr],ro)});return[li,Mi]}var Ye=ae(35110),It=ae(63295),In=Number(Me.version.split(".")[0]),Kn=function(en,cn){typeof en=="function"?en(cn):(0,gt.Z)(en)==="object"&&en&&"current"in en&&(en.current=cn)},dr=function(){for(var en=arguments.length,cn=new Array(en),hn=0;hn<en;hn++)cn[hn]=arguments[hn];var Dn=cn.filter(Boolean);return Dn.length<=1?Dn[0]:function(qn){cn.forEach(function(lr){Kn(lr,qn)})}},Rn=function(){for(var en=arguments.length,cn=new Array(en),hn=0;hn<en;hn++)cn[hn]=arguments[hn];return useMemo(function(){return dr.apply(void 0,cn)},cn,function(Dn,qn){return Dn.length!==qn.length||Dn.every(function(lr,Pr){return lr!==qn[Pr]})})},er=function(en){var cn,hn;if(!en)return!1;if(yn(en)&&In>=19)return!0;var Dn=isMemo(en)?en.type.type:en.type;return!(typeof Dn=="function"&&!((cn=Dn.prototype)!==null&&cn!==void 0&&cn.render)&&Dn.$$typeof!==ForwardRef||typeof en=="function"&&!((hn=en.prototype)!==null&&hn!==void 0&&hn.render)&&en.$$typeof!==ForwardRef)};function yn(kt){return isValidElement(kt)&&!isFragment(kt)}var Er=function(en){return yn(en)&&er(en)},sr=function(en){if(en&&yn(en)){var cn=en;return cn.props.propertyIsEnumerable("ref")?cn.props.ref:cn.ref}return null};function Hr(kt,en,cn,hn){if(!en.length)return cn;var Dn=_toArray(en),qn=Dn[0],lr=Dn.slice(1),Pr;return!kt&&typeof qn=="number"?Pr=[]:Array.isArray(kt)?Pr=_toConsumableArray(kt):Pr=_objectSpread({},kt),hn&&cn===void 0&&lr.length===1?delete Pr[qn][lr[0]]:Pr[qn]=Hr(Pr[qn],lr,cn,hn),Pr}function An(kt,en,cn){var hn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return en.length&&hn&&cn===void 0&&!get(kt,en.slice(0,-1))?kt:Hr(kt,en,cn,hn)}function yi(kt){return _typeof(kt)==="object"&&kt!==null&&Object.getPrototypeOf(kt)===Object.prototype}function ri(kt){return Array.isArray(kt)?[]:{}}var bn=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Xe(){for(var kt=arguments.length,en=new Array(kt),cn=0;cn<kt;cn++)en[cn]=arguments[cn];var hn=ri(en[0]);return en.forEach(function(Dn){function qn(lr,Pr){var Kr=new Set(Pr),Br=get(Dn,lr),Si=Array.isArray(Br);if(Si||yi(Br)){if(!Kr.has(Br)){Kr.add(Br);var Gr=get(hn,lr);Si?hn=An(hn,lr,[]):(!Gr||_typeof(Gr)!=="object")&&(hn=An(hn,lr,ri(Br))),bn(Br).forEach(function(li){qn([].concat(_toConsumableArray(lr),[li]),Kr)})}}else hn=An(hn,lr,Br)}qn([])}),hn}var Ji=function(en){var cn=en.ellipsis,hn=en.rowType,Dn=en.children,qn,lr=cn===!0?{showTitle:!0}:cn;return lr&&(lr.showTitle||hn==="header")&&(typeof Dn=="string"||typeof Dn=="number"?qn=Dn.toString():Me.isValidElement(Dn)&&typeof Dn.props.children=="string"&&(qn=Dn.props.children)),qn};function Qn(kt){var en,cn,hn,Dn,qn,lr,Pr,Kr,Br=kt.component,Si=kt.children,Gr=kt.ellipsis,li=kt.scope,$r=kt.prefixCls,Ii=kt.className,co=kt.align,To=kt.record,ra=kt.render,Mi=kt.dataIndex,bo=kt.renderIndex,ro=kt.shouldCellUpdate,ea=kt.index,Ia=kt.rowType,Vo=kt.colSpan,ss=kt.rowSpan,Ma=kt.fixLeft,qa=kt.fixRight,Le=kt.firstFixLeft,nt=kt.lastFixLeft,Se=kt.firstFixRight,Te=kt.lastFixRight,ze=kt.appendNode,Qe=kt.additionalProps,mt=Qe===void 0?{}:Qe,Ae=kt.isSticky,De="".concat($r,"-cell"),qe=et(be,["supportSticky","allColumnsFixedLeft","rowHoverable"]),ot=qe.supportSticky,Lt=qe.allColumnsFixedLeft,Ut=qe.rowHoverable,jt=_n(To,Mi,bo,Si,ra,ro),se=(0,Pe.Z)(jt,2),fe=se[0],je=se[1],St={},Yt=typeof Ma=="number"&&ot,mn=typeof qa=="number"&&ot;Yt&&(St.position="sticky",St.left=Ma),mn&&(St.position="sticky",St.right=qa);var wn=(en=(cn=(hn=je==null?void 0:je.colSpan)!==null&&hn!==void 0?hn:mt.colSpan)!==null&&cn!==void 0?cn:Vo)!==null&&en!==void 0?en:1,On=(Dn=(qn=(lr=je==null?void 0:je.rowSpan)!==null&&lr!==void 0?lr:mt.rowSpan)!==null&&qn!==void 0?qn:ss)!==null&&Dn!==void 0?Dn:1,Tn=Ft(ea,On),br=(0,Pe.Z)(Tn,2),Wr=br[0],di=br[1],ii=Wt(function(Vi){var bi;To&&di(ea,ea+On-1),mt==null||(bi=mt.onMouseEnter)===null||bi===void 0||bi.call(mt,Vi)}),oi=Wt(function(Vi){var bi;To&&di(-1,-1),mt==null||(bi=mt.onMouseLeave)===null||bi===void 0||bi.call(mt,Vi)});if(wn===0||On===0)return null;var Di=(Pr=mt.title)!==null&&Pr!==void 0?Pr:Ji({rowType:Ia,ellipsis:Gr,children:fe}),cr=Ct()(De,Ii,(Kr={},(0,Nt.Z)((0,Nt.Z)((0,Nt.Z)((0,Nt.Z)((0,Nt.Z)((0,Nt.Z)((0,Nt.Z)((0,Nt.Z)((0,Nt.Z)((0,Nt.Z)(Kr,"".concat(De,"-fix-left"),Yt&&ot),"".concat(De,"-fix-left-first"),Le&&ot),"".concat(De,"-fix-left-last"),nt&&ot),"".concat(De,"-fix-left-all"),nt&&Lt&&ot),"".concat(De,"-fix-right"),mn&&ot),"".concat(De,"-fix-right-first"),Se&&ot),"".concat(De,"-fix-right-last"),Te&&ot),"".concat(De,"-ellipsis"),Gr),"".concat(De,"-with-append"),ze),"".concat(De,"-fix-sticky"),(Yt||mn)&&Ae&&ot),(0,Nt.Z)(Kr,"".concat(De,"-row-hover"),!je&&Wr)),mt.className,je==null?void 0:je.className),pi={};co&&(pi.textAlign=co);var Yr=(0,ft.Z)((0,ft.Z)((0,ft.Z)((0,ft.Z)({},je==null?void 0:je.style),St),pi),mt.style),Li=fe;return(0,gt.Z)(Li)==="object"&&!Array.isArray(Li)&&!Me.isValidElement(Li)&&(Li=null),Gr&&(nt||Se)&&(Li=Me.createElement("span",{className:"".concat(De,"-content")},Li)),Me.createElement(Br,(0,lt.Z)({},je,mt,{className:cr,style:Yr,title:Di,scope:li,onMouseEnter:Ut?ii:void 0,onMouseLeave:Ut?oi:void 0,colSpan:wn!==1?wn:null,rowSpan:On!==1?On:null}),ze,Li)}var Sn=Me.memo(Qn);function to(kt,en,cn,hn,Dn){var qn=cn[kt]||{},lr=cn[en]||{},Pr,Kr;qn.fixed==="left"?Pr=hn.left[Dn==="rtl"?en:kt]:lr.fixed==="right"&&(Kr=hn.right[Dn==="rtl"?kt:en]);var Br=!1,Si=!1,Gr=!1,li=!1,$r=cn[en+1],Ii=cn[kt-1],co=$r&&!$r.fixed||Ii&&!Ii.fixed||cn.every(function(ro){return ro.fixed==="left"});if(Dn==="rtl"){if(Pr!==void 0){var To=Ii&&Ii.fixed==="left";li=!To&&co}else if(Kr!==void 0){var ra=$r&&$r.fixed==="right";Gr=!ra&&co}}else if(Pr!==void 0){var Mi=$r&&$r.fixed==="left";Br=!Mi&&co}else if(Kr!==void 0){var bo=Ii&&Ii.fixed==="right";Si=!bo&&co}return{fixLeft:Pr,fixRight:Kr,lastFixLeft:Br,firstFixRight:Si,lastFixRight:Gr,firstFixLeft:li,isSticky:hn.isSticky}}var Ki=Me.createContext({}),Zr=Ki;function hi(kt){var en=kt.className,cn=kt.index,hn=kt.children,Dn=kt.colSpan,qn=Dn===void 0?1:Dn,lr=kt.rowSpan,Pr=kt.align,Kr=et(be,["prefixCls","direction"]),Br=Kr.prefixCls,Si=Kr.direction,Gr=Me.useContext(Zr),li=Gr.scrollColumnIndex,$r=Gr.stickyOffsets,Ii=Gr.flattenColumns,co=cn+qn-1,To=co+1===li?qn+1:qn,ra=to(cn,cn+To-1,Ii,$r,Si);return Me.createElement(Sn,(0,lt.Z)({className:en,index:cn,component:"td",prefixCls:Br,record:null,dataIndex:null,align:Pr,colSpan:To,rowSpan:lr,render:function(){return hn}},ra))}var Ir=ae(45987),fn=["children"];function Hi(kt){var en=kt.children,cn=(0,Ir.Z)(kt,fn);return Me.createElement("tr",cn,en)}function ao(kt){var en=kt.children;return en}ao.Row=Hi,ao.Cell=hi;var ui=ao;function ai(kt){var en=kt.children,cn=kt.stickyOffsets,hn=kt.flattenColumns,Dn=et(be,"prefixCls"),qn=hn.length-1,lr=hn[qn],Pr=Me.useMemo(function(){return{stickyOffsets:cn,flattenColumns:hn,scrollColumnIndex:lr!=null&&lr.scrollbar?qn:null}},[lr,hn,qn,cn]);return Me.createElement(Zr.Provider,{value:Pr},Me.createElement("tfoot",{className:"".concat(Dn,"-summary")},en))}var Ni=pe(ai),ir=ui,We=ae(48555),rr=function(kt){if(!kt)return!1;if(kt instanceof Element){if(kt.offsetParent)return!0;if(kt.getBBox){var en=kt.getBBox(),cn=en.width,hn=en.height;if(cn||hn)return!0}if(kt.getBoundingClientRect){var Dn=kt.getBoundingClientRect(),qn=Dn.width,lr=Dn.height;if(qn||lr)return!0}}return!1},ur=function(en){if(ht()&&window.document.documentElement){var cn=Array.isArray(en)?en:[en],hn=window.document.documentElement;return cn.some(function(Dn){return Dn in hn.style})}return!1},hr=function(en,cn){if(!ur(en))return!1;var hn=document.createElement("div"),Dn=hn.style[en];return hn.style[en]=cn,hn.style[en]!==Dn};function Or(kt,en){return!Array.isArray(kt)&&en!==void 0?hr(kt,en):ur(kt)}function jr(kt,en){if(!kt)return!1;if(kt.contains)return kt.contains(en);for(var cn=en;cn;){if(cn===kt)return!0;cn=cn.parentNode}return!1}var si="data-rc-order",Fi="data-rc-priority",Vn="rc-util-key",Wn=new Map;function vn(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},en=kt.mark;return en?en.startsWith("data-")?en:"data-".concat(en):Vn}function tr(kt){if(kt.attachTo)return kt.attachTo;var en=document.querySelector("head");return en||document.body}function mi(kt){return kt==="queue"?"prependQueue":kt?"prepend":"append"}function gi(kt){return Array.from((Wn.get(kt)||kt).children).filter(function(en){return en.tagName==="STYLE"})}function ti(kt){var en=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ht())return null;var cn=en.csp,hn=en.prepend,Dn=en.priority,qn=Dn===void 0?0:Dn,lr=mi(hn),Pr=lr==="prependQueue",Kr=document.createElement("style");Kr.setAttribute(si,lr),Pr&&qn&&Kr.setAttribute(Fi,"".concat(qn)),cn!=null&&cn.nonce&&(Kr.nonce=cn==null?void 0:cn.nonce),Kr.innerHTML=kt;var Br=tr(en),Si=Br.firstChild;if(hn){if(Pr){var Gr=(en.styles||gi(Br)).filter(function(li){if(!["prepend","prependQueue"].includes(li.getAttribute(si)))return!1;var $r=Number(li.getAttribute(Fi)||0);return qn>=$r});if(Gr.length)return Br.insertBefore(Kr,Gr[Gr.length-1].nextSibling),Kr}Br.insertBefore(Kr,Si)}else Br.appendChild(Kr);return Kr}function Hn(kt){var en=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},cn=tr(en);return(en.styles||gi(cn)).find(function(hn){return hn.getAttribute(vn(en))===kt})}function Cr(kt){var en=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},cn=Hn(kt,en);if(cn){var hn=tr(en);hn.removeChild(cn)}}function Ri(kt,en){var cn=Wn.get(kt);if(!cn||!jr(document,cn)){var hn=ti("",en),Dn=hn.parentNode;Wn.set(kt,Dn),kt.removeChild(hn)}}function _i(){Wn.clear()}function Ur(kt,en){var cn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},hn=tr(cn),Dn=gi(hn),qn=(0,ft.Z)((0,ft.Z)({},cn),{},{styles:Dn});Ri(hn,qn);var lr=Hn(en,qn);if(lr){var Pr,Kr;if((Pr=qn.csp)!==null&&Pr!==void 0&&Pr.nonce&&lr.nonce!==((Kr=qn.csp)===null||Kr===void 0?void 0:Kr.nonce)){var Br;lr.nonce=(Br=qn.csp)===null||Br===void 0?void 0:Br.nonce}return lr.innerHTML!==kt&&(lr.innerHTML=kt),lr}var Si=ti(kt,qn);return Si.setAttribute(vn(qn),en),Si}var Pn;function xi(kt){var en="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),cn=document.createElement("div");cn.id=en;var hn=cn.style;hn.position="absolute",hn.left="0",hn.top="0",hn.width="100px",hn.height="100px",hn.overflow="scroll";var Dn,qn;if(kt){var lr=getComputedStyle(kt);hn.scrollbarColor=lr.scrollbarColor,hn.scrollbarWidth=lr.scrollbarWidth;var Pr=getComputedStyle(kt,"::-webkit-scrollbar"),Kr=parseInt(Pr.width,10),Br=parseInt(Pr.height,10);try{var Si=Kr?"width: ".concat(Pr.width,";"):"",Gr=Br?"height: ".concat(Pr.height,";"):"";Ur(`
|
|
|
#`.concat(en,`::-webkit-scrollbar {
|
|
|
`).concat(Si,`
|
|
|
`).concat(Gr,`
|
|
|
}`),en)}catch(Ii){console.error(Ii),Dn=Kr,qn=Br}}document.body.appendChild(cn);var li=kt&&Dn&&!isNaN(Dn)?Dn:cn.offsetWidth-cn.clientWidth,$r=kt&&qn&&!isNaN(qn)?qn:cn.offsetHeight-cn.clientHeight;return document.body.removeChild(cn),Cr(en),{width:li,height:$r}}function ji(kt){return typeof document=="undefined"?0:((kt||Pn===void 0)&&(Pn=xi()),Pn.width)}function Xo(kt){return typeof document=="undefined"||!kt||!(kt instanceof Element)?{width:0,height:0}:xi(kt)}var wr=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,Gi=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Jr="".concat(wr," ").concat(Gi).split(/[\s\n]+/),ls="aria-",Pa="data-";function Oi(kt,en){return kt.indexOf(en)===0}function Yi(kt){var en=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,cn;en===!1?cn={aria:!0,data:!0,attr:!0}:en===!0?cn={aria:!0}:cn=(0,ft.Z)({},en);var hn={};return Object.keys(kt).forEach(function(Dn){(cn.aria&&(Dn==="role"||Oi(Dn,ls))||cn.data&&Oi(Dn,Pa)||cn.attr&&Jr.includes(Dn))&&(hn[Dn]=kt[Dn])}),hn}function uo(kt,en,cn,hn,Dn,qn,lr){kt.push({record:en,indent:cn,index:lr});var Pr=qn(en),Kr=Dn==null?void 0:Dn.has(Pr);if(en&&Array.isArray(en[hn])&&Kr)for(var Br=0;Br<en[hn].length;Br+=1)uo(kt,en[hn][Br],cn+1,hn,Dn,qn,Br)}function ba(kt,en,cn,hn){var Dn=Me.useMemo(function(){if(cn!=null&&cn.size){for(var qn=[],lr=0;lr<(kt==null?void 0:kt.length);lr+=1){var Pr=kt[lr];uo(qn,Pr,0,en,cn,hn,lr)}return qn}return kt==null?void 0:kt.map(function(Kr,Br){return{record:Kr,indent:0,index:Br}})},[kt,en,cn,hn]);return Dn}function Go(kt,en,cn,hn){var Dn=et(be,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),qn=Dn.flattenColumns,lr=Dn.expandableType,Pr=Dn.expandedKeys,Kr=Dn.childrenColumnName,Br=Dn.onTriggerExpand,Si=Dn.rowExpandable,Gr=Dn.onRow,li=Dn.expandRowByClick,$r=Dn.rowClassName,Ii=lr==="nest",co=lr==="row"&&(!Si||Si(kt)),To=co||Ii,ra=Pr&&Pr.has(en),Mi=Kr&&kt&&kt[Kr],bo=Wt(Br),ro=Gr==null?void 0:Gr(kt,cn),ea=ro==null?void 0:ro.onClick,Ia=function(qa){li&&To&&Br(kt,qa);for(var Le=arguments.length,nt=new Array(Le>1?Le-1:0),Se=1;Se<Le;Se++)nt[Se-1]=arguments[Se];ea==null||ea.apply(void 0,[qa].concat(nt))},Vo;typeof $r=="string"?Vo=$r:typeof $r=="function"&&(Vo=$r(kt,cn,hn));var ss=on(qn);return(0,ft.Z)((0,ft.Z)({},Dn),{},{columnsKey:ss,nestExpandable:Ii,expanded:ra,hasNestChildren:Mi,record:kt,onTriggerExpand:bo,rowSupportExpand:co,expandable:To,rowProps:(0,ft.Z)((0,ft.Z)({},ro),{},{className:Ct()(Vo,ro==null?void 0:ro.className),onClick:Ia})})}function zr(kt){var en=kt.prefixCls,cn=kt.children,hn=kt.component,Dn=kt.cellComponent,qn=kt.className,lr=kt.expanded,Pr=kt.colSpan,Kr=kt.isEmpty,Br=et(be,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Si=Br.scrollbarSize,Gr=Br.fixHeader,li=Br.fixColumn,$r=Br.componentWidth,Ii=Br.horizonScroll,co=cn;return(Kr?Ii&&$r:li)&&(co=Me.createElement("div",{style:{width:$r-(Gr&&!Kr?Si:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(en,"-expanded-row-fixed")},co)),Me.createElement(hn,{className:qn,style:{display:lr?null:"none"}},Me.createElement(Sn,{component:Dn,prefixCls:en,colSpan:Pr},co))}var vo=zr;function sl(kt){var en=kt.prefixCls,cn=kt.record,hn=kt.onExpand,Dn=kt.expanded,qn=kt.expandable,lr="".concat(en,"-row-expand-icon");if(!qn)return Me.createElement("span",{className:Ct()(lr,"".concat(en,"-row-spaced"))});var Pr=function(Br){hn(cn,Br),Br.stopPropagation()};return Me.createElement("span",{className:Ct()(lr,(0,Nt.Z)((0,Nt.Z)({},"".concat(en,"-row-expanded"),Dn),"".concat(en,"-row-collapsed"),!Dn)),onClick:Pr})}function gs(kt,en,cn){var hn=[];function Dn(qn){(qn||[]).forEach(function(lr,Pr){hn.push(en(lr,Pr)),Dn(lr[cn])})}return Dn(kt),hn}function es(kt,en,cn,hn){return typeof kt=="string"?kt:typeof kt=="function"?kt(en,cn,hn):""}function Mn(kt,en,cn,hn,Dn){var qn=kt.record,lr=kt.prefixCls,Pr=kt.columnsKey,Kr=kt.fixedInfoList,Br=kt.expandIconColumnIndex,Si=kt.nestExpandable,Gr=kt.indentSize,li=kt.expandIcon,$r=kt.expanded,Ii=kt.hasNestChildren,co=kt.onTriggerExpand,To=Pr[cn],ra=Kr[cn],Mi;cn===(Br||0)&&Si&&(Mi=Me.createElement(Me.Fragment,null,Me.createElement("span",{style:{paddingLeft:"".concat(Gr*hn,"px")},className:"".concat(lr,"-row-indent indent-level-").concat(hn)}),li({prefixCls:lr,expanded:$r,expandable:Ii,record:qn,onExpand:co})));var bo;return en.onCell&&(bo=en.onCell(qn,Dn)),{key:To,fixedInfo:ra,appendCellNode:Mi,additionalCellProps:bo||{}}}function Co(kt){var en=kt.className,cn=kt.style,hn=kt.record,Dn=kt.index,qn=kt.renderIndex,lr=kt.rowKey,Pr=kt.indent,Kr=Pr===void 0?0:Pr,Br=kt.rowComponent,Si=kt.cellComponent,Gr=kt.scopeCellComponent,li=Go(hn,lr,Dn,Kr),$r=li.prefixCls,Ii=li.flattenColumns,co=li.expandedRowClassName,To=li.expandedRowRender,ra=li.rowProps,Mi=li.expanded,bo=li.rowSupportExpand,ro=Me.useRef(!1);ro.current||(ro.current=Mi);var ea=es(co,hn,Dn,Kr),Ia=Me.createElement(Br,(0,lt.Z)({},ra,{"data-row-key":lr,className:Ct()(en,"".concat($r,"-row"),"".concat($r,"-row-level-").concat(Kr),ra==null?void 0:ra.className,(0,Nt.Z)({},ea,Kr>=1)),style:(0,ft.Z)((0,ft.Z)({},cn),ra==null?void 0:ra.style)}),Ii.map(function(Ma,qa){var Le=Ma.render,nt=Ma.dataIndex,Se=Ma.className,Te=Mn(li,Ma,qa,Kr,Dn),ze=Te.key,Qe=Te.fixedInfo,mt=Te.appendCellNode,Ae=Te.additionalCellProps;return Me.createElement(Sn,(0,lt.Z)({className:Se,ellipsis:Ma.ellipsis,align:Ma.align,scope:Ma.rowScope,component:Ma.rowScope?Gr:Si,prefixCls:$r,key:ze,record:hn,index:Dn,renderIndex:qn,dataIndex:nt,render:Le,shouldCellUpdate:Ma.shouldCellUpdate},Qe,{appendNode:mt,additionalProps:Ae}))})),Vo;if(bo&&(ro.current||Mi)){var ss=To(hn,Dn,Kr+1,Mi);Vo=Me.createElement(vo,{expanded:Mi,className:Ct()("".concat($r,"-expanded-row"),"".concat($r,"-expanded-row-level-").concat(Kr+1),ea),prefixCls:$r,component:Br,cellComponent:Si,colSpan:Ii.length,isEmpty:!1},ss)}return Me.createElement(Me.Fragment,null,Ia,Vo)}var Ta=pe(Co);function lo(kt){var en=kt.columnKey,cn=kt.onColumnResize,hn=Me.useRef();return Me.useEffect(function(){hn.current&&cn(en,hn.current.offsetWidth)},[]),Me.createElement(We.Z,{data:en},Me.createElement("td",{ref:hn,style:{padding:0,border:0,height:0}},Me.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function oa(kt){var en=kt.prefixCls,cn=kt.columnsKey,hn=kt.onColumnResize;return Me.createElement("tr",{"aria-hidden":"true",className:"".concat(en,"-measure-row"),style:{height:0,fontSize:0}},Me.createElement(We.Z.Collection,{onBatchResize:function(qn){qn.forEach(function(lr){var Pr=lr.data,Kr=lr.size;hn(Pr,Kr.offsetWidth)})}},cn.map(function(Dn){return Me.createElement(lo,{key:Dn,columnKey:Dn,onColumnResize:hn})})))}function fa(kt){var en=kt.data,cn=kt.measureColumnWidth,hn=et(be,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Dn=hn.prefixCls,qn=hn.getComponent,lr=hn.onColumnResize,Pr=hn.flattenColumns,Kr=hn.getRowKey,Br=hn.expandedKeys,Si=hn.childrenColumnName,Gr=hn.emptyNode,li=ba(en,Si,Br,Kr),$r=Me.useRef({renderWithProps:!1}),Ii=qn(["body","wrapper"],"tbody"),co=qn(["body","row"],"tr"),To=qn(["body","cell"],"td"),ra=qn(["body","cell"],"th"),Mi;en.length?Mi=li.map(function(ro,ea){var Ia=ro.record,Vo=ro.indent,ss=ro.index,Ma=Kr(Ia,ea);return Me.createElement(Ta,{key:Ma,rowKey:Ma,record:Ia,index:ea,renderIndex:ss,rowComponent:co,cellComponent:To,scopeCellComponent:ra,indent:Vo})}):Mi=Me.createElement(vo,{expanded:!0,className:"".concat(Dn,"-placeholder"),prefixCls:Dn,component:co,cellComponent:To,colSpan:Pr.length,isEmpty:!0},Gr);var bo=on(Pr);return Me.createElement(wt.Provider,{value:$r.current},Me.createElement(Ii,{className:"".concat(Dn,"-tbody")},cn&&Me.createElement(oa,{prefixCls:Dn,columnsKey:bo,onColumnResize:lr}),Mi))}var Ka=pe(fa),qo=ae(62978),aa=["columnType"];function za(kt){for(var en=kt.colWidths,cn=kt.columns,hn=kt.columCount,Dn=et(be,["tableLayout"]),qn=Dn.tableLayout,lr=[],Pr=hn||cn.length,Kr=!1,Br=Pr-1;Br>=0;Br-=1){var Si=en[Br],Gr=cn&&cn[Br],li=void 0,$r=void 0;if(Gr&&(li=Gr[qo.v],qn==="auto"&&($r=Gr.minWidth)),Si||$r||li||Kr){var Ii=li||{},co=Ii.columnType,To=(0,Ir.Z)(Ii,aa);lr.unshift(Me.createElement("col",(0,lt.Z)({key:Br,style:{width:Si,minWidth:$r}},To))),Kr=!0}}return Me.createElement("colgroup",null,lr)}var Ar=za,us=ae(74902),qt=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function At(kt,en){return(0,Me.useMemo)(function(){for(var cn=[],hn=0;hn<en;hn+=1){var Dn=kt[hn];if(Dn!==void 0)cn[hn]=Dn;else return null}return cn},[kt.join("_"),en])}var Nr=Me.forwardRef(function(kt,en){var cn=kt.className,hn=kt.noData,Dn=kt.columns,qn=kt.flattenColumns,lr=kt.colWidths,Pr=kt.columCount,Kr=kt.stickyOffsets,Br=kt.direction,Si=kt.fixHeader,Gr=kt.stickyTopOffset,li=kt.stickyBottomOffset,$r=kt.stickyClassName,Ii=kt.onScroll,co=kt.maxContentScroll,To=kt.children,ra=(0,Ir.Z)(kt,qt),Mi=et(be,["prefixCls","scrollbarSize","isSticky","getComponent"]),bo=Mi.prefixCls,ro=Mi.scrollbarSize,ea=Mi.isSticky,Ia=Mi.getComponent,Vo=Ia(["header","table"],"table"),ss=ea&&!Si?0:ro,Ma=Me.useRef(null),qa=Me.useCallback(function(Ae){Kn(en,Ae),Kn(Ma,Ae)},[]);Me.useEffect(function(){var Ae;function De(qe){var ot=qe,Lt=ot.currentTarget,Ut=ot.deltaX;Ut&&(Ii({currentTarget:Lt,scrollLeft:Lt.scrollLeft+Ut}),qe.preventDefault())}return(Ae=Ma.current)===null||Ae===void 0||Ae.addEventListener("wheel",De,{passive:!1}),function(){var qe;(qe=Ma.current)===null||qe===void 0||qe.removeEventListener("wheel",De)}},[]);var Le=Me.useMemo(function(){return qn.every(function(Ae){return Ae.width})},[qn]),nt=qn[qn.length-1],Se={fixed:nt?nt.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(bo,"-cell-scrollbar")}}},Te=(0,Me.useMemo)(function(){return ss?[].concat((0,us.Z)(Dn),[Se]):Dn},[ss,Dn]),ze=(0,Me.useMemo)(function(){return ss?[].concat((0,us.Z)(qn),[Se]):qn},[ss,qn]),Qe=(0,Me.useMemo)(function(){var Ae=Kr.right,De=Kr.left;return(0,ft.Z)((0,ft.Z)({},Kr),{},{left:Br==="rtl"?[].concat((0,us.Z)(De.map(function(qe){return qe+ss})),[0]):De,right:Br==="rtl"?Ae:[].concat((0,us.Z)(Ae.map(function(qe){return qe+ss})),[0]),isSticky:ea})},[ss,Kr,ea]),mt=At(lr,Pr);return Me.createElement("div",{style:(0,ft.Z)({overflow:"hidden"},ea?{top:Gr,bottom:li}:{}),ref:qa,className:Ct()(cn,(0,Nt.Z)({},$r,!!$r))},Me.createElement(Vo,{style:{tableLayout:"fixed",visibility:hn||mt?null:"hidden"}},(!hn||!co||Le)&&Me.createElement(Ar,{colWidths:mt?[].concat((0,us.Z)(mt),[ss]):[],columCount:Pr+1,columns:ze}),To((0,ft.Z)((0,ft.Z)({},ra),{},{stickyOffsets:Qe,columns:Te,flattenColumns:ze}))))}),Qt=Me.memo(Nr),ln=function(en){var cn=en.cells,hn=en.stickyOffsets,Dn=en.flattenColumns,qn=en.rowComponent,lr=en.cellComponent,Pr=en.onHeaderRow,Kr=en.index,Br=et(be,["prefixCls","direction"]),Si=Br.prefixCls,Gr=Br.direction,li;Pr&&(li=Pr(cn.map(function(Ii){return Ii.column}),Kr));var $r=on(cn.map(function(Ii){return Ii.column}));return Me.createElement(qn,li,cn.map(function(Ii,co){var To=Ii.column,ra=to(Ii.colStart,Ii.colEnd,Dn,hn,Gr),Mi;return To&&To.onHeaderCell&&(Mi=Ii.column.onHeaderCell(To)),Me.createElement(Sn,(0,lt.Z)({},Ii,{scope:To.title?Ii.colSpan>1?"colgroup":"col":null,ellipsis:To.ellipsis,align:To.align,component:lr,prefixCls:Si,key:$r[co]},ra,{additionalProps:Mi,rowType:"header"}))}))},En=ln;function Xn(kt){var en=[];function cn(lr,Pr){var Kr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;en[Kr]=en[Kr]||[];var Br=Pr,Si=lr.filter(Boolean).map(function(Gr){var li={key:Gr.key,className:Gr.className||"",children:Gr.title,column:Gr,colStart:Br},$r=1,Ii=Gr.children;return Ii&&Ii.length>0&&($r=cn(Ii,Br,Kr+1).reduce(function(co,To){return co+To},0),li.hasSubColumns=!0),"colSpan"in Gr&&($r=Gr.colSpan),"rowSpan"in Gr&&(li.rowSpan=Gr.rowSpan),li.colSpan=$r,li.colEnd=li.colStart+$r-1,en[Kr].push(li),Br+=$r,$r});return Si}cn(kt,0);for(var hn=en.length,Dn=function(Pr){en[Pr].forEach(function(Kr){!("rowSpan"in Kr)&&!Kr.hasSubColumns&&(Kr.rowSpan=hn-Pr)})},qn=0;qn<hn;qn+=1)Dn(qn);return en}var Rr=function(en){var cn=en.stickyOffsets,hn=en.columns,Dn=en.flattenColumns,qn=en.onHeaderRow,lr=et(be,["prefixCls","getComponent"]),Pr=lr.prefixCls,Kr=lr.getComponent,Br=Me.useMemo(function(){return Xn(hn)},[hn]),Si=Kr(["header","wrapper"],"thead"),Gr=Kr(["header","row"],"tr"),li=Kr(["header","cell"],"th");return Me.createElement(Si,{className:"".concat(Pr,"-thead")},Br.map(function($r,Ii){var co=Me.createElement(En,{key:Ii,flattenColumns:Dn,cells:$r,stickyOffsets:cn,rowComponent:Gr,cellComponent:li,onHeaderRow:qn,index:Ii});return co}))},vi=pe(Rr),ni=ae(54768);function xr(kt,en,cn){var hn=(0,qo.g)(kt),Dn=hn.expandIcon,qn=hn.expandedRowKeys,lr=hn.defaultExpandedRowKeys,Pr=hn.defaultExpandAllRows,Kr=hn.expandedRowRender,Br=hn.onExpand,Si=hn.onExpandedRowsChange,Gr=hn.childrenColumnName,li=Dn||sl,$r=Gr||"children",Ii=Me.useMemo(function(){return Kr?"row":kt.expandable&&kt.internalHooks===ie.R&&kt.expandable.__PARENT_RENDER_ICON__||en.some(function(ea){return ea&&(0,gt.Z)(ea)==="object"&&ea[$r]})?"nest":!1},[!!Kr,en]),co=Me.useState(function(){return lr||(Pr?gs(en,cn,$r):[])}),To=(0,Pe.Z)(co,2),ra=To[0],Mi=To[1],bo=Me.useMemo(function(){return new Set(qn||ra||[])},[qn,ra]),ro=Me.useCallback(function(ea){var Ia=cn(ea,en.indexOf(ea)),Vo,ss=bo.has(Ia);ss?(bo.delete(Ia),Vo=(0,us.Z)(bo)):Vo=[].concat((0,us.Z)(bo),[Ia]),Mi(Vo),Br&&Br(!ss,ea),Si&&Si(Vo)},[cn,bo,en,Br,Si]);return[hn,Ii,bo,li,$r,ro]}function xt(kt,en,cn){var hn=kt.map(function(Dn,qn){return to(qn,qn,kt,en,cn)});return Vt(function(){return hn},[hn],function(Dn,qn){return!Cn(Dn,qn)})}function Po(kt){var en=(0,Me.useRef)(kt),cn=(0,Me.useState)({}),hn=(0,Pe.Z)(cn,2),Dn=hn[1],qn=(0,Me.useRef)(null),lr=(0,Me.useRef)([]);function Pr(Kr){lr.current.push(Kr);var Br=Promise.resolve();qn.current=Br,Br.then(function(){if(qn.current===Br){var Si=lr.current,Gr=en.current;lr.current=[],Si.forEach(function(li){en.current=li(en.current)}),qn.current=null,Gr!==en.current&&Dn({})}})}return(0,Me.useEffect)(function(){return function(){qn.current=null}},[]),[en.current,Pr]}function zo(kt){var en=(0,Me.useRef)(kt||null),cn=(0,Me.useRef)();function hn(){window.clearTimeout(cn.current)}function Dn(lr){en.current=lr,hn(),cn.current=window.setTimeout(function(){en.current=null,cn.current=void 0},100)}function qn(){return en.current}return(0,Me.useEffect)(function(){return hn},[]),[Dn,qn]}function ya(){var kt=Me.useState(-1),en=(0,Pe.Z)(kt,2),cn=en[0],hn=en[1],Dn=Me.useState(-1),qn=(0,Pe.Z)(Dn,2),lr=qn[0],Pr=qn[1],Kr=Me.useCallback(function(Br,Si){hn(Br),Pr(Si)},[]);return[cn,lr,Kr]}var xa=ht()?window:null;function Sa(kt,en){var cn=(0,gt.Z)(kt)==="object"?kt:{},hn=cn.offsetHeader,Dn=hn===void 0?0:hn,qn=cn.offsetSummary,lr=qn===void 0?0:qn,Pr=cn.offsetScroll,Kr=Pr===void 0?0:Pr,Br=cn.getContainer,Si=Br===void 0?function(){return xa}:Br,Gr=Si()||xa,li=!!kt;return Me.useMemo(function(){return{isSticky:li,stickyClassName:li?"".concat(en,"-sticky-holder"):"",offsetHeader:Dn,offsetSummary:lr,offsetScroll:Kr,container:Gr}},[li,Kr,Dn,lr,en,Gr])}function ha(kt,en,cn){var hn=(0,Me.useMemo)(function(){var Dn=en.length,qn=function(Br,Si,Gr){for(var li=[],$r=0,Ii=Br;Ii!==Si;Ii+=Gr)li.push($r),en[Ii].fixed&&($r+=kt[Ii]||0);return li},lr=qn(0,Dn,1),Pr=qn(Dn-1,-1,-1).reverse();return cn==="rtl"?{left:Pr,right:lr}:{left:lr,right:Pr}},[kt,en,cn]);return hn}var Gt=ha;function fr(kt){var en=kt.className,cn=kt.children;return Me.createElement("div",{className:en},cn)}var pr=fr;function Tr(kt,en,cn,hn){var Dn=_e.unstable_batchedUpdates?function(lr){_e.unstable_batchedUpdates(cn,lr)}:cn;return kt!=null&&kt.addEventListener&&kt.addEventListener(en,Dn,hn),{remove:function(){kt!=null&&kt.removeEventListener&&kt.removeEventListener(en,Dn,hn)}}}var Ln=function(en){return+setTimeout(en,16)},or=function(en){return clearTimeout(en)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Ln=function(en){return window.requestAnimationFrame(en)},or=function(en){return window.cancelAnimationFrame(en)});var vr=0,sn=new Map;function mr(kt){sn.delete(kt)}var Vr=function(en){var cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;vr+=1;var hn=vr;function Dn(qn){if(qn===0)mr(hn),en();else{var lr=Ln(function(){Dn(qn-1)});sn.set(hn,lr)}}return Dn(cn),hn};Vr.cancel=function(kt){var en=sn.get(kt);return mr(kt),or(en)};var no=Vr;function Xi(kt){return kt instanceof HTMLElement||kt instanceof SVGElement}function zi(kt){return kt&&(0,gt.Z)(kt)==="object"&&Xi(kt.nativeElement)?kt.nativeElement:Xi(kt)?kt:null}function _o(kt){var en=zi(kt);if(en)return en;if(kt instanceof React.Component){var cn;return(cn=ReactDOM.findDOMNode)===null||cn===void 0?void 0:cn.call(ReactDOM,kt)}return null}function sa(kt){var en=zi(kt),cn=en.getBoundingClientRect(),hn=document.documentElement;return{left:cn.left+(window.pageXOffset||hn.scrollLeft)-(hn.clientLeft||document.body.clientLeft||0),top:cn.top+(window.pageYOffset||hn.scrollTop)-(hn.clientTop||document.body.clientTop||0)}}var Va=function(en,cn){var hn,Dn,qn=en.scrollBodyRef,lr=en.onScroll,Pr=en.offsetScroll,Kr=en.container,Br=en.direction,Si=et(be,"prefixCls"),Gr=((hn=qn.current)===null||hn===void 0?void 0:hn.scrollWidth)||0,li=((Dn=qn.current)===null||Dn===void 0?void 0:Dn.clientWidth)||0,$r=Gr&&li*(li/Gr),Ii=Me.useRef(),co=Po({scrollLeft:0,isHiddenScrollBar:!0}),To=(0,Pe.Z)(co,2),ra=To[0],Mi=To[1],bo=Me.useRef({delta:0,x:0}),ro=Me.useState(!1),ea=(0,Pe.Z)(ro,2),Ia=ea[0],Vo=ea[1],ss=Me.useRef(null);Me.useEffect(function(){return function(){no.cancel(ss.current)}},[]);var Ma=function(){Vo(!1)},qa=function(ze){ze.persist(),bo.current.delta=ze.pageX-ra.scrollLeft,bo.current.x=0,Vo(!0),ze.preventDefault()},Le=function(ze){var Qe,mt=ze||((Qe=window)===null||Qe===void 0?void 0:Qe.event),Ae=mt.buttons;if(!Ia||Ae===0){Ia&&Vo(!1);return}var De=bo.current.x+ze.pageX-bo.current.x-bo.current.delta,qe=Br==="rtl";De=Math.max(qe?$r-li:0,Math.min(qe?0:li-$r,De));var ot=!qe||Math.abs(De)+Math.abs($r)<li;ot&&(lr({scrollLeft:De/li*(Gr+2)}),bo.current.x=ze.pageX)},nt=function(){no.cancel(ss.current),ss.current=no(function(){if(qn.current){var ze=sa(qn.current).top,Qe=ze+qn.current.offsetHeight,mt=Kr===window?document.documentElement.scrollTop+window.innerHeight:sa(Kr).top+Kr.clientHeight;Qe-ji()<=mt||ze>=mt-Pr?Mi(function(Ae){return(0,ft.Z)((0,ft.Z)({},Ae),{},{isHiddenScrollBar:!0})}):Mi(function(Ae){return(0,ft.Z)((0,ft.Z)({},Ae),{},{isHiddenScrollBar:!1})})}})},Se=function(ze){Mi(function(Qe){return(0,ft.Z)((0,ft.Z)({},Qe),{},{scrollLeft:ze/Gr*li||0})})};return Me.useImperativeHandle(cn,function(){return{setScrollLeft:Se,checkScrollBarVisible:nt}}),Me.useEffect(function(){var Te=Tr(document.body,"mouseup",Ma,!1),ze=Tr(document.body,"mousemove",Le,!1);return nt(),function(){Te.remove(),ze.remove()}},[$r,Ia]),Me.useEffect(function(){if(qn.current){for(var Te=[],ze=zi(qn.current);ze;)Te.push(ze),ze=ze.parentElement;return Te.forEach(function(Qe){return Qe.addEventListener("scroll",nt,!1)}),window.addEventListener("resize",nt,!1),window.addEventListener("scroll",nt,!1),Kr.addEventListener("scroll",nt,!1),function(){Te.forEach(function(Qe){return Qe.removeEventListener("scroll",nt)}),window.removeEventListener("resize",nt),window.removeEventListener("scroll",nt),Kr.removeEventListener("scroll",nt)}}},[Kr]),Me.useEffect(function(){ra.isHiddenScrollBar||Mi(function(Te){var ze=qn.current;return ze?(0,ft.Z)((0,ft.Z)({},Te),{},{scrollLeft:ze.scrollLeft/ze.scrollWidth*ze.clientWidth}):Te})},[ra.isHiddenScrollBar]),Gr<=li||!$r||ra.isHiddenScrollBar?null:Me.createElement("div",{style:{height:ji(),width:li,bottom:Pr},className:"".concat(Si,"-sticky-scroll")},Me.createElement("div",{onMouseDown:qa,ref:Ii,className:Ct()("".concat(Si,"-sticky-scroll-bar"),(0,Nt.Z)({},"".concat(Si,"-sticky-scroll-bar-active"),Ia)),style:{width:"".concat($r,"px"),transform:"translate3d(".concat(ra.scrollLeft,"px, 0, 0)")}}))},os=Me.forwardRef(Va);function Zs(kt){return null}var Un=Zs;function ws(kt){return null}var Ds=ws,dl="rc-table",_a=[],js={};function ol(){return"No Data"}function Tl(kt,en){var cn=(0,ft.Z)({rowKey:"key",prefixCls:dl,emptyText:ol},kt),hn=cn.prefixCls,Dn=cn.className,qn=cn.rowClassName,lr=cn.style,Pr=cn.data,Kr=cn.rowKey,Br=cn.scroll,Si=cn.tableLayout,Gr=cn.direction,li=cn.title,$r=cn.footer,Ii=cn.summary,co=cn.caption,To=cn.id,ra=cn.showHeader,Mi=cn.components,bo=cn.emptyText,ro=cn.onRow,ea=cn.onHeaderRow,Ia=cn.onScroll,Vo=cn.internalHooks,ss=cn.transformColumns,Ma=cn.internalRefs,qa=cn.tailor,Le=cn.getContainerWidth,nt=cn.sticky,Se=cn.rowHoverable,Te=Se===void 0?!0:Se,ze=Pr||_a,Qe=!!ze.length,mt=Vo===ie.R,Ae=Me.useCallback(function(Aa,ia){return un(Mi,Aa)||ia},[Mi]),De=Me.useMemo(function(){return typeof Kr=="function"?Kr:function(Aa){var ia=Aa&&Aa[Kr];return ia}},[Kr]),qe=Ae(["body"]),ot=ya(),Lt=(0,Pe.Z)(ot,3),Ut=Lt[0],jt=Lt[1],se=Lt[2],fe=xr(cn,ze,De),je=(0,Pe.Z)(fe,6),St=je[0],Yt=je[1],mn=je[2],wn=je[3],On=je[4],Tn=je[5],br=Br==null?void 0:Br.x,Wr=Me.useState(0),di=(0,Pe.Z)(Wr,2),ii=di[0],oi=di[1],Di=(0,ni.Z)((0,ft.Z)((0,ft.Z)((0,ft.Z)({},cn),St),{},{expandable:!!St.expandedRowRender,columnTitle:St.columnTitle,expandedKeys:mn,getRowKey:De,onTriggerExpand:Tn,expandIcon:wn,expandIconColumnIndex:St.expandIconColumnIndex,direction:Gr,scrollWidth:mt&&qa&&typeof br=="number"?br:null,clientWidth:ii}),mt?ss:null),cr=(0,Pe.Z)(Di,4),pi=cr[0],Yr=cr[1],Li=cr[2],Vi=cr[3],bi=Li!=null?Li:br,xo=Me.useMemo(function(){return{columns:pi,flattenColumns:Yr}},[pi,Yr]),Fn=Me.useRef(),mo=Me.useRef(),Ci=Me.useRef(),jn=Me.useRef();Me.useImperativeHandle(en,function(){return{nativeElement:Fn.current,scrollTo:function(ia){var rl;if(Ci.current instanceof HTMLElement){var nu=ia.index,ql=ia.top,du=ia.key;if(Zt(ql)){var Rl;(Rl=Ci.current)===null||Rl===void 0||Rl.scrollTo({top:ql})}else{var Vu,El=du!=null?du:De(ze[nu]);(Vu=Ci.current.querySelector('[data-row-key="'.concat(El,'"]')))===null||Vu===void 0||Vu.scrollIntoView()}}else(rl=Ci.current)!==null&&rl!==void 0&&rl.scrollTo&&Ci.current.scrollTo(ia)}}});var Uo=Me.useRef(),ga=Me.useState(!1),ca=(0,Pe.Z)(ga,2),$i=ca[0],yo=ca[1],ta=Me.useState(!1),na=(0,Pe.Z)(ta,2),Ha=na[0],wa=na[1],ko=Po(new Map),fo=(0,Pe.Z)(ko,2),Qo=fo[0],ja=fo[1],Lo=on(Yr),Ui=Lo.map(function(Aa){return Qo.get(Aa)}),so=Me.useMemo(function(){return Ui},[Ui.join("_")]),ho=Gt(so,Yr,Gr),Pi=Br&&Bn(Br.y),Zi=Br&&Bn(bi)||!!St.fixed,wo=Zi&&Yr.some(function(Aa){var ia=Aa.fixed;return ia}),Ea=Me.useRef(),_r=Sa(nt,hn),Qr=_r.isSticky,Ro=_r.offsetHeader,Bo=_r.offsetSummary,Wo=_r.offsetScroll,Za=_r.stickyClassName,Ko=_r.container,Oa=Me.useMemo(function(){return Ii==null?void 0:Ii(ze)},[Ii,ze]),cs=(Pi||Qr)&&Me.isValidElement(Oa)&&Oa.type===ui&&Oa.props.fixed,Ws,Qa,ds;Pi&&(Qa={overflowY:Qe?"scroll":"auto",maxHeight:Br.y}),Zi&&(Ws={overflowX:"auto"},Pi||(Qa={overflowY:"hidden"}),ds={width:bi===!0?"auto":bi,minWidth:"100%"});var ma=Me.useCallback(function(Aa,ia){rr(Fn.current)&&ja(function(rl){if(rl.get(Aa)!==ia){var nu=new Map(rl);return nu.set(Aa,ia),nu}return rl})},[]),Ks=zo(null),Rs=(0,Pe.Z)(Ks,2),tl=Rs[0],qi=Rs[1];function eo(Aa,ia){ia&&(typeof ia=="function"?ia(Aa):ia.scrollLeft!==Aa&&(ia.scrollLeft=Aa,ia.scrollLeft!==Aa&&setTimeout(function(){ia.scrollLeft=Aa},0)))}var po=Wt(function(Aa){var ia=Aa.currentTarget,rl=Aa.scrollLeft,nu=Gr==="rtl",ql=typeof rl=="number"?rl:ia.scrollLeft,du=ia||js;if(!qi()||qi()===du){var Rl;tl(du),eo(ql,mo.current),eo(ql,Ci.current),eo(ql,Uo.current),eo(ql,(Rl=Ea.current)===null||Rl===void 0?void 0:Rl.setScrollLeft)}var Vu=ia||mo.current;if(Vu){var El=mt&&qa&&typeof bi=="number"?bi:Vu.scrollWidth,ru=Vu.clientWidth;if(El===ru){yo(!1),wa(!1);return}nu?(yo(-ql<El-ru),wa(-ql>0)):(yo(ql>0),wa(ql<El-ru))}}),da=Wt(function(Aa){po(Aa),Ia==null||Ia(Aa)}),hs=function(){if(Zi&&Ci.current){var ia;po({currentTarget:zi(Ci.current),scrollLeft:(ia=Ci.current)===null||ia===void 0?void 0:ia.scrollLeft})}else yo(!1),wa(!1)},Bs=function(ia){var rl,nu=ia.width;(rl=Ea.current)===null||rl===void 0||rl.checkScrollBarVisible();var ql=Fn.current?Fn.current.offsetWidth:nu;mt&&Le&&Fn.current&&(ql=Le(Fn.current,ql)||ql),ql!==ii&&(hs(),oi(ql))},$s=Me.useRef(!1);Me.useEffect(function(){$s.current&&hs()},[Zi,Pr,pi.length]),Me.useEffect(function(){$s.current=!0},[]);var xn=Me.useState(0),Da=(0,Pe.Z)(xn,2),Ja=Da[0],fs=Da[1],jl=Me.useState(!0),fl=(0,Pe.Z)(jl,2),Qi=fl[0],jo=fl[1];Me.useEffect(function(){(!qa||!mt)&&(Ci.current instanceof Element?fs(Xo(Ci.current).width):fs(Xo(jn.current).width)),jo(Or("position","sticky"))},[]),Me.useEffect(function(){mt&&Ma&&(Ma.body.current=Ci.current)});var io=Me.useCallback(function(Aa){return Me.createElement(Me.Fragment,null,Me.createElement(vi,Aa),cs==="top"&&Me.createElement(Ni,Aa,Oa))},[cs,Oa]),La=Me.useCallback(function(Aa){return Me.createElement(Ni,Aa,Oa)},[Oa]),Cs=Ae(["table"],"table"),Yo=Me.useMemo(function(){return Si||(wo?bi==="max-content"?"auto":"fixed":Pi||Qr||Yr.some(function(Aa){var ia=Aa.ellipsis;return ia})?"fixed":"auto")},[Pi,wo,Yr,Si,Qr]),is,Ga={colWidths:so,columCount:Yr.length,stickyOffsets:ho,onHeaderRow:ea,fixHeader:Pi,scroll:Br},$a=Me.useMemo(function(){return Qe?null:typeof bo=="function"?bo():bo},[Qe,bo]),Ss=Me.createElement(Ka,{data:ze,measureColumnWidth:Pi||Zi||Qr}),Ms=Me.createElement(Ar,{colWidths:Yr.map(function(Aa){var ia=Aa.width;return ia}),columns:Yr}),cu=co!=null?Me.createElement("caption",{className:"".concat(hn,"-caption")},co):void 0,zu=Yi(cn,{data:!0}),Ts=Yi(cn,{aria:!0});if(Pi||Qr){var rs;typeof qe=="function"?(rs=qe(ze,{scrollbarSize:Ja,ref:Ci,onScroll:po}),Ga.colWidths=Yr.map(function(Aa,ia){var rl=Aa.width,nu=ia===Yr.length-1?rl-Ja:rl;return typeof nu=="number"&&!Number.isNaN(nu)?nu:0})):rs=Me.createElement("div",{style:(0,ft.Z)((0,ft.Z)({},Ws),Qa),onScroll:da,ref:Ci,className:Ct()("".concat(hn,"-body"))},Me.createElement(Cs,(0,lt.Z)({style:(0,ft.Z)((0,ft.Z)({},ds),{},{tableLayout:Yo})},Ts),cu,Ms,Ss,!cs&&Oa&&Me.createElement(Ni,{stickyOffsets:ho,flattenColumns:Yr},Oa)));var As=(0,ft.Z)((0,ft.Z)((0,ft.Z)({noData:!ze.length,maxContentScroll:Zi&&bi==="max-content"},Ga),xo),{},{direction:Gr,stickyClassName:Za,onScroll:po});is=Me.createElement(Me.Fragment,null,ra!==!1&&Me.createElement(Qt,(0,lt.Z)({},As,{stickyTopOffset:Ro,className:"".concat(hn,"-header"),ref:mo}),io),rs,cs&&cs!=="top"&&Me.createElement(Qt,(0,lt.Z)({},As,{stickyBottomOffset:Bo,className:"".concat(hn,"-summary"),ref:Uo}),La),Qr&&Ci.current&&Ci.current instanceof Element&&Me.createElement(os,{ref:Ea,offsetScroll:Wo,scrollBodyRef:Ci,onScroll:po,container:Ko,direction:Gr}))}else is=Me.createElement("div",{style:(0,ft.Z)((0,ft.Z)({},Ws),Qa),className:Ct()("".concat(hn,"-content")),onScroll:po,ref:Ci},Me.createElement(Cs,(0,lt.Z)({style:(0,ft.Z)((0,ft.Z)({},ds),{},{tableLayout:Yo})},Ts),cu,Ms,ra!==!1&&Me.createElement(vi,(0,lt.Z)({},Ga,xo)),Ss,Oa&&Me.createElement(Ni,{stickyOffsets:ho,flattenColumns:Yr},Oa)));var nl=Me.createElement("div",(0,lt.Z)({className:Ct()(hn,Dn,(0,Nt.Z)((0,Nt.Z)((0,Nt.Z)((0,Nt.Z)((0,Nt.Z)((0,Nt.Z)((0,Nt.Z)((0,Nt.Z)((0,Nt.Z)((0,Nt.Z)({},"".concat(hn,"-rtl"),Gr==="rtl"),"".concat(hn,"-ping-left"),$i),"".concat(hn,"-ping-right"),Ha),"".concat(hn,"-layout-fixed"),Si==="fixed"),"".concat(hn,"-fixed-header"),Pi),"".concat(hn,"-fixed-column"),wo),"".concat(hn,"-fixed-column-gapped"),wo&&Vi),"".concat(hn,"-scroll-horizontal"),Zi),"".concat(hn,"-has-fix-left"),Yr[0]&&Yr[0].fixed),"".concat(hn,"-has-fix-right"),Yr[Yr.length-1]&&Yr[Yr.length-1].fixed==="right")),style:lr,id:To,ref:Fn},zu),li&&Me.createElement(pr,{className:"".concat(hn,"-title")},li(ze)),Me.createElement("div",{ref:jn,className:"".concat(hn,"-container")},is),$r&&Me.createElement(pr,{className:"".concat(hn,"-footer")},$r(ze)));Zi&&(nl=Me.createElement(We.Z,{onResize:Bs},nl));var Ol=xt(Yr,ho,Gr),zl=Me.useMemo(function(){return{scrollX:bi,prefixCls:hn,getComponent:Ae,scrollbarSize:Ja,direction:Gr,fixedInfoList:Ol,isSticky:Qr,supportSticky:Qi,componentWidth:ii,fixHeader:Pi,fixColumn:wo,horizonScroll:Zi,tableLayout:Yo,rowClassName:qn,expandedRowClassName:St.expandedRowClassName,expandIcon:wn,expandableType:Yt,expandRowByClick:St.expandRowByClick,expandedRowRender:St.expandedRowRender,onTriggerExpand:Tn,expandIconColumnIndex:St.expandIconColumnIndex,indentSize:St.indentSize,allColumnsFixedLeft:Yr.every(function(Aa){return Aa.fixed==="left"}),emptyNode:$a,columns:pi,flattenColumns:Yr,onColumnResize:ma,hoverStartRow:Ut,hoverEndRow:jt,onHover:se,rowExpandable:St.rowExpandable,onRow:ro,getRowKey:De,expandedKeys:mn,childrenColumnName:On,rowHoverable:Te}},[bi,hn,Ae,Ja,Gr,Ol,Qr,Qi,ii,Pi,wo,Zi,Yo,qn,St.expandedRowClassName,wn,Yt,St.expandRowByClick,St.expandedRowRender,Tn,St.expandIconColumnIndex,St.indentSize,$a,pi,Yr,ma,Ut,jt,se,St.rowExpandable,ro,De,mn,On,Te]);return Me.createElement(be.Provider,{value:zl},nl)}var Wa=Me.forwardRef(Tl);function vs(kt){return le(Wa,kt)}var Io=vs();Io.EXPAND_COLUMN=ie.w,Io.INTERNAL_HOOKS=ie.R,Io.Column=Un,Io.ColumnGroup=Ds,Io.Summary=ir;var pa=Io;function Ua(kt){var en=Me.useRef();en.current=kt;var cn=Me.useCallback(function(){for(var hn,Dn=arguments.length,qn=new Array(Dn),lr=0;lr<Dn;lr++)qn[lr]=arguments[lr];return(hn=en.current)===null||hn===void 0?void 0:hn.call.apply(hn,[en].concat(qn))},[]);return cn}function as(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Bi=as()?Me.useLayoutEffect:Me.useEffect,Xs=function(en,cn){var hn=Me.useRef(!0);Bi(function(){return en(hn.current)},cn),Bi(function(){return hn.current=!1,function(){hn.current=!0}},[])},Ls=function(en,cn){Xs(function(hn){if(!hn)return en()},cn)},Gs=Xs;function vl(kt){var en=React.useRef(!1),cn=React.useState(kt),hn=_slicedToArray(cn,2),Dn=hn[0],qn=hn[1];React.useEffect(function(){return en.current=!1,function(){en.current=!0}},[]);function lr(Pr,Kr){Kr&&en.current||qn(Pr)}return[Dn,lr]}function Ml(kt){return kt!==void 0}function ci(kt,en){var cn=en||{},hn=cn.defaultValue,Dn=cn.value,qn=cn.onChange,lr=cn.postState,Pr=useState(function(){return Ml(Dn)?Dn:Ml(hn)?typeof hn=="function"?hn():hn:typeof kt=="function"?kt():kt}),Kr=_slicedToArray(Pr,2),Br=Kr[0],Si=Kr[1],Gr=Dn!==void 0?Dn:Br,li=lr?lr(Gr):Gr,$r=useEvent(qn),Ii=useState([Gr]),co=_slicedToArray(Ii,2),To=co[0],ra=co[1];useLayoutUpdateEffect(function(){var bo=To[0];Br!==bo&&$r(Br,bo)},[To]),useLayoutUpdateEffect(function(){Ml(Dn)||Si(Dn)},[Dn]);var Mi=useEvent(function(bo,ro){Si(bo,ro),ra([Gr],ro)});return[li,Mi]}function zs(kt,en,cn){var hn=React.useRef({});return(!("value"in hn.current)||cn(hn.current.condition,en))&&(hn.current.value=kt(),hn.current.condition=en),hn.current.value}function Vs(kt,en){typeof kt=="function"?kt(en):_typeof(kt)==="object"&&kt&&"current"in kt&&(kt.current=en)}function Ul(){for(var kt=arguments.length,en=new Array(kt),cn=0;cn<kt;cn++)en[cn]=arguments[cn];var hn=en.filter(function(Dn){return Dn});return hn.length<=1?hn[0]:function(Dn){en.forEach(function(qn){Vs(qn,Dn)})}}function Qs(){for(var kt=arguments.length,en=new Array(kt),cn=0;cn<kt;cn++)en[cn]=arguments[cn];return useMemo(function(){return Ul.apply(void 0,en)},en,function(hn,Dn){return hn.length!==Dn.length||hn.every(function(qn,lr){return qn!==Dn[lr]})})}function Dl(kt){var en,cn,hn=isMemo(kt)?kt.type.type:kt.type;return!(typeof hn=="function"&&!((en=hn.prototype)!==null&&en!==void 0&&en.render)||typeof kt=="function"&&!((cn=kt.prototype)!==null&&cn!==void 0&&cn.render))}function la(kt){return!isValidElement(kt)||isFragment(kt)?!1:Dl(kt)}function gu(kt,en,cn,hn){if(!en.length)return cn;var Dn=_toArray(en),qn=Dn[0],lr=Dn.slice(1),Pr;return!kt&&typeof qn=="number"?Pr=[]:Array.isArray(kt)?Pr=_toConsumableArray(kt):Pr=_objectSpread({},kt),hn&&cn===void 0&&lr.length===1?delete Pr[qn][lr[0]]:Pr[qn]=gu(Pr[qn],lr,cn,hn),Pr}function Pl(kt,en,cn){var hn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return en.length&&hn&&cn===void 0&&!get(kt,en.slice(0,-1))?kt:gu(kt,en,cn,hn)}function Is(kt){return _typeof(kt)==="object"&&kt!==null&&Object.getPrototypeOf(kt)===Object.prototype}function eu(kt){return Array.isArray(kt)?[]:{}}var Hu=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function cc(){for(var kt=arguments.length,en=new Array(kt),cn=0;cn<kt;cn++)en[cn]=arguments[cn];var hn=eu(en[0]);return en.forEach(function(Dn){function qn(lr,Pr){var Kr=new Set(Pr),Br=get(Dn,lr),Si=Array.isArray(Br);if(Si||Is(Br)){if(!Kr.has(Br)){Kr.add(Br);var Gr=get(hn,lr);Si?hn=Pl(hn,lr,[]):(!Gr||_typeof(Gr)!=="object")&&(hn=Pl(hn,lr,eu(Br))),Hu(Br).forEach(function(li){qn([].concat(_toConsumableArray(lr),[li]),Kr)})}}else hn=Pl(hn,lr,Br)}qn([])}),hn}var Il={},al=[],Dc=function(en){al.push(en)};function Fc(kt,en){if(0)var cn}function rc(kt,en){if(0)var cn}function Bc(){Il={}}function Iu(kt,en,cn){!en&&!Il[cn]&&(kt(!1,cn),Il[cn]=!0)}function Al(kt,en){Iu(Fc,kt,en)}function Fl(kt,en){Iu(rc,kt,en)}Al.preMessage=Dc,Al.resetWarned=Bc,Al.noteOnce=Fl;var Ju=null,_c=Me.forwardRef(function(kt,en){var cn=kt.height,hn=kt.offsetY,Dn=kt.offsetX,qn=kt.children,lr=kt.prefixCls,Pr=kt.onInnerResize,Kr=kt.innerProps,Br=kt.rtl,Si=kt.extra,Gr={},li={display:"flex",flexDirection:"column"};return hn!==void 0&&(Gr={height:cn,position:"relative",overflow:"hidden"},li=(0,ft.Z)((0,ft.Z)({},li),{},(0,Nt.Z)((0,Nt.Z)((0,Nt.Z)((0,Nt.Z)((0,Nt.Z)({transform:"translateY(".concat(hn,"px)")},Br?"marginRight":"marginLeft",-Dn),"position","absolute"),"left",0),"right",0),"top",0))),Me.createElement("div",{style:Gr},Me.createElement(We.Z,{onResize:function(Ii){var co=Ii.offsetHeight;co&&Pr&&Pr()}},Me.createElement("div",(0,lt.Z)({style:li,className:Ct()((0,Nt.Z)({},"".concat(lr,"-holder-inner"),lr)),ref:en},Kr),qn,Si)))});_c.displayName="Filler";var $u=_c;function od(kt){var en=kt.children,cn=kt.setRef,hn=Me.useCallback(function(Dn){cn(Dn)},[]);return Me.cloneElement(en,{ref:hn})}function yl(kt,en,cn,hn,Dn,qn,lr,Pr){var Kr=Pr.getKey;return kt.slice(en,cn+1).map(function(Br,Si){var Gr=en+Si,li=lr(Br,Gr,{style:{width:hn},offsetX:Dn}),$r=Kr(Br);return Me.createElement(od,{key:$r,setRef:function(co){return qn(Br,co)}},li)})}function fd(kt,en,cn,hn){var Dn=cn-kt,qn=en-cn,lr=Math.min(Dn,qn)*2;if(hn<=lr){var Pr=Math.floor(hn/2);return hn%2?cn+Pr+1:cn-Pr}return Dn>qn?cn-(hn-qn):cn+(hn-Dn)}function pd(kt,en,cn){var hn=kt.length,Dn=en.length,qn,lr;if(hn===0&&Dn===0)return null;hn<Dn?(qn=kt,lr=en):(qn=en,lr=kt);var Pr={__EMPTY_ITEM__:!0};function Kr(Ii){return Ii!==void 0?cn(Ii):Pr}for(var Br=null,Si=Math.abs(hn-Dn)!==1,Gr=0;Gr<lr.length;Gr+=1){var li=Kr(qn[Gr]),$r=Kr(lr[Gr]);if(li!==$r){Br=Gr,Si=Si||li!==Kr(lr[Gr+1]);break}}return Br===null?null:{index:Br,multiple:Si}}function Uc(kt,en,cn){var hn=Me.useState(kt),Dn=(0,Pe.Z)(hn,2),qn=Dn[0],lr=Dn[1],Pr=Me.useState(null),Kr=(0,Pe.Z)(Pr,2),Br=Kr[0],Si=Kr[1];return Me.useEffect(function(){var Gr=pd(qn||[],kt||[],en);(Gr==null?void 0:Gr.index)!==void 0&&(cn==null||cn(Gr.index),Si(kt[Gr.index])),lr(kt)},[kt]),[Br]}var ic=function(en){return+setTimeout(en,16)},lu=function(en){return clearTimeout(en)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(ic=function(en){return window.requestAnimationFrame(en)},lu=function(en){return window.cancelAnimationFrame(en)});var mu=0,kl=new Map;function Hl(kt){kl.delete(kt)}var Yc=function(en){var cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;mu+=1;var hn=mu;function Dn(qn){if(qn===0)Hl(hn),en();else{var lr=ic(function(){Dn(qn-1)});kl.set(hn,lr)}}return Dn(cn),hn};Yc.cancel=function(kt){var en=kl.get(kt);return Hl(en),lu(en)};var Wl=Yc,hl=(typeof navigator=="undefined"?"undefined":(0,gt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),ad=hl,oc=function(kt,en,cn,hn){var Dn=(0,Me.useRef)(!1),qn=(0,Me.useRef)(null);function lr(){clearTimeout(qn.current),Dn.current=!0,qn.current=setTimeout(function(){Dn.current=!1},50)}var Pr=(0,Me.useRef)({top:kt,bottom:en,left:cn,right:hn});return Pr.current.top=kt,Pr.current.bottom=en,Pr.current.left=cn,Pr.current.right=hn,function(Kr,Br){var Si=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Gr=Kr?Br<0&&Pr.current.left||Br>0&&Pr.current.right:Br<0&&Pr.current.top||Br>0&&Pr.current.bottom;return Si&&Gr?(clearTimeout(qn.current),Dn.current=!1):(!Gr||Dn.current)&&lr(),!Dn.current&&Gr}};function ju(kt,en,cn,hn,Dn,qn,lr){var Pr=(0,Me.useRef)(0),Kr=(0,Me.useRef)(null),Br=(0,Me.useRef)(null),Si=(0,Me.useRef)(!1),Gr=oc(en,cn,hn,Dn);function li(Mi,bo){if(Wl.cancel(Kr.current),!Gr(!1,bo)){var ro=Mi;if(!ro._virtualHandled)ro._virtualHandled=!0;else return;Pr.current+=bo,Br.current=bo,ad||ro.preventDefault(),Kr.current=Wl(function(){var ea=Si.current?10:1;lr(Pr.current*ea,!1),Pr.current=0})}}function $r(Mi,bo){lr(bo,!0),ad||Mi.preventDefault()}var Ii=(0,Me.useRef)(null),co=(0,Me.useRef)(null);function To(Mi){if(kt){Wl.cancel(co.current),co.current=Wl(function(){Ii.current=null},2);var bo=Mi.deltaX,ro=Mi.deltaY,ea=Mi.shiftKey,Ia=bo,Vo=ro;(Ii.current==="sx"||!Ii.current&&ea&&ro&&!bo)&&(Ia=ro,Vo=0,Ii.current="sx");var ss=Math.abs(Ia),Ma=Math.abs(Vo);Ii.current===null&&(Ii.current=qn&&ss>Ma?"x":"y"),Ii.current==="y"?li(Mi,Vo):$r(Mi,Ia)}}function ra(Mi){kt&&(Si.current=Mi.detail===Br.current)}return[To,ra]}function No(kt,en,cn,hn){var Dn=Me.useMemo(function(){return[new Map,[]]},[kt,cn.id,hn]),qn=(0,Pe.Z)(Dn,2),lr=qn[0],Pr=qn[1],Kr=function(Si){var Gr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Si,li=lr.get(Si),$r=lr.get(Gr);if(li===void 0||$r===void 0)for(var Ii=kt.length,co=Pr.length;co<Ii;co+=1){var To,ra=kt[co],Mi=en(ra);lr.set(Mi,co);var bo=(To=cn.get(Mi))!==null&&To!==void 0?To:hn;if(Pr[co]=(Pr[co-1]||0)+bo,Mi===Si&&(li=co),Mi===Gr&&($r=co),li!==void 0&&$r!==void 0)break}return{top:Pr[li-1]||0,bottom:Pr[$r]}};return Kr}var xc=ae(15671),gn=ae(43144),Mr=function(){function kt(){(0,xc.Z)(this,kt),(0,Nt.Z)(this,"maps",void 0),(0,Nt.Z)(this,"id",0),(0,Nt.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,gn.Z)(kt,[{key:"set",value:function(cn,hn){this.maps[cn]=hn,this.id+=1,this.diffKeys.add(cn)}},{key:"get",value:function(cn){return this.maps[cn]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),kt}(),Cu=Mr;function dc(kt){var en=parseFloat(kt);return isNaN(en)?0:en}function hc(kt,en,cn){var hn=Me.useState(0),Dn=(0,Pe.Z)(hn,2),qn=Dn[0],lr=Dn[1],Pr=(0,Me.useRef)(new Map),Kr=(0,Me.useRef)(new Cu),Br=(0,Me.useRef)(0);function Si(){Br.current+=1}function Gr(){var $r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Si();var Ii=function(){var ra=!1;Pr.current.forEach(function(Mi,bo){if(Mi&&Mi.offsetParent){var ro=Mi.offsetHeight,ea=getComputedStyle(Mi),Ia=ea.marginTop,Vo=ea.marginBottom,ss=dc(Ia),Ma=dc(Vo),qa=ro+ss+Ma;Kr.current.get(bo)!==qa&&(Kr.current.set(bo,qa),ra=!0)}}),ra&&lr(function(Mi){return Mi+1})};if($r)Ii();else{Br.current+=1;var co=Br.current;Promise.resolve().then(function(){co===Br.current&&Ii()})}}function li($r,Ii){var co=kt($r),To=Pr.current.get(co);Ii?(Pr.current.set(co,Ii),Gr()):Pr.current.delete(co),!To!=!Ii&&(Ii?en==null||en($r):cn==null||cn($r))}return(0,Me.useEffect)(function(){return Si},[]),[li,Gr,Kr.current,qn]}var yu=14/15;function Tu(kt,en,cn){var hn=(0,Me.useRef)(!1),Dn=(0,Me.useRef)(0),qn=(0,Me.useRef)(0),lr=(0,Me.useRef)(null),Pr=(0,Me.useRef)(null),Kr,Br=function($r){if(hn.current){var Ii=Math.ceil($r.touches[0].pageX),co=Math.ceil($r.touches[0].pageY),To=Dn.current-Ii,ra=qn.current-co,Mi=Math.abs(To)>Math.abs(ra);Mi?Dn.current=Ii:qn.current=co;var bo=cn(Mi,Mi?To:ra,!1,$r);bo&&$r.preventDefault(),clearInterval(Pr.current),bo&&(Pr.current=setInterval(function(){Mi?To*=yu:ra*=yu;var ro=Math.floor(Mi?To:ra);(!cn(Mi,ro,!0)||Math.abs(ro)<=.1)&&clearInterval(Pr.current)},16))}},Si=function(){hn.current=!1,Kr()},Gr=function($r){Kr(),$r.touches.length===1&&!hn.current&&(hn.current=!0,Dn.current=Math.ceil($r.touches[0].pageX),qn.current=Math.ceil($r.touches[0].pageY),lr.current=$r.target,lr.current.addEventListener("touchmove",Br,{passive:!1}),lr.current.addEventListener("touchend",Si,{passive:!0}))};Kr=function(){lr.current&&(lr.current.removeEventListener("touchmove",Br),lr.current.removeEventListener("touchend",Si))},Gs(function(){return kt&&en.current.addEventListener("touchstart",Gr,{passive:!0}),function(){var li;(li=en.current)===null||li===void 0||li.removeEventListener("touchstart",Gr),Kr(),clearInterval(Pr.current)}},[kt])}function fc(kt){return Math.floor(Math.pow(kt,.5))}function Du(kt,en){var cn="touches"in kt?kt.touches[0]:kt;return cn[en?"pageX":"pageY"]-window[en?"scrollX":"scrollY"]}function ml(kt,en,cn){Me.useEffect(function(){var hn=en.current;if(kt&&hn){var Dn=!1,qn,lr,Pr=function(){Wl.cancel(qn)},Kr=function li(){Pr(),qn=Wl(function(){cn(lr),li()})},Br=function($r){if(!($r.target.draggable||$r.button!==0)){var Ii=$r;Ii._virtualHandled||(Ii._virtualHandled=!0,Dn=!0)}},Si=function(){Dn=!1,Pr()},Gr=function($r){if(Dn){var Ii=Du($r,!1),co=hn.getBoundingClientRect(),To=co.top,ra=co.bottom;if(Ii<=To){var Mi=To-Ii;lr=-fc(Mi),Kr()}else if(Ii>=ra){var bo=Ii-ra;lr=fc(bo),Kr()}else Pr()}};return hn.addEventListener("mousedown",Br),hn.ownerDocument.addEventListener("mouseup",Si),hn.ownerDocument.addEventListener("mousemove",Gr),function(){hn.removeEventListener("mousedown",Br),hn.ownerDocument.removeEventListener("mouseup",Si),hn.ownerDocument.removeEventListener("mousemove",Gr),Pr()}}},[kt])}var ua=10;function Ql(kt,en,cn,hn,Dn,qn,lr,Pr){var Kr=Me.useRef(),Br=Me.useState(null),Si=(0,Pe.Z)(Br,2),Gr=Si[0],li=Si[1];return Gs(function(){if(Gr&&Gr.times<ua){if(!kt.current){li(function(De){return(0,ft.Z)({},De)});return}qn();var $r=Gr.targetAlign,Ii=Gr.originAlign,co=Gr.index,To=Gr.offset,ra=kt.current.clientHeight,Mi=!1,bo=$r,ro=null;if(ra){for(var ea=$r||Ii,Ia=0,Vo=0,ss=0,Ma=Math.min(en.length-1,co),qa=0;qa<=Ma;qa+=1){var Le=Dn(en[qa]);Vo=Ia;var nt=cn.get(Le);ss=Vo+(nt===void 0?hn:nt),Ia=ss}for(var Se=ea==="top"?To:ra-To,Te=Ma;Te>=0;Te-=1){var ze=Dn(en[Te]),Qe=cn.get(ze);if(Qe===void 0){Mi=!0;break}if(Se-=Qe,Se<=0)break}switch(ea){case"top":ro=Vo-To;break;case"bottom":ro=ss-ra+To;break;default:{var mt=kt.current.scrollTop,Ae=mt+ra;Vo<mt?bo="top":ss>Ae&&(bo="bottom")}}ro!==null&&lr(ro),ro!==Gr.lastTop&&(Mi=!0)}Mi&&li((0,ft.Z)((0,ft.Z)({},Gr),{},{times:Gr.times+1,targetAlign:bo,lastTop:ro}))}},[Gr,kt.current]),function($r){if($r==null){Pr();return}if(Wl.cancel(Kr.current),typeof $r=="number")lr($r);else if($r&&(0,gt.Z)($r)==="object"){var Ii,co=$r.align;"index"in $r?Ii=$r.index:Ii=en.findIndex(function(Mi){return Dn(Mi)===$r.key});var To=$r.offset,ra=To===void 0?0:To;li({times:0,index:Ii,offset:ra,originAlign:co})}}}var Jl=Me.forwardRef(function(kt,en){var cn=kt.prefixCls,hn=kt.rtl,Dn=kt.scrollOffset,qn=kt.scrollRange,lr=kt.onStartMove,Pr=kt.onStopMove,Kr=kt.onScroll,Br=kt.horizontal,Si=kt.spinSize,Gr=kt.containerSize,li=kt.style,$r=kt.thumbStyle,Ii=kt.showScrollBar,co=Me.useState(!1),To=(0,Pe.Z)(co,2),ra=To[0],Mi=To[1],bo=Me.useState(null),ro=(0,Pe.Z)(bo,2),ea=ro[0],Ia=ro[1],Vo=Me.useState(null),ss=(0,Pe.Z)(Vo,2),Ma=ss[0],qa=ss[1],Le=!hn,nt=Me.useRef(),Se=Me.useRef(),Te=Me.useState(Ii),ze=(0,Pe.Z)(Te,2),Qe=ze[0],mt=ze[1],Ae=Me.useRef(),De=function(){Ii===!0||Ii===!1||(clearTimeout(Ae.current),mt(!0),Ae.current=setTimeout(function(){mt(!1)},3e3))},qe=qn-Gr||0,ot=Gr-Si||0,Lt=Me.useMemo(function(){if(Dn===0||qe===0)return 0;var wn=Dn/qe;return wn*ot},[Dn,qe,ot]),Ut=function(On){On.stopPropagation(),On.preventDefault()},jt=Me.useRef({top:Lt,dragging:ra,pageY:ea,startTop:Ma});jt.current={top:Lt,dragging:ra,pageY:ea,startTop:Ma};var se=function(On){Mi(!0),Ia(Du(On,Br)),qa(jt.current.top),lr(),On.stopPropagation(),On.preventDefault()};Me.useEffect(function(){var wn=function(Wr){Wr.preventDefault()},On=nt.current,Tn=Se.current;return On.addEventListener("touchstart",wn,{passive:!1}),Tn.addEventListener("touchstart",se,{passive:!1}),function(){On.removeEventListener("touchstart",wn),Tn.removeEventListener("touchstart",se)}},[]);var fe=Me.useRef();fe.current=qe;var je=Me.useRef();je.current=ot,Me.useEffect(function(){if(ra){var wn,On=function(Wr){var di=jt.current,ii=di.dragging,oi=di.pageY,Di=di.startTop;Wl.cancel(wn);var cr=nt.current.getBoundingClientRect(),pi=Gr/(Br?cr.width:cr.height);if(ii){var Yr=(Du(Wr,Br)-oi)*pi,Li=Di;!Le&&Br?Li-=Yr:Li+=Yr;var Vi=fe.current,bi=je.current,xo=bi?Li/bi:0,Fn=Math.ceil(xo*Vi);Fn=Math.max(Fn,0),Fn=Math.min(Fn,Vi),wn=Wl(function(){Kr(Fn,Br)})}},Tn=function(){Mi(!1),Pr()};return window.addEventListener("mousemove",On,{passive:!0}),window.addEventListener("touchmove",On,{passive:!0}),window.addEventListener("mouseup",Tn,{passive:!0}),window.addEventListener("touchend",Tn,{passive:!0}),function(){window.removeEventListener("mousemove",On),window.removeEventListener("touchmove",On),window.removeEventListener("mouseup",Tn),window.removeEventListener("touchend",Tn),Wl.cancel(wn)}}},[ra]),Me.useEffect(function(){return De(),function(){clearTimeout(Ae.current)}},[Dn]),Me.useImperativeHandle(en,function(){return{delayHidden:De}});var St="".concat(cn,"-scrollbar"),Yt={position:"absolute",visibility:Qe?null:"hidden"},mn={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Br?(Yt.height=8,Yt.left=0,Yt.right=0,Yt.bottom=0,mn.height="100%",mn.width=Si,Le?mn.left=Lt:mn.right=Lt):(Yt.width=8,Yt.top=0,Yt.bottom=0,Le?Yt.right=0:Yt.left=0,mn.width="100%",mn.height=Si,mn.top=Lt),Me.createElement("div",{ref:nt,className:Ct()(St,(0,Nt.Z)((0,Nt.Z)((0,Nt.Z)({},"".concat(St,"-horizontal"),Br),"".concat(St,"-vertical"),!Br),"".concat(St,"-visible"),Qe)),style:(0,ft.Z)((0,ft.Z)({},Yt),li),onMouseDown:Ut,onMouseMove:De},Me.createElement("div",{ref:Se,className:Ct()("".concat(St,"-thumb"),(0,Nt.Z)({},"".concat(St,"-thumb-moving"),ra)),style:(0,ft.Z)((0,ft.Z)({},mn),$r),onMouseDown:se}))}),el=Jl,ns=20;function Nl(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,en=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,cn=kt/en*kt;return isNaN(cn)&&(cn=0),cn=Math.max(cn,ns),Math.floor(cn)}var Au=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],ll=[],uu={overflowY:"auto",overflowAnchor:"none"};function $l(kt,en){var cn=kt.prefixCls,hn=cn===void 0?"rc-virtual-list":cn,Dn=kt.className,qn=kt.height,lr=kt.itemHeight,Pr=kt.fullHeight,Kr=Pr===void 0?!0:Pr,Br=kt.style,Si=kt.data,Gr=kt.children,li=kt.itemKey,$r=kt.virtual,Ii=kt.direction,co=kt.scrollWidth,To=kt.component,ra=To===void 0?"div":To,Mi=kt.onScroll,bo=kt.onVirtualScroll,ro=kt.onVisibleChange,ea=kt.innerProps,Ia=kt.extraRender,Vo=kt.styles,ss=kt.showScrollBar,Ma=ss===void 0?"optional":ss,qa=(0,Ir.Z)(kt,Au),Le=Me.useCallback(function(qi){return typeof li=="function"?li(qi):qi==null?void 0:qi[li]},[li]),nt=hc(Le,null,null),Se=(0,Pe.Z)(nt,4),Te=Se[0],ze=Se[1],Qe=Se[2],mt=Se[3],Ae=!!($r!==!1&&qn&&lr),De=Me.useMemo(function(){return Object.values(Qe.maps).reduce(function(qi,eo){return qi+eo},0)},[Qe.id,Qe.maps]),qe=Ae&&Si&&(Math.max(lr*Si.length,De)>qn||!!co),ot=Ii==="rtl",Lt=Ct()(hn,(0,Nt.Z)({},"".concat(hn,"-rtl"),ot),Dn),Ut=Si||ll,jt=(0,Me.useRef)(),se=(0,Me.useRef)(),fe=(0,Me.useRef)(),je=(0,Me.useState)(0),St=(0,Pe.Z)(je,2),Yt=St[0],mn=St[1],wn=(0,Me.useState)(0),On=(0,Pe.Z)(wn,2),Tn=On[0],br=On[1],Wr=(0,Me.useState)(!1),di=(0,Pe.Z)(Wr,2),ii=di[0],oi=di[1],Di=function(){oi(!0)},cr=function(){oi(!1)},pi={getKey:Le};function Yr(qi){mn(function(eo){var po;typeof qi=="function"?po=qi(eo):po=qi;var da=Lo(po);return jt.current.scrollTop=da,da})}var Li=(0,Me.useRef)({start:0,end:Ut.length}),Vi=(0,Me.useRef)(),bi=Uc(Ut,Le),xo=(0,Pe.Z)(bi,1),Fn=xo[0];Vi.current=Fn;var mo=Me.useMemo(function(){if(!Ae)return{scrollHeight:void 0,start:0,end:Ut.length-1,offset:void 0};if(!qe){var qi;return{scrollHeight:((qi=se.current)===null||qi===void 0?void 0:qi.offsetHeight)||0,start:0,end:Ut.length-1,offset:void 0}}for(var eo=0,po,da,hs,Bs=Ut.length,$s=0;$s<Bs;$s+=1){var xn=Ut[$s],Da=Le(xn),Ja=Qe.get(Da),fs=eo+(Ja===void 0?lr:Ja);fs>=Yt&&po===void 0&&(po=$s,da=eo),fs>Yt+qn&&hs===void 0&&(hs=$s),eo=fs}return po===void 0&&(po=0,da=0,hs=Math.ceil(qn/lr)),hs===void 0&&(hs=Ut.length-1),hs=Math.min(hs+1,Ut.length-1),{scrollHeight:eo,start:po,end:hs,offset:da}},[qe,Ae,Yt,Ut,mt,qn]),Ci=mo.scrollHeight,jn=mo.start,Uo=mo.end,ga=mo.offset;Li.current.start=jn,Li.current.end=Uo,Me.useLayoutEffect(function(){var qi=Qe.getRecord();if(qi.size===1){var eo=Array.from(qi)[0],po=Ut[jn];if(po){var da=Le(po);if(da===eo){var hs=Qe.get(eo),Bs=hs-lr;Yr(function($s){return $s+Bs})}}}Qe.resetRecord()},[Ci]);var ca=Me.useState({width:0,height:qn}),$i=(0,Pe.Z)(ca,2),yo=$i[0],ta=$i[1],na=function(eo){ta({width:eo.offsetWidth,height:eo.offsetHeight})},Ha=(0,Me.useRef)(),wa=(0,Me.useRef)(),ko=Me.useMemo(function(){return Nl(yo.width,co)},[yo.width,co]),fo=Me.useMemo(function(){return Nl(yo.height,Ci)},[yo.height,Ci]),Qo=Ci-qn,ja=(0,Me.useRef)(Qo);ja.current=Qo;function Lo(qi){var eo=qi;return Number.isNaN(ja.current)||(eo=Math.min(eo,ja.current)),eo=Math.max(eo,0),eo}var Ui=Yt<=0,so=Yt>=Qo,ho=Tn<=0,Pi=Tn>=co,Zi=oc(Ui,so,ho,Pi),wo=function(){return{x:ot?-Tn:Tn,y:Yt}},Ea=(0,Me.useRef)(wo()),_r=Ua(function(qi){if(bo){var eo=(0,ft.Z)((0,ft.Z)({},wo()),qi);(Ea.current.x!==eo.x||Ea.current.y!==eo.y)&&(bo(eo),Ea.current=eo)}});function Qr(qi,eo){var po=qi;eo?((0,_e.flushSync)(function(){br(po)}),_r()):Yr(po)}function Ro(qi){var eo=qi.currentTarget.scrollTop;eo!==Yt&&Yr(eo),Mi==null||Mi(qi),_r()}var Bo=function(eo){var po=eo,da=co?co-yo.width:0;return po=Math.max(po,0),po=Math.min(po,da),po},Wo=Ua(function(qi,eo){eo?((0,_e.flushSync)(function(){br(function(po){var da=po+(ot?-qi:qi);return Bo(da)})}),_r()):Yr(function(po){var da=po+qi;return da})}),Za=ju(Ae,Ui,so,ho,Pi,!!co,Wo),Ko=(0,Pe.Z)(Za,2),Oa=Ko[0],cs=Ko[1];Tu(Ae,jt,function(qi,eo,po,da){var hs=da;return Zi(qi,eo,po)?!1:!hs||!hs._virtualHandled?(hs&&(hs._virtualHandled=!0),Oa({preventDefault:function(){},deltaX:qi?eo:0,deltaY:qi?0:eo}),!0):!1}),ml(qe,jt,function(qi){Yr(function(eo){return eo+qi})}),Gs(function(){function qi(po){var da=Ui&&po.detail<0,hs=so&&po.detail>0;Ae&&!da&&!hs&&po.preventDefault()}var eo=jt.current;return eo.addEventListener("wheel",Oa,{passive:!1}),eo.addEventListener("DOMMouseScroll",cs,{passive:!0}),eo.addEventListener("MozMousePixelScroll",qi,{passive:!1}),function(){eo.removeEventListener("wheel",Oa),eo.removeEventListener("DOMMouseScroll",cs),eo.removeEventListener("MozMousePixelScroll",qi)}},[Ae,Ui,so]),Gs(function(){if(co){var qi=Bo(Tn);br(qi),_r({x:qi})}},[yo.width,co]);var Ws=function(){var eo,po;(eo=Ha.current)===null||eo===void 0||eo.delayHidden(),(po=wa.current)===null||po===void 0||po.delayHidden()},Qa=Ql(jt,Ut,Qe,lr,Le,function(){return ze(!0)},Yr,Ws);Me.useImperativeHandle(en,function(){return{nativeElement:fe.current,getScrollInfo:wo,scrollTo:function(eo){function po(da){return da&&(0,gt.Z)(da)==="object"&&("left"in da||"top"in da)}po(eo)?(eo.left!==void 0&&br(Bo(eo.left)),Qa(eo.top)):Qa(eo)}}}),Gs(function(){if(ro){var qi=Ut.slice(jn,Uo+1);ro(qi,Ut)}},[jn,Uo,Ut]);var ds=No(Ut,Le,Qe,lr),ma=Ia==null?void 0:Ia({start:jn,end:Uo,virtual:qe,offsetX:Tn,offsetY:ga,rtl:ot,getSize:ds}),Ks=yl(Ut,jn,Uo,co,Tn,Te,Gr,pi),Rs=null;qn&&(Rs=(0,ft.Z)((0,Nt.Z)({},Kr?"height":"maxHeight",qn),uu),Ae&&(Rs.overflowY="hidden",co&&(Rs.overflowX="hidden"),ii&&(Rs.pointerEvents="none")));var tl={};return ot&&(tl.dir="rtl"),Me.createElement("div",(0,lt.Z)({ref:fe,style:(0,ft.Z)((0,ft.Z)({},Br),{},{position:"relative"}),className:Lt},tl,qa),Me.createElement(We.Z,{onResize:na},Me.createElement(ra,{className:"".concat(hn,"-holder"),style:Rs,ref:jt,onScroll:Ro,onMouseEnter:Ws},Me.createElement($u,{prefixCls:hn,height:Ci,offsetX:Tn,offsetY:ga,scrollWidth:co,onInnerResize:ze,ref:se,innerProps:ea,rtl:ot,extra:ma},Ks))),qe&&Ci>qn&&Me.createElement(el,{ref:Ha,prefixCls:hn,scrollOffset:Yt,scrollRange:Ci,rtl:ot,onScroll:Qr,onStartMove:Di,onStopMove:cr,spinSize:fo,containerSize:yo.height,style:Vo==null?void 0:Vo.verticalScrollBar,thumbStyle:Vo==null?void 0:Vo.verticalScrollBarThumb,showScrollBar:Ma}),qe&&co>yo.width&&Me.createElement(el,{ref:wa,prefixCls:hn,scrollOffset:Tn,scrollRange:co,rtl:ot,onScroll:Qr,onStartMove:Di,onStopMove:cr,spinSize:ko,containerSize:yo.width,horizontal:!0,style:Vo==null?void 0:Vo.horizontalScrollBar,thumbStyle:Vo==null?void 0:Vo.horizontalScrollBarThumb,showScrollBar:Ma}))}var ac=Me.forwardRef($l);ac.displayName="List";var ks=ac,tu=ks,ys=ut(null),Js=ut(null);function ul(kt,en,cn){var hn=en||1;return cn[kt+hn]-(cn[kt]||0)}function Sl(kt){var en=kt.rowInfo,cn=kt.column,hn=kt.colIndex,Dn=kt.indent,qn=kt.index,lr=kt.component,Pr=kt.renderIndex,Kr=kt.record,Br=kt.style,Si=kt.className,Gr=kt.inverse,li=kt.getHeight,$r=cn.render,Ii=cn.dataIndex,co=cn.className,To=cn.width,ra=et(Js,["columnsOffset"]),Mi=ra.columnsOffset,bo=Mn(en,cn,hn,Dn,qn),ro=bo.key,ea=bo.fixedInfo,Ia=bo.appendCellNode,Vo=bo.additionalCellProps,ss=Vo.style,Ma=Vo.colSpan,qa=Ma===void 0?1:Ma,Le=Vo.rowSpan,nt=Le===void 0?1:Le,Se=hn-1,Te=ul(Se,qa,Mi),ze=qa>1?To-Te:0,Qe=(0,ft.Z)((0,ft.Z)((0,ft.Z)({},ss),Br),{},{flex:"0 0 ".concat(Te,"px"),width:"".concat(Te,"px"),marginRight:ze,pointerEvents:"auto"}),mt=Me.useMemo(function(){return Gr?nt<=1:qa===0||nt===0||nt>1},[nt,qa,Gr]);mt?Qe.visibility="hidden":Gr&&(Qe.height=li==null?void 0:li(nt));var Ae=mt?function(){return null}:$r,De={};return(nt===0||qa===0)&&(De.rowSpan=1,De.colSpan=1),Me.createElement(Sn,(0,lt.Z)({className:Ct()(co,Si),ellipsis:cn.ellipsis,align:cn.align,scope:cn.rowScope,component:lr,prefixCls:en.prefixCls,key:ro,record:Kr,index:qn,renderIndex:Pr,dataIndex:Ii,render:Ae,shouldCellUpdate:cn.shouldCellUpdate},ea,{appendNode:Ia,additionalProps:(0,ft.Z)((0,ft.Z)({},Vo),{},{style:Qe},De)}))}var Fs=Sl,wc=["data","index","className","rowKey","style","extra","getHeight"],Ti=Me.forwardRef(function(kt,en){var cn=kt.data,hn=kt.index,Dn=kt.className,qn=kt.rowKey,lr=kt.style,Pr=kt.extra,Kr=kt.getHeight,Br=(0,Ir.Z)(kt,wc),Si=cn.record,Gr=cn.indent,li=cn.index,$r=et(be,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Ii=$r.scrollX,co=$r.flattenColumns,To=$r.prefixCls,ra=$r.fixColumn,Mi=$r.componentWidth,bo=et(ys,["getComponent"]),ro=bo.getComponent,ea=Go(Si,qn,hn,Gr),Ia=ro(["body","row"],"div"),Vo=ro(["body","cell"],"div"),ss=ea.rowSupportExpand,Ma=ea.expanded,qa=ea.rowProps,Le=ea.expandedRowRender,nt=ea.expandedRowClassName,Se;if(ss&&Ma){var Te=Le(Si,hn,Gr+1,Ma),ze=es(nt,Si,hn,Gr),Qe={};ra&&(Qe={style:(0,Nt.Z)({},"--virtual-width","".concat(Mi,"px"))});var mt="".concat(To,"-expanded-row-cell");Se=Me.createElement(Ia,{className:Ct()("".concat(To,"-expanded-row"),"".concat(To,"-expanded-row-level-").concat(Gr+1),ze)},Me.createElement(Sn,{component:Vo,prefixCls:To,className:Ct()(mt,(0,Nt.Z)({},"".concat(mt,"-fixed"),ra)),additionalProps:Qe},Te))}var Ae=(0,ft.Z)((0,ft.Z)({},lr),{},{width:Ii});Pr&&(Ae.position="absolute",Ae.pointerEvents="none");var De=Me.createElement(Ia,(0,lt.Z)({},qa,Br,{"data-row-key":qn,ref:ss?null:en,className:Ct()(Dn,"".concat(To,"-row"),qa==null?void 0:qa.className,(0,Nt.Z)({},"".concat(To,"-row-extra"),Pr)),style:(0,ft.Z)((0,ft.Z)({},Ae),qa==null?void 0:qa.style)}),co.map(function(qe,ot){return Me.createElement(Fs,{key:ot,component:Vo,rowInfo:ea,column:qe,colIndex:ot,indent:Gr,index:hn,renderIndex:li,record:Si,inverse:Pr,getHeight:Kr})}));return ss?Me.createElement("div",{ref:en},De,Se):De}),Cc=pe(Ti),ms=Cc,Id=Me.forwardRef(function(kt,en){var cn=kt.data,hn=kt.onScroll,Dn=et(be,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),qn=Dn.flattenColumns,lr=Dn.onColumnResize,Pr=Dn.getRowKey,Kr=Dn.expandedKeys,Br=Dn.prefixCls,Si=Dn.childrenColumnName,Gr=Dn.scrollX,li=Dn.direction,$r=et(ys),Ii=$r.sticky,co=$r.scrollY,To=$r.listItemHeight,ra=$r.getComponent,Mi=$r.onScroll,bo=Me.useRef(),ro=ba(cn,Si,Kr,Pr),ea=Me.useMemo(function(){var Se=0;return qn.map(function(Te){var ze=Te.width,Qe=Te.key;return Se+=ze,[Qe,ze,Se]})},[qn]),Ia=Me.useMemo(function(){return ea.map(function(Se){return Se[2]})},[ea]);Me.useEffect(function(){ea.forEach(function(Se){var Te=(0,Pe.Z)(Se,2),ze=Te[0],Qe=Te[1];lr(ze,Qe)})},[ea]),Me.useImperativeHandle(en,function(){var Se,Te={scrollTo:function(Qe){var mt;(mt=bo.current)===null||mt===void 0||mt.scrollTo(Qe)},nativeElement:(Se=bo.current)===null||Se===void 0?void 0:Se.nativeElement};return Object.defineProperty(Te,"scrollLeft",{get:function(){var Qe;return((Qe=bo.current)===null||Qe===void 0?void 0:Qe.getScrollInfo().x)||0},set:function(Qe){var mt;(mt=bo.current)===null||mt===void 0||mt.scrollTo({left:Qe})}}),Te});var Vo=function(Te,ze){var Qe,mt=(Qe=ro[ze])===null||Qe===void 0?void 0:Qe.record,Ae=Te.onCell;if(Ae){var De,qe=Ae(mt,ze);return(De=qe==null?void 0:qe.rowSpan)!==null&&De!==void 0?De:1}return 1},ss=function(Te){var ze=Te.start,Qe=Te.end,mt=Te.getSize,Ae=Te.offsetY;if(Qe<0)return null;for(var De=qn.filter(function(wn){return Vo(wn,ze)===0}),qe=ze,ot=function(On){if(De=De.filter(function(Tn){return Vo(Tn,On)===0}),!De.length)return qe=On,1},Lt=ze;Lt>=0&&!ot(Lt);Lt-=1);for(var Ut=qn.filter(function(wn){return Vo(wn,Qe)!==1}),jt=Qe,se=function(On){if(Ut=Ut.filter(function(Tn){return Vo(Tn,On)!==1}),!Ut.length)return jt=Math.max(On-1,Qe),1},fe=Qe;fe<ro.length&&!se(fe);fe+=1);for(var je=[],St=function(On){var Tn=ro[On];if(!Tn)return 1;qn.some(function(br){return Vo(br,On)>1})&&je.push(On)},Yt=qe;Yt<=jt;Yt+=1)St(Yt);var mn=je.map(function(wn){var On=ro[wn],Tn=Pr(On.record,wn),br=function(ii){var oi=wn+ii-1,Di=Pr(ro[oi].record,oi),cr=mt(Tn,Di);return cr.bottom-cr.top},Wr=mt(Tn);return Me.createElement(ms,{key:wn,data:On,rowKey:Tn,index:wn,style:{top:-Ae+Wr.top},extra:!0,getHeight:br})});return mn},Ma=Me.useMemo(function(){return{columnsOffset:Ia}},[Ia]),qa="".concat(Br,"-tbody"),Le=ra(["body","wrapper"]),nt={};return Ii&&(nt.position="sticky",nt.bottom=0,(0,gt.Z)(Ii)==="object"&&Ii.offsetScroll&&(nt.bottom=Ii.offsetScroll)),Me.createElement(Js.Provider,{value:Ma},Me.createElement(tu,{fullHeight:!1,ref:bo,prefixCls:"".concat(qa,"-virtual"),styles:{horizontalScrollBar:nt},className:qa,height:co,itemHeight:To||24,data:ro,itemKey:function(Te){return Pr(Te.record)},component:Le,scrollWidth:Gr,direction:li,onVirtualScroll:function(Te){var ze,Qe=Te.x;hn({currentTarget:(ze=bo.current)===null||ze===void 0?void 0:ze.nativeElement,scrollLeft:Qe})},onScroll:Mi,extraRender:ss},function(Se,Te,ze){var Qe=Pr(Se.record,Te);return Me.createElement(ms,{data:Se,rowKey:Qe,index:Te,style:ze.style})}))}),sc=pe(Id),Zc=sc,gd=function(en,cn){var hn=cn.ref,Dn=cn.onScroll;return Me.createElement(Zc,{ref:hn,data:en,onScroll:Dn})};function Gu(kt,en){var cn=kt.data,hn=kt.columns,Dn=kt.scroll,qn=kt.sticky,lr=kt.prefixCls,Pr=lr===void 0?dl:lr,Kr=kt.className,Br=kt.listItemHeight,Si=kt.components,Gr=kt.onScroll,li=Dn||{},$r=li.x,Ii=li.y;typeof $r!="number"&&($r=1),typeof Ii!="number"&&(Ii=500);var co=Wt(function(Mi,bo){return un(Si,Mi)||bo}),To=Wt(Gr),ra=Me.useMemo(function(){return{sticky:qn,scrollY:Ii,listItemHeight:Br,getComponent:co,onScroll:To}},[qn,Ii,Br,co,To]);return Me.createElement(ys.Provider,{value:ra},Me.createElement(pa,(0,lt.Z)({},kt,{className:Ct()(Kr,"".concat(Pr,"-virtual")),scroll:(0,ft.Z)((0,ft.Z)({},Dn),{},{x:$r}),components:(0,ft.Z)((0,ft.Z)({},Si),{},{body:cn!=null&&cn.length?gd:void 0}),columns:hn,internalHooks:ie.R,tailor:!0,ref:en})))}var pc=Me.forwardRef(Gu);function gc(kt){return le(pc,kt)}var Do=gc(),Pu=null},62978:function(Ke,we,ae){"use strict";ae.d(we,{g:function(){return Me},v:function(){return tt}});var ie=ae(1413),Pe=ae(45987),Fe=ae(40830),Oe=["expandable"],tt="RC_TABLE_INTERNAL_COL_DEFINE";function Me(_e){var ut=_e.expandable,et=(0,Pe.Z)(_e,Oe),lt;return"expandable"in _e?lt=(0,ie.Z)((0,ie.Z)({},et),ut):lt=et,lt.showExpandColumn===!1&&(lt.expandIconColumnIndex=-1),lt}},63295:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return tt}});var ie=ae(71002),Pe=Symbol.for("react.element"),Fe=Symbol.for("react.transitional.element"),Oe=Symbol.for("react.fragment");function tt(Me){return Me&&(0,ie.Z)(Me)==="object"&&(Me.$$typeof===Pe||Me.$$typeof===Fe)&&Me.type===Oe}},40830:function(Ke,we,ae){"use strict";var ie={},Pe=[],Fe=function(Et){Pe.push(Et)};function Oe(lt,Et){if(0)var rt}function tt(lt,Et){if(0)var rt}function Me(){ie={}}function _e(lt,Et,rt){!Et&&!ie[rt]&&(lt(!1,rt),ie[rt]=!0)}function ut(lt,Et){_e(Oe,lt,Et)}function et(lt,Et){_e(tt,lt,Et)}ut.preMessage=Fe,ut.resetWarned=Me,ut.noteOnce=et,we.ZP=ut},46762:function(Ke,we){"use strict";var ae;var ie=Symbol.for("react.element"),Pe=Symbol.for("react.portal"),Fe=Symbol.for("react.fragment"),Oe=Symbol.for("react.strict_mode"),tt=Symbol.for("react.profiler"),Me=Symbol.for("react.provider"),_e=Symbol.for("react.context"),ut=Symbol.for("react.server_context"),et=Symbol.for("react.forward_ref"),lt=Symbol.for("react.suspense"),Et=Symbol.for("react.suspense_list"),rt=Symbol.for("react.memo"),_t=Symbol.for("react.lazy"),Ge=Symbol.for("react.offscreen"),te;te=Symbol.for("react.module.reference");function ee(de){if(typeof de=="object"&&de!==null){var le=de.$$typeof;switch(le){case ie:switch(de=de.type,de){case Fe:case tt:case Oe:case lt:case Et:return de;default:switch(de=de&&de.$$typeof,de){case ut:case _e:case et:case _t:case rt:case Me:return de;default:return le}}case Pe:return le}}}ae=_e,ae=Me,ae=ie,ae=et,ae=Fe,ae=_t,ae=rt,ae=Pe,ae=tt,ae=Oe,ae=lt,ae=Et,ae=function(){return!1},ae=function(){return!1},ae=function(de){return ee(de)===_e},ae=function(de){return ee(de)===Me},ae=function(de){return typeof de=="object"&&de!==null&&de.$$typeof===ie},ae=function(de){return ee(de)===et},ae=function(de){return ee(de)===Fe},ae=function(de){return ee(de)===_t},ae=function(de){return ee(de)===rt},ae=function(de){return ee(de)===Pe},ae=function(de){return ee(de)===tt},ae=function(de){return ee(de)===Oe},ae=function(de){return ee(de)===lt},ae=function(de){return ee(de)===Et},ae=function(de){return typeof de=="string"||typeof de=="function"||de===Fe||de===tt||de===Oe||de===lt||de===Et||de===Ge||typeof de=="object"&&de!==null&&(de.$$typeof===_t||de.$$typeof===rt||de.$$typeof===Me||de.$$typeof===_e||de.$$typeof===et||de.$$typeof===te||de.getModuleId!==void 0)},ae=ee},35110:function(Ke,we,ae){"use strict";ae(46762)},48387:function(Ke,we,ae){"use strict";ae.d(we,{Qw:function(){return ra},FJ:function(){return bo},hT:function(){return Mi},OF:function(){return Nl},ZP:function(){return nt}});function ie(){return ie=Object.assign?Object.assign.bind():function(Se){for(var Te=1;Te<arguments.length;Te++){var ze=arguments[Te];for(var Qe in ze)({}).hasOwnProperty.call(ze,Qe)&&(Se[Qe]=ze[Qe])}return Se},ie.apply(null,arguments)}function Pe(Se,Te){(Te==null||Te>Se.length)&&(Te=Se.length);for(var ze=0,Qe=Array(Te);ze<Te;ze++)Qe[ze]=Se[ze];return Qe}function Fe(Se){if(Array.isArray(Se))return Pe(Se)}function Oe(Se){if(typeof Symbol!="undefined"&&Se[Symbol.iterator]!=null||Se["@@iterator"]!=null)return Array.from(Se)}function tt(Se,Te){if(Se){if(typeof Se=="string")return Pe(Se,Te);var ze={}.toString.call(Se).slice(8,-1);return ze==="Object"&&Se.constructor&&(ze=Se.constructor.name),ze==="Map"||ze==="Set"?Array.from(Se):ze==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ze)?Pe(Se,Te):void 0}}function Me(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _e(Se){return Fe(Se)||Oe(Se)||tt(Se)||Me()}function ut(Se){"@babel/helpers - typeof";return ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Te){return typeof Te}:function(Te){return Te&&typeof Symbol=="function"&&Te.constructor===Symbol&&Te!==Symbol.prototype?"symbol":typeof Te},ut(Se)}function et(Se,Te){if(ut(Se)!="object"||!Se)return Se;var ze=Se[Symbol.toPrimitive];if(ze!==void 0){var Qe=ze.call(Se,Te||"default");if(ut(Qe)!="object")return Qe;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Te==="string"?String:Number)(Se)}function lt(Se){var Te=et(Se,"string");return ut(Te)=="symbol"?Te:Te+""}function Et(Se,Te,ze){return(Te=lt(Te))in Se?Object.defineProperty(Se,Te,{value:ze,enumerable:!0,configurable:!0,writable:!0}):Se[Te]=ze,Se}function rt(Se,Te){var ze=Object.keys(Se);if(Object.getOwnPropertySymbols){var Qe=Object.getOwnPropertySymbols(Se);Te&&(Qe=Qe.filter(function(mt){return Object.getOwnPropertyDescriptor(Se,mt).enumerable})),ze.push.apply(ze,Qe)}return ze}function _t(Se){for(var Te=1;Te<arguments.length;Te++){var ze=arguments[Te]!=null?arguments[Te]:{};Te%2?rt(Object(ze),!0).forEach(function(Qe){Et(Se,Qe,ze[Qe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Se,Object.getOwnPropertyDescriptors(ze)):rt(Object(ze)).forEach(function(Qe){Object.defineProperty(Se,Qe,Object.getOwnPropertyDescriptor(ze,Qe))})}return Se}function Ge(Se){if(Array.isArray(Se))return Se}function te(Se,Te){var ze=Se==null?null:typeof Symbol!="undefined"&&Se[Symbol.iterator]||Se["@@iterator"];if(ze!=null){var Qe,mt,Ae,De,qe=[],ot=!0,Lt=!1;try{if(Ae=(ze=ze.call(Se)).next,Te===0){if(Object(ze)!==ze)return;ot=!1}else for(;!(ot=(Qe=Ae.call(ze)).done)&&(qe.push(Qe.value),qe.length!==Te);ot=!0);}catch(Ut){Lt=!0,mt=Ut}finally{try{if(!ot&&ze.return!=null&&(De=ze.return(),Object(De)!==De))return}finally{if(Lt)throw mt}}return qe}}function ee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function de(Se,Te){return Ge(Se)||te(Se,Te)||tt(Se,Te)||ee()}function le(Se,Te){if(Se==null)return{};var ze={};for(var Qe in Se)if({}.hasOwnProperty.call(Se,Qe)){if(Te.indexOf(Qe)!==-1)continue;ze[Qe]=Se[Qe]}return ze}function pe(Se,Te){if(Se==null)return{};var ze,Qe,mt=le(Se,Te);if(Object.getOwnPropertySymbols){var Ae=Object.getOwnPropertySymbols(Se);for(Qe=0;Qe<Ae.length;Qe++)ze=Ae[Qe],Te.indexOf(ze)===-1&&{}.propertyIsEnumerable.call(Se,ze)&&(mt[ze]=Se[ze])}return mt}function me(){return me=Object.assign?Object.assign.bind():function(Se){for(var Te=1;Te<arguments.length;Te++){var ze=arguments[Te];for(var Qe in ze)Object.prototype.hasOwnProperty.call(ze,Qe)&&(Se[Qe]=ze[Qe])}return Se},me.apply(this,arguments)}function xe(Se,Te){(Te==null||Te>Se.length)&&(Te=Se.length);for(var ze=0,Qe=new Array(Te);ze<Te;ze++)Qe[ze]=Se[ze];return Qe}function be(Se){if(Array.isArray(Se))return xe(Se)}function Be(Se){if(typeof Symbol!="undefined"&&Se[Symbol.iterator]!=null||Se["@@iterator"]!=null)return Array.from(Se)}function at(Se,Te){if(Se){if(typeof Se=="string")return xe(Se,Te);var ze=Object.prototype.toString.call(Se).slice(8,-1);if(ze==="Object"&&Se.constructor&&(ze=Se.constructor.name),ze==="Map"||ze==="Set")return Array.from(Se);if(ze==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ze))return xe(Se,Te)}}function dt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gt(Se){return be(Se)||Be(Se)||at(Se)||dt()}function ft(Se){"@babel/helpers - typeof";return ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Te){return typeof Te}:function(Te){return Te&&typeof Symbol=="function"&&Te.constructor===Symbol&&Te!==Symbol.prototype?"symbol":typeof Te},ft(Se)}function Nt(Se,Te){if(ft(Se)!=="object"||Se===null)return Se;var ze=Se[Symbol.toPrimitive];if(ze!==void 0){var Qe=ze.call(Se,Te||"default");if(ft(Qe)!=="object")return Qe;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Te==="string"?String:Number)(Se)}function Tt(Se){var Te=Nt(Se,"string");return ft(Te)==="symbol"?Te:String(Te)}function Ct(Se,Te,ze){return Te=Tt(Te),Te in Se?Object.defineProperty(Se,Te,{value:ze,enumerable:!0,configurable:!0,writable:!0}):Se[Te]=ze,Se}function Vt(Se,Te){var ze=Object.keys(Se);if(Object.getOwnPropertySymbols){var Qe=Object.getOwnPropertySymbols(Se);Te&&(Qe=Qe.filter(function(mt){return Object.getOwnPropertyDescriptor(Se,mt).enumerable})),ze.push.apply(ze,Qe)}return ze}function Rt(Se){for(var Te=1;Te<arguments.length;Te++){var ze=arguments[Te]!=null?arguments[Te]:{};Te%2?Vt(Object(ze),!0).forEach(function(Qe){Ct(Se,Qe,ze[Qe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Se,Object.getOwnPropertyDescriptors(ze)):Vt(Object(ze)).forEach(function(Qe){Object.defineProperty(Se,Qe,Object.getOwnPropertyDescriptor(ze,Qe))})}return Se}function nn(Se){if(Array.isArray(Se))return Se}function Cn(Se,Te){var ze=Se==null?null:typeof Symbol!="undefined"&&Se[Symbol.iterator]||Se["@@iterator"];if(ze!=null){var Qe,mt,Ae,De,qe=[],ot=!0,Lt=!1;try{if(Ae=(ze=ze.call(Se)).next,Te===0){if(Object(ze)!==ze)return;ot=!1}else for(;!(ot=(Qe=Ae.call(ze)).done)&&(qe.push(Qe.value),qe.length!==Te);ot=!0);}catch(Ut){Lt=!0,mt=Ut}finally{try{if(!ot&&ze.return!=null&&(De=ze.return(),Object(De)!==De))return}finally{if(Lt)throw mt}}return qe}}function un(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nn(Se,Te){return nn(Se)||Cn(Se,Te)||at(Se,Te)||un()}function wt(Se,Te){if(Se==null)return{};var ze={},Qe=Object.keys(Se),mt,Ae;for(Ae=0;Ae<Qe.length;Ae++)mt=Qe[Ae],!(Te.indexOf(mt)>=0)&&(ze[mt]=Se[mt]);return ze}function pt(Se,Te){if(Se==null)return{};var ze=wt(Se,Te),Qe,mt;if(Object.getOwnPropertySymbols){var Ae=Object.getOwnPropertySymbols(Se);for(mt=0;mt<Ae.length;mt++)Qe=Ae[mt],!(Te.indexOf(Qe)>=0)&&Object.prototype.propertyIsEnumerable.call(Se,Qe)&&(ze[Qe]=Se[Qe])}return ze}var Ie=ae(67294);function on(Se){var Te=Ie.useRef();Te.current=Se;var ze=Ie.useCallback(function(){for(var Qe,mt=arguments.length,Ae=new Array(mt),De=0;De<mt;De++)Ae[De]=arguments[De];return(Qe=Te.current)===null||Qe===void 0?void 0:Qe.call.apply(Qe,[Te].concat(Ae))},[]);return ze}function Bn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Zt=Bn()?Ie.useLayoutEffect:Ie.useEffect,zn=Zt,_n=function(Te,ze){var Qe=Ie.useRef(!0);Zt(function(){if(!Qe.current)return Te()},ze),Zt(function(){return Qe.current=!1,function(){Qe.current=!0}},[])};function nr(Se){var Te=Ie.useRef(!1),ze=Ie.useState(Se),Qe=Nn(ze,2),mt=Qe[0],Ae=Qe[1];Ie.useEffect(function(){return Te.current=!1,function(){Te.current=!0}},[]);function De(qe,ot){ot&&Te.current||Ae(qe)}return[mt,De]}function Ft(Se){return Se!==void 0}function Wt(Se,Te){var ze=Te||{},Qe=ze.defaultValue,mt=ze.value,Ae=ze.onChange,De=ze.postState,qe=nr(function(){return Ft(mt)?mt:Ft(Qe)?typeof Qe=="function"?Qe():Qe:typeof Se=="function"?Se():Se}),ot=Nn(qe,2),Lt=ot[0],Ut=ot[1],jt=mt!==void 0?mt:Lt,se=De?De(jt):jt,fe=on(Ae),je=nr([jt]),St=Nn(je,2),Yt=St[0],mn=St[1];_n(function(){var On=Yt[0];Lt!==On&&fe(Lt,On)},[Yt]),_n(function(){Ft(mt)||Ut(mt)},[mt]);var wn=on(function(On,Tn){Ut(On,Tn),mn([jt],Tn)});return[se,wn]}var ht={};function tn(Se,Te){}function an(Se,Te){}function ct(){ht={}}function Ue(Se,Te,ze){!Te&&!ht[ze]&&(Se(!1,ze),ht[ze]=!0)}function He(Se,Te){Ue(tn,Se,Te)}function it(Se,Te){Ue(an,Se,Te)}var vt=He,Ye=ae(94184),It=ae.n(Ye),In=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Se=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Se)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Se==null?void 0:Se.substr(0,4))},Kn=ae(95936);function dr(Se,Te,ze){var Qe=Ie.useRef({});return(!("value"in Qe.current)||ze(Qe.current.condition,Te))&&(Qe.current.value=Se(),Qe.current.condition=Te),Qe.current.value}function Rn(Se,Te){typeof Se=="function"?Se(Te):ft(Se)==="object"&&Se&&"current"in Se&&(Se.current=Te)}function er(){for(var Se=arguments.length,Te=new Array(Se),ze=0;ze<Se;ze++)Te[ze]=arguments[ze];var Qe=Te.filter(function(mt){return mt});return Qe.length<=1?Qe[0]:function(mt){Te.forEach(function(Ae){Rn(Ae,mt)})}}function yn(){for(var Se=arguments.length,Te=new Array(Se),ze=0;ze<Se;ze++)Te[ze]=arguments[ze];return dr(function(){return er.apply(void 0,Te)},Te,function(Qe,mt){return Qe.length===mt.length&&Qe.every(function(Ae,De){return Ae===mt[De]})})}function Er(Se){var Te,ze,Qe=isMemo(Se)?Se.type.type:Se.type;return!(typeof Qe=="function"&&!((Te=Qe.prototype)!==null&&Te!==void 0&&Te.render)||typeof Se=="function"&&!((ze=Se.prototype)!==null&&ze!==void 0&&ze.render))}var sr=function(Te){var ze=Te.className,Qe=Te.customizeIcon,mt=Te.customizeIconProps,Ae=Te.children,De=Te.onMouseDown,qe=Te.onClick,ot=typeof Qe=="function"?Qe(mt):Qe;return Ie.createElement("span",{className:ze,onMouseDown:function(Ut){Ut.preventDefault(),De==null||De(Ut)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:qe,"aria-hidden":!0},ot!==void 0?ot:Ie.createElement("span",{className:It()(ze.split(/\s+/).map(function(Lt){return"".concat(Lt,"-icon")}))},Ae))},Hr=sr,An=function(Te,ze,Qe,mt,Ae){var De=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,qe=arguments.length>6?arguments[6]:void 0,ot=arguments.length>7?arguments[7]:void 0,Lt=Ie.useMemo(function(){if(ft(mt)==="object")return mt.clearIcon;if(Ae)return Ae},[mt,Ae]),Ut=Ie.useMemo(function(){return!!(!De&&mt&&(Qe.length||qe)&&!(ot==="combobox"&&qe===""))},[mt,De,Qe.length,qe,ot]);return{allowClear:Ut,clearIcon:Ie.createElement(Hr,{className:"".concat(Te,"-clear"),onMouseDown:ze,customizeIcon:Lt},"\xD7")}},yi=Ie.createContext(null);function ri(){return Ie.useContext(yi)}function bn(){var Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Te=Ie.useState(!1),ze=Nn(Te,2),Qe=ze[0],mt=ze[1],Ae=Ie.useRef(null),De=function(){window.clearTimeout(Ae.current)};Ie.useEffect(function(){return De},[]);var qe=function(Lt,Ut){De(),Ae.current=window.setTimeout(function(){mt(Lt),Ut&&Ut()},Se)};return[Qe,qe,De]}function Xe(){var Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Te=Ie.useRef(null),ze=Ie.useRef(null);Ie.useEffect(function(){return function(){window.clearTimeout(ze.current)}},[]);function Qe(mt){(mt||Te.current===null)&&(Te.current=mt),window.clearTimeout(ze.current),ze.current=window.setTimeout(function(){Te.current=null},Se)}return[function(){return Te.current},Qe]}function Ji(Se,Te,ze,Qe){var mt=Ie.useRef(null);mt.current={open:Te,triggerOpen:ze,customizedTrigger:Qe},Ie.useEffect(function(){function Ae(De){var qe;if(!((qe=mt.current)!==null&&qe!==void 0&&qe.customizedTrigger)){var ot=De.target;ot.shadowRoot&&De.composed&&(ot=De.composedPath()[0]||ot),mt.current.open&&Se().filter(function(Lt){return Lt}).every(function(Lt){return!Lt.contains(ot)&&Lt!==ot})&&mt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Ae),function(){return window.removeEventListener("mousedown",Ae)}},[])}var Qn={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Te){var ze=Te.keyCode;if(Te.altKey&&!Te.ctrlKey||Te.metaKey||ze>=Qn.F1&&ze<=Qn.F12)return!1;switch(ze){case Qn.ALT:case Qn.CAPS_LOCK:case Qn.CONTEXT_MENU:case Qn.CTRL:case Qn.DOWN:case Qn.END:case Qn.ESC:case Qn.HOME:case Qn.INSERT:case Qn.LEFT:case Qn.MAC_FF_META:case Qn.META:case Qn.NUMLOCK:case Qn.NUM_CENTER:case Qn.PAGE_DOWN:case Qn.PAGE_UP:case Qn.PAUSE:case Qn.PRINT_SCREEN:case Qn.RIGHT:case Qn.SHIFT:case Qn.UP:case Qn.WIN_KEY:case Qn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Te){if(Te>=Qn.ZERO&&Te<=Qn.NINE||Te>=Qn.NUM_ZERO&&Te<=Qn.NUM_MULTIPLY||Te>=Qn.A&&Te<=Qn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Te===0)return!0;switch(Te){case Qn.SPACE:case Qn.QUESTION_MARK:case Qn.NUM_PLUS:case Qn.NUM_MINUS:case Qn.NUM_PERIOD:case Qn.NUM_DIVISION:case Qn.SEMICOLON:case Qn.DASH:case Qn.EQUALS:case Qn.COMMA:case Qn.PERIOD:case Qn.SLASH:case Qn.APOSTROPHE:case Qn.SINGLE_QUOTE:case Qn.OPEN_SQUARE_BRACKET:case Qn.BACKSLASH:case Qn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Sn=Qn;function to(Se){return Se&&![Sn.ESC,Sn.SHIFT,Sn.BACKSPACE,Sn.TAB,Sn.WIN_KEY,Sn.ALT,Sn.META,Sn.WIN_KEY_RIGHT,Sn.CTRL,Sn.SEMICOLON,Sn.EQUALS,Sn.CAPS_LOCK,Sn.CONTEXT_MENU,Sn.F1,Sn.F2,Sn.F3,Sn.F4,Sn.F5,Sn.F6,Sn.F7,Sn.F8,Sn.F9,Sn.F10,Sn.F11,Sn.F12].includes(Se)}var Ki=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,Zr=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,hi="".concat(Ki," ").concat(Zr).split(/[\s\n]+/),Ir="aria-",fn="data-";function Hi(Se,Te){return Se.indexOf(Te)===0}function ao(Se){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ze;Te===!1?ze={aria:!0,data:!0,attr:!0}:Te===!0?ze={aria:!0}:ze=Rt({},Te);var Qe={};return Object.keys(Se).forEach(function(mt){(ze.aria&&(mt==="role"||Hi(mt,Ir))||ze.data&&Hi(mt,fn)||ze.attr&&hi.includes(mt))&&(Qe[mt]=Se[mt])}),Qe}function ui(){return ui=Object.assign?Object.assign.bind():function(Se){for(var Te=1;Te<arguments.length;Te++){var ze=arguments[Te];for(var Qe in ze)Object.prototype.hasOwnProperty.call(ze,Qe)&&(Se[Qe]=ze[Qe])}return Se},ui.apply(this,arguments)}function ai(Se){"@babel/helpers - typeof";return ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Te){return typeof Te}:function(Te){return Te&&typeof Symbol=="function"&&Te.constructor===Symbol&&Te!==Symbol.prototype?"symbol":typeof Te},ai(Se)}function Ni(Se,Te){if(ai(Se)!=="object"||Se===null)return Se;var ze=Se[Symbol.toPrimitive];if(ze!==void 0){var Qe=ze.call(Se,Te||"default");if(ai(Qe)!=="object")return Qe;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Te==="string"?String:Number)(Se)}function ir(Se){var Te=Ni(Se,"string");return ai(Te)==="symbol"?Te:String(Te)}function We(Se,Te,ze){return Te=ir(Te),Te in Se?Object.defineProperty(Se,Te,{value:ze,enumerable:!0,configurable:!0,writable:!0}):Se[Te]=ze,Se}function rr(Se,Te){var ze=Object.keys(Se);if(Object.getOwnPropertySymbols){var Qe=Object.getOwnPropertySymbols(Se);Te&&(Qe=Qe.filter(function(mt){return Object.getOwnPropertyDescriptor(Se,mt).enumerable})),ze.push.apply(ze,Qe)}return ze}function ur(Se){for(var Te=1;Te<arguments.length;Te++){var ze=arguments[Te]!=null?arguments[Te]:{};Te%2?rr(Object(ze),!0).forEach(function(Qe){We(Se,Qe,ze[Qe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Se,Object.getOwnPropertyDescriptors(ze)):rr(Object(ze)).forEach(function(Qe){Object.defineProperty(Se,Qe,Object.getOwnPropertyDescriptor(ze,Qe))})}return Se}function hr(Se){if(Array.isArray(Se))return Se}function Or(Se,Te){var ze=Se==null?null:typeof Symbol!="undefined"&&Se[Symbol.iterator]||Se["@@iterator"];if(ze!=null){var Qe,mt,Ae,De,qe=[],ot=!0,Lt=!1;try{if(Ae=(ze=ze.call(Se)).next,Te===0){if(Object(ze)!==ze)return;ot=!1}else for(;!(ot=(Qe=Ae.call(ze)).done)&&(qe.push(Qe.value),qe.length!==Te);ot=!0);}catch(Ut){Lt=!0,mt=Ut}finally{try{if(!ot&&ze.return!=null&&(De=ze.return(),Object(De)!==De))return}finally{if(Lt)throw mt}}return qe}}function jr(Se,Te){(Te==null||Te>Se.length)&&(Te=Se.length);for(var ze=0,Qe=new Array(Te);ze<Te;ze++)Qe[ze]=Se[ze];return Qe}function si(Se,Te){if(Se){if(typeof Se=="string")return jr(Se,Te);var ze=Object.prototype.toString.call(Se).slice(8,-1);if(ze==="Object"&&Se.constructor&&(ze=Se.constructor.name),ze==="Map"||ze==="Set")return Array.from(Se);if(ze==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ze))return jr(Se,Te)}}function Fi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vn(Se,Te){return hr(Se)||Or(Se,Te)||si(Se,Te)||Fi()}function Wn(Se,Te){if(Se==null)return{};var ze={},Qe=Object.keys(Se),mt,Ae;for(Ae=0;Ae<Qe.length;Ae++)mt=Qe[Ae],!(Te.indexOf(mt)>=0)&&(ze[mt]=Se[mt]);return ze}function vn(Se,Te){if(Se==null)return{};var ze=Wn(Se,Te),Qe,mt;if(Object.getOwnPropertySymbols){var Ae=Object.getOwnPropertySymbols(Se);for(mt=0;mt<Ae.length;mt++)Qe=Ae[mt],!(Te.indexOf(Qe)>=0)&&Object.prototype.propertyIsEnumerable.call(Se,Qe)&&(ze[Qe]=Se[Qe])}return ze}var tr=ae(48555);function mi(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var gi=mi()?Ie.useLayoutEffect:Ie.useEffect,ti=function(Te,ze){var Qe=Ie.useRef(!0);gi(function(){return Te(Qe.current)},ze),gi(function(){return Qe.current=!1,function(){Qe.current=!0}},[])},Hn=function(Te,ze){ti(function(Qe){if(!Qe)return Te()},ze)},Cr=ti,Ri=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],_i=void 0;function Ur(Se,Te){var ze=Se.prefixCls,Qe=Se.invalidate,mt=Se.item,Ae=Se.renderItem,De=Se.responsive,qe=Se.responsiveDisabled,ot=Se.registerSize,Lt=Se.itemKey,Ut=Se.className,jt=Se.style,se=Se.children,fe=Se.display,je=Se.order,St=Se.component,Yt=St===void 0?"div":St,mn=vn(Se,Ri),wn=De&&!fe;function On(ii){ot(Lt,ii)}Ie.useEffect(function(){return function(){On(null)}},[]);var Tn=Ae&&mt!==_i?Ae(mt):se,br;Qe||(br={opacity:wn?0:1,height:wn?0:_i,overflowY:wn?"hidden":_i,order:De?je:_i,pointerEvents:wn?"none":_i,position:wn?"absolute":_i});var Wr={};wn&&(Wr["aria-hidden"]=!0);var di=Ie.createElement(Yt,ui({className:It()(!Qe&&ze,Ut),style:ur(ur({},br),jt)},Wr,mn,{ref:Te}),Tn);return De&&(di=Ie.createElement(tr.Z,{onResize:function(oi){var Di=oi.offsetWidth;On(Di)},disabled:qe},di)),di}var Pn=Ie.forwardRef(Ur);Pn.displayName="Item";var xi=Pn;function ji(Se){var Te=Ie.useRef();Te.current=Se;var ze=Ie.useCallback(function(){for(var Qe,mt=arguments.length,Ae=new Array(mt),De=0;De<mt;De++)Ae[De]=arguments[De];return(Qe=Te.current)===null||Qe===void 0?void 0:Qe.call.apply(Qe,[Te].concat(Ae))},[]);return ze}var Xo=ae(73935),wr=function(Te){return+setTimeout(Te,16)},Gi=function(Te){return clearTimeout(Te)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(wr=function(Te){return window.requestAnimationFrame(Te)},Gi=function(Te){return window.cancelAnimationFrame(Te)});var Jr=0,ls=new Map;function Pa(Se){ls.delete(Se)}var Oi=function(Te){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Jr+=1;var Qe=Jr;function mt(Ae){if(Ae===0)Pa(Qe),Te();else{var De=wr(function(){mt(Ae-1)});ls.set(Qe,De)}}return mt(ze),Qe};Oi.cancel=function(Se){var Te=ls.get(Se);return Pa(Te),Gi(Te)};var Yi=Oi;function uo(Se){if(typeof MessageChannel=="undefined")Yi(Se);else{var Te=new MessageChannel;Te.port1.onmessage=function(){return Se()},Te.port2.postMessage(void 0)}}function ba(){var Se=Ie.useRef(null),Te=function(Qe){Se.current||(Se.current=[],uo(function(){(0,Xo.unstable_batchedUpdates)(function(){Se.current.forEach(function(mt){mt()}),Se.current=null})})),Se.current.push(Qe)};return Te}function Go(Se,Te){var ze=Ie.useState(Te),Qe=Vn(ze,2),mt=Qe[0],Ae=Qe[1],De=ji(function(qe){Se(function(){Ae(qe)})});return[mt,De]}var zr=Ie.createContext(null),vo=["component"],sl=["className"],gs=["className"],es=function(Te,ze){var Qe=Ie.useContext(zr);if(!Qe){var mt=Te.component,Ae=mt===void 0?"div":mt,De=vn(Te,vo);return Ie.createElement(Ae,ui({},De,{ref:ze}))}var qe=Qe.className,ot=vn(Qe,sl),Lt=Te.className,Ut=vn(Te,gs);return Ie.createElement(zr.Provider,{value:null},Ie.createElement(xi,ui({ref:ze,className:It()(qe,Lt)},ot,Ut)))},Mn=Ie.forwardRef(es);Mn.displayName="RawItem";var Co=Mn,Ta=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],lo="responsive",oa="invalidate";function fa(Se){return"+ ".concat(Se.length," ...")}function Ka(Se,Te){var ze=Se.prefixCls,Qe=ze===void 0?"rc-overflow":ze,mt=Se.data,Ae=mt===void 0?[]:mt,De=Se.renderItem,qe=Se.renderRawItem,ot=Se.itemKey,Lt=Se.itemWidth,Ut=Lt===void 0?10:Lt,jt=Se.ssr,se=Se.style,fe=Se.className,je=Se.maxCount,St=Se.renderRest,Yt=Se.renderRawRest,mn=Se.suffix,wn=Se.component,On=wn===void 0?"div":wn,Tn=Se.itemComponent,br=Se.onVisibleChange,Wr=vn(Se,Ta),di=jt==="full",ii=ba(),oi=Go(ii,null),Di=Vn(oi,2),cr=Di[0],pi=Di[1],Yr=cr||0,Li=Go(ii,new Map),Vi=Vn(Li,2),bi=Vi[0],xo=Vi[1],Fn=Go(ii,0),mo=Vn(Fn,2),Ci=mo[0],jn=mo[1],Uo=Go(ii,0),ga=Vn(Uo,2),ca=ga[0],$i=ga[1],yo=Go(ii,0),ta=Vn(yo,2),na=ta[0],Ha=ta[1],wa=(0,Ie.useState)(null),ko=Vn(wa,2),fo=ko[0],Qo=ko[1],ja=(0,Ie.useState)(null),Lo=Vn(ja,2),Ui=Lo[0],so=Lo[1],ho=Ie.useMemo(function(){return Ui===null&&di?Number.MAX_SAFE_INTEGER:Ui||0},[Ui,cr]),Pi=(0,Ie.useState)(!1),Zi=Vn(Pi,2),wo=Zi[0],Ea=Zi[1],_r="".concat(Qe,"-item"),Qr=Math.max(Ci,ca),Ro=je===lo,Bo=Ae.length&&Ro,Wo=je===oa,Za=Bo||typeof je=="number"&&Ae.length>je,Ko=(0,Ie.useMemo)(function(){var Da=Ae;return Bo?cr===null&&di?Da=Ae:Da=Ae.slice(0,Math.min(Ae.length,Yr/Ut)):typeof je=="number"&&(Da=Ae.slice(0,je)),Da},[Ae,Ut,cr,je,Bo]),Oa=(0,Ie.useMemo)(function(){return Bo?Ae.slice(ho+1):Ae.slice(Ko.length)},[Ae,Ko,Bo,ho]),cs=(0,Ie.useCallback)(function(Da,Ja){var fs;return typeof ot=="function"?ot(Da):(fs=ot&&(Da==null?void 0:Da[ot]))!==null&&fs!==void 0?fs:Ja},[ot]),Ws=(0,Ie.useCallback)(De||function(Da){return Da},[De]);function Qa(Da,Ja,fs){Ui===Da&&(Ja===void 0||Ja===fo)||(so(Da),fs||(Ea(Da<Ae.length-1),br==null||br(Da)),Ja!==void 0&&Qo(Ja))}function ds(Da,Ja){pi(Ja.clientWidth)}function ma(Da,Ja){xo(function(fs){var jl=new Map(fs);return Ja===null?jl.delete(Da):jl.set(Da,Ja),jl})}function Ks(Da,Ja){$i(Ja),jn(ca)}function Rs(Da,Ja){Ha(Ja)}function tl(Da){return bi.get(cs(Ko[Da],Da))}Cr(function(){if(Yr&&typeof Qr=="number"&&Ko){var Da=na,Ja=Ko.length,fs=Ja-1;if(!Ja){Qa(0,null);return}for(var jl=0;jl<Ja;jl+=1){var fl=tl(jl);if(di&&(fl=fl||0),fl===void 0){Qa(jl-1,void 0,!0);break}if(Da+=fl,fs===0&&Da<=Yr||jl===fs-1&&Da+tl(fs)<=Yr){Qa(fs,null);break}else if(Da+Qr>Yr){Qa(jl-1,Da-fl-na+ca);break}}mn&&tl(0)+na>Yr&&Qo(null)}},[Yr,bi,ca,na,cs,Ko]);var qi=wo&&!!Oa.length,eo={};fo!==null&&Bo&&(eo={position:"absolute",left:fo,top:0});var po={prefixCls:_r,responsive:Bo,component:Tn,invalidate:Wo},da=qe?function(Da,Ja){var fs=cs(Da,Ja);return Ie.createElement(zr.Provider,{key:fs,value:ur(ur({},po),{},{order:Ja,item:Da,itemKey:fs,registerSize:ma,display:Ja<=ho})},qe(Da,Ja))}:function(Da,Ja){var fs=cs(Da,Ja);return Ie.createElement(xi,ui({},po,{order:Ja,key:fs,item:Da,renderItem:Ws,itemKey:fs,registerSize:ma,display:Ja<=ho}))},hs,Bs={order:qi?ho:Number.MAX_SAFE_INTEGER,className:"".concat(_r,"-rest"),registerSize:Ks,display:qi};if(Yt)Yt&&(hs=Ie.createElement(zr.Provider,{value:ur(ur({},po),Bs)},Yt(Oa)));else{var $s=St||fa;hs=Ie.createElement(xi,ui({},po,Bs),typeof $s=="function"?$s(Oa):$s)}var xn=Ie.createElement(On,ui({className:It()(!Wo&&Qe,fe),style:se,ref:Te},Wr),Ko.map(da),Za?hs:null,mn&&Ie.createElement(xi,ui({},po,{responsive:Ro,responsiveDisabled:!Bo,order:ho,className:"".concat(_r,"-suffix"),registerSize:Rs,display:!0,style:eo}),mn));return Ro&&(xn=Ie.createElement(tr.Z,{onResize:ds,disabled:!Bo},xn)),xn}var qo=Ie.forwardRef(Ka);qo.displayName="Overflow",qo.Item=Co,qo.RESPONSIVE=lo,qo.INVALIDATE=oa;var aa=qo,za=aa,Ar=function(Te,ze){var Qe,mt=Te.prefixCls,Ae=Te.id,De=Te.inputElement,qe=Te.disabled,ot=Te.tabIndex,Lt=Te.autoFocus,Ut=Te.autoComplete,jt=Te.editable,se=Te.activeDescendantId,fe=Te.value,je=Te.maxLength,St=Te.onKeyDown,Yt=Te.onMouseDown,mn=Te.onChange,wn=Te.onPaste,On=Te.onCompositionStart,Tn=Te.onCompositionEnd,br=Te.onBlur,Wr=Te.open,di=Te.attrs,ii=De||Ie.createElement("input",null),oi=ii,Di=oi.ref,cr=oi.props,pi=cr.onKeyDown,Yr=cr.onChange,Li=cr.onMouseDown,Vi=cr.onCompositionStart,bi=cr.onCompositionEnd,xo=cr.onBlur,Fn=cr.style;return"maxLength"in ii.props,ii=Ie.cloneElement(ii,Rt(Rt(Rt({type:"search"},cr),{},{id:Ae,ref:er(ze,Di),disabled:qe,tabIndex:ot,autoComplete:Ut||"off",autoFocus:Lt,className:It()("".concat(mt,"-selection-search-input"),(Qe=ii)===null||Qe===void 0||(Qe=Qe.props)===null||Qe===void 0?void 0:Qe.className),role:"combobox","aria-expanded":Wr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ae,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ae,"_list"),"aria-activedescendant":Wr?se:void 0},di),{},{value:jt?fe:"",maxLength:je,readOnly:!jt,unselectable:jt?null:"on",style:Rt(Rt({},Fn),{},{opacity:jt?null:0}),onKeyDown:function(Ci){St(Ci),pi&&pi(Ci)},onMouseDown:function(Ci){Yt(Ci),Li&&Li(Ci)},onChange:function(Ci){mn(Ci),Yr&&Yr(Ci)},onCompositionStart:function(Ci){On(Ci),Vi&&Vi(Ci)},onCompositionEnd:function(Ci){Tn(Ci),bi&&bi(Ci)},onPaste:wn,onBlur:function(Ci){br(Ci),xo&&xo(Ci)}})),ii},us=Ie.forwardRef(Ar),qt=us;function At(Se){return Array.isArray(Se)?Se:Se!==void 0?[Se]:[]}var Nr=typeof window!="undefined"&&window.document&&window.document.documentElement,Qt=Nr;function ln(Se){return Se!=null}function En(Se){return!Se&&Se!==0}function Xn(Se){return["string","number"].includes(ft(Se))}function Rr(Se){var Te=void 0;return Se&&(Xn(Se.title)?Te=Se.title.toString():Xn(Se.label)&&(Te=Se.label.toString())),Te}function vi(Se,Te){Qt?Ie.useLayoutEffect(Se,Te):Ie.useEffect(Se,Te)}function ni(Se){var Te;return(Te=Se.key)!==null&&Te!==void 0?Te:Se.value}var xr=function(Te){Te.preventDefault(),Te.stopPropagation()},xt=function(Te){var ze=Te.id,Qe=Te.prefixCls,mt=Te.values,Ae=Te.open,De=Te.searchValue,qe=Te.autoClearSearchValue,ot=Te.inputRef,Lt=Te.placeholder,Ut=Te.disabled,jt=Te.mode,se=Te.showSearch,fe=Te.autoFocus,je=Te.autoComplete,St=Te.activeDescendantId,Yt=Te.tabIndex,mn=Te.removeIcon,wn=Te.maxTagCount,On=Te.maxTagTextLength,Tn=Te.maxTagPlaceholder,br=Tn===void 0?function(ja){return"+ ".concat(ja.length," ...")}:Tn,Wr=Te.tagRender,di=Te.onToggleOpen,ii=Te.onRemove,oi=Te.onInputChange,Di=Te.onInputPaste,cr=Te.onInputKeyDown,pi=Te.onInputMouseDown,Yr=Te.onInputCompositionStart,Li=Te.onInputCompositionEnd,Vi=Te.onInputBlur,bi=Ie.useRef(null),xo=(0,Ie.useState)(0),Fn=Nn(xo,2),mo=Fn[0],Ci=Fn[1],jn=(0,Ie.useState)(!1),Uo=Nn(jn,2),ga=Uo[0],ca=Uo[1],$i="".concat(Qe,"-selection"),yo=Ae||jt==="multiple"&&qe===!1||jt==="tags"?De:"",ta=jt==="tags"||jt==="multiple"&&qe===!1||se&&(Ae||ga);vi(function(){Ci(bi.current.scrollWidth)},[yo]);var na=function(Lo,Ui,so,ho,Pi){return Ie.createElement("span",{title:Rr(Lo),className:It()("".concat($i,"-item"),Ct({},"".concat($i,"-item-disabled"),so))},Ie.createElement("span",{className:"".concat($i,"-item-content")},Ui),ho&&Ie.createElement(Hr,{className:"".concat($i,"-item-remove"),onMouseDown:xr,onClick:Pi,customizeIcon:mn},"\xD7"))},Ha=function(Lo,Ui,so,ho,Pi,Zi){var wo=function(_r){xr(_r),di(!Ae)};return Ie.createElement("span",{onMouseDown:wo},Wr({label:Ui,value:Lo,disabled:so,closable:ho,onClose:Pi,isMaxTag:!!Zi}))},wa=function(Lo){var Ui=Lo.disabled,so=Lo.label,ho=Lo.value,Pi=!Ut&&!Ui,Zi=so;if(typeof On=="number"&&(typeof so=="string"||typeof so=="number")){var wo=String(Zi);wo.length>On&&(Zi="".concat(wo.slice(0,On),"..."))}var Ea=function(Qr){Qr&&Qr.stopPropagation(),ii(Lo)};return typeof Wr=="function"?Ha(ho,Zi,Ui,Pi,Ea):na(Lo,Zi,Ui,Pi,Ea)},ko=function(Lo){if(!mt.length)return null;var Ui=typeof br=="function"?br(Lo):br;return typeof Wr=="function"?Ha(void 0,Ui,!1,!1,void 0,!0):na({title:Ui},Ui,!1)},fo=Ie.createElement("div",{className:"".concat($i,"-search"),style:{width:mo},onFocus:function(){ca(!0)},onBlur:function(){ca(!1)}},Ie.createElement(qt,{ref:ot,open:Ae,prefixCls:Qe,id:ze,inputElement:null,disabled:Ut,autoFocus:fe,autoComplete:je,editable:ta,activeDescendantId:St,value:yo,onKeyDown:cr,onMouseDown:pi,onChange:oi,onPaste:Di,onCompositionStart:Yr,onCompositionEnd:Li,onBlur:Vi,tabIndex:Yt,attrs:ao(Te,!0)}),Ie.createElement("span",{ref:bi,className:"".concat($i,"-search-mirror"),"aria-hidden":!0},yo,"\xA0")),Qo=Ie.createElement(za,{prefixCls:"".concat($i,"-overflow"),data:mt,renderItem:wa,renderRest:ko,suffix:fo,itemKey:ni,maxCount:wn});return Ie.createElement("span",{className:"".concat($i,"-wrap")},Qo,!mt.length&&!yo&&Ie.createElement("span",{className:"".concat($i,"-placeholder")},Lt))},Po=xt,zo=function(Te){var ze=Te.inputElement,Qe=Te.prefixCls,mt=Te.id,Ae=Te.inputRef,De=Te.disabled,qe=Te.autoFocus,ot=Te.autoComplete,Lt=Te.activeDescendantId,Ut=Te.mode,jt=Te.open,se=Te.values,fe=Te.placeholder,je=Te.tabIndex,St=Te.showSearch,Yt=Te.searchValue,mn=Te.activeValue,wn=Te.maxLength,On=Te.onInputKeyDown,Tn=Te.onInputMouseDown,br=Te.onInputChange,Wr=Te.onInputPaste,di=Te.onInputCompositionStart,ii=Te.onInputCompositionEnd,oi=Te.onInputBlur,Di=Te.title,cr=Ie.useState(!1),pi=Nn(cr,2),Yr=pi[0],Li=pi[1],Vi=Ut==="combobox",bi=Vi||St,xo=se[0],Fn=Yt||"";Vi&&mn&&!Yr&&(Fn=mn),Ie.useEffect(function(){Vi&&Li(!1)},[Vi,mn]);var mo=Ut!=="combobox"&&!jt&&!St?!1:!!Fn,Ci=Di===void 0?Rr(xo):Di,jn=Ie.useMemo(function(){return xo?null:Ie.createElement("span",{className:"".concat(Qe,"-selection-placeholder"),style:mo?{visibility:"hidden"}:void 0},fe)},[xo,mo,fe,Qe]);return Ie.createElement("span",{className:"".concat(Qe,"-selection-wrap")},Ie.createElement("span",{className:"".concat(Qe,"-selection-search")},Ie.createElement(qt,{ref:Ae,prefixCls:Qe,id:mt,open:jt,inputElement:ze,disabled:De,autoFocus:qe,autoComplete:ot,editable:bi,activeDescendantId:Lt,value:Fn,onKeyDown:On,onMouseDown:Tn,onChange:function(ga){Li(!0),br(ga)},onPaste:Wr,onCompositionStart:di,onCompositionEnd:ii,onBlur:oi,tabIndex:je,attrs:ao(Te,!0),maxLength:Vi?wn:void 0})),!Vi&&xo?Ie.createElement("span",{className:"".concat(Qe,"-selection-item"),title:Ci,style:mo?{visibility:"hidden"}:void 0},xo.label):null,jn)},ya=zo,xa=function(Te,ze){var Qe=(0,Ie.useRef)(null),mt=(0,Ie.useRef)(!1),Ae=Te.prefixCls,De=Te.open,qe=Te.mode,ot=Te.showSearch,Lt=Te.tokenWithEnter,Ut=Te.disabled,jt=Te.prefix,se=Te.autoClearSearchValue,fe=Te.onSearch,je=Te.onSearchSubmit,St=Te.onToggleOpen,Yt=Te.onInputKeyDown,mn=Te.onInputBlur,wn=Te.domRef;Ie.useImperativeHandle(ze,function(){return{focus:function(Ci){Qe.current.focus(Ci)},blur:function(){Qe.current.blur()}}});var On=Xe(0),Tn=Nn(On,2),br=Tn[0],Wr=Tn[1],di=function(Ci){var jn=Ci.which,Uo=Qe.current instanceof HTMLTextAreaElement;!Uo&&De&&(jn===Sn.UP||jn===Sn.DOWN)&&Ci.preventDefault(),Yt&&Yt(Ci),jn===Sn.ENTER&&qe==="tags"&&!mt.current&&!De&&(je==null||je(Ci.target.value)),!(Uo&&!De&&~[Sn.UP,Sn.DOWN,Sn.LEFT,Sn.RIGHT].indexOf(jn))&&to(jn)&&St(!0)},ii=function(){Wr(!0)},oi=(0,Ie.useRef)(null),Di=function(Ci){fe(Ci,!0,mt.current)!==!1&&St(!0)},cr=function(){mt.current=!0},pi=function(Ci){mt.current=!1,qe!=="combobox"&&Di(Ci.target.value)},Yr=function(Ci){var jn=Ci.target.value;if(Lt&&oi.current&&/[\r\n]/.test(oi.current)){var Uo=oi.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");jn=jn.replace(Uo,oi.current)}oi.current=null,Di(jn)},Li=function(Ci){var jn=Ci.clipboardData,Uo=jn==null?void 0:jn.getData("text");oi.current=Uo||""},Vi=function(Ci){var jn=Ci.target;if(jn!==Qe.current){var Uo=document.body.style.msTouchAction!==void 0;Uo?setTimeout(function(){Qe.current.focus()}):Qe.current.focus()}},bi=function(Ci){var jn=br();Ci.target!==Qe.current&&!jn&&!(qe==="combobox"&&Ut)&&Ci.preventDefault(),(qe!=="combobox"&&(!ot||!jn)||!De)&&(De&&se!==!1&&fe("",!0,!1),St())},xo={inputRef:Qe,onInputKeyDown:di,onInputMouseDown:ii,onInputChange:Yr,onInputPaste:Li,onInputCompositionStart:cr,onInputCompositionEnd:pi,onInputBlur:mn},Fn=qe==="multiple"||qe==="tags"?Ie.createElement(Po,me({},Te,xo)):Ie.createElement(ya,me({},Te,xo));return Ie.createElement("div",{ref:wn,className:"".concat(Ae,"-selector"),onClick:Vi,onMouseDown:bi},jt&&Ie.createElement("div",{className:"".concat(Ae,"-prefix")},jt),Fn)},Sa=Ie.forwardRef(xa),ha=Sa,Gt=ae(98280),fr=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],pr=function(Te){var ze=Te===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:ze,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:ze,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:ze,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:ze,adjustY:1},htmlRegion:"scroll"}}},Tr=function(Te,ze){var Qe=Te.prefixCls,mt=Te.disabled,Ae=Te.visible,De=Te.children,qe=Te.popupElement,ot=Te.animation,Lt=Te.transitionName,Ut=Te.dropdownStyle,jt=Te.dropdownClassName,se=Te.direction,fe=se===void 0?"ltr":se,je=Te.placement,St=Te.builtinPlacements,Yt=Te.dropdownMatchSelectWidth,mn=Te.dropdownRender,wn=Te.dropdownAlign,On=Te.getPopupContainer,Tn=Te.empty,br=Te.getTriggerDOMNode,Wr=Te.onPopupVisibleChange,di=Te.onPopupMouseEnter,ii=pt(Te,fr),oi="".concat(Qe,"-dropdown"),Di=qe;mn&&(Di=mn(qe));var cr=Ie.useMemo(function(){return St||pr(Yt)},[St,Yt]),pi=ot?"".concat(oi,"-").concat(ot):Lt,Yr=typeof Yt=="number",Li=Ie.useMemo(function(){return Yr?null:Yt===!1?"minWidth":"width"},[Yt,Yr]),Vi=Ut;Yr&&(Vi=Rt(Rt({},Vi),{},{width:Yt}));var bi=Ie.useRef(null);return Ie.useImperativeHandle(ze,function(){return{getPopupElement:function(){var Fn;return(Fn=bi.current)===null||Fn===void 0?void 0:Fn.popupElement}}}),Ie.createElement(Gt.Z,me({},ii,{showAction:Wr?["click"]:[],hideAction:Wr?["click"]:[],popupPlacement:je||(fe==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:cr,prefixCls:oi,popupTransitionName:pi,popup:Ie.createElement("div",{onMouseEnter:di},Di),ref:bi,stretch:Li,popupAlign:wn,popupVisible:Ae,getPopupContainer:On,popupClassName:It()(jt,Ct({},"".concat(oi,"-empty"),Tn)),popupStyle:Vi,getTriggerDOMNode:br,onPopupVisibleChange:Wr}),De)},Ln=Ie.forwardRef(Tr),or=Ln;function vr(Se){return nn(Se)||Be(Se)||at(Se)||un()}function sn(Se,Te){var ze=Se.key,Qe;return"value"in Se&&(Qe=Se.value),ze!=null?ze:Qe!==void 0?Qe:"rc-index-key-".concat(Te)}function mr(Se){return typeof Se!="undefined"&&!Number.isNaN(Se)}function Vr(Se,Te){var ze=Se||{},Qe=ze.label,mt=ze.value,Ae=ze.options,De=ze.groupLabel,qe=Qe||(Te?"children":"label");return{label:qe,value:mt||"value",options:Ae||"options",groupLabel:De||qe}}function no(Se){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ze=Te.fieldNames,Qe=Te.childrenAsData,mt=[],Ae=Vr(ze,!1),De=Ae.label,qe=Ae.value,ot=Ae.options,Lt=Ae.groupLabel;function Ut(jt,se){Array.isArray(jt)&&jt.forEach(function(fe){if(se||!(ot in fe)){var je=fe[qe];mt.push({key:sn(fe,mt.length),groupOption:se,data:fe,label:fe[De],value:je})}else{var St=fe[Lt];St===void 0&&Qe&&(St=fe.label),mt.push({key:sn(fe,mt.length),group:!0,data:fe,label:St}),Ut(fe[ot],!0)}})}return Ut(Se,!1),mt}function Xi(Se){var Te=Rt({},Se);return"props"in Te||Object.defineProperty(Te,"props",{get:function(){return vt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Te}}),Te}var zi=function(Te,ze,Qe){if(!ze||!ze.length)return null;var mt=!1,Ae=function qe(ot,Lt){var Ut=vr(Lt),jt=Ut[0],se=Ut.slice(1);if(!jt)return[ot];var fe=ot.split(jt);return mt=mt||fe.length>1,fe.reduce(function(je,St){return[].concat(gt(je),gt(qe(St,se)))},[]).filter(Boolean)},De=Ae(Te,ze);return mt?typeof Qe!="undefined"?De.slice(0,Qe):De:null},_o=Ie.createContext(null),sa=_o;function Va(Se){var Te=Se.visible,ze=Se.values;if(!Te)return null;var Qe=50;return Ie.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(ze.slice(0,Qe).map(function(mt){var Ae=mt.label,De=mt.value;return["number","string"].includes(ft(Ae))?Ae:De}).join(", ")),ze.length>Qe?", ...":null)}var os=["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"],Zs=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Un=function(Te){return Te==="tags"||Te==="multiple"},ws=Ie.forwardRef(function(Se,Te){var ze,Qe=Se.id,mt=Se.prefixCls,Ae=Se.className,De=Se.showSearch,qe=Se.tagRender,ot=Se.direction,Lt=Se.omitDomProps,Ut=Se.displayValues,jt=Se.onDisplayValuesChange,se=Se.emptyOptions,fe=Se.notFoundContent,je=fe===void 0?"Not Found":fe,St=Se.onClear,Yt=Se.mode,mn=Se.disabled,wn=Se.loading,On=Se.getInputElement,Tn=Se.getRawInputElement,br=Se.open,Wr=Se.defaultOpen,di=Se.onDropdownVisibleChange,ii=Se.activeValue,oi=Se.onActiveValueChange,Di=Se.activeDescendantId,cr=Se.searchValue,pi=Se.autoClearSearchValue,Yr=Se.onSearch,Li=Se.onSearchSplit,Vi=Se.tokenSeparators,bi=Se.allowClear,xo=Se.prefix,Fn=Se.suffixIcon,mo=Se.clearIcon,Ci=Se.OptionList,jn=Se.animation,Uo=Se.transitionName,ga=Se.dropdownStyle,ca=Se.dropdownClassName,$i=Se.dropdownMatchSelectWidth,yo=Se.dropdownRender,ta=Se.dropdownAlign,na=Se.placement,Ha=Se.builtinPlacements,wa=Se.getPopupContainer,ko=Se.showAction,fo=ko===void 0?[]:ko,Qo=Se.onFocus,ja=Se.onBlur,Lo=Se.onKeyUp,Ui=Se.onKeyDown,so=Se.onMouseDown,ho=pt(Se,os),Pi=Un(Yt),Zi=(De!==void 0?De:Pi)||Yt==="combobox",wo=Rt({},ho);Zs.forEach(function(pl){delete wo[pl]}),Lt==null||Lt.forEach(function(pl){delete wo[pl]});var Ea=Ie.useState(!1),_r=Nn(Ea,2),Qr=_r[0],Ro=_r[1];Ie.useEffect(function(){Ro(In())},[]);var Bo=Ie.useRef(null),Wo=Ie.useRef(null),Za=Ie.useRef(null),Ko=Ie.useRef(null),Oa=Ie.useRef(null),cs=Ie.useRef(!1),Ws=bn(),Qa=Nn(Ws,3),ds=Qa[0],ma=Qa[1],Ks=Qa[2];Ie.useImperativeHandle(Te,function(){var pl,qs;return{focus:(pl=Ko.current)===null||pl===void 0?void 0:pl.focus,blur:(qs=Ko.current)===null||qs===void 0?void 0:qs.blur,scrollTo:function(Wu){var Kl;return(Kl=Oa.current)===null||Kl===void 0?void 0:Kl.scrollTo(Wu)},nativeElement:Bo.current||Wo.current}});var Rs=Ie.useMemo(function(){var pl;if(Yt!=="combobox")return cr;var qs=(pl=Ut[0])===null||pl===void 0?void 0:pl.value;return typeof qs=="string"||typeof qs=="number"?String(qs):""},[cr,Yt,Ut]),tl=Yt==="combobox"&&typeof On=="function"&&On()||null,qi=typeof Tn=="function"&&Tn(),eo=yn(Wo,qi==null||(ze=qi.props)===null||ze===void 0?void 0:ze.ref),po=Ie.useState(!1),da=Nn(po,2),hs=da[0],Bs=da[1];zn(function(){Bs(!0)},[]);var $s=Wt(!1,{defaultValue:Wr,value:br}),xn=Nn($s,2),Da=xn[0],Ja=xn[1],fs=hs?Da:!1,jl=!je&&se;(mn||jl&&fs&&Yt==="combobox")&&(fs=!1);var fl=jl?!1:fs,Qi=Ie.useCallback(function(pl){var qs=pl!==void 0?pl:!fs;mn||(Ja(qs),fs!==qs&&(di==null||di(qs)))},[mn,fs,Ja,di]),jo=Ie.useMemo(function(){return(Vi||[]).some(function(pl){return[`
|
|
|
`,`\r
|
|
|
`].includes(pl)})},[Vi]),io=Ie.useContext(sa)||{},La=io.maxCount,Cs=io.rawValues,Yo=function(qs,qu,Wu){if(!(Pi&&mr(La)&&(Cs==null?void 0:Cs.size)>=La)){var Kl=!0,Ps=qs;oi==null||oi(null);var Ns=zi(qs,Vi,mr(La)?La-Cs.size:void 0),hu=Wu?null:Ns;return Yt!=="combobox"&&hu&&(Ps="",Li==null||Li(hu),Qi(!1),Kl=!1),Yr&&Rs!==Ps&&Yr(Ps,{source:qu?"typing":"effect"}),Kl}},is=function(qs){!qs||!qs.trim()||Yr(qs,{source:"submit"})};Ie.useEffect(function(){!fs&&!Pi&&Yt!=="combobox"&&Yo("",!1,!1)},[fs]),Ie.useEffect(function(){Da&&mn&&Ja(!1),mn&&!cs.current&&ma(!1)},[mn]);var Ga=Xe(),$a=Nn(Ga,2),Ss=$a[0],Ms=$a[1],cu=Ie.useRef(!1),zu=function(qs){var qu=Ss(),Wu=qs.key,Kl=Wu==="Enter";if(Kl&&(Yt!=="combobox"&&qs.preventDefault(),fs||Qi(!0)),Ms(!!Rs),Wu==="Backspace"&&!qu&&Pi&&!Rs&&Ut.length){for(var Ps=gt(Ut),Ns=null,hu=Ps.length-1;hu>=0;hu-=1){var Gl=Ps[hu];if(!Gl.disabled){Ps.splice(hu,1),Ns=Gl;break}}Ns&&jt(Ps,{type:"remove",values:[Ns]})}for(var iu=arguments.length,vu=new Array(iu>1?iu-1:0),ec=1;ec<iu;ec++)vu[ec-1]=arguments[ec];if(fs&&(!Kl||!cu.current)){var Fu;Kl&&(cu.current=!0),(Fu=Oa.current)===null||Fu===void 0||Fu.onKeyDown.apply(Fu,[qs].concat(vu))}Ui==null||Ui.apply(void 0,[qs].concat(vu))},Ts=function(qs){for(var qu=arguments.length,Wu=new Array(qu>1?qu-1:0),Kl=1;Kl<qu;Kl++)Wu[Kl-1]=arguments[Kl];if(fs){var Ps;(Ps=Oa.current)===null||Ps===void 0||Ps.onKeyUp.apply(Ps,[qs].concat(Wu))}qs.key==="Enter"&&(cu.current=!1),Lo==null||Lo.apply(void 0,[qs].concat(Wu))},rs=function(qs){var qu=Ut.filter(function(Wu){return Wu!==qs});jt(qu,{type:"remove",values:[qs]})},As=function(){cu.current=!1},nl=Ie.useRef(!1),Ol=function(){ma(!0),mn||(Qo&&!nl.current&&Qo.apply(void 0,arguments),fo.includes("focus")&&Qi(!0)),nl.current=!0},zl=function(){cs.current=!0,ma(!1,function(){nl.current=!1,cs.current=!1,Qi(!1)}),!mn&&(Rs&&(Yt==="tags"?Yr(Rs,{source:"submit"}):Yt==="multiple"&&Yr("",{source:"blur"})),ja&&ja.apply(void 0,arguments))},Aa=[];Ie.useEffect(function(){return function(){Aa.forEach(function(pl){return clearTimeout(pl)}),Aa.splice(0,Aa.length)}},[]);var ia=function(qs){var qu,Wu=qs.target,Kl=(qu=Za.current)===null||qu===void 0?void 0:qu.getPopupElement();if(Kl&&Kl.contains(Wu)){var Ps=setTimeout(function(){var iu=Aa.indexOf(Ps);if(iu!==-1&&Aa.splice(iu,1),Ks(),!Qr&&!Kl.contains(document.activeElement)){var vu;(vu=Ko.current)===null||vu===void 0||vu.focus()}});Aa.push(Ps)}for(var Ns=arguments.length,hu=new Array(Ns>1?Ns-1:0),Gl=1;Gl<Ns;Gl++)hu[Gl-1]=arguments[Gl];so==null||so.apply(void 0,[qs].concat(hu))},rl=Ie.useState({}),nu=Nn(rl,2),ql=nu[1];function du(){ql({})}var Rl;qi&&(Rl=function(qs){Qi(qs)}),Ji(function(){var pl;return[Bo.current,(pl=Za.current)===null||pl===void 0?void 0:pl.getPopupElement()]},fl,Qi,!!qi);var Vu=Ie.useMemo(function(){return Rt(Rt({},Se),{},{notFoundContent:je,open:fs,triggerOpen:fl,id:Qe,showSearch:Zi,multiple:Pi,toggleOpen:Qi})},[Se,je,fl,fs,Qe,Zi,Pi,Qi]),El=!!Fn||wn,ru;El&&(ru=Ie.createElement(Hr,{className:It()("".concat(mt,"-arrow"),Ct({},"".concat(mt,"-arrow-loading"),wn)),customizeIcon:Fn,customizeIconProps:{loading:wn,searchValue:Rs,open:fs,focused:ds,showSearch:Zi}}));var Hc=function(){var qs;St==null||St(),(qs=Ko.current)===null||qs===void 0||qs.focus(),jt([],{type:"clear",values:Ut}),Yo("",!1,!1)},md=An(mt,Hc,Ut,bi,mo,mn,Rs,Yt),Jd=md.allowClear,Hd=md.clearIcon,$d=Ie.createElement(Ci,{ref:Oa}),qd=It()(mt,Ae,Ct(Ct(Ct(Ct(Ct(Ct(Ct(Ct(Ct(Ct({},"".concat(mt,"-focused"),ds),"".concat(mt,"-multiple"),Pi),"".concat(mt,"-single"),!Pi),"".concat(mt,"-allow-clear"),bi),"".concat(mt,"-show-arrow"),El),"".concat(mt,"-disabled"),mn),"".concat(mt,"-loading"),wn),"".concat(mt,"-open"),fs),"".concat(mt,"-customize-input"),tl),"".concat(mt,"-show-search"),Zi)),ph=Ie.createElement(or,{ref:Za,disabled:mn,prefixCls:mt,visible:fl,popupElement:$d,animation:jn,transitionName:Uo,dropdownStyle:ga,dropdownClassName:ca,direction:ot,dropdownMatchSelectWidth:$i,dropdownRender:yo,dropdownAlign:ta,placement:na,builtinPlacements:Ha,getPopupContainer:wa,empty:se,getTriggerDOMNode:function(qs){return Wo.current||qs},onPopupVisibleChange:Rl,onPopupMouseEnter:du},qi?Ie.cloneElement(qi,{ref:eo}):Ie.createElement(ha,me({},Se,{domRef:Wo,prefixCls:mt,inputElement:tl,ref:Ko,id:Qe,prefix:xo,showSearch:Zi,autoClearSearchValue:pi,mode:Yt,activeDescendantId:Di,tagRender:qe,values:Ut,open:fs,onToggleOpen:Qi,activeValue:ii,searchValue:Rs,onSearch:Yo,onSearchSubmit:is,onRemove:rs,tokenWithEnter:jo,onInputBlur:As}))),Xc;return qi?Xc=ph:Xc=Ie.createElement("div",me({className:qd},wo,{ref:Bo,onMouseDown:ia,onKeyDown:zu,onKeyUp:Ts,onFocus:Ol,onBlur:zl}),Ie.createElement(Va,{visible:ds&&!fs,values:Ut}),ph,ru,Jd&&Hd),Ie.createElement(yi.Provider,{value:Vu},Xc)}),Ds=ws,dl=function(){return null};dl.isSelectOptGroup=!0;var _a=dl,js=function(){return null};js.isSelectOption=!0;var ol=js;function Tl(Se,Te){var ze=Rt({},Se);return Array.isArray(Te)&&Te.forEach(function(Qe){delete ze[Qe]}),ze}var Wa=ae(73299);function vs(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Io=["disabled","title","children","style","className"];function pa(Se){return typeof Se=="string"||typeof Se=="number"}var Ua=function(Te,ze){var Qe=ri(),mt=Qe.prefixCls,Ae=Qe.id,De=Qe.open,qe=Qe.multiple,ot=Qe.mode,Lt=Qe.searchValue,Ut=Qe.toggleOpen,jt=Qe.notFoundContent,se=Qe.onPopupScroll,fe=Ie.useContext(sa),je=fe.maxCount,St=fe.flattenOptions,Yt=fe.onActiveValue,mn=fe.defaultActiveFirstOption,wn=fe.onSelect,On=fe.menuItemSelectedIcon,Tn=fe.rawValues,br=fe.fieldNames,Wr=fe.virtual,di=fe.direction,ii=fe.listHeight,oi=fe.listItemHeight,Di=fe.optionRender,cr="".concat(mt,"-item"),pi=dr(function(){return St},[De,St],function(ko,fo){return fo[0]&&ko[1]!==fo[1]}),Yr=Ie.useRef(null),Li=Ie.useMemo(function(){return qe&&mr(je)&&(Tn==null?void 0:Tn.size)>=je},[qe,je,Tn==null?void 0:Tn.size]),Vi=function(fo){fo.preventDefault()},bi=function(fo){var Qo;(Qo=Yr.current)===null||Qo===void 0||Qo.scrollTo(typeof fo=="number"?{index:fo}:fo)},xo=Ie.useCallback(function(ko){return ot==="combobox"?!1:Tn.has(ko)},[ot,gt(Tn).toString(),Tn.size]),Fn=function(fo){for(var Qo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ja=pi.length,Lo=0;Lo<ja;Lo+=1){var Ui=(fo+Lo*Qo+ja)%ja,so=pi[Ui]||{},ho=so.group,Pi=so.data;if(!ho&&!(Pi!=null&&Pi.disabled)&&(xo(Pi.value)||!Li))return Ui}return-1},mo=Ie.useState(function(){return Fn(0)}),Ci=Nn(mo,2),jn=Ci[0],Uo=Ci[1],ga=function(fo){var Qo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Uo(fo);var ja={source:Qo?"keyboard":"mouse"},Lo=pi[fo];if(!Lo){Yt(null,-1,ja);return}Yt(Lo.value,fo,ja)};(0,Ie.useEffect)(function(){ga(mn!==!1?Fn(0):-1)},[pi.length,Lt]);var ca=Ie.useCallback(function(ko){return ot==="combobox"?String(ko).toLowerCase()===Lt.toLowerCase():Tn.has(ko)},[ot,Lt,gt(Tn).toString(),Tn.size]);(0,Ie.useEffect)(function(){var ko=setTimeout(function(){if(!qe&&De&&Tn.size===1){var Qo=Array.from(Tn)[0],ja=pi.findIndex(function(Lo){var Ui=Lo.data;return Ui.value===Qo});ja!==-1&&(ga(ja),bi(ja))}});if(De){var fo;(fo=Yr.current)===null||fo===void 0||fo.scrollTo(void 0)}return function(){return clearTimeout(ko)}},[De,Lt]);var $i=function(fo){fo!==void 0&&wn(fo,{selected:!Tn.has(fo)}),qe||Ut(!1)};if(Ie.useImperativeHandle(ze,function(){return{onKeyDown:function(fo){var Qo=fo.which,ja=fo.ctrlKey;switch(Qo){case Sn.N:case Sn.P:case Sn.UP:case Sn.DOWN:{var Lo=0;if(Qo===Sn.UP?Lo=-1:Qo===Sn.DOWN?Lo=1:vs()&&ja&&(Qo===Sn.N?Lo=1:Qo===Sn.P&&(Lo=-1)),Lo!==0){var Ui=Fn(jn+Lo,Lo);bi(Ui),ga(Ui,!0)}break}case Sn.TAB:case Sn.ENTER:{var so,ho=pi[jn];ho&&!(ho!=null&&(so=ho.data)!==null&&so!==void 0&&so.disabled)&&!Li?$i(ho.value):$i(void 0),De&&fo.preventDefault();break}case Sn.ESC:Ut(!1),De&&fo.stopPropagation()}},onKeyUp:function(){},scrollTo:function(fo){bi(fo)}}}),pi.length===0)return Ie.createElement("div",{role:"listbox",id:"".concat(Ae,"_list"),className:"".concat(cr,"-empty"),onMouseDown:Vi},jt);var yo=Object.keys(br).map(function(ko){return br[ko]}),ta=function(fo){return fo.label};function na(ko,fo){var Qo=ko.group;return{role:Qo?"presentation":"option",id:"".concat(Ae,"_list_").concat(fo)}}var Ha=function(fo){var Qo=pi[fo];if(!Qo)return null;var ja=Qo.data||{},Lo=ja.value,Ui=Qo.group,so=ao(ja,!0),ho=ta(Qo);return Qo?Ie.createElement("div",me({"aria-label":typeof ho=="string"&&!Ui?ho:null},so,{key:fo},na(Qo,fo),{"aria-selected":ca(Lo)}),Lo):null},wa={role:"listbox",id:"".concat(Ae,"_list")};return Ie.createElement(Ie.Fragment,null,Wr&&Ie.createElement("div",me({},wa,{style:{height:0,width:0,overflow:"hidden"}}),Ha(jn-1),Ha(jn),Ha(jn+1)),Ie.createElement(Wa.Z,{itemKey:"key",ref:Yr,data:pi,height:ii,itemHeight:oi,fullHeight:!1,onMouseDown:Vi,onScroll:se,virtual:Wr,direction:di,innerProps:Wr?null:wa},function(ko,fo){var Qo=ko.group,ja=ko.groupOption,Lo=ko.data,Ui=ko.label,so=ko.value,ho=Lo.key;if(Qo){var Pi,Zi=(Pi=Lo.title)!==null&&Pi!==void 0?Pi:pa(Ui)?Ui.toString():void 0;return Ie.createElement("div",{className:It()(cr,"".concat(cr,"-group"),Lo.className),title:Zi},Ui!==void 0?Ui:ho)}var wo=Lo.disabled,Ea=Lo.title,_r=Lo.children,Qr=Lo.style,Ro=Lo.className,Bo=pt(Lo,Io),Wo=Tl(Bo,yo),Za=xo(so),Ko=wo||!Za&&Li,Oa="".concat(cr,"-option"),cs=It()(cr,Oa,Ro,Ct(Ct(Ct(Ct({},"".concat(Oa,"-grouped"),ja),"".concat(Oa,"-active"),jn===fo&&!Ko),"".concat(Oa,"-disabled"),Ko),"".concat(Oa,"-selected"),Za)),Ws=ta(ko),Qa=!On||typeof On=="function"||Za,ds=typeof Ws=="number"?Ws:Ws||so,ma=pa(ds)?ds.toString():void 0;return Ea!==void 0&&(ma=Ea),Ie.createElement("div",me({},ao(Wo),Wr?{}:na(ko,fo),{"aria-selected":ca(so),className:cs,title:ma,onMouseMove:function(){jn===fo||Ko||ga(fo)},onClick:function(){Ko||$i(so)},style:Qr}),Ie.createElement("div",{className:"".concat(Oa,"-content")},typeof Di=="function"?Di(ko,{index:fo}):ds),Ie.isValidElement(On)||Za,Qa&&Ie.createElement(Hr,{className:"".concat(cr,"-option-state"),customizeIcon:On,customizeIconProps:{value:so,disabled:Ko,isSelected:Za}},Za?"\u2713":null))}))},as=Ie.forwardRef(Ua),Bi=as,Xs=function(Se,Te){var ze=Ie.useRef({values:new Map,options:new Map}),Qe=Ie.useMemo(function(){var Ae=ze.current,De=Ae.values,qe=Ae.options,ot=Se.map(function(jt){if(jt.label===void 0){var se;return Rt(Rt({},jt),{},{label:(se=De.get(jt.value))===null||se===void 0?void 0:se.label})}return jt}),Lt=new Map,Ut=new Map;return ot.forEach(function(jt){Lt.set(jt.value,jt),Ut.set(jt.value,Te.get(jt.value)||qe.get(jt.value))}),ze.current.values=Lt,ze.current.options=Ut,ot},[Se,Te]),mt=Ie.useCallback(function(Ae){return Te.get(Ae)||ze.current.options.get(Ae)},[Te]);return[Qe,mt]};function Ls(Se,Te){return At(Se).join("").toUpperCase().includes(Te)}var Gs=function(Se,Te,ze,Qe,mt){return Ie.useMemo(function(){if(!ze||Qe===!1)return Se;var Ae=Te.options,De=Te.label,qe=Te.value,ot=[],Lt=typeof Qe=="function",Ut=ze.toUpperCase(),jt=Lt?Qe:function(fe,je){return mt?Ls(je[mt],Ut):je[Ae]?Ls(je[De!=="children"?De:"label"],Ut):Ls(je[qe],Ut)},se=Lt?function(fe){return Xi(fe)}:function(fe){return fe};return Se.forEach(function(fe){if(fe[Ae]){var je=jt(ze,se(fe));if(je)ot.push(fe);else{var St=fe[Ae].filter(function(Yt){return jt(ze,se(Yt))});St.length&&ot.push(Rt(Rt({},fe),{},Ct({},Ae,St)))}return}jt(ze,se(fe))&&ot.push(fe)}),ot},[Se,Qe,mt,ze,Te])},vl=0,Ml=Bn();function ci(){var Se;return Ml?(Se=vl,vl+=1):Se="TEST_OR_SSR",Se}function zs(Se){var Te=Ie.useState(),ze=Nn(Te,2),Qe=ze[0],mt=ze[1];return Ie.useEffect(function(){mt("rc_select_".concat(ci()))},[]),Se||Qe}function Vs(Se){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ze=[];return Ie.Children.forEach(Se,function(Qe){Qe==null&&!Te.keepEmpty||(Array.isArray(Qe)?ze=ze.concat(Vs(Qe)):(0,Kn.isFragment)(Qe)&&Qe.props?ze=ze.concat(Vs(Qe.props.children,Te)):ze.push(Qe))}),ze}var Ul=["children","value"],Qs=["children"];function Dl(Se){var Te=Se,ze=Te.key,Qe=Te.props,mt=Qe.children,Ae=Qe.value,De=pt(Qe,Ul);return Rt({key:ze,value:Ae!==void 0?Ae:ze,children:mt},De)}function la(Se){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Vs(Se).map(function(ze,Qe){if(!Ie.isValidElement(ze)||!ze.type)return null;var mt=ze,Ae=mt.type.isSelectOptGroup,De=mt.key,qe=mt.props,ot=qe.children,Lt=pt(qe,Qs);return Te||!Ae?Dl(ze):Rt(Rt({key:"__RC_SELECT_GRP__".concat(De===null?Qe:De,"__"),label:De},Lt),{},{options:la(ot)})}).filter(function(ze){return ze})}var gu=function(Te,ze,Qe,mt,Ae){return Ie.useMemo(function(){var De=Te,qe=!Te;qe&&(De=la(ze));var ot=new Map,Lt=new Map,Ut=function(fe,je,St){St&&typeof St=="string"&&fe.set(je[St],je)},jt=function se(fe){for(var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,St=0;St<fe.length;St+=1){var Yt=fe[St];!Yt[Qe.options]||je?(ot.set(Yt[Qe.value],Yt),Ut(Lt,Yt,Qe.label),Ut(Lt,Yt,mt),Ut(Lt,Yt,Ae)):se(Yt[Qe.options],!0)}};return jt(De),{options:De,valueOptions:ot,labelOptions:Lt}},[Te,ze,Qe,mt,Ae])},Pl=gu;function Is(Se){var Te=Ie.useRef();Te.current=Se;var ze=Ie.useCallback(function(){return Te.current.apply(Te,arguments)},[]);return ze}function eu(Se){var Te=Se.mode,ze=Se.options,Qe=Se.children,mt=Se.backfill,Ae=Se.allowClear,De=Se.placeholder,qe=Se.getInputElement,ot=Se.showSearch,Lt=Se.onSearch,Ut=Se.defaultOpen,jt=Se.autoFocus,se=Se.labelInValue,fe=Se.value,je=Se.inputValue,St=Se.optionLabelProp,Yt=isMultiple(Te),mn=ot!==void 0?ot:Yt||Te==="combobox",wn=ze||convertChildrenToData(Qe);if(warning(Te!=="tags"||wn.every(function(Wr){return!Wr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Te==="tags"||Te==="combobox"){var On=wn.some(function(Wr){return Wr.options?Wr.options.some(function(di){return typeof("value"in di?di.value:di.key)=="number"}):typeof("value"in Wr?Wr.value:Wr.key)=="number"});warning(!On,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Te!=="combobox"||!St,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Te==="combobox"||!mt,"`backfill` only works with `combobox` mode."),warning(Te==="combobox"||!qe,"`getInputElement` only work with `combobox` mode."),noteOnce(Te!=="combobox"||!qe||!Ae||!De,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Lt&&!mn&&Te!=="combobox"&&Te!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Ut||jt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),fe!=null){var Tn=toArray(fe);warning(!se||Tn.every(function(Wr){return _typeof(Wr)==="object"&&("key"in Wr||"value"in Wr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Yt||Array.isArray(fe),"`value` should be array when `mode` is `multiple` or `tags`")}if(Qe){var br=null;toNodeArray(Qe).some(function(Wr){if(!React.isValidElement(Wr)||!Wr.type)return!1;var di=Wr,ii=di.type;if(ii.isSelectOption)return!1;if(ii.isSelectOptGroup){var oi=toNodeArray(Wr.props.children).every(function(Di){return!React.isValidElement(Di)||!Wr.type||Di.type.isSelectOption?!0:(br=Di.type,!1)});return!oi}return br=ii,!0}),br&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(br.displayName||br.name||br,"`.")),warning(je===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Hu(Se,Te){if(Se){var ze=function Qe(mt){for(var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,De=0;De<mt.length;De++){var qe=mt[De];if(qe[Te==null?void 0:Te.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Ae&&Array.isArray(qe[Te==null?void 0:Te.options])&&Qe(qe[Te==null?void 0:Te.options],!0))break}};ze(Se)}}var cc=null,Il=["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"],al=["inputValue"];function Dc(Se){return!Se||ft(Se)!=="object"}var Fc=Ie.forwardRef(function(Se,Te){var ze=Se.id,Qe=Se.mode,mt=Se.prefixCls,Ae=mt===void 0?"rc-select":mt,De=Se.backfill,qe=Se.fieldNames,ot=Se.inputValue,Lt=Se.searchValue,Ut=Se.onSearch,jt=Se.autoClearSearchValue,se=jt===void 0?!0:jt,fe=Se.onSelect,je=Se.onDeselect,St=Se.dropdownMatchSelectWidth,Yt=St===void 0?!0:St,mn=Se.filterOption,wn=Se.filterSort,On=Se.optionFilterProp,Tn=Se.optionLabelProp,br=Se.options,Wr=Se.optionRender,di=Se.children,ii=Se.defaultActiveFirstOption,oi=Se.menuItemSelectedIcon,Di=Se.virtual,cr=Se.direction,pi=Se.listHeight,Yr=pi===void 0?200:pi,Li=Se.listItemHeight,Vi=Li===void 0?20:Li,bi=Se.labelRender,xo=Se.value,Fn=Se.defaultValue,mo=Se.labelInValue,Ci=Se.onChange,jn=Se.maxCount,Uo=pt(Se,Il),ga=zs(ze),ca=Un(Qe),$i=!!(!br&&di),yo=Ie.useMemo(function(){return mn===void 0&&Qe==="combobox"?!1:mn},[mn,Qe]),ta=Ie.useMemo(function(){return Vr(qe,$i)},[JSON.stringify(qe),$i]),na=Wt("",{value:Lt!==void 0?Lt:ot,postState:function(jo){return jo||""}}),Ha=Nn(na,2),wa=Ha[0],ko=Ha[1],fo=Pl(br,di,ta,On,Tn),Qo=fo.valueOptions,ja=fo.labelOptions,Lo=fo.options,Ui=Ie.useCallback(function(Qi){var jo=At(Qi);return jo.map(function(io){var La,Cs,Yo,is,Ga;if(Dc(io))La=io;else{var $a;Yo=io.key,Cs=io.label,La=($a=io.value)!==null&&$a!==void 0?$a:Yo}var Ss=Qo.get(La);if(Ss){var Ms;if(Cs===void 0&&(Cs=Ss==null?void 0:Ss[Tn||ta.label]),Yo===void 0&&(Yo=(Ms=Ss==null?void 0:Ss.key)!==null&&Ms!==void 0?Ms:La),is=Ss==null?void 0:Ss.disabled,Ga=Ss==null?void 0:Ss.title,0)var cu}return{label:Cs,value:La,key:Yo,disabled:is,title:Ga}})},[ta,Tn,Qo]),so=Wt(Fn,{value:xo}),ho=Nn(so,2),Pi=ho[0],Zi=ho[1],wo=Ie.useMemo(function(){var Qi,jo=ca&&Pi===null?[]:Pi,io=Ui(jo);return Qe==="combobox"&&En((Qi=io[0])===null||Qi===void 0?void 0:Qi.value)?[]:io},[Pi,Ui,Qe,ca]),Ea=Xs(wo,Qo),_r=Nn(Ea,2),Qr=_r[0],Ro=_r[1],Bo=Ie.useMemo(function(){if(!Qe&&Qr.length===1){var Qi=Qr[0];if(Qi.value===null&&(Qi.label===null||Qi.label===void 0))return[]}return Qr.map(function(jo){var io;return Rt(Rt({},jo),{},{label:(io=typeof bi=="function"?bi(jo):jo.label)!==null&&io!==void 0?io:jo.value})})},[Qe,Qr,bi]),Wo=Ie.useMemo(function(){return new Set(Qr.map(function(Qi){return Qi.value}))},[Qr]);Ie.useEffect(function(){if(Qe==="combobox"){var Qi,jo=(Qi=Qr[0])===null||Qi===void 0?void 0:Qi.value;ko(ln(jo)?String(jo):"")}},[Qr]);var Za=Is(function(Qi,jo){var io=jo!=null?jo:Qi;return Ct(Ct({},ta.value,Qi),ta.label,io)}),Ko=Ie.useMemo(function(){if(Qe!=="tags")return Lo;var Qi=gt(Lo),jo=function(La){return Qo.has(La)};return gt(Qr).sort(function(io,La){return io.value<La.value?-1:1}).forEach(function(io){var La=io.value;jo(La)||Qi.push(Za(La,io.label))}),Qi},[Za,Lo,Qo,Qr,Qe]),Oa=Gs(Ko,ta,wa,yo,On),cs=Ie.useMemo(function(){return Qe!=="tags"||!wa||Oa.some(function(Qi){return Qi[On||"value"]===wa})||Oa.some(function(Qi){return Qi[ta.value]===wa})?Oa:[Za(wa)].concat(gt(Oa))},[Za,On,Qe,Oa,wa,ta]),Ws=function Qi(jo){var io=gt(jo).sort(function(La,Cs){return wn(La,Cs,{searchValue:wa})});return io.map(function(La){return Array.isArray(La.options)?Rt(Rt({},La),{},{options:La.options.length>0?Qi(La.options):La.options}):La})},Qa=Ie.useMemo(function(){return wn?Ws(cs):cs},[cs,wn,wa]),ds=Ie.useMemo(function(){return no(Qa,{fieldNames:ta,childrenAsData:$i})},[Qa,ta,$i]),ma=function(jo){var io=Ui(jo);if(Zi(io),Ci&&(io.length!==Qr.length||io.some(function(Yo,is){var Ga;return((Ga=Qr[is])===null||Ga===void 0?void 0:Ga.value)!==(Yo==null?void 0:Yo.value)}))){var La=mo?io:io.map(function(Yo){return Yo.value}),Cs=io.map(function(Yo){return Xi(Ro(Yo.value))});Ci(ca?La:La[0],ca?Cs:Cs[0])}},Ks=Ie.useState(null),Rs=Nn(Ks,2),tl=Rs[0],qi=Rs[1],eo=Ie.useState(0),po=Nn(eo,2),da=po[0],hs=po[1],Bs=ii!==void 0?ii:Qe!=="combobox",$s=Ie.useCallback(function(Qi,jo){var io=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},La=io.source,Cs=La===void 0?"keyboard":La;hs(jo),De&&Qe==="combobox"&&Qi!==null&&Cs==="keyboard"&&qi(String(Qi))},[De,Qe]),xn=function(jo,io,La){var Cs=function(){var rs,As=Ro(jo);return[mo?{label:As==null?void 0:As[ta.label],value:jo,key:(rs=As==null?void 0:As.key)!==null&&rs!==void 0?rs:jo}:jo,Xi(As)]};if(io&&fe){var Yo=Cs(),is=Nn(Yo,2),Ga=is[0],$a=is[1];fe(Ga,$a)}else if(!io&&je&&La!=="clear"){var Ss=Cs(),Ms=Nn(Ss,2),cu=Ms[0],zu=Ms[1];je(cu,zu)}},Da=Is(function(Qi,jo){var io,La=ca?jo.selected:!0;La?io=ca?[].concat(gt(Qr),[Qi]):[Qi]:io=Qr.filter(function(Cs){return Cs.value!==Qi}),ma(io),xn(Qi,La),Qe==="combobox"?qi(""):(!Un||se)&&(ko(""),qi(""))}),Ja=function(jo,io){ma(jo);var La=io.type,Cs=io.values;(La==="remove"||La==="clear")&&Cs.forEach(function(Yo){xn(Yo.value,!1,La)})},fs=function(jo,io){if(ko(jo),qi(null),io.source==="submit"){var La=(jo||"").trim();if(La){var Cs=Array.from(new Set([].concat(gt(Wo),[La])));ma(Cs),xn(La,!0),ko("")}return}io.source!=="blur"&&(Qe==="combobox"&&ma(jo),Ut==null||Ut(jo))},jl=function(jo){var io=jo;Qe!=="tags"&&(io=jo.map(function(Cs){var Yo=ja.get(Cs);return Yo==null?void 0:Yo.value}).filter(function(Cs){return Cs!==void 0}));var La=Array.from(new Set([].concat(gt(Wo),gt(io))));ma(La),La.forEach(function(Cs){xn(Cs,!0)})},fl=Ie.useMemo(function(){var Qi=Di!==!1&&Yt!==!1;return Rt(Rt({},fo),{},{flattenOptions:ds,onActiveValue:$s,defaultActiveFirstOption:Bs,onSelect:Da,menuItemSelectedIcon:oi,rawValues:Wo,fieldNames:ta,virtual:Qi,direction:cr,listHeight:Yr,listItemHeight:Vi,childrenAsData:$i,maxCount:jn,optionRender:Wr})},[jn,fo,ds,$s,Bs,Da,oi,Wo,ta,Di,Yt,cr,Yr,Vi,$i,Wr]);return Ie.createElement(sa.Provider,{value:fl},Ie.createElement(Ds,me({},Uo,{id:ga,prefixCls:Ae,ref:Te,omitDomProps:al,mode:Qe,displayValues:Bo,onDisplayValuesChange:Ja,direction:cr,searchValue:wa,onSearch:fs,autoClearSearchValue:se,onSearchSplit:jl,dropdownMatchSelectWidth:Yt,OptionList:Bi,emptyOptions:!ds.length,activeValue:tl,activeDescendantId:"".concat(ga,"_list_").concat(da)})))}),rc=Fc;rc.Option=ol,rc.OptGroup=_a;var Bc=null,Iu=null,Al=ae(17341);function Fl(Se){if(Array.isArray(Se))return Se}function Ju(Se,Te){var ze=Se==null?null:typeof Symbol!="undefined"&&Se[Symbol.iterator]||Se["@@iterator"];if(ze!=null){var Qe,mt,Ae,De,qe=[],ot=!0,Lt=!1;try{if(Ae=(ze=ze.call(Se)).next,Te===0){if(Object(ze)!==ze)return;ot=!1}else for(;!(ot=(Qe=Ae.call(ze)).done)&&(qe.push(Qe.value),qe.length!==Te);ot=!0);}catch(Ut){Lt=!0,mt=Ut}finally{try{if(!ot&&ze.return!=null&&(De=ze.return(),Object(De)!==De))return}finally{if(Lt)throw mt}}return qe}}function _c(Se,Te){(Te==null||Te>Se.length)&&(Te=Se.length);for(var ze=0,Qe=new Array(Te);ze<Te;ze++)Qe[ze]=Se[ze];return Qe}function $u(Se,Te){if(Se){if(typeof Se=="string")return _c(Se,Te);var ze=Object.prototype.toString.call(Se).slice(8,-1);if(ze==="Object"&&Se.constructor&&(ze=Se.constructor.name),ze==="Map"||ze==="Set")return Array.from(Se);if(ze==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ze))return _c(Se,Te)}}function od(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yl(Se,Te){return Fl(Se)||Ju(Se,Te)||$u(Se,Te)||od()}function fd(Se){var Te=Ie.useRef();Te.current=Se;var ze=Ie.useCallback(function(){for(var Qe,mt=arguments.length,Ae=new Array(mt),De=0;De<mt;De++)Ae[De]=arguments[De];return(Qe=Te.current)===null||Qe===void 0?void 0:Qe.call.apply(Qe,[Te].concat(Ae))},[]);return ze}function pd(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Uc=pd()?Ie.useLayoutEffect:Ie.useEffect,ic=function(Te,ze){var Qe=Ie.useRef(!0);Uc(function(){return Te(Qe.current)},ze),Uc(function(){return Qe.current=!1,function(){Qe.current=!0}},[])},lu=function(Te,ze){ic(function(Qe){if(!Qe)return Te()},ze)},mu=null;function kl(Se){var Te=Ie.useRef(!1),ze=Ie.useState(Se),Qe=yl(ze,2),mt=Qe[0],Ae=Qe[1];Ie.useEffect(function(){return Te.current=!1,function(){Te.current=!0}},[]);function De(qe,ot){ot&&Te.current||Ae(qe)}return[mt,De]}function Hl(Se){return Se!==void 0}function Yc(Se,Te){var ze=Te||{},Qe=ze.defaultValue,mt=ze.value,Ae=ze.onChange,De=ze.postState,qe=kl(function(){return Hl(mt)?mt:Hl(Qe)?typeof Qe=="function"?Qe():Qe:typeof Se=="function"?Se():Se}),ot=yl(qe,2),Lt=ot[0],Ut=ot[1],jt=mt!==void 0?mt:Lt,se=De?De(jt):jt,fe=fd(Ae),je=kl([jt]),St=yl(je,2),Yt=St[0],mn=St[1];lu(function(){var On=Yt[0];Lt!==On&&fe(Lt,On)},[Yt]),lu(function(){Hl(mt)||Ut(mt)},[mt]);var wn=fd(function(On,Tn){Ut(On,Tn),mn([jt],Tn)});return[se,wn]}var Wl={},hl=[],ad=function(Te){hl.push(Te)};function oc(Se,Te){if(0)var ze}function ju(Se,Te){if(0)var ze}function No(){Wl={}}function xc(Se,Te,ze){!Te&&!Wl[ze]&&(Se(!1,ze),Wl[ze]=!0)}function gn(Se,Te){xc(oc,Se,Te)}function Mr(Se,Te){xc(ju,Se,Te)}gn.preMessage=ad,gn.resetWarned=No,gn.noteOnce=Mr;var Cu=gn,dc=function(Se){var Te=Ie.useRef({valueLabels:new Map});return Ie.useMemo(function(){var ze=Te.current.valueLabels,Qe=new Map,mt=Se.map(function(Ae){var De=Ae.value,qe=Ae.label,ot=qe!=null?qe:ze.get(De);return Qe.set(De,ot),_t(_t({},Ae),{},{label:ot})});return Te.current.valueLabels=Qe,[mt]},[Se])},hc=function(Te,ze,Qe,mt){return Ie.useMemo(function(){var Ae=function(fe){return fe.map(function(je){var St=je.value;return St})},De=Ae(Te),qe=Ae(ze),ot=De.filter(function(se){return!mt[se]}),Lt=De,Ut=qe;if(Qe){var jt=(0,Al.S)(De,!0,mt);Lt=jt.checkedKeys,Ut=jt.halfCheckedKeys}return[Array.from(new Set([].concat(_e(ot),_e(Lt)))),Ut]},[Te,ze,Qe,mt])},yu=hc,Tu=ae(1089),fc=function(Se,Te){return Ie.useMemo(function(){var ze=(0,Tu.I8)(Se,{fieldNames:Te,initWrapper:function(mt){return _t(_t({},mt),{},{valueEntities:new Map})},processEntity:function(mt,Ae){var De=mt.node[Te.value];if(0)var qe;Ae.valueEntities.set(De,mt)}});return ze},[Se,Te])};function Du(Se){"@babel/helpers - typeof";return Du=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Te){return typeof Te}:function(Te){return Te&&typeof Symbol=="function"&&Te.constructor===Symbol&&Te!==Symbol.prototype?"symbol":typeof Te},Du(Se)}var ml=Symbol.for("react.element"),ua=Symbol.for("react.transitional.element"),Ql=Symbol.for("react.fragment");function Jl(Se){return Se&&Du(Se)==="object"&&(Se.$$typeof===ml||Se.$$typeof===ua)&&Se.type===Ql}function el(Se){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ze=[];return Ie.Children.forEach(Se,function(Qe){Qe==null&&!Te.keepEmpty||(Array.isArray(Qe)?ze=ze.concat(el(Qe)):Jl(Qe)&&Qe.props?ze=ze.concat(el(Qe.props.children,Te)):ze.push(Qe))}),ze}var ns=function(){return null},Nl=ns,Au=["children","value"];function ll(Se){return el(Se).map(function(Te){if(!Ie.isValidElement(Te)||!Te.type)return null;var ze=Te,Qe=ze.key,mt=ze.props,Ae=mt.children,De=mt.value,qe=pe(mt,Au),ot=_t({key:Qe,value:De},qe),Lt=ll(Ae);return Lt.length&&(ot.children=Lt),ot}).filter(function(Te){return Te})}function uu(Se){if(!Se)return Se;var Te=_t({},Se);return"props"in Te||Object.defineProperty(Te,"props",{get:function(){return Cu(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Te}}),Te}function $l(Se,Te,ze,Qe,mt,Ae){var De=null,qe=null;function ot(){function Lt(Ut){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Ut.map(function(fe,je){var St="".concat(jt,"-").concat(je),Yt=fe[Ae.value],mn=ze.includes(Yt),wn=Lt(fe[Ae.children]||[],St,mn),On=Ie.createElement(Nl,fe,wn.map(function(br){return br.node}));if(Te===Yt&&(De=On),mn){var Tn={pos:St,node:On,children:wn};return se||qe.push(Tn),Tn}return null}).filter(function(fe){return fe})}qe||(qe=[],Lt(Qe),qe.sort(function(Ut,jt){var se=Ut.node.props.value,fe=jt.node.props.value,je=ze.indexOf(se),St=ze.indexOf(fe);return je-St}))}Object.defineProperty(Se,"triggerNode",{get:function(){return Cu(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),ot(),De}}),Object.defineProperty(Se,"allCheckedNodes",{get:function(){return Cu(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),ot(),mt?qe:qe.map(function(Ut){var jt=Ut.node;return jt})}})}var ac=function(Te,ze,Qe){var mt=Qe.fieldNames,Ae=Qe.treeNodeFilterProp,De=Qe.filterTreeNode,qe=mt.children;return Ie.useMemo(function(){if(!ze||De===!1)return Te;var ot=typeof De=="function"?De:function(Ut,jt){return String(jt[Ae]).toUpperCase().includes(ze.toUpperCase())},Lt=function Ut(jt){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return jt.reduce(function(fe,je){var St=je[qe],Yt=se||ot(ze,uu(je)),mn=Ut(St||[],Yt);return(Yt||mn.length)&&fe.push(_t(_t({},je),{},Et({isLeaf:void 0},qe,mn))),fe},[])};return Lt(Te)},[Te,ze,qe,Ae,De])},ks=ac;function tu(Se){var Te=Ie.useRef();Te.current=Se;var ze=Ie.useCallback(function(){return Te.current.apply(Te,arguments)},[]);return ze}function ys(Se,Te){var ze=Te.id,Qe=Te.pId,mt=Te.rootPId,Ae=new Map,De=[];return Se.forEach(function(qe){var ot=qe[ze],Lt=_t(_t({},qe),{},{key:qe.key||ot});Ae.set(ot,Lt)}),Ae.forEach(function(qe){var ot=qe[Qe],Lt=Ae.get(ot);Lt?(Lt.children=Lt.children||[],Lt.children.push(qe)):(ot===mt||mt===null)&&De.push(qe)}),De}function Js(Se,Te,ze){return Ie.useMemo(function(){if(Se){if(ze){var Qe=_t({id:"id",pId:"pId",rootPId:null},ut(ze)==="object"?ze:{});return ys(Se,Qe)}return Se}return ll(Te)},[Te,ze,Se])}var ul=Ie.createContext(null),Sl=ul;function Fs(Se,Te){var ze=typeof Symbol!="undefined"&&Se[Symbol.iterator]||Se["@@iterator"];if(!ze){if(Array.isArray(Se)||(ze=tt(Se))||Te&&Se&&typeof Se.length=="number"){ze&&(Se=ze);var Qe=0,mt=function(){};return{s:mt,n:function(){return Qe>=Se.length?{done:!0}:{done:!1,value:Se[Qe++]}},e:function(Lt){throw Lt},f:mt}}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 Ae,De=!0,qe=!1;return{s:function(){ze=ze.call(Se)},n:function(){var Lt=ze.next();return De=Lt.done,Lt},e:function(Lt){qe=!0,Ae=Lt},f:function(){try{De||ze.return==null||ze.return()}finally{if(qe)throw Ae}}}}var wc=ae(70593),Ti={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Te){var ze=Te.keyCode;if(Te.altKey&&!Te.ctrlKey||Te.metaKey||ze>=Ti.F1&&ze<=Ti.F12)return!1;switch(ze){case Ti.ALT:case Ti.CAPS_LOCK:case Ti.CONTEXT_MENU:case Ti.CTRL:case Ti.DOWN:case Ti.END:case Ti.ESC:case Ti.HOME:case Ti.INSERT:case Ti.LEFT:case Ti.MAC_FF_META:case Ti.META:case Ti.NUMLOCK:case Ti.NUM_CENTER:case Ti.PAGE_DOWN:case Ti.PAGE_UP:case Ti.PAUSE:case Ti.PRINT_SCREEN:case Ti.RIGHT:case Ti.SHIFT:case Ti.UP:case Ti.WIN_KEY:case Ti.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Te){if(Te>=Ti.ZERO&&Te<=Ti.NINE||Te>=Ti.NUM_ZERO&&Te<=Ti.NUM_MULTIPLY||Te>=Ti.A&&Te<=Ti.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Te===0)return!0;switch(Te){case Ti.SPACE:case Ti.QUESTION_MARK:case Ti.NUM_PLUS:case Ti.NUM_MINUS:case Ti.NUM_PERIOD:case Ti.NUM_DIVISION:case Ti.SEMICOLON:case Ti.DASH:case Ti.EQUALS:case Ti.COMMA:case Ti.PERIOD:case Ti.SLASH:case Ti.APOSTROPHE:case Ti.SINGLE_QUOTE:case Ti.OPEN_SQUARE_BRACKET:case Ti.BACKSLASH:case Ti.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Cc=Ti;function ms(Se,Te,ze){var Qe=Ie.useRef({});return(!("value"in Qe.current)||ze(Qe.current.condition,Te))&&(Qe.current.value=Se(),Qe.current.condition=Te),Qe.current.value}var Id=Ie.createContext(null),sc=Id,Zc=function(Te){return Array.isArray(Te)?Te:Te!==void 0?[Te]:[]},gd=function(Te){var ze=Te||{},Qe=ze.label,mt=ze.value,Ae=ze.children;return{_title:Qe?[Qe]:["title","label"],value:mt||"value",key:mt||"value",children:Ae||"children"}},Gu=function(Te){return!Te||Te.disabled||Te.disableCheckbox||Te.checkable===!1},pc=function(Te,ze){var Qe=[],mt=function Ae(De){De.forEach(function(qe){var ot=qe[ze.children];ot&&(Qe.push(qe[ze.value]),Ae(ot))})};return mt(Te),Qe},gc=function(Te){return Te==null},Do=ae(66133),Pu=Number(Ie.version.split(".")[0]),kt=function(Te,ze){typeof Te=="function"?Te(ze):_typeof(Te)==="object"&&Te&&"current"in Te&&(Te.current=ze)},en=function(){for(var Te=arguments.length,ze=new Array(Te),Qe=0;Qe<Te;Qe++)ze[Qe]=arguments[Qe];var mt=ze.filter(Boolean);return mt.length<=1?mt[0]:function(Ae){ze.forEach(function(De){kt(De,Ae)})}},cn=function(){for(var Te=arguments.length,ze=new Array(Te),Qe=0;Qe<Te;Qe++)ze[Qe]=arguments[Qe];return useMemo(function(){return en.apply(void 0,ze)},ze,function(mt,Ae){return mt.length!==Ae.length||mt.every(function(De,qe){return De!==Ae[qe]})})},hn=function(Te){var ze,Qe;if(!Te)return!1;if(Dn(Te)&&Pu>=19)return!0;var mt=isMemo(Te)?Te.type.type:Te.type;return!(typeof mt=="function"&&!((ze=mt.prototype)!==null&&ze!==void 0&&ze.render)&&mt.$$typeof!==ForwardRef||typeof Te=="function"&&!((Qe=Te.prototype)!==null&&Qe!==void 0&&Qe.render)&&Te.$$typeof!==ForwardRef)};function Dn(Se){return isValidElement(Se)&&!isFragment(Se)}var qn=function(Te){return Dn(Te)&&hn(Te)},lr=function(Te){if(Te&&Dn(Te)){var ze=Te;return ze.props.propertyIsEnumerable("ref")?ze.props.ref:ze.ref}return null};function Pr(Se,Te,ze,Qe){if(!Te.length)return ze;var mt=_toArray(Te),Ae=mt[0],De=mt.slice(1),qe;return!Se&&typeof Ae=="number"?qe=[]:Array.isArray(Se)?qe=_toConsumableArray(Se):qe=_objectSpread({},Se),Qe&&ze===void 0&&De.length===1?delete qe[Ae][De[0]]:qe[Ae]=Pr(qe[Ae],De,ze,Qe),qe}function Kr(Se,Te,ze){var Qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Te.length&&Qe&&ze===void 0&&!get(Se,Te.slice(0,-1))?Se:Pr(Se,Te,ze,Qe)}function Br(Se){return _typeof(Se)==="object"&&Se!==null&&Object.getPrototypeOf(Se)===Object.prototype}function Si(Se){return Array.isArray(Se)?[]:{}}var Gr=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function li(){for(var Se=arguments.length,Te=new Array(Se),ze=0;ze<Se;ze++)Te[ze]=arguments[ze];var Qe=Si(Te[0]);return Te.forEach(function(mt){function Ae(De,qe){var ot=new Set(qe),Lt=get(mt,De),Ut=Array.isArray(Lt);if(Ut||Br(Lt)){if(!ot.has(Lt)){ot.add(Lt);var jt=get(Qe,De);Ut?Qe=Kr(Qe,De,[]):(!jt||_typeof(jt)!=="object")&&(Qe=Kr(Qe,De,Si(Lt))),Gr(Lt).forEach(function(se){Ae([].concat(_toConsumableArray(De),[se]),ot)})}}else Qe=Kr(Qe,De,Lt)}Ae([])}),Qe}var $r={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ii=function(Te,ze){var Qe=ri(),mt=Qe.prefixCls,Ae=Qe.multiple,De=Qe.searchValue,qe=Qe.toggleOpen,ot=Qe.open,Lt=Qe.notFoundContent,Ut=Ie.useContext(sc),jt=Ut.virtual,se=Ut.listHeight,fe=Ut.listItemHeight,je=Ut.listItemScrollOffset,St=Ut.treeData,Yt=Ut.fieldNames,mn=Ut.onSelect,wn=Ut.dropdownMatchSelectWidth,On=Ut.treeExpandAction,Tn=Ut.treeTitleRender,br=Ut.onPopupScroll,Wr=Ut.leftMaxCount,di=Ut.leafCountOnly,ii=Ut.valueEntities,oi=Ie.useContext(Sl),Di=oi.checkable,cr=oi.checkedKeys,pi=oi.halfCheckedKeys,Yr=oi.treeExpandedKeys,Li=oi.treeDefaultExpandAll,Vi=oi.treeDefaultExpandedKeys,bi=oi.onTreeExpand,xo=oi.treeIcon,Fn=oi.showTreeIcon,mo=oi.switcherIcon,Ci=oi.treeLine,jn=oi.treeNodeFilterProp,Uo=oi.loadData,ga=oi.treeLoadedKeys,ca=oi.treeMotion,$i=oi.onTreeLoad,yo=oi.keyEntities,ta=Ie.useRef(),na=ms(function(){return St},[ot,St],function(qi,eo){return eo[0]&&qi[1]!==eo[1]}),Ha=Ie.useMemo(function(){return Di?{checked:cr,halfChecked:pi}:null},[Di,cr,pi]);Ie.useEffect(function(){if(ot&&!Ae&&cr.length){var qi;(qi=ta.current)===null||qi===void 0||qi.scrollTo({key:cr[0]})}},[ot]);var wa=function(eo){eo.preventDefault()},ko=function(eo,po){var da=po.node;Di&&Gu(da)||(mn(da.key,{selected:!cr.includes(da.key)}),Ae||qe(!1))},fo=Ie.useState(Vi),Qo=de(fo,2),ja=Qo[0],Lo=Qo[1],Ui=Ie.useState(null),so=de(Ui,2),ho=so[0],Pi=so[1],Zi=Ie.useMemo(function(){return Yr?_e(Yr):De?ho:ja},[ja,ho,Yr,De]),wo=function(eo){Lo(eo),Pi(eo),bi&&bi(eo)},Ea=String(De).toLowerCase(),_r=function(eo){return Ea?String(eo[jn]).toLowerCase().includes(Ea):!1};Ie.useEffect(function(){De&&Pi(pc(St,Yt))},[De]);var Qr=Ie.useState(function(){return new Map}),Ro=de(Qr,2),Bo=Ro[0],Wo=Ro[1];Ie.useEffect(function(){Wr&&Wo(new Map)},[Wr]);function Za(qi){var eo=qi[Yt.value];if(!Bo.has(eo)){var po=ii.get(eo),da=(po.children||[]).length===0;if(da)Bo.set(eo,!1);else{var hs=po.children.filter(function($s){return!$s.node.disabled&&!$s.node.disableCheckbox&&!cr.includes($s.node[Yt.value])}),Bs=hs.length;Bo.set(eo,Bs>Wr)}}return Bo.get(eo)}var Ko=fd(function(qi){var eo=qi[Yt.value];return cr.includes(eo)||Wr===null?!1:Wr<=0?!0:di&&Wr?Za(qi):!1}),Oa=function qi(eo){var po=Fs(eo),da;try{for(po.s();!(da=po.n()).done;){var hs=da.value;if(!(hs.disabled||hs.selectable===!1)){if(De){if(_r(hs))return hs}else return hs;if(hs[Yt.children]){var Bs=qi(hs[Yt.children]);if(Bs)return Bs}}}}catch($s){po.e($s)}finally{po.f()}return null},cs=Ie.useState(null),Ws=de(cs,2),Qa=Ws[0],ds=Ws[1],ma=yo[Qa];Ie.useEffect(function(){if(ot){var qi=null,eo=function(){var da=Oa(na);return da?da[Yt.value]:null};!Ae&&cr.length&&!De?qi=cr[0]:qi=eo(),ds(qi)}},[ot,De]),Ie.useImperativeHandle(ze,function(){var qi;return{scrollTo:(qi=ta.current)===null||qi===void 0?void 0:qi.scrollTo,onKeyDown:function(po){var da,hs=po.which;switch(hs){case Cc.UP:case Cc.DOWN:case Cc.LEFT:case Cc.RIGHT:(da=ta.current)===null||da===void 0||da.onKeyDown(po);break;case Cc.ENTER:{if(ma){var Bs=Ko(ma.node),$s=(ma==null?void 0:ma.node)||{},xn=$s.selectable,Da=$s.value,Ja=$s.disabled;xn!==!1&&!Ja&&!Bs&&ko(null,{node:{key:Qa},selected:!cr.includes(Da)})}break}case Cc.ESC:qe(!1)}},onKeyUp:function(){}}});var Ks=ms(function(){return!De},[De,Yr||ja],function(qi,eo){var po=de(qi,1),da=po[0],hs=de(eo,2),Bs=hs[0],$s=hs[1];return da!==Bs&&!!(Bs||$s)}),Rs=Ks?Uo:null;if(na.length===0)return Ie.createElement("div",{role:"listbox",className:"".concat(mt,"-empty"),onMouseDown:wa},Lt);var tl={fieldNames:Yt};return ga&&(tl.loadedKeys=ga),Zi&&(tl.expandedKeys=Zi),Ie.createElement("div",{onMouseDown:wa},ma&&ot&&Ie.createElement("span",{style:$r,"aria-live":"assertive"},ma.node.value),Ie.createElement(wc.y6.Provider,{value:{nodeDisabled:Ko}},Ie.createElement(wc.ZP,ie({ref:ta,focusable:!1,prefixCls:"".concat(mt,"-tree"),treeData:na,height:se,itemHeight:fe,itemScrollOffset:je,virtual:jt!==!1&&wn!==!1,multiple:Ae,icon:xo,showIcon:Fn,switcherIcon:mo,showLine:Ci,loadData:Rs,motion:ca,activeKey:Qa,checkable:Di,checkStrictly:!0,checkedKeys:Ha,selectedKeys:Di?[]:cr,defaultExpandAll:Li,titleRender:Tn},tl,{onActiveChange:ds,onSelect:ko,onCheck:ko,onExpand:wo,onLoad:$i,filterTreeNode:_r,expandAction:On,onScroll:br}))))},co=Ie.forwardRef(Ii),To=co,ra="SHOW_ALL",Mi="SHOW_PARENT",bo="SHOW_CHILD";function ro(Se,Te,ze,Qe){var mt=new Set(Se);return Te===bo?Se.filter(function(Ae){var De=ze[Ae];return!De||!De.children||!De.children.some(function(qe){var ot=qe.node;return mt.has(ot[Qe.value])})||!De.children.every(function(qe){var ot=qe.node;return Gu(ot)||mt.has(ot[Qe.value])})}):Te===Mi?Se.filter(function(Ae){var De=ze[Ae],qe=De?De.parent:null;return!qe||Gu(qe.node)||!mt.has(qe.key)}):Se}function ea(Se){var Te=Se.searchPlaceholder,ze=Se.treeCheckStrictly,Qe=Se.treeCheckable,mt=Se.labelInValue,Ae=Se.value,De=Se.multiple,qe=Se.showCheckedStrategy,ot=Se.maxCount;warning(!Te,"`searchPlaceholder` has been removed."),ze&&mt===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(mt||ze)&&warning(toArray(Ae).every(function(Lt){return Lt&&_typeof(Lt)==="object"&&"value"in Lt}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),ze||De||Qe?warning(!Ae||Array.isArray(Ae),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(Ae),"`value` should not be array when `TreeSelect` is single mode."),ot&&(qe==="SHOW_ALL"&&!ze||qe==="SHOW_PARENT")&&warning(!1,"`maxCount` not work with `showCheckedStrategy=SHOW_ALL` (when `treeCheckStrictly=false`) or `showCheckedStrategy=SHOW_PARENT`.")}var Ia=null,Vo=["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 ss(Se){return!Se||ut(Se)!=="object"}var Ma=Ie.forwardRef(function(Se,Te){var ze=Se.id,Qe=Se.prefixCls,mt=Qe===void 0?"rc-tree-select":Qe,Ae=Se.value,De=Se.defaultValue,qe=Se.onChange,ot=Se.onSelect,Lt=Se.onDeselect,Ut=Se.searchValue,jt=Se.inputValue,se=Se.onSearch,fe=Se.autoClearSearchValue,je=fe===void 0?!0:fe,St=Se.filterTreeNode,Yt=Se.treeNodeFilterProp,mn=Yt===void 0?"value":Yt,wn=Se.showCheckedStrategy,On=Se.treeNodeLabelProp,Tn=Se.multiple,br=Se.treeCheckable,Wr=Se.treeCheckStrictly,di=Se.labelInValue,ii=Se.maxCount,oi=Se.fieldNames,Di=Se.treeDataSimpleMode,cr=Se.treeData,pi=Se.children,Yr=Se.loadData,Li=Se.treeLoadedKeys,Vi=Se.onTreeLoad,bi=Se.treeDefaultExpandAll,xo=Se.treeExpandedKeys,Fn=Se.treeDefaultExpandedKeys,mo=Se.onTreeExpand,Ci=Se.treeExpandAction,jn=Se.virtual,Uo=Se.listHeight,ga=Uo===void 0?200:Uo,ca=Se.listItemHeight,$i=ca===void 0?20:ca,yo=Se.listItemScrollOffset,ta=yo===void 0?0:yo,na=Se.onDropdownVisibleChange,Ha=Se.dropdownMatchSelectWidth,wa=Ha===void 0?!0:Ha,ko=Se.treeLine,fo=Se.treeIcon,Qo=Se.showTreeIcon,ja=Se.switcherIcon,Lo=Se.treeMotion,Ui=Se.treeTitleRender,so=Se.onPopupScroll,ho=pe(Se,Vo),Pi=zs(ze),Zi=br&&!Wr,wo=br||Wr,Ea=Wr||di,_r=wo||Tn,Qr=Yc(De,{value:Ae}),Ro=de(Qr,2),Bo=Ro[0],Wo=Ro[1],Za=Ie.useMemo(function(){return br?wn||bo:ra},[wn,br]),Ko=Ie.useMemo(function(){return gd(oi)},[JSON.stringify(oi)]),Oa=Yc("",{value:Ut!==void 0?Ut:jt,postState:function(rs){return rs||""}}),cs=de(Oa,2),Ws=cs[0],Qa=cs[1],ds=function(rs){Qa(rs),se==null||se(rs)},ma=Js(cr,pi,Di),Ks=fc(ma,Ko),Rs=Ks.keyEntities,tl=Ks.valueEntities,qi=Ie.useCallback(function(Ts){var rs=[],As=[];return Ts.forEach(function(nl){tl.has(nl)?As.push(nl):rs.push(nl)}),{missingRawValues:rs,existRawValues:As}},[tl]),eo=ks(ma,Ws,{fieldNames:Ko,treeNodeFilterProp:mn,filterTreeNode:St}),po=Ie.useCallback(function(Ts){if(Ts){if(On)return Ts[On];for(var rs=Ko._title,As=0;As<rs.length;As+=1){var nl=Ts[rs[As]];if(nl!==void 0)return nl}}},[Ko,On]),da=Ie.useCallback(function(Ts){var rs=Zc(Ts);return rs.map(function(As){return ss(As)?{value:As}:As})},[]),hs=Ie.useCallback(function(Ts){var rs=da(Ts);return rs.map(function(As){var nl=As.label,Ol=As.value,zl=As.halfChecked,Aa,ia=tl.get(Ol);if(ia){var rl;nl=Ui?Ui(ia.node):(rl=nl)!==null&&rl!==void 0?rl:po(ia.node),Aa=ia.node.disabled}else if(nl===void 0){var nu=da(Bo).find(function(ql){return ql.value===Ol});nl=nu.label}return{label:nl,value:Ol,halfChecked:zl,disabled:Aa}})},[tl,po,da,Bo]),Bs=Ie.useMemo(function(){return da(Bo===null?[]:Bo)},[da,Bo]),$s=Ie.useMemo(function(){var Ts=[],rs=[];return Bs.forEach(function(As){As.halfChecked?rs.push(As):Ts.push(As)}),[Ts,rs]},[Bs]),xn=de($s,2),Da=xn[0],Ja=xn[1],fs=Ie.useMemo(function(){return Da.map(function(Ts){return Ts.value})},[Da]),jl=yu(Da,Ja,Zi,Rs),fl=de(jl,2),Qi=fl[0],jo=fl[1],io=Ie.useMemo(function(){var Ts=ro(Qi,Za,Rs,Ko),rs=Ts.map(function(zl){var Aa,ia;return(Aa=(ia=Rs[zl])===null||ia===void 0||(ia=ia.node)===null||ia===void 0?void 0:ia[Ko.value])!==null&&Aa!==void 0?Aa:zl}),As=rs.map(function(zl){var Aa=Da.find(function(rl){return rl.value===zl}),ia=di?Aa==null?void 0:Aa.label:Ui==null?void 0:Ui(Aa);return{value:zl,label:ia}}),nl=hs(As),Ol=nl[0];return!_r&&Ol&&gc(Ol.value)&&gc(Ol.label)?[]:nl.map(function(zl){var Aa;return _t(_t({},zl),{},{label:(Aa=zl.label)!==null&&Aa!==void 0?Aa:zl.value})})},[Ko,_r,Qi,Da,hs,Za,Rs]),La=dc(io),Cs=de(La,1),Yo=Cs[0],is=Ie.useMemo(function(){return _r&&(Za==="SHOW_CHILD"||Wr||!br)?ii:null},[ii,_r,Wr,Za,br]),Ga=tu(function(Ts,rs,As){var nl=ro(Ts,Za,Rs,Ko);if(!(is&&nl.length>is)){var Ol=hs(Ts);if(Wo(Ol),je&&Qa(""),qe){var zl=Ts;Zi&&(zl=nl.map(function(ru){var Hc=tl.get(ru);return Hc?Hc.node[Ko.value]:ru}));var Aa=rs||{triggerValue:void 0,selected:void 0},ia=Aa.triggerValue,rl=Aa.selected,nu=zl;if(Wr){var ql=Ja.filter(function(ru){return!zl.includes(ru.value)});nu=[].concat(_e(nu),_e(ql))}var du=hs(nu),Rl={preValue:Da,triggerValue:ia},Vu=!0;(Wr||As==="selection"&&!rl)&&(Vu=!1),$l(Rl,ia,Ts,ma,Vu,Ko),wo?Rl.checked=rl:Rl.selected=rl;var El=Ea?du:du.map(function(ru){return ru.value});qe(_r?El:El[0],Ea?null:du.map(function(ru){return ru.label}),Rl)}}}),$a=Ie.useCallback(function(Ts,rs){var As,nl=rs.selected,Ol=rs.source,zl=Rs[Ts],Aa=zl==null?void 0:zl.node,ia=(As=Aa==null?void 0:Aa[Ko.value])!==null&&As!==void 0?As:Ts;if(!_r)Ga([ia],{selected:!0,triggerValue:ia},"option");else{var rl=nl?[].concat(_e(fs),[ia]):Qi.filter(function(Hc){return Hc!==ia});if(Zi){var nu=qi(rl),ql=nu.missingRawValues,du=nu.existRawValues,Rl=du.map(function(Hc){return tl.get(Hc).key}),Vu;if(nl){var El=(0,Al.S)(Rl,!0,Rs);Vu=El.checkedKeys}else{var ru=(0,Al.S)(Rl,{checked:!1,halfCheckedKeys:jo},Rs);Vu=ru.checkedKeys}rl=[].concat(_e(ql),_e(Vu.map(function(Hc){return Rs[Hc].node[Ko.value]})))}Ga(rl,{selected:nl,triggerValue:ia},Ol||"option")}nl||!_r?ot==null||ot(ia,uu(Aa)):Lt==null||Lt(ia,uu(Aa))},[qi,tl,Rs,Ko,_r,fs,Ga,Zi,ot,Lt,Qi,jo,ii]),Ss=Ie.useCallback(function(Ts){if(na){var rs={};Object.defineProperty(rs,"documentClickClose",{get:function(){return Cu(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),na(Ts,rs)}},[na]),Ms=tu(function(Ts,rs){var As=Ts.map(function(nl){return nl.value});if(rs.type==="clear"){Ga(As,{},"selection");return}rs.values.length&&$a(rs.values[0].value,{selected:!1,source:"selection"})}),cu=Ie.useMemo(function(){return{virtual:jn,dropdownMatchSelectWidth:wa,listHeight:ga,listItemHeight:$i,listItemScrollOffset:ta,treeData:eo,fieldNames:Ko,onSelect:$a,treeExpandAction:Ci,treeTitleRender:Ui,onPopupScroll:so,leftMaxCount:ii===void 0?null:ii-Yo.length,leafCountOnly:Za==="SHOW_CHILD"&&!Wr&&!!br,valueEntities:tl}},[jn,wa,ga,$i,ta,eo,Ko,$a,Ci,Ui,so,ii,Yo.length,Za,Wr,br,tl]),zu=Ie.useMemo(function(){return{checkable:wo,loadData:Yr,treeLoadedKeys:Li,onTreeLoad:Vi,checkedKeys:Qi,halfCheckedKeys:jo,treeDefaultExpandAll:bi,treeExpandedKeys:xo,treeDefaultExpandedKeys:Fn,onTreeExpand:mo,treeIcon:fo,treeMotion:Lo,showTreeIcon:Qo,switcherIcon:ja,treeLine:ko,treeNodeFilterProp:mn,keyEntities:Rs}},[wo,Yr,Li,Vi,Qi,jo,bi,xo,Fn,mo,fo,Lo,Qo,ja,ko,mn,Rs]);return Ie.createElement(sc.Provider,{value:cu},Ie.createElement(Sl.Provider,{value:zu},Ie.createElement(Ds,ie({ref:Te},ho,{id:Pi,prefixCls:mt,mode:_r?"multiple":void 0,displayValues:Yo,onDisplayValuesChange:Ms,searchValue:Ws,onSearch:ds,OptionList:To,emptyOptions:!ma.length,onDropdownVisibleChange:Ss,dropdownMatchSelectWidth:wa}))))}),qa=Ma;qa.TreeNode=Nl,qa.SHOW_ALL=ra,qa.SHOW_PARENT=Mi,qa.SHOW_CHILD=bo;var Le=qa,nt=Le},18798:function(Ke,we){"use strict";var ae;var ie=typeof Symbol=="function"&&Symbol.for,Pe=ie?Symbol.for("react.element"):60103,Fe=ie?Symbol.for("react.portal"):60106,Oe=ie?Symbol.for("react.fragment"):60107,tt=ie?Symbol.for("react.strict_mode"):60108,Me=ie?Symbol.for("react.profiler"):60114,_e=ie?Symbol.for("react.provider"):60109,ut=ie?Symbol.for("react.context"):60110,et=ie?Symbol.for("react.async_mode"):60111,lt=ie?Symbol.for("react.concurrent_mode"):60111,Et=ie?Symbol.for("react.forward_ref"):60112,rt=ie?Symbol.for("react.suspense"):60113,_t=ie?Symbol.for("react.suspense_list"):60120,Ge=ie?Symbol.for("react.memo"):60115,te=ie?Symbol.for("react.lazy"):60116,ee=ie?Symbol.for("react.block"):60121,de=ie?Symbol.for("react.fundamental"):60117,le=ie?Symbol.for("react.responder"):60118,pe=ie?Symbol.for("react.scope"):60119;function me(be){if(typeof be=="object"&&be!==null){var Be=be.$$typeof;switch(Be){case Pe:switch(be=be.type,be){case et:case lt:case Oe:case Me:case tt:case rt:return be;default:switch(be=be&&be.$$typeof,be){case ut:case Et:case te:case Ge:case _e:return be;default:return Be}}case Fe:return Be}}}function xe(be){return me(be)===lt}ae=et,ae=lt,ae=ut,ae=_e,ae=Pe,ae=Et,ae=Oe,ae=te,ae=Ge,ae=Fe,ae=Me,ae=tt,ae=rt,ae=function(be){return xe(be)||me(be)===et},ae=xe,ae=function(be){return me(be)===ut},ae=function(be){return me(be)===_e},ae=function(be){return typeof be=="object"&&be!==null&&be.$$typeof===Pe},ae=function(be){return me(be)===Et},we.isFragment=function(be){return me(be)===Oe},ae=function(be){return me(be)===te},ae=function(be){return me(be)===Ge},ae=function(be){return me(be)===Fe},ae=function(be){return me(be)===Me},ae=function(be){return me(be)===tt},ae=function(be){return me(be)===rt},ae=function(be){return typeof be=="string"||typeof be=="function"||be===Oe||be===lt||be===Me||be===tt||be===rt||be===_t||typeof be=="object"&&be!==null&&(be.$$typeof===te||be.$$typeof===Ge||be.$$typeof===_e||be.$$typeof===ut||be.$$typeof===Et||be.$$typeof===de||be.$$typeof===le||be.$$typeof===pe||be.$$typeof===ee)},ae=me},95936:function(Ke,we,ae){"use strict";Ke.exports=ae(18798)},39988:function(Ke,we){"use strict";var ae;var ie=Symbol.for("react.element"),Pe=Symbol.for("react.portal"),Fe=Symbol.for("react.fragment"),Oe=Symbol.for("react.strict_mode"),tt=Symbol.for("react.profiler"),Me=Symbol.for("react.provider"),_e=Symbol.for("react.context"),ut=Symbol.for("react.server_context"),et=Symbol.for("react.forward_ref"),lt=Symbol.for("react.suspense"),Et=Symbol.for("react.suspense_list"),rt=Symbol.for("react.memo"),_t=Symbol.for("react.lazy"),Ge=Symbol.for("react.offscreen"),te;te=Symbol.for("react.module.reference");function ee(de){if(typeof de=="object"&&de!==null){var le=de.$$typeof;switch(le){case ie:switch(de=de.type,de){case Fe:case tt:case Oe:case lt:case Et:return de;default:switch(de=de&&de.$$typeof,de){case ut:case _e:case et:case _t:case rt:case Me:return de;default:return le}}case Pe:return le}}}ae=_e,ae=Me,ae=ie,ae=et,ae=Fe,ae=_t,ae=rt,ae=Pe,ae=tt,ae=Oe,ae=lt,ae=Et,ae=function(){return!1},ae=function(){return!1},ae=function(de){return ee(de)===_e},ae=function(de){return ee(de)===Me},ae=function(de){return typeof de=="object"&&de!==null&&de.$$typeof===ie},ae=function(de){return ee(de)===et},ae=function(de){return ee(de)===Fe},ae=function(de){return ee(de)===_t},ae=function(de){return ee(de)===rt},ae=function(de){return ee(de)===Pe},ae=function(de){return ee(de)===tt},ae=function(de){return ee(de)===Oe},ae=function(de){return ee(de)===lt},ae=function(de){return ee(de)===Et},ae=function(de){return typeof de=="string"||typeof de=="function"||de===Fe||de===tt||de===Oe||de===lt||de===Et||de===Ge||typeof de=="object"&&de!==null&&(de.$$typeof===_t||de.$$typeof===rt||de.$$typeof===Me||de.$$typeof===_e||de.$$typeof===et||de.$$typeof===te||de.getModuleId!==void 0)},ae=ee},66133:function(Ke,we,ae){"use strict";ae(39988)},86128:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return me}});var ie=ae(87462),Pe=ae(4942),Fe=ae(1413),Oe=ae(97685),tt=ae(45987),Me=ae(67294),_e=ae(94184),ut=ae.n(_e),et=ae(64217),lt=ae(27822),Et=function(be){for(var Be=be.prefixCls,at=be.level,dt=be.isStart,gt=be.isEnd,ft="".concat(Be,"-indent-unit"),Nt=[],Tt=0;Tt<at;Tt+=1)Nt.push(Me.createElement("span",{key:Tt,className:ut()(ft,(0,Pe.Z)((0,Pe.Z)({},"".concat(ft,"-start"),dt[Tt]),"".concat(ft,"-end"),gt[Tt]))}));return Me.createElement("span",{"aria-hidden":"true",className:"".concat(Be,"-indent")},Nt)},rt=Me.memo(Et),_t=ae(35381),Ge=ae(1089),te=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ee="open",de="close",le="---",pe=function(be){var Be,at,dt,gt=be.eventKey,ft=be.className,Nt=be.style,Tt=be.dragOver,Ct=be.dragOverGapTop,Vt=be.dragOverGapBottom,Rt=be.isLeaf,nn=be.isStart,Cn=be.isEnd,un=be.expanded,Nn=be.selected,wt=be.checked,pt=be.halfChecked,Ie=be.loading,on=be.domRef,Bn=be.active,Zt=be.data,zn=be.onMouseMove,_n=be.selectable,nr=(0,tt.Z)(be,te),Ft=Me.useContext(lt.k),Wt=Me.useContext(lt.y),ht=Me.useRef(null),tn=Me.useState(!1),an=(0,Oe.Z)(tn,2),ct=an[0],Ue=an[1],He=!!(Ft.disabled||be.disabled||(Be=Wt.nodeDisabled)!==null&&Be!==void 0&&Be.call(Wt,Zt)),it=Me.useMemo(function(){return!Ft.checkable||be.checkable===!1?!1:Ft.checkable},[Ft.checkable,be.checkable]),vt=function(ur){He||Ft.onNodeSelect(ur,(0,Ge.F)(be))},Ye=function(ur){He||!it||be.disableCheckbox||Ft.onNodeCheck(ur,(0,Ge.F)(be),!wt)},It=Me.useMemo(function(){return typeof _n=="boolean"?_n:Ft.selectable},[_n,Ft.selectable]),In=function(ur){Ft.onNodeClick(ur,(0,Ge.F)(be)),It?vt(ur):Ye(ur)},Kn=function(ur){Ft.onNodeDoubleClick(ur,(0,Ge.F)(be))},dr=function(ur){Ft.onNodeMouseEnter(ur,(0,Ge.F)(be))},Rn=function(ur){Ft.onNodeMouseLeave(ur,(0,Ge.F)(be))},er=function(ur){Ft.onNodeContextMenu(ur,(0,Ge.F)(be))},yn=Me.useMemo(function(){return!!(Ft.draggable&&(!Ft.draggable.nodeDraggable||Ft.draggable.nodeDraggable(Zt)))},[Ft.draggable,Zt]),Er=function(ur){ur.stopPropagation(),Ue(!0),Ft.onNodeDragStart(ur,be);try{ur.dataTransfer.setData("text/plain","")}catch(hr){}},sr=function(ur){ur.preventDefault(),ur.stopPropagation(),Ft.onNodeDragEnter(ur,be)},Hr=function(ur){ur.preventDefault(),ur.stopPropagation(),Ft.onNodeDragOver(ur,be)},An=function(ur){ur.stopPropagation(),Ft.onNodeDragLeave(ur,be)},yi=function(ur){ur.stopPropagation(),Ue(!1),Ft.onNodeDragEnd(ur,be)},ri=function(ur){ur.preventDefault(),ur.stopPropagation(),Ue(!1),Ft.onNodeDrop(ur,be)},bn=function(ur){Ie||Ft.onNodeExpand(ur,(0,Ge.F)(be))},Xe=Me.useMemo(function(){var rr=(0,_t.Z)(Ft.keyEntities,gt)||{},ur=rr.children;return!!(ur||[]).length},[Ft.keyEntities,gt]),Ji=Me.useMemo(function(){return Rt===!1?!1:Rt||!Ft.loadData&&!Xe||Ft.loadData&&be.loaded&&!Xe},[Rt,Ft.loadData,Xe,be.loaded]);Me.useEffect(function(){Ie||typeof Ft.loadData=="function"&&un&&!Ji&&!be.loaded&&Ft.onNodeLoad((0,Ge.F)(be))},[Ie,Ft.loadData,Ft.onNodeLoad,un,Ji,be]);var Qn=Me.useMemo(function(){var rr;return(rr=Ft.draggable)!==null&&rr!==void 0&&rr.icon?Me.createElement("span",{className:"".concat(Ft.prefixCls,"-draggable-icon")},Ft.draggable.icon):null},[Ft.draggable]),Sn=function(ur){var hr=be.switcherIcon||Ft.switcherIcon;return typeof hr=="function"?hr((0,Fe.Z)((0,Fe.Z)({},be),{},{isLeaf:ur})):hr},to=function(){if(Ji){var ur=Sn(!0);return ur!==!1?Me.createElement("span",{className:ut()("".concat(Ft.prefixCls,"-switcher"),"".concat(Ft.prefixCls,"-switcher-noop"))},ur):null}var hr=Sn(!1);return hr!==!1?Me.createElement("span",{onClick:bn,className:ut()("".concat(Ft.prefixCls,"-switcher"),"".concat(Ft.prefixCls,"-switcher_").concat(un?ee:de))},hr):null},Ki=Me.useMemo(function(){if(!it)return null;var rr=typeof it!="boolean"?it:null;return Me.createElement("span",{className:ut()("".concat(Ft.prefixCls,"-checkbox"),(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},"".concat(Ft.prefixCls,"-checkbox-checked"),wt),"".concat(Ft.prefixCls,"-checkbox-indeterminate"),!wt&&pt),"".concat(Ft.prefixCls,"-checkbox-disabled"),He||be.disableCheckbox)),onClick:Ye,role:"checkbox","aria-checked":pt?"mixed":wt,"aria-disabled":He||be.disableCheckbox,"aria-label":"Select ".concat(typeof be.title=="string"?be.title:"tree node")},rr)},[it,wt,pt,He,be.disableCheckbox,be.title]),Zr=Me.useMemo(function(){return Ji?null:un?ee:de},[Ji,un]),hi=Me.useMemo(function(){return Me.createElement("span",{className:ut()("".concat(Ft.prefixCls,"-iconEle"),"".concat(Ft.prefixCls,"-icon__").concat(Zr||"docu"),(0,Pe.Z)({},"".concat(Ft.prefixCls,"-icon_loading"),Ie))})},[Ft.prefixCls,Zr,Ie]),Ir=Me.useMemo(function(){var rr=!!Ft.draggable,ur=!be.disabled&&rr&&Ft.dragOverNodeKey===gt;return ur?Ft.dropIndicatorRender({dropPosition:Ft.dropPosition,dropLevelOffset:Ft.dropLevelOffset,indent:Ft.indent,prefixCls:Ft.prefixCls,direction:Ft.direction}):null},[Ft.dropPosition,Ft.dropLevelOffset,Ft.indent,Ft.prefixCls,Ft.direction,Ft.draggable,Ft.dragOverNodeKey,Ft.dropIndicatorRender]),fn=Me.useMemo(function(){var rr=be.title,ur=rr===void 0?le:rr,hr="".concat(Ft.prefixCls,"-node-content-wrapper"),Or;if(Ft.showIcon){var jr=be.icon||Ft.icon;Or=jr?Me.createElement("span",{className:ut()("".concat(Ft.prefixCls,"-iconEle"),"".concat(Ft.prefixCls,"-icon__customize"))},typeof jr=="function"?jr(be):jr):hi}else Ft.loadData&&Ie&&(Or=hi);var si;return typeof ur=="function"?si=ur(Zt):Ft.titleRender?si=Ft.titleRender(Zt):si=ur,Me.createElement("span",{ref:ht,title:typeof ur=="string"?ur:"",className:ut()(hr,"".concat(hr,"-").concat(Zr||"normal"),(0,Pe.Z)({},"".concat(Ft.prefixCls,"-node-selected"),!He&&(Nn||ct))),onMouseEnter:dr,onMouseLeave:Rn,onContextMenu:er,onClick:In,onDoubleClick:Kn},Or,Me.createElement("span",{className:"".concat(Ft.prefixCls,"-title")},si),Ir)},[Ft.prefixCls,Ft.showIcon,be,Ft.icon,hi,Ft.titleRender,Zt,Zr,dr,Rn,er,In,Kn]),Hi=(0,et.Z)(nr,{aria:!0,data:!0}),ao=(0,_t.Z)(Ft.keyEntities,gt)||{},ui=ao.level,ai=Cn[Cn.length-1],Ni=!He&&yn,ir=Ft.draggingNodeKey===gt,We=_n!==void 0?{"aria-selected":!!_n}:void 0;return Me.createElement("div",(0,ie.Z)({ref:on,role:"treeitem","aria-expanded":Rt?void 0:un,className:ut()(ft,"".concat(Ft.prefixCls,"-treenode"),(dt={},(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)(dt,"".concat(Ft.prefixCls,"-treenode-disabled"),He),"".concat(Ft.prefixCls,"-treenode-switcher-").concat(un?"open":"close"),!Rt),"".concat(Ft.prefixCls,"-treenode-checkbox-checked"),wt),"".concat(Ft.prefixCls,"-treenode-checkbox-indeterminate"),pt),"".concat(Ft.prefixCls,"-treenode-selected"),Nn),"".concat(Ft.prefixCls,"-treenode-loading"),Ie),"".concat(Ft.prefixCls,"-treenode-active"),Bn),"".concat(Ft.prefixCls,"-treenode-leaf-last"),ai),"".concat(Ft.prefixCls,"-treenode-draggable"),yn),"dragging",ir),(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)(dt,"drop-target",Ft.dropTargetKey===gt),"drop-container",Ft.dropContainerKey===gt),"drag-over",!He&&Tt),"drag-over-gap-top",!He&&Ct),"drag-over-gap-bottom",!He&&Vt),"filter-node",(at=Ft.filterTreeNode)===null||at===void 0?void 0:at.call(Ft,(0,Ge.F)(be))),"".concat(Ft.prefixCls,"-treenode-leaf"),Ji))),style:Nt,draggable:Ni,onDragStart:Ni?Er:void 0,onDragEnter:yn?sr:void 0,onDragOver:yn?Hr:void 0,onDragLeave:yn?An:void 0,onDrop:yn?ri:void 0,onDragEnd:yn?yi:void 0,onMouseMove:zn},We,Hi),Me.createElement(rt,{prefixCls:Ft.prefixCls,level:ui,isStart:nn,isEnd:Cn}),Qn,to(),Ki,fn)};pe.isTreeNode=1;var me=pe},27822:function(Ke,we,ae){"use strict";ae.d(we,{k:function(){return Pe},y:function(){return Fe}});var ie=ae(67294),Pe=ie.createContext(null),Fe=ie.createContext({})},70593:function(Ke,we,ae){"use strict";ae.d(we,{OF:function(){return gt.Z},y6:function(){return de.y},ZP:function(){return He}});var ie=ae(87462),Pe=ae(71002),Fe=ae(1413),Oe=ae(74902),tt=ae(15671),Me=ae(43144),_e=ae(97326),ut=ae(60136),et=ae(29388),lt=ae(4942),Et=ae(94184),rt=ae.n(Et),_t=ae(15105),Ge=ae(64217),te=ae(80334),ee=ae(67294),de=ae(27822),le=function(vt){var Ye=vt.dropPosition,It=vt.dropLevelOffset,In=vt.indent,Kn={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Ye){case-1:Kn.top=0,Kn.left=-It*In;break;case 1:Kn.bottom=0,Kn.left=-It*In;break;case 0:Kn.bottom=0,Kn.left=In;break}return ee.createElement("div",{style:Kn})},pe=le;function me(it){if(it==null)throw new TypeError("Cannot destructure "+it)}var xe=ae(97685),be=ae(45987),Be=ae(8410),at=ae(73299),dt=ae(62874),gt=ae(86128);function ft(it,vt){var Ye=ee.useState(!1),It=(0,xe.Z)(Ye,2),In=It[0],Kn=It[1];(0,Be.Z)(function(){if(In)return it(),function(){vt()}},[In]),(0,Be.Z)(function(){return Kn(!0),function(){Kn(!1)}},[])}var Nt=ft,Tt=ae(1089),Ct=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Vt=ee.forwardRef(function(it,vt){var Ye=it.className,It=it.style,In=it.motion,Kn=it.motionNodes,dr=it.motionType,Rn=it.onMotionStart,er=it.onMotionEnd,yn=it.active,Er=it.treeNodeRequiredProps,sr=(0,be.Z)(it,Ct),Hr=ee.useState(!0),An=(0,xe.Z)(Hr,2),yi=An[0],ri=An[1],bn=ee.useContext(de.k),Xe=bn.prefixCls,Ji=Kn&&dr!=="hide";(0,Be.Z)(function(){Kn&&Ji!==yi&&ri(Ji)},[Kn]);var Qn=function(){Kn&&Rn()},Sn=ee.useRef(!1),to=function(){Kn&&!Sn.current&&(Sn.current=!0,er())};Nt(Qn,to);var Ki=function(hi){Ji===hi&&to()};return Kn?ee.createElement(dt.Z,(0,ie.Z)({ref:vt,visible:yi},In,{motionAppear:dr==="show",onVisibleChanged:Ki}),function(Zr,hi){var Ir=Zr.className,fn=Zr.style;return ee.createElement("div",{ref:hi,className:rt()("".concat(Xe,"-treenode-motion"),Ir),style:fn},Kn.map(function(Hi){var ao=Object.assign({},(me(Hi.data),Hi.data)),ui=Hi.title,ai=Hi.key,Ni=Hi.isStart,ir=Hi.isEnd;delete ao.children;var We=(0,Tt.H8)(ai,Er);return ee.createElement(gt.Z,(0,ie.Z)({},ao,We,{title:ui,active:yn,data:Hi.data,key:ai,isStart:Ni,isEnd:ir}))}))}):ee.createElement(gt.Z,(0,ie.Z)({domRef:vt,className:Ye,style:It},sr,{active:yn}))}),Rt=Vt;function nn(){var it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ye=it.length,It=vt.length;if(Math.abs(Ye-It)!==1)return{add:!1,key:null};function In(Kn,dr){var Rn=new Map;Kn.forEach(function(yn){Rn.set(yn,!0)});var er=dr.filter(function(yn){return!Rn.has(yn)});return er.length===1?er[0]:null}return Ye<It?{add:!0,key:In(it,vt)}:{add:!1,key:In(vt,it)}}function Cn(it,vt,Ye){var It=it.findIndex(function(Rn){return Rn.key===Ye}),In=it[It+1],Kn=vt.findIndex(function(Rn){return Rn.key===Ye});if(In){var dr=vt.findIndex(function(Rn){return Rn.key===In.key});return vt.slice(Kn+1,dr)}return vt.slice(Kn+1)}var un=["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"],Nn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},wt=function(){},pt="RC_TREE_MOTION_".concat(Math.random()),Ie={key:pt},on={key:pt,level:0,index:0,pos:"0",node:Ie,nodes:[Ie]},Bn={parent:null,children:[],pos:on.pos,data:Ie,title:null,key:pt,isStart:[],isEnd:[]};function Zt(it,vt,Ye,It){return vt===!1||!Ye?it:it.slice(0,Math.ceil(Ye/It)+1)}function zn(it){var vt=it.key,Ye=it.pos;return(0,Tt.km)(vt,Ye)}function _n(it){for(var vt=String(it.data.key),Ye=it;Ye.parent;)Ye=Ye.parent,vt="".concat(Ye.data.key," > ").concat(vt);return vt}var nr=ee.forwardRef(function(it,vt){var Ye=it.prefixCls,It=it.data,In=it.selectable,Kn=it.checkable,dr=it.expandedKeys,Rn=it.selectedKeys,er=it.checkedKeys,yn=it.loadedKeys,Er=it.loadingKeys,sr=it.halfCheckedKeys,Hr=it.keyEntities,An=it.disabled,yi=it.dragging,ri=it.dragOverNodeKey,bn=it.dropPosition,Xe=it.motion,Ji=it.height,Qn=it.itemHeight,Sn=it.virtual,to=it.scrollWidth,Ki=it.focusable,Zr=it.activeItem,hi=it.focused,Ir=it.tabIndex,fn=it.onKeyDown,Hi=it.onFocus,ao=it.onBlur,ui=it.onActiveChange,ai=it.onListChangeStart,Ni=it.onListChangeEnd,ir=(0,be.Z)(it,un),We=ee.useRef(null),rr=ee.useRef(null);ee.useImperativeHandle(vt,function(){return{scrollTo:function(ls){We.current.scrollTo(ls)},getIndentWidth:function(){return rr.current.offsetWidth}}});var ur=ee.useState(dr),hr=(0,xe.Z)(ur,2),Or=hr[0],jr=hr[1],si=ee.useState(It),Fi=(0,xe.Z)(si,2),Vn=Fi[0],Wn=Fi[1],vn=ee.useState(It),tr=(0,xe.Z)(vn,2),mi=tr[0],gi=tr[1],ti=ee.useState([]),Hn=(0,xe.Z)(ti,2),Cr=Hn[0],Ri=Hn[1],_i=ee.useState(null),Ur=(0,xe.Z)(_i,2),Pn=Ur[0],xi=Ur[1],ji=ee.useRef(It);ji.current=It;function Xo(){var Jr=ji.current;Wn(Jr),gi(Jr),Ri([]),xi(null),Ni()}(0,Be.Z)(function(){jr(dr);var Jr=nn(Or,dr);if(Jr.key!==null)if(Jr.add){var ls=Vn.findIndex(function(Go){var zr=Go.key;return zr===Jr.key}),Pa=Zt(Cn(Vn,It,Jr.key),Sn,Ji,Qn),Oi=Vn.slice();Oi.splice(ls+1,0,Bn),gi(Oi),Ri(Pa),xi("show")}else{var Yi=It.findIndex(function(Go){var zr=Go.key;return zr===Jr.key}),uo=Zt(Cn(It,Vn,Jr.key),Sn,Ji,Qn),ba=It.slice();ba.splice(Yi+1,0,Bn),gi(ba),Ri(uo),xi("hide")}else Vn!==It&&(Wn(It),gi(It))},[dr,It]),ee.useEffect(function(){yi||Xo()},[yi]);var wr=Xe?mi:It,Gi={expandedKeys:dr,selectedKeys:Rn,loadedKeys:yn,loadingKeys:Er,checkedKeys:er,halfCheckedKeys:sr,dragOverNodeKey:ri,dropPosition:bn,keyEntities:Hr};return ee.createElement(ee.Fragment,null,hi&&Zr&&ee.createElement("span",{style:Nn,"aria-live":"assertive"},_n(Zr)),ee.createElement("div",null,ee.createElement("input",{style:Nn,disabled:Ki===!1||An,tabIndex:Ki!==!1?Ir:null,onKeyDown:fn,onFocus:Hi,onBlur:ao,value:"",onChange:wt,"aria-label":"for screen reader"})),ee.createElement("div",{className:"".concat(Ye,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ee.createElement("div",{className:"".concat(Ye,"-indent")},ee.createElement("div",{ref:rr,className:"".concat(Ye,"-indent-unit")}))),ee.createElement(at.Z,(0,ie.Z)({},ir,{data:wr,itemKey:zn,height:Ji,fullHeight:!1,virtual:Sn,itemHeight:Qn,scrollWidth:to,prefixCls:"".concat(Ye,"-list"),ref:We,role:"tree",onVisibleChange:function(ls){ls.every(function(Pa){return zn(Pa)!==pt})&&Xo()}}),function(Jr){var ls=Jr.pos,Pa=Object.assign({},(me(Jr.data),Jr.data)),Oi=Jr.title,Yi=Jr.key,uo=Jr.isStart,ba=Jr.isEnd,Go=(0,Tt.km)(Yi,ls);delete Pa.key,delete Pa.children;var zr=(0,Tt.H8)(Go,Gi);return ee.createElement(Rt,(0,ie.Z)({},Pa,zr,{title:Oi,active:!!Zr&&Yi===Zr.key,pos:ls,data:Jr.data,isStart:uo,isEnd:ba,motion:Xe,motionNodes:Yi===pt?Cr:null,motionType:Pn,onMotionStart:ai,onMotionEnd:Xo,treeNodeRequiredProps:Gi,onMouseMove:function(){ui(null)}}))}))}),Ft=nr,Wt=ae(10225),ht=ae(17341),tn=ae(35381),an=10,ct=function(it){(0,ut.Z)(Ye,it);var vt=(0,et.Z)(Ye);function Ye(){var It;(0,tt.Z)(this,Ye);for(var In=arguments.length,Kn=new Array(In),dr=0;dr<In;dr++)Kn[dr]=arguments[dr];return It=vt.call.apply(vt,[this].concat(Kn)),(0,lt.Z)((0,_e.Z)(It),"destroyed",!1),(0,lt.Z)((0,_e.Z)(It),"delayedDragEnterLogic",void 0),(0,lt.Z)((0,_e.Z)(It),"loadingRetryTimes",{}),(0,lt.Z)((0,_e.Z)(It),"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,Tt.w$)()}),(0,lt.Z)((0,_e.Z)(It),"dragStartMousePosition",null),(0,lt.Z)((0,_e.Z)(It),"dragNodeProps",null),(0,lt.Z)((0,_e.Z)(It),"currentMouseOverDroppableNodeKey",null),(0,lt.Z)((0,_e.Z)(It),"listRef",ee.createRef()),(0,lt.Z)((0,_e.Z)(It),"onNodeDragStart",function(Rn,er){var yn=It.state,Er=yn.expandedKeys,sr=yn.keyEntities,Hr=It.props.onDragStart,An=er.eventKey;It.dragNodeProps=er,It.dragStartMousePosition={x:Rn.clientX,y:Rn.clientY};var yi=(0,Wt._5)(Er,An);It.setState({draggingNodeKey:An,dragChildrenKeys:(0,Wt.wA)(An,sr),indent:It.listRef.current.getIndentWidth()}),It.setExpandedKeys(yi),window.addEventListener("dragend",It.onWindowDragEnd),Hr==null||Hr({event:Rn,node:(0,Tt.F)(er)})}),(0,lt.Z)((0,_e.Z)(It),"onNodeDragEnter",function(Rn,er){var yn=It.state,Er=yn.expandedKeys,sr=yn.keyEntities,Hr=yn.dragChildrenKeys,An=yn.flattenNodes,yi=yn.indent,ri=It.props,bn=ri.onDragEnter,Xe=ri.onExpand,Ji=ri.allowDrop,Qn=ri.direction,Sn=er.pos,to=er.eventKey;if(It.currentMouseOverDroppableNodeKey!==to&&(It.currentMouseOverDroppableNodeKey=to),!It.dragNodeProps){It.resetDragState();return}var Ki=(0,Wt.OM)(Rn,It.dragNodeProps,er,yi,It.dragStartMousePosition,Ji,An,sr,Er,Qn),Zr=Ki.dropPosition,hi=Ki.dropLevelOffset,Ir=Ki.dropTargetKey,fn=Ki.dropContainerKey,Hi=Ki.dropTargetPos,ao=Ki.dropAllowed,ui=Ki.dragOverNodeKey;if(Hr.includes(Ir)||!ao){It.resetDragState();return}if(It.delayedDragEnterLogic||(It.delayedDragEnterLogic={}),Object.keys(It.delayedDragEnterLogic).forEach(function(ai){clearTimeout(It.delayedDragEnterLogic[ai])}),It.dragNodeProps.eventKey!==er.eventKey&&(Rn.persist(),It.delayedDragEnterLogic[Sn]=window.setTimeout(function(){if(It.state.draggingNodeKey!==null){var ai=(0,Oe.Z)(Er),Ni=(0,tn.Z)(sr,er.eventKey);Ni&&(Ni.children||[]).length&&(ai=(0,Wt.L0)(Er,er.eventKey)),It.props.hasOwnProperty("expandedKeys")||It.setExpandedKeys(ai),Xe==null||Xe(ai,{node:(0,Tt.F)(er),expanded:!0,nativeEvent:Rn.nativeEvent})}},800)),It.dragNodeProps.eventKey===Ir&&hi===0){It.resetDragState();return}It.setState({dragOverNodeKey:ui,dropPosition:Zr,dropLevelOffset:hi,dropTargetKey:Ir,dropContainerKey:fn,dropTargetPos:Hi,dropAllowed:ao}),bn==null||bn({event:Rn,node:(0,Tt.F)(er),expandedKeys:Er})}),(0,lt.Z)((0,_e.Z)(It),"onNodeDragOver",function(Rn,er){var yn=It.state,Er=yn.dragChildrenKeys,sr=yn.flattenNodes,Hr=yn.keyEntities,An=yn.expandedKeys,yi=yn.indent,ri=It.props,bn=ri.onDragOver,Xe=ri.allowDrop,Ji=ri.direction;if(It.dragNodeProps){var Qn=(0,Wt.OM)(Rn,It.dragNodeProps,er,yi,It.dragStartMousePosition,Xe,sr,Hr,An,Ji),Sn=Qn.dropPosition,to=Qn.dropLevelOffset,Ki=Qn.dropTargetKey,Zr=Qn.dropContainerKey,hi=Qn.dropTargetPos,Ir=Qn.dropAllowed,fn=Qn.dragOverNodeKey;Er.includes(Ki)||!Ir||(It.dragNodeProps.eventKey===Ki&&to===0?It.state.dropPosition===null&&It.state.dropLevelOffset===null&&It.state.dropTargetKey===null&&It.state.dropContainerKey===null&&It.state.dropTargetPos===null&&It.state.dropAllowed===!1&&It.state.dragOverNodeKey===null||It.resetDragState():Sn===It.state.dropPosition&&to===It.state.dropLevelOffset&&Ki===It.state.dropTargetKey&&Zr===It.state.dropContainerKey&&hi===It.state.dropTargetPos&&Ir===It.state.dropAllowed&&fn===It.state.dragOverNodeKey||It.setState({dropPosition:Sn,dropLevelOffset:to,dropTargetKey:Ki,dropContainerKey:Zr,dropTargetPos:hi,dropAllowed:Ir,dragOverNodeKey:fn}),bn==null||bn({event:Rn,node:(0,Tt.F)(er)}))}}),(0,lt.Z)((0,_e.Z)(It),"onNodeDragLeave",function(Rn,er){It.currentMouseOverDroppableNodeKey===er.eventKey&&!Rn.currentTarget.contains(Rn.relatedTarget)&&(It.resetDragState(),It.currentMouseOverDroppableNodeKey=null);var yn=It.props.onDragLeave;yn==null||yn({event:Rn,node:(0,Tt.F)(er)})}),(0,lt.Z)((0,_e.Z)(It),"onWindowDragEnd",function(Rn){It.onNodeDragEnd(Rn,null,!0),window.removeEventListener("dragend",It.onWindowDragEnd)}),(0,lt.Z)((0,_e.Z)(It),"onNodeDragEnd",function(Rn,er){var yn=It.props.onDragEnd;It.setState({dragOverNodeKey:null}),It.cleanDragState(),yn==null||yn({event:Rn,node:(0,Tt.F)(er)}),It.dragNodeProps=null,window.removeEventListener("dragend",It.onWindowDragEnd)}),(0,lt.Z)((0,_e.Z)(It),"onNodeDrop",function(Rn,er){var yn,Er=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,sr=It.state,Hr=sr.dragChildrenKeys,An=sr.dropPosition,yi=sr.dropTargetKey,ri=sr.dropTargetPos,bn=sr.dropAllowed;if(bn){var Xe=It.props.onDrop;if(It.setState({dragOverNodeKey:null}),It.cleanDragState(),yi!==null){var Ji=(0,Fe.Z)((0,Fe.Z)({},(0,Tt.H8)(yi,It.getTreeNodeRequiredProps())),{},{active:((yn=It.getActiveItem())===null||yn===void 0?void 0:yn.key)===yi,data:(0,tn.Z)(It.state.keyEntities,yi).node}),Qn=Hr.includes(yi);(0,te.ZP)(!Qn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Sn=(0,Wt.yx)(ri),to={event:Rn,node:(0,Tt.F)(Ji),dragNode:It.dragNodeProps?(0,Tt.F)(It.dragNodeProps):null,dragNodesKeys:[It.dragNodeProps.eventKey].concat(Hr),dropToGap:An!==0,dropPosition:An+Number(Sn[Sn.length-1])};Er||Xe==null||Xe(to),It.dragNodeProps=null}}}),(0,lt.Z)((0,_e.Z)(It),"cleanDragState",function(){var Rn=It.state.draggingNodeKey;Rn!==null&&It.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),It.dragStartMousePosition=null,It.currentMouseOverDroppableNodeKey=null}),(0,lt.Z)((0,_e.Z)(It),"triggerExpandActionExpand",function(Rn,er){var yn=It.state,Er=yn.expandedKeys,sr=yn.flattenNodes,Hr=er.expanded,An=er.key,yi=er.isLeaf;if(!(yi||Rn.shiftKey||Rn.metaKey||Rn.ctrlKey)){var ri=sr.filter(function(Xe){return Xe.key===An})[0],bn=(0,Tt.F)((0,Fe.Z)((0,Fe.Z)({},(0,Tt.H8)(An,It.getTreeNodeRequiredProps())),{},{data:ri.data}));It.setExpandedKeys(Hr?(0,Wt._5)(Er,An):(0,Wt.L0)(Er,An)),It.onNodeExpand(Rn,bn)}}),(0,lt.Z)((0,_e.Z)(It),"onNodeClick",function(Rn,er){var yn=It.props,Er=yn.onClick,sr=yn.expandAction;sr==="click"&&It.triggerExpandActionExpand(Rn,er),Er==null||Er(Rn,er)}),(0,lt.Z)((0,_e.Z)(It),"onNodeDoubleClick",function(Rn,er){var yn=It.props,Er=yn.onDoubleClick,sr=yn.expandAction;sr==="doubleClick"&&It.triggerExpandActionExpand(Rn,er),Er==null||Er(Rn,er)}),(0,lt.Z)((0,_e.Z)(It),"onNodeSelect",function(Rn,er){var yn=It.state.selectedKeys,Er=It.state,sr=Er.keyEntities,Hr=Er.fieldNames,An=It.props,yi=An.onSelect,ri=An.multiple,bn=er.selected,Xe=er[Hr.key],Ji=!bn;Ji?ri?yn=(0,Wt.L0)(yn,Xe):yn=[Xe]:yn=(0,Wt._5)(yn,Xe);var Qn=yn.map(function(Sn){var to=(0,tn.Z)(sr,Sn);return to?to.node:null}).filter(Boolean);It.setUncontrolledState({selectedKeys:yn}),yi==null||yi(yn,{event:"select",selected:Ji,node:er,selectedNodes:Qn,nativeEvent:Rn.nativeEvent})}),(0,lt.Z)((0,_e.Z)(It),"onNodeCheck",function(Rn,er,yn){var Er=It.state,sr=Er.keyEntities,Hr=Er.checkedKeys,An=Er.halfCheckedKeys,yi=It.props,ri=yi.checkStrictly,bn=yi.onCheck,Xe=er.key,Ji,Qn={event:"check",node:er,checked:yn,nativeEvent:Rn.nativeEvent};if(ri){var Sn=yn?(0,Wt.L0)(Hr,Xe):(0,Wt._5)(Hr,Xe),to=(0,Wt._5)(An,Xe);Ji={checked:Sn,halfChecked:to},Qn.checkedNodes=Sn.map(function(Hi){return(0,tn.Z)(sr,Hi)}).filter(Boolean).map(function(Hi){return Hi.node}),It.setUncontrolledState({checkedKeys:Sn})}else{var Ki=(0,ht.S)([].concat((0,Oe.Z)(Hr),[Xe]),!0,sr),Zr=Ki.checkedKeys,hi=Ki.halfCheckedKeys;if(!yn){var Ir=new Set(Zr);Ir.delete(Xe);var fn=(0,ht.S)(Array.from(Ir),{checked:!1,halfCheckedKeys:hi},sr);Zr=fn.checkedKeys,hi=fn.halfCheckedKeys}Ji=Zr,Qn.checkedNodes=[],Qn.checkedNodesPositions=[],Qn.halfCheckedKeys=hi,Zr.forEach(function(Hi){var ao=(0,tn.Z)(sr,Hi);if(ao){var ui=ao.node,ai=ao.pos;Qn.checkedNodes.push(ui),Qn.checkedNodesPositions.push({node:ui,pos:ai})}}),It.setUncontrolledState({checkedKeys:Zr},!1,{halfCheckedKeys:hi})}bn==null||bn(Ji,Qn)}),(0,lt.Z)((0,_e.Z)(It),"onNodeLoad",function(Rn){var er,yn=Rn.key,Er=It.state.keyEntities,sr=(0,tn.Z)(Er,yn);if(!(sr!=null&&(er=sr.children)!==null&&er!==void 0&&er.length)){var Hr=new Promise(function(An,yi){It.setState(function(ri){var bn=ri.loadedKeys,Xe=bn===void 0?[]:bn,Ji=ri.loadingKeys,Qn=Ji===void 0?[]:Ji,Sn=It.props,to=Sn.loadData,Ki=Sn.onLoad;if(!to||Xe.includes(yn)||Qn.includes(yn))return null;var Zr=to(Rn);return Zr.then(function(){var hi=It.state.loadedKeys,Ir=(0,Wt.L0)(hi,yn);Ki==null||Ki(Ir,{event:"load",node:Rn}),It.setUncontrolledState({loadedKeys:Ir}),It.setState(function(fn){return{loadingKeys:(0,Wt._5)(fn.loadingKeys,yn)}}),An()}).catch(function(hi){if(It.setState(function(fn){return{loadingKeys:(0,Wt._5)(fn.loadingKeys,yn)}}),It.loadingRetryTimes[yn]=(It.loadingRetryTimes[yn]||0)+1,It.loadingRetryTimes[yn]>=an){var Ir=It.state.loadedKeys;(0,te.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),It.setUncontrolledState({loadedKeys:(0,Wt.L0)(Ir,yn)}),An()}yi(hi)}),{loadingKeys:(0,Wt.L0)(Qn,yn)}})});return Hr.catch(function(){}),Hr}}),(0,lt.Z)((0,_e.Z)(It),"onNodeMouseEnter",function(Rn,er){var yn=It.props.onMouseEnter;yn==null||yn({event:Rn,node:er})}),(0,lt.Z)((0,_e.Z)(It),"onNodeMouseLeave",function(Rn,er){var yn=It.props.onMouseLeave;yn==null||yn({event:Rn,node:er})}),(0,lt.Z)((0,_e.Z)(It),"onNodeContextMenu",function(Rn,er){var yn=It.props.onRightClick;yn&&(Rn.preventDefault(),yn({event:Rn,node:er}))}),(0,lt.Z)((0,_e.Z)(It),"onFocus",function(){var Rn=It.props.onFocus;It.setState({focused:!0});for(var er=arguments.length,yn=new Array(er),Er=0;Er<er;Er++)yn[Er]=arguments[Er];Rn==null||Rn.apply(void 0,yn)}),(0,lt.Z)((0,_e.Z)(It),"onBlur",function(){var Rn=It.props.onBlur;It.setState({focused:!1}),It.onActiveChange(null);for(var er=arguments.length,yn=new Array(er),Er=0;Er<er;Er++)yn[Er]=arguments[Er];Rn==null||Rn.apply(void 0,yn)}),(0,lt.Z)((0,_e.Z)(It),"getTreeNodeRequiredProps",function(){var Rn=It.state,er=Rn.expandedKeys,yn=Rn.selectedKeys,Er=Rn.loadedKeys,sr=Rn.loadingKeys,Hr=Rn.checkedKeys,An=Rn.halfCheckedKeys,yi=Rn.dragOverNodeKey,ri=Rn.dropPosition,bn=Rn.keyEntities;return{expandedKeys:er||[],selectedKeys:yn||[],loadedKeys:Er||[],loadingKeys:sr||[],checkedKeys:Hr||[],halfCheckedKeys:An||[],dragOverNodeKey:yi,dropPosition:ri,keyEntities:bn}}),(0,lt.Z)((0,_e.Z)(It),"setExpandedKeys",function(Rn){var er=It.state,yn=er.treeData,Er=er.fieldNames,sr=(0,Tt.oH)(yn,Rn,Er);It.setUncontrolledState({expandedKeys:Rn,flattenNodes:sr},!0)}),(0,lt.Z)((0,_e.Z)(It),"onNodeExpand",function(Rn,er){var yn=It.state.expandedKeys,Er=It.state,sr=Er.listChanging,Hr=Er.fieldNames,An=It.props,yi=An.onExpand,ri=An.loadData,bn=er.expanded,Xe=er[Hr.key];if(!sr){var Ji=yn.includes(Xe),Qn=!bn;if((0,te.ZP)(bn&&Ji||!bn&&!Ji,"Expand state not sync with index check"),yn=Qn?(0,Wt.L0)(yn,Xe):(0,Wt._5)(yn,Xe),It.setExpandedKeys(yn),yi==null||yi(yn,{node:er,expanded:Qn,nativeEvent:Rn.nativeEvent}),Qn&&ri){var Sn=It.onNodeLoad(er);Sn&&Sn.then(function(){var to=(0,Tt.oH)(It.state.treeData,yn,Hr);It.setUncontrolledState({flattenNodes:to})}).catch(function(){var to=It.state.expandedKeys,Ki=(0,Wt._5)(to,Xe);It.setExpandedKeys(Ki)})}}}),(0,lt.Z)((0,_e.Z)(It),"onListChangeStart",function(){It.setUncontrolledState({listChanging:!0})}),(0,lt.Z)((0,_e.Z)(It),"onListChangeEnd",function(){setTimeout(function(){It.setUncontrolledState({listChanging:!1})})}),(0,lt.Z)((0,_e.Z)(It),"onActiveChange",function(Rn){var er=It.state.activeKey,yn=It.props,Er=yn.onActiveChange,sr=yn.itemScrollOffset,Hr=sr===void 0?0:sr;er!==Rn&&(It.setState({activeKey:Rn}),Rn!==null&&It.scrollTo({key:Rn,offset:Hr}),Er==null||Er(Rn))}),(0,lt.Z)((0,_e.Z)(It),"getActiveItem",function(){var Rn=It.state,er=Rn.activeKey,yn=Rn.flattenNodes;return er===null?null:yn.find(function(Er){var sr=Er.key;return sr===er})||null}),(0,lt.Z)((0,_e.Z)(It),"offsetActiveKey",function(Rn){var er=It.state,yn=er.flattenNodes,Er=er.activeKey,sr=yn.findIndex(function(yi){var ri=yi.key;return ri===Er});sr===-1&&Rn<0&&(sr=yn.length),sr=(sr+Rn+yn.length)%yn.length;var Hr=yn[sr];if(Hr){var An=Hr.key;It.onActiveChange(An)}else It.onActiveChange(null)}),(0,lt.Z)((0,_e.Z)(It),"onKeyDown",function(Rn){var er=It.state,yn=er.activeKey,Er=er.expandedKeys,sr=er.checkedKeys,Hr=er.fieldNames,An=It.props,yi=An.onKeyDown,ri=An.checkable,bn=An.selectable;switch(Rn.which){case _t.Z.UP:{It.offsetActiveKey(-1),Rn.preventDefault();break}case _t.Z.DOWN:{It.offsetActiveKey(1),Rn.preventDefault();break}}var Xe=It.getActiveItem();if(Xe&&Xe.data){var Ji=It.getTreeNodeRequiredProps(),Qn=Xe.data.isLeaf===!1||!!(Xe.data[Hr.children]||[]).length,Sn=(0,Tt.F)((0,Fe.Z)((0,Fe.Z)({},(0,Tt.H8)(yn,Ji)),{},{data:Xe.data,active:!0}));switch(Rn.which){case _t.Z.LEFT:{Qn&&Er.includes(yn)?It.onNodeExpand({},Sn):Xe.parent&&It.onActiveChange(Xe.parent.key),Rn.preventDefault();break}case _t.Z.RIGHT:{Qn&&!Er.includes(yn)?It.onNodeExpand({},Sn):Xe.children&&Xe.children.length&&It.onActiveChange(Xe.children[0].key),Rn.preventDefault();break}case _t.Z.ENTER:case _t.Z.SPACE:{ri&&!Sn.disabled&&Sn.checkable!==!1&&!Sn.disableCheckbox?It.onNodeCheck({},Sn,!sr.includes(yn)):!ri&&bn&&!Sn.disabled&&Sn.selectable!==!1&&It.onNodeSelect({},Sn);break}}}yi==null||yi(Rn)}),(0,lt.Z)((0,_e.Z)(It),"setUncontrolledState",function(Rn){var er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,yn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!It.destroyed){var Er=!1,sr=!0,Hr={};Object.keys(Rn).forEach(function(An){if(It.props.hasOwnProperty(An)){sr=!1;return}Er=!0,Hr[An]=Rn[An]}),Er&&(!er||sr)&&It.setState((0,Fe.Z)((0,Fe.Z)({},Hr),yn))}}),(0,lt.Z)((0,_e.Z)(It),"scrollTo",function(Rn){It.listRef.current.scrollTo(Rn)}),It}return(0,Me.Z)(Ye,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var In=this.props,Kn=In.activeKey,dr=In.itemScrollOffset,Rn=dr===void 0?0:dr;Kn!==void 0&&Kn!==this.state.activeKey&&(this.setState({activeKey:Kn}),Kn!==null&&this.scrollTo({key:Kn,offset:Rn}))}},{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 In=this.state,Kn=In.focused,dr=In.flattenNodes,Rn=In.keyEntities,er=In.draggingNodeKey,yn=In.activeKey,Er=In.dropLevelOffset,sr=In.dropContainerKey,Hr=In.dropTargetKey,An=In.dropPosition,yi=In.dragOverNodeKey,ri=In.indent,bn=this.props,Xe=bn.prefixCls,Ji=bn.className,Qn=bn.style,Sn=bn.showLine,to=bn.focusable,Ki=bn.tabIndex,Zr=Ki===void 0?0:Ki,hi=bn.selectable,Ir=bn.showIcon,fn=bn.icon,Hi=bn.switcherIcon,ao=bn.draggable,ui=bn.checkable,ai=bn.checkStrictly,Ni=bn.disabled,ir=bn.motion,We=bn.loadData,rr=bn.filterTreeNode,ur=bn.height,hr=bn.itemHeight,Or=bn.scrollWidth,jr=bn.virtual,si=bn.titleRender,Fi=bn.dropIndicatorRender,Vn=bn.onContextMenu,Wn=bn.onScroll,vn=bn.direction,tr=bn.rootClassName,mi=bn.rootStyle,gi=(0,Ge.Z)(this.props,{aria:!0,data:!0}),ti;ao&&((0,Pe.Z)(ao)==="object"?ti=ao:typeof ao=="function"?ti={nodeDraggable:ao}:ti={});var Hn={prefixCls:Xe,selectable:hi,showIcon:Ir,icon:fn,switcherIcon:Hi,draggable:ti,draggingNodeKey:er,checkable:ui,checkStrictly:ai,disabled:Ni,keyEntities:Rn,dropLevelOffset:Er,dropContainerKey:sr,dropTargetKey:Hr,dropPosition:An,dragOverNodeKey:yi,indent:ri,direction:vn,dropIndicatorRender:Fi,loadData:We,filterTreeNode:rr,titleRender:si,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(de.k.Provider,{value:Hn},ee.createElement("div",{className:rt()(Xe,Ji,tr,(0,lt.Z)((0,lt.Z)((0,lt.Z)({},"".concat(Xe,"-show-line"),Sn),"".concat(Xe,"-focused"),Kn),"".concat(Xe,"-active-focused"),yn!==null)),style:mi},ee.createElement(Ft,(0,ie.Z)({ref:this.listRef,prefixCls:Xe,style:Qn,data:dr,disabled:Ni,selectable:hi,checkable:!!ui,motion:ir,dragging:er!==null,height:ur,itemHeight:hr,virtual:jr,focusable:to,focused:Kn,tabIndex:Zr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Vn,onScroll:Wn,scrollWidth:Or},this.getTreeNodeRequiredProps(),gi))))}}],[{key:"getDerivedStateFromProps",value:function(In,Kn){var dr=Kn.prevProps,Rn={prevProps:In};function er(Zr){return!dr&&In.hasOwnProperty(Zr)||dr&&dr[Zr]!==In[Zr]}var yn,Er=Kn.fieldNames;if(er("fieldNames")&&(Er=(0,Tt.w$)(In.fieldNames),Rn.fieldNames=Er),er("treeData")?yn=In.treeData:er("children")&&((0,te.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),yn=(0,Tt.zn)(In.children)),yn){Rn.treeData=yn;var sr=(0,Tt.I8)(yn,{fieldNames:Er});Rn.keyEntities=(0,Fe.Z)((0,lt.Z)({},pt,on),sr.keyEntities)}var Hr=Rn.keyEntities||Kn.keyEntities;if(er("expandedKeys")||dr&&er("autoExpandParent"))Rn.expandedKeys=In.autoExpandParent||!dr&&In.defaultExpandParent?(0,Wt.r7)(In.expandedKeys,Hr):In.expandedKeys;else if(!dr&&In.defaultExpandAll){var An=(0,Fe.Z)({},Hr);delete An[pt];var yi=[];Object.keys(An).forEach(function(Zr){var hi=An[Zr];hi.children&&hi.children.length&&yi.push(hi.key)}),Rn.expandedKeys=yi}else!dr&&In.defaultExpandedKeys&&(Rn.expandedKeys=In.autoExpandParent||In.defaultExpandParent?(0,Wt.r7)(In.defaultExpandedKeys,Hr):In.defaultExpandedKeys);if(Rn.expandedKeys||delete Rn.expandedKeys,yn||Rn.expandedKeys){var ri=(0,Tt.oH)(yn||Kn.treeData,Rn.expandedKeys||Kn.expandedKeys,Er);Rn.flattenNodes=ri}if(In.selectable&&(er("selectedKeys")?Rn.selectedKeys=(0,Wt.BT)(In.selectedKeys,In):!dr&&In.defaultSelectedKeys&&(Rn.selectedKeys=(0,Wt.BT)(In.defaultSelectedKeys,In))),In.checkable){var bn;if(er("checkedKeys")?bn=(0,Wt.E6)(In.checkedKeys)||{}:!dr&&In.defaultCheckedKeys?bn=(0,Wt.E6)(In.defaultCheckedKeys)||{}:yn&&(bn=(0,Wt.E6)(In.checkedKeys)||{checkedKeys:Kn.checkedKeys,halfCheckedKeys:Kn.halfCheckedKeys}),bn){var Xe=bn,Ji=Xe.checkedKeys,Qn=Ji===void 0?[]:Ji,Sn=Xe.halfCheckedKeys,to=Sn===void 0?[]:Sn;if(!In.checkStrictly){var Ki=(0,ht.S)(Qn,!0,Hr);Qn=Ki.checkedKeys,to=Ki.halfCheckedKeys}Rn.checkedKeys=Qn,Rn.halfCheckedKeys=to}}return er("loadedKeys")&&(Rn.loadedKeys=In.loadedKeys),Rn}}]),Ye}(ee.Component);(0,lt.Z)(ct,"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:pe,allowDrop:function(){return!0},expandAction:!1}),(0,lt.Z)(ct,"TreeNode",gt.Z);var Ue=ct,He=Ue},10225:function(Ke,we,ae){"use strict";ae.d(we,{BT:function(){return ee},E6:function(){return pe},L0:function(){return lt},OM:function(){return te},_5:function(){return et},r7:function(){return me},wA:function(){return rt},yx:function(){return Et}});var ie=ae(74902),Pe=ae(71002),Fe=ae(80334),Oe=ae(67294),tt=ae(86128),Me=ae(35381),_e=ae(1089),ut=null;function et(xe,be){if(!xe)return[];var Be=xe.slice(),at=Be.indexOf(be);return at>=0&&Be.splice(at,1),Be}function lt(xe,be){var Be=(xe||[]).slice();return Be.indexOf(be)===-1&&Be.push(be),Be}function Et(xe){return xe.split("-")}function rt(xe,be){var Be=[],at=(0,Me.Z)(be,xe);function dt(){var gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];gt.forEach(function(ft){var Nt=ft.key,Tt=ft.children;Be.push(Nt),dt(Tt)})}return dt(at.children),Be}function _t(xe){if(xe.parent){var be=Et(xe.pos);return Number(be[be.length-1])===xe.parent.children.length-1}return!1}function Ge(xe){var be=Et(xe.pos);return Number(be[be.length-1])===0}function te(xe,be,Be,at,dt,gt,ft,Nt,Tt,Ct){var Vt,Rt=xe.clientX,nn=xe.clientY,Cn=xe.target.getBoundingClientRect(),un=Cn.top,Nn=Cn.height,wt=(Ct==="rtl"?-1:1)*(((dt==null?void 0:dt.x)||0)-Rt),pt=(wt-12)/at,Ie=Tt.filter(function(He){var it;return(it=Nt[He])===null||it===void 0||(it=it.children)===null||it===void 0?void 0:it.length}),on=(0,Me.Z)(Nt,Be.eventKey);if(nn<un+Nn/2){var Bn=ft.findIndex(function(He){return He.key===on.key}),Zt=Bn<=0?0:Bn-1,zn=ft[Zt].key;on=(0,Me.Z)(Nt,zn)}var _n=on.key,nr=on,Ft=on.key,Wt=0,ht=0;if(!Ie.includes(_n))for(var tn=0;tn<pt&&_t(on);tn+=1)on=on.parent,ht+=1;var an=be.data,ct=on.node,Ue=!0;return Ge(on)&&on.level===0&&nn<un+Nn/2&>({dragNode:an,dropNode:ct,dropPosition:-1})&&on.key===Be.eventKey?Wt=-1:(nr.children||[]).length&&Ie.includes(Ft)?gt({dragNode:an,dropNode:ct,dropPosition:0})?Wt=0:Ue=!1:ht===0?pt>-1.5?gt({dragNode:an,dropNode:ct,dropPosition:1})?Wt=1:Ue=!1:gt({dragNode:an,dropNode:ct,dropPosition:0})?Wt=0:gt({dragNode:an,dropNode:ct,dropPosition:1})?Wt=1:Ue=!1:gt({dragNode:an,dropNode:ct,dropPosition:1})?Wt=1:Ue=!1,{dropPosition:Wt,dropLevelOffset:ht,dropTargetKey:on.key,dropTargetPos:on.pos,dragOverNodeKey:Ft,dropContainerKey:Wt===0?null:((Vt=on.parent)===null||Vt===void 0?void 0:Vt.key)||null,dropAllowed:Ue}}function ee(xe,be){if(xe){var Be=be.multiple;return Be?xe.slice():xe.length?[xe[0]]:xe}}var de=function(be){return be};function le(xe,be){if(!xe)return[];var Be=be||{},at=Be.processProps,dt=at===void 0?de:at,gt=Array.isArray(xe)?xe:[xe];return gt.map(function(ft){var Nt=ft.children,Tt=_objectWithoutProperties(ft,ut),Ct=le(Nt,be);return React.createElement(TreeNode,_extends({key:Tt.key},dt(Tt)),Ct)})}function pe(xe){if(!xe)return null;var be;if(Array.isArray(xe))be={checkedKeys:xe,halfCheckedKeys:void 0};else if((0,Pe.Z)(xe)==="object")be={checkedKeys:xe.checked||void 0,halfCheckedKeys:xe.halfChecked||void 0};else return(0,Fe.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return be}function me(xe,be){var Be=new Set;function at(dt){if(!Be.has(dt)){var gt=(0,Me.Z)(be,dt);if(gt){Be.add(dt);var ft=gt.parent,Nt=gt.node;Nt.disabled||ft&&at(ft.key)}}}return(xe||[]).forEach(function(dt){at(dt)}),(0,ie.Z)(Be)}},17341:function(Ke,we,ae){"use strict";ae.d(we,{S:function(){return _e}});var ie=ae(80334),Pe=ae(35381);function Fe(ut,et){var lt=new Set;return ut.forEach(function(Et){et.has(Et)||lt.add(Et)}),lt}function Oe(ut){var et=ut||{},lt=et.disabled,Et=et.disableCheckbox,rt=et.checkable;return!!(lt||Et)||rt===!1}function tt(ut,et,lt,Et){for(var rt=new Set(ut),_t=new Set,Ge=0;Ge<=lt;Ge+=1){var te=et.get(Ge)||new Set;te.forEach(function(pe){var me=pe.key,xe=pe.node,be=pe.children,Be=be===void 0?[]:be;rt.has(me)&&!Et(xe)&&Be.filter(function(at){return!Et(at.node)}).forEach(function(at){rt.add(at.key)})})}for(var ee=new Set,de=lt;de>=0;de-=1){var le=et.get(de)||new Set;le.forEach(function(pe){var me=pe.parent,xe=pe.node;if(!(Et(xe)||!pe.parent||ee.has(pe.parent.key))){if(Et(pe.parent.node)){ee.add(me.key);return}var be=!0,Be=!1;(me.children||[]).filter(function(at){return!Et(at.node)}).forEach(function(at){var dt=at.key,gt=rt.has(dt);be&&!gt&&(be=!1),!Be&&(gt||_t.has(dt))&&(Be=!0)}),be&&rt.add(me.key),Be&&_t.add(me.key),ee.add(me.key)}})}return{checkedKeys:Array.from(rt),halfCheckedKeys:Array.from(Fe(_t,rt))}}function Me(ut,et,lt,Et,rt){for(var _t=new Set(ut),Ge=new Set(et),te=0;te<=Et;te+=1){var ee=lt.get(te)||new Set;ee.forEach(function(me){var xe=me.key,be=me.node,Be=me.children,at=Be===void 0?[]:Be;!_t.has(xe)&&!Ge.has(xe)&&!rt(be)&&at.filter(function(dt){return!rt(dt.node)}).forEach(function(dt){_t.delete(dt.key)})})}Ge=new Set;for(var de=new Set,le=Et;le>=0;le-=1){var pe=lt.get(le)||new Set;pe.forEach(function(me){var xe=me.parent,be=me.node;if(!(rt(be)||!me.parent||de.has(me.parent.key))){if(rt(me.parent.node)){de.add(xe.key);return}var Be=!0,at=!1;(xe.children||[]).filter(function(dt){return!rt(dt.node)}).forEach(function(dt){var gt=dt.key,ft=_t.has(gt);Be&&!ft&&(Be=!1),!at&&(ft||Ge.has(gt))&&(at=!0)}),Be||_t.delete(xe.key),at&&Ge.add(xe.key),de.add(xe.key)}})}return{checkedKeys:Array.from(_t),halfCheckedKeys:Array.from(Fe(Ge,_t))}}function _e(ut,et,lt,Et){var rt=[],_t;Et?_t=Et:_t=Oe;var Ge=new Set(ut.filter(function(le){var pe=!!(0,Pe.Z)(lt,le);return pe||rt.push(le),pe})),te=new Map,ee=0;Object.keys(lt).forEach(function(le){var pe=lt[le],me=pe.level,xe=te.get(me);xe||(xe=new Set,te.set(me,xe)),xe.add(pe),ee=Math.max(ee,me)}),(0,ie.ZP)(!rt.length,"Tree missing follow keys: ".concat(rt.slice(0,100).map(function(le){return"'".concat(le,"'")}).join(", ")));var de;return et===!0?de=tt(Ge,te,ee,_t):de=Me(Ge,et.halfCheckedKeys,te,ee,_t),de}},35381:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return ie}});function ie(Pe,Fe){return Pe[Fe]}},1089:function(Ke,we,ae){"use strict";ae.d(we,{F:function(){return me},H8:function(){return pe},I8:function(){return le},km:function(){return rt},oH:function(){return ee},w$:function(){return _t},zn:function(){return te}});var ie=ae(71002),Pe=ae(74902),Fe=ae(1413),Oe=ae(45987),tt=ae(50344),Me=ae(98423),_e=ae(80334),ut=ae(35381),et=["children"];function lt(xe,be){return"".concat(xe,"-").concat(be)}function Et(xe){return xe&&xe.type&&xe.type.isTreeNode}function rt(xe,be){return xe!=null?xe:be}function _t(xe){var be=xe||{},Be=be.title,at=be._title,dt=be.key,gt=be.children,ft=Be||"title";return{title:ft,_title:at||[ft],key:dt||"key",children:gt||"children"}}function Ge(xe,be){var Be=new Map;function at(dt){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(dt||[]).forEach(function(ft){var Nt=ft[be.key],Tt=ft[be.children];warning(Nt!=null,"Tree node must have a certain key: [".concat(gt).concat(Nt,"]"));var Ct=String(Nt);warning(!Be.has(Ct)||Nt===null||Nt===void 0,"Same 'key' exist in the Tree: ".concat(Ct)),Be.set(Ct,!0),at(Tt,"".concat(gt).concat(Ct," > "))})}at(xe)}function te(xe){function be(Be){var at=(0,tt.Z)(Be);return at.map(function(dt){if(!Et(dt))return(0,_e.ZP)(!dt,"Tree/TreeNode can only accept TreeNode as children."),null;var gt=dt.key,ft=dt.props,Nt=ft.children,Tt=(0,Oe.Z)(ft,et),Ct=(0,Fe.Z)({key:gt},Tt),Vt=be(Nt);return Vt.length&&(Ct.children=Vt),Ct}).filter(function(dt){return dt})}return be(xe)}function ee(xe,be,Be){var at=_t(Be),dt=at._title,gt=at.key,ft=at.children,Nt=new Set(be===!0?[]:be),Tt=[];function Ct(Vt){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Vt.map(function(nn,Cn){for(var un=lt(Rt?Rt.pos:"0",Cn),Nn=rt(nn[gt],un),wt,pt=0;pt<dt.length;pt+=1){var Ie=dt[pt];if(nn[Ie]!==void 0){wt=nn[Ie];break}}var on=Object.assign((0,Me.Z)(nn,[].concat((0,Pe.Z)(dt),[gt,ft])),{title:wt,key:Nn,parent:Rt,pos:un,children:null,data:nn,isStart:[].concat((0,Pe.Z)(Rt?Rt.isStart:[]),[Cn===0]),isEnd:[].concat((0,Pe.Z)(Rt?Rt.isEnd:[]),[Cn===Vt.length-1])});return Tt.push(on),be===!0||Nt.has(Nn)?on.children=Ct(nn[ft]||[],on):on.children=[],on})}return Ct(xe),Tt}function de(xe,be,Be){var at={};(0,ie.Z)(Be)==="object"?at=Be:at={externalGetKey:Be},at=at||{};var dt=at,gt=dt.childrenPropName,ft=dt.externalGetKey,Nt=dt.fieldNames,Tt=_t(Nt),Ct=Tt.key,Vt=Tt.children,Rt=gt||Vt,nn;ft?typeof ft=="string"?nn=function(Nn){return Nn[ft]}:typeof ft=="function"&&(nn=function(Nn){return ft(Nn)}):nn=function(Nn,wt){return rt(Nn[Ct],wt)};function Cn(un,Nn,wt,pt){var Ie=un?un[Rt]:xe,on=un?lt(wt.pos,Nn):"0",Bn=un?[].concat((0,Pe.Z)(pt),[un]):[];if(un){var Zt=nn(un,on),zn={node:un,index:Nn,pos:on,key:Zt,parentPos:wt.node?wt.pos:null,level:wt.level+1,nodes:Bn};be(zn)}Ie&&Ie.forEach(function(_n,nr){Cn(_n,nr,{node:un,pos:on,level:wt?wt.level+1:-1},Bn)})}Cn(null)}function le(xe){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Be=be.initWrapper,at=be.processEntity,dt=be.onProcessFinished,gt=be.externalGetKey,ft=be.childrenPropName,Nt=be.fieldNames,Tt=arguments.length>2?arguments[2]:void 0,Ct=gt||Tt,Vt={},Rt={},nn={posEntities:Vt,keyEntities:Rt};return Be&&(nn=Be(nn)||nn),de(xe,function(Cn){var un=Cn.node,Nn=Cn.index,wt=Cn.pos,pt=Cn.key,Ie=Cn.parentPos,on=Cn.level,Bn=Cn.nodes,Zt={node:un,nodes:Bn,index:Nn,key:pt,pos:wt,level:on},zn=rt(pt,wt);Vt[wt]=Zt,Rt[zn]=Zt,Zt.parent=Vt[Ie],Zt.parent&&(Zt.parent.children=Zt.parent.children||[],Zt.parent.children.push(Zt)),at&&at(Zt,nn)},{externalGetKey:Ct,childrenPropName:ft,fieldNames:Nt}),dt&&dt(nn),nn}function pe(xe,be){var Be=be.expandedKeys,at=be.selectedKeys,dt=be.loadedKeys,gt=be.loadingKeys,ft=be.checkedKeys,Nt=be.halfCheckedKeys,Tt=be.dragOverNodeKey,Ct=be.dropPosition,Vt=be.keyEntities,Rt=(0,ut.Z)(Vt,xe),nn={eventKey:xe,expanded:Be.indexOf(xe)!==-1,selected:at.indexOf(xe)!==-1,loaded:dt.indexOf(xe)!==-1,loading:gt.indexOf(xe)!==-1,checked:ft.indexOf(xe)!==-1,halfChecked:Nt.indexOf(xe)!==-1,pos:String(Rt?Rt.pos:""),dragOver:Tt===xe&&Ct===0,dragOverGapTop:Tt===xe&&Ct===-1,dragOverGapBottom:Tt===xe&&Ct===1};return nn}function me(xe){var be=xe.data,Be=xe.expanded,at=xe.selected,dt=xe.checked,gt=xe.loaded,ft=xe.loading,Nt=xe.halfChecked,Tt=xe.dragOver,Ct=xe.dragOverGapTop,Vt=xe.dragOverGapBottom,Rt=xe.pos,nn=xe.active,Cn=xe.eventKey,un=(0,Fe.Z)((0,Fe.Z)({},be),{},{expanded:Be,selected:at,checked:dt,loaded:gt,loading:ft,halfChecked:Nt,dragOver:Tt,dragOverGapTop:Ct,dragOverGapBottom:Vt,pos:Rt,active:nn,key:Cn});return"props"in un||Object.defineProperty(un,"props",{get:function(){return(0,_e.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),xe}}),un}},36356:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return Cn}});var ie=ae(87462),Pe=ae(15671),Fe=ae(43144),Oe=ae(97326),tt=ae(60136),Me=ae(29388),_e=ae(4942),ut=ae(67294),et=ae(1413),lt=ae(45987),Et=ae(71002),rt=ae(74165),_t=ae(15861),Ge=ae(74902),te=ae(94184),ee=ae.n(te),de=ae(64217),le=ae(80334),pe=function(un,Nn){if(un&&Nn){var wt=Array.isArray(Nn)?Nn:Nn.split(","),pt=un.name||"",Ie=un.type||"",on=Ie.replace(/\/.*$/,"");return wt.some(function(Bn){var Zt=Bn.trim();if(/^\*(\/\*)?$/.test(Bn))return!0;if(Zt.charAt(0)==="."){var zn=pt.toLowerCase(),_n=Zt.toLowerCase(),nr=[_n];return(_n===".jpg"||_n===".jpeg")&&(nr=[".jpg",".jpeg"]),nr.some(function(Ft){return zn.endsWith(Ft)})}return/\/\*$/.test(Zt)?on===Zt.replace(/\/.*$/,""):Ie===Zt?!0:/^\w+$/.test(Zt)?((0,le.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Zt,"'.Skip for check.")),!0):!1})}return!0};function me(un,Nn){var wt="cannot ".concat(un.method," ").concat(un.action," ").concat(Nn.status,"'"),pt=new Error(wt);return pt.status=Nn.status,pt.method=un.method,pt.url=un.action,pt}function xe(un){var Nn=un.responseText||un.response;if(!Nn)return Nn;try{return JSON.parse(Nn)}catch(wt){return Nn}}function be(un){var Nn=new XMLHttpRequest;un.onProgress&&Nn.upload&&(Nn.upload.onprogress=function(on){on.total>0&&(on.percent=on.loaded/on.total*100),un.onProgress(on)});var wt=new FormData;un.data&&Object.keys(un.data).forEach(function(Ie){var on=un.data[Ie];if(Array.isArray(on)){on.forEach(function(Bn){wt.append("".concat(Ie,"[]"),Bn)});return}wt.append(Ie,on)}),un.file instanceof Blob?wt.append(un.filename,un.file,un.file.name):wt.append(un.filename,un.file),Nn.onerror=function(on){un.onError(on)},Nn.onload=function(){return Nn.status<200||Nn.status>=300?un.onError(me(un,Nn),xe(Nn)):un.onSuccess(xe(Nn),Nn)},Nn.open(un.method,un.action,!0),un.withCredentials&&"withCredentials"in Nn&&(Nn.withCredentials=!0);var pt=un.headers||{};return pt["X-Requested-With"]!==null&&Nn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(pt).forEach(function(Ie){pt[Ie]!==null&&Nn.setRequestHeader(Ie,pt[Ie])}),Nn.send(wt),{abort:function(){Nn.abort()}}}var Be=function(){var un=(0,_t.Z)((0,rt.Z)().mark(function Nn(wt,pt){var Ie,on,Bn,Zt,zn,_n,nr,Ft;return(0,rt.Z)().wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:_n=function(){return _n=(0,_t.Z)((0,rt.Z)().mark(function an(ct){return(0,rt.Z)().wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return He.abrupt("return",new Promise(function(it){ct.file(function(vt){pt(vt)?(ct.fullPath&&!vt.webkitRelativePath&&(Object.defineProperties(vt,{webkitRelativePath:{writable:!0}}),vt.webkitRelativePath=ct.fullPath.replace(/^\//,""),Object.defineProperties(vt,{webkitRelativePath:{writable:!1}})),it(vt)):it(null)})}));case 1:case"end":return He.stop()}},an)})),_n.apply(this,arguments)},zn=function(an){return _n.apply(this,arguments)},Zt=function(){return Zt=(0,_t.Z)((0,rt.Z)().mark(function an(ct){var Ue,He,it,vt,Ye;return(0,rt.Z)().wrap(function(In){for(;;)switch(In.prev=In.next){case 0:Ue=ct.createReader(),He=[];case 2:return In.next=5,new Promise(function(Kn){Ue.readEntries(Kn,function(){return Kn([])})});case 5:if(it=In.sent,vt=it.length,vt){In.next=9;break}return In.abrupt("break",12);case 9:for(Ye=0;Ye<vt;Ye++)He.push(it[Ye]);In.next=2;break;case 12:return In.abrupt("return",He);case 13:case"end":return In.stop()}},an)})),Zt.apply(this,arguments)},Bn=function(an){return Zt.apply(this,arguments)},Ie=[],on=[],wt.forEach(function(tn){return on.push(tn.webkitGetAsEntry())}),nr=function(){var tn=(0,_t.Z)((0,rt.Z)().mark(function an(ct,Ue){var He,it;return(0,rt.Z)().wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(ct){Ye.next=2;break}return Ye.abrupt("return");case 2:if(ct.path=Ue||"",!ct.isFile){Ye.next=10;break}return Ye.next=6,zn(ct);case 6:He=Ye.sent,He&&Ie.push(He),Ye.next=15;break;case 10:if(!ct.isDirectory){Ye.next=15;break}return Ye.next=13,Bn(ct);case 13:it=Ye.sent,on.push.apply(on,(0,Ge.Z)(it));case 15:case"end":return Ye.stop()}},an)}));return function(ct,Ue){return tn.apply(this,arguments)}}(),Ft=0;case 9:if(!(Ft<on.length)){ht.next=15;break}return ht.next=12,nr(on[Ft]);case 12:Ft++,ht.next=9;break;case 15:return ht.abrupt("return",Ie);case 16:case"end":return ht.stop()}},Nn)}));return function(wt,pt){return un.apply(this,arguments)}}(),at=Be,dt=+new Date,gt=0;function ft(){return"rc-upload-".concat(dt,"-").concat(++gt)}var Nt=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Tt=function(un){(0,tt.Z)(wt,un);var Nn=(0,Me.Z)(wt);function wt(){var pt;(0,Pe.Z)(this,wt);for(var Ie=arguments.length,on=new Array(Ie),Bn=0;Bn<Ie;Bn++)on[Bn]=arguments[Bn];return pt=Nn.call.apply(Nn,[this].concat(on)),(0,_e.Z)((0,Oe.Z)(pt),"state",{uid:ft()}),(0,_e.Z)((0,Oe.Z)(pt),"reqs",{}),(0,_e.Z)((0,Oe.Z)(pt),"fileInput",void 0),(0,_e.Z)((0,Oe.Z)(pt),"_isMounted",void 0),(0,_e.Z)((0,Oe.Z)(pt),"onChange",function(Zt){var zn=pt.props,_n=zn.accept,nr=zn.directory,Ft=Zt.target.files,Wt=(0,Ge.Z)(Ft).filter(function(ht){return!nr||pe(ht,_n)});pt.uploadFiles(Wt),pt.reset()}),(0,_e.Z)((0,Oe.Z)(pt),"onClick",function(Zt){var zn=pt.fileInput;if(zn){var _n=Zt.target,nr=pt.props.onClick;if(_n&&_n.tagName==="BUTTON"){var Ft=zn.parentNode;Ft.focus(),_n.blur()}zn.click(),nr&&nr(Zt)}}),(0,_e.Z)((0,Oe.Z)(pt),"onKeyDown",function(Zt){Zt.key==="Enter"&&pt.onClick(Zt)}),(0,_e.Z)((0,Oe.Z)(pt),"onFileDrop",function(){var Zt=(0,_t.Z)((0,rt.Z)().mark(function zn(_n){var nr,Ft,Wt;return(0,rt.Z)().wrap(function(tn){for(;;)switch(tn.prev=tn.next){case 0:if(nr=pt.props.multiple,_n.preventDefault(),_n.type!=="dragover"){tn.next=4;break}return tn.abrupt("return");case 4:if(!pt.props.directory){tn.next=11;break}return tn.next=7,at(Array.prototype.slice.call(_n.dataTransfer.items),function(an){return pe(an,pt.props.accept)});case 7:Ft=tn.sent,pt.uploadFiles(Ft),tn.next=14;break;case 11:Wt=(0,Ge.Z)(_n.dataTransfer.files).filter(function(an){return pe(an,pt.props.accept)}),nr===!1&&(Wt=Wt.slice(0,1)),pt.uploadFiles(Wt);case 14:case"end":return tn.stop()}},zn)}));return function(zn){return Zt.apply(this,arguments)}}()),(0,_e.Z)((0,Oe.Z)(pt),"uploadFiles",function(Zt){var zn=(0,Ge.Z)(Zt),_n=zn.map(function(nr){return nr.uid=ft(),pt.processFile(nr,zn)});Promise.all(_n).then(function(nr){var Ft=pt.props.onBatchStart;Ft==null||Ft(nr.map(function(Wt){var ht=Wt.origin,tn=Wt.parsedFile;return{file:ht,parsedFile:tn}})),nr.filter(function(Wt){return Wt.parsedFile!==null}).forEach(function(Wt){pt.post(Wt)})})}),(0,_e.Z)((0,Oe.Z)(pt),"processFile",function(){var Zt=(0,_t.Z)((0,rt.Z)().mark(function zn(_n,nr){var Ft,Wt,ht,tn,an,ct,Ue,He,it;return(0,rt.Z)().wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(Ft=pt.props.beforeUpload,Wt=_n,!Ft){Ye.next=14;break}return Ye.prev=3,Ye.next=6,Ft(_n,nr);case 6:Wt=Ye.sent,Ye.next=12;break;case 9:Ye.prev=9,Ye.t0=Ye.catch(3),Wt=!1;case 12:if(Wt!==!1){Ye.next=14;break}return Ye.abrupt("return",{origin:_n,parsedFile:null,action:null,data:null});case 14:if(ht=pt.props.action,typeof ht!="function"){Ye.next=21;break}return Ye.next=18,ht(_n);case 18:tn=Ye.sent,Ye.next=22;break;case 21:tn=ht;case 22:if(an=pt.props.data,typeof an!="function"){Ye.next=29;break}return Ye.next=26,an(_n);case 26:ct=Ye.sent,Ye.next=30;break;case 29:ct=an;case 30:return Ue=((0,Et.Z)(Wt)==="object"||typeof Wt=="string")&&Wt?Wt:_n,Ue instanceof File?He=Ue:He=new File([Ue],_n.name,{type:_n.type}),it=He,it.uid=_n.uid,Ye.abrupt("return",{origin:_n,data:ct,parsedFile:it,action:tn});case 35:case"end":return Ye.stop()}},zn,null,[[3,9]])}));return function(zn,_n){return Zt.apply(this,arguments)}}()),(0,_e.Z)((0,Oe.Z)(pt),"saveFileInput",function(Zt){pt.fileInput=Zt}),pt}return(0,Fe.Z)(wt,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Ie){var on=this,Bn=Ie.data,Zt=Ie.origin,zn=Ie.action,_n=Ie.parsedFile;if(this._isMounted){var nr=this.props,Ft=nr.onStart,Wt=nr.customRequest,ht=nr.name,tn=nr.headers,an=nr.withCredentials,ct=nr.method,Ue=Zt.uid,He=Wt||be,it={action:zn,filename:ht,data:Bn,file:_n,headers:tn,withCredentials:an,method:ct||"post",onProgress:function(Ye){var It=on.props.onProgress;It==null||It(Ye,_n)},onSuccess:function(Ye,It){var In=on.props.onSuccess;In==null||In(Ye,_n,It),delete on.reqs[Ue]},onError:function(Ye,It){var In=on.props.onError;In==null||In(Ye,It,_n),delete on.reqs[Ue]}};Ft(Zt),this.reqs[Ue]=He(it)}}},{key:"reset",value:function(){this.setState({uid:ft()})}},{key:"abort",value:function(Ie){var on=this.reqs;if(Ie){var Bn=Ie.uid?Ie.uid:Ie;on[Bn]&&on[Bn].abort&&on[Bn].abort(),delete on[Bn]}else Object.keys(on).forEach(function(Zt){on[Zt]&&on[Zt].abort&&on[Zt].abort(),delete on[Zt]})}},{key:"render",value:function(){var Ie=this.props,on=Ie.component,Bn=Ie.prefixCls,Zt=Ie.className,zn=Ie.classNames,_n=zn===void 0?{}:zn,nr=Ie.disabled,Ft=Ie.id,Wt=Ie.name,ht=Ie.style,tn=Ie.styles,an=tn===void 0?{}:tn,ct=Ie.multiple,Ue=Ie.accept,He=Ie.capture,it=Ie.children,vt=Ie.directory,Ye=Ie.openFileDialogOnClick,It=Ie.onMouseEnter,In=Ie.onMouseLeave,Kn=Ie.hasControlInside,dr=(0,lt.Z)(Ie,Nt),Rn=ee()((0,_e.Z)((0,_e.Z)((0,_e.Z)({},Bn,!0),"".concat(Bn,"-disabled"),nr),Zt,Zt)),er=vt?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},yn=nr?{}:{onClick:Ye?this.onClick:function(){},onKeyDown:Ye?this.onKeyDown:function(){},onMouseEnter:It,onMouseLeave:In,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Kn?void 0:"0"};return ut.createElement(on,(0,ie.Z)({},yn,{className:Rn,role:Kn?void 0:"button",style:ht}),ut.createElement("input",(0,ie.Z)({},(0,de.Z)(dr,{aria:!0,data:!0}),{id:Ft,name:Wt,disabled:nr,type:"file",ref:this.saveFileInput,onClick:function(sr){return sr.stopPropagation()},key:this.state.uid,style:(0,et.Z)({display:"none"},an.input),className:_n.input,accept:Ue},er,{multiple:ct,onChange:this.onChange},He!=null?{capture:He}:{})),it)}}]),wt}(ut.Component),Ct=Tt;function Vt(){}var Rt=function(un){(0,tt.Z)(wt,un);var Nn=(0,Me.Z)(wt);function wt(){var pt;(0,Pe.Z)(this,wt);for(var Ie=arguments.length,on=new Array(Ie),Bn=0;Bn<Ie;Bn++)on[Bn]=arguments[Bn];return pt=Nn.call.apply(Nn,[this].concat(on)),(0,_e.Z)((0,Oe.Z)(pt),"uploader",void 0),(0,_e.Z)((0,Oe.Z)(pt),"saveUploader",function(Zt){pt.uploader=Zt}),pt}return(0,Fe.Z)(wt,[{key:"abort",value:function(Ie){this.uploader.abort(Ie)}},{key:"render",value:function(){return ut.createElement(Ct,(0,ie.Z)({},this.props,{ref:this.saveUploader}))}}]),wt}(ut.Component);(0,_e.Z)(Rt,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Vt,onError:Vt,onSuccess:Vt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var nn=Rt,Cn=nn},73299:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return Ni}});var ie=ae(87462),Pe=ae(1413),Fe=ae(71002),Oe=ae(97685),tt=ae(4942),Me=ae(45987),_e=ae(67294),ut=ae(73935),et=ae(94184),lt=ae.n(et),Et=ae(48555),rt=_e.forwardRef(function(ir,We){var rr=ir.height,ur=ir.offsetY,hr=ir.offsetX,Or=ir.children,jr=ir.prefixCls,si=ir.onInnerResize,Fi=ir.innerProps,Vn=ir.rtl,Wn=ir.extra,vn={},tr={display:"flex",flexDirection:"column"};if(ur!==void 0){var mi;vn={height:rr,position:"relative",overflow:"hidden"},tr=(0,Pe.Z)((0,Pe.Z)({},tr),{},(mi={transform:"translateY(".concat(ur,"px)")},(0,tt.Z)(mi,Vn?"marginRight":"marginLeft",-hr),(0,tt.Z)(mi,"position","absolute"),(0,tt.Z)(mi,"left",0),(0,tt.Z)(mi,"right",0),(0,tt.Z)(mi,"top",0),mi))}return _e.createElement("div",{style:vn},_e.createElement(Et.Z,{onResize:function(ti){var Hn=ti.offsetHeight;Hn&&si&&si()}},_e.createElement("div",(0,ie.Z)({style:tr,className:lt()((0,tt.Z)({},"".concat(jr,"-holder-inner"),jr)),ref:We},Fi),Or,Wn)))});rt.displayName="Filler";var _t=rt,Ge=function(We){return+setTimeout(We,16)},te=function(We){return clearTimeout(We)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Ge=function(We){return window.requestAnimationFrame(We)},te=function(We){return window.cancelAnimationFrame(We)});var ee=0,de=new Map;function le(ir){de.delete(ir)}var pe=function(We){var rr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ee+=1;var ur=ee;function hr(Or){if(Or===0)le(ur),We();else{var jr=Ge(function(){hr(Or-1)});de.set(ur,jr)}}return hr(rr),ur};pe.cancel=function(ir){var We=de.get(ir);return le(We),te(We)};var me=pe;function xe(ir,We){var rr="touches"in ir?ir.touches[0]:ir;return rr[We?"pageX":"pageY"]}var be=_e.forwardRef(function(ir,We){var rr,ur=ir.prefixCls,hr=ir.rtl,Or=ir.scrollOffset,jr=ir.scrollRange,si=ir.onStartMove,Fi=ir.onStopMove,Vn=ir.onScroll,Wn=ir.horizontal,vn=ir.spinSize,tr=ir.containerSize,mi=ir.style,gi=ir.thumbStyle,ti=_e.useState(!1),Hn=(0,Oe.Z)(ti,2),Cr=Hn[0],Ri=Hn[1],_i=_e.useState(null),Ur=(0,Oe.Z)(_i,2),Pn=Ur[0],xi=Ur[1],ji=_e.useState(null),Xo=(0,Oe.Z)(ji,2),wr=Xo[0],Gi=Xo[1],Jr=!hr,ls=_e.useRef(),Pa=_e.useRef(),Oi=_e.useState(!1),Yi=(0,Oe.Z)(Oi,2),uo=Yi[0],ba=Yi[1],Go=_e.useRef(),zr=function(){clearTimeout(Go.current),ba(!0),Go.current=setTimeout(function(){ba(!1)},3e3)},vo=jr-tr||0,sl=tr-vn||0,gs=vo>0,es=_e.useMemo(function(){if(Or===0||vo===0)return 0;var aa=Or/vo;return aa*sl},[Or,vo,sl]),Mn=function(za){za.stopPropagation(),za.preventDefault()},Co=_e.useRef({top:es,dragging:Cr,pageY:Pn,startTop:wr});Co.current={top:es,dragging:Cr,pageY:Pn,startTop:wr};var Ta=function(za){Ri(!0),xi(xe(za,Wn)),Gi(Co.current.top),si(),za.stopPropagation(),za.preventDefault()};_e.useEffect(function(){var aa=function(qt){qt.preventDefault()},za=ls.current,Ar=Pa.current;return za.addEventListener("touchstart",aa),Ar.addEventListener("touchstart",Ta),function(){za.removeEventListener("touchstart",aa),Ar.removeEventListener("touchstart",Ta)}},[]);var lo=_e.useRef();lo.current=vo;var oa=_e.useRef();oa.current=sl,_e.useEffect(function(){if(Cr){var aa,za=function(qt){var At=Co.current,Nr=At.dragging,Qt=At.pageY,ln=At.startTop;if(me.cancel(aa),Nr){var En=xe(qt,Wn)-Qt,Xn=ln;!Jr&&Wn?Xn-=En:Xn+=En;var Rr=lo.current,vi=oa.current,ni=vi?Xn/vi:0,xr=Math.ceil(ni*Rr);xr=Math.max(xr,0),xr=Math.min(xr,Rr),aa=me(function(){Vn(xr,Wn)})}},Ar=function(){Ri(!1),Fi()};return window.addEventListener("mousemove",za),window.addEventListener("touchmove",za),window.addEventListener("mouseup",Ar),window.addEventListener("touchend",Ar),function(){window.removeEventListener("mousemove",za),window.removeEventListener("touchmove",za),window.removeEventListener("mouseup",Ar),window.removeEventListener("touchend",Ar),me.cancel(aa)}}},[Cr]),_e.useEffect(function(){zr()},[Or]),_e.useImperativeHandle(We,function(){return{delayHidden:zr}});var fa="".concat(ur,"-scrollbar"),Ka={position:"absolute",visibility:uo&&gs?null:"hidden"},qo={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Wn?(Ka.height=8,Ka.left=0,Ka.right=0,Ka.bottom=0,qo.height="100%",qo.width=vn,Jr?qo.left=es:qo.right=es):(Ka.width=8,Ka.top=0,Ka.bottom=0,Jr?Ka.right=0:Ka.left=0,qo.width="100%",qo.height=vn,qo.top=es),_e.createElement("div",{ref:ls,className:lt()(fa,(rr={},(0,tt.Z)(rr,"".concat(fa,"-horizontal"),Wn),(0,tt.Z)(rr,"".concat(fa,"-vertical"),!Wn),(0,tt.Z)(rr,"".concat(fa,"-visible"),uo),rr)),style:(0,Pe.Z)((0,Pe.Z)({},Ka),mi),onMouseDown:Mn,onMouseMove:zr},_e.createElement("div",{ref:Pa,className:lt()("".concat(fa,"-thumb"),(0,tt.Z)({},"".concat(fa,"-thumb-moving"),Cr)),style:(0,Pe.Z)((0,Pe.Z)({},qo),gi),onMouseDown:Ta}))}),Be=be;function at(ir){var We=ir.children,rr=ir.setRef,ur=_e.useCallback(function(hr){rr(hr)},[]);return _e.cloneElement(We,{ref:ur})}function dt(ir,We,rr,ur,hr,Or,jr){var si=jr.getKey;return ir.slice(We,rr+1).map(function(Fi,Vn){var Wn=We+Vn,vn=Or(Fi,Wn,{style:{width:ur}}),tr=si(Fi);return _e.createElement(at,{key:tr,setRef:function(gi){return hr(Fi,gi)}},vn)})}function gt(ir){return ir instanceof HTMLElement||ir instanceof SVGElement}function ft(ir){return gt(ir)?ir:ir instanceof _e.Component?ut.findDOMNode(ir):null}var Nt=ae(15671),Tt=ae(43144),Ct=function(){function ir(){(0,Nt.Z)(this,ir),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,Tt.Z)(ir,[{key:"set",value:function(rr,ur){this.maps[rr]=ur,this.id+=1}},{key:"get",value:function(rr){return this.maps[rr]}}]),ir}(),Vt=Ct;function Rt(ir,We,rr){var ur=_e.useState(0),hr=(0,Oe.Z)(ur,2),Or=hr[0],jr=hr[1],si=(0,_e.useRef)(new Map),Fi=(0,_e.useRef)(new Vt),Vn=(0,_e.useRef)();function Wn(){me.cancel(Vn.current)}function vn(){var mi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Wn();var gi=function(){si.current.forEach(function(Hn,Cr){if(Hn&&Hn.offsetParent){var Ri=ft(Hn),_i=Ri.offsetHeight;Fi.current.get(Cr)!==_i&&Fi.current.set(Cr,Ri.offsetHeight)}}),jr(function(Hn){return Hn+1})};mi?gi():Vn.current=me(gi)}function tr(mi,gi){var ti=ir(mi),Hn=si.current.get(ti);gi?(si.current.set(ti,gi),vn()):si.current.delete(ti),!Hn!=!gi&&(gi?We==null||We(mi):rr==null||rr(mi))}return(0,_e.useEffect)(function(){return Wn},[]),[tr,vn,Fi.current,Or]}function nn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Cn=nn()?_e.useLayoutEffect:_e.useEffect,un=function(We,rr){var ur=_e.useRef(!0);Cn(function(){return We(ur.current)},rr),Cn(function(){return ur.current=!1,function(){ur.current=!0}},[])},Nn=function(We,rr){un(function(ur){if(!ur)return We()},rr)},wt=un;function pt(ir){var We=_e.useRef();We.current=ir;var rr=_e.useCallback(function(){for(var ur,hr=arguments.length,Or=new Array(hr),jr=0;jr<hr;jr++)Or[jr]=arguments[jr];return(ur=We.current)===null||ur===void 0?void 0:ur.call.apply(ur,[We].concat(Or))},[]);return rr}function Ie(ir){var We=React.useRef(!1),rr=React.useState(ir),ur=_slicedToArray(rr,2),hr=ur[0],Or=ur[1];React.useEffect(function(){return We.current=!1,function(){We.current=!0}},[]);function jr(si,Fi){Fi&&We.current||Or(si)}return[hr,jr]}function on(ir){return ir!==void 0}function Bn(ir,We){var rr=We||{},ur=rr.defaultValue,hr=rr.value,Or=rr.onChange,jr=rr.postState,si=useState(function(){return on(hr)?hr:on(ur)?typeof ur=="function"?ur():ur:typeof ir=="function"?ir():ir}),Fi=_slicedToArray(si,2),Vn=Fi[0],Wn=Fi[1],vn=hr!==void 0?hr:Vn,tr=jr?jr(vn):vn,mi=useEvent(Or),gi=useState([vn]),ti=_slicedToArray(gi,2),Hn=ti[0],Cr=ti[1];useLayoutUpdateEffect(function(){var _i=Hn[0];Vn!==_i&&mi(Vn,_i)},[Hn]),useLayoutUpdateEffect(function(){on(hr)||Wn(hr)},[hr]);var Ri=useEvent(function(_i,Ur){Wn(_i,Ur),Cr([vn],Ur)});return[tr,Ri]}var Zt=ae(31461);function zn(ir,We,rr){var ur=React.useRef({});return(!("value"in ur.current)||rr(ur.current.condition,We))&&(ur.current.value=ir(),ur.current.condition=We),ur.current.value}function _n(ir,We){typeof ir=="function"?ir(We):_typeof(ir)==="object"&&ir&&"current"in ir&&(ir.current=We)}function nr(){for(var ir=arguments.length,We=new Array(ir),rr=0;rr<ir;rr++)We[rr]=arguments[rr];var ur=We.filter(function(hr){return hr});return ur.length<=1?ur[0]:function(hr){We.forEach(function(Or){_n(Or,hr)})}}function Ft(){for(var ir=arguments.length,We=new Array(ir),rr=0;rr<ir;rr++)We[rr]=arguments[rr];return useMemo(function(){return nr.apply(void 0,We)},We,function(ur,hr){return ur.length!==hr.length||ur.every(function(Or,jr){return Or!==hr[jr]})})}function Wt(ir){var We,rr,ur=isMemo(ir)?ir.type.type:ir.type;return!(typeof ur=="function"&&!((We=ur.prototype)!==null&&We!==void 0&&We.render)||typeof ir=="function"&&!((rr=ir.prototype)!==null&&rr!==void 0&&rr.render))}function ht(ir){return!isValidElement(ir)||isFragment(ir)?!1:Wt(ir)}function tn(ir,We,rr,ur){if(!We.length)return rr;var hr=_toArray(We),Or=hr[0],jr=hr.slice(1),si;return!ir&&typeof Or=="number"?si=[]:Array.isArray(ir)?si=_toConsumableArray(ir):si=_objectSpread({},ir),ur&&rr===void 0&&jr.length===1?delete si[Or][jr[0]]:si[Or]=tn(si[Or],jr,rr,ur),si}function an(ir,We,rr){var ur=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return We.length&&ur&&rr===void 0&&!get(ir,We.slice(0,-1))?ir:tn(ir,We,rr,ur)}function ct(ir){return _typeof(ir)==="object"&&ir!==null&&Object.getPrototypeOf(ir)===Object.prototype}function Ue(ir){return Array.isArray(ir)?[]:{}}var He=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function it(){for(var ir=arguments.length,We=new Array(ir),rr=0;rr<ir;rr++)We[rr]=arguments[rr];var ur=Ue(We[0]);return We.forEach(function(hr){function Or(jr,si){var Fi=new Set(si),Vn=get(hr,jr),Wn=Array.isArray(Vn);if(Wn||ct(Vn)){if(!Fi.has(Vn)){Fi.add(Vn);var vn=get(ur,jr);Wn?ur=an(ur,jr,[]):(!vn||_typeof(vn)!=="object")&&(ur=an(ur,jr,Ue(Vn))),He(Vn).forEach(function(tr){Or([].concat(_toConsumableArray(jr),[tr]),Fi)})}}else ur=an(ur,jr,Vn)}Or([])}),ur}var vt={},Ye=[],It=function(We){Ye.push(We)};function In(ir,We){if(0)var rr}function Kn(ir,We){if(0)var rr}function dr(){vt={}}function Rn(ir,We,rr){!We&&!vt[rr]&&(ir(!1,rr),vt[rr]=!0)}function er(ir,We){Rn(In,ir,We)}function yn(ir,We){Rn(Kn,ir,We)}er.preMessage=It,er.resetWarned=dr,er.noteOnce=yn;var Er=null,sr=10;function Hr(ir,We,rr,ur,hr,Or,jr,si){var Fi=_e.useRef(),Vn=_e.useState(null),Wn=(0,Oe.Z)(Vn,2),vn=Wn[0],tr=Wn[1];return wt(function(){if(vn&&vn.times<sr){if(!ir.current){tr(function(zr){return(0,Pe.Z)({},zr)});return}Or();var mi=vn.targetAlign,gi=vn.originAlign,ti=vn.index,Hn=vn.offset,Cr=ir.current.clientHeight,Ri=!1,_i=mi,Ur=null;if(Cr){for(var Pn=mi||gi,xi=0,ji=0,Xo=0,wr=Math.min(We.length-1,ti),Gi=0;Gi<=wr;Gi+=1){var Jr=hr(We[Gi]);ji=xi;var ls=rr.get(Jr);Xo=ji+(ls===void 0?ur:ls),xi=Xo}for(var Pa=Pn==="top"?Hn:Cr-Hn,Oi=wr;Oi>=0;Oi-=1){var Yi=hr(We[Oi]),uo=rr.get(Yi);if(uo===void 0){Ri=!0;break}if(Pa-=uo,Pa<=0)break}switch(Pn){case"top":Ur=ji-Hn;break;case"bottom":Ur=Xo-Cr+Hn;break;default:{var ba=ir.current.scrollTop,Go=ba+Cr;ji<ba?_i="top":Xo>Go&&(_i="bottom")}}Ur!==null&&jr(Ur),Ur!==vn.lastTop&&(Ri=!0)}Ri&&tr(function(zr){return(0,Pe.Z)((0,Pe.Z)({},zr),{},{times:zr.times+1,targetAlign:_i,lastTop:Ur})})}},[vn,ir.current]),function(mi){if(mi==null){si();return}if(me.cancel(Fi.current),typeof mi=="number")jr(mi);else if(mi&&(0,Fe.Z)(mi)==="object"){var gi,ti=mi.align;"index"in mi?gi=mi.index:gi=We.findIndex(function(Ri){return hr(Ri)===mi.key});var Hn=mi.offset,Cr=Hn===void 0?0:Hn;tr({times:0,index:gi,offset:Cr,originAlign:ti})}}}function An(ir,We,rr,ur){var hr=rr-ir,Or=We-rr,jr=Math.min(hr,Or)*2;if(ur<=jr){var si=Math.floor(ur/2);return ur%2?rr+si+1:rr-si}return hr>Or?rr-(ur-Or):rr+(ur-hr)}function yi(ir,We,rr){var ur=ir.length,hr=We.length,Or,jr;if(ur===0&&hr===0)return null;ur<hr?(Or=ir,jr=We):(Or=We,jr=ir);var si={__EMPTY_ITEM__:!0};function Fi(gi){return gi!==void 0?rr(gi):si}for(var Vn=null,Wn=Math.abs(ur-hr)!==1,vn=0;vn<jr.length;vn+=1){var tr=Fi(Or[vn]),mi=Fi(jr[vn]);if(tr!==mi){Vn=vn,Wn=Wn||tr!==Fi(jr[vn+1]);break}}return Vn===null?null:{index:Vn,multiple:Wn}}function ri(ir,We,rr){var ur=_e.useState(ir),hr=(0,Oe.Z)(ur,2),Or=hr[0],jr=hr[1],si=_e.useState(null),Fi=(0,Oe.Z)(si,2),Vn=Fi[0],Wn=Fi[1];return _e.useEffect(function(){var vn=yi(Or||[],ir||[],We);(vn==null?void 0:vn.index)!==void 0&&(rr==null||rr(vn.index),Wn(ir[vn.index])),jr(ir)},[ir]),[Vn]}var bn=(typeof navigator=="undefined"?"undefined":(0,Fe.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Xe=bn,Ji=function(ir,We){var rr=(0,_e.useRef)(!1),ur=(0,_e.useRef)(null);function hr(){clearTimeout(ur.current),rr.current=!0,ur.current=setTimeout(function(){rr.current=!1},50)}var Or=(0,_e.useRef)({top:ir,bottom:We});return Or.current.top=ir,Or.current.bottom=We,function(jr){var si=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Fi=jr<0&&Or.current.top||jr>0&&Or.current.bottom;return si&&Fi?(clearTimeout(ur.current),rr.current=!1):(!Fi||rr.current)&&hr(),!rr.current&&Fi}};function Qn(ir,We,rr,ur,hr){var Or=(0,_e.useRef)(0),jr=(0,_e.useRef)(null),si=(0,_e.useRef)(null),Fi=(0,_e.useRef)(!1),Vn=Ji(We,rr);function Wn(Hn,Cr){me.cancel(jr.current),Or.current+=Cr,si.current=Cr,!Vn(Cr)&&(Xe||Hn.preventDefault(),jr.current=me(function(){var Ri=Fi.current?10:1;hr(Or.current*Ri),Or.current=0}))}function vn(Hn,Cr){hr(Cr,!0),Xe||Hn.preventDefault()}var tr=(0,_e.useRef)(null),mi=(0,_e.useRef)(null);function gi(Hn){if(ir){me.cancel(mi.current),mi.current=me(function(){tr.current=null},2);var Cr=Hn.deltaX,Ri=Hn.deltaY,_i=Hn.shiftKey,Ur=Cr,Pn=Ri;(tr.current==="sx"||!tr.current&&_i&&Ri&&!Cr)&&(Ur=Ri,Pn=0,tr.current="sx");var xi=Math.abs(Ur),ji=Math.abs(Pn);tr.current===null&&(tr.current=ur&&xi>ji?"x":"y"),tr.current==="y"?Wn(Hn,Pn):vn(Hn,Ur)}}function ti(Hn){ir&&(Fi.current=Hn.detail===si.current)}return[gi,ti]}var Sn=14/15;function to(ir,We,rr){var ur=(0,_e.useRef)(!1),hr=(0,_e.useRef)(0),Or=(0,_e.useRef)(null),jr=(0,_e.useRef)(null),si,Fi=function(tr){if(ur.current){var mi=Math.ceil(tr.touches[0].pageY),gi=hr.current-mi;hr.current=mi,rr(gi)&&tr.preventDefault(),clearInterval(jr.current),jr.current=setInterval(function(){gi*=Sn,(!rr(gi,!0)||Math.abs(gi)<=.1)&&clearInterval(jr.current)},16)}},Vn=function(){ur.current=!1,si()},Wn=function(tr){si(),tr.touches.length===1&&!ur.current&&(ur.current=!0,hr.current=Math.ceil(tr.touches[0].pageY),Or.current=tr.target,Or.current.addEventListener("touchmove",Fi),Or.current.addEventListener("touchend",Vn))};si=function(){Or.current&&(Or.current.removeEventListener("touchmove",Fi),Or.current.removeEventListener("touchend",Vn))},wt(function(){return ir&&We.current.addEventListener("touchstart",Wn),function(){var vn;(vn=We.current)===null||vn===void 0||vn.removeEventListener("touchstart",Wn),si(),clearInterval(jr.current)}},[ir])}var Ki=20;function Zr(){var ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,rr=ir/We*100;return isNaN(rr)&&(rr=0),rr=Math.max(rr,Ki),rr=Math.min(rr,ir/2),Math.floor(rr)}function hi(ir,We,rr,ur){var hr=_e.useMemo(function(){return[new Map,[]]},[ir,rr.id,ur]),Or=(0,Oe.Z)(hr,2),jr=Or[0],si=Or[1],Fi=function(Wn){var vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Wn,tr=jr.get(Wn),mi=jr.get(vn);if(tr===void 0||mi===void 0)for(var gi=ir.length,ti=si.length;ti<gi;ti+=1){var Hn,Cr=ir[ti],Ri=We(Cr);jr.set(Ri,ti);var _i=(Hn=rr.get(Ri))!==null&&Hn!==void 0?Hn:ur;if(si[ti]=(si[ti-1]||0)+_i,Ri===Wn&&(tr=ti),Ri===vn&&(mi=ti),tr!==void 0&&mi!==void 0)break}return{top:si[tr-1]||0,bottom:si[mi]}};return Fi}var Ir=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],fn=[],Hi={overflowY:"auto",overflowAnchor:"none"};function ao(ir,We){var rr=ir.prefixCls,ur=rr===void 0?"rc-virtual-list":rr,hr=ir.className,Or=ir.height,jr=ir.itemHeight,si=ir.fullHeight,Fi=si===void 0?!0:si,Vn=ir.style,Wn=ir.data,vn=ir.children,tr=ir.itemKey,mi=ir.virtual,gi=ir.direction,ti=ir.scrollWidth,Hn=ir.component,Cr=Hn===void 0?"div":Hn,Ri=ir.onScroll,_i=ir.onVirtualScroll,Ur=ir.onVisibleChange,Pn=ir.innerProps,xi=ir.extraRender,ji=ir.styles,Xo=(0,Me.Z)(ir,Ir),wr=!!(mi!==!1&&Or&&jr),Gi=wr&&Wn&&(jr*Wn.length>Or||!!ti),Jr=gi==="rtl",ls=lt()(ur,(0,tt.Z)({},"".concat(ur,"-rtl"),Jr),hr),Pa=Wn||fn,Oi=(0,_e.useRef)(),Yi=(0,_e.useRef)(),uo=(0,_e.useState)(0),ba=(0,Oe.Z)(uo,2),Go=ba[0],zr=ba[1],vo=(0,_e.useState)(0),sl=(0,Oe.Z)(vo,2),gs=sl[0],es=sl[1],Mn=(0,_e.useState)(!1),Co=(0,Oe.Z)(Mn,2),Ta=Co[0],lo=Co[1],oa=function(){lo(!0)},fa=function(){lo(!1)},Ka=_e.useCallback(function(Io){return typeof tr=="function"?tr(Io):Io==null?void 0:Io[tr]},[tr]),qo={getKey:Ka};function aa(Io){zr(function(pa){var Ua;typeof Io=="function"?Ua=Io(pa):Ua=Io;var as=vr(Ua);return Oi.current.scrollTop=as,as})}var za=(0,_e.useRef)({start:0,end:Pa.length}),Ar=(0,_e.useRef)(),us=ri(Pa,Ka),qt=(0,Oe.Z)(us,1),At=qt[0];Ar.current=At;var Nr=Rt(Ka,null,null),Qt=(0,Oe.Z)(Nr,4),ln=Qt[0],En=Qt[1],Xn=Qt[2],Rr=Qt[3],vi=_e.useMemo(function(){if(!wr)return{scrollHeight:void 0,start:0,end:Pa.length-1,offset:void 0};if(!Gi){var Io;return{scrollHeight:((Io=Yi.current)===null||Io===void 0?void 0:Io.offsetHeight)||0,start:0,end:Pa.length-1,offset:void 0}}for(var pa=0,Ua,as,Bi,Xs=Pa.length,Ls=0;Ls<Xs;Ls+=1){var Gs=Pa[Ls],vl=Ka(Gs),Ml=Xn.get(vl),ci=pa+(Ml===void 0?jr:Ml);ci>=Go&&Ua===void 0&&(Ua=Ls,as=pa),ci>Go+Or&&Bi===void 0&&(Bi=Ls),pa=ci}return Ua===void 0&&(Ua=0,as=0,Bi=Math.ceil(Or/jr)),Bi===void 0&&(Bi=Pa.length-1),Bi=Math.min(Bi+1,Pa.length-1),{scrollHeight:pa,start:Ua,end:Bi,offset:as}},[Gi,wr,Go,Pa,Rr,Or]),ni=vi.scrollHeight,xr=vi.start,xt=vi.end,Po=vi.offset;za.current.start=xr,za.current.end=xt;var zo=_e.useState({width:0,height:Or}),ya=(0,Oe.Z)(zo,2),xa=ya[0],Sa=ya[1],ha=function(pa){Sa({width:pa.width||pa.offsetWidth,height:pa.height||pa.offsetHeight})},Gt=(0,_e.useRef)(),fr=(0,_e.useRef)(),pr=_e.useMemo(function(){return Zr(xa.width,ti)},[xa.width,ti]),Tr=_e.useMemo(function(){return Zr(xa.height,ni)},[xa.height,ni]),Ln=ni-Or,or=(0,_e.useRef)(Ln);or.current=Ln;function vr(Io){var pa=Io;return Number.isNaN(or.current)||(pa=Math.min(pa,or.current)),pa=Math.max(pa,0),pa}var sn=Go<=0,mr=Go>=Ln,Vr=Ji(sn,mr),no=function(){return{x:Jr?-gs:gs,y:Go}},Xi=(0,_e.useRef)(no()),zi=pt(function(){if(_i){var Io=no();(Xi.current.x!==Io.x||Xi.current.y!==Io.y)&&(_i(Io),Xi.current=Io)}});function _o(Io,pa){var Ua=Io;pa?((0,ut.flushSync)(function(){es(Ua)}),zi()):aa(Ua)}function sa(Io){var pa=Io.currentTarget.scrollTop;pa!==Go&&aa(pa),Ri==null||Ri(Io),zi()}var Va=function(pa){var Ua=pa,as=ti-xa.width;return Ua=Math.max(Ua,0),Ua=Math.min(Ua,as),Ua},os=pt(function(Io,pa){pa?((0,ut.flushSync)(function(){es(function(Ua){var as=Ua+(Jr?-Io:Io);return Va(as)})}),zi()):aa(function(Ua){var as=Ua+Io;return as})}),Zs=Qn(wr,sn,mr,!!ti,os),Un=(0,Oe.Z)(Zs,2),ws=Un[0],Ds=Un[1];to(wr,Oi,function(Io,pa){return Vr(Io,pa)?!1:(ws({preventDefault:function(){},deltaY:Io}),!0)}),wt(function(){function Io(Ua){wr&&Ua.preventDefault()}var pa=Oi.current;return pa.addEventListener("wheel",ws),pa.addEventListener("DOMMouseScroll",Ds),pa.addEventListener("MozMousePixelScroll",Io),function(){pa.removeEventListener("wheel",ws),pa.removeEventListener("DOMMouseScroll",Ds),pa.removeEventListener("MozMousePixelScroll",Io)}},[wr]),wt(function(){ti&&es(function(Io){return Va(Io)})},[xa.width,ti]);var dl=function(){var pa,Ua;(pa=Gt.current)===null||pa===void 0||pa.delayHidden(),(Ua=fr.current)===null||Ua===void 0||Ua.delayHidden()},_a=Hr(Oi,Pa,Xn,jr,Ka,function(){return En(!0)},aa,dl);_e.useImperativeHandle(We,function(){return{getScrollInfo:no,scrollTo:function(pa){function Ua(as){return as&&(0,Fe.Z)(as)==="object"&&("left"in as||"top"in as)}Ua(pa)?(pa.left!==void 0&&es(Va(pa.left)),_a(pa.top)):_a(pa)}}}),wt(function(){if(Ur){var Io=Pa.slice(xr,xt+1);Ur(Io,Pa)}},[xr,xt,Pa]);var js=hi(Pa,Ka,Xn,jr),ol=xi==null?void 0:xi({start:xr,end:xt,virtual:Gi,offsetX:gs,offsetY:Po,rtl:Jr,getSize:js}),Tl=dt(Pa,xr,xt,ti,ln,vn,qo),Wa=null;Or&&(Wa=(0,Pe.Z)((0,tt.Z)({},Fi?"height":"maxHeight",Or),Hi),wr&&(Wa.overflowY="hidden",ti&&(Wa.overflowX="hidden"),Ta&&(Wa.pointerEvents="none")));var vs={};return Jr&&(vs.dir="rtl"),_e.createElement("div",(0,ie.Z)({style:(0,Pe.Z)((0,Pe.Z)({},Vn),{},{position:"relative"}),className:ls},vs,Xo),_e.createElement(Et.Z,{onResize:ha},_e.createElement(Cr,{className:"".concat(ur,"-holder"),style:Wa,ref:Oi,onScroll:sa,onMouseEnter:dl},_e.createElement(_t,{prefixCls:ur,height:ni,offsetX:gs,offsetY:Po,scrollWidth:ti,onInnerResize:En,ref:Yi,innerProps:Pn,rtl:Jr,extra:ol},Tl))),Gi&&ni>Or&&_e.createElement(Be,{ref:Gt,prefixCls:ur,scrollOffset:Go,scrollRange:ni,rtl:Jr,onScroll:_o,onStartMove:oa,onStopMove:fa,spinSize:Tr,containerSize:xa.height,style:ji==null?void 0:ji.verticalScrollBar,thumbStyle:ji==null?void 0:ji.verticalScrollBarThumb}),Gi&&ti&&_e.createElement(Be,{ref:fr,prefixCls:ur,scrollOffset:gs,scrollRange:ti,rtl:Jr,onScroll:_o,onStartMove:oa,onStopMove:fa,spinSize:pr,containerSize:xa.width,horizontal:!0,style:ji==null?void 0:ji.horizontalScrollBar,thumbStyle:ji==null?void 0:ji.horizontalScrollBarThumb}))}var ui=_e.forwardRef(ao);ui.displayName="List";var ai=ui,Ni=ai},66392:function(Ke,we){"use strict";var ae;var ie=Symbol.for("react.element"),Pe=Symbol.for("react.portal"),Fe=Symbol.for("react.fragment"),Oe=Symbol.for("react.strict_mode"),tt=Symbol.for("react.profiler"),Me=Symbol.for("react.provider"),_e=Symbol.for("react.context"),ut=Symbol.for("react.server_context"),et=Symbol.for("react.forward_ref"),lt=Symbol.for("react.suspense"),Et=Symbol.for("react.suspense_list"),rt=Symbol.for("react.memo"),_t=Symbol.for("react.lazy"),Ge=Symbol.for("react.offscreen"),te;te=Symbol.for("react.module.reference");function ee(de){if(typeof de=="object"&&de!==null){var le=de.$$typeof;switch(le){case ie:switch(de=de.type,de){case Fe:case tt:case Oe:case lt:case Et:return de;default:switch(de=de&&de.$$typeof,de){case ut:case _e:case et:case _t:case rt:case Me:return de;default:return le}}case Pe:return le}}}ae=_e,ae=Me,ae=ie,ae=et,ae=Fe,ae=_t,ae=rt,ae=Pe,ae=tt,ae=Oe,ae=lt,ae=Et,ae=function(){return!1},ae=function(){return!1},ae=function(de){return ee(de)===_e},ae=function(de){return ee(de)===Me},ae=function(de){return typeof de=="object"&&de!==null&&de.$$typeof===ie},ae=function(de){return ee(de)===et},ae=function(de){return ee(de)===Fe},ae=function(de){return ee(de)===_t},ae=function(de){return ee(de)===rt},ae=function(de){return ee(de)===Pe},ae=function(de){return ee(de)===tt},ae=function(de){return ee(de)===Oe},ae=function(de){return ee(de)===lt},ae=function(de){return ee(de)===Et},ae=function(de){return typeof de=="string"||typeof de=="function"||de===Fe||de===tt||de===Oe||de===lt||de===Et||de===Ge||typeof de=="object"&&de!==null&&(de.$$typeof===_t||de.$$typeof===rt||de.$$typeof===Me||de.$$typeof===_e||de.$$typeof===et||de.$$typeof===te||de.getModuleId!==void 0)},ae=ee},31461:function(Ke,we,ae){"use strict";ae(66392)},66012:function(Ke,we,ae){"use strict";ae.d(we,{Z5:function(){return Cp},_l:function(){return mc},bK:function(){return vd}});var ie=ae(67294),Pe=ae(89611);function Fe(Ne,Re){Ne.prototype=Object.create(Re.prototype),Ne.prototype.constructor=Ne,(0,Pe.Z)(Ne,Re)}var Oe=ae(87462),tt=ae(14890),Me=ie.createContext(null),_e=null;function ut(Ne){Ne()}var et=ut,lt=function(Re){return et=Re},Et=function(){return et};function rt(){var Ne=Et(),Re=null,Je=null;return{clear:function(){Re=null,Je=null},notify:function(){Ne(function(){for(var Ht=Re;Ht;)Ht.callback(),Ht=Ht.next})},get:function(){for(var Ht=[],Bt=Re;Bt;)Ht.push(Bt),Bt=Bt.next;return Ht},subscribe:function(Ht){var Bt=!0,Xt=Je={callback:Ht,next:null,prev:Je};return Xt.prev?Xt.prev.next=Xt:Re=Xt,function(){!Bt||Re===null||(Bt=!1,Xt.next?Xt.next.prev=Xt.prev:Je=Xt.prev,Xt.prev?Xt.prev.next=Xt.next:Re=Xt.next)}}}}var _t={notify:function(){},get:function(){return[]}};function Ge(Ne,Re){var Je,yt=_t;function Ht(Zn){return Gn(),yt.subscribe(Zn)}function Bt(){yt.notify()}function Xt(){$n.onStateChange&&$n.onStateChange()}function rn(){return!!Je}function Gn(){Je||(Je=Re?Re.addNestedSub(Xt):Ne.subscribe(Xt),yt=rt())}function ar(){Je&&(Je(),Je=void 0,yt.clear(),yt=_t)}var $n={addNestedSub:Ht,notifyNestedSubs:Bt,handleChangeWrapper:Xt,isSubscribed:rn,trySubscribe:Gn,tryUnsubscribe:ar,getListeners:function(){return yt}};return $n}var te=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?ie.useLayoutEffect:ie.useEffect;function ee(Ne){var Re=Ne.store,Je=Ne.context,yt=Ne.children,Ht=(0,ie.useMemo)(function(){var rn=Ge(Re);return{store:Re,subscription:rn}},[Re]),Bt=(0,ie.useMemo)(function(){return Re.getState()},[Re]);te(function(){var rn=Ht.subscription;return rn.onStateChange=rn.notifyNestedSubs,rn.trySubscribe(),Bt!==Re.getState()&&rn.notifyNestedSubs(),function(){rn.tryUnsubscribe(),rn.onStateChange=null}},[Ht,Bt]);var Xt=Je||Me;return ie.createElement(Xt.Provider,{value:Ht},yt)}var de=ee,le=ae(63366),pe=ae(8679),me=ae.n(pe),xe=ae(72973),be=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],Be=["reactReduxForwardedRef"],at=[],dt=[null,null],gt=function(Re){try{return JSON.stringify(Re)}catch(Je){return String(Re)}};function ft(Ne,Re){var Je=Ne[1];return[Re.payload,Je+1]}function Nt(Ne,Re,Je){te(function(){return Ne.apply(void 0,Re)},Je)}function Tt(Ne,Re,Je,yt,Ht,Bt,Xt){Ne.current=yt,Re.current=Ht,Je.current=!1,Bt.current&&(Bt.current=null,Xt())}function Ct(Ne,Re,Je,yt,Ht,Bt,Xt,rn,Gn,ar){if(Ne){var $n=!1,Zn=null,Yn=function(){if(!$n){var So=Re.getState(),Ao,Ho;try{Ao=yt(So,Ht.current)}catch(va){Ho=va,Zn=va}Ho||(Zn=null),Ao===Bt.current?Xt.current||Gn():(Bt.current=Ao,rn.current=Ao,Xt.current=!0,ar({type:"STORE_UPDATED",payload:{error:Ho}}))}};Je.onStateChange=Yn,Je.trySubscribe(),Yn();var yr=function(){if($n=!0,Je.tryUnsubscribe(),Je.onStateChange=null,Zn)throw Zn};return yr}}var Vt=function(){return[null,0]};function Rt(Ne,Re){Re===void 0&&(Re={});var Je=Re,yt=Je.getDisplayName,Ht=yt===void 0?function(il){return"ConnectAdvanced("+il+")"}:yt,Bt=Je.methodName,Xt=Bt===void 0?"connectAdvanced":Bt,rn=Je.renderCountProp,Gn=rn===void 0?void 0:rn,ar=Je.shouldHandleStateChanges,$n=ar===void 0?!0:ar,Zn=Je.storeKey,Yn=Zn===void 0?"store":Zn,yr=Je.withRef,ei=yr===void 0?!1:yr,So=Je.forwardRef,Ao=So===void 0?!1:So,Ho=Je.context,va=Ho===void 0?Me:Ho,Fa=(0,le.Z)(Je,be);if(0)var ka;var ps=va;return function(Ll){var Xu=Ll.displayName||Ll.name||"Component",wl=Ht(Xu),Bu=(0,Oe.Z)({},Fa,{getDisplayName:Ht,methodName:Xt,renderCountProp:Gn,shouldHandleStateChanges:$n,storeKey:Yn,displayName:wl,wrappedComponentName:Xu,WrappedComponent:Ll}),Gc=Fa.pure;function $c(ku){return Ne(ku.dispatch,Bu)}var th=Gc?ie.useMemo:function(ku){return ku()};function wd(ku){var mh=(0,ie.useMemo)(function(){var Ru=ku.reactReduxForwardedRef,Md=(0,le.Z)(ku,Be);return[ku.context,Ru,Md]},[ku]),_u=mh[0],nh=mh[1],kf=mh[2],rh=(0,ie.useMemo)(function(){return _u&&_u.Consumer&&(0,xe.isContextConsumer)(ie.createElement(_u.Consumer,null))?_u:ps},[_u,ps]),Ya=(0,ie.useContext)(rh),sf=!!ku.store&&!!ku.store.getState&&!!ku.store.dispatch,kp=!!Ya&&!!Ya.store,ih=sf?ku.store:Ya.store,Lh=(0,ie.useMemo)(function(){return $c(ih)},[ih]),Yh=(0,ie.useMemo)(function(){if(!$n)return dt;var Ru=Ge(ih,sf?null:Ya.subscription),Md=Ru.notifyNestedSubs.bind(Ru);return[Ru,Md]},[ih,sf,Ya]),Sd=Yh[0],op=Yh[1],ap=(0,ie.useMemo)(function(){return sf?Ya:(0,Oe.Z)({},Ya,{subscription:Sd})},[sf,Ya,Sd]),sg=(0,ie.useReducer)(ft,at,Vt),Wg=sg[0],Rp=Wg[0],Rf=sg[1];if(Rp&&Rp.error)throw Rp.error;var lg=(0,ie.useRef)(),Mp=(0,ie.useRef)(kf),Mf=(0,ie.useRef)(),Of=(0,ie.useRef)(!1),Op=th(function(){return Mf.current&&kf===Mp.current?Mf.current:Lh(ih.getState(),kf)},[ih,Rp,kf]);Nt(Tt,[Mp,lg,Of,kf,Op,Mf,op]),Nt(Ct,[$n,ih,Sd,Lh,Mp,lg,Of,Mf,op,Rf],[ih,Sd,Lh]);var Os=(0,ie.useMemo)(function(){return ie.createElement(Ll,(0,Oe.Z)({},Op,{ref:nh}))},[nh,Ll,Op]),qc=(0,ie.useMemo)(function(){return $n?ie.createElement(rh.Provider,{value:ap},Os):Os},[rh,Os,ap]);return qc}var yd=Gc?ie.memo(wd):wd;if(yd.WrappedComponent=Ll,yd.displayName=wd.displayName=wl,Ao){var yc=ie.forwardRef(function(mh,_u){return ie.createElement(yd,(0,Oe.Z)({},mh,{reactReduxForwardedRef:_u}))});return yc.displayName=wl,yc.WrappedComponent=Ll,me()(yc,Ll)}return me()(yd,Ll)}}function nn(Ne,Re){return Ne===Re?Ne!==0||Re!==0||1/Ne===1/Re:Ne!==Ne&&Re!==Re}function Cn(Ne,Re){if(nn(Ne,Re))return!0;if(typeof Ne!="object"||Ne===null||typeof Re!="object"||Re===null)return!1;var Je=Object.keys(Ne),yt=Object.keys(Re);if(Je.length!==yt.length)return!1;for(var Ht=0;Ht<Je.length;Ht++)if(!Object.prototype.hasOwnProperty.call(Re,Je[Ht])||!nn(Ne[Je[Ht]],Re[Je[Ht]]))return!1;return!0}function un(Ne,Re){var Je={},yt=function(Xt){var rn=Ne[Xt];typeof rn=="function"&&(Je[Xt]=function(){return Re(rn.apply(void 0,arguments))})};for(var Ht in Ne)yt(Ht);return Je}function Nn(Ne){return function(Je,yt){var Ht=Ne(Je,yt);function Bt(){return Ht}return Bt.dependsOnOwnProps=!1,Bt}}function wt(Ne){return Ne.dependsOnOwnProps!==null&&Ne.dependsOnOwnProps!==void 0?!!Ne.dependsOnOwnProps:Ne.length!==1}function pt(Ne,Re){return function(yt,Ht){var Bt=Ht.displayName,Xt=function(Gn,ar){return Xt.dependsOnOwnProps?Xt.mapToProps(Gn,ar):Xt.mapToProps(Gn)};return Xt.dependsOnOwnProps=!0,Xt.mapToProps=function(Gn,ar){Xt.mapToProps=Ne,Xt.dependsOnOwnProps=wt(Ne);var $n=Xt(Gn,ar);return typeof $n=="function"&&(Xt.mapToProps=$n,Xt.dependsOnOwnProps=wt($n),$n=Xt(Gn,ar)),$n},Xt}}function Ie(Ne){return typeof Ne=="function"?pt(Ne,"mapDispatchToProps"):void 0}function on(Ne){return Ne?void 0:Nn(function(Re){return{dispatch:Re}})}function Bn(Ne){return Ne&&typeof Ne=="object"?Nn(function(Re){return un(Ne,Re)}):void 0}var Zt=[Ie,on,Bn];function zn(Ne){return typeof Ne=="function"?pt(Ne,"mapStateToProps"):void 0}function _n(Ne){return Ne?void 0:Nn(function(){return{}})}var nr=[zn,_n];function Ft(Ne,Re,Je){return(0,Oe.Z)({},Je,Ne,Re)}function Wt(Ne){return function(Je,yt){var Ht=yt.displayName,Bt=yt.pure,Xt=yt.areMergedPropsEqual,rn=!1,Gn;return function($n,Zn,Yn){var yr=Ne($n,Zn,Yn);return rn?(!Bt||!Xt(yr,Gn))&&(Gn=yr):(rn=!0,Gn=yr),Gn}}}function ht(Ne){return typeof Ne=="function"?Wt(Ne):void 0}function tn(Ne){return Ne?void 0:function(){return Ft}}var an=[ht,tn],ct=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Ue(Ne,Re,Je,yt){return function(Bt,Xt){return Je(Ne(Bt,Xt),Re(yt,Xt),Xt)}}function He(Ne,Re,Je,yt,Ht){var Bt=Ht.areStatesEqual,Xt=Ht.areOwnPropsEqual,rn=Ht.areStatePropsEqual,Gn=!1,ar,$n,Zn,Yn,yr;function ei(Fa,ka){return ar=Fa,$n=ka,Zn=Ne(ar,$n),Yn=Re(yt,$n),yr=Je(Zn,Yn,$n),Gn=!0,yr}function So(){return Zn=Ne(ar,$n),Re.dependsOnOwnProps&&(Yn=Re(yt,$n)),yr=Je(Zn,Yn,$n),yr}function Ao(){return Ne.dependsOnOwnProps&&(Zn=Ne(ar,$n)),Re.dependsOnOwnProps&&(Yn=Re(yt,$n)),yr=Je(Zn,Yn,$n),yr}function Ho(){var Fa=Ne(ar,$n),ka=!rn(Fa,Zn);return Zn=Fa,ka&&(yr=Je(Zn,Yn,$n)),yr}function va(Fa,ka){var ps=!Xt(ka,$n),il=!Bt(Fa,ar,ka,$n);return ar=Fa,$n=ka,ps&&il?So():ps?Ao():il?Ho():yr}return function(ka,ps){return Gn?va(ka,ps):ei(ka,ps)}}function it(Ne,Re){var Je=Re.initMapStateToProps,yt=Re.initMapDispatchToProps,Ht=Re.initMergeProps,Bt=(0,le.Z)(Re,ct),Xt=Je(Ne,Bt),rn=yt(Ne,Bt),Gn=Ht(Ne,Bt),ar=Bt.pure?He:Ue;return ar(Xt,rn,Gn,Ne,Bt)}var vt=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function Ye(Ne,Re,Je){for(var yt=Re.length-1;yt>=0;yt--){var Ht=Re[yt](Ne);if(Ht)return Ht}return function(Bt,Xt){throw new Error("Invalid value of type "+typeof Ne+" for "+Je+" argument when connecting component "+Xt.wrappedComponentName+".")}}function It(Ne,Re){return Ne===Re}function In(Ne){var Re=Ne===void 0?{}:Ne,Je=Re.connectHOC,yt=Je===void 0?Rt:Je,Ht=Re.mapStateToPropsFactories,Bt=Ht===void 0?nr:Ht,Xt=Re.mapDispatchToPropsFactories,rn=Xt===void 0?Zt:Xt,Gn=Re.mergePropsFactories,ar=Gn===void 0?an:Gn,$n=Re.selectorFactory,Zn=$n===void 0?it:$n;return function(yr,ei,So,Ao){Ao===void 0&&(Ao={});var Ho=Ao,va=Ho.pure,Fa=va===void 0?!0:va,ka=Ho.areStatesEqual,ps=ka===void 0?It:ka,il=Ho.areOwnPropsEqual,Ll=il===void 0?Cn:il,Xu=Ho.areStatePropsEqual,wl=Xu===void 0?Cn:Xu,Bu=Ho.areMergedPropsEqual,Gc=Bu===void 0?Cn:Bu,$c=(0,le.Z)(Ho,vt),th=Ye(yr,Bt,"mapStateToProps"),wd=Ye(ei,rn,"mapDispatchToProps"),yd=Ye(So,ar,"mergeProps");return yt(Zn,(0,Oe.Z)({methodName:"connect",getDisplayName:function(ku){return"Connect("+ku+")"},shouldHandleStateChanges:!!yr,initMapStateToProps:th,initMapDispatchToProps:wd,initMergeProps:yd,pure:Fa,areStatesEqual:ps,areOwnPropsEqual:Ll,areStatePropsEqual:wl,areMergedPropsEqual:Gc},$c))}}var Kn=In();function dr(){var Ne=useContext(ReactReduxContext);return Ne}function Rn(Ne){Ne===void 0&&(Ne=ReactReduxContext);var Re=Ne===ReactReduxContext?useDefaultReduxContext:function(){return useContext(Ne)};return function(){var yt=Re(),Ht=yt.store;return Ht}}var er=null;function yn(Ne){Ne===void 0&&(Ne=ReactReduxContext);var Re=Ne===ReactReduxContext?useDefaultStore:createStoreHook(Ne);return function(){var yt=Re();return yt.dispatch}}var Er=null,sr=function(Re,Je){return Re===Je};function Hr(Ne,Re,Je,yt){var Ht=useReducer(function(ei){return ei+1},0),Bt=Ht[1],Xt=useMemo(function(){return createSubscription(Je,yt)},[Je,yt]),rn=useRef(),Gn=useRef(),ar=useRef(),$n=useRef(),Zn=Je.getState(),Yn;try{if(Ne!==Gn.current||Zn!==ar.current||rn.current){var yr=Ne(Zn);$n.current===void 0||!Re(yr,$n.current)?Yn=yr:Yn=$n.current}else Yn=$n.current}catch(ei){throw rn.current&&(ei.message+=`
|
|
|
The error may be correlated with this previous error:
|
|
|
`+rn.current.stack+`
|
|
|
|
|
|
`),ei}return useIsomorphicLayoutEffect(function(){Gn.current=Ne,ar.current=Zn,$n.current=Yn,rn.current=void 0}),useIsomorphicLayoutEffect(function(){function ei(){try{var So=Je.getState();if(So===ar.current)return;var Ao=Gn.current(So);if(Re(Ao,$n.current))return;$n.current=Ao,ar.current=So}catch(Ho){rn.current=Ho}Bt()}return Xt.onStateChange=ei,Xt.trySubscribe(),ei(),function(){return Xt.tryUnsubscribe()}},[Je,Xt]),Yn}function An(Ne){Ne===void 0&&(Ne=ReactReduxContext);var Re=Ne===ReactReduxContext?useDefaultReduxContext:function(){return useContext(Ne)};return function(yt,Ht){Ht===void 0&&(Ht=sr);var Bt=Re(),Xt=Bt.store,rn=Bt.subscription,Gn=Hr(yt,Ht,Xt,rn);return useDebugValue(Gn),Gn}}var yi=null,ri=ae(73935);lt(ri.unstable_batchedUpdates);function bn(Ne,Re){if(Ne.length!==Re.length)return!1;for(var Je=0;Je<Ne.length;Je++)if(Ne[Je]!==Re[Je])return!1;return!0}function Xe(Ne,Re){var Je=(0,ie.useState)(function(){return{inputs:Re,result:Ne()}})[0],yt=(0,ie.useRef)(!0),Ht=(0,ie.useRef)(Je),Bt=yt.current||!!(Re&&Ht.current.inputs&&bn(Re,Ht.current.inputs)),Xt=Bt?Ht.current:{inputs:Re,result:Ne()};return(0,ie.useEffect)(function(){yt.current=!1,Ht.current=Xt},[Xt]),Xt.result}function Ji(Ne,Re){return Xe(function(){return Ne},Re)}var Qn=Xe,Sn=Ji,to=!0,Ki="Invariant failed";function Zr(Ne,Re){if(!Ne){if(to)throw new Error(Ki);var Je=typeof Re=="function"?Re():Re,yt=Je?"".concat(Ki,": ").concat(Je):Ki;throw new Error(yt)}}var hi=function(Re){var Je=Re.top,yt=Re.right,Ht=Re.bottom,Bt=Re.left,Xt=yt-Bt,rn=Ht-Je,Gn={top:Je,right:yt,bottom:Ht,left:Bt,width:Xt,height:rn,x:Bt,y:Je,center:{x:(yt+Bt)/2,y:(Ht+Je)/2}};return Gn},Ir=function(Re,Je){return{top:Re.top-Je.top,left:Re.left-Je.left,bottom:Re.bottom+Je.bottom,right:Re.right+Je.right}},fn=function(Re,Je){return{top:Re.top+Je.top,left:Re.left+Je.left,bottom:Re.bottom-Je.bottom,right:Re.right-Je.right}},Hi=function(Re,Je){return{top:Re.top+Je.y,left:Re.left+Je.x,bottom:Re.bottom+Je.y,right:Re.right+Je.x}},ao={top:0,right:0,bottom:0,left:0},ui=function(Re){var Je=Re.borderBox,yt=Re.margin,Ht=yt===void 0?ao:yt,Bt=Re.border,Xt=Bt===void 0?ao:Bt,rn=Re.padding,Gn=rn===void 0?ao:rn,ar=hi(Ir(Je,Ht)),$n=hi(fn(Je,Xt)),Zn=hi(fn($n,Gn));return{marginBox:ar,borderBox:hi(Je),paddingBox:$n,contentBox:Zn,margin:Ht,border:Xt,padding:Gn}},ai=function(Re){var Je=Re.slice(0,-2),yt=Re.slice(-2);if(yt!=="px")return 0;var Ht=Number(Je);return isNaN(Ht)&&Zr(!1),Ht},Ni=function(){return{x:window.pageXOffset,y:window.pageYOffset}},ir=function(Re,Je){var yt=Re.borderBox,Ht=Re.border,Bt=Re.margin,Xt=Re.padding,rn=Hi(yt,Je);return ui({borderBox:rn,border:Ht,margin:Bt,padding:Xt})},We=function(Re,Je){return Je===void 0&&(Je=Ni()),ir(Re,Je)},rr=function(Re,Je){var yt={top:ai(Je.marginTop),right:ai(Je.marginRight),bottom:ai(Je.marginBottom),left:ai(Je.marginLeft)},Ht={top:ai(Je.paddingTop),right:ai(Je.paddingRight),bottom:ai(Je.paddingBottom),left:ai(Je.paddingLeft)},Bt={top:ai(Je.borderTopWidth),right:ai(Je.borderRightWidth),bottom:ai(Je.borderBottomWidth),left:ai(Je.borderLeftWidth)};return ui({borderBox:Re,margin:yt,padding:Ht,border:Bt})},ur=function(Re){var Je=Re.getBoundingClientRect(),yt=window.getComputedStyle(Re);return rr(Je,yt)},hr=Number.isNaN||function(Re){return typeof Re=="number"&&Re!==Re};function Or(Ne,Re){return!!(Ne===Re||hr(Ne)&&hr(Re))}function jr(Ne,Re){if(Ne.length!==Re.length)return!1;for(var Je=0;Je<Ne.length;Je++)if(!Or(Ne[Je],Re[Je]))return!1;return!0}function si(Ne,Re){Re===void 0&&(Re=jr);var Je,yt=[],Ht,Bt=!1;function Xt(){for(var rn=[],Gn=0;Gn<arguments.length;Gn++)rn[Gn]=arguments[Gn];return Bt&&Je===this&&Re(rn,yt)||(Ht=Ne.apply(this,rn),Bt=!0,Je=this,yt=rn),Ht}return Xt}var Fi=si,Vn=function(Re){var Je=[],yt=null,Ht=function(){for(var Xt=arguments.length,rn=new Array(Xt),Gn=0;Gn<Xt;Gn++)rn[Gn]=arguments[Gn];Je=rn,!yt&&(yt=requestAnimationFrame(function(){yt=null,Re.apply(void 0,Je)}))};return Ht.cancel=function(){yt&&(cancelAnimationFrame(yt),yt=null)},Ht},Wn=Vn,vn=!0,tr=/[ \t]{2,}/g,mi=/^[ \t]*/gm,gi=function(Re){return Re.replace(tr," ").replace(mi,"").trim()},ti=function(Re){return gi(`
|
|
|
%creact-beautiful-dnd
|
|
|
|
|
|
%c`+gi(Re)+`
|
|
|
|
|
|
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
|
|
|
`)},Hn=function(Re){return[ti(Re),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},Cr="__react-beautiful-dnd-disable-dev-warnings";function Ri(Ne,Re){var Je;vn||typeof window!="undefined"&&window[Cr]||(Je=console)[Ne].apply(Je,Hn(Re))}var _i=Ri.bind(null,"warn"),Ur=Ri.bind(null,"error");function Pn(){}function xi(Ne,Re){return(0,Oe.Z)({},Ne,{},Re)}function ji(Ne,Re,Je){var yt=Re.map(function(Ht){var Bt=xi(Je,Ht.options);return Ne.addEventListener(Ht.eventName,Ht.fn,Bt),function(){Ne.removeEventListener(Ht.eventName,Ht.fn,Bt)}});return function(){yt.forEach(function(Bt){Bt()})}}var Xo=!0,wr="Invariant failed";function Gi(Ne){this.message=Ne}Gi.prototype.toString=function(){return this.message};function Jr(Ne,Re){if(!Ne)throw Xo?new Gi(wr):new Gi(wr+": "+(Re||""))}var ls=function(Ne){Fe(Re,Ne);function Re(){for(var yt,Ht=arguments.length,Bt=new Array(Ht),Xt=0;Xt<Ht;Xt++)Bt[Xt]=arguments[Xt];return yt=Ne.call.apply(Ne,[this].concat(Bt))||this,yt.callbacks=null,yt.unbind=Pn,yt.onWindowError=function(rn){var Gn=yt.getCallbacks();Gn.isDragging()&&Gn.tryAbort();var ar=rn.error;ar instanceof Gi&&rn.preventDefault()},yt.getCallbacks=function(){if(!yt.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return yt.callbacks},yt.setCallbacks=function(rn){yt.callbacks=rn},yt}var Je=Re.prototype;return Je.componentDidMount=function(){this.unbind=ji(window,[{eventName:"error",fn:this.onWindowError}])},Je.componentWillUnmount=function(){this.unbind()},Je.componentDidCatch=function(Ht){if(Ht instanceof Gi){this.setState({});return}throw Ht},Je.render=function(){return this.props.children(this.setCallbacks)},Re}(ie.Component),Pa=`
|
|
|
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
|
|
|
`,Oi=function(Re){return Re+1},Yi=function(Re){return`
|
|
|
You have lifted an item in position `+Oi(Re.source.index)+`
|
|
|
`},uo=function(Re,Je){var yt=Re.droppableId===Je.droppableId,Ht=Oi(Re.index),Bt=Oi(Je.index);return yt?`
|
|
|
You have moved the item from position `+Ht+`
|
|
|
to position `+Bt+`
|
|
|
`:`
|
|
|
You have moved the item from position `+Ht+`
|
|
|
in list `+Re.droppableId+`
|
|
|
to list `+Je.droppableId+`
|
|
|
in position `+Bt+`
|
|
|
`},ba=function(Re,Je,yt){var Ht=Je.droppableId===yt.droppableId;return Ht?`
|
|
|
The item `+Re+`
|
|
|
has been combined with `+yt.draggableId:`
|
|
|
The item `+Re+`
|
|
|
in list `+Je.droppableId+`
|
|
|
has been combined with `+yt.draggableId+`
|
|
|
in list `+yt.droppableId+`
|
|
|
`},Go=function(Re){var Je=Re.destination;if(Je)return uo(Re.source,Je);var yt=Re.combine;return yt?ba(Re.draggableId,Re.source,yt):"You are over an area that cannot be dropped on"},zr=function(Re){return`
|
|
|
The item has returned to its starting position
|
|
|
of `+Oi(Re.index)+`
|
|
|
`},vo=function(Re){if(Re.reason==="CANCEL")return`
|
|
|
Movement cancelled.
|
|
|
`+zr(Re.source)+`
|
|
|
`;var Je=Re.destination,yt=Re.combine;return Je?`
|
|
|
You have dropped the item.
|
|
|
`+uo(Re.source,Je)+`
|
|
|
`:yt?`
|
|
|
You have dropped the item.
|
|
|
`+ba(Re.draggableId,Re.source,yt)+`
|
|
|
`:`
|
|
|
The item has been dropped while not over a drop area.
|
|
|
`+zr(Re.source)+`
|
|
|
`},sl={dragHandleUsageInstructions:Pa,onDragStart:Yi,onDragUpdate:Go,onDragEnd:vo},gs={x:0,y:0},es=function(Re,Je){return{x:Re.x+Je.x,y:Re.y+Je.y}},Mn=function(Re,Je){return{x:Re.x-Je.x,y:Re.y-Je.y}},Co=function(Re,Je){return Re.x===Je.x&&Re.y===Je.y},Ta=function(Re){return{x:Re.x!==0?-Re.x:0,y:Re.y!==0?-Re.y:0}},lo=function(Re,Je,yt){var Ht;return yt===void 0&&(yt=0),Ht={},Ht[Re]=Je,Ht[Re==="x"?"y":"x"]=yt,Ht},oa=function(Re,Je){return Math.sqrt(Math.pow(Je.x-Re.x,2)+Math.pow(Je.y-Re.y,2))},fa=function(Re,Je){return Math.min.apply(Math,Je.map(function(yt){return oa(Re,yt)}))},Ka=function(Re){return function(Je){return{x:Re(Je.x),y:Re(Je.y)}}},qo=function(Ne,Re){var Je=hi({top:Math.max(Re.top,Ne.top),right:Math.min(Re.right,Ne.right),bottom:Math.min(Re.bottom,Ne.bottom),left:Math.max(Re.left,Ne.left)});return Je.width<=0||Je.height<=0?null:Je},aa=function(Re,Je){return{top:Re.top+Je.y,left:Re.left+Je.x,bottom:Re.bottom+Je.y,right:Re.right+Je.x}},za=function(Re){return[{x:Re.left,y:Re.top},{x:Re.right,y:Re.top},{x:Re.left,y:Re.bottom},{x:Re.right,y:Re.bottom}]},Ar={top:0,right:0,bottom:0,left:0},us=function(Re,Je){return Je?aa(Re,Je.scroll.diff.displacement):Re},qt=function(Re,Je,yt){if(yt&&yt.increasedBy){var Ht;return(0,Oe.Z)({},Re,(Ht={},Ht[Je.end]=Re[Je.end]+yt.increasedBy[Je.line],Ht))}return Re},At=function(Re,Je){return Je&&Je.shouldClipSubject?qo(Je.pageMarginBox,Re):hi(Re)},Nr=function(Ne){var Re=Ne.page,Je=Ne.withPlaceholder,yt=Ne.axis,Ht=Ne.frame,Bt=us(Re.marginBox,Ht),Xt=qt(Bt,yt,Je),rn=At(Xt,Ht);return{page:Re,withPlaceholder:Je,active:rn}},Qt=function(Ne,Re){Ne.frame||Jr(!1);var Je=Ne.frame,yt=Mn(Re,Je.scroll.initial),Ht=Ta(yt),Bt=(0,Oe.Z)({},Je,{scroll:{initial:Je.scroll.initial,current:Re,diff:{value:yt,displacement:Ht},max:Je.scroll.max}}),Xt=Nr({page:Ne.subject.page,withPlaceholder:Ne.subject.withPlaceholder,axis:Ne.axis,frame:Bt}),rn=(0,Oe.Z)({},Ne,{frame:Bt,subject:Xt});return rn};function ln(Ne){return Number.isInteger?Number.isInteger(Ne):typeof Ne=="number"&&isFinite(Ne)&&Math.floor(Ne)===Ne}function En(Ne){return Object.values?Object.values(Ne):Object.keys(Ne).map(function(Re){return Ne[Re]})}function Xn(Ne,Re){if(Ne.findIndex)return Ne.findIndex(Re);for(var Je=0;Je<Ne.length;Je++)if(Re(Ne[Je]))return Je;return-1}function Rr(Ne,Re){if(Ne.find)return Ne.find(Re);var Je=Xn(Ne,Re);if(Je!==-1)return Ne[Je]}function vi(Ne){return Array.prototype.slice.call(Ne)}var ni=Fi(function(Ne){return Ne.reduce(function(Re,Je){return Re[Je.descriptor.id]=Je,Re},{})}),xr=Fi(function(Ne){return Ne.reduce(function(Re,Je){return Re[Je.descriptor.id]=Je,Re},{})}),xt=Fi(function(Ne){return En(Ne)}),Po=Fi(function(Ne){return En(Ne)}),zo=Fi(function(Ne,Re){var Je=Po(Re).filter(function(yt){return Ne===yt.descriptor.droppableId}).sort(function(yt,Ht){return yt.descriptor.index-Ht.descriptor.index});return Je});function ya(Ne){return Ne.at&&Ne.at.type==="REORDER"?Ne.at.destination:null}function xa(Ne){return Ne.at&&Ne.at.type==="COMBINE"?Ne.at.combine:null}var Sa=Fi(function(Ne,Re){return Re.filter(function(Je){return Je.descriptor.id!==Ne.descriptor.id})}),ha=function(Ne){var Re=Ne.isMovingForward,Je=Ne.draggable,yt=Ne.destination,Ht=Ne.insideDestination,Bt=Ne.previousImpact;if(!yt.isCombineEnabled)return null;var Xt=ya(Bt);if(!Xt)return null;function rn(So){var Ao={type:"COMBINE",combine:{draggableId:So,droppableId:yt.descriptor.id}};return(0,Oe.Z)({},Bt,{at:Ao})}var Gn=Bt.displaced.all,ar=Gn.length?Gn[0]:null;if(Re)return ar?rn(ar):null;var $n=Sa(Je,Ht);if(!ar){if(!$n.length)return null;var Zn=$n[$n.length-1];return rn(Zn.descriptor.id)}var Yn=Xn($n,function(So){return So.descriptor.id===ar});Yn===-1&&Jr(!1);var yr=Yn-1;if(yr<0)return null;var ei=$n[yr];return rn(ei.descriptor.id)},Gt=function(Ne,Re){return Ne.descriptor.droppableId===Re.descriptor.id},fr={point:gs,value:0},pr={invisible:{},visible:{},all:[]},Tr={displaced:pr,displacedBy:fr,at:null},Ln=function(Ne,Re){return function(Je){return Ne<=Je&&Je<=Re}},or=function(Ne){var Re=Ln(Ne.top,Ne.bottom),Je=Ln(Ne.left,Ne.right);return function(yt){var Ht=Re(yt.top)&&Re(yt.bottom)&&Je(yt.left)&&Je(yt.right);if(Ht)return!0;var Bt=Re(yt.top)||Re(yt.bottom),Xt=Je(yt.left)||Je(yt.right),rn=Bt&&Xt;if(rn)return!0;var Gn=yt.top<Ne.top&&yt.bottom>Ne.bottom,ar=yt.left<Ne.left&&yt.right>Ne.right,$n=Gn&&ar;if($n)return!0;var Zn=Gn&&Xt||ar&&Bt;return Zn}},vr=function(Ne){var Re=Ln(Ne.top,Ne.bottom),Je=Ln(Ne.left,Ne.right);return function(yt){var Ht=Re(yt.top)&&Re(yt.bottom)&&Je(yt.left)&&Je(yt.right);return Ht}},sn={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},mr={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Vr=function(Ne){return function(Re){var Je=Ln(Re.top,Re.bottom),yt=Ln(Re.left,Re.right);return function(Ht){return Ne===sn?Je(Ht.top)&&Je(Ht.bottom):yt(Ht.left)&&yt(Ht.right)}}},no=function(Re,Je){var yt=Je.frame?Je.frame.scroll.diff.displacement:gs;return aa(Re,yt)},Xi=function(Re,Je,yt){return Je.subject.active?yt(Je.subject.active)(Re):!1},zi=function(Re,Je,yt){return yt(Je)(Re)},_o=function(Re){var Je=Re.target,yt=Re.destination,Ht=Re.viewport,Bt=Re.withDroppableDisplacement,Xt=Re.isVisibleThroughFrameFn,rn=Bt?no(Je,yt):Je;return Xi(rn,yt,Xt)&&zi(rn,Ht,Xt)},sa=function(Re){return _o((0,Oe.Z)({},Re,{isVisibleThroughFrameFn:or}))},Va=function(Re){return _o((0,Oe.Z)({},Re,{isVisibleThroughFrameFn:vr}))},os=function(Re){return _o((0,Oe.Z)({},Re,{isVisibleThroughFrameFn:Vr(Re.destination.axis)}))},Zs=function(Re,Je,yt){if(typeof yt=="boolean")return yt;if(!Je)return!0;var Ht=Je.invisible,Bt=Je.visible;if(Ht[Re])return!1;var Xt=Bt[Re];return Xt?Xt.shouldAnimate:!0};function Un(Ne,Re){var Je=Ne.page.marginBox,yt={top:Re.point.y,right:0,bottom:0,left:Re.point.x};return hi(Ir(Je,yt))}function ws(Ne){var Re=Ne.afterDragging,Je=Ne.destination,yt=Ne.displacedBy,Ht=Ne.viewport,Bt=Ne.forceShouldAnimate,Xt=Ne.last;return Re.reduce(function(Gn,ar){var $n=Un(ar,yt),Zn=ar.descriptor.id;Gn.all.push(Zn);var Yn=sa({target:$n,destination:Je,viewport:Ht,withDroppableDisplacement:!0});if(!Yn)return Gn.invisible[ar.descriptor.id]=!0,Gn;var yr=Zs(Zn,Xt,Bt),ei={draggableId:Zn,shouldAnimate:yr};return Gn.visible[Zn]=ei,Gn},{all:[],visible:{},invisible:{}})}function Ds(Ne,Re){if(!Ne.length)return 0;var Je=Ne[Ne.length-1].descriptor.index;return Re.inHomeList?Je:Je+1}function dl(Ne){var Re=Ne.insideDestination,Je=Ne.inHomeList,yt=Ne.displacedBy,Ht=Ne.destination,Bt=Ds(Re,{inHomeList:Je});return{displaced:pr,displacedBy:yt,at:{type:"REORDER",destination:{droppableId:Ht.descriptor.id,index:Bt}}}}function _a(Ne){var Re=Ne.draggable,Je=Ne.insideDestination,yt=Ne.destination,Ht=Ne.viewport,Bt=Ne.displacedBy,Xt=Ne.last,rn=Ne.index,Gn=Ne.forceShouldAnimate,ar=Gt(Re,yt);if(rn==null)return dl({insideDestination:Je,inHomeList:ar,displacedBy:Bt,destination:yt});var $n=Rr(Je,function(So){return So.descriptor.index===rn});if(!$n)return dl({insideDestination:Je,inHomeList:ar,displacedBy:Bt,destination:yt});var Zn=Sa(Re,Je),Yn=Je.indexOf($n),yr=Zn.slice(Yn),ei=ws({afterDragging:yr,destination:yt,displacedBy:Bt,last:Xt,viewport:Ht.frame,forceShouldAnimate:Gn});return{displaced:ei,displacedBy:Bt,at:{type:"REORDER",destination:{droppableId:yt.descriptor.id,index:rn}}}}function js(Ne,Re){return!!Re.effected[Ne]}var ol=function(Ne){var Re=Ne.isMovingForward,Je=Ne.destination,yt=Ne.draggables,Ht=Ne.combine,Bt=Ne.afterCritical;if(!Je.isCombineEnabled)return null;var Xt=Ht.draggableId,rn=yt[Xt],Gn=rn.descriptor.index,ar=js(Xt,Bt);return ar?Re?Gn:Gn-1:Re?Gn+1:Gn},Tl=function(Ne){var Re=Ne.isMovingForward,Je=Ne.isInHomeList,yt=Ne.insideDestination,Ht=Ne.location;if(!yt.length)return null;var Bt=Ht.index,Xt=Re?Bt+1:Bt-1,rn=yt[0].descriptor.index,Gn=yt[yt.length-1].descriptor.index,ar=Je?Gn:Gn+1;return Xt<rn||Xt>ar?null:Xt},Wa=function(Ne){var Re=Ne.isMovingForward,Je=Ne.isInHomeList,yt=Ne.draggable,Ht=Ne.draggables,Bt=Ne.destination,Xt=Ne.insideDestination,rn=Ne.previousImpact,Gn=Ne.viewport,ar=Ne.afterCritical,$n=rn.at;if($n||Jr(!1),$n.type==="REORDER"){var Zn=Tl({isMovingForward:Re,isInHomeList:Je,location:$n.destination,insideDestination:Xt});return Zn==null?null:_a({draggable:yt,insideDestination:Xt,destination:Bt,viewport:Gn,last:rn.displaced,displacedBy:rn.displacedBy,index:Zn})}var Yn=ol({isMovingForward:Re,destination:Bt,displaced:rn.displaced,draggables:Ht,combine:$n.combine,afterCritical:ar});return Yn==null?null:_a({draggable:yt,insideDestination:Xt,destination:Bt,viewport:Gn,last:rn.displaced,displacedBy:rn.displacedBy,index:Yn})},vs=function(Ne){var Re=Ne.displaced,Je=Ne.afterCritical,yt=Ne.combineWith,Ht=Ne.displacedBy,Bt=!!(Re.visible[yt]||Re.invisible[yt]);return js(yt,Je)?Bt?gs:Ta(Ht.point):Bt?Ht.point:gs},Io=function(Ne){var Re=Ne.afterCritical,Je=Ne.impact,yt=Ne.draggables,Ht=xa(Je);Ht||Jr(!1);var Bt=Ht.draggableId,Xt=yt[Bt].page.borderBox.center,rn=vs({displaced:Je.displaced,afterCritical:Re,combineWith:Bt,displacedBy:Je.displacedBy});return es(Xt,rn)},pa=function(Re,Je){return Je.margin[Re.start]+Je.borderBox[Re.size]/2},Ua=function(Re,Je){return Je.margin[Re.end]+Je.borderBox[Re.size]/2},as=function(Re,Je,yt){return Je[Re.crossAxisStart]+yt.margin[Re.crossAxisStart]+yt.borderBox[Re.crossAxisSize]/2},Bi=function(Re){var Je=Re.axis,yt=Re.moveRelativeTo,Ht=Re.isMoving;return lo(Je.line,yt.marginBox[Je.end]+pa(Je,Ht),as(Je,yt.marginBox,Ht))},Xs=function(Re){var Je=Re.axis,yt=Re.moveRelativeTo,Ht=Re.isMoving;return lo(Je.line,yt.marginBox[Je.start]-Ua(Je,Ht),as(Je,yt.marginBox,Ht))},Ls=function(Re){var Je=Re.axis,yt=Re.moveInto,Ht=Re.isMoving;return lo(Je.line,yt.contentBox[Je.start]+pa(Je,Ht),as(Je,yt.contentBox,Ht))},Gs=function(Ne){var Re=Ne.impact,Je=Ne.draggable,yt=Ne.draggables,Ht=Ne.droppable,Bt=Ne.afterCritical,Xt=zo(Ht.descriptor.id,yt),rn=Je.page,Gn=Ht.axis;if(!Xt.length)return Ls({axis:Gn,moveInto:Ht.page,isMoving:rn});var ar=Re.displaced,$n=Re.displacedBy,Zn=ar.all[0];if(Zn){var Yn=yt[Zn];if(js(Zn,Bt))return Xs({axis:Gn,moveRelativeTo:Yn.page,isMoving:rn});var yr=ir(Yn.page,$n.point);return Xs({axis:Gn,moveRelativeTo:yr,isMoving:rn})}var ei=Xt[Xt.length-1];if(ei.descriptor.id===Je.descriptor.id)return rn.borderBox.center;if(js(ei.descriptor.id,Bt)){var So=ir(ei.page,Ta(Bt.displacedBy.point));return Bi({axis:Gn,moveRelativeTo:So,isMoving:rn})}return Bi({axis:Gn,moveRelativeTo:ei.page,isMoving:rn})},vl=function(Ne,Re){var Je=Ne.frame;return Je?es(Re,Je.scroll.diff.displacement):Re},Ml=function(Re){var Je=Re.impact,yt=Re.draggable,Ht=Re.droppable,Bt=Re.draggables,Xt=Re.afterCritical,rn=yt.page.borderBox.center,Gn=Je.at;return!Ht||!Gn?rn:Gn.type==="REORDER"?Gs({impact:Je,draggable:yt,draggables:Bt,droppable:Ht,afterCritical:Xt}):Io({impact:Je,draggables:Bt,afterCritical:Xt})},ci=function(Ne){var Re=Ml(Ne),Je=Ne.droppable,yt=Je?vl(Je,Re):Re;return yt},zs=function(Ne,Re){var Je=Mn(Re,Ne.scroll.initial),yt=Ta(Je),Ht=hi({top:Re.y,bottom:Re.y+Ne.frame.height,left:Re.x,right:Re.x+Ne.frame.width}),Bt={frame:Ht,scroll:{initial:Ne.scroll.initial,max:Ne.scroll.max,current:Re,diff:{value:Je,displacement:yt}}};return Bt};function Vs(Ne,Re){return Ne.map(function(Je){return Re[Je]})}function Ul(Ne,Re){for(var Je=0;Je<Re.length;Je++){var yt=Re[Je].visible[Ne];if(yt)return yt}return null}var Qs=function(Ne){var Re=Ne.impact,Je=Ne.viewport,yt=Ne.destination,Ht=Ne.draggables,Bt=Ne.maxScrollChange,Xt=zs(Je,es(Je.scroll.current,Bt)),rn=yt.frame?Qt(yt,es(yt.frame.scroll.current,Bt)):yt,Gn=Re.displaced,ar=ws({afterDragging:Vs(Gn.all,Ht),destination:yt,displacedBy:Re.displacedBy,viewport:Xt.frame,last:Gn,forceShouldAnimate:!1}),$n=ws({afterDragging:Vs(Gn.all,Ht),destination:rn,displacedBy:Re.displacedBy,viewport:Je.frame,last:Gn,forceShouldAnimate:!1}),Zn={},Yn={},yr=[Gn,ar,$n];Gn.all.forEach(function(So){var Ao=Ul(So,yr);if(Ao){Yn[So]=Ao;return}Zn[So]=!0});var ei=(0,Oe.Z)({},Re,{displaced:{all:Gn.all,invisible:Zn,visible:Yn}});return ei},Dl=function(Ne,Re){return es(Ne.scroll.diff.displacement,Re)},la=function(Ne){var Re=Ne.pageBorderBoxCenter,Je=Ne.draggable,yt=Ne.viewport,Ht=Dl(yt,Re),Bt=Mn(Ht,Je.page.borderBox.center);return es(Je.client.borderBox.center,Bt)},gu=function(Ne){var Re=Ne.draggable,Je=Ne.destination,yt=Ne.newPageBorderBoxCenter,Ht=Ne.viewport,Bt=Ne.withDroppableDisplacement,Xt=Ne.onlyOnMainAxis,rn=Xt===void 0?!1:Xt,Gn=Mn(yt,Re.page.borderBox.center),ar=aa(Re.page.borderBox,Gn),$n={target:ar,destination:Je,withDroppableDisplacement:Bt,viewport:Ht};return rn?os($n):Va($n)},Pl=function(Ne){var Re=Ne.isMovingForward,Je=Ne.draggable,yt=Ne.destination,Ht=Ne.draggables,Bt=Ne.previousImpact,Xt=Ne.viewport,rn=Ne.previousPageBorderBoxCenter,Gn=Ne.previousClientSelection,ar=Ne.afterCritical;if(!yt.isEnabled)return null;var $n=zo(yt.descriptor.id,Ht),Zn=Gt(Je,yt),Yn=ha({isMovingForward:Re,draggable:Je,destination:yt,insideDestination:$n,previousImpact:Bt})||Wa({isMovingForward:Re,isInHomeList:Zn,draggable:Je,draggables:Ht,destination:yt,insideDestination:$n,previousImpact:Bt,viewport:Xt,afterCritical:ar});if(!Yn)return null;var yr=ci({impact:Yn,draggable:Je,droppable:yt,draggables:Ht,afterCritical:ar}),ei=gu({draggable:Je,destination:yt,newPageBorderBoxCenter:yr,viewport:Xt.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(ei){var So=la({pageBorderBoxCenter:yr,draggable:Je,viewport:Xt});return{clientSelection:So,impact:Yn,scrollJumpRequest:null}}var Ao=Mn(yr,rn),Ho=Qs({impact:Yn,viewport:Xt,destination:yt,draggables:Ht,maxScrollChange:Ao});return{clientSelection:Gn,impact:Ho,scrollJumpRequest:Ao}},Is=function(Re){var Je=Re.subject.active;return Je||Jr(!1),Je},eu=function(Ne){var Re=Ne.isMovingForward,Je=Ne.pageBorderBoxCenter,yt=Ne.source,Ht=Ne.droppables,Bt=Ne.viewport,Xt=yt.subject.active;if(!Xt)return null;var rn=yt.axis,Gn=Ln(Xt[rn.start],Xt[rn.end]),ar=xt(Ht).filter(function(Zn){return Zn!==yt}).filter(function(Zn){return Zn.isEnabled}).filter(function(Zn){return!!Zn.subject.active}).filter(function(Zn){return or(Bt.frame)(Is(Zn))}).filter(function(Zn){var Yn=Is(Zn);return Re?Xt[rn.crossAxisEnd]<Yn[rn.crossAxisEnd]:Yn[rn.crossAxisStart]<Xt[rn.crossAxisStart]}).filter(function(Zn){var Yn=Is(Zn),yr=Ln(Yn[rn.start],Yn[rn.end]);return Gn(Yn[rn.start])||Gn(Yn[rn.end])||yr(Xt[rn.start])||yr(Xt[rn.end])}).sort(function(Zn,Yn){var yr=Is(Zn)[rn.crossAxisStart],ei=Is(Yn)[rn.crossAxisStart];return Re?yr-ei:ei-yr}).filter(function(Zn,Yn,yr){return Is(Zn)[rn.crossAxisStart]===Is(yr[0])[rn.crossAxisStart]});if(!ar.length)return null;if(ar.length===1)return ar[0];var $n=ar.filter(function(Zn){var Yn=Ln(Is(Zn)[rn.start],Is(Zn)[rn.end]);return Yn(Je[rn.line])});return $n.length===1?$n[0]:$n.length>1?$n.sort(function(Zn,Yn){return Is(Zn)[rn.start]-Is(Yn)[rn.start]})[0]:ar.sort(function(Zn,Yn){var yr=fa(Je,za(Is(Zn))),ei=fa(Je,za(Is(Yn)));return yr!==ei?yr-ei:Is(Zn)[rn.start]-Is(Yn)[rn.start]})[0]},Hu=function(Re,Je){var yt=Re.page.borderBox.center;return js(Re.descriptor.id,Je)?Mn(yt,Je.displacedBy.point):yt},cc=function(Re,Je){var yt=Re.page.borderBox;return js(Re.descriptor.id,Je)?aa(yt,Ta(Je.displacedBy.point)):yt},Il=function(Ne){var Re=Ne.pageBorderBoxCenter,Je=Ne.viewport,yt=Ne.destination,Ht=Ne.insideDestination,Bt=Ne.afterCritical,Xt=Ht.filter(function(rn){return Va({target:cc(rn,Bt),destination:yt,viewport:Je.frame,withDroppableDisplacement:!0})}).sort(function(rn,Gn){var ar=oa(Re,vl(yt,Hu(rn,Bt))),$n=oa(Re,vl(yt,Hu(Gn,Bt)));return ar<$n?-1:$n<ar?1:rn.descriptor.index-Gn.descriptor.index});return Xt[0]||null},al=Fi(function(Re,Je){var yt=Je[Re.line];return{value:yt,point:lo(Re.line,yt)}}),Dc=function(Re,Je,yt){var Ht=Re.axis;if(Re.descriptor.mode==="virtual")return lo(Ht.line,Je[Ht.line]);var Bt=Re.subject.page.contentBox[Ht.size],Xt=zo(Re.descriptor.id,yt),rn=Xt.reduce(function($n,Zn){return $n+Zn.client.marginBox[Ht.size]},0),Gn=rn+Je[Ht.line],ar=Gn-Bt;return ar<=0?null:lo(Ht.line,ar)},Fc=function(Re,Je){return(0,Oe.Z)({},Re,{scroll:(0,Oe.Z)({},Re.scroll,{max:Je})})},rc=function(Re,Je,yt){var Ht=Re.frame;Gt(Je,Re)&&Jr(!1),Re.subject.withPlaceholder&&Jr(!1);var Bt=al(Re.axis,Je.displaceBy).point,Xt=Dc(Re,Bt,yt),rn={placeholderSize:Bt,increasedBy:Xt,oldFrameMaxScroll:Re.frame?Re.frame.scroll.max:null};if(!Ht){var Gn=Nr({page:Re.subject.page,withPlaceholder:rn,axis:Re.axis,frame:Re.frame});return(0,Oe.Z)({},Re,{subject:Gn})}var ar=Xt?es(Ht.scroll.max,Xt):Ht.scroll.max,$n=Fc(Ht,ar),Zn=Nr({page:Re.subject.page,withPlaceholder:rn,axis:Re.axis,frame:$n});return(0,Oe.Z)({},Re,{subject:Zn,frame:$n})},Bc=function(Re){var Je=Re.subject.withPlaceholder;Je||Jr(!1);var yt=Re.frame;if(!yt){var Ht=Nr({page:Re.subject.page,axis:Re.axis,frame:null,withPlaceholder:null});return(0,Oe.Z)({},Re,{subject:Ht})}var Bt=Je.oldFrameMaxScroll;Bt||Jr(!1);var Xt=Fc(yt,Bt),rn=Nr({page:Re.subject.page,axis:Re.axis,frame:Xt,withPlaceholder:null});return(0,Oe.Z)({},Re,{subject:rn,frame:Xt})},Iu=function(Ne){var Re=Ne.previousPageBorderBoxCenter,Je=Ne.moveRelativeTo,yt=Ne.insideDestination,Ht=Ne.draggable,Bt=Ne.draggables,Xt=Ne.destination,rn=Ne.viewport,Gn=Ne.afterCritical;if(!Je){if(yt.length)return null;var ar={displaced:pr,displacedBy:fr,at:{type:"REORDER",destination:{droppableId:Xt.descriptor.id,index:0}}},$n=ci({impact:ar,draggable:Ht,droppable:Xt,draggables:Bt,afterCritical:Gn}),Zn=Gt(Ht,Xt)?Xt:rc(Xt,Ht,Bt),Yn=gu({draggable:Ht,destination:Zn,newPageBorderBoxCenter:$n,viewport:rn.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return Yn?ar:null}var yr=Re[Xt.axis.line]<=Je.page.borderBox.center[Xt.axis.line],ei=function(){var Ao=Je.descriptor.index;return Je.descriptor.id===Ht.descriptor.id||yr?Ao:Ao+1}(),So=al(Xt.axis,Ht.displaceBy);return _a({draggable:Ht,insideDestination:yt,destination:Xt,viewport:rn,displacedBy:So,last:pr,index:ei})},Al=function(Ne){var Re=Ne.isMovingForward,Je=Ne.previousPageBorderBoxCenter,yt=Ne.draggable,Ht=Ne.isOver,Bt=Ne.draggables,Xt=Ne.droppables,rn=Ne.viewport,Gn=Ne.afterCritical,ar=eu({isMovingForward:Re,pageBorderBoxCenter:Je,source:Ht,droppables:Xt,viewport:rn});if(!ar)return null;var $n=zo(ar.descriptor.id,Bt),Zn=Il({pageBorderBoxCenter:Je,viewport:rn,destination:ar,insideDestination:$n,afterCritical:Gn}),Yn=Iu({previousPageBorderBoxCenter:Je,destination:ar,draggable:yt,draggables:Bt,moveRelativeTo:Zn,insideDestination:$n,viewport:rn,afterCritical:Gn});if(!Yn)return null;var yr=ci({impact:Yn,draggable:yt,droppable:ar,draggables:Bt,afterCritical:Gn}),ei=la({pageBorderBoxCenter:yr,draggable:yt,viewport:rn});return{clientSelection:ei,impact:Yn,scrollJumpRequest:null}},Fl=function(Ne){var Re=Ne.at;return Re?Re.type==="REORDER"?Re.destination.droppableId:Re.combine.droppableId:null},Ju=function(Re,Je){var yt=Fl(Re);return yt?Je[yt]:null},_c=function(Ne){var Re=Ne.state,Je=Ne.type,yt=Ju(Re.impact,Re.dimensions.droppables),Ht=!!yt,Bt=Re.dimensions.droppables[Re.critical.droppable.id],Xt=yt||Bt,rn=Xt.axis.direction,Gn=rn==="vertical"&&(Je==="MOVE_UP"||Je==="MOVE_DOWN")||rn==="horizontal"&&(Je==="MOVE_LEFT"||Je==="MOVE_RIGHT");if(Gn&&!Ht)return null;var ar=Je==="MOVE_DOWN"||Je==="MOVE_RIGHT",$n=Re.dimensions.draggables[Re.critical.draggable.id],Zn=Re.current.page.borderBoxCenter,Yn=Re.dimensions,yr=Yn.draggables,ei=Yn.droppables;return Gn?Pl({isMovingForward:ar,previousPageBorderBoxCenter:Zn,draggable:$n,destination:Xt,draggables:yr,viewport:Re.viewport,previousClientSelection:Re.current.client.selection,previousImpact:Re.impact,afterCritical:Re.afterCritical}):Al({isMovingForward:ar,previousPageBorderBoxCenter:Zn,draggable:$n,isOver:Xt,draggables:yr,droppables:ei,viewport:Re.viewport,afterCritical:Re.afterCritical})};function $u(Ne){return Ne.phase==="DRAGGING"||Ne.phase==="COLLECTING"}function od(Ne){var Re=Ln(Ne.top,Ne.bottom),Je=Ln(Ne.left,Ne.right);return function(Ht){return Re(Ht.y)&&Je(Ht.x)}}function yl(Ne,Re){return Ne.left<Re.right&&Ne.right>Re.left&&Ne.top<Re.bottom&&Ne.bottom>Re.top}function fd(Ne){var Re=Ne.pageBorderBox,Je=Ne.draggable,yt=Ne.candidates,Ht=Je.page.borderBox.center,Bt=yt.map(function(Xt){var rn=Xt.axis,Gn=lo(Xt.axis.line,Re.center[rn.line],Xt.page.borderBox.center[rn.crossAxisLine]);return{id:Xt.descriptor.id,distance:oa(Ht,Gn)}}).sort(function(Xt,rn){return rn.distance-Xt.distance});return Bt[0]?Bt[0].id:null}function pd(Ne){var Re=Ne.pageBorderBox,Je=Ne.draggable,yt=Ne.droppables,Ht=xt(yt).filter(function(Bt){if(!Bt.isEnabled)return!1;var Xt=Bt.subject.active;if(!Xt||!yl(Re,Xt))return!1;if(od(Xt)(Re.center))return!0;var rn=Bt.axis,Gn=Xt.center[rn.crossAxisLine],ar=Re[rn.crossAxisStart],$n=Re[rn.crossAxisEnd],Zn=Ln(Xt[rn.crossAxisStart],Xt[rn.crossAxisEnd]),Yn=Zn(ar),yr=Zn($n);return!Yn&&!yr?!0:Yn?ar<Gn:$n>Gn});return Ht.length?Ht.length===1?Ht[0].descriptor.id:fd({pageBorderBox:Re,draggable:Je,candidates:Ht}):null}var Uc=function(Re,Je){return hi(aa(Re,Je))},ic=function(Ne,Re){var Je=Ne.frame;return Je?Uc(Re,Je.scroll.diff.value):Re};function lu(Ne){var Re=Ne.displaced,Je=Ne.id;return!!(Re.visible[Je]||Re.invisible[Je])}function mu(Ne){var Re=Ne.draggable,Je=Ne.closest,yt=Ne.inHomeList;return Je?yt&&Je.descriptor.index>Re.descriptor.index?Je.descriptor.index-1:Je.descriptor.index:null}var kl=function(Ne){var Re=Ne.pageBorderBoxWithDroppableScroll,Je=Ne.draggable,yt=Ne.destination,Ht=Ne.insideDestination,Bt=Ne.last,Xt=Ne.viewport,rn=Ne.afterCritical,Gn=yt.axis,ar=al(yt.axis,Je.displaceBy),$n=ar.value,Zn=Re[Gn.start],Yn=Re[Gn.end],yr=Sa(Je,Ht),ei=Rr(yr,function(Ao){var Ho=Ao.descriptor.id,va=Ao.page.borderBox.center[Gn.line],Fa=js(Ho,rn),ka=lu({displaced:Bt,id:Ho});return Fa?ka?Yn<=va:Zn<va-$n:ka?Yn<=va+$n:Zn<va}),So=mu({draggable:Je,closest:ei,inHomeList:Gt(Je,yt)});return _a({draggable:Je,insideDestination:Ht,destination:yt,viewport:Xt,last:Bt,displacedBy:ar,index:So})},Hl=4,Yc=function(Ne){var Re=Ne.draggable,Je=Ne.pageBorderBoxWithDroppableScroll,yt=Ne.previousImpact,Ht=Ne.destination,Bt=Ne.insideDestination,Xt=Ne.afterCritical;if(!Ht.isCombineEnabled)return null;var rn=Ht.axis,Gn=al(Ht.axis,Re.displaceBy),ar=Gn.value,$n=Je[rn.start],Zn=Je[rn.end],Yn=Sa(Re,Bt),yr=Rr(Yn,function(So){var Ao=So.descriptor.id,Ho=So.page.borderBox,va=Ho[rn.size],Fa=va/Hl,ka=js(Ao,Xt),ps=lu({displaced:yt.displaced,id:Ao});return ka?ps?Zn>Ho[rn.start]+Fa&&Zn<Ho[rn.end]-Fa:$n>Ho[rn.start]-ar+Fa&&$n<Ho[rn.end]-ar-Fa:ps?Zn>Ho[rn.start]+ar+Fa&&Zn<Ho[rn.end]+ar-Fa:$n>Ho[rn.start]+Fa&&$n<Ho[rn.end]-Fa});if(!yr)return null;var ei={displacedBy:Gn,displaced:yt.displaced,at:{type:"COMBINE",combine:{draggableId:yr.descriptor.id,droppableId:Ht.descriptor.id}}};return ei},Wl=function(Ne){var Re=Ne.pageOffset,Je=Ne.draggable,yt=Ne.draggables,Ht=Ne.droppables,Bt=Ne.previousImpact,Xt=Ne.viewport,rn=Ne.afterCritical,Gn=Uc(Je.page.borderBox,Re),ar=pd({pageBorderBox:Gn,draggable:Je,droppables:Ht});if(!ar)return Tr;var $n=Ht[ar],Zn=zo($n.descriptor.id,yt),Yn=ic($n,Gn);return Yc({pageBorderBoxWithDroppableScroll:Yn,draggable:Je,previousImpact:Bt,destination:$n,insideDestination:Zn,afterCritical:rn})||kl({pageBorderBoxWithDroppableScroll:Yn,draggable:Je,destination:$n,insideDestination:Zn,last:Bt.displaced,viewport:Xt,afterCritical:rn})},hl=function(Ne,Re){var Je;return(0,Oe.Z)({},Ne,(Je={},Je[Re.descriptor.id]=Re,Je))},ad=function(Re){var Je=Re.previousImpact,yt=Re.impact,Ht=Re.droppables,Bt=Fl(Je),Xt=Fl(yt);if(!Bt||Bt===Xt)return Ht;var rn=Ht[Bt];if(!rn.subject.withPlaceholder)return Ht;var Gn=Bc(rn);return hl(Ht,Gn)},oc=function(Ne){var Re=Ne.draggable,Je=Ne.draggables,yt=Ne.droppables,Ht=Ne.previousImpact,Bt=Ne.impact,Xt=ad({previousImpact:Ht,impact:Bt,droppables:yt}),rn=Fl(Bt);if(!rn)return Xt;var Gn=yt[rn];if(Gt(Re,Gn)||Gn.subject.withPlaceholder)return Xt;var ar=rc(Gn,Re,Je);return hl(Xt,ar)},ju=function(Ne){var Re=Ne.state,Je=Ne.clientSelection,yt=Ne.dimensions,Ht=Ne.viewport,Bt=Ne.impact,Xt=Ne.scrollJumpRequest,rn=Ht||Re.viewport,Gn=yt||Re.dimensions,ar=Je||Re.current.client.selection,$n=Mn(ar,Re.initial.client.selection),Zn={offset:$n,selection:ar,borderBoxCenter:es(Re.initial.client.borderBoxCenter,$n)},Yn={selection:es(Zn.selection,rn.scroll.current),borderBoxCenter:es(Zn.borderBoxCenter,rn.scroll.current),offset:es(Zn.offset,rn.scroll.diff.value)},yr={client:Zn,page:Yn};if(Re.phase==="COLLECTING")return(0,Oe.Z)({phase:"COLLECTING"},Re,{dimensions:Gn,viewport:rn,current:yr});var ei=Gn.draggables[Re.critical.draggable.id],So=Bt||Wl({pageOffset:Yn.offset,draggable:ei,draggables:Gn.draggables,droppables:Gn.droppables,previousImpact:Re.impact,viewport:rn,afterCritical:Re.afterCritical}),Ao=oc({draggable:ei,impact:So,previousImpact:Re.impact,draggables:Gn.draggables,droppables:Gn.droppables}),Ho=(0,Oe.Z)({},Re,{current:yr,dimensions:{draggables:Gn.draggables,droppables:Ao},impact:So,viewport:rn,scrollJumpRequest:Xt||null,forceShouldAnimate:Xt?!1:null});return Ho};function No(Ne,Re){return Ne.map(function(Je){return Re[Je]})}var xc=function(Ne){var Re=Ne.impact,Je=Ne.viewport,yt=Ne.draggables,Ht=Ne.destination,Bt=Ne.forceShouldAnimate,Xt=Re.displaced,rn=No(Xt.all,yt),Gn=ws({afterDragging:rn,destination:Ht,displacedBy:Re.displacedBy,viewport:Je.frame,forceShouldAnimate:Bt,last:Xt});return(0,Oe.Z)({},Re,{displaced:Gn})},gn=function(Ne){var Re=Ne.impact,Je=Ne.draggable,yt=Ne.droppable,Ht=Ne.draggables,Bt=Ne.viewport,Xt=Ne.afterCritical,rn=ci({impact:Re,draggable:Je,draggables:Ht,droppable:yt,afterCritical:Xt});return la({pageBorderBoxCenter:rn,draggable:Je,viewport:Bt})},Mr=function(Ne){var Re=Ne.state,Je=Ne.dimensions,yt=Ne.viewport;Re.movementMode!=="SNAP"&&Jr(!1);var Ht=Re.impact,Bt=yt||Re.viewport,Xt=Je||Re.dimensions,rn=Xt.draggables,Gn=Xt.droppables,ar=rn[Re.critical.draggable.id],$n=Fl(Ht);$n||Jr(!1);var Zn=Gn[$n],Yn=xc({impact:Ht,viewport:Bt,destination:Zn,draggables:rn}),yr=gn({impact:Yn,draggable:ar,droppable:Zn,draggables:rn,viewport:Bt,afterCritical:Re.afterCritical});return ju({impact:Yn,clientSelection:yr,state:Re,dimensions:Xt,viewport:Bt})},Cu=function(Ne){return{index:Ne.index,droppableId:Ne.droppableId}},dc=function(Ne){var Re=Ne.draggable,Je=Ne.home,yt=Ne.draggables,Ht=Ne.viewport,Bt=al(Je.axis,Re.displaceBy),Xt=zo(Je.descriptor.id,yt),rn=Xt.indexOf(Re);rn===-1&&Jr(!1);var Gn=Xt.slice(rn+1),ar=Gn.reduce(function(yr,ei){return yr[ei.descriptor.id]=!0,yr},{}),$n={inVirtualList:Je.descriptor.mode==="virtual",displacedBy:Bt,effected:ar},Zn=ws({afterDragging:Gn,destination:Je,displacedBy:Bt,last:null,viewport:Ht.frame,forceShouldAnimate:!1}),Yn={displaced:Zn,displacedBy:Bt,at:{type:"REORDER",destination:Cu(Re.descriptor)}};return{impact:Yn,afterCritical:$n}},hc=function(Ne,Re){return{draggables:Ne.draggables,droppables:hl(Ne.droppables,Re)}},yu=function(Re){},Tu=function(Re){},fc=function(Ne){var Re=Ne.draggable,Je=Ne.offset,yt=Ne.initialWindowScroll,Ht=ir(Re.client,Je),Bt=We(Ht,yt),Xt=(0,Oe.Z)({},Re,{placeholder:(0,Oe.Z)({},Re.placeholder,{client:Ht}),client:Ht,page:Bt});return Xt},Du=function(Ne){var Re=Ne.frame;return Re||Jr(!1),Re},ml=function(Ne){var Re=Ne.additions,Je=Ne.updatedDroppables,yt=Ne.viewport,Ht=yt.scroll.diff.value;return Re.map(function(Bt){var Xt=Bt.descriptor.droppableId,rn=Je[Xt],Gn=Du(rn),ar=Gn.scroll.diff.value,$n=es(Ht,ar),Zn=fc({draggable:Bt,offset:$n,initialWindowScroll:yt.scroll.initial});return Zn})},ua=function(Ne){var Re=Ne.state,Je=Ne.published;yu();var yt=Je.modified.map(function(Fa){var ka=Re.dimensions.droppables[Fa.droppableId],ps=Qt(ka,Fa.scroll);return ps}),Ht=(0,Oe.Z)({},Re.dimensions.droppables,{},ni(yt)),Bt=xr(ml({additions:Je.additions,updatedDroppables:Ht,viewport:Re.viewport})),Xt=(0,Oe.Z)({},Re.dimensions.draggables,{},Bt);Je.removals.forEach(function(Fa){delete Xt[Fa]});var rn={droppables:Ht,draggables:Xt},Gn=Fl(Re.impact),ar=Gn?rn.droppables[Gn]:null,$n=rn.draggables[Re.critical.draggable.id],Zn=rn.droppables[Re.critical.droppable.id],Yn=dc({draggable:$n,home:Zn,draggables:Xt,viewport:Re.viewport}),yr=Yn.impact,ei=Yn.afterCritical,So=ar&&ar.isCombineEnabled?Re.impact:yr,Ao=Wl({pageOffset:Re.current.page.offset,draggable:rn.draggables[Re.critical.draggable.id],draggables:rn.draggables,droppables:rn.droppables,previousImpact:So,viewport:Re.viewport,afterCritical:ei});Tu();var Ho=(0,Oe.Z)({phase:"DRAGGING"},Re,{phase:"DRAGGING",impact:Ao,onLiftImpact:yr,dimensions:rn,afterCritical:ei,forceShouldAnimate:!1});if(Re.phase==="COLLECTING")return Ho;var va=(0,Oe.Z)({phase:"DROP_PENDING"},Ho,{phase:"DROP_PENDING",reason:Re.reason,isWaiting:!1});return va},Ql=function(Re){return Re.movementMode==="SNAP"},Jl=function(Re,Je,yt){var Ht=hc(Re.dimensions,Je);return!Ql(Re)||yt?ju({state:Re,dimensions:Ht}):Mr({state:Re,dimensions:Ht})};function el(Ne){return Ne.isDragging&&Ne.movementMode==="SNAP"?(0,Oe.Z)({phase:"DRAGGING"},Ne,{scrollJumpRequest:null}):Ne}var ns={phase:"IDLE",completed:null,shouldFlush:!1},Nl=function(Ne,Re){if(Ne===void 0&&(Ne=ns),Re.type==="FLUSH")return(0,Oe.Z)({},ns,{shouldFlush:!0});if(Re.type==="INITIAL_PUBLISH"){Ne.phase!=="IDLE"&&Jr(!1);var Je=Re.payload,yt=Je.critical,Ht=Je.clientSelection,Bt=Je.viewport,Xt=Je.dimensions,rn=Je.movementMode,Gn=Xt.draggables[yt.draggable.id],ar=Xt.droppables[yt.droppable.id],$n={selection:Ht,borderBoxCenter:Gn.client.borderBox.center,offset:gs},Zn={client:$n,page:{selection:es($n.selection,Bt.scroll.initial),borderBoxCenter:es($n.selection,Bt.scroll.initial),offset:es($n.selection,Bt.scroll.diff.value)}},Yn=xt(Xt.droppables).every(function(ap){return!ap.isFixedOnPage}),yr=dc({draggable:Gn,home:ar,draggables:Xt.draggables,viewport:Bt}),ei=yr.impact,So=yr.afterCritical,Ao={phase:"DRAGGING",isDragging:!0,critical:yt,movementMode:rn,dimensions:Xt,initial:Zn,current:Zn,isWindowScrollAllowed:Yn,impact:ei,afterCritical:So,onLiftImpact:ei,viewport:Bt,scrollJumpRequest:null,forceShouldAnimate:null};return Ao}if(Re.type==="COLLECTION_STARTING"){if(Ne.phase==="COLLECTING"||Ne.phase==="DROP_PENDING")return Ne;Ne.phase!=="DRAGGING"&&Jr(!1);var Ho=(0,Oe.Z)({phase:"COLLECTING"},Ne,{phase:"COLLECTING"});return Ho}if(Re.type==="PUBLISH_WHILE_DRAGGING")return Ne.phase==="COLLECTING"||Ne.phase==="DROP_PENDING"||Jr(!1),ua({state:Ne,published:Re.payload});if(Re.type==="MOVE"){if(Ne.phase==="DROP_PENDING")return Ne;$u(Ne)||Jr(!1);var va=Re.payload.client;return Co(va,Ne.current.client.selection)?Ne:ju({state:Ne,clientSelection:va,impact:Ql(Ne)?Ne.impact:null})}if(Re.type==="UPDATE_DROPPABLE_SCROLL"){if(Ne.phase==="DROP_PENDING"||Ne.phase==="COLLECTING")return el(Ne);$u(Ne)||Jr(!1);var Fa=Re.payload,ka=Fa.id,ps=Fa.newScroll,il=Ne.dimensions.droppables[ka];if(!il)return Ne;var Ll=Qt(il,ps);return Jl(Ne,Ll,!1)}if(Re.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(Ne.phase==="DROP_PENDING")return Ne;$u(Ne)||Jr(!1);var Xu=Re.payload,wl=Xu.id,Bu=Xu.isEnabled,Gc=Ne.dimensions.droppables[wl];Gc||Jr(!1),Gc.isEnabled===Bu&&Jr(!1);var $c=(0,Oe.Z)({},Gc,{isEnabled:Bu});return Jl(Ne,$c,!0)}if(Re.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(Ne.phase==="DROP_PENDING")return Ne;$u(Ne)||Jr(!1);var th=Re.payload,wd=th.id,yd=th.isCombineEnabled,yc=Ne.dimensions.droppables[wd];yc||Jr(!1),yc.isCombineEnabled===yd&&Jr(!1);var ku=(0,Oe.Z)({},yc,{isCombineEnabled:yd});return Jl(Ne,ku,!0)}if(Re.type==="MOVE_BY_WINDOW_SCROLL"){if(Ne.phase==="DROP_PENDING"||Ne.phase==="DROP_ANIMATING")return Ne;$u(Ne)||Jr(!1),Ne.isWindowScrollAllowed||Jr(!1);var mh=Re.payload.newScroll;if(Co(Ne.viewport.scroll.current,mh))return el(Ne);var _u=zs(Ne.viewport,mh);return Ql(Ne)?Mr({state:Ne,viewport:_u}):ju({state:Ne,viewport:_u})}if(Re.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!$u(Ne))return Ne;var nh=Re.payload.maxScroll;if(Co(nh,Ne.viewport.scroll.max))return Ne;var kf=(0,Oe.Z)({},Ne.viewport,{scroll:(0,Oe.Z)({},Ne.viewport.scroll,{max:nh})});return(0,Oe.Z)({phase:"DRAGGING"},Ne,{viewport:kf})}if(Re.type==="MOVE_UP"||Re.type==="MOVE_DOWN"||Re.type==="MOVE_LEFT"||Re.type==="MOVE_RIGHT"){if(Ne.phase==="COLLECTING"||Ne.phase==="DROP_PENDING")return Ne;Ne.phase!=="DRAGGING"&&Jr(!1);var rh=_c({state:Ne,type:Re.type});return rh?ju({state:Ne,impact:rh.impact,clientSelection:rh.clientSelection,scrollJumpRequest:rh.scrollJumpRequest}):Ne}if(Re.type==="DROP_PENDING"){var Ya=Re.payload.reason;Ne.phase!=="COLLECTING"&&Jr(!1);var sf=(0,Oe.Z)({phase:"DROP_PENDING"},Ne,{phase:"DROP_PENDING",isWaiting:!0,reason:Ya});return sf}if(Re.type==="DROP_ANIMATE"){var kp=Re.payload,ih=kp.completed,Lh=kp.dropDuration,Yh=kp.newHomeClientOffset;Ne.phase==="DRAGGING"||Ne.phase==="DROP_PENDING"||Jr(!1);var Sd={phase:"DROP_ANIMATING",completed:ih,dropDuration:Lh,newHomeClientOffset:Yh,dimensions:Ne.dimensions};return Sd}if(Re.type==="DROP_COMPLETE"){var op=Re.payload.completed;return{phase:"IDLE",completed:op,shouldFlush:!1}}return Ne},Au=function(Re){return{type:"BEFORE_INITIAL_CAPTURE",payload:Re}},ll=function(Re){return{type:"LIFT",payload:Re}},uu=function(Re){return{type:"INITIAL_PUBLISH",payload:Re}},$l=function(Re){return{type:"PUBLISH_WHILE_DRAGGING",payload:Re}},ac=function(){return{type:"COLLECTION_STARTING",payload:null}},ks=function(Re){return{type:"UPDATE_DROPPABLE_SCROLL",payload:Re}},tu=function(Re){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:Re}},ys=function(Re){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:Re}},Js=function(Re){return{type:"MOVE",payload:Re}},ul=function(Re){return{type:"MOVE_BY_WINDOW_SCROLL",payload:Re}},Sl=function(Re){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:Re}},Fs=function(){return{type:"MOVE_UP",payload:null}},wc=function(){return{type:"MOVE_DOWN",payload:null}},Ti=function(){return{type:"MOVE_RIGHT",payload:null}},Cc=function(){return{type:"MOVE_LEFT",payload:null}},ms=function(){return{type:"FLUSH",payload:null}},Id=function(Re){return{type:"DROP_ANIMATE",payload:Re}},sc=function(Re){return{type:"DROP_COMPLETE",payload:Re}},Zc=function(Re){return{type:"DROP",payload:Re}},gd=function(Re){return{type:"DROP_PENDING",payload:Re}},Gu=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function pc(Ne){if(!(Ne.length<=1)){for(var Re=Ne.map(function(rn){return rn.descriptor.index}),Je={},yt=1;yt<Re.length;yt++){var Ht=Re[yt],Bt=Re[yt-1];Ht!==Bt+1&&(Je[Ht]=!0)}if(Object.keys(Je).length)var Xt=Re.map(function(rn){var Gn=!!Je[rn];return Gn?"[\u{1F525}"+rn+"]":""+rn}).join(", ")}}function gc(Ne,Re){if(0)var Je}var Do=function(Ne){return function(Re){var Je=Re.getState,yt=Re.dispatch;return function(Ht){return function(Bt){if(Bt.type!=="LIFT"){Ht(Bt);return}var Xt=Bt.payload,rn=Xt.id,Gn=Xt.clientSelection,ar=Xt.movementMode,$n=Je();$n.phase==="DROP_ANIMATING"&&yt(sc({completed:$n.completed})),Je().phase!=="IDLE"&&Jr(!1),yt(ms()),yt(Au({draggableId:rn,movementMode:ar}));var Zn={shouldPublishImmediately:ar==="SNAP"},Yn={draggableId:rn,scrollOptions:Zn},yr=Ne.startPublishing(Yn),ei=yr.critical,So=yr.dimensions,Ao=yr.viewport;gc(ei,So),yt(uu({critical:ei,dimensions:So,clientSelection:Gn,movementMode:ar,viewport:Ao}))}}}},Pu=function(Ne){return function(){return function(Re){return function(Je){Je.type==="INITIAL_PUBLISH"&&Ne.dragging(),Je.type==="DROP_ANIMATE"&&Ne.dropping(Je.payload.completed.result.reason),(Je.type==="FLUSH"||Je.type==="DROP_COMPLETE")&&Ne.resting(),Re(Je)}}}},kt={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},en={opacity:{drop:0,combining:.7},scale:{drop:.75}},cn={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},hn=cn.outOfTheWay+"s "+kt.outOfTheWay,Dn={fluid:"opacity "+hn,snap:"transform "+hn+", opacity "+hn,drop:function(Re){var Je=Re+"s "+kt.drop;return"transform "+Je+", opacity "+Je},outOfTheWay:"transform "+hn,placeholder:"height "+hn+", width "+hn+", margin "+hn},qn=function(Re){return Co(Re,gs)?null:"translate("+Re.x+"px, "+Re.y+"px)"},lr={moveTo:qn,drop:function(Re,Je){var yt=qn(Re);return yt?Je?yt+" scale("+en.scale.drop+")":yt:null}},Pr=cn.minDropTime,Kr=cn.maxDropTime,Br=Kr-Pr,Si=1500,Gr=.6,li=function(Ne){var Re=Ne.current,Je=Ne.destination,yt=Ne.reason,Ht=oa(Re,Je);if(Ht<=0)return Pr;if(Ht>=Si)return Kr;var Bt=Ht/Si,Xt=Pr+Br*Bt,rn=yt==="CANCEL"?Xt*Gr:Xt;return Number(rn.toFixed(2))},$r=function(Ne){var Re=Ne.impact,Je=Ne.draggable,yt=Ne.dimensions,Ht=Ne.viewport,Bt=Ne.afterCritical,Xt=yt.draggables,rn=yt.droppables,Gn=Fl(Re),ar=Gn?rn[Gn]:null,$n=rn[Je.descriptor.droppableId],Zn=gn({impact:Re,draggable:Je,draggables:Xt,afterCritical:Bt,droppable:ar||$n,viewport:Ht}),Yn=Mn(Zn,Je.client.borderBox.center);return Yn},Ii=function(Ne){var Re=Ne.draggables,Je=Ne.reason,yt=Ne.lastImpact,Ht=Ne.home,Bt=Ne.viewport,Xt=Ne.onLiftImpact;if(!yt.at||Je!=="DROP"){var rn=xc({draggables:Re,impact:Xt,destination:Ht,viewport:Bt,forceShouldAnimate:!0});return{impact:rn,didDropInsideDroppable:!1}}if(yt.at.type==="REORDER")return{impact:yt,didDropInsideDroppable:!0};var Gn=(0,Oe.Z)({},yt,{displaced:pr});return{impact:Gn,didDropInsideDroppable:!0}},co=function(Ne){var Re=Ne.getState,Je=Ne.dispatch;return function(yt){return function(Ht){if(Ht.type!=="DROP"){yt(Ht);return}var Bt=Re(),Xt=Ht.payload.reason;if(Bt.phase==="COLLECTING"){Je(gd({reason:Xt}));return}if(Bt.phase!=="IDLE"){var rn=Bt.phase==="DROP_PENDING"&&Bt.isWaiting;rn&&Jr(!1),Bt.phase==="DRAGGING"||Bt.phase==="DROP_PENDING"||Jr(!1);var Gn=Bt.critical,ar=Bt.dimensions,$n=ar.draggables[Bt.critical.draggable.id],Zn=Ii({reason:Xt,lastImpact:Bt.impact,afterCritical:Bt.afterCritical,onLiftImpact:Bt.onLiftImpact,home:Bt.dimensions.droppables[Bt.critical.droppable.id],viewport:Bt.viewport,draggables:Bt.dimensions.draggables}),Yn=Zn.impact,yr=Zn.didDropInsideDroppable,ei=yr?ya(Yn):null,So=yr?xa(Yn):null,Ao={index:Gn.draggable.index,droppableId:Gn.droppable.id},Ho={draggableId:$n.descriptor.id,type:$n.descriptor.type,source:Ao,reason:Xt,mode:Bt.movementMode,destination:ei,combine:So},va=$r({impact:Yn,draggable:$n,dimensions:ar,viewport:Bt.viewport,afterCritical:Bt.afterCritical}),Fa={critical:Bt.critical,afterCritical:Bt.afterCritical,result:Ho,impact:Yn},ka=!Co(Bt.current.client.offset,va)||!!Ho.combine;if(!ka){Je(sc({completed:Fa}));return}var ps=li({current:Bt.current.client.offset,destination:va,reason:Xt}),il={newHomeClientOffset:va,dropDuration:ps,completed:Fa};Je(Id(il))}}}},To=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function ra(Ne){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(Je){Je.target!==window&&Je.target!==window.document||Ne()}}}function Mi(Ne){var Re=Ne.onWindowScroll;function Je(){Re(To())}var yt=Wn(Je),Ht=ra(yt),Bt=Pn;function Xt(){return Bt!==Pn}function rn(){Xt()&&Jr(!1),Bt=ji(window,[Ht])}function Gn(){Xt()||Jr(!1),yt.cancel(),Bt(),Bt=Pn}return{start:rn,stop:Gn,isActive:Xt}}var bo=function(Re){return Re.type==="DROP_COMPLETE"||Re.type==="DROP_ANIMATE"||Re.type==="FLUSH"},ro=function(Ne){var Re=Mi({onWindowScroll:function(yt){Ne.dispatch(ul({newScroll:yt}))}});return function(Je){return function(yt){!Re.isActive()&&yt.type==="INITIAL_PUBLISH"&&Re.start(),Re.isActive()&&bo(yt)&&Re.stop(),Je(yt)}}},ea=function(Ne){var Re=!1,Je=!1,yt=setTimeout(function(){Je=!0}),Ht=function(Xt){Re||Je||(Re=!0,Ne(Xt),clearTimeout(yt))};return Ht.wasCalled=function(){return Re},Ht},Ia=function(){var Ne=[],Re=function(Bt){var Xt=Xn(Ne,function(ar){return ar.timerId===Bt});Xt===-1&&Jr(!1);var rn=Ne.splice(Xt,1),Gn=rn[0];Gn.callback()},Je=function(Bt){var Xt=setTimeout(function(){return Re(Xt)}),rn={timerId:Xt,callback:Bt};Ne.push(rn)},yt=function(){if(Ne.length){var Bt=[].concat(Ne);Ne.length=0,Bt.forEach(function(Xt){clearTimeout(Xt.timerId),Xt.callback()})}};return{add:Je,flush:yt}},Vo=function(Re,Je){return Re==null&&Je==null?!0:Re==null||Je==null?!1:Re.droppableId===Je.droppableId&&Re.index===Je.index},ss=function(Re,Je){return Re==null&&Je==null?!0:Re==null||Je==null?!1:Re.draggableId===Je.draggableId&&Re.droppableId===Je.droppableId},Ma=function(Re,Je){if(Re===Je)return!0;var yt=Re.draggable.id===Je.draggable.id&&Re.draggable.droppableId===Je.draggable.droppableId&&Re.draggable.type===Je.draggable.type&&Re.draggable.index===Je.draggable.index,Ht=Re.droppable.id===Je.droppable.id&&Re.droppable.type===Je.droppable.type;return yt&&Ht},qa=function(Re,Je){yu(),Je(),Tu()},Le=function(Re,Je){return{draggableId:Re.draggable.id,type:Re.droppable.type,source:{droppableId:Re.droppable.id,index:Re.draggable.index},mode:Je}},nt=function(Re,Je,yt,Ht){if(!Re){yt(Ht(Je));return}var Bt=ea(yt),Xt={announce:Bt};Re(Je,Xt),Bt.wasCalled()||yt(Ht(Je))},Se=function(Ne,Re){var Je=Ia(),yt=null,Ht=function(Yn,yr){yt&&Jr(!1),qa("onBeforeCapture",function(){var ei=Ne().onBeforeCapture;if(ei){var So={draggableId:Yn,mode:yr};ei(So)}})},Bt=function(Yn,yr){yt&&Jr(!1),qa("onBeforeDragStart",function(){var ei=Ne().onBeforeDragStart;ei&&ei(Le(Yn,yr))})},Xt=function(Yn,yr){yt&&Jr(!1);var ei=Le(Yn,yr);yt={mode:yr,lastCritical:Yn,lastLocation:ei.source,lastCombine:null},Je.add(function(){qa("onDragStart",function(){return nt(Ne().onDragStart,ei,Re,sl.onDragStart)})})},rn=function(Yn,yr){var ei=ya(yr),So=xa(yr);yt||Jr(!1);var Ao=!Ma(Yn,yt.lastCritical);Ao&&(yt.lastCritical=Yn);var Ho=!Vo(yt.lastLocation,ei);Ho&&(yt.lastLocation=ei);var va=!ss(yt.lastCombine,So);if(va&&(yt.lastCombine=So),!(!Ao&&!Ho&&!va)){var Fa=(0,Oe.Z)({},Le(Yn,yt.mode),{combine:So,destination:ei});Je.add(function(){qa("onDragUpdate",function(){return nt(Ne().onDragUpdate,Fa,Re,sl.onDragUpdate)})})}},Gn=function(){yt||Jr(!1),Je.flush()},ar=function(Yn){yt||Jr(!1),yt=null,qa("onDragEnd",function(){return nt(Ne().onDragEnd,Yn,Re,sl.onDragEnd)})},$n=function(){if(yt){var Yn=(0,Oe.Z)({},Le(yt.lastCritical,yt.mode),{combine:null,destination:null,reason:"CANCEL"});ar(Yn)}};return{beforeCapture:Ht,beforeStart:Bt,start:Xt,update:rn,flush:Gn,drop:ar,abort:$n}},Te=function(Ne,Re){var Je=Se(Ne,Re);return function(yt){return function(Ht){return function(Bt){if(Bt.type==="BEFORE_INITIAL_CAPTURE"){Je.beforeCapture(Bt.payload.draggableId,Bt.payload.movementMode);return}if(Bt.type==="INITIAL_PUBLISH"){var Xt=Bt.payload.critical;Je.beforeStart(Xt,Bt.payload.movementMode),Ht(Bt),Je.start(Xt,Bt.payload.movementMode);return}if(Bt.type==="DROP_COMPLETE"){var rn=Bt.payload.completed.result;Je.flush(),Ht(Bt),Je.drop(rn);return}if(Ht(Bt),Bt.type==="FLUSH"){Je.abort();return}var Gn=yt.getState();Gn.phase==="DRAGGING"&&Je.update(Gn.critical,Gn.impact)}}}},ze=function(Ne){return function(Re){return function(Je){if(Je.type!=="DROP_ANIMATION_FINISHED"){Re(Je);return}var yt=Ne.getState();yt.phase!=="DROP_ANIMATING"&&Jr(!1),Ne.dispatch(sc({completed:yt.completed}))}}},Qe=function(Ne){var Re=null,Je=null;function yt(){Je&&(cancelAnimationFrame(Je),Je=null),Re&&(Re(),Re=null)}return function(Ht){return function(Bt){if((Bt.type==="FLUSH"||Bt.type==="DROP_COMPLETE"||Bt.type==="DROP_ANIMATION_FINISHED")&&yt(),Ht(Bt),Bt.type==="DROP_ANIMATE"){var Xt={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var Gn=Ne.getState();Gn.phase==="DROP_ANIMATING"&&Ne.dispatch(Gu())}};Je=requestAnimationFrame(function(){Je=null,Re=ji(window,[Xt])})}}}},mt=function(Ne){return function(){return function(Re){return function(Je){(Je.type==="DROP_COMPLETE"||Je.type==="FLUSH"||Je.type==="DROP_ANIMATE")&&Ne.stopPublishing(),Re(Je)}}}},Ae=function(Ne){var Re=!1;return function(){return function(Je){return function(yt){if(yt.type==="INITIAL_PUBLISH"){Re=!0,Ne.tryRecordFocus(yt.payload.critical.draggable.id),Je(yt),Ne.tryRestoreFocusRecorded();return}if(Je(yt),!!Re){if(yt.type==="FLUSH"){Re=!1,Ne.tryRestoreFocusRecorded();return}if(yt.type==="DROP_COMPLETE"){Re=!1;var Ht=yt.payload.completed.result;Ht.combine&&Ne.tryShiftRecord(Ht.draggableId,Ht.combine.draggableId),Ne.tryRestoreFocusRecorded()}}}}}},De=function(Re){return Re.type==="DROP_COMPLETE"||Re.type==="DROP_ANIMATE"||Re.type==="FLUSH"},qe=function(Ne){return function(Re){return function(Je){return function(yt){if(De(yt)){Ne.stop(),Je(yt);return}if(yt.type==="INITIAL_PUBLISH"){Je(yt);var Ht=Re.getState();Ht.phase!=="DRAGGING"&&Jr(!1),Ne.start(Ht);return}Je(yt),Ne.scroll(Re.getState())}}}},ot=function(Ne){return function(Re){return function(Je){if(Re(Je),Je.type==="PUBLISH_WHILE_DRAGGING"){var yt=Ne.getState();yt.phase==="DROP_PENDING"&&(yt.isWaiting||Ne.dispatch(Zc({reason:yt.reason})))}}}},Lt=tt.qC,Ut=function(Ne){var Re=Ne.dimensionMarshal,Je=Ne.focusMarshal,yt=Ne.styleMarshal,Ht=Ne.getResponders,Bt=Ne.announce,Xt=Ne.autoScroller;return(0,tt.MT)(Nl,Lt((0,tt.md)(Pu(yt),mt(Re),Do(Re),co,ze,Qe,ot,qe(Xt),ro,Ae(Je),Te(Ht,Bt))))},jt=function(){return{additions:{},removals:{},modified:{}}};function se(Ne){var Re=Ne.registry,Je=Ne.callbacks,yt=jt(),Ht=null,Bt=function(){Ht||(Je.collectionStarting(),Ht=requestAnimationFrame(function(){Ht=null,yu();var $n=yt,Zn=$n.additions,Yn=$n.removals,yr=$n.modified,ei=Object.keys(Zn).map(function(Ho){return Re.draggable.getById(Ho).getDimension(gs)}).sort(function(Ho,va){return Ho.descriptor.index-va.descriptor.index}),So=Object.keys(yr).map(function(Ho){var va=Re.droppable.getById(Ho),Fa=va.callbacks.getScrollWhileDragging();return{droppableId:Ho,scroll:Fa}}),Ao={additions:ei,removals:Object.keys(Yn),modified:So};yt=jt(),Tu(),Je.publish(Ao)}))},Xt=function($n){var Zn=$n.descriptor.id;yt.additions[Zn]=$n,yt.modified[$n.descriptor.droppableId]=!0,yt.removals[Zn]&&delete yt.removals[Zn],Bt()},rn=function($n){var Zn=$n.descriptor;yt.removals[Zn.id]=!0,yt.modified[Zn.droppableId]=!0,yt.additions[Zn.id]&&delete yt.additions[Zn.id],Bt()},Gn=function(){Ht&&(cancelAnimationFrame(Ht),Ht=null,yt=jt())};return{add:Xt,remove:rn,stop:Gn}}var fe=function(Ne){var Re=Ne.scrollHeight,Je=Ne.scrollWidth,yt=Ne.height,Ht=Ne.width,Bt=Mn({x:Je,y:Re},{x:Ht,y:yt}),Xt={x:Math.max(0,Bt.x),y:Math.max(0,Bt.y)};return Xt},je=function(){var Ne=document.documentElement;return Ne||Jr(!1),Ne},St=function(){var Ne=je(),Re=fe({scrollHeight:Ne.scrollHeight,scrollWidth:Ne.scrollWidth,width:Ne.clientWidth,height:Ne.clientHeight});return Re},Yt=function(){var Ne=To(),Re=St(),Je=Ne.y,yt=Ne.x,Ht=je(),Bt=Ht.clientWidth,Xt=Ht.clientHeight,rn=yt+Bt,Gn=Je+Xt,ar=hi({top:Je,left:yt,right:rn,bottom:Gn}),$n={frame:ar,scroll:{initial:Ne,current:Ne,max:Re,diff:{value:gs,displacement:gs}}};return $n},mn=function(Ne){var Re=Ne.critical,Je=Ne.scrollOptions,yt=Ne.registry;yu();var Ht=Yt(),Bt=Ht.scroll.current,Xt=Re.droppable,rn=yt.droppable.getAllByType(Xt.type).map(function(Zn){return Zn.callbacks.getDimensionAndWatchScroll(Bt,Je)}),Gn=yt.draggable.getAllByType(Re.draggable.type).map(function(Zn){return Zn.getDimension(Bt)}),ar={draggables:xr(Gn),droppables:ni(rn)};Tu();var $n={dimensions:ar,critical:Re,viewport:Ht};return $n};function wn(Ne,Re,Je){if(Je.descriptor.id===Re.id||Je.descriptor.type!==Re.type)return!1;var yt=Ne.droppable.getById(Je.descriptor.droppableId);return yt.descriptor.mode==="virtual"}var On=function(Ne,Re){var Je=null,yt=se({callbacks:{publish:Re.publishWhileDragging,collectionStarting:Re.collectionStarting},registry:Ne}),Ht=function(yr,ei){Ne.droppable.exists(yr)||Jr(!1),Je&&Re.updateDroppableIsEnabled({id:yr,isEnabled:ei})},Bt=function(yr,ei){Je&&(Ne.droppable.exists(yr)||Jr(!1),Re.updateDroppableIsCombineEnabled({id:yr,isCombineEnabled:ei}))},Xt=function(yr,ei){Je&&(Ne.droppable.exists(yr)||Jr(!1),Re.updateDroppableScroll({id:yr,newScroll:ei}))},rn=function(yr,ei){Je&&Ne.droppable.getById(yr).callbacks.scroll(ei)},Gn=function(){if(Je){yt.stop();var yr=Je.critical.droppable;Ne.droppable.getAllByType(yr.type).forEach(function(ei){return ei.callbacks.dragStopped()}),Je.unsubscribe(),Je=null}},ar=function(yr){Je||Jr(!1);var ei=Je.critical.draggable;yr.type==="ADDITION"&&wn(Ne,ei,yr.value)&&yt.add(yr.value),yr.type==="REMOVAL"&&wn(Ne,ei,yr.value)&&yt.remove(yr.value)},$n=function(yr){Je&&Jr(!1);var ei=Ne.draggable.getById(yr.draggableId),So=Ne.droppable.getById(ei.descriptor.droppableId),Ao={draggable:ei.descriptor,droppable:So.descriptor},Ho=Ne.subscribe(ar);return Je={critical:Ao,unsubscribe:Ho},mn({critical:Ao,registry:Ne,scrollOptions:yr.scrollOptions})},Zn={updateDroppableIsEnabled:Ht,updateDroppableIsCombineEnabled:Bt,scrollDroppable:rn,updateDroppableScroll:Xt,startPublishing:$n,stopPublishing:Gn};return Zn},Tn=function(Ne,Re){return Ne.phase==="IDLE"?!0:Ne.phase!=="DROP_ANIMATING"||Ne.completed.result.draggableId===Re?!1:Ne.completed.result.reason==="DROP"},br=function(Ne){window.scrollBy(Ne.x,Ne.y)},Wr=Fi(function(Ne){return xt(Ne).filter(function(Re){return!(!Re.isEnabled||!Re.frame)})}),di=function(Re,Je){var yt=Rr(Wr(Je),function(Ht){return Ht.frame||Jr(!1),od(Ht.frame.pageMarginBox)(Re)});return yt},ii=function(Ne){var Re=Ne.center,Je=Ne.destination,yt=Ne.droppables;if(Je){var Ht=yt[Je];return Ht.frame?Ht:null}var Bt=di(Re,yt);return Bt},oi={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(Re){return Math.pow(Re,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},Di=function(Ne,Re){var Je=Ne[Re.size]*oi.startFromPercentage,yt=Ne[Re.size]*oi.maxScrollAtPercentage,Ht={startScrollingFrom:Je,maxScrollValueAt:yt};return Ht},cr=function(Ne){var Re=Ne.startOfRange,Je=Ne.endOfRange,yt=Ne.current,Ht=Je-Re;if(Ht===0)return 0;var Bt=yt-Re,Xt=Bt/Ht;return Xt},pi=1,Yr=function(Ne,Re){if(Ne>Re.startScrollingFrom)return 0;if(Ne<=Re.maxScrollValueAt)return oi.maxPixelScroll;if(Ne===Re.startScrollingFrom)return pi;var Je=cr({startOfRange:Re.maxScrollValueAt,endOfRange:Re.startScrollingFrom,current:Ne}),yt=1-Je,Ht=oi.maxPixelScroll*oi.ease(yt);return Math.ceil(Ht)},Li=oi.durationDampening.accelerateAt,Vi=oi.durationDampening.stopDampeningAt,bi=function(Ne,Re){var Je=Re,yt=Vi,Ht=Date.now(),Bt=Ht-Je;if(Bt>=Vi)return Ne;if(Bt<Li)return pi;var Xt=cr({startOfRange:Li,endOfRange:yt,current:Bt}),rn=Ne*oi.ease(Xt);return Math.ceil(rn)},xo=function(Ne){var Re=Ne.distanceToEdge,Je=Ne.thresholds,yt=Ne.dragStartTime,Ht=Ne.shouldUseTimeDampening,Bt=Yr(Re,Je);return Bt===0?0:Ht?Math.max(bi(Bt,yt),pi):Bt},Fn=function(Ne){var Re=Ne.container,Je=Ne.distanceToEdges,yt=Ne.dragStartTime,Ht=Ne.axis,Bt=Ne.shouldUseTimeDampening,Xt=Di(Re,Ht),rn=Je[Ht.end]<Je[Ht.start];return rn?xo({distanceToEdge:Je[Ht.end],thresholds:Xt,dragStartTime:yt,shouldUseTimeDampening:Bt}):-1*xo({distanceToEdge:Je[Ht.start],thresholds:Xt,dragStartTime:yt,shouldUseTimeDampening:Bt})},mo=function(Ne){var Re=Ne.container,Je=Ne.subject,yt=Ne.proposedScroll,Ht=Je.height>Re.height,Bt=Je.width>Re.width;return!Bt&&!Ht?yt:Bt&&Ht?null:{x:Bt?0:yt.x,y:Ht?0:yt.y}},Ci=Ka(function(Ne){return Ne===0?0:Ne}),jn=function(Ne){var Re=Ne.dragStartTime,Je=Ne.container,yt=Ne.subject,Ht=Ne.center,Bt=Ne.shouldUseTimeDampening,Xt={top:Ht.y-Je.top,right:Je.right-Ht.x,bottom:Je.bottom-Ht.y,left:Ht.x-Je.left},rn=Fn({container:Je,distanceToEdges:Xt,dragStartTime:Re,axis:sn,shouldUseTimeDampening:Bt}),Gn=Fn({container:Je,distanceToEdges:Xt,dragStartTime:Re,axis:mr,shouldUseTimeDampening:Bt}),ar=Ci({x:Gn,y:rn});if(Co(ar,gs))return null;var $n=mo({container:Je,subject:yt,proposedScroll:ar});return $n?Co($n,gs)?null:$n:null},Uo=Ka(function(Ne){return Ne===0?0:Ne>0?1:-1}),ga=function(){var Ne=function(Je,yt){return Je<0?Je:Je>yt?Je-yt:0};return function(Re){var Je=Re.current,yt=Re.max,Ht=Re.change,Bt=es(Je,Ht),Xt={x:Ne(Bt.x,yt.x),y:Ne(Bt.y,yt.y)};return Co(Xt,gs)?null:Xt}}(),ca=function(Re){var Je=Re.max,yt=Re.current,Ht=Re.change,Bt={x:Math.max(yt.x,Je.x),y:Math.max(yt.y,Je.y)},Xt=Uo(Ht),rn=ga({max:Bt,current:yt,change:Xt});return!rn||Xt.x!==0&&rn.x===0||Xt.y!==0&&rn.y===0},$i=function(Re,Je){return ca({current:Re.scroll.current,max:Re.scroll.max,change:Je})},yo=function(Re,Je){if(!$i(Re,Je))return null;var yt=Re.scroll.max,Ht=Re.scroll.current;return ga({current:Ht,max:yt,change:Je})},ta=function(Re,Je){var yt=Re.frame;return yt?ca({current:yt.scroll.current,max:yt.scroll.max,change:Je}):!1},na=function(Re,Je){var yt=Re.frame;return!yt||!ta(Re,Je)?null:ga({current:yt.scroll.current,max:yt.scroll.max,change:Je})},Ha=function(Ne){var Re=Ne.viewport,Je=Ne.subject,yt=Ne.center,Ht=Ne.dragStartTime,Bt=Ne.shouldUseTimeDampening,Xt=jn({dragStartTime:Ht,container:Re.frame,subject:Je,center:yt,shouldUseTimeDampening:Bt});return Xt&&$i(Re,Xt)?Xt:null},wa=function(Ne){var Re=Ne.droppable,Je=Ne.subject,yt=Ne.center,Ht=Ne.dragStartTime,Bt=Ne.shouldUseTimeDampening,Xt=Re.frame;if(!Xt)return null;var rn=jn({dragStartTime:Ht,container:Xt.pageMarginBox,subject:Je,center:yt,shouldUseTimeDampening:Bt});return rn&&ta(Re,rn)?rn:null},ko=function(Ne){var Re=Ne.state,Je=Ne.dragStartTime,yt=Ne.shouldUseTimeDampening,Ht=Ne.scrollWindow,Bt=Ne.scrollDroppable,Xt=Re.current.page.borderBoxCenter,rn=Re.dimensions.draggables[Re.critical.draggable.id],Gn=rn.page.marginBox;if(Re.isWindowScrollAllowed){var ar=Re.viewport,$n=Ha({dragStartTime:Je,viewport:ar,subject:Gn,center:Xt,shouldUseTimeDampening:yt});if($n){Ht($n);return}}var Zn=ii({center:Xt,destination:Fl(Re.impact),droppables:Re.dimensions.droppables});if(Zn){var Yn=wa({dragStartTime:Je,droppable:Zn,subject:Gn,center:Xt,shouldUseTimeDampening:yt});Yn&&Bt(Zn.descriptor.id,Yn)}},fo=function(Ne){var Re=Ne.scrollWindow,Je=Ne.scrollDroppable,yt=Wn(Re),Ht=Wn(Je),Bt=null,Xt=function($n){Bt||Jr(!1);var Zn=Bt,Yn=Zn.shouldUseTimeDampening,yr=Zn.dragStartTime;ko({state:$n,scrollWindow:yt,scrollDroppable:Ht,dragStartTime:yr,shouldUseTimeDampening:Yn})},rn=function($n){yu(),Bt&&Jr(!1);var Zn=Date.now(),Yn=!1,yr=function(){Yn=!0};ko({state:$n,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:yr,scrollDroppable:yr}),Bt={dragStartTime:Zn,shouldUseTimeDampening:Yn},Tu(),Yn&&Xt($n)},Gn=function(){Bt&&(yt.cancel(),Ht.cancel(),Bt=null)};return{start:rn,stop:Gn,scroll:Xt}},Qo=function(Ne){var Re=Ne.move,Je=Ne.scrollDroppable,yt=Ne.scrollWindow,Ht=function(ar,$n){var Zn=es(ar.current.client.selection,$n);Re({client:Zn})},Bt=function(ar,$n){if(!ta(ar,$n))return $n;var Zn=na(ar,$n);if(!Zn)return Je(ar.descriptor.id,$n),null;var Yn=Mn($n,Zn);Je(ar.descriptor.id,Yn);var yr=Mn($n,Yn);return yr},Xt=function(ar,$n,Zn){if(!ar||!$i($n,Zn))return Zn;var Yn=yo($n,Zn);if(!Yn)return yt(Zn),null;var yr=Mn(Zn,Yn);yt(yr);var ei=Mn(Zn,yr);return ei},rn=function(ar){var $n=ar.scrollJumpRequest;if($n){var Zn=Fl(ar.impact);Zn||Jr(!1);var Yn=Bt(ar.dimensions.droppables[Zn],$n);if(Yn){var yr=ar.viewport,ei=Xt(ar.isWindowScrollAllowed,yr,Yn);ei&&Ht(ar,ei)}}};return rn},ja=function(Ne){var Re=Ne.scrollDroppable,Je=Ne.scrollWindow,yt=Ne.move,Ht=fo({scrollWindow:Je,scrollDroppable:Re}),Bt=Qo({move:yt,scrollWindow:Je,scrollDroppable:Re}),Xt=function(ar){if(ar.phase==="DRAGGING"){if(ar.movementMode==="FLUID"){Ht.scroll(ar);return}ar.scrollJumpRequest&&Bt(ar)}},rn={scroll:Xt,start:Ht.start,stop:Ht.stop};return rn},Lo="data-rbd",Ui=function(){var Ne=Lo+"-drag-handle";return{base:Ne,draggableId:Ne+"-draggable-id",contextId:Ne+"-context-id"}}(),so=function(){var Ne=Lo+"-draggable";return{base:Ne,contextId:Ne+"-context-id",id:Ne+"-id"}}(),ho=function(){var Ne=Lo+"-droppable";return{base:Ne,contextId:Ne+"-context-id",id:Ne+"-id"}}(),Pi={contextId:Lo+"-scroll-container-context-id"},Zi=function(Re){return function(Je){return"["+Je+'="'+Re+'"]'}},wo=function(Re,Je){return Re.map(function(yt){var Ht=yt.styles[Je];return Ht?yt.selector+" { "+Ht+" }":""}).join(" ")},Ea="pointer-events: none;",_r=function(Ne){var Re=Zi(Ne),Je=function(){var rn=`
|
|
|
cursor: -webkit-grab;
|
|
|
cursor: grab;
|
|
|
`;return{selector:Re(Ui.contextId),styles:{always:`
|
|
|
-webkit-touch-callout: none;
|
|
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
|
touch-action: manipulation;
|
|
|
`,resting:rn,dragging:Ea,dropAnimating:rn}}}(),yt=function(){var rn=`
|
|
|
transition: `+Dn.outOfTheWay+`;
|
|
|
`;return{selector:Re(so.contextId),styles:{dragging:rn,dropAnimating:rn,userCancel:rn}}}(),Ht={selector:Re(ho.contextId),styles:{always:"overflow-anchor: none;"}},Bt={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;
|
|
|
`}},Xt=[yt,Je,Ht,Bt];return{always:wo(Xt,"always"),resting:wo(Xt,"resting"),dragging:wo(Xt,"dragging"),dropAnimating:wo(Xt,"dropAnimating"),userCancel:wo(Xt,"userCancel")}},Qr=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?ie.useLayoutEffect:ie.useEffect,Ro=function(){var Re=document.querySelector("head");return Re||Jr(!1),Re},Bo=function(Re){var Je=document.createElement("style");return Re&&Je.setAttribute("nonce",Re),Je.type="text/css",Je};function Wo(Ne,Re){var Je=Qn(function(){return _r(Ne)},[Ne]),yt=(0,ie.useRef)(null),Ht=(0,ie.useRef)(null),Bt=Sn(Fi(function(Zn){var Yn=Ht.current;Yn||Jr(!1),Yn.textContent=Zn}),[]),Xt=Sn(function(Zn){var Yn=yt.current;Yn||Jr(!1),Yn.textContent=Zn},[]);Qr(function(){!yt.current&&!Ht.current||Jr(!1);var Zn=Bo(Re),Yn=Bo(Re);return yt.current=Zn,Ht.current=Yn,Zn.setAttribute(Lo+"-always",Ne),Yn.setAttribute(Lo+"-dynamic",Ne),Ro().appendChild(Zn),Ro().appendChild(Yn),Xt(Je.always),Bt(Je.resting),function(){var yr=function(So){var Ao=So.current;Ao||Jr(!1),Ro().removeChild(Ao),So.current=null};yr(yt),yr(Ht)}},[Re,Xt,Bt,Je.always,Je.resting,Ne]);var rn=Sn(function(){return Bt(Je.dragging)},[Bt,Je.dragging]),Gn=Sn(function(Zn){if(Zn==="DROP"){Bt(Je.dropAnimating);return}Bt(Je.userCancel)},[Bt,Je.dropAnimating,Je.userCancel]),ar=Sn(function(){Ht.current&&Bt(Je.resting)},[Bt,Je.resting]),$n=Qn(function(){return{dragging:rn,dropping:Gn,resting:ar}},[rn,Gn,ar]);return $n}var Za=function(Ne){return Ne&&Ne.ownerDocument?Ne.ownerDocument.defaultView:window};function Ko(Ne){return Ne instanceof Za(Ne).HTMLElement}function Oa(Ne,Re){var Je="["+Ui.contextId+'="'+Ne+'"]',yt=vi(document.querySelectorAll(Je));if(!yt.length)return null;var Ht=Rr(yt,function(Bt){return Bt.getAttribute(Ui.draggableId)===Re});return!Ht||!Ko(Ht)?null:Ht}function cs(Ne){var Re=(0,ie.useRef)({}),Je=(0,ie.useRef)(null),yt=(0,ie.useRef)(null),Ht=(0,ie.useRef)(!1),Bt=Sn(function(Yn,yr){var ei={id:Yn,focus:yr};return Re.current[Yn]=ei,function(){var Ao=Re.current,Ho=Ao[Yn];Ho!==ei&&delete Ao[Yn]}},[]),Xt=Sn(function(Yn){var yr=Oa(Ne,Yn);yr&&yr!==document.activeElement&&yr.focus()},[Ne]),rn=Sn(function(Yn,yr){Je.current===Yn&&(Je.current=yr)},[]),Gn=Sn(function(){yt.current||Ht.current&&(yt.current=requestAnimationFrame(function(){yt.current=null;var Yn=Je.current;Yn&&Xt(Yn)}))},[Xt]),ar=Sn(function(Yn){Je.current=null;var yr=document.activeElement;yr&&yr.getAttribute(Ui.draggableId)===Yn&&(Je.current=Yn)},[]);Qr(function(){return Ht.current=!0,function(){Ht.current=!1;var Yn=yt.current;Yn&&cancelAnimationFrame(Yn)}},[]);var $n=Qn(function(){return{register:Bt,tryRecordFocus:ar,tryRestoreFocusRecorded:Gn,tryShiftRecord:rn}},[Bt,ar,Gn,rn]);return $n}function Ws(){var Ne={draggables:{},droppables:{}},Re=[];function Je(Zn){return Re.push(Zn),function(){var yr=Re.indexOf(Zn);yr!==-1&&Re.splice(yr,1)}}function yt(Zn){Re.length&&Re.forEach(function(Yn){return Yn(Zn)})}function Ht(Zn){return Ne.draggables[Zn]||null}function Bt(Zn){var Yn=Ht(Zn);return Yn||Jr(!1),Yn}var Xt={register:function(Yn){Ne.draggables[Yn.descriptor.id]=Yn,yt({type:"ADDITION",value:Yn})},update:function(Yn,yr){var ei=Ne.draggables[yr.descriptor.id];ei&&ei.uniqueId===Yn.uniqueId&&(delete Ne.draggables[yr.descriptor.id],Ne.draggables[Yn.descriptor.id]=Yn)},unregister:function(Yn){var yr=Yn.descriptor.id,ei=Ht(yr);ei&&Yn.uniqueId===ei.uniqueId&&(delete Ne.draggables[yr],yt({type:"REMOVAL",value:Yn}))},getById:Bt,findById:Ht,exists:function(Yn){return!!Ht(Yn)},getAllByType:function(Yn){return En(Ne.draggables).filter(function(yr){return yr.descriptor.type===Yn})}};function rn(Zn){return Ne.droppables[Zn]||null}function Gn(Zn){var Yn=rn(Zn);return Yn||Jr(!1),Yn}var ar={register:function(Yn){Ne.droppables[Yn.descriptor.id]=Yn},unregister:function(Yn){var yr=rn(Yn.descriptor.id);yr&&Yn.uniqueId===yr.uniqueId&&delete Ne.droppables[Yn.descriptor.id]},getById:Gn,findById:rn,exists:function(Yn){return!!rn(Yn)},getAllByType:function(Yn){return En(Ne.droppables).filter(function(yr){return yr.descriptor.type===Yn})}};function $n(){Ne.draggables={},Ne.droppables={},Re.length=0}return{draggable:Xt,droppable:ar,subscribe:Je,clean:$n}}function Qa(){var Ne=Qn(Ws,[]);return(0,ie.useEffect)(function(){return function(){requestAnimationFrame(Ne.clean)}},[Ne]),Ne}var ds=ie.createContext(null),ma=function(){var Ne=document.body;return Ne||Jr(!1),Ne},Ks={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Rs=function(Re){return"rbd-announcement-"+Re};function tl(Ne){var Re=Qn(function(){return Rs(Ne)},[Ne]),Je=(0,ie.useRef)(null);(0,ie.useEffect)(function(){var Bt=document.createElement("div");return Je.current=Bt,Bt.id=Re,Bt.setAttribute("aria-live","assertive"),Bt.setAttribute("aria-atomic","true"),(0,Oe.Z)(Bt.style,Ks),ma().appendChild(Bt),function(){setTimeout(function(){var Gn=ma();Gn.contains(Bt)&&Gn.removeChild(Bt),Bt===Je.current&&(Je.current=null)})}},[Re]);var yt=Sn(function(Ht){var Bt=Je.current;if(Bt){Bt.textContent=Ht;return}},[]);return yt}var qi=0,eo={separator:"::"};function po(){qi=0}function da(Ne,Re){return Re===void 0&&(Re=eo),Qn(function(){return""+Ne+Re.separator+qi++},[Re.separator,Ne])}function hs(Ne){var Re=Ne.contextId,Je=Ne.uniqueId;return"rbd-hidden-text-"+Re+"-"+Je}function Bs(Ne){var Re=Ne.contextId,Je=Ne.text,yt=da("hidden-text",{separator:"-"}),Ht=Qn(function(){return hs({contextId:Re,uniqueId:yt})},[yt,Re]);return(0,ie.useEffect)(function(){var Xt=document.createElement("div");return Xt.id=Ht,Xt.textContent=Je,Xt.style.display="none",ma().appendChild(Xt),function(){var Gn=ma();Gn.contains(Xt)&&Gn.removeChild(Xt)}},[Ht,Je]),Ht}var $s=ie.createContext(null),xn={react:"^16.8.5","react-dom":"^16.8.5"},Da=/(\d+)\.(\d+)\.(\d+)/,Ja=function(Re){var Je=Da.exec(Re);Je==null&&Jr(!1);var yt=Number(Je[1]),Ht=Number(Je[2]),Bt=Number(Je[3]);return{major:yt,minor:Ht,patch:Bt,raw:Re}},fs=function(Re,Je){return Je.major>Re.major?!0:Je.major<Re.major?!1:Je.minor>Re.minor?!0:Je.minor<Re.minor?!1:Je.patch>=Re.patch},jl=function(Ne,Re){var Je=Ja(Ne),yt=Ja(Re);fs(Je,yt)},fl=`
|
|
|
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
|
|
|
`,Qi=function(Ne){var Re=Ne.doctype;Re&&(Re.name.toLowerCase(),Re.publicId)};function jo(Ne){}function io(Ne,Re){}function La(){io(function(){jl(xn.react,ie.version),Qi(document)},[])}function Cs(Ne){var Re=(0,ie.useRef)(Ne);return(0,ie.useEffect)(function(){Re.current=Ne}),Re}function Yo(){var Ne=null;function Re(){return!!Ne}function Je(Xt){return Xt===Ne}function yt(Xt){Ne&&Jr(!1);var rn={abandon:Xt};return Ne=rn,rn}function Ht(){Ne||Jr(!1),Ne=null}function Bt(){Ne&&(Ne.abandon(),Ht())}return{isClaimed:Re,isActive:Je,claim:yt,release:Ht,tryAbandon:Bt}}var is=9,Ga=13,$a=27,Ss=32,Ms=33,cu=34,zu=35,Ts=36,rs=37,As=38,nl=39,Ol=40,zl,Aa=(zl={},zl[Ga]=!0,zl[is]=!0,zl),ia=function(Ne){Aa[Ne.keyCode]&&Ne.preventDefault()},rl=function(){var Ne="visibilitychange";if(typeof document=="undefined")return Ne;var Re=[Ne,"ms"+Ne,"webkit"+Ne,"moz"+Ne,"o"+Ne],Je=Rr(Re,function(yt){return"on"+yt in document});return Je||Ne}(),nu=0,ql=5;function du(Ne,Re){return Math.abs(Re.x-Ne.x)>=ql||Math.abs(Re.y-Ne.y)>=ql}var Rl={type:"IDLE"};function Vu(Ne){var Re=Ne.cancel,Je=Ne.completed,yt=Ne.getPhase,Ht=Ne.setPhase;return[{eventName:"mousemove",fn:function(Xt){var rn=Xt.button,Gn=Xt.clientX,ar=Xt.clientY;if(rn===nu){var $n={x:Gn,y:ar},Zn=yt();if(Zn.type==="DRAGGING"){Xt.preventDefault(),Zn.actions.move($n);return}Zn.type!=="PENDING"&&Jr(!1);var Yn=Zn.point;if(du(Yn,$n)){Xt.preventDefault();var yr=Zn.actions.fluidLift($n);Ht({type:"DRAGGING",actions:yr})}}}},{eventName:"mouseup",fn:function(Xt){var rn=yt();if(rn.type!=="DRAGGING"){Re();return}Xt.preventDefault(),rn.actions.drop({shouldBlockNextClick:!0}),Je()}},{eventName:"mousedown",fn:function(Xt){yt().type==="DRAGGING"&&Xt.preventDefault(),Re()}},{eventName:"keydown",fn:function(Xt){var rn=yt();if(rn.type==="PENDING"){Re();return}if(Xt.keyCode===$a){Xt.preventDefault(),Re();return}ia(Xt)}},{eventName:"resize",fn:Re},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){yt().type==="PENDING"&&Re()}},{eventName:"webkitmouseforcedown",fn:function(Xt){var rn=yt();if(rn.type==="IDLE"&&Jr(!1),rn.actions.shouldRespectForcePress()){Re();return}Xt.preventDefault()}},{eventName:rl,fn:Re}]}function El(Ne){var Re=(0,ie.useRef)(Rl),Je=(0,ie.useRef)(Pn),yt=Qn(function(){return{eventName:"mousedown",fn:function(Zn){if(!Zn.defaultPrevented&&Zn.button===nu&&!(Zn.ctrlKey||Zn.metaKey||Zn.shiftKey||Zn.altKey)){var Yn=Ne.findClosestDraggableId(Zn);if(Yn){var yr=Ne.tryGetLock(Yn,Xt,{sourceEvent:Zn});if(yr){Zn.preventDefault();var ei={x:Zn.clientX,y:Zn.clientY};Je.current(),ar(yr,ei)}}}}}},[Ne]),Ht=Qn(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Zn){if(!Zn.defaultPrevented){var Yn=Ne.findClosestDraggableId(Zn);if(Yn){var yr=Ne.findOptionsForDraggable(Yn);yr&&(yr.shouldRespectForcePress||Ne.canGetLock(Yn)&&Zn.preventDefault())}}}}},[Ne]),Bt=Sn(function(){var Zn={passive:!1,capture:!0};Je.current=ji(window,[Ht,yt],Zn)},[Ht,yt]),Xt=Sn(function(){var $n=Re.current;$n.type!=="IDLE"&&(Re.current=Rl,Je.current(),Bt())},[Bt]),rn=Sn(function(){var $n=Re.current;Xt(),$n.type==="DRAGGING"&&$n.actions.cancel({shouldBlockNextClick:!0}),$n.type==="PENDING"&&$n.actions.abort()},[Xt]),Gn=Sn(function(){var Zn={capture:!0,passive:!1},Yn=Vu({cancel:rn,completed:Xt,getPhase:function(){return Re.current},setPhase:function(ei){Re.current=ei}});Je.current=ji(window,Yn,Zn)},[rn,Xt]),ar=Sn(function(Zn,Yn){Re.current.type!=="IDLE"&&Jr(!1),Re.current={type:"PENDING",point:Yn,actions:Zn},Gn()},[Gn]);Qr(function(){return Bt(),function(){Je.current()}},[Bt])}var ru;function Hc(){}var md=(ru={},ru[cu]=!0,ru[Ms]=!0,ru[Ts]=!0,ru[zu]=!0,ru);function Jd(Ne,Re){function Je(){Re(),Ne.cancel()}function yt(){Re(),Ne.drop()}return[{eventName:"keydown",fn:function(Bt){if(Bt.keyCode===$a){Bt.preventDefault(),Je();return}if(Bt.keyCode===Ss){Bt.preventDefault(),yt();return}if(Bt.keyCode===Ol){Bt.preventDefault(),Ne.moveDown();return}if(Bt.keyCode===As){Bt.preventDefault(),Ne.moveUp();return}if(Bt.keyCode===nl){Bt.preventDefault(),Ne.moveRight();return}if(Bt.keyCode===rs){Bt.preventDefault(),Ne.moveLeft();return}if(md[Bt.keyCode]){Bt.preventDefault();return}ia(Bt)}},{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:rl,fn:Je}]}function Hd(Ne){var Re=(0,ie.useRef)(Hc),Je=Qn(function(){return{eventName:"keydown",fn:function(Bt){if(Bt.defaultPrevented||Bt.keyCode!==Ss)return;var Xt=Ne.findClosestDraggableId(Bt);if(!Xt)return;var rn=Ne.tryGetLock(Xt,$n,{sourceEvent:Bt});if(!rn)return;Bt.preventDefault();var Gn=!0,ar=rn.snapLift();Re.current();function $n(){Gn||Jr(!1),Gn=!1,Re.current(),yt()}Re.current=ji(window,Jd(ar,$n),{capture:!0,passive:!1})}}},[Ne]),yt=Sn(function(){var Bt={passive:!1,capture:!0};Re.current=ji(window,[Je],Bt)},[Je]);Qr(function(){return yt(),function(){Re.current()}},[yt])}var $d={type:"IDLE"},qd=120,ph=.15;function Xc(Ne){var Re=Ne.cancel,Je=Ne.getPhase;return[{eventName:"orientationchange",fn:Re},{eventName:"resize",fn:Re},{eventName:"contextmenu",fn:function(Ht){Ht.preventDefault()}},{eventName:"keydown",fn:function(Ht){if(Je().type!=="DRAGGING"){Re();return}Ht.keyCode===$a&&Ht.preventDefault(),Re()}},{eventName:rl,fn:Re}]}function pl(Ne){var Re=Ne.cancel,Je=Ne.completed,yt=Ne.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Bt){var Xt=yt();if(Xt.type!=="DRAGGING"){Re();return}Xt.hasMoved=!0;var rn=Bt.touches[0],Gn=rn.clientX,ar=rn.clientY,$n={x:Gn,y:ar};Bt.preventDefault(),Xt.actions.move($n)}},{eventName:"touchend",fn:function(Bt){var Xt=yt();if(Xt.type!=="DRAGGING"){Re();return}Bt.preventDefault(),Xt.actions.drop({shouldBlockNextClick:!0}),Je()}},{eventName:"touchcancel",fn:function(Bt){if(yt().type!=="DRAGGING"){Re();return}Bt.preventDefault(),Re()}},{eventName:"touchforcechange",fn:function(Bt){var Xt=yt();Xt.type==="IDLE"&&Jr(!1);var rn=Bt.touches[0];if(rn){var Gn=rn.force>=ph;if(Gn){var ar=Xt.actions.shouldRespectForcePress();if(Xt.type==="PENDING"){ar&&Re();return}if(ar){if(Xt.hasMoved){Bt.preventDefault();return}Re();return}Bt.preventDefault()}}}},{eventName:rl,fn:Re}]}function qs(Ne){var Re=(0,ie.useRef)($d),Je=(0,ie.useRef)(Pn),yt=Sn(function(){return Re.current},[]),Ht=Sn(function(yr){Re.current=yr},[]),Bt=Qn(function(){return{eventName:"touchstart",fn:function(yr){if(!yr.defaultPrevented){var ei=Ne.findClosestDraggableId(yr);if(ei){var So=Ne.tryGetLock(ei,rn,{sourceEvent:yr});if(So){var Ao=yr.touches[0],Ho=Ao.clientX,va=Ao.clientY,Fa={x:Ho,y:va};Je.current(),Zn(So,Fa)}}}}}},[Ne]),Xt=Sn(function(){var yr={capture:!0,passive:!1};Je.current=ji(window,[Bt],yr)},[Bt]),rn=Sn(function(){var Yn=Re.current;Yn.type!=="IDLE"&&(Yn.type==="PENDING"&&clearTimeout(Yn.longPressTimerId),Ht($d),Je.current(),Xt())},[Xt,Ht]),Gn=Sn(function(){var Yn=Re.current;rn(),Yn.type==="DRAGGING"&&Yn.actions.cancel({shouldBlockNextClick:!0}),Yn.type==="PENDING"&&Yn.actions.abort()},[rn]),ar=Sn(function(){var yr={capture:!0,passive:!1},ei={cancel:Gn,completed:rn,getPhase:yt},So=ji(window,pl(ei),yr),Ao=ji(window,Xc(ei),yr);Je.current=function(){So(),Ao()}},[Gn,yt,rn]),$n=Sn(function(){var yr=yt();yr.type!=="PENDING"&&Jr(!1);var ei=yr.actions.fluidLift(yr.point);Ht({type:"DRAGGING",actions:ei,hasMoved:!1})},[yt,Ht]),Zn=Sn(function(yr,ei){yt().type!=="IDLE"&&Jr(!1);var So=setTimeout($n,qd);Ht({type:"PENDING",point:ei,actions:yr,longPressTimerId:So}),ar()},[ar,yt,Ht,$n]);Qr(function(){return Xt(),function(){Je.current();var ei=yt();ei.type==="PENDING"&&(clearTimeout(ei.longPressTimerId),Ht($d))}},[yt,Xt,Ht]),Qr(function(){var yr=ji(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return yr},[])}function qu(Ne){}var Wu={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Kl(Ne,Re){if(Re==null)return!1;var Je=!!Wu[Re.tagName.toLowerCase()];if(Je)return!0;var yt=Re.getAttribute("contenteditable");return yt==="true"||yt===""?!0:Re===Ne?!1:Kl(Ne,Re.parentElement)}function Ps(Ne,Re){var Je=Re.target;return Ko(Je)?Kl(Ne,Je):!1}var Ns=function(Ne){return hi(Ne.getBoundingClientRect()).center};function hu(Ne){return Ne instanceof Za(Ne).Element}var Gl=function(){var Ne="matches";if(typeof document=="undefined")return Ne;var Re=[Ne,"msMatchesSelector","webkitMatchesSelector"],Je=Rr(Re,function(yt){return yt in Element.prototype});return Je||Ne}();function iu(Ne,Re){return Ne==null?null:Ne[Gl](Re)?Ne:iu(Ne.parentElement,Re)}function vu(Ne,Re){return Ne.closest?Ne.closest(Re):iu(Ne,Re)}function ec(Ne){return"["+Ui.contextId+'="'+Ne+'"]'}function Fu(Ne,Re){var Je=Re.target;if(!hu(Je))return null;var yt=ec(Ne),Ht=vu(Je,yt);return!Ht||!Ko(Ht)?null:Ht}function jd(Ne,Re){var Je=Fu(Ne,Re);return Je?Je.getAttribute(Ui.draggableId):null}function Tc(Ne,Re){var Je="["+so.contextId+'="'+Ne+'"]',yt=vi(document.querySelectorAll(Je)),Ht=Rr(yt,function(Bt){return Bt.getAttribute(so.id)===Re});return!Ht||!Ko(Ht)?null:Ht}function Gd(Ne){Ne.preventDefault()}function kd(Ne){var Re=Ne.expected,Je=Ne.phase,yt=Ne.isLockActive,Ht=Ne.shouldWarn;return!(!yt()||Re!==Je)}function wh(Ne){var Re=Ne.lockAPI,Je=Ne.store,yt=Ne.registry,Ht=Ne.draggableId;if(Re.isClaimed())return!1;var Bt=yt.draggable.findById(Ht);return!(!Bt||!Bt.options.isEnabled||!Tn(Je.getState(),Ht))}function xp(Ne){var Re=Ne.lockAPI,Je=Ne.contextId,yt=Ne.store,Ht=Ne.registry,Bt=Ne.draggableId,Xt=Ne.forceSensorStop,rn=Ne.sourceEvent,Gn=wh({lockAPI:Re,store:yt,registry:Ht,draggableId:Bt});if(!Gn)return null;var ar=Ht.draggable.getById(Bt),$n=Tc(Je,ar.descriptor.id);if(!$n||rn&&!ar.options.canDragInteractiveElements&&Ps($n,rn))return null;var Zn=Re.claim(Xt||Pn),Yn="PRE_DRAG";function yr(){return ar.options.shouldRespectForcePress}function ei(){return Re.isActive(Zn)}function So(il,Ll){kd({expected:il,phase:Yn,isLockActive:ei,shouldWarn:!0})&&yt.dispatch(Ll())}var Ao=So.bind(null,"DRAGGING");function Ho(il){function Ll(){Re.release(),Yn="COMPLETED"}Yn!=="PRE_DRAG"&&(Ll(),Yn!=="PRE_DRAG"&&Jr(!1)),yt.dispatch(ll(il.liftActionArgs)),Yn="DRAGGING";function Xu(wl,Bu){if(Bu===void 0&&(Bu={shouldBlockNextClick:!1}),il.cleanup(),Bu.shouldBlockNextClick){var Gc=ji(window,[{eventName:"click",fn:Gd,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(Gc)}Ll(),yt.dispatch(Zc({reason:wl}))}return(0,Oe.Z)({isActive:function(){return kd({expected:"DRAGGING",phase:Yn,isLockActive:ei,shouldWarn:!1})},shouldRespectForcePress:yr,drop:function(Bu){return Xu("DROP",Bu)},cancel:function(Bu){return Xu("CANCEL",Bu)}},il.actions)}function va(il){var Ll=Wn(function(wl){Ao(function(){return Js({client:wl})})}),Xu=Ho({liftActionArgs:{id:Bt,clientSelection:il,movementMode:"FLUID"},cleanup:function(){return Ll.cancel()},actions:{move:Ll}});return(0,Oe.Z)({},Xu,{move:Ll})}function Fa(){var il={moveUp:function(){return Ao(Fs)},moveRight:function(){return Ao(Ti)},moveDown:function(){return Ao(wc)},moveLeft:function(){return Ao(Cc)}};return Ho({liftActionArgs:{id:Bt,clientSelection:Ns($n),movementMode:"SNAP"},cleanup:Pn,actions:il})}function ka(){var il=kd({expected:"PRE_DRAG",phase:Yn,isLockActive:ei,shouldWarn:!0});il&&Re.release()}var ps={isActive:function(){return kd({expected:"PRE_DRAG",phase:Yn,isLockActive:ei,shouldWarn:!1})},shouldRespectForcePress:yr,fluidLift:va,snapLift:Fa,abort:ka};return ps}var wp=[El,Hd,qs];function Vg(Ne){var Re=Ne.contextId,Je=Ne.store,yt=Ne.registry,Ht=Ne.customSensors,Bt=Ne.enableDefaultSensors,Xt=[].concat(Bt?wp:[],Ht||[]),rn=(0,ie.useState)(function(){return Yo()})[0],Gn=Sn(function(va,Fa){va.isDragging&&!Fa.isDragging&&rn.tryAbandon()},[rn]);Qr(function(){var va=Je.getState(),Fa=Je.subscribe(function(){var ka=Je.getState();Gn(va,ka),va=ka});return Fa},[rn,Je,Gn]),Qr(function(){return rn.tryAbandon},[rn.tryAbandon]);var ar=Sn(function(Ho){return wh({lockAPI:rn,registry:yt,store:Je,draggableId:Ho})},[rn,yt,Je]),$n=Sn(function(Ho,va,Fa){return xp({lockAPI:rn,registry:yt,contextId:Re,store:Je,draggableId:Ho,forceSensorStop:va,sourceEvent:Fa&&Fa.sourceEvent?Fa.sourceEvent:null})},[Re,rn,yt,Je]),Zn=Sn(function(Ho){return jd(Re,Ho)},[Re]),Yn=Sn(function(Ho){var va=yt.draggable.findById(Ho);return va?va.options:null},[yt.draggable]),yr=Sn(function(){rn.isClaimed()&&(rn.tryAbandon(),Je.getState().phase!=="IDLE"&&Je.dispatch(ms()))},[rn,Je]),ei=Sn(rn.isClaimed,[rn]),So=Qn(function(){return{canGetLock:ar,tryGetLock:$n,findClosestDraggableId:Zn,findOptionsForDraggable:Yn,tryReleaseLock:yr,isLockClaimed:ei}},[ar,$n,Zn,Yn,yr,ei]);qu(Xt);for(var Ao=0;Ao<Xt.length;Ao++)Xt[Ao](So)}var tg=function(Re){return{onBeforeCapture:Re.onBeforeCapture,onBeforeDragStart:Re.onBeforeDragStart,onDragStart:Re.onDragStart,onDragEnd:Re.onDragEnd,onDragUpdate:Re.onDragUpdate}};function Ch(Ne){return Ne.current||Jr(!1),Ne.current}function np(Ne){var Re=Ne.contextId,Je=Ne.setCallbacks,yt=Ne.sensors,Ht=Ne.nonce,Bt=Ne.dragHandleUsageInstructions,Xt=(0,ie.useRef)(null);La();var rn=Cs(Ne),Gn=Sn(function(){return tg(rn.current)},[rn]),ar=tl(Re),$n=Bs({contextId:Re,text:Bt}),Zn=Wo(Re,Ht),Yn=Sn(function(wl){Ch(Xt).dispatch(wl)},[]),yr=Qn(function(){return(0,tt.DE)({publishWhileDragging:$l,updateDroppableScroll:ks,updateDroppableIsEnabled:tu,updateDroppableIsCombineEnabled:ys,collectionStarting:ac},Yn)},[Yn]),ei=Qa(),So=Qn(function(){return On(ei,yr)},[ei,yr]),Ao=Qn(function(){return ja((0,Oe.Z)({scrollWindow:br,scrollDroppable:So.scrollDroppable},(0,tt.DE)({move:Js},Yn)))},[So.scrollDroppable,Yn]),Ho=cs(Re),va=Qn(function(){return Ut({announce:ar,autoScroller:Ao,dimensionMarshal:So,focusMarshal:Ho,getResponders:Gn,styleMarshal:Zn})},[ar,Ao,So,Ho,Gn,Zn]);Xt.current=va;var Fa=Sn(function(){var wl=Ch(Xt),Bu=wl.getState();Bu.phase!=="IDLE"&&wl.dispatch(ms())},[]),ka=Sn(function(){var wl=Ch(Xt).getState();return wl.isDragging||wl.phase==="DROP_ANIMATING"},[]),ps=Qn(function(){return{isDragging:ka,tryAbort:Fa}},[ka,Fa]);Je(ps);var il=Sn(function(wl){return Tn(Ch(Xt).getState(),wl)},[]),Ll=Sn(function(){return $u(Ch(Xt).getState())},[]),Xu=Qn(function(){return{marshal:So,focus:Ho,contextId:Re,canLift:il,isMovementAllowed:Ll,dragHandleUsageInstructionsId:$n,registry:ei}},[Re,So,$n,Ho,il,Ll,ei]);return Vg({contextId:Re,store:va,registry:ei,customSensors:yt,enableDefaultSensors:Ne.enableDefaultSensors!==!1}),(0,ie.useEffect)(function(){return Fa},[Fa]),ie.createElement($s.Provider,{value:Xu},ie.createElement(de,{context:ds,store:va},Ne.children))}var Nf=0;function ng(){Nf=0}function rp(){return Qn(function(){return""+Nf++},[])}function jh(){ng(),po()}function Cp(Ne){var Re=rp(),Je=Ne.dragHandleUsageInstructions||sl.dragHandleUsageInstructions;return ie.createElement(ls,null,function(yt){return ie.createElement(np,{nonce:Ne.nonce,contextId:Re,setCallbacks:yt,dragHandleUsageInstructions:Je,enableDefaultSensors:Ne.enableDefaultSensors,sensors:Ne.sensors,onBeforeCapture:Ne.onBeforeCapture,onBeforeDragStart:Ne.onBeforeDragStart,onDragStart:Ne.onDragStart,onDragUpdate:Ne.onDragUpdate,onDragEnd:Ne.onDragEnd},Ne.children)})}var Gh=function(Re){return function(Je){return Re===Je}},rg=Gh("scroll"),ip=Gh("auto"),ig=Gh("visible"),bl=function(Re,Je){return Je(Re.overflowX)||Je(Re.overflowY)},of=function(Re,Je){return Je(Re.overflowX)&&Je(Re.overflowY)},Th=function(Re){var Je=window.getComputedStyle(Re),yt={overflowX:Je.overflowX,overflowY:Je.overflowY};return bl(yt,rg)||bl(yt,ip)},tc=function(){return!1;var Re,Je,yt,Ht},jc=function Ne(Re){return Re==null?null:Re===document.body?tc()?Re:null:Re===document.documentElement?null:Th(Re)?Re:Ne(Re.parentElement)},af=function(Ne){if(Ne)var Re=jc(Ne.parentElement)},zh=function(Ne){return{x:Ne.scrollLeft,y:Ne.scrollTop}},Tp=function Ne(Re){if(!Re)return!1;var Je=window.getComputedStyle(Re);return Je.position==="fixed"?!0:Ne(Re.parentElement)},Ap=function(Ne){var Re=jc(Ne),Je=Tp(Ne);return{closestScrollable:Re,isFixedOnPage:Je}},Pp=function(Ne){var Re=Ne.descriptor,Je=Ne.isEnabled,yt=Ne.isCombineEnabled,Ht=Ne.isFixedOnPage,Bt=Ne.direction,Xt=Ne.client,rn=Ne.page,Gn=Ne.closest,ar=function(){if(!Gn)return null;var yr=Gn.scrollSize,ei=Gn.client,So=fe({scrollHeight:yr.scrollHeight,scrollWidth:yr.scrollWidth,height:ei.paddingBox.height,width:ei.paddingBox.width});return{pageMarginBox:Gn.page.marginBox,frameClient:ei,scrollSize:yr,shouldClipSubject:Gn.shouldClipSubject,scroll:{initial:Gn.scroll,current:Gn.scroll,max:So,diff:{value:gs,displacement:gs}}}}(),$n=Bt==="vertical"?sn:mr,Zn=Nr({page:rn,withPlaceholder:null,axis:$n,frame:ar}),Yn={descriptor:Re,isCombineEnabled:yt,isFixedOnPage:Ht,axis:$n,isEnabled:Je,client:Xt,page:rn,frame:ar,subject:Zn};return Yn},Np=function(Re,Je){var yt=ur(Re);if(!Je||Re!==Je)return yt;var Ht=yt.paddingBox.top-Je.scrollTop,Bt=yt.paddingBox.left-Je.scrollLeft,Xt=Ht+Je.scrollHeight,rn=Bt+Je.scrollWidth,Gn={top:Ht,right:rn,bottom:Xt,left:Bt},ar=Ir(Gn,yt.border),$n=ui({borderBox:ar,margin:yt.margin,border:yt.border,padding:yt.padding});return $n},Lp=function(Ne){var Re=Ne.ref,Je=Ne.descriptor,yt=Ne.env,Ht=Ne.windowScroll,Bt=Ne.direction,Xt=Ne.isDropDisabled,rn=Ne.isCombineEnabled,Gn=Ne.shouldClipSubject,ar=yt.closestScrollable,$n=Np(Re,ar),Zn=We($n,Ht),Yn=function(){if(!ar)return null;var ei=ur(ar),So={scrollHeight:ar.scrollHeight,scrollWidth:ar.scrollWidth};return{client:ei,page:We(ei,Ht),scroll:zh(ar),scrollSize:So,shouldClipSubject:Gn}}(),yr=Pp({descriptor:Je,isEnabled:!Xt,isCombineEnabled:rn,isFixedOnPage:yt.isFixedOnPage,direction:Bt,client:$n,page:Zn,closest:Yn});return yr},Ah={passive:!1},Lf={passive:!0},gh=function(Ne){return Ne.shouldPublishImmediately?Ah:Lf};function Bl(Ne){var Re=(0,ie.useContext)(Ne);return Re||Jr(!1),Re}var Vh=function(Re){return Re&&Re.env.closestScrollable||null};function Ip(Ne){var Re=(0,ie.useRef)(null),Je=Bl($s),yt=da("droppable"),Ht=Je.registry,Bt=Je.marshal,Xt=Cs(Ne),rn=Qn(function(){return{id:Ne.droppableId,type:Ne.type,mode:Ne.mode}},[Ne.droppableId,Ne.mode,Ne.type]),Gn=(0,ie.useRef)(rn),ar=Qn(function(){return Fi(function(ka,ps){Re.current||Jr(!1);var il={x:ka,y:ps};Bt.updateDroppableScroll(rn.id,il)})},[rn.id,Bt]),$n=Sn(function(){var ka=Re.current;return!ka||!ka.env.closestScrollable?gs:zh(ka.env.closestScrollable)},[]),Zn=Sn(function(){var ka=$n();ar(ka.x,ka.y)},[$n,ar]),Yn=Qn(function(){return Wn(Zn)},[Zn]),yr=Sn(function(){var ka=Re.current,ps=Vh(ka);ka&&ps||Jr(!1);var il=ka.scrollOptions;if(il.shouldPublishImmediately){Zn();return}Yn()},[Yn,Zn]),ei=Sn(function(ka,ps){Re.current&&Jr(!1);var il=Xt.current,Ll=il.getDroppableRef();Ll||Jr(!1);var Xu=Ap(Ll),wl={ref:Ll,descriptor:rn,env:Xu,scrollOptions:ps};Re.current=wl;var Bu=Lp({ref:Ll,descriptor:rn,env:Xu,windowScroll:ka,direction:il.direction,isDropDisabled:il.isDropDisabled,isCombineEnabled:il.isCombineEnabled,shouldClipSubject:!il.ignoreContainerClipping}),Gc=Xu.closestScrollable;return Gc&&(Gc.setAttribute(Pi.contextId,Je.contextId),Gc.addEventListener("scroll",yr,gh(wl.scrollOptions))),Bu},[Je.contextId,rn,yr,Xt]),So=Sn(function(){var ka=Re.current,ps=Vh(ka);return ka&&ps||Jr(!1),zh(ps)},[]),Ao=Sn(function(){var ka=Re.current;ka||Jr(!1);var ps=Vh(ka);Re.current=null,ps&&(Yn.cancel(),ps.removeAttribute(Pi.contextId),ps.removeEventListener("scroll",yr,gh(ka.scrollOptions)))},[yr,Yn]),Ho=Sn(function(ka){var ps=Re.current;ps||Jr(!1);var il=Vh(ps);il||Jr(!1),il.scrollTop+=ka.y,il.scrollLeft+=ka.x},[]),va=Qn(function(){return{getDimensionAndWatchScroll:ei,getScrollWhileDragging:So,dragStopped:Ao,scroll:Ho}},[Ao,ei,So,Ho]),Fa=Qn(function(){return{uniqueId:yt,descriptor:rn,callbacks:va}},[va,rn,yt]);Qr(function(){return Gn.current=Fa.descriptor,Ht.droppable.register(Fa),function(){Re.current&&Ao(),Ht.droppable.unregister(Fa)}},[va,rn,Ao,Fa,Bt,Ht.droppable]),Qr(function(){Re.current&&Bt.updateDroppableIsEnabled(Gn.current.id,!Ne.isDropDisabled)},[Ne.isDropDisabled,Bt]),Qr(function(){Re.current&&Bt.updateDroppableIsCombineEnabled(Gn.current.id,Ne.isCombineEnabled)},[Ne.isCombineEnabled,Bt])}function Ph(){}var Wh={width:0,height:0,margin:Ar},If=function(Re){var Je=Re.isAnimatingOpenOnMount,yt=Re.placeholder,Ht=Re.animate;return Je||Ht==="close"?Wh:{height:yt.client.borderBox.height,width:yt.client.borderBox.width,margin:yt.client.margin}},og=function(Re){var Je=Re.isAnimatingOpenOnMount,yt=Re.placeholder,Ht=Re.animate,Bt=If({isAnimatingOpenOnMount:Je,placeholder:yt,animate:Ht});return{display:yt.display,boxSizing:"border-box",width:Bt.width,height:Bt.height,marginTop:Bt.margin.top,marginRight:Bt.margin.right,marginBottom:Bt.margin.bottom,marginLeft:Bt.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:Ht!=="none"?Dn.placeholder:null}};function Ku(Ne){var Re=(0,ie.useRef)(null),Je=Sn(function(){Re.current&&(clearTimeout(Re.current),Re.current=null)},[]),yt=Ne.animate,Ht=Ne.onTransitionEnd,Bt=Ne.onClose,Xt=Ne.contextId,rn=(0,ie.useState)(Ne.animate==="open"),Gn=rn[0],ar=rn[1];(0,ie.useEffect)(function(){return Gn?yt!=="open"?(Je(),ar(!1),Ph):Re.current?Ph:(Re.current=setTimeout(function(){Re.current=null,ar(!1)}),Je):Ph},[yt,Gn,Je]);var $n=Sn(function(Yn){Yn.propertyName==="height"&&(Ht(),yt==="close"&&Bt())},[yt,Bt,Ht]),Zn=og({isAnimatingOpenOnMount:Gn,animate:Ne.animate,placeholder:Ne.placeholder});return ie.createElement(Ne.placeholder.tagName,{style:Zn,"data-rbd-placeholder-context-id":Xt,onTransitionEnd:$n,ref:Ne.innerRef})}var ag=ie.memo(Ku),Nh=ie.createContext(null);function eh(Ne){Ne&&Ko(Ne)||Jr(!1)}function Kh(Ne){return typeof Ne=="boolean"}function re(Ne,Re){Re.forEach(function(Je){return Je(Ne)})}var ce=[function(Re){var Je=Re.props;Je.droppableId||Jr(!1),typeof Je.droppableId!="string"&&Jr(!1)},function(Re){var Je=Re.props;Kh(Je.isDropDisabled)||Jr(!1),Kh(Je.isCombineEnabled)||Jr(!1),Kh(Je.ignoreContainerClipping)||Jr(!1)},function(Re){var Je=Re.getDroppableRef;eh(Je())}],ye=[function(Re){var Je=Re.props,yt=Re.getPlaceholderRef;if(Je.placeholder)var Ht=yt()}],ve=[function(Re){var Je=Re.props;Je.renderClone||Jr(!1)},function(Re){var Je=Re.getPlaceholderRef;Je()&&Jr(!1)}];function Ce(Ne){io(function(){re(Ne,ce),Ne.props.mode==="standard"&&re(Ne,ye),Ne.props.mode==="virtual"&&re(Ne,ve)})}var $e=function(Ne){Fe(Re,Ne);function Re(){for(var yt,Ht=arguments.length,Bt=new Array(Ht),Xt=0;Xt<Ht;Xt++)Bt[Xt]=arguments[Xt];return yt=Ne.call.apply(Ne,[this].concat(Bt))||this,yt.state={isVisible:!!yt.props.on,data:yt.props.on,animate:yt.props.shouldAnimate&&yt.props.on?"open":"none"},yt.onClose=function(){yt.state.animate==="close"&&yt.setState({isVisible:!1})},yt}Re.getDerivedStateFromProps=function(Ht,Bt){return Ht.shouldAnimate?Ht.on?{isVisible:!0,data:Ht.on,animate:"open"}:Bt.isVisible?{isVisible:!0,data:Bt.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!Ht.on,data:Ht.on,animate:"none"}};var Je=Re.prototype;return Je.render=function(){if(!this.state.isVisible)return null;var Ht={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(Ht)},Re}(ie.PureComponent),bt={dragging:5e3,dropAnimating:4500},Dt=function(Re,Je){return Je?Dn.drop(Je.duration):Re?Dn.snap:Dn.fluid},Mt=function(Re,Je){return Re?Je?en.opacity.drop:en.opacity.combining:null},$t=function(Re){return Re.forceShouldAnimate!=null?Re.forceShouldAnimate:Re.mode==="SNAP"};function Jn(Ne){var Re=Ne.dimension,Je=Re.client,yt=Ne.offset,Ht=Ne.combineWith,Bt=Ne.dropping,Xt=!!Ht,rn=$t(Ne),Gn=!!Bt,ar=Gn?lr.drop(yt,Xt):lr.moveTo(yt),$n={position:"fixed",top:Je.marginBox.top,left:Je.marginBox.left,boxSizing:"border-box",width:Je.borderBox.width,height:Je.borderBox.height,transition:Dt(rn,Bt),transform:ar,opacity:Mt(Xt,Gn),zIndex:Gn?bt.dropAnimating:bt.dragging,pointerEvents:"none"};return $n}function pn(Ne){return{transform:lr.moveTo(Ne.offset),transition:Ne.shouldAnimateDisplacement?null:"none"}}function Lr(Ne){return Ne.type==="DRAGGING"?Jn(Ne):pn(Ne)}function Sr(Ne,Re,Je){Je===void 0&&(Je=gs);var yt=window.getComputedStyle(Re),Ht=Re.getBoundingClientRect(),Bt=rr(Ht,yt),Xt=We(Bt,Je),rn={client:Bt,tagName:Re.tagName.toLowerCase(),display:yt.display},Gn={x:Bt.marginBox.width,y:Bt.marginBox.height},ar={descriptor:Ne,placeholder:rn,displaceBy:Gn,client:Bt,page:Xt};return ar}function wi(Ne){var Re=da("draggable"),Je=Ne.descriptor,yt=Ne.registry,Ht=Ne.getDraggableRef,Bt=Ne.canDragInteractiveElements,Xt=Ne.shouldRespectForcePress,rn=Ne.isEnabled,Gn=Qn(function(){return{canDragInteractiveElements:Bt,shouldRespectForcePress:Xt,isEnabled:rn}},[Bt,rn,Xt]),ar=Sn(function(yr){var ei=Ht();return ei||Jr(!1),Sr(Je,ei,yr)},[Je,Ht]),$n=Qn(function(){return{uniqueId:Re,descriptor:Je,options:Gn,getDimension:ar}},[Je,ar,Gn,Re]),Zn=(0,ie.useRef)($n),Yn=(0,ie.useRef)(!0);Qr(function(){return yt.draggable.register(Zn.current),function(){return yt.draggable.unregister(Zn.current)}},[yt.draggable]),Qr(function(){if(Yn.current){Yn.current=!1;return}var yr=Zn.current;Zn.current=$n,yt.draggable.update($n,yr)},[$n,yt.draggable])}function ki(Ne,Re,Je){io(function(){function yt(Bt){return"Draggable[id: "+Bt+"]: "}var Ht=Ne.draggableId;Ht||Jr(!1),typeof Ht!="string"&&Jr(!1),ln(Ne.index)||Jr(!1),Ne.mapped.type!=="DRAGGING"&&(eh(Je()),Ne.isEnabled&&(Oa(Re,Ht)||Jr(!1)))})}function oo(Ne){}function Mo(Ne){Ne.preventDefault()}function Na(Ne){var Re=(0,ie.useRef)(null),Je=Sn(function(wl){Re.current=wl},[]),yt=Sn(function(){return Re.current},[]),Ht=Bl($s),Bt=Ht.contextId,Xt=Ht.dragHandleUsageInstructionsId,rn=Ht.registry,Gn=Bl(Nh),ar=Gn.type,$n=Gn.droppableId,Zn=Qn(function(){return{id:Ne.draggableId,index:Ne.index,type:ar,droppableId:$n}},[Ne.draggableId,Ne.index,ar,$n]),Yn=Ne.children,yr=Ne.draggableId,ei=Ne.isEnabled,So=Ne.shouldRespectForcePress,Ao=Ne.canDragInteractiveElements,Ho=Ne.isClone,va=Ne.mapped,Fa=Ne.dropAnimationFinished;if(ki(Ne,Bt,yt),oo(Ho),!Ho){var ka=Qn(function(){return{descriptor:Zn,registry:rn,getDraggableRef:yt,canDragInteractiveElements:Ao,shouldRespectForcePress:So,isEnabled:ei}},[Zn,rn,yt,Ao,So,ei]);wi(ka)}var ps=Qn(function(){return ei?{tabIndex:0,role:"button","aria-describedby":Xt,"data-rbd-drag-handle-draggable-id":yr,"data-rbd-drag-handle-context-id":Bt,draggable:!1,onDragStart:Mo}:null},[Bt,Xt,yr,ei]),il=Sn(function(wl){va.type==="DRAGGING"&&va.dropping&&wl.propertyName==="transform"&&Fa()},[Fa,va]),Ll=Qn(function(){var wl=Lr(va),Bu=va.type==="DRAGGING"&&va.dropping?il:null,Gc={innerRef:Je,draggableProps:{"data-rbd-draggable-context-id":Bt,"data-rbd-draggable-id":yr,style:wl,onTransitionEnd:Bu},dragHandleProps:ps};return Gc},[Bt,ps,yr,va,il,Je]),Xu=Qn(function(){return{draggableId:Zn.id,type:Zn.type,source:{index:Zn.index,droppableId:Zn.droppableId}}},[Zn.droppableId,Zn.id,Zn.index,Zn.type]);return Yn(Ll,va.snapshot,Xu)}var Jo=function(Ne,Re){return Ne===Re},Ra=function(Ne){var Re=Ne.combine,Je=Ne.destination;return Je?Je.droppableId:Re?Re.droppableId:null},Es=function(Re){return Re.combine?Re.combine.draggableId:null},$o=function(Re){return Re.at&&Re.at.type==="COMBINE"?Re.at.combine.draggableId:null};function Ys(){var Ne=Fi(function(Ht,Bt){return{x:Ht,y:Bt}}),Re=Fi(function(Ht,Bt,Xt,rn,Gn){return{isDragging:!0,isClone:Bt,isDropAnimating:!!Gn,dropAnimation:Gn,mode:Ht,draggingOver:Xt,combineWith:rn,combineTargetFor:null}}),Je=Fi(function(Ht,Bt,Xt,rn,Gn,ar,$n){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:Gn,combineWith:ar,mode:Bt,offset:Ht,dimension:Xt,forceShouldAnimate:$n,snapshot:Re(Bt,rn,Gn,ar,null)}}}),yt=function(Bt,Xt){if(Bt.isDragging){if(Bt.critical.draggable.id!==Xt.draggableId)return null;var rn=Bt.current.client.offset,Gn=Bt.dimensions.draggables[Xt.draggableId],ar=Fl(Bt.impact),$n=$o(Bt.impact),Zn=Bt.forceShouldAnimate;return Je(Ne(rn.x,rn.y),Bt.movementMode,Gn,Xt.isClone,ar,$n,Zn)}if(Bt.phase==="DROP_ANIMATING"){var Yn=Bt.completed;if(Yn.result.draggableId!==Xt.draggableId)return null;var yr=Xt.isClone,ei=Bt.dimensions.draggables[Xt.draggableId],So=Yn.result,Ao=So.mode,Ho=Ra(So),va=Es(So),Fa=Bt.dropDuration,ka={duration:Fa,curve:kt.drop,moveTo:Bt.newHomeClientOffset,opacity:va?en.opacity.drop:null,scale:va?en.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Bt.newHomeClientOffset,dimension:ei,dropping:ka,draggingOver:Ho,combineWith:va,mode:Ao,forceShouldAnimate:null,snapshot:Re(Ao,yr,Ho,va,ka)}}}return null};return yt}function ou(Ne){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:Ne,combineWith:null}}var nc={mapped:{type:"SECONDARY",offset:gs,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:ou(null)}};function Su(){var Ne=Fi(function(Xt,rn){return{x:Xt,y:rn}}),Re=Fi(ou),Je=Fi(function(Xt,rn,Gn){return rn===void 0&&(rn=null),{mapped:{type:"SECONDARY",offset:Xt,combineTargetFor:rn,shouldAnimateDisplacement:Gn,snapshot:Re(rn)}}}),yt=function(rn){return rn?Je(gs,rn,!0):null},Ht=function(rn,Gn,ar,$n){var Zn=ar.displaced.visible[rn],Yn=!!($n.inVirtualList&&$n.effected[rn]),yr=xa(ar),ei=yr&&yr.draggableId===rn?Gn:null;if(!Zn){if(!Yn)return yt(ei);if(ar.displaced.invisible[rn])return null;var So=Ta($n.displacedBy.point),Ao=Ne(So.x,So.y);return Je(Ao,ei,!0)}if(Yn)return yt(ei);var Ho=ar.displacedBy.point,va=Ne(Ho.x,Ho.y);return Je(va,ei,Zn.shouldAnimate)},Bt=function(rn,Gn){if(rn.isDragging)return rn.critical.draggable.id===Gn.draggableId?null:Ht(Gn.draggableId,rn.critical.draggable.id,rn.impact,rn.afterCritical);if(rn.phase==="DROP_ANIMATING"){var ar=rn.completed;return ar.result.draggableId===Gn.draggableId?null:Ht(Gn.draggableId,ar.result.draggableId,ar.impact,ar.afterCritical)}return null};return Bt}var Qc=function(){var Re=Ys(),Je=Su(),yt=function(Bt,Xt){return Re(Bt,Xt)||Je(Bt,Xt)||nc};return yt},Ac={dropAnimationFinished:Gu},Yu=Kn(Qc,Ac,null,{context:ds,pure:!0,areStatePropsEqual:Jo})(Na);function Jc(Ne){var Re=Bl(Nh),Je=Re.isUsingCloneFor;return Je===Ne.draggableId&&!Ne.isClone?null:ie.createElement(Yu,Ne)}function mc(Ne){var Re=typeof Ne.isDragDisabled=="boolean"?!Ne.isDragDisabled:!0,Je=!!Ne.disableInteractiveElementBlocking,yt=!!Ne.shouldRespectForcePress;return ie.createElement(Jc,(0,Oe.Z)({},Ne,{isClone:!1,isEnabled:Re,canDragInteractiveElements:Je,shouldRespectForcePress:yt}))}function Zu(Ne){var Re=(0,ie.useContext)($s);Re||Jr(!1);var Je=Re.contextId,yt=Re.isMovementAllowed,Ht=(0,ie.useRef)(null),Bt=(0,ie.useRef)(null),Xt=Ne.children,rn=Ne.droppableId,Gn=Ne.type,ar=Ne.mode,$n=Ne.direction,Zn=Ne.ignoreContainerClipping,Yn=Ne.isDropDisabled,yr=Ne.isCombineEnabled,ei=Ne.snapshot,So=Ne.useClone,Ao=Ne.updateViewportMaxScroll,Ho=Ne.getContainerForClone,va=Sn(function(){return Ht.current},[]),Fa=Sn(function($c){Ht.current=$c},[]),ka=Sn(function(){return Bt.current},[]),ps=Sn(function($c){Bt.current=$c},[]);Ce({props:Ne,getDroppableRef:va,getPlaceholderRef:ka});var il=Sn(function(){yt()&&Ao({maxScroll:St()})},[yt,Ao]);Ip({droppableId:rn,type:Gn,mode:ar,direction:$n,isDropDisabled:Yn,isCombineEnabled:yr,ignoreContainerClipping:Zn,getDroppableRef:va});var Ll=ie.createElement($e,{on:Ne.placeholder,shouldAnimate:Ne.shouldAnimatePlaceholder},function($c){var th=$c.onClose,wd=$c.data,yd=$c.animate;return ie.createElement(ag,{placeholder:wd,onClose:th,innerRef:ps,animate:yd,contextId:Je,onTransitionEnd:il})}),Xu=Qn(function(){return{innerRef:Fa,placeholder:Ll,droppableProps:{"data-rbd-droppable-id":rn,"data-rbd-droppable-context-id":Je}}},[Je,rn,Ll,Fa]),wl=So?So.dragging.draggableId:null,Bu=Qn(function(){return{droppableId:rn,type:Gn,isUsingCloneFor:wl}},[rn,wl,Gn]);function Gc(){if(!So)return null;var $c=So.dragging,th=So.render,wd=ie.createElement(Jc,{draggableId:$c.draggableId,index:$c.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(yd,yc){return th(yd,yc,$c)});return ri.createPortal(wd,Ho())}return ie.createElement(Nh.Provider,{value:Bu},Xt(Xu,ei),Gc())}var xl=function(Re,Je){return Re===Je.droppable.type},Eu=function(Re,Je){return Je.draggables[Re.draggable.id]},lc=function(){var Re={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},Je=(0,Oe.Z)({},Re,{shouldAnimatePlaceholder:!1}),yt=Fi(function(Xt){return{draggableId:Xt.id,type:Xt.type,source:{index:Xt.index,droppableId:Xt.droppableId}}}),Ht=Fi(function(Xt,rn,Gn,ar,$n,Zn){var Yn=$n.descriptor.id,yr=$n.descriptor.droppableId===Xt;if(yr){var ei=Zn?{render:Zn,dragging:yt($n.descriptor)}:null,So={isDraggingOver:Gn,draggingOverWith:Gn?Yn:null,draggingFromThisWith:Yn,isUsingPlaceholder:!0};return{placeholder:$n.placeholder,shouldAnimatePlaceholder:!1,snapshot:So,useClone:ei}}if(!rn)return Je;if(!ar)return Re;var Ao={isDraggingOver:Gn,draggingOverWith:Yn,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:$n.placeholder,shouldAnimatePlaceholder:!0,snapshot:Ao,useClone:null}}),Bt=function(rn,Gn){var ar=Gn.droppableId,$n=Gn.type,Zn=!Gn.isDropDisabled,Yn=Gn.renderClone;if(rn.isDragging){var yr=rn.critical;if(!xl($n,yr))return Je;var ei=Eu(yr,rn.dimensions),So=Fl(rn.impact)===ar;return Ht(ar,Zn,So,So,ei,Yn)}if(rn.phase==="DROP_ANIMATING"){var Ao=rn.completed;if(!xl($n,Ao.critical))return Je;var Ho=Eu(Ao.critical,rn.dimensions);return Ht(ar,Zn,Ra(Ao.result)===ar,Fl(Ao.impact)===ar,Ho,Yn)}if(rn.phase==="IDLE"&&rn.completed&&!rn.shouldFlush){var va=rn.completed;if(!xl($n,va.critical))return Je;var Fa=Fl(va.impact)===ar,ka=!!(va.impact.at&&va.impact.at.type==="COMBINE"),ps=va.critical.droppable.id===ar;return Fa?ka?Re:Je:ps?Re:Je}return Je};return Bt},vc={updateViewportMaxScroll:Sl};function Rd(){return document.body||Jr(!1),document.body}var bu={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Rd},vd=Kn(lc,vc,null,{context:ds,pure:!0,areStatePropsEqual:Jo})(Zu);vd.defaultProps=bu},88359:function(Ke,we){"use strict";var ae;var ie=60103,Pe=60106,Fe=60107,Oe=60108,tt=60114,Me=60109,_e=60110,ut=60112,et=60113,lt=60120,Et=60115,rt=60116,_t=60121,Ge=60122,te=60117,ee=60129,de=60131;if(typeof Symbol=="function"&&Symbol.for){var le=Symbol.for;ie=le("react.element"),Pe=le("react.portal"),Fe=le("react.fragment"),Oe=le("react.strict_mode"),tt=le("react.profiler"),Me=le("react.provider"),_e=le("react.context"),ut=le("react.forward_ref"),et=le("react.suspense"),lt=le("react.suspense_list"),Et=le("react.memo"),rt=le("react.lazy"),_t=le("react.block"),Ge=le("react.server.block"),te=le("react.fundamental"),ee=le("react.debug_trace_mode"),de=le("react.legacy_hidden")}function pe(Ct){if(typeof Ct=="object"&&Ct!==null){var Vt=Ct.$$typeof;switch(Vt){case ie:switch(Ct=Ct.type,Ct){case Fe:case tt:case Oe:case et:case lt:return Ct;default:switch(Ct=Ct&&Ct.$$typeof,Ct){case _e:case ut:case rt:case Et:case Me:return Ct;default:return Vt}}case Pe:return Vt}}}var me=Me,xe=ie,be=ut,Be=Fe,at=rt,dt=Et,gt=Pe,ft=tt,Nt=Oe,Tt=et;ae=_e,ae=me,ae=xe,ae=be,ae=Be,ae=at,ae=dt,ae=gt,ae=ft,ae=Nt,ae=Tt,ae=function(){return!1},ae=function(){return!1},we.isContextConsumer=function(Ct){return pe(Ct)===_e},ae=function(Ct){return pe(Ct)===Me},ae=function(Ct){return typeof Ct=="object"&&Ct!==null&&Ct.$$typeof===ie},ae=function(Ct){return pe(Ct)===ut},ae=function(Ct){return pe(Ct)===Fe},ae=function(Ct){return pe(Ct)===rt},ae=function(Ct){return pe(Ct)===Et},ae=function(Ct){return pe(Ct)===Pe},ae=function(Ct){return pe(Ct)===tt},ae=function(Ct){return pe(Ct)===Oe},ae=function(Ct){return pe(Ct)===et},ae=function(Ct){return typeof Ct=="string"||typeof Ct=="function"||Ct===Fe||Ct===tt||Ct===ee||Ct===Oe||Ct===et||Ct===lt||Ct===de||typeof Ct=="object"&&Ct!==null&&(Ct.$$typeof===rt||Ct.$$typeof===Et||Ct.$$typeof===Me||Ct.$$typeof===_e||Ct.$$typeof===ut||Ct.$$typeof===te||Ct.$$typeof===_t||Ct[0]===Ge)},ae=pe},72973:function(Ke,we,ae){"use strict";Ke.exports=ae(88359)},91733:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return Wt}});function ie(ht,tn){if(ht==null)return{};var an={};for(var ct in ht)if(Object.prototype.hasOwnProperty.call(ht,ct)){if(tn.indexOf(ct)>=0)continue;an[ct]=ht[ct]}return an}function Pe(ht,tn){if(ht==null)return{};var an=ie(ht,tn),ct,Ue;if(Object.getOwnPropertySymbols){var He=Object.getOwnPropertySymbols(ht);for(Ue=0;Ue<He.length;Ue++)ct=He[Ue],!(tn.indexOf(ct)>=0)&&Object.prototype.propertyIsEnumerable.call(ht,ct)&&(an[ct]=ht[ct])}return an}function Fe(ht,tn){(tn==null||tn>ht.length)&&(tn=ht.length);for(var an=0,ct=new Array(tn);an<tn;an++)ct[an]=ht[an];return ct}function Oe(ht){if(Array.isArray(ht))return Fe(ht)}function tt(ht){if(typeof Symbol!="undefined"&&ht[Symbol.iterator]!=null||ht["@@iterator"]!=null)return Array.from(ht)}function Me(ht,tn){if(ht){if(typeof ht=="string")return Fe(ht,tn);var an=Object.prototype.toString.call(ht).slice(8,-1);if(an==="Object"&&ht.constructor&&(an=ht.constructor.name),an==="Map"||an==="Set")return Array.from(ht);if(an==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(an))return Fe(ht,tn)}}function _e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ut(ht){return Oe(ht)||tt(ht)||Me(ht)||_e()}function et(ht){"@babel/helpers - typeof";return et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tn){return typeof tn}:function(tn){return tn&&typeof Symbol=="function"&&tn.constructor===Symbol&&tn!==Symbol.prototype?"symbol":typeof tn},et(ht)}function lt(ht,tn){if(et(ht)!="object"||!ht)return ht;var an=ht[Symbol.toPrimitive];if(an!==void 0){var ct=an.call(ht,tn||"default");if(et(ct)!="object")return ct;throw new TypeError("@@toPrimitive must return a primitive value.")}return(tn==="string"?String:Number)(ht)}function Et(ht){var tn=lt(ht,"string");return et(tn)=="symbol"?tn:tn+""}function rt(ht,tn,an){return tn=Et(tn),tn in ht?Object.defineProperty(ht,tn,{value:an,enumerable:!0,configurable:!0,writable:!0}):ht[tn]=an,ht}var _t=ae(67294);function Ge(){return Ge=Object.assign?Object.assign.bind():function(ht){for(var tn=1;tn<arguments.length;tn++){var an=arguments[tn];for(var ct in an)Object.prototype.hasOwnProperty.call(an,ct)&&(ht[ct]=an[ct])}return ht},Ge.apply(this,arguments)}function te(ht,tn){var an=Object.keys(ht);if(Object.getOwnPropertySymbols){var ct=Object.getOwnPropertySymbols(ht);tn&&(ct=ct.filter(function(Ue){return Object.getOwnPropertyDescriptor(ht,Ue).enumerable})),an.push.apply(an,ct)}return an}function ee(ht){for(var tn=1;tn<arguments.length;tn++){var an=arguments[tn]!=null?arguments[tn]:{};tn%2?te(Object(an),!0).forEach(function(ct){rt(ht,ct,an[ct])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ht,Object.getOwnPropertyDescriptors(an)):te(Object(an)).forEach(function(ct){Object.defineProperty(ht,ct,Object.getOwnPropertyDescriptor(an,ct))})}return ht}function de(ht){var tn=ht.length;if(tn===0||tn===1)return ht;if(tn===2)return[ht[0],ht[1],"".concat(ht[0],".").concat(ht[1]),"".concat(ht[1],".").concat(ht[0])];if(tn===3)return[ht[0],ht[1],ht[2],"".concat(ht[0],".").concat(ht[1]),"".concat(ht[0],".").concat(ht[2]),"".concat(ht[1],".").concat(ht[0]),"".concat(ht[1],".").concat(ht[2]),"".concat(ht[2],".").concat(ht[0]),"".concat(ht[2],".").concat(ht[1]),"".concat(ht[0],".").concat(ht[1],".").concat(ht[2]),"".concat(ht[0],".").concat(ht[2],".").concat(ht[1]),"".concat(ht[1],".").concat(ht[0],".").concat(ht[2]),"".concat(ht[1],".").concat(ht[2],".").concat(ht[0]),"".concat(ht[2],".").concat(ht[0],".").concat(ht[1]),"".concat(ht[2],".").concat(ht[1],".").concat(ht[0])];if(tn>=4)return[ht[0],ht[1],ht[2],ht[3],"".concat(ht[0],".").concat(ht[1]),"".concat(ht[0],".").concat(ht[2]),"".concat(ht[0],".").concat(ht[3]),"".concat(ht[1],".").concat(ht[0]),"".concat(ht[1],".").concat(ht[2]),"".concat(ht[1],".").concat(ht[3]),"".concat(ht[2],".").concat(ht[0]),"".concat(ht[2],".").concat(ht[1]),"".concat(ht[2],".").concat(ht[3]),"".concat(ht[3],".").concat(ht[0]),"".concat(ht[3],".").concat(ht[1]),"".concat(ht[3],".").concat(ht[2]),"".concat(ht[0],".").concat(ht[1],".").concat(ht[2]),"".concat(ht[0],".").concat(ht[1],".").concat(ht[3]),"".concat(ht[0],".").concat(ht[2],".").concat(ht[1]),"".concat(ht[0],".").concat(ht[2],".").concat(ht[3]),"".concat(ht[0],".").concat(ht[3],".").concat(ht[1]),"".concat(ht[0],".").concat(ht[3],".").concat(ht[2]),"".concat(ht[1],".").concat(ht[0],".").concat(ht[2]),"".concat(ht[1],".").concat(ht[0],".").concat(ht[3]),"".concat(ht[1],".").concat(ht[2],".").concat(ht[0]),"".concat(ht[1],".").concat(ht[2],".").concat(ht[3]),"".concat(ht[1],".").concat(ht[3],".").concat(ht[0]),"".concat(ht[1],".").concat(ht[3],".").concat(ht[2]),"".concat(ht[2],".").concat(ht[0],".").concat(ht[1]),"".concat(ht[2],".").concat(ht[0],".").concat(ht[3]),"".concat(ht[2],".").concat(ht[1],".").concat(ht[0]),"".concat(ht[2],".").concat(ht[1],".").concat(ht[3]),"".concat(ht[2],".").concat(ht[3],".").concat(ht[0]),"".concat(ht[2],".").concat(ht[3],".").concat(ht[1]),"".concat(ht[3],".").concat(ht[0],".").concat(ht[1]),"".concat(ht[3],".").concat(ht[0],".").concat(ht[2]),"".concat(ht[3],".").concat(ht[1],".").concat(ht[0]),"".concat(ht[3],".").concat(ht[1],".").concat(ht[2]),"".concat(ht[3],".").concat(ht[2],".").concat(ht[0]),"".concat(ht[3],".").concat(ht[2],".").concat(ht[1]),"".concat(ht[0],".").concat(ht[1],".").concat(ht[2],".").concat(ht[3]),"".concat(ht[0],".").concat(ht[1],".").concat(ht[3],".").concat(ht[2]),"".concat(ht[0],".").concat(ht[2],".").concat(ht[1],".").concat(ht[3]),"".concat(ht[0],".").concat(ht[2],".").concat(ht[3],".").concat(ht[1]),"".concat(ht[0],".").concat(ht[3],".").concat(ht[1],".").concat(ht[2]),"".concat(ht[0],".").concat(ht[3],".").concat(ht[2],".").concat(ht[1]),"".concat(ht[1],".").concat(ht[0],".").concat(ht[2],".").concat(ht[3]),"".concat(ht[1],".").concat(ht[0],".").concat(ht[3],".").concat(ht[2]),"".concat(ht[1],".").concat(ht[2],".").concat(ht[0],".").concat(ht[3]),"".concat(ht[1],".").concat(ht[2],".").concat(ht[3],".").concat(ht[0]),"".concat(ht[1],".").concat(ht[3],".").concat(ht[0],".").concat(ht[2]),"".concat(ht[1],".").concat(ht[3],".").concat(ht[2],".").concat(ht[0]),"".concat(ht[2],".").concat(ht[0],".").concat(ht[1],".").concat(ht[3]),"".concat(ht[2],".").concat(ht[0],".").concat(ht[3],".").concat(ht[1]),"".concat(ht[2],".").concat(ht[1],".").concat(ht[0],".").concat(ht[3]),"".concat(ht[2],".").concat(ht[1],".").concat(ht[3],".").concat(ht[0]),"".concat(ht[2],".").concat(ht[3],".").concat(ht[0],".").concat(ht[1]),"".concat(ht[2],".").concat(ht[3],".").concat(ht[1],".").concat(ht[0]),"".concat(ht[3],".").concat(ht[0],".").concat(ht[1],".").concat(ht[2]),"".concat(ht[3],".").concat(ht[0],".").concat(ht[2],".").concat(ht[1]),"".concat(ht[3],".").concat(ht[1],".").concat(ht[0],".").concat(ht[2]),"".concat(ht[3],".").concat(ht[1],".").concat(ht[2],".").concat(ht[0]),"".concat(ht[3],".").concat(ht[2],".").concat(ht[0],".").concat(ht[1]),"".concat(ht[3],".").concat(ht[2],".").concat(ht[1],".").concat(ht[0])]}var le={};function pe(ht){if(ht.length===0||ht.length===1)return ht;var tn=ht.join(".");return le[tn]||(le[tn]=de(ht)),le[tn]}function me(ht){var tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},an=arguments.length>2?arguments[2]:void 0,ct=ht.filter(function(He){return He!=="token"}),Ue=pe(ct);return Ue.reduce(function(He,it){return ee(ee({},He),an[it])},tn)}function xe(ht){return ht.join(" ")}function be(ht,tn){var an=0;return function(ct){return an+=1,ct.map(function(Ue,He){return Be({node:Ue,stylesheet:ht,useInlineStyles:tn,key:"code-segment-".concat(an,"-").concat(He)})})}}function Be(ht){var tn=ht.node,an=ht.stylesheet,ct=ht.style,Ue=ct===void 0?{}:ct,He=ht.useInlineStyles,it=ht.key,vt=tn.properties,Ye=tn.type,It=tn.tagName,In=tn.value;if(Ye==="text")return In;if(It){var Kn=be(an,He),dr;if(!He)dr=ee(ee({},vt),{},{className:xe(vt.className)});else{var Rn=Object.keys(an).reduce(function(sr,Hr){return Hr.split(".").forEach(function(An){sr.includes(An)||sr.push(An)}),sr},[]),er=vt.className&&vt.className.includes("token")?["token"]:[],yn=vt.className&&er.concat(vt.className.filter(function(sr){return!Rn.includes(sr)}));dr=ee(ee({},vt),{},{className:xe(yn)||void 0,style:me(vt.className,Object.assign({},vt.style,Ue),an)})}var Er=Kn(tn.children);return _t.createElement(It,Ge({key:it},dr),Er)}}var at=function(ht,tn){var an=ht.listLanguages();return an.indexOf(tn)!==-1},dt=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function gt(ht,tn){var an=Object.keys(ht);if(Object.getOwnPropertySymbols){var ct=Object.getOwnPropertySymbols(ht);tn&&(ct=ct.filter(function(Ue){return Object.getOwnPropertyDescriptor(ht,Ue).enumerable})),an.push.apply(an,ct)}return an}function ft(ht){for(var tn=1;tn<arguments.length;tn++){var an=arguments[tn]!=null?arguments[tn]:{};tn%2?gt(Object(an),!0).forEach(function(ct){rt(ht,ct,an[ct])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ht,Object.getOwnPropertyDescriptors(an)):gt(Object(an)).forEach(function(ct){Object.defineProperty(ht,ct,Object.getOwnPropertyDescriptor(an,ct))})}return ht}var Nt=/\n/g;function Tt(ht){return ht.match(Nt)}function Ct(ht){var tn=ht.lines,an=ht.startingLineNumber,ct=ht.style;return tn.map(function(Ue,He){var it=He+an;return _t.createElement("span",{key:"line-".concat(He),className:"react-syntax-highlighter-line-number",style:typeof ct=="function"?ct(it):ct},"".concat(it,`
|
|
|
`))})}function Vt(ht){var tn=ht.codeString,an=ht.codeStyle,ct=ht.containerStyle,Ue=ct===void 0?{float:"left",paddingRight:"10px"}:ct,He=ht.numberStyle,it=He===void 0?{}:He,vt=ht.startingLineNumber;return _t.createElement("code",{style:Object.assign({},an,Ue)},Ct({lines:tn.replace(/\n$/,"").split(`
|
|
|
`),style:it,startingLineNumber:vt}))}function Rt(ht){return"".concat(ht.toString().length,".25em")}function nn(ht,tn){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(ht),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:tn},children:[{type:"text",value:ht}]}}function Cn(ht,tn,an){var ct={display:"inline-block",minWidth:Rt(an),paddingRight:"1em",textAlign:"right",userSelect:"none"},Ue=typeof ht=="function"?ht(tn):ht,He=ft(ft({},ct),Ue);return He}function un(ht){var tn=ht.children,an=ht.lineNumber,ct=ht.lineNumberStyle,Ue=ht.largestLineNumber,He=ht.showInlineLineNumbers,it=ht.lineProps,vt=it===void 0?{}:it,Ye=ht.className,It=Ye===void 0?[]:Ye,In=ht.showLineNumbers,Kn=ht.wrapLongLines,dr=typeof vt=="function"?vt(an):vt;if(dr.className=It,an&&He){var Rn=Cn(ct,an,Ue);tn.unshift(nn(an,Rn))}return Kn&In&&(dr.style=ft(ft({},dr.style),{},{display:"flex"})),{type:"element",tagName:"span",properties:dr,children:tn}}function Nn(ht){for(var tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],an=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],ct=0;ct<ht.length;ct++){var Ue=ht[ct];if(Ue.type==="text")an.push(un({children:[Ue],className:ut(new Set(tn))}));else if(Ue.children){var He=tn.concat(Ue.properties.className);Nn(Ue.children,He).forEach(function(it){return an.push(it)})}}return an}function wt(ht,tn,an,ct,Ue,He,it,vt,Ye){var It,In=Nn(ht.value),Kn=[],dr=-1,Rn=0;function er(ri,bn){var Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return un({children:ri,lineNumber:bn,lineNumberStyle:vt,largestLineNumber:it,showInlineLineNumbers:Ue,lineProps:an,className:Xe,showLineNumbers:ct,wrapLongLines:Ye})}function yn(ri,bn){if(ct&&bn&&Ue){var Xe=Cn(vt,bn,it);ri.unshift(nn(bn,Xe))}return ri}function Er(ri,bn){var Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return tn||Xe.length>0?er(ri,bn,Xe):yn(ri,bn)}for(var sr=function(){var bn=In[Rn],Xe=bn.children[0].value,Ji=Tt(Xe);if(Ji){var Qn=Xe.split(`
|
|
|
`);Qn.forEach(function(Sn,to){var Ki=ct&&Kn.length+He,Zr={type:"text",value:"".concat(Sn,`
|
|
|
`)};if(to===0){var hi=In.slice(dr+1,Rn).concat(un({children:[Zr],className:bn.properties.className})),Ir=Er(hi,Ki);Kn.push(Ir)}else if(to===Qn.length-1){var fn=In[Rn+1]&&In[Rn+1].children&&In[Rn+1].children[0],Hi={type:"text",value:"".concat(Sn)};if(fn){var ao=un({children:[Hi],className:bn.properties.className});In.splice(Rn+1,0,ao)}else{var ui=[Hi],ai=Er(ui,Ki,bn.properties.className);Kn.push(ai)}}else{var Ni=[Zr],ir=Er(Ni,Ki,bn.properties.className);Kn.push(ir)}}),dr=Rn}Rn++};Rn<In.length;)sr();if(dr!==In.length-1){var Hr=In.slice(dr+1,In.length);if(Hr&&Hr.length){var An=ct&&Kn.length+He,yi=Er(Hr,An);Kn.push(yi)}}return tn?Kn:(It=[]).concat.apply(It,Kn)}function pt(ht){var tn=ht.rows,an=ht.stylesheet,ct=ht.useInlineStyles;return tn.map(function(Ue,He){return Be({node:Ue,stylesheet:an,useInlineStyles:ct,key:"code-segement".concat(He)})})}function Ie(ht){return ht&&typeof ht.highlightAuto!="undefined"}function on(ht){var tn=ht.astGenerator,an=ht.language,ct=ht.code,Ue=ht.defaultCodeValue;if(Ie(tn)){var He=at(tn,an);return an==="text"?{value:Ue,language:"text"}:He?tn.highlight(an,ct):tn.highlightAuto(ct)}try{return an&&an!=="text"?{value:tn.highlight(ct,an)}:{value:Ue}}catch(it){return{value:Ue}}}function Bn(ht,tn){return function(ct){var Ue=ct.language,He=ct.children,it=ct.style,vt=it===void 0?tn:it,Ye=ct.customStyle,It=Ye===void 0?{}:Ye,In=ct.codeTagProps,Kn=In===void 0?{className:Ue?"language-".concat(Ue):void 0,style:ft(ft({},vt['code[class*="language-"]']),vt['code[class*="language-'.concat(Ue,'"]')])}:In,dr=ct.useInlineStyles,Rn=dr===void 0?!0:dr,er=ct.showLineNumbers,yn=er===void 0?!1:er,Er=ct.showInlineLineNumbers,sr=Er===void 0?!0:Er,Hr=ct.startingLineNumber,An=Hr===void 0?1:Hr,yi=ct.lineNumberContainerStyle,ri=ct.lineNumberStyle,bn=ri===void 0?{}:ri,Xe=ct.wrapLines,Ji=ct.wrapLongLines,Qn=Ji===void 0?!1:Ji,Sn=ct.lineProps,to=Sn===void 0?{}:Sn,Ki=ct.renderer,Zr=ct.PreTag,hi=Zr===void 0?"pre":Zr,Ir=ct.CodeTag,fn=Ir===void 0?"code":Ir,Hi=ct.code,ao=Hi===void 0?(Array.isArray(He)?He[0]:He)||"":Hi,ui=ct.astGenerator,ai=Pe(ct,dt);ui=ui||ht;var Ni=yn?_t.createElement(Vt,{containerStyle:yi,codeStyle:Kn.style||{},numberStyle:bn,startingLineNumber:An,codeString:ao}):null,ir=vt.hljs||vt['pre[class*="language-"]']||{backgroundColor:"#fff"},We=Ie(ui)?"hljs":"prismjs",rr=Rn?Object.assign({},ai,{style:Object.assign({},ir,It)}):Object.assign({},ai,{className:ai.className?"".concat(We," ").concat(ai.className):We,style:Object.assign({},It)});if(Qn?Kn.style=ft(ft({},Kn.style),{},{whiteSpace:"pre-wrap"}):Kn.style=ft(ft({},Kn.style),{},{whiteSpace:"pre"}),!ui)return _t.createElement(hi,rr,Ni,_t.createElement(fn,Kn,ao));(Xe===void 0&&Ki||Qn)&&(Xe=!0),Ki=Ki||pt;var ur=[{type:"text",value:ao}],hr=on({astGenerator:ui,language:Ue,code:ao,defaultCodeValue:ur});hr.language===null&&(hr.value=ur);var Or=hr.value.length+An,jr=wt(hr,Xe,to,yn,sr,An,Or,bn,Qn);return _t.createElement(hi,rr,_t.createElement(fn,Kn,!sr&&Ni,Ki({rows:jr,stylesheet:vt,useInlineStyles:Rn})))}}var Zt={'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"}},zn=ae(98695),_n=ae.n(zn),nr=["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"],Ft=Bn(_n(),Zt);Ft.supportedLanguages=nr;var Wt=Ft},86032:function(Ke,we){"use strict";we.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"}}},75251:function(Ke,we,ae){"use strict";ae(27418);var ie=ae(67294),Pe=60103;if(we.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var Fe=Symbol.for;Pe=Fe("react.element"),we.Fragment=Fe("react.fragment")}var Oe=ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,tt=Object.prototype.hasOwnProperty,Me={key:!0,ref:!0,__self:!0,__source:!0};function _e(ut,et,lt){var Et,rt={},_t=null,Ge=null;lt!==void 0&&(_t=""+lt),et.key!==void 0&&(_t=""+et.key),et.ref!==void 0&&(Ge=et.ref);for(Et in et)tt.call(et,Et)&&!Me.hasOwnProperty(Et)&&(rt[Et]=et[Et]);if(ut&&ut.defaultProps)for(Et in et=ut.defaultProps,et)rt[Et]===void 0&&(rt[Et]=et[Et]);return{$$typeof:Pe,type:ut,key:_t,ref:Ge,props:rt,_owner:Oe.current}}we.jsx=_e,we.jsxs=_e},85893:function(Ke,we,ae){"use strict";Ke.exports=ae(75251)},11215:function(Ke,we,ae){"use strict";var ie=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof ae.g=="object"?ae.g:{},Pe=be();ie.Prism={manual:!0,disableWorkerMessageHandler:!0};var Fe=ae(90871),Oe=ae(57574),tt=ae(59216),Me=ae(2717),_e=ae(12049),ut=ae(29726),et=ae(36155);Pe();var lt={}.hasOwnProperty;function Et(){}Et.prototype=tt;var rt=new Et;Ke.exports=rt,rt.highlight=te,rt.register=_t,rt.alias=Ge,rt.registered=ee,rt.listLanguages=de,_t(Me),_t(_e),_t(ut),_t(et),rt.util.encode=me,rt.Token.stringify=le;function _t(Be){if(typeof Be!="function"||!Be.displayName)throw new Error("Expected `function` for `grammar`, got `"+Be+"`");rt.languages[Be.displayName]===void 0&&Be(rt)}function Ge(Be,at){var dt=rt.languages,gt=Be,ft,Nt,Tt,Ct;at&&(gt={},gt[Be]=at);for(ft in gt)for(Nt=gt[ft],Nt=typeof Nt=="string"?[Nt]:Nt,Tt=Nt.length,Ct=-1;++Ct<Tt;)dt[Nt[Ct]]=dt[ft]}function te(Be,at){var dt=tt.highlight,gt;if(typeof Be!="string")throw new Error("Expected `string` for `value`, got `"+Be+"`");if(rt.util.type(at)==="Object")gt=at,at=null;else{if(typeof at!="string")throw new Error("Expected `string` for `name`, got `"+at+"`");if(lt.call(rt.languages,at))gt=rt.languages[at];else throw new Error("Unknown language: `"+at+"` is not registered")}return dt.call(this,Be,gt,at)}function ee(Be){if(typeof Be!="string")throw new Error("Expected `string` for `language`, got `"+Be+"`");return lt.call(rt.languages,Be)}function de(){var Be=rt.languages,at=[],dt;for(dt in Be)lt.call(Be,dt)&&typeof Be[dt]=="object"&&at.push(dt);return at}function le(Be,at,dt){var gt;return typeof Be=="string"?{type:"text",value:Be}:rt.util.type(Be)==="Array"?pe(Be,at):(gt={type:Be.type,content:rt.Token.stringify(Be.content,at,dt),tag:"span",classes:["token",Be.type],attributes:{},language:at,parent:dt},Be.alias&&(gt.classes=gt.classes.concat(Be.alias)),rt.hooks.run("wrap",gt),Fe(gt.tag+"."+gt.classes.join("."),xe(gt.attributes),gt.content))}function pe(Be,at){for(var dt=[],gt=Be.length,ft=-1,Nt;++ft<gt;)Nt=Be[ft],Nt!==""&&Nt!==null&&Nt!==void 0&&dt.push(Nt);for(ft=-1,gt=dt.length;++ft<gt;)Nt=dt[ft],dt[ft]=rt.Token.stringify(Nt,at,dt);return dt}function me(Be){return Be}function xe(Be){var at;for(at in Be)Be[at]=Oe(Be[at]);return Be}function be(){var Be="Prism"in ie,at=Be?ie.Prism:void 0;return dt;function dt(){Be?ie.Prism=at:delete ie.Prism,Be=void 0,at=void 0}}},98695:function(Ke,we,ae){"use strict";var ie=ae(11215);Ke.exports=ie,ie.register(ae(36167)),ie.register(ae(68313)),ie.register(ae(5199)),ie.register(ae(89693)),ie.register(ae(24001)),ie.register(ae(18018)),ie.register(ae(36363)),ie.register(ae(35281)),ie.register(ae(10433)),ie.register(ae(84039)),ie.register(ae(71336)),ie.register(ae(4481)),ie.register(ae(2159)),ie.register(ae(60274)),ie.register(ae(18738)),ie.register(ae(58572)),ie.register(ae(28937)),ie.register(ae(78734)),ie.register(ae(6681)),ie.register(ae(53358)),ie.register(ae(81700)),ie.register(ae(37219)),ie.register(ae(6979)),ie.register(ae(46241)),ie.register(ae(94781)),ie.register(ae(62260)),ie.register(ae(36153)),ie.register(ae(59258)),ie.register(ae(62890)),ie.register(ae(15958)),ie.register(ae(61321)),ie.register(ae(77856)),ie.register(ae(90741)),ie.register(ae(83410)),ie.register(ae(65806)),ie.register(ae(33039)),ie.register(ae(85082)),ie.register(ae(79415)),ie.register(ae(62849)),ie.register(ae(55773)),ie.register(ae(32762)),ie.register(ae(43576)),ie.register(ae(71794)),ie.register(ae(1315)),ie.register(ae(80096)),ie.register(ae(99176)),ie.register(ae(61958)),ie.register(ae(90312)),ie.register(ae(65447)),ie.register(ae(4762)),ie.register(ae(78090)),ie.register(ae(40315)),ie.register(ae(7902)),ie.register(ae(28651)),ie.register(ae(55579)),ie.register(ae(93685)),ie.register(ae(13934)),ie.register(ae(93336)),ie.register(ae(13294)),ie.register(ae(38223)),ie.register(ae(97266)),ie.register(ae(77125)),ie.register(ae(36500)),ie.register(ae(30296)),ie.register(ae(50115)),ie.register(ae(20791)),ie.register(ae(11974)),ie.register(ae(8645)),ie.register(ae(84790)),ie.register(ae(4502)),ie.register(ae(66055)),ie.register(ae(34668)),ie.register(ae(95126)),ie.register(ae(90618)),ie.register(ae(63128)),ie.register(ae(37225)),ie.register(ae(16725)),ie.register(ae(95559)),ie.register(ae(82114)),ie.register(ae(6806)),ie.register(ae(12208)),ie.register(ae(62728)),ie.register(ae(81549)),ie.register(ae(6024)),ie.register(ae(13600)),ie.register(ae(3322)),ie.register(ae(53877)),ie.register(ae(60794)),ie.register(ae(20222)),ie.register(ae(51519)),ie.register(ae(94055)),ie.register(ae(43826)),ie.register(ae(29536)),ie.register(ae(82834)),ie.register(ae(58090)),ie.register(ae(95121)),ie.register(ae(59904)),ie.register(ae(9436)),ie.register(ae(60591)),ie.register(ae(76942)),ie.register(ae(60561)),ie.register(ae(49660)),ie.register(ae(30615)),ie.register(ae(93865)),ie.register(ae(51078)),ie.register(ae(91178)),ie.register(ae(40011)),ie.register(ae(12017)),ie.register(ae(65175)),ie.register(ae(14970)),ie.register(ae(30764)),ie.register(ae(87624)),ie.register(ae(15909)),ie.register(ae(36553)),ie.register(ae(9858)),ie.register(ae(11223)),ie.register(ae(57957)),ie.register(ae(66604)),ie.register(ae(77935)),ie.register(ae(46155)),ie.register(ae(47359)),ie.register(ae(25319)),ie.register(ae(45950)),ie.register(ae(50235)),ie.register(ae(80963)),ie.register(ae(79358)),ie.register(ae(96412)),ie.register(ae(39259)),ie.register(ae(32409)),ie.register(ae(35760)),ie.register(ae(19715)),ie.register(ae(27614)),ie.register(ae(82819)),ie.register(ae(42876)),ie.register(ae(2980)),ie.register(ae(41701)),ie.register(ae(42491)),ie.register(ae(34927)),ie.register(ae(3848)),ie.register(ae(41469)),ie.register(ae(73070)),ie.register(ae(35049)),ie.register(ae(8789)),ie.register(ae(59803)),ie.register(ae(86328)),ie.register(ae(33055)),ie.register(ae(90542)),ie.register(ae(93205)),ie.register(ae(27992)),ie.register(ae(91115)),ie.register(ae(606)),ie.register(ae(68582)),ie.register(ae(23388)),ie.register(ae(90596)),ie.register(ae(95721)),ie.register(ae(64262)),ie.register(ae(18190)),ie.register(ae(70896)),ie.register(ae(42242)),ie.register(ae(37943)),ie.register(ae(293)),ie.register(ae(83873)),ie.register(ae(75932)),ie.register(ae(60221)),ie.register(ae(44188)),ie.register(ae(74426)),ie.register(ae(88447)),ie.register(ae(16032)),ie.register(ae(33607)),ie.register(ae(22001)),ie.register(ae(22950)),ie.register(ae(23254)),ie.register(ae(70558)),ie.register(ae(43273)),ie.register(ae(60718)),ie.register(ae(39303)),ie.register(ae(77393)),ie.register(ae(19023)),ie.register(ae(74212)),ie.register(ae(5137)),ie.register(ae(88262)),ie.register(ae(63632)),ie.register(ae(59149)),ie.register(ae(50256)),ie.register(ae(61777)),ie.register(ae(3623)),ie.register(ae(82707)),ie.register(ae(59338)),ie.register(ae(56267)),ie.register(ae(98809)),ie.register(ae(37548)),ie.register(ae(82161)),ie.register(ae(80625)),ie.register(ae(88393)),ie.register(ae(78404)),ie.register(ae(92923)),ie.register(ae(52992)),ie.register(ae(55762)),ie.register(ae(4137)),ie.register(ae(28260)),ie.register(ae(71360)),ie.register(ae(29308)),ie.register(ae(32168)),ie.register(ae(5755)),ie.register(ae(54105)),ie.register(ae(93503)),ie.register(ae(35108)),ie.register(ae(46678)),ie.register(ae(47496)),ie.register(ae(30527)),ie.register(ae(5261)),ie.register(ae(56939)),ie.register(ae(83648)),ie.register(ae(16009)),ie.register(ae(41720)),ie.register(ae(6054)),ie.register(ae(9997)),ie.register(ae(24296)),ie.register(ae(49246)),ie.register(ae(18890)),ie.register(ae(11037)),ie.register(ae(64020)),ie.register(ae(49760)),ie.register(ae(33351)),ie.register(ae(13570)),ie.register(ae(38181)),ie.register(ae(98774)),ie.register(ae(22855)),ie.register(ae(29611)),ie.register(ae(11114)),ie.register(ae(67386)),ie.register(ae(28067)),ie.register(ae(49168)),ie.register(ae(23651)),ie.register(ae(21483)),ie.register(ae(32268)),ie.register(ae(2329)),ie.register(ae(82996)),ie.register(ae(17290)),ie.register(ae(67989)),ie.register(ae(31065)),ie.register(ae(85572)),ie.register(ae(27536)),ie.register(ae(87041)),ie.register(ae(61028)),ie.register(ae(24691)),ie.register(ae(19892)),ie.register(ae(4979)),ie.register(ae(23159)),ie.register(ae(34966)),ie.register(ae(44623)),ie.register(ae(38521)),ie.register(ae(7255)),ie.register(ae(28173)),ie.register(ae(53813)),ie.register(ae(46891)),ie.register(ae(91824)),ie.register(ae(9447)),ie.register(ae(53062)),ie.register(ae(46215)),ie.register(ae(10784)),ie.register(ae(17684)),ie.register(ae(64851)),ie.register(ae(18191)),ie.register(ae(75242)),ie.register(ae(93639)),ie.register(ae(97202)),ie.register(ae(13808)),ie.register(ae(21301)),ie.register(ae(20349)),ie.register(ae(65039)),ie.register(ae(96319)),ie.register(ae(31501))},36167:function(Ke){"use strict";Ke.exports=we,we.displayName="abap",we.aliases=[];function we(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:/[,.:()]/}}},68313:function(Ke){"use strict";Ke.exports=we,we.displayName="abnf",we.aliases=[];function we(ae){(function(ie){var Pe="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";ie.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)}},5199:function(Ke){"use strict";Ke.exports=we,we.displayName="actionscript",we.aliases=[];function we(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}})}},89693:function(Ke){"use strict";Ke.exports=we,we.displayName="ada",we.aliases=[];function we(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}}},24001:function(Ke){"use strict";Ke.exports=we,we.displayName="agda",we.aliases=[];function we(ae){(function(ie){ie.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)}},18018:function(Ke){"use strict";Ke.exports=we,we.displayName="al",we.aliases=[];function we(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:/[()\[\]{}:.;,]/}}},36363:function(Ke){"use strict";Ke.exports=we,we.displayName="antlr4",we.aliases=["g4"];function we(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}},35281:function(Ke){"use strict";Ke.exports=we,we.displayName="apacheconf",we.aliases=[];function we(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:/\^?.*\$|\^.*\$?/}}},10433:function(Ke,we,ae){"use strict";var ie=ae(11114);Ke.exports=Pe,Pe.displayName="apex",Pe.aliases=[];function Pe(Fe){Fe.register(ie),function(Oe){var tt=/\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,Me=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return tt.source});function _e(et){return RegExp(et.replace(/<CLASS-NAME>/g,function(){return Me}),"i")}var ut={keyword:tt,punctuation:/[()\[\]{};,:.<>]/};Oe.languages.apex={comment:Oe.languages.clike.comment,string:Oe.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:Oe.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:_e(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:ut},{pattern:_e(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:ut},{pattern:_e(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:ut}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:tt,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:/[()\[\]{};,.]/}}(Fe)}},84039:function(Ke){"use strict";Ke.exports=we,we.displayName="apl",we.aliases=[];function we(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"}}}},71336:function(Ke){"use strict";Ke.exports=we,we.displayName="applescript",we.aliases=[];function we(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:/[{}():,¬«»《》]/}}},4481:function(Ke){"use strict";Ke.exports=we,we.displayName="aql",we.aliases=[];function we(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:/::|[?.:,;()[\]{}]/}}},2159:function(Ke,we,ae){"use strict";var ie=ae(80096);Ke.exports=Pe,Pe.displayName="arduino",Pe.aliases=["ino"];function Pe(Fe){Fe.register(ie),Fe.languages.arduino=Fe.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/}),Fe.languages.ino=Fe.languages.arduino}},60274:function(Ke){"use strict";Ke.exports=we,we.displayName="arff",we.aliases=[];function we(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:/[{},]/}}},18738:function(Ke){"use strict";Ke.exports=we,we.displayName="asciidoc",we.aliases=["adoc"];function we(ae){(function(ie){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+$).+/}},Fe=ie.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 Oe(tt){tt=tt.split(" ");for(var Me={},_e=0,ut=tt.length;_e<ut;_e++)Me[tt[_e]]=Fe[tt[_e]];return Me}Pe.inside.interpreted.inside.rest=Oe("macro inline replacement entity"),Fe["passthrough-block"].inside.rest=Oe("macro"),Fe["literal-block"].inside.rest=Oe("callout"),Fe.table.inside.rest=Oe("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"),Fe["other-block"].inside.rest=Oe("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),Fe.title.inside.rest=Oe("macro inline replacement entity"),ie.hooks.add("wrap",function(tt){tt.type==="entity"&&(tt.attributes.title=tt.content.value.replace(/&/,"&"))}),ie.languages.adoc=ie.languages.asciidoc})(ae)}},58572:function(Ke){"use strict";Ke.exports=we,we.displayName="asm6502",we.aliases=[];function we(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:/[(),:]/}}},28937:function(Ke){"use strict";Ke.exports=we,we.displayName="asmatmel",we.aliases=[];function we(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:/[(),:]/}}},78734:function(Ke,we,ae){"use strict";var ie=ae(61958);Ke.exports=Pe,Pe.displayName="aspnet",Pe.aliases=[];function Pe(Fe){Fe.register(ie),Fe.languages.aspnet=Fe.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:Fe.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:Fe.languages.csharp}}}),Fe.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,Fe.languages.insertBefore("inside","punctuation",{directive:Fe.languages.aspnet.directive},Fe.languages.aspnet.tag.inside["attr-value"]),Fe.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),Fe.languages.insertBefore("aspnet",Fe.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:Fe.languages.csharp||{}}})}},6681:function(Ke){"use strict";Ke.exports=we,we.displayName="autohotkey",we.aliases=[];function we(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:/[{}[\]():,]/}}},53358:function(Ke){"use strict";Ke.exports=we,we.displayName="autoit",we.aliases=[];function we(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:/[\[\]().,:]/}}},81700:function(Ke){"use strict";Ke.exports=we,we.displayName="avisynth",we.aliases=["avs"];function we(ae){(function(ie){function Pe(et,lt){return et.replace(/<<(\d+)>>/g,function(Et,rt){return lt[+rt]})}function Fe(et,lt,Et){return RegExp(Pe(et,lt),Et||"")}var Oe=/bool|clip|float|int|string|val/.source,tt=[/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("|"),Me=[/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("|"),_e=[/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("|"),ut=[tt,Me,_e].join("|");ie.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:Fe(/\b(?:<<0>>)\s+("?)\w+\1/.source,[Oe],"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:Fe(/\b(?:<<0>>)\b/.source,[ut],"i"),alias:"function"},"type-cast":{pattern:Fe(/\b(?:<<0>>)(?=\s*\()/.source,[Oe],"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:/[{}\[\]();,.]/},ie.languages.avs=ie.languages.avisynth})(ae)}},37219:function(Ke){"use strict";Ke.exports=we,we.displayName="avroIdl",we.aliases=[];function we(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"]}},6979:function(Ke){"use strict";Ke.exports=we,we.displayName="bash",we.aliases=["shell"];function we(ae){(function(ie){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",Fe={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},Oe={bash:Fe,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})/};ie.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:Oe},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:Fe}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:Oe},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:Oe.entity}}],environment:{pattern:RegExp("\\$?"+Pe),alias:"constant"},variable:Oe.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}},Fe.inside=ie.languages.bash;for(var tt=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],Me=Oe.variable[1].inside,_e=0;_e<tt.length;_e++)Me[tt[_e]]=ie.languages.bash[tt[_e]];ie.languages.shell=ie.languages.bash})(ae)}},46241:function(Ke){"use strict";Ke.exports=we,we.displayName="basic",we.aliases=[];function we(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:/[,;:()]/}}},94781:function(Ke){"use strict";Ke.exports=we,we.displayName="batch",we.aliases=[];function we(ae){(function(ie){var Pe=/%%?[~:\w]+%?|!\S+!/,Fe={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},Oe=/"(?:[\\"]"|[^"])*"(?!")/,tt=/(?:\b|-)\d+\b/;ie.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:Oe,parameter:Fe,variable:Pe,number:tt,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:Oe,parameter:Fe,variable:Pe,number:tt,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:Oe,parameter:Fe,variable:[Pe,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:tt,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:Oe,parameter:Fe,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:Pe,number:tt,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(ae)}},62260:function(Ke){"use strict";Ke.exports=we,we.displayName="bbcode",we.aliases=["shortcode"];function we(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}},36153:function(Ke){"use strict";Ke.exports=we,we.displayName="bicep",we.aliases=[];function we(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}},59258:function(Ke){"use strict";Ke.exports=we,we.displayName="birb",we.aliases=[];function we(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"}})}},62890:function(Ke,we,ae){"use strict";var ie=ae(65806);Ke.exports=Pe,Pe.displayName="bison",Pe.aliases=[];function Pe(Fe){Fe.register(ie),Fe.languages.bison=Fe.languages.extend("c",{}),Fe.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:Fe.languages.c}},comment:Fe.languages.c.comment,string:Fe.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}},15958:function(Ke){"use strict";Ke.exports=we,we.displayName="bnf",we.aliases=["rbnf"];function we(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}},61321:function(Ke){"use strict";Ke.exports=we,we.displayName="brainfuck",we.aliases=[];function we(ae){ae.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}},77856:function(Ke){"use strict";Ke.exports=we,we.displayName="brightscript",we.aliases=[];function we(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}},90741:function(Ke){"use strict";Ke.exports=we,we.displayName="bro",we.aliases=[];function we(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:/[{}[\];(),.:]/}}},83410:function(Ke){"use strict";Ke.exports=we,we.displayName="bsl",we.aliases=[];function we(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}},65806:function(Ke){"use strict";Ke.exports=we,we.displayName="c",we.aliases=[];function we(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}},33039:function(Ke){"use strict";Ke.exports=we,we.displayName="cfscript",we.aliases=[];function we(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}},85082:function(Ke,we,ae){"use strict";var ie=ae(80096);Ke.exports=Pe,Pe.displayName="chaiscript",Pe.aliases=[];function Pe(Fe){Fe.register(ie),Fe.languages.chaiscript=Fe.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:[Fe.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),Fe.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),Fe.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:Fe.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}},79415:function(Ke){"use strict";Ke.exports=we,we.displayName="cil",we.aliases=[];function we(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]+/}}},29726:function(Ke){"use strict";Ke.exports=we,we.displayName="clike",we.aliases=[];function we(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:/[{}[\];(),.:]/}}},62849:function(Ke){"use strict";Ke.exports=we,we.displayName="clojure",we.aliases=[];function we(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:/[{}\[\](),]/}}},55773:function(Ke){"use strict";Ke.exports=we,we.displayName="cmake",we.aliases=[];function we(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:/[()>}]|\$[<{]/}}},32762:function(Ke){"use strict";Ke.exports=we,we.displayName="cobol",we.aliases=[];function we(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:/[.:,()]/}}},43576:function(Ke){"use strict";Ke.exports=we,we.displayName="coffeescript",we.aliases=["coffee"];function we(ae){(function(ie){var Pe=/#(?!\{).+/,Fe={pattern:/#\{[^}]+\}/,alias:"variable"};ie.languages.coffeescript=ie.languages.extend("javascript",{comment:Pe,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:Fe}}],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"}}),ie.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:Pe,interpolation:Fe}}}),ie.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:ie.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:Fe}}]}),ie.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete ie.languages.coffeescript["template-string"],ie.languages.coffee=ie.languages.coffeescript})(ae)}},71794:function(Ke){"use strict";Ke.exports=we,we.displayName="concurnas",we.aliases=["conc"];function we(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}},1315:function(Ke){"use strict";Ke.exports=we,we.displayName="coq",we.aliases=[];function we(ae){(function(ie){for(var Pe=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,Fe=0;Fe<2;Fe++)Pe=Pe.replace(/<self>/g,function(){return Pe});Pe=Pe.replace(/<self>/g,"[]"),ie.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)}},80096:function(Ke,we,ae){"use strict";var ie=ae(65806);Ke.exports=Pe,Pe.displayName="cpp",Pe.aliases=[];function Pe(Fe){Fe.register(ie),function(Oe){var tt=/\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/,Me=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return tt.source});Oe.languages.cpp=Oe.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return tt.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:tt,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/}),Oe.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 Me})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),Oe.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:Oe.languages.cpp}}}}),Oe.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),Oe.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:Oe.languages.extend("cpp",{})}}),Oe.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},Oe.languages.cpp["base-clause"])}(Fe)}},99176:function(Ke,we,ae){"use strict";var ie=ae(56939);Ke.exports=Pe,Pe.displayName="crystal",Pe.aliases=[];function Pe(Fe){Fe.register(ie),function(Oe){Oe.languages.crystal=Oe.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:[/->/,Oe.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),Oe.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:Oe.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:Oe.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}})}(Fe)}},61958:function(Ke){"use strict";Ke.exports=we,we.displayName="csharp",we.aliases=["dotnet","cs"];function we(ae){(function(ie){function Pe(Nn,wt){return Nn.replace(/<<(\d+)>>/g,function(pt,Ie){return"(?:"+wt[+Ie]+")"})}function Fe(Nn,wt,pt){return RegExp(Pe(Nn,wt),pt||"")}function Oe(Nn,wt){for(var pt=0;pt<wt;pt++)Nn=Nn.replace(/<<self>>/g,function(){return"(?:"+Nn+")"});return Nn.replace(/<<self>>/g,"[^\\s\\S]")}var tt={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 Me(Nn){return"\\b(?:"+Nn.trim().replace(/ /g,"|")+")\\b"}var _e=Me(tt.typeDeclaration),ut=RegExp(Me(tt.type+" "+tt.typeDeclaration+" "+tt.contextual+" "+tt.other)),et=Me(tt.typeDeclaration+" "+tt.contextual+" "+tt.other),lt=Me(tt.type+" "+tt.typeDeclaration+" "+tt.other),Et=Oe(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),rt=Oe(/\((?:[^()]|<<self>>)*\)/.source,2),_t=/@?\b[A-Za-z_]\w*\b/.source,Ge=Pe(/<<0>>(?:\s*<<1>>)?/.source,[_t,Et]),te=Pe(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[et,Ge]),ee=/\[\s*(?:,\s*)*\]/.source,de=Pe(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[te,ee]),le=Pe(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[Et,rt,ee]),pe=Pe(/\(<<0>>+(?:,<<0>>+)+\)/.source,[le]),me=Pe(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[pe,te,ee]),xe={keyword:ut,punctuation:/[<>()?,.:[\]]/},be=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,Be=/"(?:\\.|[^\\"\r\n])*"/.source,at=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;ie.languages.csharp=ie.languages.extend("clike",{string:[{pattern:Fe(/(^|[^$\\])<<0>>/.source,[at]),lookbehind:!0,greedy:!0},{pattern:Fe(/(^|[^@$\\])<<0>>/.source,[Be]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:Fe(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[te]),lookbehind:!0,inside:xe},{pattern:Fe(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[_t,me]),lookbehind:!0,inside:xe},{pattern:Fe(/(\busing\s+)<<0>>(?=\s*=)/.source,[_t]),lookbehind:!0},{pattern:Fe(/(\b<<0>>\s+)<<1>>/.source,[_e,Ge]),lookbehind:!0,inside:xe},{pattern:Fe(/(\bcatch\s*\(\s*)<<0>>/.source,[te]),lookbehind:!0,inside:xe},{pattern:Fe(/(\bwhere\s+)<<0>>/.source,[_t]),lookbehind:!0},{pattern:Fe(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[de]),lookbehind:!0,inside:xe},{pattern:Fe(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[me,lt,_t]),inside:xe}],keyword:ut,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:/\?\.?|::|[{}[\];(),.:]/}),ie.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),ie.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:Fe(/([(,]\s*)<<0>>(?=\s*:)/.source,[_t]),lookbehind:!0,alias:"punctuation"}}),ie.languages.insertBefore("csharp","class-name",{namespace:{pattern:Fe(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[_t]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:Fe(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[rt]),lookbehind:!0,alias:"class-name",inside:xe},"return-type":{pattern:Fe(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[me,te]),inside:xe,alias:"class-name"},"constructor-invocation":{pattern:Fe(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[me]),lookbehind:!0,inside:xe,alias:"class-name"},"generic-method":{pattern:Fe(/<<0>>\s*<<1>>(?=\s*\()/.source,[_t,Et]),inside:{function:Fe(/^<<0>>/.source,[_t]),generic:{pattern:RegExp(Et),alias:"class-name",inside:xe}}},"type-list":{pattern:Fe(/\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,[_e,Ge,_t,me,ut.source,rt,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:Fe(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[Ge,rt]),lookbehind:!0,greedy:!0,inside:ie.languages.csharp},keyword:ut,"class-name":{pattern:RegExp(me),greedy:!0,inside:xe},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 dt=Be+"|"+be,gt=Pe(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[dt]),ft=Oe(Pe(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[gt]),2),Nt=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,Tt=Pe(/<<0>>(?:\s*\(<<1>>*\))?/.source,[te,ft]);ie.languages.insertBefore("csharp","class-name",{attribute:{pattern:Fe(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[Nt,Tt]),lookbehind:!0,greedy:!0,inside:{target:{pattern:Fe(/^<<0>>(?=\s*:)/.source,[Nt]),alias:"keyword"},"attribute-arguments":{pattern:Fe(/\(<<0>>*\)/.source,[ft]),inside:ie.languages.csharp},"class-name":{pattern:RegExp(te),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var Ct=/:[^}\r\n]+/.source,Vt=Oe(Pe(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[gt]),2),Rt=Pe(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Vt,Ct]),nn=Oe(Pe(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[dt]),2),Cn=Pe(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[nn,Ct]);function un(Nn,wt){return{interpolation:{pattern:Fe(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[Nn]),lookbehind:!0,inside:{"format-string":{pattern:Fe(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[wt,Ct]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:ie.languages.csharp}}},string:/[\s\S]+/}}ie.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:Fe(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[Rt]),lookbehind:!0,greedy:!0,inside:un(Rt,Vt)},{pattern:Fe(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Cn]),lookbehind:!0,greedy:!0,inside:un(Cn,nn)}],char:{pattern:RegExp(be),greedy:!0}}),ie.languages.dotnet=ie.languages.cs=ie.languages.csharp})(ae)}},90312:function(Ke,we,ae){"use strict";var ie=ae(61958);Ke.exports=Pe,Pe.displayName="cshtml",Pe.aliases=["razor"];function Pe(Fe){Fe.register(ie),function(Oe){var tt=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,Me=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function _e(de,le){for(var pe=0;pe<le;pe++)de=de.replace(/<self>/g,function(){return"(?:"+de+")"});return de.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+Me+")").replace(/<comment>/g,"(?:"+tt+")")}var ut=_e(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),et=_e(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),lt=_e(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),Et=_e(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),rt=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,_t=/(?!\d)[^\s>\/=$<%]+/.source+rt+/\s*\/?>/.source,Ge=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+rt+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+_t+"|"+_e(/<\1/.source+rt+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+_t+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+_t+")";Oe.languages.cshtml=Oe.languages.extend("markup",{});var te=Oe.languages.insertBefore("csharp","string",{html:{pattern:RegExp(Ge),greedy:!0,inside:Oe.languages.cshtml}},{csharp:Oe.languages.extend("csharp",{})}),ee={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:te};Oe.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[lt,/(?:code|functions)\s*/.source+lt,/(?:for|foreach|lock|switch|using|while)\s*/.source+ut+/\s*/.source+lt,/do\s*/.source+lt+/\s*while\s*/.source+ut+/(?:\s*;)?/.source,/try\s*/.source+lt+/\s*catch\s*/.source+ut+/\s*/.source+lt+/\s*finally\s*/.source+lt,/if\s*/.source+ut+/\s*/.source+lt+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+ut+")?"+/\s*/.source+lt+")*"].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+"|"+ut+")(?:"+/[?!]?\.\w+\b/.source+"|"+ut+"|"+et+"|"+Et+ut+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:ee}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),Oe.languages.razor=Oe.languages.cshtml}(Fe)}},65447:function(Ke){"use strict";Ke.exports=we,we.displayName="csp",we.aliases=[];function we(ae){(function(ie){function Pe(Fe){return RegExp(/([ \t])/.source+"(?:"+Fe+")"+/(?=[\s;]|$)/.source,"i")}ie.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)}},4762:function(Ke){"use strict";Ke.exports=we,we.displayName="cssExtras",we.aliases=[];function we(ae){(function(ie){var Pe=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,Fe;ie.languages.css.selector={pattern:ie.languages.css.selector.pattern,lookbehind:!0,inside:Fe={"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:/[(),]/}},ie.languages.css.atrule.inside["selector-function-argument"].inside=Fe,ie.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var Oe={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},tt={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};ie.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:Oe,number:tt,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Oe,number:tt})})(ae)}},12049:function(Ke){"use strict";Ke.exports=we,we.displayName="css",we.aliases=[];function we(ae){(function(ie){var Pe=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;ie.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:/[(){};:,]/},ie.languages.css.atrule.inside.rest=ie.languages.css;var Fe=ie.languages.markup;Fe&&(Fe.tag.addInlined("style","css"),Fe.tag.addAttribute("style","css"))})(ae)}},78090:function(Ke){"use strict";Ke.exports=we,we.displayName="csv",we.aliases=[];function we(ae){ae.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}},40315:function(Ke){"use strict";Ke.exports=we,we.displayName="cypher",we.aliases=[];function we(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:/[()[\]{},;.]/}}},7902:function(Ke){"use strict";Ke.exports=we,we.displayName="d",we.aliases=[];function we(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"}})}},28651:function(Ke){"use strict";Ke.exports=we,we.displayName="dart",we.aliases=[];function we(ae){(function(ie){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/],Fe=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,Oe={pattern:RegExp(Fe+/[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:/\./}}}};ie.languages.dart=ie.languages.extend("clike",{"class-name":[Oe,{pattern:RegExp(Fe+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:Oe.inside}],keyword:Pe,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),ie.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:ie.languages.dart}}},string:/[\s\S]+/}},string:void 0}),ie.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),ie.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":Oe,keyword:Pe,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(ae)}},55579:function(Ke){"use strict";Ke.exports=we,we.displayName="dataweave",we.aliases=[];function we(ae){(function(ie){ie.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)}},93685:function(Ke){"use strict";Ke.exports=we,we.displayName="dax",we.aliases=[];function we(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:/[;\[\](){}`,.]/}}},13934:function(Ke){"use strict";Ke.exports=we,we.displayName="dhall",we.aliases=[];function we(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}},93336:function(Ke){"use strict";Ke.exports=we,we.displayName="diff",we.aliases=[];function we(ae){(function(ie){ie.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(Fe){var Oe=Pe[Fe],tt=[];/^\w+$/.test(Fe)||tt.push(/\w+/.exec(Fe)[0]),Fe==="diff"&&tt.push("bold"),ie.languages.diff[Fe]={pattern:RegExp("^(?:["+Oe+`].*(?:\r
|
|
|
?|
|
|
|
|(?![\\s\\S])))+`,"m"),alias:tt,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(Fe)[0]}}}}),Object.defineProperty(ie.languages.diff,"PREFIXES",{value:Pe})})(ae)}},13294:function(Ke,we,ae){"use strict";var ie=ae(93205);Ke.exports=Pe,Pe.displayName="django",Pe.aliases=["jinja2"];function Pe(Fe){Fe.register(ie),function(Oe){Oe.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 tt=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,Me=Oe.languages["markup-templating"];Oe.hooks.add("before-tokenize",function(_e){Me.buildPlaceholders(_e,"django",tt)}),Oe.hooks.add("after-tokenize",function(_e){Me.tokenizePlaceholders(_e,"django")}),Oe.languages.jinja2=Oe.languages.django,Oe.hooks.add("before-tokenize",function(_e){Me.buildPlaceholders(_e,"jinja2",tt)}),Oe.hooks.add("after-tokenize",function(_e){Me.tokenizePlaceholders(_e,"jinja2")})}(Fe)}},38223:function(Ke){"use strict";Ke.exports=we,we.displayName="dnsZoneFile",we.aliases=[];function we(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"]}},97266:function(Ke){"use strict";Ke.exports=we,we.displayName="docker",we.aliases=["dockerfile"];function we(ae){(function(ie){var Pe=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,Fe=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return Pe}),Oe=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,tt=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return Oe}),Me={pattern:RegExp(Oe),greedy:!0},_e={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function ut(et,lt){return et=et.replace(/<OPT>/g,function(){return tt}).replace(/<SP>/g,function(){return Fe}),RegExp(et,lt)}ie.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:ut(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[Me,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:ut(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:ut(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:ut(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:_e,string:Me,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:_e},ie.languages.dockerfile=ie.languages.docker})(ae)}},77125:function(Ke){"use strict";Ke.exports=we,we.displayName="dot",we.aliases=["gv"];function we(ae){(function(ie){var Pe="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",Fe={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:ie.languages.markup}};function Oe(tt,Me){return RegExp(tt.replace(/<ID>/g,function(){return Pe}),Me)}ie.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:Oe(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:Fe},"attr-value":{pattern:Oe(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:Fe},"attr-name":{pattern:Oe(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:Fe},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:Oe(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:Fe},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},ie.languages.gv=ie.languages.dot})(ae)}},36500:function(Ke){"use strict";Ke.exports=we,we.displayName="ebnf",we.aliases=[];function we(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:/[-=|*/!]/}}},30296:function(Ke){"use strict";Ke.exports=we,we.displayName="editorconfig",we.aliases=[];function we(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:/^=/}}}}},50115:function(Ke){"use strict";Ke.exports=we,we.displayName="eiffel",we.aliases=[];function we(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:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}},20791:function(Ke,we,ae){"use strict";var ie=ae(93205);Ke.exports=Pe,Pe.displayName="ejs",Pe.aliases=["eta"];function Pe(Fe){Fe.register(ie),function(Oe){Oe.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:Oe.languages.javascript}},Oe.hooks.add("before-tokenize",function(tt){var Me=/<%(?!%)[\s\S]+?%>/g;Oe.languages["markup-templating"].buildPlaceholders(tt,"ejs",Me)}),Oe.hooks.add("after-tokenize",function(tt){Oe.languages["markup-templating"].tokenizePlaceholders(tt,"ejs")}),Oe.languages.eta=Oe.languages.ejs}(Fe)}},11974:function(Ke){"use strict";Ke.exports=we,we.displayName="elixir",we.aliases=[];function we(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(ie){ie.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:ae.languages.elixir}}}})}},8645:function(Ke){"use strict";Ke.exports=we,we.displayName="elm",we.aliases=[];function we(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:/[{}[\]|(),.:]/}}},84790:function(Ke,we,ae){"use strict";var ie=ae(56939),Pe=ae(93205);Ke.exports=Fe,Fe.displayName="erb",Fe.aliases=[];function Fe(Oe){Oe.register(ie),Oe.register(Pe),function(tt){tt.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:tt.languages.ruby}},tt.hooks.add("before-tokenize",function(Me){var _e=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;tt.languages["markup-templating"].buildPlaceholders(Me,"erb",_e)}),tt.hooks.add("after-tokenize",function(Me){tt.languages["markup-templating"].tokenizePlaceholders(Me,"erb")})}(Oe)}},4502:function(Ke){"use strict";Ke.exports=we,we.displayName="erlang",we.aliases=[];function we(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:/[()[\]{}:;,.#|]|<<|>>/}}},66055:function(Ke,we,ae){"use strict";var ie=ae(59803),Pe=ae(93205);Ke.exports=Fe,Fe.displayName="etlua",Fe.aliases=[];function Fe(Oe){Oe.register(ie),Oe.register(Pe),function(tt){tt.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:tt.languages.lua}},tt.hooks.add("before-tokenize",function(Me){var _e=/<%[\s\S]+?%>/g;tt.languages["markup-templating"].buildPlaceholders(Me,"etlua",_e)}),tt.hooks.add("after-tokenize",function(Me){tt.languages["markup-templating"].tokenizePlaceholders(Me,"etlua")})}(Oe)}},34668:function(Ke){"use strict";Ke.exports=we,we.displayName="excelFormula",we.aliases=[];function we(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"]}},95126:function(Ke){"use strict";Ke.exports=we,we.displayName="factor",we.aliases=[];function we(ae){(function(ie){var Pe={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},Fe={number:/\\[^\s']|%\w/},Oe={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:Fe.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:Fe},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:Fe}],"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:Fe}},tt=function(et){return(et+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},Me=function(et){return new RegExp("(^|\\s)(?:"+et.map(tt).join("|")+")(?=\\s|$)")},_e={"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(_e).forEach(function(et){Oe[et].pattern=Me(_e[et])});var ut=["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"];Oe.combinators.pattern=Me(ut),ie.languages.factor=Oe})(ae)}},90618:function(Ke){"use strict";Ke.exports=we,we.displayName="$false",we.aliases=[];function we(ae){(function(ie){ie.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)}},63128:function(Ke){"use strict";Ke.exports=we,we.displayName="firestoreSecurityRules",we.aliases=[];function we(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:/,/}}})}},37225:function(Ke){"use strict";Ke.exports=we,we.displayName="flow",we.aliases=[];function we(ae){(function(ie){ie.languages.flow=ie.languages.extend("javascript",{}),ie.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),ie.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 ie.languages.flow.parameter,ie.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(ie.languages.flow.keyword)||(ie.languages.flow.keyword=[ie.languages.flow.keyword]),ie.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)}},16725:function(Ke){"use strict";Ke.exports=we,we.displayName="fortran",we.aliases=[];function we(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:/\(\/|\/\)|[(),;:&]/}}},95559:function(Ke){"use strict";Ke.exports=we,we.displayName="fsharp",we.aliases=[];function we(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}})}},82114:function(Ke,we,ae){"use strict";var ie=ae(93205);Ke.exports=Pe,Pe.displayName="ftl",Pe.aliases=[];function Pe(Fe){Fe.register(ie),function(Oe){for(var tt=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,Me=0;Me<2;Me++)tt=tt.replace(/<expr>/g,function(){return tt});tt=tt.replace(/<expr>/g,/[^\s\S]/.source);var _e={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return tt})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return tt})),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:/[,;.:()[\]{}]/};_e.string[1].inside.interpolation.inside.rest=_e,Oe.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:_e}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:_e}}}},Oe.hooks.add("before-tokenize",function(ut){var et=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return tt}),"gi");Oe.languages["markup-templating"].buildPlaceholders(ut,"ftl",et)}),Oe.hooks.add("after-tokenize",function(ut){Oe.languages["markup-templating"].tokenizePlaceholders(ut,"ftl")})}(Fe)}},6806:function(Ke){"use strict";Ke.exports=we,we.displayName="gap",we.aliases=[];function we(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}},12208:function(Ke){"use strict";Ke.exports=we,we.displayName="gcode",we.aliases=[];function we(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:/[:*]/}}},62728:function(Ke){"use strict";Ke.exports=we,we.displayName="gdscript",we.aliases=[];function we(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:/[.:,;()[\]{}]/}}},81549:function(Ke){"use strict";Ke.exports=we,we.displayName="gedcom",we.aliases=[];function we(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"}}}},6024:function(Ke){"use strict";Ke.exports=we,we.displayName="gherkin",we.aliases=[];function we(ae){(function(ie){var Pe=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;ie.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)}},13600:function(Ke){"use strict";Ke.exports=we,we.displayName="git",we.aliases=[];function we(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}}},3322:function(Ke,we,ae){"use strict";var ie=ae(65806);Ke.exports=Pe,Pe.displayName="glsl",Pe.aliases=[];function Pe(Fe){Fe.register(ie),Fe.languages.glsl=Fe.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/})}},53877:function(Ke){"use strict";Ke.exports=we,we.displayName="gml",we.aliases=[];function we(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/})}},60794:function(Ke){"use strict";Ke.exports=we,we.displayName="gn",we.aliases=["gni"];function we(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}},20222:function(Ke){"use strict";Ke.exports=we,we.displayName="goModule",we.aliases=[];function we(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:/[()[\],]/}}},51519:function(Ke){"use strict";Ke.exports=we,we.displayName="go",we.aliases=[];function we(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"]}},94055:function(Ke){"use strict";Ke.exports=we,we.displayName="graphql",we.aliases=[];function we(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 Fe=Pe.tokens.filter(function(ee){return typeof ee!="string"&&ee.type!=="comment"&&ee.type!=="scalar"}),Oe=0;function tt(ee){return Fe[Oe+ee]}function Me(ee,de){de=de||0;for(var le=0;le<ee.length;le++){var pe=tt(le+de);if(!pe||pe.type!==ee[le])return!1}return!0}function _e(ee,de){for(var le=1,pe=Oe;pe<Fe.length;pe++){var me=Fe[pe],xe=me.content;if(me.type==="punctuation"&&typeof xe=="string"){if(ee.test(xe))le++;else if(de.test(xe)&&(le--,le===0))return pe}}return-1}function ut(ee,de){var le=ee.alias;le?Array.isArray(le)||(ee.alias=le=[le]):ee.alias=le=[],le.push(de)}for(;Oe<Fe.length;){var et=Fe[Oe++];if(et.type==="keyword"&&et.content==="mutation"){var lt=[];if(Me(["definition-mutation","punctuation"])&&tt(1).content==="("){Oe+=2;var Et=_e(/^\($/,/^\)$/);if(Et===-1)continue;for(;Oe<Et;Oe++){var rt=tt(0);rt.type==="variable"&&(ut(rt,"variable-input"),lt.push(rt.content))}Oe=Et+1}if(Me(["punctuation","property-query"])&&tt(0).content==="{"&&(Oe++,ut(tt(0),"property-mutation"),lt.length>0)){var _t=_e(/^\{$/,/^\}$/);if(_t===-1)continue;for(var Ge=Oe;Ge<_t;Ge++){var te=Fe[Ge];te.type==="variable"&<.indexOf(te.content)>=0&&ut(te,"variable-input")}}}}})}},43826:function(Ke){"use strict";Ke.exports=we,we.displayName="groovy",we.aliases=[];function we(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(ie){if(ie.language==="groovy"&&ie.type==="string"){var Pe=ie.content.value[0];if(Pe!="'"){var Fe=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;Pe==="$"&&(Fe=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),ie.content.value=ie.content.value.replace(/</g,"<").replace(/&/g,"&"),ie.content=ae.highlight(ie.content.value,{expression:{pattern:Fe,lookbehind:!0,inside:ae.languages.groovy}}),ie.classes.push(Pe==="/"?"regex":"gstring")}}})}},29536:function(Ke,we,ae){"use strict";var ie=ae(56939);Ke.exports=Pe,Pe.displayName="haml",Pe.aliases=[];function Pe(Fe){Fe.register(ie),function(Oe){Oe.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:Oe.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:Oe.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:Oe.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:Oe.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:Oe.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:Oe.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:Oe.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var tt="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",Me=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],_e={},ut=0,et=Me.length;ut<et;ut++){var lt=Me[ut];lt=typeof lt=="string"?{filter:lt,language:lt}:lt,Oe.languages[lt.language]&&(_e["filter-"+lt.filter]={pattern:RegExp(tt.replace("{{filter_name}}",function(){return lt.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[lt.language,"language-"+lt.language],inside:Oe.languages[lt.language]}}})}Oe.languages.insertBefore("haml","filter",_e)}(Fe)}},82834:function(Ke,we,ae){"use strict";var ie=ae(93205);Ke.exports=Pe,Pe.displayName="handlebars",Pe.aliases=["hbs"];function Pe(Fe){Fe.register(ie),function(Oe){Oe.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]+/},Oe.hooks.add("before-tokenize",function(tt){var Me=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;Oe.languages["markup-templating"].buildPlaceholders(tt,"handlebars",Me)}),Oe.hooks.add("after-tokenize",function(tt){Oe.languages["markup-templating"].tokenizePlaceholders(tt,"handlebars")}),Oe.languages.hbs=Oe.languages.handlebars}(Fe)}},58090:function(Ke){"use strict";Ke.exports=we,we.displayName="haskell",we.aliases=["hs"];function we(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}},95121:function(Ke){"use strict";Ke.exports=we,we.displayName="haxe",we.aliases=[];function we(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"}})}},59904:function(Ke){"use strict";Ke.exports=we,we.displayName="hcl",we.aliases=[];function we(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:/[=\[\]{}]/}}},9436:function(Ke,we,ae){"use strict";var ie=ae(65806);Ke.exports=Pe,Pe.displayName="hlsl",Pe.aliases=[];function Pe(Fe){Fe.register(ie),Fe.languages.hlsl=Fe.languages.extend("c",{"class-name":[Fe.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/})}},60591:function(Ke){"use strict";Ke.exports=we,we.displayName="hoon",we.aliases=[];function we(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:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}},76942:function(Ke){"use strict";Ke.exports=we,we.displayName="hpkp",we.aliases=[];function we(ae){ae.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},60561:function(Ke){"use strict";Ke.exports=we,we.displayName="hsts",we.aliases=[];function we(ae){ae.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},49660:function(Ke){"use strict";Ke.exports=we,we.displayName="http",we.aliases=[];function we(ae){(function(ie){function Pe(lt){return RegExp("(^(?:"+lt+"):[ ]*(?![ ]))[^]+","i")}ie.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:ie.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:ie.languages.csp},{pattern:Pe(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:ie.languages.hpkp},{pattern:Pe(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:ie.languages.hsts},{pattern:Pe(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var Fe=ie.languages,Oe={"application/javascript":Fe.javascript,"application/json":Fe.json||Fe.javascript,"application/xml":Fe.xml,"text/xml":Fe.xml,"text/html":Fe.html,"text/css":Fe.css,"text/plain":Fe.plain},tt={"application/json":!0,"application/xml":!0};function Me(lt){var Et=lt.replace(/^[a-z]+\//,""),rt="\\w+/(?:[\\w.-]+\\+)+"+Et+"(?![+\\w.-])";return"(?:"+lt+"|"+rt+")"}var _e;for(var ut in Oe)if(Oe[ut]){_e=_e||{};var et=tt[ut]?Me(ut):ut;_e[ut.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+et+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:Oe[ut]}}_e&&ie.languages.insertBefore("http","header",_e)})(ae)}},30615:function(Ke){"use strict";Ke.exports=we,we.displayName="ichigojam",we.aliases=[];function we(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:/[\[,;:()\]]/}}},93865:function(Ke){"use strict";Ke.exports=we,we.displayName="icon",we.aliases=[];function we(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:/[\[\](){},;]/}}},51078:function(Ke){"use strict";Ke.exports=we,we.displayName="icuMessageFormat",we.aliases=[];function we(ae){(function(ie){function Pe(ut,et){return et<=0?/[]/.source:ut.replace(/<SELF>/g,function(){return Pe(ut,et-1)})}var Fe=/'[{}:=,](?:[^']|'')*'(?!')/,Oe={pattern:/''/,greedy:!0,alias:"operator"},tt={pattern:Fe,greedy:!0,inside:{escape:Oe}},Me=Pe(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return Fe.source}),8),_e={pattern:RegExp(Me),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};ie.languages["icu-message-format"]={argument:{pattern:RegExp(Me),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":_e,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":_e,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:Oe,string:tt},_e.inside.message.inside=ie.languages["icu-message-format"],ie.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=ie.languages["icu-message-format"]})(ae)}},91178:function(Ke,we,ae){"use strict";var ie=ae(58090);Ke.exports=Pe,Pe.displayName="idris",Pe.aliases=["idr"];function Pe(Fe){Fe.register(ie),Fe.languages.idris=Fe.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}),Fe.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),Fe.languages.idr=Fe.languages.idris}},40011:function(Ke){"use strict";Ke.exports=we,we.displayName="iecst",we.aliases=[];function we(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:/[()[\].,;]/}}},12017:function(Ke){"use strict";Ke.exports=we,we.displayName="ignore",we.aliases=["gitignore","hgignore","npmignore"];function we(ae){(function(ie){ie.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},ie.languages.gitignore=ie.languages.ignore,ie.languages.hgignore=ie.languages.ignore,ie.languages.npmignore=ie.languages.ignore})(ae)}},65175:function(Ke){"use strict";Ke.exports=we,we.displayName="inform7",we.aliases=[];function we(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"}}},14970:function(Ke){"use strict";Ke.exports=we,we.displayName="ini",we.aliases=[];function we(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:/=/}}},30764:function(Ke){"use strict";Ke.exports=we,we.displayName="io",we.aliases=[];function we(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:/[{}[\];(),.:]/}}},87624:function(Ke){"use strict";Ke.exports=we,we.displayName="j",we.aliases=[];function we(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:/[()]/}}},15909:function(Ke){"use strict";Ke.exports=we,we.displayName="java",we.aliases=[];function we(ae){(function(ie){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/,Fe=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,Oe={pattern:RegExp(Fe+/[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:/\./}};ie.languages.java=ie.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[Oe,{pattern:RegExp(Fe+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:Oe.inside}],keyword:Pe,function:[ie.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}}),ie.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),ie.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":Oe,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)}},36553:function(Ke,we,ae){"use strict";var ie=ae(15909),Pe=ae(9858);Ke.exports=Fe,Fe.displayName="javadoc",Fe.aliases=[];function Fe(Oe){Oe.register(ie),Oe.register(Pe),function(tt){var Me=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,_e=/#\s*\w+(?:\s*\([^()]*\))?/.source,ut=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return _e});tt.languages.javadoc=tt.languages.extend("javadoclike",{}),tt.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+ut+")"),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:tt.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:Me,lookbehind:!0,inside:tt.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:Me,lookbehind:!0,inside:{tag:tt.languages.markup.tag,entity:tt.languages.markup.entity,code:{pattern:/.+/,inside:tt.languages.java,alias:"language-java"}}}}}],tag:tt.languages.markup.tag,entity:tt.languages.markup.entity}),tt.languages.javadoclike.addSupport("java",tt.languages.javadoc)}(Oe)}},9858:function(Ke){"use strict";Ke.exports=we,we.displayName="javadoclike",we.aliases=[];function we(ae){(function(ie){var Pe=ie.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 Fe(tt,Me){var _e="doc-comment",ut=ie.languages[tt];if(ut){var et=ut[_e];if(!et){var lt={};lt[_e]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},ut=ie.languages.insertBefore(tt,"comment",lt),et=ut[_e]}if(et instanceof RegExp&&(et=ut[_e]={pattern:et}),Array.isArray(et))for(var Et=0,rt=et.length;Et<rt;Et++)et[Et]instanceof RegExp&&(et[Et]={pattern:et[Et]}),Me(et[Et]);else Me(et)}}function Oe(tt,Me){typeof tt=="string"&&(tt=[tt]),tt.forEach(function(_e){Fe(_e,function(ut){ut.inside||(ut.inside={}),ut.inside.rest=Me})})}Object.defineProperty(Pe,"addSupport",{value:Oe}),Pe.addSupport(["java","javascript","php"],Pe)})(ae)}},36155:function(Ke){"use strict";Ke.exports=we,we.displayName="javascript",we.aliases=["js"];function we(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}},11223:function(Ke){"use strict";Ke.exports=we,we.displayName="javastacktrace",we.aliases=[];function we(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/}}}}},57957:function(Ke){"use strict";Ke.exports=we,we.displayName="jexl",we.aliases=[];function we(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:/[{}[\](),.]/}}},66604:function(Ke){"use strict";Ke.exports=we,we.displayName="jolie",we.aliases=[];function we(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]*:)/}})}},77935:function(Ke){"use strict";Ke.exports=we,we.displayName="jq",we.aliases=[];function we(ae){(function(ie){var Pe=/\\\((?:[^()]|\([^()]*\))*\)/.source,Fe=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return Pe})),Oe={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+Pe),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},tt=ie.languages.jq={comment:/#.*/,property:{pattern:RegExp(Fe.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:Oe},string:{pattern:Fe,lookbehind:!0,greedy:!0,inside:Oe},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"}};Oe.interpolation.inside.content.inside=tt})(ae)}},46155:function(Ke){"use strict";Ke.exports=we,we.displayName="jsExtras",we.aliases=[];function we(ae){(function(ie){ie.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+ie.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),ie.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+ie.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),ie.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(ut,et){return RegExp(ut.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),et)}ie.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:ie.languages.javascript},exports:{pattern:Pe(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:ie.languages.javascript}}),ie.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"}),ie.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),ie.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 Fe=["function","function-variable","method","method-variable","property-access"],Oe=0;Oe<Fe.length;Oe++){var tt=Fe[Oe],Me=ie.languages.javascript[tt];ie.util.type(Me)==="RegExp"&&(Me=ie.languages.javascript[tt]={pattern:Me});var _e=Me.inside||{};Me.inside=_e,_e["maybe-class-name"]=/^[A-Z][\s\S]*/}})(ae)}},47359:function(Ke){"use strict";Ke.exports=we,we.displayName="jsTemplates",we.aliases=[];function we(ae){(function(ie){var Pe=ie.languages.javascript["template-string"],Fe=Pe.pattern.source,Oe=Pe.inside.interpolation,tt=Oe.inside["interpolation-punctuation"],Me=Oe.pattern.source;function _e(Ge,te){if(ie.languages[Ge])return{pattern:RegExp("((?:"+te+")\\s*)"+Fe),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:Ge}}}}ie.languages.javascript["template-string"]=[_e("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),_e("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),_e("svg",/\bsvg/.source),_e("markdown",/\b(?:markdown|md)/.source),_e("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),_e("sql",/\bsql/.source),Pe].filter(Boolean);function ut(Ge,te){return"___"+te.toUpperCase()+"_"+Ge+"___"}function et(Ge,te,ee){var de={code:Ge,grammar:te,language:ee};return ie.hooks.run("before-tokenize",de),de.tokens=ie.tokenize(de.code,de.grammar),ie.hooks.run("after-tokenize",de),de.tokens}function lt(Ge){var te={};te["interpolation-punctuation"]=tt;var ee=ie.tokenize(Ge,te);if(ee.length===3){var de=[1,1];de.push.apply(de,et(ee[1],ie.languages.javascript,"javascript")),ee.splice.apply(ee,de)}return new ie.Token("interpolation",ee,Oe.alias,Ge)}function Et(Ge,te,ee){var de=ie.tokenize(Ge,{interpolation:{pattern:RegExp(Me),lookbehind:!0}}),le=0,pe={},me=de.map(function(at){if(typeof at=="string")return at;for(var dt=at.content,gt;Ge.indexOf(gt=ut(le++,ee))!==-1;);return pe[gt]=dt,gt}).join(""),xe=et(me,te,ee),be=Object.keys(pe);le=0;function Be(at){for(var dt=0;dt<at.length;dt++){if(le>=be.length)return;var gt=at[dt];if(typeof gt=="string"||typeof gt.content=="string"){var ft=be[le],Nt=typeof gt=="string"?gt:gt.content,Tt=Nt.indexOf(ft);if(Tt!==-1){++le;var Ct=Nt.substring(0,Tt),Vt=lt(pe[ft]),Rt=Nt.substring(Tt+ft.length),nn=[];if(Ct&&nn.push(Ct),nn.push(Vt),Rt){var Cn=[Rt];Be(Cn),nn.push.apply(nn,Cn)}typeof gt=="string"?(at.splice.apply(at,[dt,1].concat(nn)),dt+=nn.length-1):gt.content=nn}}else{var un=gt.content;Array.isArray(un)?Be(un):Be([un])}}}return Be(xe),new ie.Token(ee,xe,"language-"+ee,Ge)}var rt={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};ie.hooks.add("after-tokenize",function(Ge){if(!(Ge.language in rt))return;function te(ee){for(var de=0,le=ee.length;de<le;de++){var pe=ee[de];if(typeof pe!="string"){var me=pe.content;if(!Array.isArray(me)){typeof me!="string"&&te([me]);continue}if(pe.type==="template-string"){var xe=me[1];if(me.length===3&&typeof xe!="string"&&xe.type==="embedded-code"){var be=_t(xe),Be=xe.alias,at=Array.isArray(Be)?Be[0]:Be,dt=ie.languages[at];if(!dt)continue;me[1]=Et(be,dt,at)}}else te(me)}}}te(Ge.tokens)});function _t(Ge){return typeof Ge=="string"?Ge:Array.isArray(Ge)?Ge.map(_t).join(""):_t(Ge.content)}})(ae)}},25319:function(Ke,we,ae){"use strict";var ie=ae(9858),Pe=ae(4979);Ke.exports=Fe,Fe.displayName="jsdoc",Fe.aliases=[];function Fe(Oe){Oe.register(ie),Oe.register(Pe),function(tt){var Me=tt.languages.javascript,_e=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,ut="(@(?:arg|argument|param|property)\\s+(?:"+_e+"\\s+)?)";tt.languages.jsdoc=tt.languages.extend("javadoclike",{parameter:{pattern:RegExp(ut+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),tt.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(ut+/\[(?:(?!\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:Me,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 _e})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+_e),lookbehind:!0,inside:{string:Me.string,number:Me.number,boolean:Me.boolean,keyword:tt.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:Me,alias:"language-javascript"}}}}),tt.languages.javadoclike.addSupport("javascript",tt.languages.jsdoc)}(Oe)}},45950:function(Ke){"use strict";Ke.exports=we,we.displayName="json",we.aliases=["webmanifest"];function we(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}},50235:function(Ke,we,ae){"use strict";var ie=ae(45950);Ke.exports=Pe,Pe.displayName="json5",Pe.aliases=[];function Pe(Fe){Fe.register(ie),function(Oe){var tt=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;Oe.languages.json5=Oe.languages.extend("json",{property:[{pattern:RegExp(tt.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:tt,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(Fe)}},80963:function(Ke,we,ae){"use strict";var ie=ae(45950);Ke.exports=Pe,Pe.displayName="jsonp",Pe.aliases=[];function Pe(Fe){Fe.register(ie),Fe.languages.jsonp=Fe.languages.extend("json",{punctuation:/[{}[\]();,.]/}),Fe.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}},79358:function(Ke){"use strict";Ke.exports=we,we.displayName="jsstacktrace",we.aliases=[];function we(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:/:/}}}}}}},96412:function(Ke){"use strict";Ke.exports=we,we.displayName="jsx",we.aliases=[];function we(ae){(function(ie){var Pe=ie.util.clone(ie.languages.javascript),Fe=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,Oe=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,tt=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function Me(et,lt){return et=et.replace(/<S>/g,function(){return Fe}).replace(/<BRACES>/g,function(){return Oe}).replace(/<SPREAD>/g,function(){return tt}),RegExp(et,lt)}tt=Me(tt).source,ie.languages.jsx=ie.languages.extend("markup",Pe),ie.languages.jsx.tag.pattern=Me(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),ie.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,ie.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,ie.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,ie.languages.jsx.tag.inside.comment=Pe.comment,ie.languages.insertBefore("inside","attr-name",{spread:{pattern:Me(/<SPREAD>/.source),inside:ie.languages.jsx}},ie.languages.jsx.tag),ie.languages.insertBefore("inside","special-attr",{script:{pattern:Me(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:ie.languages.jsx}}},ie.languages.jsx.tag);var _e=function(et){return et?typeof et=="string"?et:typeof et.content=="string"?et.content:et.content.map(_e).join(""):""},ut=function(et){for(var lt=[],Et=0;Et<et.length;Et++){var rt=et[Et],_t=!1;if(typeof rt!="string"&&(rt.type==="tag"&&rt.content[0]&&rt.content[0].type==="tag"?rt.content[0].content[0].content==="</"?lt.length>0&<[lt.length-1].tagName===_e(rt.content[0].content[1])&<.pop():rt.content[rt.content.length-1].content==="/>"||lt.push({tagName:_e(rt.content[0].content[1]),openedBraces:0}):lt.length>0&&rt.type==="punctuation"&&rt.content==="{"?lt[lt.length-1].openedBraces++:lt.length>0&<[lt.length-1].openedBraces>0&&rt.type==="punctuation"&&rt.content==="}"?lt[lt.length-1].openedBraces--:_t=!0),(_t||typeof rt=="string")&<.length>0&<[lt.length-1].openedBraces===0){var Ge=_e(rt);Et<et.length-1&&(typeof et[Et+1]=="string"||et[Et+1].type==="plain-text")&&(Ge+=_e(et[Et+1]),et.splice(Et+1,1)),Et>0&&(typeof et[Et-1]=="string"||et[Et-1].type==="plain-text")&&(Ge=_e(et[Et-1])+Ge,et.splice(Et-1,1),Et--),et[Et]=new ie.Token("plain-text",Ge,null,Ge)}rt.content&&typeof rt.content!="string"&&ut(rt.content)}};ie.hooks.add("after-tokenize",function(et){et.language!=="jsx"&&et.language!=="tsx"||ut(et.tokens)})})(ae)}},39259:function(Ke){"use strict";Ke.exports=we,we.displayName="julia",we.aliases=[];function we(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|[πℯ]/}}},32409:function(Ke){"use strict";Ke.exports=we,we.displayName="keepalived",we.aliases=[];function we(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:/[\{\}]/}}},35760:function(Ke){"use strict";Ke.exports=we,we.displayName="keyman",we.aliases=[];function we(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:/[()=,]/}}},19715:function(Ke){"use strict";Ke.exports=we,we.displayName="kotlin",we.aliases=["kt","kts"];function we(ae){(function(ie){ie.languages.kotlin=ie.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 ie.languages.kotlin["class-name"];var Pe={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:ie.languages.kotlin}};ie.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 ie.languages.kotlin.string,ie.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),ie.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),ie.languages.kt=ie.languages.kotlin,ie.languages.kts=ie.languages.kotlin})(ae)}},27614:function(Ke){"use strict";Ke.exports=we,we.displayName="kumir",we.aliases=["kum"];function we(ae){(function(ie){var Pe=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function Fe(Oe,tt){return RegExp(Oe.replace(/<nonId>/g,Pe),tt)}ie.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:Fe(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:Fe(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:Fe(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:Fe(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:Fe(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:Fe(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:Fe(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:Fe(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},ie.languages.kum=ie.languages.kumir})(ae)}},82819:function(Ke){"use strict";Ke.exports=we,we.displayName="kusto",we.aliases=[];function we(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:/[()\[\]{},;.:]/}}},42876:function(Ke){"use strict";Ke.exports=we,we.displayName="latex",we.aliases=["tex","context"];function we(ae){(function(ie){var Pe=/\\(?:[^a-z()[\]]|[a-z*]+)/i,Fe={"equation-command":{pattern:Pe,alias:"regex"}};ie.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:Fe,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:Fe,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:/[[\]{}&]/},ie.languages.tex=ie.languages.latex,ie.languages.context=ie.languages.latex})(ae)}},2980:function(Ke,we,ae){"use strict";var ie=ae(93205),Pe=ae(88262);Ke.exports=Fe,Fe.displayName="latte",Fe.aliases=[];function Fe(Oe){Oe.register(ie),Oe.register(Pe),function(tt){tt.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:tt.languages.php}};var Me=tt.languages.extend("markup",{});tt.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:tt.languages.php}}}}}},Me.tag),tt.hooks.add("before-tokenize",function(_e){if(_e.language==="latte"){var ut=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;tt.languages["markup-templating"].buildPlaceholders(_e,"latte",ut),_e.grammar=Me}}),tt.hooks.add("after-tokenize",function(_e){tt.languages["markup-templating"].tokenizePlaceholders(_e,"latte")})}(Oe)}},41701:function(Ke){"use strict";Ke.exports=we,we.displayName="less",we.aliases=[];function we(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"}})}},42491:function(Ke,we,ae){"use strict";var ie=ae(9997);Ke.exports=Pe,Pe.displayName="lilypond",Pe.aliases=[];function Pe(Fe){Fe.register(ie),function(Oe){for(var tt=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,Me=5,_e=0;_e<Me;_e++)tt=tt.replace(/<expr>/g,function(){return tt});tt=tt.replace(/<expr>/g,/[^\s\S]/.source);var ut=Oe.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return tt}),"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:Oe.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/};ut["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=ut,Oe.languages.ly=ut}(Fe)}},34927:function(Ke,we,ae){"use strict";var ie=ae(93205);Ke.exports=Pe,Pe.displayName="liquid",Pe.aliases=[];function Pe(Fe){Fe.register(ie),Fe.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"}},Fe.hooks.add("before-tokenize",function(Oe){var tt=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,Me=!1;Fe.languages["markup-templating"].buildPlaceholders(Oe,"liquid",tt,function(_e){var ut=/^\{%-?\s*(\w+)/.exec(_e);if(ut){var et=ut[1];if(et==="raw"&&!Me)return Me=!0,!0;if(et==="endraw")return Me=!1,!0}return!Me})}),Fe.hooks.add("after-tokenize",function(Oe){Fe.languages["markup-templating"].tokenizePlaceholders(Oe,"liquid")})}},3848:function(Ke){"use strict";Ke.exports=we,we.displayName="lisp",we.aliases=[];function we(ae){(function(ie){function Pe(Ge){return RegExp(/(\()/.source+"(?:"+Ge+")"+/(?=[\s\)])/.source)}function Fe(Ge){return RegExp(/([\s([])/.source+"(?:"+Ge+")"+/(?=[\s)])/.source)}var Oe=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,tt="&"+Oe,Me="(\\()",_e="(?=\\))",ut="(?=\\s)",et=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,lt={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+Oe+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+Oe),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+Oe),alias:"property"},splice:{pattern:RegExp(",@?"+Oe),alias:["symbol","variable"]},keyword:[{pattern:RegExp(Me+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+ut),lookbehind:!0},{pattern:RegExp(Me+"(?:append|by|collect|concat|do|finally|for|in|return)"+ut),lookbehind:!0}],declare:{pattern:Pe(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:Pe(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:Fe(/nil|t/.source),lookbehind:!0},number:{pattern:Fe(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(Me+"def(?:const|custom|group|var)\\s+"+Oe),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(Oe)}},defun:{pattern:RegExp(Me+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+Oe+/\s+\(/.source+et+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+Oe),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(Me+"lambda\\s+\\(\\s*(?:&?"+Oe+"(?:\\s+&?"+Oe+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(Me+Oe),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},Et={"lisp-marker":RegExp(tt),varform:{pattern:RegExp(/\(/.source+Oe+/\s+(?=\S)/.source+et+/\)/.source),inside:lt},argument:{pattern:RegExp(/(^|[\s(])/.source+Oe),lookbehind:!0,alias:"variable"},rest:lt},rt="\\S+(?:\\s+\\S+)*",_t={pattern:RegExp(Me+et+_e),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+rt),inside:Et},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+rt),inside:Et},keys:{pattern:RegExp("&key\\s+"+rt+"(?:\\s+&allow-other-keys)?"),inside:Et},argument:{pattern:RegExp(Oe),alias:"variable"},punctuation:/[()]/}};lt.lambda.inside.arguments=_t,lt.defun.inside.arguments=ie.util.clone(_t),lt.defun.inside.arguments.inside.sublist=_t,ie.languages.lisp=lt,ie.languages.elisp=lt,ie.languages.emacs=lt,ie.languages["emacs-lisp"]=lt})(ae)}},41469:function(Ke){"use strict";Ke.exports=we,we.displayName="livescript",we.aliases=[];function we(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}},73070:function(Ke){"use strict";Ke.exports=we,we.displayName="llvm",we.aliases=[];function we(ae){(function(ie){ie.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)}},35049:function(Ke){"use strict";Ke.exports=we,we.displayName="log",we.aliases=[];function we(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:/[\[\].,]/}}},8789:function(Ke){"use strict";Ke.exports=we,we.displayName="lolcode",we.aliases=[];function we(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}|…|,|!/}}},59803:function(Ke){"use strict";Ke.exports=we,we.displayName="lua",we.aliases=[];function we(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:/[\[\](){},;]|\.+|:+/}}},86328:function(Ke){"use strict";Ke.exports=we,we.displayName="magma",we.aliases=[];function we(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:/[()[\]{}<>,;.:]/}}},33055:function(Ke){"use strict";Ke.exports=we,we.displayName="makefile",we.aliases=[];function we(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:/[:;(){}]/}}},90542:function(Ke){"use strict";Ke.exports=we,we.displayName="markdown",we.aliases=["md"];function we(ae){(function(ie){var Pe=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function Fe(Et){return Et=Et.replace(/<inner>/g,function(){return Pe}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+Et+")")}var Oe=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,tt=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return Oe}),Me=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;ie.languages.markdown=ie.languages.extend("markup",{}),ie.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:ie.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+tt+Me+"(?:"+tt+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+tt+Me+")(?:"+tt+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(Oe),inside:ie.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+tt+")"+Me+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+tt+"$"),inside:{"table-header":{pattern:RegExp(Oe),alias:"important",inside:ie.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:Fe(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:Fe(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:Fe(/(~~?)(?:(?!~)<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:Fe(/!?\[(?:(?!\])<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(Et){["url","bold","italic","strike","code-snippet"].forEach(function(rt){Et!==rt&&(ie.languages.markdown[Et].inside.content.inside[rt]=ie.languages.markdown[rt])})}),ie.hooks.add("after-tokenize",function(Et){if(Et.language!=="markdown"&&Et.language!=="md")return;function rt(_t){if(!(!_t||typeof _t=="string"))for(var Ge=0,te=_t.length;Ge<te;Ge++){var ee=_t[Ge];if(ee.type!=="code"){rt(ee.content);continue}var de=ee.content[1],le=ee.content[3];if(de&&le&&de.type==="code-language"&&le.type==="code-block"&&typeof de.content=="string"){var pe=de.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");pe=(/[a-z][\w-]*/i.exec(pe)||[""])[0].toLowerCase();var me="language-"+pe;le.alias?typeof le.alias=="string"?le.alias=[le.alias,me]:le.alias.push(me):le.alias=[me]}}}rt(Et.tokens)}),ie.hooks.add("wrap",function(Et){if(Et.type==="code-block"){for(var rt="",_t=0,Ge=Et.classes.length;_t<Ge;_t++){var te=Et.classes[_t],ee=/language-(.+)/.exec(te);if(ee){rt=ee[1];break}}var de=ie.languages[rt];if(de)Et.content=ie.highlight(lt(Et.content.value),de,rt);else if(rt&&rt!=="none"&&ie.plugins.autoloader){var le="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);Et.attributes.id=le,ie.plugins.autoloader.loadLanguages(rt,function(){var pe=document.getElementById(le);pe&&(pe.innerHTML=ie.highlight(pe.textContent,ie.languages[rt],rt))})}}});var _e=RegExp(ie.languages.markup.tag.pattern.source,"gi"),ut={amp:"&",lt:"<",gt:">",quot:'"'},et=String.fromCodePoint||String.fromCharCode;function lt(Et){var rt=Et.replace(_e,"");return rt=rt.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(_t,Ge){if(Ge=Ge.toLowerCase(),Ge[0]==="#"){var te;return Ge[1]==="x"?te=parseInt(Ge.slice(2),16):te=Number(Ge.slice(1)),et(te)}else{var ee=ut[Ge];return ee||_t}}),rt}ie.languages.md=ie.languages.markdown})(ae)}},93205:function(Ke){"use strict";Ke.exports=we,we.displayName="markupTemplating",we.aliases=[];function we(ae){(function(ie){function Pe(Fe,Oe){return"___"+Fe.toUpperCase()+Oe+"___"}Object.defineProperties(ie.languages["markup-templating"]={},{buildPlaceholders:{value:function(Fe,Oe,tt,Me){if(Fe.language===Oe){var _e=Fe.tokenStack=[];Fe.code=Fe.code.replace(tt,function(ut){if(typeof Me=="function"&&!Me(ut))return ut;for(var et=_e.length,lt;Fe.code.indexOf(lt=Pe(Oe,et))!==-1;)++et;return _e[et]=ut,lt}),Fe.grammar=ie.languages.markup}}},tokenizePlaceholders:{value:function(Fe,Oe){if(Fe.language!==Oe||!Fe.tokenStack)return;Fe.grammar=ie.languages[Oe];var tt=0,Me=Object.keys(Fe.tokenStack);function _e(ut){for(var et=0;et<ut.length&&!(tt>=Me.length);et++){var lt=ut[et];if(typeof lt=="string"||lt.content&&typeof lt.content=="string"){var Et=Me[tt],rt=Fe.tokenStack[Et],_t=typeof lt=="string"?lt:lt.content,Ge=Pe(Oe,Et),te=_t.indexOf(Ge);if(te>-1){++tt;var ee=_t.substring(0,te),de=new ie.Token(Oe,ie.tokenize(rt,Fe.grammar),"language-"+Oe,rt),le=_t.substring(te+Ge.length),pe=[];ee&&pe.push.apply(pe,_e([ee])),pe.push(de),le&&pe.push.apply(pe,_e([le])),typeof lt=="string"?ut.splice.apply(ut,[et,1].concat(pe)):lt.content=pe}}else lt.content&&_e(lt.content)}return ut}_e(Fe.tokens)}}})})(ae)}},2717:function(Ke){"use strict";Ke.exports=we,we.displayName="markup",we.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function we(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(ie){ie.type==="entity"&&(ie.attributes.title=ie.content.value.replace(/&/,"&"))}),Object.defineProperty(ae.languages.markup.tag,"addInlined",{value:function(Pe,Fe){var Oe={};Oe["language-"+Fe]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:ae.languages[Fe]},Oe.cdata=/^<!\[CDATA\[|\]\]>$/i;var tt={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:Oe}};tt["language-"+Fe]={pattern:/[\s\S]+/,inside:ae.languages[Fe]};var Me={};Me[Pe]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return Pe}),"i"),lookbehind:!0,greedy:!0,inside:tt},ae.languages.insertBefore("markup","cdata",Me)}}),Object.defineProperty(ae.languages.markup.tag,"addAttribute",{value:function(ie,Pe){ae.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+ie+")"+/\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}},27992:function(Ke){"use strict";Ke.exports=we,we.displayName="matlab",we.aliases=[];function we(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}|[.,;\[\](){}!]/}}},91115:function(Ke){"use strict";Ke.exports=we,we.displayName="maxscript",we.aliases=[];function we(ae){(function(ie){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;ie.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)}},606:function(Ke){"use strict";Ke.exports=we,we.displayName="mel",we.aliases=[];function we(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}},68582:function(Ke){"use strict";Ke.exports=we,we.displayName="mermaid",we.aliases=[];function we(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:/[(){};]/}}},23388:function(Ke){"use strict";Ke.exports=we,we.displayName="mizar",we.aliases=[];function we(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:/\(#|#\)|[,:;\[\](){}]/}}},90596:function(Ke){"use strict";Ke.exports=we,we.displayName="mongodb",we.aliases=[];function we(ae){(function(ie){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"],Fe=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];Pe=Pe.map(function(tt){return tt.replace("$","\\$")});var Oe="(?:"+Pe.join("|")+")\\b";ie.languages.mongodb=ie.languages.extend("javascript",{}),ie.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(`^(['"])?`+Oe+"(?:\\1)?$")}}}),ie.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}},ie.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+Fe.join("|")+")\\b"),alias:"keyword"}})})(ae)}},95721:function(Ke){"use strict";Ke.exports=we,we.displayName="monkey",we.aliases=[];function we(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:/[.,:;()\[\]]/}}},64262:function(Ke){"use strict";Ke.exports=we,we.displayName="moonscript",we.aliases=["moon"];function we(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}},18190:function(Ke){"use strict";Ke.exports=we,we.displayName="n1ql",we.aliases=[];function we(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:/[;[\](),.{}:]/}}},70896:function(Ke){"use strict";Ke.exports=we,we.displayName="n4js",we.aliases=["n4jsd"];function we(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}},42242:function(Ke){"use strict";Ke.exports=we,we.displayName="nand2tetrisHdl",we.aliases=[];function we(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:/[{}[\];(),:]/}}},37943:function(Ke){"use strict";Ke.exports=we,we.displayName="naniscript",we.aliases=[];function we(ae){(function(ie){var Pe=/\{[^\r\n\[\]{}]*\}/,Fe={"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"}]};ie.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:Fe}}},"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:Fe},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},ie.languages.nani=ie.languages.naniscript,ie.hooks.add("after-tokenize",function(Me){var _e=Me.tokens;_e.forEach(function(ut){if(typeof ut!="string"&&ut.type==="generic-text"){var et=tt(ut);Oe(et)||(ut.type="bad-line",ut.content=et)}})});function Oe(Me){for(var _e="[]{}",ut=[],et=0;et<Me.length;et++){var lt=Me[et],Et=_e.indexOf(lt);if(Et!==-1){if(Et%2===0)ut.push(Et+1);else if(ut.pop()!==Et)return!1}}return ut.length===0}function tt(Me){return typeof Me=="string"?Me:Array.isArray(Me)?Me.map(tt).join(""):tt(Me.content)}})(ae)}},293:function(Ke){"use strict";Ke.exports=we,we.displayName="nasm",we.aliases=[];function we(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:/[\[\]*+\-\/%<>=&|$!]/}}},83873:function(Ke){"use strict";Ke.exports=we,we.displayName="neon",we.aliases=[];function we(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:/[,:=[\]{}()-]/}}},75932:function(Ke){"use strict";Ke.exports=we,we.displayName="nevod",we.aliases=[];function we(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\-.]+/}}},60221:function(Ke){"use strict";Ke.exports=we,we.displayName="nginx",we.aliases=[];function we(ae){(function(ie){var Pe=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;ie.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)}},44188:function(Ke){"use strict";Ke.exports=we,we.displayName="nim",we.aliases=[];function we(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:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}},74426:function(Ke){"use strict";Ke.exports=we,we.displayName="nix",we.aliases=[];function we(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}},88447:function(Ke){"use strict";Ke.exports=we,we.displayName="nsis",we.aliases=[];function we(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}}}},16032:function(Ke,we,ae){"use strict";var ie=ae(65806);Ke.exports=Pe,Pe.displayName="objectivec",Pe.aliases=["objc"];function Pe(Fe){Fe.register(ie),Fe.languages.objectivec=Fe.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 Fe.languages.objectivec["class-name"],Fe.languages.objc=Fe.languages.objectivec}},33607:function(Ke){"use strict";Ke.exports=we,we.displayName="ocaml",we.aliases=[];function we(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/}}},22001:function(Ke,we,ae){"use strict";var ie=ae(65806);Ke.exports=Pe,Pe.displayName="opencl",Pe.aliases=[];function Pe(Fe){Fe.register(ie),function(Oe){Oe.languages.opencl=Oe.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"}}),Oe.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 tt={"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"}};Oe.languages.insertBefore("c","keyword",tt),Oe.languages.cpp&&(tt["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"},Oe.languages.insertBefore("cpp","keyword",tt))}(Fe)}},22950:function(Ke){"use strict";Ke.exports=we,we.displayName="openqasm",we.aliases=["qasm"];function we(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}},23254:function(Ke){"use strict";Ke.exports=we,we.displayName="oz",we.aliases=[];function we(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:/[\[\](){}.:;?]/}}},70558:function(Ke){"use strict";Ke.exports=we,we.displayName="parigp",we.aliases=[];function we(ae){ae.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var ie=["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 ie=ie.map(function(Pe){return Pe.split("").join(" *")}).join("|"),RegExp("\\b(?:"+ie+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}},43273:function(Ke){"use strict";Ke.exports=we,we.displayName="parser",we.aliases=[];function we(ae){(function(ie){var Pe=ie.languages.parser=ie.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=ie.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}}}),ie.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)}},60718:function(Ke){"use strict";Ke.exports=we,we.displayName="pascal",we.aliases=["objectpascal"];function we(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}},39303:function(Ke){"use strict";Ke.exports=we,we.displayName="pascaligo",we.aliases=[];function we(ae){(function(ie){var Pe=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,Fe=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return Pe}),Oe=ie.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 Fe}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return Fe}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return Fe})),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:/\(\.|\.\)|[()\[\]:;,.{}]/},tt=["comment","keyword","builtin","operator","punctuation"].reduce(function(Me,_e){return Me[_e]=Oe[_e],Me},{});Oe["class-name"].forEach(function(Me){Me.inside=tt})})(ae)}},77393:function(Ke){"use strict";Ke.exports=we,we.displayName="pcaxis",we.aliases=["px"];function we(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}},19023:function(Ke){"use strict";Ke.exports=we,we.displayName="peoplecode",we.aliases=["pcode"];function we(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}},74212:function(Ke){"use strict";Ke.exports=we,we.displayName="perl",we.aliases=[];function we(ae){(function(ie){var Pe=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;ie.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)}},5137:function(Ke,we,ae){"use strict";var ie=ae(88262);Ke.exports=Pe,Pe.displayName="phpExtras",Pe.aliases=[];function Pe(Fe){Fe.register(ie),Fe.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:/::|\\/}}})}},88262:function(Ke,we,ae){"use strict";var ie=ae(93205);Ke.exports=Pe,Pe.displayName="php",Pe.aliases=[];function Pe(Fe){Fe.register(ie),function(Oe){var tt=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,Me=[{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*\()/],_e=/\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,ut=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,et=/[{}\[\](),:;]/;Oe.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:tt,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:Me,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:_e,operator:ut,punctuation:et};var lt={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:Oe.languages.php},Et=[{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:lt}},{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:lt}}];Oe.languages.insertBefore("php","variable",{string:Et,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:tt,string:Et,"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:Me,number:_e,operator:ut,punctuation:et}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),Oe.hooks.add("before-tokenize",function(rt){if(/<\?/.test(rt.code)){var _t=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;Oe.languages["markup-templating"].buildPlaceholders(rt,"php",_t)}}),Oe.hooks.add("after-tokenize",function(rt){Oe.languages["markup-templating"].tokenizePlaceholders(rt,"php")})}(Fe)}},63632:function(Ke,we,ae){"use strict";var ie=ae(88262),Pe=ae(9858);Ke.exports=Fe,Fe.displayName="phpdoc",Fe.aliases=[];function Fe(Oe){Oe.register(ie),Oe.register(Pe),function(tt){var Me=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;tt.languages.phpdoc=tt.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+Me+"\\s+)?)\\$\\w+"),lookbehind:!0}}),tt.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+Me),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),tt.languages.javadoclike.addSupport("php",tt.languages.phpdoc)}(Oe)}},59149:function(Ke,we,ae){"use strict";var ie=ae(11114);Ke.exports=Pe,Pe.displayName="plsql",Pe.aliases=[];function Pe(Fe){Fe.register(ie),Fe.languages.plsql=Fe.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:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),Fe.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}},50256:function(Ke){"use strict";Ke.exports=we,we.displayName="powerquery",we.aliases=[];function we(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}},61777:function(Ke){"use strict";Ke.exports=we,we.displayName="powershell",we.aliases=[];function we(ae){(function(ie){var Pe=ie.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)}},3623:function(Ke){"use strict";Ke.exports=we,we.displayName="processing",we.aliases=[];function we(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"}})}},82707:function(Ke){"use strict";Ke.exports=we,we.displayName="prolog",we.aliases=[];function we(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:/[(){}\[\],]/}}},59338:function(Ke){"use strict";Ke.exports=we,we.displayName="promql",we.aliases=[];function we(ae){(function(ie){var Pe=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],Fe=["on","ignoring","group_right","group_left","by","without"],Oe=["offset"],tt=Pe.concat(Fe,Oe);ie.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+Fe.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(?:"+tt.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)}},56267:function(Ke){"use strict";Ke.exports=we,we.displayName="properties",we.aliases=[];function we(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:/[=:]/}}},98809:function(Ke){"use strict";Ke.exports=we,we.displayName="protobuf",we.aliases=[];function we(ae){(function(ie){var Pe=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;ie.languages.protobuf=ie.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}),ie.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)}},37548:function(Ke){"use strict";Ke.exports=we,we.displayName="psl",we.aliases=[];function we(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:/[(){}\[\];,]/}}},82161:function(Ke){"use strict";Ke.exports=we,we.displayName="pug",we.aliases=[];function we(ae){(function(ie){ie.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:ie.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:ie.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:ie.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:ie.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:ie.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:ie.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:ie.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:ie.languages.javascript}],punctuation:/[.\-!=|]+/};for(var Pe=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,Fe=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],Oe={},tt=0,Me=Fe.length;tt<Me;tt++){var _e=Fe[tt];_e=typeof _e=="string"?{filter:_e,language:_e}:_e,ie.languages[_e.language]&&(Oe["filter-"+_e.filter]={pattern:RegExp(Pe.replace("<filter_name>",function(){return _e.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[_e.language,"language-"+_e.language],inside:ie.languages[_e.language]}}})}ie.languages.insertBefore("pug","filter",Oe)})(ae)}},80625:function(Ke){"use strict";Ke.exports=we,we.displayName="puppet",we.aliases=[];function we(ae){(function(ie){ie.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:ie.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];ie.languages.puppet.heredoc[0].inside.interpolation=Pe,ie.languages.puppet.string.inside["double-quoted"].inside.interpolation=Pe})(ae)}},88393:function(Ke){"use strict";Ke.exports=we,we.displayName="pure",we.aliases=[];function we(ae){(function(ie){ie.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"],Fe=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;Pe.forEach(function(Oe){var tt=Oe;if(typeof Oe!="string"&&(tt=Oe.alias,Oe=Oe.lang),ie.languages[tt]){var Me={};Me["inline-lang-"+tt]={pattern:RegExp(Fe.replace("<lang>",Oe.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:ie.util.clone(ie.languages.pure["inline-lang"].inside)},Me["inline-lang-"+tt].inside.rest=ie.util.clone(ie.languages[tt]),ie.languages.insertBefore("pure","inline-lang",Me)}}),ie.languages.c&&(ie.languages.pure["inline-lang"].inside.rest=ie.util.clone(ie.languages.c))})(ae)}},78404:function(Ke){"use strict";Ke.exports=we,we.displayName="purebasic",we.aliases=[];function we(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}},92923:function(Ke,we,ae){"use strict";var ie=ae(58090);Ke.exports=Pe,Pe.displayName="purescript",Pe.aliases=["purs"];function Pe(Fe){Fe.register(ie),Fe.languages.purescript=Fe.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:[Fe.languages.haskell.operator[0],Fe.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]/]}),Fe.languages.purs=Fe.languages.purescript}},52992:function(Ke){"use strict";Ke.exports=we,we.displayName="python",we.aliases=["py"];function we(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://,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}},55762:function(Ke){"use strict";Ke.exports=we,we.displayName="q",we.aliases=[];function we(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:/[(){}\[\];.]/}}},4137:function(Ke){"use strict";Ke.exports=we,we.displayName="qml",we.aliases=[];function we(ae){(function(ie){for(var Pe=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,Fe=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,Oe=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return Pe}).replace(/<comment>/g,function(){return Fe}),tt=0;tt<2;tt++)Oe=Oe.replace(/<expr>/g,function(){return Oe});Oe=Oe.replace(/<expr>/g,"[^\\s\\S]"),ie.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 Oe}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:ie.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 Oe}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:ie.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(ae)}},28260:function(Ke){"use strict";Ke.exports=we,we.displayName="qore",we.aliases=[];function we(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/})}},71360:function(Ke){"use strict";Ke.exports=we,we.displayName="qsharp",we.aliases=["qs"];function we(ae){(function(ie){function Pe(_t,Ge){return _t.replace(/<<(\d+)>>/g,function(te,ee){return"(?:"+Ge[+ee]+")"})}function Fe(_t,Ge,te){return RegExp(Pe(_t,Ge),te||"")}function Oe(_t,Ge){for(var te=0;te<Ge;te++)_t=_t.replace(/<<self>>/g,function(){return"(?:"+_t+")"});return _t.replace(/<<self>>/g,"[^\\s\\S]")}var tt={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 Me(_t){return"\\b(?:"+_t.trim().replace(/ /g,"|")+")\\b"}var _e=RegExp(Me(tt.type+" "+tt.other)),ut=/\b[A-Za-z_]\w*\b/.source,et=Pe(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[ut]),lt={keyword:_e,punctuation:/[<>()?,.:[\]]/},Et=/"(?:\\.|[^\\"])*"/.source;ie.languages.qsharp=ie.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:Fe(/(^|[^$\\])<<0>>/.source,[Et]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:Fe(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[et]),lookbehind:!0,inside:lt},{pattern:Fe(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[et]),lookbehind:!0,inside:lt}],keyword:_e,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:/::|[{}[\];(),.:]/}),ie.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var rt=Oe(Pe(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[Et]),2);ie.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:Fe(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[rt]),greedy:!0,inside:{interpolation:{pattern:Fe(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[rt]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:ie.languages.qsharp}}},string:/[\s\S]+/}}})})(ae),ae.languages.qs=ae.languages.qsharp}},29308:function(Ke){"use strict";Ke.exports=we,we.displayName="r",we.aliases=[];function we(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:/[(){}\[\],;]/}}},32168:function(Ke,we,ae){"use strict";var ie=ae(9997);Ke.exports=Pe,Pe.displayName="racket",Pe.aliases=["rkt"];function Pe(Fe){Fe.register(ie),Fe.languages.racket=Fe.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),Fe.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),Fe.languages.rkt=Fe.languages.racket}},5755:function(Ke){"use strict";Ke.exports=we,we.displayName="reason",we.aliases=[];function we(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}},54105:function(Ke){"use strict";Ke.exports=we,we.displayName="regex",we.aliases=[];function we(ae){(function(ie){var Pe={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},Fe=/\\(?: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]|.)/,Oe={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},tt={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},Me="(?:[^\\\\-]|"+Fe.source+")",_e=RegExp(Me+"-"+Me),ut={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};ie.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:_e,inside:{escape:Fe,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":Pe,"char-set":tt,escape:Fe}},"special-escape":Pe,"char-set":Oe,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":ut}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:Fe,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":ut}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(ae)}},93503:function(Ke){"use strict";Ke.exports=we,we.displayName="rego",we.aliases=[];function we(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:/[,;.\[\]{}()]/}}},35108:function(Ke){"use strict";Ke.exports=we,we.displayName="renpy",we.aliases=["rpy"];function we(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}},46678:function(Ke){"use strict";Ke.exports=we,we.displayName="rest",we.aliases=[];function we(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}}}},47496:function(Ke){"use strict";Ke.exports=we,we.displayName="rip",we.aliases=[];function we(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`'",.:;#\/\\()<>\[\]{}]*/}}},30527:function(Ke){"use strict";Ke.exports=we,we.displayName="roboconf",we.aliases=[];function we(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:/[{},.;:=]/}}},5261:function(Ke){"use strict";Ke.exports=we,we.displayName="robotframework",we.aliases=[];function we(ae){(function(ie){var Pe={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},Fe={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function Oe(ut,et){var lt={};lt["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var Et in et)lt[Et]=et[Et];return lt.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},lt.variable=Fe,lt.comment=Pe,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return ut}),"im"),alias:"section",inside:lt}}var tt={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},Me={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:Fe}},_e={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:Fe}};ie.languages.robotframework={settings:Oe("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:Oe("Variables"),"test-cases":Oe("Test Cases",{"test-name":Me,documentation:tt,property:_e}),keywords:Oe("Keywords",{"keyword-name":Me,documentation:tt,property:_e}),tasks:Oe("Tasks",{"task-name":Me,documentation:tt,property:_e}),comment:Pe},ie.languages.robot=ie.languages.robotframework})(ae)}},56939:function(Ke){"use strict";Ke.exports=we,we.displayName="ruby",we.aliases=["rb"];function we(ae){(function(ie){ie.languages.ruby=ie.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:/[(){}[\].,;]/}),ie.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var Pe={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:ie.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete ie.languages.ruby.function;var Fe="(?:"+[/([^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("|")+")",Oe=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;ie.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+Fe+/[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+Oe),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+Oe+/(?=:(?!:))/.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:/\./}}}),ie.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+Fe),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+Fe),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 ie.languages.ruby.string,ie.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)/}),ie.languages.rb=ie.languages.ruby})(ae)}},83648:function(Ke){"use strict";Ke.exports=we,we.displayName="rust",we.aliases=[];function we(ae){(function(ie){for(var Pe=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,Fe=0;Fe<2;Fe++)Pe=Pe.replace(/<self>/g,function(){return Pe});Pe=Pe.replace(/<self>/g,function(){return/[^\s\S]/.source}),ie.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:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},ie.languages.rust["closure-params"].inside.rest=ie.languages.rust,ie.languages.rust.attribute.inside.string=ie.languages.rust.string})(ae)}},16009:function(Ke){"use strict";Ke.exports=we,we.displayName="sas",we.aliases=[];function we(ae){(function(ie){var Pe=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,Fe=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,Oe={pattern:RegExp(Pe+"[bx]"),alias:"number"},tt={pattern:/&[a-z_]\w*/i},Me={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"},_e={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},ut=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],et={pattern:RegExp(Pe),greedy:!0},lt=/[$%@.(){}\[\];,\\]/,Et={pattern:/%?\b\w+(?=\()/,alias:"keyword"},rt={function:Et,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":tt,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:Fe,"numeric-constant":Oe,punctuation:lt,string:et},_t={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},Ge={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"},de=/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,le={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return de}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return de}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:ut,function:Et,"arg-value":rt["arg-value"],operator:rt.operator,argument:rt.arg,number:Fe,"numeric-constant":Oe,punctuation:lt,string:et}},pe={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};ie.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:ie.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:Fe,"numeric-constant":Oe,punctuation:lt,string:et}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:ut,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:ie.languages.groovy},keyword:pe,"submit-statement":ee,"global-statements":te,number:Fe,"numeric-constant":Oe,punctuation:lt,string:et}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:ut,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:ie.languages.lua},keyword:pe,"submit-statement":ee,"global-statements":te,number:Fe,"numeric-constant":Oe,punctuation:lt,string:et}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:ut,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:rt}},"cas-actions":le,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:rt},step:_e,keyword:pe,function:Et,format:_t,altformat:Ge,"global-statements":te,number:Fe,"numeric-constant":Oe,punctuation:lt,string:et}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return Pe}),"im"),lookbehind:!0,inside:rt},"macro-keyword":Me,"macro-variable":tt,"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":Me,"macro-variable":tt,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:lt}},"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:ut,number:Fe,"numeric-constant":Oe}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:rt},"cas-actions":le,comment:ut,function:Et,format:_t,altformat:Ge,"numeric-constant":Oe,datetime:{pattern:RegExp(Pe+"(?:dt?|t)"),alias:"number"},string:et,step:_e,keyword:pe,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:Fe,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:lt}})(ae)}},41720:function(Ke){"use strict";Ke.exports=we,we.displayName="sass",we.aliases=[];function we(ae){(function(ie){ie.languages.sass=ie.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),ie.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete ie.languages.sass.atrule;var Pe=/\$[-\w]+|#\{\$[-\w]+\}/,Fe=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];ie.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:Pe,operator:Fe}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:Pe,operator:Fe,important:ie.languages.sass.important}}}),delete ie.languages.sass.property,delete ie.languages.sass.important,ie.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)}},6054:function(Ke,we,ae){"use strict";var ie=ae(15909);Ke.exports=Pe,Pe.displayName="scala",Pe.aliases=[];function Pe(Fe){Fe.register(ie),Fe.languages.scala=Fe.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*/}),Fe.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:Fe.languages.scala}}},string:/[\s\S]+/}}}),delete Fe.languages.scala["class-name"],delete Fe.languages.scala.function}},9997:function(Ke){"use strict";Ke.exports=we,we.displayName="scheme",we.aliases=[];function we(ae){(function(ie){ie.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(Fe){for(var Oe in Fe)Fe[Oe]=Fe[Oe].replace(/<[\w\s]+>/g,function(tt){return"(?:"+Fe[tt].trim()+")"});return Fe[Oe]}})(ae)}},24296:function(Ke){"use strict";Ke.exports=we,we.displayName="scss",we.aliases=[];function we(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}},49246:function(Ke,we,ae){"use strict";var ie=ae(6979);Ke.exports=Pe,Pe.displayName="shellSession",Pe.aliases=[];function Pe(Fe){Fe.register(ie),function(Oe){var tt=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");Oe.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 tt}),"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:Oe.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},Oe.languages["sh-session"]=Oe.languages.shellsession=Oe.languages["shell-session"]}(Fe)}},18890:function(Ke){"use strict";Ke.exports=we,we.displayName="smali",we.aliases=[];function we(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:/[{}(),;:]/}}},11037:function(Ke){"use strict";Ke.exports=we,we.displayName="smalltalk",we.aliases=[];function we(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:/[.;:?\[\](){}]/}}},64020:function(Ke,we,ae){"use strict";var ie=ae(93205);Ke.exports=Pe,Pe.displayName="smarty",Pe.aliases=[];function Pe(Fe){Fe.register(ie),function(Oe){Oe.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:Oe.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/]},Oe.languages.smarty["embedded-php"].inside.smarty.inside=Oe.languages.smarty,Oe.languages.smarty.string[0].inside.interpolation.inside.expression.inside=Oe.languages.smarty;var tt=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,Me=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return tt.source}),"g");Oe.hooks.add("before-tokenize",function(_e){var ut="{literal}",et="{/literal}",lt=!1;Oe.languages["markup-templating"].buildPlaceholders(_e,"smarty",Me,function(Et){return Et===et&&(lt=!1),lt?!1:(Et===ut&&(lt=!0),!0)})}),Oe.hooks.add("after-tokenize",function(_e){Oe.languages["markup-templating"].tokenizePlaceholders(_e,"smarty")})}(Fe)}},49760:function(Ke){"use strict";Ke.exports=we,we.displayName="sml",we.aliases=["smlnj"];function we(ae){(function(ie){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;ie.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:/[(){}\[\].:,;]/},ie.languages.sml["class-name"][0].inside=ie.languages.sml,ie.languages.smlnj=ie.languages.sml})(ae)}},33351:function(Ke){"use strict";Ke.exports=we,we.displayName="solidity",we.aliases=["sol"];function we(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}},13570:function(Ke){"use strict";Ke.exports=we,we.displayName="solutionFile",we.aliases=[];function we(ae){(function(ie){var Pe={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};ie.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:/[(),]/},ie.languages.sln=ie.languages["solution-file"]})(ae)}},38181:function(Ke,we,ae){"use strict";var ie=ae(93205);Ke.exports=Pe,Pe.displayName="soy",Pe.aliases=[];function Pe(Fe){Fe.register(ie),function(Oe){var tt=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,Me=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;Oe.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:tt,greedy:!0},number:Me,punctuation:/[\[\].?]/}},string:{pattern:tt,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:Me,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},Oe.hooks.add("before-tokenize",function(_e){var ut=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,et="{literal}",lt="{/literal}",Et=!1;Oe.languages["markup-templating"].buildPlaceholders(_e,"soy",ut,function(rt){return rt===lt&&(Et=!1),Et?!1:(rt===et&&(Et=!0),!0)})}),Oe.hooks.add("after-tokenize",function(_e){Oe.languages["markup-templating"].tokenizePlaceholders(_e,"soy")})}(Fe)}},98774:function(Ke,we,ae){"use strict";var ie=ae(24691);Ke.exports=Pe,Pe.displayName="sparql",Pe.aliases=["rq"];function Pe(Fe){Fe.register(ie),Fe.languages.sparql=Fe.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),Fe.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]}),Fe.languages.rq=Fe.languages.sparql}},22855:function(Ke){"use strict";Ke.exports=we,we.displayName="splunkSpl",we.aliases=[];function we(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:/[()[\],]/}}},29611:function(Ke){"use strict";Ke.exports=we,we.displayName="sqf",we.aliases=[];function we(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"]}},11114:function(Ke){"use strict";Ke.exports=we,we.displayName="sql",we.aliases=[];function we(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:/[;[\]()`,.]/}}},67386:function(Ke){"use strict";Ke.exports=we,we.displayName="squirrel",we.aliases=[];function we(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"}})}},28067:function(Ke){"use strict";Ke.exports=we,we.displayName="stan",we.aliases=[];function we(ae){(function(ie){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/;ie.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:/[()\[\]{},;]/},ie.languages.stan.constraint.inside.expression.inside=ie.languages.stan})(ae)}},49168:function(Ke){"use strict";Ke.exports=we,we.displayName="stylus",we.aliases=[];function we(ae){(function(ie){var Pe={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},Fe={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},Oe={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:Fe,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:Fe,punctuation:/[{}()\[\];:,]/};Oe.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:Oe}},Oe.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:Oe}},ie.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:Oe}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:Oe}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:Oe}},"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:Oe.interpolation}},rest:Oe}},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:Oe.interpolation,comment:Oe.comment,punctuation:/[{},]/}},func:Oe.func,string:Oe.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:Oe.interpolation,punctuation:/[{}()\[\];:.]/}})(ae)}},23651:function(Ke){"use strict";Ke.exports=we,we.displayName="swift",we.aliases=[];function we(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(ie){ie.inside.interpolation.inside=ae.languages.swift})}},21483:function(Ke){"use strict";Ke.exports=we,we.displayName="systemd",we.aliases=[];function we(ae){(function(ie){var Pe={pattern:/^[;#].*/m,greedy:!0},Fe=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;ie.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+"(?:"+Fe+`|(?=[^"\r
|
|
|
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+Fe+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:Pe,quoted:{pattern:RegExp(/(^|\s)/.source+Fe),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(ae)}},32268:function(Ke,we,ae){"use strict";var ie=ae(2329),Pe=ae(61958);Ke.exports=Fe,Fe.displayName="t4Cs",Fe.aliases=[];function Fe(Oe){Oe.register(ie),Oe.register(Pe),Oe.languages.t4=Oe.languages["t4-cs"]=Oe.languages["t4-templating"].createT4("csharp")}},2329:function(Ke){"use strict";Ke.exports=we,we.displayName="t4Templating",we.aliases=[];function we(ae){(function(ie){function Pe(Oe,tt,Me){return{pattern:RegExp("<#"+Oe+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+Oe+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:tt,alias:Me}}}}function Fe(Oe){var tt=ie.languages[Oe],Me="language-"+Oe;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("=",tt,Me),"class-feature":Pe("\\+",tt,Me),standard:Pe("",tt,Me)}}}}ie.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:Fe})})(ae)}},82996:function(Ke,we,ae){"use strict";var ie=ae(2329),Pe=ae(53813);Ke.exports=Fe,Fe.displayName="t4Vb",Fe.aliases=[];function Fe(Oe){Oe.register(ie),Oe.register(Pe),Oe.languages["t4-vb"]=Oe.languages["t4-templating"].createT4("vbnet")}},17290:function(Ke,we,ae){"use strict";var ie=ae(65039);Ke.exports=Pe,Pe.displayName="tap",Pe.aliases=[];function Pe(Fe){Fe.register(ie),Fe.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:Fe.languages.yaml,alias:"language-yaml"}}}},67989:function(Ke){"use strict";Ke.exports=we,we.displayName="tcl",we.aliases=[];function we(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:/[{}()\[\]]/}}},31065:function(Ke){"use strict";Ke.exports=we,we.displayName="textile",we.aliases=[];function we(ae){(function(ie){var Pe=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,Fe=/\)|\((?![^|()\n]+\))/.source;function Oe(Et,rt){return RegExp(Et.replace(/<MOD>/g,function(){return"(?:"+Pe+")"}).replace(/<PAR>/g,function(){return"(?:"+Fe+")"}),rt||"")}var tt={css:{pattern:/\{[^{}]+\}/,inside:{rest:ie.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},Me=ie.languages.textile=ie.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:Oe(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:Oe(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:tt},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:Oe(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:Oe(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:tt},punctuation:/^[*#]+/}},table:{pattern:Oe(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:Oe(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:tt},punctuation:/\||^\./}},inline:{pattern:Oe(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:Oe(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:Oe(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:Oe(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:Oe(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:Oe(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:Oe(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:Oe(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:Oe(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:tt},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:Oe(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:Oe(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:Oe(/(^")<MOD>+/.source),lookbehind:!0,inside:tt},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:Oe(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:Oe(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:Oe(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:tt},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:/[()]/}}}}}),_e=Me.phrase.inside,ut={inline:_e.inline,link:_e.link,image:_e.image,footnote:_e.footnote,acronym:_e.acronym,mark:_e.mark};Me.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var et=_e.inline.inside;et.bold.inside=ut,et.italic.inside=ut,et.inserted.inside=ut,et.deleted.inside=ut,et.span.inside=ut;var lt=_e.table.inside;lt.inline=ut.inline,lt.link=ut.link,lt.image=ut.image,lt.footnote=ut.footnote,lt.acronym=ut.acronym,lt.mark=ut.mark})(ae)}},85572:function(Ke){"use strict";Ke.exports=we,we.displayName="toml",we.aliases=[];function we(ae){(function(ie){var Pe=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function Fe(Oe){return Oe.replace(/__/g,function(){return Pe})}ie.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(Fe(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(Fe(/(^[\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)}},27536:function(Ke){"use strict";Ke.exports=we,we.displayName="tremor",we.aliases=[];function we(ae){(function(ie){ie.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;ie.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:ie.languages.tremor}}},string:/[\s\S]+/}},ie.languages.troy=ie.languages.tremor,ie.languages.trickle=ie.languages.tremor})(ae)}},87041:function(Ke,we,ae){"use strict";var ie=ae(96412),Pe=ae(4979);Ke.exports=Fe,Fe.displayName="tsx",Fe.aliases=[];function Fe(Oe){Oe.register(ie),Oe.register(Pe),function(tt){var Me=tt.util.clone(tt.languages.typescript);tt.languages.tsx=tt.languages.extend("jsx",Me),delete tt.languages.tsx.parameter,delete tt.languages.tsx["literal-property"];var _e=tt.languages.tsx.tag;_e.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+_e.pattern.source+")",_e.pattern.flags),_e.lookbehind=!0}(Oe)}},61028:function(Ke,we,ae){"use strict";var ie=ae(93205);Ke.exports=Pe,Pe.displayName="tt2",Pe.aliases=[];function Pe(Fe){Fe.register(ie),function(Oe){Oe.languages.tt2=Oe.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:/[[\]{},()]/}),Oe.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),Oe.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),Oe.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 Oe.languages.tt2.string,Oe.hooks.add("before-tokenize",function(tt){var Me=/\[%[\s\S]+?%\]/g;Oe.languages["markup-templating"].buildPlaceholders(tt,"tt2",Me)}),Oe.hooks.add("after-tokenize",function(tt){Oe.languages["markup-templating"].tokenizePlaceholders(tt,"tt2")})}(Fe)}},24691:function(Ke){"use strict";Ke.exports=we,we.displayName="turtle",we.aliases=[];function we(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}},19892:function(Ke,we,ae){"use strict";var ie=ae(93205);Ke.exports=Pe,Pe.displayName="twig",Pe.aliases=[];function Pe(Fe){Fe.register(ie),Fe.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:/[()\[\]{}:.,]/},Fe.hooks.add("before-tokenize",function(Oe){if(Oe.language==="twig"){var tt=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;Fe.languages["markup-templating"].buildPlaceholders(Oe,"twig",tt)}}),Fe.hooks.add("after-tokenize",function(Oe){Fe.languages["markup-templating"].tokenizePlaceholders(Oe,"twig")})}},4979:function(Ke){"use strict";Ke.exports=we,we.displayName="typescript",we.aliases=["ts"];function we(ae){(function(ie){ie.languages.typescript=ie.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/}),ie.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 ie.languages.typescript.parameter,delete ie.languages.typescript["literal-property"];var Pe=ie.languages.extend("typescript",{});delete Pe["class-name"],ie.languages.typescript["class-name"].inside=Pe,ie.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}}}}),ie.languages.ts=ie.languages.typescript})(ae)}},23159:function(Ke){"use strict";Ke.exports=we,we.displayName="typoscript",we.aliases=["tsconfig"];function we(ae){(function(ie){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/;ie.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:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},ie.languages.tsconfig=ie.languages.typoscript})(ae)}},34966:function(Ke){"use strict";Ke.exports=we,we.displayName="unrealscript",we.aliases=["uc","uscript"];function we(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}},44623:function(Ke){"use strict";Ke.exports=we,we.displayName="uorazor",we.aliases=[];function we(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:/[()\[\]{}:.,]/}}},38521:function(Ke){"use strict";Ke.exports=we,we.displayName="uri",we.aliases=["url"];function we(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}},7255:function(Ke){"use strict";Ke.exports=we,we.displayName="v",we.aliases=[];function we(ae){(function(ie){var Pe={pattern:/[\s\S]+/,inside:null};ie.languages.v=ie.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=ie.languages.v,ie.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),ie.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+/}}}),ie.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:ie.languages.v.generic.inside}}}})})(ae)}},28173:function(Ke){"use strict";Ke.exports=we,we.displayName="vala",we.aliases=[];function we(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]+$/}}})}},53813:function(Ke,we,ae){"use strict";var ie=ae(46241);Ke.exports=Pe,Pe.displayName="vbnet",Pe.aliases=[];function Pe(Fe){Fe.register(ie),Fe.languages.vbnet=Fe.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:/[,;:(){}]/})}},46891:function(Ke){"use strict";Ke.exports=we,we.displayName="velocity",we.aliases=[];function we(ae){(function(ie){ie.languages.velocity=ie.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},ie.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}),ie.languages.velocity.tag.inside["attr-value"].inside.rest=ie.languages.velocity})(ae)}},91824:function(Ke){"use strict";Ke.exports=we,we.displayName="verilog",we.aliases=[];function we(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:/[[\];(),.:]/}}},9447:function(Ke){"use strict";Ke.exports=we,we.displayName="vhdl",we.aliases=[];function we(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:/[{}[\];(),.:]/}}},53062:function(Ke){"use strict";Ke.exports=we,we.displayName="vim",we.aliases=[];function we(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:/[{}[\](),;:]/}}},46215:function(Ke){"use strict";Ke.exports=we,we.displayName="visualBasic",we.aliases=[];function we(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"]}},10784:function(Ke){"use strict";Ke.exports=we,we.displayName="warpscript",we.aliases=[];function we(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/}}},17684:function(Ke){"use strict";Ke.exports=we,we.displayName="wasm",we.aliases=[];function we(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:/[()]/}}},64851:function(Ke){"use strict";Ke.exports=we,we.displayName="webIdl",we.aliases=[];function we(ae){(function(ie){var Pe=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,Fe="(?:"+/\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,Oe={};ie.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:Oe},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+Fe),lookbehind:!0,inside:Oe},{pattern:RegExp("("+/\bcallback\s+/.source+Pe+/\s*=\s*/.source+")"+Fe),lookbehind:!0,inside:Oe},{pattern:RegExp(/(\btypedef\b\s*)/.source+Fe),lookbehind:!0,inside:Oe},{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(Fe+"(?="+/\s*(?:\.{3}\s*)?/.source+Pe+/\s*[(),;=]/.source+")"),inside:Oe}],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 tt in ie.languages["web-idl"])tt!=="class-name"&&(Oe[tt]=ie.languages["web-idl"][tt]);ie.languages.webidl=ie.languages["web-idl"]})(ae)}},18191:function(Ke){"use strict";Ke.exports=we,we.displayName="wiki",we.aliases=[];function we(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}}}})}},75242:function(Ke){"use strict";Ke.exports=we,we.displayName="wolfram",we.aliases=["mathematica","wl","nb"];function we(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}},93639:function(Ke){"use strict";Ke.exports=we,we.displayName="wren",we.aliases=[];function we(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]+/}}}},97202:function(Ke){"use strict";Ke.exports=we,we.displayName="xeora",we.aliases=["xeoracube"];function we(ae){(function(ie){ie.languages.xeora=ie.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"}}),ie.languages.insertBefore("inside","punctuation",{variable:ie.languages.xeora["function-inline"].inside.variable},ie.languages.xeora["function-block"]),ie.languages.xeoracube=ie.languages.xeora})(ae)}},13808:function(Ke){"use strict";Ke.exports=we,we.displayName="xmlDoc",we.aliases=[];function we(ae){(function(ie){function Pe(Me,_e){ie.languages[Me]&&ie.languages.insertBefore(Me,"comment",{"doc-comment":_e})}var Fe=ie.languages.markup.tag,Oe={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:Fe}},tt={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:Fe}};Pe("csharp",Oe),Pe("fsharp",Oe),Pe("vbnet",tt)})(ae)}},21301:function(Ke){"use strict";Ke.exports=we,we.displayName="xojo",we.aliases=[];function we(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:/[.,;:()]/}}},20349:function(Ke){"use strict";Ke.exports=we,we.displayName="xquery",we.aliases=[];function we(ae){(function(ie){ie.languages.xquery=ie.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:/[[\](){},;:/]/}),ie.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,ie.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,ie.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,ie.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:ie.languages.xquery,alias:"language-xquery"};var Pe=function(Oe){return typeof Oe=="string"?Oe:typeof Oe.content=="string"?Oe.content:Oe.content.map(Pe).join("")},Fe=function(Oe){for(var tt=[],Me=0;Me<Oe.length;Me++){var _e=Oe[Me],ut=!1;if(typeof _e!="string"&&(_e.type==="tag"&&_e.content[0]&&_e.content[0].type==="tag"?_e.content[0].content[0].content==="</"?tt.length>0&&tt[tt.length-1].tagName===Pe(_e.content[0].content[1])&&tt.pop():_e.content[_e.content.length-1].content==="/>"||tt.push({tagName:Pe(_e.content[0].content[1]),openedBraces:0}):tt.length>0&&_e.type==="punctuation"&&_e.content==="{"&&(!Oe[Me+1]||Oe[Me+1].type!=="punctuation"||Oe[Me+1].content!=="{")&&(!Oe[Me-1]||Oe[Me-1].type!=="plain-text"||Oe[Me-1].content!=="{")?tt[tt.length-1].openedBraces++:tt.length>0&&tt[tt.length-1].openedBraces>0&&_e.type==="punctuation"&&_e.content==="}"?tt[tt.length-1].openedBraces--:_e.type!=="comment"&&(ut=!0)),(ut||typeof _e=="string")&&tt.length>0&&tt[tt.length-1].openedBraces===0){var et=Pe(_e);Me<Oe.length-1&&(typeof Oe[Me+1]=="string"||Oe[Me+1].type==="plain-text")&&(et+=Pe(Oe[Me+1]),Oe.splice(Me+1,1)),Me>0&&(typeof Oe[Me-1]=="string"||Oe[Me-1].type==="plain-text")&&(et=Pe(Oe[Me-1])+et,Oe.splice(Me-1,1),Me--),/^\s+$/.test(et)?Oe[Me]=et:Oe[Me]=new ie.Token("plain-text",et,null,et)}_e.content&&typeof _e.content!="string"&&Fe(_e.content)}};ie.hooks.add("after-tokenize",function(Oe){Oe.language==="xquery"&&Fe(Oe.tokens)})})(ae)}},65039:function(Ke){"use strict";Ke.exports=we,we.displayName="yaml",we.aliases=["yml"];function we(ae){(function(ie){var Pe=/[*&][^\s[\]{},]+/,Fe=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,Oe="(?:"+Fe.source+"(?:[ ]+"+Pe.source+")?|"+Pe.source+"(?:[ ]+"+Fe.source+")?)",tt=/(?:[^\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}),Me=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function _e(ut,et){et=(et||"").replace(/m/g,"")+"m";var lt=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return Oe}).replace(/<<value>>/g,function(){return ut});return RegExp(lt,et)}ie.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 Oe})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return Oe}).replace(/<<key>>/g,function(){return"(?:"+tt+"|"+Me+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:_e(/\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:_e(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:_e(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:_e(Me),lookbehind:!0,greedy:!0},number:{pattern:_e(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:Fe,important:Pe,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},ie.languages.yml=ie.languages.yaml})(ae)}},96319:function(Ke){"use strict";Ke.exports=we,we.displayName="yang",we.aliases=[];function we(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:/[{};:]/}}},31501:function(Ke){"use strict";Ke.exports=we,we.displayName="zig",we.aliases=[];function we(ae){(function(ie){function Pe(et){return function(){return et}}var Fe=/\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/,Oe="\\b(?!"+Fe.source+")(?!\\d)\\w+\\b",tt=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,Me=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,Pe(tt)),_e=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,Pe(Oe)),ut="(?!\\s)(?:!?\\s*(?:"+Me+"\\s*)*"+_e+")+";ie.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(ut)).replace(/<ALIGN>/g,Pe(tt))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,Pe(ut)).replace(/<ALIGN>/g,Pe(tt))),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:Fe,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:/[.:,;(){}[\]]/},ie.languages.zig["class-name"].forEach(function(et){et.inside===null&&(et.inside=ie.languages.zig)})})(ae)}},97003:function(Ke,we){"use strict";var ae;we.Q=Oe,ae=tt;var ie=",",Pe=" ",Fe="";function Oe(Me){for(var _e=[],ut=String(Me||Fe),et=ut.indexOf(ie),lt=0,Et=!1,rt;!Et;)et===-1&&(et=ut.length,Et=!0),rt=ut.slice(lt,et).trim(),(rt||!Et)&&_e.push(rt),lt=et+1,et=ut.indexOf(ie,lt);return _e}function tt(Me,_e){var ut=_e||{},et=ut.padLeft===!1?Fe:Pe,lt=ut.padRight?Pe:Fe;return Me[Me.length-1]===Fe&&(Me=Me.concat(Fe)),Me.join(lt+ie+et).trim()}},34995:function(Ke){"use strict";Ke.exports=ae;var we=/[#.]/g;function ae(ie,Pe){for(var Fe=ie||"",Oe=Pe||"div",tt={},Me=0,_e,ut,et;Me<Fe.length;)we.lastIndex=Me,et=we.exec(Fe),_e=Fe.slice(Me,et?et.index:Fe.length),_e&&(ut?ut==="#"?tt.id=_e:tt.className?tt.className.push(_e):tt.className=[_e]:Oe=_e,Me+=_e.length),et&&(ut=et[0],Me++);return{type:"element",tagName:Oe,properties:tt,children:[]}}},6509:function(Ke,we,ae){"use strict";var ie=ae(65605),Pe=ae(33343),Fe=ae(34995),Oe=ae(42749).Q,tt=ae(97003).Q;Ke.exports=_e;var Me={}.hasOwnProperty;function _e(te,ee,de){var le=de?Ge(de):null;return pe;function pe(xe,be){var Be=Fe(xe,ee),at=Array.prototype.slice.call(arguments,2),dt=Be.tagName.toLowerCase(),gt;if(Be.tagName=le&&Me.call(le,dt)?le[dt]:dt,be&&ut(be,Be)&&(at.unshift(be),be=null),be)for(gt in be)me(Be.properties,gt,be[gt]);return lt(Be.children,at),Be.tagName==="template"&&(Be.content={type:"root",children:Be.children},Be.children=[]),Be}function me(xe,be,Be){var at,dt,gt;Be==null||Be!==Be||(at=ie(te,be),dt=at.property,gt=Be,typeof gt=="string"&&(at.spaceSeparated?gt=Oe(gt):at.commaSeparated?gt=tt(gt):at.commaOrSpaceSeparated&&(gt=Oe(tt(gt).join(" ")))),dt==="style"&&typeof Be!="string"&&(gt=_t(gt)),dt==="className"&&xe.className&&(gt=xe.className.concat(gt)),xe[dt]=Et(at,dt,gt))}}function ut(te,ee){return typeof te=="string"||"length"in te||et(ee.tagName,te)}function et(te,ee){var de=ee.type;return te==="input"||!de||typeof de!="string"?!1:typeof ee.children=="object"&&"length"in ee.children?!0:(de=de.toLowerCase(),te==="button"?de!=="menu"&&de!=="submit"&&de!=="reset"&&de!=="button":"value"in ee)}function lt(te,ee){var de,le;if(typeof ee=="string"||typeof ee=="number"){te.push({type:"text",value:String(ee)});return}if(typeof ee=="object"&&"length"in ee){for(de=-1,le=ee.length;++de<le;)lt(te,ee[de]);return}if(typeof ee!="object"||!("type"in ee))throw new Error("Expected node, nodes, or string, got `"+ee+"`");te.push(ee)}function Et(te,ee,de){var le,pe,me;if(typeof de!="object"||!("length"in de))return rt(te,ee,de);for(pe=de.length,le=-1,me=[];++le<pe;)me[le]=rt(te,ee,de[le]);return me}function rt(te,ee,de){var le=de;return te.number||te.positiveNumber?!isNaN(le)&&le!==""&&(le=Number(le)):(te.boolean||te.overloadedBoolean)&&typeof le=="string"&&(le===""||Pe(de)===Pe(ee))&&(le=!0),le}function _t(te){var ee=[],de;for(de in te)ee.push([de,te[de]].join(": "));return ee.join("; ")}function Ge(te){for(var ee=te.length,de=-1,le={},pe;++de<ee;)pe=te[de],le[pe.toLowerCase()]=pe;return le}},51575:function(Ke,we,ae){"use strict";var ie=ae(17034),Pe=ae(6509),Fe=Pe(ie,"div");Fe.displayName="html",Ke.exports=Fe},90871:function(Ke,we,ae){"use strict";Ke.exports=ae(51575)},59216:function(Ke,we,ae){var ie=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};var Pe=function(Fe){var Oe=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,tt=0,Me={},_e={manual:Fe.Prism&&Fe.Prism.manual,disableWorkerMessageHandler:Fe.Prism&&Fe.Prism.disableWorkerMessageHandler,util:{encode:function le(pe){return pe instanceof ut?new ut(pe.type,le(pe.content),pe.alias):Array.isArray(pe)?pe.map(le):pe.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(le){return Object.prototype.toString.call(le).slice(8,-1)},objId:function(le){return le.__id||Object.defineProperty(le,"__id",{value:++tt}),le.__id},clone:function le(pe,me){me=me||{};var xe,be;switch(_e.util.type(pe)){case"Object":if(be=_e.util.objId(pe),me[be])return me[be];xe={},me[be]=xe;for(var Be in pe)pe.hasOwnProperty(Be)&&(xe[Be]=le(pe[Be],me));return xe;case"Array":return be=_e.util.objId(pe),me[be]?me[be]:(xe=[],me[be]=xe,pe.forEach(function(at,dt){xe[dt]=le(at,me)}),xe);default:return pe}},getLanguage:function(le){for(;le;){var pe=Oe.exec(le.className);if(pe)return pe[1].toLowerCase();le=le.parentElement}return"none"},setLanguage:function(le,pe){le.className=le.className.replace(RegExp(Oe,"gi"),""),le.classList.add("language-"+pe)},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(xe){var le=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(xe.stack)||[])[1];if(le){var pe=document.getElementsByTagName("script");for(var me in pe)if(pe[me].src==le)return pe[me]}return null}},isActive:function(le,pe,me){for(var xe="no-"+pe;le;){var be=le.classList;if(be.contains(pe))return!0;if(be.contains(xe))return!1;le=le.parentElement}return!!me}},languages:{plain:Me,plaintext:Me,text:Me,txt:Me,extend:function(le,pe){var me=_e.util.clone(_e.languages[le]);for(var xe in pe)me[xe]=pe[xe];return me},insertBefore:function(le,pe,me,xe){xe=xe||_e.languages;var be=xe[le],Be={};for(var at in be)if(be.hasOwnProperty(at)){if(at==pe)for(var dt in me)me.hasOwnProperty(dt)&&(Be[dt]=me[dt]);me.hasOwnProperty(at)||(Be[at]=be[at])}var gt=xe[le];return xe[le]=Be,_e.languages.DFS(_e.languages,function(ft,Nt){Nt===gt&&ft!=le&&(this[ft]=Be)}),Be},DFS:function le(pe,me,xe,be){be=be||{};var Be=_e.util.objId;for(var at in pe)if(pe.hasOwnProperty(at)){me.call(pe,at,pe[at],xe||at);var dt=pe[at],gt=_e.util.type(dt);gt==="Object"&&!be[Be(dt)]?(be[Be(dt)]=!0,le(dt,me,null,be)):gt==="Array"&&!be[Be(dt)]&&(be[Be(dt)]=!0,le(dt,me,at,be))}}},plugins:{},highlightAll:function(le,pe){_e.highlightAllUnder(document,le,pe)},highlightAllUnder:function(le,pe,me){var xe={callback:me,container:le,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};_e.hooks.run("before-highlightall",xe),xe.elements=Array.prototype.slice.apply(xe.container.querySelectorAll(xe.selector)),_e.hooks.run("before-all-elements-highlight",xe);for(var be=0,Be;Be=xe.elements[be++];)_e.highlightElement(Be,pe===!0,xe.callback)},highlightElement:function(le,pe,me){var xe=_e.util.getLanguage(le),be=_e.languages[xe];_e.util.setLanguage(le,xe);var Be=le.parentElement;Be&&Be.nodeName.toLowerCase()==="pre"&&_e.util.setLanguage(Be,xe);var at=le.textContent,dt={element:le,language:xe,grammar:be,code:at};function gt(Nt){dt.highlightedCode=Nt,_e.hooks.run("before-insert",dt),dt.element.innerHTML=dt.highlightedCode,_e.hooks.run("after-highlight",dt),_e.hooks.run("complete",dt),me&&me.call(dt.element)}if(_e.hooks.run("before-sanity-check",dt),Be=dt.element.parentElement,Be&&Be.nodeName.toLowerCase()==="pre"&&!Be.hasAttribute("tabindex")&&Be.setAttribute("tabindex","0"),!dt.code){_e.hooks.run("complete",dt),me&&me.call(dt.element);return}if(_e.hooks.run("before-highlight",dt),!dt.grammar){gt(_e.util.encode(dt.code));return}if(pe&&Fe.Worker){var ft=new Worker(_e.filename);ft.onmessage=function(Nt){gt(Nt.data)},ft.postMessage(JSON.stringify({language:dt.language,code:dt.code,immediateClose:!0}))}else gt(_e.highlight(dt.code,dt.grammar,dt.language))},highlight:function(le,pe,me){var xe={code:le,grammar:pe,language:me};if(_e.hooks.run("before-tokenize",xe),!xe.grammar)throw new Error('The language "'+xe.language+'" has no grammar.');return xe.tokens=_e.tokenize(xe.code,xe.grammar),_e.hooks.run("after-tokenize",xe),ut.stringify(_e.util.encode(xe.tokens),xe.language)},tokenize:function(le,pe){var me=pe.rest;if(me){for(var xe in me)pe[xe]=me[xe];delete pe.rest}var be=new Et;return rt(be,be.head,le),lt(le,be,pe,be.head,0),Ge(be)},hooks:{all:{},add:function(le,pe){var me=_e.hooks.all;me[le]=me[le]||[],me[le].push(pe)},run:function(le,pe){var me=_e.hooks.all[le];if(!(!me||!me.length))for(var xe=0,be;be=me[xe++];)be(pe)}},Token:ut};Fe.Prism=_e;function ut(le,pe,me,xe){this.type=le,this.content=pe,this.alias=me,this.length=(xe||"").length|0}ut.stringify=function le(pe,me){if(typeof pe=="string")return pe;if(Array.isArray(pe)){var xe="";return pe.forEach(function(gt){xe+=le(gt,me)}),xe}var be={type:pe.type,content:le(pe.content,me),tag:"span",classes:["token",pe.type],attributes:{},language:me},Be=pe.alias;Be&&(Array.isArray(Be)?Array.prototype.push.apply(be.classes,Be):be.classes.push(Be)),_e.hooks.run("wrap",be);var at="";for(var dt in be.attributes)at+=" "+dt+'="'+(be.attributes[dt]||"").replace(/"/g,""")+'"';return"<"+be.tag+' class="'+be.classes.join(" ")+'"'+at+">"+be.content+"</"+be.tag+">"};function et(le,pe,me,xe){le.lastIndex=pe;var be=le.exec(me);if(be&&xe&&be[1]){var Be=be[1].length;be.index+=Be,be[0]=be[0].slice(Be)}return be}function lt(le,pe,me,xe,be,Be){for(var at in me)if(!(!me.hasOwnProperty(at)||!me[at])){var dt=me[at];dt=Array.isArray(dt)?dt:[dt];for(var gt=0;gt<dt.length;++gt){if(Be&&Be.cause==at+","+gt)return;var ft=dt[gt],Nt=ft.inside,Tt=!!ft.lookbehind,Ct=!!ft.greedy,Vt=ft.alias;if(Ct&&!ft.pattern.global){var Rt=ft.pattern.toString().match(/[imsuy]*$/)[0];ft.pattern=RegExp(ft.pattern.source,Rt+"g")}for(var nn=ft.pattern||ft,Cn=xe.next,un=be;Cn!==pe.tail&&!(Be&&un>=Be.reach);un+=Cn.value.length,Cn=Cn.next){var Nn=Cn.value;if(pe.length>le.length)return;if(!(Nn instanceof ut)){var wt=1,pt;if(Ct){if(pt=et(nn,un,le,Tt),!pt||pt.index>=le.length)break;var Zt=pt.index,Ie=pt.index+pt[0].length,on=un;for(on+=Cn.value.length;Zt>=on;)Cn=Cn.next,on+=Cn.value.length;if(on-=Cn.value.length,un=on,Cn.value instanceof ut)continue;for(var Bn=Cn;Bn!==pe.tail&&(on<Ie||typeof Bn.value=="string");Bn=Bn.next)wt++,on+=Bn.value.length;wt--,Nn=le.slice(un,on),pt.index-=un}else if(pt=et(nn,0,Nn,Tt),!pt)continue;var Zt=pt.index,zn=pt[0],_n=Nn.slice(0,Zt),nr=Nn.slice(Zt+zn.length),Ft=un+Nn.length;Be&&Ft>Be.reach&&(Be.reach=Ft);var Wt=Cn.prev;_n&&(Wt=rt(pe,Wt,_n),un+=_n.length),_t(pe,Wt,wt);var ht=new ut(at,Nt?_e.tokenize(zn,Nt):zn,Vt,zn);if(Cn=rt(pe,Wt,ht),nr&&rt(pe,Cn,nr),wt>1){var tn={cause:at+","+gt,reach:Ft};lt(le,pe,me,Cn.prev,un,tn),Be&&tn.reach>Be.reach&&(Be.reach=tn.reach)}}}}}}function Et(){var le={value:null,prev:null,next:null},pe={value:null,prev:le,next:null};le.next=pe,this.head=le,this.tail=pe,this.length=0}function rt(le,pe,me){var xe=pe.next,be={value:me,prev:pe,next:xe};return pe.next=be,xe.prev=be,le.length++,be}function _t(le,pe,me){for(var xe=pe.next,be=0;be<me&&xe!==le.tail;be++)xe=xe.next;pe.next=xe,xe.prev=pe,le.length-=be}function Ge(le){for(var pe=[],me=le.head.next;me!==le.tail;)pe.push(me.value),me=me.next;return pe}if(!Fe.document)return Fe.addEventListener&&(_e.disableWorkerMessageHandler||Fe.addEventListener("message",function(le){var pe=JSON.parse(le.data),me=pe.language,xe=pe.code,be=pe.immediateClose;Fe.postMessage(_e.highlight(xe,_e.languages[me],me)),be&&Fe.close()},!1)),_e;var te=_e.util.currentScript();te&&(_e.filename=te.src,te.hasAttribute("data-manual")&&(_e.manual=!0));function ee(){_e.manual||_e.highlightAll()}if(!_e.manual){var de=document.readyState;de==="loading"||de==="interactive"&&te&&te.defer?document.addEventListener("DOMContentLoaded",ee):window.requestAnimationFrame?window.requestAnimationFrame(ee):window.setTimeout(ee,16)}return _e}(ie);Ke.exports&&(Ke.exports=Pe),typeof ae.g!="undefined"&&(ae.g.Prism=Pe)},65605:function(Ke,we,ae){"use strict";var ie=ae(33343),Pe=ae(3405),Fe=ae(33806),Oe="data";Ke.exports=ut;var tt=/^data[-\w.:]+$/i,Me=/-[a-z]/g,_e=/[A-Z]/g;function ut(_t,Ge){var te=ie(Ge),ee=Ge,de=Fe;return te in _t.normal?_t.property[_t.normal[te]]:(te.length>4&&te.slice(0,4)===Oe&&tt.test(Ge)&&(Ge.charAt(4)==="-"?ee=et(Ge):Ge=lt(Ge),de=Pe),new de(ee,Ge))}function et(_t){var Ge=_t.slice(5).replace(Me,rt);return Oe+Ge.charAt(0).toUpperCase()+Ge.slice(1)}function lt(_t){var Ge=_t.slice(4);return Me.test(Ge)?_t:(Ge=Ge.replace(_e,Et),Ge.charAt(0)!=="-"&&(Ge="-"+Ge),Oe+Ge)}function Et(_t){return"-"+_t.toLowerCase()}function rt(_t){return _t.charAt(1).toUpperCase()}},17034:function(Ke,we,ae){"use strict";var ie=ae(72627),Pe=ae(9501),Fe=ae(90822),Oe=ae(87109),tt=ae(25956),Me=ae(44330);Ke.exports=ie([Fe,Pe,Oe,tt,Me])},25956:function(Ke,we,ae){"use strict";var ie=ae(3941),Pe=ae(5260),Fe=ie.booleanish,Oe=ie.number,tt=ie.spaceSeparated;Ke.exports=Pe({transform:Me,properties:{ariaActiveDescendant:null,ariaAtomic:Fe,ariaAutoComplete:null,ariaBusy:Fe,ariaChecked:Fe,ariaColCount:Oe,ariaColIndex:Oe,ariaColSpan:Oe,ariaControls:tt,ariaCurrent:null,ariaDescribedBy:tt,ariaDetails:null,ariaDisabled:Fe,ariaDropEffect:tt,ariaErrorMessage:null,ariaExpanded:Fe,ariaFlowTo:tt,ariaGrabbed:Fe,ariaHasPopup:null,ariaHidden:Fe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:tt,ariaLevel:Oe,ariaLive:null,ariaModal:Fe,ariaMultiLine:Fe,ariaMultiSelectable:Fe,ariaOrientation:null,ariaOwns:tt,ariaPlaceholder:null,ariaPosInSet:Oe,ariaPressed:Fe,ariaReadOnly:Fe,ariaRelevant:null,ariaRequired:Fe,ariaRoleDescription:tt,ariaRowCount:Oe,ariaRowIndex:Oe,ariaRowSpan:Oe,ariaSelected:Fe,ariaSetSize:Oe,ariaSort:null,ariaValueMax:Oe,ariaValueMin:Oe,ariaValueNow:Oe,ariaValueText:null,role:null}});function Me(_e,ut){return ut==="role"?ut:"aria-"+ut.slice(4).toLowerCase()}},44330:function(Ke,we,ae){"use strict";var ie=ae(3941),Pe=ae(5260),Fe=ae(86716),Oe=ie.boolean,tt=ie.overloadedBoolean,Me=ie.booleanish,_e=ie.number,ut=ie.spaceSeparated,et=ie.commaSeparated;Ke.exports=Pe({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Fe,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:et,acceptCharset:ut,accessKey:ut,action:null,allow:null,allowFullScreen:Oe,allowPaymentRequest:Oe,allowUserMedia:Oe,alt:null,as:null,async:Oe,autoCapitalize:null,autoComplete:ut,autoFocus:Oe,autoPlay:Oe,capture:Oe,charSet:null,checked:Oe,cite:null,className:ut,cols:_e,colSpan:null,content:null,contentEditable:Me,controls:Oe,controlsList:ut,coords:_e|et,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Oe,defer:Oe,dir:null,dirName:null,disabled:Oe,download:tt,draggable:Me,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Oe,formTarget:null,headers:ut,height:_e,hidden:Oe,high:_e,href:null,hrefLang:null,htmlFor:ut,httpEquiv:ut,id:null,imageSizes:null,imageSrcSet:et,inputMode:null,integrity:null,is:null,isMap:Oe,itemId:null,itemProp:ut,itemRef:ut,itemScope:Oe,itemType:ut,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Oe,low:_e,manifest:null,max:null,maxLength:_e,media:null,method:null,min:null,minLength:_e,multiple:Oe,muted:Oe,name:null,nonce:null,noModule:Oe,noValidate:Oe,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:Oe,optimum:_e,pattern:null,ping:ut,placeholder:null,playsInline:Oe,poster:null,preload:null,readOnly:Oe,referrerPolicy:null,rel:ut,required:Oe,reversed:Oe,rows:_e,rowSpan:_e,sandbox:ut,scope:null,scoped:Oe,seamless:Oe,selected:Oe,shape:null,size:_e,sizes:null,slot:null,span:_e,spellCheck:Me,src:null,srcDoc:null,srcLang:null,srcSet:et,start:_e,step:null,style:null,tabIndex:_e,target:null,title:null,translate:null,type:null,typeMustMatch:Oe,useMap:null,value:Me,width:_e,wrap:null,align:null,aLink:null,archive:ut,axis:null,background:null,bgColor:null,border:_e,borderColor:null,bottomMargin:_e,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Oe,declare:Oe,event:null,face:null,frame:null,frameBorder:null,hSpace:_e,leftMargin:_e,link:null,longDesc:null,lowSrc:null,marginHeight:_e,marginWidth:_e,noResize:Oe,noHref:Oe,noShade:Oe,noWrap:Oe,object:null,profile:null,prompt:null,rev:null,rightMargin:_e,rules:null,scheme:null,scrolling:Me,standby:null,summary:null,text:null,topMargin:_e,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_e,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Oe,disableRemotePlayback:Oe,prefix:null,property:null,results:_e,security:null,unselectable:null}})},86716:function(Ke,we,ae){"use strict";var ie=ae(83532);Ke.exports=Pe;function Pe(Fe,Oe){return ie(Fe,Oe.toLowerCase())}},83532:function(Ke){"use strict";Ke.exports=we;function we(ae,ie){return ie in ae?ae[ie]:ie}},5260:function(Ke,we,ae){"use strict";var ie=ae(33343),Pe=ae(85815),Fe=ae(3405);Ke.exports=Oe;function Oe(tt){var Me=tt.space,_e=tt.mustUseProperty||[],ut=tt.attributes||{},et=tt.properties,lt=tt.transform,Et={},rt={},_t,Ge;for(_t in et)Ge=new Fe(_t,lt(ut,_t),et[_t],Me),_e.indexOf(_t)!==-1&&(Ge.mustUseProperty=!0),Et[_t]=Ge,rt[ie(_t)]=_t,rt[ie(Ge.attribute)]=_t;return new Pe(Et,rt,Me)}},3405:function(Ke,we,ae){"use strict";var ie=ae(33806),Pe=ae(3941);Ke.exports=tt,tt.prototype=new ie,tt.prototype.defined=!0;var Fe=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],Oe=Fe.length;function tt(_e,ut,et,lt){var Et=-1,rt;for(Me(this,"space",lt),ie.call(this,_e,ut);++Et<Oe;)rt=Fe[Et],Me(this,rt,(et&Pe[rt])===Pe[rt])}function Me(_e,ut,et){et&&(_e[ut]=et)}},33806:function(Ke){"use strict";Ke.exports=ae;var we=ae.prototype;we.space=null,we.attribute=null,we.property=null,we.boolean=!1,we.booleanish=!1,we.overloadedBoolean=!1,we.number=!1,we.commaSeparated=!1,we.spaceSeparated=!1,we.commaOrSpaceSeparated=!1,we.mustUseProperty=!1,we.defined=!1;function ae(ie,Pe){this.property=ie,this.attribute=Pe}},72627:function(Ke,we,ae){"use strict";var ie=ae(47529),Pe=ae(85815);Ke.exports=Fe;function Fe(Oe){for(var tt=Oe.length,Me=[],_e=[],ut=-1,et,lt;++ut<tt;)et=Oe[ut],Me.push(et.property),_e.push(et.normal),lt=et.space;return new Pe(ie.apply(null,Me),ie.apply(null,_e),lt)}},85815:function(Ke){"use strict";Ke.exports=ae;var we=ae.prototype;we.space=null,we.normal={},we.property={};function ae(ie,Pe,Fe){this.property=ie,this.normal=Pe,Fe&&(this.space=Fe)}},3941:function(Ke,we){"use strict";var ae=0;we.boolean=ie(),we.booleanish=ie(),we.overloadedBoolean=ie(),we.number=ie(),we.spaceSeparated=ie(),we.commaSeparated=ie(),we.commaOrSpaceSeparated=ie();function ie(){return Math.pow(2,++ae)}},9501:function(Ke,we,ae){"use strict";var ie=ae(5260);Ke.exports=ie({space:"xlink",transform:Pe,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function Pe(Fe,Oe){return"xlink:"+Oe.slice(5).toLowerCase()}},90822:function(Ke,we,ae){"use strict";var ie=ae(5260);Ke.exports=ie({space:"xml",transform:Pe,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Pe(Fe,Oe){return"xml:"+Oe.slice(3).toLowerCase()}},87109:function(Ke,we,ae){"use strict";var ie=ae(5260),Pe=ae(86716);Ke.exports=ie({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Pe,properties:{xmlns:null,xmlnsXLink:null}})},33343:function(Ke){"use strict";Ke.exports=we;function we(ae){return ae.toLowerCase()}},42749:function(Ke,we){"use strict";var ae;we.Q=Oe,ae=tt;var ie="",Pe=" ",Fe=/[ \t\n\r\f]+/g;function Oe(Me){var _e=String(Me||ie).trim();return _e===ie?[]:_e.split(Fe)}function tt(Me){return Me.join(Pe).trim()}},5174:function(Ke,we,ae){"use strict";var ie=this&&this.__importDefault||function(Oe){return Oe&&Oe.__esModule?Oe:{default:Oe}};Object.defineProperty(we,"__esModule",{value:!0});var Pe=ie(ae(18139));function Fe(Oe,tt){var Me=null;if(!Oe||typeof Oe!="string")return Me;var _e=(0,Pe.default)(Oe),ut=typeof tt=="function";return _e.forEach(function(et){if(et.type==="declaration"){var lt=et.property,Et=et.value;ut?tt(lt,Et,et):Et&&(Me=Me||{},Me[lt]=Et)}}),Me}we.default=Fe},47529:function(Ke){Ke.exports=ae;var we=Object.prototype.hasOwnProperty;function ae(){for(var ie={},Pe=0;Pe<arguments.length;Pe++){var Fe=arguments[Pe];for(var Oe in Fe)we.call(Fe,Oe)&&(ie[Oe]=Fe[Oe])}return ie}},20441:function(Ke,we,ae){var ie={"./aac.svg":42414,"./amr.svg":44292,"./avi.svg":98288,"./bmp.svg":86543,"./default.svg":25696,"./doc.svg":95030,"./docx.svg":33316,"./flv.svg":42281,"./gif.svg":85105,"./jpeg.svg":7107,"./jpg.svg":64969,"./m4a.svg":31580,"./md.svg":21355,"./mkv.svg":61899,"./mov.svg":14019,"./mp3.svg":81602,"./mp4.svg":93890,"./mpeg.svg":4322,"./ogg.svg":6171,"./opus.svg":57505,"./pdf.svg":40269,"./png.svg":68550,"./ppt.svg":3312,"./pptx.svg":76343,"./txt.svg":35485,"./wav.svg":17263,"./webm.svg":1074,"./wma.svg":86837,"./wmv.svg":94530,"./wps.svg":60062,"./xls.svg":73103,"./xlsx.svg":78850};function Pe(Oe){var tt=Fe(Oe);return ae(tt)}function Fe(Oe){if(!ae.o(ie,Oe)){var tt=new Error("Cannot find module '"+Oe+"'");throw tt.code="MODULE_NOT_FOUND",tt}return ie[Oe]}Pe.keys=function(){return Object.keys(ie)},Pe.resolve=Fe,Ke.exports=Pe,Pe.id=20441},42414:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/aac.b3e9a3ba.svg"},44292:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/amr.ce411d51.svg"},98288:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/avi.d7b8adf7.svg"},86543:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/bmp.c62f88c4.svg"},25696:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/default.f48aef2c.svg"},95030:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/doc.e6c75d4c.svg"},33316:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/docx.150535e3.svg"},42281:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/flv.43967063.svg"},85105:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/gif.b2122741.svg"},7107:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/jpeg.fffee469.svg"},64969:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/jpg.2fb4a360.svg"},31580:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/m4a.7994dbc0.svg"},21355:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/md.1f56aa84.svg"},61899:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/mkv.f43ec502.svg"},14019:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/mov.1e1eebb7.svg"},81602:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/mp3.a7e45c91.svg"},93890:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/mp4.31a2d9d7.svg"},4322:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/mpeg.9a0dfa86.svg"},6171:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/ogg.0394dc54.svg"},57505:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/opus.faad335c.svg"},40269:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/pdf.5d12b224.svg"},68550:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/png.eacc8c1c.svg"},3312:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/ppt.d710530e.svg"},76343:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/pptx.d78add0d.svg"},35485:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/txt.53f7213d.svg"},17263:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/wav.a76e7dde.svg"},1074:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/webm.3a7e6ebc.svg"},86837:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/wma.a57b430b.svg"},94530:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/wmv.f22ee4a1.svg"},60062:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/wps.f48aef2c.svg"},73103:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/xls.0db636e2.svg"},78850:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/xlsx.5d09490a.svg"},32637:function(Ke,we,ae){"use strict";Ke.exports=ae.p+"static/AssistantCode3.a8740efb.jpeg"},4977:function(Ke){"use strict";Ke.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(Ke){"use strict";Ke.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAZxJREFUOBGtlL1Ow0AMgH2XUIkOLFXVASgTsDHxBIAEzAwMPBQjT8AATGVBgEBCYmHmFcICYmBogCbNYSe52HUTVZWwFJ3PP599Z+WMcy6Af5SwYkWnLYifTyBzq5XNK8YNwbbvYP381ZuaVlN1+HJwAc4d1QYaA+gDsHYANrhGHTdCMtSDMILtwSMDn7ZiANPKwyjeQ0Reo4r1gEoEwRkDb7spdPcBeocMk1Cv00oii5L+fgPwcR/zHfb3AJY2sEpUVLOUhB/l+w7I1iS9TYDFrM3AzhqGDstPZ3li2Z12U2WLvk4fGJh+F0elYN8ZrbWiA7igAP4WR6sFzDAKPgPHP0VnlMsFS5IyyIGoeAamCKybYI5UQLWVE2fgGI/s72wqQXRd9jyxiHgGJtihFxGQm8Qd5XvtF3fEQOrQH9mDm1Z9hyJuEphXIq9uSWSQqv8a4RbAUTFdcs7gifwplYGjT3wzbPFz6Q70EZv8WZoxMP66ApMc86inirNBA8njcFIuvOTXhowPyzuQJiukzi3hQgS7b+I9nJtQn/AHsLGsvlcPPWsAAAAASUVORK5CYII="},5623:function(Ke){"use strict";Ke.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAedJREFUOBGtVDtLA0EQ/jY5z7dgEBVJLHyAitpYWQqKjVZa5BfEKpWlWPgrLG0UEdTexkILRUQiSBBBCAhGUINFHia53Dm7ufXcvfgIOHA3O69vvtnbPeY4ThD/KIF/xBJQhg/wbmkZtj0KMKbEGNIweg4xuPmq+DWDKSOfz2/AqaxpOVWzip8HC2xTsydfjoMHhMd2VMDjkSswTPqSucOhh3PmupaIediBOnL52UTLENC7QCV1bC9vkjkF3i4WVUDeORIF2sf5ymOk7mY1pr87hoHEhekHDLYQOfck8c6c6OeYfPHN3LyOxEB2KwQru0LrBvTPdaGRipj7ISUzqUWJ/moiRyc1tUXAQP42Tsa6sEIRCtwDRXqESDYS8RuG5iyRMEWFAat4CbvsAmgFmukmeYofJYeSAimab0L4DfQNHiF1laFAyMv840o2zN3Q1FMuIOIWStF9OtAxH4xkIC8NZyN9SnIOsNISkLRd3EWlFBP0lQJtDzVTyc8mBKB3U65nUnBYmDaFAr98BFGqvYKtwOMZHRsp1vsedVxV8bQRJXu5BbKWa6sAmK1lj2FiOoLcS5LYNX/N+3ktp+GapFJMeoDccdI9gEJ2nW5HhJjKuXmktih7yjJoC8VVwNpldXnr+KX8DfcD09mnwzz7SXEAAAAASUVORK5CYII="},36413:function(Ke){"use strict";Ke.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(Ke){"use strict";Ke.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(Ke){"use strict";Ke.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(Ke){"use strict";Ke.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="},52835:function(Ke,we,ae){"use strict";ae.d(we,{ZP:function(){return xe}});const ie=-1,Pe=0,Fe=1,Oe=2,tt=3,Me=4,_e=5,ut=6,et=7,lt=8,Et=typeof self=="object"?self:globalThis,rt=(be,Be)=>{const at=(gt,ft)=>(be.set(ft,gt),gt),dt=gt=>{if(be.has(gt))return be.get(gt);const[ft,Nt]=Be[gt];switch(ft){case Pe:case ie:return at(Nt,gt);case Fe:{const Tt=at([],gt);for(const Ct of Nt)Tt.push(dt(Ct));return Tt}case Oe:{const Tt=at({},gt);for(const[Ct,Vt]of Nt)Tt[dt(Ct)]=dt(Vt);return Tt}case tt:return at(new Date(Nt),gt);case Me:{const{source:Tt,flags:Ct}=Nt;return at(new RegExp(Tt,Ct),gt)}case _e:{const Tt=at(new Map,gt);for(const[Ct,Vt]of Nt)Tt.set(dt(Ct),dt(Vt));return Tt}case ut:{const Tt=at(new Set,gt);for(const Ct of Nt)Tt.add(dt(Ct));return Tt}case et:{const{name:Tt,message:Ct}=Nt;return at(new Et[Tt](Ct),gt)}case lt:return at(BigInt(Nt),gt);case"BigInt":return at(Object(BigInt(Nt)),gt)}return at(new Et[ft](Nt),gt)};return dt},_t=be=>rt(new Map,be)(0),Ge="",{toString:te}={},{keys:ee}=Object,de=be=>{const Be=typeof be;if(Be!=="object"||!be)return[Pe,Be];const at=te.call(be).slice(8,-1);switch(at){case"Array":return[Fe,Ge];case"Object":return[Oe,Ge];case"Date":return[tt,Ge];case"RegExp":return[Me,Ge];case"Map":return[_e,Ge];case"Set":return[ut,Ge]}return at.includes("Array")?[Fe,at]:at.includes("Error")?[et,at]:[Oe,at]},le=([be,Be])=>be===Pe&&(Be==="function"||Be==="symbol"),pe=(be,Be,at,dt)=>{const gt=(Nt,Tt)=>{const Ct=dt.push(Nt)-1;return at.set(Tt,Ct),Ct},ft=Nt=>{if(at.has(Nt))return at.get(Nt);let[Tt,Ct]=de(Nt);switch(Tt){case Pe:{let Rt=Nt;switch(Ct){case"bigint":Tt=lt,Rt=Nt.toString();break;case"function":case"symbol":if(be)throw new TypeError("unable to serialize "+Ct);Rt=null;break;case"undefined":return gt([ie],Nt)}return gt([Tt,Rt],Nt)}case Fe:{if(Ct)return gt([Ct,[...Nt]],Nt);const Rt=[],nn=gt([Tt,Rt],Nt);for(const Cn of Nt)Rt.push(ft(Cn));return nn}case Oe:{if(Ct)switch(Ct){case"BigInt":return gt([Ct,Nt.toString()],Nt);case"Boolean":case"Number":case"String":return gt([Ct,Nt.valueOf()],Nt)}if(Be&&"toJSON"in Nt)return ft(Nt.toJSON());const Rt=[],nn=gt([Tt,Rt],Nt);for(const Cn of ee(Nt))(be||!le(de(Nt[Cn])))&&Rt.push([ft(Cn),ft(Nt[Cn])]);return nn}case tt:return gt([Tt,Nt.toISOString()],Nt);case Me:{const{source:Rt,flags:nn}=Nt;return gt([Tt,{source:Rt,flags:nn}],Nt)}case _e:{const Rt=[],nn=gt([Tt,Rt],Nt);for(const[Cn,un]of Nt)(be||!(le(de(Cn))||le(de(un))))&&Rt.push([ft(Cn),ft(un)]);return nn}case ut:{const Rt=[],nn=gt([Tt,Rt],Nt);for(const Cn of Nt)(be||!le(de(Cn)))&&Rt.push(ft(Cn));return nn}}const{message:Vt}=Nt;return gt([Tt,{name:Ct,message:Vt}],Nt)};return ft},me=(be,{json:Be,lossy:at}={})=>{const dt=[];return pe(!(Be||at),!!Be,new Map,dt)(be),dt};var xe=typeof structuredClone=="function"?(be,Be)=>Be&&("json"in Be||"lossy"in Be)?_t(me(be,Be)):structuredClone(be):(be,Be)=>_t(me(be,Be))},25668:function(Ke,we,ae){"use strict";ae.d(we,{P:function(){return Pe},Q:function(){return ie}});function ie(Fe){const Oe=[],tt=String(Fe||"");let Me=tt.indexOf(","),_e=0,ut=!1;for(;!ut;){Me===-1&&(Me=tt.length,ut=!0);const et=tt.slice(_e,Me).trim();(et||!ut)&&Oe.push(et),_e=Me+1,Me=tt.indexOf(",",_e)}return Oe}function Pe(Fe,Oe){const tt=Oe||{};return(Fe[Fe.length-1]===""?[...Fe,""]:Fe).join((tt.padRight?" ":"")+","+(tt.padLeft===!1?"":" ")).trim()}},24345:function(Ke,we,ae){"use strict";ae.d(we,{ok:function(){return Fe},t1:function(){return Oe}});function ie(tt){return tt}function Pe(){}function Fe(){}function Oe(){}},11748:function(Ke,we,ae){"use strict";ae.d(we,{N:function(){return _t}});var ie=ae(55316),Pe=ae(49911);function Fe(te,ee){return Oe(te,ee||{})||{type:"root",children:[]}}function Oe(te,ee){const de=tt(te,ee);return de&&ee.afterTransform&&ee.afterTransform(te,de),de}function tt(te,ee){switch(te.nodeType){case 1:return lt(te,ee);case 3:return ut(te);case 8:return et(te);case 9:return Me(te,ee);case 10:return _e();case 11:return Me(te,ee);default:return}}function Me(te,ee){return{type:"root",children:Et(te,ee)}}function _e(){return{type:"doctype"}}function ut(te){return{type:"text",value:te.nodeValue||""}}function et(te){return{type:"comment",value:te.nodeValue||""}}function lt(te,ee){const de=te.namespaceURI,le=de===Pe.t.svg?ie.s:ie.h,pe=de===Pe.t.html?te.tagName.toLowerCase():te.tagName,me=de===Pe.t.html&&pe==="template"?te.content:te,xe=te.getAttributeNames(),be={};let Be=-1;for(;++Be<xe.length;)be[xe[Be]]=te.getAttribute(xe[Be])||"";return le(pe,be,Et(me,ee))}function Et(te,ee){const de=te.childNodes,le=[];let pe=-1;for(;++pe<de.length;){const me=Oe(de[pe],ee);me!==void 0&&le.push(me)}return le}const rt=new DOMParser;function _t(te,ee){const de=ee!=null&&ee.fragment?Ge(te):rt.parseFromString(te,"text/html");return Fe(de)}function Ge(te){const ee=document.createElement("template");return ee.innerHTML=te,ee.content}},91891:function(Ke,we,ae){"use strict";ae.d(we,{l:function(){return le}});var ie=ae(96093);const Pe=function(Nt,Tt,Ct){const Vt=(0,ie.O)(Ct);if(!Nt||!Nt.type||!Nt.children)throw new Error("Expected parent node");if(typeof Tt=="number"){if(Tt<0||Tt===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(Tt=Nt.children.indexOf(Tt),Tt<0)throw new Error("Expected child node or index");for(;++Tt<Nt.children.length;)if(Vt(Nt.children[Tt],Tt,Nt))return Nt.children[Tt]},Fe=function(Nt,Tt,Ct,Vt,Rt){const nn=Oe(Tt);if(Ct!=null&&(typeof Ct!="number"||Ct<0||Ct===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite `index`");if(Vt!=null&&(!Vt.type||!Vt.children))throw new Error("Expected valid `parent`");if(Ct==null!=(Vt==null))throw new Error("Expected both `index` and `parent`");return et(Nt)?nn.call(Rt,Nt,Ct,Vt):!1},Oe=function(Nt){if(Nt==null)return ut;if(typeof Nt=="string")return Me(Nt);if(typeof Nt=="object")return tt(Nt);if(typeof Nt=="function")return _e(Nt);throw new Error("Expected function, string, or array as `test`")};function tt(Nt){const Tt=[];let Ct=-1;for(;++Ct<Nt.length;)Tt[Ct]=Oe(Nt[Ct]);return _e(Vt);function Vt(...Rt){let nn=-1;for(;++nn<Tt.length;)if(Tt[nn].apply(this,Rt))return!0;return!1}}function Me(Nt){return _e(Tt);function Tt(Ct){return Ct.tagName===Nt}}function _e(Nt){return Tt;function Tt(Ct,Vt,Rt){return!!(et(Ct)&&Nt.call(this,Ct,typeof Vt=="number"?Vt:void 0,Rt||void 0))}}function ut(Nt){return!!(Nt&&typeof Nt=="object"&&"type"in Nt&&Nt.type==="element"&&"tagName"in Nt&&typeof Nt.tagName=="string")}function et(Nt){return Nt!==null&&typeof Nt=="object"&&"type"in Nt&&"tagName"in Nt}const lt=/\n/g,Et=/[\t ]+/g,rt=Oe("br"),_t=Oe(gt),Ge=Oe("p"),te=Oe("tr"),ee=Oe(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",dt,ft]),de=Oe(["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 le(Nt,Tt){const Ct=Tt||{},Vt="children"in Nt?Nt.children:[],Rt=de(Nt),nn=at(Nt,{whitespace:Ct.whitespace||"normal",breakBefore:!1,breakAfter:!1}),Cn=[];(Nt.type==="text"||Nt.type==="comment")&&Cn.push(...xe(Nt,{whitespace:nn,breakBefore:!0,breakAfter:!0}));let un=-1;for(;++un<Vt.length;)Cn.push(...pe(Vt[un],Nt,{whitespace:nn,breakBefore:un?void 0:Rt,breakAfter:un<Vt.length-1?rt(Vt[un+1]):Rt}));const Nn=[];let wt;for(un=-1;++un<Cn.length;){const pt=Cn[un];typeof pt=="number"?wt!==void 0&&pt>wt&&(wt=pt):pt&&(wt!==void 0&&wt>-1&&Nn.push(`
|
|
|
`.repeat(wt)||" "),wt=-1,Nn.push(pt))}return Nn.join("")}function pe(Nt,Tt,Ct){return Nt.type==="element"?me(Nt,Tt,Ct):Nt.type==="text"?Ct.whitespace==="normal"?xe(Nt,Ct):be(Nt):[]}function me(Nt,Tt,Ct){const Vt=at(Nt,Ct),Rt=Nt.children||[];let nn=-1,Cn=[];if(ee(Nt))return Cn;let un,Nn;for(rt(Nt)||te(Nt)&&Pe(Tt,Nt,te)?Nn=`
|
|
|
`:Ge(Nt)?(un=2,Nn=2):de(Nt)&&(un=1,Nn=1);++nn<Rt.length;)Cn=Cn.concat(pe(Rt[nn],Nt,{whitespace:Vt,breakBefore:nn?void 0:un,breakAfter:nn<Rt.length-1?rt(Rt[nn+1]):Nn}));return _t(Nt)&&Pe(Tt,Nt,_t)&&Cn.push(" "),un&&Cn.unshift(un),Nn&&Cn.push(Nn),Cn}function xe(Nt,Tt){const Ct=String(Nt.value),Vt=[],Rt=[];let nn=0;for(;nn<=Ct.length;){lt.lastIndex=nn;const Nn=lt.exec(Ct),wt=Nn&&"index"in Nn?Nn.index:Ct.length;Vt.push(Be(Ct.slice(nn,wt).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),nn===0?Tt.breakBefore:!0,wt===Ct.length?Tt.breakAfter:!0)),nn=wt+1}let Cn=-1,un;for(;++Cn<Vt.length;)Vt[Cn].charCodeAt(Vt[Cn].length-1)===8203||Cn<Vt.length-1&&Vt[Cn+1].charCodeAt(0)===8203?(Rt.push(Vt[Cn]),un=void 0):Vt[Cn]?(typeof un=="number"&&Rt.push(un),Rt.push(Vt[Cn]),un=0):(Cn===0||Cn===Vt.length-1)&&Rt.push(0);return Rt}function be(Nt){return[String(Nt.value)]}function Be(Nt,Tt,Ct){const Vt=[];let Rt=0,nn;for(;Rt<Nt.length;){Et.lastIndex=Rt;const Cn=Et.exec(Nt);nn=Cn?Cn.index:Nt.length,!Rt&&!nn&&Cn&&!Tt&&Vt.push(""),Rt!==nn&&Vt.push(Nt.slice(Rt,nn)),Rt=Cn?nn+Cn[0].length:nn}return Rt!==nn&&!Ct&&Vt.push(""),Vt.join(" ")}function at(Nt,Tt){if(Nt.type==="element"){const Ct=Nt.properties||{};switch(Nt.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return Ct.wrap?"pre-wrap":"pre";case"td":case"th":return Ct.noWrap?"nowrap":Tt.whitespace;case"textarea":return"pre-wrap";default:}}return Tt.whitespace}function dt(Nt){return!!(Nt.properties||{}).hidden}function gt(Nt){return Nt.tagName==="td"||Nt.tagName==="th"}function ft(Nt){return Nt.tagName==="dialog"&&!(Nt.properties||{}).open}},55316:function(Ke,we,ae){"use strict";ae.d(we,{h:function(){return de},s:function(){return le}});var ie=ae(91634),Pe=ae(25668);const Fe=/[#.]/g;function Oe(pe,me){const xe=pe||"",be={};let Be=0,at,dt;for(;Be<xe.length;){Fe.lastIndex=Be;const gt=Fe.exec(xe),ft=xe.slice(Be,gt?gt.index:xe.length);ft&&(at?at==="#"?be.id=ft:Array.isArray(be.className)?be.className.push(ft):be.className=[ft]:dt=ft,Be+=ft.length),gt&&(at=gt[0],Be++)}return{type:"element",tagName:dt||me||"div",properties:be,children:[]}}var tt=ae(26103),Me=ae(93859),_e=ae(50342);const ut={}.hasOwnProperty;function et(pe,me,xe){const be=xe&&te(xe);function Be(at,dt,...gt){let ft=-1,Nt;if(at==null){Nt={type:"root",children:[]};const Tt=dt;gt.unshift(Tt)}else if(Nt=Oe(at,me),Nt.tagName=Nt.tagName.toLowerCase(),be&&ut.call(be,Nt.tagName)&&(Nt.tagName=be[Nt.tagName]),lt(dt))gt.unshift(dt);else{let Tt;for(Tt in dt)ut.call(dt,Tt)&&Et(pe,Nt.properties,Tt,dt[Tt])}for(;++ft<gt.length;)rt(Nt.children,gt[ft]);return Nt.type==="element"&&Nt.tagName==="template"&&(Nt.content={type:"root",children:Nt.children},Nt.children=[]),Nt}return Be}function lt(pe){if(pe===null||typeof pe!="object"||Array.isArray(pe))return!0;if(typeof pe.type!="string")return!1;const me=pe,xe=Object.keys(pe);for(const be of xe){const Be=me[be];if(Be&&typeof Be=="object"){if(!Array.isArray(Be))return!0;const at=Be;for(const dt of at)if(typeof dt!="number"&&typeof dt!="string")return!0}}return!!("children"in pe&&Array.isArray(pe.children))}function Et(pe,me,xe,be){const Be=(0,tt.s)(pe,xe);let at=-1,dt;if(be!=null){if(typeof be=="number"){if(Number.isNaN(be))return;dt=be}else typeof be=="boolean"?dt=be:typeof be=="string"?Be.spaceSeparated?dt=(0,_e.Q)(be):Be.commaSeparated?dt=(0,Pe.Q)(be):Be.commaOrSpaceSeparated?dt=(0,_e.Q)((0,Pe.Q)(be).join(" ")):dt=_t(Be,Be.property,be):Array.isArray(be)?dt=be.concat():dt=Be.property==="style"?Ge(be):String(be);if(Array.isArray(dt)){const gt=[];for(;++at<dt.length;){const ft=_t(Be,Be.property,dt[at]);gt[at]=ft}dt=gt}if(Be.property==="className"&&Array.isArray(me.className)){const gt=dt;dt=me.className.concat(gt)}me[Be.property]=dt}}function rt(pe,me){let xe=-1;if(me!=null)if(typeof me=="string"||typeof me=="number")pe.push({type:"text",value:String(me)});else if(Array.isArray(me))for(;++xe<me.length;)rt(pe,me[xe]);else if(typeof me=="object"&&"type"in me)me.type==="root"?rt(pe,me.children):pe.push(me);else throw new Error("Expected node, nodes, or string, got `"+me+"`")}function _t(pe,me,xe){if(typeof xe=="string"){if(pe.number&&xe&&!Number.isNaN(Number(xe)))return Number(xe);if((pe.boolean||pe.overloadedBoolean)&&(xe===""||(0,Me.F)(xe)===(0,Me.F)(me)))return!0}return xe}function Ge(pe){const me=[];let xe;for(xe in pe)ut.call(pe,xe)&&me.push([xe,pe[xe]].join(": "));return me.join("; ")}function te(pe){const me={};let xe=-1;for(;++xe<pe.length;)me[pe[xe].toLowerCase()]=pe[xe];return me}const ee=["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"],de=et(ie.dy,"div"),le=et(ie.YP,"g",ee)},42761:function(Ke,we,ae){"use strict";ae.d(we,{f:function(){return Pe}});var ie=ae(15459);function Pe(Fe,Oe,tt,Me){const _e=Me?Me-1:Number.POSITIVE_INFINITY;let ut=0;return et;function et(Et){return(0,ie.xz)(Et)?(Fe.enter(tt),lt(Et)):Oe(Et)}function lt(Et){return(0,ie.xz)(Et)&&ut++<_e?(Fe.consume(Et),lt):(Fe.exit(tt),Oe(Et))}}},15459:function(Ke,we,ae){"use strict";ae.d(we,{AF:function(){return Me},Av:function(){return Oe},B8:function(){return rt},Ch:function(){return ut},H$:function(){return Pe},Xh:function(){return Et},jv:function(){return ie},n9:function(){return Fe},pY:function(){return tt},sR:function(){return _e},xz:function(){return lt},z3:function(){return et}});const ie=_t(/[A-Za-z]/),Pe=_t(/[\dA-Za-z]/),Fe=_t(/[#-'*+\--9=?A-Z^-~]/);function Oe(Ge){return Ge!==null&&(Ge<32||Ge===127)}const tt=_t(/\d/),Me=_t(/[\dA-Fa-f]/),_e=_t(/[!-/:-@[-`{-~]/);function ut(Ge){return Ge!==null&&Ge<-2}function et(Ge){return Ge!==null&&(Ge<0||Ge===32)}function lt(Ge){return Ge===-2||Ge===-1||Ge===32}const Et=_t(new RegExp("\\p{P}|\\p{S}","u")),rt=_t(/\s/);function _t(Ge){return te;function te(ee){return ee!==null&&ee>-1&&Ge.test(String.fromCharCode(ee))}}},91634:function(Ke,we,ae){"use strict";ae.d(we,{dy:function(){return ee},YP:function(){return de}});class ie{constructor(pe,me,xe){this.property=pe,this.normal=me,xe&&(this.space=xe)}}ie.prototype.property={},ie.prototype.normal={},ie.prototype.space=null;function Pe(le,pe){const me={},xe={};let be=-1;for(;++be<le.length;)Object.assign(me,le[be].property),Object.assign(xe,le[be].normal);return new ie(me,xe,pe)}var Fe=ae(93859),Oe=ae(75729);const tt={}.hasOwnProperty;function Me(le){const pe={},me={};let xe;for(xe in le.properties)if(tt.call(le.properties,xe)){const be=le.properties[xe],Be=new Oe.I(xe,le.transform(le.attributes||{},xe),be,le.space);le.mustUseProperty&&le.mustUseProperty.includes(xe)&&(Be.mustUseProperty=!0),pe[xe]=Be,me[(0,Fe.F)(xe)]=xe,me[(0,Fe.F)(Be.attribute)]=xe}return new ie(pe,me,le.space)}const _e=Me({space:"xlink",transform(le,pe){return"xlink:"+pe.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),ut=Me({space:"xml",transform(le,pe){return"xml:"+pe.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function et(le,pe){return pe in le?le[pe]:pe}function lt(le,pe){return et(le,pe.toLowerCase())}const Et=Me({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:lt,properties:{xmlns:null,xmlnsXLink:null}});var rt=ae(47312);const _t=Me({transform(le,pe){return pe==="role"?pe:"aria-"+pe.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:rt.booleanish,ariaAutoComplete:null,ariaBusy:rt.booleanish,ariaChecked:rt.booleanish,ariaColCount:rt.number,ariaColIndex:rt.number,ariaColSpan:rt.number,ariaControls:rt.spaceSeparated,ariaCurrent:null,ariaDescribedBy:rt.spaceSeparated,ariaDetails:null,ariaDisabled:rt.booleanish,ariaDropEffect:rt.spaceSeparated,ariaErrorMessage:null,ariaExpanded:rt.booleanish,ariaFlowTo:rt.spaceSeparated,ariaGrabbed:rt.booleanish,ariaHasPopup:null,ariaHidden:rt.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:rt.spaceSeparated,ariaLevel:rt.number,ariaLive:null,ariaModal:rt.booleanish,ariaMultiLine:rt.booleanish,ariaMultiSelectable:rt.booleanish,ariaOrientation:null,ariaOwns:rt.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:rt.number,ariaPressed:rt.booleanish,ariaReadOnly:rt.booleanish,ariaRelevant:null,ariaRequired:rt.booleanish,ariaRoleDescription:rt.spaceSeparated,ariaRowCount:rt.number,ariaRowIndex:rt.number,ariaRowSpan:rt.number,ariaSelected:rt.booleanish,ariaSetSize:rt.number,ariaSort:null,ariaValueMax:rt.number,ariaValueMin:rt.number,ariaValueNow:rt.number,ariaValueText:null,role:null}}),Ge=Me({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:lt,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:rt.commaSeparated,acceptCharset:rt.spaceSeparated,accessKey:rt.spaceSeparated,action:null,allow:null,allowFullScreen:rt.boolean,allowPaymentRequest:rt.boolean,allowUserMedia:rt.boolean,alt:null,as:null,async:rt.boolean,autoCapitalize:null,autoComplete:rt.spaceSeparated,autoFocus:rt.boolean,autoPlay:rt.boolean,blocking:rt.spaceSeparated,capture:null,charSet:null,checked:rt.boolean,cite:null,className:rt.spaceSeparated,cols:rt.number,colSpan:null,content:null,contentEditable:rt.booleanish,controls:rt.boolean,controlsList:rt.spaceSeparated,coords:rt.number|rt.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:rt.boolean,defer:rt.boolean,dir:null,dirName:null,disabled:rt.boolean,download:rt.overloadedBoolean,draggable:rt.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:rt.boolean,formTarget:null,headers:rt.spaceSeparated,height:rt.number,hidden:rt.boolean,high:rt.number,href:null,hrefLang:null,htmlFor:rt.spaceSeparated,httpEquiv:rt.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:rt.boolean,inputMode:null,integrity:null,is:null,isMap:rt.boolean,itemId:null,itemProp:rt.spaceSeparated,itemRef:rt.spaceSeparated,itemScope:rt.boolean,itemType:rt.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:rt.boolean,low:rt.number,manifest:null,max:null,maxLength:rt.number,media:null,method:null,min:null,minLength:rt.number,multiple:rt.boolean,muted:rt.boolean,name:null,nonce:null,noModule:rt.boolean,noValidate:rt.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:rt.boolean,optimum:rt.number,pattern:null,ping:rt.spaceSeparated,placeholder:null,playsInline:rt.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:rt.boolean,referrerPolicy:null,rel:rt.spaceSeparated,required:rt.boolean,reversed:rt.boolean,rows:rt.number,rowSpan:rt.number,sandbox:rt.spaceSeparated,scope:null,scoped:rt.boolean,seamless:rt.boolean,selected:rt.boolean,shadowRootClonable:rt.boolean,shadowRootDelegatesFocus:rt.boolean,shadowRootMode:null,shape:null,size:rt.number,sizes:null,slot:null,span:rt.number,spellCheck:rt.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:rt.number,step:null,style:null,tabIndex:rt.number,target:null,title:null,translate:null,type:null,typeMustMatch:rt.boolean,useMap:null,value:rt.booleanish,width:rt.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:rt.spaceSeparated,axis:null,background:null,bgColor:null,border:rt.number,borderColor:null,bottomMargin:rt.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:rt.boolean,declare:rt.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:rt.number,leftMargin:rt.number,link:null,longDesc:null,lowSrc:null,marginHeight:rt.number,marginWidth:rt.number,noResize:rt.boolean,noHref:rt.boolean,noShade:rt.boolean,noWrap:rt.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:rt.number,rules:null,scheme:null,scrolling:rt.booleanish,standby:null,summary:null,text:null,topMargin:rt.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:rt.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:rt.boolean,disableRemotePlayback:rt.boolean,prefix:null,property:null,results:rt.number,security:null,unselectable:null}}),te=Me({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:et,properties:{about:rt.commaOrSpaceSeparated,accentHeight:rt.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:rt.number,amplitude:rt.number,arabicForm:null,ascent:rt.number,attributeName:null,attributeType:null,azimuth:rt.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:rt.number,by:null,calcMode:null,capHeight:rt.number,className:rt.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:rt.number,diffuseConstant:rt.number,direction:null,display:null,dur:null,divisor:rt.number,dominantBaseline:null,download:rt.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:rt.number,enableBackground:null,end:null,event:null,exponent:rt.number,externalResourcesRequired:null,fill:null,fillOpacity:rt.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:rt.commaSeparated,g2:rt.commaSeparated,glyphName:rt.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:rt.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:rt.number,horizOriginX:rt.number,horizOriginY:rt.number,id:null,ideographic:rt.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:rt.number,k:rt.number,k1:rt.number,k2:rt.number,k3:rt.number,k4:rt.number,kernelMatrix:rt.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:rt.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:rt.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:rt.number,overlineThickness:rt.number,paintOrder:null,panose1:null,path:null,pathLength:rt.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:rt.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:rt.number,pointsAtY:rt.number,pointsAtZ:rt.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:rt.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:rt.commaOrSpaceSeparated,rev:rt.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:rt.commaOrSpaceSeparated,requiredFeatures:rt.commaOrSpaceSeparated,requiredFonts:rt.commaOrSpaceSeparated,requiredFormats:rt.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:rt.number,specularExponent:rt.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:rt.number,strikethroughThickness:rt.number,string:null,stroke:null,strokeDashArray:rt.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:rt.number,strokeOpacity:rt.number,strokeWidth:null,style:null,surfaceScale:rt.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:rt.commaOrSpaceSeparated,tabIndex:rt.number,tableValues:null,target:null,targetX:rt.number,targetY:rt.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:rt.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:rt.number,underlineThickness:rt.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:rt.number,values:null,vAlphabetic:rt.number,vMathematical:rt.number,vectorEffect:null,vHanging:rt.number,vIdeographic:rt.number,version:null,vertAdvY:rt.number,vertOriginX:rt.number,vertOriginY:rt.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:rt.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),ee=Pe([ut,_e,Et,_t,Ge],"html"),de=Pe([ut,_e,Et,_t,te],"svg")},26103:function(Ke,we,ae){"use strict";ae.d(we,{s:function(){return _e}});var ie=ae(93859),Pe=ae(75729),Fe=ae(49255);const Oe=/^data[-\w.:]+$/i,tt=/-[a-z]/g,Me=/[A-Z]/g;function _e(lt,Et){const rt=(0,ie.F)(Et);let _t=Et,Ge=Fe.k;if(rt in lt.normal)return lt.property[lt.normal[rt]];if(rt.length>4&&rt.slice(0,4)==="data"&&Oe.test(Et)){if(Et.charAt(4)==="-"){const te=Et.slice(5).replace(tt,et);_t="data"+te.charAt(0).toUpperCase()+te.slice(1)}else{const te=Et.slice(4);if(!tt.test(te)){let ee=te.replace(Me,ut);ee.charAt(0)!=="-"&&(ee="-"+ee),Et="data"+ee}}Ge=Pe.I}return new Ge(_t,Et)}function ut(lt){return"-"+lt.toLowerCase()}function et(lt){return lt.charAt(1).toUpperCase()}},93859:function(Ke,we,ae){"use strict";ae.d(we,{F:function(){return ie}});function ie(Pe){return Pe.toLowerCase()}},75729:function(Ke,we,ae){"use strict";ae.d(we,{I:function(){return Oe}});var ie=ae(49255),Pe=ae(47312);const Fe=Object.keys(Pe);class Oe extends ie.k{constructor(_e,ut,et,lt){let Et=-1;if(super(_e,ut),tt(this,"space",lt),typeof et=="number")for(;++Et<Fe.length;){const rt=Fe[Et];tt(this,Fe[Et],(et&Pe[rt])===Pe[rt])}}}Oe.prototype.defined=!0;function tt(Me,_e,ut){ut&&(Me[_e]=ut)}},49255:function(Ke,we,ae){"use strict";ae.d(we,{k:function(){return ie}});class ie{constructor(Fe,Oe){this.property=Fe,this.attribute=Oe}}ie.prototype.space=null,ie.prototype.boolean=!1,ie.prototype.booleanish=!1,ie.prototype.overloadedBoolean=!1,ie.prototype.number=!1,ie.prototype.commaSeparated=!1,ie.prototype.spaceSeparated=!1,ie.prototype.commaOrSpaceSeparated=!1,ie.prototype.mustUseProperty=!1,ie.prototype.defined=!1},47312:function(Ke,we,ae){"use strict";ae.r(we),ae.d(we,{boolean:function(){return Pe},booleanish:function(){return Fe},commaOrSpaceSeparated:function(){return ut},commaSeparated:function(){return _e},number:function(){return tt},overloadedBoolean:function(){return Oe},spaceSeparated:function(){return Me}});let ie=0;const Pe=et(),Fe=et(),Oe=et(),tt=et(),Me=et(),_e=et(),ut=et();function et(){return n1(2,++ie)}},94668:function(Ke,we,ae){"use strict";ae.d(we,{U:function(){return Ma}});var ie={};ae.r(ie),ae.d(ie,{attentionMarkers:function(){return zs},contentInitial:function(){return Xs},disable:function(){return Vs},document:function(){return Bi},flow:function(){return Gs},flowInitial:function(){return Ls},insideSpan:function(){return ci},string:function(){return vl},text:function(){return Ml}});var Pe=ae(24345),Fe=ae(25668);const Oe=/[$_\p{ID_Start}]/u,tt=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Me=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,_e=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ut=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,et={};function lt(Le){return Le?Oe.test(String.fromCodePoint(Le)):!1}function Et(Le,nt){const Te=(nt||et).jsx?Me:tt;return Le?Te.test(String.fromCodePoint(Le)):!1}function rt(Le,nt){return((nt||et).jsx?ut:_e).test(Le)}const _t=/[ \t\n\f\r]/g;function Ge(Le){return typeof Le=="object"?Le.type==="text"?te(Le.value):!1:te(Le)}function te(Le){return Le.replace(_t,"")===""}var ee=ae(91634),de=ae(26103);const le={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 pe=ae(50342),me=ae(5174),xe=me.default||me,be=ae(3980);function Be(Le){return!Le||typeof Le!="object"?"":"position"in Le||"type"in Le?dt(Le.position):"start"in Le||"end"in Le?dt(Le):"line"in Le||"column"in Le?at(Le):""}function at(Le){return gt(Le&&Le.line)+":"+gt(Le&&Le.column)}function dt(Le){return at(Le&&Le.start)+"-"+at(Le&&Le.end)}function gt(Le){return Le&&typeof Le=="number"?Le:1}class ft extends Error{constructor(nt,Se,Te){super(),typeof Se=="string"&&(Te=Se,Se=void 0);let ze="",Qe={},mt=!1;if(Se&&("line"in Se&&"column"in Se?Qe={place:Se}:"start"in Se&&"end"in Se?Qe={place:Se}:"type"in Se?Qe={ancestors:[Se],place:Se.position}:Qe=Uu({},Se)),typeof nt=="string"?ze=nt:!Qe.cause&&nt&&(mt=!0,ze=nt.message,Qe.cause=nt),!Qe.ruleId&&!Qe.source&&typeof Te=="string"){const De=Te.indexOf(":");De===-1?Qe.ruleId=Te:(Qe.source=Te.slice(0,De),Qe.ruleId=Te.slice(De+1))}if(!Qe.place&&Qe.ancestors&&Qe.ancestors){const De=Qe.ancestors[Qe.ancestors.length-1];De&&(Qe.place=De.position)}const Ae=Qe.place&&"start"in Qe.place?Qe.place.start:Qe.place;this.ancestors=Qe.ancestors||void 0,this.cause=Qe.cause||void 0,this.column=Ae?Ae.column:void 0,this.fatal=void 0,this.file,this.message=ze,this.line=Ae?Ae.line:void 0,this.name=Be(Qe.place)||"1:1",this.place=Qe.place||void 0,this.reason=this.message,this.ruleId=Qe.ruleId||void 0,this.source=Qe.source||void 0,this.stack=mt&&Qe.cause&&typeof Qe.cause.stack=="string"?Qe.cause.stack:"",this.actual,this.expected,this.note,this.url}}ft.prototype.file="",ft.prototype.name="",ft.prototype.reason="",ft.prototype.message="",ft.prototype.stack="",ft.prototype.column=void 0,ft.prototype.line=void 0,ft.prototype.ancestors=void 0,ft.prototype.cause=void 0,ft.prototype.fatal=void 0,ft.prototype.place=void 0,ft.prototype.ruleId=void 0,ft.prototype.source=void 0;const Nt={}.hasOwnProperty,Tt=new Map,Ct=/[A-Z]/g,Vt=/-([a-z])/g,Rt=new Set(["table","tbody","thead","tfoot","tr"]),nn=new Set(["td","th"]),Cn="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function un(Le,nt){if(!nt||nt.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const Se=nt.filePath||void 0;let Te;if(nt.development){if(typeof nt.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");Te=Ft(Se,nt.jsxDEV)}else{if(typeof nt.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof nt.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");Te=nr(Se,nt.jsx,nt.jsxs)}const ze={Fragment:nt.Fragment,ancestors:[],components:nt.components||{},create:Te,elementAttributeNameCase:nt.elementAttributeNameCase||"react",evaluater:nt.createEvaluater?nt.createEvaluater():void 0,filePath:Se,ignoreInvalidStyle:nt.ignoreInvalidStyle||!1,passKeys:nt.passKeys!==!1,passNode:nt.passNode||!1,schema:nt.space==="svg"?ee.YP:ee.dy,stylePropertyNameCase:nt.stylePropertyNameCase||"dom",tableCellAlignToStyle:nt.tableCellAlignToStyle!==!1},Qe=Nn(ze,Le,void 0);return Qe&&typeof Qe!="string"?Qe:ze.create(Le,ze.Fragment,{children:Qe||void 0},void 0)}function Nn(Le,nt,Se){if(nt.type==="element")return wt(Le,nt,Se);if(nt.type==="mdxFlowExpression"||nt.type==="mdxTextExpression")return pt(Le,nt);if(nt.type==="mdxJsxFlowElement"||nt.type==="mdxJsxTextElement")return on(Le,nt,Se);if(nt.type==="mdxjsEsm")return Ie(Le,nt);if(nt.type==="root")return Bn(Le,nt,Se);if(nt.type==="text")return Zt(Le,nt)}function wt(Le,nt,Se){const Te=Le.schema;let ze=Te;nt.tagName.toLowerCase()==="svg"&&Te.space==="html"&&(ze=ee.YP,Le.schema=ze),Le.ancestors.push(nt);const Qe=Ue(Le,nt.tagName,!1),mt=Wt(Le,nt);let Ae=tn(Le,nt);return Rt.has(nt.tagName)&&(Ae=Ae.filter(function(De){return typeof De=="string"?!Ge(De):!0})),zn(Le,mt,Qe,nt),_n(mt,Ae),Le.ancestors.pop(),Le.schema=Te,Le.create(nt,Qe,mt,Se)}function pt(Le,nt){if(nt.data&&nt.data.estree&&Le.evaluater){const Te=nt.data.estree.body[0];return(0,Pe.ok)(Te.type==="ExpressionStatement"),Le.evaluater.evaluateExpression(Te.expression)}He(Le,nt.position)}function Ie(Le,nt){if(nt.data&&nt.data.estree&&Le.evaluater)return Le.evaluater.evaluateProgram(nt.data.estree);He(Le,nt.position)}function on(Le,nt,Se){const Te=Le.schema;let ze=Te;nt.name==="svg"&&Te.space==="html"&&(ze=ee.YP,Le.schema=ze),Le.ancestors.push(nt);const Qe=nt.name===null?Le.Fragment:Ue(Le,nt.name,!0),mt=ht(Le,nt),Ae=tn(Le,nt);return zn(Le,mt,Qe,nt),_n(mt,Ae),Le.ancestors.pop(),Le.schema=Te,Le.create(nt,Qe,mt,Se)}function Bn(Le,nt,Se){const Te={};return _n(Te,tn(Le,nt)),Le.create(nt,Le.Fragment,Te,Se)}function Zt(Le,nt){return nt.value}function zn(Le,nt,Se,Te){typeof Se!="string"&&Se!==Le.Fragment&&Le.passNode&&(nt.node=Te)}function _n(Le,nt){if(nt.length>0){const Se=nt.length>1?nt:nt[0];Se&&(Le.children=Se)}}function nr(Le,nt,Se){return Te;function Te(ze,Qe,mt,Ae){const qe=Array.isArray(mt.children)?Se:nt;return Ae?qe(Qe,mt,Ae):qe(Qe,mt)}}function Ft(Le,nt){return Se;function Se(Te,ze,Qe,mt){const Ae=Array.isArray(Qe.children),De=(0,be.Pk)(Te);return nt(ze,Qe,mt,Ae,{columnNumber:De?De.column-1:void 0,fileName:Le,lineNumber:De?De.line:void 0},void 0)}}function Wt(Le,nt){const Se={};let Te,ze;for(ze in nt.properties)if(ze!=="children"&&Nt.call(nt.properties,ze)){const Qe=an(Le,ze,nt.properties[ze]);if(Qe){const[mt,Ae]=Qe;Le.tableCellAlignToStyle&&mt==="align"&&typeof Ae=="string"&&nn.has(nt.tagName)?Te=Ae:Se[mt]=Ae}}if(Te){const Qe=Se.style||(Se.style={});Qe[Le.stylePropertyNameCase==="css"?"text-align":"textAlign"]=Te}return Se}function ht(Le,nt){const Se={};for(const Te of nt.attributes)if(Te.type==="mdxJsxExpressionAttribute")if(Te.data&&Te.data.estree&&Le.evaluater){const Qe=Te.data.estree.body[0];(0,Pe.ok)(Qe.type==="ExpressionStatement");const mt=Qe.expression;(0,Pe.ok)(mt.type==="ObjectExpression");const Ae=mt.properties[0];(0,Pe.ok)(Ae.type==="SpreadElement"),Object.assign(Se,Le.evaluater.evaluateExpression(Ae.argument))}else He(Le,nt.position);else{const ze=Te.name;let Qe;if(Te.value&&typeof Te.value=="object")if(Te.value.data&&Te.value.data.estree&&Le.evaluater){const Ae=Te.value.data.estree.body[0];(0,Pe.ok)(Ae.type==="ExpressionStatement"),Qe=Le.evaluater.evaluateExpression(Ae.expression)}else He(Le,nt.position);else Qe=Te.value===null?!0:Te.value;Se[ze]=Qe}return Se}function tn(Le,nt){const Se=[];let Te=-1;const ze=Le.passKeys?new Map:Tt;for(;++Te<nt.children.length;){const Qe=nt.children[Te];let mt;if(Le.passKeys){const De=Qe.type==="element"?Qe.tagName:Qe.type==="mdxJsxFlowElement"||Qe.type==="mdxJsxTextElement"?Qe.name:void 0;if(De){const qe=ze.get(De)||0;mt=De+"-"+qe,ze.set(De,qe+1)}}const Ae=Nn(Le,Qe,mt);Ae!==void 0&&Se.push(Ae)}return Se}function an(Le,nt,Se){const Te=(0,de.s)(Le.schema,nt);if(!(Se==null||typeof Se=="number"&&Number.isNaN(Se))){if(Array.isArray(Se)&&(Se=Te.commaSeparated?(0,Fe.P)(Se):(0,pe.P)(Se)),Te.property==="style"){let ze=typeof Se=="object"?Se:ct(Le,String(Se));return Le.stylePropertyNameCase==="css"&&(ze=it(ze)),["style",ze]}return[Le.elementAttributeNameCase==="react"&&Te.space?le[Te.property]||Te.property:Te.attribute,Se]}}function ct(Le,nt){const Se={};try{xe(nt,Te)}catch(ze){if(!Le.ignoreInvalidStyle){const Qe=ze,mt=new ft("Cannot parse `style` attribute",{ancestors:Le.ancestors,cause:Qe,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw mt.file=Le.filePath||void 0,mt.url=Cn+"#cannot-parse-style-attribute",mt}}return Se;function Te(ze,Qe){let mt=ze;mt.slice(0,2)!=="--"&&(mt.slice(0,4)==="-ms-"&&(mt="ms-"+mt.slice(4)),mt=mt.replace(Vt,Ye)),Se[mt]=Qe}}function Ue(Le,nt,Se){let Te;if(!Se)Te={type:"Literal",value:nt};else if(nt.includes(".")){const ze=nt.split(".");let Qe=-1,mt;for(;++Qe<ze.length;){const Ae=rt(ze[Qe])?{type:"Identifier",name:ze[Qe]}:{type:"Literal",value:ze[Qe]};mt=mt?{type:"MemberExpression",object:mt,property:Ae,computed:!!(Qe&&Ae.type==="Literal"),optional:!1}:Ae}(0,Pe.ok)(mt,"always a result"),Te=mt}else Te=rt(nt)&&!/^[a-z]/.test(nt)?{type:"Identifier",name:nt}:{type:"Literal",value:nt};if(Te.type==="Literal"){const ze=Te.value;return Nt.call(Le.components,ze)?Le.components[ze]:ze}if(Le.evaluater)return Le.evaluater.evaluateExpression(Te);He(Le)}function He(Le,nt){const Se=new ft("Cannot handle MDX estrees without `createEvaluater`",{ancestors:Le.ancestors,place:nt,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw Se.file=Le.filePath||void 0,Se.url=Cn+"#cannot-handle-mdx-estrees-without-createevaluater",Se}function it(Le){const nt={};let Se;for(Se in Le)Nt.call(Le,Se)&&(nt[vt(Se)]=Le[Se]);return nt}function vt(Le){let nt=Le.replace(Ct,It);return nt.slice(0,3)==="ms-"&&(nt="-"+nt),nt}function Ye(Le,nt){return nt.toUpperCase()}function It(Le){return"-"+Le.toLowerCase()}const In={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 Kn=ae(85893);const dr={};function Rn(Le,nt){const Se=nt||dr,Te=typeof Se.includeImageAlt=="boolean"?Se.includeImageAlt:!0,ze=typeof Se.includeHtml=="boolean"?Se.includeHtml:!0;return er(Le,Te,ze)}function er(Le,nt,Se){if(Er(Le)){if("value"in Le)return Le.type==="html"&&!Se?"":Le.value;if(nt&&"alt"in Le&&Le.alt)return Le.alt;if("children"in Le)return yn(Le.children,nt,Se)}return Array.isArray(Le)?yn(Le,nt,Se):""}function yn(Le,nt,Se){const Te=[];let ze=-1;for(;++ze<Le.length;)Te[ze]=er(Le[ze],nt,Se);return Te.join("")}function Er(Le){return!!(Le&&typeof Le=="object")}function sr(Le,nt,Se,Te){const ze=Le.length;let Qe=0,mt;if(nt<0?nt=-nt>ze?0:ze+nt:nt=nt>ze?ze:nt,Se=Se>0?Se:0,Te.length<1e4)mt=Array.from(Te),mt.unshift(nt,Se),Le.splice(...mt);else for(Se&&Le.splice(nt,Se);Qe<Te.length;)mt=Te.slice(Qe,Qe+1e4),mt.unshift(nt,0),Le.splice(...mt),Qe+=1e4,nt+=1e4}function Hr(Le,nt){return Le.length>0?(sr(Le,Le.length,0,nt),Le):nt}class An{constructor(nt){this.left=nt?[...nt]:[],this.right=[]}get(nt){if(nt<0||nt>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+nt+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return nt<this.left.length?this.left[nt]:this.right[this.right.length-nt+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(nt,Se){const Te=Se==null?Number.POSITIVE_INFINITY:Se;return Te<this.left.length?this.left.slice(nt,Te):nt>this.left.length?this.right.slice(this.right.length-Te+this.left.length,this.right.length-nt+this.left.length).reverse():this.left.slice(nt).concat(this.right.slice(this.right.length-Te+this.left.length).reverse())}splice(nt,Se,Te){const ze=Se||0;this.setCursor(Math.trunc(nt));const Qe=this.right.splice(this.right.length-ze,Number.POSITIVE_INFINITY);return Te&&yi(this.left,Te),Qe.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(nt){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(nt)}pushMany(nt){this.setCursor(Number.POSITIVE_INFINITY),yi(this.left,nt)}unshift(nt){this.setCursor(0),this.right.push(nt)}unshiftMany(nt){this.setCursor(0),yi(this.right,nt.reverse())}setCursor(nt){if(!(nt===this.left.length||nt>this.left.length&&this.right.length===0||nt<0&&this.left.length===0))if(nt<this.left.length){const Se=this.left.splice(nt,Number.POSITIVE_INFINITY);yi(this.right,Se.reverse())}else{const Se=this.right.splice(this.left.length+this.right.length-nt,Number.POSITIVE_INFINITY);yi(this.left,Se.reverse())}}}function yi(Le,nt){let Se=0;if(nt.length<1e4)Le.push(...nt);else for(;Se<nt.length;)Le.push(...nt.slice(Se,Se+1e4)),Se+=1e4}function ri(Le){const nt={};let Se=-1,Te,ze,Qe,mt,Ae,De,qe;const ot=new An(Le);for(;++Se<ot.length;){for(;Se in nt;)Se=nt[Se];if(Te=ot.get(Se),Se&&Te[1].type==="chunkFlow"&&ot.get(Se-1)[1].type==="listItemPrefix"&&(De=Te[1]._tokenizer.events,Qe=0,Qe<De.length&&De[Qe][1].type==="lineEndingBlank"&&(Qe+=2),Qe<De.length&&De[Qe][1].type==="content"))for(;++Qe<De.length&&De[Qe][1].type!=="content";)De[Qe][1].type==="chunkText"&&(De[Qe][1]._isInFirstContentOfListItem=!0,Qe++);if(Te[0]==="enter")Te[1].contentType&&(Object.assign(nt,bn(ot,Se)),Se=nt[Se],qe=!0);else if(Te[1]._container){for(Qe=Se,ze=void 0;Qe--&&(mt=ot.get(Qe),mt[1].type==="lineEnding"||mt[1].type==="lineEndingBlank");)mt[0]==="enter"&&(ze&&(ot.get(ze)[1].type="lineEndingBlank"),mt[1].type="lineEnding",ze=Qe);ze&&(Te[1].end=Object.assign({},ot.get(ze)[1].start),Ae=ot.slice(ze,Se),Ae.unshift(Te),ot.splice(ze,Se-ze+1,Ae))}}return sr(Le,0,Number.POSITIVE_INFINITY,ot.slice(0)),!qe}function bn(Le,nt){const Se=Le.get(nt)[1],Te=Le.get(nt)[2];let ze=nt-1;const Qe=[],mt=Se._tokenizer||Te.parser[Se.contentType](Se.start),Ae=mt.events,De=[],qe={};let ot,Lt,Ut=-1,jt=Se,se=0,fe=0;const je=[fe];for(;jt;){for(;Le.get(++ze)[1]!==jt;);Qe.push(ze),jt._tokenizer||(ot=Te.sliceStream(jt),jt.next||ot.push(null),Lt&&mt.defineSkip(jt.start),jt._isInFirstContentOfListItem&&(mt._gfmTasklistFirstContentOfListItem=!0),mt.write(ot),jt._isInFirstContentOfListItem&&(mt._gfmTasklistFirstContentOfListItem=void 0)),Lt=jt,jt=jt.next}for(jt=Se;++Ut<Ae.length;)Ae[Ut][0]==="exit"&&Ae[Ut-1][0]==="enter"&&Ae[Ut][1].type===Ae[Ut-1][1].type&&Ae[Ut][1].start.line!==Ae[Ut][1].end.line&&(fe=Ut+1,je.push(fe),jt._tokenizer=void 0,jt.previous=void 0,jt=jt.next);for(mt.events=[],jt?(jt._tokenizer=void 0,jt.previous=void 0):je.pop(),Ut=je.length;Ut--;){const St=Ae.slice(je[Ut],je[Ut+1]),Yt=Qe.pop();De.push([Yt,Yt+St.length-1]),Le.splice(Yt,2,St)}for(De.reverse(),Ut=-1;++Ut<De.length;)qe[se+De[Ut][0]]=se+De[Ut][1],se+=De[Ut][1]-De[Ut][0]-1;return qe}function Xe(Le){for(;!ri(Le););return Le}const Ji={}.hasOwnProperty;function Qn(Le){const nt={};let Se=-1;for(;++Se<Le.length;)Sn(nt,Le[Se]);return nt}function Sn(Le,nt){let Se;for(Se in nt){const ze=(Ji.call(Le,Se)?Le[Se]:void 0)||(Le[Se]={}),Qe=nt[Se];let mt;if(Qe)for(mt in Qe){Ji.call(ze,mt)||(ze[mt]=[]);const Ae=Qe[mt];to(ze[mt],Array.isArray(Ae)?Ae:Ae?[Ae]:[])}}}function to(Le,nt){let Se=-1;const Te=[];for(;++Se<nt.length;)(nt[Se].add==="after"?Le:Te).push(nt[Se]);sr(Le,0,0,Te)}function Ki(Le){const nt={};let Se=-1;for(;++Se<Le.length;)Zr(nt,Le[Se]);return nt}function Zr(Le,nt){let Se;for(Se in nt){const ze=(Ji.call(Le,Se)?Le[Se]:void 0)||(Le[Se]={}),Qe=nt[Se];let mt;if(Qe)for(mt in Qe)ze[mt]=Qe[mt]}}var hi=ae(42761),Ir=ae(15459);const fn={tokenize:Hi};function Hi(Le){const nt=Le.attempt(this.parser.constructs.contentInitial,Te,ze);let Se;return nt;function Te(Ae){if(Ae===null){Le.consume(Ae);return}return Le.enter("lineEnding"),Le.consume(Ae),Le.exit("lineEnding"),(0,hi.f)(Le,nt,"linePrefix")}function ze(Ae){return Le.enter("paragraph"),Qe(Ae)}function Qe(Ae){const De=Le.enter("chunkText",{contentType:"text",previous:Se});return Se&&(Se.next=De),Se=De,mt(Ae)}function mt(Ae){if(Ae===null){Le.exit("chunkText"),Le.exit("paragraph"),Le.consume(Ae);return}return(0,Ir.Ch)(Ae)?(Le.consume(Ae),Le.exit("chunkText"),Qe):(Le.consume(Ae),mt)}}const ao={tokenize:ai},ui={tokenize:Ni};function ai(Le){const nt=this,Se=[];let Te=0,ze,Qe,mt;return Ae;function Ae(mn){if(Te<Se.length){const wn=Se[Te];return nt.containerState=wn[1],Le.attempt(wn[0].continuation,De,qe)(mn)}return qe(mn)}function De(mn){if(Te++,nt.containerState._closeFlow){nt.containerState._closeFlow=void 0,ze&&Yt();const wn=nt.events.length;let On=wn,Tn;for(;On--;)if(nt.events[On][0]==="exit"&&nt.events[On][1].type==="chunkFlow"){Tn=nt.events[On][1].end;break}St(Te);let br=wn;for(;br<nt.events.length;)nt.events[br][1].end=Object.assign({},Tn),br++;return sr(nt.events,On+1,0,nt.events.slice(wn)),nt.events.length=br,qe(mn)}return Ae(mn)}function qe(mn){if(Te===Se.length){if(!ze)return Ut(mn);if(ze.currentConstruct&&ze.currentConstruct.concrete)return se(mn);nt.interrupt=!!(ze.currentConstruct&&!ze._gfmTableDynamicInterruptHack)}return nt.containerState={},Le.check(ui,ot,Lt)(mn)}function ot(mn){return ze&&Yt(),St(Te),Ut(mn)}function Lt(mn){return nt.parser.lazy[nt.now().line]=Te!==Se.length,mt=nt.now().offset,se(mn)}function Ut(mn){return nt.containerState={},Le.attempt(ui,jt,se)(mn)}function jt(mn){return Te++,Se.push([nt.currentConstruct,nt.containerState]),Ut(mn)}function se(mn){if(mn===null){ze&&Yt(),St(0),Le.consume(mn);return}return ze=ze||nt.parser.flow(nt.now()),Le.enter("chunkFlow",{contentType:"flow",previous:Qe,_tokenizer:ze}),fe(mn)}function fe(mn){if(mn===null){je(Le.exit("chunkFlow"),!0),St(0),Le.consume(mn);return}return(0,Ir.Ch)(mn)?(Le.consume(mn),je(Le.exit("chunkFlow")),Te=0,nt.interrupt=void 0,Ae):(Le.consume(mn),fe)}function je(mn,wn){const On=nt.sliceStream(mn);if(wn&&On.push(null),mn.previous=Qe,Qe&&(Qe.next=mn),Qe=mn,ze.defineSkip(mn.start),ze.write(On),nt.parser.lazy[mn.start.line]){let Tn=ze.events.length;for(;Tn--;)if(ze.events[Tn][1].start.offset<mt&&(!ze.events[Tn][1].end||ze.events[Tn][1].end.offset>mt))return;const br=nt.events.length;let Wr=br,di,ii;for(;Wr--;)if(nt.events[Wr][0]==="exit"&&nt.events[Wr][1].type==="chunkFlow"){if(di){ii=nt.events[Wr][1].end;break}di=!0}for(St(Te),Tn=br;Tn<nt.events.length;)nt.events[Tn][1].end=Object.assign({},ii),Tn++;sr(nt.events,Wr+1,0,nt.events.slice(br)),nt.events.length=Tn}}function St(mn){let wn=Se.length;for(;wn-- >mn;){const On=Se[wn];nt.containerState=On[1],On[0].exit.call(nt,Le)}Se.length=mn}function Yt(){ze.write([null]),Qe=void 0,ze=void 0,nt.containerState._closeFlow=void 0}}function Ni(Le,nt,Se){return(0,hi.f)(Le,Le.attempt(this.parser.constructs.document,nt,Se),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const ir={tokenize:We,partial:!0};function We(Le,nt,Se){return Te;function Te(Qe){return(0,Ir.xz)(Qe)?(0,hi.f)(Le,ze,"linePrefix")(Qe):ze(Qe)}function ze(Qe){return Qe===null||(0,Ir.Ch)(Qe)?nt(Qe):Se(Qe)}}const rr={tokenize:Or,resolve:hr},ur={tokenize:jr,partial:!0};function hr(Le){return ri(Le),Le}function Or(Le,nt){let Se;return Te;function Te(Ae){return Le.enter("content"),Se=Le.enter("chunkContent",{contentType:"content"}),ze(Ae)}function ze(Ae){return Ae===null?Qe(Ae):(0,Ir.Ch)(Ae)?Le.check(ur,mt,Qe)(Ae):(Le.consume(Ae),ze)}function Qe(Ae){return Le.exit("chunkContent"),Le.exit("content"),nt(Ae)}function mt(Ae){return Le.consume(Ae),Le.exit("chunkContent"),Se.next=Le.enter("chunkContent",{contentType:"content",previous:Se}),Se=Se.next,ze}}function jr(Le,nt,Se){const Te=this;return ze;function ze(mt){return Le.exit("chunkContent"),Le.enter("lineEnding"),Le.consume(mt),Le.exit("lineEnding"),(0,hi.f)(Le,Qe,"linePrefix")}function Qe(mt){if(mt===null||(0,Ir.Ch)(mt))return Se(mt);const Ae=Te.events[Te.events.length-1];return!Te.parser.constructs.disable.null.includes("codeIndented")&&Ae&&Ae[1].type==="linePrefix"&&Ae[2].sliceSerialize(Ae[1],!0).length>=4?nt(mt):Le.interrupt(Te.parser.constructs.flow,Se,nt)(mt)}}const si={tokenize:Fi};function Fi(Le){const nt=this,Se=Le.attempt(ir,Te,Le.attempt(this.parser.constructs.flowInitial,ze,(0,hi.f)(Le,Le.attempt(this.parser.constructs.flow,ze,Le.attempt(rr,ze)),"linePrefix")));return Se;function Te(Qe){if(Qe===null){Le.consume(Qe);return}return Le.enter("lineEndingBlank"),Le.consume(Qe),Le.exit("lineEndingBlank"),nt.currentConstruct=void 0,Se}function ze(Qe){if(Qe===null){Le.consume(Qe);return}return Le.enter("lineEnding"),Le.consume(Qe),Le.exit("lineEnding"),nt.currentConstruct=void 0,Se}}const Vn={resolveAll:mi()},Wn=tr("string"),vn=tr("text");function tr(Le){return{tokenize:nt,resolveAll:mi(Le==="text"?gi:void 0)};function nt(Se){const Te=this,ze=this.parser.constructs[Le],Qe=Se.attempt(ze,mt,Ae);return mt;function mt(ot){return qe(ot)?Qe(ot):Ae(ot)}function Ae(ot){if(ot===null){Se.consume(ot);return}return Se.enter("data"),Se.consume(ot),De}function De(ot){return qe(ot)?(Se.exit("data"),Qe(ot)):(Se.consume(ot),De)}function qe(ot){if(ot===null)return!0;const Lt=ze[ot];let Ut=-1;if(Lt)for(;++Ut<Lt.length;){const jt=Lt[Ut];if(!jt.previous||jt.previous.call(Te,Te.previous))return!0}return!1}}}function mi(Le){return nt;function nt(Se,Te){let ze=-1,Qe;for(;++ze<=Se.length;)Qe===void 0?Se[ze]&&Se[ze][1].type==="data"&&(Qe=ze,ze++):(!Se[ze]||Se[ze][1].type!=="data")&&(ze!==Qe+2&&(Se[Qe][1].end=Se[ze-1][1].end,Se.splice(Qe+2,ze-Qe-2),ze=Qe+2),Qe=void 0);return Le?Le(Se,Te):Se}}function gi(Le,nt){let Se=0;for(;++Se<=Le.length;)if((Se===Le.length||Le[Se][1].type==="lineEnding")&&Le[Se-1][1].type==="data"){const Te=Le[Se-1][1],ze=nt.sliceStream(Te);let Qe=ze.length,mt=-1,Ae=0,De;for(;Qe--;){const qe=ze[Qe];if(typeof qe=="string"){for(mt=qe.length;qe.charCodeAt(mt-1)===32;)Ae++,mt--;if(mt)break;mt=-1}else if(qe===-2)De=!0,Ae++;else if(qe!==-1){Qe++;break}}if(Ae){const qe={type:Se===Le.length||De||Ae<2?"lineSuffix":"hardBreakTrailing",start:{line:Te.end.line,column:Te.end.column-Ae,offset:Te.end.offset-Ae,_index:Te.start._index+Qe,_bufferIndex:Qe?mt:Te.start._bufferIndex+mt},end:Object.assign({},Te.end)};Te.end=Object.assign({},qe.start),Te.start.offset===Te.end.offset?Object.assign(Te,qe):(Le.splice(Se,0,["enter",qe,nt],["exit",qe,nt]),Se+=2)}Se++}return Le}function ti(Le,nt,Se){const Te=[];let ze=-1;for(;++ze<Le.length;){const Qe=Le[ze].resolveAll;Qe&&!Te.includes(Qe)&&(nt=Qe(nt,Se),Te.push(Qe))}return nt}function Hn(Le,nt,Se){let Te=Object.assign(Se?Object.assign({},Se):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const ze={},Qe=[];let mt=[],Ae=[],De=!0;const qe={consume:wn,enter:On,exit:Tn,attempt:di(br),check:di(Wr),interrupt:di(Wr,{interrupt:!0})},ot={previous:null,code:null,containerState:{},events:[],parser:Le,sliceStream:fe,sliceSerialize:se,now:je,defineSkip:St,write:jt};let Lt=nt.tokenize.call(ot,qe),Ut;return nt.resolveAll&&Qe.push(nt),ot;function jt(cr){return mt=Hr(mt,cr),Yt(),mt[mt.length-1]!==null?[]:(ii(nt,0),ot.events=ti(Qe,ot.events,ot),ot.events)}function se(cr,pi){return Ri(fe(cr),pi)}function fe(cr){return Cr(mt,cr)}function je(){const{line:cr,column:pi,offset:Yr,_index:Li,_bufferIndex:Vi}=Te;return{line:cr,column:pi,offset:Yr,_index:Li,_bufferIndex:Vi}}function St(cr){ze[cr.line]=cr.column,Di()}function Yt(){let cr;for(;Te._index<mt.length;){const pi=mt[Te._index];if(typeof pi=="string")for(cr=Te._index,Te._bufferIndex<0&&(Te._bufferIndex=0);Te._index===cr&&Te._bufferIndex<pi.length;)mn(pi.charCodeAt(Te._bufferIndex));else mn(pi)}}function mn(cr){De=void 0,Ut=cr,Lt=Lt(cr)}function wn(cr){(0,Ir.Ch)(cr)?(Te.line++,Te.column=1,Te.offset+=cr===-3?2:1,Di()):cr!==-1&&(Te.column++,Te.offset++),Te._bufferIndex<0?Te._index++:(Te._bufferIndex++,Te._bufferIndex===mt[Te._index].length&&(Te._bufferIndex=-1,Te._index++)),ot.previous=cr,De=!0}function On(cr,pi){const Yr=pi||{};return Yr.type=cr,Yr.start=je(),ot.events.push(["enter",Yr,ot]),Ae.push(Yr),Yr}function Tn(cr){const pi=Ae.pop();return pi.end=je(),ot.events.push(["exit",pi,ot]),pi}function br(cr,pi){ii(cr,pi.from)}function Wr(cr,pi){pi.restore()}function di(cr,pi){return Yr;function Yr(Li,Vi,bi){let xo,Fn,mo,Ci;return Array.isArray(Li)?Uo(Li):"tokenize"in Li?Uo([Li]):jn(Li);function jn(yo){return ta;function ta(na){const Ha=na!==null&&yo[na],wa=na!==null&&yo.null,ko=[...Array.isArray(Ha)?Ha:Ha?[Ha]:[],...Array.isArray(wa)?wa:wa?[wa]:[]];return Uo(ko)(na)}}function Uo(yo){return xo=yo,Fn=0,yo.length===0?bi:ga(yo[Fn])}function ga(yo){return ta;function ta(na){return Ci=oi(),mo=yo,yo.partial||(ot.currentConstruct=yo),yo.name&&ot.parser.constructs.disable.null.includes(yo.name)?$i(na):yo.tokenize.call(pi?Object.assign(Object.create(ot),pi):ot,qe,ca,$i)(na)}}function ca(yo){return De=!0,cr(mo,Ci),Vi}function $i(yo){return De=!0,Ci.restore(),++Fn<xo.length?ga(xo[Fn]):bi}}}function ii(cr,pi){cr.resolveAll&&!Qe.includes(cr)&&Qe.push(cr),cr.resolve&&sr(ot.events,pi,ot.events.length-pi,cr.resolve(ot.events.slice(pi),ot)),cr.resolveTo&&(ot.events=cr.resolveTo(ot.events,ot))}function oi(){const cr=je(),pi=ot.previous,Yr=ot.currentConstruct,Li=ot.events.length,Vi=Array.from(Ae);return{restore:bi,from:Li};function bi(){Te=cr,ot.previous=pi,ot.currentConstruct=Yr,ot.events.length=Li,Ae=Vi,Di()}}function Di(){Te.line in ze&&Te.column<2&&(Te.column=ze[Te.line],Te.offset+=ze[Te.line]-1)}}function Cr(Le,nt){const Se=nt.start._index,Te=nt.start._bufferIndex,ze=nt.end._index,Qe=nt.end._bufferIndex;let mt;if(Se===ze)mt=[Le[Se].slice(Te,Qe)];else{if(mt=Le.slice(Se,ze),Te>-1){const Ae=mt[0];typeof Ae=="string"?mt[0]=Ae.slice(Te):mt.shift()}Qe>0&&mt.push(Le[ze].slice(0,Qe))}return mt}function Ri(Le,nt){let Se=-1;const Te=[];let ze;for(;++Se<Le.length;){const Qe=Le[Se];let mt;if(typeof Qe=="string")mt=Qe;else switch(Qe){case-5:{mt="\r";break}case-4:{mt=`
|
|
|
`;break}case-3:{mt=`\r
|
|
|
`;break}case-2:{mt=nt?" ":" ";break}case-1:{if(!nt&&ze)continue;mt=" ";break}default:mt=String.fromCharCode(Qe)}ze=Qe===-2,Te.push(mt)}return Te.join("")}const _i={name:"thematicBreak",tokenize:Ur};function Ur(Le,nt,Se){let Te=0,ze;return Qe;function Qe(qe){return Le.enter("thematicBreak"),mt(qe)}function mt(qe){return ze=qe,Ae(qe)}function Ae(qe){return qe===ze?(Le.enter("thematicBreakSequence"),De(qe)):Te>=3&&(qe===null||(0,Ir.Ch)(qe))?(Le.exit("thematicBreak"),nt(qe)):Se(qe)}function De(qe){return qe===ze?(Le.consume(qe),Te++,De):(Le.exit("thematicBreakSequence"),(0,Ir.xz)(qe)?(0,hi.f)(Le,Ae,"whitespace")(qe):Ae(qe))}}const Pn={name:"list",tokenize:Xo,continuation:{tokenize:wr},exit:Jr},xi={tokenize:ls,partial:!0},ji={tokenize:Gi,partial:!0};function Xo(Le,nt,Se){const Te=this,ze=Te.events[Te.events.length-1];let Qe=ze&&ze[1].type==="linePrefix"?ze[2].sliceSerialize(ze[1],!0).length:0,mt=0;return Ae;function Ae(jt){const se=Te.containerState.type||(jt===42||jt===43||jt===45?"listUnordered":"listOrdered");if(se==="listUnordered"?!Te.containerState.marker||jt===Te.containerState.marker:(0,Ir.pY)(jt)){if(Te.containerState.type||(Te.containerState.type=se,Le.enter(se,{_container:!0})),se==="listUnordered")return Le.enter("listItemPrefix"),jt===42||jt===45?Le.check(_i,Se,qe)(jt):qe(jt);if(!Te.interrupt||jt===49)return Le.enter("listItemPrefix"),Le.enter("listItemValue"),De(jt)}return Se(jt)}function De(jt){return(0,Ir.pY)(jt)&&++mt<10?(Le.consume(jt),De):(!Te.interrupt||mt<2)&&(Te.containerState.marker?jt===Te.containerState.marker:jt===41||jt===46)?(Le.exit("listItemValue"),qe(jt)):Se(jt)}function qe(jt){return Le.enter("listItemMarker"),Le.consume(jt),Le.exit("listItemMarker"),Te.containerState.marker=Te.containerState.marker||jt,Le.check(ir,Te.interrupt?Se:ot,Le.attempt(xi,Ut,Lt))}function ot(jt){return Te.containerState.initialBlankLine=!0,Qe++,Ut(jt)}function Lt(jt){return(0,Ir.xz)(jt)?(Le.enter("listItemPrefixWhitespace"),Le.consume(jt),Le.exit("listItemPrefixWhitespace"),Ut):Se(jt)}function Ut(jt){return Te.containerState.size=Qe+Te.sliceSerialize(Le.exit("listItemPrefix"),!0).length,nt(jt)}}function wr(Le,nt,Se){const Te=this;return Te.containerState._closeFlow=void 0,Le.check(ir,ze,Qe);function ze(Ae){return Te.containerState.furtherBlankLines=Te.containerState.furtherBlankLines||Te.containerState.initialBlankLine,(0,hi.f)(Le,nt,"listItemIndent",Te.containerState.size+1)(Ae)}function Qe(Ae){return Te.containerState.furtherBlankLines||!(0,Ir.xz)(Ae)?(Te.containerState.furtherBlankLines=void 0,Te.containerState.initialBlankLine=void 0,mt(Ae)):(Te.containerState.furtherBlankLines=void 0,Te.containerState.initialBlankLine=void 0,Le.attempt(ji,nt,mt)(Ae))}function mt(Ae){return Te.containerState._closeFlow=!0,Te.interrupt=void 0,(0,hi.f)(Le,Le.attempt(Pn,nt,Se),"linePrefix",Te.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Ae)}}function Gi(Le,nt,Se){const Te=this;return(0,hi.f)(Le,ze,"listItemIndent",Te.containerState.size+1);function ze(Qe){const mt=Te.events[Te.events.length-1];return mt&&mt[1].type==="listItemIndent"&&mt[2].sliceSerialize(mt[1],!0).length===Te.containerState.size?nt(Qe):Se(Qe)}}function Jr(Le){Le.exit(this.containerState.type)}function ls(Le,nt,Se){const Te=this;return(0,hi.f)(Le,ze,"listItemPrefixWhitespace",Te.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function ze(Qe){const mt=Te.events[Te.events.length-1];return!(0,Ir.xz)(Qe)&&mt&&mt[1].type==="listItemPrefixWhitespace"?nt(Qe):Se(Qe)}}const Pa={name:"blockQuote",tokenize:Oi,continuation:{tokenize:Yi},exit:uo};function Oi(Le,nt,Se){const Te=this;return ze;function ze(mt){if(mt===62){const Ae=Te.containerState;return Ae.open||(Le.enter("blockQuote",{_container:!0}),Ae.open=!0),Le.enter("blockQuotePrefix"),Le.enter("blockQuoteMarker"),Le.consume(mt),Le.exit("blockQuoteMarker"),Qe}return Se(mt)}function Qe(mt){return(0,Ir.xz)(mt)?(Le.enter("blockQuotePrefixWhitespace"),Le.consume(mt),Le.exit("blockQuotePrefixWhitespace"),Le.exit("blockQuotePrefix"),nt):(Le.exit("blockQuotePrefix"),nt(mt))}}function Yi(Le,nt,Se){const Te=this;return ze;function ze(mt){return(0,Ir.xz)(mt)?(0,hi.f)(Le,Qe,"linePrefix",Te.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(mt):Qe(mt)}function Qe(mt){return Le.attempt(Pa,nt,Se)(mt)}}function uo(Le){Le.exit("blockQuote")}function ba(Le,nt,Se,Te,ze,Qe,mt,Ae,De){const qe=De||Number.POSITIVE_INFINITY;let ot=0;return Lt;function Lt(St){return St===60?(Le.enter(Te),Le.enter(ze),Le.enter(Qe),Le.consume(St),Le.exit(Qe),Ut):St===null||St===32||St===41||(0,Ir.Av)(St)?Se(St):(Le.enter(Te),Le.enter(mt),Le.enter(Ae),Le.enter("chunkString",{contentType:"string"}),fe(St))}function Ut(St){return St===62?(Le.enter(Qe),Le.consume(St),Le.exit(Qe),Le.exit(ze),Le.exit(Te),nt):(Le.enter(Ae),Le.enter("chunkString",{contentType:"string"}),jt(St))}function jt(St){return St===62?(Le.exit("chunkString"),Le.exit(Ae),Ut(St)):St===null||St===60||(0,Ir.Ch)(St)?Se(St):(Le.consume(St),St===92?se:jt)}function se(St){return St===60||St===62||St===92?(Le.consume(St),jt):jt(St)}function fe(St){return!ot&&(St===null||St===41||(0,Ir.z3)(St))?(Le.exit("chunkString"),Le.exit(Ae),Le.exit(mt),Le.exit(Te),nt(St)):ot<qe&&St===40?(Le.consume(St),ot++,fe):St===41?(Le.consume(St),ot--,fe):St===null||St===32||St===40||(0,Ir.Av)(St)?Se(St):(Le.consume(St),St===92?je:fe)}function je(St){return St===40||St===41||St===92?(Le.consume(St),fe):fe(St)}}function Go(Le,nt,Se,Te,ze,Qe){const mt=this;let Ae=0,De;return qe;function qe(jt){return Le.enter(Te),Le.enter(ze),Le.consume(jt),Le.exit(ze),Le.enter(Qe),ot}function ot(jt){return Ae>999||jt===null||jt===91||jt===93&&!De||jt===94&&!Ae&&"_hiddenFootnoteSupport"in mt.parser.constructs?Se(jt):jt===93?(Le.exit(Qe),Le.enter(ze),Le.consume(jt),Le.exit(ze),Le.exit(Te),nt):(0,Ir.Ch)(jt)?(Le.enter("lineEnding"),Le.consume(jt),Le.exit("lineEnding"),ot):(Le.enter("chunkString",{contentType:"string"}),Lt(jt))}function Lt(jt){return jt===null||jt===91||jt===93||(0,Ir.Ch)(jt)||Ae++>999?(Le.exit("chunkString"),ot(jt)):(Le.consume(jt),De||(De=!(0,Ir.xz)(jt)),jt===92?Ut:Lt)}function Ut(jt){return jt===91||jt===92||jt===93?(Le.consume(jt),Ae++,Lt):Lt(jt)}}function zr(Le,nt,Se,Te,ze,Qe){let mt;return Ae;function Ae(Ut){return Ut===34||Ut===39||Ut===40?(Le.enter(Te),Le.enter(ze),Le.consume(Ut),Le.exit(ze),mt=Ut===40?41:Ut,De):Se(Ut)}function De(Ut){return Ut===mt?(Le.enter(ze),Le.consume(Ut),Le.exit(ze),Le.exit(Te),nt):(Le.enter(Qe),qe(Ut))}function qe(Ut){return Ut===mt?(Le.exit(Qe),De(mt)):Ut===null?Se(Ut):(0,Ir.Ch)(Ut)?(Le.enter("lineEnding"),Le.consume(Ut),Le.exit("lineEnding"),(0,hi.f)(Le,qe,"linePrefix")):(Le.enter("chunkString",{contentType:"string"}),ot(Ut))}function ot(Ut){return Ut===mt||Ut===null||(0,Ir.Ch)(Ut)?(Le.exit("chunkString"),qe(Ut)):(Le.consume(Ut),Ut===92?Lt:ot)}function Lt(Ut){return Ut===mt||Ut===92?(Le.consume(Ut),ot):ot(Ut)}}function vo(Le,nt){let Se;return Te;function Te(ze){return(0,Ir.Ch)(ze)?(Le.enter("lineEnding"),Le.consume(ze),Le.exit("lineEnding"),Se=!0,Te):(0,Ir.xz)(ze)?(0,hi.f)(Le,Te,Se?"linePrefix":"lineSuffix")(ze):nt(ze)}}function sl(Le){return Le.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const gs={name:"definition",tokenize:Mn},es={tokenize:Co,partial:!0};function Mn(Le,nt,Se){const Te=this;let ze;return Qe;function Qe(jt){return Le.enter("definition"),mt(jt)}function mt(jt){return Go.call(Te,Le,Ae,Se,"definitionLabel","definitionLabelMarker","definitionLabelString")(jt)}function Ae(jt){return ze=sl(Te.sliceSerialize(Te.events[Te.events.length-1][1]).slice(1,-1)),jt===58?(Le.enter("definitionMarker"),Le.consume(jt),Le.exit("definitionMarker"),De):Se(jt)}function De(jt){return(0,Ir.z3)(jt)?vo(Le,qe)(jt):qe(jt)}function qe(jt){return ba(Le,ot,Se,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(jt)}function ot(jt){return Le.attempt(es,Lt,Lt)(jt)}function Lt(jt){return(0,Ir.xz)(jt)?(0,hi.f)(Le,Ut,"whitespace")(jt):Ut(jt)}function Ut(jt){return jt===null||(0,Ir.Ch)(jt)?(Le.exit("definition"),Te.parser.defined.push(ze),nt(jt)):Se(jt)}}function Co(Le,nt,Se){return Te;function Te(Ae){return(0,Ir.z3)(Ae)?vo(Le,ze)(Ae):Se(Ae)}function ze(Ae){return zr(Le,Qe,Se,"definitionTitle","definitionTitleMarker","definitionTitleString")(Ae)}function Qe(Ae){return(0,Ir.xz)(Ae)?(0,hi.f)(Le,mt,"whitespace")(Ae):mt(Ae)}function mt(Ae){return Ae===null||(0,Ir.Ch)(Ae)?nt(Ae):Se(Ae)}}const Ta={name:"codeIndented",tokenize:oa},lo={tokenize:fa,partial:!0};function oa(Le,nt,Se){const Te=this;return ze;function ze(qe){return Le.enter("codeIndented"),(0,hi.f)(Le,Qe,"linePrefix",5)(qe)}function Qe(qe){const ot=Te.events[Te.events.length-1];return ot&&ot[1].type==="linePrefix"&&ot[2].sliceSerialize(ot[1],!0).length>=4?mt(qe):Se(qe)}function mt(qe){return qe===null?De(qe):(0,Ir.Ch)(qe)?Le.attempt(lo,mt,De)(qe):(Le.enter("codeFlowValue"),Ae(qe))}function Ae(qe){return qe===null||(0,Ir.Ch)(qe)?(Le.exit("codeFlowValue"),mt(qe)):(Le.consume(qe),Ae)}function De(qe){return Le.exit("codeIndented"),nt(qe)}}function fa(Le,nt,Se){const Te=this;return ze;function ze(mt){return Te.parser.lazy[Te.now().line]?Se(mt):(0,Ir.Ch)(mt)?(Le.enter("lineEnding"),Le.consume(mt),Le.exit("lineEnding"),ze):(0,hi.f)(Le,Qe,"linePrefix",5)(mt)}function Qe(mt){const Ae=Te.events[Te.events.length-1];return Ae&&Ae[1].type==="linePrefix"&&Ae[2].sliceSerialize(Ae[1],!0).length>=4?nt(mt):(0,Ir.Ch)(mt)?ze(mt):Se(mt)}}const Ka={name:"headingAtx",tokenize:aa,resolve:qo};function qo(Le,nt){let Se=Le.length-2,Te=3,ze,Qe;return Le[Te][1].type==="whitespace"&&(Te+=2),Se-2>Te&&Le[Se][1].type==="whitespace"&&(Se-=2),Le[Se][1].type==="atxHeadingSequence"&&(Te===Se-1||Se-4>Te&&Le[Se-2][1].type==="whitespace")&&(Se-=Te+1===Se?2:4),Se>Te&&(ze={type:"atxHeadingText",start:Le[Te][1].start,end:Le[Se][1].end},Qe={type:"chunkText",start:Le[Te][1].start,end:Le[Se][1].end,contentType:"text"},sr(Le,Te,Se-Te+1,[["enter",ze,nt],["enter",Qe,nt],["exit",Qe,nt],["exit",ze,nt]])),Le}function aa(Le,nt,Se){let Te=0;return ze;function ze(ot){return Le.enter("atxHeading"),Qe(ot)}function Qe(ot){return Le.enter("atxHeadingSequence"),mt(ot)}function mt(ot){return ot===35&&Te++<6?(Le.consume(ot),mt):ot===null||(0,Ir.z3)(ot)?(Le.exit("atxHeadingSequence"),Ae(ot)):Se(ot)}function Ae(ot){return ot===35?(Le.enter("atxHeadingSequence"),De(ot)):ot===null||(0,Ir.Ch)(ot)?(Le.exit("atxHeading"),nt(ot)):(0,Ir.xz)(ot)?(0,hi.f)(Le,Ae,"whitespace")(ot):(Le.enter("atxHeadingText"),qe(ot))}function De(ot){return ot===35?(Le.consume(ot),De):(Le.exit("atxHeadingSequence"),Ae(ot))}function qe(ot){return ot===null||ot===35||(0,Ir.z3)(ot)?(Le.exit("atxHeadingText"),Ae(ot)):(Le.consume(ot),qe)}}const za={name:"setextUnderline",tokenize:us,resolveTo:Ar};function Ar(Le,nt){let Se=Le.length,Te,ze,Qe;for(;Se--;)if(Le[Se][0]==="enter"){if(Le[Se][1].type==="content"){Te=Se;break}Le[Se][1].type==="paragraph"&&(ze=Se)}else Le[Se][1].type==="content"&&Le.splice(Se,1),!Qe&&Le[Se][1].type==="definition"&&(Qe=Se);const mt={type:"setextHeading",start:Object.assign({},Le[ze][1].start),end:Object.assign({},Le[Le.length-1][1].end)};return Le[ze][1].type="setextHeadingText",Qe?(Le.splice(ze,0,["enter",mt,nt]),Le.splice(Qe+1,0,["exit",Le[Te][1],nt]),Le[Te][1].end=Object.assign({},Le[Qe][1].end)):Le[Te][1]=mt,Le.push(["exit",mt,nt]),Le}function us(Le,nt,Se){const Te=this;let ze;return Qe;function Qe(qe){let ot=Te.events.length,Lt;for(;ot--;)if(Te.events[ot][1].type!=="lineEnding"&&Te.events[ot][1].type!=="linePrefix"&&Te.events[ot][1].type!=="content"){Lt=Te.events[ot][1].type==="paragraph";break}return!Te.parser.lazy[Te.now().line]&&(Te.interrupt||Lt)?(Le.enter("setextHeadingLine"),ze=qe,mt(qe)):Se(qe)}function mt(qe){return Le.enter("setextHeadingLineSequence"),Ae(qe)}function Ae(qe){return qe===ze?(Le.consume(qe),Ae):(Le.exit("setextHeadingLineSequence"),(0,Ir.xz)(qe)?(0,hi.f)(Le,De,"lineSuffix")(qe):De(qe))}function De(qe){return qe===null||(0,Ir.Ch)(qe)?(Le.exit("setextHeadingLine"),nt(qe)):Se(qe)}}const qt=["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"],At=["pre","script","style","textarea"],Nr={name:"htmlFlow",tokenize:Xn,resolveTo:En,concrete:!0},Qt={tokenize:vi,partial:!0},ln={tokenize:Rr,partial:!0};function En(Le){let nt=Le.length;for(;nt--&&!(Le[nt][0]==="enter"&&Le[nt][1].type==="htmlFlow"););return nt>1&&Le[nt-2][1].type==="linePrefix"&&(Le[nt][1].start=Le[nt-2][1].start,Le[nt+1][1].start=Le[nt-2][1].start,Le.splice(nt-2,2)),Le}function Xn(Le,nt,Se){const Te=this;let ze,Qe,mt,Ae,De;return qe;function qe(jn){return ot(jn)}function ot(jn){return Le.enter("htmlFlow"),Le.enter("htmlFlowData"),Le.consume(jn),Lt}function Lt(jn){return jn===33?(Le.consume(jn),Ut):jn===47?(Le.consume(jn),Qe=!0,fe):jn===63?(Le.consume(jn),ze=3,Te.interrupt?nt:Fn):(0,Ir.jv)(jn)?(Le.consume(jn),mt=String.fromCharCode(jn),je):Se(jn)}function Ut(jn){return jn===45?(Le.consume(jn),ze=2,jt):jn===91?(Le.consume(jn),ze=5,Ae=0,se):(0,Ir.jv)(jn)?(Le.consume(jn),ze=4,Te.interrupt?nt:Fn):Se(jn)}function jt(jn){return jn===45?(Le.consume(jn),Te.interrupt?nt:Fn):Se(jn)}function se(jn){const Uo="CDATA[";return jn===Uo.charCodeAt(Ae++)?(Le.consume(jn),Ae===Uo.length?Te.interrupt?nt:Di:se):Se(jn)}function fe(jn){return(0,Ir.jv)(jn)?(Le.consume(jn),mt=String.fromCharCode(jn),je):Se(jn)}function je(jn){if(jn===null||jn===47||jn===62||(0,Ir.z3)(jn)){const Uo=jn===47,ga=mt.toLowerCase();return!Uo&&!Qe&&At.includes(ga)?(ze=1,Te.interrupt?nt(jn):Di(jn)):qt.includes(mt.toLowerCase())?(ze=6,Uo?(Le.consume(jn),St):Te.interrupt?nt(jn):Di(jn)):(ze=7,Te.interrupt&&!Te.parser.lazy[Te.now().line]?Se(jn):Qe?Yt(jn):mn(jn))}return jn===45||(0,Ir.H$)(jn)?(Le.consume(jn),mt+=String.fromCharCode(jn),je):Se(jn)}function St(jn){return jn===62?(Le.consume(jn),Te.interrupt?nt:Di):Se(jn)}function Yt(jn){return(0,Ir.xz)(jn)?(Le.consume(jn),Yt):ii(jn)}function mn(jn){return jn===47?(Le.consume(jn),ii):jn===58||jn===95||(0,Ir.jv)(jn)?(Le.consume(jn),wn):(0,Ir.xz)(jn)?(Le.consume(jn),mn):ii(jn)}function wn(jn){return jn===45||jn===46||jn===58||jn===95||(0,Ir.H$)(jn)?(Le.consume(jn),wn):On(jn)}function On(jn){return jn===61?(Le.consume(jn),Tn):(0,Ir.xz)(jn)?(Le.consume(jn),On):mn(jn)}function Tn(jn){return jn===null||jn===60||jn===61||jn===62||jn===96?Se(jn):jn===34||jn===39?(Le.consume(jn),De=jn,br):(0,Ir.xz)(jn)?(Le.consume(jn),Tn):Wr(jn)}function br(jn){return jn===De?(Le.consume(jn),De=null,di):jn===null||(0,Ir.Ch)(jn)?Se(jn):(Le.consume(jn),br)}function Wr(jn){return jn===null||jn===34||jn===39||jn===47||jn===60||jn===61||jn===62||jn===96||(0,Ir.z3)(jn)?On(jn):(Le.consume(jn),Wr)}function di(jn){return jn===47||jn===62||(0,Ir.xz)(jn)?mn(jn):Se(jn)}function ii(jn){return jn===62?(Le.consume(jn),oi):Se(jn)}function oi(jn){return jn===null||(0,Ir.Ch)(jn)?Di(jn):(0,Ir.xz)(jn)?(Le.consume(jn),oi):Se(jn)}function Di(jn){return jn===45&&ze===2?(Le.consume(jn),Li):jn===60&&ze===1?(Le.consume(jn),Vi):jn===62&&ze===4?(Le.consume(jn),mo):jn===63&&ze===3?(Le.consume(jn),Fn):jn===93&&ze===5?(Le.consume(jn),xo):(0,Ir.Ch)(jn)&&(ze===6||ze===7)?(Le.exit("htmlFlowData"),Le.check(Qt,Ci,cr)(jn)):jn===null||(0,Ir.Ch)(jn)?(Le.exit("htmlFlowData"),cr(jn)):(Le.consume(jn),Di)}function cr(jn){return Le.check(ln,pi,Ci)(jn)}function pi(jn){return Le.enter("lineEnding"),Le.consume(jn),Le.exit("lineEnding"),Yr}function Yr(jn){return jn===null||(0,Ir.Ch)(jn)?cr(jn):(Le.enter("htmlFlowData"),Di(jn))}function Li(jn){return jn===45?(Le.consume(jn),Fn):Di(jn)}function Vi(jn){return jn===47?(Le.consume(jn),mt="",bi):Di(jn)}function bi(jn){if(jn===62){const Uo=mt.toLowerCase();return At.includes(Uo)?(Le.consume(jn),mo):Di(jn)}return(0,Ir.jv)(jn)&&mt.length<8?(Le.consume(jn),mt+=String.fromCharCode(jn),bi):Di(jn)}function xo(jn){return jn===93?(Le.consume(jn),Fn):Di(jn)}function Fn(jn){return jn===62?(Le.consume(jn),mo):jn===45&&ze===2?(Le.consume(jn),Fn):Di(jn)}function mo(jn){return jn===null||(0,Ir.Ch)(jn)?(Le.exit("htmlFlowData"),Ci(jn)):(Le.consume(jn),mo)}function Ci(jn){return Le.exit("htmlFlow"),nt(jn)}}function Rr(Le,nt,Se){const Te=this;return ze;function ze(mt){return(0,Ir.Ch)(mt)?(Le.enter("lineEnding"),Le.consume(mt),Le.exit("lineEnding"),Qe):Se(mt)}function Qe(mt){return Te.parser.lazy[Te.now().line]?Se(mt):nt(mt)}}function vi(Le,nt,Se){return Te;function Te(ze){return Le.enter("lineEnding"),Le.consume(ze),Le.exit("lineEnding"),Le.attempt(ir,nt,Se)}}const ni={tokenize:Po,partial:!0},xr={name:"codeFenced",tokenize:xt,concrete:!0};function xt(Le,nt,Se){const Te=this,ze={tokenize:On,partial:!0};let Qe=0,mt=0,Ae;return De;function De(Tn){return qe(Tn)}function qe(Tn){const br=Te.events[Te.events.length-1];return Qe=br&&br[1].type==="linePrefix"?br[2].sliceSerialize(br[1],!0).length:0,Ae=Tn,Le.enter("codeFenced"),Le.enter("codeFencedFence"),Le.enter("codeFencedFenceSequence"),ot(Tn)}function ot(Tn){return Tn===Ae?(mt++,Le.consume(Tn),ot):mt<3?Se(Tn):(Le.exit("codeFencedFenceSequence"),(0,Ir.xz)(Tn)?(0,hi.f)(Le,Lt,"whitespace")(Tn):Lt(Tn))}function Lt(Tn){return Tn===null||(0,Ir.Ch)(Tn)?(Le.exit("codeFencedFence"),Te.interrupt?nt(Tn):Le.check(ni,fe,wn)(Tn)):(Le.enter("codeFencedFenceInfo"),Le.enter("chunkString",{contentType:"string"}),Ut(Tn))}function Ut(Tn){return Tn===null||(0,Ir.Ch)(Tn)?(Le.exit("chunkString"),Le.exit("codeFencedFenceInfo"),Lt(Tn)):(0,Ir.xz)(Tn)?(Le.exit("chunkString"),Le.exit("codeFencedFenceInfo"),(0,hi.f)(Le,jt,"whitespace")(Tn)):Tn===96&&Tn===Ae?Se(Tn):(Le.consume(Tn),Ut)}function jt(Tn){return Tn===null||(0,Ir.Ch)(Tn)?Lt(Tn):(Le.enter("codeFencedFenceMeta"),Le.enter("chunkString",{contentType:"string"}),se(Tn))}function se(Tn){return Tn===null||(0,Ir.Ch)(Tn)?(Le.exit("chunkString"),Le.exit("codeFencedFenceMeta"),Lt(Tn)):Tn===96&&Tn===Ae?Se(Tn):(Le.consume(Tn),se)}function fe(Tn){return Le.attempt(ze,wn,je)(Tn)}function je(Tn){return Le.enter("lineEnding"),Le.consume(Tn),Le.exit("lineEnding"),St}function St(Tn){return Qe>0&&(0,Ir.xz)(Tn)?(0,hi.f)(Le,Yt,"linePrefix",Qe+1)(Tn):Yt(Tn)}function Yt(Tn){return Tn===null||(0,Ir.Ch)(Tn)?Le.check(ni,fe,wn)(Tn):(Le.enter("codeFlowValue"),mn(Tn))}function mn(Tn){return Tn===null||(0,Ir.Ch)(Tn)?(Le.exit("codeFlowValue"),Yt(Tn)):(Le.consume(Tn),mn)}function wn(Tn){return Le.exit("codeFenced"),nt(Tn)}function On(Tn,br,Wr){let di=0;return ii;function ii(Yr){return Tn.enter("lineEnding"),Tn.consume(Yr),Tn.exit("lineEnding"),oi}function oi(Yr){return Tn.enter("codeFencedFence"),(0,Ir.xz)(Yr)?(0,hi.f)(Tn,Di,"linePrefix",Te.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Yr):Di(Yr)}function Di(Yr){return Yr===Ae?(Tn.enter("codeFencedFenceSequence"),cr(Yr)):Wr(Yr)}function cr(Yr){return Yr===Ae?(di++,Tn.consume(Yr),cr):di>=mt?(Tn.exit("codeFencedFenceSequence"),(0,Ir.xz)(Yr)?(0,hi.f)(Tn,pi,"whitespace")(Yr):pi(Yr)):Wr(Yr)}function pi(Yr){return Yr===null||(0,Ir.Ch)(Yr)?(Tn.exit("codeFencedFence"),br(Yr)):Wr(Yr)}}}function Po(Le,nt,Se){const Te=this;return ze;function ze(mt){return mt===null?Se(mt):(Le.enter("lineEnding"),Le.consume(mt),Le.exit("lineEnding"),Qe)}function Qe(mt){return Te.parser.lazy[Te.now().line]?Se(mt):nt(mt)}}const zo=document.createElement("i");function ya(Le){const nt="&"+Le+";";zo.innerHTML=nt;const Se=zo.textContent;return Se.charCodeAt(Se.length-1)===59&&Le!=="semi"||Se===nt?!1:Se}const xa={name:"characterReference",tokenize:Sa};function Sa(Le,nt,Se){const Te=this;let ze=0,Qe,mt;return Ae;function Ae(Lt){return Le.enter("characterReference"),Le.enter("characterReferenceMarker"),Le.consume(Lt),Le.exit("characterReferenceMarker"),De}function De(Lt){return Lt===35?(Le.enter("characterReferenceMarkerNumeric"),Le.consume(Lt),Le.exit("characterReferenceMarkerNumeric"),qe):(Le.enter("characterReferenceValue"),Qe=31,mt=Ir.H$,ot(Lt))}function qe(Lt){return Lt===88||Lt===120?(Le.enter("characterReferenceMarkerHexadecimal"),Le.consume(Lt),Le.exit("characterReferenceMarkerHexadecimal"),Le.enter("characterReferenceValue"),Qe=6,mt=Ir.AF,ot):(Le.enter("characterReferenceValue"),Qe=7,mt=Ir.pY,ot(Lt))}function ot(Lt){if(Lt===59&&ze){const Ut=Le.exit("characterReferenceValue");return mt===Ir.H$&&!ya(Te.sliceSerialize(Ut))?Se(Lt):(Le.enter("characterReferenceMarker"),Le.consume(Lt),Le.exit("characterReferenceMarker"),Le.exit("characterReference"),nt)}return mt(Lt)&&ze++<Qe?(Le.consume(Lt),ot):Se(Lt)}}const ha={name:"characterEscape",tokenize:Gt};function Gt(Le,nt,Se){return Te;function Te(Qe){return Le.enter("characterEscape"),Le.enter("escapeMarker"),Le.consume(Qe),Le.exit("escapeMarker"),ze}function ze(Qe){return(0,Ir.sR)(Qe)?(Le.enter("characterEscapeValue"),Le.consume(Qe),Le.exit("characterEscapeValue"),Le.exit("characterEscape"),nt):Se(Qe)}}const fr={name:"lineEnding",tokenize:pr};function pr(Le,nt){return Se;function Se(Te){return Le.enter("lineEnding"),Le.consume(Te),Le.exit("lineEnding"),(0,hi.f)(Le,nt,"linePrefix")}}const Tr={name:"labelEnd",tokenize:Vr,resolveTo:mr,resolveAll:sn},Ln={tokenize:no},or={tokenize:Xi},vr={tokenize:zi};function sn(Le){let nt=-1;for(;++nt<Le.length;){const Se=Le[nt][1];(Se.type==="labelImage"||Se.type==="labelLink"||Se.type==="labelEnd")&&(Le.splice(nt+1,Se.type==="labelImage"?4:2),Se.type="data",nt++)}return Le}function mr(Le,nt){let Se=Le.length,Te=0,ze,Qe,mt,Ae;for(;Se--;)if(ze=Le[Se][1],Qe){if(ze.type==="link"||ze.type==="labelLink"&&ze._inactive)break;Le[Se][0]==="enter"&&ze.type==="labelLink"&&(ze._inactive=!0)}else if(mt){if(Le[Se][0]==="enter"&&(ze.type==="labelImage"||ze.type==="labelLink")&&!ze._balanced&&(Qe=Se,ze.type!=="labelLink")){Te=2;break}}else ze.type==="labelEnd"&&(mt=Se);const De={type:Le[Qe][1].type==="labelLink"?"link":"image",start:Object.assign({},Le[Qe][1].start),end:Object.assign({},Le[Le.length-1][1].end)},qe={type:"label",start:Object.assign({},Le[Qe][1].start),end:Object.assign({},Le[mt][1].end)},ot={type:"labelText",start:Object.assign({},Le[Qe+Te+2][1].end),end:Object.assign({},Le[mt-2][1].start)};return Ae=[["enter",De,nt],["enter",qe,nt]],Ae=Hr(Ae,Le.slice(Qe+1,Qe+Te+3)),Ae=Hr(Ae,[["enter",ot,nt]]),Ae=Hr(Ae,ti(nt.parser.constructs.insideSpan.null,Le.slice(Qe+Te+4,mt-3),nt)),Ae=Hr(Ae,[["exit",ot,nt],Le[mt-2],Le[mt-1],["exit",qe,nt]]),Ae=Hr(Ae,Le.slice(mt+1)),Ae=Hr(Ae,[["exit",De,nt]]),sr(Le,Qe,Le.length,Ae),Le}function Vr(Le,nt,Se){const Te=this;let ze=Te.events.length,Qe,mt;for(;ze--;)if((Te.events[ze][1].type==="labelImage"||Te.events[ze][1].type==="labelLink")&&!Te.events[ze][1]._balanced){Qe=Te.events[ze][1];break}return Ae;function Ae(Ut){return Qe?Qe._inactive?Lt(Ut):(mt=Te.parser.defined.includes(sl(Te.sliceSerialize({start:Qe.end,end:Te.now()}))),Le.enter("labelEnd"),Le.enter("labelMarker"),Le.consume(Ut),Le.exit("labelMarker"),Le.exit("labelEnd"),De):Se(Ut)}function De(Ut){return Ut===40?Le.attempt(Ln,ot,mt?ot:Lt)(Ut):Ut===91?Le.attempt(or,ot,mt?qe:Lt)(Ut):mt?ot(Ut):Lt(Ut)}function qe(Ut){return Le.attempt(vr,ot,Lt)(Ut)}function ot(Ut){return nt(Ut)}function Lt(Ut){return Qe._balanced=!0,Se(Ut)}}function no(Le,nt,Se){return Te;function Te(Lt){return Le.enter("resource"),Le.enter("resourceMarker"),Le.consume(Lt),Le.exit("resourceMarker"),ze}function ze(Lt){return(0,Ir.z3)(Lt)?vo(Le,Qe)(Lt):Qe(Lt)}function Qe(Lt){return Lt===41?ot(Lt):ba(Le,mt,Ae,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(Lt)}function mt(Lt){return(0,Ir.z3)(Lt)?vo(Le,De)(Lt):ot(Lt)}function Ae(Lt){return Se(Lt)}function De(Lt){return Lt===34||Lt===39||Lt===40?zr(Le,qe,Se,"resourceTitle","resourceTitleMarker","resourceTitleString")(Lt):ot(Lt)}function qe(Lt){return(0,Ir.z3)(Lt)?vo(Le,ot)(Lt):ot(Lt)}function ot(Lt){return Lt===41?(Le.enter("resourceMarker"),Le.consume(Lt),Le.exit("resourceMarker"),Le.exit("resource"),nt):Se(Lt)}}function Xi(Le,nt,Se){const Te=this;return ze;function ze(Ae){return Go.call(Te,Le,Qe,mt,"reference","referenceMarker","referenceString")(Ae)}function Qe(Ae){return Te.parser.defined.includes(sl(Te.sliceSerialize(Te.events[Te.events.length-1][1]).slice(1,-1)))?nt(Ae):Se(Ae)}function mt(Ae){return Se(Ae)}}function zi(Le,nt,Se){return Te;function Te(Qe){return Le.enter("reference"),Le.enter("referenceMarker"),Le.consume(Qe),Le.exit("referenceMarker"),ze}function ze(Qe){return Qe===93?(Le.enter("referenceMarker"),Le.consume(Qe),Le.exit("referenceMarker"),Le.exit("reference"),nt):Se(Qe)}}const _o={name:"labelStartImage",tokenize:sa,resolveAll:Tr.resolveAll};function sa(Le,nt,Se){const Te=this;return ze;function ze(Ae){return Le.enter("labelImage"),Le.enter("labelImageMarker"),Le.consume(Ae),Le.exit("labelImageMarker"),Qe}function Qe(Ae){return Ae===91?(Le.enter("labelMarker"),Le.consume(Ae),Le.exit("labelMarker"),Le.exit("labelImage"),mt):Se(Ae)}function mt(Ae){return Ae===94&&"_hiddenFootnoteSupport"in Te.parser.constructs?Se(Ae):nt(Ae)}}function Va(Le){if(Le===null||(0,Ir.z3)(Le)||(0,Ir.B8)(Le))return 1;if((0,Ir.Xh)(Le))return 2}const os={name:"attention",tokenize:Un,resolveAll:Zs};function Zs(Le,nt){let Se=-1,Te,ze,Qe,mt,Ae,De,qe,ot;for(;++Se<Le.length;)if(Le[Se][0]==="enter"&&Le[Se][1].type==="attentionSequence"&&Le[Se][1]._close){for(Te=Se;Te--;)if(Le[Te][0]==="exit"&&Le[Te][1].type==="attentionSequence"&&Le[Te][1]._open&&nt.sliceSerialize(Le[Te][1]).charCodeAt(0)===nt.sliceSerialize(Le[Se][1]).charCodeAt(0)){if((Le[Te][1]._close||Le[Se][1]._open)&&(Le[Se][1].end.offset-Le[Se][1].start.offset)%3&&!((Le[Te][1].end.offset-Le[Te][1].start.offset+Le[Se][1].end.offset-Le[Se][1].start.offset)%3))continue;De=Le[Te][1].end.offset-Le[Te][1].start.offset>1&&Le[Se][1].end.offset-Le[Se][1].start.offset>1?2:1;const Lt=Object.assign({},Le[Te][1].end),Ut=Object.assign({},Le[Se][1].start);ws(Lt,-De),ws(Ut,De),mt={type:De>1?"strongSequence":"emphasisSequence",start:Lt,end:Object.assign({},Le[Te][1].end)},Ae={type:De>1?"strongSequence":"emphasisSequence",start:Object.assign({},Le[Se][1].start),end:Ut},Qe={type:De>1?"strongText":"emphasisText",start:Object.assign({},Le[Te][1].end),end:Object.assign({},Le[Se][1].start)},ze={type:De>1?"strong":"emphasis",start:Object.assign({},mt.start),end:Object.assign({},Ae.end)},Le[Te][1].end=Object.assign({},mt.start),Le[Se][1].start=Object.assign({},Ae.end),qe=[],Le[Te][1].end.offset-Le[Te][1].start.offset&&(qe=Hr(qe,[["enter",Le[Te][1],nt],["exit",Le[Te][1],nt]])),qe=Hr(qe,[["enter",ze,nt],["enter",mt,nt],["exit",mt,nt],["enter",Qe,nt]]),qe=Hr(qe,ti(nt.parser.constructs.insideSpan.null,Le.slice(Te+1,Se),nt)),qe=Hr(qe,[["exit",Qe,nt],["enter",Ae,nt],["exit",Ae,nt],["exit",ze,nt]]),Le[Se][1].end.offset-Le[Se][1].start.offset?(ot=2,qe=Hr(qe,[["enter",Le[Se][1],nt],["exit",Le[Se][1],nt]])):ot=0,sr(Le,Te-1,Se-Te+3,qe),Se=Te+qe.length-ot-2;break}}for(Se=-1;++Se<Le.length;)Le[Se][1].type==="attentionSequence"&&(Le[Se][1].type="data");return Le}function Un(Le,nt){const Se=this.parser.constructs.attentionMarkers.null,Te=this.previous,ze=Va(Te);let Qe;return mt;function mt(De){return Qe=De,Le.enter("attentionSequence"),Ae(De)}function Ae(De){if(De===Qe)return Le.consume(De),Ae;const qe=Le.exit("attentionSequence"),ot=Va(De),Lt=!ot||ot===2&&ze||Se.includes(De),Ut=!ze||ze===2&&ot||Se.includes(Te);return qe._open=!!(Qe===42?Lt:Lt&&(ze||!Ut)),qe._close=!!(Qe===42?Ut:Ut&&(ot||!Lt)),nt(De)}}function ws(Le,nt){Le.column+=nt,Le.offset+=nt,Le._bufferIndex+=nt}const Ds={name:"autolink",tokenize:dl};function dl(Le,nt,Se){let Te=0;return ze;function ze(jt){return Le.enter("autolink"),Le.enter("autolinkMarker"),Le.consume(jt),Le.exit("autolinkMarker"),Le.enter("autolinkProtocol"),Qe}function Qe(jt){return(0,Ir.jv)(jt)?(Le.consume(jt),mt):jt===64?Se(jt):qe(jt)}function mt(jt){return jt===43||jt===45||jt===46||(0,Ir.H$)(jt)?(Te=1,Ae(jt)):qe(jt)}function Ae(jt){return jt===58?(Le.consume(jt),Te=0,De):(jt===43||jt===45||jt===46||(0,Ir.H$)(jt))&&Te++<32?(Le.consume(jt),Ae):(Te=0,qe(jt))}function De(jt){return jt===62?(Le.exit("autolinkProtocol"),Le.enter("autolinkMarker"),Le.consume(jt),Le.exit("autolinkMarker"),Le.exit("autolink"),nt):jt===null||jt===32||jt===60||(0,Ir.Av)(jt)?Se(jt):(Le.consume(jt),De)}function qe(jt){return jt===64?(Le.consume(jt),ot):(0,Ir.n9)(jt)?(Le.consume(jt),qe):Se(jt)}function ot(jt){return(0,Ir.H$)(jt)?Lt(jt):Se(jt)}function Lt(jt){return jt===46?(Le.consume(jt),Te=0,ot):jt===62?(Le.exit("autolinkProtocol").type="autolinkEmail",Le.enter("autolinkMarker"),Le.consume(jt),Le.exit("autolinkMarker"),Le.exit("autolink"),nt):Ut(jt)}function Ut(jt){if((jt===45||(0,Ir.H$)(jt))&&Te++<63){const se=jt===45?Ut:Lt;return Le.consume(jt),se}return Se(jt)}}const _a={name:"htmlText",tokenize:js};function js(Le,nt,Se){const Te=this;let ze,Qe,mt;return Ae;function Ae(Fn){return Le.enter("htmlText"),Le.enter("htmlTextData"),Le.consume(Fn),De}function De(Fn){return Fn===33?(Le.consume(Fn),qe):Fn===47?(Le.consume(Fn),On):Fn===63?(Le.consume(Fn),mn):(0,Ir.jv)(Fn)?(Le.consume(Fn),Wr):Se(Fn)}function qe(Fn){return Fn===45?(Le.consume(Fn),ot):Fn===91?(Le.consume(Fn),Qe=0,se):(0,Ir.jv)(Fn)?(Le.consume(Fn),Yt):Se(Fn)}function ot(Fn){return Fn===45?(Le.consume(Fn),jt):Se(Fn)}function Lt(Fn){return Fn===null?Se(Fn):Fn===45?(Le.consume(Fn),Ut):(0,Ir.Ch)(Fn)?(mt=Lt,Vi(Fn)):(Le.consume(Fn),Lt)}function Ut(Fn){return Fn===45?(Le.consume(Fn),jt):Lt(Fn)}function jt(Fn){return Fn===62?Li(Fn):Fn===45?Ut(Fn):Lt(Fn)}function se(Fn){const mo="CDATA[";return Fn===mo.charCodeAt(Qe++)?(Le.consume(Fn),Qe===mo.length?fe:se):Se(Fn)}function fe(Fn){return Fn===null?Se(Fn):Fn===93?(Le.consume(Fn),je):(0,Ir.Ch)(Fn)?(mt=fe,Vi(Fn)):(Le.consume(Fn),fe)}function je(Fn){return Fn===93?(Le.consume(Fn),St):fe(Fn)}function St(Fn){return Fn===62?Li(Fn):Fn===93?(Le.consume(Fn),St):fe(Fn)}function Yt(Fn){return Fn===null||Fn===62?Li(Fn):(0,Ir.Ch)(Fn)?(mt=Yt,Vi(Fn)):(Le.consume(Fn),Yt)}function mn(Fn){return Fn===null?Se(Fn):Fn===63?(Le.consume(Fn),wn):(0,Ir.Ch)(Fn)?(mt=mn,Vi(Fn)):(Le.consume(Fn),mn)}function wn(Fn){return Fn===62?Li(Fn):mn(Fn)}function On(Fn){return(0,Ir.jv)(Fn)?(Le.consume(Fn),Tn):Se(Fn)}function Tn(Fn){return Fn===45||(0,Ir.H$)(Fn)?(Le.consume(Fn),Tn):br(Fn)}function br(Fn){return(0,Ir.Ch)(Fn)?(mt=br,Vi(Fn)):(0,Ir.xz)(Fn)?(Le.consume(Fn),br):Li(Fn)}function Wr(Fn){return Fn===45||(0,Ir.H$)(Fn)?(Le.consume(Fn),Wr):Fn===47||Fn===62||(0,Ir.z3)(Fn)?di(Fn):Se(Fn)}function di(Fn){return Fn===47?(Le.consume(Fn),Li):Fn===58||Fn===95||(0,Ir.jv)(Fn)?(Le.consume(Fn),ii):(0,Ir.Ch)(Fn)?(mt=di,Vi(Fn)):(0,Ir.xz)(Fn)?(Le.consume(Fn),di):Li(Fn)}function ii(Fn){return Fn===45||Fn===46||Fn===58||Fn===95||(0,Ir.H$)(Fn)?(Le.consume(Fn),ii):oi(Fn)}function oi(Fn){return Fn===61?(Le.consume(Fn),Di):(0,Ir.Ch)(Fn)?(mt=oi,Vi(Fn)):(0,Ir.xz)(Fn)?(Le.consume(Fn),oi):di(Fn)}function Di(Fn){return Fn===null||Fn===60||Fn===61||Fn===62||Fn===96?Se(Fn):Fn===34||Fn===39?(Le.consume(Fn),ze=Fn,cr):(0,Ir.Ch)(Fn)?(mt=Di,Vi(Fn)):(0,Ir.xz)(Fn)?(Le.consume(Fn),Di):(Le.consume(Fn),pi)}function cr(Fn){return Fn===ze?(Le.consume(Fn),ze=void 0,Yr):Fn===null?Se(Fn):(0,Ir.Ch)(Fn)?(mt=cr,Vi(Fn)):(Le.consume(Fn),cr)}function pi(Fn){return Fn===null||Fn===34||Fn===39||Fn===60||Fn===61||Fn===96?Se(Fn):Fn===47||Fn===62||(0,Ir.z3)(Fn)?di(Fn):(Le.consume(Fn),pi)}function Yr(Fn){return Fn===47||Fn===62||(0,Ir.z3)(Fn)?di(Fn):Se(Fn)}function Li(Fn){return Fn===62?(Le.consume(Fn),Le.exit("htmlTextData"),Le.exit("htmlText"),nt):Se(Fn)}function Vi(Fn){return Le.exit("htmlTextData"),Le.enter("lineEnding"),Le.consume(Fn),Le.exit("lineEnding"),bi}function bi(Fn){return(0,Ir.xz)(Fn)?(0,hi.f)(Le,xo,"linePrefix",Te.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Fn):xo(Fn)}function xo(Fn){return Le.enter("htmlTextData"),mt(Fn)}}const ol={name:"labelStartLink",tokenize:Tl,resolveAll:Tr.resolveAll};function Tl(Le,nt,Se){const Te=this;return ze;function ze(mt){return Le.enter("labelLink"),Le.enter("labelMarker"),Le.consume(mt),Le.exit("labelMarker"),Le.exit("labelLink"),Qe}function Qe(mt){return mt===94&&"_hiddenFootnoteSupport"in Te.parser.constructs?Se(mt):nt(mt)}}const Wa={name:"hardBreakEscape",tokenize:vs};function vs(Le,nt,Se){return Te;function Te(Qe){return Le.enter("hardBreakEscape"),Le.consume(Qe),ze}function ze(Qe){return(0,Ir.Ch)(Qe)?(Le.exit("hardBreakEscape"),nt(Qe)):Se(Qe)}}const Io={name:"codeText",tokenize:as,resolve:pa,previous:Ua};function pa(Le){let nt=Le.length-4,Se=3,Te,ze;if((Le[Se][1].type==="lineEnding"||Le[Se][1].type==="space")&&(Le[nt][1].type==="lineEnding"||Le[nt][1].type==="space")){for(Te=Se;++Te<nt;)if(Le[Te][1].type==="codeTextData"){Le[Se][1].type="codeTextPadding",Le[nt][1].type="codeTextPadding",Se+=2,nt-=2;break}}for(Te=Se-1,nt++;++Te<=nt;)ze===void 0?Te!==nt&&Le[Te][1].type!=="lineEnding"&&(ze=Te):(Te===nt||Le[Te][1].type==="lineEnding")&&(Le[ze][1].type="codeTextData",Te!==ze+2&&(Le[ze][1].end=Le[Te-1][1].end,Le.splice(ze+2,Te-ze-2),nt-=Te-ze-2,Te=ze+2),ze=void 0);return Le}function Ua(Le){return Le!==96||this.events[this.events.length-1][1].type==="characterEscape"}function as(Le,nt,Se){const Te=this;let ze=0,Qe,mt;return Ae;function Ae(Ut){return Le.enter("codeText"),Le.enter("codeTextSequence"),De(Ut)}function De(Ut){return Ut===96?(Le.consume(Ut),ze++,De):(Le.exit("codeTextSequence"),qe(Ut))}function qe(Ut){return Ut===null?Se(Ut):Ut===32?(Le.enter("space"),Le.consume(Ut),Le.exit("space"),qe):Ut===96?(mt=Le.enter("codeTextSequence"),Qe=0,Lt(Ut)):(0,Ir.Ch)(Ut)?(Le.enter("lineEnding"),Le.consume(Ut),Le.exit("lineEnding"),qe):(Le.enter("codeTextData"),ot(Ut))}function ot(Ut){return Ut===null||Ut===32||Ut===96||(0,Ir.Ch)(Ut)?(Le.exit("codeTextData"),qe(Ut)):(Le.consume(Ut),ot)}function Lt(Ut){return Ut===96?(Le.consume(Ut),Qe++,Lt):Qe===ze?(Le.exit("codeTextSequence"),Le.exit("codeText"),nt(Ut)):(mt.type="codeTextData",ot(Ut))}}const Bi={42:Pn,43:Pn,45:Pn,48:Pn,49:Pn,50:Pn,51:Pn,52:Pn,53:Pn,54:Pn,55:Pn,56:Pn,57:Pn,62:Pa},Xs={91:gs},Ls={[-2]:Ta,[-1]:Ta,32:Ta},Gs={35:Ka,42:_i,45:[za,_i],60:Nr,61:za,95:_i,96:xr,126:xr},vl={38:xa,92:ha},Ml={[-5]:fr,[-4]:fr,[-3]:fr,33:_o,38:xa,42:os,60:[Ds,_a],91:ol,92:[Wa,ha],93:Tr,95:os,96:Io},ci={null:[os,Vn]},zs={null:[42,95]},Vs={null:[]};function Ul(Le){const Se=Qn([ie,...(Le||{}).extensions||[]]),Te={defined:[],lazy:{},constructs:Se,content:ze(fn),document:ze(ao),flow:ze(si),string:ze(Wn),text:ze(vn)};return Te;function ze(Qe){return mt;function mt(Ae){return Hn(Te,Qe,Ae)}}}const Qs=/[\0\t\n\r]/g;function Dl(){let Le=1,nt="",Se=!0,Te;return ze;function ze(Qe,mt,Ae){const De=[];let qe,ot,Lt,Ut,jt;for(Qe=nt+(typeof Qe=="string"?Qe.toString():new TextDecoder(mt||void 0).decode(Qe)),Lt=0,nt="",Se&&(Qe.charCodeAt(0)===65279&&Lt++,Se=void 0);Lt<Qe.length;){if(Qs.lastIndex=Lt,qe=Qs.exec(Qe),Ut=qe&&qe.index!==void 0?qe.index:Qe.length,jt=Qe.charCodeAt(Ut),!qe){nt=Qe.slice(Lt);break}if(jt===10&&Lt===Ut&&Te)De.push(-3),Te=void 0;else switch(Te&&(De.push(-5),Te=void 0),Lt<Ut&&(De.push(Qe.slice(Lt,Ut)),Le+=Ut-Lt),jt){case 0:{De.push(65533),Le++;break}case 9:{for(ot=Math.ceil(Le/4)*4,De.push(-2);Le++<ot;)De.push(-1);break}case 10:{De.push(-4),Le=1;break}default:Te=!0,Le=1}Lt=Ut+1}return Ae&&(Te&&De.push(-5),nt&&De.push(nt),De.push(null)),De}}function la(Le,nt){const Se=Number.parseInt(Le,nt);return Se<9||Se===11||Se>13&&Se<32||Se>126&&Se<160||Se>55295&&Se<57344||Se>64975&&Se<65008||(Se&65535)===65535||(Se&65535)===65534||Se>1114111?"\uFFFD":String.fromCodePoint(Se)}const gu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Pl(Le){return Le.replace(gu,Is)}function Is(Le,nt,Se){if(nt)return nt;if(Se.charCodeAt(0)===35){const ze=Se.charCodeAt(1),Qe=ze===120||ze===88;return la(Se.slice(Qe?2:1),Qe?16:10)}return ya(Se)||Le}const eu={}.hasOwnProperty;function Hu(Le,nt,Se){return typeof nt!="string"&&(Se=nt,nt=void 0),cc(Se)(Xe(Ul(Se).document().write(Dl()(Le,nt,!0))))}function cc(Le){const nt={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:Qe(Ui),autolinkProtocol:di,autolinkEmail:di,atxHeading:Qe(fo),blockQuote:Qe(ta),characterEscape:di,characterReference:di,codeFenced:Qe(na),codeFencedFenceInfo:mt,codeFencedFenceMeta:mt,codeIndented:Qe(na,mt),codeText:Qe(Ha,mt),codeTextData:di,data:di,codeFlowValue:di,definition:Qe(wa),definitionDestinationString:mt,definitionLabelString:mt,definitionTitleString:mt,emphasis:Qe(ko),hardBreakEscape:Qe(Qo),hardBreakTrailing:Qe(Qo),htmlFlow:Qe(ja,mt),htmlFlowData:di,htmlText:Qe(ja,mt),htmlTextData:di,image:Qe(Lo),label:mt,link:Qe(Ui),listItem:Qe(ho),listItemValue:Ut,listOrdered:Qe(so,Lt),listUnordered:Qe(so),paragraph:Qe(Pi),reference:jn,referenceString:mt,resourceDestinationString:mt,resourceTitleString:mt,setextHeading:Qe(fo),strong:Qe(Zi),thematicBreak:Qe(Ea)},exit:{atxHeading:De(),atxHeadingSequence:On,autolink:De(),autolinkEmail:yo,autolinkProtocol:$i,blockQuote:De(),characterEscapeValue:ii,characterReferenceMarkerHexadecimal:ga,characterReferenceMarkerNumeric:ga,characterReferenceValue:ca,codeFenced:De(je),codeFencedFence:fe,codeFencedFenceInfo:jt,codeFencedFenceMeta:se,codeFlowValue:ii,codeIndented:De(St),codeText:De(Yr),codeTextData:ii,data:ii,definition:De(),definitionDestinationString:wn,definitionLabelString:Yt,definitionTitleString:mn,emphasis:De(),hardBreakEscape:De(Di),hardBreakTrailing:De(Di),htmlFlow:De(cr),htmlFlowData:ii,htmlText:De(pi),htmlTextData:ii,image:De(Vi),label:xo,labelText:bi,lineEnding:oi,link:De(Li),listItem:De(),listOrdered:De(),listUnordered:De(),paragraph:De(),referenceString:Uo,resourceDestinationString:Fn,resourceTitleString:mo,resource:Ci,setextHeading:De(Wr),setextHeadingLineSequence:br,setextHeadingText:Tn,strong:De(),thematicBreak:De()}};al(nt,(Le||{}).mdastExtensions||[]);const Se={};return Te;function Te(_r){let Qr={type:"root",children:[]};const Ro={stack:[Qr],tokenStack:[],config:nt,enter:Ae,exit:qe,buffer:mt,resume:ot,data:Se},Bo=[];let Wo=-1;for(;++Wo<_r.length;)if(_r[Wo][1].type==="listOrdered"||_r[Wo][1].type==="listUnordered")if(_r[Wo][0]==="enter")Bo.push(Wo);else{const Za=Bo.pop();Wo=ze(_r,Za,Wo)}for(Wo=-1;++Wo<_r.length;){const Za=nt[_r[Wo][0]];eu.call(Za,_r[Wo][1].type)&&Za[_r[Wo][1].type].call(Object.assign({sliceSerialize:_r[Wo][2].sliceSerialize},Ro),_r[Wo][1])}if(Ro.tokenStack.length>0){const Za=Ro.tokenStack[Ro.tokenStack.length-1];(Za[1]||Fc).call(Ro,void 0,Za[0])}for(Qr.position={start:Il(_r.length>0?_r[0][1].start:{line:1,column:1,offset:0}),end:Il(_r.length>0?_r[_r.length-2][1].end:{line:1,column:1,offset:0})},Wo=-1;++Wo<nt.transforms.length;)Qr=nt.transforms[Wo](Qr)||Qr;return Qr}function ze(_r,Qr,Ro){let Bo=Qr-1,Wo=-1,Za=!1,Ko,Oa,cs,Ws;for(;++Bo<=Ro;){const Qa=_r[Bo];switch(Qa[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Qa[0]==="enter"?Wo++:Wo--,Ws=void 0;break}case"lineEndingBlank":{Qa[0]==="enter"&&(Ko&&!Ws&&!Wo&&!cs&&(cs=Bo),Ws=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ws=void 0}if(!Wo&&Qa[0]==="enter"&&Qa[1].type==="listItemPrefix"||Wo===-1&&Qa[0]==="exit"&&(Qa[1].type==="listUnordered"||Qa[1].type==="listOrdered")){if(Ko){let ds=Bo;for(Oa=void 0;ds--;){const ma=_r[ds];if(ma[1].type==="lineEnding"||ma[1].type==="lineEndingBlank"){if(ma[0]==="exit")continue;Oa&&(_r[Oa][1].type="lineEndingBlank",Za=!0),ma[1].type="lineEnding",Oa=ds}else if(!(ma[1].type==="linePrefix"||ma[1].type==="blockQuotePrefix"||ma[1].type==="blockQuotePrefixWhitespace"||ma[1].type==="blockQuoteMarker"||ma[1].type==="listItemIndent"))break}cs&&(!Oa||cs<Oa)&&(Ko._spread=!0),Ko.end=Object.assign({},Oa?_r[Oa][1].start:Qa[1].end),_r.splice(Oa||Bo,0,["exit",Ko,Qa[2]]),Bo++,Ro++}if(Qa[1].type==="listItemPrefix"){const ds={type:"listItem",_spread:!1,start:Object.assign({},Qa[1].start),end:void 0};Ko=ds,_r.splice(Bo,0,["enter",ds,Qa[2]]),Bo++,Ro++,cs=void 0,Ws=!0}}}return _r[Qr][1]._spread=Za,Ro}function Qe(_r,Qr){return Ro;function Ro(Bo){Ae.call(this,_r(Bo),Bo),Qr&&Qr.call(this,Bo)}}function mt(){this.stack.push({type:"fragment",children:[]})}function Ae(_r,Qr,Ro){this.stack[this.stack.length-1].children.push(_r),this.stack.push(_r),this.tokenStack.push([Qr,Ro]),_r.position={start:Il(Qr.start),end:void 0}}function De(_r){return Qr;function Qr(Ro){_r&&_r.call(this,Ro),qe.call(this,Ro)}}function qe(_r,Qr){const Ro=this.stack.pop(),Bo=this.tokenStack.pop();if(Bo)Bo[0].type!==_r.type&&(Qr?Qr.call(this,_r,Bo[0]):(Bo[1]||Fc).call(this,_r,Bo[0]));else throw new Error("Cannot close `"+_r.type+"` ("+Be({start:_r.start,end:_r.end})+"): it\u2019s not open");Ro.position.end=Il(_r.end)}function ot(){return Rn(this.stack.pop())}function Lt(){this.data.expectingFirstListItemValue=!0}function Ut(_r){if(this.data.expectingFirstListItemValue){const Qr=this.stack[this.stack.length-2];Qr.start=Number.parseInt(this.sliceSerialize(_r),10),this.data.expectingFirstListItemValue=void 0}}function jt(){const _r=this.resume(),Qr=this.stack[this.stack.length-1];Qr.lang=_r}function se(){const _r=this.resume(),Qr=this.stack[this.stack.length-1];Qr.meta=_r}function fe(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function je(){const _r=this.resume(),Qr=this.stack[this.stack.length-1];Qr.value=_r.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function St(){const _r=this.resume(),Qr=this.stack[this.stack.length-1];Qr.value=_r.replace(/(\r?\n|\r)$/g,"")}function Yt(_r){const Qr=this.resume(),Ro=this.stack[this.stack.length-1];Ro.label=Qr,Ro.identifier=sl(this.sliceSerialize(_r)).toLowerCase()}function mn(){const _r=this.resume(),Qr=this.stack[this.stack.length-1];Qr.title=_r}function wn(){const _r=this.resume(),Qr=this.stack[this.stack.length-1];Qr.url=_r}function On(_r){const Qr=this.stack[this.stack.length-1];if(!Qr.depth){const Ro=this.sliceSerialize(_r).length;Qr.depth=Ro}}function Tn(){this.data.setextHeadingSlurpLineEnding=!0}function br(_r){const Qr=this.stack[this.stack.length-1];Qr.depth=this.sliceSerialize(_r).codePointAt(0)===61?1:2}function Wr(){this.data.setextHeadingSlurpLineEnding=void 0}function di(_r){const Ro=this.stack[this.stack.length-1].children;let Bo=Ro[Ro.length-1];(!Bo||Bo.type!=="text")&&(Bo=wo(),Bo.position={start:Il(_r.start),end:void 0},Ro.push(Bo)),this.stack.push(Bo)}function ii(_r){const Qr=this.stack.pop();Qr.value+=this.sliceSerialize(_r),Qr.position.end=Il(_r.end)}function oi(_r){const Qr=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ro=Qr.children[Qr.children.length-1];Ro.position.end=Il(_r.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&nt.canContainEols.includes(Qr.type)&&(di.call(this,_r),ii.call(this,_r))}function Di(){this.data.atHardBreak=!0}function cr(){const _r=this.resume(),Qr=this.stack[this.stack.length-1];Qr.value=_r}function pi(){const _r=this.resume(),Qr=this.stack[this.stack.length-1];Qr.value=_r}function Yr(){const _r=this.resume(),Qr=this.stack[this.stack.length-1];Qr.value=_r}function Li(){const _r=this.stack[this.stack.length-1];if(this.data.inReference){const Qr=this.data.referenceType||"shortcut";_r.type+="Reference",_r.referenceType=Qr,delete _r.url,delete _r.title}else delete _r.identifier,delete _r.label;this.data.referenceType=void 0}function Vi(){const _r=this.stack[this.stack.length-1];if(this.data.inReference){const Qr=this.data.referenceType||"shortcut";_r.type+="Reference",_r.referenceType=Qr,delete _r.url,delete _r.title}else delete _r.identifier,delete _r.label;this.data.referenceType=void 0}function bi(_r){const Qr=this.sliceSerialize(_r),Ro=this.stack[this.stack.length-2];Ro.label=Pl(Qr),Ro.identifier=sl(Qr).toLowerCase()}function xo(){const _r=this.stack[this.stack.length-1],Qr=this.resume(),Ro=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ro.type==="link"){const Bo=_r.children;Ro.children=Bo}else Ro.alt=Qr}function Fn(){const _r=this.resume(),Qr=this.stack[this.stack.length-1];Qr.url=_r}function mo(){const _r=this.resume(),Qr=this.stack[this.stack.length-1];Qr.title=_r}function Ci(){this.data.inReference=void 0}function jn(){this.data.referenceType="collapsed"}function Uo(_r){const Qr=this.resume(),Ro=this.stack[this.stack.length-1];Ro.label=Qr,Ro.identifier=sl(this.sliceSerialize(_r)).toLowerCase(),this.data.referenceType="full"}function ga(_r){this.data.characterReferenceType=_r.type}function ca(_r){const Qr=this.sliceSerialize(_r),Ro=this.data.characterReferenceType;let Bo;Ro?(Bo=la(Qr,Ro==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Bo=ya(Qr);const Wo=this.stack.pop();Wo.value+=Bo,Wo.position.end=Il(_r.end)}function $i(_r){ii.call(this,_r);const Qr=this.stack[this.stack.length-1];Qr.url=this.sliceSerialize(_r)}function yo(_r){ii.call(this,_r);const Qr=this.stack[this.stack.length-1];Qr.url="mailto:"+this.sliceSerialize(_r)}function ta(){return{type:"blockquote",children:[]}}function na(){return{type:"code",lang:null,meta:null,value:""}}function Ha(){return{type:"inlineCode",value:""}}function wa(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ko(){return{type:"emphasis",children:[]}}function fo(){return{type:"heading",depth:0,children:[]}}function Qo(){return{type:"break"}}function ja(){return{type:"html",value:""}}function Lo(){return{type:"image",title:null,url:"",alt:null}}function Ui(){return{type:"link",title:null,url:"",children:[]}}function so(_r){return{type:"list",ordered:_r.type==="listOrdered",start:null,spread:_r._spread,children:[]}}function ho(_r){return{type:"listItem",spread:_r._spread,checked:null,children:[]}}function Pi(){return{type:"paragraph",children:[]}}function Zi(){return{type:"strong",children:[]}}function wo(){return{type:"text",value:""}}function Ea(){return{type:"thematicBreak"}}}function Il(Le){return{line:Le.line,column:Le.column,offset:Le.offset}}function al(Le,nt){let Se=-1;for(;++Se<nt.length;){const Te=nt[Se];Array.isArray(Te)?al(Le,Te):Dc(Le,Te)}}function Dc(Le,nt){let Se;for(Se in nt)if(eu.call(nt,Se))switch(Se){case"canContainEols":{const Te=nt[Se];Te&&Le[Se].push(...Te);break}case"transforms":{const Te=nt[Se];Te&&Le[Se].push(...Te);break}case"enter":case"exit":{const Te=nt[Se];Te&&Object.assign(Le[Se],Te);break}}}function Fc(Le,nt){throw Le?new Error("Cannot close `"+Le.type+"` ("+Be({start:Le.start,end:Le.end})+"): a different token (`"+nt.type+"`, "+Be({start:nt.start,end:nt.end})+") is open"):new Error("Cannot close document, a token (`"+nt.type+"`, "+Be({start:nt.start,end:nt.end})+") is still open")}function rc(Le){const nt=this;nt.parser=Se;function Se(Te){return Hu(Te,eg(Uu(Uu({},nt.data("settings")),Le),{extensions:nt.data("micromarkExtensions")||[],mdastExtensions:nt.data("fromMarkdownExtensions")||[]}))}}var Bc=ae(52835);function Iu(Le,nt){const Se=encode(Al(Le||""));if(!nt)return Se;const Te=Se.indexOf(":"),ze=Se.indexOf("?"),Qe=Se.indexOf("#"),mt=Se.indexOf("/");return Te<0||mt>-1&&Te>mt||ze>-1&&Te>ze||Qe>-1&&Te>Qe||nt.test(Se.slice(0,Te))?Se:""}function Al(Le){const nt=[];let Se=-1,Te=0,ze=0;for(;++Se<Le.length;){const Qe=Le.charCodeAt(Se);let mt="";if(Qe===37&&(0,Ir.H$)(Le.charCodeAt(Se+1))&&(0,Ir.H$)(Le.charCodeAt(Se+2)))ze=2;else if(Qe<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(Qe))||(mt=String.fromCharCode(Qe));else if(Qe>55295&&Qe<57344){const Ae=Le.charCodeAt(Se+1);Qe<56320&&Ae>56319&&Ae<57344?(mt=String.fromCharCode(Qe,Ae),ze=1):mt="\uFFFD"}else mt=String.fromCharCode(Qe);mt&&(nt.push(Le.slice(Te,Se),encodeURIComponent(mt)),Te=Se+ze+1,mt=""),ze&&(Se+=ze,ze=0)}return nt.join("")+Le.slice(Te)}function Fl(Le,nt){const Se=[{type:"text",value:"\u21A9"}];return nt>1&&Se.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(nt)}]}),Se}function Ju(Le,nt){return"Back to reference "+(Le+1)+(nt>1?"-"+nt:"")}function _c(Le){const nt=typeof Le.options.clobberPrefix=="string"?Le.options.clobberPrefix:"user-content-",Se=Le.options.footnoteBackContent||Fl,Te=Le.options.footnoteBackLabel||Ju,ze=Le.options.footnoteLabel||"Footnotes",Qe=Le.options.footnoteLabelTagName||"h2",mt=Le.options.footnoteLabelProperties||{className:["sr-only"]},Ae=[];let De=-1;for(;++De<Le.footnoteOrder.length;){const qe=Le.footnoteById.get(Le.footnoteOrder[De]);if(!qe)continue;const ot=Le.all(qe),Lt=String(qe.identifier).toUpperCase(),Ut=Al(Lt.toLowerCase());let jt=0;const se=[],fe=Le.footnoteCounts.get(Lt);for(;fe!==void 0&&++jt<=fe;){se.length>0&&se.push({type:"text",value:" "});let Yt=typeof Se=="string"?Se:Se(De,jt);typeof Yt=="string"&&(Yt={type:"text",value:Yt}),se.push({type:"element",tagName:"a",properties:{href:"#"+nt+"fnref-"+Ut+(jt>1?"-"+jt:""),dataFootnoteBackref:"",ariaLabel:typeof Te=="string"?Te:Te(De,jt),className:["data-footnote-backref"]},children:Array.isArray(Yt)?Yt:[Yt]})}const je=ot[ot.length-1];if(je&&je.type==="element"&&je.tagName==="p"){const Yt=je.children[je.children.length-1];Yt&&Yt.type==="text"?Yt.value+=" ":je.children.push({type:"text",value:" "}),je.children.push(...se)}else ot.push(...se);const St={type:"element",tagName:"li",properties:{id:nt+"fn-"+Ut},children:Le.wrap(ot,!0)};Le.patch(qe,St),Ae.push(St)}if(Ae.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:Qe,properties:eg(Uu({},(0,Bc.ZP)(mt)),{id:"footnote-label"}),children:[{type:"text",value:ze}]},{type:"text",value:`
|
|
|
`},{type:"element",tagName:"ol",properties:{},children:Le.wrap(Ae,!0)},{type:"text",value:`
|
|
|
`}]}}var $u=ae(21623);function od(Le,nt){const Se={type:"element",tagName:"blockquote",properties:{},children:Le.wrap(Le.all(nt),!0)};return Le.patch(nt,Se),Le.applyData(nt,Se)}function yl(Le,nt){const Se={type:"element",tagName:"br",properties:{},children:[]};return Le.patch(nt,Se),[Le.applyData(nt,Se),{type:"text",value:`
|
|
|
`}]}function fd(Le,nt){const Se=nt.value?nt.value+`
|
|
|
`:"",Te={};nt.lang&&(Te.className=["language-"+nt.lang]);let ze={type:"element",tagName:"code",properties:Te,children:[{type:"text",value:Se}]};return nt.meta&&(ze.data={meta:nt.meta}),Le.patch(nt,ze),ze=Le.applyData(nt,ze),ze={type:"element",tagName:"pre",properties:{},children:[ze]},Le.patch(nt,ze),ze}function pd(Le,nt){const Se={type:"element",tagName:"del",properties:{},children:Le.all(nt)};return Le.patch(nt,Se),Le.applyData(nt,Se)}function Uc(Le,nt){const Se={type:"element",tagName:"em",properties:{},children:Le.all(nt)};return Le.patch(nt,Se),Le.applyData(nt,Se)}function ic(Le,nt){const Se=typeof Le.options.clobberPrefix=="string"?Le.options.clobberPrefix:"user-content-",Te=String(nt.identifier).toUpperCase(),ze=Al(Te.toLowerCase()),Qe=Le.footnoteOrder.indexOf(Te);let mt,Ae=Le.footnoteCounts.get(Te);Ae===void 0?(Ae=0,Le.footnoteOrder.push(Te),mt=Le.footnoteOrder.length):mt=Qe+1,Ae+=1,Le.footnoteCounts.set(Te,Ae);const De={type:"element",tagName:"a",properties:{href:"#"+Se+"fn-"+ze,id:Se+"fnref-"+ze+(Ae>1?"-"+Ae:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(mt)}]};Le.patch(nt,De);const qe={type:"element",tagName:"sup",properties:{},children:[De]};return Le.patch(nt,qe),Le.applyData(nt,qe)}function lu(Le,nt){const Se={type:"element",tagName:"h"+nt.depth,properties:{},children:Le.all(nt)};return Le.patch(nt,Se),Le.applyData(nt,Se)}function mu(Le,nt){if(Le.options.allowDangerousHtml){const Se={type:"raw",value:nt.value};return Le.patch(nt,Se),Le.applyData(nt,Se)}}function kl(Le,nt){const Se=nt.referenceType;let Te="]";if(Se==="collapsed"?Te+="[]":Se==="full"&&(Te+="["+(nt.label||nt.identifier)+"]"),nt.type==="imageReference")return[{type:"text",value:"!["+nt.alt+Te}];const ze=Le.all(nt),Qe=ze[0];Qe&&Qe.type==="text"?Qe.value="["+Qe.value:ze.unshift({type:"text",value:"["});const mt=ze[ze.length-1];return mt&&mt.type==="text"?mt.value+=Te:ze.push({type:"text",value:Te}),ze}function Hl(Le,nt){const Se=String(nt.identifier).toUpperCase(),Te=Le.definitionById.get(Se);if(!Te)return kl(Le,nt);const ze={src:Al(Te.url||""),alt:nt.alt};Te.title!==null&&Te.title!==void 0&&(ze.title=Te.title);const Qe={type:"element",tagName:"img",properties:ze,children:[]};return Le.patch(nt,Qe),Le.applyData(nt,Qe)}function Yc(Le,nt){const Se={src:Al(nt.url)};nt.alt!==null&&nt.alt!==void 0&&(Se.alt=nt.alt),nt.title!==null&&nt.title!==void 0&&(Se.title=nt.title);const Te={type:"element",tagName:"img",properties:Se,children:[]};return Le.patch(nt,Te),Le.applyData(nt,Te)}function Wl(Le,nt){const Se={type:"text",value:nt.value.replace(/\r?\n|\r/g," ")};Le.patch(nt,Se);const Te={type:"element",tagName:"code",properties:{},children:[Se]};return Le.patch(nt,Te),Le.applyData(nt,Te)}function hl(Le,nt){const Se=String(nt.identifier).toUpperCase(),Te=Le.definitionById.get(Se);if(!Te)return kl(Le,nt);const ze={href:Al(Te.url||"")};Te.title!==null&&Te.title!==void 0&&(ze.title=Te.title);const Qe={type:"element",tagName:"a",properties:ze,children:Le.all(nt)};return Le.patch(nt,Qe),Le.applyData(nt,Qe)}function ad(Le,nt){const Se={href:Al(nt.url)};nt.title!==null&&nt.title!==void 0&&(Se.title=nt.title);const Te={type:"element",tagName:"a",properties:Se,children:Le.all(nt)};return Le.patch(nt,Te),Le.applyData(nt,Te)}function oc(Le,nt,Se){const Te=Le.all(nt),ze=Se?ju(Se):No(nt),Qe={},mt=[];if(typeof nt.checked=="boolean"){const ot=Te[0];let Lt;ot&&ot.type==="element"&&ot.tagName==="p"?Lt=ot:(Lt={type:"element",tagName:"p",properties:{},children:[]},Te.unshift(Lt)),Lt.children.length>0&&Lt.children.unshift({type:"text",value:" "}),Lt.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:nt.checked,disabled:!0},children:[]}),Qe.className=["task-list-item"]}let Ae=-1;for(;++Ae<Te.length;){const ot=Te[Ae];(ze||Ae!==0||ot.type!=="element"||ot.tagName!=="p")&&mt.push({type:"text",value:`
|
|
|
`}),ot.type==="element"&&ot.tagName==="p"&&!ze?mt.push(...ot.children):mt.push(ot)}const De=Te[Te.length-1];De&&(ze||De.type!=="element"||De.tagName!=="p")&&mt.push({type:"text",value:`
|
|
|
`});const qe={type:"element",tagName:"li",properties:Qe,children:mt};return Le.patch(nt,qe),Le.applyData(nt,qe)}function ju(Le){let nt=!1;if(Le.type==="list"){nt=Le.spread||!1;const Se=Le.children;let Te=-1;for(;!nt&&++Te<Se.length;)nt=No(Se[Te])}return nt}function No(Le){const nt=Le.spread;return nt==null?Le.children.length>1:nt}function xc(Le,nt){const Se={},Te=Le.all(nt);let ze=-1;for(typeof nt.start=="number"&&nt.start!==1&&(Se.start=nt.start);++ze<Te.length;){const mt=Te[ze];if(mt.type==="element"&&mt.tagName==="li"&&mt.properties&&Array.isArray(mt.properties.className)&&mt.properties.className.includes("task-list-item")){Se.className=["contains-task-list"];break}}const Qe={type:"element",tagName:nt.ordered?"ol":"ul",properties:Se,children:Le.wrap(Te,!0)};return Le.patch(nt,Qe),Le.applyData(nt,Qe)}function gn(Le,nt){const Se={type:"element",tagName:"p",properties:{},children:Le.all(nt)};return Le.patch(nt,Se),Le.applyData(nt,Se)}function Mr(Le,nt){const Se={type:"root",children:Le.wrap(Le.all(nt))};return Le.patch(nt,Se),Le.applyData(nt,Se)}function Cu(Le,nt){const Se={type:"element",tagName:"strong",properties:{},children:Le.all(nt)};return Le.patch(nt,Se),Le.applyData(nt,Se)}function dc(Le,nt){const Se=Le.all(nt),Te=Se.shift(),ze=[];if(Te){const mt={type:"element",tagName:"thead",properties:{},children:Le.wrap([Te],!0)};Le.patch(nt.children[0],mt),ze.push(mt)}if(Se.length>0){const mt={type:"element",tagName:"tbody",properties:{},children:Le.wrap(Se,!0)},Ae=(0,be.Pk)(nt.children[1]),De=(0,be.rb)(nt.children[nt.children.length-1]);Ae&&De&&(mt.position={start:Ae,end:De}),ze.push(mt)}const Qe={type:"element",tagName:"table",properties:{},children:Le.wrap(ze,!0)};return Le.patch(nt,Qe),Le.applyData(nt,Qe)}function hc(Le,nt,Se){const Te=Se?Se.children:void 0,Qe=(Te?Te.indexOf(nt):1)===0?"th":"td",mt=Se&&Se.type==="table"?Se.align:void 0,Ae=mt?mt.length:nt.children.length;let De=-1;const qe=[];for(;++De<Ae;){const Lt=nt.children[De],Ut={},jt=mt?mt[De]:void 0;jt&&(Ut.align=jt);let se={type:"element",tagName:Qe,properties:Ut,children:[]};Lt&&(se.children=Le.all(Lt),Le.patch(Lt,se),se=Le.applyData(Lt,se)),qe.push(se)}const ot={type:"element",tagName:"tr",properties:{},children:Le.wrap(qe,!0)};return Le.patch(nt,ot),Le.applyData(nt,ot)}function yu(Le,nt){const Se={type:"element",tagName:"td",properties:{},children:Le.all(nt)};return Le.patch(nt,Se),Le.applyData(nt,Se)}const Tu=9,fc=32;function Du(Le){const nt=String(Le),Se=/\r?\n|\r/g;let Te=Se.exec(nt),ze=0;const Qe=[];for(;Te;)Qe.push(ml(nt.slice(ze,Te.index),ze>0,!0),Te[0]),ze=Te.index+Te[0].length,Te=Se.exec(nt);return Qe.push(ml(nt.slice(ze),ze>0,!1)),Qe.join("")}function ml(Le,nt,Se){let Te=0,ze=Le.length;if(nt){let Qe=Le.codePointAt(Te);for(;Qe===Tu||Qe===fc;)Te++,Qe=Le.codePointAt(Te)}if(Se){let Qe=Le.codePointAt(ze-1);for(;Qe===Tu||Qe===fc;)ze--,Qe=Le.codePointAt(ze-1)}return ze>Te?Le.slice(Te,ze):""}function ua(Le,nt){const Se={type:"text",value:Du(String(nt.value))};return Le.patch(nt,Se),Le.applyData(nt,Se)}function Ql(Le,nt){const Se={type:"element",tagName:"hr",properties:{},children:[]};return Le.patch(nt,Se),Le.applyData(nt,Se)}const Jl={blockquote:od,break:yl,code:fd,delete:pd,emphasis:Uc,footnoteReference:ic,heading:lu,html:mu,imageReference:Hl,image:Yc,inlineCode:Wl,linkReference:hl,link:ad,listItem:oc,list:xc,paragraph:gn,root:Mr,strong:Cu,table:dc,tableCell:yu,tableRow:hc,text:ua,thematicBreak:Ql,toml:el,yaml:el,definition:el,footnoteDefinition:el};function el(){}const ns={}.hasOwnProperty,Nl={};function Au(Le,nt){const Se=nt||Nl,Te=new Map,ze=new Map,Qe=new Map,mt=Uu(Uu({},Jl),Se.handlers),Ae={all:qe,applyData:uu,definitionById:Te,footnoteById:ze,footnoteCounts:Qe,footnoteOrder:[],handlers:mt,one:De,options:Se,patch:ll,wrap:ac};return(0,$u.Vn)(Le,function(ot){if(ot.type==="definition"||ot.type==="footnoteDefinition"){const Lt=ot.type==="definition"?Te:ze,Ut=String(ot.identifier).toUpperCase();Lt.has(Ut)||Lt.set(Ut,ot)}}),Ae;function De(ot,Lt){const Ut=ot.type,jt=Ae.handlers[Ut];if(ns.call(Ae.handlers,Ut)&&jt)return jt(Ae,ot,Lt);if(Ae.options.passThrough&&Ae.options.passThrough.includes(Ut)){if("children"in ot){const fe=ot,{children:je}=fe,St=r1(fe,["children"]),Yt=(0,Bc.ZP)(St);return Yt.children=Ae.all(ot),Yt}return(0,Bc.ZP)(ot)}return(Ae.options.unknownHandler||$l)(Ae,ot,Lt)}function qe(ot){const Lt=[];if("children"in ot){const Ut=ot.children;let jt=-1;for(;++jt<Ut.length;){const se=Ae.one(Ut[jt],ot);if(se){if(jt&&Ut[jt-1].type==="break"&&(!Array.isArray(se)&&se.type==="text"&&(se.value=ks(se.value)),!Array.isArray(se)&&se.type==="element")){const fe=se.children[0];fe&&fe.type==="text"&&(fe.value=ks(fe.value))}Array.isArray(se)?Lt.push(...se):Lt.push(se)}}}return Lt}}function ll(Le,nt){Le.position&&(nt.position=(0,be.FK)(Le))}function uu(Le,nt){let Se=nt;if(Le&&Le.data){const Te=Le.data.hName,ze=Le.data.hChildren,Qe=Le.data.hProperties;if(typeof Te=="string")if(Se.type==="element")Se.tagName=Te;else{const mt="children"in Se?Se.children:[Se];Se={type:"element",tagName:Te,properties:{},children:mt}}Se.type==="element"&&Qe&&Object.assign(Se.properties,(0,Bc.ZP)(Qe)),"children"in Se&&Se.children&&ze!==null&&ze!==void 0&&(Se.children=ze)}return Se}function $l(Le,nt){const Se=nt.data||{},Te="value"in nt&&!(ns.call(Se,"hProperties")||ns.call(Se,"hChildren"))?{type:"text",value:nt.value}:{type:"element",tagName:"div",properties:{},children:Le.all(nt)};return Le.patch(nt,Te),Le.applyData(nt,Te)}function ac(Le,nt){const Se=[];let Te=-1;for(nt&&Se.push({type:"text",value:`
|
|
|
`});++Te<Le.length;)Te&&Se.push({type:"text",value:`
|
|
|
`}),Se.push(Le[Te]);return nt&&Le.length>0&&Se.push({type:"text",value:`
|
|
|
`}),Se}function ks(Le){let nt=0,Se=Le.charCodeAt(nt);for(;Se===9||Se===32;)nt++,Se=Le.charCodeAt(nt);return Le.slice(nt)}function tu(Le,nt){const Se=Au(Le,nt),Te=Se.one(Le,void 0),ze=_c(Se),Qe=Array.isArray(Te)?{type:"root",children:Te}:Te||{type:"root",children:[]};return ze&&((0,Pe.ok)("children"in Qe),Qe.children.push({type:"text",value:`
|
|
|
`},ze)),Qe}function ys(Le,nt){return Le&&"run"in Le?function(Se,Te){return i1(this,null,function*(){const ze=tu(Se,Uu({file:Te},nt));yield Le.run(ze,Te)})}:function(Se,Te){return tu(Se,Uu({file:Te},nt||Le))}}function Js(Le){if(Le)throw Le}var ul=ae(94470);function Sl(Le){if(typeof Le!="object"||Le===null)return!1;const nt=Object.getPrototypeOf(Le);return(nt===null||nt===Object.prototype||Object.getPrototypeOf(nt)===null)&&!(Symbol.toStringTag in Le)&&!(Symbol.iterator in Le)}function Fs(){const Le=[],nt={run:Se,use:Te};return nt;function Se(...ze){let Qe=-1;const mt=ze.pop();if(typeof mt!="function")throw new TypeError("Expected function as last argument, not "+mt);Ae(null,...ze);function Ae(De,...qe){const ot=Le[++Qe];let Lt=-1;if(De){mt(De);return}for(;++Lt<ze.length;)(qe[Lt]===null||qe[Lt]===void 0)&&(qe[Lt]=ze[Lt]);ze=qe,ot?wc(ot,Ae)(...qe):mt(null,...qe)}}function Te(ze){if(typeof ze!="function")throw new TypeError("Expected `middelware` to be a function, not "+ze);return Le.push(ze),nt}}function wc(Le,nt){let Se;return Te;function Te(...mt){const Ae=Le.length>mt.length;let De;Ae&&mt.push(ze);try{De=Le.apply(this,mt)}catch(qe){const ot=qe;if(Ae&&Se)throw ot;return ze(ot)}Ae||(De&&De.then&&typeof De.then=="function"?De.then(Qe,ze):De instanceof Error?ze(De):Qe(De))}function ze(mt,...Ae){Se||(Se=!0,nt(mt,...Ae))}function Qe(mt){ze(null,mt)}}const Ti={basename:Cc,dirname:ms,extname:Id,join:sc,sep:"/"};function Cc(Le,nt){if(nt!==void 0&&typeof nt!="string")throw new TypeError('"ext" argument must be a string');Gu(Le);let Se=0,Te=-1,ze=Le.length,Qe;if(nt===void 0||nt.length===0||nt.length>Le.length){for(;ze--;)if(Le.codePointAt(ze)===47){if(Qe){Se=ze+1;break}}else Te<0&&(Qe=!0,Te=ze+1);return Te<0?"":Le.slice(Se,Te)}if(nt===Le)return"";let mt=-1,Ae=nt.length-1;for(;ze--;)if(Le.codePointAt(ze)===47){if(Qe){Se=ze+1;break}}else mt<0&&(Qe=!0,mt=ze+1),Ae>-1&&(Le.codePointAt(ze)===nt.codePointAt(Ae--)?Ae<0&&(Te=ze):(Ae=-1,Te=mt));return Se===Te?Te=mt:Te<0&&(Te=Le.length),Le.slice(Se,Te)}function ms(Le){if(Gu(Le),Le.length===0)return".";let nt=-1,Se=Le.length,Te;for(;--Se;)if(Le.codePointAt(Se)===47){if(Te){nt=Se;break}}else Te||(Te=!0);return nt<0?Le.codePointAt(0)===47?"/":".":nt===1&&Le.codePointAt(0)===47?"//":Le.slice(0,nt)}function Id(Le){Gu(Le);let nt=Le.length,Se=-1,Te=0,ze=-1,Qe=0,mt;for(;nt--;){const Ae=Le.codePointAt(nt);if(Ae===47){if(mt){Te=nt+1;break}continue}Se<0&&(mt=!0,Se=nt+1),Ae===46?ze<0?ze=nt:Qe!==1&&(Qe=1):ze>-1&&(Qe=-1)}return ze<0||Se<0||Qe===0||Qe===1&&ze===Se-1&&ze===Te+1?"":Le.slice(ze,Se)}function sc(...Le){let nt=-1,Se;for(;++nt<Le.length;)Gu(Le[nt]),Le[nt]&&(Se=Se===void 0?Le[nt]:Se+"/"+Le[nt]);return Se===void 0?".":Zc(Se)}function Zc(Le){Gu(Le);const nt=Le.codePointAt(0)===47;let Se=gd(Le,!nt);return Se.length===0&&!nt&&(Se="."),Se.length>0&&Le.codePointAt(Le.length-1)===47&&(Se+="/"),nt?"/"+Se:Se}function gd(Le,nt){let Se="",Te=0,ze=-1,Qe=0,mt=-1,Ae,De;for(;++mt<=Le.length;){if(mt<Le.length)Ae=Le.codePointAt(mt);else{if(Ae===47)break;Ae=47}if(Ae===47){if(!(ze===mt-1||Qe===1))if(ze!==mt-1&&Qe===2){if(Se.length<2||Te!==2||Se.codePointAt(Se.length-1)!==46||Se.codePointAt(Se.length-2)!==46){if(Se.length>2){if(De=Se.lastIndexOf("/"),De!==Se.length-1){De<0?(Se="",Te=0):(Se=Se.slice(0,De),Te=Se.length-1-Se.lastIndexOf("/")),ze=mt,Qe=0;continue}}else if(Se.length>0){Se="",Te=0,ze=mt,Qe=0;continue}}nt&&(Se=Se.length>0?Se+"/..":"..",Te=2)}else Se.length>0?Se+="/"+Le.slice(ze+1,mt):Se=Le.slice(ze+1,mt),Te=mt-ze-1;ze=mt,Qe=0}else Ae===46&&Qe>-1?Qe++:Qe=-1}return Se}function Gu(Le){if(typeof Le!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(Le))}const pc={cwd:gc};function gc(){return"/"}function Do(Le){return!!(Le!==null&&typeof Le=="object"&&"href"in Le&&Le.href&&"protocol"in Le&&Le.protocol&&Le.auth===void 0)}function Pu(Le){if(typeof Le=="string")Le=new URL(Le);else if(!Do(Le)){const nt=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+Le+"`");throw nt.code="ERR_INVALID_ARG_TYPE",nt}if(Le.protocol!=="file:"){const nt=new TypeError("The URL must be of scheme file");throw nt.code="ERR_INVALID_URL_SCHEME",nt}return kt(Le)}function kt(Le){if(Le.hostname!==""){const Te=new TypeError('File URL host must be "localhost" or empty on darwin');throw Te.code="ERR_INVALID_FILE_URL_HOST",Te}const nt=Le.pathname;let Se=-1;for(;++Se<nt.length;)if(nt.codePointAt(Se)===37&&nt.codePointAt(Se+1)===50){const Te=nt.codePointAt(Se+2);if(Te===70||Te===102){const ze=new TypeError("File URL path must not include encoded / characters");throw ze.code="ERR_INVALID_FILE_URL_PATH",ze}}return decodeURIComponent(nt)}const en=["history","path","basename","stem","extname","dirname"];class cn{constructor(nt){let Se;nt?Do(nt)?Se={path:nt}:typeof nt=="string"||lr(nt)?Se={value:nt}:Se=nt:Se={},this.cwd=pc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let Te=-1;for(;++Te<en.length;){const Qe=en[Te];Qe in Se&&Se[Qe]!==void 0&&Se[Qe]!==null&&(this[Qe]=Qe==="history"?[...Se[Qe]]:Se[Qe])}let ze;for(ze in Se)en.includes(ze)||(this[ze]=Se[ze])}get basename(){return typeof this.path=="string"?Ti.basename(this.path):void 0}set basename(nt){Dn(nt,"basename"),hn(nt,"basename"),this.path=Ti.join(this.dirname||"",nt)}get dirname(){return typeof this.path=="string"?Ti.dirname(this.path):void 0}set dirname(nt){qn(this.basename,"dirname"),this.path=Ti.join(nt||"",this.basename)}get extname(){return typeof this.path=="string"?Ti.extname(this.path):void 0}set extname(nt){if(hn(nt,"extname"),qn(this.dirname,"extname"),nt){if(nt.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(nt.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ti.join(this.dirname,this.stem+(nt||""))}get path(){return this.history[this.history.length-1]}set path(nt){Do(nt)&&(nt=Pu(nt)),Dn(nt,"path"),this.path!==nt&&this.history.push(nt)}get stem(){return typeof this.path=="string"?Ti.basename(this.path,this.extname):void 0}set stem(nt){Dn(nt,"stem"),hn(nt,"stem"),this.path=Ti.join(this.dirname||"",nt+(this.extname||""))}fail(nt,Se,Te){const ze=this.message(nt,Se,Te);throw ze.fatal=!0,ze}info(nt,Se,Te){const ze=this.message(nt,Se,Te);return ze.fatal=void 0,ze}message(nt,Se,Te){const ze=new ft(nt,Se,Te);return this.path&&(ze.name=this.path+":"+ze.name,ze.file=this.path),ze.fatal=!1,this.messages.push(ze),ze}toString(nt){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(nt||void 0).decode(this.value)}}function hn(Le,nt){if(Le&&Le.includes(Ti.sep))throw new Error("`"+nt+"` cannot be a path: did not expect `"+Ti.sep+"`")}function Dn(Le,nt){if(!Le)throw new Error("`"+nt+"` cannot be empty")}function qn(Le,nt){if(!Le)throw new Error("Setting `"+nt+"` requires `path` to be set too")}function lr(Le){return!!(Le&&typeof Le=="object"&&"byteLength"in Le&&"byteOffset"in Le)}const Pr=function(Le){const Te=this.constructor.prototype,ze=Te[Le],Qe=function(){return ze.apply(Qe,arguments)};Object.setPrototypeOf(Qe,Te);const mt=Object.getOwnPropertyNames(ze);for(const Ae of mt){const De=Object.getOwnPropertyDescriptor(ze,Ae);De&&Object.defineProperty(Qe,Ae,De)}return Qe},Kr={}.hasOwnProperty;class Br extends Pr{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=Fs()}copy(){const nt=new Br;let Se=-1;for(;++Se<this.attachers.length;){const Te=this.attachers[Se];nt.use(...Te)}return nt.data(ul(!0,{},this.namespace)),nt}data(nt,Se){return typeof nt=="string"?arguments.length===2?($r("data",this.frozen),this.namespace[nt]=Se,this):Kr.call(this.namespace,nt)&&this.namespace[nt]||void 0:nt?($r("data",this.frozen),this.namespace=nt,this):this.namespace}freeze(){if(this.frozen)return this;const nt=this;for(;++this.freezeIndex<this.attachers.length;){const[Se,...Te]=this.attachers[this.freezeIndex];if(Te[0]===!1)continue;Te[0]===!0&&(Te[0]=void 0);const ze=Se.call(nt,...Te);typeof ze=="function"&&this.transformers.use(ze)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(nt){this.freeze();const Se=To(nt),Te=this.parser||this.Parser;return Gr("parse",Te),Te(String(Se),Se)}process(nt,Se){const Te=this;return this.freeze(),Gr("process",this.parser||this.Parser),li("process",this.compiler||this.Compiler),Se?ze(void 0,Se):new Promise(ze);function ze(Qe,mt){const Ae=To(nt),De=Te.parse(Ae);Te.run(De,Ae,function(ot,Lt,Ut){if(ot||!Lt||!Ut)return qe(ot);const jt=Lt,se=Te.stringify(jt,Ut);Mi(se)?Ut.value=se:Ut.result=se,qe(ot,Ut)});function qe(ot,Lt){ot||!Lt?mt(ot):Qe?Qe(Lt):((0,Pe.ok)(Se,"`done` is defined if `resolve` is not"),Se(void 0,Lt))}}}processSync(nt){let Se=!1,Te;return this.freeze(),Gr("processSync",this.parser||this.Parser),li("processSync",this.compiler||this.Compiler),this.process(nt,ze),co("processSync","process",Se),(0,Pe.ok)(Te,"we either bailed on an error or have a tree"),Te;function ze(Qe,mt){Se=!0,Js(Qe),Te=mt}}run(nt,Se,Te){Ii(nt),this.freeze();const ze=this.transformers;return!Te&&typeof Se=="function"&&(Te=Se,Se=void 0),Te?Qe(void 0,Te):new Promise(Qe);function Qe(mt,Ae){(0,Pe.ok)(typeof Se!="function","`file` can\u2019t be a `done` anymore, we checked");const De=To(Se);ze.run(nt,De,qe);function qe(ot,Lt,Ut){const jt=Lt||nt;ot?Ae(ot):mt?mt(jt):((0,Pe.ok)(Te,"`done` is defined if `resolve` is not"),Te(void 0,jt,Ut))}}}runSync(nt,Se){let Te=!1,ze;return this.run(nt,Se,Qe),co("runSync","run",Te),(0,Pe.ok)(ze,"we either bailed on an error or have a tree"),ze;function Qe(mt,Ae){Js(mt),ze=Ae,Te=!0}}stringify(nt,Se){this.freeze();const Te=To(Se),ze=this.compiler||this.Compiler;return li("stringify",ze),Ii(nt),ze(nt,Te)}use(nt,...Se){const Te=this.attachers,ze=this.namespace;if($r("use",this.frozen),nt!=null)if(typeof nt=="function")De(nt,Se);else if(typeof nt=="object")Array.isArray(nt)?Ae(nt):mt(nt);else throw new TypeError("Expected usable value, not `"+nt+"`");return this;function Qe(qe){if(typeof qe=="function")De(qe,[]);else if(typeof qe=="object")if(Array.isArray(qe)){const[ot,...Lt]=qe;De(ot,Lt)}else mt(qe);else throw new TypeError("Expected usable value, not `"+qe+"`")}function mt(qe){if(!("plugins"in qe)&&!("settings"in qe))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");Ae(qe.plugins),qe.settings&&(ze.settings=ul(!0,ze.settings,qe.settings))}function Ae(qe){let ot=-1;if(qe!=null)if(Array.isArray(qe))for(;++ot<qe.length;){const Lt=qe[ot];Qe(Lt)}else throw new TypeError("Expected a list of plugins, not `"+qe+"`")}function De(qe,ot){let Lt=-1,Ut=-1;for(;++Lt<Te.length;)if(Te[Lt][0]===qe){Ut=Lt;break}if(Ut===-1)Te.push([qe,...ot]);else if(ot.length>0){let[jt,...se]=ot;const fe=Te[Ut][1];Sl(fe)&&Sl(jt)&&(jt=ul(!0,fe,jt)),Te[Ut]=[qe,jt,...se]}}}}const Si=new Br().freeze();function Gr(Le,nt){if(typeof nt!="function")throw new TypeError("Cannot `"+Le+"` without `parser`")}function li(Le,nt){if(typeof nt!="function")throw new TypeError("Cannot `"+Le+"` without `compiler`")}function $r(Le,nt){if(nt)throw new Error("Cannot call `"+Le+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ii(Le){if(!Sl(Le)||typeof Le.type!="string")throw new TypeError("Expected node, got `"+Le+"`")}function co(Le,nt,Se){if(!Se)throw new Error("`"+Le+"` finished async. Use `"+nt+"` instead")}function To(Le){return ra(Le)?Le:new cn(Le)}function ra(Le){return!!(Le&&typeof Le=="object"&&"message"in Le&&"messages"in Le)}function Mi(Le){return typeof Le=="string"||bo(Le)}function bo(Le){return!!(Le&&typeof Le=="object"&&"byteLength"in Le&&"byteOffset"in Le)}const ro="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",ea=[],Ia={allowDangerousHtml:!0},Vo=/^(https?|ircs?|mailto|xmpp)$/i,ss=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ma(Le){const nt=Le.allowedElements,Se=Le.allowElement,Te=Le.children||"",ze=Le.className,Qe=Le.components,mt=Le.disallowedElements,Ae=Le.rehypePlugins||ea,De=Le.remarkPlugins||ea,qe=Le.remarkRehypeOptions?Uu(Uu({},Le.remarkRehypeOptions),Ia):Ia,ot=Le.skipHtml,Lt=Le.unwrapDisallowed,Ut=Le.urlTransform||qa,jt=Si().use(rc).use(De).use(ys,qe).use(Ae),se=new cn;typeof Te=="string"?se.value=Te:(0,Pe.t1)("Unexpected value `"+Te+"` for `children` prop, expected `string`"),nt&&mt&&(0,Pe.t1)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other");for(const Yt of ss)Object.hasOwn(Le,Yt.from)&&(0,Pe.t1)("Unexpected `"+Yt.from+"` prop, "+(Yt.to?"use `"+Yt.to+"` instead":"remove it")+" (see <"+ro+"#"+Yt.id+"> for more info)");const fe=jt.parse(se);let je=jt.runSync(fe,se);return ze&&(je={type:"element",tagName:"div",properties:{className:ze},children:je.type==="root"?je.children:[je]}),(0,$u.Vn)(je,St),un(je,{Fragment:Kn.Fragment,components:Qe,ignoreInvalidStyle:!0,jsx:Kn.jsx,jsxs:Kn.jsxs,passKeys:!0,passNode:!0});function St(Yt,mn,wn){if(Yt.type==="raw"&&wn&&typeof mn=="number")return ot?wn.children.splice(mn,1):wn.children[mn]={type:"text",value:Yt.value},mn;if(Yt.type==="element"){let On;for(On in In)if(Object.hasOwn(In,On)&&Object.hasOwn(Yt.properties,On)){const Tn=Yt.properties[On],br=In[On];(br===null||br.includes(Yt.tagName))&&(Yt.properties[On]=Ut(String(Tn||""),On,Yt))}}if(Yt.type==="element"){let On=nt?!nt.includes(Yt.tagName):mt?mt.includes(Yt.tagName):!1;if(!On&&Se&&typeof mn=="number"&&(On=!Se(Yt,mn,wn)),On&&wn&&typeof mn=="number")return Lt&&Yt.children?wn.children.splice(mn,1,...Yt.children):wn.children.splice(mn,1),mn}}}function qa(Le){const nt=Le.indexOf(":"),Se=Le.indexOf("?"),Te=Le.indexOf("#"),ze=Le.indexOf("/");return nt<0||ze>-1&&nt>ze||Se>-1&&nt>Se||Te>-1&&nt>Te||Vo.test(Le.slice(0,nt))?Le:""}},17274:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return jt}});var ie=ae(52835),Pe=ae(24345),Fe=ae(55316),Oe=ae(91634),tt=ae(26103);function Me(se){const fe=String(se),je=[];return{toOffset:Yt,toPoint:St};function St(mn){if(typeof mn=="number"&&mn>-1&&mn<=fe.length){let wn=0;for(;;){let On=je[wn];if(On===void 0){const Tn=_e(fe,je[wn-1]);On=Tn===-1?fe.length+1:Tn+1,je[wn]=On}if(On>mn)return{line:wn+1,column:mn-(wn>0?je[wn-1]:0)+1,offset:mn};wn++}}}function Yt(mn){if(mn&&typeof mn.line=="number"&&typeof mn.column=="number"&&!Number.isNaN(mn.line)&&!Number.isNaN(mn.column)){for(;je.length<mn.line;){const On=je[je.length-1],Tn=_e(fe,On),br=Tn===-1?fe.length+1:Tn+1;if(On===br)break;je.push(br)}const wn=(mn.line>1?je[mn.line-2]:0)+mn.column-1;if(wn<je[mn.line-1])return wn}}}function _e(se,fe){const je=se.indexOf("\r",fe),St=se.indexOf(`
|
|
|
`,fe);return St===-1?je:je===-1||je+1===St?St:je<St?je:St}var ut=ae(49911);const et={}.hasOwnProperty,lt=Object.prototype;function Et(se,fe){const je=fe||{};return rt({file:je.file||void 0,location:!1,schema:je.space==="svg"?Oe.YP:Oe.dy,verbose:je.verbose||!1},se)}function rt(se,fe){let je;switch(fe.nodeName){case"#comment":{const St=fe;return je={type:"comment",value:St.data},te(se,St,je),je}case"#document":case"#document-fragment":{const St=fe,Yt="mode"in St?St.mode==="quirks"||St.mode==="limited-quirks":!1;if(je={type:"root",children:_t(se,fe.childNodes),data:{quirksMode:Yt}},se.file&&se.location){const mn=String(se.file),wn=Me(mn),On=wn.toPoint(0),Tn=wn.toPoint(mn.length);(0,Pe.ok)(On,"expected `start`"),(0,Pe.ok)(Tn,"expected `end`"),je.position={start:On,end:Tn}}return je}case"#documentType":{const St=fe;return je={type:"doctype"},te(se,St,je),je}case"#text":{const St=fe;return je={type:"text",value:St.value},te(se,St,je),je}default:return je=Ge(se,fe),je}}function _t(se,fe){let je=-1;const St=[];for(;++je<fe.length;){const Yt=rt(se,fe[je]);St.push(Yt)}return St}function Ge(se,fe){const je=se.schema;se.schema=fe.namespaceURI===ut.t.svg?Oe.YP:Oe.dy;let St=-1;const Yt={};for(;++St<fe.attrs.length;){const On=fe.attrs[St],Tn=(On.prefix?On.prefix+":":"")+On.name;et.call(lt,Tn)||(Yt[Tn]=On.value)}const wn=(se.schema.space==="svg"?Fe.s:Fe.h)(fe.tagName,Yt,_t(se,fe.childNodes));if(te(se,fe,wn),wn.tagName==="template"){const On=fe,Tn=On.sourceCodeLocation,br=Tn&&Tn.startTag&&de(Tn.startTag),Wr=Tn&&Tn.endTag&&de(Tn.endTag),di=rt(se,On.content);br&&Wr&&se.file&&(di.position={start:br.end,end:Wr.start}),wn.content=di}return se.schema=je,wn}function te(se,fe,je){if("sourceCodeLocation"in fe&&fe.sourceCodeLocation&&se.file){const St=ee(se,je,fe.sourceCodeLocation);St&&(se.location=!0,je.position=St)}}function ee(se,fe,je){const St=de(je);if(fe.type==="element"){const Yt=fe.children[fe.children.length-1];if(St&&!je.endTag&&Yt&&Yt.position&&Yt.position.end&&(St.end=Object.assign({},Yt.position.end)),se.verbose){const mn={};let wn;if(je.attrs)for(wn in je.attrs)et.call(je.attrs,wn)&&(mn[(0,tt.s)(se.schema,wn).property]=de(je.attrs[wn]));(0,Pe.ok)(je.startTag,"a start tag should exist");const On=de(je.startTag),Tn=je.endTag?de(je.endTag):void 0,br={opening:On};Tn&&(br.closing=Tn),br.properties=mn,fe.data={position:br}}}return St}function de(se){const fe=le({line:se.startLine,column:se.startCol,offset:se.startOffset}),je=le({line:se.endLine,column:se.endCol,offset:se.endOffset});return fe||je?{start:fe,end:je}:void 0}function le(se){return se.line&&se.column?se:void 0}var pe=ae(25668),me=ae(50342);const xe={}.hasOwnProperty;function be(se,fe){const je=fe||{};function St(Yt,...mn){let wn=St.invalid;const On=St.handlers;if(Yt&&xe.call(Yt,se)){const Tn=String(Yt[se]);wn=xe.call(On,Tn)?On[Tn]:St.unknown}if(wn)return wn.call(this,Yt,...mn)}return St.handlers=je.handlers||{},St.invalid=je.invalid,St.unknown=je.unknown,St}const Be={},at={}.hasOwnProperty,dt=be("type",{handlers:{root:ft,element:Rt,text:Ct,comment:Vt,doctype:Tt}});function gt(se,fe){const St=(fe||Be).space;return dt(se,St==="svg"?Oe.YP:Oe.dy)}function ft(se,fe){const je={nodeName:"#document",mode:(se.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return je.childNodes=Cn(se.children,je,fe),un(se,je),je}function Nt(se,fe){const je={nodeName:"#document-fragment",childNodes:[]};return je.childNodes=Cn(se.children,je,fe),un(se,je),je}function Tt(se){const fe={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return un(se,fe),fe}function Ct(se){const fe={nodeName:"#text",value:se.value,parentNode:null};return un(se,fe),fe}function Vt(se){const fe={nodeName:"#comment",data:se.value,parentNode:null};return un(se,fe),fe}function Rt(se,fe){const je=fe;let St=je;se.type==="element"&&se.tagName.toLowerCase()==="svg"&&je.space==="html"&&(St=Oe.YP);const Yt=[];let mn;if(se.properties){for(mn in se.properties)if(mn!=="children"&&at.call(se.properties,mn)){const Tn=nn(St,mn,se.properties[mn]);Tn&&Yt.push(Tn)}}const wn=St.space;(0,Pe.ok)(wn);const On={nodeName:se.tagName,tagName:se.tagName,attrs:Yt,namespaceURI:ut.t[wn],childNodes:[],parentNode:null};return On.childNodes=Cn(se.children,On,St),un(se,On),se.tagName==="template"&&se.content&&(On.content=Nt(se.content,St)),On}function nn(se,fe,je){const St=(0,tt.s)(se,fe);if(je===!1||je===null||je===void 0||typeof je=="number"&&Number.isNaN(je)||!je&&St.boolean)return;Array.isArray(je)&&(je=St.commaSeparated?(0,pe.P)(je):(0,me.P)(je));const Yt={name:St.attribute,value:je===!0?"":String(je)};if(St.space&&St.space!=="html"&&St.space!=="svg"){const mn=Yt.name.indexOf(":");mn<0?Yt.prefix="":(Yt.name=Yt.name.slice(mn+1),Yt.prefix=St.attribute.slice(0,mn)),Yt.namespace=ut.t[St.space]}return Yt}function Cn(se,fe,je){let St=-1;const Yt=[];if(se)for(;++St<se.length;){const mn=dt(se[St],je);mn.parentNode=fe,Yt.push(mn)}return Yt}function un(se,fe){const je=se.position;je&&je.start&&je.end&&((0,Pe.ok)(typeof je.start.offset=="number"),(0,Pe.ok)(typeof je.end.offset=="number"),fe.sourceCodeLocation={startLine:je.start.line,startCol:je.start.column,startOffset:je.start.offset,endLine:je.end.line,endCol:je.end.column,endOffset:je.end.offset})}const Nn=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],wt=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]),pt="\uFFFD";var Ie;(function(se){se[se.EOF=-1]="EOF",se[se.NULL=0]="NULL",se[se.TABULATION=9]="TABULATION",se[se.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",se[se.LINE_FEED=10]="LINE_FEED",se[se.FORM_FEED=12]="FORM_FEED",se[se.SPACE=32]="SPACE",se[se.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",se[se.QUOTATION_MARK=34]="QUOTATION_MARK",se[se.NUMBER_SIGN=35]="NUMBER_SIGN",se[se.AMPERSAND=38]="AMPERSAND",se[se.APOSTROPHE=39]="APOSTROPHE",se[se.HYPHEN_MINUS=45]="HYPHEN_MINUS",se[se.SOLIDUS=47]="SOLIDUS",se[se.DIGIT_0=48]="DIGIT_0",se[se.DIGIT_9=57]="DIGIT_9",se[se.SEMICOLON=59]="SEMICOLON",se[se.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",se[se.EQUALS_SIGN=61]="EQUALS_SIGN",se[se.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",se[se.QUESTION_MARK=63]="QUESTION_MARK",se[se.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",se[se.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",se[se.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",se[se.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",se[se.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",se[se.GRAVE_ACCENT=96]="GRAVE_ACCENT",se[se.LATIN_SMALL_A=97]="LATIN_SMALL_A",se[se.LATIN_SMALL_F=102]="LATIN_SMALL_F",se[se.LATIN_SMALL_X=120]="LATIN_SMALL_X",se[se.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",se[se.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"})(Ie=Ie||(Ie={}));const on={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Bn(se){return se>=55296&&se<=57343}function Zt(se){return se>=56320&&se<=57343}function zn(se,fe){return(se-55296)*1024+9216+fe}function _n(se){return se!==32&&se!==10&&se!==13&&se!==9&&se!==12&&se>=1&&se<=31||se>=127&&se<=159}function nr(se){return se>=64976&&se<=65007||wt.has(se)}var Ft;(function(se){se.controlCharacterInInputStream="control-character-in-input-stream",se.noncharacterInInputStream="noncharacter-in-input-stream",se.surrogateInInputStream="surrogate-in-input-stream",se.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",se.endTagWithAttributes="end-tag-with-attributes",se.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",se.unexpectedSolidusInTag="unexpected-solidus-in-tag",se.unexpectedNullCharacter="unexpected-null-character",se.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",se.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",se.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",se.missingEndTagName="missing-end-tag-name",se.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",se.unknownNamedCharacterReference="unknown-named-character-reference",se.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",se.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",se.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",se.eofBeforeTagName="eof-before-tag-name",se.eofInTag="eof-in-tag",se.missingAttributeValue="missing-attribute-value",se.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",se.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",se.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",se.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",se.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",se.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",se.missingDoctypePublicIdentifier="missing-doctype-public-identifier",se.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",se.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",se.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",se.cdataInHtmlContent="cdata-in-html-content",se.incorrectlyOpenedComment="incorrectly-opened-comment",se.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",se.eofInDoctype="eof-in-doctype",se.nestedComment="nested-comment",se.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",se.eofInComment="eof-in-comment",se.incorrectlyClosedComment="incorrectly-closed-comment",se.eofInCdata="eof-in-cdata",se.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",se.nullCharacterReference="null-character-reference",se.surrogateCharacterReference="surrogate-character-reference",se.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",se.controlCharacterReference="control-character-reference",se.noncharacterCharacterReference="noncharacter-character-reference",se.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",se.missingDoctypeName="missing-doctype-name",se.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",se.duplicateAttribute="duplicate-attribute",se.nonConformingDoctype="non-conforming-doctype",se.missingDoctype="missing-doctype",se.misplacedDoctype="misplaced-doctype",se.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",se.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",se.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",se.openElementsLeftAfterEof="open-elements-left-after-eof",se.abandonedHeadElementChild="abandoned-head-element-child",se.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",se.nestedNoscriptInHead="nested-noscript-in-head",se.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(Ft=Ft||(Ft={}));const Wt=65536;class ht{constructor(fe){this.handler=fe,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Wt,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(fe){const{line:je,col:St,offset:Yt}=this;return{code:fe,startLine:je,endLine:je,startCol:St,endCol:St,startOffset:Yt,endOffset:Yt}}_err(fe){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(fe)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(fe){if(this.pos!==this.html.length-1){const je=this.html.charCodeAt(this.pos+1);if(Zt(je))return this.pos++,this._addGap(),zn(fe,je)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Ie.EOF;return this._err(Ft.surrogateInInputStream),fe}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(fe,je){this.html.length>0?this.html+=fe:this.html=fe,this.endOfChunkHit=!1,this.lastChunkWritten=je}insertHtmlAtCurrentPos(fe){this.html=this.html.substring(0,this.pos+1)+fe+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(fe,je){if(this.pos+fe.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(je)return this.html.startsWith(fe,this.pos);for(let St=0;St<fe.length;St++)if((this.html.charCodeAt(this.pos+St)|32)!==fe.charCodeAt(St))return!1;return!0}peek(fe){const je=this.pos+fe;if(je>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Ie.EOF;const St=this.html.charCodeAt(je);return St===Ie.CARRIAGE_RETURN?Ie.LINE_FEED:St}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,Ie.EOF;let fe=this.html.charCodeAt(this.pos);return fe===Ie.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,Ie.LINE_FEED):fe===Ie.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Bn(fe)&&(fe=this._processSurrogate(fe)),this.handler.onParseError===null||fe>31&&fe<127||fe===Ie.LINE_FEED||fe===Ie.CARRIAGE_RETURN||fe>159&&fe<64976||this._checkForProblematicCharacters(fe),fe)}_checkForProblematicCharacters(fe){_n(fe)?this._err(Ft.controlCharacterInInputStream):nr(fe)&&this._err(Ft.noncharacterInInputStream)}retreat(fe){for(this.pos-=fe;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var tn;(function(se){se[se.CHARACTER=0]="CHARACTER",se[se.NULL_CHARACTER=1]="NULL_CHARACTER",se[se.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",se[se.START_TAG=3]="START_TAG",se[se.END_TAG=4]="END_TAG",se[se.COMMENT=5]="COMMENT",se[se.DOCTYPE=6]="DOCTYPE",se[se.EOF=7]="EOF",se[se.HIBERNATION=8]="HIBERNATION"})(tn=tn||(tn={}));function an(se,fe){for(let je=se.attrs.length-1;je>=0;je--)if(se.attrs[je].name===fe)return se.attrs[je].value;return null}var ct=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(se=>se.charCodeAt(0))),Ue=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(se=>se.charCodeAt(0))),He;const it=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]]),vt=(He=String.fromCodePoint)!==null&&He!==void 0?He:function(se){let fe="";return se>65535&&(se-=65536,fe+=String.fromCharCode(se>>>10&1023|55296),se=56320|se&1023),fe+=String.fromCharCode(se),fe};function Ye(se){var fe;return se>=55296&&se<=57343||se>1114111?65533:(fe=it.get(se))!==null&&fe!==void 0?fe:se}function It(se){return vt(Ye(se))}var In;(function(se){se[se.NUM=35]="NUM",se[se.SEMI=59]="SEMI",se[se.ZERO=48]="ZERO",se[se.NINE=57]="NINE",se[se.LOWER_A=97]="LOWER_A",se[se.LOWER_F=102]="LOWER_F",se[se.LOWER_X=120]="LOWER_X",se[se.To_LOWER_BIT=32]="To_LOWER_BIT"})(In||(In={}));var Kn;(function(se){se[se.VALUE_LENGTH=49152]="VALUE_LENGTH",se[se.BRANCH_LENGTH=16256]="BRANCH_LENGTH",se[se.JUMP_TABLE=127]="JUMP_TABLE"})(Kn||(Kn={}));function dr(se){return function(je,St){let Yt="",mn=0,wn=0;for(;(wn=je.indexOf("&",wn))>=0;){if(Yt+=je.slice(mn,wn),mn=wn,wn+=1,je.charCodeAt(wn)===In.NUM){let di=wn+1,ii=10,oi=je.charCodeAt(di);(oi|In.To_LOWER_BIT)===In.LOWER_X&&(ii=16,wn+=1,di+=1);do oi=je.charCodeAt(++wn);while(oi>=In.ZERO&&oi<=In.NINE||ii===16&&(oi|In.To_LOWER_BIT)>=In.LOWER_A&&(oi|In.To_LOWER_BIT)<=In.LOWER_F);if(di!==wn){const Di=je.substring(di,wn),cr=parseInt(Di,ii);if(je.charCodeAt(wn)===In.SEMI)wn+=1;else if(St)continue;Yt+=It(cr),mn=wn}continue}let On=0,Tn=1,br=0,Wr=se[br];for(;wn<je.length&&(br=Rn(se,Wr,br+1,je.charCodeAt(wn)),!(br<0));wn++,Tn++){Wr=se[br];const di=Wr&Kn.VALUE_LENGTH;if(di){(!St||je.charCodeAt(wn)===In.SEMI)&&(On=br,Tn=0);const ii=(di>>14)-1;if(ii===0)break;br+=ii}}if(On!==0){const di=(se[On]&Kn.VALUE_LENGTH)>>14;Yt+=di===1?String.fromCharCode(se[On]&~Kn.VALUE_LENGTH):di===2?String.fromCharCode(se[On+1]):String.fromCharCode(se[On+1],se[On+2]),mn=wn-Tn+1}}return Yt+je.slice(mn)}}function Rn(se,fe,je,St){const Yt=(fe&Kn.BRANCH_LENGTH)>>7,mn=fe&Kn.JUMP_TABLE;if(Yt===0)return mn!==0&&St===mn?je:-1;if(mn){const Tn=St-mn;return Tn<0||Tn>=Yt?-1:se[je+Tn]-1}let wn=je,On=wn+Yt-1;for(;wn<=On;){const Tn=wn+On>>>1,br=se[Tn];if(br<St)wn=Tn+1;else if(br>St)On=Tn-1;else return se[Tn+Yt]}return-1}const er=dr(ct),yn=dr(Ue);function Er(se){return er(se,!1)}function sr(se){return er(se,!0)}function Hr(se){return yn(se,!0)}var An;(function(se){se.HTML="http://www.w3.org/1999/xhtml",se.MATHML="http://www.w3.org/1998/Math/MathML",se.SVG="http://www.w3.org/2000/svg",se.XLINK="http://www.w3.org/1999/xlink",se.XML="http://www.w3.org/XML/1998/namespace",se.XMLNS="http://www.w3.org/2000/xmlns/"})(An=An||(An={}));var yi;(function(se){se.TYPE="type",se.ACTION="action",se.ENCODING="encoding",se.PROMPT="prompt",se.NAME="name",se.COLOR="color",se.FACE="face",se.SIZE="size"})(yi=yi||(yi={}));var ri;(function(se){se.NO_QUIRKS="no-quirks",se.QUIRKS="quirks",se.LIMITED_QUIRKS="limited-quirks"})(ri=ri||(ri={}));var bn;(function(se){se.A="a",se.ADDRESS="address",se.ANNOTATION_XML="annotation-xml",se.APPLET="applet",se.AREA="area",se.ARTICLE="article",se.ASIDE="aside",se.B="b",se.BASE="base",se.BASEFONT="basefont",se.BGSOUND="bgsound",se.BIG="big",se.BLOCKQUOTE="blockquote",se.BODY="body",se.BR="br",se.BUTTON="button",se.CAPTION="caption",se.CENTER="center",se.CODE="code",se.COL="col",se.COLGROUP="colgroup",se.DD="dd",se.DESC="desc",se.DETAILS="details",se.DIALOG="dialog",se.DIR="dir",se.DIV="div",se.DL="dl",se.DT="dt",se.EM="em",se.EMBED="embed",se.FIELDSET="fieldset",se.FIGCAPTION="figcaption",se.FIGURE="figure",se.FONT="font",se.FOOTER="footer",se.FOREIGN_OBJECT="foreignObject",se.FORM="form",se.FRAME="frame",se.FRAMESET="frameset",se.H1="h1",se.H2="h2",se.H3="h3",se.H4="h4",se.H5="h5",se.H6="h6",se.HEAD="head",se.HEADER="header",se.HGROUP="hgroup",se.HR="hr",se.HTML="html",se.I="i",se.IMG="img",se.IMAGE="image",se.INPUT="input",se.IFRAME="iframe",se.KEYGEN="keygen",se.LABEL="label",se.LI="li",se.LINK="link",se.LISTING="listing",se.MAIN="main",se.MALIGNMARK="malignmark",se.MARQUEE="marquee",se.MATH="math",se.MENU="menu",se.META="meta",se.MGLYPH="mglyph",se.MI="mi",se.MO="mo",se.MN="mn",se.MS="ms",se.MTEXT="mtext",se.NAV="nav",se.NOBR="nobr",se.NOFRAMES="noframes",se.NOEMBED="noembed",se.NOSCRIPT="noscript",se.OBJECT="object",se.OL="ol",se.OPTGROUP="optgroup",se.OPTION="option",se.P="p",se.PARAM="param",se.PLAINTEXT="plaintext",se.PRE="pre",se.RB="rb",se.RP="rp",se.RT="rt",se.RTC="rtc",se.RUBY="ruby",se.S="s",se.SCRIPT="script",se.SECTION="section",se.SELECT="select",se.SOURCE="source",se.SMALL="small",se.SPAN="span",se.STRIKE="strike",se.STRONG="strong",se.STYLE="style",se.SUB="sub",se.SUMMARY="summary",se.SUP="sup",se.TABLE="table",se.TBODY="tbody",se.TEMPLATE="template",se.TEXTAREA="textarea",se.TFOOT="tfoot",se.TD="td",se.TH="th",se.THEAD="thead",se.TITLE="title",se.TR="tr",se.TRACK="track",se.TT="tt",se.U="u",se.UL="ul",se.SVG="svg",se.VAR="var",se.WBR="wbr",se.XMP="xmp"})(bn=bn||(bn={}));var Xe;(function(se){se[se.UNKNOWN=0]="UNKNOWN",se[se.A=1]="A",se[se.ADDRESS=2]="ADDRESS",se[se.ANNOTATION_XML=3]="ANNOTATION_XML",se[se.APPLET=4]="APPLET",se[se.AREA=5]="AREA",se[se.ARTICLE=6]="ARTICLE",se[se.ASIDE=7]="ASIDE",se[se.B=8]="B",se[se.BASE=9]="BASE",se[se.BASEFONT=10]="BASEFONT",se[se.BGSOUND=11]="BGSOUND",se[se.BIG=12]="BIG",se[se.BLOCKQUOTE=13]="BLOCKQUOTE",se[se.BODY=14]="BODY",se[se.BR=15]="BR",se[se.BUTTON=16]="BUTTON",se[se.CAPTION=17]="CAPTION",se[se.CENTER=18]="CENTER",se[se.CODE=19]="CODE",se[se.COL=20]="COL",se[se.COLGROUP=21]="COLGROUP",se[se.DD=22]="DD",se[se.DESC=23]="DESC",se[se.DETAILS=24]="DETAILS",se[se.DIALOG=25]="DIALOG",se[se.DIR=26]="DIR",se[se.DIV=27]="DIV",se[se.DL=28]="DL",se[se.DT=29]="DT",se[se.EM=30]="EM",se[se.EMBED=31]="EMBED",se[se.FIELDSET=32]="FIELDSET",se[se.FIGCAPTION=33]="FIGCAPTION",se[se.FIGURE=34]="FIGURE",se[se.FONT=35]="FONT",se[se.FOOTER=36]="FOOTER",se[se.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",se[se.FORM=38]="FORM",se[se.FRAME=39]="FRAME",se[se.FRAMESET=40]="FRAMESET",se[se.H1=41]="H1",se[se.H2=42]="H2",se[se.H3=43]="H3",se[se.H4=44]="H4",se[se.H5=45]="H5",se[se.H6=46]="H6",se[se.HEAD=47]="HEAD",se[se.HEADER=48]="HEADER",se[se.HGROUP=49]="HGROUP",se[se.HR=50]="HR",se[se.HTML=51]="HTML",se[se.I=52]="I",se[se.IMG=53]="IMG",se[se.IMAGE=54]="IMAGE",se[se.INPUT=55]="INPUT",se[se.IFRAME=56]="IFRAME",se[se.KEYGEN=57]="KEYGEN",se[se.LABEL=58]="LABEL",se[se.LI=59]="LI",se[se.LINK=60]="LINK",se[se.LISTING=61]="LISTING",se[se.MAIN=62]="MAIN",se[se.MALIGNMARK=63]="MALIGNMARK",se[se.MARQUEE=64]="MARQUEE",se[se.MATH=65]="MATH",se[se.MENU=66]="MENU",se[se.META=67]="META",se[se.MGLYPH=68]="MGLYPH",se[se.MI=69]="MI",se[se.MO=70]="MO",se[se.MN=71]="MN",se[se.MS=72]="MS",se[se.MTEXT=73]="MTEXT",se[se.NAV=74]="NAV",se[se.NOBR=75]="NOBR",se[se.NOFRAMES=76]="NOFRAMES",se[se.NOEMBED=77]="NOEMBED",se[se.NOSCRIPT=78]="NOSCRIPT",se[se.OBJECT=79]="OBJECT",se[se.OL=80]="OL",se[se.OPTGROUP=81]="OPTGROUP",se[se.OPTION=82]="OPTION",se[se.P=83]="P",se[se.PARAM=84]="PARAM",se[se.PLAINTEXT=85]="PLAINTEXT",se[se.PRE=86]="PRE",se[se.RB=87]="RB",se[se.RP=88]="RP",se[se.RT=89]="RT",se[se.RTC=90]="RTC",se[se.RUBY=91]="RUBY",se[se.S=92]="S",se[se.SCRIPT=93]="SCRIPT",se[se.SECTION=94]="SECTION",se[se.SELECT=95]="SELECT",se[se.SOURCE=96]="SOURCE",se[se.SMALL=97]="SMALL",se[se.SPAN=98]="SPAN",se[se.STRIKE=99]="STRIKE",se[se.STRONG=100]="STRONG",se[se.STYLE=101]="STYLE",se[se.SUB=102]="SUB",se[se.SUMMARY=103]="SUMMARY",se[se.SUP=104]="SUP",se[se.TABLE=105]="TABLE",se[se.TBODY=106]="TBODY",se[se.TEMPLATE=107]="TEMPLATE",se[se.TEXTAREA=108]="TEXTAREA",se[se.TFOOT=109]="TFOOT",se[se.TD=110]="TD",se[se.TH=111]="TH",se[se.THEAD=112]="THEAD",se[se.TITLE=113]="TITLE",se[se.TR=114]="TR",se[se.TRACK=115]="TRACK",se[se.TT=116]="TT",se[se.U=117]="U",se[se.UL=118]="UL",se[se.SVG=119]="SVG",se[se.VAR=120]="VAR",se[se.WBR=121]="WBR",se[se.XMP=122]="XMP"})(Xe=Xe||(Xe={}));const Ji=new Map([[bn.A,Xe.A],[bn.ADDRESS,Xe.ADDRESS],[bn.ANNOTATION_XML,Xe.ANNOTATION_XML],[bn.APPLET,Xe.APPLET],[bn.AREA,Xe.AREA],[bn.ARTICLE,Xe.ARTICLE],[bn.ASIDE,Xe.ASIDE],[bn.B,Xe.B],[bn.BASE,Xe.BASE],[bn.BASEFONT,Xe.BASEFONT],[bn.BGSOUND,Xe.BGSOUND],[bn.BIG,Xe.BIG],[bn.BLOCKQUOTE,Xe.BLOCKQUOTE],[bn.BODY,Xe.BODY],[bn.BR,Xe.BR],[bn.BUTTON,Xe.BUTTON],[bn.CAPTION,Xe.CAPTION],[bn.CENTER,Xe.CENTER],[bn.CODE,Xe.CODE],[bn.COL,Xe.COL],[bn.COLGROUP,Xe.COLGROUP],[bn.DD,Xe.DD],[bn.DESC,Xe.DESC],[bn.DETAILS,Xe.DETAILS],[bn.DIALOG,Xe.DIALOG],[bn.DIR,Xe.DIR],[bn.DIV,Xe.DIV],[bn.DL,Xe.DL],[bn.DT,Xe.DT],[bn.EM,Xe.EM],[bn.EMBED,Xe.EMBED],[bn.FIELDSET,Xe.FIELDSET],[bn.FIGCAPTION,Xe.FIGCAPTION],[bn.FIGURE,Xe.FIGURE],[bn.FONT,Xe.FONT],[bn.FOOTER,Xe.FOOTER],[bn.FOREIGN_OBJECT,Xe.FOREIGN_OBJECT],[bn.FORM,Xe.FORM],[bn.FRAME,Xe.FRAME],[bn.FRAMESET,Xe.FRAMESET],[bn.H1,Xe.H1],[bn.H2,Xe.H2],[bn.H3,Xe.H3],[bn.H4,Xe.H4],[bn.H5,Xe.H5],[bn.H6,Xe.H6],[bn.HEAD,Xe.HEAD],[bn.HEADER,Xe.HEADER],[bn.HGROUP,Xe.HGROUP],[bn.HR,Xe.HR],[bn.HTML,Xe.HTML],[bn.I,Xe.I],[bn.IMG,Xe.IMG],[bn.IMAGE,Xe.IMAGE],[bn.INPUT,Xe.INPUT],[bn.IFRAME,Xe.IFRAME],[bn.KEYGEN,Xe.KEYGEN],[bn.LABEL,Xe.LABEL],[bn.LI,Xe.LI],[bn.LINK,Xe.LINK],[bn.LISTING,Xe.LISTING],[bn.MAIN,Xe.MAIN],[bn.MALIGNMARK,Xe.MALIGNMARK],[bn.MARQUEE,Xe.MARQUEE],[bn.MATH,Xe.MATH],[bn.MENU,Xe.MENU],[bn.META,Xe.META],[bn.MGLYPH,Xe.MGLYPH],[bn.MI,Xe.MI],[bn.MO,Xe.MO],[bn.MN,Xe.MN],[bn.MS,Xe.MS],[bn.MTEXT,Xe.MTEXT],[bn.NAV,Xe.NAV],[bn.NOBR,Xe.NOBR],[bn.NOFRAMES,Xe.NOFRAMES],[bn.NOEMBED,Xe.NOEMBED],[bn.NOSCRIPT,Xe.NOSCRIPT],[bn.OBJECT,Xe.OBJECT],[bn.OL,Xe.OL],[bn.OPTGROUP,Xe.OPTGROUP],[bn.OPTION,Xe.OPTION],[bn.P,Xe.P],[bn.PARAM,Xe.PARAM],[bn.PLAINTEXT,Xe.PLAINTEXT],[bn.PRE,Xe.PRE],[bn.RB,Xe.RB],[bn.RP,Xe.RP],[bn.RT,Xe.RT],[bn.RTC,Xe.RTC],[bn.RUBY,Xe.RUBY],[bn.S,Xe.S],[bn.SCRIPT,Xe.SCRIPT],[bn.SECTION,Xe.SECTION],[bn.SELECT,Xe.SELECT],[bn.SOURCE,Xe.SOURCE],[bn.SMALL,Xe.SMALL],[bn.SPAN,Xe.SPAN],[bn.STRIKE,Xe.STRIKE],[bn.STRONG,Xe.STRONG],[bn.STYLE,Xe.STYLE],[bn.SUB,Xe.SUB],[bn.SUMMARY,Xe.SUMMARY],[bn.SUP,Xe.SUP],[bn.TABLE,Xe.TABLE],[bn.TBODY,Xe.TBODY],[bn.TEMPLATE,Xe.TEMPLATE],[bn.TEXTAREA,Xe.TEXTAREA],[bn.TFOOT,Xe.TFOOT],[bn.TD,Xe.TD],[bn.TH,Xe.TH],[bn.THEAD,Xe.THEAD],[bn.TITLE,Xe.TITLE],[bn.TR,Xe.TR],[bn.TRACK,Xe.TRACK],[bn.TT,Xe.TT],[bn.U,Xe.U],[bn.UL,Xe.UL],[bn.SVG,Xe.SVG],[bn.VAR,Xe.VAR],[bn.WBR,Xe.WBR],[bn.XMP,Xe.XMP]]);function Qn(se){var fe;return(fe=Ji.get(se))!==null&&fe!==void 0?fe:Xe.UNKNOWN}const Sn=Xe,to={[An.HTML]:new Set([Sn.ADDRESS,Sn.APPLET,Sn.AREA,Sn.ARTICLE,Sn.ASIDE,Sn.BASE,Sn.BASEFONT,Sn.BGSOUND,Sn.BLOCKQUOTE,Sn.BODY,Sn.BR,Sn.BUTTON,Sn.CAPTION,Sn.CENTER,Sn.COL,Sn.COLGROUP,Sn.DD,Sn.DETAILS,Sn.DIR,Sn.DIV,Sn.DL,Sn.DT,Sn.EMBED,Sn.FIELDSET,Sn.FIGCAPTION,Sn.FIGURE,Sn.FOOTER,Sn.FORM,Sn.FRAME,Sn.FRAMESET,Sn.H1,Sn.H2,Sn.H3,Sn.H4,Sn.H5,Sn.H6,Sn.HEAD,Sn.HEADER,Sn.HGROUP,Sn.HR,Sn.HTML,Sn.IFRAME,Sn.IMG,Sn.INPUT,Sn.LI,Sn.LINK,Sn.LISTING,Sn.MAIN,Sn.MARQUEE,Sn.MENU,Sn.META,Sn.NAV,Sn.NOEMBED,Sn.NOFRAMES,Sn.NOSCRIPT,Sn.OBJECT,Sn.OL,Sn.P,Sn.PARAM,Sn.PLAINTEXT,Sn.PRE,Sn.SCRIPT,Sn.SECTION,Sn.SELECT,Sn.SOURCE,Sn.STYLE,Sn.SUMMARY,Sn.TABLE,Sn.TBODY,Sn.TD,Sn.TEMPLATE,Sn.TEXTAREA,Sn.TFOOT,Sn.TH,Sn.THEAD,Sn.TITLE,Sn.TR,Sn.TRACK,Sn.UL,Sn.WBR,Sn.XMP]),[An.MATHML]:new Set([Sn.MI,Sn.MO,Sn.MN,Sn.MS,Sn.MTEXT,Sn.ANNOTATION_XML]),[An.SVG]:new Set([Sn.TITLE,Sn.FOREIGN_OBJECT,Sn.DESC]),[An.XLINK]:new Set,[An.XML]:new Set,[An.XMLNS]:new Set};function Ki(se){return se===Sn.H1||se===Sn.H2||se===Sn.H3||se===Sn.H4||se===Sn.H5||se===Sn.H6}const Zr=new Set([bn.STYLE,bn.SCRIPT,bn.XMP,bn.IFRAME,bn.NOEMBED,bn.NOFRAMES,bn.PLAINTEXT]);function hi(se,fe){return Zr.has(se)||fe&&se===bn.NOSCRIPT}const Ir=new Map([[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]]);var fn;(function(se){se[se.DATA=0]="DATA",se[se.RCDATA=1]="RCDATA",se[se.RAWTEXT=2]="RAWTEXT",se[se.SCRIPT_DATA=3]="SCRIPT_DATA",se[se.PLAINTEXT=4]="PLAINTEXT",se[se.TAG_OPEN=5]="TAG_OPEN",se[se.END_TAG_OPEN=6]="END_TAG_OPEN",se[se.TAG_NAME=7]="TAG_NAME",se[se.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",se[se.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",se[se.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",se[se.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",se[se.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",se[se.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",se[se.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",se[se.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",se[se.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",se[se.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",se[se.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",se[se.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",se[se.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",se[se.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",se[se.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",se[se.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",se[se.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",se[se.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",se[se.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",se[se.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",se[se.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",se[se.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",se[se.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",se[se.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",se[se.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",se[se.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",se[se.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",se[se.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",se[se.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",se[se.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",se[se.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",se[se.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",se[se.BOGUS_COMMENT=40]="BOGUS_COMMENT",se[se.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",se[se.COMMENT_START=42]="COMMENT_START",se[se.COMMENT_START_DASH=43]="COMMENT_START_DASH",se[se.COMMENT=44]="COMMENT",se[se.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",se[se.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",se[se.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",se[se.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",se[se.COMMENT_END_DASH=49]="COMMENT_END_DASH",se[se.COMMENT_END=50]="COMMENT_END",se[se.COMMENT_END_BANG=51]="COMMENT_END_BANG",se[se.DOCTYPE=52]="DOCTYPE",se[se.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",se[se.DOCTYPE_NAME=54]="DOCTYPE_NAME",se[se.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",se[se.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",se[se.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",se[se.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",se[se.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",se[se.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",se[se.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",se[se.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",se[se.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",se[se.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",se[se.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",se[se.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",se[se.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",se[se.CDATA_SECTION=68]="CDATA_SECTION",se[se.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",se[se.CDATA_SECTION_END=70]="CDATA_SECTION_END",se[se.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",se[se.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",se[se.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",se[se.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",se[se.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",se[se.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",se[se.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",se[se.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(fn||(fn={}));const Hi={DATA:fn.DATA,RCDATA:fn.RCDATA,RAWTEXT:fn.RAWTEXT,SCRIPT_DATA:fn.SCRIPT_DATA,PLAINTEXT:fn.PLAINTEXT,CDATA_SECTION:fn.CDATA_SECTION};function ao(se){return se>=Ie.DIGIT_0&&se<=Ie.DIGIT_9}function ui(se){return se>=Ie.LATIN_CAPITAL_A&&se<=Ie.LATIN_CAPITAL_Z}function ai(se){return se>=Ie.LATIN_SMALL_A&&se<=Ie.LATIN_SMALL_Z}function Ni(se){return ai(se)||ui(se)}function ir(se){return Ni(se)||ao(se)}function We(se){return se>=Ie.LATIN_CAPITAL_A&&se<=Ie.LATIN_CAPITAL_F}function rr(se){return se>=Ie.LATIN_SMALL_A&&se<=Ie.LATIN_SMALL_F}function ur(se){return ao(se)||We(se)||rr(se)}function hr(se){return se+32}function Or(se){return se===Ie.SPACE||se===Ie.LINE_FEED||se===Ie.TABULATION||se===Ie.FORM_FEED}function jr(se){return se===Ie.EQUALS_SIGN||ir(se)}function si(se){return Or(se)||se===Ie.SOLIDUS||se===Ie.GREATER_THAN_SIGN}class Fi{constructor(fe,je){this.options=fe,this.handler=je,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=fn.DATA,this.returnState=fn.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new ht(je),this.currentLocation=this.getCurrentLocation(-1)}_err(fe){var je,St;(St=(je=this.handler).onParseError)===null||St===void 0||St.call(je,this.preprocessor.getError(fe))}getCurrentLocation(fe){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-fe,startOffset:this.preprocessor.offset-fe,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const fe=this._consume();this._ensureHibernation()||this._callState(fe)}this.inLoop=!1}}pause(){this.paused=!0}resume(fe){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||fe==null||fe())}write(fe,je,St){this.active=!0,this.preprocessor.write(fe,je),this._runParsingLoop(),this.paused||St==null||St()}insertHtmlAtCurrentPos(fe){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(fe),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(fe){this.consumedAfterSnapshot-=fe,this.preprocessor.retreat(fe)}_reconsumeInState(fe,je){this.state=fe,this._callState(je)}_advanceBy(fe){this.consumedAfterSnapshot+=fe;for(let je=0;je<fe;je++)this.preprocessor.advance()}_consumeSequenceIfMatch(fe,je){return this.preprocessor.startsWith(fe,je)?(this._advanceBy(fe.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:tn.START_TAG,tagName:"",tagID:Xe.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:tn.END_TAG,tagName:"",tagID:Xe.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(fe){this.currentToken={type:tn.COMMENT,data:"",location:this.getCurrentLocation(fe)}}_createDoctypeToken(fe){this.currentToken={type:tn.DOCTYPE,name:fe,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(fe,je){this.currentCharacterToken={type:fe,chars:je,location:this.currentLocation}}_createAttr(fe){this.currentAttr={name:fe,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var fe,je;const St=this.currentToken;if(an(St,this.currentAttr.name)===null){if(St.attrs.push(this.currentAttr),St.location&&this.currentLocation){const Yt=(fe=(je=St.location).attrs)!==null&&fe!==void 0?fe:je.attrs=Object.create(null);Yt[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Ft.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(fe){this._emitCurrentCharacterToken(fe.location),this.currentToken=null,fe.location&&(fe.location.endLine=this.preprocessor.line,fe.location.endCol=this.preprocessor.col+1,fe.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const fe=this.currentToken;this.prepareToken(fe),fe.tagID=Qn(fe.tagName),fe.type===tn.START_TAG?(this.lastStartTagName=fe.tagName,this.handler.onStartTag(fe)):(fe.attrs.length>0&&this._err(Ft.endTagWithAttributes),fe.selfClosing&&this._err(Ft.endTagWithTrailingSolidus),this.handler.onEndTag(fe)),this.preprocessor.dropParsedChunk()}emitCurrentComment(fe){this.prepareToken(fe),this.handler.onComment(fe),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(fe){this.prepareToken(fe),this.handler.onDoctype(fe),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(fe){if(this.currentCharacterToken){switch(fe&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=fe.startLine,this.currentCharacterToken.location.endCol=fe.startCol,this.currentCharacterToken.location.endOffset=fe.startOffset),this.currentCharacterToken.type){case tn.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case tn.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case tn.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const fe=this.getCurrentLocation(0);fe&&(fe.endLine=fe.startLine,fe.endCol=fe.startCol,fe.endOffset=fe.startOffset),this._emitCurrentCharacterToken(fe),this.handler.onEof({type:tn.EOF,location:fe}),this.active=!1}_appendCharToCurrentCharacterToken(fe,je){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==fe)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=je;return}this._createCharacterToken(fe,je)}_emitCodePoint(fe){const je=Or(fe)?tn.WHITESPACE_CHARACTER:fe===Ie.NULL?tn.NULL_CHARACTER:tn.CHARACTER;this._appendCharToCurrentCharacterToken(je,String.fromCodePoint(fe))}_emitChars(fe){this._appendCharToCurrentCharacterToken(tn.CHARACTER,fe)}_matchNamedCharacterReference(fe){let je=null,St=0,Yt=!1;for(let mn=0,wn=ct[0];mn>=0&&(mn=Rn(ct,wn,mn+1,fe),!(mn<0));fe=this._consume()){St+=1,wn=ct[mn];const On=wn&Kn.VALUE_LENGTH;if(On){const Tn=(On>>14)-1;if(fe!==Ie.SEMICOLON&&this._isCharacterReferenceInAttribute()&&jr(this.preprocessor.peek(1))?(je=[Ie.AMPERSAND],mn+=Tn):(je=Tn===0?[ct[mn]&~Kn.VALUE_LENGTH]:Tn===1?[ct[++mn]]:[ct[++mn],ct[++mn]],St=0,Yt=fe!==Ie.SEMICOLON),Tn===0){this._consume();break}}}return this._unconsume(St),Yt&&!this.preprocessor.endOfChunkHit&&this._err(Ft.missingSemicolonAfterCharacterReference),this._unconsume(1),je}_isCharacterReferenceInAttribute(){return this.returnState===fn.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===fn.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===fn.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(fe){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(fe):this._emitCodePoint(fe)}_callState(fe){switch(this.state){case fn.DATA:{this._stateData(fe);break}case fn.RCDATA:{this._stateRcdata(fe);break}case fn.RAWTEXT:{this._stateRawtext(fe);break}case fn.SCRIPT_DATA:{this._stateScriptData(fe);break}case fn.PLAINTEXT:{this._statePlaintext(fe);break}case fn.TAG_OPEN:{this._stateTagOpen(fe);break}case fn.END_TAG_OPEN:{this._stateEndTagOpen(fe);break}case fn.TAG_NAME:{this._stateTagName(fe);break}case fn.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(fe);break}case fn.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(fe);break}case fn.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(fe);break}case fn.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(fe);break}case fn.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(fe);break}case fn.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(fe);break}case fn.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(fe);break}case fn.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(fe);break}case fn.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(fe);break}case fn.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(fe);break}case fn.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(fe);break}case fn.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(fe);break}case fn.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(fe);break}case fn.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(fe);break}case fn.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(fe);break}case fn.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(fe);break}case fn.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(fe);break}case fn.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(fe);break}case fn.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(fe);break}case fn.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(fe);break}case fn.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(fe);break}case fn.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(fe);break}case fn.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(fe);break}case fn.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(fe);break}case fn.ATTRIBUTE_NAME:{this._stateAttributeName(fe);break}case fn.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(fe);break}case fn.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(fe);break}case fn.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(fe);break}case fn.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(fe);break}case fn.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(fe);break}case fn.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(fe);break}case fn.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(fe);break}case fn.BOGUS_COMMENT:{this._stateBogusComment(fe);break}case fn.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(fe);break}case fn.COMMENT_START:{this._stateCommentStart(fe);break}case fn.COMMENT_START_DASH:{this._stateCommentStartDash(fe);break}case fn.COMMENT:{this._stateComment(fe);break}case fn.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(fe);break}case fn.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(fe);break}case fn.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(fe);break}case fn.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(fe);break}case fn.COMMENT_END_DASH:{this._stateCommentEndDash(fe);break}case fn.COMMENT_END:{this._stateCommentEnd(fe);break}case fn.COMMENT_END_BANG:{this._stateCommentEndBang(fe);break}case fn.DOCTYPE:{this._stateDoctype(fe);break}case fn.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(fe);break}case fn.DOCTYPE_NAME:{this._stateDoctypeName(fe);break}case fn.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(fe);break}case fn.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(fe);break}case fn.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(fe);break}case fn.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(fe);break}case fn.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(fe);break}case fn.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(fe);break}case fn.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(fe);break}case fn.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(fe);break}case fn.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(fe);break}case fn.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(fe);break}case fn.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(fe);break}case fn.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(fe);break}case fn.BOGUS_DOCTYPE:{this._stateBogusDoctype(fe);break}case fn.CDATA_SECTION:{this._stateCdataSection(fe);break}case fn.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(fe);break}case fn.CDATA_SECTION_END:{this._stateCdataSectionEnd(fe);break}case fn.CHARACTER_REFERENCE:{this._stateCharacterReference(fe);break}case fn.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(fe);break}case fn.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(fe);break}case fn.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(fe);break}case fn.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(fe);break}case fn.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(fe);break}case fn.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(fe);break}case fn.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(fe);break}default:throw new Error("Unknown state")}}_stateData(fe){switch(fe){case Ie.LESS_THAN_SIGN:{this.state=fn.TAG_OPEN;break}case Ie.AMPERSAND:{this.returnState=fn.DATA,this.state=fn.CHARACTER_REFERENCE;break}case Ie.NULL:{this._err(Ft.unexpectedNullCharacter),this._emitCodePoint(fe);break}case Ie.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(fe)}}_stateRcdata(fe){switch(fe){case Ie.AMPERSAND:{this.returnState=fn.RCDATA,this.state=fn.CHARACTER_REFERENCE;break}case Ie.LESS_THAN_SIGN:{this.state=fn.RCDATA_LESS_THAN_SIGN;break}case Ie.NULL:{this._err(Ft.unexpectedNullCharacter),this._emitChars(pt);break}case Ie.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(fe)}}_stateRawtext(fe){switch(fe){case Ie.LESS_THAN_SIGN:{this.state=fn.RAWTEXT_LESS_THAN_SIGN;break}case Ie.NULL:{this._err(Ft.unexpectedNullCharacter),this._emitChars(pt);break}case Ie.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(fe)}}_stateScriptData(fe){switch(fe){case Ie.LESS_THAN_SIGN:{this.state=fn.SCRIPT_DATA_LESS_THAN_SIGN;break}case Ie.NULL:{this._err(Ft.unexpectedNullCharacter),this._emitChars(pt);break}case Ie.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(fe)}}_statePlaintext(fe){switch(fe){case Ie.NULL:{this._err(Ft.unexpectedNullCharacter),this._emitChars(pt);break}case Ie.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(fe)}}_stateTagOpen(fe){if(Ni(fe))this._createStartTagToken(),this.state=fn.TAG_NAME,this._stateTagName(fe);else switch(fe){case Ie.EXCLAMATION_MARK:{this.state=fn.MARKUP_DECLARATION_OPEN;break}case Ie.SOLIDUS:{this.state=fn.END_TAG_OPEN;break}case Ie.QUESTION_MARK:{this._err(Ft.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=fn.BOGUS_COMMENT,this._stateBogusComment(fe);break}case Ie.EOF:{this._err(Ft.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Ft.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=fn.DATA,this._stateData(fe)}}_stateEndTagOpen(fe){if(Ni(fe))this._createEndTagToken(),this.state=fn.TAG_NAME,this._stateTagName(fe);else switch(fe){case Ie.GREATER_THAN_SIGN:{this._err(Ft.missingEndTagName),this.state=fn.DATA;break}case Ie.EOF:{this._err(Ft.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Ft.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=fn.BOGUS_COMMENT,this._stateBogusComment(fe)}}_stateTagName(fe){const je=this.currentToken;switch(fe){case Ie.SPACE:case Ie.LINE_FEED:case Ie.TABULATION:case Ie.FORM_FEED:{this.state=fn.BEFORE_ATTRIBUTE_NAME;break}case Ie.SOLIDUS:{this.state=fn.SELF_CLOSING_START_TAG;break}case Ie.GREATER_THAN_SIGN:{this.state=fn.DATA,this.emitCurrentTagToken();break}case Ie.NULL:{this._err(Ft.unexpectedNullCharacter),je.tagName+=pt;break}case Ie.EOF:{this._err(Ft.eofInTag),this._emitEOFToken();break}default:je.tagName+=String.fromCodePoint(ui(fe)?hr(fe):fe)}}_stateRcdataLessThanSign(fe){fe===Ie.SOLIDUS?this.state=fn.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=fn.RCDATA,this._stateRcdata(fe))}_stateRcdataEndTagOpen(fe){Ni(fe)?(this.state=fn.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(fe)):(this._emitChars("</"),this.state=fn.RCDATA,this._stateRcdata(fe))}handleSpecialEndTag(fe){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const je=this.currentToken;switch(je.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case Ie.SPACE:case Ie.LINE_FEED:case Ie.TABULATION:case Ie.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=fn.BEFORE_ATTRIBUTE_NAME,!1;case Ie.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=fn.SELF_CLOSING_START_TAG,!1;case Ie.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=fn.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(fe){this.handleSpecialEndTag(fe)&&(this._emitChars("</"),this.state=fn.RCDATA,this._stateRcdata(fe))}_stateRawtextLessThanSign(fe){fe===Ie.SOLIDUS?this.state=fn.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=fn.RAWTEXT,this._stateRawtext(fe))}_stateRawtextEndTagOpen(fe){Ni(fe)?(this.state=fn.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(fe)):(this._emitChars("</"),this.state=fn.RAWTEXT,this._stateRawtext(fe))}_stateRawtextEndTagName(fe){this.handleSpecialEndTag(fe)&&(this._emitChars("</"),this.state=fn.RAWTEXT,this._stateRawtext(fe))}_stateScriptDataLessThanSign(fe){switch(fe){case Ie.SOLIDUS:{this.state=fn.SCRIPT_DATA_END_TAG_OPEN;break}case Ie.EXCLAMATION_MARK:{this.state=fn.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=fn.SCRIPT_DATA,this._stateScriptData(fe)}}_stateScriptDataEndTagOpen(fe){Ni(fe)?(this.state=fn.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(fe)):(this._emitChars("</"),this.state=fn.SCRIPT_DATA,this._stateScriptData(fe))}_stateScriptDataEndTagName(fe){this.handleSpecialEndTag(fe)&&(this._emitChars("</"),this.state=fn.SCRIPT_DATA,this._stateScriptData(fe))}_stateScriptDataEscapeStart(fe){fe===Ie.HYPHEN_MINUS?(this.state=fn.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=fn.SCRIPT_DATA,this._stateScriptData(fe))}_stateScriptDataEscapeStartDash(fe){fe===Ie.HYPHEN_MINUS?(this.state=fn.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=fn.SCRIPT_DATA,this._stateScriptData(fe))}_stateScriptDataEscaped(fe){switch(fe){case Ie.HYPHEN_MINUS:{this.state=fn.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case Ie.LESS_THAN_SIGN:{this.state=fn.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case Ie.NULL:{this._err(Ft.unexpectedNullCharacter),this._emitChars(pt);break}case Ie.EOF:{this._err(Ft.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(fe)}}_stateScriptDataEscapedDash(fe){switch(fe){case Ie.HYPHEN_MINUS:{this.state=fn.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case Ie.LESS_THAN_SIGN:{this.state=fn.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case Ie.NULL:{this._err(Ft.unexpectedNullCharacter),this.state=fn.SCRIPT_DATA_ESCAPED,this._emitChars(pt);break}case Ie.EOF:{this._err(Ft.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=fn.SCRIPT_DATA_ESCAPED,this._emitCodePoint(fe)}}_stateScriptDataEscapedDashDash(fe){switch(fe){case Ie.HYPHEN_MINUS:{this._emitChars("-");break}case Ie.LESS_THAN_SIGN:{this.state=fn.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case Ie.GREATER_THAN_SIGN:{this.state=fn.SCRIPT_DATA,this._emitChars(">");break}case Ie.NULL:{this._err(Ft.unexpectedNullCharacter),this.state=fn.SCRIPT_DATA_ESCAPED,this._emitChars(pt);break}case Ie.EOF:{this._err(Ft.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=fn.SCRIPT_DATA_ESCAPED,this._emitCodePoint(fe)}}_stateScriptDataEscapedLessThanSign(fe){fe===Ie.SOLIDUS?this.state=fn.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Ni(fe)?(this._emitChars("<"),this.state=fn.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(fe)):(this._emitChars("<"),this.state=fn.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(fe))}_stateScriptDataEscapedEndTagOpen(fe){Ni(fe)?(this.state=fn.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(fe)):(this._emitChars("</"),this.state=fn.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(fe))}_stateScriptDataEscapedEndTagName(fe){this.handleSpecialEndTag(fe)&&(this._emitChars("</"),this.state=fn.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(fe))}_stateScriptDataDoubleEscapeStart(fe){if(this.preprocessor.startsWith(on.SCRIPT,!1)&&si(this.preprocessor.peek(on.SCRIPT.length))){this._emitCodePoint(fe);for(let je=0;je<on.SCRIPT.length;je++)this._emitCodePoint(this._consume());this.state=fn.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=fn.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(fe))}_stateScriptDataDoubleEscaped(fe){switch(fe){case Ie.HYPHEN_MINUS:{this.state=fn.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case Ie.LESS_THAN_SIGN:{this.state=fn.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case Ie.NULL:{this._err(Ft.unexpectedNullCharacter),this._emitChars(pt);break}case Ie.EOF:{this._err(Ft.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(fe)}}_stateScriptDataDoubleEscapedDash(fe){switch(fe){case Ie.HYPHEN_MINUS:{this.state=fn.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case Ie.LESS_THAN_SIGN:{this.state=fn.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case Ie.NULL:{this._err(Ft.unexpectedNullCharacter),this.state=fn.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(pt);break}case Ie.EOF:{this._err(Ft.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=fn.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(fe)}}_stateScriptDataDoubleEscapedDashDash(fe){switch(fe){case Ie.HYPHEN_MINUS:{this._emitChars("-");break}case Ie.LESS_THAN_SIGN:{this.state=fn.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case Ie.GREATER_THAN_SIGN:{this.state=fn.SCRIPT_DATA,this._emitChars(">");break}case Ie.NULL:{this._err(Ft.unexpectedNullCharacter),this.state=fn.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(pt);break}case Ie.EOF:{this._err(Ft.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=fn.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(fe)}}_stateScriptDataDoubleEscapedLessThanSign(fe){fe===Ie.SOLIDUS?(this.state=fn.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=fn.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(fe))}_stateScriptDataDoubleEscapeEnd(fe){if(this.preprocessor.startsWith(on.SCRIPT,!1)&&si(this.preprocessor.peek(on.SCRIPT.length))){this._emitCodePoint(fe);for(let je=0;je<on.SCRIPT.length;je++)this._emitCodePoint(this._consume());this.state=fn.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=fn.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(fe))}_stateBeforeAttributeName(fe){switch(fe){case Ie.SPACE:case Ie.LINE_FEED:case Ie.TABULATION:case Ie.FORM_FEED:break;case Ie.SOLIDUS:case Ie.GREATER_THAN_SIGN:case Ie.EOF:{this.state=fn.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(fe);break}case Ie.EQUALS_SIGN:{this._err(Ft.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=fn.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=fn.ATTRIBUTE_NAME,this._stateAttributeName(fe)}}_stateAttributeName(fe){switch(fe){case Ie.SPACE:case Ie.LINE_FEED:case Ie.TABULATION:case Ie.FORM_FEED:case Ie.SOLIDUS:case Ie.GREATER_THAN_SIGN:case Ie.EOF:{this._leaveAttrName(),this.state=fn.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(fe);break}case Ie.EQUALS_SIGN:{this._leaveAttrName(),this.state=fn.BEFORE_ATTRIBUTE_VALUE;break}case Ie.QUOTATION_MARK:case Ie.APOSTROPHE:case Ie.LESS_THAN_SIGN:{this._err(Ft.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(fe);break}case Ie.NULL:{this._err(Ft.unexpectedNullCharacter),this.currentAttr.name+=pt;break}default:this.currentAttr.name+=String.fromCodePoint(ui(fe)?hr(fe):fe)}}_stateAfterAttributeName(fe){switch(fe){case Ie.SPACE:case Ie.LINE_FEED:case Ie.TABULATION:case Ie.FORM_FEED:break;case Ie.SOLIDUS:{this.state=fn.SELF_CLOSING_START_TAG;break}case Ie.EQUALS_SIGN:{this.state=fn.BEFORE_ATTRIBUTE_VALUE;break}case Ie.GREATER_THAN_SIGN:{this.state=fn.DATA,this.emitCurrentTagToken();break}case Ie.EOF:{this._err(Ft.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=fn.ATTRIBUTE_NAME,this._stateAttributeName(fe)}}_stateBeforeAttributeValue(fe){switch(fe){case Ie.SPACE:case Ie.LINE_FEED:case Ie.TABULATION:case Ie.FORM_FEED:break;case Ie.QUOTATION_MARK:{this.state=fn.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case Ie.APOSTROPHE:{this.state=fn.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case Ie.GREATER_THAN_SIGN:{this._err(Ft.missingAttributeValue),this.state=fn.DATA,this.emitCurrentTagToken();break}default:this.state=fn.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(fe)}}_stateAttributeValueDoubleQuoted(fe){switch(fe){case Ie.QUOTATION_MARK:{this.state=fn.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case Ie.AMPERSAND:{this.returnState=fn.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=fn.CHARACTER_REFERENCE;break}case Ie.NULL:{this._err(Ft.unexpectedNullCharacter),this.currentAttr.value+=pt;break}case Ie.EOF:{this._err(Ft.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(fe)}}_stateAttributeValueSingleQuoted(fe){switch(fe){case Ie.APOSTROPHE:{this.state=fn.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case Ie.AMPERSAND:{this.returnState=fn.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=fn.CHARACTER_REFERENCE;break}case Ie.NULL:{this._err(Ft.unexpectedNullCharacter),this.currentAttr.value+=pt;break}case Ie.EOF:{this._err(Ft.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(fe)}}_stateAttributeValueUnquoted(fe){switch(fe){case Ie.SPACE:case Ie.LINE_FEED:case Ie.TABULATION:case Ie.FORM_FEED:{this._leaveAttrValue(),this.state=fn.BEFORE_ATTRIBUTE_NAME;break}case Ie.AMPERSAND:{this.returnState=fn.ATTRIBUTE_VALUE_UNQUOTED,this.state=fn.CHARACTER_REFERENCE;break}case Ie.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=fn.DATA,this.emitCurrentTagToken();break}case Ie.NULL:{this._err(Ft.unexpectedNullCharacter),this.currentAttr.value+=pt;break}case Ie.QUOTATION_MARK:case Ie.APOSTROPHE:case Ie.LESS_THAN_SIGN:case Ie.EQUALS_SIGN:case Ie.GRAVE_ACCENT:{this._err(Ft.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(fe);break}case Ie.EOF:{this._err(Ft.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(fe)}}_stateAfterAttributeValueQuoted(fe){switch(fe){case Ie.SPACE:case Ie.LINE_FEED:case Ie.TABULATION:case Ie.FORM_FEED:{this._leaveAttrValue(),this.state=fn.BEFORE_ATTRIBUTE_NAME;break}case Ie.SOLIDUS:{this._leaveAttrValue(),this.state=fn.SELF_CLOSING_START_TAG;break}case Ie.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=fn.DATA,this.emitCurrentTagToken();break}case Ie.EOF:{this._err(Ft.eofInTag),this._emitEOFToken();break}default:this._err(Ft.missingWhitespaceBetweenAttributes),this.state=fn.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(fe)}}_stateSelfClosingStartTag(fe){switch(fe){case Ie.GREATER_THAN_SIGN:{const je=this.currentToken;je.selfClosing=!0,this.state=fn.DATA,this.emitCurrentTagToken();break}case Ie.EOF:{this._err(Ft.eofInTag),this._emitEOFToken();break}default:this._err(Ft.unexpectedSolidusInTag),this.state=fn.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(fe)}}_stateBogusComment(fe){const je=this.currentToken;switch(fe){case Ie.GREATER_THAN_SIGN:{this.state=fn.DATA,this.emitCurrentComment(je);break}case Ie.EOF:{this.emitCurrentComment(je),this._emitEOFToken();break}case Ie.NULL:{this._err(Ft.unexpectedNullCharacter),je.data+=pt;break}default:je.data+=String.fromCodePoint(fe)}}_stateMarkupDeclarationOpen(fe){this._consumeSequenceIfMatch(on.DASH_DASH,!0)?(this._createCommentToken(on.DASH_DASH.length+1),this.state=fn.COMMENT_START):this._consumeSequenceIfMatch(on.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(on.DOCTYPE.length+1),this.state=fn.DOCTYPE):this._consumeSequenceIfMatch(on.CDATA_START,!0)?this.inForeignNode?this.state=fn.CDATA_SECTION:(this._err(Ft.cdataInHtmlContent),this._createCommentToken(on.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=fn.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Ft.incorrectlyOpenedComment),this._createCommentToken(2),this.state=fn.BOGUS_COMMENT,this._stateBogusComment(fe))}_stateCommentStart(fe){switch(fe){case Ie.HYPHEN_MINUS:{this.state=fn.COMMENT_START_DASH;break}case Ie.GREATER_THAN_SIGN:{this._err(Ft.abruptClosingOfEmptyComment),this.state=fn.DATA;const je=this.currentToken;this.emitCurrentComment(je);break}default:this.state=fn.COMMENT,this._stateComment(fe)}}_stateCommentStartDash(fe){const je=this.currentToken;switch(fe){case Ie.HYPHEN_MINUS:{this.state=fn.COMMENT_END;break}case Ie.GREATER_THAN_SIGN:{this._err(Ft.abruptClosingOfEmptyComment),this.state=fn.DATA,this.emitCurrentComment(je);break}case Ie.EOF:{this._err(Ft.eofInComment),this.emitCurrentComment(je),this._emitEOFToken();break}default:je.data+="-",this.state=fn.COMMENT,this._stateComment(fe)}}_stateComment(fe){const je=this.currentToken;switch(fe){case Ie.HYPHEN_MINUS:{this.state=fn.COMMENT_END_DASH;break}case Ie.LESS_THAN_SIGN:{je.data+="<",this.state=fn.COMMENT_LESS_THAN_SIGN;break}case Ie.NULL:{this._err(Ft.unexpectedNullCharacter),je.data+=pt;break}case Ie.EOF:{this._err(Ft.eofInComment),this.emitCurrentComment(je),this._emitEOFToken();break}default:je.data+=String.fromCodePoint(fe)}}_stateCommentLessThanSign(fe){const je=this.currentToken;switch(fe){case Ie.EXCLAMATION_MARK:{je.data+="!",this.state=fn.COMMENT_LESS_THAN_SIGN_BANG;break}case Ie.LESS_THAN_SIGN:{je.data+="<";break}default:this.state=fn.COMMENT,this._stateComment(fe)}}_stateCommentLessThanSignBang(fe){fe===Ie.HYPHEN_MINUS?this.state=fn.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=fn.COMMENT,this._stateComment(fe))}_stateCommentLessThanSignBangDash(fe){fe===Ie.HYPHEN_MINUS?this.state=fn.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=fn.COMMENT_END_DASH,this._stateCommentEndDash(fe))}_stateCommentLessThanSignBangDashDash(fe){fe!==Ie.GREATER_THAN_SIGN&&fe!==Ie.EOF&&this._err(Ft.nestedComment),this.state=fn.COMMENT_END,this._stateCommentEnd(fe)}_stateCommentEndDash(fe){const je=this.currentToken;switch(fe){case Ie.HYPHEN_MINUS:{this.state=fn.COMMENT_END;break}case Ie.EOF:{this._err(Ft.eofInComment),this.emitCurrentComment(je),this._emitEOFToken();break}default:je.data+="-",this.state=fn.COMMENT,this._stateComment(fe)}}_stateCommentEnd(fe){const je=this.currentToken;switch(fe){case Ie.GREATER_THAN_SIGN:{this.state=fn.DATA,this.emitCurrentComment(je);break}case Ie.EXCLAMATION_MARK:{this.state=fn.COMMENT_END_BANG;break}case Ie.HYPHEN_MINUS:{je.data+="-";break}case Ie.EOF:{this._err(Ft.eofInComment),this.emitCurrentComment(je),this._emitEOFToken();break}default:je.data+="--",this.state=fn.COMMENT,this._stateComment(fe)}}_stateCommentEndBang(fe){const je=this.currentToken;switch(fe){case Ie.HYPHEN_MINUS:{je.data+="--!",this.state=fn.COMMENT_END_DASH;break}case Ie.GREATER_THAN_SIGN:{this._err(Ft.incorrectlyClosedComment),this.state=fn.DATA,this.emitCurrentComment(je);break}case Ie.EOF:{this._err(Ft.eofInComment),this.emitCurrentComment(je),this._emitEOFToken();break}default:je.data+="--!",this.state=fn.COMMENT,this._stateComment(fe)}}_stateDoctype(fe){switch(fe){case Ie.SPACE:case Ie.LINE_FEED:case Ie.TABULATION:case Ie.FORM_FEED:{this.state=fn.BEFORE_DOCTYPE_NAME;break}case Ie.GREATER_THAN_SIGN:{this.state=fn.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(fe);break}case Ie.EOF:{this._err(Ft.eofInDoctype),this._createDoctypeToken(null);const je=this.currentToken;je.forceQuirks=!0,this.emitCurrentDoctype(je),this._emitEOFToken();break}default:this._err(Ft.missingWhitespaceBeforeDoctypeName),this.state=fn.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(fe)}}_stateBeforeDoctypeName(fe){if(ui(fe))this._createDoctypeToken(String.fromCharCode(hr(fe))),this.state=fn.DOCTYPE_NAME;else switch(fe){case Ie.SPACE:case Ie.LINE_FEED:case Ie.TABULATION:case Ie.FORM_FEED:break;case Ie.NULL:{this._err(Ft.unexpectedNullCharacter),this._createDoctypeToken(pt),this.state=fn.DOCTYPE_NAME;break}case Ie.GREATER_THAN_SIGN:{this._err(Ft.missingDoctypeName),this._createDoctypeToken(null);const je=this.currentToken;je.forceQuirks=!0,this.emitCurrentDoctype(je),this.state=fn.DATA;break}case Ie.EOF:{this._err(Ft.eofInDoctype),this._createDoctypeToken(null);const je=this.currentToken;je.forceQuirks=!0,this.emitCurrentDoctype(je),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(fe)),this.state=fn.DOCTYPE_NAME}}_stateDoctypeName(fe){const je=this.currentToken;switch(fe){case Ie.SPACE:case Ie.LINE_FEED:case Ie.TABULATION:case Ie.FORM_FEED:{this.state=fn.AFTER_DOCTYPE_NAME;break}case Ie.GREATER_THAN_SIGN:{this.state=fn.DATA,this.emitCurrentDoctype(je);break}case Ie.NULL:{this._err(Ft.unexpectedNullCharacter),je.name+=pt;break}case Ie.EOF:{this._err(Ft.eofInDoctype),je.forceQuirks=!0,this.emitCurrentDoctype(je),this._emitEOFToken();break}default:je.name+=String.fromCodePoint(ui(fe)?hr(fe):fe)}}_stateAfterDoctypeName(fe){const je=this.currentToken;switch(fe){case Ie.SPACE:case Ie.LINE_FEED:case Ie.TABULATION:case Ie.FORM_FEED:break;case Ie.GREATER_THAN_SIGN:{this.state=fn.DATA,this.emitCurrentDoctype(je);break}case Ie.EOF:{this._err(Ft.eofInDoctype),je.forceQuirks=!0,this.emitCurrentDoctype(je),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(on.PUBLIC,!1)?this.state=fn.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(on.SYSTEM,!1)?this.state=fn.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Ft.invalidCharacterSequenceAfterDoctypeName),je.forceQuirks=!0,this.state=fn.BOGUS_DOCTYPE,this._stateBogusDoctype(fe))}}_stateAfterDoctypePublicKeyword(fe){const je=this.currentToken;switch(fe){case Ie.SPACE:case Ie.LINE_FEED:case Ie.TABULATION:case Ie.FORM_FEED:{this.state=fn.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case Ie.QUOTATION_MARK:{this._err(Ft.missingWhitespaceAfterDoctypePublicKeyword),je.publicId="",this.state=fn.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case Ie.APOSTROPHE:{this._err(Ft.missingWhitespaceAfterDoctypePublicKeyword),je.publicId="",this.state=fn.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case Ie.GREATER_THAN_SIGN:{this._err(Ft.missingDoctypePublicIdentifier),je.forceQuirks=!0,this.state=fn.DATA,this.emitCurrentDoctype(je);break}case Ie.EOF:{this._err(Ft.eofInDoctype),je.forceQuirks=!0,this.emitCurrentDoctype(je),this._emitEOFToken();break}default:this._err(Ft.missingQuoteBeforeDoctypePublicIdentifier),je.forceQuirks=!0,this.state=fn.BOGUS_DOCTYPE,this._stateBogusDoctype(fe)}}_stateBeforeDoctypePublicIdentifier(fe){const je=this.currentToken;switch(fe){case Ie.SPACE:case Ie.LINE_FEED:case Ie.TABULATION:case Ie.FORM_FEED:break;case Ie.QUOTATION_MARK:{je.publicId="",this.state=fn.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case Ie.APOSTROPHE:{je.publicId="",this.state=fn.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case Ie.GREATER_THAN_SIGN:{this._err(Ft.missingDoctypePublicIdentifier),je.forceQuirks=!0,this.state=fn.DATA,this.emitCurrentDoctype(je);break}case Ie.EOF:{this._err(Ft.eofInDoctype),je.forceQuirks=!0,this.emitCurrentDoctype(je),this._emitEOFToken();break}default:this._err(Ft.missingQuoteBeforeDoctypePublicIdentifier),je.forceQuirks=!0,this.state=fn.BOGUS_DOCTYPE,this._stateBogusDoctype(fe)}}_stateDoctypePublicIdentifierDoubleQuoted(fe){const je=this.currentToken;switch(fe){case Ie.QUOTATION_MARK:{this.state=fn.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case Ie.NULL:{this._err(Ft.unexpectedNullCharacter),je.publicId+=pt;break}case Ie.GREATER_THAN_SIGN:{this._err(Ft.abruptDoctypePublicIdentifier),je.forceQuirks=!0,this.emitCurrentDoctype(je),this.state=fn.DATA;break}case Ie.EOF:{this._err(Ft.eofInDoctype),je.forceQuirks=!0,this.emitCurrentDoctype(je),this._emitEOFToken();break}default:je.publicId+=String.fromCodePoint(fe)}}_stateDoctypePublicIdentifierSingleQuoted(fe){const je=this.currentToken;switch(fe){case Ie.APOSTROPHE:{this.state=fn.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case Ie.NULL:{this._err(Ft.unexpectedNullCharacter),je.publicId+=pt;break}case Ie.GREATER_THAN_SIGN:{this._err(Ft.abruptDoctypePublicIdentifier),je.forceQuirks=!0,this.emitCurrentDoctype(je),this.state=fn.DATA;break}case Ie.EOF:{this._err(Ft.eofInDoctype),je.forceQuirks=!0,this.emitCurrentDoctype(je),this._emitEOFToken();break}default:je.publicId+=String.fromCodePoint(fe)}}_stateAfterDoctypePublicIdentifier(fe){const je=this.currentToken;switch(fe){case Ie.SPACE:case Ie.LINE_FEED:case Ie.TABULATION:case Ie.FORM_FEED:{this.state=fn.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case Ie.GREATER_THAN_SIGN:{this.state=fn.DATA,this.emitCurrentDoctype(je);break}case Ie.QUOTATION_MARK:{this._err(Ft.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),je.systemId="",this.state=fn.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Ie.APOSTROPHE:{this._err(Ft.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),je.systemId="",this.state=fn.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Ie.EOF:{this._err(Ft.eofInDoctype),je.forceQuirks=!0,this.emitCurrentDoctype(je),this._emitEOFToken();break}default:this._err(Ft.missingQuoteBeforeDoctypeSystemIdentifier),je.forceQuirks=!0,this.state=fn.BOGUS_DOCTYPE,this._stateBogusDoctype(fe)}}_stateBetweenDoctypePublicAndSystemIdentifiers(fe){const je=this.currentToken;switch(fe){case Ie.SPACE:case Ie.LINE_FEED:case Ie.TABULATION:case Ie.FORM_FEED:break;case Ie.GREATER_THAN_SIGN:{this.emitCurrentDoctype(je),this.state=fn.DATA;break}case Ie.QUOTATION_MARK:{je.systemId="",this.state=fn.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Ie.APOSTROPHE:{je.systemId="",this.state=fn.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Ie.EOF:{this._err(Ft.eofInDoctype),je.forceQuirks=!0,this.emitCurrentDoctype(je),this._emitEOFToken();break}default:this._err(Ft.missingQuoteBeforeDoctypeSystemIdentifier),je.forceQuirks=!0,this.state=fn.BOGUS_DOCTYPE,this._stateBogusDoctype(fe)}}_stateAfterDoctypeSystemKeyword(fe){const je=this.currentToken;switch(fe){case Ie.SPACE:case Ie.LINE_FEED:case Ie.TABULATION:case Ie.FORM_FEED:{this.state=fn.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case Ie.QUOTATION_MARK:{this._err(Ft.missingWhitespaceAfterDoctypeSystemKeyword),je.systemId="",this.state=fn.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Ie.APOSTROPHE:{this._err(Ft.missingWhitespaceAfterDoctypeSystemKeyword),je.systemId="",this.state=fn.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Ie.GREATER_THAN_SIGN:{this._err(Ft.missingDoctypeSystemIdentifier),je.forceQuirks=!0,this.state=fn.DATA,this.emitCurrentDoctype(je);break}case Ie.EOF:{this._err(Ft.eofInDoctype),je.forceQuirks=!0,this.emitCurrentDoctype(je),this._emitEOFToken();break}default:this._err(Ft.missingQuoteBeforeDoctypeSystemIdentifier),je.forceQuirks=!0,this.state=fn.BOGUS_DOCTYPE,this._stateBogusDoctype(fe)}}_stateBeforeDoctypeSystemIdentifier(fe){const je=this.currentToken;switch(fe){case Ie.SPACE:case Ie.LINE_FEED:case Ie.TABULATION:case Ie.FORM_FEED:break;case Ie.QUOTATION_MARK:{je.systemId="",this.state=fn.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Ie.APOSTROPHE:{je.systemId="",this.state=fn.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Ie.GREATER_THAN_SIGN:{this._err(Ft.missingDoctypeSystemIdentifier),je.forceQuirks=!0,this.state=fn.DATA,this.emitCurrentDoctype(je);break}case Ie.EOF:{this._err(Ft.eofInDoctype),je.forceQuirks=!0,this.emitCurrentDoctype(je),this._emitEOFToken();break}default:this._err(Ft.missingQuoteBeforeDoctypeSystemIdentifier),je.forceQuirks=!0,this.state=fn.BOGUS_DOCTYPE,this._stateBogusDoctype(fe)}}_stateDoctypeSystemIdentifierDoubleQuoted(fe){const je=this.currentToken;switch(fe){case Ie.QUOTATION_MARK:{this.state=fn.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case Ie.NULL:{this._err(Ft.unexpectedNullCharacter),je.systemId+=pt;break}case Ie.GREATER_THAN_SIGN:{this._err(Ft.abruptDoctypeSystemIdentifier),je.forceQuirks=!0,this.emitCurrentDoctype(je),this.state=fn.DATA;break}case Ie.EOF:{this._err(Ft.eofInDoctype),je.forceQuirks=!0,this.emitCurrentDoctype(je),this._emitEOFToken();break}default:je.systemId+=String.fromCodePoint(fe)}}_stateDoctypeSystemIdentifierSingleQuoted(fe){const je=this.currentToken;switch(fe){case Ie.APOSTROPHE:{this.state=fn.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case Ie.NULL:{this._err(Ft.unexpectedNullCharacter),je.systemId+=pt;break}case Ie.GREATER_THAN_SIGN:{this._err(Ft.abruptDoctypeSystemIdentifier),je.forceQuirks=!0,this.emitCurrentDoctype(je),this.state=fn.DATA;break}case Ie.EOF:{this._err(Ft.eofInDoctype),je.forceQuirks=!0,this.emitCurrentDoctype(je),this._emitEOFToken();break}default:je.systemId+=String.fromCodePoint(fe)}}_stateAfterDoctypeSystemIdentifier(fe){const je=this.currentToken;switch(fe){case Ie.SPACE:case Ie.LINE_FEED:case Ie.TABULATION:case Ie.FORM_FEED:break;case Ie.GREATER_THAN_SIGN:{this.emitCurrentDoctype(je),this.state=fn.DATA;break}case Ie.EOF:{this._err(Ft.eofInDoctype),je.forceQuirks=!0,this.emitCurrentDoctype(je),this._emitEOFToken();break}default:this._err(Ft.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=fn.BOGUS_DOCTYPE,this._stateBogusDoctype(fe)}}_stateBogusDoctype(fe){const je=this.currentToken;switch(fe){case Ie.GREATER_THAN_SIGN:{this.emitCurrentDoctype(je),this.state=fn.DATA;break}case Ie.NULL:{this._err(Ft.unexpectedNullCharacter);break}case Ie.EOF:{this.emitCurrentDoctype(je),this._emitEOFToken();break}default:}}_stateCdataSection(fe){switch(fe){case Ie.RIGHT_SQUARE_BRACKET:{this.state=fn.CDATA_SECTION_BRACKET;break}case Ie.EOF:{this._err(Ft.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(fe)}}_stateCdataSectionBracket(fe){fe===Ie.RIGHT_SQUARE_BRACKET?this.state=fn.CDATA_SECTION_END:(this._emitChars("]"),this.state=fn.CDATA_SECTION,this._stateCdataSection(fe))}_stateCdataSectionEnd(fe){switch(fe){case Ie.GREATER_THAN_SIGN:{this.state=fn.DATA;break}case Ie.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=fn.CDATA_SECTION,this._stateCdataSection(fe)}}_stateCharacterReference(fe){fe===Ie.NUMBER_SIGN?this.state=fn.NUMERIC_CHARACTER_REFERENCE:ir(fe)?(this.state=fn.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(fe)):(this._flushCodePointConsumedAsCharacterReference(Ie.AMPERSAND),this._reconsumeInState(this.returnState,fe))}_stateNamedCharacterReference(fe){const je=this._matchNamedCharacterReference(fe);if(!this._ensureHibernation())if(je){for(let St=0;St<je.length;St++)this._flushCodePointConsumedAsCharacterReference(je[St]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(Ie.AMPERSAND),this.state=fn.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(fe){ir(fe)?this._flushCodePointConsumedAsCharacterReference(fe):(fe===Ie.SEMICOLON&&this._err(Ft.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,fe))}_stateNumericCharacterReference(fe){this.charRefCode=0,fe===Ie.LATIN_SMALL_X||fe===Ie.LATIN_CAPITAL_X?this.state=fn.HEXADEMICAL_CHARACTER_REFERENCE_START:ao(fe)?(this.state=fn.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(fe)):(this._err(Ft.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(Ie.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(Ie.NUMBER_SIGN),this._reconsumeInState(this.returnState,fe))}_stateHexademicalCharacterReferenceStart(fe){ur(fe)?(this.state=fn.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(fe)):(this._err(Ft.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(Ie.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(Ie.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState)}_stateHexademicalCharacterReference(fe){We(fe)?this.charRefCode=this.charRefCode*16+fe-55:rr(fe)?this.charRefCode=this.charRefCode*16+fe-87:ao(fe)?this.charRefCode=this.charRefCode*16+fe-48:fe===Ie.SEMICOLON?this.state=fn.NUMERIC_CHARACTER_REFERENCE_END:(this._err(Ft.missingSemicolonAfterCharacterReference),this.state=fn.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(fe))}_stateDecimalCharacterReference(fe){ao(fe)?this.charRefCode=this.charRefCode*10+fe-48:fe===Ie.SEMICOLON?this.state=fn.NUMERIC_CHARACTER_REFERENCE_END:(this._err(Ft.missingSemicolonAfterCharacterReference),this.state=fn.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(fe))}_stateNumericCharacterReferenceEnd(fe){if(this.charRefCode===Ie.NULL)this._err(Ft.nullCharacterReference),this.charRefCode=Ie.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(Ft.characterReferenceOutsideUnicodeRange),this.charRefCode=Ie.REPLACEMENT_CHARACTER;else if(Bn(this.charRefCode))this._err(Ft.surrogateCharacterReference),this.charRefCode=Ie.REPLACEMENT_CHARACTER;else if(nr(this.charRefCode))this._err(Ft.noncharacterCharacterReference);else if(_n(this.charRefCode)||this.charRefCode===Ie.CARRIAGE_RETURN){this._err(Ft.controlCharacterReference);const je=Ir.get(this.charRefCode);je!==void 0&&(this.charRefCode=je)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,fe)}}const Vn=new Set([Xe.DD,Xe.DT,Xe.LI,Xe.OPTGROUP,Xe.OPTION,Xe.P,Xe.RB,Xe.RP,Xe.RT,Xe.RTC]),Wn=new Set([...Vn,Xe.CAPTION,Xe.COLGROUP,Xe.TBODY,Xe.TD,Xe.TFOOT,Xe.TH,Xe.THEAD,Xe.TR]),vn=new Map([[Xe.APPLET,An.HTML],[Xe.CAPTION,An.HTML],[Xe.HTML,An.HTML],[Xe.MARQUEE,An.HTML],[Xe.OBJECT,An.HTML],[Xe.TABLE,An.HTML],[Xe.TD,An.HTML],[Xe.TEMPLATE,An.HTML],[Xe.TH,An.HTML],[Xe.ANNOTATION_XML,An.MATHML],[Xe.MI,An.MATHML],[Xe.MN,An.MATHML],[Xe.MO,An.MATHML],[Xe.MS,An.MATHML],[Xe.MTEXT,An.MATHML],[Xe.DESC,An.SVG],[Xe.FOREIGN_OBJECT,An.SVG],[Xe.TITLE,An.SVG]]),tr=[Xe.H1,Xe.H2,Xe.H3,Xe.H4,Xe.H5,Xe.H6],mi=[Xe.TR,Xe.TEMPLATE,Xe.HTML],gi=[Xe.TBODY,Xe.TFOOT,Xe.THEAD,Xe.TEMPLATE,Xe.HTML],ti=[Xe.TABLE,Xe.TEMPLATE,Xe.HTML],Hn=[Xe.TD,Xe.TH];class Cr{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(fe,je,St){this.treeAdapter=je,this.handler=St,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=Xe.UNKNOWN,this.current=fe}_indexOf(fe){return this.items.lastIndexOf(fe,this.stackTop)}_isInTemplate(){return this.currentTagId===Xe.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===An.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(fe,je){this.stackTop++,this.items[this.stackTop]=fe,this.current=fe,this.tagIDs[this.stackTop]=je,this.currentTagId=je,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(fe,je,!0)}pop(){const fe=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(fe,!0)}replace(fe,je){const St=this._indexOf(fe);this.items[St]=je,St===this.stackTop&&(this.current=je)}insertAfter(fe,je,St){const Yt=this._indexOf(fe)+1;this.items.splice(Yt,0,je),this.tagIDs.splice(Yt,0,St),this.stackTop++,Yt===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,Yt===this.stackTop)}popUntilTagNamePopped(fe){let je=this.stackTop+1;do je=this.tagIDs.lastIndexOf(fe,je-1);while(je>0&&this.treeAdapter.getNamespaceURI(this.items[je])!==An.HTML);this.shortenToLength(je<0?0:je)}shortenToLength(fe){for(;this.stackTop>=fe;){const je=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(je,this.stackTop<fe)}}popUntilElementPopped(fe){const je=this._indexOf(fe);this.shortenToLength(je<0?0:je)}popUntilPopped(fe,je){const St=this._indexOfTagNames(fe,je);this.shortenToLength(St<0?0:St)}popUntilNumberedHeaderPopped(){this.popUntilPopped(tr,An.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Hn,An.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(fe,je){for(let St=this.stackTop;St>=0;St--)if(fe.includes(this.tagIDs[St])&&this.treeAdapter.getNamespaceURI(this.items[St])===je)return St;return-1}clearBackTo(fe,je){const St=this._indexOfTagNames(fe,je);this.shortenToLength(St+1)}clearBackToTableContext(){this.clearBackTo(ti,An.HTML)}clearBackToTableBodyContext(){this.clearBackTo(gi,An.HTML)}clearBackToTableRowContext(){this.clearBackTo(mi,An.HTML)}remove(fe){const je=this._indexOf(fe);je>=0&&(je===this.stackTop?this.pop():(this.items.splice(je,1),this.tagIDs.splice(je,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(fe,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===Xe.BODY?this.items[1]:null}contains(fe){return this._indexOf(fe)>-1}getCommonAncestor(fe){const je=this._indexOf(fe)-1;return je>=0?this.items[je]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===Xe.HTML}hasInScope(fe){for(let je=this.stackTop;je>=0;je--){const St=this.tagIDs[je],Yt=this.treeAdapter.getNamespaceURI(this.items[je]);if(St===fe&&Yt===An.HTML)return!0;if(vn.get(St)===Yt)return!1}return!0}hasNumberedHeaderInScope(){for(let fe=this.stackTop;fe>=0;fe--){const je=this.tagIDs[fe],St=this.treeAdapter.getNamespaceURI(this.items[fe]);if(Ki(je)&&St===An.HTML)return!0;if(vn.get(je)===St)return!1}return!0}hasInListItemScope(fe){for(let je=this.stackTop;je>=0;je--){const St=this.tagIDs[je],Yt=this.treeAdapter.getNamespaceURI(this.items[je]);if(St===fe&&Yt===An.HTML)return!0;if((St===Xe.UL||St===Xe.OL)&&Yt===An.HTML||vn.get(St)===Yt)return!1}return!0}hasInButtonScope(fe){for(let je=this.stackTop;je>=0;je--){const St=this.tagIDs[je],Yt=this.treeAdapter.getNamespaceURI(this.items[je]);if(St===fe&&Yt===An.HTML)return!0;if(St===Xe.BUTTON&&Yt===An.HTML||vn.get(St)===Yt)return!1}return!0}hasInTableScope(fe){for(let je=this.stackTop;je>=0;je--){const St=this.tagIDs[je];if(this.treeAdapter.getNamespaceURI(this.items[je])===An.HTML){if(St===fe)return!0;if(St===Xe.TABLE||St===Xe.TEMPLATE||St===Xe.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let fe=this.stackTop;fe>=0;fe--){const je=this.tagIDs[fe];if(this.treeAdapter.getNamespaceURI(this.items[fe])===An.HTML){if(je===Xe.TBODY||je===Xe.THEAD||je===Xe.TFOOT)return!0;if(je===Xe.TABLE||je===Xe.HTML)return!1}}return!0}hasInSelectScope(fe){for(let je=this.stackTop;je>=0;je--){const St=this.tagIDs[je];if(this.treeAdapter.getNamespaceURI(this.items[je])===An.HTML){if(St===fe)return!0;if(St!==Xe.OPTION&&St!==Xe.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Vn.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Wn.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(fe){for(;this.currentTagId!==fe&&Wn.has(this.currentTagId);)this.pop()}}const Ri=3;var _i;(function(se){se[se.Marker=0]="Marker",se[se.Element=1]="Element"})(_i=_i||(_i={}));const Ur={type:_i.Marker};class Pn{constructor(fe){this.treeAdapter=fe,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(fe,je){const St=[],Yt=je.length,mn=this.treeAdapter.getTagName(fe),wn=this.treeAdapter.getNamespaceURI(fe);for(let On=0;On<this.entries.length;On++){const Tn=this.entries[On];if(Tn.type===_i.Marker)break;const{element:br}=Tn;if(this.treeAdapter.getTagName(br)===mn&&this.treeAdapter.getNamespaceURI(br)===wn){const Wr=this.treeAdapter.getAttrList(br);Wr.length===Yt&&St.push({idx:On,attrs:Wr})}}return St}_ensureNoahArkCondition(fe){if(this.entries.length<Ri)return;const je=this.treeAdapter.getAttrList(fe),St=this._getNoahArkConditionCandidates(fe,je);if(St.length<Ri)return;const Yt=new Map(je.map(wn=>[wn.name,wn.value]));let mn=0;for(let wn=0;wn<St.length;wn++){const On=St[wn];On.attrs.every(Tn=>Yt.get(Tn.name)===Tn.value)&&(mn+=1,mn>=Ri&&this.entries.splice(On.idx,1))}}insertMarker(){this.entries.unshift(Ur)}pushElement(fe,je){this._ensureNoahArkCondition(fe),this.entries.unshift({type:_i.Element,element:fe,token:je})}insertElementAfterBookmark(fe,je){const St=this.entries.indexOf(this.bookmark);this.entries.splice(St,0,{type:_i.Element,element:fe,token:je})}removeEntry(fe){const je=this.entries.indexOf(fe);je>=0&&this.entries.splice(je,1)}clearToLastMarker(){const fe=this.entries.indexOf(Ur);fe>=0?this.entries.splice(0,fe+1):this.entries.length=0}getElementEntryInScopeWithTagName(fe){const je=this.entries.find(St=>St.type===_i.Marker||this.treeAdapter.getTagName(St.element)===fe);return je&&je.type===_i.Element?je:null}getElementEntry(fe){return this.entries.find(je=>je.type===_i.Element&&je.element===fe)}}function xi(se){return{nodeName:"#text",value:se,parentNode:null}}const ji={createDocument(){return{nodeName:"#document",mode:ri.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(se,fe,je){return{nodeName:se,tagName:se,attrs:je,namespaceURI:fe,childNodes:[],parentNode:null}},createCommentNode(se){return{nodeName:"#comment",data:se,parentNode:null}},appendChild(se,fe){se.childNodes.push(fe),fe.parentNode=se},insertBefore(se,fe,je){const St=se.childNodes.indexOf(je);se.childNodes.splice(St,0,fe),fe.parentNode=se},setTemplateContent(se,fe){se.content=fe},getTemplateContent(se){return se.content},setDocumentType(se,fe,je,St){const Yt=se.childNodes.find(mn=>mn.nodeName==="#documentType");if(Yt)Yt.name=fe,Yt.publicId=je,Yt.systemId=St;else{const mn={nodeName:"#documentType",name:fe,publicId:je,systemId:St,parentNode:null};ji.appendChild(se,mn)}},setDocumentMode(se,fe){se.mode=fe},getDocumentMode(se){return se.mode},detachNode(se){if(se.parentNode){const fe=se.parentNode.childNodes.indexOf(se);se.parentNode.childNodes.splice(fe,1),se.parentNode=null}},insertText(se,fe){if(se.childNodes.length>0){const je=se.childNodes[se.childNodes.length-1];if(ji.isTextNode(je)){je.value+=fe;return}}ji.appendChild(se,xi(fe))},insertTextBefore(se,fe,je){const St=se.childNodes[se.childNodes.indexOf(je)-1];St&&ji.isTextNode(St)?St.value+=fe:ji.insertBefore(se,xi(fe),je)},adoptAttributes(se,fe){const je=new Set(se.attrs.map(St=>St.name));for(let St=0;St<fe.length;St++)je.has(fe[St].name)||se.attrs.push(fe[St])},getFirstChild(se){return se.childNodes[0]},getChildNodes(se){return se.childNodes},getParentNode(se){return se.parentNode},getAttrList(se){return se.attrs},getTagName(se){return se.tagName},getNamespaceURI(se){return se.namespaceURI},getTextNodeContent(se){return se.value},getCommentNodeContent(se){return se.data},getDocumentTypeNodeName(se){return se.name},getDocumentTypeNodePublicId(se){return se.publicId},getDocumentTypeNodeSystemId(se){return se.systemId},isTextNode(se){return se.nodeName==="#text"},isCommentNode(se){return se.nodeName==="#comment"},isDocumentTypeNode(se){return se.nodeName==="#documentType"},isElementNode(se){return Object.prototype.hasOwnProperty.call(se,"tagName")},setNodeSourceCodeLocation(se,fe){se.sourceCodeLocation=fe},getNodeSourceCodeLocation(se){return se.sourceCodeLocation},updateNodeSourceCodeLocation(se,fe){se.sourceCodeLocation=Uu(Uu({},se.sourceCodeLocation),fe)}},Xo="html",wr="about:legacy-compat",Gi="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Jr=["+//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//"],ls=[...Jr,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Pa=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Oi=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Yi=[...Oi,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function uo(se,fe){return fe.some(je=>se.startsWith(je))}function ba(se){return se.name===Xo&&se.publicId===null&&(se.systemId===null||se.systemId===wr)}function Go(se){if(se.name!==Xo)return ri.QUIRKS;const{systemId:fe}=se;if(fe&&fe.toLowerCase()===Gi)return ri.QUIRKS;let{publicId:je}=se;if(je!==null){if(je=je.toLowerCase(),Pa.has(je))return ri.QUIRKS;let St=fe===null?ls:Jr;if(uo(je,St))return ri.QUIRKS;if(St=fe===null?Oi:Yi,uo(je,St))return ri.LIMITED_QUIRKS}return ri.NO_QUIRKS}const zr={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},vo="definitionurl",sl="definitionURL",gs=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(se=>[se.toLowerCase(),se])),es=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:An.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:An.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:An.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:An.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:An.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:An.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:An.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:An.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:An.XML}],["xml:space",{prefix:"xml",name:"space",namespace:An.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:An.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:An.XMLNS}]]),Mn=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(se=>[se.toLowerCase(),se])),Co=new Set([Xe.B,Xe.BIG,Xe.BLOCKQUOTE,Xe.BODY,Xe.BR,Xe.CENTER,Xe.CODE,Xe.DD,Xe.DIV,Xe.DL,Xe.DT,Xe.EM,Xe.EMBED,Xe.H1,Xe.H2,Xe.H3,Xe.H4,Xe.H5,Xe.H6,Xe.HEAD,Xe.HR,Xe.I,Xe.IMG,Xe.LI,Xe.LISTING,Xe.MENU,Xe.META,Xe.NOBR,Xe.OL,Xe.P,Xe.PRE,Xe.RUBY,Xe.S,Xe.SMALL,Xe.SPAN,Xe.STRONG,Xe.STRIKE,Xe.SUB,Xe.SUP,Xe.TABLE,Xe.TT,Xe.U,Xe.UL,Xe.VAR]);function Ta(se){const fe=se.tagID;return fe===Xe.FONT&&se.attrs.some(({name:St})=>St===yi.COLOR||St===yi.SIZE||St===yi.FACE)||Co.has(fe)}function lo(se){for(let fe=0;fe<se.attrs.length;fe++)if(se.attrs[fe].name===vo){se.attrs[fe].name=sl;break}}function oa(se){for(let fe=0;fe<se.attrs.length;fe++){const je=gs.get(se.attrs[fe].name);je!=null&&(se.attrs[fe].name=je)}}function fa(se){for(let fe=0;fe<se.attrs.length;fe++){const je=es.get(se.attrs[fe].name);je&&(se.attrs[fe].prefix=je.prefix,se.attrs[fe].name=je.name,se.attrs[fe].namespace=je.namespace)}}function Ka(se){const fe=Mn.get(se.tagName);fe!=null&&(se.tagName=fe,se.tagID=Qn(se.tagName))}function qo(se,fe){return fe===An.MATHML&&(se===Xe.MI||se===Xe.MO||se===Xe.MN||se===Xe.MS||se===Xe.MTEXT)}function aa(se,fe,je){if(fe===An.MATHML&&se===Xe.ANNOTATION_XML){for(let St=0;St<je.length;St++)if(je[St].name===yi.ENCODING){const Yt=je[St].value.toLowerCase();return Yt===zr.TEXT_HTML||Yt===zr.APPLICATION_XML}}return fe===An.SVG&&(se===Xe.FOREIGN_OBJECT||se===Xe.DESC||se===Xe.TITLE)}function za(se,fe,je,St){return(!St||St===An.HTML)&&aa(se,fe,je)||(!St||St===An.MATHML)&&qo(se,fe)}const Ar="hidden",us=8,qt=3;var At;(function(se){se[se.INITIAL=0]="INITIAL",se[se.BEFORE_HTML=1]="BEFORE_HTML",se[se.BEFORE_HEAD=2]="BEFORE_HEAD",se[se.IN_HEAD=3]="IN_HEAD",se[se.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",se[se.AFTER_HEAD=5]="AFTER_HEAD",se[se.IN_BODY=6]="IN_BODY",se[se.TEXT=7]="TEXT",se[se.IN_TABLE=8]="IN_TABLE",se[se.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",se[se.IN_CAPTION=10]="IN_CAPTION",se[se.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",se[se.IN_TABLE_BODY=12]="IN_TABLE_BODY",se[se.IN_ROW=13]="IN_ROW",se[se.IN_CELL=14]="IN_CELL",se[se.IN_SELECT=15]="IN_SELECT",se[se.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",se[se.IN_TEMPLATE=17]="IN_TEMPLATE",se[se.AFTER_BODY=18]="AFTER_BODY",se[se.IN_FRAMESET=19]="IN_FRAMESET",se[se.AFTER_FRAMESET=20]="AFTER_FRAMESET",se[se.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",se[se.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(At||(At={}));const Nr={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Qt=new Set([Xe.TABLE,Xe.TBODY,Xe.TFOOT,Xe.THEAD,Xe.TR]),ln={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:ji,onParseError:null};class En{constructor(fe,je,St=null,Yt=null){this.fragmentContext=St,this.scriptHandler=Yt,this.currentToken=null,this.stopped=!1,this.insertionMode=At.INITIAL,this.originalInsertionMode=At.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=Uu(Uu({},ln),fe),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=je!=null?je:this.treeAdapter.createDocument(),this.tokenizer=new Fi(this.options,this),this.activeFormattingElements=new Pn(this.treeAdapter),this.fragmentContextID=St?Qn(this.treeAdapter.getTagName(St)):Xe.UNKNOWN,this._setContextModes(St!=null?St:this.document,this.fragmentContextID),this.openElements=new Cr(this.document,this.treeAdapter,this)}static parse(fe,je){const St=new this(je);return St.tokenizer.write(fe,!0),St.document}static getFragmentParser(fe,je){const St=Uu(Uu({},ln),je);fe!=null||(fe=St.treeAdapter.createElement(bn.TEMPLATE,An.HTML,[]));const Yt=St.treeAdapter.createElement("documentmock",An.HTML,[]),mn=new this(St,Yt,fe);return mn.fragmentContextID===Xe.TEMPLATE&&mn.tmplInsertionModeStack.unshift(At.IN_TEMPLATE),mn._initTokenizerForFragmentParsing(),mn._insertFakeRootElement(),mn._resetInsertionMode(),mn._findFormInFragmentContext(),mn}getFragment(){const fe=this.treeAdapter.getFirstChild(this.document),je=this.treeAdapter.createDocumentFragment();return this._adoptNodes(fe,je),je}_err(fe,je,St){var Yt;if(!this.onParseError)return;const mn=(Yt=fe.location)!==null&&Yt!==void 0?Yt:Nr,wn={code:je,startLine:mn.startLine,startCol:mn.startCol,startOffset:mn.startOffset,endLine:St?mn.startLine:mn.endLine,endCol:St?mn.startCol:mn.endCol,endOffset:St?mn.startOffset:mn.endOffset};this.onParseError(wn)}onItemPush(fe,je,St){var Yt,mn;(mn=(Yt=this.treeAdapter).onItemPush)===null||mn===void 0||mn.call(Yt,fe),St&&this.openElements.stackTop>0&&this._setContextModes(fe,je)}onItemPop(fe,je){var St,Yt;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(fe,this.currentToken),(Yt=(St=this.treeAdapter).onItemPop)===null||Yt===void 0||Yt.call(St,fe,this.openElements.current),je){let mn,wn;this.openElements.stackTop===0&&this.fragmentContext?(mn=this.fragmentContext,wn=this.fragmentContextID):{current:mn,currentTagId:wn}=this.openElements,this._setContextModes(mn,wn)}}_setContextModes(fe,je){const St=fe===this.document||this.treeAdapter.getNamespaceURI(fe)===An.HTML;this.currentNotInHTML=!St,this.tokenizer.inForeignNode=!St&&!this._isIntegrationPoint(je,fe)}_switchToTextParsing(fe,je){this._insertElement(fe,An.HTML),this.tokenizer.state=je,this.originalInsertionMode=this.insertionMode,this.insertionMode=At.TEXT}switchToPlaintextParsing(){this.insertionMode=At.TEXT,this.originalInsertionMode=At.IN_BODY,this.tokenizer.state=Hi.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let fe=this.fragmentContext;for(;fe;){if(this.treeAdapter.getTagName(fe)===bn.FORM){this.formElement=fe;break}fe=this.treeAdapter.getParentNode(fe)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==An.HTML))switch(this.fragmentContextID){case Xe.TITLE:case Xe.TEXTAREA:{this.tokenizer.state=Hi.RCDATA;break}case Xe.STYLE:case Xe.XMP:case Xe.IFRAME:case Xe.NOEMBED:case Xe.NOFRAMES:case Xe.NOSCRIPT:{this.tokenizer.state=Hi.RAWTEXT;break}case Xe.SCRIPT:{this.tokenizer.state=Hi.SCRIPT_DATA;break}case Xe.PLAINTEXT:{this.tokenizer.state=Hi.PLAINTEXT;break}default:}}_setDocumentType(fe){const je=fe.name||"",St=fe.publicId||"",Yt=fe.systemId||"";if(this.treeAdapter.setDocumentType(this.document,je,St,Yt),fe.location){const wn=this.treeAdapter.getChildNodes(this.document).find(On=>this.treeAdapter.isDocumentTypeNode(On));wn&&this.treeAdapter.setNodeSourceCodeLocation(wn,fe.location)}}_attachElementToTree(fe,je){if(this.options.sourceCodeLocationInfo){const St=je&&eg(Uu({},je),{startTag:je});this.treeAdapter.setNodeSourceCodeLocation(fe,St)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(fe);else{const St=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(St,fe)}}_appendElement(fe,je){const St=this.treeAdapter.createElement(fe.tagName,je,fe.attrs);this._attachElementToTree(St,fe.location)}_insertElement(fe,je){const St=this.treeAdapter.createElement(fe.tagName,je,fe.attrs);this._attachElementToTree(St,fe.location),this.openElements.push(St,fe.tagID)}_insertFakeElement(fe,je){const St=this.treeAdapter.createElement(fe,An.HTML,[]);this._attachElementToTree(St,null),this.openElements.push(St,je)}_insertTemplate(fe){const je=this.treeAdapter.createElement(fe.tagName,An.HTML,fe.attrs),St=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(je,St),this._attachElementToTree(je,fe.location),this.openElements.push(je,fe.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(St,null)}_insertFakeRootElement(){const fe=this.treeAdapter.createElement(bn.HTML,An.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(fe,null),this.treeAdapter.appendChild(this.openElements.current,fe),this.openElements.push(fe,Xe.HTML)}_appendCommentNode(fe,je){const St=this.treeAdapter.createCommentNode(fe.data);this.treeAdapter.appendChild(je,St),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(St,fe.location)}_insertCharacters(fe){let je,St;if(this._shouldFosterParentOnInsertion()?({parent:je,beforeElement:St}=this._findFosterParentingLocation(),St?this.treeAdapter.insertTextBefore(je,fe.chars,St):this.treeAdapter.insertText(je,fe.chars)):(je=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(je,fe.chars)),!fe.location)return;const Yt=this.treeAdapter.getChildNodes(je),mn=St?Yt.lastIndexOf(St):Yt.length,wn=Yt[mn-1];if(this.treeAdapter.getNodeSourceCodeLocation(wn)){const{endLine:Tn,endCol:br,endOffset:Wr}=fe.location;this.treeAdapter.updateNodeSourceCodeLocation(wn,{endLine:Tn,endCol:br,endOffset:Wr})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(wn,fe.location)}_adoptNodes(fe,je){for(let St=this.treeAdapter.getFirstChild(fe);St;St=this.treeAdapter.getFirstChild(fe))this.treeAdapter.detachNode(St),this.treeAdapter.appendChild(je,St)}_setEndLocation(fe,je){if(this.treeAdapter.getNodeSourceCodeLocation(fe)&&je.location){const St=je.location,Yt=this.treeAdapter.getTagName(fe),mn=je.type===tn.END_TAG&&Yt===je.tagName?{endTag:Uu({},St),endLine:St.endLine,endCol:St.endCol,endOffset:St.endOffset}:{endLine:St.startLine,endCol:St.startCol,endOffset:St.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(fe,mn)}}shouldProcessStartTagTokenInForeignContent(fe){if(!this.currentNotInHTML)return!1;let je,St;return this.openElements.stackTop===0&&this.fragmentContext?(je=this.fragmentContext,St=this.fragmentContextID):{current:je,currentTagId:St}=this.openElements,fe.tagID===Xe.SVG&&this.treeAdapter.getTagName(je)===bn.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(je)===An.MATHML?!1:this.tokenizer.inForeignNode||(fe.tagID===Xe.MGLYPH||fe.tagID===Xe.MALIGNMARK)&&!this._isIntegrationPoint(St,je,An.HTML)}_processToken(fe){switch(fe.type){case tn.CHARACTER:{this.onCharacter(fe);break}case tn.NULL_CHARACTER:{this.onNullCharacter(fe);break}case tn.COMMENT:{this.onComment(fe);break}case tn.DOCTYPE:{this.onDoctype(fe);break}case tn.START_TAG:{this._processStartTag(fe);break}case tn.END_TAG:{this.onEndTag(fe);break}case tn.EOF:{this.onEof(fe);break}case tn.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(fe);break}}}_isIntegrationPoint(fe,je,St){const Yt=this.treeAdapter.getNamespaceURI(je),mn=this.treeAdapter.getAttrList(je);return za(fe,Yt,mn,St)}_reconstructActiveFormattingElements(){const fe=this.activeFormattingElements.entries.length;if(fe){const je=this.activeFormattingElements.entries.findIndex(Yt=>Yt.type===_i.Marker||this.openElements.contains(Yt.element)),St=je<0?fe-1:je-1;for(let Yt=St;Yt>=0;Yt--){const mn=this.activeFormattingElements.entries[Yt];this._insertElement(mn.token,this.treeAdapter.getNamespaceURI(mn.element)),mn.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=At.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Xe.P),this.openElements.popUntilTagNamePopped(Xe.P)}_resetInsertionMode(){for(let fe=this.openElements.stackTop;fe>=0;fe--)switch(fe===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[fe]){case Xe.TR:{this.insertionMode=At.IN_ROW;return}case Xe.TBODY:case Xe.THEAD:case Xe.TFOOT:{this.insertionMode=At.IN_TABLE_BODY;return}case Xe.CAPTION:{this.insertionMode=At.IN_CAPTION;return}case Xe.COLGROUP:{this.insertionMode=At.IN_COLUMN_GROUP;return}case Xe.TABLE:{this.insertionMode=At.IN_TABLE;return}case Xe.BODY:{this.insertionMode=At.IN_BODY;return}case Xe.FRAMESET:{this.insertionMode=At.IN_FRAMESET;return}case Xe.SELECT:{this._resetInsertionModeForSelect(fe);return}case Xe.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case Xe.HTML:{this.insertionMode=this.headElement?At.AFTER_HEAD:At.BEFORE_HEAD;return}case Xe.TD:case Xe.TH:{if(fe>0){this.insertionMode=At.IN_CELL;return}break}case Xe.HEAD:{if(fe>0){this.insertionMode=At.IN_HEAD;return}break}}this.insertionMode=At.IN_BODY}_resetInsertionModeForSelect(fe){if(fe>0)for(let je=fe-1;je>0;je--){const St=this.openElements.tagIDs[je];if(St===Xe.TEMPLATE)break;if(St===Xe.TABLE){this.insertionMode=At.IN_SELECT_IN_TABLE;return}}this.insertionMode=At.IN_SELECT}_isElementCausesFosterParenting(fe){return Qt.has(fe)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let fe=this.openElements.stackTop;fe>=0;fe--){const je=this.openElements.items[fe];switch(this.openElements.tagIDs[fe]){case Xe.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(je)===An.HTML)return{parent:this.treeAdapter.getTemplateContent(je),beforeElement:null};break}case Xe.TABLE:{const St=this.treeAdapter.getParentNode(je);return St?{parent:St,beforeElement:je}:{parent:this.openElements.items[fe-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(fe){const je=this._findFosterParentingLocation();je.beforeElement?this.treeAdapter.insertBefore(je.parent,fe,je.beforeElement):this.treeAdapter.appendChild(je.parent,fe)}_isSpecialElement(fe,je){const St=this.treeAdapter.getNamespaceURI(fe);return to[St].has(je)}onCharacter(fe){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Id(this,fe);return}switch(this.insertionMode){case At.INITIAL:{Gt(this,fe);break}case At.BEFORE_HTML:{Tr(this,fe);break}case At.BEFORE_HEAD:{vr(this,fe);break}case At.IN_HEAD:{no(this,fe);break}case At.IN_HEAD_NO_SCRIPT:{_o(this,fe);break}case At.AFTER_HEAD:{os(this,fe);break}case At.IN_BODY:case At.IN_CAPTION:case At.IN_CELL:case At.IN_TEMPLATE:{ws(this,fe);break}case At.TEXT:case At.IN_SELECT:case At.IN_SELECT_IN_TABLE:{this._insertCharacters(fe);break}case At.IN_TABLE:case At.IN_TABLE_BODY:case At.IN_ROW:{ic(this,fe);break}case At.IN_TABLE_TEXT:{gn(this,fe);break}case At.IN_COLUMN_GROUP:{fc(this,fe);break}case At.AFTER_BODY:{ys(this,fe);break}case At.AFTER_AFTER_BODY:{Ti(this,fe);break}default:}}onNullCharacter(fe){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){ms(this,fe);return}switch(this.insertionMode){case At.INITIAL:{Gt(this,fe);break}case At.BEFORE_HTML:{Tr(this,fe);break}case At.BEFORE_HEAD:{vr(this,fe);break}case At.IN_HEAD:{no(this,fe);break}case At.IN_HEAD_NO_SCRIPT:{_o(this,fe);break}case At.AFTER_HEAD:{os(this,fe);break}case At.TEXT:{this._insertCharacters(fe);break}case At.IN_TABLE:case At.IN_TABLE_BODY:case At.IN_ROW:{ic(this,fe);break}case At.IN_COLUMN_GROUP:{fc(this,fe);break}case At.AFTER_BODY:{ys(this,fe);break}case At.AFTER_AFTER_BODY:{Ti(this,fe);break}default:}}onComment(fe){if(this.skipNextNewLine=!1,this.currentNotInHTML){zo(this,fe);return}switch(this.insertionMode){case At.INITIAL:case At.BEFORE_HTML:case At.BEFORE_HEAD:case At.IN_HEAD:case At.IN_HEAD_NO_SCRIPT:case At.AFTER_HEAD:case At.IN_BODY:case At.IN_TABLE:case At.IN_CAPTION:case At.IN_COLUMN_GROUP:case At.IN_TABLE_BODY:case At.IN_ROW:case At.IN_CELL:case At.IN_SELECT:case At.IN_SELECT_IN_TABLE:case At.IN_TEMPLATE:case At.IN_FRAMESET:case At.AFTER_FRAMESET:{zo(this,fe);break}case At.IN_TABLE_TEXT:{Mr(this,fe);break}case At.AFTER_BODY:{ya(this,fe);break}case At.AFTER_AFTER_BODY:case At.AFTER_AFTER_FRAMESET:{xa(this,fe);break}default:}}onDoctype(fe){switch(this.skipNextNewLine=!1,this.insertionMode){case At.INITIAL:{ha(this,fe);break}case At.BEFORE_HEAD:case At.IN_HEAD:case At.IN_HEAD_NO_SCRIPT:case At.AFTER_HEAD:{this._err(fe,Ft.misplacedDoctype);break}case At.IN_TABLE_TEXT:{Mr(this,fe);break}default:}}onStartTag(fe){this.skipNextNewLine=!1,this.currentToken=fe,this._processStartTag(fe),fe.selfClosing&&!fe.ackSelfClosing&&this._err(fe,Ft.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(fe){this.shouldProcessStartTagTokenInForeignContent(fe)?Zc(this,fe):this._startTagOutsideForeignContent(fe)}_startTagOutsideForeignContent(fe){switch(this.insertionMode){case At.INITIAL:{Gt(this,fe);break}case At.BEFORE_HTML:{fr(this,fe);break}case At.BEFORE_HEAD:{Ln(this,fe);break}case At.IN_HEAD:{sn(this,fe);break}case At.IN_HEAD_NO_SCRIPT:{Xi(this,fe);break}case At.AFTER_HEAD:{sa(this,fe);break}case At.IN_BODY:{al(this,fe);break}case At.IN_TABLE:{oc(this,fe);break}case At.IN_TABLE_TEXT:{Mr(this,fe);break}case At.IN_CAPTION:{dc(this,fe);break}case At.IN_COLUMN_GROUP:{yu(this,fe);break}case At.IN_TABLE_BODY:{Du(this,fe);break}case At.IN_ROW:{ua(this,fe);break}case At.IN_CELL:{Jl(this,fe);break}case At.IN_SELECT:{ns(this,fe);break}case At.IN_SELECT_IN_TABLE:{Au(this,fe);break}case At.IN_TEMPLATE:{uu(this,fe);break}case At.AFTER_BODY:{ks(this,fe);break}case At.IN_FRAMESET:{Js(this,fe);break}case At.AFTER_FRAMESET:{Sl(this,fe);break}case At.AFTER_AFTER_BODY:{wc(this,fe);break}case At.AFTER_AFTER_FRAMESET:{Cc(this,fe);break}default:}}onEndTag(fe){this.skipNextNewLine=!1,this.currentToken=fe,this.currentNotInHTML?gd(this,fe):this._endTagOutsideForeignContent(fe)}_endTagOutsideForeignContent(fe){switch(this.insertionMode){case At.INITIAL:{Gt(this,fe);break}case At.BEFORE_HTML:{pr(this,fe);break}case At.BEFORE_HEAD:{or(this,fe);break}case At.IN_HEAD:{mr(this,fe);break}case At.IN_HEAD_NO_SCRIPT:{zi(this,fe);break}case At.AFTER_HEAD:{Va(this,fe);break}case At.IN_BODY:{yl(this,fe);break}case At.TEXT:{pd(this,fe);break}case At.IN_TABLE:{ju(this,fe);break}case At.IN_TABLE_TEXT:{Mr(this,fe);break}case At.IN_CAPTION:{hc(this,fe);break}case At.IN_COLUMN_GROUP:{Tu(this,fe);break}case At.IN_TABLE_BODY:{ml(this,fe);break}case At.IN_ROW:{Ql(this,fe);break}case At.IN_CELL:{el(this,fe);break}case At.IN_SELECT:{Nl(this,fe);break}case At.IN_SELECT_IN_TABLE:{ll(this,fe);break}case At.IN_TEMPLATE:{$l(this,fe);break}case At.AFTER_BODY:{tu(this,fe);break}case At.IN_FRAMESET:{ul(this,fe);break}case At.AFTER_FRAMESET:{Fs(this,fe);break}case At.AFTER_AFTER_BODY:{Ti(this,fe);break}default:}}onEof(fe){switch(this.insertionMode){case At.INITIAL:{Gt(this,fe);break}case At.BEFORE_HTML:{Tr(this,fe);break}case At.BEFORE_HEAD:{vr(this,fe);break}case At.IN_HEAD:{no(this,fe);break}case At.IN_HEAD_NO_SCRIPT:{_o(this,fe);break}case At.AFTER_HEAD:{os(this,fe);break}case At.IN_BODY:case At.IN_TABLE:case At.IN_CAPTION:case At.IN_COLUMN_GROUP:case At.IN_TABLE_BODY:case At.IN_ROW:case At.IN_CELL:case At.IN_SELECT:case At.IN_SELECT_IN_TABLE:{fd(this,fe);break}case At.TEXT:{Uc(this,fe);break}case At.IN_TABLE_TEXT:{Mr(this,fe);break}case At.IN_TEMPLATE:{ac(this,fe);break}case At.AFTER_BODY:case At.IN_FRAMESET:case At.AFTER_FRAMESET:case At.AFTER_AFTER_BODY:case At.AFTER_AFTER_FRAMESET:{Sa(this,fe);break}default:}}onWhitespaceCharacter(fe){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,fe.chars.charCodeAt(0)===Ie.LINE_FEED)){if(fe.chars.length===1)return;fe.chars=fe.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(fe);return}switch(this.insertionMode){case At.IN_HEAD:case At.IN_HEAD_NO_SCRIPT:case At.AFTER_HEAD:case At.TEXT:case At.IN_COLUMN_GROUP:case At.IN_SELECT:case At.IN_SELECT_IN_TABLE:case At.IN_FRAMESET:case At.AFTER_FRAMESET:{this._insertCharacters(fe);break}case At.IN_BODY:case At.IN_CAPTION:case At.IN_CELL:case At.IN_TEMPLATE:case At.AFTER_BODY:case At.AFTER_AFTER_BODY:case At.AFTER_AFTER_FRAMESET:{Un(this,fe);break}case At.IN_TABLE:case At.IN_TABLE_BODY:case At.IN_ROW:{ic(this,fe);break}case At.IN_TABLE_TEXT:{xc(this,fe);break}default:}}}function Xn(se,fe){let je=se.activeFormattingElements.getElementEntryInScopeWithTagName(fe.tagName);return je?se.openElements.contains(je.element)?se.openElements.hasInScope(fe.tagID)||(je=null):(se.activeFormattingElements.removeEntry(je),je=null):od(se,fe),je}function Rr(se,fe){let je=null,St=se.openElements.stackTop;for(;St>=0;St--){const Yt=se.openElements.items[St];if(Yt===fe.element)break;se._isSpecialElement(Yt,se.openElements.tagIDs[St])&&(je=Yt)}return je||(se.openElements.shortenToLength(St<0?0:St),se.activeFormattingElements.removeEntry(fe)),je}function vi(se,fe,je){let St=fe,Yt=se.openElements.getCommonAncestor(fe);for(let mn=0,wn=Yt;wn!==je;mn++,wn=Yt){Yt=se.openElements.getCommonAncestor(wn);const On=se.activeFormattingElements.getElementEntry(wn),Tn=On&&mn>=qt;!On||Tn?(Tn&&se.activeFormattingElements.removeEntry(On),se.openElements.remove(wn)):(wn=ni(se,On),St===fe&&(se.activeFormattingElements.bookmark=On),se.treeAdapter.detachNode(St),se.treeAdapter.appendChild(wn,St),St=wn)}return St}function ni(se,fe){const je=se.treeAdapter.getNamespaceURI(fe.element),St=se.treeAdapter.createElement(fe.token.tagName,je,fe.token.attrs);return se.openElements.replace(fe.element,St),fe.element=St,St}function xr(se,fe,je){const St=se.treeAdapter.getTagName(fe),Yt=Qn(St);if(se._isElementCausesFosterParenting(Yt))se._fosterParentElement(je);else{const mn=se.treeAdapter.getNamespaceURI(fe);Yt===Xe.TEMPLATE&&mn===An.HTML&&(fe=se.treeAdapter.getTemplateContent(fe)),se.treeAdapter.appendChild(fe,je)}}function xt(se,fe,je){const St=se.treeAdapter.getNamespaceURI(je.element),{token:Yt}=je,mn=se.treeAdapter.createElement(Yt.tagName,St,Yt.attrs);se._adoptNodes(fe,mn),se.treeAdapter.appendChild(fe,mn),se.activeFormattingElements.insertElementAfterBookmark(mn,Yt),se.activeFormattingElements.removeEntry(je),se.openElements.remove(je.element),se.openElements.insertAfter(fe,mn,Yt.tagID)}function Po(se,fe){for(let je=0;je<us;je++){const St=Xn(se,fe);if(!St)break;const Yt=Rr(se,St);if(!Yt)break;se.activeFormattingElements.bookmark=St;const mn=vi(se,Yt,St.element),wn=se.openElements.getCommonAncestor(St.element);se.treeAdapter.detachNode(mn),wn&&xr(se,wn,mn),xt(se,Yt,St)}}function zo(se,fe){se._appendCommentNode(fe,se.openElements.currentTmplContentOrNode)}function ya(se,fe){se._appendCommentNode(fe,se.openElements.items[0])}function xa(se,fe){se._appendCommentNode(fe,se.document)}function Sa(se,fe){if(se.stopped=!0,fe.location){const je=se.fragmentContext?0:2;for(let St=se.openElements.stackTop;St>=je;St--)se._setEndLocation(se.openElements.items[St],fe);if(!se.fragmentContext&&se.openElements.stackTop>=0){const St=se.openElements.items[0],Yt=se.treeAdapter.getNodeSourceCodeLocation(St);if(Yt&&!Yt.endTag&&(se._setEndLocation(St,fe),se.openElements.stackTop>=1)){const mn=se.openElements.items[1],wn=se.treeAdapter.getNodeSourceCodeLocation(mn);wn&&!wn.endTag&&se._setEndLocation(mn,fe)}}}}function ha(se,fe){se._setDocumentType(fe);const je=fe.forceQuirks?ri.QUIRKS:Go(fe);ba(fe)||se._err(fe,Ft.nonConformingDoctype),se.treeAdapter.setDocumentMode(se.document,je),se.insertionMode=At.BEFORE_HTML}function Gt(se,fe){se._err(fe,Ft.missingDoctype,!0),se.treeAdapter.setDocumentMode(se.document,ri.QUIRKS),se.insertionMode=At.BEFORE_HTML,se._processToken(fe)}function fr(se,fe){fe.tagID===Xe.HTML?(se._insertElement(fe,An.HTML),se.insertionMode=At.BEFORE_HEAD):Tr(se,fe)}function pr(se,fe){const je=fe.tagID;(je===Xe.HTML||je===Xe.HEAD||je===Xe.BODY||je===Xe.BR)&&Tr(se,fe)}function Tr(se,fe){se._insertFakeRootElement(),se.insertionMode=At.BEFORE_HEAD,se._processToken(fe)}function Ln(se,fe){switch(fe.tagID){case Xe.HTML:{al(se,fe);break}case Xe.HEAD:{se._insertElement(fe,An.HTML),se.headElement=se.openElements.current,se.insertionMode=At.IN_HEAD;break}default:vr(se,fe)}}function or(se,fe){const je=fe.tagID;je===Xe.HEAD||je===Xe.BODY||je===Xe.HTML||je===Xe.BR?vr(se,fe):se._err(fe,Ft.endTagWithoutMatchingOpenElement)}function vr(se,fe){se._insertFakeElement(bn.HEAD,Xe.HEAD),se.headElement=se.openElements.current,se.insertionMode=At.IN_HEAD,se._processToken(fe)}function sn(se,fe){switch(fe.tagID){case Xe.HTML:{al(se,fe);break}case Xe.BASE:case Xe.BASEFONT:case Xe.BGSOUND:case Xe.LINK:case Xe.META:{se._appendElement(fe,An.HTML),fe.ackSelfClosing=!0;break}case Xe.TITLE:{se._switchToTextParsing(fe,Hi.RCDATA);break}case Xe.NOSCRIPT:{se.options.scriptingEnabled?se._switchToTextParsing(fe,Hi.RAWTEXT):(se._insertElement(fe,An.HTML),se.insertionMode=At.IN_HEAD_NO_SCRIPT);break}case Xe.NOFRAMES:case Xe.STYLE:{se._switchToTextParsing(fe,Hi.RAWTEXT);break}case Xe.SCRIPT:{se._switchToTextParsing(fe,Hi.SCRIPT_DATA);break}case Xe.TEMPLATE:{se._insertTemplate(fe),se.activeFormattingElements.insertMarker(),se.framesetOk=!1,se.insertionMode=At.IN_TEMPLATE,se.tmplInsertionModeStack.unshift(At.IN_TEMPLATE);break}case Xe.HEAD:{se._err(fe,Ft.misplacedStartTagForHeadElement);break}default:no(se,fe)}}function mr(se,fe){switch(fe.tagID){case Xe.HEAD:{se.openElements.pop(),se.insertionMode=At.AFTER_HEAD;break}case Xe.BODY:case Xe.BR:case Xe.HTML:{no(se,fe);break}case Xe.TEMPLATE:{Vr(se,fe);break}default:se._err(fe,Ft.endTagWithoutMatchingOpenElement)}}function Vr(se,fe){se.openElements.tmplCount>0?(se.openElements.generateImpliedEndTagsThoroughly(),se.openElements.currentTagId!==Xe.TEMPLATE&&se._err(fe,Ft.closingOfElementWithOpenChildElements),se.openElements.popUntilTagNamePopped(Xe.TEMPLATE),se.activeFormattingElements.clearToLastMarker(),se.tmplInsertionModeStack.shift(),se._resetInsertionMode()):se._err(fe,Ft.endTagWithoutMatchingOpenElement)}function no(se,fe){se.openElements.pop(),se.insertionMode=At.AFTER_HEAD,se._processToken(fe)}function Xi(se,fe){switch(fe.tagID){case Xe.HTML:{al(se,fe);break}case Xe.BASEFONT:case Xe.BGSOUND:case Xe.HEAD:case Xe.LINK:case Xe.META:case Xe.NOFRAMES:case Xe.STYLE:{sn(se,fe);break}case Xe.NOSCRIPT:{se._err(fe,Ft.nestedNoscriptInHead);break}default:_o(se,fe)}}function zi(se,fe){switch(fe.tagID){case Xe.NOSCRIPT:{se.openElements.pop(),se.insertionMode=At.IN_HEAD;break}case Xe.BR:{_o(se,fe);break}default:se._err(fe,Ft.endTagWithoutMatchingOpenElement)}}function _o(se,fe){const je=fe.type===tn.EOF?Ft.openElementsLeftAfterEof:Ft.disallowedContentInNoscriptInHead;se._err(fe,je),se.openElements.pop(),se.insertionMode=At.IN_HEAD,se._processToken(fe)}function sa(se,fe){switch(fe.tagID){case Xe.HTML:{al(se,fe);break}case Xe.BODY:{se._insertElement(fe,An.HTML),se.framesetOk=!1,se.insertionMode=At.IN_BODY;break}case Xe.FRAMESET:{se._insertElement(fe,An.HTML),se.insertionMode=At.IN_FRAMESET;break}case Xe.BASE:case Xe.BASEFONT:case Xe.BGSOUND:case Xe.LINK:case Xe.META:case Xe.NOFRAMES:case Xe.SCRIPT:case Xe.STYLE:case Xe.TEMPLATE:case Xe.TITLE:{se._err(fe,Ft.abandonedHeadElementChild),se.openElements.push(se.headElement,Xe.HEAD),sn(se,fe),se.openElements.remove(se.headElement);break}case Xe.HEAD:{se._err(fe,Ft.misplacedStartTagForHeadElement);break}default:os(se,fe)}}function Va(se,fe){switch(fe.tagID){case Xe.BODY:case Xe.HTML:case Xe.BR:{os(se,fe);break}case Xe.TEMPLATE:{Vr(se,fe);break}default:se._err(fe,Ft.endTagWithoutMatchingOpenElement)}}function os(se,fe){se._insertFakeElement(bn.BODY,Xe.BODY),se.insertionMode=At.IN_BODY,Zs(se,fe)}function Zs(se,fe){switch(fe.type){case tn.CHARACTER:{ws(se,fe);break}case tn.WHITESPACE_CHARACTER:{Un(se,fe);break}case tn.COMMENT:{zo(se,fe);break}case tn.START_TAG:{al(se,fe);break}case tn.END_TAG:{yl(se,fe);break}case tn.EOF:{fd(se,fe);break}default:}}function Un(se,fe){se._reconstructActiveFormattingElements(),se._insertCharacters(fe)}function ws(se,fe){se._reconstructActiveFormattingElements(),se._insertCharacters(fe),se.framesetOk=!1}function Ds(se,fe){se.openElements.tmplCount===0&&se.treeAdapter.adoptAttributes(se.openElements.items[0],fe.attrs)}function dl(se,fe){const je=se.openElements.tryPeekProperlyNestedBodyElement();je&&se.openElements.tmplCount===0&&(se.framesetOk=!1,se.treeAdapter.adoptAttributes(je,fe.attrs))}function _a(se,fe){const je=se.openElements.tryPeekProperlyNestedBodyElement();se.framesetOk&&je&&(se.treeAdapter.detachNode(je),se.openElements.popAllUpToHtmlElement(),se._insertElement(fe,An.HTML),se.insertionMode=At.IN_FRAMESET)}function js(se,fe){se.openElements.hasInButtonScope(Xe.P)&&se._closePElement(),se._insertElement(fe,An.HTML)}function ol(se,fe){se.openElements.hasInButtonScope(Xe.P)&&se._closePElement(),Ki(se.openElements.currentTagId)&&se.openElements.pop(),se._insertElement(fe,An.HTML)}function Tl(se,fe){se.openElements.hasInButtonScope(Xe.P)&&se._closePElement(),se._insertElement(fe,An.HTML),se.skipNextNewLine=!0,se.framesetOk=!1}function Wa(se,fe){const je=se.openElements.tmplCount>0;(!se.formElement||je)&&(se.openElements.hasInButtonScope(Xe.P)&&se._closePElement(),se._insertElement(fe,An.HTML),je||(se.formElement=se.openElements.current))}function vs(se,fe){se.framesetOk=!1;const je=fe.tagID;for(let St=se.openElements.stackTop;St>=0;St--){const Yt=se.openElements.tagIDs[St];if(je===Xe.LI&&Yt===Xe.LI||(je===Xe.DD||je===Xe.DT)&&(Yt===Xe.DD||Yt===Xe.DT)){se.openElements.generateImpliedEndTagsWithExclusion(Yt),se.openElements.popUntilTagNamePopped(Yt);break}if(Yt!==Xe.ADDRESS&&Yt!==Xe.DIV&&Yt!==Xe.P&&se._isSpecialElement(se.openElements.items[St],Yt))break}se.openElements.hasInButtonScope(Xe.P)&&se._closePElement(),se._insertElement(fe,An.HTML)}function Io(se,fe){se.openElements.hasInButtonScope(Xe.P)&&se._closePElement(),se._insertElement(fe,An.HTML),se.tokenizer.state=Hi.PLAINTEXT}function pa(se,fe){se.openElements.hasInScope(Xe.BUTTON)&&(se.openElements.generateImpliedEndTags(),se.openElements.popUntilTagNamePopped(Xe.BUTTON)),se._reconstructActiveFormattingElements(),se._insertElement(fe,An.HTML),se.framesetOk=!1}function Ua(se,fe){const je=se.activeFormattingElements.getElementEntryInScopeWithTagName(bn.A);je&&(Po(se,fe),se.openElements.remove(je.element),se.activeFormattingElements.removeEntry(je)),se._reconstructActiveFormattingElements(),se._insertElement(fe,An.HTML),se.activeFormattingElements.pushElement(se.openElements.current,fe)}function as(se,fe){se._reconstructActiveFormattingElements(),se._insertElement(fe,An.HTML),se.activeFormattingElements.pushElement(se.openElements.current,fe)}function Bi(se,fe){se._reconstructActiveFormattingElements(),se.openElements.hasInScope(Xe.NOBR)&&(Po(se,fe),se._reconstructActiveFormattingElements()),se._insertElement(fe,An.HTML),se.activeFormattingElements.pushElement(se.openElements.current,fe)}function Xs(se,fe){se._reconstructActiveFormattingElements(),se._insertElement(fe,An.HTML),se.activeFormattingElements.insertMarker(),se.framesetOk=!1}function Ls(se,fe){se.treeAdapter.getDocumentMode(se.document)!==ri.QUIRKS&&se.openElements.hasInButtonScope(Xe.P)&&se._closePElement(),se._insertElement(fe,An.HTML),se.framesetOk=!1,se.insertionMode=At.IN_TABLE}function Gs(se,fe){se._reconstructActiveFormattingElements(),se._appendElement(fe,An.HTML),se.framesetOk=!1,fe.ackSelfClosing=!0}function vl(se){const fe=an(se,yi.TYPE);return fe!=null&&fe.toLowerCase()===Ar}function Ml(se,fe){se._reconstructActiveFormattingElements(),se._appendElement(fe,An.HTML),vl(fe)||(se.framesetOk=!1),fe.ackSelfClosing=!0}function ci(se,fe){se._appendElement(fe,An.HTML),fe.ackSelfClosing=!0}function zs(se,fe){se.openElements.hasInButtonScope(Xe.P)&&se._closePElement(),se._appendElement(fe,An.HTML),se.framesetOk=!1,fe.ackSelfClosing=!0}function Vs(se,fe){fe.tagName=bn.IMG,fe.tagID=Xe.IMG,Gs(se,fe)}function Ul(se,fe){se._insertElement(fe,An.HTML),se.skipNextNewLine=!0,se.tokenizer.state=Hi.RCDATA,se.originalInsertionMode=se.insertionMode,se.framesetOk=!1,se.insertionMode=At.TEXT}function Qs(se,fe){se.openElements.hasInButtonScope(Xe.P)&&se._closePElement(),se._reconstructActiveFormattingElements(),se.framesetOk=!1,se._switchToTextParsing(fe,Hi.RAWTEXT)}function Dl(se,fe){se.framesetOk=!1,se._switchToTextParsing(fe,Hi.RAWTEXT)}function la(se,fe){se._switchToTextParsing(fe,Hi.RAWTEXT)}function gu(se,fe){se._reconstructActiveFormattingElements(),se._insertElement(fe,An.HTML),se.framesetOk=!1,se.insertionMode=se.insertionMode===At.IN_TABLE||se.insertionMode===At.IN_CAPTION||se.insertionMode===At.IN_TABLE_BODY||se.insertionMode===At.IN_ROW||se.insertionMode===At.IN_CELL?At.IN_SELECT_IN_TABLE:At.IN_SELECT}function Pl(se,fe){se.openElements.currentTagId===Xe.OPTION&&se.openElements.pop(),se._reconstructActiveFormattingElements(),se._insertElement(fe,An.HTML)}function Is(se,fe){se.openElements.hasInScope(Xe.RUBY)&&se.openElements.generateImpliedEndTags(),se._insertElement(fe,An.HTML)}function eu(se,fe){se.openElements.hasInScope(Xe.RUBY)&&se.openElements.generateImpliedEndTagsWithExclusion(Xe.RTC),se._insertElement(fe,An.HTML)}function Hu(se,fe){se._reconstructActiveFormattingElements(),lo(fe),fa(fe),fe.selfClosing?se._appendElement(fe,An.MATHML):se._insertElement(fe,An.MATHML),fe.ackSelfClosing=!0}function cc(se,fe){se._reconstructActiveFormattingElements(),oa(fe),fa(fe),fe.selfClosing?se._appendElement(fe,An.SVG):se._insertElement(fe,An.SVG),fe.ackSelfClosing=!0}function Il(se,fe){se._reconstructActiveFormattingElements(),se._insertElement(fe,An.HTML)}function al(se,fe){switch(fe.tagID){case Xe.I:case Xe.S:case Xe.B:case Xe.U:case Xe.EM:case Xe.TT:case Xe.BIG:case Xe.CODE:case Xe.FONT:case Xe.SMALL:case Xe.STRIKE:case Xe.STRONG:{as(se,fe);break}case Xe.A:{Ua(se,fe);break}case Xe.H1:case Xe.H2:case Xe.H3:case Xe.H4:case Xe.H5:case Xe.H6:{ol(se,fe);break}case Xe.P:case Xe.DL:case Xe.OL:case Xe.UL:case Xe.DIV:case Xe.DIR:case Xe.NAV:case Xe.MAIN:case Xe.MENU:case Xe.ASIDE:case Xe.CENTER:case Xe.FIGURE:case Xe.FOOTER:case Xe.HEADER:case Xe.HGROUP:case Xe.DIALOG:case Xe.DETAILS:case Xe.ADDRESS:case Xe.ARTICLE:case Xe.SECTION:case Xe.SUMMARY:case Xe.FIELDSET:case Xe.BLOCKQUOTE:case Xe.FIGCAPTION:{js(se,fe);break}case Xe.LI:case Xe.DD:case Xe.DT:{vs(se,fe);break}case Xe.BR:case Xe.IMG:case Xe.WBR:case Xe.AREA:case Xe.EMBED:case Xe.KEYGEN:{Gs(se,fe);break}case Xe.HR:{zs(se,fe);break}case Xe.RB:case Xe.RTC:{Is(se,fe);break}case Xe.RT:case Xe.RP:{eu(se,fe);break}case Xe.PRE:case Xe.LISTING:{Tl(se,fe);break}case Xe.XMP:{Qs(se,fe);break}case Xe.SVG:{cc(se,fe);break}case Xe.HTML:{Ds(se,fe);break}case Xe.BASE:case Xe.LINK:case Xe.META:case Xe.STYLE:case Xe.TITLE:case Xe.SCRIPT:case Xe.BGSOUND:case Xe.BASEFONT:case Xe.TEMPLATE:{sn(se,fe);break}case Xe.BODY:{dl(se,fe);break}case Xe.FORM:{Wa(se,fe);break}case Xe.NOBR:{Bi(se,fe);break}case Xe.MATH:{Hu(se,fe);break}case Xe.TABLE:{Ls(se,fe);break}case Xe.INPUT:{Ml(se,fe);break}case Xe.PARAM:case Xe.TRACK:case Xe.SOURCE:{ci(se,fe);break}case Xe.IMAGE:{Vs(se,fe);break}case Xe.BUTTON:{pa(se,fe);break}case Xe.APPLET:case Xe.OBJECT:case Xe.MARQUEE:{Xs(se,fe);break}case Xe.IFRAME:{Dl(se,fe);break}case Xe.SELECT:{gu(se,fe);break}case Xe.OPTION:case Xe.OPTGROUP:{Pl(se,fe);break}case Xe.NOEMBED:{la(se,fe);break}case Xe.FRAMESET:{_a(se,fe);break}case Xe.TEXTAREA:{Ul(se,fe);break}case Xe.NOSCRIPT:{se.options.scriptingEnabled?la(se,fe):Il(se,fe);break}case Xe.PLAINTEXT:{Io(se,fe);break}case Xe.COL:case Xe.TH:case Xe.TD:case Xe.TR:case Xe.HEAD:case Xe.FRAME:case Xe.TBODY:case Xe.TFOOT:case Xe.THEAD:case Xe.CAPTION:case Xe.COLGROUP:break;default:Il(se,fe)}}function Dc(se,fe){if(se.openElements.hasInScope(Xe.BODY)&&(se.insertionMode=At.AFTER_BODY,se.options.sourceCodeLocationInfo)){const je=se.openElements.tryPeekProperlyNestedBodyElement();je&&se._setEndLocation(je,fe)}}function Fc(se,fe){se.openElements.hasInScope(Xe.BODY)&&(se.insertionMode=At.AFTER_BODY,tu(se,fe))}function rc(se,fe){const je=fe.tagID;se.openElements.hasInScope(je)&&(se.openElements.generateImpliedEndTags(),se.openElements.popUntilTagNamePopped(je))}function Bc(se){const fe=se.openElements.tmplCount>0,{formElement:je}=se;fe||(se.formElement=null),(je||fe)&&se.openElements.hasInScope(Xe.FORM)&&(se.openElements.generateImpliedEndTags(),fe?se.openElements.popUntilTagNamePopped(Xe.FORM):je&&se.openElements.remove(je))}function Iu(se){se.openElements.hasInButtonScope(Xe.P)||se._insertFakeElement(bn.P,Xe.P),se._closePElement()}function Al(se){se.openElements.hasInListItemScope(Xe.LI)&&(se.openElements.generateImpliedEndTagsWithExclusion(Xe.LI),se.openElements.popUntilTagNamePopped(Xe.LI))}function Fl(se,fe){const je=fe.tagID;se.openElements.hasInScope(je)&&(se.openElements.generateImpliedEndTagsWithExclusion(je),se.openElements.popUntilTagNamePopped(je))}function Ju(se){se.openElements.hasNumberedHeaderInScope()&&(se.openElements.generateImpliedEndTags(),se.openElements.popUntilNumberedHeaderPopped())}function _c(se,fe){const je=fe.tagID;se.openElements.hasInScope(je)&&(se.openElements.generateImpliedEndTags(),se.openElements.popUntilTagNamePopped(je),se.activeFormattingElements.clearToLastMarker())}function $u(se){se._reconstructActiveFormattingElements(),se._insertFakeElement(bn.BR,Xe.BR),se.openElements.pop(),se.framesetOk=!1}function od(se,fe){const je=fe.tagName,St=fe.tagID;for(let Yt=se.openElements.stackTop;Yt>0;Yt--){const mn=se.openElements.items[Yt],wn=se.openElements.tagIDs[Yt];if(St===wn&&(St!==Xe.UNKNOWN||se.treeAdapter.getTagName(mn)===je)){se.openElements.generateImpliedEndTagsWithExclusion(St),se.openElements.stackTop>=Yt&&se.openElements.shortenToLength(Yt);break}if(se._isSpecialElement(mn,wn))break}}function yl(se,fe){switch(fe.tagID){case Xe.A:case Xe.B:case Xe.I:case Xe.S:case Xe.U:case Xe.EM:case Xe.TT:case Xe.BIG:case Xe.CODE:case Xe.FONT:case Xe.NOBR:case Xe.SMALL:case Xe.STRIKE:case Xe.STRONG:{Po(se,fe);break}case Xe.P:{Iu(se);break}case Xe.DL:case Xe.UL:case Xe.OL:case Xe.DIR:case Xe.DIV:case Xe.NAV:case Xe.PRE:case Xe.MAIN:case Xe.MENU:case Xe.ASIDE:case Xe.BUTTON:case Xe.CENTER:case Xe.FIGURE:case Xe.FOOTER:case Xe.HEADER:case Xe.HGROUP:case Xe.DIALOG:case Xe.ADDRESS:case Xe.ARTICLE:case Xe.DETAILS:case Xe.SECTION:case Xe.SUMMARY:case Xe.LISTING:case Xe.FIELDSET:case Xe.BLOCKQUOTE:case Xe.FIGCAPTION:{rc(se,fe);break}case Xe.LI:{Al(se);break}case Xe.DD:case Xe.DT:{Fl(se,fe);break}case Xe.H1:case Xe.H2:case Xe.H3:case Xe.H4:case Xe.H5:case Xe.H6:{Ju(se);break}case Xe.BR:{$u(se);break}case Xe.BODY:{Dc(se,fe);break}case Xe.HTML:{Fc(se,fe);break}case Xe.FORM:{Bc(se);break}case Xe.APPLET:case Xe.OBJECT:case Xe.MARQUEE:{_c(se,fe);break}case Xe.TEMPLATE:{Vr(se,fe);break}default:od(se,fe)}}function fd(se,fe){se.tmplInsertionModeStack.length>0?ac(se,fe):Sa(se,fe)}function pd(se,fe){var je;fe.tagID===Xe.SCRIPT&&((je=se.scriptHandler)===null||je===void 0||je.call(se,se.openElements.current)),se.openElements.pop(),se.insertionMode=se.originalInsertionMode}function Uc(se,fe){se._err(fe,Ft.eofInElementThatCanContainOnlyText),se.openElements.pop(),se.insertionMode=se.originalInsertionMode,se.onEof(fe)}function ic(se,fe){if(Qt.has(se.openElements.currentTagId))switch(se.pendingCharacterTokens.length=0,se.hasNonWhitespacePendingCharacterToken=!1,se.originalInsertionMode=se.insertionMode,se.insertionMode=At.IN_TABLE_TEXT,fe.type){case tn.CHARACTER:{gn(se,fe);break}case tn.WHITESPACE_CHARACTER:{xc(se,fe);break}}else No(se,fe)}function lu(se,fe){se.openElements.clearBackToTableContext(),se.activeFormattingElements.insertMarker(),se._insertElement(fe,An.HTML),se.insertionMode=At.IN_CAPTION}function mu(se,fe){se.openElements.clearBackToTableContext(),se._insertElement(fe,An.HTML),se.insertionMode=At.IN_COLUMN_GROUP}function kl(se,fe){se.openElements.clearBackToTableContext(),se._insertFakeElement(bn.COLGROUP,Xe.COLGROUP),se.insertionMode=At.IN_COLUMN_GROUP,yu(se,fe)}function Hl(se,fe){se.openElements.clearBackToTableContext(),se._insertElement(fe,An.HTML),se.insertionMode=At.IN_TABLE_BODY}function Yc(se,fe){se.openElements.clearBackToTableContext(),se._insertFakeElement(bn.TBODY,Xe.TBODY),se.insertionMode=At.IN_TABLE_BODY,Du(se,fe)}function Wl(se,fe){se.openElements.hasInTableScope(Xe.TABLE)&&(se.openElements.popUntilTagNamePopped(Xe.TABLE),se._resetInsertionMode(),se._processStartTag(fe))}function hl(se,fe){vl(fe)?se._appendElement(fe,An.HTML):No(se,fe),fe.ackSelfClosing=!0}function ad(se,fe){!se.formElement&&se.openElements.tmplCount===0&&(se._insertElement(fe,An.HTML),se.formElement=se.openElements.current,se.openElements.pop())}function oc(se,fe){switch(fe.tagID){case Xe.TD:case Xe.TH:case Xe.TR:{Yc(se,fe);break}case Xe.STYLE:case Xe.SCRIPT:case Xe.TEMPLATE:{sn(se,fe);break}case Xe.COL:{kl(se,fe);break}case Xe.FORM:{ad(se,fe);break}case Xe.TABLE:{Wl(se,fe);break}case Xe.TBODY:case Xe.TFOOT:case Xe.THEAD:{Hl(se,fe);break}case Xe.INPUT:{hl(se,fe);break}case Xe.CAPTION:{lu(se,fe);break}case Xe.COLGROUP:{mu(se,fe);break}default:No(se,fe)}}function ju(se,fe){switch(fe.tagID){case Xe.TABLE:{se.openElements.hasInTableScope(Xe.TABLE)&&(se.openElements.popUntilTagNamePopped(Xe.TABLE),se._resetInsertionMode());break}case Xe.TEMPLATE:{Vr(se,fe);break}case Xe.BODY:case Xe.CAPTION:case Xe.COL:case Xe.COLGROUP:case Xe.HTML:case Xe.TBODY:case Xe.TD:case Xe.TFOOT:case Xe.TH:case Xe.THEAD:case Xe.TR:break;default:No(se,fe)}}function No(se,fe){const je=se.fosterParentingEnabled;se.fosterParentingEnabled=!0,Zs(se,fe),se.fosterParentingEnabled=je}function xc(se,fe){se.pendingCharacterTokens.push(fe)}function gn(se,fe){se.pendingCharacterTokens.push(fe),se.hasNonWhitespacePendingCharacterToken=!0}function Mr(se,fe){let je=0;if(se.hasNonWhitespacePendingCharacterToken)for(;je<se.pendingCharacterTokens.length;je++)No(se,se.pendingCharacterTokens[je]);else for(;je<se.pendingCharacterTokens.length;je++)se._insertCharacters(se.pendingCharacterTokens[je]);se.insertionMode=se.originalInsertionMode,se._processToken(fe)}const Cu=new Set([Xe.CAPTION,Xe.COL,Xe.COLGROUP,Xe.TBODY,Xe.TD,Xe.TFOOT,Xe.TH,Xe.THEAD,Xe.TR]);function dc(se,fe){const je=fe.tagID;Cu.has(je)?se.openElements.hasInTableScope(Xe.CAPTION)&&(se.openElements.generateImpliedEndTags(),se.openElements.popUntilTagNamePopped(Xe.CAPTION),se.activeFormattingElements.clearToLastMarker(),se.insertionMode=At.IN_TABLE,oc(se,fe)):al(se,fe)}function hc(se,fe){const je=fe.tagID;switch(je){case Xe.CAPTION:case Xe.TABLE:{se.openElements.hasInTableScope(Xe.CAPTION)&&(se.openElements.generateImpliedEndTags(),se.openElements.popUntilTagNamePopped(Xe.CAPTION),se.activeFormattingElements.clearToLastMarker(),se.insertionMode=At.IN_TABLE,je===Xe.TABLE&&ju(se,fe));break}case Xe.BODY:case Xe.COL:case Xe.COLGROUP:case Xe.HTML:case Xe.TBODY:case Xe.TD:case Xe.TFOOT:case Xe.TH:case Xe.THEAD:case Xe.TR:break;default:yl(se,fe)}}function yu(se,fe){switch(fe.tagID){case Xe.HTML:{al(se,fe);break}case Xe.COL:{se._appendElement(fe,An.HTML),fe.ackSelfClosing=!0;break}case Xe.TEMPLATE:{sn(se,fe);break}default:fc(se,fe)}}function Tu(se,fe){switch(fe.tagID){case Xe.COLGROUP:{se.openElements.currentTagId===Xe.COLGROUP&&(se.openElements.pop(),se.insertionMode=At.IN_TABLE);break}case Xe.TEMPLATE:{Vr(se,fe);break}case Xe.COL:break;default:fc(se,fe)}}function fc(se,fe){se.openElements.currentTagId===Xe.COLGROUP&&(se.openElements.pop(),se.insertionMode=At.IN_TABLE,se._processToken(fe))}function Du(se,fe){switch(fe.tagID){case Xe.TR:{se.openElements.clearBackToTableBodyContext(),se._insertElement(fe,An.HTML),se.insertionMode=At.IN_ROW;break}case Xe.TH:case Xe.TD:{se.openElements.clearBackToTableBodyContext(),se._insertFakeElement(bn.TR,Xe.TR),se.insertionMode=At.IN_ROW,ua(se,fe);break}case Xe.CAPTION:case Xe.COL:case Xe.COLGROUP:case Xe.TBODY:case Xe.TFOOT:case Xe.THEAD:{se.openElements.hasTableBodyContextInTableScope()&&(se.openElements.clearBackToTableBodyContext(),se.openElements.pop(),se.insertionMode=At.IN_TABLE,oc(se,fe));break}default:oc(se,fe)}}function ml(se,fe){const je=fe.tagID;switch(fe.tagID){case Xe.TBODY:case Xe.TFOOT:case Xe.THEAD:{se.openElements.hasInTableScope(je)&&(se.openElements.clearBackToTableBodyContext(),se.openElements.pop(),se.insertionMode=At.IN_TABLE);break}case Xe.TABLE:{se.openElements.hasTableBodyContextInTableScope()&&(se.openElements.clearBackToTableBodyContext(),se.openElements.pop(),se.insertionMode=At.IN_TABLE,ju(se,fe));break}case Xe.BODY:case Xe.CAPTION:case Xe.COL:case Xe.COLGROUP:case Xe.HTML:case Xe.TD:case Xe.TH:case Xe.TR:break;default:ju(se,fe)}}function ua(se,fe){switch(fe.tagID){case Xe.TH:case Xe.TD:{se.openElements.clearBackToTableRowContext(),se._insertElement(fe,An.HTML),se.insertionMode=At.IN_CELL,se.activeFormattingElements.insertMarker();break}case Xe.CAPTION:case Xe.COL:case Xe.COLGROUP:case Xe.TBODY:case Xe.TFOOT:case Xe.THEAD:case Xe.TR:{se.openElements.hasInTableScope(Xe.TR)&&(se.openElements.clearBackToTableRowContext(),se.openElements.pop(),se.insertionMode=At.IN_TABLE_BODY,Du(se,fe));break}default:oc(se,fe)}}function Ql(se,fe){switch(fe.tagID){case Xe.TR:{se.openElements.hasInTableScope(Xe.TR)&&(se.openElements.clearBackToTableRowContext(),se.openElements.pop(),se.insertionMode=At.IN_TABLE_BODY);break}case Xe.TABLE:{se.openElements.hasInTableScope(Xe.TR)&&(se.openElements.clearBackToTableRowContext(),se.openElements.pop(),se.insertionMode=At.IN_TABLE_BODY,ml(se,fe));break}case Xe.TBODY:case Xe.TFOOT:case Xe.THEAD:{(se.openElements.hasInTableScope(fe.tagID)||se.openElements.hasInTableScope(Xe.TR))&&(se.openElements.clearBackToTableRowContext(),se.openElements.pop(),se.insertionMode=At.IN_TABLE_BODY,ml(se,fe));break}case Xe.BODY:case Xe.CAPTION:case Xe.COL:case Xe.COLGROUP:case Xe.HTML:case Xe.TD:case Xe.TH:break;default:ju(se,fe)}}function Jl(se,fe){const je=fe.tagID;Cu.has(je)?(se.openElements.hasInTableScope(Xe.TD)||se.openElements.hasInTableScope(Xe.TH))&&(se._closeTableCell(),ua(se,fe)):al(se,fe)}function el(se,fe){const je=fe.tagID;switch(je){case Xe.TD:case Xe.TH:{se.openElements.hasInTableScope(je)&&(se.openElements.generateImpliedEndTags(),se.openElements.popUntilTagNamePopped(je),se.activeFormattingElements.clearToLastMarker(),se.insertionMode=At.IN_ROW);break}case Xe.TABLE:case Xe.TBODY:case Xe.TFOOT:case Xe.THEAD:case Xe.TR:{se.openElements.hasInTableScope(je)&&(se._closeTableCell(),Ql(se,fe));break}case Xe.BODY:case Xe.CAPTION:case Xe.COL:case Xe.COLGROUP:case Xe.HTML:break;default:yl(se,fe)}}function ns(se,fe){switch(fe.tagID){case Xe.HTML:{al(se,fe);break}case Xe.OPTION:{se.openElements.currentTagId===Xe.OPTION&&se.openElements.pop(),se._insertElement(fe,An.HTML);break}case Xe.OPTGROUP:{se.openElements.currentTagId===Xe.OPTION&&se.openElements.pop(),se.openElements.currentTagId===Xe.OPTGROUP&&se.openElements.pop(),se._insertElement(fe,An.HTML);break}case Xe.INPUT:case Xe.KEYGEN:case Xe.TEXTAREA:case Xe.SELECT:{se.openElements.hasInSelectScope(Xe.SELECT)&&(se.openElements.popUntilTagNamePopped(Xe.SELECT),se._resetInsertionMode(),fe.tagID!==Xe.SELECT&&se._processStartTag(fe));break}case Xe.SCRIPT:case Xe.TEMPLATE:{sn(se,fe);break}default:}}function Nl(se,fe){switch(fe.tagID){case Xe.OPTGROUP:{se.openElements.stackTop>0&&se.openElements.currentTagId===Xe.OPTION&&se.openElements.tagIDs[se.openElements.stackTop-1]===Xe.OPTGROUP&&se.openElements.pop(),se.openElements.currentTagId===Xe.OPTGROUP&&se.openElements.pop();break}case Xe.OPTION:{se.openElements.currentTagId===Xe.OPTION&&se.openElements.pop();break}case Xe.SELECT:{se.openElements.hasInSelectScope(Xe.SELECT)&&(se.openElements.popUntilTagNamePopped(Xe.SELECT),se._resetInsertionMode());break}case Xe.TEMPLATE:{Vr(se,fe);break}default:}}function Au(se,fe){const je=fe.tagID;je===Xe.CAPTION||je===Xe.TABLE||je===Xe.TBODY||je===Xe.TFOOT||je===Xe.THEAD||je===Xe.TR||je===Xe.TD||je===Xe.TH?(se.openElements.popUntilTagNamePopped(Xe.SELECT),se._resetInsertionMode(),se._processStartTag(fe)):ns(se,fe)}function ll(se,fe){const je=fe.tagID;je===Xe.CAPTION||je===Xe.TABLE||je===Xe.TBODY||je===Xe.TFOOT||je===Xe.THEAD||je===Xe.TR||je===Xe.TD||je===Xe.TH?se.openElements.hasInTableScope(je)&&(se.openElements.popUntilTagNamePopped(Xe.SELECT),se._resetInsertionMode(),se.onEndTag(fe)):Nl(se,fe)}function uu(se,fe){switch(fe.tagID){case Xe.BASE:case Xe.BASEFONT:case Xe.BGSOUND:case Xe.LINK:case Xe.META:case Xe.NOFRAMES:case Xe.SCRIPT:case Xe.STYLE:case Xe.TEMPLATE:case Xe.TITLE:{sn(se,fe);break}case Xe.CAPTION:case Xe.COLGROUP:case Xe.TBODY:case Xe.TFOOT:case Xe.THEAD:{se.tmplInsertionModeStack[0]=At.IN_TABLE,se.insertionMode=At.IN_TABLE,oc(se,fe);break}case Xe.COL:{se.tmplInsertionModeStack[0]=At.IN_COLUMN_GROUP,se.insertionMode=At.IN_COLUMN_GROUP,yu(se,fe);break}case Xe.TR:{se.tmplInsertionModeStack[0]=At.IN_TABLE_BODY,se.insertionMode=At.IN_TABLE_BODY,Du(se,fe);break}case Xe.TD:case Xe.TH:{se.tmplInsertionModeStack[0]=At.IN_ROW,se.insertionMode=At.IN_ROW,ua(se,fe);break}default:se.tmplInsertionModeStack[0]=At.IN_BODY,se.insertionMode=At.IN_BODY,al(se,fe)}}function $l(se,fe){fe.tagID===Xe.TEMPLATE&&Vr(se,fe)}function ac(se,fe){se.openElements.tmplCount>0?(se.openElements.popUntilTagNamePopped(Xe.TEMPLATE),se.activeFormattingElements.clearToLastMarker(),se.tmplInsertionModeStack.shift(),se._resetInsertionMode(),se.onEof(fe)):Sa(se,fe)}function ks(se,fe){fe.tagID===Xe.HTML?al(se,fe):ys(se,fe)}function tu(se,fe){var je;if(fe.tagID===Xe.HTML){if(se.fragmentContext||(se.insertionMode=At.AFTER_AFTER_BODY),se.options.sourceCodeLocationInfo&&se.openElements.tagIDs[0]===Xe.HTML){se._setEndLocation(se.openElements.items[0],fe);const St=se.openElements.items[1];St&&!(!((je=se.treeAdapter.getNodeSourceCodeLocation(St))===null||je===void 0)&&je.endTag)&&se._setEndLocation(St,fe)}}else ys(se,fe)}function ys(se,fe){se.insertionMode=At.IN_BODY,Zs(se,fe)}function Js(se,fe){switch(fe.tagID){case Xe.HTML:{al(se,fe);break}case Xe.FRAMESET:{se._insertElement(fe,An.HTML);break}case Xe.FRAME:{se._appendElement(fe,An.HTML),fe.ackSelfClosing=!0;break}case Xe.NOFRAMES:{sn(se,fe);break}default:}}function ul(se,fe){fe.tagID===Xe.FRAMESET&&!se.openElements.isRootHtmlElementCurrent()&&(se.openElements.pop(),!se.fragmentContext&&se.openElements.currentTagId!==Xe.FRAMESET&&(se.insertionMode=At.AFTER_FRAMESET))}function Sl(se,fe){switch(fe.tagID){case Xe.HTML:{al(se,fe);break}case Xe.NOFRAMES:{sn(se,fe);break}default:}}function Fs(se,fe){fe.tagID===Xe.HTML&&(se.insertionMode=At.AFTER_AFTER_FRAMESET)}function wc(se,fe){fe.tagID===Xe.HTML?al(se,fe):Ti(se,fe)}function Ti(se,fe){se.insertionMode=At.IN_BODY,Zs(se,fe)}function Cc(se,fe){switch(fe.tagID){case Xe.HTML:{al(se,fe);break}case Xe.NOFRAMES:{sn(se,fe);break}default:}}function ms(se,fe){fe.chars=pt,se._insertCharacters(fe)}function Id(se,fe){se._insertCharacters(fe),se.framesetOk=!1}function sc(se){for(;se.treeAdapter.getNamespaceURI(se.openElements.current)!==An.HTML&&!se._isIntegrationPoint(se.openElements.currentTagId,se.openElements.current);)se.openElements.pop()}function Zc(se,fe){if(Ta(fe))sc(se),se._startTagOutsideForeignContent(fe);else{const je=se._getAdjustedCurrentElement(),St=se.treeAdapter.getNamespaceURI(je);St===An.MATHML?lo(fe):St===An.SVG&&(Ka(fe),oa(fe)),fa(fe),fe.selfClosing?se._appendElement(fe,St):se._insertElement(fe,St),fe.ackSelfClosing=!0}}function gd(se,fe){if(fe.tagID===Xe.P||fe.tagID===Xe.BR){sc(se),se._endTagOutsideForeignContent(fe);return}for(let je=se.openElements.stackTop;je>0;je--){const St=se.openElements.items[je];if(se.treeAdapter.getNamespaceURI(St)===An.HTML){se._endTagOutsideForeignContent(fe);break}const Yt=se.treeAdapter.getTagName(St);if(Yt.toLowerCase()===fe.tagName){fe.tagName=Yt,se.openElements.shortenToLength(je);break}}}const Gu=/["&'<>$\x80-\uFFFF]/g,pc=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),gc=String.prototype.codePointAt!=null?(se,fe)=>se.codePointAt(fe):(se,fe)=>(se.charCodeAt(fe)&64512)===55296?(se.charCodeAt(fe)-55296)*1024+se.charCodeAt(fe+1)-56320+65536:se.charCodeAt(fe);function Do(se){let fe="",je=0,St;for(;(St=Gu.exec(se))!==null;){const Yt=St.index,mn=se.charCodeAt(Yt),wn=pc.get(mn);wn!==void 0?(fe+=se.substring(je,Yt)+wn,je=Yt+1):(fe+=`${se.substring(je,Yt)}&#x${gc(se,Yt).toString(16)};`,je=Gu.lastIndex+=+((mn&64512)===55296))}return fe+se.substr(je)}const Pu=null;function kt(se,fe){return function(St){let Yt,mn=0,wn="";for(;Yt=se.exec(St);)mn!==Yt.index&&(wn+=St.substring(mn,Yt.index)),wn+=fe.get(Yt[0].charCodeAt(0)),mn=Yt.index+1;return wn+St.substring(mn)}}const en=kt(/[&<>'"]/g,pc),cn=kt(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),hn=kt(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),Dn=new Set([bn.AREA,bn.BASE,bn.BASEFONT,bn.BGSOUND,bn.BR,bn.COL,bn.EMBED,bn.FRAME,bn.HR,bn.IMG,bn.INPUT,bn.KEYGEN,bn.LINK,bn.META,bn.PARAM,bn.SOURCE,bn.TRACK,bn.WBR]);function qn(se,fe){return fe.treeAdapter.isElementNode(se)&&fe.treeAdapter.getNamespaceURI(se)===NS.HTML&&Dn.has(fe.treeAdapter.getTagName(se))}const lr={treeAdapter:ji,scriptingEnabled:!0};function Pr(se,fe){const je=Uu(Uu({},lr),fe);return qn(se,je)?"":Br(se,je)}function Kr(se,fe){const je=Uu(Uu({},lr),fe);return Si(se,je)}function Br(se,fe){let je="";const St=fe.treeAdapter.isElementNode(se)&&fe.treeAdapter.getTagName(se)===$.TEMPLATE&&fe.treeAdapter.getNamespaceURI(se)===NS.HTML?fe.treeAdapter.getTemplateContent(se):se,Yt=fe.treeAdapter.getChildNodes(St);if(Yt)for(const mn of Yt)je+=Si(mn,fe);return je}function Si(se,fe){return fe.treeAdapter.isElementNode(se)?Gr(se,fe):fe.treeAdapter.isTextNode(se)?$r(se,fe):fe.treeAdapter.isCommentNode(se)?Ii(se,fe):fe.treeAdapter.isDocumentTypeNode(se)?co(se,fe):""}function Gr(se,fe){const je=fe.treeAdapter.getTagName(se);return`<${je}${li(se,fe)}>${qn(se,fe)?"":`${Br(se,fe)}</${je}>`}`}function li(se,{treeAdapter:fe}){let je="";for(const St of fe.getAttrList(se)){if(je+=" ",!St.namespace)je+=St.name;else switch(St.namespace){case NS.XML:{je+=`xml:${St.name}`;break}case NS.XMLNS:{St.name!=="xmlns"&&(je+="xmlns:"),je+=St.name;break}case NS.XLINK:{je+=`xlink:${St.name}`;break}default:je+=`${St.prefix}:${St.name}`}je+=`="${escapeAttribute(St.value)}"`}return je}function $r(se,fe){const{treeAdapter:je}=fe,St=je.getTextNodeContent(se),Yt=je.getParentNode(se),mn=Yt&&je.isElementNode(Yt)&&je.getTagName(Yt);return mn&&je.getNamespaceURI(Yt)===NS.HTML&&hasUnescapedText(mn,fe.scriptingEnabled)?St:escapeText(St)}function Ii(se,{treeAdapter:fe}){return`<!--${fe.getCommentNodeContent(se)}-->`}function co(se,{treeAdapter:fe}){return`<!DOCTYPE ${fe.getDocumentTypeNodeName(se)}>`}function To(se,fe){return Parser.parse(se,fe)}function ra(se,fe,je){typeof se=="string"&&(je=fe,fe=se,se=null);const St=Parser.getFragmentParser(se,je);return St.tokenizer.write(fe,!0),St.getFragment()}var Mi=ae(3980),bo=ae(21623);const ro=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,ea=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Ia={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Vo(se,fe){const je=ot(se),St=be("type",{handlers:{root:Ma,element:qa,text:Le,comment:Te,doctype:nt,raw:ze},unknown:Qe}),Yt={parser:je?new En(Ia):En.getFragmentParser(void 0,Ia),handle(On){St(On,Yt)},stitches:!1,options:fe||{}};St(se,Yt),mt(Yt,(0,Mi.Pk)());const mn=je?Yt.parser.document:Yt.parser.getFragment(),wn=Et(mn,{file:Yt.options.file});return Yt.stitches&&(0,bo.Vn)(wn,"comment",function(On,Tn,br){const Wr=On;if(Wr.value.stitch&&br&&Tn!==void 0){const di=br.children;return di[Tn]=Wr.value.stitch,Tn}}),wn.type==="root"&&wn.children.length===1&&wn.children[0].type===se.type?wn.children[0]:wn}function ss(se,fe){let je=-1;if(se)for(;++je<se.length;)fe.handle(se[je])}function Ma(se,fe){ss(se.children,fe)}function qa(se,fe){De(se,fe),ss(se.children,fe),qe(se,fe)}function Le(se,fe){fe.parser.tokenizer.state>4&&(fe.parser.tokenizer.state=0);const je={type:tn.CHARACTER,chars:se.value,location:Lt(se)};mt(fe,(0,Mi.Pk)(se)),fe.parser.currentToken=je,fe.parser._processToken(fe.parser.currentToken)}function nt(se,fe){const je={type:tn.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Lt(se)};mt(fe,(0,Mi.Pk)(se)),fe.parser.currentToken=je,fe.parser._processToken(fe.parser.currentToken)}function Se(se,fe){fe.stitches=!0;const je=Ut(se);if("children"in se&&"children"in je){const St=Vo({type:"root",children:se.children},fe.options);je.children=St.children}Te({type:"comment",value:{stitch:je}},fe)}function Te(se,fe){const je=se.value,St={type:tn.COMMENT,data:je,location:Lt(se)};mt(fe,(0,Mi.Pk)(se)),fe.parser.currentToken=St,fe.parser._processToken(fe.parser.currentToken)}function ze(se,fe){if(fe.parser.tokenizer.preprocessor.html="",fe.parser.tokenizer.preprocessor.pos=-1,fe.parser.tokenizer.preprocessor.lastGapPos=-2,fe.parser.tokenizer.preprocessor.gapStack=[],fe.parser.tokenizer.preprocessor.skipNextNewLine=!1,fe.parser.tokenizer.preprocessor.lastChunkWritten=!1,fe.parser.tokenizer.preprocessor.endOfChunkHit=!1,fe.parser.tokenizer.preprocessor.isEol=!1,Ae(fe,(0,Mi.Pk)(se)),fe.parser.tokenizer.write(fe.options.tagfilter?se.value.replace(ro,"<$1$2"):se.value,!1),fe.parser.tokenizer._runParsingLoop(),fe.parser.tokenizer.state===72||fe.parser.tokenizer.state===78){fe.parser.tokenizer.preprocessor.lastChunkWritten=!0;const je=fe.parser.tokenizer._consume();fe.parser.tokenizer._callState(je)}}function Qe(se,fe){const je=se;if(fe.options.passThrough&&fe.options.passThrough.includes(je.type))Se(je,fe);else{let St="";throw ea.has(je.type)&&(St=". 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 `"+je.type+"` node"+St)}}function mt(se,fe){Ae(se,fe);const je=se.parser.tokenizer.currentCharacterToken;je&&je.location&&(je.location.endLine=se.parser.tokenizer.preprocessor.line,je.location.endCol=se.parser.tokenizer.preprocessor.col+1,je.location.endOffset=se.parser.tokenizer.preprocessor.offset+1,se.parser.currentToken=je,se.parser._processToken(se.parser.currentToken)),se.parser.tokenizer.paused=!1,se.parser.tokenizer.inLoop=!1,se.parser.tokenizer.active=!1,se.parser.tokenizer.returnState=Hi.DATA,se.parser.tokenizer.charRefCode=-1,se.parser.tokenizer.consumedAfterSnapshot=-1,se.parser.tokenizer.currentLocation=null,se.parser.tokenizer.currentCharacterToken=null,se.parser.tokenizer.currentToken=null,se.parser.tokenizer.currentAttr={name:"",value:""}}function Ae(se,fe){if(fe&&fe.offset!==void 0){const je={startLine:fe.line,startCol:fe.column,startOffset:fe.offset,endLine:-1,endCol:-1,endOffset:-1};se.parser.tokenizer.preprocessor.lineStartPos=-fe.column+1,se.parser.tokenizer.preprocessor.droppedBufferSize=fe.offset,se.parser.tokenizer.preprocessor.line=fe.line,se.parser.tokenizer.currentLocation=je}}function De(se,fe){const je=se.tagName.toLowerCase();if(fe.parser.tokenizer.state===Hi.PLAINTEXT)return;mt(fe,(0,Mi.Pk)(se));const St=fe.parser.openElements.current;let Yt="namespaceURI"in St?St.namespaceURI:ut.t.html;Yt===ut.t.html&&je==="svg"&&(Yt=ut.t.svg);const mn=gt(eg(Uu({},se),{children:[]}),{space:Yt===ut.t.svg?"svg":"html"}),wn={type:tn.START_TAG,tagName:je,tagID:Qn(je),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in mn?mn.attrs:[],location:Lt(se)};fe.parser.currentToken=wn,fe.parser._processToken(fe.parser.currentToken),fe.parser.tokenizer.lastStartTagName=je}function qe(se,fe){const je=se.tagName.toLowerCase();if(!fe.parser.tokenizer.inForeignNode&&Nn.includes(je)||fe.parser.tokenizer.state===Hi.PLAINTEXT)return;mt(fe,(0,Mi.rb)(se));const St={type:tn.END_TAG,tagName:je,tagID:Qn(je),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Lt(se)};fe.parser.currentToken=St,fe.parser._processToken(fe.parser.currentToken),je===fe.parser.tokenizer.lastStartTagName&&(fe.parser.tokenizer.state===Hi.RCDATA||fe.parser.tokenizer.state===Hi.RAWTEXT||fe.parser.tokenizer.state===Hi.SCRIPT_DATA)&&(fe.parser.tokenizer.state=Hi.DATA)}function ot(se){const fe=se.type==="root"?se.children[0]:se;return!!(fe&&(fe.type==="doctype"||fe.type==="element"&&fe.tagName.toLowerCase()==="html"))}function Lt(se){const fe=(0,Mi.Pk)(se)||{line:void 0,column:void 0,offset:void 0},je=(0,Mi.rb)(se)||{line:void 0,column:void 0,offset:void 0};return{startLine:fe.line,startCol:fe.column,startOffset:fe.offset,endLine:je.line,endCol:je.column,endOffset:je.offset}}function Ut(se){return"children"in se?(0,ie.ZP)(eg(Uu({},se),{children:[]})):(0,ie.ZP)(se)}function jt(se){return function(fe,je){return Vo(fe,eg(Uu({},se),{file:je}))}}},67127:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return lt}});function ie(Et){if(typeof Et!="string")throw new TypeError("Expected a string");return Et.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Pe=ae(88718),Fe=ae(96093);function Oe(Et,rt,_t){const Ge=_t||{},te=(0,Fe.O)(Ge.ignore||[]),ee=tt(rt);let de=-1;for(;++de<ee.length;)(0,Pe.S4)(Et,"text",le);function le(me,xe){let be=-1,Be;for(;++be<xe.length;){const at=xe[be],dt=Be?Be.children:void 0;if(te(at,dt?dt.indexOf(at):void 0,Be))return;Be=at}if(Be)return pe(me,xe)}function pe(me,xe){const be=xe[xe.length-1],Be=ee[de][0],at=ee[de][1];let dt=0;const ft=be.children.indexOf(me);let Nt=!1,Tt=[];Be.lastIndex=0;let Ct=Be.exec(me.value);for(;Ct;){const Vt=Ct.index,Rt={index:Ct.index,input:Ct.input,stack:[...xe,me]};let nn=at(...Ct,Rt);if(typeof nn=="string"&&(nn=nn.length>0?{type:"text",value:nn}:void 0),nn===!1?Be.lastIndex=Vt+1:(dt!==Vt&&Tt.push({type:"text",value:me.value.slice(dt,Vt)}),Array.isArray(nn)?Tt.push(...nn):nn&&Tt.push(nn),dt=Vt+Ct[0].length,Nt=!0),!Be.global)break;Ct=Be.exec(me.value)}return Nt?(dt<me.value.length&&Tt.push({type:"text",value:me.value.slice(dt)}),be.children.splice(ft,1,...Tt)):Tt=[me],ft+Tt.length}}function tt(Et){const rt=[];if(!Array.isArray(Et))throw new TypeError("Expected find and replace tuple or list of tuples");const _t=!Et[0]||Array.isArray(Et[0])?Et:[Et];let Ge=-1;for(;++Ge<_t.length;){const te=_t[Ge];rt.push([Me(te[0]),_e(te[1])])}return rt}function Me(Et){return typeof Et=="string"?new RegExp(ie(Et),"g"):Et}function _e(Et){return typeof Et=="function"?Et:function(){return Et}}function ut(Et){Oe(Et,[/\r?\n|\r/g,et])}function et(){return{type:"break"}}function lt(){return function(Et){ut(Et)}}},41807:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return ee}});var ie=ae(24345);function Pe(de,le){const pe=String(de);let me=pe.indexOf(le),xe=me,be=0,Be=0;if(typeof le!="string")throw new TypeError("Expected substring");for(;me!==-1;)me===xe?++be>Be&&(Be=be):be=1,xe=me+le.length,me=pe.indexOf(le,xe);return Be}function Fe(){return{enter:{mathFlow:de,mathFlowFenceMeta:le,mathText:be},exit:{mathFlow:xe,mathFlowFence:me,mathFlowFenceMeta:pe,mathFlowValue:at,mathText:Be,mathTextData:at}};function de(dt){const gt={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[gt]}},dt)}function le(){this.buffer()}function pe(){const dt=this.resume(),gt=this.stack[this.stack.length-1];(0,ie.ok)(gt.type==="math"),gt.meta=dt}function me(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function xe(dt){const gt=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),ft=this.stack[this.stack.length-1];(0,ie.ok)(ft.type==="math"),this.exit(dt),ft.value=gt;const Nt=ft.data.hChildren[0];(0,ie.ok)(Nt.type==="element"),(0,ie.ok)(Nt.tagName==="code"),Nt.children.push({type:"text",value:gt}),this.data.mathFlowInside=void 0}function be(dt){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},dt),this.buffer()}function Be(dt){const gt=this.resume(),ft=this.stack[this.stack.length-1];(0,ie.ok)(ft.type==="inlineMath"),this.exit(dt),ft.value=gt,ft.data.hChildren.push({type:"text",value:gt})}function at(dt){this.config.enter.data.call(this,dt),this.config.exit.data.call(this,dt)}}function Oe(de){let le=(de||{}).singleDollarTextMath;return le==null&&(le=!0),me.peek=xe,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
|
`,inConstruct:"mathFlowMeta"},{character:"$",after:le?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:pe,inlineMath:me}};function pe(be,Be,at,dt){const gt=be.value||"",ft=at.createTracker(dt),Nt="$".repeat(Math.max(Pe(gt,"$")+1,2)),Tt=at.enter("mathFlow");let Ct=ft.move(Nt);if(be.meta){const Vt=at.enter("mathFlowMeta");Ct+=ft.move(at.safe(be.meta,Uu({after:`
|
|
|
`,before:Ct,encode:["$"]},ft.current()))),Vt()}return Ct+=ft.move(`
|
|
|
`),gt&&(Ct+=ft.move(gt+`
|
|
|
`)),Ct+=ft.move(Nt),Tt(),Ct}function me(be,Be,at){let dt=be.value||"",gt=1;for(le||gt++;new RegExp("(^|[^$])"+"\\$".repeat(gt)+"([^$]|$)").test(dt);)gt++;const ft="$".repeat(gt);/[^ \r\n]/.test(dt)&&(/^[ \r\n]/.test(dt)&&/[ \r\n]$/.test(dt)||/^\$|\$$/.test(dt))&&(dt=" "+dt+" ");let Nt=-1;for(;++Nt<at.unsafe.length;){const Tt=at.unsafe[Nt];if(!Tt.atBreak)continue;const Ct=at.compilePattern(Tt);let Vt;for(;Vt=Ct.exec(dt);){let Rt=Vt.index;dt.codePointAt(Rt)===10&&dt.codePointAt(Rt-1)===13&&Rt--,dt=dt.slice(0,Rt)+" "+dt.slice(Vt.index+1)}}return ft+dt+ft}function xe(){return"$"}}var tt=ae(42761),Me=ae(15459);const _e={tokenize:et,concrete:!0,name:"mathFlow"},ut={tokenize:lt,partial:!0};function et(de,le,pe){const me=this,xe=me.events[me.events.length-1],be=xe&&xe[1].type==="linePrefix"?xe[2].sliceSerialize(xe[1],!0).length:0;let Be=0;return at;function at(un){return de.enter("mathFlow"),de.enter("mathFlowFence"),de.enter("mathFlowFenceSequence"),dt(un)}function dt(un){return un===36?(de.consume(un),Be++,dt):Be<2?pe(un):(de.exit("mathFlowFenceSequence"),(0,tt.f)(de,gt,"whitespace")(un))}function gt(un){return un===null||(0,Me.Ch)(un)?Nt(un):(de.enter("mathFlowFenceMeta"),de.enter("chunkString",{contentType:"string"}),ft(un))}function ft(un){return un===null||(0,Me.Ch)(un)?(de.exit("chunkString"),de.exit("mathFlowFenceMeta"),Nt(un)):un===36?pe(un):(de.consume(un),ft)}function Nt(un){return de.exit("mathFlowFence"),me.interrupt?le(un):de.attempt(ut,Tt,nn)(un)}function Tt(un){return de.attempt({tokenize:Cn,partial:!0},nn,Ct)(un)}function Ct(un){return(be?(0,tt.f)(de,Vt,"linePrefix",be+1):Vt)(un)}function Vt(un){return un===null?nn(un):(0,Me.Ch)(un)?de.attempt(ut,Tt,nn)(un):(de.enter("mathFlowValue"),Rt(un))}function Rt(un){return un===null||(0,Me.Ch)(un)?(de.exit("mathFlowValue"),Vt(un)):(de.consume(un),Rt)}function nn(un){return de.exit("mathFlow"),le(un)}function Cn(un,Nn,wt){let pt=0;return(0,tt.f)(un,Ie,"linePrefix",me.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function Ie(Zt){return un.enter("mathFlowFence"),un.enter("mathFlowFenceSequence"),on(Zt)}function on(Zt){return Zt===36?(pt++,un.consume(Zt),on):pt<Be?wt(Zt):(un.exit("mathFlowFenceSequence"),(0,tt.f)(un,Bn,"whitespace")(Zt))}function Bn(Zt){return Zt===null||(0,Me.Ch)(Zt)?(un.exit("mathFlowFence"),Nn(Zt)):wt(Zt)}}}function lt(de,le,pe){const me=this;return xe;function xe(Be){return Be===null?le(Be):(de.enter("lineEnding"),de.consume(Be),de.exit("lineEnding"),be)}function be(Be){return me.parser.lazy[me.now().line]?pe(Be):le(Be)}}function Et(de){let pe=(de||{}).singleDollarTextMath;return pe==null&&(pe=!0),{tokenize:me,resolve:rt,previous:_t,name:"mathText"};function me(xe,be,Be){const at=this;let dt=0,gt,ft;return Nt;function Nt(nn){return xe.enter("mathText"),xe.enter("mathTextSequence"),Tt(nn)}function Tt(nn){return nn===36?(xe.consume(nn),dt++,Tt):dt<2&&!pe?Be(nn):(xe.exit("mathTextSequence"),Ct(nn))}function Ct(nn){return nn===null?Be(nn):nn===36?(ft=xe.enter("mathTextSequence"),gt=0,Rt(nn)):nn===32?(xe.enter("space"),xe.consume(nn),xe.exit("space"),Ct):(0,Me.Ch)(nn)?(xe.enter("lineEnding"),xe.consume(nn),xe.exit("lineEnding"),Ct):(xe.enter("mathTextData"),Vt(nn))}function Vt(nn){return nn===null||nn===32||nn===36||(0,Me.Ch)(nn)?(xe.exit("mathTextData"),Ct(nn)):(xe.consume(nn),Vt)}function Rt(nn){return nn===36?(xe.consume(nn),gt++,Rt):gt===dt?(xe.exit("mathTextSequence"),xe.exit("mathText"),be(nn)):(ft.type="mathTextData",Vt(nn))}}}function rt(de){let le=de.length-4,pe=3,me,xe;if((de[pe][1].type==="lineEnding"||de[pe][1].type==="space")&&(de[le][1].type==="lineEnding"||de[le][1].type==="space")){for(me=pe;++me<le;)if(de[me][1].type==="mathTextData"){de[le][1].type="mathTextPadding",de[pe][1].type="mathTextPadding",pe+=2,le-=2;break}}for(me=pe-1,le++;++me<=le;)xe===void 0?me!==le&&de[me][1].type!=="lineEnding"&&(xe=me):(me===le||de[me][1].type==="lineEnding")&&(de[xe][1].type="mathTextData",me!==xe+2&&(de[xe][1].end=de[me-1][1].end,de.splice(xe+2,me-xe-2),le-=me-xe-2,me=xe+2),xe=void 0);return de}function _t(de){return de!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Ge(de){return{flow:{36:_e},text:{36:Et(de)}}}const te={};function ee(de){const le=this,pe=de||te,me=le.data(),xe=me.micromarkExtensions||(me.micromarkExtensions=[]),be=me.fromMarkdownExtensions||(me.fromMarkdownExtensions=[]),Be=me.toMarkdownExtensions||(me.toMarkdownExtensions=[]);xe.push(Ge(pe)),be.push(Fe()),Be.push(Oe(pe))}},17423:function(Ke,we,ae){"use strict";ae.d(we,{Z:function(){return ut}});const ie=et=>typeof et=="object"&&et!=null&&et.nodeType===1,Pe=(et,lt)=>(!lt||et!=="hidden")&&et!=="visible"&&et!=="clip",Fe=(et,lt)=>{if(et.clientHeight<et.scrollHeight||et.clientWidth<et.scrollWidth){const Et=getComputedStyle(et,null);return Pe(Et.overflowY,lt)||Pe(Et.overflowX,lt)||(rt=>{const _t=(Ge=>{if(!Ge.ownerDocument||!Ge.ownerDocument.defaultView)return null;try{return Ge.ownerDocument.defaultView.frameElement}catch(te){return null}})(rt);return!!_t&&(_t.clientHeight<rt.scrollHeight||_t.clientWidth<rt.scrollWidth)})(et)}return!1},Oe=(et,lt,Et,rt,_t,Ge,te,ee)=>Ge<et&&te>lt||Ge>et&&te<lt?0:Ge<=et&&ee<=Et||te>=lt&&ee>=Et?Ge-et-rt:te>lt&&ee<Et||Ge<et&&ee>Et?te-lt+_t:0,tt=et=>{const lt=et.parentElement;return lt==null?et.getRootNode().host||null:lt},Me=(et,lt)=>{var Et,rt,_t,Ge;if(typeof document=="undefined")return[];const{scrollMode:te,block:ee,inline:de,boundary:le,skipOverflowHiddenElements:pe}=lt,me=typeof le=="function"?le:Bn=>Bn!==le;if(!ie(et))throw new TypeError("Invalid target");const xe=document.scrollingElement||document.documentElement,be=[];let Be=et;for(;ie(Be)&&me(Be);){if(Be=tt(Be),Be===xe){be.push(Be);break}Be!=null&&Be===document.body&&Fe(Be)&&!Fe(document.documentElement)||Be!=null&&Fe(Be,pe)&&be.push(Be)}const at=(rt=(Et=window.visualViewport)==null?void 0:Et.width)!=null?rt:innerWidth,dt=(Ge=(_t=window.visualViewport)==null?void 0:_t.height)!=null?Ge:innerHeight,{scrollX:gt,scrollY:ft}=window,{height:Nt,width:Tt,top:Ct,right:Vt,bottom:Rt,left:nn}=et.getBoundingClientRect(),{top:Cn,right:un,bottom:Nn,left:wt}=(Bn=>{const Zt=window.getComputedStyle(Bn);return{top:parseFloat(Zt.scrollMarginTop)||0,right:parseFloat(Zt.scrollMarginRight)||0,bottom:parseFloat(Zt.scrollMarginBottom)||0,left:parseFloat(Zt.scrollMarginLeft)||0}})(et);let pt=ee==="start"||ee==="nearest"?Ct-Cn:ee==="end"?Rt+Nn:Ct+Nt/2-Cn+Nn,Ie=de==="center"?nn+Tt/2-wt+un:de==="end"?Vt+un:nn-wt;const on=[];for(let Bn=0;Bn<be.length;Bn++){const Zt=be[Bn],{height:zn,width:_n,top:nr,right:Ft,bottom:Wt,left:ht}=Zt.getBoundingClientRect();if(te==="if-needed"&&Ct>=0&&nn>=0&&Rt<=dt&&Vt<=at&&Ct>=nr&&Rt<=Wt&&nn>=ht&&Vt<=Ft)return on;const tn=getComputedStyle(Zt),an=parseInt(tn.borderLeftWidth,10),ct=parseInt(tn.borderTopWidth,10),Ue=parseInt(tn.borderRightWidth,10),He=parseInt(tn.borderBottomWidth,10);let it=0,vt=0;const Ye="offsetWidth"in Zt?Zt.offsetWidth-Zt.clientWidth-an-Ue:0,It="offsetHeight"in Zt?Zt.offsetHeight-Zt.clientHeight-ct-He:0,In="offsetWidth"in Zt?Zt.offsetWidth===0?0:_n/Zt.offsetWidth:0,Kn="offsetHeight"in Zt?Zt.offsetHeight===0?0:zn/Zt.offsetHeight:0;if(xe===Zt)it=ee==="start"?pt:ee==="end"?pt-dt:ee==="nearest"?Oe(ft,ft+dt,dt,ct,He,ft+pt,ft+pt+Nt,Nt):pt-dt/2,vt=de==="start"?Ie:de==="center"?Ie-at/2:de==="end"?Ie-at:Oe(gt,gt+at,at,an,Ue,gt+Ie,gt+Ie+Tt,Tt),it=Math.max(0,it+ft),vt=Math.max(0,vt+gt);else{it=ee==="start"?pt-nr-ct:ee==="end"?pt-Wt+He+It:ee==="nearest"?Oe(nr,Wt,zn,ct,He+It,pt,pt+Nt,Nt):pt-(nr+zn/2)+It/2,vt=de==="start"?Ie-ht-an:de==="center"?Ie-(ht+_n/2)+Ye/2:de==="end"?Ie-Ft+Ue+Ye:Oe(ht,Ft,_n,an,Ue+Ye,Ie,Ie+Tt,Tt);const{scrollLeft:dr,scrollTop:Rn}=Zt;it=Kn===0?0:Math.max(0,Math.min(Rn+it/Kn,Zt.scrollHeight-zn/Kn+It)),vt=In===0?0:Math.max(0,Math.min(dr+vt/In,Zt.scrollWidth-_n/In+Ye)),pt+=Rn-it,Ie+=dr-vt}on.push({el:Zt,top:it,left:vt})}return on},_e=et=>et===!1?{block:"end",inline:"nearest"}:(lt=>lt===Object(lt)&&Object.keys(lt).length!==0)(et)?et:{block:"start",inline:"nearest"};function ut(et,lt){if(!et.isConnected||!(_t=>{let Ge=_t;for(;Ge&&Ge.parentNode;){if(Ge.parentNode===document)return!0;Ge=Ge.parentNode instanceof ShadowRoot?Ge.parentNode.host:Ge.parentNode}return!1})(et))return;const Et=(_t=>{const Ge=window.getComputedStyle(_t);return{top:parseFloat(Ge.scrollMarginTop)||0,right:parseFloat(Ge.scrollMarginRight)||0,bottom:parseFloat(Ge.scrollMarginBottom)||0,left:parseFloat(Ge.scrollMarginLeft)||0}})(et);if((_t=>typeof _t=="object"&&typeof _t.behavior=="function")(lt))return lt.behavior(Me(et,lt));const rt=typeof lt=="boolean"||lt==null?void 0:lt.behavior;for(const{el:_t,top:Ge,left:te}of Me(et,_e(lt))){const ee=Ge-Et.top+Et.bottom,de=te-Et.left+Et.right;_t.scroll({top:ee,left:de,behavior:rt})}}},50342:function(Ke,we,ae){"use strict";ae.d(we,{P:function(){return Pe},Q:function(){return ie}});function ie(Fe){const Oe=String(Fe||"").trim();return Oe?Oe.split(/[ \t\n\r\f]+/g):[]}function Pe(Fe){return Fe.join(" ").trim()}},96093:function(Ke,we,ae){"use strict";ae.d(we,{O:function(){return Pe}});const ie=function(et,lt,Et,rt,_t){const Ge=Pe(lt);if(Et!=null&&(typeof Et!="number"||Et<0||Et===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(rt!=null&&(!ie(rt)||!rt.children))throw new Error("Expected parent node");if(rt==null!=(Et==null))throw new Error("Expected both parent and index");return ut(et)?Ge.call(_t,et,Et,rt):!1},Pe=function(et){if(et==null)return _e;if(typeof et=="function")return Me(et);if(typeof et=="object")return Array.isArray(et)?Fe(et):Oe(et);if(typeof et=="string")return tt(et);throw new Error("Expected function, string, or object as test")};function Fe(et){const lt=[];let Et=-1;for(;++Et<et.length;)lt[Et]=Pe(et[Et]);return Me(rt);function rt(..._t){let Ge=-1;for(;++Ge<lt.length;)if(lt[Ge].apply(this,_t))return!0;return!1}}function Oe(et){const lt=et;return Me(Et);function Et(rt){const _t=rt;let Ge;for(Ge in et)if(_t[Ge]!==lt[Ge])return!1;return!0}}function tt(et){return Me(lt);function lt(Et){return Et&&Et.type===et}}function Me(et){return lt;function lt(Et,rt,_t){return!!(ut(Et)&&et.call(this,Et,typeof rt=="number"?rt:void 0,_t||void 0))}}function _e(){return!0}function ut(et){return et!==null&&typeof et=="object"&&"type"in et}},3980:function(Ke,we,ae){"use strict";ae.d(we,{FK:function(){return Oe},Pk:function(){return Pe},rb:function(){return ie}});const ie=Fe("end"),Pe=Fe("start");function Fe(tt){return Me;function Me(_e){const ut=_e&&_e.position&&_e.position[tt]||{};if(typeof ut.line=="number"&&ut.line>0&&typeof ut.column=="number"&&ut.column>0)return{line:ut.line,column:ut.column,offset:typeof ut.offset=="number"&&ut.offset>-1?ut.offset:void 0}}}function Oe(tt){const Me=Pe(tt),_e=ie(tt);if(Me&&_e)return{start:Me,end:_e}}},88718:function(Ke,we,ae){"use strict";ae.d(we,{AM:function(){return Me},S4:function(){return _e}});var ie=ae(96093);function Pe(et){return et}const Fe=[],Oe=!0,tt=!1,Me="skip";function _e(et,lt,Et,rt){let _t;typeof lt=="function"&&typeof Et!="function"?(rt=Et,Et=lt):_t=lt;const Ge=(0,ie.O)(_t),te=rt?-1:1;ee(et,void 0,[])();function ee(de,le,pe){const me=de&&typeof de=="object"?de:{};if(typeof me.type=="string"){const be=typeof me.tagName=="string"?me.tagName:typeof me.name=="string"?me.name:void 0;Object.defineProperty(xe,"name",{value:"node ("+(de.type+(be?"<"+be+">":""))+")"})}return xe;function xe(){let be=Fe,Be,at,dt;if((!lt||Ge(de,le,pe[pe.length-1]||void 0))&&(be=ut(Et(de,pe)),be[0]===tt))return be;if("children"in de&&de.children){const gt=de;if(gt.children&&be[0]!==Me)for(at=(rt?gt.children.length:-1)+te,dt=pe.concat(gt);at>-1&&at<gt.children.length;){const ft=gt.children[at];if(Be=ee(ft,at,dt)(),Be[0]===tt)return Be;at=typeof Be[1]=="number"?Be[1]:at+te}}return be}}}function ut(et){return Array.isArray(et)?et:typeof et=="number"?[Oe,et]:et==null?Fe:[et]}},21623:function(Ke,we,ae){"use strict";ae.d(we,{Vn:function(){return Pe}});var ie=ae(88718);function Pe(Fe,Oe,tt,Me){let _e,ut,et;typeof Oe=="function"&&typeof tt!="function"?(ut=void 0,et=Oe,_e=tt):(ut=Oe,et=tt,_e=Me),(0,ie.S4)(Fe,ut,lt,_e);function lt(Et,rt){const _t=rt[rt.length-1],Ge=_t?_t.children.indexOf(Et):void 0;return et(Et,Ge,_t)}}},49911:function(Ke,we,ae){"use strict";ae.d(we,{t:function(){return ie}});const ie={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/"}},93580:function(Ke){"use strict";Ke.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"}')},21922:function(Ke){"use strict";Ke.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"}')}}]);
|
|
|
}()); |