|
|
(self.webpackChunk=self.webpackChunk||[]).push([[7369],{40001:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return be}});var Qe=Ge(72308),Tt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},_e=oe,Ne=Ge(7657),ve=function(ye,we){return Tt.createElement(Ne.Z,(0,Qe.Z)({},ye,{ref:we,icon:_e}))},fe=Tt.forwardRef(ve),be=fe},26227:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return be}});var Qe=Ge(72308),Tt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},_e=oe,Ne=Ge(7657),ve=function(ye,we){return Tt.createElement(Ne.Z,(0,Qe.Z)({},ye,{ref:we,icon:_e}))},fe=Tt.forwardRef(ve),be=fe},41464:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return be}});var Qe=Ge(72308),Tt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},_e=oe,Ne=Ge(7657),ve=function(ye,we){return Tt.createElement(Ne.Z,(0,Qe.Z)({},ye,{ref:we,icon:_e}))},fe=Tt.forwardRef(ve),be=fe},87169:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return be}});var Qe=Ge(72308),Tt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},_e=oe,Ne=Ge(7657),ve=function(ye,we){return Tt.createElement(Ne.Z,(0,Qe.Z)({},ye,{ref:we,icon:_e}))},fe=Tt.forwardRef(ve),be=fe},73331:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return be}});var Qe=Ge(72308),Tt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},_e=oe,Ne=Ge(7657),ve=function(ye,we){return Tt.createElement(Ne.Z,(0,Qe.Z)({},ye,{ref:we,icon:_e}))},fe=Tt.forwardRef(ve),be=fe},15277:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return be}});var Qe=Ge(72308),Tt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},_e=oe,Ne=Ge(7657),ve=function(ye,we){return Tt.createElement(Ne.Z,(0,Qe.Z)({},ye,{ref:we,icon:_e}))},fe=Tt.forwardRef(ve),be=fe},52671:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return be}});var Qe=Ge(72308),Tt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},_e=oe,Ne=Ge(7657),ve=function(ye,we){return Tt.createElement(Ne.Z,(0,Qe.Z)({},ye,{ref:we,icon:_e}))},fe=Tt.forwardRef(ve),be=fe},8657:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return be}});var Qe=Ge(72308),Tt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},_e=oe,Ne=Ge(7657),ve=function(ye,we){return Tt.createElement(Ne.Z,(0,Qe.Z)({},ye,{ref:we,icon:_e}))},fe=Tt.forwardRef(ve),be=fe},56082:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return be}});var Qe=Ge(72308),Tt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},_e=oe,Ne=Ge(7657),ve=function(ye,we){return Tt.createElement(Ne.Z,(0,Qe.Z)({},ye,{ref:we,icon:_e}))},fe=Tt.forwardRef(ve),be=fe},33853:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return be}});var Qe=Ge(72308),Tt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},_e=oe,Ne=Ge(7657),ve=function(ye,we){return Tt.createElement(Ne.Z,(0,Qe.Z)({},ye,{ref:we,icon:_e}))},fe=Tt.forwardRef(ve),be=fe},15075:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return be}});var Qe=Ge(72308),Tt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},_e=oe,Ne=Ge(7657),ve=function(ye,we){return Tt.createElement(Ne.Z,(0,Qe.Z)({},ye,{ref:we,icon:_e}))},fe=Tt.forwardRef(ve),be=fe},43531:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return be}});var Qe=Ge(72308),Tt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},_e=oe,Ne=Ge(7657),ve=function(ye,we){return Tt.createElement(Ne.Z,(0,Qe.Z)({},ye,{ref:we,icon:_e}))},fe=Tt.forwardRef(ve),be=fe},61485:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return be}});var Qe=Ge(72308),Tt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},_e=oe,Ne=Ge(7657),ve=function(ye,we){return Tt.createElement(Ne.Z,(0,Qe.Z)({},ye,{ref:we,icon:_e}))},fe=Tt.forwardRef(ve),be=fe},38819:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return be}});var Qe=Ge(72308),Tt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},_e=oe,Ne=Ge(7657),ve=function(ye,we){return Tt.createElement(Ne.Z,(0,Qe.Z)({},ye,{ref:we,icon:_e}))},fe=Tt.forwardRef(ve),be=fe},47472:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return be}});var Qe=Ge(72308),Tt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},_e=oe,Ne=Ge(7657),ve=function(ye,we){return Tt.createElement(Ne.Z,(0,Qe.Z)({},ye,{ref:we,icon:_e}))},fe=Tt.forwardRef(ve),be=fe},37036:function(){"use strict"},88010:function(bn,an){"use strict";an.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},43809:function(bn,an){"use strict";an.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"}},38476:function(){"use strict"},74413:function(){"use strict";function bn(de,z,ee,ae){ee===void 0&&(ee=0),ae===void 0&&(ae=1/0),this._name=de,this._defaultValue=z,this._minimum=ee,this._maximum=ae}Object.defineProperty(bn.prototype,"name",{get:function(){return this._name},set:function(de){if(typeof de!="string"||de==="")throw new Error("Shape name must be a valid string.");this._name=de}}),Object.defineProperty(bn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(de){if(typeof de!="number"||isNaN(de))throw new Error("The default value must be a real number, not: "+de);this._defaultValue=de}}),Object.defineProperty(bn.prototype,"minimum",{get:function(){return this._minimum},set:function(de){if(typeof de!="number"||isNaN(de))throw new Error("Minimum must be a real number, not: "+de);this._minimum=de}}),Object.defineProperty(bn.prototype,"maximum",{get:function(){return this._maximum},set:function(de){if(typeof de!="number"||isNaN(de))throw new Error("Maximum must be a real number, not: "+de);this._maximum=de}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(de,z){var ee=go.Shape._FigureParameters[de];return ee?ee[z]:null},go.Shape.setFigureParameter=function(de,z,ee){if(!(ee instanceof bn))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 ae=go.Shape._FigureParameters[de];ae||(ae=[],go.Shape._FigureParameters[de]=ae),ae[z]=ee};var an=[];function Ge(de,z){var ee=an.pop();return ee===void 0?new go.Point(de,z):(ee.x=de,ee.y=z,ee)}function Qe(){var de=an.pop();return de===void 0?new go.Point:de}function Tt(de){an.push(de)}function oe(de,z,ee,ae,re,le,ue,pe,Ee){Ee||(Ee=new go.Point);var Ce=de-ee,je=re-ue,Le=NaN,ke=NaN;if(Ce===0)if(je===0)de===ee&&(Le=de,ke=z);else{var Oe=(le-pe)/je,Fe=le-Oe*re;Le=de,ke=Oe*Le+Fe}else if(je===0){var Re=(z-ae)/Ce,Ze=z-Re*de;Le=re,ke=Re*Le+Ze}else{var Re=(z-ae)/Ce,Oe=(le-pe)/je,Ze=z-Re*de,Fe=le-Oe*re;Le=(Fe-Ze)/(Re-Oe),ke=Re*Le+Ze}return Ee.x=Le,Ee.y=ke,Ee}function _e(de,z,ee,ae,re,le,ue,pe,Ee,Ce,je,Le,ke,Oe){var Fe=1-Ee,Re=Ee,Ze=de*Fe+ee*Re,ze=z*Fe+ae*Re,Ke=ee*Fe+re*Re,ot=ae*Fe+le*Re,ct=re*Fe+ue*Re,pt=le*Fe+pe*Re,bt=Ze*Fe+Ke*Re,qe=ze*Fe+ot*Re,at=Ke*Fe+ct*Re,gt=ot*Fe+pt*Re,Ct=bt*Fe+at*Re,wt=qe*Fe+gt*Re;Ce.x=Ze,Ce.y=ze,je.x=bt,je.y=qe,Le.x=Ct,Le.y=wt,ke.x=at,ke.y=gt,Oe.x=ct,Oe.y=pt}var Ne=new go.Spot(.156,.156),ve=new go.Spot(.844,.844),fe=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new bn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(de,z,ee){var ae=de?de.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=5),ae=Math.min(ae,z/3),ae=Math.min(ae,ee/3);var re=ae*fe,le=new go.Geometry().add(new go.PathFigure(ae,0,!0).add(new go.PathSegment(go.PathSegment.Line,z-ae,0)).add(new go.PathSegment(go.PathSegment.Bezier,z,ae,z-re,0,z,re)).add(new go.PathSegment(go.PathSegment.Line,z,ee-ae)).add(new go.PathSegment(go.PathSegment.Bezier,z-ae,ee,z,ee-re,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,ae,ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ae,re,ee,0,ee-re)).add(new go.PathSegment(go.PathSegment.Line,0,ae)).add(new go.PathSegment(go.PathSegment.Bezier,ae,0,0,re,re,0).close()));return re>1&&(le.spot1=new go.Spot(0,0,re,re),le.spot2=new go.Spot(1,1,-re,-re)),le}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(z,ee).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(z,ee).add(new go.PathSegment(go.PathSegment.Line,0,ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(de,z,ee){var ae=new go.Geometry(go.Geometry.Line);return ae.startX=0,ae.startY=ee/2,ae.endX=z,ae.endY=ee/2,ae}),go.Shape.defineFigureGenerator("LineV",function(de,z,ee){var ae=new go.Geometry(go.Geometry.Line);return ae.startX=z/2,ae.startY=0,ae.endX=z/2,ae.endY=ee,ae}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee/2,!1).add(new go.PathSegment(go.PathSegment.Line,z,ee/2)).add(new go.PathSegment(go.PathSegment.Move,z/2,0)).add(new go.PathSegment(go.PathSegment.Line,z/2,ee)))}),go.Shape.defineFigureGenerator("XLine",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)))}),go.Shape.defineFigureGenerator("LineRight",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(.25*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.25*z,ee)))}),go.Shape.defineFigureGenerator("LineDown",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,.25*ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,.75*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)))}),go.Shape.defineFigureGenerator("LineLeft",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(.75*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.75*z,ee)))}),go.Shape.defineFigureGenerator("LineUp",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,.75*ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(de,z,ee){var ae=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ae*z,(1-ae)*ee,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Move,ae*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,(1-ae)*ee)).add(new go.PathSegment(go.PathSegment.Move,0,ee/2)).add(new go.PathSegment(go.PathSegment.Line,z,ee/2)).add(new go.PathSegment(go.PathSegment.Move,z/2,0)).add(new go.PathSegment(go.PathSegment.Line,z/2,ee)))}),go.Shape.defineFigureGenerator("CircleLine",function(de,z,ee){var ae=z/2,re=new go.Geometry().add(new go.PathFigure(z,z/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ae,ae,ae,ae).close()));return re.spot1=Ne,re.spot2=ve,re.defaultStretch=go.GraphObject.Uniform,re}),go.Shape.defineFigureGenerator("Line1",function(de,z,ee){var ae=new go.Geometry(go.Geometry.Line);return ae.startX=0,ae.startY=0,ae.endX=z,ae.endY=ee,ae}),go.Shape.defineFigureGenerator("Line2",function(de,z,ee){var ae=new go.Geometry(go.Geometry.Line);return ae.startX=z,ae.startY=0,ae.endX=0,ae.endY=ee,ae}),go.Shape.defineFigureGenerator("Curve1",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,z,ee,fe*z,0,z,(1-fe)*ee)))}),go.Shape.defineFigureGenerator("Curve2",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,z,ee,0,fe*ee,(1-fe)*z,ee)))}),go.Shape.defineFigureGenerator("Curve3",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,z,fe*ee,fe*z,ee)))}),go.Shape.defineFigureGenerator("Curve4",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,(1-fe)*z,0,0,(1-fe)*ee)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new bn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)?ae=.1:ae<-1?ae=-1:ae>1&&(ae=1);var re=Math.abs(ae)*z;if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())),re<z/2&&le.setSpots(re/z,0,(z-re)/z,1),le}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new bn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)?ae=10:ae<-z?ae=-z:ae>z&&(ae=z);var re=Math.abs(ae);if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())),re<z/2&&le.setSpots(re/z,0,(z-re)/z,1),le}}),go.Shape.setFigureParameter("Trapezoid1",0,new bn("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)?ae=.2:ae<.5?ae=-.5:ae>.5&&(ae=.5);var re=Math.abs(ae)*z;if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())),re<z/2&&le.setSpots(re/z,0,(z-re)/z,1),le}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new bn("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)?ae=20:ae<-z?ae=-z/2:ae>z&&(ae=z/2);var re=Math.abs(ae);if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())),re<z/2&&le.setSpots(re/z,0,(z-re)/z,1),le}}),go.Shape.setFigureParameter("ManualOperation",0,new bn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)?ae=10:ae<-z?ae=-z/2:ae>z&&(ae=z/2);var re=Math.abs(ae);if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())):le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())),re<z/2&&le.setSpots(re/z,0,(z-re)/z,1),le}});var be=[];function Pe(){var de=be.pop();return de===void 0?[]:de}function ye(de){de.length=0,be.push(de)}function we(de){for(var z=Pe(),ee=.5,ae=.5,re=Math.PI*1.5,le=0,ue=0;ue<de;ue++)le=2*Math.PI/de*ue+re,z[ue]=new go.Point(ae+ee*Math.cos(le),ae+ee*Math.sin(le));return z.push(z[0]),z}function me(de){var z=Se(de),ee=Pe();ee[0]=z[0];for(var ae=1,re=1;ae<z.length;ae+=2,re+=3)ee[re]=z[ae],ee[re+1]=z[ae],ee[re+2]=z[ae+1];return ye(z),ee}function Se(de){for(var z=we(de),ee=Pe(),ae=Math.floor(z.length/2),re=z.length-1,le=de%2===0?2:1,ue=0;ue<re;ue++){var pe=z[ue],Ee=z[ue+1],Ce=z[(ae+ue-1)%re],je=z[(ae+ue+le)%re];ee[ue*2]=pe,ee[ue*2+1]=oe(pe.x,pe.y,Ce.x,Ce.y,Ee.x,Ee.y,je.x,je.y,new go.Point)}return ee[ee.length]=ee[0],ye(z),ee}go.Shape.defineFigureGenerator("Pentagon",function(de,z,ee){var ae=we(5),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<5;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),ye(ae),re.spot1=new go.Spot(.2,.22),re.spot2=new go.Spot(.8,.9),re}),go.Shape.defineFigureGenerator("Hexagon",function(de,z,ee){var ae=we(6),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<6;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),ye(ae),re.spot1=new go.Spot(.07,.25),re.spot2=new go.Spot(.93,.75),re}),go.Shape.defineFigureGenerator("Heptagon",function(de,z,ee){var ae=we(7),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<7;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),ye(ae),re.spot1=new go.Spot(.2,.15),re.spot2=new go.Spot(.8,.85),re}),go.Shape.defineFigureGenerator("Octagon",function(de,z,ee){var ae=we(8),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<8;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),ye(ae),re.spot1=new go.Spot(.15,.15),re.spot2=new go.Spot(.85,.85),re}),go.Shape.defineFigureGenerator("Nonagon",function(de,z,ee){var ae=we(9),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<9;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),ye(ae),re.spot1=new go.Spot(.17,.13),re.spot2=new go.Spot(.82,.82),re}),go.Shape.defineFigureGenerator("Decagon",function(de,z,ee){var ae=we(10),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<10;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),ye(ae),re.spot1=new go.Spot(.16,.16),re.spot2=new go.Spot(.84,.84),re}),go.Shape.defineFigureGenerator("Dodecagon",function(de,z,ee){var ae=we(12),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<12;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),ye(ae),re.spot1=new go.Spot(.16,.16),re.spot2=new go.Spot(.84,.84),re}),go.Shape.defineFigureGenerator("FivePointedStar",function(de,z,ee){var ae=Se(5),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<10;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),ye(ae),re.spot1=new go.Spot(.266,.333),re.spot2=new go.Spot(.733,.733),re}),go.Shape.defineFigureGenerator("SixPointedStar",function(de,z,ee){var ae=Se(6),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<12;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),ye(ae),re.spot1=new go.Spot(.17,.25),re.spot2=new go.Spot(.83,.75),re}),go.Shape.defineFigureGenerator("SevenPointedStar",function(de,z,ee){var ae=Se(7),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<14;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),ye(ae),re.spot1=new go.Spot(.222,.277),re.spot2=new go.Spot(.777,.666),re}),go.Shape.defineFigureGenerator("EightPointedStar",function(de,z,ee){var ae=Se(8),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<16;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),ye(ae),re.spot1=new go.Spot(.25,.25),re.spot2=new go.Spot(.75,.75),re}),go.Shape.defineFigureGenerator("NinePointedStar",function(de,z,ee){var ae=Se(9),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<18;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),ye(ae),re.spot1=new go.Spot(.222,.277),re.spot2=new go.Spot(.777,.666),re}),go.Shape.defineFigureGenerator("TenPointedStar",function(de,z,ee){var ae=Se(10),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<20;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),ye(ae),re.spot1=new go.Spot(.281,.261),re.spot2=new go.Spot(.723,.748),re}),go.Shape.defineFigureGenerator("FivePointedBurst",function(de,z,ee){var ae=me(5),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),ye(ae),re.spot1=new go.Spot(.222,.277),re.spot2=new go.Spot(.777,.777),re}),go.Shape.defineFigureGenerator("SixPointedBurst",function(de,z,ee){var ae=me(6),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),ye(ae),re.spot1=new go.Spot(.17,.222),re.spot2=new go.Spot(.833,.777),re}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(de,z,ee){var ae=me(7),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),ye(ae),re.spot1=new go.Spot(.222,.222),re.spot2=new go.Spot(.777,.777),re}),go.Shape.defineFigureGenerator("EightPointedBurst",function(de,z,ee){var ae=me(8),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),ye(ae),re.spot1=new go.Spot(.222,.222),re.spot2=new go.Spot(.777,.777),re}),go.Shape.defineFigureGenerator("NinePointedBurst",function(de,z,ee){var ae=me(9),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),ye(ae),re.spot1=new go.Spot(.222,.222),re.spot2=new go.Spot(.777,.777),re}),go.Shape.defineFigureGenerator("TenPointedBurst",function(de,z,ee){var ae=me(10),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),ye(ae),re.spot1=new go.Spot(.222,.222),re.spot2=new go.Spot(.777,.777),re}),go.Shape.setFigureParameter("FramedRectangle",0,new bn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new bn("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(de,z,ee){var ae=de?de.parameter1:NaN,re=de?de.parameter2:NaN;isNaN(ae)&&(ae=8),isNaN(re)&&(re=8);var le=new go.Geometry,ue=new go.PathFigure(0,0,!0);return le.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae<z/2&&re<ee/2&&(ue.add(new go.PathSegment(go.PathSegment.Move,ae,re)),ue.add(new go.PathSegment(go.PathSegment.Line,ae,ee-re)),ue.add(new go.PathSegment(go.PathSegment.Line,z-ae,ee-re)),ue.add(new go.PathSegment(go.PathSegment.Line,z-ae,re).close())),le.setSpots(0,0,1,1,ae,re,-ae,-re),le}),go.Shape.setFigureParameter("Ring",0,new bn("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(de,z,ee){var ae=de?de.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=8);var re=z/2,le=new go.Geometry,ue=new go.PathFigure(z,z/2,!0);le.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,0,360,re,re,re,re).close());var pe=Math.max(re-ae,0);return pe>0&&(ue.add(new go.PathSegment(go.PathSegment.Move,z/2+pe,z/2)),ue.add(new go.PathSegment(go.PathSegment.Arc,0,-360,re,re,pe,pe).close())),le.spot1=Ne,le.spot2=ve,le.defaultStretch=go.GraphObject.Uniform,le}),go.Shape.defineFigureGenerator("Cloud",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(.08034461*z,.1944299*ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*z,.05349299*ee,-.09239631*z,.07836421*ee,.1406031*z,-.0542823*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*z,.074219*ee,.2450511*z,-.00697547*ee,.3776197*z,-.01112067*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*z,.07004196*ee,.4539471*z,0,.6066018*z,-.02526587*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*z,.08370865*ee,.6914277*z,-.01904177*ee,.8921095*z,-.01220843*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*z,.3194596*ee,1.036446*z,.04105738*ee,1.020377*z,.3022052*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*z,.562044*ee,1.04448*z,.360238*ee,.992256*z,.5219009*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*z,.8217117*ee,1.032337*z,.5771781*ee,1.018411*z,.8120651*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*z,.9156953*ee,1.028411*z,.9571472*ee,.8556702*z,1.052487*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*z,.9310455*ee,.7431877*z,1.009325*ee,.5624123*z,1.021761*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*z,.9344623*ee,.4820677*z,1.031761*ee,.3030112*z,1.002796*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*z,.870098*ee,.2329994*z,1.01518*ee,.03213784*z,1.01518*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*z,.6545475*ee,-.02812061*z,.9032597*ee,-.01205169*z,.6835638*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*z,.4265613*ee,-.01812061*z,.6089503*ee,-.00606892*z,.4555777*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*z,.1944299*ee,-.01606892*z,.3892545*ee,-.01205169*z,.1944299*ee))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(de,z,ee){var ae=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ae*z,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ae*ee)).add(new go.PathSegment(go.PathSegment.Line,z,(1-ae)*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ee)).add(new go.PathSegment(go.PathSegment.Line,ae*z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ae)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ae*ee).close())).setSpots(ae/2,ae/2,1-ae/2,1-ae/2)}),go.Shape.setFigureParameter("Pie",0,new bn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new bn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(de,z,ee){var ae=de?de.parameter1:NaN,re=de?de.parameter2:NaN;isNaN(ae)&&(ae=0),isNaN(re)&&(re=315);var le=ae%360;le<0&&(le+=360);var ue=re%360,pe=Math.min(z,ee)/2;return new go.Geometry().add(new go.PathFigure(pe,pe).add(new go.PathSegment(go.PathSegment.Arc,le,ue,pe,pe,pe,pe).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(de,z,ee){var ae=fe/Math.SQRT2*.5,re=Math.SQRT2/2,le=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(z,ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,re*z,le*ee,z,(1-ae)*ee,(re+ae)*z,(le+ae)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close()))}),go.Shape.setFigureParameter("ThickCross",0,new bn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(de,z,ee){var ae=de?de.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=30);var re=Math.min(ae,z)/2,le=z/2,ue=ee/2;return new go.Geometry().add(new go.PathFigure(le-re,0,!0).add(new go.PathSegment(go.PathSegment.Line,le+re,0)).add(new go.PathSegment(go.PathSegment.Line,le+re,ue-re)).add(new go.PathSegment(go.PathSegment.Line,z,ue-re)).add(new go.PathSegment(go.PathSegment.Line,z,ue+re)).add(new go.PathSegment(go.PathSegment.Line,le+re,ue+re)).add(new go.PathSegment(go.PathSegment.Line,le+re,ee)).add(new go.PathSegment(go.PathSegment.Line,le-re,ee)).add(new go.PathSegment(go.PathSegment.Line,le-re,ue+re)).add(new go.PathSegment(go.PathSegment.Line,0,ue+re)).add(new go.PathSegment(go.PathSegment.Line,0,ue-re)).add(new go.PathSegment(go.PathSegment.Line,le-re,ue-re).close()))}),go.Shape.setFigureParameter("ThinCross",0,new bn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(de,z,ee){var ae=de?de.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=10);var re=Math.min(ae,z)/2,le=z/2,ue=ee/2;return new go.Geometry().add(new go.PathFigure(le-re,0,!0).add(new go.PathSegment(go.PathSegment.Line,le+re,0)).add(new go.PathSegment(go.PathSegment.Line,le+re,ue-re)).add(new go.PathSegment(go.PathSegment.Line,z,ue-re)).add(new go.PathSegment(go.PathSegment.Line,z,ue+re)).add(new go.PathSegment(go.PathSegment.Line,le+re,ue+re)).add(new go.PathSegment(go.PathSegment.Line,le+re,ee)).add(new go.PathSegment(go.PathSegment.Line,le-re,ee)).add(new go.PathSegment(go.PathSegment.Line,le-re,ue+re)).add(new go.PathSegment(go.PathSegment.Line,0,ue+re)).add(new go.PathSegment(go.PathSegment.Line,0,ue-re)).add(new go.PathSegment(go.PathSegment.Line,le-re,ue-re).close()))}),go.Shape.setFigureParameter("ThickX",0,new bn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(de,z,ee){var ae=de?de.parameter1:NaN;if((isNaN(ae)||ae<0)&&(ae=30),z===0||ee===0){var re=new go.Geometry(go.Geometry.Rectangle);return re.startX=0,re.startY=0,re.endX=z,re.endY=ee,re}else{var le=z/2,ue=ee/2,pe=Math.atan2(ee,z),Ee=ae-Math.min(Math.cos(pe)*ae/2,le),Ce=ae-Math.min(Math.sin(pe)*ae/2,ue),re=new go.Geometry,je=new go.PathFigure(Ee,0,!0);return re.add(je),je.add(new go.PathSegment(go.PathSegment.Line,le,.2*ee)),je.add(new go.PathSegment(go.PathSegment.Line,z-Ee,0)),je.add(new go.PathSegment(go.PathSegment.Line,z,Ce)),je.add(new go.PathSegment(go.PathSegment.Line,.8*z,ue)),je.add(new go.PathSegment(go.PathSegment.Line,z,ee-Ce)),je.add(new go.PathSegment(go.PathSegment.Line,z-Ee,ee)),je.add(new go.PathSegment(go.PathSegment.Line,le,.8*ee)),je.add(new go.PathSegment(go.PathSegment.Line,Ee,ee)),je.add(new go.PathSegment(go.PathSegment.Line,0,ee-Ce)),je.add(new go.PathSegment(go.PathSegment.Line,.2*z,ue)),je.add(new go.PathSegment(go.PathSegment.Line,0,Ce).close()),re}}),go.Shape.setFigureParameter("ThinX",0,new bn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(de,z,ee){var ae=de?de.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=10);var re=new go.Geometry,le=new go.PathFigure(.1*z,0,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee).close()),re}),go.Shape.setFigureParameter("SquareIBeam",0,new bn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=.2);var re=new go.Geometry,le=new go.PathFigure(0,0,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ae*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5+ae/2)*z,ae*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5+ae/2)*z,(1-ae)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,(1-ae)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,(1-ae)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5-ae/2)*z,(1-ae)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5-ae/2)*z,ae*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ae*ee).close()),re}),go.Shape.setFigureParameter("RoundedIBeam",0,new bn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=.5);var re=new go.Geometry,le=new go.PathFigure(0,0,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,ee,Math.abs(1-ae)*z,.25*ee,Math.abs(1-ae)*z,.75*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ae*z,.75*ee,ae*z,.25*ee).close()),re}),go.Shape.defineFigureGenerator("HalfEllipse",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,fe*z,0,z,(.5-fe/2)*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,z,(.5+fe/2)*ee,fe*z,ee).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,z,0,z,ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*z,.75*ee,.5*z,.25*ee).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ee,.1*z,.8*ee,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*ee,0,0,.45*z,0)).add(new go.PathSegment(go.PathSegment.Bezier,z,.3*ee,.55*z,0,z,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,.5*ee,.9*z,.8*ee).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*z,.01*ee)).add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,.6*z,.2*ee,z,.25*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.7*ee,z,.8*ee,.6*z,.8*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.75*z,ee,.5*z,.75*ee,.55*z,.95*ee)).add(new go.PathSegment(go.PathSegment.Line,.25*z,ee)).add(new go.PathSegment(go.PathSegment.Bezier,.45*z,.7*ee,.45*z,.95*ee,.5*z,.75*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.4*z,.8*ee,0,.8*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.49*z,.01*ee,0,.25*ee,.4*z,.2*ee).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.4*z,.6*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.15*z,ee,.5*z,.75*ee,.45*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.85*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.6*z,.6*ee,.55*z,.95*ee,.5*z,.75*ee));var le=.2,ue=.3,pe=0,Ee=le*fe;return re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+Ee+pe)*ee,(.5-Ee+ue)*z,(.5+le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+ue)*z,(.5+pe)*ee,(.5+Ee+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+Ee+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue)*z,(.5-Ee+pe)*ee,(.5+Ee+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.65*z,.36771243*ee,(.5-Ee+ue)*z,(.5-le+pe)*ee,(.5-le+ue+.05)*z,(.5-Ee+pe-.02)*ee)),le=.2,ue=0,pe=-.3,Ee=le*fe,re.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+ue)*z,(.5+pe)*ee,(.5+Ee+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+Ee+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue)*z,(.5-Ee+pe)*ee,(.5+Ee+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ue)*z,(.5+pe)*ee,(.5-Ee+ue)*z,(.5-le+pe)*ee,(.5-le+ue)*z,(.5-Ee+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Ee+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+Ee+pe)*ee,(.5-Ee+ue)*z,(.5+le+pe)*ee)),le=.2,ue=-.3,pe=0,Ee=le*fe,re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue-.05)*z,(.5-Ee+pe-.02)*ee,(.5+Ee+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ue)*z,(.5+pe)*ee,(.5-Ee+ue)*z,(.5-le+pe)*ee,(.5-le+ue)*z,(.5-Ee+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+Ee+pe)*ee,(.5-Ee+ue)*z,(.5+le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,.6*ee,(.5+Ee+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+Ee+pe)*ee).close()),ae.setSpots(.06,.33,.93,.68),ae}),go.Shape.defineFigureGenerator("YinYang",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*.5,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,270,180,z*.5,z*.5,z*.5,z*.5)),re.add(new go.PathSegment(go.PathSegment.Arc,90,-180,z*.5,z*.75,z*.25,z*.25)),re.add(new go.PathSegment(go.PathSegment.Arc,90,180,z*.5,z*.25,z*.25,z*.25));var le=.1,ue=.5,pe=.25;return re.add(new go.PathSegment(go.PathSegment.Move,(ue+le)*z,pe*ee)),re.add(new go.PathSegment(go.PathSegment.Arc,0,-360,z*ue,ee*pe,le*z,le*z).close()),re=new go.PathFigure(z*.5,0,!1),ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,270,-180,z*.5,z*.5,z*.5,z*.5)),pe=.75,re=new go.PathFigure((ue+le)*z,pe*ee,!0),ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,0,360,z*ue,ee*pe,le*z,le*z).close()),ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("Peace",function(de,z,ee){var ae=.8535533905932737,re=.5*z,le=.5*ee;return new go.Geometry().add(new go.PathFigure(re,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,re,le,re,le)).add(new go.PathSegment(go.PathSegment.Line,re,ee)).add(new go.PathSegment(go.PathSegment.Move,re,le)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Move,re,le)).add(new go.PathSegment(go.PathSegment.Line,ae*z,ae*ee)))}),go.Shape.defineFigureGenerator("NotAllowed",function(de,z,ee){var ae=new go.Geometry,re=fe*.5,le=.5,ue=.5,pe=.5,Ee=new go.PathFigure(ue*z,(pe-le)*ee);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),le=.4,re=fe*.4;var Ce=Qe(),je=Qe(),Le=Qe(),ke=Qe();_e(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.42,Ce,je,Le,ke,ke);var Oe=Qe(),Fe=Qe(),Re=Qe();_e(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.58,ke,ke,Re,Oe,Fe);var Ze=Qe(),ze=Qe(),Ke=Qe();_e(ue,pe+le,ue-re,pe+le,ue-le,pe+re,ue-le,pe,.42,Ze,ze,Ke,ke,ke);var ot=Qe(),ct=Qe(),pt=Qe();return _e(ue,pe+le,ue-re,pe+le,ue-le,pe+re,ue-le,pe,.58,ke,ke,pt,ot,ct),Ee.add(new go.PathSegment(go.PathSegment.Move,pt.x*z,pt.y*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,ot.x*z,ot.y*ee,ct.x*z,ct.y*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,Le.x*z,Le.y*ee,Ce.x*z,Ce.y*ee,je.x*z,je.y*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,pt.x*z,pt.y*ee).close()),Ee.add(new go.PathSegment(go.PathSegment.Move,Ke.x*z,Ke.y*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,Re.x*z,Re.y*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Oe.x*z,Oe.y*ee,Fe.x*z,Fe.y*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,Ke.x*z,Ke.y*ee,Ze.x*z,Ze.y*ee,ze.x*z,ze.y*ee).close()),Tt(Ce),Tt(je),Tt(Le),Tt(ke),Tt(Oe),Tt(Fe),Tt(Re),Tt(Ze),Tt(ze),Tt(Ke),Tt(ot),Tt(ct),Tt(pt),ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("Fragile",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*z,0)).add(new go.PathSegment(go.PathSegment.Line,.2*z,.15*ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,.29*z,.33*ee)).add(new go.PathSegment(go.PathSegment.Line,.35*z,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.15*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.5*ee,z,.25*ee,.75*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.55*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.45*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.45*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.5*ee,0,.25*ee).close()))}),go.Shape.setFigureParameter("HourGlass",0,new bn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(de,z,ee){var ae=de?de.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=30),ae>z&&(ae=z);var re=(z-ae)/2,le=re+ae;return new go.Geometry().add(new go.PathFigure(le,.5*ee).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee)).add(new go.PathSegment(go.PathSegment.Line,re,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,z,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,.55*ee).add(new go.PathSegment(go.PathSegment.Line,.6*z,0)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.45*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.45*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.55*ee).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(de,z,ee){var ae=new go.Geometry,re=fe*.4,le=.4,ue=.5,pe=.5,Ee=Qe(),Ce=Qe(),je=Qe(),Le=Qe(),ke=new go.PathFigure((ue-le)*z,pe*ee,!1);ae.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),_e(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.44,je,Le,Ce,Ee,Ee),ke.add(new go.PathSegment(go.PathSegment.Bezier,Ce.x*z,Ce.y*ee,je.x*z,je.y*ee,Le.x*z,Le.y*ee));var Oe=Ge(Ce.x,Ce.y);_e(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.56,Ee,Ee,Ce,je,Le);var Fe=Ge(Ce.x,Ce.y);ke.add(new go.PathSegment(go.PathSegment.Line,(Oe.x*.1+.95*.9)*z,Oe.y*.1*ee)),ke.add(new go.PathSegment(go.PathSegment.Line,.85*z,Oe.y*.1*ee)),ke.add(new go.PathSegment(go.PathSegment.Line,.85*z,0)),ke.add(new go.PathSegment(go.PathSegment.Line,z,0)),ke.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),ke.add(new go.PathSegment(go.PathSegment.Line,(Fe.x*.1+.9)*z,.15*ee)),ke.add(new go.PathSegment(go.PathSegment.Line,(Fe.x*.1+.9)*z,(Fe.y*.1+.05*.9)*ee)),ke.add(new go.PathSegment(go.PathSegment.Line,Fe.x*z,Fe.y*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,je.x*z,je.y*ee,Le.x*z,Le.y*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),le=.35,re=fe*.35;var Re=new go.PathFigure(ue*z,(pe-le)*ee,!1);ae.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee));var Ze=new go.PathFigure((ue-le)*z,pe*ee,!1);return ae.add(Ze),Tt(Ee),Tt(Ce),Tt(je),Tt(Le),Tt(Oe),Tt(Fe),ae.spot1=new go.Spot(.202,.257),ae.spot2=new go.Spot(.792,.739),ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("GenderFemale",function(de,z,ee){var ae=new go.Geometry,re=.375,le=0,ue=-.125,pe=re*fe,Ee=new go.PathFigure((.525+le)*z,(.5+re+ue)*ee,!1);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+re+le)*z,(.5+ue)*ee,(.5+pe+le)*z,(.5+re+ue)*ee,(.5+re+le)*z,(.5+pe+ue)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(.5+le)*z,(.5-re+ue)*ee,(1-.5+re+le)*z,(.5-pe+ue)*ee,(.5+pe+le)*z,(.5-re+ue)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(.5-re+le)*z,(.5+ue)*ee,(.5-pe+le)*z,(.5-re+ue)*ee,(.5-re+le)*z,(.5-pe+ue)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(.475+le)*z,(.5+re+ue)*ee,(.5-re+le)*z,(.5+pe+ue)*ee,(.5-pe+le)*z,(.5+re+ue)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.475*z,.85*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.425*z,.85*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.425*z,.9*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.475*z,.9*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.475*z,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.525*z,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.525*z,.9*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.575*z,.9*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.575*z,.85*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.525*z,.85*ee).close()),re=.325,le=0,ue=-.125,pe=re*fe;var Ee=new go.PathFigure((1-.5+re+le)*z,(.5+ue)*ee,!1);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(.5+le)*z,(.5+re+ue)*ee,(.5+re+le)*z,(.5+pe+ue)*ee,(.5+pe+le)*z,(.5+re+ue)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(.5-re+le)*z,(.5+ue)*ee,(.5-pe+le)*z,(.5+re+ue)*ee,(.5-re+le)*z,(.5+pe+ue)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(.5+le)*z,(.5-re+ue)*ee,(.5-re+le)*z,(.5-pe+ue)*ee,(.5-pe+le)*z,(.5-re+ue)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+re+le)*z,(.5+ue)*ee,(.5+pe+le)*z,(.5-re+ue)*ee,(1-.5+re+le)*z,(.5-pe+ue)*ee));var Ee=new go.PathFigure((.525+le)*z,(.5+re+ue)*ee,!1);return ae.add(Ee),ae.spot1=new go.Spot(.232,.136),ae.spot2=new go.Spot(.682,.611),ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("LogicImplies",function(de,z,ee){var ae=de?de.parameter1:NaN;return isNaN(ae)&&(ae=.2),new go.Geometry().add(new go.PathFigure((1-ae)*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(de,z,ee){var ae=de?de.parameter1:NaN;return isNaN(ae)&&(ae=.2),new go.Geometry().add(new go.PathFigure((1-ae)*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,ae*z,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,ae*z,ee))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)))}),go.Shape.defineFigureGenerator("LogicAnd",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,z,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(de,z,ee){var ae=new go.Geometry().add(new go.PathFigure(.5*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*z,.5*ee,.5*z,.5*ee)));return ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("LogicTruth",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,.5*z,0)).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Move,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee)))}),go.Shape.defineFigureGenerator("LogicForAll",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,.25*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.75*z,.5*ee))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,0,ee)).add(new go.PathSegment(go.PathSegment.Line,z,ee))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(de,z,ee){var ae=.5;return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,0,ae*ee)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ae*z,ae*ee,ae*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Line,z,ee))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(de,z,ee){var ae=.5;return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,ae*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ae*z,ae*ee,ae*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new bn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new bn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=.3);var re=de?de.parameter2:NaN;isNaN(re)&&(re=.3);var le=(1-ae)*z,ue=(.5-re/2)*ee,pe=(.5+re/2)*ee,Ee=new go.Geometry,Ce=new go.PathFigure(0,ue,!0);Ee.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,le,ue)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,pe)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,pe).close()),Ee.spot1=new go.Spot(0,ue/ee);var je=oe(0,pe/ee,1,pe/ee,le/z,1,1,.5,Qe());return Ee.spot2=new go.Spot(je.x,je.y),Tt(je),Ee}),go.Shape.setFigureParameter("Arrow2",0,new bn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new bn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=30),ae>z&&(ae=z);var re=de?de.parameter2:NaN;isNaN(re)&&(re=30),re=Math.min(re,ee/2);var le=z-ae,ue=(ee-re)/2,pe=ue+re,Ee=new go.Geometry,Ce=new go.PathFigure(0,ue,!0);Ee.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,le,ue)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,pe)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,pe).close()),Ee.spot1=new go.Spot(0,ue/ee);var je=oe(0,pe/ee,1,pe/ee,le/z,1,1,.5,Qe());return Ee.spot2=new go.Spot(je.x,je.y),Tt(je),Ee}),go.Shape.defineFigureGenerator("Chevron",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee).close()),ae}),go.Shape.defineFigureGenerator("DoubleArrow",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,.214*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,1*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,.786*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,1*ee).close()),ae}),go.Shape.setFigureParameter("DoubleEndArrow",0,new bn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=.3);var re=(.5-ae/2)*ee,le=(.5+ae/2)*ee,ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close());var Ee=oe(0,.5,.3,0,0,re/ee,.1,re/ee,Qe());return ue.spot1=new go.Spot(Ee.x,Ee.y),Ee=oe(.7,1,1,.5,0,le/ee,1,le/ee,Ee),ue.spot2=new go.Spot(Ee.x,Ee.y),Tt(Ee),ue}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new bn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new bn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=40);var re=de?de.parameter2:NaN;isNaN(re)&&(re=100);var le=(ee-ae)/2,ue=le+ae,pe=(ee-re)/2,Ee=pe+re;(ae>ee||re>ee)&&(re>ae?(ae=ae*ee/re,le=(ee-ae)/2,ue=le+ae,pe=0,Ee=ee):(le=0,ue=ee,pe=0,Ee=ee));var Ce=new go.Geometry,je=new go.PathFigure(z,.5*ee,!0);Ce.add(je),je.add(new go.PathSegment(go.PathSegment.Line,.7*z,Ee)),je.add(new go.PathSegment(go.PathSegment.Line,.7*z,ue)),je.add(new go.PathSegment(go.PathSegment.Line,.3*z,ue)),je.add(new go.PathSegment(go.PathSegment.Line,.3*z,Ee)),je.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),je.add(new go.PathSegment(go.PathSegment.Line,.3*z,pe)),je.add(new go.PathSegment(go.PathSegment.Line,.3*z,le)),je.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),je.add(new go.PathSegment(go.PathSegment.Line,.7*z,pe).close());var Le=oe(0,.5,.3,pe/ee,0,le/ee,1,le/ee,Qe());return Ce.spot1=new go.Spot(Le.x,Le.y),Le=oe(.7,Ee/ee,1,.5,0,ue/ee,1,ue/ee,Le),Ce.spot2=new go.Spot(Le.x,Le.y),Tt(Le),Ce}),go.Shape.setFigureParameter("IBeamArrow",0,new bn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=.3);var re=(.5-ae/2)*ee,le=(.5+ae/2)*ee,ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,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,.2*z,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),ue.spot1=new go.Spot(0,re/ee);var Ee=oe(.7,1,1,.5,0,le/ee,1,le/ee,Qe());return ue.spot2=new go.Spot(Ee.x,Ee.y),Tt(Ee),ue}),go.Shape.setFigureParameter("IBeamArrow2",0,new bn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new bn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=40);var re=de?de.parameter2:NaN;isNaN(re)&&(re=100);var le=(ee-ae)/2,ue=le+ae,pe=(ee-re)/2,Ee=pe+re;(ae>ee||re>ee)&&(re>ae?(ae=ae*ee/re,le=(ee-ae)/2,ue=le+ae,pe=0,Ee=ee):(le=0,ue=ee,pe=0,Ee=ee));var Ce=new go.Geometry,je=new go.PathFigure(z,.5*ee,!0);Ce.add(je),je.add(new go.PathSegment(go.PathSegment.Line,.7*z,Ee)),je.add(new go.PathSegment(go.PathSegment.Line,.7*z,ue)),je.add(new go.PathSegment(go.PathSegment.Line,.2*z,ue)),je.add(new go.PathSegment(go.PathSegment.Line,.2*z,Ee)),je.add(new go.PathSegment(go.PathSegment.Line,0,Ee)),je.add(new go.PathSegment(go.PathSegment.Line,0,pe)),je.add(new go.PathSegment(go.PathSegment.Line,.2*z,pe)),je.add(new go.PathSegment(go.PathSegment.Line,.2*z,le)),je.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),je.add(new go.PathSegment(go.PathSegment.Line,.7*z,pe).close()),Ce.spot1=new go.Spot(0,le/ee);var Le=oe(.7,Ee/ee,1,.5,0,ue/ee,1,ue/ee,Qe());return Ce.spot2=new go.Spot(Le.x,Le.y),Tt(Le),Ce}),go.Shape.setFigureParameter("Pointer",0,new bn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=.1);var re=new go.Geometry,le=new go.PathFigure(z,.5*ee,!0);re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,ae*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),re.spot1=new go.Spot(ae,.35);var ue=oe(.2,.65,1,.65,0,1,1,.5,Qe());return re.spot2=new go.Spot(ue.x,ue.y),Tt(ue),re}),go.Shape.setFigureParameter("RoundedPointer",0,new bn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=.3);var re=new go.Geometry,le=new go.PathFigure(z,.5*ee,!0);re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ae*z,.75*ee,ae*z,.25*ee).close()),re.spot1=new go.Spot(ae,.35);var ue=oe(0,.65,1,.65,0,1,1,.5,Qe());return re.spot2=new go.Spot(ue.x,ue.y),Tt(ue),re}),go.Shape.setFigureParameter("SplitEndArrow",0,new bn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=.4);var re=(.5-ae/2)*ee,le=(.5+ae/2)*ee,ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,0,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),ue.spot1=new go.Spot(.2,.3);var Ee=oe(.7,1,1,.5,0,le/ee,1,le/ee,Qe());return ue.spot2=new go.Spot(Ee.x,Ee.y),Tt(Ee),ue}),go.Shape.setFigureParameter("SplitEndArrow2",0,new bn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=50);var re=(ee-ae)/2,le=re+ae;ae>ee&&(re=0,le=ee);var ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,0,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),ue.spot1=new go.Spot(.2,re/ee);var Ee=oe(.7,1,1,.5,0,le/ee,1,le/ee,Qe());return ue.spot2=new go.Spot(Ee.x,Ee.y),Tt(Ee),ue}),go.Shape.setFigureParameter("SquareArrow",0,new bn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=.7);var re=new go.Geometry,le=new go.PathFigure(z,.5*ee,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ae*z,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,ae*z,0).close()),re.spot1=go.Spot.TopLeft,re.spot2=new go.Spot(ae,1),re}),go.Shape.defineFigureGenerator("Cone1",function(de,z,ee){var ae=new go.Geometry,re=fe*.5,le=fe*.1,ue=new go.PathFigure(0,.9*ee,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.9+le)*ee,(.5+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-re)*z,ee,0,(.9+le)*ee).close()),ae.spot1=new go.Spot(.25,.5),ae.spot2=new go.Spot(.75,.97),ae}),go.Shape.defineFigureGenerator("Cone2",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.9*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.9*ee,(1-.85/.9)*z,ee,.85/.9*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee).close());var le=new go.PathFigure(0,.9*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,z,.9*ee,(1-.85/.9)*z,.8*ee,.85/.9*z,.8*ee)),ae.spot1=new go.Spot(.25,.5),ae.spot2=new go.Spot(.75,.82),ae}),go.Shape.defineFigureGenerator("Cube1",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var le=new go.PathFigure(.5*z,ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.5*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),ae.spot1=new go.Spot(0,.3),ae.spot2=new go.Spot(.5,.85),ae}),go.Shape.defineFigureGenerator("Cube2",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.3*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,0).close());var le=new go.PathFigure(0,.3*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.7*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Move,.7*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),ae.spot1=new go.Spot(0,.3),ae.spot2=new go.Spot(.7,1),ae}),go.Shape.defineFigureGenerator("Cylinder1",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,ee/3);var re=new go.Geometry,le=fe*.5,ue=new go.PathFigure(0,ae,!0);re.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,fe*ae,(.5-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,1*z,ae,(.5+le)*z,0,1*z,fe*ae)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-ae)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,1*ee,1*z,ee-fe*ae,(.5+le)*z,1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ae,(.5-le)*z,1*ee,0,ee-fe*ae)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ae));var pe=new go.PathFigure(z,ae,!1);return re.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,2*ae,1*z,2*ae-fe*ae,(.5+le)*z,2*ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,ae,(.5-le)*z,2*ae,0,2*ae-fe*ae)),re.spot1=new go.Spot(0,0,0,2*ae),re.spot2=new go.Spot(1,1),re}),go.Shape.defineFigureGenerator("Cylinder2",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,ee/3);var re=new go.Geometry,le=fe*.5,ue=new go.PathFigure(0,ee-ae,!0);re.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ae)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,fe*ae,(.5-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,ae,(.5+le)*z,0,z,fe*ae)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-ae)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,ee-fe*ae,(.5+le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ae,(.5-le)*z,ee,0,ee-fe*ae));var pe=new go.PathFigure(0,ee-ae,!1);return re.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee-2*ae,0,ee-ae-fe*ae,(.5-le)*z,ee-2*ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z,ee-ae,(.5+le)*z,ee-2*ae,z,ee-ae-fe*ae)),re.spot1=new go.Spot(0,0),re.spot2=new go.Spot(1,1,0,-2*ae),re}),go.Shape.defineFigureGenerator("Cylinder3",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,z/3);var re=new go.Geometry,le=fe*.5,ue=new go.PathFigure(ae,0,!0);re.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z-ae,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,z-fe*ae,0,z,(.5-le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-ae,ee,z,(.5+le)*ee,z-fe*ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,fe*ae,ee,0,(.5+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ae,0,0,(.5-le)*ee,fe*ae,0));var pe=new go.PathFigure(ae,0,!1);return re.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,2*ae,.5*ee,ae+fe*ae,0,2*ae,(.5-le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ae,ee,2*ae,(.5+le)*ee,ae+fe*ae,ee)),re.spot1=new go.Spot(0,0,2*ae,0),re.spot2=new go.Spot(1,1),re}),go.Shape.defineFigureGenerator("Cylinder4",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,z/3);var re=new go.Geometry,le=fe*.5,ue=new go.PathFigure(z-ae,0,!0);re.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,z-fe*ae,0,z,(.5-le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-ae,ee,z,(.5+le)*ee,z-fe*ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,fe*ae,ee,0,(.5+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ae,0,0,(.5-le)*ee,fe*ae,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z-ae,0));var pe=new go.PathFigure(z-ae,0,!1);return re.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,z-2*ae,.5*ee,z-ae-fe*ae,0,z-2*ae,(.5-le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z-ae,ee,z-2*ae,(.5+le)*ee,z-ae-fe*ae,ee)),re.spot1=new go.Spot(0,0),re.spot2=new go.Spot(1,1,-2*ae,0),re}),go.Shape.defineFigureGenerator("Prism1",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.25*z,.25*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(.25*z,.25*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ae.spot1=new go.Spot(.408,.172),ae.spot2=new go.Spot(.833,.662),ae}),go.Shape.defineFigureGenerator("Prism2",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.25*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(0,ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*ee)),ae.spot1=new go.Spot(.25,.5),ae.spot2=new go.Spot(.75,.75),ae}),go.Shape.defineFigureGenerator("Pyramid1",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee).close());var le=new go.PathFigure(.5*z,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ae.spot1=new go.Spot(.25,.367),ae.spot2=new go.Spot(.75,.875),ae}),go.Shape.defineFigureGenerator("Pyramid2",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var le=new go.PathFigure(.5*z,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.7*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.5*z,.7*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),ae.spot1=new go.Spot(.25,.367),ae.spot2=new go.Spot(.75,.875),ae}),go.Shape.defineFigureGenerator("Actor",function(de,z,ee){var ae=new go.Geometry,re=.2,le=.1,ue=fe*re,pe=fe*le,Ee=.5,Ce=.1,je=new go.PathFigure(Ee*z,(Ce+le)*ee,!0);ae.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-re)*z,Ce*ee,(Ee-ue)*z,(Ce+le)*ee,(Ee-re)*z,(Ce+pe)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(Ce-le)*ee,(Ee-re)*z,(Ce-pe)*ee,(Ee-ue)*z,(Ce-le)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+re)*z,Ce*ee,(Ee+ue)*z,(Ce-le)*ee,(Ee+re)*z,(Ce-pe)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(Ce+le)*ee,(Ee+re)*z,(Ce+pe)*ee,(Ee+ue)*z,(Ce+le)*ee));var Le=.05,ke=fe*Le;Ee=.05,Ce=.25;var Oe=new go.PathFigure(.5*z,.2*ee,!0);return ae.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Line,.95*z,.2*ee)),Ee=.95,Ce=.25,Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+Le)*z,Ce*ee,(Ee+ke)*z,(Ce-Le)*ee,(Ee+Le)*z,(Ce-ke)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.85*z,.35*ee)),Le=.025,ke=fe*Le,Ee=.825,Ce=.35,Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(Ce-Le)*ee,(Ee+Le)*z,(Ce-ke)*ee,(Ee+ke)*z,(Ce-Le)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-Le)*z,Ce*ee,(Ee-ke)*z,(Ce-Le)*ee,(Ee-Le)*z,(Ce-ke)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.55*z,ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.55*z,.7*ee)),Le=.05,ke=fe*Le,Ee=.5,Ce=.7,Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(Ce-Le)*ee,(Ee+Le)*z,(Ce-ke)*ee,(Ee+ke)*z,(Ce-Le)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-Le)*z,Ce*ee,(Ee-ke)*z,(Ce-Le)*ee,(Ee-Le)*z,(Ce-ke)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.45*z,ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.2*z,.35*ee)),Le=.025,ke=fe*Le,Ee=.175,Ce=.35,Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(Ce-Le)*ee,(Ee+Le)*z,(Ce-ke)*ee,(Ee+ke)*z,(Ce-Le)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-Le)*z,Ce*ee,(Ee-ke)*z,(Ce-Le)*ee,(Ee-Le)*z,(Ce-ke)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),Le=.05,ke=fe*Le,Ee=.05,Ce=.25,Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(Ce-Le)*ee,(Ee-Le)*z,(Ce-ke)*ee,(Ee-ke)*z,(Ce-Le)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.5*z,.2*ee)),ae.spot1=new go.Spot(.2,.2),ae.spot2=new go.Spot(.8,.65),ae}),go.Shape.setFigureParameter("Card",0,new bn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=.2);var re=new go.Geometry,le=new go.PathFigure(z,0,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ae*ee)),le.add(new go.PathSegment(go.PathSegment.Line,ae*z,0).close()),re.spot1=new go.Spot(0,ae),re.spot2=go.Spot.BottomRight,re}),go.Shape.defineFigureGenerator("Collate",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,.5*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee));var le=new go.PathFigure(.5*z,.5*ee,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),ae.spot1=new go.Spot(.25,0),ae.spot2=new go.Spot(.75,.25),ae}),go.Shape.defineFigureGenerator("CreateRequest",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN;isNaN(re)&&(re=.1);var le=new go.PathFigure(0,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure(0,re*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,re*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,0,(1-re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,(1-re)*ee)),ae}),go.Shape.defineFigureGenerator("Database",function(de,z,ee){var ae=new go.Geometry,re=fe*.5,le=fe*.1,ue=new go.PathFigure(z,.1*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.9+le)*ee,(.5+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-re)*z,ee,0,(.9+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,(.1-le)*ee,(.5-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*ee,(.5+re)*z,0,z,(.1-le)*ee));var pe=new go.PathFigure(z,.1*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*ee,z,(.1+le)*ee,(.5+re)*z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-re)*z,.2*ee,0,(.1+le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*ee,z,(.2+le)*ee,(.5+re)*z,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-re)*z,.3*ee,0,(.2+le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.4*ee,z,(.3+le)*ee,(.5+re)*z,.4*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ee,(.5-re)*z,.4*ee,0,(.3+le)*ee)),ae.spot1=new go.Spot(0,.4),ae.spot2=new go.Spot(1,.9),ae}),go.Shape.defineFigureGenerator("DataStorage",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,ee,z,0,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.9*ee,.25*z,.1*ee).close()),ae.spot1=new go.Spot(.226,0),ae.spot2=new go.Spot(.81,1),ae}),go.Shape.defineFigureGenerator("DiskStorage",function(de,z,ee){var ae=new go.Geometry,re=fe*.5,le=fe*.1,ue=new go.PathFigure(z,.1*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.9+le)*ee,(.5+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-re)*z,ee,0,(.9+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,(.1-le)*ee,(.5-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*ee,(.5+re)*z,0,z,(.1-le)*ee));var pe=new go.PathFigure(z,.1*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*ee,z,(.1+le)*ee,(.5+re)*z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-re)*z,.2*ee,0,(.1+le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*ee,z,(.2+le)*ee,(.5+re)*z,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-re)*z,.3*ee,0,(.2+le)*ee)),ae.spot1=new go.Spot(0,.3),ae.spot2=new go.Spot(1,.9),ae}),go.Shape.defineFigureGenerator("Display",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.25*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,ee,z,0,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close()),ae.spot1=new go.Spot(.25,0),ae.spot2=new go.Spot(.75,1),ae}),go.Shape.defineFigureGenerator("DividedEvent",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN;isNaN(re)?re=.2:re<.15&&(re=.15);var le=fe*.2,ue=new go.PathFigure(0,.2*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,0,(.2-le)*ee,(.2-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.2*ee,(.8+le)*z,0,z,(.2-le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,ee,z,(.8+le)*ee,(.8+le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*ee,(.2-le)*z,ee,0,(.8+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee));var pe=new go.PathFigure(0,re*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,re*ee)),ae}),go.Shape.defineFigureGenerator("DividedProcess",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN;(isNaN(re)||re<.1)&&(re=.1);var le=new go.PathFigure(0,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure(0,re*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,re*ee)),ae}),go.Shape.defineFigureGenerator("Document",function(de,z,ee){var ae=new go.Geometry;ee=ee/.8;var re=new go.PathFigure(0,.7*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*z,.4*ee,.5*z,ee).close()),ae.spot1=go.Spot.TopLeft,ae.spot2=new go.Spot(1,.6),ae}),go.Shape.defineFigureGenerator("ExternalOrganization",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN;(isNaN(re)||re<.2)&&(re=.2);var le=new go.PathFigure(0,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure(re*z,0,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,re*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,z,re*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Move,0,(1-re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,(1-re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,(1-re)*ee)),ae}),go.Shape.defineFigureGenerator("ExternalProcess",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var le=new go.PathFigure(.1*z,.4*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.9*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.6*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.4*z,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.9*ee)),ae.spot1=new go.Spot(.25,.25),ae.spot2=new go.Spot(.75,.75),ae}),go.Shape.defineFigureGenerator("File",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(.75*z,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*z,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),ae.spot1=new go.Spot(0,.25),ae.spot2=go.Spot.BottomRight,ae}),go.Shape.defineFigureGenerator("Interrupt",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,.5*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee));var le=new go.PathFigure(z,.5*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,ee));var ue=new go.PathFigure(z,.5*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.5,.75),ae}),go.Shape.defineFigureGenerator("InternalStorage",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN,le=de?de.parameter2:NaN;isNaN(re)&&(re=.1),isNaN(le)&&(le=.1);var ue=new go.PathFigure(0,0,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var pe=new go.PathFigure(re*z,0,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Move,0,le*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,z,le*ee)),ae}),go.Shape.defineFigureGenerator("Junction",function(de,z,ee){var ae=new go.Geometry,re=1/Math.SQRT2,le=(1-1/Math.SQRT2)/2,ue=fe*.5,pe=.5,Ee=new go.PathFigure(z,pe*ee,!0);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,ee,z,(pe+ue)*ee,(pe+ue)*z,ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,pe*ee,(pe-ue)*z,ee,0,(pe+ue)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,0,0,(pe-ue)*ee,(pe-ue)*z,0)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,z,pe*ee,(pe+ue)*z,0,z,(pe-ue)*ee));var Ce=new go.PathFigure((le+re)*z,(le+re)*ee,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,le*z,le*ee)),Ce.add(new go.PathSegment(go.PathSegment.Move,le*z,(le+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,(le+re)*z,le*ee)),ae}),go.Shape.defineFigureGenerator("LinedDocument",function(de,z,ee){var ae=new go.Geometry;ee=ee/.8;var re=new go.PathFigure(0,.7*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*z,.4*ee,.5*z,ee).close());var le=new go.PathFigure(.1*z,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,.75*ee)),ae.spot1=new go.Spot(.1,0),ae.spot2=new go.Spot(1,.6),ae}),go.Shape.defineFigureGenerator("LoopLimit",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee).close()),ae.spot1=new go.Spot(0,.25),ae.spot2=go.Spot.BottomRight,ae}),go.Shape.defineFigureGenerator("MagneticTape",function(de,z,ee){var ae=new go.Geometry,re=fe*.5,le=.5,ue=new go.PathFigure(.5*z,ee,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,le*ee,(le-re)*z,ee,0,(le+re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,0,0,(le-re)*ee,(le-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,le*ee,(le+re)*z,0,z,(le-re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(le+.1)*z,.9*ee,z,(le+re)*ee,(le+re)*z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ae.spot1=new go.Spot(.15,.15),ae.spot2=new go.Spot(.85,.8),ae}),go.Shape.defineFigureGenerator("ManualInput",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee).close()),ae.spot1=new go.Spot(0,.25),ae.spot2=go.Spot.BottomRight,ae}),go.Shape.defineFigureGenerator("MessageFromUser",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN;isNaN(re)&&(re=.7);var le=new go.PathFigure(0,0,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,re*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=go.Spot.TopLeft,ae}),go.Shape.defineFigureGenerator("MicroformProcessing",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN;isNaN(re)&&(re=.25);var le=new go.PathFigure(0,0,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,re*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,(1-re)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae}),go.Shape.defineFigureGenerator("MicroformRecording",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(1,.75),ae}),go.Shape.defineFigureGenerator("MultiDocument",function(de,z,ee){var ae=new go.Geometry;ee=ee/.8;var re=new go.PathFigure(z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.44*ee,.96*z,.47*ee,.93*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.54*ee,.86*z,.57*ee,.83*z,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.4*z,.4*ee,.4*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,0).close());var le=new go.PathFigure(.1*z,.2*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.54*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.44*ee)),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.8,.77),ae}),go.Shape.defineFigureGenerator("MultiProcess",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.1*z,.1*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*ee).close());var le=new go.PathFigure(.2*z,.1*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.1*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.9*ee)),ae.spot1=new go.Spot(0,.2),ae.spot2=new go.Spot(.8,1),ae}),go.Shape.defineFigureGenerator("OfflineStorage",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN;isNaN(re)&&(re=.1);var le=1-re,ue=new go.PathFigure(0,0,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee).close());var pe=new go.PathFigure(.5*re*z,re*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,(1-.5*re)*z,re*ee)),ae}),go.Shape.defineFigureGenerator("OffPageConnector",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=go.Spot.TopLeft,ae.spot2=new go.Spot(.75,1),ae}),go.Shape.defineFigureGenerator("Or",function(de,z,ee){var ae=new go.Geometry,re=fe*.5,le=.5,ue=new go.PathFigure(z,le*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,ee,z,(le+re)*ee,(le+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,le*ee,(le-re)*z,ee,0,(le+re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,0,0,(le-re)*ee,(le-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,le*ee,(le+re)*z,0,z,(le-re)*ee));var pe=new go.PathFigure(z,.5*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.5*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ae}),go.Shape.defineFigureGenerator("PaperTape",function(de,z,ee){var ae=new go.Geometry;ee=ee/.8;var re=new go.PathFigure(0,.7*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.3*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.3*ee,.5*z,.6*ee,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*z,.4*ee,.5*z,ee).close()),ae.spot1=new go.Spot(0,.49),ae.spot2=new go.Spot(1,.75),ae}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN,le=de?de.parameter2:NaN;isNaN(re)&&(re=.1),isNaN(le)&&(le=.3);var ue=new go.PathFigure(0,0,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-le)*z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN,le=de?de.parameter2:NaN;isNaN(re)&&(re=.1),isNaN(le)&&(le=.3);var ue=new go.PathFigure(0,0,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,(1-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae}),go.Shape.defineFigureGenerator("Procedure",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN;isNaN(re)&&(re=.1);var le=new go.PathFigure(0,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure((1-re)*z,0,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,(1-re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,re*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),ae}),go.Shape.defineFigureGenerator("Process",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN;isNaN(re)&&(re=.1);var le=new go.PathFigure(0,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure(re*z,0,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),ae.spot2=go.Spot.BottomRight,ae}),go.Shape.defineFigureGenerator("Sort",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var le=new go.PathFigure(0,.5*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ae.spot1=new go.Spot(.25,.25),ae.spot2=new go.Spot(.75,.5),ae}),go.Shape.defineFigureGenerator("Start",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN;isNaN(re)&&(re=.25);var le=new go.PathFigure(re*z,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*z,.5*ee,.25*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*z,.5*ee,.25*z,.5*ee));var ue=new go.PathFigure(re*z,0,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,(1-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-re)*z,ee)),ae.spot1=new go.Spot(re,0),ae.spot2=new go.Spot(1-re,1),ae}),go.Shape.defineFigureGenerator("Terminator",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.25*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*z,.5*ee,.25*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*z,.5*ee,.25*z,.5*ee)),ae.spot1=new go.Spot(.23,0),ae.spot2=new go.Spot(.77,1),ae}),go.Shape.defineFigureGenerator("TransmittalTape",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN;isNaN(re)&&(re=.1);var le=new go.PathFigure(0,0,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.75*z,(1-re)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,(1-re)*ee).close()),ae.spot1=go.Spot.TopLeft,ae}),go.Shape.defineFigureGenerator("AndGate",function(de,z,ee){var ae=new go.Geometry,re=fe*.5,le=new go.PathFigure(0,0,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(.5+re)*z,0,z,(.5-re)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.5+re)*ee,(.5+re)*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=go.Spot.TopLeft,ae.spot2=new go.Spot(.55,1),ae}),go.Shape.defineFigureGenerator("Buffer",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.5,.75),ae}),go.Shape.defineFigureGenerator("Clock",function(de,z,ee){var ae=new go.Geometry,re=fe*.5,le=.5,ue=new go.PathFigure(z,le*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,ee,z,(le+re)*ee,(le+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,le*ee,(le-re)*z,ee,0,(le+re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,0,0,(le-re)*ee,(le-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,le*ee,(le+re)*z,0,z,(le-re)*ee));var pe=new go.PathFigure(z,le*ee,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,le*ee));var Ee=new go.PathFigure(.8*z,.75*ee,!1);return ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.8*z,.25*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.6*z,.25*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.6*z,.75*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.4*z,.75*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.4*z,.25*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*z,.25*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*z,.75*ee)),ae}),go.Shape.defineFigureGenerator("Ground",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.3*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.4*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,ee)),ae}),go.Shape.defineFigureGenerator("Inverter",function(de,z,ee){var ae=new go.Geometry,re=fe*.1,le=.1,ue=.9,pe=.5,Ee=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ee.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*ee));var Ce=new go.PathFigure((ue+le)*z,pe*ee,!0);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee)),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.4,.75),ae}),go.Shape.defineFigureGenerator("NandGate",function(de,z,ee){var ae=new go.Geometry,re=fe*.5,le=fe*.4,ue=fe*.1,pe=.1,Ee=.9,Ce=.5,je=new go.PathFigure(.8*z,.5*ee,!0);ae.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,ee,.8*z,(.5+le)*ee,(.4+re)*z,ee)),je.add(new go.PathSegment(go.PathSegment.Line,0,ee)),je.add(new go.PathSegment(go.PathSegment.Line,0,0)),je.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),je.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(.4+re)*z,0,.8*z,(.5-le)*ee));var Le=new go.PathFigure((Ee+pe)*z,Ce*ee,!0);return ae.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(Ce+pe)*ee,(Ee+pe)*z,(Ce+ue)*ee,(Ee+ue)*z,(Ce+pe)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-pe)*z,Ce*ee,(Ee-ue)*z,(Ce+pe)*ee,(Ee-pe)*z,(Ce+ue)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(Ce-pe)*ee,(Ee-pe)*z,(Ce-ue)*ee,(Ee-ue)*z,(Ce-pe)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+pe)*z,Ce*ee,(Ee+ue)*z,(Ce-pe)*ee,(Ee+pe)*z,(Ce-ue)*ee)),ae.spot1=new go.Spot(0,.05),ae.spot2=new go.Spot(.55,.95),ae}),go.Shape.defineFigureGenerator("NorGate",function(de,z,ee){var ae=new go.Geometry,re=.5,le=fe*re,ue=0,pe=.5,Ee=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.7*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.75*ee,.25*z,.25*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(ue+le)*z,(pe-re)*ee,.7*z,(pe-le)*ee)),re=.1,le=fe*.1,ue=.9,pe=.5;var Ce=new go.PathFigure((ue-re)*z,pe*ee,!0);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),ae.spot1=new go.Spot(.2,.25),ae.spot2=new go.Spot(.6,.75),ae}),go.Shape.defineFigureGenerator("OrGate",function(de,z,ee){var ae=new go.Geometry,re=.5,le=fe*re,ue=0,pe=.5,Ee=new go.PathFigure(0,0,!0);return ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(ue+le+le)*z,(pe-re)*ee,.8*z,(pe-le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.8*z,(pe+le)*ee,(ue+le+le)*z,(pe+re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.75*ee,.25*z,.25*ee).close()),ae.spot1=new go.Spot(.2,.25),ae.spot2=new go.Spot(.75,.75),ae}),go.Shape.defineFigureGenerator("XnorGate",function(de,z,ee){var ae=new go.Geometry,re=.5,le=fe*re,ue=.2,pe=.5,Ee=new go.PathFigure(.1*z,0,!1);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,ee,.35*z,.25*ee,.35*z,.75*ee));var Ce=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,ee,.7*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,.45*z,.75*ee,.45*z,.25*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(ue+le)*z,(pe-re)*ee,.7*z,(pe-le)*ee)),re=.1,le=fe*.1,ue=.9,pe=.5;var je=new go.PathFigure((ue-re)*z,pe*ee,!0);return ae.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),ae.spot1=new go.Spot(.4,.25),ae.spot2=new go.Spot(.65,.75),ae}),go.Shape.defineFigureGenerator("XorGate",function(de,z,ee){var ae=new go.Geometry,re=.5,le=fe*re,ue=.2,pe=.5,Ee=new go.PathFigure(.1*z,0,!1);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,ee,.35*z,.25*ee,.35*z,.75*ee));var Ce=new go.PathFigure(.2*z,0,!0);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(ue+le)*z,(pe-re)*ee,.9*z,(pe-le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,ee,.9*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,.45*z,.75*ee,.45*z,.25*ee).close()),ae.spot1=new go.Spot(.4,.25),ae.spot2=new go.Spot(.8,.75),ae}),go.Shape.defineFigureGenerator("Capacitor",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae}),go.Shape.defineFigureGenerator("Resistor",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,.5*ee)),ae}),go.Shape.defineFigureGenerator("Inductor",function(de,z,ee){var ae=new go.Geometry,re=fe*.1,le=.1,ue=.1,pe=.5,Ee=new go.PathFigure((ue-re*.5)*z,ee,!1);return ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.3,Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.5,Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.7,Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.9,Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re*.5)*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),ae}),go.Shape.defineFigureGenerator("ACvoltageSource",function(de,z,ee){var ae=new go.Geometry,re=fe*.5,le=.5,ue=.5,pe=.5,Ee=new go.PathFigure((ue-le)*z,pe*ee,!1);return ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,(ue-le+.1)*z,pe*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le-.1)*z,pe*ee,ue*z,(pe-le)*ee,ue*z,(pe+le)*ee)),ae}),go.Shape.defineFigureGenerator("DCvoltageSource",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.75*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae}),go.Shape.defineFigureGenerator("Diode",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.5,.75),ae}),go.Shape.defineFigureGenerator("Wifi",function(de,z,ee){var ae=new go.Geometry,re=z,le=ee;z=z*.38,ee=ee*.6;var ue=fe*.8,pe=.8,Ee=0,Ce=.5,je=(re-z)/2,Le=(le-ee)/2,ke=new go.PathFigure(Ee*z+je,(Ce+pe)*ee+Le,!0);ae.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-pe)*z+je,Ce*ee+Le,(Ee-ue)*z+je,(Ce+pe)*ee+Le,(Ee-pe)*z+je,(Ce+ue)*ee+Le)),ke.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+je,(Ce-pe)*ee+Le,(Ee-pe)*z+je,(Ce-ue)*ee+Le,(Ee-ue)*z+je,(Ce-pe)*ee+Le)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-pe+ue*.5)*z+je,Ce*ee+Le,Ee*z+je,(Ce-pe)*ee+Le,(Ee-pe+ue*.5)*z+je,(Ce-ue)*ee+Le)),ke.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+je,(Ce+pe)*ee+Le,(Ee-pe+ue*.5)*z+je,(Ce+ue)*ee+Le,Ee*z+je,(Ce+pe)*ee+Le).close()),ue=fe*.4,pe=.4,Ee=.2,Ce=.5;var Oe=new go.PathFigure(Ee*z+je,(Ce+pe)*ee+Le,!0);ae.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-pe)*z+je,Ce*ee+Le,(Ee-ue)*z+je,(Ce+pe)*ee+Le,(Ee-pe)*z+je,(Ce+ue)*ee+Le)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+je,(Ce-pe)*ee+Le,(Ee-pe)*z+je,(Ce-ue)*ee+Le,(Ee-ue)*z+je,(Ce-pe)*ee+Le)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-pe+ue*.5)*z+je,Ce*ee+Le,Ee*z+je,(Ce-pe)*ee+Le,(Ee-pe+ue*.5)*z+je,(Ce-ue)*ee+Le)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+je,(Ce+pe)*ee+Le,(Ee-pe+ue*.5)*z+je,(Ce+ue)*ee+Le,Ee*z+je,(Ce+pe)*ee+Le).close()),ue=fe*.2,pe=.2,Ee=.5,Ce=.5;var Fe=new go.PathFigure((Ee-pe)*z+je,Ce*ee+Le,!0);ae.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+je,(Ce-pe)*ee+Le,(Ee-pe)*z+je,(Ce-ue)*ee+Le,(Ee-ue)*z+je,(Ce-pe)*ee+Le)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+pe)*z+je,Ce*ee+Le,(Ee+ue)*z+je,(Ce-pe)*ee+Le,(Ee+pe)*z+je,(Ce-ue)*ee+Le)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+je,(Ce+pe)*ee+Le,(Ee+pe)*z+je,(Ce+ue)*ee+Le,(Ee+ue)*z+je,(Ce+pe)*ee+Le)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-pe)*z+je,Ce*ee+Le,(Ee-ue)*z+je,(Ce+pe)*ee+Le,(Ee-pe)*z+je,(Ce+ue)*ee+Le)),ue=fe*.4,pe=.4,Ee=.8,Ce=.5;var Re=new go.PathFigure(Ee*z+je,(Ce-pe)*ee+Le,!0);ae.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+pe)*z+je,Ce*ee+Le,(Ee+ue)*z+je,(Ce-pe)*ee+Le,(Ee+pe)*z+je,(Ce-ue)*ee+Le)),Re.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+je,(Ce+pe)*ee+Le,(Ee+pe)*z+je,(Ce+ue)*ee+Le,(Ee+ue)*z+je,(Ce+pe)*ee+Le)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+pe-ue*.5)*z+je,Ce*ee+Le,Ee*z+je,(Ce+pe)*ee+Le,(Ee+pe-ue*.5)*z+je,(Ce+ue)*ee+Le)),Re.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+je,(Ce-pe)*ee+Le,(Ee+pe-ue*.5)*z+je,(Ce-ue)*ee+Le,Ee*z+je,(Ce-pe)*ee+Le).close()),ue=fe*.8,pe=.8,Ee=1,Ce=.5;var Ze=new go.PathFigure(Ee*z+je,(Ce-pe)*ee+Le,!0);return ae.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+pe)*z+je,Ce*ee+Le,(Ee+ue)*z+je,(Ce-pe)*ee+Le,(Ee+pe)*z+je,(Ce-ue)*ee+Le)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+je,(Ce+pe)*ee+Le,(Ee+pe)*z+je,(Ce+ue)*ee+Le,(Ee+ue)*z+je,(Ce+pe)*ee+Le)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+pe-ue*.5)*z+je,Ce*ee+Le,Ee*z+je,(Ce+pe)*ee+Le,(Ee+pe-ue*.5)*z+je,(Ce+ue)*ee+Le)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+je,(Ce-pe)*ee+Le,(Ee+pe-ue*.5)*z+je,(Ce-ue)*ee+Le,Ee*z+je,(Ce-pe)*ee+Le).close()),ae}),go.Shape.defineFigureGenerator("Email",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(0,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Move,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.45*z,.54*ee)),le.add(new go.PathSegment(go.PathSegment.Move,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.55*z,.54*ee)),ae}),go.Shape.defineFigureGenerator("Ethernet",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.35*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,0).close());var le=new go.PathFigure(.1*z,ee,!0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,ee).close());var ue=new go.PathFigure(.6*z,ee,!0,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*z,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*z,ee).close());var pe=new go.PathFigure(0,.5*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.5*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.75*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.75*z,.6*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.25*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.25*z,.6*ee)),ae}),go.Shape.defineFigureGenerator("Power",function(de,z,ee){var ae=new go.Geometry,re=fe*.4,le=.4,ue=.5,pe=.5,Ee=Qe(),Ce=Qe(),je=Qe(),Le=Qe();_e(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.5,Ee,Ee,Ce,je,Le);var ke=Ge(Ce.x,Ce.y),Oe=new go.PathFigure(Ce.x*z,Ce.y*ee,!0);ae.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,je.x*z,je.y*ee,Le.x*z,Le.y*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),_e(ue-le,pe,ue-le,pe-re,ue-re,pe-le,ue,pe-le,.5,je,Le,Ce,Ee,Ee),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ce.x*z,Ce.y*ee,je.x*z,je.y*ee,Le.x*z,Le.y*ee)),re=fe*.3,le=.3,_e(ue-le,pe,ue-le,pe-re,ue-re,pe-le,ue,pe-le,.5,je,Le,Ce,Ee,Ee),Oe.add(new go.PathSegment(go.PathSegment.Line,Ce.x*z,Ce.y*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,Le.x*z,Le.y*ee,je.x*z,je.y*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),_e(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.5,Ee,Ee,Ce,je,Le),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ce.x*z,Ce.y*ee,Le.x*z,Le.y*ee,je.x*z,je.y*ee).close());var Oe=new go.PathFigure(.45*z,0,!0);return ae.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Line,.45*z,.5*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.55*z,.5*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.55*z,0).close()),Tt(Ee),Tt(Ce),Tt(je),Tt(Le),Tt(ke),ae.spot1=new go.Spot(.25,.45),ae.spot2=new go.Spot(.75,.8),ae}),go.Shape.defineFigureGenerator("Fallout",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee/2,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,180,360,z/2,ee/2,z/2,ee/2));function le(ue,pe,Ee){ue.add(new go.PathSegment(go.PathSegment.Move,(.3+pe)*z,(.8+Ee)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.5+pe)*z,(.5+Ee)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.1+pe)*z,(.5+Ee)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.3+pe)*z,(.8+Ee)*ee).close())}return le(re,0,0),le(re,.4,0),le(re,.2,-.3),ae}),go.Shape.defineFigureGenerator("IrritationHazard",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.2*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.3*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close()),ae.spot1=new go.Spot(.3,.3),ae.spot2=new go.Spot(.7,.7),ae}),go.Shape.defineFigureGenerator("ElectricalHazard",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.37*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.11*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.77*z,.04*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,.49*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.37*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.63*z,.86*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.77*z,.91*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.34*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.34*z,.78*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.44*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,.56*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee).close()),ae}),go.Shape.defineFigureGenerator("FireHazard",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.1*z,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.29*z,0,-.25*z,.63*ee,.45*z,.44*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.51*z,.42*ee,.48*z,.17*ee,.54*z,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.59*z,.18*ee,.59*z,.29*ee,.58*z,.28*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,.6*ee,.8*z,.34*ee,.88*z,.43*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.88*z,.31*ee,.87*z,.48*ee,.88*z,.43*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,ee,1.17*z,.76*ee,.82*z,.8*ee).close()),ae.spot1=new go.Spot(.07,.445),ae.spot2=new go.Spot(.884,.958),ae}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(de,z,ee){var ae=new go.Geometry,re=.5,le=0,ue=0,pe=re*fe,Ee=.4*Math.SQRT2/2+.5,Ce=.5-.5*Math.SQRT2/2,je=1,Le=.5,ke=.5,Oe=0,Fe=new go.PathFigure(Ee*z,(1-Ce)*ee,!1);return ae.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,je*z,Le*ee,je*z,.7*ee,je*z,Le*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ke+le)*z,(Oe+le)*ee,(.5+re+le)*z,(.5-pe+le)*ee,(.5+pe+le)*z,(.5-re+le)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-re+le)*z,(.5+ue)*ee,(.5-pe+le)*z,(.5-re+ue)*ee,(.5-re+le)*z,(.5-pe+ue)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.35+le)*z,.9*ee,(.5-re+le)*z,(.5+pe+ue)*ee,(.5-pe+le)*z,.9*ee)),Fe.add(new go.PathSegment(go.PathSegment.Move,(.25+le)*z,.8*ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,(.35+le)*z,.9*ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,(.2+le)*z,.95*ee)),ae}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Move,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);ae.add(re);var le=new go.PathFigure(z,ee,!1);ae.add(le);var ue=new go.PathFigure(0,.5*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.5*ee,.2*z,.35*ee,.3*z,.35*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,.7*z,.65*ee,.8*z,.65*ee)),ae}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee).close()),ae}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.2*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee).close());var re=new go.PathFigure(0,.2*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),ae}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.7*z,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,0,.6*z,.5*ee,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,ee,.4*z,.5*ee,z,.5*ee).close());var le=new go.PathFigure(.45*z,.73*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.7*z,.73*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.38*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.63*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.31*z,.27*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.56*z,.27*ee)),ae}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);ae.add(re);var le=new go.PathFigure(.335*z,(1-.555)*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.335*z,(1-.405)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.405)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.555)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,.68*ee,(1-.12)*z,.46*ee,(1-.02)*z,.54*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.335*z,(1-.555)*ee,.02*z,.54*ee,.12*z,.46*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.365*z,(1-.595)*ee));var ue=.5-.285,pe=.5,Ee=ue,Ce=Math.PI/4,je=4*(1-Math.cos(Ce))/(3*Math.sin(Ce)),Le=je*.5,ke=ue,Oe=ue,Fe=je*ke,Re=je*Oe;le.add(new go.PathSegment(go.PathSegment.Bezier,(pe-ke)*z,Ee*ee,(pe-(Fe+ke)/2)*z,(Ee+(Oe+Re)/2)*ee,(pe-ke)*z,(Ee+Re)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,(Ee-Oe)*ee,(pe-ke)*z,(Ee-Re)*ee,(pe-Fe)*z,(Ee-Oe)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(pe+ke)*z,Ee*ee,(pe+Fe)*z,(Ee-Oe)*ee,(pe+ke)*z,(Ee-Re)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*z,(1-.595)*ee,(pe+ke)*z,(Ee+Re)*ee,(pe+(Fe+ke)/2)*z,(Ee+(Oe+Re)/2)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*z,(1-.595)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.555)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.405)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.335*z,(1-.405)*ee));var Ze=new go.PathFigure(.2*z,ee,!1);ae.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Line,.2*z,.8*ee));var ze=new go.PathFigure(.8*z,ee,!1);return ae.add(ze),ze.add(new go.PathSegment(go.PathSegment.Line,.8*z,.8*ee)),ae}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.1*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,ee).close());var le=new go.PathFigure(.2*z,.2*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.8*ee)),ae}),go.Shape.defineFigureGenerator("BpmnEventError",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.66*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.66*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,.5*ee).close()),ae}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);ae.add(re);var le=new go.PathFigure(z,ee,!1);ae.add(le);var ue=new go.PathFigure(.1*z,ee,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee).close()),ae}),go.Shape.defineFigureGenerator("Caution",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.05*z,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,.8*ee,0,ee,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.45*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.1*ee,.5*z,0,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.95*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,ee,z,ee,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.05*z,ee));var le=.05;return re.add(new go.PathSegment(go.PathSegment.Move,(.5-le)*z,.875*ee)),re.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*z,.875*ee,le*z,le*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.325*ee,.575*z,.725*ee,.625*z,.375*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.75*ee,.375*z,.375*ee,.425*z,.725*ee)),ae}),go.Shape.defineFigureGenerator("Recycle",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.45*z,.95*ee,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.185*z,.85*ee,.17*z,.95*ee,.15*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.235*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,.625*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.275*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.05*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.05*z,.575*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.1875*z,.95*ee,0,.675*ee,0,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.45*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.45*z,.775*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.22*z,.775*ee));var le=new go.PathFigure(.475*z,.2*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.225*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.275*z,.175*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.325*z,.05*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,.05*ee,.35*z,0,.375*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.575*z,.375*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.525*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.75*z,.475*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.85*z,.315*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.32*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.65*z,.05*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.575*z,0,.65*z,.05*ee,.625*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.38*z,.0105*ee));var ue=new go.PathFigure(.675*z,.575*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.875*z,.525*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.85*z,.95*ee,z,.8*ee,z,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,.95*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,.725*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.675*z,.575*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.775*z,.775*ee)),ae}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(de,z,ee){var ae=new go.Geometry,re=.5,le=fe*.5,ue=new go.PathFigure(z,re*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*z,ee,z,(re+le)*ee,(re+le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,re*ee,(re-le)*z,ee,0,(re+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*z,0,0,(re-le)*ee,(re-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,re*ee,(re+le)*z,0,z,(re-le)*ee));var pe=new go.PathFigure(re*z,0,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,re*z,.15*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,re*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,re*z,.85*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,0,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.15*z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.85*z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,re*z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.58*z,.1*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,re*z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.78*z,.54*ee)),ae}),go.Shape.defineFigureGenerator("Package",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.15*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(0,.15*ee,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.65*z,.15*ee).close()),ae.spot1=new go.Spot(0,.1),ae.spot2=new go.Spot(1,1),ae}),go.Shape.defineFigureGenerator("Class",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(0,.2*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee).close());var ue=new go.PathFigure(0,.5*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee).close()),ae}),go.Shape.defineFigureGenerator("Component",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee).close());var le=new go.PathFigure(0,.2*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.45*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close());var ue=new go.PathFigure(0,.6*ee,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.45*z,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.45*z,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee).close()),ae}),go.Shape.defineFigureGenerator("Boat Shipment",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.15*z,.6*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.85*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee));var le=new go.PathFigure(.15*z,.6*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),ae}),go.Shape.defineFigureGenerator("Customer/Supplier",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.66*z,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.66*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee).close()),ae}),go.Shape.defineFigureGenerator("Workcell",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae}),go.Shape.defineFigureGenerator("Supermarket",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.66*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.66*ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,.66*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ae}),go.Shape.defineFigureGenerator("TruckShipment",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(z,.8*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee).close());var ue=.1,pe=fe*.1,Ee=.2,Ce=.9,je=new go.PathFigure((Ee-ue)*z,Ce*ee,!0);ae.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(Ce-ue)*ee,(Ee-ue)*z,(Ce-pe)*ee,(Ee-pe)*z,(Ce-ue)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+ue)*z,Ce*ee,(Ee+pe)*z,(Ce-ue)*ee,(Ee+ue)*z,(Ce-pe)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(Ce+ue)*ee,(Ee+ue)*z,(Ce+pe)*ee,(Ee+pe)*z,(Ce+ue)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-ue)*z,Ce*ee,(Ee-pe)*z,(Ce+ue)*ee,(Ee-ue)*z,(Ce+pe)*ee).close()),ue=.1,pe=fe*.1,Ee=.8,Ce=.9;var Le=new go.PathFigure((Ee-ue)*z,Ce*ee,!0);return ae.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(Ce-ue)*ee,(Ee-ue)*z,(Ce-pe)*ee,(Ee-pe)*z,(Ce-ue)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+ue)*z,Ce*ee,(Ee+pe)*z,(Ce-ue)*ee,(Ee+ue)*z,(Ce-pe)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(Ce+ue)*ee,(Ee+ue)*z,(Ce+pe)*ee,(Ee+pe)*z,(Ce+ue)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-ue)*z,Ce*ee,(Ee-pe)*z,(Ce+ue)*ee,(Ee-ue)*z,(Ce+pe)*ee).close()),ae}),go.Shape.defineFigureGenerator("KanbanPost",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.2*z,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),ae}),go.Shape.defineFigureGenerator("Forklift",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,0));var le=new go.PathFigure(0,.5*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var ue=new go.PathFigure(.5*z,.8*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,.8*ee));var pe=new go.PathFigure(.5*z,.7*ee,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee));var Ee=.1,Ce=fe*.1,je=.1,Le=.9,ke=new go.PathFigure((je-Ee)*z,Le*ee,!0);ae.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Le-Ee)*ee,(je-Ee)*z,(Le-Ce)*ee,(je-Ce)*z,(Le-Ee)*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(je+Ee)*z,Le*ee,(je+Ce)*z,(Le-Ee)*ee,(je+Ee)*z,(Le-Ce)*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Le+Ee)*ee,(je+Ee)*z,(Le+Ce)*ee,(je+Ce)*z,(Le+Ee)*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(je-Ee)*z,Le*ee,(je-Ce)*z,(Le+Ee)*ee,(je-Ee)*z,(Le+Ce)*ee)),Ee=.1,Ce=fe*.1,je=.4,Le=.9;var Oe=new go.PathFigure((je-Ee)*z,Le*ee,!0);return ae.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Le-Ee)*ee,(je-Ee)*z,(Le-Ce)*ee,(je-Ce)*z,(Le-Ee)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(je+Ee)*z,Le*ee,(je+Ce)*z,(Le-Ee)*ee,(je+Ee)*z,(Le-Ce)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Le+Ee)*ee,(je+Ee)*z,(Le+Ce)*ee,(je+Ce)*z,(Le+Ee)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(je-Ee)*z,Le*ee,(je-Ce)*z,(Le+Ee)*ee,(je-Ee)*z,(Le+Ce)*ee)),ae}),go.Shape.defineFigureGenerator("RailShipment",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.1*z,.4*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.45*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.45*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.4*ee).close());var le=new go.PathFigure(.45*z,.7*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.55*z,.7*ee));var ue=new go.PathFigure(.55*z,.4*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.4*ee).close());var je=.05,Le=fe*.05,ke=.175,Oe=.95,pe=new go.PathFigure((ke-je)*z,Oe*ee,!0);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Oe-je)*ee,(ke-je)*z,(Oe-Le)*ee,(ke-Le)*z,(Oe-je)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ke+je)*z,Oe*ee,(ke+Le)*z,(Oe-je)*ee,(ke+je)*z,(Oe-Le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Oe+je)*ee,(ke+je)*z,(Oe+Le)*ee,(ke+Le)*z,(Oe+je)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ke-je)*z,Oe*ee,(ke-Le)*z,(Oe+je)*ee,(ke-je)*z,(Oe+Le)*ee));var je=.05,Le=fe*.05,ke=.375,Oe=.95,Ee=new go.PathFigure((ke-je)*z,Oe*ee,!0);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Oe-je)*ee,(ke-je)*z,(Oe-Le)*ee,(ke-Le)*z,(Oe-je)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ke+je)*z,Oe*ee,(ke+Le)*z,(Oe-je)*ee,(ke+je)*z,(Oe-Le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Oe+je)*ee,(ke+je)*z,(Oe+Le)*ee,(ke+Le)*z,(Oe+je)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ke-je)*z,Oe*ee,(ke-Le)*z,(Oe+je)*ee,(ke-je)*z,(Oe+Le)*ee));var je=.05,Le=fe*.05,ke=.625,Oe=.95,Ce=new go.PathFigure((ke-je)*z,Oe*ee,!0);ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Oe-je)*ee,(ke-je)*z,(Oe-Le)*ee,(ke-Le)*z,(Oe-je)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ke+je)*z,Oe*ee,(ke+Le)*z,(Oe-je)*ee,(ke+je)*z,(Oe-Le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Oe+je)*ee,(ke+je)*z,(Oe+Le)*ee,(ke+Le)*z,(Oe+je)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ke-je)*z,Oe*ee,(ke-Le)*z,(Oe+je)*ee,(ke-je)*z,(Oe+Le)*ee));var je=.05,Le=fe*.05,ke=.825,Oe=.95,Fe=new go.PathFigure((ke-je)*z,Oe*ee,!0);ae.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Oe-je)*ee,(ke-je)*z,(Oe-Le)*ee,(ke-Le)*z,(Oe-je)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ke+je)*z,Oe*ee,(ke+Le)*z,(Oe-je)*ee,(ke+je)*z,(Oe-Le)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Oe+je)*ee,(ke+je)*z,(Oe+Le)*ee,(ke+Le)*z,(Oe+je)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ke-je)*z,Oe*ee,(ke-Le)*z,(Oe+je)*ee,(ke-je)*z,(Oe+Le)*ee).close());var Re=new go.PathFigure(0,ee,!1);return ae.add(Re),Re.add(new go.PathSegment(go.PathSegment.Line,z,ee).close()),ae}),go.Shape.defineFigureGenerator("Warehouse",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(0,.2*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee).close());var ue=new go.PathFigure(.15*z,ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.15*z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*z,ee).close());var pe=.05,Ee=fe*.05,Ce=.35,je=.775,Le=new go.PathFigure((Ce-pe)*z,je*ee,!0);return ae.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(je-pe)*ee,(Ce-pe)*z,(je-Ee)*ee,(Ce-Ee)*z,(je-pe)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+pe)*z,je*ee,(Ce+Ee)*z,(je-pe)*ee,(Ce+pe)*z,(je-Ee)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(je+pe)*ee,(Ce+pe)*z,(je+Ee)*ee,(Ce+Ee)*z,(je+pe)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-pe)*z,je*ee,(Ce-Ee)*z,(je+pe)*ee,(Ce-pe)*z,(je+Ee)*ee).close()),ae}),go.Shape.defineFigureGenerator("ControlCenter",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.1*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee).close()),ae}),go.Shape.defineFigureGenerator("Bluetooth",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.75*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),ae}),go.Shape.defineFigureGenerator("Bookmark",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*ee)),ae}),go.Shape.defineFigureGenerator("Bookmark",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*ee)),ae}),go.Shape.defineFigureGenerator("Globe",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,.75*z,0,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,.75*ee,.75*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.25*z,ee,0,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,.25*ee,.25*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,.15*z,.25*ee,.15*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.85*z,.75*ee,.85*z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.1675*z,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8325*z,.15*ee,.35*z,.3*ee,.65*z,.3*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.1675*z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8325*z,.85*ee,.35*z,.7*ee,.65*z,.7*ee)),ae}),go.Shape.defineFigureGenerator("Wave",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.25*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.25*ee,.1*z,0,.2*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,.25*ee,.425*z,.5*ee,.575*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.25*ee,.8*z,0,.9*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.75*ee,.1*z,.5*ee,.2*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,.75*ee,.425*z,ee,.575*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.75*ee,.8*z,.5*ee,.9*z,.5*ee)),ae}),go.Shape.defineFigureGenerator("Operator",function(de,z,ee){var ae=new go.Geometry,re=.3,le=fe*.3,ue=.5,pe=.7,Ee=new go.PathFigure((ue-re)*z,pe*ee,!0);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee));var Ce=new go.PathFigure(0,.7*ee,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,z,.7*ee,0,0,z,0)),ae}),go.Shape.defineFigureGenerator("TripleFanBlades",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*ee,.65*z,.3*ee,.65*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.35*z,.5*ee,.35*z,.3*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.3*z,.6*ee,.1*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*ee,.2*z,ee,.35*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,ee,.7*z,.6*ee,.9*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*ee,.8*z,ee,.65*z,.95*ee)),ae}),go.Shape.defineFigureGenerator("CentrifugalPump",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,0,.075*ee,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,ee,0,ee,.4*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.4*ee,.8*z,ee,.85*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),ae}),go.Shape.defineFigureGenerator("Battery",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.4*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.1*ee));var le=new go.PathFigure(0,.6*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Move,0,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.4*ee)),ae}),go.Shape.defineFigureGenerator("Delete",function(de,z,ee){var ae=new go.Geometry,re=.5,le=fe*.5,ue=.5,pe=.5,Ee=new go.PathFigure((ue-re)*z,pe*ee,!0);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee));var Ce=new go.PathFigure(.15*z,.5*ee,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.85*z,.5*ee)),ae}),go.Shape.defineFigureGenerator("Flag",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.1*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,0,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.1*ee,.15*z,0,.35*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*ee,.65*z,.2*ee,.85*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.5*ee,.85*z,.6*ee,.65*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.35*z,.4*ee,.15*z,.4*ee).close()),ae}),go.Shape.defineFigureGenerator("Help",function(de,z,ee){var ae=new go.Geometry,re=.5,le=fe*.5,ue=.5,pe=.5,Ee=new go.PathFigure((ue-re)*z,pe*ee,!1);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee).close()),re=.05,le=fe*.05,ue=.5,pe=.8;var Ce=new go.PathFigure((ue-re)*z,pe*ee,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee).close()),Ce.add(new go.PathSegment(go.PathSegment.Move,.5*z,.7*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*ee,.75*z,.475*ee,.75*z,.225*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.35*ee,.4*z,.2*ee,.3*z,.25*ee)),ae}),go.Shape.defineFigureGenerator("Location",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,ee,!0).add(new go.PathSegment(go.PathSegment.Line,.75*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.975*z,.025*ee,.5*z,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*z,.5*ee,.5*z,0,.025*z,.025*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.5*z,.2*ee)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*z,.3*ee,.1*z,.1*ee).close()))}),go.Shape.defineFigureGenerator("Lock",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var le=new go.PathFigure(.2*z,.5*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.2*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.3*ee,.25*z,0,.75*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.3*ee)),ae}),go.Shape.defineFigureGenerator("Unlocked",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var le=new go.PathFigure(.2*z,.5*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.2*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.3*ee,.25*z,0,.75*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.35*ee)),ae}),go.Shape.defineFigureGenerator("Gear",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(.9375*z,.56246875*ee,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*z,.4375*ee)).add(new go.PathSegment(go.PathSegment.Line,.80621875*z,.4375*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.763*z,.3316875*ee,.79840625*z,.39915625*ee,.7834375*z,.3635*ee)).add(new go.PathSegment(go.PathSegment.Line,.8566875*z,.23796875*ee)).add(new go.PathSegment(go.PathSegment.Line,.76825*z,.14959375*ee)).add(new go.PathSegment(go.PathSegment.Line,.67596875*z,.24184375*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*z,.19378125*ee,.64228125*z,.2188125*ee,.603875*z,.2021875*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*z,.0625*ee)).add(new go.PathSegment(go.PathSegment.Line,.4375*z,.0625*ee)).add(new go.PathSegment(go.PathSegment.Line,.4375*z,.19378125*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*z,.239375*ee,.39759375*z,.20190625*ee,.36053125*z,.2176875*ee)).add(new go.PathSegment(go.PathSegment.Line,.2379375*z,.14959375*ee)).add(new go.PathSegment(go.PathSegment.Line,.14953125*z,.2379375*ee)).add(new go.PathSegment(go.PathSegment.Line,.23934375*z,.3278125*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*z,.4375*ee,.21765625*z,.36059375*ee,.201875*z,.397625*ee)).add(new go.PathSegment(go.PathSegment.Line,.0625*z,.4375*ee)).add(new go.PathSegment(go.PathSegment.Line,.0625*z,.5625*ee)).add(new go.PathSegment(go.PathSegment.Line,.1938125*z,.5625*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*z,.67596875*ee,.20221875*z,.603875*ee,.21884375*z,.64228125*ee)).add(new go.PathSegment(go.PathSegment.Line,.1495625*z,.76825*ee)).add(new go.PathSegment(go.PathSegment.Line,.238*z,.8566875*ee)).add(new go.PathSegment(go.PathSegment.Line,.3316875*z,.76296875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*z,.80621875*ee,.36353125*z,.78340625*ee,.3991875*z,.79840625*ee)).add(new go.PathSegment(go.PathSegment.Line,.43753125*z,.9375*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*z,.9375*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*z,.80621875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*z,.760625*ee,.602375*z,.79809375*ee,.63946875*z,.78234375*ee)).add(new go.PathSegment(go.PathSegment.Line,.76828125*z,.8566875*ee)).add(new go.PathSegment(go.PathSegment.Line,.85671875*z,.76825*ee)).add(new go.PathSegment(go.PathSegment.Line,.76065625*z,.67221875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*z,.56246875*ee,.78234375*z,.63940625*ee,.798125*z,.602375*ee)).add(new go.PathSegment(go.PathSegment.Line,.9375*z,.56246875*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.5*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*z,.5*ee,.1*z,.1*ee).close()))}),go.Shape.defineFigureGenerator("Hand",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,.3*ee,0,.375*ee,.05*z,.325*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.45*z,.075*ee,.3*z,.225*ee,.4*z,.175*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.525*z,.075*ee,.46*z,.05*ee,.525*z,.05*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.4*ee,.525*z,.275*ee,.475*z,.325*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.55*ee,z,.4*ee,z,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.425*z,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.6*z,.7*ee,.675*z,.55*ee,.675*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.575*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.575*z,.85*ee,.65*z,.7*ee,.65*z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.525*z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.535*z,ee,.61*z,.85*ee,.61*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,.435*z,ee,0,ee).close()),ae}),go.Shape.defineFigureGenerator("Map",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.2*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),re.add(new go.PathSegment(go.PathSegment.Move,.25*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.8*ee)),ae}),go.Shape.defineFigureGenerator("Eject",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee*.7)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.7).close());var le=new go.PathFigure(0,ee*.6,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,0).close()),ae}),go.Shape.defineFigureGenerator("Pencil",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*ee).close()))}),go.Shape.defineFigureGenerator("Building",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*1,ee*1,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.85)),re.add(new go.PathSegment(go.PathSegment.Line,.046*z,ee*.85)),re.add(new go.PathSegment(go.PathSegment.Line,.046*z,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.3)),re.add(new go.PathSegment(go.PathSegment.Line,.046*z,ee*.3)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,ee*.3)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee*.3)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,ee*.85)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee*.85).close());var le=new go.PathFigure(.126*z,.85*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.126*z,.45*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.322*z,.45*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.322*z,.85*ee).close());var ue=new go.PathFigure(.402*z,.85*ee,!1);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.402*z,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.598*z,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.598*z,.85*ee).close());var pe=new go.PathFigure(.678*z,.85*ee,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.678*z,.45*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.874*z,.45*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.874*z,.85*ee).close());var Ee=new go.PathFigure(.5*z,.1*ee,!1);return ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*z,.3*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*z,.3*ee).close()),ae}),go.Shape.defineFigureGenerator("Staircase",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee*1,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*.8)),re.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.8)),re.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.6)),re.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.6)),re.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.4)),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*.4)),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*.2)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.2)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.15)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.15)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.35)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.35)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.15,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.15,ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.95).close()),ae}),go.Shape.defineFigureGenerator("5Bars",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee*1,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.184,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.184,ee*(1-.184)).close());var le=new go.PathFigure(z*.204,ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.204,ee*(1-.184))),le.add(new go.PathSegment(go.PathSegment.Line,z*.388,ee*(1-.184*2))),le.add(new go.PathSegment(go.PathSegment.Line,z*.388,ee*1).close());var ue=new go.PathFigure(z*.408,ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.408,ee*(1-.184*2))),ue.add(new go.PathSegment(go.PathSegment.Line,z*.592,ee*(1-.184*3))),ue.add(new go.PathSegment(go.PathSegment.Line,z*.592,ee*1).close());var pe=new go.PathFigure(z*.612,ee,!0);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*.612,ee*(1-.184*3))),pe.add(new go.PathSegment(go.PathSegment.Line,z*.796,ee*(1-.184*4))),pe.add(new go.PathSegment(go.PathSegment.Line,z*.796,ee*1).close());var Ee=new go.PathFigure(z*.816,ee,!0);return ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,z*.816,ee*(1-.184*4))),Ee.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-.184*5))),Ee.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1).close()),ae}),go.Shape.defineFigureGenerator("PC",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,0).close());var le=new go.PathFigure(z*.055,.07*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.07)),le.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.055,ee*.1).close());var ue=new go.PathFigure(z*.055,.13*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.13)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.16)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.055,ee*.16).close());var pe=new go.PathFigure(z*.055,.18*ee,!0);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.18)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.21)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.055,ee*.21).close());var Ee=new go.PathFigure(z*1,0,!0);return ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,z*.4,0)),Ee.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.65)),Ee.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.65).close()),ae}),go.Shape.defineFigureGenerator("Plane",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.55*z,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.475*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.35*z,.525*ee,0,.4*ee,.225*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,.475*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.325*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.325*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.85*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.2*ee,.975*z,0,z,.08*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.55*z,ee).close()),ae}),go.Shape.defineFigureGenerator("Key",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*1,ee*.5,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.9,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.15,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.15,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.6,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.65,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.7,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.85,.575*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.9,.6*ee).close()),re.add(new go.PathSegment(go.PathSegment.Move,.17*z,.425*ee)),re.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*z,.5*ee,.075*z,.075*ee).close()),ae}),go.Shape.defineFigureGenerator("FilmTape",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,270,180,z*0,z*.3,z*.055)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.08,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.08,ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*1),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*1),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*2),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*2),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*3),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*3),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*4),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*4),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*5),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*5),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*6),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*6),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*7),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*7),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*8),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*8),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*9),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*9),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*10),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*10),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*11),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*11),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*12),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*12),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*13),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*13),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*14),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*14),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*15),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*15),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1));var le=new go.PathFigure(0,0,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*0)),le.add(new go.PathSegment(go.PathSegment.Arc,270,-180,z*1,z*.3,z*.055)),le.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1));var ue=new go.PathFigure(z*.11,ee*.1,!1);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*0),ee*.1)),ue.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*0),ee*.8)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.11,ee*.8).close());var pe=new go.PathFigure(z*(.11+.24133333*1+.028*1),ee*.1,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*1),ee*.1)),pe.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*1),ee*.8)),pe.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*1),ee*.8).close());var Ee=new go.PathFigure(z*(.11+.24133333*2+.028*2),ee*.1,!1);return ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),ee*.1)),Ee.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),ee*.8)),Ee.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*2),ee*.8).close()),ae}),go.Shape.defineFigureGenerator("FloppyDisk",function(de,z,ee){var ae=new go.Geometry,re=8,le=re*fe,ue=new go.PathFigure(re,0,!1);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.86,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.14)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-re,ee,z,ee-le,z-le,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,re,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-re,le,ee,0,ee-le)),ue.add(new go.PathSegment(go.PathSegment.Line,0,re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,re,0,0,le,le,0).close());var pe=new go.PathFigure(z*.83,0,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*.83,ee*.3)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*.3)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*0).close());var Ee=new go.PathFigure(z*.83,ee*1,!1);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,z*.83,ee*.5)),Ee.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*.5)),Ee.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*1).close());var Ce=new go.PathFigure(z*.78,ee*.05,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.05)),Ce.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.25)),Ce.add(new go.PathSegment(go.PathSegment.Line,z*.78,ee*.25).close()),ae}),go.Shape.defineFigureGenerator("SpeechBubble",function(de,z,ee){var ae=de?de.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=15),ae=Math.min(ae,z/3),ae=Math.min(ae,ee/3);var re=ae*fe,le=ee*.8,ue=new go.Geometry,pe=new go.PathFigure(ae,0,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z-ae,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z,ae,z-re,0,z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,z,le-ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z-ae,le,z,le-re,z-re,le)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.7,le)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.55,le)),pe.add(new go.PathSegment(go.PathSegment.Line,ae,le)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,le-ae,re,le,0,le-re)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ae,0,0,re,re,0).close()),re>1?(ue.spot1=new go.Spot(0,0,re,re),ue.spot2=new go.Spot(1,.8,-re,-re)):(ue.spot1=go.Spot.TopLeft,ue.spot2=new go.Spot(1,.8)),ue}),go.Shape.defineFigureGenerator("Repeat",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*.45,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*.9)),re.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.9)),re.add(new go.PathSegment(go.PathSegment.Line,z*.65,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*.45).close());var le=new go.PathFigure(z*1,ee*.55,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.55)),le.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*.55)),le.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*.1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*.55).close()),ae}),go.Shape.defineFigureGenerator("Windows",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close()).add(new go.PathSegment(go.PathSegment.Move,.4*z,.4*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*z,.8*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.2*z,.1*ee)).add(new go.PathSegment(go.PathSegment.Line,.2*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.1*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.1*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.1*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee).close()))}),go.Shape.defineFigureGenerator("Terminal",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*.1,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.9)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*.9).close());var le=new go.PathFigure(z*.1,ee*.2,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.1,ee*.25)),le.add(new go.PathSegment(go.PathSegment.Line,z*.22,ee*.285)),le.add(new go.PathSegment(go.PathSegment.Line,z*.1,ee*.32)),le.add(new go.PathSegment(go.PathSegment.Line,z*.1,ee*.37)),le.add(new go.PathSegment(go.PathSegment.Line,z*.275,ee*.32)),le.add(new go.PathSegment(go.PathSegment.Line,z*.275,ee*.25).close());var ue=new go.PathFigure(z*.28,ee*.37,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.37)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.41)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.28,ee*.41).close()),ae}),go.Shape.defineFigureGenerator("Beaker",function(de,z,ee){var ae=new go.Geometry,re=15,le=re*fe,ue=new go.PathFigure(z*.62,ee*.475,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-re,ee,z,ee-le,z-le,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,re,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-re,le,ee,0,ee-le)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.38,ee*.475)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.38,ee*.03)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.62,ee*.03).close()),le>1?(ae.spot1=new go.Spot(0,0,le,le),ae.spot2=new go.Spot(1,1,-le,-le)):(ae.spot1=go.Spot.TopLeft,ae.spot2=go.Spot.BottomRight),ae}),go.Shape.defineFigureGenerator("Download",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*1,!0);ae.add(re);var le=.1/.3;re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.755,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.93,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.61,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.39,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.07,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*(1-le)).close());var ue=new go.PathFigure(z*.4,ee*0,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.26,ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.66)),ue.add(new go.PathSegment(go.PathSegment.Line,z*(1-.26),ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*0).close()),ae}),go.Shape.defineFigureGenerator("Bin",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*1,!0);ae.add(re);var le=.1/.3;return re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.755,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.93,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.61,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.39,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.07,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*(1-le)).close()),ae}),go.Shape.defineFigureGenerator("Upload",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*1,!0);ae.add(re);var le=.1/.3;re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.755,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.93,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.61,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.39,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.07,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*(1-le)).close());var ue=new go.PathFigure(z*.5,ee*0,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.26,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.63)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.63)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.74,ee*.25).close()),ae}),go.Shape.defineFigureGenerator("EmptyDrink",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*.15,ee*0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.85,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*1).close()),ae}),go.Shape.defineFigureGenerator("Drink",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*.15,ee*0,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.85,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*1).close());var le=new go.PathFigure(z*.235,ee*.28,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.765,ee*.28)),le.add(new go.PathSegment(go.PathSegment.Line,z*.655,ee*.97)),le.add(new go.PathSegment(go.PathSegment.Line,z*.345,ee*.97).close()),ae}),go.Shape.defineFigureGenerator("4Arrows",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*.5,ee*0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.65,ee*.25)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.25)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.35)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.5)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.65)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.65,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.65)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*.5)),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.35)),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.25)),re.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.25).close()),ae}),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")},80727: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 bn={},an="5.0",Ge={},Qe=null,Tt=!1,oe=!1,_e=null,Ne=!1,ve=null,fe=null,be=0;be<arguments.length;be++){var Pe=arguments[be];if(Pe!==null)switch(typeof Pe){case"number":an=Pe.toFixed(1);break;case"string":Pe.match(new RegExp("^[0-9]\\.[0-9]+$"))?an=Pe:_e=Pe;break;case"object":typeof Pe.is3D!="undefined"?Qe=Pe:Ge=Pe;break;case"boolean":Tt=Pe,oe=!0;break}}Qe===null&&(Qe={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Ge.material_id!==void 0&&!oe&&(Tt=!0)),_e!==null&&Ge.id===void 0&&(Ge.id=_e);var ye="",we="",me=!1,Se=null,de=null,z=null,ee=!1,ae=null,re=null,le=null,ue=null,pe=null;Ge.height!==void 0&&(Ge.height=Math.round(Ge.height)),Ge.width!==void 0&&(Ge.width=Math.round(Ge.width));var Ee=function(vt){return parseFloat(vt)>4?parseFloat(vt):5};bn.setHTML5Codebase=function(vt,mt){fe=vt,gt(vt,mt)},bn.setJavaCodebase=bn.setJavaCodebaseVersion=bn.isCompiledInstalled=bn.setPreCompiledScriptPath=bn.setPreCompiledResourcePath=function(){},bn.setHTML5CodebaseVersion=function(vt,mt){var xt=parseFloat(vt);if(xt!==NaN&&xt<5){console.log("The GeoGebra HTML5 codebase version "+xt+" is deprecated. Using version latest instead.");return}ve=vt,at(vt,mt)},bn.getHTML5CodebaseVersion=function(){return de},bn.getParameters=function(){return Ge},bn.setFontsCSSURL=function(vt){ue=vt},bn.setGiacJSURL=function(vt){},bn.setJNLPFile=function(vt){ye=vt},bn.setJNLPBaseDir=function(vt){},bn.inject=function(){function vt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var mt="auto",xt=Ge.id,At,kt=!1,Wt=0;Wt<arguments.length;Wt++){var Et=arguments[Wt];typeof Et=="string"?(Et=Et.toLowerCase(),Et.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?mt=Et:xt=arguments[Wt]):typeof Et=="boolean"?kt=Et:Et instanceof HTMLElement&&(At=Et)}St();function St(){if(!Ne){setTimeout(St,200);return}mt=bt(mt);var tt=At||document.getElementById(xt);if(!tt){console.log("possibly bug on ajax loading? ");return}if(bn.removeExistingApplet(tt,!1),Ge.width===void 0&&tt.clientWidth&&(Ge.width=tt.clientWidth),Ge.height===void 0&&tt.clientHeight&&(Ge.height=tt.clientHeight),!(Ge.width&&Ge.height)&&mt==="html5"&&(delete Ge.width,delete Ge.height),Se=mt,mt==="screenshot")ze(tt,Ge);else{var ft=!1;Ge.hasOwnProperty("playButton")&&Ge.playButton||Ge.hasOwnProperty("clickToLoad")&&Ge.clickToLoad?ft=!0:Ge.hasOwnProperty("playButtonAutoDecide")&&Ge.playButtonAutoDecide&&(ft=(!Ce()||vt())&&je()),ft?(Se="screenshot",ot(tt,Ge,kt,mt)):Ze(tt,Ge,kt)}}};function Ce(){try{return window.self!==window.top}catch(vt){return!0}}function je(){return Ge.hasOwnProperty("screenshotGenerator")&&Ge.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}bn.getViews=function(){return Qe},bn.isJavaInstalled=function(){return!1};var Le=function(vt){var mt=function(Wt){var Et=JSON.parse(Wt),St=function($e){return $e.type=="G"||$e.type=="E"},tt=Et.elements?Et.elements.filter(St)[0]:Et;if(!tt||!tt.url){xt();return}Ge.fileName=tt.url,ke(tt.settings||{}),Qe.is3D=!0;var ft="https://www.geogebra.org/images/";bn.setPreviewImage(ae||tt.previewUrl,ft+"GeoGebra_loading.png",ft+"applet_play.png"),vt()},xt=function(){Ge.onError&&Ge.onError(),Ct("Error: Fetching material (id "+Ge.material_id+") failed.",Ge)},At=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",kt="/materials/"+Ge.material_id+"?scope=basic";Oe("https://"+At+"/api/proxy.php?path="+encodeURIComponent(kt),mt,xt)};function ke(vt){var mt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(xt){vt[xt]=!!vt[xt]}),mt.forEach(function(xt){Ge[xt]===void 0&&vt[xt]!==void 0&&(Ge[xt]=vt[xt])}),Ge.showToolBarHelp===void 0&&(Ge.showToolBarHelp=Ge.showToolBar)}function Oe(vt,mt,xt){var At=new XMLHttpRequest;At.open("GET",vt),At.onload=function(){mt(At.responseText)},At.onerror=xt,At.send()}bn.isHTML5Installed=function(){return!0},bn.getLoadedAppletType=function(){return Se},bn.setPreviewImage=function(vt,mt,xt){ae=vt,re=mt,le=xt},bn.removeExistingApplet=function(vt,mt){var xt;typeof vt=="string"&&(vt=document.getElementById(vt)),Se=null;var At=null;for(xt=0;xt<vt.childNodes.length;xt++){var kt=vt.childNodes[xt],Wt=kt.className;Wt==="applet_screenshot"?mt?(kt.style.display="block",Se="screenshot"):kt.style.display="none":Wt!=="applet_scaler prerender"&&(vt.removeChild(kt),At=Wt&&Wt.indexOf("appletParameters")!=-1?kt.id:null,xt--)}var Et=Ge.id!==void 0?Ge.id:At,St=window[Et];St&&typeof St.getBase64=="function"&&(St.remove(),window[Et]=null)},bn.refreshHitPoints=function(){if(Ee(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var vt=bn.getAppletObject();return vt&&typeof vt.recalculateEnvironments=="function"?(vt.recalculateEnvironments(),!0):!1},bn.startAnimation=function(){var vt=bn.getAppletObject();return vt&&typeof vt.startAnimation=="function"?(vt.startAnimation(),!0):!1},bn.stopAnimation=function(){var vt=bn.getAppletObject();return vt&&typeof vt.stopAnimation=="function"?(vt.stopAnimation(),!0):!1},bn.getAppletObject=function(){var vt=Ge.id!==void 0?Ge.id:"ggbApplet";return window[vt]},bn.resize=function(){};var Fe=function(vt,mt,xt){var At=document.createElement("param");At.setAttribute("name",mt),At.setAttribute("value",xt),vt.appendChild(At)},Re=function(vt){return vt&&vt!=="false"},Ze=function(vt,mt,xt){Ee(de)<=4.2&&(xt=!0);var At=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==de||ggbHTML5LoadedCodebaseIsWebSimple&&!ee)&&(At=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var kt=document.createElement("div");kt.classList.add("appletParameters","notranslate");var Wt=mt.width,Et=mt.height;if(mt.disableAutoScale=mt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():mt.disableAutoScale,mt.width!==void 0)if(Ee(de)<=4.4)Re(mt.showToolBar)&&(mt.height-=7),Re(mt.showAlgebraInput)&&(mt.height-=37),mt.width<605&&Re(mt.showToolBar)&&(mt.width=605,Wt=605);else{var St=100;(Re(mt.showToolBar)||Re(mt.showMenuBar))&&(mt.hasOwnProperty("customToolBar")&&(mt.customToolbar=mt.customToolBar),St=Re(mt.showMenuBar)?245:155),Wt<St&&(mt.width=St,Wt=St)}kt.style.border="none",kt.style.display="inline-block";for(var tt in mt)mt.hasOwnProperty(tt)&&tt!=="appletOnLoad"&&kt.setAttribute("data-param-"+tt,mt[tt]);ue&&kt.setAttribute("data-param-fontscssurl",ue),bn.resize=function(){GGBAppletUtils.responsiveResize(vt,mt)},window.addEventListener("resize",function(Ie){bn.resize()});var ft=typeof mt.appletOnLoad=="function"?mt.appletOnLoad:function(){};if(!xt&&mt.width!==void 0){mt.hasOwnProperty("showSplash")||kt.setAttribute("data-param-showSplash","false");var $e=vt.querySelector(".applet_scaler.prerender"),lt=$e!==null;if(lt)var Pt=$e.querySelector(".ggb_preview");else{var Pt=pt(Wt,Et,mt.borderColor,!1);$e=document.createElement("div"),$e.className="applet_scaler",$e.style.position="relative",$e.style.display="block",$e.style.width=Wt+"px",$e.style.height=Et+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner($e,"66%"),Ee(de)>=5?(mt.appletOnLoad=function(Ie){var Xe=vt.querySelector(".ggb_preview");Xe&&Xe.parentNode.removeChild(Xe),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner($e),window.GGBT_wsf_view&&$(window).trigger("resize"),ft(Ie)},lt||$e.appendChild(Pt)):kt.appendChild(Pt),$e.appendChild(kt),lt||vt.appendChild($e),setTimeout(function(){bn.resize()},1)}else{var dt=document.createElement("div");dt.className="applet_scaler",dt.style.position="relative",dt.style.display="block",dt.appendChild(kt),vt.appendChild(dt),mt.appletOnLoad=function(Ie){bn.resize(),ft(Ie)}}function et(Ie,Xe){Xe&&typeof Xe.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Ie,Xe.appletOnLoad):renderGGBElement(Ie),Ct("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Xe)}function Ve(Ie,Xe){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Ie,params:Xe}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(yt){et(yt.article,yt.params)}),html5AppletsToProcess=null)},Ee(de)<5&&(Ie.className+=" geogebraweb")):et(Ie,Xe)}if(At){scriptLoadStarted=!0;for(var He=0;He<kt.childNodes.length;He++){var nt=kt.childNodes[He].tagName;nt==="TABLE"&&(kt.removeChild(kt.childNodes[He]),He--)}if(ggbHTML5LoadedScript!==null){var ut=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');ut!=null&&ut.parentNode.removeChild(ut)}var We=document.createElement("script"),De=function(){Ve(kt,mt)};We.src=we+z,ggbHTML5LoadedCodebaseIsWebSimple=ee,ggbHTML5LoadedCodebaseVersion=de,ggbHTML5LoadedScript=We.src,Ct("GeoGebra HTML5 codebase loaded: '"+we+"'.",mt),!fe&&(!ve||ve=="5.0")?(ee?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),De()):we.requirejs?__webpack_require__.e(4184).then(function(){var Ie=[__webpack_require__(74620)];De.apply(null,Ie)}.bind(this)).catch(__webpack_require__.oe):(We.onload=De,vt.appendChild(We))}else Ve(kt,mt);mt.height=Et,mt.width=Wt},ze=function(vt,mt,xt){var At=pt(mt.width,mt.height,mt.borderColor,xt),kt=document.createElement("div");kt.style.position="relative",kt.style.display="block",kt.style.width=mt.width+"px",kt.style.height=mt.height+"px",kt.className="applet_screenshot applet_scaler"+(xt?" applet_screenshot_play":""),kt.appendChild(At);var Wt=GGBAppletUtils.getScale(mt,vt,xt);xt?(vt.appendChild(ct()),window.GGBT_wsf_view||(vt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(kt,"66%"),vt.appendChild(kt),Wt!==1&&!isNaN(Wt)&&(GGBAppletUtils.scaleElement(kt,Wt),kt.style.width=mt.width+"px",kt.style.height=mt.height+"px",kt.parentNode.style.width=mt.width*Wt+"px",kt.parentNode.style.height=mt.height*Wt+"px"),bn.resize=function(){Ke(vt,At,kt,xt)},window.addEventListener("resize",function(Et){bn.resize()}),bn.resize()};function Ke(vt,mt,xt,At){if(vt.contains(mt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(vt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(vt)}var kt=GGBAppletUtils.getScale(Ge,vt,At);xt.parentNode!==null&&(!isNaN(kt)&&kt!==1?(GGBAppletUtils.scaleElement(xt,kt),xt.parentNode.style.width=Ge.width*kt+"px",xt.parentNode.style.height=Ge.height*kt+"px"):(GGBAppletUtils.scaleElement(xt,1),xt.parentNode.style.width=Ge.width+"px",xt.parentNode.style.height=Ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(vt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}bn.onExitFullscreen=function(vt,mt){mt.appendChild(vt)};var ot=function(vt,mt,xt,At){ze(vt,mt,!0);for(var kt=function(){var St=[];for(Et=0;Et<vt.childNodes.length;Et++)St.push(vt.childNodes[Et]);if(window.GGBT_wsf_view){var tt=window.GGBT_wsf_view.renderFullScreen(vt,mt.id),ft=document.getElementById("fullscreencontainer"),$e=jQuery(vt).find(".fullscreencontent");$e.length>0?(tt.remove(),$e.attr("id","fullscreencontent").show(),jQuery(ft).append($e),window.dispatchEvent(new Event("resize"))):Ze(tt,mt,!1),window.GGBT_wsf_view.launchFullScreen(ft)}else Se=At,Ze(vt,mt,!1);if(!window.GGBT_wsf_view)for(Et=0;Et<St.length;Et++)vt.removeChild(St[Et])},Wt=vt.getElementsByClassName("ggb_preview_play"),Et=0;Et<Wt.length;Et++)Wt[Et].addEventListener("click",kt,!1),Wt[Et].addEventListener("ontouchstart",kt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(vt),je()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},ct=function(){var vt=document.createElement("div");if(vt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var mt='.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");}',xt=document.createElement("style");xt.styleSheet?xt.styleSheet.cssText=mt:xt.appendChild(document.createTextNode(mt)),document.getElementsByTagName("head")[0].appendChild(xt)}return vt},pt=function(vt,mt,xt,At){var kt=document.createElement("div");kt.className="ggb_preview",kt.style.position="absolute",kt.style.zIndex="90",kt.style.width=vt-2+"px",kt.style.height=mt-2+"px",kt.style.top="0px",kt.style.left="0px",kt.style.overflow="hidden",kt.style.backgroundColor="white";var Wt="lightgrey";xt!==void 0&&(xt==="none"?Wt="transparent":Wt=xt),kt.style.border="1px solid "+Wt;var Et=document.createElement("img");if(Et.style.position="relative",Et.style.zIndex="1000",Et.style.top="-1px",Et.style.left="-1px",ae!==null&&Et.setAttribute("src",ae),Et.style.opacity=.7,re!==null){var St,tt,ft;if(!At){St=document.createElement("img"),St.style.position="absolute",St.style.zIndex="1001",St.style.opacity=1,Et.style.opacity=.3,tt=360,tt>vt/4*3&&(tt=vt/4*3),ft=tt/5.8,St.setAttribute("src",re),St.setAttribute("width",tt),St.setAttribute("height",ft);var $e=(vt-tt)/2,lt=(mt-ft)/2;St.style.left=$e+"px",St.style.top=lt+"px",kt.appendChild(St)}}return kt.appendChild(Et),kt},bt=function(vt){return vt=vt.toLowerCase(),vt==="html5"||vt==="screenshot"?vt:"html5"},qe=["web","webSimple","web3d","tablet","tablet3d","phone"],at=function(vt,mt){if(de=vt,mt){gt(de,!0);return}var xt=!Tt;if(xt){var At=Ee(de);!isNaN(At)&&At<4.4&&(xt=!1)}var kt,Wt;window.location.protocol.substr(0,4)==="http"?kt=window.location.protocol:kt="http:";var Et=de.indexOf("//");Et>0?Wt=de:Et===0?Wt=kt+de:Wt="https://www.geogebra.org/apps/5.2.814.0/";for(var St in qe)if(de.slice(qe[St].length*-1)===qe[St]||de.slice((qe[St].length+1)*-1)===qe[St]+"/"){gt(Wt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&xt&&!Qe.is3D&&!Qe.AV&&!Qe.SV&&!Qe.CV&&!Qe.EV2&&!Qe.CP&&!Qe.PC&&!Qe.DA&&!Qe.FI&&!Qe.PV&&!Re(Ge.showToolBar)&&!Re(Ge.showMenuBar)&&!Re(Ge.showAlgebraInput)&&!Re(Ge.enableRightClick)&&(!Ge.appName||Ge.appName=="classic")?Wt+="webSimple/":Wt+="web3d/",gt(Wt,!1)},gt=function(vt,mt){if(vt.requirejs){we=vt;return}vt.slice(-1)!=="/"&&(vt+="/"),we=vt,mt===null&&(mt=vt.indexOf("http")===-1),me=mt,z="web.nocache.js",ee=!1;var xt=we.split("/");xt.length>1&&(!mt&&xt[xt.length-2]==="webSimple"?(z="webSimple.nocache.js",ee=!0):qe.indexOf(xt[xt.length-2])>=0&&(z=xt[xt.length-2]+".nocache.js")),xt=vt.split("/"),de=xt[xt.length-3],de.substr(0,4)==="test"?de=de.substr(4,1)+"."+de.substr(5,1):(de.substr(0,3)==="war"||de.substr(0,4)==="beta")&&(de="5.0");var At=parseFloat(de);At!==NaN&&At<5&&vt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+At+" is deprecated. Using version latest instead."),at("5.0",mt))},Ct=function(vt,mt){window.console&&window.console.log&&(!mt||typeof mt.showLogging=="undefined"||mt.showLogging&&mt.showLogging!=="false")&&console.log(vt)};Ge.material_id!==void 0?Le(wt):wt();function wt(){var vt=an;ve!==null?vt=ve:parseFloat(vt)<5&&(vt="5.0"),at(vt,!1),fe!==null&>(fe,me),Ne=!0}return bn},GGBAppletUtils=function(){"use strict";function bn(){return window.GGBT_wsf_edit!==void 0}function an(Ne,ve){ve!=1?(Ne.style.transformOrigin="0% 0% 0px",Ne.style.webkitTransformOrigin="0% 0% 0px",Ne.style.transform="scale("+ve+","+ve+")",Ne.style.webkitTransform="scale("+ve+","+ve+")",Ne.style.maxWidth="initial",Ne.querySelector(".ggb_preview")!==null&&(Ne.querySelector(".ggb_preview").style.maxWidth="initial"),Ne.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ne.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ne.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ne.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ne.style.transform="none",Ne.style.webkitTransform="none")}function Ge(Ne,ve,fe,be,Pe,ye){var we=null;if(ye!=null&&ye!="")for(var me=Ne.parentNode;me!=null;)if((" "+me.className+" ").indexOf(" "+ye+" ")>-1){we=me;break}else me=me.parentNode;var Se=0,de=0,z=0,ee=0,ae=0,re=0,le=0;if(we)Se=we.offsetWidth,de=Math.max(be?we.offsetWidth:0,we.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Se=Math.min(window.innerWidth,document.documentElement.clientWidth),de=Math.min(window.innerHeight,document.documentElement.clientHeight),z=Se):(Se=window.innerWidth,de=window.innerHeight,z=window.innerWidth),Ne){var ue=Ne.getBoundingClientRect();ue.left>0&&ue.left<=Se&&(Pe===void 0||!Pe)&&(document.dir==="rtl"?(ae=Se-ue.width-ue.left,re=z<=480?10:30):(re=ue.left,ae=z<=480?10:30),ee=re+ae)}if(Ne&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var pe=Ne.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ee=40,le=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee=0,le=40)}}return Ne&&((fe===void 0||!fe)&&ve>0&&ve+ee<Se?Se=ve:Se-=ee,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(fe===void 0||!fe)&&(de-=le)),{width:Se,height:de}}function Qe(Ne,ve,fe,be,Pe){if(Ne.isScreenshoGenerator)return 1;var ye=be!==void 0&&be,we=Ne.noScaleMargin!=null&&Ne.noScaleMargin,me=function(pe){return pe&&pe!=="false"},Se=me(Ne.autoHeight),de=Ge(ve,Ne.width,fe,Se,ye&&window.GGBT_wsf_view||we,Pe),z=parseInt(de.width),ee=Ne.width,ae=Ne.height;if(ee===void 0){var re=ve.querySelector(".appletParameters");re&&(ee=re.offsetWidth,ae=re.offsetHeight)}var le=z/ee,ue=ye?1:de.height/ae;return fe!==void 0&&!fe&&(le=Math.min(1,le),ue=Math.min(1,ue)),Math.min(le,ue)}function Tt(Ne,ve,fe){var be=1,Pe,ye=!1;if(Ne.hasOwnProperty("allowUpscale")&&(ye=Ne.allowUpscale),Ne.hasOwnProperty("scale")&&(be=parseFloat(Ne.scale),(isNaN(be)||be===null||be===0)&&(be=1),be>1&&(ye=!0)),ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ye=!0),!(Ne.hasOwnProperty("disableAutoScale")&&Ne.disableAutoScale))Pe=Qe(Ne,ve,ye,fe,Ne.scaleContainerClass);else return be;return ye&&(!Ne.hasOwnProperty("scale")||be===1)?Pe:Math.min(be,Pe)}function oe(Ne){var ve=Math.min(window.innerWidth,document.documentElement.clientWidth),fe=Math.min(window.innerHeight,document.documentElement.clientHeight),be=Ne.getBoundingClientRect(),Pe=(ve-be.width)/2,ye=(fe-be.height)/2;ye<0&&(ye=0),Ne.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Pe<40?Ne.style.left="40px":Ne.style.left=Pe+"px",Ne.style.top=ye+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ye<40?Ne.style.top="40px":Ne.style.top=ye+"px",Ne.style.left=Pe+"px")}function _e(Ne,ve){var fe=Ne.querySelector(".appletParameters");if(fe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ve.id!==fe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ne)}if(fe.parentElement&&/fullscreen/.test(fe.parentElement.className))return;var be=Tt(ve,Ne);bn()&&fe.setAttribute("data-param-scale",be);for(var Pe=null,ye=0;ye<Ne.childNodes.length;ye++)if(Ne.childNodes[ye].className!==void 0&&Ne.childNodes[ye].className.match(/^applet_scaler/)){Pe=Ne.childNodes[ye];break}if(Pe!==null&&Pe.querySelector(".noscale")!==null)return;var we=ve.id!==void 0?ve.id:"ggbApplet",me=window[we];(me==null||!me.recalculateEnvironments)&&Pe!==null&&!Pe.className.match(/fullscreen/)&&(Pe.parentNode.style.transform="",!isNaN(be)&&be!==1?(Pe.parentNode.style.width=ve.width*be+"px",Pe.parentNode.style.height=ve.height*be+"px",an(Pe,be)):(an(Pe,1),Pe.parentNode.style.width=ve.width+"px",Pe.parentNode.style.height=ve.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&oe(Ne),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(fe).parents(".content-added-content"))}}return{responsiveResize:_e,isFlexibleWorksheetEditor:bn,positionCenter:oe,getScale:Tt,scaleElement:an}}();__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 bn=n.location.search;return bn.indexOf(J)!=-1||bn.indexOf(K)!=-1}function q(bn,an){}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(bn){var an=s[L].bindings;s[L].bindings=function(){for(var Ge=an?an():{},Qe=bn[webModule.__softPermutationId],Tt=O;Tt<Qe.length;Tt++){var oe=Qe[Tt];Ge[oe[O]]=oe[P]}return Ge}};var t;function u(){return v(),t}function v(){if(!t){var bn=o.createElement(Q);if(bn.id=L,bn.style.cssText=R+S,bn.tabIndex=-1,o.body.appendChild(bn),t=bn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var an=document.compatMode==U?V:W;t.write(an+X),t.close()}}}function w(bn){function an(Qe){function Tt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var oe=Tt();if(oe){Qe();return}function _e(){if(!oe){if(!Tt())return;oe=!0,Qe(),o.removeEventListener&&o.removeEventListener(Z,_e,!1),Ne&&clearInterval(Ne)}}o.addEventListener&&o.addEventListener(Z,_e,!1);var Ne=setInterval(function(){_e()},$)}function Ge(Qe){var Tt=u(),oe=Tt.body,_e=Tt.createElement(_);_e.language=ab,_e.crossOrigin=W,_e.src=Qe,webModule.__errFn&&(_e.onerror=function(){webModule.__errFn(L,new Error(bb+Qe))}),oe.appendChild(_e)}an(function(){Ge(bn)})}webModule.__startLoadingFragment=function(bn){return C(bn)},webModule.__installRunAsyncCode=function(bn){var an=u(),Ge=an.body,Qe=an.createElement(_);Qe.language=ab,Qe.text=bn,Ge.appendChild(Qe),Ge.removeChild(Qe)};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(bn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(bn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(bn){var an=c[bn];return an==null?null:an},r=d,webModule.__errFn=e}function B(){function bn(Ne){var ve=Ne.lastIndexOf(rb);ve==-1&&(ve=Ne.length);var fe=Ne.indexOf(sb);fe==-1&&(fe=Ne.length);var be=Ne.lastIndexOf(tb,Math.min(fe,ve));return be>=O?Ne.substring(O,be+P):W}function an(Ne){if(!Ne.match(/^\w+:\/\//)){var ve=o.createElement(ub);ve.src=Ne+vb,Ne=bn(ve.src)}return Ne}function Ge(){var Ne=__gwt_getMetaProperty(wb);return Ne!=null?Ne:W}function Qe(){for(var Ne=o.getElementsByTagName(_),ve=O;ve<Ne.length;++ve)if(Ne[ve].src.indexOf(xb)!=-1)return bn(Ne[ve].src);return W}function Tt(){var Ne=o.getElementsByTagName(yb);return Ne.length>O?Ne[Ne.length-P].href:W}function oe(){var Ne=o.location;return Ne.href==Ne.protocol+zb+Ne.host+Ne.pathname+Ne.search+Ne.hash}var _e=Ge();return _e==W&&(_e=Qe()),_e==W&&(_e=Tt()),_e==W&&oe()&&(_e=bn(o.location.href)),_e=an(_e),_e}function C(bn){return bn.match(/^\//)||bn.match(/^[a-zA-Z]+:\/\//)?bn:webModule.__moduleBase+bn}function D(){var bn=[],an=O,Ge=[],Qe=[];function Tt(Ne){var ve=Qe[Ne](),fe=Ge[Ne];if(ve in fe)return ve;var be=[];for(var Pe in fe)be[fe[Pe]]=Pe;throw r&&r(Ne,be,ve),null}if(__gwt_isKnownPropertyValue=function(Ne,ve){return ve in Ge[Ne]},webModule.__getPropMap=function(){var Ne={};for(var ve in Ge)Ge.hasOwnProperty(ve)&&(Ne[ve]=Tt(ve));return Ne},webModule.__computePropValue=Tt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var oe;try{oe=Cb;var _e=oe.indexOf(Db);_e!=-1&&(an=parseInt(oe.substring(_e+P),$),oe=oe.substring(O,_e))}catch(Ne){}return webModule.__softPermutationId=an,C(oe+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})()},77903:function(bn,an,Ge){"use strict";Ge.d(an,{Ax:function(){return _e},Ds:function(){return Ne},KI:function(){return fe},SI:function(){return oe},f1:function(){return Tt}});var Qe=Ge(3294);function Tt(be){let Pe=!0;if(be.length>0){for(let ye=0;ye<be.length;ye++)if(be[ye].compile_success==0||!be[ye].compile_success){Pe=!1;break}}else Pe=!1;return Pe}function oe(be,Pe=""){let ye=[];for(let we=0;we<be.length;we++){let me=be[we],Se=Pe?`${Pe}/${me.name}`:`${me.name}`;ye.push({title:me.name,type:me.type,isLeaf:me.type!=="tree",key:Se})}return ye}function _e(be,Pe,ye){for(let we=0;we<be.length;we++){let me=be[we];if(me.key===Pe){me.children=ye;break}me.children&&_e(me.children,Pe,ye)}return be}function Ne(be,Pe,ye){let we;return function(){let me=this,Se=arguments,de=function(){we=null,ye||be.apply(me,Se)},z=ye&&!we;clearTimeout(we),we=setTimeout(de,Pe),z&&be.apply(me,Se)}}const ve=!0,fe=Qe.Z.API_SERVER},16406:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return ut}});var Qe=Ge(59301),Tt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},oe=Ge(92310),_e=Ge.n(oe),Ne=Ge(71418);var ve=function(We,De){return(ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ie,Xe){Ie.__proto__=Xe}||function(Ie,Xe){for(var yt in Xe)Object.prototype.hasOwnProperty.call(Xe,yt)&&(Ie[yt]=Xe[yt])})(We,De)};function fe(We,De){function Ie(){this.constructor=We}ve(We,De),We.prototype=De===null?Object.create(De):(Ie.prototype=De.prototype,new Ie)}function be(We,De,Ie,Xe){return new(Ie||(Ie=Promise))(function(yt,Ye){function jt(It){try{en(Xe.next(It))}catch(Ut){Ye(Ut)}}function Ht(It){try{en(Xe.throw(It))}catch(Ut){Ye(Ut)}}function en(It){var Ut;It.done?yt(It.value):(Ut=It.value,Ut instanceof Ie?Ut:new Ie(function(tn){tn(Ut)})).then(jt,Ht)}en((Xe=Xe.apply(We,De||[])).next())})}function Pe(We,De){var Ie,Xe,yt,Ye,jt={label:0,sent:function(){if(1&yt[0])throw yt[1];return yt[1]},trys:[],ops:[]};return Ye={next:Ht(0),throw:Ht(1),return:Ht(2)},typeof Symbol=="function"&&(Ye[Symbol.iterator]=function(){return this}),Ye;function Ht(en){return function(It){return function(Ut){if(Ie)throw new TypeError("Generator is already executing.");for(;jt;)try{if(Ie=1,Xe&&(yt=2&Ut[0]?Xe.return:Ut[0]?Xe.throw||((yt=Xe.return)&&yt.call(Xe),0):Xe.next)&&!(yt=yt.call(Xe,Ut[1])).done)return yt;switch(Xe=0,yt&&(Ut=[2&Ut[0],yt.value]),Ut[0]){case 0:case 1:yt=Ut;break;case 4:return jt.label++,{value:Ut[1],done:!1};case 5:jt.label++,Xe=Ut[1],Ut=[0];continue;case 7:Ut=jt.ops.pop(),jt.trys.pop();continue;default:if(yt=jt.trys,!((yt=yt.length>0&&yt[yt.length-1])||Ut[0]!==6&&Ut[0]!==2)){jt=0;continue}if(Ut[0]===3&&(!yt||Ut[1]>yt[0]&&Ut[1]<yt[3])){jt.label=Ut[1];break}if(Ut[0]===6&&jt.label<yt[1]){jt.label=yt[1],yt=Ut;break}if(yt&&jt.label<yt[2]){jt.label=yt[2],jt.ops.push(Ut);break}yt[2]&&jt.ops.pop(),jt.trys.pop();continue}Ut=De.call(We,jt)}catch(tn){Ut=[6,tn],Xe=0}finally{Ie=yt=0}if(5&Ut[0])throw Ut[1];return{value:Ut[0]?Ut[1]:void 0,done:!0}}([en,It])}}}function ye(){for(var We=0,De=0,Ie=arguments.length;De<Ie;De++)We+=arguments[De].length;var Xe=Array(We),yt=0;for(De=0;De<Ie;De++)for(var Ye=arguments[De],jt=0,Ht=Ye.length;jt<Ht;jt++,yt++)Xe[yt]=Ye[jt];return Xe}var we=function(){function We(){}return We.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},We.setAttributes=function(De,Ie){for(var Xe=0,yt=Ie;Xe<yt.length;Xe++){var Ye=yt[Xe],jt=Ye[0],Ht=Ye[1];De.setAttribute(jt,Ht)}},We.createRect=function(De,Ie,Xe){var yt=document.createElementNS("http://www.w3.org/2000/svg","rect");return yt.setAttribute("width",De.toString()),yt.setAttribute("height",Ie.toString()),Xe&&We.setAttributes(yt,Xe),yt},We.createLine=function(De,Ie,Xe,yt,Ye){var jt=document.createElementNS("http://www.w3.org/2000/svg","line");return jt.setAttribute("x1",De.toString()),jt.setAttribute("y1",Ie.toString()),jt.setAttribute("x2",Xe.toString()),jt.setAttribute("y2",yt.toString()),Ye&&We.setAttributes(jt,Ye),jt},We.createPolygon=function(De,Ie){var Xe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Xe.setAttribute("points",De),Ie&&We.setAttributes(Xe,Ie),Xe},We.createCircle=function(De,Ie){var Xe=document.createElementNS("http://www.w3.org/2000/svg","circle");return Xe.setAttribute("cx",(De/2).toString()),Xe.setAttribute("cy",(De/2).toString()),Xe.setAttribute("r",De.toString()),Ie&&We.setAttributes(Xe,Ie),Xe},We.createEllipse=function(De,Ie,Xe){var yt=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return yt.setAttribute("cx",(De/2).toString()),yt.setAttribute("cy",(Ie/2).toString()),yt.setAttribute("rx",(De/2).toString()),yt.setAttribute("ry",(Ie/2).toString()),Xe&&We.setAttributes(yt,Xe),yt},We.createGroup=function(De){var Ie=document.createElementNS("http://www.w3.org/2000/svg","g");return De&&We.setAttributes(Ie,De),Ie},We.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},We.createMarker=function(De,Ie,Xe,yt,Ye,jt,Ht){var en=document.createElementNS("http://www.w3.org/2000/svg","marker");return We.setAttributes(en,[["id",De],["orient",Ie],["markerWidth",Xe.toString()],["markerHeight",yt.toString()],["refX",Ye.toString()],["refY",jt.toString()]]),en.appendChild(Ht),en},We.createText=function(De){var Ie=document.createElementNS("http://www.w3.org/2000/svg","text");return Ie.setAttribute("x","0"),Ie.setAttribute("y","0"),De&&We.setAttributes(Ie,De),Ie},We.createTSpan=function(De,Ie){var Xe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Xe.textContent=De,Ie&&We.setAttributes(Xe,Ie),Xe},We.createImage=function(De){var Ie=document.createElementNS("http://www.w3.org/2000/svg","image");return De&&We.setAttributes(Ie,De),Ie},We.createPoint=function(De,Ie){var Xe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Xe.x=De,Xe.y=Ie,Xe},We.createPath=function(De,Ie){var Xe=document.createElementNS("http://www.w3.org/2000/svg","path");return Xe.setAttribute("d",De),Ie&&We.setAttributes(Xe,Ie),Xe},We}(),me=function(){function We(){}return We.addKey=function(De){We.key=De},Object.defineProperty(We,"isLicensed",{get:function(){return!!We.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(We.key)},enumerable:!1,configurable:!0}),We}(),Se=function(){function We(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return We.prototype.rasterize=function(De,Ie,Xe){var yt=this;return new Promise(function(Ye){var jt=Xe!==void 0?Xe:document.createElement("canvas");De===null&&(yt.markersOnly=!0,yt.naturalSize=!1);var Ht=document.createElementNS("http://www.w3.org/2000/svg","svg");Ht.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ht.setAttribute("width",Ie.width.baseVal.valueAsString),Ht.setAttribute("height",Ie.height.baseVal.valueAsString),Ht.setAttribute("viewBox","0 0 "+Ie.viewBox.baseVal.width.toString()+" "+Ie.viewBox.baseVal.height.toString()),Ht.innerHTML=Ie.innerHTML,yt.naturalSize===!0?(Ht.width.baseVal.value=De.naturalWidth,Ht.height.baseVal.value=De.naturalHeight):yt.width!==void 0&&yt.height!==void 0&&(Ht.width.baseVal.value=yt.width,Ht.height.baseVal.value=yt.height),jt.width=Ht.width.baseVal.value,jt.height=Ht.height.baseVal.value;var en=Ht.outerHTML,It=jt.getContext("2d");yt.markersOnly!==!0&&It.drawImage(De,0,0,jt.width,jt.height);var Ut=window.URL,tn=new Image(jt.width,jt.height);tn.setAttribute("crossOrigin","anonymous");var ln=new Blob([en],{type:"image/svg+xml"}),mn=Ut.createObjectURL(ln);tn.onload=function(){It.drawImage(tn,0,0),Ut.revokeObjectURL(mn);var jn=jt.toDataURL(yt.imageType,yt.imageQuality);Ye(jn)},tn.src=mn})},We}(),de=function(){},z=function(){function We(De){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+De+"_"}return Object.defineProperty(We.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(We.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(We.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),We.prototype.addClass=function(De){return this.styleSheet===void 0&&this.addStyleSheet(),De.name=""+this.classNamePrefix+De.localName,this.classes.push(De),this.styleSheet.sheet.insertRule("."+De.name+" {"+De.style+"}",this.styleSheet.sheet.cssRules.length),De},We.prototype.addRule=function(De){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(De),this.styleSheet.sheet.insertRule(De.selector+" {"+De.style+"}",this.styleSheet.sheet.cssRules.length)},We.prototype.addStyleSheet=function(){var De;this.styleSheet=document.createElement("style"),((De=this.styleSheetRoot)!==null&&De!==void 0?De:document.head).appendChild(this.styleSheet),this.addRule(new ee("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ee("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new ee("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new ae("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new ae("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},We.prototype.removeStyleSheet=function(){var De;this.styleSheet&&(((De=this.styleSheetRoot)!==null&&De!==void 0?De:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},We}(),ee=function(We,De){this.selector=We,this.style=De},ae=function(We,De){this.localName=We,this.style=De},re=function(){function We(De,Ie,Xe,yt,Ye){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=De,this.displayMode=Ie,this.markerItems=Xe,this.uiStyleSettings=yt,this.styles=Ye,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return We.prototype.show=function(De){var Ie=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=De,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Xe=document.createElement("div");Xe.className=this.toolbarBlockStyleClass.name,Xe.style.whiteSpace="nowrap",this.uiContainer.appendChild(Xe),this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(Ye){var jt=document.createElement("div");jt.className=""+Ie.toolbarButtonStyleClass.name,jt.setAttribute("data-type-name",Ye.typeName),jt.innerHTML=Ye.icon,jt.addEventListener("click",function(){Ie.markerToolbarButtonClicked(jt,Ye)}),Ie.buttons.push(jt),Ie.markerButtons.push(jt)}),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 yt=document.createElement("div");yt.className=this.toolbarBlockStyleClass.name,yt.style.whiteSpace="nowrap",yt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(yt),this.addActionButton(yt,'<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(yt,'<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()},We.prototype.addButtonClickListener=function(De){this.buttonClickListeners.push(De)},We.prototype.removeButtonClickListener=function(De){this.buttonClickListeners.indexOf(De)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(De),1)},We.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},We.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var De=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Ie=0;Ie<this.markerButtons.length;Ie++)Ie<De||Ie===De&&this.markerButtons.length-1===De?this.markerButtonBlock.appendChild(this.markerButtons[Ie]):(Ie===De&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[Ie]))}},We.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")},We.prototype.resetButtonStyles=function(){var De=this;this.buttons.forEach(function(Ie){Ie.className=Ie.className.replace(De.uiStyleSettings.toolbarButtonStyleColorsClassName?De.uiStyleSettings.toolbarButtonStyleColorsClassName:De.toolbarButtonStyleColorsClass.name,"").trim(),Ie.className=Ie.className.replace(De.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?De.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:De.toolbarActiveButtonStyleColorsClass.name,"").trim(),Ie.className+=" "+(De.uiStyleSettings.toolbarButtonStyleColorsClassName?De.uiStyleSettings.toolbarButtonStyleColorsClassName:De.toolbarButtonStyleColorsClass.name)})},We.prototype.addActionButton=function(De,Ie,Xe){var yt=this,Ye=document.createElement("div");switch(Ye.className=""+this.toolbarButtonStyleClass.name,Ye.innerHTML=Ie,Ye.setAttribute("data-action",Xe),Ye.addEventListener("click",function(){yt.actionToolbarButtonClicked(Ye,Xe)}),Xe){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}De.appendChild(Ye),this.buttons.push(Ye)},We.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ae("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 ae("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ae("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ae("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 ae("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var De=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ae("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*De)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*De)+`px;
|
|
|
padding: `+De+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ae("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ae("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new ee("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new ee("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},We.prototype.markerToolbarButtonClicked=function(De,Ie){this.setActiveButton(De),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Xe){return Xe("marker",Ie)}),this.markerButtonOverflowBlock.style.display="none"},We.prototype.actionToolbarButtonClicked=function(De,Ie){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Xe){return Xe("action",Ie)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},We.prototype.setActiveButton=function(De){this.resetButtonStyles(),De.className=De.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),De.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},We.prototype.setActiveMarkerButton=function(De){var Ie=this.markerButtons.find(function(Xe){return Xe.getAttribute("data-type-name")===De});Ie&&this.setActiveButton(Ie)},We.prototype.setCurrentMarker=function(De){var Ie=this;this.currentMarker=De,this.buttons.filter(function(Xe){return/delete|notes/.test(Xe.getAttribute("data-action"))}).forEach(function(Xe){Ie.currentMarker===void 0?(Xe.style.fillOpacity="0.4",Xe.style.pointerEvents="none"):(Xe.style.fillOpacity="1",Xe.style.pointerEvents="all")})},We}(),le=function(){function We(De,Ie,Xe,yt){this.panels=[],this.panelButtons=[],this.markerjsContainer=De,this.displayMode=Ie,this.uiStyleSettings=Xe,this.styles=yt,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return We.prototype.addStyles=function(){var De;this.toolboxStyleClass=this.styles.addClass(new ae("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 ae("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var Ie=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ae("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ae("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ae("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 ae("toolbox-panel-row_colors",`
|
|
|
background-color: `+((De=this.uiStyleSettings.toolboxBackgroundColor)!==null&&De!==void 0?De:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ae("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Ie)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Ie)+`px;
|
|
|
padding: `+Ie+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ae("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ae("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new ee("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new ee("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},We.prototype.show=function(De){var Ie;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=De,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Ie=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Ie!==void 0?Ie:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},We.prototype.setPanelButtons=function(De){var Ie,Xe,yt=this;this.panels=De,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Ie=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Ie!==void 0?Ie:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Xe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Xe!==void 0?Xe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Ye){var jt;Ye.uiStyleSettings=yt.uiStyleSettings;var Ht=document.createElement("div");Ht.className=yt.toolboxButtonStyleClass.name+" "+((jt=yt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&jt!==void 0?jt:yt.toolboxButtonStyleColorsClass.name),Ht.innerHTML=Ye.icon,Ht.title=Ye.title,Ht.addEventListener("click",function(){yt.panelButtonClick(Ye)}),yt.panelButtons.push(Ht),yt.buttonRow.appendChild(Ht)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},We.prototype.panelButtonClick=function(De){var Ie=this,Xe=-1;if(De!==this.activePanel){Xe=this.panels.indexOf(De),this.panelRow.innerHTML="";var yt=De.getUi();yt.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(yt),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=De}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Ie.displayMode==="inline"?Ie.panelRow.style.display="none":Ie.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Ye,jt){var Ht,en;Ye.className=Ie.toolboxButtonStyleClass.name+" "+(jt===Xe?""+((Ht=Ie.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ht!==void 0?Ht:Ie.toolboxActiveButtonStyleColorsClass.name):""+((en=Ie.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&en!==void 0?en:Ie.toolboxButtonStyleColorsClass.name))})},We}(),ue=function(We,De){this.title=We,this.icon=De},pe=function(We){function De(Ie,Xe,yt,Ye){var jt=We.call(this,Ie,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 jt.colors=[],jt.addTransparent=!1,jt.colorBoxes=[],jt.colors=Xe,jt.currentColor=yt,jt.setCurrentColor=jt.setCurrentColor.bind(jt),jt.getColorBox=jt.getColorBox.bind(jt),jt}return fe(De,We),De.prototype.getUi=function(){var Ie=this,Xe=document.createElement("div");return Xe.style.overflow="hidden",Xe.style.whiteSpace="nowrap",this.colors.forEach(function(yt){var Ye=Ie.getColorBox(yt);Xe.appendChild(Ye),Ie.colorBoxes.push(Ye)}),Xe},De.prototype.getColorBox=function(Ie){var Xe=this,yt=this.uiStyleSettings.toolbarHeight/4,Ye=this.uiStyleSettings.toolbarHeight-yt,jt=document.createElement("div");jt.style.display="inline-block",jt.style.boxSizing="content-box",jt.style.width=Ye-2+"px",jt.style.height=Ye-2+"px",jt.style.padding="1px",jt.style.marginRight="2px",jt.style.marginBottom="2px",jt.style.borderWidth="2px",jt.style.borderStyle="solid",jt.style.borderRadius=(Ye+2)/2+"px",jt.style.borderColor=Ie===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",jt.addEventListener("click",function(){Xe.setCurrentColor(Ie,jt)});var Ht=document.createElement("div");return Ht.style.display="inline-block",Ht.style.width=Ye-2+"px",Ht.style.height=Ye-2+"px",Ht.style.backgroundColor=Ie,Ht.style.borderRadius=Ye/2+"px",Ie==="transparent"&&(Ht.style.fill=this.uiStyleSettings.toolboxAccentColor,Ht.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>`),jt.appendChild(Ht),jt},De.prototype.setCurrentColor=function(Ie,Xe){var yt=this;this.currentColor=Ie,this.colorBoxes.forEach(function(Ye){Ye.style.borderColor=Ye===Xe?yt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Ie)},De}(ue),Ee=function(){function We(De,Ie,Xe){this._state="new",this._isSelected=!1,this._container=De,this._overlayContainer=Ie,this.globalSettings=Xe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(We.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),We.prototype.ownsTarget=function(De){return!1},Object.defineProperty(We.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),We.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},We.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},We.prototype.pointerDown=function(De,Ie){},We.prototype.dblClick=function(De,Ie){},We.prototype.manipulate=function(De){},We.prototype.pointerUp=function(De){this.stateChanged()},We.prototype.dispose=function(){},We.prototype.addMarkerVisualToContainer=function(De){this.container.childNodes.length>0?this.container.insertBefore(De,this.container.childNodes[0]):this.container.appendChild(De)},We.prototype.getState=function(){return{typeName:We.typeName,state:this.state,notes:this.notes}},We.prototype.restoreState=function(De){this._state=De.state,this.notes=De.notes},We.prototype.scale=function(De,Ie){},We.prototype.colorChanged=function(De){this.onColorChanged&&this.onColorChanged(De),this.stateChanged()},We.prototype.fillColorChanged=function(De){this.onFillColorChanged&&this.onFillColorChanged(De),this.stateChanged()},We.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var De=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),De.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(De)&&this.onStateChanged(this)}},We.typeName="MarkerBase",We}(),Ce=function(){function We(){this.findGripByVisual=this.findGripByVisual.bind(this)}return We.prototype.findGripByVisual=function(De){return this.topLeft.ownsTarget(De)?this.topLeft:this.topCenter.ownsTarget(De)?this.topCenter:this.topRight.ownsTarget(De)?this.topRight:this.centerLeft.ownsTarget(De)?this.centerLeft:this.centerRight.ownsTarget(De)?this.centerRight:this.bottomLeft.ownsTarget(De)?this.bottomLeft:this.bottomCenter.ownsTarget(De)?this.bottomCenter:this.bottomRight.ownsTarget(De)?this.bottomRight:void 0},We}(),je=function(){function We(){this.GRIP_SIZE=10,this.visual=we.createGroup(),this.visual.appendChild(we.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(we.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return We.prototype.ownsTarget=function(De){return De===this.visual||De===this.visual.childNodes[0]||De===this.visual.childNodes[1]},We}(),Le=function(){function We(){}return We.toITransformMatrix=function(De){return{a:De.a,b:De.b,c:De.c,d:De.d,e:De.e,f:De.f}},We.toSVGMatrix=function(De,Ie){return De.a=Ie.a,De.b=Ie.b,De.c=Ie.c,De.d=Ie.d,De.e=Ie.e,De.f=Ie.f,De},We}(),ke=function(We){function De(Ie,Xe,yt){var Ye=We.call(this,Ie,Xe,yt)||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(we.createTransform()),Ye.setupControlBox(),Ye}return fe(De,We),Object.defineProperty(De.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"visual",{get:function(){return this._visual},set:function(Ie){this._visual=Ie;var Xe=we.createTransform();this._visual.transform.baseVal.appendItem(Xe)},enumerable:!1,configurable:!0}),De.prototype.ownsTarget=function(Ie){return!!We.prototype.ownsTarget.call(this,Ie)||!!(this.controlGrips.findGripByVisual(Ie)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ie))},De.prototype.pointerDown=function(Ie,Xe){We.prototype.pointerDown.call(this,Ie,Xe),this.state==="new"&&(this.left=Ie.x,this.top=Ie.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var yt=this.unrotatePoint(Ie);if(this.manipulationStartX=yt.x,this.manipulationStartY=yt.y,this.offsetX=yt.x-this.left,this.offsetY=yt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Xe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Xe)){this.activeGrip=this.rotatorGrip;var 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 jt=this.container.transform.baseVal.getItem(0);jt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(jt,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},De.prototype.pointerUp=function(Ie){var Xe=this.state;We.prototype.pointerUp.call(this,Ie),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Ie),this._state="select",Xe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},De.prototype.moveVisual=function(Ie){this.visual.style.transform="translate("+Ie.x+"px, "+Ie.y+"px)"},De.prototype.manipulate=function(Ie){var Xe=this.unrotatePoint(Ie);this.state==="creating"?this.resize(Ie):this.state==="move"?(this.left=this.manipulationStartLeft+(Xe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Xe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Xe):this.state==="rotate"&&this.rotate(Ie)},De.prototype.resize=function(Ie){var Xe=this.manipulationStartLeft,yt=this.manipulationStartWidth,Ye=this.manipulationStartTop,jt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Xe=this.manipulationStartLeft+Ie.x-this.manipulationStartX,yt=this.manipulationStartWidth+this.manipulationStartLeft-Xe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:yt=this.manipulationStartWidth+Ie.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Ye=this.manipulationStartTop+Ie.y-this.manipulationStartY,jt=this.manipulationStartHeight+this.manipulationStartTop-Ye;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:jt=this.manipulationStartHeight+Ie.y-this.manipulationStartY}yt>=0?(this.left=Xe,this.width=yt):(this.left=Xe+yt,this.width=-yt),jt>=0?(this.top=Ye,this.height=jt):(this.top=Ye+jt,this.height=-jt),this.setSize()},De.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},De.prototype.rotate=function(Ie){if(Math.abs(Ie.x-this.centerX)>.1){var Xe=Math.sign(Ie.x-this.centerX);this.rotationAngle=180*Math.atan((Ie.y-this.centerY)/(Ie.x-this.centerX))/Math.PI+90*Xe,this.applyRotation()}},De.prototype.applyRotation=function(){var Ie=this.container.transform.baseVal.getItem(0);Ie.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ie,0)},De.prototype.rotatePoint=function(Ie){if(this.rotationAngle===0)return Ie;var Xe=this.container.getCTM(),yt=we.createPoint(Ie.x,Ie.y);return{x:(yt=yt.matrixTransform(Xe)).x,y:yt.y}},De.prototype.unrotatePoint=function(Ie){if(this.rotationAngle===0)return Ie;var Xe=this.container.getCTM();Xe=Xe.inverse();var yt=we.createPoint(Ie.x,Ie.y);return{x:(yt=yt.matrixTransform(Xe)).x,y:yt.y}},De.prototype.select=function(){We.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},De.prototype.deselect=function(){We.prototype.deselect.call(this),this.controlBox.style.display="none"},De.prototype.setupControlBox=function(){this.controlBox=we.createGroup();var Ie=we.createTransform();Ie.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Ie),this.container.appendChild(this.controlBox),this.controlRect=we.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=we.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 Ce,this.addControlGrips(),this.controlBox.style.display="none"},De.prototype.adjustControlBox=function(){var Ie=this.controlBox.transform.baseVal.getItem(0);Ie.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Ie,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()},De.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()},De.prototype.createGrip=function(){var Ie=new je;return Ie.visual.transform.baseVal.appendItem(we.createTransform()),this.controlBox.appendChild(Ie.visual),Ie},De.prototype.positionGrips=function(){var Ie=this.controlGrips.topLeft.GRIP_SIZE,Xe=-Ie/2,yt=Xe,Ye=(this.width+this.CB_DISTANCE)/2-Ie/2,jt=(this.height+this.CB_DISTANCE)/2-Ie/2,Ht=this.height+this.CB_DISTANCE-Ie/2,en=this.width+this.CB_DISTANCE-Ie/2;this.positionGrip(this.controlGrips.topLeft.visual,Xe,yt),this.positionGrip(this.controlGrips.topCenter.visual,Ye,yt),this.positionGrip(this.controlGrips.topRight.visual,en,yt),this.positionGrip(this.controlGrips.centerLeft.visual,Xe,jt),this.positionGrip(this.controlGrips.centerRight.visual,en,jt),this.positionGrip(this.controlGrips.bottomLeft.visual,Xe,Ht),this.positionGrip(this.controlGrips.bottomCenter.visual,Ye,Ht),this.positionGrip(this.controlGrips.bottomRight.visual,en,Ht),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Ye,yt-3*this.CB_DISTANCE)},De.prototype.positionGrip=function(Ie,Xe,yt){var Ye=Ie.transform.baseVal.getItem(0);Ye.setTranslate(Xe,yt),Ie.transform.baseVal.replaceItem(Ye,0)},De.prototype.hideControlBox=function(){this.controlBox.style.display="none"},De.prototype.showControlBox=function(){this.controlBox.style.display=""},De.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Le.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Le.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},We.prototype.getState.call(this))},De.prototype.restoreState=function(Ie){We.prototype.restoreState.call(this,Ie);var Xe=Ie;this.left=Xe.left,this.top=Xe.top,this.width=Xe.width,this.height=Xe.height,this.rotationAngle=Xe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Le.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Xe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Le.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Xe.containerTransformMatrix))},De.prototype.scale=function(Ie,Xe){We.prototype.scale.call(this,Ie,Xe);var yt=this.rotatePoint({x:this.left,y:this.top}),Ye=this.unrotatePoint({x:yt.x*Ie,y:yt.y*Xe});this.left=Ye.x,this.top=Ye.y,this.width=this.width*Ie,this.height=this.height*Xe,this.adjustControlBox()},De}(Ee),Oe=function(We){function De(Ie,Xe,yt){var Ye=We.call(this,Ie,Xe,yt)||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 fe(De,We),De.prototype.ownsTarget=function(Ie){return!(!We.prototype.ownsTarget.call(this,Ie)&&Ie!==this.visual)},De.prototype.createVisual=function(){this.visual=we.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)},De.prototype.pointerDown=function(Ie,Xe){We.prototype.pointerDown.call(this,Ie,Xe),this.state==="new"&&(this.createVisual(),this.moveVisual(Ie),this._state="creating")},De.prototype.manipulate=function(Ie){We.prototype.manipulate.call(this,Ie)},De.prototype.resize=function(Ie){We.prototype.resize.call(this,Ie),this.setSize()},De.prototype.setSize=function(){We.prototype.setSize.call(this),we.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},De.prototype.pointerUp=function(Ie){We.prototype.pointerUp.call(this,Ie),this.setSize()},De.prototype.setStrokeColor=function(Ie){this.strokeColor=Ie,this.visual&&we.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Ie),this.stateChanged()},De.prototype.setFillColor=function(Ie){this.fillColor=Ie,this.visual&&we.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},De.prototype.setStrokeWidth=function(Ie){this.strokeWidth=Ie,this.visual&&we.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},De.prototype.setStrokeDasharray=function(Ie){this.strokeDasharray=Ie,this.visual&&we.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},De.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},We.prototype.getState.call(this))},De.prototype.restoreState=function(Ie){var Xe=Ie;this.fillColor=Xe.fillColor,this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.opacity=Xe.opacity,this.createVisual(),We.prototype.restoreState.call(this,Ie),this.setSize()},De.prototype.scale=function(Ie,Xe){We.prototype.scale.call(this,Ie,Xe),this.setSize()},De.title="Rectangle marker",De}(ke),Fe=function(We){function De(Ie,Xe,yt,Ye){var jt=We.call(this,Ie,Ye||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return jt.widths=[],jt.widthBoxes=[],jt.widths=Xe,jt.currentWidth=yt,jt.setCurrentWidth=jt.setCurrentWidth.bind(jt),jt}return fe(De,We),De.prototype.getUi=function(){var Ie=this,Xe=document.createElement("div");return Xe.style.display="flex",Xe.style.overflow="hidden",Xe.style.flexGrow="2",this.widths.forEach(function(yt){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=yt===Ie.currentWidth?Ie.uiStyleSettings.toolboxAccentColor:"transparent",Ye.addEventListener("click",function(){Ie.setCurrentWidth(yt,Ye)}),Xe.appendChild(Ye);var jt=document.createElement("div");jt.innerText=yt.toString(),jt.style.marginRight="5px",Ye.appendChild(jt);var Ht=document.createElement("div");Ht.style.minHeight="20px",Ht.style.flexGrow="2",Ht.style.display="flex",Ht.style.alignItems="center";var en=document.createElement("hr");en.style.minWidth="20px",en.style.border="0px",en.style.borderTop=yt+"px solid "+Ie.uiStyleSettings.toolboxColor,en.style.flexGrow="2",Ht.appendChild(en),Ye.appendChild(Ht),Ie.widthBoxes.push(Ye)}),Xe},De.prototype.setCurrentWidth=function(Ie,Xe){var yt=this;this.currentWidth=Ie,this.widthBoxes.forEach(function(Ye){Ye.style.borderColor=Ye===Xe?yt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},De}(ue),Re=function(We){function De(Ie,Xe,yt,Ye){var jt=We.call(this,Ie,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 jt.styles=[],jt.styleBoxes=[],jt.styles=Xe,jt.currentStyle=yt,jt.setCurrentStyle=jt.setCurrentStyle.bind(jt),jt}return fe(De,We),De.prototype.getUi=function(){var Ie=this,Xe=document.createElement("div");return Xe.style.display="flex",Xe.style.overflow="hidden",Xe.style.flexGrow="2",this.styles.forEach(function(yt){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/Ie.styles.length-5+"%",Ye.style.borderColor=yt===Ie.currentStyle?Ie.uiStyleSettings.toolboxAccentColor:"transparent",Ye.addEventListener("click",function(){Ie.setCurrentStyle(yt,Ye)}),Xe.appendChild(Ye);var jt=document.createElement("div");jt.style.minHeight="20px",jt.style.flexGrow="2",jt.style.overflow="hidden";var Ht=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+Ie.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(yt!==""?'stroke-dasharray="'+yt+'"':"")+` />
|
|
|
</svg>`;jt.innerHTML=Ht,Ye.appendChild(jt),Ie.styleBoxes.push(Ye)}),Xe},De.prototype.setCurrentStyle=function(Ie,Xe){var yt=this;this.currentStyle=Ie,this.styleBoxes.forEach(function(Ye){Ye.style.borderColor=Ye===Xe?yt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},De}(ue),Ze=function(We){function De(Ie,Xe,yt){var Ye=We.call(this,Ie,Xe,yt)||this;return Ye.strokeColor=yt.defaultColor,Ye.strokeWidth=yt.defaultStrokeWidth,Ye.strokeDasharray=yt.defaultStrokeDasharray,Ye.strokePanel=new pe("Line color",yt.defaultColorSet,yt.defaultColor),Ye.strokePanel.onColorChanged=Ye.setStrokeColor,Ye.strokeWidthPanel=new Fe("Line width",yt.defaultStrokeWidths,yt.defaultStrokeWidth),Ye.strokeWidthPanel.onWidthChanged=Ye.setStrokeWidth,Ye.strokeStylePanel=new Re("Line style",yt.defaultStrokeDasharrays,yt.defaultStrokeDasharray),Ye.strokeStylePanel.onStyleChanged=Ye.setStrokeDasharray,Ye}return fe(De,We),Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),De.prototype.getState=function(){var Ie=We.prototype.getState.call(this);return Ie.typeName=De.typeName,Ie},De.typeName="FrameMarker",De.title="Frame marker",De.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',De}(Oe),ze=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"},Ke=function(We){function De(Ie,Xe,yt){var Ye=We.call(this,Ie,Xe,yt)||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 fe(De,We),De.prototype.ownsTarget=function(Ie){return!!We.prototype.ownsTarget.call(this,Ie)||!(!this.grip1.ownsTarget(Ie)&&!this.grip2.ownsTarget(Ie))},De.prototype.pointerDown=function(Ie,Xe){We.prototype.pointerDown.call(this,Ie,Xe),this.manipulationStartX=Ie.x,this.manipulationStartY=Ie.y,this.state==="new"&&(this.x1=Ie.x,this.y1=Ie.y,this.x2=Ie.x,this.y2=Ie.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(Xe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Xe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},De.prototype.pointerUp=function(Ie){var Xe=this.state;We.prototype.pointerUp.call(this,Ie),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(Ie),this._state="select",Xe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},De.prototype.adjustVisual=function(){},De.prototype.manipulate=function(Ie){this.state==="creating"?this.resize(Ie):this.state==="move"?(this.x1=this.manipulationStartX1+Ie.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Ie.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Ie.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Ie.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Ie)},De.prototype.resize=function(Ie){switch(this.activeGrip){case this.grip1:this.x1=Ie.x,this.y1=Ie.y;break;case this.grip2:case void 0:this.x2=Ie.x,this.y2=Ie.y}this.adjustVisual(),this.adjustControlBox()},De.prototype.select=function(){We.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},De.prototype.deselect=function(){We.prototype.deselect.call(this),this.controlBox.style.display="none"},De.prototype.setupControlBox=function(){this.controlBox=we.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},De.prototype.adjustControlBox=function(){this.positionGrips()},De.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},De.prototype.createGrip=function(){var Ie=new je;return Ie.visual.transform.baseVal.appendItem(we.createTransform()),this.controlBox.appendChild(Ie.visual),Ie},De.prototype.positionGrips=function(){var Ie=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Ie/2,this.y1-Ie/2),this.positionGrip(this.grip2.visual,this.x2-Ie/2,this.y2-Ie/2)},De.prototype.positionGrip=function(Ie,Xe,yt){var Ye=Ie.transform.baseVal.getItem(0);Ye.setTranslate(Xe,yt),Ie.transform.baseVal.replaceItem(Ye,0)},De.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},We.prototype.getState.call(this))},De.prototype.restoreState=function(Ie){We.prototype.restoreState.call(this,Ie);var Xe=Ie;this.x1=Xe.x1,this.y1=Xe.y1,this.x2=Xe.x2,this.y2=Xe.y2},De.prototype.scale=function(Ie,Xe){We.prototype.scale.call(this,Ie,Xe),this.x1=this.x1*Ie,this.y1=this.y1*Xe,this.x2=this.x2*Ie,this.y2=this.y2*Xe,this.adjustVisual(),this.adjustControlBox()},De}(Ee),ot=function(We){function De(Ie,Xe,yt){var Ye=We.call(this,Ie,Xe,yt)||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=yt.defaultColor,Ye.strokeWidth=yt.defaultStrokeWidth,Ye.strokeDasharray=yt.defaultStrokeDasharray,Ye.strokePanel=new pe("Line color",yt.defaultColorSet,yt.defaultColor),Ye.strokePanel.onColorChanged=Ye.setStrokeColor,Ye.strokeWidthPanel=new Fe("Line width",yt.defaultStrokeWidths,yt.defaultStrokeWidth),Ye.strokeWidthPanel.onWidthChanged=Ye.setStrokeWidth,Ye.strokeStylePanel=new Re("Line style",yt.defaultStrokeDasharrays,yt.defaultStrokeDasharray),Ye.strokeStylePanel.onStyleChanged=Ye.setStrokeDasharray,Ye}return fe(De,We),De.prototype.ownsTarget=function(Ie){return!(!We.prototype.ownsTarget.call(this,Ie)&&Ie!==this.visual&&Ie!==this.selectorLine&&Ie!==this.visibleLine)},De.prototype.createVisual=function(){this.visual=we.createGroup(),this.selectorLine=we.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=we.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)},De.prototype.pointerDown=function(Ie,Xe){We.prototype.pointerDown.call(this,Ie,Xe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},De.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()),we.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),we.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),we.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},De.prototype.setStrokeColor=function(Ie){this.strokeColor=Ie,this.adjustVisual(),this.colorChanged(Ie)},De.prototype.setStrokeWidth=function(Ie){this.strokeWidth=Ie,this.adjustVisual()},De.prototype.setStrokeDasharray=function(Ie){this.strokeDasharray=Ie,this.adjustVisual(),this.stateChanged()},Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),De.prototype.getState=function(){var Ie=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},We.prototype.getState.call(this));return Ie.typeName=De.typeName,Ie},De.prototype.restoreState=function(Ie){We.prototype.restoreState.call(this,Ie);var Xe=Ie;this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.createVisual(),this.adjustVisual()},De.typeName="LineMarker",De.title="Line marker",De.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',De}(Ke),ct=function(We){function De(Ie,Xe,yt,Ye){var jt=We.call(this,Ie,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 jt.fonts=[],jt.fontBoxes=[],jt.fonts=Xe,jt.currentFont=yt,jt.setCurrentFont=jt.setCurrentFont.bind(jt),jt}return fe(De,We),De.prototype.getUi=function(){var Ie=this,Xe=document.createElement("div");return Xe.style.overflow="hidden",Xe.style.flexGrow="2",this.fonts.forEach(function(yt){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/Ie.fonts.length-5+"%",Ye.style.borderColor=yt===Ie.currentFont?Ie.uiStyleSettings.toolboxAccentColor:"transparent",Ye.addEventListener("click",function(){Ie.setCurrentFont(yt,Ye)}),Xe.appendChild(Ye);var jt=document.createElement("div");jt.style.display="flex",jt.style.minHeight="20px",jt.style.flexGrow="2",jt.style.fontFamily=yt,jt.style.overflow="hidden";var Ht=document.createElement("div");Ht.style.whiteSpace="nowrap",Ht.style.overflow="hidden",Ht.style.textOverflow="ellipsis",Ht.innerHTML="The quick brown fox jumps over the lazy dog",jt.appendChild(Ht),Ye.appendChild(jt),Ie.fontBoxes.push(Ye)}),Xe},De.prototype.setCurrentFont=function(Ie,Xe){var yt=this;this.currentFont=Ie,this.fontBoxes.forEach(function(Ye){Ye.style.borderColor=Ye===Xe?yt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},De}(ue),pt=function(We){function De(Ie,Xe,yt){var Ye=We.call(this,Ie,Xe,yt)||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=yt.defaultColor,Ye.fontFamily=yt.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 pe("Color",yt.defaultColorSet,yt.defaultColor),Ye.colorPanel.onColorChanged=Ye.setColor,Ye.fontFamilyPanel=new ct("Font",yt.defaultFontFamilies,yt.defaultFontFamily),Ye.fontFamilyPanel.onFontChanged=Ye.setFont,Ye}return fe(De,We),De.prototype.ownsTarget=function(Ie){if(We.prototype.ownsTarget.call(this,Ie)||Ie===this.visual||Ie===this.textElement||Ie===this.bgRectangle)return!0;var Xe=!1;return this.textElement.childNodes.forEach(function(yt){yt===Ie&&(Xe=!0)}),Xe},De.prototype.createVisual=function(){this.visual=we.createGroup(),this.bgRectangle=we.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=we.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(we.createTransform()),this.textElement.transform.baseVal.appendItem(we.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},De.prototype.pointerDown=function(Ie,Xe){We.prototype.pointerDown.call(this,Ie,Xe),this.isMoved=!1,this.pointerDownPoint=Ie,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Ie),this._state="creating")},De.prototype.renderText=function(){var Ie=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(Xe){Ie.textElement.appendChild(we.createTSpan(Xe.trim()===""?" ":Xe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},De.prototype.getTextScale=function(){var Ie=this.textElement.getBBox(),Xe=1;if(Ie.width>0&&Ie.height>0){var yt=(1*this.width-this.width*this.padding*2/100)/Ie.width,Ye=(1*this.height-this.height*this.padding*2/100)/Ie.height;Xe=Math.min(yt,Ye)}return Xe},De.prototype.getTextPosition=function(Ie){var Xe=this.textElement.getBBox(),yt=0,Ye=0;return Xe.width>0&&Xe.height>0&&(yt=(this.width-Xe.width*Ie)/2,Ye=this.height/2-Xe.height*Ie/2),{x:yt,y:Ye}},De.prototype.sizeText=function(){var Ie=this.textElement.getBBox(),Xe=this.getTextScale(),yt=this.getTextPosition(Xe);yt.y-=Ie.y*Xe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+yt.x+"px, "+yt.y+"px) scale("+Xe+", "+Xe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(yt.x,yt.y),this.textElement.transform.baseVal.getItem(1).setScale(Xe,Xe))},De.prototype.manipulate=function(Ie){We.prototype.manipulate.call(this,Ie),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Ie.x-this.pointerDownPoint.x)>5||Math.abs(Ie.y-this.pointerDownPoint.y)>5)},De.prototype.resize=function(Ie){We.prototype.resize.call(this,Ie),this.isMoved=!0,this.setSize(),this.sizeText()},De.prototype.setSize=function(){We.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(we.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),we.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},De.prototype.pointerUp=function(Ie){var Xe=this.state;Xe==="creating"&&(this._suppressMarkerCreateEvent=!0),We.prototype.pointerUp.call(this,Ie),this.setSize(),(Xe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},De.prototype.showTextEditor=function(){var Ie=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(Xe){Xe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Xe=Number.parseFloat(Ie.textEditor.style.fontSize);Ie.textEditor.clientWidth>=Number.parseInt(Ie.textEditor.style.maxWidth)&&Xe>.9;)Xe-=.1,Ie.textEditor.style.fontSize=Math.max(Xe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Xe){Xe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Xe){if(Xe.clipboardData){var yt=Xe.clipboardData.getData("text"),Ye=window.getSelection();if(!Ye.rangeCount)return!1;Ye.deleteFromDocument(),Ye.getRangeAt(0).insertNode(document.createTextNode(yt)),Xe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Ie.textEditDivClicked(Ie.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},De.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Ie=this.getTextScale(),Xe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),yt=this.textElement.getBBox(),Ye={x:yt.width*Ie,y:yt.height*Ie};Xe.x-=Ye.x/2,Xe.y-=Ye.y/2,this.textEditor.style.top=Xe.y+"px",this.textEditor.style.left=Xe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Xe.x+"px",this.textEditor.style.fontSize=Math.max(16*Ie,12)+"px",this.textElement.style.display="none"}},De.prototype.textEditDivClicked=function(Ie){this.text=Ie.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},De.prototype.select=function(){We.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},De.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),We.prototype.deselect.call(this)},De.prototype.dblClick=function(Ie,Xe){We.prototype.dblClick.call(this,Ie,Xe),this.showTextEditor()},De.prototype.setColor=function(Ie){this.textElement&&we.setAttributes(this.textElement,[["fill",Ie]]),this.color=Ie,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Ie)},De.prototype.setFont=function(Ie){this.textElement&&we.setAttributes(this.textElement,[["font-family",Ie]]),this.fontFamily=Ie,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},De.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},De.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),De.prototype.getState=function(){var Ie=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},We.prototype.getState.call(this));return Ie.typeName=De.typeName,Ie},De.prototype.restoreState=function(Ie){var Xe=Ie;this.color=Xe.color,this.fontFamily=Xe.fontFamily,this.padding=Xe.padding,this.text=Xe.text,this.createVisual(),We.prototype.restoreState.call(this,Ie),this.setSize()},De.prototype.scale=function(Ie,Xe){We.prototype.scale.call(this,Ie,Xe),this.setSize(),this.sizeText(),this.positionTextEditor()},De.typeName="TextMarker",De.title="Text marker",De.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>',De}(ke),bt=function(We){function De(Ie,Xe,yt){var Ye=We.call(this,Ie,Xe,yt)||this;return Ye.color="transparent",Ye.lineWidth=3,Ye.drawing=!1,Ye.pixelRatio=1,Ye.color=yt.defaultColor,Ye.lineWidth=yt.defaultStrokeWidth,Ye.pixelRatio=yt.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 pe("Color",yt.defaultColorSet,yt.defaultColor),Ye.colorPanel.onColorChanged=Ye.setColor,Ye.lineWidthPanel=new Fe("Line width",yt.defaultStrokeWidths,yt.defaultStrokeWidth),Ye.lineWidthPanel.onWidthChanged=Ye.setLineWidth,Ye}return fe(De,We),De.prototype.ownsTarget=function(Ie){return!(!We.prototype.ownsTarget.call(this,Ie)&&Ie!==this.visual&&Ie!==this.drawingImage)},De.prototype.createVisual=function(){this.visual=we.createGroup(),this.drawingImage=we.createImage(),this.visual.appendChild(this.drawingImage);var Ie=we.createTransform();this.visual.transform.baseVal.appendItem(Ie),this.addMarkerVisualToContainer(this.visual)},De.prototype.pointerDown=function(Ie,Xe){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(Ie.x,Ie.y),this.drawing=!0):We.prototype.pointerDown.call(this,Ie,Xe)},De.prototype.manipulate=function(Ie){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Ie.x,Ie.y),this.canvasContext.stroke()):We.prototype.manipulate.call(this,Ie)},De.prototype.resize=function(Ie){We.prototype.resize.call(this,Ie),we.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),we.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},De.prototype.pointerUp=function(Ie){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):We.prototype.pointerUp.call(this,Ie)},De.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)},De.prototype.select=function(){this.state==="creating"&&this.finishCreation(),We.prototype.select.call(this)},De.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),We.prototype.deselect.call(this)},De.prototype.finishCreation=function(){for(var Ie=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Xe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],yt=Xe[0],Ye=Xe[1],jt=Xe[2],Ht=Xe[3],en=!1,It=0;It<this.canvasElement.height;It++)for(var Ut=0;Ut<this.canvasElement.width;Ut++)Ie.data[It*this.canvasElement.width*4+4*Ut+3]>0&&(en=!0,It<Ye&&(Ye=It),Ut<yt&&(yt=Ut),It>Ht&&(Ht=It),Ut>jt&&(jt=Ut));if(en){this.left=yt/this.pixelRatio,this.top=Ye/this.pixelRatio,this.width=(jt-yt)/this.pixelRatio,this.height=(Ht-Ye)/this.pixelRatio;var tn=document.createElement("canvas");tn.width=jt-yt,tn.height=Ht-Ye,tn.getContext("2d").putImageData(this.canvasContext.getImageData(yt,Ye,jt-yt,Ht-Ye),0,0),this.drawingImgUrl=tn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},De.prototype.setDrawingImage=function(){we.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),we.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},De.prototype.setColor=function(Ie){this.color=Ie,this.colorChanged(Ie)},De.prototype.setLineWidth=function(Ie){this.lineWidth=Ie},Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),De.prototype.getState=function(){var Ie=Object.assign({drawingImgUrl:this.drawingImgUrl},We.prototype.getState.call(this));return Ie.typeName=De.typeName,Ie},De.prototype.restoreState=function(Ie){this.createVisual(),We.prototype.restoreState.call(this,Ie),this.drawingImgUrl=Ie.drawingImgUrl,this.setDrawingImage()},De.prototype.scale=function(Ie,Xe){We.prototype.scale.call(this,Ie,Xe),this.setDrawingImage()},De.typeName="FreehandMarker",De.title="Freehand marker",De.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>',De}(ke),qe=function(We){function De(Ie,Xe,yt){var Ye=We.call(this,Ie,yt||'<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=Xe,Ye.setCurrentType=Ye.setCurrentType.bind(Ye),Ye}return fe(De,We),De.prototype.getUi=function(){var Ie=this,Xe=document.createElement("div");Xe.style.display="flex",Xe.style.overflow="hidden",Xe.style.flexGrow="2";for(var yt=function(Ht){var en="both";switch(Ht){case 0:en="both";break;case 1:en="start";break;case 2:en="end";break;case 3:en="none"}var It=document.createElement("div");if(It.style.display="flex",It.style.flexGrow="2",It.style.alignItems="center",It.style.justifyContent="space-between",It.style.padding="5px",It.style.borderWidth="2px",It.style.borderStyle="solid",It.style.borderColor=en===Ye.currentType?Ye.uiStyleSettings.toolboxAccentColor:"transparent",It.addEventListener("click",function(){Ie.setCurrentType(en,It)}),Xe.appendChild(It),en==="both"||en==="start"){var Ut=document.createElement("div");Ut.style.display="flex",Ut.style.alignItems="center",Ut.style.minHeight="20px",Ut.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>`,Ut.style.marginLeft="5px",It.appendChild(Ut)}var tn=document.createElement("div");tn.style.display="flex",tn.style.alignItems="center",tn.style.minHeight="20px",tn.style.flexGrow="2";var ln=document.createElement("hr");if(ln.style.minWidth="20px",ln.style.border="0px",ln.style.borderTop="3px solid "+(Ye.uiStyleSettings!==void 0?Ye.uiStyleSettings.toolboxColor:"#eeeeee"),ln.style.flexGrow="2",tn.appendChild(ln),It.appendChild(tn),en==="both"||en==="end"){var mn=document.createElement("div");mn.style.display="flex",mn.style.alignItems="center",mn.style.minHeight="20px",mn.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>`,mn.style.marginRight="5px",It.appendChild(mn)}Ye.typeBoxes.push(It)},Ye=this,jt=0;jt<4;jt++)yt(jt);return Xe},De.prototype.setCurrentType=function(Ie,Xe){var yt=this;this.currentType=Ie,this.typeBoxes.forEach(function(Ye){Ye.style.borderColor=Ye===Xe?yt.uiStyleSettings!==void 0?yt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},De}(ue),at=function(We){function De(Ie,Xe,yt){var Ye=We.call(this,Ie,Xe,yt)||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 qe("Arrow type","end"),Ye.arrowTypePanel.onArrowTypeChanged=Ye.setArrowType,Ye}return fe(De,We),De.prototype.ownsTarget=function(Ie){return!(!We.prototype.ownsTarget.call(this,Ie)&&Ie!==this.arrow1&&Ie!==this.arrow2)},De.prototype.getArrowPoints=function(Ie,Xe){var yt=this.arrowBaseWidth+2*this.strokeWidth,Ye=this.arrowBaseHeight+2*this.strokeWidth;return Ie-yt/2+","+(Xe+Ye/2)+" "+Ie+","+(Xe-Ye/2)+" "+(Ie+yt/2)+","+(Xe+Ye/2)},De.prototype.createTips=function(){this.arrow1=we.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(we.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=we.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(we.createTransform()),this.visual.appendChild(this.arrow2)},De.prototype.pointerDown=function(Ie,Xe){We.prototype.pointerDown.call(this,Ie,Xe),this.state==="creating"&&this.createTips()},De.prototype.adjustVisual=function(){if(We.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",we.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),we.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var Ie=0;Math.abs(this.x1-this.x2)>.1&&(Ie=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Xe=this.arrow1.transform.baseVal.getItem(0);Xe.setRotate(Ie,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Xe,0);var yt=this.arrow2.transform.baseVal.getItem(0);yt.setRotate(Ie+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(yt,0)}},De.prototype.setArrowType=function(Ie){this.arrowType=Ie,this.adjustVisual(),this.stateChanged()},Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),De.prototype.getState=function(){var Ie=Object.assign({arrowType:this.arrowType},We.prototype.getState.call(this));return Ie.typeName=De.typeName,Ie},De.prototype.restoreState=function(Ie){We.prototype.restoreState.call(this,Ie);var Xe=Ie;this.arrowType=Xe.arrowType,this.createTips(),this.adjustVisual()},De.typeName="ArrowMarker",De.title="Arrow marker",De.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',De}(ot),gt=function(We){function De(Ie,Xe,yt){var Ye=We.call(this,Ie,Xe,yt)||this;return Ye.fillColor=yt.defaultFillColor,Ye.strokeWidth=0,Ye.fillPanel=new pe("Color",yt.defaultColorSet,yt.defaultFillColor),Ye.fillPanel.onColorChanged=Ye.setFillColor,Ye}return fe(De,We),Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),De.prototype.getState=function(){var Ie=We.prototype.getState.call(this);return Ie.typeName=De.typeName,Ie},De.typeName="CoverMarker",De.title="Cover marker",De.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',De}(Oe),Ct=function(We){function De(Ie,Xe,yt,Ye){var jt=We.call(this,Ie,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 jt.opacities=[],jt.opacityBoxes=[],jt.opacities=Xe,jt.currentOpacity=yt,jt.setCurrentOpacity=jt.setCurrentOpacity.bind(jt),jt}return fe(De,We),De.prototype.getUi=function(){var Ie=this,Xe=document.createElement("div");return Xe.style.display="flex",Xe.style.overflow="hidden",Xe.style.flexGrow="2",Xe.style.justifyContent="space-between",this.opacities.forEach(function(yt){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=yt===Ie.currentOpacity?Ie.uiStyleSettings.toolboxAccentColor:"transparent",Ye.addEventListener("click",function(){Ie.setCurrentOpacity(yt,Ye)}),Xe.appendChild(Ye);var jt=document.createElement("div");jt.innerText=100*yt+"%",Ye.appendChild(jt),Ie.opacityBoxes.push(Ye)}),Xe},De.prototype.setCurrentOpacity=function(Ie,Xe){var yt=this;this.currentOpacity=Ie,this.opacityBoxes.forEach(function(Ye){Ye.style.borderColor=Ye===Xe?yt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},De}(ue),wt=function(We){function De(Ie,Xe,yt){var Ye=We.call(this,Ie,Xe,yt)||this;return Ye.setOpacity=Ye.setOpacity.bind(Ye),Ye.fillColor=yt.defaultHighlightColor,Ye.strokeWidth=0,Ye.opacity=yt.defaultHighlightOpacity,Ye.fillPanel=new pe("Color",yt.defaultColorSet,Ye.fillColor),Ye.fillPanel.onColorChanged=Ye.setFillColor,Ye.opacityPanel=new Ct("Opacity",yt.defaultOpacitySteps,Ye.opacity),Ye.opacityPanel.onOpacityChanged=Ye.setOpacity,Ye}return fe(De,We),De.prototype.setOpacity=function(Ie){this.opacity=Ie,this.visual&&we.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),De.prototype.getState=function(){var Ie=We.prototype.getState.call(this);return Ie.typeName=De.typeName,Ie},De.typeName="HighlightMarker",De.title="Highlight marker",De.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>',De}(gt),vt='<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>',mt='<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>',xt=function(We){function De(Ie,Xe,yt){var Ye=We.call(this,Ie,Xe,yt)||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=yt.defaultStrokeColor,Ye.bgColor=yt.defaultFillColor,Ye.fontFamily=yt.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 pe("Text color",yt.defaultColorSet,Ye.color,vt),Ye.colorPanel.onColorChanged=Ye.setColor,Ye.bgColorPanel=new pe("Fill color",yt.defaultColorSet,Ye.bgColor,mt),Ye.bgColorPanel.onColorChanged=Ye.setBgColor,Ye.fontFamilyPanel=new ct("Font",yt.defaultFontFamilies,yt.defaultFontFamily),Ye.fontFamilyPanel.onFontChanged=Ye.setFont,Ye.tipGrip=new je,Ye.tipGrip.visual.transform.baseVal.appendItem(we.createTransform()),Ye.controlBox.appendChild(Ye.tipGrip.visual),Ye}return fe(De,We),De.prototype.ownsTarget=function(Ie){return We.prototype.ownsTarget.call(this,Ie)||this.tipGrip.ownsTarget(Ie)||this.tip===Ie},De.prototype.createTip=function(){we.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=we.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},De.prototype.pointerDown=function(Ie,Xe){this.state==="new"&&We.prototype.pointerDown.call(this,Ie,Xe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Xe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):We.prototype.pointerDown.call(this,Ie,Xe)},De.prototype.pointerUp=function(Ie){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,We.prototype.pointerUp.call(this,Ie);else{var Xe=this.state==="creating";We.prototype.pointerUp.call(this,Ie),this.setTipPoints(Xe),this.positionTip()}},De.prototype.manipulate=function(Ie){if(this.tipMoving){var Xe=this.unrotatePoint(Ie);this.tipPosition={x:Xe.x-this.manipulationStartLeft,y:Xe.y-this.manipulationStartTop},this.positionTip()}else We.prototype.manipulate.call(this,Ie)},De.prototype.setBgColor=function(Ie){this.bgRectangle&&this.tip&&(we.setAttributes(this.bgRectangle,[["fill",Ie]]),we.setAttributes(this.tip,[["fill",Ie]])),this.bgColor=Ie,this.fillColorChanged(Ie)},De.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},De.prototype.setTipPoints=function(Ie){Ie===void 0&&(Ie=!1);var Xe=Math.min(this.height/2,15),yt=this.height/5;Ie&&(this.tipPosition={x:Xe+yt/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))?(yt=this.width/5,Xe=Math.min(this.width/2,15),this.tipBase1Position={x:Xe,y:0},this.tipBase2Position={x:Xe+yt,y:0}):(this.tipBase1Position={x:0,y:Xe},this.tipBase2Position={x:0,y:Xe+yt}):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))?(yt=this.width/5,Xe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Xe-yt,y:0},this.tipBase2Position={x:this.width-Xe,y:0}):(this.tipBase1Position={x:this.width,y:Xe},this.tipBase2Position={x:this.width,y:Xe+yt}):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))?(yt=this.width/5,Xe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Xe-yt,y:this.height},this.tipBase2Position={x:this.width-Xe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Xe-yt},this.tipBase2Position={x:this.width,y:this.height-Xe}):Ye<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(yt=this.width/5,Xe=Math.min(this.width/2,15),this.tipBase1Position={x:Xe,y:this.height},this.tipBase2Position={x:Xe+yt,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Xe},this.tipBase2Position={x:0,y:this.height-Xe-yt})},De.prototype.resize=function(Ie){We.prototype.resize.call(this,Ie),this.positionTip()},De.prototype.positionTip=function(){we.setAttributes(this.tip,[["points",this.getTipPoints()]]);var Ie=this.tipGrip.visual.transform.baseVal.getItem(0);Ie.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(Ie,0)},Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),De.prototype.select=function(){this.positionTip(),We.prototype.select.call(this)},De.prototype.getState=function(){var Ie=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},We.prototype.getState.call(this));return Ie.typeName=De.typeName,Ie},De.prototype.restoreState=function(Ie){var Xe=Ie;this.bgColor=Xe.bgColor,this.tipPosition=Xe.tipPosition,We.prototype.restoreState.call(this,Ie),this.createTip(),this.setTipPoints()},De.prototype.scale=function(Ie,Xe){We.prototype.scale.call(this,Ie,Xe),this.tipPosition={x:this.tipPosition.x*Ie,y:this.tipPosition.y*Xe},this.positionTip()},De.typeName="CalloutMarker",De.title="Callout marker",De.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>',De}(pt),At=function(We){function De(Ie,Xe,yt){var Ye=We.call(this,Ie,Xe,yt)||this;return Ye.fillColor="transparent",Ye.strokeColor="transparent",Ye.strokeWidth=0,Ye.strokeDasharray="",Ye.opacity=1,Ye.strokeColor=yt.defaultColor,Ye.strokeWidth=yt.defaultStrokeWidth,Ye.strokeDasharray=yt.defaultStrokeDasharray,Ye.fillColor=yt.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 pe("Line color",ye(yt.defaultColorSet,["transparent"]),yt.defaultColor),Ye.strokePanel.onColorChanged=Ye.setStrokeColor,Ye.fillPanel=new pe("Fill color",ye(yt.defaultColorSet,["transparent"]),Ye.fillColor,mt),Ye.fillPanel.onColorChanged=Ye.setFillColor,Ye.strokeWidthPanel=new Fe("Line width",yt.defaultStrokeWidths,yt.defaultStrokeWidth),Ye.strokeWidthPanel.onWidthChanged=Ye.setStrokeWidth,Ye.strokeStylePanel=new Re("Line style",yt.defaultStrokeDasharrays,yt.defaultStrokeDasharray),Ye.strokeStylePanel.onStyleChanged=Ye.setStrokeDasharray,Ye.opacityPanel=new Ct("Opacity",yt.defaultOpacitySteps,Ye.opacity),Ye.opacityPanel.onOpacityChanged=Ye.setOpacity,Ye}return fe(De,We),De.prototype.ownsTarget=function(Ie){return!(!We.prototype.ownsTarget.call(this,Ie)&&Ie!==this.visual)},De.prototype.createVisual=function(){this.visual=we.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)},De.prototype.pointerDown=function(Ie,Xe){We.prototype.pointerDown.call(this,Ie,Xe),this.state==="new"&&(this.createVisual(),this.moveVisual(Ie),this._state="creating")},De.prototype.manipulate=function(Ie){We.prototype.manipulate.call(this,Ie)},De.prototype.resize=function(Ie){We.prototype.resize.call(this,Ie),this.setSize()},De.prototype.setSize=function(){We.prototype.setSize.call(this),we.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},De.prototype.pointerUp=function(Ie){We.prototype.pointerUp.call(this,Ie),this.setSize()},De.prototype.setStrokeColor=function(Ie){this.strokeColor=Ie,this.visual&&we.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Ie),this.stateChanged()},De.prototype.setFillColor=function(Ie){this.fillColor=Ie,this.visual&&we.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Ie),this.stateChanged()},De.prototype.setStrokeWidth=function(Ie){this.strokeWidth=Ie,this.visual&&we.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},De.prototype.setStrokeDasharray=function(Ie){this.strokeDasharray=Ie,this.visual&&we.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},De.prototype.setOpacity=function(Ie){this.opacity=Ie,this.visual&&we.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),De.prototype.getState=function(){var Ie=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},We.prototype.getState.call(this));return Ie.typeName=De.typeName,Ie},De.prototype.restoreState=function(Ie){var Xe=Ie;this.fillColor=Xe.fillColor,this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.opacity=Xe.opacity,this.createVisual(),We.prototype.restoreState.call(this,Ie),this.setSize()},De.prototype.scale=function(Ie,Xe){We.prototype.scale.call(this,Ie,Xe),this.setSize()},De.typeName="EllipseMarker",De.title="Ellipse marker",De.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>',De}(ke),kt=function(We){function De(Ie,Xe,yt){return We.call(this,Ie,Xe,yt)||this}return fe(De,We),Object.defineProperty(De.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),De.prototype.ownsTarget=function(Ie){return!(!We.prototype.ownsTarget.call(this,Ie)&&Ie!==this.tip1&&Ie!==this.tip2)},De.prototype.createTips=function(){this.tip1=we.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(we.createTransform()),this.visual.appendChild(this.tip1),this.tip2=we.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(we.createTransform()),this.visual.appendChild(this.tip2)},De.prototype.pointerDown=function(Ie,Xe){We.prototype.pointerDown.call(this,Ie,Xe),this.state==="creating"&&this.createTips()},De.prototype.adjustVisual=function(){if(We.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(we.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()]]),we.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 Ie=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Xe=this.tip1.transform.baseVal.getItem(0);Xe.setRotate(Ie,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Xe,0);var yt=this.tip2.transform.baseVal.getItem(0);yt.setRotate(Ie+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(yt,0)}},Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),De.prototype.getState=function(){var Ie=We.prototype.getState.call(this);return Ie.typeName=De.typeName,Ie},De.prototype.restoreState=function(Ie){We.prototype.restoreState.call(this,Ie),this.createTips(),this.adjustVisual()},De.typeName="MeasurementMarker",De.title="Measurement marker",De.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>',De}(ot),Wt=function(We){function De(Ie,Xe,yt){var Ye=We.call(this,Ie,Xe,yt)||this;return Ye.strokePanel.colors=yt.defaultColorSet,Ye.fillColor="transparent",Ye}return fe(De,We),Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),De.prototype.getState=function(){var Ie=We.prototype.getState.call(this);return Ie.typeName=De.typeName,Ie},De.typeName="EllipseFrameMarker",De.title="Ellipse frame marker",De.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>',De}(At),Et=function(){function We(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(We.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),We.prototype.addUndoStep=function(De){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(De)||(this.undoStack.push(De),JSON.stringify(this.lastRedoStep)!==JSON.stringify(De)&&this.redoStack.splice(0,this.redoStack.length))},We.prototype.replaceLastUndoStep=function(De){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=De)},We.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},We.prototype.undo=function(){if(this.undoStack.length>1){var De=this.undoStack.pop();return De!==void 0&&this.redoStack.push(De),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},We.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},We}(),St=function(We){function De(Ie,Xe,yt){var Ye=We.call(this,Ie,Xe,yt)||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=yt.defaultColor,Ye.strokeWidth=yt.defaultStrokeWidth,Ye.strokeDasharray=yt.defaultStrokeDasharray,Ye.strokePanel=new pe("Line color",yt.defaultColorSet,yt.defaultColor),Ye.strokePanel.onColorChanged=Ye.setStrokeColor,Ye.strokeWidthPanel=new Fe("Line width",yt.defaultStrokeWidths,yt.defaultStrokeWidth),Ye.strokeWidthPanel.onWidthChanged=Ye.setStrokeWidth,Ye.strokeStylePanel=new Re("Line style",yt.defaultStrokeDasharrays,yt.defaultStrokeDasharray),Ye.strokeStylePanel.onStyleChanged=Ye.setStrokeDasharray,Ye}return fe(De,We),De.prototype.ownsTarget=function(Ie){return!(!We.prototype.ownsTarget.call(this,Ie)&&Ie!==this.visual&&Ie!==this.selectorCurve&&Ie!==this.visibleCurve&&!this.curveGrip.ownsTarget(Ie))},De.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},De.prototype.createVisual=function(){this.visual=we.createGroup(),this.selectorCurve=we.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=we.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)},De.prototype.pointerDown=function(Ie,Xe){We.prototype.pointerDown.call(this,Ie,Xe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Ie.x,this.curveY=Ie.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Xe)&&(this.activeGrip=this.curveGrip,this._state="resize")},De.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),we.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),we.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),we.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},De.prototype.setupControlBox=function(){We.prototype.setupControlBox.call(this),this.curveControlLine1=we.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=we.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)},De.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,We.prototype.addControlGrips.call(this)},De.prototype.positionGrips=function(){We.prototype.positionGrips.call(this);var Ie=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Ie/2,this.curveY-Ie/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()))},De.prototype.manipulate=function(Ie){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Ie.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Ie.y-this.manipulationStartY),We.prototype.manipulate.call(this,Ie)},De.prototype.resize=function(Ie){this.activeGrip===this.curveGrip&&(this.curveX=Ie.x,this.curveY=Ie.y),We.prototype.resize.call(this,Ie),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},De.prototype.setStrokeColor=function(Ie){this.strokeColor=Ie,this.adjustVisual(),this.colorChanged(Ie)},De.prototype.setStrokeWidth=function(Ie){this.strokeWidth=Ie,this.adjustVisual()},De.prototype.setStrokeDasharray=function(Ie){this.strokeDasharray=Ie,this.adjustVisual()},De.prototype.scale=function(Ie,Xe){this.curveX=this.curveX*Ie,this.curveY=this.curveY*Xe,We.prototype.scale.call(this,Ie,Xe)},Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),De.prototype.getState=function(){var Ie=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},We.prototype.getState.call(this));return Ie.typeName=De.typeName,Ie},De.prototype.restoreState=function(Ie){We.prototype.restoreState.call(this,Ie);var Xe=Ie;this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.curveX=Xe.curveX,this.curveY=Xe.curveY,this.createVisual(),this.adjustVisual()},De.typeName="CurveMarker",De.title="Curve marker",De.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>',De}(Ke),tt=function(We){function De(Ie,Xe,yt){var Ye=We.call(this,Ie,Xe,yt)||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=yt.defaultColor,Ye.strokeWidth=yt.defaultStrokeWidth,Ye.strokeDasharray=yt.defaultStrokeDasharray,Ye.fillColor=yt.defaultFillColor,Ye.textColor=yt.defaultStrokeColor,Ye.fontFamily=yt.defaultFontFamily,Ye.fontSize=yt.defaultCaptionFontSize,Ye.captionText=yt.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 pe("Line color",ye(yt.defaultColorSet,["transparent"]),Ye.strokeColor),Ye.strokePanel.onColorChanged=Ye.setStrokeColor,Ye.fillPanel=new pe("Fill color",ye(yt.defaultColorSet,["transparent"]),Ye.fillColor,mt),Ye.fillPanel.onColorChanged=Ye.setFillColor,Ye.strokeWidthPanel=new Fe("Line width",yt.defaultStrokeWidths,yt.defaultStrokeWidth),Ye.strokeWidthPanel.onWidthChanged=Ye.setStrokeWidth,Ye.strokeStylePanel=new Re("Line style",yt.defaultStrokeDasharrays,yt.defaultStrokeDasharray),Ye.strokeStylePanel.onStyleChanged=Ye.setStrokeDasharray,Ye.fontFamilyPanel=new ct("Font",yt.defaultFontFamilies,yt.defaultFontFamily),Ye.fontFamilyPanel.onFontChanged=Ye.setFont,Ye.textColorPanel=new pe("Text color",yt.defaultColorSet,Ye.textColor,vt),Ye.textColorPanel.onColorChanged=Ye.setTextColor,Ye}return fe(De,We),De.prototype.ownsTarget=function(Ie){return!(!We.prototype.ownsTarget.call(this,Ie)&&Ie!==this.visual&&Ie!==this.frame&&Ie!==this.captionBg&&Ie!==this.captionElement)},De.prototype.createVisual=function(){this.visual=we.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=we.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=we.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=we.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()},De.prototype.setCaptionText=function(Ie){this.captionText=Ie,this.captionElement.textContent=this.captionText,this.sizeCaption()},De.prototype.pointerDown=function(Ie,Xe){We.prototype.pointerDown.call(this,Ie,Xe),this.isMoved=!1,this.pointerDownPoint=Ie,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Ie),this._state="creating")},De.prototype.manipulate=function(Ie){We.prototype.manipulate.call(this,Ie),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Ie.x-this.pointerDownPoint.x)>5||Math.abs(Ie.y-this.pointerDownPoint.y)>5)},De.prototype.resize=function(Ie){We.prototype.resize.call(this,Ie),this.setSize()},De.prototype.sizeCaption=function(){var Ie=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=Ie.width+2*this.PADDING,this.captionBoxHeight=Ie.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),we.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')"]]),we.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')"]])},De.prototype.showTextEditor=function(){var Ie=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(Xe){Xe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Xe){Xe.key==="Enter"&&Ie.finishTextEditing(Ie.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Xe){Xe.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){Ie.finishTextEditing(Ie.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){Ie.finishTextEditing(Ie.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},De.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"))},De.prototype.finishTextEditing=function(Ie){this.setCaptionText(Ie.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},De.prototype.setFont=function(Ie){this.captionElement&&we.setAttributes(this.captionElement,[["font-family",Ie]]),this.fontFamily=Ie,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},De.prototype.setTextColor=function(Ie){this.captionElement&&we.setAttributes(this.captionElement,[["fill",Ie]]),this.textColor=Ie,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},De.prototype.setSize=function(){We.prototype.setSize.call(this),we.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},De.prototype.pointerUp=function(Ie){We.prototype.pointerUp.call(this,Ie),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},De.prototype.dblClick=function(Ie,Xe){We.prototype.dblClick.call(this,Ie,Xe),this.showTextEditor()},De.prototype.setStrokeColor=function(Ie){this.strokeColor=Ie,this.frame&&we.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Ie),this.stateChanged()},De.prototype.setFillColor=function(Ie){this.fillColor=Ie,this.captionBg&&we.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Ie),this.stateChanged()},De.prototype.setStrokeWidth=function(Ie){this.strokeWidth=Ie,this.frame&&we.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},De.prototype.setStrokeDasharray=function(Ie){this.strokeDasharray=Ie,this.frame&&we.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),De.prototype.getState=function(){var Ie=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},We.prototype.getState.call(this));return Ie.typeName=this.typeName,Ie},De.prototype.restoreState=function(Ie){var Xe=Ie;this.fillColor=Xe.fillColor,this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.textColor=Xe.textColor,this.fontFamily=Xe.fontFamily,this.captionText=Xe.captionText,this.fontSize=Xe.fontSize,this.createVisual(),We.prototype.restoreState.call(this,Ie),this.setSize()},De.prototype.scale=function(Ie,Xe){We.prototype.scale.call(this,Ie,Xe),this.setSize()},De.typeName="CaptionFrameMarker",De.title="Caption frame marker",De.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>',De}(ke),ft=function(){function We(De,Ie){Ie===void 0&&(Ie=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=De,this.cancelable=Ie}return Object.defineProperty(We.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),We.prototype.preventDefault=function(){this._defaultPrevented=!0},We}(),$e=function(We){function De(Ie,Xe,yt){var Ye=We.call(this,Ie,!1)||this;return Ye.dataUrl=Xe,Ye.state=yt,Ye}return fe(De,We),De}(ft),lt=function(We){function De(Ie,Xe,yt){yt===void 0&&(yt=!1);var Ye=We.call(this,Ie,yt)||this;return Ye.marker=Xe,Ye}return fe(De,We),De}(ft),Pt=function(){function We(){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 We.prototype.addEventListener=function(De,Ie){this[De].push(Ie)},We.prototype.removeEventListener=function(De,Ie){var Xe=this[De].indexOf(Ie);Xe>-1&&this[De].splice(Xe,1)},We}(),dt=function(){function We(De){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new ze,this._isOpen=!1,this.undoRedoManager=new Et,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 Pt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=We.instanceCounter++,this.styles=new z(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=De,this.targetRoot=document.body,this.width=De.clientWidth,this.height=De.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(We.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ze,bt,at,pt,Wt,At,wt,xt,kt,gt,ot,St,tt]},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ze,bt,at,pt,At,wt,xt]},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ze,bt,at,pt,wt]},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(De){var Ie=this;this._availableMarkerTypes.splice(0),De.forEach(function(Xe){if(typeof Xe=="string"){var yt=Ie.ALL_MARKER_TYPES.find(function(Ye){return Ye.typeName===Xe});yt!==void 0&&Ie._availableMarkerTypes.push(yt)}else Ie._availableMarkerTypes.push(Xe)})},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(De){this._zoomLevel=De,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(We.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),We.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),me.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},We.prototype.show=function(){var De=this;this.styles.styleSheetRoot===void 0&&de.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=de.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Ie){return Ie(new ft(De))})},We.prototype.render=function(){return be(this,void 0,void 0,function(){var De;return Pe(this,function(Ie){switch(Ie.label){case 0:return this.setCurrentMarker(),(De=new Se).naturalSize=this.renderAtNaturalSize,De.imageType=this.renderImageType,De.imageQuality=this.renderImageQuality,De.markersOnly=this.renderMarkersOnly,De.width=this.renderWidth,De.height=this.renderHeight,[4,De.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Ie.sent(),[4,De.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Ie.sent()]}})})},We.prototype.close=function(De){var Ie=this;if(De===void 0&&(De=!1),this.isOpen){var Xe=!1;De||this.eventListeners.beforeclose.forEach(function(yt){var Ye=new ft(Ie,!0);yt(Ye),Ye.defaultPrevented&&(Xe=!0)}),Xe||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(yt){return yt(new ft(Ie))}),this.detachEvents(),this._isOpen=!1)}},We.prototype.addMarkersToToolbar=function(){for(var De,Ie=[],Xe=0;Xe<arguments.length;Xe++)Ie[Xe]=arguments[Xe];(De=this._availableMarkerTypes).push.apply(De,Ie)},We.prototype.addRenderEventListener=function(De){this.addEventListener("render",function(Ie){De(Ie.dataUrl,Ie.state)})},We.prototype.removeRenderEventListener=function(De){},We.prototype.addCloseEventListener=function(De){this.addEventListener("close",function(){De()})},We.prototype.removeCloseEventListener=function(De){},We.prototype.setupResizeObserver=function(){var De=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){De.resize(De.target.clientWidth,De.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return De.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},We.prototype.onPopupTargetResize=function(){var De=1*this.target.clientWidth/this.target.clientHeight,Ie=this.editorCanvas.clientWidth/De>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*De:this.editorCanvas.clientWidth,Xe=Ie<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/De;this.resize(Ie,Xe)},We.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},We.prototype.resize=function(De,Ie){this._isResizing=!0;var Xe=De/this.imageWidth,yt=Ie/this.imageHeight;this.imageWidth=Math.round(De),this.imageHeight=Math.round(Ie),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(Xe,yt),this._isResizing=!1},We.prototype.scaleMarkers=function(De,Ie){var Xe,yt=this;this._currentMarker&&this._currentMarker instanceof pt?this._currentMarker.scale(De,Ie):(Xe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Ye){Ye!==yt._currentMarker&&Ye.scale(De,Ie)}),Xe!==void 0&&this.setCurrentMarker(Xe)},We.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"},We.prototype.setTopLeft=function(){var De=this.editingTarget.getBoundingClientRect(),Ie=this.editorCanvas.getBoundingClientRect();this.left=De.left-Ie.left,this.top=De.top-Ie.top},We.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)},We.prototype.addDefs=function(){for(var De,Ie=[],Xe=0;Xe<arguments.length;Xe++)Ie[Xe]=arguments[Xe];this.defs=we.createDefs(),this.addDefsToImage(),(De=this.defs).append.apply(De,Ie)},We.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},We.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)},We.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},We.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},We.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)},We.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},We.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)},We.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 De=document.createElement("a");De.href="https://markerjs.com/",De.target="_blank",De.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>',De.title="Powered by marker.js",De.style.display="grid",De.style.alignItems="center",De.style.justifyItems="center",De.style.padding="3px",De.style.width="20px",De.style.height="20px",this.logoUI.appendChild(De),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},We.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")},We.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"},We.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},We.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 De=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=De+"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 re(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 le(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},We.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},We.prototype.removeMarker=function(De){this.markerImage.removeChild(De.container),this.markers.indexOf(De)>-1&&this.markers.splice(this.markers.indexOf(De),1),De.dispose()},We.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())},We.prototype.toolbarButtonClicked=function(De,Ie){if(De==="marker"&&Ie!==void 0)this.createNewMarker(Ie);else if(De==="action")switch(Ie){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()}},We.prototype.deleteSelectedMarker=function(){var De=this;if(this._currentMarker!==void 0){var Ie=!1;if(this.eventListeners.markerbeforedelete.forEach(function(yt){var Ye=new lt(De,De._currentMarker,!0);yt(Ye),Ye.defaultPrevented&&(Ie=!0)}),!Ie){var Xe=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(yt){return yt(new lt(De,Xe))})}}},We.prototype.clear=function(){var De=this,Ie=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(jt){var Ht=new lt(De,void 0,!0);jt(Ht),Ht.defaultPrevented&&(Ie=!0)}),!Ie)){this.setCurrentMarker();for(var Xe=function(jt){var Ht=yt.markers[jt];yt.setCurrentMarker(yt.markers[jt]),yt._currentMarker.dispose(),yt.markerImage.removeChild(yt._currentMarker.container),yt.markers.splice(yt.markers.indexOf(yt._currentMarker),1),yt.eventListeners.markerdelete.forEach(function(en){return en(new lt(De,Ht))})},yt=this,Ye=this.markers.length-1;Ye>=0;Ye--)Xe(Ye);this.addUndoStep()}},Object.defineProperty(We.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),We.prototype.showNotesEditor=function(){var De;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=(De=this._currentMarker.notes)!==null&&De!==void 0?De:"",this.overlayContainer.appendChild(this.notesArea))},We.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)},We.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},We.prototype.addUndoStep=function(){var De=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Ie=this.getState(),Xe=this.undoRedoManager.getLastUndoStep();if(!Xe||Xe.width===Ie.width&&Xe.height===Ie.height){var yt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Ie),yt<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Ye){return Ye(new ft(De))})}else this.undoRedoManager.replaceLastUndoStep(Ie),this.eventListeners.statechange.forEach(function(Ye){return Ye(new ft(De))})}},We.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},We.prototype.undoStep=function(){var De=this,Ie=this.undoRedoManager.undo();Ie!==void 0&&(this.restoreState(Ie),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Xe){return Xe(new ft(De))}))},We.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},We.prototype.redoStep=function(){var De=this,Ie=this.undoRedoManager.redo();Ie!==void 0&&(this.restoreState(Ie),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Xe){return Xe(new ft(De))}))},We.prototype.stepZoom=function(){var De=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=De<this.zoomSteps.length-1?this.zoomSteps[De+1]:this.zoomSteps[0]},We.prototype.panTo=function(De){this.contentDiv.scrollBy({left:this.prevPanPoint.x-De.x,top:this.prevPanPoint.y-De.y}),this.prevPanPoint=De},We.prototype.startRenderAndClose=function(){return be(this,void 0,void 0,function(){var De,Ie,Xe=this;return Pe(this,function(yt){switch(yt.label){case 0:return[4,this.render()];case 1:return De=yt.sent(),Ie=this.getState(),this.eventListeners.render.forEach(function(Ye){return Ye(new $e(Xe,De,Ie))}),this.close(!0),[2]}})})},We.prototype.getState=function(De){De===!0&&this.setCurrentMarker();var Ie={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Xe){return Ie.markers.push(Xe.getState())}),Ie},We.prototype.restoreState=function(De){var Ie=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);De.markers.forEach(function(Xe){var yt=Ie._availableMarkerTypes.find(function(jt){return jt.typeName===Xe.typeName});if(yt!==void 0){var Ye=Ie.addNewMarker(yt);Ye.restoreState(Xe),Ie.markers.push(Ye)}}),De.width&&De.height&&(De.width!==this.imageWidth||De.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/De.width,this.imageHeight/De.height),this.eventListeners.restorestate.forEach(function(Xe){return Xe(new ft(Ie))})},We.prototype.addNewMarker=function(De){var Ie=we.createGroup();return this.markerImage.appendChild(Ie),new De(Ie,this.overlayContainer,this.settings)},We.prototype.createNewMarker=function(De){var Ie,Xe=this;(Ie=typeof De=="string"?this._availableMarkerTypes.find(function(yt){return yt.typeName===De}):De)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(Ie),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(Ie.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(yt){return yt(new lt(Xe,Xe._currentMarker))}))},We.prototype.markerCreated=function(De){var Ie=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(De),this.setCurrentMarker(De),De instanceof bt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(bt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Xe){return Xe(new lt(Ie,Ie._currentMarker))})},We.prototype.colorChanged=function(De){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=De,this.settings.defaultStrokeColor=De)},We.prototype.fillColorChanged=function(De){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=De)},We.prototype.markerStateChanged=function(De){var Ie=this;this.eventListeners.markerchange.forEach(function(Xe){return Xe(new lt(Ie,De))})},We.prototype.setCurrentMarker=function(De){var Ie=this;this._currentMarker!==De&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Xe){return Xe(new lt(Ie,Ie._currentMarker))})),this._currentMarker=De,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(Xe){return Xe(new lt(Ie,Ie._currentMarker))}))},We.prototype.onPointerDown=function(De){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||De.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var Ie=this.markers.find(function(Xe){return Xe.ownsTarget(De.target)});Ie!==void 0?(this.setCurrentMarker(Ie),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(De.clientX,De.clientY),De.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:De.clientX,y:De.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(De.clientX,De.clientY))},We.prototype.onDblClick=function(De){if(this._isFocused||this.focus(),this.mode==="select"){var Ie=this.markers.find(function(Xe){return Xe.ownsTarget(De.target)});Ie!==void 0&&Ie!==this._currentMarker&&this.setCurrentMarker(Ie),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(De.clientX,De.clientY),De.target):this.setCurrentMarker()}},We.prototype.onPointerMove=function(De){this.touchPoints!==1&&De.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||De.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(De.clientX,De.clientY)):this.zoomLevel>1&&this.panTo({x:De.clientX,y:De.clientY}))},We.prototype.onPointerUp=function(De){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(De.clientX,De.clientY)),this.isDragging=!1,this.addUndoStep()},We.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},We.prototype.onKeyUp=function(De){this._currentMarker===void 0||this.notesArea!==void 0||De.key!=="Delete"&&De.key!=="Backspace"||this.deleteSelectedMarker()},We.prototype.clientToLocalCoordinates=function(De,Ie){var Xe=this.markerImage.getBoundingClientRect();return{x:(De-Xe.left)/this.zoomLevel,y:(Ie-Xe.top)/this.zoomLevel}},We.prototype.onWindowResize=function(){this.positionUI()},We.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var De=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=De+"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()},We.prototype.addLicenseKey=function(De){me.addKey(De)},We.prototype.addEventListener=function(De,Ie){this.eventListeners.addEventListener(De,Ie)},We.prototype.removeEventListener=function(De,Ie){this.eventListeners.removeEventListener(De,Ie)},We.prototype.renderState=function(De){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(De),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(We.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),We.prototype.focus=function(){var De=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Ie){return Ie(new ft(De))}))},We.prototype.blur=function(){var De=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Ie){return Ie(new ft(De))}))},We.instanceCounter=0,We}(),et=Ge(99064),Ve=Ge(955),He=(We,De,Ie)=>new Promise((Xe,yt)=>{var Ye=en=>{try{Ht(Ie.next(en))}catch(It){yt(It)}},jt=en=>{try{Ht(Ie.throw(en))}catch(It){yt(It)}},Ht=en=>en.done?Xe(en.value):Promise.resolve(en.value).then(Ye,jt);Ht((Ie=Ie.apply(We,De)).next())}),ut=({data:We,className:De,fullWidth:Ie,style:Xe={},onClose:yt,onOk:Ye,showFullTools:jt,noAssociationId:Ht})=>{const en=(0,Qe.useRef)(null),It=(0,Qe.useRef)(null),Ut=(0,Qe.useRef)(null),tn=(0,Qe.useRef)(null),[ln,mn]=(0,Qe.useState)(!1),[jn,Vn]=(0,Qe.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Qe.useEffect)(()=>(Ut.current||(Ut.current=document.createElement("style"),document.head.appendChild(Ut.current)),We!=null&&We.visible?(document.body.setAttribute("data-custom","y-hidden"),Ut.current.innerHTML=" html { overflow-y: hidden; }",We!=null&&We.src&&Kn()):(document.body.removeAttribute("data-custom"),Ut.current&&(document.head.removeChild(Ut.current),Ut.current=null)),()=>{document.body.removeAttribute("data-custom"),Ut.current&&(document.head.removeChild(Ut.current),Ut.current=null)}),[We==null?void 0:We.visible]);const Kn=()=>He(void 0,null,function*(){mn(!0),Vn("\u6B63\u5728\u52A0\u8F7D\u4E2D");const dr=yield(0,Ve.ZJ)(We==null?void 0:We.src);en.current.src="",en.current.src=dr,en.current.onload=function(){gr()},mn(!1),Vn("")}),ar=dr=>He(void 0,null,function*(){mn(!0),Vn("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Tr=yield(0,et.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:We.title,file:dr.dataUrl}});Tr!=null&&Tr.id&&!Ht?(yield(0,et.ZP)(`/api/attachments/${We.id}/add_subitem.json`,{method:"post",body:{subitem_id:Tr==null?void 0:Tr.id,settings:JSON.stringify(dr.state)}})).status===0&&Ye():Tr!=null&&Tr.id&&Ye(Tr),mn(!1),Vn("")}),xr=()=>{const dr=document.querySelector('a[href="https://markerjs.com/"]');dr&&dr.parentNode&&(dr.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(Rr=>{const Zr=document.querySelector(Rr.name);Zr&&Zr.setAttribute("title",Rr.title)})},gr=()=>{It.current=new dt(en.current),It.current.targetRoot=tn.current,It.current.addEventListener("render",ar),It.current.addEventListener("beforeclose",yt),jt&&(It.current.availableMarkerTypes=It.current.ALL_MARKER_TYPES,It.current.uiStyleSettings.redoButtonVisible=!0,It.current.uiStyleSettings.notesButtonVisible=!0,It.current.uiStyleSettings.zoomButtonVisible=!0,It.current.uiStyleSettings.zoomOutButtonVisible=!0,It.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=It.current.uiStyleSettings,It.current.show(),We!=null&&We.snapshotData&&It.current.restoreState(We.snapshotData),setTimeout(()=>{window.scrollTo(0,0),xr()},300)};return Qe.createElement(Qe.Fragment,null,(We==null?void 0:We.visible)&&Qe.createElement(Ne.Z,{spinning:ln,tip:jn,style:{position:"absolute",width:"100vw"}},Qe.createElement("div",{ref:tn,className:_e()(Tt.imageDimensions,De,Ie?Tt.fullWidth:""),style:Xe},Qe.createElement("img",{className:Tt.img,ref:en}))))}},68664:function(bn,an,Ge){"use strict";Ge.d(an,{N:function(){return ee}});var Qe=Ge(59301),Tt=Ge(57809),oe=Ge(43418),_e=Ge(92832),Ne=Ge(8591),ve=Ge(95237),fe=Ge(43604),be=Ge(99064),Pe={wrap:"wrap___F7E3F",selectWrapper:"selectWrapper____kESB",tips:"tips___aHjQY",linkBtn:"linkBtn___uggVr",mainText:"mainText____S1I0",public_tips:"public_tips___sZVWd",inputCss:"inputCss___t66EO",bt:"bt___lXptu",add_style:"add_style___knrMF"},ye=Ge(92310),we=Ge.n(ye),me=Ge(87169),Se=Ge(59301),de=(ae,re,le)=>new Promise((ue,pe)=>{var Ee=Le=>{try{je(le.next(Le))}catch(ke){pe(ke)}},Ce=Le=>{try{je(le.throw(Le))}catch(ke){pe(ke)}},je=Le=>Le.done?ue(Le.value):Promise.resolve(Le.value).then(Ee,Ce);je((le=le.apply(ae,re)).next())});const{Option:z}=Tt.default,ee=({subId:ae,value:re,selectvalues:le,disabled:ue,knowledgeOptions:pe=[],className:Ee,height:Ce,onChange:je=()=>{},onAddKnowledgeFinish:Le=()=>{},zIndex:ke=1e3})=>{const Oe=(0,Qe.useRef)(),[Fe,Re]=(0,Qe.useState)([]);re=re||[];const Ze=(Ke,ot)=>{Ke?(Re([...ot]),je([...ot])):(Re([]),je([]))};(0,Qe.useEffect)(()=>{(le==null?void 0:le.length)>0?(Re([...le]),je([...le])):(Re([]),je([]))},[pe]),(0,Qe.useEffect)(()=>{(re==null?void 0:re.length)>0&&je([...re])},[pe]);const ze=Ke=>{Ke.preventDefault(),Oe.current="",oe.default.confirm({centered:!0,width:585,zIndex:ke,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",icon:null,title:"\u65B0\u5EFA\u77E5\u8BC6\u70B9",className:"custom-modal-divider",content:Se.createElement("div",{className:"font14"},Se.createElement("div",{className:Pe.public_tips},Se.createElement(me.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"),Se.createElement("div",{style:{display:"flex",alignItems:"center"}},Se.createElement("div",{style:{width:"95px"}},Se.createElement("span",{className:Pe.bt},"*"),"\u77E5\u8BC6\u70B9\u540D\u79F0"),Se.createElement(_e.default,{className:Pe.inputCss,style:{width:"calc(100% - 95px)"},maxLength:20,size:"middle",showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0",defaultValue:Oe.current,onChange:ot=>{Oe.current=ot.target.value}}))),onOk:()=>new Promise((ot,ct)=>de(void 0,null,function*(){if(!Oe.current)return Ne.ZP.warning("\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"),ct();if(Oe.current.length>20)return Ne.ZP.warning("\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u77E5\u8BC6\u70B9\u540D\u79F0"),ct();const pt=yield(0,be.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:Oe.current,sub_discipline_id:ae}});if((pt==null?void 0:pt.status)===0){Le({id:pt.tag_discipline_id,name:Oe.current,type:"personal"});let bt=le||[];bt.push(pt.tag_discipline_id),je([...bt]),Re([...bt]),je([...bt])}return ot()}))})};return Se.createElement(ve.Z,{wrap:!1,align:"middle",className:we()(Pe.wrap,Ee)},Se.createElement(fe.Z,null,Se.createElement(Tt.default,{mode:"multiple",disabled:!ae||ue,className:Pe.selectWrapper,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9\uFF0C\u652F\u6301\u9009\u62E9\u591A\u4E2A",onChange:Ze,style:{width:Ce||490},showSearch:!0,allowClear:!0,value:Fe,filterOption:(Ke,ot)=>ot.label.indexOf(Ke.toLowerCase())>=0},pe==null?void 0:pe.map(Ke=>Se.createElement(z,{key:Ke.id,value:Ke.id,label:Ke.name},Se.createElement("div",{style:{display:"flex",alignItems:"center"}},Se.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},Ke.name),(Ke==null?void 0:Ke.type)==="personal"&&Se.createElement("div",{style:{marginLeft:"5px",border:"1px solid #24C074",color:"#24C074",padding:"0 4px",borderRadius:"2px",fontSize:"12px",height:"20px",lineHeight:"20px"}},"\u81EA\u7528")))))),ae&&Se.createElement(fe.Z,{className:`ml20 ${Ce&&Pe.add_style}`},Se.createElement("span",{className:Pe.tips},"\u6CA1\u6709\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF1F"),Se.createElement("span",{className:Pe.linkBtn,onClick:ze},"\u65B0\u5EFA\u77E5\u8BC6\u70B9")))}},41588:function(bn,an,Ge){"use strict";var Qe=Ge(59301),Tt=Ge(95237),oe=Ge(43604),_e=Ge(99313),Ne=Ge(3113),ve=Ge(85149),fe=Ge(88010),be=Ge(48136),Pe=Ge(59301);const ye=(0,Qe.forwardRef)(({callback:we,showSaveButton:me,value:Se=""},de)=>{const z=(0,Qe.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 "}]}]}],ae=[{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}`}]}]}],re=pe=>{z.current.setValue(z.current.getValue()+" "+pe.value+" ")},le=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Pe.createElement(Tt.Z,{className:fe.Z.lists,gutter:[10,10]},ee.map((pe,Ee)=>Pe.createElement(oe.Z,{flex:"110px",className:fe.Z.item},Pe.createElement("div",null,Pe.createElement(ve.Z,{value:`$$${pe.value}$$`}),pe.name),Pe.createElement("div",{className:fe.Z.children},pe.children.map((Ce,je)=>Pe.createElement("div",{key:je},Pe.createElement("h1",null,Ce.name),Pe.createElement(Tt.Z,{gutter:[10,10]},Ce.data.map((Le,ke)=>Pe.createElement(oe.Z,{key:ke,onClick:()=>re(Le),className:fe.Z.diamond},Pe.createElement(ve.Z,{value:"`$$"+Le.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Pe.createElement(Tt.Z,{className:fe.Z.lists,gutter:[10,10]},ae.map((pe,Ee)=>Pe.createElement(oe.Z,{flex:"110px",className:fe.Z.item},Pe.createElement("div",null,Pe.createElement(ve.Z,{value:"`$$"+pe.value+"$$`"}),pe.name),Pe.createElement("div",{className:fe.Z.children},pe.children.map((Ce,je)=>Pe.createElement("div",{key:je},Ce.name&&Pe.createElement("h1",null,Ce.name),Pe.createElement(Tt.Z,{gutter:[10,10]},Ce.data.map((Le,ke)=>Pe.createElement(oe.Z,{key:ke,onClick:()=>re(Le),className:fe.Z.diamond},Pe.createElement(ve.Z,{value:"`$$"+Le.value+"$$`"}))))))))))}],ue=()=>{var pe=document.createElement("div");pe.innerHTML=z.current.getValue();var Ee=pe.innerText;return we&&we(Ee),Ee};return(0,Qe.useImperativeHandle)(de,()=>({getData:ue})),Pe.createElement("div",{className:fe.Z.mathWrap},Pe.createElement(_e.default,{defaultActiveKey:"1",items:le}),Pe.createElement("math-field",{locale:"zh_cn",className:fe.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:z,style:{width:800,marginTop:30,fontSize:18}},Se||""),me&&Pe.createElement("div",{className:fe.Z.button},Pe.createElement(Ne.ZP,{size:"large",onClick:ue,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});an.Z=ye},8797:function(bn,an,Ge){"use strict";var Qe=Ge(59301),Tt=Ge(93314),oe=Ge(3113),_e=Object.defineProperty,Ne=Object.defineProperties,ve=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,ye=(de,z,ee)=>z in de?_e(de,z,{enumerable:!0,configurable:!0,writable:!0,value:ee}):de[z]=ee,we=(de,z)=>{for(var ee in z||(z={}))be.call(z,ee)&&ye(de,ee,z[ee]);if(fe)for(var ee of fe(z))Pe.call(z,ee)&&ye(de,ee,z[ee]);return de},me=(de,z)=>Ne(de,ve(z));const Se=({img:de,buttonProps:z={},styles:ee={},customText:ae,ButtonText:re,ButtonClick:le,Buttonclass:ue,ButtonTwo:pe,imgStyles:Ee,loading:Ce=!1,className:je=""})=>Qe.createElement("section",{className:`tc animated fadeIn ${je}`,style:we({color:"#999",margin:"100px auto",visibility:Ce?"hidden":"visible"},ee)},Qe.createElement("img",{src:de||Tt,style:me(we({},Ee),{pointerEvents:"none",userSelect:"none"})}),Qe.createElement("p",{className:"mt20 font14"},ae||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),re&&Qe.createElement(oe.ZP,we({className:ue,onClick:le},z),re),pe&&pe);an.Z=Se},23210:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return ue}});var Qe=Ge(59301),Tt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},oe=Ge(3113),_e=Ge(70557),Ne=Ge(23954),ve=Ge(6848),fe=Ge(955),be=Ge(94941),Pe=Ge(8797),ye=Ge(3294),we=Ge(19381),me=Ge(59301),Se=Object.defineProperty,de=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(pe,Ee,Ce)=>Ee in pe?Se(pe,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):pe[Ee]=Ce,re=(pe,Ee)=>{for(var Ce in Ee||(Ee={}))z.call(Ee,Ce)&&ae(pe,Ce,Ee[Ce]);if(de)for(var Ce of de(Ee))ee.call(Ee,Ce)&&ae(pe,Ce,Ee[Ce]);return pe},le=(pe,Ee,Ce)=>new Promise((je,Le)=>{var ke=Re=>{try{Fe(Ce.next(Re))}catch(Ze){Le(Ze)}},Oe=Re=>{try{Fe(Ce.throw(Re))}catch(Ze){Le(Ze)}},Fe=Re=>Re.done?je(Re.value):Promise.resolve(Re.value).then(ke,Oe);Fe((Ce=Ce.apply(pe,Ee)).next())}),ue=({editOffice:pe="view",data:Ee,theme:Ce,type:je,filename:Le,monacoEditor:ke,className:Oe,style:Fe,close:Re,onClose:Ze,hasMask:ze,disabledDownload:Ke,onImgDimensions:ot,showNodata:ct,recordInfo:pt})=>{const[bt,qe]=(0,Qe.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[at,gt]=(0,Qe.useState)(""),[Ct,wt]=(0,Qe.useState)(),vt=window.ENV==="build"?"/react/build":"",mt=location.host.startsWith("localhost")?ye.Z.PROXY_SERVER:ye.Z.API_SERVER,At=10*(1024*1024),kt=(0,Qe.useRef)();Ee!=null&&Ee.startsWith("/api")&&je!=="txt"&&(Ee=ye.Z.API_SERVER+Ee);const Wt=ft=>ft.substring(ft.lastIndexOf("/")+1).split(".").pop();Le&&ke&&(ke.filename=Le),(0,Qe.useEffect)(()=>{var ft,$e;const lt=($e=(ft=document.cookie)==null?void 0:ft.replace(/\s/g,""))==null?void 0:$e.split(";");lt==null||lt.map(Pt=>{let dt=Pt.split("=");dt[0]==="_educoder_session"&>(dt[1])})},[]),(0,Qe.useEffect)(()=>{je==="office"&&(Ee.indexOf("bigfilescdn.")>-1||Ee.indexOf("bigfiles1")>-1?wt({url:Ee,fileType:Wt(Ee),model:Ee.indexOf("model=edit")?"edit":"view"}):Et())},[je,Ee]);const Et=()=>le(void 0,null,function*(){console.log("data:",Ee);let ft=Ee;Ee.startsWith("http")||(ft=location.origin+ft);let $e=new URL(ft).pathname.split("/").pop();const lt=yield(0,be.gJ)({attachment_id:$e});lt.url=mt+lt.url,wt(lt)}),St=()=>{if(Ee.startsWith("http")||Ee.startsWith("blob:")){tt();return}(0,fe.Sv)(Le||"educoder",Ee,Le)},tt=()=>{pt&&(0,we.fc)({id:pt==null?void 0:pt.id,watch_type:1,course_id:pt==null?void 0:pt.course_id}),(0,fe.Nd)(Le||"educoder",decodeURIComponent(Ee))};return me.createElement("div",{style:re({},Fe||{}),className:`${ze&&Tt.bgBlack} ${je?Tt.wrp:"hide"}`},Re&&me.createElement("div",{className:Tt.close,ref:kt},!!ot&&me.createElement(ve.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>kt.current},me.createElement("span",{onClick:()=>{Ze(),ot()}},me.createElement("i",{className:"icon-yulanpizhu"}))),!Ke&&me.createElement(ve.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>kt.current},me.createElement("span",{onClick:tt},me.createElement("i",{className:"icon-quxiaozhiding"}))),me.createElement(ve.Z,{title:"\u5173\u95ED",getPopupContainer:()=>kt.current},me.createElement("span",{className:"",onClick:Ze},me.createElement("i",{className:"icon-guanbi1"})))),me.createElement("div",{className:`${Tt[Oe]} ${Oe} ${Tt.monaco} ${je==="txt"?"show":"hide"}`},je==="txt"&&me.createElement(me.Fragment,null,me.createElement(Ne.ZP,re({},ke)))),je==="audio"&&me.createElement("audio",{src:`${(Ee==null?void 0:Ee.indexOf("http://"))>-1||(Ee==null?void 0:Ee.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ee}`,autoPlay:!0}),je==="video"&&me.createElement(me.Fragment,null,(Ee==null?void 0:Ee.indexOf("http"))>-1?me.createElement("video",{controls:!0,src:`${Ee}`,autoPlay:!0}):me.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ee}`,autoPlay:!0})),je==="office"&&Ct&&me.createElement("iframe",{src:`${vt}/office.html?key=${Ct.key}&url=${btoa(Ct.url)}&callbackUrl=${mt+(Ct.callbackUrl||"")}&fileType=${Ct.fileType}&title=${Ct.title||""}&model=${pe}&officeServer=${ye.Z.ONLYOFFICE}&disabledDownload=${!!Ke}`}),je==="html"&&me.createElement("iframe",{src:Ee+"&disposition=inline"}),je==="pdf"&&me.createElement("iframe",{src:`${vt}/js/pdfview/index.html?filename=${Le||"educoder.pdf"}&url=${encodeURIComponent(Ee)}&disabledDownload=${!!Ke}`}),je==="image"&&me.createElement("img",{src:`${(Ee==null?void 0:Ee.indexOf("http://"))>-1||(Ee==null?void 0:Ee.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ee}`}),(je==="other"||je==="download")&&me.createElement(me.Fragment,null,ct?me.createElement(Pe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:me.createElement(oe.ZP,{icon:me.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:St,disabled:Ke},"\u4E0B\u8F7D")}):me.createElement(oe.ZP,{type:"primary",size:"middle",onClick:St,disabled:Ke},me.createElement(_e.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},41984:function(bn,an,Ge){"use strict";Ge.d(an,{h:function(){return z},x:function(){return ee}});var Qe=Ge(12290),Tt=Ge(43809),oe=Ge(85149),_e=Ge(59301),Ne=Object.defineProperty,ve=Object.defineProperties,fe=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,we=(ae,re,le)=>re in ae?Ne(ae,re,{enumerable:!0,configurable:!0,writable:!0,value:le}):ae[re]=le,me=(ae,re)=>{for(var le in re||(re={}))Pe.call(re,le)&&we(ae,le,re[le]);if(be)for(var le of be(re))ye.call(re,le)&&we(ae,le,re[le]);return ae},Se=(ae,re)=>ve(ae,fe(re)),de=(ae,re)=>{var le={};for(var ue in ae)Pe.call(ae,ue)&&re.indexOf(ue)<0&&(le[ue]=ae[ue]);if(ae!=null&&be)for(var ue of be(ae))re.indexOf(ue)<0&&ye.call(ae,ue)&&(le[ue]=ae[ue]);return le};const z=ae=>{var re=ae,{value:le,onChange:ue,scrollId:pe}=re,Ee=de(re,["value","onChange","scrollId"]);return _e.createElement("div",{id:pe||""},_e.createElement(Qe.Z,Se(me({},Ee),{defaultValue:le,onChange:(Ce,je)=>{je!=null&&je.length?ue(Ce,je):ue(Ce)}})))},ee=({value:ae,onChange:re,placeholder:le,height:ue=140,isEdit:pe,miniToolbar:Ee,watch:Ce=!0})=>pe?_e.createElement(Qe.Z,{watch:Ce,isFocus:!0,height:ue||void 0,placeholder:le,defaultValue:ae,onChange:re,miniToolbar:Ee}):_e.createElement("div",{style:{cursor:"pointer"}},ae?_e.createElement(oe.Z,{className:Tt.Z.inputBorder,value:ae}):_e.createElement("div",{className:`${Tt.Z.inputBorder} ${Tt.Z.placeholder} inputBorderError`},le))},85149:function(bn,an,Ge){"use strict";Ge.d(an,{z:function(){return je},Z:function(){return Le}});var Qe=Ge(59301),Tt=Ge(50304),oe=Ge(24768),_e=Ge(64018),Ne=Ge(65157),ve=Ge(3294),fe=Ge(955),be=Ge(15342),Pe=Ge(1012),ye=Ge(23210),we=Ge(59301),Se=({html:ke})=>{const Oe=(0,Qe.useRef)(null),Fe=(0,Qe.useRef)(null),Re=`.markdown-body p {
|
|
|
margin: 0 0 16px 0 !important;
|
|
|
line-height: 28px;
|
|
|
white-space: pre-wrap;
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
li {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
dl {
|
|
|
margin-bottom: 0px;
|
|
|
}
|
|
|
|
|
|
.markdown-body {
|
|
|
-ms-text-size-adjust: 100%;
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
color: #333;
|
|
|
overflow: hidden;
|
|
|
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
|
|
|
word-break: break-word;
|
|
|
font-size: 16px;
|
|
|
line-height: 1.6;
|
|
|
white-space: normal;
|
|
|
word-wrap: break-word;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul>li {
|
|
|
list-style-type: disc;
|
|
|
}
|
|
|
|
|
|
.markdown-body ol>li {
|
|
|
list-style-type: decimal;
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
background: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:active,
|
|
|
.markdown-body a:hover {
|
|
|
outline: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body strong {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 2em;
|
|
|
margin: 0.67em 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
-moz-box-sizing: content-box;
|
|
|
box-sizing: content-box;
|
|
|
height: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
overflow: auto;
|
|
|
}
|
|
|
|
|
|
.markdown-body code,
|
|
|
.markdown-body kbd,
|
|
|
.markdown-body pre {
|
|
|
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
color: inherit;
|
|
|
font: inherit;
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body html input[disabled] {
|
|
|
cursor: default;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
line-height: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body input[type="checkbox"] {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
border-collapse: collapse;
|
|
|
border-spacing: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body td,
|
|
|
.markdown-body th {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body * {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
color: #4183c4;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:hover,
|
|
|
.markdown-body a:active {
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
height: 0;
|
|
|
margin: 15px 0;
|
|
|
overflow: hidden;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:before {
|
|
|
display: table;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:after {
|
|
|
display: table;
|
|
|
clear: both;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
margin-top: 15px;
|
|
|
margin-bottom: 15px;
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
font-size: 21px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 11px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding: 0;
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
ul.linenums,
|
|
|
ol.linenums {
|
|
|
padding: 16px 0 0 36px !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding-left: 2em;
|
|
|
}
|
|
|
|
|
|
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ul ol {
|
|
|
list-style-type: lower-roman;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul ol,
|
|
|
.markdown-body ul ol ol,
|
|
|
.markdown-body ol ul ol,
|
|
|
.markdown-body ol ol ol {
|
|
|
list-style-type: lower-alpha;
|
|
|
}
|
|
|
|
|
|
.markdown-body dd {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon {
|
|
|
font: normal normal 16px octicons-anchor;
|
|
|
line-height: 1;
|
|
|
display: inline-block;
|
|
|
text-decoration: none;
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
-webkit-user-select: none;
|
|
|
-moz-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
user-select: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon-link:before {
|
|
|
content: '\f05c';
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:first-child {
|
|
|
margin-top: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:last-child {
|
|
|
margin-bottom: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
display: block;
|
|
|
padding-right: 6px;
|
|
|
padding-left: 30px;
|
|
|
margin-left: -30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor:focus {
|
|
|
outline: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
position: relative;
|
|
|
margin-top: 1em;
|
|
|
margin-bottom: 16px;
|
|
|
font-weight: bold;
|
|
|
line-height: 1.4;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .octicon-link,
|
|
|
.markdown-body h2 .octicon-link,
|
|
|
.markdown-body h3 .octicon-link,
|
|
|
.markdown-body h4 .octicon-link,
|
|
|
.markdown-body h5 .octicon-link,
|
|
|
.markdown-body h6 .octicon-link {
|
|
|
display: none;
|
|
|
color: #000;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor,
|
|
|
.markdown-body h2:hover .anchor,
|
|
|
.markdown-body h3:hover .anchor,
|
|
|
.markdown-body h4:hover .anchor,
|
|
|
.markdown-body h5:hover .anchor,
|
|
|
.markdown-body h6:hover .anchor {
|
|
|
padding-left: 8px;
|
|
|
margin-left: -30px;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor .octicon-link,
|
|
|
.markdown-body h2:hover .anchor .octicon-link,
|
|
|
.markdown-body h3:hover .anchor .octicon-link,
|
|
|
.markdown-body h4:hover .anchor .octicon-link,
|
|
|
.markdown-body h5:hover .anchor .octicon-link,
|
|
|
.markdown-body h6:hover .anchor .octicon-link {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 2.25em;
|
|
|
line-height: 1.2;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 1.75em;
|
|
|
line-height: 1.225;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 1.5em;
|
|
|
line-height: 1.43;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 1.25em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 1em;
|
|
|
color: #777;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul,
|
|
|
.markdown-body ul ol,
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ol ul {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body li>p {
|
|
|
margin-top: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dt {
|
|
|
padding: 0;
|
|
|
margin-top: 16px;
|
|
|
font-size: 1em;
|
|
|
font-style: italic;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dd {
|
|
|
padding: 0 16px;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
padding: 0 15px;
|
|
|
color: #777;
|
|
|
border-left: 4px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :first-child {
|
|
|
margin-top: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :last-child {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
display: block;
|
|
|
width: 100%;
|
|
|
overflow: auto;
|
|
|
word-break: normal;
|
|
|
word-break: keep-all;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th {
|
|
|
font-weight: bold;
|
|
|
text-align: revert;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th,
|
|
|
.markdown-body table td {
|
|
|
padding: 6px 13px;
|
|
|
border: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr {
|
|
|
background-color: #fff;
|
|
|
border-top: 1px solid #ccc;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr:nth-child(2n) {
|
|
|
background-color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
max-width: 100%;
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
padding: 0;
|
|
|
padding-top: 0.2em;
|
|
|
padding-bottom: 0.2em;
|
|
|
margin: 0;
|
|
|
font-size: 85%;
|
|
|
background-color: rgba(0, 0, 0, 0.04);
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:has(.katex) {
|
|
|
background-color: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:before,
|
|
|
.markdown-body code:after {
|
|
|
letter-spacing: -0.2em;
|
|
|
content: "\\00a0";
|
|
|
}
|
|
|
|
|
|
.markdown-body pre>code {
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
font-size: 100%;
|
|
|
word-break: normal;
|
|
|
white-space: pre;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight {
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre,
|
|
|
.markdown-body pre {
|
|
|
padding: 16px;
|
|
|
overflow: auto;
|
|
|
font-size: 85%;
|
|
|
line-height: 1.45;
|
|
|
background-color: #f7f7f7;
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre {
|
|
|
margin-bottom: 0;
|
|
|
word-break: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
word-wrap: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code {
|
|
|
display: inline;
|
|
|
max-width: initial;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
overflow: initial;
|
|
|
line-height: inherit;
|
|
|
word-wrap: normal;
|
|
|
background-color: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code:before,
|
|
|
.markdown-body pre code:after {
|
|
|
content: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font-size: 11px;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c {
|
|
|
color: #969896;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c1,
|
|
|
.markdown-body .pl-mdh,
|
|
|
.markdown-body .pl-mm,
|
|
|
.markdown-body .pl-mp,
|
|
|
.markdown-body .pl-mr,
|
|
|
.markdown-body .pl-s1 .pl-v,
|
|
|
.markdown-body .pl-s3,
|
|
|
.markdown-body .pl-sc,
|
|
|
.markdown-body .pl-sv {
|
|
|
color: #0086b3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-e,
|
|
|
.markdown-body .pl-en {
|
|
|
color: #795da3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-s1 .pl-s2,
|
|
|
.markdown-body .pl-smi,
|
|
|
.markdown-body .pl-smp,
|
|
|
.markdown-body .pl-stj,
|
|
|
.markdown-body .pl-vo,
|
|
|
.markdown-body .pl-vpf {
|
|
|
color: #333;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ent {
|
|
|
color: #63a35c;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-k,
|
|
|
.markdown-body .pl-s,
|
|
|
.markdown-body .pl-st {
|
|
|
color: #a71d5d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-pds,
|
|
|
.markdown-body .pl-s1,
|
|
|
.markdown-body .pl-s1 .pl-pse .pl-s2,
|
|
|
.markdown-body .pl-sr,
|
|
|
.markdown-body .pl-sr .pl-cce,
|
|
|
.markdown-body .pl-sr .pl-sra,
|
|
|
.markdown-body .pl-sr .pl-sre,
|
|
|
.markdown-body .pl-src {
|
|
|
color: #df5000;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mo,
|
|
|
.markdown-body .pl-v {
|
|
|
color: #1d3e81;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-id {
|
|
|
color: #b52a1d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ii {
|
|
|
background-color: #b52a1d;
|
|
|
color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-sr .pl-cce {
|
|
|
color: #63a35c;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ml {
|
|
|
color: #693a17;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mh,
|
|
|
.markdown-body .pl-mh .pl-en,
|
|
|
.markdown-body .pl-ms {
|
|
|
color: #1d3e81;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mq {
|
|
|
color: #008080;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mi {
|
|
|
color: #333;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mb {
|
|
|
color: #333;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-md,
|
|
|
.markdown-body .pl-mdhf {
|
|
|
background-color: #ffecec;
|
|
|
color: #bd2c00;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdht,
|
|
|
.markdown-body .pl-mi1 {
|
|
|
background-color: #eaffea;
|
|
|
color: #55a532;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdr {
|
|
|
color: #795da3;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item {
|
|
|
list-style-type: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item+.task-list-item {
|
|
|
margin-top: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item input {
|
|
|
float: left;
|
|
|
margin: 0.3em 0 0.25em -1.6em;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body :checked+.radio-label {
|
|
|
z-index: 1;
|
|
|
position: relative;
|
|
|
border-color: #4183c4;
|
|
|
}
|
|
|
|
|
|
|
|
|
/*! Pretty printing styles. Used with prettify.js. */
|
|
|
/* SPAN elements with the classes below are added by prettyprint. */
|
|
|
.pln {
|
|
|
color: #000
|
|
|
}
|
|
|
|
|
|
/* plain text */
|
|
|
|
|
|
@media screen {
|
|
|
.str {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* string content */
|
|
|
.kwd {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a keyword */
|
|
|
.com {
|
|
|
color: #800
|
|
|
}
|
|
|
|
|
|
/* a comment */
|
|
|
.typ {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a type name */
|
|
|
.lit {
|
|
|
color: #066
|
|
|
}
|
|
|
|
|
|
/* a literal value */
|
|
|
/* punctuation, lisp open bracket, lisp close bracket */
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #660
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a markup tag name */
|
|
|
.atn {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a markup attribute name */
|
|
|
.atv {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* a markup attribute value */
|
|
|
.dec,
|
|
|
.var {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a declaration; a variable name */
|
|
|
.fun {
|
|
|
color: red
|
|
|
}
|
|
|
|
|
|
/* a function name */
|
|
|
}
|
|
|
|
|
|
/* Use higher contrast and text-weight for printable form. */
|
|
|
@media print,
|
|
|
projection {
|
|
|
.str {
|
|
|
color: #060
|
|
|
}
|
|
|
|
|
|
.kwd {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.com {
|
|
|
color: #600;
|
|
|
font-style: italic
|
|
|
}
|
|
|
|
|
|
.typ {
|
|
|
color: #404;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.lit {
|
|
|
color: #044
|
|
|
}
|
|
|
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #440
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.atn {
|
|
|
color: #404
|
|
|
}
|
|
|
|
|
|
.atv {
|
|
|
color: #060
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Put a border around prettyprinted code snippets. */
|
|
|
pre.prettyprint {
|
|
|
padding: 2px;
|
|
|
/* border: 1px solid #888 */
|
|
|
}
|
|
|
|
|
|
/* Specify class=linenums on a pre to get line numbering */
|
|
|
ol.linenums {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0
|
|
|
}
|
|
|
|
|
|
/* IE indents via margin-left */
|
|
|
li.L0,
|
|
|
li.L1,
|
|
|
li.L2,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L6,
|
|
|
li.L7,
|
|
|
li.L8 {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
/* Alternate shading for lines */
|
|
|
li.L1,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L7,
|
|
|
li.L9 {
|
|
|
background: #eee
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}`;return(0,Qe.useEffect)(()=>{const Ze=Oe.current.attachShadow({mode:"open"});Fe.current=document.createElement("div"),Fe.current.className="markdown-body",Fe.current.innerHTML=ke,Ze.appendChild(Fe.current);const ze=document.createElement("style");return ze.textContent=Re,Ze.appendChild(ze),()=>{Ze.innerHTML=""}},[]),(0,Qe.useEffect)(()=>{Fe.current&&(Fe.current.innerHTML=ke)},[ke]),we.createElement("div",{ref:Oe})},de=Object.defineProperty,z=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,re=(ke,Oe,Fe)=>Oe in ke?de(ke,Oe,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):ke[Oe]=Fe,le=(ke,Oe)=>{for(var Fe in Oe||(Oe={}))ee.call(Oe,Fe)&&re(ke,Fe,Oe[Fe]);if(z)for(var Fe of z(Oe))ae.call(Oe,Fe)&&re(ke,Fe,Oe[Fe]);return ke};const ue="@\u2581\u2581@",pe="@\u2581@",Ee=/<pre[^>]*>/g;function Ce(ke){let Oe=document.createElement("div");return Oe.innerHTML=ke,Oe.childNodes.length===0?"":Oe.childNodes[0].nodeValue}const je=(ke,Oe)=>{ke=ke||"";const Fe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Re=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ze=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ze=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Oe?ke.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Fe,(Ke,ot,ct,pt,bt,qe,at)=>{const gt=ot||pt||qe,Ct=ct||bt||at||"?";return ve.Z.API_SERVER+"/api/attachments/"+gt+Ct+"&t="+(0,fe.Jn)(gt,Date.now())+(Ke.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ke=ke.replace(ze,(Ke,ot,ct,pt,bt,qe,at)=>{const gt=ot||pt||qe,Ct=ct||bt||at||"?";return ve.Z.API_SERVER+"/attachments/download/"+gt+Ct+"&t="+(0,fe.Jn)(gt,Date.now())+(Ke.indexOf(")")>-1?")":"&")}).replace(Fe,(Ke,ot,ct,pt,bt,qe,at)=>{const gt=ot||pt||qe,Ct=ct||bt||at||"?";return ve.Z.API_SERVER+"/api/attachments/"+gt+Ct+"&t="+(0,fe.Jn)(gt,Date.now())+(Ke.indexOf(")")>-1?")":"&")}).replace(Re,(Ke,ot,ct,pt,bt)=>{const qe=ot||pt,at=ct||bt||"";return'"'+ve.Z.API_SERVER+"/api/attachments/"+qe+at+qe+at+"&t="+(0,fe.Jn)(qe,Date.now())}).replace(Ze,(Ke,ot,ct,pt,bt)=>{const qe=ot||pt,at=ct||bt||"";return"("+ve.Z.API_SERVER+"/files/uploads/"+qe+at+qe+at+"&t="+(0,fe.Jn)(qe,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,`
|
|
|
`),ke)};var Le=({value:ke="",className:Oe,showTextOnly:Fe,showLines:Re,style:Ze={},stylesPrev:ze={},highlightKeywords:Ke,showProgramFill:ot,isProgramFill:ct,disabledFill:pt=!1,programFillValue:bt,onFillChange:qe=Ct=>{},onFillBlur:at=()=>{},onFillFocus:gt=()=>{}})=>{let Ct=String(ke);const[wt,vt]=(0,Qe.useState)(""),[mt,xt]=(0,Qe.useState)("office"),[At,kt]=(0,Qe.useState)([]),Wt=(0,Qe.useRef)("a"+(0,Pe.Z)()),Et={},St=(We,De,Ie)=>{const Xe=document.createElement(We===pe?"input":"textarea");Xe.style.width="100%",Xe.style.height=We===pe?"40px":"151px",Xe.rows=5,Xe.spellcheck=!1,Xe.name="edu-program-fill",Xe.placeholder="\u8BF7\u8F93\u5165",Xe.dataset.id=De;const yt=Object.keys(Et).length;return Et[yt]=Xe,`<span class="edu-program-fill-wrap ${We===pe?"":"show"}" style="width:${We===pe?"400px":"100%"}" title=${Ie||""}><span>${Xe.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function tt(We){return We=We.replace(/!\[.*?\]\(.*?\)/g,""),We=We.replace(/\[.*?\]\(.*?\)/g,""),We=We.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),We=We.replace(/<embed.*?>/g,""),We=We.replace(/<img.*?>/g,""),We=We.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),We=We.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),We=We.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),We=We.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),We}const ft=We=>We.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(De,Ie){let Xe=Ie.replace(/(\n|\r)/g,"").split("}"),yt=[];return Xe.map(Ye=>{Ye!=""&&yt.push(`.${Wt.current} ${Ye}`)}),`<style>${yt.join("}")}</style>`}),$e=(0,Qe.useMemo)(()=>{try{const Xe=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,yt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ye=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,jt=/\(\/attachments\/download\//g;Ct=Ct.replace(jt,"("+ve.Z.API_SERVER+"/attachments/download/").replace(Xe,"("+ve.Z.API_SERVER+"/api/attachments/").replace(yt,'"'+ve.Z.API_SERVER+"/api/attachments/").replace(Ye,'"'+ve.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(Xe){}if(ot){let Xe=-1;return Ct=Ct.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(yt,Ye,jt){var Ht;return++Xe,St(yt,Xe,(Ht=bt==null?void 0:bt[Xe])==null?void 0:Ht.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${ft(Ct||"")}</pre>`}let We=ft(Ct);We=(0,oe.ZP)(We);const De=(0,oe.ez)();Ct.match(/\[TOC\]/)&&(We=We.replace("<p>[TOC]</p>",(0,oe.Qv)()),(0,oe.Iy)()),We=We.replace(/(__special_katext_id_\d+__)/g,(Xe,yt)=>{const{type:Ye,expression:jt}=De[yt];return(0,be.renderToString)(Ce(jt)||"",{displayMode:Ye==="block",throwOnError:!1,output:"html"})}),We=We.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,oe.AL)();const Ie=document.createElement("div");if(Ie.innerHTML=We,Fe)return Ie.innerText;if(Ke){const Xe=Ke.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return et(Ie,Xe),Ie.innerHTML}return setTimeout(()=>nt(),500),Ie.innerHTML},[Ct,Ke]);(0,Qe.useEffect)(()=>{Ve.current&&Ve.current.querySelectorAll(["input","textarea"]).forEach(De=>{De.oninput=lt,De.onblur=Pt,De.onfocus=dt})},[At]),(0,Qe.useEffect)(()=>{var We,De,Ie,Xe,yt;if(bt!=null&&bt.length)try{const Ye=Ve.current.querySelectorAll(".edu-program-fill-score"),jt=Ve.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ht,en]of jt.entries())en.value=((We=bt==null?void 0:bt[Ht])==null?void 0:We.value)||"",((De=bt==null?void 0:bt[Ht])==null?void 0:De.type)==="warning"?en.className="program-fill-warning":((Ie=bt==null?void 0:bt[Ht])==null?void 0:Ie.type)==="success"?en.className="program-fill-success":en.className="";for(const[Ht,en]of Ye.entries())en.innerHTML=(Xe=bt==null?void 0:bt[Ht])!=null&&Xe.score?`${(yt=bt==null?void 0:bt[Ht])==null?void 0:yt.score}\u5206`:"";kt(bt)}catch(Ye){console.log(Ye,"error")}},[bt]);const lt=We=>{At[We.target.dataset.id]=At[We.target.dataset.id]||{},At[We.target.dataset.id].value=We.target.value,kt([...At]),qe(At,We.target.dataset.id)},Pt=We=>{At[We.target.dataset.id]=At[We.target.dataset.id]||{},At[We.target.dataset.id].value=We.target.value,kt([...At]),at(At,We.target.dataset.id)},dt=We=>{At[We.target.dataset.id]=At[We.target.dataset.id]||{},At[We.target.dataset.id].value=We.target.value,kt([...At]),gt(At,We.target.dataset.id)};function et(We,De){return We.childNodes.forEach(Ie=>{var Xe;if(Ie.childNodes.length>0)et(Ie,De);else if(Ie.nodeName!=="IMG")if(Ie.innerHTML)Ie.innerHTML=(Xe=Ie.innerHTML)==null?void 0:Xe.replace(new RegExp(De,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const yt=document.createElement("span");yt.innerHTML=Ie.textContent.replace(new RegExp(De,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Ie.replaceWith(yt)}})}const Ve=(0,Qe.useRef)();oe.jb.WebkitLineClamp=Re,Re&&(Ze=le(le({},Ze),oe.jb));function He(We){let De=We.target;if(De.tagName.toUpperCase()==="A"){let Ie=De.getAttribute("href");if(Ie.indexOf("office")>-1)We.preventDefault(),vt(Ie),xt("office");else if(Ie.indexOf("application/pdf")>-1)We.preventDefault(),vt(Ie),xt("pdf");else if(Ie.indexOf("text/html")>-1)We.preventDefault(),vt(Ie),xt("html");else if(Ie.startsWith("#")){We.preventDefault();let Xe=document.getElementById(Ie.replace("#",""));Xe&&Xe.scrollIntoView(!0)}}}const nt=()=>{var We;const De=(We=Ve.current)==null?void 0:We.querySelectorAll("video");De==null||De.forEach(Ie=>{if(Ie.oncontextmenu=()=>!1,Ie.src.indexOf(".m3u8")>-1&&!Ie.canPlayType("application/vnd.apple.mpegurl")){if(Ne.ZP.isSupported()){var Xe=new Ne.ZP;Xe.loadSource(Ie.src),Xe.attachMedia(Ie)}}})};(0,Qe.useEffect)(()=>{if(Ve.current&&$e&&$e.match(Ee)&&window.PR.prettyPrint(),Ve.current)return Ve.current.addEventListener("click",He),()=>{var We;(We=Ve.current)==null||We.removeEventListener("click",He),(0,oe.AL)(),(0,oe.Iy)()}},[$e,Ve.current,He]),(0,Qe.useEffect)(()=>{var We;const De=Ie=>{Ie.preventDefault(),Ie.clipboardData.setData("text",window.getSelection().toString())};return(We=Ve.current)==null||We.addEventListener("copy",De),()=>{var Ie;(Ie=Ve.current)==null||Ie.removeEventListener("copy",De)}},[Ve.current]);const ut=We=>/<style[\s\S]*?>/i.test(We||"");return Qe.createElement(Qe.Fragment,null,Fe&&Qe.createElement("div",{ref:Ve},$e),!Fe&&!ut($e)&&Qe.createElement("div",{ref:Ve,style:le({},Ze),className:`${Oe||""} ${pt?"disabled-fill":""} markdown-body ${Wt.current}`,dangerouslySetInnerHTML:{__html:$e}}),!Fe&&ut($e)&&Qe.createElement(Se,{html:$e}),Qe.createElement(ye.Z,{close:!0,data:wt,type:wt!=null&&wt.length?mt:"",style:le({},ze),onClose:()=>vt("")}))}},81939:function(bn,an,Ge){"use strict";Ge.d(an,{cT:function(){return ke},pe:function(){return Ce}});var Qe=Ge(59301),Tt=Ge(54580),oe=Ge(8591),_e=Ge(99064),Ne=Ge(28209),ve=Ge.n(Ne),fe=Ge(1012),be=Ge(89070),Pe=Ge(47257),ye=Ge.n(Pe),we=Object.defineProperty,me=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(Fe,Re,Ze)=>Re in Fe?we(Fe,Re,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Fe[Re]=Ze,re=(Fe,Re)=>{for(var Ze in Re||(Re={}))z.call(Re,Ze)&&ae(Fe,Ze,Re[Ze]);if(de)for(var Ze of de(Re))ee.call(Re,Ze)&&ae(Fe,Ze,Re[Ze]);return Fe},le=(Fe,Re)=>me(Fe,Se(Re)),ue=(Fe,Re)=>{var Ze={};for(var ze in Fe)z.call(Fe,ze)&&Re.indexOf(ze)<0&&(Ze[ze]=Fe[ze]);if(Fe!=null&&de)for(var ze of de(Fe))Re.indexOf(ze)<0&&ee.call(Fe,ze)&&(Ze[ze]=Fe[ze]);return Ze},pe=(Fe,Re,Ze)=>new Promise((ze,Ke)=>{var ot=bt=>{try{pt(Ze.next(bt))}catch(qe){Ke(qe)}},ct=bt=>{try{pt(Ze.throw(bt))}catch(qe){Ke(qe)}},pt=bt=>bt.done?ze(bt.value):Promise.resolve(bt.value).then(ot,ct);pt((Ze=Ze.apply(Fe,Re)).next())});const{Dragger:Ee}=Tt.default,Ce=Fe=>{const Re="bf3c199c2470cb477d907b1e0917c17b",Ze="5183666c72eec9e4";var ze=ve().enc.Utf8.parse(Re);let Ke=ve().enc.Utf8.parse(Ze);var ot=ve().AES.decrypt(Fe,ze,{iv:Ke,mode:ve().mode.CBC});return ot.toString(ve().enc.Utf8)};let je;const Le=Fe=>pe(void 0,[Fe],function*({identifier:Re,oldFilename:Ze,newFilename:ze}){var Ke,ot,ct,pt,bt,qe;const at=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});at.data=JSON.parse(Ce(at.data));const gt=new OSS({endpoint:(Ke=at==null?void 0:at.data)==null?void 0:Ke.end_point,region:(ot=at==null?void 0:at.data)==null?void 0:ot.region,accessKeyId:(ct=at==null?void 0:at.data)==null?void 0:ct.access_key_id,accessKeySecret:(pt=at==null?void 0:at.data)==null?void 0:pt.access_key_secret,bucket:(bt=at==null?void 0:at.data)==null?void 0:bt.bucket,stsToken:(qe=at==null?void 0:at.data)==null?void 0:qe.security_token});return new Promise((Ct,wt)=>{console.log(11111,`${Re}/${Ze}`,`${Re}/${ze}`,at.data),gt.copy(`/${Re}/${Ze}`,`/${Re}/${ze}`).then(vt=>{console.log("\u62F7\u8D1D\u6210\u529F",vt)}).catch(vt=>{console.log(vt)})})}),ke=(Fe,Re,Ze)=>pe(void 0,null,function*(){var ze,Ke,ot,ct,pt,bt;Re.file_name=Fe.name;const qe=yield(0,_e.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",Ce(qe.data)),qe.data=JSON.parse(Ce(qe.data));const at=Fe.name.split(".");at.pop();const gt=Re.realFileName?at.join(""):(0,fe.Z)(),Ct=new(ye())({endpoint:(ze=qe==null?void 0:qe.data)==null?void 0:ze.end_point,region:(Ke=qe==null?void 0:qe.data)==null?void 0:Ke.region,accessKeyId:(ot=qe==null?void 0:qe.data)==null?void 0:ot.access_key_id,accessKeySecret:(ct=qe==null?void 0:qe.data)==null?void 0:ct.access_key_secret,bucket:(pt=qe==null?void 0:qe.data)==null?void 0:pt.bucket,stsToken:(bt=qe==null?void 0:qe.data)==null?void 0:bt.security_token});return new Promise((wt,vt)=>{var mt;Ct.multipartUpload(`${gt}`,new Blob([Fe],{type:Fe.type}),le(re({timeout:200*1e3,partSize:102400},Ze),{callback:{url:(mt=qe==null?void 0:qe.data)==null?void 0:mt.callback_url,host:qe==null?void 0:qe.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,_e.rz)(Re)}})).then(function(xt){var At;Fe.response=(At=xt.data)==null?void 0:At.data,wt(xt==null?void 0:xt.data)}).catch(function(xt){vt(xt),console.log("err:",xt)})})}),Oe=Fe=>{var Re=Fe,{user:Ze,cancelUpload:ze}=Re,Ke=ue(Re,["user","cancelUpload"]);const[ot,ct]=(0,Qe.useState)([]);let[pt,bt]=(0,Qe.useState)();const qe={onRemove:gt=>{ct([...ot.filter(Ct=>Ct.name!==gt.name)]),Ke.onChange(ot.filter(Ct=>Ct.name!==gt.name))},disabled:Ke.disabled,multiple:!0,fileList:ot==null?void 0:ot.map(gt=>gt.file),customRequest:()=>{},beforeUpload:gt=>pe(void 0,null,function*(){let Ct=Ke.maxSize||1073741824;if(ot.filter(wt=>wt.name===gt.name).length){oe.ZP.info(`${gt.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return(gt==null?void 0:gt.size)>Ct?(oe.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${Ct/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(ot.push({name:gt.name,file:gt}),ct([...ot]),Ke.onChange(ot),!1)})},at=(gt,Ct)=>pe(void 0,null,function*(){var wt,vt,mt,xt,At,kt;Ct.file_name=gt.name;const Wt=gt.name,Et=yield(0,_e.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(Et.data=JSON.parse(Ce(Et.data)),(Et==null?void 0:Et.status)!==0){ot[ot.findIndex(ft=>ft.name===Wt)].status="error",ot[ot.findIndex(ft=>ft.name===Wt)].file.status="error",Ke.onChange(ot),oe.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}pt=new(ye())({endpoint:(wt=Et==null?void 0:Et.data)==null?void 0:wt.end_point,region:(vt=Et==null?void 0:Et.data)==null?void 0:vt.region,accessKeyId:(mt=Et==null?void 0:Et.data)==null?void 0:mt.access_key_id,accessKeySecret:(xt=Et==null?void 0:Et.data)==null?void 0:xt.access_key_secret,bucket:(At=Et==null?void 0:Et.data)==null?void 0:At.bucket,stsToken:(kt=Et==null?void 0:Et.data)==null?void 0:kt.security_token}),console.log(gt,"file"),bt(pt);const St=gt.name.split(".");St.pop();const tt=Wt.indexOf(".")>-1?Ct.realFileName?St.join("."):(0,fe.Z)():Wt;return new Promise((ft,$e)=>{var lt;try{pt.multipartUpload(`${Ke.identifier}/${tt}${Wt.indexOf(".")>-1?"."+Wt.split(".").pop():""}`,new Blob([gt.file],{type:gt.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Pt,dt,et)=>{try{console.log("\u8FDB\u5EA6",Pt,dt,et);const Ve=ot.findIndex(He=>He.name===Wt);ot[Ve].file.percent=Pt*100,ot[Ve].tempCheckpoint=dt,ct([...ot])}catch(Ve){}},checkpoint:ot[ot.findIndex(Pt=>Pt.name===Wt)].tempCheckpoint,callback:{customValue:{id:Wt+""},url:(lt=Et==null?void 0:Et.data)==null?void 0:lt.callback_url,host:Et==null?void 0:Et.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,_e.rz)(Ct)}}).then(function(Pt){var dt,et,Ve;const He=ot.findIndex(ut=>ut.name===Wt);let nt="done";if(((dt=Pt.data)==null?void 0:dt.status)===0){gt.response=(et=Pt.data)==null?void 0:et.data;const ut=ot.findIndex(We=>We.name===Wt);ot[ut].status="done",ot[ut].file.status="done"}else oe.ZP.warning((Ve=Pt.data)==null?void 0:Ve.message),nt="error";ot[He].status=nt,ot[He].file.status=nt,Ke.onChange(ot),ft(Pt==null?void 0:Pt.data)}).catch(function(Pt){ot[ot.findIndex(dt=>dt.name===Wt)].status="error",ot[ot.findIndex(dt=>dt.name===Wt)].file.status="error",oe.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),ct([...ot]),Ke.onChange(ot),$e(Pt),console.log("err:",Pt)})}catch(Pt){}})});return(0,Qe.useEffect)(()=>{ot.every(gt=>gt==="done"||gt==="error")&&Ke.onComplete(ot)},[ot]),(0,Qe.useEffect)(()=>{ze&&(pt==null||pt.cancel())},[ze]),(0,Qe.useEffect)(()=>{Ke.uploading&&ot.map(gt=>pe(void 0,null,function*(){var Ct;if((!gt.status||gt.status==="error")&&!ze){gt.status="uploading",gt.file.status="uploading";const wt=yield at(gt,{login:(Ct=Ze==null?void 0:Ze.userInfo)==null?void 0:Ct.login,container_type:Ke.container_type,container_id:Ke.container_id,description:Ke.description,realFileName:Ke.realFileName})}}))},[Ke.uploading]),Qe.createElement(Ee,le(re({},qe),{height:Ke.height,className:Ke.className}),Qe.createElement("p",{className:"ant-upload-hint"},Ke.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};an.ZP=(0,be.connect)(({loading:Fe,globalSetting:Re,user:Ze})=>({globalSetting:Re,loading:Fe.models.competitions,user:Ze}))(Oe)},53932:function(bn,an,Ge){"use strict";Ge.d(an,{h:function(){return pe},Z:function(){return ue}});var Qe=Ge(59301),Tt=Ge(57809),oe=Ge(78241),_e=Ge(3113),Ne=Ge(89780),ve=Ge.n(Ne),fe=Ge(37036),be=Object.defineProperty,Pe=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,de=(Ee,Ce,je)=>Ce in Ee?be(Ee,Ce,{enumerable:!0,configurable:!0,writable:!0,value:je}):Ee[Ce]=je,z=(Ee,Ce)=>{for(var je in Ce||(Ce={}))me.call(Ce,je)&&de(Ee,je,Ce[je]);if(we)for(var je of we(Ce))Se.call(Ce,je)&&de(Ee,je,Ce[je]);return Ee},ee=(Ee,Ce)=>Pe(Ee,ye(Ce));const ae=Tt.default.Option,re={labelCol:{span:4},wrapperCol:{span:20}},le={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"]};var ue=({callback:Ee,onCancel:Ce})=>{const[je,Le]=(0,Qe.useState)("python");function ke(Fe){Le(le[Fe][1])}function Oe(Fe){Ee(Fe)}return Qe.createElement(oe.default,ee(z({},re),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Oe,style:{width:500}}),Qe.createElement(oe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Qe.createElement(Tt.default,{getPopupContainer:Fe=>Fe.parentNode,onChange:ke},Object.keys(le).map(Fe=>Qe.createElement(ae,{key:Fe,value:Fe},le[Fe][0])))),Qe.createElement(oe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Qe.createElement(pe,{mode:je})),Qe.createElement("div",{className:"flex-container flex-end"},Qe.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Qe.createElement(_e.ZP,{type:"ghost",onClick:Ce},"\u53D6\u6D88")))};function pe({value:Ee,onChange:Ce,mode:je,options:Le={}}){const ke=(0,Qe.useRef)(),[Oe,Fe]=(0,Qe.useState)();return(0,Qe.useEffect)(()=>{if(Oe){let Re=function(Ze){const ze=Ze.getValue();Ce&&Ce(ze)};return Oe.on("change",Re),()=>{Oe.off("change",Re)}}},[Oe,Ce]),(0,Qe.useEffect)(()=>{Oe&&Oe.setOption("mode",je)},[Oe,je]),(0,Qe.useEffect)(()=>{Oe&&(Ee!==Oe.getValue()||Ee==="")&&setTimeout(()=>{Oe.setValue(Ee||"")},300)},[Oe,Ee]),(0,Qe.useEffect)(()=>{if(ke.current&&!Oe){const Re=ve().fromTextArea(ke.current,z({mode:je,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Le));Fe(Re)}},[ke.current,Oe]),Qe.createElement("div",{className:"my-codemirror-container"},Qe.createElement("textarea",{ref:ke}))}},12290:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Nn}});var Qe=Ge(59301),Tt=Ge(89780),oe=Ge.n(Tt),_e=Ge(76374),Ne=Ge(37036),ve=Ge(6313),fe=Ge(25717),be=Ge(99498),Pe=Ge(25419),ye=Ge(67549),we=Ge(85149),me=({value:$t="",className:Xt,showTextOnly:Lt,showLines:nn,style:pn={}})=>{const Vt=(0,Qe.useMemo)(()=>"",[$t]);return Qe.createElement(Qe.Fragment,null,Qe.createElement("div",{dangerouslySetInnerHTML:{__html:Vt}}))},Se=Ge(59301),de=Object.defineProperty,z=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,ae=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,ue=($t,Xt,Lt)=>Xt in $t?de($t,Xt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):$t[Xt]=Lt,pe=($t,Xt)=>{for(var Lt in Xt||(Xt={}))re.call(Xt,Lt)&&ue($t,Lt,Xt[Lt]);if(ae)for(var Lt of ae(Xt))le.call(Xt,Lt)&&ue($t,Lt,Xt[Lt]);return $t},Ee=($t,Xt)=>z($t,ee(Xt));let Ce=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function je({onActionCallback:$t,title:Xt,icon:Lt,actionName:nn,className:pn="",children:Vt}){function Rt(){$t(nn)}return Se.createElement("a",{title:Xt,className:pn,onClick:Rt},Se.createElement("i",{className:`${Lt}`}),Vt)}var Le=({watch:$t,showNullButton:Xt,showNullProgramButton:Lt,onActionCallback:nn,fullScreen:pn,insertTemp:Vt,hidetoolBar:Rt,extraUse:rn})=>{const yn=[...Ce,{title:`${$t?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${$t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Se.createElement("ul",{className:"markdown-toolbar-container"},!Rt&&yn.map((Mn,On)=>Se.createElement("li",{key:On},Mn.actionName?Se.createElement(je,Ee(pe({},Mn),{onActionCallback:nn})):Se.createElement("span",{className:"v-line"}))),Xt?Se.createElement("li",null,Se.createElement(je,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:nn},Se.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Lt?Se.createElement(Se.Fragment,null,Se.createElement("li",null,Se.createElement(je,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:nn},Se.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Se.createElement("li",null,Se.createElement(je,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:nn},Se.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Vt&&Se.createElement("li",null,Se.createElement(je,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Vt}`,onActionCallback:nn},Se.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),rn&&Se.createElement("li",null,rn),Se.createElement("li",{className:"btn-full-screen"},Se.createElement(je,{icon:`${pn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:pn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:nn})))},ke=Ge(79346),Oe=Ge(78241),Fe=Ge(92832),Re=Ge(3113),Ze=Object.defineProperty,ze=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,ot=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,bt=($t,Xt,Lt)=>Xt in $t?Ze($t,Xt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):$t[Xt]=Lt,qe=($t,Xt)=>{for(var Lt in Xt||(Xt={}))ct.call(Xt,Lt)&&bt($t,Lt,Xt[Lt]);if(ot)for(var Lt of ot(Xt))pt.call(Xt,Lt)&&bt($t,Lt,Xt[Lt]);return $t},at=($t,Xt)=>ze($t,Ke(Xt));const gt={labelCol:{span:4},wrapperCol:{span:20}};var Ct=({callback:$t,onCancel:Xt})=>{function Lt(nn){$t(nn)}return Qe.createElement(Oe.default,at(qe({},gt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Lt,style:{width:500}}),Qe.createElement(Oe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Qe.createElement(Fe.default,null)),Qe.createElement(Oe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Qe.createElement(Fe.default,null)),Qe.createElement("div",{className:"flex-container flex-end"},Qe.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Qe.createElement(Re.ZP,{type:"ghost",onClick:Xt},"\u53D6\u6D88")))},wt=Ge(53932),vt=Ge(28451),mt=Ge(43418),xt=Ge(95237),At=Ge(16406),kt=Ge(59301),Wt=({callback:$t,onCancel:Xt})=>{const Lt=document.createElement("canvas"),nn=Lt.getContext("2d");Lt.width=1e3,Lt.height=800,nn.fillStyle="#ffffff",nn.fillRect(0,0,Lt.width,Lt.height);const pn=Lt.toDataURL("image/png");return kt.createElement(mt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},kt.createElement(xt.Z,{style:{height:"100vh"}},kt.createElement(At.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:pn,visible:!0,title:String(Date.now())},onOk:Vt=>{$t({src:Vt.url})},onClose:Xt})))},Et=Ge(12378);function St(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(St,go.CommandHandler),St.prototype.canAlignSelection=function(){var $t=this.diagram;return!($t===null||$t.isReadOnly||$t.isModelReadOnly||$t.selection.count<2)},St.prototype.alignLeft=function(){var $t=this.diagram;$t.startTransaction("aligning left");var Xt=1/0;$t.selection.each(function(Lt){Lt instanceof go.Link||(Xt=Math.min(Lt.position.x,Xt))}),$t.selection.each(function(Lt){Lt instanceof go.Link||Lt.move(new go.Point(Xt,Lt.position.y))}),$t.commitTransaction("aligning left")},St.prototype.alignRight=function(){var $t=this.diagram;$t.startTransaction("aligning right");var Xt=-1/0;$t.selection.each(function(Lt){if(!(Lt instanceof go.Link)){var nn=Lt.actualBounds.x+Lt.actualBounds.width;Xt=Math.max(nn,Xt)}}),$t.selection.each(function(Lt){Lt instanceof go.Link||Lt.move(new go.Point(Xt-Lt.actualBounds.width,Lt.position.y))}),$t.commitTransaction("aligning right")},St.prototype.alignTop=function(){var $t=this.diagram;$t.startTransaction("alignTop");var Xt=1/0;$t.selection.each(function(Lt){Lt instanceof go.Link||(Xt=Math.min(Lt.position.y,Xt))}),$t.selection.each(function(Lt){Lt instanceof go.Link||Lt.move(new go.Point(Lt.position.x,Xt))}),$t.commitTransaction("alignTop")},St.prototype.alignBottom=function(){var $t=this.diagram;$t.startTransaction("aligning bottom");var Xt=-1/0;$t.selection.each(function(Lt){if(!(Lt instanceof go.Link)){var nn=Lt.actualBounds.y+Lt.actualBounds.height;Xt=Math.max(nn,Xt)}}),$t.selection.each(function(Lt){Lt instanceof go.Link||Lt.move(new go.Point(Lt.actualBounds.x,Xt-Lt.actualBounds.height))}),$t.commitTransaction("aligning bottom")},St.prototype.alignCenterX=function(){var $t=this.diagram,Xt=$t.selection.first();if(Xt){$t.startTransaction("aligning Center X");var Lt=Xt.actualBounds.x+Xt.actualBounds.width/2;$t.selection.each(function(nn){nn instanceof go.Link||nn.move(new go.Point(Lt-nn.actualBounds.width/2,nn.actualBounds.y))}),$t.commitTransaction("aligning Center X")}},St.prototype.alignCenterY=function(){var $t=this.diagram,Xt=$t.selection.first();if(Xt){$t.startTransaction("aligning Center Y");var Lt=Xt.actualBounds.y+Xt.actualBounds.height/2;$t.selection.each(function(nn){nn instanceof go.Link||nn.move(new go.Point(nn.actualBounds.x,Lt-nn.actualBounds.height/2))}),$t.commitTransaction("aligning Center Y")}},St.prototype.alignColumn=function($t){var Xt=this.diagram;Xt.startTransaction("align Column"),$t===void 0&&($t=0),$t=parseFloat($t);var Lt=new Array;Xt.selection.each(function(rn){rn instanceof go.Link||Lt.push(rn)});for(var nn=0;nn<Lt.length-1;nn++){var pn=Lt[nn],Vt=pn.actualBounds.y+pn.actualBounds.height+$t,Rt=Lt[nn+1];Rt.move(new go.Point(pn.actualBounds.x,Vt))}Xt.commitTransaction("align Column")},St.prototype.alignRow=function($t){$t===void 0&&($t=0),$t=parseFloat($t);var Xt=this.diagram;Xt.startTransaction("align Row");var Lt=new Array;Xt.selection.each(function(rn){rn instanceof go.Link||Lt.push(rn)});for(var nn=0;nn<Lt.length-1;nn++){var pn=Lt[nn],Vt=pn.actualBounds.x+pn.actualBounds.width+$t,Rt=Lt[nn+1];Rt.move(new go.Point(Vt,pn.actualBounds.y))}Xt.commitTransaction("align Row")},St.prototype.canRotate=function($t){var Xt=this.diagram;return!(Xt===null||Xt.isReadOnly||Xt.isModelReadOnly||Xt.selection.count<1)},St.prototype.rotate=function($t){$t===void 0&&($t=90);var Xt=this.diagram;Xt.startTransaction("rotate "+$t.toString());var Xt=this.diagram;Xt.selection.each(function(Lt){Lt instanceof go.Link||Lt instanceof go.Group||(Lt.angle+=$t)}),Xt.commitTransaction("rotate "+$t.toString())},St.prototype.pullToFront=function(){var $t=this.diagram;$t.startTransaction("pullToFront");var Xt=new go.Map;$t.selection.each(function(Lt){Xt.set(Lt.layer,0)}),Xt.iteratorKeys.each(function(Lt){var nn=0;Lt.parts.each(function(pn){if(!pn.isSelected){var Vt=pn.zOrder;isNaN(Vt)?pn.zOrder=0:nn=Math.max(nn,Vt)}}),Xt.set(Lt,nn)}),$t.selection.each(function(Lt){St._assignZOrder(Lt,Xt.get(Lt.layer)+1)}),$t.commitTransaction("pullToFront")},St.prototype.pushToBack=function(){var $t=this.diagram;$t.startTransaction("pushToBack");var Xt=new go.Map;$t.selection.each(function(Lt){Xt.set(Lt.layer,0)}),Xt.iteratorKeys.each(function(Lt){var nn=0;Lt.parts.each(function(pn){if(!pn.isSelected){var Vt=pn.zOrder;isNaN(Vt)?pn.zOrder=0:nn=Math.min(nn,Vt)}}),Xt.set(Lt,nn)}),$t.selection.each(function(Lt){St._assignZOrder(Lt,Xt.get(Lt.layer)-1-St._findGroupDepth(Lt))}),$t.commitTransaction("pushToBack")},St._assignZOrder=function($t,Xt,Lt){Lt===void 0&&(Lt=$t),$t.layer===Lt.layer&&($t.zOrder=Xt),$t instanceof go.Group&&$t.memberParts.each(function(nn){St._assignZOrder(nn,Xt+1,Lt)})},St._findGroupDepth=function($t){if($t instanceof go.Group){var Xt=0;return $t.memberParts.each(function(Lt){Xt=Math.max(Xt,St._findGroupDepth(Lt))}),Xt+1}else return 0},St.prototype.doKeyDown=function(){var $t=this.diagram;if($t!==null){var Xt=$t.lastInput;if(Xt.key==="Up"||Xt.key==="Down"||Xt.key==="Left"||Xt.key==="Right"){var Lt=this.arrowKeyBehavior;if(Lt==="none")return;if(Lt==="select"){this._arrowKeySelect();return}else if(Lt==="move"){this._arrowKeyMove();return}else if(Lt==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},St.prototype._getAllParts=function(){var $t=new Array;return this.diagram.nodes.each(function(Xt){$t.push(Xt)}),this.diagram.parts.each(function(Xt){$t.push(Xt)}),$t},St.prototype._arrowKeyMove=function(){var $t=this.diagram,Xt=$t.lastInput,Lt=0,nn=0;if(Xt.control||Xt.meta)Lt=1,nn=1;else if($t.grid!==null){var pn=$t.grid.gridCellSize;nn=pn.width,Lt=pn.height}$t.startTransaction("arrowKeyMove"),$t.selection.each(function(Vt){Xt.key==="Up"?Vt.move(new go.Point(Vt.actualBounds.x,Vt.actualBounds.y-Lt)):Xt.key==="Down"?Vt.move(new go.Point(Vt.actualBounds.x,Vt.actualBounds.y+Lt)):Xt.key==="Left"?Vt.move(new go.Point(Vt.actualBounds.x-nn,Vt.actualBounds.y)):Xt.key==="Right"&&Vt.move(new go.Point(Vt.actualBounds.x+nn,Vt.actualBounds.y))}),$t.commitTransaction("arrowKeyMove")},St.prototype._arrowKeySelect=function(){var $t=this.diagram,Xt=$t.lastInput,Lt=null;Xt.key==="Up"?Lt=this._findNearestPartTowards(270):Xt.key==="Down"?Lt=this._findNearestPartTowards(90):Xt.key==="Left"?Lt=this._findNearestPartTowards(180):Xt.key==="Right"&&(Lt=this._findNearestPartTowards(0)),Lt!==null&&(Xt.shift?Lt.isSelected=!0:Xt.control||Xt.meta?Lt.isSelected=!Lt.isSelected:$t.select(Lt))},St.prototype._findNearestPartTowards=function($t){var Xt=this.diagram.selection.first();if(Xt===null)return null;for(var Lt=Xt.actualBounds.center,nn=this._getAllParts(),pn=1/0,Vt=Xt,Rt=0;Rt<nn.length;Rt++){var rn=nn[Rt];if(rn!==Xt&&rn.canSelect()){var yn=rn.actualBounds.center,Mn=Lt.directionPoint(yn),On=this._angleCloseness(Mn,$t);if(On<=45){var zt=Lt.distanceSquaredPoint(yn);zt*=1+Math.sin(On*Math.PI/180),zt<pn&&(pn=zt,Vt=rn)}}}return Vt},St.prototype._angleCloseness=function($t,Xt){return Math.min(Math.abs(Xt-$t),Math.min(Math.abs(Xt+360-$t),Math.abs(Xt-360-$t)))},St.prototype._arrowKeyTree=function(){var $t=this.diagram,Xt=$t.selection.first();if(Xt instanceof go.Node){var Lt=$t.lastInput;if(Lt.key==="Right"){if(!Xt.isTreeLeaf)if(!Xt.isTreeExpanded)$t.commandHandler.canExpandTree(Xt)&&$t.commandHandler.expandTree(Xt);else{var nn=this._sortTreeChildrenByY(Xt).first();nn!==null&&$t.select(nn)}}else if(Lt.key==="Left")if(!Xt.isTreeLeaf&&Xt.isTreeExpanded)$t.commandHandler.canCollapseTree(Xt)&&$t.commandHandler.collapseTree(Xt);else{var pn=Xt.findTreeParentNode();pn!==null&&$t.select(pn)}else if(Lt.key==="Up"){var pn=Xt.findTreeParentNode();if(pn!==null){var Vt=this._sortTreeChildrenByY(pn),Rt=Vt.indexOf(Xt);if(Rt>0){for(var rn=Vt.elt(Rt-1);rn!==null&&rn.isTreeExpanded&&!rn.isTreeLeaf;){var yn=this._sortTreeChildrenByY(rn);rn=yn.last()}rn!==null&&$t.select(rn)}else $t.select(pn)}}else if(Lt.key==="Down")if(Xt.isTreeExpanded&&!Xt.isTreeLeaf){var nn=this._sortTreeChildrenByY(Xt).first();nn!==null&&$t.select(nn)}else for(;Xt!==null;){var pn=Xt.findTreeParentNode();if(pn===null)break;var Vt=this._sortTreeChildrenByY(pn),Rt=Vt.indexOf(Xt);if(Rt<Vt.length-1){$t.select(Vt.elt(Rt+1));break}else Xt=pn}var Mn=$t.selection.first();Mn!==null&&$t.scrollToRect(Mn.actualBounds)}},St.prototype._sortTreeChildrenByY=function($t){var Xt=new go.List().addAll($t.findTreeChildrenNodes());return Xt.sort(function(Lt,nn){var pn=Lt.location,Vt=nn.location;return pn.y<Vt.y?-1:pn.y>Vt.y?1:pn.x<Vt.x?-1:pn.x>Vt.x?1:0}),Xt},St.prototype.copyToClipboard=function($t){go.CommandHandler.prototype.copyToClipboard.call(this,$t),this._lastPasteOffset.set(this.pasteOffset)},St.prototype.pasteFromClipboard=function(){var $t=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts($t,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),$t},Object.defineProperty(St.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function($t){if($t!=="move"&&$t!=="select"&&$t!=="scroll"&&$t!=="tree"&&$t!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+$t);this._arrowKeyBehavior=$t}}),Object.defineProperty(St.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function($t){if(!($t instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+$t);this._pasteOffset.set($t)}});var tt=St,ft=Ge(74413),$e=Ge(43604),lt=Ge(99064),Pt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},dt=Ge(24065),et=Ge(59301),Ve=($t,Xt,Lt)=>new Promise((nn,pn)=>{var Vt=yn=>{try{rn(Lt.next(yn))}catch(Mn){pn(Mn)}},Rt=yn=>{try{rn(Lt.throw(yn))}catch(Mn){pn(Mn)}},rn=yn=>yn.done?nn(yn.value):Promise.resolve(yn.value).then(Vt,Rt);rn((Lt=Lt.apply($t,Xt)).next())});function He({onCancel:$t,callback:Xt}){let Lt=(0,Qe.useRef)(),nn=(0,Qe.useRef)(),pn=(0,Qe.useRef)(),Vt=(0,Qe.useRef)(!1);const Rt=(0,Qe.useRef)(!1),[rn,yn]=(0,Qe.useState)(0);function Mn(){const zt=Et.bx.make,xn={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"};Lt.current=new Et.S0(nn.current,{padding:20,grid:zt(Et.s_,"Grid",zt(Et.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),zt(Et.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:_n=>{var Yn=_n.diagram.commandHandler.addTopLevelParts(_n.diagram.selection,!0);Yn||_n.diagram.currentTool.doCancel()},commandHandler:zt(tt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:_n=>{var Yn=_n.subject;Yn.location=Yn.location.copy().snapToGridPoint(_n.diagram.grid.gridOrigin,_n.diagram.grid.gridCellSize),setTimeout(()=>{_n.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:_n=>{var Yn=_n.subject;setTimeout(()=>{_n.diagram.commandHandler.editTextBlock()})},LinkRelinked:_n=>{var Yn=_n.parameter.part;Yn.invalidateConnectedLinks();var hr=_n.subject;_n.diagram.toolManager.linkingTool.isForwards?hr.toNode.invalidateConnectedLinks():hr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Lt.current.nodeTemplate=zt(Et.NB,"Auto",{locationSpot:Et.z6.Center,locationObjectName:"SHAPE",desiredSize:new Et.$u(120,60),minSize:new Et.$u(40,40),resizable:!0,resizeCellSize:new Et.$u(10,10),rotatable:!0},new Et.KX("location","loc",Et.E9.parse).makeTwoWay(Et.E9.stringify),new Et.KX("desiredSize","size",Et.$u.parse).makeTwoWay(Et.$u.stringify),zt(Et.bn,{name:"SHAPE",fill:xn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Et.z6.AllSides,toSpot:Et.z6.AllSides},new Et.KX("figure"),new Et.KX("fill"),new Et.KX("stroke","borderColor"),new Et.KX("strokeWidth","thickness"),new Et.KX("strokeDashArray","dash")),zt(Et.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),zt(Et.al,{margin:1,textAlign:"center",overflow:Et.al.OverflowEllipsis,editable:!0},new Et.KX("text").makeTwoWay(),new Et.KX("stroke","color"))),Lt.current.nodeTemplate.toolTip=zt("ToolTip",zt(Et.s_,"Vertical",{maxSize:new Et.$u(200,NaN)},zt(Et.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Et.KX("text")),zt(Et.al,{font:"10pt sans-serif",textAlign:"center"},new Et.KX("text","details"))));function Fn(_n,Yn){var hr=(Qn,ur)=>{Qn.handled=!0,Qn.diagram.model.commit(Cr=>{var Pr=ur.part.adornedPart,cr=new Et.E9().setRectSpot(Pr.actualBounds,_n);cr.subtract(Pr.location),cr.scale(2,2),cr.x+=Math.sign(cr.x)*130,cr.y+=Math.sign(cr.y)*130,cr.add(Pr.location),cr.snapToGridPoint(Qn.diagram.grid.gridOrigin,Qn.diagram.grid.gridCellSize);var Mr=Cr.copyNodeData(Pr.data);Cr.setGroupKeyForNodeData(Mr,Cr.getGroupKeyForNodeData(Pr.data)),Cr.addNodeData(Mr);var Tn={from:Pr.key,to:Cr.getKeyForNodeData(Mr)};Cr.addLinkData(Tn);var qr=Qn.diagram.findNodeForData(Mr);qr.location=cr,Qn.diagram.select(qr),setTimeout(()=>{Qn.diagram.commandHandler.editTextBlock()},20)})};return zt(Et.bn,{figure:Yn,alignment:_n,alignmentFocus:_n.opposite(),width:_n.equals(Et.z6.Top)||_n.equals(Et.z6.Bottom)?25:18,height:_n.equals(Et.z6.Top)||_n.equals(Et.z6.Bottom)?18:25,fill:"orange",stroke:xn.white,strokeWidth:4,mouseEnter:(Qn,ur)=>ur.fill="dodgerblue",mouseLeave:(Qn,ur)=>ur.fill="orange",isActionable:!0,click:hr,contextClick:hr})}function $n(_n){return zt(Et.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:(Yn,hr)=>hr.fill="dodgerblue",mouseLeave:(Yn,hr)=>hr.fill="orange",click:(Yn,hr)=>{Yn.diagram.commandHandler.showContextMenu(hr.part.adornedPart)}},_n||{})}Lt.current.nodeTemplate.selectionAdornmentTemplate=zt(Et.uz,"Spot",zt(Et.Vm,{padding:10}),Fn(Et.z6.Top,"TriangleUp"),Fn(Et.z6.Left,"TriangleLeft"),Fn(Et.z6.Right,"TriangleRight"),Fn(Et.z6.Bottom,"TriangleDown"),$n({alignment:new Et.z6(.75,0)}));function gn(_n,Yn){return(hr,Qn)=>{hr.handled=!0,hr.diagram.model.commit(ur=>{ur.set(Qn.part.adornedPart.data,_n,Yn)})}}function Sn(_n,Yn){return Yn||(Yn="color"),zt(Et.bn,{width:16,height:16,stroke:"lightgray",fill:_n,margin:1,background:"transparent",mouseEnter:(hr,Qn)=>Qn.stroke="dodgerblue",mouseLeave:(hr,Qn)=>Qn.stroke="lightgray",click:gn(Yn,_n),contextClick:gn(Yn,_n)})}function Qt(){return[zt("ContextMenuButton",zt(Et.s_,"Horizontal",Sn(xn.white,"fill"),Sn(xn.beige,"fill"),Sn(xn.extralightblue,"fill"),Sn(xn.extralightred,"fill"))),zt("ContextMenuButton",zt(Et.s_,"Horizontal",Sn(xn.lightgray,"fill"),Sn(xn.lightgreen,"fill"),Sn(xn.lightblue,"fill"),Sn(xn.lightred,"fill")))]}function hn(){return[zt("ContextMenuButton",zt(Et.s_,"Horizontal",Sn(xn.black),Sn(xn.green),Sn(xn.blue),Sn(xn.red))),zt("ContextMenuButton",zt(Et.s_,"Horizontal",Sn(xn.white),Sn(xn.magenta),Sn(xn.purple),Sn(xn.orange)))]}function dn(_n,Yn){return Yn||(Yn="thickness"),zt(Et.bn,"LineH",{width:16,height:16,strokeWidth:_n,margin:1,background:"transparent",mouseEnter:(hr,Qn)=>Qn.background="dodgerblue",mouseLeave:(hr,Qn)=>Qn.background="transparent",click:gn(Yn,_n),contextClick:gn(Yn,_n)})}function cn(_n,Yn){return Yn||(Yn="dash"),zt(Et.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:_n,margin:1,background:"transparent",mouseEnter:(hr,Qn)=>Qn.background="dodgerblue",mouseLeave:(hr,Qn)=>Qn.background="transparent",click:gn(Yn,_n),contextClick:gn(Yn,_n)})}function Pn(){return[zt("ContextMenuButton",zt(Et.s_,"Horizontal",dn(1),dn(2),dn(3),dn(4))),zt("ContextMenuButton",zt(Et.s_,"Horizontal",cn(null),cn([2,4]),cn([4,4])))]}function Cn(_n,Yn){return Yn||(Yn="figure"),zt(Et.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:_n,margin:1,background:"transparent",mouseEnter:(hr,Qn)=>Qn.fill="dodgerblue",mouseLeave:(hr,Qn)=>Qn.fill="lightgray",click:gn(Yn,_n),contextClick:gn(Yn,_n)})}Lt.current.nodeTemplate.contextMenu=zt("ContextMenu",zt("ContextMenuButton",zt(Et.s_,"Horizontal",Cn("Rectangle"),Cn("RoundedRectangle"),Cn("Ellipse"),Cn("Diamond"))),zt("ContextMenuButton",zt(Et.s_,"Horizontal",Cn("Parallelogram2"),Cn("ManualOperation"),Cn("Procedure"),Cn("Cylinder1"))),zt("ContextMenuButton",zt(Et.s_,"Horizontal",Cn("Terminator"),Cn("CreateRequest"),Cn("Document"),Cn("TriangleDown"))),Qt(),hn(),Pn()),Lt.current.groupTemplate=zt(Et.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Et.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(_n,Yn)=>{var hr=Yn.addMembers(Yn.diagram.selection,!0);hr||Yn.diagram.currentTool.doCancel()},avoidable:!1},new Et.KX("location","loc",Et.E9.parse).makeTwoWay(Et.E9.stringify),zt(Et.s_,"Auto",{name:"BODY"},zt(Et.bn,{parameter1:10,fill:xn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Et.z6.AllSides,toSpot:Et.z6.AllSides},new Et.KX("fill"),new Et.KX("stroke","color"),new Et.KX("strokeWidth","thickness"),new Et.KX("strokeDashArray","dash")),zt(Et.Vm,{background:"transparent",margin:20})),zt(Et.al,{alignment:Et.z6.Top,alignmentFocus:Et.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Et.KX("text"),new Et.KX("stroke","color"))),Lt.current.groupTemplate.selectionAdornmentTemplate=zt(Et.uz,"Spot",zt(Et.s_,"Auto",zt(Et.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),zt(Et.Vm,{margin:1.5})),$n({alignment:Et.z6.TopRight,alignmentFocus:Et.z6.BottomRight})),Lt.current.groupTemplate.contextMenu=zt("ContextMenu",Qt(),hn(),Pn()),Lt.current.linkTemplate=zt(Et.rU,{layerName:"Foreground",routing:Et.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Et.KX("fromSpot","fromSpot",Et.z6.parse),new Et.KX("toSpot","toSpot",Et.z6.parse),new Et.KX("fromShortLength","dir",_n=>_n>=1?10:0),new Et.KX("toShortLength","dir",_n=>_n>=1?10:0),new Et.KX("points").makeTwoWay(),zt(Et.bn,{strokeWidth:2},new Et.KX("stroke","color"),new Et.KX("strokeWidth","thickness"),new Et.KX("strokeDashArray","dash")),zt(Et.bn,{segmentIndex:0,segmentOffset:new Et.E9(15,0),segmentOrientation:Et.rU.OrientAlong,alignmentFocus:Et.z6.Right,figure:"circle",width:10,strokeWidth:0},new Et.KX("fill","color"),new Et.KX("visible","dir",_n=>_n===1)),zt(Et.bn,{segmentIndex:-1,segmentOffset:new Et.E9(-10,6),segmentOrientation:Et.rU.OrientPlus90,alignmentFocus:Et.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Et.KX("fill","color"),new Et.KX("visible","dir",_n=>_n>=1),new Et.KX("width","thickness",_n=>7+3*_n),new Et.KX("height","thickness",_n=>7+3*_n),new Et.KX("segmentOffset","thickness",_n=>new Et.E9(-15,4+1.5*_n))),zt(Et.bn,{segmentIndex:0,segmentOffset:new Et.E9(15,-6),segmentOrientation:Et.rU.OrientMinus90,alignmentFocus:Et.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Et.KX("fill","color"),new Et.KX("visible","dir",_n=>_n===2),new Et.KX("width","thickness",_n=>7+3*_n),new Et.KX("height","thickness",_n=>7+3*_n),new Et.KX("segmentOffset","thickness",_n=>new Et.E9(-15,4+1.5*_n))),zt(Et.al,{alignmentFocus:new Et.z6(0,1,-4,0),editable:!0},new Et.KX("text").makeTwoWay(),new Et.KX("stroke","color"))),Lt.current.linkTemplate.selectionAdornmentTemplate=zt(Et.uz,zt(Et.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Dn(2)},new Et.KX("pathPattern","thickness",Dn)),$n({alignmentFocus:new Et.z6(0,0,-6,-4)}));function Dn(_n){return zt(Et.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(_n+4).toString()+" H3"})}function In(_n){var Yn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return _n===0?Yn="M0 0 M16 16 M0 8 L16 8":_n===2&&(Yn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),zt(Et.bn,{geometryString:Yn,margin:2,background:"transparent",mouseEnter:(hr,Qn)=>Qn.background="dodgerblue",mouseLeave:(hr,Qn)=>Qn.background="transparent",click:gn("dir",_n),contextClick:gn("dir",_n)})}function tr(_n){var Yn=(hr,Qn)=>{hr.handled=!0,hr.diagram.model.commit(ur=>{var Cr=Qn.part.adornedPart;ur.set(Cr.data,_n?"toSpot":"fromSpot",Et.z6.stringify(Et.z6.AllSides)),(_n?Cr.toNode:Cr.fromNode).invalidateConnectedLinks()})};return zt(Et.bn,{width:12,height:12,fill:"transparent",mouseEnter:(hr,Qn)=>Qn.background="dodgerblue",mouseLeave:(hr,Qn)=>Qn.background="transparent",click:Yn,contextClick:Yn})}function un(_n,Yn){var hr=0,Qn=Et.z6.RightSide;_n.equals(Et.z6.Top)?(hr=270,Qn=Et.z6.TopSide):_n.equals(Et.z6.Left)?(hr=180,Qn=Et.z6.LeftSide):_n.equals(Et.z6.Bottom)&&(hr=90,Qn=Et.z6.BottomSide),Yn||(hr-=180);var ur=(Cr,Pr)=>{Cr.handled=!0,Cr.diagram.model.commit(cr=>{var Mr=Pr.part.adornedPart;cr.set(Mr.data,Yn?"toSpot":"fromSpot",Et.z6.stringify(Qn)),(Yn?Mr.toNode:Mr.fromNode).invalidateConnectedLinks()})};return zt(Et.bn,{alignment:_n,alignmentFocus:_n.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:hr,background:"transparent",mouseEnter:(Cr,Pr)=>Pr.background="dodgerblue",mouseLeave:(Cr,Pr)=>Pr.background="transparent",click:ur,contextClick:ur})}Lt.current.linkTemplate.contextMenu=zt("ContextMenu",hn(),Pn(),zt("ContextMenuButton",zt(Et.s_,"Horizontal",In(0),In(1),In(2))),zt("ContextMenuButton",zt(Et.s_,"Horizontal",zt(Et.s_,"Spot",tr(!1),un(Et.z6.Top,!1),un(Et.z6.Left,!1),un(Et.z6.Right,!1),un(Et.z6.Bottom,!1)),zt(Et.s_,"Spot",{margin:new Et.Zt(0,0,0,2)},tr(!0),un(Et.z6.Top,!0),un(Et.z6.Left,!0),un(Et.z6.Right,!0),un(Et.z6.Bottom,!0)))));const fr=`{ "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 wr=["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 Or(_n){return console.log("shapeName:",_n),wr.indexOf(_n)>=0}var fn=new Et.YI(pn.current,{maxSelectionCount:1,linkTemplate:zt(Et.rU,{locationSpot:Et.z6.Center,selectionAdornmentTemplate:zt(Et.uz,"Link",{locationSpot:Et.z6.Center},zt(Et.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),zt(Et.bn,{toArrow:"Standard",stroke:null}))},{routing:Et.rU.AvoidsNodes,curve:Et.rU.JumpOver,corner:5,toShortLength:4},new Et.KX("points"),zt(Et.bn,{isPanelMain:!0,strokeWidth:2}),zt(Et.bn,{toArrow:"Standard",stroke:null})),model:new Et.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Et.bn.getFigureGenerators().toArray().map(_n=>({text:"\u672A\u547D\u540D",size:"100 100",figure:_n.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Lt.current.addDiagramListener("TextEdited",function(_n){var Yn;const hr=_n.subject.part;var Qn=(Yn=document.activeElement)==null?void 0:Yn.value;typeof Qn=="string"&&Qn.trim()===""&&Lt.current.model.commit(function(ur){ur.set(hr.data,"text","\u672A\u547D\u540D"),Lt.current.commandHandler.stopCommand()},"increment")}),fn.nodeTemplate=zt(Et.NB,"Auto",{locationSpot:Et.z6.Center},new Et.KX("location","location",Et.E9.parse).makeTwoWay(Et.E9.stringify),zt(Et.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 Et.KX("stroke").makeTwoWay(),new Et.KX("fill").makeTwoWay(),new Et.KX("figure")),zt(Et.al,{margin:new Et.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Et.$u(16,16),maxSize:new Et.$u(10,NaN),textAlign:"center",editable:!0},new Et.KX("key").makeTwoWay())),setTimeout(()=>{Lt.current.grid=zt(Et.s_,"Grid",zt(Et.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),zt(Et.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Lt.current.grid.visible=!0,Lt.current.grid.gridCellStroke="darkgray",Lt.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Lt.current,Lt.current}const On=()=>Ve(this,null,function*(){var zt,xn=Lt.current.makeImage();const Fn=yield(0,lt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:xn.src,file_data:JSON.stringify({login:(zt=(0,dt.eY)())==null?void 0:zt.login,data:JSON.parse(Lt.current.model.toJson())})}});Xt({src:Fn.url})});return(0,Qe.useEffect)(()=>(setTimeout(()=>{Mn()},500),yn(rn+1),()=>{Lt.current=null}),[]),et.createElement("div",{ref:Rt,className:Vt.current?`${Pt.maxH60} body-overflow-initial`:"body-overflow-initial"},et.createElement(mt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!rn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:et.createElement(xt.Z,null,et.createElement($e.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),et.createElement($e.Z,{onClick:()=>{var zt,xn,Fn=Lt.current.selection.first();if(Vt.current=!Vt.current,document.activeElement&&Fn){let $n=(xn=(zt=document.activeElement)==null?void 0:zt.value)==null?void 0:xn.trim();typeof $n=="string"&&Lt.current.model.commit(function(gn){gn.set(Fn.data,"text",$n||"\u672A\u547D\u540D"),Lt.current.commandHandler.stopCommand()},"increment")}yn(rn+1)}},et.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:$t},et.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Pt.flowChartWrp},et.createElement("div",{style:{display:"flex",height:"100%"}},et.createElement("div",{style:{width:"300px",height:"100%"}},et.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),et.createElement("div",{style:{height:"calc(100% - 50px)"},className:Pt.myPaletteDiv,ref:pn})),et.createElement("div",{style:{flex:1,position:"relative"}},et.createElement("div",{ref:nn,style:{height:"80vh"}}))),et.createElement("div",{className:"tr"},et.createElement(Re.ZP,{size:"large",onClick:On,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var nt=He,ut=Ge(5112),We=Ge(5871);const De=ut.ZP.Group,Ie={margin:"0 8px"};var Xe=({callback:$t,onCancel:Xt})=>{function Lt(nn){$t(nn)}return Qe.createElement(Oe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Lt},Qe.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Qe.createElement("span",{style:Ie},"\u5355\u5143\u683C\u6570\uFF1A"),Qe.createElement("span",{style:Ie},"\u884C\u6570"),Qe.createElement(Oe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Qe.createElement(We.Z,null)),Qe.createElement("span",{style:Ie},"\u5217\u6570"),Qe.createElement(Oe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Qe.createElement(We.Z,null))),Qe.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Qe.createElement("span",{style:Ie},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Qe.createElement(Oe.default.Item,{name:"align"},Qe.createElement(De,null,Qe.createElement(ut.ZP,{value:"default"},Qe.createElement("i",{className:"fa fa-align-justify"})),Qe.createElement(ut.ZP,{value:"left"},Qe.createElement("i",{className:"fa fa-align-left"})),Qe.createElement(ut.ZP,{value:"center"},Qe.createElement("i",{className:"fa fa-align-center"})),Qe.createElement(ut.ZP,{value:"right"},Qe.createElement("i",{className:"fa fa-align-right"}))))),Qe.createElement("div",{className:"flex-container flex-end"},Qe.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Qe.createElement(Re.ZP,{type:"ghost",onClick:Xt},"\u53D6\u6D88")))},yt=Ge(78673),Ye=Ge(80727),jt=Ge.n(Ye),en=(0,Qe.forwardRef)(({use3d:$t,width:Xt,height:Lt,callback:nn,showSaveButton:pn},Vt)=>{const Rt=(0,Qe.useRef)(),rn=(0,Qe.useRef)(),[yn,Mn]=(0,Qe.useState)(!1),On=(0,Qe.useRef)({id:Rt,appName:"graphing",width:Xt||1e3,height:Lt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Qe.useEffect)(()=>{rn.current=new(jt())(On.current,!0),window.onload=function(){rn.current.inject("applet_container")}},[]);const zt=()=>{var xn=window.ggbApplet.getPNGBase64(1,!0,72);return nn&&nn(xn),xn};return(0,Qe.useEffect)(()=>{On.current.appName=yn?"3D":"graphing",rn.current.inject("applet_container")},[yn]),(0,Qe.useEffect)(()=>{Mn($t)},[$t]),(0,Qe.useImperativeHandle)(Vt,()=>({getImgData:zt})),Qe.createElement(Qe.Fragment,null,Qe.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Rt}),Qe.createElement(xt.Z,{align:"middle"},Qe.createElement($e.Z,{flex:1},Qe.createElement(yt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:yn,onChange:xn=>Mn(xn)})),Qe.createElement($e.Z,null,Qe.createElement(Re.ZP,{size:"large",onClick:zt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),It=Ge(41588),Ut=Ge(8591);const tn="link",ln="upload-image",mn="add-flowchart",jn="draw-image",Vn="add-flowchart",Kn="code-block",ar="add-table",xr="------------",gr={default:xr,left:`:${xr}`,center:`:${xr}:`,right:`${xr}:`};var dr=Ge(58856);function Tr(){}let Rr=0;const Zr=1e4,ei="\u2581",jr="@\u2581\u2581@",it="@\u2581@",Qr=`
|
|
|
**\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`,$r=["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 En($t){return/^\d+$/.test($t)?`${$t}px`:$t}const rr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",vr={[rr+"-B"]:"bold",[rr+"-I"]:"italic"},zn={[tn]:"\u6DFB\u52A0\u94FE\u63A5",[Kn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[ln]:"\u6DFB\u52A0\u56FE\u7247",[jn]:"\u6DFB\u52A0\u753B\u56FE",[mn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[ar]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Nn=({defaultValue:$t="",onChange:Xt,width:Lt="100%",height:nn=400,miniToolbar:pn=!1,isFocus:Vt=!1,watch:Rt,insertTemp:rn,mode:yn="markdown",id:Mn="markdown-editor-id",showResizeBar:On=!1,noStorage:zt=!1,showNullButton:xn=!1,showNullProgramButton:Fn=!1,hidetoolBar:$n=!1,fullScreen:gn=!1,onBlur:Sn,onCMBeforeChange:Qt,onFullScreen:hn,className:dn="",disablePaste:cn=!1,disabled:Pn=!1,disabledFill:Cn=!1,placeholder:Dn="",values:In="",extraUse:tr})=>{const[un,fr]=(0,Qe.useState)(null),[wr,Or]=(0,Qe.useState)($t),[fn,_n]=(0,Qe.useState)(Rt),[Yn,hr]=(0,Qe.useState)(gn),[Qn,ur]=(0,Qe.useState)(""),[Cr,Pr]=(0,Qe.useState)(0),[cr,Mr]=(0,Qe.useState)(nn),[Tn,qr]=(0,Qe.useState)(!1),[Ln,zr]=(0,Qe.useState)(0),[li,Ar]=(0,Qe.useState)(0),fi=(0,Qe.useRef)(),oi=(0,Qe.useRef)(),Sr=(0,Qe.useRef)(),yr=(0,Qe.useRef)();(0,Qe.useEffect)(()=>{const Lr=window.scrollY||window.pageYOffset;Or(In),un==null||un.setValue(In),window.scrollTo(0,Lr)},[In]),(0,Qe.useEffect)(()=>{hn==null||hn(Yn)},[Yn]),(0,Qe.useEffect)(()=>{if(fi.current){let Lr=function(Wn,Br){var vi;if(cn){Br.preventDefault();return}const Ki=Br.clipboardData;if(Ki){const Ti=Ki.types.toString(),gi=Ki.items;if(Ti==="Files"||Ki.types.indexOf("Files")>-1){if(Br.preventDefault(),yn=="stex")return;try{let Gi=gi[1];((vi=gi[0])==null?void 0:vi.kind)==="file"&&(Gi=gi[0]);const Xi=Gi.getAsFile(),vo=Xi.name.split(".").pop();(0,vt.I)(Xi,yo=>{var Po,wn,ao;yo.id?((Po=Xi==null?void 0:Xi.type)==null?void 0:Po.indexOf("image"))>-1?kr.replaceSelection(`<img width="100%" src="/api/attachments/${yo.id}?type=${yo.content_type})" alt="" />`):((wn=Xi==null?void 0:Xi.type)==null?void 0:wn.indexOf("video"))>-1?kr.replaceSelection(`<video width="100%" controls src="/api/attachments/${yo.id}"></video>`):((ao=Xi==null?void 0:Xi.type)==null?void 0:ao.indexOf("pdf"))>-1?kr.replaceSelection(`<a href="/api/attachments/${yo.id}?type=${Xi.type}&disposition=inline" target="_blank">${Xi.name}</a>`):$r.includes(vo)?kr.replaceSelection(`<a href="/api/attachments/${yo.id}?type=office&disposition=inline" target="_blank">${Xi.name}</a>`):kr.replaceSelection(`[${Xi.name}](/api/attachments/${yo.id}?type=${yo.content_type})`):(yo==null?void 0:yo.status)===401&&(document.location.href="/user/login")})}catch(Gi){Ut.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const kr=oe().fromTextArea(fi.current,{mode:yn,lineNumbers:!pn,lineWrapping:!0,value:$t,autoCloseTags:!0,autoCloseBrackets:!0});return kr.on("keyup",function(Wn,Br){Br.keyCode===8&&(Wn.getValue()==""?kr.setOption("placeholder",Dn):kr.setOption("placeholder",null))}),kr.on("keydown",function(Wn,Br){if(Br.keyCode===8){var vi=ai(Wn);vi&&Br.preventDefault()}}),Vt&&kr.focus(),kr.on("paste",Lr),Pn&&kr.on("beforeChange",function(Wn,Br){(Br.origin==="paste"||Br.origin==="+input")&&Br.cancel()}),fr(kr),()=>{kr.off("paste",Lr)}}},[]);const Kr=(0,Qe.useCallback)(()=>{if(oi.current)try{}catch(Lr){console.log(Lr,"---- to set md editor body height")}},[cr,oi,Yn]);(0,Qe.useEffect)(()=>{function Lr(){let kr=new _e.Z(Wn=>{for(let Br of Wn)(Br.target.offsetHeight>0||Br.target.offsetWidth>0)&&(Kr(),un.setSize("100%","100%"),un.refresh())});return kr.observe(fi.current.parentElement),kr}if(un){const kr=Lr();return()=>{var Wn,Br;(Wn=fi.current)!=null&&Wn.parentElement&&kr.unobserve((Br=fi.current)==null?void 0:Br.parentElement)}}},[un,Kr]),(0,Qe.useEffect)(()=>{if(un){let Lr=[];for(const[kr,Wn]of Object.entries(vr)){let Br={[kr]:()=>{qn(Wn)}};Lr.push(Br),un.addKeyMap(Br)}return()=>{for(let kr of Lr)un.removeKeyMap(kr)}}},[un]),(0,Qe.useEffect)(()=>{gn!==Yn&&hr(gn)},[gn]),(0,dr.Z)(()=>{if(!zt&&Cr>0){let Lr=new Date().getTime(),kr=window.sessionStorage.getItem(Mn);Lr>=Cr+Zr&&(!kr||kr!==wr)&&(window.sessionStorage.setItem(Mn,wr),qr(!0))}},Zr),(0,Qe.useEffect)(()=>{_n(Rt)},[un,Rt]),(0,Qe.useEffect)(()=>{un&&Vt&&un.focus()},[un,Vt]),(0,Qe.useEffect)(()=>{if(fn&&un){let Lr=function(Wn){let Br=Wn.target;if(yr.current){let vi=Br.scrollTop/Br.scrollHeight;yr.current.scrollTop=yr.current.scrollHeight*vi}};const kr=un.getScrollerElement();return kr.addEventListener("scroll",Lr),()=>{kr.removeEventListener("scroll",Lr)}}},[un,fn]),(0,Qe.useEffect)(()=>{if(un&&Qt){let Lr=function(kr,Wn){Qt(kr,Wn)};return un.on("beforeChange",Lr),()=>{un.off("beforeChange",Lr)}}},[un,Qt]),(0,Qe.useEffect)(()=>{if(un&&Sn){let Lr=function(){Sn(un.getValue())};return un.on("blur",Lr),()=>{un.off("blur",Lr)}}},[un,Sn]);function ai(Lr,kr){var Wn=Lr.getDoc(),Br=Wn.getCursor(),vi=Wn.getLine(Br.line),Ki=vi.charAt(Br.ch-1),Ti=vi.lastIndexOf("@\u2581@",Br.ch),gi=vi.lastIndexOf("@\u2581\u2581@",Br.ch),Gi=Ti>gi?Ti:gi,Xi=Ti>gi?3:4;if(jr.indexOf(Ki)===-1)return null;if(console.log("change1:",kr,Lr,vi,Br,Gi,Ti,gi,Ki),Gi>=0&&Br.ch-Gi<5){var vo=Gi+Xi;return Wn.replaceRange("",{line:Br.line,ch:Gi},{line:Br.line,ch:vo}),{line:Br.line,ch:vo}}return null}(0,Qe.useEffect)(()=>{if(un){let Lr=function(kr,Wn){const Br=kr.getValue();Or(Br),Pr(new Date().getTime()),kr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Xt&&(Fn?Xt(Br,Gr(Br)):Xt(Br))};return un.on("change",Lr),()=>{un.off("change",Lr)}}},[un,Xt]),(0,Qe.useEffect)(()=>{if(un)if($t==null)un.setValue(""),Or("");else{const Lr=window.scrollY||window.pageYOffset;$t!==un.getValue()&&(un.setValue($t),Or($t),un.setCursor(Pn?1:un.lineCount(),0),window.scrollTo(0,Lr))}},[un,$t]);const qn=(0,Qe.useCallback)(Lr=>{const kr=un.getCursor(),Wn=un.getSelection();let Br=Wn.split(`
|
|
|
`);switch(Lr){case"bold":return un.replaceSelection("**"+Wn+"**"),Wn===""&&un.setCursor(kr.line,kr.ch+2),un.focus();case"italic":return un.replaceSelection("*"+Wn+"*"),Wn===""&&un.setCursor(kr.line,kr.ch+1),un.focus();case"code":return un.replaceSelection("`"+Wn+"`"),Wn===""&&un.setCursor(kr.line,kr.ch+1),un.focus();case"inline-latex":return ur("inline-latex"),un.focus();case"latex":return un.replaceSelection("```latex\n"+Wn+"\n```"),un.setCursor(kr.line+1,Wn.length+1),un.focus();case"line-break":return un.replaceSelection(`<br/>
|
|
|
`),un.focus();case"list-ul":return Wn===""?un.replaceSelection("- "+Wn):un.replaceSelection(Br.map(vi=>vi===""?"":`- ${vi}`).join(`
|
|
|
`)),un.focus();case"list-ol":return Wn===""?un.replaceSelection("1. "+Wn):un.replaceSelection(Br.map((vi,Ki)=>vi===""?"":`${Ki+1}. ${vi}`).join(`
|
|
|
`)),un.focus();case"add-null-ch":return Wn===""&&un.setCursor(kr.line,kr.ch),un.replaceSelection(ei),un.focus();case"add-signal":return Wn===""&&un.setCursor(kr.line,kr.ch),un.replaceSelection(it),un.focus();case"add-multiple":return Wn===""&&un.setCursor(kr.line,kr.ch),un.replaceSelection(jr),un.focus();case"inster-template-1":return Wn===""&&un.setCursor(kr.line,kr.ch),un.replaceSelection(Qr),un.focus();case"eraser":return un.setValue(""),un.focus();case"trigger-watch":return _n(!fn),un.focus();case"trigger-full-screen":return hr(!Yn),un.focus();case tn:ur(tn);return;case Kn:ur(Kn);return;case ln:ur(ln);return;case jn:ur(jn);return;case"maths-latex":ur("maths-latex");return;case mn:ur(mn);return;case ar:ur(ar);return;default:throw new Error}},[un,fn,Yn]),Nt=(0,Qe.useCallback)((Lr,kr)=>{var Wn,Br,vi,Ki,Ti,gi;switch(ur(""),Qn){case tn:const{title:Po,link:wn}=Lr;return un.replaceSelection(`[${Po}](${wn})`),un.focus();case Kn:const{language:ao,content:cl}=Lr;return un.replaceSelection(["```"+ao,cl,"```"].join(`
|
|
|
`)),un.focus();case"maths-latex":for(var Gi=atob(Lr),Xi=new Uint8Array(Gi.length),vo=0;vo<Gi.length;vo++)Xi[vo]=Gi.charCodeAt(vo);var yo=new Blob([Xi],{type:"image/png"});(0,vt.I)(yo,Yr=>{Yr.id?un.replaceSelection(``):(Yr==null?void 0:Yr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":un.replaceSelection("`$$"+Lr+"$$`");break;case ln:case jn:case Vn:const{src:la,alt:Ai}=Lr,mi=kr,so=(vi=(Br=(Wn=mi==null?void 0:mi.name)==null?void 0:Wn.split("."))==null?void 0:Br.pop)==null?void 0:vi.call(Br);return((Ki=mi==null?void 0:mi.type)==null?void 0:Ki.indexOf("image"))>-1||!(mi!=null&&mi.type)?mi!=null&&mi.align||mi!=null&&mi.width?un.replaceSelection(`<p style="text-align:${mi.align||"initial"}"><img width="${mi.width?mi.width+"%":"initial"}" src="${la}" alt="${Ai||""}" /></p>`):un.replaceSelection(`<img width="100%" src="${la}" alt="${Ai||""}" />`):((Ti=mi==null?void 0:mi.type)==null?void 0:Ti.indexOf("video"))>-1?un.replaceSelection(`<video width="100%" controls src="${la}"></video>`):((gi=mi==null?void 0:mi.type)==null?void 0:gi.indexOf("pdf"))>-1?un.replaceSelection(`<a href="${la}?type=${mi.type}&disposition=inline" target="_blank">${mi.name}</a>`):$r.includes(so)?un.replaceSelection(`<a href="${la}?type=office&disposition=inline" target="_blank">${mi.name}</a>`):un.replaceSelection(`[${mi.name}](${la})`),un.focus();case ar:const{row:Bi,col:yi,align:Yi}=Lr;let ma=`
|
|
|
`;for(let Yr=0;Yr<Bi;Yr++){let Li=[],Si=[];for(let mr=0;mr<yi;mr++)Yr===1&&Si.push(gr[Yi]),Li.push(" ");Yr===1&&(ma+=`| ${Si.join(" | ")} |
|
|
|
`),ma+=`| ${Li.join(yi===1?"":" | ")} |
|
|
|
`}return un.replaceSelection(ma+`
|
|
|
`),un.focus();default:throw new Error}},[un,Qn]),ni=(0,Qe.useMemo)(()=>{switch(Qn){case tn:return Qe.createElement(Ct,{callback:Nt,onCancel:Ci});case Kn:return Qe.createElement(wt.Z,{callback:Nt,onCancel:Ci});case ln:return Qe.createElement(vt.Z,{callback:Nt,onCancel:Ci});case mn:return Qe.createElement(nt,{callback:Nt,onCancel:Ci});case ar:return Qe.createElement(Xe,{callback:Nt,onCancel:Ci});case"maths-latex":return Qe.createElement(en,{showSaveButton:!0,callback:Nt});case"inline-latex":return Qe.createElement(It.Z,{showSaveButton:!0,callback:Nt});default:return null}},[Qn]);function Ci(){ur("")}(0,Qe.useEffect)(()=>{if(Sr.current){let Lr=function(Ti){vi=!0,Ki=Ti.pageY},kr=function(){vi=!1},Wn=function(Ti){if(vi){let gi=Ti.pageY-Ki;gi<0&&(gi=0),gi>300&&(gi=300);let Gi=nn+gi+"px";Mr(Gi)}},Br=Sr.current,vi=!1,Ki=0;return Br.addEventListener("mousedown",Lr),document.addEventListener("mousemove",Wn),document.addEventListener("mouseup",kr),()=>{Br.removeEventListener("mousedown",Lr),document.removeEventListener("mousemove",Wn),document.removeEventListener("mouseup",kr)}}},[un,Sr]),(0,Qe.useEffect)(()=>{Mr(nn)},[nn]);const Xr=En(Lt),Ei=En(cr),Oi={width:Xr,height:Ei},Fr=(0,Qe.useMemo)(()=>{if(Cr){let Lr=new Date(Cr),kr=Lr.getHours(),Wn=Lr.getMinutes(),Br=Lr.getSeconds();return kr=kr<10?"0"+kr:kr,Wn=Wn<10?"0"+Wn:Wn,Br=Br<10?"0"+Br:Br,`${kr}:${Wn}:${Br}`}return 0},[Cr]),Gr=Lr=>{const kr=[];if(Fn){let Wn=-1;Lr=Lr.replace(/(@▁▁@|@▁@)/g,function(Br,vi,Ki){kr.push({multiLine:Br!==it})})}return kr};function ri(){window.sessionStorage.removeItem(Mn),qr(!1),Pr(0)}function Vr(){qr(!1),Pr(0),un.setValue(window.sessionStorage.getItem(Mn))}(0,Qe.useEffect)(()=>{zn[Qn]&&Qn!==jn&&Qn!==mn&&setTimeout(()=>{const Lr=document.getElementsByClassName("markdown-popup-form")[0],kr=window.innerWidth/2-Lr.offsetWidth/2,Wn=window.innerHeight/2-Lr.offsetHeight/2;zr(kr),Ar(Wn)},0)},[Qn]);const Mi=Lr=>{Lr.preventDefault();const kr=Lr.clientX-Ln,Wn=Lr.clientY-li;document.body.onmousemove=Br=>{let vi=Br.clientX-kr,Ki=Br.clientY-Wn;const Ti=document.getElementsByClassName("markdown-popup-form")[0],gi=window.innerWidth-Ti.offsetWidth,Gi=window.innerHeight-Ti.offsetHeight;vi=Math.max(0,Math.min(vi,gi)),Ki=Math.max(0,Math.min(Ki,Gi)),Fi(Br.clientX,Br.clientY,kr,Wn)&&(zr(vi),Ar(Ki))},document.body.onmouseup=function(){document.body.onmousemove=null}},Fi=(Lr,kr,Wn,Br)=>{const vi=document.body.clientHeight,Ki=document.body.clientWidth;return Lr<20&&Wn>Lr||Lr>Ki-20&&Wn<Lr||kr<20&&Br>kr||kr>vi-20&&Br<kr?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Qe.createElement(Qe.Fragment,null,Qe.createElement("div",{className:"markdown-editor-wrapper",ref:oi},Qe.createElement("div",{className:`markdown-editor-container ${dn} ${fn?"on-preview":""} ${pn?"mini":""} ${Yn?"full-screen":""}`,style:Oi},Qe.createElement(Le,{insertTemp:rn,watch:fn,fullScreen:Yn,showNullButton:xn,showNullProgramButton:Fn,onActionCallback:qn,hidetoolBar:$n,extraUse:tr}),Qe.createElement("div",{className:"markdown-editor-body"},Qe.createElement("div",{className:"codemirror-container"},Qe.createElement("textarea",{ref:fi,placeholder:Dn})),fn?Qe.createElement("div",{ref:yr,className:"preview-container"},yn==="stex"&&Qe.createElement(me,{value:wr}),yn!=="stex"&&Qe.createElement(we.Z,{disabledFill:Cn,showProgramFill:Fn,value:wr})):null))),On?Qe.createElement("a",{ref:Sr,className:"editor-resize"}):null,Qn===jn&&Qe.createElement(Wt,{callback:Nt,onCancel:Ci}),Qn===mn&&Qe.createElement(nt,{callback:Nt,onCancel:Ci}),Qe.createElement(ke.Z,null,zn[Qn]&&Qn!==jn&&Qn!==mn?Qe.createElement(mt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Ln,top:li},title:Qe.createElement("div",{style:{cursor:"move"},onMouseDown:Mi},zn[Qn]),open:!0,onCancel:Ci,footer:null,destroyOnClose:!0,width:Qn===mn?"1200px":null,height:Qn===mn?"80vh":null,className:"markdown-popup-form"},ni):null))}},28451:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Ce},I:function(){return Le}});var Qe=Ge(78241),Tt=Ge(8591),oe=Ge(92832),_e=Ge(81327),Ne=Ge(5871),ve=Ge(5112),fe=Ge(3113),be=Ge(77903),Pe=Ge(59301),ye=Ge(59301),we=Object.defineProperty,me=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(ke,Oe,Fe)=>Oe in ke?we(ke,Oe,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):ke[Oe]=Fe,re=(ke,Oe)=>{for(var Fe in Oe||(Oe={}))z.call(Oe,Fe)&&ae(ke,Fe,Oe[Fe]);if(de)for(var Fe of de(Oe))ee.call(Oe,Fe)&&ae(ke,Fe,Oe[Fe]);return ke},le=(ke,Oe)=>me(ke,Se(Oe));const{useForm:ue}=Qe.default,pe={width:280,marginRight:10},Ee={labelCol:{span:5},wrapperCol:{span:19}};var Ce=({callback:ke,onCancel:Oe})=>{const[Fe]=ue();let Re=(0,Pe.useRef)();function Ze(ot){Re.current.width=Fe.getFieldValue("width"),Re.current.align=Fe.getFieldValue("align"),ke(ot,Re.current)}function ze(ot,ct){if(ot.status===-1){Tt.ZP.error(ot.message);return}Fe.setFieldsValue({src:`/api/attachments/${ot.id}`,type:ct.type})}function Ke(ot){let ct=ot.target.files[0];Re.current=ct,Le(ct,ze)}return ye.createElement(Qe.default,le(re({form:Fe},Ee),{className:"upload-image-panel",onFinish:Ze,style:{width:470,overflow:"hidden"}}),ye.createElement(Qe.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ye.createElement("div",{className:"flex-container"},ye.createElement(Qe.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ye.createElement(oe.default,{style:pe})),ye.createElement(je,{onFileChange:Ke}))),ye.createElement(Qe.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ye.createElement(oe.default,{style:{width:264}})),ye.createElement(Qe.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ye.createElement(_e.Z,null,ye.createElement(Qe.default.Item,{name:"width",style:{margin:0}},ye.createElement(Ne.Z,{style:{width:264}})),ye.createElement("span",{className:"ml8"},"%"))),ye.createElement(Qe.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ye.createElement(ve.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"}]})),ye.createElement("aside",null,ye.createElement(Qe.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ye.createElement(fe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ye.createElement(fe.ZP,{type:"default",onClick:Oe},"\u53D6\u6D88"))))};function je({onFileChange:ke}){return ye.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ye.createElement("input",{type:"file",onChange:ke}))}function Le(ke,Oe){if(!ke)throw new String("\u6CA1\u6709\u6587\u4EF6");let Fe=new FormData;Fe.append("editormd-image-file",ke),Fe.append("file_param_name","editormd-image-file"),Fe.append("byxhr","true");var Re=new window.XMLHttpRequest;Re.withCredentials=!0,Re.addEventListener("load",function(Ze){Oe(JSON.parse(Ze.target.responseText),ke)},!1),Re.addEventListener("error",function(Ze){console.error(Ze)},!1),Re.open("POST",`${be.KI}/api/attachments.json`),Re.send(Fe)}},79346:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return oe}});var Qe=Ge(59301),Tt=Ge(4676);class oe extends Qe.Component{constructor(Ne){super(Ne);const ve=window.document;this.node=ve.createElement("div"),ve.body.appendChild(this.node)}render(){const{children:Ne}=this.props;return(0,Tt.createPortal)(Ne,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(bn,an,Ge){"use strict";Ge.d(an,{SV:function(){return Ve},ZP:function(){return et}});var Qe=Ge(59301),Tt=Ge(76374);const oe={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"]},_e={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"]},Ne={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(`
|
|
|
`)}]},ve={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(`
|
|
|
`)}]},fe={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 be=Ge(53184),Pe=Ge.n(be),ye=Object.defineProperty,we=Object.defineProperties,me=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(He,nt,ut)=>nt in He?ye(He,nt,{enumerable:!0,configurable:!0,writable:!0,value:ut}):He[nt]=ut,ae=(He,nt)=>{for(var ut in nt||(nt={}))de.call(nt,ut)&&ee(He,ut,nt[ut]);if(Se)for(var ut of Se(nt))z.call(nt,ut)&&ee(He,ut,nt[ut]);return He},re=(He,nt)=>we(He,me(nt)),le=(He,nt,ut)=>new Promise((We,De)=>{var Ie=Ye=>{try{yt(ut.next(Ye))}catch(jt){De(jt)}},Xe=Ye=>{try{yt(ut.throw(Ye))}catch(jt){De(jt)}},yt=Ye=>Ye.done?We(Ye.value):Promise.resolve(Ye.value).then(Ie,Xe);yt((ut=ut.apply(He,nt)).next())});const ue={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"]}},pe=(He,nt)=>nt.map(ut=>({label:ut,kind:He.languages.CompletionItemKind.Keyword,insertText:ut})),Ee=He=>Object.keys(ue.tables).map(nt=>({label:nt,kind:He.languages.CompletionItemKind.Variable,insertText:nt})),Ce=(He,nt)=>{const ut=ue.tables[He];return ut?ut.map(We=>({label:We,kind:nt.languages.CompletionItemKind.Field,insertText:We})):[]};function je(He,nt,ut,We,De){let Ie=nt.getWordUntilPosition(ut),Xe={startLineNumber:ut.lineNumber,endLineNumber:ut.lineNumber,startColumn:Ie.startColumn,endColumn:Ie.endColumn},yt=We.map(Ye=>({label:Ye,kind:He.languages.CompletionItemKind.Keyword,insertText:Ye,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Xe}));return De.map(Ye=>{yt.push(re(ae({},Ye),{range:Xe}))}),yt}var Le=He=>{ue.languages.map(De=>(He.languages.registerDocumentFormattingEditProvider(De,{provideDocumentFormattingEdits(Ie,Xe,yt){return le(this,null,function*(){const Ye=Pe()(Ie.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:Ie.getFullModelRange(),text:Ye}]})}}),De));const nt=Ne.quickKey.map(De=>({label:De.label,kind:He.languages.CompletionItemKind.Method,insertText:De.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ut=ve.quickKey.map(De=>({label:De.label,kind:He.languages.CompletionItemKind.Method,insertText:De.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet})),We=_e.quickKey.map(De=>({label:De.label,kind:He.languages.CompletionItemKind.Method,insertText:De.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet}));He.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(De,Ie){var Xe=De.getWordUntilPosition(Ie),yt={startLineNumber:Ie.lineNumber,endLineNumber:Ie.lineNumber,startColumn:Xe.startColumn,endColumn:Xe.endColumn},Ye=De.getLineContent(Ie.lineNumber).substring(Xe.startColumn-2,Xe.endColumn);return{suggestions:[...Ne.keywords.map(jt=>({label:jt,kind:He.languages.CompletionItemKind.Function,documentation:jt,insertText:jt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:yt})),...Ne.quickKey.map(jt=>({label:jt.label,kind:He.languages.CompletionItemKind.Function,documentation:jt.content,insertText:Ye.startsWith("#")?jt.content.replace(/#/,""):jt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:yt}))]}}}),He.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(De,Ie){var Xe=De.getWordUntilPosition(Ie),yt={startLineNumber:Ie.lineNumber,endLineNumber:Ie.lineNumber,startColumn:Xe.startColumn,endColumn:Xe.endColumn};return{suggestions:[...oe.keywords.map(Ye=>({label:Ye,kind:He.languages.CompletionItemKind.Function,documentation:Ye,insertText:Ye,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:yt}))]}}}),He.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(De,Ie){var Xe=De.getWordUntilPosition(Ie),yt={startLineNumber:Ie.lineNumber,endLineNumber:Ie.lineNumber,startColumn:Xe.startColumn,endColumn:Xe.endColumn},Ye=De.getLineContent(Ie.lineNumber).substring(Xe.startColumn-2,Xe.endColumn);return{suggestions:[..._e.keywords.map(jt=>({label:jt,kind:He.languages.CompletionItemKind.Function,documentation:jt,insertText:jt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:yt})),..._e.quickKey.map(jt=>({label:jt.label,kind:He.languages.CompletionItemKind.Function,documentation:jt.content,insertText:Ye.startsWith("#")?jt.content.replace(/#/,""):jt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:yt}))]}}}),He.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(De,Ie){var Xe=De.getWordUntilPosition(Ie),yt={startLineNumber:Ie.lineNumber,endLineNumber:Ie.lineNumber,startColumn:Xe.startColumn,endColumn:Xe.endColumn},Ye=De.getLineContent(Ie.lineNumber).substring(Xe.startColumn-2,Xe.endColumn);return{suggestions:[...fe.keywords.map(jt=>({label:jt,kind:He.languages.CompletionItemKind.Function,documentation:jt,insertText:jt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:yt})),...fe.quickKey.map(jt=>({label:jt.label,kind:He.languages.CompletionItemKind.Function,documentation:jt.content,insertText:Ye.startsWith("#")?jt.content.replace(/#/,""):jt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:yt}))]}}}),He.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(De,Ie){var Xe=De.getWordUntilPosition(Ie),yt={startLineNumber:Ie.lineNumber,endLineNumber:Ie.lineNumber,startColumn:Xe.startColumn,endColumn:Xe.endColumn},Ye=De.getLineContent(Ie.lineNumber).substring(Xe.startColumn-2,Xe.endColumn);return{suggestions:[...ve.keywords.map(jt=>({label:jt,kind:He.languages.CompletionItemKind.Function,documentation:jt,insertText:jt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:yt})),...ve.quickKey.map(jt=>({label:jt.label,kind:He.languages.CompletionItemKind.Function,documentation:jt.content,insertText:Ye.startsWith("#")?jt.content.replace(/#/,""):jt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:yt}))]}}})};const ke="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Oe=Object.defineProperty,Fe=(He,nt,ut)=>nt in He?Oe(He,nt,{enumerable:!0,configurable:!0,writable:!0,value:ut}):He[nt]=ut,Re=(He,nt,ut)=>Fe(He,typeof nt!="symbol"?nt+"":nt,ut);const Ze=class mx{constructor(nt,ut,We){this.placeholder=nt,this.editor=ut,this.monaco=We,ut.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return mx.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)}};Re(Ze,"ID","editor.widget.placeholderHint");var Ke=Ze,ot=Ge(96236),ct=Ge(8591),pt=Ge(6848),bt=Ge(89392),qe=Ge(34604),at=Ge(56102),gt=Object.defineProperty,Ct=Object.defineProperties,wt=Object.getOwnPropertyDescriptors,vt=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,At=(He,nt,ut)=>nt in He?gt(He,nt,{enumerable:!0,configurable:!0,writable:!0,value:ut}):He[nt]=ut,kt=(He,nt)=>{for(var ut in nt||(nt={}))mt.call(nt,ut)&&At(He,ut,nt[ut]);if(vt)for(var ut of vt(nt))xt.call(nt,ut)&&At(He,ut,nt[ut]);return He},Wt=(He,nt)=>Ct(He,wt(nt)),Et=(He,nt)=>{var ut={};for(var We in He)mt.call(He,We)&&nt.indexOf(We)<0&&(ut[We]=He[We]);if(He!=null&&vt)for(var We of vt(He))nt.indexOf(We)<0&&xt.call(He,We)&&(ut[We]=He[We]);return ut},St=(He,nt,ut)=>new Promise((We,De)=>{var Ie=Ye=>{try{yt(ut.next(Ye))}catch(jt){De(jt)}},Xe=Ye=>{try{yt(ut.throw(Ye))}catch(jt){De(jt)}},yt=Ye=>Ye.done?We(Ye.value):Promise.resolve(Ye.value).then(Ie,Xe);yt((ut=ut.apply(He,nt)).next())});function tt(He){return/^\d+$/.test(He)?`${He}px`:He}function ft(){}let $e=!1;const lt={"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 Pt(He=[]){let nt=He;if(Array.isArray(He)){for(let ut=0;ut<He.length;ut++){let We=lt[He[ut]];if(We)return We}return nt[0]}return lt[nt]||nt}let dt=null;var et=He=>{var nt=He,{width:ut="100%",height:We="100%",value:De,language:Ie="javascript",style:Xe={},options:yt={},overrideServices:Ye={},theme:jt="vs-dark",onEditBlur:Ht,isCopy:en=!1,onSave:It,autoHeight:Ut=!1,forbidCopy:tn=!1,onChange:ln=ft,editorDidMount:mn=ft,onFocus:jn=ft,onBreakPoint:Vn=ft,breakPointValue:Kn=[],filename:ar="educoder.txt",errorLine:xr,errorContent:gr="",highlightLine:dr,openBreakPoint:Tr=!1,placeholder:Rr="",showMiniMap:Zr=!0}=nt,ei=Et(nt,["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 jr=(0,Qe.useRef)(),it=(0,Qe.useRef)({}),Qr=(0,Qe.useRef)(),$r=(0,Qe.useRef)(),En=(0,Qe.useRef)([]),er=(0,Qe.useRef)(!1),rr=(0,Qe.useRef)(),vr=(0,Qe.useRef)(),zn=(0,Qe.useRef)(!1),[Nn,$t]=(0,Qe.useState)(!1);function Xt(){let Sn;return jr.current&&(Sn=new Tt.Z(Qt=>{for(let hn of Qt)(hn.target.offsetHeight>0||hn.target.offsetWidth>0)&&it.current.instance.layout()}),Sn.observe(jr.current)),Sn}function Lt(){ct.ZP.warning({content:decodeURIComponent(ke),key:"monaco-editor-tip"})}const nn=()=>{let Sn=it.current.instance;if(De!=null&&Sn&&Nn){const Qt=Sn.getModel();Qt&&De!==Qt.getValue()&&($e=!0,Qt.setValue(De),Sn.layout(),$e=!1)}};(0,Qe.useEffect)(()=>{const Sn=qe.Z.subscribe("formatDocument",Qt=>{var hn;let dn=it.current.instance;(hn=dn==null?void 0:dn.getAction)==null||hn.call(dn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Qt=>{ln(Qt)},Sn},[]),(0,Qe.useEffect)(()=>{var Sn;let Qt=it.current.instance;$r.current&&clearTimeout($r.current),$r.current=setTimeout(()=>{nn()},500),De&&(De!=null&&De.length)&&((Sn=Qt==null?void 0:Qt.updateOptions)==null||Sn.call(Qt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(De.split(/\r\n|\r|\n/g).length))+3,5)}))},[De,Nn,it.current]),(0,Qe.useEffect)(()=>{if(xr&&it.current&&it.current.instance){let Qt=it.current.instance;Qt.changeViewZones(function(hn){var dn=document.createElement("div");dn.style.padding="10px 20px",dn.style.width="calc(100% - 20px)",dn.className="my-error-line-wrp",dn.innerHTML=gr,hn.addZone({afterLineNumber:xr||11,heightInLines:3,domNode:dn})});var Sn={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}};Qt.addOverlayWidget(Sn),Qt.revealPositionInCenter({lineNumber:20,column:1})}},[xr,it.current,Nn]);const pn=(Sn="",Qt)=>{if(!Sn||Sn.trim()==="")return!0;const dn=it.current.instance.getModel().getLineTokens(Qt);let cn=!1;for(let Pn=0;Pn<2;Pn++)dn.getStandardTokenType(Pn)===1&&(cn=!0);return cn};(0,Qe.useEffect)(()=>{var Sn;const Qt=(Sn=it.current)==null?void 0:Sn.instance;if(Qt&&Nn&&tn){const hn=Qt.onDidBlurEditorWidget(()=>{zn.current=!1}),dn=Qt.onDidFocusEditorText(()=>{zn.current=!0});return()=>{hn.dispose(),dn.dispose()}}},[it.current,Nn,tn]),(0,Qe.useEffect)(()=>{var Sn;if((Sn=it.current)!=null&&Sn.instance&&Nn&&Tr){let Qt=it.current.instance,hn=Qt.getModel();if(!hn)return;(()=>{var fn;let _n=[],Yn=[];const hr=hn.getAllDecorations();for(let ur of hr)ur.options.className==="highlighted-line"&&(_n.push((fn=ur==null?void 0:ur.range)==null?void 0:fn.startLineNumber),Yn.push(ur==null?void 0:ur.id));if(dr===_n[0])return;hn.deltaDecorations(Yn,[]);const Qn=hn.getLineCount();dr&&dr<=Qn&&(Qt.deltaDecorations([],[{range:new dt.Range(dr,1,dr,hn.getLineMaxColumn(dr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Qt.revealLineInCenter(dr))})();const cn=(fn=!1)=>{var _n;let Yn=[],hr=[];const Qn=hn.getAllDecorations();for(let ur of Qn)ur.options.linesDecorationsClassName==="breakpoints-select"&&(Yn.push((_n=ur==null?void 0:ur.range)==null?void 0:_n.startLineNumber),hr.push(ur==null?void 0:ur.id));if(fn)return{lines:Yn,ids:hr};Vn(Yn)},Pn=fn=>St(void 0,null,function*(){let _n={range:new dt.Range(fn,1,fn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield hn.deltaDecorations([],[_n]),cn()}),Cn=fn=>St(void 0,null,function*(){let _n=[];const Yn=Qt.getLineDecorations(fn);for(let hr of Yn)hr.options.linesDecorationsClassName==="breakpoints-select"&&_n.push(hr.id);yield hn.deltaDecorations(_n,[]),cn()}),Dn=fn=>{let _n=Qt.getLineDecorations(fn);for(let Yn of _n)if(Yn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,bt.isEqual)(Kn,cn(!0).lines)){hn.deltaDecorations(cn(!0).ids,[]);const fn=Kn.map(_n=>({range:new dt.Range(_n,1,_n,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));hn.deltaDecorations([],fn)}const In=Qt.onDidChangeModelContent(fn=>{let _n=Qt.getPosition();if(_n){let Yn=_n.lineNumber;clearTimeout(vr.current),vr.current=setTimeout(()=>{pn(hn.getLineContent(Yn),Yn)?Cn(Yn):Dn(Yn)?(Cn(Yn),Pn(Yn)):cn()},100)}}),tr=Qt.onMouseDown(fn=>{var _n,Yn,hr;if(fn.target.detail&&((hr=(Yn=(_n=fn.target)==null?void 0:_n.element)==null?void 0:Yn.className)!=null&&hr.includes("line-numbers"))){let Qn=fn.target.position.lineNumber;if(pn(hn.getLineContent(Qn),Qn))return;Dn(Qn)?Cn(Qn):Pn(Qn)}}),un=fn=>{let _n={range:new dt.Range(fn,1,fn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};En.current=Qt.deltaDecorations(En.current,[_n])},fr=()=>{En.current=Qt.deltaDecorations(En.current,[])},wr=Qt.onMouseMove(fn=>{var _n,Yn,hr;if(fr(),fn.target.detail&&((hr=(Yn=(_n=fn.target)==null?void 0:_n.element)==null?void 0:Yn.className)!=null&&hr.includes("line-numbers"))){let Qn=fn.target.position.lineNumber;if(pn(hn.getLineContent(Qn),Qn))return;un(Qn)}}),Or=Qt.onMouseLeave(()=>{fr()});return()=>{In.dispose(),tr.dispose(),wr.dispose(),Or.dispose()}}},[it.current,Nn,Kn,dr,Tr,Ie]),(0,Qe.useEffect)(()=>{var Sn;(Sn=it.current)!=null&&Sn.instance&&Tr&&it.current.instance.setPosition({lineNumber:0,column:0})},[dr]);function Vt(){let Sn=it.current.instance;if(Sn){const Qt=Sn.getSelection(),hn=it.current.pastePos||{},dn=new dt.Range(hn.startLineNumber||Qt.endLineNumber,hn.startColumn||Qt.endColumn,hn.endLineNumber||Qt.endLineNumber,hn.endColumn||Qt.endColumn);setTimeout(()=>{Sn.executeEdits("",[{range:dn,text:""}])},300)}}function Rt(Sn){(window.navigator.platform.match("Mac")?Sn.metaKey:Sn.ctrlKey)&&Sn.keyCode==83&&(Sn.preventDefault(),It())}const rn=()=>{if(Ut&&it.current.instance){const Sn=it.current.instance.getContentHeight();$n(Sn<We?We:Sn)}else $n(We)};function yn(Sn){var Qt=document.createEvent("MouseEvents");Qt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Sn.dispatchEvent(Qt)}const Mn=Sn=>{if(!zn.current)return;const{keyCode:Qt,ctrlKey:hn,metaKey:dn,target:cn,type:Pn}=Sn;return(Pn==="paste"||(Qt===67||Qt===86)&&(dn||hn))&&cn.nodeName==="TEXTAREA"&&(Lt(),Sn.preventDefault()),!1};function On(Sn,Qt){var hn=window.URL||window.webkitURL||window,dn=new Blob([Qt]),cn=document.createElementNS("http://www.w3.org/1999/xhtml","a");cn.href=hn.createObjectURL(dn),cn.download=Sn,yn(cn)}(0,Qe.useEffect)(()=>{rn()},[rn]),(0,Qe.useEffect)(()=>{jr.current&&!Nn&&Promise.all([Ge.e(8909),Ge.e(3267)]).then(Ge.bind(Ge,71448)).then(Sn=>{try{dt=Sn,it.current.instance=dt.editor.create(jr.current,{value:De,language:Pt(Ie),theme:jt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Zr||!1}},Ye);const Qt=it.current.instance;let cn=[...ot.BH._menuItems].find(In=>In[0]._debugName=="EditorContext")[1],Pn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Cn=(In,tr)=>{var un,fr;let wr=In._first;do tr.includes((fr=(un=wr.element)==null?void 0:un.command)==null?void 0:fr.id)&&In._remove(wr);while(wr=wr.next)};if(mn(Qt,dt),setTimeout(()=>{rn(),it.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{On(ar||"educoder.txt",Qt.getValue())}})},500),it.current.subscription=Qt.onDidChangeModelContent(In=>{er.current?clearTimeout(rr.current):(rn(),ln(Qt.getValue(),In)),rr.current=setTimeout(()=>{er.current=!1},500)}),window.Monaco||Le(dt,Pt(Ie)),tn&&(Cn(cn,Pn),jr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Mn),window.removeEventListener("paste",Mn),window.addEventListener("keydown",Mn),window.addEventListener("paste",Mn)),window.Monaco=dt,Ht&&Qt.onDidBlurEditorWidget(()=>{Ht(Qt.getValue())}),jn&&Qt.onDidFocusEditorText(()=>{jn(Qt.getValue())}),tn)try{Qt.onDidPaste(In=>{const tr=Qt.getSelection(),un=it.current.pastePos||{},fr=new dt.Range(un.startLineNumber||tr.endLineNumber,un.startColumn||tr.endColumn,un.endLineNumber||tr.endLineNumber,un.endColumn||tr.endColumn);Qt.executeEdits("",[{range:In.range,text:""}])})}catch(In){}let Dn=Xt();return Rr&&typeof Rr=="string"&&new Ke(Rr,Qt,dt),$t(!0),()=>{const In=it.current.instance;In.dispose();const tr=In.getModel();tr&&tr.dispose(),it.current.subscription&&it.current.subscription.dispose(),Dn.unobserve(jr.current)}}catch(Qt){}})},[]),(0,Qe.useEffect)(()=>{if(it.current.instance&&Nn)return document.addEventListener("keydown",Rt,!1),()=>{document.removeEventListener("keydown",Rt)}},[It,Nn]),(0,Qe.useEffect)(()=>{let Sn=it.current.instance;if(Sn&&Nn){let Qt=Pt(Ie);dt.editor.setModelLanguage(Sn.getModel(),Qt)}},[Ie,Nn]),(0,Qe.useEffect)(()=>{it.current.instance&&Nn&&dt.editor.setTheme(jt)},[jt,Nn]),(0,Qe.useEffect)(()=>{let Sn=it.current.instance;Qr.current=yt,Sn&&Nn&&(Sn.updateOptions(kt({},yt)),setTimeout(()=>{Sn.getModel().updateOptions(kt({},yt))},200))},[JSON.stringify(yt),Nn]),(0,Qe.useEffect)(()=>{let Sn=it.current.instance;Sn&&Nn&&Sn.layout()},[ut,We,Nn]);const[zt,xn]=(0,Qe.useState)(tt(ut)),[Fn,$n]=(0,Qe.useState)(tt(We)),gn=Wt(kt({},Xe),{width:zt,height:Fn,position:"relative"});return Qe.createElement("div",{className:"my-monaco-editor",ref:jr,style:gn},en&&Qe.createElement(at.CopyToClipboard,{text:De,onCopy:()=>ct.ZP.success("\u590D\u5236\u6210\u529F")},Qe.createElement(pt.Z,{title:"\u590D\u5236\u4EE3\u7801"},Qe.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Qe.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Ve({width:He="100%",height:nt="100%",original:ut,modified:We,language:De,options:Ie={}}){const Xe=(0,Qe.useRef)(),[yt,Ye]=(0,Qe.useState)(null);function jt(Ut){let tn;return Xe.current&&(tn=new Tt.Z(ln=>{for(let mn of ln)(mn.target.offsetHeight>0||mn.target.offsetWidth>0)&&Ut.layout()}),tn.observe(Xe.current)),tn}(0,Qe.useEffect)(()=>(Xe.current&&Promise.all([Ge.e(8909),Ge.e(9404)]).then(Ge.bind(Ge,2550)).then(Ut=>{dt=Ut;const tn=dt.editor.createDiffEditor(Xe.current,Wt(kt({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},Ie),{wordWrap:!0}));Ye(tn);let ln=jt(tn);return()=>{tn.dispose();const mn=tn.getModel();mn&&mn.dispose(),ln.unobserve(Xe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Qe.useEffect)(()=>{yt&&yt.setModel({original:dt.editor.createModel(ut,De),modified:dt.editor.createModel(We,De)})},[ut,We,De,yt]);const Ht=tt(He),en=tt(nt),It={width:Ht,height:en};return Qe.createElement("div",{className:"my-diff-editor",ref:Xe,style:It})}},16869:function(bn,an,Ge){"use strict";var Qe=Ge(38476),Tt=Ge(57809),oe=Ge(78673),_e=Ge(59301);const Ne=Tt.default.Option;an.Z=({isTheoretical:ve,onFontSizeChange:fe,cmFontSize:be,cmCodeMode:Pe,autoFormat:ye,onCodeModeChange:we,onTabToSpace:me,onAutoFormat:Se,formatDocument:de,className:z="",tabToSpace:ee,children:ae,code_editor:re,challenge:le})=>{const ue={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"};return _e.createElement("div",{className:`tpi-code-setting ${z}`},_e.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),_e.createElement("section",null,_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),_e.createElement(Tt.default,{bordered:!1,size:"small",value:Pe,onChange:we},_e.createElement(Ne,{value:"vs"},"\u767D\u8272\u80CC\u666F"),_e.createElement(Ne,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!ve&&_e.createElement(_e.Fragment,null,_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),_e.createElement(Tt.default,{bordered:!1,size:"small",value:be,onChange:fe},_e.createElement(Ne,{value:12},"12px"),_e.createElement(Ne,{value:14},"14px"),_e.createElement(Ne,{value:16},"16px"),_e.createElement(Ne,{value:18},"18px"),_e.createElement(Ne,{value:20},"20px"),_e.createElement(Ne,{value:22},"22px"))),_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"Tab\u8F6C\u6362"),_e.createElement(oe.Z,{checked:ee,onChange:me})),_e.createElement("div",{className:"file-item",onClick:de},_e.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!ve&&_e.createElement(_e.Fragment,null,_e.createElement("h3",null,"\u5FEB\u6377\u952E"),_e.createElement("section",null,_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),_e.createElement("span",null,"Ctrl + S")),_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),_e.createElement("span",null,"F1 / Alt + F1")),_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),_e.createElement("span",null,"Ctrl + ]/[")),_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),_e.createElement("span",null,"Ctrl + Shift + \\")),_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),_e.createElement("span",null,"Home")),_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),_e.createElement("span",null,"End"))),ae),!ve&&_e.createElement(_e.Fragment,null,_e.createElement("h3",null,"\u5FEB\u6377\u952E"),_e.createElement("section",null,_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),_e.createElement("span",null,ue[le==null?void 0:le.difficulty])),_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),_e.createElement("span",null,re==null?void 0:re.name)),_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),_e.createElement("span",null,re!=null&&re.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},85057:function(bn,an,Ge){"use strict";Ge.d(an,{jL:function(){return Ne},w9:function(){return mt},QD:function(){return ln},cQ:function(){return at},op:function(){return jt},O5:function(){return vr},_b:function(){return xr},t7:function(){return re},Gi:function(){return St},YG:function(){return Wt},qp:function(){return we},vr:function(){return Vn},qE:function(){return It},Je:function(){return pe},wb:function(){return ot},cq:function(){return dt},tp:function(){return de}});var Qe=Ge(59301),Tt={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"},oe="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==",Ne=({dataSource:zn=[],img:Nn,imgWidth:$t=346,title:Xt,sunTitle:Lt,bannerExtraContent:nn})=>Qe.createElement("div",{className:Tt.banner},Qe.createElement("div",{className:Tt.content},Qe.createElement("aside",null,Qe.createElement("p",null,Qe.createElement("b",null,Xt),Qe.createElement("span",null,Lt)),zn.length>0&&Qe.createElement("div",{className:Tt.btns},zn.map((pn,Vt)=>Qe.createElement("div",{key:Vt,onClick:pn.click},pn.name,pn.sign?Qe.createElement("img",{src:oe,width:39}):null))),nn),Nn&&Qe.createElement("img",{style:{marginTop:33,marginRight:38},src:Nn,width:$t}))),ve={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"},fe=Ge(92310),be=Ge.n(fe),Pe=Ge(89392),we=({dataSource:zn=[],value:Nn,onChange:$t,onTitleChange:Xt,className:Lt,title:nn,titleWidth:pn=41,style:Vt={},fontColor:Rt="#6A7283",showCount:rn})=>{const[yn,Mn]=(0,Qe.useState)(0),[On,zt]=(0,Qe.useState)(!1),xn=(0,Qe.useRef)(null),Fn=(0,Qe.useRef)(null);return(0,Qe.useEffect)(()=>{var $n;zn.length!==0&&((($n=xn==null?void 0:xn.current)==null?void 0:$n.clientHeight)>97?Mn(1):Mn(0)),zn.length===0&&Mn(0),zt(!1)},[zn]),Qe.createElement("div",{className:be()(ve.row,Lt),style:Vt},Qe.createElement("div",{onClick:(0,Pe.throttle)(()=>Xt==null?void 0:Xt(),2e3),style:{width:pn,marginTop:On?12:4},className:`${ve.title} ${Xt?"current":""}`},nn),Qe.createElement("div",{className:On?`${ve.tagsWrap} ${ve.tagsBorderWrap}`:ve.tagsWrap},Qe.createElement("div",{className:ve.bar,ref:Fn,style:yn>0?{height:yn===1?97:"auto",overflow:yn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},Qe.createElement("div",{className:ve.tag,ref:xn},zn==null?void 0:zn.map($n=>Qe.createElement("span",{onClick:()=>$t($n.id),key:$n.id,style:{color:Rt},className:Nn===$n.id?ve.active:""},Qe.createElement("span",{title:$n.name,className:ve.name},$n.name),!!rn&&Qe.createElement("span",{className:ve.num},$n.count))))),!!yn&&Qe.createElement(Qe.Fragment,null,yn===1?Qe.createElement("div",{onClick:()=>{var $n;Mn(2),(($n=xn==null?void 0:xn.current)==null?void 0:$n.clientHeight)>245?zt(!0):zt(!1)},className:ve.action},"\u5C55\u5F00",Qe.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):Qe.createElement("div",{onClick:()=>{Fn.current.scrollTop=0,Mn(1),zt(!1)},className:ve.action},"\u6536\u8D77",Qe.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},me={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"},de=({dataSource:zn=[],value:Nn,onChange:$t,className:Xt,style:Lt={}})=>Qe.createElement("div",{style:Lt,className:be()(me.tabs,Xt)},zn.map(nn=>Qe.createElement("span",{onClick:()=>$t(nn.id),className:Nn===nn.id?me.active:"",key:nn.id},nn.name))),z={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=Ge(92832),re=({dataSource:zn=[],value:Nn="",onChange:$t,onInputChange:Xt=()=>{},className:Lt,style:nn={},placeholder:pn,allowClear:Vt=!1})=>{var Rt;const[rn,yn]=(0,Qe.useState)(""),[Mn,On]=(0,Qe.useState)("");(0,Qe.useEffect)(()=>{var Fn;let $n=Nn;(Fn=JSON.stringify(Nn))!=null&&Fn.includes("{")&&(yn(Nn.id),$n=Nn.value||"");try{On(decodeURIComponent($n||""))}catch(gn){On(decodeURIComponent($n||""))}},[Nn]);const zt=()=>{$t(encodeURIComponent(Mn),rn||null)},xn=Fn=>{Fn!==rn&&(yn(Fn),$t(encodeURIComponent(Mn),Fn))};return Qe.createElement("div",{className:be()(z.input,Lt),style:nn},!!zn.length&&Qe.createElement("div",{className:z.dropdown},Qe.createElement("div",{className:z.text},(Rt=zn.find(Fn=>Fn.id===rn))==null?void 0:Rt.name,Qe.createElement("i",{className:"iconfont icon-zhankai4"}),Qe.createElement("b",{className:z.b1}),Qe.createElement("b",{className:z.b2})),Qe.createElement("div",{className:z.menu},zn.map((Fn,$n)=>Qe.createElement("div",{key:$n,onClick:()=>xn(Fn.id)},Fn.name)))),Qe.createElement(ee.default,{onPressEnter:zt,value:Mn,onChange:Fn=>{On(Fn.target.value),Xt(encodeURIComponent(Fn.target.value),rn||null)},bordered:!1,placeholder:pn}),Qe.createElement("i",{onClick:zt,className:"iconfont icon-sousuo9 font14 pl10 current"}))},le={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"},pe=({value:zn,onChange:Nn,className:$t,total:Xt,pageSize:Lt,style:nn={}})=>{const pn=zn<2,Vt=zn>=Math.ceil(Xt/Lt);return Xt<=Lt?Qe.createElement(Qe.Fragment,null):Qe.createElement("div",{className:be()(le.quickPager,$t),style:nn},Qe.createElement("div",{onClick:()=>{pn||Nn(zn-1,"prev")},className:pn?le.disabled:""},"\u4E0A\u4E00\u9875"),Qe.createElement("div",{onClick:()=>{Vt||Nn(zn+1,"next")},className:Vt?le.disabled:""},"\u4E0B\u4E00\u9875"))},Ee={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"},Ce=Ge(71418),je=Ge(6848),Le=Ge(13570),ke=Ge(3294),Oe=Ge(955),Fe=Ge(96908),Re=Ge(57177),Ze=Ge(81378),ze=Ge(8797),ot=({className:zn,dataSource:Nn=[],col:$t=4,right:Xt,bottom:Lt=23,precision:nn=0,wrapWidth:pn=1200,trackEventItems:Vt,loading:Rt})=>{const rn=Math.floor((pn-($t-1)*Xt)/$t);return Qe.createElement(Ce.Z,{spinning:Rt},Qe.createElement("div",{className:be()(Ee.list,zn)},!!Nn.length&&Nn.map((yn,Mn)=>{const{name:On,id:zt,identifier:xn,power:Fn,cover_image_id:$n,pic:gn}=yn;return Qe.createElement("div",{className:Ee.wrap,key:zt,style:{width:rn,marginRight:(1+Mn)%$t===0?0:Xt+nn,marginBottom:Lt}},Qe.createElement("a",{target:"_blank",href:`/shixuns/${xn}/challenges`,className:Ee.li,onClick:Sn=>{Sn.preventDefault(),Vt&&(0,Oe.L9)([Vt]),Fn&&(0,Oe.xg)(`/shixuns/${xn}/challenges`)}},Qe.createElement("div",{className:Ee.img},Qe.createElement("img",{className:Ee.cover,src:`${gn}`}),yn.is_jupyter&&Qe.createElement("img",{className:Ee.sign,src:Fe}),yn.is_jupyter_lab&&Qe.createElement("img",{className:Ee.sign,src:Re}),yn.is_unity_3d&&Qe.createElement("img",{className:Ee.sign,src:Ze})),Qe.createElement("div",{className:Ee.name},Qe.createElement(je.Z,{title:On||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Qe.createElement("span",{className:Ee.e},On||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Qe.createElement("div",{className:Ee.tags},Qe.createElement(je.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Qe.createElement("span",null,Qe.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Qe.createElement("span",null,yn.challenges_count))),!!yn.myshixuns_count&&Qe.createElement(je.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Qe.createElement("span",null,Qe.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),Qe.createElement("span",null,yn.myshixuns_count))),Qe.createElement(je.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Qe.createElement("span",null,Qe.createElement("span",null,yn.level))),Qe.createElement("div",{className:Ee.rate},Qe.createElement(Le.Z,{allowHalf:!0,disabled:!0,defaultValue:yn.score_info}),Qe.createElement("span",null,"\xA0",yn.score_info?`${yn.score_info}\u5206`:"5\u5206")))),!Fn&&Qe.createElement("div",{className:Ee.lockWrap},Qe.createElement("img",{src:`${ke.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Qe.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Nn.length&&Qe.createElement(ze.Z,null)))},ct={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"},pt=Ge(24065),bt=Ge(59301),at=({className:zn,dataSource:Nn=[],col:$t=4,right:Xt,bottom:Lt=23,precision:nn=0,wrapWidth:pn=1200,trackEventItems:Vt,loading:Rt,onRemove:rn=()=>{},isCurrent:yn=!0,showAlias:Mn=!1})=>{const On=Math.floor((pn-($t-1)*Xt)/$t),zt=[{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 bt.createElement(Ce.Z,{spinning:Rt},bt.createElement("div",{className:be()(ct.list,zn)},!!(Nn!=null&&Nn.length)&&(Nn==null?void 0:Nn.map((xn,Fn)=>{var $n;const{name:gn,id:Sn,identifier:Qt,featured:hn,school_name:dn,image_url:cn,excellent:Pn,is_plan:Cn}=xn;return bt.createElement("div",{key:Sn,className:ct.wrap,style:{width:On,marginRight:(1+Fn)%$t===0?0:Xt+nn,marginBottom:Lt}},bt.createElement("a",{className:ct.li,onClick:Dn=>{Dn.preventDefault(),Dn.stopPropagation(),Vt&&(0,Oe.L9)([Vt]),(0,Oe.xg)(`/paths/${Qt}`)}},bt.createElement("div",{className:ct.img},bt.createElement("img",{className:ct.cover,src:`${cn}`}),yn&&(0,pt.bg)()&&(xn==null?void 0:xn.studying)&&bt.createElement("div",{className:`${ct.movebq} user-path-items`,onClick:Dn=>{Dn.stopPropagation(),rn(xn)}},bt.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),bt.createElement("span",{className:"c-red"},"\u79FB\u9664")),($n=xn==null?void 0:xn.subject_tags)==null?void 0:$n.map((Dn,In)=>{var tr,un;if(In===0){const wr=(tr=zt.find(Or=>Or.name==Dn))==null?void 0:tr.swimg;return bt.createElement("img",{className:ct.sign,src:wr,style:{left:"-4px"}})}const fr=(un=zt.find(wr=>wr.name==Dn))==null?void 0:un.ptimg;return bt.createElement("img",{className:ct.sign,src:fr,style:{left:`${48+52*(In-1)+2*In}px`}})}),bt.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(xn==null?void 0:xn.excellent)&&bt.createElement("div",{className:ct.bq},"\u5F00\u653E\u8BFE\u7A0B"))),bt.createElement("div",{className:ct.name},bt.createElement(je.Z,{title:Mn&&(xn!=null&&xn.excellent_alias_name)?bt.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${gn}`,bt.createElement("br",null),bt.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${xn==null?void 0:xn.excellent_alias_name}`)):gn},bt.createElement("span",{className:ct.e},Mn&&(xn==null?void 0:xn.excellent_alias_name)||gn))),bt.createElement(je.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${dn}`},bt.createElement("div",{className:ct.unit},bt.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),dn)),bt.createElement("div",{className:ct.tags},bt.createElement("div",null,bt.createElement(je.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},bt.createElement("span",null,bt.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),bt.createElement("span",null,xn.stages_count))),bt.createElement(je.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},bt.createElement("span",null,bt.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),bt.createElement("span",null,xn.members_count)))))))})),!Nn.length&&bt.createElement(ze.Z,null)))},gt={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"},Ct="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=Ge(59301),mt=({className:zn,dataSource:Nn=[],col:$t=4,right:Xt,bottom:Lt=23,precision:nn=0,wrapWidth:pn=1200,trackEventItems:Vt,loading:Rt,handleVery:rn=()=>!0})=>{const yn=Math.floor((pn-($t-1)*Xt)/$t);return wt.createElement(Ce.Z,{spinning:Rt},wt.createElement("div",{className:be()(gt.list,zn)},!!Nn.length&&Nn.map((Mn,On)=>{const{subject_identifier:zt,id:xn,identifier:Fn,power:$n}=Mn,gn=Mn.is_public!=0&&Mn.is_public;return wt.createElement("div",{className:gt.wrap,key:xn,style:{width:yn,marginRight:(1+On)%$t===0?0:Xt+nn,marginBottom:Lt}},wt.createElement("a",{className:gt.li,onClick:Sn=>{Sn.preventDefault(),rn(Mn==null?void 0:Mn.first_category_url)&&(Vt&&(0,Oe.L9)([Vt]),(0,Oe.xg)(Mn.first_category_url))}},wt.createElement("div",{className:gt.top},wt.createElement(je.Z,{title:Mn.name},wt.createElement("div",{className:gt.name},Mn.name)),wt.createElement("img",{className:gt.img,src:ke.Z.IMG_SERVER+"/images/"+Mn.avatar_url}),wt.createElement("div",{className:gt.text,title:Mn.creator},Mn.creator),zt&&wt.createElement("div",{className:gt.btns},wt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),wt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),gn&&wt.createElement("div",{className:gt.sign},"\u516C\u5F00")),wt.createElement("div",{className:gt.bottom},Mn.visits>0&&wt.createElement(je.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},wt.createElement("span",null,wt.createElement("i",{className:"iconfont icon-liulanyan"}),wt.createElement("span",null,Mn.visits))),Mn.course_members_count>0&&wt.createElement(je.Z,{title:"\u6210\u5458",placement:"bottom"},wt.createElement("span",null,wt.createElement("i",{className:"iconfont icon-chengyuan"}),Mn.course_members_count)),Mn.tasks_count>0&&wt.createElement(je.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},wt.createElement("span",null,wt.createElement("i",{className:"iconfont icon-zuoye"}),Mn.tasks_count)),Mn.is_end?wt.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):wt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Mn.is_accessible&&wt.createElement("div",{className:gt.lockWrap},wt.createElement("img",{src:`${ke.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")))}),!Nn.length&&wt.createElement(ze.Z,null)))},xt={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"},At=Ge(89070),Wt=({dataSource:zn=[],value:Nn,onChange:$t,className:Xt,style:Lt={},tabBarExtraContent:nn})=>Qe.createElement("div",{className:be()(xt.tabs,Xt),style:Lt},Qe.createElement("div",{className:xt.tabsWrap},zn.map((pn,Vt)=>!(pn!=null&&pn.hide)&&Qe.createElement("aside",{className:xt.tab,onClick:()=>{$t(pn.id),pn.link&&At.history.push(pn.link)},key:Vt},Qe.createElement("div",{className:Nn===pn.id?xt.active:""},pn.name),(pn==null?void 0:pn.resetCount)==null&&(pn==null?void 0:pn.total)!==void 0&&Qe.createElement("span",null,"\uFF08",pn==null?void 0:pn.total,"\uFF09"),(pn==null?void 0:pn.resetCount)!==void 0&&(pn==null?void 0:pn.total)!==void 0&&Qe.createElement(je.Z,{title:(pn==null?void 0:pn.tip)!=null?pn==null?void 0:pn.tip:""},Qe.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Qe.createElement("span",{style:{color:"#000"}},pn==null?void 0:pn.resetCount),"/",Qe.createElement("span",null,pn==null?void 0:pn.total),"\uFF09"))))),Qe.createElement("div",{className:xt.tabBar},nn)),St=({className:zn,style:Nn={},children:$t})=>Qe.createElement("div",{className:be()(zn),style:Nn},$t),tt={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"},ft=Ge(38854),$e=Ge(20834);const lt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var dt=({sortValue:zn,dropValue:Nn,className:$t,onSort:Xt,onDrop:Lt,dataSource:nn=lt})=>{var pn;return Qe.createElement("div",{className:be()(tt.orderWrap,$t)},Qe.createElement(ft.Z,{dropdownRender:()=>Qe.createElement($e.default,null,nn.map((Vt,Rt)=>Qe.createElement($e.default.Item,{key:Rt,onClick:()=>Lt(Vt.id)},Vt.name)))},Qe.createElement("span",{className:tt.orderTextWrap},(pn=nn.find(Vt=>Nn===Vt.id))==null?void 0:pn.name)),Qe.createElement("span",{className:tt.orderIconWrap},Qe.createElement("span",{className:tt.orderAsc},Qe.createElement("i",{className:zn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${tt.cursorPointer} ${tt.active}`:`iconfont icon-sanjiaoxing-up font12 ${tt.cursorPointer}`,onClick:()=>Xt(zn==="asc"?"desc":"asc")})),Qe.createElement("span",{className:tt.orderDesc},Qe.createElement("i",{className:zn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${tt.cursorPointer} ${tt.active}`:`iconfont icon-sanjiaoxing-down font12 ${tt.cursorPointer}`,onClick:()=>Xt(zn==="asc"?"desc":"asc")}))))},et={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"},Ve=Ge(3113),He=Object.defineProperty,nt=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,De=(zn,Nn,$t)=>Nn in zn?He(zn,Nn,{enumerable:!0,configurable:!0,writable:!0,value:$t}):zn[Nn]=$t,Ie=(zn,Nn)=>{for(var $t in Nn||(Nn={}))ut.call(Nn,$t)&&De(zn,$t,Nn[$t]);if(nt)for(var $t of nt(Nn))We.call(Nn,$t)&&De(zn,$t,Nn[$t]);return zn},Xe=(zn,Nn)=>{var $t={};for(var Xt in zn)ut.call(zn,Xt)&&Nn.indexOf(Xt)<0&&($t[Xt]=zn[Xt]);if(zn!=null&&nt)for(var Xt of nt(zn))Nn.indexOf(Xt)<0&&We.call(zn,Xt)&&($t[Xt]=zn[Xt]);return $t},yt=(zn,Nn,$t)=>new Promise((Xt,Lt)=>{var nn=Rt=>{try{Vt($t.next(Rt))}catch(rn){Lt(rn)}},pn=Rt=>{try{Vt($t.throw(Rt))}catch(rn){Lt(rn)}},Vt=Rt=>Rt.done?Xt(Rt.value):Promise.resolve(Rt.value).then(nn,pn);Vt(($t=$t.apply(zn,Nn)).next())}),jt=zn=>{var Nn=zn,{className:$t,style:Xt,children:Lt,loading:nn=!1,openLoading:pn,onClick:Vt=()=>{},size:Rt="middle",shape:rn="round"}=Nn,yn=Xe(Nn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Mn,On]=(0,Qe.useState)(!1);return Qe.createElement(Ve.ZP,Ie({onClick:(0,Pe.throttle)(zt=>yt(void 0,null,function*(){pn&&On(!0);try{yield Vt(zt)}catch(xn){console.log("error",xn)}pn&&On(!1)}),2e3,{leading:!0,trailing:!1}),className:be()(et.btn,et[`${Rt}-${rn}`],$t),style:Xt,size:Rt,shape:rn,loading:Mn||nn},yn),Lt)},Ht={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"},It=({className:zn,style:Nn,children:$t=null,onClick:Xt,title:Lt})=>Qe.createElement("div",{className:be()(Ht.head,zn),style:Nn},Qe.createElement("span",{className:"primary-hover",onClick:Xt},Qe.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),Qe.createElement("b",{title:Lt},Lt),Qe.createElement("div",{className:Ht.node},$t)),Ut={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"},ln=({confirmShow:zn=!0,confirmTitle:Nn,confirmClick:$t,cancelShow:Xt=!0,cancelTitle:Lt,cancelClick:nn,className:pn,style:Vt,confirmLoading:Rt=!1})=>Qe.createElement("div",{className:be()(Ut.btns,pn),style:Vt},zn&&Qe.createElement(Ve.ZP,{loading:Rt,onClick:$t,type:"primary",className:Ut.confirm},Nn),Xt&&Qe.createElement(Ve.ZP,{onClick:nn,className:Ut.cancel},Lt)),mn={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"},Vn=({className:zn,style:Nn={},LeftContent:$t,children:Xt,RightContent:Lt})=>Qe.createElement("div",{className:be()(mn.fixedBottom,zn),style:Nn},Qe.createElement("div",{className:mn.wrap},Qe.createElement("div",{className:mn.left},$t),Qe.createElement("div",{className:mn.center},Xt),Qe.createElement("div",{className:mn.right},Lt))),Kn={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"},xr=({className:zn,style:Nn={},dataSource:$t=[]})=>Qe.createElement("div",{className:be()(Kn.crumbs,zn),style:Nn},$t.map((Xt,Lt)=>Lt<$t.length-1?Qe.createElement(Qe.Fragment,{key:Lt},Xt.path||Xt.onClick?Qe.createElement("span",{className:Kn.hover,onClick:Xt!=null&&Xt.onClick?Xt.onClick:()=>At.history.push(Xt.path)},Xt.name):Qe.createElement("span",null,Xt.name),Qe.createElement("span",null,"\xA0",">","\xA0")):Qe.createElement("span",{key:Lt,style:{color:"#5F6368"}},Xt.name))),gr=Ge(31797),dr=Object.defineProperty,Tr=Object.defineProperties,Rr=Object.getOwnPropertyDescriptors,Zr=Object.getOwnPropertySymbols,ei=Object.prototype.hasOwnProperty,jr=Object.prototype.propertyIsEnumerable,it=(zn,Nn,$t)=>Nn in zn?dr(zn,Nn,{enumerable:!0,configurable:!0,writable:!0,value:$t}):zn[Nn]=$t,Qr=(zn,Nn)=>{for(var $t in Nn||(Nn={}))ei.call(Nn,$t)&&it(zn,$t,Nn[$t]);if(Zr)for(var $t of Zr(Nn))jr.call(Nn,$t)&&it(zn,$t,Nn[$t]);return zn},$r=(zn,Nn)=>Tr(zn,Rr(Nn)),En=(zn,Nn)=>{var $t={};for(var Xt in zn)ei.call(zn,Xt)&&Nn.indexOf(Xt)<0&&($t[Xt]=zn[Xt]);if(zn!=null&&Zr)for(var Xt of Zr(zn))Nn.indexOf(Xt)<0&&jr.call(zn,Xt)&&($t[Xt]=zn[Xt]);return $t};const{Countdown:er}=gr.default;var vr=zn=>{var Nn=zn,{onChange:$t}=Nn,Xt=En(Nn,["onChange"]);const[Lt,nn]=(0,Qe.useState)(null);(0,Qe.useEffect)(()=>{typeof Lt=="number"&&Lt>=0&&$t(Lt)},[Lt]);const pn=Vt=>{const Rt=Math.floor(Vt/1e3);nn(Rt)};return Qe.createElement(er,$r(Qr({},Xt),{onChange:pn}))}},58856:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Tt}});var Qe=Ge(59301);function Tt(oe,_e){const Ne=(0,Qe.useRef)();(0,Qe.useEffect)(()=>{Ne.current=oe}),(0,Qe.useEffect)(()=>{function ve(){Ne.current()}if(_e!==null){let fe=setInterval(ve,_e);return()=>clearInterval(fe)}},[_e])}},85816:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Fe}});var Qe=Ge(59301),Tt=Ge(78241),oe=Ge(43428),_e=Ge(43418),Ne=Ge(8591),ve=Ge(24905),fe=Ge(23954),be=Ge(16869),Pe=Ge(79346),ye=Ge(16479),we={"code-panel-container":"code-panel-container___RFtv_","action-oj-bar":"action-oj-bar___ByFmZ",active:"active___s9gT5",tip:"tip___XZhl7"},me="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAcCAYAAAAJKR1YAAAAAXNSR0IArs4c6QAAA8pJREFUWEfdl1toHUUYx//f7p7LbnIuSU4bk2JqS3qxbTA9FsQXBamJNMVS8CEPAfGhakQFUaHQh2Kp4IPgBfTBBx9UUHyQGgslscGCIr2QHlpfWg1pktPW0rTunvttdqadTY85yUmTTXJSwe9pZ3dm/r/5f8PMtzQYs96FwEEI0Yj/KojGVUV5Y3dn8DgNnrduV8IQAWtCXty0iggYGmybI1vgiIS8MFNF2Hx1qInoRFc0vIcGR0xRKaEqQGuTH/GpPBqDHjDGkczaWBfxOZAlNqt77eiIznZHw09UAWkqIaCrEKDaiVXNJJDMMPDKtc0HJBE624PwaMoqwkxPnciUcDmemdGZD8irETrbQ6sOIwVKjCM2mvyfAp25VsTjLV7Ml9kEB0gAQXVho2vm0MCfOXwxksbeTTpe3VU/S5UBOJ6afvWMsTBUTYDKMA/Vq/hgdxgRvXrzT5SA03nAtwjUioHcwJTtcgO1IqClwLiFWjYQ48BbQyaumAz7thg4EK1zdSwUBPBzFkhz4DEv8KjMYUUsG0jOkSoIHPrFwpjJ0LujDn0dxoJQEuZUFjA5sN0HdHiru68IaClQbmBqdjBWOtXXUYfeHbOdkvfu8Bxn4qyAj1Pj2KgZ6NEjeETTHbtW7FDZdAl19NcEXuysx7aIVpWLWB7OgVlOk31X/JD1F+IsBxWE/kAbnvSFage02I5mEBhjOWzWZtyT7cPWKDgEfKTgw4atCHDlwdxl54pJfJqcwJFwOzbcS49cxDeZv3EiN+Wsp9dowXPepgcD9GP2Jr7P3kCbpuNoeBPKV9rZYgKfJCccoKf9jXjJ37o4kELT9ZAmy8ZlxnD+H3yZvuqM3m804wWjGb8VLHyVuY4Ml7cdsFdfix6K4NJkekblfhWjz6MgWFe9Wd3ymcTwkTqOcultQEUWcmvPxAF7HYJJDcyuKBkrgBIAgm4F3fQ7bSRwxpDTzh99ZguabM/sj0Qnu6PhZ2loxHpfEN6GEHMOdzfS9+8T01OQYEWq/k1pK/mxP7H238FEZAlQf3c09J1Tyf8eF3ohm1r0kmJ58R5n/DW3qNwvXvmh3hzLodBqonREAOvLY0PQ3nw5//C3sh3YHEjsIirJZ9e/FsPnc+sZCpeX5CTRaNPO0DYptmfy4lMATkEIR5MASzV8bQNrtt4r6aZRXQMNxcyvBUefW3fK/UhRXu/aGfpMtnsmL3wuBPodYcJ1TyC4/VjDBqtyTldAJ/9IN/MiOyYISz4PCOJGV7RhnxR9fupSwM4VBwBMKJrvnZ9at9yau8A7ulgdO7eZq+0AAAAASUVORK5CYII=",Se=Ge(89392),de=Ge(85057),z=Ge(59301),ee=Object.defineProperty,ae=Object.defineProperties,re=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,Ee=(Ze,ze,Ke)=>ze in Ze?ee(Ze,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ze[ze]=Ke,Ce=(Ze,ze)=>{for(var Ke in ze||(ze={}))ue.call(ze,Ke)&&Ee(Ze,Ke,ze[Ke]);if(le)for(var Ke of le(ze))pe.call(ze,Ke)&&Ee(Ze,Ke,ze[Ke]);return Ze},je=(Ze,ze)=>ae(Ze,re(ze));const Le={theme:(0,ye.G)("cmCodeMode","vs-dark"),fontSize:(0,ye.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,ye.G)("cmTabToSpace",!0)};var ke=(Ze=>(Ze[Ze.set_font_size=0]="set_font_size",Ze[Ze.set_theme=1]="set_theme",Ze[Ze.on_tab_to_space=2]="on_tab_to_space",Ze[Ze.set_show_editor_setting=3]="set_show_editor_setting",Ze))(ke||{});function Oe(Ze,ze){switch(ze.type){case 3:return je(Ce({},Ze),{showEditorSetting:ze.payload});case 1:return je(Ce({},Ze),{theme:ze.payload});case 0:return je(Ce({},Ze),{fontSize:ze.payload});case 2:return je(Ce({},Ze),{tabToSpace:ze.payload});default:throw new Error}}var Fe=({isLoading:Ze,value:ze=[],onChange:Ke,form:ot})=>{var ct;const[pt,bt]=(0,Qe.useReducer)(Oe,Le),{theme:qe,fontSize:at,showEditorSetting:gt,tabToSpace:Ct}=pt,[wt,vt]=(0,Qe.useState)("C"),[mt,xt]=(0,Qe.useState)(!1),[At,kt]=(0,Qe.useState)([]),Wt=(0,Qe.useRef)([]),Et=Tt.default.useWatch(["hack","languages"],ot);(0,Qe.useEffect)(()=>{ze!=null&&ze.length&&(Wt.current=(0,Se.cloneDeep)(ze))},[ze]),(0,Qe.useEffect)(()=>{mt&&kt(Et)},[mt]),(0,Qe.useEffect)(()=>{vt(Et==null?void 0:Et[0])},[Et]);const St={onFontSizeChange:dt=>{bt({type:0,payload:dt}),(0,ye.t)("cmFontSize",dt)},tabToSpace:Ct,cmFontSize:at,className:"oj",cmCodeMode:qe,onTabToSpace:dt=>{bt({type:2,payload:dt}),(0,ye.t)("cmTabToSpace",dt)},onCodeModeChange:dt=>{bt({type:1,payload:dt}),(0,ye.t)("cmCodeMode",dt)}};function tt(){bt({type:3,payload:!1})}function ft(){bt({type:3,payload:!0})}function $e(dt){var et;const Ve=(et=Wt.current)==null?void 0:et.map(He=>(He.language===wt&&(He.code=dt),He));Wt.current=(0,Se.cloneDeep)(Ve),Ke(Ve)}const lt={key:wt,value:(ct=ze==null?void 0:ze.find(dt=>dt.language===wt))==null?void 0:ct.code,language:wt,onChange:$e,theme:"vs",height:"calc(100% - 40px)",options:{fontSize:at,insertSpaces:Ct}};console.log(888,ze,Et);const Pt=ze.filter(dt=>Et==null?void 0:Et.includes(dt.language));return z.createElement(Qe.Fragment,null,z.createElement("div",{className:we["code-panel-container"]},z.createElement(Re,{setVisible:xt,languageItems:Pt,onLanguage:dt=>vt(dt),language:wt,onShowCodeSetting:ft}),!Ze&&z.createElement(fe.ZP,Ce({},lt))),z.createElement(Pe.Z,null,z.createElement(oe.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:gt,onClose:tt},z.createElement(be.Z,Ce({},St)))),z.createElement(_e.default,{centered:!0,open:mt,title:"\u7F16\u7A0B\u8BED\u8A00\u914D\u7F6E",width:564,onOk:()=>{if(!At.length){Ne.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}ot.setFieldValue(["hack","languages"],At),xt(!1)},onCancel:()=>xt(!1)},z.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},z.createElement(ve.default.Group,{value:At,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:dt=>{kt(dt)}}))))};function Re({languageItems:Ze,language:ze,onShowCodeSetting:Ke,onLanguage:ot,setVisible:ct}){return z.createElement("div",{className:we["action-oj-bar"]},Ze==null?void 0:Ze.map(pt=>z.createElement("aside",{className:ze===(pt==null?void 0:pt.language)?we.active:"",onClick:()=>ot(pt==null?void 0:pt.language),key:pt==null?void 0:pt.language},z.createElement("i",{className:"iconfont icon-bianchengyuyan1"}),z.createElement("span",null,pt==null?void 0:pt.language))),z.createElement("div",{className:we.tip},z.createElement("i",{className:"iconfont icon-tishi12 font14",style:{color:"#FEB636",marginRight:3}}),z.createElement("span",null,"\u8BBE\u7F6E\u521D\u59CB\u4EE3\u7801\uFF0C\u4E3A\u5B66\u751F\u63D0\u4F9B\u660E\u786E\u7F16\u8BD1\u8D77\u70B9")),z.createElement(de.op,{onClick:()=>ct(!0),shape:"default"},z.createElement("img",{src:me,width:18,style:{marginRight:8}}),"\u7F16\u7A0B\u8BED\u8A00\u914D\u7F6E"))}},80525:function(bn,an,Ge){"use strict";Ge.d(an,{GM:function(){return be},MK:function(){return fe},PR:function(){return Tt},ZS:function(){return ye},d1:function(){return oe},fu:function(){return _e},j2:function(){return Pe},l_:function(){return Ne},uE:function(){return we},zQ:function(){return ve}});var Qe=Ge(99064);function Tt(){return(0,Qe.U2)("problems/new.json")}function oe(Se="question"){return(0,Qe.U2)("disciplines.json",{source:Se})}function _e(Se){return(0,Qe.U2)(`problems/${Se}/edit.json`)}function Ne(Se,de){return(0,Qe.gz)(`problems/${Se}.json`,de)}function ve(Se){return(0,Qe.v_)("problems.json",Se)}function fe(Se,de){return(0,Qe.v_)(`exercises/${Se}/exercise_questions.json`,de)}function be(Se,de){return(0,Qe.gz)(`exercise_questions/${Se}.json`,de)}function Pe(Se){return(0,Qe.v_)(`problems/${Se}/publish.json`)}function ye(Se){return(0,Qe.v_)(`problems/${Se}/cancel_publish.json`)}function we(Se){return(0,Qe.U2)(`problems/${Se}/start.json`)}function me(Se,de){return post("tag_disciplines.json",{name:de,sub_discipline_id:Se})}},83685:function(bn,an,Ge){"use strict";Ge.d(an,{D0:function(){return fe},R8:function(){return _e},jw:function(){return ve},y3:function(){return be}});var Qe=Ge(57809),Tt=Ge(59301);const{Option:oe}=Qe.default;var _e=(Pe=>(Pe[Pe.language=0]="language",Pe[Pe.difficult=1]="difficult",Pe[Pe.category=2]="category",Pe[Pe.openOrNot=3]="openOrNot",Pe))(_e||{});const Ne={0:[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],1:[{title:"\u7B80\u5355",key:1},{title:"\u4E2D\u7B49",key:2},{title:"\u56F0\u96BE",key:3}],2:[{title:"\u7A0B\u5E8F\u8BBE\u8BA1",key:1},{title:"\u7B97\u6CD5",key:2}],3:[{title:"\u516C\u5F00",key:1},{title:"\u79C1\u6709",key:0}]};function ve(Pe){return Ne[Pe].map(ye=>Tt.createElement(oe,{key:ye.title,value:ye.key}," ",ye.title," "))}function fe(Pe,ye){Pe.map(we=>{const{id:me,name:Se,sub_disciplines:de}=we;let z={value:me,label:Se};ye.push(z),de&&de.length>0&&(z.children=[],fe(de,z.children))})}function be(Pe,ye){var we;let me=[];for(let Se=0;Se<Pe.length;Se++){const de=Pe[Se];if(((we=de.sub_disciplines)==null?void 0:we.length)>0){me[0]=de.id;for(let z=0;z<de.sub_disciplines.length;z++){const ee=de.sub_disciplines[z];if(ee.id===ye)return me[1]=ee.id,[me,ee.tag_disciplines||ee.sub_disciplines||[]]}}}return[me,[]]}},72161:function(bn,an,Ge){"use strict";Ge.d(an,{Y2:function(){return ct},ZP:function(){return pt}});var Qe=Ge(59301),Tt=Ge(54580),oe=Ge(8591),_e=Ge(43418),Ne=Ge(95237),ve=Ge(5112),fe=Ge(3113),be=Ge(24905),Pe=Ge(6848),ye=Ge(92832),we={wrap:"wrap___MkYbQ",colorBlue:"colorBlue___onjbP",repeatedName:"repeatedName___nbqnE",text:"text___xvutp",greyText:"greyText___dihvZ",noData:"noData___LxOJA",dragger:"dragger___y7F4A",uploadText:"uploadText___Et3KS",btnS:"btnS___k1e6j",testCaseRadio:"testCaseRadio___q1wXT",head:"head___s4Eix",operation:"operation___JCAVh",headProgram:"headProgram___uWA_M",listWrapper:"listWrapper___xW3b4",list:"list___dCbd6",del:"del___abNho",info:"info___J1Wmf"},me="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATEAAADICAYAAACAj9YNAAAAAXNSR0IArs4c6QAAD59JREFUeF7tnet527gShsFUZFeQpJN1GkncyG46iVJBVFG4D6mLKYmSMLgQM4NXf855NrgMvm/8egBC9BD4oIBhBV7++fPlHP6n8PH/p/84Dp8XS7v8txB2N8sext/h7+G/73++3v67YZ08hz54Xhxr86fAy7c/P+ZVHQB1DaYaCz7AbBzfgVsNefPHBGL5GjJCRQUW0PpecRrp0DugJpWsXnsgVk9bRk5QQCm0nq1khhpb0Gcy1fl3IFZHV0YVKDCfa03nWeOgqdoSrODc9Lz1BGgp8qX1AWJputGrgAJz1bXd2VaBiEVDUJ2J5EpvDMTStaNnogJHeFmvuiSrB2gStYRtgZhQMJqnKWD0rCttsfd7AbPSioYQgFgFURnyQwHnW8ZUq4FZqnIr/YBYQTEZ6lKBDreNshQYxvf9v6+He298khUAYsnS0fGeAsBLmBvj+JWnmULNFs2BWLp29LxSYL4qMczXJLa4Se9Nf7aYiY4CsUTh6MbWsUoOsMUUywrExJLRYakAW8cq+UBVJpAViAnEoinV16Y5QFUWJTcQi5KJRtcKUIFtlBOA7KnQQOypRDS42D5yeN8iIdhePlAdiLVISaNzUn01No6rGKsGALHGeWllegCmxCm2lzdGADEluak5DACmzB1AdmEIEFOWn9rCAWDaHDnGA8jOxgAxpTmqIayXt/0vbt9rcOJODIBsFgaIKc7RlqFRgbVUXzA3IANignTppikAM2Z15yCjEjOWr7XDBWC1Fa40fscgA2KVcsrisADMomuLmDsFGRAznrelwj++Rmc6yOdjWYEOL8QCMcsJWyh2AFZISCXD7P976ernuqvFKskxVWEAMFV2lAmms20lECuTNmZH4S6YWeseB94RyICY0xyOWRYH+TEqGW7TCciAmOEczQmdbWSOenb69nA+BsTs5GPRSNlGFpVT72AdVGNATG/6VYuMbWQ1aXUO7BxkQExn2lWN6uVtP1adgMHVKeB5WwnE1KVb3YDYRtbVV+3ojqsxIKY268oHxmF+eU0tjei1GgNilrIwM1a2kZkCWu/utBoDYtYTMzJ+tpGRQnlv5hBkQMx70h7XRxXWidHPl7nb//fy9XkzOy2AmB2vkiPlSkWydD47OqvGgJjPNL1YFVVYByZLlgjEJGrRtrUCPJFs7YDS+R2BjEpMSY7NsDl+9j9fd6XC4kC/lJLOxgFizgzdYDnzudTpMw6fj//3DK4HIRyANoy/w9+wkwCOKmwDYy1P4QRkVGIVk/AMrnH4XniaXQzUqMIKq+5tOCDmzdH89cyVz6fwJRwqrZgqK3/SEFaBRhVWQlr/Y3i4xU8lVihPlVxj2IVxfJ+2nFRhhYz1PoyDagyIZSapEnhdr2I6R9uqEsxUkO5NFQBiTeVvOrlSeDXVhMltKmB9S0klJsw74CUUjOb6FTBejQExQYoBMIFYNLWkgOnvUwKxyFTjoDxSKJqZVMDylhKIPUk5riqY/JkkaKkChreUQOyB2WwfpT8JtDerABAza93dwAGYP09Z0WMFrG4pqcRWfGULyY97jwoAMSeuAzAnRrIMuQJGt5RUYldW8xRSnvv0cKIAELNvJACz7yEryFLA5H0xKrGj5xzkZyU/nZ0oYPFcDIiFEDgHc/ITyDKyFQBi2RK2GYBtZBvdmVWhAuP4VfL2YA0r6L4SYxupIQ2JQY0CBg/3gdjbflSTQASCAq0VAGKtHZDNTxUm04vWHSgAxOyYzGG+Ha+IdFMFzF2z6HY7yWH+pj8YTGZHASBmwSuqMAsuEWMjBYBYI+FF0wIxkVw07kwBa3fFutxOspXs7KeS5YoUAGIiudo0fuFaRRvhmdWEAkBMuU1sJZUbRHjNFQBizS14HABbSeUGEV5zBYBYcwueQowb+so9Iry2CgCxtvo/nJ2tpGJzCE2NAkBMjRW3gQAxxeYQmhoFgJgaK1Yg9u3PjzAO3xWHSGgo0FoBLru2duDR/HzhW7M7xKZEASCmxIjVMHgyqdkdYlOiABBTYgQQ02wEsWlWAIhpdodKTLM7xKZCAd4npsKGu0HwdSPd/hCdAgV4x35bE+YrFNPnUzj87/IzDp9DWPnvbUNmdhTQpQAQ286P+Unj9DnAafrcgmu7cJgJBVwoYO2O2CS6mVfxXEELYLn4kWERShXYhXF8t/Kn21RDbAEuLqgqzXbCcq+AeqCpgxjgcv9DwQLtKqASaGogxm16u5lN5B0qoOgqRnOIAa8OfwBYshcFVFRmzSAGvLzkMetAgdAUZptD7Agv7myR+SjgT4EmMNsUYlRf/rKWFaHAigKbwmwTiAEvEh0FOlRgo8P/6hADYB0mL0tGgZMCG4CsGsSOr4KeLqlyu56URoG+Fai6vawCMaqvvjOW1aPAqgKVqrLiEANgJDAKoMBdBSqArCjEABjJiwIoEKFA0bfHFoMYAIuwjiYogAInBYqBrAjEeO0zmYkCKJCgQBGQZUMMgCVYRxcUQIFiFVkWxNhCkokogALZCmQe9idDDIBlW8cAKIACJwUyQJYEMQBG7qEAChRXIBFkYogdb+L/Kr4ABkQBFECBBJDJIfa2H1EaBVAABaopIASZCGI8iaxmGwOjAAosFJD86bhoiHEORo6hAApspoCgGouCGOdgm1nHRCiAAsInlnEQe9tPB/m8Uof0kiswjO/hb9jNHYeBVzPJFey6R8y28inE2EZ2nUM5i1/9Sgn5lCNph30jtpUPIcY2ssOkKbTkR79BAVkhkXsZ5gnIHkOMbWQvaVJ2neP4df/z9bCFvPMBZGUl9z7ao1+KdyFGFeY9LSqtLwJgp5m5slPJA4/DPqjG7kOMKsxjKtRdU8T5xXUAL1yeruuJo9HvVWOrEKMKc+T8VktJANgUGrm2lUEO5rmTY+sQowpz4PiGS0gE2Hlb+c+fL2EY+D7uhpaZnCoWYvxmNGlvu6AzAXYG2bc/P8I43yPjgwL3FVjJt5tKjMNWMkigQJHXCwMygeK9N42EGG+p6D1R4tZfFGCALE50WoVwfcB/UYmxlSRFohUQXKWIHvPYkDtkUsU6a39VjV1CjAP9zrIhcbkVAXauyMjFRHP66Lasxq4hxlayjxxIX+UGAANk6fZ003ORh2eIsZXsxv70hRZ6EikJgMuwErU6arvIxQ+IUb53lAEJS20AsClKfrkmeNVHl/ODpSXE2Er2Yb58lY0AxhNLuVU99Tidi80Q47ddT9aL11rlKoU0Cp5YShXroP3xlysQ68DrjCWqABgVWYaDnrteQIzzMM9Wp65NFcAAWaqNrvvNOXqoxICYa6eTFrfhVQppfGwtpYr5bT+di50gxqG+X5/lK1MMsHNFxi9eua8eewzj+8ChvkdnM9bU+EmkJHJ2EBK1nLYFYk6NTV2WIYDNxyC8hyzVaT/9ZojxHic/huasxBjAzttKQJbjuv2+M8Q4W7BvZO4KjAKMJ5a5xrvovwNiLnzMWoTKqxTSFbGjkCrmpj0Qc2Nl2kJcAIyKLM18L72oxLw4mbIOA1cppMuiIpMqZr/9BDHuiNn3Ub4ChwCjIpOngYceQMyDi9I1OAbYGWQ8sJJmhdn2QMysdYmBG38SKVk1uwyJWnbbAjG73skj7whgkzhchpWniMUeQMyiaykxdwaw87aSy7Ap2WKqD08nTdmVHKyrqxRSFXhiKVXMVnsgZsuvlGi7BhhPLFNSxlYfIGbLL2m0AGyhGBWZNH1stAdiNnxKi7KDqxRSYQCZVDH97XmLhX6P0iIEYHd146UHaSmltNcOiCl1JissAPZUPkD2VCIrDXa82dWKVbFxdnqVIlaeZTsuw6aopqzP9D6xKSTMVGZMajgATKQcl2FFculsPI7nv3bEl8B1WiSJiieRErWObTnoTxBNU5cFxH6FEL5oio1YhApwDiYU7KM5IEuWrnnHjz/Zxnv2m5uRGQBVWIaAQCxDvLZdF388l++XtbWiwOzTb6QCw3Q5BBAzavvxDPic+BzuGzXyFDbbyWQDuW6RLF3bjsecX0KMc7G2luTPDsjEGlKFiSVT0+G0+/iAGOdiaszJDGSX1X8c3/c/X/PGyAogrvMMn+kzDp/jeqy24mFWhniNu57PgT8gxrlYY09UTa/6QQHVk6pcaRPMYtdxcRjM2UAbP1TOqvTiLBdUVWbL5kEtH2RdQowt5eZmqJ0QiKm1hsDCxU7h5rE8TylJkaMCKreUVGLkZ7h6gHULMaoxsuSgABAjE1QqcH0nEoiptElFUEBMhQ0EcaXATV6u3vJmS0niUImRAyoVWLkLuQ4xtpQq/ds4KCqxjQVnuqcKrObk3e/bUY09FdR7AyDm3WFr67vzjZT7EKMas2Zx6XiBWGlFGS9Hgbv5+PDNB1RjOZqb7wvEzFvoaAEPvhf8GGJUY46yQLwUICaWjA5VFHhy8frpO6j4nloVWywMCsQsuOQ/xqd5+BRik0ZsK/1nysoKnyZPC1W4sd9C9YZzRrxeKg5ibCsbuthsaiDWTHomPioQlYNREJurMUDWW2ZFJdDWolCJba14u/liX7keDTG2le3MbDQzEGskPNNOL7scv8a+nFMGMaqxnvILiPXktqa1Cl8DJYIY20pNTlePBYhVl5gJSjxQEkMMkHWTeECsG6v1LDT2HGwZcRLEjudj/HUkPd7XiASI1VCVMe8rIDgHKwIxQOY+G4GYe4sVLTARYNMKkiuxGWL8hSRFWVA8FCBWXFIGXFVAeJB/PUYWxACZ66QEYq7tVbK4TIBlV2InGajIlCRE2TCAWFk9Ge2mhBrf9/++Hv4IcsYnuxK7Atn3EAJ/VTnDEEVdgZgiM9yFUqACO2lSDGJnmL3teWrpI+OAmA8f9a0i4xB/bTHFITafkwEyfYkjjwiIyTWjx2MFdmEc32O/ThQrZhWIzSDjK0qxHmhtB8S0OmMxroLbx5ujtZp6HA/8OSerKXK9sYFYPW37GrkiwCYhq1ViS5fYXprMWSBm0jZVQVfZPm5aiV2A7HAxlqpMVY49DAaI2fFKX6SVq6/lgjepxC5gxlmZvoRbjwiIWXFKU5wbwuu07M0hNh/6U5VpSrt7sQAxCy5pirEBwDY7E7unMzDTlIE3sQAx1fYoCq4RvJpWYtfyAzNFCfkRChBTaYuioBrDSxXETsEAM0UJGgIQU2WHkmCG8X2KpMR3HkutqMmZWEzwAC1GpaptgFhVeU0NvgvD+FsTuJbqqYXYMkiA1iThgVgT2dVMqhpc5iB2A7T5kcR852z68NaMOnkPxOroqnXUGVrhb9iV/m5j7QWbqMSeiTBXatPnU/gSxuHzSntA90zE238HYnLNWvTYXU26lusfbSZQnT4GgbUm8P/6C+VmwqlgeQAAAABJRU5ErkJggg==",Se=Ge(47257),de=Ge.n(Se),z=Ge(81939),ee=Ge(99064),ae=Ge(1012),re=Ge(955),le=Ge(23210),ue=Ge(59301),pe=Object.defineProperty,Ee=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Oe=(bt,qe,at)=>qe in bt?pe(bt,qe,{enumerable:!0,configurable:!0,writable:!0,value:at}):bt[qe]=at,Fe=(bt,qe)=>{for(var at in qe||(qe={}))Le.call(qe,at)&&Oe(bt,at,qe[at]);if(je)for(var at of je(qe))ke.call(qe,at)&&Oe(bt,at,qe[at]);return bt},Re=(bt,qe)=>Ee(bt,Ce(qe)),Ze=(bt,qe,at)=>new Promise((gt,Ct)=>{var wt=xt=>{try{mt(at.next(xt))}catch(At){Ct(At)}},vt=xt=>{try{mt(at.throw(xt))}catch(At){Ct(At)}},mt=xt=>xt.done?gt(xt.value):Promise.resolve(xt.value).then(wt,vt);mt((at=at.apply(bt,qe)).next())});const{Dragger:ze}=Tt.default,Ke=bt=>{const qe=At=>At&&At.substring(0,At.lastIndexOf("."));for(var at=[...bt],gt=0,Ct=[],wt=0;wt<at.length;wt++){for(var vt="",mt=0;mt<Ct.length;mt++)if(qe(Ct[mt][0].name)==qe(at[wt].name)){gt=1,vt=mt;break}if(gt==1)Ct[vt].push(at[wt]),gt=0;else if(gt==0){let At=new Array;At.push(at[wt]),Ct.push(At)}}return Ct.map(At=>{if(At.forEach(kt=>{let Wt=kt.name.split(/\.(?=[^\.]+$)/);kt.name=`${Wt[0]}.${Wt[1].toLowerCase()}`}),At[0].name.includes(".in"))return At.length===2?At:[At[0],{}];if(At[0].name.includes(".out"))return At.length===2?At.reverse():[{},At[0]]})},ot=({onClose:bt,onOK:qe,visible:at,wrapClassName:gt,rootIdentifier:Ct,multiple:wt=!1,defaultMultipleValue:vt=!0})=>{const[mt,xt]=(0,Qe.useState)([]),[At,kt]=(0,Qe.useState)({}),[Wt,Et]=(0,Qe.useState)(!1),[St,tt]=(0,Qe.useState)(!0),ft=(0,Qe.useRef)([]),$e=(0,Qe.useRef)(0),lt=()=>{bt()};(0,Qe.useEffect)(()=>{Pt()},[]),(0,Qe.useEffect)(()=>{at&&(ft.current=[],$e.current=0,xt([]),tt(vt))},[at]);const Pt=()=>Ze(void 0,null,function*(){try{const De=yield(0,ee.ZP)("/api/buckets/get_upload_token_for_big_files",{method:"get"}),Ie=JSON.parse((0,z.pe)(De.data));kt(Ie)}catch(De){}}),dt=De=>De&&De.substring(0,De.lastIndexOf(".")),et=De=>{var Ie,Xe;const yt=dt((Ie=De[0])==null?void 0:Ie.name)||dt((Xe=De[1])==null?void 0:Xe.name),Ye=mt.filter(jt=>dt(jt.name)!==yt);ft.current=[...Ye],xt([...Ye])},Ve=De=>{if(!St){const Ht=new FormData;Ht.append("file",De.file),(0,ee.ZP)("/api/attachments/get_file_content.json",{method:"post",body:Ht},!0).then(It=>{if(It.status===0){$e.current=$e.current+1;const Ut=ft.current.map(tn=>{var ln;if(tn.name===De.name){const mn=Fe({},tn);return(ln=De==null?void 0:De.name)!=null&&ln.includes(".in")?mn.input=It==null?void 0:It.content:mn.output=It==null?void 0:It.content,mn}return tn});if(ft.current=[...Ut],xt([...Ut]),$e.current>0&&$e.current===mt.length){Et(!1);let tn=Ke(Ut);tn=tn.filter(ln=>{var mn,jn;return!!((mn=ln[0])!=null&&mn.name&&((jn=ln[1])!=null&&jn.name))}),tn=tn.map(ln=>Re(Fe(Fe({},ln[0]),ln[1]),{is_file:!1})),qe(tn),bt()}}else Et(!1),bt()});return}const Ie=new(de())({endpoint:At.end_point,region:At.region,accessKeyId:At.access_key_id,accessKeySecret:At.access_key_secret,bucket:At.bucket,stsToken:At.security_token}),Xe=De.name,yt={container_type:"TestSet",file_name:Xe},Ye=(0,ae.Z)();let jt=`testsets/${Ct}/${Ye}${Xe.indexOf(".")>-1?"."+Xe.split(".").pop():""}`;Ct===null&&(jt=`testsets/${Ye}${Xe.indexOf(".")>-1?"."+Xe.split(".").pop():""}`),Ie.multipartUpload(jt,new Blob([De.file],{type:De.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:Xe+""},url:At==null?void 0:At.callback_url,host:At==null?void 0:At.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,ee.rz)(yt)}}).then(function(Ht){if(Ht.data.status===0){$e.current=$e.current+1;const en=ft.current.map(It=>{var Ut,tn,ln,mn,jn,Vn,Kn,ar,xr,gr,dr,Tr,Rr,Zr,ei,jr,it;if(It.name===((tn=(Ut=Ht.data)==null?void 0:Ut.data)==null?void 0:tn.file_name)){const Qr=Fe({},It);return(jn=(mn=(ln=Ht.data)==null?void 0:ln.data)==null?void 0:mn.file_name)!=null&&jn.includes(".in")?(Qr.in_object_key=(Kn=(Vn=Ht.data)==null?void 0:Vn.data)==null?void 0:Kn.object,Qr.in_object_size=(xr=(ar=Ht.data)==null?void 0:ar.data)==null?void 0:xr.size,Qr.input=(dr=(gr=Ht.data)==null?void 0:gr.data)==null?void 0:dr.file_name,Qr.in_file=De):(Qr.out_object_key=(Rr=(Tr=Ht.data)==null?void 0:Tr.data)==null?void 0:Rr.object,Qr.out_object_size=(ei=(Zr=Ht.data)==null?void 0:Zr.data)==null?void 0:ei.size,Qr.output=(it=(jr=Ht.data)==null?void 0:jr.data)==null?void 0:it.file_name,Qr.out_file=De),Qr}return It});if(ft.current=[...en],xt([...en]),$e.current>0&&$e.current===mt.length){Et(!1);let It=Ke(en);It=It.filter(Ut=>{var tn,ln;return!!((tn=Ut[0])!=null&&tn.name&&((ln=Ut[1])!=null&&ln.name))}),It=It.map(Ut=>Re(Fe(Fe({},Ut[0]),Ut[1]),{is_file:!0})),qe(It),bt()}}})},He=De=>new Promise((Ie,Xe)=>{let yt=0,Ye=[];for(let jt=0;jt<De.length;jt++)De[jt].file.slice(0,1).arrayBuffer().then(()=>{yt++,yt===De.length&&(Ye.length?(oe.ZP.warning(`${Ye.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),Xe()):Ie(De))}).catch(Ht=>{console.log("\u9519\u8BEF\u4FE1\u606F\uFF1A",Ht),yt++,Ye.push(De[jt].name),yt===De.length&&(Ye.length?(oe.ZP.warning(`${Ye.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),Xe()):Ie(De))})}),nt=()=>Ze(void 0,null,function*(){if(mt.length===0){oe.ZP.warning("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}if(yield He(mt),Et(!0),Ke(mt).some(Ie=>{var Xe,yt;return!((Xe=Ie[0])!=null&&Xe.name&&((yt=Ie[1])!=null&&yt.name))})){_e.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u4E0A\u4F20\u7684\u6D4B\u8BD5\u7528\u4F8B\u4E2D\u5B58\u5728\u672A\u914D\u5BF9\u7684\u6587\u4EF6\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4EC5\u4FDD\u5B58\u5DF2\u914D\u5BF9\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF1F",onOk:()=>Ze(void 0,null,function*(){mt.map(Ie=>Ze(void 0,null,function*(){Ve(Ie)}))}),onCancel:()=>{Et(!1)}});return}mt.map(Ie=>Ze(void 0,null,function*(){Ve(Ie)}))}),ut={name:"file",fileList:mt,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:De=>{if(mt!=null&&mt.some(Xe=>Xe.name===De.name))return oe.ZP.info(`${De.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(De.size/1024/1024>100)return oe.ZP.info("\u6587\u4EF6\u8D85\u8FC7100M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!/\.(in|out|IN|OUT)$/.test(De.name))return oe.ZP.warning("\u8F93\u5165\u6587\u4EF6\u53EA\u80FD\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6"),!1;const Ie={name:De.name,uid:De.uid,file:De,percent:0};return mt.push(Ie),ft.current=[...mt],xt([...mt]),!1}},We=Ke(mt);return console.log(mt,We,"fileList"),ue.createElement(_e.default,{open:at,wrapClassName:gt,onOk:nt,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:Wt},onCancel:lt,width:730,title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},ue.createElement("div",{className:we.wrap},mt.length?ue.createElement("div",null,ue.createElement(Ne.Z,{justify:"space-between",align:"middle",style:{marginBottom:40}},ue.createElement("div",{style:{visibility:wt?"visible":"hidden"}},ue.createElement("span",{className:we.greyText},"\u7528\u4F8B\u7C7B\u578B"),ue.createElement(ve.ZP.Group,{className:`ml20 ${we.testCaseRadio}`,optionType:"button",value:St,onChange:De=>tt(De.target.value)},ue.createElement(ve.ZP,{value:!1},"\u6587\u672C"),ue.createElement(ve.ZP,{value:!0},"\u6587\u4EF6"))),ue.createElement(Tt.default,Fe({},ut),ue.createElement(fe.ZP,{type:"primary",className:we.btnS},ue.createElement("i",{className:"iconfont icon-shangchuan2"}),"\u4E0A\u4F20\u6587\u4EF6"))),ue.createElement(ct,{data:We,onRemove:et})):ue.createElement("div",{className:`${we.noData} mb30`},ue.createElement(Tt.default.Dragger,Re(Fe({},ut),{className:we.dragger}),ue.createElement("img",{src:me,alt:"",className:"mb20"}),ue.createElement("div",null,ue.createElement("span",null,"\u62D6\u62FD\u6587\u4EF6\u6216"),ue.createElement("span",{className:we.uploadText},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),ue.createElement("div",{className:we.text},ue.createElement("span",{style:{color:"#FA6400"}},"\u63D0\u793A"),ue.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",ue.createElement("br",null),"2\u3001\u4E0A\u4F20\u7684\u6587\u4EF6\u7F16\u7801\u4EC5\u652F\u6301UTF-8\uFF0C\u5426\u5219\u53EF\u80FD\u4F1A\u51FA\u73B0\u6587\u672C\u4E71\u7801\u3002",ue.createElement("br",null),"3\u3001\u8F93\u5165\u8F93\u51FA\u6587\u4EF6\u9700\u6587\u4EF6\u540D\u79F0\u4E00\u4E00\u5BF9\u5E94\uFF0C\u672A\u5BF9\u5E94\u65F6\uFF0C\u5C06\u65E0\u6CD5\u4E0A\u4F20\u3002",ue.createElement("br",null),"4\u3001\u5355\u4E2A\u4E0A\u4F20\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100MB\uFF0C\u8D85\u8FC7\u65F6\u53EF\u4EE5\u5206\u6279\u6B21\u4E0A\u4F20\u3002",ue.createElement("br",null))))},ct=({data:bt=[],onRemove:qe,width:at="auto",showScore:gt=!1,disabled:Ct=!1,inputChange:wt,onEvaluatingChange:vt,onSelectAll:mt,checkAll1:xt,checkAll2:At,checkAll3:kt,checkAll4:Wt,checkAll5:Et,showEvaluatingSetting:St=!1,className:tt="",isProgramHomework:ft=!1})=>{const $e={value:"",filename:"",dataUrl:""},[lt,Pt]=(0,Qe.useState)(Fe({},$e)),dt=He=>{let nt=document.createElement("a");document.body.appendChild(nt);let ut=URL.createObjectURL(He.file);nt.href=ut,nt.download=He.name,nt.click(),URL.revokeObjectURL(ut),document.body.removeChild(nt)},et=(He,nt)=>{(0,re.LR)(He,nt)},Ve=(He,nt)=>{_e.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ue.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:()=>{qe(He,nt)},onCancel:()=>{}})};return bt.length?ue.createElement("div",{className:tt,style:{width:at}},ue.createElement("div",{className:`${ft?we.headProgram:we.head}`},St&&ue.createElement("div",{style:{width:"15%",display:"flex",alignItems:"center"}},ue.createElement(be.default,{checked:xt,onChange:He=>{mt(He.target.checked,"hidden")}}),ue.createElement(Pe.Z,{title:'\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'},ue.createElement("span",{style:{marginLeft:"8px"}},"\u9690\u85CF"),ue.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),ue.createElement("div",{style:{width:ft?"25%":"15%"}},"\u7528\u4F8B"),ue.createElement("div",{style:{width:gt?ft?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u5165"),ue.createElement("div",{style:{width:gt?ft?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u51FA"),gt&&ue.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),St&&ue.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ue.createElement(be.default,{checked:Wt,onChange:He=>{mt(He.target.checked,"input_visible")}}),ue.createElement(Pe.Z,{title:"\u52FE\u9009\u540E\uFF0C\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},ue.createElement("span",{style:{marginLeft:"8px"}},"\u8F93\u5165"),ue.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),St&&ue.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ue.createElement(be.default,{checked:At,onChange:He=>{mt(He.target.checked,"is_invisible")}}),ue.createElement(Pe.Z,{title:"\u52FE\u9009\u540E\uFF0C\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},ue.createElement("span",{style:{marginLeft:"8px"}},"\u9884\u671F\u8F93\u51FA"),ue.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),St&&ue.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ue.createElement(be.default,{checked:Et,onChange:He=>{mt(He.target.checked,"actual_output_visible")}}),ue.createElement(Pe.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},ue.createElement("span",{style:{marginLeft:"8px"}},"\u5B9E\u9645\u8F93\u51FA"),ue.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),St&&ue.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ue.createElement(be.default,{checked:kt,onChange:He=>{mt(He.target.checked,"last_match_rule")}}),ue.createElement(Pe.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173"},ue.createElement("span",{style:{marginLeft:"8px"}},"\u7279\u6B8A\u5224\u5B9A"),ue.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),ue.createElement("div",{className:we.operation,style:ft?{flex:1,textAlign:"right"}:{width:"10%"}},"\u64CD\u4F5C")),ue.createElement("div",{className:we.listWrapper,style:{boxShadow:ft?"0px 2px 4px 0px #EAEEF4":"unset"}},bt.map((He,nt)=>{var ut,We,De,Ie;return ue.createElement("div",{key:nt,className:we.list,style:ft?{marginBottom:"0px",height:"66px",borderBottom:"1px solid #F6F7F8"}:{}},St&&ue.createElement("div",{style:{width:"15%"}},ue.createElement(be.default,{checked:!!He.hidden,onChange:Xe=>{vt(Xe.target.checked,nt,"hidden")}})),ue.createElement("div",{style:{width:ft?"25%":"15%",paddingLeft:ft?"5px":"0px",paddingRight:ft?"5px":"0px"}},"\u6D4B\u8BD5\u7528\u4F8B",nt+1),ue.createElement("div",{className:we.info,style:{width:gt?ft?"20%":"15%":"25%"}},ue.createElement("span",{title:He.input||((ut=He[0])==null?void 0:ut.name),onClick:()=>Ze(void 0,null,function*(){let Xe;He.input?He.input_file_url?Xe=He.input_file_url:Xe=He.in_file:Xe=He[0];let yt;typeof Xe=="string"?(yt=yield fetch(Xe,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Pt({value:yield yt.text(),filename:"",dataUrl:Xe})):(yt=yield(0,re.db)(Xe.file),Pt({value:yt.text,filename:Xe.name,dataUrl:yt.link}))})},He.input||((We=He[0])==null?void 0:We.name))),ue.createElement("div",{className:we.info,style:{width:gt?ft?"20%":"15%":"25%"}},ue.createElement("span",{title:He.output||((De=He[1])==null?void 0:De.name),onClick:()=>Ze(void 0,null,function*(){let Xe;He.input?He.output_file_url?Xe=He.output_file_url:Xe=He.out_file:Xe=He[1];let yt;typeof Xe=="string"?(yt=yield fetch(Xe,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Pt({value:yield yt.text(),filename:"",dataUrl:Xe})):(yt=yield(0,re.db)(Xe.file),Pt({value:yt.text,filename:Xe.name,dataUrl:yt.link}))})},He.output||((Ie=He[1])==null?void 0:Ie.name))),gt&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(ye.default,{size:"large",addonAfter:ft?"%":null,disabled:Ct,style:{width:"80%"},onChange:Xe=>wt(Xe,nt),value:He.score}),!ft&&ue.createElement("span",null,"\xA0%")),St&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(be.default,{checked:He.input_visible||!1,onChange:Xe=>{vt(Xe.target.checked,nt,"input_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),St&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(be.default,{checked:He.is_invisible||!1,onChange:Xe=>{vt(Xe.target.checked,nt,"is_invisible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),St&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(be.default,{checked:He.actual_output_visible||!1,onChange:Xe=>{vt(Xe.target.checked,nt,"actual_output_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),St&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(be.default,{checked:He.last_match_rule||!1,onChange:Xe=>{vt(Xe.target.checked,nt,"last_match_rule")},className:"font14"},"\u672B\u5C3E\u5339\u914D")),ue.createElement("div",{onClick:()=>Ve(He,nt),style:ft?{flex:1,textAlign:"right",paddingLeft:"5px",paddingRight:"5px"}:{width:"10%",textAlign:"center"}},ue.createElement("span",{className:we.del},"\u5220\u9664")))})),ue.createElement(le.Z,{close:!0,data:lt.dataUrl,filename:lt.filename,type:lt.dataUrl.length?"txt":"",onClose:()=>Pt(Fe({},$e)),monacoEditor:{value:lt.value,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}})):ue.createElement(ue.Fragment,null)};var pt=ot},10977:function(bn,an,Ge){"use strict";Ge.d(an,{c:function(){return Tt}});var Qe=(oe=>(oe.FirstPage="firstPage",oe.PrevPage="prevPage",oe.NextPage="nextPage",oe))(Qe||{}),Tt=(oe=>(oe[oe.Single=0]="Single",oe[oe.Multiple=1]="Multiple",oe[oe.Judge=2]="Judge",oe[oe.Fill=3]="Fill",oe[oe.Subjective=4]="Subjective",oe[oe.Shixun=5]="Shixun",oe[oe.Program=6]="Program",oe[oe.Combine=7]="Combine",oe))(Tt||{})},24768:function(bn,an,Ge){"use strict";Ge.d(an,{AL:function(){return pe},Iy:function(){return we},Qv:function(){return de},ez:function(){return ue},jb:function(){return me}});var Qe=Ge(32834),Tt=Ge.n(Qe),oe=Ge(11690),_e=Ge.n(oe);let Ne=1;function ve(ke,Oe){const Fe=ke.match(/^(\s+)(?:```)/);if(Fe===null)return Oe;const Re=Fe[1];return Oe.split(`
|
|
|
`).map(Ze=>{const ze=Ze.match(/^\s+/);if(ze===null)return Ze;const[Ke]=ze;return Ke.length>=Re.length?Ze.slice(Re.length):Ze}).join(`
|
|
|
`)}let fe=[],be=["<ul>"];const Pe=new(Tt()).Renderer,ye=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function we(){fe.length=0,be=["<ul>"]}const me={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Se(ke,Oe,Fe,Re){if(Oe>=ke.length||ke[Oe].level<=Fe)return Oe;var Ze=ke[Oe];Re.push("<li><a href='#"+Ne+Ze.anchor+"'>"+Ze.text+"</a>"),Oe++;var ze=[];return Oe=Se(ke,Oe,Ze.level,ze),ze.length>0&&(Re.push("<ul>"),ze.forEach(function(Ke){Re.push(Ke)}),Re.push("</ul>")),Re.push("</li>"),Oe=Se(ke,Oe,Fe,Re),Oe}function de(){return Se(fe,0,0,be),be.push("</ul>"),be.join("")}const z={heading(ke){const Oe=ye.exec(ke);if(Ne+=1,Oe)return{type:"heading",raw:Oe[0],depth:Oe[1].length,text:Oe[2]}},fences(ke){const Oe=this.rules.block.fences.exec(ke);if(Oe){const Fe=Oe[0];let Re=ve(Fe,Oe[3]||"");const Ze=Oe[2]?Oe[2].trim():Oe[2];if(["latex","katex","math"].indexOf(Ze)>=0){const ze=re(),Ke=Re;Re=ze,le[ze]={type:"block",expression:Ke}}return{type:"code",raw:Fe,lang:Ze,text:Re}}}},ee=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ae=0;const re=()=>`__special_katext_id_${ae++}__`;let le={};function ue(){return le}function pe(){ae=0,le={}}function Ee(ke){return ke=ke.replace(ee,(Oe,Fe)=>{const Re=re();return le[Re]={type:"inline",expression:Fe},Re}),ke}const Ce=Pe.listitem;Pe.listitem=function(ke){return Ce(Ee(ke))};const je=Pe.paragraph;Pe.paragraph=function(ke){return je(Ee(ke))};const Le=Pe.tablecell;Pe.tablecell=function(ke,Oe){return Le(Ee(ke),Oe)},Pe.code=function(ke,Oe,Fe){const Re=(Oe||"").match(/\S*/)[0];return Re?["latex","katex","math"].indexOf(Re)>=0?`<p class='editormd-tex'>${ke}</p>`:`<pre class="prettyprint linenums"><code class="language-${Oe}">${Fe?ke:(0,oe.escape)(ke,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(Fe?ke:(0,oe.escape)(ke,!0))+"</code></pre>"},Pe.heading=function(ke,Oe,Fe){let Re=this.options.headerPrefix+Fe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return fe.push({anchor:Re,level:Oe,text:ke}),"<h"+Oe+' id="'+Ne+Re+'">'+ke+"</h"+Oe+">"},Tt().setOptions({silent:!0,gfm:!0,pedantic:!1}),Tt().use({tokenizer:z,renderer:Pe}),an.ZP=Tt()},16479:function(bn,an,Ge){"use strict";Ge.d(an,{G:function(){return Ne},t:function(){return _e}});var Qe=Ge(7062),Tt=Ge.n(Qe);const oe=null;function _e(ve,fe){let be=Tt().get("__ec");be||(be={}),be[ve]=fe,Tt().set("__ec",be)}function Ne(ve,fe){let be=Tt().get("__ec");return be?be[ve]===void 0?fe:be[ve]:fe}},47257:function(bn){(function(an){(function(Ge){if(1)bn.exports=Ge();else var Qe})(function(){var Ge,Qe,Tt;return function(){function oe(_e,Ne,ve){function fe(ye,we){if(!Ne[ye]){if(!_e[ye]){var me=void 0;if(!we&&me)return require(ye,!0);if(be)return be(ye,!0);var Se=new Error("Cannot find module '"+ye+"'");throw Se.code="MODULE_NOT_FOUND",Se}var de=Ne[ye]={exports:{}};_e[ye][0].call(de.exports,function(z){var ee=_e[ye][1][z];return fe(ee||z)},de,de.exports,oe,_e,Ne,ve)}return Ne[ye].exports}for(var be=void 0,Pe=0;Pe<ve.length;Pe++)fe(ve[Pe]);return fe}return oe}()({1:[function(oe,_e,Ne){"use strict";var ve=oe("./browser/client");ve.Buffer=oe("buffer").Buffer,ve.urllib=oe("../shims/xhr"),ve.version=oe("./browser/version").version,_e.exports=ve},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator")),be=ve(oe("@babel/runtime/helpers/asyncToGenerator"));oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.slice.js");var Pe=oe("assert"),ye=oe("../common/utils/checkBucketName"),we=ye.checkBucketName,me=Ne;function Se(z){return Array.isArray?Array.isArray(z):Object.prototype.toString.call(z)==="[object Array]"}function de(z){return z?Se(z)?z:[z]:[]}me.useBucket=function(ee){return we(ee),this.options.bucket=ee,this},me.setBucket=function(ee){return we(ee),this.options.bucket=ee,this},me.getBucket=function(){return this.options.bucket},me.deleteBucket=function(){var z=(0,be.default)(fe.default.mark(function ae(re,le){var ue,pe;return fe.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ue=this._bucketRequestParams("DELETE",re,"",le),Ce.next=3,this.request(ue);case 3:if(pe=Ce.sent,!(pe.status===200||pe.status===204)){Ce.next=6;break}return Ce.abrupt("return",{res:pe.res});case 6:return Ce.next=8,this.requestError(pe);case 8:throw Ce.sent;case 9:case"end":return Ce.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.putBucketACL=function(){var z=(0,be.default)(fe.default.mark(function ae(re,le,ue){var pe,Ee;return fe.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return pe=this._bucketRequestParams("PUT",re,"acl",ue),pe.headers={"x-oss-acl":le},pe.successStatuses=[200],je.next=5,this.request(pe);case 5:return Ee=je.sent,je.abrupt("return",{bucket:Ee.headers.location&&Ee.headers.location.substring(1)||null,res:Ee.res});case 7:case"end":return je.stop()}},ae,this)}));function ee(ae,re,le){return z.apply(this,arguments)}return ee}(),me.getBucketACL=function(){var z=(0,be.default)(fe.default.mark(function ae(re,le){var ue,pe;return fe.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ue=this._bucketRequestParams("GET",re,"acl",le),ue.successStatuses=[200],ue.xmlResponse=!0,Ce.next=5,this.request(ue);case 5:return pe=Ce.sent,Ce.abrupt("return",{acl:pe.data.AccessControlList.Grant,owner:{id:pe.data.Owner.ID,displayName:pe.data.Owner.DisplayName},res:pe.res});case 7:case"end":return Ce.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.putBucketLogging=function(){var z=(0,be.default)(fe.default.mark(function ae(re,le,ue){var pe,Ee,Ce;return fe.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return pe=this._bucketRequestParams("PUT",re,"logging",ue),Ee=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<BucketLoggingStatus>
|
|
|
<LoggingEnabled>
|
|
|
<TargetBucket>`.concat(re,`</TargetBucket>
|
|
|
`),le&&(Ee+="<TargetPrefix>".concat(le,`</TargetPrefix>
|
|
|
`)),Ee+=`</LoggingEnabled>
|
|
|
</BucketLoggingStatus>`,pe.content=Ee,pe.mime="xml",pe.successStatuses=[200],Le.next=9,this.request(pe);case 9:return Ce=Le.sent,Le.abrupt("return",{res:Ce.res});case 11:case"end":return Le.stop()}},ae,this)}));function ee(ae,re,le){return z.apply(this,arguments)}return ee}(),me.getBucketLogging=function(){var z=(0,be.default)(fe.default.mark(function ae(re,le){var ue,pe,Ee;return fe.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return ue=this._bucketRequestParams("GET",re,"logging",le),ue.successStatuses=[200],ue.xmlResponse=!0,je.next=5,this.request(ue);case 5:return pe=je.sent,Ee=pe.data.LoggingEnabled,je.abrupt("return",{enable:!!Ee,prefix:Ee&&Ee.TargetPrefix||null,res:pe.res});case 8:case"end":return je.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.deleteBucketLogging=function(){var z=(0,be.default)(fe.default.mark(function ae(re,le){var ue,pe;return fe.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ue=this._bucketRequestParams("DELETE",re,"logging",le),ue.successStatuses=[204,200],Ce.next=4,this.request(ue);case 4:return pe=Ce.sent,Ce.abrupt("return",{res:pe.res});case 6:case"end":return Ce.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.putBucketCORS=function(){var z=(0,be.default)(fe.default.mark(function ae(re,le,ue){var pe,Ee,Ce,je,Le,ke,Oe,Fe,Re,Ze;return fe.default.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:for(le=le||[],Pe(le.length,"rules is required"),le.forEach(function(ot){Pe(ot.allowedOrigin,"allowedOrigin is required"),Pe(ot.allowedMethod,"allowedMethod is required")}),pe=this._bucketRequestParams("PUT",re,"cors",ue),Ee=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CORSConfiguration>`,Ce=function(ct){Ee+="<AllowedOrigin>".concat(ct,"</AllowedOrigin>")},je=function(ct){Ee+="<AllowedMethod>".concat(ct,"</AllowedMethod>")},Le=function(ct){Ee+="<AllowedHeader>".concat(ct,"</AllowedHeader>")},ke=function(ct){Ee+="<ExposeHeader>".concat(ct,"</ExposeHeader>")},Oe=0,Fe=le.length;Oe<Fe;Oe++)Re=le[Oe],Ee+="<CORSRule>",de(Re.allowedOrigin).forEach(Ce),de(Re.allowedMethod).forEach(je),de(Re.allowedHeader).forEach(Le),de(Re.exposeHeader).forEach(ke),Re.maxAgeSeconds&&(Ee+="<MaxAgeSeconds>".concat(Re.maxAgeSeconds,"</MaxAgeSeconds>")),Ee+="</CORSRule>";return Ee+="</CORSConfiguration>",pe.content=Ee,pe.mime="xml",pe.successStatuses=[200],Ke.next=16,this.request(pe);case 16:return Ze=Ke.sent,Ke.abrupt("return",{res:Ze.res});case 18:case"end":return Ke.stop()}},ae,this)}));function ee(ae,re,le){return z.apply(this,arguments)}return ee}(),me.getBucketCORS=function(){var z=(0,be.default)(fe.default.mark(function ae(re,le){var ue,pe,Ee,Ce;return fe.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return ue=this._bucketRequestParams("GET",re,"cors",le),ue.successStatuses=[200],ue.xmlResponse=!0,Le.next=5,this.request(ue);case 5:return pe=Le.sent,Ee=[],pe.data&&pe.data.CORSRule&&(Ce=pe.data.CORSRule,Se(Ce)||(Ce=[Ce]),Ce.forEach(function(ke){var Oe={};Object.keys(ke).forEach(function(Fe){Oe[Fe.slice(0,1).toLowerCase()+Fe.slice(1,Fe.length)]=ke[Fe]}),Ee.push(Oe)})),Le.abrupt("return",{rules:Ee,res:pe.res});case 9:case"end":return Le.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.deleteBucketCORS=function(){var z=(0,be.default)(fe.default.mark(function ae(re,le){var ue,pe;return fe.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ue=this._bucketRequestParams("DELETE",re,"cors",le),ue.successStatuses=[204],Ce.next=4,this.request(ue);case 4:return pe=Ce.sent,Ce.abrupt("return",{res:pe.res});case 6:case"end":return Ce.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.putBucketReferer=function(){var z=(0,be.default)(fe.default.mark(function ae(re,le,ue,pe){var Ee,Ce,je,Le;return fe.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(Ee=this._bucketRequestParams("PUT",re,"referer",pe),Ce=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<RefererConfiguration>
|
|
|
`,Ce+=" <AllowEmptyReferer>".concat(le?"true":"false",`</AllowEmptyReferer>
|
|
|
`),ue&&ue.length>0){for(Ce+=` <RefererList>
|
|
|
`,je=0;je<ue.length;je++)Ce+=" <Referer>".concat(ue[je],`</Referer>
|
|
|
`);Ce+=` </RefererList>
|
|
|
`}else Ce+=` <RefererList />
|
|
|
`;return Ce+="</RefererConfiguration>",Ee.content=Ce,Ee.mime="xml",Ee.successStatuses=[200],Oe.next=10,this.request(Ee);case 10:return Le=Oe.sent,Oe.abrupt("return",{res:Le.res});case 12:case"end":return Oe.stop()}},ae,this)}));function ee(ae,re,le,ue){return z.apply(this,arguments)}return ee}(),me.getBucketReferer=function(){var z=(0,be.default)(fe.default.mark(function ae(re,le){var ue,pe,Ee;return fe.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return ue=this._bucketRequestParams("GET",re,"referer",le),ue.successStatuses=[200],ue.xmlResponse=!0,je.next=5,this.request(ue);case 5:return pe=je.sent,Ee=pe.data.RefererList.Referer||null,Ee&&(Se(Ee)||(Ee=[Ee])),je.abrupt("return",{allowEmpty:pe.data.AllowEmptyReferer==="true",referers:Ee,res:pe.res});case 9:case"end":return je.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.deleteBucketReferer=function(){var z=(0,be.default)(fe.default.mark(function ae(re,le){return fe.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.next=2,this.putBucketReferer(re,!0,null,le);case 2:return pe.abrupt("return",pe.sent);case 3:case"end":return pe.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me._bucketRequestParams=function(ee,ae,re,le){return{method:ee,bucket:ae,subres:re,timeout:le&&le.timeout,ctx:le&&le.ctx}}},{"../common/utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,assert:82,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],3:[function(oe,_e,Ne){(function(ve,fe){(function(){"use strict";var be=oe("@babel/runtime/helpers/interopRequireDefault"),Pe=be(oe("@babel/runtime/regenerator")),ye=be(oe("@babel/runtime/helpers/asyncToGenerator"));oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.split.js"),oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.symbol.js"),oe("core-js/modules/es.symbol.description.js"),oe("core-js/modules/es.array.slice.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.regexp.to-string.js");var we=oe("debug")("ali-oss"),me=oe("xml2js"),Se=oe("agentkeepalive"),de=oe("merge-descriptors"),z=oe("platform"),ee=oe("utility"),ae=oe("urllib"),re=oe("./version"),le=oe("bowser"),ue=oe("../common/signUtils"),pe=oe("../common/client/initOptions"),Ee=oe("../common/utils/createRequest"),Ce=Ee.createRequest,je=oe("../common/utils/encoder"),Le=je.encoder,ke=oe("../common/client/getReqUrl"),Oe=ke.getReqUrl,Fe=oe("../common/utils/setSTSToken"),Re=Fe.setSTSToken,Ze=oe("../common/utils/retry"),ze=Ze.retry,Ke=oe("../common/utils/isFunction"),ot=Ke.isFunction,ct=new Se;function pt(){var wt=z.name,vt=z.version;wt&&wt.toLowerCase&&wt.toLowerCase()==="ie"&&vt.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function bt(){return location&&location.protocol==="https:"}function qe(wt,vt){if(pt(),!(this instanceof qe))return new qe(wt,vt);wt&&wt.inited?this.options=wt:this.options=qe.initOptions(wt),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=ae,this.agent=this.options.agent||ct),this.ctx=vt,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}_e.exports=qe,qe.initOptions=function(vt){vt.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var mt=Object.assign({secure:bt(),useFetch:!1},vt);return pe(mt)};var at=qe.prototype;at.debug=we,de(at,oe("./object")),de(at,oe("./bucket")),de(at,oe("../common/bucket/getBucketWebsite")),de(at,oe("../common/bucket/putBucketWebsite")),de(at,oe("../common/bucket/deleteBucketWebsite")),de(at,oe("../common/bucket/getBucketLifecycle")),de(at,oe("../common/bucket/putBucketLifecycle")),de(at,oe("../common/bucket/deleteBucketLifecycle")),de(at,oe("../common/bucket/putBucketVersioning")),de(at,oe("../common/bucket/getBucketVersioning")),de(at,oe("../common/bucket/getBucketInventory")),de(at,oe("../common/bucket/deleteBucketInventory")),de(at,oe("../common/bucket/listBucketInventory")),de(at,oe("../common/bucket/putBucketInventory")),de(at,oe("../common/bucket/abortBucketWorm")),de(at,oe("../common/bucket/completeBucketWorm")),de(at,oe("../common/bucket/extendBucketWorm")),de(at,oe("../common/bucket/getBucketWorm")),de(at,oe("../common/bucket/initiateBucketWorm")),de(at,oe("./managed-upload")),de(at,oe("../common/multipart-copy")),de(at,oe("../common/multipart")),de(at,oe("../common/parallel")),at.signature=function(vt){return this.debug("authorization stringToSign: %s",vt,"info"),ue.computeSignature(this.options.accessKeySecret,vt,this.options.headerEncoding)},at._getReqUrl=Oe,at.authorization=function(vt,mt,xt,At){var kt=ue.buildCanonicalString(vt.toUpperCase(),mt,{headers:At,parameters:xt});return ue.authorization(this.options.accessKeyId,this.options.accessKeySecret,kt,this.options.headerEncoding)},at.request=function(){var wt=(0,ye.default)(Pe.default.mark(function vt(mt){var xt=this;return Pe.default.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:if(!this.options.retryMax){kt.next=6;break}return kt.next=3,ze(gt.bind(this),this.options.retryMax,{errorHandler:function(Et){var St=function(ft){if(mt.stream)return!1;var $e=[-1,-2].includes(ft.status),lt=xt.options.requestErrorRetryHandle||function(){return!0};return $e&<(ft)};return!!St(Et)}})(mt);case 3:return kt.abrupt("return",kt.sent);case 6:return kt.abrupt("return",gt.call(this,mt));case 7:case"end":return kt.stop()}},vt,this)}));return function(vt){return wt.apply(this,arguments)}}();function gt(wt){return Ct.apply(this,arguments)}function Ct(){return Ct=(0,ye.default)(Pe.default.mark(function wt(vt){var mt,xt,At,kt,Wt,Et;return Pe.default.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:if(!(this.options.stsToken&&ot(this.options.refreshSTSToken))){tt.next=3;break}return tt.next=3,Re.call(this);case 3:return mt=Ce.call(this,vt),this.options.useFetch||(mt.params.mode="disable-fetch"),kt=!!vt.stream,tt.prev=6,tt.next=9,this.urllib.request(mt.url,mt.params);case 9:xt=tt.sent,this.debug("response %s %s, got %s, headers: %j",vt.method,mt.url,xt.status,xt.headers,"info"),tt.next=16;break;case 13:tt.prev=13,tt.t0=tt.catch(6),At=tt.t0;case 16:if(!(xt&&vt.successStatuses&&vt.successStatuses.indexOf(xt.status)===-1)){tt.next=28;break}return tt.next=19,this.requestError(xt);case 19:if(Wt=tt.sent,!(Wt.code==="RequestTimeTooSkewed"&&!kt)){tt.next=25;break}return this.options.amendTimeSkewed=+new Date(Wt.serverTime)-new Date,tt.next=24,this.request(vt);case 24:return tt.abrupt("return",tt.sent);case 25:Wt.params=vt,tt.next=32;break;case 28:if(!At){tt.next=32;break}return tt.next=31,this.requestError(At);case 31:Wt=tt.sent;case 32:if(!Wt){tt.next=34;break}throw Wt;case 34:if(!vt.xmlResponse){tt.next=39;break}return tt.next=37,this.parseXML(xt.data);case 37:Et=tt.sent,xt.data=Et;case 39:return tt.abrupt("return",xt);case 40:case"end":return tt.stop()}},wt,this,[[6,13]])})),Ct.apply(this,arguments)}at._getResource=function(vt){var mt="/";return vt.bucket&&(mt+="".concat(vt.bucket,"/")),vt.object&&(mt+=Le(vt.object,this.options.headerEncoding)),mt},at._escape=function(vt){return ee.encodeURIComponent(vt).replace(/%2F/g,"/")},at._getUserAgent=function(){var vt=fe&&fe.browser?"js":"nodejs",mt="aliyun-sdk-".concat(vt,"/").concat(re.version),xt=z.description;return!xt&&fe&&(xt="Node.js ".concat(fe.version.slice(1)," on ").concat(fe.platform," ").concat(fe.arch)),this._checkUserAgent("".concat(mt," ").concat(xt))},at._checkUserAgent=function(vt){var mt=vt.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return mt},at.checkBrowserAndVersion=function(vt,mt){return le.name===vt&&le.version.split(".")[0]===mt},at.parseXML=function(vt){return new Promise(function(mt,xt){ve.isBuffer(vt)&&(vt=vt.toString()),me.parseString(vt,{explicitRoot:!1,explicitArray:!1},function(At,kt){At?xt(At):mt(kt)})})},at.requestError=function(){var wt=(0,ye.default)(Pe.default.mark(function mt(xt){var At,kt,Wt,Et;return Pe.default.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:if(At=null,!(!xt.data||!xt.data.length)){tt.next=5;break}xt.status===-1||xt.status===-2?(At=new Error(xt.message),At.name=xt.name,At.status=xt.status,At.code=xt.name):(xt.status===404?(At=new Error("Object not exists"),At.name="NoSuchKeyError",At.status=404,At.code="NoSuchKey"):xt.status===412?(At=new Error("Pre condition failed"),At.name="PreconditionFailedError",At.status=412,At.code="PreconditionFailed"):(At=new Error("Unknow error, status: ".concat(xt.status)),At.name="UnknownError",At.status=xt.status),At.requestId=xt.headers["x-oss-request-id"],At.host=""),tt.next=32;break;case 5:return kt=String(xt.data),this.debug("request response error data: %s",kt,"error"),tt.prev=7,tt.next=10,this.parseXML(kt);case 10:if(tt.t0=tt.sent,tt.t0){tt.next=13;break}tt.t0={};case 13:Wt=tt.t0,tt.next=23;break;case 16:return tt.prev=16,tt.t1=tt.catch(7),this.debug(kt,"error"),tt.t1.message+=`
|
|
|
raw xml: `.concat(kt),tt.t1.status=xt.status,tt.t1.requestId=xt.headers["x-oss-request-id"],tt.abrupt("return",tt.t1);case 23:Et=Wt.Message||"unknow request error, status: ".concat(xt.status),Wt.Condition&&(Et+=" (condition: ".concat(Wt.Condition,")")),At=new Error(Et),At.name=Wt.Code?"".concat(Wt.Code,"Error"):"UnknownError",At.status=xt.status,At.code=Wt.Code,At.requestId=Wt.RequestId,At.hostId=Wt.HostId,At.serverTime=Wt.ServerTime;case 32:return this.debug("generate error %j",At,"error"),tt.abrupt("return",At);case 34:case"end":return tt.stop()}},mt,this,[[7,16]])}));function vt(mt){return wt.apply(this,arguments)}return vt}()}).call(this)}).call(this,{isBuffer:oe("../../node_modules/is-buffer/index.js")},oe("_process"))},{"../../node_modules/is-buffer/index.js":366,"../common/bucket/abortBucketWorm":7,"../common/bucket/completeBucketWorm":8,"../common/bucket/deleteBucketInventory":9,"../common/bucket/deleteBucketLifecycle":10,"../common/bucket/deleteBucketWebsite":11,"../common/bucket/extendBucketWorm":12,"../common/bucket/getBucketInventory":13,"../common/bucket/getBucketLifecycle":14,"../common/bucket/getBucketVersioning":15,"../common/bucket/getBucketWebsite":16,"../common/bucket/getBucketWorm":17,"../common/bucket/initiateBucketWorm":18,"../common/bucket/listBucketInventory":19,"../common/bucket/putBucketInventory":20,"../common/bucket/putBucketLifecycle":21,"../common/bucket/putBucketVersioning":22,"../common/bucket/putBucketWebsite":23,"../common/client/getReqUrl":25,"../common/client/initOptions":26,"../common/multipart":30,"../common/multipart-copy":29,"../common/parallel":49,"../common/signUtils":50,"../common/utils/createRequest":56,"../common/utils/encoder":59,"../common/utils/isFunction":68,"../common/utils/retry":74,"../common/utils/setSTSToken":76,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,agentkeepalive:81,bowser:88,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.split.js":307,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.js":313,debug:465,"merge-descriptors":372,platform:379,urllib:475,utility:474,xml2js:426}],4:[function(oe,_e,Ne){(function(ve){(function(){"use strict";var fe=oe("@babel/runtime/helpers/interopRequireDefault"),be=fe(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.array.from.js"),oe("core-js/modules/es.string.iterator.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.array.filter.js"),oe("core-js/modules/es.array.find.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.regexp.to-string.js"),oe("core-js/modules/es.array.slice.js"),oe("core-js/modules/es.array.iterator.js"),oe("core-js/modules/es.array-buffer.slice.js"),oe("core-js/modules/es.typed-array.uint8-array.js"),oe("core-js/modules/es.typed-array.copy-within.js"),oe("core-js/modules/es.typed-array.every.js"),oe("core-js/modules/es.typed-array.fill.js"),oe("core-js/modules/es.typed-array.filter.js"),oe("core-js/modules/es.typed-array.find.js"),oe("core-js/modules/es.typed-array.find-index.js"),oe("core-js/modules/es.typed-array.for-each.js"),oe("core-js/modules/es.typed-array.includes.js"),oe("core-js/modules/es.typed-array.index-of.js"),oe("core-js/modules/es.typed-array.iterator.js"),oe("core-js/modules/es.typed-array.join.js"),oe("core-js/modules/es.typed-array.last-index-of.js"),oe("core-js/modules/es.typed-array.map.js"),oe("core-js/modules/es.typed-array.reduce.js"),oe("core-js/modules/es.typed-array.reduce-right.js"),oe("core-js/modules/es.typed-array.reverse.js"),oe("core-js/modules/es.typed-array.set.js"),oe("core-js/modules/es.typed-array.slice.js"),oe("core-js/modules/es.typed-array.some.js"),oe("core-js/modules/es.typed-array.sort.js"),oe("core-js/modules/es.typed-array.subarray.js"),oe("core-js/modules/es.typed-array.to-locale-string.js"),oe("core-js/modules/es.typed-array.to-string.js");var Pe=fe(oe("@babel/runtime/helpers/asyncToGenerator")),ye=oe("util"),we=oe("path"),me=oe("mime"),Se=oe("copy-to"),de=oe("../common/utils/isBlob"),z=de.isBlob,ee=oe("../common/utils/isFile"),ae=ee.isFile,re=oe("../common/utils/isBuffer"),le=re.isBuffer,ue=Ne;ue.multipartUpload=function(){var Le=(0,Pe.default)(be.default.mark(function Oe(Fe,Re){var Ze,ze,Ke,ot,ct,pt,bt,qe,at,gt=arguments;return be.default.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:if(Ze=gt.length>2&>[2]!==void 0?gt[2]:{},this.resetCancelFlag(),Ze.disabledMD5=Ze.disabledMD5===void 0?!0:!!Ze.disabledMD5,!(Ze.checkpoint&&Ze.checkpoint.uploadId)){wt.next=8;break}return Re&&ae(Re)&&(Ze.checkpoint.file=Re),wt.next=7,this._resumeMultipart(Ze.checkpoint,Ze);case 7:return wt.abrupt("return",wt.sent);case 8:return ze=102400,Ze.mime||(ae(Re)?Ze.mime=me.getType(we.extname(Re.name)):z(Re)?Ze.mime=Re.type:le(Re)?Ze.mime="":Ze.mime=me.getType(we.extname(Re))),Ze.headers=Ze.headers||{},this._convertMetaToHeaders(Ze.meta,Ze.headers),wt.next=14,this._getFileSize(Re);case 14:if(Ke=wt.sent,!(Ke<ze)){wt.next=26;break}return Ze.contentLength=Ke,wt.next=19,this.put(Fe,Re,Ze);case 19:if(ot=wt.sent,!(Ze&&Ze.progress)){wt.next=23;break}return wt.next=23,Ze.progress(1);case 23:return ct={res:ot.res,bucket:this.options.bucket,name:Fe,etag:ot.res.headers.etag},(Ze.headers&&Ze.headers["x-oss-callback"]||Ze.callback)&&(ct.data=ot.data),wt.abrupt("return",ct);case 26:if(!(Ze.partSize&&parseInt(Ze.partSize,10)!==Ze.partSize)){wt.next=28;break}throw new Error("partSize must be int number");case 28:if(!(Ze.partSize&&Ze.partSize<ze)){wt.next=30;break}throw new Error("partSize must not be smaller than ".concat(ze));case 30:return wt.next=32,this.initMultipartUpload(Fe,Ze);case 32:if(pt=wt.sent,bt=pt.uploadId,qe=this._getPartSize(Ke,Ze.partSize),at={file:Re,name:Fe,fileSize:Ke,partSize:qe,uploadId:bt,doneParts:[]},!(Ze&&Ze.progress)){wt.next=39;break}return wt.next=39,Ze.progress(0,at,pt.res);case 39:return wt.next=41,this._resumeMultipart(at,Ze);case 41:return wt.abrupt("return",wt.sent);case 42:case"end":return wt.stop()}},Oe,this)}));function ke(Oe,Fe){return Le.apply(this,arguments)}return ke}(),ue._resumeMultipart=function(){var Le=(0,Pe.default)(be.default.mark(function Oe(Fe,Re){var Ze,ze,Ke,ot,ct,pt,bt,qe,at,gt,Ct,wt,vt,mt,xt,At,kt,Wt,Et;return be.default.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:if(Ze=this,!this.isCancel()){tt.next=3;break}throw this._makeCancelEvent();case 3:return ze=Fe.file,Ke=Fe.fileSize,ot=Fe.partSize,ct=Fe.uploadId,pt=Fe.doneParts,bt=Fe.name,qe=[],pt.length>0&&Se(pt).to(qe),at=this._divideParts(Ke,ot),gt=at.length,Ct=!1,wt=function($e,lt){return new Promise(function(){var Pt=(0,Pe.default)(be.default.mark(function dt(et,Ve){var He,nt,ut,We,De;return be.default.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:if(Xe.prev=0,$e.isCancel()){Xe.next=29;break}return He=at[lt-1],Xe.next=5,$e._createBuffer(ze,He.start,He.end);case 5:return nt=Xe.sent,ut={content:nt,size:He.end-He.start},Xe.prev=7,Xe.next=10,$e._uploadPart(bt,ct,lt,ut,Re);case 10:We=Xe.sent,Xe.next=18;break;case 13:if(Xe.prev=13,Xe.t0=Xe.catch(7),Xe.t0.status!==404){Xe.next=17;break}throw $e._makeAbortEvent();case 17:throw Xe.t0;case 18:if(!(!$e.isCancel()&&!Ct)){Xe.next=26;break}if(Fe.doneParts.push({number:lt,etag:We.res.headers.etag}),!Re.progress){Xe.next=23;break}return Xe.next=23,Re.progress(pt.length/(gt+1),Fe,We.res);case 23:et({number:lt,etag:We.res.headers.etag}),Xe.next=27;break;case 26:et();case 27:Xe.next=30;break;case 29:et();case 30:Xe.next=41;break;case 32:Xe.prev=32,Xe.t1=Xe.catch(0),De=new Error,De.name=Xe.t1.name,De.message=Xe.t1.message,De.stack=Xe.t1.stack,De.partNum=lt,Se(Xe.t1).to(De),Ve(De);case 41:case"end":return Xe.stop()}},dt,null,[[0,32],[7,13]])}));return function(dt,et){return Pt.apply(this,arguments)}}())},vt=Array.from(new Array(gt),function(ft,$e){return $e+1}),mt=qe.map(function(ft){return ft.number}),xt=vt.filter(function(ft){return mt.indexOf(ft)<0}),At=5,kt=Re.parallel||At,tt.next=17,this._parallel(xt,kt,function(ft){return new Promise(function($e,lt){wt(Ze,ft).then(function(Pt){Pt&&qe.push(Pt),$e()}).catch(function(Pt){lt(Pt)})})});case 17:if(Wt=tt.sent,Ct=!0,Et=Wt.find(function(ft){return ft.name==="abort"}),!Et){tt.next=22;break}throw Et;case 22:if(!this.isCancel()){tt.next=25;break}throw wt=null,this._makeCancelEvent();case 25:if(!(Wt&&Wt.length>0)){tt.next=28;break}throw Wt[0].message="Failed to upload some parts with error: ".concat(Wt[0].toString()," part_num: ").concat(Wt[0].partNum),Wt[0];case 28:return tt.next=30,this.completeMultipartUpload(bt,ct,qe,Re);case 30:return tt.abrupt("return",tt.sent);case 31:case"end":return tt.stop()}},Oe,this)}));function ke(Oe,Fe){return Le.apply(this,arguments)}return ke}(),ue._getFileSize=function(){var Le=(0,Pe.default)(be.default.mark(function Oe(Fe){return be.default.wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:if(!le(Fe)){Ze.next=4;break}return Ze.abrupt("return",Fe.length);case 4:if(!(z(Fe)||ae(Fe))){Ze.next=6;break}return Ze.abrupt("return",Fe.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return Ze.stop()}},Oe)}));function ke(Oe){return Le.apply(this,arguments)}return ke}();var pe=oe("stream"),Ee=pe.Readable;function Ce(Le,ke){if(!(this instanceof Ce))return new Ce(Le,ke);Ee.call(this,ke),this.file=Le,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}ye.inherits(Ce,Ee),Ce.prototype.readFileAndPush=function(ke){if(this.fileBuffer)for(var Oe=!0;Oe&&this.fileBuffer&&this.start<this.fileBuffer.length;){var Fe=this.start,Re=Fe+ke;Re=Re>this.fileBuffer.length?this.fileBuffer.length:Re,this.start=Re,Oe=this.push(this.fileBuffer.slice(Fe,Re))}},Ce.prototype._read=function(ke){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var Oe=16*1024;ke=ke||Oe;var Fe=this;this.reader.onload=function(Ze){Fe.fileBuffer=ve.from(new Uint8Array(Ze.target.result)),Fe.file=null,Fe.readFileAndPush(ke)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(ke)};function je(Le){return Le.arrayBuffer?Le.arrayBuffer():new Promise(function(ke,Oe){var Fe=new FileReader;Fe.onload=function(Re){ke(Re.target.result)},Fe.onerror=function(Re){Oe(Re)},Fe.readAsArrayBuffer(Le)})}ue._createBuffer=function(){var Le=(0,Pe.default)(be.default.mark(function Oe(Fe,Re,Ze){var ze,Ke;return be.default.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:if(!(z(Fe)||ae(Fe))){ct.next=8;break}return ze=Fe.slice(Re,Ze),ct.next=4,je(ze);case 4:return Ke=ct.sent,ct.abrupt("return",ve.from(Ke));case 8:if(!le(Fe)){ct.next=12;break}return ct.abrupt("return",Fe.subarray(Re,Ze));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return ct.stop()}},Oe)}));function ke(Oe,Fe,Re){return Le.apply(this,arguments)}return ke}(),ue._getPartSize=function(ke,Oe){var Fe=1e4,Re=1*1024*1024;Oe||(Oe=Re);var Ze=Math.ceil(ke/Fe);return Oe<Ze&&(Oe=Ze,console.warn("partSize has been set to ".concat(Oe,", because the partSize you provided causes partNumber to be greater than 10,000"))),Oe},ue._divideParts=function(ke,Oe){for(var Fe=Math.ceil(ke/Oe),Re=[],Ze=0;Ze<Fe;Ze++){var ze=Oe*Ze,Ke=Math.min(ze+Oe,ke);Re.push({start:ze,end:Ke})}return Re}}).call(this)}).call(this,oe("buffer").Buffer)},{"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,buffer:90,"copy-to":94,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,mime:374,path:378,stream:398,util:419}],5:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault");oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.regexp.to-string.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.number.constructor.js"),oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.promise.js");var fe=ve(oe("@babel/runtime/regenerator")),be=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Pe=oe("fs"),ye=oe("copy-to"),we=oe("path"),me=oe("mime"),Se=oe("../common/callback"),de=oe("merge-descriptors"),z=oe("../common/utils/isBlob"),ee=z.isBlob,ae=oe("../common/utils/isFile"),re=ae.isFile,le=oe("../common/utils/isBuffer"),ue=le.isBuffer,pe=oe("../common/utils/obj2xml"),Ee=pe.obj2xml,Ce=Ne;Ce.append=function(){var je=(0,be.default)(fe.default.mark(function ke(Oe,Fe,Re){var Ze;return fe.default.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:return Re=Re||{},Re.position===void 0&&(Re.position="0"),Re.subres={append:"",position:Re.position},Re.method="POST",Ke.next=6,this.put(Oe,Fe,Re);case 6:return Ze=Ke.sent,Ze.nextAppendPosition=Ze.res.headers["x-oss-next-append-position"],Ke.abrupt("return",Ze);case 9:case"end":return Ke.stop()}},ke,this)}));function Le(ke,Oe,Fe){return je.apply(this,arguments)}return Le}(),Ce.put=function(){var je=(0,be.default)(fe.default.mark(function ke(Oe,Fe,Re){var Ze,ze,Ke,ot,ct;return fe.default.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:if(Re=Re||{},Re.disabledMD5=Re.disabledMD5===void 0?!0:!!Re.disabledMD5,Re.headers=Re.headers||{},Oe=this._objectName(Oe),!ue(Fe)){bt.next=8;break}Ze=Fe,bt.next=19;break;case 8:if(!(ee(Fe)||re(Fe))){bt.next=18;break}return Re.mime||(re(Fe)?Re.mime=me.getType(we.extname(Fe.name)):Re.mime=Fe.type),bt.next=12,this._createBuffer(Fe,0,Fe.size);case 12:return Ze=bt.sent,bt.next=15,this._getFileSize(Fe);case 15:Re.contentLength=bt.sent,bt.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(Re.meta,Re.headers),ze=Re.method||"PUT",Ke=this._objectRequestParams(ze,Oe,Re),Se.encodeCallback(Ke,Re),Ke.mime=Re.mime,Ke.disabledMD5=Re.disabledMD5,Ke.content=Ze,Ke.successStatuses=[200],bt.next=29,this.request(Ke);case 29:return ot=bt.sent,ct={name:Oe,url:this._objectUrl(Oe),res:ot.res},Ke.headers&&Ke.headers["x-oss-callback"]&&(ct.data=JSON.parse(ot.data.toString())),bt.abrupt("return",ct);case 33:case"end":return bt.stop()}},ke,this)}));function Le(ke,Oe,Fe){return je.apply(this,arguments)}return Le}(),Ce.putStream=function(){var je=(0,be.default)(fe.default.mark(function ke(Oe,Fe,Re){var Ze,ze,Ke,ot;return fe.default.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:return Re=Re||{},Re.headers=Re.headers||{},Oe=this._objectName(Oe),Re.contentLength?Re.headers["Content-Length"]=Re.contentLength:Re.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(Re.meta,Re.headers),Ze=Re.method||"PUT",ze=this._objectRequestParams(Ze,Oe,Re),Se.encodeCallback(ze,Re),ze.mime=Re.mime,ze.stream=Fe,ze.successStatuses=[200],pt.next=13,this.request(ze);case 13:return Ke=pt.sent,ot={name:Oe,url:this._objectUrl(Oe),res:Ke.res},ze.headers&&ze.headers["x-oss-callback"]&&(ot.data=JSON.parse(Ke.data.toString())),pt.abrupt("return",ot);case 17:case"end":return pt.stop()}},ke,this)}));function Le(ke,Oe,Fe){return je.apply(this,arguments)}return Le}(),de(Ce,oe("../common/object/copyObject")),de(Ce,oe("../common/object/getObjectTagging")),de(Ce,oe("../common/object/putObjectTagging")),de(Ce,oe("../common/object/deleteObjectTagging")),de(Ce,oe("../common/image")),de(Ce,oe("../common/object/getBucketVersions")),de(Ce,oe("../common/object/getACL")),de(Ce,oe("../common/object/putACL")),de(Ce,oe("../common/object/head")),de(Ce,oe("../common/object/delete")),de(Ce,oe("../common/object/get")),de(Ce,oe("../common/object/putSymlink")),de(Ce,oe("../common/object/getSymlink")),de(Ce,oe("../common/object/deleteMulti")),de(Ce,oe("../common/object/getObjectMeta")),de(Ce,oe("../common/object/getObjectUrl")),de(Ce,oe("../common/object/generateObjectUrl")),de(Ce,oe("../common/object/signatureUrl")),de(Ce,oe("../common/object/asyncSignatureUrl")),Ce.putMeta=function(){var je=(0,be.default)(fe.default.mark(function ke(Oe,Fe,Re){var Ze;return fe.default.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:return Ke.next=2,this.copy(Oe,Oe,{meta:Fe||{},timeout:Re&&Re.timeout,ctx:Re&&Re.ctx});case 2:return Ze=Ke.sent,Ke.abrupt("return",Ze);case 4:case"end":return Ke.stop()}},ke,this)}));function Le(ke,Oe,Fe){return je.apply(this,arguments)}return Le}(),Ce.list=function(){var je=(0,be.default)(fe.default.mark(function ke(Oe,Fe){var Re,Ze,ze,Ke,ot;return fe.default.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:return Re=this._objectRequestParams("GET","",Fe),Re.query=Oe,Re.xmlResponse=!0,Re.successStatuses=[200],pt.next=6,this.request(Re);case 6:return Ze=pt.sent,ze=Ze.data.Contents||[],Ke=this,ze&&(Array.isArray(ze)||(ze=[ze]),ze=ze.map(function(bt){return{name:bt.Key,url:Ke._objectUrl(bt.Key),lastModified:bt.LastModified,etag:bt.ETag,type:bt.Type,size:Number(bt.Size),storageClass:bt.StorageClass,owner:{id:bt.Owner.ID,displayName:bt.Owner.DisplayName}}})),ot=Ze.data.CommonPrefixes||null,ot&&(Array.isArray(ot)||(ot=[ot]),ot=ot.map(function(bt){return bt.Prefix})),pt.abrupt("return",{res:Ze.res,objects:ze,prefixes:ot,nextMarker:Ze.data.NextMarker||null,isTruncated:Ze.data.IsTruncated==="true"});case 13:case"end":return pt.stop()}},ke,this)}));function Le(ke,Oe){return je.apply(this,arguments)}return Le}(),Ce.listV2=function(){var je=(0,be.default)(fe.default.mark(function ke(Oe){var Fe,Re,Ze,ze,Ke,ot,ct,pt=arguments;return fe.default.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return Fe=pt.length>1&&pt[1]!==void 0?pt[1]:{},Re=Oe["continuation-token"]||Oe.continuationToken,Re&&(Fe.subres=Object.assign({"continuation-token":Re},Fe.subres)),Ze=this._objectRequestParams("GET","",Fe),Ze.query=Object.assign({"list-type":2},Oe),delete Ze.query["continuation-token"],delete Ze.query.continuationToken,Ze.xmlResponse=!0,Ze.successStatuses=[200],qe.next=11,this.request(Ze);case 11:return ze=qe.sent,Ke=ze.data.Contents||[],ot=this,Ke&&(Array.isArray(Ke)||(Ke=[Ke]),Ke=Ke.map(function(at){var gt=null;return at.Owner&&(gt={id:at.Owner.ID,displayName:at.Owner.DisplayName}),{name:at.Key,url:ot._objectUrl(at.Key),lastModified:at.LastModified,etag:at.ETag,type:at.Type,size:Number(at.Size),storageClass:at.StorageClass,owner:gt}})),ct=ze.data.CommonPrefixes||null,ct&&(Array.isArray(ct)||(ct=[ct]),ct=ct.map(function(at){return at.Prefix})),qe.abrupt("return",{res:ze.res,objects:Ke,prefixes:ct,isTruncated:ze.data.IsTruncated==="true",keyCount:+ze.data.KeyCount,continuationToken:ze.data.ContinuationToken||null,nextContinuationToken:ze.data.NextContinuationToken||null});case 18:case"end":return qe.stop()}},ke,this)}));function Le(ke){return je.apply(this,arguments)}return Le}(),Ce.restore=function(){var je=(0,be.default)(fe.default.mark(function ke(Oe){var Fe,Re,Ze,ze,Ke=arguments;return fe.default.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:return Fe=Ke.length>1&&Ke[1]!==void 0?Ke[1]:{type:"Archive"},Fe=Fe||{},Fe.subres=Object.assign({restore:""},Fe.subres),Fe.versionId&&(Fe.subres.versionId=Fe.versionId),Re=this._objectRequestParams("POST",Oe,Fe),Fe.type==="ColdArchive"&&(Ze={RestoreRequest:{Days:Fe.Days?Fe.Days:2,JobParameters:{Tier:Fe.JobParameters?Fe.JobParameters:"Standard"}}},Re.content=Ee(Ze,{headers:!0}),Re.mime="xml"),Re.successStatuses=[202],ct.next=9,this.request(Re);case 9:return ze=ct.sent,ct.abrupt("return",{res:ze.res});case 11:case"end":return ct.stop()}},ke,this)}));function Le(ke){return je.apply(this,arguments)}return Le}(),Ce._objectUrl=function(Le){return this._getReqUrl({bucket:this.options.bucket,object:Le})},Ce._objectRequestParams=function(Le,ke,Oe){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");Oe=Oe||{},ke=this._objectName(ke);var Fe={object:ke,bucket:this.options.bucket,method:Le,subres:Oe&&Oe.subres,timeout:Oe&&Oe.timeout,ctx:Oe&&Oe.ctx};return Oe.headers&&(Fe.headers={},ye(Oe.headers).to(Fe.headers)),Fe},Ce._objectName=function(Le){return Le.replace(/^\/+/,"")},Ce._convertMetaToHeaders=function(Le,ke){Le&&Object.keys(Le).forEach(function(Oe){ke["x-oss-meta-".concat(Oe)]=Le[Oe]})},Ce._deleteFileSafe=function(Le){var ke=this;return new Promise(function(Oe){Pe.exists(Le,function(Fe){Fe?Pe.unlink(Le,function(Re){Re&&ke.debug("unlink %j error: %s",Le,Re,"error"),Oe()}):Oe()})})}},{"../common/callback":24,"../common/image":27,"../common/object/asyncSignatureUrl":31,"../common/object/copyObject":32,"../common/object/delete":33,"../common/object/deleteMulti":34,"../common/object/deleteObjectTagging":35,"../common/object/generateObjectUrl":36,"../common/object/get":37,"../common/object/getACL":38,"../common/object/getBucketVersions":39,"../common/object/getObjectMeta":40,"../common/object/getObjectTagging":41,"../common/object/getObjectUrl":42,"../common/object/getSymlink":43,"../common/object/head":44,"../common/object/putACL":45,"../common/object/putObjectTagging":46,"../common/object/putSymlink":47,"../common/object/signatureUrl":48,"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"../common/utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,fs:89,"merge-descriptors":372,mime:374,path:378}],6:[function(oe,_e,Ne){"use strict";Ne.version="6.18.1"},{}],7:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator")),be=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.abortBucketWorm=void 0;var Pe=oe("../utils/checkBucketName");function ye(me,Se){return we.apply(this,arguments)}function we(){return we=(0,be.default)(fe.default.mark(function me(Se,de){var z,ee;return fe.default.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return Pe.checkBucketName(Se),z=this._bucketRequestParams("DELETE",Se,"worm",de),re.next=4,this.request(z);case 4:return ee=re.sent,re.abrupt("return",{res:ee.res,status:ee.status});case 6:case"end":return re.stop()}},me,this)})),we.apply(this,arguments)}Ne.abortBucketWorm=ye},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator")),be=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.completeBucketWorm=void 0;var Pe=oe("../utils/checkBucketName");function ye(me,Se,de){return we.apply(this,arguments)}function we(){return we=(0,be.default)(fe.default.mark(function me(Se,de,z){var ee,ae;return fe.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return Pe.checkBucketName(Se),ee=this._bucketRequestParams("POST",Se,{wormId:de},z),le.next=4,this.request(ee);case 4:return ae=le.sent,le.abrupt("return",{res:ae.res,status:ae.status});case 6:case"end":return le.stop()}},me,this)})),we.apply(this,arguments)}Ne.completeBucketWorm=ye},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var be=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.deleteBucketInventory=void 0;var Pe=oe("../utils/checkBucketName");function ye(me,Se){return we.apply(this,arguments)}function we(){return we=(0,be.default)(fe.default.mark(function me(Se,de){var z,ee,ae,re,le=arguments;return fe.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return z=le.length>2&&le[2]!==void 0?le[2]:{},ee=Object.assign({inventory:"",inventoryId:de},z.subres),Pe.checkBucketName(Se),ae=this._bucketRequestParams("DELETE",Se,ee,z),ae.successStatuses=[204],pe.next=7,this.request(ae);case 7:return re=pe.sent,pe.abrupt("return",{status:re.status,res:re.res});case 9:case"end":return pe.stop()}},me,this)})),we.apply(this,arguments)}Ne.deleteBucketInventory=ye},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],10:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator")),be=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Pe=oe("../utils/checkBucketName"),ye=Pe.checkBucketName,we=Ne;we.deleteBucketLifecycle=function(){var me=(0,be.default)(fe.default.mark(function de(z,ee){var ae,re;return fe.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ye(z),ae=this._bucketRequestParams("DELETE",z,"lifecycle",ee),ae.successStatuses=[204],ue.next=5,this.request(ae);case 5:return re=ue.sent,ue.abrupt("return",{res:re.res});case 7:case"end":return ue.stop()}},de,this)}));function Se(de,z){return me.apply(this,arguments)}return Se}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator")),be=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Pe=oe("../utils/checkBucketName"),ye=Pe.checkBucketName,we=Ne;we.deleteBucketWebsite=function(){var me=(0,be.default)(fe.default.mark(function de(z,ee){var ae,re;return fe.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ye(z),ae=this._bucketRequestParams("DELETE",z,"website",ee),ae.successStatuses=[204],ue.next=5,this.request(ae);case 5:return re=ue.sent,ue.abrupt("return",{res:re.res});case 7:case"end":return ue.stop()}},de,this)}));function Se(de,z){return me.apply(this,arguments)}return Se}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator")),be=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.extendBucketWorm=void 0;var Pe=oe("../utils/checkBucketName"),ye=oe("../utils/obj2xml");function we(Se,de,z,ee){return me.apply(this,arguments)}function me(){return me=(0,be.default)(fe.default.mark(function Se(de,z,ee,ae){var re,le,ue;return fe.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return Pe.checkBucketName(de),re=this._bucketRequestParams("POST",de,{wormExtend:"",wormId:z},ae),le={ExtendWormConfiguration:{RetentionPeriodInDays:ee}},re.mime="xml",re.content=ye.obj2xml(le,{headers:!0}),re.successStatuses=[200],Ee.next=8,this.request(re);case 8:return ue=Ee.sent,Ee.abrupt("return",{res:ue.res,status:ue.status});case 10:case"end":return Ee.stop()}},Se,this)})),me.apply(this,arguments)}Ne.extendBucketWorm=we},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var be=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.getBucketInventory=void 0;var Pe=oe("../utils/checkBucketName"),ye=oe("../utils/formatInventoryConfig");function we(Se,de){return me.apply(this,arguments)}function me(){return me=(0,be.default)(fe.default.mark(function Se(de,z){var ee,ae,re,le,ue=arguments;return fe.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return ee=ue.length>2&&ue[2]!==void 0?ue[2]:{},ae=Object.assign({inventory:"",inventoryId:z},ee.subres),Pe.checkBucketName(de),re=this._bucketRequestParams("GET",de,ae,ee),re.successStatuses=[200],re.xmlResponse=!0,Ee.next=8,this.request(re);case 8:return le=Ee.sent,Ee.abrupt("return",{status:le.status,res:le.res,inventory:ye.formatInventoryConfig(le.data)});case 10:case"end":return Ee.stop()}},Se,this)})),me.apply(this,arguments)}Ne.getBucketInventory=we},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],14:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.map.js");var be=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Pe=oe("../utils/checkBucketName"),ye=Pe.checkBucketName,we=oe("../utils/isArray"),me=we.isArray,Se=oe("../utils/formatObjKey"),de=Se.formatObjKey,z=Ne;z.getBucketLifecycle=function(){var ee=(0,be.default)(fe.default.mark(function re(le,ue){var pe,Ee,Ce;return fe.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return ye(le),pe=this._bucketRequestParams("GET",le,"lifecycle",ue),pe.successStatuses=[200],pe.xmlResponse=!0,Le.next=6,this.request(pe);case 6:return Ee=Le.sent,Ce=Ee.data.Rule||null,Ce&&(me(Ce)||(Ce=[Ce]),Ce=Ce.map(function(ke){return ke.ID&&(ke.id=ke.ID,delete ke.ID),ke.Tag&&!me(ke.Tag)&&(ke.Tag=[ke.Tag]),de(ke,"firstLowerCase")})),Le.abrupt("return",{rules:Ce,res:Ee.res});case 10:case"end":return Le.stop()}},re,this)}));function ae(re,le){return ee.apply(this,arguments)}return ae}()},{"../utils/checkBucketName":51,"../utils/formatObjKey":61,"../utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280}],15:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator")),be=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Pe=oe("../utils/checkBucketName"),ye=Pe.checkBucketName,we=Ne;we.getBucketVersioning=function(){var me=(0,be.default)(fe.default.mark(function de(z,ee){var ae,re,le;return fe.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return ye(z),ae=this._bucketRequestParams("GET",z,"versioning",ee),ae.xmlResponse=!0,ae.successStatuses=[200],pe.next=6,this.request(ae);case 6:return re=pe.sent,le=re.data.Status,pe.abrupt("return",{status:re.status,versionStatus:le,res:re.res});case 9:case"end":return pe.stop()}},de,this)}));function Se(de,z){return me.apply(this,arguments)}return Se}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator")),be=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Pe=oe("../utils/checkBucketName"),ye=Pe.checkBucketName,we=oe("../utils/isObject"),me=we.isObject,Se=Ne;Se.getBucketWebsite=function(){var de=(0,be.default)(fe.default.mark(function ee(ae,re){var le,ue,pe;return fe.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ye(ae),le=this._bucketRequestParams("GET",ae,"website",re),le.successStatuses=[200],le.xmlResponse=!0,Ce.next=6,this.request(le);case 6:return ue=Ce.sent,pe=[],ue.data.RoutingRules&&ue.data.RoutingRules.RoutingRule&&(me(ue.data.RoutingRules.RoutingRule)?pe=[ue.data.RoutingRules.RoutingRule]:pe=ue.data.RoutingRules.RoutingRule),Ce.abrupt("return",{index:ue.data.IndexDocument&&ue.data.IndexDocument.Suffix||"",supportSubDir:ue.data.IndexDocument&&ue.data.IndexDocument.SupportSubDir||"false",type:ue.data.IndexDocument&&ue.data.IndexDocument.Type,routingRules:pe,error:ue.data.ErrorDocument&&ue.data.ErrorDocument.Key||null,res:ue.res});case 10:case"end":return Ce.stop()}},ee,this)}));function z(ee,ae){return de.apply(this,arguments)}return z}()},{"../utils/checkBucketName":51,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],17:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var be=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.getBucketWorm=void 0;var Pe=oe("../utils/checkBucketName"),ye=oe("../utils/dataFix");function we(Se,de){return me.apply(this,arguments)}function me(){return me=(0,be.default)(fe.default.mark(function Se(de,z){var ee,ae;return fe.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return Pe.checkBucketName(de),ee=this._bucketRequestParams("GET",de,"worm",z),ee.successStatuses=[200],ee.xmlResponse=!0,le.next=6,this.request(ee);case 6:return ae=le.sent,ye.dataFix(ae.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),le.abrupt("return",Object.assign(Object.assign({},ae.data),{res:ae.res,status:ae.status}));case 9:case"end":return le.stop()}},Se,this)})),me.apply(this,arguments)}Ne.getBucketWorm=we},{"../utils/checkBucketName":51,"../utils/dataFix":57,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],18:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator")),be=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.initiateBucketWorm=void 0;var Pe=oe("../utils/obj2xml"),ye=oe("../utils/checkBucketName");function we(Se,de,z){return me.apply(this,arguments)}function me(){return me=(0,be.default)(fe.default.mark(function Se(de,z,ee){var ae,re,le;return fe.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return ye.checkBucketName(de),ae=this._bucketRequestParams("POST",de,"worm",ee),re={InitiateWormConfiguration:{RetentionPeriodInDays:z}},ae.mime="xml",ae.content=Pe.obj2xml(re,{headers:!0}),ae.successStatuses=[200],pe.next=8,this.request(ae);case 8:return le=pe.sent,pe.abrupt("return",{res:le.res,wormId:le.res.headers["x-oss-worm-id"],status:le.status});case 10:case"end":return pe.stop()}},Se,this)})),me.apply(this,arguments)}Ne.initiateBucketWorm=we},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var be=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.listBucketInventory=void 0;var Pe=oe("../utils/checkBucketName"),ye=oe("../utils/formatInventoryConfig");function we(Se){return me.apply(this,arguments)}function me(){return me=(0,be.default)(fe.default.mark(function Se(de){var z,ee,ae,re,le,ue,pe,Ee,Ce=arguments;return fe.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return z=Ce.length>1&&Ce[1]!==void 0?Ce[1]:{},ee=z.continuationToken,ae=Object.assign({inventory:""},ee&&{"continuation-token":ee},z.subres),Pe.checkBucketName(de),re=this._bucketRequestParams("GET",de,ae,z),re.successStatuses=[200],re.xmlResponse=!0,Le.next=9,this.request(re);case 9:return le=Le.sent,ue=le.data,pe=le.res,Ee=le.status,Le.abrupt("return",{isTruncated:ue.IsTruncated==="true",nextContinuationToken:ue.NextContinuationToken,inventoryList:ye.formatInventoryConfig(ue.InventoryConfiguration,!0),status:Ee,res:pe});case 12:case"end":return Le.stop()}},Se,this)})),me.apply(this,arguments)}Ne.listBucketInventory=we},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],20:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.array.concat.js");var be=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.putBucketInventory=void 0;var Pe=oe("../utils/checkBucketName"),ye=oe("../utils/obj2xml");function we(Se,de){return me.apply(this,arguments)}function me(){return me=(0,be.default)(fe.default.mark(function Se(de,z){var ee,ae,re,le,ue,pe,Ee,Ce,je,Le,ke,Oe=arguments;return fe.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return ee=Oe.length>2&&Oe[2]!==void 0?Oe[2]:{},ae=Object.assign({inventory:"",inventoryId:z.id},ee.subres),Pe.checkBucketName(de),re=z.OSSBucketDestination,le=z.optionalFields,ue=z.includedObjectVersions,pe="acs:oss:::",Ee="acs:ram::".concat(re.accountId,":role/"),Ce={InventoryConfiguration:{Id:z.id,IsEnabled:z.isEnabled,Filter:{Prefix:z.prefix||""},Destination:{OSSBucketDestination:{Format:re.format,AccountId:re.accountId,RoleArn:"".concat(Ee).concat(re.rolename),Bucket:"".concat(pe).concat(re.bucket),Prefix:re.prefix||"",Encryption:re.encryption||""}},Schedule:{Frequency:z.frequency},IncludedObjectVersions:ue,OptionalFields:{Field:(le==null?void 0:le.field)||[]}}},je=ye.obj2xml(Ce,{headers:!0,firstUpperCase:!0}),Le=this._bucketRequestParams("PUT",de,ae,ee),Le.successStatuses=[200],Le.mime="xml",Le.content=je,Re.next=14,this.request(Le);case 14:return ke=Re.sent,Re.abrupt("return",{status:ke.status,res:ke.res});case 16:case"end":return Re.stop()}},Se,this)})),me.apply(this,arguments)}Ne.putBucketInventory=we},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287}],21:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.array.includes.js");var be=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Pe=oe("../utils/checkBucketName"),ye=Pe.checkBucketName,we=oe("../utils/isArray"),me=we.isArray,Se=oe("../utils/deepCopy"),de=Se.deepCopy,z=oe("../utils/isObject"),ee=z.isObject,ae=oe("../utils/obj2xml"),re=ae.obj2xml,le=oe("../utils/checkObjectTag"),ue=le.checkObjectTag,pe=oe("../utils/getStrBytesCount"),Ee=pe.getStrBytesCount,Ce=Ne;Ce.putBucketLifecycle=function(){var Fe=(0,be.default)(fe.default.mark(function Ze(ze,Ke,ot){var ct,pt,bt,qe,at;return fe.default.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:if(ye(ze),me(Ke)){Ct.next=3;break}throw new Error("rules must be Array");case 3:return ct=this._bucketRequestParams("PUT",ze,"lifecycle",ot),pt=[],bt={LifecycleConfiguration:{Rule:pt}},Ke.forEach(function(wt){je(wt),Oe(wt),wt.id&&(wt.ID=wt.id,delete wt.id),pt.push(wt)}),qe=re(bt,{headers:!0,firstUpperCase:!0}),ct.content=qe,ct.mime="xml",ct.successStatuses=[200],Ct.next=13,this.request(ct);case 13:return at=Ct.sent,Ct.abrupt("return",{res:at.res});case 15:case"end":return Ct.stop()}},Ze,this)}));function Re(Ze,ze,Ke){return Fe.apply(this,arguments)}return Re}();function je(Fe){Fe.days&&(Fe.expiration={days:Fe.days}),Fe.date&&(Fe.expiration={createdBeforeDate:Fe.date})}function Le(Fe,Re){var Ze=Fe.days,ze=Fe.createdBeforeDate;if(!Ze&&!ze)throw new Error("".concat(Re," must includes days or createdBeforeDate"));if(Ze&&!/^[1-9][0-9]*$/.test(Ze))throw new Error("days must be a positive integer");if(ze&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(ze))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function ke(Fe){if(!me(Fe)&&!ee(Fe))throw new Error("tag must be Object or Array");Fe=ee(Fe)?[Fe]:Fe;var Re={},Ze=de(Fe);Ze.forEach(function(ze){Re[ze.key]=ze.value}),ue(Re)}function Oe(Fe){if(Fe.id&&Ee(Fe.id)>255)throw new Error("ID is composed of 255 bytes at most");if(Fe.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(Fe.status))throw new Error("Status must be Enabled or Disabled");if(Fe.transition){if(!["IA","Archive"].includes(Fe.transition.storageClass))throw new Error("StorageClass must be IA or Archive");Le(Fe.transition,"Transition")}if(Fe.expiration){if(!Fe.expiration.expiredObjectDeleteMarker)Le(Fe.expiration,"Expiration");else if(Fe.expiration.days||Fe.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(Fe.abortMultipartUpload&&Le(Fe.abortMultipartUpload,"AbortMultipartUpload"),!Fe.expiration&&!Fe.abortMultipartUpload&&!Fe.transition&&!Fe.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(Fe.tag){if(Fe.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");ke(Fe.tag)}}},{"../utils/checkBucketName":51,"../utils/checkObjectTag":54,"../utils/deepCopy":58,"../utils/getStrBytesCount":62,"../utils/isArray":63,"../utils/isObject":70,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],22:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.includes.js");var be=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Pe=oe("../utils/checkBucketName"),ye=Pe.checkBucketName,we=oe("../utils/obj2xml"),me=we.obj2xml,Se=Ne;Se.putBucketVersioning=function(){var de=(0,be.default)(fe.default.mark(function ee(ae,re){var le,ue,pe,Ee,Ce=arguments;return fe.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(le=Ce.length>2&&Ce[2]!==void 0?Ce[2]:{},ye(ae),["Enabled","Suspended"].includes(re)){Le.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return ue=this._bucketRequestParams("PUT",ae,"versioning",le),pe={VersioningConfiguration:{Status:re}},ue.mime="xml",ue.content=me(pe,{headers:!0}),Le.next=10,this.request(ue);case 10:return Ee=Le.sent,Le.abrupt("return",{res:Ee.res,status:Ee.status});case 12:case"end":return Le.stop()}},ee,this)}));function z(ee,ae){return de.apply(this,arguments)}return z}()},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277}],23:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator")),be=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Pe=oe("../utils/checkBucketName"),ye=Pe.checkBucketName,we=oe("../utils/obj2xml"),me=we.obj2xml,Se=oe("../utils/isArray"),de=Se.isArray,z=Ne;z.putBucketWebsite=function(){var ee=(0,be.default)(fe.default.mark(function re(le){var ue,pe,Ee,Ce,je,Le,ke,Oe=arguments;return fe.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(ue=Oe.length>1&&Oe[1]!==void 0?Oe[1]:{},pe=Oe.length>2?Oe[2]:void 0,ye(le),Ee=this._bucketRequestParams("PUT",le,"website",pe),Ce={Suffix:ue.index||"index.html"},je={IndexDocument:Ce},Le={WebsiteConfiguration:je},ue.supportSubDir&&(Ce.SupportSubDir=ue.supportSubDir),ue.type&&(Ce.Type=ue.type),ue.error&&(je.ErrorDocument={Key:ue.error}),ue.routingRules===void 0){Re.next=14;break}if(de(ue.routingRules)){Re.next=13;break}throw new Error("RoutingRules must be Array");case 13:je.RoutingRules={RoutingRule:ue.routingRules};case 14:return Le=me(Le),Ee.content=Le,Ee.mime="xml",Ee.successStatuses=[200],Re.next=20,this.request(Ee);case 20:return ke=Re.sent,Re.abrupt("return",{res:ke.res});case 22:case"end":return Re.stop()}},re,this)}));function ae(re){return ee.apply(this,arguments)}return ae}()},{"../utils/checkBucketName":51,"../utils/isArray":63,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],24:[function(oe,_e,Ne){(function(ve){(function(){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.regexp.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),Ne.encodeCallback=function(be,Pe){if(be.headers=be.headers||{},!Object.prototype.hasOwnProperty.call(be.headers,"x-oss-callback")&&Pe.callback){var ye={callbackUrl:encodeURI(Pe.callback.url),callbackBody:Pe.callback.body};Pe.callback.host&&(ye.callbackHost=Pe.callback.host),Pe.callback.contentType&&(ye.callbackBodyType=Pe.callback.contentType);var we=ve.from(JSON.stringify(ye)).toString("base64");if(be.headers["x-oss-callback"]=we,Pe.callback.customValue){var me={};Object.keys(Pe.callback.customValue).forEach(function(Se){me["x:".concat(Se)]=Pe.callback.customValue[Se].toString()}),be.headers["x-oss-callback-var"]=ve.from(JSON.stringify(me)).toString("base64")}}}}).call(this)}).call(this,oe("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/web.dom-collections.for-each.js":339}],25:[function(oe,_e,Ne){"use strict";oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js");var ve=function(de){return de&&de.__esModule?de:{default:de}};Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.getReqUrl=void 0;var fe=ve(oe("copy-to")),be=ve(oe("url")),Pe=ve(oe("merge-descriptors")),ye=ve(oe("is-type-of")),we=oe("../utils/isIP"),me=oe("../utils/checkConfigValid");function Se(de){var z={},ee=this.options.cname;me.checkConfigValid(this.options.endpoint,"endpoint"),fe.default(this.options.endpoint,!1).to(z),de.bucket&&!ee&&!we.isIP(z.hostname)&&!this.options.sldEnable&&(z.host="".concat(de.bucket,".").concat(z.host));var ae="/";de.bucket&&this.options.sldEnable&&(ae+="".concat(de.bucket,"/")),de.object&&(ae+=this._escape(de.object).replace(/\+/g,"%2B")),z.pathname=ae;var re={};if(de.query&&Pe.default(re,de.query),de.subres){var le={};ye.default.string(de.subres)?le[de.subres]="":ye.default.array(de.subres)?de.subres.forEach(function(ue){le[ue]=""}):le=de.subres,Pe.default(re,le)}return z.query=re,be.default.format(z)}Ne.getReqUrl=Se},{"../utils/checkConfigValid":52,"../utils/isIP":69,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466,"merge-descriptors":372,url:472}],26:[function(oe,_e,Ne){"use strict";oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.string.trim.js");var ve=oe("humanize-ms"),fe=oe("url"),be=oe("../utils/checkBucketName"),Pe=be.checkBucketName,ye=oe("../utils/setRegion"),we=ye.setRegion,me=oe("../utils/checkConfigValid"),Se=me.checkConfigValid;function de(z,ee){Se(z,"endpoint");var ae=fe.parse(z);if(ae.protocol||(ae=fe.parse("http".concat(ee?"s":"","://").concat(z))),ae.protocol!=="http:"&&ae.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return ae}_e.exports=function(z){if(!z||!z.accessKeyId||!z.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");z.stsToken&&!z.refreshSTSToken&&!z.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),z.bucket&&Pe(z.bucket);var ee=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:6e4*5,retryMax:0},z);if(ee.accessKeyId=ee.accessKeyId.trim(),ee.accessKeySecret=ee.accessKeySecret.trim(),ee.timeout&&(ee.timeout=ve(ee.timeout)),ee.endpoint)ee.endpoint=de(ee.endpoint,ee.secure);else if(ee.region)ee.endpoint=we(ee.region,ee.internal,ee.secure);else throw new Error("require options.endpoint or options.region");return ee.inited=!0,ee}},{"../utils/checkBucketName":51,"../utils/checkConfigValid":52,"../utils/setRegion":75,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.trim.js":308,"humanize-ms":356,url:472}],27:[function(oe,_e,Ne){"use strict";var ve=oe("merge-descriptors"),fe=Ne;ve(fe,oe("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.concat.js");var be=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Pe=oe("../utils/checkBucketName"),ye=Pe.checkBucketName,we=oe("querystring"),me=oe("js-base64"),Se=me.Base64.encode,de=Ne;de.processObjectSave=function(){var ee=(0,be.default)(fe.default.mark(function re(le,ue,pe,Ee){var Ce,je,Le,ke;return fe.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return z(le,"sourceObject"),z(ue,"targetObject"),z(pe,"process"),ue=this._objectName(ue),Ee&&ye(Ee),Ce=this._objectRequestParams("POST",le,{subres:"x-oss-process"}),je=Ee?",b_".concat(Se(Ee)):"",ue=Se(ue),Le={"x-oss-process":"".concat(pe,"|sys/saveas,o_").concat(ue).concat(je)},Ce.content=we.stringify(Le),Fe.next=12,this.request(Ce);case 12:return ke=Fe.sent,Fe.abrupt("return",{res:ke.res,status:ke.res.status});case 14:case"end":return Fe.stop()}},re,this)}));function ae(re,le,ue,pe){return ee.apply(this,arguments)}return ae}();function z(ee,ae){if(!ee)throw new Error("".concat(ae," is required"));if(typeof ee!="string")throw new Error("".concat(ae," must be String"))}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"js-base64":371,querystring:385}],29:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.array.from.js"),oe("core-js/modules/es.string.iterator.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.array.filter.js"),oe("core-js/modules/es.array.find.js"),oe("core-js/modules/es.regexp.to-string.js");var be=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Pe=oe("debug")("ali-oss:multipart-copy"),ye=oe("copy-to"),we=Ne;we.uploadPartCopy=function(){var me=(0,be.default)(fe.default.mark(function de(z,ee,ae,re,le){var ue,pe,Ee,Ce,je,Le=arguments;return fe.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return ue=Le.length>5&&Le[5]!==void 0?Le[5]:{},ue.headers=ue.headers||{},pe=ue.versionId||ue.subres&&ue.subres.versionId||null,pe?Ee="/".concat(le.sourceBucketName,"/").concat(encodeURIComponent(le.sourceKey),"?versionId=").concat(pe):Ee="/".concat(le.sourceBucketName,"/").concat(encodeURIComponent(le.sourceKey)),ue.headers["x-oss-copy-source"]=Ee,re&&(ue.headers["x-oss-copy-source-range"]="bytes=".concat(re)),ue.subres={partNumber:ae,uploadId:ee},Ce=this._objectRequestParams("PUT",z,ue),Ce.mime=ue.mime,Ce.successStatuses=[200],Oe.next=12,this.request(Ce);case 12:return je=Oe.sent,Oe.abrupt("return",{name:z,etag:je.res.headers.etag,res:je.res});case 14:case"end":return Oe.stop()}},de,this)}));function Se(de,z,ee,ae,re){return me.apply(this,arguments)}return Se}(),we.multipartUploadCopy=function(){var me=(0,be.default)(fe.default.mark(function de(z,ee){var ae,re,le,ue,pe,Ee,Ce,je,Le,ke,Oe,Fe,Re=arguments;return fe.default.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return ae=Re.length>2&&Re[2]!==void 0?Re[2]:{},this.resetCancelFlag(),re=ae.versionId,le=re===void 0?null:re,ue={versionId:le},ze.next=6,this._getObjectMeta(ee.sourceBucketName,ee.sourceKey,ue);case 6:if(pe=ze.sent,Ee=pe.res.headers["content-length"],ee.startOffset=ee.startOffset||0,ee.endOffset=ee.endOffset||Ee,!(ae.checkpoint&&ae.checkpoint.uploadId)){ze.next=14;break}return ze.next=13,this._resumeMultipartCopy(ae.checkpoint,ee,ae);case 13:return ze.abrupt("return",ze.sent);case 14:if(Ce=102400,je=ee.endOffset-ee.startOffset,!(je<Ce)){ze.next=18;break}throw new Error("copySize must not be smaller than ".concat(Ce));case 18:if(!(ae.partSize&&ae.partSize<Ce)){ze.next=20;break}throw new Error("partSize must not be smaller than ".concat(Ce));case 20:return ze.next=22,this.initMultipartUpload(z,ae);case 22:if(Le=ze.sent,ke=Le.uploadId,Oe=this._getPartSize(je,ae.partSize),Fe={name:z,copySize:je,partSize:Oe,uploadId:ke,doneParts:[]},!(ae&&ae.progress)){ze.next=29;break}return ze.next=29,ae.progress(0,Fe,Le.res);case 29:return ze.next=31,this._resumeMultipartCopy(Fe,ee,ae);case 31:return ze.abrupt("return",ze.sent);case 32:case"end":return ze.stop()}},de,this)}));function Se(de,z){return me.apply(this,arguments)}return Se}(),we._resumeMultipartCopy=function(){var me=(0,be.default)(fe.default.mark(function de(z,ee,ae){var re,le,ue,pe,Ee,Ce,je,Le,ke,Oe,Fe,Re,Ze,ze,Ke,ot,ct,pt,bt,qe,at;return fe.default.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:if(!this.isCancel()){Ct.next=2;break}throw this._makeCancelEvent();case 2:if(re=ae.versionId,le=re===void 0?null:re,ue={versionId:le},pe=z.copySize,Ee=z.partSize,Ce=z.uploadId,je=z.doneParts,Le=z.name,ke=this._divideMultipartCopyParts(pe,Ee,ee.startOffset),Oe=ke.length,Fe={headers:{}},ae.copyheaders&&ye(ae.copyheaders).to(Fe.headers),le&&ye(ue).to(Fe),Re=function(vt,mt,xt){return new Promise(function(){var At=(0,be.default)(fe.default.mark(function kt(Wt,Et){var St,tt,ft;return fe.default.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:if(lt.prev=0,vt.isCancel()){lt.next=22;break}return St=ke[mt-1],tt="".concat(St.start,"-").concat(St.end-1),lt.prev=4,lt.next=7,vt.uploadPartCopy(Le,Ce,mt,tt,xt,Fe);case 7:ft=lt.sent,lt.next=15;break;case 10:if(lt.prev=10,lt.t0=lt.catch(4),lt.t0.status!==404){lt.next=14;break}throw vt._makeAbortEvent();case 14:throw lt.t0;case 15:if(vt.isCancel()){lt.next=22;break}if(Pe("content-range ".concat(ft.res.headers["content-range"])),je.push({number:mt,etag:ft.res.headers.etag}),z.doneParts=je,!(ae&&ae.progress)){lt.next=22;break}return lt.next=22,ae.progress(je.length/Oe,z,ft.res);case 22:Wt(),lt.next=29;break;case 25:lt.prev=25,lt.t1=lt.catch(0),lt.t1.partNum=mt,Et(lt.t1);case 29:case"end":return lt.stop()}},kt,null,[[0,25],[4,10]])}));return function(kt,Wt){return At.apply(this,arguments)}}())},Ze=Array.from(new Array(Oe),function(wt,vt){return vt+1}),ze=je.map(function(wt){return wt.number}),Ke=Ze.filter(function(wt){return ze.indexOf(wt)<0}),ot=5,ct=ae.parallel||ot,!(this.checkBrowserAndVersion("Internet Explorer","10")||ct===1)){Ct.next=28;break}pt=0;case 18:if(!(pt<Ke.length)){Ct.next=26;break}if(!this.isCancel()){Ct.next=21;break}throw this._makeCancelEvent();case 21:return Ct.next=23,Re(this,Ke[pt],ee);case 23:pt++,Ct.next=18;break;case 26:Ct.next=40;break;case 28:return Ct.next=30,this._parallelNode(Ke,ct,Re,ee);case 30:if(bt=Ct.sent,qe=bt.find(function(wt){return wt.name==="abort"}),!qe){Ct.next=34;break}throw qe;case 34:if(!this.isCancel()){Ct.next=36;break}throw this._makeCancelEvent();case 36:if(!(bt&&bt.length>0)){Ct.next=40;break}throw at=bt[0],at.message="Failed to copy some parts with error: ".concat(at.toString()," part_num: ").concat(at.partNum),at;case 40:return Ct.next=42,this.completeMultipartUpload(Le,Ce,je,ae);case 42:return Ct.abrupt("return",Ct.sent);case 43:case"end":return Ct.stop()}},de,this)}));function Se(de,z,ee){return me.apply(this,arguments)}return Se}(),we._divideMultipartCopyParts=function(Se,de,z){for(var ee=Math.ceil(Se/de),ae=[],re=0;re<ee;re++){var le=de*re+z,ue=Math.min(le+de,Se+z);ae.push({start:le,end:ue})}return ae},we._getObjectMeta=function(){var me=(0,be.default)(fe.default.mark(function de(z,ee,ae){var re,le;return fe.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return re=this.getBucket(),this.setBucket(z),pe.next=4,this.head(ee,ae);case 4:return le=pe.sent,this.setBucket(re),pe.abrupt("return",le);case 7:case"end":return pe.stop()}},de,this)}));function Se(de,z,ee){return me.apply(this,arguments)}return Se}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,debug:465}],30:[function(oe,_e,Ne){(function(ve){(function(){"use strict";var fe=oe("@babel/runtime/helpers/interopRequireDefault"),be=fe(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.array.filter.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.array.sort.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.regexp.to-string.js");var Pe=fe(oe("@babel/runtime/helpers/asyncToGenerator")),ye=oe("copy-to"),we=oe("./callback"),me=oe("./utils/deepCopy"),Se=me.deepCopyWith,de=oe("./utils/isBuffer"),z=de.isBuffer,ee=oe("./utils/omit"),ae=ee.omit,re=Ne;re.listUploads=function(){var le=(0,Pe.default)(be.default.mark(function pe(Ee,Ce){var je,Le,ke,Oe;return be.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Ce=Ce||{},je={},ye(Ce).to(je),je.subres="uploads",Le=this._objectRequestParams("GET","",je),Le.query=Ee,Le.xmlResponse=!0,Le.successStatuses=[200],Re.next=10,this.request(Le);case 10:return ke=Re.sent,Oe=ke.data.Upload||[],Array.isArray(Oe)||(Oe=[Oe]),Oe=Oe.map(function(Ze){return{name:Ze.Key,uploadId:Ze.UploadId,initiated:Ze.Initiated}}),Re.abrupt("return",{res:ke.res,uploads:Oe,bucket:ke.data.Bucket,nextKeyMarker:ke.data.NextKeyMarker,nextUploadIdMarker:ke.data.NextUploadIdMarker,isTruncated:ke.data.IsTruncated==="true"});case 15:case"end":return Re.stop()}},pe,this)}));function ue(pe,Ee){return le.apply(this,arguments)}return ue}(),re.listParts=function(){var le=(0,Pe.default)(be.default.mark(function pe(Ee,Ce,je,Le){var ke,Oe,Fe;return be.default.wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return Le=Le||{},ke={},ye(Le).to(ke),ke.subres={uploadId:Ce},Oe=this._objectRequestParams("GET",Ee,ke),Oe.query=je,Oe.xmlResponse=!0,Oe.successStatuses=[200],Ze.next=10,this.request(Oe);case 10:return Fe=Ze.sent,Ze.abrupt("return",{res:Fe.res,uploadId:Fe.data.UploadId,bucket:Fe.data.Bucket,name:Fe.data.Key,partNumberMarker:Fe.data.PartNumberMarker,nextPartNumberMarker:Fe.data.NextPartNumberMarker,maxParts:Fe.data.MaxParts,isTruncated:Fe.data.IsTruncated,parts:Fe.data.Part||[]});case 12:case"end":return Ze.stop()}},pe,this)}));function ue(pe,Ee,Ce,je){return le.apply(this,arguments)}return ue}(),re.abortMultipartUpload=function(){var le=(0,Pe.default)(be.default.mark(function pe(Ee,Ce,je){var Le,ke,Oe;return be.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return this._stop(),je=je||{},Le={},ye(je).to(Le),Le.subres={uploadId:Ce},ke=this._objectRequestParams("DELETE",Ee,Le),ke.successStatuses=[204],Re.next=9,this.request(ke);case 9:return Oe=Re.sent,Re.abrupt("return",{res:Oe.res});case 11:case"end":return Re.stop()}},pe,this)}));function ue(pe,Ee,Ce){return le.apply(this,arguments)}return ue}(),re.initMultipartUpload=function(){var le=(0,Pe.default)(be.default.mark(function pe(Ee,Ce){var je,Le,ke;return be.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Ce=Ce||{},je={},ye(Ce).to(je),je.headers=je.headers||{},this._convertMetaToHeaders(Ce.meta,je.headers),je.subres="uploads",Le=this._objectRequestParams("POST",Ee,je),Le.mime=Ce.mime,Le.xmlResponse=!0,Le.successStatuses=[200],Fe.next=12,this.request(Le);case 12:return ke=Fe.sent,Fe.abrupt("return",{res:ke.res,bucket:ke.data.Bucket,name:ke.data.Key,uploadId:ke.data.UploadId});case 14:case"end":return Fe.stop()}},pe,this)}));function ue(pe,Ee){return le.apply(this,arguments)}return ue}(),re.uploadPart=function(){var le=(0,Pe.default)(be.default.mark(function pe(Ee,Ce,je,Le,ke,Oe,Fe){var Re,Ze;return be.default.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:if(Re={size:Oe-ke},Ze=ve&&ve.browser,!Ze){Ke.next=8;break}return Ke.next=5,this._createBuffer(Le,ke,Oe);case 5:Re.content=Ke.sent,Ke.next=11;break;case 8:return Ke.next=10,this._createStream(Le,ke,Oe);case 10:Re.stream=Ke.sent;case 11:return Ke.next=13,this._uploadPart(Ee,Ce,je,Re,Fe);case 13:return Ke.abrupt("return",Ke.sent);case 14:case"end":return Ke.stop()}},pe,this)}));function ue(pe,Ee,Ce,je,Le,ke,Oe){return le.apply(this,arguments)}return ue}(),re.completeMultipartUpload=function(){var le=(0,Pe.default)(be.default.mark(function pe(Ee,Ce,je,Le){var ke,Oe,Fe,Re,Ze,ze,Ke,ot;return be.default.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:for(ke=je.concat().sort(function(bt,qe){return bt.number-qe.number}).filter(function(bt,qe,at){return!qe||bt.number!==at[qe-1].number}),Oe=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,Fe=0;Fe<ke.length;Fe++)Re=ke[Fe],Oe+=`<Part>
|
|
|
`,Oe+="<PartNumber>".concat(Re.number,`</PartNumber>
|
|
|
`),Oe+="<ETag>".concat(Re.etag,`</ETag>
|
|
|
`),Oe+=`</Part>
|
|
|
`;return Oe+="</CompleteMultipartUpload>",Le=Le||{},Ze={},Ze=Se(Le,function(bt){if(z(bt))return null}),Ze.subres={uploadId:Ce},Ze.headers=ae(Ze.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),ze=this._objectRequestParams("POST",Ee,Ze),we.encodeCallback(ze,Ze),ze.mime="xml",ze.content=Oe,ze.headers&&ze.headers["x-oss-callback"]||(ze.xmlResponse=!0),ze.successStatuses=[200],pt.next=17,this.request(ze);case 17:if(Ke=pt.sent,!Le.progress){pt.next=21;break}return pt.next=21,Le.progress(1,null,Ke.res);case 21:return ot={res:Ke.res,bucket:ze.bucket,name:Ee,etag:Ke.res.headers.etag},ze.headers&&ze.headers["x-oss-callback"]&&(ot.data=JSON.parse(Ke.data.toString())),pt.abrupt("return",ot);case 24:case"end":return pt.stop()}},pe,this)}));function ue(pe,Ee,Ce,je){return le.apply(this,arguments)}return ue}(),re._uploadPart=function(){var le=(0,Pe.default)(be.default.mark(function pe(Ee,Ce,je,Le,ke){var Oe,Fe,Re,Ze;return be.default.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:return ke=ke||{},Oe={},ye(ke).to(Oe),Oe.headers=Oe.headers||{},Oe.headers["Content-Length"]=Le.size,Oe.headers=ae(Oe.headers,["x-oss-server-side-encryption"]),Oe.subres={partNumber:je,uploadId:Ce},Fe=this._objectRequestParams("PUT",Ee,Oe),Fe.mime=Oe.mime,Re=ve&&ve.browser,Re?Fe.content=Le.content:Fe.stream=Le.stream,Fe.successStatuses=[200],Fe.disabledMD5=ke.disabledMD5,Ke.next=15,this.request(Fe);case 15:if(Ze=Ke.sent,Ze.res.headers.etag){Ke.next=18;break}throw new Error(`Please set the etag of expose-headers in OSS
|
|
|
https://help.aliyun.com/document_detail/32069.html`);case 18:return Le.stream&&(Le.stream=null,Fe.stream=null),Ke.abrupt("return",{name:Ee,etag:Ze.res.headers.etag,res:Ze.res});case 20:case"end":return Ke.stop()}},pe,this)}));function ue(pe,Ee,Ce,je,Le){return le.apply(this,arguments)}return ue}()}).call(this)}).call(this,oe("_process"))},{"./callback":24,"./utils/deepCopy":58,"./utils/isBuffer":65,"./utils/omit":73,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],31:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator")),be=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Pe=oe("url"),ye=oe("utility"),we=oe("copy-to"),me=oe("../../common/signUtils"),Se=oe("../utils/isIP"),de=Se.isIP,z=oe("../utils/setSTSToken"),ee=z.setSTSToken,ae=oe("../utils/isFunction"),re=ae.isFunction,le=Ne;le.asyncSignatureUrl=function(){var ue=(0,be.default)(fe.default.mark(function Ee(Ce,je){var Le,ke,Oe,Fe,Re;return fe.default.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:if(!de(this.options.endpoint.hostname)){ze.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(je=je||{},Ce=this._objectName(Ce),je.method=je.method||"GET",Le=ye.timestamp()+(je.expires||1800),ke={bucket:this.options.bucket,object:Ce},Oe=this._getResource(ke),!(this.options.stsToken&&re(this.options.refreshSTSToken))){ze.next=11;break}return ze.next=11,ee.call(this);case 11:return this.options.stsToken&&(je["security-token"]=this.options.stsToken),Fe=me._signatureForURL(this.options.accessKeySecret,je,Oe,Le),Re=Pe.parse(this._getReqUrl(ke)),Re.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Le,Signature:Fe.Signature},we(Fe.subResource).to(Re.query),ze.abrupt("return",Re.format());case 17:case"end":return ze.stop()}},Ee,this)}));function pe(Ee,Ce){return ue.apply(this,arguments)}return pe}()},{"../../common/signUtils":50,"../utils/isFunction":68,"../utils/isIP":69,"../utils/setSTSToken":76,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,url:472,utility:474}],32:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.find.js"),oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js");var be=ve(oe("@babel/runtime/helpers/typeof")),Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator")),ye=oe("../utils/checkBucketName"),we=ye.checkBucketName,me=Ne,Se=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];me.copy=function(){var de=(0,Pe.default)(fe.default.mark(function ee(ae,re,le,ue){var pe,Ee,Ce;return fe.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return(0,be.default)(le)==="object"&&(ue=le),ue=ue||{},ue.headers=ue.headers||{},Object.keys(ue.headers).forEach(function(ke){ue.headers["x-oss-copy-source-".concat(ke.toLowerCase())]=ue.headers[ke]}),(ue.meta||Object.keys(ue.headers).find(function(ke){return Se.includes(ke.toLowerCase())}))&&(ue.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(ue.meta,ue.headers),re=this._getSourceName(re,le),ue.versionId&&(re="".concat(re,"?versionId=").concat(ue.versionId)),ue.headers["x-oss-copy-source"]=re,pe=this._objectRequestParams("PUT",ae,ue),pe.xmlResponse=!0,pe.successStatuses=[200,304],Le.next=14,this.request(pe);case 14:return Ee=Le.sent,Ce=Ee.data,Ce&&(Ce={etag:Ce.ETag,lastModified:Ce.LastModified}),Le.abrupt("return",{data:Ce,res:Ee.res});case 18:case"end":return Le.stop()}},ee,this)}));function z(ee,ae,re,le){return de.apply(this,arguments)}return z}(),me._getSourceName=function(z,ee){return typeof ee=="string"?z=this._objectName(z):z[0]!=="/"?ee=this.options.bucket:(ee=z.replace(/\/(.+?)(\/.*)/,"$1"),z=z.replace(/(\/.+?\/)(.*)/,"$2")),we(ee),z=encodeURIComponent(z),z="/".concat(ee,"/").concat(z),z}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],33:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var be=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Pe=Ne;Pe.delete=function(){var ye=(0,be.default)(fe.default.mark(function me(Se){var de,z,ee,ae=arguments;return fe.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return de=ae.length>1&&ae[1]!==void 0?ae[1]:{},de.subres=Object.assign({},de.subres),de.versionId&&(de.subres.versionId=de.versionId),z=this._objectRequestParams("DELETE",Se,de),z.successStatuses=[204],le.next=7,this.request(z);case 7:return ee=le.sent,le.abrupt("return",{res:ee.res});case 9:case"end":return le.stop()}},me,this)}));function we(me){return ye.apply(this,arguments)}return we}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],34:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var be=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Pe=oe("utility"),ye=oe("../utils/obj2xml"),we=ye.obj2xml,me=Ne;me.deleteMulti=function(){var Se=(0,be.default)(fe.default.mark(function z(ee){var ae,re,le,ue,pe,Ee,Ce,je,Le,ke,Oe,Fe,Re,Ze=arguments;return fe.default.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:if(ae=Ze.length>1&&Ze[1]!==void 0?Ze[1]:{},re=[],!(!ee||!ee.length)){Ke.next=4;break}throw new Error("names is required");case 4:for(le=0;le<ee.length;le++)ue={},typeof ee[le]=="string"?ue.Key=Pe.escape(this._objectName(ee[le])):(pe=ee[le],Ee=pe.key,Ce=pe.versionId,ue.Key=Pe.escape(this._objectName(Ee)),ue.VersionId=Ce),re.push(ue);return je={Delete:{Quiet:!!ae.quiet,Object:re}},Le=we(je,{headers:!0}),ae.subres=Object.assign({delete:""},ae.subres),ae.versionId&&(ae.subres.versionId=ae.versionId),ke=this._objectRequestParams("POST","",ae),ke.mime="xml",ke.content=Le,ke.xmlResponse=!0,ke.successStatuses=[200],Ke.next=16,this.request(ke);case 16:return Oe=Ke.sent,Fe=Oe.data,Re=Fe&&Fe.Deleted||null,Re&&(Array.isArray(Re)||(Re=[Re])),Ke.abrupt("return",{res:Oe.res,deleted:Re||[]});case 21:case"end":return Ke.stop()}},z,this)}));function de(z){return Se.apply(this,arguments)}return de}()},{"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,utility:474}],35:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var be=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Pe=Ne;Pe.deleteObjectTagging=function(){var ye=(0,be.default)(fe.default.mark(function me(Se){var de,z,ee,ae=arguments;return fe.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return de=ae.length>1&&ae[1]!==void 0?ae[1]:{},de.subres=Object.assign({tagging:""},de.subres),de.versionId&&(de.subres.versionId=de.versionId),Se=this._objectName(Se),z=this._objectRequestParams("DELETE",Se,de),z.successStatuses=[204],le.next=8,this.request(z);case 8:return ee=le.sent,le.abrupt("return",{status:ee.status,res:ee.res});case 10:case"end":return le.stop()}},me,this)}));function we(me){return ye.apply(this,arguments)}return we}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],36:[function(oe,_e,Ne){"use strict";oe("core-js/modules/es.array.concat.js");var ve=oe("url"),fe=oe("../utils/isIP"),be=fe.isIP,Pe=Ne;Pe.generateObjectUrl=function(we,me){if(be(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(me)me[me.length-1]!=="/"&&(me+="/");else{me=this.options.endpoint.format();var Se=ve.parse(me),de=this.options.bucket;Se.hostname="".concat(de,".").concat(Se.hostname),Se.host="".concat(de,".").concat(Se.host),me=Se.format()}return me+this._escape(this._objectName(we))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(oe,_e,Ne){(function(ve){(function(){"use strict";var fe=oe("@babel/runtime/helpers/interopRequireDefault"),be=fe(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=fe(oe("@babel/runtime/helpers/asyncToGenerator")),ye=oe("fs"),we=oe("is-type-of"),me=Ne;me.get=function(){var Se=(0,Pe.default)(be.default.mark(function z(ee,ae){var re,le,ue,pe,Ee,Ce,je,Le,ke=arguments;return be.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return re=ke.length>2&&ke[2]!==void 0?ke[2]:{},le=null,ue=!1,we.writableStream(ae)?le=ae:we.string(ae)?(le=ye.createWriteStream(ae),ue=!0):re=ae,re=re||{},pe=ve&&ve.browser,Ee=re.responseCacheControl===null?"":"no-cache",Ce=pe&&Ee?{"response-cache-control":Ee}:{},re.subres=Object.assign(Ce,re.subres),re.versionId&&(re.subres.versionId=re.versionId),re.process&&(re.subres["x-oss-process"]=re.process),Fe.prev=11,Le=this._objectRequestParams("GET",ee,re),Le.writeStream=le,Le.successStatuses=[200,206,304],Fe.next=17,this.request(Le);case 17:je=Fe.sent,ue&&le.destroy(),Fe.next=28;break;case 21:if(Fe.prev=21,Fe.t0=Fe.catch(11),!ue){Fe.next=27;break}return le.destroy(),Fe.next=27,this._deleteFileSafe(ae);case 27:throw Fe.t0;case 28:return Fe.abrupt("return",{res:je.res,content:je.data});case 29:case"end":return Fe.stop()}},z,this,[[11,21]])}));function de(z,ee){return Se.apply(this,arguments)}return de}()}).call(this)}).call(this,oe("_process"))},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"core-js/modules/es.object.assign.js":287,fs:89,"is-type-of":466}],38:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var be=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Pe=Ne;Pe.getACL=function(){var ye=(0,be.default)(fe.default.mark(function me(Se){var de,z,ee,ae=arguments;return fe.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return de=ae.length>1&&ae[1]!==void 0?ae[1]:{},de.subres=Object.assign({acl:""},de.subres),de.versionId&&(de.subres.versionId=de.versionId),Se=this._objectName(Se),z=this._objectRequestParams("GET",Se,de),z.successStatuses=[200],z.xmlResponse=!0,le.next=9,this.request(z);case 9:return ee=le.sent,le.abrupt("return",{acl:ee.data.AccessControlList.Grant,owner:{id:ee.data.Owner.ID,displayName:ee.data.Owner.DisplayName},res:ee.res});case 11:case"end":return le.stop()}},me,this)}));function we(me){return ye.apply(this,arguments)}return we}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],39:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.number.constructor.js");var be=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Pe=Ne,ye=oe("../utils/isObject"),we=ye.isObject,me=oe("../utils/isArray"),Se=me.isArray;Pe.getBucketVersions=de,Pe.listObjectVersions=de;function de(){return z.apply(this,arguments)}function z(){return z=(0,be.default)(fe.default.mark(function re(){var le,ue,pe,Ee,Ce,je,Le,ke,Oe=arguments;return fe.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(le=Oe.length>0&&Oe[0]!==void 0?Oe[0]:{},ue=Oe.length>1&&Oe[1]!==void 0?Oe[1]:{},!(le.versionIdMarker&&le.keyMarker===void 0)){Re.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return ue.subres=Object.assign({versions:""},ue.subres),ue.versionId&&(ue.subres.versionId=ue.versionId),pe=this._objectRequestParams("GET","",ue),pe.xmlResponse=!0,pe.successStatuses=[200],pe.query=ae(le),Re.next=12,this.request(pe);case 12:return Ee=Re.sent,Ce=Ee.data.Version||[],je=Ee.data.DeleteMarker||[],Le=this,Ce&&(Array.isArray(Ce)||(Ce=[Ce]),Ce=Ce.map(function(Ze){return{name:Ze.Key,url:Le._objectUrl(Ze.Key),lastModified:Ze.LastModified,isLatest:Ze.IsLatest==="true",versionId:Ze.VersionId,etag:Ze.ETag,type:Ze.Type,size:Number(Ze.Size),storageClass:Ze.StorageClass,owner:{id:Ze.Owner.ID,displayName:Ze.Owner.DisplayName}}})),je&&(Se(je)||(je=[je]),je=je.map(function(Ze){return{name:Ze.Key,lastModified:Ze.LastModified,versionId:Ze.VersionId,owner:{id:Ze.Owner.ID,displayName:Ze.Owner.DisplayName}}})),ke=Ee.data.CommonPrefixes||null,ke&&(Se(ke)||(ke=[ke]),ke=ke.map(function(Ze){return Ze.Prefix})),Re.abrupt("return",{res:Ee.res,objects:Ce,deleteMarker:je,prefixes:ke,nextMarker:Ee.data.NextKeyMarker||null,NextVersionIdMarker:Ee.data.NextVersionIdMarker||null,nextKeyMarker:Ee.data.NextKeyMarker||null,nextVersionIdMarker:Ee.data.NextVersionIdMarker||null,isTruncated:Ee.data.IsTruncated==="true"});case 21:case"end":return Re.stop()}},re,this)})),z.apply(this,arguments)}function ee(re){return re.replace(/([A-Z])/g,"-$1").toLowerCase()}function ae(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le={};return we(re)&&Object.keys(re).forEach(function(ue){le[ee(ue)]=re[ue]}),le}},{"../utils/isArray":63,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],40:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var be=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Pe=Ne;Pe.getObjectMeta=function(){var ye=(0,be.default)(fe.default.mark(function me(Se,de){var z,ee;return fe.default.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return de=de||{},Se=this._objectName(Se),de.subres=Object.assign({objectMeta:""},de.subres),de.versionId&&(de.subres.versionId=de.versionId),z=this._objectRequestParams("HEAD",Se,de),z.successStatuses=[200],re.next=8,this.request(z);case 8:return ee=re.sent,re.abrupt("return",{status:ee.status,res:ee.res});case 10:case"end":return re.stop()}},me,this)}));function we(me,Se){return ye.apply(this,arguments)}return we}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],41:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js");var be=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Pe=Ne,ye=oe("../utils/isObject"),we=ye.isObject;Pe.getObjectTagging=function(){var me=(0,be.default)(fe.default.mark(function de(z){var ee,ae,re,le,ue,pe,Ee=arguments;return fe.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return ee=Ee.length>1&&Ee[1]!==void 0?Ee[1]:{},ee.subres=Object.assign({tagging:""},ee.subres),ee.versionId&&(ee.subres.versionId=ee.versionId),z=this._objectName(z),ae=this._objectRequestParams("GET",z,ee),ae.successStatuses=[200],je.next=8,this.request(ae);case 8:return re=je.sent,je.next=11,this.parseXML(re.data);case 11:return le=je.sent,ue=le.TagSet.Tag,ue=ue&&we(ue)?[ue]:ue||[],pe={},ue.forEach(function(Le){pe[Le.Key]=Le.Value}),je.abrupt("return",{status:re.status,res:re.res,tag:pe});case 17:case"end":return je.stop()}},de,this)}));function Se(de){return me.apply(this,arguments)}return Se}()},{"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],42:[function(oe,_e,Ne){"use strict";var ve=oe("../utils/isIP"),fe=ve.isIP,be=Ne;be.getObjectUrl=function(ye,we){if(fe(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return we?we[we.length-1]!=="/"&&(we+="/"):we=this.options.endpoint.format(),we+this._escape(this._objectName(ye))}},{"../utils/isIP":69}],43:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var be=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Pe=Ne;Pe.getSymlink=function(){var ye=(0,be.default)(fe.default.mark(function me(Se){var de,z,ee,ae,re=arguments;return fe.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return de=re.length>1&&re[1]!==void 0?re[1]:{},de.subres=Object.assign({symlink:""},de.subres),de.versionId&&(de.subres.versionId=de.versionId),Se=this._objectName(Se),z=this._objectRequestParams("GET",Se,de),z.successStatuses=[200],ue.next=8,this.request(z);case 8:return ee=ue.sent,ae=ee.res.headers["x-oss-symlink-target"],ue.abrupt("return",{targetName:decodeURIComponent(ae),res:ee.res});case 11:case"end":return ue.stop()}},me,this)}));function we(me){return ye.apply(this,arguments)}return we}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],44:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js");var be=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Pe=oe("../utils/checkEnv"),ye=Pe.checkEnv,we=Ne;we.head=function(){var me=(0,be.default)(fe.default.mark(function de(z){var ee,ae,re,le,ue=arguments;return fe.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return ee=ue.length>1&&ue[1]!==void 0?ue[1]:{},ye("Because HeadObject has gzip enabled, head cannot get the file size correctly. If you need to get the file size, please use getObjectMeta"),ee.subres=Object.assign({},ee.subres),ee.versionId&&(ee.subres.versionId=ee.versionId),ae=this._objectRequestParams("HEAD",z,ee),ae.successStatuses=[200,304],Ee.next=8,this.request(ae);case 8:return re=Ee.sent,le={meta:null,res:re.res,status:re.status},re.status===200&&Object.keys(re.headers).forEach(function(Ce){Ce.indexOf("x-oss-meta-")===0&&(le.meta||(le.meta={}),le.meta[Ce.substring(11)]=re.headers[Ce])}),Ee.abrupt("return",le);case 12:case"end":return Ee.stop()}},de,this)}));function Se(de){return me.apply(this,arguments)}return Se}()},{"../utils/checkEnv":53,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],45:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var be=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Pe=Ne;Pe.putACL=function(){var ye=(0,be.default)(fe.default.mark(function me(Se,de,z){var ee,ae;return fe.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return z=z||{},z.subres=Object.assign({acl:""},z.subres),z.versionId&&(z.subres.versionId=z.versionId),z.headers=z.headers||{},z.headers["x-oss-object-acl"]=de,Se=this._objectName(Se),ee=this._objectRequestParams("PUT",Se,z),ee.successStatuses=[200],le.next=10,this.request(ee);case 10:return ae=le.sent,le.abrupt("return",{res:ae.res});case 12:case"end":return le.stop()}},me,this)}));function we(me,Se,de){return ye.apply(this,arguments)}return we}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],46:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.object.keys.js");var be=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Pe=oe("../utils/obj2xml"),ye=Pe.obj2xml,we=oe("../utils/checkObjectTag"),me=we.checkObjectTag,Se=Ne;Se.putObjectTagging=function(){var de=(0,be.default)(fe.default.mark(function ee(ae,re){var le,ue,pe,Ee,Ce=arguments;return fe.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return le=Ce.length>2&&Ce[2]!==void 0?Ce[2]:{},me(re),le.subres=Object.assign({tagging:""},le.subres),le.versionId&&(le.subres.versionId=le.versionId),ae=this._objectName(ae),ue=this._objectRequestParams("PUT",ae,le),ue.successStatuses=[200],re=Object.keys(re).map(function(ke){return{Key:ke,Value:re[ke]}}),pe={Tagging:{TagSet:{Tag:re}}},ue.mime="xml",ue.content=ye(pe),Le.next=13,this.request(ue);case 13:return Ee=Le.sent,Le.abrupt("return",{res:Ee.res,status:Ee.status});case 15:case"end":return Le.stop()}},ee,this)}));function z(ee,ae){return de.apply(this,arguments)}return z}()},{"../utils/checkObjectTag":54,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290}],47:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var be=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Pe=Ne;Pe.putSymlink=function(){var ye=(0,be.default)(fe.default.mark(function me(Se,de,z){var ee,ae;return fe.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return z=z||{},z.headers=z.headers||{},de=this._escape(this._objectName(de)),this._convertMetaToHeaders(z.meta,z.headers),z.headers["x-oss-symlink-target"]=de,z.subres=Object.assign({symlink:""},z.subres),z.versionId&&(z.subres.versionId=z.versionId),z.storageClass&&(z.headers["x-oss-storage-class"]=z.storageClass),Se=this._objectName(Se),ee=this._objectRequestParams("PUT",Se,z),ee.successStatuses=[200],le.next=13,this.request(ee);case 13:return ae=le.sent,le.abrupt("return",{res:ae.res});case 15:case"end":return le.stop()}},me,this)}));function we(me,Se,de){return ye.apply(this,arguments)}return we}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],48:[function(oe,_e,Ne){"use strict";var ve=oe("url"),fe=oe("utility"),be=oe("copy-to"),Pe=oe("../../common/signUtils"),ye=oe("../utils/isIP"),we=ye.isIP,me=Ne;me.signatureUrl=function(de,z){if(we(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");z=z||{},de=this._objectName(de),z.method=z.method||"GET";var ee=fe.timestamp()+(z.expires||1800),ae={bucket:this.options.bucket,object:de},re=this._getResource(ae);this.options.stsToken&&(z["security-token"]=this.options.stsToken);var le=Pe._signatureForURL(this.options.accessKeySecret,z,re,ee),ue=ve.parse(this._getReqUrl(ae));return ue.query={OSSAccessKeyId:this.options.accessKeyId,Expires:ee,Signature:le.Signature},be(le.subResource).to(ue.query),ue.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.iterator.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.string.iterator.js"),oe("core-js/modules/web.dom-collections.iterator.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.function.name.js");var be=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Pe=oe("./utils/isArray"),ye=Pe.isArray,we=Ne;we._parallelNode=function(){var me=(0,be.default)(fe.default.mark(function de(z,ee,ae,re){var le,ue,pe,Ee,Ce,je,Le,ke;return fe.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:le=this,ue=[],pe=[],Ee=z.length/ee,Ce=z.length%ee,je=Ce===0?Ee:(z.length-Ce)/ee+1,Le=1,ke=0;case 8:if(!(ke<z.length)){Fe.next=26;break}if(!le.isCancel()){Fe.next=11;break}return Fe.abrupt("break",26);case 11:if(re?pe.push(ae(le,z[ke],re)):pe.push(ae(le,z[ke])),!(pe.length===ee||Le===je&&ke===z.length-1)){Fe.next=23;break}return Fe.prev=13,Le+=1,Fe.next=17,Promise.all(pe);case 17:Fe.next=22;break;case 19:Fe.prev=19,Fe.t0=Fe.catch(13),ue.push(Fe.t0);case 22:pe=[];case 23:ke++,Fe.next=8;break;case 26:return Fe.abrupt("return",ue);case 27:case"end":return Fe.stop()}},de,this,[[13,19]])}));function Se(de,z,ee,ae){return me.apply(this,arguments)}return Se}(),we._parallel=function(Se,de,z){var ee=this;return new Promise(function(ae){var re=[];if(de<=0||!Se){ae(re);return}function le(Fe){return function(){if(Fe===null)throw new Error("Callback was already called.");var Re=Fe;Fe=null;for(var Ze=arguments.length,ze=new Array(Ze),Ke=0;Ke<Ze;Ke++)ze[Ke]=arguments[Ke];Re.apply(this,ze)}}function ue(Fe){var Re=-1,Ze=Fe.length;return function(){return++Re<Ze&&!ee.isCancel()?{value:Fe[Re],key:Re}:null}}var pe=ue(Se),Ee=!1,Ce=0,je=!1;function Le(Fe){Ce-=1,Fe?(Ee=!0,re.push(Fe),ae(re)):Ee&&Ce<=0?(Ee=!0,ae(re)):je||(ee.isCancel()?ae(re):Oe())}function ke(Fe,Re){z(Fe).then(function(Ze){Re(null,Ze)}).catch(function(Ze){Re(Ze)})}function Oe(){for(je=!0;Ce<de&&!Ee&&!ee.isCancel();){var Fe=pe();if(Fe===null||re.length>0){Ee=!0,Ce<=0&&ae(re);return}Ce+=1,ke(Fe.value,le(Le))}je=!1}Oe()})},we.cancel=function(Se){this.options.cancelFlag=!0,ye(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(de){if(de.destroyed===!1){var z={name:"cancel",message:"cancel"};de.destroy(z)}}),this.multipartUploadStreams=[],Se&&this.abortMultipartUpload(Se.name,Se.uploadId,Se.options)},we.isCancel=function(){return this.options.cancelFlag},we.resetCancelFlag=function(){this.options.cancelFlag=!1},we._stop=function(){this.options.cancelFlag=!0},we._makeCancelEvent=function(){var Se={status:0,name:"cancel"};return Se},we._makeAbortEvent=function(){var Se={status:0,name:"abort",message:"upload task has been abort"};return Se}},{"./utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.string.iterator.js":303,"core-js/modules/web.dom-collections.for-each.js":339,"core-js/modules/web.dom-collections.iterator.js":340}],50:[function(oe,_e,Ne){(function(ve){(function(){"use strict";oe("core-js/modules/es.string.trim.js"),oe("core-js/modules/es.array.sort.js"),oe("core-js/modules/es.array.join.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.regexp.to-string.js");var fe=oe("./../../shims/crypto/crypto.js"),be=oe("is-type-of"),Pe=oe("./utils/lowercaseKeyHeader"),ye=Pe.lowercaseKeyHeader;Ne.buildCanonicalizedResource=function(me,Se){var de="".concat(me),z="?";if(be.string(Se)&&Se.trim()!=="")de+=z+Se;else if(be.array(Se))Se.sort(),de+=z+Se.join("&");else if(Se){var ee=function(le,ue){return le[0]>ue[0]?1:le[0]<ue[0]?-1:0},ae=function(le){de+=z+le,(Se[le]||Se[le]===0)&&(de+="=".concat(Se[le])),z="&"};Object.keys(Se).sort(ee).forEach(ae)}return de},Ne.buildCanonicalString=function(me,Se,de,z){de=de||{};var ee=ye(de.headers),ae="x-oss-",re=[],le={},ue=[me.toUpperCase(),ee["content-md5"]||"",ee["content-type"],z||ee["x-oss-date"]];return Object.keys(ee).forEach(function(pe){var Ee=pe.toLowerCase();Ee.indexOf(ae)===0&&(le[Ee]=String(ee[pe]).trim())}),Object.keys(le).sort().forEach(function(pe){re.push("".concat(pe,":").concat(le[pe]))}),ue=ue.concat(re),ue.push(this.buildCanonicalizedResource(Se,de.parameters)),ue.join(`
|
|
|
`)},Ne.computeSignature=function(me,Se){var de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",z=fe.createHmac("sha1",me);return z.update(ve.from(Se,de)).digest("base64")},Ne.authorization=function(me,Se,de,z){return"OSS ".concat(me,":").concat(this.computeSignature(Se,de,z))},Ne._signatureForURL=function(me){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},de=arguments.length>2?arguments[2]:void 0,z=arguments.length>3?arguments[3]:void 0,ee=arguments.length>4?arguments[4]:void 0,ae={},re=Se.subResource,le=re===void 0?{}:re;if(Se.process){var ue="x-oss-process";le[ue]=Se.process}if(Se.trafficLimit){var pe="x-oss-traffic-limit";le[pe]=Se.trafficLimit}if(Se.response&&Object.keys(Se.response).forEach(function(Le){var ke="response-".concat(Le.toLowerCase());le[ke]=Se.response[Le]}),Object.keys(Se).forEach(function(Le){var ke=Le.toLowerCase(),Oe=Se[Le];ke.indexOf("x-oss-")===0?ae[ke]=Oe:(ke.indexOf("content-md5")===0||ke.indexOf("content-type")===0)&&(ae[Le]=Oe)}),Object.prototype.hasOwnProperty.call(Se,"security-token")&&(le["security-token"]=Se["security-token"]),Object.prototype.hasOwnProperty.call(Se,"callback")){var Ee={callbackUrl:encodeURI(Se.callback.url),callbackBody:Se.callback.body};if(Se.callback.host&&(Ee.callbackHost=Se.callback.host),Se.callback.contentType&&(Ee.callbackBodyType=Se.callback.contentType),le.callback=ve.from(JSON.stringify(Ee)).toString("base64"),Se.callback.customValue){var Ce={};Object.keys(Se.callback.customValue).forEach(function(Le){Ce["x:".concat(Le)]=Se.callback.customValue[Le]}),le["callback-var"]=ve.from(JSON.stringify(Ce)).toString("base64")}}var je=this.buildCanonicalString(Se.method,de,{headers:ae,parameters:le},z.toString());return{Signature:this.computeSignature(me,je,ee),subResource:le}}}).call(this)}).call(this,oe("buffer").Buffer)},{"./../../shims/crypto/crypto.js":461,"./utils/lowercaseKeyHeader":71,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.trim.js":308,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466}],51:[function(oe,_e,Ne){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.checkBucketName=void 0,Ne.checkBucketName=function(ve){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,be=fe?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!be.test(ve))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(oe,_e,Ne){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.checkConfigValid=void 0;var ve={endpoint:fe,region:/^[a-zA-Z0-9\-_]+$/};function fe(be){return typeof be=="string"?/^[a-zA-Z0-9._:/-]+$/.test(be):be.host?/^[a-zA-Z0-9._:/-]+$/.test(be.host):!1}Ne.checkConfigValid=function(be,Pe){if(ve[Pe]){var ye=!0;if(ve[Pe]instanceof Function?ye=ve[Pe](be):ye=ve[Pe].test(be),!ye)throw new Error("The ".concat(Pe," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(oe,_e,Ne){(function(ve){(function(){"use strict";Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.checkEnv=void 0;function fe(be){ve.browser&&console.warn(be)}Ne.checkEnv=fe}).call(this)}).call(this,oe("_process"))},{_process:467}],54:[function(oe,_e,Ne){"use strict";oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.object.entries.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.checkObjectTag=void 0;var ve=oe("./checkValid"),fe=ve.checkValid,be=oe("./isObject"),Pe=be.isObject,ye=[{validator:function(de){if(typeof de!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],we={key:[].concat(ye,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(ye,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function me(Se){if(!Pe(Se))throw new Error("tag must be Object");var de=Object.entries(Se);if(de.length>10)throw new Error("maximum of 10 tags for a object");var z=["key","value"];de.forEach(function(ee){ee.forEach(function(ae,re){fe(ae,we[z[re]])})})}Ne.checkObjectTag=me},{"./checkValid":55,"./isObject":70,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],55:[function(oe,_e,Ne){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.checkValid=void 0;function ve(fe,be){be.forEach(function(Pe){if(Pe.validator)Pe.validator(fe);else if(Pe.pattern&&!Pe.pattern.test(fe))throw new Error(Pe.msg)})}Ne.checkValid=ve},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],56:[function(oe,_e,Ne){(function(ve){(function(){"use strict";oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.string.includes.js"),oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.array.concat.js"),Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.createRequest=void 0;var fe=oe("./../../../shims/crypto/crypto.js"),be=oe("debug")("ali-oss"),Pe=oe("mime"),ye=oe("dateformat"),we=oe("copy-to"),me=oe("path"),Se=oe("./encoder"),de=Se.encoder,z=oe("./isIP"),ee=z.isIP,ae=oe("./setRegion"),re=ae.setRegion,le=oe("../client/getReqUrl"),ue=le.getReqUrl,pe=oe("./isDingTalk"),Ee=pe.isDingTalk;function Ce(ke,Oe){return ke[Oe]||ke[Oe.toLowerCase()]}function je(ke,Oe){delete ke[Oe],delete ke[Oe.toLowerCase()]}function Le(ke){var Oe=new Date;this.options.amendTimeSkewed&&(Oe=+new Date+this.options.amendTimeSkewed);var Fe={"x-oss-date":ye(Oe,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(Fe["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(Fe["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(Fe,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(Fe["x-oss-security-token"]=this.options.stsToken),we(ke.headers).to(Fe),Ce(Fe,"Content-Type")||(ke.mime&&ke.mime.indexOf("/")>0?Fe["Content-Type"]=ke.mime:Ee()?Fe["Content-Type"]="application/octet-stream":Fe["Content-Type"]=Pe.getType(ke.mime||me.extname(ke.object||""))),Ce(Fe,"Content-Type")||je(Fe,"Content-Type"),ke.content&&(ke.disabledMD5||(!ke.headers||!ke.headers["Content-MD5"]?Fe["Content-MD5"]=fe.createHash("md5").update(ve.from(ke.content,"utf8")).digest("base64"):Fe["Content-MD5"]=ke.headers["Content-MD5"]),Fe["Content-Length"]||(Fe["Content-Length"]=ke.content.length));var Re=Object.prototype.hasOwnProperty;for(var Ze in Fe)Fe[Ze]&&Re.call(Fe,Ze)&&(Fe[Ze]=de(String(Fe[Ze]),this.options.headerEncoding));var ze=this._getResource(ke);if(Fe.authorization=this.authorization(ke.method,ze,ke.subres,Fe,this.options.headerEncoding),ee(this.options.endpoint.hostname)){var Ke=this.options,ot=Ke.region,ct=Ke.internal,pt=Ke.secure,bt=re(ot,ct,pt);Fe.host="".concat(ke.bucket,".").concat(bt.host)}var qe=ue.bind(this)(ke);be("request %s %s, with headers %j, !!stream: %s",ke.method,qe,Fe,!!ke.stream);var at=ke.timeout||this.options.timeout,gt={method:ke.method,content:ke.content,stream:ke.stream,headers:Fe,timeout:at,writeStream:ke.writeStream,customResponse:ke.customResponse,ctx:ke.ctx||this.ctx};return this.agent&&(gt.agent=this.agent),this.httpsAgent&&(gt.httpsAgent=this.httpsAgent),gt.enableProxy=!!this.options.enableProxy,gt.proxy=this.options.proxy?this.options.proxy:null,{url:qe,params:gt}}Ne.createRequest=Le}).call(this)}).call(this,oe("buffer").Buffer)},{"../client/getReqUrl":25,"./../../../shims/crypto/crypto.js":461,"./encoder":59,"./isDingTalk":66,"./isIP":69,"./setRegion":75,buffer:90,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.includes.js":302,dateformat:342,debug:465,mime:374,path:378}],57:[function(oe,_e,Ne){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.entries.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.object.keys.js"),Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.dataFix=void 0;var ve=oe("./isObject"),fe=["true","TRUE","1",1],be=["false","FALSE","0",0];function Pe(me,Se,de){if(ve.isObject(me)){var z=Se.remove,ee=z===void 0?[]:z,ae=Se.rename,re=ae===void 0?{}:ae,le=Se.camel,ue=le===void 0?[]:le,pe=Se.bool,Ee=pe===void 0?[]:pe,Ce=Se.lowerFirst,je=Ce===void 0?!1:Ce;return ee.forEach(function(Le){return delete me[Le]}),Object.entries(re).forEach(function(Le){me[Le[0]]&&(me[Le[1]]||(me[Le[1]]=me[Le[0]],delete me[Le[0]]))}),ue.forEach(function(Le){if(me[Le]){var ke=Le.replace(/^(.)/,function(Oe){return Oe.toLowerCase()}).replace(/-(\w)/g,function(Oe,Fe){return Fe.toUpperCase()});me[ke]||(me[ke]=me[Le])}}),Ee.forEach(function(Le){me[Le]=ye(me[Le])}),typeof de=="function"&&de(me),we(me,je),Pe}}Ne.dataFix=Pe;function ye(me){return me?fe.includes(me)?!0:be.includes(me)?!1:me:!1}function we(me,Se){Se&&Object.keys(me).forEach(function(de){var z=de.replace(/^\w/,function(ee){return ee.toLowerCase()});typeof me[z]=="undefined"&&(me[z]=me[de],delete me[de])})}},{"./isObject":70,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],58:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault");oe("core-js/modules/es.array.slice.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js");var fe=ve(oe("@babel/runtime/helpers/typeof"));Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.deepCopyWith=Ne.deepCopy=void 0;var be=oe("./isBuffer");Ne.deepCopy=function(Pe){if(Pe===null||(0,fe.default)(Pe)!=="object")return Pe;if(be.isBuffer(Pe))return Pe.slice();var ye=Array.isArray(Pe)?[]:{};return Object.keys(Pe).forEach(function(we){ye[we]=Ne.deepCopy(Pe[we])}),ye},Ne.deepCopyWith=function(Pe,ye){function we(me,Se,de){var z=ye(me,Se,de);if(z!==void 0)return z;if(me===null||(0,fe.default)(me)!=="object")return me;if(be.isBuffer(me))return me.slice();var ee=Array.isArray(me)?[]:{};return Object.keys(me).forEach(function(ae){ee[ae]=we(me[ae],ae,me)}),ee}return ye?we(Pe,"",null):Ne.deepCopy(Pe)}},{"./isBuffer":65,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],59:[function(oe,_e,Ne){(function(ve){(function(){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.encoder=void 0;function fe(be){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return Pe==="utf-8"?be:ve.from(be).toString("latin1")}Ne.encoder=fe}).call(this)}).call(this,oe("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],60:[function(oe,_e,Ne){"use strict";oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.formatInventoryConfig=void 0;var ve=oe("../utils/dataFix"),fe=oe("../utils/isObject"),be=oe("../utils/isArray"),Pe=oe("../utils/formatObjKey");function ye(me){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Se&&fe.isObject(me)&&(me=[me]),be.isArray(me)?me=me.map(we):me=we(me),me}Ne.formatInventoryConfig=ye;function we(me){return ve.dataFix(me,{bool:["IsEnabled"]},function(Se){var de,z;Se.prefix=Se.Filter.Prefix,delete Se.Filter,Se.OSSBucketDestination=Se.Destination.OSSBucketDestination,Se.OSSBucketDestination.rolename=Se.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete Se.OSSBucketDestination.RoleArn,Se.OSSBucketDestination.bucket=Se.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete Se.OSSBucketDestination.Bucket,delete Se.Destination,Se.frequency=Se.Schedule.Frequency,delete Se.Schedule.Frequency,!((de=Se==null?void 0:Se.OptionalFields)===null||de===void 0)&&de.Field&&!be.isArray((z=Se.OptionalFields)===null||z===void 0?void 0:z.Field)&&(Se.OptionalFields.Field=[Se.OptionalFields.Field])}),me=Pe.formatObjKey(me,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),me}},{"../utils/dataFix":57,"../utils/formatObjKey":61,"../utils/isArray":63,"../utils/isObject":70,"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305}],61:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault");oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.string.includes.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js");var fe=ve(oe("@babel/runtime/helpers/typeof"));Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.formatObjKey=void 0;function be(ye,we,me){if(ye===null||(0,fe.default)(ye)!=="object")return ye;var Se;if(Array.isArray(ye)){Se=[];for(var de=0;de<ye.length;de++)Se.push(be(ye[de],we,me))}else Se={},Object.keys(ye).forEach(function(z){Se[Pe(z,we,me)]=be(ye[z],we,me)});return Se}Ne.formatObjKey=be;function Pe(ye,we,me){return me&&me.exclude&&me.exclude.includes(ye)||(we==="firstUpperCase"?ye=ye.replace(/^./,function(Se){return Se.toUpperCase()}):we==="firstLowerCase"&&(ye=ye.replace(/^./,function(Se){return Se.toLowerCase()}))),ye}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.includes.js":302,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],62:[function(oe,_e,Ne){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.getStrBytesCount=void 0;function ve(fe){for(var be=0,Pe=0;Pe<fe.length;Pe++){var ye=fe.charAt(Pe);/^[\u00-\uff]$/.test(ye)?be+=1:be+=2}return be}Ne.getStrBytesCount=ve},{"core-js/modules/es.regexp.exec.js":300}],63:[function(oe,_e,Ne){"use strict";oe("core-js/modules/es.object.to-string.js"),Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.isArray=void 0,Ne.isArray=function(ve){return Object.prototype.toString.call(ve)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(oe,_e,Ne){"use strict";Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.isBlob=void 0;function ve(fe){return typeof Blob!="undefined"&&fe instanceof Blob}Ne.isBlob=ve},{}],65:[function(oe,_e,Ne){(function(ve){(function(){"use strict";Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.isBuffer=void 0;function fe(be){return ve.isBuffer(be)}Ne.isBuffer=fe}).call(this)}).call(this,{isBuffer:oe("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(oe,_e,Ne){(function(ve){(function(){"use strict";oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.string.includes.js"),Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.isDingTalk=void 0;function fe(){return!!(ve.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}Ne.isDingTalk=fe}).call(this)}).call(this,oe("_process"))},{_process:467,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.string.includes.js":302}],67:[function(oe,_e,Ne){"use strict";Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.isFile=void 0,Ne.isFile=function(ve){return typeof File!="undefined"&&ve instanceof File}},{}],68:[function(oe,_e,Ne){"use strict";Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.isFunction=void 0,Ne.isFunction=function(ve){return typeof ve=="function"}},{}],69:[function(oe,_e,Ne){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.isIP=void 0,Ne.isIP=function(ve){var fe=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,be=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return fe.test(ve)||be.test(ve)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(oe,_e,Ne){"use strict";oe("core-js/modules/es.object.to-string.js"),Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.isObject=void 0,Ne.isObject=function(ve){return Object.prototype.toString.call(ve)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(oe,_e,Ne){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.lowercaseKeyHeader=void 0;var ve=oe("./isObject");function fe(be){var Pe={};return ve.isObject(be)&&Object.keys(be).forEach(function(ye){Pe[ye.toLowerCase()]=be[ye]}),Pe}Ne.lowercaseKeyHeader=fe},{"./isObject":70,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],72:[function(oe,_e,Ne){"use strict";oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.array.join.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.obj2xml=void 0;var ve=oe("./formatObjKey");function fe(Pe){return Object.prototype.toString.call(Pe).replace(/(.*? |])/g,"").toLowerCase()}function be(Pe,ye){var we="";return ye&&ye.headers&&(we=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
`),ye&&ye.firstUpperCase&&(Pe=ve.formatObjKey(Pe,"firstUpperCase")),fe(Pe)==="object"?Object.keys(Pe).forEach(function(me){fe(Pe[me])!=="undefined"&&fe(Pe[me])!=="null"&&(fe(Pe[me])==="string"||fe(Pe[me])==="number"?we+="<".concat(me,">").concat(Pe[me],"</").concat(me,">"):fe(Pe[me])==="object"?we+="<".concat(me,">").concat(be(Pe[me]),"</").concat(me,">"):fe(Pe[me])==="array"?we+=Pe[me].map(function(Se){return"<".concat(me,">").concat(be(Se),"</").concat(me,">")}).join(""):we+="<".concat(me,">").concat(Pe[me].toString(),"</").concat(me,">"))}):we+=Pe.toString(),we}Ne.obj2xml=be},{"./formatObjKey":61,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],73:[function(oe,_e,Ne){"use strict";oe("core-js/modules/es.array.slice.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.array.from.js"),oe("core-js/modules/es.string.iterator.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.symbol.js"),oe("core-js/modules/es.symbol.description.js"),oe("core-js/modules/es.symbol.iterator.js"),oe("core-js/modules/es.array.iterator.js"),oe("core-js/modules/web.dom-collections.iterator.js"),oe("core-js/modules/es.object.assign.js");function ve(ye,we){var me=typeof Symbol!="undefined"&&ye[Symbol.iterator]||ye["@@iterator"];if(!me){if(Array.isArray(ye)||(me=fe(ye))||we&&ye&&typeof ye.length=="number"){me&&(ye=me);var Se=0,de=function(){};return{s:de,n:function(){return Se>=ye.length?{done:!0}:{done:!1,value:ye[Se++]}},e:function(le){throw le},f:de}}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 z=!0,ee=!1,ae;return{s:function(){me=me.call(ye)},n:function(){var le=me.next();return z=le.done,le},e:function(le){ee=!0,ae=le},f:function(){try{!z&&me.return!=null&&me.return()}finally{if(ee)throw ae}}}}function fe(ye,we){if(ye){if(typeof ye=="string")return be(ye,we);var me=Object.prototype.toString.call(ye).slice(8,-1);if(me==="Object"&&ye.constructor&&(me=ye.constructor.name),me==="Map"||me==="Set")return Array.from(ye);if(me==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(me))return be(ye,we)}}function be(ye,we){(we==null||we>ye.length)&&(we=ye.length);for(var me=0,Se=new Array(we);me<we;me++)Se[me]=ye[me];return Se}Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.omit=void 0;function Pe(ye,we){var me=Object.assign({},ye),Se=ve(we),de;try{for(Se.s();!(de=Se.n()).done;){var z=de.value;delete me[z]}}catch(ee){Se.e(ee)}finally{Se.f()}return me}Ne.omit=Pe},{"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.iterator.js":312,"core-js/modules/es.symbol.js":313,"core-js/modules/web.dom-collections.iterator.js":340}],74:[function(oe,_e,Ne){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.retry=void 0;function ve(fe,be){var Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ye=0,we=Pe.retryDelay,me=we===void 0?500:we,Se=Pe.errorHandler,de=Se===void 0?function(){return!0}:Se,z=function ee(){for(var ae=arguments.length,re=new Array(ae),le=0;le<ae;le++)re[le]=arguments[le];return new Promise(function(ue,pe){fe.apply(void 0,re).then(function(Ee){ye=0,ue(Ee)}).catch(function(Ee){ye<be&&de(Ee)?(ye++,setTimeout(function(){ue(ee.apply(void 0,re))},me)):(ye=0,pe(Ee))})})};return z}Ne.retry=ve},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(oe,_e,Ne){"use strict";var ve=function(ye){return ye&&ye.__esModule?ye:{default:ye}};Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.setRegion=void 0;var fe=ve(oe("url")),be=oe("./checkConfigValid");function Pe(ye){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;be.checkConfigValid(ye,"region");var Se=me?"https://":"http://",de=we?"-internal.aliyuncs.com":".aliyuncs.com",z="vpc100-oss-cn-";return ye.substr(0,z.length)===z&&(de=".aliyuncs.com"),fe.default.parse(Se+ye+de)}Ne.setRegion=Pe},{"./checkConfigValid":52,url:472}],76:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.array.find.js"),oe("core-js/modules/es.object.assign.js");var be=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.checkCredentials=Ne.setSTSToken=void 0;var Pe=oe("./formatObjKey");function ye(){return we.apply(this,arguments)}function we(){return we=(0,be.default)(fe.default.mark(function Se(){var de,z;return fe.default.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:if(this.options||(this.options={}),de=new Date,!this.stsTokenFreshTime){ae.next=14;break}if(!(+de-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){ae.next=12;break}return this.stsTokenFreshTime=de,ae.next=7,this.options.refreshSTSToken();case 7:z=ae.sent,z=Pe.formatObjKey(z,"firstLowerCase"),z.securityToken&&(z.stsToken=z.securityToken),me(z),Object.assign(this.options,z);case 12:ae.next=15;break;case 14:this.stsTokenFreshTime=de;case 15:return ae.abrupt("return",null);case 16:case"end":return ae.stop()}},Se,this)})),we.apply(this,arguments)}Ne.setSTSToken=ye;function me(Se){var de=["accessKeySecret","accessKeyId","stsToken"],z=Object.keys(Se);de.forEach(function(ee){if(!z.find(function(ae){return ae===ee}))throw Error("refreshSTSToken must return contains ".concat(ee))})}Ne.checkCredentials=me},{"./formatObjKey":61,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.find.js":275,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291}],77:[function(oe,_e,Ne){function ve(be,Pe,ye,we,me,Se,de){try{var z=be[Se](de),ee=z.value}catch(ae){ye(ae);return}z.done?Pe(ee):Promise.resolve(ee).then(we,me)}function fe(be){return function(){var Pe=this,ye=arguments;return new Promise(function(we,me){var Se=be.apply(Pe,ye);function de(ee){ve(Se,we,me,de,z,"next",ee)}function z(ee){ve(Se,we,me,de,z,"throw",ee)}de(void 0)})}}_e.exports=fe,_e.exports.__esModule=!0,_e.exports.default=_e.exports},{}],78:[function(oe,_e,Ne){function ve(fe){return fe&&fe.__esModule?fe:{default:fe}}_e.exports=ve,_e.exports.__esModule=!0,_e.exports.default=_e.exports},{}],79:[function(oe,_e,Ne){function ve(fe){"@babel/helpers - typeof";return _e.exports=ve=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(be){return typeof be}:function(be){return be&&typeof Symbol=="function"&&be.constructor===Symbol&&be!==Symbol.prototype?"symbol":typeof be},_e.exports.__esModule=!0,_e.exports.default=_e.exports,ve(fe)}_e.exports=ve,_e.exports.__esModule=!0,_e.exports.default=_e.exports},{}],80:[function(oe,_e,Ne){_e.exports=oe("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(oe,_e,Ne){_e.exports=ve,_e.exports.HttpsAgent=ve;function ve(){}},{}],82:[function(oe,_e,Ne){(function(ve){(function(){"use strict";var fe=oe("object-assign");function be(ot,ct){if(ot===ct)return 0;for(var pt=ot.length,bt=ct.length,qe=0,at=Math.min(pt,bt);qe<at;++qe)if(ot[qe]!==ct[qe]){pt=ot[qe],bt=ct[qe];break}return pt<bt?-1:bt<pt?1:0}function Pe(ot){return ve.Buffer&&typeof ve.Buffer.isBuffer=="function"?ve.Buffer.isBuffer(ot):!!(ot!=null&&ot._isBuffer)}var ye=oe("util/"),we=Object.prototype.hasOwnProperty,me=Array.prototype.slice,Se=function(){return function(){}.name==="foo"}();function de(ot){return Object.prototype.toString.call(ot)}function z(ot){return Pe(ot)||typeof ve.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(ot):ot?!!(ot instanceof DataView||ot.buffer&&ot.buffer instanceof ArrayBuffer):!1}var ee=_e.exports=Ce,ae=/\s*function\s+([^\(\s]*)\s*/;function re(ot){if(ye.isFunction(ot)){if(Se)return ot.name;var ct=ot.toString(),pt=ct.match(ae);return pt&&pt[1]}}ee.AssertionError=function(ct){this.name="AssertionError",this.actual=ct.actual,this.expected=ct.expected,this.operator=ct.operator,ct.message?(this.message=ct.message,this.generatedMessage=!1):(this.message=pe(this),this.generatedMessage=!0);var pt=ct.stackStartFunction||Ee;if(Error.captureStackTrace)Error.captureStackTrace(this,pt);else{var bt=new Error;if(bt.stack){var qe=bt.stack,at=re(pt),gt=qe.indexOf(`
|
|
|
`+at);if(gt>=0){var Ct=qe.indexOf(`
|
|
|
`,gt+1);qe=qe.substring(Ct+1)}this.stack=qe}}},ye.inherits(ee.AssertionError,Error);function le(ot,ct){return typeof ot=="string"?ot.length<ct?ot:ot.slice(0,ct):ot}function ue(ot){if(Se||!ye.isFunction(ot))return ye.inspect(ot);var ct=re(ot),pt=ct?": "+ct:"";return"[Function"+pt+"]"}function pe(ot){return le(ue(ot.actual),128)+" "+ot.operator+" "+le(ue(ot.expected),128)}function Ee(ot,ct,pt,bt,qe){throw new ee.AssertionError({message:pt,actual:ot,expected:ct,operator:bt,stackStartFunction:qe})}ee.fail=Ee;function Ce(ot,ct){ot||Ee(ot,!0,ct,"==",ee.ok)}ee.ok=Ce,ee.equal=function(ct,pt,bt){ct!=pt&&Ee(ct,pt,bt,"==",ee.equal)},ee.notEqual=function(ct,pt,bt){ct==pt&&Ee(ct,pt,bt,"!=",ee.notEqual)},ee.deepEqual=function(ct,pt,bt){je(ct,pt,!1)||Ee(ct,pt,bt,"deepEqual",ee.deepEqual)},ee.deepStrictEqual=function(ct,pt,bt){je(ct,pt,!0)||Ee(ct,pt,bt,"deepStrictEqual",ee.deepStrictEqual)};function je(ot,ct,pt,bt){if(ot===ct)return!0;if(Pe(ot)&&Pe(ct))return be(ot,ct)===0;if(ye.isDate(ot)&&ye.isDate(ct))return ot.getTime()===ct.getTime();if(ye.isRegExp(ot)&&ye.isRegExp(ct))return ot.source===ct.source&&ot.global===ct.global&&ot.multiline===ct.multiline&&ot.lastIndex===ct.lastIndex&&ot.ignoreCase===ct.ignoreCase;if((ot===null||typeof ot!="object")&&(ct===null||typeof ct!="object"))return pt?ot===ct:ot==ct;if(z(ot)&&z(ct)&&de(ot)===de(ct)&&!(ot instanceof Float32Array||ot instanceof Float64Array))return be(new Uint8Array(ot.buffer),new Uint8Array(ct.buffer))===0;if(Pe(ot)!==Pe(ct))return!1;bt=bt||{actual:[],expected:[]};var qe=bt.actual.indexOf(ot);return qe!==-1&&qe===bt.expected.indexOf(ct)?!0:(bt.actual.push(ot),bt.expected.push(ct),ke(ot,ct,pt,bt))}function Le(ot){return Object.prototype.toString.call(ot)=="[object Arguments]"}function ke(ot,ct,pt,bt){if(ot==null||ct===null||ct===void 0)return!1;if(ye.isPrimitive(ot)||ye.isPrimitive(ct))return ot===ct;if(pt&&Object.getPrototypeOf(ot)!==Object.getPrototypeOf(ct))return!1;var qe=Le(ot),at=Le(ct);if(qe&&!at||!qe&&at)return!1;if(qe)return ot=me.call(ot),ct=me.call(ct),je(ot,ct,pt);var gt=Ke(ot),Ct=Ke(ct),wt,vt;if(gt.length!==Ct.length)return!1;for(gt.sort(),Ct.sort(),vt=gt.length-1;vt>=0;vt--)if(gt[vt]!==Ct[vt])return!1;for(vt=gt.length-1;vt>=0;vt--)if(wt=gt[vt],!je(ot[wt],ct[wt],pt,bt))return!1;return!0}ee.notDeepEqual=function(ct,pt,bt){je(ct,pt,!1)&&Ee(ct,pt,bt,"notDeepEqual",ee.notDeepEqual)},ee.notDeepStrictEqual=Oe;function Oe(ot,ct,pt){je(ot,ct,!0)&&Ee(ot,ct,pt,"notDeepStrictEqual",Oe)}ee.strictEqual=function(ct,pt,bt){ct!==pt&&Ee(ct,pt,bt,"===",ee.strictEqual)},ee.notStrictEqual=function(ct,pt,bt){ct===pt&&Ee(ct,pt,bt,"!==",ee.notStrictEqual)};function Fe(ot,ct){if(!ot||!ct)return!1;if(Object.prototype.toString.call(ct)=="[object RegExp]")return ct.test(ot);try{if(ot instanceof ct)return!0}catch(pt){}return Error.isPrototypeOf(ct)?!1:ct.call({},ot)===!0}function Re(ot){var ct;try{ot()}catch(pt){ct=pt}return ct}function Ze(ot,ct,pt,bt){var qe;if(typeof ct!="function")throw new TypeError('"block" argument must be a function');typeof pt=="string"&&(bt=pt,pt=null),qe=Re(ct),bt=(pt&&pt.name?" ("+pt.name+").":".")+(bt?" "+bt:"."),ot&&!qe&&Ee(qe,pt,"Missing expected exception"+bt);var at=typeof bt=="string",gt=!ot&&ye.isError(qe),Ct=!ot&&qe&&!pt;if((gt&&at&&Fe(qe,pt)||Ct)&&Ee(qe,pt,"Got unwanted exception"+bt),ot&&qe&&pt&&!Fe(qe,pt)||!ot&&qe)throw qe}ee.throws=function(ot,ct,pt){Ze(!0,ot,ct,pt)},ee.doesNotThrow=function(ot,ct,pt){Ze(!1,ot,ct,pt)},ee.ifError=function(ot){if(ot)throw ot};function ze(ot,ct){ot||Ee(ot,!0,ct,"==",ze)}ee.strict=fe(ze,ee,{equal:ee.strictEqual,deepEqual:ee.deepStrictEqual,notEqual:ee.notStrictEqual,notDeepEqual:ee.notDeepStrictEqual}),ee.strict.strict=ee.strict;var Ke=Object.keys||function(ot){var ct=[];for(var pt in ot)we.call(ot,pt)&&ct.push(pt);return ct}}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(oe,_e,Ne){typeof Object.create=="function"?_e.exports=function(fe,be){fe.super_=be,fe.prototype=Object.create(be.prototype,{constructor:{value:fe,enumerable:!1,writable:!0,configurable:!0}})}:_e.exports=function(fe,be){fe.super_=be;var Pe=function(){};Pe.prototype=be.prototype,fe.prototype=new Pe,fe.prototype.constructor=fe}},{}],84:[function(oe,_e,Ne){_e.exports=function(fe){return fe&&typeof fe=="object"&&typeof fe.copy=="function"&&typeof fe.fill=="function"&&typeof fe.readUInt8=="function"}},{}],85:[function(oe,_e,Ne){(function(ve,fe){(function(){var be=/%[sdj%]/g;Ne.format=function(Ct){if(!ke(Ct)){for(var wt=[],vt=0;vt<arguments.length;vt++)wt.push(we(arguments[vt]));return wt.join(" ")}for(var vt=1,mt=arguments,xt=mt.length,At=String(Ct).replace(be,function(Wt){if(Wt==="%%")return"%";if(vt>=xt)return Wt;switch(Wt){case"%s":return String(mt[vt++]);case"%d":return Number(mt[vt++]);case"%j":try{return JSON.stringify(mt[vt++])}catch(Et){return"[Circular]"}default:return Wt}}),kt=mt[vt];vt<xt;kt=mt[++vt])Ce(kt)||!Ze(kt)?At+=" "+kt:At+=" "+we(kt);return At},Ne.deprecate=function(Ct,wt){if(Fe(fe.process))return function(){return Ne.deprecate(Ct,wt).apply(this,arguments)};if(ve.noDeprecation===!0)return Ct;var vt=!1;function mt(){if(!vt){if(ve.throwDeprecation)throw new Error(wt);ve.traceDeprecation?console.trace(wt):console.error(wt),vt=!0}return Ct.apply(this,arguments)}return mt};var Pe={},ye;Ne.debuglog=function(Ct){if(Fe(ye)&&(ye=ve.env.NODE_DEBUG||""),Ct=Ct.toUpperCase(),!Pe[Ct])if(new RegExp("\\b"+Ct+"\\b","i").test(ye)){var wt=ve.pid;Pe[Ct]=function(){var vt=Ne.format.apply(Ne,arguments);console.error("%s %d: %s",Ct,wt,vt)}}else Pe[Ct]=function(){};return Pe[Ct]};function we(Ct,wt){var vt={seen:[],stylize:Se};return arguments.length>=3&&(vt.depth=arguments[2]),arguments.length>=4&&(vt.colors=arguments[3]),Ee(wt)?vt.showHidden=wt:wt&&Ne._extend(vt,wt),Fe(vt.showHidden)&&(vt.showHidden=!1),Fe(vt.depth)&&(vt.depth=2),Fe(vt.colors)&&(vt.colors=!1),Fe(vt.customInspect)&&(vt.customInspect=!0),vt.colors&&(vt.stylize=me),z(vt,Ct,vt.depth)}Ne.inspect=we,we.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},we.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function me(Ct,wt){var vt=we.styles[wt];return vt?"\x1B["+we.colors[vt][0]+"m"+Ct+"\x1B["+we.colors[vt][1]+"m":Ct}function Se(Ct,wt){return Ct}function de(Ct){var wt={};return Ct.forEach(function(vt,mt){wt[vt]=!0}),wt}function z(Ct,wt,vt){if(Ct.customInspect&&wt&&ot(wt.inspect)&&wt.inspect!==Ne.inspect&&!(wt.constructor&&wt.constructor.prototype===wt)){var mt=wt.inspect(vt,Ct);return ke(mt)||(mt=z(Ct,mt,vt)),mt}var xt=ee(Ct,wt);if(xt)return xt;var At=Object.keys(wt),kt=de(At);if(Ct.showHidden&&(At=Object.getOwnPropertyNames(wt)),Ke(wt)&&(At.indexOf("message")>=0||At.indexOf("description")>=0))return ae(wt);if(At.length===0){if(ot(wt)){var Wt=wt.name?": "+wt.name:"";return Ct.stylize("[Function"+Wt+"]","special")}if(Re(wt))return Ct.stylize(RegExp.prototype.toString.call(wt),"regexp");if(ze(wt))return Ct.stylize(Date.prototype.toString.call(wt),"date");if(Ke(wt))return ae(wt)}var Et="",St=!1,tt=["{","}"];if(pe(wt)&&(St=!0,tt=["[","]"]),ot(wt)){var ft=wt.name?": "+wt.name:"";Et=" [Function"+ft+"]"}if(Re(wt)&&(Et=" "+RegExp.prototype.toString.call(wt)),ze(wt)&&(Et=" "+Date.prototype.toUTCString.call(wt)),Ke(wt)&&(Et=" "+ae(wt)),At.length===0&&(!St||wt.length==0))return tt[0]+Et+tt[1];if(vt<0)return Re(wt)?Ct.stylize(RegExp.prototype.toString.call(wt),"regexp"):Ct.stylize("[Object]","special");Ct.seen.push(wt);var $e;return St?$e=re(Ct,wt,vt,kt,At):$e=At.map(function(lt){return le(Ct,wt,vt,kt,lt,St)}),Ct.seen.pop(),ue($e,Et,tt)}function ee(Ct,wt){if(Fe(wt))return Ct.stylize("undefined","undefined");if(ke(wt)){var vt="'"+JSON.stringify(wt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Ct.stylize(vt,"string")}if(Le(wt))return Ct.stylize(""+wt,"number");if(Ee(wt))return Ct.stylize(""+wt,"boolean");if(Ce(wt))return Ct.stylize("null","null")}function ae(Ct){return"["+Error.prototype.toString.call(Ct)+"]"}function re(Ct,wt,vt,mt,xt){for(var At=[],kt=0,Wt=wt.length;kt<Wt;++kt)gt(wt,String(kt))?At.push(le(Ct,wt,vt,mt,String(kt),!0)):At.push("");return xt.forEach(function(Et){Et.match(/^\d+$/)||At.push(le(Ct,wt,vt,mt,Et,!0))}),At}function le(Ct,wt,vt,mt,xt,At){var kt,Wt,Et;if(Et=Object.getOwnPropertyDescriptor(wt,xt)||{value:wt[xt]},Et.get?Et.set?Wt=Ct.stylize("[Getter/Setter]","special"):Wt=Ct.stylize("[Getter]","special"):Et.set&&(Wt=Ct.stylize("[Setter]","special")),gt(mt,xt)||(kt="["+xt+"]"),Wt||(Ct.seen.indexOf(Et.value)<0?(Ce(vt)?Wt=z(Ct,Et.value,null):Wt=z(Ct,Et.value,vt-1),Wt.indexOf(`
|
|
|
`)>-1&&(At?Wt=Wt.split(`
|
|
|
`).map(function(St){return" "+St}).join(`
|
|
|
`).substr(2):Wt=`
|
|
|
`+Wt.split(`
|
|
|
`).map(function(St){return" "+St}).join(`
|
|
|
`))):Wt=Ct.stylize("[Circular]","special")),Fe(kt)){if(At&&xt.match(/^\d+$/))return Wt;kt=JSON.stringify(""+xt),kt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(kt=kt.substr(1,kt.length-2),kt=Ct.stylize(kt,"name")):(kt=kt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),kt=Ct.stylize(kt,"string"))}return kt+": "+Wt}function ue(Ct,wt,vt){var mt=0,xt=Ct.reduce(function(At,kt){return mt++,kt.indexOf(`
|
|
|
`)>=0&&mt++,At+kt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return xt>60?vt[0]+(wt===""?"":wt+`
|
|
|
`)+" "+Ct.join(`,
|
|
|
`)+" "+vt[1]:vt[0]+wt+" "+Ct.join(", ")+" "+vt[1]}function pe(Ct){return Array.isArray(Ct)}Ne.isArray=pe;function Ee(Ct){return typeof Ct=="boolean"}Ne.isBoolean=Ee;function Ce(Ct){return Ct===null}Ne.isNull=Ce;function je(Ct){return Ct==null}Ne.isNullOrUndefined=je;function Le(Ct){return typeof Ct=="number"}Ne.isNumber=Le;function ke(Ct){return typeof Ct=="string"}Ne.isString=ke;function Oe(Ct){return typeof Ct=="symbol"}Ne.isSymbol=Oe;function Fe(Ct){return Ct===void 0}Ne.isUndefined=Fe;function Re(Ct){return Ze(Ct)&&pt(Ct)==="[object RegExp]"}Ne.isRegExp=Re;function Ze(Ct){return typeof Ct=="object"&&Ct!==null}Ne.isObject=Ze;function ze(Ct){return Ze(Ct)&&pt(Ct)==="[object Date]"}Ne.isDate=ze;function Ke(Ct){return Ze(Ct)&&(pt(Ct)==="[object Error]"||Ct instanceof Error)}Ne.isError=Ke;function ot(Ct){return typeof Ct=="function"}Ne.isFunction=ot;function ct(Ct){return Ct===null||typeof Ct=="boolean"||typeof Ct=="number"||typeof Ct=="string"||typeof Ct=="symbol"||typeof Ct=="undefined"}Ne.isPrimitive=ct,Ne.isBuffer=oe("./support/isBuffer");function pt(Ct){return Object.prototype.toString.call(Ct)}function bt(Ct){return Ct<10?"0"+Ct.toString(10):Ct.toString(10)}var qe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function at(){var Ct=new Date,wt=[bt(Ct.getHours()),bt(Ct.getMinutes()),bt(Ct.getSeconds())].join(":");return[Ct.getDate(),qe[Ct.getMonth()],wt].join(" ")}Ne.log=function(){console.log("%s - %s",at(),Ne.format.apply(Ne,arguments))},Ne.inherits=oe("inherits"),Ne._extend=function(Ct,wt){if(!wt||!Ze(wt))return Ct;for(var vt=Object.keys(wt),mt=vt.length;mt--;)Ct[vt[mt]]=wt[vt[mt]];return Ct};function gt(Ct,wt){return Object.prototype.hasOwnProperty.call(Ct,wt)}}).call(this)}).call(this,oe("_process"),typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(oe,_e,Ne){(function(ve){(function(){"use strict";var fe=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],be=typeof globalThis=="undefined"?ve:globalThis;_e.exports=function(){for(var ye=[],we=0;we<fe.length;we++)typeof be[fe[we]]=="function"&&(ye[ye.length]=fe[we]);return ye}}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(oe,_e,Ne){"use strict";Ne.byteLength=Se,Ne.toByteArray=z,Ne.fromByteArray=re;for(var ve=[],fe=[],be=typeof Uint8Array!="undefined"?Uint8Array:Array,Pe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ye=0,we=Pe.length;ye<we;++ye)ve[ye]=Pe[ye],fe[Pe.charCodeAt(ye)]=ye;fe[45]=62,fe[95]=63;function me(le){var ue=le.length;if(ue%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var pe=le.indexOf("=");pe===-1&&(pe=ue);var Ee=pe===ue?0:4-pe%4;return[pe,Ee]}function Se(le){var ue=me(le),pe=ue[0],Ee=ue[1];return(pe+Ee)*3/4-Ee}function de(le,ue,pe){return(ue+pe)*3/4-pe}function z(le){var ue,pe=me(le),Ee=pe[0],Ce=pe[1],je=new be(de(le,Ee,Ce)),Le=0,ke=Ce>0?Ee-4:Ee,Oe;for(Oe=0;Oe<ke;Oe+=4)ue=fe[le.charCodeAt(Oe)]<<18|fe[le.charCodeAt(Oe+1)]<<12|fe[le.charCodeAt(Oe+2)]<<6|fe[le.charCodeAt(Oe+3)],je[Le++]=ue>>16&255,je[Le++]=ue>>8&255,je[Le++]=ue&255;return Ce===2&&(ue=fe[le.charCodeAt(Oe)]<<2|fe[le.charCodeAt(Oe+1)]>>4,je[Le++]=ue&255),Ce===1&&(ue=fe[le.charCodeAt(Oe)]<<10|fe[le.charCodeAt(Oe+1)]<<4|fe[le.charCodeAt(Oe+2)]>>2,je[Le++]=ue>>8&255,je[Le++]=ue&255),je}function ee(le){return ve[le>>18&63]+ve[le>>12&63]+ve[le>>6&63]+ve[le&63]}function ae(le,ue,pe){for(var Ee,Ce=[],je=ue;je<pe;je+=3)Ee=(le[je]<<16&16711680)+(le[je+1]<<8&65280)+(le[je+2]&255),Ce.push(ee(Ee));return Ce.join("")}function re(le){for(var ue,pe=le.length,Ee=pe%3,Ce=[],je=16383,Le=0,ke=pe-Ee;Le<ke;Le+=je)Ce.push(ae(le,Le,Le+je>ke?ke:Le+je));return Ee===1?(ue=le[pe-1],Ce.push(ve[ue>>2]+ve[ue<<4&63]+"==")):Ee===2&&(ue=(le[pe-2]<<8)+le[pe-1],Ce.push(ve[ue>>10]+ve[ue>>4&63]+ve[ue<<2&63]+"=")),Ce.join("")}},{}],88:[function(oe,_e,Ne){(function(ve,fe,be){typeof _e!="undefined"&&_e.exports?_e.exports=be():typeof Ge=="function"&&Ge.amd?Ge(fe,be):ve[fe]=be()})(this,"bowser",function(){var ve=!0;function fe(de){function z(wt){var vt=de.match(wt);return vt&&vt.length>1&&vt[1]||""}function ee(wt){var vt=de.match(wt);return vt&&vt.length>1&&vt[2]||""}var ae=z(/(ipod|iphone|ipad)/i).toLowerCase(),re=/like android/i.test(de),le=!re&&/android/i.test(de),ue=/nexus\s*[0-6]\s*/i.test(de),pe=!ue&&/nexus\s*[0-9]+/i.test(de),Ee=/CrOS/.test(de),Ce=/silk/i.test(de),je=/sailfish/i.test(de),Le=/tizen/i.test(de),ke=/(web|hpw)(o|0)s/i.test(de),Oe=/windows phone/i.test(de),Fe=/SamsungBrowser/i.test(de),Re=!Oe&&/windows/i.test(de),Ze=!ae&&!Ce&&/macintosh/i.test(de),ze=!le&&!je&&!Le&&!ke&&/linux/i.test(de),Ke=ee(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),ot=z(/version\/(\d+(\.\d+)?)/i),ct=/tablet/i.test(de)&&!/tablet pc/i.test(de),pt=!ct&&/[^-]mobi/i.test(de),bt=/xbox/i.test(de),qe;/opera/i.test(de)?qe={name:"Opera",opera:ve,version:ot||z(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(de)?qe={name:"Opera",opera:ve,version:z(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||ot}:/SamsungBrowser/i.test(de)?qe={name:"Samsung Internet for Android",samsungBrowser:ve,version:ot||z(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(de)?qe={name:"NAVER Whale browser",whale:ve,version:z(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(de)?qe={name:"MZ Browser",mzbrowser:ve,version:z(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(de)?qe={name:"Opera Coast",coast:ve,version:ot||z(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(de)?qe={name:"Focus",focus:ve,version:z(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(de)?qe={name:"Yandex Browser",yandexbrowser:ve,version:ot||z(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(de)?qe={name:"UC Browser",ucbrowser:ve,version:z(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(de)?qe={name:"Maxthon",maxthon:ve,version:z(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(de)?qe={name:"Epiphany",epiphany:ve,version:z(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(de)?qe={name:"Puffin",puffin:ve,version:z(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(de)?qe={name:"Sleipnir",sleipnir:ve,version:z(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(de)?qe={name:"K-Meleon",kMeleon:ve,version:z(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:Oe?(qe={name:"Windows Phone",osname:"Windows Phone",windowsphone:ve},Ke?(qe.msedge=ve,qe.version=Ke):(qe.msie=ve,qe.version=z(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(de)?qe={name:"Internet Explorer",msie:ve,version:z(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:Ee?qe={name:"Chrome",osname:"Chrome OS",chromeos:ve,chromeBook:ve,chrome:ve,version:z(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(de)?qe={name:"Microsoft Edge",msedge:ve,version:Ke}:/vivaldi/i.test(de)?qe={name:"Vivaldi",vivaldi:ve,version:z(/vivaldi\/(\d+(\.\d+)?)/i)||ot}:je?qe={name:"Sailfish",osname:"Sailfish OS",sailfish:ve,version:z(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(de)?qe={name:"SeaMonkey",seamonkey:ve,version:z(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(de)?(qe={name:"Firefox",firefox:ve,version:z(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(de)&&(qe.firefoxos=ve,qe.osname="Firefox OS")):Ce?qe={name:"Amazon Silk",silk:ve,version:z(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(de)?qe={name:"PhantomJS",phantom:ve,version:z(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(de)?qe={name:"SlimerJS",slimer:ve,version:z(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(de)||/rim\stablet/i.test(de)?qe={name:"BlackBerry",osname:"BlackBerry OS",blackberry:ve,version:ot||z(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:ke?(qe={name:"WebOS",osname:"WebOS",webos:ve,version:ot||z(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(de)&&(qe.touchpad=ve)):/bada/i.test(de)?qe={name:"Bada",osname:"Bada",bada:ve,version:z(/dolfin\/(\d+(\.\d+)?)/i)}:Le?qe={name:"Tizen",osname:"Tizen",tizen:ve,version:z(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||ot}:/qupzilla/i.test(de)?qe={name:"QupZilla",qupzilla:ve,version:z(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||ot}:/chromium/i.test(de)?qe={name:"Chromium",chromium:ve,version:z(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||ot}:/chrome|crios|crmo/i.test(de)?qe={name:"Chrome",chrome:ve,version:z(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:le?qe={name:"Android",version:ot}:/safari|applewebkit/i.test(de)?(qe={name:"Safari",safari:ve},ot&&(qe.version=ot)):ae?(qe={name:ae=="iphone"?"iPhone":ae=="ipad"?"iPad":"iPod"},ot&&(qe.version=ot)):/googlebot/i.test(de)?qe={name:"Googlebot",googlebot:ve,version:z(/googlebot\/(\d+(\.\d+))/i)||ot}:qe={name:z(/^(.*)\/(.*) /),version:ee(/^(.*)\/(.*) /)},!qe.msedge&&/(apple)?webkit/i.test(de)?(/(apple)?webkit\/537\.36/i.test(de)?(qe.name=qe.name||"Blink",qe.blink=ve):(qe.name=qe.name||"Webkit",qe.webkit=ve),!qe.version&&ot&&(qe.version=ot)):!qe.opera&&/gecko\//i.test(de)&&(qe.name=qe.name||"Gecko",qe.gecko=ve,qe.version=qe.version||z(/gecko\/(\d+(\.\d+)?)/i)),!qe.windowsphone&&(le||qe.silk)?(qe.android=ve,qe.osname="Android"):!qe.windowsphone&&ae?(qe[ae]=ve,qe.ios=ve,qe.osname="iOS"):Ze?(qe.mac=ve,qe.osname="macOS"):bt?(qe.xbox=ve,qe.osname="Xbox"):Re?(qe.windows=ve,qe.osname="Windows"):ze&&(qe.linux=ve,qe.osname="Linux");function at(wt){switch(wt){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var gt="";qe.windows?gt=at(z(/Windows ((NT|XP)( \d\d?.\d)?)/i)):qe.windowsphone?gt=z(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):qe.mac?(gt=z(/Mac OS X (\d+([_\.\s]\d+)*)/i),gt=gt.replace(/[_\s]/g,".")):ae?(gt=z(/os (\d+([_\s]\d+)*) like mac os x/i),gt=gt.replace(/[_\s]/g,".")):le?gt=z(/android[ \/-](\d+(\.\d+)*)/i):qe.webos?gt=z(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):qe.blackberry?gt=z(/rim\stablet\sos\s(\d+(\.\d+)*)/i):qe.bada?gt=z(/bada\/(\d+(\.\d+)*)/i):qe.tizen&&(gt=z(/tizen[\/\s](\d+(\.\d+)*)/i)),gt&&(qe.osversion=gt);var Ct=!qe.windows&>.split(".")[0];return ct||pe||ae=="ipad"||le&&(Ct==3||Ct>=4&&!pt)||qe.silk?qe.tablet=ve:(pt||ae=="iphone"||ae=="ipod"||le||ue||qe.blackberry||qe.webos||qe.bada)&&(qe.mobile=ve),qe.msedge||qe.msie&&qe.version>=10||qe.yandexbrowser&&qe.version>=15||qe.vivaldi&&qe.version>=1||qe.chrome&&qe.version>=20||qe.samsungBrowser&&qe.version>=4||qe.whale&&we([qe.version,"1.0"])===1||qe.mzbrowser&&we([qe.version,"6.0"])===1||qe.focus&&we([qe.version,"1.0"])===1||qe.firefox&&qe.version>=20||qe.safari&&qe.version>=6||qe.opera&&qe.version>=10||qe.ios&&qe.osversion&&qe.osversion.split(".")[0]>=6||qe.blackberry&&qe.version>=10.1||qe.chromium&&qe.version>=20?qe.a=ve:qe.msie&&qe.version<10||qe.chrome&&qe.version<20||qe.firefox&&qe.version<20||qe.safari&&qe.version<6||qe.opera&&qe.version<10||qe.ios&&qe.osversion&&qe.osversion.split(".")[0]<6||qe.chromium&&qe.version<20?qe.c=ve:qe.x=ve,qe}var be=fe(typeof navigator!="undefined"&&navigator.userAgent||"");be.test=function(de){for(var z=0;z<de.length;++z){var ee=de[z];if(typeof ee=="string"&&ee in be)return!0}return!1};function Pe(de){return de.split(".").length}function ye(de,z){var ee=[],ae;if(Array.prototype.map)return Array.prototype.map.call(de,z);for(ae=0;ae<de.length;ae++)ee.push(z(de[ae]));return ee}function we(de){for(var z=Math.max(Pe(de[0]),Pe(de[1])),ee=ye(de,function(ae){var re=z-Pe(ae);return ae=ae+new Array(re+1).join(".0"),ye(ae.split("."),function(le){return new Array(20-le.length).join("0")+le}).reverse()});--z>=0;){if(ee[0][z]>ee[1][z])return 1;if(ee[0][z]===ee[1][z]){if(z===0)return 0}else return-1}}function me(de,z,ee){var ae=be;typeof z=="string"&&(ee=z,z=void 0),z===void 0&&(z=!1),ee&&(ae=fe(ee));var re=""+ae.version;for(var le in de)if(de.hasOwnProperty(le)&&ae[le]){if(typeof de[le]!="string")throw new Error("Browser version in the minVersion map should be a string: "+le+": "+String(de));return we([re,de[le]])<0}return z}function Se(de,z,ee){return!me(de,z,ee)}return be.isUnsupportedBrowser=me,be.compareVersions=we,be.check=Se,be._detect=fe,be.detect=fe,be})},{}],89:[function(oe,_e,Ne){},{}],90:[function(oe,_e,Ne){(function(ve){(function(){"use strict";var fe=oe("base64-js"),be=oe("ieee754");Ne.Buffer=me,Ne.SlowBuffer=Ee,Ne.INSPECT_MAX_BYTES=50;var Pe=2147483647;Ne.kMaxLength=Pe,me.TYPED_ARRAY_SUPPORT=ye(),!me.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function ye(){try{var Ve=new Uint8Array(1);return Ve.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Ve.foo()===42}catch(He){return!1}}Object.defineProperty(me.prototype,"parent",{enumerable:!0,get:function(){if(me.isBuffer(this))return this.buffer}}),Object.defineProperty(me.prototype,"offset",{enumerable:!0,get:function(){if(me.isBuffer(this))return this.byteOffset}});function we(Ve){if(Ve>Pe)throw new RangeError('The value "'+Ve+'" is invalid for option "size"');var He=new Uint8Array(Ve);return He.__proto__=me.prototype,He}function me(Ve,He,nt){if(typeof Ve=="number"){if(typeof He=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ee(Ve)}return Se(Ve,He,nt)}typeof Symbol!="undefined"&&Symbol.species!=null&&me[Symbol.species]===me&&Object.defineProperty(me,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),me.poolSize=8192;function Se(Ve,He,nt){if(typeof Ve=="string")return ae(Ve,He);if(ArrayBuffer.isView(Ve))return re(Ve);if(Ve==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ve);if(dt(Ve,ArrayBuffer)||Ve&&dt(Ve.buffer,ArrayBuffer))return le(Ve,He,nt);if(typeof Ve=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var ut=Ve.valueOf&&Ve.valueOf();if(ut!=null&&ut!==Ve)return me.from(ut,He,nt);var We=ue(Ve);if(We)return We;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Ve[Symbol.toPrimitive]=="function")return me.from(Ve[Symbol.toPrimitive]("string"),He,nt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ve)}me.from=function(Ve,He,nt){return Se(Ve,He,nt)},me.prototype.__proto__=Uint8Array.prototype,me.__proto__=Uint8Array;function de(Ve){if(typeof Ve!="number")throw new TypeError('"size" argument must be of type number');if(Ve<0)throw new RangeError('The value "'+Ve+'" is invalid for option "size"')}function z(Ve,He,nt){return de(Ve),Ve<=0?we(Ve):He!==void 0?typeof nt=="string"?we(Ve).fill(He,nt):we(Ve).fill(He):we(Ve)}me.alloc=function(Ve,He,nt){return z(Ve,He,nt)};function ee(Ve){return de(Ve),we(Ve<0?0:pe(Ve)|0)}me.allocUnsafe=function(Ve){return ee(Ve)},me.allocUnsafeSlow=function(Ve){return ee(Ve)};function ae(Ve,He){if((typeof He!="string"||He==="")&&(He="utf8"),!me.isEncoding(He))throw new TypeError("Unknown encoding: "+He);var nt=Ce(Ve,He)|0,ut=we(nt),We=ut.write(Ve,He);return We!==nt&&(ut=ut.slice(0,We)),ut}function re(Ve){for(var He=Ve.length<0?0:pe(Ve.length)|0,nt=we(He),ut=0;ut<He;ut+=1)nt[ut]=Ve[ut]&255;return nt}function le(Ve,He,nt){if(He<0||Ve.byteLength<He)throw new RangeError('"offset" is outside of buffer bounds');if(Ve.byteLength<He+(nt||0))throw new RangeError('"length" is outside of buffer bounds');var ut;return He===void 0&&nt===void 0?ut=new Uint8Array(Ve):nt===void 0?ut=new Uint8Array(Ve,He):ut=new Uint8Array(Ve,He,nt),ut.__proto__=me.prototype,ut}function ue(Ve){if(me.isBuffer(Ve)){var He=pe(Ve.length)|0,nt=we(He);return nt.length===0||Ve.copy(nt,0,0,He),nt}if(Ve.length!==void 0)return typeof Ve.length!="number"||et(Ve.length)?we(0):re(Ve);if(Ve.type==="Buffer"&&Array.isArray(Ve.data))return re(Ve.data)}function pe(Ve){if(Ve>=Pe)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Pe.toString(16)+" bytes");return Ve|0}function Ee(Ve){return+Ve!=Ve&&(Ve=0),me.alloc(+Ve)}me.isBuffer=function(He){return He!=null&&He._isBuffer===!0&&He!==me.prototype},me.compare=function(He,nt){if(dt(He,Uint8Array)&&(He=me.from(He,He.offset,He.byteLength)),dt(nt,Uint8Array)&&(nt=me.from(nt,nt.offset,nt.byteLength)),!me.isBuffer(He)||!me.isBuffer(nt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(He===nt)return 0;for(var ut=He.length,We=nt.length,De=0,Ie=Math.min(ut,We);De<Ie;++De)if(He[De]!==nt[De]){ut=He[De],We=nt[De];break}return ut<We?-1:We<ut?1:0},me.isEncoding=function(He){switch(String(He).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},me.concat=function(He,nt){if(!Array.isArray(He))throw new TypeError('"list" argument must be an Array of Buffers');if(He.length===0)return me.alloc(0);var ut;if(nt===void 0)for(nt=0,ut=0;ut<He.length;++ut)nt+=He[ut].length;var We=me.allocUnsafe(nt),De=0;for(ut=0;ut<He.length;++ut){var Ie=He[ut];if(dt(Ie,Uint8Array)&&(Ie=me.from(Ie)),!me.isBuffer(Ie))throw new TypeError('"list" argument must be an Array of Buffers');Ie.copy(We,De),De+=Ie.length}return We};function Ce(Ve,He){if(me.isBuffer(Ve))return Ve.length;if(ArrayBuffer.isView(Ve)||dt(Ve,ArrayBuffer))return Ve.byteLength;if(typeof Ve!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ve);var nt=Ve.length,ut=arguments.length>2&&arguments[2]===!0;if(!ut&&nt===0)return 0;for(var We=!1;;)switch(He){case"ascii":case"latin1":case"binary":return nt;case"utf8":case"utf-8":return tt(Ve).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nt*2;case"hex":return nt>>>1;case"base64":return lt(Ve).length;default:if(We)return ut?-1:tt(Ve).length;He=(""+He).toLowerCase(),We=!0}}me.byteLength=Ce;function je(Ve,He,nt){var ut=!1;if((He===void 0||He<0)&&(He=0),He>this.length||((nt===void 0||nt>this.length)&&(nt=this.length),nt<=0)||(nt>>>=0,He>>>=0,nt<=He))return"";for(Ve||(Ve="utf8");;)switch(Ve){case"hex":return Ct(this,He,nt);case"utf8":case"utf-8":return pt(this,He,nt);case"ascii":return at(this,He,nt);case"latin1":case"binary":return gt(this,He,nt);case"base64":return ct(this,He,nt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wt(this,He,nt);default:if(ut)throw new TypeError("Unknown encoding: "+Ve);Ve=(Ve+"").toLowerCase(),ut=!0}}me.prototype._isBuffer=!0;function Le(Ve,He,nt){var ut=Ve[He];Ve[He]=Ve[nt],Ve[nt]=ut}me.prototype.swap16=function(){var He=this.length;if(He%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var nt=0;nt<He;nt+=2)Le(this,nt,nt+1);return this},me.prototype.swap32=function(){var He=this.length;if(He%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var nt=0;nt<He;nt+=4)Le(this,nt,nt+3),Le(this,nt+1,nt+2);return this},me.prototype.swap64=function(){var He=this.length;if(He%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var nt=0;nt<He;nt+=8)Le(this,nt,nt+7),Le(this,nt+1,nt+6),Le(this,nt+2,nt+5),Le(this,nt+3,nt+4);return this},me.prototype.toString=function(){var He=this.length;return He===0?"":arguments.length===0?pt(this,0,He):je.apply(this,arguments)},me.prototype.toLocaleString=me.prototype.toString,me.prototype.equals=function(He){if(!me.isBuffer(He))throw new TypeError("Argument must be a Buffer");return this===He?!0:me.compare(this,He)===0},me.prototype.inspect=function(){var He="",nt=Ne.INSPECT_MAX_BYTES;return He=this.toString("hex",0,nt).replace(/(.{2})/g,"$1 ").trim(),this.length>nt&&(He+=" ... "),"<Buffer "+He+">"},me.prototype.compare=function(He,nt,ut,We,De){if(dt(He,Uint8Array)&&(He=me.from(He,He.offset,He.byteLength)),!me.isBuffer(He))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof He);if(nt===void 0&&(nt=0),ut===void 0&&(ut=He?He.length:0),We===void 0&&(We=0),De===void 0&&(De=this.length),nt<0||ut>He.length||We<0||De>this.length)throw new RangeError("out of range index");if(We>=De&&nt>=ut)return 0;if(We>=De)return-1;if(nt>=ut)return 1;if(nt>>>=0,ut>>>=0,We>>>=0,De>>>=0,this===He)return 0;for(var Ie=De-We,Xe=ut-nt,yt=Math.min(Ie,Xe),Ye=this.slice(We,De),jt=He.slice(nt,ut),Ht=0;Ht<yt;++Ht)if(Ye[Ht]!==jt[Ht]){Ie=Ye[Ht],Xe=jt[Ht];break}return Ie<Xe?-1:Xe<Ie?1:0};function ke(Ve,He,nt,ut,We){if(Ve.length===0)return-1;if(typeof nt=="string"?(ut=nt,nt=0):nt>2147483647?nt=2147483647:nt<-2147483648&&(nt=-2147483648),nt=+nt,et(nt)&&(nt=We?0:Ve.length-1),nt<0&&(nt=Ve.length+nt),nt>=Ve.length){if(We)return-1;nt=Ve.length-1}else if(nt<0)if(We)nt=0;else return-1;if(typeof He=="string"&&(He=me.from(He,ut)),me.isBuffer(He))return He.length===0?-1:Oe(Ve,He,nt,ut,We);if(typeof He=="number")return He=He&255,typeof Uint8Array.prototype.indexOf=="function"?We?Uint8Array.prototype.indexOf.call(Ve,He,nt):Uint8Array.prototype.lastIndexOf.call(Ve,He,nt):Oe(Ve,[He],nt,ut,We);throw new TypeError("val must be string, number or Buffer")}function Oe(Ve,He,nt,ut,We){var De=1,Ie=Ve.length,Xe=He.length;if(ut!==void 0&&(ut=String(ut).toLowerCase(),ut==="ucs2"||ut==="ucs-2"||ut==="utf16le"||ut==="utf-16le")){if(Ve.length<2||He.length<2)return-1;De=2,Ie/=2,Xe/=2,nt/=2}function yt(It,Ut){return De===1?It[Ut]:It.readUInt16BE(Ut*De)}var Ye;if(We){var jt=-1;for(Ye=nt;Ye<Ie;Ye++)if(yt(Ve,Ye)===yt(He,jt===-1?0:Ye-jt)){if(jt===-1&&(jt=Ye),Ye-jt+1===Xe)return jt*De}else jt!==-1&&(Ye-=Ye-jt),jt=-1}else for(nt+Xe>Ie&&(nt=Ie-Xe),Ye=nt;Ye>=0;Ye--){for(var Ht=!0,en=0;en<Xe;en++)if(yt(Ve,Ye+en)!==yt(He,en)){Ht=!1;break}if(Ht)return Ye}return-1}me.prototype.includes=function(He,nt,ut){return this.indexOf(He,nt,ut)!==-1},me.prototype.indexOf=function(He,nt,ut){return ke(this,He,nt,ut,!0)},me.prototype.lastIndexOf=function(He,nt,ut){return ke(this,He,nt,ut,!1)};function Fe(Ve,He,nt,ut){nt=Number(nt)||0;var We=Ve.length-nt;ut?(ut=Number(ut),ut>We&&(ut=We)):ut=We;var De=He.length;ut>De/2&&(ut=De/2);for(var Ie=0;Ie<ut;++Ie){var Xe=parseInt(He.substr(Ie*2,2),16);if(et(Xe))return Ie;Ve[nt+Ie]=Xe}return Ie}function Re(Ve,He,nt,ut){return Pt(tt(He,Ve.length-nt),Ve,nt,ut)}function Ze(Ve,He,nt,ut){return Pt(ft(He),Ve,nt,ut)}function ze(Ve,He,nt,ut){return Ze(Ve,He,nt,ut)}function Ke(Ve,He,nt,ut){return Pt(lt(He),Ve,nt,ut)}function ot(Ve,He,nt,ut){return Pt($e(He,Ve.length-nt),Ve,nt,ut)}me.prototype.write=function(He,nt,ut,We){if(nt===void 0)We="utf8",ut=this.length,nt=0;else if(ut===void 0&&typeof nt=="string")We=nt,ut=this.length,nt=0;else if(isFinite(nt))nt=nt>>>0,isFinite(ut)?(ut=ut>>>0,We===void 0&&(We="utf8")):(We=ut,ut=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var De=this.length-nt;if((ut===void 0||ut>De)&&(ut=De),He.length>0&&(ut<0||nt<0)||nt>this.length)throw new RangeError("Attempt to write outside buffer bounds");We||(We="utf8");for(var Ie=!1;;)switch(We){case"hex":return Fe(this,He,nt,ut);case"utf8":case"utf-8":return Re(this,He,nt,ut);case"ascii":return Ze(this,He,nt,ut);case"latin1":case"binary":return ze(this,He,nt,ut);case"base64":return Ke(this,He,nt,ut);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ot(this,He,nt,ut);default:if(Ie)throw new TypeError("Unknown encoding: "+We);We=(""+We).toLowerCase(),Ie=!0}},me.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ct(Ve,He,nt){return He===0&&nt===Ve.length?fe.fromByteArray(Ve):fe.fromByteArray(Ve.slice(He,nt))}function pt(Ve,He,nt){nt=Math.min(Ve.length,nt);for(var ut=[],We=He;We<nt;){var De=Ve[We],Ie=null,Xe=De>239?4:De>223?3:De>191?2:1;if(We+Xe<=nt){var yt,Ye,jt,Ht;switch(Xe){case 1:De<128&&(Ie=De);break;case 2:yt=Ve[We+1],(yt&192)===128&&(Ht=(De&31)<<6|yt&63,Ht>127&&(Ie=Ht));break;case 3:yt=Ve[We+1],Ye=Ve[We+2],(yt&192)===128&&(Ye&192)===128&&(Ht=(De&15)<<12|(yt&63)<<6|Ye&63,Ht>2047&&(Ht<55296||Ht>57343)&&(Ie=Ht));break;case 4:yt=Ve[We+1],Ye=Ve[We+2],jt=Ve[We+3],(yt&192)===128&&(Ye&192)===128&&(jt&192)===128&&(Ht=(De&15)<<18|(yt&63)<<12|(Ye&63)<<6|jt&63,Ht>65535&&Ht<1114112&&(Ie=Ht))}}Ie===null?(Ie=65533,Xe=1):Ie>65535&&(Ie-=65536,ut.push(Ie>>>10&1023|55296),Ie=56320|Ie&1023),ut.push(Ie),We+=Xe}return qe(ut)}var bt=4096;function qe(Ve){var He=Ve.length;if(He<=bt)return String.fromCharCode.apply(String,Ve);for(var nt="",ut=0;ut<He;)nt+=String.fromCharCode.apply(String,Ve.slice(ut,ut+=bt));return nt}function at(Ve,He,nt){var ut="";nt=Math.min(Ve.length,nt);for(var We=He;We<nt;++We)ut+=String.fromCharCode(Ve[We]&127);return ut}function gt(Ve,He,nt){var ut="";nt=Math.min(Ve.length,nt);for(var We=He;We<nt;++We)ut+=String.fromCharCode(Ve[We]);return ut}function Ct(Ve,He,nt){var ut=Ve.length;(!He||He<0)&&(He=0),(!nt||nt<0||nt>ut)&&(nt=ut);for(var We="",De=He;De<nt;++De)We+=St(Ve[De]);return We}function wt(Ve,He,nt){for(var ut=Ve.slice(He,nt),We="",De=0;De<ut.length;De+=2)We+=String.fromCharCode(ut[De]+ut[De+1]*256);return We}me.prototype.slice=function(He,nt){var ut=this.length;He=~~He,nt=nt===void 0?ut:~~nt,He<0?(He+=ut,He<0&&(He=0)):He>ut&&(He=ut),nt<0?(nt+=ut,nt<0&&(nt=0)):nt>ut&&(nt=ut),nt<He&&(nt=He);var We=this.subarray(He,nt);return We.__proto__=me.prototype,We};function vt(Ve,He,nt){if(Ve%1!==0||Ve<0)throw new RangeError("offset is not uint");if(Ve+He>nt)throw new RangeError("Trying to access beyond buffer length")}me.prototype.readUIntLE=function(He,nt,ut){He=He>>>0,nt=nt>>>0,ut||vt(He,nt,this.length);for(var We=this[He],De=1,Ie=0;++Ie<nt&&(De*=256);)We+=this[He+Ie]*De;return We},me.prototype.readUIntBE=function(He,nt,ut){He=He>>>0,nt=nt>>>0,ut||vt(He,nt,this.length);for(var We=this[He+--nt],De=1;nt>0&&(De*=256);)We+=this[He+--nt]*De;return We},me.prototype.readUInt8=function(He,nt){return He=He>>>0,nt||vt(He,1,this.length),this[He]},me.prototype.readUInt16LE=function(He,nt){return He=He>>>0,nt||vt(He,2,this.length),this[He]|this[He+1]<<8},me.prototype.readUInt16BE=function(He,nt){return He=He>>>0,nt||vt(He,2,this.length),this[He]<<8|this[He+1]},me.prototype.readUInt32LE=function(He,nt){return He=He>>>0,nt||vt(He,4,this.length),(this[He]|this[He+1]<<8|this[He+2]<<16)+this[He+3]*16777216},me.prototype.readUInt32BE=function(He,nt){return He=He>>>0,nt||vt(He,4,this.length),this[He]*16777216+(this[He+1]<<16|this[He+2]<<8|this[He+3])},me.prototype.readIntLE=function(He,nt,ut){He=He>>>0,nt=nt>>>0,ut||vt(He,nt,this.length);for(var We=this[He],De=1,Ie=0;++Ie<nt&&(De*=256);)We+=this[He+Ie]*De;return De*=128,We>=De&&(We-=Math.pow(2,8*nt)),We},me.prototype.readIntBE=function(He,nt,ut){He=He>>>0,nt=nt>>>0,ut||vt(He,nt,this.length);for(var We=nt,De=1,Ie=this[He+--We];We>0&&(De*=256);)Ie+=this[He+--We]*De;return De*=128,Ie>=De&&(Ie-=Math.pow(2,8*nt)),Ie},me.prototype.readInt8=function(He,nt){return He=He>>>0,nt||vt(He,1,this.length),this[He]&128?(255-this[He]+1)*-1:this[He]},me.prototype.readInt16LE=function(He,nt){He=He>>>0,nt||vt(He,2,this.length);var ut=this[He]|this[He+1]<<8;return ut&32768?ut|4294901760:ut},me.prototype.readInt16BE=function(He,nt){He=He>>>0,nt||vt(He,2,this.length);var ut=this[He+1]|this[He]<<8;return ut&32768?ut|4294901760:ut},me.prototype.readInt32LE=function(He,nt){return He=He>>>0,nt||vt(He,4,this.length),this[He]|this[He+1]<<8|this[He+2]<<16|this[He+3]<<24},me.prototype.readInt32BE=function(He,nt){return He=He>>>0,nt||vt(He,4,this.length),this[He]<<24|this[He+1]<<16|this[He+2]<<8|this[He+3]},me.prototype.readFloatLE=function(He,nt){return He=He>>>0,nt||vt(He,4,this.length),be.read(this,He,!0,23,4)},me.prototype.readFloatBE=function(He,nt){return He=He>>>0,nt||vt(He,4,this.length),be.read(this,He,!1,23,4)},me.prototype.readDoubleLE=function(He,nt){return He=He>>>0,nt||vt(He,8,this.length),be.read(this,He,!0,52,8)},me.prototype.readDoubleBE=function(He,nt){return He=He>>>0,nt||vt(He,8,this.length),be.read(this,He,!1,52,8)};function mt(Ve,He,nt,ut,We,De){if(!me.isBuffer(Ve))throw new TypeError('"buffer" argument must be a Buffer instance');if(He>We||He<De)throw new RangeError('"value" argument is out of bounds');if(nt+ut>Ve.length)throw new RangeError("Index out of range")}me.prototype.writeUIntLE=function(He,nt,ut,We){if(He=+He,nt=nt>>>0,ut=ut>>>0,!We){var De=Math.pow(2,8*ut)-1;mt(this,He,nt,ut,De,0)}var Ie=1,Xe=0;for(this[nt]=He&255;++Xe<ut&&(Ie*=256);)this[nt+Xe]=He/Ie&255;return nt+ut},me.prototype.writeUIntBE=function(He,nt,ut,We){if(He=+He,nt=nt>>>0,ut=ut>>>0,!We){var De=Math.pow(2,8*ut)-1;mt(this,He,nt,ut,De,0)}var Ie=ut-1,Xe=1;for(this[nt+Ie]=He&255;--Ie>=0&&(Xe*=256);)this[nt+Ie]=He/Xe&255;return nt+ut},me.prototype.writeUInt8=function(He,nt,ut){return He=+He,nt=nt>>>0,ut||mt(this,He,nt,1,255,0),this[nt]=He&255,nt+1},me.prototype.writeUInt16LE=function(He,nt,ut){return He=+He,nt=nt>>>0,ut||mt(this,He,nt,2,65535,0),this[nt]=He&255,this[nt+1]=He>>>8,nt+2},me.prototype.writeUInt16BE=function(He,nt,ut){return He=+He,nt=nt>>>0,ut||mt(this,He,nt,2,65535,0),this[nt]=He>>>8,this[nt+1]=He&255,nt+2},me.prototype.writeUInt32LE=function(He,nt,ut){return He=+He,nt=nt>>>0,ut||mt(this,He,nt,4,4294967295,0),this[nt+3]=He>>>24,this[nt+2]=He>>>16,this[nt+1]=He>>>8,this[nt]=He&255,nt+4},me.prototype.writeUInt32BE=function(He,nt,ut){return He=+He,nt=nt>>>0,ut||mt(this,He,nt,4,4294967295,0),this[nt]=He>>>24,this[nt+1]=He>>>16,this[nt+2]=He>>>8,this[nt+3]=He&255,nt+4},me.prototype.writeIntLE=function(He,nt,ut,We){if(He=+He,nt=nt>>>0,!We){var De=Math.pow(2,8*ut-1);mt(this,He,nt,ut,De-1,-De)}var Ie=0,Xe=1,yt=0;for(this[nt]=He&255;++Ie<ut&&(Xe*=256);)He<0&&yt===0&&this[nt+Ie-1]!==0&&(yt=1),this[nt+Ie]=(He/Xe>>0)-yt&255;return nt+ut},me.prototype.writeIntBE=function(He,nt,ut,We){if(He=+He,nt=nt>>>0,!We){var De=Math.pow(2,8*ut-1);mt(this,He,nt,ut,De-1,-De)}var Ie=ut-1,Xe=1,yt=0;for(this[nt+Ie]=He&255;--Ie>=0&&(Xe*=256);)He<0&&yt===0&&this[nt+Ie+1]!==0&&(yt=1),this[nt+Ie]=(He/Xe>>0)-yt&255;return nt+ut},me.prototype.writeInt8=function(He,nt,ut){return He=+He,nt=nt>>>0,ut||mt(this,He,nt,1,127,-128),He<0&&(He=255+He+1),this[nt]=He&255,nt+1},me.prototype.writeInt16LE=function(He,nt,ut){return He=+He,nt=nt>>>0,ut||mt(this,He,nt,2,32767,-32768),this[nt]=He&255,this[nt+1]=He>>>8,nt+2},me.prototype.writeInt16BE=function(He,nt,ut){return He=+He,nt=nt>>>0,ut||mt(this,He,nt,2,32767,-32768),this[nt]=He>>>8,this[nt+1]=He&255,nt+2},me.prototype.writeInt32LE=function(He,nt,ut){return He=+He,nt=nt>>>0,ut||mt(this,He,nt,4,2147483647,-2147483648),this[nt]=He&255,this[nt+1]=He>>>8,this[nt+2]=He>>>16,this[nt+3]=He>>>24,nt+4},me.prototype.writeInt32BE=function(He,nt,ut){return He=+He,nt=nt>>>0,ut||mt(this,He,nt,4,2147483647,-2147483648),He<0&&(He=4294967295+He+1),this[nt]=He>>>24,this[nt+1]=He>>>16,this[nt+2]=He>>>8,this[nt+3]=He&255,nt+4};function xt(Ve,He,nt,ut,We,De){if(nt+ut>Ve.length)throw new RangeError("Index out of range");if(nt<0)throw new RangeError("Index out of range")}function At(Ve,He,nt,ut,We){return He=+He,nt=nt>>>0,We||xt(Ve,He,nt,4,34028234663852886e22,-34028234663852886e22),be.write(Ve,He,nt,ut,23,4),nt+4}me.prototype.writeFloatLE=function(He,nt,ut){return At(this,He,nt,!0,ut)},me.prototype.writeFloatBE=function(He,nt,ut){return At(this,He,nt,!1,ut)};function kt(Ve,He,nt,ut,We){return He=+He,nt=nt>>>0,We||xt(Ve,He,nt,8,17976931348623157e292,-17976931348623157e292),be.write(Ve,He,nt,ut,52,8),nt+8}me.prototype.writeDoubleLE=function(He,nt,ut){return kt(this,He,nt,!0,ut)},me.prototype.writeDoubleBE=function(He,nt,ut){return kt(this,He,nt,!1,ut)},me.prototype.copy=function(He,nt,ut,We){if(!me.isBuffer(He))throw new TypeError("argument should be a Buffer");if(ut||(ut=0),!We&&We!==0&&(We=this.length),nt>=He.length&&(nt=He.length),nt||(nt=0),We>0&&We<ut&&(We=ut),We===ut||He.length===0||this.length===0)return 0;if(nt<0)throw new RangeError("targetStart out of bounds");if(ut<0||ut>=this.length)throw new RangeError("Index out of range");if(We<0)throw new RangeError("sourceEnd out of bounds");We>this.length&&(We=this.length),He.length-nt<We-ut&&(We=He.length-nt+ut);var De=We-ut;if(this===He&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(nt,ut,We);else if(this===He&&ut<nt&&nt<We)for(var Ie=De-1;Ie>=0;--Ie)He[Ie+nt]=this[Ie+ut];else Uint8Array.prototype.set.call(He,this.subarray(ut,We),nt);return De},me.prototype.fill=function(He,nt,ut,We){if(typeof He=="string"){if(typeof nt=="string"?(We=nt,nt=0,ut=this.length):typeof ut=="string"&&(We=ut,ut=this.length),We!==void 0&&typeof We!="string")throw new TypeError("encoding must be a string");if(typeof We=="string"&&!me.isEncoding(We))throw new TypeError("Unknown encoding: "+We);if(He.length===1){var De=He.charCodeAt(0);(We==="utf8"&&De<128||We==="latin1")&&(He=De)}}else typeof He=="number"&&(He=He&255);if(nt<0||this.length<nt||this.length<ut)throw new RangeError("Out of range index");if(ut<=nt)return this;nt=nt>>>0,ut=ut===void 0?this.length:ut>>>0,He||(He=0);var Ie;if(typeof He=="number")for(Ie=nt;Ie<ut;++Ie)this[Ie]=He;else{var Xe=me.isBuffer(He)?He:me.from(He,We),yt=Xe.length;if(yt===0)throw new TypeError('The value "'+He+'" is invalid for argument "value"');for(Ie=0;Ie<ut-nt;++Ie)this[Ie+nt]=Xe[Ie%yt]}return this};var Wt=/[^+/0-9A-Za-z-_]/g;function Et(Ve){if(Ve=Ve.split("=")[0],Ve=Ve.trim().replace(Wt,""),Ve.length<2)return"";for(;Ve.length%4!==0;)Ve=Ve+"=";return Ve}function St(Ve){return Ve<16?"0"+Ve.toString(16):Ve.toString(16)}function tt(Ve,He){He=He||1/0;for(var nt,ut=Ve.length,We=null,De=[],Ie=0;Ie<ut;++Ie){if(nt=Ve.charCodeAt(Ie),nt>55295&&nt<57344){if(!We){if(nt>56319){(He-=3)>-1&&De.push(239,191,189);continue}else if(Ie+1===ut){(He-=3)>-1&&De.push(239,191,189);continue}We=nt;continue}if(nt<56320){(He-=3)>-1&&De.push(239,191,189),We=nt;continue}nt=(We-55296<<10|nt-56320)+65536}else We&&(He-=3)>-1&&De.push(239,191,189);if(We=null,nt<128){if((He-=1)<0)break;De.push(nt)}else if(nt<2048){if((He-=2)<0)break;De.push(nt>>6|192,nt&63|128)}else if(nt<65536){if((He-=3)<0)break;De.push(nt>>12|224,nt>>6&63|128,nt&63|128)}else if(nt<1114112){if((He-=4)<0)break;De.push(nt>>18|240,nt>>12&63|128,nt>>6&63|128,nt&63|128)}else throw new Error("Invalid code point")}return De}function ft(Ve){for(var He=[],nt=0;nt<Ve.length;++nt)He.push(Ve.charCodeAt(nt)&255);return He}function $e(Ve,He){for(var nt,ut,We,De=[],Ie=0;Ie<Ve.length&&!((He-=2)<0);++Ie)nt=Ve.charCodeAt(Ie),ut=nt>>8,We=nt%256,De.push(We),De.push(ut);return De}function lt(Ve){return fe.toByteArray(Et(Ve))}function Pt(Ve,He,nt,ut){for(var We=0;We<ut&&!(We+nt>=He.length||We>=Ve.length);++We)He[We+nt]=Ve[We];return We}function dt(Ve,He){return Ve instanceof He||Ve!=null&&Ve.constructor!=null&&Ve.constructor.name!=null&&Ve.constructor.name===He.name}function et(Ve){return Ve!==Ve}}).call(this)}).call(this,oe("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(oe,_e,Ne){_e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],92:[function(oe,_e,Ne){"use strict";var ve=oe("get-intrinsic"),fe=oe("./"),be=fe(ve("String.prototype.indexOf"));_e.exports=function(ye,we){var me=ve(ye,!!we);return typeof me=="function"&&be(ye,".prototype.")>-1?fe(me):me}},{"./":93,"get-intrinsic":348}],93:[function(oe,_e,Ne){"use strict";var ve=oe("function-bind"),fe=oe("get-intrinsic"),be=fe("%Function.prototype.apply%"),Pe=fe("%Function.prototype.call%"),ye=fe("%Reflect.apply%",!0)||ve.call(Pe,be),we=fe("%Object.getOwnPropertyDescriptor%",!0),me=fe("%Object.defineProperty%",!0),Se=fe("%Math.max%");if(me)try{me({},"a",{value:1})}catch(z){me=null}_e.exports=function(ee){var ae=ye(ve,Pe,arguments);if(we&&me){var re=we(ae,"length");re.configurable&&me(ae,"length",{value:1+Se(0,ee.length-(arguments.length-1))})}return ae};var de=function(){return ye(ve,be,arguments)};me?me(_e.exports,"apply",{value:de}):_e.exports.apply=de},{"function-bind":347,"get-intrinsic":348}],94:[function(oe,_e,Ne){"use strict";var ve=Array.prototype.slice;_e.exports=fe;function fe(Pe,ye){if(!(this instanceof fe))return new fe(Pe,ye);this.src=Pe,this._withAccess=ye}fe.prototype.withAccess=function(Pe){return this._withAccess=Pe!==!1,this},fe.prototype.pick=function(Pe){return Array.isArray(Pe)||(Pe=ve.call(arguments)),Pe.length&&(this.keys=Pe),this},fe.prototype.to=function(Pe){if(Pe=Pe||{},!this.src)return Pe;var ye=this.keys||Object.keys(this.src);if(!this._withAccess){for(var we=0;we<ye.length;we++)me=ye[we],Pe[me]===void 0&&(Pe[me]=this.src[me]);return Pe}for(var we=0;we<ye.length;we++){var me=ye[we];if(be(Pe,me)){var Se=this.src.__lookupGetter__(me),de=this.src.__lookupSetter__(me);Se&&Pe.__defineGetter__(me,Se),de&&Pe.__defineSetter__(me,de),!Se&&!de&&(Pe[me]=this.src[me])}}return Pe},fe.prototype.toCover=function(Pe){for(var ye=this.keys||Object.keys(this.src),we=0;we<ye.length;we++){var me=ye[we];delete Pe[me];var Se=this.src.__lookupGetter__(me),de=this.src.__lookupSetter__(me);Se&&Pe.__defineGetter__(me,Se),de&&Pe.__defineSetter__(me,de),!Se&&!de&&(Pe[me]=this.src[me])}},fe.prototype.override=fe.prototype.toCover,fe.prototype.and=function(Pe){var ye={};return this.to(ye),this.src=Pe,this.to(ye),this.src=ye,this};function be(Pe,ye){return Pe[ye]===void 0&&Pe.__lookupGetter__(ye)===void 0&&Pe.__lookupSetter__(ye)===void 0}},{}],95:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/is-callable"),be=oe("../internals/try-to-string"),Pe=ve.TypeError;_e.exports=function(ye){if(fe(ye))return ye;throw Pe(be(ye)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/is-constructor"),be=oe("../internals/try-to-string"),Pe=ve.TypeError;_e.exports=function(ye){if(fe(ye))return ye;throw Pe(be(ye)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/is-callable"),be=ve.String,Pe=ve.TypeError;_e.exports=function(ye){if(typeof ye=="object"||fe(ye))return ye;throw Pe("Can't set "+be(ye)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(oe,_e,Ne){var ve=oe("../internals/well-known-symbol"),fe=oe("../internals/object-create"),be=oe("../internals/object-define-property"),Pe=ve("unscopables"),ye=Array.prototype;ye[Pe]==null&&be.f(ye,Pe,{configurable:!0,value:fe(null)}),_e.exports=function(we){ye[Pe][we]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/string-multibyte").charAt;_e.exports=function(fe,be,Pe){return be+(Pe?ve(fe,be).length:1)}},{"../internals/string-multibyte":239}],100:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/object-is-prototype-of"),be=ve.TypeError;_e.exports=function(Pe,ye){if(fe(ye,Pe))return Pe;throw be("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/is-object"),be=ve.String,Pe=ve.TypeError;_e.exports=function(ye){if(fe(ye))return ye;throw Pe(be(ye)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(oe,_e,Ne){_e.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/array-buffer-native"),fe=oe("../internals/descriptors"),be=oe("../internals/global"),Pe=oe("../internals/is-callable"),ye=oe("../internals/is-object"),we=oe("../internals/has-own-property"),me=oe("../internals/classof"),Se=oe("../internals/try-to-string"),de=oe("../internals/create-non-enumerable-property"),z=oe("../internals/redefine"),ee=oe("../internals/object-define-property").f,ae=oe("../internals/object-is-prototype-of"),re=oe("../internals/object-get-prototype-of"),le=oe("../internals/object-set-prototype-of"),ue=oe("../internals/well-known-symbol"),pe=oe("../internals/uid"),Ee=be.Int8Array,Ce=Ee&&Ee.prototype,je=be.Uint8ClampedArray,Le=je&&je.prototype,ke=Ee&&re(Ee),Oe=Ce&&re(Ce),Fe=Object.prototype,Re=be.TypeError,Ze=ue("toStringTag"),ze=pe("TYPED_ARRAY_TAG"),Ke=pe("TYPED_ARRAY_CONSTRUCTOR"),ot=ve&&!!le&&me(be.opera)!=="Opera",ct=!1,pt,bt,qe,at={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},gt={BigInt64Array:8,BigUint64Array:8},Ct=function(Wt){if(!ye(Wt))return!1;var Et=me(Wt);return Et==="DataView"||we(at,Et)||we(gt,Et)},wt=function(kt){if(!ye(kt))return!1;var Wt=me(kt);return we(at,Wt)||we(gt,Wt)},vt=function(kt){if(wt(kt))return kt;throw Re("Target is not a typed array")},mt=function(kt){if(Pe(kt)&&(!le||ae(ke,kt)))return kt;throw Re(Se(kt)+" is not a typed array constructor")},xt=function(kt,Wt,Et,St){if(fe){if(Et)for(var tt in at){var ft=be[tt];if(ft&&we(ft.prototype,kt))try{delete ft.prototype[kt]}catch($e){try{ft.prototype[kt]=Wt}catch(lt){}}}(!Oe[kt]||Et)&&z(Oe,kt,Et?Wt:ot&&Ce[kt]||Wt,St)}},At=function(kt,Wt,Et){var St,tt;if(fe){if(le){if(Et){for(St in at)if(tt=be[St],tt&&we(tt,kt))try{delete tt[kt]}catch(ft){}}if(!ke[kt]||Et)try{return z(ke,kt,Et?Wt:ot&&ke[kt]||Wt)}catch(ft){}else return}for(St in at)tt=be[St],tt&&(!tt[kt]||Et)&&z(tt,kt,Wt)}};for(pt in at)bt=be[pt],qe=bt&&bt.prototype,qe?de(qe,Ke,bt):ot=!1;for(pt in gt)bt=be[pt],qe=bt&&bt.prototype,qe&&de(qe,Ke,bt);if((!ot||!Pe(ke)||ke===Function.prototype)&&(ke=function(){throw Re("Incorrect invocation")},ot))for(pt in at)be[pt]&&le(be[pt],ke);if((!ot||!Oe||Oe===Fe)&&(Oe=ke.prototype,ot))for(pt in at)be[pt]&&le(be[pt].prototype,Oe);if(ot&&re(Le)!==Oe&&le(Le,Oe),fe&&!we(Oe,Ze)){ct=!0,ee(Oe,Ze,{get:function(){return ye(this)?this[ze]:void 0}});for(pt in at)be[pt]&&de(be[pt],ze,pt)}_e.exports={NATIVE_ARRAY_BUFFER_VIEWS:ot,TYPED_ARRAY_CONSTRUCTOR:Ke,TYPED_ARRAY_TAG:ct&&ze,aTypedArray:vt,aTypedArrayConstructor:mt,exportTypedArrayMethod:xt,exportTypedArrayStaticMethod:At,isView:Ct,isTypedArray:wt,TypedArray:ke,TypedArrayPrototype:Oe}},{"../internals/array-buffer-native":102,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-define-property":198,"../internals/object-get-prototype-of":203,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/try-to-string":257,"../internals/uid":263,"../internals/well-known-symbol":268}],104:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/global"),fe=oe("../internals/function-uncurry-this"),be=oe("../internals/descriptors"),Pe=oe("../internals/array-buffer-native"),ye=oe("../internals/function-name"),we=oe("../internals/create-non-enumerable-property"),me=oe("../internals/redefine-all"),Se=oe("../internals/fails"),de=oe("../internals/an-instance"),z=oe("../internals/to-integer-or-infinity"),ee=oe("../internals/to-length"),ae=oe("../internals/to-index"),re=oe("../internals/ieee754"),le=oe("../internals/object-get-prototype-of"),ue=oe("../internals/object-set-prototype-of"),pe=oe("../internals/object-get-own-property-names").f,Ee=oe("../internals/object-define-property").f,Ce=oe("../internals/array-fill"),je=oe("../internals/array-slice-simple"),Le=oe("../internals/set-to-string-tag"),ke=oe("../internals/internal-state"),Oe=ye.PROPER,Fe=ye.CONFIGURABLE,Re=ke.get,Ze=ke.set,ze="ArrayBuffer",Ke="DataView",ot="prototype",ct="Wrong length",pt="Wrong index",bt=ve[ze],qe=bt,at=qe&&qe[ot],gt=ve[Ke],Ct=gt&>[ot],wt=Object.prototype,vt=ve.Array,mt=ve.RangeError,xt=fe(Ce),At=fe([].reverse),kt=re.pack,Wt=re.unpack,Et=function(Ie){return[Ie&255]},St=function(Ie){return[Ie&255,Ie>>8&255]},tt=function(Ie){return[Ie&255,Ie>>8&255,Ie>>16&255,Ie>>24&255]},ft=function(Ie){return Ie[3]<<24|Ie[2]<<16|Ie[1]<<8|Ie[0]},$e=function(Ie){return kt(Ie,23,4)},lt=function(Ie){return kt(Ie,52,8)},Pt=function(Ie,Xe){Ee(Ie[ot],Xe,{get:function(){return Re(this)[Xe]}})},dt=function(Ie,Xe,yt,Ye){var jt=ae(yt),Ht=Re(Ie);if(jt+Xe>Ht.byteLength)throw mt(pt);var en=Re(Ht.buffer).bytes,It=jt+Ht.byteOffset,Ut=je(en,It,It+Xe);return Ye?Ut:At(Ut)},et=function(Ie,Xe,yt,Ye,jt,Ht){var en=ae(yt),It=Re(Ie);if(en+Xe>It.byteLength)throw mt(pt);for(var Ut=Re(It.buffer).bytes,tn=en+It.byteOffset,ln=Ye(+jt),mn=0;mn<Xe;mn++)Ut[tn+mn]=ln[Ht?mn:Xe-mn-1]};if(!Pe)qe=function(Xe){de(this,at);var yt=ae(Xe);Ze(this,{bytes:xt(vt(yt),0),byteLength:yt}),be||(this.byteLength=yt)},at=qe[ot],gt=function(Xe,yt,Ye){de(this,Ct),de(Xe,at);var jt=Re(Xe).byteLength,Ht=z(yt);if(Ht<0||Ht>jt)throw mt("Wrong offset");if(Ye=Ye===void 0?jt-Ht:ee(Ye),Ht+Ye>jt)throw mt(ct);Ze(this,{buffer:Xe,byteLength:Ye,byteOffset:Ht}),be||(this.buffer=Xe,this.byteLength=Ye,this.byteOffset=Ht)},Ct=gt[ot],be&&(Pt(qe,"byteLength"),Pt(gt,"buffer"),Pt(gt,"byteLength"),Pt(gt,"byteOffset")),me(Ct,{getInt8:function(Xe){return dt(this,1,Xe)[0]<<24>>24},getUint8:function(Xe){return dt(this,1,Xe)[0]},getInt16:function(Xe){var yt=dt(this,2,Xe,arguments.length>1?arguments[1]:void 0);return(yt[1]<<8|yt[0])<<16>>16},getUint16:function(Xe){var yt=dt(this,2,Xe,arguments.length>1?arguments[1]:void 0);return yt[1]<<8|yt[0]},getInt32:function(Xe){return ft(dt(this,4,Xe,arguments.length>1?arguments[1]:void 0))},getUint32:function(Xe){return ft(dt(this,4,Xe,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(Xe){return Wt(dt(this,4,Xe,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(Xe){return Wt(dt(this,8,Xe,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(Xe,yt){et(this,1,Xe,Et,yt)},setUint8:function(Xe,yt){et(this,1,Xe,Et,yt)},setInt16:function(Xe,yt){et(this,2,Xe,St,yt,arguments.length>2?arguments[2]:void 0)},setUint16:function(Xe,yt){et(this,2,Xe,St,yt,arguments.length>2?arguments[2]:void 0)},setInt32:function(Xe,yt){et(this,4,Xe,tt,yt,arguments.length>2?arguments[2]:void 0)},setUint32:function(Xe,yt){et(this,4,Xe,tt,yt,arguments.length>2?arguments[2]:void 0)},setFloat32:function(Xe,yt){et(this,4,Xe,$e,yt,arguments.length>2?arguments[2]:void 0)},setFloat64:function(Xe,yt){et(this,8,Xe,lt,yt,arguments.length>2?arguments[2]:void 0)}});else{var Ve=Oe&&bt.name!==ze;if(!Se(function(){bt(1)})||!Se(function(){new bt(-1)})||Se(function(){return new bt,new bt(1.5),new bt(NaN),Ve&&!Fe})){qe=function(Xe){return de(this,at),new bt(ae(Xe))},qe[ot]=at;for(var He=pe(bt),nt=0,ut;He.length>nt;)(ut=He[nt++])in qe||we(qe,ut,bt[ut]);at.constructor=qe}else Ve&&Fe&&we(bt,"name",ze);ue&&le(Ct)!==wt&&ue(Ct,wt);var We=new gt(new qe(2)),De=fe(Ct.setInt8);We.setInt8(0,2147483648),We.setInt8(1,2147483649),(We.getInt8(0)||!We.getInt8(1))&&me(Ct,{setInt8:function(Xe,yt){De(this,Xe,yt<<24>>24)},setUint8:function(Xe,yt){De(this,Xe,yt<<24>>24)}},{unsafe:!0})}Le(qe,ze),Le(gt,Ke),_e.exports={ArrayBuffer:qe,DataView:gt}},{"../internals/an-instance":100,"../internals/array-buffer-native":102,"../internals/array-fill":106,"../internals/array-slice-simple":116,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/ieee754":169,"../internals/internal-state":173,"../internals/object-define-property":198,"../internals/object-get-own-property-names":201,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine-all":221,"../internals/set-to-string-tag":234,"../internals/to-index":246,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],105:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/to-object"),fe=oe("../internals/to-absolute-index"),be=oe("../internals/length-of-array-like"),Pe=Math.min;_e.exports=[].copyWithin||function(we,me){var Se=ve(this),de=be(Se),z=fe(we,de),ee=fe(me,de),ae=arguments.length>2?arguments[2]:void 0,re=Pe((ae===void 0?de:fe(ae,de))-ee,de-z),le=1;for(ee<z&&z<ee+re&&(le=-1,ee+=re-1,z+=re-1);re-- >0;)ee in Se?Se[z]=Se[ee]:delete Se[z],z+=le,ee+=le;return Se}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/to-object"),fe=oe("../internals/to-absolute-index"),be=oe("../internals/length-of-array-like");_e.exports=function(ye){for(var we=ve(this),me=be(we),Se=arguments.length,de=fe(Se>1?arguments[1]:void 0,me),z=Se>2?arguments[2]:void 0,ee=z===void 0?me:fe(z,me);ee>de;)we[de++]=ye;return we}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/array-iteration").forEach,fe=oe("../internals/array-method-is-strict"),be=fe("forEach");_e.exports=be?[].forEach:function(ye){return ve(this,ye,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(oe,_e,Ne){var ve=oe("../internals/length-of-array-like");_e.exports=function(fe,be){for(var Pe=0,ye=ve(be),we=new fe(ye);ye>Pe;)we[Pe]=be[Pe++];return we}},{"../internals/length-of-array-like":188}],109:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/global"),fe=oe("../internals/function-bind-context"),be=oe("../internals/function-call"),Pe=oe("../internals/to-object"),ye=oe("../internals/call-with-safe-iteration-closing"),we=oe("../internals/is-array-iterator-method"),me=oe("../internals/is-constructor"),Se=oe("../internals/length-of-array-like"),de=oe("../internals/create-property"),z=oe("../internals/get-iterator"),ee=oe("../internals/get-iterator-method"),ae=ve.Array;_e.exports=function(le){var ue=Pe(le),pe=me(this),Ee=arguments.length,Ce=Ee>1?arguments[1]:void 0,je=Ce!==void 0;je&&(Ce=fe(Ce,Ee>2?arguments[2]:void 0));var Le=ee(ue),ke=0,Oe,Fe,Re,Ze,ze,Ke;if(Le&&!(this==ae&&we(Le)))for(Ze=z(ue,Le),ze=Ze.next,Fe=pe?new this:[];!(Re=be(ze,Ze)).done;ke++)Ke=je?ye(Ze,Ce,[Re.value,ke],!0):Re.value,de(Fe,ke,Ke);else for(Oe=Se(ue),Fe=pe?new this(Oe):ae(Oe);Oe>ke;ke++)Ke=je?Ce(ue[ke],ke):ue[ke],de(Fe,ke,Ke);return Fe.length=ke,Fe}},{"../internals/call-with-safe-iteration-closing":121,"../internals/create-property":131,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/is-constructor":177,"../internals/length-of-array-like":188,"../internals/to-object":250}],110:[function(oe,_e,Ne){var ve=oe("../internals/to-indexed-object"),fe=oe("../internals/to-absolute-index"),be=oe("../internals/length-of-array-like"),Pe=function(ye){return function(we,me,Se){var de=ve(we),z=be(de),ee=fe(Se,z),ae;if(ye&&me!=me){for(;z>ee;)if(ae=de[ee++],ae!=ae)return!0}else for(;z>ee;ee++)if((ye||ee in de)&&de[ee]===me)return ye||ee||0;return!ye&&-1}};_e.exports={includes:Pe(!0),indexOf:Pe(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(oe,_e,Ne){var ve=oe("../internals/function-bind-context"),fe=oe("../internals/function-uncurry-this"),be=oe("../internals/indexed-object"),Pe=oe("../internals/to-object"),ye=oe("../internals/length-of-array-like"),we=oe("../internals/array-species-create"),me=fe([].push),Se=function(de){var z=de==1,ee=de==2,ae=de==3,re=de==4,le=de==6,ue=de==7,pe=de==5||le;return function(Ee,Ce,je,Le){for(var ke=Pe(Ee),Oe=be(ke),Fe=ve(Ce,je),Re=ye(Oe),Ze=0,ze=Le||we,Ke=z?ze(Ee,Re):ee||ue?ze(Ee,0):void 0,ot,ct;Re>Ze;Ze++)if((pe||Ze in Oe)&&(ot=Oe[Ze],ct=Fe(ot,Ze,ke),de))if(z)Ke[Ze]=ct;else if(ct)switch(de){case 3:return!0;case 5:return ot;case 6:return Ze;case 2:me(Ke,ot)}else switch(de){case 4:return!1;case 7:me(Ke,ot)}return le?-1:ae||re?re:Ke}};_e.exports={forEach:Se(0),map:Se(1),filter:Se(2),some:Se(3),every:Se(4),find:Se(5),findIndex:Se(6),filterReject:Se(7)}},{"../internals/array-species-create":120,"../internals/function-bind-context":153,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],112:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/function-apply"),fe=oe("../internals/to-indexed-object"),be=oe("../internals/to-integer-or-infinity"),Pe=oe("../internals/length-of-array-like"),ye=oe("../internals/array-method-is-strict"),we=Math.min,me=[].lastIndexOf,Se=!!me&&1/[1].lastIndexOf(1,-0)<0,de=ye("lastIndexOf"),z=Se||!de;_e.exports=z?function(ae){if(Se)return ve(me,this,arguments)||0;var re=fe(this),le=Pe(re),ue=le-1;for(arguments.length>1&&(ue=we(ue,be(arguments[1]))),ue<0&&(ue=le+ue);ue>=0;ue--)if(ue in re&&re[ue]===ae)return ue||0;return-1}:me},{"../internals/array-method-is-strict":114,"../internals/function-apply":152,"../internals/length-of-array-like":188,"../internals/to-indexed-object":247,"../internals/to-integer-or-infinity":248}],113:[function(oe,_e,Ne){var ve=oe("../internals/fails"),fe=oe("../internals/well-known-symbol"),be=oe("../internals/engine-v8-version"),Pe=fe("species");_e.exports=function(ye){return be>=51||!ve(function(){var we=[],me=we.constructor={};return me[Pe]=function(){return{foo:1}},we[ye](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/fails");_e.exports=function(fe,be){var Pe=[][fe];return!!Pe&&ve(function(){Pe.call(null,be||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/a-callable"),be=oe("../internals/to-object"),Pe=oe("../internals/indexed-object"),ye=oe("../internals/length-of-array-like"),we=ve.TypeError,me=function(Se){return function(de,z,ee,ae){fe(z);var re=be(de),le=Pe(re),ue=ye(re),pe=Se?ue-1:0,Ee=Se?-1:1;if(ee<2)for(;;){if(pe in le){ae=le[pe],pe+=Ee;break}if(pe+=Ee,Se?pe<0:ue<=pe)throw we("Reduce of empty array with no initial value")}for(;Se?pe>=0:ue>pe;pe+=Ee)pe in le&&(ae=z(ae,le[pe],pe,re));return ae}};_e.exports={left:me(!1),right:me(!0)}},{"../internals/a-callable":95,"../internals/global":163,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],116:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/to-absolute-index"),be=oe("../internals/length-of-array-like"),Pe=oe("../internals/create-property"),ye=ve.Array,we=Math.max;_e.exports=function(me,Se,de){for(var z=be(me),ee=fe(Se,z),ae=fe(de===void 0?z:de,z),re=ye(we(ae-ee,0)),le=0;ee<ae;ee++,le++)Pe(re,le,me[ee]);return re.length=le,re}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(oe,_e,Ne){var ve=oe("../internals/function-uncurry-this");_e.exports=ve([].slice)},{"../internals/function-uncurry-this":157}],118:[function(oe,_e,Ne){var ve=oe("../internals/array-slice-simple"),fe=Math.floor,be=function(we,me){var Se=we.length,de=fe(Se/2);return Se<8?Pe(we,me):ye(we,be(ve(we,0,de),me),be(ve(we,de),me),me)},Pe=function(we,me){for(var Se=we.length,de=1,z,ee;de<Se;){for(ee=de,z=we[de];ee&&me(we[ee-1],z)>0;)we[ee]=we[--ee];ee!==de++&&(we[ee]=z)}return we},ye=function(we,me,Se,de){for(var z=me.length,ee=Se.length,ae=0,re=0;ae<z||re<ee;)we[ae+re]=ae<z&&re<ee?de(me[ae],Se[re])<=0?me[ae++]:Se[re++]:ae<z?me[ae++]:Se[re++];return we};_e.exports=be},{"../internals/array-slice-simple":116}],119:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/is-array"),be=oe("../internals/is-constructor"),Pe=oe("../internals/is-object"),ye=oe("../internals/well-known-symbol"),we=ye("species"),me=ve.Array;_e.exports=function(Se){var de;return fe(Se)&&(de=Se.constructor,be(de)&&(de===me||fe(de.prototype))?de=void 0:Pe(de)&&(de=de[we],de===null&&(de=void 0))),de===void 0?me:de}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(oe,_e,Ne){var ve=oe("../internals/array-species-constructor");_e.exports=function(fe,be){return new(ve(fe))(be===0?0:be)}},{"../internals/array-species-constructor":119}],121:[function(oe,_e,Ne){var ve=oe("../internals/an-object"),fe=oe("../internals/iterator-close");_e.exports=function(be,Pe,ye,we){try{return we?Pe(ve(ye)[0],ye[1]):Pe(ye)}catch(me){fe(be,"throw",me)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(oe,_e,Ne){var ve=oe("../internals/well-known-symbol"),fe=ve("iterator"),be=!1;try{var Pe=0,ye={next:function(){return{done:!!Pe++}},return:function(){be=!0}};ye[fe]=function(){return this},Array.from(ye,function(){throw 2})}catch(we){}_e.exports=function(we,me){if(!me&&!be)return!1;var Se=!1;try{var de={};de[fe]=function(){return{next:function(){return{done:Se=!0}}}},we(de)}catch(z){}return Se}},{"../internals/well-known-symbol":268}],123:[function(oe,_e,Ne){var ve=oe("../internals/function-uncurry-this"),fe=ve({}.toString),be=ve("".slice);_e.exports=function(Pe){return be(fe(Pe),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/to-string-tag-support"),be=oe("../internals/is-callable"),Pe=oe("../internals/classof-raw"),ye=oe("../internals/well-known-symbol"),we=ye("toStringTag"),me=ve.Object,Se=Pe(function(){return arguments}())=="Arguments",de=function(z,ee){try{return z[ee]}catch(ae){}};_e.exports=fe?Pe:function(z){var ee,ae,re;return z===void 0?"Undefined":z===null?"Null":typeof(ae=de(ee=me(z),we))=="string"?ae:Se?Pe(ee):(re=Pe(ee))=="Object"&&be(ee.callee)?"Arguments":re}},{"../internals/classof-raw":123,"../internals/global":163,"../internals/is-callable":176,"../internals/to-string-tag-support":255,"../internals/well-known-symbol":268}],125:[function(oe,_e,Ne){var ve=oe("../internals/has-own-property"),fe=oe("../internals/own-keys"),be=oe("../internals/object-get-own-property-descriptor"),Pe=oe("../internals/object-define-property");_e.exports=function(ye,we,me){for(var Se=fe(we),de=Pe.f,z=be.f,ee=0;ee<Se.length;ee++){var ae=Se[ee];!ve(ye,ae)&&!(me&&ve(me,ae))&&de(ye,ae,z(we,ae))}}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/own-keys":212}],126:[function(oe,_e,Ne){var ve=oe("../internals/well-known-symbol"),fe=ve("match");_e.exports=function(be){var Pe=/./;try{"/./"[be](Pe)}catch(ye){try{return Pe[fe]=!1,"/./"[be](Pe)}catch(we){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(oe,_e,Ne){var ve=oe("../internals/fails");_e.exports=!ve(function(){function fe(){}return fe.prototype.constructor=null,Object.getPrototypeOf(new fe)!==fe.prototype})},{"../internals/fails":150}],128:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/iterators-core").IteratorPrototype,fe=oe("../internals/object-create"),be=oe("../internals/create-property-descriptor"),Pe=oe("../internals/set-to-string-tag"),ye=oe("../internals/iterators"),we=function(){return this};_e.exports=function(me,Se,de,z){var ee=Se+" Iterator";return me.prototype=fe(ve,{next:be(+!z,de)}),Pe(me,ee,!1,!0),ye[ee]=we,me}},{"../internals/create-property-descriptor":130,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-create":196,"../internals/set-to-string-tag":234}],129:[function(oe,_e,Ne){var ve=oe("../internals/descriptors"),fe=oe("../internals/object-define-property"),be=oe("../internals/create-property-descriptor");_e.exports=ve?function(Pe,ye,we){return fe.f(Pe,ye,be(1,we))}:function(Pe,ye,we){return Pe[ye]=we,Pe}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(oe,_e,Ne){_e.exports=function(ve,fe){return{enumerable:!(ve&1),configurable:!(ve&2),writable:!(ve&4),value:fe}}},{}],131:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/to-property-key"),fe=oe("../internals/object-define-property"),be=oe("../internals/create-property-descriptor");_e.exports=function(Pe,ye,we){var me=ve(ye);me in Pe?fe.f(Pe,me,be(0,we)):Pe[me]=we}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/function-call"),be=oe("../internals/is-pure"),Pe=oe("../internals/function-name"),ye=oe("../internals/is-callable"),we=oe("../internals/create-iterator-constructor"),me=oe("../internals/object-get-prototype-of"),Se=oe("../internals/object-set-prototype-of"),de=oe("../internals/set-to-string-tag"),z=oe("../internals/create-non-enumerable-property"),ee=oe("../internals/redefine"),ae=oe("../internals/well-known-symbol"),re=oe("../internals/iterators"),le=oe("../internals/iterators-core"),ue=Pe.PROPER,pe=Pe.CONFIGURABLE,Ee=le.IteratorPrototype,Ce=le.BUGGY_SAFARI_ITERATORS,je=ae("iterator"),Le="keys",ke="values",Oe="entries",Fe=function(){return this};_e.exports=function(Re,Ze,ze,Ke,ot,ct,pt){we(ze,Ze,Ke);var bt=function(kt){if(kt===ot&&wt)return wt;if(!Ce&&kt in gt)return gt[kt];switch(kt){case Le:return function(){return new ze(this,kt)};case ke:return function(){return new ze(this,kt)};case Oe:return function(){return new ze(this,kt)}}return function(){return new ze(this)}},qe=Ze+" Iterator",at=!1,gt=Re.prototype,Ct=gt[je]||gt["@@iterator"]||ot&>[ot],wt=!Ce&&Ct||bt(ot),vt=Ze=="Array"&>.entries||Ct,mt,xt,At;if(vt&&(mt=me(vt.call(new Re)),mt!==Object.prototype&&mt.next&&(!be&&me(mt)!==Ee&&(Se?Se(mt,Ee):ye(mt[je])||ee(mt,je,Fe)),de(mt,qe,!0,!0),be&&(re[qe]=Fe))),ue&&ot==ke&&Ct&&Ct.name!==ke&&(!be&&pe?z(gt,"name",ke):(at=!0,wt=function(){return fe(Ct,this)})),ot)if(xt={values:bt(ke),keys:ct?wt:bt(Le),entries:bt(Oe)},pt)for(At in xt)(Ce||at||!(At in gt))&&ee(gt,At,xt[At]);else ve({target:Ze,proto:!0,forced:Ce||at},xt);return(!be||pt)&>[je]!==wt&&ee(gt,je,wt,{name:ot}),re[Ze]=wt,xt}},{"../internals/create-iterator-constructor":128,"../internals/create-non-enumerable-property":129,"../internals/export":149,"../internals/function-call":155,"../internals/function-name":156,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/well-known-symbol":268}],133:[function(oe,_e,Ne){var ve=oe("../internals/path"),fe=oe("../internals/has-own-property"),be=oe("../internals/well-known-symbol-wrapped"),Pe=oe("../internals/object-define-property").f;_e.exports=function(ye){var we=ve.Symbol||(ve.Symbol={});fe(we,ye)||Pe(we,ye,{value:be.f(ye)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(oe,_e,Ne){var ve=oe("../internals/fails");_e.exports=!ve(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/is-object"),be=ve.document,Pe=fe(be)&&fe(be.createElement);_e.exports=function(ye){return Pe?be.createElement(ye):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(oe,_e,Ne){_e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],137:[function(oe,_e,Ne){var ve=oe("../internals/document-create-element"),fe=ve("span").classList,be=fe&&fe.constructor&&fe.constructor.prototype;_e.exports=be===Object.prototype?void 0:be},{"../internals/document-create-element":135}],138:[function(oe,_e,Ne){var ve=oe("../internals/engine-user-agent"),fe=ve.match(/firefox\/(\d+)/i);_e.exports=!!fe&&+fe[1]},{"../internals/engine-user-agent":145}],139:[function(oe,_e,Ne){_e.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(oe,_e,Ne){var ve=oe("../internals/engine-user-agent");_e.exports=/MSIE|Trident/.test(ve)},{"../internals/engine-user-agent":145}],141:[function(oe,_e,Ne){var ve=oe("../internals/engine-user-agent"),fe=oe("../internals/global");_e.exports=/ipad|iphone|ipod/i.test(ve)&&fe.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(oe,_e,Ne){var ve=oe("../internals/engine-user-agent");_e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(ve)},{"../internals/engine-user-agent":145}],143:[function(oe,_e,Ne){var ve=oe("../internals/classof-raw"),fe=oe("../internals/global");_e.exports=ve(fe.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(oe,_e,Ne){var ve=oe("../internals/engine-user-agent");_e.exports=/web0s(?!.*chrome)/i.test(ve)},{"../internals/engine-user-agent":145}],145:[function(oe,_e,Ne){var ve=oe("../internals/get-built-in");_e.exports=ve("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/engine-user-agent"),be=ve.process,Pe=ve.Deno,ye=be&&be.versions||Pe&&Pe.version,we=ye&&ye.v8,me,Se;we&&(me=we.split("."),Se=me[0]>0&&me[0]<4?1:+(me[0]+me[1])),!Se&&fe&&(me=fe.match(/Edge\/(\d+)/),(!me||me[1]>=74)&&(me=fe.match(/Chrome\/(\d+)/),me&&(Se=+me[1]))),_e.exports=Se},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(oe,_e,Ne){var ve=oe("../internals/engine-user-agent"),fe=ve.match(/AppleWebKit\/(\d+)\./);_e.exports=!!fe&&+fe[1]},{"../internals/engine-user-agent":145}],148:[function(oe,_e,Ne){_e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/object-get-own-property-descriptor").f,be=oe("../internals/create-non-enumerable-property"),Pe=oe("../internals/redefine"),ye=oe("../internals/set-global"),we=oe("../internals/copy-constructor-properties"),me=oe("../internals/is-forced");_e.exports=function(Se,de){var z=Se.target,ee=Se.global,ae=Se.stat,re,le,ue,pe,Ee,Ce;if(ee?le=ve:ae?le=ve[z]||ye(z,{}):le=(ve[z]||{}).prototype,le)for(ue in de){if(Ee=de[ue],Se.noTargetGet?(Ce=fe(le,ue),pe=Ce&&Ce.value):pe=le[ue],re=me(ee?ue:z+(ae?".":"#")+ue,Se.forced),!re&&pe!==void 0){if(typeof Ee==typeof pe)continue;we(Ee,pe)}(Se.sham||pe&&pe.sham)&&be(Ee,"sham",!0),Pe(le,ue,Ee,Se)}}},{"../internals/copy-constructor-properties":125,"../internals/create-non-enumerable-property":129,"../internals/global":163,"../internals/is-forced":178,"../internals/object-get-own-property-descriptor":199,"../internals/redefine":222,"../internals/set-global":232}],150:[function(oe,_e,Ne){_e.exports=function(ve){try{return!!ve()}catch(fe){return!0}}},{}],151:[function(oe,_e,Ne){"use strict";oe("../modules/es.regexp.exec");var ve=oe("../internals/function-uncurry-this"),fe=oe("../internals/redefine"),be=oe("../internals/regexp-exec"),Pe=oe("../internals/fails"),ye=oe("../internals/well-known-symbol"),we=oe("../internals/create-non-enumerable-property"),me=ye("species"),Se=RegExp.prototype;_e.exports=function(de,z,ee,ae){var re=ye(de),le=!Pe(function(){var Ce={};return Ce[re]=function(){return 7},""[de](Ce)!=7}),ue=le&&!Pe(function(){var Ce=!1,je=/a/;return de==="split"&&(je={},je.constructor={},je.constructor[me]=function(){return je},je.flags="",je[re]=/./[re]),je.exec=function(){return Ce=!0,null},je[re](""),!Ce});if(!le||!ue||ee){var pe=ve(/./[re]),Ee=z(re,""[de],function(Ce,je,Le,ke,Oe){var Fe=ve(Ce),Re=je.exec;return Re===be||Re===Se.exec?le&&!Oe?{done:!0,value:pe(je,Le,ke)}:{done:!0,value:Fe(Le,je,ke)}:{done:!1}});fe(String.prototype,de,Ee[0]),fe(Se,re,Ee[1])}ae&&we(Se[re],"sham",!0)}},{"../internals/create-non-enumerable-property":129,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/redefine":222,"../internals/regexp-exec":224,"../internals/well-known-symbol":268,"../modules/es.regexp.exec":300}],152:[function(oe,_e,Ne){var ve=oe("../internals/function-bind-native"),fe=Function.prototype,be=fe.apply,Pe=fe.call;_e.exports=typeof Reflect=="object"&&Reflect.apply||(ve?Pe.bind(be):function(){return Pe.apply(be,arguments)})},{"../internals/function-bind-native":154}],153:[function(oe,_e,Ne){var ve=oe("../internals/function-uncurry-this"),fe=oe("../internals/a-callable"),be=oe("../internals/function-bind-native"),Pe=ve(ve.bind);_e.exports=function(ye,we){return fe(ye),we===void 0?ye:be?Pe(ye,we):function(){return ye.apply(we,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(oe,_e,Ne){var ve=oe("../internals/fails");_e.exports=!ve(function(){var fe=function(){}.bind();return typeof fe!="function"||fe.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(oe,_e,Ne){var ve=oe("../internals/function-bind-native"),fe=Function.prototype.call;_e.exports=ve?fe.bind(fe):function(){return fe.apply(fe,arguments)}},{"../internals/function-bind-native":154}],156:[function(oe,_e,Ne){var ve=oe("../internals/descriptors"),fe=oe("../internals/has-own-property"),be=Function.prototype,Pe=ve&&Object.getOwnPropertyDescriptor,ye=fe(be,"name"),we=ye&&function(){}.name==="something",me=ye&&(!ve||ve&&Pe(be,"name").configurable);_e.exports={EXISTS:ye,PROPER:we,CONFIGURABLE:me}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(oe,_e,Ne){var ve=oe("../internals/function-bind-native"),fe=Function.prototype,be=fe.bind,Pe=fe.call,ye=ve&&be.bind(Pe,Pe);_e.exports=ve?function(we){return we&&ye(we)}:function(we){return we&&function(){return Pe.apply(we,arguments)}}},{"../internals/function-bind-native":154}],158:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/is-callable"),be=function(Pe){return fe(Pe)?Pe:void 0};_e.exports=function(Pe,ye){return arguments.length<2?be(ve[Pe]):ve[Pe]&&ve[Pe][ye]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(oe,_e,Ne){var ve=oe("../internals/classof"),fe=oe("../internals/get-method"),be=oe("../internals/iterators"),Pe=oe("../internals/well-known-symbol"),ye=Pe("iterator");_e.exports=function(we){if(we!=null)return fe(we,ye)||fe(we,"@@iterator")||be[ve(we)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/function-call"),be=oe("../internals/a-callable"),Pe=oe("../internals/an-object"),ye=oe("../internals/try-to-string"),we=oe("../internals/get-iterator-method"),me=ve.TypeError;_e.exports=function(Se,de){var z=arguments.length<2?we(Se):de;if(be(z))return Pe(fe(z,Se));throw me(ye(Se)+" is not iterable")}},{"../internals/a-callable":95,"../internals/an-object":101,"../internals/function-call":155,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/try-to-string":257}],161:[function(oe,_e,Ne){var ve=oe("../internals/a-callable");_e.exports=function(fe,be){var Pe=fe[be];return Pe==null?void 0:ve(Pe)}},{"../internals/a-callable":95}],162:[function(oe,_e,Ne){var ve=oe("../internals/function-uncurry-this"),fe=oe("../internals/to-object"),be=Math.floor,Pe=ve("".charAt),ye=ve("".replace),we=ve("".slice),me=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Se=/\$([$&'`]|\d{1,2})/g;_e.exports=function(de,z,ee,ae,re,le){var ue=ee+de.length,pe=ae.length,Ee=Se;return re!==void 0&&(re=fe(re),Ee=me),ye(le,Ee,function(Ce,je){var Le;switch(Pe(je,0)){case"$":return"$";case"&":return de;case"`":return we(z,0,ee);case"'":return we(z,ue);case"<":Le=re[we(je,1,-1)];break;default:var ke=+je;if(ke===0)return Ce;if(ke>pe){var Oe=be(ke/10);return Oe===0?Ce:Oe<=pe?ae[Oe-1]===void 0?Pe(je,1):ae[Oe-1]+Pe(je,1):Ce}Le=ae[ke-1]}return Le===void 0?"":Le})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(oe,_e,Ne){(function(ve){(function(){var fe=function(be){return be&&be.Math==Math&&be};_e.exports=fe(typeof globalThis=="object"&&globalThis)||fe(typeof window=="object"&&window)||fe(typeof self=="object"&&self)||fe(typeof ve=="object"&&ve)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(oe,_e,Ne){var ve=oe("../internals/function-uncurry-this"),fe=oe("../internals/to-object"),be=ve({}.hasOwnProperty);_e.exports=Object.hasOwn||function(ye,we){return be(fe(ye),we)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(oe,_e,Ne){_e.exports={}},{}],166:[function(oe,_e,Ne){var ve=oe("../internals/global");_e.exports=function(fe,be){var Pe=ve.console;Pe&&Pe.error&&(arguments.length==1?Pe.error(fe):Pe.error(fe,be))}},{"../internals/global":163}],167:[function(oe,_e,Ne){var ve=oe("../internals/get-built-in");_e.exports=ve("document","documentElement")},{"../internals/get-built-in":158}],168:[function(oe,_e,Ne){var ve=oe("../internals/descriptors"),fe=oe("../internals/fails"),be=oe("../internals/document-create-element");_e.exports=!ve&&!fe(function(){return Object.defineProperty(be("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=ve.Array,be=Math.abs,Pe=Math.pow,ye=Math.floor,we=Math.log,me=Math.LN2,Se=function(z,ee,ae){var re=fe(ae),le=ae*8-ee-1,ue=(1<<le)-1,pe=ue>>1,Ee=ee===23?Pe(2,-24)-Pe(2,-77):0,Ce=z<0||z===0&&1/z<0?1:0,je=0,Le,ke,Oe;for(z=be(z),z!=z||z===1/0?(ke=z!=z?1:0,Le=ue):(Le=ye(we(z)/me),Oe=Pe(2,-Le),z*Oe<1&&(Le--,Oe*=2),Le+pe>=1?z+=Ee/Oe:z+=Ee*Pe(2,1-pe),z*Oe>=2&&(Le++,Oe/=2),Le+pe>=ue?(ke=0,Le=ue):Le+pe>=1?(ke=(z*Oe-1)*Pe(2,ee),Le=Le+pe):(ke=z*Pe(2,pe-1)*Pe(2,ee),Le=0));ee>=8;)re[je++]=ke&255,ke/=256,ee-=8;for(Le=Le<<ee|ke,le+=ee;le>0;)re[je++]=Le&255,Le/=256,le-=8;return re[--je]|=Ce*128,re},de=function(z,ee){var ae=z.length,re=ae*8-ee-1,le=(1<<re)-1,ue=le>>1,pe=re-7,Ee=ae-1,Ce=z[Ee--],je=Ce&127,Le;for(Ce>>=7;pe>0;)je=je*256+z[Ee--],pe-=8;for(Le=je&(1<<-pe)-1,je>>=-pe,pe+=ee;pe>0;)Le=Le*256+z[Ee--],pe-=8;if(je===0)je=1-ue;else{if(je===le)return Le?NaN:Ce?-1/0:1/0;Le=Le+Pe(2,ee),je=je-ue}return(Ce?-1:1)*Le*Pe(2,je-ee)};_e.exports={pack:Se,unpack:de}},{"../internals/global":163}],170:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/function-uncurry-this"),be=oe("../internals/fails"),Pe=oe("../internals/classof-raw"),ye=ve.Object,we=fe("".split);_e.exports=be(function(){return!ye("z").propertyIsEnumerable(0)})?function(me){return Pe(me)=="String"?we(me,""):ye(me)}:ye},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(oe,_e,Ne){var ve=oe("../internals/is-callable"),fe=oe("../internals/is-object"),be=oe("../internals/object-set-prototype-of");_e.exports=function(Pe,ye,we){var me,Se;return be&&ve(me=ye.constructor)&&me!==we&&fe(Se=me.prototype)&&Se!==we.prototype&&be(Pe,Se),Pe}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(oe,_e,Ne){var ve=oe("../internals/function-uncurry-this"),fe=oe("../internals/is-callable"),be=oe("../internals/shared-store"),Pe=ve(Function.toString);fe(be.inspectSource)||(be.inspectSource=function(ye){return Pe(ye)}),_e.exports=be.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(oe,_e,Ne){var ve=oe("../internals/native-weak-map"),fe=oe("../internals/global"),be=oe("../internals/function-uncurry-this"),Pe=oe("../internals/is-object"),ye=oe("../internals/create-non-enumerable-property"),we=oe("../internals/has-own-property"),me=oe("../internals/shared-store"),Se=oe("../internals/shared-key"),de=oe("../internals/hidden-keys"),z="Object already initialized",ee=fe.TypeError,ae=fe.WeakMap,re,le,ue,pe=function(Fe){return ue(Fe)?le(Fe):re(Fe,{})},Ee=function(Fe){return function(Re){var Ze;if(!Pe(Re)||(Ze=le(Re)).type!==Fe)throw ee("Incompatible receiver, "+Fe+" required");return Ze}};if(ve||me.state){var Ce=me.state||(me.state=new ae),je=be(Ce.get),Le=be(Ce.has),ke=be(Ce.set);re=function(Fe,Re){if(Le(Ce,Fe))throw new ee(z);return Re.facade=Fe,ke(Ce,Fe,Re),Re},le=function(Fe){return je(Ce,Fe)||{}},ue=function(Fe){return Le(Ce,Fe)}}else{var Oe=Se("state");de[Oe]=!0,re=function(Fe,Re){if(we(Fe,Oe))throw new ee(z);return Re.facade=Fe,ye(Fe,Oe,Re),Re},le=function(Fe){return we(Fe,Oe)?Fe[Oe]:{}},ue=function(Fe){return we(Fe,Oe)}}_e.exports={set:re,get:le,has:ue,enforce:pe,getterFor:Ee}},{"../internals/create-non-enumerable-property":129,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/is-object":180,"../internals/native-weak-map":192,"../internals/shared-key":235,"../internals/shared-store":236}],174:[function(oe,_e,Ne){var ve=oe("../internals/well-known-symbol"),fe=oe("../internals/iterators"),be=ve("iterator"),Pe=Array.prototype;_e.exports=function(ye){return ye!==void 0&&(fe.Array===ye||Pe[be]===ye)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(oe,_e,Ne){var ve=oe("../internals/classof-raw");_e.exports=Array.isArray||function(be){return ve(be)=="Array"}},{"../internals/classof-raw":123}],176:[function(oe,_e,Ne){_e.exports=function(ve){return typeof ve=="function"}},{}],177:[function(oe,_e,Ne){var ve=oe("../internals/function-uncurry-this"),fe=oe("../internals/fails"),be=oe("../internals/is-callable"),Pe=oe("../internals/classof"),ye=oe("../internals/get-built-in"),we=oe("../internals/inspect-source"),me=function(){},Se=[],de=ye("Reflect","construct"),z=/^\s*(?:class|function)\b/,ee=ve(z.exec),ae=!z.exec(me),re=function(pe){if(!be(pe))return!1;try{return de(me,Se,pe),!0}catch(Ee){return!1}},le=function(pe){if(!be(pe))return!1;switch(Pe(pe)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ae||!!ee(z,we(pe))}catch(Ee){return!0}};le.sham=!0,_e.exports=!de||fe(function(){var ue;return re(re.call)||!re(Object)||!re(function(){ue=!0})||ue})?le:re},{"../internals/classof":124,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/inspect-source":172,"../internals/is-callable":176}],178:[function(oe,_e,Ne){var ve=oe("../internals/fails"),fe=oe("../internals/is-callable"),be=/#|\.prototype\./,Pe=function(de,z){var ee=we[ye(de)];return ee==Se?!0:ee==me?!1:fe(z)?ve(z):!!z},ye=Pe.normalize=function(de){return String(de).replace(be,".").toLowerCase()},we=Pe.data={},me=Pe.NATIVE="N",Se=Pe.POLYFILL="P";_e.exports=Pe},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(oe,_e,Ne){var ve=oe("../internals/is-object"),fe=Math.floor;_e.exports=Number.isInteger||function(Pe){return!ve(Pe)&&isFinite(Pe)&&fe(Pe)===Pe}},{"../internals/is-object":180}],180:[function(oe,_e,Ne){var ve=oe("../internals/is-callable");_e.exports=function(fe){return typeof fe=="object"?fe!==null:ve(fe)}},{"../internals/is-callable":176}],181:[function(oe,_e,Ne){_e.exports=!1},{}],182:[function(oe,_e,Ne){var ve=oe("../internals/is-object"),fe=oe("../internals/classof-raw"),be=oe("../internals/well-known-symbol"),Pe=be("match");_e.exports=function(ye){var we;return ve(ye)&&((we=ye[Pe])!==void 0?!!we:fe(ye)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/get-built-in"),be=oe("../internals/is-callable"),Pe=oe("../internals/object-is-prototype-of"),ye=oe("../internals/use-symbol-as-uid"),we=ve.Object;_e.exports=ye?function(me){return typeof me=="symbol"}:function(me){var Se=fe("Symbol");return be(Se)&&Pe(Se.prototype,we(me))}},{"../internals/get-built-in":158,"../internals/global":163,"../internals/is-callable":176,"../internals/object-is-prototype-of":204,"../internals/use-symbol-as-uid":264}],184:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/function-bind-context"),be=oe("../internals/function-call"),Pe=oe("../internals/an-object"),ye=oe("../internals/try-to-string"),we=oe("../internals/is-array-iterator-method"),me=oe("../internals/length-of-array-like"),Se=oe("../internals/object-is-prototype-of"),de=oe("../internals/get-iterator"),z=oe("../internals/get-iterator-method"),ee=oe("../internals/iterator-close"),ae=ve.TypeError,re=function(ue,pe){this.stopped=ue,this.result=pe},le=re.prototype;_e.exports=function(ue,pe,Ee){var Ce=Ee&&Ee.that,je=!!(Ee&&Ee.AS_ENTRIES),Le=!!(Ee&&Ee.IS_ITERATOR),ke=!!(Ee&&Ee.INTERRUPTED),Oe=fe(pe,Ce),Fe,Re,Ze,ze,Ke,ot,ct,pt=function(qe){return Fe&&ee(Fe,"normal",qe),new re(!0,qe)},bt=function(qe){return je?(Pe(qe),ke?Oe(qe[0],qe[1],pt):Oe(qe[0],qe[1])):ke?Oe(qe,pt):Oe(qe)};if(Le)Fe=ue;else{if(Re=z(ue),!Re)throw ae(ye(ue)+" is not iterable");if(we(Re)){for(Ze=0,ze=me(ue);ze>Ze;Ze++)if(Ke=bt(ue[Ze]),Ke&&Se(le,Ke))return Ke;return new re(!1)}Fe=de(ue,Re)}for(ot=Fe.next;!(ct=be(ot,Fe)).done;){try{Ke=bt(ct.value)}catch(qe){ee(Fe,"throw",qe)}if(typeof Ke=="object"&&Ke&&Se(le,Ke))return Ke}return new re(!1)}},{"../internals/an-object":101,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/iterator-close":185,"../internals/length-of-array-like":188,"../internals/object-is-prototype-of":204,"../internals/try-to-string":257}],185:[function(oe,_e,Ne){var ve=oe("../internals/function-call"),fe=oe("../internals/an-object"),be=oe("../internals/get-method");_e.exports=function(Pe,ye,we){var me,Se;fe(Pe);try{if(me=be(Pe,"return"),!me){if(ye==="throw")throw we;return we}me=ve(me,Pe)}catch(de){Se=!0,me=de}if(ye==="throw")throw we;if(Se)throw me;return fe(me),we}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/fails"),fe=oe("../internals/is-callable"),be=oe("../internals/object-create"),Pe=oe("../internals/object-get-prototype-of"),ye=oe("../internals/redefine"),we=oe("../internals/well-known-symbol"),me=oe("../internals/is-pure"),Se=we("iterator"),de=!1,z,ee,ae;[].keys&&(ae=[].keys(),"next"in ae?(ee=Pe(Pe(ae)),ee!==Object.prototype&&(z=ee)):de=!0);var re=z==null||ve(function(){var le={};return z[Se].call(le)!==le});re?z={}:me&&(z=be(z)),fe(z[Se])||ye(z,Se,function(){return this}),_e.exports={IteratorPrototype:z,BUGGY_SAFARI_ITERATORS:de}},{"../internals/fails":150,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/object-create":196,"../internals/object-get-prototype-of":203,"../internals/redefine":222,"../internals/well-known-symbol":268}],187:[function(oe,_e,Ne){arguments[4][165][0].apply(Ne,arguments)},{dup:165}],188:[function(oe,_e,Ne){var ve=oe("../internals/to-length");_e.exports=function(fe){return ve(fe.length)}},{"../internals/to-length":249}],189:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/function-bind-context"),be=oe("../internals/object-get-own-property-descriptor").f,Pe=oe("../internals/task").set,ye=oe("../internals/engine-is-ios"),we=oe("../internals/engine-is-ios-pebble"),me=oe("../internals/engine-is-webos-webkit"),Se=oe("../internals/engine-is-node"),de=ve.MutationObserver||ve.WebKitMutationObserver,z=ve.document,ee=ve.process,ae=ve.Promise,re=be(ve,"queueMicrotask"),le=re&&re.value,ue,pe,Ee,Ce,je,Le,ke,Oe;le||(ue=function(){var Fe,Re;for(Se&&(Fe=ee.domain)&&Fe.exit();pe;){Re=pe.fn,pe=pe.next;try{Re()}catch(Ze){throw pe?Ce():Ee=void 0,Ze}}Ee=void 0,Fe&&Fe.enter()},!ye&&!Se&&!me&&de&&z?(je=!0,Le=z.createTextNode(""),new de(ue).observe(Le,{characterData:!0}),Ce=function(){Le.data=je=!je}):!we&&ae&&ae.resolve?(ke=ae.resolve(void 0),ke.constructor=ae,Oe=fe(ke.then,ke),Ce=function(){Oe(ue)}):Se?Ce=function(){ee.nextTick(ue)}:(Pe=fe(Pe,ve),Ce=function(){Pe(ue)})),_e.exports=le||function(Fe){var Re={fn:Fe,next:void 0};Ee&&(Ee.next=Re),pe||(pe=Re,Ce()),Ee=Re}},{"../internals/engine-is-ios":142,"../internals/engine-is-ios-pebble":141,"../internals/engine-is-node":143,"../internals/engine-is-webos-webkit":144,"../internals/function-bind-context":153,"../internals/global":163,"../internals/object-get-own-property-descriptor":199,"../internals/task":243}],190:[function(oe,_e,Ne){var ve=oe("../internals/native-symbol");_e.exports=ve&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(oe,_e,Ne){var ve=oe("../internals/engine-v8-version"),fe=oe("../internals/fails");_e.exports=!!Object.getOwnPropertySymbols&&!fe(function(){var be=Symbol();return!String(be)||!(Object(be)instanceof Symbol)||!Symbol.sham&&ve&&ve<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/is-callable"),be=oe("../internals/inspect-source"),Pe=ve.WeakMap;_e.exports=fe(Pe)&&/native code/.test(be(Pe))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/a-callable"),fe=function(be){var Pe,ye;this.promise=new be(function(we,me){if(Pe!==void 0||ye!==void 0)throw TypeError("Bad Promise constructor");Pe=we,ye=me}),this.resolve=ve(Pe),this.reject=ve(ye)};_e.exports.f=function(be){return new fe(be)}},{"../internals/a-callable":95}],194:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/is-regexp"),be=ve.TypeError;_e.exports=function(Pe){if(fe(Pe))throw be("The method doesn't accept regular expressions");return Pe}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/descriptors"),fe=oe("../internals/function-uncurry-this"),be=oe("../internals/function-call"),Pe=oe("../internals/fails"),ye=oe("../internals/object-keys"),we=oe("../internals/object-get-own-property-symbols"),me=oe("../internals/object-property-is-enumerable"),Se=oe("../internals/to-object"),de=oe("../internals/indexed-object"),z=Object.assign,ee=Object.defineProperty,ae=fe([].concat);_e.exports=!z||Pe(function(){if(ve&&z({b:1},z(ee({},"a",{enumerable:!0,get:function(){ee(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var re={},le={},ue=Symbol(),pe="abcdefghijklmnopqrst";return re[ue]=7,pe.split("").forEach(function(Ee){le[Ee]=Ee}),z({},re)[ue]!=7||ye(z({},le)).join("")!=pe})?function(le,ue){for(var pe=Se(le),Ee=arguments.length,Ce=1,je=we.f,Le=me.f;Ee>Ce;)for(var ke=de(arguments[Ce++]),Oe=je?ae(ye(ke),je(ke)):ye(ke),Fe=Oe.length,Re=0,Ze;Fe>Re;)Ze=Oe[Re++],(!ve||be(Le,ke,Ze))&&(pe[Ze]=ke[Ze]);return pe}:z},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/object-get-own-property-symbols":202,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-object":250}],196:[function(oe,_e,Ne){var ve=oe("../internals/an-object"),fe=oe("../internals/object-define-properties"),be=oe("../internals/enum-bug-keys"),Pe=oe("../internals/hidden-keys"),ye=oe("../internals/html"),we=oe("../internals/document-create-element"),me=oe("../internals/shared-key"),Se=">",de="<",z="prototype",ee="script",ae=me("IE_PROTO"),re=function(){},le=function(je){return de+ee+Se+je+de+"/"+ee+Se},ue=function(je){je.write(le("")),je.close();var Le=je.parentWindow.Object;return je=null,Le},pe=function(){var je=we("iframe"),Le="java"+ee+":",ke;return je.style.display="none",ye.appendChild(je),je.src=String(Le),ke=je.contentWindow.document,ke.open(),ke.write(le("document.F=Object")),ke.close(),ke.F},Ee,Ce=function(){try{Ee=new ActiveXObject("htmlfile")}catch(Le){}Ce=typeof document!="undefined"?document.domain&&Ee?ue(Ee):pe():ue(Ee);for(var je=be.length;je--;)delete Ce[z][be[je]];return Ce()};Pe[ae]=!0,_e.exports=Object.create||function(Le,ke){var Oe;return Le!==null?(re[z]=ve(Le),Oe=new re,re[z]=null,Oe[ae]=Le):Oe=Ce(),ke===void 0?Oe:fe.f(Oe,ke)}},{"../internals/an-object":101,"../internals/document-create-element":135,"../internals/enum-bug-keys":148,"../internals/hidden-keys":165,"../internals/html":167,"../internals/object-define-properties":197,"../internals/shared-key":235}],197:[function(oe,_e,Ne){var ve=oe("../internals/descriptors"),fe=oe("../internals/v8-prototype-define-bug"),be=oe("../internals/object-define-property"),Pe=oe("../internals/an-object"),ye=oe("../internals/to-indexed-object"),we=oe("../internals/object-keys");Ne.f=ve&&!fe?Object.defineProperties:function(Se,de){Pe(Se);for(var z=ye(de),ee=we(de),ae=ee.length,re=0,le;ae>re;)be.f(Se,le=ee[re++],z[le]);return Se}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/object-define-property":198,"../internals/object-keys":206,"../internals/to-indexed-object":247,"../internals/v8-prototype-define-bug":265}],198:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/descriptors"),be=oe("../internals/ie8-dom-define"),Pe=oe("../internals/v8-prototype-define-bug"),ye=oe("../internals/an-object"),we=oe("../internals/to-property-key"),me=ve.TypeError,Se=Object.defineProperty,de=Object.getOwnPropertyDescriptor,z="enumerable",ee="configurable",ae="writable";Ne.f=fe?Pe?function(le,ue,pe){if(ye(le),ue=we(ue),ye(pe),typeof le=="function"&&ue==="prototype"&&"value"in pe&&ae in pe&&!pe[ae]){var Ee=de(le,ue);Ee&&Ee[ae]&&(le[ue]=pe.value,pe={configurable:ee in pe?pe[ee]:Ee[ee],enumerable:z in pe?pe[z]:Ee[z],writable:!1})}return Se(le,ue,pe)}:Se:function(le,ue,pe){if(ye(le),ue=we(ue),ye(pe),be)try{return Se(le,ue,pe)}catch(Ee){}if("get"in pe||"set"in pe)throw me("Accessors not supported");return"value"in pe&&(le[ue]=pe.value),le}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/global":163,"../internals/ie8-dom-define":168,"../internals/to-property-key":254,"../internals/v8-prototype-define-bug":265}],199:[function(oe,_e,Ne){var ve=oe("../internals/descriptors"),fe=oe("../internals/function-call"),be=oe("../internals/object-property-is-enumerable"),Pe=oe("../internals/create-property-descriptor"),ye=oe("../internals/to-indexed-object"),we=oe("../internals/to-property-key"),me=oe("../internals/has-own-property"),Se=oe("../internals/ie8-dom-define"),de=Object.getOwnPropertyDescriptor;Ne.f=ve?de:function(ee,ae){if(ee=ye(ee),ae=we(ae),Se)try{return de(ee,ae)}catch(re){}if(me(ee,ae))return Pe(!fe(be.f,ee,ae),ee[ae])}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/function-call":155,"../internals/has-own-property":164,"../internals/ie8-dom-define":168,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247,"../internals/to-property-key":254}],200:[function(oe,_e,Ne){var ve=oe("../internals/classof-raw"),fe=oe("../internals/to-indexed-object"),be=oe("../internals/object-get-own-property-names").f,Pe=oe("../internals/array-slice-simple"),ye=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],we=function(me){try{return be(me)}catch(Se){return Pe(ye)}};_e.exports.f=function(Se){return ye&&ve(Se)=="Window"?we(Se):be(fe(Se))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(oe,_e,Ne){var ve=oe("../internals/object-keys-internal"),fe=oe("../internals/enum-bug-keys"),be=fe.concat("length","prototype");Ne.f=Object.getOwnPropertyNames||function(ye){return ve(ye,be)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(oe,_e,Ne){Ne.f=Object.getOwnPropertySymbols},{}],203:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/has-own-property"),be=oe("../internals/is-callable"),Pe=oe("../internals/to-object"),ye=oe("../internals/shared-key"),we=oe("../internals/correct-prototype-getter"),me=ye("IE_PROTO"),Se=ve.Object,de=Se.prototype;_e.exports=we?Se.getPrototypeOf:function(z){var ee=Pe(z);if(fe(ee,me))return ee[me];var ae=ee.constructor;return be(ae)&&ee instanceof ae?ae.prototype:ee instanceof Se?de:null}},{"../internals/correct-prototype-getter":127,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/shared-key":235,"../internals/to-object":250}],204:[function(oe,_e,Ne){var ve=oe("../internals/function-uncurry-this");_e.exports=ve({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(oe,_e,Ne){var ve=oe("../internals/function-uncurry-this"),fe=oe("../internals/has-own-property"),be=oe("../internals/to-indexed-object"),Pe=oe("../internals/array-includes").indexOf,ye=oe("../internals/hidden-keys"),we=ve([].push);_e.exports=function(me,Se){var de=be(me),z=0,ee=[],ae;for(ae in de)!fe(ye,ae)&&fe(de,ae)&&we(ee,ae);for(;Se.length>z;)fe(de,ae=Se[z++])&&(~Pe(ee,ae)||we(ee,ae));return ee}},{"../internals/array-includes":110,"../internals/function-uncurry-this":157,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/to-indexed-object":247}],206:[function(oe,_e,Ne){var ve=oe("../internals/object-keys-internal"),fe=oe("../internals/enum-bug-keys");_e.exports=Object.keys||function(Pe){return ve(Pe,fe)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(oe,_e,Ne){"use strict";var ve={}.propertyIsEnumerable,fe=Object.getOwnPropertyDescriptor,be=fe&&!ve.call({1:2},1);Ne.f=be?function(ye){var we=fe(this,ye);return!!we&&we.enumerable}:ve},{}],208:[function(oe,_e,Ne){var ve=oe("../internals/function-uncurry-this"),fe=oe("../internals/an-object"),be=oe("../internals/a-possible-prototype");_e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var Pe=!1,ye={},we;try{we=ve(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),we(ye,[]),Pe=ye instanceof Array}catch(me){}return function(Se,de){return fe(Se),be(de),Pe?we(Se,de):Se.__proto__=de,Se}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(oe,_e,Ne){var ve=oe("../internals/descriptors"),fe=oe("../internals/function-uncurry-this"),be=oe("../internals/object-keys"),Pe=oe("../internals/to-indexed-object"),ye=oe("../internals/object-property-is-enumerable").f,we=fe(ye),me=fe([].push),Se=function(de){return function(z){for(var ee=Pe(z),ae=be(ee),re=ae.length,le=0,ue=[],pe;re>le;)pe=ae[le++],(!ve||we(ee,pe))&&me(ue,de?[pe,ee[pe]]:ee[pe]);return ue}};_e.exports={entries:Se(!0),values:Se(!1)}},{"../internals/descriptors":134,"../internals/function-uncurry-this":157,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247}],210:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/to-string-tag-support"),fe=oe("../internals/classof");_e.exports=ve?{}.toString:function(){return"[object "+fe(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/function-call"),be=oe("../internals/is-callable"),Pe=oe("../internals/is-object"),ye=ve.TypeError;_e.exports=function(we,me){var Se,de;if(me==="string"&&be(Se=we.toString)&&!Pe(de=fe(Se,we))||be(Se=we.valueOf)&&!Pe(de=fe(Se,we))||me!=="string"&&be(Se=we.toString)&&!Pe(de=fe(Se,we)))return de;throw ye("Can't convert object to primitive value")}},{"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/is-object":180}],212:[function(oe,_e,Ne){var ve=oe("../internals/get-built-in"),fe=oe("../internals/function-uncurry-this"),be=oe("../internals/object-get-own-property-names"),Pe=oe("../internals/object-get-own-property-symbols"),ye=oe("../internals/an-object"),we=fe([].concat);_e.exports=ve("Reflect","ownKeys")||function(Se){var de=be.f(ye(Se)),z=Pe.f;return z?we(de,z(Se)):de}},{"../internals/an-object":101,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-symbols":202}],213:[function(oe,_e,Ne){var ve=oe("../internals/global");_e.exports=ve},{"../internals/global":163}],214:[function(oe,_e,Ne){_e.exports=function(ve){try{return{error:!1,value:ve()}}catch(fe){return{error:!0,value:fe}}}},{}],215:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/promise-native-constructor"),be=oe("../internals/is-callable"),Pe=oe("../internals/is-forced"),ye=oe("../internals/inspect-source"),we=oe("../internals/well-known-symbol"),me=oe("../internals/engine-is-browser"),Se=oe("../internals/is-pure"),de=oe("../internals/engine-v8-version"),z=fe&&fe.prototype,ee=we("species"),ae=!1,re=be(ve.PromiseRejectionEvent),le=Pe("Promise",function(){var ue=ye(fe),pe=ue!==String(fe);if(!pe&&de===66||Se&&!(z.catch&&z.finally))return!0;if(de>=51&&/native code/.test(ue))return!1;var Ee=new fe(function(Le){Le(1)}),Ce=function(Le){Le(function(){},function(){})},je=Ee.constructor={};return je[ee]=Ce,ae=Ee.then(function(){})instanceof Ce,ae?!pe&&me&&!re:!0});_e.exports={CONSTRUCTOR:le,REJECTION_EVENT:re,SUBCLASSING:ae}},{"../internals/engine-is-browser":139,"../internals/engine-v8-version":146,"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176,"../internals/is-forced":178,"../internals/is-pure":181,"../internals/promise-native-constructor":216,"../internals/well-known-symbol":268}],216:[function(oe,_e,Ne){var ve=oe("../internals/global");_e.exports=ve.Promise},{"../internals/global":163}],217:[function(oe,_e,Ne){var ve=oe("../internals/an-object"),fe=oe("../internals/is-object"),be=oe("../internals/new-promise-capability");_e.exports=function(Pe,ye){if(ve(Pe),fe(ye)&&ye.constructor===Pe)return ye;var we=be.f(Pe),me=we.resolve;return me(ye),we.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(oe,_e,Ne){var ve=oe("../internals/promise-native-constructor"),fe=oe("../internals/check-correctness-of-iteration"),be=oe("../internals/promise-constructor-detection").CONSTRUCTOR;_e.exports=be||!fe(function(Pe){ve.all(Pe).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(oe,_e,Ne){var ve=oe("../internals/object-define-property").f;_e.exports=function(fe,be,Pe){Pe in fe||ve(fe,Pe,{configurable:!0,get:function(){return be[Pe]},set:function(ye){be[Pe]=ye}})}},{"../internals/object-define-property":198}],220:[function(oe,_e,Ne){var ve=function(){this.head=null,this.tail=null};ve.prototype={add:function(fe){var be={item:fe,next:null};this.head?this.tail.next=be:this.head=be,this.tail=be},get:function(){var fe=this.head;if(fe)return this.head=fe.next,this.tail===fe&&(this.tail=null),fe.item}},_e.exports=ve},{}],221:[function(oe,_e,Ne){var ve=oe("../internals/redefine");_e.exports=function(fe,be,Pe){for(var ye in be)ve(fe,ye,be[ye],Pe);return fe}},{"../internals/redefine":222}],222:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/is-callable"),be=oe("../internals/has-own-property"),Pe=oe("../internals/create-non-enumerable-property"),ye=oe("../internals/set-global"),we=oe("../internals/inspect-source"),me=oe("../internals/internal-state"),Se=oe("../internals/function-name").CONFIGURABLE,de=me.get,z=me.enforce,ee=String(String).split("String");(_e.exports=function(ae,re,le,ue){var pe=ue?!!ue.unsafe:!1,Ee=ue?!!ue.enumerable:!1,Ce=ue?!!ue.noTargetGet:!1,je=ue&&ue.name!==void 0?ue.name:re,Le;if(fe(le)&&(String(je).slice(0,7)==="Symbol("&&(je="["+String(je).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!be(le,"name")||Se&&le.name!==je)&&Pe(le,"name",je),Le=z(le),Le.source||(Le.source=ee.join(typeof je=="string"?je:""))),ae===ve){Ee?ae[re]=le:ye(re,le);return}else pe?!Ce&&ae[re]&&(Ee=!0):delete ae[re];Ee?ae[re]=le:Pe(ae,re,le)})(Function.prototype,"toString",function(){return fe(this)&&de(this).source||we(this)})},{"../internals/create-non-enumerable-property":129,"../internals/function-name":156,"../internals/global":163,"../internals/has-own-property":164,"../internals/inspect-source":172,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/set-global":232}],223:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/function-call"),be=oe("../internals/an-object"),Pe=oe("../internals/is-callable"),ye=oe("../internals/classof-raw"),we=oe("../internals/regexp-exec"),me=ve.TypeError;_e.exports=function(Se,de){var z=Se.exec;if(Pe(z)){var ee=fe(z,Se,de);return ee!==null&&be(ee),ee}if(ye(Se)==="RegExp")return fe(we,Se,de);throw me("RegExp#exec called on incompatible receiver")}},{"../internals/an-object":101,"../internals/classof-raw":123,"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/regexp-exec":224}],224:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/function-call"),fe=oe("../internals/function-uncurry-this"),be=oe("../internals/to-string"),Pe=oe("../internals/regexp-flags"),ye=oe("../internals/regexp-sticky-helpers"),we=oe("../internals/shared"),me=oe("../internals/object-create"),Se=oe("../internals/internal-state").get,de=oe("../internals/regexp-unsupported-dot-all"),z=oe("../internals/regexp-unsupported-ncg"),ee=we("native-string-replace",String.prototype.replace),ae=RegExp.prototype.exec,re=ae,le=fe("".charAt),ue=fe("".indexOf),pe=fe("".replace),Ee=fe("".slice),Ce=function(){var Oe=/a/,Fe=/b*/g;return ve(ae,Oe,"a"),ve(ae,Fe,"a"),Oe.lastIndex!==0||Fe.lastIndex!==0}(),je=ye.BROKEN_CARET,Le=/()??/.exec("")[1]!==void 0,ke=Ce||Le||je||de||z;ke&&(re=function(Fe){var Re=this,Ze=Se(Re),ze=be(Fe),Ke=Ze.raw,ot,ct,pt,bt,qe,at,gt;if(Ke)return Ke.lastIndex=Re.lastIndex,ot=ve(re,Ke,ze),Re.lastIndex=Ke.lastIndex,ot;var Ct=Ze.groups,wt=je&&Re.sticky,vt=ve(Pe,Re),mt=Re.source,xt=0,At=ze;if(wt&&(vt=pe(vt,"y",""),ue(vt,"g")===-1&&(vt+="g"),At=Ee(ze,Re.lastIndex),Re.lastIndex>0&&(!Re.multiline||Re.multiline&&le(ze,Re.lastIndex-1)!==`
|
|
|
`)&&(mt="(?: "+mt+")",At=" "+At,xt++),ct=new RegExp("^(?:"+mt+")",vt)),Le&&(ct=new RegExp("^"+mt+"$(?!\\s)",vt)),Ce&&(pt=Re.lastIndex),bt=ve(ae,wt?ct:Re,At),wt?bt?(bt.input=Ee(bt.input,xt),bt[0]=Ee(bt[0],xt),bt.index=Re.lastIndex,Re.lastIndex+=bt[0].length):Re.lastIndex=0:Ce&&bt&&(Re.lastIndex=Re.global?bt.index+bt[0].length:pt),Le&&bt&&bt.length>1&&ve(ee,bt[0],ct,function(){for(qe=1;qe<arguments.length-2;qe++)arguments[qe]===void 0&&(bt[qe]=void 0)}),bt&&Ct)for(bt.groups=at=me(null),qe=0;qe<Ct.length;qe++)gt=Ct[qe],at[gt[0]]=bt[gt[1]];return bt}),_e.exports=re},{"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/internal-state":173,"../internals/object-create":196,"../internals/regexp-flags":225,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/shared":237,"../internals/to-string":256}],225:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/an-object");_e.exports=function(){var fe=ve(this),be="";return fe.hasIndices&&(be+="d"),fe.global&&(be+="g"),fe.ignoreCase&&(be+="i"),fe.multiline&&(be+="m"),fe.dotAll&&(be+="s"),fe.unicode&&(be+="u"),fe.sticky&&(be+="y"),be}},{"../internals/an-object":101}],226:[function(oe,_e,Ne){var ve=oe("../internals/function-call"),fe=oe("../internals/has-own-property"),be=oe("../internals/object-is-prototype-of"),Pe=oe("../internals/regexp-flags"),ye=RegExp.prototype;_e.exports=function(we){var me=we.flags;return me===void 0&&!("flags"in ye)&&!fe(we,"flags")&&be(ye,we)?ve(Pe,we):me}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(oe,_e,Ne){var ve=oe("../internals/fails"),fe=oe("../internals/global"),be=fe.RegExp,Pe=ve(function(){var me=be("a","y");return me.lastIndex=2,me.exec("abcd")!=null}),ye=Pe||ve(function(){return!be("a","y").sticky}),we=Pe||ve(function(){var me=be("^r","gy");return me.lastIndex=2,me.exec("str")!=null});_e.exports={BROKEN_CARET:we,MISSED_STICKY:ye,UNSUPPORTED_Y:Pe}},{"../internals/fails":150,"../internals/global":163}],228:[function(oe,_e,Ne){var ve=oe("../internals/fails"),fe=oe("../internals/global"),be=fe.RegExp;_e.exports=ve(function(){var Pe=be(".","s");return!(Pe.dotAll&&Pe.exec(`
|
|
|
`)&&Pe.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(oe,_e,Ne){var ve=oe("../internals/fails"),fe=oe("../internals/global"),be=fe.RegExp;_e.exports=ve(function(){var Pe=be("(?<a>b)","g");return Pe.exec("b").groups.a!=="b"||"b".replace(Pe,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=ve.TypeError;_e.exports=function(be){if(be==null)throw fe("Can't call method on "+be);return be}},{"../internals/global":163}],231:[function(oe,_e,Ne){_e.exports=Object.is||function(fe,be){return fe===be?fe!==0||1/fe===1/be:fe!=fe&&be!=be}},{}],232:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=Object.defineProperty;_e.exports=function(be,Pe){try{fe(ve,be,{value:Pe,configurable:!0,writable:!0})}catch(ye){ve[be]=Pe}return Pe}},{"../internals/global":163}],233:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/get-built-in"),fe=oe("../internals/object-define-property"),be=oe("../internals/well-known-symbol"),Pe=oe("../internals/descriptors"),ye=be("species");_e.exports=function(we){var me=ve(we),Se=fe.f;Pe&&me&&!me[ye]&&Se(me,ye,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":134,"../internals/get-built-in":158,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],234:[function(oe,_e,Ne){var ve=oe("../internals/object-define-property").f,fe=oe("../internals/has-own-property"),be=oe("../internals/well-known-symbol"),Pe=be("toStringTag");_e.exports=function(ye,we,me){ye&&!me&&(ye=ye.prototype),ye&&!fe(ye,Pe)&&ve(ye,Pe,{configurable:!0,value:we})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(oe,_e,Ne){var ve=oe("../internals/shared"),fe=oe("../internals/uid"),be=ve("keys");_e.exports=function(Pe){return be[Pe]||(be[Pe]=fe(Pe))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/set-global"),be="__core-js_shared__",Pe=ve[be]||fe(be,{});_e.exports=Pe},{"../internals/global":163,"../internals/set-global":232}],237:[function(oe,_e,Ne){var ve=oe("../internals/is-pure"),fe=oe("../internals/shared-store");(_e.exports=function(be,Pe){return fe[be]||(fe[be]=Pe!==void 0?Pe:{})})("versions",[]).push({version:"3.22.1",mode:ve?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.1/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":181,"../internals/shared-store":236}],238:[function(oe,_e,Ne){var ve=oe("../internals/an-object"),fe=oe("../internals/a-constructor"),be=oe("../internals/well-known-symbol"),Pe=be("species");_e.exports=function(ye,we){var me=ve(ye).constructor,Se;return me===void 0||(Se=ve(me)[Pe])==null?we:fe(Se)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(oe,_e,Ne){var ve=oe("../internals/function-uncurry-this"),fe=oe("../internals/to-integer-or-infinity"),be=oe("../internals/to-string"),Pe=oe("../internals/require-object-coercible"),ye=ve("".charAt),we=ve("".charCodeAt),me=ve("".slice),Se=function(de){return function(z,ee){var ae=be(Pe(z)),re=fe(ee),le=ae.length,ue,pe;return re<0||re>=le?de?"":void 0:(ue=we(ae,re),ue<55296||ue>56319||re+1===le||(pe=we(ae,re+1))<56320||pe>57343?de?ye(ae,re):ue:de?me(ae,re,re+2):(ue-55296<<10)+(pe-56320)+65536)}};_e.exports={codeAt:Se(!1),charAt:Se(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(oe,_e,Ne){var ve=oe("../internals/function-name").PROPER,fe=oe("../internals/fails"),be=oe("../internals/whitespaces"),Pe="\u200B\x85\u180E";_e.exports=function(ye){return fe(function(){return!!be[ye]()||Pe[ye]()!==Pe||ve&&be[ye].name!==ye})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(oe,_e,Ne){var ve=oe("../internals/function-uncurry-this"),fe=oe("../internals/require-object-coercible"),be=oe("../internals/to-string"),Pe=oe("../internals/whitespaces"),ye=ve("".replace),we="["+Pe+"]",me=RegExp("^"+we+we+"*"),Se=RegExp(we+we+"*$"),de=function(z){return function(ee){var ae=be(fe(ee));return z&1&&(ae=ye(ae,me,"")),z&2&&(ae=ye(ae,Se,"")),ae}};_e.exports={start:de(1),end:de(2),trim:de(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(oe,_e,Ne){var ve=oe("../internals/function-call"),fe=oe("../internals/get-built-in"),be=oe("../internals/well-known-symbol"),Pe=oe("../internals/redefine");_e.exports=function(){var ye=fe("Symbol"),we=ye&&ye.prototype,me=we&&we.valueOf,Se=be("toPrimitive");we&&!we[Se]&&Pe(we,Se,function(de){return ve(me,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/function-apply"),be=oe("../internals/function-bind-context"),Pe=oe("../internals/is-callable"),ye=oe("../internals/has-own-property"),we=oe("../internals/fails"),me=oe("../internals/html"),Se=oe("../internals/array-slice"),de=oe("../internals/document-create-element"),z=oe("../internals/validate-arguments-length"),ee=oe("../internals/engine-is-ios"),ae=oe("../internals/engine-is-node"),re=ve.setImmediate,le=ve.clearImmediate,ue=ve.process,pe=ve.Dispatch,Ee=ve.Function,Ce=ve.MessageChannel,je=ve.String,Le=0,ke={},Oe="onreadystatechange",Fe,Re,Ze,ze;try{Fe=ve.location}catch(bt){}var Ke=function(bt){if(ye(ke,bt)){var qe=ke[bt];delete ke[bt],qe()}},ot=function(bt){return function(){Ke(bt)}},ct=function(bt){Ke(bt.data)},pt=function(bt){ve.postMessage(je(bt),Fe.protocol+"//"+Fe.host)};(!re||!le)&&(re=function(qe){z(arguments.length,1);var at=Pe(qe)?qe:Ee(qe),gt=Se(arguments,1);return ke[++Le]=function(){fe(at,void 0,gt)},Re(Le),Le},le=function(qe){delete ke[qe]},ae?Re=function(bt){ue.nextTick(ot(bt))}:pe&&pe.now?Re=function(bt){pe.now(ot(bt))}:Ce&&!ee?(Ze=new Ce,ze=Ze.port2,Ze.port1.onmessage=ct,Re=be(ze.postMessage,ze)):ve.addEventListener&&Pe(ve.postMessage)&&!ve.importScripts&&Fe&&Fe.protocol!=="file:"&&!we(pt)?(Re=pt,ve.addEventListener("message",ct,!1)):Oe in de("script")?Re=function(bt){me.appendChild(de("script"))[Oe]=function(){me.removeChild(this),Ke(bt)}}:Re=function(bt){setTimeout(ot(bt),0)}),_e.exports={set:re,clear:le}},{"../internals/array-slice":117,"../internals/document-create-element":135,"../internals/engine-is-ios":142,"../internals/engine-is-node":143,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-bind-context":153,"../internals/global":163,"../internals/has-own-property":164,"../internals/html":167,"../internals/is-callable":176,"../internals/validate-arguments-length":266}],244:[function(oe,_e,Ne){var ve=oe("../internals/function-uncurry-this");_e.exports=ve(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(oe,_e,Ne){var ve=oe("../internals/to-integer-or-infinity"),fe=Math.max,be=Math.min;_e.exports=function(Pe,ye){var we=ve(Pe);return we<0?fe(we+ye,0):be(we,ye)}},{"../internals/to-integer-or-infinity":248}],246:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/to-integer-or-infinity"),be=oe("../internals/to-length"),Pe=ve.RangeError;_e.exports=function(ye){if(ye===void 0)return 0;var we=fe(ye),me=be(we);if(we!==me)throw Pe("Wrong length or index");return me}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(oe,_e,Ne){var ve=oe("../internals/indexed-object"),fe=oe("../internals/require-object-coercible");_e.exports=function(be){return ve(fe(be))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(oe,_e,Ne){var ve=Math.ceil,fe=Math.floor;_e.exports=function(be){var Pe=+be;return Pe!==Pe||Pe===0?0:(Pe>0?fe:ve)(Pe)}},{}],249:[function(oe,_e,Ne){var ve=oe("../internals/to-integer-or-infinity"),fe=Math.min;_e.exports=function(be){return be>0?fe(ve(be),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/require-object-coercible"),be=ve.Object;_e.exports=function(Pe){return be(fe(Pe))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/to-positive-integer"),be=ve.RangeError;_e.exports=function(Pe,ye){var we=fe(Pe);if(we%ye)throw be("Wrong offset");return we}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/to-integer-or-infinity"),be=ve.RangeError;_e.exports=function(Pe){var ye=fe(Pe);if(ye<0)throw be("The argument can't be less than 0");return ye}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/function-call"),be=oe("../internals/is-object"),Pe=oe("../internals/is-symbol"),ye=oe("../internals/get-method"),we=oe("../internals/ordinary-to-primitive"),me=oe("../internals/well-known-symbol"),Se=ve.TypeError,de=me("toPrimitive");_e.exports=function(z,ee){if(!be(z)||Pe(z))return z;var ae=ye(z,de),re;if(ae){if(ee===void 0&&(ee="default"),re=fe(ae,z,ee),!be(re)||Pe(re))return re;throw Se("Can't convert object to primitive value")}return ee===void 0&&(ee="number"),we(z,ee)}},{"../internals/function-call":155,"../internals/get-method":161,"../internals/global":163,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/ordinary-to-primitive":211,"../internals/well-known-symbol":268}],254:[function(oe,_e,Ne){var ve=oe("../internals/to-primitive"),fe=oe("../internals/is-symbol");_e.exports=function(be){var Pe=ve(be,"string");return fe(Pe)?Pe:Pe+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(oe,_e,Ne){var ve=oe("../internals/well-known-symbol"),fe=ve("toStringTag"),be={};be[fe]="z",_e.exports=String(be)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/classof"),be=ve.String;_e.exports=function(Pe){if(fe(Pe)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return be(Pe)}},{"../internals/classof":124,"../internals/global":163}],257:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=ve.String;_e.exports=function(be){try{return fe(be)}catch(Pe){return"Object"}}},{"../internals/global":163}],258:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/global"),be=oe("../internals/function-call"),Pe=oe("../internals/descriptors"),ye=oe("../internals/typed-array-constructors-require-wrappers"),we=oe("../internals/array-buffer-view-core"),me=oe("../internals/array-buffer"),Se=oe("../internals/an-instance"),de=oe("../internals/create-property-descriptor"),z=oe("../internals/create-non-enumerable-property"),ee=oe("../internals/is-integral-number"),ae=oe("../internals/to-length"),re=oe("../internals/to-index"),le=oe("../internals/to-offset"),ue=oe("../internals/to-property-key"),pe=oe("../internals/has-own-property"),Ee=oe("../internals/classof"),Ce=oe("../internals/is-object"),je=oe("../internals/is-symbol"),Le=oe("../internals/object-create"),ke=oe("../internals/object-is-prototype-of"),Oe=oe("../internals/object-set-prototype-of"),Fe=oe("../internals/object-get-own-property-names").f,Re=oe("../internals/typed-array-from"),Ze=oe("../internals/array-iteration").forEach,ze=oe("../internals/set-species"),Ke=oe("../internals/object-define-property"),ot=oe("../internals/object-get-own-property-descriptor"),ct=oe("../internals/internal-state"),pt=oe("../internals/inherit-if-required"),bt=ct.get,qe=ct.set,at=Ke.f,gt=ot.f,Ct=Math.round,wt=fe.RangeError,vt=me.ArrayBuffer,mt=vt.prototype,xt=me.DataView,At=we.NATIVE_ARRAY_BUFFER_VIEWS,kt=we.TYPED_ARRAY_CONSTRUCTOR,Wt=we.TYPED_ARRAY_TAG,Et=we.TypedArray,St=we.TypedArrayPrototype,tt=we.aTypedArrayConstructor,ft=we.isTypedArray,$e="BYTES_PER_ELEMENT",lt="Wrong length",Pt=function(ut,We){tt(ut);for(var De=0,Ie=We.length,Xe=new ut(Ie);Ie>De;)Xe[De]=We[De++];return Xe},dt=function(ut,We){at(ut,We,{get:function(){return bt(this)[We]}})},et=function(ut){var We;return ke(mt,ut)||(We=Ee(ut))=="ArrayBuffer"||We=="SharedArrayBuffer"},Ve=function(ut,We){return ft(ut)&&!je(We)&&We in ut&&ee(+We)&&We>=0},He=function(We,De){return De=ue(De),Ve(We,De)?de(2,We[De]):gt(We,De)},nt=function(We,De,Ie){return De=ue(De),Ve(We,De)&&Ce(Ie)&&pe(Ie,"value")&&!pe(Ie,"get")&&!pe(Ie,"set")&&!Ie.configurable&&(!pe(Ie,"writable")||Ie.writable)&&(!pe(Ie,"enumerable")||Ie.enumerable)?(We[De]=Ie.value,We):at(We,De,Ie)};Pe?(At||(ot.f=He,Ke.f=nt,dt(St,"buffer"),dt(St,"byteOffset"),dt(St,"byteLength"),dt(St,"length")),ve({target:"Object",stat:!0,forced:!At},{getOwnPropertyDescriptor:He,defineProperty:nt}),_e.exports=function(ut,We,De){var Ie=ut.match(/\d+$/)[0]/8,Xe=ut+(De?"Clamped":"")+"Array",yt="get"+ut,Ye="set"+ut,jt=fe[Xe],Ht=jt,en=Ht&&Ht.prototype,It={},Ut=function(mn,jn){var Vn=bt(mn);return Vn.view[yt](jn*Ie+Vn.byteOffset,!0)},tn=function(mn,jn,Vn){var Kn=bt(mn);De&&(Vn=(Vn=Ct(Vn))<0?0:Vn>255?255:Vn&255),Kn.view[Ye](jn*Ie+Kn.byteOffset,Vn,!0)},ln=function(mn,jn){at(mn,jn,{get:function(){return Ut(this,jn)},set:function(Vn){return tn(this,jn,Vn)},enumerable:!0})};At?ye&&(Ht=We(function(mn,jn,Vn,Kn){return Se(mn,en),pt(function(){return Ce(jn)?et(jn)?Kn!==void 0?new jt(jn,le(Vn,Ie),Kn):Vn!==void 0?new jt(jn,le(Vn,Ie)):new jt(jn):ft(jn)?Pt(Ht,jn):be(Re,Ht,jn):new jt(re(jn))}(),mn,Ht)}),Oe&&Oe(Ht,Et),Ze(Fe(jt),function(mn){mn in Ht||z(Ht,mn,jt[mn])}),Ht.prototype=en):(Ht=We(function(mn,jn,Vn,Kn){Se(mn,en);var ar=0,xr=0,gr,dr,Tr;if(!Ce(jn))Tr=re(jn),dr=Tr*Ie,gr=new vt(dr);else if(et(jn)){gr=jn,xr=le(Vn,Ie);var Rr=jn.byteLength;if(Kn===void 0){if(Rr%Ie||(dr=Rr-xr,dr<0))throw wt(lt)}else if(dr=ae(Kn)*Ie,dr+xr>Rr)throw wt(lt);Tr=dr/Ie}else return ft(jn)?Pt(Ht,jn):be(Re,Ht,jn);for(qe(mn,{buffer:gr,byteOffset:xr,byteLength:dr,length:Tr,view:new xt(gr)});ar<Tr;)ln(mn,ar++)}),Oe&&Oe(Ht,Et),en=Ht.prototype=Le(St)),en.constructor!==Ht&&z(en,"constructor",Ht),z(en,kt,Ht),Wt&&z(en,Wt,Xe),It[Xe]=Ht,ve({global:!0,forced:Ht!=jt,sham:!At},It),$e in Ht||z(Ht,$e,Ie),$e in en||z(en,$e,Ie),ze(Xe)}):_e.exports=function(){}},{"../internals/an-instance":100,"../internals/array-buffer":104,"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-integral-number":179,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/object-create":196,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/set-species":233,"../internals/to-index":246,"../internals/to-length":249,"../internals/to-offset":251,"../internals/to-property-key":254,"../internals/typed-array-constructors-require-wrappers":259,"../internals/typed-array-from":261}],259:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/fails"),be=oe("../internals/check-correctness-of-iteration"),Pe=oe("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,ye=ve.ArrayBuffer,we=ve.Int8Array;_e.exports=!Pe||!fe(function(){we(1)})||!fe(function(){new we(-1)})||!be(function(me){new we,new we(null),new we(1.5),new we(me)},!0)||fe(function(){return new we(new ye(2),1,void 0).length!==1})},{"../internals/array-buffer-view-core":103,"../internals/check-correctness-of-iteration":122,"../internals/fails":150,"../internals/global":163}],260:[function(oe,_e,Ne){var ve=oe("../internals/array-from-constructor-and-list"),fe=oe("../internals/typed-array-species-constructor");_e.exports=function(be,Pe){return ve(fe(be),Pe)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(oe,_e,Ne){var ve=oe("../internals/function-bind-context"),fe=oe("../internals/function-call"),be=oe("../internals/a-constructor"),Pe=oe("../internals/to-object"),ye=oe("../internals/length-of-array-like"),we=oe("../internals/get-iterator"),me=oe("../internals/get-iterator-method"),Se=oe("../internals/is-array-iterator-method"),de=oe("../internals/array-buffer-view-core").aTypedArrayConstructor;_e.exports=function(ee){var ae=be(this),re=Pe(ee),le=arguments.length,ue=le>1?arguments[1]:void 0,pe=ue!==void 0,Ee=me(re),Ce,je,Le,ke,Oe,Fe;if(Ee&&!Se(Ee))for(Oe=we(re,Ee),Fe=Oe.next,re=[];!(ke=fe(Fe,Oe)).done;)re.push(ke.value);for(pe&&le>2&&(ue=ve(ue,arguments[2])),je=ye(re),Le=new(de(ae))(je),Ce=0;je>Ce;Ce++)Le[Ce]=pe?ue(re[Ce],Ce):re[Ce];return Le}},{"../internals/a-constructor":96,"../internals/array-buffer-view-core":103,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/is-array-iterator-method":174,"../internals/length-of-array-like":188,"../internals/to-object":250}],262:[function(oe,_e,Ne){var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/species-constructor"),be=ve.TYPED_ARRAY_CONSTRUCTOR,Pe=ve.aTypedArrayConstructor;_e.exports=function(ye){return Pe(fe(ye,ye[be]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(oe,_e,Ne){var ve=oe("../internals/function-uncurry-this"),fe=0,be=Math.random(),Pe=ve(1 .toString);_e.exports=function(ye){return"Symbol("+(ye===void 0?"":ye)+")_"+Pe(++fe+be,36)}},{"../internals/function-uncurry-this":157}],264:[function(oe,_e,Ne){var ve=oe("../internals/native-symbol");_e.exports=ve&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(oe,_e,Ne){var ve=oe("../internals/descriptors"),fe=oe("../internals/fails");_e.exports=ve&&fe(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=ve.TypeError;_e.exports=function(be,Pe){if(be<Pe)throw fe("Not enough arguments");return be}},{"../internals/global":163}],267:[function(oe,_e,Ne){var ve=oe("../internals/well-known-symbol");Ne.f=ve},{"../internals/well-known-symbol":268}],268:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/shared"),be=oe("../internals/has-own-property"),Pe=oe("../internals/uid"),ye=oe("../internals/native-symbol"),we=oe("../internals/use-symbol-as-uid"),me=fe("wks"),Se=ve.Symbol,de=Se&&Se.for,z=we?Se:Se&&Se.withoutSetter||Pe;_e.exports=function(ee){if(!be(me,ee)||!(ye||typeof me[ee]=="string")){var ae="Symbol."+ee;ye&&be(Se,ee)?me[ee]=Se[ee]:we&&de?me[ee]=de(ae):me[ee]=z(ae)}return me[ee]}},{"../internals/global":163,"../internals/has-own-property":164,"../internals/native-symbol":191,"../internals/shared":237,"../internals/uid":263,"../internals/use-symbol-as-uid":264}],269:[function(oe,_e,Ne){_e.exports=`
|
|
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},{}],270:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/global"),be=oe("../internals/array-buffer"),Pe=oe("../internals/set-species"),ye="ArrayBuffer",we=be[ye],me=fe[ye];ve({global:!0,forced:me!==we},{ArrayBuffer:we}),Pe(ye)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/function-uncurry-this"),be=oe("../internals/fails"),Pe=oe("../internals/array-buffer"),ye=oe("../internals/an-object"),we=oe("../internals/to-absolute-index"),me=oe("../internals/to-length"),Se=oe("../internals/species-constructor"),de=Pe.ArrayBuffer,z=Pe.DataView,ee=z.prototype,ae=fe(de.prototype.slice),re=fe(ee.getUint8),le=fe(ee.setUint8),ue=be(function(){return!new de(2).slice(1,void 0).byteLength});ve({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:ue},{slice:function(Ee,Ce){if(ae&&Ce===void 0)return ae(ye(this),Ee);for(var je=ye(this).byteLength,Le=we(Ee,je),ke=we(Ce===void 0?je:Ce,je),Oe=new(Se(this,de))(me(ke-Le)),Fe=new z(this),Re=new z(Oe),Ze=0;Le<ke;)le(Re,Ze++,re(Fe,Le++));return Oe}})},{"../internals/an-object":101,"../internals/array-buffer":104,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/species-constructor":238,"../internals/to-absolute-index":245,"../internals/to-length":249}],272:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/global"),be=oe("../internals/fails"),Pe=oe("../internals/is-array"),ye=oe("../internals/is-object"),we=oe("../internals/to-object"),me=oe("../internals/length-of-array-like"),Se=oe("../internals/create-property"),de=oe("../internals/array-species-create"),z=oe("../internals/array-method-has-species-support"),ee=oe("../internals/well-known-symbol"),ae=oe("../internals/engine-v8-version"),re=ee("isConcatSpreadable"),le=9007199254740991,ue="Maximum allowed index exceeded",pe=fe.TypeError,Ee=ae>=51||!be(function(){var ke=[];return ke[re]=!1,ke.concat()[0]!==ke}),Ce=z("concat"),je=function(ke){if(!ye(ke))return!1;var Oe=ke[re];return Oe!==void 0?!!Oe:Pe(ke)},Le=!Ee||!Ce;ve({target:"Array",proto:!0,forced:Le},{concat:function(Oe){var Fe=we(this),Re=de(Fe,0),Ze=0,ze,Ke,ot,ct,pt;for(ze=-1,ot=arguments.length;ze<ot;ze++)if(pt=ze===-1?Fe:arguments[ze],je(pt)){if(ct=me(pt),Ze+ct>le)throw pe(ue);for(Ke=0;Ke<ct;Ke++,Ze++)Ke in pt&&Se(Re,Ze,pt[Ke])}else{if(Ze>=le)throw pe(ue);Se(Re,Ze++,pt)}return Re.length=Ze,Re}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/engine-v8-version":146,"../internals/export":149,"../internals/fails":150,"../internals/global":163,"../internals/is-array":175,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/well-known-symbol":268}],273:[function(oe,_e,Ne){var ve=oe("../internals/export"),fe=oe("../internals/array-fill"),be=oe("../internals/add-to-unscopables");ve({target:"Array",proto:!0},{fill:fe}),be("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/array-iteration").filter,be=oe("../internals/array-method-has-species-support"),Pe=be("filter");ve({target:"Array",proto:!0,forced:!Pe},{filter:function(we){return fe(this,we,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/array-iteration").find,be=oe("../internals/add-to-unscopables"),Pe="find",ye=!0;Pe in[]&&Array(1)[Pe](function(){ye=!1}),ve({target:"Array",proto:!0,forced:ye},{find:function(me){return fe(this,me,arguments.length>1?arguments[1]:void 0)}}),be(Pe)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(oe,_e,Ne){var ve=oe("../internals/export"),fe=oe("../internals/array-from"),be=oe("../internals/check-correctness-of-iteration"),Pe=!be(function(ye){Array.from(ye)});ve({target:"Array",stat:!0,forced:Pe},{from:fe})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/array-includes").includes,be=oe("../internals/add-to-unscopables");ve({target:"Array",proto:!0},{includes:function(ye){return fe(this,ye,arguments.length>1?arguments[1]:void 0)}}),be("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/to-indexed-object"),fe=oe("../internals/add-to-unscopables"),be=oe("../internals/iterators"),Pe=oe("../internals/internal-state"),ye=oe("../internals/object-define-property").f,we=oe("../internals/define-iterator"),me=oe("../internals/is-pure"),Se=oe("../internals/descriptors"),de="Array Iterator",z=Pe.set,ee=Pe.getterFor(de);_e.exports=we(Array,"Array",function(re,le){z(this,{type:de,target:ve(re),index:0,kind:le})},function(){var re=ee(this),le=re.target,ue=re.kind,pe=re.index++;return!le||pe>=le.length?(re.target=void 0,{value:void 0,done:!0}):ue=="keys"?{value:pe,done:!1}:ue=="values"?{value:le[pe],done:!1}:{value:[pe,le[pe]],done:!1}},"values");var ae=be.Arguments=be.Array;if(fe("keys"),fe("values"),fe("entries"),!me&&Se&&ae.name!=="values")try{ye(ae,"name",{value:"values"})}catch(re){}},{"../internals/add-to-unscopables":98,"../internals/define-iterator":132,"../internals/descriptors":134,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/iterators":187,"../internals/object-define-property":198,"../internals/to-indexed-object":247}],279:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/function-uncurry-this"),be=oe("../internals/indexed-object"),Pe=oe("../internals/to-indexed-object"),ye=oe("../internals/array-method-is-strict"),we=fe([].join),me=be!=Object,Se=ye("join",",");ve({target:"Array",proto:!0,forced:me||!Se},{join:function(z){return we(Pe(this),z===void 0?",":z)}})},{"../internals/array-method-is-strict":114,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/to-indexed-object":247}],280:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/array-iteration").map,be=oe("../internals/array-method-has-species-support"),Pe=be("map");ve({target:"Array",proto:!0,forced:!Pe},{map:function(we){return fe(this,we,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/global"),be=oe("../internals/is-array"),Pe=oe("../internals/is-constructor"),ye=oe("../internals/is-object"),we=oe("../internals/to-absolute-index"),me=oe("../internals/length-of-array-like"),Se=oe("../internals/to-indexed-object"),de=oe("../internals/create-property"),z=oe("../internals/well-known-symbol"),ee=oe("../internals/array-method-has-species-support"),ae=oe("../internals/array-slice"),re=ee("slice"),le=z("species"),ue=fe.Array,pe=Math.max;ve({target:"Array",proto:!0,forced:!re},{slice:function(Ce,je){var Le=Se(this),ke=me(Le),Oe=we(Ce,ke),Fe=we(je===void 0?ke:je,ke),Re,Ze,ze;if(be(Le)&&(Re=Le.constructor,Pe(Re)&&(Re===ue||be(Re.prototype))?Re=void 0:ye(Re)&&(Re=Re[le],Re===null&&(Re=void 0)),Re===ue||Re===void 0))return ae(Le,Oe,Fe);for(Ze=new(Re===void 0?ue:Re)(pe(Fe-Oe,0)),ze=0;Oe<Fe;Oe++,ze++)Oe in Le&&de(Ze,ze,Le[Oe]);return Ze.length=ze,Ze}})},{"../internals/array-method-has-species-support":113,"../internals/array-slice":117,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247,"../internals/well-known-symbol":268}],282:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/function-uncurry-this"),be=oe("../internals/a-callable"),Pe=oe("../internals/to-object"),ye=oe("../internals/length-of-array-like"),we=oe("../internals/to-string"),me=oe("../internals/fails"),Se=oe("../internals/array-sort"),de=oe("../internals/array-method-is-strict"),z=oe("../internals/engine-ff-version"),ee=oe("../internals/engine-is-ie-or-edge"),ae=oe("../internals/engine-v8-version"),re=oe("../internals/engine-webkit-version"),le=[],ue=fe(le.sort),pe=fe(le.push),Ee=me(function(){le.sort(void 0)}),Ce=me(function(){le.sort(null)}),je=de("sort"),Le=!me(function(){if(ae)return ae<70;if(!(z&&z>3)){if(ee)return!0;if(re)return re<603;var Fe="",Re,Ze,ze,Ke;for(Re=65;Re<76;Re++){switch(Ze=String.fromCharCode(Re),Re){case 66:case 69:case 70:case 72:ze=3;break;case 68:case 71:ze=4;break;default:ze=2}for(Ke=0;Ke<47;Ke++)le.push({k:Ze+Ke,v:ze})}for(le.sort(function(ot,ct){return ct.v-ot.v}),Ke=0;Ke<le.length;Ke++)Ze=le[Ke].k.charAt(0),Fe.charAt(Fe.length-1)!==Ze&&(Fe+=Ze);return Fe!=="DGBEFHACIJK"}}),ke=Ee||!Ce||!je||!Le,Oe=function(Fe){return function(Re,Ze){return Ze===void 0?-1:Re===void 0?1:Fe!==void 0?+Fe(Re,Ze)||0:we(Re)>we(Ze)?1:-1}};ve({target:"Array",proto:!0,forced:ke},{sort:function(Re){Re!==void 0&&be(Re);var Ze=Pe(this);if(Le)return Re===void 0?ue(Ze):ue(Ze,Re);var ze=[],Ke=ye(Ze),ot,ct;for(ct=0;ct<Ke;ct++)ct in Ze&&pe(ze,Ze[ct]);for(Se(ze,Oe(Re)),ot=ze.length,ct=0;ct<ot;)Ze[ct]=ze[ct++];for(;ct<Ke;)delete Ze[ct++];return Ze}})},{"../internals/a-callable":95,"../internals/array-method-is-strict":114,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-string":256}],283:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/global"),be=oe("../internals/to-absolute-index"),Pe=oe("../internals/to-integer-or-infinity"),ye=oe("../internals/length-of-array-like"),we=oe("../internals/to-object"),me=oe("../internals/array-species-create"),Se=oe("../internals/create-property"),de=oe("../internals/array-method-has-species-support"),z=de("splice"),ee=fe.TypeError,ae=Math.max,re=Math.min,le=9007199254740991,ue="Maximum allowed length exceeded";ve({target:"Array",proto:!0,forced:!z},{splice:function(Ee,Ce){var je=we(this),Le=ye(je),ke=be(Ee,Le),Oe=arguments.length,Fe,Re,Ze,ze,Ke,ot;if(Oe===0?Fe=Re=0:Oe===1?(Fe=0,Re=Le-ke):(Fe=Oe-2,Re=re(ae(Pe(Ce),0),Le-ke)),Le+Fe-Re>le)throw ee(ue);for(Ze=me(je,Re),ze=0;ze<Re;ze++)Ke=ke+ze,Ke in je&&Se(Ze,ze,je[Ke]);if(Ze.length=Re,Fe<Re){for(ze=ke;ze<Le-Re;ze++)Ke=ze+Re,ot=ze+Fe,Ke in je?je[ot]=je[Ke]:delete je[ot];for(ze=Le;ze>Le-Re+Fe;ze--)delete je[ze-1]}else if(Fe>Re)for(ze=Le-Re;ze>ke;ze--)Ke=ze+Re-1,ot=ze+Fe-1,Ke in je?je[ot]=je[Ke]:delete je[ot];for(ze=0;ze<Fe;ze++)je[ze+ke]=arguments[ze+2];return je.length=Le-Re+Fe,Ze}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-integer-or-infinity":248,"../internals/to-object":250}],284:[function(oe,_e,Ne){var ve=oe("../internals/descriptors"),fe=oe("../internals/function-name").EXISTS,be=oe("../internals/function-uncurry-this"),Pe=oe("../internals/object-define-property").f,ye=Function.prototype,we=be(ye.toString),me=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Se=be(me.exec),de="name";ve&&!fe&&Pe(ye,de,{configurable:!0,get:function(){try{return Se(me,we(this))[1]}catch(z){return""}}})},{"../internals/descriptors":134,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/object-define-property":198}],285:[function(oe,_e,Ne){var ve=oe("../internals/export"),fe=oe("../internals/get-built-in"),be=oe("../internals/function-apply"),Pe=oe("../internals/function-call"),ye=oe("../internals/function-uncurry-this"),we=oe("../internals/fails"),me=oe("../internals/is-array"),Se=oe("../internals/is-callable"),de=oe("../internals/is-object"),z=oe("../internals/is-symbol"),ee=oe("../internals/array-slice"),ae=oe("../internals/native-symbol"),re=fe("JSON","stringify"),le=ye(/./.exec),ue=ye("".charAt),pe=ye("".charCodeAt),Ee=ye("".replace),Ce=ye(1 .toString),je=/[\uD800-\uDFFF]/g,Le=/^[\uD800-\uDBFF]$/,ke=/^[\uDC00-\uDFFF]$/,Oe=!ae||we(function(){var ze=fe("Symbol")();return re([ze])!="[null]"||re({a:ze})!="{}"||re(Object(ze))!="{}"}),Fe=we(function(){return re("\uDF06\uD834")!=='"\\udf06\\ud834"'||re("\uDEAD")!=='"\\udead"'}),Re=function(ze,Ke){var ot=ee(arguments),ct=Ke;if(!(!de(Ke)&&ze===void 0||z(ze)))return me(Ke)||(Ke=function(pt,bt){if(Se(ct)&&(bt=Pe(ct,this,pt,bt)),!z(bt))return bt}),ot[1]=Ke,be(re,null,ot)},Ze=function(ze,Ke,ot){var ct=ue(ot,Ke-1),pt=ue(ot,Ke+1);return le(Le,ze)&&!le(ke,pt)||le(ke,ze)&&!le(Le,ct)?"\\u"+Ce(pe(ze,0),16):ze};re&&ve({target:"JSON",stat:!0,forced:Oe||Fe},{stringify:function(Ke,ot,ct){var pt=ee(arguments),bt=be(Oe?Re:re,null,pt);return Fe&&typeof bt=="string"?Ee(bt,je,Ze):bt}})},{"../internals/array-slice":117,"../internals/export":149,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/is-array":175,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/native-symbol":191}],286:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/descriptors"),fe=oe("../internals/global"),be=oe("../internals/function-uncurry-this"),Pe=oe("../internals/is-forced"),ye=oe("../internals/redefine"),we=oe("../internals/has-own-property"),me=oe("../internals/inherit-if-required"),Se=oe("../internals/object-is-prototype-of"),de=oe("../internals/is-symbol"),z=oe("../internals/to-primitive"),ee=oe("../internals/fails"),ae=oe("../internals/object-get-own-property-names").f,re=oe("../internals/object-get-own-property-descriptor").f,le=oe("../internals/object-define-property").f,ue=oe("../internals/this-number-value"),pe=oe("../internals/string-trim").trim,Ee="Number",Ce=fe[Ee],je=Ce.prototype,Le=fe.TypeError,ke=be("".slice),Oe=be("".charCodeAt),Fe=function(ct){var pt=z(ct,"number");return typeof pt=="bigint"?pt:Re(pt)},Re=function(ct){var pt=z(ct,"number"),bt,qe,at,gt,Ct,wt,vt,mt;if(de(pt))throw Le("Cannot convert a Symbol value to a number");if(typeof pt=="string"&&pt.length>2){if(pt=pe(pt),bt=Oe(pt,0),bt===43||bt===45){if(qe=Oe(pt,2),qe===88||qe===120)return NaN}else if(bt===48){switch(Oe(pt,1)){case 66:case 98:at=2,gt=49;break;case 79:case 111:at=8,gt=55;break;default:return+pt}for(Ct=ke(pt,2),wt=Ct.length,vt=0;vt<wt;vt++)if(mt=Oe(Ct,vt),mt<48||mt>gt)return NaN;return parseInt(Ct,at)}}return+pt};if(Pe(Ee,!Ce(" 0o1")||!Ce("0b1")||Ce("+0x1"))){for(var Ze=function(pt){var bt=arguments.length<1?0:Ce(Fe(pt)),qe=this;return Se(je,qe)&&ee(function(){ue(qe)})?me(Object(bt),qe,Ze):bt},ze=ve?ae(Ce):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Ke=0,ot;ze.length>Ke;Ke++)we(Ce,ot=ze[Ke])&&!we(Ze,ot)&&le(Ze,ot,re(Ce,ot));Ze.prototype=je,je.constructor=Ze,ye(fe,Ee,Ze)}},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/is-forced":178,"../internals/is-symbol":183,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/redefine":222,"../internals/string-trim":241,"../internals/this-number-value":244,"../internals/to-primitive":253}],287:[function(oe,_e,Ne){var ve=oe("../internals/export"),fe=oe("../internals/object-assign");ve({target:"Object",stat:!0,forced:Object.assign!==fe},{assign:fe})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(oe,_e,Ne){var ve=oe("../internals/export"),fe=oe("../internals/object-to-array").entries;ve({target:"Object",stat:!0},{entries:function(Pe){return fe(Pe)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(oe,_e,Ne){var ve=oe("../internals/export"),fe=oe("../internals/native-symbol"),be=oe("../internals/fails"),Pe=oe("../internals/object-get-own-property-symbols"),ye=oe("../internals/to-object"),we=!fe||be(function(){Pe.f(1)});ve({target:"Object",stat:!0,forced:we},{getOwnPropertySymbols:function(Se){var de=Pe.f;return de?de(ye(Se)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(oe,_e,Ne){var ve=oe("../internals/export"),fe=oe("../internals/to-object"),be=oe("../internals/object-keys"),Pe=oe("../internals/fails"),ye=Pe(function(){be(1)});ve({target:"Object",stat:!0,forced:ye},{keys:function(me){return be(fe(me))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(oe,_e,Ne){var ve=oe("../internals/to-string-tag-support"),fe=oe("../internals/redefine"),be=oe("../internals/object-to-string");ve||fe(Object.prototype,"toString",be,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/function-call"),be=oe("../internals/a-callable"),Pe=oe("../internals/new-promise-capability"),ye=oe("../internals/perform"),we=oe("../internals/iterate"),me=oe("../internals/promise-statics-incorrect-iteration");ve({target:"Promise",stat:!0,forced:me},{all:function(de){var z=this,ee=Pe.f(z),ae=ee.resolve,re=ee.reject,le=ye(function(){var ue=be(z.resolve),pe=[],Ee=0,Ce=1;we(de,function(je){var Le=Ee++,ke=!1;Ce++,fe(ue,z,je).then(function(Oe){ke||(ke=!0,pe[Le]=Oe,--Ce||ae(pe))},re)}),--Ce||ae(pe)});return le.error&&re(le.value),ee.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],293:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/is-pure"),be=oe("../internals/promise-constructor-detection").CONSTRUCTOR,Pe=oe("../internals/promise-native-constructor"),ye=oe("../internals/get-built-in"),we=oe("../internals/is-callable"),me=oe("../internals/redefine"),Se=Pe&&Pe.prototype;if(ve({target:"Promise",proto:!0,forced:be,real:!0},{catch:function(z){return this.then(void 0,z)}}),!fe&&we(Pe)){var de=ye("Promise").prototype.catch;Se.catch!==de&&me(Se,"catch",de,{unsafe:!0})}},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/redefine":222}],294:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/is-pure"),be=oe("../internals/engine-is-node"),Pe=oe("../internals/global"),ye=oe("../internals/function-call"),we=oe("../internals/redefine"),me=oe("../internals/redefine-all"),Se=oe("../internals/object-set-prototype-of"),de=oe("../internals/set-to-string-tag"),z=oe("../internals/set-species"),ee=oe("../internals/a-callable"),ae=oe("../internals/is-callable"),re=oe("../internals/is-object"),le=oe("../internals/an-instance"),ue=oe("../internals/species-constructor"),pe=oe("../internals/task").set,Ee=oe("../internals/microtask"),Ce=oe("../internals/host-report-errors"),je=oe("../internals/perform"),Le=oe("../internals/queue"),ke=oe("../internals/internal-state"),Oe=oe("../internals/promise-native-constructor"),Fe=oe("../internals/promise-constructor-detection"),Re=oe("../internals/new-promise-capability"),Ze="Promise",ze=Fe.CONSTRUCTOR,Ke=Fe.REJECTION_EVENT,ot=Fe.SUBCLASSING,ct=ke.getterFor(Ze),pt=ke.set,bt=Oe&&Oe.prototype,qe=Oe,at=bt,gt=Pe.TypeError,Ct=Pe.document,wt=Pe.process,vt=Re.f,mt=vt,xt=!!(Ct&&Ct.createEvent&&Pe.dispatchEvent),At="unhandledrejection",kt="rejectionhandled",Wt=0,Et=1,St=2,tt=1,ft=2,$e,lt,Pt,dt,et=function(Ye){var jt;return re(Ye)&&ae(jt=Ye.then)?jt:!1},Ve=function(Ye,jt){var Ht=jt.value,en=jt.state==Et,It=en?Ye.ok:Ye.fail,Ut=Ye.resolve,tn=Ye.reject,ln=Ye.domain,mn,jn,Vn;try{It?(en||(jt.rejection===ft&&De(jt),jt.rejection=tt),It===!0?mn=Ht:(ln&&ln.enter(),mn=It(Ht),ln&&(ln.exit(),Vn=!0)),mn===Ye.promise?tn(gt("Promise-chain cycle")):(jn=et(mn))?ye(jn,mn,Ut,tn):Ut(mn)):tn(Ht)}catch(Kn){ln&&!Vn&&ln.exit(),tn(Kn)}},He=function(Ye,jt){Ye.notified||(Ye.notified=!0,Ee(function(){for(var Ht=Ye.reactions,en;en=Ht.get();)Ve(en,Ye);Ye.notified=!1,jt&&!Ye.rejection&&ut(Ye)}))},nt=function(Ye,jt,Ht){var en,It;xt?(en=Ct.createEvent("Event"),en.promise=jt,en.reason=Ht,en.initEvent(Ye,!1,!0),Pe.dispatchEvent(en)):en={promise:jt,reason:Ht},!Ke&&(It=Pe["on"+Ye])?It(en):Ye===At&&Ce("Unhandled promise rejection",Ht)},ut=function(Ye){ye(pe,Pe,function(){var jt=Ye.facade,Ht=Ye.value,en=We(Ye),It;if(en&&(It=je(function(){be?wt.emit("unhandledRejection",Ht,jt):nt(At,jt,Ht)}),Ye.rejection=be||We(Ye)?ft:tt,It.error))throw It.value})},We=function(Ye){return Ye.rejection!==tt&&!Ye.parent},De=function(Ye){ye(pe,Pe,function(){var jt=Ye.facade;be?wt.emit("rejectionHandled",jt):nt(kt,jt,Ye.value)})},Ie=function(Ye,jt,Ht){return function(en){Ye(jt,en,Ht)}},Xe=function(Ye,jt,Ht){Ye.done||(Ye.done=!0,Ht&&(Ye=Ht),Ye.value=jt,Ye.state=St,He(Ye,!0))},yt=function(Ye,jt,Ht){if(!Ye.done){Ye.done=!0,Ht&&(Ye=Ht);try{if(Ye.facade===jt)throw gt("Promise can't be resolved itself");var en=et(jt);en?Ee(function(){var It={done:!1};try{ye(en,jt,Ie(yt,It,Ye),Ie(Xe,It,Ye))}catch(Ut){Xe(It,Ut,Ye)}}):(Ye.value=jt,Ye.state=Et,He(Ye,!1))}catch(It){Xe({done:!1},It,Ye)}}};if(ze&&(qe=function(jt){le(this,at),ee(jt),ye($e,this);var Ht=ct(this);try{jt(Ie(yt,Ht),Ie(Xe,Ht))}catch(en){Xe(Ht,en)}},at=qe.prototype,$e=function(jt){pt(this,{type:Ze,done:!1,notified:!1,parent:!1,reactions:new Le,rejection:!1,state:Wt,value:void 0})},$e.prototype=me(at,{then:function(jt,Ht){var en=ct(this),It=vt(ue(this,qe));return en.parent=!0,It.ok=ae(jt)?jt:!0,It.fail=ae(Ht)&&Ht,It.domain=be?wt.domain:void 0,en.state==Wt?en.reactions.add(It):Ee(function(){Ve(It,en)}),It.promise}}),lt=function(){var Ye=new $e,jt=ct(Ye);this.promise=Ye,this.resolve=Ie(yt,jt),this.reject=Ie(Xe,jt)},Re.f=vt=function(Ye){return Ye===qe||Ye===Pt?new lt(Ye):mt(Ye)},!fe&&ae(Oe)&&bt!==Object.prototype)){dt=bt.then,ot||we(bt,"then",function(jt,Ht){var en=this;return new qe(function(It,Ut){ye(dt,en,It,Ut)}).then(jt,Ht)},{unsafe:!0});try{delete bt.constructor}catch(Ye){}Se&&Se(bt,at)}ve({global:!0,wrap:!0,forced:ze},{Promise:qe}),de(qe,Ze,!1,!0),z(Ze)},{"../internals/a-callable":95,"../internals/an-instance":100,"../internals/engine-is-node":143,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/host-report-errors":166,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-pure":181,"../internals/microtask":189,"../internals/new-promise-capability":193,"../internals/object-set-prototype-of":208,"../internals/perform":214,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/queue":220,"../internals/redefine":222,"../internals/redefine-all":221,"../internals/set-species":233,"../internals/set-to-string-tag":234,"../internals/species-constructor":238,"../internals/task":243}],295:[function(oe,_e,Ne){oe("../modules/es.promise.constructor"),oe("../modules/es.promise.all"),oe("../modules/es.promise.catch"),oe("../modules/es.promise.race"),oe("../modules/es.promise.reject"),oe("../modules/es.promise.resolve")},{"../modules/es.promise.all":292,"../modules/es.promise.catch":293,"../modules/es.promise.constructor":294,"../modules/es.promise.race":296,"../modules/es.promise.reject":297,"../modules/es.promise.resolve":298}],296:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/function-call"),be=oe("../internals/a-callable"),Pe=oe("../internals/new-promise-capability"),ye=oe("../internals/perform"),we=oe("../internals/iterate"),me=oe("../internals/promise-statics-incorrect-iteration");ve({target:"Promise",stat:!0,forced:me},{race:function(de){var z=this,ee=Pe.f(z),ae=ee.reject,re=ye(function(){var le=be(z.resolve);we(de,function(ue){fe(le,z,ue).then(ee.resolve,ae)})});return re.error&&ae(re.value),ee.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],297:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/function-call"),be=oe("../internals/new-promise-capability"),Pe=oe("../internals/promise-constructor-detection").CONSTRUCTOR;ve({target:"Promise",stat:!0,forced:Pe},{reject:function(we){var me=be.f(this);return fe(me.reject,void 0,we),me.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/get-built-in"),be=oe("../internals/is-pure"),Pe=oe("../internals/promise-native-constructor"),ye=oe("../internals/promise-constructor-detection").CONSTRUCTOR,we=oe("../internals/promise-resolve"),me=fe("Promise"),Se=be&&!ye;ve({target:"Promise",stat:!0,forced:be||ye},{resolve:function(z){return we(Se&&this===me?Pe:this,z)}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/promise-resolve":217}],299:[function(oe,_e,Ne){var ve=oe("../internals/descriptors"),fe=oe("../internals/global"),be=oe("../internals/function-uncurry-this"),Pe=oe("../internals/is-forced"),ye=oe("../internals/inherit-if-required"),we=oe("../internals/create-non-enumerable-property"),me=oe("../internals/object-get-own-property-names").f,Se=oe("../internals/object-is-prototype-of"),de=oe("../internals/is-regexp"),z=oe("../internals/to-string"),ee=oe("../internals/regexp-get-flags"),ae=oe("../internals/regexp-sticky-helpers"),re=oe("../internals/proxy-accessor"),le=oe("../internals/redefine"),ue=oe("../internals/fails"),pe=oe("../internals/has-own-property"),Ee=oe("../internals/internal-state").enforce,Ce=oe("../internals/set-species"),je=oe("../internals/well-known-symbol"),Le=oe("../internals/regexp-unsupported-dot-all"),ke=oe("../internals/regexp-unsupported-ncg"),Oe=je("match"),Fe=fe.RegExp,Re=Fe.prototype,Ze=fe.SyntaxError,ze=be(Re.exec),Ke=be("".charAt),ot=be("".replace),ct=be("".indexOf),pt=be("".slice),bt=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,qe=/a/g,at=/a/g,gt=new Fe(qe)!==qe,Ct=ae.MISSED_STICKY,wt=ae.UNSUPPORTED_Y,vt=ve&&(!gt||Ct||Le||ke||ue(function(){return at[Oe]=!1,Fe(qe)!=qe||Fe(at)==at||Fe(qe,"i")!="/a/i"})),mt=function(Et){for(var St=Et.length,tt=0,ft="",$e=!1,lt;tt<=St;tt++){if(lt=Ke(Et,tt),lt==="\\"){ft+=lt+Ke(Et,++tt);continue}!$e&<==="."?ft+="[\\s\\S]":(lt==="["?$e=!0:lt==="]"&&($e=!1),ft+=lt)}return ft},xt=function(Et){for(var St=Et.length,tt=0,ft="",$e=[],lt={},Pt=!1,dt=!1,et=0,Ve="",He;tt<=St;tt++){if(He=Ke(Et,tt),He==="\\")He=He+Ke(Et,++tt);else if(He==="]")Pt=!1;else if(!Pt)switch(!0){case He==="[":Pt=!0;break;case He==="(":ze(bt,pt(Et,tt+1))&&(tt+=2,dt=!0),ft+=He,et++;continue;case(He===">"&&dt):if(Ve===""||pe(lt,Ve))throw new Ze("Invalid capture group name");lt[Ve]=!0,$e[$e.length]=[Ve,et],dt=!1,Ve="";continue}dt?Ve+=He:ft+=He}return[ft,$e]};if(Pe("RegExp",vt)){for(var At=function(St,tt){var ft=Se(Re,this),$e=de(St),lt=tt===void 0,Pt=[],dt=St,et,Ve,He,nt,ut,We;if(!ft&&$e&<&&St.constructor===At)return St;if(($e||Se(Re,St))&&(St=St.source,lt&&(tt=ee(dt))),St=St===void 0?"":z(St),tt=tt===void 0?"":z(tt),dt=St,Le&&"dotAll"in qe&&(Ve=!!tt&&ct(tt,"s")>-1,Ve&&(tt=ot(tt,/s/g,""))),et=tt,Ct&&"sticky"in qe&&(He=!!tt&&ct(tt,"y")>-1,He&&wt&&(tt=ot(tt,/y/g,""))),ke&&(nt=xt(St),St=nt[0],Pt=nt[1]),ut=ye(Fe(St,tt),ft?this:Re,At),(Ve||He||Pt.length)&&(We=Ee(ut),Ve&&(We.dotAll=!0,We.raw=At(mt(St),et)),He&&(We.sticky=!0),Pt.length&&(We.groups=Pt)),St!==dt)try{we(ut,"source",dt===""?"(?:)":dt)}catch(De){}return ut},kt=me(Fe),Wt=0;kt.length>Wt;)re(At,Fe,kt[Wt++]);Re.constructor=At,At.prototype=Re,le(fe,"RegExp",At)}Ce("RegExp")},{"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-forced":178,"../internals/is-regexp":182,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/proxy-accessor":219,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/set-species":233,"../internals/to-string":256,"../internals/well-known-symbol":268}],300:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/regexp-exec");ve({target:"RegExp",proto:!0,forced:/./.exec!==fe},{exec:fe})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/function-name").PROPER,fe=oe("../internals/redefine"),be=oe("../internals/an-object"),Pe=oe("../internals/to-string"),ye=oe("../internals/fails"),we=oe("../internals/regexp-get-flags"),me="toString",Se=RegExp.prototype,de=Se[me],z=ye(function(){return de.call({source:"a",flags:"b"})!="/a/b"}),ee=ve&&de.name!=me;(z||ee)&&fe(RegExp.prototype,me,function(){var re=be(this),le=Pe(re.source),ue=Pe(we(re));return"/"+le+"/"+ue},{unsafe:!0})},{"../internals/an-object":101,"../internals/fails":150,"../internals/function-name":156,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/to-string":256}],302:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/function-uncurry-this"),be=oe("../internals/not-a-regexp"),Pe=oe("../internals/require-object-coercible"),ye=oe("../internals/to-string"),we=oe("../internals/correct-is-regexp-logic"),me=fe("".indexOf);ve({target:"String",proto:!0,forced:!we("includes")},{includes:function(de){return!!~me(ye(Pe(this)),ye(be(de)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":126,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/not-a-regexp":194,"../internals/require-object-coercible":230,"../internals/to-string":256}],303:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/string-multibyte").charAt,fe=oe("../internals/to-string"),be=oe("../internals/internal-state"),Pe=oe("../internals/define-iterator"),ye="String Iterator",we=be.set,me=be.getterFor(ye);Pe(String,"String",function(Se){we(this,{type:ye,string:fe(Se),index:0})},function(){var de=me(this),z=de.string,ee=de.index,ae;return ee>=z.length?{value:void 0,done:!0}:(ae=ve(z,ee),de.index+=ae.length,{value:ae,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/function-call"),fe=oe("../internals/fix-regexp-well-known-symbol-logic"),be=oe("../internals/an-object"),Pe=oe("../internals/to-length"),ye=oe("../internals/to-string"),we=oe("../internals/require-object-coercible"),me=oe("../internals/get-method"),Se=oe("../internals/advance-string-index"),de=oe("../internals/regexp-exec-abstract");fe("match",function(z,ee,ae){return[function(le){var ue=we(this),pe=le==null?void 0:me(le,z);return pe?ve(pe,le,ue):new RegExp(le)[z](ye(ue))},function(re){var le=be(this),ue=ye(re),pe=ae(ee,le,ue);if(pe.done)return pe.value;if(!le.global)return de(le,ue);var Ee=le.unicode;le.lastIndex=0;for(var Ce=[],je=0,Le;(Le=de(le,ue))!==null;){var ke=ye(Le[0]);Ce[je]=ke,ke===""&&(le.lastIndex=Se(ue,Pe(le.lastIndex),Ee)),je++}return je===0?null:Ce}]})},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-length":249,"../internals/to-string":256}],305:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/function-apply"),fe=oe("../internals/function-call"),be=oe("../internals/function-uncurry-this"),Pe=oe("../internals/fix-regexp-well-known-symbol-logic"),ye=oe("../internals/fails"),we=oe("../internals/an-object"),me=oe("../internals/is-callable"),Se=oe("../internals/to-integer-or-infinity"),de=oe("../internals/to-length"),z=oe("../internals/to-string"),ee=oe("../internals/require-object-coercible"),ae=oe("../internals/advance-string-index"),re=oe("../internals/get-method"),le=oe("../internals/get-substitution"),ue=oe("../internals/regexp-exec-abstract"),pe=oe("../internals/well-known-symbol"),Ee=pe("replace"),Ce=Math.max,je=Math.min,Le=be([].concat),ke=be([].push),Oe=be("".indexOf),Fe=be("".slice),Re=function(ot){return ot===void 0?ot:String(ot)},Ze=function(){return"a".replace(/./,"$0")==="$0"}(),ze=function(){return/./[Ee]?/./[Ee]("a","$0")==="":!1}(),Ke=!ye(function(){var ot=/./;return ot.exec=function(){var ct=[];return ct.groups={a:"7"},ct},"".replace(ot,"$<a>")!=="7"});Pe("replace",function(ot,ct,pt){var bt=ze?"$":"$0";return[function(at,gt){var Ct=ee(this),wt=at==null?void 0:re(at,Ee);return wt?fe(wt,at,Ct,gt):fe(ct,z(Ct),at,gt)},function(qe,at){var gt=we(this),Ct=z(qe);if(typeof at=="string"&&Oe(at,bt)===-1&&Oe(at,"$<")===-1){var wt=pt(ct,gt,Ct,at);if(wt.done)return wt.value}var vt=me(at);vt||(at=z(at));var mt=gt.global;if(mt){var xt=gt.unicode;gt.lastIndex=0}for(var At=[];;){var kt=ue(gt,Ct);if(kt===null||(ke(At,kt),!mt))break;var Wt=z(kt[0]);Wt===""&&(gt.lastIndex=ae(Ct,de(gt.lastIndex),xt))}for(var Et="",St=0,tt=0;tt<At.length;tt++){kt=At[tt];for(var ft=z(kt[0]),$e=Ce(je(Se(kt.index),Ct.length),0),lt=[],Pt=1;Pt<kt.length;Pt++)ke(lt,Re(kt[Pt]));var dt=kt.groups;if(vt){var et=Le([ft],lt,$e,Ct);dt!==void 0&&ke(et,dt);var Ve=z(ve(at,void 0,et))}else Ve=le(ft,Ct,$e,lt,dt,at);$e>=St&&(Et+=Fe(Ct,St,$e)+Ve,St=$e+ft.length)}return Et+Fe(Ct,St)}]},!Ke||!Ze||ze)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/get-substitution":162,"../internals/is-callable":176,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-length":249,"../internals/to-string":256,"../internals/well-known-symbol":268}],306:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/function-call"),fe=oe("../internals/fix-regexp-well-known-symbol-logic"),be=oe("../internals/an-object"),Pe=oe("../internals/require-object-coercible"),ye=oe("../internals/same-value"),we=oe("../internals/to-string"),me=oe("../internals/get-method"),Se=oe("../internals/regexp-exec-abstract");fe("search",function(de,z,ee){return[function(re){var le=Pe(this),ue=re==null?void 0:me(re,de);return ue?ve(ue,re,le):new RegExp(re)[de](we(le))},function(ae){var re=be(this),le=we(ae),ue=ee(z,re,le);if(ue.done)return ue.value;var pe=re.lastIndex;ye(pe,0)||(re.lastIndex=0);var Ee=Se(re,le);return ye(re.lastIndex,pe)||(re.lastIndex=pe),Ee===null?-1:Ee.index}]})},{"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/same-value":231,"../internals/to-string":256}],307:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/function-apply"),fe=oe("../internals/function-call"),be=oe("../internals/function-uncurry-this"),Pe=oe("../internals/fix-regexp-well-known-symbol-logic"),ye=oe("../internals/is-regexp"),we=oe("../internals/an-object"),me=oe("../internals/require-object-coercible"),Se=oe("../internals/species-constructor"),de=oe("../internals/advance-string-index"),z=oe("../internals/to-length"),ee=oe("../internals/to-string"),ae=oe("../internals/get-method"),re=oe("../internals/array-slice-simple"),le=oe("../internals/regexp-exec-abstract"),ue=oe("../internals/regexp-exec"),pe=oe("../internals/regexp-sticky-helpers"),Ee=oe("../internals/fails"),Ce=pe.UNSUPPORTED_Y,je=4294967295,Le=Math.min,ke=[].push,Oe=be(/./.exec),Fe=be(ke),Re=be("".slice),Ze=!Ee(function(){var ze=/(?:)/,Ke=ze.exec;ze.exec=function(){return Ke.apply(this,arguments)};var ot="ab".split(ze);return ot.length!==2||ot[0]!=="a"||ot[1]!=="b"});Pe("split",function(ze,Ke,ot){var ct;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?ct=function(pt,bt){var qe=ee(me(this)),at=bt===void 0?je:bt>>>0;if(at===0)return[];if(pt===void 0)return[qe];if(!ye(pt))return fe(Ke,qe,pt,at);for(var gt=[],Ct=(pt.ignoreCase?"i":"")+(pt.multiline?"m":"")+(pt.unicode?"u":"")+(pt.sticky?"y":""),wt=0,vt=new RegExp(pt.source,Ct+"g"),mt,xt,At;(mt=fe(ue,vt,qe))&&(xt=vt.lastIndex,!(xt>wt&&(Fe(gt,Re(qe,wt,mt.index)),mt.length>1&&mt.index<qe.length&&ve(ke,gt,re(mt,1)),At=mt[0].length,wt=xt,gt.length>=at)));)vt.lastIndex===mt.index&&vt.lastIndex++;return wt===qe.length?(At||!Oe(vt,""))&&Fe(gt,""):Fe(gt,Re(qe,wt)),gt.length>at?re(gt,0,at):gt}:"0".split(void 0,0).length?ct=function(pt,bt){return pt===void 0&&bt===0?[]:fe(Ke,this,pt,bt)}:ct=Ke,[function(bt,qe){var at=me(this),gt=bt==null?void 0:ae(bt,ze);return gt?fe(gt,bt,at,qe):fe(ct,ee(at),bt,qe)},function(pt,bt){var qe=we(this),at=ee(pt),gt=ot(ct,qe,at,bt,ct!==Ke);if(gt.done)return gt.value;var Ct=Se(qe,RegExp),wt=qe.unicode,vt=(qe.ignoreCase?"i":"")+(qe.multiline?"m":"")+(qe.unicode?"u":"")+(Ce?"g":"y"),mt=new Ct(Ce?"^(?:"+qe.source+")":qe,vt),xt=bt===void 0?je:bt>>>0;if(xt===0)return[];if(at.length===0)return le(mt,at)===null?[at]:[];for(var At=0,kt=0,Wt=[];kt<at.length;){mt.lastIndex=Ce?0:kt;var Et=le(mt,Ce?Re(at,kt):at),St;if(Et===null||(St=Le(z(mt.lastIndex+(Ce?kt:0)),at.length))===At)kt=de(at,kt,wt);else{if(Fe(Wt,Re(at,At,kt)),Wt.length===xt)return Wt;for(var tt=1;tt<=Et.length-1;tt++)if(Fe(Wt,Et[tt]),Wt.length===xt)return Wt;kt=At=St}}return Fe(Wt,Re(at,At)),Wt}]},!Ze,Ce)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/array-slice-simple":116,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/is-regexp":182,"../internals/regexp-exec":224,"../internals/regexp-exec-abstract":223,"../internals/regexp-sticky-helpers":227,"../internals/require-object-coercible":230,"../internals/species-constructor":238,"../internals/to-length":249,"../internals/to-string":256}],308:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/string-trim").trim,be=oe("../internals/string-trim-forced");ve({target:"String",proto:!0,forced:be("trim")},{trim:function(){return fe(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/global"),be=oe("../internals/function-call"),Pe=oe("../internals/function-uncurry-this"),ye=oe("../internals/is-pure"),we=oe("../internals/descriptors"),me=oe("../internals/native-symbol"),Se=oe("../internals/fails"),de=oe("../internals/has-own-property"),z=oe("../internals/object-is-prototype-of"),ee=oe("../internals/an-object"),ae=oe("../internals/to-indexed-object"),re=oe("../internals/to-property-key"),le=oe("../internals/to-string"),ue=oe("../internals/create-property-descriptor"),pe=oe("../internals/object-create"),Ee=oe("../internals/object-keys"),Ce=oe("../internals/object-get-own-property-names"),je=oe("../internals/object-get-own-property-names-external"),Le=oe("../internals/object-get-own-property-symbols"),ke=oe("../internals/object-get-own-property-descriptor"),Oe=oe("../internals/object-define-property"),Fe=oe("../internals/object-define-properties"),Re=oe("../internals/object-property-is-enumerable"),Ze=oe("../internals/redefine"),ze=oe("../internals/shared"),Ke=oe("../internals/shared-key"),ot=oe("../internals/hidden-keys"),ct=oe("../internals/uid"),pt=oe("../internals/well-known-symbol"),bt=oe("../internals/well-known-symbol-wrapped"),qe=oe("../internals/define-well-known-symbol"),at=oe("../internals/symbol-define-to-primitive"),gt=oe("../internals/set-to-string-tag"),Ct=oe("../internals/internal-state"),wt=oe("../internals/array-iteration").forEach,vt=Ke("hidden"),mt="Symbol",xt="prototype",At=Ct.set,kt=Ct.getterFor(mt),Wt=Object[xt],Et=fe.Symbol,St=Et&&Et[xt],tt=fe.TypeError,ft=fe.QObject,$e=ke.f,lt=Oe.f,Pt=je.f,dt=Re.f,et=Pe([].push),Ve=ze("symbols"),He=ze("op-symbols"),nt=ze("wks"),ut=!ft||!ft[xt]||!ft[xt].findChild,We=we&&Se(function(){return pe(lt({},"a",{get:function(){return lt(this,"a",{value:7}).a}})).a!=7})?function(It,Ut,tn){var ln=$e(Wt,Ut);ln&&delete Wt[Ut],lt(It,Ut,tn),ln&&It!==Wt&<(Wt,Ut,ln)}:lt,De=function(It,Ut){var tn=Ve[It]=pe(St);return At(tn,{type:mt,tag:It,description:Ut}),we||(tn.description=Ut),tn},Ie=function(Ut,tn,ln){Ut===Wt&&Ie(He,tn,ln),ee(Ut);var mn=re(tn);return ee(ln),de(Ve,mn)?(ln.enumerable?(de(Ut,vt)&&Ut[vt][mn]&&(Ut[vt][mn]=!1),ln=pe(ln,{enumerable:ue(0,!1)})):(de(Ut,vt)||lt(Ut,vt,ue(1,{})),Ut[vt][mn]=!0),We(Ut,mn,ln)):lt(Ut,mn,ln)},Xe=function(Ut,tn){ee(Ut);var ln=ae(tn),mn=Ee(ln).concat(en(ln));return wt(mn,function(jn){(!we||be(Ye,ln,jn))&&Ie(Ut,jn,ln[jn])}),Ut},yt=function(Ut,tn){return tn===void 0?pe(Ut):Xe(pe(Ut),tn)},Ye=function(Ut){var tn=re(Ut),ln=be(dt,this,tn);return this===Wt&&de(Ve,tn)&&!de(He,tn)?!1:ln||!de(this,tn)||!de(Ve,tn)||de(this,vt)&&this[vt][tn]?ln:!0},jt=function(Ut,tn){var ln=ae(Ut),mn=re(tn);if(!(ln===Wt&&de(Ve,mn)&&!de(He,mn))){var jn=$e(ln,mn);return jn&&de(Ve,mn)&&!(de(ln,vt)&&ln[vt][mn])&&(jn.enumerable=!0),jn}},Ht=function(Ut){var tn=Pt(ae(Ut)),ln=[];return wt(tn,function(mn){!de(Ve,mn)&&!de(ot,mn)&&et(ln,mn)}),ln},en=function(It){var Ut=It===Wt,tn=Pt(Ut?He:ae(It)),ln=[];return wt(tn,function(mn){de(Ve,mn)&&(!Ut||de(Wt,mn))&&et(ln,Ve[mn])}),ln};me||(Et=function(){if(z(St,this))throw tt("Symbol is not a constructor");var Ut=!arguments.length||arguments[0]===void 0?void 0:le(arguments[0]),tn=ct(Ut),ln=function(mn){this===Wt&&be(ln,He,mn),de(this,vt)&&de(this[vt],tn)&&(this[vt][tn]=!1),We(this,tn,ue(1,mn))};return we&&ut&&We(Wt,tn,{configurable:!0,set:ln}),De(tn,Ut)},St=Et[xt],Ze(St,"toString",function(){return kt(this).tag}),Ze(Et,"withoutSetter",function(It){return De(ct(It),It)}),Re.f=Ye,Oe.f=Ie,Fe.f=Xe,ke.f=jt,Ce.f=je.f=Ht,Le.f=en,bt.f=function(It){return De(pt(It),It)},we&&(lt(St,"description",{configurable:!0,get:function(){return kt(this).description}}),ye||Ze(Wt,"propertyIsEnumerable",Ye,{unsafe:!0}))),ve({global:!0,wrap:!0,forced:!me,sham:!me},{Symbol:Et}),wt(Ee(nt),function(It){qe(It)}),ve({target:mt,stat:!0,forced:!me},{useSetter:function(){ut=!0},useSimple:function(){ut=!1}}),ve({target:"Object",stat:!0,forced:!me,sham:!we},{create:yt,defineProperty:Ie,defineProperties:Xe,getOwnPropertyDescriptor:jt}),ve({target:"Object",stat:!0,forced:!me},{getOwnPropertyNames:Ht}),at(),gt(Et,mt),ot[vt]=!0},{"../internals/an-object":101,"../internals/array-iteration":111,"../internals/create-property-descriptor":130,"../internals/define-well-known-symbol":133,"../internals/descriptors":134,"../internals/export":149,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/native-symbol":191,"../internals/object-create":196,"../internals/object-define-properties":197,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-names-external":200,"../internals/object-get-own-property-symbols":202,"../internals/object-is-prototype-of":204,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/shared":237,"../internals/shared-key":235,"../internals/symbol-define-to-primitive":242,"../internals/to-indexed-object":247,"../internals/to-property-key":254,"../internals/to-string":256,"../internals/uid":263,"../internals/well-known-symbol":268,"../internals/well-known-symbol-wrapped":267}],310:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/descriptors"),be=oe("../internals/global"),Pe=oe("../internals/function-uncurry-this"),ye=oe("../internals/has-own-property"),we=oe("../internals/is-callable"),me=oe("../internals/object-is-prototype-of"),Se=oe("../internals/to-string"),de=oe("../internals/object-define-property").f,z=oe("../internals/copy-constructor-properties"),ee=be.Symbol,ae=ee&&ee.prototype;if(fe&&we(ee)&&(!("description"in ae)||ee().description!==void 0)){var re={},le=function(){var Oe=arguments.length<1||arguments[0]===void 0?void 0:Se(arguments[0]),Fe=me(ae,this)?new ee(Oe):Oe===void 0?ee():ee(Oe);return Oe===""&&(re[Fe]=!0),Fe};z(le,ee),le.prototype=ae,ae.constructor=le;var ue=String(ee("test"))=="Symbol(test)",pe=Pe(ae.toString),Ee=Pe(ae.valueOf),Ce=/^Symbol\((.*)\)[^)]+$/,je=Pe("".replace),Le=Pe("".slice);de(ae,"description",{configurable:!0,get:function(){var Oe=Ee(this),Fe=pe(Oe);if(ye(re,Oe))return"";var Re=ue?Le(Fe,7,-1):je(Fe,Ce,"$1");return Re===""?void 0:Re}}),ve({global:!0,forced:!0},{Symbol:le})}},{"../internals/copy-constructor-properties":125,"../internals/descriptors":134,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/object-define-property":198,"../internals/object-is-prototype-of":204,"../internals/to-string":256}],311:[function(oe,_e,Ne){var ve=oe("../internals/export"),fe=oe("../internals/get-built-in"),be=oe("../internals/has-own-property"),Pe=oe("../internals/to-string"),ye=oe("../internals/shared"),we=oe("../internals/native-symbol-registry"),me=ye("string-to-symbol-registry"),Se=ye("symbol-to-string-registry");ve({target:"Symbol",stat:!0,forced:!we},{for:function(de){var z=Pe(de);if(be(me,z))return me[z];var ee=fe("Symbol")(z);return me[z]=ee,Se[ee]=z,ee}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/has-own-property":164,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/to-string":256}],312:[function(oe,_e,Ne){var ve=oe("../internals/define-well-known-symbol");ve("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(oe,_e,Ne){oe("../modules/es.symbol.constructor"),oe("../modules/es.symbol.for"),oe("../modules/es.symbol.key-for"),oe("../modules/es.json.stringify"),oe("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":285,"../modules/es.object.get-own-property-symbols":289,"../modules/es.symbol.constructor":309,"../modules/es.symbol.for":311,"../modules/es.symbol.key-for":314}],314:[function(oe,_e,Ne){var ve=oe("../internals/export"),fe=oe("../internals/has-own-property"),be=oe("../internals/is-symbol"),Pe=oe("../internals/try-to-string"),ye=oe("../internals/shared"),we=oe("../internals/native-symbol-registry"),me=ye("symbol-to-string-registry");ve({target:"Symbol",stat:!0,forced:!we},{keyFor:function(de){if(!be(de))throw TypeError(Pe(de)+" is not a symbol");if(fe(me,de))return me[de]}})},{"../internals/export":149,"../internals/has-own-property":164,"../internals/is-symbol":183,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/try-to-string":257}],315:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/function-uncurry-this"),fe=oe("../internals/array-buffer-view-core"),be=oe("../internals/array-copy-within"),Pe=ve(be),ye=fe.aTypedArray,we=fe.exportTypedArrayMethod;we("copyWithin",function(Se,de){return Pe(ye(this),Se,de,arguments.length>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-copy-within":105,"../internals/function-uncurry-this":157}],316:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-iteration").every,be=ve.aTypedArray,Pe=ve.exportTypedArrayMethod;Pe("every",function(we){return fe(be(this),we,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/function-call"),be=oe("../internals/array-fill"),Pe=ve.aTypedArray,ye=ve.exportTypedArrayMethod;ye("fill",function(me){var Se=arguments.length;return fe(be,Pe(this),me,Se>1?arguments[1]:void 0,Se>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-iteration").filter,be=oe("../internals/typed-array-from-species-and-list"),Pe=ve.aTypedArray,ye=ve.exportTypedArrayMethod;ye("filter",function(me){var Se=fe(Pe(this),me,arguments.length>1?arguments[1]:void 0);return be(this,Se)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-iteration").findIndex,be=ve.aTypedArray,Pe=ve.exportTypedArrayMethod;Pe("findIndex",function(we){return fe(be(this),we,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-iteration").find,be=ve.aTypedArray,Pe=ve.exportTypedArrayMethod;Pe("find",function(we){return fe(be(this),we,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-iteration").forEach,be=ve.aTypedArray,Pe=ve.exportTypedArrayMethod;Pe("forEach",function(we){fe(be(this),we,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-includes").includes,be=ve.aTypedArray,Pe=ve.exportTypedArrayMethod;Pe("includes",function(we){return fe(be(this),we,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-includes").indexOf,be=ve.aTypedArray,Pe=ve.exportTypedArrayMethod;Pe("indexOf",function(we){return fe(be(this),we,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/global"),fe=oe("../internals/fails"),be=oe("../internals/function-uncurry-this"),Pe=oe("../internals/array-buffer-view-core"),ye=oe("../modules/es.array.iterator"),we=oe("../internals/well-known-symbol"),me=we("iterator"),Se=ve.Uint8Array,de=be(ye.values),z=be(ye.keys),ee=be(ye.entries),ae=Pe.aTypedArray,re=Pe.exportTypedArrayMethod,le=Se&&Se.prototype,ue=!fe(function(){le[me].call([1])}),pe=!!le&&le.values&&le[me]===le.values&&le.values.name==="values",Ee=function(){return de(ae(this))};re("entries",function(){return ee(ae(this))},ue),re("keys",function(){return z(ae(this))},ue),re("values",Ee,ue||!pe,{name:"values"}),re(me,Ee,ue||!pe,{name:"values"})},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],325:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/function-uncurry-this"),be=ve.aTypedArray,Pe=ve.exportTypedArrayMethod,ye=fe([].join);Pe("join",function(me){return ye(be(this),me)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/function-apply"),be=oe("../internals/array-last-index-of"),Pe=ve.aTypedArray,ye=ve.exportTypedArrayMethod;ye("lastIndexOf",function(me){var Se=arguments.length;return fe(be,Pe(this),Se>1?[me,arguments[1]]:[me])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-iteration").map,be=oe("../internals/typed-array-species-constructor"),Pe=ve.aTypedArray,ye=ve.exportTypedArrayMethod;ye("map",function(me){return fe(Pe(this),me,arguments.length>1?arguments[1]:void 0,function(Se,de){return new(be(Se))(de)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-reduce").right,be=ve.aTypedArray,Pe=ve.exportTypedArrayMethod;Pe("reduceRight",function(we){var me=arguments.length;return fe(be(this),we,me,me>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-reduce").left,be=ve.aTypedArray,Pe=ve.exportTypedArrayMethod;Pe("reduce",function(we){var me=arguments.length;return fe(be(this),we,me,me>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=ve.aTypedArray,be=ve.exportTypedArrayMethod,Pe=Math.floor;be("reverse",function(){for(var we=this,me=fe(we).length,Se=Pe(me/2),de=0,z;de<Se;)z=we[de],we[de++]=we[--me],we[me]=z;return we})},{"../internals/array-buffer-view-core":103}],331:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/global"),fe=oe("../internals/function-call"),be=oe("../internals/array-buffer-view-core"),Pe=oe("../internals/length-of-array-like"),ye=oe("../internals/to-offset"),we=oe("../internals/to-object"),me=oe("../internals/fails"),Se=ve.RangeError,de=ve.Int8Array,z=de&&de.prototype,ee=z&&z.set,ae=be.aTypedArray,re=be.exportTypedArrayMethod,le=!me(function(){var pe=new Uint8ClampedArray(2);return fe(ee,pe,{length:1,0:3},1),pe[1]!==3}),ue=le&&be.NATIVE_ARRAY_BUFFER_VIEWS&&me(function(){var pe=new de(2);return pe.set(1),pe.set("2",1),pe[0]!==0||pe[1]!==2});re("set",function(Ee){ae(this);var Ce=ye(arguments.length>1?arguments[1]:void 0,1),je=we(Ee);if(le)return fe(ee,this,je,Ce);var Le=this.length,ke=Pe(je),Oe=0;if(ke+Ce>Le)throw Se("Wrong length");for(;Oe<ke;)this[Ce+Oe]=je[Oe++]},!le||ue)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-call":155,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-offset":251}],332:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/typed-array-species-constructor"),be=oe("../internals/fails"),Pe=oe("../internals/array-slice"),ye=ve.aTypedArray,we=ve.exportTypedArrayMethod,me=be(function(){new Int8Array(1).slice()});we("slice",function(de,z){for(var ee=Pe(ye(this),de,z),ae=fe(this),re=0,le=ee.length,ue=new ae(le);le>re;)ue[re]=ee[re++];return ue},me)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-iteration").some,be=ve.aTypedArray,Pe=ve.exportTypedArrayMethod;Pe("some",function(we){return fe(be(this),we,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/global"),fe=oe("../internals/function-uncurry-this"),be=oe("../internals/fails"),Pe=oe("../internals/a-callable"),ye=oe("../internals/array-sort"),we=oe("../internals/array-buffer-view-core"),me=oe("../internals/engine-ff-version"),Se=oe("../internals/engine-is-ie-or-edge"),de=oe("../internals/engine-v8-version"),z=oe("../internals/engine-webkit-version"),ee=we.aTypedArray,ae=we.exportTypedArrayMethod,re=ve.Uint16Array,le=re&&fe(re.prototype.sort),ue=!!le&&!(be(function(){le(new re(2),null)})&&be(function(){le(new re(2),{})})),pe=!!le&&!be(function(){if(de)return de<74;if(me)return me<67;if(Se)return!0;if(z)return z<602;var Ce=new re(516),je=Array(516),Le,ke;for(Le=0;Le<516;Le++)ke=Le%4,Ce[Le]=515-Le,je[Le]=Le-2*ke+3;for(le(Ce,function(Oe,Fe){return(Oe/4|0)-(Fe/4|0)}),Le=0;Le<516;Le++)if(Ce[Le]!==je[Le])return!0}),Ee=function(Ce){return function(je,Le){return Ce!==void 0?+Ce(je,Le)||0:Le!==Le?-1:je!==je?1:je===0&&Le===0?1/je>0&&1/Le<0?1:-1:je>Le}};ae("sort",function(je){return je!==void 0&&Pe(je),pe?le(this,je):ye(ee(this),Ee(je))},!pe||ue)},{"../internals/a-callable":95,"../internals/array-buffer-view-core":103,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],335:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/to-length"),be=oe("../internals/to-absolute-index"),Pe=oe("../internals/typed-array-species-constructor"),ye=ve.aTypedArray,we=ve.exportTypedArrayMethod;we("subarray",function(Se,de){var z=ye(this),ee=z.length,ae=be(Se,ee),re=Pe(z);return new re(z.buffer,z.byteOffset+ae*z.BYTES_PER_ELEMENT,fe((de===void 0?ee:be(de,ee))-ae))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/global"),fe=oe("../internals/function-apply"),be=oe("../internals/array-buffer-view-core"),Pe=oe("../internals/fails"),ye=oe("../internals/array-slice"),we=ve.Int8Array,me=be.aTypedArray,Se=be.exportTypedArrayMethod,de=[].toLocaleString,z=!!we&&Pe(function(){de.call(new we(1))}),ee=Pe(function(){return[1,2].toLocaleString()!=new we([1,2]).toLocaleString()})||!Pe(function(){we.prototype.toLocaleString.call([1,2])});Se("toLocaleString",function(){return fe(de,z?ye(me(this)):me(this),ye(arguments))},ee)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/function-apply":152,"../internals/global":163}],337:[function(oe,_e,Ne){"use strict";var ve=oe("../internals/array-buffer-view-core").exportTypedArrayMethod,fe=oe("../internals/fails"),be=oe("../internals/global"),Pe=oe("../internals/function-uncurry-this"),ye=be.Uint8Array,we=ye&&ye.prototype||{},me=[].toString,Se=Pe([].join);fe(function(){me.call({})})&&(me=function(){return Se(this)});var de=we.toString!=me;ve("toString",me,de)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(oe,_e,Ne){var ve=oe("../internals/typed-array-constructor");ve("Uint8",function(fe){return function(Pe,ye,we){return fe(this,Pe,ye,we)}})},{"../internals/typed-array-constructor":258}],339:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/dom-iterables"),be=oe("../internals/dom-token-list-prototype"),Pe=oe("../internals/array-for-each"),ye=oe("../internals/create-non-enumerable-property"),we=function(Se){if(Se&&Se.forEach!==Pe)try{ye(Se,"forEach",Pe)}catch(de){Se.forEach=Pe}};for(var me in fe)fe[me]&&we(ve[me]&&ve[me].prototype);we(be)},{"../internals/array-for-each":107,"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163}],340:[function(oe,_e,Ne){var ve=oe("../internals/global"),fe=oe("../internals/dom-iterables"),be=oe("../internals/dom-token-list-prototype"),Pe=oe("../modules/es.array.iterator"),ye=oe("../internals/create-non-enumerable-property"),we=oe("../internals/well-known-symbol"),me=we("iterator"),Se=we("toStringTag"),de=Pe.values,z=function(ae,re){if(ae){if(ae[me]!==de)try{ye(ae,me,de)}catch(ue){ae[me]=de}if(ae[Se]||ye(ae,Se,re),fe[re]){for(var le in Pe)if(ae[le]!==Pe[le])try{ye(ae,le,Pe[le])}catch(ue){ae[le]=Pe[le]}}}};for(var ee in fe)z(ve[ee]&&ve[ee].prototype,ee);z(be,"DOMTokenList")},{"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],341:[function(oe,_e,Ne){function ve(pe){return Array.isArray?Array.isArray(pe):ue(pe)==="[object Array]"}Ne.isArray=ve;function fe(pe){return typeof pe=="boolean"}Ne.isBoolean=fe;function be(pe){return pe===null}Ne.isNull=be;function Pe(pe){return pe==null}Ne.isNullOrUndefined=Pe;function ye(pe){return typeof pe=="number"}Ne.isNumber=ye;function we(pe){return typeof pe=="string"}Ne.isString=we;function me(pe){return typeof pe=="symbol"}Ne.isSymbol=me;function Se(pe){return pe===void 0}Ne.isUndefined=Se;function de(pe){return ue(pe)==="[object RegExp]"}Ne.isRegExp=de;function z(pe){return typeof pe=="object"&&pe!==null}Ne.isObject=z;function ee(pe){return ue(pe)==="[object Date]"}Ne.isDate=ee;function ae(pe){return ue(pe)==="[object Error]"||pe instanceof Error}Ne.isError=ae;function re(pe){return typeof pe=="function"}Ne.isFunction=re;function le(pe){return pe===null||typeof pe=="boolean"||typeof pe=="number"||typeof pe=="string"||typeof pe=="symbol"||typeof pe=="undefined"}Ne.isPrimitive=le,Ne.isBuffer=oe("buffer").Buffer.isBuffer;function ue(pe){return Object.prototype.toString.call(pe)}},{buffer:90}],342:[function(oe,_e,Ne){(function(ve){"use strict";var fe=function(){var me=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,Se=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,de=/[^-+\dA-Z]/g;return function(z,ee,ae,re){if(arguments.length===1&&we(z)==="string"&&!/\d/.test(z)&&(ee=z,z=void 0),z=z||new Date,z instanceof Date||(z=new Date(z)),isNaN(z))throw TypeError("Invalid date");ee=String(fe.masks[ee]||ee||fe.masks.default);var le=ee.slice(0,4);(le==="UTC:"||le==="GMT:")&&(ee=ee.slice(4),ae=!0,le==="GMT:"&&(re=!0));var ue=ae?"getUTC":"get",pe=z[ue+"Date"](),Ee=z[ue+"Day"](),Ce=z[ue+"Month"](),je=z[ue+"FullYear"](),Le=z[ue+"Hours"](),ke=z[ue+"Minutes"](),Oe=z[ue+"Seconds"](),Fe=z[ue+"Milliseconds"](),Re=ae?0:z.getTimezoneOffset(),Ze=Pe(z),ze=ye(z),Ke={d:pe,dd:be(pe),ddd:fe.i18n.dayNames[Ee],dddd:fe.i18n.dayNames[Ee+7],m:Ce+1,mm:be(Ce+1),mmm:fe.i18n.monthNames[Ce],mmmm:fe.i18n.monthNames[Ce+12],yy:String(je).slice(2),yyyy:je,h:Le%12||12,hh:be(Le%12||12),H:Le,HH:be(Le),M:ke,MM:be(ke),s:Oe,ss:be(Oe),l:be(Fe,3),L:be(Math.round(Fe/10)),t:Le<12?"a":"p",tt:Le<12?"am":"pm",T:Le<12?"A":"P",TT:Le<12?"AM":"PM",Z:re?"GMT":ae?"UTC":(String(z).match(Se)||[""]).pop().replace(de,""),o:(Re>0?"-":"+")+be(Math.floor(Math.abs(Re)/60)*100+Math.abs(Re)%60,4),S:["th","st","nd","rd"][pe%10>3?0:(pe%100-pe%10!=10)*pe%10],W:Ze,N:ze};return ee.replace(me,function(ot){return ot in Ke?Ke[ot]:ot.slice(1,ot.length-1)})}}();fe.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},fe.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function be(me,Se){for(me=String(me),Se=Se||2;me.length<Se;)me="0"+me;return me}function Pe(me){var Se=new Date(me.getFullYear(),me.getMonth(),me.getDate());Se.setDate(Se.getDate()-(Se.getDay()+6)%7+3);var de=new Date(Se.getFullYear(),0,4);de.setDate(de.getDate()-(de.getDay()+6)%7+3);var z=Se.getTimezoneOffset()-de.getTimezoneOffset();Se.setHours(Se.getHours()-z);var ee=(Se-de)/(864e5*7);return 1+Math.floor(ee)}function ye(me){var Se=me.getDay();return Se===0&&(Se=7),Se}function we(me){return me===null?"null":me===void 0?"undefined":typeof me!="object"?typeof me:Array.isArray(me)?"array":{}.toString.call(me).slice(8,-1).toLowerCase()}typeof Ge=="function"&&Ge.amd?Ge(function(){return fe}):typeof Ne=="object"?_e.exports=fe:ve.dateFormat=fe})(this)},{}],343:[function(oe,_e,Ne){"use strict";var ve=/["'&<>]/;_e.exports=fe;function fe(be){var Pe=""+be,ye=ve.exec(Pe);if(!ye)return Pe;var we,me="",Se=0,de=0;for(Se=ye.index;Se<Pe.length;Se++){switch(Pe.charCodeAt(Se)){case 34:we=""";break;case 38:we="&";break;case 39:we="'";break;case 60:we="<";break;case 62:we=">";break;default:continue}de!==Se&&(me+=Pe.substring(de,Se)),de=Se+1,me+=we}return de!==Se?me+Pe.substring(de,Se):me}},{}],344:[function(oe,_e,Ne){"use strict";var ve=typeof Reflect=="object"?Reflect:null,fe=ve&&typeof ve.apply=="function"?ve.apply:function(Oe,Fe,Re){return Function.prototype.apply.call(Oe,Fe,Re)},be;ve&&typeof ve.ownKeys=="function"?be=ve.ownKeys:Object.getOwnPropertySymbols?be=function(Oe){return Object.getOwnPropertyNames(Oe).concat(Object.getOwnPropertySymbols(Oe))}:be=function(Oe){return Object.getOwnPropertyNames(Oe)};function Pe(ke){console&&console.warn&&console.warn(ke)}var ye=Number.isNaN||function(Oe){return Oe!==Oe};function we(){we.init.call(this)}_e.exports=we,_e.exports.once=Ce,we.EventEmitter=we,we.prototype._events=void 0,we.prototype._eventsCount=0,we.prototype._maxListeners=void 0;var me=10;function Se(ke){if(typeof ke!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ke)}Object.defineProperty(we,"defaultMaxListeners",{enumerable:!0,get:function(){return me},set:function(ke){if(typeof ke!="number"||ke<0||ye(ke))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+ke+".");me=ke}}),we.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},we.prototype.setMaxListeners=function(Oe){if(typeof Oe!="number"||Oe<0||ye(Oe))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Oe+".");return this._maxListeners=Oe,this};function de(ke){return ke._maxListeners===void 0?we.defaultMaxListeners:ke._maxListeners}we.prototype.getMaxListeners=function(){return de(this)},we.prototype.emit=function(Oe){for(var Fe=[],Re=1;Re<arguments.length;Re++)Fe.push(arguments[Re]);var Ze=Oe==="error",ze=this._events;if(ze!==void 0)Ze=Ze&&ze.error===void 0;else if(!Ze)return!1;if(Ze){var Ke;if(Fe.length>0&&(Ke=Fe[0]),Ke instanceof Error)throw Ke;var ot=new Error("Unhandled error."+(Ke?" ("+Ke.message+")":""));throw ot.context=Ke,ot}var ct=ze[Oe];if(ct===void 0)return!1;if(typeof ct=="function")fe(ct,this,Fe);else for(var pt=ct.length,bt=ue(ct,pt),Re=0;Re<pt;++Re)fe(bt[Re],this,Fe);return!0};function z(ke,Oe,Fe,Re){var Ze,ze,Ke;if(Se(Fe),ze=ke._events,ze===void 0?(ze=ke._events=Object.create(null),ke._eventsCount=0):(ze.newListener!==void 0&&(ke.emit("newListener",Oe,Fe.listener?Fe.listener:Fe),ze=ke._events),Ke=ze[Oe]),Ke===void 0)Ke=ze[Oe]=Fe,++ke._eventsCount;else if(typeof Ke=="function"?Ke=ze[Oe]=Re?[Fe,Ke]:[Ke,Fe]:Re?Ke.unshift(Fe):Ke.push(Fe),Ze=de(ke),Ze>0&&Ke.length>Ze&&!Ke.warned){Ke.warned=!0;var ot=new Error("Possible EventEmitter memory leak detected. "+Ke.length+" "+String(Oe)+" listeners added. Use emitter.setMaxListeners() to increase limit");ot.name="MaxListenersExceededWarning",ot.emitter=ke,ot.type=Oe,ot.count=Ke.length,Pe(ot)}return ke}we.prototype.addListener=function(Oe,Fe){return z(this,Oe,Fe,!1)},we.prototype.on=we.prototype.addListener,we.prototype.prependListener=function(Oe,Fe){return z(this,Oe,Fe,!0)};function ee(){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 ae(ke,Oe,Fe){var Re={fired:!1,wrapFn:void 0,target:ke,type:Oe,listener:Fe},Ze=ee.bind(Re);return Ze.listener=Fe,Re.wrapFn=Ze,Ze}we.prototype.once=function(Oe,Fe){return Se(Fe),this.on(Oe,ae(this,Oe,Fe)),this},we.prototype.prependOnceListener=function(Oe,Fe){return Se(Fe),this.prependListener(Oe,ae(this,Oe,Fe)),this},we.prototype.removeListener=function(Oe,Fe){var Re,Ze,ze,Ke,ot;if(Se(Fe),Ze=this._events,Ze===void 0)return this;if(Re=Ze[Oe],Re===void 0)return this;if(Re===Fe||Re.listener===Fe)--this._eventsCount===0?this._events=Object.create(null):(delete Ze[Oe],Ze.removeListener&&this.emit("removeListener",Oe,Re.listener||Fe));else if(typeof Re!="function"){for(ze=-1,Ke=Re.length-1;Ke>=0;Ke--)if(Re[Ke]===Fe||Re[Ke].listener===Fe){ot=Re[Ke].listener,ze=Ke;break}if(ze<0)return this;ze===0?Re.shift():pe(Re,ze),Re.length===1&&(Ze[Oe]=Re[0]),Ze.removeListener!==void 0&&this.emit("removeListener",Oe,ot||Fe)}return this},we.prototype.off=we.prototype.removeListener,we.prototype.removeAllListeners=function(Oe){var Fe,Re,Ze;if(Re=this._events,Re===void 0)return this;if(Re.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Re[Oe]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Re[Oe]),this;if(arguments.length===0){var ze=Object.keys(Re),Ke;for(Ze=0;Ze<ze.length;++Ze)Ke=ze[Ze],Ke!=="removeListener"&&this.removeAllListeners(Ke);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Fe=Re[Oe],typeof Fe=="function")this.removeListener(Oe,Fe);else if(Fe!==void 0)for(Ze=Fe.length-1;Ze>=0;Ze--)this.removeListener(Oe,Fe[Ze]);return this};function re(ke,Oe,Fe){var Re=ke._events;if(Re===void 0)return[];var Ze=Re[Oe];return Ze===void 0?[]:typeof Ze=="function"?Fe?[Ze.listener||Ze]:[Ze]:Fe?Ee(Ze):ue(Ze,Ze.length)}we.prototype.listeners=function(Oe){return re(this,Oe,!0)},we.prototype.rawListeners=function(Oe){return re(this,Oe,!1)},we.listenerCount=function(ke,Oe){return typeof ke.listenerCount=="function"?ke.listenerCount(Oe):le.call(ke,Oe)},we.prototype.listenerCount=le;function le(ke){var Oe=this._events;if(Oe!==void 0){var Fe=Oe[ke];if(typeof Fe=="function")return 1;if(Fe!==void 0)return Fe.length}return 0}we.prototype.eventNames=function(){return this._eventsCount>0?be(this._events):[]};function ue(ke,Oe){for(var Fe=new Array(Oe),Re=0;Re<Oe;++Re)Fe[Re]=ke[Re];return Fe}function pe(ke,Oe){for(;Oe+1<ke.length;Oe++)ke[Oe]=ke[Oe+1];ke.pop()}function Ee(ke){for(var Oe=new Array(ke.length),Fe=0;Fe<Oe.length;++Fe)Oe[Fe]=ke[Fe].listener||ke[Fe];return Oe}function Ce(ke,Oe){return new Promise(function(Fe,Re){function Ze(Ke){ke.removeListener(Oe,ze),Re(Ke)}function ze(){typeof ke.removeListener=="function"&&ke.removeListener("error",Ze),Fe([].slice.call(arguments))}Le(ke,Oe,ze,{once:!0}),Oe!=="error"&&je(ke,Ze,{once:!0})})}function je(ke,Oe,Fe){typeof ke.on=="function"&&Le(ke,"error",Oe,Fe)}function Le(ke,Oe,Fe,Re){if(typeof ke.on=="function")Re.once?ke.once(Oe,Fe):ke.on(Oe,Fe);else if(typeof ke.addEventListener=="function")ke.addEventListener(Oe,function Ze(ze){Re.once&&ke.removeEventListener(Oe,Ze),Fe(ze)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof ke)}},{}],345:[function(oe,_e,Ne){"use strict";var ve=oe("is-callable"),fe=Object.prototype.toString,be=Object.prototype.hasOwnProperty,Pe=function(de,z,ee){for(var ae=0,re=de.length;ae<re;ae++)be.call(de,ae)&&(ee==null?z(de[ae],ae,de):z.call(ee,de[ae],ae,de))},ye=function(de,z,ee){for(var ae=0,re=de.length;ae<re;ae++)ee==null?z(de.charAt(ae),ae,de):z.call(ee,de.charAt(ae),ae,de)},we=function(de,z,ee){for(var ae in de)be.call(de,ae)&&(ee==null?z(de[ae],ae,de):z.call(ee,de[ae],ae,de))},me=function(de,z,ee){if(!ve(z))throw new TypeError("iterator must be a function");var ae;arguments.length>=3&&(ae=ee),fe.call(de)==="[object Array]"?Pe(de,z,ae):typeof de=="string"?ye(de,z,ae):we(de,z,ae)};_e.exports=me},{"is-callable":367}],346:[function(oe,_e,Ne){"use strict";var ve="Function.prototype.bind called on incompatible ",fe=Array.prototype.slice,be=Object.prototype.toString,Pe="[object Function]";_e.exports=function(we){var me=this;if(typeof me!="function"||be.call(me)!==Pe)throw new TypeError(ve+me);for(var Se=fe.call(arguments,1),de,z=function(){if(this instanceof de){var ue=me.apply(this,Se.concat(fe.call(arguments)));return Object(ue)===ue?ue:this}else return me.apply(we,Se.concat(fe.call(arguments)))},ee=Math.max(0,me.length-Se.length),ae=[],re=0;re<ee;re++)ae.push("$"+re);if(de=Function("binder","return function ("+ae.join(",")+"){ return binder.apply(this,arguments); }")(z),me.prototype){var le=function(){};le.prototype=me.prototype,de.prototype=new le,le.prototype=null}return de}},{}],347:[function(oe,_e,Ne){"use strict";var ve=oe("./implementation");_e.exports=Function.prototype.bind||ve},{"./implementation":346}],348:[function(oe,_e,Ne){"use strict";var ve,fe=SyntaxError,be=Function,Pe=TypeError,ye=function(ct){try{return be('"use strict"; return ('+ct+").constructor;")()}catch(pt){}},we=Object.getOwnPropertyDescriptor;if(we)try{we({},"")}catch(ct){we=null}var me=function(){throw new Pe},Se=we?function(){try{return arguments.callee,me}catch(ct){try{return we(arguments,"callee").get}catch(pt){return me}}}():me,de=oe("has-symbols")(),z=oe("has-proto")(),ee=Object.getPrototypeOf||(z?function(ct){return ct.__proto__}:null),ae={},re=typeof Uint8Array=="undefined"||!ee?ve:ee(Uint8Array),le={"%AggregateError%":typeof AggregateError=="undefined"?ve:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?ve:ArrayBuffer,"%ArrayIteratorPrototype%":de&&ee?ee([][Symbol.iterator]()):ve,"%AsyncFromSyncIteratorPrototype%":ve,"%AsyncFunction%":ae,"%AsyncGenerator%":ae,"%AsyncGeneratorFunction%":ae,"%AsyncIteratorPrototype%":ae,"%Atomics%":typeof Atomics=="undefined"?ve:Atomics,"%BigInt%":typeof BigInt=="undefined"?ve:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?ve:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?ve:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?ve:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?ve:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?ve:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?ve:FinalizationRegistry,"%Function%":be,"%GeneratorFunction%":ae,"%Int8Array%":typeof Int8Array=="undefined"?ve:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?ve:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?ve:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":de&&ee?ee(ee([][Symbol.iterator]())):ve,"%JSON%":typeof JSON=="object"?JSON:ve,"%Map%":typeof Map=="undefined"?ve:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!de||!ee?ve:ee(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?ve:Promise,"%Proxy%":typeof Proxy=="undefined"?ve:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?ve:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?ve:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!de||!ee?ve:ee(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?ve:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":de&&ee?ee(""[Symbol.iterator]()):ve,"%Symbol%":de?Symbol:ve,"%SyntaxError%":fe,"%ThrowTypeError%":Se,"%TypedArray%":re,"%TypeError%":Pe,"%Uint8Array%":typeof Uint8Array=="undefined"?ve:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?ve:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?ve:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?ve:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?ve:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?ve:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?ve:WeakSet};if(ee)try{null.error}catch(ct){var ue=ee(ee(ct));le["%Error.prototype%"]=ue}var pe=function ct(pt){var bt;if(pt==="%AsyncFunction%")bt=ye("async function () {}");else if(pt==="%GeneratorFunction%")bt=ye("function* () {}");else if(pt==="%AsyncGeneratorFunction%")bt=ye("async function* () {}");else if(pt==="%AsyncGenerator%"){var qe=ct("%AsyncGeneratorFunction%");qe&&(bt=qe.prototype)}else if(pt==="%AsyncIteratorPrototype%"){var at=ct("%AsyncGenerator%");at&&ee&&(bt=ee(at.prototype))}return le[pt]=bt,bt},Ee={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ce=oe("function-bind"),je=oe("has"),Le=Ce.call(Function.call,Array.prototype.concat),ke=Ce.call(Function.apply,Array.prototype.splice),Oe=Ce.call(Function.call,String.prototype.replace),Fe=Ce.call(Function.call,String.prototype.slice),Re=Ce.call(Function.call,RegExp.prototype.exec),Ze=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ze=/\\(\\)?/g,Ke=function(pt){var bt=Fe(pt,0,1),qe=Fe(pt,-1);if(bt==="%"&&qe!=="%")throw new fe("invalid intrinsic syntax, expected closing `%`");if(qe==="%"&&bt!=="%")throw new fe("invalid intrinsic syntax, expected opening `%`");var at=[];return Oe(pt,Ze,function(gt,Ct,wt,vt){at[at.length]=wt?Oe(vt,ze,"$1"):Ct||gt}),at},ot=function(pt,bt){var qe=pt,at;if(je(Ee,qe)&&(at=Ee[qe],qe="%"+at[0]+"%"),je(le,qe)){var gt=le[qe];if(gt===ae&&(gt=pe(qe)),typeof gt=="undefined"&&!bt)throw new Pe("intrinsic "+pt+" exists, but is not available. Please file an issue!");return{alias:at,name:qe,value:gt}}throw new fe("intrinsic "+pt+" does not exist!")};_e.exports=function(pt,bt){if(typeof pt!="string"||pt.length===0)throw new Pe("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof bt!="boolean")throw new Pe('"allowMissing" argument must be a boolean');if(Re(/^%?[^%]*%?$/,pt)===null)throw new fe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var qe=Ke(pt),at=qe.length>0?qe[0]:"",gt=ot("%"+at+"%",bt),Ct=gt.name,wt=gt.value,vt=!1,mt=gt.alias;mt&&(at=mt[0],ke(qe,Le([0,1],mt)));for(var xt=1,At=!0;xt<qe.length;xt+=1){var kt=qe[xt],Wt=Fe(kt,0,1),Et=Fe(kt,-1);if((Wt==='"'||Wt==="'"||Wt==="`"||Et==='"'||Et==="'"||Et==="`")&&Wt!==Et)throw new fe("property names with quotes must have matching quotes");if((kt==="constructor"||!At)&&(vt=!0),at+="."+kt,Ct="%"+at+"%",je(le,Ct))wt=le[Ct];else if(wt!=null){if(!(kt in wt)){if(!bt)throw new Pe("base intrinsic for "+pt+" exists, but the property is not available.");return}if(we&&xt+1>=qe.length){var St=we(wt,kt);At=!!St,At&&"get"in St&&!("originalValue"in St.get)?wt=St.get:wt=wt[kt]}else At=je(wt,kt),wt=wt[kt];At&&!vt&&(le[Ct]=wt)}}return wt}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(oe,_e,Ne){"use strict";var ve=oe("get-intrinsic"),fe=ve("%Object.getOwnPropertyDescriptor%",!0);if(fe)try{fe([],"length")}catch(be){fe=null}_e.exports=fe},{"get-intrinsic":348}],350:[function(oe,_e,Ne){"use strict";var ve={foo:{}},fe=Object;_e.exports=function(){return{__proto__:ve}.foo===ve.foo&&!({__proto__:null}instanceof fe)}},{}],351:[function(oe,_e,Ne){"use strict";var ve=typeof Symbol!="undefined"&&Symbol,fe=oe("./shams");_e.exports=function(){return typeof ve!="function"||typeof Symbol!="function"||typeof ve("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:fe()}},{"./shams":352}],352:[function(oe,_e,Ne){"use strict";_e.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var fe={},be=Symbol("test"),Pe=Object(be);if(typeof be=="string"||Object.prototype.toString.call(be)!=="[object Symbol]"||Object.prototype.toString.call(Pe)!=="[object Symbol]")return!1;var ye=42;fe[be]=ye;for(be in fe)return!1;if(typeof Object.keys=="function"&&Object.keys(fe).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(fe).length!==0)return!1;var we=Object.getOwnPropertySymbols(fe);if(we.length!==1||we[0]!==be||!Object.prototype.propertyIsEnumerable.call(fe,be))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var me=Object.getOwnPropertyDescriptor(fe,be);if(me.value!==ye||me.enumerable!==!0)return!1}return!0}},{}],353:[function(oe,_e,Ne){"use strict";var ve=oe("has-symbols/shams");_e.exports=function(){return ve()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(oe,_e,Ne){"use strict";var ve=oe("function-bind");_e.exports=ve.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(oe,_e,Ne){var ve=oe("http"),fe=oe("url"),be=_e.exports;for(var Pe in ve)ve.hasOwnProperty(Pe)&&(be[Pe]=ve[Pe]);be.request=function(we,me){return we=ye(we),ve.request.call(this,we,me)},be.get=function(we,me){return we=ye(we),ve.get.call(this,we,me)};function ye(we){if(typeof we=="string"&&(we=fe.parse(we)),we.protocol||(we.protocol="https:"),we.protocol!=="https:")throw new Error('Protocol "'+we.protocol+'" not supported. Expected "https:"');return we}},{http:468,url:472}],356:[function(oe,_e,Ne){"use strict";var ve=oe("util"),fe=oe("ms");_e.exports=function(be){if(typeof be=="number")return be;var Pe=fe(be);if(Pe===void 0){var ye=new Error(ve.format("humanize-ms(%j) result undefined",be));console.warn(ye.stack)}return Pe}},{ms:376,util:419}],357:[function(oe,_e,Ne){Ne.read=function(ve,fe,be,Pe,ye){var we,me,Se=ye*8-Pe-1,de=(1<<Se)-1,z=de>>1,ee=-7,ae=be?ye-1:0,re=be?-1:1,le=ve[fe+ae];for(ae+=re,we=le&(1<<-ee)-1,le>>=-ee,ee+=Se;ee>0;we=we*256+ve[fe+ae],ae+=re,ee-=8);for(me=we&(1<<-ee)-1,we>>=-ee,ee+=Pe;ee>0;me=me*256+ve[fe+ae],ae+=re,ee-=8);if(we===0)we=1-z;else{if(we===de)return me?NaN:(le?-1:1)*(1/0);me=me+Math.pow(2,Pe),we=we-z}return(le?-1:1)*me*Math.pow(2,we-Pe)},Ne.write=function(ve,fe,be,Pe,ye,we){var me,Se,de,z=we*8-ye-1,ee=(1<<z)-1,ae=ee>>1,re=ye===23?Math.pow(2,-24)-Math.pow(2,-77):0,le=Pe?0:we-1,ue=Pe?1:-1,pe=fe<0||fe===0&&1/fe<0?1:0;for(fe=Math.abs(fe),isNaN(fe)||fe===1/0?(Se=isNaN(fe)?1:0,me=ee):(me=Math.floor(Math.log(fe)/Math.LN2),fe*(de=Math.pow(2,-me))<1&&(me--,de*=2),me+ae>=1?fe+=re/de:fe+=re*Math.pow(2,1-ae),fe*de>=2&&(me++,de/=2),me+ae>=ee?(Se=0,me=ee):me+ae>=1?(Se=(fe*de-1)*Math.pow(2,ye),me=me+ae):(Se=fe*Math.pow(2,ae-1)*Math.pow(2,ye),me=0));ye>=8;ve[be+le]=Se&255,le+=ue,Se/=256,ye-=8);for(me=me<<ye|Se,z+=ye;z>0;ve[be+le]=me&255,le+=ue,me/=256,z-=8);ve[be+le-ue]|=pe*128}},{}],358:[function(oe,_e,Ne){"use strict";var ve=[oe("./nextTick"),oe("./queueMicrotask"),oe("./mutation.js"),oe("./messageChannel"),oe("./stateChange"),oe("./timeout")],fe,be,Pe=-1,ye=[],we=!1;function me(){!fe||!be||(fe=!1,be.length?ye=be.concat(ye):Pe=-1,ye.length&&Se())}function Se(){if(!fe){we=!1,fe=!0;for(var le=ye.length,ue=setTimeout(me);le;){for(be=ye,ye=[];be&&++Pe<le;)be[Pe].run();Pe=-1,le=ye.length}be=null,Pe=-1,fe=!1,clearTimeout(ue)}}for(var de,z=-1,ee=ve.length;++z<ee;)if(ve[z]&&ve[z].test&&ve[z].test()){de=ve[z].install(Se);break}function ae(le,ue){this.fun=le,this.array=ue}ae.prototype.run=function(){var le=this.fun,ue=this.array;switch(ue.length){case 0:return le();case 1:return le(ue[0]);case 2:return le(ue[0],ue[1]);case 3:return le(ue[0],ue[1],ue[2]);default:return le.apply(null,ue)}},_e.exports=re;function re(le){var ue=new Array(arguments.length-1);if(arguments.length>1)for(var pe=1;pe<arguments.length;pe++)ue[pe-1]=arguments[pe];ye.push(new ae(le,ue)),!we&&!fe&&(we=!0,de())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(oe,_e,Ne){(function(ve){(function(){"use strict";Ne.test=function(){return ve.setImmediate?!1:typeof ve.MessageChannel!="undefined"},Ne.install=function(fe){var be=new ve.MessageChannel;return be.port1.onmessage=fe,function(){be.port2.postMessage(0)}}}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(oe,_e,Ne){(function(ve){(function(){"use strict";var fe=ve.MutationObserver||ve.WebKitMutationObserver;Ne.test=function(){return fe},Ne.install=function(be){var Pe=0,ye=new fe(be),we=ve.document.createTextNode("");return ye.observe(we,{characterData:!0}),function(){we.data=Pe=++Pe%2}}}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(oe,_e,Ne){(function(ve){(function(){"use strict";Ne.test=function(){return typeof ve.queueMicrotask=="function"},Ne.install=function(fe){return function(){ve.queueMicrotask(fe)}}}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(oe,_e,Ne){(function(ve){(function(){"use strict";Ne.test=function(){return"document"in ve&&"onreadystatechange"in ve.document.createElement("script")},Ne.install=function(fe){return function(){var be=ve.document.createElement("script");return be.onreadystatechange=function(){fe(),be.onreadystatechange=null,be.parentNode.removeChild(be),be=null},ve.document.documentElement.appendChild(be),fe}}}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(oe,_e,Ne){"use strict";Ne.test=function(){return!0},Ne.install=function(ve){return function(){setTimeout(ve,0)}}},{}],364:[function(oe,_e,Ne){typeof Object.create=="function"?_e.exports=function(fe,be){be&&(fe.super_=be,fe.prototype=Object.create(be.prototype,{constructor:{value:fe,enumerable:!1,writable:!0,configurable:!0}}))}:_e.exports=function(fe,be){if(be){fe.super_=be;var Pe=function(){};Pe.prototype=be.prototype,fe.prototype=new Pe,fe.prototype.constructor=fe}}},{}],365:[function(oe,_e,Ne){"use strict";var ve=oe("has-tostringtag/shams")(),fe=oe("call-bind/callBound"),be=fe("Object.prototype.toString"),Pe=function(Se){return ve&&Se&&typeof Se=="object"&&Symbol.toStringTag in Se?!1:be(Se)==="[object Arguments]"},ye=function(Se){return Pe(Se)?!0:Se!==null&&typeof Se=="object"&&typeof Se.length=="number"&&Se.length>=0&&be(Se)!=="[object Array]"&&be(Se.callee)==="[object Function]"},we=function(){return Pe(arguments)}();Pe.isLegacyArguments=ye,_e.exports=we?Pe:ye},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(oe,_e,Ne){_e.exports=function(be){return be!=null&&(ve(be)||fe(be)||!!be._isBuffer)};function ve(be){return!!be.constructor&&typeof be.constructor.isBuffer=="function"&&be.constructor.isBuffer(be)}function fe(be){return typeof be.readFloatLE=="function"&&typeof be.slice=="function"&&ve(be.slice(0,0))}},{}],367:[function(oe,_e,Ne){"use strict";var ve=Function.prototype.toString,fe=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,be,Pe;if(typeof fe=="function"&&typeof Object.defineProperty=="function")try{be=Object.defineProperty({},"length",{get:function(){throw Pe}}),Pe={},fe(function(){throw 42},null,be)}catch(je){je!==Pe&&(fe=null)}else fe=null;var ye=/^\s*class\b/,we=function(Le){try{var ke=ve.call(Le);return ye.test(ke)}catch(Oe){return!1}},me=function(Le){try{return we(Le)?!1:(ve.call(Le),!0)}catch(ke){return!1}},Se=Object.prototype.toString,de="[object Object]",z="[object Function]",ee="[object GeneratorFunction]",ae="[object HTMLAllCollection]",re="[object HTML document.all class]",le="[object HTMLCollection]",ue=typeof Symbol=="function"&&!!Symbol.toStringTag,pe=!(0 in[,]),Ee=function(){return!1};if(typeof document=="object"){var Ce=document.all;Se.call(Ce)===Se.call(document.all)&&(Ee=function(Le){if((pe||!Le)&&(typeof Le=="undefined"||typeof Le=="object"))try{var ke=Se.call(Le);return(ke===ae||ke===re||ke===le||ke===de)&&Le("")==null}catch(Oe){}return!1})}_e.exports=fe?function(Le){if(Ee(Le))return!0;if(!Le||typeof Le!="function"&&typeof Le!="object")return!1;try{fe(Le,null,be)}catch(ke){if(ke!==Pe)return!1}return!we(Le)&&me(Le)}:function(Le){if(Ee(Le))return!0;if(!Le||typeof Le!="function"&&typeof Le!="object")return!1;if(ue)return me(Le);if(we(Le))return!1;var ke=Se.call(Le);return ke!==z&&ke!==ee&&!/^\[object HTML/.test(ke)?!1:me(Le)}},{}],368:[function(oe,_e,Ne){"use strict";var ve=Object.prototype.toString,fe=Function.prototype.toString,be=/^\s*(?:function)?\*/,Pe=oe("has-tostringtag/shams")(),ye=Object.getPrototypeOf,we=function(){if(!Pe)return!1;try{return Function("return function*() {}")()}catch(Se){}},me;_e.exports=function(de){if(typeof de!="function")return!1;if(be.test(fe.call(de)))return!0;if(!Pe){var z=ve.call(de);return z==="[object GeneratorFunction]"}if(!ye)return!1;if(typeof me=="undefined"){var ee=we();me=ee?ye(ee):!1}return ye(de)===me}},{"has-tostringtag/shams":353}],369:[function(oe,_e,Ne){"use strict";var ve=oe("which-typed-array");_e.exports=function(be){return!!ve(be)}},{"which-typed-array":420}],370:[function(oe,_e,Ne){var ve={}.toString;_e.exports=Array.isArray||function(fe){return ve.call(fe)=="[object Array]"}},{}],371:[function(oe,_e,Ne){(function(ve){(function(){(function(fe,be){typeof Ne=="object"&&typeof _e!="undefined"?_e.exports=be(fe):typeof Ge=="function"&&Ge.amd?Ge(be):be(fe)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ve!="undefined"?ve:this,function(fe){"use strict";fe=fe||{};var be=fe.Base64,Pe="2.6.4",ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",we=function(pt){for(var bt={},qe=0,at=pt.length;qe<at;qe++)bt[pt.charAt(qe)]=qe;return bt}(ye),me=String.fromCharCode,Se=function(pt){if(pt.length<2){var bt=pt.charCodeAt(0);return bt<128?pt:bt<2048?me(192|bt>>>6)+me(128|bt&63):me(224|bt>>>12&15)+me(128|bt>>>6&63)+me(128|bt&63)}else{var bt=65536+(pt.charCodeAt(0)-55296)*1024+(pt.charCodeAt(1)-56320);return me(240|bt>>>18&7)+me(128|bt>>>12&63)+me(128|bt>>>6&63)+me(128|bt&63)}},de=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,z=function(pt){return pt.replace(de,Se)},ee=function(pt){var bt=[0,2,1][pt.length%3],qe=pt.charCodeAt(0)<<16|(pt.length>1?pt.charCodeAt(1):0)<<8|(pt.length>2?pt.charCodeAt(2):0),at=[ye.charAt(qe>>>18),ye.charAt(qe>>>12&63),bt>=2?"=":ye.charAt(qe>>>6&63),bt>=1?"=":ye.charAt(qe&63)];return at.join("")},ae=fe.btoa&&typeof fe.btoa=="function"?function(pt){return fe.btoa(pt)}:function(pt){if(pt.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return pt.replace(/[\s\S]{1,3}/g,ee)},re=function(pt){return ae(z(String(pt)))},le=function(pt){return pt.replace(/[+\/]/g,function(bt){return bt=="+"?"-":"_"}).replace(/=/g,"")},ue=function(pt,bt){return bt?le(re(pt)):re(pt)},pe=function(pt){return ue(pt,!0)},Ee;fe.Uint8Array&&(Ee=function(pt,bt){for(var qe="",at=0,gt=pt.length;at<gt;at+=3){var Ct=pt[at],wt=pt[at+1],vt=pt[at+2],mt=Ct<<16|wt<<8|vt;qe+=ye.charAt(mt>>>18)+ye.charAt(mt>>>12&63)+(typeof wt!="undefined"?ye.charAt(mt>>>6&63):"=")+(typeof vt!="undefined"?ye.charAt(mt&63):"=")}return bt?le(qe):qe});var Ce=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,je=function(pt){switch(pt.length){case 4:var bt=(7&pt.charCodeAt(0))<<18|(63&pt.charCodeAt(1))<<12|(63&pt.charCodeAt(2))<<6|63&pt.charCodeAt(3),qe=bt-65536;return me((qe>>>10)+55296)+me((qe&1023)+56320);case 3:return me((15&pt.charCodeAt(0))<<12|(63&pt.charCodeAt(1))<<6|63&pt.charCodeAt(2));default:return me((31&pt.charCodeAt(0))<<6|63&pt.charCodeAt(1))}},Le=function(pt){return pt.replace(Ce,je)},ke=function(pt){var bt=pt.length,qe=bt%4,at=(bt>0?we[pt.charAt(0)]<<18:0)|(bt>1?we[pt.charAt(1)]<<12:0)|(bt>2?we[pt.charAt(2)]<<6:0)|(bt>3?we[pt.charAt(3)]:0),gt=[me(at>>>16),me(at>>>8&255),me(at&255)];return gt.length-=[0,0,2,1][qe],gt.join("")},Oe=fe.atob&&typeof fe.atob=="function"?function(pt){return fe.atob(pt)}:function(pt){return pt.replace(/\S{1,4}/g,ke)},Fe=function(pt){return Oe(String(pt).replace(/[^A-Za-z0-9\+\/]/g,""))},Re=function(pt){return Le(Oe(pt))},Ze=function(pt){return String(pt).replace(/[-_]/g,function(bt){return bt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ze=function(pt){return Re(Ze(pt))},Ke;fe.Uint8Array&&(Ke=function(pt){return Uint8Array.from(Fe(Ze(pt)),function(bt){return bt.charCodeAt(0)})});var ot=function(){var pt=fe.Base64;return fe.Base64=be,pt};if(fe.Base64={VERSION:Pe,atob:Fe,btoa:ae,fromBase64:ze,toBase64:ue,utob:z,encode:ue,encodeURI:pe,btou:Le,decode:ze,noConflict:ot,fromUint8Array:Ee,toUint8Array:Ke},typeof Object.defineProperty=="function"){var ct=function(pt){return{value:pt,enumerable:!1,writable:!0,configurable:!0}};fe.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ct(function(){return ze(this)})),Object.defineProperty(String.prototype,"toBase64",ct(function(pt){return ue(this,pt)})),Object.defineProperty(String.prototype,"toBase64URI",ct(function(){return ue(this,!0)}))}}return fe.Meteor&&(Base64=fe.Base64),typeof _e!="undefined"&&_e.exports?_e.exports.Base64=fe.Base64:typeof Ge=="function"&&Ge.amd&&Ge([],function(){return fe.Base64}),{Base64:fe.Base64}})}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(oe,_e,Ne){"use strict";_e.exports=fe;var ve=Object.prototype.hasOwnProperty;function fe(be,Pe,ye){if(!be)throw new TypeError("argument dest is required");if(!Pe)throw new TypeError("argument src is required");return ye===void 0&&(ye=!0),Object.getOwnPropertyNames(Pe).forEach(function(me){if(!(!ye&&ve.call(be,me))){var Se=Object.getOwnPropertyDescriptor(Pe,me);Object.defineProperty(be,me,Se)}}),be}},{}],373:[function(oe,_e,Ne){"use strict";oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.regexp.constructor.js"),oe("core-js/modules/es.regexp.to-string.js");function ve(){this._types=Object.create(null),this._extensions=Object.create(null);for(var fe=0;fe<arguments.length;fe++)this.define(arguments[fe]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}ve.prototype.define=function(fe,be){for(var Pe in fe){var ye=fe[Pe].map(function(de){return de.toLowerCase()});Pe=Pe.toLowerCase();for(var we=0;we<ye.length;we++){var me=ye[we];if(me[0]!=="*"){if(!be&&me in this._types)throw new Error('Attempt to change mapping for "'+me+'" extension from "'+this._types[me]+'" to "'+Pe+'". Pass `force=true` to allow this, otherwise remove "'+me+'" from the list of extensions for "'+Pe+'".');this._types[me]=Pe}}if(be||!this._extensions[Pe]){var Se=ye[0];this._extensions[Pe]=Se[0]!=="*"?Se:Se.substr(1)}}},ve.prototype.getType=function(fe){fe=String(fe);var be=fe.replace(/^.*[/\\]/,"").toLowerCase(),Pe=be.replace(/^.*\./,"").toLowerCase(),ye=be.length<fe.length,we=Pe.length<be.length-1;return(we||!ye)&&this._types[Pe]||null},ve.prototype.getExtension=function(fe){return fe=/^\s*([^;\s]*)/.test(fe)&&RegExp.$1,fe&&this._extensions[fe.toLowerCase()]||null},_e.exports=ve},{"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.constructor.js":299,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305}],374:[function(oe,_e,Ne){"use strict";var ve=oe("./Mime");_e.exports=new ve(oe("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(oe,_e,Ne){"use strict";_e.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],376:[function(oe,_e,Ne){var ve=1e3,fe=ve*60,be=fe*60,Pe=be*24,ye=Pe*7,we=Pe*365.25;_e.exports=function(ee,ae){ae=ae||{};var re=typeof ee;if(re==="string"&&ee.length>0)return me(ee);if(re==="number"&&isFinite(ee))return ae.long?de(ee):Se(ee);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(ee))};function me(ee){if(ee=String(ee),!(ee.length>100)){var ae=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(ee);if(ae){var re=parseFloat(ae[1]),le=(ae[2]||"ms").toLowerCase();switch(le){case"years":case"year":case"yrs":case"yr":case"y":return re*we;case"weeks":case"week":case"w":return re*ye;case"days":case"day":case"d":return re*Pe;case"hours":case"hour":case"hrs":case"hr":case"h":return re*be;case"minutes":case"minute":case"mins":case"min":case"m":return re*fe;case"seconds":case"second":case"secs":case"sec":case"s":return re*ve;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return re;default:return}}}}function Se(ee){var ae=Math.abs(ee);return ae>=Pe?Math.round(ee/Pe)+"d":ae>=be?Math.round(ee/be)+"h":ae>=fe?Math.round(ee/fe)+"m":ae>=ve?Math.round(ee/ve)+"s":ee+"ms"}function de(ee){var ae=Math.abs(ee);return ae>=Pe?z(ee,ae,Pe,"day"):ae>=be?z(ee,ae,be,"hour"):ae>=fe?z(ee,ae,fe,"minute"):ae>=ve?z(ee,ae,ve,"second"):ee+" ms"}function z(ee,ae,re,le){var ue=ae>=re*1.5;return Math.round(ee/re)+" "+le+(ue?"s":"")}},{}],377:[function(oe,_e,Ne){"use strict";var ve=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable;function Pe(we){if(we==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(we)}function ye(){try{if(!Object.assign)return!1;var we=new String("abc");if(we[5]="de",Object.getOwnPropertyNames(we)[0]==="5")return!1;for(var me={},Se=0;Se<10;Se++)me["_"+String.fromCharCode(Se)]=Se;var de=Object.getOwnPropertyNames(me).map(function(ee){return me[ee]});if(de.join("")!=="0123456789")return!1;var z={};return"abcdefghijklmnopqrst".split("").forEach(function(ee){z[ee]=ee}),Object.keys(Object.assign({},z)).join("")==="abcdefghijklmnopqrst"}catch(ee){return!1}}_e.exports=ye()?Object.assign:function(we,me){for(var Se,de=Pe(we),z,ee=1;ee<arguments.length;ee++){Se=Object(arguments[ee]);for(var ae in Se)fe.call(Se,ae)&&(de[ae]=Se[ae]);if(ve){z=ve(Se);for(var re=0;re<z.length;re++)be.call(Se,z[re])&&(de[z[re]]=Se[z[re]])}}return de}},{}],378:[function(oe,_e,Ne){(function(ve){(function(){"use strict";function fe(we){if(typeof we!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(we))}function be(we,me){for(var Se="",de=0,z=-1,ee=0,ae,re=0;re<=we.length;++re){if(re<we.length)ae=we.charCodeAt(re);else{if(ae===47)break;ae=47}if(ae===47){if(!(z===re-1||ee===1))if(z!==re-1&&ee===2){if(Se.length<2||de!==2||Se.charCodeAt(Se.length-1)!==46||Se.charCodeAt(Se.length-2)!==46){if(Se.length>2){var le=Se.lastIndexOf("/");if(le!==Se.length-1){le===-1?(Se="",de=0):(Se=Se.slice(0,le),de=Se.length-1-Se.lastIndexOf("/")),z=re,ee=0;continue}}else if(Se.length===2||Se.length===1){Se="",de=0,z=re,ee=0;continue}}me&&(Se.length>0?Se+="/..":Se="..",de=2)}else Se.length>0?Se+="/"+we.slice(z+1,re):Se=we.slice(z+1,re),de=re-z-1;z=re,ee=0}else ae===46&&ee!==-1?++ee:ee=-1}return Se}function Pe(we,me){var Se=me.dir||me.root,de=me.base||(me.name||"")+(me.ext||"");return Se?Se===me.root?Se+de:Se+we+de:de}var ye={resolve:function(){for(var me="",Se=!1,de,z=arguments.length-1;z>=-1&&!Se;z--){var ee;z>=0?ee=arguments[z]:(de===void 0&&(de=ve.cwd()),ee=de),fe(ee),ee.length!==0&&(me=ee+"/"+me,Se=ee.charCodeAt(0)===47)}return me=be(me,!Se),Se?me.length>0?"/"+me:"/":me.length>0?me:"."},normalize:function(me){if(fe(me),me.length===0)return".";var Se=me.charCodeAt(0)===47,de=me.charCodeAt(me.length-1)===47;return me=be(me,!Se),me.length===0&&!Se&&(me="."),me.length>0&&de&&(me+="/"),Se?"/"+me:me},isAbsolute:function(me){return fe(me),me.length>0&&me.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var me,Se=0;Se<arguments.length;++Se){var de=arguments[Se];fe(de),de.length>0&&(me===void 0?me=de:me+="/"+de)}return me===void 0?".":ye.normalize(me)},relative:function(me,Se){if(fe(me),fe(Se),me===Se||(me=ye.resolve(me),Se=ye.resolve(Se),me===Se))return"";for(var de=1;de<me.length&&me.charCodeAt(de)===47;++de);for(var z=me.length,ee=z-de,ae=1;ae<Se.length&&Se.charCodeAt(ae)===47;++ae);for(var re=Se.length,le=re-ae,ue=ee<le?ee:le,pe=-1,Ee=0;Ee<=ue;++Ee){if(Ee===ue){if(le>ue){if(Se.charCodeAt(ae+Ee)===47)return Se.slice(ae+Ee+1);if(Ee===0)return Se.slice(ae+Ee)}else ee>ue&&(me.charCodeAt(de+Ee)===47?pe=Ee:Ee===0&&(pe=0));break}var Ce=me.charCodeAt(de+Ee),je=Se.charCodeAt(ae+Ee);if(Ce!==je)break;Ce===47&&(pe=Ee)}var Le="";for(Ee=de+pe+1;Ee<=z;++Ee)(Ee===z||me.charCodeAt(Ee)===47)&&(Le.length===0?Le+="..":Le+="/..");return Le.length>0?Le+Se.slice(ae+pe):(ae+=pe,Se.charCodeAt(ae)===47&&++ae,Se.slice(ae))},_makeLong:function(me){return me},dirname:function(me){if(fe(me),me.length===0)return".";for(var Se=me.charCodeAt(0),de=Se===47,z=-1,ee=!0,ae=me.length-1;ae>=1;--ae)if(Se=me.charCodeAt(ae),Se===47){if(!ee){z=ae;break}}else ee=!1;return z===-1?de?"/":".":de&&z===1?"//":me.slice(0,z)},basename:function(me,Se){if(Se!==void 0&&typeof Se!="string")throw new TypeError('"ext" argument must be a string');fe(me);var de=0,z=-1,ee=!0,ae;if(Se!==void 0&&Se.length>0&&Se.length<=me.length){if(Se.length===me.length&&Se===me)return"";var re=Se.length-1,le=-1;for(ae=me.length-1;ae>=0;--ae){var ue=me.charCodeAt(ae);if(ue===47){if(!ee){de=ae+1;break}}else le===-1&&(ee=!1,le=ae+1),re>=0&&(ue===Se.charCodeAt(re)?--re===-1&&(z=ae):(re=-1,z=le))}return de===z?z=le:z===-1&&(z=me.length),me.slice(de,z)}else{for(ae=me.length-1;ae>=0;--ae)if(me.charCodeAt(ae)===47){if(!ee){de=ae+1;break}}else z===-1&&(ee=!1,z=ae+1);return z===-1?"":me.slice(de,z)}},extname:function(me){fe(me);for(var Se=-1,de=0,z=-1,ee=!0,ae=0,re=me.length-1;re>=0;--re){var le=me.charCodeAt(re);if(le===47){if(!ee){de=re+1;break}continue}z===-1&&(ee=!1,z=re+1),le===46?Se===-1?Se=re:ae!==1&&(ae=1):Se!==-1&&(ae=-1)}return Se===-1||z===-1||ae===0||ae===1&&Se===z-1&&Se===de+1?"":me.slice(Se,z)},format:function(me){if(me===null||typeof me!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof me);return Pe("/",me)},parse:function(me){fe(me);var Se={root:"",dir:"",base:"",ext:"",name:""};if(me.length===0)return Se;var de=me.charCodeAt(0),z=de===47,ee;z?(Se.root="/",ee=1):ee=0;for(var ae=-1,re=0,le=-1,ue=!0,pe=me.length-1,Ee=0;pe>=ee;--pe){if(de=me.charCodeAt(pe),de===47){if(!ue){re=pe+1;break}continue}le===-1&&(ue=!1,le=pe+1),de===46?ae===-1?ae=pe:Ee!==1&&(Ee=1):ae!==-1&&(Ee=-1)}return ae===-1||le===-1||Ee===0||Ee===1&&ae===le-1&&ae===re+1?le!==-1&&(re===0&&z?Se.base=Se.name=me.slice(1,le):Se.base=Se.name=me.slice(re,le)):(re===0&&z?(Se.name=me.slice(1,ae),Se.base=me.slice(1,le)):(Se.name=me.slice(re,ae),Se.base=me.slice(re,le)),Se.ext=me.slice(ae,le)),re>0?Se.dir=me.slice(0,re-1):z&&(Se.dir="/"),Se},sep:"/",delimiter:":",win32:null,posix:null};ye.posix=ye,_e.exports=ye}).call(this)}).call(this,oe("_process"))},{_process:467}],379:[function(oe,_e,Ne){(function(ve){(function(){(function(){"use strict";var fe={function:!0,object:!0},be=fe[typeof window]&&window||this,Pe=be,ye=fe[typeof Ne]&&Ne,we=fe[typeof _e]&&_e&&!_e.nodeType&&_e,me=ye&&we&&typeof ve=="object"&&ve;me&&(me.global===me||me.window===me||me.self===me)&&(be=me);var Se=Math.pow(2,53)-1,de=/\bOpera/,z=this,ee=Object.prototype,ae=ee.hasOwnProperty,re=ee.toString;function le(ze){return ze=String(ze),ze.charAt(0).toUpperCase()+ze.slice(1)}function ue(ze,Ke,ot){var ct={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return Ke&&ot&&/^Win/i.test(ze)&&!/^Windows Phone /i.test(ze)&&(ct=ct[/[\d.]+$/.exec(ze)])&&(ze="Windows "+ct),ze=String(ze),Ke&&ot&&(ze=ze.replace(RegExp(Ke,"i"),ot)),ze=Ee(ze.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),ze}function pe(ze,Ke){var ot=-1,ct=ze?ze.length:0;if(typeof ct=="number"&&ct>-1&&ct<=Se)for(;++ot<ct;)Ke(ze[ot],ot,ze);else Ce(ze,Ke)}function Ee(ze){return ze=Fe(ze),/^(?:webOS|i(?:OS|P))/.test(ze)?ze:le(ze)}function Ce(ze,Ke){for(var ot in ze)ae.call(ze,ot)&&Ke(ze[ot],ot,ze)}function je(ze){return ze==null?le(ze):re.call(ze).slice(8,-1)}function Le(ze,Ke){var ot=ze!=null?typeof ze[Ke]:"number";return!/^(?:boolean|number|string|undefined)$/.test(ot)&&(ot=="object"?!!ze[Ke]:!0)}function ke(ze){return String(ze).replace(/([ -])(?!$)/g,"$1?")}function Oe(ze,Ke){var ot=null;return pe(ze,function(ct,pt){ot=Ke(ot,ct,pt,ze)}),ot}function Fe(ze){return String(ze).replace(/^ +| +$/g,"")}function Re(ze){var Ke=be,ot=ze&&typeof ze=="object"&&je(ze)!="String";ot&&(Ke=ze,ze=null);var ct=Ke.navigator||{},pt=ct.userAgent||"";ze||(ze=pt);var bt=ot||z==Pe,qe=ot?!!ct.likeChrome:/\bChrome\b/.test(ze)&&!/internal|\n/i.test(re.toString()),at="Object",gt=ot?at:"ScriptBridgingProxyObject",Ct=ot?at:"Environment",wt=ot&&Ke.java?"JavaPackage":je(Ke.java),vt=ot?at:"RuntimeObject",mt=/\bJava/.test(wt)&&Ke.java,xt=mt&&je(Ke.environment)==Ct,At=mt?"a":"\u03B1",kt=mt?"b":"\u03B2",Wt=Ke.document||{},Et=Ke.operamini||Ke.opera,St=de.test(St=ot&&Et?Et["[[Class]]"]:je(Et))?St:Et=null,tt,ft=ze,$e=[],lt=null,Pt=ze==pt,dt=Pt&&Et&&typeof Et.version=="function"&&Et.version(),et,Ve=De([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),He=Xe(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),nt=Ye([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),ut=Ie({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),We=yt(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function De(It){return Oe(It,function(Ut,tn){return Ut||RegExp("\\b"+(tn.pattern||ke(tn))+"\\b","i").exec(ze)&&(tn.label||tn)})}function Ie(It){return Oe(It,function(Ut,tn,ln){return Ut||(tn[nt]||tn[/^[a-z]+(?: +[a-z]+\b)*/i.exec(nt)]||RegExp("\\b"+ke(ln)+"(?:\\b|\\w*\\d)","i").exec(ze))&&ln})}function Xe(It){return Oe(It,function(Ut,tn){return Ut||RegExp("\\b"+(tn.pattern||ke(tn))+"\\b","i").exec(ze)&&(tn.label||tn)})}function yt(It){return Oe(It,function(Ut,tn){var ln=tn.pattern||ke(tn);return!Ut&&(Ut=RegExp("\\b"+ln+"(?:/[\\d.]+|[ \\w.]*)","i").exec(ze))&&(Ut=ue(Ut,ln,tn.label||tn)),Ut})}function Ye(It){return Oe(It,function(Ut,tn){var ln=tn.pattern||ke(tn);return!Ut&&(Ut=RegExp("\\b"+ln+" *\\d+[.\\w_]*","i").exec(ze)||RegExp("\\b"+ln+" *\\w+-[\\w]*","i").exec(ze)||RegExp("\\b"+ln+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(ze))&&((Ut=String(tn.label&&!RegExp(ln,"i").test(tn.label)?tn.label:Ut).split("/"))[1]&&!/[\d.]+/.test(Ut[0])&&(Ut[0]+=" "+Ut[1]),tn=tn.label||tn,Ut=Ee(Ut[0].replace(RegExp(ln,"i"),tn).replace(RegExp("; *(?:"+tn+"[_-])?","i")," ").replace(RegExp("("+tn+")[-_.]?(\\w)","i"),"$1 $2"))),Ut})}function jt(It){return Oe(It,function(Ut,tn){return Ut||(RegExp(tn+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(ze)||0)[1]||null})}function Ht(){return this.description||""}if(Ve&&(Ve=[Ve]),/\bAndroid\b/.test(We)&&!nt&&(tt=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(ze))&&(nt=Fe(tt[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),ut&&!nt?nt=Ye([ut]):ut&&nt&&(nt=nt.replace(RegExp("^("+ke(ut)+")[-_.\\s]","i"),ut+" ").replace(RegExp("^("+ke(ut)+")[-_.]?(\\w)","i"),ut+" $2")),(tt=/\bGoogle TV\b/.exec(nt))&&(nt=tt[0]),/\bSimulator\b/i.test(ze)&&(nt=(nt?nt+" ":"")+"Simulator"),He=="Opera Mini"&&/\bOPiOS\b/.test(ze)&&$e.push("running in Turbo/Uncompressed mode"),He=="IE"&&/\blike iPhone OS\b/.test(ze)?(tt=Re(ze.replace(/like iPhone OS/,"")),ut=tt.manufacturer,nt=tt.product):/^iP/.test(nt)?(He||(He="Safari"),We="iOS"+((tt=/ OS ([\d_]+)/i.exec(ze))?" "+tt[1].replace(/_/g,"."):"")):He=="Konqueror"&&/^Linux\b/i.test(We)?We="Kubuntu":ut&&ut!="Google"&&(/Chrome/.test(He)&&!/\bMobile Safari\b/i.test(ze)||/\bVita\b/.test(nt))||/\bAndroid\b/.test(We)&&/^Chrome/.test(He)&&/\bVersion\//i.test(ze)?(He="Android Browser",We=/\bAndroid\b/.test(We)?We:"Android"):He=="Silk"?(/\bMobi/i.test(ze)||(We="Android",$e.unshift("desktop mode")),/Accelerated *= *true/i.test(ze)&&$e.unshift("accelerated")):He=="UC Browser"&&/\bUCWEB\b/.test(ze)?$e.push("speed mode"):He=="PaleMoon"&&(tt=/\bFirefox\/([\d.]+)\b/.exec(ze))?$e.push("identifying as Firefox "+tt[1]):He=="Firefox"&&(tt=/\b(Mobile|Tablet|TV)\b/i.exec(ze))?(We||(We="Firefox OS"),nt||(nt=tt[1])):!He||(tt=!/\bMinefield\b/i.test(ze)&&/\b(?:Firefox|Safari)\b/.exec(He))?(He&&!nt&&/[\/,]|^[^(]+?\)/.test(ze.slice(ze.indexOf(tt+"/")+8))&&(He=null),(tt=nt||ut||We)&&(nt||ut||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(We))&&(He=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(We)?We:tt)+" Browser")):He=="Electron"&&(tt=(/\bChrome\/([\d.]+)\b/.exec(ze)||0)[1])&&$e.push("Chromium "+tt),dt||(dt=jt(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",ke(He),"(?:Firefox|Minefield|NetFront)"])),(tt=Ve=="iCab"&&parseFloat(dt)>3&&"WebKit"||/\bOpera\b/.test(He)&&(/\bOPR\b/.test(ze)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(ze)&&!/^(?:Trident|EdgeHTML)$/.test(Ve)&&"WebKit"||!Ve&&/\bMSIE\b/i.test(ze)&&(We=="Mac OS"?"Tasman":"Trident")||Ve=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(He)&&"NetFront")&&(Ve=[tt]),He=="IE"&&(tt=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(ze)||0)[1])?(He+=" Mobile",We="Windows Phone "+(/\+$/.test(tt)?tt:tt+".x"),$e.unshift("desktop mode")):/\bWPDesktop\b/i.test(ze)?(He="IE Mobile",We="Windows Phone 8.x",$e.unshift("desktop mode"),dt||(dt=(/\brv:([\d.]+)/.exec(ze)||0)[1])):He!="IE"&&Ve=="Trident"&&(tt=/\brv:([\d.]+)/.exec(ze))&&(He&&$e.push("identifying as "+He+(dt?" "+dt:"")),He="IE",dt=tt[1]),Pt){if(Le(Ke,"global"))if(mt&&(tt=mt.lang.System,ft=tt.getProperty("os.arch"),We=We||tt.getProperty("os.name")+" "+tt.getProperty("os.version")),xt){try{dt=Ke.require("ringo/engine").version.join("."),He="RingoJS"}catch(It){(tt=Ke.system)&&tt.global.system==Ke.system&&(He="Narwhal",We||(We=tt[0].os||null))}He||(He="Rhino")}else typeof Ke.process=="object"&&!Ke.process.browser&&(tt=Ke.process)&&(typeof tt.versions=="object"&&(typeof tt.versions.electron=="string"?($e.push("Node "+tt.versions.node),He="Electron",dt=tt.versions.electron):typeof tt.versions.nw=="string"&&($e.push("Chromium "+dt,"Node "+tt.versions.node),He="NW.js",dt=tt.versions.nw)),He||(He="Node.js",ft=tt.arch,We=tt.platform,dt=/[\d.]+/.exec(tt.version),dt=dt?dt[0]:null));else je(tt=Ke.runtime)==gt?(He="Adobe AIR",We=tt.flash.system.Capabilities.os):je(tt=Ke.phantom)==vt?(He="PhantomJS",dt=(tt=tt.version||null)&&tt.major+"."+tt.minor+"."+tt.patch):typeof Wt.documentMode=="number"&&(tt=/\bTrident\/(\d+)/i.exec(ze))?(dt=[dt,Wt.documentMode],(tt=+tt[1]+4)!=dt[1]&&($e.push("IE "+dt[1]+" mode"),Ve&&(Ve[1]=""),dt[1]=tt),dt=He=="IE"?String(dt[1].toFixed(1)):dt[0]):typeof Wt.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(He)&&($e.push("masking as "+He+" "+dt),He="IE",dt="11.0",Ve=["Trident"],We="Windows");We=We&&Ee(We)}if(dt&&(tt=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(dt)||/(?:alpha|beta)(?: ?\d)?/i.exec(ze+";"+(Pt&&ct.appMinorVersion))||/\bMinefield\b/i.test(ze)&&"a")&&(lt=/b/i.test(tt)?"beta":"alpha",dt=dt.replace(RegExp(tt+"\\+?$"),"")+(lt=="beta"?kt:At)+(/\d+\+?/.exec(tt)||"")),He=="Fennec"||He=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(We))He="Firefox Mobile";else if(He=="Maxthon"&&dt)dt=dt.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(nt))nt=="Xbox 360"&&(We=null),nt=="Xbox 360"&&/\bIEMobile\b/.test(ze)&&$e.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(He)||He&&!nt&&!/Browser|Mobi/.test(He))&&(We=="Windows CE"||/Mobi/i.test(ze)))He+=" Mobile";else if(He=="IE"&&Pt)try{Ke.external===null&&$e.unshift("platform preview")}catch(It){$e.unshift("embedded")}else(/\bBlackBerry\b/.test(nt)||/\bBB10\b/.test(ze))&&(tt=(RegExp(nt.replace(/ +/g," *")+"/([.\\d]+)","i").exec(ze)||0)[1]||dt)?(tt=[tt,/BB10/.test(ze)],We=(tt[1]?(nt=null,ut="BlackBerry"):"Device Software")+" "+tt[0],dt=null):this!=Ce&&nt!="Wii"&&(Pt&&Et||/Opera/.test(He)&&/\b(?:MSIE|Firefox)\b/i.test(ze)||He=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(We)||He=="IE"&&(We&&!/^Win/.test(We)&&dt>5.5||/\bWindows XP\b/.test(We)&&dt>8||dt==8&&!/\bTrident\b/.test(ze)))&&!de.test(tt=Re.call(Ce,ze.replace(de,"")+";"))&&tt.name&&(tt="ing as "+tt.name+((tt=tt.version)?" "+tt:""),de.test(He)?(/\bIE\b/.test(tt)&&We=="Mac OS"&&(We=null),tt="identify"+tt):(tt="mask"+tt,St?He=Ee(St.replace(/([a-z])([A-Z])/g,"$1 $2")):He="Opera",/\bIE\b/.test(tt)&&(We=null),Pt||(dt=null)),Ve=["Presto"],$e.push(tt));(tt=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(ze)||0)[1])&&(tt=[parseFloat(tt.replace(/\.(\d)$/,".0$1")),tt],He=="Safari"&&tt[1].slice(-1)=="+"?(He="WebKit Nightly",lt="alpha",dt=tt[1].slice(0,-1)):(dt==tt[1]||dt==(tt[2]=(/\bSafari\/([\d.]+\+?)/i.exec(ze)||0)[1]))&&(dt=null),tt[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(ze)||0)[1],tt[0]==537.36&&tt[2]==537.36&&parseFloat(tt[1])>=28&&Ve=="WebKit"&&(Ve=["Blink"]),!Pt||!qe&&!tt[1]?(Ve&&(Ve[1]="like Safari"),tt=(tt=tt[0],tt<400?1:tt<500?2:tt<526?3:tt<533?4:tt<534?"4+":tt<535?5:tt<537?6:tt<538?7:tt<601?8:tt<602?9:tt<604?10:tt<606?11:tt<608?12:"12")):(Ve&&(Ve[1]="like Chrome"),tt=tt[1]||(tt=tt[0],tt<530?1:tt<532?2:tt<532.05?3:tt<533?4:tt<534.03?5:tt<534.07?6:tt<534.1?7:tt<534.13?8:tt<534.16?9:tt<534.24?10:tt<534.3?11:tt<535.01?12:tt<535.02?"13+":tt<535.07?15:tt<535.11?16:tt<535.19?17:tt<536.05?18:tt<536.1?19:tt<537.01?20:tt<537.11?"21+":tt<537.13?23:tt<537.18?24:tt<537.24?25:tt<537.36?26:Ve!="Blink"?"27":"28")),Ve&&(Ve[1]+=" "+(tt+=typeof tt=="number"?".x":/[.+]/.test(tt)?"":"+")),He=="Safari"&&(!dt||parseInt(dt)>45)?dt=tt:He=="Chrome"&&/\bHeadlessChrome/i.test(ze)&&$e.unshift("headless")),He=="Opera"&&(tt=/\bzbov|zvav$/.exec(We))?(He+=" ",$e.unshift("desktop mode"),tt=="zvav"?(He+="Mini",dt=null):He+="Mobile",We=We.replace(RegExp(" *"+tt+"$"),"")):He=="Safari"&&/\bChrome\b/.exec(Ve&&Ve[1])?($e.unshift("desktop mode"),He="Chrome Mobile",dt=null,/\bOS X\b/.test(We)?(ut="Apple",We="iOS 4.3+"):We=null):/\bSRWare Iron\b/.test(He)&&!dt&&(dt=jt("Chrome")),dt&&dt.indexOf(tt=/[\d.]+$/.exec(We))==0&&ze.indexOf("/"+tt+"-")>-1&&(We=Fe(We.replace(tt,""))),We&&We.indexOf(He)!=-1&&!RegExp(He+" OS").test(We)&&(We=We.replace(RegExp(" *"+ke(He)+" *"),"")),Ve&&!/\b(?:Avant|Nook)\b/.test(He)&&(/Browser|Lunascape|Maxthon/.test(He)||He!="Safari"&&/^iOS/.test(We)&&/\bSafari\b/.test(Ve[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(He)&&Ve[1])&&(tt=Ve[Ve.length-1])&&$e.push(tt),$e.length&&($e=["("+$e.join("; ")+")"]),ut&&nt&&nt.indexOf(ut)<0&&$e.push("on "+ut),nt&&$e.push((/^on /.test($e[$e.length-1])?"":"on ")+nt),We&&(tt=/ ([\d.+]+)$/.exec(We),et=tt&&We.charAt(We.length-tt[0].length-1)=="/",We={architecture:32,family:tt&&!et?We.replace(tt[0],""):We,version:tt?tt[1]:null,toString:function(){var It=this.version;return this.family+(It&&!et?" "+It:"")+(this.architecture==64?" 64-bit":"")}}),(tt=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(ft))&&!/\bi686\b/i.test(ft)?(We&&(We.architecture=64,We.family=We.family.replace(RegExp(" *"+tt),"")),He&&(/\bWOW64\b/i.test(ze)||Pt&&/\w(?:86|32)$/.test(ct.cpuClass||ct.platform)&&!/\bWin64; x64\b/i.test(ze))&&$e.unshift("32-bit")):We&&/^OS X/.test(We.family)&&He=="Chrome"&&parseFloat(dt)>=39&&(We.architecture=64),ze||(ze=null);var en={};return en.description=ze,en.layout=Ve&&Ve[0],en.manufacturer=ut,en.name=He,en.prerelease=lt,en.product=nt,en.ua=ze,en.version=He&&dt,en.os=We||{architecture:null,family:null,version:null,toString:function(){return"null"}},en.parse=Re,en.toString=Ht,en.version&&$e.unshift(dt),en.name&&$e.unshift(He),We&&He&&!(We==String(We).split(" ")[0]&&(We==He.split(" ")[0]||nt))&&$e.push(nt?"("+We+")":"on "+We),$e.length&&(en.description=$e.join(" ")),en}var Ze=Re();typeof Ge=="function"&&typeof Ge.amd=="object"&&Ge.amd?(be.platform=Ze,Ge(function(){return Ze})):ye&&we?Ce(Ze,function(ze,Ke){ye[Ke]=ze}):be.platform=Ze}).call(this)}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(oe,_e,Ne){(function(ve){(function(){"use strict";typeof ve=="undefined"||!ve.version||ve.version.indexOf("v0.")===0||ve.version.indexOf("v1.")===0&&ve.version.indexOf("v1.8.")!==0?_e.exports={nextTick:fe}:_e.exports=ve;function fe(be,Pe,ye,we){if(typeof be!="function")throw new TypeError('"callback" argument must be a function');var me=arguments.length,Se,de;switch(me){case 0:case 1:return ve.nextTick(be);case 2:return ve.nextTick(function(){be.call(null,Pe)});case 3:return ve.nextTick(function(){be.call(null,Pe,ye)});case 4:return ve.nextTick(function(){be.call(null,Pe,ye,we)});default:for(Se=new Array(me-1),de=0;de<Se.length;)Se[de++]=arguments[de];return ve.nextTick(function(){be.apply(null,Se)})}}}).call(this)}).call(this,oe("_process"))},{_process:467}],381:[function(oe,_e,Ne){var ve=_e.exports={},fe,be;function Pe(){throw new Error("setTimeout has not been defined")}function ye(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?fe=setTimeout:fe=Pe}catch(pe){fe=Pe}try{typeof clearTimeout=="function"?be=clearTimeout:be=ye}catch(pe){be=ye}})();function we(pe){if(fe===setTimeout)return setTimeout(pe,0);if((fe===Pe||!fe)&&setTimeout)return fe=setTimeout,setTimeout(pe,0);try{return fe(pe,0)}catch(Ee){try{return fe.call(null,pe,0)}catch(Ce){return fe.call(this,pe,0)}}}function me(pe){if(be===clearTimeout)return clearTimeout(pe);if((be===ye||!be)&&clearTimeout)return be=clearTimeout,clearTimeout(pe);try{return be(pe)}catch(Ee){try{return be.call(null,pe)}catch(Ce){return be.call(this,pe)}}}var Se=[],de=!1,z,ee=-1;function ae(){!de||!z||(de=!1,z.length?Se=z.concat(Se):ee=-1,Se.length&&re())}function re(){if(!de){var pe=we(ae);de=!0;for(var Ee=Se.length;Ee;){for(z=Se,Se=[];++ee<Ee;)z&&z[ee].run();ee=-1,Ee=Se.length}z=null,de=!1,me(pe)}}ve.nextTick=function(pe){var Ee=new Array(arguments.length-1);if(arguments.length>1)for(var Ce=1;Ce<arguments.length;Ce++)Ee[Ce-1]=arguments[Ce];Se.push(new le(pe,Ee)),Se.length===1&&!de&&we(re)};function le(pe,Ee){this.fun=pe,this.array=Ee}le.prototype.run=function(){this.fun.apply(null,this.array)},ve.title="browser",ve.browser=!0,ve.env={},ve.argv=[],ve.version="",ve.versions={};function ue(){}ve.on=ue,ve.addListener=ue,ve.once=ue,ve.off=ue,ve.removeListener=ue,ve.removeAllListeners=ue,ve.emit=ue,ve.prependListener=ue,ve.prependOnceListener=ue,ve.listeners=function(pe){return[]},ve.binding=function(pe){throw new Error("process.binding is not supported")},ve.cwd=function(){return"/"},ve.chdir=function(pe){throw new Error("process.chdir is not supported")},ve.umask=function(){return 0}},{}],382:[function(oe,_e,Ne){(function(ve){(function(){(function(fe){var be=typeof Ne=="object"&&Ne&&!Ne.nodeType&&Ne,Pe=typeof _e=="object"&&_e&&!_e.nodeType&&_e,ye=typeof ve=="object"&&ve;(ye.global===ye||ye.window===ye||ye.self===ye)&&(fe=ye);var we,me=2147483647,Se=36,de=1,z=26,ee=38,ae=700,re=72,le=128,ue="-",pe=/^xn--/,Ee=/[^\x20-\x7E]/,Ce=/[\x2E\u3002\uFF0E\uFF61]/g,je={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Le=Se-de,ke=Math.floor,Oe=String.fromCharCode,Fe;function Re(wt){throw new RangeError(je[wt])}function Ze(wt,vt){for(var mt=wt.length,xt=[];mt--;)xt[mt]=vt(wt[mt]);return xt}function ze(wt,vt){var mt=wt.split("@"),xt="";mt.length>1&&(xt=mt[0]+"@",wt=mt[1]),wt=wt.replace(Ce,".");var At=wt.split("."),kt=Ze(At,vt).join(".");return xt+kt}function Ke(wt){for(var vt=[],mt=0,xt=wt.length,At,kt;mt<xt;)At=wt.charCodeAt(mt++),At>=55296&&At<=56319&&mt<xt?(kt=wt.charCodeAt(mt++),(kt&64512)==56320?vt.push(((At&1023)<<10)+(kt&1023)+65536):(vt.push(At),mt--)):vt.push(At);return vt}function ot(wt){return Ze(wt,function(vt){var mt="";return vt>65535&&(vt-=65536,mt+=Oe(vt>>>10&1023|55296),vt=56320|vt&1023),mt+=Oe(vt),mt}).join("")}function ct(wt){return wt-48<10?wt-22:wt-65<26?wt-65:wt-97<26?wt-97:Se}function pt(wt,vt){return wt+22+75*(wt<26)-((vt!=0)<<5)}function bt(wt,vt,mt){var xt=0;for(wt=mt?ke(wt/ae):wt>>1,wt+=ke(wt/vt);wt>Le*z>>1;xt+=Se)wt=ke(wt/Le);return ke(xt+(Le+1)*wt/(wt+ee))}function qe(wt){var vt=[],mt=wt.length,xt,At=0,kt=le,Wt=re,Et,St,tt,ft,$e,lt,Pt,dt,et;for(Et=wt.lastIndexOf(ue),Et<0&&(Et=0),St=0;St<Et;++St)wt.charCodeAt(St)>=128&&Re("not-basic"),vt.push(wt.charCodeAt(St));for(tt=Et>0?Et+1:0;tt<mt;){for(ft=At,$e=1,lt=Se;tt>=mt&&Re("invalid-input"),Pt=ct(wt.charCodeAt(tt++)),(Pt>=Se||Pt>ke((me-At)/$e))&&Re("overflow"),At+=Pt*$e,dt=lt<=Wt?de:lt>=Wt+z?z:lt-Wt,!(Pt<dt);lt+=Se)et=Se-dt,$e>ke(me/et)&&Re("overflow"),$e*=et;xt=vt.length+1,Wt=bt(At-ft,xt,ft==0),ke(At/xt)>me-kt&&Re("overflow"),kt+=ke(At/xt),At%=xt,vt.splice(At++,0,kt)}return ot(vt)}function at(wt){var vt,mt,xt,At,kt,Wt,Et,St,tt,ft,$e,lt=[],Pt,dt,et,Ve;for(wt=Ke(wt),Pt=wt.length,vt=le,mt=0,kt=re,Wt=0;Wt<Pt;++Wt)$e=wt[Wt],$e<128&<.push(Oe($e));for(xt=At=lt.length,At&<.push(ue);xt<Pt;){for(Et=me,Wt=0;Wt<Pt;++Wt)$e=wt[Wt],$e>=vt&&$e<Et&&(Et=$e);for(dt=xt+1,Et-vt>ke((me-mt)/dt)&&Re("overflow"),mt+=(Et-vt)*dt,vt=Et,Wt=0;Wt<Pt;++Wt)if($e=wt[Wt],$e<vt&&++mt>me&&Re("overflow"),$e==vt){for(St=mt,tt=Se;ft=tt<=kt?de:tt>=kt+z?z:tt-kt,!(St<ft);tt+=Se)Ve=St-ft,et=Se-ft,lt.push(Oe(pt(ft+Ve%et,0))),St=ke(Ve/et);lt.push(Oe(pt(St,0))),kt=bt(mt,dt,xt==At),mt=0,++xt}++mt,++vt}return lt.join("")}function gt(wt){return ze(wt,function(vt){return pe.test(vt)?qe(vt.slice(4).toLowerCase()):vt})}function Ct(wt){return ze(wt,function(vt){return Ee.test(vt)?"xn--"+at(vt):vt})}if(we={version:"1.4.1",ucs2:{decode:Ke,encode:ot},decode:qe,encode:at,toASCII:Ct,toUnicode:gt},typeof Ge=="function"&&typeof Ge.amd=="object"&&Ge.amd)Ge("punycode",function(){return we});else if(be&&Pe)if(_e.exports==be)Pe.exports=we;else for(Fe in we)we.hasOwnProperty(Fe)&&(be[Fe]=we[Fe]);else fe.punycode=we})(this)}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(oe,_e,Ne){"use strict";function ve(be,Pe){return Object.prototype.hasOwnProperty.call(be,Pe)}_e.exports=function(be,Pe,ye,we){Pe=Pe||"&",ye=ye||"=";var me={};if(typeof be!="string"||be.length===0)return me;var Se=/\+/g;be=be.split(Pe);var de=1e3;we&&typeof we.maxKeys=="number"&&(de=we.maxKeys);var z=be.length;de>0&&z>de&&(z=de);for(var ee=0;ee<z;++ee){var ae=be[ee].replace(Se,"%20"),re=ae.indexOf(ye),le,ue,pe,Ee;re>=0?(le=ae.substr(0,re),ue=ae.substr(re+1)):(le=ae,ue=""),pe=decodeURIComponent(le),Ee=decodeURIComponent(ue),ve(me,pe)?fe(me[pe])?me[pe].push(Ee):me[pe]=[me[pe],Ee]:me[pe]=Ee}return me};var fe=Array.isArray||function(be){return Object.prototype.toString.call(be)==="[object Array]"}},{}],384:[function(oe,_e,Ne){"use strict";var ve=function(ye){switch(typeof ye){case"string":return ye;case"boolean":return ye?"true":"false";case"number":return isFinite(ye)?ye:"";default:return""}};_e.exports=function(ye,we,me,Se){return we=we||"&",me=me||"=",ye===null&&(ye=void 0),typeof ye=="object"?be(Pe(ye),function(de){var z=encodeURIComponent(ve(de))+me;return fe(ye[de])?be(ye[de],function(ee){return z+encodeURIComponent(ve(ee))}).join(we):z+encodeURIComponent(ve(ye[de]))}).join(we):Se?encodeURIComponent(ve(Se))+me+encodeURIComponent(ve(ye)):""};var fe=Array.isArray||function(ye){return Object.prototype.toString.call(ye)==="[object Array]"};function be(ye,we){if(ye.map)return ye.map(we);for(var me=[],Se=0;Se<ye.length;Se++)me.push(we(ye[Se],Se));return me}var Pe=Object.keys||function(ye){var we=[];for(var me in ye)Object.prototype.hasOwnProperty.call(ye,me)&&we.push(me);return we}},{}],385:[function(oe,_e,Ne){"use strict";Ne.decode=Ne.parse=oe("./decode"),Ne.encode=Ne.stringify=oe("./encode")},{"./decode":383,"./encode":384}],386:[function(oe,_e,Ne){"use strict";var ve=oe("process-nextick-args"),fe=Object.keys||function(ae){var re=[];for(var le in ae)re.push(le);return re};_e.exports=de;var be=Object.create(oe("core-util-is"));be.inherits=oe("inherits");var Pe=oe("./_stream_readable"),ye=oe("./_stream_writable");be.inherits(de,Pe);for(var we=fe(ye.prototype),me=0;me<we.length;me++){var Se=we[me];de.prototype[Se]||(de.prototype[Se]=ye.prototype[Se])}function de(ae){if(!(this instanceof de))return new de(ae);Pe.call(this,ae),ye.call(this,ae),ae&&ae.readable===!1&&(this.readable=!1),ae&&ae.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,ae&&ae.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",z)}Object.defineProperty(de.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function z(){this.allowHalfOpen||this._writableState.ended||ve.nextTick(ee,this)}function ee(ae){ae.end()}Object.defineProperty(de.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(ae){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=ae,this._writableState.destroyed=ae)}}),de.prototype._destroy=function(ae,re){this.push(null),this.end(),ve.nextTick(re,ae)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(oe,_e,Ne){"use strict";_e.exports=be;var ve=oe("./_stream_transform"),fe=Object.create(oe("core-util-is"));fe.inherits=oe("inherits"),fe.inherits(be,ve);function be(Pe){if(!(this instanceof be))return new be(Pe);ve.call(this,Pe)}be.prototype._transform=function(Pe,ye,we){we(null,Pe)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(oe,_e,Ne){(function(ve,fe){(function(){"use strict";var be=oe("process-nextick-args");_e.exports=Oe;var Pe=oe("isarray"),ye;Oe.ReadableState=ke;var we=oe("events").EventEmitter,me=function($e,lt){return $e.listeners(lt).length},Se=oe("./internal/streams/stream"),de=oe("safe-buffer").Buffer,z=fe.Uint8Array||function(){};function ee($e){return de.from($e)}function ae($e){return de.isBuffer($e)||$e instanceof z}var re=Object.create(oe("core-util-is"));re.inherits=oe("inherits");var le=oe("util"),ue=void 0;le&&le.debuglog?ue=le.debuglog("stream"):ue=function(){};var pe=oe("./internal/streams/BufferList"),Ee=oe("./internal/streams/destroy"),Ce;re.inherits(Oe,Se);var je=["error","close","destroy","pause","resume"];function Le($e,lt,Pt){if(typeof $e.prependListener=="function")return $e.prependListener(lt,Pt);!$e._events||!$e._events[lt]?$e.on(lt,Pt):Pe($e._events[lt])?$e._events[lt].unshift(Pt):$e._events[lt]=[Pt,$e._events[lt]]}function ke($e,lt){ye=ye||oe("./_stream_duplex"),$e=$e||{};var Pt=lt instanceof ye;this.objectMode=!!$e.objectMode,Pt&&(this.objectMode=this.objectMode||!!$e.readableObjectMode);var dt=$e.highWaterMark,et=$e.readableHighWaterMark,Ve=this.objectMode?16:16*1024;dt||dt===0?this.highWaterMark=dt:Pt&&(et||et===0)?this.highWaterMark=et:this.highWaterMark=Ve,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new pe,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=$e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,$e.encoding&&(Ce||(Ce=oe("string_decoder/").StringDecoder),this.decoder=new Ce($e.encoding),this.encoding=$e.encoding)}function Oe($e){if(ye=ye||oe("./_stream_duplex"),!(this instanceof Oe))return new Oe($e);this._readableState=new ke($e,this),this.readable=!0,$e&&(typeof $e.read=="function"&&(this._read=$e.read),typeof $e.destroy=="function"&&(this._destroy=$e.destroy)),Se.call(this)}Object.defineProperty(Oe.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function($e){this._readableState&&(this._readableState.destroyed=$e)}}),Oe.prototype.destroy=Ee.destroy,Oe.prototype._undestroy=Ee.undestroy,Oe.prototype._destroy=function($e,lt){this.push(null),lt($e)},Oe.prototype.push=function($e,lt){var Pt=this._readableState,dt;return Pt.objectMode?dt=!0:typeof $e=="string"&&(lt=lt||Pt.defaultEncoding,lt!==Pt.encoding&&($e=de.from($e,lt),lt=""),dt=!0),Fe(this,$e,lt,!1,dt)},Oe.prototype.unshift=function($e){return Fe(this,$e,null,!0,!1)};function Fe($e,lt,Pt,dt,et){var Ve=$e._readableState;if(lt===null)Ve.reading=!1,pt($e,Ve);else{var He;et||(He=Ze(Ve,lt)),He?$e.emit("error",He):Ve.objectMode||lt&<.length>0?(typeof lt!="string"&&!Ve.objectMode&&Object.getPrototypeOf(lt)!==de.prototype&&(lt=ee(lt)),dt?Ve.endEmitted?$e.emit("error",new Error("stream.unshift() after end event")):Re($e,Ve,lt,!0):Ve.ended?$e.emit("error",new Error("stream.push() after EOF")):(Ve.reading=!1,Ve.decoder&&!Pt?(lt=Ve.decoder.write(lt),Ve.objectMode||lt.length!==0?Re($e,Ve,lt,!1):at($e,Ve)):Re($e,Ve,lt,!1))):dt||(Ve.reading=!1)}return ze(Ve)}function Re($e,lt,Pt,dt){lt.flowing&<.length===0&&!lt.sync?($e.emit("data",Pt),$e.read(0)):(lt.length+=lt.objectMode?1:Pt.length,dt?lt.buffer.unshift(Pt):lt.buffer.push(Pt),lt.needReadable&&bt($e)),at($e,lt)}function Ze($e,lt){var Pt;return!ae(lt)&&typeof lt!="string"&<!==void 0&&!$e.objectMode&&(Pt=new TypeError("Invalid non-string/buffer chunk")),Pt}function ze($e){return!$e.ended&&($e.needReadable||$e.length<$e.highWaterMark||$e.length===0)}Oe.prototype.isPaused=function(){return this._readableState.flowing===!1},Oe.prototype.setEncoding=function($e){return Ce||(Ce=oe("string_decoder/").StringDecoder),this._readableState.decoder=new Ce($e),this._readableState.encoding=$e,this};var Ke=8388608;function ot($e){return $e>=Ke?$e=Ke:($e--,$e|=$e>>>1,$e|=$e>>>2,$e|=$e>>>4,$e|=$e>>>8,$e|=$e>>>16,$e++),$e}function ct($e,lt){return $e<=0||lt.length===0&<.ended?0:lt.objectMode?1:$e!==$e?lt.flowing&<.length?lt.buffer.head.data.length:lt.length:($e>lt.highWaterMark&&(lt.highWaterMark=ot($e)),$e<=lt.length?$e:lt.ended?lt.length:(lt.needReadable=!0,0))}Oe.prototype.read=function($e){ue("read",$e),$e=parseInt($e,10);var lt=this._readableState,Pt=$e;if($e!==0&&(lt.emittedReadable=!1),$e===0&<.needReadable&&(lt.length>=lt.highWaterMark||lt.ended))return ue("read: emitReadable",lt.length,lt.ended),lt.length===0&<.ended?St(this):bt(this),null;if($e=ct($e,lt),$e===0&<.ended)return lt.length===0&&St(this),null;var dt=lt.needReadable;ue("need readable",dt),(lt.length===0||lt.length-$e<lt.highWaterMark)&&(dt=!0,ue("length less than watermark",dt)),lt.ended||lt.reading?(dt=!1,ue("reading or ended",dt)):dt&&(ue("do read"),lt.reading=!0,lt.sync=!0,lt.length===0&&(lt.needReadable=!0),this._read(lt.highWaterMark),lt.sync=!1,lt.reading||($e=ct(Pt,lt)));var et;return $e>0?et=At($e,lt):et=null,et===null?(lt.needReadable=!0,$e=0):lt.length-=$e,lt.length===0&&(lt.ended||(lt.needReadable=!0),Pt!==$e&<.ended&&St(this)),et!==null&&this.emit("data",et),et};function pt($e,lt){if(!lt.ended){if(lt.decoder){var Pt=lt.decoder.end();Pt&&Pt.length&&(lt.buffer.push(Pt),lt.length+=lt.objectMode?1:Pt.length)}lt.ended=!0,bt($e)}}function bt($e){var lt=$e._readableState;lt.needReadable=!1,lt.emittedReadable||(ue("emitReadable",lt.flowing),lt.emittedReadable=!0,lt.sync?be.nextTick(qe,$e):qe($e))}function qe($e){ue("emit readable"),$e.emit("readable"),xt($e)}function at($e,lt){lt.readingMore||(lt.readingMore=!0,be.nextTick(gt,$e,lt))}function gt($e,lt){for(var Pt=lt.length;!lt.reading&&!lt.flowing&&!lt.ended&<.length<lt.highWaterMark&&(ue("maybeReadMore read 0"),$e.read(0),Pt!==lt.length);)Pt=lt.length;lt.readingMore=!1}Oe.prototype._read=function($e){this.emit("error",new Error("_read() is not implemented"))},Oe.prototype.pipe=function($e,lt){var Pt=this,dt=this._readableState;switch(dt.pipesCount){case 0:dt.pipes=$e;break;case 1:dt.pipes=[dt.pipes,$e];break;default:dt.pipes.push($e);break}dt.pipesCount+=1,ue("pipe count=%d opts=%j",dt.pipesCount,lt);var et=(!lt||lt.end!==!1)&&$e!==ve.stdout&&$e!==ve.stderr,Ve=et?nt:Ht;dt.endEmitted?be.nextTick(Ve):Pt.once("end",Ve),$e.on("unpipe",He);function He(en,It){ue("onunpipe"),en===Pt&&It&&It.hasUnpiped===!1&&(It.hasUnpiped=!0,De())}function nt(){ue("onend"),$e.end()}var ut=Ct(Pt);$e.on("drain",ut);var We=!1;function De(){ue("cleanup"),$e.removeListener("close",Ye),$e.removeListener("finish",jt),$e.removeListener("drain",ut),$e.removeListener("error",yt),$e.removeListener("unpipe",He),Pt.removeListener("end",nt),Pt.removeListener("end",Ht),Pt.removeListener("data",Xe),We=!0,dt.awaitDrain&&(!$e._writableState||$e._writableState.needDrain)&&ut()}var Ie=!1;Pt.on("data",Xe);function Xe(en){ue("ondata"),Ie=!1;var It=$e.write(en);It===!1&&!Ie&&((dt.pipesCount===1&&dt.pipes===$e||dt.pipesCount>1&&ft(dt.pipes,$e)!==-1)&&!We&&(ue("false write response, pause",Pt._readableState.awaitDrain),Pt._readableState.awaitDrain++,Ie=!0),Pt.pause())}function yt(en){ue("onerror",en),Ht(),$e.removeListener("error",yt),me($e,"error")===0&&$e.emit("error",en)}Le($e,"error",yt);function Ye(){$e.removeListener("finish",jt),Ht()}$e.once("close",Ye);function jt(){ue("onfinish"),$e.removeListener("close",Ye),Ht()}$e.once("finish",jt);function Ht(){ue("unpipe"),Pt.unpipe($e)}return $e.emit("pipe",Pt),dt.flowing||(ue("pipe resume"),Pt.resume()),$e};function Ct($e){return function(){var lt=$e._readableState;ue("pipeOnDrain",lt.awaitDrain),lt.awaitDrain&<.awaitDrain--,lt.awaitDrain===0&&me($e,"data")&&(lt.flowing=!0,xt($e))}}Oe.prototype.unpipe=function($e){var lt=this._readableState,Pt={hasUnpiped:!1};if(lt.pipesCount===0)return this;if(lt.pipesCount===1)return $e&&$e!==lt.pipes?this:($e||($e=lt.pipes),lt.pipes=null,lt.pipesCount=0,lt.flowing=!1,$e&&$e.emit("unpipe",this,Pt),this);if(!$e){var dt=lt.pipes,et=lt.pipesCount;lt.pipes=null,lt.pipesCount=0,lt.flowing=!1;for(var Ve=0;Ve<et;Ve++)dt[Ve].emit("unpipe",this,Pt);return this}var He=ft(lt.pipes,$e);return He===-1?this:(lt.pipes.splice(He,1),lt.pipesCount-=1,lt.pipesCount===1&&(lt.pipes=lt.pipes[0]),$e.emit("unpipe",this,Pt),this)},Oe.prototype.on=function($e,lt){var Pt=Se.prototype.on.call(this,$e,lt);if($e==="data")this._readableState.flowing!==!1&&this.resume();else if($e==="readable"){var dt=this._readableState;!dt.endEmitted&&!dt.readableListening&&(dt.readableListening=dt.needReadable=!0,dt.emittedReadable=!1,dt.reading?dt.length&&bt(this):be.nextTick(wt,this))}return Pt},Oe.prototype.addListener=Oe.prototype.on;function wt($e){ue("readable nexttick read 0"),$e.read(0)}Oe.prototype.resume=function(){var $e=this._readableState;return $e.flowing||(ue("resume"),$e.flowing=!0,vt(this,$e)),this};function vt($e,lt){lt.resumeScheduled||(lt.resumeScheduled=!0,be.nextTick(mt,$e,lt))}function mt($e,lt){lt.reading||(ue("resume read 0"),$e.read(0)),lt.resumeScheduled=!1,lt.awaitDrain=0,$e.emit("resume"),xt($e),lt.flowing&&!lt.reading&&$e.read(0)}Oe.prototype.pause=function(){return ue("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ue("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function xt($e){var lt=$e._readableState;for(ue("flow",lt.flowing);lt.flowing&&$e.read()!==null;);}Oe.prototype.wrap=function($e){var lt=this,Pt=this._readableState,dt=!1;$e.on("end",function(){if(ue("wrapped end"),Pt.decoder&&!Pt.ended){var He=Pt.decoder.end();He&&He.length&<.push(He)}lt.push(null)}),$e.on("data",function(He){if(ue("wrapped data"),Pt.decoder&&(He=Pt.decoder.write(He)),!(Pt.objectMode&&He==null)&&!(!Pt.objectMode&&(!He||!He.length))){var nt=lt.push(He);nt||(dt=!0,$e.pause())}});for(var et in $e)this[et]===void 0&&typeof $e[et]=="function"&&(this[et]=function(He){return function(){return $e[He].apply($e,arguments)}}(et));for(var Ve=0;Ve<je.length;Ve++)$e.on(je[Ve],this.emit.bind(this,je[Ve]));return this._read=function(He){ue("wrapped _read",He),dt&&(dt=!1,$e.resume())},this},Object.defineProperty(Oe.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Oe._fromList=At;function At($e,lt){if(lt.length===0)return null;var Pt;return lt.objectMode?Pt=lt.buffer.shift():!$e||$e>=lt.length?(lt.decoder?Pt=lt.buffer.join(""):lt.buffer.length===1?Pt=lt.buffer.head.data:Pt=lt.buffer.concat(lt.length),lt.buffer.clear()):Pt=kt($e,lt.buffer,lt.decoder),Pt}function kt($e,lt,Pt){var dt;return $e<lt.head.data.length?(dt=lt.head.data.slice(0,$e),lt.head.data=lt.head.data.slice($e)):$e===lt.head.data.length?dt=lt.shift():dt=Pt?Wt($e,lt):Et($e,lt),dt}function Wt($e,lt){var Pt=lt.head,dt=1,et=Pt.data;for($e-=et.length;Pt=Pt.next;){var Ve=Pt.data,He=$e>Ve.length?Ve.length:$e;if(He===Ve.length?et+=Ve:et+=Ve.slice(0,$e),$e-=He,$e===0){He===Ve.length?(++dt,Pt.next?lt.head=Pt.next:lt.head=lt.tail=null):(lt.head=Pt,Pt.data=Ve.slice(He));break}++dt}return lt.length-=dt,et}function Et($e,lt){var Pt=de.allocUnsafe($e),dt=lt.head,et=1;for(dt.data.copy(Pt),$e-=dt.data.length;dt=dt.next;){var Ve=dt.data,He=$e>Ve.length?Ve.length:$e;if(Ve.copy(Pt,Pt.length-$e,0,He),$e-=He,$e===0){He===Ve.length?(++et,dt.next?lt.head=dt.next:lt.head=lt.tail=null):(lt.head=dt,dt.data=Ve.slice(He));break}++et}return lt.length-=et,Pt}function St($e){var lt=$e._readableState;if(lt.length>0)throw new Error('"endReadable()" called on non-empty stream');lt.endEmitted||(lt.ended=!0,be.nextTick(tt,lt,$e))}function tt($e,lt){!$e.endEmitted&&$e.length===0&&($e.endEmitted=!0,lt.readable=!1,lt.emit("end"))}function ft($e,lt){for(var Pt=0,dt=$e.length;Pt<dt;Pt++)if($e[Pt]===lt)return Pt;return-1}}).call(this)}).call(this,oe("_process"),typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":386,"./internal/streams/BufferList":391,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,events:344,inherits:364,isarray:370,"process-nextick-args":380,"safe-buffer":396,"string_decoder/":413,util:89}],389:[function(oe,_e,Ne){"use strict";_e.exports=Pe;var ve=oe("./_stream_duplex"),fe=Object.create(oe("core-util-is"));fe.inherits=oe("inherits"),fe.inherits(Pe,ve);function be(me,Se){var de=this._transformState;de.transforming=!1;var z=de.writecb;if(!z)return this.emit("error",new Error("write callback called multiple times"));de.writechunk=null,de.writecb=null,Se!=null&&this.push(Se),z(me);var ee=this._readableState;ee.reading=!1,(ee.needReadable||ee.length<ee.highWaterMark)&&this._read(ee.highWaterMark)}function Pe(me){if(!(this instanceof Pe))return new Pe(me);ve.call(this,me),this._transformState={afterTransform:be.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,me&&(typeof me.transform=="function"&&(this._transform=me.transform),typeof me.flush=="function"&&(this._flush=me.flush)),this.on("prefinish",ye)}function ye(){var me=this;typeof this._flush=="function"?this._flush(function(Se,de){we(me,Se,de)}):we(this,null,null)}Pe.prototype.push=function(me,Se){return this._transformState.needTransform=!1,ve.prototype.push.call(this,me,Se)},Pe.prototype._transform=function(me,Se,de){throw new Error("_transform() is not implemented")},Pe.prototype._write=function(me,Se,de){var z=this._transformState;if(z.writecb=de,z.writechunk=me,z.writeencoding=Se,!z.transforming){var ee=this._readableState;(z.needTransform||ee.needReadable||ee.length<ee.highWaterMark)&&this._read(ee.highWaterMark)}},Pe.prototype._read=function(me){var Se=this._transformState;Se.writechunk!==null&&Se.writecb&&!Se.transforming?(Se.transforming=!0,this._transform(Se.writechunk,Se.writeencoding,Se.afterTransform)):Se.needTransform=!0},Pe.prototype._destroy=function(me,Se){var de=this;ve.prototype._destroy.call(this,me,function(z){Se(z),de.emit("close")})};function we(me,Se,de){if(Se)return me.emit("error",Se);if(de!=null&&me.push(de),me._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(me._transformState.transforming)throw new Error("Calling transform done when still transforming");return me.push(null)}},{"./_stream_duplex":386,"core-util-is":341,inherits:364}],390:[function(oe,_e,Ne){(function(ve,fe,be){(function(){"use strict";var Pe=oe("process-nextick-args");_e.exports=Le;function ye(mt,xt,At){this.chunk=mt,this.encoding=xt,this.callback=At,this.next=null}function we(mt){var xt=this;this.next=null,this.entry=null,this.finish=function(){vt(xt,mt)}}var me=!ve.browser&&["v0.10","v0.9."].indexOf(ve.version.slice(0,5))>-1?be:Pe.nextTick,Se;Le.WritableState=Ce;var de=Object.create(oe("core-util-is"));de.inherits=oe("inherits");var z={deprecate:oe("util-deprecate")},ee=oe("./internal/streams/stream"),ae=oe("safe-buffer").Buffer,re=fe.Uint8Array||function(){};function le(mt){return ae.from(mt)}function ue(mt){return ae.isBuffer(mt)||mt instanceof re}var pe=oe("./internal/streams/destroy");de.inherits(Le,ee);function Ee(){}function Ce(mt,xt){Se=Se||oe("./_stream_duplex"),mt=mt||{};var At=xt instanceof Se;this.objectMode=!!mt.objectMode,At&&(this.objectMode=this.objectMode||!!mt.writableObjectMode);var kt=mt.highWaterMark,Wt=mt.writableHighWaterMark,Et=this.objectMode?16:16*1024;kt||kt===0?this.highWaterMark=kt:At&&(Wt||Wt===0)?this.highWaterMark=Wt:this.highWaterMark=Et,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var St=mt.decodeStrings===!1;this.decodeStrings=!St,this.defaultEncoding=mt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(tt){ot(xt,tt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new we(this)}Ce.prototype.getBuffer=function(){for(var xt=this.bufferedRequest,At=[];xt;)At.push(xt),xt=xt.next;return At},function(){try{Object.defineProperty(Ce.prototype,"buffer",{get:z.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(mt){}}();var je;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(je=Function.prototype[Symbol.hasInstance],Object.defineProperty(Le,Symbol.hasInstance,{value:function(mt){return je.call(this,mt)?!0:this!==Le?!1:mt&&mt._writableState instanceof Ce}})):je=function(mt){return mt instanceof this};function Le(mt){if(Se=Se||oe("./_stream_duplex"),!je.call(Le,this)&&!(this instanceof Se))return new Le(mt);this._writableState=new Ce(mt,this),this.writable=!0,mt&&(typeof mt.write=="function"&&(this._write=mt.write),typeof mt.writev=="function"&&(this._writev=mt.writev),typeof mt.destroy=="function"&&(this._destroy=mt.destroy),typeof mt.final=="function"&&(this._final=mt.final)),ee.call(this)}Le.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function ke(mt,xt){var At=new Error("write after end");mt.emit("error",At),Pe.nextTick(xt,At)}function Oe(mt,xt,At,kt){var Wt=!0,Et=!1;return At===null?Et=new TypeError("May not write null values to stream"):typeof At!="string"&&At!==void 0&&!xt.objectMode&&(Et=new TypeError("Invalid non-string/buffer chunk")),Et&&(mt.emit("error",Et),Pe.nextTick(kt,Et),Wt=!1),Wt}Le.prototype.write=function(mt,xt,At){var kt=this._writableState,Wt=!1,Et=!kt.objectMode&&ue(mt);return Et&&!ae.isBuffer(mt)&&(mt=le(mt)),typeof xt=="function"&&(At=xt,xt=null),Et?xt="buffer":xt||(xt=kt.defaultEncoding),typeof At!="function"&&(At=Ee),kt.ended?ke(this,At):(Et||Oe(this,kt,mt,At))&&(kt.pendingcb++,Wt=Re(this,kt,Et,mt,xt,At)),Wt},Le.prototype.cork=function(){var mt=this._writableState;mt.corked++},Le.prototype.uncork=function(){var mt=this._writableState;mt.corked&&(mt.corked--,!mt.writing&&!mt.corked&&!mt.finished&&!mt.bufferProcessing&&mt.bufferedRequest&&bt(this,mt))},Le.prototype.setDefaultEncoding=function(xt){if(typeof xt=="string"&&(xt=xt.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((xt+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+xt);return this._writableState.defaultEncoding=xt,this};function Fe(mt,xt,At){return!mt.objectMode&&mt.decodeStrings!==!1&&typeof xt=="string"&&(xt=ae.from(xt,At)),xt}Object.defineProperty(Le.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Re(mt,xt,At,kt,Wt,Et){if(!At){var St=Fe(xt,kt,Wt);kt!==St&&(At=!0,Wt="buffer",kt=St)}var tt=xt.objectMode?1:kt.length;xt.length+=tt;var ft=xt.length<xt.highWaterMark;if(ft||(xt.needDrain=!0),xt.writing||xt.corked){var $e=xt.lastBufferedRequest;xt.lastBufferedRequest={chunk:kt,encoding:Wt,isBuf:At,callback:Et,next:null},$e?$e.next=xt.lastBufferedRequest:xt.bufferedRequest=xt.lastBufferedRequest,xt.bufferedRequestCount+=1}else Ze(mt,xt,!1,tt,kt,Wt,Et);return ft}function Ze(mt,xt,At,kt,Wt,Et,St){xt.writelen=kt,xt.writecb=St,xt.writing=!0,xt.sync=!0,At?mt._writev(Wt,xt.onwrite):mt._write(Wt,Et,xt.onwrite),xt.sync=!1}function ze(mt,xt,At,kt,Wt){--xt.pendingcb,At?(Pe.nextTick(Wt,kt),Pe.nextTick(Ct,mt,xt),mt._writableState.errorEmitted=!0,mt.emit("error",kt)):(Wt(kt),mt._writableState.errorEmitted=!0,mt.emit("error",kt),Ct(mt,xt))}function Ke(mt){mt.writing=!1,mt.writecb=null,mt.length-=mt.writelen,mt.writelen=0}function ot(mt,xt){var At=mt._writableState,kt=At.sync,Wt=At.writecb;if(Ke(At),xt)ze(mt,At,kt,xt,Wt);else{var Et=qe(At);!Et&&!At.corked&&!At.bufferProcessing&&At.bufferedRequest&&bt(mt,At),kt?me(ct,mt,At,Et,Wt):ct(mt,At,Et,Wt)}}function ct(mt,xt,At,kt){At||pt(mt,xt),xt.pendingcb--,kt(),Ct(mt,xt)}function pt(mt,xt){xt.length===0&&xt.needDrain&&(xt.needDrain=!1,mt.emit("drain"))}function bt(mt,xt){xt.bufferProcessing=!0;var At=xt.bufferedRequest;if(mt._writev&&At&&At.next){var kt=xt.bufferedRequestCount,Wt=new Array(kt),Et=xt.corkedRequestsFree;Et.entry=At;for(var St=0,tt=!0;At;)Wt[St]=At,At.isBuf||(tt=!1),At=At.next,St+=1;Wt.allBuffers=tt,Ze(mt,xt,!0,xt.length,Wt,"",Et.finish),xt.pendingcb++,xt.lastBufferedRequest=null,Et.next?(xt.corkedRequestsFree=Et.next,Et.next=null):xt.corkedRequestsFree=new we(xt),xt.bufferedRequestCount=0}else{for(;At;){var ft=At.chunk,$e=At.encoding,lt=At.callback,Pt=xt.objectMode?1:ft.length;if(Ze(mt,xt,!1,Pt,ft,$e,lt),At=At.next,xt.bufferedRequestCount--,xt.writing)break}At===null&&(xt.lastBufferedRequest=null)}xt.bufferedRequest=At,xt.bufferProcessing=!1}Le.prototype._write=function(mt,xt,At){At(new Error("_write() is not implemented"))},Le.prototype._writev=null,Le.prototype.end=function(mt,xt,At){var kt=this._writableState;typeof mt=="function"?(At=mt,mt=null,xt=null):typeof xt=="function"&&(At=xt,xt=null),mt!=null&&this.write(mt,xt),kt.corked&&(kt.corked=1,this.uncork()),!kt.ending&&!kt.finished&&wt(this,kt,At)};function qe(mt){return mt.ending&&mt.length===0&&mt.bufferedRequest===null&&!mt.finished&&!mt.writing}function at(mt,xt){mt._final(function(At){xt.pendingcb--,At&&mt.emit("error",At),xt.prefinished=!0,mt.emit("prefinish"),Ct(mt,xt)})}function gt(mt,xt){!xt.prefinished&&!xt.finalCalled&&(typeof mt._final=="function"?(xt.pendingcb++,xt.finalCalled=!0,Pe.nextTick(at,mt,xt)):(xt.prefinished=!0,mt.emit("prefinish")))}function Ct(mt,xt){var At=qe(xt);return At&&(gt(mt,xt),xt.pendingcb===0&&(xt.finished=!0,mt.emit("finish"))),At}function wt(mt,xt,At){xt.ending=!0,Ct(mt,xt),At&&(xt.finished?Pe.nextTick(At):mt.once("finish",At)),xt.ended=!0,mt.writable=!1}function vt(mt,xt,At){var kt=mt.entry;for(mt.entry=null;kt;){var Wt=kt.callback;xt.pendingcb--,Wt(At),kt=kt.next}xt.corkedRequestsFree?xt.corkedRequestsFree.next=mt:xt.corkedRequestsFree=mt}Object.defineProperty(Le.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(mt){this._writableState&&(this._writableState.destroyed=mt)}}),Le.prototype.destroy=pe.destroy,Le.prototype._undestroy=pe.undestroy,Le.prototype._destroy=function(mt,xt){this.end(),xt(mt)}}).call(this)}).call(this,oe("_process"),typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{},oe("timers").setImmediate)},{"./_stream_duplex":386,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,inherits:364,"process-nextick-args":380,"safe-buffer":396,timers:414,"util-deprecate":416}],391:[function(oe,_e,Ne){"use strict";function ve(ye,we){if(!(ye instanceof we))throw new TypeError("Cannot call a class as a function")}var fe=oe("safe-buffer").Buffer,be=oe("util");function Pe(ye,we,me){ye.copy(we,me)}_e.exports=function(){function ye(){ve(this,ye),this.head=null,this.tail=null,this.length=0}return ye.prototype.push=function(me){var Se={data:me,next:null};this.length>0?this.tail.next=Se:this.head=Se,this.tail=Se,++this.length},ye.prototype.unshift=function(me){var Se={data:me,next:this.head};this.length===0&&(this.tail=Se),this.head=Se,++this.length},ye.prototype.shift=function(){if(this.length!==0){var me=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,me}},ye.prototype.clear=function(){this.head=this.tail=null,this.length=0},ye.prototype.join=function(me){if(this.length===0)return"";for(var Se=this.head,de=""+Se.data;Se=Se.next;)de+=me+Se.data;return de},ye.prototype.concat=function(me){if(this.length===0)return fe.alloc(0);if(this.length===1)return this.head.data;for(var Se=fe.allocUnsafe(me>>>0),de=this.head,z=0;de;)Pe(de.data,Se,z),z+=de.data.length,de=de.next;return Se},ye}(),be&&be.inspect&&be.inspect.custom&&(_e.exports.prototype[be.inspect.custom]=function(){var ye=be.inspect({length:this.length});return this.constructor.name+" "+ye})},{"safe-buffer":396,util:89}],392:[function(oe,_e,Ne){"use strict";var ve=oe("process-nextick-args");function fe(ye,we){var me=this,Se=this._readableState&&this._readableState.destroyed,de=this._writableState&&this._writableState.destroyed;return Se||de?(we?we(ye):ye&&(!this._writableState||!this._writableState.errorEmitted)&&ve.nextTick(Pe,this,ye),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ye||null,function(z){!we&&z?(ve.nextTick(Pe,me,z),me._writableState&&(me._writableState.errorEmitted=!0)):we&&we(z)}),this)}function be(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Pe(ye,we){ye.emit("error",we)}_e.exports={destroy:fe,undestroy:be}},{"process-nextick-args":380}],393:[function(oe,_e,Ne){_e.exports=oe("events").EventEmitter},{events:344}],394:[function(oe,_e,Ne){Ne=_e.exports=oe("./lib/_stream_readable.js"),Ne.Stream=Ne,Ne.Readable=Ne,Ne.Writable=oe("./lib/_stream_writable.js"),Ne.Duplex=oe("./lib/_stream_duplex.js"),Ne.Transform=oe("./lib/_stream_transform.js"),Ne.PassThrough=oe("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":386,"./lib/_stream_passthrough.js":387,"./lib/_stream_readable.js":388,"./lib/_stream_transform.js":389,"./lib/_stream_writable.js":390}],395:[function(oe,_e,Ne){var ve=function(fe){"use strict";var be=Object.prototype,Pe=be.hasOwnProperty,ye,we=typeof Symbol=="function"?Symbol:{},me=we.iterator||"@@iterator",Se=we.asyncIterator||"@@asyncIterator",de=we.toStringTag||"@@toStringTag";function z(gt,Ct,wt){return Object.defineProperty(gt,Ct,{value:wt,enumerable:!0,configurable:!0,writable:!0}),gt[Ct]}try{z({},"")}catch(gt){z=function(Ct,wt,vt){return Ct[wt]=vt}}function ee(gt,Ct,wt,vt){var mt=Ct&&Ct.prototype instanceof Ce?Ct:Ce,xt=Object.create(mt.prototype),At=new bt(vt||[]);return xt._invoke=Ke(gt,wt,At),xt}fe.wrap=ee;function ae(gt,Ct,wt){try{return{type:"normal",arg:gt.call(Ct,wt)}}catch(vt){return{type:"throw",arg:vt}}}var re="suspendedStart",le="suspendedYield",ue="executing",pe="completed",Ee={};function Ce(){}function je(){}function Le(){}var ke={};z(ke,me,function(){return this});var Oe=Object.getPrototypeOf,Fe=Oe&&Oe(Oe(qe([])));Fe&&Fe!==be&&Pe.call(Fe,me)&&(ke=Fe);var Re=Le.prototype=Ce.prototype=Object.create(ke);je.prototype=Le,z(Re,"constructor",Le),z(Le,"constructor",je),je.displayName=z(Le,de,"GeneratorFunction");function Ze(gt){["next","throw","return"].forEach(function(Ct){z(gt,Ct,function(wt){return this._invoke(Ct,wt)})})}fe.isGeneratorFunction=function(gt){var Ct=typeof gt=="function"&>.constructor;return Ct?Ct===je||(Ct.displayName||Ct.name)==="GeneratorFunction":!1},fe.mark=function(gt){return Object.setPrototypeOf?Object.setPrototypeOf(gt,Le):(gt.__proto__=Le,z(gt,de,"GeneratorFunction")),gt.prototype=Object.create(Re),gt},fe.awrap=function(gt){return{__await:gt}};function ze(gt,Ct){function wt(xt,At,kt,Wt){var Et=ae(gt[xt],gt,At);if(Et.type==="throw")Wt(Et.arg);else{var St=Et.arg,tt=St.value;return tt&&typeof tt=="object"&&Pe.call(tt,"__await")?Ct.resolve(tt.__await).then(function(ft){wt("next",ft,kt,Wt)},function(ft){wt("throw",ft,kt,Wt)}):Ct.resolve(tt).then(function(ft){St.value=ft,kt(St)},function(ft){return wt("throw",ft,kt,Wt)})}}var vt;function mt(xt,At){function kt(){return new Ct(function(Wt,Et){wt(xt,At,Wt,Et)})}return vt=vt?vt.then(kt,kt):kt()}this._invoke=mt}Ze(ze.prototype),z(ze.prototype,Se,function(){return this}),fe.AsyncIterator=ze,fe.async=function(gt,Ct,wt,vt,mt){mt===void 0&&(mt=Promise);var xt=new ze(ee(gt,Ct,wt,vt),mt);return fe.isGeneratorFunction(Ct)?xt:xt.next().then(function(At){return At.done?At.value:xt.next()})};function Ke(gt,Ct,wt){var vt=re;return function(xt,At){if(vt===ue)throw new Error("Generator is already running");if(vt===pe){if(xt==="throw")throw At;return at()}for(wt.method=xt,wt.arg=At;;){var kt=wt.delegate;if(kt){var Wt=ot(kt,wt);if(Wt){if(Wt===Ee)continue;return Wt}}if(wt.method==="next")wt.sent=wt._sent=wt.arg;else if(wt.method==="throw"){if(vt===re)throw vt=pe,wt.arg;wt.dispatchException(wt.arg)}else wt.method==="return"&&wt.abrupt("return",wt.arg);vt=ue;var Et=ae(gt,Ct,wt);if(Et.type==="normal"){if(vt=wt.done?pe:le,Et.arg===Ee)continue;return{value:Et.arg,done:wt.done}}else Et.type==="throw"&&(vt=pe,wt.method="throw",wt.arg=Et.arg)}}}function ot(gt,Ct){var wt=gt.iterator[Ct.method];if(wt===ye){if(Ct.delegate=null,Ct.method==="throw"){if(gt.iterator.return&&(Ct.method="return",Ct.arg=ye,ot(gt,Ct),Ct.method==="throw"))return Ee;Ct.method="throw",Ct.arg=new TypeError("The iterator does not provide a 'throw' method")}return Ee}var vt=ae(wt,gt.iterator,Ct.arg);if(vt.type==="throw")return Ct.method="throw",Ct.arg=vt.arg,Ct.delegate=null,Ee;var mt=vt.arg;if(!mt)return Ct.method="throw",Ct.arg=new TypeError("iterator result is not an object"),Ct.delegate=null,Ee;if(mt.done)Ct[gt.resultName]=mt.value,Ct.next=gt.nextLoc,Ct.method!=="return"&&(Ct.method="next",Ct.arg=ye);else return mt;return Ct.delegate=null,Ee}Ze(Re),z(Re,de,"Generator"),z(Re,me,function(){return this}),z(Re,"toString",function(){return"[object Generator]"});function ct(gt){var Ct={tryLoc:gt[0]};1 in gt&&(Ct.catchLoc=gt[1]),2 in gt&&(Ct.finallyLoc=gt[2],Ct.afterLoc=gt[3]),this.tryEntries.push(Ct)}function pt(gt){var Ct=gt.completion||{};Ct.type="normal",delete Ct.arg,gt.completion=Ct}function bt(gt){this.tryEntries=[{tryLoc:"root"}],gt.forEach(ct,this),this.reset(!0)}fe.keys=function(gt){var Ct=[];for(var wt in gt)Ct.push(wt);return Ct.reverse(),function vt(){for(;Ct.length;){var mt=Ct.pop();if(mt in gt)return vt.value=mt,vt.done=!1,vt}return vt.done=!0,vt}};function qe(gt){if(gt){var Ct=gt[me];if(Ct)return Ct.call(gt);if(typeof gt.next=="function")return gt;if(!isNaN(gt.length)){var wt=-1,vt=function mt(){for(;++wt<gt.length;)if(Pe.call(gt,wt))return mt.value=gt[wt],mt.done=!1,mt;return mt.value=ye,mt.done=!0,mt};return vt.next=vt}}return{next:at}}fe.values=qe;function at(){return{value:ye,done:!0}}return bt.prototype={constructor:bt,reset:function(gt){if(this.prev=0,this.next=0,this.sent=this._sent=ye,this.done=!1,this.delegate=null,this.method="next",this.arg=ye,this.tryEntries.forEach(pt),!gt)for(var Ct in this)Ct.charAt(0)==="t"&&Pe.call(this,Ct)&&!isNaN(+Ct.slice(1))&&(this[Ct]=ye)},stop:function(){this.done=!0;var gt=this.tryEntries[0],Ct=gt.completion;if(Ct.type==="throw")throw Ct.arg;return this.rval},dispatchException:function(gt){if(this.done)throw gt;var Ct=this;function wt(Wt,Et){return xt.type="throw",xt.arg=gt,Ct.next=Wt,Et&&(Ct.method="next",Ct.arg=ye),!!Et}for(var vt=this.tryEntries.length-1;vt>=0;--vt){var mt=this.tryEntries[vt],xt=mt.completion;if(mt.tryLoc==="root")return wt("end");if(mt.tryLoc<=this.prev){var At=Pe.call(mt,"catchLoc"),kt=Pe.call(mt,"finallyLoc");if(At&&kt){if(this.prev<mt.catchLoc)return wt(mt.catchLoc,!0);if(this.prev<mt.finallyLoc)return wt(mt.finallyLoc)}else if(At){if(this.prev<mt.catchLoc)return wt(mt.catchLoc,!0)}else if(kt){if(this.prev<mt.finallyLoc)return wt(mt.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(gt,Ct){for(var wt=this.tryEntries.length-1;wt>=0;--wt){var vt=this.tryEntries[wt];if(vt.tryLoc<=this.prev&&Pe.call(vt,"finallyLoc")&&this.prev<vt.finallyLoc){var mt=vt;break}}mt&&(gt==="break"||gt==="continue")&&mt.tryLoc<=Ct&&Ct<=mt.finallyLoc&&(mt=null);var xt=mt?mt.completion:{};return xt.type=gt,xt.arg=Ct,mt?(this.method="next",this.next=mt.finallyLoc,Ee):this.complete(xt)},complete:function(gt,Ct){if(gt.type==="throw")throw gt.arg;return gt.type==="break"||gt.type==="continue"?this.next=gt.arg:gt.type==="return"?(this.rval=this.arg=gt.arg,this.method="return",this.next="end"):gt.type==="normal"&&Ct&&(this.next=Ct),Ee},finish:function(gt){for(var Ct=this.tryEntries.length-1;Ct>=0;--Ct){var wt=this.tryEntries[Ct];if(wt.finallyLoc===gt)return this.complete(wt.completion,wt.afterLoc),pt(wt),Ee}},catch:function(gt){for(var Ct=this.tryEntries.length-1;Ct>=0;--Ct){var wt=this.tryEntries[Ct];if(wt.tryLoc===gt){var vt=wt.completion;if(vt.type==="throw"){var mt=vt.arg;pt(wt)}return mt}}throw new Error("illegal catch attempt")},delegateYield:function(gt,Ct,wt){return this.delegate={iterator:qe(gt),resultName:Ct,nextLoc:wt},this.method==="next"&&(this.arg=ye),Ee}},fe}(typeof _e=="object"?_e.exports:{});try{regeneratorRuntime=ve}catch(fe){typeof globalThis=="object"?globalThis.regeneratorRuntime=ve:Function("r","regeneratorRuntime = r")(ve)}},{}],396:[function(oe,_e,Ne){var ve=oe("buffer"),fe=ve.Buffer;function be(ye,we){for(var me in ye)we[me]=ye[me]}fe.from&&fe.alloc&&fe.allocUnsafe&&fe.allocUnsafeSlow?_e.exports=ve:(be(ve,Ne),Ne.Buffer=Pe);function Pe(ye,we,me){return fe(ye,we,me)}be(fe,Pe),Pe.from=function(ye,we,me){if(typeof ye=="number")throw new TypeError("Argument must not be a number");return fe(ye,we,me)},Pe.alloc=function(ye,we,me){if(typeof ye!="number")throw new TypeError("Argument must be a number");var Se=fe(ye);return we!==void 0?typeof me=="string"?Se.fill(we,me):Se.fill(we):Se.fill(0),Se},Pe.allocUnsafe=function(ye){if(typeof ye!="number")throw new TypeError("Argument must be a number");return fe(ye)},Pe.allocUnsafeSlow=function(ye){if(typeof ye!="number")throw new TypeError("Argument must be a number");return ve.SlowBuffer(ye)}},{buffer:90}],397:[function(oe,_e,Ne){(function(ve){(function(){(function(fe){fe.parser=function(St,tt){return new Pe(St,tt)},fe.SAXParser=Pe,fe.SAXStream=ee,fe.createStream=z,fe.MAX_BUFFER_LENGTH=64*1024;var be=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];fe.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function Pe(St,tt){if(!(this instanceof Pe))return new Pe(St,tt);var ft=this;we(ft),ft.q=ft.c="",ft.bufferCheckPosition=fe.MAX_BUFFER_LENGTH,ft.opt=tt||{},ft.opt.lowercase=ft.opt.lowercase||ft.opt.lowercasetags,ft.looseCase=ft.opt.lowercase?"toLowerCase":"toUpperCase",ft.tags=[],ft.closed=ft.closedRoot=ft.sawRoot=!1,ft.tag=ft.error=null,ft.strict=!!St,ft.noscript=!!(St||ft.opt.noscript),ft.state=ze.BEGIN,ft.strictEntities=ft.opt.strictEntities,ft.ENTITIES=ft.strictEntities?Object.create(fe.XML_ENTITIES):Object.create(fe.ENTITIES),ft.attribList=[],ft.opt.xmlns&&(ft.ns=Object.create(pe)),ft.trackPosition=ft.opt.position!==!1,ft.trackPosition&&(ft.position=ft.line=ft.column=0),ot(ft,"onready")}Object.create||(Object.create=function(St){function tt(){}tt.prototype=St;var ft=new tt;return ft}),Object.keys||(Object.keys=function(St){var tt=[];for(var ft in St)St.hasOwnProperty(ft)&&tt.push(ft);return tt});function ye(St){for(var tt=Math.max(fe.MAX_BUFFER_LENGTH,10),ft=0,$e=0,lt=be.length;$e<lt;$e++){var Pt=St[be[$e]].length;if(Pt>tt)switch(be[$e]){case"textNode":pt(St);break;case"cdata":ct(St,"oncdata",St.cdata),St.cdata="";break;case"script":ct(St,"onscript",St.script),St.script="";break;default:qe(St,"Max buffer length exceeded: "+be[$e])}ft=Math.max(ft,Pt)}var dt=fe.MAX_BUFFER_LENGTH-ft;St.bufferCheckPosition=dt+St.position}function we(St){for(var tt=0,ft=be.length;tt<ft;tt++)St[be[tt]]=""}function me(St){pt(St),St.cdata!==""&&(ct(St,"oncdata",St.cdata),St.cdata=""),St.script!==""&&(ct(St,"onscript",St.script),St.script="")}Pe.prototype={end:function(){at(this)},write:Et,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){me(this)}};var Se;try{Se=oe("stream").Stream}catch(St){Se=function(){}}var de=fe.EVENTS.filter(function(St){return St!=="error"&&St!=="end"});function z(St,tt){return new ee(St,tt)}function ee(St,tt){if(!(this instanceof ee))return new ee(St,tt);Se.apply(this),this._parser=new Pe(St,tt),this.writable=!0,this.readable=!0;var ft=this;this._parser.onend=function(){ft.emit("end")},this._parser.onerror=function($e){ft.emit("error",$e),ft._parser.error=null},this._decoder=null,de.forEach(function($e){Object.defineProperty(ft,"on"+$e,{get:function(){return ft._parser["on"+$e]},set:function(lt){if(!lt)return ft.removeAllListeners($e),ft._parser["on"+$e]=lt,lt;ft.on($e,lt)},enumerable:!0,configurable:!1})})}ee.prototype=Object.create(Se.prototype,{constructor:{value:ee}}),ee.prototype.write=function(St){if(typeof ve=="function"&&typeof ve.isBuffer=="function"&&ve.isBuffer(St)){if(!this._decoder){var tt=oe("string_decoder").StringDecoder;this._decoder=new tt("utf8")}St=this._decoder.write(St)}return this._parser.write(St.toString()),this.emit("data",St),!0},ee.prototype.end=function(St){return St&&St.length&&this.write(St),this._parser.end(),!0},ee.prototype.on=function(St,tt){var ft=this;return!ft._parser["on"+St]&&de.indexOf(St)!==-1&&(ft._parser["on"+St]=function(){var $e=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);$e.splice(0,0,St),ft.emit.apply(ft,$e)}),Se.prototype.on.call(ft,St,tt)};var ae="[CDATA[",re="DOCTYPE",le="http://www.w3.org/XML/1998/namespace",ue="http://www.w3.org/2000/xmlns/",pe={xml:le,xmlns:ue},Ee=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Ce=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,je=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Le=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function ke(St){return St===" "||St===`
|
|
|
`||St==="\r"||St===" "}function Oe(St){return St==='"'||St==="'"}function Fe(St){return St===">"||ke(St)}function Re(St,tt){return St.test(tt)}function Ze(St,tt){return!Re(St,tt)}var ze=0;fe.STATE={BEGIN:ze++,BEGIN_WHITESPACE:ze++,TEXT:ze++,TEXT_ENTITY:ze++,OPEN_WAKA:ze++,SGML_DECL:ze++,SGML_DECL_QUOTED:ze++,DOCTYPE:ze++,DOCTYPE_QUOTED:ze++,DOCTYPE_DTD:ze++,DOCTYPE_DTD_QUOTED:ze++,COMMENT_STARTING:ze++,COMMENT:ze++,COMMENT_ENDING:ze++,COMMENT_ENDED:ze++,CDATA:ze++,CDATA_ENDING:ze++,CDATA_ENDING_2:ze++,PROC_INST:ze++,PROC_INST_BODY:ze++,PROC_INST_ENDING:ze++,OPEN_TAG:ze++,OPEN_TAG_SLASH:ze++,ATTRIB:ze++,ATTRIB_NAME:ze++,ATTRIB_NAME_SAW_WHITE:ze++,ATTRIB_VALUE:ze++,ATTRIB_VALUE_QUOTED:ze++,ATTRIB_VALUE_CLOSED:ze++,ATTRIB_VALUE_UNQUOTED:ze++,ATTRIB_VALUE_ENTITY_Q:ze++,ATTRIB_VALUE_ENTITY_U:ze++,CLOSE_TAG:ze++,CLOSE_TAG_SAW_WHITE:ze++,SCRIPT:ze++,SCRIPT_ENDING:ze++},fe.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},fe.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(fe.ENTITIES).forEach(function(St){var tt=fe.ENTITIES[St],ft=typeof tt=="number"?String.fromCharCode(tt):tt;fe.ENTITIES[St]=ft});for(var Ke in fe.STATE)fe.STATE[fe.STATE[Ke]]=Ke;ze=fe.STATE;function ot(St,tt,ft){St[tt]&&St[tt](ft)}function ct(St,tt,ft){St.textNode&&pt(St),ot(St,tt,ft)}function pt(St){St.textNode=bt(St.opt,St.textNode),St.textNode&&ot(St,"ontext",St.textNode),St.textNode=""}function bt(St,tt){return St.trim&&(tt=tt.trim()),St.normalize&&(tt=tt.replace(/\s+/g," ")),tt}function qe(St,tt){return pt(St),St.trackPosition&&(tt+=`
|
|
|
Line: `+St.line+`
|
|
|
Column: `+St.column+`
|
|
|
Char: `+St.c),tt=new Error(tt),St.error=tt,ot(St,"onerror",tt),St}function at(St){return St.sawRoot&&!St.closedRoot&>(St,"Unclosed root tag"),St.state!==ze.BEGIN&&St.state!==ze.BEGIN_WHITESPACE&&St.state!==ze.TEXT&&qe(St,"Unexpected end"),pt(St),St.c="",St.closed=!0,ot(St,"onend"),Pe.call(St,St.strict,St.opt),St}function gt(St,tt){if(typeof St!="object"||!(St instanceof Pe))throw new Error("bad call to strictFail");St.strict&&qe(St,tt)}function Ct(St){St.strict||(St.tagName=St.tagName[St.looseCase]());var tt=St.tags[St.tags.length-1]||St,ft=St.tag={name:St.tagName,attributes:{}};St.opt.xmlns&&(ft.ns=tt.ns),St.attribList.length=0,ct(St,"onopentagstart",ft)}function wt(St,tt){var ft=St.indexOf(":"),$e=ft<0?["",St]:St.split(":"),lt=$e[0],Pt=$e[1];return tt&&St==="xmlns"&&(lt="xmlns",Pt=""),{prefix:lt,local:Pt}}function vt(St){if(St.strict||(St.attribName=St.attribName[St.looseCase]()),St.attribList.indexOf(St.attribName)!==-1||St.tag.attributes.hasOwnProperty(St.attribName)){St.attribName=St.attribValue="";return}if(St.opt.xmlns){var tt=wt(St.attribName,!0),ft=tt.prefix,$e=tt.local;if(ft==="xmlns")if($e==="xml"&&St.attribValue!==le)gt(St,"xml: prefix must be bound to "+le+`
|
|
|
Actual: `+St.attribValue);else if($e==="xmlns"&&St.attribValue!==ue)gt(St,"xmlns: prefix must be bound to "+ue+`
|
|
|
Actual: `+St.attribValue);else{var lt=St.tag,Pt=St.tags[St.tags.length-1]||St;lt.ns===Pt.ns&&(lt.ns=Object.create(Pt.ns)),lt.ns[$e]=St.attribValue}St.attribList.push([St.attribName,St.attribValue])}else St.tag.attributes[St.attribName]=St.attribValue,ct(St,"onattribute",{name:St.attribName,value:St.attribValue});St.attribName=St.attribValue=""}function mt(St,tt){if(St.opt.xmlns){var ft=St.tag,$e=wt(St.tagName);ft.prefix=$e.prefix,ft.local=$e.local,ft.uri=ft.ns[$e.prefix]||"",ft.prefix&&!ft.uri&&(gt(St,"Unbound namespace prefix: "+JSON.stringify(St.tagName)),ft.uri=$e.prefix);var lt=St.tags[St.tags.length-1]||St;ft.ns&<.ns!==ft.ns&&Object.keys(ft.ns).forEach(function(Xe){ct(St,"onopennamespace",{prefix:Xe,uri:ft.ns[Xe]})});for(var Pt=0,dt=St.attribList.length;Pt<dt;Pt++){var et=St.attribList[Pt],Ve=et[0],He=et[1],nt=wt(Ve,!0),ut=nt.prefix,We=nt.local,De=ut===""?"":ft.ns[ut]||"",Ie={name:Ve,value:He,prefix:ut,local:We,uri:De};ut&&ut!=="xmlns"&&!De&&(gt(St,"Unbound namespace prefix: "+JSON.stringify(ut)),Ie.uri=ut),St.tag.attributes[Ve]=Ie,ct(St,"onattribute",Ie)}St.attribList.length=0}St.tag.isSelfClosing=!!tt,St.sawRoot=!0,St.tags.push(St.tag),ct(St,"onopentag",St.tag),tt||(!St.noscript&&St.tagName.toLowerCase()==="script"?St.state=ze.SCRIPT:St.state=ze.TEXT,St.tag=null,St.tagName=""),St.attribName=St.attribValue="",St.attribList.length=0}function xt(St){if(!St.tagName){gt(St,"Weird empty close tag."),St.textNode+="</>",St.state=ze.TEXT;return}if(St.script){if(St.tagName!=="script"){St.script+="</"+St.tagName+">",St.tagName="",St.state=ze.SCRIPT;return}ct(St,"onscript",St.script),St.script=""}var tt=St.tags.length,ft=St.tagName;St.strict||(ft=ft[St.looseCase]());for(var $e=ft;tt--;){var lt=St.tags[tt];if(lt.name!==$e)gt(St,"Unexpected close tag");else break}if(tt<0){gt(St,"Unmatched closing tag: "+St.tagName),St.textNode+="</"+St.tagName+">",St.state=ze.TEXT;return}St.tagName=ft;for(var Pt=St.tags.length;Pt-- >tt;){var dt=St.tag=St.tags.pop();St.tagName=St.tag.name,ct(St,"onclosetag",St.tagName);var et={};for(var Ve in dt.ns)et[Ve]=dt.ns[Ve];var He=St.tags[St.tags.length-1]||St;St.opt.xmlns&&dt.ns!==He.ns&&Object.keys(dt.ns).forEach(function(nt){var ut=dt.ns[nt];ct(St,"onclosenamespace",{prefix:nt,uri:ut})})}tt===0&&(St.closedRoot=!0),St.tagName=St.attribValue=St.attribName="",St.attribList.length=0,St.state=ze.TEXT}function At(St){var tt=St.entity,ft=tt.toLowerCase(),$e,lt="";return St.ENTITIES[tt]?St.ENTITIES[tt]:St.ENTITIES[ft]?St.ENTITIES[ft]:(tt=ft,tt.charAt(0)==="#"&&(tt.charAt(1)==="x"?(tt=tt.slice(2),$e=parseInt(tt,16),lt=$e.toString(16)):(tt=tt.slice(1),$e=parseInt(tt,10),lt=$e.toString(10))),tt=tt.replace(/^0+/,""),isNaN($e)||lt.toLowerCase()!==tt?(gt(St,"Invalid character entity"),"&"+St.entity+";"):String.fromCodePoint($e))}function kt(St,tt){tt==="<"?(St.state=ze.OPEN_WAKA,St.startTagPosition=St.position):ke(tt)||(gt(St,"Non-whitespace before first tag."),St.textNode=tt,St.state=ze.TEXT)}function Wt(St,tt){var ft="";return tt<St.length&&(ft=St.charAt(tt)),ft}function Et(St){var tt=this;if(this.error)throw this.error;if(tt.closed)return qe(tt,"Cannot write after close. Assign an onready handler.");if(St===null)return at(tt);typeof St=="object"&&(St=St.toString());for(var ft=0,$e="";$e=Wt(St,ft++),tt.c=$e,!!$e;)switch(tt.trackPosition&&(tt.position++,$e===`
|
|
|
`?(tt.line++,tt.column=0):tt.column++),tt.state){case ze.BEGIN:if(tt.state=ze.BEGIN_WHITESPACE,$e==="\uFEFF")continue;kt(tt,$e);continue;case ze.BEGIN_WHITESPACE:kt(tt,$e);continue;case ze.TEXT:if(tt.sawRoot&&!tt.closedRoot){for(var lt=ft-1;$e&&$e!=="<"&&$e!=="&";)$e=Wt(St,ft++),$e&&tt.trackPosition&&(tt.position++,$e===`
|
|
|
`?(tt.line++,tt.column=0):tt.column++);tt.textNode+=St.substring(lt,ft-1)}$e==="<"&&!(tt.sawRoot&&tt.closedRoot&&!tt.strict)?(tt.state=ze.OPEN_WAKA,tt.startTagPosition=tt.position):(!ke($e)&&(!tt.sawRoot||tt.closedRoot)&>(tt,"Text data outside of root node."),$e==="&"?tt.state=ze.TEXT_ENTITY:tt.textNode+=$e);continue;case ze.SCRIPT:$e==="<"?tt.state=ze.SCRIPT_ENDING:tt.script+=$e;continue;case ze.SCRIPT_ENDING:$e==="/"?tt.state=ze.CLOSE_TAG:(tt.script+="<"+$e,tt.state=ze.SCRIPT);continue;case ze.OPEN_WAKA:if($e==="!")tt.state=ze.SGML_DECL,tt.sgmlDecl="";else if(!ke($e))if(Re(Ee,$e))tt.state=ze.OPEN_TAG,tt.tagName=$e;else if($e==="/")tt.state=ze.CLOSE_TAG,tt.tagName="";else if($e==="?")tt.state=ze.PROC_INST,tt.procInstName=tt.procInstBody="";else{if(gt(tt,"Unencoded <"),tt.startTagPosition+1<tt.position){var Pt=tt.position-tt.startTagPosition;$e=new Array(Pt).join(" ")+$e}tt.textNode+="<"+$e,tt.state=ze.TEXT}continue;case ze.SGML_DECL:(tt.sgmlDecl+$e).toUpperCase()===ae?(ct(tt,"onopencdata"),tt.state=ze.CDATA,tt.sgmlDecl="",tt.cdata=""):tt.sgmlDecl+$e==="--"?(tt.state=ze.COMMENT,tt.comment="",tt.sgmlDecl=""):(tt.sgmlDecl+$e).toUpperCase()===re?(tt.state=ze.DOCTYPE,(tt.doctype||tt.sawRoot)&>(tt,"Inappropriately located doctype declaration"),tt.doctype="",tt.sgmlDecl=""):$e===">"?(ct(tt,"onsgmldeclaration",tt.sgmlDecl),tt.sgmlDecl="",tt.state=ze.TEXT):(Oe($e)&&(tt.state=ze.SGML_DECL_QUOTED),tt.sgmlDecl+=$e);continue;case ze.SGML_DECL_QUOTED:$e===tt.q&&(tt.state=ze.SGML_DECL,tt.q=""),tt.sgmlDecl+=$e;continue;case ze.DOCTYPE:$e===">"?(tt.state=ze.TEXT,ct(tt,"ondoctype",tt.doctype),tt.doctype=!0):(tt.doctype+=$e,$e==="["?tt.state=ze.DOCTYPE_DTD:Oe($e)&&(tt.state=ze.DOCTYPE_QUOTED,tt.q=$e));continue;case ze.DOCTYPE_QUOTED:tt.doctype+=$e,$e===tt.q&&(tt.q="",tt.state=ze.DOCTYPE);continue;case ze.DOCTYPE_DTD:tt.doctype+=$e,$e==="]"?tt.state=ze.DOCTYPE:Oe($e)&&(tt.state=ze.DOCTYPE_DTD_QUOTED,tt.q=$e);continue;case ze.DOCTYPE_DTD_QUOTED:tt.doctype+=$e,$e===tt.q&&(tt.state=ze.DOCTYPE_DTD,tt.q="");continue;case ze.COMMENT:$e==="-"?tt.state=ze.COMMENT_ENDING:tt.comment+=$e;continue;case ze.COMMENT_ENDING:$e==="-"?(tt.state=ze.COMMENT_ENDED,tt.comment=bt(tt.opt,tt.comment),tt.comment&&ct(tt,"oncomment",tt.comment),tt.comment=""):(tt.comment+="-"+$e,tt.state=ze.COMMENT);continue;case ze.COMMENT_ENDED:$e!==">"?(gt(tt,"Malformed comment"),tt.comment+="--"+$e,tt.state=ze.COMMENT):tt.state=ze.TEXT;continue;case ze.CDATA:$e==="]"?tt.state=ze.CDATA_ENDING:tt.cdata+=$e;continue;case ze.CDATA_ENDING:$e==="]"?tt.state=ze.CDATA_ENDING_2:(tt.cdata+="]"+$e,tt.state=ze.CDATA);continue;case ze.CDATA_ENDING_2:$e===">"?(tt.cdata&&ct(tt,"oncdata",tt.cdata),ct(tt,"onclosecdata"),tt.cdata="",tt.state=ze.TEXT):$e==="]"?tt.cdata+="]":(tt.cdata+="]]"+$e,tt.state=ze.CDATA);continue;case ze.PROC_INST:$e==="?"?tt.state=ze.PROC_INST_ENDING:ke($e)?tt.state=ze.PROC_INST_BODY:tt.procInstName+=$e;continue;case ze.PROC_INST_BODY:if(!tt.procInstBody&&ke($e))continue;$e==="?"?tt.state=ze.PROC_INST_ENDING:tt.procInstBody+=$e;continue;case ze.PROC_INST_ENDING:$e===">"?(ct(tt,"onprocessinginstruction",{name:tt.procInstName,body:tt.procInstBody}),tt.procInstName=tt.procInstBody="",tt.state=ze.TEXT):(tt.procInstBody+="?"+$e,tt.state=ze.PROC_INST_BODY);continue;case ze.OPEN_TAG:Re(Ce,$e)?tt.tagName+=$e:(Ct(tt),$e===">"?mt(tt):$e==="/"?tt.state=ze.OPEN_TAG_SLASH:(ke($e)||gt(tt,"Invalid character in tag name"),tt.state=ze.ATTRIB));continue;case ze.OPEN_TAG_SLASH:$e===">"?(mt(tt,!0),xt(tt)):(gt(tt,"Forward-slash in opening tag not followed by >"),tt.state=ze.ATTRIB);continue;case ze.ATTRIB:if(ke($e))continue;$e===">"?mt(tt):$e==="/"?tt.state=ze.OPEN_TAG_SLASH:Re(Ee,$e)?(tt.attribName=$e,tt.attribValue="",tt.state=ze.ATTRIB_NAME):gt(tt,"Invalid attribute name");continue;case ze.ATTRIB_NAME:$e==="="?tt.state=ze.ATTRIB_VALUE:$e===">"?(gt(tt,"Attribute without value"),tt.attribValue=tt.attribName,vt(tt),mt(tt)):ke($e)?tt.state=ze.ATTRIB_NAME_SAW_WHITE:Re(Ce,$e)?tt.attribName+=$e:gt(tt,"Invalid attribute name");continue;case ze.ATTRIB_NAME_SAW_WHITE:if($e==="=")tt.state=ze.ATTRIB_VALUE;else{if(ke($e))continue;gt(tt,"Attribute without value"),tt.tag.attributes[tt.attribName]="",tt.attribValue="",ct(tt,"onattribute",{name:tt.attribName,value:""}),tt.attribName="",$e===">"?mt(tt):Re(Ee,$e)?(tt.attribName=$e,tt.state=ze.ATTRIB_NAME):(gt(tt,"Invalid attribute name"),tt.state=ze.ATTRIB)}continue;case ze.ATTRIB_VALUE:if(ke($e))continue;Oe($e)?(tt.q=$e,tt.state=ze.ATTRIB_VALUE_QUOTED):(gt(tt,"Unquoted attribute value"),tt.state=ze.ATTRIB_VALUE_UNQUOTED,tt.attribValue=$e);continue;case ze.ATTRIB_VALUE_QUOTED:if($e!==tt.q){$e==="&"?tt.state=ze.ATTRIB_VALUE_ENTITY_Q:tt.attribValue+=$e;continue}vt(tt),tt.q="",tt.state=ze.ATTRIB_VALUE_CLOSED;continue;case ze.ATTRIB_VALUE_CLOSED:ke($e)?tt.state=ze.ATTRIB:$e===">"?mt(tt):$e==="/"?tt.state=ze.OPEN_TAG_SLASH:Re(Ee,$e)?(gt(tt,"No whitespace between attributes"),tt.attribName=$e,tt.attribValue="",tt.state=ze.ATTRIB_NAME):gt(tt,"Invalid attribute name");continue;case ze.ATTRIB_VALUE_UNQUOTED:if(!Fe($e)){$e==="&"?tt.state=ze.ATTRIB_VALUE_ENTITY_U:tt.attribValue+=$e;continue}vt(tt),$e===">"?mt(tt):tt.state=ze.ATTRIB;continue;case ze.CLOSE_TAG:if(tt.tagName)$e===">"?xt(tt):Re(Ce,$e)?tt.tagName+=$e:tt.script?(tt.script+="</"+tt.tagName,tt.tagName="",tt.state=ze.SCRIPT):(ke($e)||gt(tt,"Invalid tagname in closing tag"),tt.state=ze.CLOSE_TAG_SAW_WHITE);else{if(ke($e))continue;Ze(Ee,$e)?tt.script?(tt.script+="</"+$e,tt.state=ze.SCRIPT):gt(tt,"Invalid tagname in closing tag."):tt.tagName=$e}continue;case ze.CLOSE_TAG_SAW_WHITE:if(ke($e))continue;$e===">"?xt(tt):gt(tt,"Invalid characters in closing tag");continue;case ze.TEXT_ENTITY:case ze.ATTRIB_VALUE_ENTITY_Q:case ze.ATTRIB_VALUE_ENTITY_U:var dt,et;switch(tt.state){case ze.TEXT_ENTITY:dt=ze.TEXT,et="textNode";break;case ze.ATTRIB_VALUE_ENTITY_Q:dt=ze.ATTRIB_VALUE_QUOTED,et="attribValue";break;case ze.ATTRIB_VALUE_ENTITY_U:dt=ze.ATTRIB_VALUE_UNQUOTED,et="attribValue";break}$e===";"?(tt[et]+=At(tt),tt.entity="",tt.state=dt):Re(tt.entity.length?Le:je,$e)?tt.entity+=$e:(gt(tt,"Invalid character in entity name"),tt[et]+="&"+tt.entity+$e,tt.entity="",tt.state=dt);continue;default:throw new Error(tt,"Unknown state: "+tt.state)}return tt.position>=tt.bufferCheckPosition&&ye(tt),tt}String.fromCodePoint||function(){var St=String.fromCharCode,tt=Math.floor,ft=function(){var $e=16384,lt=[],Pt,dt,et=-1,Ve=arguments.length;if(!Ve)return"";for(var He="";++et<Ve;){var nt=Number(arguments[et]);if(!isFinite(nt)||nt<0||nt>1114111||tt(nt)!==nt)throw RangeError("Invalid code point: "+nt);nt<=65535?lt.push(nt):(nt-=65536,Pt=(nt>>10)+55296,dt=nt%1024+56320,lt.push(Pt,dt)),(et+1===Ve||lt.length>$e)&&(He+=St.apply(null,lt),lt.length=0)}return He};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:ft,configurable:!0,writable:!0}):String.fromCodePoint=ft}()})(typeof Ne=="undefined"?this.sax={}:Ne)}).call(this)}).call(this,oe("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(oe,_e,Ne){_e.exports=be;var ve=oe("events").EventEmitter,fe=oe("inherits");fe(be,ve),be.Readable=oe("readable-stream/lib/_stream_readable.js"),be.Writable=oe("readable-stream/lib/_stream_writable.js"),be.Duplex=oe("readable-stream/lib/_stream_duplex.js"),be.Transform=oe("readable-stream/lib/_stream_transform.js"),be.PassThrough=oe("readable-stream/lib/_stream_passthrough.js"),be.finished=oe("readable-stream/lib/internal/streams/end-of-stream.js"),be.pipeline=oe("readable-stream/lib/internal/streams/pipeline.js"),be.Stream=be;function be(){ve.call(this)}be.prototype.pipe=function(Pe,ye){var we=this;function me(le){Pe.writable&&Pe.write(le)===!1&&we.pause&&we.pause()}we.on("data",me);function Se(){we.readable&&we.resume&&we.resume()}Pe.on("drain",Se),!Pe._isStdio&&(!ye||ye.end!==!1)&&(we.on("end",z),we.on("close",ee));var de=!1;function z(){de||(de=!0,Pe.end())}function ee(){de||(de=!0,typeof Pe.destroy=="function"&&Pe.destroy())}function ae(le){if(re(),ve.listenerCount(this,"error")===0)throw le}we.on("error",ae),Pe.on("error",ae);function re(){we.removeListener("data",me),Pe.removeListener("drain",Se),we.removeListener("end",z),we.removeListener("close",ee),we.removeListener("error",ae),Pe.removeListener("error",ae),we.removeListener("end",re),we.removeListener("close",re),Pe.removeListener("close",re)}return we.on("end",re),we.on("close",re),Pe.on("close",re),Pe.emit("pipe",we),Pe}},{events:344,inherits:364,"readable-stream/lib/_stream_duplex.js":400,"readable-stream/lib/_stream_passthrough.js":401,"readable-stream/lib/_stream_readable.js":402,"readable-stream/lib/_stream_transform.js":403,"readable-stream/lib/_stream_writable.js":404,"readable-stream/lib/internal/streams/end-of-stream.js":408,"readable-stream/lib/internal/streams/pipeline.js":410}],399:[function(oe,_e,Ne){"use strict";function ve(Se,de){Se.prototype=Object.create(de.prototype),Se.prototype.constructor=Se,Se.__proto__=de}var fe={};function be(Se,de,z){z||(z=Error);function ee(re,le,ue){return typeof de=="string"?de:de(re,le,ue)}var ae=function(re){ve(le,re);function le(ue,pe,Ee){return re.call(this,ee(ue,pe,Ee))||this}return le}(z);ae.prototype.name=z.name,ae.prototype.code=Se,fe[Se]=ae}function Pe(Se,de){if(Array.isArray(Se)){var z=Se.length;return Se=Se.map(function(ee){return String(ee)}),z>2?"one of ".concat(de," ").concat(Se.slice(0,z-1).join(", "),", or ")+Se[z-1]:z===2?"one of ".concat(de," ").concat(Se[0]," or ").concat(Se[1]):"of ".concat(de," ").concat(Se[0])}else return"of ".concat(de," ").concat(String(Se))}function ye(Se,de,z){return Se.substr(!z||z<0?0:+z,de.length)===de}function we(Se,de,z){return(z===void 0||z>Se.length)&&(z=Se.length),Se.substring(z-de.length,z)===de}function me(Se,de,z){return typeof z!="number"&&(z=0),z+de.length>Se.length?!1:Se.indexOf(de,z)!==-1}be("ERR_INVALID_OPT_VALUE",function(Se,de){return'The value "'+de+'" is invalid for option "'+Se+'"'},TypeError),be("ERR_INVALID_ARG_TYPE",function(Se,de,z){var ee;typeof de=="string"&&ye(de,"not ")?(ee="must not be",de=de.replace(/^not /,"")):ee="must be";var ae;if(we(Se," argument"))ae="The ".concat(Se," ").concat(ee," ").concat(Pe(de,"type"));else{var re=me(Se,".")?"property":"argument";ae='The "'.concat(Se,'" ').concat(re," ").concat(ee," ").concat(Pe(de,"type"))}return ae+=". Received type ".concat(typeof z),ae},TypeError),be("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),be("ERR_METHOD_NOT_IMPLEMENTED",function(Se){return"The "+Se+" method is not implemented"}),be("ERR_STREAM_PREMATURE_CLOSE","Premature close"),be("ERR_STREAM_DESTROYED",function(Se){return"Cannot call "+Se+" after a stream was destroyed"}),be("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),be("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),be("ERR_STREAM_WRITE_AFTER_END","write after end"),be("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),be("ERR_UNKNOWN_ENCODING",function(Se){return"Unknown encoding: "+Se},TypeError),be("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),_e.exports.codes=fe},{}],400:[function(oe,_e,Ne){(function(ve){(function(){"use strict";var fe=Object.keys||function(ee){var ae=[];for(var re in ee)ae.push(re);return ae};_e.exports=Se;var be=oe("./_stream_readable"),Pe=oe("./_stream_writable");oe("inherits")(Se,be);for(var ye=fe(Pe.prototype),we=0;we<ye.length;we++){var me=ye[we];Se.prototype[me]||(Se.prototype[me]=Pe.prototype[me])}function Se(ee){if(!(this instanceof Se))return new Se(ee);be.call(this,ee),Pe.call(this,ee),this.allowHalfOpen=!0,ee&&(ee.readable===!1&&(this.readable=!1),ee.writable===!1&&(this.writable=!1),ee.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",de)))}Object.defineProperty(Se.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(Se.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Se.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function de(){this._writableState.ended||ve.nextTick(z,this)}function z(ee){ee.end()}Object.defineProperty(Se.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(ae){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=ae,this._writableState.destroyed=ae)}})}).call(this)}).call(this,oe("_process"))},{"./_stream_readable":402,"./_stream_writable":404,_process:467,inherits:364}],401:[function(oe,_e,Ne){"use strict";_e.exports=fe;var ve=oe("./_stream_transform");oe("inherits")(fe,ve);function fe(be){if(!(this instanceof fe))return new fe(be);ve.call(this,be)}fe.prototype._transform=function(be,Pe,ye){ye(null,be)}},{"./_stream_transform":403,inherits:364}],402:[function(oe,_e,Ne){(function(ve,fe){(function(){"use strict";_e.exports=ct;var be;ct.ReadableState=ot;var Pe=oe("events").EventEmitter,ye=function(Ve,He){return Ve.listeners(He).length},we=oe("./internal/streams/stream"),me=oe("buffer").Buffer,Se=(typeof fe!="undefined"?fe:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function de(et){return me.from(et)}function z(et){return me.isBuffer(et)||et instanceof Se}var ee=oe("util"),ae;ee&&ee.debuglog?ae=ee.debuglog("stream"):ae=function(){};var re=oe("./internal/streams/buffer_list"),le=oe("./internal/streams/destroy"),ue=oe("./internal/streams/state"),pe=ue.getHighWaterMark,Ee=oe("../errors").codes,Ce=Ee.ERR_INVALID_ARG_TYPE,je=Ee.ERR_STREAM_PUSH_AFTER_EOF,Le=Ee.ERR_METHOD_NOT_IMPLEMENTED,ke=Ee.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Oe,Fe,Re;oe("inherits")(ct,we);var Ze=le.errorOrDestroy,ze=["error","close","destroy","pause","resume"];function Ke(et,Ve,He){if(typeof et.prependListener=="function")return et.prependListener(Ve,He);!et._events||!et._events[Ve]?et.on(Ve,He):Array.isArray(et._events[Ve])?et._events[Ve].unshift(He):et._events[Ve]=[He,et._events[Ve]]}function ot(et,Ve,He){be=be||oe("./_stream_duplex"),et=et||{},typeof He!="boolean"&&(He=Ve instanceof be),this.objectMode=!!et.objectMode,He&&(this.objectMode=this.objectMode||!!et.readableObjectMode),this.highWaterMark=pe(this,et,"readableHighWaterMark",He),this.buffer=new re,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=et.emitClose!==!1,this.autoDestroy=!!et.autoDestroy,this.destroyed=!1,this.defaultEncoding=et.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,et.encoding&&(Oe||(Oe=oe("string_decoder/").StringDecoder),this.decoder=new Oe(et.encoding),this.encoding=et.encoding)}function ct(et){if(be=be||oe("./_stream_duplex"),!(this instanceof ct))return new ct(et);var Ve=this instanceof be;this._readableState=new ot(et,this,Ve),this.readable=!0,et&&(typeof et.read=="function"&&(this._read=et.read),typeof et.destroy=="function"&&(this._destroy=et.destroy)),we.call(this)}Object.defineProperty(ct.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Ve){this._readableState&&(this._readableState.destroyed=Ve)}}),ct.prototype.destroy=le.destroy,ct.prototype._undestroy=le.undestroy,ct.prototype._destroy=function(et,Ve){Ve(et)},ct.prototype.push=function(et,Ve){var He=this._readableState,nt;return He.objectMode?nt=!0:typeof et=="string"&&(Ve=Ve||He.defaultEncoding,Ve!==He.encoding&&(et=me.from(et,Ve),Ve=""),nt=!0),pt(this,et,Ve,!1,nt)},ct.prototype.unshift=function(et){return pt(this,et,null,!0,!1)};function pt(et,Ve,He,nt,ut){ae("readableAddChunk",Ve);var We=et._readableState;if(Ve===null)We.reading=!1,wt(et,We);else{var De;if(ut||(De=qe(We,Ve)),De)Ze(et,De);else if(We.objectMode||Ve&&Ve.length>0)if(typeof Ve!="string"&&!We.objectMode&&Object.getPrototypeOf(Ve)!==me.prototype&&(Ve=de(Ve)),nt)We.endEmitted?Ze(et,new ke):bt(et,We,Ve,!0);else if(We.ended)Ze(et,new je);else{if(We.destroyed)return!1;We.reading=!1,We.decoder&&!He?(Ve=We.decoder.write(Ve),We.objectMode||Ve.length!==0?bt(et,We,Ve,!1):xt(et,We)):bt(et,We,Ve,!1)}else nt||(We.reading=!1,xt(et,We))}return!We.ended&&(We.length<We.highWaterMark||We.length===0)}function bt(et,Ve,He,nt){Ve.flowing&&Ve.length===0&&!Ve.sync?(Ve.awaitDrain=0,et.emit("data",He)):(Ve.length+=Ve.objectMode?1:He.length,nt?Ve.buffer.unshift(He):Ve.buffer.push(He),Ve.needReadable&&vt(et)),xt(et,Ve)}function qe(et,Ve){var He;return!z(Ve)&&typeof Ve!="string"&&Ve!==void 0&&!et.objectMode&&(He=new Ce("chunk",["string","Buffer","Uint8Array"],Ve)),He}ct.prototype.isPaused=function(){return this._readableState.flowing===!1},ct.prototype.setEncoding=function(et){Oe||(Oe=oe("string_decoder/").StringDecoder);var Ve=new Oe(et);this._readableState.decoder=Ve,this._readableState.encoding=this._readableState.decoder.encoding;for(var He=this._readableState.buffer.head,nt="";He!==null;)nt+=Ve.write(He.data),He=He.next;return this._readableState.buffer.clear(),nt!==""&&this._readableState.buffer.push(nt),this._readableState.length=nt.length,this};var at=1073741824;function gt(et){return et>=at?et=at:(et--,et|=et>>>1,et|=et>>>2,et|=et>>>4,et|=et>>>8,et|=et>>>16,et++),et}function Ct(et,Ve){return et<=0||Ve.length===0&&Ve.ended?0:Ve.objectMode?1:et!==et?Ve.flowing&&Ve.length?Ve.buffer.head.data.length:Ve.length:(et>Ve.highWaterMark&&(Ve.highWaterMark=gt(et)),et<=Ve.length?et:Ve.ended?Ve.length:(Ve.needReadable=!0,0))}ct.prototype.read=function(et){ae("read",et),et=parseInt(et,10);var Ve=this._readableState,He=et;if(et!==0&&(Ve.emittedReadable=!1),et===0&&Ve.needReadable&&((Ve.highWaterMark!==0?Ve.length>=Ve.highWaterMark:Ve.length>0)||Ve.ended))return ae("read: emitReadable",Ve.length,Ve.ended),Ve.length===0&&Ve.ended?lt(this):vt(this),null;if(et=Ct(et,Ve),et===0&&Ve.ended)return Ve.length===0&<(this),null;var nt=Ve.needReadable;ae("need readable",nt),(Ve.length===0||Ve.length-et<Ve.highWaterMark)&&(nt=!0,ae("length less than watermark",nt)),Ve.ended||Ve.reading?(nt=!1,ae("reading or ended",nt)):nt&&(ae("do read"),Ve.reading=!0,Ve.sync=!0,Ve.length===0&&(Ve.needReadable=!0),this._read(Ve.highWaterMark),Ve.sync=!1,Ve.reading||(et=Ct(He,Ve)));var ut;return et>0?ut=$e(et,Ve):ut=null,ut===null?(Ve.needReadable=Ve.length<=Ve.highWaterMark,et=0):(Ve.length-=et,Ve.awaitDrain=0),Ve.length===0&&(Ve.ended||(Ve.needReadable=!0),He!==et&&Ve.ended&<(this)),ut!==null&&this.emit("data",ut),ut};function wt(et,Ve){if(ae("onEofChunk"),!Ve.ended){if(Ve.decoder){var He=Ve.decoder.end();He&&He.length&&(Ve.buffer.push(He),Ve.length+=Ve.objectMode?1:He.length)}Ve.ended=!0,Ve.sync?vt(et):(Ve.needReadable=!1,Ve.emittedReadable||(Ve.emittedReadable=!0,mt(et)))}}function vt(et){var Ve=et._readableState;ae("emitReadable",Ve.needReadable,Ve.emittedReadable),Ve.needReadable=!1,Ve.emittedReadable||(ae("emitReadable",Ve.flowing),Ve.emittedReadable=!0,ve.nextTick(mt,et))}function mt(et){var Ve=et._readableState;ae("emitReadable_",Ve.destroyed,Ve.length,Ve.ended),!Ve.destroyed&&(Ve.length||Ve.ended)&&(et.emit("readable"),Ve.emittedReadable=!1),Ve.needReadable=!Ve.flowing&&!Ve.ended&&Ve.length<=Ve.highWaterMark,ft(et)}function xt(et,Ve){Ve.readingMore||(Ve.readingMore=!0,ve.nextTick(At,et,Ve))}function At(et,Ve){for(;!Ve.reading&&!Ve.ended&&(Ve.length<Ve.highWaterMark||Ve.flowing&&Ve.length===0);){var He=Ve.length;if(ae("maybeReadMore read 0"),et.read(0),He===Ve.length)break}Ve.readingMore=!1}ct.prototype._read=function(et){Ze(this,new Le("_read()"))},ct.prototype.pipe=function(et,Ve){var He=this,nt=this._readableState;switch(nt.pipesCount){case 0:nt.pipes=et;break;case 1:nt.pipes=[nt.pipes,et];break;default:nt.pipes.push(et);break}nt.pipesCount+=1,ae("pipe count=%d opts=%j",nt.pipesCount,Ve);var ut=(!Ve||Ve.end!==!1)&&et!==ve.stdout&&et!==ve.stderr,We=ut?Ie:Ut;nt.endEmitted?ve.nextTick(We):He.once("end",We),et.on("unpipe",De);function De(tn,ln){ae("onunpipe"),tn===He&&ln&&ln.hasUnpiped===!1&&(ln.hasUnpiped=!0,Ye())}function Ie(){ae("onend"),et.end()}var Xe=kt(He);et.on("drain",Xe);var yt=!1;function Ye(){ae("cleanup"),et.removeListener("close",en),et.removeListener("finish",It),et.removeListener("drain",Xe),et.removeListener("error",Ht),et.removeListener("unpipe",De),He.removeListener("end",Ie),He.removeListener("end",Ut),He.removeListener("data",jt),yt=!0,nt.awaitDrain&&(!et._writableState||et._writableState.needDrain)&&Xe()}He.on("data",jt);function jt(tn){ae("ondata");var ln=et.write(tn);ae("dest.write",ln),ln===!1&&((nt.pipesCount===1&&nt.pipes===et||nt.pipesCount>1&&dt(nt.pipes,et)!==-1)&&!yt&&(ae("false write response, pause",nt.awaitDrain),nt.awaitDrain++),He.pause())}function Ht(tn){ae("onerror",tn),Ut(),et.removeListener("error",Ht),ye(et,"error")===0&&Ze(et,tn)}Ke(et,"error",Ht);function en(){et.removeListener("finish",It),Ut()}et.once("close",en);function It(){ae("onfinish"),et.removeListener("close",en),Ut()}et.once("finish",It);function Ut(){ae("unpipe"),He.unpipe(et)}return et.emit("pipe",He),nt.flowing||(ae("pipe resume"),He.resume()),et};function kt(et){return function(){var He=et._readableState;ae("pipeOnDrain",He.awaitDrain),He.awaitDrain&&He.awaitDrain--,He.awaitDrain===0&&ye(et,"data")&&(He.flowing=!0,ft(et))}}ct.prototype.unpipe=function(et){var Ve=this._readableState,He={hasUnpiped:!1};if(Ve.pipesCount===0)return this;if(Ve.pipesCount===1)return et&&et!==Ve.pipes?this:(et||(et=Ve.pipes),Ve.pipes=null,Ve.pipesCount=0,Ve.flowing=!1,et&&et.emit("unpipe",this,He),this);if(!et){var nt=Ve.pipes,ut=Ve.pipesCount;Ve.pipes=null,Ve.pipesCount=0,Ve.flowing=!1;for(var We=0;We<ut;We++)nt[We].emit("unpipe",this,{hasUnpiped:!1});return this}var De=dt(Ve.pipes,et);return De===-1?this:(Ve.pipes.splice(De,1),Ve.pipesCount-=1,Ve.pipesCount===1&&(Ve.pipes=Ve.pipes[0]),et.emit("unpipe",this,He),this)},ct.prototype.on=function(et,Ve){var He=we.prototype.on.call(this,et,Ve),nt=this._readableState;return et==="data"?(nt.readableListening=this.listenerCount("readable")>0,nt.flowing!==!1&&this.resume()):et==="readable"&&!nt.endEmitted&&!nt.readableListening&&(nt.readableListening=nt.needReadable=!0,nt.flowing=!1,nt.emittedReadable=!1,ae("on readable",nt.length,nt.reading),nt.length?vt(this):nt.reading||ve.nextTick(Et,this)),He},ct.prototype.addListener=ct.prototype.on,ct.prototype.removeListener=function(et,Ve){var He=we.prototype.removeListener.call(this,et,Ve);return et==="readable"&&ve.nextTick(Wt,this),He},ct.prototype.removeAllListeners=function(et){var Ve=we.prototype.removeAllListeners.apply(this,arguments);return(et==="readable"||et===void 0)&&ve.nextTick(Wt,this),Ve};function Wt(et){var Ve=et._readableState;Ve.readableListening=et.listenerCount("readable")>0,Ve.resumeScheduled&&!Ve.paused?Ve.flowing=!0:et.listenerCount("data")>0&&et.resume()}function Et(et){ae("readable nexttick read 0"),et.read(0)}ct.prototype.resume=function(){var et=this._readableState;return et.flowing||(ae("resume"),et.flowing=!et.readableListening,St(this,et)),et.paused=!1,this};function St(et,Ve){Ve.resumeScheduled||(Ve.resumeScheduled=!0,ve.nextTick(tt,et,Ve))}function tt(et,Ve){ae("resume",Ve.reading),Ve.reading||et.read(0),Ve.resumeScheduled=!1,et.emit("resume"),ft(et),Ve.flowing&&!Ve.reading&&et.read(0)}ct.prototype.pause=function(){return ae("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ae("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function ft(et){var Ve=et._readableState;for(ae("flow",Ve.flowing);Ve.flowing&&et.read()!==null;);}ct.prototype.wrap=function(et){var Ve=this,He=this._readableState,nt=!1;et.on("end",function(){if(ae("wrapped end"),He.decoder&&!He.ended){var De=He.decoder.end();De&&De.length&&Ve.push(De)}Ve.push(null)}),et.on("data",function(De){if(ae("wrapped data"),He.decoder&&(De=He.decoder.write(De)),!(He.objectMode&&De==null)&&!(!He.objectMode&&(!De||!De.length))){var Ie=Ve.push(De);Ie||(nt=!0,et.pause())}});for(var ut in et)this[ut]===void 0&&typeof et[ut]=="function"&&(this[ut]=function(Ie){return function(){return et[Ie].apply(et,arguments)}}(ut));for(var We=0;We<ze.length;We++)et.on(ze[We],this.emit.bind(this,ze[We]));return this._read=function(De){ae("wrapped _read",De),nt&&(nt=!1,et.resume())},this},typeof Symbol=="function"&&(ct.prototype[Symbol.asyncIterator]=function(){return Fe===void 0&&(Fe=oe("./internal/streams/async_iterator")),Fe(this)}),Object.defineProperty(ct.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(ct.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(ct.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Ve){this._readableState&&(this._readableState.flowing=Ve)}}),ct._fromList=$e,Object.defineProperty(ct.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function $e(et,Ve){if(Ve.length===0)return null;var He;return Ve.objectMode?He=Ve.buffer.shift():!et||et>=Ve.length?(Ve.decoder?He=Ve.buffer.join(""):Ve.buffer.length===1?He=Ve.buffer.first():He=Ve.buffer.concat(Ve.length),Ve.buffer.clear()):He=Ve.buffer.consume(et,Ve.decoder),He}function lt(et){var Ve=et._readableState;ae("endReadable",Ve.endEmitted),Ve.endEmitted||(Ve.ended=!0,ve.nextTick(Pt,Ve,et))}function Pt(et,Ve){if(ae("endReadableNT",et.endEmitted,et.length),!et.endEmitted&&et.length===0&&(et.endEmitted=!0,Ve.readable=!1,Ve.emit("end"),et.autoDestroy)){var He=Ve._writableState;(!He||He.autoDestroy&&He.finished)&&Ve.destroy()}}typeof Symbol=="function"&&(ct.from=function(et,Ve){return Re===void 0&&(Re=oe("./internal/streams/from")),Re(ct,et,Ve)});function dt(et,Ve){for(var He=0,nt=et.length;He<nt;He++)if(et[He]===Ve)return He;return-1}}).call(this)}).call(this,oe("_process"),typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/async_iterator":405,"./internal/streams/buffer_list":406,"./internal/streams/destroy":407,"./internal/streams/from":409,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,events:344,inherits:364,"string_decoder/":413,util:89}],403:[function(oe,_e,Ne){"use strict";_e.exports=Se;var ve=oe("../errors").codes,fe=ve.ERR_METHOD_NOT_IMPLEMENTED,be=ve.ERR_MULTIPLE_CALLBACK,Pe=ve.ERR_TRANSFORM_ALREADY_TRANSFORMING,ye=ve.ERR_TRANSFORM_WITH_LENGTH_0,we=oe("./_stream_duplex");oe("inherits")(Se,we);function me(ee,ae){var re=this._transformState;re.transforming=!1;var le=re.writecb;if(le===null)return this.emit("error",new be);re.writechunk=null,re.writecb=null,ae!=null&&this.push(ae),le(ee);var ue=this._readableState;ue.reading=!1,(ue.needReadable||ue.length<ue.highWaterMark)&&this._read(ue.highWaterMark)}function Se(ee){if(!(this instanceof Se))return new Se(ee);we.call(this,ee),this._transformState={afterTransform:me.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,ee&&(typeof ee.transform=="function"&&(this._transform=ee.transform),typeof ee.flush=="function"&&(this._flush=ee.flush)),this.on("prefinish",de)}function de(){var ee=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(ae,re){z(ee,ae,re)}):z(this,null,null)}Se.prototype.push=function(ee,ae){return this._transformState.needTransform=!1,we.prototype.push.call(this,ee,ae)},Se.prototype._transform=function(ee,ae,re){re(new fe("_transform()"))},Se.prototype._write=function(ee,ae,re){var le=this._transformState;if(le.writecb=re,le.writechunk=ee,le.writeencoding=ae,!le.transforming){var ue=this._readableState;(le.needTransform||ue.needReadable||ue.length<ue.highWaterMark)&&this._read(ue.highWaterMark)}},Se.prototype._read=function(ee){var ae=this._transformState;ae.writechunk!==null&&!ae.transforming?(ae.transforming=!0,this._transform(ae.writechunk,ae.writeencoding,ae.afterTransform)):ae.needTransform=!0},Se.prototype._destroy=function(ee,ae){we.prototype._destroy.call(this,ee,function(re){ae(re)})};function z(ee,ae,re){if(ae)return ee.emit("error",ae);if(re!=null&&ee.push(re),ee._writableState.length)throw new ye;if(ee._transformState.transforming)throw new Pe;return ee.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(oe,_e,Ne){(function(ve,fe){(function(){"use strict";_e.exports=ot;function be(ft,$e,lt){this.chunk=ft,this.encoding=$e,this.callback=lt,this.next=null}function Pe(ft){var $e=this;this.next=null,this.entry=null,this.finish=function(){tt($e,ft)}}var ye;ot.WritableState=ze;var we={deprecate:oe("util-deprecate")},me=oe("./internal/streams/stream"),Se=oe("buffer").Buffer,de=(typeof fe!="undefined"?fe:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function z(ft){return Se.from(ft)}function ee(ft){return Se.isBuffer(ft)||ft instanceof de}var ae=oe("./internal/streams/destroy"),re=oe("./internal/streams/state"),le=re.getHighWaterMark,ue=oe("../errors").codes,pe=ue.ERR_INVALID_ARG_TYPE,Ee=ue.ERR_METHOD_NOT_IMPLEMENTED,Ce=ue.ERR_MULTIPLE_CALLBACK,je=ue.ERR_STREAM_CANNOT_PIPE,Le=ue.ERR_STREAM_DESTROYED,ke=ue.ERR_STREAM_NULL_VALUES,Oe=ue.ERR_STREAM_WRITE_AFTER_END,Fe=ue.ERR_UNKNOWN_ENCODING,Re=ae.errorOrDestroy;oe("inherits")(ot,me);function Ze(){}function ze(ft,$e,lt){ye=ye||oe("./_stream_duplex"),ft=ft||{},typeof lt!="boolean"&&(lt=$e instanceof ye),this.objectMode=!!ft.objectMode,lt&&(this.objectMode=this.objectMode||!!ft.writableObjectMode),this.highWaterMark=le(this,ft,"writableHighWaterMark",lt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Pt=ft.decodeStrings===!1;this.decodeStrings=!Pt,this.defaultEncoding=ft.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(dt){wt($e,dt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=ft.emitClose!==!1,this.autoDestroy=!!ft.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Pe(this)}ze.prototype.getBuffer=function(){for(var $e=this.bufferedRequest,lt=[];$e;)lt.push($e),$e=$e.next;return lt},function(){try{Object.defineProperty(ze.prototype,"buffer",{get:we.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ft){}}();var Ke;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ke=Function.prototype[Symbol.hasInstance],Object.defineProperty(ot,Symbol.hasInstance,{value:function($e){return Ke.call(this,$e)?!0:this!==ot?!1:$e&&$e._writableState instanceof ze}})):Ke=function($e){return $e instanceof this};function ot(ft){ye=ye||oe("./_stream_duplex");var $e=this instanceof ye;if(!$e&&!Ke.call(ot,this))return new ot(ft);this._writableState=new ze(ft,this,$e),this.writable=!0,ft&&(typeof ft.write=="function"&&(this._write=ft.write),typeof ft.writev=="function"&&(this._writev=ft.writev),typeof ft.destroy=="function"&&(this._destroy=ft.destroy),typeof ft.final=="function"&&(this._final=ft.final)),me.call(this)}ot.prototype.pipe=function(){Re(this,new je)};function ct(ft,$e){var lt=new Oe;Re(ft,lt),ve.nextTick($e,lt)}function pt(ft,$e,lt,Pt){var dt;return lt===null?dt=new ke:typeof lt!="string"&&!$e.objectMode&&(dt=new pe("chunk",["string","Buffer"],lt)),dt?(Re(ft,dt),ve.nextTick(Pt,dt),!1):!0}ot.prototype.write=function(ft,$e,lt){var Pt=this._writableState,dt=!1,et=!Pt.objectMode&&ee(ft);return et&&!Se.isBuffer(ft)&&(ft=z(ft)),typeof $e=="function"&&(lt=$e,$e=null),et?$e="buffer":$e||($e=Pt.defaultEncoding),typeof lt!="function"&&(lt=Ze),Pt.ending?ct(this,lt):(et||pt(this,Pt,ft,lt))&&(Pt.pendingcb++,dt=qe(this,Pt,et,ft,$e,lt)),dt},ot.prototype.cork=function(){this._writableState.corked++},ot.prototype.uncork=function(){var ft=this._writableState;ft.corked&&(ft.corked--,!ft.writing&&!ft.corked&&!ft.bufferProcessing&&ft.bufferedRequest&&xt(this,ft))},ot.prototype.setDefaultEncoding=function($e){if(typeof $e=="string"&&($e=$e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf(($e+"").toLowerCase())>-1))throw new Fe($e);return this._writableState.defaultEncoding=$e,this},Object.defineProperty(ot.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function bt(ft,$e,lt){return!ft.objectMode&&ft.decodeStrings!==!1&&typeof $e=="string"&&($e=Se.from($e,lt)),$e}Object.defineProperty(ot.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function qe(ft,$e,lt,Pt,dt,et){if(!lt){var Ve=bt($e,Pt,dt);Pt!==Ve&&(lt=!0,dt="buffer",Pt=Ve)}var He=$e.objectMode?1:Pt.length;$e.length+=He;var nt=$e.length<$e.highWaterMark;if(nt||($e.needDrain=!0),$e.writing||$e.corked){var ut=$e.lastBufferedRequest;$e.lastBufferedRequest={chunk:Pt,encoding:dt,isBuf:lt,callback:et,next:null},ut?ut.next=$e.lastBufferedRequest:$e.bufferedRequest=$e.lastBufferedRequest,$e.bufferedRequestCount+=1}else at(ft,$e,!1,He,Pt,dt,et);return nt}function at(ft,$e,lt,Pt,dt,et,Ve){$e.writelen=Pt,$e.writecb=Ve,$e.writing=!0,$e.sync=!0,$e.destroyed?$e.onwrite(new Le("write")):lt?ft._writev(dt,$e.onwrite):ft._write(dt,et,$e.onwrite),$e.sync=!1}function gt(ft,$e,lt,Pt,dt){--$e.pendingcb,lt?(ve.nextTick(dt,Pt),ve.nextTick(Et,ft,$e),ft._writableState.errorEmitted=!0,Re(ft,Pt)):(dt(Pt),ft._writableState.errorEmitted=!0,Re(ft,Pt),Et(ft,$e))}function Ct(ft){ft.writing=!1,ft.writecb=null,ft.length-=ft.writelen,ft.writelen=0}function wt(ft,$e){var lt=ft._writableState,Pt=lt.sync,dt=lt.writecb;if(typeof dt!="function")throw new Ce;if(Ct(lt),$e)gt(ft,lt,Pt,$e,dt);else{var et=At(lt)||ft.destroyed;!et&&!lt.corked&&!lt.bufferProcessing&<.bufferedRequest&&xt(ft,lt),Pt?ve.nextTick(vt,ft,lt,et,dt):vt(ft,lt,et,dt)}}function vt(ft,$e,lt,Pt){lt||mt(ft,$e),$e.pendingcb--,Pt(),Et(ft,$e)}function mt(ft,$e){$e.length===0&&$e.needDrain&&($e.needDrain=!1,ft.emit("drain"))}function xt(ft,$e){$e.bufferProcessing=!0;var lt=$e.bufferedRequest;if(ft._writev&<&<.next){var Pt=$e.bufferedRequestCount,dt=new Array(Pt),et=$e.corkedRequestsFree;et.entry=lt;for(var Ve=0,He=!0;lt;)dt[Ve]=lt,lt.isBuf||(He=!1),lt=lt.next,Ve+=1;dt.allBuffers=He,at(ft,$e,!0,$e.length,dt,"",et.finish),$e.pendingcb++,$e.lastBufferedRequest=null,et.next?($e.corkedRequestsFree=et.next,et.next=null):$e.corkedRequestsFree=new Pe($e),$e.bufferedRequestCount=0}else{for(;lt;){var nt=lt.chunk,ut=lt.encoding,We=lt.callback,De=$e.objectMode?1:nt.length;if(at(ft,$e,!1,De,nt,ut,We),lt=lt.next,$e.bufferedRequestCount--,$e.writing)break}lt===null&&($e.lastBufferedRequest=null)}$e.bufferedRequest=lt,$e.bufferProcessing=!1}ot.prototype._write=function(ft,$e,lt){lt(new Ee("_write()"))},ot.prototype._writev=null,ot.prototype.end=function(ft,$e,lt){var Pt=this._writableState;return typeof ft=="function"?(lt=ft,ft=null,$e=null):typeof $e=="function"&&(lt=$e,$e=null),ft!=null&&this.write(ft,$e),Pt.corked&&(Pt.corked=1,this.uncork()),Pt.ending||St(this,Pt,lt),this},Object.defineProperty(ot.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function At(ft){return ft.ending&&ft.length===0&&ft.bufferedRequest===null&&!ft.finished&&!ft.writing}function kt(ft,$e){ft._final(function(lt){$e.pendingcb--,lt&&Re(ft,lt),$e.prefinished=!0,ft.emit("prefinish"),Et(ft,$e)})}function Wt(ft,$e){!$e.prefinished&&!$e.finalCalled&&(typeof ft._final=="function"&&!$e.destroyed?($e.pendingcb++,$e.finalCalled=!0,ve.nextTick(kt,ft,$e)):($e.prefinished=!0,ft.emit("prefinish")))}function Et(ft,$e){var lt=At($e);if(lt&&(Wt(ft,$e),$e.pendingcb===0&&($e.finished=!0,ft.emit("finish"),$e.autoDestroy))){var Pt=ft._readableState;(!Pt||Pt.autoDestroy&&Pt.endEmitted)&&ft.destroy()}return lt}function St(ft,$e,lt){$e.ending=!0,Et(ft,$e),lt&&($e.finished?ve.nextTick(lt):ft.once("finish",lt)),$e.ended=!0,ft.writable=!1}function tt(ft,$e,lt){var Pt=ft.entry;for(ft.entry=null;Pt;){var dt=Pt.callback;$e.pendingcb--,dt(lt),Pt=Pt.next}$e.corkedRequestsFree.next=ft}Object.defineProperty(ot.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function($e){this._writableState&&(this._writableState.destroyed=$e)}}),ot.prototype.destroy=ae.destroy,ot.prototype._undestroy=ae.undestroy,ot.prototype._destroy=function(ft,$e){$e(ft)}}).call(this)}).call(this,oe("_process"),typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/destroy":407,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,inherits:364,"util-deprecate":416}],405:[function(oe,_e,Ne){(function(ve){(function(){"use strict";var fe;function be(ke,Oe,Fe){return Oe=Pe(Oe),Oe in ke?Object.defineProperty(ke,Oe,{value:Fe,enumerable:!0,configurable:!0,writable:!0}):ke[Oe]=Fe,ke}function Pe(ke){var Oe=ye(ke,"string");return typeof Oe=="symbol"?Oe:String(Oe)}function ye(ke,Oe){if(typeof ke!="object"||ke===null)return ke;var Fe=ke[Symbol.toPrimitive];if(Fe!==void 0){var Re=Fe.call(ke,Oe||"default");if(typeof Re!="object")return Re;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Oe==="string"?String:Number)(ke)}var we=oe("./end-of-stream"),me=Symbol("lastResolve"),Se=Symbol("lastReject"),de=Symbol("error"),z=Symbol("ended"),ee=Symbol("lastPromise"),ae=Symbol("handlePromise"),re=Symbol("stream");function le(ke,Oe){return{value:ke,done:Oe}}function ue(ke){var Oe=ke[me];if(Oe!==null){var Fe=ke[re].read();Fe!==null&&(ke[ee]=null,ke[me]=null,ke[Se]=null,Oe(le(Fe,!1)))}}function pe(ke){ve.nextTick(ue,ke)}function Ee(ke,Oe){return function(Fe,Re){ke.then(function(){if(Oe[z]){Fe(le(void 0,!0));return}Oe[ae](Fe,Re)},Re)}}var Ce=Object.getPrototypeOf(function(){}),je=Object.setPrototypeOf((fe={get stream(){return this[re]},next:function(){var Oe=this,Fe=this[de];if(Fe!==null)return Promise.reject(Fe);if(this[z])return Promise.resolve(le(void 0,!0));if(this[re].destroyed)return new Promise(function(Ke,ot){ve.nextTick(function(){Oe[de]?ot(Oe[de]):Ke(le(void 0,!0))})});var Re=this[ee],Ze;if(Re)Ze=new Promise(Ee(Re,this));else{var ze=this[re].read();if(ze!==null)return Promise.resolve(le(ze,!1));Ze=new Promise(this[ae])}return this[ee]=Ze,Ze}},be(fe,Symbol.asyncIterator,function(){return this}),be(fe,"return",function(){var Oe=this;return new Promise(function(Fe,Re){Oe[re].destroy(null,function(Ze){if(Ze){Re(Ze);return}Fe(le(void 0,!0))})})}),fe),Ce),Le=function(Oe){var Fe,Re=Object.create(je,(Fe={},be(Fe,re,{value:Oe,writable:!0}),be(Fe,me,{value:null,writable:!0}),be(Fe,Se,{value:null,writable:!0}),be(Fe,de,{value:null,writable:!0}),be(Fe,z,{value:Oe._readableState.endEmitted,writable:!0}),be(Fe,ae,{value:function(ze,Ke){var ot=Re[re].read();ot?(Re[ee]=null,Re[me]=null,Re[Se]=null,ze(le(ot,!1))):(Re[me]=ze,Re[Se]=Ke)},writable:!0}),Fe));return Re[ee]=null,we(Oe,function(Ze){if(Ze&&Ze.code!=="ERR_STREAM_PREMATURE_CLOSE"){var ze=Re[Se];ze!==null&&(Re[ee]=null,Re[me]=null,Re[Se]=null,ze(Ze)),Re[de]=Ze;return}var Ke=Re[me];Ke!==null&&(Re[ee]=null,Re[me]=null,Re[Se]=null,Ke(le(void 0,!0))),Re[z]=!0}),Oe.on("readable",pe.bind(null,Re)),Re};_e.exports=Le}).call(this)}).call(this,oe("_process"))},{"./end-of-stream":408,_process:467}],406:[function(oe,_e,Ne){"use strict";function ve(ue,pe){var Ee=Object.keys(ue);if(Object.getOwnPropertySymbols){var Ce=Object.getOwnPropertySymbols(ue);pe&&(Ce=Ce.filter(function(je){return Object.getOwnPropertyDescriptor(ue,je).enumerable})),Ee.push.apply(Ee,Ce)}return Ee}function fe(ue){for(var pe=1;pe<arguments.length;pe++){var Ee=arguments[pe]!=null?arguments[pe]:{};pe%2?ve(Object(Ee),!0).forEach(function(Ce){be(ue,Ce,Ee[Ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ue,Object.getOwnPropertyDescriptors(Ee)):ve(Object(Ee)).forEach(function(Ce){Object.defineProperty(ue,Ce,Object.getOwnPropertyDescriptor(Ee,Ce))})}return ue}function be(ue,pe,Ee){return pe=me(pe),pe in ue?Object.defineProperty(ue,pe,{value:Ee,enumerable:!0,configurable:!0,writable:!0}):ue[pe]=Ee,ue}function Pe(ue,pe){if(!(ue instanceof pe))throw new TypeError("Cannot call a class as a function")}function ye(ue,pe){for(var Ee=0;Ee<pe.length;Ee++){var Ce=pe[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(ue,me(Ce.key),Ce)}}function we(ue,pe,Ee){return pe&&ye(ue.prototype,pe),Ee&&ye(ue,Ee),Object.defineProperty(ue,"prototype",{writable:!1}),ue}function me(ue){var pe=Se(ue,"string");return typeof pe=="symbol"?pe:String(pe)}function Se(ue,pe){if(typeof ue!="object"||ue===null)return ue;var Ee=ue[Symbol.toPrimitive];if(Ee!==void 0){var Ce=Ee.call(ue,pe||"default");if(typeof Ce!="object")return Ce;throw new TypeError("@@toPrimitive must return a primitive value.")}return(pe==="string"?String:Number)(ue)}var de=oe("buffer"),z=de.Buffer,ee=oe("util"),ae=ee.inspect,re=ae&&ae.custom||"inspect";function le(ue,pe,Ee){z.prototype.copy.call(ue,pe,Ee)}_e.exports=function(){function ue(){Pe(this,ue),this.head=null,this.tail=null,this.length=0}return we(ue,[{key:"push",value:function(Ee){var Ce={data:Ee,next:null};this.length>0?this.tail.next=Ce:this.head=Ce,this.tail=Ce,++this.length}},{key:"unshift",value:function(Ee){var Ce={data:Ee,next:this.head};this.length===0&&(this.tail=Ce),this.head=Ce,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Ee=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Ee}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Ee){if(this.length===0)return"";for(var Ce=this.head,je=""+Ce.data;Ce=Ce.next;)je+=Ee+Ce.data;return je}},{key:"concat",value:function(Ee){if(this.length===0)return z.alloc(0);for(var Ce=z.allocUnsafe(Ee>>>0),je=this.head,Le=0;je;)le(je.data,Ce,Le),Le+=je.data.length,je=je.next;return Ce}},{key:"consume",value:function(Ee,Ce){var je;return Ee<this.head.data.length?(je=this.head.data.slice(0,Ee),this.head.data=this.head.data.slice(Ee)):Ee===this.head.data.length?je=this.shift():je=Ce?this._getString(Ee):this._getBuffer(Ee),je}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(Ee){var Ce=this.head,je=1,Le=Ce.data;for(Ee-=Le.length;Ce=Ce.next;){var ke=Ce.data,Oe=Ee>ke.length?ke.length:Ee;if(Oe===ke.length?Le+=ke:Le+=ke.slice(0,Ee),Ee-=Oe,Ee===0){Oe===ke.length?(++je,Ce.next?this.head=Ce.next:this.head=this.tail=null):(this.head=Ce,Ce.data=ke.slice(Oe));break}++je}return this.length-=je,Le}},{key:"_getBuffer",value:function(Ee){var Ce=z.allocUnsafe(Ee),je=this.head,Le=1;for(je.data.copy(Ce),Ee-=je.data.length;je=je.next;){var ke=je.data,Oe=Ee>ke.length?ke.length:Ee;if(ke.copy(Ce,Ce.length-Ee,0,Oe),Ee-=Oe,Ee===0){Oe===ke.length?(++Le,je.next?this.head=je.next:this.head=this.tail=null):(this.head=je,je.data=ke.slice(Oe));break}++Le}return this.length-=Le,Ce}},{key:re,value:function(Ee,Ce){return ae(this,fe(fe({},Ce),{},{depth:0,customInspect:!1}))}}]),ue}()},{buffer:90,util:89}],407:[function(oe,_e,Ne){(function(ve){(function(){"use strict";function fe(Se,de){var z=this,ee=this._readableState&&this._readableState.destroyed,ae=this._writableState&&this._writableState.destroyed;return ee||ae?(de?de(Se):Se&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ve.nextTick(we,this,Se)):ve.nextTick(we,this,Se)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(Se||null,function(re){!de&&re?z._writableState?z._writableState.errorEmitted?ve.nextTick(Pe,z):(z._writableState.errorEmitted=!0,ve.nextTick(be,z,re)):ve.nextTick(be,z,re):de?(ve.nextTick(Pe,z),de(re)):ve.nextTick(Pe,z)}),this)}function be(Se,de){we(Se,de),Pe(Se)}function Pe(Se){Se._writableState&&!Se._writableState.emitClose||Se._readableState&&!Se._readableState.emitClose||Se.emit("close")}function ye(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function we(Se,de){Se.emit("error",de)}function me(Se,de){var z=Se._readableState,ee=Se._writableState;z&&z.autoDestroy||ee&&ee.autoDestroy?Se.destroy(de):Se.emit("error",de)}_e.exports={destroy:fe,undestroy:ye,errorOrDestroy:me}}).call(this)}).call(this,oe("_process"))},{_process:467}],408:[function(oe,_e,Ne){"use strict";var ve=oe("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function fe(we){var me=!1;return function(){if(!me){me=!0;for(var Se=arguments.length,de=new Array(Se),z=0;z<Se;z++)de[z]=arguments[z];we.apply(this,de)}}}function be(){}function Pe(we){return we.setHeader&&typeof we.abort=="function"}function ye(we,me,Se){if(typeof me=="function")return ye(we,null,me);me||(me={}),Se=fe(Se||be);var de=me.readable||me.readable!==!1&&we.readable,z=me.writable||me.writable!==!1&&we.writable,ee=function(){we.writable||re()},ae=we._writableState&&we._writableState.finished,re=function(){z=!1,ae=!0,de||Se.call(we)},le=we._readableState&&we._readableState.endEmitted,ue=function(){de=!1,le=!0,z||Se.call(we)},pe=function(Le){Se.call(we,Le)},Ee=function(){var Le;if(de&&!le)return(!we._readableState||!we._readableState.ended)&&(Le=new ve),Se.call(we,Le);if(z&&!ae)return(!we._writableState||!we._writableState.ended)&&(Le=new ve),Se.call(we,Le)},Ce=function(){we.req.on("finish",re)};return Pe(we)?(we.on("complete",re),we.on("abort",Ee),we.req?Ce():we.on("request",Ce)):z&&!we._writableState&&(we.on("end",ee),we.on("close",ee)),we.on("end",ue),we.on("finish",re),me.error!==!1&&we.on("error",pe),we.on("close",Ee),function(){we.removeListener("complete",re),we.removeListener("abort",Ee),we.removeListener("request",Ce),we.req&&we.req.removeListener("finish",re),we.removeListener("end",ee),we.removeListener("close",ee),we.removeListener("finish",re),we.removeListener("end",ue),we.removeListener("error",pe),we.removeListener("close",Ee)}}_e.exports=ye},{"../../../errors":399}],409:[function(oe,_e,Ne){_e.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(oe,_e,Ne){"use strict";var ve;function fe(re){var le=!1;return function(){le||(le=!0,re.apply(void 0,arguments))}}var be=oe("../../../errors").codes,Pe=be.ERR_MISSING_ARGS,ye=be.ERR_STREAM_DESTROYED;function we(re){if(re)throw re}function me(re){return re.setHeader&&typeof re.abort=="function"}function Se(re,le,ue,pe){pe=fe(pe);var Ee=!1;re.on("close",function(){Ee=!0}),ve===void 0&&(ve=oe("./end-of-stream")),ve(re,{readable:le,writable:ue},function(je){if(je)return pe(je);Ee=!0,pe()});var Ce=!1;return function(je){if(!Ee&&!Ce){if(Ce=!0,me(re))return re.abort();if(typeof re.destroy=="function")return re.destroy();pe(je||new ye("pipe"))}}}function de(re){re()}function z(re,le){return re.pipe(le)}function ee(re){return!re.length||typeof re[re.length-1]!="function"?we:re.pop()}function ae(){for(var re=arguments.length,le=new Array(re),ue=0;ue<re;ue++)le[ue]=arguments[ue];var pe=ee(le);if(Array.isArray(le[0])&&(le=le[0]),le.length<2)throw new Pe("streams");var Ee,Ce=le.map(function(je,Le){var ke=Le<le.length-1,Oe=Le>0;return Se(je,ke,Oe,function(Fe){Ee||(Ee=Fe),Fe&&Ce.forEach(de),!ke&&(Ce.forEach(de),pe(Ee))})});return le.reduce(z)}_e.exports=ae},{"../../../errors":399,"./end-of-stream":408}],411:[function(oe,_e,Ne){"use strict";var ve=oe("../../../errors").codes.ERR_INVALID_OPT_VALUE;function fe(Pe,ye,we){return Pe.highWaterMark!=null?Pe.highWaterMark:ye?Pe[we]:null}function be(Pe,ye,we,me){var Se=fe(ye,me,we);if(Se!=null){if(!(isFinite(Se)&&Math.floor(Se)===Se)||Se<0){var de=me?we:"highWaterMark";throw new ve(de,Se)}return Math.floor(Se)}return Pe.objectMode?16:16*1024}_e.exports={getHighWaterMark:be}},{"../../../errors":399}],412:[function(oe,_e,Ne){arguments[4][393][0].apply(Ne,arguments)},{dup:393,events:344}],413:[function(oe,_e,Ne){"use strict";var ve=oe("safe-buffer").Buffer,fe=ve.isEncoding||function(Ce){switch(Ce=""+Ce,Ce&&Ce.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function be(Ce){if(!Ce)return"utf8";for(var je;;)switch(Ce){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return Ce;default:if(je)return;Ce=(""+Ce).toLowerCase(),je=!0}}function Pe(Ce){var je=be(Ce);if(typeof je!="string"&&(ve.isEncoding===fe||!fe(Ce)))throw new Error("Unknown encoding: "+Ce);return je||Ce}Ne.StringDecoder=ye;function ye(Ce){this.encoding=Pe(Ce);var je;switch(this.encoding){case"utf16le":this.text=ae,this.end=re,je=4;break;case"utf8":this.fillLast=de,je=4;break;case"base64":this.text=le,this.end=ue,je=3;break;default:this.write=pe,this.end=Ee;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ve.allocUnsafe(je)}ye.prototype.write=function(Ce){if(Ce.length===0)return"";var je,Le;if(this.lastNeed){if(je=this.fillLast(Ce),je===void 0)return"";Le=this.lastNeed,this.lastNeed=0}else Le=0;return Le<Ce.length?je?je+this.text(Ce,Le):this.text(Ce,Le):je||""},ye.prototype.end=ee,ye.prototype.text=z,ye.prototype.fillLast=function(Ce){if(this.lastNeed<=Ce.length)return Ce.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Ce.copy(this.lastChar,this.lastTotal-this.lastNeed,0,Ce.length),this.lastNeed-=Ce.length};function we(Ce){return Ce<=127?0:Ce>>5===6?2:Ce>>4===14?3:Ce>>3===30?4:Ce>>6===2?-1:-2}function me(Ce,je,Le){var ke=je.length-1;if(ke<Le)return 0;var Oe=we(je[ke]);return Oe>=0?(Oe>0&&(Ce.lastNeed=Oe-1),Oe):--ke<Le||Oe===-2?0:(Oe=we(je[ke]),Oe>=0?(Oe>0&&(Ce.lastNeed=Oe-2),Oe):--ke<Le||Oe===-2?0:(Oe=we(je[ke]),Oe>=0?(Oe>0&&(Oe===2?Oe=0:Ce.lastNeed=Oe-3),Oe):0))}function Se(Ce,je,Le){if((je[0]&192)!==128)return Ce.lastNeed=0,"\uFFFD";if(Ce.lastNeed>1&&je.length>1){if((je[1]&192)!==128)return Ce.lastNeed=1,"\uFFFD";if(Ce.lastNeed>2&&je.length>2&&(je[2]&192)!==128)return Ce.lastNeed=2,"\uFFFD"}}function de(Ce){var je=this.lastTotal-this.lastNeed,Le=Se(this,Ce,je);if(Le!==void 0)return Le;if(this.lastNeed<=Ce.length)return Ce.copy(this.lastChar,je,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Ce.copy(this.lastChar,je,0,Ce.length),this.lastNeed-=Ce.length}function z(Ce,je){var Le=me(this,Ce,je);if(!this.lastNeed)return Ce.toString("utf8",je);this.lastTotal=Le;var ke=Ce.length-(Le-this.lastNeed);return Ce.copy(this.lastChar,0,ke),Ce.toString("utf8",je,ke)}function ee(Ce){var je=Ce&&Ce.length?this.write(Ce):"";return this.lastNeed?je+"\uFFFD":je}function ae(Ce,je){if((Ce.length-je)%2===0){var Le=Ce.toString("utf16le",je);if(Le){var ke=Le.charCodeAt(Le.length-1);if(ke>=55296&&ke<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Ce[Ce.length-2],this.lastChar[1]=Ce[Ce.length-1],Le.slice(0,-1)}return Le}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Ce[Ce.length-1],Ce.toString("utf16le",je,Ce.length-1)}function re(Ce){var je=Ce&&Ce.length?this.write(Ce):"";if(this.lastNeed){var Le=this.lastTotal-this.lastNeed;return je+this.lastChar.toString("utf16le",0,Le)}return je}function le(Ce,je){var Le=(Ce.length-je)%3;return Le===0?Ce.toString("base64",je):(this.lastNeed=3-Le,this.lastTotal=3,Le===1?this.lastChar[0]=Ce[Ce.length-1]:(this.lastChar[0]=Ce[Ce.length-2],this.lastChar[1]=Ce[Ce.length-1]),Ce.toString("base64",je,Ce.length-Le))}function ue(Ce){var je=Ce&&Ce.length?this.write(Ce):"";return this.lastNeed?je+this.lastChar.toString("base64",0,3-this.lastNeed):je}function pe(Ce){return Ce.toString(this.encoding)}function Ee(Ce){return Ce&&Ce.length?this.write(Ce):""}},{"safe-buffer":396}],414:[function(oe,_e,Ne){(function(ve,fe){(function(){var be=oe("process/browser.js").nextTick,Pe=Function.prototype.apply,ye=Array.prototype.slice,we={},me=0;Ne.setTimeout=function(){return new Se(Pe.call(setTimeout,window,arguments),clearTimeout)},Ne.setInterval=function(){return new Se(Pe.call(setInterval,window,arguments),clearInterval)},Ne.clearTimeout=Ne.clearInterval=function(de){de.close()};function Se(de,z){this._id=de,this._clearFn=z}Se.prototype.unref=Se.prototype.ref=function(){},Se.prototype.close=function(){this._clearFn.call(window,this._id)},Ne.enroll=function(de,z){clearTimeout(de._idleTimeoutId),de._idleTimeout=z},Ne.unenroll=function(de){clearTimeout(de._idleTimeoutId),de._idleTimeout=-1},Ne._unrefActive=Ne.active=function(de){clearTimeout(de._idleTimeoutId);var z=de._idleTimeout;z>=0&&(de._idleTimeoutId=setTimeout(function(){de._onTimeout&&de._onTimeout()},z))},Ne.setImmediate=typeof ve=="function"?ve:function(de){var z=me++,ee=arguments.length<2?!1:ye.call(arguments,1);return we[z]=!0,be(function(){we[z]&&(ee?de.apply(null,ee):de.call(null),Ne.clearImmediate(z))}),z},Ne.clearImmediate=typeof fe=="function"?fe:function(de){delete we[de]}}).call(this)}).call(this,oe("timers").setImmediate,oe("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(oe,_e,Ne){var ve=oe("buffer").Buffer;_e.exports=function(fe){if(fe instanceof Uint8Array){if(fe.byteOffset===0&&fe.byteLength===fe.buffer.byteLength)return fe.buffer;if(typeof fe.buffer.slice=="function")return fe.buffer.slice(fe.byteOffset,fe.byteOffset+fe.byteLength)}if(ve.isBuffer(fe)){for(var be=new Uint8Array(fe.length),Pe=fe.length,ye=0;ye<Pe;ye++)be[ye]=fe[ye];return be.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(oe,_e,Ne){(function(ve){(function(){_e.exports=fe;function fe(Pe,ye){if(be("noDeprecation"))return Pe;var we=!1;function me(){if(!we){if(be("throwDeprecation"))throw new Error(ye);be("traceDeprecation")?console.trace(ye):console.warn(ye),we=!0}return Pe.apply(this,arguments)}return me}function be(Pe){try{if(!ve.localStorage)return!1}catch(we){return!1}var ye=ve.localStorage[Pe];return ye==null?!1:String(ye).toLowerCase()==="true"}}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(oe,_e,Ne){arguments[4][84][0].apply(Ne,arguments)},{dup:84}],418:[function(oe,_e,Ne){"use strict";var ve=oe("is-arguments"),fe=oe("is-generator-function"),be=oe("which-typed-array"),Pe=oe("is-typed-array");function ye(ut){return ut.call.bind(ut)}var we=typeof BigInt!="undefined",me=typeof Symbol!="undefined",Se=ye(Object.prototype.toString),de=ye(Number.prototype.valueOf),z=ye(String.prototype.valueOf),ee=ye(Boolean.prototype.valueOf);if(we)var ae=ye(BigInt.prototype.valueOf);if(me)var re=ye(Symbol.prototype.valueOf);function le(ut,We){if(typeof ut!="object")return!1;try{return We(ut),!0}catch(De){return!1}}Ne.isArgumentsObject=ve,Ne.isGeneratorFunction=fe,Ne.isTypedArray=Pe;function ue(ut){return typeof Promise!="undefined"&&ut instanceof Promise||ut!==null&&typeof ut=="object"&&typeof ut.then=="function"&&typeof ut.catch=="function"}Ne.isPromise=ue;function pe(ut){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(ut):Pe(ut)||xt(ut)}Ne.isArrayBufferView=pe;function Ee(ut){return be(ut)==="Uint8Array"}Ne.isUint8Array=Ee;function Ce(ut){return be(ut)==="Uint8ClampedArray"}Ne.isUint8ClampedArray=Ce;function je(ut){return be(ut)==="Uint16Array"}Ne.isUint16Array=je;function Le(ut){return be(ut)==="Uint32Array"}Ne.isUint32Array=Le;function ke(ut){return be(ut)==="Int8Array"}Ne.isInt8Array=ke;function Oe(ut){return be(ut)==="Int16Array"}Ne.isInt16Array=Oe;function Fe(ut){return be(ut)==="Int32Array"}Ne.isInt32Array=Fe;function Re(ut){return be(ut)==="Float32Array"}Ne.isFloat32Array=Re;function Ze(ut){return be(ut)==="Float64Array"}Ne.isFloat64Array=Ze;function ze(ut){return be(ut)==="BigInt64Array"}Ne.isBigInt64Array=ze;function Ke(ut){return be(ut)==="BigUint64Array"}Ne.isBigUint64Array=Ke;function ot(ut){return Se(ut)==="[object Map]"}ot.working=typeof Map!="undefined"&&ot(new Map);function ct(ut){return typeof Map=="undefined"?!1:ot.working?ot(ut):ut instanceof Map}Ne.isMap=ct;function pt(ut){return Se(ut)==="[object Set]"}pt.working=typeof Set!="undefined"&&pt(new Set);function bt(ut){return typeof Set=="undefined"?!1:pt.working?pt(ut):ut instanceof Set}Ne.isSet=bt;function qe(ut){return Se(ut)==="[object WeakMap]"}qe.working=typeof WeakMap!="undefined"&&qe(new WeakMap);function at(ut){return typeof WeakMap=="undefined"?!1:qe.working?qe(ut):ut instanceof WeakMap}Ne.isWeakMap=at;function gt(ut){return Se(ut)==="[object WeakSet]"}gt.working=typeof WeakSet!="undefined"&>(new WeakSet);function Ct(ut){return gt(ut)}Ne.isWeakSet=Ct;function wt(ut){return Se(ut)==="[object ArrayBuffer]"}wt.working=typeof ArrayBuffer!="undefined"&&wt(new ArrayBuffer);function vt(ut){return typeof ArrayBuffer=="undefined"?!1:wt.working?wt(ut):ut instanceof ArrayBuffer}Ne.isArrayBuffer=vt;function mt(ut){return Se(ut)==="[object DataView]"}mt.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&mt(new DataView(new ArrayBuffer(1),0,1));function xt(ut){return typeof DataView=="undefined"?!1:mt.working?mt(ut):ut instanceof DataView}Ne.isDataView=xt;var At=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function kt(ut){return Se(ut)==="[object SharedArrayBuffer]"}function Wt(ut){return typeof At=="undefined"?!1:(typeof kt.working=="undefined"&&(kt.working=kt(new At)),kt.working?kt(ut):ut instanceof At)}Ne.isSharedArrayBuffer=Wt;function Et(ut){return Se(ut)==="[object AsyncFunction]"}Ne.isAsyncFunction=Et;function St(ut){return Se(ut)==="[object Map Iterator]"}Ne.isMapIterator=St;function tt(ut){return Se(ut)==="[object Set Iterator]"}Ne.isSetIterator=tt;function ft(ut){return Se(ut)==="[object Generator]"}Ne.isGeneratorObject=ft;function $e(ut){return Se(ut)==="[object WebAssembly.Module]"}Ne.isWebAssemblyCompiledModule=$e;function lt(ut){return le(ut,de)}Ne.isNumberObject=lt;function Pt(ut){return le(ut,z)}Ne.isStringObject=Pt;function dt(ut){return le(ut,ee)}Ne.isBooleanObject=dt;function et(ut){return we&&le(ut,ae)}Ne.isBigIntObject=et;function Ve(ut){return me&&le(ut,re)}Ne.isSymbolObject=Ve;function He(ut){return lt(ut)||Pt(ut)||dt(ut)||et(ut)||Ve(ut)}Ne.isBoxedPrimitive=He;function nt(ut){return typeof Uint8Array!="undefined"&&(vt(ut)||Wt(ut))}Ne.isAnyArrayBuffer=nt,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(ut){Object.defineProperty(Ne,ut,{enumerable:!1,value:function(){throw new Error(ut+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(oe,_e,Ne){(function(ve){(function(){var fe=Object.getOwnPropertyDescriptors||function(At){for(var kt=Object.keys(At),Wt={},Et=0;Et<kt.length;Et++)Wt[kt[Et]]=Object.getOwnPropertyDescriptor(At,kt[Et]);return Wt},be=/%[sdj%]/g;Ne.format=function(xt){if(!Oe(xt)){for(var At=[],kt=0;kt<arguments.length;kt++)At.push(me(arguments[kt]));return At.join(" ")}for(var kt=1,Wt=arguments,Et=Wt.length,St=String(xt).replace(be,function(ft){if(ft==="%%")return"%";if(kt>=Et)return ft;switch(ft){case"%s":return String(Wt[kt++]);case"%d":return Number(Wt[kt++]);case"%j":try{return JSON.stringify(Wt[kt++])}catch($e){return"[Circular]"}default:return ft}}),tt=Wt[kt];kt<Et;tt=Wt[++kt])je(tt)||!ze(tt)?St+=" "+tt:St+=" "+me(tt);return St},Ne.deprecate=function(xt,At){if(typeof ve!="undefined"&&ve.noDeprecation===!0)return xt;if(typeof ve=="undefined")return function(){return Ne.deprecate(xt,At).apply(this,arguments)};var kt=!1;function Wt(){if(!kt){if(ve.throwDeprecation)throw new Error(At);ve.traceDeprecation?console.trace(At):console.error(At),kt=!0}return xt.apply(this,arguments)}return Wt};var Pe={},ye=/^$/;if(ve.env.NODE_DEBUG){var we=ve.env.NODE_DEBUG;we=we.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),ye=new RegExp("^"+we+"$","i")}Ne.debuglog=function(xt){if(xt=xt.toUpperCase(),!Pe[xt])if(ye.test(xt)){var At=ve.pid;Pe[xt]=function(){var kt=Ne.format.apply(Ne,arguments);console.error("%s %d: %s",xt,At,kt)}}else Pe[xt]=function(){};return Pe[xt]};function me(xt,At){var kt={seen:[],stylize:de};return arguments.length>=3&&(kt.depth=arguments[2]),arguments.length>=4&&(kt.colors=arguments[3]),Ce(At)?kt.showHidden=At:At&&Ne._extend(kt,At),Re(kt.showHidden)&&(kt.showHidden=!1),Re(kt.depth)&&(kt.depth=2),Re(kt.colors)&&(kt.colors=!1),Re(kt.customInspect)&&(kt.customInspect=!0),kt.colors&&(kt.stylize=Se),ee(kt,xt,kt.depth)}Ne.inspect=me,me.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},me.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function Se(xt,At){var kt=me.styles[At];return kt?"\x1B["+me.colors[kt][0]+"m"+xt+"\x1B["+me.colors[kt][1]+"m":xt}function de(xt,At){return xt}function z(xt){var At={};return xt.forEach(function(kt,Wt){At[kt]=!0}),At}function ee(xt,At,kt){if(xt.customInspect&&At&&ct(At.inspect)&&At.inspect!==Ne.inspect&&!(At.constructor&&At.constructor.prototype===At)){var Wt=At.inspect(kt,xt);return Oe(Wt)||(Wt=ee(xt,Wt,kt)),Wt}var Et=ae(xt,At);if(Et)return Et;var St=Object.keys(At),tt=z(St);if(xt.showHidden&&(St=Object.getOwnPropertyNames(At)),ot(At)&&(St.indexOf("message")>=0||St.indexOf("description")>=0))return re(At);if(St.length===0){if(ct(At)){var ft=At.name?": "+At.name:"";return xt.stylize("[Function"+ft+"]","special")}if(Ze(At))return xt.stylize(RegExp.prototype.toString.call(At),"regexp");if(Ke(At))return xt.stylize(Date.prototype.toString.call(At),"date");if(ot(At))return re(At)}var $e="",lt=!1,Pt=["{","}"];if(Ee(At)&&(lt=!0,Pt=["[","]"]),ct(At)){var dt=At.name?": "+At.name:"";$e=" [Function"+dt+"]"}if(Ze(At)&&($e=" "+RegExp.prototype.toString.call(At)),Ke(At)&&($e=" "+Date.prototype.toUTCString.call(At)),ot(At)&&($e=" "+re(At)),St.length===0&&(!lt||At.length==0))return Pt[0]+$e+Pt[1];if(kt<0)return Ze(At)?xt.stylize(RegExp.prototype.toString.call(At),"regexp"):xt.stylize("[Object]","special");xt.seen.push(At);var et;return lt?et=le(xt,At,kt,tt,St):et=St.map(function(Ve){return ue(xt,At,kt,tt,Ve,lt)}),xt.seen.pop(),pe(et,$e,Pt)}function ae(xt,At){if(Re(At))return xt.stylize("undefined","undefined");if(Oe(At)){var kt="'"+JSON.stringify(At).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return xt.stylize(kt,"string")}if(ke(At))return xt.stylize(""+At,"number");if(Ce(At))return xt.stylize(""+At,"boolean");if(je(At))return xt.stylize("null","null")}function re(xt){return"["+Error.prototype.toString.call(xt)+"]"}function le(xt,At,kt,Wt,Et){for(var St=[],tt=0,ft=At.length;tt<ft;++tt)Ct(At,String(tt))?St.push(ue(xt,At,kt,Wt,String(tt),!0)):St.push("");return Et.forEach(function($e){$e.match(/^\d+$/)||St.push(ue(xt,At,kt,Wt,$e,!0))}),St}function ue(xt,At,kt,Wt,Et,St){var tt,ft,$e;if($e=Object.getOwnPropertyDescriptor(At,Et)||{value:At[Et]},$e.get?$e.set?ft=xt.stylize("[Getter/Setter]","special"):ft=xt.stylize("[Getter]","special"):$e.set&&(ft=xt.stylize("[Setter]","special")),Ct(Wt,Et)||(tt="["+Et+"]"),ft||(xt.seen.indexOf($e.value)<0?(je(kt)?ft=ee(xt,$e.value,null):ft=ee(xt,$e.value,kt-1),ft.indexOf(`
|
|
|
`)>-1&&(St?ft=ft.split(`
|
|
|
`).map(function(lt){return" "+lt}).join(`
|
|
|
`).slice(2):ft=`
|
|
|
`+ft.split(`
|
|
|
`).map(function(lt){return" "+lt}).join(`
|
|
|
`))):ft=xt.stylize("[Circular]","special")),Re(tt)){if(St&&Et.match(/^\d+$/))return ft;tt=JSON.stringify(""+Et),tt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(tt=tt.slice(1,-1),tt=xt.stylize(tt,"name")):(tt=tt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),tt=xt.stylize(tt,"string"))}return tt+": "+ft}function pe(xt,At,kt){var Wt=0,Et=xt.reduce(function(St,tt){return Wt++,tt.indexOf(`
|
|
|
`)>=0&&Wt++,St+tt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Et>60?kt[0]+(At===""?"":At+`
|
|
|
`)+" "+xt.join(`,
|
|
|
`)+" "+kt[1]:kt[0]+At+" "+xt.join(", ")+" "+kt[1]}Ne.types=oe("./support/types");function Ee(xt){return Array.isArray(xt)}Ne.isArray=Ee;function Ce(xt){return typeof xt=="boolean"}Ne.isBoolean=Ce;function je(xt){return xt===null}Ne.isNull=je;function Le(xt){return xt==null}Ne.isNullOrUndefined=Le;function ke(xt){return typeof xt=="number"}Ne.isNumber=ke;function Oe(xt){return typeof xt=="string"}Ne.isString=Oe;function Fe(xt){return typeof xt=="symbol"}Ne.isSymbol=Fe;function Re(xt){return xt===void 0}Ne.isUndefined=Re;function Ze(xt){return ze(xt)&&bt(xt)==="[object RegExp]"}Ne.isRegExp=Ze,Ne.types.isRegExp=Ze;function ze(xt){return typeof xt=="object"&&xt!==null}Ne.isObject=ze;function Ke(xt){return ze(xt)&&bt(xt)==="[object Date]"}Ne.isDate=Ke,Ne.types.isDate=Ke;function ot(xt){return ze(xt)&&(bt(xt)==="[object Error]"||xt instanceof Error)}Ne.isError=ot,Ne.types.isNativeError=ot;function ct(xt){return typeof xt=="function"}Ne.isFunction=ct;function pt(xt){return xt===null||typeof xt=="boolean"||typeof xt=="number"||typeof xt=="string"||typeof xt=="symbol"||typeof xt=="undefined"}Ne.isPrimitive=pt,Ne.isBuffer=oe("./support/isBuffer");function bt(xt){return Object.prototype.toString.call(xt)}function qe(xt){return xt<10?"0"+xt.toString(10):xt.toString(10)}var at=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function gt(){var xt=new Date,At=[qe(xt.getHours()),qe(xt.getMinutes()),qe(xt.getSeconds())].join(":");return[xt.getDate(),at[xt.getMonth()],At].join(" ")}Ne.log=function(){console.log("%s - %s",gt(),Ne.format.apply(Ne,arguments))},Ne.inherits=oe("inherits"),Ne._extend=function(xt,At){if(!At||!ze(At))return xt;for(var kt=Object.keys(At),Wt=kt.length;Wt--;)xt[kt[Wt]]=At[kt[Wt]];return xt};function Ct(xt,At){return Object.prototype.hasOwnProperty.call(xt,At)}var wt=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;Ne.promisify=function(At){if(typeof At!="function")throw new TypeError('The "original" argument must be of type Function');if(wt&&At[wt]){var kt=At[wt];if(typeof kt!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(kt,wt,{value:kt,enumerable:!1,writable:!1,configurable:!0}),kt}function kt(){for(var Wt,Et,St=new Promise(function($e,lt){Wt=$e,Et=lt}),tt=[],ft=0;ft<arguments.length;ft++)tt.push(arguments[ft]);tt.push(function($e,lt){$e?Et($e):Wt(lt)});try{At.apply(this,tt)}catch($e){Et($e)}return St}return Object.setPrototypeOf(kt,Object.getPrototypeOf(At)),wt&&Object.defineProperty(kt,wt,{value:kt,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(kt,fe(At))},Ne.promisify.custom=wt;function vt(xt,At){if(!xt){var kt=new Error("Promise was rejected with a falsy value");kt.reason=xt,xt=kt}return At(xt)}function mt(xt){if(typeof xt!="function")throw new TypeError('The "original" argument must be of type Function');function At(){for(var kt=[],Wt=0;Wt<arguments.length;Wt++)kt.push(arguments[Wt]);var Et=kt.pop();if(typeof Et!="function")throw new TypeError("The last argument must be of type Function");var St=this,tt=function(){return Et.apply(St,arguments)};xt.apply(this,kt).then(function(ft){ve.nextTick(tt.bind(null,null,ft))},function(ft){ve.nextTick(vt.bind(null,ft,tt))})}return Object.setPrototypeOf(At,Object.getPrototypeOf(xt)),Object.defineProperties(At,fe(xt)),At}Ne.callbackify=mt}).call(this)}).call(this,oe("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(oe,_e,Ne){(function(ve){(function(){"use strict";var fe=oe("for-each"),be=oe("available-typed-arrays"),Pe=oe("call-bind"),ye=oe("call-bind/callBound"),we=oe("gopd"),me=ye("Object.prototype.toString"),Se=oe("has-tostringtag/shams")(),de=typeof globalThis=="undefined"?ve:globalThis,z=be(),ee=ye("String.prototype.slice"),ae=Object.getPrototypeOf,re=ye("Array.prototype.indexOf",!0)||function(Ce,je){for(var Le=0;Le<Ce.length;Le+=1)if(Ce[Le]===je)return Le;return-1},le={__proto__:null};Se&&we&&ae?fe(z,function(Ee){var Ce=new de[Ee];if(Symbol.toStringTag in Ce){var je=ae(Ce),Le=we(je,Symbol.toStringTag);if(!Le){var ke=ae(je);Le=we(ke,Symbol.toStringTag)}le["$"+Ee]=Pe(Le.get)}}):fe(z,function(Ee){var Ce=new de[Ee];le["$"+Ee]=Pe(Ce.slice)});var ue=function(Ce){var je=!1;return fe(le,function(Le,ke){if(!je)try{"$"+Le(Ce)===ke&&(je=ee(ke,1))}catch(Oe){}}),je},pe=function(Ce){var je=!1;return fe(le,function(Le,ke){if(!je)try{Le(Ce),je=ee(ke,1)}catch(Oe){}}),je};_e.exports=function(Ce){if(!Ce||typeof Ce!="object")return!1;if(!Se){var je=ee(me(Ce),8,-1);return re(z,je)>-1?je:je!=="Object"?!1:pe(Ce)}return we?ue(Ce):null}}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"available-typed-arrays":86,"call-bind":93,"call-bind/callBound":92,"for-each":345,gopd:349,"has-tostringtag/shams":353}],421:[function(oe,_e,Ne){(function(){"use strict";Ne.stripBOM=function(ve){return ve[0]==="\uFEFF"?ve.substring(1):ve}}).call(this)},{}],422:[function(oe,_e,Ne){(function(){"use strict";var ve,fe,be,Pe,ye,we={}.hasOwnProperty;ve=oe("xmlbuilder"),fe=oe("./defaults").defaults,Pe=function(me){return typeof me=="string"&&(me.indexOf("&")>=0||me.indexOf(">")>=0||me.indexOf("<")>=0)},ye=function(me){return"<![CDATA["+be(me)+"]]>"},be=function(me){return me.replace("]]>","]]]]><![CDATA[>")},Ne.Builder=function(){function me(Se){var de,z,ee;this.options={},z=fe["0.2"];for(de in z)we.call(z,de)&&(ee=z[de],this.options[de]=ee);for(de in Se)we.call(Se,de)&&(ee=Se[de],this.options[de]=ee)}return me.prototype.buildObject=function(Se){var de,z,ee,ae,re;return de=this.options.attrkey,z=this.options.charkey,Object.keys(Se).length===1&&this.options.rootName===fe["0.2"].rootName?(re=Object.keys(Se)[0],Se=Se[re]):re=this.options.rootName,ee=function(le){return function(ue,pe){var Ee,Ce,je,Le,ke,Oe;if(typeof pe!="object")le.options.cdata&&Pe(pe)?ue.raw(ye(pe)):ue.txt(pe);else if(Array.isArray(pe)){for(Le in pe)if(we.call(pe,Le)){Ce=pe[Le];for(ke in Ce)je=Ce[ke],ue=ee(ue.ele(ke),je).up()}}else for(ke in pe)if(we.call(pe,ke))if(Ce=pe[ke],ke===de){if(typeof Ce=="object")for(Ee in Ce)Oe=Ce[Ee],ue=ue.att(Ee,Oe)}else if(ke===z)le.options.cdata&&Pe(Ce)?ue=ue.raw(ye(Ce)):ue=ue.txt(Ce);else if(Array.isArray(Ce))for(Le in Ce)we.call(Ce,Le)&&(je=Ce[Le],typeof je=="string"?le.options.cdata&&Pe(je)?ue=ue.ele(ke).raw(ye(je)).up():ue=ue.ele(ke,je).up():ue=ee(ue.ele(ke),je).up());else typeof Ce=="object"?ue=ee(ue.ele(ke),Ce).up():typeof Ce=="string"&&le.options.cdata&&Pe(Ce)?ue=ue.ele(ke).raw(ye(Ce)).up():(Ce==null&&(Ce=""),ue=ue.ele(ke,Ce.toString()).up());return ue}}(this),ae=ve.create(re,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),ee(ae,Se).end(this.options.renderOpts)},me}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(oe,_e,Ne){(function(){Ne.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
|
|
|
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},{}],424:[function(oe,_e,Ne){(function(){"use strict";var ve,fe,be,Pe,ye,we,me,Se,de,z=function(re,le){return function(){return re.apply(le,arguments)}},ee=function(re,le){for(var ue in le)ae.call(le,ue)&&(re[ue]=le[ue]);function pe(){this.constructor=re}return pe.prototype=le.prototype,re.prototype=new pe,re.__super__=le.prototype,re},ae={}.hasOwnProperty;Se=oe("sax"),Pe=oe("events"),ve=oe("./bom"),me=oe("./processors"),de=oe("timers").setImmediate,fe=oe("./defaults").defaults,ye=function(re){return typeof re=="object"&&re!=null&&Object.keys(re).length===0},we=function(re,le,ue){var pe,Ee,Ce;for(pe=0,Ee=re.length;pe<Ee;pe++)Ce=re[pe],le=Ce(le,ue);return le},be=function(re,le,ue){var pe;return pe=Object.create(null),pe.value=ue,pe.writable=!0,pe.enumerable=!0,pe.configurable=!0,Object.defineProperty(re,le,pe)},Ne.Parser=function(re){ee(le,re);function le(ue){this.parseStringPromise=z(this.parseStringPromise,this),this.parseString=z(this.parseString,this),this.reset=z(this.reset,this),this.assignOrPush=z(this.assignOrPush,this),this.processAsync=z(this.processAsync,this);var pe,Ee,Ce;if(!(this instanceof Ne.Parser))return new Ne.Parser(ue);this.options={},Ee=fe["0.2"];for(pe in Ee)ae.call(Ee,pe)&&(Ce=Ee[pe],this.options[pe]=Ce);for(pe in ue)ae.call(ue,pe)&&(Ce=ue[pe],this.options[pe]=Ce);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(me.normalize)),this.reset()}return le.prototype.processAsync=function(){var ue,pe;try{return this.remaining.length<=this.options.chunkSize?(ue=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(ue),this.saxParser.close()):(ue=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(ue),de(this.processAsync))}catch(Ee){if(pe=Ee,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(pe)}},le.prototype.assignOrPush=function(ue,pe,Ee){return pe in ue?(ue[pe]instanceof Array||be(ue,pe,[ue[pe]]),ue[pe].push(Ee)):this.options.explicitArray?be(ue,pe,[Ee]):be(ue,pe,Ee)},le.prototype.reset=function(){var ue,pe,Ee,Ce;return this.removeAllListeners(),this.saxParser=Se.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(je){return function(Le){if(je.saxParser.resume(),!je.saxParser.errThrown)return je.saxParser.errThrown=!0,je.emit("error",Le)}}(this),this.saxParser.onend=function(je){return function(){if(!je.saxParser.ended)return je.saxParser.ended=!0,je.emit("end",je.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,Ce=[],ue=this.options.attrkey,pe=this.options.charkey,this.saxParser.onopentag=function(je){return function(Le){var ke,Oe,Fe,Re,Ze;if(Fe={},Fe[pe]="",!je.options.ignoreAttrs){Ze=Le.attributes;for(ke in Ze)ae.call(Ze,ke)&&(!(ue in Fe)&&!je.options.mergeAttrs&&(Fe[ue]={}),Oe=je.options.attrValueProcessors?we(je.options.attrValueProcessors,Le.attributes[ke],ke):Le.attributes[ke],Re=je.options.attrNameProcessors?we(je.options.attrNameProcessors,ke):ke,je.options.mergeAttrs?je.assignOrPush(Fe,Re,Oe):be(Fe[ue],Re,Oe))}return Fe["#name"]=je.options.tagNameProcessors?we(je.options.tagNameProcessors,Le.name):Le.name,je.options.xmlns&&(Fe[je.options.xmlnskey]={uri:Le.uri,local:Le.local}),Ce.push(Fe)}}(this),this.saxParser.onclosetag=function(je){return function(){var Le,ke,Oe,Fe,Re,Ze,ze,Ke,ot,ct;if(Ze=Ce.pop(),Re=Ze["#name"],(!je.options.explicitChildren||!je.options.preserveChildrenOrder)&&delete Ze["#name"],Ze.cdata===!0&&(Le=Ze.cdata,delete Ze.cdata),ot=Ce[Ce.length-1],Ze[pe].match(/^\s*$/)&&!Le?(ke=Ze[pe],delete Ze[pe]):(je.options.trim&&(Ze[pe]=Ze[pe].trim()),je.options.normalize&&(Ze[pe]=Ze[pe].replace(/\s{2,}/g," ").trim()),Ze[pe]=je.options.valueProcessors?we(je.options.valueProcessors,Ze[pe],Re):Ze[pe],Object.keys(Ze).length===1&&pe in Ze&&!je.EXPLICIT_CHARKEY&&(Ze=Ze[pe])),ye(Ze)&&(typeof je.options.emptyTag=="function"?Ze=je.options.emptyTag():Ze=je.options.emptyTag!==""?je.options.emptyTag:ke),je.options.validator!=null&&(ct="/"+function(){var pt,bt,qe;for(qe=[],pt=0,bt=Ce.length;pt<bt;pt++)Fe=Ce[pt],qe.push(Fe["#name"]);return qe}().concat(Re).join("/"),function(){var pt;try{return Ze=je.options.validator(ct,ot&&ot[Re],Ze)}catch(bt){return pt=bt,je.emit("error",pt)}}()),je.options.explicitChildren&&!je.options.mergeAttrs&&typeof Ze=="object"){if(!je.options.preserveChildrenOrder)Fe={},je.options.attrkey in Ze&&(Fe[je.options.attrkey]=Ze[je.options.attrkey],delete Ze[je.options.attrkey]),!je.options.charsAsChildren&&je.options.charkey in Ze&&(Fe[je.options.charkey]=Ze[je.options.charkey],delete Ze[je.options.charkey]),Object.getOwnPropertyNames(Ze).length>0&&(Fe[je.options.childkey]=Ze),Ze=Fe;else if(ot){ot[je.options.childkey]=ot[je.options.childkey]||[],ze={};for(Oe in Ze)ae.call(Ze,Oe)&&be(ze,Oe,Ze[Oe]);ot[je.options.childkey].push(ze),delete Ze["#name"],Object.keys(Ze).length===1&&pe in Ze&&!je.EXPLICIT_CHARKEY&&(Ze=Ze[pe])}}return Ce.length>0?je.assignOrPush(ot,Re,Ze):(je.options.explicitRoot&&(Ke=Ze,Ze={},be(Ze,Re,Ke)),je.resultObject=Ze,je.saxParser.ended=!0,je.emit("end",je.resultObject))}}(this),Ee=function(je){return function(Le){var ke,Oe;if(Oe=Ce[Ce.length-1],Oe)return Oe[pe]+=Le,je.options.explicitChildren&&je.options.preserveChildrenOrder&&je.options.charsAsChildren&&(je.options.includeWhiteChars||Le.replace(/\\n/g,"").trim()!=="")&&(Oe[je.options.childkey]=Oe[je.options.childkey]||[],ke={"#name":"__text__"},ke[pe]=Le,je.options.normalize&&(ke[pe]=ke[pe].replace(/\s{2,}/g," ").trim()),Oe[je.options.childkey].push(ke)),Oe}}(this),this.saxParser.ontext=Ee,this.saxParser.oncdata=function(je){return function(Le){var ke;if(ke=Ee(Le),ke)return ke.cdata=!0}}(this)},le.prototype.parseString=function(ue,pe){var Ee;pe!=null&&typeof pe=="function"&&(this.on("end",function(Ce){return this.reset(),pe(null,Ce)}),this.on("error",function(Ce){return this.reset(),pe(Ce)}));try{return ue=ue.toString(),ue.trim()===""?(this.emit("end",null),!0):(ue=ve.stripBOM(ue),this.options.async?(this.remaining=ue,de(this.processAsync),this.saxParser):this.saxParser.write(ue).close())}catch(Ce){if(Ee=Ce,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw Ee}else return this.emit("error",Ee),this.saxParser.errThrown=!0}},le.prototype.parseStringPromise=function(ue){return new Promise(function(pe){return function(Ee,Ce){return pe.parseString(ue,function(je,Le){return je?Ce(je):Ee(Le)})}}(this))},le}(Pe),Ne.parseString=function(re,le,ue){var pe,Ee,Ce;return ue!=null?(typeof ue=="function"&&(pe=ue),typeof le=="object"&&(Ee=le)):(typeof le=="function"&&(pe=le),Ee={}),Ce=new Ne.Parser(Ee),Ce.parseString(re,pe)},Ne.parseStringPromise=function(re,le){var ue,pe;return typeof le=="object"&&(ue=le),pe=new Ne.Parser(ue),pe.parseStringPromise(re)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(oe,_e,Ne){(function(){"use strict";var ve;ve=new RegExp(/(?!xmlns)^.*:/),Ne.normalize=function(fe){return fe.toLowerCase()},Ne.firstCharLowerCase=function(fe){return fe.charAt(0).toLowerCase()+fe.slice(1)},Ne.stripPrefix=function(fe){return fe.replace(ve,"")},Ne.parseNumbers=function(fe){return isNaN(fe)||(fe=fe%1===0?parseInt(fe,10):parseFloat(fe)),fe},Ne.parseBooleans=function(fe){return/^(?:true|false)$/i.test(fe)&&(fe=fe.toLowerCase()==="true"),fe}}).call(this)},{}],426:[function(oe,_e,Ne){(function(){"use strict";var ve,fe,be,Pe,ye=function(me,Se){for(var de in Se)we.call(Se,de)&&(me[de]=Se[de]);function z(){this.constructor=me}return z.prototype=Se.prototype,me.prototype=new z,me.__super__=Se.prototype,me},we={}.hasOwnProperty;fe=oe("./defaults"),ve=oe("./builder"),be=oe("./parser"),Pe=oe("./processors"),Ne.defaults=fe.defaults,Ne.processors=Pe,Ne.ValidationError=function(me){ye(Se,me);function Se(de){this.message=de}return Se}(Error),Ne.Builder=ve.Builder,Ne.Parser=be.Parser,Ne.parseString=be.parseString,Ne.parseStringPromise=be.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(oe,_e,Ne){(function(){_e.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(oe,_e,Ne){(function(){_e.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},{}],429:[function(oe,_e,Ne){(function(){var ve,fe,be,Pe,ye,we,me,Se=[].slice,de={}.hasOwnProperty;ve=function(){var z,ee,ae,re,le,ue;if(ue=arguments[0],le=2<=arguments.length?Se.call(arguments,1):[],ye(Object.assign))Object.assign.apply(null,arguments);else for(z=0,ae=le.length;z<ae;z++)if(re=le[z],re!=null)for(ee in re)de.call(re,ee)&&(ue[ee]=re[ee]);return ue},ye=function(z){return!!z&&Object.prototype.toString.call(z)==="[object Function]"},we=function(z){var ee;return!!z&&((ee=typeof z)=="function"||ee==="object")},be=function(z){return ye(Array.isArray)?Array.isArray(z):Object.prototype.toString.call(z)==="[object Array]"},Pe=function(z){var ee;if(be(z))return!z.length;for(ee in z)if(de.call(z,ee))return!1;return!0},me=function(z){var ee,ae;return we(z)&&(ae=Object.getPrototypeOf(z))&&(ee=ae.constructor)&&typeof ee=="function"&&ee instanceof ee&&Function.prototype.toString.call(ee)===Function.prototype.toString.call(Object)},fe=function(z){return ye(z.valueOf)?z.valueOf():z},_e.exports.assign=ve,_e.exports.isFunction=ye,_e.exports.isObject=we,_e.exports.isArray=be,_e.exports.isEmpty=Pe,_e.exports.isPlainObject=me,_e.exports.getValue=fe}).call(this)},{}],430:[function(oe,_e,Ne){(function(){_e.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(oe,_e,Ne){(function(){var ve,fe,be;ve=oe("./NodeType"),be=oe("./XMLNode"),_e.exports=fe=function(){function Pe(ye,we,me){if(this.parent=ye,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),we==null)throw new Error("Missing attribute name. "+this.debugInfo(we));this.name=this.stringify.name(we),this.value=this.stringify.attValue(me),this.type=ve.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(Pe.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(Pe.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(Pe.prototype,"textContent",{get:function(){return this.value},set:function(ye){return this.value=ye||""}}),Object.defineProperty(Pe.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(Pe.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(Pe.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(Pe.prototype,"specified",{get:function(){return!0}}),Pe.prototype.clone=function(){return Object.create(this)},Pe.prototype.toString=function(ye){return this.options.writer.attribute(this,this.options.writer.filterOptions(ye))},Pe.prototype.debugInfo=function(ye){return ye=ye||this.name,ye==null?"parent: <"+this.parent.name+">":"attribute: {"+ye+"}, parent: <"+this.parent.name+">"},Pe.prototype.isEqualNode=function(ye){return!(ye.namespaceURI!==this.namespaceURI||ye.prefix!==this.prefix||ye.localName!==this.localName||ye.value!==this.value)},Pe}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(oe,_e,Ne){(function(){var ve,fe,be,Pe=function(we,me){for(var Se in me)ye.call(me,Se)&&(we[Se]=me[Se]);function de(){this.constructor=we}return de.prototype=me.prototype,we.prototype=new de,we.__super__=me.prototype,we},ye={}.hasOwnProperty;ve=oe("./NodeType"),be=oe("./XMLCharacterData"),_e.exports=fe=function(we){Pe(me,we);function me(Se,de){if(me.__super__.constructor.call(this,Se),de==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=ve.CData,this.value=this.stringify.cdata(de)}return me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(Se){return this.options.writer.cdata(this,this.options.writer.filterOptions(Se))},me}(be)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(oe,_e,Ne){(function(){var ve,fe,be=function(ye,we){for(var me in we)Pe.call(we,me)&&(ye[me]=we[me]);function Se(){this.constructor=ye}return Se.prototype=we.prototype,ye.prototype=new Se,ye.__super__=we.prototype,ye},Pe={}.hasOwnProperty;fe=oe("./XMLNode"),_e.exports=ve=function(ye){be(we,ye);function we(me){we.__super__.constructor.call(this,me),this.value=""}return Object.defineProperty(we.prototype,"data",{get:function(){return this.value},set:function(me){return this.value=me||""}}),Object.defineProperty(we.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(we.prototype,"textContent",{get:function(){return this.value},set:function(me){return this.value=me||""}}),we.prototype.clone=function(){return Object.create(this)},we.prototype.substringData=function(me,Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.appendData=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.insertData=function(me,Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.deleteData=function(me,Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.replaceData=function(me,Se,de){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.isEqualNode=function(me){return!(!we.__super__.isEqualNode.apply(this,arguments).isEqualNode(me)||me.data!==this.data)},we}(fe)}).call(this)},{"./XMLNode":450}],434:[function(oe,_e,Ne){(function(){var ve,fe,be,Pe=function(we,me){for(var Se in me)ye.call(me,Se)&&(we[Se]=me[Se]);function de(){this.constructor=we}return de.prototype=me.prototype,we.prototype=new de,we.__super__=me.prototype,we},ye={}.hasOwnProperty;ve=oe("./NodeType"),fe=oe("./XMLCharacterData"),_e.exports=be=function(we){Pe(me,we);function me(Se,de){if(me.__super__.constructor.call(this,Se),de==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=ve.Comment,this.value=this.stringify.comment(de)}return me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(Se){return this.options.writer.comment(this,this.options.writer.filterOptions(Se))},me}(fe)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(oe,_e,Ne){(function(){var ve,fe,be;fe=oe("./XMLDOMErrorHandler"),be=oe("./XMLDOMStringList"),_e.exports=ve=function(){function Pe(){var ye;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new fe,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=ye=Object.create(this.defaultParams)}return Object.defineProperty(Pe.prototype,"parameterNames",{get:function(){return new be(Object.keys(this.defaultParams))}}),Pe.prototype.getParameter=function(ye){return this.params.hasOwnProperty(ye)?this.params[ye]:null},Pe.prototype.canSetParameter=function(ye,we){return!0},Pe.prototype.setParameter=function(ye,we){return we!=null?this.params[ye]=we:delete this.params[ye]},Pe}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(oe,_e,Ne){(function(){var ve;_e.exports=ve=function(){function fe(){}return fe.prototype.handleError=function(be){throw new Error(be)},fe}()}).call(this)},{}],437:[function(oe,_e,Ne){(function(){var ve;_e.exports=ve=function(){function fe(){}return fe.prototype.hasFeature=function(be,Pe){return!0},fe.prototype.createDocumentType=function(be,Pe,ye){throw new Error("This DOM method is not implemented.")},fe.prototype.createDocument=function(be,Pe,ye){throw new Error("This DOM method is not implemented.")},fe.prototype.createHTMLDocument=function(be){throw new Error("This DOM method is not implemented.")},fe.prototype.getFeature=function(be,Pe){throw new Error("This DOM method is not implemented.")},fe}()}).call(this)},{}],438:[function(oe,_e,Ne){(function(){var ve;_e.exports=ve=function(){function fe(be){this.arr=be||[]}return Object.defineProperty(fe.prototype,"length",{get:function(){return this.arr.length}}),fe.prototype.item=function(be){return this.arr[be]||null},fe.prototype.contains=function(be){return this.arr.indexOf(be)!==-1},fe}()}).call(this)},{}],439:[function(oe,_e,Ne){(function(){var ve,fe,be,Pe=function(we,me){for(var Se in me)ye.call(me,Se)&&(we[Se]=me[Se]);function de(){this.constructor=we}return de.prototype=me.prototype,we.prototype=new de,we.__super__=me.prototype,we},ye={}.hasOwnProperty;be=oe("./XMLNode"),ve=oe("./NodeType"),_e.exports=fe=function(we){Pe(me,we);function me(Se,de,z,ee,ae,re){if(me.__super__.constructor.call(this,Se),de==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(z==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(de));if(!ee)throw new Error("Missing DTD attribute type. "+this.debugInfo(de));if(!ae)throw new Error("Missing DTD attribute default. "+this.debugInfo(de));if(ae.indexOf("#")!==0&&(ae="#"+ae),!ae.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(de));if(re&&!ae.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(de));this.elementName=this.stringify.name(de),this.type=ve.AttributeDeclaration,this.attributeName=this.stringify.name(z),this.attributeType=this.stringify.dtdAttType(ee),re&&(this.defaultValue=this.stringify.dtdAttDefault(re)),this.defaultValueType=ae}return me.prototype.toString=function(Se){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(Se))},me}(be)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(oe,_e,Ne){(function(){var ve,fe,be,Pe=function(we,me){for(var Se in me)ye.call(me,Se)&&(we[Se]=me[Se]);function de(){this.constructor=we}return de.prototype=me.prototype,we.prototype=new de,we.__super__=me.prototype,we},ye={}.hasOwnProperty;be=oe("./XMLNode"),ve=oe("./NodeType"),_e.exports=fe=function(we){Pe(me,we);function me(Se,de,z){if(me.__super__.constructor.call(this,Se),de==null)throw new Error("Missing DTD element name. "+this.debugInfo());z||(z="(#PCDATA)"),Array.isArray(z)&&(z="("+z.join(",")+")"),this.name=this.stringify.name(de),this.type=ve.ElementDeclaration,this.value=this.stringify.dtdElementValue(z)}return me.prototype.toString=function(Se){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(Se))},me}(be)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(oe,_e,Ne){(function(){var ve,fe,be,Pe,ye=function(me,Se){for(var de in Se)we.call(Se,de)&&(me[de]=Se[de]);function z(){this.constructor=me}return z.prototype=Se.prototype,me.prototype=new z,me.__super__=Se.prototype,me},we={}.hasOwnProperty;Pe=oe("./Utility").isObject,be=oe("./XMLNode"),ve=oe("./NodeType"),_e.exports=fe=function(me){ye(Se,me);function Se(de,z,ee,ae){if(Se.__super__.constructor.call(this,de),ee==null)throw new Error("Missing DTD entity name. "+this.debugInfo(ee));if(ae==null)throw new Error("Missing DTD entity value. "+this.debugInfo(ee));if(this.pe=!!z,this.name=this.stringify.name(ee),this.type=ve.EntityDeclaration,!Pe(ae))this.value=this.stringify.dtdEntityValue(ae),this.internal=!0;else{if(!ae.pubID&&!ae.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(ee));if(ae.pubID&&!ae.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(ee));if(this.internal=!1,ae.pubID!=null&&(this.pubID=this.stringify.dtdPubID(ae.pubID)),ae.sysID!=null&&(this.sysID=this.stringify.dtdSysID(ae.sysID)),ae.nData!=null&&(this.nData=this.stringify.dtdNData(ae.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(ee))}}return Object.defineProperty(Se.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(Se.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(Se.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(Se.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(Se.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(Se.prototype,"xmlVersion",{get:function(){return null}}),Se.prototype.toString=function(de){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(de))},Se}(be)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(oe,_e,Ne){(function(){var ve,fe,be,Pe=function(we,me){for(var Se in me)ye.call(me,Se)&&(we[Se]=me[Se]);function de(){this.constructor=we}return de.prototype=me.prototype,we.prototype=new de,we.__super__=me.prototype,we},ye={}.hasOwnProperty;be=oe("./XMLNode"),ve=oe("./NodeType"),_e.exports=fe=function(we){Pe(me,we);function me(Se,de,z){if(me.__super__.constructor.call(this,Se),de==null)throw new Error("Missing DTD notation name. "+this.debugInfo(de));if(!z.pubID&&!z.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(de));this.name=this.stringify.name(de),this.type=ve.NotationDeclaration,z.pubID!=null&&(this.pubID=this.stringify.dtdPubID(z.pubID)),z.sysID!=null&&(this.sysID=this.stringify.dtdSysID(z.sysID))}return Object.defineProperty(me.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(me.prototype,"systemId",{get:function(){return this.sysID}}),me.prototype.toString=function(Se){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(Se))},me}(be)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(oe,_e,Ne){(function(){var ve,fe,be,Pe,ye=function(me,Se){for(var de in Se)we.call(Se,de)&&(me[de]=Se[de]);function z(){this.constructor=me}return z.prototype=Se.prototype,me.prototype=new z,me.__super__=Se.prototype,me},we={}.hasOwnProperty;Pe=oe("./Utility").isObject,be=oe("./XMLNode"),ve=oe("./NodeType"),_e.exports=fe=function(me){ye(Se,me);function Se(de,z,ee,ae){var re;Se.__super__.constructor.call(this,de),Pe(z)&&(re=z,z=re.version,ee=re.encoding,ae=re.standalone),z||(z="1.0"),this.type=ve.Declaration,this.version=this.stringify.xmlVersion(z),ee!=null&&(this.encoding=this.stringify.xmlEncoding(ee)),ae!=null&&(this.standalone=this.stringify.xmlStandalone(ae))}return Se.prototype.toString=function(de){return this.options.writer.declaration(this,this.options.writer.filterOptions(de))},Se}(be)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(oe,_e,Ne){(function(){var ve,fe,be,Pe,ye,we,me,Se,de,z=function(ae,re){for(var le in re)ee.call(re,le)&&(ae[le]=re[le]);function ue(){this.constructor=ae}return ue.prototype=re.prototype,ae.prototype=new ue,ae.__super__=re.prototype,ae},ee={}.hasOwnProperty;de=oe("./Utility").isObject,Se=oe("./XMLNode"),ve=oe("./NodeType"),fe=oe("./XMLDTDAttList"),Pe=oe("./XMLDTDEntity"),be=oe("./XMLDTDElement"),ye=oe("./XMLDTDNotation"),me=oe("./XMLNamedNodeMap"),_e.exports=we=function(ae){z(re,ae);function re(le,ue,pe){var Ee,Ce,je,Le,ke,Oe;if(re.__super__.constructor.call(this,le),this.type=ve.DocType,le.children){for(Le=le.children,Ce=0,je=Le.length;Ce<je;Ce++)if(Ee=Le[Ce],Ee.type===ve.Element){this.name=Ee.name;break}}this.documentObject=le,de(ue)&&(ke=ue,ue=ke.pubID,pe=ke.sysID),pe==null&&(Oe=[ue,pe],pe=Oe[0],ue=Oe[1]),ue!=null&&(this.pubID=this.stringify.dtdPubID(ue)),pe!=null&&(this.sysID=this.stringify.dtdSysID(pe))}return Object.defineProperty(re.prototype,"entities",{get:function(){var le,ue,pe,Ee,Ce;for(Ee={},Ce=this.children,ue=0,pe=Ce.length;ue<pe;ue++)le=Ce[ue],le.type===ve.EntityDeclaration&&!le.pe&&(Ee[le.name]=le);return new me(Ee)}}),Object.defineProperty(re.prototype,"notations",{get:function(){var le,ue,pe,Ee,Ce;for(Ee={},Ce=this.children,ue=0,pe=Ce.length;ue<pe;ue++)le=Ce[ue],le.type===ve.NotationDeclaration&&(Ee[le.name]=le);return new me(Ee)}}),Object.defineProperty(re.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(re.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(re.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),re.prototype.element=function(le,ue){var pe;return pe=new be(this,le,ue),this.children.push(pe),this},re.prototype.attList=function(le,ue,pe,Ee,Ce){var je;return je=new fe(this,le,ue,pe,Ee,Ce),this.children.push(je),this},re.prototype.entity=function(le,ue){var pe;return pe=new Pe(this,!1,le,ue),this.children.push(pe),this},re.prototype.pEntity=function(le,ue){var pe;return pe=new Pe(this,!0,le,ue),this.children.push(pe),this},re.prototype.notation=function(le,ue){var pe;return pe=new ye(this,le,ue),this.children.push(pe),this},re.prototype.toString=function(le){return this.options.writer.docType(this,this.options.writer.filterOptions(le))},re.prototype.ele=function(le,ue){return this.element(le,ue)},re.prototype.att=function(le,ue,pe,Ee,Ce){return this.attList(le,ue,pe,Ee,Ce)},re.prototype.ent=function(le,ue){return this.entity(le,ue)},re.prototype.pent=function(le,ue){return this.pEntity(le,ue)},re.prototype.not=function(le,ue){return this.notation(le,ue)},re.prototype.up=function(){return this.root()||this.documentObject},re.prototype.isEqualNode=function(le){return!(!re.__super__.isEqualNode.apply(this,arguments).isEqualNode(le)||le.name!==this.name||le.publicId!==this.publicId||le.systemId!==this.systemId)},re}(Se)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLNamedNodeMap":449,"./XMLNode":450}],445:[function(oe,_e,Ne){(function(){var ve,fe,be,Pe,ye,we,me,Se,de=function(ee,ae){for(var re in ae)z.call(ae,re)&&(ee[re]=ae[re]);function le(){this.constructor=ee}return le.prototype=ae.prototype,ee.prototype=new le,ee.__super__=ae.prototype,ee},z={}.hasOwnProperty;Se=oe("./Utility").isPlainObject,be=oe("./XMLDOMImplementation"),fe=oe("./XMLDOMConfiguration"),ye=oe("./XMLNode"),ve=oe("./NodeType"),me=oe("./XMLStringifier"),we=oe("./XMLStringWriter"),_e.exports=Pe=function(ee){de(ae,ee);function ae(re){ae.__super__.constructor.call(this,null),this.name="#document",this.type=ve.Document,this.documentURI=null,this.domConfig=new fe,re||(re={}),re.writer||(re.writer=new we),this.options=re,this.stringify=new me(re)}return Object.defineProperty(ae.prototype,"implementation",{value:new be}),Object.defineProperty(ae.prototype,"doctype",{get:function(){var re,le,ue,pe;for(pe=this.children,le=0,ue=pe.length;le<ue;le++)if(re=pe[le],re.type===ve.DocType)return re;return null}}),Object.defineProperty(ae.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(ae.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(ae.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(ae.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===ve.Declaration?this.children[0].encoding:null}}),Object.defineProperty(ae.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===ve.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(ae.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===ve.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(ae.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(ae.prototype,"origin",{get:function(){return null}}),Object.defineProperty(ae.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(ae.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(ae.prototype,"contentType",{get:function(){return null}}),ae.prototype.end=function(re){var le;return le={},re?Se(re)&&(le=re,re=this.options.writer):re=this.options.writer,re.document(this,re.filterOptions(le))},ae.prototype.toString=function(re){return this.options.writer.document(this,this.options.writer.filterOptions(re))},ae.prototype.createElement=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createTextNode=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createComment=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createCDATASection=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createProcessingInstruction=function(re,le){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createAttribute=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createEntityReference=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.getElementsByTagName=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.importNode=function(re,le){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createElementNS=function(re,le){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createAttributeNS=function(re,le){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.getElementsByTagNameNS=function(re,le){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.getElementById=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.adoptNode=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.renameNode=function(re,le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.getElementsByClassName=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createEvent=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createNodeIterator=function(re,le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createTreeWalker=function(re,le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae}(ye)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDOMConfiguration":435,"./XMLDOMImplementation":437,"./XMLNode":450,"./XMLStringWriter":455,"./XMLStringifier":456}],446:[function(oe,_e,Ne){(function(){var ve,fe,be,Pe,ye,we,me,Se,de,z,ee,ae,re,le,ue,pe,Ee,Ce,je,Le,ke,Oe,Fe,Re,Ze={}.hasOwnProperty;Re=oe("./Utility"),Oe=Re.isObject,ke=Re.isFunction,Fe=Re.isPlainObject,Le=Re.getValue,ve=oe("./NodeType"),ae=oe("./XMLDocument"),le=oe("./XMLElement"),Pe=oe("./XMLCData"),ye=oe("./XMLComment"),pe=oe("./XMLRaw"),je=oe("./XMLText"),ue=oe("./XMLProcessingInstruction"),z=oe("./XMLDeclaration"),ee=oe("./XMLDocType"),we=oe("./XMLDTDAttList"),Se=oe("./XMLDTDEntity"),me=oe("./XMLDTDElement"),de=oe("./XMLDTDNotation"),be=oe("./XMLAttribute"),Ce=oe("./XMLStringifier"),Ee=oe("./XMLStringWriter"),fe=oe("./WriterState"),_e.exports=re=function(){function ze(Ke,ot,ct){var pt;this.name="?xml",this.type=ve.Document,Ke||(Ke={}),pt={},Ke.writer?Fe(Ke.writer)&&(pt=Ke.writer,Ke.writer=new Ee):Ke.writer=new Ee,this.options=Ke,this.writer=Ke.writer,this.writerOptions=this.writer.filterOptions(pt),this.stringify=new Ce(Ke),this.onDataCallback=ot||function(){},this.onEndCallback=ct||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return ze.prototype.createChildNode=function(Ke){var ot,ct,pt,bt,qe,at,gt,Ct;switch(Ke.type){case ve.CData:this.cdata(Ke.value);break;case ve.Comment:this.comment(Ke.value);break;case ve.Element:pt={},gt=Ke.attribs;for(ct in gt)Ze.call(gt,ct)&&(ot=gt[ct],pt[ct]=ot.value);this.node(Ke.name,pt);break;case ve.Dummy:this.dummy();break;case ve.Raw:this.raw(Ke.value);break;case ve.Text:this.text(Ke.value);break;case ve.ProcessingInstruction:this.instruction(Ke.target,Ke.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+Ke.constructor.name)}for(Ct=Ke.children,qe=0,at=Ct.length;qe<at;qe++)bt=Ct[qe],this.createChildNode(bt),bt.type===ve.Element&&this.up();return this},ze.prototype.dummy=function(){return this},ze.prototype.node=function(Ke,ot,ct){var pt;if(Ke==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(Ke));return this.openCurrent(),Ke=Le(Ke),ot==null&&(ot={}),ot=Le(ot),Oe(ot)||(pt=[ot,ct],ct=pt[0],ot=pt[1]),this.currentNode=new le(this,Ke,ot),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,ct!=null&&this.text(ct),this},ze.prototype.element=function(Ke,ot,ct){var pt,bt,qe,at,gt,Ct;if(this.currentNode&&this.currentNode.type===ve.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(Ke)||Oe(Ke)||ke(Ke))for(at=this.options.noValidation,this.options.noValidation=!0,Ct=new ae(this.options).element("TEMP_ROOT"),Ct.element(Ke),this.options.noValidation=at,gt=Ct.children,bt=0,qe=gt.length;bt<qe;bt++)pt=gt[bt],this.createChildNode(pt),pt.type===ve.Element&&this.up();else this.node(Ke,ot,ct);return this},ze.prototype.attribute=function(Ke,ot){var ct,pt;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(Ke));if(Ke!=null&&(Ke=Le(Ke)),Oe(Ke))for(ct in Ke)Ze.call(Ke,ct)&&(pt=Ke[ct],this.attribute(ct,pt));else ke(ot)&&(ot=ot.apply()),this.options.keepNullAttributes&&ot==null?this.currentNode.attribs[Ke]=new be(this,Ke,""):ot!=null&&(this.currentNode.attribs[Ke]=new be(this,Ke,ot));return this},ze.prototype.text=function(Ke){var ot;return this.openCurrent(),ot=new je(this,Ke),this.onData(this.writer.text(ot,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.cdata=function(Ke){var ot;return this.openCurrent(),ot=new Pe(this,Ke),this.onData(this.writer.cdata(ot,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.comment=function(Ke){var ot;return this.openCurrent(),ot=new ye(this,Ke),this.onData(this.writer.comment(ot,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.raw=function(Ke){var ot;return this.openCurrent(),ot=new pe(this,Ke),this.onData(this.writer.raw(ot,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.instruction=function(Ke,ot){var ct,pt,bt,qe,at;if(this.openCurrent(),Ke!=null&&(Ke=Le(Ke)),ot!=null&&(ot=Le(ot)),Array.isArray(Ke))for(ct=0,qe=Ke.length;ct<qe;ct++)pt=Ke[ct],this.instruction(pt);else if(Oe(Ke))for(pt in Ke)Ze.call(Ke,pt)&&(bt=Ke[pt],this.instruction(pt,bt));else ke(ot)&&(ot=ot.apply()),at=new ue(this,Ke,ot),this.onData(this.writer.processingInstruction(at,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},ze.prototype.declaration=function(Ke,ot,ct){var pt;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return pt=new z(this,Ke,ot,ct),this.onData(this.writer.declaration(pt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.doctype=function(Ke,ot,ct){if(this.openCurrent(),Ke==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new ee(this,ot,ct),this.currentNode.rootNodeName=Ke,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},ze.prototype.dtdElement=function(Ke,ot){var ct;return this.openCurrent(),ct=new me(this,Ke,ot),this.onData(this.writer.dtdElement(ct,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.attList=function(Ke,ot,ct,pt,bt){var qe;return this.openCurrent(),qe=new we(this,Ke,ot,ct,pt,bt),this.onData(this.writer.dtdAttList(qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.entity=function(Ke,ot){var ct;return this.openCurrent(),ct=new Se(this,!1,Ke,ot),this.onData(this.writer.dtdEntity(ct,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.pEntity=function(Ke,ot){var ct;return this.openCurrent(),ct=new Se(this,!0,Ke,ot),this.onData(this.writer.dtdEntity(ct,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.notation=function(Ke,ot){var ct;return this.openCurrent(),ct=new de(this,Ke,ot),this.onData(this.writer.dtdNotation(ct,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},ze.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},ze.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},ze.prototype.openNode=function(Ke){var ot,ct,pt,bt;if(!Ke.isOpen){if(!this.root&&this.currentLevel===0&&Ke.type===ve.Element&&(this.root=Ke),ct="",Ke.type===ve.Element){this.writerOptions.state=fe.OpenTag,ct=this.writer.indent(Ke,this.writerOptions,this.currentLevel)+"<"+Ke.name,bt=Ke.attribs;for(pt in bt)Ze.call(bt,pt)&&(ot=bt[pt],ct+=this.writer.attribute(ot,this.writerOptions,this.currentLevel));ct+=(Ke.children?">":"/>")+this.writer.endline(Ke,this.writerOptions,this.currentLevel),this.writerOptions.state=fe.InsideTag}else this.writerOptions.state=fe.OpenTag,ct=this.writer.indent(Ke,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+Ke.rootNodeName,Ke.pubID&&Ke.sysID?ct+=' PUBLIC "'+Ke.pubID+'" "'+Ke.sysID+'"':Ke.sysID&&(ct+=' SYSTEM "'+Ke.sysID+'"'),Ke.children?(ct+=" [",this.writerOptions.state=fe.InsideTag):(this.writerOptions.state=fe.CloseTag,ct+=">"),ct+=this.writer.endline(Ke,this.writerOptions,this.currentLevel);return this.onData(ct,this.currentLevel),Ke.isOpen=!0}},ze.prototype.closeNode=function(Ke){var ot;if(!Ke.isClosed)return ot="",this.writerOptions.state=fe.CloseTag,Ke.type===ve.Element?ot=this.writer.indent(Ke,this.writerOptions,this.currentLevel)+"</"+Ke.name+">"+this.writer.endline(Ke,this.writerOptions,this.currentLevel):ot=this.writer.indent(Ke,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(Ke,this.writerOptions,this.currentLevel),this.writerOptions.state=fe.None,this.onData(ot,this.currentLevel),Ke.isClosed=!0},ze.prototype.onData=function(Ke,ot){return this.documentStarted=!0,this.onDataCallback(Ke,ot+1)},ze.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},ze.prototype.debugInfo=function(Ke){return Ke==null?"":"node: <"+Ke+">"},ze.prototype.ele=function(){return this.element.apply(this,arguments)},ze.prototype.nod=function(Ke,ot,ct){return this.node(Ke,ot,ct)},ze.prototype.txt=function(Ke){return this.text(Ke)},ze.prototype.dat=function(Ke){return this.cdata(Ke)},ze.prototype.com=function(Ke){return this.comment(Ke)},ze.prototype.ins=function(Ke,ot){return this.instruction(Ke,ot)},ze.prototype.dec=function(Ke,ot,ct){return this.declaration(Ke,ot,ct)},ze.prototype.dtd=function(Ke,ot,ct){return this.doctype(Ke,ot,ct)},ze.prototype.e=function(Ke,ot,ct){return this.element(Ke,ot,ct)},ze.prototype.n=function(Ke,ot,ct){return this.node(Ke,ot,ct)},ze.prototype.t=function(Ke){return this.text(Ke)},ze.prototype.d=function(Ke){return this.cdata(Ke)},ze.prototype.c=function(Ke){return this.comment(Ke)},ze.prototype.r=function(Ke){return this.raw(Ke)},ze.prototype.i=function(Ke,ot){return this.instruction(Ke,ot)},ze.prototype.att=function(){return this.currentNode&&this.currentNode.type===ve.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},ze.prototype.a=function(){return this.currentNode&&this.currentNode.type===ve.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},ze.prototype.ent=function(Ke,ot){return this.entity(Ke,ot)},ze.prototype.pent=function(Ke,ot){return this.pEntity(Ke,ot)},ze.prototype.not=function(Ke,ot){return this.notation(Ke,ot)},ze}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLAttribute":431,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDocument":445,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLStringWriter":455,"./XMLStringifier":456,"./XMLText":457}],447:[function(oe,_e,Ne){(function(){var ve,fe,be,Pe=function(we,me){for(var Se in me)ye.call(me,Se)&&(we[Se]=me[Se]);function de(){this.constructor=we}return de.prototype=me.prototype,we.prototype=new de,we.__super__=me.prototype,we},ye={}.hasOwnProperty;be=oe("./XMLNode"),ve=oe("./NodeType"),_e.exports=fe=function(we){Pe(me,we);function me(Se){me.__super__.constructor.call(this,Se),this.type=ve.Dummy}return me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(Se){return""},me}(be)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(oe,_e,Ne){(function(){var ve,fe,be,Pe,ye,we,me,Se,de,z=function(ae,re){for(var le in re)ee.call(re,le)&&(ae[le]=re[le]);function ue(){this.constructor=ae}return ue.prototype=re.prototype,ae.prototype=new ue,ae.__super__=re.prototype,ae},ee={}.hasOwnProperty;de=oe("./Utility"),Se=de.isObject,me=de.isFunction,we=de.getValue,ye=oe("./XMLNode"),ve=oe("./NodeType"),fe=oe("./XMLAttribute"),Pe=oe("./XMLNamedNodeMap"),_e.exports=be=function(ae){z(re,ae);function re(le,ue,pe){var Ee,Ce,je,Le;if(re.__super__.constructor.call(this,le),ue==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(ue),this.type=ve.Element,this.attribs={},this.schemaTypeInfo=null,pe!=null&&this.attribute(pe),le.type===ve.Document&&(this.isRoot=!0,this.documentObject=le,le.rootObject=this,le.children)){for(Le=le.children,Ce=0,je=Le.length;Ce<je;Ce++)if(Ee=Le[Ce],Ee.type===ve.DocType){Ee.name=this.name;break}}}return Object.defineProperty(re.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(re.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(re.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(re.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(re.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(re.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(re.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(re.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new Pe(this.attribs)),this.attributeMap}}),re.prototype.clone=function(){var le,ue,pe,Ee;pe=Object.create(this),pe.isRoot&&(pe.documentObject=null),pe.attribs={},Ee=this.attribs;for(ue in Ee)ee.call(Ee,ue)&&(le=Ee[ue],pe.attribs[ue]=le.clone());return pe.children=[],this.children.forEach(function(Ce){var je;return je=Ce.clone(),je.parent=pe,pe.children.push(je)}),pe},re.prototype.attribute=function(le,ue){var pe,Ee;if(le!=null&&(le=we(le)),Se(le))for(pe in le)ee.call(le,pe)&&(Ee=le[pe],this.attribute(pe,Ee));else me(ue)&&(ue=ue.apply()),this.options.keepNullAttributes&&ue==null?this.attribs[le]=new fe(this,le,""):ue!=null&&(this.attribs[le]=new fe(this,le,ue));return this},re.prototype.removeAttribute=function(le){var ue,pe,Ee;if(le==null)throw new Error("Missing attribute name. "+this.debugInfo());if(le=we(le),Array.isArray(le))for(pe=0,Ee=le.length;pe<Ee;pe++)ue=le[pe],delete this.attribs[ue];else delete this.attribs[le];return this},re.prototype.toString=function(le){return this.options.writer.element(this,this.options.writer.filterOptions(le))},re.prototype.att=function(le,ue){return this.attribute(le,ue)},re.prototype.a=function(le,ue){return this.attribute(le,ue)},re.prototype.getAttribute=function(le){return this.attribs.hasOwnProperty(le)?this.attribs[le].value:null},re.prototype.setAttribute=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getAttributeNode=function(le){return this.attribs.hasOwnProperty(le)?this.attribs[le]:null},re.prototype.setAttributeNode=function(le){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.removeAttributeNode=function(le){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getElementsByTagName=function(le){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getAttributeNS=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.setAttributeNS=function(le,ue,pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.removeAttributeNS=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getAttributeNodeNS=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.setAttributeNodeNS=function(le){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getElementsByTagNameNS=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.hasAttribute=function(le){return this.attribs.hasOwnProperty(le)},re.prototype.hasAttributeNS=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.setIdAttribute=function(le,ue){return this.attribs.hasOwnProperty(le)?this.attribs[le].isId:ue},re.prototype.setIdAttributeNS=function(le,ue,pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.setIdAttributeNode=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getElementsByTagName=function(le){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getElementsByTagNameNS=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getElementsByClassName=function(le){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.isEqualNode=function(le){var ue,pe,Ee;if(!re.__super__.isEqualNode.apply(this,arguments).isEqualNode(le)||le.namespaceURI!==this.namespaceURI||le.prefix!==this.prefix||le.localName!==this.localName||le.attribs.length!==this.attribs.length)return!1;for(ue=pe=0,Ee=this.attribs.length-1;0<=Ee?pe<=Ee:pe>=Ee;ue=0<=Ee?++pe:--pe)if(!this.attribs[ue].isEqualNode(le.attribs[ue]))return!1;return!0},re}(ye)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(oe,_e,Ne){(function(){var ve;_e.exports=ve=function(){function fe(be){this.nodes=be}return Object.defineProperty(fe.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),fe.prototype.clone=function(){return this.nodes=null},fe.prototype.getNamedItem=function(be){return this.nodes[be]},fe.prototype.setNamedItem=function(be){var Pe;return Pe=this.nodes[be.nodeName],this.nodes[be.nodeName]=be,Pe||null},fe.prototype.removeNamedItem=function(be){var Pe;return Pe=this.nodes[be],delete this.nodes[be],Pe||null},fe.prototype.item=function(be){return this.nodes[Object.keys(this.nodes)[be]]||null},fe.prototype.getNamedItemNS=function(be,Pe){throw new Error("This DOM method is not implemented.")},fe.prototype.setNamedItemNS=function(be){throw new Error("This DOM method is not implemented.")},fe.prototype.removeNamedItemNS=function(be,Pe){throw new Error("This DOM method is not implemented.")},fe}()}).call(this)},{}],450:[function(oe,_e,Ne){(function(){var ve,fe,be,Pe,ye,we,me,Se,de,z,ee,ae,re,le,ue,pe,Ee,Ce,je,Le={}.hasOwnProperty;je=oe("./Utility"),Ce=je.isObject,Ee=je.isFunction,pe=je.isEmpty,ue=je.getValue,Se=null,be=null,Pe=null,ye=null,we=null,re=null,le=null,ae=null,me=null,fe=null,ee=null,de=null,ve=null,_e.exports=z=function(){function ke(Oe){this.parent=Oe,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,Se||(Se=oe("./XMLElement"),be=oe("./XMLCData"),Pe=oe("./XMLComment"),ye=oe("./XMLDeclaration"),we=oe("./XMLDocType"),re=oe("./XMLRaw"),le=oe("./XMLText"),ae=oe("./XMLProcessingInstruction"),me=oe("./XMLDummy"),fe=oe("./NodeType"),ee=oe("./XMLNodeList"),de=oe("./XMLNamedNodeMap"),ve=oe("./DocumentPosition"))}return Object.defineProperty(ke.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(ke.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(ke.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(ke.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(ke.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new ee(this.children)),this.childNodeList}}),Object.defineProperty(ke.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(ke.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(ke.prototype,"previousSibling",{get:function(){var Oe;return Oe=this.parent.children.indexOf(this),this.parent.children[Oe-1]||null}}),Object.defineProperty(ke.prototype,"nextSibling",{get:function(){var Oe;return Oe=this.parent.children.indexOf(this),this.parent.children[Oe+1]||null}}),Object.defineProperty(ke.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(ke.prototype,"textContent",{get:function(){var Oe,Fe,Re,Ze,ze;if(this.nodeType===fe.Element||this.nodeType===fe.DocumentFragment){for(ze="",Ze=this.children,Fe=0,Re=Ze.length;Fe<Re;Fe++)Oe=Ze[Fe],Oe.textContent&&(ze+=Oe.textContent);return ze}else return null},set:function(Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),ke.prototype.setParent=function(Oe){var Fe,Re,Ze,ze,Ke;for(this.parent=Oe,Oe&&(this.options=Oe.options,this.stringify=Oe.stringify),ze=this.children,Ke=[],Re=0,Ze=ze.length;Re<Ze;Re++)Fe=ze[Re],Ke.push(Fe.setParent(this));return Ke},ke.prototype.element=function(Oe,Fe,Re){var Ze,ze,Ke,ot,ct,pt,bt,qe,at,gt,Ct;if(pt=null,Fe===null&&Re==null&&(at=[{},null],Fe=at[0],Re=at[1]),Fe==null&&(Fe={}),Fe=ue(Fe),Ce(Fe)||(gt=[Fe,Re],Re=gt[0],Fe=gt[1]),Oe!=null&&(Oe=ue(Oe)),Array.isArray(Oe))for(Ke=0,bt=Oe.length;Ke<bt;Ke++)ze=Oe[Ke],pt=this.element(ze);else if(Ee(Oe))pt=this.element(Oe.apply());else if(Ce(Oe)){for(ct in Oe)if(Le.call(Oe,ct))if(Ct=Oe[ct],Ee(Ct)&&(Ct=Ct.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&ct.indexOf(this.stringify.convertAttKey)===0)pt=this.attribute(ct.substr(this.stringify.convertAttKey.length),Ct);else if(!this.options.separateArrayItems&&Array.isArray(Ct)&&pe(Ct))pt=this.dummy();else if(Ce(Ct)&&pe(Ct))pt=this.element(ct);else if(!this.options.keepNullNodes&&Ct==null)pt=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(Ct))for(ot=0,qe=Ct.length;ot<qe;ot++)ze=Ct[ot],Ze={},Ze[ct]=ze,pt=this.element(Ze);else Ce(Ct)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ct.indexOf(this.stringify.convertTextKey)===0?pt=this.element(Ct):(pt=this.element(ct),pt.element(Ct)):pt=this.element(ct,Ct)}else!this.options.keepNullNodes&&Re===null?pt=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&Oe.indexOf(this.stringify.convertTextKey)===0?pt=this.text(Re):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&Oe.indexOf(this.stringify.convertCDataKey)===0?pt=this.cdata(Re):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&Oe.indexOf(this.stringify.convertCommentKey)===0?pt=this.comment(Re):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&Oe.indexOf(this.stringify.convertRawKey)===0?pt=this.raw(Re):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&Oe.indexOf(this.stringify.convertPIKey)===0?pt=this.instruction(Oe.substr(this.stringify.convertPIKey.length),Re):pt=this.node(Oe,Fe,Re);if(pt==null)throw new Error("Could not create any elements with: "+Oe+". "+this.debugInfo());return pt},ke.prototype.insertBefore=function(Oe,Fe,Re){var Ze,ze,Ke,ot,ct;if(Oe!=null&&Oe.type)return Ke=Oe,ot=Fe,Ke.setParent(this),ot?(ze=children.indexOf(ot),ct=children.splice(ze),children.push(Ke),Array.prototype.push.apply(children,ct)):children.push(Ke),Ke;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Oe));return ze=this.parent.children.indexOf(this),ct=this.parent.children.splice(ze),Ze=this.parent.element(Oe,Fe,Re),Array.prototype.push.apply(this.parent.children,ct),Ze},ke.prototype.insertAfter=function(Oe,Fe,Re){var Ze,ze,Ke;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Oe));return ze=this.parent.children.indexOf(this),Ke=this.parent.children.splice(ze+1),Ze=this.parent.element(Oe,Fe,Re),Array.prototype.push.apply(this.parent.children,Ke),Ze},ke.prototype.remove=function(){var Oe,Fe;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return Oe=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[Oe,Oe-Oe+1].concat(Fe=[])),this.parent},ke.prototype.node=function(Oe,Fe,Re){var Ze,ze;return Oe!=null&&(Oe=ue(Oe)),Fe||(Fe={}),Fe=ue(Fe),Ce(Fe)||(ze=[Fe,Re],Re=ze[0],Fe=ze[1]),Ze=new Se(this,Oe,Fe),Re!=null&&Ze.text(Re),this.children.push(Ze),Ze},ke.prototype.text=function(Oe){var Fe;return Ce(Oe)&&this.element(Oe),Fe=new le(this,Oe),this.children.push(Fe),this},ke.prototype.cdata=function(Oe){var Fe;return Fe=new be(this,Oe),this.children.push(Fe),this},ke.prototype.comment=function(Oe){var Fe;return Fe=new Pe(this,Oe),this.children.push(Fe),this},ke.prototype.commentBefore=function(Oe){var Fe,Re,Ze;return Re=this.parent.children.indexOf(this),Ze=this.parent.children.splice(Re),Fe=this.parent.comment(Oe),Array.prototype.push.apply(this.parent.children,Ze),this},ke.prototype.commentAfter=function(Oe){var Fe,Re,Ze;return Re=this.parent.children.indexOf(this),Ze=this.parent.children.splice(Re+1),Fe=this.parent.comment(Oe),Array.prototype.push.apply(this.parent.children,Ze),this},ke.prototype.raw=function(Oe){var Fe;return Fe=new re(this,Oe),this.children.push(Fe),this},ke.prototype.dummy=function(){var Oe;return Oe=new me(this),Oe},ke.prototype.instruction=function(Oe,Fe){var Re,Ze,ze,Ke,ot;if(Oe!=null&&(Oe=ue(Oe)),Fe!=null&&(Fe=ue(Fe)),Array.isArray(Oe))for(Ke=0,ot=Oe.length;Ke<ot;Ke++)Re=Oe[Ke],this.instruction(Re);else if(Ce(Oe))for(Re in Oe)Le.call(Oe,Re)&&(Ze=Oe[Re],this.instruction(Re,Ze));else Ee(Fe)&&(Fe=Fe.apply()),ze=new ae(this,Oe,Fe),this.children.push(ze);return this},ke.prototype.instructionBefore=function(Oe,Fe){var Re,Ze,ze;return Ze=this.parent.children.indexOf(this),ze=this.parent.children.splice(Ze),Re=this.parent.instruction(Oe,Fe),Array.prototype.push.apply(this.parent.children,ze),this},ke.prototype.instructionAfter=function(Oe,Fe){var Re,Ze,ze;return Ze=this.parent.children.indexOf(this),ze=this.parent.children.splice(Ze+1),Re=this.parent.instruction(Oe,Fe),Array.prototype.push.apply(this.parent.children,ze),this},ke.prototype.declaration=function(Oe,Fe,Re){var Ze,ze;return Ze=this.document(),ze=new ye(Ze,Oe,Fe,Re),Ze.children.length===0?Ze.children.unshift(ze):Ze.children[0].type===fe.Declaration?Ze.children[0]=ze:Ze.children.unshift(ze),Ze.root()||Ze},ke.prototype.dtd=function(Oe,Fe){var Re,Ze,ze,Ke,ot,ct,pt,bt,qe,at;for(Ze=this.document(),ze=new we(Ze,Oe,Fe),qe=Ze.children,Ke=ot=0,pt=qe.length;ot<pt;Ke=++ot)if(Re=qe[Ke],Re.type===fe.DocType)return Ze.children[Ke]=ze,ze;for(at=Ze.children,Ke=ct=0,bt=at.length;ct<bt;Ke=++ct)if(Re=at[Ke],Re.isRoot)return Ze.children.splice(Ke,0,ze),ze;return Ze.children.push(ze),ze},ke.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},ke.prototype.root=function(){var Oe;for(Oe=this;Oe;){if(Oe.type===fe.Document)return Oe.rootObject;if(Oe.isRoot)return Oe;Oe=Oe.parent}},ke.prototype.document=function(){var Oe;for(Oe=this;Oe;){if(Oe.type===fe.Document)return Oe;Oe=Oe.parent}},ke.prototype.end=function(Oe){return this.document().end(Oe)},ke.prototype.prev=function(){var Oe;if(Oe=this.parent.children.indexOf(this),Oe<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[Oe-1]},ke.prototype.next=function(){var Oe;if(Oe=this.parent.children.indexOf(this),Oe===-1||Oe===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[Oe+1]},ke.prototype.importDocument=function(Oe){var Fe;return Fe=Oe.root().clone(),Fe.parent=this,Fe.isRoot=!1,this.children.push(Fe),this},ke.prototype.debugInfo=function(Oe){var Fe,Re;return Oe=Oe||this.name,Oe==null&&!((Fe=this.parent)!=null&&Fe.name)?"":Oe==null?"parent: <"+this.parent.name+">":(Re=this.parent)!=null&&Re.name?"node: <"+Oe+">, parent: <"+this.parent.name+">":"node: <"+Oe+">"},ke.prototype.ele=function(Oe,Fe,Re){return this.element(Oe,Fe,Re)},ke.prototype.nod=function(Oe,Fe,Re){return this.node(Oe,Fe,Re)},ke.prototype.txt=function(Oe){return this.text(Oe)},ke.prototype.dat=function(Oe){return this.cdata(Oe)},ke.prototype.com=function(Oe){return this.comment(Oe)},ke.prototype.ins=function(Oe,Fe){return this.instruction(Oe,Fe)},ke.prototype.doc=function(){return this.document()},ke.prototype.dec=function(Oe,Fe,Re){return this.declaration(Oe,Fe,Re)},ke.prototype.e=function(Oe,Fe,Re){return this.element(Oe,Fe,Re)},ke.prototype.n=function(Oe,Fe,Re){return this.node(Oe,Fe,Re)},ke.prototype.t=function(Oe){return this.text(Oe)},ke.prototype.d=function(Oe){return this.cdata(Oe)},ke.prototype.c=function(Oe){return this.comment(Oe)},ke.prototype.r=function(Oe){return this.raw(Oe)},ke.prototype.i=function(Oe,Fe){return this.instruction(Oe,Fe)},ke.prototype.u=function(){return this.up()},ke.prototype.importXMLBuilder=function(Oe){return this.importDocument(Oe)},ke.prototype.replaceChild=function(Oe,Fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.removeChild=function(Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.appendChild=function(Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.hasChildNodes=function(){return this.children.length!==0},ke.prototype.cloneNode=function(Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.isSupported=function(Oe,Fe){return!0},ke.prototype.hasAttributes=function(){return this.attribs.length!==0},ke.prototype.compareDocumentPosition=function(Oe){var Fe,Re;return Fe=this,Fe===Oe?0:this.document()!==Oe.document()?(Re=ve.Disconnected|ve.ImplementationSpecific,Math.random()<.5?Re|=ve.Preceding:Re|=ve.Following,Re):Fe.isAncestor(Oe)?ve.Contains|ve.Preceding:Fe.isDescendant(Oe)?ve.Contains|ve.Following:Fe.isPreceding(Oe)?ve.Preceding:ve.Following},ke.prototype.isSameNode=function(Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.lookupPrefix=function(Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.isDefaultNamespace=function(Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.lookupNamespaceURI=function(Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.isEqualNode=function(Oe){var Fe,Re,Ze;if(Oe.nodeType!==this.nodeType||Oe.children.length!==this.children.length)return!1;for(Fe=Re=0,Ze=this.children.length-1;0<=Ze?Re<=Ze:Re>=Ze;Fe=0<=Ze?++Re:--Re)if(!this.children[Fe].isEqualNode(Oe.children[Fe]))return!1;return!0},ke.prototype.getFeature=function(Oe,Fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.setUserData=function(Oe,Fe,Re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.getUserData=function(Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.contains=function(Oe){return Oe?Oe===this||this.isDescendant(Oe):!1},ke.prototype.isDescendant=function(Oe){var Fe,Re,Ze,ze,Ke;for(Ke=this.children,Ze=0,ze=Ke.length;Ze<ze;Ze++)if(Fe=Ke[Ze],Oe===Fe||(Re=Fe.isDescendant(Oe),Re))return!0;return!1},ke.prototype.isAncestor=function(Oe){return Oe.isDescendant(this)},ke.prototype.isPreceding=function(Oe){var Fe,Re;return Fe=this.treePosition(Oe),Re=this.treePosition(this),Fe===-1||Re===-1?!1:Fe<Re},ke.prototype.isFollowing=function(Oe){var Fe,Re;return Fe=this.treePosition(Oe),Re=this.treePosition(this),Fe===-1||Re===-1?!1:Fe>Re},ke.prototype.treePosition=function(Oe){var Fe,Re;return Re=0,Fe=!1,this.foreachTreeNode(this.document(),function(Ze){if(Re++,!Fe&&Ze===Oe)return Fe=!0}),Fe?Re:-1},ke.prototype.foreachTreeNode=function(Oe,Fe){var Re,Ze,ze,Ke,ot;for(Oe||(Oe=this.document()),Ke=Oe.children,Ze=0,ze=Ke.length;Ze<ze;Ze++){if(Re=Ke[Ze],ot=Fe(Re))return ot;if(ot=this.foreachTreeNode(Re,Fe),ot)return ot}},ke}()}).call(this)},{"./DocumentPosition":427,"./NodeType":428,"./Utility":429,"./XMLCData":432,"./XMLComment":434,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLNamedNodeMap":449,"./XMLNodeList":451,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],451:[function(oe,_e,Ne){(function(){var ve;_e.exports=ve=function(){function fe(be){this.nodes=be}return Object.defineProperty(fe.prototype,"length",{get:function(){return this.nodes.length||0}}),fe.prototype.clone=function(){return this.nodes=null},fe.prototype.item=function(be){return this.nodes[be]||null},fe}()}).call(this)},{}],452:[function(oe,_e,Ne){(function(){var ve,fe,be,Pe=function(we,me){for(var Se in me)ye.call(me,Se)&&(we[Se]=me[Se]);function de(){this.constructor=we}return de.prototype=me.prototype,we.prototype=new de,we.__super__=me.prototype,we},ye={}.hasOwnProperty;ve=oe("./NodeType"),fe=oe("./XMLCharacterData"),_e.exports=be=function(we){Pe(me,we);function me(Se,de,z){if(me.__super__.constructor.call(this,Se),de==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=ve.ProcessingInstruction,this.target=this.stringify.insTarget(de),this.name=this.target,z&&(this.value=this.stringify.insValue(z))}return me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(Se){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(Se))},me.prototype.isEqualNode=function(Se){return!(!me.__super__.isEqualNode.apply(this,arguments).isEqualNode(Se)||Se.target!==this.target)},me}(fe)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(oe,_e,Ne){(function(){var ve,fe,be,Pe=function(we,me){for(var Se in me)ye.call(me,Se)&&(we[Se]=me[Se]);function de(){this.constructor=we}return de.prototype=me.prototype,we.prototype=new de,we.__super__=me.prototype,we},ye={}.hasOwnProperty;ve=oe("./NodeType"),fe=oe("./XMLNode"),_e.exports=be=function(we){Pe(me,we);function me(Se,de){if(me.__super__.constructor.call(this,Se),de==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=ve.Raw,this.value=this.stringify.raw(de)}return me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(Se){return this.options.writer.raw(this,this.options.writer.filterOptions(Se))},me}(fe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(oe,_e,Ne){(function(){var ve,fe,be,Pe,ye=function(me,Se){for(var de in Se)we.call(Se,de)&&(me[de]=Se[de]);function z(){this.constructor=me}return z.prototype=Se.prototype,me.prototype=new z,me.__super__=Se.prototype,me},we={}.hasOwnProperty;ve=oe("./NodeType"),Pe=oe("./XMLWriterBase"),fe=oe("./WriterState"),_e.exports=be=function(me){ye(Se,me);function Se(de,z){this.stream=de,Se.__super__.constructor.call(this,z)}return Se.prototype.endline=function(de,z,ee){return de.isLastRootNode&&z.state===fe.CloseTag?"":Se.__super__.endline.call(this,de,z,ee)},Se.prototype.document=function(de,z){var ee,ae,re,le,ue,pe,Ee,Ce,je;for(Ee=de.children,ae=re=0,ue=Ee.length;re<ue;ae=++re)ee=Ee[ae],ee.isLastRootNode=ae===de.children.length-1;for(z=this.filterOptions(z),Ce=de.children,je=[],le=0,pe=Ce.length;le<pe;le++)ee=Ce[le],je.push(this.writeChildNode(ee,z,0));return je},Se.prototype.attribute=function(de,z,ee){return this.stream.write(Se.__super__.attribute.call(this,de,z,ee))},Se.prototype.cdata=function(de,z,ee){return this.stream.write(Se.__super__.cdata.call(this,de,z,ee))},Se.prototype.comment=function(de,z,ee){return this.stream.write(Se.__super__.comment.call(this,de,z,ee))},Se.prototype.declaration=function(de,z,ee){return this.stream.write(Se.__super__.declaration.call(this,de,z,ee))},Se.prototype.docType=function(de,z,ee){var ae,re,le,ue;if(ee||(ee=0),this.openNode(de,z,ee),z.state=fe.OpenTag,this.stream.write(this.indent(de,z,ee)),this.stream.write("<!DOCTYPE "+de.root().name),de.pubID&&de.sysID?this.stream.write(' PUBLIC "'+de.pubID+'" "'+de.sysID+'"'):de.sysID&&this.stream.write(' SYSTEM "'+de.sysID+'"'),de.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(de,z,ee)),z.state=fe.InsideTag,ue=de.children,re=0,le=ue.length;re<le;re++)ae=ue[re],this.writeChildNode(ae,z,ee+1);z.state=fe.CloseTag,this.stream.write("]")}return z.state=fe.CloseTag,this.stream.write(z.spaceBeforeSlash+">"),this.stream.write(this.endline(de,z,ee)),z.state=fe.None,this.closeNode(de,z,ee)},Se.prototype.element=function(de,z,ee){var ae,re,le,ue,pe,Ee,Ce,je,Le,ke;ee||(ee=0),this.openNode(de,z,ee),z.state=fe.OpenTag,this.stream.write(this.indent(de,z,ee)+"<"+de.name),Le=de.attribs;for(Ce in Le)we.call(Le,Ce)&&(ae=Le[Ce],this.attribute(ae,z,ee));if(le=de.children.length,ue=le===0?null:de.children[0],le===0||de.children.every(function(Oe){return(Oe.type===ve.Text||Oe.type===ve.Raw)&&Oe.value===""}))z.allowEmpty?(this.stream.write(">"),z.state=fe.CloseTag,this.stream.write("</"+de.name+">")):(z.state=fe.CloseTag,this.stream.write(z.spaceBeforeSlash+"/>"));else if(z.pretty&&le===1&&(ue.type===ve.Text||ue.type===ve.Raw)&&ue.value!=null)this.stream.write(">"),z.state=fe.InsideTag,z.suppressPrettyCount++,je=!0,this.writeChildNode(ue,z,ee+1),z.suppressPrettyCount--,je=!1,z.state=fe.CloseTag,this.stream.write("</"+de.name+">");else{for(this.stream.write(">"+this.endline(de,z,ee)),z.state=fe.InsideTag,ke=de.children,pe=0,Ee=ke.length;pe<Ee;pe++)re=ke[pe],this.writeChildNode(re,z,ee+1);z.state=fe.CloseTag,this.stream.write(this.indent(de,z,ee)+"</"+de.name+">")}return this.stream.write(this.endline(de,z,ee)),z.state=fe.None,this.closeNode(de,z,ee)},Se.prototype.processingInstruction=function(de,z,ee){return this.stream.write(Se.__super__.processingInstruction.call(this,de,z,ee))},Se.prototype.raw=function(de,z,ee){return this.stream.write(Se.__super__.raw.call(this,de,z,ee))},Se.prototype.text=function(de,z,ee){return this.stream.write(Se.__super__.text.call(this,de,z,ee))},Se.prototype.dtdAttList=function(de,z,ee){return this.stream.write(Se.__super__.dtdAttList.call(this,de,z,ee))},Se.prototype.dtdElement=function(de,z,ee){return this.stream.write(Se.__super__.dtdElement.call(this,de,z,ee))},Se.prototype.dtdEntity=function(de,z,ee){return this.stream.write(Se.__super__.dtdEntity.call(this,de,z,ee))},Se.prototype.dtdNotation=function(de,z,ee){return this.stream.write(Se.__super__.dtdNotation.call(this,de,z,ee))},Se}(Pe)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(oe,_e,Ne){(function(){var ve,fe,be=function(ye,we){for(var me in we)Pe.call(we,me)&&(ye[me]=we[me]);function Se(){this.constructor=ye}return Se.prototype=we.prototype,ye.prototype=new Se,ye.__super__=we.prototype,ye},Pe={}.hasOwnProperty;fe=oe("./XMLWriterBase"),_e.exports=ve=function(ye){be(we,ye);function we(me){we.__super__.constructor.call(this,me)}return we.prototype.document=function(me,Se){var de,z,ee,ae,re;for(Se=this.filterOptions(Se),ae="",re=me.children,z=0,ee=re.length;z<ee;z++)de=re[z],ae+=this.writeChildNode(de,Se,0);return Se.pretty&&ae.slice(-Se.newline.length)===Se.newline&&(ae=ae.slice(0,-Se.newline.length)),ae},we}(fe)}).call(this)},{"./XMLWriterBase":458}],456:[function(oe,_e,Ne){(function(){var ve,fe=function(Pe,ye){return function(){return Pe.apply(ye,arguments)}},be={}.hasOwnProperty;_e.exports=ve=function(){function Pe(ye){this.assertLegalName=fe(this.assertLegalName,this),this.assertLegalChar=fe(this.assertLegalChar,this);var we,me,Se;ye||(ye={}),this.options=ye,this.options.version||(this.options.version="1.0"),me=ye.stringify||{};for(we in me)be.call(me,we)&&(Se=me[we],this[we]=Se)}return Pe.prototype.name=function(ye){return this.options.noValidation?ye:this.assertLegalName(""+ye||"")},Pe.prototype.text=function(ye){return this.options.noValidation?ye:this.assertLegalChar(this.textEscape(""+ye||""))},Pe.prototype.cdata=function(ye){return this.options.noValidation?ye:(ye=""+ye||"",ye=ye.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(ye))},Pe.prototype.comment=function(ye){if(this.options.noValidation)return ye;if(ye=""+ye||"",ye.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+ye);return this.assertLegalChar(ye)},Pe.prototype.raw=function(ye){return this.options.noValidation?ye:""+ye||""},Pe.prototype.attValue=function(ye){return this.options.noValidation?ye:this.assertLegalChar(this.attEscape(ye=""+ye||""))},Pe.prototype.insTarget=function(ye){return this.options.noValidation?ye:this.assertLegalChar(""+ye||"")},Pe.prototype.insValue=function(ye){if(this.options.noValidation)return ye;if(ye=""+ye||"",ye.match(/\?>/))throw new Error("Invalid processing instruction value: "+ye);return this.assertLegalChar(ye)},Pe.prototype.xmlVersion=function(ye){if(this.options.noValidation)return ye;if(ye=""+ye||"",!ye.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+ye);return ye},Pe.prototype.xmlEncoding=function(ye){if(this.options.noValidation)return ye;if(ye=""+ye||"",!ye.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+ye);return this.assertLegalChar(ye)},Pe.prototype.xmlStandalone=function(ye){return this.options.noValidation?ye:ye?"yes":"no"},Pe.prototype.dtdPubID=function(ye){return this.options.noValidation?ye:this.assertLegalChar(""+ye||"")},Pe.prototype.dtdSysID=function(ye){return this.options.noValidation?ye:this.assertLegalChar(""+ye||"")},Pe.prototype.dtdElementValue=function(ye){return this.options.noValidation?ye:this.assertLegalChar(""+ye||"")},Pe.prototype.dtdAttType=function(ye){return this.options.noValidation?ye:this.assertLegalChar(""+ye||"")},Pe.prototype.dtdAttDefault=function(ye){return this.options.noValidation?ye:this.assertLegalChar(""+ye||"")},Pe.prototype.dtdEntityValue=function(ye){return this.options.noValidation?ye:this.assertLegalChar(""+ye||"")},Pe.prototype.dtdNData=function(ye){return this.options.noValidation?ye:this.assertLegalChar(""+ye||"")},Pe.prototype.convertAttKey="@",Pe.prototype.convertPIKey="?",Pe.prototype.convertTextKey="#text",Pe.prototype.convertCDataKey="#cdata",Pe.prototype.convertCommentKey="#comment",Pe.prototype.convertRawKey="#raw",Pe.prototype.assertLegalChar=function(ye){var we,me;if(this.options.noValidation)return ye;if(we="",this.options.version==="1.0"){if(we=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,me=ye.match(we))throw new Error("Invalid character in string: "+ye+" at index "+me.index)}else if(this.options.version==="1.1"&&(we=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,me=ye.match(we)))throw new Error("Invalid character in string: "+ye+" at index "+me.index);return ye},Pe.prototype.assertLegalName=function(ye){var we;if(this.options.noValidation)return ye;if(this.assertLegalChar(ye),we=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!ye.match(we))throw new Error("Invalid character in name");return ye},Pe.prototype.textEscape=function(ye){var we;return this.options.noValidation?ye:(we=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ye.replace(we,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},Pe.prototype.attEscape=function(ye){var we;return this.options.noValidation?ye:(we=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ye.replace(we,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},Pe}()}).call(this)},{}],457:[function(oe,_e,Ne){(function(){var ve,fe,be,Pe=function(we,me){for(var Se in me)ye.call(me,Se)&&(we[Se]=me[Se]);function de(){this.constructor=we}return de.prototype=me.prototype,we.prototype=new de,we.__super__=me.prototype,we},ye={}.hasOwnProperty;ve=oe("./NodeType"),fe=oe("./XMLCharacterData"),_e.exports=be=function(we){Pe(me,we);function me(Se,de){if(me.__super__.constructor.call(this,Se),de==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=ve.Text,this.value=this.stringify.text(de)}return Object.defineProperty(me.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(me.prototype,"wholeText",{get:function(){var Se,de,z;for(z="",de=this.previousSibling;de;)z=de.data+z,de=de.previousSibling;for(z+=this.data,Se=this.nextSibling;Se;)z=z+Se.data,Se=Se.nextSibling;return z}}),me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(Se){return this.options.writer.text(this,this.options.writer.filterOptions(Se))},me.prototype.splitText=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.replaceWholeText=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},me}(fe)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(oe,_e,Ne){(function(){var ve,fe,be,Pe,ye,we,me,Se,de,z,ee,ae,re,le,ue,pe,Ee,Ce={}.hasOwnProperty;Ee=oe("./Utility").assign,ve=oe("./NodeType"),de=oe("./XMLDeclaration"),z=oe("./XMLDocType"),be=oe("./XMLCData"),Pe=oe("./XMLComment"),ae=oe("./XMLElement"),le=oe("./XMLRaw"),ue=oe("./XMLText"),re=oe("./XMLProcessingInstruction"),ee=oe("./XMLDummy"),ye=oe("./XMLDTDAttList"),we=oe("./XMLDTDElement"),me=oe("./XMLDTDEntity"),Se=oe("./XMLDTDNotation"),fe=oe("./WriterState"),_e.exports=pe=function(){function je(Le){var ke,Oe,Fe;Le||(Le={}),this.options=Le,Oe=Le.writer||{};for(ke in Oe)Ce.call(Oe,ke)&&(Fe=Oe[ke],this["_"+ke]=this[ke],this[ke]=Fe)}return je.prototype.filterOptions=function(Le){var ke,Oe,Fe,Re,Ze,ze,Ke,ot;return Le||(Le={}),Le=Ee({},this.options,Le),ke={writer:this},ke.pretty=Le.pretty||!1,ke.allowEmpty=Le.allowEmpty||!1,ke.indent=(Oe=Le.indent)!=null?Oe:" ",ke.newline=(Fe=Le.newline)!=null?Fe:`
|
|
|
`,ke.offset=(Re=Le.offset)!=null?Re:0,ke.dontPrettyTextNodes=(Ze=(ze=Le.dontPrettyTextNodes)!=null?ze:Le.dontprettytextnodes)!=null?Ze:0,ke.spaceBeforeSlash=(Ke=(ot=Le.spaceBeforeSlash)!=null?ot:Le.spacebeforeslash)!=null?Ke:"",ke.spaceBeforeSlash===!0&&(ke.spaceBeforeSlash=" "),ke.suppressPrettyCount=0,ke.user={},ke.state=fe.None,ke},je.prototype.indent=function(Le,ke,Oe){var Fe;return!ke.pretty||ke.suppressPrettyCount?"":ke.pretty&&(Fe=(Oe||0)+ke.offset+1,Fe>0)?new Array(Fe).join(ke.indent):""},je.prototype.endline=function(Le,ke,Oe){return!ke.pretty||ke.suppressPrettyCount?"":ke.newline},je.prototype.attribute=function(Le,ke,Oe){var Fe;return this.openAttribute(Le,ke,Oe),Fe=" "+Le.name+'="'+Le.value+'"',this.closeAttribute(Le,ke,Oe),Fe},je.prototype.cdata=function(Le,ke,Oe){var Fe;return this.openNode(Le,ke,Oe),ke.state=fe.OpenTag,Fe=this.indent(Le,ke,Oe)+"<![CDATA[",ke.state=fe.InsideTag,Fe+=Le.value,ke.state=fe.CloseTag,Fe+="]]>"+this.endline(Le,ke,Oe),ke.state=fe.None,this.closeNode(Le,ke,Oe),Fe},je.prototype.comment=function(Le,ke,Oe){var Fe;return this.openNode(Le,ke,Oe),ke.state=fe.OpenTag,Fe=this.indent(Le,ke,Oe)+"<!-- ",ke.state=fe.InsideTag,Fe+=Le.value,ke.state=fe.CloseTag,Fe+=" -->"+this.endline(Le,ke,Oe),ke.state=fe.None,this.closeNode(Le,ke,Oe),Fe},je.prototype.declaration=function(Le,ke,Oe){var Fe;return this.openNode(Le,ke,Oe),ke.state=fe.OpenTag,Fe=this.indent(Le,ke,Oe)+"<?xml",ke.state=fe.InsideTag,Fe+=' version="'+Le.version+'"',Le.encoding!=null&&(Fe+=' encoding="'+Le.encoding+'"'),Le.standalone!=null&&(Fe+=' standalone="'+Le.standalone+'"'),ke.state=fe.CloseTag,Fe+=ke.spaceBeforeSlash+"?>",Fe+=this.endline(Le,ke,Oe),ke.state=fe.None,this.closeNode(Le,ke,Oe),Fe},je.prototype.docType=function(Le,ke,Oe){var Fe,Re,Ze,ze,Ke;if(Oe||(Oe=0),this.openNode(Le,ke,Oe),ke.state=fe.OpenTag,ze=this.indent(Le,ke,Oe),ze+="<!DOCTYPE "+Le.root().name,Le.pubID&&Le.sysID?ze+=' PUBLIC "'+Le.pubID+'" "'+Le.sysID+'"':Le.sysID&&(ze+=' SYSTEM "'+Le.sysID+'"'),Le.children.length>0){for(ze+=" [",ze+=this.endline(Le,ke,Oe),ke.state=fe.InsideTag,Ke=Le.children,Re=0,Ze=Ke.length;Re<Ze;Re++)Fe=Ke[Re],ze+=this.writeChildNode(Fe,ke,Oe+1);ke.state=fe.CloseTag,ze+="]"}return ke.state=fe.CloseTag,ze+=ke.spaceBeforeSlash+">",ze+=this.endline(Le,ke,Oe),ke.state=fe.None,this.closeNode(Le,ke,Oe),ze},je.prototype.element=function(Le,ke,Oe){var Fe,Re,Ze,ze,Ke,ot,ct,pt,bt,qe,at,gt,Ct,wt;Oe||(Oe=0),qe=!1,at="",this.openNode(Le,ke,Oe),ke.state=fe.OpenTag,at+=this.indent(Le,ke,Oe)+"<"+Le.name,gt=Le.attribs;for(bt in gt)Ce.call(gt,bt)&&(Fe=gt[bt],at+=this.attribute(Fe,ke,Oe));if(Ze=Le.children.length,ze=Ze===0?null:Le.children[0],Ze===0||Le.children.every(function(vt){return(vt.type===ve.Text||vt.type===ve.Raw)&&vt.value===""}))ke.allowEmpty?(at+=">",ke.state=fe.CloseTag,at+="</"+Le.name+">"+this.endline(Le,ke,Oe)):(ke.state=fe.CloseTag,at+=ke.spaceBeforeSlash+"/>"+this.endline(Le,ke,Oe));else if(ke.pretty&&Ze===1&&(ze.type===ve.Text||ze.type===ve.Raw)&&ze.value!=null)at+=">",ke.state=fe.InsideTag,ke.suppressPrettyCount++,qe=!0,at+=this.writeChildNode(ze,ke,Oe+1),ke.suppressPrettyCount--,qe=!1,ke.state=fe.CloseTag,at+="</"+Le.name+">"+this.endline(Le,ke,Oe);else{if(ke.dontPrettyTextNodes){for(Ct=Le.children,Ke=0,ct=Ct.length;Ke<ct;Ke++)if(Re=Ct[Ke],(Re.type===ve.Text||Re.type===ve.Raw)&&Re.value!=null){ke.suppressPrettyCount++,qe=!0;break}}for(at+=">"+this.endline(Le,ke,Oe),ke.state=fe.InsideTag,wt=Le.children,ot=0,pt=wt.length;ot<pt;ot++)Re=wt[ot],at+=this.writeChildNode(Re,ke,Oe+1);ke.state=fe.CloseTag,at+=this.indent(Le,ke,Oe)+"</"+Le.name+">",qe&&ke.suppressPrettyCount--,at+=this.endline(Le,ke,Oe),ke.state=fe.None}return this.closeNode(Le,ke,Oe),at},je.prototype.writeChildNode=function(Le,ke,Oe){switch(Le.type){case ve.CData:return this.cdata(Le,ke,Oe);case ve.Comment:return this.comment(Le,ke,Oe);case ve.Element:return this.element(Le,ke,Oe);case ve.Raw:return this.raw(Le,ke,Oe);case ve.Text:return this.text(Le,ke,Oe);case ve.ProcessingInstruction:return this.processingInstruction(Le,ke,Oe);case ve.Dummy:return"";case ve.Declaration:return this.declaration(Le,ke,Oe);case ve.DocType:return this.docType(Le,ke,Oe);case ve.AttributeDeclaration:return this.dtdAttList(Le,ke,Oe);case ve.ElementDeclaration:return this.dtdElement(Le,ke,Oe);case ve.EntityDeclaration:return this.dtdEntity(Le,ke,Oe);case ve.NotationDeclaration:return this.dtdNotation(Le,ke,Oe);default:throw new Error("Unknown XML node type: "+Le.constructor.name)}},je.prototype.processingInstruction=function(Le,ke,Oe){var Fe;return this.openNode(Le,ke,Oe),ke.state=fe.OpenTag,Fe=this.indent(Le,ke,Oe)+"<?",ke.state=fe.InsideTag,Fe+=Le.target,Le.value&&(Fe+=" "+Le.value),ke.state=fe.CloseTag,Fe+=ke.spaceBeforeSlash+"?>",Fe+=this.endline(Le,ke,Oe),ke.state=fe.None,this.closeNode(Le,ke,Oe),Fe},je.prototype.raw=function(Le,ke,Oe){var Fe;return this.openNode(Le,ke,Oe),ke.state=fe.OpenTag,Fe=this.indent(Le,ke,Oe),ke.state=fe.InsideTag,Fe+=Le.value,ke.state=fe.CloseTag,Fe+=this.endline(Le,ke,Oe),ke.state=fe.None,this.closeNode(Le,ke,Oe),Fe},je.prototype.text=function(Le,ke,Oe){var Fe;return this.openNode(Le,ke,Oe),ke.state=fe.OpenTag,Fe=this.indent(Le,ke,Oe),ke.state=fe.InsideTag,Fe+=Le.value,ke.state=fe.CloseTag,Fe+=this.endline(Le,ke,Oe),ke.state=fe.None,this.closeNode(Le,ke,Oe),Fe},je.prototype.dtdAttList=function(Le,ke,Oe){var Fe;return this.openNode(Le,ke,Oe),ke.state=fe.OpenTag,Fe=this.indent(Le,ke,Oe)+"<!ATTLIST",ke.state=fe.InsideTag,Fe+=" "+Le.elementName+" "+Le.attributeName+" "+Le.attributeType,Le.defaultValueType!=="#DEFAULT"&&(Fe+=" "+Le.defaultValueType),Le.defaultValue&&(Fe+=' "'+Le.defaultValue+'"'),ke.state=fe.CloseTag,Fe+=ke.spaceBeforeSlash+">"+this.endline(Le,ke,Oe),ke.state=fe.None,this.closeNode(Le,ke,Oe),Fe},je.prototype.dtdElement=function(Le,ke,Oe){var Fe;return this.openNode(Le,ke,Oe),ke.state=fe.OpenTag,Fe=this.indent(Le,ke,Oe)+"<!ELEMENT",ke.state=fe.InsideTag,Fe+=" "+Le.name+" "+Le.value,ke.state=fe.CloseTag,Fe+=ke.spaceBeforeSlash+">"+this.endline(Le,ke,Oe),ke.state=fe.None,this.closeNode(Le,ke,Oe),Fe},je.prototype.dtdEntity=function(Le,ke,Oe){var Fe;return this.openNode(Le,ke,Oe),ke.state=fe.OpenTag,Fe=this.indent(Le,ke,Oe)+"<!ENTITY",ke.state=fe.InsideTag,Le.pe&&(Fe+=" %"),Fe+=" "+Le.name,Le.value?Fe+=' "'+Le.value+'"':(Le.pubID&&Le.sysID?Fe+=' PUBLIC "'+Le.pubID+'" "'+Le.sysID+'"':Le.sysID&&(Fe+=' SYSTEM "'+Le.sysID+'"'),Le.nData&&(Fe+=" NDATA "+Le.nData)),ke.state=fe.CloseTag,Fe+=ke.spaceBeforeSlash+">"+this.endline(Le,ke,Oe),ke.state=fe.None,this.closeNode(Le,ke,Oe),Fe},je.prototype.dtdNotation=function(Le,ke,Oe){var Fe;return this.openNode(Le,ke,Oe),ke.state=fe.OpenTag,Fe=this.indent(Le,ke,Oe)+"<!NOTATION",ke.state=fe.InsideTag,Fe+=" "+Le.name,Le.pubID&&Le.sysID?Fe+=' PUBLIC "'+Le.pubID+'" "'+Le.sysID+'"':Le.pubID?Fe+=' PUBLIC "'+Le.pubID+'"':Le.sysID&&(Fe+=' SYSTEM "'+Le.sysID+'"'),ke.state=fe.CloseTag,Fe+=ke.spaceBeforeSlash+">"+this.endline(Le,ke,Oe),ke.state=fe.None,this.closeNode(Le,ke,Oe),Fe},je.prototype.openNode=function(Le,ke,Oe){},je.prototype.closeNode=function(Le,ke,Oe){},je.prototype.openAttribute=function(Le,ke,Oe){},je.prototype.closeAttribute=function(Le,ke,Oe){},je}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],459:[function(oe,_e,Ne){(function(){var ve,fe,be,Pe,ye,we,me,Se,de,z;z=oe("./Utility"),Se=z.assign,de=z.isFunction,be=oe("./XMLDOMImplementation"),Pe=oe("./XMLDocument"),ye=oe("./XMLDocumentCB"),me=oe("./XMLStringWriter"),we=oe("./XMLStreamWriter"),ve=oe("./NodeType"),fe=oe("./WriterState"),_e.exports.create=function(ee,ae,re,le){var ue,pe;if(ee==null)throw new Error("Root element needs a name.");return le=Se({},ae,re,le),ue=new Pe(le),pe=ue.element(ee),le.headless||(ue.declaration(le),(le.pubID!=null||le.sysID!=null)&&ue.dtd(le)),pe},_e.exports.begin=function(ee,ae,re){var le;return de(ee)&&(le=[ee,ae],ae=le[0],re=le[1],ee={}),ae?new ye(ee,ae,re):new Pe(ee)},_e.exports.stringWriter=function(ee){return new me(ee)},_e.exports.streamWriter=function(ee,ae){return new we(ee,ae)},_e.exports.implementation=new be,_e.exports.nodeType=ve,_e.exports.writerState=fe}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(oe,_e,Ne){_e.exports=fe;var ve=Object.prototype.hasOwnProperty;function fe(){for(var be={},Pe=0;Pe<arguments.length;Pe++){var ye=arguments[Pe];for(var we in ye)ve.call(ye,we)&&(be[we]=ye[we])}return be}},{}],461:[function(oe,_e,Ne){"use strict";oe("core-js/modules/es.array.fill.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.regexp.to-string.js"),oe("core-js/modules/es.array.join.js"),oe("core-js/modules/es.array.slice.js");var ve=oe("buffer").Buffer,fe=oe("./sha"),be=oe("./md5"),Pe={sha1:fe,md5:be},ye=64,we=ve.alloc(ye);we.fill(0);function me(z,ee,ae){ve.isBuffer(ee)||(ee=ve.from(ee)),ve.isBuffer(ae)||(ae=ve.from(ae)),ee.length>ye?ee=z(ee):ee.length<ye&&(ee=ve.concat([ee,we],ye));for(var re=ve.alloc(ye),le=ve.alloc(ye),ue=0;ue<ye;ue++)re[ue]=ee[ue]^54,le[ue]=ee[ue]^92;var pe=z(ve.concat([re,ae]));return z(ve.concat([le,pe]))}function Se(z,ee){z=z||"sha1";var ae=Pe[z],re=[],le=0;return ae||de("algorithm:",z,"is not yet supported"),{update:function(pe){return ve.isBuffer(pe)||(pe=ve.from(pe)),re.push(pe),le+=pe.length,this},digest:function(pe){var Ee=ve.concat(re),Ce=ee?me(ae,ee,Ee):ae(Ee);return re=null,pe?Ce.toString(pe):Ce}}}function de(){var z=[].slice.call(arguments).join(" ");throw new Error([z,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}Ne.createHash=function(z){return Se(z)},Ne.createHmac=function(z,ee){return Se(z,ee)},Ne.createCredentials=function(){de("sorry,createCredentials is not implemented yet")},Ne.createCipher=function(){de("sorry,createCipher is not implemented yet")},Ne.createCipheriv=function(){de("sorry,createCipheriv is not implemented yet")},Ne.createDecipher=function(){de("sorry,createDecipher is not implemented yet")},Ne.createDecipheriv=function(){de("sorry,createDecipheriv is not implemented yet")},Ne.createSign=function(){de("sorry,createSign is not implemented yet")},Ne.createVerify=function(){de("sorry,createVerify is not implemented yet")},Ne.createDiffieHellman=function(){de("sorry,createDiffieHellman is not implemented yet")},Ne.pbkdf2=function(){de("sorry,pbkdf2 is not implemented yet")}},{"./md5":463,"./sha":464,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],462:[function(oe,_e,Ne){"use strict";oe("core-js/modules/es.array.fill.js"),oe("core-js/modules/es.array.concat.js");var ve=oe("buffer").Buffer,fe=4,be=ve.alloc(fe);be.fill(0);var Pe=8;function ye(Se,de){if(Se.length%fe!==0){var z=Se.length+(fe-Se.length%fe);Se=ve.concat([Se,be],z)}for(var ee=[],ae=de?Se.readInt32BE:Se.readInt32LE,re=0;re<Se.length;re+=fe)ee.push(ae.call(Se,re));return ee}function we(Se,de,z){for(var ee=ve.alloc(de),ae=z?ee.writeInt32BE:ee.writeInt32LE,re=0;re<Se.length;re++)ae.call(ee,Se[re],re*4,!0);return ee}function me(Se,de,z,ee){ve.isBuffer(Se)||(Se=ve.from(Se));var ae=de(ye(Se,ee),Se.length*Pe);return we(ae,z,ee)}_e.exports={hash:me}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(oe,_e,Ne){"use strict";var ve=oe("./helpers");function fe(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function be(ee,ae){ee[ae>>5]|=128<<ae%32,ee[(ae+64>>>9<<4)+14]=ae;for(var re=1732584193,le=-271733879,ue=-1732584194,pe=271733878,Ee=0;Ee<ee.length;Ee+=16){var Ce=re,je=le,Le=ue,ke=pe;re=ye(re,le,ue,pe,ee[Ee+0],7,-680876936),pe=ye(pe,re,le,ue,ee[Ee+1],12,-389564586),ue=ye(ue,pe,re,le,ee[Ee+2],17,606105819),le=ye(le,ue,pe,re,ee[Ee+3],22,-1044525330),re=ye(re,le,ue,pe,ee[Ee+4],7,-176418897),pe=ye(pe,re,le,ue,ee[Ee+5],12,1200080426),ue=ye(ue,pe,re,le,ee[Ee+6],17,-1473231341),le=ye(le,ue,pe,re,ee[Ee+7],22,-45705983),re=ye(re,le,ue,pe,ee[Ee+8],7,1770035416),pe=ye(pe,re,le,ue,ee[Ee+9],12,-1958414417),ue=ye(ue,pe,re,le,ee[Ee+10],17,-42063),le=ye(le,ue,pe,re,ee[Ee+11],22,-1990404162),re=ye(re,le,ue,pe,ee[Ee+12],7,1804603682),pe=ye(pe,re,le,ue,ee[Ee+13],12,-40341101),ue=ye(ue,pe,re,le,ee[Ee+14],17,-1502002290),le=ye(le,ue,pe,re,ee[Ee+15],22,1236535329),re=we(re,le,ue,pe,ee[Ee+1],5,-165796510),pe=we(pe,re,le,ue,ee[Ee+6],9,-1069501632),ue=we(ue,pe,re,le,ee[Ee+11],14,643717713),le=we(le,ue,pe,re,ee[Ee+0],20,-373897302),re=we(re,le,ue,pe,ee[Ee+5],5,-701558691),pe=we(pe,re,le,ue,ee[Ee+10],9,38016083),ue=we(ue,pe,re,le,ee[Ee+15],14,-660478335),le=we(le,ue,pe,re,ee[Ee+4],20,-405537848),re=we(re,le,ue,pe,ee[Ee+9],5,568446438),pe=we(pe,re,le,ue,ee[Ee+14],9,-1019803690),ue=we(ue,pe,re,le,ee[Ee+3],14,-187363961),le=we(le,ue,pe,re,ee[Ee+8],20,1163531501),re=we(re,le,ue,pe,ee[Ee+13],5,-1444681467),pe=we(pe,re,le,ue,ee[Ee+2],9,-51403784),ue=we(ue,pe,re,le,ee[Ee+7],14,1735328473),le=we(le,ue,pe,re,ee[Ee+12],20,-1926607734),re=me(re,le,ue,pe,ee[Ee+5],4,-378558),pe=me(pe,re,le,ue,ee[Ee+8],11,-2022574463),ue=me(ue,pe,re,le,ee[Ee+11],16,1839030562),le=me(le,ue,pe,re,ee[Ee+14],23,-35309556),re=me(re,le,ue,pe,ee[Ee+1],4,-1530992060),pe=me(pe,re,le,ue,ee[Ee+4],11,1272893353),ue=me(ue,pe,re,le,ee[Ee+7],16,-155497632),le=me(le,ue,pe,re,ee[Ee+10],23,-1094730640),re=me(re,le,ue,pe,ee[Ee+13],4,681279174),pe=me(pe,re,le,ue,ee[Ee+0],11,-358537222),ue=me(ue,pe,re,le,ee[Ee+3],16,-722521979),le=me(le,ue,pe,re,ee[Ee+6],23,76029189),re=me(re,le,ue,pe,ee[Ee+9],4,-640364487),pe=me(pe,re,le,ue,ee[Ee+12],11,-421815835),ue=me(ue,pe,re,le,ee[Ee+15],16,530742520),le=me(le,ue,pe,re,ee[Ee+2],23,-995338651),re=Se(re,le,ue,pe,ee[Ee+0],6,-198630844),pe=Se(pe,re,le,ue,ee[Ee+7],10,1126891415),ue=Se(ue,pe,re,le,ee[Ee+14],15,-1416354905),le=Se(le,ue,pe,re,ee[Ee+5],21,-57434055),re=Se(re,le,ue,pe,ee[Ee+12],6,1700485571),pe=Se(pe,re,le,ue,ee[Ee+3],10,-1894986606),ue=Se(ue,pe,re,le,ee[Ee+10],15,-1051523),le=Se(le,ue,pe,re,ee[Ee+1],21,-2054922799),re=Se(re,le,ue,pe,ee[Ee+8],6,1873313359),pe=Se(pe,re,le,ue,ee[Ee+15],10,-30611744),ue=Se(ue,pe,re,le,ee[Ee+6],15,-1560198380),le=Se(le,ue,pe,re,ee[Ee+13],21,1309151649),re=Se(re,le,ue,pe,ee[Ee+4],6,-145523070),pe=Se(pe,re,le,ue,ee[Ee+11],10,-1120210379),ue=Se(ue,pe,re,le,ee[Ee+2],15,718787259),le=Se(le,ue,pe,re,ee[Ee+9],21,-343485551),re=de(re,Ce),le=de(le,je),ue=de(ue,Le),pe=de(pe,ke)}return Array(re,le,ue,pe)}function Pe(ee,ae,re,le,ue,pe){return de(z(de(de(ae,ee),de(le,pe)),ue),re)}function ye(ee,ae,re,le,ue,pe,Ee){return Pe(ae&re|~ae&le,ee,ae,ue,pe,Ee)}function we(ee,ae,re,le,ue,pe,Ee){return Pe(ae&le|re&~le,ee,ae,ue,pe,Ee)}function me(ee,ae,re,le,ue,pe,Ee){return Pe(ae^re^le,ee,ae,ue,pe,Ee)}function Se(ee,ae,re,le,ue,pe,Ee){return Pe(re^(ae|~le),ee,ae,ue,pe,Ee)}function de(ee,ae){var re=(ee&65535)+(ae&65535),le=(ee>>16)+(ae>>16)+(re>>16);return le<<16|re&65535}function z(ee,ae){return ee<<ae|ee>>>32-ae}_e.exports=function(ae){return ve.hash(ae,be,16)}},{"./helpers":462}],464:[function(oe,_e,Ne){"use strict";var ve=oe("./helpers");function fe(me,Se){me[Se>>5]|=128<<24-Se%32,me[(Se+64>>9<<4)+15]=Se;for(var de=Array(80),z=1732584193,ee=-271733879,ae=-1732584194,re=271733878,le=-1009589776,ue=0;ue<me.length;ue+=16){for(var pe=z,Ee=ee,Ce=ae,je=re,Le=le,ke=0;ke<80;ke++){ke<16?de[ke]=me[ue+ke]:de[ke]=we(de[ke-3]^de[ke-8]^de[ke-14]^de[ke-16],1);var Oe=ye(ye(we(z,5),be(ke,ee,ae,re)),ye(ye(le,de[ke]),Pe(ke)));le=re,re=ae,ae=we(ee,30),ee=z,z=Oe}z=ye(z,pe),ee=ye(ee,Ee),ae=ye(ae,Ce),re=ye(re,je),le=ye(le,Le)}return Array(z,ee,ae,re,le)}function be(me,Se,de,z){return me<20?Se&de|~Se&z:me<40?Se^de^z:me<60?Se&de|Se&z|de&z:Se^de^z}function Pe(me){return me<20?1518500249:me<40?1859775393:me<60?-1894007588:-899497514}function ye(me,Se){var de=(me&65535)+(Se&65535),z=(me>>16)+(Se>>16)+(de>>16);return z<<16|de&65535}function we(me,Se){return me<<Se|me>>>32-Se}_e.exports=function(Se){return ve.hash(Se,fe,20,!0)}},{"./helpers":462}],465:[function(oe,_e,Ne){"use strict";_e.exports=function(){return function(){}}},{}],466:[function(oe,_e,Ne){(function(ve){(function(){"use strict";var fe=oe("@babel/runtime/helpers/interopRequireDefault"),be=fe(oe("@babel/runtime/helpers/typeof")),Pe=oe("stream"),ye=Pe.Stream,we=oe("../lib/common/utils/isArray"),me=we.isArray;_e.exports.string=function(z){return typeof z=="string"},_e.exports.array=me,_e.exports.buffer=ve.isBuffer;function Se(de){return de instanceof ye}_e.exports.writableStream=function(z){return Se(z)&&typeof z._write=="function"&&(0,be.default)(z._writableState)==="object"}}).call(this)}).call(this,{isBuffer:oe("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":63,"../node_modules/is-buffer/index.js":366,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,stream:398}],467:[function(oe,_e,Ne){"use strict";var ve=oe("immediate"),fe=_e.exports={};fe.nextTick=ve,fe.title="browser",fe.browser=!0,fe.env={},fe.argv=[],fe.version="",fe.versions={};function be(){}fe.on=be,fe.addListener=be,fe.once=be,fe.off=be,fe.removeListener=be,fe.removeAllListeners=be,fe.emit=be,fe.prependListener=be,fe.prependOnceListener=be,fe.listeners=function(Pe){return[]},fe.binding=function(Pe){throw new Error("process.binding is not supported")},fe.cwd=function(){return"/"},fe.chdir=function(Pe){throw new Error("process.chdir is not supported")},fe.umask=function(){return 0}},{immediate:358}],468:[function(oe,_e,Ne){(function(ve){(function(){"use strict";oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.search.js");var fe=oe("./lib/request"),be=oe("./lib/response"),Pe=oe("xtend"),ye=oe("builtin-status-codes"),we=oe("url"),me=Ne;me.request=function(Se,de){typeof Se=="string"?Se=we.parse(Se):Se=Pe(Se);var z=ve.location.protocol.search(/^https?:$/)===-1?"http:":"",ee=Se.protocol||z,ae=Se.hostname||Se.host,re=Se.port,le=Se.path||"/";ae&&ae.indexOf(":")!==-1&&(ae="["+ae+"]"),Se.url=(ae?ee+"//"+ae:"")+(re?":"+re:"")+le,Se.method=(Se.method||"GET").toUpperCase(),Se.headers=Se.headers||{};var ue=new fe(Se);return de&&ue.on("response",de),ue},me.get=function(de,z){var ee=me.request(de,z);return ee.end(),ee},me.ClientRequest=fe,me.IncomingMessage=be.IncomingMessage,me.Agent=function(){},me.Agent.defaultMaxSockets=4,me.globalAgent=new me.Agent,me.STATUS_CODES=ye,me.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":470,"./lib/response":471,"builtin-status-codes":91,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.search.js":306,url:472,xtend:460}],469:[function(oe,_e,Ne){(function(ve){(function(){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.array-buffer.constructor.js"),oe("core-js/modules/es.array-buffer.slice.js"),oe("core-js/modules/es.array.slice.js"),Ne.fetch=me(ve.fetch)&&me(ve.ReadableStream),Ne.writableStream=me(ve.WritableStream),Ne.abortController=me(ve.AbortController),Ne.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),Ne.blobConstructor=!0}catch(Se){}var fe;function be(){if(fe!==void 0)return fe;if(ve.XMLHttpRequest){fe=new ve.XMLHttpRequest;try{fe.open("GET",ve.XDomainRequest?"/":"https://example.com")}catch(Se){fe=null}}else fe=null;return fe}function Pe(Se){var de=be();if(!de)return!1;try{return de.responseType=Se,de.responseType===Se}catch(z){}return!1}var ye=typeof ve.ArrayBuffer!="undefined",we=ye&&me(ve.ArrayBuffer.prototype.slice);Ne.arraybuffer=Ne.fetch||ye&&Pe("arraybuffer"),Ne.msstream=!Ne.fetch&&we&&Pe("ms-stream"),Ne.mozchunkedarraybuffer=!Ne.fetch&&ye&&Pe("moz-chunked-arraybuffer"),Ne.overrideMimeType=Ne.fetch||(be()?me(be().overrideMimeType):!1),Ne.vbArray=me(ve.VBArray);function me(Se){return typeof Se=="function"}fe=null}).call(this)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"core-js/modules/es.array-buffer.constructor.js":270,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],470:[function(oe,_e,Ne){(function(ve,fe,be){(function(){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.regexp.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.split.js");var Pe=oe("./capability"),ye=oe("inherits"),we=oe("./response"),me=oe("readable-stream"),Se=oe("to-arraybuffer"),de=we.IncomingMessage,z=we.readyStates;function ee(ue,pe){return Pe.fetch&&pe?"fetch":Pe.mozchunkedarraybuffer?"moz-chunked-arraybuffer":Pe.msstream?"ms-stream":Pe.arraybuffer&&ue?"arraybuffer":Pe.vbArray&&ue?"text:vbarray":"text"}var ae=_e.exports=function(ue){var pe=this;me.Writable.call(pe),pe._opts=ue,pe._body=[],pe._headers={},ue.auth&&pe.setHeader("Authorization","Basic "+new be(ue.auth).toString("base64")),Object.keys(ue.headers).forEach(function(je){pe.setHeader(je,ue.headers[je])});var Ee,Ce=!0;if(ue.mode==="disable-fetch"||"requestTimeout"in ue&&!Pe.abortController)Ce=!1,Ee=!0;else if(ue.mode==="prefer-streaming")Ee=!1;else if(ue.mode==="allow-wrong-content-type")Ee=!Pe.overrideMimeType;else if(!ue.mode||ue.mode==="default"||ue.mode==="prefer-fast")Ee=!0;else throw new Error("Invalid value for opts.mode");pe._mode=ee(Ee,Ce),pe._fetchTimer=null,pe.on("finish",function(){pe._onFinish()})};ye(ae,me.Writable),ae.prototype.setHeader=function(ue,pe){var Ee=this,Ce=ue.toLowerCase();le.indexOf(Ce)===-1&&(Ee._headers[Ce]={name:ue,value:pe})},ae.prototype.getHeader=function(ue){var pe=this._headers[ue.toLowerCase()];return pe?pe.value:null},ae.prototype.removeHeader=function(ue){var pe=this;delete pe._headers[ue.toLowerCase()]},ae.prototype._onFinish=function(){var ue=this;if(!ue._destroyed){var pe=ue._opts,Ee=ue._headers,Ce=null;pe.method!=="GET"&&pe.method!=="HEAD"&&(Pe.arraybuffer?Ce=Se(be.concat(ue._body)):Pe.blobConstructor?Ce=new fe.Blob(ue._body.map(function(Re){return Se(Re)}),{type:(Ee["content-type"]||{}).value||""}):Ce=be.concat(ue._body).toString());var je=[];if(Object.keys(Ee).forEach(function(Re){var Ze=Ee[Re].name,ze=Ee[Re].value;Array.isArray(ze)?ze.forEach(function(Ke){je.push([Ze,Ke])}):je.push([Ze,ze])}),ue._mode==="fetch"){var Le=null,ke=null;if(Pe.abortController){var Oe=new AbortController;Le=Oe.signal,ue._fetchAbortController=Oe,"requestTimeout"in pe&&pe.requestTimeout!==0&&(ue._fetchTimer=fe.setTimeout(function(){ue.emit("requestTimeout"),ue._fetchAbortController&&ue._fetchAbortController.abort()},pe.requestTimeout))}fe.fetch(ue._opts.url,{method:ue._opts.method,headers:je,body:Ce||void 0,mode:"cors",credentials:pe.withCredentials?"include":"same-origin",signal:Le}).then(function(Re){ue._fetchResponse=Re,ue._connect()},function(Re){fe.clearTimeout(ue._fetchTimer),ue._destroyed||ue.emit("error",Re)})}else{var Fe=ue._xhr=new fe.XMLHttpRequest;try{Fe.open(ue._opts.method,ue._opts.url,!0)}catch(Re){ve.nextTick(function(){ue.emit("error",Re)});return}"responseType"in Fe&&(Fe.responseType=ue._mode.split(":")[0]),"withCredentials"in Fe&&(Fe.withCredentials=!!pe.withCredentials),ue._mode==="text"&&"overrideMimeType"in Fe&&Fe.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in pe&&(Fe.timeout=pe.requestTimeout,Fe.ontimeout=function(){ue.emit("requestTimeout")}),je.forEach(function(Re){Fe.setRequestHeader(Re[0],Re[1])}),ue._response=null,Fe.onreadystatechange=function(){switch(Fe.readyState){case z.LOADING:case z.DONE:ue._onXHRProgress();break}},ue._mode==="moz-chunked-arraybuffer"&&(Fe.onprogress=function(){ue._onXHRProgress()}),Fe.onerror=function(){ue._destroyed||ue.emit("error",new Error("XHR error"))};try{Fe.send(Ce)}catch(Re){ve.nextTick(function(){ue.emit("error",Re)});return}}}};function re(ue){try{var pe=ue.status;return pe!==null&&pe!==0}catch(Ee){return!1}}ae.prototype._onXHRProgress=function(){var ue=this;!re(ue._xhr)||ue._destroyed||(ue._response||ue._connect(),ue._response._onXHRProgress())},ae.prototype._connect=function(){var ue=this;ue._destroyed||(ue._response=new de(ue._xhr,ue._fetchResponse,ue._mode,ue._fetchTimer),ue._response.on("error",function(pe){ue.emit("error",pe)}),ue.emit("response",ue._response))},ae.prototype._write=function(ue,pe,Ee){var Ce=this;Ce._body.push(ue),Ee()},ae.prototype.abort=ae.prototype.destroy=function(){var ue=this;ue._destroyed=!0,fe.clearTimeout(ue._fetchTimer),ue._response&&(ue._response._destroyed=!0),ue._xhr?ue._xhr.abort():ue._fetchAbortController&&ue._fetchAbortController.abort()},ae.prototype.end=function(ue,pe,Ee){var Ce=this;typeof ue=="function"&&(Ee=ue,ue=void 0),me.Writable.prototype.end.call(Ce,ue,pe,Ee)},ae.prototype.flushHeaders=function(){},ae.prototype.setTimeout=function(){},ae.prototype.setNoDelay=function(){},ae.prototype.setSocketKeepAlive=function(){};var le=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this)}).call(this,oe("_process"),typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{},oe("buffer").Buffer)},{"./capability":469,"./response":471,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.split.js":307,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394,"to-arraybuffer":415}],471:[function(oe,_e,Ne){(function(ve,fe,be){(function(){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.split.js"),oe("core-js/modules/es.string.match.js"),oe("core-js/modules/es.array.iterator.js"),oe("core-js/modules/es.array-buffer.slice.js"),oe("core-js/modules/es.typed-array.uint8-array.js"),oe("core-js/modules/es.typed-array.copy-within.js"),oe("core-js/modules/es.typed-array.every.js"),oe("core-js/modules/es.typed-array.fill.js"),oe("core-js/modules/es.typed-array.filter.js"),oe("core-js/modules/es.typed-array.find.js"),oe("core-js/modules/es.typed-array.find-index.js"),oe("core-js/modules/es.typed-array.for-each.js"),oe("core-js/modules/es.typed-array.includes.js"),oe("core-js/modules/es.typed-array.index-of.js"),oe("core-js/modules/es.typed-array.iterator.js"),oe("core-js/modules/es.typed-array.join.js"),oe("core-js/modules/es.typed-array.last-index-of.js"),oe("core-js/modules/es.typed-array.map.js"),oe("core-js/modules/es.typed-array.reduce.js"),oe("core-js/modules/es.typed-array.reduce-right.js"),oe("core-js/modules/es.typed-array.reverse.js"),oe("core-js/modules/es.typed-array.set.js"),oe("core-js/modules/es.typed-array.slice.js"),oe("core-js/modules/es.typed-array.some.js"),oe("core-js/modules/es.typed-array.sort.js"),oe("core-js/modules/es.typed-array.subarray.js"),oe("core-js/modules/es.typed-array.to-locale-string.js"),oe("core-js/modules/es.typed-array.to-string.js"),oe("core-js/modules/es.array.slice.js");var Pe=oe("./capability"),ye=oe("inherits"),we=oe("readable-stream"),me=Ne.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},Se=Ne.IncomingMessage=function(de,z,ee,ae){var re=this;if(we.Readable.call(re),re._mode=ee,re.headers={},re.rawHeaders=[],re.trailers={},re.rawTrailers=[],re.on("end",function(){ve.nextTick(function(){re.emit("close")})}),ee==="fetch"){var le=function Le(){pe.read().then(function(ke){if(!re._destroyed){if(ke.done){fe.clearTimeout(ae),re.push(null);return}re.push(new be(ke.value)),Le()}}).catch(function(ke){fe.clearTimeout(ae),re._destroyed||re.emit("error",ke)})};if(re._fetchResponse=z,re.url=z.url,re.statusCode=z.status,re.statusMessage=z.statusText,z.headers.forEach(function(Le,ke){re.headers[ke.toLowerCase()]=Le,re.rawHeaders.push(ke,Le)}),Pe.writableStream){var ue=new WritableStream({write:function(ke){return new Promise(function(Oe,Fe){re._destroyed?Fe():re.push(new be(ke))?Oe():re._resumeFetch=Oe})},close:function(){fe.clearTimeout(ae),re._destroyed||re.push(null)},abort:function(ke){re._destroyed||re.emit("error",ke)}});try{z.body.pipeTo(ue).catch(function(Le){fe.clearTimeout(ae),re._destroyed||re.emit("error",Le)});return}catch(Le){}}var pe=z.body.getReader();le()}else{re._xhr=de,re._pos=0,re.url=de.responseURL,re.statusCode=de.status,re.statusMessage=de.statusText;var Ee=de.getAllResponseHeaders().split(/\r?\n/);if(Ee.forEach(function(Le){var ke=Le.match(/^([^:]+):\s*(.*)/);if(ke){var Oe=ke[1].toLowerCase();Oe==="set-cookie"?(re.headers[Oe]===void 0&&(re.headers[Oe]=[]),re.headers[Oe].push(ke[2])):re.headers[Oe]!==void 0?re.headers[Oe]+=", "+ke[2]:re.headers[Oe]=ke[2],re.rawHeaders.push(ke[1],ke[2])}}),re._charset="x-user-defined",!Pe.overrideMimeType){var Ce=re.rawHeaders["mime-type"];if(Ce){var je=Ce.match(/;\s*charset=([^;])(;|$)/);je&&(re._charset=je[1].toLowerCase())}re._charset||(re._charset="utf-8")}}};ye(Se,we.Readable),Se.prototype._read=function(){var de=this,z=de._resumeFetch;z&&(de._resumeFetch=null,z())},Se.prototype._onXHRProgress=function(){var de=this,z=de._xhr,ee=null;switch(de._mode){case"text:vbarray":if(z.readyState!==me.DONE)break;try{ee=new fe.VBArray(z.responseBody).toArray()}catch(pe){}if(ee!==null){de.push(new be(ee));break}case"text":try{ee=z.responseText}catch(pe){de._mode="text:vbarray";break}if(ee.length>de._pos){var ae=ee.substr(de._pos);if(de._charset==="x-user-defined"){for(var re=new be(ae.length),le=0;le<ae.length;le++)re[le]=ae.charCodeAt(le)&255;de.push(re)}else de.push(ae,de._charset);de._pos=ee.length}break;case"arraybuffer":if(z.readyState!==me.DONE||!z.response)break;ee=z.response,de.push(new be(new Uint8Array(ee)));break;case"moz-chunked-arraybuffer":if(ee=z.response,z.readyState!==me.LOADING||!ee)break;de.push(new be(new Uint8Array(ee)));break;case"ms-stream":if(ee=z.response,z.readyState!==me.LOADING)break;var ue=new fe.MSStreamReader;ue.onprogress=function(){ue.result.byteLength>de._pos&&(de.push(new be(new Uint8Array(ue.result.slice(de._pos)))),de._pos=ue.result.byteLength)},ue.onload=function(){de.push(null)},ue.readAsArrayBuffer(ee);break}de._xhr.readyState===me.DONE&&de._mode!=="ms-stream"&&de.push(null)}}).call(this)}).call(this,oe("_process"),typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{},oe("buffer").Buffer)},{"./capability":469,_process:467,buffer:90,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.split.js":307,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394}],472:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/helpers/typeof"));oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.search.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.string.split.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.array.join.js"),oe("core-js/modules/es.string.trim.js"),oe("core-js/modules/es.string.match.js"),oe("core-js/modules/es.array.slice.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.splice.js");var be=oe("punycode"),Pe=oe("./util");Ne.parse=ke,Ne.resolve=Fe,Ne.resolveObject=Re,Ne.format=Oe,Ne.Url=ye;function ye(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var we=/^([a-z0-9.+-]+:)/i,me=/:[0-9]*$/,Se=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,de=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],z=["{","}","|","\\","^","`"].concat(de),ee=["'"].concat(z),ae=["%","/","?",";","#"].concat(ee),re=["/","?","#"],le=255,ue=/^[+a-z0-9A-Z_-]{0,63}$/,pe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ee={javascript:!0,"javascript:":!0},Ce={javascript:!0,"javascript:":!0},je={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Le=oe("querystring");function ke(Ze,ze,Ke){if(Ze&&Pe.isObject(Ze)&&Ze instanceof ye)return Ze;var ot=new ye;return ot.parse(Ze,ze,Ke),ot}ye.prototype.parse=function(Ze,ze,Ke){if(!Pe.isString(Ze))throw new TypeError("Parameter 'url' must be a string, not "+(0,fe.default)(Ze));var ot=Ze.indexOf("?"),ct=ot!==-1&&ot<Ze.indexOf("#")?"?":"#",pt=Ze.split(ct),bt=/\\/g;pt[0]=pt[0].replace(bt,"/"),Ze=pt.join(ct);var qe=Ze;if(qe=qe.trim(),!Ke&&Ze.split("#").length===1){var at=Se.exec(qe);if(at)return this.path=qe,this.href=qe,this.pathname=at[1],at[2]?(this.search=at[2],ze?this.query=Le.parse(this.search.substr(1)):this.query=this.search.substr(1)):ze&&(this.search="",this.query={}),this}var gt=we.exec(qe);if(gt){gt=gt[0];var Ct=gt.toLowerCase();this.protocol=Ct,qe=qe.substr(gt.length)}if(Ke||gt||qe.match(/^\/\/[^@\/]+@[^@\/]+/)){var wt=qe.substr(0,2)==="//";wt&&!(gt&&Ce[gt])&&(qe=qe.substr(2),this.slashes=!0)}if(!Ce[gt]&&(wt||gt&&!je[gt])){for(var vt=-1,mt=0;mt<re.length;mt++){var xt=qe.indexOf(re[mt]);xt!==-1&&(vt===-1||xt<vt)&&(vt=xt)}var At,kt;vt===-1?kt=qe.lastIndexOf("@"):kt=qe.lastIndexOf("@",vt),kt!==-1&&(At=qe.slice(0,kt),qe=qe.slice(kt+1),this.auth=decodeURIComponent(At)),vt=-1;for(var mt=0;mt<ae.length;mt++){var xt=qe.indexOf(ae[mt]);xt!==-1&&(vt===-1||xt<vt)&&(vt=xt)}vt===-1&&(vt=qe.length),this.host=qe.slice(0,vt),qe=qe.slice(vt),this.parseHost(),this.hostname=this.hostname||"";var Wt=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Wt)for(var Et=this.hostname.split("."),mt=0,St=Et.length;mt<St;mt++){var tt=Et[mt];if(tt&&!tt.match(ue)){for(var ft="",$e=0,lt=tt.length;$e<lt;$e++)tt.charCodeAt($e)>127?ft+="x":ft+=tt[$e];if(!ft.match(ue)){var Pt=Et.slice(0,mt),dt=Et.slice(mt+1),et=tt.match(pe);et&&(Pt.push(et[1]),dt.unshift(et[2])),dt.length&&(qe="/"+dt.join(".")+qe),this.hostname=Pt.join(".");break}}}this.hostname.length>le?this.hostname="":this.hostname=this.hostname.toLowerCase(),Wt||(this.hostname=be.toASCII(this.hostname));var Ve=this.port?":"+this.port:"",He=this.hostname||"";this.host=He+Ve,this.href+=this.host,Wt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),qe[0]!=="/"&&(qe="/"+qe))}if(!Ee[Ct])for(var mt=0,St=ee.length;mt<St;mt++){var nt=ee[mt];if(qe.indexOf(nt)!==-1){var ut=encodeURIComponent(nt);ut===nt&&(ut=escape(nt)),qe=qe.split(nt).join(ut)}}var We=qe.indexOf("#");We!==-1&&(this.hash=qe.substr(We),qe=qe.slice(0,We));var De=qe.indexOf("?");if(De!==-1?(this.search=qe.substr(De),this.query=qe.substr(De+1),ze&&(this.query=Le.parse(this.query)),qe=qe.slice(0,De)):ze&&(this.search="",this.query={}),qe&&(this.pathname=qe),je[Ct]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ve=this.pathname||"",Ie=this.search||"";this.path=Ve+Ie}return this.href=this.format(),this};function Oe(Ze){return Pe.isString(Ze)&&(Ze=ke(Ze)),Ze instanceof ye?Ze.format():ye.prototype.format.call(Ze)}ye.prototype.format=function(){var Ze=this.auth||"";Ze&&(Ze=encodeURIComponent(Ze),Ze=Ze.replace(/%3A/i,":"),Ze+="@");var ze=this.protocol||"",Ke=this.pathname||"",ot=this.hash||"",ct=!1,pt="";this.host?ct=Ze+this.host:this.hostname&&(ct=Ze+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(ct+=":"+this.port)),this.query&&Pe.isObject(this.query)&&Object.keys(this.query).length&&(pt=Le.stringify(this.query));var bt=this.search||pt&&"?"+pt||"";return ze&&ze.substr(-1)!==":"&&(ze+=":"),this.slashes||(!ze||je[ze])&&ct!==!1?(ct="//"+(ct||""),Ke&&Ke.charAt(0)!=="/"&&(Ke="/"+Ke)):ct||(ct=""),ot&&ot.charAt(0)!=="#"&&(ot="#"+ot),bt&&bt.charAt(0)!=="?"&&(bt="?"+bt),Ke=Ke.replace(/[?#]/g,function(qe){return encodeURIComponent(qe)}),bt=bt.replace("#","%23"),ze+ct+Ke+bt+ot};function Fe(Ze,ze){return ke(Ze,!1,!0).resolve(ze)}ye.prototype.resolve=function(Ze){return this.resolveObject(ke(Ze,!1,!0)).format()};function Re(Ze,ze){return Ze?ke(Ze,!1,!0).resolveObject(ze):ze}ye.prototype.resolveObject=function(Ze){if(Pe.isString(Ze)){var ze=new ye;ze.parse(Ze,!1,!0),Ze=ze}for(var Ke=new ye,ot=Object.keys(this),ct=0;ct<ot.length;ct++){var pt=ot[ct];Ke[pt]=this[pt]}if(Ke.hash=Ze.hash,Ze.href==="")return Ke.href=Ke.format(),Ke;if(Ze.slashes&&!Ze.protocol){for(var bt=Object.keys(Ze),qe=0;qe<bt.length;qe++){var at=bt[qe];at!=="protocol"&&(Ke[at]=Ze[at])}return je[Ke.protocol]&&Ke.hostname&&!Ke.pathname&&(Ke.path=Ke.pathname="/"),Ke.href=Ke.format(),Ke}if(Ze.protocol&&Ze.protocol!==Ke.protocol){if(!je[Ze.protocol]){for(var gt=Object.keys(Ze),Ct=0;Ct<gt.length;Ct++){var wt=gt[Ct];Ke[wt]=Ze[wt]}return Ke.href=Ke.format(),Ke}if(Ke.protocol=Ze.protocol,!Ze.host&&!Ce[Ze.protocol]){for(var St=(Ze.pathname||"").split("/");St.length&&!(Ze.host=St.shift()););Ze.host||(Ze.host=""),Ze.hostname||(Ze.hostname=""),St[0]!==""&&St.unshift(""),St.length<2&&St.unshift(""),Ke.pathname=St.join("/")}else Ke.pathname=Ze.pathname;if(Ke.search=Ze.search,Ke.query=Ze.query,Ke.host=Ze.host||"",Ke.auth=Ze.auth,Ke.hostname=Ze.hostname||Ze.host,Ke.port=Ze.port,Ke.pathname||Ke.search){var vt=Ke.pathname||"",mt=Ke.search||"";Ke.path=vt+mt}return Ke.slashes=Ke.slashes||Ze.slashes,Ke.href=Ke.format(),Ke}var xt=Ke.pathname&&Ke.pathname.charAt(0)==="/",At=Ze.host||Ze.pathname&&Ze.pathname.charAt(0)==="/",kt=At||xt||Ke.host&&Ze.pathname,Wt=kt,Et=Ke.pathname&&Ke.pathname.split("/")||[],St=Ze.pathname&&Ze.pathname.split("/")||[],tt=Ke.protocol&&!je[Ke.protocol];if(tt&&(Ke.hostname="",Ke.port=null,Ke.host&&(Et[0]===""?Et[0]=Ke.host:Et.unshift(Ke.host)),Ke.host="",Ze.protocol&&(Ze.hostname=null,Ze.port=null,Ze.host&&(St[0]===""?St[0]=Ze.host:St.unshift(Ze.host)),Ze.host=null),kt=kt&&(St[0]===""||Et[0]==="")),At)Ke.host=Ze.host||Ze.host===""?Ze.host:Ke.host,Ke.hostname=Ze.hostname||Ze.hostname===""?Ze.hostname:Ke.hostname,Ke.search=Ze.search,Ke.query=Ze.query,Et=St;else if(St.length)Et||(Et=[]),Et.pop(),Et=Et.concat(St),Ke.search=Ze.search,Ke.query=Ze.query;else if(!Pe.isNullOrUndefined(Ze.search)){if(tt){Ke.hostname=Ke.host=Et.shift();var ft=Ke.host&&Ke.host.indexOf("@")>0?Ke.host.split("@"):!1;ft&&(Ke.auth=ft.shift(),Ke.host=Ke.hostname=ft.shift())}return Ke.search=Ze.search,Ke.query=Ze.query,(!Pe.isNull(Ke.pathname)||!Pe.isNull(Ke.search))&&(Ke.path=(Ke.pathname?Ke.pathname:"")+(Ke.search?Ke.search:"")),Ke.href=Ke.format(),Ke}if(!Et.length)return Ke.pathname=null,Ke.search?Ke.path="/"+Ke.search:Ke.path=null,Ke.href=Ke.format(),Ke;for(var $e=Et.slice(-1)[0],lt=(Ke.host||Ze.host||Et.length>1)&&($e==="."||$e==="..")||$e==="",Pt=0,dt=Et.length;dt>=0;dt--)$e=Et[dt],$e==="."?Et.splice(dt,1):$e===".."?(Et.splice(dt,1),Pt++):Pt&&(Et.splice(dt,1),Pt--);if(!kt&&!Wt)for(;Pt--;Pt)Et.unshift("..");kt&&Et[0]!==""&&(!Et[0]||Et[0].charAt(0)!=="/")&&Et.unshift(""),lt&&Et.join("/").substr(-1)!=="/"&&Et.push("");var et=Et[0]===""||Et[0]&&Et[0].charAt(0)==="/";if(tt){Ke.hostname=Ke.host=et?"":Et.length?Et.shift():"";var ft=Ke.host&&Ke.host.indexOf("@")>0?Ke.host.split("@"):!1;ft&&(Ke.auth=ft.shift(),Ke.host=Ke.hostname=ft.shift())}return kt=kt||Ke.host&&Et.length,kt&&!et&&Et.unshift(""),Et.length?Ke.pathname=Et.join("/"):(Ke.pathname=null,Ke.path=null),(!Pe.isNull(Ke.pathname)||!Pe.isNull(Ke.search))&&(Ke.path=(Ke.pathname?Ke.pathname:"")+(Ke.search?Ke.search:"")),Ke.auth=Ze.auth||Ke.auth,Ke.slashes=Ke.slashes||Ze.slashes,Ke.href=Ke.format(),Ke},ye.prototype.parseHost=function(){var Ze=this.host,ze=me.exec(Ze);ze&&(ze=ze[0],ze!==":"&&(this.port=ze.substr(1)),Ze=Ze.substr(0,Ze.length-ze.length)),Ze&&(this.hostname=Ze)}},{"./util":473,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.array.splice.js":283,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.search.js":306,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,punycode:382,querystring:385}],473:[function(oe,_e,Ne){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/helpers/typeof"));_e.exports={isString:function(Pe){return typeof Pe=="string"},isObject:function(Pe){return(0,fe.default)(Pe)==="object"&&Pe!==null},isNull:function(Pe){return Pe===null},isNullOrUndefined:function(Pe){return Pe==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(oe,_e,Ne){"use strict";oe("core-js/modules/es.number.constructor.js"),Ne.encodeURIComponent=function(ve){try{return encodeURIComponent(ve)}catch(fe){return ve}},Ne.escape=oe("escape-html"),Ne.timestamp=function(fe){if(fe){var be=fe;return typeof be=="string"&&(be=Number(be)),String(fe).length===10&&(be*=1e3),new Date(be)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(oe,_e,Ne){(function(ve,fe){(function(){"use strict";var be=oe("@babel/runtime/helpers/interopRequireDefault"),Pe=be(oe("@babel/runtime/helpers/typeof"));oe("core-js/modules/es.string.trim.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.split.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.array.concat.js");var ye=oe("util"),we=oe("url"),me=oe("http"),Se=oe("https"),de=oe("debug")("urllib"),z=oe("humanize-ms"),ee=0,ae=Math.pow(2,31)-10,re=/^https?:\/\//i;function le(Ce,je){return Ce===void 0?je:Ce}function ue(Ce){return Ce?Ce.split(";")[0].trim().toLowerCase():""}function pe(Ce,je){return function(Le,ke,Oe){if(Le)return je(Le);Ce({data:ke,status:Oe.statusCode,headers:Oe.headers,res:Oe})}}Ne.TIMEOUTS=[z("300s"),z("300s")];var Ee=["json","text"];Ne.request=function(je,Le,ke){return arguments.length===2&&typeof Le=="function"&&(ke=Le,Le=null),typeof ke=="function"?Ne.requestWithCallback(je,Le,ke):new Promise(function(Oe,Fe){Ne.requestWithCallback(je,Le,pe(Oe,Fe))})},Ne.requestWithCallback=function(je,Le,ke){if(!je||typeof je!="string"&&(0,Pe.default)(je)!=="object"){var Oe=ye.format("expect request url to be a string or a http request options, but got %j",je);throw new Error(Oe)}arguments.length===2&&typeof Le=="function"&&(ke=Le,Le=null),Le=Le||{},ee>=ae&&(ee=0);var Fe=++ee;Le.requestUrls=Le.requestUrls||[];var Re={requestId:Fe,url:je,args:Le,ctx:Le.ctx};Le.emitter&&Le.emitter.emit("request",Re),Le.timeout=Le.timeout||Ne.TIMEOUTS,Le.maxRedirects=Le.maxRedirects||10,Le.streaming=Le.streaming||Le.customResponse;var Ze=Date.now(),ze;typeof je=="string"?(re.test(je)||(je="https://"+je),ze=we.parse(je)):ze=je;var Ke=(Le.type||Le.method||ze.method||"GET").toUpperCase(),ot=ze.port||80,ct=me,pt=le(Le.agent,Ne.agent),bt=Le.fixJSONCtlChars;ze.protocol==="https:"&&(ct=Se,pt=le(Le.httpsAgent,Ne.httpsAgent),ze.port||(ot=443));var qe={host:ze.hostname||ze.host||"localhost",path:ze.path||"/",method:Ke,port:ot,agent:pt,headers:Le.headers||{},lookup:Le.lookup};Array.isArray(Le.timeout)?qe.requestTimeout=Le.timeout[Le.timeout.length-1]:typeof Le.timeout!="undefined"&&(qe.requestTimeout=Le.timeout);var at=Le.auth||ze.auth;at&&(qe.auth=at);var gt=Le.content||Le.data,Ct=Ke==="GET"||Ke==="HEAD"||Le.dataAsQueryString;if(!Le.content&>&&!(typeof gt=="string"||fe.isBuffer(gt)))if(Ct)gt=Le.nestedQuerystring?qs.stringify(gt):querystring.stringify(gt);else{var wt=qe.headers["Content-Type"]||qe.headers["content-type"];wt||(Le.contentType==="json"?wt="application/json":wt="application/x-www-form-urlencoded",qe.headers["Content-Type"]=wt),ue(wt)==="application/json"?gt=JSON.stringify(gt):gt=Le.nestedQuerystring?qs.stringify(gt):querystring.stringify(gt)}Ct&>&&(qe.path+=(ze.query?"&":"?")+gt,gt=null);var vt=0;if(gt){var mt=gt.length;fe.isBuffer(gt)||(mt=fe.byteLength(gt)),vt=qe.headers["Content-Length"]=mt}Le.dataType==="json"&&(qe.headers.Accept="application/json"),typeof Le.beforeRequest=="function"&&Le.beforeRequest(qe);var xt=null,At=null,kt=null,Wt=!1,Et=!1,St=0,tt=-1,ft=!1,$e="",lt="",Pt=null;Le.timing&&(Pt={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function dt(){xt&&(clearTimeout(xt),xt=null)}function et(){At&&(clearTimeout(At),At=null)}function Ve(Ht,en,It){if(et(),!ke){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Fe,ve.pid,qe.method,je),Ht&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),Fe,ve.pid,Ht.name,Ht.message,Ht.stack);return}var Ut=ke;ke=null;var tn={};It&&(tt=It.statusCode,tn=It.headers);var ln=Date.now()-Ze;Pt&&(Pt.contentDownload=ln),de("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",ln,St,tt,qe.method,qe.host,qe.path,Et,Pt);var mn={status:tt,statusCode:tt,headers:tn,size:St,aborted:ft,rt:ln,keepAliveSocket:Et,data:en,requestUrls:Le.requestUrls,timing:Pt,remoteAddress:$e,remotePort:lt};if(Ht){var jn="";pt&&typeof pt.getCurrentStatus=="function"&&(jn=", agent status: "+JSON.stringify(pt.getCurrentStatus())),Ht.message+=", "+qe.method+" "+je+" "+tt+" (connected: "+Wt+", keepalive socket: "+Et+jn+`)
|
|
|
headers: `+JSON.stringify(tn),Ht.data=en,Ht.path=qe.path,Ht.status=tt,Ht.headers=tn,Ht.res=mn}Ut(Ht,en,Le.streaming?It:mn),Le.emitter&&(Re.url=je,Re.socket=Ye&&Ye.connection,Re.options=qe,Re.size=vt,Le.emitter.emit("response",{requestId:Fe,error:Ht,ctx:Le.ctx,req:Re,res:mn}))}function He(Ht){var en=null;if(Le.followRedirect&&statuses.redirect[Ht.statusCode]){Le._followRedirectCount=(Le._followRedirectCount||0)+1;var It=Ht.headers.location;if(!It)en=new Error("Got statusCode "+Ht.statusCode+" but cannot resolve next location from headers"),en.name="FollowRedirectError";else if(Le._followRedirectCount>Le.maxRedirects)en=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+je),en.name="MaxRedirectError";else{var Ut=Le.formatRedirectUrl?Le.formatRedirectUrl(je,It):we.resolve(je,It);de("Request#%d %s: `redirected` from %s to %s",Fe,qe.path,je,Ut),et(),Le.headers&&Le.headers.Host&&re.test(It)&&(Le.headers.Host=null);var tn=ke;return ke=null,Ne.requestWithCallback(Ut,Le,tn),{redirect:!0,error:null}}}return{redirect:!1,error:en}}Le.gzip&&!qe.headers["Accept-Encoding"]&&!qe.headers["accept-encoding"]&&(qe.headers["Accept-Encoding"]="gzip");function nt(Ht,en,It){var Ut=Ht.headers["content-encoding"];return It(null,en,Ut)}var ut=Le.writeStream;de("Request#%d %s %s with headers %j, options.path: %s",Fe,Ke,je,qe.headers,qe.path),Le.requestUrls.push(je);function We(Ht){if(Pt&&(Pt.waiting=Date.now()-Ze),de("Request#%d %s `req response` event emit: status %d, headers: %j",Fe,je,Ht.statusCode,Ht.headers),Le.streaming){var en=He(Ht);if(en.redirect){Ht.resume();return}return en.error?(Ht.resume(),Ve(en.error,null,Ht)):Ve(null,null,Ht)}if(Ht.on("close",function(){de("Request#%d %s: `res close` event emit, total size %d",Fe,je,St)}),Ht.on("error",function(){de("Request#%d %s: `res error` event emit, total size %d",Fe,je,St)}),Ht.on("aborted",function(){ft=!0,de("Request#%d %s: `res aborted` event emit, total size %d",Fe,je,St)}),ut){var It=He(Ht);if(It.redirect){Ht.resume();return}return It.error?(Ht.resume(),ut.end(),Ve(It.error,null,Ht)):(Le.consumeWriteStream===!1?Ht.on("end",Ve.bind(null,null,null,Ht)):ut.on("close",function(){de("Request#%d %s: writeStream close event emitted",Fe,je),Ve(kt||null,null,Ht)}),Ht.pipe(ut))}var Ut=[];Ht.on("data",function(tn){de("Request#%d %s: `res data` event emit, size %d",Fe,je,tn.length),St+=tn.length,Ut.push(tn)}),Ht.on("end",function(){var tn=fe.concat(Ut,St);if(de("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Fe,je,St,Ht._dumped),kt)return Ve(kt,tn,Ht);var ln=He(Ht);if(ln.error)return Ve(ln.error,tn,Ht);ln.redirect||nt(Ht,tn,function(mn,jn,Vn){if(mn)return Ve(mn,tn,Ht);if(!Vn&&Ee.indexOf(Le.dataType)>=0){try{jn=decodeBodyByCharset(jn,Ht)}catch(ar){return de("decodeBodyByCharset error: %s",ar),Ve(null,jn,Ht)}if(Le.dataType==="json")if(St===0)jn=null;else{var Kn=parseJSON(jn,bt);Kn.error?mn=Kn.error:jn=Kn.data}}ft&&de("Request#%d %s: Remote socket was terminated before `response.end()` was called",Fe,je),Ve(mn,jn,Ht)})})}var De,Ie;Array.isArray(Le.timeout)?(De=z(Le.timeout[0]),Ie=z(Le.timeout[1])):De=Ie=z(Le.timeout),de("ConnectTimeout: %d, ResponseTimeout: %d",De,Ie);function Xe(){de("Connect timer ticking, timeout: %d",De),xt=setTimeout(function(){xt=null,tt===-1&&(tt=-2);var Ht="Connect timeout for "+De+"ms",en="ConnectionTimeoutError";Ye.socket||(en="SocketAssignTimeoutError",Ht+=", working sockets is full"),kt=new Error(Ht),kt.name=en,kt.requestId=Fe,de("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Fe,je,kt.name,Ht,Wt),jt()},De)}function yt(){de("Response timer ticking, timeout: %d",Ie),At=setTimeout(function(){At=null;var Ht="Response timeout for "+Ie+"ms",en="ResponseTimeoutError";kt=new Error(Ht),kt.name=en,kt.requestId=Fe,de("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Fe,je,kt.name,Ht,Wt),jt()},Ie)}var Ye;qe.mode=Le.mode?Le.mode:"";try{Ye=ct.request(qe,We)}catch(Ht){return Ve(Ht)}typeof window=="undefined"?Xe():Ye.on("requestTimeout",function(){tt===-1&&(tt=-2);var Ht="Connect timeout for "+De+"ms",en="ConnectionTimeoutError";kt=new Error(Ht),kt.name=en,kt.requestId=Fe,jt()});function jt(){de("Request#%d %s abort, connected: %s",Fe,je,Wt),Ye.socket||(kt.noSocket=!0,Ve(kt)),Ye.abort()}return Pt&&Ye.on("finish",function(){Pt.requestSent=Date.now()-Ze}),Ye.once("socket",function(Ht){Pt&&(Pt.queuing=Date.now()-Ze);var en=Ht.readyState;if(en==="opening"){Ht.once("lookup",function(It,Ut,tn){de("Request#%d %s lookup: %s, %s, %s",Fe,je,It,Ut,tn),Pt&&(Pt.dnslookup=Date.now()-Ze),Ut&&($e=Ut)}),Ht.once("connect",function(){Pt&&(Pt.connected=Date.now()-Ze),dt(),yt(),de("Request#%d %s new socket connected",Fe,je),Wt=!0,$e||($e=Ht.remoteAddress),lt=Ht.remotePort});return}de("Request#%d %s reuse socket connected, readyState: %s",Fe,je,en),Wt=!0,Et=!0,$e||($e=Ht.remoteAddress),lt=Ht.remotePort,dt(),yt()}),Ye.on("error",function(Ht){(Ht.name==="Error"||Ht.name==="TypeError")&&(Ht.name=Wt?"ResponseError":"RequestError"),Ht.message+=' (req "error")',de("Request#%d %s `req error` event emit, %s: %s",Fe,je,Ht.name,Ht.message),Ve(kt||Ht)}),ut&&ut.once("error",function(Ht){Ht.message+=' (writeStream "error")',kt=Ht,de("Request#%d %s `writeStream error` event emit, %s: %s",Fe,je,Ht.name,Ht.message),jt()}),Le.stream?(Le.stream.pipe(Ye),Le.stream.once("error",function(Ht){Ht.message+=' (stream "error")',kt=Ht,de("Request#%d %s `readStream error` event emit, %s: %s",Fe,je,Ht.name,Ht.message),jt()})):Ye.end(gt),Ye.requestId=Fe,Ye}}).call(this)}).call(this,oe("_process"),oe("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,debug:465,http:468,https:355,"humanize-ms":356,url:472,util:419}]},{},[1])(1)})})(window)},77578:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Qe}});const Qe=Tt=>Tt?typeof Tt=="function"?Tt():Tt:null},56762:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Tt}});var Qe=Ge(59301);function Tt(){const[,oe]=Qe.useReducer(_e=>_e+1,0);return oe}},19842:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return $r}});var Qe=Ge(80702),Tt=Ge(59301),oe=Ge(33853),_e=Ge(58617),Ne=Ge(38819),ve=Ge(92310),fe=Ge.n(ve),be=Ge(72308),Pe=Ge(52487),ye=Ge(74416),we=Ge(77861),me=Ge(17115),Se=Ge(90782),de=Ge(6089),z=Ge(18929),ee=Tt.createContext(null),ae=ee,re=Ge(62853),le=Ge(49618),ue=Ge(77321),pe="__rc_cascader_search_mark__",Ee=function(er,rr,vr){var zn=vr.label;return rr.some(function(Nn){return String(Nn[zn]).toLowerCase().includes(er.toLowerCase())})},Ce=function(er,rr,vr,zn){return rr.map(function(Nn){return Nn[zn.label]}).join(" / ")},je=function(En,er,rr,vr,zn,Nn){var $t=zn.filter,Xt=$t===void 0?Ee:$t,Lt=zn.render,nn=Lt===void 0?Ce:Lt,pn=zn.limit,Vt=pn===void 0?50:pn,Rt=zn.sort;return Tt.useMemo(function(){var rn=[];if(!En)return[];function yn(Mn,On){var zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Mn.forEach(function(xn){if(!(!Rt&&Vt!==!1&&Vt>0&&rn.length>=Vt)){var Fn=[].concat((0,Qe.Z)(On),[xn]),$n=xn[rr.children],gn=zt||xn.disabled;if((!$n||$n.length===0||Nn)&&Xt(En,Fn,{label:rr.label})){var Sn;rn.push((0,ue.Z)((0,ue.Z)({},xn),{},(Sn={disabled:gn},(0,le.Z)(Sn,rr.label,nn(En,Fn,vr,rr)),(0,le.Z)(Sn,pe,Fn),(0,le.Z)(Sn,rr.children,void 0),Sn)))}$n&&yn(xn[rr.children],Fn,gn)}})}return yn(er,[]),Rt&&rn.sort(function(Mn,On){return Rt(Mn[pe],On[pe],En,rr)}),Vt!==!1&&Vt>0?rn.slice(0,Vt):rn},[En,er,rr,vr,nn,Nn,Xt,Rt,Vt])},Le="__RC_CASCADER_SPLIT__",ke="SHOW_PARENT",Oe="SHOW_CHILD";function Fe(En){return En.join(Le)}function Re(En){return En.map(Fe)}function Ze(En){return En.split(Le)}function ze(En){var er=En||{},rr=er.label,vr=er.value,zn=er.children,Nn=vr||"value";return{label:rr||"label",value:Nn,key:Nn,children:zn||"children"}}function Ke(En,er){var rr,vr;return(rr=En.isLeaf)!==null&&rr!==void 0?rr:!((vr=En[er.children])!==null&&vr!==void 0&&vr.length)}function ot(En){var er=En.parentElement;if(er){var rr=En.offsetTop-er.offsetTop;rr-er.scrollTop<0?er.scrollTo({top:rr}):rr+En.offsetHeight-er.scrollTop>er.offsetHeight&&er.scrollTo({top:rr+En.offsetHeight-er.offsetHeight})}}function ct(En,er){return En.map(function(rr){var vr;return(vr=rr[pe])===null||vr===void 0?void 0:vr.map(function(zn){return zn[er.value]})})}function pt(En,er,rr){var vr=new Set(En),zn=er();return En.filter(function(Nn){var $t=zn[Nn],Xt=$t?$t.parent:null,Lt=$t?$t.children:null;return $t&&$t.node.disabled?!0:rr===Oe?!(Lt&&Lt.some(function(nn){return nn.key&&vr.has(nn.key)})):!(Xt&&!Xt.node.disabled&&vr.has(Xt.key))})}function bt(En,er,rr){for(var vr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,zn=er,Nn=[],$t=function(){var nn,pn,Vt,Rt=En[Xt],rn=(nn=zn)===null||nn===void 0?void 0:nn.findIndex(function(Mn){var On=Mn[rr.value];return vr?String(On)===String(Rt):On===Rt}),yn=rn!==-1?(pn=zn)===null||pn===void 0?void 0:pn[rn]:null;Nn.push({value:(Vt=yn==null?void 0:yn[rr.value])!==null&&Vt!==void 0?Vt:Rt,index:rn,option:yn}),zn=yn==null?void 0:yn[rr.children]},Xt=0;Xt<En.length;Xt+=1)$t();return Nn}var qe=function(En,er,rr,vr,zn){return Tt.useMemo(function(){var Nn=zn||function($t){var Xt=vr?$t.slice(-1):$t,Lt=" / ";return Xt.every(function(nn){return["string","number"].includes((0,re.Z)(nn))})?Xt.join(Lt):Xt.reduce(function(nn,pn,Vt){var Rt=Tt.isValidElement(pn)?Tt.cloneElement(pn,{key:Vt}):pn;return Vt===0?[Rt]:[].concat((0,Qe.Z)(nn),[Lt,Rt])},[])};return En.map(function($t){var Xt,Lt,nn=bt($t,er,rr),pn=Nn(nn.map(function(Rt){var rn,yn=Rt.option,Mn=Rt.value;return(rn=yn==null?void 0:yn[rr.label])!==null&&rn!==void 0?rn:Mn}),nn.map(function(Rt){var rn=Rt.option;return rn})),Vt=Fe($t);return{label:pn,value:Vt,key:Vt,valueCells:$t,disabled:(Xt=nn[nn.length-1])===null||Xt===void 0||(Lt=Xt.option)===null||Lt===void 0?void 0:Lt.disabled}})},[En,er,rr,zn,vr])},at=Ge(71430),gt=function(En,er){var rr=Tt.useRef({options:null,info:null}),vr=Tt.useCallback(function(){return rr.current.options!==En&&(rr.current.options=En,rr.current.info=(0,at.I8)(En,{fieldNames:er,initWrapper:function(Nn){return(0,ue.Z)((0,ue.Z)({},Nn),{},{pathKeyEntities:{}})},processEntity:function(Nn,$t){var Xt=Nn.nodes.map(function(Lt){return Lt[er.value]}).join(Le);$t.pathKeyEntities[Xt]=Nn,Nn.key=Xt}})),rr.current.info.pathKeyEntities},[er,En]);return vr},Ct=function(En,er){return Tt.useCallback(function(rr){var vr=[],zn=[];return rr.forEach(function(Nn){var $t=bt(Nn,En,er);$t.every(function(Xt){return Xt.option})?zn.push(Nn):vr.push(Nn)}),[zn,vr]},[En,er])},wt=Ge(48736);function vt(En){return Tt.useMemo(function(){if(!En)return[!1,{}];var er={matchInputWidth:!0,limit:50};return En&&(0,re.Z)(En)==="object"&&(er=(0,ue.Z)((0,ue.Z)({},er),En)),er.limit<=0&&delete er.limit,[!0,er]},[En])}var mt=Tt.memo(function(En){var er=En.children;return er},function(En,er){return!er.open}),xt=mt;function At(En){var er,rr=En.prefixCls,vr=En.checked,zn=En.halfChecked,Nn=En.disabled,$t=En.onClick,Xt=En.disableCheckbox,Lt=Tt.useContext(ae),nn=Lt.checkable,pn=typeof nn!="boolean"?nn:null;return Tt.createElement("span",{className:fe()("".concat(rr),(er={},(0,le.Z)(er,"".concat(rr,"-checked"),vr),(0,le.Z)(er,"".concat(rr,"-indeterminate"),!vr&&zn),(0,le.Z)(er,"".concat(rr,"-disabled"),Nn||Xt),er)),onClick:$t},pn)}var kt="__cascader_fix_label__";function Wt(En){var er=En.prefixCls,rr=En.multiple,vr=En.options,zn=En.activeValue,Nn=En.prevValuePath,$t=En.onToggleOpen,Xt=En.onSelect,Lt=En.onActive,nn=En.checkedSet,pn=En.halfCheckedSet,Vt=En.loadingKeys,Rt=En.isSelectable,rn=En.searchValue,yn="".concat(er,"-menu"),Mn="".concat(er,"-menu-item"),On=Tt.useContext(ae),zt=On.fieldNames,xn=On.changeOnSelect,Fn=On.expandTrigger,$n=On.expandIcon,gn=On.loadingIcon,Sn=On.dropdownMenuColumnStyle,Qt=Fn==="hover",hn=Tt.useMemo(function(){return vr.map(function(dn){var cn,Pn=dn.disabled,Cn=dn.disableCheckbox,Dn=dn[pe],In=(cn=dn[kt])!==null&&cn!==void 0?cn:dn[zt.label],tr=dn[zt.value],un=Ke(dn,zt),fr=Dn?Dn.map(function(Yn){return Yn[zt.value]}):[].concat((0,Qe.Z)(Nn),[tr]),wr=Fe(fr),Or=Vt.includes(wr),fn=nn.has(wr),_n=pn.has(wr);return{disabled:Pn,label:In,value:tr,isLeaf:un,isLoading:Or,checked:fn,halfChecked:_n,option:dn,disableCheckbox:Cn,fullPath:fr,fullPathKey:wr}})},[vr,nn,zt,pn,Vt,Nn]);return Tt.createElement("ul",{className:yn,role:"menu"},hn.map(function(dn){var cn,Pn=dn.disabled,Cn=dn.label,Dn=dn.value,In=dn.isLeaf,tr=dn.isLoading,un=dn.checked,fr=dn.halfChecked,wr=dn.option,Or=dn.fullPath,fn=dn.fullPathKey,_n=dn.disableCheckbox,Yn=function(){if(!(Pn||rn)){var Cr=(0,Qe.Z)(Or);Qt&&In&&Cr.pop(),Lt(Cr)}},hr=function(){Rt(wr)&&Xt(Or,In)},Qn;return typeof wr.title=="string"?Qn=wr.title:typeof Cn=="string"&&(Qn=Cn),Tt.createElement("li",{key:fn,className:fe()(Mn,(cn={},(0,le.Z)(cn,"".concat(Mn,"-expand"),!In),(0,le.Z)(cn,"".concat(Mn,"-active"),zn===Dn||zn===fn),(0,le.Z)(cn,"".concat(Mn,"-disabled"),Pn),(0,le.Z)(cn,"".concat(Mn,"-loading"),tr),cn)),style:Sn,role:"menuitemcheckbox",title:Qn,"aria-checked":un,"data-path-key":fn,onClick:function(){Yn(),!_n&&(!rr||In)&&hr()},onDoubleClick:function(){xn&&$t(!1)},onMouseEnter:function(){Qt&&Yn()},onMouseDown:function(Cr){Cr.preventDefault()}},rr&&Tt.createElement(At,{prefixCls:"".concat(er,"-checkbox"),checked:un,halfChecked:fr,disabled:Pn||_n,disableCheckbox:_n,onClick:function(Cr){_n||(Cr.stopPropagation(),hr())}}),Tt.createElement("div",{className:"".concat(Mn,"-content")},Cn),!tr&&$n&&!In&&Tt.createElement("div",{className:"".concat(Mn,"-expand-icon")},$n),tr&&gn&&Tt.createElement("div",{className:"".concat(Mn,"-loading-icon")},gn))}))}var Et=function(){var En=(0,we.lk)(),er=En.multiple,rr=En.open,vr=Tt.useContext(ae),zn=vr.values,Nn=Tt.useState([]),$t=(0,Pe.Z)(Nn,2),Xt=$t[0],Lt=$t[1];return Tt.useEffect(function(){if(rr&&!er){var nn=zn[0];Lt(nn||[])}},[rr]),[Xt,Lt]},St=Ge(10228),tt=function(En,er,rr,vr,zn,Nn){var $t=(0,we.lk)(),Xt=$t.direction,Lt=$t.searchValue,nn=$t.toggleOpen,pn=$t.open,Vt=Xt==="rtl",Rt=Tt.useMemo(function(){for(var Sn=-1,Qt=er,hn=[],dn=[],cn=vr.length,Pn=ct(er,rr),Cn=function(wr){var Or=Qt.findIndex(function(fn,_n){return(Pn[_n]?Fe(Pn[_n]):fn[rr.value])===vr[wr]});if(Or===-1)return"break";Sn=Or,hn.push(Sn),dn.push(vr[wr]),Qt=Qt[Sn][rr.children]},Dn=0;Dn<cn&&Qt;Dn+=1){var In=Cn(Dn);if(In==="break")break}for(var tr=er,un=0;un<hn.length-1;un+=1)tr=tr[hn[un]][rr.children];return[dn,Sn,tr,Pn]},[vr,rr,er]),rn=(0,Pe.Z)(Rt,4),yn=rn[0],Mn=rn[1],On=rn[2],zt=rn[3],xn=function(Qt){zn(Qt)},Fn=function(Qt){var hn=On.length,dn=Mn;dn===-1&&Qt<0&&(dn=hn);for(var cn=0;cn<hn;cn+=1){dn=(dn+Qt+hn)%hn;var Pn=On[dn];if(Pn&&!Pn.disabled){var Cn=yn.slice(0,-1).concat(zt[dn]?Fe(zt[dn]):Pn[rr.value]);xn(Cn);return}}},$n=function(){if(yn.length>1){var Qt=yn.slice(0,-1);xn(Qt)}else nn(!1)},gn=function(){var Qt,hn=((Qt=On[Mn])===null||Qt===void 0?void 0:Qt[rr.children])||[],dn=hn.find(function(Pn){return!Pn.disabled});if(dn){var cn=[].concat((0,Qe.Z)(yn),[dn[rr.value]]);xn(cn)}};Tt.useImperativeHandle(En,function(){return{onKeyDown:function(Qt){var hn=Qt.which;switch(hn){case St.Z.UP:case St.Z.DOWN:{var dn=0;hn===St.Z.UP?dn=-1:hn===St.Z.DOWN&&(dn=1),dn!==0&&Fn(dn);break}case St.Z.LEFT:{if(Lt)break;Vt?gn():$n();break}case St.Z.RIGHT:{if(Lt)break;Vt?$n():gn();break}case St.Z.BACKSPACE:{Lt||$n();break}case St.Z.ENTER:{if(yn.length){var cn=On[Mn],Pn=(cn==null?void 0:cn[pe])||[];Pn.length?Nn(Pn.map(function(Cn){return Cn[rr.value]}),Pn[Pn.length-1]):Nn(yn,On[Mn])}break}case St.Z.ESC:nn(!1),pn&&Qt.stopPropagation()}},onKeyUp:function(){}}})},ft=Tt.forwardRef(function(En,er){var rr,vr,zn,Nn,$t=(0,we.lk)(),Xt=$t.prefixCls,Lt=$t.multiple,nn=$t.searchValue,pn=$t.toggleOpen,Vt=$t.notFoundContent,Rt=$t.direction,rn=$t.open,yn=Tt.useRef(),Mn=Rt==="rtl",On=Tt.useContext(ae),zt=On.options,xn=On.values,Fn=On.halfValues,$n=On.fieldNames,gn=On.changeOnSelect,Sn=On.onSelect,Qt=On.searchOptions,hn=On.dropdownPrefixCls,dn=On.loadData,cn=On.expandTrigger,Pn=hn||Xt,Cn=Tt.useState([]),Dn=(0,Pe.Z)(Cn,2),In=Dn[0],tr=Dn[1],un=function(Ar){if(!(!dn||nn)){var fi=bt(Ar,zt,$n),oi=fi.map(function(Kr){var ai=Kr.option;return ai}),Sr=oi[oi.length-1];if(Sr&&!Ke(Sr,$n)){var yr=Fe(Ar);tr(function(Kr){return[].concat((0,Qe.Z)(Kr),[yr])}),dn(oi)}}};Tt.useEffect(function(){In.length&&In.forEach(function(li){var Ar=Ze(li),fi=bt(Ar,zt,$n,!0).map(function(Sr){var yr=Sr.option;return yr}),oi=fi[fi.length-1];(!oi||oi[$n.children]||Ke(oi,$n))&&tr(function(Sr){return Sr.filter(function(yr){return yr!==li})})})},[zt,In,$n]);var fr=Tt.useMemo(function(){return new Set(Re(xn))},[xn]),wr=Tt.useMemo(function(){return new Set(Re(Fn))},[Fn]),Or=Et(),fn=(0,Pe.Z)(Or,2),_n=fn[0],Yn=fn[1],hr=function(Ar){Yn(Ar),un(Ar)},Qn=function(Ar){var fi=Ar.disabled,oi=Ke(Ar,$n);return!fi&&(oi||gn||Lt)},ur=function(Ar,fi){var oi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Sn(Ar),!Lt&&(fi||gn&&(cn==="hover"||oi))&&pn(!1)},Cr=Tt.useMemo(function(){return nn?Qt:zt},[nn,Qt,zt]),Pr=Tt.useMemo(function(){for(var li=[{options:Cr}],Ar=Cr,fi=ct(Ar,$n),oi=function(){var ai=_n[Sr],qn=Ar.find(function(ni,Ci){return(fi[Ci]?Fe(fi[Ci]):ni[$n.value])===ai}),Nt=qn==null?void 0:qn[$n.children];if(!(Nt!=null&&Nt.length))return"break";Ar=Nt,li.push({options:Nt})},Sr=0;Sr<_n.length;Sr+=1){var yr=oi();if(yr==="break")break}return li},[Cr,_n,$n]),cr=function(Ar,fi){Qn(fi)&&ur(Ar,Ke(fi,$n),!0)};tt(er,Cr,$n,_n,hr,cr),Tt.useEffect(function(){for(var li=0;li<_n.length;li+=1){var Ar,fi=_n.slice(0,li+1),oi=Fe(fi),Sr=(Ar=yn.current)===null||Ar===void 0?void 0:Ar.querySelector('li[data-path-key="'.concat(oi.replace(/\\{0,2}"/g,'\\"'),'"]'));Sr&&ot(Sr)}},[_n]);var Mr=!((rr=Pr[0])!==null&&rr!==void 0&&(vr=rr.options)!==null&&vr!==void 0&&vr.length),Tn=[(zn={},(0,le.Z)(zn,$n.value,"__EMPTY__"),(0,le.Z)(zn,kt,Vt),(0,le.Z)(zn,"disabled",!0),zn)],qr=(0,ue.Z)((0,ue.Z)({},En),{},{multiple:!Mr&&Lt,onSelect:ur,onActive:hr,onToggleOpen:pn,checkedSet:fr,halfCheckedSet:wr,loadingKeys:In,isSelectable:Qn}),Ln=Mr?[{options:Tn}]:Pr,zr=Ln.map(function(li,Ar){var fi=_n.slice(0,Ar),oi=_n[Ar];return Tt.createElement(Wt,(0,be.Z)({key:Ar},qr,{searchValue:nn,prefixCls:Pn,options:li.options,prevValuePath:fi,activeValue:oi}))});return Tt.createElement(xt,{open:rn},Tt.createElement("div",{className:fe()("".concat(Pn,"-menus"),(Nn={},(0,le.Z)(Nn,"".concat(Pn,"-menu-empty"),Mr),(0,le.Z)(Nn,"".concat(Pn,"-rtl"),Mn),Nn)),ref:yn},zr))}),$e=ft;function lt(En){var er=En.onPopupVisibleChange,rr=En.popupVisible,vr=En.popupClassName,zn=En.popupPlacement;warning(!er,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(rr===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(vr===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(zn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Pt(En,er){if(En){var rr=function vr(zn){for(var Nn=0;Nn<zn.length;Nn++){var $t=zn[Nn];if($t[er==null?void 0:er.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray($t[er==null?void 0:er.children])&&vr($t[er==null?void 0:er.children]))return!0}};rr(En)}}var dt=null,et=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"];function Ve(En){return Array.isArray(En)&&Array.isArray(En[0])}function He(En){return En?Ve(En)?En:(En.length===0?[]:[En]).map(function(er){return Array.isArray(er)?er:[er]}):[]}var nt=Tt.forwardRef(function(En,er){var rr=En.id,vr=En.prefixCls,zn=vr===void 0?"rc-cascader":vr,Nn=En.fieldNames,$t=En.defaultValue,Xt=En.value,Lt=En.changeOnSelect,nn=En.onChange,pn=En.displayRender,Vt=En.checkable,Rt=En.autoClearSearchValue,rn=Rt===void 0?!0:Rt,yn=En.searchValue,Mn=En.onSearch,On=En.showSearch,zt=En.expandTrigger,xn=En.options,Fn=En.dropdownPrefixCls,$n=En.loadData,gn=En.popupVisible,Sn=En.open,Qt=En.popupClassName,hn=En.dropdownClassName,dn=En.dropdownMenuColumnStyle,cn=En.popupPlacement,Pn=En.placement,Cn=En.onDropdownVisibleChange,Dn=En.onPopupVisibleChange,In=En.expandIcon,tr=In===void 0?">":In,un=En.loadingIcon,fr=En.children,wr=En.dropdownMatchSelectWidth,Or=wr===void 0?!1:wr,fn=En.showCheckedStrategy,_n=fn===void 0?ke:fn,Yn=(0,ye.Z)(En,et),hr=(0,me.ZP)(rr),Qn=!!Vt,ur=(0,z.Z)($t,{value:Xt,postState:He}),Cr=(0,Pe.Z)(ur,2),Pr=Cr[0],cr=Cr[1],Mr=Tt.useMemo(function(){return ze(Nn)},[JSON.stringify(Nn)]),Tn=Tt.useMemo(function(){return xn||[]},[xn]),qr=gt(Tn,Mr),Ln=Tt.useCallback(function(Ti){var gi=qr();return Ti.map(function(Gi){var Xi=gi[Gi].nodes;return Xi.map(function(vo){return vo[Mr.value]})})},[qr,Mr]),zr=(0,z.Z)("",{value:yn,postState:function(gi){return gi||""}}),li=(0,Pe.Z)(zr,2),Ar=li[0],fi=li[1],oi=function(gi,Gi){fi(gi),Gi.source!=="blur"&&Mn&&Mn(gi)},Sr=vt(On),yr=(0,Pe.Z)(Sr,2),Kr=yr[0],ai=yr[1],qn=je(Ar,Tn,Mr,Fn||zn,ai,Lt),Nt=Ct(Tn,Mr),ni=Tt.useMemo(function(){var Ti=Nt(Pr),gi=(0,Pe.Z)(Ti,2),Gi=gi[0],Xi=gi[1];if(!Qn||!Pr.length)return[Gi,[],Xi];var vo=Re(Gi),yo=qr(),Po=(0,Se.S)(vo,!0,yo),wn=Po.checkedKeys,ao=Po.halfCheckedKeys;return[Ln(wn),Ln(ao),Xi]},[Qn,Pr,qr,Ln,Nt]),Ci=(0,Pe.Z)(ni,3),Xr=Ci[0],Ei=Ci[1],Oi=Ci[2],Fr=Tt.useMemo(function(){var Ti=Re(Xr),gi=pt(Ti,qr,_n);return[].concat((0,Qe.Z)(Oi),(0,Qe.Z)(Ln(gi)))},[Xr,qr,Ln,Oi,_n]),Gr=qe(Fr,Tn,Mr,Qn,pn),ri=(0,de.Z)(function(Ti){if(cr(Ti),nn){var gi=He(Ti),Gi=gi.map(function(yo){return bt(yo,Tn,Mr).map(function(Po){return Po.option})}),Xi=Qn?gi:gi[0],vo=Qn?Gi:Gi[0];nn(Xi,vo)}}),Vr=(0,de.Z)(function(Ti){if((!Qn||rn)&&fi(""),!Qn)ri(Ti);else{var gi=Fe(Ti),Gi=Re(Xr),Xi=Re(Ei),vo=Gi.includes(gi),yo=Oi.some(function(Bi){return Fe(Bi)===gi}),Po=Xr,wn=Oi;if(yo&&!vo)wn=Oi.filter(function(Bi){return Fe(Bi)!==gi});else{var ao=vo?Gi.filter(function(Bi){return Bi!==gi}):[].concat((0,Qe.Z)(Gi),[gi]),cl=qr(),la;if(vo){var Ai=(0,Se.S)(ao,{checked:!1,halfCheckedKeys:Xi},cl);la=Ai.checkedKeys}else{var mi=(0,Se.S)(ao,!0,cl);la=mi.checkedKeys}var so=pt(la,qr,_n);Po=Ln(so)}ri([].concat((0,Qe.Z)(wn),(0,Qe.Z)(Po)))}}),Mi=function(gi,Gi){if(Gi.type==="clear"){ri([]);return}var Xi=Gi.values[0],vo=Xi.valueCells;Vr(vo)},Fi=Sn!==void 0?Sn:gn,Lr=hn||Qt,kr=Pn||cn,Wn=function(gi){Cn==null||Cn(gi),Dn==null||Dn(gi)},Br=Tt.useMemo(function(){return{options:Tn,fieldNames:Mr,values:Xr,halfValues:Ei,changeOnSelect:Lt,onSelect:Vr,checkable:Vt,searchOptions:qn,dropdownPrefixCls:Fn,loadData:$n,expandTrigger:zt,expandIcon:tr,loadingIcon:un,dropdownMenuColumnStyle:dn}},[Tn,Mr,Xr,Ei,Lt,Vr,Vt,qn,Fn,$n,zt,tr,un,dn]),vi=!(Ar?qn:Tn).length,Ki=Ar&&ai.matchInputWidth||vi?{}:{minWidth:"auto"};return Tt.createElement(ae.Provider,{value:Br},Tt.createElement(we.Ac,(0,be.Z)({},Yn,{ref:er,id:hr,prefixCls:zn,autoClearSearchValue:rn,dropdownMatchSelectWidth:Or,dropdownStyle:Ki,displayValues:Gr,onDisplayValuesChange:Mi,mode:Qn?"multiple":void 0,searchValue:Ar,onSearch:oi,showSearch:Kr,OptionList:$e,emptyOptions:vi,open:Fi,dropdownClassName:Lr,placement:kr,onDropdownVisibleChange:Wn,getRawInputElement:function(){return fr}})))});nt.SHOW_PARENT=ke,nt.SHOW_CHILD=Oe;var ut=nt,We=ut,De=Ge(2738),Ie=Ge(62892),Xe=Ge(53487),yt=Ge(19080),Ye=Ge(36355),jt=Ge(93891),Ht=Ge(1684),en=Ge(19716),It=Ge(32441),Ut=Ge(14154),tn=Ge(58582),ln=Ge(84443),mn=Ge(66339),jn=Ge(33234),Vn=Ge(98447),Kn=Ge(17313),ar=Ge(74207),xr=Ge(83116);const gr=En=>{const{prefixCls:er,componentCls:rr,antCls:vr}=En,zn=`${rr}-menu-item`,Nn=`
|
|
|
&${zn}-expand ${zn}-expand-icon,
|
|
|
${zn}-loading-icon
|
|
|
`;return[{[rr]:{width:En.controlWidth}},{[`${rr}-dropdown`]:[(0,Vn.C2)(`${er}-checkbox`,En),{[`&${vr}-select-dropdown`]:{padding:0}},{[rr]:{"&-checkbox":{top:0,marginInlineEnd:En.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${rr}-menu-empty`]:{[`${rr}-menu`]:{width:"100%",height:"auto",[zn]:{color:En.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:En.controlItemWidth,height:En.dropdownHeight,margin:0,padding:En.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${En.lineWidth}px ${En.lineType} ${En.colorSplit}`},"&-item":Object.assign(Object.assign({},Kn.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:En.optionPadding,lineHeight:En.lineHeight,cursor:"pointer",transition:`all ${En.motionDurationMid}`,borderRadius:En.borderRadiusSM,"&:hover":{background:En.controlItemBgHover},"&-disabled":{color:En.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Nn]:{color:En.colorTextDisabled}},[`&-active:not(${zn}-disabled)`]:{"&, &:hover":{fontWeight:En.optionSelectedFontWeight,backgroundColor:En.optionSelectedBg}},"&-content":{flex:"auto"},[Nn]:{marginInlineStart:En.paddingXXS,color:En.colorTextDescription,fontSize:En.fontSizeIcon},"&-keyword":{color:En.colorHighlight}})}}}]},{[`${rr}-dropdown-rtl`]:{direction:"rtl"}},(0,ar.c)(En)]};var dr=(0,xr.Z)("Cascader",En=>[gr(En)],En=>{const er=Math.round((En.controlHeight-En.fontSize*En.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:En.controlItemBgActive,optionSelectedFontWeight:En.fontWeightStrong,optionPadding:`${er}px ${En.paddingSM}px`,menuPadding:En.paddingXXS}}),Tr=function(En,er){var rr={};for(var vr in En)Object.prototype.hasOwnProperty.call(En,vr)&&er.indexOf(vr)<0&&(rr[vr]=En[vr]);if(En!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zn=0,vr=Object.getOwnPropertySymbols(En);zn<vr.length;zn++)er.indexOf(vr[zn])<0&&Object.prototype.propertyIsEnumerable.call(En,vr[zn])&&(rr[vr[zn]]=En[vr[zn]]);return rr};const{SHOW_CHILD:Rr,SHOW_PARENT:Zr}=We;function ei(En,er,rr){const vr=En.toLowerCase().split(er).reduce(($t,Xt,Lt)=>Lt===0?[Xt]:[].concat((0,Qe.Z)($t),[er,Xt]),[]),zn=[];let Nn=0;return vr.forEach(($t,Xt)=>{const Lt=Nn+$t.length;let nn=En.slice(Nn,Lt);Nn=Lt,Xt%2===1&&(nn=Tt.createElement("span",{className:`${rr}-menu-item-keyword`,key:`separator-${Xt}`},nn)),zn.push(nn)}),zn}const jr=(En,er,rr,vr)=>{const zn=[],Nn=En.toLowerCase();return er.forEach(($t,Xt)=>{Xt!==0&&zn.push(" / ");let Lt=$t[vr.label];const nn=typeof Lt;(nn==="string"||nn==="number")&&(Lt=ei(String(Lt),Nn,rr)),zn.push(Lt)}),zn},it=Tt.forwardRef((En,er)=>{const{prefixCls:rr,size:vr,disabled:zn,className:Nn,rootClassName:$t,multiple:Xt,bordered:Lt=!0,transitionName:nn,choiceTransitionName:pn="",popupClassName:Vt,dropdownClassName:Rt,expandIcon:rn,placement:yn,showSearch:Mn,allowClear:On=!0,notFoundContent:zt,direction:xn,getPopupContainer:Fn,status:$n,showArrow:gn,builtinPlacements:Sn,style:Qt}=En,hn=Tr(En,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),dn=(0,De.Z)(hn,["suffixIcon"]),{getPopupContainer:cn,getPrefixCls:Pn,renderEmpty:Cn,direction:Dn,popupOverflow:In,cascader:tr}=Tt.useContext(Ye.E_),un=xn||Dn,fr=un==="rtl",{status:wr,hasFeedback:Or,isFormItemInput:fn,feedbackIcon:_n}=Tt.useContext(It.aM),Yn=(0,yt.F)(wr,$n),hr=zt||(Cn==null?void 0:Cn("Cascader"))||Tt.createElement(jt.Z,{componentName:"Cascader"}),Qn=Pn(),ur=Pn("select",rr),Cr=Pn("cascader",rr),[Pr,cr]=(0,Ut.Z)(ur),[Mr]=dr(Cr),{compactSize:Tn,compactItemClassnames:qr}=(0,jn.ri)(ur,xn),Ln=fe()(Vt||Rt,`${Cr}-dropdown`,{[`${Cr}-dropdown-rtl`]:un==="rtl"},$t,cr),zr=Tt.useMemo(()=>{if(!Mn)return Mn;let Oi={render:jr};return typeof Mn=="object"&&(Oi=Object.assign(Object.assign({},Oi),Mn)),Oi},[Mn]),li=(0,en.Z)(Oi=>{var Fr;return(Fr=vr!=null?vr:Tn)!==null&&Fr!==void 0?Fr:Oi}),Ar=Tt.useContext(Ht.Z),fi=zn!=null?zn:Ar;let oi=rn;rn||(oi=fr?Tt.createElement(oe.Z,null):Tt.createElement(Ne.Z,null));const Sr=Tt.createElement("span",{className:`${ur}-menu-item-loading-icon`},Tt.createElement(_e.Z,{spin:!0})),yr=Tt.useMemo(()=>Xt?Tt.createElement("span",{className:`${Cr}-checkbox-inner`}):!1,[Xt]),Kr=(0,ln.Z)(En.suffixIcon,gn),{suffixIcon:ai,removeIcon:qn,clearIcon:Nt}=(0,mn.Z)(Object.assign(Object.assign({},En),{hasFeedback:Or,feedbackIcon:_n,showSuffixIcon:Kr,multiple:Xt,prefixCls:ur,componentName:"Cascader"})),ni=Tt.useMemo(()=>yn!==void 0?yn:fr?"bottomRight":"bottomLeft",[yn,fr]),Ci=(0,tn.Z)(Sn,In),Xr=On===!0?{clearIcon:Nt}:On,Ei=Tt.createElement(We,Object.assign({prefixCls:ur,className:fe()(!rr&&Cr,{[`${ur}-lg`]:li==="large",[`${ur}-sm`]:li==="small",[`${ur}-rtl`]:fr,[`${ur}-borderless`]:!Lt,[`${ur}-in-form-item`]:fn},(0,yt.Z)(ur,Yn,Or),qr,tr==null?void 0:tr.className,Nn,$t,cr),disabled:fi,style:Object.assign(Object.assign({},tr==null?void 0:tr.style),Qt)},dn,{builtinPlacements:Ci,direction:un,placement:ni,notFoundContent:hr,allowClear:Xr,showSearch:zr,expandIcon:oi,suffixIcon:ai,removeIcon:qn,loadingIcon:Sr,checkable:yr,dropdownClassName:Ln,dropdownPrefixCls:rr||Cr,choiceTransitionName:(0,Ie.m)(Qn,"",pn),transitionName:(0,Ie.m)(Qn,"slide-up",nn),getPopupContainer:Fn||cn,ref:er}));return Mr(Pr(Ei))}),Qr=(0,Xe.Z)(it);it.SHOW_PARENT=Zr,it.SHOW_CHILD=Rr,it._InternalPanelDoNotUseOrYouWillBeFired=Qr;var $r=it},24905:function(bn,an,Ge){"use strict";Ge.d(an,{default:function(){return je}});var Qe=Ge(92310),Tt=Ge.n(Qe),oe=Ge(5630),_e=Ge(59301),Ne=Ge(36355),ve=Ge(1684),fe=Ge(32441),Pe=_e.createContext(null),ye=Ge(98447),we=Ge(14088),me=Ge(4572),Se=function(Le,ke){var Oe={};for(var Fe in Le)Object.prototype.hasOwnProperty.call(Le,Fe)&&ke.indexOf(Fe)<0&&(Oe[Fe]=Le[Fe]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Fe=Object.getOwnPropertySymbols(Le);Re<Fe.length;Re++)ke.indexOf(Fe[Re])<0&&Object.prototype.propertyIsEnumerable.call(Le,Fe[Re])&&(Oe[Fe[Re]]=Le[Fe[Re]]);return Oe};const de=(Le,ke)=>{var Oe;const{prefixCls:Fe,className:Re,rootClassName:Ze,children:ze,indeterminate:Ke=!1,style:ot,onMouseEnter:ct,onMouseLeave:pt,skipGroup:bt=!1,disabled:qe}=Le,at=Se(Le,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:gt,direction:Ct,checkbox:wt}=_e.useContext(Ne.E_),vt=_e.useContext(Pe),{isFormItemInput:mt}=_e.useContext(fe.aM),xt=_e.useContext(ve.Z),At=(Oe=(vt==null?void 0:vt.disabled)||qe)!==null&&Oe!==void 0?Oe:xt,kt=_e.useRef(at.value);_e.useEffect(()=>{vt==null||vt.registerValue(at.value)},[]),_e.useEffect(()=>{if(!bt)return at.value!==kt.current&&(vt==null||vt.cancelValue(kt.current),vt==null||vt.registerValue(at.value),kt.current=at.value),()=>vt==null?void 0:vt.cancelValue(at.value)},[at.value]);const Wt=gt("checkbox",Fe),[Et,St]=(0,ye.ZP)(Wt),tt=Object.assign({},at);vt&&!bt&&(tt.onChange=function(){at.onChange&&at.onChange.apply(at,arguments),vt.toggleOption&&vt.toggleOption({label:ze,value:at.value})},tt.name=vt.name,tt.checked=vt.value.includes(at.value));const ft=Tt()(`${Wt}-wrapper`,{[`${Wt}-rtl`]:Ct==="rtl",[`${Wt}-wrapper-checked`]:tt.checked,[`${Wt}-wrapper-disabled`]:At,[`${Wt}-wrapper-in-form-item`]:mt},wt==null?void 0:wt.className,Re,Ze,St),$e=Tt()({[`${Wt}-indeterminate`]:Ke},me.A,St),lt=Ke?"mixed":void 0;return Et(_e.createElement(we.Z,{component:"Checkbox",disabled:At},_e.createElement("label",{className:ft,style:Object.assign(Object.assign({},wt==null?void 0:wt.style),ot),onMouseEnter:ct,onMouseLeave:pt},_e.createElement(oe.Z,Object.assign({"aria-checked":lt},tt,{prefixCls:Wt,className:$e,disabled:At,ref:ke})),ze!==void 0&&_e.createElement("span",null,ze))))};var ee=_e.forwardRef(de),ae=Ge(80702),re=Ge(2738),le=function(Le,ke){var Oe={};for(var Fe in Le)Object.prototype.hasOwnProperty.call(Le,Fe)&&ke.indexOf(Fe)<0&&(Oe[Fe]=Le[Fe]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Fe=Object.getOwnPropertySymbols(Le);Re<Fe.length;Re++)ke.indexOf(Fe[Re])<0&&Object.prototype.propertyIsEnumerable.call(Le,Fe[Re])&&(Oe[Fe[Re]]=Le[Fe[Re]]);return Oe};const ue=(Le,ke)=>{const{defaultValue:Oe,children:Fe,options:Re=[],prefixCls:Ze,className:ze,rootClassName:Ke,style:ot,onChange:ct}=Le,pt=le(Le,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:bt,direction:qe}=_e.useContext(Ne.E_),[at,gt]=_e.useState(pt.value||Oe||[]),[Ct,wt]=_e.useState([]);_e.useEffect(()=>{"value"in pt&>(pt.value||[])},[pt.value]);const vt=_e.useMemo(()=>Re.map(Pt=>typeof Pt=="string"||typeof Pt=="number"?{label:Pt,value:Pt}:Pt),[Re]),mt=Pt=>{wt(dt=>dt.filter(et=>et!==Pt))},xt=Pt=>{wt(dt=>[].concat((0,ae.Z)(dt),[Pt]))},At=Pt=>{const dt=at.indexOf(Pt.value),et=(0,ae.Z)(at);dt===-1?et.push(Pt.value):et.splice(dt,1),"value"in pt||gt(et),ct==null||ct(et.filter(Ve=>Ct.includes(Ve)).sort((Ve,He)=>{const nt=vt.findIndex(We=>We.value===Ve),ut=vt.findIndex(We=>We.value===He);return nt-ut}))},kt=bt("checkbox",Ze),Wt=`${kt}-group`,[Et,St]=(0,ye.ZP)(kt),tt=(0,re.Z)(pt,["value","disabled"]),ft=Re.length?vt.map(Pt=>_e.createElement(ee,{prefixCls:kt,key:Pt.value.toString(),disabled:"disabled"in Pt?Pt.disabled:pt.disabled,value:Pt.value,checked:at.includes(Pt.value),onChange:Pt.onChange,className:`${Wt}-item`,style:Pt.style,title:Pt.title},Pt.label)):Fe,$e={toggleOption:At,value:at,disabled:pt.disabled,name:pt.name,registerValue:xt,cancelValue:mt},lt=Tt()(Wt,{[`${Wt}-rtl`]:qe==="rtl"},ze,Ke,St);return Et(_e.createElement("div",Object.assign({className:lt,style:ot},tt,{ref:ke}),_e.createElement(Pe.Provider,{value:$e},ft)))},pe=_e.forwardRef(ue);var Ee=_e.memo(pe);const Ce=ee;Ce.Group=Ee,Ce.__ANT_CHECKBOX=!0;var je=Ce},98447:function(bn,an,Ge){"use strict";Ge.d(an,{C2:function(){return Ne}});var Qe=Ge(17313),Tt=Ge(37613),oe=Ge(83116);const _e=ve=>{const{checkboxCls:fe}=ve,be=`${fe}-wrapper`;return[{[`${fe}-group`]:Object.assign(Object.assign({},(0,Qe.Wf)(ve)),{display:"inline-flex",flexWrap:"wrap",columnGap:ve.marginXS,[`> ${ve.antCls}-row`]:{flex:1}}),[be]:Object.assign(Object.assign({},(0,Qe.Wf)(ve)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${be}`]:{marginInlineStart:0},[`&${be}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[fe]:Object.assign(Object.assign({},(0,Qe.Wf)(ve)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ve.borderRadiusSM,alignSelf:"center",[`${fe}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${fe}-inner`]:Object.assign({},(0,Qe.oN)(ve))},[`${fe}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:ve.checkboxSize,height:ve.checkboxSize,direction:"ltr",backgroundColor:ve.colorBgContainer,border:`${ve.lineWidth}px ${ve.lineType} ${ve.colorBorder}`,borderRadius:ve.borderRadiusSM,borderCollapse:"separate",transition:`all ${ve.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ve.checkboxSize/14*5,height:ve.checkboxSize/14*8,border:`${ve.lineWidthBold}px solid ${ve.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ve.motionDurationFast} ${ve.motionEaseInBack}, opacity ${ve.motionDurationFast}`}},"& + span":{paddingInlineStart:ve.paddingXS,paddingInlineEnd:ve.paddingXS}})},{[`
|
|
|
${be}:not(${be}-disabled),
|
|
|
${fe}:not(${fe}-disabled)
|
|
|
`]:{[`&:hover ${fe}-inner`]:{borderColor:ve.colorPrimary}},[`${be}:not(${be}-disabled)`]:{[`&:hover ${fe}-checked:not(${fe}-disabled) ${fe}-inner`]:{backgroundColor:ve.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${fe}-checked:not(${fe}-disabled):after`]:{borderColor:ve.colorPrimaryHover}}},{[`${fe}-checked`]:{[`${fe}-inner`]:{backgroundColor:ve.colorPrimary,borderColor:ve.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ve.motionDurationMid} ${ve.motionEaseOutBack} ${ve.motionDurationFast}`}}},[`
|
|
|
${be}-checked:not(${be}-disabled),
|
|
|
${fe}-checked:not(${fe}-disabled)
|
|
|
`]:{[`&:hover ${fe}-inner`]:{backgroundColor:ve.colorPrimaryHover,borderColor:"transparent"}}},{[fe]:{"&-indeterminate":{[`${fe}-inner`]:{backgroundColor:ve.colorBgContainer,borderColor:ve.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:ve.fontSizeLG/2,height:ve.fontSizeLG/2,backgroundColor:ve.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${be}-disabled`]:{cursor:"not-allowed"},[`${fe}-disabled`]:{[`&, ${fe}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${fe}-inner`]:{background:ve.colorBgContainerDisabled,borderColor:ve.colorBorder,"&:after":{borderColor:ve.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ve.colorTextDisabled},[`&${fe}-indeterminate ${fe}-inner::after`]:{background:ve.colorTextDisabled}}}]};function Ne(ve,fe){const be=(0,Tt.TS)(fe,{checkboxCls:`.${ve}`,checkboxSize:fe.controlInteractiveSize});return[_e(be)]}an.ZP=(0,oe.Z)("Checkbox",(ve,fe)=>{let{prefixCls:be}=fe;return[Ne(be,ve)]})},36381:function(bn,an,Ge){"use strict";Ge.d(an,{default:function(){return tt}});var Qe=Ge(38819),Tt=Ge(92310),oe=Ge.n(Tt),_e=Ge(72308),Ne=Ge(80702),ve=Ge(52487),fe=Ge(62853),be=Ge(18929),Pe=Ge(48736),ye=Ge(59301),we=Ge(74416),me=Ge(11592),Se=Ge(49618),de=Ge(77900),z=Ge(10228),ee=ye.forwardRef(function(ft,$e){var lt=ft.prefixCls,Pt=ft.forceRender,dt=ft.className,et=ft.style,Ve=ft.children,He=ft.isActive,nt=ft.role,ut=ye.useState(He||Pt),We=(0,ve.Z)(ut,2),De=We[0],Ie=We[1];return ye.useEffect(function(){(Pt||He)&&Ie(!0)},[Pt,He]),De?ye.createElement("div",{ref:$e,className:oe()("".concat(lt,"-content"),(0,Se.Z)((0,Se.Z)({},"".concat(lt,"-content-active"),He),"".concat(lt,"-content-inactive"),!He),dt),style:et,role:nt},ye.createElement("div",{className:"".concat(lt,"-content-box")},Ve)):null});ee.displayName="PanelContent";var ae=ee,re=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],le=ye.forwardRef(function(ft,$e){var lt=ft.showArrow,Pt=lt===void 0?!0:lt,dt=ft.headerClass,et=ft.isActive,Ve=ft.onItemClick,He=ft.forceRender,nt=ft.className,ut=ft.prefixCls,We=ft.collapsible,De=ft.accordion,Ie=ft.panelKey,Xe=ft.extra,yt=ft.header,Ye=ft.expandIcon,jt=ft.openMotion,Ht=ft.destroyInactivePanel,en=ft.children,It=(0,we.Z)(ft,re),Ut=We==="disabled",tn=We==="header",ln=We==="icon",mn=Xe!=null&&typeof Xe!="boolean",jn=function(){Ve==null||Ve(Ie)},Vn=function(Tr){(Tr.key==="Enter"||Tr.keyCode===z.Z.ENTER||Tr.which===z.Z.ENTER)&&jn()},Kn=typeof Ye=="function"?Ye(ft):ye.createElement("i",{className:"arrow"});Kn&&(Kn=ye.createElement("div",{className:"".concat(ut,"-expand-icon"),onClick:["header","icon"].includes(We)?jn:void 0},Kn));var ar=oe()((0,Se.Z)((0,Se.Z)((0,Se.Z)({},"".concat(ut,"-item"),!0),"".concat(ut,"-item-active"),et),"".concat(ut,"-item-disabled"),Ut),nt),xr=oe()(dt,(0,Se.Z)((0,Se.Z)((0,Se.Z)({},"".concat(ut,"-header"),!0),"".concat(ut,"-header-collapsible-only"),tn),"".concat(ut,"-icon-collapsible-only"),ln)),gr={className:xr,"aria-expanded":et,"aria-disabled":Ut,onKeyDown:Vn};return!tn&&!ln&&(gr.onClick=jn,gr.role=De?"tab":"button",gr.tabIndex=Ut?-1:0),ye.createElement("div",(0,_e.Z)({},It,{ref:$e,className:ar}),ye.createElement("div",gr,Pt&&Kn,ye.createElement("span",{className:"".concat(ut,"-header-text"),onClick:We==="header"?jn:void 0},yt),mn&&ye.createElement("div",{className:"".concat(ut,"-extra")},Xe)),ye.createElement(de.default,(0,_e.Z)({visible:et,leavedClassName:"".concat(ut,"-content-hidden")},jt,{forceRender:He,removeOnLeave:Ht}),function(dr,Tr){var Rr=dr.className,Zr=dr.style;return ye.createElement(ae,{ref:Tr,prefixCls:ut,className:Rr,style:Zr,isActive:et,forceRender:He,role:De?"tabpanel":void 0},en)}))}),ue=le,pe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Ee=function($e,lt){var Pt=lt.prefixCls,dt=lt.accordion,et=lt.collapsible,Ve=lt.destroyInactivePanel,He=lt.onItemClick,nt=lt.activeKey,ut=lt.openMotion,We=lt.expandIcon;return $e.map(function(De,Ie){var Xe=De.children,yt=De.label,Ye=De.key,jt=De.collapsible,Ht=De.onItemClick,en=De.destroyInactivePanel,It=(0,we.Z)(De,pe),Ut=String(Ye!=null?Ye:Ie),tn=jt!=null?jt:et,ln=en!=null?en:Ve,mn=function(Kn){tn!=="disabled"&&(He(Kn),Ht==null||Ht(Kn))},jn=!1;return dt?jn=nt[0]===Ut:jn=nt.indexOf(Ut)>-1,ye.createElement(ue,(0,_e.Z)({},It,{prefixCls:Pt,key:Ut,panelKey:Ut,isActive:jn,accordion:dt,openMotion:ut,expandIcon:We,header:yt,collapsible:tn,onItemClick:mn,destroyInactivePanel:ln}),Xe)})},Ce=function($e,lt,Pt){if(!$e)return null;var dt=Pt.prefixCls,et=Pt.accordion,Ve=Pt.collapsible,He=Pt.destroyInactivePanel,nt=Pt.onItemClick,ut=Pt.activeKey,We=Pt.openMotion,De=Pt.expandIcon,Ie=$e.key||String(lt),Xe=$e.props,yt=Xe.header,Ye=Xe.headerClass,jt=Xe.destroyInactivePanel,Ht=Xe.collapsible,en=Xe.onItemClick,It=!1;et?It=ut[0]===Ie:It=ut.indexOf(Ie)>-1;var Ut=Ht!=null?Ht:Ve,tn=function(jn){Ut!=="disabled"&&(nt(jn),en==null||en(jn))},ln={key:Ie,panelKey:Ie,header:yt,headerClass:Ye,isActive:It,prefixCls:dt,destroyInactivePanel:jt!=null?jt:He,openMotion:We,accordion:et,children:$e.props.children,onItemClick:tn,expandIcon:De,collapsible:Ut};return typeof $e.type=="string"?$e:(Object.keys(ln).forEach(function(mn){typeof ln[mn]=="undefined"&&delete ln[mn]}),ye.cloneElement($e,ln))};function je(ft,$e,lt){return Array.isArray(ft)?Ee(ft,lt):(0,me.Z)($e).map(function(Pt,dt){return Ce(Pt,dt,lt)})}var Le=je,ke=Ge(26112);function Oe(ft){var $e=ft;if(!Array.isArray($e)){var lt=(0,fe.Z)($e);$e=lt==="number"||lt==="string"?[$e]:[]}return $e.map(function(Pt){return String(Pt)})}var Fe=ye.forwardRef(function(ft,$e){var lt=ft.prefixCls,Pt=lt===void 0?"rc-collapse":lt,dt=ft.destroyInactivePanel,et=dt===void 0?!1:dt,Ve=ft.style,He=ft.accordion,nt=ft.className,ut=ft.children,We=ft.collapsible,De=ft.openMotion,Ie=ft.expandIcon,Xe=ft.activeKey,yt=ft.defaultActiveKey,Ye=ft.onChange,jt=ft.items,Ht=oe()(Pt,nt),en=(0,be.Z)([],{value:Xe,onChange:function(Vn){return Ye==null?void 0:Ye(Vn)},defaultValue:yt,postState:Oe}),It=(0,ve.Z)(en,2),Ut=It[0],tn=It[1],ln=function(Vn){return tn(function(){if(He)return Ut[0]===Vn?[]:[Vn];var Kn=Ut.indexOf(Vn),ar=Kn>-1;return ar?Ut.filter(function(xr){return xr!==Vn}):[].concat((0,Ne.Z)(Ut),[Vn])})};(0,Pe.ZP)(!ut,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var mn=Le(jt,ut,{prefixCls:Pt,accordion:He,openMotion:De,expandIcon:Ie,collapsible:We,destroyInactivePanel:et,onItemClick:ln,activeKey:Ut});return ye.createElement("div",(0,_e.Z)({ref:$e,className:Ht,style:Ve,role:He?"tablist":void 0},(0,ke.Z)(ft,{aria:!0,data:!0})),mn)}),Re=Object.assign(Fe,{Panel:ue}),Ze=Re,ze=Re.Panel,Ke=Ge(2738),ot=Ge(62892),ct=Ge(92343),pt=Ge(36355),bt=Ge(19716),at=ye.forwardRef((ft,$e)=>{const{getPrefixCls:lt}=ye.useContext(pt.E_),{prefixCls:Pt,className:dt,showArrow:et=!0}=ft,Ve=lt("collapse",Pt),He=oe()({[`${Ve}-no-arrow`]:!et},dt);return ye.createElement(Ze.Panel,Object.assign({ref:$e},ft,{prefixCls:Ve,className:He}))}),gt=Ge(17313),Ct=Ge(8378),wt=Ge(83116),vt=Ge(37613);const mt=ft=>{const{componentCls:$e,contentBg:lt,padding:Pt,headerBg:dt,headerPadding:et,collapseHeaderPaddingSM:Ve,collapseHeaderPaddingLG:He,collapsePanelBorderRadius:nt,lineWidth:ut,lineType:We,colorBorder:De,colorText:Ie,colorTextHeading:Xe,colorTextDisabled:yt,fontSize:Ye,fontSizeLG:jt,lineHeight:Ht,marginSM:en,paddingSM:It,paddingLG:Ut,paddingXS:tn,motionDurationSlow:ln,fontSizeIcon:mn,contentPadding:jn}=ft,Vn=`${ut}px ${We} ${De}`;return{[$e]:Object.assign(Object.assign({},(0,gt.Wf)(ft)),{backgroundColor:dt,border:Vn,borderBottom:0,borderRadius:`${nt}px`,"&-rtl":{direction:"rtl"},[`& > ${$e}-item`]:{borderBottom:Vn,"&:last-child":{[`
|
|
|
&,
|
|
|
& > ${$e}-header`]:{borderRadius:`0 0 ${nt}px ${nt}px`}},[`> ${$e}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:et,color:Xe,lineHeight:Ht,cursor:"pointer",transition:`all ${ln}, visibility 0s`,[`> ${$e}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${$e}-expand-icon`]:{height:Ye*Ht,display:"flex",alignItems:"center",paddingInlineEnd:en},[`${$e}-arrow`]:Object.assign(Object.assign({},(0,gt.Ro)()),{fontSize:mn,svg:{transition:`transform ${ln}`}}),[`${$e}-header-text`]:{marginInlineEnd:"auto"}},[`${$e}-header-collapsible-only`]:{cursor:"default",[`${$e}-header-text`]:{flex:"none",cursor:"pointer"}},[`${$e}-icon-collapsible-only`]:{cursor:"default",[`${$e}-expand-icon`]:{cursor:"pointer"}}},[`${$e}-content`]:{color:Ie,backgroundColor:lt,borderTop:Vn,[`& > ${$e}-content-box`]:{padding:jn},"&-hidden":{display:"none"}},"&-small":{[`> ${$e}-item`]:{[`> ${$e}-header`]:{padding:Ve,paddingInlineStart:tn,[`> ${$e}-expand-icon`]:{marginInlineStart:It-tn}},[`> ${$e}-content > ${$e}-content-box`]:{padding:It}}},"&-large":{[`> ${$e}-item`]:{fontSize:jt,[`> ${$e}-header`]:{padding:He,paddingInlineStart:Pt,[`> ${$e}-expand-icon`]:{height:jt*Ht,marginInlineStart:Ut-Pt}},[`> ${$e}-content > ${$e}-content-box`]:{padding:Ut}}},[`${$e}-item:last-child`]:{[`> ${$e}-content`]:{borderRadius:`0 0 ${nt}px ${nt}px`}},[`& ${$e}-item-disabled > ${$e}-header`]:{"\n &,\n & > .arrow\n ":{color:yt,cursor:"not-allowed"}},[`&${$e}-icon-position-end`]:{[`& > ${$e}-item`]:{[`> ${$e}-header`]:{[`${$e}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:en}}}}})}},xt=ft=>{const{componentCls:$e}=ft,lt=`> ${$e}-item > ${$e}-header ${$e}-arrow svg`;return{[`${$e}-rtl`]:{[lt]:{transform:"rotate(180deg)"}}}},At=ft=>{const{componentCls:$e,headerBg:lt,paddingXXS:Pt,colorBorder:dt}=ft;return{[`${$e}-borderless`]:{backgroundColor:lt,border:0,[`> ${$e}-item`]:{borderBottom:`1px solid ${dt}`},[`
|
|
|
> ${$e}-item:last-child,
|
|
|
> ${$e}-item:last-child ${$e}-header
|
|
|
`]:{borderRadius:0},[`> ${$e}-item:last-child`]:{borderBottom:0},[`> ${$e}-item > ${$e}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${$e}-item > ${$e}-content > ${$e}-content-box`]:{paddingTop:Pt}}}},kt=ft=>{const{componentCls:$e,paddingSM:lt}=ft;return{[`${$e}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${$e}-item`]:{borderBottom:0,[`> ${$e}-content`]:{backgroundColor:"transparent",border:0,[`> ${$e}-content-box`]:{paddingBlock:lt}}}}}};var Wt=(0,wt.Z)("Collapse",ft=>{const $e=(0,vt.TS)(ft,{collapseHeaderPaddingSM:`${ft.paddingXS}px ${ft.paddingSM}px`,collapseHeaderPaddingLG:`${ft.padding}px ${ft.paddingLG}px`,collapsePanelBorderRadius:ft.borderRadiusLG});return[mt($e),At($e),kt($e),xt($e),(0,Ct.Z)($e)]},ft=>({headerPadding:`${ft.paddingSM}px ${ft.padding}px`,headerBg:ft.colorFillAlter,contentPadding:`${ft.padding}px 16px`,contentBg:ft.colorBgContainer})),St=Object.assign(ye.forwardRef((ft,$e)=>{const{getPrefixCls:lt,direction:Pt,collapse:dt}=ye.useContext(pt.E_),{prefixCls:et,className:Ve,rootClassName:He,style:nt,bordered:ut=!0,ghost:We,size:De,expandIconPosition:Ie="start",children:Xe,expandIcon:yt}=ft,Ye=(0,bt.Z)(Vn=>{var Kn;return(Kn=De!=null?De:Vn)!==null&&Kn!==void 0?Kn:"middle"}),jt=lt("collapse",et),Ht=lt(),[en,It]=Wt(jt),Ut=ye.useMemo(()=>Ie==="left"?"start":Ie==="right"?"end":Ie,[Ie]),tn=function(){let Vn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Kn=yt?yt(Vn):ye.createElement(Qe.Z,{rotate:Vn.isActive?90:void 0});return(0,ct.Tm)(Kn,()=>({className:oe()(Kn.props.className,`${jt}-arrow`)}))},ln=oe()(`${jt}-icon-position-${Ut}`,{[`${jt}-borderless`]:!ut,[`${jt}-rtl`]:Pt==="rtl",[`${jt}-ghost`]:!!We,[`${jt}-${Ye}`]:Ye!=="middle"},dt==null?void 0:dt.className,Ve,He,It),mn=Object.assign(Object.assign({},(0,ot.Z)(Ht)),{motionAppear:!1,leavedClassName:`${jt}-content-hidden`}),jn=ye.useMemo(()=>Xe?(0,me.Z)(Xe).map((Vn,Kn)=>{var ar,xr;if(!((ar=Vn.props)===null||ar===void 0)&&ar.disabled){const gr=(xr=Vn.key)!==null&&xr!==void 0?xr:String(Kn),{disabled:dr,collapsible:Tr}=Vn.props,Rr=Object.assign(Object.assign({},(0,Ke.Z)(Vn.props,["disabled"])),{key:gr,collapsible:Tr!=null?Tr:dr?"disabled":void 0});return(0,ct.Tm)(Vn,Rr)}return Vn}):null,[Xe]);return en(ye.createElement(Ze,Object.assign({ref:$e,openMotion:mn},(0,Ke.Z)(ft,["rootClassName"]),{expandIcon:tn,prefixCls:jt,className:ln,style:Object.assign(Object.assign({},dt==null?void 0:dt.style),nt)}),jn))}),{Panel:at}),tt=St},93891:function(bn,an,Ge){"use strict";var Qe=Ge(59301),Tt=Ge(36355),oe=Ge(64165);const _e=Ne=>{const{componentName:ve}=Ne,{getPrefixCls:fe}=(0,Qe.useContext)(Tt.E_),be=fe("empty");switch(ve){case"Table":case"List":return Qe.createElement(oe.Z,{image:oe.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Qe.createElement(oe.Z,{image:oe.Z.PRESENTED_IMAGE_SIMPLE,className:`${be}-small`});default:return Qe.createElement(oe.Z,null)}};an.Z=_e},43428:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Et}});var Qe=Ge(92310),Tt=Ge.n(Qe),oe=Ge(77321),_e=Ge(52487),Ne=Ge(43403),ve=Ge(34280),fe=Ge(59301),be=fe.createContext(null),Pe=fe.createContext({}),ye=be,we=Ge(49618),me=Ge(72308),Se=Ge(77900),de=Ge(10228),z=Ge(26112),ee=Ge(70425),ae=function(tt){var ft=tt.prefixCls,$e=tt.className,lt=tt.style,Pt=tt.children,dt=tt.containerRef,et=tt.id,Ve=tt.onMouseEnter,He=tt.onMouseOver,nt=tt.onMouseLeave,ut=tt.onClick,We=tt.onKeyDown,De=tt.onKeyUp,Ie={onMouseEnter:Ve,onMouseOver:He,onMouseLeave:nt,onClick:ut,onKeyDown:We,onKeyUp:De},Xe=fe.useContext(Pe),yt=Xe.panel,Ye=(0,ee.useComposeRef)(yt,dt);return fe.createElement(fe.Fragment,null,fe.createElement("div",(0,me.Z)({id:et,className:Tt()("".concat(ft,"-content"),$e),style:(0,oe.Z)({},lt),"aria-modal":"true",role:"dialog",ref:Ye},Ie),Pt))},re=ae,le=Ge(48736);function ue(St){return typeof St=="string"&&String(Number(St))===St?((0,le.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(St)):St}function pe(St){warning(!("wrapperClassName"in St),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!St.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ee={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Ce(St,tt){var ft,$e,lt,Pt,dt=St.prefixCls,et=St.open,Ve=St.placement,He=St.inline,nt=St.push,ut=St.forceRender,We=St.autoFocus,De=St.keyboard,Ie=St.rootClassName,Xe=St.rootStyle,yt=St.zIndex,Ye=St.className,jt=St.id,Ht=St.style,en=St.motion,It=St.width,Ut=St.height,tn=St.children,ln=St.contentWrapperStyle,mn=St.mask,jn=St.maskClosable,Vn=St.maskMotion,Kn=St.maskClassName,ar=St.maskStyle,xr=St.afterOpenChange,gr=St.onClose,dr=St.onMouseEnter,Tr=St.onMouseOver,Rr=St.onMouseLeave,Zr=St.onClick,ei=St.onKeyDown,jr=St.onKeyUp,it=fe.useRef(),Qr=fe.useRef(),$r=fe.useRef();fe.useImperativeHandle(tt,function(){return it.current});var En=function(On){var zt=On.keyCode,xn=On.shiftKey;switch(zt){case de.Z.TAB:{if(zt===de.Z.TAB){if(!xn&&document.activeElement===$r.current){var Fn;(Fn=Qr.current)===null||Fn===void 0||Fn.focus({preventScroll:!0})}else if(xn&&document.activeElement===Qr.current){var $n;($n=$r.current)===null||$n===void 0||$n.focus({preventScroll:!0})}}break}case de.Z.ESC:{gr&&De&&(On.stopPropagation(),gr(On));break}}};fe.useEffect(function(){if(et&&We){var Mn;(Mn=it.current)===null||Mn===void 0||Mn.focus({preventScroll:!0})}},[et]);var er=fe.useState(!1),rr=(0,_e.Z)(er,2),vr=rr[0],zn=rr[1],Nn=fe.useContext(ye),$t;nt===!1?$t={distance:0}:nt===!0?$t={}:$t=nt||{};var Xt=(ft=($e=(lt=$t)===null||lt===void 0?void 0:lt.distance)!==null&&$e!==void 0?$e:Nn==null?void 0:Nn.pushDistance)!==null&&ft!==void 0?ft:180,Lt=fe.useMemo(function(){return{pushDistance:Xt,push:function(){zn(!0)},pull:function(){zn(!1)}}},[Xt]);fe.useEffect(function(){if(et){var Mn;Nn==null||(Mn=Nn.push)===null||Mn===void 0||Mn.call(Nn)}else{var On;Nn==null||(On=Nn.pull)===null||On===void 0||On.call(Nn)}},[et]),fe.useEffect(function(){return function(){var Mn;Nn==null||(Mn=Nn.pull)===null||Mn===void 0||Mn.call(Nn)}},[]);var nn=mn&&fe.createElement(Se.default,(0,me.Z)({key:"mask"},Vn,{visible:et}),function(Mn,On){var zt=Mn.className,xn=Mn.style;return fe.createElement("div",{className:Tt()("".concat(dt,"-mask"),zt,Kn),style:(0,oe.Z)((0,oe.Z)({},xn),ar),onClick:jn&&et?gr:void 0,ref:On})}),pn=typeof en=="function"?en(Ve):en,Vt={};if(vr&&Xt)switch(Ve){case"top":Vt.transform="translateY(".concat(Xt,"px)");break;case"bottom":Vt.transform="translateY(".concat(-Xt,"px)");break;case"left":Vt.transform="translateX(".concat(Xt,"px)");break;default:Vt.transform="translateX(".concat(-Xt,"px)");break}Ve==="left"||Ve==="right"?Vt.width=ue(It):Vt.height=ue(Ut);var Rt={onMouseEnter:dr,onMouseOver:Tr,onMouseLeave:Rr,onClick:Zr,onKeyDown:ei,onKeyUp:jr},rn=fe.createElement(Se.default,(0,me.Z)({key:"panel"},pn,{visible:et,forceRender:ut,onVisibleChanged:function(On){xr==null||xr(On)},removeOnLeave:!1,leavedClassName:"".concat(dt,"-content-wrapper-hidden")}),function(Mn,On){var zt=Mn.className,xn=Mn.style;return fe.createElement("div",(0,me.Z)({className:Tt()("".concat(dt,"-content-wrapper"),zt),style:(0,oe.Z)((0,oe.Z)((0,oe.Z)({},Vt),xn),ln)},(0,z.Z)(St,{data:!0})),fe.createElement(re,(0,me.Z)({id:jt,containerRef:On,prefixCls:dt,className:Ye,style:Ht},Rt),tn))}),yn=(0,oe.Z)({},Xe);return yt&&(yn.zIndex=yt),fe.createElement(ye.Provider,{value:Lt},fe.createElement("div",{className:Tt()(dt,"".concat(dt,"-").concat(Ve),Ie,(Pt={},(0,we.Z)(Pt,"".concat(dt,"-open"),et),(0,we.Z)(Pt,"".concat(dt,"-inline"),He),Pt)),style:yn,tabIndex:-1,ref:it,onKeyDown:En},nn,fe.createElement("div",{tabIndex:0,ref:Qr,style:Ee,"aria-hidden":"true","data-sentinel":"start"}),rn,fe.createElement("div",{tabIndex:0,ref:$r,style:Ee,"aria-hidden":"true","data-sentinel":"end"})))}var je=fe.forwardRef(Ce),Le=je,ke=function(tt){var ft=tt.open,$e=ft===void 0?!1:ft,lt=tt.prefixCls,Pt=lt===void 0?"rc-drawer":lt,dt=tt.placement,et=dt===void 0?"right":dt,Ve=tt.autoFocus,He=Ve===void 0?!0:Ve,nt=tt.keyboard,ut=nt===void 0?!0:nt,We=tt.width,De=We===void 0?378:We,Ie=tt.mask,Xe=Ie===void 0?!0:Ie,yt=tt.maskClosable,Ye=yt===void 0?!0:yt,jt=tt.getContainer,Ht=tt.forceRender,en=tt.afterOpenChange,It=tt.destroyOnClose,Ut=tt.onMouseEnter,tn=tt.onMouseOver,ln=tt.onMouseLeave,mn=tt.onClick,jn=tt.onKeyDown,Vn=tt.onKeyUp,Kn=tt.panelRef,ar=fe.useState(!1),xr=(0,_e.Z)(ar,2),gr=xr[0],dr=xr[1],Tr=fe.useState(!1),Rr=(0,_e.Z)(Tr,2),Zr=Rr[0],ei=Rr[1];(0,ve.Z)(function(){ei(!0)},[]);var jr=Zr?$e:!1,it=fe.useRef(),Qr=fe.useRef();(0,ve.Z)(function(){jr&&(Qr.current=document.activeElement)},[jr]);var $r=function(zn){var Nn;if(dr(zn),en==null||en(zn),!zn&&Qr.current&&!((Nn=it.current)!==null&&Nn!==void 0&&Nn.contains(Qr.current))){var $t;($t=Qr.current)===null||$t===void 0||$t.focus({preventScroll:!0})}},En=fe.useMemo(function(){return{panel:Kn}},[Kn]);if(!Ht&&!gr&&!jr&&It)return null;var er={onMouseEnter:Ut,onMouseOver:tn,onMouseLeave:ln,onClick:mn,onKeyDown:jn,onKeyUp:Vn},rr=(0,oe.Z)((0,oe.Z)({},tt),{},{open:jr,prefixCls:Pt,placement:et,autoFocus:He,keyboard:ut,width:De,mask:Xe,maskClosable:Ye,inline:jt===!1,afterOpenChange:$r,ref:it},er);return fe.createElement(Pe.Provider,{value:En},fe.createElement(Ne.Z,{open:jr||Ht||gr,autoDestroy:!1,getContainer:jt,autoLock:Xe&&(jr||gr)},fe.createElement(Le,rr)))},Oe=ke,Fe=Oe,Re=Ge(62892),Ze=Ge(36355),ze=Ge(32441),Ke=Ge(47729),ct=St=>{const{prefixCls:tt,title:ft,footer:$e,extra:lt,closeIcon:Pt,closable:dt,onClose:et,headerStyle:Ve,drawerStyle:He,bodyStyle:nt,footerStyle:ut,children:We}=St,De=fe.useCallback(jt=>fe.createElement("button",{type:"button",onClick:et,"aria-label":"Close",className:`${tt}-close`},jt),[et]),[Ie,Xe]=(0,Ke.Z)(dt,Pt,De,void 0,!0),yt=fe.useMemo(()=>!ft&&!Ie?null:fe.createElement("div",{style:Ve,className:Tt()(`${tt}-header`,{[`${tt}-header-close-only`]:Ie&&!ft&&!lt})},fe.createElement("div",{className:`${tt}-header-title`},Xe,ft&&fe.createElement("div",{className:`${tt}-title`},ft)),lt&&fe.createElement("div",{className:`${tt}-extra`},lt)),[Ie,Xe,lt,Ve,tt,ft]),Ye=fe.useMemo(()=>{if(!$e)return null;const jt=`${tt}-footer`;return fe.createElement("div",{className:jt,style:ut},$e)},[$e,ut,tt]);return fe.createElement("div",{className:`${tt}-wrapper-body`,style:He},yt,fe.createElement("div",{className:`${tt}-body`,style:nt},We),Ye)},pt=Ge(33234),bt=Ge(83116),qe=Ge(37613),gt=St=>{const{componentCls:tt,motionDurationSlow:ft}=St,$e={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${ft}`}}};return{[tt]:{[`${tt}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${ft}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${tt}-panel-motion`]:{"&-left":[$e,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[$e,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[$e,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[$e,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Ct=St=>{const{componentCls:tt,zIndexPopup:ft,colorBgMask:$e,colorBgElevated:lt,motionDurationSlow:Pt,motionDurationMid:dt,padding:et,paddingLG:Ve,fontSizeLG:He,lineHeightLG:nt,lineWidth:ut,lineType:We,colorSplit:De,marginSM:Ie,colorIcon:Xe,colorIconHover:yt,colorText:Ye,fontWeightStrong:jt,footerPaddingBlock:Ht,footerPaddingInline:en}=St,It=`${tt}-content-wrapper`;return{[tt]:{position:"fixed",inset:0,zIndex:ft,pointerEvents:"none","&-pure":{position:"relative",background:lt,[`&${tt}-left`]:{boxShadow:St.boxShadowDrawerLeft},[`&${tt}-right`]:{boxShadow:St.boxShadowDrawerRight},[`&${tt}-top`]:{boxShadow:St.boxShadowDrawerUp},[`&${tt}-bottom`]:{boxShadow:St.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${tt}-mask`]:{position:"absolute",inset:0,zIndex:ft,background:$e,pointerEvents:"auto"},[It]:{position:"absolute",zIndex:ft,maxWidth:"100vw",transition:`all ${Pt}`,"&-hidden":{display:"none"}},[`&-left > ${It}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:St.boxShadowDrawerLeft},[`&-right > ${It}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:St.boxShadowDrawerRight},[`&-top > ${It}`]:{top:0,insetInline:0,boxShadow:St.boxShadowDrawerUp},[`&-bottom > ${It}`]:{bottom:0,insetInline:0,boxShadow:St.boxShadowDrawerDown},[`${tt}-content`]:{width:"100%",height:"100%",overflow:"auto",background:lt,pointerEvents:"auto"},[`${tt}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${tt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${et}px ${Ve}px`,fontSize:He,lineHeight:nt,borderBottom:`${ut}px ${We} ${De}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${tt}-extra`]:{flex:"none"},[`${tt}-close`]:{display:"inline-block",marginInlineEnd:Ie,color:Xe,fontWeight:jt,fontSize:He,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${dt}`,textRendering:"auto","&:focus, &:hover":{color:yt,textDecoration:"none"}},[`${tt}-title`]:{flex:1,margin:0,color:Ye,fontWeight:St.fontWeightStrong,fontSize:He,lineHeight:nt},[`${tt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Ve,overflow:"auto"},[`${tt}-footer`]:{flexShrink:0,padding:`${Ht}px ${en}px`,borderTop:`${ut}px ${We} ${De}`},"&-rtl":{direction:"rtl"}}}};var wt=(0,bt.Z)("Drawer",St=>{const tt=(0,qe.TS)(St,{});return[Ct(tt),gt(tt)]},St=>({zIndexPopup:St.zIndexPopupBase,footerPaddingBlock:St.paddingXS,footerPaddingInline:St.padding})),vt=Ge(11575),mt=function(St,tt){var ft={};for(var $e in St)Object.prototype.hasOwnProperty.call(St,$e)&&tt.indexOf($e)<0&&(ft[$e]=St[$e]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,$e=Object.getOwnPropertySymbols(St);lt<$e.length;lt++)tt.indexOf($e[lt])<0&&Object.prototype.propertyIsEnumerable.call(St,$e[lt])&&(ft[$e[lt]]=St[$e[lt]]);return ft};const xt=null,At={distance:180},kt=St=>{var tt;const{rootClassName:ft,width:$e,height:lt,size:Pt="default",mask:dt=!0,push:et=At,open:Ve,afterOpenChange:He,onClose:nt,prefixCls:ut,getContainer:We,style:De,className:Ie,visible:Xe,afterVisibleChange:yt}=St,Ye=mt(St,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:jt,getPrefixCls:Ht,direction:en,drawer:It}=fe.useContext(Ze.E_),Ut=Ht("drawer",ut),[tn,ln]=wt(Ut),mn=We===void 0&&jt?()=>jt(document.body):We,jn=Tt()({"no-mask":!dt,[`${Ut}-rtl`]:en==="rtl"},ft,ln),Vn=fe.useMemo(()=>$e!=null?$e:Pt==="large"?736:378,[$e,Pt]),Kn=fe.useMemo(()=>lt!=null?lt:Pt==="large"?736:378,[lt,Pt]),ar={motionName:(0,Re.m)(Ut,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},xr=dr=>({motionName:(0,Re.m)(Ut,`panel-motion-${dr}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),gr=(0,vt.H)();return tn(fe.createElement(pt.BR,null,fe.createElement(ze.Ux,{status:!0,override:!0},fe.createElement(Fe,Object.assign({prefixCls:Ut,onClose:nt,maskMotion:ar,motion:xr},Ye,{open:Ve!=null?Ve:Xe,mask:dt,push:et,width:Vn,height:Kn,style:Object.assign(Object.assign({},It==null?void 0:It.style),De),className:Tt()(It==null?void 0:It.className,Ie),rootClassName:jn,getContainer:mn,afterOpenChange:He!=null?He:yt,panelRef:gr}),fe.createElement(ct,Object.assign({prefixCls:Ut},Ye,{onClose:nt}))))))},Wt=St=>{const{prefixCls:tt,style:ft,className:$e,placement:lt="right"}=St,Pt=mt(St,["prefixCls","style","className","placement"]),{getPrefixCls:dt}=fe.useContext(Ze.E_),et=dt("drawer",tt),[Ve,He]=wt(et),nt=Tt()(et,`${et}-pure`,`${et}-${lt}`,He,$e);return Ve(fe.createElement("div",{className:nt,style:ft},fe.createElement(ct,Object.assign({prefixCls:et},Pt))))};kt._InternalPanelDoNotUseOrYouWillBeFired=Wt;var Et=kt},91857:function(bn,an,Ge){"use strict";var Qe=Ge(59301),Tt=Ge(38819),oe=Ge(92310),_e=Ge.n(oe),Ne=Ge(31561),ve=Ge(70425),fe=Ge(18929),be=Ge(2738),Pe=Ge(79676),ye=Ge(53487),we=Ge(92343),me=Ge(36355),Se=Ge(20834),de=Ge(40875),z=Ge(88088),ee=Ge(47211);const ae=null,re=Ee=>{const{menu:Ce,arrow:je,prefixCls:Le,children:ke,trigger:Oe,disabled:Fe,dropdownRender:Re,getPopupContainer:Ze,overlayClassName:ze,rootClassName:Ke,open:ot,onOpenChange:ct,visible:pt,onVisibleChange:bt,mouseEnterDelay:qe=.15,mouseLeaveDelay:at=.1,autoAdjustOverflow:gt=!0,placement:Ct="",overlay:wt,transitionName:vt}=Ee,{getPopupContainer:mt,getPrefixCls:xt,direction:At}=Qe.useContext(me.E_),kt=Qe.useMemo(()=>{const Ie=xt();return vt!==void 0?vt:Ct.includes("top")?`${Ie}-slide-down`:`${Ie}-slide-up`},[xt,Ct,vt]),Wt=Qe.useMemo(()=>Ct?Ct.includes("Center")?Ct.slice(0,Ct.indexOf("Center")):Ct:At==="rtl"?"bottomRight":"bottomLeft",[Ct,At]),Et=xt("dropdown",Le),[St,tt]=(0,ee.Z)(Et),[,ft]=(0,z.Z)(),$e=Qe.Children.only(ke),lt=(0,we.Tm)($e,{className:_e()(`${Et}-trigger`,{[`${Et}-rtl`]:At==="rtl"},$e.props.className),disabled:Fe}),Pt=Fe?[]:Oe;let dt;Pt&&Pt.includes("contextMenu")&&(dt=!0);const[et,Ve]=(0,fe.Z)(!1,{value:ot!=null?ot:pt}),He=(0,ve.useEvent)(Ie=>{ct==null||ct(Ie),bt==null||bt(Ie),Ve(Ie)}),nt=_e()(ze,Ke,tt,{[`${Et}-rtl`]:At==="rtl"}),ut=(0,Pe.Z)({arrowPointAtCenter:typeof je=="object"&&je.pointAtCenter,autoAdjustOverflow:gt,offset:ft.marginXXS,arrowWidth:je?ft.sizePopupArrow:0,borderRadius:ft.borderRadius}),We=Qe.useCallback(()=>{Ve(!1)},[]),De=()=>{let Ie;return Ce!=null&&Ce.items?Ie=Qe.createElement(Se.default,Object.assign({},Ce)):typeof wt=="function"?Ie=wt():Ie=wt,Re&&(Ie=Re(Ie)),Ie=Qe.Children.only(typeof Ie=="string"?Qe.createElement("span",null,Ie):Ie),Qe.createElement(de.J,{prefixCls:`${Et}-menu`,expandIcon:Qe.createElement("span",{className:`${Et}-menu-submenu-arrow`},Qe.createElement(Tt.Z,{className:`${Et}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:We,validator:Xe=>{let{mode:yt}=Xe}},Ie)};return St(Qe.createElement(Ne.Z,Object.assign({alignPoint:dt},(0,be.Z)(Ee,["rootClassName"]),{mouseEnterDelay:qe,mouseLeaveDelay:at,visible:et,builtinPlacements:ut,arrow:!!je,overlayClassName:nt,prefixCls:Et,getPopupContainer:Ze||mt,transitionName:kt,trigger:Pt,overlay:De,placement:Wt,onVisibleChange:He}),lt))};function le(Ee){return Object.assign(Object.assign({},Ee),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ue=(0,ye.Z)(re,"dropdown",Ee=>Ee,le),pe=Ee=>Qe.createElement(ue,Object.assign({},Ee),Qe.createElement("span",null));re._InternalPanelDoNotUseOrYouWillBeFired=pe,an.Z=re},38854:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return z}});var Qe=Ge(91857),Tt=Ge(92310),oe=Ge.n(Tt),_e=Ge(59301),Ne=Ge(18785),ve=Ge(3113),fe=Ge(36355),be=Ge(81327),Pe=Ge(33234),ye=Ge(47211),we=function(ee,ae){var re={};for(var le in ee)Object.prototype.hasOwnProperty.call(ee,le)&&ae.indexOf(le)<0&&(re[le]=ee[le]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,le=Object.getOwnPropertySymbols(ee);ue<le.length;ue++)ae.indexOf(le[ue])<0&&Object.prototype.propertyIsEnumerable.call(ee,le[ue])&&(re[le[ue]]=ee[le[ue]]);return re};const me=ee=>{const{getPopupContainer:ae,getPrefixCls:re,direction:le}=_e.useContext(fe.E_),{prefixCls:ue,type:pe="default",danger:Ee,disabled:Ce,loading:je,onClick:Le,htmlType:ke,children:Oe,className:Fe,menu:Re,arrow:Ze,autoFocus:ze,overlay:Ke,trigger:ot,align:ct,open:pt,onOpenChange:bt,placement:qe,getPopupContainer:at,href:gt,icon:Ct=_e.createElement(Ne.Z,null),title:wt,buttonsRender:vt=De=>De,mouseEnterDelay:mt,mouseLeaveDelay:xt,overlayClassName:At,overlayStyle:kt,destroyPopupOnHide:Wt,dropdownRender:Et}=ee,St=we(ee,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),tt=re("dropdown",ue),ft=`${tt}-button`,[$e,lt]=(0,ye.Z)(tt),Pt={menu:Re,arrow:Ze,autoFocus:ze,align:ct,disabled:Ce,trigger:Ce?[]:ot,onOpenChange:bt,getPopupContainer:at||ae,mouseEnterDelay:mt,mouseLeaveDelay:xt,overlayClassName:At,overlayStyle:kt,destroyPopupOnHide:Wt,dropdownRender:Et},{compactSize:dt,compactItemClassnames:et}=(0,Pe.ri)(tt,le),Ve=oe()(ft,et,Fe,lt);"overlay"in ee&&(Pt.overlay=Ke),"open"in ee&&(Pt.open=pt),"placement"in ee?Pt.placement=qe:Pt.placement=le==="rtl"?"bottomLeft":"bottomRight";const He=_e.createElement(ve.ZP,{type:pe,danger:Ee,disabled:Ce,loading:je,onClick:Le,htmlType:ke,href:gt,title:wt},Oe),nt=_e.createElement(ve.ZP,{type:pe,danger:Ee,icon:Ct}),[ut,We]=vt([He,nt]);return $e(_e.createElement(be.Z.Compact,Object.assign({className:Ve,size:dt,block:!0},St),ut,_e.createElement(Qe.Z,Object.assign({},Pt),We)))};me.__ANT_BUTTON=!0;var Se=me;const de=Qe.Z;de.Button=Se;var z=de},47211:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return we}});var Qe=Ge(17313),Tt=Ge(13826),oe=Ge(92899),_e=Ge(29878),Ne=Ge(19447),ve=Ge(83116),fe=Ge(37613),Pe=me=>{const{componentCls:Se,menuCls:de,colorError:z,colorTextLightSolid:ee}=me,ae=`${de}-item`;return{[`${Se}, ${Se}-menu-submenu`]:{[`${de} ${ae}`]:{[`&${ae}-danger:not(${ae}-disabled)`]:{color:z,"&:hover":{color:ee,backgroundColor:z}}}}}};const ye=me=>{const{componentCls:Se,menuCls:de,zIndexPopup:z,dropdownArrowDistance:ee,sizePopupArrow:ae,antCls:re,iconCls:le,motionDurationMid:ue,dropdownPaddingVertical:pe,fontSize:Ee,dropdownEdgeChildPadding:Ce,colorTextDisabled:je,fontSizeIcon:Le,controlPaddingHorizontal:ke,colorBgElevated:Oe}=me;return[{[Se]:Object.assign(Object.assign({},(0,Qe.Wf)(me)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:z,display:"block","&::before":{position:"absolute",insetBlock:-ee+ae/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${re}-btn`]:{[`& > ${le}-down, & > ${re}-btn-icon > ${le}-down`]:{fontSize:Le}},[`${Se}-wrap`]:{position:"relative",[`${re}-btn > ${le}-down`]:{fontSize:Le},[`${le}-down::before`]:{transition:`transform ${ue}`}},[`${Se}-wrap-open`]:{[`${le}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${re}-slide-down-enter${re}-slide-down-enter-active${Se}-placement-bottomLeft,
|
|
|
&${re}-slide-down-appear${re}-slide-down-appear-active${Se}-placement-bottomLeft,
|
|
|
&${re}-slide-down-enter${re}-slide-down-enter-active${Se}-placement-bottom,
|
|
|
&${re}-slide-down-appear${re}-slide-down-appear-active${Se}-placement-bottom,
|
|
|
&${re}-slide-down-enter${re}-slide-down-enter-active${Se}-placement-bottomRight,
|
|
|
&${re}-slide-down-appear${re}-slide-down-appear-active${Se}-placement-bottomRight`]:{animationName:Tt.fJ},[`&${re}-slide-up-enter${re}-slide-up-enter-active${Se}-placement-topLeft,
|
|
|
&${re}-slide-up-appear${re}-slide-up-appear-active${Se}-placement-topLeft,
|
|
|
&${re}-slide-up-enter${re}-slide-up-enter-active${Se}-placement-top,
|
|
|
&${re}-slide-up-appear${re}-slide-up-appear-active${Se}-placement-top,
|
|
|
&${re}-slide-up-enter${re}-slide-up-enter-active${Se}-placement-topRight,
|
|
|
&${re}-slide-up-appear${re}-slide-up-appear-active${Se}-placement-topRight`]:{animationName:Tt.Qt},[`&${re}-slide-down-leave${re}-slide-down-leave-active${Se}-placement-bottomLeft,
|
|
|
&${re}-slide-down-leave${re}-slide-down-leave-active${Se}-placement-bottom,
|
|
|
&${re}-slide-down-leave${re}-slide-down-leave-active${Se}-placement-bottomRight`]:{animationName:Tt.Uw},[`&${re}-slide-up-leave${re}-slide-up-leave-active${Se}-placement-topLeft,
|
|
|
&${re}-slide-up-leave${re}-slide-up-leave-active${Se}-placement-top,
|
|
|
&${re}-slide-up-leave${re}-slide-up-leave-active${Se}-placement-topRight`]:{animationName:Tt.ly}})},(0,Ne.ZP)(me,{colorBg:Oe,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Se} ${de}`]:{position:"relative",margin:0},[`${de}-submenu-popup`]:{position:"absolute",zIndex:z,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Se}, ${Se}-menu-submenu`]:{[de]:Object.assign(Object.assign({padding:Ce,listStyleType:"none",backgroundColor:Oe,backgroundClip:"padding-box",borderRadius:me.borderRadiusLG,outline:"none",boxShadow:me.boxShadowSecondary},(0,Qe.Qy)(me)),{[`${de}-item-group-title`]:{padding:`${pe}px ${ke}px`,color:me.colorTextDescription,transition:`all ${ue}`},[`${de}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${de}-item-icon`]:{minWidth:Ee,marginInlineEnd:me.marginXS,fontSize:me.fontSizeSM},[`${de}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ue}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${de}-item, ${de}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${pe}px ${ke}px`,color:me.colorText,fontWeight:"normal",fontSize:Ee,lineHeight:me.lineHeight,cursor:"pointer",transition:`all ${ue}`,borderRadius:me.borderRadiusSM,"&:hover, &-active":{backgroundColor:me.controlItemBgHover}},(0,Qe.Qy)(me)),{"&-selected":{color:me.colorPrimary,backgroundColor:me.controlItemBgActive,"&:hover, &-active":{backgroundColor:me.controlItemBgActiveHover}},"&-disabled":{color:je,cursor:"not-allowed","&:hover":{color:je,backgroundColor:Oe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${me.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:me.colorSplit},[`${Se}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:me.paddingXS,[`${Se}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:me.colorTextDescription,fontSize:Le,fontStyle:"normal"}}}),[`${de}-item-group-list`]:{margin:`0 ${me.marginXS}px`,padding:0,listStyle:"none"},[`${de}-submenu-title`]:{paddingInlineEnd:ke+me.fontSizeSM},[`${de}-submenu-vertical`]:{position:"relative"},[`${de}-submenu${de}-submenu-disabled ${Se}-menu-submenu-title`]:{[`&, ${Se}-menu-submenu-arrow-icon`]:{color:je,backgroundColor:Oe,cursor:"not-allowed"}},[`${de}-submenu-selected ${Se}-menu-submenu-title`]:{color:me.colorPrimary}})}},[(0,Tt.oN)(me,"slide-up"),(0,Tt.oN)(me,"slide-down"),(0,oe.Fm)(me,"move-up"),(0,oe.Fm)(me,"move-down"),(0,_e._y)(me,"zoom-big")]]};var we=(0,ve.Z)("Dropdown",(me,Se)=>{let{rootPrefixCls:de}=Se;const{marginXXS:z,sizePopupArrow:ee,controlHeight:ae,fontSize:re,lineHeight:le,paddingXXS:ue,componentCls:pe,borderRadiusLG:Ee}=me,Ce=(ae-re*le)/2,{dropdownArrowOffset:je}=(0,Ne.fS)({contentRadius:Ee}),Le=(0,fe.TS)(me,{menuCls:`${pe}-menu`,rootPrefixCls:de,dropdownArrowDistance:ee/2+z,dropdownArrowOffset:je,dropdownPaddingVertical:Ce,dropdownEdgeChildPadding:ue});return[ye(Le),Pe(Le)]},me=>({zIndexPopup:me.zIndexPopupBase+50}))},64165:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return ue}});var Qe=Ge(92310),Tt=Ge.n(Qe),oe=Ge(59301),_e=Ge(36355),Ne=Ge(9763),ve=Ge(64993),fe=Ge(88088),Pe=()=>{const[,pe]=(0,fe.Z)(),Ce=new ve.C(pe.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return oe.createElement("svg",{style:Ce,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},oe.createElement("g",{fill:"none",fillRule:"evenodd"},oe.createElement("g",{transform:"translate(24 31.67)"},oe.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),oe.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),oe.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),oe.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),oe.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),oe.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),oe.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},oe.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),oe.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},we=()=>{const[,pe]=(0,fe.Z)(),{colorFill:Ee,colorFillTertiary:Ce,colorFillQuaternary:je,colorBgContainer:Le}=pe,{borderColor:ke,shadowColor:Oe,contentColor:Fe}=(0,oe.useMemo)(()=>({borderColor:new ve.C(Ee).onBackground(Le).toHexShortString(),shadowColor:new ve.C(Ce).onBackground(Le).toHexShortString(),contentColor:new ve.C(je).onBackground(Le).toHexShortString()}),[Ee,Ce,je,Le]);return oe.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},oe.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},oe.createElement("ellipse",{fill:Oe,cx:"32",cy:"33",rx:"32",ry:"7"}),oe.createElement("g",{fillRule:"nonzero",stroke:ke},oe.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),oe.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Fe}))))},me=Ge(83116),Se=Ge(37613);const de=pe=>{const{componentCls:Ee,margin:Ce,marginXS:je,marginXL:Le,fontSize:ke,lineHeight:Oe}=pe;return{[Ee]:{marginInline:je,fontSize:ke,lineHeight:Oe,textAlign:"center",[`${Ee}-image`]:{height:pe.emptyImgHeight,marginBottom:je,opacity:pe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Ee}-description`]:{color:pe.colorText},[`${Ee}-footer`]:{marginTop:Ce},"&-normal":{marginBlock:Le,color:pe.colorTextDisabled,[`${Ee}-description`]:{color:pe.colorTextDisabled},[`${Ee}-image`]:{height:pe.emptyImgHeightMD}},"&-small":{marginBlock:je,color:pe.colorTextDisabled,[`${Ee}-image`]:{height:pe.emptyImgHeightSM}}}}};var z=(0,me.Z)("Empty",pe=>{const{componentCls:Ee,controlHeightLG:Ce}=pe,je=(0,Se.TS)(pe,{emptyImgCls:`${Ee}-img`,emptyImgHeight:Ce*2.5,emptyImgHeightMD:Ce,emptyImgHeightSM:Ce*.875});return[de(je)]}),ee=function(pe,Ee){var Ce={};for(var je in pe)Object.prototype.hasOwnProperty.call(pe,je)&&Ee.indexOf(je)<0&&(Ce[je]=pe[je]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,je=Object.getOwnPropertySymbols(pe);Le<je.length;Le++)Ee.indexOf(je[Le])<0&&Object.prototype.propertyIsEnumerable.call(pe,je[Le])&&(Ce[je[Le]]=pe[je[Le]]);return Ce};const ae=oe.createElement(Pe,null),re=oe.createElement(we,null),le=pe=>{var{className:Ee,rootClassName:Ce,prefixCls:je,image:Le=ae,description:ke,children:Oe,imageStyle:Fe,style:Re}=pe,Ze=ee(pe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:ze,direction:Ke,empty:ot}=oe.useContext(_e.E_),ct=ze("empty",je),[pt,bt]=z(ct),[qe]=(0,Ne.Z)("Empty"),at=typeof ke!="undefined"?ke:qe==null?void 0:qe.description,gt=typeof at=="string"?at:"empty";let Ct=null;return typeof Le=="string"?Ct=oe.createElement("img",{alt:gt,src:Le}):Ct=Le,pt(oe.createElement("div",Object.assign({className:Tt()(bt,ct,ot==null?void 0:ot.className,{[`${ct}-normal`]:Le===re,[`${ct}-rtl`]:Ke==="rtl"},Ee,Ce),style:Object.assign(Object.assign({},ot==null?void 0:ot.style),Re)},Ze),oe.createElement("div",{className:`${ct}-image`,style:Fe},Ct),at&&oe.createElement("div",{className:`${ct}-description`},at),Oe&&oe.createElement("div",{className:`${ct}-footer`},Oe)))};le.PRESENTED_IMAGE_DEFAULT=ae,le.PRESENTED_IMAGE_SIMPLE=re;var ue=le},78241:function(bn,an,Ge){"use strict";Ge.d(an,{default:function(){return Xt}});var Qe=Ge(80702),Tt=Ge(92310),oe=Ge.n(Tt),_e=Ge(77900),Ne=Ge(59301),ve=Ge(62892),fe=Ge(32441);function be(Lt){const[nn,pn]=Ne.useState(Lt);return Ne.useEffect(()=>{const Vt=setTimeout(()=>{pn(Lt)},Lt.length?0:10);return()=>{clearTimeout(Vt)}},[Lt]),nn}var Pe=Ge(17313),ye=Ge(29878),we=Ge(8378),me=Ge(37613),Se=Ge(83116),z=Lt=>{const{componentCls:nn}=Lt,pn=`${nn}-show-help`,Vt=`${nn}-show-help-item`;return{[pn]:{transition:`opacity ${Lt.motionDurationSlow} ${Lt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Vt]:{overflow:"hidden",transition:`height ${Lt.motionDurationSlow} ${Lt.motionEaseInOut},
|
|
|
opacity ${Lt.motionDurationSlow} ${Lt.motionEaseInOut},
|
|
|
transform ${Lt.motionDurationSlow} ${Lt.motionEaseInOut} !important`,[`&${Vt}-appear, &${Vt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Vt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ee=Lt=>({legend:{display:"block",width:"100%",marginBottom:Lt.marginLG,padding:0,color:Lt.colorTextDescription,fontSize:Lt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Lt.lineWidth}px ${Lt.lineType} ${Lt.colorBorder}`},label:{fontSize:Lt.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Lt.controlOutlineWidth}px ${Lt.controlOutline}`},output:{display:"block",paddingTop:15,color:Lt.colorText,fontSize:Lt.fontSize,lineHeight:Lt.lineHeight}}),ae=(Lt,nn)=>{const{formItemCls:pn}=Lt;return{[pn]:{[`${pn}-label > label`]:{height:nn},[`${pn}-control-input`]:{minHeight:nn}}}},re=Lt=>{const{componentCls:nn}=Lt;return{[Lt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Pe.Wf)(Lt)),ee(Lt)),{[`${nn}-text`]:{display:"inline-block",paddingInlineEnd:Lt.paddingSM},"&-small":Object.assign({},ae(Lt,Lt.controlHeightSM)),"&-large":Object.assign({},ae(Lt,Lt.controlHeightLG))})}},le=Lt=>{const{formItemCls:nn,iconCls:pn,componentCls:Vt,rootPrefixCls:Rt,labelRequiredMarkColor:rn,labelColor:yn,labelFontSize:Mn,labelHeight:On,labelColonMarginInlineStart:zt,labelColonMarginInlineEnd:xn,itemMarginBottom:Fn}=Lt;return{[nn]:Object.assign(Object.assign({},(0,Pe.Wf)(Lt)),{marginBottom:Fn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${Rt}-row`]:{display:"none"},"&-has-warning":{[`${nn}-split`]:{color:Lt.colorError}},"&-has-error":{[`${nn}-split`]:{color:Lt.colorWarning}},[`${nn}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Lt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:On,color:yn,fontSize:Mn,[`> ${pn}`]:{fontSize:Lt.fontSize,verticalAlign:"top"},[`&${nn}-required:not(${nn}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Lt.marginXXS,color:rn,fontSize:Lt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Vt}-hide-required-mark &`]:{display:"none"}},[`${nn}-optional`]:{display:"inline-block",marginInlineStart:Lt.marginXXS,color:Lt.colorTextDescription,[`${Vt}-hide-required-mark &`]:{display:"none"}},[`${nn}-tooltip`]:{color:Lt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Lt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:zt,marginInlineEnd:xn},[`&${nn}-no-colon::after`]:{content:'"\\a0"'}}},[`${nn}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Rt}-col-'"]):not([class*="' ${Rt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Lt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[nn]:{"&-explain, &-extra":{clear:"both",color:Lt.colorTextDescription,fontSize:Lt.fontSize,lineHeight:Lt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Lt.controlHeightSM,transition:`color ${Lt.motionDurationMid} ${Lt.motionEaseOut}`},"&-explain":{"&-error":{color:Lt.colorError},"&-warning":{color:Lt.colorWarning}}},[`&-with-help ${nn}-explain`]:{height:"auto",opacity:1},[`${nn}-feedback-icon`]:{fontSize:Lt.fontSize,textAlign:"center",visibility:"visible",animationName:ye.kr,animationDuration:Lt.motionDurationMid,animationTimingFunction:Lt.motionEaseOutBack,pointerEvents:"none","&-success":{color:Lt.colorSuccess},"&-error":{color:Lt.colorError},"&-warning":{color:Lt.colorWarning},"&-validating":{color:Lt.colorPrimary}}})}},ue=Lt=>{const{componentCls:nn,formItemCls:pn}=Lt;return{[`${nn}-horizontal`]:{[`${pn}-label`]:{flexGrow:0},[`${pn}-control`]:{flex:"1 1 0",minWidth:0},[`${pn}-label[class$='-24'], ${pn}-label[class*='-24 ']`]:{[`& + ${pn}-control`]:{minWidth:"unset"}}}}},pe=Lt=>{const{componentCls:nn,formItemCls:pn}=Lt;return{[`${nn}-inline`]:{display:"flex",flexWrap:"wrap",[pn]:{flex:"none",marginInlineEnd:Lt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${pn}-label,
|
|
|
> ${pn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${pn}-label`]:{flex:"none"},[`${nn}-text`]:{display:"inline-block"},[`${pn}-has-feedback`]:{display:"inline-block"}}}}},Ee=Lt=>({padding:Lt.verticalLabelPadding,margin:Lt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ce=Lt=>{const{componentCls:nn,formItemCls:pn,rootPrefixCls:Vt}=Lt;return{[`${pn} ${pn}-label`]:Ee(Lt),[nn]:{[pn]:{flexWrap:"wrap",[`${pn}-label, ${pn}-control`]:{[`&:not([class*=" ${Vt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},je=Lt=>{const{componentCls:nn,formItemCls:pn,rootPrefixCls:Vt}=Lt;return{[`${nn}-vertical`]:{[pn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${nn}-item-control`]:{width:"100%"}}},[`${nn}-vertical ${pn}-label,
|
|
|
.${Vt}-col-24${pn}-label,
|
|
|
.${Vt}-col-xl-24${pn}-label`]:Ee(Lt),[`@media (max-width: ${Lt.screenXSMax}px)`]:[Ce(Lt),{[nn]:{[`.${Vt}-col-xs-24${pn}-label`]:Ee(Lt)}}],[`@media (max-width: ${Lt.screenSMMax}px)`]:{[nn]:{[`.${Vt}-col-sm-24${pn}-label`]:Ee(Lt)}},[`@media (max-width: ${Lt.screenMDMax}px)`]:{[nn]:{[`.${Vt}-col-md-24${pn}-label`]:Ee(Lt)}},[`@media (max-width: ${Lt.screenLGMax}px)`]:{[nn]:{[`.${Vt}-col-lg-24${pn}-label`]:Ee(Lt)}}}},Le=(Lt,nn)=>(0,me.TS)(Lt,{formItemCls:`${Lt.componentCls}-item`,rootPrefixCls:nn});var ke=(0,Se.Z)("Form",(Lt,nn)=>{let{rootPrefixCls:pn}=nn;const Vt=Le(Lt,pn);return[re(Vt),le(Vt),z(Vt),ue(Vt),pe(Vt),je(Vt),(0,we.Z)(Vt),ye.kr]},Lt=>({labelRequiredMarkColor:Lt.colorError,labelColor:Lt.colorTextHeading,labelFontSize:Lt.fontSize,labelHeight:Lt.controlHeight,labelColonMarginInlineStart:Lt.marginXXS/2,labelColonMarginInlineEnd:Lt.marginXS,itemMarginBottom:Lt.marginLG,verticalLabelPadding:`0 0 ${Lt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Oe=[];function Fe(Lt,nn,pn){let Vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Lt=="string"?Lt:`${nn}-${Vt}`,error:Lt,errorStatus:pn}}var Ze=Lt=>{let{help:nn,helpStatus:pn,errors:Vt=Oe,warnings:Rt=Oe,className:rn,fieldId:yn,onVisibleChanged:Mn}=Lt;const{prefixCls:On}=Ne.useContext(fe.Rk),zt=`${On}-item-explain`,[,xn]=ke(On),Fn=(0,Ne.useMemo)(()=>(0,ve.Z)(On),[On]),$n=be(Vt),gn=be(Rt),Sn=Ne.useMemo(()=>nn!=null?[Fe(nn,"help",pn)]:[].concat((0,Qe.Z)($n.map((hn,dn)=>Fe(hn,"error","error",dn))),(0,Qe.Z)(gn.map((hn,dn)=>Fe(hn,"warning","warning",dn)))),[nn,pn,$n,gn]),Qt={};return yn&&(Qt.id=`${yn}_help`),Ne.createElement(_e.default,{motionDeadline:Fn.motionDeadline,motionName:`${On}-show-help`,visible:!!Sn.length,onVisibleChanged:Mn},hn=>{const{className:dn,style:cn}=hn;return Ne.createElement("div",Object.assign({},Qt,{className:oe()(zt,dn,rn,xn),style:cn,role:"alert"}),Ne.createElement(_e.CSSMotionList,Object.assign({keys:Sn},(0,ve.Z)(On),{motionName:`${On}-show-help-item`,component:!1}),Pn=>{const{key:Cn,error:Dn,errorStatus:In,className:tr,style:un}=Pn;return Ne.createElement("div",{key:Cn,className:oe()(tr,{[`${zt}-${In}`]:In}),style:un},Dn)}))})},ze=Ge(95013),Ke=Ge(36355),ot=Ge(1684),ct=Ge(52946),pt=Ge(19716),bt=Ge(16722);const qe=["parentNode"],at="form_item";function gt(Lt){return Lt===void 0||Lt===!1?[]:Array.isArray(Lt)?Lt:[Lt]}function Ct(Lt,nn){if(!Lt.length)return;const pn=Lt.join("_");return nn?`${nn}_${pn}`:qe.includes(pn)?`${at}_${pn}`:pn}function wt(Lt,nn,pn,Vt,Rt,rn){let yn=Vt;return rn!==void 0?yn=rn:pn.validating?yn="validating":Lt.length?yn="error":nn.length?yn="warning":(pn.touched||Rt&&pn.validated)&&(yn="success"),yn}function vt(Lt){return gt(Lt).join("_")}function mt(Lt){const[nn]=(0,ze.useForm)(),pn=Ne.useRef({}),Vt=Ne.useMemo(()=>Lt!=null?Lt:Object.assign(Object.assign({},nn),{__INTERNAL__:{itemRef:Rt=>rn=>{const yn=vt(Rt);rn?pn.current[yn]=rn:delete pn.current[yn]}},scrollToField:function(Rt){let rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const yn=gt(Rt),Mn=Ct(yn,Vt.__INTERNAL__.name),On=Mn?document.getElementById(Mn):null;On&&(0,bt.Z)(On,Object.assign({scrollMode:"if-needed",block:"nearest"},rn))},getFieldInstance:Rt=>{const rn=vt(Rt);return pn.current[rn]}}),[Lt,nn]);return[Vt]}var xt=Ge(28726),At=function(Lt,nn){var pn={};for(var Vt in Lt)Object.prototype.hasOwnProperty.call(Lt,Vt)&&nn.indexOf(Vt)<0&&(pn[Vt]=Lt[Vt]);if(Lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,Vt=Object.getOwnPropertySymbols(Lt);Rt<Vt.length;Rt++)nn.indexOf(Vt[Rt])<0&&Object.prototype.propertyIsEnumerable.call(Lt,Vt[Rt])&&(pn[Vt[Rt]]=Lt[Vt[Rt]]);return pn};const kt=(Lt,nn)=>{const pn=Ne.useContext(ot.Z),{getPrefixCls:Vt,direction:Rt,form:rn}=Ne.useContext(Ke.E_),{prefixCls:yn,className:Mn,rootClassName:On,size:zt,disabled:xn=pn,form:Fn,colon:$n,labelAlign:gn,labelWrap:Sn,labelCol:Qt,wrapperCol:hn,hideRequiredMark:dn,layout:cn="horizontal",scrollToFirstError:Pn,requiredMark:Cn,onFinishFailed:Dn,name:In,style:tr,feedbackIcons:un}=Lt,fr=At(Lt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),wr=(0,pt.Z)(zt),Or=Ne.useContext(xt.Z),fn=(0,Ne.useMemo)(()=>Cn!==void 0?Cn:rn&&rn.requiredMark!==void 0?rn.requiredMark:!dn,[dn,Cn,rn]),_n=$n!=null?$n:rn==null?void 0:rn.colon,Yn=Vt("form",yn),[hr,Qn]=ke(Yn),ur=oe()(Yn,`${Yn}-${cn}`,{[`${Yn}-hide-required-mark`]:fn===!1,[`${Yn}-rtl`]:Rt==="rtl",[`${Yn}-${wr}`]:wr},Qn,rn==null?void 0:rn.className,Mn,On),[Cr]=mt(Fn),{__INTERNAL__:Pr}=Cr;Pr.name=In;const cr=(0,Ne.useMemo)(()=>({name:In,labelAlign:gn,labelCol:Qt,labelWrap:Sn,wrapperCol:hn,vertical:cn==="vertical",colon:_n,requiredMark:fn,itemRef:Pr.itemRef,form:Cr,feedbackIcons:un}),[In,gn,Qt,hn,cn,_n,fn,Cr,un]);Ne.useImperativeHandle(nn,()=>Cr);const Mr=(qr,Ln)=>{if(qr){let zr={block:"nearest"};typeof qr=="object"&&(zr=qr),Cr.scrollToField(Ln,zr)}},Tn=qr=>{if(Dn==null||Dn(qr),qr.errorFields.length){const Ln=qr.errorFields[0].name;if(Pn!==void 0){Mr(Pn,Ln);return}rn&&rn.scrollToFirstError!==void 0&&Mr(rn.scrollToFirstError,Ln)}};return hr(Ne.createElement(ot.n,{disabled:xn},Ne.createElement(ct.q,{size:wr},Ne.createElement(fe.RV,Object.assign({},{validateMessages:Or}),Ne.createElement(fe.q3.Provider,{value:cr},Ne.createElement(ze.default,Object.assign({id:In},fr,{name:In,onFinishFailed:Tn,form:Cr,style:Object.assign(Object.assign({},rn==null?void 0:rn.style),tr),className:ur})))))))};var Et=Ne.forwardRef(kt),St=Ge(41799),tt=Ge(8654),ft=Ge(92343),$e=Ge(11592);function lt(Lt){if(typeof Lt=="function")return Lt;const nn=(0,$e.Z)(Lt);return nn.length<=1?nn[0]:nn}const Pt=()=>{const{status:Lt,errors:nn=[],warnings:pn=[]}=(0,Ne.useContext)(fe.aM);return{status:Lt,errors:nn,warnings:pn}};Pt.Context=fe.aM;var dt=Pt,et=Ge(16089);function Ve(Lt){const[nn,pn]=Ne.useState(Lt),Vt=(0,Ne.useRef)(null),Rt=(0,Ne.useRef)([]),rn=(0,Ne.useRef)(!1);Ne.useEffect(()=>(rn.current=!1,()=>{rn.current=!0,et.Z.cancel(Vt.current),Vt.current=null}),[]);function yn(Mn){rn.current||(Vt.current===null&&(Rt.current=[],Vt.current=(0,et.Z)(()=>{Vt.current=null,pn(On=>{let zt=On;return Rt.current.forEach(xn=>{zt=xn(zt)}),zt})})),Rt.current.push(Mn))}return[nn,yn]}function He(){const{itemRef:Lt}=Ne.useContext(fe.q3),nn=Ne.useRef({});function pn(Vt,Rt){const rn=Rt&&typeof Rt=="object"&&Rt.ref,yn=Vt.join("_");return(nn.current.name!==yn||nn.current.originRef!==rn)&&(nn.current.name=yn,nn.current.originRef=rn,nn.current.ref=(0,tt.sQ)(Lt(Vt),rn)),nn.current.ref}return pn}var nt=Ge(29194),ut=Ge(34280),We=Ge(2738),De=Ge(27382),Ie=Ge(37028);const Xe=Lt=>{const{formItemCls:nn}=Lt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${nn}-control`]:{display:"flex"}}}};var yt=(0,Se.b)(["Form","item-item"],(Lt,nn)=>{let{rootPrefixCls:pn}=nn;const Vt=Le(Lt,pn);return[Xe(Vt)]}),jt=Lt=>{const{prefixCls:nn,status:pn,wrapperCol:Vt,children:Rt,errors:rn,warnings:yn,_internalItemRender:Mn,extra:On,help:zt,fieldId:xn,marginBottom:Fn,onErrorVisibleChanged:$n}=Lt,gn=`${nn}-item`,Sn=Ne.useContext(fe.q3),Qt=Vt||Sn.wrapperCol||{},hn=oe()(`${gn}-control`,Qt.className),dn=Ne.useMemo(()=>Object.assign({},Sn),[Sn]);delete dn.labelCol,delete dn.wrapperCol;const cn=Ne.createElement("div",{className:`${gn}-control-input`},Ne.createElement("div",{className:`${gn}-control-input-content`},Rt)),Pn=Ne.useMemo(()=>({prefixCls:nn,status:pn}),[nn,pn]),Cn=Fn!==null||rn.length||yn.length?Ne.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},Ne.createElement(fe.Rk.Provider,{value:Pn},Ne.createElement(Ze,{fieldId:xn,errors:rn,warnings:yn,help:zt,helpStatus:pn,className:`${gn}-explain-connected`,onVisibleChanged:$n})),!!Fn&&Ne.createElement("div",{style:{width:0,height:Fn}})):null,Dn={};xn&&(Dn.id=`${xn}_extra`);const In=On?Ne.createElement("div",Object.assign({},Dn,{className:`${gn}-extra`}),On):null,tr=Mn&&Mn.mark==="pro_table_render"&&Mn.render?Mn.render(Lt,{input:cn,errorList:Cn,extra:In}):Ne.createElement(Ne.Fragment,null,cn,Cn,In);return Ne.createElement(fe.q3.Provider,{value:dn},Ne.createElement(Ie.Z,Object.assign({},Qt,{className:hn}),tr),Ne.createElement(yt,{prefixCls:nn}))},Ht=Ge(61485),en=Ge(31724),It=Ge(9763),Ut=Ge(6848),tn=function(Lt,nn){var pn={};for(var Vt in Lt)Object.prototype.hasOwnProperty.call(Lt,Vt)&&nn.indexOf(Vt)<0&&(pn[Vt]=Lt[Vt]);if(Lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,Vt=Object.getOwnPropertySymbols(Lt);Rt<Vt.length;Rt++)nn.indexOf(Vt[Rt])<0&&Object.prototype.propertyIsEnumerable.call(Lt,Vt[Rt])&&(pn[Vt[Rt]]=Lt[Vt[Rt]]);return pn};function ln(Lt){return Lt?typeof Lt=="object"&&!Ne.isValidElement(Lt)?Lt:{title:Lt}:null}var jn=Lt=>{let{prefixCls:nn,label:pn,htmlFor:Vt,labelCol:Rt,labelAlign:rn,colon:yn,required:Mn,requiredMark:On,tooltip:zt}=Lt;var xn;const[Fn]=(0,It.Z)("Form"),{vertical:$n,labelAlign:gn,labelCol:Sn,labelWrap:Qt,colon:hn}=Ne.useContext(fe.q3);if(!pn)return null;const dn=Rt||Sn||{},cn=rn||gn,Pn=`${nn}-item-label`,Cn=oe()(Pn,cn==="left"&&`${Pn}-left`,dn.className,{[`${Pn}-wrap`]:!!Qt});let Dn=pn;const In=yn===!0||hn!==!1&&yn!==!1;In&&!$n&&typeof pn=="string"&&pn.trim()!==""&&(Dn=pn.replace(/[:|:]\s*$/,""));const un=ln(zt);if(un){const{icon:fn=Ne.createElement(Ht.Z,null)}=un,_n=tn(un,["icon"]),Yn=Ne.createElement(Ut.Z,Object.assign({},_n),Ne.cloneElement(fn,{className:`${nn}-item-tooltip`,title:""}));Dn=Ne.createElement(Ne.Fragment,null,Dn,Yn)}const fr=On==="optional",wr=typeof On=="function";wr?Dn=On(Dn,{required:!!Mn}):fr&&!Mn&&(Dn=Ne.createElement(Ne.Fragment,null,Dn,Ne.createElement("span",{className:`${nn}-item-optional`,title:""},(Fn==null?void 0:Fn.optional)||((xn=en.Z.Form)===null||xn===void 0?void 0:xn.optional))));const Or=oe()({[`${nn}-item-required`]:Mn,[`${nn}-item-required-mark-optional`]:fr||wr,[`${nn}-item-no-colon`]:!In});return Ne.createElement(Ie.Z,Object.assign({},dn,{className:Cn}),Ne.createElement("label",{htmlFor:Vt,className:Or,title:typeof pn=="string"?pn:""},Dn))},Vn=Ge(29679),Kn=Ge(19248),ar=Ge(96512),xr=Ge(58617);const gr={success:Vn.Z,warning:ar.Z,error:Kn.Z,validating:xr.Z};function dr(Lt){let{children:nn,errors:pn,warnings:Vt,hasFeedback:Rt,validateStatus:rn,prefixCls:yn,meta:Mn,noStyle:On}=Lt;const zt=`${yn}-item`,{feedbackIcons:xn}=Ne.useContext(fe.q3),Fn=wt(pn,Vt,Mn,null,!!Rt,rn),{isFormItemInput:$n,status:gn}=Ne.useContext(fe.aM),Sn=Ne.useMemo(()=>{var Qt;let hn;if(Rt){const Pn=Rt!==!0&&Rt.icons||xn,Cn=Fn&&((Qt=Pn==null?void 0:Pn({status:Fn,errors:pn,warnings:Vt}))===null||Qt===void 0?void 0:Qt[Fn]),Dn=Fn&&gr[Fn];hn=Cn!==!1&&Dn?Ne.createElement("span",{className:oe()(`${zt}-feedback-icon`,`${zt}-feedback-icon-${Fn}`)},Cn||Ne.createElement(Dn,null)):null}let dn=!0,cn=Fn||"";return On&&(dn=$n,cn=(Fn!=null?Fn:gn)||""),{status:cn,errors:pn,warnings:Vt,hasFeedback:!!Rt,feedbackIcon:hn,isFormItemInput:dn}},[Fn,Rt,On,$n,gn]);return Ne.createElement(fe.aM.Provider,{value:Sn},nn)}var Tr=function(Lt,nn){var pn={};for(var Vt in Lt)Object.prototype.hasOwnProperty.call(Lt,Vt)&&nn.indexOf(Vt)<0&&(pn[Vt]=Lt[Vt]);if(Lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,Vt=Object.getOwnPropertySymbols(Lt);Rt<Vt.length;Rt++)nn.indexOf(Vt[Rt])<0&&Object.prototype.propertyIsEnumerable.call(Lt,Vt[Rt])&&(pn[Vt[Rt]]=Lt[Vt[Rt]]);return pn};function Rr(Lt){const{prefixCls:nn,className:pn,rootClassName:Vt,style:Rt,help:rn,errors:yn,warnings:Mn,validateStatus:On,meta:zt,hasFeedback:xn,hidden:Fn,children:$n,fieldId:gn,required:Sn,isRequired:Qt,onSubItemMetaChange:hn}=Lt,dn=Tr(Lt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),cn=`${nn}-item`,{requiredMark:Pn}=Ne.useContext(fe.q3),Cn=Ne.useRef(null),Dn=be(yn),In=be(Mn),tr=rn!=null,un=!!(tr||yn.length||Mn.length),fr=!!Cn.current&&(0,nt.Z)(Cn.current),[wr,Or]=Ne.useState(null);(0,ut.Z)(()=>{if(un&&Cn.current){const Qn=getComputedStyle(Cn.current);Or(parseInt(Qn.marginBottom,10))}},[un,fr]);const fn=Qn=>{Qn||Or(null)},Yn=function(){let Qn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ur=Qn?Dn:zt.errors,Cr=Qn?In:zt.warnings;return wt(ur,Cr,zt,"",!!xn,On)}(),hr=oe()(cn,pn,Vt,{[`${cn}-with-help`]:tr||Dn.length||In.length,[`${cn}-has-feedback`]:Yn&&xn,[`${cn}-has-success`]:Yn==="success",[`${cn}-has-warning`]:Yn==="warning",[`${cn}-has-error`]:Yn==="error",[`${cn}-is-validating`]:Yn==="validating",[`${cn}-hidden`]:Fn});return Ne.createElement("div",{className:hr,style:Rt,ref:Cn},Ne.createElement(De.Z,Object.assign({className:`${cn}-row`},(0,We.Z)(dn,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),Ne.createElement(jn,Object.assign({htmlFor:gn},Lt,{requiredMark:Pn,required:Sn!=null?Sn:Qt,prefixCls:nn})),Ne.createElement(jt,Object.assign({},Lt,zt,{errors:Dn,warnings:In,prefixCls:nn,status:Yn,help:rn,marginBottom:wr,onErrorVisibleChanged:fn}),Ne.createElement(fe.qI.Provider,{value:hn},Ne.createElement(dr,{prefixCls:nn,meta:zt,errors:zt.errors,warnings:zt.warnings,hasFeedback:xn,validateStatus:Yn},$n)))),!!wr&&Ne.createElement("div",{className:`${cn}-margin-offset`,style:{marginBottom:-wr}}))}const Zr="__SPLIT__",ei=null,jr=Ne.memo(Lt=>{let{children:nn}=Lt;return nn},(Lt,nn)=>Lt.value===nn.value&&Lt.update===nn.update&&Lt.childProps.length===nn.childProps.length&&Lt.childProps.every((pn,Vt)=>pn===nn.childProps[Vt]));function it(Lt){return Lt!=null}function Qr(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function $r(Lt){const{name:nn,noStyle:pn,className:Vt,dependencies:Rt,prefixCls:rn,shouldUpdate:yn,rules:Mn,children:On,required:zt,label:xn,messageVariables:Fn,trigger:$n="onChange",validateTrigger:gn,hidden:Sn,help:Qt}=Lt,{getPrefixCls:hn}=Ne.useContext(Ke.E_),{name:dn}=Ne.useContext(fe.q3),cn=lt(On),Pn=typeof cn=="function",Cn=Ne.useContext(fe.qI),{validateTrigger:Dn}=Ne.useContext(ze.FieldContext),In=gn!==void 0?gn:Dn,tr=it(nn),un=hn("form",rn),[fr,wr]=ke(un),Or=Ne.useContext(ze.ListContext),fn=Ne.useRef(),[_n,Yn]=Ve({}),[hr,Qn]=(0,St.Z)(()=>Qr()),ur=Ln=>{const zr=Or==null?void 0:Or.getKey(Ln.name);if(Qn(Ln.destroy?Qr():Ln,!0),pn&&Qt!==!1&&Cn){let li=Ln.name;if(Ln.destroy)li=fn.current||li;else if(zr!==void 0){const[Ar,fi]=zr;li=[Ar].concat((0,Qe.Z)(fi)),fn.current=li}Cn(Ln,li)}},Cr=(Ln,zr)=>{Yn(li=>{const Ar=Object.assign({},li),oi=[].concat((0,Qe.Z)(Ln.name.slice(0,-1)),(0,Qe.Z)(zr)).join(Zr);return Ln.destroy?delete Ar[oi]:Ar[oi]=Ln,Ar})},[Pr,cr]=Ne.useMemo(()=>{const Ln=(0,Qe.Z)(hr.errors),zr=(0,Qe.Z)(hr.warnings);return Object.values(_n).forEach(li=>{Ln.push.apply(Ln,(0,Qe.Z)(li.errors||[])),zr.push.apply(zr,(0,Qe.Z)(li.warnings||[]))}),[Ln,zr]},[_n,hr.errors,hr.warnings]),Mr=He();function Tn(Ln,zr,li){return pn&&!Sn?Ne.createElement(dr,{prefixCls:un,hasFeedback:Lt.hasFeedback,validateStatus:Lt.validateStatus,meta:hr,errors:Pr,warnings:cr,noStyle:!0},Ln):Ne.createElement(Rr,Object.assign({key:"row"},Lt,{className:oe()(Vt,wr),prefixCls:un,fieldId:zr,isRequired:li,errors:Pr,warnings:cr,meta:hr,onSubItemMetaChange:Cr}),Ln)}if(!tr&&!Pn&&!Rt)return fr(Tn(cn));let qr={};return typeof xn=="string"?qr.label=xn:nn&&(qr.label=String(nn)),Fn&&(qr=Object.assign(Object.assign({},qr),Fn)),fr(Ne.createElement(ze.Field,Object.assign({},Lt,{messageVariables:qr,trigger:$n,validateTrigger:In,onMetaChange:ur}),(Ln,zr,li)=>{const Ar=gt(nn).length&&zr?zr.name:[],fi=Ct(Ar,dn),oi=zt!==void 0?zt:!!(Mn&&Mn.some(Kr=>{if(Kr&&typeof Kr=="object"&&Kr.required&&!Kr.warningOnly)return!0;if(typeof Kr=="function"){const ai=Kr(li);return ai&&ai.required&&!ai.warningOnly}return!1})),Sr=Object.assign({},Ln);let yr=null;if(Array.isArray(cn)&&tr)yr=cn;else if(!(Pn&&(!(yn||Rt)||tr))){if(!(Rt&&!Pn&&!tr))if((0,ft.l$)(cn)){const Kr=Object.assign(Object.assign({},cn.props),Sr);if(Kr.id||(Kr.id=fi),Qt||Pr.length>0||cr.length>0||Lt.extra){const Nt=[];(Qt||Pr.length>0)&&Nt.push(`${fi}_help`),Lt.extra&&Nt.push(`${fi}_extra`),Kr["aria-describedby"]=Nt.join(" ")}Pr.length>0&&(Kr["aria-invalid"]="true"),oi&&(Kr["aria-required"]="true"),(0,tt.Yr)(cn)&&(Kr.ref=Mr(Ar,cn)),new Set([].concat((0,Qe.Z)(gt($n)),(0,Qe.Z)(gt(In)))).forEach(Nt=>{Kr[Nt]=function(){for(var ni,Ci,Xr,Ei,Oi,Fr=arguments.length,Gr=new Array(Fr),ri=0;ri<Fr;ri++)Gr[ri]=arguments[ri];(Xr=Sr[Nt])===null||Xr===void 0||(ni=Xr).call.apply(ni,[Sr].concat(Gr)),(Oi=(Ei=cn.props)[Nt])===null||Oi===void 0||(Ci=Oi).call.apply(Ci,[Ei].concat(Gr))}});const qn=[Kr["aria-required"],Kr["aria-invalid"],Kr["aria-describedby"]];yr=Ne.createElement(jr,{value:Sr[Lt.valuePropName||"value"],update:cn,childProps:qn},(0,ft.Tm)(cn,Kr))}else Pn&&(yn||Rt)&&!tr?yr=cn(li):yr=cn}return Tn(yr,fi,oi)}))}const En=$r;En.useStatus=dt;var er=En,rr=function(Lt,nn){var pn={};for(var Vt in Lt)Object.prototype.hasOwnProperty.call(Lt,Vt)&&nn.indexOf(Vt)<0&&(pn[Vt]=Lt[Vt]);if(Lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,Vt=Object.getOwnPropertySymbols(Lt);Rt<Vt.length;Rt++)nn.indexOf(Vt[Rt])<0&&Object.prototype.propertyIsEnumerable.call(Lt,Vt[Rt])&&(pn[Vt[Rt]]=Lt[Vt[Rt]]);return pn},zn=Lt=>{var{prefixCls:nn,children:pn}=Lt,Vt=rr(Lt,["prefixCls","children"]);const{getPrefixCls:Rt}=Ne.useContext(Ke.E_),rn=Rt("form",nn),yn=Ne.useMemo(()=>({prefixCls:rn,status:"error"}),[rn]);return Ne.createElement(ze.List,Object.assign({},Vt),(Mn,On,zt)=>Ne.createElement(fe.Rk.Provider,{value:yn},pn(Mn.map(xn=>Object.assign(Object.assign({},xn),{fieldKey:xn.key})),On,{errors:zt.errors,warnings:zt.warnings})))};function Nn(){const{form:Lt}=(0,Ne.useContext)(fe.q3);return Lt}const $t=Et;$t.Item=er,$t.List=zn,$t.ErrorList=Ze,$t.useForm=mt,$t.useFormInstance=Nn,$t.useWatch=ze.useWatch,$t.Provider=fe.RV,$t.create=()=>{};var Xt=$t},9432:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return le},n:function(){return ae}});var Qe=Ge(19248),Tt=Ge(92310),oe=Ge.n(Tt),_e=Ge(93681),Ne=Ge(8654),ve=Ge(59301),fe=Ge(19080),be=Ge(36355),Pe=Ge(1684),ye=Ge(19716),we=Ge(32441),me=Ge(33234),Se=Ge(59412),de=Ge(9937);function z(ue){return!!(ue.prefix||ue.suffix||ue.allowClear)}var ee=function(ue,pe){var Ee={};for(var Ce in ue)Object.prototype.hasOwnProperty.call(ue,Ce)&&pe.indexOf(Ce)<0&&(Ee[Ce]=ue[Ce]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ce=Object.getOwnPropertySymbols(ue);je<Ce.length;je++)pe.indexOf(Ce[je])<0&&Object.prototype.propertyIsEnumerable.call(ue,Ce[je])&&(Ee[Ce[je]]=ue[Ce[je]]);return Ee};function ae(ue,pe){if(!ue)return;ue.focus(pe);const{cursor:Ee}=pe||{};if(Ee){const Ce=ue.value.length;switch(Ee){case"start":ue.setSelectionRange(0,0);break;case"end":ue.setSelectionRange(Ce,Ce);break;default:ue.setSelectionRange(0,Ce);break}}}var le=(0,ve.forwardRef)((ue,pe)=>{var Ee;const{prefixCls:Ce,bordered:je=!0,status:Le,size:ke,disabled:Oe,onBlur:Fe,onFocus:Re,suffix:Ze,allowClear:ze,addonAfter:Ke,addonBefore:ot,className:ct,style:pt,styles:bt,rootClassName:qe,onChange:at,classNames:gt}=ue,Ct=ee(ue,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:wt,direction:vt,input:mt}=ve.useContext(be.E_),xt=wt("input",Ce),At=(0,ve.useRef)(null),[kt,Wt]=(0,de.ZP)(xt),{compactSize:Et,compactItemClassnames:St}=(0,me.ri)(xt,vt),tt=(0,ye.Z)(yt=>{var Ye;return(Ye=ke!=null?ke:Et)!==null&&Ye!==void 0?Ye:yt}),ft=ve.useContext(Pe.Z),$e=Oe!=null?Oe:ft,{status:lt,hasFeedback:Pt,feedbackIcon:dt}=(0,ve.useContext)(we.aM),et=(0,fe.F)(lt,Le),Ve=z(ue)||!!Pt,He=(0,ve.useRef)(Ve);(0,ve.useEffect)(()=>{var yt;Ve&&He.current,He.current=Ve},[Ve]);const nt=(0,Se.Z)(At,!0),ut=yt=>{nt(),Fe==null||Fe(yt)},We=yt=>{nt(),Re==null||Re(yt)},De=yt=>{nt(),at==null||at(yt)},Ie=(Pt||Ze)&&ve.createElement(ve.Fragment,null,Ze,Pt&&dt);let Xe;return typeof ze=="object"&&(ze!=null&&ze.clearIcon)?Xe=ze:ze&&(Xe={clearIcon:ve.createElement(Qe.Z,null)}),kt(ve.createElement(_e.default,Object.assign({ref:(0,Ne.sQ)(pe,At),prefixCls:xt,autoComplete:mt==null?void 0:mt.autoComplete},Ct,{disabled:$e,onBlur:ut,onFocus:We,style:Object.assign(Object.assign({},mt==null?void 0:mt.style),pt),styles:Object.assign(Object.assign({},mt==null?void 0:mt.styles),bt),suffix:Ie,allowClear:Xe,className:oe()(ct,qe,St,mt==null?void 0:mt.className),onChange:De,addonAfter:Ke&&ve.createElement(me.BR,null,ve.createElement(we.Ux,{override:!0,status:!0},Ke)),addonBefore:ot&&ve.createElement(me.BR,null,ve.createElement(we.Ux,{override:!0,status:!0},ot)),classNames:Object.assign(Object.assign(Object.assign({},gt),mt==null?void 0:mt.classNames),{input:oe()({[`${xt}-sm`]:tt==="small",[`${xt}-lg`]:tt==="large",[`${xt}-rtl`]:vt==="rtl",[`${xt}-borderless`]:!je},!Ve&&(0,fe.Z)(xt,et),gt==null?void 0:gt.input,(Ee=mt==null?void 0:mt.classNames)===null||Ee===void 0?void 0:Ee.input,Wt)}),classes:{affixWrapper:oe()({[`${xt}-affix-wrapper-sm`]:tt==="small",[`${xt}-affix-wrapper-lg`]:tt==="large",[`${xt}-affix-wrapper-rtl`]:vt==="rtl",[`${xt}-affix-wrapper-borderless`]:!je},(0,fe.Z)(`${xt}-affix-wrapper`,et,Pt),Wt),wrapper:oe()({[`${xt}-group-rtl`]:vt==="rtl"},Wt),group:oe()({[`${xt}-group-wrapper-sm`]:tt==="small",[`${xt}-group-wrapper-lg`]:tt==="large",[`${xt}-group-wrapper-rtl`]:vt==="rtl",[`${xt}-group-wrapper-disabled`]:$e},(0,fe.Z)(`${xt}-group-wrapper`,et,Pt),Wt)}})))})},1643:function(bn,an,Ge){"use strict";var Qe=Ge(19248),Tt=Ge(92310),oe=Ge.n(Tt),_e=Ge(9296),Ne=Ge(59301),ve=Ge(19080),fe=Ge(36355),be=Ge(1684),Pe=Ge(19716),ye=Ge(32441),we=Ge(9432),me=Ge(9937),Se=function(z,ee){var ae={};for(var re in z)Object.prototype.hasOwnProperty.call(z,re)&&ee.indexOf(re)<0&&(ae[re]=z[re]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,re=Object.getOwnPropertySymbols(z);le<re.length;le++)ee.indexOf(re[le])<0&&Object.prototype.propertyIsEnumerable.call(z,re[le])&&(ae[re[le]]=z[re[le]]);return ae};const de=(0,Ne.forwardRef)((z,ee)=>{const{prefixCls:ae,bordered:re=!0,size:le,disabled:ue,status:pe,allowClear:Ee,showCount:Ce,classNames:je,rootClassName:Le,className:ke}=z,Oe=Se(z,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Fe,direction:Re}=Ne.useContext(fe.E_),Ze=(0,Pe.Z)(le),ze=Ne.useContext(be.Z),Ke=ue!=null?ue:ze,{status:ot,hasFeedback:ct,feedbackIcon:pt}=Ne.useContext(ye.aM),bt=(0,ve.F)(ot,pe),qe=Ne.useRef(null);Ne.useImperativeHandle(ee,()=>{var vt;return{resizableTextArea:(vt=qe.current)===null||vt===void 0?void 0:vt.resizableTextArea,focus:mt=>{var xt,At;(0,we.n)((At=(xt=qe.current)===null||xt===void 0?void 0:xt.resizableTextArea)===null||At===void 0?void 0:At.textArea,mt)},blur:()=>{var mt;return(mt=qe.current)===null||mt===void 0?void 0:mt.blur()}}});const at=Fe("input",ae);let gt;typeof Ee=="object"&&(Ee!=null&&Ee.clearIcon)?gt=Ee:Ee&&(gt={clearIcon:Ne.createElement(Qe.Z,null)});const[Ct,wt]=(0,me.ZP)(at);return Ct(Ne.createElement(_e.default,Object.assign({},Oe,{disabled:Ke,allowClear:gt,className:oe()(ke,Le),classes:{affixWrapper:oe()(`${at}-textarea-affix-wrapper`,{[`${at}-affix-wrapper-rtl`]:Re==="rtl",[`${at}-affix-wrapper-borderless`]:!re,[`${at}-affix-wrapper-sm`]:Ze==="small",[`${at}-affix-wrapper-lg`]:Ze==="large",[`${at}-textarea-show-count`]:Ce},(0,ve.Z)(`${at}-affix-wrapper`,bt),wt)},classNames:Object.assign(Object.assign({},je),{textarea:oe()({[`${at}-borderless`]:!re,[`${at}-sm`]:Ze==="small",[`${at}-lg`]:Ze==="large"},(0,ve.Z)(at,bt),wt,je==null?void 0:je.textarea)}),prefixCls:at,suffix:ct&&Ne.createElement("span",{className:`${at}-textarea-suffix`},pt),showCount:Ce,ref:qe})))});an.Z=de},59412:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Tt}});var Qe=Ge(59301);function Tt(oe,_e){const Ne=(0,Qe.useRef)([]),ve=()=>{Ne.current.push(setTimeout(()=>{var fe,be,Pe,ye;!((fe=oe.current)===null||fe===void 0)&&fe.input&&((be=oe.current)===null||be===void 0?void 0:be.input.getAttribute("type"))==="password"&&(!((Pe=oe.current)===null||Pe===void 0)&&Pe.input.hasAttribute("value"))&&((ye=oe.current)===null||ye===void 0||ye.input.removeAttribute("value"))}))};return(0,Qe.useEffect)(()=>(_e&&ve(),()=>Ne.current.forEach(fe=>{fe&&clearTimeout(fe)})),[]),ve}},92832:function(bn,an,Ge){"use strict";Ge.d(an,{default:function(){return Ze}});var Qe=Ge(92310),Tt=Ge.n(Qe),oe=Ge(59301),_e=Ge(36355),Ne=Ge(32441),ve=Ge(9937),be=ze=>{const{getPrefixCls:Ke,direction:ot}=(0,oe.useContext)(_e.E_),{prefixCls:ct,className:pt}=ze,bt=Ke("input-group",ct),qe=Ke("input"),[at,gt]=(0,ve.ZP)(qe),Ct=Tt()(bt,{[`${bt}-lg`]:ze.size==="large",[`${bt}-sm`]:ze.size==="small",[`${bt}-compact`]:ze.compact,[`${bt}-rtl`]:ot==="rtl"},gt,pt),wt=(0,oe.useContext)(Ne.aM),vt=(0,oe.useMemo)(()=>Object.assign(Object.assign({},wt),{isFormItemInput:!1}),[wt]);return at(oe.createElement("span",{className:Ct,style:ze.style,onMouseEnter:ze.onMouseEnter,onMouseLeave:ze.onMouseLeave,onFocus:ze.onFocus,onBlur:ze.onBlur},oe.createElement(Ne.aM.Provider,{value:vt},ze.children)))},Pe=Ge(9432),ye=Ge(73331),we=Ge(15277),me=Ge(2738),Se=Ge(8654),de=Ge(59412),z=function(ze,Ke){var ot={};for(var ct in ze)Object.prototype.hasOwnProperty.call(ze,ct)&&Ke.indexOf(ct)<0&&(ot[ct]=ze[ct]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,ct=Object.getOwnPropertySymbols(ze);pt<ct.length;pt++)Ke.indexOf(ct[pt])<0&&Object.prototype.propertyIsEnumerable.call(ze,ct[pt])&&(ot[ct[pt]]=ze[ct[pt]]);return ot};const ee=ze=>ze?oe.createElement(we.Z,null):oe.createElement(ye.Z,null),ae={click:"onClick",hover:"onMouseOver"};var le=oe.forwardRef((ze,Ke)=>{const{visibilityToggle:ot=!0}=ze,ct=typeof ot=="object"&&ot.visible!==void 0,[pt,bt]=(0,oe.useState)(()=>ct?ot.visible:!1),qe=(0,oe.useRef)(null);oe.useEffect(()=>{ct&&bt(ot.visible)},[ct,ot]);const at=(0,de.Z)(qe),gt=()=>{const{disabled:$e}=ze;$e||(pt&&at(),bt(lt=>{var Pt;const dt=!lt;return typeof ot=="object"&&((Pt=ot.onVisibleChange)===null||Pt===void 0||Pt.call(ot,dt)),dt}))},Ct=$e=>{const{action:lt="click",iconRender:Pt=ee}=ze,dt=ae[lt]||"",et=Pt(pt),Ve={[dt]:gt,className:`${$e}-icon`,key:"passwordIcon",onMouseDown:He=>{He.preventDefault()},onMouseUp:He=>{He.preventDefault()}};return oe.cloneElement(oe.isValidElement(et)?et:oe.createElement("span",null,et),Ve)},{className:wt,prefixCls:vt,inputPrefixCls:mt,size:xt}=ze,At=z(ze,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:kt}=oe.useContext(_e.E_),Wt=kt("input",mt),Et=kt("input-password",vt),St=ot&&Ct(Et),tt=Tt()(Et,wt,{[`${Et}-${xt}`]:!!xt}),ft=Object.assign(Object.assign({},(0,me.Z)(At,["suffix","iconRender","visibilityToggle"])),{type:pt?"text":"password",className:tt,prefixCls:Wt,suffix:St});return xt&&(ft.size=xt),oe.createElement(Pe.Z,Object.assign({ref:(0,Se.sQ)(Ke,qe)},ft))}),ue=Ge(47472),pe=Ge(92343),Ee=Ge(3113),Ce=Ge(19716),je=Ge(33234),Le=function(ze,Ke){var ot={};for(var ct in ze)Object.prototype.hasOwnProperty.call(ze,ct)&&Ke.indexOf(ct)<0&&(ot[ct]=ze[ct]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,ct=Object.getOwnPropertySymbols(ze);pt<ct.length;pt++)Ke.indexOf(ct[pt])<0&&Object.prototype.propertyIsEnumerable.call(ze,ct[pt])&&(ot[ct[pt]]=ze[ct[pt]]);return ot},Oe=oe.forwardRef((ze,Ke)=>{const{prefixCls:ot,inputPrefixCls:ct,className:pt,size:bt,suffix:qe,enterButton:at=!1,addonAfter:gt,loading:Ct,disabled:wt,onSearch:vt,onChange:mt,onCompositionStart:xt,onCompositionEnd:At}=ze,kt=Le(ze,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Wt,direction:Et}=oe.useContext(_e.E_),St=oe.useRef(!1),tt=Wt("input-search",ot),ft=Wt("input",ct),{compactSize:$e}=(0,je.ri)(tt,Et),lt=(0,Ce.Z)(jt=>{var Ht;return(Ht=bt!=null?bt:$e)!==null&&Ht!==void 0?Ht:jt}),Pt=oe.useRef(null),dt=jt=>{jt&&jt.target&&jt.type==="click"&&vt&&vt(jt.target.value,jt,{source:"clear"}),mt&&mt(jt)},et=jt=>{var Ht;document.activeElement===((Ht=Pt.current)===null||Ht===void 0?void 0:Ht.input)&&jt.preventDefault()},Ve=jt=>{var Ht,en;vt&&vt((en=(Ht=Pt.current)===null||Ht===void 0?void 0:Ht.input)===null||en===void 0?void 0:en.value,jt,{source:"input"})},He=jt=>{St.current||Ct||Ve(jt)},nt=typeof at=="boolean"?oe.createElement(ue.Z,null):null,ut=`${tt}-button`;let We;const De=at||{},Ie=De.type&&De.type.__ANT_BUTTON===!0;Ie||De.type==="button"?We=(0,pe.Tm)(De,Object.assign({onMouseDown:et,onClick:jt=>{var Ht,en;(en=(Ht=De==null?void 0:De.props)===null||Ht===void 0?void 0:Ht.onClick)===null||en===void 0||en.call(Ht,jt),Ve(jt)},key:"enterButton"},Ie?{className:ut,size:lt}:{})):We=oe.createElement(Ee.ZP,{className:ut,type:at?"primary":void 0,size:lt,disabled:wt,key:"enterButton",onMouseDown:et,onClick:Ve,loading:Ct,icon:nt},at),gt&&(We=[We,(0,pe.Tm)(gt,{key:"addonAfter"})]);const Xe=Tt()(tt,{[`${tt}-rtl`]:Et==="rtl",[`${tt}-${lt}`]:!!lt,[`${tt}-with-button`]:!!at},pt),yt=jt=>{St.current=!0,xt==null||xt(jt)},Ye=jt=>{St.current=!1,At==null||At(jt)};return oe.createElement(Pe.Z,Object.assign({ref:(0,Se.sQ)(Pt,Ke),onPressEnter:He},kt,{size:lt,onCompositionStart:yt,onCompositionEnd:Ye,prefixCls:ft,addonAfter:We,suffix:qe,onChange:dt,className:Xe,disabled:wt}))}),Fe=Ge(1643);const Re=Pe.Z;Re.Group=be,Re.Search=Oe,Re.TextArea=Fe.Z,Re.Password=le;var Ze=Re},45818:function(bn,an,Ge){"use strict";Ge.d(an,{D:function(){return ue},Z:function(){return Ce}});var Qe=Ge(72308),Tt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},_e=oe,Ne=Ge(7657),ve=function(Le,ke){return Tt.createElement(Ne.Z,(0,Qe.Z)({},Le,{ref:ke,icon:_e}))},fe=Tt.forwardRef(ve),be=fe,Pe=Ge(33853),ye=Ge(38819),we=Ge(92310),me=Ge.n(we),Se=Ge(2738),z=je=>!isNaN(parseFloat(je))&&isFinite(je),ee=Ge(36355),ae=Ge(84966),re=function(je,Le){var ke={};for(var Oe in je)Object.prototype.hasOwnProperty.call(je,Oe)&&Le.indexOf(Oe)<0&&(ke[Oe]=je[Oe]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Oe=Object.getOwnPropertySymbols(je);Fe<Oe.length;Fe++)Le.indexOf(Oe[Fe])<0&&Object.prototype.propertyIsEnumerable.call(je,Oe[Fe])&&(ke[Oe[Fe]]=je[Oe[Fe]]);return ke};const le={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ue=Tt.createContext({}),pe=(()=>{let je=0;return function(){let Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return je+=1,`${Le}${je}`}})();var Ce=Tt.forwardRef((je,Le)=>{const{prefixCls:ke,className:Oe,trigger:Fe,children:Re,defaultCollapsed:Ze=!1,theme:ze="dark",style:Ke={},collapsible:ot=!1,reverseArrow:ct=!1,width:pt=200,collapsedWidth:bt=80,zeroWidthTriggerStyle:qe,breakpoint:at,onCollapse:gt,onBreakpoint:Ct}=je,wt=re(je,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:vt}=(0,Tt.useContext)(ae.Gs),[mt,xt]=(0,Tt.useState)("collapsed"in je?je.collapsed:Ze),[At,kt]=(0,Tt.useState)(!1);(0,Tt.useEffect)(()=>{"collapsed"in je&&xt(je.collapsed)},[je.collapsed]);const Wt=(lt,Pt)=>{"collapsed"in je||xt(lt),gt==null||gt(lt,Pt)},Et=(0,Tt.useRef)();Et.current=lt=>{kt(lt.matches),Ct==null||Ct(lt.matches),mt!==lt.matches&&Wt(lt.matches,"responsive")},(0,Tt.useEffect)(()=>{function lt(dt){return Et.current(dt)}let Pt;if(typeof window!="undefined"){const{matchMedia:dt}=window;if(dt&&at&&at in le){Pt=dt(`(max-width: ${le[at]})`);try{Pt.addEventListener("change",lt)}catch(et){Pt.addListener(lt)}lt(Pt)}}return()=>{try{Pt==null||Pt.removeEventListener("change",lt)}catch(dt){Pt==null||Pt.removeListener(lt)}}},[at]),(0,Tt.useEffect)(()=>{const lt=pe("ant-sider-");return vt.addSider(lt),()=>vt.removeSider(lt)},[]);const St=()=>{Wt(!mt,"clickTrigger")},{getPrefixCls:tt}=(0,Tt.useContext)(ee.E_),ft=()=>{const lt=tt("layout-sider",ke),Pt=(0,Se.Z)(wt,["collapsed"]),dt=mt?bt:pt,et=z(dt)?`${dt}px`:String(dt),Ve=parseFloat(String(bt||0))===0?Tt.createElement("span",{onClick:St,className:me()(`${lt}-zero-width-trigger`,`${lt}-zero-width-trigger-${ct?"right":"left"}`),style:qe},Fe||Tt.createElement(be,null)):null,ut={expanded:ct?Tt.createElement(ye.Z,null):Tt.createElement(Pe.Z,null),collapsed:ct?Tt.createElement(Pe.Z,null):Tt.createElement(ye.Z,null)}[mt?"collapsed":"expanded"],We=Fe!==null?Ve||Tt.createElement("div",{className:`${lt}-trigger`,onClick:St,style:{width:et}},Fe||ut):null,De=Object.assign(Object.assign({},Ke),{flex:`0 0 ${et}`,maxWidth:et,minWidth:et,width:et}),Ie=me()(lt,`${lt}-${ze}`,{[`${lt}-collapsed`]:!!mt,[`${lt}-has-trigger`]:ot&&Fe!==null&&!Ve,[`${lt}-below`]:!!At,[`${lt}-zero-width`]:parseFloat(et)===0},Oe);return Tt.createElement("aside",Object.assign({className:Ie},Pt,{style:De,ref:Le}),Tt.createElement("div",{className:`${lt}-children`},Re),ot||At&&Ve?We:null)},$e=Tt.useMemo(()=>({siderCollapsed:mt}),[mt]);return Tt.createElement(ue.Provider,{value:$e},ft())})},84966:function(bn,an,Ge){"use strict";Ge.d(an,{VY:function(){return ue},$_:function(){return le},h4:function(){return re},Gs:function(){return Se},ZP:function(){return pe}});var Qe=Ge(80702),Tt=Ge(92310),oe=Ge.n(Tt),_e=Ge(2738),Ne=Ge(59301),ve=Ge(36355),fe=Ge(83116),Pe=Ee=>{const{componentCls:Ce,bodyBg:je,lightSiderBg:Le,lightTriggerBg:ke,lightTriggerColor:Oe}=Ee;return{[`${Ce}-sider-light`]:{background:Le,[`${Ce}-sider-trigger`]:{color:Oe,background:ke},[`${Ce}-sider-zero-width-trigger`]:{color:Oe,background:ke,border:`1px solid ${je}`,borderInlineStart:0}}}};const ye=Ee=>{const{antCls:Ce,componentCls:je,colorText:Le,triggerColor:ke,footerBg:Oe,triggerBg:Fe,headerHeight:Re,headerPadding:Ze,headerColor:ze,footerPadding:Ke,triggerHeight:ot,zeroTriggerHeight:ct,zeroTriggerWidth:pt,motionDurationMid:bt,motionDurationSlow:qe,fontSize:at,borderRadius:gt,bodyBg:Ct,headerBg:wt,siderBg:vt}=Ee;return{[je]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ct,"&, *":{boxSizing:"border-box"},[`&${je}-has-sider`]:{flexDirection:"row",[`> ${je}, > ${je}-content`]:{width:0}},[`${je}-header, &${je}-footer`]:{flex:"0 0 auto"},[`${je}-sider`]:{position:"relative",minWidth:0,background:vt,transition:`all ${bt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ce}-menu${Ce}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:ot},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:ot,color:ke,lineHeight:`${ot}px`,textAlign:"center",background:Fe,cursor:"pointer",transition:`all ${bt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Re,insetInlineEnd:-pt,zIndex:1,width:pt,height:ct,color:ke,fontSize:Ee.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:vt,borderStartStartRadius:0,borderStartEndRadius:gt,borderEndEndRadius:gt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${qe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${qe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-pt,borderStartStartRadius:gt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:gt}}}}},Pe(Ee)),{"&-rtl":{direction:"rtl"}}),[`${je}-header`]:{height:Re,padding:Ze,color:ze,lineHeight:`${Re}px`,background:wt,[`${Ce}-menu`]:{lineHeight:"inherit"}},[`${je}-footer`]:{padding:Ke,color:Le,fontSize:at,background:Oe},[`${je}-content`]:{flex:"auto",minHeight:0}}};var we=(0,fe.Z)("Layout",Ee=>[ye(Ee)],Ee=>{const{colorBgLayout:Ce,controlHeight:je,controlHeightLG:Le,colorText:ke,controlHeightSM:Oe,marginXXS:Fe,colorTextLightSolid:Re,colorBgContainer:Ze}=Ee,ze=Le*1.25;return{colorBgHeader:"#001529",colorBgBody:Ce,colorBgTrigger:"#002140",bodyBg:Ce,headerBg:"#001529",headerHeight:je*2,headerPadding:`0 ${ze}px`,headerColor:ke,footerPadding:`${Oe}px ${ze}px`,footerBg:Ce,siderBg:"#001529",triggerHeight:Le+Fe*2,triggerBg:"#002140",triggerColor:Re,zeroTriggerWidth:Le,zeroTriggerHeight:Le,lightSiderBg:Ze,lightTriggerBg:Ze,lightTriggerColor:ke}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),me=function(Ee,Ce){var je={};for(var Le in Ee)Object.prototype.hasOwnProperty.call(Ee,Le)&&Ce.indexOf(Le)<0&&(je[Le]=Ee[Le]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Le=Object.getOwnPropertySymbols(Ee);ke<Le.length;ke++)Ce.indexOf(Le[ke])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Le[ke])&&(je[Le[ke]]=Ee[Le[ke]]);return je};const Se=Ne.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function de(Ee){let{suffixCls:Ce,tagName:je,displayName:Le}=Ee;return ke=>Ne.forwardRef((Fe,Re)=>Ne.createElement(ke,Object.assign({ref:Re,suffixCls:Ce,tagName:je},Fe)))}const z=Ne.forwardRef((Ee,Ce)=>{const{prefixCls:je,suffixCls:Le,className:ke,tagName:Oe}=Ee,Fe=me(Ee,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Re}=Ne.useContext(ve.E_),Ze=Re("layout",je),[ze,Ke]=we(Ze),ot=Le?`${Ze}-${Le}`:Ze;return ze(Ne.createElement(Oe,Object.assign({className:oe()(je||ot,ke,Ke),ref:Ce},Fe)))}),ee=Ne.forwardRef((Ee,Ce)=>{const{direction:je}=Ne.useContext(ve.E_),[Le,ke]=Ne.useState([]),{prefixCls:Oe,className:Fe,rootClassName:Re,children:Ze,hasSider:ze,tagName:Ke,style:ot}=Ee,ct=me(Ee,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),pt=(0,_e.Z)(ct,["suffixCls"]),{getPrefixCls:bt,layout:qe}=Ne.useContext(ve.E_),at=bt("layout",Oe),[gt,Ct]=we(at),wt=oe()(at,{[`${at}-has-sider`]:typeof ze=="boolean"?ze:Le.length>0,[`${at}-rtl`]:je==="rtl"},qe==null?void 0:qe.className,Fe,Re,Ct),vt=Ne.useMemo(()=>({siderHook:{addSider:mt=>{ke(xt=>[].concat((0,Qe.Z)(xt),[mt]))},removeSider:mt=>{ke(xt=>xt.filter(At=>At!==mt))}}}),[]);return gt(Ne.createElement(Se.Provider,{value:vt},Ne.createElement(Ke,Object.assign({ref:Ce,className:wt,style:Object.assign(Object.assign({},qe==null?void 0:qe.style),ot)},pt),Ze)))}),ae=de({tagName:"div",displayName:"Layout"})(ee),re=de({suffixCls:"header",tagName:"header",displayName:"Header"})(z),le=de({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(z),ue=de({suffixCls:"content",tagName:"main",displayName:"Content"})(z);var pe=ae},40875:function(bn,an,Ge){"use strict";Ge.d(an,{J:function(){return ve}});var Qe=Ge(59301),Tt=Ge(33234),oe=Ge(70425),_e=function(fe,be){var Pe={};for(var ye in fe)Object.prototype.hasOwnProperty.call(fe,ye)&&be.indexOf(ye)<0&&(Pe[ye]=fe[ye]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,ye=Object.getOwnPropertySymbols(fe);we<ye.length;we++)be.indexOf(ye[we])<0&&Object.prototype.propertyIsEnumerable.call(fe,ye[we])&&(Pe[ye[we]]=fe[ye[we]]);return Pe};const Ne=Qe.createContext(null),ve=Qe.forwardRef((fe,be)=>{const{children:Pe}=fe,ye=_e(fe,["children"]),we=Qe.useContext(Ne),me=Qe.useMemo(()=>Object.assign(Object.assign({},we),ye),[we,ye.prefixCls,ye.mode,ye.selectable]);return Qe.createElement(Ne.Provider,{value:me},Qe.createElement(Tt.BR,null,(0,oe.supportNodeRef)(Pe)?Qe.cloneElement(Pe,{ref:be}):Pe))});an.Z=Ne},20834:function(bn,an,Ge){"use strict";Ge.d(an,{default:function(){return $e}});var Qe=Ge(15285),Tt=Ge(59301),oe=Ge(45818),_e=Ge(92310),Ne=Ge.n(_e),ve=Ge(36355),fe=function(lt,Pt){var dt={};for(var et in lt)Object.prototype.hasOwnProperty.call(lt,et)&&Pt.indexOf(et)<0&&(dt[et]=lt[et]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,et=Object.getOwnPropertySymbols(lt);Ve<et.length;Ve++)Pt.indexOf(et[Ve])<0&&Object.prototype.propertyIsEnumerable.call(lt,et[Ve])&&(dt[et[Ve]]=lt[et[Ve]]);return dt},Pe=lt=>{const{prefixCls:Pt,className:dt,dashed:et}=lt,Ve=fe(lt,["prefixCls","className","dashed"]),{getPrefixCls:He}=Tt.useContext(ve.E_),nt=He("menu",Pt),ut=Ne()({[`${nt}-item-divider-dashed`]:!!et},dt);return Tt.createElement(Qe.iz,Object.assign({className:ut},Ve))},ye=Ge(11592),we=Ge(2738),me=Ge(6848),Se=Ge(92343),z=(0,Tt.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ae=lt=>{var Pt;const{className:dt,children:et,icon:Ve,title:He,danger:nt}=lt,{prefixCls:ut,firstLevel:We,direction:De,disableMenuItemTitleTooltip:Ie,inlineCollapsed:Xe}=Tt.useContext(z),yt=Ut=>{const tn=Tt.createElement("span",{className:`${ut}-title-content`},et);return(!Ve||(0,Se.l$)(et)&&et.type==="span")&&et&&Ut&&We&&typeof et=="string"?Tt.createElement("div",{className:`${ut}-inline-collapsed-noicon`},et.charAt(0)):tn},{siderCollapsed:Ye}=Tt.useContext(oe.D);let jt=He;typeof He=="undefined"?jt=We?et:"":He===!1&&(jt="");const Ht={title:jt};!Ye&&!Xe&&(Ht.title=null,Ht.open=!1);const en=(0,ye.Z)(et).length;let It=Tt.createElement(Qe.ck,Object.assign({},(0,we.Z)(lt,["title","icon","danger"]),{className:Ne()({[`${ut}-item-danger`]:nt,[`${ut}-item-only-child`]:(Ve?en+1:en)===1},dt),title:typeof He=="string"?He:void 0}),(0,Se.Tm)(Ve,{className:Ne()((0,Se.l$)(Ve)?(Pt=Ve.props)===null||Pt===void 0?void 0:Pt.className:"",`${ut}-item-icon`)}),yt(Xe));return Ie||(It=Tt.createElement(me.Z,Object.assign({},Ht,{placement:De==="rtl"?"left":"right",overlayClassName:`${ut}-inline-collapsed-tooltip`}),It)),It},le=lt=>{var Pt;const{popupClassName:dt,icon:et,title:Ve,theme:He}=lt,nt=Tt.useContext(z),{prefixCls:ut,inlineCollapsed:We,theme:De}=nt,Ie=(0,Qe.Xl)();let Xe;if(!et)Xe=We&&!Ie.length&&Ve&&typeof Ve=="string"?Tt.createElement("div",{className:`${ut}-inline-collapsed-noicon`},Ve.charAt(0)):Tt.createElement("span",{className:`${ut}-title-content`},Ve);else{const Ye=(0,Se.l$)(Ve)&&Ve.type==="span";Xe=Tt.createElement(Tt.Fragment,null,(0,Se.Tm)(et,{className:Ne()((0,Se.l$)(et)?(Pt=et.props)===null||Pt===void 0?void 0:Pt.className:"",`${ut}-item-icon`)}),Ye?Ve:Tt.createElement("span",{className:`${ut}-title-content`},Ve))}const yt=Tt.useMemo(()=>Object.assign(Object.assign({},nt),{firstLevel:!1}),[nt]);return Tt.createElement(z.Provider,{value:yt},Tt.createElement(Qe.Wd,Object.assign({},(0,we.Z)(lt,["icon"]),{title:Xe,popupClassName:Ne()(ut,dt,`${ut}-${He||De}`)})))},ue=Ge(18785),pe=Ge(70425),Ee=Ge(62892),Ce=Ge(40875),je=function(lt,Pt){var dt={};for(var et in lt)Object.prototype.hasOwnProperty.call(lt,et)&&Pt.indexOf(et)<0&&(dt[et]=lt[et]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,et=Object.getOwnPropertySymbols(lt);Ve<et.length;Ve++)Pt.indexOf(et[Ve])<0&&Object.prototype.propertyIsEnumerable.call(lt,et[Ve])&&(dt[et[Ve]]=lt[et[Ve]]);return dt};function Le(lt){return(lt||[]).map((Pt,dt)=>{if(Pt&&typeof Pt=="object"){const et=Pt,{label:Ve,children:He,key:nt,type:ut}=et,We=je(et,["label","children","key","type"]),De=nt!=null?nt:`tmp-${dt}`;return He||ut==="group"?ut==="group"?Tt.createElement(Qe.BW,Object.assign({key:De},We,{title:Ve}),Le(He)):Tt.createElement(le,Object.assign({key:De},We,{title:Ve}),Le(He)):ut==="divider"?Tt.createElement(Pe,Object.assign({key:De},We)):Tt.createElement(ae,Object.assign({key:De},We),Ve)}return null}).filter(Pt=>Pt)}function ke(lt){return Tt.useMemo(()=>lt&&Le(lt),[lt])}var Oe=Ge(64993),Fe=Ge(17313),Re=Ge(8378),Ze=Ge(13826),ze=Ge(29878),Ke=Ge(83116),ot=Ge(37613),pt=lt=>{const{componentCls:Pt,motionDurationSlow:dt,horizontalLineHeight:et,colorSplit:Ve,lineWidth:He,lineType:nt,itemPaddingInline:ut}=lt;return{[`${Pt}-horizontal`]:{lineHeight:et,border:0,borderBottom:`${He}px ${nt} ${Ve}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Pt}-item, ${Pt}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ut},[`> ${Pt}-item:hover,
|
|
|
> ${Pt}-item-active,
|
|
|
> ${Pt}-submenu ${Pt}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Pt}-item, ${Pt}-submenu-title`]:{transition:[`border-color ${dt}`,`background ${dt}`].join(",")},[`${Pt}-submenu-arrow`]:{display:"none"}}}},qe=lt=>{let{componentCls:Pt,menuArrowOffset:dt}=lt;return{[`${Pt}-rtl`]:{direction:"rtl"},[`${Pt}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Pt}-rtl${Pt}-vertical,
|
|
|
${Pt}-submenu-rtl ${Pt}-vertical`]:{[`${Pt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${dt})`},"&::after":{transform:`rotate(45deg) translateY(${dt})`}}}}};const at=lt=>Object.assign({},(0,Fe.oN)(lt));var Ct=(lt,Pt)=>{const{componentCls:dt,itemColor:et,itemSelectedColor:Ve,groupTitleColor:He,itemBg:nt,subMenuItemBg:ut,itemSelectedBg:We,activeBarHeight:De,activeBarWidth:Ie,activeBarBorderWidth:Xe,motionDurationSlow:yt,motionEaseInOut:Ye,motionEaseOut:jt,itemPaddingInline:Ht,motionDurationMid:en,itemHoverColor:It,lineType:Ut,colorSplit:tn,itemDisabledColor:ln,dangerItemColor:mn,dangerItemHoverColor:jn,dangerItemSelectedColor:Vn,dangerItemActiveBg:Kn,dangerItemSelectedBg:ar,itemHoverBg:xr,itemActiveBg:gr,menuSubMenuBg:dr,horizontalItemSelectedColor:Tr,horizontalItemSelectedBg:Rr,horizontalItemBorderRadius:Zr,horizontalItemHoverBg:ei,popupBg:jr}=lt;return{[`${dt}-${Pt}, ${dt}-${Pt} > ${dt}`]:{color:et,background:nt,[`&${dt}-root:focus-visible`]:Object.assign({},at(lt)),[`${dt}-item-group-title`]:{color:He},[`${dt}-submenu-selected`]:{[`> ${dt}-submenu-title`]:{color:Ve}},[`${dt}-item-disabled, ${dt}-submenu-disabled`]:{color:`${ln} !important`},[`${dt}-item:not(${dt}-item-selected):not(${dt}-submenu-selected)`]:{[`&:hover, > ${dt}-submenu-title:hover`]:{color:It}},[`&:not(${dt}-horizontal)`]:{[`${dt}-item:not(${dt}-item-selected)`]:{"&:hover":{backgroundColor:xr},"&:active":{backgroundColor:gr}},[`${dt}-submenu-title`]:{"&:hover":{backgroundColor:xr},"&:active":{backgroundColor:gr}}},[`${dt}-item-danger`]:{color:mn,[`&${dt}-item:hover`]:{[`&:not(${dt}-item-selected):not(${dt}-submenu-selected)`]:{color:jn}},[`&${dt}-item:active`]:{background:Kn}},[`${dt}-item a`]:{"&, &:hover":{color:"inherit"}},[`${dt}-item-selected`]:{color:Ve,[`&${dt}-item-danger`]:{color:Vn},"a, a:hover":{color:"inherit"}},[`& ${dt}-item-selected`]:{backgroundColor:We,[`&${dt}-item-danger`]:{backgroundColor:ar}},[`${dt}-item, ${dt}-submenu-title`]:{[`&:not(${dt}-item-disabled):focus-visible`]:Object.assign({},at(lt))},[`&${dt}-submenu > ${dt}`]:{backgroundColor:dr},[`&${dt}-popup > ${dt}`]:{backgroundColor:jr},[`&${dt}-horizontal`]:Object.assign(Object.assign({},Pt==="dark"?{borderBottom:0}:{}),{[`> ${dt}-item, > ${dt}-submenu`]:{top:Xe,marginTop:-Xe,marginBottom:0,borderRadius:Zr,"&::after":{position:"absolute",insetInline:Ht,bottom:0,borderBottom:`${De}px solid transparent`,transition:`border-color ${yt} ${Ye}`,content:'""'},"&:hover, &-active, &-open":{background:ei,"&::after":{borderBottomWidth:De,borderBottomColor:Tr}},"&-selected":{color:Tr,backgroundColor:Rr,"&:hover":{backgroundColor:Rr},"&::after":{borderBottomWidth:De,borderBottomColor:Tr}}}}),[`&${dt}-root`]:{[`&${dt}-inline, &${dt}-vertical`]:{borderInlineEnd:`${Xe}px ${Ut} ${tn}`}},[`&${dt}-inline`]:{[`${dt}-sub${dt}-inline`]:{background:ut},[`${dt}-item, ${dt}-submenu-title`]:Xe&&Ie?{width:`calc(100% + ${Xe}px)`}:{},[`${dt}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ie}px solid ${Ve}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${en} ${jt}`,`opacity ${en} ${jt}`].join(","),content:'""'},[`&${dt}-item-danger`]:{"&::after":{borderInlineEndColor:Vn}}},[`${dt}-selected, ${dt}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${en} ${Ye}`,`opacity ${en} ${Ye}`].join(",")}}}}}};const wt=lt=>{const{componentCls:Pt,itemHeight:dt,itemMarginInline:et,padding:Ve,menuArrowSize:He,marginXS:nt,itemMarginBlock:ut}=lt,We=Ve+He+nt;return{[`${Pt}-item`]:{position:"relative",overflow:"hidden"},[`${Pt}-item, ${Pt}-submenu-title`]:{height:dt,lineHeight:`${dt}px`,paddingInline:Ve,overflow:"hidden",textOverflow:"ellipsis",marginInline:et,marginBlock:ut,width:`calc(100% - ${et*2}px)`},[`> ${Pt}-item,
|
|
|
> ${Pt}-submenu > ${Pt}-submenu-title`]:{height:dt,lineHeight:`${dt}px`},[`${Pt}-item-group-list ${Pt}-submenu-title,
|
|
|
${Pt}-submenu-title`]:{paddingInlineEnd:We}}};var mt=lt=>{const{componentCls:Pt,iconCls:dt,itemHeight:et,colorTextLightSolid:Ve,dropdownWidth:He,controlHeightLG:nt,motionDurationMid:ut,motionEaseOut:We,paddingXL:De,itemMarginInline:Ie,fontSizeLG:Xe,motionDurationSlow:yt,paddingXS:Ye,boxShadowSecondary:jt,collapsedWidth:Ht,collapsedIconSize:en}=lt,It={height:et,lineHeight:`${et}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Pt]:{"&-inline, &-vertical":Object.assign({[`&${Pt}-root`]:{boxShadow:"none"}},wt(lt))},[`${Pt}-submenu-popup`]:{[`${Pt}-vertical`]:Object.assign(Object.assign({},wt(lt)),{boxShadow:jt})}},{[`${Pt}-submenu-popup ${Pt}-vertical${Pt}-sub`]:{minWidth:He,maxHeight:`calc(100vh - ${nt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Pt}-inline`]:{width:"100%",[`&${Pt}-root`]:{[`${Pt}-item, ${Pt}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${yt}`,`background ${yt}`,`padding ${ut} ${We}`].join(","),[`> ${Pt}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Pt}-sub${Pt}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Pt}-submenu > ${Pt}-submenu-title`]:It,[`& ${Pt}-item-group-title`]:{paddingInlineStart:De}},[`${Pt}-item`]:It}},{[`${Pt}-inline-collapsed`]:{width:Ht,[`&${Pt}-root`]:{[`${Pt}-item, ${Pt}-submenu ${Pt}-submenu-title`]:{[`> ${Pt}-inline-collapsed-noicon`]:{fontSize:Xe,textAlign:"center"}}},[`> ${Pt}-item,
|
|
|
> ${Pt}-item-group > ${Pt}-item-group-list > ${Pt}-item,
|
|
|
> ${Pt}-item-group > ${Pt}-item-group-list > ${Pt}-submenu > ${Pt}-submenu-title,
|
|
|
> ${Pt}-submenu > ${Pt}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Xe/2}px - ${Ie}px)`,textOverflow:"clip",[`
|
|
|
${Pt}-submenu-arrow,
|
|
|
${Pt}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${Pt}-item-icon, ${dt}`]:{margin:0,fontSize:en,lineHeight:`${et}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Pt}-item-icon, ${dt}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Pt}-item-icon, ${dt}`]:{display:"none"},"a, a:hover":{color:Ve}},[`${Pt}-item-group-title`]:Object.assign(Object.assign({},Fe.vS),{paddingInline:Ye})}}]};const xt=lt=>{const{componentCls:Pt,motionDurationSlow:dt,motionDurationMid:et,motionEaseInOut:Ve,motionEaseOut:He,iconCls:nt,iconSize:ut,iconMarginInlineEnd:We}=lt;return{[`${Pt}-item, ${Pt}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${dt}`,`background ${dt}`,`padding ${dt} ${Ve}`].join(","),[`${Pt}-item-icon, ${nt}`]:{minWidth:ut,fontSize:ut,transition:[`font-size ${et} ${He}`,`margin ${dt} ${Ve}`,`color ${dt}`].join(","),"+ span":{marginInlineStart:We,opacity:1,transition:[`opacity ${dt} ${Ve}`,`margin ${dt}`,`color ${dt}`].join(",")}},[`${Pt}-item-icon`]:Object.assign({},(0,Fe.Ro)()),[`&${Pt}-item-only-child`]:{[`> ${nt}, > ${Pt}-item-icon`]:{marginInlineEnd:0}}},[`${Pt}-item-disabled, ${Pt}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Pt}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},At=lt=>{const{componentCls:Pt,motionDurationSlow:dt,motionEaseInOut:et,borderRadius:Ve,menuArrowSize:He,menuArrowOffset:nt}=lt;return{[`${Pt}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:lt.margin,width:He,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${dt} ${et}, opacity ${dt}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:He*.6,height:He*.15,backgroundColor:"currentcolor",borderRadius:Ve,transition:[`background ${dt} ${et}`,`transform ${dt} ${et}`,`top ${dt} ${et}`,`color ${dt} ${et}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${nt})`},"&::after":{transform:`rotate(-45deg) translateY(${nt})`}}}}},kt=lt=>{const{antCls:Pt,componentCls:dt,fontSize:et,motionDurationSlow:Ve,motionDurationMid:He,motionEaseInOut:nt,paddingXS:ut,padding:We,colorSplit:De,lineWidth:Ie,zIndexPopup:Xe,borderRadiusLG:yt,subMenuItemBorderRadius:Ye,menuArrowSize:jt,menuArrowOffset:Ht,lineType:en,menuPanelMaskInset:It,groupTitleLineHeight:Ut,groupTitleFontSize:tn}=lt;return[{"":{[`${dt}`]:Object.assign(Object.assign({},(0,Fe.dF)()),{"&-hidden":{display:"none"}})},[`${dt}-submenu-hidden`]:{display:"none"}},{[dt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Fe.Wf)(lt)),(0,Fe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:et,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ve} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${dt}-item`]:{flex:"none"}},[`${dt}-item, ${dt}-submenu, ${dt}-submenu-title`]:{borderRadius:lt.itemBorderRadius},[`${dt}-item-group-title`]:{padding:`${ut}px ${We}px`,fontSize:tn,lineHeight:Ut,transition:`all ${Ve}`},[`&-horizontal ${dt}-submenu`]:{transition:[`border-color ${Ve} ${nt}`,`background ${Ve} ${nt}`].join(",")},[`${dt}-submenu, ${dt}-submenu-inline`]:{transition:[`border-color ${Ve} ${nt}`,`background ${Ve} ${nt}`,`padding ${He} ${nt}`].join(",")},[`${dt}-submenu ${dt}-sub`]:{cursor:"initial",transition:[`background ${Ve} ${nt}`,`padding ${Ve} ${nt}`].join(",")},[`${dt}-title-content`]:{transition:`color ${Ve}`},[`${dt}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${dt}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:De,borderStyle:en,borderWidth:0,borderTopWidth:Ie,marginBlock:Ie,padding:0,"&-dashed":{borderStyle:"dashed"}}}),xt(lt)),{[`${dt}-item-group`]:{[`${dt}-item-group-list`]:{margin:0,padding:0,[`${dt}-item, ${dt}-submenu-title`]:{paddingInline:`${et*2}px ${We}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Xe,borderRadius:yt,boxShadow:"none",transformOrigin:"0 0",[`&${dt}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${It}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:It},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:lt.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:lt.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:lt.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:lt.paddingXS},[`> ${dt}`]:Object.assign(Object.assign(Object.assign({borderRadius:yt},xt(lt)),At(lt)),{[`${dt}-item, ${dt}-submenu > ${dt}-submenu-title`]:{borderRadius:Ye},[`${dt}-submenu-title::after`]:{transition:`transform ${Ve} ${nt}`}})}}),At(lt)),{[`&-inline-collapsed ${dt}-submenu-arrow,
|
|
|
&-inline ${dt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ht})`},"&::after":{transform:`rotate(45deg) translateX(-${Ht})`}},[`${dt}-submenu-open${dt}-submenu-inline > ${dt}-submenu-title > ${dt}-submenu-arrow`]:{transform:`translateY(-${jt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Ht})`},"&::before":{transform:`rotate(45deg) translateX(${Ht})`}}})},{[`${Pt}-layout-header`]:{[dt]:{lineHeight:"inherit"}}}]};var Wt=(lt,Pt)=>(0,Ke.Z)("Menu",et=>{if(Pt===!1)return[];const{colorBgElevated:Ve,colorPrimary:He,colorTextLightSolid:nt,controlHeightLG:ut,fontSize:We,darkItemColor:De,darkDangerItemColor:Ie,darkItemBg:Xe,darkSubMenuItemBg:yt,darkItemSelectedColor:Ye,darkItemSelectedBg:jt,darkDangerItemSelectedBg:Ht,darkItemHoverBg:en,darkGroupTitleColor:It,darkItemHoverColor:Ut,darkItemDisabledColor:tn,darkDangerItemHoverColor:ln,darkDangerItemSelectedColor:mn,darkDangerItemActiveBg:jn}=et,Vn=We/7*5,Kn=(0,ot.TS)(et,{menuArrowSize:Vn,menuHorizontalHeight:ut*1.15,menuArrowOffset:`${Vn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ve}),ar=(0,ot.TS)(Kn,{itemColor:De,itemHoverColor:Ut,groupTitleColor:It,itemSelectedColor:Ye,itemBg:Xe,popupBg:Xe,subMenuItemBg:yt,itemActiveBg:"transparent",itemSelectedBg:jt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:en,itemDisabledColor:tn,dangerItemColor:Ie,dangerItemHoverColor:ln,dangerItemSelectedColor:mn,dangerItemActiveBg:jn,dangerItemSelectedBg:Ht,menuSubMenuBg:yt,horizontalItemSelectedColor:nt,horizontalItemSelectedBg:He});return[kt(Kn),pt(Kn),mt(Kn),Ct(Kn,"light"),Ct(ar,"dark"),qe(Kn),(0,Re.Z)(Kn),(0,Ze.oN)(Kn,"slide-up"),(0,Ze.oN)(Kn,"slide-down"),(0,ze._y)(Kn,"zoom-big")]},et=>{const{colorPrimary:Ve,colorError:He,colorTextDisabled:nt,colorErrorBg:ut,colorText:We,colorTextDescription:De,colorBgContainer:Ie,colorFillAlter:Xe,colorFillContent:yt,lineWidth:Ye,lineWidthBold:jt,controlItemBgActive:Ht,colorBgTextHover:en,controlHeightLG:It,lineHeight:Ut,colorBgElevated:tn,marginXXS:ln,padding:mn,fontSize:jn,controlHeightSM:Vn,fontSizeLG:Kn,colorTextLightSolid:ar,colorErrorHover:xr}=et,gr=new Oe.C(ar).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:et.zIndexPopupBase+50,radiusItem:et.borderRadiusLG,itemBorderRadius:et.borderRadiusLG,radiusSubMenuItem:et.borderRadiusSM,subMenuItemBorderRadius:et.borderRadiusSM,colorItemText:We,itemColor:We,colorItemTextHover:We,itemHoverColor:We,colorItemTextHoverHorizontal:Ve,horizontalItemHoverColor:Ve,colorGroupTitle:De,groupTitleColor:De,colorItemTextSelected:Ve,itemSelectedColor:Ve,colorItemTextSelectedHorizontal:Ve,horizontalItemSelectedColor:Ve,colorItemBg:Ie,itemBg:Ie,colorItemBgHover:en,itemHoverBg:en,colorItemBgActive:yt,itemActiveBg:Ht,colorSubItemBg:Xe,subMenuItemBg:Xe,colorItemBgSelected:Ht,itemSelectedBg:Ht,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:jt,activeBarHeight:jt,colorActiveBarBorderSize:Ye,activeBarBorderWidth:Ye,colorItemTextDisabled:nt,itemDisabledColor:nt,colorDangerItemText:He,dangerItemColor:He,colorDangerItemTextHover:He,dangerItemHoverColor:He,colorDangerItemTextSelected:He,dangerItemSelectedColor:He,colorDangerItemBgActive:ut,dangerItemActiveBg:ut,colorDangerItemBgSelected:ut,dangerItemSelectedBg:ut,itemMarginInline:et.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:It,groupTitleLineHeight:Ut,collapsedWidth:It*2,popupBg:tn,itemMarginBlock:ln,itemPaddingInline:mn,horizontalLineHeight:`${It*1.15}px`,iconSize:jn,iconMarginInlineEnd:Vn-jn,collapsedIconSize:Kn,groupTitleFontSize:jn,darkItemDisabledColor:new Oe.C(ar).setAlpha(.25).toRgbString(),darkItemColor:gr,darkDangerItemColor:He,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:ar,darkItemSelectedBg:Ve,darkDangerItemSelectedBg:He,darkItemHoverBg:"transparent",darkGroupTitleColor:gr,darkItemHoverColor:ar,darkDangerItemHoverColor:xr,darkDangerItemSelectedColor:ar,darkDangerItemActiveBg:He}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(lt),Et=function(lt,Pt){var dt={};for(var et in lt)Object.prototype.hasOwnProperty.call(lt,et)&&Pt.indexOf(et)<0&&(dt[et]=lt[et]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,et=Object.getOwnPropertySymbols(lt);Ve<et.length;Ve++)Pt.indexOf(et[Ve])<0&&Object.prototype.propertyIsEnumerable.call(lt,et[Ve])&&(dt[et[Ve]]=lt[et[Ve]]);return dt},tt=(0,Tt.forwardRef)((lt,Pt)=>{var dt,et;const Ve=Tt.useContext(Ce.Z),He=Ve||{},{getPrefixCls:nt,getPopupContainer:ut,direction:We,menu:De}=Tt.useContext(ve.E_),Ie=nt(),{prefixCls:Xe,className:yt,style:Ye,theme:jt="light",expandIcon:Ht,_internalDisableMenuItemTitleTooltip:en,inlineCollapsed:It,siderCollapsed:Ut,items:tn,children:ln,rootClassName:mn,mode:jn,selectable:Vn,onClick:Kn,overflowedIndicatorPopupClassName:ar}=lt,xr=Et(lt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),gr=(0,we.Z)(xr,["collapsedWidth"]),dr=ke(tn)||ln;(dt=He.validator)===null||dt===void 0||dt.call(He,{mode:jn});const Tr=(0,pe.useEvent)(function(){var vr;Kn==null||Kn.apply(void 0,arguments),(vr=He.onClick)===null||vr===void 0||vr.call(He)}),Rr=He.mode||jn,Zr=Vn!=null?Vn:He.selectable,ei=Tt.useMemo(()=>Ut!==void 0?Ut:It,[It,Ut]),jr={horizontal:{motionName:`${Ie}-slide-up`},inline:(0,Ee.Z)(Ie),other:{motionName:`${Ie}-zoom-big`}},it=nt("menu",Xe||He.prefixCls),[Qr,$r]=Wt(it,!Ve),En=Ne()(`${it}-${jt}`,De==null?void 0:De.className,yt);let er;if(typeof Ht=="function")er=Ht;else if(Ht===null||Ht===!1)er=null;else if(He.expandIcon===null||He.expandIcon===!1)er=null;else{const vr=Ht!=null?Ht:He.expandIcon;er=(0,Se.Tm)(vr,{className:Ne()(`${it}-submenu-expand-icon`,(0,Se.l$)(vr)?(et=vr.props)===null||et===void 0?void 0:et.className:"")})}const rr=Tt.useMemo(()=>({prefixCls:it,inlineCollapsed:ei||!1,direction:We,firstLevel:!0,theme:jt,mode:Rr,disableMenuItemTitleTooltip:en}),[it,ei,We,en,jt]);return Qr(Tt.createElement(Ce.Z.Provider,{value:null},Tt.createElement(z.Provider,{value:rr},Tt.createElement(Qe.ZP,Object.assign({getPopupContainer:ut,overflowedIndicator:Tt.createElement(ue.Z,null),overflowedIndicatorPopupClassName:Ne()(it,`${it}-${jt}`,ar),mode:Rr,selectable:Zr,onClick:Tr},gr,{inlineCollapsed:ei,style:Object.assign(Object.assign({},De==null?void 0:De.style),Ye),className:En,prefixCls:it,direction:We,defaultMotions:jr,expandIcon:er,ref:Pt,rootClassName:Ne()(mn,$r)}),dr))))});const ft=(0,Tt.forwardRef)((lt,Pt)=>{const dt=(0,Tt.useRef)(null),et=Tt.useContext(oe.D);return(0,Tt.useImperativeHandle)(Pt,()=>({menu:dt.current,focus:Ve=>{var He;(He=dt.current)===null||He===void 0||He.focus(Ve)}})),Tt.createElement(tt,Object.assign({ref:dt},lt,et))});ft.Item=ae,ft.SubMenu=le,ft.Divider=Pe,ft.ItemGroup=Qe.BW;var $e=ft},14478:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Oe}});var Qe=Ge(96512),Tt=Ge(92310),oe=Ge.n(Tt),_e=Ge(10228),Ne=Ge(18929),ve=Ge(2738),fe=Ge(59301),be=Ge(92343),Pe=Ge(36355),ye=Ge(60324),we=Ge(92806),me=Ge(77578),Se=Ge(3113),de=Ge(67797),z=Ge(9763),ee=Ge(31724),ae=Ge(39722),re=Ge(83116);const le=Fe=>{const{componentCls:Re,iconCls:Ze,antCls:ze,zIndexPopup:Ke,colorText:ot,colorWarning:ct,marginXXS:pt,marginXS:bt,fontSize:qe,fontWeightStrong:at,colorTextHeading:gt}=Fe;return{[Re]:{zIndex:Ke,[`&${ze}-popover`]:{fontSize:qe},[`${Re}-message`]:{marginBottom:bt,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Re}-message-icon ${Ze}`]:{color:ct,fontSize:qe,lineHeight:1,marginInlineEnd:bt},[`${Re}-title`]:{fontWeight:at,color:gt,"&:only-child":{fontWeight:"normal"}},[`${Re}-description`]:{marginTop:pt,color:ot}},[`${Re}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:bt}}}}};var ue=(0,re.Z)("Popconfirm",Fe=>le(Fe),Fe=>{const{zIndexPopupBase:Re}=Fe;return{zIndexPopup:Re+60}},{resetStyle:!1}),pe=function(Fe,Re){var Ze={};for(var ze in Fe)Object.prototype.hasOwnProperty.call(Fe,ze)&&Re.indexOf(ze)<0&&(Ze[ze]=Fe[ze]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,ze=Object.getOwnPropertySymbols(Fe);Ke<ze.length;Ke++)Re.indexOf(ze[Ke])<0&&Object.prototype.propertyIsEnumerable.call(Fe,ze[Ke])&&(Ze[ze[Ke]]=Fe[ze[Ke]]);return Ze};const Ee=Fe=>{const{prefixCls:Re,okButtonProps:Ze,cancelButtonProps:ze,title:Ke,description:ot,cancelText:ct,okText:pt,okType:bt="primary",icon:qe=fe.createElement(Qe.Z,null),showCancel:at=!0,close:gt,onConfirm:Ct,onCancel:wt,onPopupClick:vt}=Fe,{getPrefixCls:mt}=fe.useContext(Pe.E_),[xt]=(0,z.Z)("Popconfirm",ee.Z.Popconfirm),At=(0,me.Z)(Ke),kt=(0,me.Z)(ot);return fe.createElement("div",{className:`${Re}-inner-content`,onClick:vt},fe.createElement("div",{className:`${Re}-message`},qe&&fe.createElement("span",{className:`${Re}-message-icon`},qe),fe.createElement("div",{className:`${Re}-message-text`},At&&fe.createElement("div",{className:oe()(`${Re}-title`)},At),kt&&fe.createElement("div",{className:`${Re}-description`},kt))),fe.createElement("div",{className:`${Re}-buttons`},at&&fe.createElement(Se.ZP,Object.assign({onClick:wt,size:"small"},ze),ct!=null?ct:xt==null?void 0:xt.cancelText),fe.createElement(we.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,de.n)(bt)),Ze),actionFn:Ct,close:gt,prefixCls:mt("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},pt!=null?pt:xt==null?void 0:xt.okText)))};var je=Fe=>{const{prefixCls:Re,placement:Ze,className:ze,style:Ke}=Fe,ot=pe(Fe,["prefixCls","placement","className","style"]),{getPrefixCls:ct}=fe.useContext(Pe.E_),pt=ct("popconfirm",Re),[bt]=ue(pt);return bt(fe.createElement(ae.ZP,{placement:Ze,className:oe()(pt,ze),style:Ke,content:fe.createElement(Ee,Object.assign({prefixCls:pt},ot))}))},Le=function(Fe,Re){var Ze={};for(var ze in Fe)Object.prototype.hasOwnProperty.call(Fe,ze)&&Re.indexOf(ze)<0&&(Ze[ze]=Fe[ze]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,ze=Object.getOwnPropertySymbols(Fe);Ke<ze.length;Ke++)Re.indexOf(ze[Ke])<0&&Object.prototype.propertyIsEnumerable.call(Fe,ze[Ke])&&(Ze[ze[Ke]]=Fe[ze[Ke]]);return Ze};const ke=fe.forwardRef((Fe,Re)=>{const{prefixCls:Ze,placement:ze="top",trigger:Ke="click",okType:ot="primary",icon:ct=fe.createElement(Qe.Z,null),children:pt,overlayClassName:bt,onOpenChange:qe,onVisibleChange:at}=Fe,gt=Le(Fe,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:Ct}=fe.useContext(Pe.E_),[wt,vt]=(0,Ne.Z)(!1,{value:Fe.open,defaultValue:Fe.defaultOpen}),mt=($e,lt)=>{vt($e,!0),at==null||at($e),qe==null||qe($e,lt)},xt=$e=>{mt(!1,$e)},At=$e=>{var lt;return(lt=Fe.onConfirm)===null||lt===void 0?void 0:lt.call(void 0,$e)},kt=$e=>{var lt;mt(!1,$e),(lt=Fe.onCancel)===null||lt===void 0||lt.call(void 0,$e)},Wt=$e=>{$e.keyCode===_e.Z.ESC&&wt&&mt(!1,$e)},Et=$e=>{const{disabled:lt=!1}=Fe;lt||mt($e)},St=Ct("popconfirm",Ze),tt=oe()(St,bt),[ft]=ue(St);return ft(fe.createElement(ye.Z,Object.assign({},(0,ve.Z)(gt,["title"]),{trigger:Ke,placement:ze,onOpenChange:Et,open:wt,ref:Re,overlayClassName:tt,content:fe.createElement(Ee,Object.assign({okType:ot,icon:ct},Fe,{prefixCls:St,close:xt,onConfirm:At,onCancel:kt})),"data-popover-inject":!0}),(0,be.Tm)(pt,{onKeyDown:$e=>{var lt,Pt;fe.isValidElement(pt)&&((Pt=pt==null?void 0:(lt=pt.props).onKeyDown)===null||Pt===void 0||Pt.call(lt,$e)),Wt($e)}})))});ke._InternalPanelDoNotUseOrYouWillBeFired=je;var Oe=ke},39722:function(bn,an,Ge){"use strict";Ge.d(an,{t5:function(){return ye}});var Qe=Ge(92310),Tt=Ge.n(Qe),oe=Ge(55477),_e=Ge(59301),Ne=Ge(36355),ve=Ge(77578),fe=Ge(17356),be=function(me,Se){var de={};for(var z in me)Object.prototype.hasOwnProperty.call(me,z)&&Se.indexOf(z)<0&&(de[z]=me[z]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,z=Object.getOwnPropertySymbols(me);ee<z.length;ee++)Se.indexOf(z[ee])<0&&Object.prototype.propertyIsEnumerable.call(me,z[ee])&&(de[z[ee]]=me[z[ee]]);return de};const Pe=(me,Se,de)=>{if(!(!Se&&!de))return _e.createElement(_e.Fragment,null,Se&&_e.createElement("div",{className:`${me}-title`},(0,ve.Z)(Se)),_e.createElement("div",{className:`${me}-inner-content`},(0,ve.Z)(de)))},ye=me=>{const{hashId:Se,prefixCls:de,className:z,style:ee,placement:ae="top",title:re,content:le,children:ue}=me;return _e.createElement("div",{className:Tt()(Se,de,`${de}-pure`,`${de}-placement-${ae}`,z),style:ee},_e.createElement("div",{className:`${de}-arrow`}),_e.createElement(oe.G,Object.assign({},me,{className:Se,prefixCls:de}),ue||Pe(de,re,le)))},we=me=>{const{prefixCls:Se}=me,de=be(me,["prefixCls"]),{getPrefixCls:z}=_e.useContext(Ne.E_),ee=z("popover",Se),[ae,re]=(0,fe.Z)(ee);return ae(_e.createElement(ye,Object.assign({},de,{prefixCls:ee,hashId:re})))};an.ZP=we},60324:function(bn,an,Ge){"use strict";var Qe=Ge(92310),Tt=Ge.n(Qe),oe=Ge(59301),_e=Ge(77578),Ne=Ge(62892),ve=Ge(36355),fe=Ge(6848),be=Ge(39722),Pe=Ge(17356),ye=function(Se,de){var z={};for(var ee in Se)Object.prototype.hasOwnProperty.call(Se,ee)&&de.indexOf(ee)<0&&(z[ee]=Se[ee]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,ee=Object.getOwnPropertySymbols(Se);ae<ee.length;ae++)de.indexOf(ee[ae])<0&&Object.prototype.propertyIsEnumerable.call(Se,ee[ae])&&(z[ee[ae]]=Se[ee[ae]]);return z};const we=Se=>{let{title:de,content:z,prefixCls:ee}=Se;return oe.createElement(oe.Fragment,null,de&&oe.createElement("div",{className:`${ee}-title`},(0,_e.Z)(de)),oe.createElement("div",{className:`${ee}-inner-content`},(0,_e.Z)(z)))},me=oe.forwardRef((Se,de)=>{const{prefixCls:z,title:ee,content:ae,overlayClassName:re,placement:le="top",trigger:ue="hover",mouseEnterDelay:pe=.1,mouseLeaveDelay:Ee=.1,overlayStyle:Ce={}}=Se,je=ye(Se,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Le}=oe.useContext(ve.E_),ke=Le("popover",z),[Oe,Fe]=(0,Pe.Z)(ke),Re=Le(),Ze=Tt()(re,Fe);return Oe(oe.createElement(fe.Z,Object.assign({placement:le,trigger:ue,mouseEnterDelay:pe,mouseLeaveDelay:Ee,overlayStyle:Ce},je,{prefixCls:ke,overlayClassName:Ze,ref:de,overlay:ee||ae?oe.createElement(we,{prefixCls:ke,title:ee,content:ae}):null,transitionName:(0,Ne.m)(Re,"zoom-big",je.transitionName),"data-popover-inject":!0})))});me._InternalPanelDoNotUseOrYouWillBeFired=be.ZP,an.Z=me},17356:function(bn,an,Ge){"use strict";var Qe=Ge(17313),Tt=Ge(29878),oe=Ge(19447),_e=Ge(33166),Ne=Ge(83116),ve=Ge(37613);const fe=ye=>{const{componentCls:we,popoverColor:me,minWidth:Se,fontWeightStrong:de,popoverPadding:z,boxShadowSecondary:ee,colorTextHeading:ae,borderRadiusLG:re,zIndexPopup:le,marginXS:ue,colorBgElevated:pe,popoverBg:Ee}=ye;return[{[we]:Object.assign(Object.assign({},(0,Qe.Wf)(ye)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:le,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":pe,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${we}-content`]:{position:"relative"},[`${we}-inner`]:{backgroundColor:Ee,backgroundClip:"padding-box",borderRadius:re,boxShadow:ee,padding:z},[`${we}-title`]:{minWidth:Se,marginBottom:ue,color:ae,fontWeight:de},[`${we}-inner-content`]:{color:me}})},(0,oe.ZP)(ye,{colorBg:"var(--antd-arrow-background-color)"}),{[`${we}-pure`]:{position:"relative",maxWidth:"none",margin:ye.sizePopupArrow,display:"inline-block",[`${we}-content`]:{display:"inline-block"}}}]},be=ye=>{const{componentCls:we}=ye;return{[we]:_e.i.map(me=>{const Se=ye[`${me}6`];return{[`&${we}-${me}`]:{"--antd-arrow-background-color":Se,[`${we}-inner`]:{backgroundColor:Se},[`${we}-arrow`]:{background:"transparent"}}}})}},Pe=ye=>{const{componentCls:we,lineWidth:me,lineType:Se,colorSplit:de,paddingSM:z,controlHeight:ee,fontSize:ae,lineHeight:re,padding:le}=ye,ue=ee-Math.round(ae*re),pe=ue/2,Ee=ue/2-me,Ce=le;return{[we]:{[`${we}-inner`]:{padding:0},[`${we}-title`]:{margin:0,padding:`${pe}px ${Ce}px ${Ee}px`,borderBottom:`${me}px ${Se} ${de}`},[`${we}-inner-content`]:{padding:`${z}px ${Ce}px`}}}};an.Z=(0,Ne.Z)("Popover",ye=>{const{colorBgElevated:we,colorText:me,wireframe:Se}=ye,de=(0,ve.TS)(ye,{popoverPadding:12,popoverBg:we,popoverColor:me});return[fe(de),be(de),Se&&Pe(de),(0,Tt._y)(de,"zoom-big")]},ye=>({width:177,minWidth:177,zIndexPopup:ye.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},93948:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return en}});var Qe=Ge(59301),Tt=Ge(29679),oe=Ge(40001),_e=Ge(19248),Ne=Ge(99267),ve=Ge(92310),fe=Ge.n(ve),be=Ge(2738),Pe=Ge(36355),ye=Ge(72308),we=Ge(77321),me=Ge(74416),Se={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},de=function(){var Ut=(0,Qe.useRef)([]),tn=(0,Qe.useRef)(null);return(0,Qe.useEffect)(function(){var ln=Date.now(),mn=!1;Ut.current.forEach(function(jn){if(jn){mn=!0;var Vn=jn.style;Vn.transitionDuration=".3s, .3s, .3s, .06s",tn.current&&ln-tn.current<100&&(Vn.transitionDuration="0s, 0s")}}),mn&&(tn.current=Date.now())}),Ut.current},z=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ee=function(Ut){var tn=(0,we.Z)((0,we.Z)({},Se),Ut),ln=tn.className,mn=tn.percent,jn=tn.prefixCls,Vn=tn.strokeColor,Kn=tn.strokeLinecap,ar=tn.strokeWidth,xr=tn.style,gr=tn.trailColor,dr=tn.trailWidth,Tr=tn.transition,Rr=(0,me.Z)(tn,z);delete Rr.gapPosition;var Zr=Array.isArray(mn)?mn:[mn],ei=Array.isArray(Vn)?Vn:[Vn],jr=de(),it=ar/2,Qr=100-ar/2,$r="M ".concat(Kn==="round"?it:0,",").concat(it,`
|
|
|
L `).concat(Kn==="round"?Qr:100,",").concat(it),En="0 0 100 ".concat(ar),er=0;return Qe.createElement("svg",(0,ye.Z)({className:fe()("".concat(jn,"-line"),ln),viewBox:En,preserveAspectRatio:"none",style:xr},Rr),Qe.createElement("path",{className:"".concat(jn,"-line-trail"),d:$r,strokeLinecap:Kn,stroke:gr,strokeWidth:dr||ar,fillOpacity:"0"}),Zr.map(function(rr,vr){var zn=1;switch(Kn){case"round":zn=1-ar/100;break;case"square":zn=1-ar/2/100;break;default:zn=1;break}var Nn={strokeDasharray:"".concat(rr*zn,"px, 100px"),strokeDashoffset:"-".concat(er,"px"),transition:Tr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},$t=ei[vr]||ei[ei.length-1];return er+=rr,Qe.createElement("path",{key:vr,className:"".concat(jn,"-line-path"),d:$r,strokeLinecap:Kn,stroke:$t,strokeWidth:ar,fillOpacity:"0",ref:function(Lt){jr[vr]=Lt},style:Nn})}))},ae=ee,re=Ge(62853),le=Ge(52487),ue=Ge(47273),pe=0,Ee=(0,ue.Z)();function Ce(){var It;return Ee?(It=pe,pe+=1):It="TEST_OR_SSR",It}var je=function(It){var Ut=Qe.useState(),tn=(0,le.Z)(Ut,2),ln=tn[0],mn=tn[1];return Qe.useEffect(function(){mn("rc_progress_".concat(Ce()))},[]),It||ln},Le=function(Ut){var tn=Ut.bg,ln=Ut.children;return Qe.createElement("div",{style:{width:"100%",height:"100%",background:tn}},ln)};function ke(It,Ut){return Object.keys(It).map(function(tn){var ln=parseFloat(tn),mn="".concat(Math.floor(ln*Ut),"%");return"".concat(It[tn]," ").concat(mn)})}var Oe=Qe.forwardRef(function(It,Ut){var tn=It.prefixCls,ln=It.color,mn=It.gradientId,jn=It.radius,Vn=It.style,Kn=It.ptg,ar=It.strokeLinecap,xr=It.strokeWidth,gr=It.size,dr=It.gapDegree,Tr=ln&&(0,re.Z)(ln)==="object",Rr=Tr?"#FFF":void 0,Zr=gr/2,ei=Qe.createElement("circle",{className:"".concat(tn,"-circle-path"),r:jn,cx:Zr,cy:Zr,stroke:Rr,strokeLinecap:ar,strokeWidth:xr,opacity:Kn===0?0:1,style:Vn,ref:Ut});if(!Tr)return ei;var jr="".concat(mn,"-conic"),it=dr?"".concat(180+dr/2,"deg"):"0deg",Qr=ke(ln,(360-dr)/360),$r=ke(ln,1),En="conic-gradient(from ".concat(it,", ").concat(Qr.join(", "),")"),er="linear-gradient(to ".concat(dr?"bottom":"top",", ").concat($r.join(", "),")");return Qe.createElement(Qe.Fragment,null,Qe.createElement("mask",{id:jr},ei),Qe.createElement("foreignObject",{x:0,y:0,width:gr,height:gr,mask:"url(#".concat(jr,")")},Qe.createElement(Le,{bg:er},Qe.createElement(Le,{bg:En}))))}),Fe=Oe,Re=100,Ze=function(Ut,tn,ln,mn,jn,Vn,Kn,ar,xr,gr){var dr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Tr=ln/100*360*((360-Vn)/360),Rr=Vn===0?0:{bottom:0,top:180,left:90,right:-90}[Kn],Zr=(100-mn)/100*tn;xr==="round"&&mn!==100&&(Zr+=gr/2,Zr>=tn&&(Zr=tn-.01));var ei=Re/2;return{stroke:typeof ar=="string"?ar:void 0,strokeDasharray:"".concat(tn,"px ").concat(Ut),strokeDashoffset:Zr+dr,transform:"rotate(".concat(jn+Tr+Rr,"deg)"),transformOrigin:"".concat(ei,"px ").concat(ei,"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}},ze=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ke(It){var Ut=It!=null?It:[];return Array.isArray(Ut)?Ut:[Ut]}var ot=function(Ut){var tn=(0,we.Z)((0,we.Z)({},Se),Ut),ln=tn.id,mn=tn.prefixCls,jn=tn.steps,Vn=tn.strokeWidth,Kn=tn.trailWidth,ar=tn.gapDegree,xr=ar===void 0?0:ar,gr=tn.gapPosition,dr=tn.trailColor,Tr=tn.strokeLinecap,Rr=tn.style,Zr=tn.className,ei=tn.strokeColor,jr=tn.percent,it=(0,me.Z)(tn,ze),Qr=Re/2,$r=je(ln),En="".concat($r,"-gradient"),er=Qr-Vn/2,rr=Math.PI*2*er,vr=xr>0?90+xr/2:-90,zn=rr*((360-xr)/360),Nn=(0,re.Z)(jn)==="object"?jn:{count:jn,space:2},$t=Nn.count,Xt=Nn.space,Lt=Ke(jr),nn=Ke(ei),pn=nn.find(function(zt){return zt&&(0,re.Z)(zt)==="object"}),Vt=pn&&(0,re.Z)(pn)==="object",Rt=Vt?"butt":Tr,rn=Ze(rr,zn,0,100,vr,xr,gr,dr,Rt,Vn),yn=de(),Mn=function(){var xn=0;return Lt.map(function(Fn,$n){var gn=nn[$n]||nn[nn.length-1],Sn=Ze(rr,zn,xn,Fn,vr,xr,gr,gn,Rt,Vn);return xn+=Fn,Qe.createElement(Fe,{key:$n,color:gn,ptg:Fn,radius:er,prefixCls:mn,gradientId:En,style:Sn,strokeLinecap:Rt,strokeWidth:Vn,gapDegree:xr,ref:function(hn){yn[$n]=hn},size:Re})}).reverse()},On=function(){var xn=Math.round($t*(Lt[0]/100)),Fn=100/$t,$n=0;return new Array($t).fill(null).map(function(gn,Sn){var Qt=Sn<=xn-1?nn[0]:dr,hn=Qt&&(0,re.Z)(Qt)==="object"?"url(#".concat(En,")"):void 0,dn=Ze(rr,zn,$n,Fn,vr,xr,gr,Qt,"butt",Vn,Xt);return $n+=(zn-dn.strokeDashoffset+Xt)*100/zn,Qe.createElement("circle",{key:Sn,className:"".concat(mn,"-circle-path"),r:er,cx:Qr,cy:Qr,stroke:hn,strokeWidth:Vn,opacity:1,style:dn,ref:function(Pn){yn[Sn]=Pn}})})};return Qe.createElement("svg",(0,ye.Z)({className:fe()("".concat(mn,"-circle"),Zr),viewBox:"0 0 ".concat(Re," ").concat(Re),style:Rr,id:ln,role:"presentation"},it),!$t&&Qe.createElement("circle",{className:"".concat(mn,"-circle-trail"),r:er,cx:Qr,cy:Qr,stroke:dr,strokeLinecap:Rt,strokeWidth:Kn||Vn,style:rn}),$t?On():Mn())},ct=ot,pt={Line:ae,Circle:ct},bt=Ge(6848),qe=Ge(93398);function at(It){return!It||It<0?0:It>100?100:It}function gt(It){let{success:Ut,successPercent:tn}=It,ln=tn;return Ut&&"progress"in Ut&&(ln=Ut.progress),Ut&&"percent"in Ut&&(ln=Ut.percent),ln}const Ct=It=>{let{percent:Ut,success:tn,successPercent:ln}=It;const mn=at(gt({success:tn,successPercent:ln}));return[mn,at(at(Ut)-mn)]},wt=It=>{let{success:Ut={},strokeColor:tn}=It;const{strokeColor:ln}=Ut;return[ln||qe.presetPrimaryColors.green,tn||null]},vt=(It,Ut,tn)=>{var ln,mn,jn,Vn;let Kn=-1,ar=-1;if(Ut==="step"){const xr=tn.steps,gr=tn.strokeWidth;typeof It=="string"||typeof It=="undefined"?(Kn=It==="small"?2:14,ar=gr!=null?gr:8):typeof It=="number"?[Kn,ar]=[It,It]:[Kn=14,ar=8]=It,Kn*=xr}else if(Ut==="line"){const xr=tn==null?void 0:tn.strokeWidth;typeof It=="string"||typeof It=="undefined"?ar=xr||(It==="small"?6:8):typeof It=="number"?[Kn,ar]=[It,It]:[Kn=-1,ar=8]=It}else(Ut==="circle"||Ut==="dashboard")&&(typeof It=="string"||typeof It=="undefined"?[Kn,ar]=It==="small"?[60,60]:[120,120]:typeof It=="number"?[Kn,ar]=[It,It]:(Kn=(mn=(ln=It[0])!==null&&ln!==void 0?ln:It[1])!==null&&mn!==void 0?mn:120,ar=(Vn=(jn=It[0])!==null&&jn!==void 0?jn:It[1])!==null&&Vn!==void 0?Vn:120));return[Kn,ar]},mt=3,xt=It=>mt/It*100;var kt=It=>{const{prefixCls:Ut,trailColor:tn=null,strokeLinecap:ln="round",gapPosition:mn,gapDegree:jn,width:Vn=120,type:Kn,children:ar,success:xr,size:gr=Vn}=It,[dr,Tr]=vt(gr,"circle");let{strokeWidth:Rr}=It;Rr===void 0&&(Rr=Math.max(xt(dr),6));const Zr={width:dr,height:Tr,fontSize:dr*.15+6},ei=Qe.useMemo(()=>{if(jn||jn===0)return jn;if(Kn==="dashboard")return 75},[jn,Kn]),jr=mn||Kn==="dashboard"&&"bottom"||void 0,it=Object.prototype.toString.call(It.strokeColor)==="[object Object]",Qr=wt({success:xr,strokeColor:It.strokeColor}),$r=fe()(`${Ut}-inner`,{[`${Ut}-circle-gradient`]:it}),En=Qe.createElement(ct,{percent:Ct(It),strokeWidth:Rr,trailWidth:Rr,strokeColor:Qr,strokeLinecap:ln,trailColor:tn,prefixCls:Ut,gapDegree:ei,gapPosition:jr});return Qe.createElement("div",{className:$r,style:Zr},dr<=20?Qe.createElement(bt.Z,{title:ar},Qe.createElement("span",null,En)):Qe.createElement(Qe.Fragment,null,En,ar))},Wt=function(It,Ut){var tn={};for(var ln in It)Object.prototype.hasOwnProperty.call(It,ln)&&Ut.indexOf(ln)<0&&(tn[ln]=It[ln]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mn=0,ln=Object.getOwnPropertySymbols(It);mn<ln.length;mn++)Ut.indexOf(ln[mn])<0&&Object.prototype.propertyIsEnumerable.call(It,ln[mn])&&(tn[ln[mn]]=It[ln[mn]]);return tn};const Et=It=>{let Ut=[];return Object.keys(It).forEach(tn=>{const ln=parseFloat(tn.replace(/%/g,""));isNaN(ln)||Ut.push({key:ln,value:It[tn]})}),Ut=Ut.sort((tn,ln)=>tn.key-ln.key),Ut.map(tn=>{let{key:ln,value:mn}=tn;return`${mn} ${ln}%`}).join(", ")},St=(It,Ut)=>{const{from:tn=qe.presetPrimaryColors.blue,to:ln=qe.presetPrimaryColors.blue,direction:mn=Ut==="rtl"?"to left":"to right"}=It,jn=Wt(It,["from","to","direction"]);if(Object.keys(jn).length!==0){const Vn=Et(jn);return{backgroundImage:`linear-gradient(${mn}, ${Vn})`}}return{backgroundImage:`linear-gradient(${mn}, ${tn}, ${ln})`}};var ft=It=>{const{prefixCls:Ut,direction:tn,percent:ln,size:mn,strokeWidth:jn,strokeColor:Vn,strokeLinecap:Kn="round",children:ar,trailColor:xr=null,success:gr}=It,dr=Vn&&typeof Vn!="string"?St(Vn,tn):{backgroundColor:Vn},Tr=Kn==="square"||Kn==="butt"?0:void 0,Rr={backgroundColor:xr||void 0,borderRadius:Tr},Zr=mn!=null?mn:[-1,jn||(mn==="small"?6:8)],[ei,jr]=vt(Zr,"line",{strokeWidth:jn}),it=Object.assign({width:`${at(ln)}%`,height:jr,borderRadius:Tr},dr),Qr=gt(It),$r={width:`${at(Qr)}%`,height:jr,borderRadius:Tr,backgroundColor:gr==null?void 0:gr.strokeColor},En={width:ei<0?"100%":ei,height:jr};return Qe.createElement(Qe.Fragment,null,Qe.createElement("div",{className:`${Ut}-outer`,style:En},Qe.createElement("div",{className:`${Ut}-inner`,style:Rr},Qe.createElement("div",{className:`${Ut}-bg`,style:it}),Qr!==void 0?Qe.createElement("div",{className:`${Ut}-success-bg`,style:$r}):null)),ar)},lt=It=>{const{size:Ut,steps:tn,percent:ln=0,strokeWidth:mn=8,strokeColor:jn,trailColor:Vn=null,prefixCls:Kn,children:ar}=It,xr=Math.round(tn*(ln/100)),gr=Ut==="small"?2:14,dr=Ut!=null?Ut:[gr,mn],[Tr,Rr]=vt(dr,"step",{steps:tn,strokeWidth:mn}),Zr=Tr/tn,ei=new Array(tn);for(let jr=0;jr<tn;jr++){const it=Array.isArray(jn)?jn[jr]:jn;ei[jr]=Qe.createElement("div",{key:jr,className:fe()(`${Kn}-steps-item`,{[`${Kn}-steps-item-active`]:jr<=xr-1}),style:{backgroundColor:jr<=xr-1?it:Vn,width:Zr,height:Rr}})}return Qe.createElement("div",{className:`${Kn}-steps-outer`},ei,ar)},Pt=Ge(93083),dt=Ge(17313),et=Ge(83116),Ve=Ge(37613);const He=It=>{const Ut=It?"100%":"-100%";return new Pt.Keyframes(`antProgress${It?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ut}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ut}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},nt=It=>{const{componentCls:Ut,iconCls:tn}=It;return{[Ut]:Object.assign(Object.assign({},(0,dt.Wf)(It)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:It.fontSize,marginInlineEnd:It.marginXS,marginBottom:It.marginXS},[`${Ut}-outer`]:{display:"inline-block",width:"100%"},[`&${Ut}-show-info`]:{[`${Ut}-outer`]:{marginInlineEnd:`calc(-2em - ${It.marginXS}px)`,paddingInlineEnd:`calc(2em + ${It.paddingXS}px)`}},[`${Ut}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:It.remainingColor,borderRadius:It.lineBorderRadius},[`${Ut}-inner:not(${Ut}-circle-gradient)`]:{[`${Ut}-circle-path`]:{stroke:It.defaultColor}},[`${Ut}-success-bg, ${Ut}-bg`]:{position:"relative",backgroundColor:It.defaultColor,borderRadius:It.lineBorderRadius,transition:`all ${It.motionDurationSlow} ${It.motionEaseInOutCirc}`},[`${Ut}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:It.colorSuccess},[`${Ut}-text`]:{display:"inline-block",width:"2em",marginInlineStart:It.marginXS,color:It.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[tn]:{fontSize:It.fontSize}},[`&${Ut}-status-active`]:{[`${Ut}-bg::before`]:{position:"absolute",inset:0,backgroundColor:It.colorBgContainer,borderRadius:It.lineBorderRadius,opacity:0,animationName:He(),animationDuration:It.progressActiveMotionDuration,animationTimingFunction:It.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ut}-rtl${Ut}-status-active`]:{[`${Ut}-bg::before`]:{animationName:He(!0)}},[`&${Ut}-status-exception`]:{[`${Ut}-bg`]:{backgroundColor:It.colorError},[`${Ut}-text`]:{color:It.colorError}},[`&${Ut}-status-exception ${Ut}-inner:not(${Ut}-circle-gradient)`]:{[`${Ut}-circle-path`]:{stroke:It.colorError}},[`&${Ut}-status-success`]:{[`${Ut}-bg`]:{backgroundColor:It.colorSuccess},[`${Ut}-text`]:{color:It.colorSuccess}},[`&${Ut}-status-success ${Ut}-inner:not(${Ut}-circle-gradient)`]:{[`${Ut}-circle-path`]:{stroke:It.colorSuccess}}})}},ut=It=>{const{componentCls:Ut,iconCls:tn}=It;return{[Ut]:{[`${Ut}-circle-trail`]:{stroke:It.remainingColor},[`&${Ut}-circle ${Ut}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ut}-circle ${Ut}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:It.circleTextColor,fontSize:It.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[tn]:{fontSize:`${It.fontSize/It.fontSizeSM}em`}},[`${Ut}-circle&-status-exception`]:{[`${Ut}-text`]:{color:It.colorError}},[`${Ut}-circle&-status-success`]:{[`${Ut}-text`]:{color:It.colorSuccess}}},[`${Ut}-inline-circle`]:{lineHeight:1,[`${Ut}-inner`]:{verticalAlign:"bottom"}}}},We=It=>{const{componentCls:Ut}=It;return{[Ut]:{[`${Ut}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:It.progressStepMinWidth,marginInlineEnd:It.progressStepMarginInlineEnd,backgroundColor:It.remainingColor,transition:`all ${It.motionDurationSlow}`,"&-active":{backgroundColor:It.defaultColor}}}}}},De=It=>{const{componentCls:Ut,iconCls:tn}=It;return{[Ut]:{[`${Ut}-small&-line, ${Ut}-small&-line ${Ut}-text ${tn}`]:{fontSize:It.fontSizeSM}}}};var Ie=(0,et.Z)("Progress",It=>{const Ut=It.marginXXS/2,tn=(0,Ve.TS)(It,{progressStepMarginInlineEnd:Ut,progressStepMinWidth:Ut,progressActiveMotionDuration:"2.4s"});return[nt(tn),ut(tn),We(tn),De(tn)]},It=>({circleTextColor:It.colorText,defaultColor:It.colorInfo,remainingColor:It.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Xe=function(It,Ut){var tn={};for(var ln in It)Object.prototype.hasOwnProperty.call(It,ln)&&Ut.indexOf(ln)<0&&(tn[ln]=It[ln]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mn=0,ln=Object.getOwnPropertySymbols(It);mn<ln.length;mn++)Ut.indexOf(ln[mn])<0&&Object.prototype.propertyIsEnumerable.call(It,ln[mn])&&(tn[ln[mn]]=It[ln[mn]]);return tn};const yt=null,Ye=["normal","exception","active","success"];var Ht=Qe.forwardRef((It,Ut)=>{const{prefixCls:tn,className:ln,rootClassName:mn,steps:jn,strokeColor:Vn,percent:Kn=0,size:ar="default",showInfo:xr=!0,type:gr="line",status:dr,format:Tr,style:Rr}=It,Zr=Xe(It,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),ei=Qe.useMemo(()=>{var Lt,nn;const pn=gt(It);return parseInt(pn!==void 0?(Lt=pn!=null?pn:0)===null||Lt===void 0?void 0:Lt.toString():(nn=Kn!=null?Kn:0)===null||nn===void 0?void 0:nn.toString(),10)},[Kn,It.success,It.successPercent]),jr=Qe.useMemo(()=>!Ye.includes(dr)&&ei>=100?"success":dr||"normal",[dr,ei]),{getPrefixCls:it,direction:Qr,progress:$r}=Qe.useContext(Pe.E_),En=it("progress",tn),[er,rr]=Ie(En),vr=Qe.useMemo(()=>{if(!xr)return null;const Lt=gt(It);let nn;const pn=Tr||(Rt=>`${Rt}%`),Vt=gr==="line";return Tr||jr!=="exception"&&jr!=="success"?nn=pn(at(Kn),at(Lt)):jr==="exception"?nn=Vt?Qe.createElement(_e.Z,null):Qe.createElement(Ne.Z,null):jr==="success"&&(nn=Vt?Qe.createElement(Tt.Z,null):Qe.createElement(oe.Z,null)),Qe.createElement("span",{className:`${En}-text`,title:typeof nn=="string"?nn:void 0},nn)},[xr,Kn,ei,jr,gr,En,Tr]),zn=Array.isArray(Vn)?Vn[0]:Vn,Nn=typeof Vn=="string"||Array.isArray(Vn)?Vn:void 0;let $t;gr==="line"?$t=jn?Qe.createElement(lt,Object.assign({},It,{strokeColor:Nn,prefixCls:En,steps:jn}),vr):Qe.createElement(ft,Object.assign({},It,{strokeColor:zn,prefixCls:En,direction:Qr}),vr):(gr==="circle"||gr==="dashboard")&&($t=Qe.createElement(kt,Object.assign({},It,{strokeColor:zn,prefixCls:En,progressStatus:jr}),vr));const Xt=fe()(En,`${En}-status-${jr}`,`${En}-${gr==="dashboard"&&"circle"||jn&&"steps"||gr}`,{[`${En}-inline-circle`]:gr==="circle"&&vt(ar,"circle")[0]<=20,[`${En}-show-info`]:xr,[`${En}-${ar}`]:typeof ar=="string",[`${En}-rtl`]:Qr==="rtl"},$r==null?void 0:$r.className,ln,mn,rr);return er(Qe.createElement("div",Object.assign({ref:Ut,style:Object.assign(Object.assign({},$r==null?void 0:$r.style),Rr),className:Xt,role:"progressbar","aria-valuenow":ei},(0,be.Z)(Zr,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),$t))}),en=Ht},13570:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return at}});var Qe=Ge(72308),Tt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},_e=oe,Ne=Ge(7657),ve=function(Ct,wt){return Tt.createElement(Ne.Z,(0,Qe.Z)({},Ct,{ref:wt,icon:_e}))},fe=Tt.forwardRef(ve),be=fe,Pe=Ge(92310),ye=Ge.n(Pe),we=Ge(49618),me=Ge(52487),Se=Ge(74416),de=Ge(18929),z=Ge(10228),ee=Ge(26112);function ae(gt,Ct){var wt=gt.disabled,vt=gt.prefixCls,mt=gt.character,xt=gt.characterRender,At=gt.index,kt=gt.count,Wt=gt.value,Et=gt.allowHalf,St=gt.focused,tt=gt.onHover,ft=gt.onClick,$e=function(ut){tt(ut,At)},lt=function(ut){ft(ut,At)},Pt=function(ut){ut.keyCode===z.Z.ENTER&&ft(ut,At)},dt=At+1,et=new Set([vt]);Wt===0&&At===0&&St?et.add("".concat(vt,"-focused")):Et&&Wt+.5>=dt&&Wt<dt?(et.add("".concat(vt,"-half")),et.add("".concat(vt,"-active")),St&&et.add("".concat(vt,"-focused"))):(dt<=Wt?et.add("".concat(vt,"-full")):et.add("".concat(vt,"-zero")),dt===Wt&&St&&et.add("".concat(vt,"-focused")));var Ve=typeof mt=="function"?mt(gt):mt,He=Tt.createElement("li",{className:ye()(Array.from(et)),ref:Ct},Tt.createElement("div",{onClick:wt?null:lt,onKeyDown:wt?null:Pt,onMouseMove:wt?null:$e,role:"radio","aria-checked":Wt>At?"true":"false","aria-posinset":At+1,"aria-setsize":kt,tabIndex:wt?-1:0},Tt.createElement("div",{className:"".concat(vt,"-first")},Ve),Tt.createElement("div",{className:"".concat(vt,"-second")},Ve)));return xt&&(He=xt(He,gt)),He}var re=Tt.forwardRef(ae);function le(){var gt=Tt.useRef({});function Ct(vt){return gt.current[vt]}function wt(vt){return function(mt){gt.current[vt]=mt}}return[Ct,wt]}function ue(gt){var Ct=gt.pageXOffset,wt="scrollLeft";if(typeof Ct!="number"){var vt=gt.document;Ct=vt.documentElement[wt],typeof Ct!="number"&&(Ct=vt.body[wt])}return Ct}function pe(gt){var Ct,wt,vt=gt.ownerDocument,mt=vt.body,xt=vt&&vt.documentElement,At=gt.getBoundingClientRect();return Ct=At.left,wt=At.top,Ct-=xt.clientLeft||mt.clientLeft||0,wt-=xt.clientTop||mt.clientTop||0,{left:Ct,top:wt}}function Ee(gt){var Ct=pe(gt),wt=gt.ownerDocument,vt=wt.defaultView||wt.parentWindow;return Ct.left+=ue(vt),Ct.left}var Ce=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function je(gt,Ct){var wt,vt=gt.prefixCls,mt=vt===void 0?"rc-rate":vt,xt=gt.className,At=gt.defaultValue,kt=gt.value,Wt=gt.count,Et=Wt===void 0?5:Wt,St=gt.allowHalf,tt=St===void 0?!1:St,ft=gt.allowClear,$e=ft===void 0?!0:ft,lt=gt.character,Pt=lt===void 0?"\u2605":lt,dt=gt.characterRender,et=gt.disabled,Ve=gt.direction,He=Ve===void 0?"ltr":Ve,nt=gt.tabIndex,ut=nt===void 0?0:nt,We=gt.autoFocus,De=gt.onHoverChange,Ie=gt.onChange,Xe=gt.onFocus,yt=gt.onBlur,Ye=gt.onKeyDown,jt=gt.onMouseLeave,Ht=(0,Se.Z)(gt,Ce),en=le(),It=(0,me.Z)(en,2),Ut=It[0],tn=It[1],ln=Tt.useRef(null),mn=function(){if(!et){var Rt;(Rt=ln.current)===null||Rt===void 0||Rt.focus()}};Tt.useImperativeHandle(Ct,function(){return{focus:mn,blur:function(){if(!et){var Rt;(Rt=ln.current)===null||Rt===void 0||Rt.blur()}}}});var jn=(0,de.Z)(At||0,{value:kt}),Vn=(0,me.Z)(jn,2),Kn=Vn[0],ar=Vn[1],xr=(0,de.Z)(null),gr=(0,me.Z)(xr,2),dr=gr[0],Tr=gr[1],Rr=function(Rt,rn){var yn=He==="rtl",Mn=Rt+1;if(tt){var On=Ut(Rt),zt=Ee(On),xn=On.clientWidth;(yn&&rn-zt>xn/2||!yn&&rn-zt<xn/2)&&(Mn-=.5)}return Mn},Zr=function(Rt){ar(Rt),Ie==null||Ie(Rt)},ei=Tt.useState(!1),jr=(0,me.Z)(ei,2),it=jr[0],Qr=jr[1],$r=function(){Qr(!0),Xe==null||Xe()},En=function(){Qr(!1),yt==null||yt()},er=Tt.useState(null),rr=(0,me.Z)(er,2),vr=rr[0],zn=rr[1],Nn=function(Rt,rn){var yn=Rr(rn,Rt.pageX);yn!==dr&&(zn(yn),Tr(null)),De==null||De(yn)},$t=function(Rt){et||(zn(null),Tr(null),De==null||De(void 0)),Rt&&(jt==null||jt(Rt))},Xt=function(Rt,rn){var yn=Rr(rn,Rt.pageX),Mn=!1;$e&&(Mn=yn===Kn),$t(),Zr(Mn?0:yn),Tr(Mn?yn:null)},Lt=function(Rt){var rn=Rt.keyCode,yn=He==="rtl",Mn=Kn;rn===z.Z.RIGHT&&Mn<Et&&!yn?(tt?Mn+=.5:Mn+=1,Zr(Mn),Rt.preventDefault()):rn===z.Z.LEFT&&Mn>0&&!yn||rn===z.Z.RIGHT&&Mn>0&&yn?(tt?Mn-=.5:Mn-=1,Zr(Mn),Rt.preventDefault()):rn===z.Z.LEFT&&Mn<Et&&yn&&(tt?Mn+=.5:Mn+=1,Zr(Mn),Rt.preventDefault()),Ye==null||Ye(Rt)};Tt.useEffect(function(){We&&!et&&mn()},[]);var nn=new Array(Et).fill(0).map(function(Vt,Rt){return Tt.createElement(re,{ref:tn(Rt),index:Rt,count:Et,disabled:et,prefixCls:"".concat(mt,"-star"),allowHalf:tt,value:vr===null?Kn:vr,onClick:Xt,onHover:Nn,key:Vt||Rt,character:Pt,characterRender:dt,focused:it})}),pn=ye()(mt,xt,(wt={},(0,we.Z)(wt,"".concat(mt,"-disabled"),et),(0,we.Z)(wt,"".concat(mt,"-rtl"),He==="rtl"),wt));return Tt.createElement("ul",(0,Qe.Z)({className:pn,onMouseLeave:$t,tabIndex:et?-1:ut,onFocus:et?null:$r,onBlur:et?null:En,onKeyDown:et?null:Lt,ref:ln,role:"radiogroup"},(0,ee.Z)(Ht,{aria:!0,data:!0,attr:!0})),nn)}var Le=Tt.forwardRef(je),ke=Le,Oe=Ge(36355),Fe=Ge(6848),Re=Ge(17313),Ze=Ge(83116),ze=Ge(37613);const Ke=gt=>{const{componentCls:Ct}=gt;return{[`${Ct}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:gt.marginXS},"> div":{transition:`all ${gt.motionDurationMid}, outline 0s`,"&:hover":{transform:gt.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${gt.lineWidth}px dashed ${gt.starColor}`,transform:gt.starHoverScale}},"&-first, &-second":{color:gt.starBg,transition:`all ${gt.motionDurationMid}`,userSelect:"none",[gt.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Ct}-star-first, &-half ${Ct}-star-second`]:{opacity:1},[`&-half ${Ct}-star-first, &-full ${Ct}-star-second`]:{color:"inherit"}}}},ot=gt=>({[`&-rtl${gt.componentCls}`]:{direction:"rtl"}}),ct=gt=>{const{componentCls:Ct}=gt;return{[Ct]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Re.Wf)(gt)),{display:"inline-block",margin:0,padding:0,color:gt.starColor,fontSize:gt.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${Ct} ${Ct}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ke(gt)),{[`+ ${Ct}-text`]:{display:"inline-block",marginInlineStart:gt.marginXS,fontSize:gt.fontSize}}),ot(gt))}};var pt=(0,Ze.Z)("Rate",gt=>{const Ct=(0,ze.TS)(gt,{});return[ct(Ct)]},gt=>({starColor:gt.yellow6,starSize:gt.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:gt.colorFillContent})),bt=function(gt,Ct){var wt={};for(var vt in gt)Object.prototype.hasOwnProperty.call(gt,vt)&&Ct.indexOf(vt)<0&&(wt[vt]=gt[vt]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,vt=Object.getOwnPropertySymbols(gt);mt<vt.length;mt++)Ct.indexOf(vt[mt])<0&&Object.prototype.propertyIsEnumerable.call(gt,vt[mt])&&(wt[vt[mt]]=gt[vt[mt]]);return wt},at=Tt.forwardRef((gt,Ct)=>{const{prefixCls:wt,className:vt,rootClassName:mt,style:xt,tooltips:At,character:kt=Tt.createElement(be,null)}=gt,Wt=bt(gt,["prefixCls","className","rootClassName","style","tooltips","character"]),Et=(et,Ve)=>{let{index:He}=Ve;return At?Tt.createElement(Fe.Z,{title:At[He]},et):et},{getPrefixCls:St,direction:tt,rate:ft}=Tt.useContext(Oe.E_),$e=St("rate",wt),[lt,Pt]=pt($e),dt=Object.assign(Object.assign({},ft==null?void 0:ft.style),xt);return lt(Tt.createElement(ke,Object.assign({ref:Ct,character:kt,characterRender:Et},Wt,{className:ye()(vt,mt,Pt,ft==null?void 0:ft.className),style:dt,prefixCls:$e,direction:tt})))})},57809:function(bn,an,Ge){"use strict";var Qe=Ge(92310),Tt=Ge.n(Qe),oe=Ge(77861),_e=Ge(2738),Ne=Ge(59301),ve=Ge(53487),fe=Ge(62892),be=Ge(19080),Pe=Ge(36355),ye=Ge(1684),we=Ge(93891),me=Ge(19716),Se=Ge(32441),de=Ge(33234),z=Ge(14154),ee=Ge(58582),ae=Ge(84443),re=Ge(66339),le=function(je,Le){var ke={};for(var Oe in je)Object.prototype.hasOwnProperty.call(je,Oe)&&Le.indexOf(Oe)<0&&(ke[Oe]=je[Oe]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Oe=Object.getOwnPropertySymbols(je);Fe<Oe.length;Fe++)Le.indexOf(Oe[Fe])<0&&Object.prototype.propertyIsEnumerable.call(je,Oe[Fe])&&(ke[Oe[Fe]]=je[Oe[Fe]]);return ke};const ue="SECRET_COMBOBOX_MODE_DO_NOT_USE",pe=(je,Le)=>{var ke,{prefixCls:Oe,bordered:Fe=!0,className:Re,rootClassName:Ze,getPopupContainer:ze,popupClassName:Ke,dropdownClassName:ot,listHeight:ct=256,placement:pt,listItemHeight:bt=24,size:qe,disabled:at,notFoundContent:gt,status:Ct,builtinPlacements:wt,dropdownMatchSelectWidth:vt,popupMatchSelectWidth:mt,direction:xt,style:At,allowClear:kt}=je,Wt=le(je,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Et,getPrefixCls:St,renderEmpty:tt,direction:ft,virtual:$e,popupMatchSelectWidth:lt,popupOverflow:Pt,select:dt}=Ne.useContext(Pe.E_),et=St("select",Oe),Ve=St(),He=xt!=null?xt:ft,{compactSize:nt,compactItemClassnames:ut}=(0,de.ri)(et,He),[We,De]=(0,z.Z)(et),Ie=Ne.useMemo(()=>{const{mode:jr}=Wt;if(jr!=="combobox")return jr===ue?"combobox":jr},[Wt.mode]),Xe=Ie==="multiple"||Ie==="tags",yt=(0,ae.Z)(Wt.suffixIcon,Wt.showArrow),Ye=(ke=mt!=null?mt:vt)!==null&&ke!==void 0?ke:lt,{status:jt,hasFeedback:Ht,isFormItemInput:en,feedbackIcon:It}=Ne.useContext(Se.aM),Ut=(0,be.F)(jt,Ct);let tn;gt!==void 0?tn=gt:Ie==="combobox"?tn=null:tn=(tt==null?void 0:tt("Select"))||Ne.createElement(we.Z,{componentName:"Select"});const{suffixIcon:ln,itemIcon:mn,removeIcon:jn,clearIcon:Vn}=(0,re.Z)(Object.assign(Object.assign({},Wt),{multiple:Xe,hasFeedback:Ht,feedbackIcon:It,showSuffixIcon:yt,prefixCls:et,showArrow:Wt.showArrow,componentName:"Select"})),Kn=kt===!0?{clearIcon:Vn}:kt,ar=(0,_e.Z)(Wt,["suffixIcon","itemIcon"]),xr=Tt()(Ke||ot,{[`${et}-dropdown-${He}`]:He==="rtl"},Ze,De),gr=(0,me.Z)(jr=>{var it;return(it=qe!=null?qe:nt)!==null&&it!==void 0?it:jr}),dr=Ne.useContext(ye.Z),Tr=at!=null?at:dr,Rr=Tt()({[`${et}-lg`]:gr==="large",[`${et}-sm`]:gr==="small",[`${et}-rtl`]:He==="rtl",[`${et}-borderless`]:!Fe,[`${et}-in-form-item`]:en},(0,be.Z)(et,Ut,Ht),ut,dt==null?void 0:dt.className,Re,Ze,De),Zr=Ne.useMemo(()=>pt!==void 0?pt:He==="rtl"?"bottomRight":"bottomLeft",[pt,He]),ei=(0,ee.Z)(wt,Pt);return We(Ne.createElement(oe.ZP,Object.assign({ref:Le,virtual:$e,showSearch:dt==null?void 0:dt.showSearch},ar,{style:Object.assign(Object.assign({},dt==null?void 0:dt.style),At),dropdownMatchSelectWidth:Ye,builtinPlacements:ei,transitionName:(0,fe.m)(Ve,"slide-up",Wt.transitionName),listHeight:ct,listItemHeight:bt,mode:Ie,prefixCls:et,placement:Zr,direction:He,suffixIcon:ln,menuItemSelectedIcon:mn,removeIcon:jn,allowClear:Kn,notFoundContent:tn,className:Rr,getPopupContainer:ze||Et,dropdownClassName:xr,disabled:Tr})))},Ee=Ne.forwardRef(pe),Ce=(0,ve.Z)(Ee);Ee.SECRET_COMBOBOX_MODE_DO_NOT_USE=ue,Ee.Option=oe.Wx,Ee.OptGroup=oe.Xo,Ee._InternalPanelDoNotUseOrYouWillBeFired=Ce,an.default=Ee},14154:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Ee}});var Qe=Ge(17313),Tt=Ge(74207),oe=Ge(37613),_e=Ge(83116),Ne=Ge(13826),ve=Ge(92899);const fe=Ce=>{const{optionHeight:je,optionFontSize:Le,optionLineHeight:ke,optionPadding:Oe}=Ce;return{position:"relative",display:"block",minHeight:je,padding:Oe,color:Ce.colorText,fontWeight:"normal",fontSize:Le,lineHeight:ke,boxSizing:"border-box"}};var Pe=Ce=>{const{antCls:je,componentCls:Le}=Ce,ke=`${Le}-item`,Oe=`&${je}-slide-up-enter${je}-slide-up-enter-active`,Fe=`&${je}-slide-up-appear${je}-slide-up-appear-active`,Re=`&${je}-slide-up-leave${je}-slide-up-leave-active`,Ze=`${Le}-dropdown-placement-`;return[{[`${Le}-dropdown`]:Object.assign(Object.assign({},(0,Qe.Wf)(Ce)),{position:"absolute",top:-9999,zIndex:Ce.zIndexPopup,boxSizing:"border-box",padding:Ce.paddingXXS,overflow:"hidden",fontSize:Ce.fontSize,fontVariant:"initial",backgroundColor:Ce.colorBgElevated,borderRadius:Ce.borderRadiusLG,outline:"none",boxShadow:Ce.boxShadowSecondary,[`
|
|
|
${Oe}${Ze}bottomLeft,
|
|
|
${Fe}${Ze}bottomLeft
|
|
|
`]:{animationName:Ne.fJ},[`
|
|
|
${Oe}${Ze}topLeft,
|
|
|
${Fe}${Ze}topLeft,
|
|
|
${Oe}${Ze}topRight,
|
|
|
${Fe}${Ze}topRight
|
|
|
`]:{animationName:Ne.Qt},[`${Re}${Ze}bottomLeft`]:{animationName:Ne.Uw},[`
|
|
|
${Re}${Ze}topLeft,
|
|
|
${Re}${Ze}topRight
|
|
|
`]:{animationName:Ne.ly},"&-hidden":{display:"none"},[`${ke}`]:Object.assign(Object.assign({},fe(Ce)),{cursor:"pointer",transition:`background ${Ce.motionDurationSlow} ease`,borderRadius:Ce.borderRadiusSM,"&-group":{color:Ce.colorTextDescription,fontSize:Ce.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Qe.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${ke}-option-disabled)`]:{backgroundColor:Ce.optionActiveBg},[`&-selected:not(${ke}-option-disabled)`]:{color:Ce.optionSelectedColor,fontWeight:Ce.optionSelectedFontWeight,backgroundColor:Ce.optionSelectedBg,[`${ke}-option-state`]:{color:Ce.colorPrimary}},"&-disabled":{[`&${ke}-option-selected`]:{backgroundColor:Ce.colorBgContainerDisabled},color:Ce.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Ce.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,Ne.oN)(Ce,"slide-up"),(0,Ne.oN)(Ce,"slide-down"),(0,ve.Fm)(Ce,"move-up"),(0,ve.Fm)(Ce,"move-down")]};const ye=2,we=Ce=>{let{controlHeightSM:je,controlHeight:Le,lineWidth:ke}=Ce;const Oe=(Le-je)/2-ke,Fe=Math.ceil(Oe/2);return[Oe,Fe]};function me(Ce,je){const{componentCls:Le,iconCls:ke}=Ce,Oe=`${Le}-selection-overflow`,Fe=Ce.multipleSelectItemHeight,[Re]=we(Ce),Ze=je?`${Le}-${je}`:"";return{[`${Le}-multiple${Ze}`]:{fontSize:Ce.fontSize,[Oe]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Le}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Re-ye}px ${ye*2}px`,borderRadius:Ce.borderRadius,[`${Le}-show-search&`]:{cursor:"text"},[`${Le}-disabled&`]:{background:Ce.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ye}px 0`,lineHeight:`${Fe}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${Le}-show-arrow ${Le}-selector,
|
|
|
&${Le}-allow-clear ${Le}-selector
|
|
|
`]:{paddingInlineEnd:Ce.fontSizeIcon+Ce.controlPaddingHorizontal},[`${Le}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Fe,marginTop:ye,marginBottom:ye,lineHeight:`${Fe-Ce.lineWidth*2}px`,background:Ce.multipleItemBg,border:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.multipleItemBorderColor}`,borderRadius:Ce.borderRadiusSM,cursor:"default",transition:`font-size ${Ce.motionDurationSlow}, line-height ${Ce.motionDurationSlow}, height ${Ce.motionDurationSlow}`,userSelect:"none",marginInlineEnd:ye*2,paddingInlineStart:Ce.paddingXS,paddingInlineEnd:Ce.paddingXS/2,[`${Le}-disabled&`]:{color:Ce.multipleItemColorDisabled,borderColor:Ce.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Ce.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Qe.Ro)()),{display:"inline-flex",alignItems:"center",color:Ce.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${ke}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Ce.colorIconHover}})},[`${Oe}-item + ${Oe}-item`]:{[`${Le}-selection-search`]:{marginInlineStart:0}},[`${Le}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Ce.inputPaddingHorizontalBase-Re,"\n &-input,\n &-mirror\n ":{height:Fe,fontFamily:Ce.fontFamily,lineHeight:`${Fe}px`,transition:`all ${Ce.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Le}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Ce.inputPaddingHorizontalBase,insetInlineEnd:Ce.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Ce.motionDurationSlow}`}}}}var de=Ce=>{const{componentCls:je}=Ce,Le=(0,oe.TS)(Ce,{controlHeight:Ce.controlHeightSM,multipleSelectItemHeight:Ce.controlHeightXS,borderRadius:Ce.borderRadiusSM,borderRadiusSM:Ce.borderRadiusXS}),ke=(0,oe.TS)(Ce,{fontSize:Ce.fontSizeLG,controlHeight:Ce.controlHeightLG,multipleSelectItemHeight:Ce.multipleItemHeightLG,borderRadius:Ce.borderRadiusLG,borderRadiusSM:Ce.borderRadius}),[,Oe]=we(Ce);return[me(Ce),me(Le,"sm"),{[`${je}-multiple${je}-sm`]:{[`${je}-selection-placeholder`]:{insetInline:Ce.controlPaddingHorizontalSM-Ce.lineWidth},[`${je}-selection-search`]:{marginInlineStart:Oe}}},me(ke,"lg")]};function z(Ce,je){const{componentCls:Le,inputPaddingHorizontalBase:ke,borderRadius:Oe}=Ce,Fe=Ce.controlHeight-Ce.lineWidth*2,Re=Math.ceil(Ce.fontSize*1.25),Ze=je?`${Le}-${je}`:"";return{[`${Le}-single${Ze}`]:{fontSize:Ce.fontSize,[`${Le}-selector`]:Object.assign(Object.assign({},(0,Qe.Wf)(Ce)),{display:"flex",borderRadius:Oe,[`${Le}-selection-search`]:{position:"absolute",top:0,insetInlineStart:ke,insetInlineEnd:ke,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${Le}-selection-item,
|
|
|
${Le}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${Fe}px`,transition:`all ${Ce.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Fe}px`}},[`${Le}-selection-item`]:{position:"relative",userSelect:"none"},[`${Le}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Le}-selection-item:after`,`${Le}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Le}-show-arrow ${Le}-selection-item,
|
|
|
&${Le}-show-arrow ${Le}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Re},[`&${Le}-open ${Le}-selection-item`]:{color:Ce.colorTextPlaceholder},[`&:not(${Le}-customize-input)`]:{[`${Le}-selector`]:{width:"100%",height:Ce.controlHeight,padding:`0 ${ke}px`,[`${Le}-selection-search-input`]:{height:Fe},"&:after":{lineHeight:`${Fe}px`}}},[`&${Le}-customize-input`]:{[`${Le}-selector`]:{"&:after":{display:"none"},[`${Le}-selection-search`]:{position:"static",width:"100%"},[`${Le}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ke}px`,"&:after":{display:"none"}}}}}}}function ee(Ce){const{componentCls:je}=Ce,Le=Ce.controlPaddingHorizontalSM-Ce.lineWidth;return[z(Ce),z((0,oe.TS)(Ce,{controlHeight:Ce.controlHeightSM,borderRadius:Ce.borderRadiusSM}),"sm"),{[`${je}-single${je}-sm`]:{[`&:not(${je}-customize-input)`]:{[`${je}-selection-search`]:{insetInlineStart:Le,insetInlineEnd:Le},[`${je}-selector`]:{padding:`0 ${Le}px`},[`&${je}-show-arrow ${je}-selection-search`]:{insetInlineEnd:Le+Ce.fontSize*1.5},[`
|
|
|
&${je}-show-arrow ${je}-selection-item,
|
|
|
&${je}-show-arrow ${je}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Ce.fontSize*1.5}}}},z((0,oe.TS)(Ce,{controlHeight:Ce.singleItemHeightLG,fontSize:Ce.fontSizeLG,borderRadius:Ce.borderRadiusLG}),"lg")]}const ae=Ce=>{const{componentCls:je,selectorBg:Le}=Ce;return{position:"relative",backgroundColor:Le,border:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.colorBorder}`,transition:`all ${Ce.motionDurationMid} ${Ce.motionEaseInOut}`,input:{cursor:"pointer"},[`${je}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${je}-disabled&`]:{color:Ce.colorTextDisabled,background:Ce.colorBgContainerDisabled,cursor:"not-allowed",[`${je}-multiple&`]:{background:Ce.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},re=function(Ce,je){let Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:ke,borderHoverColor:Oe,outlineColor:Fe,antCls:Re}=je,Ze=Le?{[`${ke}-selector`]:{borderColor:Oe}}:{};return{[Ce]:{[`&:not(${ke}-disabled):not(${ke}-customize-input):not(${Re}-pagination-size-changer)`]:Object.assign(Object.assign({},Ze),{[`${ke}-focused& ${ke}-selector`]:{borderColor:Oe,boxShadow:`0 0 0 ${je.controlOutlineWidth}px ${Fe}`,outline:0},[`&:hover ${ke}-selector`]:{borderColor:Oe}})}}},le=Ce=>{const{componentCls:je}=Ce;return{[`${je}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ue=Ce=>{const{componentCls:je,inputPaddingHorizontalBase:Le,iconCls:ke}=Ce;return{[je]:Object.assign(Object.assign({},(0,Qe.Wf)(Ce)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${je}-customize-input) ${je}-selector`]:Object.assign(Object.assign({},ae(Ce)),le(Ce)),[`${je}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},Qe.vS),[`${je}-selection-placeholder`]:Object.assign(Object.assign({},Qe.vS),{flex:1,color:Ce.colorTextPlaceholder,pointerEvents:"none"}),[`${je}-arrow`]:Object.assign(Object.assign({},(0,Qe.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Le,height:Ce.fontSizeIcon,marginTop:-Ce.fontSizeIcon/2,color:Ce.colorTextQuaternary,fontSize:Ce.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[ke]:{verticalAlign:"top",transition:`transform ${Ce.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${je}-suffix)`]:{pointerEvents:"auto"}},[`${je}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${je}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Le,zIndex:1,display:"inline-block",width:Ce.fontSizeIcon,height:Ce.fontSizeIcon,marginTop:-Ce.fontSizeIcon/2,color:Ce.colorTextQuaternary,fontSize:Ce.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Ce.clearBg,cursor:"pointer",opacity:0,transition:`color ${Ce.motionDurationMid} ease, opacity ${Ce.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Ce.colorTextTertiary}},"&:hover":{[`${je}-clear`]:{opacity:1}}}),[`${je}-has-feedback`]:{[`${je}-clear`]:{insetInlineEnd:Le+Ce.fontSize+Ce.paddingXS}}}},pe=Ce=>{const{componentCls:je}=Ce;return[{[je]:{[`&-borderless ${je}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${je}-in-form-item`]:{width:"100%"}}},ue(Ce),ee(Ce),de(Ce),Pe(Ce),{[`${je}-rtl`]:{direction:"rtl"}},re(je,(0,oe.TS)(Ce,{borderHoverColor:Ce.colorPrimaryHover,outlineColor:Ce.controlOutline})),re(`${je}-status-error`,(0,oe.TS)(Ce,{borderHoverColor:Ce.colorErrorHover,outlineColor:Ce.colorErrorOutline}),!0),re(`${je}-status-warning`,(0,oe.TS)(Ce,{borderHoverColor:Ce.colorWarningHover,outlineColor:Ce.colorWarningOutline}),!0),(0,Tt.c)(Ce,{borderElCls:`${je}-selector`,focusElCls:`${je}-focused`})]};var Ee=(0,_e.Z)("Select",(Ce,je)=>{let{rootPrefixCls:Le}=je;const ke=(0,oe.TS)(Ce,{rootPrefixCls:Le,inputPaddingHorizontalBase:Ce.paddingSM-1,multipleSelectItemHeight:Ce.multipleItemHeight});return[pe(ke)]},Ce=>{const{fontSize:je,lineHeight:Le,controlHeight:ke,controlPaddingHorizontal:Oe,zIndexPopupBase:Fe,colorText:Re,fontWeightStrong:Ze,controlItemBgActive:ze,controlItemBgHover:Ke,colorBgContainer:ot,colorFillSecondary:ct,controlHeightLG:pt,controlHeightSM:bt,colorBgContainerDisabled:qe,colorTextDisabled:at}=Ce;return{zIndexPopup:Fe+50,optionSelectedColor:Re,optionSelectedFontWeight:Ze,optionSelectedBg:ze,optionActiveBg:Ke,optionPadding:`${(ke-je*Le)/2}px ${Oe}px`,optionFontSize:je,optionLineHeight:Le,optionHeight:ke,selectorBg:ot,clearBg:ot,singleItemHeightLG:pt,multipleItemBg:ct,multipleItemBorderColor:"transparent",multipleItemHeight:bt,multipleItemHeightLG:ke,multipleSelectorBgDisabled:qe,multipleItemColorDisabled:at,multipleItemBorderColorDisabled:"transparent"}})},58582:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Tt}});const Qe=oe=>{const Ne={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:oe==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},Ne),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Ne),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Ne),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Ne),{points:["br","tr"],offset:[0,-4]})}};function Tt(oe,_e){return oe||Qe(_e)}},84443:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Qe}});function Qe(Tt,oe){return oe!==void 0?oe:Tt!==null}},66339:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return be}});var Qe=Ge(40001),Tt=Ge(19248),oe=Ge(99267),_e=Ge(84105),Ne=Ge(58617),ve=Ge(47472),fe=Ge(59301);function be(Pe){let{suffixIcon:ye,clearIcon:we,menuItemSelectedIcon:me,removeIcon:Se,loading:de,multiple:z,hasFeedback:ee,prefixCls:ae,showSuffixIcon:re,feedbackIcon:le,showArrow:ue,componentName:pe}=Pe;const Ee=we!=null?we:fe.createElement(Tt.Z,null),Ce=Oe=>ye===null&&!ee&&!ue?null:fe.createElement(fe.Fragment,null,re!==!1&&Oe,ee&&le);let je=null;if(ye!==void 0)je=Ce(ye);else if(de)je=Ce(fe.createElement(Ne.Z,{spin:!0}));else{const Oe=`${ae}-suffix`;je=Fe=>{let{open:Re,showSearch:Ze}=Fe;return Ce(Re&&Ze?fe.createElement(ve.Z,{className:Oe}):fe.createElement(_e.Z,{className:Oe}))}}let Le=null;me!==void 0?Le=me:z?Le=fe.createElement(Qe.Z,null):Le=null;let ke=null;return Se!==void 0?ke=Se:ke=fe.createElement(oe.Z,null),{clearIcon:Ee,suffixIcon:je,itemIcon:Le,removeIcon:ke}}},61621:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pt}});var Qe=Ge(92310),Tt=Ge.n(Qe),oe=Ge(59301),_e=Ge(36355),Ne=Ge(2738),fe=dt=>{const{prefixCls:et,className:Ve,style:He,size:nt,shape:ut}=dt,We=Tt()({[`${et}-lg`]:nt==="large",[`${et}-sm`]:nt==="small"}),De=Tt()({[`${et}-circle`]:ut==="circle",[`${et}-square`]:ut==="square",[`${et}-round`]:ut==="round"}),Ie=oe.useMemo(()=>typeof nt=="number"?{width:nt,height:nt,lineHeight:`${nt}px`}:{},[nt]);return oe.createElement("span",{className:Tt()(et,We,De,Ve),style:Object.assign(Object.assign({},Ie),He)})},be=Ge(93083),Pe=Ge(83116),ye=Ge(37613);const we=new be.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),me=dt=>({height:dt,lineHeight:`${dt}px`}),Se=dt=>Object.assign({width:dt},me(dt)),de=dt=>({background:dt.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:we,animationDuration:dt.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),z=dt=>Object.assign({width:dt*5,minWidth:dt*5},me(dt)),ee=dt=>{const{skeletonAvatarCls:et,gradientFromColor:Ve,controlHeight:He,controlHeightLG:nt,controlHeightSM:ut}=dt;return{[`${et}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ve},Se(He)),[`${et}${et}-circle`]:{borderRadius:"50%"},[`${et}${et}-lg`]:Object.assign({},Se(nt)),[`${et}${et}-sm`]:Object.assign({},Se(ut))}},ae=dt=>{const{controlHeight:et,borderRadiusSM:Ve,skeletonInputCls:He,controlHeightLG:nt,controlHeightSM:ut,gradientFromColor:We}=dt;return{[`${He}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:We,borderRadius:Ve},z(et)),[`${He}-lg`]:Object.assign({},z(nt)),[`${He}-sm`]:Object.assign({},z(ut))}},re=dt=>Object.assign({width:dt},me(dt)),le=dt=>{const{skeletonImageCls:et,imageSizeBase:Ve,gradientFromColor:He,borderRadiusSM:nt}=dt;return{[`${et}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:He,borderRadius:nt},re(Ve*2)),{[`${et}-path`]:{fill:"#bfbfbf"},[`${et}-svg`]:Object.assign(Object.assign({},re(Ve)),{maxWidth:Ve*4,maxHeight:Ve*4}),[`${et}-svg${et}-svg-circle`]:{borderRadius:"50%"}}),[`${et}${et}-circle`]:{borderRadius:"50%"}}},ue=(dt,et,Ve)=>{const{skeletonButtonCls:He}=dt;return{[`${Ve}${He}-circle`]:{width:et,minWidth:et,borderRadius:"50%"},[`${Ve}${He}-round`]:{borderRadius:et}}},pe=dt=>Object.assign({width:dt*2,minWidth:dt*2},me(dt)),Ee=dt=>{const{borderRadiusSM:et,skeletonButtonCls:Ve,controlHeight:He,controlHeightLG:nt,controlHeightSM:ut,gradientFromColor:We}=dt;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Ve}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:We,borderRadius:et,width:He*2,minWidth:He*2},pe(He))},ue(dt,He,Ve)),{[`${Ve}-lg`]:Object.assign({},pe(nt))}),ue(dt,nt,`${Ve}-lg`)),{[`${Ve}-sm`]:Object.assign({},pe(ut))}),ue(dt,ut,`${Ve}-sm`))},Ce=dt=>{const{componentCls:et,skeletonAvatarCls:Ve,skeletonTitleCls:He,skeletonParagraphCls:nt,skeletonButtonCls:ut,skeletonInputCls:We,skeletonImageCls:De,controlHeight:Ie,controlHeightLG:Xe,controlHeightSM:yt,gradientFromColor:Ye,padding:jt,marginSM:Ht,borderRadius:en,titleHeight:It,blockRadius:Ut,paragraphLiHeight:tn,controlHeightXS:ln,paragraphMarginTop:mn}=dt;return{[`${et}`]:{display:"table",width:"100%",[`${et}-header`]:{display:"table-cell",paddingInlineEnd:jt,verticalAlign:"top",[`${Ve}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ye},Se(Ie)),[`${Ve}-circle`]:{borderRadius:"50%"},[`${Ve}-lg`]:Object.assign({},Se(Xe)),[`${Ve}-sm`]:Object.assign({},Se(yt))},[`${et}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${He}`]:{width:"100%",height:It,background:Ye,borderRadius:Ut,[`+ ${nt}`]:{marginBlockStart:yt}},[`${nt}`]:{padding:0,"> li":{width:"100%",height:tn,listStyle:"none",background:Ye,borderRadius:Ut,"+ li":{marginBlockStart:ln}}},[`${nt}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${et}-content`]:{[`${He}, ${nt} > li`]:{borderRadius:en}}},[`${et}-with-avatar ${et}-content`]:{[`${He}`]:{marginBlockStart:Ht,[`+ ${nt}`]:{marginBlockStart:mn}}},[`${et}${et}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Ee(dt)),ee(dt)),ae(dt)),le(dt)),[`${et}${et}-block`]:{width:"100%",[`${ut}`]:{width:"100%"},[`${We}`]:{width:"100%"}},[`${et}${et}-active`]:{[`
|
|
|
${He},
|
|
|
${nt} > li,
|
|
|
${Ve},
|
|
|
${ut},
|
|
|
${We},
|
|
|
${De}
|
|
|
`]:Object.assign({},de(dt))}}};var je=(0,Pe.Z)("Skeleton",dt=>{const{componentCls:et}=dt,Ve=(0,ye.TS)(dt,{skeletonAvatarCls:`${et}-avatar`,skeletonTitleCls:`${et}-title`,skeletonParagraphCls:`${et}-paragraph`,skeletonButtonCls:`${et}-button`,skeletonInputCls:`${et}-input`,skeletonImageCls:`${et}-image`,imageSizeBase:dt.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${dt.gradientFromColor} 25%, ${dt.gradientToColor} 37%, ${dt.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Ce(Ve)]},dt=>{const{colorFillContent:et,colorFill:Ve}=dt,He=et,nt=Ve;return{color:He,colorGradientEnd:nt,gradientFromColor:He,gradientToColor:nt,titleHeight:dt.controlHeight/2,blockRadius:dt.borderRadiusSM,paragraphMarginTop:dt.marginLG+dt.marginXXS,paragraphLiHeight:dt.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ke=dt=>{const{prefixCls:et,className:Ve,rootClassName:He,active:nt,shape:ut="circle",size:We="default"}=dt,{getPrefixCls:De}=oe.useContext(_e.E_),Ie=De("skeleton",et),[Xe,yt]=je(Ie),Ye=(0,Ne.Z)(dt,["prefixCls","className"]),jt=Tt()(Ie,`${Ie}-element`,{[`${Ie}-active`]:nt},Ve,He,yt);return Xe(oe.createElement("div",{className:jt},oe.createElement(fe,Object.assign({prefixCls:`${Ie}-avatar`,shape:ut,size:We},Ye))))},Fe=dt=>{const{prefixCls:et,className:Ve,rootClassName:He,active:nt,block:ut=!1,size:We="default"}=dt,{getPrefixCls:De}=oe.useContext(_e.E_),Ie=De("skeleton",et),[Xe,yt]=je(Ie),Ye=(0,Ne.Z)(dt,["prefixCls"]),jt=Tt()(Ie,`${Ie}-element`,{[`${Ie}-active`]:nt,[`${Ie}-block`]:ut},Ve,He,yt);return Xe(oe.createElement("div",{className:jt},oe.createElement(fe,Object.assign({prefixCls:`${Ie}-button`,size:We},Ye))))};const Re="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var ze=dt=>{const{prefixCls:et,className:Ve,rootClassName:He,style:nt,active:ut}=dt,{getPrefixCls:We}=oe.useContext(_e.E_),De=We("skeleton",et),[Ie,Xe]=je(De),yt=Tt()(De,`${De}-element`,{[`${De}-active`]:ut},Ve,He,Xe);return Ie(oe.createElement("div",{className:yt},oe.createElement("div",{className:Tt()(`${De}-image`,Ve),style:nt},oe.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${De}-image-svg`},oe.createElement("path",{d:Re,className:`${De}-image-path`})))))},ot=dt=>{const{prefixCls:et,className:Ve,rootClassName:He,active:nt,block:ut,size:We="default"}=dt,{getPrefixCls:De}=oe.useContext(_e.E_),Ie=De("skeleton",et),[Xe,yt]=je(Ie),Ye=(0,Ne.Z)(dt,["prefixCls"]),jt=Tt()(Ie,`${Ie}-element`,{[`${Ie}-active`]:nt,[`${Ie}-block`]:ut},Ve,He,yt);return Xe(oe.createElement("div",{className:jt},oe.createElement(fe,Object.assign({prefixCls:`${Ie}-input`,size:We},Ye))))},ct=Ge(72308),pt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},bt=pt,qe=Ge(7657),at=function(et,Ve){return oe.createElement(qe.Z,(0,ct.Z)({},et,{ref:Ve,icon:bt}))},gt=oe.forwardRef(at),Ct=gt,vt=dt=>{const{prefixCls:et,className:Ve,rootClassName:He,style:nt,active:ut,children:We}=dt,{getPrefixCls:De}=oe.useContext(_e.E_),Ie=De("skeleton",et),[Xe,yt]=je(Ie),Ye=Tt()(Ie,`${Ie}-element`,{[`${Ie}-active`]:ut},yt,Ve,He),jt=We!=null?We:oe.createElement(Ct,null);return Xe(oe.createElement("div",{className:Ye},oe.createElement("div",{className:Tt()(`${Ie}-image`,Ve),style:nt},jt)))},mt=Ge(80702),At=dt=>{const et=De=>{const{width:Ie,rows:Xe=2}=dt;if(Array.isArray(Ie))return Ie[De];if(Xe-1===De)return Ie},{prefixCls:Ve,className:He,style:nt,rows:ut}=dt,We=(0,mt.Z)(Array(ut)).map((De,Ie)=>oe.createElement("li",{key:Ie,style:{width:et(Ie)}}));return oe.createElement("ul",{className:Tt()(Ve,He),style:nt},We)},Wt=dt=>{let{prefixCls:et,className:Ve,width:He,style:nt}=dt;return oe.createElement("h3",{className:Tt()(et,Ve),style:Object.assign({width:He},nt)})};function Et(dt){return dt&&typeof dt=="object"?dt:{}}function St(dt,et){return dt&&!et?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function tt(dt,et){return!dt&&et?{width:"38%"}:dt&&et?{width:"50%"}:{}}function ft(dt,et){const Ve={};return(!dt||!et)&&(Ve.width="61%"),!dt&&et?Ve.rows=3:Ve.rows=2,Ve}const $e=dt=>{const{prefixCls:et,loading:Ve,className:He,rootClassName:nt,style:ut,children:We,avatar:De=!1,title:Ie=!0,paragraph:Xe=!0,active:yt,round:Ye}=dt,{getPrefixCls:jt,direction:Ht,skeleton:en}=oe.useContext(_e.E_),It=jt("skeleton",et),[Ut,tn]=je(It);if(Ve||!("loading"in dt)){const ln=!!De,mn=!!Ie,jn=!!Xe;let Vn;if(ln){const xr=Object.assign(Object.assign({prefixCls:`${It}-avatar`},St(mn,jn)),Et(De));Vn=oe.createElement("div",{className:`${It}-header`},oe.createElement(fe,Object.assign({},xr)))}let Kn;if(mn||jn){let xr;if(mn){const dr=Object.assign(Object.assign({prefixCls:`${It}-title`},tt(ln,jn)),Et(Ie));xr=oe.createElement(Wt,Object.assign({},dr))}let gr;if(jn){const dr=Object.assign(Object.assign({prefixCls:`${It}-paragraph`},ft(ln,mn)),Et(Xe));gr=oe.createElement(At,Object.assign({},dr))}Kn=oe.createElement("div",{className:`${It}-content`},xr,gr)}const ar=Tt()(It,{[`${It}-with-avatar`]:ln,[`${It}-active`]:yt,[`${It}-rtl`]:Ht==="rtl",[`${It}-round`]:Ye},en==null?void 0:en.className,He,nt,tn);return Ut(oe.createElement("div",{className:ar,style:Object.assign(Object.assign({},en==null?void 0:en.style),ut)},Vn,Kn))}return typeof We!="undefined"?We:null};$e.Button=Fe,$e.Avatar=ke,$e.Input=ot,$e.Image=ze,$e.Node=vt;var lt=$e,Pt=lt},81327:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return ae}});var Qe=Ge(59301),Tt=Ge(92310),oe=Ge.n(Tt),_e=Ge(11592),Ne=Ge(36355),ve=Ge(33234);const fe=Qe.createContext({latestIndex:0}),be=fe.Provider;var ye=re=>{let{className:le,index:ue,children:pe,split:Ee,style:Ce}=re;const{latestIndex:je}=Qe.useContext(fe);return pe==null?null:Qe.createElement(Qe.Fragment,null,Qe.createElement("div",{className:le,style:Ce},pe),ue<je&&Ee&&Qe.createElement("span",{className:`${le}-split`},Ee))},we=Ge(2856);function me(re){return["small","middle","large"].includes(re)}function Se(re){return re?typeof re=="number"&&!Number.isNaN(re):!1}var de=function(re,le){var ue={};for(var pe in re)Object.prototype.hasOwnProperty.call(re,pe)&&le.indexOf(pe)<0&&(ue[pe]=re[pe]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,pe=Object.getOwnPropertySymbols(re);Ee<pe.length;Ee++)le.indexOf(pe[Ee])<0&&Object.prototype.propertyIsEnumerable.call(re,pe[Ee])&&(ue[pe[Ee]]=re[pe[Ee]]);return ue};const ee=Qe.forwardRef((re,le)=>{var ue,pe;const{getPrefixCls:Ee,space:Ce,direction:je}=Qe.useContext(Ne.E_),{size:Le=(Ce==null?void 0:Ce.size)||"small",align:ke,className:Oe,rootClassName:Fe,children:Re,direction:Ze="horizontal",prefixCls:ze,split:Ke,style:ot,wrap:ct=!1,classNames:pt,styles:bt}=re,qe=de(re,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[at,gt]=Array.isArray(Le)?Le:[Le,Le],Ct=me(gt),wt=me(at),vt=Se(gt),mt=Se(at),xt=(0,_e.Z)(Re,{keepEmpty:!0}),At=ke===void 0&&Ze==="horizontal"?"center":ke,kt=Ee("space",ze),[Wt,Et]=(0,we.Z)(kt),St=oe()(kt,Ce==null?void 0:Ce.className,Et,`${kt}-${Ze}`,{[`${kt}-rtl`]:je==="rtl",[`${kt}-align-${At}`]:At,[`${kt}-gap-row-${gt}`]:Ct,[`${kt}-gap-col-${at}`]:wt},Oe,Fe),tt=oe()(`${kt}-item`,(ue=pt==null?void 0:pt.item)!==null&&ue!==void 0?ue:(pe=Ce==null?void 0:Ce.classNames)===null||pe===void 0?void 0:pe.item);let ft=0;const $e=xt.map((dt,et)=>{var Ve,He;dt!=null&&(ft=et);const nt=dt&&dt.key||`${tt}-${et}`;return Qe.createElement(ye,{className:tt,key:nt,index:et,split:Ke,style:(Ve=bt==null?void 0:bt.item)!==null&&Ve!==void 0?Ve:(He=Ce==null?void 0:Ce.styles)===null||He===void 0?void 0:He.item},dt)}),lt=Qe.useMemo(()=>({latestIndex:ft}),[ft]);if(xt.length===0)return null;const Pt={};return ct&&(Pt.flexWrap="wrap"),!wt&&mt&&(Pt.columnGap=at),!Ct&&vt&&(Pt.rowGap=gt),Wt(Qe.createElement("div",Object.assign({ref:le,className:St,style:Object.assign(Object.assign(Object.assign({},Pt),Ce==null?void 0:Ce.style),ot)},qe),Qe.createElement(be,{value:lt},$e)))});ee.Compact=ve.ZP;var ae=ee},31797:function(bn,an,Ge){"use strict";Ge.d(an,{default:function(){return je}});var Qe=Ge(59301),Tt=Ge(56762),oe=Ge(92343),_e=Ge(92310),Ne=Ge.n(_e),ve=Ge(36355),fe=Ge(61621),Pe=Le=>{const{value:ke,formatter:Oe,precision:Fe,decimalSeparator:Re,groupSeparator:Ze="",prefixCls:ze}=Le;let Ke;if(typeof Oe=="function")Ke=Oe(ke);else{const ot=String(ke),ct=ot.match(/^(-?)(\d*)(\.(\d+))?$/);if(!ct||ot==="-")Ke=ot;else{const pt=ct[1];let bt=ct[2]||"0",qe=ct[4]||"";bt=bt.replace(/\B(?=(\d{3})+(?!\d))/g,Ze),typeof Fe=="number"&&(qe=qe.padEnd(Fe,"0").slice(0,Fe>0?Fe:0)),qe&&(qe=`${Re}${qe}`),Ke=[Qe.createElement("span",{key:"int",className:`${ze}-content-value-int`},pt,bt),qe&&Qe.createElement("span",{key:"decimal",className:`${ze}-content-value-decimal`},qe)]}}return Qe.createElement("span",{className:`${ze}-content-value`},Ke)},ye=Ge(17313),we=Ge(83116),me=Ge(37613);const Se=Le=>{const{componentCls:ke,marginXXS:Oe,padding:Fe,colorTextDescription:Re,titleFontSize:Ze,colorTextHeading:ze,contentFontSize:Ke,fontFamily:ot}=Le;return{[`${ke}`]:Object.assign(Object.assign({},(0,ye.Wf)(Le)),{[`${ke}-title`]:{marginBottom:Oe,color:Re,fontSize:Ze},[`${ke}-skeleton`]:{paddingTop:Fe},[`${ke}-content`]:{color:ze,fontSize:Ke,fontFamily:ot,[`${ke}-content-value`]:{display:"inline-block",direction:"ltr"},[`${ke}-content-prefix, ${ke}-content-suffix`]:{display:"inline-block"},[`${ke}-content-prefix`]:{marginInlineEnd:Oe},[`${ke}-content-suffix`]:{marginInlineStart:Oe}}})}};var de=(0,we.Z)("Statistic",Le=>{const ke=(0,me.TS)(Le,{});return[Se(ke)]},Le=>{const{fontSizeHeading3:ke,fontSize:Oe}=Le;return{titleFontSize:Oe,contentFontSize:ke}}),ee=Le=>{const{prefixCls:ke,className:Oe,rootClassName:Fe,style:Re,valueStyle:Ze,value:ze=0,title:Ke,valueRender:ot,prefix:ct,suffix:pt,loading:bt=!1,onMouseEnter:qe,onMouseLeave:at,decimalSeparator:gt=".",groupSeparator:Ct=","}=Le,{getPrefixCls:wt,direction:vt,statistic:mt}=Qe.useContext(ve.E_),xt=wt("statistic",ke),[At,kt]=de(xt),Wt=Qe.createElement(Pe,Object.assign({decimalSeparator:gt,groupSeparator:Ct,prefixCls:xt},Le,{value:ze})),Et=Ne()(xt,{[`${xt}-rtl`]:vt==="rtl"},mt==null?void 0:mt.className,Oe,Fe,kt);return At(Qe.createElement("div",{className:Et,style:Object.assign(Object.assign({},mt==null?void 0:mt.style),Re),onMouseEnter:qe,onMouseLeave:at},Ke&&Qe.createElement("div",{className:`${xt}-title`},Ke),Qe.createElement(fe.Z,{paragraph:!1,loading:bt,className:`${xt}-skeleton`},Qe.createElement("div",{style:Ze,className:`${xt}-content`},ct&&Qe.createElement("span",{className:`${xt}-content-prefix`},ct),ot?ot(Wt):Wt,pt&&Qe.createElement("span",{className:`${xt}-content-suffix`},pt)))))};const ae=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function re(Le,ke){let Oe=Le;const Fe=/\[[^\]]*]/g,Re=(ke.match(Fe)||[]).map(ot=>ot.slice(1,-1)),Ze=ke.replace(Fe,"[]"),ze=ae.reduce((ot,ct)=>{let[pt,bt]=ct;if(ot.includes(pt)){const qe=Math.floor(Oe/bt);return Oe-=qe*bt,ot.replace(new RegExp(`${pt}+`,"g"),at=>{const gt=at.length;return qe.toString().padStart(gt,"0")})}return ot},Ze);let Ke=0;return ze.replace(Fe,()=>{const ot=Re[Ke];return Ke+=1,ot})}function le(Le,ke){const{format:Oe=""}=ke,Fe=new Date(Le).getTime(),Re=Date.now(),Ze=Math.max(Fe-Re,0);return re(Ze,Oe)}const ue=1e3/30;function pe(Le){return new Date(Le).getTime()}const Ee=Le=>{const{value:ke,format:Oe="HH:mm:ss",onChange:Fe,onFinish:Re}=Le,Ze=(0,Tt.Z)(),ze=Qe.useRef(null),Ke=()=>{Re==null||Re(),ze.current&&(clearInterval(ze.current),ze.current=null)},ot=()=>{const bt=pe(ke);bt>=Date.now()&&(ze.current=setInterval(()=>{Ze(),Fe==null||Fe(bt-Date.now()),bt<Date.now()&&Ke()},ue))};Qe.useEffect(()=>(ot(),()=>{ze.current&&(clearInterval(ze.current),ze.current=null)}),[ke]);const ct=(bt,qe)=>le(bt,Object.assign(Object.assign({},qe),{format:Oe})),pt=bt=>(0,oe.Tm)(bt,{title:void 0});return Qe.createElement(ee,Object.assign({},Le,{valueRender:pt,formatter:ct}))};var Ce=Qe.memo(Ee);ee.Countdown=Ce;var je=ee},78673:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Ze}});var Qe=Ge(58617),Tt=Ge(92310),oe=Ge.n(Tt),_e=Ge(72308),Ne=Ge(49618),ve=Ge(52487),fe=Ge(74416),be=Ge(59301),Pe=Ge(18929),ye=Ge(10228),we=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],me=be.forwardRef(function(ze,Ke){var ot,ct=ze.prefixCls,pt=ct===void 0?"rc-switch":ct,bt=ze.className,qe=ze.checked,at=ze.defaultChecked,gt=ze.disabled,Ct=ze.loadingIcon,wt=ze.checkedChildren,vt=ze.unCheckedChildren,mt=ze.onClick,xt=ze.onChange,At=ze.onKeyDown,kt=(0,fe.Z)(ze,we),Wt=(0,Pe.Z)(!1,{value:qe,defaultValue:at}),Et=(0,ve.Z)(Wt,2),St=Et[0],tt=Et[1];function ft(dt,et){var Ve=St;return gt||(Ve=dt,tt(Ve),xt==null||xt(Ve,et)),Ve}function $e(dt){dt.which===ye.Z.LEFT?ft(!1,dt):dt.which===ye.Z.RIGHT&&ft(!0,dt),At==null||At(dt)}function lt(dt){var et=ft(!St,dt);mt==null||mt(et,dt)}var Pt=oe()(pt,bt,(ot={},(0,Ne.Z)(ot,"".concat(pt,"-checked"),St),(0,Ne.Z)(ot,"".concat(pt,"-disabled"),gt),ot));return be.createElement("button",(0,_e.Z)({},kt,{type:"button",role:"switch","aria-checked":St,disabled:gt,className:Pt,ref:Ke,onKeyDown:$e,onClick:lt}),Ct,be.createElement("span",{className:"".concat(pt,"-inner")},be.createElement("span",{className:"".concat(pt,"-inner-checked")},wt),be.createElement("span",{className:"".concat(pt,"-inner-unchecked")},vt)))});me.displayName="Switch";var Se=me,de=Ge(14088),z=Ge(36355),ee=Ge(1684),ae=Ge(19716),re=Ge(64993),le=Ge(17313),ue=Ge(83116),pe=Ge(37613);const Ee=ze=>{const{componentCls:Ke,trackHeightSM:ot,trackPadding:ct,trackMinWidthSM:pt,innerMinMarginSM:bt,innerMaxMarginSM:qe,handleSizeSM:at}=ze,gt=`${Ke}-inner`;return{[Ke]:{[`&${Ke}-small`]:{minWidth:pt,height:ot,lineHeight:`${ot}px`,[`${Ke}-inner`]:{paddingInlineStart:qe,paddingInlineEnd:bt,[`${gt}-checked`]:{marginInlineStart:`calc(-100% + ${at+ct*2}px - ${qe*2}px)`,marginInlineEnd:`calc(100% - ${at+ct*2}px + ${qe*2}px)`},[`${gt}-unchecked`]:{marginTop:-ot,marginInlineStart:0,marginInlineEnd:0}},[`${Ke}-handle`]:{width:at,height:at},[`${Ke}-loading-icon`]:{top:(at-ze.switchLoadingIconSize)/2,fontSize:ze.switchLoadingIconSize},[`&${Ke}-checked`]:{[`${Ke}-inner`]:{paddingInlineStart:bt,paddingInlineEnd:qe,[`${gt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${gt}-unchecked`]:{marginInlineStart:`calc(100% - ${at+ct*2}px + ${qe*2}px)`,marginInlineEnd:`calc(-100% + ${at+ct*2}px - ${qe*2}px)`}},[`${Ke}-handle`]:{insetInlineStart:`calc(100% - ${at+ct}px)`}},[`&:not(${Ke}-disabled):active`]:{[`&:not(${Ke}-checked) ${gt}`]:{[`${gt}-unchecked`]:{marginInlineStart:ze.marginXXS/2,marginInlineEnd:-ze.marginXXS/2}},[`&${Ke}-checked ${gt}`]:{[`${gt}-checked`]:{marginInlineStart:-ze.marginXXS/2,marginInlineEnd:ze.marginXXS/2}}}}}}},Ce=ze=>{const{componentCls:Ke,handleSize:ot}=ze;return{[Ke]:{[`${Ke}-loading-icon${ze.iconCls}`]:{position:"relative",top:(ot-ze.fontSize)/2,color:ze.switchLoadingIconColor,verticalAlign:"top"},[`&${Ke}-checked ${Ke}-loading-icon`]:{color:ze.switchColor}}}},je=ze=>{const{componentCls:Ke,motion:ot,trackPadding:ct,handleBg:pt,handleShadow:bt,handleSize:qe}=ze,at=`${Ke}-handle`;return{[Ke]:{[at]:{position:"absolute",top:ct,insetInlineStart:ct,width:qe,height:qe,transition:`all ${ze.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:pt,borderRadius:qe/2,boxShadow:bt,transition:`all ${ze.switchDuration} ease-in-out`,content:'""'}},[`&${Ke}-checked ${at}`]:{insetInlineStart:`calc(100% - ${qe+ct}px)`},[`&:not(${Ke}-disabled):active`]:ot?{[`${at}::before`]:{insetInlineEnd:ze.switchHandleActiveInset,insetInlineStart:0},[`&${Ke}-checked ${at}::before`]:{insetInlineEnd:0,insetInlineStart:ze.switchHandleActiveInset}}:{}}}},Le=ze=>{const{componentCls:Ke,trackHeight:ot,trackPadding:ct,innerMinMargin:pt,innerMaxMargin:bt,handleSize:qe}=ze,at=`${Ke}-inner`;return{[Ke]:{[at]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:bt,paddingInlineEnd:pt,transition:`padding-inline-start ${ze.switchDuration} ease-in-out, padding-inline-end ${ze.switchDuration} ease-in-out`,[`${at}-checked, ${at}-unchecked`]:{display:"block",color:ze.colorTextLightSolid,fontSize:ze.fontSizeSM,transition:`margin-inline-start ${ze.switchDuration} ease-in-out, margin-inline-end ${ze.switchDuration} ease-in-out`,pointerEvents:"none"},[`${at}-checked`]:{marginInlineStart:`calc(-100% + ${qe+ct*2}px - ${bt*2}px)`,marginInlineEnd:`calc(100% - ${qe+ct*2}px + ${bt*2}px)`},[`${at}-unchecked`]:{marginTop:-ot,marginInlineStart:0,marginInlineEnd:0}},[`&${Ke}-checked ${at}`]:{paddingInlineStart:pt,paddingInlineEnd:bt,[`${at}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${at}-unchecked`]:{marginInlineStart:`calc(100% - ${qe+ct*2}px + ${bt*2}px)`,marginInlineEnd:`calc(-100% + ${qe+ct*2}px - ${bt*2}px)`}},[`&:not(${Ke}-disabled):active`]:{[`&:not(${Ke}-checked) ${at}`]:{[`${at}-unchecked`]:{marginInlineStart:ct*2,marginInlineEnd:-ct*2}},[`&${Ke}-checked ${at}`]:{[`${at}-checked`]:{marginInlineStart:-ct*2,marginInlineEnd:ct*2}}}}}},ke=ze=>{const{componentCls:Ke,trackHeight:ot,trackMinWidth:ct}=ze;return{[Ke]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,le.Wf)(ze)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ct,height:ot,lineHeight:`${ot}px`,verticalAlign:"middle",background:ze.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${ze.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ke}-disabled)`]:{background:ze.colorTextTertiary}}),(0,le.Qy)(ze)),{[`&${Ke}-checked`]:{background:ze.switchColor,[`&:hover:not(${Ke}-disabled)`]:{background:ze.colorPrimaryHover}},[`&${Ke}-loading, &${Ke}-disabled`]:{cursor:"not-allowed",opacity:ze.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ke}-rtl`]:{direction:"rtl"}})}};var Oe=(0,ue.Z)("Switch",ze=>{const Ke=(0,pe.TS)(ze,{switchDuration:ze.motionDurationMid,switchColor:ze.colorPrimary,switchDisabledOpacity:ze.opacityLoading,switchLoadingIconSize:ze.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${ze.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ke(Ke),Le(Ke),je(Ke),Ce(Ke),Ee(Ke)]},ze=>{const{fontSize:Ke,lineHeight:ot,controlHeight:ct,colorWhite:pt}=ze,bt=Ke*ot,qe=ct/2,at=2,gt=bt-at*2,Ct=qe-at*2;return{trackHeight:bt,trackHeightSM:qe,trackMinWidth:gt*2+at*4,trackMinWidthSM:Ct*2+at*2,trackPadding:at,handleBg:pt,handleSize:gt,handleSizeSM:Ct,handleShadow:`0 2px 4px 0 ${new re.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:gt/2,innerMaxMargin:gt+at+at*2,innerMinMarginSM:Ct/2,innerMaxMarginSM:Ct+at+at*2}}),Fe=function(ze,Ke){var ot={};for(var ct in ze)Object.prototype.hasOwnProperty.call(ze,ct)&&Ke.indexOf(ct)<0&&(ot[ct]=ze[ct]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,ct=Object.getOwnPropertySymbols(ze);pt<ct.length;pt++)Ke.indexOf(ct[pt])<0&&Object.prototype.propertyIsEnumerable.call(ze,ct[pt])&&(ot[ct[pt]]=ze[ct[pt]]);return ot};const Re=be.forwardRef((ze,Ke)=>{const{prefixCls:ot,size:ct,disabled:pt,loading:bt,className:qe,rootClassName:at,style:gt}=ze,Ct=Fe(ze,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:wt,direction:vt,switch:mt}=be.useContext(z.E_),xt=be.useContext(ee.Z),At=(pt!=null?pt:xt)||bt,kt=wt("switch",ot),Wt=be.createElement("div",{className:`${kt}-handle`},bt&&be.createElement(Qe.Z,{className:`${kt}-loading-icon`})),[Et,St]=Oe(kt),tt=(0,ae.Z)(ct),ft=oe()(mt==null?void 0:mt.className,{[`${kt}-small`]:tt==="small",[`${kt}-loading`]:bt,[`${kt}-rtl`]:vt==="rtl"},qe,at,St),$e=Object.assign(Object.assign({},mt==null?void 0:mt.style),gt);return Et(be.createElement(de.Z,{component:"Switch"},be.createElement(Se,Object.assign({},Ct,{prefixCls:kt,className:ft,style:$e,disabled:At,ref:Ke,loadingIcon:Wt}))))});Re.__ANT_SWITCH=!0;var Ze=Re},17574:function(bn,an,Ge){"use strict";Ge.d(an,{default:function(){return qe}});var Qe=Ge(54844),Tt=Ge(80702),oe=Ge(52671),_e=Ge(8657),Ne=Ge(72308),ve=Ge(59301),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},be=fe,Pe=Ge(7657),ye=function(gt,Ct){return ve.createElement(Pe.Z,(0,Ne.Z)({},gt,{ref:Ct,icon:be}))},we=ve.forwardRef(ye),me=we,Se=Ge(92310),de=Ge.n(Se),z=Ge(35654),ee=Ge(71430),ae=Ge(36355),re=Ge(56082),le=Ge(62892),ue=Ge(20648);const pe=4;function Ee(at){const{dropPosition:gt,dropLevelOffset:Ct,prefixCls:wt,indent:vt,direction:mt="ltr"}=at,xt=mt==="ltr"?"left":"right",At=mt==="ltr"?"right":"left",kt={[xt]:-Ct*vt+pe,[At]:0};switch(gt){case-1:kt.top=-3;break;case 1:kt.bottom=-3;break;default:kt.bottom=-3,kt[xt]=vt+pe;break}return ve.createElement("div",{style:kt,className:`${wt}-drop-indicator`})}var Ce=Ge(71997),Le=ve.forwardRef((at,gt)=>{const{getPrefixCls:Ct,direction:wt,virtual:vt,tree:mt}=ve.useContext(ae.E_),{prefixCls:xt,className:At,showIcon:kt=!1,showLine:Wt,switcherIcon:Et,blockNode:St=!1,children:tt,checkable:ft=!1,selectable:$e=!0,draggable:lt,motion:Pt,style:dt}=at,et=Ct("tree",xt),Ve=Ct(),He=Pt!=null?Pt:Object.assign(Object.assign({},(0,le.Z)(Ve)),{motionAppear:!1}),nt=Object.assign(Object.assign({},at),{checkable:ft,selectable:$e,showIcon:kt,motion:He,blockNode:St,showLine:!!Wt,dropIndicatorRender:Ee}),[ut,We]=(0,ue.ZP)(et),De=ve.useMemo(()=>{if(!lt)return!1;let Xe={};switch(typeof lt){case"function":Xe.nodeDraggable=lt;break;case"object":Xe=Object.assign({},lt);break;default:break}return Xe.icon!==!1&&(Xe.icon=Xe.icon||ve.createElement(re.Z,null)),Xe},[lt]),Ie=Xe=>ve.createElement(Ce.Z,{prefixCls:et,switcherIcon:Et,treeNodeProps:Xe,showLine:Wt});return ut(ve.createElement(Qe.Z,Object.assign({itemHeight:20,ref:gt,virtual:vt},nt,{style:Object.assign(Object.assign({},mt==null?void 0:mt.style),dt),prefixCls:et,className:de()({[`${et}-icon-hide`]:!kt,[`${et}-block-node`]:St,[`${et}-unselectable`]:!$e,[`${et}-rtl`]:wt==="rtl"},mt==null?void 0:mt.className,At,We),direction:wt,checkable:ft&&ve.createElement("span",{className:`${et}-checkbox-inner`}),selectable:$e,switcherIcon:Ie,draggable:De}),tt))}),ke;(function(at){at[at.None=0]="None",at[at.Start=1]="Start",at[at.End=2]="End"})(ke||(ke={}));function Oe(at,gt){function Ct(wt){const{key:vt,children:mt}=wt;gt(vt,wt)!==!1&&Oe(mt||[],gt)}at.forEach(Ct)}function Fe(at){let{treeData:gt,expandedKeys:Ct,startKey:wt,endKey:vt}=at;const mt=[];let xt=ke.None;if(wt&&wt===vt)return[wt];if(!wt||!vt)return[];function At(kt){return kt===wt||kt===vt}return Oe(gt,kt=>{if(xt===ke.End)return!1;if(At(kt)){if(mt.push(kt),xt===ke.None)xt=ke.Start;else if(xt===ke.Start)return xt=ke.End,!1}else xt===ke.Start&&mt.push(kt);return Ct.includes(kt)}),mt}function Re(at,gt){const Ct=(0,Tt.Z)(gt),wt=[];return Oe(at,(vt,mt)=>{const xt=Ct.indexOf(vt);return xt!==-1&&(wt.push(mt),Ct.splice(xt,1)),!!Ct.length}),wt}var Ze=function(at,gt){var Ct={};for(var wt in at)Object.prototype.hasOwnProperty.call(at,wt)&>.indexOf(wt)<0&&(Ct[wt]=at[wt]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,wt=Object.getOwnPropertySymbols(at);vt<wt.length;vt++)gt.indexOf(wt[vt])<0&&Object.prototype.propertyIsEnumerable.call(at,wt[vt])&&(Ct[wt[vt]]=at[wt[vt]]);return Ct};function ze(at){const{isLeaf:gt,expanded:Ct}=at;return gt?ve.createElement(oe.Z,null):Ct?ve.createElement(_e.Z,null):ve.createElement(me,null)}function Ke(at){let{treeData:gt,children:Ct}=at;return gt||(0,ee.zn)(Ct)}const ot=(at,gt)=>{var{defaultExpandAll:Ct,defaultExpandParent:wt,defaultExpandedKeys:vt}=at,mt=Ze(at,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const xt=ve.useRef(),At=ve.useRef(),kt=()=>{const{keyEntities:De}=(0,ee.I8)(Ke(mt));let Ie;return Ct?Ie=Object.keys(De):wt?Ie=(0,z.r7)(mt.expandedKeys||vt||[],De):Ie=mt.expandedKeys||vt,Ie},[Wt,Et]=ve.useState(mt.selectedKeys||mt.defaultSelectedKeys||[]),[St,tt]=ve.useState(()=>kt());ve.useEffect(()=>{"selectedKeys"in mt&&Et(mt.selectedKeys)},[mt.selectedKeys]),ve.useEffect(()=>{"expandedKeys"in mt&&tt(mt.expandedKeys)},[mt.expandedKeys]);const ft=(De,Ie)=>{var Xe;return"expandedKeys"in mt||tt(De),(Xe=mt.onExpand)===null||Xe===void 0?void 0:Xe.call(mt,De,Ie)},$e=(De,Ie)=>{var Xe;const{multiple:yt}=mt,{node:Ye,nativeEvent:jt}=Ie,{key:Ht=""}=Ye,en=Ke(mt),It=Object.assign(Object.assign({},Ie),{selected:!0}),Ut=(jt==null?void 0:jt.ctrlKey)||(jt==null?void 0:jt.metaKey),tn=jt==null?void 0:jt.shiftKey;let ln;yt&&Ut?(ln=De,xt.current=Ht,At.current=ln,It.selectedNodes=Re(en,ln)):yt&&tn?(ln=Array.from(new Set([].concat((0,Tt.Z)(At.current||[]),(0,Tt.Z)(Fe({treeData:en,expandedKeys:St,startKey:Ht,endKey:xt.current}))))),It.selectedNodes=Re(en,ln)):(ln=[Ht],xt.current=Ht,At.current=ln,It.selectedNodes=Re(en,ln)),(Xe=mt.onSelect)===null||Xe===void 0||Xe.call(mt,ln,It),"selectedKeys"in mt||Et(ln)},{getPrefixCls:lt,direction:Pt}=ve.useContext(ae.E_),{prefixCls:dt,className:et,showIcon:Ve=!0,expandAction:He="click"}=mt,nt=Ze(mt,["prefixCls","className","showIcon","expandAction"]),ut=lt("tree",dt),We=de()(`${ut}-directory`,{[`${ut}-directory-rtl`]:Pt==="rtl"},et);return ve.createElement(Le,Object.assign({icon:ze,ref:gt,blockNode:!0},nt,{showIcon:Ve,expandAction:He,prefixCls:ut,className:We,expandedKeys:St,selectedKeys:Wt,onSelect:$e,onExpand:ft}))};var pt=ve.forwardRef(ot);const bt=Le;bt.DirectoryTree=pt,bt.TreeNode=Qe.O;var qe=bt},20648:function(bn,an,Ge){"use strict";Ge.d(an,{TM:function(){return Se},Yk:function(){return me}});var Qe=Ge(93083),Tt=Ge(98447),oe=Ge(17313),_e=Ge(8378),Ne=Ge(37613),ve=Ge(83116);const fe=new Qe.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),be=(de,z)=>({[`.${de}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${z.motionDurationSlow}`}}}),Pe=(de,z)=>({[`.${de}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:z.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${z.lineWidthBold}px solid ${z.colorPrimary}`,borderRadius:"50%",content:'""'}}}),ye=(de,z)=>{const{treeCls:ee,treeNodeCls:ae,treeNodePadding:re,titleHeight:le,nodeSelectedBg:ue,nodeHoverBg:pe}=z,Ee=z.paddingXS;return{[ee]:Object.assign(Object.assign({},(0,oe.Wf)(z)),{background:z.colorBgContainer,borderRadius:z.borderRadius,transition:`background-color ${z.motionDurationSlow}`,[`&${ee}-rtl`]:{[`${ee}-switcher`]:{"&_close":{[`${ee}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${ee}-active-focused)`]:Object.assign({},(0,oe.oN)(z)),[`${ee}-list-holder-inner`]:{alignItems:"flex-start"},[`&${ee}-block-node`]:{[`${ee}-list-holder-inner`]:{alignItems:"stretch",[`${ee}-node-content-wrapper`]:{flex:"auto"},[`${ae}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:re,insetInlineStart:0,border:`1px solid ${z.colorPrimary}`,opacity:0,animationName:fe,animationDuration:z.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${ae}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${re}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${ee}-node-content-wrapper`]:{color:z.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${ee}-node-content-wrapper`]:Object.assign({},(0,oe.oN)(z)),[`&:not(${ae}-disabled).filter-node ${ee}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${ee}-draggable-icon`]:{flexShrink:0,width:le,lineHeight:`${le}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${z.motionDurationSlow}`,[`${ae}:hover &`]:{opacity:.45}},[`&${ae}-disabled`]:{[`${ee}-draggable-icon`]:{visibility:"hidden"}}}},[`${ee}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:le}},[`${ee}-draggable-icon`]:{visibility:"hidden"},[`${ee}-switcher`]:Object.assign(Object.assign({},be(de,z)),{position:"relative",flex:"none",alignSelf:"stretch",width:le,margin:0,lineHeight:`${le}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${ee}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:z.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:le/2,bottom:-re,marginInlineStart:-1,borderInlineEnd:`1px solid ${z.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:le/2*.8,height:le/2,borderBottom:`1px solid ${z.colorBorder}`,content:'""'}}}),[`${ee}-checkbox`]:{top:"initial",marginInlineEnd:Ee},[`${ee}-node-content-wrapper, ${ee}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:le,margin:0,padding:`0 ${z.paddingXS/2}px`,color:"inherit",lineHeight:`${le}px`,background:"transparent",borderRadius:z.borderRadius,cursor:"pointer",transition:`all ${z.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:pe},[`&${ee}-node-selected`]:{backgroundColor:ue},[`${ee}-iconEle`]:{display:"inline-block",width:le,height:le,lineHeight:`${le}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${ee}-unselectable ${ee}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${ee}-node-content-wrapper`]:Object.assign({lineHeight:`${le}px`,userSelect:"none"},Pe(de,z)),[`${ae}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${z.colorPrimary}`}},"&-show-line":{[`${ee}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:le/2,bottom:-re,borderInlineEnd:`1px solid ${z.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${ee}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ae}-leaf-last`]:{[`${ee}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${le/2}px !important`}}}}})}},we=de=>{const{treeCls:z,treeNodeCls:ee,treeNodePadding:ae,directoryNodeSelectedBg:re,directoryNodeSelectedColor:le}=de;return{[`${z}${z}-directory`]:{[ee]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ae,insetInlineStart:0,transition:`background-color ${de.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:de.controlItemBgHover}},"> *":{zIndex:1},[`${z}-switcher`]:{transition:`color ${de.motionDurationMid}`},[`${z}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${z}-node-selected`]:{color:le,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:re},[`${z}-switcher`]:{color:le},[`${z}-node-content-wrapper`]:{color:le,background:"transparent"}}}}}},me=(de,z)=>{const ee=`.${de}`,ae=`${ee}-treenode`,re=z.paddingXS/2,le=(0,Ne.TS)(z,{treeCls:ee,treeNodeCls:ae,treeNodePadding:re});return[ye(de,le),we(le)]},Se=de=>{const{controlHeightSM:z}=de;return{titleHeight:z,nodeHoverBg:de.controlItemBgHover,nodeSelectedBg:de.controlItemBgActive}};an.ZP=(0,ve.Z)("Tree",(de,z)=>{let{prefixCls:ee}=z;return[{[de.componentCls]:(0,Tt.C2)(`${ee}-checkbox`,de)},me(ee,de),(0,_e.Z)(de)]},de=>{const{colorTextLightSolid:z,colorPrimary:ee}=de;return Object.assign(Object.assign({},Se(de)),{directoryNodeSelectedColor:z,directoryNodeSelectedBg:ee})})},71997:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return ae}});var Qe=Ge(72308),Tt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},_e=oe,Ne=Ge(7657),ve=function(le,ue){return Tt.createElement(Ne.Z,(0,Qe.Z)({},le,{ref:ue,icon:_e}))},fe=Tt.forwardRef(ve),be=fe,Pe=Ge(52671),ye=Ge(58617),we=Ge(15075),me=Ge(43531),Se=Ge(92310),de=Ge.n(Se),z=Ge(92343),ae=re=>{const{prefixCls:le,switcherIcon:ue,treeNodeProps:pe,showLine:Ee}=re,{isLeaf:Ce,expanded:je,loading:Le}=pe;if(Le)return Tt.createElement(ye.Z,{className:`${le}-switcher-loading-icon`});let ke;if(Ee&&typeof Ee=="object"&&(ke=Ee.showLeafIcon),Ce){if(!Ee)return null;if(typeof ke!="boolean"&&ke){const Re=typeof ke=="function"?ke(pe):ke,Ze=`${le}-switcher-line-custom-icon`;return(0,z.l$)(Re)?(0,z.Tm)(Re,{className:de()(Re.props.className||"",Ze)}):Re}return ke?Tt.createElement(Pe.Z,{className:`${le}-switcher-line-icon`}):Tt.createElement("span",{className:`${le}-switcher-leaf-line`})}const Oe=`${le}-switcher-icon`,Fe=typeof ue=="function"?ue(pe):ue;return(0,z.l$)(Fe)?(0,z.Tm)(Fe,{className:de()(Fe.props.className||"",Oe)}):Fe!==void 0?Fe:Ee?je?Tt.createElement(we.Z,{className:`${le}-switcher-line-icon`}):Tt.createElement(me.Z,{className:`${le}-switcher-line-icon`}):Tt.createElement(be,{className:Oe})}},54580:function(bn,an,Ge){"use strict";Ge.d(an,{default:function(){return Sn}});var Qe=Ge(59301),Tt=Ge(80702),oe=Ge(92310),_e=Ge.n(oe),Ne=Ge(72308),ve=Ge(96949),fe=Ge(55090),be=Ge(77205),Pe=Ge(38793),ye=Ge(49618),we=Ge(74416),me=Ge(65736),Se=Ge(62853),de=Ge(72633),z=Ge(26112);function ee(Qt,hn){var dn="cannot ".concat(Qt.method," ").concat(Qt.action," ").concat(hn.status,"'"),cn=new Error(dn);return cn.status=hn.status,cn.method=Qt.method,cn.url=Qt.action,cn}function ae(Qt){var hn=Qt.responseText||Qt.response;if(!hn)return hn;try{return JSON.parse(hn)}catch(dn){return hn}}function re(Qt){var hn=new XMLHttpRequest;Qt.onProgress&&hn.upload&&(hn.upload.onprogress=function(Cn){Cn.total>0&&(Cn.percent=Cn.loaded/Cn.total*100),Qt.onProgress(Cn)});var dn=new FormData;Qt.data&&Object.keys(Qt.data).forEach(function(Pn){var Cn=Qt.data[Pn];if(Array.isArray(Cn)){Cn.forEach(function(Dn){dn.append("".concat(Pn,"[]"),Dn)});return}dn.append(Pn,Cn)}),Qt.file instanceof Blob?dn.append(Qt.filename,Qt.file,Qt.file.name):dn.append(Qt.filename,Qt.file),hn.onerror=function(Cn){Qt.onError(Cn)},hn.onload=function(){return hn.status<200||hn.status>=300?Qt.onError(ee(Qt,hn),ae(hn)):Qt.onSuccess(ae(hn),hn)},hn.open(Qt.method,Qt.action,!0),Qt.withCredentials&&"withCredentials"in hn&&(hn.withCredentials=!0);var cn=Qt.headers||{};return cn["X-Requested-With"]!==null&&hn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(cn).forEach(function(Pn){cn[Pn]!==null&&hn.setRequestHeader(Pn,cn[Pn])}),hn.send(dn),{abort:function(){hn.abort()}}}var le=+new Date,ue=0;function pe(){return"rc-upload-".concat(le,"-").concat(++ue)}var Ee=Ge(48736),Ce=function(Qt,hn){if(Qt&&hn){var dn=Array.isArray(hn)?hn:hn.split(","),cn=Qt.name||"",Pn=Qt.type||"",Cn=Pn.replace(/\/.*$/,"");return dn.some(function(Dn){var In=Dn.trim();if(/^\*(\/\*)?$/.test(Dn))return!0;if(In.charAt(0)==="."){var tr=cn.toLowerCase(),un=In.toLowerCase(),fr=[un];return(un===".jpg"||un===".jpeg")&&(fr=[".jpg",".jpeg"]),fr.some(function(wr){return tr.endsWith(wr)})}return/\/\*$/.test(In)?Cn===In.replace(/\/.*$/,""):Pn===In?!0:/^\w+$/.test(In)?((0,Ee.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(In,"'.Skip for check.")),!0):!1})}return!0};function je(Qt,hn){var dn=Qt.createReader(),cn=[];function Pn(){dn.readEntries(function(Cn){var Dn=Array.prototype.slice.apply(Cn);cn=cn.concat(Dn);var In=!Dn.length;In?hn(cn):Pn()})}Pn()}var Le=function(hn,dn,cn){var Pn=function Cn(Dn,In){Dn&&(Dn.path=In||"",Dn.isFile?Dn.file(function(tr){cn(tr)&&(Dn.fullPath&&!tr.webkitRelativePath&&(Object.defineProperties(tr,{webkitRelativePath:{writable:!0}}),tr.webkitRelativePath=Dn.fullPath.replace(/^\//,""),Object.defineProperties(tr,{webkitRelativePath:{writable:!1}})),dn([tr]))}):Dn.isDirectory&&je(Dn,function(tr){tr.forEach(function(un){Cn(un,"".concat(In).concat(Dn.name,"/"))})}))};hn.forEach(function(Cn){Pn(Cn.webkitGetAsEntry())})},ke=Le,Oe=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Fe=function(Qt){(0,be.Z)(dn,Qt);var hn=(0,Pe.Z)(dn);function dn(){var cn;(0,ve.Z)(this,dn);for(var Pn=arguments.length,Cn=new Array(Pn),Dn=0;Dn<Pn;Dn++)Cn[Dn]=arguments[Dn];return cn=hn.call.apply(hn,[this].concat(Cn)),cn.state={uid:pe()},cn.reqs={},cn.fileInput=void 0,cn._isMounted=void 0,cn.onChange=function(In){var tr=cn.props,un=tr.accept,fr=tr.directory,wr=In.target.files,Or=(0,Tt.Z)(wr).filter(function(fn){return!fr||Ce(fn,un)});cn.uploadFiles(Or),cn.reset()},cn.onClick=function(In){var tr=cn.fileInput;if(tr){var un=In.target,fr=cn.props.onClick;if(un&&un.tagName==="BUTTON"){var wr=tr.parentNode;wr.focus(),un.blur()}tr.click(),fr&&fr(In)}},cn.onKeyDown=function(In){In.key==="Enter"&&cn.onClick(In)},cn.onFileDrop=function(In){var tr=cn.props.multiple;if(In.preventDefault(),In.type!=="dragover")if(cn.props.directory)ke(Array.prototype.slice.call(In.dataTransfer.items),cn.uploadFiles,function(fr){return Ce(fr,cn.props.accept)});else{var un=(0,Tt.Z)(In.dataTransfer.files).filter(function(fr){return Ce(fr,cn.props.accept)});tr===!1&&(un=un.slice(0,1)),cn.uploadFiles(un)}},cn.uploadFiles=function(In){var tr=(0,Tt.Z)(In),un=tr.map(function(fr){return fr.uid=pe(),cn.processFile(fr,tr)});Promise.all(un).then(function(fr){var wr=cn.props.onBatchStart;wr==null||wr(fr.map(function(Or){var fn=Or.origin,_n=Or.parsedFile;return{file:fn,parsedFile:_n}})),fr.filter(function(Or){return Or.parsedFile!==null}).forEach(function(Or){cn.post(Or)})})},cn.processFile=function(){var In=(0,de.Z)((0,me.Z)().mark(function tr(un,fr){var wr,Or,fn,_n,Yn,hr,Qn,ur,Cr;return(0,me.Z)().wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:if(wr=cn.props.beforeUpload,Or=un,!wr){cr.next=14;break}return cr.prev=3,cr.next=6,wr(un,fr);case 6:Or=cr.sent,cr.next=12;break;case 9:cr.prev=9,cr.t0=cr.catch(3),Or=!1;case 12:if(Or!==!1){cr.next=14;break}return cr.abrupt("return",{origin:un,parsedFile:null,action:null,data:null});case 14:if(fn=cn.props.action,typeof fn!="function"){cr.next=21;break}return cr.next=18,fn(un);case 18:_n=cr.sent,cr.next=22;break;case 21:_n=fn;case 22:if(Yn=cn.props.data,typeof Yn!="function"){cr.next=29;break}return cr.next=26,Yn(un);case 26:hr=cr.sent,cr.next=30;break;case 29:hr=Yn;case 30:return Qn=((0,Se.Z)(Or)==="object"||typeof Or=="string")&&Or?Or:un,Qn instanceof File?ur=Qn:ur=new File([Qn],un.name,{type:un.type}),Cr=ur,Cr.uid=un.uid,cr.abrupt("return",{origin:un,data:hr,parsedFile:Cr,action:_n});case 35:case"end":return cr.stop()}},tr,null,[[3,9]])}));return function(tr,un){return In.apply(this,arguments)}}(),cn.saveFileInput=function(In){cn.fileInput=In},cn}return(0,fe.Z)(dn,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Pn){var Cn=this,Dn=Pn.data,In=Pn.origin,tr=Pn.action,un=Pn.parsedFile;if(this._isMounted){var fr=this.props,wr=fr.onStart,Or=fr.customRequest,fn=fr.name,_n=fr.headers,Yn=fr.withCredentials,hr=fr.method,Qn=In.uid,ur=Or||re,Cr={action:tr,filename:fn,data:Dn,file:un,headers:_n,withCredentials:Yn,method:hr||"post",onProgress:function(cr){var Mr=Cn.props.onProgress;Mr==null||Mr(cr,un)},onSuccess:function(cr,Mr){var Tn=Cn.props.onSuccess;Tn==null||Tn(cr,un,Mr),delete Cn.reqs[Qn]},onError:function(cr,Mr){var Tn=Cn.props.onError;Tn==null||Tn(cr,Mr,un),delete Cn.reqs[Qn]}};wr(In),this.reqs[Qn]=ur(Cr)}}},{key:"reset",value:function(){this.setState({uid:pe()})}},{key:"abort",value:function(Pn){var Cn=this.reqs;if(Pn){var Dn=Pn.uid?Pn.uid:Pn;Cn[Dn]&&Cn[Dn].abort&&Cn[Dn].abort(),delete Cn[Dn]}else Object.keys(Cn).forEach(function(In){Cn[In]&&Cn[In].abort&&Cn[In].abort(),delete Cn[In]})}},{key:"render",value:function(){var Pn=this.props,Cn=Pn.component,Dn=Pn.prefixCls,In=Pn.className,tr=Pn.disabled,un=Pn.id,fr=Pn.style,wr=Pn.multiple,Or=Pn.accept,fn=Pn.capture,_n=Pn.children,Yn=Pn.directory,hr=Pn.openFileDialogOnClick,Qn=Pn.onMouseEnter,ur=Pn.onMouseLeave,Cr=(0,we.Z)(Pn,Oe),Pr=_e()((0,ye.Z)((0,ye.Z)((0,ye.Z)({},Dn,!0),"".concat(Dn,"-disabled"),tr),In,In)),cr=Yn?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Mr=tr?{}:{onClick:hr?this.onClick:function(){},onKeyDown:hr?this.onKeyDown:function(){},onMouseEnter:Qn,onMouseLeave:ur,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return Qe.createElement(Cn,(0,Ne.Z)({},Mr,{className:Pr,role:"button",style:fr}),Qe.createElement("input",(0,Ne.Z)({},(0,z.Z)(Cr,{aria:!0,data:!0}),{id:un,disabled:tr,type:"file",ref:this.saveFileInput,onClick:function(qr){return qr.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Or},cr,{multiple:wr,onChange:this.onChange},fn!=null?{capture:fn}:{})),_n)}}]),dn}(Qe.Component),Re=Fe;function Ze(){}var ze=function(Qt){(0,be.Z)(dn,Qt);var hn=(0,Pe.Z)(dn);function dn(){var cn;(0,ve.Z)(this,dn);for(var Pn=arguments.length,Cn=new Array(Pn),Dn=0;Dn<Pn;Dn++)Cn[Dn]=arguments[Dn];return cn=hn.call.apply(hn,[this].concat(Cn)),cn.uploader=void 0,cn.saveUploader=function(In){cn.uploader=In},cn}return(0,fe.Z)(dn,[{key:"abort",value:function(Pn){this.uploader.abort(Pn)}},{key:"render",value:function(){return Qe.createElement(Re,(0,Ne.Z)({},this.props,{ref:this.saveUploader}))}}]),dn}(Qe.Component);ze.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Ze,onError:Ze,onSuccess:Ze,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Ke=ze,ot=Ke,ct=Ge(18929),pt=Ge(4676),bt=Ge(36355),qe=Ge(1684),at=Ge(9763),gt=Ge(31724),Ct={icon:function(hn,dn){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:dn}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:hn}}]}},name:"file",theme:"twotone"},wt=Ct,vt=Ge(7657),mt=function(hn,dn){return Qe.createElement(vt.Z,(0,Ne.Z)({},hn,{ref:dn,icon:wt}))},xt=Qe.forwardRef(mt),At=xt,kt=Ge(58617),Wt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Et=Wt,St=function(hn,dn){return Qe.createElement(vt.Z,(0,Ne.Z)({},hn,{ref:dn,icon:Et}))},tt=Qe.forwardRef(St),ft=tt,$e={icon:function(hn,dn){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:hn}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:dn}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:dn}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:dn}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:hn}}]}},name:"picture",theme:"twotone"},lt=$e,Pt=function(hn,dn){return Qe.createElement(vt.Z,(0,Ne.Z)({},hn,{ref:dn,icon:lt}))},dt=Qe.forwardRef(Pt),et=dt,Ve=Ge(77900),He=Ge(56762),nt=Ge(62892),ut=Ge(92343),We=Ge(3113);function De(Qt){return Object.assign(Object.assign({},Qt),{lastModified:Qt.lastModified,lastModifiedDate:Qt.lastModifiedDate,name:Qt.name,size:Qt.size,type:Qt.type,uid:Qt.uid,percent:0,originFileObj:Qt})}function Ie(Qt,hn){const dn=(0,Tt.Z)(hn),cn=dn.findIndex(Pn=>{let{uid:Cn}=Pn;return Cn===Qt.uid});return cn===-1?dn.push(Qt):dn[cn]=Qt,dn}function Xe(Qt,hn){const dn=Qt.uid!==void 0?"uid":"name";return hn.filter(cn=>cn[dn]===Qt[dn])[0]}function yt(Qt,hn){const dn=Qt.uid!==void 0?"uid":"name",cn=hn.filter(Pn=>Pn[dn]!==Qt[dn]);return cn.length===hn.length?null:cn}const Ye=function(){const hn=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),cn=hn[hn.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(cn)||[""])[0]},jt=Qt=>Qt.indexOf("image/")===0,Ht=Qt=>{if(Qt.type&&!Qt.thumbUrl)return jt(Qt.type);const hn=Qt.thumbUrl||Qt.url||"",dn=Ye(hn);return/^data:image\//.test(hn)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(dn)?!0:!(/^data:/.test(hn)||dn)},en=200;function It(Qt){return new Promise(hn=>{if(!Qt.type||!jt(Qt.type)){hn("");return}const dn=document.createElement("canvas");dn.width=en,dn.height=en,dn.style.cssText=`position: fixed; left: 0; top: 0; width: ${en}px; height: ${en}px; z-index: 9999; display: none;`,document.body.appendChild(dn);const cn=dn.getContext("2d"),Pn=new Image;if(Pn.onload=()=>{const{width:Cn,height:Dn}=Pn;let In=en,tr=en,un=0,fr=0;Cn>Dn?(tr=Dn*(en/Cn),fr=-(tr-In)/2):(In=Cn*(en/Dn),un=-(In-tr)/2),cn.drawImage(Pn,un,fr,In,tr);const wr=dn.toDataURL();document.body.removeChild(dn),window.URL.revokeObjectURL(Pn.src),hn(wr)},Pn.crossOrigin="anonymous",Qt.type.startsWith("image/svg+xml")){const Cn=new FileReader;Cn.onload=()=>{Cn.result&&(Pn.src=Cn.result)},Cn.readAsDataURL(Qt)}else if(Qt.type.startsWith("image/gif")){const Cn=new FileReader;Cn.onload=()=>{Cn.result&&hn(Cn.result)},Cn.readAsDataURL(Qt)}else Pn.src=window.URL.createObjectURL(Qt)})}var Ut=Ge(26227),tn=Ge(41464),ln=Ge(15277),mn=Ge(93948),jn=Ge(6848),Kn=Qe.forwardRef((Qt,hn)=>{let{prefixCls:dn,className:cn,style:Pn,locale:Cn,listType:Dn,file:In,items:tr,progress:un,iconRender:fr,actionIconRender:wr,itemRender:Or,isImgUrl:fn,showPreviewIcon:_n,showRemoveIcon:Yn,showDownloadIcon:hr,previewIcon:Qn,removeIcon:ur,downloadIcon:Cr,onPreview:Pr,onDownload:cr,onClose:Mr}=Qt;var Tn,qr;const{status:Ln}=In,[zr,li]=Qe.useState(Ln);Qe.useEffect(()=>{Ln!=="removed"&&li(Ln)},[Ln]);const[Ar,fi]=Qe.useState(!1);Qe.useEffect(()=>{const Fi=setTimeout(()=>{fi(!0)},300);return()=>{clearTimeout(Fi)}},[]);const oi=fr(In);let Sr=Qe.createElement("div",{className:`${dn}-icon`},oi);if(Dn==="picture"||Dn==="picture-card"||Dn==="picture-circle")if(zr==="uploading"||!In.thumbUrl&&!In.url){const Fi=_e()(`${dn}-list-item-thumbnail`,{[`${dn}-list-item-file`]:zr!=="uploading"});Sr=Qe.createElement("div",{className:Fi},oi)}else{const Fi=fn!=null&&fn(In)?Qe.createElement("img",{src:In.thumbUrl||In.url,alt:In.name,className:`${dn}-list-item-image`,crossOrigin:In.crossOrigin}):oi,Lr=_e()(`${dn}-list-item-thumbnail`,{[`${dn}-list-item-file`]:fn&&!fn(In)});Sr=Qe.createElement("a",{className:Lr,onClick:kr=>Pr(In,kr),href:In.url||In.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Fi)}const yr=_e()(`${dn}-list-item`,`${dn}-list-item-${zr}`),Kr=typeof In.linkProps=="string"?JSON.parse(In.linkProps):In.linkProps,ai=Yn?wr((typeof ur=="function"?ur(In):ur)||Qe.createElement(Ut.Z,null),()=>Mr(In),dn,Cn.removeFile):null,qn=hr&&zr==="done"?wr((typeof Cr=="function"?Cr(In):Cr)||Qe.createElement(tn.Z,null),()=>cr(In),dn,Cn.downloadFile):null,Nt=Dn!=="picture-card"&&Dn!=="picture-circle"&&Qe.createElement("span",{key:"download-delete",className:_e()(`${dn}-list-item-actions`,{picture:Dn==="picture"})},qn,ai),ni=_e()(`${dn}-list-item-name`),Ci=In.url?[Qe.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ni,title:In.name},Kr,{href:In.url,onClick:Fi=>Pr(In,Fi)}),In.name),Nt]:[Qe.createElement("span",{key:"view",className:ni,onClick:Fi=>Pr(In,Fi),title:In.name},In.name),Nt],Xr={pointerEvents:"none",opacity:.5},Ei=_n?Qe.createElement("a",{href:In.url||In.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:In.url||In.thumbUrl?void 0:Xr,onClick:Fi=>Pr(In,Fi),title:Cn.previewFile},typeof Qn=="function"?Qn(In):Qn||Qe.createElement(ln.Z,null)):null,Oi=(Dn==="picture-card"||Dn==="picture-circle")&&zr!=="uploading"&&Qe.createElement("span",{className:`${dn}-list-item-actions`},Ei,zr==="done"&&qn,ai),{getPrefixCls:Fr}=Qe.useContext(bt.E_),Gr=Fr(),ri=Qe.createElement("div",{className:yr},Sr,Ci,Oi,Ar&&Qe.createElement(Ve.default,{motionName:`${Gr}-fade`,visible:zr==="uploading",motionDeadline:2e3},Fi=>{let{className:Lr}=Fi;const kr="percent"in In?Qe.createElement(mn.Z,Object.assign({},un,{type:"line",percent:In.percent,"aria-label":In["aria-label"],"aria-labelledby":In["aria-labelledby"]})):null;return Qe.createElement("div",{className:_e()(`${dn}-list-item-progress`,Lr)},kr)})),Vr=In.response&&typeof In.response=="string"?In.response:((Tn=In.error)===null||Tn===void 0?void 0:Tn.statusText)||((qr=In.error)===null||qr===void 0?void 0:qr.message)||Cn.uploadError,Mi=zr==="error"?Qe.createElement(jn.Z,{title:Vr,getPopupContainer:Fi=>Fi.parentNode},ri):ri;return Qe.createElement("div",{className:_e()(`${dn}-list-item-container`,cn),style:Pn,ref:hn},Or?Or(Mi,In,tr,{download:cr.bind(null,In),preview:Pr.bind(null,In),remove:Mr.bind(null,In)}):Mi)});const ar=(Qt,hn)=>{const{listType:dn="text",previewFile:cn=It,onPreview:Pn,onDownload:Cn,onRemove:Dn,locale:In,iconRender:tr,isImageUrl:un=Ht,prefixCls:fr,items:wr=[],showPreviewIcon:Or=!0,showRemoveIcon:fn=!0,showDownloadIcon:_n=!1,removeIcon:Yn,previewIcon:hr,downloadIcon:Qn,progress:ur={size:[-1,2],showInfo:!1},appendAction:Cr,appendActionVisible:Pr=!0,itemRender:cr,disabled:Mr}=Qt,Tn=(0,He.Z)(),[qr,Ln]=Qe.useState(!1);Qe.useEffect(()=>{dn!=="picture"&&dn!=="picture-card"&&dn!=="picture-circle"||(wr||[]).forEach(Xr=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Xr.originFileObj instanceof File||Xr.originFileObj instanceof Blob)||Xr.thumbUrl!==void 0||(Xr.thumbUrl="",cn&&cn(Xr.originFileObj).then(Ei=>{Xr.thumbUrl=Ei||"",Tn()}))})},[dn,wr,cn]),Qe.useEffect(()=>{Ln(!0)},[]);const zr=(Xr,Ei)=>{if(Pn)return Ei==null||Ei.preventDefault(),Pn(Xr)},li=Xr=>{typeof Cn=="function"?Cn(Xr):Xr.url&&window.open(Xr.url)},Ar=Xr=>{Dn==null||Dn(Xr)},fi=Xr=>{if(tr)return tr(Xr,dn);const Ei=Xr.status==="uploading",Oi=un&&un(Xr)?Qe.createElement(et,null):Qe.createElement(At,null);let Fr=Ei?Qe.createElement(kt.Z,null):Qe.createElement(ft,null);return dn==="picture"?Fr=Ei?Qe.createElement(kt.Z,null):Oi:(dn==="picture-card"||dn==="picture-circle")&&(Fr=Ei?In.uploading:Oi),Fr},oi=(Xr,Ei,Oi,Fr)=>{const Gr={type:"text",size:"small",title:Fr,onClick:ri=>{Ei(),(0,ut.l$)(Xr)&&Xr.props.onClick&&Xr.props.onClick(ri)},className:`${Oi}-list-item-action`,disabled:Mr};if((0,ut.l$)(Xr)){const ri=(0,ut.Tm)(Xr,Object.assign(Object.assign({},Xr.props),{onClick:()=>{}}));return Qe.createElement(We.ZP,Object.assign({},Gr,{icon:ri}))}return Qe.createElement(We.ZP,Object.assign({},Gr),Qe.createElement("span",null,Xr))};Qe.useImperativeHandle(hn,()=>({handlePreview:zr,handleDownload:li}));const{getPrefixCls:Sr}=Qe.useContext(bt.E_),yr=Sr("upload",fr),Kr=Sr(),ai=_e()(`${yr}-list`,`${yr}-list-${dn}`),qn=(0,Tt.Z)(wr.map(Xr=>({key:Xr.uid,file:Xr})));let ni={motionDeadline:2e3,motionName:`${yr}-${dn==="picture-card"||dn==="picture-circle"?"animate-inline":"animate"}`,keys:qn,motionAppear:qr};const Ci=Qe.useMemo(()=>{const Xr=Object.assign({},(0,nt.Z)(Kr));return delete Xr.onAppearEnd,delete Xr.onEnterEnd,delete Xr.onLeaveEnd,Xr},[Kr]);return dn!=="picture-card"&&dn!=="picture-circle"&&(ni=Object.assign(Object.assign({},Ci),ni)),Qe.createElement("div",{className:ai},Qe.createElement(Ve.CSSMotionList,Object.assign({},ni,{component:!1}),Xr=>{let{key:Ei,file:Oi,className:Fr,style:Gr}=Xr;return Qe.createElement(Kn,{key:Ei,locale:In,prefixCls:yr,className:Fr,style:Gr,file:Oi,items:wr,progress:ur,listType:dn,isImgUrl:un,showPreviewIcon:Or,showRemoveIcon:fn,showDownloadIcon:_n,removeIcon:Yn,previewIcon:hr,downloadIcon:Qn,iconRender:fi,actionIconRender:oi,itemRender:cr,onPreview:zr,onDownload:li,onClose:Ar})}),Cr&&Qe.createElement(Ve.default,Object.assign({},ni,{visible:Pr,forceRender:!0}),Xr=>{let{className:Ei,style:Oi}=Xr;return(0,ut.Tm)(Cr,Fr=>({className:_e()(Fr.className,Ei),style:Object.assign(Object.assign(Object.assign({},Oi),{pointerEvents:Ei?"none":void 0}),Fr.style)}))}))};var gr=Qe.forwardRef(ar),dr=Ge(17313),Tr=Ge(8378),Rr=Ge(83116),Zr=Ge(37613),jr=Qt=>{const{componentCls:hn,iconCls:dn}=Qt;return{[`${hn}-wrapper`]:{[`${hn}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Qt.colorFillAlter,border:`${Qt.lineWidth}px dashed ${Qt.colorBorder}`,borderRadius:Qt.borderRadiusLG,cursor:"pointer",transition:`border-color ${Qt.motionDurationSlow}`,[hn]:{padding:`${Qt.padding}px 0`},[`${hn}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${hn}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${hn}-disabled):hover`]:{borderColor:Qt.colorPrimaryHover},[`p${hn}-drag-icon`]:{marginBottom:Qt.margin,[dn]:{color:Qt.colorPrimary,fontSize:Qt.uploadThumbnailSize}},[`p${hn}-text`]:{margin:`0 0 ${Qt.marginXXS}px`,color:Qt.colorTextHeading,fontSize:Qt.fontSizeLG},[`p${hn}-hint`]:{color:Qt.colorTextDescription,fontSize:Qt.fontSize},[`&${hn}-disabled`]:{cursor:"not-allowed",[`p${hn}-drag-icon ${dn},
|
|
|
p${hn}-text,
|
|
|
p${hn}-hint
|
|
|
`]:{color:Qt.colorTextDisabled}}}}}},Qr=Qt=>{const{componentCls:hn,antCls:dn,iconCls:cn,fontSize:Pn,lineHeight:Cn}=Qt,Dn=`${hn}-list-item`,In=`${Dn}-actions`,tr=`${Dn}-action`,un=Math.round(Pn*Cn);return{[`${hn}-wrapper`]:{[`${hn}-list`]:Object.assign(Object.assign({},(0,dr.dF)()),{lineHeight:Qt.lineHeight,[Dn]:{position:"relative",height:Qt.lineHeight*Pn,marginTop:Qt.marginXS,fontSize:Pn,display:"flex",alignItems:"center",transition:`background-color ${Qt.motionDurationSlow}`,"&:hover":{backgroundColor:Qt.controlItemBgHover},[`${Dn}-name`]:Object.assign(Object.assign({},dr.vS),{padding:`0 ${Qt.paddingXS}px`,lineHeight:Cn,flex:"auto",transition:`all ${Qt.motionDurationSlow}`}),[In]:{[tr]:{opacity:0},[`${tr}${dn}-btn-sm`]:{height:un,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${tr}:focus-visible,
|
|
|
&.picture ${tr}
|
|
|
`]:{opacity:1},[cn]:{color:Qt.actionsColor,transition:`all ${Qt.motionDurationSlow}`},[`&:hover ${cn}`]:{color:Qt.colorText}},[`${hn}-icon ${cn}`]:{color:Qt.colorTextDescription,fontSize:Pn},[`${Dn}-progress`]:{position:"absolute",bottom:-Qt.uploadProgressOffset,width:"100%",paddingInlineStart:Pn+Qt.paddingXS,fontSize:Pn,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Dn}:hover ${tr}`]:{opacity:1,color:Qt.colorText},[`${Dn}-error`]:{color:Qt.colorError,[`${Dn}-name, ${hn}-icon ${cn}`]:{color:Qt.colorError},[In]:{[`${cn}, ${cn}:hover`]:{color:Qt.colorError},[tr]:{opacity:1}}},[`${hn}-list-item-container`]:{transition:`opacity ${Qt.motionDurationSlow}, height ${Qt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},$r=Ge(93083),En=Ge(1950);const er=new $r.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),rr=new $r.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var zn=Qt=>{const{componentCls:hn}=Qt,dn=`${hn}-animate-inline`;return[{[`${hn}-wrapper`]:{[`${dn}-appear, ${dn}-enter, ${dn}-leave`]:{animationDuration:Qt.motionDurationSlow,animationTimingFunction:Qt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${dn}-appear, ${dn}-enter`]:{animationName:er},[`${dn}-leave`]:{animationName:rr}}},{[`${hn}-wrapper`]:(0,En.J$)(Qt)},er,rr]},Nn=Ge(93398),$t=Ge(64993);const Xt=Qt=>{const{componentCls:hn,iconCls:dn,uploadThumbnailSize:cn,uploadProgressOffset:Pn}=Qt,Cn=`${hn}-list`,Dn=`${Cn}-item`;return{[`${hn}-wrapper`]:{[`
|
|
|
${Cn}${Cn}-picture,
|
|
|
${Cn}${Cn}-picture-card,
|
|
|
${Cn}${Cn}-picture-circle
|
|
|
`]:{[Dn]:{position:"relative",height:cn+Qt.lineWidth*2+Qt.paddingXS*2,padding:Qt.paddingXS,border:`${Qt.lineWidth}px ${Qt.lineType} ${Qt.colorBorder}`,borderRadius:Qt.borderRadiusLG,"&:hover":{background:"transparent"},[`${Dn}-thumbnail`]:Object.assign(Object.assign({},dr.vS),{width:cn,height:cn,lineHeight:`${cn+Qt.paddingSM}px`,textAlign:"center",flex:"none",[dn]:{fontSize:Qt.fontSizeHeading2,color:Qt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Dn}-progress`]:{bottom:Pn,width:`calc(100% - ${Qt.paddingSM*2}px)`,marginTop:0,paddingInlineStart:cn+Qt.paddingXS}},[`${Dn}-error`]:{borderColor:Qt.colorError,[`${Dn}-thumbnail ${dn}`]:{[`svg path[fill='${Nn.blue[0]}']`]:{fill:Qt.colorErrorBg},[`svg path[fill='${Nn.blue.primary}']`]:{fill:Qt.colorError}}},[`${Dn}-uploading`]:{borderStyle:"dashed",[`${Dn}-name`]:{marginBottom:Pn}}},[`${Cn}${Cn}-picture-circle ${Dn}`]:{[`&, &::before, ${Dn}-thumbnail`]:{borderRadius:"50%"}}}}},Lt=Qt=>{const{componentCls:hn,iconCls:dn,fontSizeLG:cn,colorTextLightSolid:Pn}=Qt,Cn=`${hn}-list`,Dn=`${Cn}-item`,In=Qt.uploadPicCardSize;return{[`
|
|
|
${hn}-wrapper${hn}-picture-card-wrapper,
|
|
|
${hn}-wrapper${hn}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,dr.dF)()),{display:"inline-block",width:"100%",[`${hn}${hn}-select`]:{width:In,height:In,marginInlineEnd:Qt.marginXS,marginBottom:Qt.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Qt.colorFillAlter,border:`${Qt.lineWidth}px dashed ${Qt.colorBorder}`,borderRadius:Qt.borderRadiusLG,cursor:"pointer",transition:`border-color ${Qt.motionDurationSlow}`,[`> ${hn}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${hn}-disabled):hover`]:{borderColor:Qt.colorPrimary}},[`${Cn}${Cn}-picture-card, ${Cn}${Cn}-picture-circle`]:{[`${Cn}-item-container`]:{display:"inline-block",width:In,height:In,marginBlock:`0 ${Qt.marginXS}px`,marginInline:`0 ${Qt.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Dn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Qt.paddingXS*2}px)`,height:`calc(100% - ${Qt.paddingXS*2}px)`,backgroundColor:Qt.colorBgMask,opacity:0,transition:`all ${Qt.motionDurationSlow}`,content:'" "'}},[`${Dn}:hover`]:{[`&::before, ${Dn}-actions`]:{opacity:1}},[`${Dn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Qt.motionDurationSlow}`,[`${dn}-eye, ${dn}-download, ${dn}-delete`]:{zIndex:10,width:cn,margin:`0 ${Qt.marginXXS}px`,fontSize:cn,cursor:"pointer",transition:`all ${Qt.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Dn}-actions, ${Dn}-actions:hover`]:{[`${dn}-eye, ${dn}-download, ${dn}-delete`]:{color:new $t.C(Pn).setAlpha(.65).toRgbString(),"&:hover":{color:Pn}}},[`${Dn}-thumbnail, ${Dn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Dn}-name`]:{display:"none",textAlign:"center"},[`${Dn}-file + ${Dn}-name`]:{position:"absolute",bottom:Qt.margin,display:"block",width:`calc(100% - ${Qt.paddingXS*2}px)`},[`${Dn}-uploading`]:{[`&${Dn}`]:{backgroundColor:Qt.colorFillAlter},[`&::before, ${dn}-eye, ${dn}-download, ${dn}-delete`]:{display:"none"}},[`${Dn}-progress`]:{bottom:Qt.marginXL,width:`calc(100% - ${Qt.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${hn}-wrapper${hn}-picture-circle-wrapper`]:{[`${hn}${hn}-select`]:{borderRadius:"50%"}}}};var pn=Qt=>{const{componentCls:hn}=Qt;return{[`${hn}-rtl`]:{direction:"rtl"}}};const Vt=Qt=>{const{componentCls:hn,colorTextDisabled:dn}=Qt;return{[`${hn}-wrapper`]:Object.assign(Object.assign({},(0,dr.Wf)(Qt)),{[hn]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${hn}-select`]:{display:"inline-block"},[`${hn}-disabled`]:{color:dn,cursor:"not-allowed"}})}};var Rt=(0,Rr.Z)("Upload",Qt=>{const{fontSizeHeading3:hn,fontSize:dn,lineHeight:cn,lineWidth:Pn,controlHeightLG:Cn}=Qt,Dn=Math.round(dn*cn),In=(0,Zr.TS)(Qt,{uploadThumbnailSize:hn*2,uploadProgressOffset:Dn/2+Pn,uploadPicCardSize:Cn*2.55});return[Vt(In),jr(In),Xt(In),Lt(In),Qr(In),zn(In),pn(In),(0,Tr.Z)(In)]},Qt=>({actionsColor:Qt.colorTextDescription})),rn=function(Qt,hn,dn,cn){function Pn(Cn){return Cn instanceof dn?Cn:new dn(function(Dn){Dn(Cn)})}return new(dn||(dn=Promise))(function(Cn,Dn){function In(fr){try{un(cn.next(fr))}catch(wr){Dn(wr)}}function tr(fr){try{un(cn.throw(fr))}catch(wr){Dn(wr)}}function un(fr){fr.done?Cn(fr.value):Pn(fr.value).then(In,tr)}un((cn=cn.apply(Qt,hn||[])).next())})};const yn=`__LIST_IGNORE_${Date.now()}__`,Mn=(Qt,hn)=>{const{fileList:dn,defaultFileList:cn,onRemove:Pn,showUploadList:Cn=!0,listType:Dn="text",onPreview:In,onDownload:tr,onChange:un,onDrop:fr,previewFile:wr,disabled:Or,locale:fn,iconRender:_n,isImageUrl:Yn,progress:hr,prefixCls:Qn,className:ur,type:Cr="select",children:Pr,style:cr,itemRender:Mr,maxCount:Tn,data:qr={},multiple:Ln=!1,action:zr="",accept:li="",supportServerRender:Ar=!0,rootClassName:fi}=Qt,oi=Qe.useContext(qe.Z),Sr=Or!=null?Or:oi,[yr,Kr]=(0,ct.Z)(cn||[],{value:dn,postState:Ai=>Ai!=null?Ai:[]}),[ai,qn]=Qe.useState("drop"),Nt=Qe.useRef(null);Qe.useMemo(()=>{const Ai=Date.now();(dn||[]).forEach((mi,so)=>{!mi.uid&&!Object.isFrozen(mi)&&(mi.uid=`__AUTO__${Ai}_${so}__`)})},[dn]);const ni=(Ai,mi,so)=>{let Bi=(0,Tt.Z)(mi),yi=!1;Tn===1?Bi=Bi.slice(-1):Tn&&(yi=Bi.length>Tn,Bi=Bi.slice(0,Tn)),(0,pt.flushSync)(()=>{Kr(Bi)});const Yi={file:Ai,fileList:Bi};so&&(Yi.event=so),(!yi||Bi.some(ma=>ma.uid===Ai.uid))&&(0,pt.flushSync)(()=>{un==null||un(Yi)})},Ci=(Ai,mi)=>rn(void 0,void 0,void 0,function*(){const{beforeUpload:so,transformFile:Bi}=Qt;let yi=Ai;if(so){const Yi=yield so(Ai,mi);if(Yi===!1)return!1;if(delete Ai[yn],Yi===yn)return Object.defineProperty(Ai,yn,{value:!0,configurable:!0}),!1;typeof Yi=="object"&&Yi&&(yi=Yi)}return Bi&&(yi=yield Bi(yi)),yi}),Xr=Ai=>{const mi=Ai.filter(yi=>!yi.file[yn]);if(!mi.length)return;const so=mi.map(yi=>De(yi.file));let Bi=(0,Tt.Z)(yr);so.forEach(yi=>{Bi=Ie(yi,Bi)}),so.forEach((yi,Yi)=>{let ma=yi;if(mi[Yi].parsedFile)yi.status="uploading";else{const{originFileObj:Yr}=yi;let Li;try{Li=new File([Yr],Yr.name,{type:Yr.type})}catch(Si){Li=new Blob([Yr],{type:Yr.type}),Li.name=Yr.name,Li.lastModifiedDate=new Date,Li.lastModified=new Date().getTime()}Li.uid=yi.uid,ma=Li}ni(ma,Bi)})},Ei=(Ai,mi,so)=>{try{typeof Ai=="string"&&(Ai=JSON.parse(Ai))}catch(Yi){}if(!Xe(mi,yr))return;const Bi=De(mi);Bi.status="done",Bi.percent=100,Bi.response=Ai,Bi.xhr=so;const yi=Ie(Bi,yr);ni(Bi,yi)},Oi=(Ai,mi)=>{if(!Xe(mi,yr))return;const so=De(mi);so.status="uploading",so.percent=Ai.percent;const Bi=Ie(so,yr);ni(so,Bi,Ai)},Fr=(Ai,mi,so)=>{if(!Xe(so,yr))return;const Bi=De(so);Bi.error=Ai,Bi.response=mi,Bi.status="error";const yi=Ie(Bi,yr);ni(Bi,yi)},Gr=Ai=>{let mi;Promise.resolve(typeof Pn=="function"?Pn(Ai):Pn).then(so=>{var Bi;if(so===!1)return;const yi=yt(Ai,yr);yi&&(mi=Object.assign(Object.assign({},Ai),{status:"removed"}),yr==null||yr.forEach(Yi=>{const ma=mi.uid!==void 0?"uid":"name";Yi[ma]===mi[ma]&&!Object.isFrozen(Yi)&&(Yi.status="removed")}),(Bi=Nt.current)===null||Bi===void 0||Bi.abort(mi),ni(mi,yi))})},ri=Ai=>{qn(Ai.type),Ai.type==="drop"&&(fr==null||fr(Ai))};Qe.useImperativeHandle(hn,()=>({onBatchStart:Xr,onSuccess:Ei,onProgress:Oi,onError:Fr,fileList:yr,upload:Nt.current}));const{getPrefixCls:Vr,direction:Mi,upload:Fi}=Qe.useContext(bt.E_),Lr=Vr("upload",Qn),kr=Object.assign(Object.assign({onBatchStart:Xr,onError:Fr,onProgress:Oi,onSuccess:Ei},Qt),{data:qr,multiple:Ln,action:zr,accept:li,supportServerRender:Ar,prefixCls:Lr,disabled:Sr,beforeUpload:Ci,onChange:void 0});delete kr.className,delete kr.style,(!Pr||Sr)&&delete kr.id;const[Wn,Br]=Rt(Lr),[vi]=(0,at.Z)("Upload",gt.Z.Upload),{showRemoveIcon:Ki,showPreviewIcon:Ti,showDownloadIcon:gi,removeIcon:Gi,previewIcon:Xi,downloadIcon:vo}=typeof Cn=="boolean"?{}:Cn,yo=(Ai,mi)=>Cn?Qe.createElement(gr,{prefixCls:Lr,listType:Dn,items:yr,previewFile:wr,onPreview:In,onDownload:tr,onRemove:Gr,showRemoveIcon:!Sr&&Ki,showPreviewIcon:Ti,showDownloadIcon:gi,removeIcon:Gi,previewIcon:Xi,downloadIcon:vo,iconRender:_n,locale:Object.assign(Object.assign({},vi),fn),isImageUrl:Yn,progress:hr,appendAction:Ai,appendActionVisible:mi,itemRender:Mr,disabled:Sr}):Ai,Po=_e()(`${Lr}-wrapper`,ur,fi,Br,Fi==null?void 0:Fi.className,{[`${Lr}-rtl`]:Mi==="rtl",[`${Lr}-picture-card-wrapper`]:Dn==="picture-card",[`${Lr}-picture-circle-wrapper`]:Dn==="picture-circle"}),wn=Object.assign(Object.assign({},Fi==null?void 0:Fi.style),cr);if(Cr==="drag"){const Ai=_e()(Br,Lr,`${Lr}-drag`,{[`${Lr}-drag-uploading`]:yr.some(mi=>mi.status==="uploading"),[`${Lr}-drag-hover`]:ai==="dragover",[`${Lr}-disabled`]:Sr,[`${Lr}-rtl`]:Mi==="rtl"});return Wn(Qe.createElement("span",{className:Po},Qe.createElement("div",{className:Ai,style:wn,onDrop:ri,onDragOver:ri,onDragLeave:ri},Qe.createElement(ot,Object.assign({},kr,{ref:Nt,className:`${Lr}-btn`}),Qe.createElement("div",{className:`${Lr}-drag-container`},Pr))),yo()))}const ao=_e()(Lr,`${Lr}-select`,{[`${Lr}-disabled`]:Sr}),la=(Ai=>Qe.createElement("div",{className:ao,style:Ai},Qe.createElement(ot,Object.assign({},kr,{ref:Nt}))))(Pr?void 0:{display:"none"});return Wn(Dn==="picture-card"||Dn==="picture-circle"?Qe.createElement("span",{className:Po},yo(la,!!Pr)):Qe.createElement("span",{className:Po},la,yo()))};var zt=Qe.forwardRef(Mn),xn=function(Qt,hn){var dn={};for(var cn in Qt)Object.prototype.hasOwnProperty.call(Qt,cn)&&hn.indexOf(cn)<0&&(dn[cn]=Qt[cn]);if(Qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pn=0,cn=Object.getOwnPropertySymbols(Qt);Pn<cn.length;Pn++)hn.indexOf(cn[Pn])<0&&Object.prototype.propertyIsEnumerable.call(Qt,cn[Pn])&&(dn[cn[Pn]]=Qt[cn[Pn]]);return dn},$n=Qe.forwardRef((Qt,hn)=>{var{style:dn,height:cn}=Qt,Pn=xn(Qt,["style","height"]);return Qe.createElement(zt,Object.assign({ref:hn},Pn,{type:"drag",style:Object.assign(Object.assign({},dn),{height:cn})}))});const gn=zt;gn.Dragger=$n,gn.LIST_IGNORE=yn;var Sn=gn},99498:function(bn,an,Ge){(function(Qe){Qe(Ge(89780))})(function(Qe){Qe.defineOption("placeholder","",function(be,Pe,ye){var we=ye&&ye!=Qe.Init;if(Pe&&!we)be.on("blur",Ne),be.on("change",ve),be.on("swapDoc",ve),Qe.on(be.getInputField(),"compositionupdate",be.state.placeholderCompose=function(){_e(be)}),ve(be);else if(!Pe&&we){be.off("blur",Ne),be.off("change",ve),be.off("swapDoc",ve),Qe.off(be.getInputField(),"compositionupdate",be.state.placeholderCompose),Tt(be);var me=be.getWrapperElement();me.className=me.className.replace(" CodeMirror-empty","")}Pe&&!be.hasFocus()&&Ne(be)});function Tt(be){be.state.placeholder&&(be.state.placeholder.parentNode.removeChild(be.state.placeholder),be.state.placeholder=null)}function oe(be){Tt(be);var Pe=be.state.placeholder=document.createElement("pre");Pe.style.cssText="height: 0; overflow: visible",Pe.style.direction=be.getOption("direction"),Pe.className="CodeMirror-placeholder CodeMirror-line-like";var ye=be.getOption("placeholder");typeof ye=="string"&&(ye=document.createTextNode(ye)),Pe.appendChild(ye),be.display.lineSpace.insertBefore(Pe,be.display.lineSpace.firstChild)}function _e(be){setTimeout(function(){var Pe=!1,ye=be.getInputField();ye.nodeName=="TEXTAREA"?Pe=!ye.value:be.lineCount()==1&&(Pe=!/[^\u200b]/.test(ye.querySelector(".CodeMirror-line").textContent)),Pe?oe(be):Tt(be)},20)}function Ne(be){fe(be)&&oe(be)}function ve(be){var Pe=be.getWrapperElement(),ye=fe(be);Pe.className=Pe.className.replace(" CodeMirror-empty","")+(ye?" CodeMirror-empty":""),ye?oe(be):Tt(be)}function fe(be){return be.lineCount()===1&&be.getLine(0)===""}})},25717:function(bn,an,Ge){(function(Qe){Qe(Ge(89780))})(function(Qe){var Tt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},oe=Qe.Pos;Qe.defineOption("autoCloseBrackets",!1,function(z,ee,ae){ae&&ae!=Qe.Init&&(z.removeKeyMap(Ne),z.state.closeBrackets=null),ee&&(ve(_e(ee,"pairs")),z.state.closeBrackets=ee,z.addKeyMap(Ne))});function _e(z,ee){return ee=="pairs"&&typeof z=="string"?z:typeof z=="object"&&z[ee]!=null?z[ee]:Tt[ee]}var Ne={Backspace:Pe,Enter:ye};function ve(z){for(var ee=0;ee<z.length;ee++){var ae=z.charAt(ee),re="'"+ae+"'";Ne[re]||(Ne[re]=fe(ae))}}ve(Tt.pairs+"`");function fe(z){return function(ee){return me(ee,z)}}function be(z){var ee=z.state.closeBrackets;if(!ee||ee.override)return ee;var ae=z.getModeAt(z.getCursor());return ae.closeBrackets||ee}function Pe(z){var ee=be(z);if(!ee||z.getOption("disableInput"))return Qe.Pass;for(var ae=_e(ee,"pairs"),re=z.listSelections(),le=0;le<re.length;le++){if(!re[le].empty())return Qe.Pass;var ue=Se(z,re[le].head);if(!ue||ae.indexOf(ue)%2!=0)return Qe.Pass}for(var le=re.length-1;le>=0;le--){var pe=re[le].head;z.replaceRange("",oe(pe.line,pe.ch-1),oe(pe.line,pe.ch+1),"+delete")}}function ye(z){var ee=be(z),ae=ee&&_e(ee,"explode");if(!ae||z.getOption("disableInput"))return Qe.Pass;for(var re=z.listSelections(),le=0;le<re.length;le++){if(!re[le].empty())return Qe.Pass;var ue=Se(z,re[le].head);if(!ue||ae.indexOf(ue)%2!=0)return Qe.Pass}z.operation(function(){var pe=z.lineSeparator()||`
|
|
|
`;z.replaceSelection(pe+pe,null),z.execCommand("goCharLeft"),re=z.listSelections();for(var Ee=0;Ee<re.length;Ee++){var Ce=re[Ee].head.line;z.indentLine(Ce,null,!0),z.indentLine(Ce+1,null,!0)}})}function we(z){var ee=Qe.cmpPos(z.anchor,z.head)>0;return{anchor:new oe(z.anchor.line,z.anchor.ch+(ee?-1:1)),head:new oe(z.head.line,z.head.ch+(ee?1:-1))}}function me(z,ee){var ae=be(z);if(!ae||z.getOption("disableInput"))return Qe.Pass;var re=_e(ae,"pairs"),le=re.indexOf(ee);if(le==-1)return Qe.Pass;for(var ue=_e(ae,"closeBefore"),pe=_e(ae,"triples"),Ee=re.charAt(le+1)==ee,Ce=z.listSelections(),je=le%2==0,Le,ke=0;ke<Ce.length;ke++){var Oe=Ce[ke],Fe=Oe.head,Re,Ze=z.getRange(Fe,oe(Fe.line,Fe.ch+1));if(je&&!Oe.empty())Re="surround";else if((Ee||!je)&&Ze==ee)Ee&&de(z,Fe)?Re="both":pe.indexOf(ee)>=0&&z.getRange(Fe,oe(Fe.line,Fe.ch+3))==ee+ee+ee?Re="skipThree":Re="skip";else if(Ee&&Fe.ch>1&&pe.indexOf(ee)>=0&&z.getRange(oe(Fe.line,Fe.ch-2),Fe)==ee+ee){if(Fe.ch>2&&/\bstring/.test(z.getTokenTypeAt(oe(Fe.line,Fe.ch-2))))return Qe.Pass;Re="addFour"}else if(Ee){var ze=Fe.ch==0?" ":z.getRange(oe(Fe.line,Fe.ch-1),Fe);if(!Qe.isWordChar(Ze)&&ze!=ee&&!Qe.isWordChar(ze))Re="both";else return Qe.Pass}else if(je&&(Ze.length===0||/\s/.test(Ze)||ue.indexOf(Ze)>-1))Re="both";else return Qe.Pass;if(!Le)Le=Re;else if(Le!=Re)return Qe.Pass}var Ke=le%2?re.charAt(le-1):ee,ot=le%2?ee:re.charAt(le+1);z.operation(function(){if(Le=="skip")z.execCommand("goCharRight");else if(Le=="skipThree")for(var ct=0;ct<3;ct++)z.execCommand("goCharRight");else if(Le=="surround"){for(var pt=z.getSelections(),ct=0;ct<pt.length;ct++)pt[ct]=Ke+pt[ct]+ot;z.replaceSelections(pt,"around"),pt=z.listSelections().slice();for(var ct=0;ct<pt.length;ct++)pt[ct]=we(pt[ct]);z.setSelections(pt)}else Le=="both"?(z.replaceSelection(Ke+ot,null),z.triggerElectric(Ke+ot),z.execCommand("goCharLeft")):Le=="addFour"&&(z.replaceSelection(Ke+Ke+Ke+Ke,"before"),z.execCommand("goCharRight"))})}function Se(z,ee){var ae=z.getRange(oe(ee.line,ee.ch-1),oe(ee.line,ee.ch+1));return ae.length==2?ae:null}function de(z,ee){var ae=z.getTokenAt(oe(ee.line,ee.ch+1));return/\bstring/.test(ae.type)&&ae.start==ee.ch&&(ee.ch==0||!/\bstring/.test(z.getTokenTypeAt(ee)))}})},6313:function(bn,an,Ge){(function(Qe){Qe(Ge(89780),Ge(32855))})(function(Qe){Qe.defineOption("autoCloseTags",!1,function(Pe,ye,we){if(we!=Qe.Init&&we&&Pe.removeKeyMap("autoCloseTags"),!!ye){var me={name:"autoCloseTags"};(typeof ye!="object"||ye.whenClosing!==!1)&&(me["'/'"]=function(Se){return ve(Se)}),(typeof ye!="object"||ye.whenOpening!==!1)&&(me["'>'"]=function(Se){return _e(Se)}),Pe.addKeyMap(me)}});var Tt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],oe=["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 _e(Pe){if(Pe.getOption("disableInput"))return Qe.Pass;for(var ye=Pe.listSelections(),we=[],me=Pe.getOption("autoCloseTags"),Se=0;Se<ye.length;Se++){if(!ye[Se].empty())return Qe.Pass;var de=ye[Se].head,z=Pe.getTokenAt(de),ee=Qe.innerMode(Pe.getMode(),z.state),ae=ee.state,re=ee.mode.xmlCurrentTag&&ee.mode.xmlCurrentTag(ae),le=re&&re.name;if(!le)return Qe.Pass;var ue=ee.mode.configuration=="html",pe=typeof me=="object"&&me.dontCloseTags||ue&&Tt,Ee=typeof me=="object"&&me.indentTags||ue&&oe;z.end>de.ch&&(le=le.slice(0,le.length-z.end+de.ch));var Ce=le.toLowerCase();if(!le||z.type=="string"&&(z.end!=de.ch||!/[\"\']/.test(z.string.charAt(z.string.length-1))||z.string.length==1)||z.type=="tag"&&re.close||z.string.indexOf("/")==de.ch-z.start-1||pe&&fe(pe,Ce)>-1||be(Pe,ee.mode.xmlCurrentContext&&ee.mode.xmlCurrentContext(ae)||[],le,de,!0))return Qe.Pass;var je=typeof me=="object"&&me.emptyTags;if(je&&fe(je,le)>-1){we[Se]={text:"/>",newPos:Qe.Pos(de.line,de.ch+2)};continue}var Le=Ee&&fe(Ee,Ce)>-1;we[Se]={indent:Le,text:">"+(Le?`
|
|
|
|
|
|
`:"")+"</"+le+">",newPos:Le?Qe.Pos(de.line+1,0):Qe.Pos(de.line,de.ch+1)}}for(var ke=typeof me=="object"&&me.dontIndentOnAutoClose,Se=ye.length-1;Se>=0;Se--){var Oe=we[Se];Pe.replaceRange(Oe.text,ye[Se].head,ye[Se].anchor,"+insert");var Fe=Pe.listSelections().slice(0);Fe[Se]={head:Oe.newPos,anchor:Oe.newPos},Pe.setSelections(Fe),!ke&&Oe.indent&&(Pe.indentLine(Oe.newPos.line,null,!0),Pe.indentLine(Oe.newPos.line+1,null,!0))}}function Ne(Pe,ye){for(var we=Pe.listSelections(),me=[],Se=ye?"/":"</",de=Pe.getOption("autoCloseTags"),z=typeof de=="object"&&de.dontIndentOnSlash,ee=0;ee<we.length;ee++){if(!we[ee].empty())return Qe.Pass;var ae=we[ee].head,re=Pe.getTokenAt(ae),le=Qe.innerMode(Pe.getMode(),re.state),ue=le.state;if(ye&&(re.type=="string"||re.string.charAt(0)!="<"||re.start!=ae.ch-1))return Qe.Pass;var pe,Ee=le.mode.name!="xml"&&Pe.getMode().name=="htmlmixed";if(Ee&&le.mode.name=="javascript")pe=Se+"script";else if(Ee&&le.mode.name=="css")pe=Se+"style";else{var Ce=le.mode.xmlCurrentContext&&le.mode.xmlCurrentContext(ue);if(!Ce||Ce.length&&be(Pe,Ce,Ce[Ce.length-1],ae))return Qe.Pass;pe=Se+Ce[Ce.length-1]}Pe.getLine(ae.line).charAt(re.end)!=">"&&(pe+=">"),me[ee]=pe}if(Pe.replaceSelections(me),we=Pe.listSelections(),!z)for(var ee=0;ee<we.length;ee++)(ee==we.length-1||we[ee].head.line<we[ee+1].head.line)&&Pe.indentLine(we[ee].head.line)}function ve(Pe){return Pe.getOption("disableInput")?Qe.Pass:Ne(Pe,!0)}Qe.commands.closeTag=function(Pe){return Ne(Pe)};function fe(Pe,ye){if(Pe.indexOf)return Pe.indexOf(ye);for(var we=0,me=Pe.length;we<me;++we)if(Pe[we]==ye)return we;return-1}function be(Pe,ye,we,me,Se){if(!Qe.scanForClosingTag)return!1;var de=Math.min(Pe.lastLine()+1,me.line+500),z=Qe.scanForClosingTag(Pe,me,null,de);if(!z||z.tag!=we)return!1;for(var ee=Se?1:0,ae=ye.length-1;ae>=0&&ye[ae]==we;ae--)++ee;me=z.to;for(var ae=1;ae<ee;ae++){var re=Qe.scanForClosingTag(Pe,me,null,de);if(!re||re.tag!=we)return!1;me=re.to}return!0}})},32855:function(bn,an,Ge){(function(Qe){Qe(Ge(89780))})(function(Qe){"use strict";var Tt=Qe.Pos;function oe(ae,re){return ae.line-re.line||ae.ch-re.ch}var _e="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",Ne=_e+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ve=new RegExp("<(/?)(["+_e+"]["+Ne+"]*)","g");function fe(ae,re,le,ue){this.line=re,this.ch=le,this.cm=ae,this.text=ae.getLine(re),this.min=ue?Math.max(ue.from,ae.firstLine()):ae.firstLine(),this.max=ue?Math.min(ue.to-1,ae.lastLine()):ae.lastLine()}function be(ae,re){var le=ae.cm.getTokenTypeAt(Tt(ae.line,re));return le&&/\btag\b/.test(le)}function Pe(ae){if(!(ae.line>=ae.max))return ae.ch=0,ae.text=ae.cm.getLine(++ae.line),!0}function ye(ae){if(!(ae.line<=ae.min))return ae.text=ae.cm.getLine(--ae.line),ae.ch=ae.text.length,!0}function we(ae){for(;;){var re=ae.text.indexOf(">",ae.ch);if(re==-1){if(Pe(ae))continue;return}if(!be(ae,re+1)){ae.ch=re+1;continue}var le=ae.text.lastIndexOf("/",re),ue=le>-1&&!/\S/.test(ae.text.slice(le+1,re));return ae.ch=re+1,ue?"selfClose":"regular"}}function me(ae){for(;;){var re=ae.ch?ae.text.lastIndexOf("<",ae.ch-1):-1;if(re==-1){if(ye(ae))continue;return}if(!be(ae,re+1)){ae.ch=re;continue}ve.lastIndex=re,ae.ch=re;var le=ve.exec(ae.text);if(le&&le.index==re)return le}}function Se(ae){for(;;){ve.lastIndex=ae.ch;var re=ve.exec(ae.text);if(!re){if(Pe(ae))continue;return}if(!be(ae,re.index+1)){ae.ch=re.index+1;continue}return ae.ch=re.index+re[0].length,re}}function de(ae){for(;;){var re=ae.ch?ae.text.lastIndexOf(">",ae.ch-1):-1;if(re==-1){if(ye(ae))continue;return}if(!be(ae,re+1)){ae.ch=re;continue}var le=ae.text.lastIndexOf("/",re),ue=le>-1&&!/\S/.test(ae.text.slice(le+1,re));return ae.ch=re+1,ue?"selfClose":"regular"}}function z(ae,re){for(var le=[];;){var ue=Se(ae),pe,Ee=ae.line,Ce=ae.ch-(ue?ue[0].length:0);if(!ue||!(pe=we(ae)))return;if(pe!="selfClose")if(ue[1]){for(var je=le.length-1;je>=0;--je)if(le[je]==ue[2]){le.length=je;break}if(je<0&&(!re||re==ue[2]))return{tag:ue[2],from:Tt(Ee,Ce),to:Tt(ae.line,ae.ch)}}else le.push(ue[2])}}function ee(ae,re){for(var le=[];;){var ue=de(ae);if(!ue)return;if(ue=="selfClose"){me(ae);continue}var pe=ae.line,Ee=ae.ch,Ce=me(ae);if(!Ce)return;if(Ce[1])le.push(Ce[2]);else{for(var je=le.length-1;je>=0;--je)if(le[je]==Ce[2]){le.length=je;break}if(je<0&&(!re||re==Ce[2]))return{tag:Ce[2],from:Tt(ae.line,ae.ch),to:Tt(pe,Ee)}}}}Qe.registerHelper("fold","xml",function(ae,re){for(var le=new fe(ae,re.line,0);;){var ue=Se(le);if(!ue||le.line!=re.line)return;var pe=we(le);if(!pe)return;if(!ue[1]&&pe!="selfClose"){var Ee=Tt(le.line,le.ch),Ce=z(le,ue[2]);return Ce&&oe(Ce.from,Ee)>0?{from:Ee,to:Ce.from}:null}}}),Qe.findMatchingTag=function(ae,re,le){var ue=new fe(ae,re.line,re.ch,le);if(!(ue.text.indexOf(">")==-1&&ue.text.indexOf("<")==-1)){var pe=we(ue),Ee=pe&&Tt(ue.line,ue.ch),Ce=pe&&me(ue);if(!(!pe||!Ce||oe(ue,re)>0)){var je={from:Tt(ue.line,ue.ch),to:Ee,tag:Ce[2]};return pe=="selfClose"?{open:je,close:null,at:"open"}:Ce[1]?{open:ee(ue,Ce[2]),close:je,at:"close"}:(ue=new fe(ae,Ee.line,Ee.ch,le),{open:je,close:z(ue,Ce[2]),at:"open"})}}},Qe.findEnclosingTag=function(ae,re,le,ue){for(var pe=new fe(ae,re.line,re.ch,le);;){var Ee=ee(pe,ue);if(!Ee)break;var Ce=new fe(ae,re.line,re.ch,le),je=z(Ce,Ee.tag);if(je)return{open:Ee,close:je}}},Qe.scanForClosingTag=function(ae,re,le,ue){var pe=new fe(ae,re.line,re.ch,ue?{from:0,to:ue}:null);return z(pe,le)}})},89780:function(bn){(function(an,Ge){bn.exports=Ge()})(this,function(){"use strict";var an=navigator.userAgent,Ge=navigator.platform,Qe=/gecko\/\d/i.test(an),Tt=/MSIE \d/.test(an),oe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(an),_e=/Edge\/(\d+)/.exec(an),Ne=Tt||oe||_e,ve=Ne&&(Tt?document.documentMode||6:+(_e||oe)[1]),fe=!_e&&/WebKit\//.test(an),be=fe&&/Qt\/\d+\.\d+/.test(an),Pe=!_e&&/Chrome\//.test(an),ye=/Opera\//.test(an),we=/Apple Computer/.test(navigator.vendor),me=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(an),Se=/PhantomJS/.test(an),de=!_e&&/AppleWebKit/.test(an)&&/Mobile\/\w+/.test(an),z=/Android/.test(an),ee=de||z||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(an),ae=de||/Mac/.test(Ge),re=/\bCrOS\b/.test(an),le=/win/i.test(Ge),ue=ye&&an.match(/Version\/(\d*\.\d*)/);ue&&(ue=Number(ue[1])),ue&&ue>=15&&(ye=!1,fe=!0);var pe=ae&&(be||ye&&(ue==null||ue<12.11)),Ee=Qe||Ne&&ve>=9;function Ce(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var je=function(ie,he){var Te=ie.className,Me=Ce(he).exec(Te);if(Me){var Be=Te.slice(Me.index+Me[0].length);ie.className=Te.slice(0,Me.index)+(Be?Me[1]+Be:"")}};function Le(ie){for(var he=ie.childNodes.length;he>0;--he)ie.removeChild(ie.firstChild);return ie}function ke(ie,he){return Le(ie).appendChild(he)}function Oe(ie,he,Te,Me){var Be=document.createElement(ie);if(Te&&(Be.className=Te),Me&&(Be.style.cssText=Me),typeof he=="string")Be.appendChild(document.createTextNode(he));else if(he)for(var st=0;st<he.length;++st)Be.appendChild(he[st]);return Be}function Fe(ie,he,Te,Me){var Be=Oe(ie,he,Te,Me);return Be.setAttribute("role","presentation"),Be}var Re;document.createRange?Re=function(ie,he,Te,Me){var Be=document.createRange();return Be.setEnd(Me||ie,Te),Be.setStart(ie,he),Be}:Re=function(ie,he,Te){var Me=document.body.createTextRange();try{Me.moveToElementText(ie.parentNode)}catch(Be){return Me}return Me.collapse(!0),Me.moveEnd("character",Te),Me.moveStart("character",he),Me};function Ze(ie,he){if(he.nodeType==3&&(he=he.parentNode),ie.contains)return ie.contains(he);do if(he.nodeType==11&&(he=he.host),he==ie)return!0;while(he=he.parentNode)}function ze(){var ie;try{ie=document.activeElement}catch(he){ie=document.body||null}for(;ie&&ie.shadowRoot&&ie.shadowRoot.activeElement;)ie=ie.shadowRoot.activeElement;return ie}function Ke(ie,he){var Te=ie.className;Ce(he).test(Te)||(ie.className+=(Te?" ":"")+he)}function ot(ie,he){for(var Te=ie.split(" "),Me=0;Me<Te.length;Me++)Te[Me]&&!Ce(Te[Me]).test(he)&&(he+=" "+Te[Me]);return he}var ct=function(ie){ie.select()};de?ct=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:Ne&&(ct=function(ie){try{ie.select()}catch(he){}});function pt(ie){var he=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,he)}}function bt(ie,he,Te){he||(he={});for(var Me in ie)ie.hasOwnProperty(Me)&&(Te!==!1||!he.hasOwnProperty(Me))&&(he[Me]=ie[Me]);return he}function qe(ie,he,Te,Me,Be){he==null&&(he=ie.search(/[^\s\u00a0]/),he==-1&&(he=ie.length));for(var st=Me||0,Mt=Be||0;;){var Bt=ie.indexOf(" ",st);if(Bt<0||Bt>=he)return Mt+(he-st);Mt+=Bt-st,Mt+=Te-Mt%Te,st=Bt+1}}var at=function(){this.id=null,this.f=null,this.time=0,this.handler=pt(this.onTimeout,this)};at.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},at.prototype.set=function(ie,he){this.f=he;var Te=+new Date+ie;(!this.id||Te<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ie),this.time=Te)};function gt(ie,he){for(var Te=0;Te<ie.length;++Te)if(ie[Te]==he)return Te;return-1}var Ct=50,wt={toString:function(){return"CodeMirror.Pass"}},vt={scroll:!1},mt={origin:"*mouse"},xt={origin:"+move"};function At(ie,he,Te){for(var Me=0,Be=0;;){var st=ie.indexOf(" ",Me);st==-1&&(st=ie.length);var Mt=st-Me;if(st==ie.length||Be+Mt>=he)return Me+Math.min(Mt,he-Be);if(Be+=st-Me,Be+=Te-Be%Te,Me=st+1,Be>=he)return Me}}var kt=[""];function Wt(ie){for(;kt.length<=ie;)kt.push(Et(kt)+" ");return kt[ie]}function Et(ie){return ie[ie.length-1]}function St(ie,he){for(var Te=[],Me=0;Me<ie.length;Me++)Te[Me]=he(ie[Me],Me);return Te}function tt(ie,he,Te){for(var Me=0,Be=Te(he);Me<ie.length&&Te(ie[Me])<=Be;)Me++;ie.splice(Me,0,he)}function ft(){}function $e(ie,he){var Te;return Object.create?Te=Object.create(ie):(ft.prototype=ie,Te=new ft),he&&bt(he,Te),Te}var lt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Pt(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||lt.test(ie))}function dt(ie,he){return he?he.source.indexOf("\\w")>-1&&Pt(ie)?!0:he.test(ie):Pt(ie)}function et(ie){for(var he in ie)if(ie.hasOwnProperty(he)&&ie[he])return!1;return!0}var Ve=/[\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 He(ie){return ie.charCodeAt(0)>=768&&Ve.test(ie)}function nt(ie,he,Te){for(;(Te<0?he>0:he<ie.length)&&He(ie.charAt(he));)he+=Te;return he}function ut(ie,he,Te){for(var Me=he>Te?-1:1;;){if(he==Te)return he;var Be=(he+Te)/2,st=Me<0?Math.ceil(Be):Math.floor(Be);if(st==he)return ie(st)?he:Te;ie(st)?Te=st:he=st+Me}}function We(ie,he,Te,Me){if(!ie)return Me(he,Te,"ltr",0);for(var Be=!1,st=0;st<ie.length;++st){var Mt=ie[st];(Mt.from<Te&&Mt.to>he||he==Te&&Mt.to==he)&&(Me(Math.max(Mt.from,he),Math.min(Mt.to,Te),Mt.level==1?"rtl":"ltr",st),Be=!0)}Be||Me(he,Te,"ltr")}var De=null;function Ie(ie,he,Te){var Me;De=null;for(var Be=0;Be<ie.length;++Be){var st=ie[Be];if(st.from<he&&st.to>he)return Be;st.to==he&&(st.from!=st.to&&Te=="before"?Me=Be:De=Be),st.from==he&&(st.from!=st.to&&Te!="before"?Me=Be:De=Be)}return Me!=null?Me:De}var Xe=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",he="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function Te(Zt){return Zt<=247?ie.charAt(Zt):1424<=Zt&&Zt<=1524?"R":1536<=Zt&&Zt<=1785?he.charAt(Zt-1536):1774<=Zt&&Zt<=2220?"r":8192<=Zt&&Zt<=8203?"w":Zt==8204?"b":"L"}var Me=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Be=/[stwN]/,st=/[LRr]/,Mt=/[Lb1n]/,Bt=/[1n]/;function Dt(Zt,vn,Jt){this.level=Zt,this.from=vn,this.to=Jt}return function(Zt,vn){var Jt=vn=="ltr"?"L":"R";if(Zt.length==0||vn=="ltr"&&!Me.test(Zt))return!1;for(var Bn=Zt.length,An=[],ir=0;ir<Bn;++ir)An.push(Te(Zt.charCodeAt(ir)));for(var lr=0,br=Jt;lr<Bn;++lr){var Dr=An[lr];Dr=="m"?An[lr]=br:br=Dr}for(var ti=0,Ur=Jt;ti<Bn;++ti){var si=An[ti];si=="1"&&Ur=="r"?An[ti]="n":st.test(si)&&(Ur=si,si=="r"&&(An[ti]="R"))}for(var ki=1,Hr=An[0];ki<Bn-1;++ki){var zi=An[ki];zi=="+"&&Hr=="1"&&An[ki+1]=="1"?An[ki]="1":zi==","&&Hr==An[ki+1]&&(Hr=="1"||Hr=="n")&&(An[ki]=Hr),Hr=zi}for(var Do=0;Do<Bn;++Do){var da=An[Do];if(da==",")An[Do]="N";else if(da=="%"){var Ko=void 0;for(Ko=Do+1;Ko<Bn&&An[Ko]=="%";++Ko);for(var fs=Do&&An[Do-1]=="!"||Ko<Bn&&An[Ko]=="1"?"1":"N",Wa=Do;Wa<Ko;++Wa)An[Wa]=fs;Do=Ko-1}}for(var oa=0,Es=Jt;oa<Bn;++oa){var Ba=An[oa];Es=="L"&&Ba=="1"?An[oa]="L":st.test(Ba)&&(Es=Ba)}for(var aa=0;aa<Bn;++aa)if(Be.test(An[aa])){var to=void 0;for(to=aa+1;to<Bn&&Be.test(An[to]);++to);for(var $o=(aa?An[aa-1]:Jt)=="L",Ea=(to<Bn?An[to]:Jt)=="L",Ra=$o==Ea?$o?"L":"R":Jt,fl=aa;fl<to;++fl)An[fl]=Ra;aa=to-1}for(var Vo=[],tl,Jo=0;Jo<Bn;)if(Mt.test(An[Jo])){var fd=Jo;for(++Jo;Jo<Bn&&Mt.test(An[Jo]);++Jo);Vo.push(new Dt(0,fd,Jo))}else{var Hs=Jo,Ms=Vo.length,ps=vn=="rtl"?1:0;for(++Jo;Jo<Bn&&An[Jo]!="L";++Jo);for(var xo=Hs;xo<Jo;)if(Bt.test(An[xo])){Hs<xo&&(Vo.splice(Ms,0,new Dt(1,Hs,xo)),Ms+=ps);var Ma=xo;for(++xo;xo<Jo&&Bt.test(An[xo]);++xo);Vo.splice(Ms,0,new Dt(2,Ma,xo)),Ms+=ps,Hs=xo}else++xo;Hs<Jo&&Vo.splice(Ms,0,new Dt(1,Hs,Jo))}return vn=="ltr"&&(Vo[0].level==1&&(tl=Zt.match(/^\s+/))&&(Vo[0].from=tl[0].length,Vo.unshift(new Dt(0,0,tl[0].length))),Et(Vo).level==1&&(tl=Zt.match(/\s+$/))&&(Et(Vo).to-=tl[0].length,Vo.push(new Dt(0,Bn-tl[0].length,Bn)))),vn=="rtl"?Vo.reverse():Vo}}();function yt(ie,he){var Te=ie.order;return Te==null&&(Te=ie.order=Xe(ie.text,he)),Te}var Ye=[],jt=function(ie,he,Te){if(ie.addEventListener)ie.addEventListener(he,Te,!1);else if(ie.attachEvent)ie.attachEvent("on"+he,Te);else{var Me=ie._handlers||(ie._handlers={});Me[he]=(Me[he]||Ye).concat(Te)}};function Ht(ie,he){return ie._handlers&&ie._handlers[he]||Ye}function en(ie,he,Te){if(ie.removeEventListener)ie.removeEventListener(he,Te,!1);else if(ie.detachEvent)ie.detachEvent("on"+he,Te);else{var Me=ie._handlers,Be=Me&&Me[he];if(Be){var st=gt(Be,Te);st>-1&&(Me[he]=Be.slice(0,st).concat(Be.slice(st+1)))}}}function It(ie,he){var Te=Ht(ie,he);if(Te.length)for(var Me=Array.prototype.slice.call(arguments,2),Be=0;Be<Te.length;++Be)Te[Be].apply(null,Me)}function Ut(ie,he,Te){return typeof he=="string"&&(he={type:he,preventDefault:function(){this.defaultPrevented=!0}}),It(ie,Te||he.type,ie,he),Kn(he)||he.codemirrorIgnore}function tn(ie){var he=ie._handlers&&ie._handlers.cursorActivity;if(he)for(var Te=ie.curOp.cursorActivityHandlers||(ie.curOp.cursorActivityHandlers=[]),Me=0;Me<he.length;++Me)gt(Te,he[Me])==-1&&Te.push(he[Me])}function ln(ie,he){return Ht(ie,he).length>0}function mn(ie){ie.prototype.on=function(he,Te){jt(this,he,Te)},ie.prototype.off=function(he,Te){en(this,he,Te)}}function jn(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function Vn(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function Kn(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function ar(ie){jn(ie),Vn(ie)}function xr(ie){return ie.target||ie.srcElement}function gr(ie){var he=ie.which;return he==null&&(ie.button&1?he=1:ie.button&2?he=3:ie.button&4&&(he=2)),ae&&ie.ctrlKey&&he==1&&(he=3),he}var dr=function(){if(Ne&&ve<9)return!1;var ie=Oe("div");return"draggable"in ie||"dragDrop"in ie}(),Tr;function Rr(ie){if(Tr==null){var he=Oe("span","\u200B");ke(ie,Oe("span",[he,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(Tr=he.offsetWidth<=1&&he.offsetHeight>2&&!(Ne&&ve<8))}var Te=Tr?Oe("span","\u200B"):Oe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return Te.setAttribute("cm-text",""),Te}var Zr;function ei(ie){if(Zr!=null)return Zr;var he=ke(ie,document.createTextNode("A\u062EA")),Te=Re(he,0,1).getBoundingClientRect(),Me=Re(he,1,2).getBoundingClientRect();return Le(ie),!Te||Te.left==Te.right?!1:Zr=Me.right-Te.right<3}var jr=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(ie){for(var he=0,Te=[],Me=ie.length;he<=Me;){var Be=ie.indexOf(`
|
|
|
`,he);Be==-1&&(Be=ie.length);var st=ie.slice(he,ie.charAt(Be-1)=="\r"?Be-1:Be),Mt=st.indexOf("\r");Mt!=-1?(Te.push(st.slice(0,Mt)),he+=Mt+1):(Te.push(st),he=Be+1)}return Te}:function(ie){return ie.split(/\r\n?|\n/)},it=window.getSelection?function(ie){try{return ie.selectionStart!=ie.selectionEnd}catch(he){return!1}}:function(ie){var he;try{he=ie.ownerDocument.selection.createRange()}catch(Te){}return!he||he.parentElement()!=ie?!1:he.compareEndPoints("StartToEnd",he)!=0},Qr=function(){var ie=Oe("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),$r=null;function En(ie){if($r!=null)return $r;var he=ke(ie,Oe("span","x")),Te=he.getBoundingClientRect(),Me=Re(he,0,1).getBoundingClientRect();return $r=Math.abs(Te.left-Me.left)>1}var er={},rr={};function vr(ie,he){arguments.length>2&&(he.dependencies=Array.prototype.slice.call(arguments,2)),er[ie]=he}function zn(ie,he){rr[ie]=he}function Nn(ie){if(typeof ie=="string"&&rr.hasOwnProperty(ie))ie=rr[ie];else if(ie&&typeof ie.name=="string"&&rr.hasOwnProperty(ie.name)){var he=rr[ie.name];typeof he=="string"&&(he={name:he}),ie=$e(he,ie),ie.name=he.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return Nn("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return Nn("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function $t(ie,he){he=Nn(he);var Te=er[he.name];if(!Te)return $t(ie,"text/plain");var Me=Te(ie,he);if(Xt.hasOwnProperty(he.name)){var Be=Xt[he.name];for(var st in Be)Be.hasOwnProperty(st)&&(Me.hasOwnProperty(st)&&(Me["_"+st]=Me[st]),Me[st]=Be[st])}if(Me.name=he.name,he.helperType&&(Me.helperType=he.helperType),he.modeProps)for(var Mt in he.modeProps)Me[Mt]=he.modeProps[Mt];return Me}var Xt={};function Lt(ie,he){var Te=Xt.hasOwnProperty(ie)?Xt[ie]:Xt[ie]={};bt(he,Te)}function nn(ie,he){if(he===!0)return he;if(ie.copyState)return ie.copyState(he);var Te={};for(var Me in he){var Be=he[Me];Be instanceof Array&&(Be=Be.concat([])),Te[Me]=Be}return Te}function pn(ie,he){for(var Te;ie.innerMode&&(Te=ie.innerMode(he),!(!Te||Te.mode==ie));)he=Te.state,ie=Te.mode;return Te||{mode:ie,state:he}}function Vt(ie,he,Te){return ie.startState?ie.startState(he,Te):!0}var Rt=function(ie,he,Te){this.pos=this.start=0,this.string=ie,this.tabSize=he||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=Te};Rt.prototype.eol=function(){return this.pos>=this.string.length},Rt.prototype.sol=function(){return this.pos==this.lineStart},Rt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Rt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Rt.prototype.eat=function(ie){var he=this.string.charAt(this.pos),Te;if(typeof ie=="string"?Te=he==ie:Te=he&&(ie.test?ie.test(he):ie(he)),Te)return++this.pos,he},Rt.prototype.eatWhile=function(ie){for(var he=this.pos;this.eat(ie););return this.pos>he},Rt.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},Rt.prototype.skipToEnd=function(){this.pos=this.string.length},Rt.prototype.skipTo=function(ie){var he=this.string.indexOf(ie,this.pos);if(he>-1)return this.pos=he,!0},Rt.prototype.backUp=function(ie){this.pos-=ie},Rt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=qe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?qe(this.string,this.lineStart,this.tabSize):0)},Rt.prototype.indentation=function(){return qe(this.string,null,this.tabSize)-(this.lineStart?qe(this.string,this.lineStart,this.tabSize):0)},Rt.prototype.match=function(ie,he,Te){if(typeof ie=="string"){var Me=function(Mt){return Te?Mt.toLowerCase():Mt},Be=this.string.substr(this.pos,ie.length);if(Me(Be)==Me(ie))return he!==!1&&(this.pos+=ie.length),!0}else{var st=this.string.slice(this.pos).match(ie);return st&&st.index>0?null:(st&&he!==!1&&(this.pos+=st[0].length),st)}},Rt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Rt.prototype.hideFirstChars=function(ie,he){this.lineStart+=ie;try{return he()}finally{this.lineStart-=ie}},Rt.prototype.lookAhead=function(ie){var he=this.lineOracle;return he&&he.lookAhead(ie)},Rt.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function rn(ie,he){if(he-=ie.first,he<0||he>=ie.size)throw new Error("There is no line "+(he+ie.first)+" in the document.");for(var Te=ie;!Te.lines;)for(var Me=0;;++Me){var Be=Te.children[Me],st=Be.chunkSize();if(he<st){Te=Be;break}he-=st}return Te.lines[he]}function yn(ie,he,Te){var Me=[],Be=he.line;return ie.iter(he.line,Te.line+1,function(st){var Mt=st.text;Be==Te.line&&(Mt=Mt.slice(0,Te.ch)),Be==he.line&&(Mt=Mt.slice(he.ch)),Me.push(Mt),++Be}),Me}function Mn(ie,he,Te){var Me=[];return ie.iter(he,Te,function(Be){Me.push(Be.text)}),Me}function On(ie,he){var Te=he-ie.height;if(Te)for(var Me=ie;Me;Me=Me.parent)Me.height+=Te}function zt(ie){if(ie.parent==null)return null;for(var he=ie.parent,Te=gt(he.lines,ie),Me=he.parent;Me;he=Me,Me=Me.parent)for(var Be=0;Me.children[Be]!=he;++Be)Te+=Me.children[Be].chunkSize();return Te+he.first}function xn(ie,he){var Te=ie.first;e:do{for(var Me=0;Me<ie.children.length;++Me){var Be=ie.children[Me],st=Be.height;if(he<st){ie=Be;continue e}he-=st,Te+=Be.chunkSize()}return Te}while(!ie.lines);for(var Mt=0;Mt<ie.lines.length;++Mt){var Bt=ie.lines[Mt],Dt=Bt.height;if(he<Dt)break;he-=Dt}return Te+Mt}function Fn(ie,he){return he>=ie.first&&he<ie.first+ie.size}function $n(ie,he){return String(ie.lineNumberFormatter(he+ie.firstLineNumber))}function gn(ie,he,Te){if(Te===void 0&&(Te=null),!(this instanceof gn))return new gn(ie,he,Te);this.line=ie,this.ch=he,this.sticky=Te}function Sn(ie,he){return ie.line-he.line||ie.ch-he.ch}function Qt(ie,he){return ie.sticky==he.sticky&&Sn(ie,he)==0}function hn(ie){return gn(ie.line,ie.ch)}function dn(ie,he){return Sn(ie,he)<0?he:ie}function cn(ie,he){return Sn(ie,he)<0?ie:he}function Pn(ie,he){return Math.max(ie.first,Math.min(he,ie.first+ie.size-1))}function Cn(ie,he){if(he.line<ie.first)return gn(ie.first,0);var Te=ie.first+ie.size-1;return he.line>Te?gn(Te,rn(ie,Te).text.length):Dn(he,rn(ie,he.line).text.length)}function Dn(ie,he){var Te=ie.ch;return Te==null||Te>he?gn(ie.line,he):Te<0?gn(ie.line,0):ie}function In(ie,he){for(var Te=[],Me=0;Me<he.length;Me++)Te[Me]=Cn(ie,he[Me]);return Te}var tr=function(ie,he){this.state=ie,this.lookAhead=he},un=function(ie,he,Te,Me){this.state=he,this.doc=ie,this.line=Te,this.maxLookAhead=Me||0,this.baseTokens=null,this.baseTokenPos=1};un.prototype.lookAhead=function(ie){var he=this.doc.getLine(this.line+ie);return he!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),he},un.prototype.baseToken=function(ie){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=ie;)this.baseTokenPos+=2;var he=this.baseTokens[this.baseTokenPos+1];return{type:he&&he.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-ie}},un.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},un.fromSaved=function(ie,he,Te){return he instanceof tr?new un(ie,nn(ie.mode,he.state),Te,he.lookAhead):new un(ie,nn(ie.mode,he),Te)},un.prototype.save=function(ie){var he=ie!==!1?nn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new tr(he,this.maxLookAhead):he};function fr(ie,he,Te,Me){var Be=[ie.state.modeGen],st={};Cr(ie,he.text,ie.doc.mode,Te,function(Zt,vn){return Be.push(Zt,vn)},st,Me);for(var Mt=Te.state,Bt=function(Zt){Te.baseTokens=Be;var vn=ie.state.overlays[Zt],Jt=1,Bn=0;Te.state=!0,Cr(ie,he.text,vn.mode,Te,function(An,ir){for(var lr=Jt;Bn<An;){var br=Be[Jt];br>An&&Be.splice(Jt,1,An,Be[Jt+1],br),Jt+=2,Bn=Math.min(An,br)}if(ir)if(vn.opaque)Be.splice(lr,Jt-lr,An,"overlay "+ir),Jt=lr+2;else for(;lr<Jt;lr+=2){var Dr=Be[lr+1];Be[lr+1]=(Dr?Dr+" ":"")+"overlay "+ir}},st),Te.state=Mt,Te.baseTokens=null,Te.baseTokenPos=1},Dt=0;Dt<ie.state.overlays.length;++Dt)Bt(Dt);return{styles:Be,classes:st.bgClass||st.textClass?st:null}}function wr(ie,he,Te){if(!he.styles||he.styles[0]!=ie.state.modeGen){var Me=Or(ie,zt(he)),Be=he.text.length>ie.options.maxHighlightLength&&nn(ie.doc.mode,Me.state),st=fr(ie,he,Me);Be&&(Me.state=Be),he.stateAfter=Me.save(!Be),he.styles=st.styles,st.classes?he.styleClasses=st.classes:he.styleClasses&&(he.styleClasses=null),Te===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return he.styles}function Or(ie,he,Te){var Me=ie.doc,Be=ie.display;if(!Me.mode.startState)return new un(Me,!0,he);var st=Pr(ie,he,Te),Mt=st>Me.first&&rn(Me,st-1).stateAfter,Bt=Mt?un.fromSaved(Me,Mt,st):new un(Me,Vt(Me.mode),st);return Me.iter(st,he,function(Dt){fn(ie,Dt.text,Bt);var Zt=Bt.line;Dt.stateAfter=Zt==he-1||Zt%5==0||Zt>=Be.viewFrom&&Zt<Be.viewTo?Bt.save():null,Bt.nextLine()}),Te&&(Me.modeFrontier=Bt.line),Bt}function fn(ie,he,Te,Me){var Be=ie.doc.mode,st=new Rt(he,ie.options.tabSize,Te);for(st.start=st.pos=Me||0,he==""&&_n(Be,Te.state);!st.eol();)Yn(Be,st,Te.state),st.start=st.pos}function _n(ie,he){if(ie.blankLine)return ie.blankLine(he);if(ie.innerMode){var Te=pn(ie,he);if(Te.mode.blankLine)return Te.mode.blankLine(Te.state)}}function Yn(ie,he,Te,Me){for(var Be=0;Be<10;Be++){Me&&(Me[0]=pn(ie,Te).mode);var st=ie.token(he,Te);if(he.pos>he.start)return st}throw new Error("Mode "+ie.name+" failed to advance stream.")}var hr=function(ie,he,Te){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=he||null,this.state=Te};function Qn(ie,he,Te,Me){var Be=ie.doc,st=Be.mode,Mt;he=Cn(Be,he);var Bt=rn(Be,he.line),Dt=Or(ie,he.line,Te),Zt=new Rt(Bt.text,ie.options.tabSize,Dt),vn;for(Me&&(vn=[]);(Me||Zt.pos<he.ch)&&!Zt.eol();)Zt.start=Zt.pos,Mt=Yn(st,Zt,Dt.state),Me&&vn.push(new hr(Zt,Mt,nn(Be.mode,Dt.state)));return Me?vn:new hr(Zt,Mt,Dt.state)}function ur(ie,he){if(ie)for(;;){var Te=ie.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!Te)break;ie=ie.slice(0,Te.index)+ie.slice(Te.index+Te[0].length);var Me=Te[1]?"bgClass":"textClass";he[Me]==null?he[Me]=Te[2]:new RegExp("(?:^|\\s)"+Te[2]+"(?:$|\\s)").test(he[Me])||(he[Me]+=" "+Te[2])}return ie}function Cr(ie,he,Te,Me,Be,st,Mt){var Bt=Te.flattenSpans;Bt==null&&(Bt=ie.options.flattenSpans);var Dt=0,Zt=null,vn=new Rt(he,ie.options.tabSize,Me),Jt,Bn=ie.options.addModeClass&&[null];for(he==""&&ur(_n(Te,Me.state),st);!vn.eol();){if(vn.pos>ie.options.maxHighlightLength?(Bt=!1,Mt&&fn(ie,he,Me,vn.pos),vn.pos=he.length,Jt=null):Jt=ur(Yn(Te,vn,Me.state,Bn),st),Bn){var An=Bn[0].name;An&&(Jt="m-"+(Jt?An+" "+Jt:An))}if(!Bt||Zt!=Jt){for(;Dt<vn.start;)Dt=Math.min(vn.start,Dt+5e3),Be(Dt,Zt);Zt=Jt}vn.start=vn.pos}for(;Dt<vn.pos;){var ir=Math.min(vn.pos,Dt+5e3);Be(ir,Zt),Dt=ir}}function Pr(ie,he,Te){for(var Me,Be,st=ie.doc,Mt=Te?-1:he-(ie.doc.mode.innerMode?1e3:100),Bt=he;Bt>Mt;--Bt){if(Bt<=st.first)return st.first;var Dt=rn(st,Bt-1),Zt=Dt.stateAfter;if(Zt&&(!Te||Bt+(Zt instanceof tr?Zt.lookAhead:0)<=st.modeFrontier))return Bt;var vn=qe(Dt.text,null,ie.options.tabSize);(Be==null||Me>vn)&&(Be=Bt-1,Me=vn)}return Be}function cr(ie,he){if(ie.modeFrontier=Math.min(ie.modeFrontier,he),!(ie.highlightFrontier<he-10)){for(var Te=ie.first,Me=he-1;Me>Te;Me--){var Be=rn(ie,Me).stateAfter;if(Be&&(!(Be instanceof tr)||Me+Be.lookAhead<he)){Te=Me+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,Te)}}var Mr=!1,Tn=!1;function qr(){Mr=!0}function Ln(){Tn=!0}function zr(ie,he,Te){this.marker=ie,this.from=he,this.to=Te}function li(ie,he){if(ie)for(var Te=0;Te<ie.length;++Te){var Me=ie[Te];if(Me.marker==he)return Me}}function Ar(ie,he){for(var Te,Me=0;Me<ie.length;++Me)ie[Me]!=he&&(Te||(Te=[])).push(ie[Me]);return Te}function fi(ie,he){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([he]):[he],he.marker.attachLine(ie)}function oi(ie,he,Te){var Me;if(ie)for(var Be=0;Be<ie.length;++Be){var st=ie[Be],Mt=st.marker,Bt=st.from==null||(Mt.inclusiveLeft?st.from<=he:st.from<he);if(Bt||st.from==he&&Mt.type=="bookmark"&&(!Te||!st.marker.insertLeft)){var Dt=st.to==null||(Mt.inclusiveRight?st.to>=he:st.to>he);(Me||(Me=[])).push(new zr(Mt,st.from,Dt?null:st.to))}}return Me}function Sr(ie,he,Te){var Me;if(ie)for(var Be=0;Be<ie.length;++Be){var st=ie[Be],Mt=st.marker,Bt=st.to==null||(Mt.inclusiveRight?st.to>=he:st.to>he);if(Bt||st.from==he&&Mt.type=="bookmark"&&(!Te||st.marker.insertLeft)){var Dt=st.from==null||(Mt.inclusiveLeft?st.from<=he:st.from<he);(Me||(Me=[])).push(new zr(Mt,Dt?null:st.from-he,st.to==null?null:st.to-he))}}return Me}function yr(ie,he){if(he.full)return null;var Te=Fn(ie,he.from.line)&&rn(ie,he.from.line).markedSpans,Me=Fn(ie,he.to.line)&&rn(ie,he.to.line).markedSpans;if(!Te&&!Me)return null;var Be=he.from.ch,st=he.to.ch,Mt=Sn(he.from,he.to)==0,Bt=oi(Te,Be,Mt),Dt=Sr(Me,st,Mt),Zt=he.text.length==1,vn=Et(he.text).length+(Zt?Be:0);if(Bt)for(var Jt=0;Jt<Bt.length;++Jt){var Bn=Bt[Jt];if(Bn.to==null){var An=li(Dt,Bn.marker);An?Zt&&(Bn.to=An.to==null?null:An.to+vn):Bn.to=Be}}if(Dt)for(var ir=0;ir<Dt.length;++ir){var lr=Dt[ir];if(lr.to!=null&&(lr.to+=vn),lr.from==null){var br=li(Bt,lr.marker);br||(lr.from=vn,Zt&&(Bt||(Bt=[])).push(lr))}else lr.from+=vn,Zt&&(Bt||(Bt=[])).push(lr)}Bt&&(Bt=Kr(Bt)),Dt&&Dt!=Bt&&(Dt=Kr(Dt));var Dr=[Bt];if(!Zt){var ti=he.text.length-2,Ur;if(ti>0&&Bt)for(var si=0;si<Bt.length;++si)Bt[si].to==null&&(Ur||(Ur=[])).push(new zr(Bt[si].marker,null,null));for(var ki=0;ki<ti;++ki)Dr.push(Ur);Dr.push(Dt)}return Dr}function Kr(ie){for(var he=0;he<ie.length;++he){var Te=ie[he];Te.from!=null&&Te.from==Te.to&&Te.marker.clearWhenEmpty!==!1&&ie.splice(he--,1)}return ie.length?ie:null}function ai(ie,he,Te){var Me=null;if(ie.iter(he.line,Te.line+1,function(An){if(An.markedSpans)for(var ir=0;ir<An.markedSpans.length;++ir){var lr=An.markedSpans[ir].marker;lr.readOnly&&(!Me||gt(Me,lr)==-1)&&(Me||(Me=[])).push(lr)}}),!Me)return null;for(var Be=[{from:he,to:Te}],st=0;st<Me.length;++st)for(var Mt=Me[st],Bt=Mt.find(0),Dt=0;Dt<Be.length;++Dt){var Zt=Be[Dt];if(!(Sn(Zt.to,Bt.from)<0||Sn(Zt.from,Bt.to)>0)){var vn=[Dt,1],Jt=Sn(Zt.from,Bt.from),Bn=Sn(Zt.to,Bt.to);(Jt<0||!Mt.inclusiveLeft&&!Jt)&&vn.push({from:Zt.from,to:Bt.from}),(Bn>0||!Mt.inclusiveRight&&!Bn)&&vn.push({from:Bt.to,to:Zt.to}),Be.splice.apply(Be,vn),Dt+=vn.length-3}}return Be}function qn(ie){var he=ie.markedSpans;if(he){for(var Te=0;Te<he.length;++Te)he[Te].marker.detachLine(ie);ie.markedSpans=null}}function Nt(ie,he){if(he){for(var Te=0;Te<he.length;++Te)he[Te].marker.attachLine(ie);ie.markedSpans=he}}function ni(ie){return ie.inclusiveLeft?-1:0}function Ci(ie){return ie.inclusiveRight?1:0}function Xr(ie,he){var Te=ie.lines.length-he.lines.length;if(Te!=0)return Te;var Me=ie.find(),Be=he.find(),st=Sn(Me.from,Be.from)||ni(ie)-ni(he);if(st)return-st;var Mt=Sn(Me.to,Be.to)||Ci(ie)-Ci(he);return Mt||he.id-ie.id}function Ei(ie,he){var Te=Tn&&ie.markedSpans,Me;if(Te)for(var Be=void 0,st=0;st<Te.length;++st)Be=Te[st],Be.marker.collapsed&&(he?Be.from:Be.to)==null&&(!Me||Xr(Me,Be.marker)<0)&&(Me=Be.marker);return Me}function Oi(ie){return Ei(ie,!0)}function Fr(ie){return Ei(ie,!1)}function Gr(ie,he){var Te=Tn&&ie.markedSpans,Me;if(Te)for(var Be=0;Be<Te.length;++Be){var st=Te[Be];st.marker.collapsed&&(st.from==null||st.from<he)&&(st.to==null||st.to>he)&&(!Me||Xr(Me,st.marker)<0)&&(Me=st.marker)}return Me}function ri(ie,he,Te,Me,Be){var st=rn(ie,he),Mt=Tn&&st.markedSpans;if(Mt)for(var Bt=0;Bt<Mt.length;++Bt){var Dt=Mt[Bt];if(Dt.marker.collapsed){var Zt=Dt.marker.find(0),vn=Sn(Zt.from,Te)||ni(Dt.marker)-ni(Be),Jt=Sn(Zt.to,Me)||Ci(Dt.marker)-Ci(Be);if(!(vn>=0&&Jt<=0||vn<=0&&Jt>=0)&&(vn<=0&&(Dt.marker.inclusiveRight&&Be.inclusiveLeft?Sn(Zt.to,Te)>=0:Sn(Zt.to,Te)>0)||vn>=0&&(Dt.marker.inclusiveRight&&Be.inclusiveLeft?Sn(Zt.from,Me)<=0:Sn(Zt.from,Me)<0)))return!0}}}function Vr(ie){for(var he;he=Oi(ie);)ie=he.find(-1,!0).line;return ie}function Mi(ie){for(var he;he=Fr(ie);)ie=he.find(1,!0).line;return ie}function Fi(ie){for(var he,Te;he=Fr(ie);)ie=he.find(1,!0).line,(Te||(Te=[])).push(ie);return Te}function Lr(ie,he){var Te=rn(ie,he),Me=Vr(Te);return Te==Me?he:zt(Me)}function kr(ie,he){if(he>ie.lastLine())return he;var Te=rn(ie,he),Me;if(!Wn(ie,Te))return he;for(;Me=Fr(Te);)Te=Me.find(1,!0).line;return zt(Te)+1}function Wn(ie,he){var Te=Tn&&he.markedSpans;if(Te){for(var Me=void 0,Be=0;Be<Te.length;++Be)if(Me=Te[Be],!!Me.marker.collapsed){if(Me.from==null)return!0;if(!Me.marker.widgetNode&&Me.from==0&&Me.marker.inclusiveLeft&&Br(ie,he,Me))return!0}}}function Br(ie,he,Te){if(Te.to==null){var Me=Te.marker.find(1,!0);return Br(ie,Me.line,li(Me.line.markedSpans,Te.marker))}if(Te.marker.inclusiveRight&&Te.to==he.text.length)return!0;for(var Be=void 0,st=0;st<he.markedSpans.length;++st)if(Be=he.markedSpans[st],Be.marker.collapsed&&!Be.marker.widgetNode&&Be.from==Te.to&&(Be.to==null||Be.to!=Te.from)&&(Be.marker.inclusiveLeft||Te.marker.inclusiveRight)&&Br(ie,he,Be))return!0}function vi(ie){ie=Vr(ie);for(var he=0,Te=ie.parent,Me=0;Me<Te.lines.length;++Me){var Be=Te.lines[Me];if(Be==ie)break;he+=Be.height}for(var st=Te.parent;st;Te=st,st=Te.parent)for(var Mt=0;Mt<st.children.length;++Mt){var Bt=st.children[Mt];if(Bt==Te)break;he+=Bt.height}return he}function Ki(ie){if(ie.height==0)return 0;for(var he=ie.text.length,Te,Me=ie;Te=Oi(Me);){var Be=Te.find(0,!0);Me=Be.from.line,he+=Be.from.ch-Be.to.ch}for(Me=ie;Te=Fr(Me);){var st=Te.find(0,!0);he-=Me.text.length-st.from.ch,Me=st.to.line,he+=Me.text.length-st.to.ch}return he}function Ti(ie){var he=ie.display,Te=ie.doc;he.maxLine=rn(Te,Te.first),he.maxLineLength=Ki(he.maxLine),he.maxLineChanged=!0,Te.iter(function(Me){var Be=Ki(Me);Be>he.maxLineLength&&(he.maxLineLength=Be,he.maxLine=Me)})}var gi=function(ie,he,Te){this.text=ie,Nt(this,he),this.height=Te?Te(this):1};gi.prototype.lineNo=function(){return zt(this)},mn(gi);function Gi(ie,he,Te,Me){ie.text=he,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),qn(ie),Nt(ie,Te);var Be=Me?Me(ie):1;Be!=ie.height&&On(ie,Be)}function Xi(ie){ie.parent=null,qn(ie)}var vo={},yo={};function Po(ie,he){if(!ie||/^\s*$/.test(ie))return null;var Te=he.addModeClass?yo:vo;return Te[ie]||(Te[ie]=ie.replace(/\S+/g,"cm-$&"))}function wn(ie,he){var Te=Fe("span",null,null,fe?"padding-right: .1px":null),Me={pre:Fe("pre",[Te],"CodeMirror-line"),content:Te,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};he.measure={};for(var Be=0;Be<=(he.rest?he.rest.length:0);Be++){var st=Be?he.rest[Be-1]:he.line,Mt=void 0;Me.pos=0,Me.addToken=cl,ei(ie.display.measure)&&(Mt=yt(st,ie.doc.direction))&&(Me.addToken=Ai(Me.addToken,Mt)),Me.map=[];var Bt=he!=ie.display.externalMeasured&&zt(st);so(st,Me,wr(ie,st,Bt)),st.styleClasses&&(st.styleClasses.bgClass&&(Me.bgClass=ot(st.styleClasses.bgClass,Me.bgClass||"")),st.styleClasses.textClass&&(Me.textClass=ot(st.styleClasses.textClass,Me.textClass||""))),Me.map.length==0&&Me.map.push(0,0,Me.content.appendChild(Rr(ie.display.measure))),Be==0?(he.measure.map=Me.map,he.measure.cache={}):((he.measure.maps||(he.measure.maps=[])).push(Me.map),(he.measure.caches||(he.measure.caches=[])).push({}))}if(fe){var Dt=Me.content.lastChild;(/\bcm-tab\b/.test(Dt.className)||Dt.querySelector&&Dt.querySelector(".cm-tab"))&&(Me.content.className="cm-tab-wrap-hack")}return It(ie,"renderLine",ie,he.line,Me.pre),Me.pre.className&&(Me.textClass=ot(Me.pre.className,Me.textClass||"")),Me}function ao(ie){var he=Oe("span","\u2022","cm-invalidchar");return he.title="\\u"+ie.charCodeAt(0).toString(16),he.setAttribute("aria-label",he.title),he}function cl(ie,he,Te,Me,Be,st,Mt){if(he){var Bt=ie.splitSpaces?la(he,ie.trailingSpace):he,Dt=ie.cm.state.specialChars,Zt=!1,vn;if(!Dt.test(he))ie.col+=he.length,vn=document.createTextNode(Bt),ie.map.push(ie.pos,ie.pos+he.length,vn),Ne&&ve<9&&(Zt=!0),ie.pos+=he.length;else{vn=document.createDocumentFragment();for(var Jt=0;;){Dt.lastIndex=Jt;var Bn=Dt.exec(he),An=Bn?Bn.index-Jt:he.length-Jt;if(An){var ir=document.createTextNode(Bt.slice(Jt,Jt+An));Ne&&ve<9?vn.appendChild(Oe("span",[ir])):vn.appendChild(ir),ie.map.push(ie.pos,ie.pos+An,ir),ie.col+=An,ie.pos+=An}if(!Bn)break;Jt+=An+1;var lr=void 0;if(Bn[0]==" "){var br=ie.cm.options.tabSize,Dr=br-ie.col%br;lr=vn.appendChild(Oe("span",Wt(Dr),"cm-tab")),lr.setAttribute("role","presentation"),lr.setAttribute("cm-text"," "),ie.col+=Dr}else Bn[0]=="\r"||Bn[0]==`
|
|
|
`?(lr=vn.appendChild(Oe("span",Bn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),lr.setAttribute("cm-text",Bn[0]),ie.col+=1):(lr=ie.cm.options.specialCharPlaceholder(Bn[0]),lr.setAttribute("cm-text",Bn[0]),Ne&&ve<9?vn.appendChild(Oe("span",[lr])):vn.appendChild(lr),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,lr),ie.pos++}}if(ie.trailingSpace=Bt.charCodeAt(he.length-1)==32,Te||Me||Be||Zt||st||Mt){var ti=Te||"";Me&&(ti+=Me),Be&&(ti+=Be);var Ur=Oe("span",[vn],ti,st);if(Mt)for(var si in Mt)Mt.hasOwnProperty(si)&&si!="style"&&si!="class"&&Ur.setAttribute(si,Mt[si]);return ie.content.appendChild(Ur)}ie.content.appendChild(vn)}}function la(ie,he){if(ie.length>1&&!/ /.test(ie))return ie;for(var Te=he,Me="",Be=0;Be<ie.length;Be++){var st=ie.charAt(Be);st==" "&&Te&&(Be==ie.length-1||ie.charCodeAt(Be+1)==32)&&(st="\xA0"),Me+=st,Te=st==" "}return Me}function Ai(ie,he){return function(Te,Me,Be,st,Mt,Bt,Dt){Be=Be?Be+" cm-force-border":"cm-force-border";for(var Zt=Te.pos,vn=Zt+Me.length;;){for(var Jt=void 0,Bn=0;Bn<he.length&&(Jt=he[Bn],!(Jt.to>Zt&&Jt.from<=Zt));Bn++);if(Jt.to>=vn)return ie(Te,Me,Be,st,Mt,Bt,Dt);ie(Te,Me.slice(0,Jt.to-Zt),Be,st,null,Bt,Dt),st=null,Me=Me.slice(Jt.to-Zt),Zt=Jt.to}}}function mi(ie,he,Te,Me){var Be=!Me&&Te.widgetNode;Be&&ie.map.push(ie.pos,ie.pos+he,Be),!Me&&ie.cm.display.input.needsContentAttribute&&(Be||(Be=ie.content.appendChild(document.createElement("span"))),Be.setAttribute("cm-marker",Te.id)),Be&&(ie.cm.display.input.setUneditable(Be),ie.content.appendChild(Be)),ie.pos+=he,ie.trailingSpace=!1}function so(ie,he,Te){var Me=ie.markedSpans,Be=ie.text,st=0;if(!Me){for(var Mt=1;Mt<Te.length;Mt+=2)he.addToken(he,Be.slice(st,st=Te[Mt]),Po(Te[Mt+1],he.cm.options));return}for(var Bt=Be.length,Dt=0,Zt=1,vn="",Jt,Bn,An=0,ir,lr,br,Dr,ti;;){if(An==Dt){ir=lr=br=Bn="",ti=null,Dr=null,An=1/0;for(var Ur=[],si=void 0,ki=0;ki<Me.length;++ki){var Hr=Me[ki],zi=Hr.marker;if(zi.type=="bookmark"&&Hr.from==Dt&&zi.widgetNode)Ur.push(zi);else if(Hr.from<=Dt&&(Hr.to==null||Hr.to>Dt||zi.collapsed&&Hr.to==Dt&&Hr.from==Dt)){if(Hr.to!=null&&Hr.to!=Dt&&An>Hr.to&&(An=Hr.to,lr=""),zi.className&&(ir+=" "+zi.className),zi.css&&(Bn=(Bn?Bn+";":"")+zi.css),zi.startStyle&&Hr.from==Dt&&(br+=" "+zi.startStyle),zi.endStyle&&Hr.to==An&&(si||(si=[])).push(zi.endStyle,Hr.to),zi.title&&((ti||(ti={})).title=zi.title),zi.attributes)for(var Do in zi.attributes)(ti||(ti={}))[Do]=zi.attributes[Do];zi.collapsed&&(!Dr||Xr(Dr.marker,zi)<0)&&(Dr=Hr)}else Hr.from>Dt&&An>Hr.from&&(An=Hr.from)}if(si)for(var da=0;da<si.length;da+=2)si[da+1]==An&&(lr+=" "+si[da]);if(!Dr||Dr.from==Dt)for(var Ko=0;Ko<Ur.length;++Ko)mi(he,0,Ur[Ko]);if(Dr&&(Dr.from||0)==Dt){if(mi(he,(Dr.to==null?Bt+1:Dr.to)-Dt,Dr.marker,Dr.from==null),Dr.to==null)return;Dr.to==Dt&&(Dr=!1)}}if(Dt>=Bt)break;for(var fs=Math.min(Bt,An);;){if(vn){var Wa=Dt+vn.length;if(!Dr){var oa=Wa>fs?vn.slice(0,fs-Dt):vn;he.addToken(he,oa,Jt?Jt+ir:ir,br,Dt+oa.length==An?lr:"",Bn,ti)}if(Wa>=fs){vn=vn.slice(fs-Dt),Dt=fs;break}Dt=Wa,br=""}vn=Be.slice(st,st=Te[Zt++]),Jt=Po(Te[Zt++],he.cm.options)}}}function Bi(ie,he,Te){this.line=he,this.rest=Fi(he),this.size=this.rest?zt(Et(this.rest))-Te+1:1,this.node=this.text=null,this.hidden=Wn(ie,he)}function yi(ie,he,Te){for(var Me=[],Be,st=he;st<Te;st=Be){var Mt=new Bi(ie.doc,rn(ie.doc,st),st);Be=st+Mt.size,Me.push(Mt)}return Me}var Yi=null;function ma(ie){Yi?Yi.ops.push(ie):ie.ownsGroup=Yi={ops:[ie],delayedCallbacks:[]}}function Yr(ie){var he=ie.delayedCallbacks,Te=0;do{for(;Te<he.length;Te++)he[Te].call(null);for(var Me=0;Me<ie.ops.length;Me++){var Be=ie.ops[Me];if(Be.cursorActivityHandlers)for(;Be.cursorActivityCalled<Be.cursorActivityHandlers.length;)Be.cursorActivityHandlers[Be.cursorActivityCalled++].call(null,Be.cm)}}while(Te<he.length)}function Li(ie,he){var Te=ie.ownsGroup;if(Te)try{Yr(Te)}finally{Yi=null,he(Te)}}var Si=null;function mr(ie,he){var Te=Ht(ie,he);if(Te.length){var Me=Array.prototype.slice.call(arguments,2),Be;Yi?Be=Yi.delayedCallbacks:Si?Be=Si:(Be=Si=[],setTimeout(ko,0));for(var st=function(Bt){Be.push(function(){return Te[Bt].apply(null,Me)})},Mt=0;Mt<Te.length;++Mt)st(Mt)}}function ko(){var ie=Si;Si=null;for(var he=0;he<ie.length;++he)ie[he]()}function Oo(ie,he,Te,Me){for(var Be=0;Be<he.changes.length;Be++){var st=he.changes[Be];st=="text"?sr(ie,he):st=="gutter"?Ao(ie,he,Te,Me):st=="class"?io(ie,he):st=="widget"&&Ss(ie,he,Me)}he.changes=null}function va(ie){return ie.node==ie.text&&(ie.node=Oe("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),Ne&&ve<8&&(ie.node.style.zIndex=2)),ie.node}function Is(ie,he){var Te=he.bgClass?he.bgClass+" "+(he.line.bgClass||""):he.line.bgClass;if(Te&&(Te+=" CodeMirror-linebackground"),he.background)Te?he.background.className=Te:(he.background.parentNode.removeChild(he.background),he.background=null);else if(Te){var Me=va(he);he.background=Me.insertBefore(Oe("div",null,Te),Me.firstChild),ie.display.input.setUneditable(he.background)}}function hl(ie,he){var Te=ie.display.externalMeasured;return Te&&Te.line==he.line?(ie.display.externalMeasured=null,he.measure=Te.measure,Te.built):wn(ie,he)}function sr(ie,he){var Te=he.text.className,Me=hl(ie,he);he.text==he.node&&(he.node=Me.pre),he.text.parentNode.replaceChild(Me.pre,he.text),he.text=Me.pre,Me.bgClass!=he.bgClass||Me.textClass!=he.textClass?(he.bgClass=Me.bgClass,he.textClass=Me.textClass,io(ie,he)):Te&&(he.text.className=Te)}function io(ie,he){Is(ie,he),he.line.wrapClass?va(he).className=he.line.wrapClass:he.node!=he.text&&(he.node.className="");var Te=he.textClass?he.textClass+" "+(he.line.textClass||""):he.line.textClass;he.text.className=Te||""}function Ao(ie,he,Te,Me){if(he.gutter&&(he.node.removeChild(he.gutter),he.gutter=null),he.gutterBackground&&(he.node.removeChild(he.gutterBackground),he.gutterBackground=null),he.line.gutterClass){var Be=va(he);he.gutterBackground=Oe("div",null,"CodeMirror-gutter-background "+he.line.gutterClass,"left: "+(ie.options.fixedGutter?Me.fixedPos:-Me.gutterTotalWidth)+"px; width: "+Me.gutterTotalWidth+"px"),ie.display.input.setUneditable(he.gutterBackground),Be.insertBefore(he.gutterBackground,he.text)}var st=he.line.gutterMarkers;if(ie.options.lineNumbers||st){var Mt=va(he),Bt=he.gutter=Oe("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?Me.fixedPos:-Me.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(Bt),Mt.insertBefore(Bt,he.text),he.line.gutterClass&&(Bt.className+=" "+he.line.gutterClass),ie.options.lineNumbers&&(!st||!st["CodeMirror-linenumbers"])&&(he.lineNumber=Bt.appendChild(Oe("div",$n(ie.options,Te),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+Me.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),st)for(var Dt=0;Dt<ie.display.gutterSpecs.length;++Dt){var Zt=ie.display.gutterSpecs[Dt].className,vn=st.hasOwnProperty(Zt)&&st[Zt];vn&&Bt.appendChild(Oe("div",[vn],"CodeMirror-gutter-elt","left: "+Me.gutterLeft[Zt]+"px; width: "+Me.gutterWidth[Zt]+"px"))}}}function Ss(ie,he,Te){he.alignable&&(he.alignable=null);for(var Me=Ce("CodeMirror-linewidget"),Be=he.node.firstChild,st=void 0;Be;Be=st)st=Be.nextSibling,Me.test(Be.className)&&he.node.removeChild(Be);Ds(ie,he,Te)}function ru(ie,he,Te,Me){var Be=hl(ie,he);return he.text=he.node=Be.pre,Be.bgClass&&(he.bgClass=Be.bgClass),Be.textClass&&(he.textClass=Be.textClass),io(ie,he),Ao(ie,he,Te,Me),Ds(ie,he,Me),he.node}function Ds(ie,he,Te){if(ui(ie,he.line,he,Te,!0),he.rest)for(var Me=0;Me<he.rest.length;Me++)ui(ie,he.rest[Me],he,Te,!1)}function ui(ie,he,Te,Me,Be){if(he.widgets)for(var st=va(Te),Mt=0,Bt=he.widgets;Mt<Bt.length;++Mt){var Dt=Bt[Mt],Zt=Oe("div",[Dt.node],"CodeMirror-linewidget"+(Dt.className?" "+Dt.className:""));Dt.handleMouseEvents||Zt.setAttribute("cm-ignore-events","true"),hc(Dt,Zt,Te,Me),ie.display.input.setUneditable(Zt),Be&&Dt.above?st.insertBefore(Zt,Te.gutter||Te.text):st.appendChild(Zt),mr(Dt,"redraw")}}function hc(ie,he,Te,Me){if(ie.noHScroll){(Te.alignable||(Te.alignable=[])).push(he);var Be=Me.wrapperWidth;he.style.left=Me.fixedPos+"px",ie.coverGutter||(Be-=Me.gutterTotalWidth,he.style.paddingLeft=Me.gutterTotalWidth+"px"),he.style.width=Be+"px"}ie.coverGutter&&(he.style.zIndex=5,he.style.position="relative",ie.noHScroll||(he.style.marginLeft=-Me.gutterTotalWidth+"px"))}function Ya(ie){if(ie.height!=null)return ie.height;var he=ie.doc.cm;if(!he)return 0;if(!Ze(document.body,ie.node)){var Te="position: relative;";ie.coverGutter&&(Te+="margin-left: -"+he.display.gutters.offsetWidth+"px;"),ie.noHScroll&&(Te+="width: "+he.display.wrapper.clientWidth+"px;"),ke(he.display.measure,Oe("div",[ie.node],null,Te))}return ie.height=ie.node.parentNode.offsetHeight}function Ja(ie,he){for(var Te=xr(he);Te!=ie.wrapper;Te=Te.parentNode)if(!Te||Te.nodeType==1&&Te.getAttribute("cm-ignore-events")=="true"||Te.parentNode==ie.sizer&&Te!=ie.mover)return!0}function Qa(ie){return ie.lineSpace.offsetTop}function Fl(ie){return ie.mover.offsetHeight-ie.lineSpace.offsetHeight}function iu(ie){if(ie.cachedPaddingH)return ie.cachedPaddingH;var he=ke(ie.measure,Oe("pre","x","CodeMirror-line-like")),Te=window.getComputedStyle?window.getComputedStyle(he):he.currentStyle,Me={left:parseInt(Te.paddingLeft),right:parseInt(Te.paddingRight)};return!isNaN(Me.left)&&!isNaN(Me.right)&&(ie.cachedPaddingH=Me),Me}function qa(ie){return Ct-ie.display.nativeBarWidth}function xs(ie){return ie.display.scroller.clientWidth-qa(ie)-ie.display.barWidth}function dc(ie){return ie.display.scroller.clientHeight-qa(ie)-ie.display.barHeight}function oh(ie,he,Te){var Me=ie.options.lineWrapping,Be=Me&&xs(ie);if(!he.measure.heights||Me&&he.measure.width!=Be){var st=he.measure.heights=[];if(Me){he.measure.width=Be;for(var Mt=he.text.firstChild.getClientRects(),Bt=0;Bt<Mt.length-1;Bt++){var Dt=Mt[Bt],Zt=Mt[Bt+1];Math.abs(Dt.bottom-Zt.bottom)>2&&st.push((Dt.bottom+Zt.top)/2-Te.top)}}st.push(Te.bottom-Te.top)}}function fc(ie,he,Te){if(ie.line==he)return{map:ie.measure.map,cache:ie.measure.cache};for(var Me=0;Me<ie.rest.length;Me++)if(ie.rest[Me]==he)return{map:ie.measure.maps[Me],cache:ie.measure.caches[Me]};for(var Be=0;Be<ie.rest.length;Be++)if(zt(ie.rest[Be])>Te)return{map:ie.measure.maps[Be],cache:ie.measure.caches[Be],before:!0}}function Uh(ie,he){he=Vr(he);var Te=zt(he),Me=ie.display.externalMeasured=new Bi(ie.doc,he,Te);Me.lineN=Te;var Be=Me.built=wn(ie,Me);return Me.text=Be.pre,ke(ie.display.lineMeasure,Be.pre),Me}function pc(ie,he,Te,Me){return Fs(ie,Bl(ie,he),Te,Me)}function gc(ie,he){if(he>=ie.display.viewFrom&&he<ie.display.viewTo)return ie.display.view[Rs(ie,he)];var Te=ie.display.externalMeasured;if(Te&&he>=Te.lineN&&he<Te.lineN+Te.size)return Te}function Bl(ie,he){var Te=zt(he),Me=gc(ie,Te);Me&&!Me.text?Me=null:Me&&Me.changes&&(Oo(ie,Me,Te,_d(ie)),ie.curOp.forceUpdate=!0),Me||(Me=Uh(ie,he));var Be=fc(Me,he,Te);return{line:he,view:Me,rect:null,map:Be.map,cache:Be.cache,before:Be.before,hasHeights:!1}}function Fs(ie,he,Te,Me,Be){he.before&&(Te=-1);var st=Te+(Me||""),Mt;return he.cache.hasOwnProperty(st)?Mt=he.cache[st]:(he.rect||(he.rect=he.view.text.getBoundingClientRect()),he.hasHeights||(oh(ie,he.view,he.rect),he.hasHeights=!0),Mt=wi(ie,he,Te,Me),Mt.bogus||(he.cache[st]=Mt)),{left:Mt.left,right:Mt.right,top:Be?Mt.rtop:Mt.top,bottom:Be?Mt.rbottom:Mt.bottom}}var ah={left:0,right:0,top:0,bottom:0};function mc(ie,he,Te){for(var Me,Be,st,Mt,Bt,Dt,Zt=0;Zt<ie.length;Zt+=3)if(Bt=ie[Zt],Dt=ie[Zt+1],he<Bt?(Be=0,st=1,Mt="left"):he<Dt?(Be=he-Bt,st=Be+1):(Zt==ie.length-3||he==Dt&&ie[Zt+3]>he)&&(st=Dt-Bt,Be=st-1,he>=Dt&&(Mt="right")),Be!=null){if(Me=ie[Zt+2],Bt==Dt&&Te==(Me.insertLeft?"left":"right")&&(Mt=Te),Te=="left"&&Be==0)for(;Zt&&ie[Zt-2]==ie[Zt-3]&&ie[Zt-1].insertLeft;)Me=ie[(Zt-=3)+2],Mt="left";if(Te=="right"&&Be==Dt-Bt)for(;Zt<ie.length-3&&ie[Zt+3]==ie[Zt+4]&&!ie[Zt+5].insertLeft;)Me=ie[(Zt+=3)+2],Mt="right";break}return{node:Me,start:Be,end:st,collapse:Mt,coverStart:Bt,coverEnd:Dt}}function vc(ie,he){var Te=ah;if(he=="left")for(var Me=0;Me<ie.length&&(Te=ie[Me]).left==Te.right;Me++);else for(var Be=ie.length-1;Be>=0&&(Te=ie[Be]).left==Te.right;Be--);return Te}function wi(ie,he,Te,Me){var Be=mc(he.map,Te,Me),st=Be.node,Mt=Be.start,Bt=Be.end,Dt=Be.collapse,Zt;if(st.nodeType==3){for(var vn=0;vn<4;vn++){for(;Mt&&He(he.line.text.charAt(Be.coverStart+Mt));)--Mt;for(;Be.coverStart+Bt<Be.coverEnd&&He(he.line.text.charAt(Be.coverStart+Bt));)++Bt;if(Ne&&ve<9&&Mt==0&&Bt==Be.coverEnd-Be.coverStart?Zt=st.parentNode.getBoundingClientRect():Zt=vc(Re(st,Mt,Bt).getClientRects(),Me),Zt.left||Zt.right||Mt==0)break;Bt=Mt,Mt=Mt-1,Dt="right"}Ne&&ve<11&&(Zt=Vi(ie.display.measure,Zt))}else{Mt>0&&(Dt=Me="right");var Jt;ie.options.lineWrapping&&(Jt=st.getClientRects()).length>1?Zt=Jt[Me=="right"?Jt.length-1:0]:Zt=st.getBoundingClientRect()}if(Ne&&ve<9&&!Mt&&(!Zt||!Zt.left&&!Zt.right)){var Bn=st.parentNode.getClientRects()[0];Bn?Zt={left:Bn.left,right:Bn.left+yc(ie.display),top:Bn.top,bottom:Bn.bottom}:Zt=ah}for(var An=Zt.top-he.rect.top,ir=Zt.bottom-he.rect.top,lr=(An+ir)/2,br=he.view.measure.heights,Dr=0;Dr<br.length-1&&!(lr<br[Dr]);Dr++);var ti=Dr?br[Dr-1]:0,Ur=br[Dr],si={left:(Dt=="right"?Zt.right:Zt.left)-he.rect.left,right:(Dt=="left"?Zt.left:Zt.right)-he.rect.left,top:ti,bottom:Ur};return!Zt.left&&!Zt.right&&(si.bogus=!0),ie.options.singleCursorHeightPerLine||(si.rtop=An,si.rbottom=ir),si}function Vi(ie,he){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!En(ie))return he;var Te=screen.logicalXDPI/screen.deviceXDPI,Me=screen.logicalYDPI/screen.deviceYDPI;return{left:he.left*Te,right:he.right*Te,top:he.top*Me,bottom:he.bottom*Me}}function ya(ie){if(ie.measure&&(ie.measure.cache={},ie.measure.heights=null,ie.rest))for(var he=0;he<ie.rest.length;he++)ie.measure.caches[he]={}}function Sa(ie){ie.display.externalMeasure=null,Le(ie.display.lineMeasure);for(var he=0;he<ie.display.view.length;he++)ya(ie.display.view[he])}function Ho(ie){Sa(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function Co(){return Pe&&z?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function No(){return Pe&&z?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Uo(ie){var he=0;if(ie.widgets)for(var Te=0;Te<ie.widgets.length;++Te)ie.widgets[Te].above&&(he+=Ya(ie.widgets[Te]));return he}function Ro(ie,he,Te,Me,Be){if(!Be){var st=Uo(he);Te.top+=st,Te.bottom+=st}if(Me=="line")return Te;Me||(Me="local");var Mt=vi(he);if(Me=="local"?Mt+=Qa(ie.display):Mt-=ie.display.viewOffset,Me=="page"||Me=="window"){var Bt=ie.display.lineSpace.getBoundingClientRect();Mt+=Bt.top+(Me=="window"?0:No());var Dt=Bt.left+(Me=="window"?0:Co());Te.left+=Dt,Te.right+=Dt}return Te.top+=Mt,Te.bottom+=Mt,Te}function Pl(ie,he,Te){if(Te=="div")return he;var Me=he.left,Be=he.top;if(Te=="page")Me-=Co(),Be-=No();else if(Te=="local"||!Te){var st=ie.display.sizer.getBoundingClientRect();Me+=st.left,Be+=st.top}var Mt=ie.display.lineSpace.getBoundingClientRect();return{left:Me-Mt.left,top:Be-Mt.top}}function Bs(ie,he,Te,Me,Be){return Me||(Me=rn(ie.doc,he.line)),Ro(ie,Me,pc(ie,Me,he.ch,Be),Te)}function Lo(ie,he,Te,Me,Be,st){Me=Me||rn(ie.doc,he.line),Be||(Be=Bl(ie,Me));function Mt(ir,lr){var br=Fs(ie,Be,ir,lr?"right":"left",st);return lr?br.left=br.right:br.right=br.left,Ro(ie,Me,br,Te)}var Bt=yt(Me,ie.doc.direction),Dt=he.ch,Zt=he.sticky;if(Dt>=Me.text.length?(Dt=Me.text.length,Zt="before"):Dt<=0&&(Dt=0,Zt="after"),!Bt)return Mt(Zt=="before"?Dt-1:Dt,Zt=="before");function vn(ir,lr,br){var Dr=Bt[lr],ti=Dr.level==1;return Mt(br?ir-1:ir,ti!=br)}var Jt=Ie(Bt,Dt,Zt),Bn=De,An=vn(Dt,Jt,Zt=="before");return Bn!=null&&(An.other=vn(Dt,Bn,Zt!="before")),An}function Fd(ie,he){var Te=0;he=Cn(ie.doc,he),ie.options.lineWrapping||(Te=yc(ie.display)*he.ch);var Me=rn(ie.doc,he.line),Be=vi(Me)+Qa(ie.display);return{left:Te,right:Te,top:Be,bottom:Be+Me.height}}function Bd(ie,he,Te,Me,Be){var st=gn(ie,he,Te);return st.xRel=Be,Me&&(st.outside=Me),st}function Rd(ie,he,Te){var Me=ie.doc;if(Te+=ie.display.viewOffset,Te<0)return Bd(Me.first,0,null,-1,-1);var Be=xn(Me,Te),st=Me.first+Me.size-1;if(Be>st)return Bd(Me.first+Me.size-1,rn(Me,st).text.length,null,1,1);he<0&&(he=0);for(var Mt=rn(Me,Be);;){var Bt=Un(ie,Mt,Be,he,Te),Dt=Gr(Mt,Bt.ch+(Bt.xRel>0||Bt.outside>0?1:0));if(!Dt)return Bt;var Zt=Dt.find(1);if(Zt.line==Be)return Zt;Mt=rn(Me,Be=Zt.line)}}function Wr(ie,he,Te,Me){Me-=Uo(he);var Be=he.text.length,st=ut(function(Mt){return Fs(ie,Te,Mt-1).bottom<=Me},Be,0);return Be=ut(function(Mt){return Fs(ie,Te,Mt).top>Me},st,Be),{begin:st,end:Be}}function Qf(ie,he,Te,Me){Te||(Te=Bl(ie,he));var Be=Ro(ie,he,Fs(ie,Te,Me),"line").top;return Wr(ie,he,Te,Be)}function qt(ie,he,Te,Me){return ie.bottom<=Te?!1:ie.top>Te?!0:(Me?ie.left:ie.right)>he}function Un(ie,he,Te,Me,Be){Be-=vi(he);var st=Bl(ie,he),Mt=Uo(he),Bt=0,Dt=he.text.length,Zt=!0,vn=yt(he,ie.doc.direction);if(vn){var Jt=(ie.options.lineWrapping?Ig:jg)(ie,he,Te,st,vn,Me,Be);Zt=Jt.level!=1,Bt=Zt?Jt.from:Jt.to-1,Dt=Zt?Jt.to:Jt.from-1}var Bn=null,An=null,ir=ut(function(ki){var Hr=Fs(ie,st,ki);return Hr.top+=Mt,Hr.bottom+=Mt,qt(Hr,Me,Be,!1)?(Hr.top<=Be&&Hr.left<=Me&&(Bn=ki,An=Hr),!0):!1},Bt,Dt),lr,br,Dr=!1;if(An){var ti=Me-An.left<An.right-Me,Ur=ti==Zt;ir=Bn+(Ur?0:1),br=Ur?"after":"before",lr=ti?An.left:An.right}else{!Zt&&(ir==Dt||ir==Bt)&&ir++,br=ir==0?"after":ir==he.text.length?"before":Fs(ie,st,ir-(Zt?1:0)).bottom+Mt<=Be==Zt?"after":"before";var si=Lo(ie,gn(Te,ir,br),"line",he,st);lr=si.left,Dr=Be<si.top?-1:Be>=si.bottom?1:0}return ir=nt(he.text,ir,1),Bd(Te,ir,br,Dr,Me-lr)}function jg(ie,he,Te,Me,Be,st,Mt){var Bt=ut(function(Jt){var Bn=Be[Jt],An=Bn.level!=1;return qt(Lo(ie,gn(Te,An?Bn.to:Bn.from,An?"before":"after"),"line",he,Me),st,Mt,!0)},0,Be.length-1),Dt=Be[Bt];if(Bt>0){var Zt=Dt.level!=1,vn=Lo(ie,gn(Te,Zt?Dt.from:Dt.to,Zt?"after":"before"),"line",he,Me);qt(vn,st,Mt,!0)&&vn.top>Mt&&(Dt=Be[Bt-1])}return Dt}function Ig(ie,he,Te,Me,Be,st,Mt){var Bt=Wr(ie,he,Me,Mt),Dt=Bt.begin,Zt=Bt.end;/\s/.test(he.text.charAt(Zt-1))&&Zt--;for(var vn=null,Jt=null,Bn=0;Bn<Be.length;Bn++){var An=Be[Bn];if(!(An.from>=Zt||An.to<=Dt)){var ir=An.level!=1,lr=Fs(ie,Me,ir?Math.min(Zt,An.to)-1:Math.max(Dt,An.from)).right,br=lr<st?st-lr+1e9:lr-st;(!vn||Jt>br)&&(vn=An,Jt=br)}}return vn||(vn=Be[Be.length-1]),vn.from<Dt&&(vn={from:Dt,to:vn.to,level:vn.level}),vn.to>Zt&&(vn={from:vn.from,to:Zt,level:vn.level}),vn}var ou;function au(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(ou==null){ou=Oe("pre",null,"CodeMirror-line-like");for(var he=0;he<49;++he)ou.appendChild(document.createTextNode("x")),ou.appendChild(Oe("br"));ou.appendChild(document.createTextNode("x"))}ke(ie.measure,ou);var Te=ou.offsetHeight/50;return Te>3&&(ie.cachedTextHeight=Te),Le(ie.measure),Te||1}function yc(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var he=Oe("span","xxxxxxxxxx"),Te=Oe("pre",[he],"CodeMirror-line-like");ke(ie.measure,Te);var Me=he.getBoundingClientRect(),Be=(Me.right-Me.left)/10;return Be>2&&(ie.cachedCharWidth=Be),Be||10}function _d(ie){for(var he=ie.display,Te={},Me={},Be=he.gutters.clientLeft,st=he.gutters.firstChild,Mt=0;st;st=st.nextSibling,++Mt){var Bt=ie.display.gutterSpecs[Mt].className;Te[Bt]=st.offsetLeft+st.clientLeft+Be,Me[Bt]=st.clientWidth}return{fixedPos:Wh(he),gutterTotalWidth:he.gutters.offsetWidth,gutterLeft:Te,gutterWidth:Me,wrapperWidth:he.wrapper.clientWidth}}function Wh(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function jo(ie){var he=au(ie.display),Te=ie.options.lineWrapping,Me=Te&&Math.max(5,ie.display.scroller.clientWidth/yc(ie.display)-3);return function(Be){if(Wn(ie.doc,Be))return 0;var st=0;if(Be.widgets)for(var Mt=0;Mt<Be.widgets.length;Mt++)Be.widgets[Mt].height&&(st+=Be.widgets[Mt].height);return Te?st+(Math.ceil(Be.text.length/Me)||1)*he:st+he}}function di(ie){var he=ie.doc,Te=jo(ie);he.iter(function(Me){var Be=Te(Me);Be!=Me.height&&On(Me,Be)})}function es(ie,he,Te,Me){var Be=ie.display;if(!Te&&xr(he).getAttribute("cm-not-content")=="true")return null;var st,Mt,Bt=Be.lineSpace.getBoundingClientRect();try{st=he.clientX-Bt.left,Mt=he.clientY-Bt.top}catch(Jt){return null}var Dt=Rd(ie,st,Mt),Zt;if(Me&&Dt.xRel>0&&(Zt=rn(ie.doc,Dt.line).text).length==Dt.ch){var vn=qe(Zt,Zt.length,ie.options.tabSize)-Zt.length;Dt=gn(Dt.line,Math.max(0,Math.round((st-iu(ie.display).left)/yc(ie.display))-vn))}return Dt}function Rs(ie,he){if(he>=ie.display.viewTo||(he-=ie.display.viewFrom,he<0))return null;for(var Te=ie.display.view,Me=0;Me<Te.length;Me++)if(he-=Te[Me].size,he<0)return Me}function Io(ie,he,Te,Me){he==null&&(he=ie.doc.first),Te==null&&(Te=ie.doc.first+ie.doc.size),Me||(Me=0);var Be=ie.display;if(Me&&Te<Be.viewTo&&(Be.updateLineNumbers==null||Be.updateLineNumbers>he)&&(Be.updateLineNumbers=he),ie.curOp.viewChanged=!0,he>=Be.viewTo)Tn&&Lr(ie.doc,he)<Be.viewTo&&Qo(ie);else if(Te<=Be.viewFrom)Tn&&kr(ie.doc,Te+Me)>Be.viewFrom?Qo(ie):(Be.viewFrom+=Me,Be.viewTo+=Me);else if(he<=Be.viewFrom&&Te>=Be.viewTo)Qo(ie);else if(he<=Be.viewFrom){var st=cs(ie,Te,Te+Me,1);st?(Be.view=Be.view.slice(st.index),Be.viewFrom=st.lineN,Be.viewTo+=Me):Qo(ie)}else if(Te>=Be.viewTo){var Mt=cs(ie,he,he,-1);Mt?(Be.view=Be.view.slice(0,Mt.index),Be.viewTo=Mt.lineN):Qo(ie)}else{var Bt=cs(ie,he,he,-1),Dt=cs(ie,Te,Te+Me,1);Bt&&Dt?(Be.view=Be.view.slice(0,Bt.index).concat(yi(ie,Bt.lineN,Dt.lineN)).concat(Be.view.slice(Dt.index)),Be.viewTo+=Me):Qo(ie)}var Zt=Be.externalMeasured;Zt&&(Te<Zt.lineN?Zt.lineN+=Me:he<Zt.lineN+Zt.size&&(Be.externalMeasured=null))}function Ri(ie,he,Te){ie.curOp.viewChanged=!0;var Me=ie.display,Be=ie.display.externalMeasured;if(Be&&he>=Be.lineN&&he<Be.lineN+Be.size&&(Me.externalMeasured=null),!(he<Me.viewFrom||he>=Me.viewTo)){var st=Me.view[Rs(ie,he)];if(st.node!=null){var Mt=st.changes||(st.changes=[]);gt(Mt,Te)==-1&&Mt.push(Te)}}}function Qo(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function cs(ie,he,Te,Me){var Be=Rs(ie,he),st,Mt=ie.display.view;if(!Tn||Te==ie.doc.first+ie.doc.size)return{index:Be,lineN:Te};for(var Bt=ie.display.viewFrom,Dt=0;Dt<Be;Dt++)Bt+=Mt[Dt].size;if(Bt!=he){if(Me>0){if(Be==Mt.length-1)return null;st=Bt+Mt[Be].size-he,Be++}else st=Bt-he;he+=st,Te+=st}for(;Lr(ie.doc,Te)!=Te;){if(Be==(Me<0?0:Mt.length-1))return null;Te+=Me*Mt[Be-(Me<0?1:0)].size,Be+=Me}return{index:Be,lineN:Te}}function mo(ie,he,Te){var Me=ie.display,Be=Me.view;Be.length==0||he>=Me.viewTo||Te<=Me.viewFrom?(Me.view=yi(ie,he,Te),Me.viewFrom=he):(Me.viewFrom>he?Me.view=yi(ie,he,Me.viewFrom).concat(Me.view):Me.viewFrom<he&&(Me.view=Me.view.slice(Rs(ie,he))),Me.viewFrom=he,Me.viewTo<Te?Me.view=Me.view.concat(yi(ie,Me.viewTo,Te)):Me.viewTo>Te&&(Me.view=Me.view.slice(0,Rs(ie,Te)))),Me.viewTo=Te}function ws(ie){for(var he=ie.display.view,Te=0,Me=0;Me<he.length;Me++){var Be=he[Me];!Be.hidden&&(!Be.node||Be.changes)&&++Te}return Te}function ua(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function Mu(ie,he){he===void 0&&(he=!0);for(var Te=ie.doc,Me={},Be=Me.cursors=document.createDocumentFragment(),st=Me.selection=document.createDocumentFragment(),Mt=0;Mt<Te.sel.ranges.length;Mt++)if(!(!he&&Mt==Te.sel.primIndex)){var Bt=Te.sel.ranges[Mt];if(!(Bt.from().line>=ie.display.viewTo||Bt.to().line<ie.display.viewFrom)){var Dt=Bt.empty();(Dt||ie.options.showCursorWhenSelecting)&&$i(ie,Bt.head,Be),Dt||Zi(ie,Bt,st)}}return Me}function $i(ie,he,Te){var Me=Lo(ie,he,"div",null,null,!ie.options.singleCursorHeightPerLine),Be=Te.appendChild(Oe("div","\xA0","CodeMirror-cursor"));if(Be.style.left=Me.left+"px",Be.style.top=Me.top+"px",Be.style.height=Math.max(0,Me.bottom-Me.top)*ie.options.cursorHeight+"px",Me.other){var st=Te.appendChild(Oe("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));st.style.display="",st.style.left=Me.other.left+"px",st.style.top=Me.other.top+"px",st.style.height=(Me.other.bottom-Me.other.top)*.85+"px"}}function ts(ie,he){return ie.top-he.top||ie.left-he.left}function Zi(ie,he,Te){var Me=ie.display,Be=ie.doc,st=document.createDocumentFragment(),Mt=iu(ie.display),Bt=Mt.left,Dt=Math.max(Me.sizerWidth,xs(ie)-Me.sizer.offsetLeft)-Mt.right,Zt=Be.direction=="ltr";function vn(Ur,si,ki,Hr){si<0&&(si=0),si=Math.round(si),Hr=Math.round(Hr),st.appendChild(Oe("div",null,"CodeMirror-selected","position: absolute; left: "+Ur+`px;
|
|
|
top: `+si+"px; width: "+(ki==null?Dt-Ur:ki)+`px;
|
|
|
height: `+(Hr-si)+"px"))}function Jt(Ur,si,ki){var Hr=rn(Be,Ur),zi=Hr.text.length,Do,da;function Ko(oa,Es){return Bs(ie,gn(Ur,oa),"div",Hr,Es)}function fs(oa,Es,Ba){var aa=Qf(ie,Hr,null,oa),to=Es=="ltr"==(Ba=="after")?"left":"right",$o=Ba=="after"?aa.begin:aa.end-(/\s/.test(Hr.text.charAt(aa.end-1))?2:1);return Ko($o,to)[to]}var Wa=yt(Hr,Be.direction);return We(Wa,si||0,ki==null?zi:ki,function(oa,Es,Ba,aa){var to=Ba=="ltr",$o=Ko(oa,to?"left":"right"),Ea=Ko(Es-1,to?"right":"left"),Ra=si==null&&oa==0,fl=ki==null&&Es==zi,Vo=aa==0,tl=!Wa||aa==Wa.length-1;if(Ea.top-$o.top<=3){var Jo=(Zt?Ra:fl)&&Vo,fd=(Zt?fl:Ra)&&tl,Hs=Jo?Bt:(to?$o:Ea).left,Ms=fd?Dt:(to?Ea:$o).right;vn(Hs,$o.top,Ms-Hs,$o.bottom)}else{var ps,xo,Ma,Ul;to?(ps=Zt&&Ra&&Vo?Bt:$o.left,xo=Zt?Dt:fs(oa,Ba,"before"),Ma=Zt?Bt:fs(Es,Ba,"after"),Ul=Zt&&fl&&tl?Dt:Ea.right):(ps=Zt?fs(oa,Ba,"before"):Bt,xo=!Zt&&Ra&&Vo?Dt:$o.right,Ma=!Zt&&fl&&tl?Bt:Ea.left,Ul=Zt?fs(Es,Ba,"after"):Dt),vn(ps,$o.top,xo-ps,$o.bottom),$o.bottom<Ea.top&&vn(Bt,$o.bottom,null,Ea.top),vn(Ma,Ea.top,Ul-Ma,Ea.bottom)}(!Do||ts($o,Do)<0)&&(Do=$o),ts(Ea,Do)<0&&(Do=Ea),(!da||ts($o,da)<0)&&(da=$o),ts(Ea,da)<0&&(da=Ea)}),{start:Do,end:da}}var Bn=he.from(),An=he.to();if(Bn.line==An.line)Jt(Bn.line,Bn.ch,An.ch);else{var ir=rn(Be,Bn.line),lr=rn(Be,An.line),br=Vr(ir)==Vr(lr),Dr=Jt(Bn.line,Bn.ch,br?ir.text.length+1:null).end,ti=Jt(An.line,br?0:null,An.ch).start;br&&(Dr.top<ti.top-2?(vn(Dr.right,Dr.top,null,Dr.bottom),vn(Bt,ti.top,ti.left,ti.bottom)):vn(Dr.right,Dr.top,ti.left-Dr.right,Dr.bottom)),Dr.bottom<ti.top&&vn(Bt,Dr.bottom,null,ti.top)}Te.appendChild(st)}function lo(ie){if(ie.state.focused){var he=ie.display;clearInterval(he.blinker);var Te=!0;he.cursorDiv.style.visibility="",ie.options.cursorBlinkRate>0?he.blinker=setInterval(function(){ie.hasFocus()||Sc(ie),he.cursorDiv.style.visibility=(Te=!Te)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(he.cursorDiv.style.visibility="hidden")}}function Eo(ie){ie.state.focused||(ie.display.input.focus(),Ji(ie))}function _o(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,Sc(ie))},100)}function Ji(ie,he){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(It(ie,"focus",ie,he),ie.state.focused=!0,Ke(ie.display.wrapper,"CodeMirror-focused"),!ie.curOp&&ie.display.selForContextMenu!=ie.doc.sel&&(ie.display.input.reset(),fe&&setTimeout(function(){return ie.display.input.reset(!0)},20)),ie.display.input.receivedFocus()),lo(ie))}function Sc(ie,he){ie.state.delayingBlurEvent||(ie.state.focused&&(It(ie,"blur",ie,he),ie.state.focused=!1,je(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function ci(ie){for(var he=ie.display,Te=he.lineDiv.offsetTop,Me=0;Me<he.view.length;Me++){var Be=he.view[Me],st=ie.options.lineWrapping,Mt=void 0,Bt=0;if(!Be.hidden){if(Ne&&ve<8){var Dt=Be.node.offsetTop+Be.node.offsetHeight;Mt=Dt-Te,Te=Dt}else{var Zt=Be.node.getBoundingClientRect();Mt=Zt.bottom-Zt.top,!st&&Be.text.firstChild&&(Bt=Be.text.firstChild.getBoundingClientRect().right-Zt.left-1)}var vn=Be.line.height-Mt;if((vn>.005||vn<-.005)&&(On(Be.line,Mt),Dg(Be.line),Be.rest))for(var Jt=0;Jt<Be.rest.length;Jt++)Dg(Be.rest[Jt]);if(Bt>ie.display.sizerWidth){var Bn=Math.ceil(Bt/yc(ie.display));Bn>ie.display.maxLineLength&&(ie.display.maxLineLength=Bn,ie.display.maxLine=Be.line,ie.display.maxLineChanged=!0)}}}}function Dg(ie){if(ie.widgets)for(var he=0;he<ie.widgets.length;++he){var Te=ie.widgets[he],Me=Te.node.parentNode;Me&&(Te.height=Me.offsetHeight)}}function Wi(ie,he,Te){var Me=Te&&Te.top!=null?Math.max(0,Te.top):ie.scroller.scrollTop;Me=Math.floor(Me-Qa(ie));var Be=Te&&Te.bottom!=null?Te.bottom:Me+ie.wrapper.clientHeight,st=xn(he,Me),Mt=xn(he,Be);if(Te&&Te.ensure){var Bt=Te.ensure.from.line,Dt=Te.ensure.to.line;Bt<st?(st=Bt,Mt=xn(he,vi(rn(he,Bt))+ie.wrapper.clientHeight)):Math.min(Dt,he.lastLine())>=Mt&&(st=xn(he,vi(rn(he,Dt))-ie.wrapper.clientHeight),Mt=Dt)}return{from:st,to:Math.max(Mt,st+1)}}function Fg(ie,he){if(!Ut(ie,"scrollCursorIntoView")){var Te=ie.display,Me=Te.sizer.getBoundingClientRect(),Be=null;if(he.top+Me.top<0?Be=!0:he.bottom+Me.top>(window.innerHeight||document.documentElement.clientHeight)&&(Be=!1),Be!=null&&!Se){var st=Oe("div","\u200B",null,`position: absolute;
|
|
|
top: `+(he.top-Te.viewOffset-Qa(ie.display))+`px;
|
|
|
height: `+(he.bottom-he.top+qa(ie)+Te.barHeight)+`px;
|
|
|
left: `+he.left+"px; width: "+Math.max(2,he.right-he.left)+"px;");ie.display.lineSpace.appendChild(st),st.scrollIntoView(Be),ie.display.lineSpace.removeChild(st)}}}function sh(ie,he,Te,Me){Me==null&&(Me=0);var Be;!ie.options.lineWrapping&&he==Te&&(he=he.ch?gn(he.line,he.sticky=="before"?he.ch-1:he.ch,"after"):he,Te=he.sticky=="before"?gn(he.line,he.ch+1,"before"):he);for(var st=0;st<5;st++){var Mt=!1,Bt=Lo(ie,he),Dt=!Te||Te==he?Bt:Lo(ie,Te);Be={left:Math.min(Bt.left,Dt.left),top:Math.min(Bt.top,Dt.top)-Me,right:Math.max(Bt.left,Dt.left),bottom:Math.max(Bt.bottom,Dt.bottom)+Me};var Zt=qf(ie,Be),vn=ie.doc.scrollTop,Jt=ie.doc.scrollLeft;if(Zt.scrollTop!=null&&(wc(ie,Zt.scrollTop),Math.abs(ie.doc.scrollTop-vn)>1&&(Mt=!0)),Zt.scrollLeft!=null&&(lu(ie,Zt.scrollLeft),Math.abs(ie.doc.scrollLeft-Jt)>1&&(Mt=!0)),!Mt)break}return Be}function Kh(ie,he){var Te=qf(ie,he);Te.scrollTop!=null&&wc(ie,Te.scrollTop),Te.scrollLeft!=null&&lu(ie,Te.scrollLeft)}function qf(ie,he){var Te=ie.display,Me=au(ie.display);he.top<0&&(he.top=0);var Be=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:Te.scroller.scrollTop,st=dc(ie),Mt={};he.bottom-he.top>st&&(he.bottom=he.top+st);var Bt=ie.doc.height+Fl(Te),Dt=he.top<Me,Zt=he.bottom>Bt-Me;if(he.top<Be)Mt.scrollTop=Dt?0:he.top;else if(he.bottom>Be+st){var vn=Math.min(he.top,(Zt?Bt:he.bottom)-st);vn!=Be&&(Mt.scrollTop=vn)}var Jt=ie.options.fixedGutter?0:Te.gutters.offsetWidth,Bn=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:Te.scroller.scrollLeft-Jt,An=xs(ie)-Te.gutters.offsetWidth,ir=he.right-he.left>An;return ir&&(he.right=he.left+An),he.left<10?Mt.scrollLeft=0:he.left<Bn?Mt.scrollLeft=Math.max(0,he.left+Jt-(ir?0:10)):he.right>An+Bn-3&&(Mt.scrollLeft=he.right+(ir?0:10)-An),Mt}function zd(ie,he){he!=null&&(Rl(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+he)}function su(ie){Rl(ie);var he=ie.getCursor();ie.curOp.scrollToPos={from:he,to:he,margin:ie.options.cursorScrollMargin}}function xc(ie,he,Te){(he!=null||Te!=null)&&Rl(ie),he!=null&&(ie.curOp.scrollLeft=he),Te!=null&&(ie.curOp.scrollTop=Te)}function Qi(ie,he){Rl(ie),ie.curOp.scrollToPos=he}function Rl(ie){var he=ie.curOp.scrollToPos;if(he){ie.curOp.scrollToPos=null;var Te=Fd(ie,he.from),Me=Fd(ie,he.to);Gd(ie,Te,Me,he.margin)}}function Gd(ie,he,Te,Me){var Be=qf(ie,{left:Math.min(he.left,Te.left),top:Math.min(he.top,Te.top)-Me,right:Math.max(he.right,Te.right),bottom:Math.max(he.bottom,Te.bottom)+Me});xc(ie,Be.scrollLeft,Be.scrollTop)}function wc(ie,he){Math.abs(ie.doc.scrollTop-he)<2||(Qe||Nu(ie,{top:he}),ep(ie,he,!0),Qe&&Nu(ie),lh(ie,100))}function ep(ie,he,Te){he=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,he)),!(ie.display.scroller.scrollTop==he&&!Te)&&(ie.doc.scrollTop=he,ie.display.scrollbars.setScrollTop(he),ie.display.scroller.scrollTop!=he&&(ie.display.scroller.scrollTop=he))}function lu(ie,he,Te,Me){he=Math.max(0,Math.min(he,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((Te?he==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-he)<2)&&!Me)&&(ie.doc.scrollLeft=he,Wd(ie),ie.display.scroller.scrollLeft!=he&&(ie.display.scroller.scrollLeft=he),ie.display.scrollbars.setScrollLeft(he))}function Ys(ie){var he=ie.display,Te=he.gutters.offsetWidth,Me=Math.round(ie.doc.height+Fl(ie.display));return{clientHeight:he.scroller.clientHeight,viewHeight:he.wrapper.clientHeight,scrollWidth:he.scroller.scrollWidth,clientWidth:he.scroller.clientWidth,viewWidth:he.wrapper.clientWidth,barLeft:ie.options.fixedGutter?Te:0,docHeight:Me,scrollHeight:Me+qa(ie)+he.barHeight,nativeBarWidth:he.nativeBarWidth,gutterWidth:Te}}var Tu=function(ie,he,Te){this.cm=Te;var Me=this.vert=Oe("div",[Oe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Be=this.horiz=Oe("div",[Oe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");Me.tabIndex=Be.tabIndex=-1,ie(Me),ie(Be),jt(Me,"scroll",function(){Me.clientHeight&&he(Me.scrollTop,"vertical")}),jt(Be,"scroll",function(){Be.clientWidth&&he(Be.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ne&&ve<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Tu.prototype.update=function(ie){var he=ie.scrollWidth>ie.clientWidth+1,Te=ie.scrollHeight>ie.clientHeight+1,Me=ie.nativeBarWidth;if(Te){this.vert.style.display="block",this.vert.style.bottom=he?Me+"px":"0";var Be=ie.viewHeight-(he?Me:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+Be)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(he){this.horiz.style.display="block",this.horiz.style.right=Te?Me+"px":"0",this.horiz.style.left=ie.barLeft+"px";var st=ie.viewWidth-ie.barLeft-(Te?Me:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+st)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&ie.clientHeight>0&&(Me==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:Te?Me:0,bottom:he?Me:0}},Tu.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Tu.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Tu.prototype.zeroWidthHack=function(){var ie=ae&&!me?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new at,this.disableVert=new at},Tu.prototype.enableZeroWidthBar=function(ie,he,Te){ie.style.pointerEvents="auto";function Me(){var Be=ie.getBoundingClientRect(),st=Te=="vert"?document.elementFromPoint(Be.right-1,(Be.top+Be.bottom)/2):document.elementFromPoint((Be.right+Be.left)/2,Be.bottom-1);st!=ie?ie.style.pointerEvents="none":he.set(1e3,Me)}he.set(1e3,Me)},Tu.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var Cl=function(){};Cl.prototype.update=function(){return{bottom:0,right:0}},Cl.prototype.setScrollLeft=function(){},Cl.prototype.setScrollTop=function(){},Cl.prototype.clear=function(){};function Lu(ie,he){he||(he=Ys(ie));var Te=ie.display.barWidth,Me=ie.display.barHeight;Hd(ie,he);for(var Be=0;Be<4&&Te!=ie.display.barWidth||Me!=ie.display.barHeight;Be++)Te!=ie.display.barWidth&&ie.options.lineWrapping&&ci(ie),Hd(ie,Ys(ie)),Te=ie.display.barWidth,Me=ie.display.barHeight}function Hd(ie,he){var Te=ie.display,Me=Te.scrollbars.update(he);Te.sizer.style.paddingRight=(Te.barWidth=Me.right)+"px",Te.sizer.style.paddingBottom=(Te.barHeight=Me.bottom)+"px",Te.heightForcer.style.borderBottom=Me.bottom+"px solid transparent",Me.right&&Me.bottom?(Te.scrollbarFiller.style.display="block",Te.scrollbarFiller.style.height=Me.bottom+"px",Te.scrollbarFiller.style.width=Me.right+"px"):Te.scrollbarFiller.style.display="",Me.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(Te.gutterFiller.style.display="block",Te.gutterFiller.style.height=Me.bottom+"px",Te.gutterFiller.style.width=he.gutterWidth+"px"):Te.gutterFiller.style.display=""}var tp={native:Tu,null:Cl};function np(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&je(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new tp[ie.options.scrollbarStyle](function(he){ie.display.wrapper.insertBefore(he,ie.display.scrollbarFiller),jt(he,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),he.setAttribute("cm-not-content","true")},function(he,Te){Te=="horizontal"?lu(ie,he):wc(ie,he)},ie),ie.display.scrollbars.addClass&&Ke(ie.display.wrapper,ie.display.scrollbars.addClass)}var Bg=0;function ku(ie){ie.curOp={cm:ie,viewChanged:!1,startHeight:ie.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Bg},ma(ie.curOp)}function Ou(ie){var he=ie.curOp;he&&Li(he,function(Te){for(var Me=0;Me<Te.ops.length;Me++)Te.ops[Me].cm.curOp=null;Jv(Te)})}function Jv(ie){for(var he=ie.ops,Te=0;Te<he.length;Te++)Qv(he[Te]);for(var Me=0;Me<he.length;Me++)qv(he[Me]);for(var Be=0;Be<he.length;Be++)Rg(he[Be]);for(var st=0;st<he.length;st++)Zo(he[st]);for(var Mt=0;Mt<he.length;Mt++)Au(he[Mt])}function Qv(ie){var he=ie.cm,Te=he.display;_g(he),ie.updateMaxLine&&Ti(he),ie.mustUpdate=ie.viewChanged||ie.forceUpdate||ie.scrollTop!=null||ie.scrollToPos&&(ie.scrollToPos.from.line<Te.viewFrom||ie.scrollToPos.to.line>=Te.viewTo)||Te.maxLineChanged&&he.options.lineWrapping,ie.update=ie.mustUpdate&&new bc(he,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function qv(ie){ie.updatedDisplay=ie.mustUpdate&&Ud(ie.cm,ie.update)}function Rg(ie){var he=ie.cm,Te=he.display;ie.updatedDisplay&&ci(he),ie.barMeasure=Ys(he),Te.maxLineChanged&&!he.options.lineWrapping&&(ie.adjustWidthTo=pc(he,Te.maxLine,Te.maxLine.text.length).left+3,he.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(Te.scroller.clientWidth,Te.sizer.offsetLeft+ie.adjustWidthTo+qa(he)+he.display.barWidth),ie.maxScrollLeft=Math.max(0,Te.sizer.offsetLeft+ie.adjustWidthTo-xs(he))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=Te.input.prepareSelection())}function Zo(ie){var he=ie.cm;ie.adjustWidthTo!=null&&(he.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft<he.doc.scrollLeft&&lu(he,Math.min(he.display.scroller.scrollLeft,ie.maxScrollLeft),!0),he.display.maxLineChanged=!1);var Te=ie.focus&&ie.focus==ze();ie.preparedSelection&&he.display.input.showSelection(ie.preparedSelection,Te),(ie.updatedDisplay||ie.startHeight!=he.doc.height)&&Lu(he,ie.barMeasure),ie.updatedDisplay&&Iu(he,ie.barMeasure),ie.selectionChanged&&lo(he),he.state.focused&&ie.updateInput&&he.display.input.reset(ie.typing),Te&&Eo(ie.cm)}function Au(ie){var he=ie.cm,Te=he.display,Me=he.doc;if(ie.updatedDisplay&&uo(he,ie.update),Te.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(Te.wheelStartX=Te.wheelStartY=null),ie.scrollTop!=null&&ep(he,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&lu(he,ie.scrollLeft,!0,!0),ie.scrollToPos){var Be=sh(he,Cn(Me,ie.scrollToPos.from),Cn(Me,ie.scrollToPos.to),ie.scrollToPos.margin);Fg(he,Be)}var st=ie.maybeHiddenMarkers,Mt=ie.maybeUnhiddenMarkers;if(st)for(var Bt=0;Bt<st.length;++Bt)st[Bt].lines.length||It(st[Bt],"hide");if(Mt)for(var Dt=0;Dt<Mt.length;++Dt)Mt[Dt].lines.length&&It(Mt[Dt],"unhide");Te.wrapper.offsetHeight&&(Me.scrollTop=he.display.scroller.scrollTop),ie.changeObjs&&It(he,"changes",he,ie.changeObjs),ie.update&&ie.update.finish()}function no(ie,he){if(ie.curOp)return he();ku(ie);try{return he()}finally{Ou(ie)}}function ca(ie,he){return function(){if(ie.curOp)return he.apply(ie,arguments);ku(ie);try{return he.apply(ie,arguments)}finally{Ou(ie)}}}function xa(ie){return function(){if(this.curOp)return ie.apply(this,arguments);ku(this);try{return ie.apply(this,arguments)}finally{Ou(this)}}}function wa(ie){return function(){var he=this.cm;if(!he||he.curOp)return ie.apply(this,arguments);ku(he);try{return ie.apply(this,arguments)}finally{Ou(he)}}}function lh(ie,he){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(he,pt(ba,ie))}function ba(ie){var he=ie.doc;if(!(he.highlightFrontier>=ie.display.viewTo)){var Te=+new Date+ie.options.workTime,Me=Or(ie,he.highlightFrontier),Be=[];he.iter(Me.line,Math.min(he.first+he.size,ie.display.viewTo+500),function(st){if(Me.line>=ie.display.viewFrom){var Mt=st.styles,Bt=st.text.length>ie.options.maxHighlightLength?nn(he.mode,Me.state):null,Dt=fr(ie,st,Me,!0);Bt&&(Me.state=Bt),st.styles=Dt.styles;var Zt=st.styleClasses,vn=Dt.classes;vn?st.styleClasses=vn:Zt&&(st.styleClasses=null);for(var Jt=!Mt||Mt.length!=st.styles.length||Zt!=vn&&(!Zt||!vn||Zt.bgClass!=vn.bgClass||Zt.textClass!=vn.textClass),Bn=0;!Jt&&Bn<Mt.length;++Bn)Jt=Mt[Bn]!=st.styles[Bn];Jt&&Be.push(Me.line),st.stateAfter=Me.save(),Me.nextLine()}else st.text.length<=ie.options.maxHighlightLength&&fn(ie,st.text,Me),st.stateAfter=Me.line%5==0?Me.save():null,Me.nextLine();if(+new Date>Te)return lh(ie,ie.options.workDelay),!0}),he.highlightFrontier=Me.line,he.modeFrontier=Math.max(he.modeFrontier,Me.line),Be.length&&no(ie,function(){for(var st=0;st<Be.length;st++)Ri(ie,Be[st],"text")})}}var bc=function(ie,he,Te){var Me=ie.display;this.viewport=he,this.visible=Wi(Me,ie.doc,he),this.editorIsHidden=!Me.wrapper.offsetWidth,this.wrapperHeight=Me.wrapper.clientHeight,this.wrapperWidth=Me.wrapper.clientWidth,this.oldDisplayWidth=xs(ie),this.force=Te,this.dims=_d(ie),this.events=[]};bc.prototype.signal=function(ie,he){ln(ie,he)&&this.events.push(arguments)},bc.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)It.apply(null,this.events[ie])};function _g(ie){var he=ie.display;!he.scrollbarsClipped&&he.scroller.offsetWidth&&(he.nativeBarWidth=he.scroller.offsetWidth-he.scroller.clientWidth,he.heightForcer.style.height=qa(ie)+"px",he.sizer.style.marginBottom=-he.nativeBarWidth+"px",he.sizer.style.borderRightWidth=qa(ie)+"px",he.scrollbarsClipped=!0)}function zg(ie){if(ie.hasFocus())return null;var he=ze();if(!he||!Ze(ie.display.lineDiv,he))return null;var Te={activeElt:he};if(window.getSelection){var Me=window.getSelection();Me.anchorNode&&Me.extend&&Ze(ie.display.lineDiv,Me.anchorNode)&&(Te.anchorNode=Me.anchorNode,Te.anchorOffset=Me.anchorOffset,Te.focusNode=Me.focusNode,Te.focusOffset=Me.focusOffset)}return Te}function hs(ie){if(!(!ie||!ie.activeElt||ie.activeElt==ze())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&Ze(document.body,ie.anchorNode)&&Ze(document.body,ie.focusNode))){var he=window.getSelection(),Te=document.createRange();Te.setEnd(ie.anchorNode,ie.anchorOffset),Te.collapse(!1),he.removeAllRanges(),he.addRange(Te),he.extend(ie.focusNode,ie.focusOffset)}}function Ud(ie,he){var Te=ie.display,Me=ie.doc;if(he.editorIsHidden)return Qo(ie),!1;if(!he.force&&he.visible.from>=Te.viewFrom&&he.visible.to<=Te.viewTo&&(Te.updateLineNumbers==null||Te.updateLineNumbers>=Te.viewTo)&&Te.renderedView==Te.view&&ws(ie)==0)return!1;ra(ie)&&(Qo(ie),he.dims=_d(ie));var Be=Me.first+Me.size,st=Math.max(he.visible.from-ie.options.viewportMargin,Me.first),Mt=Math.min(Be,he.visible.to+ie.options.viewportMargin);Te.viewFrom<st&&st-Te.viewFrom<20&&(st=Math.max(Me.first,Te.viewFrom)),Te.viewTo>Mt&&Te.viewTo-Mt<20&&(Mt=Math.min(Be,Te.viewTo)),Tn&&(st=Lr(ie.doc,st),Mt=kr(ie.doc,Mt));var Bt=st!=Te.viewFrom||Mt!=Te.viewTo||Te.lastWrapHeight!=he.wrapperHeight||Te.lastWrapWidth!=he.wrapperWidth;mo(ie,st,Mt),Te.viewOffset=vi(rn(ie.doc,Te.viewFrom)),ie.display.mover.style.top=Te.viewOffset+"px";var Dt=ws(ie);if(!Bt&&Dt==0&&!he.force&&Te.renderedView==Te.view&&(Te.updateLineNumbers==null||Te.updateLineNumbers>=Te.viewTo))return!1;var Zt=zg(ie);return Dt>4&&(Te.lineDiv.style.display="none"),rp(ie,Te.updateLineNumbers,he.dims),Dt>4&&(Te.lineDiv.style.display=""),Te.renderedView=Te.view,hs(Zt),Le(Te.cursorDiv),Le(Te.selectionDiv),Te.gutters.style.height=Te.sizer.style.minHeight=0,Bt&&(Te.lastWrapHeight=he.wrapperHeight,Te.lastWrapWidth=he.wrapperWidth,lh(ie,400)),Te.updateLineNumbers=null,!0}function uo(ie,he){for(var Te=he.viewport,Me=!0;;Me=!1){if(!Me||!ie.options.lineWrapping||he.oldDisplayWidth==xs(ie)){if(Te&&Te.top!=null&&(Te={top:Math.min(ie.doc.height+Fl(ie.display)-dc(ie),Te.top)}),he.visible=Wi(ie.display,ie.doc,Te),he.visible.from>=ie.display.viewFrom&&he.visible.to<=ie.display.viewTo)break}else Me&&(he.visible=Wi(ie.display,ie.doc,Te));if(!Ud(ie,he))break;ci(ie);var Be=Ys(ie);ua(ie),Lu(ie,Be),Iu(ie,Be),he.force=!1}he.signal(ie,"update",ie),(ie.display.viewFrom!=ie.display.reportedViewFrom||ie.display.viewTo!=ie.display.reportedViewTo)&&(he.signal(ie,"viewportChange",ie,ie.display.viewFrom,ie.display.viewTo),ie.display.reportedViewFrom=ie.display.viewFrom,ie.display.reportedViewTo=ie.display.viewTo)}function Nu(ie,he){var Te=new bc(ie,he);if(Ud(ie,Te)){ci(ie),uo(ie,Te);var Me=Ys(ie);ua(ie),Lu(ie,Me),Iu(ie,Me),Te.finish()}}function rp(ie,he,Te){var Me=ie.display,Be=ie.options.lineNumbers,st=Me.lineDiv,Mt=st.firstChild;function Bt(ir){var lr=ir.nextSibling;return fe&&ae&&ie.display.currentWheelTarget==ir?ir.style.display="none":ir.parentNode.removeChild(ir),lr}for(var Dt=Me.view,Zt=Me.viewFrom,vn=0;vn<Dt.length;vn++){var Jt=Dt[vn];if(!Jt.hidden)if(!Jt.node||Jt.node.parentNode!=st){var Bn=ru(ie,Jt,Zt,Te);st.insertBefore(Bn,Mt)}else{for(;Mt!=Jt.node;)Mt=Bt(Mt);var An=Be&&he!=null&&he<=Zt&&Jt.lineNumber;Jt.changes&&(gt(Jt.changes,"gutter")>-1&&(An=!1),Oo(ie,Jt,Zt,Te)),An&&(Le(Jt.lineNumber),Jt.lineNumber.appendChild(document.createTextNode($n(ie.options,Zt)))),Mt=Jt.node.nextSibling}Zt+=Jt.size}for(;Mt;)Mt=Bt(Mt)}function ju(ie){var he=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=he+"px"}function Iu(ie,he){ie.display.sizer.style.minHeight=he.docHeight+"px",ie.display.heightForcer.style.top=he.docHeight+"px",ie.display.gutters.style.height=he.docHeight+ie.display.barHeight+qa(ie)+"px"}function Wd(ie){var he=ie.display,Te=he.view;if(!(!he.alignWidgets&&(!he.gutters.firstChild||!ie.options.fixedGutter))){for(var Me=Wh(he)-he.scroller.scrollLeft+ie.doc.scrollLeft,Be=he.gutters.offsetWidth,st=Me+"px",Mt=0;Mt<Te.length;Mt++)if(!Te[Mt].hidden){ie.options.fixedGutter&&(Te[Mt].gutter&&(Te[Mt].gutter.style.left=st),Te[Mt].gutterBackground&&(Te[Mt].gutterBackground.style.left=st));var Bt=Te[Mt].alignable;if(Bt)for(var Dt=0;Dt<Bt.length;Dt++)Bt[Dt].style.left=st}ie.options.fixedGutter&&(he.gutters.style.left=Me+Be+"px")}}function ra(ie){if(!ie.options.lineNumbers)return!1;var he=ie.doc,Te=$n(ie.options,he.first+he.size-1),Me=ie.display;if(Te.length!=Me.lineNumChars){var Be=Me.measure.appendChild(Oe("div",[Oe("div",Te)],"CodeMirror-linenumber CodeMirror-gutter-elt")),st=Be.firstChild.offsetWidth,Mt=Be.offsetWidth-st;return Me.lineGutter.style.width="",Me.lineNumInnerWidth=Math.max(st,Me.lineGutter.offsetWidth-Mt)+1,Me.lineNumWidth=Me.lineNumInnerWidth+Mt,Me.lineNumChars=Me.lineNumInnerWidth?Te.length:-1,Me.lineGutter.style.width=Me.lineNumWidth+"px",ju(ie.display),!0}return!1}function Pa(ie,he){for(var Te=[],Me=!1,Be=0;Be<ie.length;Be++){var st=ie[Be],Mt=null;if(typeof st!="string"&&(Mt=st.style,st=st.className),st=="CodeMirror-linenumbers")if(he)Me=!0;else continue;Te.push({className:st,style:Mt})}return he&&!Me&&Te.push({className:"CodeMirror-linenumbers",style:null}),Te}function Pc(ie){var he=ie.gutters,Te=ie.gutterSpecs;Le(he),ie.lineGutter=null;for(var Me=0;Me<Te.length;++Me){var Be=Te[Me],st=Be.className,Mt=Be.style,Bt=he.appendChild(Oe("div",null,"CodeMirror-gutter "+st));Mt&&(Bt.style.cssText=Mt),st=="CodeMirror-linenumbers"&&(ie.lineGutter=Bt,Bt.style.width=(ie.lineNumWidth||1)+"px")}he.style.display=Te.length?"":"none",ju(ie)}function _s(ie){Pc(ie.display),Io(ie),Wd(ie)}function Du(ie,he,Te,Me){var Be=this;this.input=Te,Be.scrollbarFiller=Oe("div",null,"CodeMirror-scrollbar-filler"),Be.scrollbarFiller.setAttribute("cm-not-content","true"),Be.gutterFiller=Oe("div",null,"CodeMirror-gutter-filler"),Be.gutterFiller.setAttribute("cm-not-content","true"),Be.lineDiv=Fe("div",null,"CodeMirror-code"),Be.selectionDiv=Oe("div",null,null,"position: relative; z-index: 1"),Be.cursorDiv=Oe("div",null,"CodeMirror-cursors"),Be.measure=Oe("div",null,"CodeMirror-measure"),Be.lineMeasure=Oe("div",null,"CodeMirror-measure"),Be.lineSpace=Fe("div",[Be.measure,Be.lineMeasure,Be.selectionDiv,Be.cursorDiv,Be.lineDiv],null,"position: relative; outline: none");var st=Fe("div",[Be.lineSpace],"CodeMirror-lines");Be.mover=Oe("div",[st],null,"position: relative"),Be.sizer=Oe("div",[Be.mover],"CodeMirror-sizer"),Be.sizerWidth=null,Be.heightForcer=Oe("div",null,null,"position: absolute; height: "+Ct+"px; width: 1px;"),Be.gutters=Oe("div",null,"CodeMirror-gutters"),Be.lineGutter=null,Be.scroller=Oe("div",[Be.sizer,Be.heightForcer,Be.gutters],"CodeMirror-scroll"),Be.scroller.setAttribute("tabIndex","-1"),Be.wrapper=Oe("div",[Be.scrollbarFiller,Be.gutterFiller,Be.scroller],"CodeMirror"),Ne&&ve<8&&(Be.gutters.style.zIndex=-1,Be.scroller.style.paddingRight=0),!fe&&!(Qe&&ee)&&(Be.scroller.draggable=!0),ie&&(ie.appendChild?ie.appendChild(Be.wrapper):ie(Be.wrapper)),Be.viewFrom=Be.viewTo=he.first,Be.reportedViewFrom=Be.reportedViewTo=he.first,Be.view=[],Be.renderedView=null,Be.externalMeasured=null,Be.viewOffset=0,Be.lastWrapHeight=Be.lastWrapWidth=0,Be.updateLineNumbers=null,Be.nativeBarWidth=Be.barHeight=Be.barWidth=0,Be.scrollbarsClipped=!1,Be.lineNumWidth=Be.lineNumInnerWidth=Be.lineNumChars=null,Be.alignWidgets=!1,Be.cachedCharWidth=Be.cachedTextHeight=Be.cachedPaddingH=null,Be.maxLine=null,Be.maxLineLength=0,Be.maxLineChanged=!1,Be.wheelDX=Be.wheelDY=Be.wheelStartX=Be.wheelStartY=null,Be.shift=!1,Be.selForContextMenu=null,Be.activeTouch=null,Be.gutterSpecs=Pa(Me.gutters,Me.lineNumbers),Pc(Be),Te.init(Be)}var bs=0,qo=null;Ne?qo=-.53:Qe?qo=15:Pe?qo=-.7:we&&(qo=-1/3);function El(ie){var he=ie.wheelDeltaX,Te=ie.wheelDeltaY;return he==null&&ie.detail&&ie.axis==ie.HORIZONTAL_AXIS&&(he=ie.detail),Te==null&&ie.detail&&ie.axis==ie.VERTICAL_AXIS?Te=ie.detail:Te==null&&(Te=ie.wheelDelta),{x:he,y:Te}}function zs(ie){var he=El(ie);return he.x*=qo,he.y*=qo,he}function Ca(ie,he){var Te=El(he),Me=Te.x,Be=Te.y,st=ie.display,Mt=st.scroller,Bt=Mt.scrollWidth>Mt.clientWidth,Dt=Mt.scrollHeight>Mt.clientHeight;if(Me&&Bt||Be&&Dt){if(Be&&ae&&fe){e:for(var Zt=he.target,vn=st.view;Zt!=Mt;Zt=Zt.parentNode)for(var Jt=0;Jt<vn.length;Jt++)if(vn[Jt].node==Zt){ie.display.currentWheelTarget=Zt;break e}}if(Me&&!Qe&&!ye&&qo!=null){Be&&Dt&&wc(ie,Math.max(0,Mt.scrollTop+Be*qo)),lu(ie,Math.max(0,Mt.scrollLeft+Me*qo)),(!Be||Be&&Dt)&&jn(he),st.wheelStartX=null;return}if(Be&&qo!=null){var Bn=Be*qo,An=ie.doc.scrollTop,ir=An+st.wrapper.clientHeight;Bn<0?An=Math.max(0,An+Bn-50):ir=Math.min(ie.doc.height,ir+Bn+50),Nu(ie,{top:An,bottom:ir})}bs<20&&(st.wheelStartX==null?(st.wheelStartX=Mt.scrollLeft,st.wheelStartY=Mt.scrollTop,st.wheelDX=Me,st.wheelDY=Be,setTimeout(function(){if(st.wheelStartX!=null){var lr=Mt.scrollLeft-st.wheelStartX,br=Mt.scrollTop-st.wheelStartY,Dr=br&&st.wheelDY&&br/st.wheelDY||lr&&st.wheelDX&&lr/st.wheelDX;st.wheelStartX=st.wheelStartY=null,Dr&&(qo=(qo*bs+Dr)/(bs+1),++bs)}},200)):(st.wheelDX+=Me,st.wheelDY+=Be))}}var Js=function(ie,he){this.ranges=ie,this.primIndex=he};Js.prototype.primary=function(){return this.ranges[this.primIndex]},Js.prototype.equals=function(ie){if(ie==this)return!0;if(ie.primIndex!=this.primIndex||ie.ranges.length!=this.ranges.length)return!1;for(var he=0;he<this.ranges.length;he++){var Te=this.ranges[he],Me=ie.ranges[he];if(!Qt(Te.anchor,Me.anchor)||!Qt(Te.head,Me.head))return!1}return!0},Js.prototype.deepCopy=function(){for(var ie=[],he=0;he<this.ranges.length;he++)ie[he]=new co(hn(this.ranges[he].anchor),hn(this.ranges[he].head));return new Js(ie,this.primIndex)},Js.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},Js.prototype.contains=function(ie,he){he||(he=ie);for(var Te=0;Te<this.ranges.length;Te++){var Me=this.ranges[Te];if(Sn(he,Me.from())>=0&&Sn(ie,Me.to())<=0)return Te}return-1};var co=function(ie,he){this.anchor=ie,this.head=he};co.prototype.from=function(){return cn(this.anchor,this.head)},co.prototype.to=function(){return dn(this.anchor,this.head)},co.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function dl(ie,he,Te){var Me=ie&&ie.options.selectionsMayTouch,Be=he[Te];he.sort(function(Bn,An){return Sn(Bn.from(),An.from())}),Te=gt(he,Be);for(var st=1;st<he.length;st++){var Mt=he[st],Bt=he[st-1],Dt=Sn(Bt.to(),Mt.from());if(Me&&!Mt.empty()?Dt>0:Dt>=0){var Zt=cn(Bt.from(),Mt.from()),vn=dn(Bt.to(),Mt.to()),Jt=Bt.empty()?Mt.from()==Mt.head:Bt.from()==Bt.head;st<=Te&&--Te,he.splice(--st,2,new co(Jt?vn:Zt,Jt?Zt:vn))}}return new Js(he,Te)}function uu(ie,he){return new Js([new co(ie,he||ie)],0)}function Fu(ie){return ie.text?gn(ie.from.line+ie.text.length-1,Et(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function Cc(ie,he){if(Sn(ie,he.from)<0)return ie;if(Sn(ie,he.to)<=0)return Fu(he);var Te=ie.line+he.text.length-(he.to.line-he.from.line)-1,Me=ie.ch;return ie.line==he.to.line&&(Me+=Fu(he).ch-he.to.ch),gn(Te,Me)}function Vh(ie,he){for(var Te=[],Me=0;Me<ie.sel.ranges.length;Me++){var Be=ie.sel.ranges[Me];Te.push(new co(Cc(Be.anchor,he),Cc(Be.head,he)))}return dl(ie.cm,Te,ie.sel.primIndex)}function uh(ie,he,Te){return ie.line==he.line?gn(Te.line,ie.ch-he.ch+Te.ch):gn(Te.line+(ie.line-he.line),ie.ch)}function Zh(ie,he,Te){for(var Me=[],Be=gn(ie.first,0),st=Be,Mt=0;Mt<he.length;Mt++){var Bt=he[Mt],Dt=uh(Bt.from,Be,st),Zt=uh(Fu(Bt),Be,st);if(Be=Bt.to,st=Zt,Te=="around"){var vn=ie.sel.ranges[Mt],Jt=Sn(vn.head,vn.anchor)<0;Me[Mt]=new co(Jt?Zt:Dt,Jt?Dt:Zt)}else Me[Mt]=new co(Dt,Dt)}return new Js(Me,ie.sel.primIndex)}function _i(ie){ie.doc.mode=$t(ie.options,ie.doc.modeOption),$h(ie)}function $h(ie){ie.doc.iter(function(he){he.stateAfter&&(he.stateAfter=null),he.styles&&(he.styles=null)}),ie.doc.modeFrontier=ie.doc.highlightFrontier=ie.doc.first,lh(ie,100),ie.state.modeGen++,ie.curOp&&Io(ie)}function ip(ie,he){return he.from.ch==0&&he.to.ch==0&&Et(he.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function Kd(ie,he,Te,Me){function Be(ti){return Te?Te[ti]:null}function st(ti,Ur,si){Gi(ti,Ur,si,Me),mr(ti,"change",ti,he)}function Mt(ti,Ur){for(var si=[],ki=ti;ki<Ur;++ki)si.push(new gi(Zt[ki],Be(ki),Me));return si}var Bt=he.from,Dt=he.to,Zt=he.text,vn=rn(ie,Bt.line),Jt=rn(ie,Dt.line),Bn=Et(Zt),An=Be(Zt.length-1),ir=Dt.line-Bt.line;if(he.full)ie.insert(0,Mt(0,Zt.length)),ie.remove(Zt.length,ie.size-Zt.length);else if(ip(ie,he)){var lr=Mt(0,Zt.length-1);st(Jt,Jt.text,An),ir&&ie.remove(Bt.line,ir),lr.length&&ie.insert(Bt.line,lr)}else if(vn==Jt)if(Zt.length==1)st(vn,vn.text.slice(0,Bt.ch)+Bn+vn.text.slice(Dt.ch),An);else{var br=Mt(1,Zt.length-1);br.push(new gi(Bn+vn.text.slice(Dt.ch),An,Me)),st(vn,vn.text.slice(0,Bt.ch)+Zt[0],Be(0)),ie.insert(Bt.line+1,br)}else if(Zt.length==1)st(vn,vn.text.slice(0,Bt.ch)+Zt[0]+Jt.text.slice(Dt.ch),Be(0)),ie.remove(Bt.line+1,ir);else{st(vn,vn.text.slice(0,Bt.ch)+Zt[0],Be(0)),st(Jt,Bn+Jt.text.slice(Dt.ch),An);var Dr=Mt(1,Zt.length-1);ir>1&&ie.remove(Bt.line+1,ir-1),ie.insert(Bt.line+1,Dr)}mr(ie,"change",ie,he)}function Ml(ie,he,Te){function Me(Be,st,Mt){if(Be.linked)for(var Bt=0;Bt<Be.linked.length;++Bt){var Dt=Be.linked[Bt];if(Dt.doc!=st){var Zt=Mt&&Dt.sharedHist;Te&&!Zt||(he(Dt.doc,Zt),Me(Dt.doc,Be,Zt))}}}Me(ie,null,!0)}function Vd(ie,he){if(he.cm)throw new Error("This document is already in use.");ie.doc=he,he.cm=ie,di(ie),_i(ie),Xh(ie),ie.options.lineWrapping||Ti(ie),ie.options.mode=he.modeOption,Io(ie)}function Xh(ie){(ie.doc.direction=="rtl"?Ke:je)(ie.display.lineDiv,"CodeMirror-rtl")}function e0(ie){no(ie,function(){Xh(ie),Io(ie)})}function ch(ie){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=ie||1}function Zd(ie,he){var Te={from:hn(he.from),to:Fu(he),text:yn(ie,he.from,he.to)};return Bu(ie,Te,he.from.line,he.to.line+1),Ml(ie,function(Me){return Bu(Me,Te,he.from.line,he.to.line+1)},!0),Te}function hh(ie){for(;ie.length;){var he=Et(ie);if(he.ranges)ie.pop();else break}}function Yh(ie,he){if(he)return hh(ie.done),Et(ie.done);if(ie.done.length&&!Et(ie.done).ranges)return Et(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),Et(ie.done)}function Jh(ie,he,Te,Me){var Be=ie.history;Be.undone.length=0;var st=+new Date,Mt,Bt;if((Be.lastOp==Me||Be.lastOrigin==he.origin&&he.origin&&(he.origin.charAt(0)=="+"&&Be.lastModTime>st-(ie.cm?ie.cm.options.historyEventDelay:500)||he.origin.charAt(0)=="*"))&&(Mt=Yh(Be,Be.lastOp==Me)))Bt=Et(Mt.changes),Sn(he.from,he.to)==0&&Sn(he.from,Bt.to)==0?Bt.to=Fu(he):Mt.changes.push(Zd(ie,he));else{var Dt=Et(Be.done);for((!Dt||!Dt.ranges)&&dh(ie.sel,Be.done),Mt={changes:[Zd(ie,he)],generation:Be.generation},Be.done.push(Mt);Be.done.length>Be.undoDepth;)Be.done.shift(),Be.done[0].ranges||Be.done.shift()}Be.done.push(Te),Be.generation=++Be.maxGeneration,Be.lastModTime=Be.lastSelTime=st,Be.lastOp=Be.lastSelOp=Me,Be.lastOrigin=Be.lastSelOrigin=he.origin,Bt||It(ie,"historyAdded")}function op(ie,he,Te,Me){var Be=he.charAt(0);return Be=="*"||Be=="+"&&Te.ranges.length==Me.ranges.length&&Te.somethingSelected()==Me.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function Qh(ie,he,Te,Me){var Be=ie.history,st=Me&&Me.origin;Te==Be.lastSelOp||st&&Be.lastSelOrigin==st&&(Be.lastModTime==Be.lastSelTime&&Be.lastOrigin==st||op(ie,st,Et(Be.done),he))?Be.done[Be.done.length-1]=he:dh(he,Be.done),Be.lastSelTime=+new Date,Be.lastSelOrigin=st,Be.lastSelOp=Te,Me&&Me.clearRedo!==!1&&hh(Be.undone)}function dh(ie,he){var Te=Et(he);Te&&Te.ranges&&Te.equals(ie)||he.push(ie)}function Bu(ie,he,Te,Me){var Be=he["spans_"+ie.id],st=0;ie.iter(Math.max(ie.first,Te),Math.min(ie.first+ie.size,Me),function(Mt){Mt.markedSpans&&((Be||(Be=he["spans_"+ie.id]={}))[st]=Mt.markedSpans),++st})}function ns(ie){if(!ie)return null;for(var he,Te=0;Te<ie.length;++Te)ie[Te].marker.explicitlyCleared?he||(he=ie.slice(0,Te)):he&&he.push(ie[Te]);return he?he.length?he:null:ie}function _l(ie,he){var Te=he["spans_"+ie.id];if(!Te)return null;for(var Me=[],Be=0;Be<he.text.length;++Be)Me.push(ns(Te[Be]));return Me}function $d(ie,he){var Te=_l(ie,he),Me=yr(ie,he);if(!Te)return Me;if(!Me)return Te;for(var Be=0;Be<Te.length;++Be){var st=Te[Be],Mt=Me[Be];if(st&&Mt)e:for(var Bt=0;Bt<Mt.length;++Bt){for(var Dt=Mt[Bt],Zt=0;Zt<st.length;++Zt)if(st[Zt].marker==Dt.marker)continue e;st.push(Dt)}else Mt&&(Te[Be]=Mt)}return Te}function cu(ie,he,Te){for(var Me=[],Be=0;Be<ie.length;++Be){var st=ie[Be];if(st.ranges){Me.push(Te?Js.prototype.deepCopy.call(st):st);continue}var Mt=st.changes,Bt=[];Me.push({changes:Bt});for(var Dt=0;Dt<Mt.length;++Dt){var Zt=Mt[Dt],vn=void 0;if(Bt.push({from:Zt.from,to:Zt.to,text:Zt.text}),he)for(var Jt in Zt)(vn=Jt.match(/^spans_(\d+)$/))&>(he,Number(vn[1]))>-1&&(Et(Bt)[Jt]=Zt[Jt],delete Zt[Jt])}}return Me}function Xd(ie,he,Te,Me){if(Me){var Be=ie.anchor;if(Te){var st=Sn(he,Be)<0;st!=Sn(Te,Be)<0?(Be=he,he=Te):st!=Sn(he,Te)<0&&(he=Te)}return new co(Be,he)}else return new co(Te||he,he)}function Yd(ie,he,Te,Me,Be){Be==null&&(Be=ie.cm&&(ie.cm.display.shift||ie.extend)),Ua(ie,new Js([Xd(ie.sel.primary(),he,Te,Be)],0),Me)}function Gg(ie,he,Te){for(var Me=[],Be=ie.cm&&(ie.cm.display.shift||ie.extend),st=0;st<ie.sel.ranges.length;st++)Me[st]=Xd(ie.sel.ranges[st],he[st],null,Be);var Mt=dl(ie.cm,Me,ie.sel.primIndex);Ua(ie,Mt,Te)}function Ru(ie,he,Te,Me){var Be=ie.sel.ranges.slice(0);Be[he]=Te,Ua(ie,dl(ie.cm,Be,ie.sel.primIndex),Me)}function Ec(ie,he,Te,Me){Ua(ie,uu(he,Te),Me)}function Hg(ie,he,Te){var Me={ranges:he.ranges,update:function(Be){this.ranges=[];for(var st=0;st<Be.length;st++)this.ranges[st]=new co(Cn(ie,Be[st].anchor),Cn(ie,Be[st].head))},origin:Te&&Te.origin};return It(ie,"beforeSelectionChange",ie,Me),ie.cm&&It(ie.cm,"beforeSelectionChange",ie.cm,Me),Me.ranges!=he.ranges?dl(ie.cm,Me.ranges,Me.ranges.length-1):he}function Jd(ie,he,Te){var Me=ie.history.done,Be=Et(Me);Be&&Be.ranges?(Me[Me.length-1]=he,Mc(ie,he,Te)):Ua(ie,he,Te)}function Ua(ie,he,Te){Mc(ie,he,Te),Qh(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,Te)}function Mc(ie,he,Te){(ln(ie,"beforeSelectionChange")||ie.cm&&ln(ie.cm,"beforeSelectionChange"))&&(he=Hg(ie,he,Te));var Me=Te&&Te.bias||(Sn(he.primary().head,ie.sel.primary().head)<0?-1:1);ap(ie,ed(ie,he,Me,!0)),!(Te&&Te.scroll===!1)&&ie.cm&&su(ie.cm)}function ap(ie,he){he.equals(ie.sel)||(ie.sel=he,ie.cm&&(ie.cm.curOp.updateInput=1,ie.cm.curOp.selectionChanged=!0,tn(ie.cm)),mr(ie,"cursorActivity",ie))}function qh(ie){ap(ie,ed(ie,ie.sel,null,!1))}function ed(ie,he,Te,Me){for(var Be,st=0;st<he.ranges.length;st++){var Mt=he.ranges[st],Bt=he.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[st],Dt=td(ie,Mt.anchor,Bt&&Bt.anchor,Te,Me),Zt=td(ie,Mt.head,Bt&&Bt.head,Te,Me);(Be||Dt!=Mt.anchor||Zt!=Mt.head)&&(Be||(Be=he.ranges.slice(0,st)),Be[st]=new co(Dt,Zt))}return Be?dl(ie.cm,Be,he.primIndex):he}function hu(ie,he,Te,Me,Be){var st=rn(ie,he.line);if(st.markedSpans)for(var Mt=0;Mt<st.markedSpans.length;++Mt){var Bt=st.markedSpans[Mt],Dt=Bt.marker,Zt="selectLeft"in Dt?!Dt.selectLeft:Dt.inclusiveLeft,vn="selectRight"in Dt?!Dt.selectRight:Dt.inclusiveRight;if((Bt.from==null||(Zt?Bt.from<=he.ch:Bt.from<he.ch))&&(Bt.to==null||(vn?Bt.to>=he.ch:Bt.to>he.ch))){if(Be&&(It(Dt,"beforeCursorEnter"),Dt.explicitlyCleared))if(st.markedSpans){--Mt;continue}else break;if(!Dt.atomic)continue;if(Te){var Jt=Dt.find(Me<0?1:-1),Bn=void 0;if((Me<0?vn:Zt)&&(Jt=sp(ie,Jt,-Me,Jt&&Jt.line==he.line?st:null)),Jt&&Jt.line==he.line&&(Bn=Sn(Jt,Te))&&(Me<0?Bn<0:Bn>0))return hu(ie,Jt,he,Me,Be)}var An=Dt.find(Me<0?-1:1);return(Me<0?Zt:vn)&&(An=sp(ie,An,Me,An.line==he.line?st:null)),An?hu(ie,An,he,Me,Be):null}}return he}function td(ie,he,Te,Me,Be){var st=Me||1,Mt=hu(ie,he,Te,st,Be)||!Be&&hu(ie,he,Te,st,!0)||hu(ie,he,Te,-st,Be)||!Be&&hu(ie,he,Te,-st,!0);return Mt||(ie.cantEdit=!0,gn(ie.first,0))}function sp(ie,he,Te,Me){return Te<0&&he.ch==0?he.line>ie.first?Cn(ie,gn(he.line-1)):null:Te>0&&he.ch==(Me||rn(ie,he.line)).text.length?he.line<ie.first+ie.size-1?gn(he.line+1,0):null:new gn(he.line,he.ch+Te)}function ea(ie){ie.setSelection(gn(ie.firstLine(),0),gn(ie.lastLine()),vt)}function nd(ie,he,Te){var Me={canceled:!1,from:he.from,to:he.to,text:he.text,origin:he.origin,cancel:function(){return Me.canceled=!0}};return Te&&(Me.update=function(Be,st,Mt,Bt){Be&&(Me.from=Cn(ie,Be)),st&&(Me.to=Cn(ie,st)),Mt&&(Me.text=Mt),Bt!==void 0&&(Me.origin=Bt)}),It(ie,"beforeChange",ie,Me),ie.cm&&It(ie.cm,"beforeChange",ie.cm,Me),Me.canceled?(ie.cm&&(ie.cm.curOp.updateInput=2),null):{from:Me.from,to:Me.to,text:Me.text,origin:Me.origin}}function _u(ie,he,Te){if(ie.cm){if(!ie.cm.curOp)return ca(ie.cm,_u)(ie,he,Te);if(ie.cm.state.suppressEdits)return}if(!((ln(ie,"beforeChange")||ie.cm&&ln(ie.cm,"beforeChange"))&&(he=nd(ie,he,!0),!he))){var Me=Mr&&!Te&&ai(ie,he.from,he.to);if(Me)for(var Be=Me.length-1;Be>=0;--Be)Tc(ie,{from:Me[Be].from,to:Me[Be].to,text:Be?[""]:he.text,origin:he.origin});else Tc(ie,he)}}function Tc(ie,he){if(!(he.text.length==1&&he.text[0]==""&&Sn(he.from,he.to)==0)){var Te=Vh(ie,he);Jh(ie,he,Te,ie.cm?ie.cm.curOp.id:NaN),fh(ie,he,Te,yr(ie,he));var Me=[];Ml(ie,function(Be,st){!st&>(Me,Be.history)==-1&&(up(Be.history,he),Me.push(Be.history)),fh(Be,he,null,yr(Be,he))})}}function rd(ie,he,Te){var Me=ie.cm&&ie.cm.state.suppressEdits;if(!(Me&&!Te)){for(var Be=ie.history,st,Mt=ie.sel,Bt=he=="undo"?Be.done:Be.undone,Dt=he=="undo"?Be.undone:Be.done,Zt=0;Zt<Bt.length&&(st=Bt[Zt],!(Te?st.ranges&&!st.equals(ie.sel):!st.ranges));Zt++);if(Zt!=Bt.length){for(Be.lastOrigin=Be.lastSelOrigin=null;;)if(st=Bt.pop(),st.ranges){if(dh(st,Dt),Te&&!st.equals(ie.sel)){Ua(ie,st,{clearRedo:!1});return}Mt=st}else if(Me){Bt.push(st);return}else break;var vn=[];dh(Mt,Dt),Dt.push({changes:vn,generation:Be.generation}),Be.generation=st.generation||++Be.maxGeneration;for(var Jt=ln(ie,"beforeChange")||ie.cm&&ln(ie.cm,"beforeChange"),Bn=function(lr){var br=st.changes[lr];if(br.origin=he,Jt&&!nd(ie,br,!1))return Bt.length=0,{};vn.push(Zd(ie,br));var Dr=lr?Vh(ie,br):Et(Bt);fh(ie,br,Dr,$d(ie,br)),!lr&&ie.cm&&ie.cm.scrollIntoView({from:br.from,to:Fu(br)});var ti=[];Ml(ie,function(Ur,si){!si&>(ti,Ur.history)==-1&&(up(Ur.history,br),ti.push(Ur.history)),fh(Ur,br,null,$d(Ur,br))})},An=st.changes.length-1;An>=0;--An){var ir=Bn(An);if(ir)return ir.v}}}}function lp(ie,he){if(he!=0&&(ie.first+=he,ie.sel=new Js(St(ie.sel.ranges,function(Be){return new co(gn(Be.anchor.line+he,Be.anchor.ch),gn(Be.head.line+he,Be.head.ch))}),ie.sel.primIndex),ie.cm)){Io(ie.cm,ie.first,ie.first-he,he);for(var Te=ie.cm.display,Me=Te.viewFrom;Me<Te.viewTo;Me++)Ri(ie.cm,Me,"gutter")}}function fh(ie,he,Te,Me){if(ie.cm&&!ie.cm.curOp)return ca(ie.cm,fh)(ie,he,Te,Me);if(he.to.line<ie.first){lp(ie,he.text.length-1-(he.to.line-he.from.line));return}if(!(he.from.line>ie.lastLine())){if(he.from.line<ie.first){var Be=he.text.length-1-(ie.first-he.from.line);lp(ie,Be),he={from:gn(ie.first,0),to:gn(he.to.line+Be,he.to.ch),text:[Et(he.text)],origin:he.origin}}var st=ie.lastLine();he.to.line>st&&(he={from:he.from,to:gn(st,rn(ie,st).text.length),text:[he.text[0]],origin:he.origin}),he.removed=yn(ie,he.from,he.to),Te||(Te=Vh(ie,he)),ie.cm?Ug(ie.cm,he,Me):Kd(ie,he,Me),Mc(ie,Te,vt),ie.cantEdit&&td(ie,gn(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function Ug(ie,he,Te){var Me=ie.doc,Be=ie.display,st=he.from,Mt=he.to,Bt=!1,Dt=st.line;ie.options.lineWrapping||(Dt=zt(Vr(rn(Me,st.line))),Me.iter(Dt,Mt.line+1,function(An){if(An==Be.maxLine)return Bt=!0,!0})),Me.sel.contains(he.from,he.to)>-1&&tn(ie),Kd(Me,he,Te,jo(ie)),ie.options.lineWrapping||(Me.iter(Dt,st.line+he.text.length,function(An){var ir=Ki(An);ir>Be.maxLineLength&&(Be.maxLine=An,Be.maxLineLength=ir,Be.maxLineChanged=!0,Bt=!1)}),Bt&&(ie.curOp.updateMaxLine=!0)),cr(Me,st.line),lh(ie,400);var Zt=he.text.length-(Mt.line-st.line)-1;he.full?Io(ie):st.line==Mt.line&&he.text.length==1&&!ip(ie.doc,he)?Ri(ie,st.line,"text"):Io(ie,st.line,Mt.line+1,Zt);var vn=ln(ie,"changes"),Jt=ln(ie,"change");if(Jt||vn){var Bn={from:st,to:Mt,text:he.text,removed:he.removed,origin:he.origin};Jt&&mr(ie,"change",ie,Bn),vn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(Bn)}ie.display.selForContextMenu=null}function Lc(ie,he,Te,Me,Be){var st;Me||(Me=Te),Sn(Me,Te)<0&&(st=[Me,Te],Te=st[0],Me=st[1]),typeof he=="string"&&(he=ie.splitLines(he)),_u(ie,{from:Te,to:Me,text:he,origin:Be})}function Qs(ie,he,Te,Me){Te<ie.line?ie.line+=Me:he<ie.line&&(ie.line=he,ie.ch=0)}function Wg(ie,he,Te,Me){for(var Be=0;Be<ie.length;++Be){var st=ie[Be],Mt=!0;if(st.ranges){st.copied||(st=ie[Be]=st.deepCopy(),st.copied=!0);for(var Bt=0;Bt<st.ranges.length;Bt++)Qs(st.ranges[Bt].anchor,he,Te,Me),Qs(st.ranges[Bt].head,he,Te,Me);continue}for(var Dt=0;Dt<st.changes.length;++Dt){var Zt=st.changes[Dt];if(Te<Zt.from.line)Zt.from=gn(Zt.from.line+Me,Zt.from.ch),Zt.to=gn(Zt.to.line+Me,Zt.to.ch);else if(he<=Zt.to.line){Mt=!1;break}}Mt||(ie.splice(0,Be+1),Be=0)}}function up(ie,he){var Te=he.from.line,Me=he.to.line,Be=he.text.length-(Me-Te)-1;Wg(ie.done,Te,Me,Be),Wg(ie.undone,Te,Me,Be)}function kc(ie,he,Te,Me){var Be=he,st=he;return typeof he=="number"?st=rn(ie,Pn(ie,he)):Be=zt(he),Be==null?null:(Me(st,Be)&&ie.cm&&Ri(ie.cm,Be,Te),st)}function ph(ie){this.lines=ie,this.parent=null;for(var he=0,Te=0;Te<ie.length;++Te)ie[Te].parent=this,he+=ie[Te].height;this.height=he}ph.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,he){for(var Te=ie,Me=ie+he;Te<Me;++Te){var Be=this.lines[Te];this.height-=Be.height,Xi(Be),mr(Be,"delete")}this.lines.splice(ie,he)},collapse:function(ie){ie.push.apply(ie,this.lines)},insertInner:function(ie,he,Te){this.height+=Te,this.lines=this.lines.slice(0,ie).concat(he).concat(this.lines.slice(ie));for(var Me=0;Me<he.length;++Me)he[Me].parent=this},iterN:function(ie,he,Te){for(var Me=ie+he;ie<Me;++ie)if(Te(this.lines[ie]))return!0}};function Wo(ie){this.children=ie;for(var he=0,Te=0,Me=0;Me<ie.length;++Me){var Be=ie[Me];he+=Be.chunkSize(),Te+=Be.height,Be.parent=this}this.size=he,this.height=Te,this.parent=null}Wo.prototype={chunkSize:function(){return this.size},removeInner:function(ie,he){this.size-=he;for(var Te=0;Te<this.children.length;++Te){var Me=this.children[Te],Be=Me.chunkSize();if(ie<Be){var st=Math.min(he,Be-ie),Mt=Me.height;if(Me.removeInner(ie,st),this.height-=Mt-Me.height,Be==st&&(this.children.splice(Te--,1),Me.parent=null),(he-=st)==0)break;ie=0}else ie-=Be}if(this.size-he<25&&(this.children.length>1||!(this.children[0]instanceof ph))){var Bt=[];this.collapse(Bt),this.children=[new ph(Bt)],this.children[0].parent=this}},collapse:function(ie){for(var he=0;he<this.children.length;++he)this.children[he].collapse(ie)},insertInner:function(ie,he,Te){this.size+=he.length,this.height+=Te;for(var Me=0;Me<this.children.length;++Me){var Be=this.children[Me],st=Be.chunkSize();if(ie<=st){if(Be.insertInner(ie,he,Te),Be.lines&&Be.lines.length>50){for(var Mt=Be.lines.length%25+25,Bt=Mt;Bt<Be.lines.length;){var Dt=new ph(Be.lines.slice(Bt,Bt+=25));Be.height-=Dt.height,this.children.splice(++Me,0,Dt),Dt.parent=this}Be.lines=Be.lines.slice(0,Mt),this.maybeSpill()}break}ie-=st}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var he=ie.children.splice(ie.children.length-5,5),Te=new Wo(he);if(ie.parent){ie.size-=Te.size,ie.height-=Te.height;var Be=gt(ie.parent.children,ie);ie.parent.children.splice(Be+1,0,Te)}else{var Me=new Wo(ie.children);Me.parent=ie,ie.children=[Me,Te],ie=Me}Te.parent=ie.parent}while(ie.children.length>10);ie.parent.maybeSpill()}},iterN:function(ie,he,Te){for(var Me=0;Me<this.children.length;++Me){var Be=this.children[Me],st=Be.chunkSize();if(ie<st){var Mt=Math.min(he,st-ie);if(Be.iterN(ie,Mt,Te))return!0;if((he-=Mt)==0)break;ie=0}else ie-=st}}};var du=function(ie,he,Te){if(Te)for(var Me in Te)Te.hasOwnProperty(Me)&&(this[Me]=Te[Me]);this.doc=ie,this.node=he};du.prototype.clear=function(){var ie=this.doc.cm,he=this.line.widgets,Te=this.line,Me=zt(Te);if(!(Me==null||!he)){for(var Be=0;Be<he.length;++Be)he[Be]==this&&he.splice(Be--,1);he.length||(Te.widgets=null);var st=Ya(this);On(Te,Math.max(0,Te.height-st)),ie&&(no(ie,function(){Kg(ie,Te,-st),Ri(ie,Me,"widget")}),mr(ie,"lineWidgetCleared",ie,this,Me))}},du.prototype.changed=function(){var ie=this,he=this.height,Te=this.doc.cm,Me=this.line;this.height=null;var Be=Ya(this)-he;Be&&(Wn(this.doc,Me)||On(Me,Me.height+Be),Te&&no(Te,function(){Te.curOp.forceUpdate=!0,Kg(Te,Me,Be),mr(Te,"lineWidgetChanged",Te,ie,zt(Me))}))},mn(du);function Kg(ie,he,Te){vi(he)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&zd(ie,Te)}function Qd(ie,he,Te,Me){var Be=new du(ie,Te,Me),st=ie.cm;return st&&Be.noHScroll&&(st.display.alignWidgets=!0),kc(ie,he,"widget",function(Mt){var Bt=Mt.widgets||(Mt.widgets=[]);if(Be.insertAt==null?Bt.push(Be):Bt.splice(Math.min(Bt.length-1,Math.max(0,Be.insertAt)),0,Be),Be.line=Mt,st&&!Wn(ie,Mt)){var Dt=vi(Mt)<ie.scrollTop;On(Mt,Mt.height+Ya(Be)),Dt&&zd(st,Be.height),st.curOp.forceUpdate=!0}return!0}),st&&mr(st,"lineWidgetAdded",st,Be,typeof he=="number"?he:zt(he)),Be}var Vg=0,sn=function(ie,he){this.lines=[],this.type=he,this.doc=ie,this.id=++Vg};sn.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,he=ie&&!ie.curOp;if(he&&ku(ie),ln(this,"clear")){var Te=this.find();Te&&mr(this,"clear",Te.from,Te.to)}for(var Me=null,Be=null,st=0;st<this.lines.length;++st){var Mt=this.lines[st],Bt=li(Mt.markedSpans,this);ie&&!this.collapsed?Ri(ie,zt(Mt),"text"):ie&&(Bt.to!=null&&(Be=zt(Mt)),Bt.from!=null&&(Me=zt(Mt))),Mt.markedSpans=Ar(Mt.markedSpans,Bt),Bt.from==null&&this.collapsed&&!Wn(this.doc,Mt)&&ie&&On(Mt,au(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var Dt=0;Dt<this.lines.length;++Dt){var Zt=Vr(this.lines[Dt]),vn=Ki(Zt);vn>ie.display.maxLineLength&&(ie.display.maxLine=Zt,ie.display.maxLineLength=vn,ie.display.maxLineChanged=!0)}Me!=null&&ie&&this.collapsed&&Io(ie,Me,Be+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&qh(ie.doc)),ie&&mr(ie,"markerCleared",ie,this,Me,Be),he&&Ou(ie),this.parent&&this.parent.clear()}},sn.prototype.find=function(ie,he){ie==null&&this.type=="bookmark"&&(ie=1);for(var Te,Me,Be=0;Be<this.lines.length;++Be){var st=this.lines[Be],Mt=li(st.markedSpans,this);if(Mt.from!=null&&(Te=gn(he?st:zt(st),Mt.from),ie==-1))return Te;if(Mt.to!=null&&(Me=gn(he?st:zt(st),Mt.to),ie==1))return Me}return Te&&{from:Te,to:Me}},sn.prototype.changed=function(){var ie=this,he=this.find(-1,!0),Te=this,Me=this.doc.cm;!he||!Me||no(Me,function(){var Be=he.line,st=zt(he.line),Mt=gc(Me,st);if(Mt&&(ya(Mt),Me.curOp.selectionChanged=Me.curOp.forceUpdate=!0),Me.curOp.updateMaxLine=!0,!Wn(Te.doc,Be)&&Te.height!=null){var Bt=Te.height;Te.height=null;var Dt=Ya(Te)-Bt;Dt&&On(Be,Be.height+Dt)}mr(Me,"markerChanged",Me,ie)})},sn.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var he=this.doc.cm.curOp;(!he.maybeHiddenMarkers||gt(he.maybeHiddenMarkers,this)==-1)&&(he.maybeUnhiddenMarkers||(he.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},sn.prototype.detachLine=function(ie){if(this.lines.splice(gt(this.lines,ie),1),!this.lines.length&&this.doc.cm){var he=this.doc.cm.curOp;(he.maybeHiddenMarkers||(he.maybeHiddenMarkers=[])).push(this)}},mn(sn);function Oc(ie,he,Te,Me,Be){if(Me&&Me.shared)return Zg(ie,he,Te,Me,Be);if(ie.cm&&!ie.cm.curOp)return ca(ie.cm,Oc)(ie,he,Te,Me,Be);var st=new sn(ie,Be),Mt=Sn(he,Te);if(Me&&bt(Me,st,!1),Mt>0||Mt==0&&st.clearWhenEmpty!==!1)return st;if(st.replacedWith&&(st.collapsed=!0,st.widgetNode=Fe("span",[st.replacedWith],"CodeMirror-widget"),Me.handleMouseEvents||st.widgetNode.setAttribute("cm-ignore-events","true"),Me.insertLeft&&(st.widgetNode.insertLeft=!0)),st.collapsed){if(ri(ie,he.line,he,Te,st)||he.line!=Te.line&&ri(ie,Te.line,he,Te,st))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ln()}st.addToHistory&&Jh(ie,{from:he,to:Te,origin:"markText"},ie.sel,NaN);var Bt=he.line,Dt=ie.cm,Zt;if(ie.iter(Bt,Te.line+1,function(Jt){Dt&&st.collapsed&&!Dt.options.lineWrapping&&Vr(Jt)==Dt.display.maxLine&&(Zt=!0),st.collapsed&&Bt!=he.line&&On(Jt,0),fi(Jt,new zr(st,Bt==he.line?he.ch:null,Bt==Te.line?Te.ch:null)),++Bt}),st.collapsed&&ie.iter(he.line,Te.line+1,function(Jt){Wn(ie,Jt)&&On(Jt,0)}),st.clearOnEnter&&jt(st,"beforeCursorEnter",function(){return st.clear()}),st.readOnly&&(qr(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),st.collapsed&&(st.id=++Vg,st.atomic=!0),Dt){if(Zt&&(Dt.curOp.updateMaxLine=!0),st.collapsed)Io(Dt,he.line,Te.line+1);else if(st.className||st.startStyle||st.endStyle||st.css||st.attributes||st.title)for(var vn=he.line;vn<=Te.line;vn++)Ri(Dt,vn,"text");st.atomic&&qh(Dt.doc),mr(Dt,"markerAdded",Dt,st)}return st}var zl=function(ie,he){this.markers=ie,this.primary=he;for(var Te=0;Te<ie.length;++Te)ie[Te].parent=this};zl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var ie=0;ie<this.markers.length;++ie)this.markers[ie].clear();mr(this,"clear")}},zl.prototype.find=function(ie,he){return this.primary.find(ie,he)},mn(zl);function Zg(ie,he,Te,Me,Be){Me=bt(Me),Me.shared=!1;var st=[Oc(ie,he,Te,Me,Be)],Mt=st[0],Bt=Me.widgetNode;return Ml(ie,function(Dt){Bt&&(Me.widgetNode=Bt.cloneNode(!0)),st.push(Oc(Dt,Cn(Dt,he),Cn(Dt,Te),Me,Be));for(var Zt=0;Zt<Dt.linked.length;++Zt)if(Dt.linked[Zt].isParent)return;Mt=Et(st)}),new zl(st,Mt)}function cp(ie){return ie.findMarks(gn(ie.first,0),ie.clipPos(gn(ie.lastLine())),function(he){return he.parent})}function $g(ie,he){for(var Te=0;Te<he.length;Te++){var Me=he[Te],Be=Me.find(),st=ie.clipPos(Be.from),Mt=ie.clipPos(Be.to);if(Sn(st,Mt)){var Bt=Oc(ie,st,Mt,Me.primary,Me.primary.type);Me.markers.push(Bt),Bt.parent=Me}}}function hp(ie){for(var he=function(Me){var Be=ie[Me],st=[Be.primary.doc];Ml(Be.primary.doc,function(Dt){return st.push(Dt)});for(var Mt=0;Mt<Be.markers.length;Mt++){var Bt=Be.markers[Mt];gt(st,Bt.doc)==-1&&(Bt.parent=null,Be.markers.splice(Mt--,1))}},Te=0;Te<ie.length;Te++)he(Te)}var t0=0,Fa=function(ie,he,Te,Me,Be){if(!(this instanceof Fa))return new Fa(ie,he,Te,Me,Be);Te==null&&(Te=0),Wo.call(this,[new ph([new gi("",null)])]),this.first=Te,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=Te;var st=gn(Te,0);this.sel=uu(st),this.history=new ch(null),this.id=++t0,this.modeOption=he,this.lineSep=Me,this.direction=Be=="rtl"?"rtl":"ltr",this.extend=!1,typeof ie=="string"&&(ie=this.splitLines(ie)),Kd(this,{from:st,to:st,text:ie}),Ua(this,uu(st),vt)};Fa.prototype=$e(Wo.prototype,{constructor:Fa,iter:function(ie,he,Te){Te?this.iterN(ie-this.first,he-ie,Te):this.iterN(this.first,this.first+this.size,ie)},insert:function(ie,he){for(var Te=0,Me=0;Me<he.length;++Me)Te+=he[Me].height;this.insertInner(ie-this.first,he,Te)},remove:function(ie,he){this.removeInner(ie-this.first,he)},getValue:function(ie){var he=Mn(this,this.first,this.first+this.size);return ie===!1?he:he.join(ie||this.lineSeparator())},setValue:wa(function(ie){var he=gn(this.first,0),Te=this.first+this.size-1;_u(this,{from:he,to:gn(Te,rn(this,Te).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&xc(this.cm,0,0),Ua(this,uu(he),vt)}),replaceRange:function(ie,he,Te,Me){he=Cn(this,he),Te=Te?Cn(this,Te):he,Lc(this,ie,he,Te,Me)},getRange:function(ie,he,Te){var Me=yn(this,Cn(this,ie),Cn(this,he));return Te===!1?Me:Me.join(Te||this.lineSeparator())},getLine:function(ie){var he=this.getLineHandle(ie);return he&&he.text},getLineHandle:function(ie){if(Fn(this,ie))return rn(this,ie)},getLineNumber:function(ie){return zt(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=rn(this,ie)),Vr(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return Cn(this,ie)},getCursor:function(ie){var he=this.sel.primary(),Te;return ie==null||ie=="head"?Te=he.head:ie=="anchor"?Te=he.anchor:ie=="end"||ie=="to"||ie===!1?Te=he.to():Te=he.from(),Te},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:wa(function(ie,he,Te){Ec(this,Cn(this,typeof ie=="number"?gn(ie,he||0):ie),null,Te)}),setSelection:wa(function(ie,he,Te){Ec(this,Cn(this,ie),Cn(this,he||ie),Te)}),extendSelection:wa(function(ie,he,Te){Yd(this,Cn(this,ie),he&&Cn(this,he),Te)}),extendSelections:wa(function(ie,he){Gg(this,In(this,ie),he)}),extendSelectionsBy:wa(function(ie,he){var Te=St(this.sel.ranges,ie);Gg(this,In(this,Te),he)}),setSelections:wa(function(ie,he,Te){if(ie.length){for(var Me=[],Be=0;Be<ie.length;Be++)Me[Be]=new co(Cn(this,ie[Be].anchor),Cn(this,ie[Be].head));he==null&&(he=Math.min(ie.length-1,this.sel.primIndex)),Ua(this,dl(this.cm,Me,he),Te)}}),addSelection:wa(function(ie,he,Te){var Me=this.sel.ranges.slice(0);Me.push(new co(Cn(this,ie),Cn(this,he||ie))),Ua(this,dl(this.cm,Me,Me.length-1),Te)}),getSelection:function(ie){for(var he=this.sel.ranges,Te,Me=0;Me<he.length;Me++){var Be=yn(this,he[Me].from(),he[Me].to());Te=Te?Te.concat(Be):Be}return ie===!1?Te:Te.join(ie||this.lineSeparator())},getSelections:function(ie){for(var he=[],Te=this.sel.ranges,Me=0;Me<Te.length;Me++){var Be=yn(this,Te[Me].from(),Te[Me].to());ie!==!1&&(Be=Be.join(ie||this.lineSeparator())),he[Me]=Be}return he},replaceSelection:function(ie,he,Te){for(var Me=[],Be=0;Be<this.sel.ranges.length;Be++)Me[Be]=ie;this.replaceSelections(Me,he,Te||"+input")},replaceSelections:wa(function(ie,he,Te){for(var Me=[],Be=this.sel,st=0;st<Be.ranges.length;st++){var Mt=Be.ranges[st];Me[st]={from:Mt.from(),to:Mt.to(),text:this.splitLines(ie[st]),origin:Te}}for(var Bt=he&&he!="end"&&Zh(this,Me,he),Dt=Me.length-1;Dt>=0;Dt--)_u(this,Me[Dt]);Bt?Jd(this,Bt):this.cm&&su(this.cm)}),undo:wa(function(){rd(this,"undo")}),redo:wa(function(){rd(this,"redo")}),undoSelection:wa(function(){rd(this,"undo",!0)}),redoSelection:wa(function(){rd(this,"redo",!0)}),setExtending:function(ie){this.extend=ie},getExtending:function(){return this.extend},historySize:function(){for(var ie=this.history,he=0,Te=0,Me=0;Me<ie.done.length;Me++)ie.done[Me].ranges||++he;for(var Be=0;Be<ie.undone.length;Be++)ie.undone[Be].ranges||++Te;return{undo:he,redo:Te}},clearHistory:function(){var ie=this;this.history=new ch(this.history.maxGeneration),Ml(this,function(he){return he.history=ie.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(ie){return ie&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(ie){return this.history.generation==(ie||this.cleanGeneration)},getHistory:function(){return{done:cu(this.history.done),undone:cu(this.history.undone)}},setHistory:function(ie){var he=this.history=new ch(this.history.maxGeneration);he.done=cu(ie.done.slice(0),null,!0),he.undone=cu(ie.undone.slice(0),null,!0)},setGutterMarker:wa(function(ie,he,Te){return kc(this,ie,"gutter",function(Me){var Be=Me.gutterMarkers||(Me.gutterMarkers={});return Be[he]=Te,!Te&&et(Be)&&(Me.gutterMarkers=null),!0})}),clearGutter:wa(function(ie){var he=this;this.iter(function(Te){Te.gutterMarkers&&Te.gutterMarkers[ie]&&kc(he,Te,"gutter",function(){return Te.gutterMarkers[ie]=null,et(Te.gutterMarkers)&&(Te.gutterMarkers=null),!0})})}),lineInfo:function(ie){var he;if(typeof ie=="number"){if(!Fn(this,ie)||(he=ie,ie=rn(this,ie),!ie))return null}else if(he=zt(ie),he==null)return null;return{line:he,handle:ie,text:ie.text,gutterMarkers:ie.gutterMarkers,textClass:ie.textClass,bgClass:ie.bgClass,wrapClass:ie.wrapClass,widgets:ie.widgets}},addLineClass:wa(function(ie,he,Te){return kc(this,ie,he=="gutter"?"gutter":"class",function(Me){var Be=he=="text"?"textClass":he=="background"?"bgClass":he=="gutter"?"gutterClass":"wrapClass";if(!Me[Be])Me[Be]=Te;else{if(Ce(Te).test(Me[Be]))return!1;Me[Be]+=" "+Te}return!0})}),removeLineClass:wa(function(ie,he,Te){return kc(this,ie,he=="gutter"?"gutter":"class",function(Me){var Be=he=="text"?"textClass":he=="background"?"bgClass":he=="gutter"?"gutterClass":"wrapClass",st=Me[Be];if(st)if(Te==null)Me[Be]=null;else{var Mt=st.match(Ce(Te));if(!Mt)return!1;var Bt=Mt.index+Mt[0].length;Me[Be]=st.slice(0,Mt.index)+(!Mt.index||Bt==st.length?"":" ")+st.slice(Bt)||null}else return!1;return!0})}),addLineWidget:wa(function(ie,he,Te){return Qd(this,ie,he,Te)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,he,Te){return Oc(this,Cn(this,ie),Cn(this,he),Te,Te&&Te.type||"range")},setBookmark:function(ie,he){var Te={replacedWith:he&&(he.nodeType==null?he.widget:he),insertLeft:he&&he.insertLeft,clearWhenEmpty:!1,shared:he&&he.shared,handleMouseEvents:he&&he.handleMouseEvents};return ie=Cn(this,ie),Oc(this,ie,ie,Te,"bookmark")},findMarksAt:function(ie){ie=Cn(this,ie);var he=[],Te=rn(this,ie.line).markedSpans;if(Te)for(var Me=0;Me<Te.length;++Me){var Be=Te[Me];(Be.from==null||Be.from<=ie.ch)&&(Be.to==null||Be.to>=ie.ch)&&he.push(Be.marker.parent||Be.marker)}return he},findMarks:function(ie,he,Te){ie=Cn(this,ie),he=Cn(this,he);var Me=[],Be=ie.line;return this.iter(ie.line,he.line+1,function(st){var Mt=st.markedSpans;if(Mt)for(var Bt=0;Bt<Mt.length;Bt++){var Dt=Mt[Bt];!(Dt.to!=null&&Be==ie.line&&ie.ch>=Dt.to||Dt.from==null&&Be!=ie.line||Dt.from!=null&&Be==he.line&&Dt.from>=he.ch)&&(!Te||Te(Dt.marker))&&Me.push(Dt.marker.parent||Dt.marker)}++Be}),Me},getAllMarks:function(){var ie=[];return this.iter(function(he){var Te=he.markedSpans;if(Te)for(var Me=0;Me<Te.length;++Me)Te[Me].from!=null&&ie.push(Te[Me].marker)}),ie},posFromIndex:function(ie){var he,Te=this.first,Me=this.lineSeparator().length;return this.iter(function(Be){var st=Be.text.length+Me;if(st>ie)return he=ie,!0;ie-=st,++Te}),Cn(this,gn(Te,he))},indexFromPos:function(ie){ie=Cn(this,ie);var he=ie.ch;if(ie.line<this.first||ie.ch<0)return 0;var Te=this.lineSeparator().length;return this.iter(this.first,ie.line,function(Me){he+=Me.text.length+Te}),he},copy:function(ie){var he=new Fa(Mn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return he.scrollTop=this.scrollTop,he.scrollLeft=this.scrollLeft,he.sel=this.sel,he.extend=!1,ie&&(he.history.undoDepth=this.history.undoDepth,he.setHistory(this.getHistory())),he},linkedDoc:function(ie){ie||(ie={});var he=this.first,Te=this.first+this.size;ie.from!=null&&ie.from>he&&(he=ie.from),ie.to!=null&&ie.to<Te&&(Te=ie.to);var Me=new Fa(Mn(this,he,Te),ie.mode||this.modeOption,he,this.lineSep,this.direction);return ie.sharedHist&&(Me.history=this.history),(this.linked||(this.linked=[])).push({doc:Me,sharedHist:ie.sharedHist}),Me.linked=[{doc:this,isParent:!0,sharedHist:ie.sharedHist}],$g(Me,cp(this)),Me},unlinkDoc:function(ie){if(ie instanceof eo&&(ie=ie.doc),this.linked)for(var he=0;he<this.linked.length;++he){var Te=this.linked[he];if(Te.doc==ie){this.linked.splice(he,1),ie.unlinkDoc(this),hp(cp(this));break}}if(ie.history==this.history){var Me=[ie.id];Ml(ie,function(Be){return Me.push(Be.id)},!0),ie.history=new ch(null),ie.history.done=cu(this.history.done,Me),ie.history.undone=cu(this.history.undone,Me)}},iterLinkedDocs:function(ie){Ml(this,ie)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(ie){return this.lineSep?ie.split(this.lineSep):jr(ie)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:wa(function(ie){ie!="rtl"&&(ie="ltr"),ie!=this.direction&&(this.direction=ie,this.iter(function(he){return he.order=null}),this.cm&&e0(this.cm))})}),Fa.prototype.eachLine=Fa.prototype.iter;var id=0;function dp(ie){var he=this;if(Jg(he),!(Ut(he,ie)||Ja(he.display,ie))){jn(ie),Ne&&(id=+new Date);var Te=es(he,ie,!0),Me=ie.dataTransfer.files;if(!(!Te||he.isReadOnly()))if(Me&&Me.length&&window.FileReader&&window.File)for(var Be=Me.length,st=Array(Be),Mt=0,Bt=function(){++Mt==Be&&ca(he,function(){Te=Cn(he.doc,Te);var An={from:Te,to:Te,text:he.doc.splitLines(st.filter(function(ir){return ir!=null}).join(he.doc.lineSeparator())),origin:"paste"};_u(he.doc,An),Jd(he.doc,uu(Cn(he.doc,Te),Cn(he.doc,Fu(An))))})()},Dt=function(An,ir){if(he.options.allowDropFileTypes&>(he.options.allowDropFileTypes,An.type)==-1){Bt();return}var lr=new FileReader;lr.onerror=function(){return Bt()},lr.onload=function(){var br=lr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(br)){Bt();return}st[ir]=br,Bt()},lr.readAsText(An)},Zt=0;Zt<Me.length;Zt++)Dt(Me[Zt],Zt);else{if(he.state.draggingText&&he.doc.sel.contains(Te)>-1){he.state.draggingText(ie),setTimeout(function(){return he.display.input.focus()},20);return}try{var vn=ie.dataTransfer.getData("Text");if(vn){var Jt;if(he.state.draggingText&&!he.state.draggingText.copy&&(Jt=he.listSelections()),Mc(he.doc,uu(Te,Te)),Jt)for(var Bn=0;Bn<Jt.length;++Bn)Lc(he.doc,"",Jt[Bn].anchor,Jt[Bn].head,"drag");he.replaceSelection(vn,"around","paste"),he.display.input.focus()}}catch(An){}}}}function Xg(ie,he){if(Ne&&(!ie.state.draggingText||+new Date-id<100)){ar(he);return}if(!(Ut(ie,he)||Ja(ie.display,he))&&(he.dataTransfer.setData("Text",ie.getSelection()),he.dataTransfer.effectAllowed="copyMove",he.dataTransfer.setDragImage&&!we)){var Te=Oe("img",null,null,"position: fixed; left: 0; top: 0;");Te.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ye&&(Te.width=Te.height=1,ie.display.wrapper.appendChild(Te),Te._top=Te.offsetTop),he.dataTransfer.setDragImage(Te,0,0),ye&&Te.parentNode.removeChild(Te)}}function Yg(ie,he){var Te=es(ie,he);if(Te){var Me=document.createDocumentFragment();$i(ie,Te,Me),ie.display.dragCursor||(ie.display.dragCursor=Oe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),ke(ie.display.dragCursor,Me)}}function Jg(ie){ie.display.dragCursor&&(ie.display.lineSpace.removeChild(ie.display.dragCursor),ie.display.dragCursor=null)}function Qg(ie){if(document.getElementsByClassName){for(var he=document.getElementsByClassName("CodeMirror"),Te=[],Me=0;Me<he.length;Me++){var Be=he[Me].CodeMirror;Be&&Te.push(Be)}Te.length&&Te[0].operation(function(){for(var st=0;st<Te.length;st++)ie(Te[st])})}}var fp=!1;function Gs(){fp||(gh(),fp=!0)}function gh(){var ie;jt(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,Qg(pp)},100))}),jt(window,"blur",function(){return Qg(Sc)})}function pp(ie){var he=ie.display;he.cachedCharWidth=he.cachedTextHeight=he.cachedPaddingH=null,he.scrollbarsClipped=!1,ie.setSize()}for(var Gl={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"},od=0;od<10;od++)Gl[od+48]=Gl[od+96]=String(od);for(var qd=65;qd<=90;qd++)Gl[qd]=String.fromCharCode(qd);for(var ad=1;ad<=12;ad++)Gl[ad+111]=Gl[ad+63235]="F"+ad;var Ps={};Ps.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"},Ps.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"},Ps.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"},Ps.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"]},Ps.default=ae?Ps.macDefault:Ps.pcDefault;function gp(ie){var he=ie.split(/-(?!$)/);ie=he[he.length-1];for(var Te,Me,Be,st,Mt=0;Mt<he.length-1;Mt++){var Bt=he[Mt];if(/^(cmd|meta|m)$/i.test(Bt))st=!0;else if(/^a(lt)?$/i.test(Bt))Te=!0;else if(/^(c|ctrl|control)$/i.test(Bt))Me=!0;else if(/^s(hift)?$/i.test(Bt))Be=!0;else throw new Error("Unrecognized modifier name: "+Bt)}return Te&&(ie="Alt-"+ie),Me&&(ie="Ctrl-"+ie),st&&(ie="Cmd-"+ie),Be&&(ie="Shift-"+ie),ie}function mp(ie){var he={};for(var Te in ie)if(ie.hasOwnProperty(Te)){var Me=ie[Te];if(/^(name|fallthrough|(de|at)tach)$/.test(Te))continue;if(Me=="..."){delete ie[Te];continue}for(var Be=St(Te.split(" "),gp),st=0;st<Be.length;st++){var Mt=void 0,Bt=void 0;st==Be.length-1?(Bt=Be.join(" "),Mt=Me):(Bt=Be.slice(0,st+1).join(" "),Mt="...");var Dt=he[Bt];if(!Dt)he[Bt]=Mt;else if(Dt!=Mt)throw new Error("Inconsistent bindings for "+Bt)}delete ie[Te]}for(var Zt in he)ie[Zt]=he[Zt];return ie}function el(ie,he,Te,Me){he=Ac(he);var Be=he.call?he.call(ie,Me):he[ie];if(Be===!1)return"nothing";if(Be==="...")return"multi";if(Be!=null&&Te(Be))return"handled";if(he.fallthrough){if(Object.prototype.toString.call(he.fallthrough)!="[object Array]")return el(ie,he.fallthrough,Te,Me);for(var st=0;st<he.fallthrough.length;st++){var Mt=el(ie,he.fallthrough[st],Te,Me);if(Mt)return Mt}}}function mh(ie){var he=typeof ie=="string"?ie:Gl[ie.keyCode];return he=="Ctrl"||he=="Alt"||he=="Shift"||he=="Mod"}function vp(ie,he,Te){var Me=ie;return he.altKey&&Me!="Alt"&&(ie="Alt-"+ie),(pe?he.metaKey:he.ctrlKey)&&Me!="Ctrl"&&(ie="Ctrl-"+ie),(pe?he.ctrlKey:he.metaKey)&&Me!="Mod"&&(ie="Cmd-"+ie),!Te&&he.shiftKey&&Me!="Shift"&&(ie="Shift-"+ie),ie}function qg(ie,he){if(ye&&ie.keyCode==34&&ie.char)return!1;var Te=Gl[ie.keyCode];return Te==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(Te=ie.code),vp(Te,ie,he))}function Ac(ie){return typeof ie=="string"?Ps[ie]:ie}function Cs(ie,he){for(var Te=ie.doc.sel.ranges,Me=[],Be=0;Be<Te.length;Be++){for(var st=he(Te[Be]);Me.length&&Sn(st.from,Et(Me).to)<=0;){var Mt=Me.pop();if(Sn(Mt.from,st.from)<0){st.from=Mt.from;break}}Me.push(st)}no(ie,function(){for(var Bt=Me.length-1;Bt>=0;Bt--)Lc(ie.doc,"",Me[Bt].from,Me[Bt].to,"+delete");su(ie)})}function yp(ie,he,Te){var Me=nt(ie.text,he+Te,Te);return Me<0||Me>ie.text.length?null:Me}function ta(ie,he,Te){var Me=yp(ie,he.ch,Te);return Me==null?null:new gn(he.line,Me,Te<0?"after":"before")}function sd(ie,he,Te,Me,Be){if(ie){he.doc.direction=="rtl"&&(Be=-Be);var st=yt(Te,he.doc.direction);if(st){var Mt=Be<0?Et(st):st[0],Bt=Be<0==(Mt.level==1),Dt=Bt?"after":"before",Zt;if(Mt.level>0||he.doc.direction=="rtl"){var vn=Bl(he,Te);Zt=Be<0?Te.text.length-1:0;var Jt=Fs(he,vn,Zt).top;Zt=ut(function(Bn){return Fs(he,vn,Bn).top==Jt},Be<0==(Mt.level==1)?Mt.from:Mt.to-1,Zt),Dt=="before"&&(Zt=yp(Te,Zt,1))}else Zt=Be<0?Mt.to:Mt.from;return new gn(Me,Zt,Dt)}}return new gn(Me,Be<0?Te.text.length:0,Be<0?"before":"after")}function ef(ie,he,Te,Me){var Be=yt(he,ie.doc.direction);if(!Be)return ta(he,Te,Me);Te.ch>=he.text.length?(Te.ch=he.text.length,Te.sticky="before"):Te.ch<=0&&(Te.ch=0,Te.sticky="after");var st=Ie(Be,Te.ch,Te.sticky),Mt=Be[st];if(ie.doc.direction=="ltr"&&Mt.level%2==0&&(Me>0?Mt.to>Te.ch:Mt.from<Te.ch))return ta(he,Te,Me);var Bt=function(Dr,ti){return yp(he,Dr instanceof gn?Dr.ch:Dr,ti)},Dt,Zt=function(Dr){return ie.options.lineWrapping?(Dt=Dt||Bl(ie,he),Qf(ie,he,Dt,Dr)):{begin:0,end:he.text.length}},vn=Zt(Te.sticky=="before"?Bt(Te,-1):Te.ch);if(ie.doc.direction=="rtl"||Mt.level==1){var Jt=Mt.level==1==Me<0,Bn=Bt(Te,Jt?1:-1);if(Bn!=null&&(Jt?Bn<=Mt.to&&Bn<=vn.end:Bn>=Mt.from&&Bn>=vn.begin)){var An=Jt?"before":"after";return new gn(Te.line,Bn,An)}}var ir=function(Dr,ti,Ur){for(var si=function(Do,da){return da?new gn(Te.line,Bt(Do,1),"before"):new gn(Te.line,Do,"after")};Dr>=0&&Dr<Be.length;Dr+=ti){var ki=Be[Dr],Hr=ti>0==(ki.level!=1),zi=Hr?Ur.begin:Bt(Ur.end,-1);if(ki.from<=zi&&zi<ki.to||(zi=Hr?ki.from:Bt(ki.to,-1),Ur.begin<=zi&&zi<Ur.end))return si(zi,Hr)}},lr=ir(st+Me,Me,vn);if(lr)return lr;var br=Me>0?vn.end:Bt(vn.begin,-1);return br!=null&&!(Me>0&&br==he.text.length)&&(lr=ir(Me>0?0:Be.length-1,Me,Zt(br)),lr)?lr:null}var zu={selectAll:ea,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),vt)},killLine:function(ie){return Cs(ie,function(he){if(he.empty()){var Te=rn(ie.doc,he.head.line).text.length;return he.head.ch==Te&&he.head.line<ie.lastLine()?{from:he.head,to:gn(he.head.line+1,0)}:{from:he.head,to:gn(he.head.line,Te)}}else return{from:he.from(),to:he.to()}})},deleteLine:function(ie){return Cs(ie,function(he){return{from:gn(he.from().line,0),to:Cn(ie.doc,gn(he.to().line+1,0))}})},delLineLeft:function(ie){return Cs(ie,function(he){return{from:gn(he.from().line,0),to:he.from()}})},delWrappedLineLeft:function(ie){return Cs(ie,function(he){var Te=ie.charCoords(he.head,"div").top+5,Me=ie.coordsChar({left:0,top:Te},"div");return{from:Me,to:he.from()}})},delWrappedLineRight:function(ie){return Cs(ie,function(he){var Te=ie.charCoords(he.head,"div").top+5,Me=ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:Te},"div");return{from:he.from(),to:Me}})},undo:function(ie){return ie.undo()},redo:function(ie){return ie.redo()},undoSelection:function(ie){return ie.undoSelection()},redoSelection:function(ie){return ie.redoSelection()},goDocStart:function(ie){return ie.extendSelection(gn(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(gn(ie.lastLine()))},goLineStart:function(ie){return ie.extendSelectionsBy(function(he){return vh(ie,he.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(ie){return ie.extendSelectionsBy(function(he){return Sp(ie,he.head)},{origin:"+move",bias:1})},goLineEnd:function(ie){return ie.extendSelectionsBy(function(he){return yh(ie,he.head.line)},{origin:"+move",bias:-1})},goLineRight:function(ie){return ie.extendSelectionsBy(function(he){var Te=ie.cursorCoords(he.head,"div").top+5;return ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:Te},"div")},xt)},goLineLeft:function(ie){return ie.extendSelectionsBy(function(he){var Te=ie.cursorCoords(he.head,"div").top+5;return ie.coordsChar({left:0,top:Te},"div")},xt)},goLineLeftSmart:function(ie){return ie.extendSelectionsBy(function(he){var Te=ie.cursorCoords(he.head,"div").top+5,Me=ie.coordsChar({left:0,top:Te},"div");return Me.ch<ie.getLine(Me.line).search(/\S/)?Sp(ie,he.head):Me},xt)},goLineUp:function(ie){return ie.moveV(-1,"line")},goLineDown:function(ie){return ie.moveV(1,"line")},goPageUp:function(ie){return ie.moveV(-1,"page")},goPageDown:function(ie){return ie.moveV(1,"page")},goCharLeft:function(ie){return ie.moveH(-1,"char")},goCharRight:function(ie){return ie.moveH(1,"char")},goColumnLeft:function(ie){return ie.moveH(-1,"column")},goColumnRight:function(ie){return ie.moveH(1,"column")},goWordLeft:function(ie){return ie.moveH(-1,"word")},goGroupRight:function(ie){return ie.moveH(1,"group")},goGroupLeft:function(ie){return ie.moveH(-1,"group")},goWordRight:function(ie){return ie.moveH(1,"word")},delCharBefore:function(ie){return ie.deleteH(-1,"codepoint")},delCharAfter:function(ie){return ie.deleteH(1,"char")},delWordBefore:function(ie){return ie.deleteH(-1,"word")},delWordAfter:function(ie){return ie.deleteH(1,"word")},delGroupBefore:function(ie){return ie.deleteH(-1,"group")},delGroupAfter:function(ie){return ie.deleteH(1,"group")},indentAuto:function(ie){return ie.indentSelection("smart")},indentMore:function(ie){return ie.indentSelection("add")},indentLess:function(ie){return ie.indentSelection("subtract")},insertTab:function(ie){return ie.replaceSelection(" ")},insertSoftTab:function(ie){for(var he=[],Te=ie.listSelections(),Me=ie.options.tabSize,Be=0;Be<Te.length;Be++){var st=Te[Be].from(),Mt=qe(ie.getLine(st.line),st.ch,Me);he.push(Wt(Me-Mt%Me))}ie.replaceSelections(he)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return no(ie,function(){for(var he=ie.listSelections(),Te=[],Me=0;Me<he.length;Me++)if(he[Me].empty()){var Be=he[Me].head,st=rn(ie.doc,Be.line).text;if(st){if(Be.ch==st.length&&(Be=new gn(Be.line,Be.ch-1)),Be.ch>0)Be=new gn(Be.line,Be.ch+1),ie.replaceRange(st.charAt(Be.ch-1)+st.charAt(Be.ch-2),gn(Be.line,Be.ch-2),Be,"+transpose");else if(Be.line>ie.doc.first){var Mt=rn(ie.doc,Be.line-1).text;Mt&&(Be=new gn(Be.line,1),ie.replaceRange(st.charAt(0)+ie.doc.lineSeparator()+Mt.charAt(Mt.length-1),gn(Be.line-1,Mt.length-1),Be,"+transpose"))}}Te.push(new co(Be,Be))}ie.setSelections(Te)})},newlineAndIndent:function(ie){return no(ie,function(){for(var he=ie.listSelections(),Te=he.length-1;Te>=0;Te--)ie.replaceRange(ie.doc.lineSeparator(),he[Te].anchor,he[Te].head,"+input");he=ie.listSelections();for(var Me=0;Me<he.length;Me++)ie.indentLine(he[Me].from().line,null,!0);su(ie)})},openLine:function(ie){return ie.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function vh(ie,he){var Te=rn(ie.doc,he),Me=Vr(Te);return Me!=Te&&(he=zt(Me)),sd(!0,ie,Me,he,1)}function yh(ie,he){var Te=rn(ie.doc,he),Me=Mi(Te);return Me!=Te&&(he=zt(Me)),sd(!0,ie,Te,he,-1)}function Sp(ie,he){var Te=vh(ie,he.line),Me=rn(ie.doc,Te.line),Be=yt(Me,ie.doc.direction);if(!Be||Be[0].level==0){var st=Math.max(Te.ch,Me.text.search(/\S/)),Mt=he.line==Te.line&&he.ch<=st&&he.ch;return gn(Te.line,Mt?0:st,Te.sticky)}return Te}function Sh(ie,he,Te){if(typeof he=="string"&&(he=zu[he],!he))return!1;ie.display.input.ensurePolled();var Me=ie.display.shift,Be=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),Te&&(ie.display.shift=!1),Be=he(ie)!=wt}finally{ie.display.shift=Me,ie.state.suppressEdits=!1}return Be}function xp(ie,he,Te){for(var Me=0;Me<ie.state.keyMaps.length;Me++){var Be=el(he,ie.state.keyMaps[Me],Te,ie);if(Be)return Be}return ie.options.extraKeys&&el(he,ie.options.extraKeys,Te,ie)||el(he,ie.options.keyMap,Te,ie)}var Hl=new at;function Nc(ie,he,Te,Me){var Be=ie.state.keySeq;if(Be){if(mh(he))return"handled";if(/\'$/.test(he)?ie.state.keySeq=null:Hl.set(50,function(){ie.state.keySeq==Be&&(ie.state.keySeq=null,ie.display.input.reset())}),tf(ie,Be+" "+he,Te,Me))return!0}return tf(ie,he,Te,Me)}function tf(ie,he,Te,Me){var Be=xp(ie,he,Me);return Be=="multi"&&(ie.state.keySeq=he),Be=="handled"&&mr(ie,"keyHandled",ie,he,Te),(Be=="handled"||Be=="multi")&&(jn(Te),lo(ie)),!!Be}function nf(ie,he){var Te=qg(he,!0);return Te?he.shiftKey&&!ie.state.keySeq?Nc(ie,"Shift-"+Te,he,function(Me){return Sh(ie,Me,!0)})||Nc(ie,Te,he,function(Me){if(typeof Me=="string"?/^go[A-Z]/.test(Me):Me.motion)return Sh(ie,Me)}):Nc(ie,Te,he,function(Me){return Sh(ie,Me)}):!1}function rf(ie,he,Te){return Nc(ie,"'"+Te+"'",he,function(Me){return Sh(ie,Me,!0)})}var jc=null;function wp(ie){var he=this;if(!(ie.target&&ie.target!=he.display.input.getField())&&(he.curOp.focus=ze(),!Ut(he,ie))){Ne&&ve<11&&ie.keyCode==27&&(ie.returnValue=!1);var Te=ie.keyCode;he.display.shift=Te==16||ie.shiftKey;var Me=nf(he,ie);ye&&(jc=Me?Te:null,!Me&&Te==88&&!Qr&&(ae?ie.metaKey:ie.ctrlKey)&&he.replaceSelection("",null,"cut")),Qe&&!ae&&!Me&&Te==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),Te==18&&!/\bCodeMirror-crosshair\b/.test(he.display.lineDiv.className)&&bp(he)}}function bp(ie){var he=ie.display.lineDiv;Ke(he,"CodeMirror-crosshair");function Te(Me){(Me.keyCode==18||!Me.altKey)&&(je(he,"CodeMirror-crosshair"),en(document,"keyup",Te),en(document,"mouseover",Te))}jt(document,"keyup",Te),jt(document,"mouseover",Te)}function Pp(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),Ut(this,ie)}function Tl(ie){var he=this;if(!(ie.target&&ie.target!=he.display.input.getField())&&!(Ja(he.display,ie)||Ut(he,ie)||ie.ctrlKey&&!ie.altKey||ae&&ie.metaKey)){var Te=ie.keyCode,Me=ie.charCode;if(ye&&Te==jc){jc=null,jn(ie);return}if(!(ye&&(!ie.which||ie.which<10)&&nf(he,ie))){var Be=String.fromCharCode(Me==null?Te:Me);Be!="\b"&&(rf(he,ie,Be)||he.display.input.onKeyPress(ie))}}}var em=400,Cp=function(ie,he,Te){this.time=ie,this.pos=he,this.button=Te};Cp.prototype.compare=function(ie,he,Te){return this.time+em>ie&&Sn(he,this.pos)==0&&Te==this.button};var xh,Ic;function Ep(ie,he){var Te=+new Date;return Ic&&Ic.compare(Te,ie,he)?(xh=Ic=null,"triple"):xh&&xh.compare(Te,ie,he)?(Ic=new Cp(Te,ie,he),xh=null,"double"):(xh=new Cp(Te,ie,he),Ic=null,"single")}function Ll(ie){var he=this,Te=he.display;if(!(Ut(he,ie)||Te.activeTouch&&Te.input.supportsTouch())){if(Te.input.ensurePolled(),Te.shift=ie.shiftKey,Ja(Te,ie)){fe||(Te.scroller.draggable=!1,setTimeout(function(){return Te.scroller.draggable=!0},100));return}if(!sf(he,ie)){var Me=es(he,ie),Be=gr(ie),st=Me?Ep(Me,Be):"single";window.focus(),Be==1&&he.state.selectingText&&he.state.selectingText(ie),!(Me&&Mp(he,Be,Me,st,ie))&&(Be==1?Me?tm(he,Me,st,ie):xr(ie)==Te.scroller&&jn(ie):Be==2?(Me&&Yd(he.doc,Me),setTimeout(function(){return Te.input.focus()},20)):Be==3&&(Ee?he.display.input.onContextMenu(ie):_o(he)))}}}function Mp(ie,he,Te,Me,Be){var st="Click";return Me=="double"?st="Double"+st:Me=="triple"&&(st="Triple"+st),st=(he==1?"Left":he==2?"Middle":"Right")+st,Nc(ie,vp(st,Be),Be,function(Mt){if(typeof Mt=="string"&&(Mt=zu[Mt]),!Mt)return!1;var Bt=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),Bt=Mt(ie,Te)!=wt}finally{ie.state.suppressEdits=!1}return Bt})}function of(ie,he,Te){var Me=ie.getOption("configureMouse"),Be=Me?Me(ie,he,Te):{};if(Be.unit==null){var st=re?Te.shiftKey&&Te.metaKey:Te.altKey;Be.unit=st?"rectangle":he=="single"?"char":he=="double"?"word":"line"}return(Be.extend==null||ie.doc.extend)&&(Be.extend=ie.doc.extend||Te.shiftKey),Be.addNew==null&&(Be.addNew=ae?Te.metaKey:Te.ctrlKey),Be.moveOnDrag==null&&(Be.moveOnDrag=!(ae?Te.altKey:Te.ctrlKey)),Be}function tm(ie,he,Te,Me){Ne?setTimeout(pt(Eo,ie),0):ie.curOp.focus=ze();var Be=of(ie,Te,Me),st=ie.doc.sel,Mt;ie.options.dragDrop&&dr&&!ie.isReadOnly()&&Te=="single"&&(Mt=st.contains(he))>-1&&(Sn((Mt=st.ranges[Mt]).from(),he)<0||he.xRel>0)&&(Sn(Mt.to(),he)>0||he.xRel<0)?Tp(ie,Me,he,Be):n0(ie,Me,he,Be)}function Tp(ie,he,Te,Me){var Be=ie.display,st=!1,Mt=ca(ie,function(Zt){fe&&(Be.scroller.draggable=!1),ie.state.draggingText=!1,en(Be.wrapper.ownerDocument,"mouseup",Mt),en(Be.wrapper.ownerDocument,"mousemove",Bt),en(Be.scroller,"dragstart",Dt),en(Be.scroller,"drop",Mt),st||(jn(Zt),Me.addNew||Yd(ie.doc,Te,null,null,Me.extend),fe&&!we||Ne&&ve==9?setTimeout(function(){Be.wrapper.ownerDocument.body.focus({preventScroll:!0}),Be.input.focus()},20):Be.input.focus())}),Bt=function(Zt){st=st||Math.abs(he.clientX-Zt.clientX)+Math.abs(he.clientY-Zt.clientY)>=10},Dt=function(){return st=!0};fe&&(Be.scroller.draggable=!0),ie.state.draggingText=Mt,Mt.copy=!Me.moveOnDrag,Be.scroller.dragDrop&&Be.scroller.dragDrop(),jt(Be.wrapper.ownerDocument,"mouseup",Mt),jt(Be.wrapper.ownerDocument,"mousemove",Bt),jt(Be.scroller,"dragstart",Dt),jt(Be.scroller,"drop",Mt),_o(ie),setTimeout(function(){return Be.input.focus()},20)}function Lp(ie,he,Te){if(Te=="char")return new co(he,he);if(Te=="word")return ie.findWordAt(he);if(Te=="line")return new co(gn(he.line,0),Cn(ie.doc,gn(he.line+1,0)));var Me=Te(ie,he);return new co(Me.from,Me.to)}function n0(ie,he,Te,Me){var Be=ie.display,st=ie.doc;jn(he);var Mt,Bt,Dt=st.sel,Zt=Dt.ranges;if(Me.addNew&&!Me.extend?(Bt=st.sel.contains(Te),Bt>-1?Mt=Zt[Bt]:Mt=new co(Te,Te)):(Mt=st.sel.primary(),Bt=st.sel.primIndex),Me.unit=="rectangle")Me.addNew||(Mt=new co(Te,Te)),Te=es(ie,he,!0,!0),Bt=-1;else{var vn=Lp(ie,Te,Me.unit);Me.extend?Mt=Xd(Mt,vn.anchor,vn.head,Me.extend):Mt=vn}Me.addNew?Bt==-1?(Bt=Zt.length,Ua(st,dl(ie,Zt.concat([Mt]),Bt),{scroll:!1,origin:"*mouse"})):Zt.length>1&&Zt[Bt].empty()&&Me.unit=="char"&&!Me.extend?(Ua(st,dl(ie,Zt.slice(0,Bt).concat(Zt.slice(Bt+1)),0),{scroll:!1,origin:"*mouse"}),Dt=st.sel):Ru(st,Bt,Mt,mt):(Bt=0,Ua(st,new Js([Mt],0),mt),Dt=st.sel);var Jt=Te;function Bn(Ur){if(Sn(Jt,Ur)!=0)if(Jt=Ur,Me.unit=="rectangle"){for(var si=[],ki=ie.options.tabSize,Hr=qe(rn(st,Te.line).text,Te.ch,ki),zi=qe(rn(st,Ur.line).text,Ur.ch,ki),Do=Math.min(Hr,zi),da=Math.max(Hr,zi),Ko=Math.min(Te.line,Ur.line),fs=Math.min(ie.lastLine(),Math.max(Te.line,Ur.line));Ko<=fs;Ko++){var Wa=rn(st,Ko).text,oa=At(Wa,Do,ki);Do==da?si.push(new co(gn(Ko,oa),gn(Ko,oa))):Wa.length>oa&&si.push(new co(gn(Ko,oa),gn(Ko,At(Wa,da,ki))))}si.length||si.push(new co(Te,Te)),Ua(st,dl(ie,Dt.ranges.slice(0,Bt).concat(si),Bt),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(Ur)}else{var Es=Mt,Ba=Lp(ie,Ur,Me.unit),aa=Es.anchor,to;Sn(Ba.anchor,aa)>0?(to=Ba.head,aa=cn(Es.from(),Ba.anchor)):(to=Ba.anchor,aa=dn(Es.to(),Ba.head));var $o=Dt.ranges.slice(0);$o[Bt]=nm(ie,new co(Cn(st,aa),to)),Ua(st,dl(ie,$o,Bt),mt)}}var An=Be.wrapper.getBoundingClientRect(),ir=0;function lr(Ur){var si=++ir,ki=es(ie,Ur,!0,Me.unit=="rectangle");if(ki)if(Sn(ki,Jt)!=0){ie.curOp.focus=ze(),Bn(ki);var Hr=Wi(Be,st);(ki.line>=Hr.to||ki.line<Hr.from)&&setTimeout(ca(ie,function(){ir==si&&lr(Ur)}),150)}else{var zi=Ur.clientY<An.top?-20:Ur.clientY>An.bottom?20:0;zi&&setTimeout(ca(ie,function(){ir==si&&(Be.scroller.scrollTop+=zi,lr(Ur))}),50)}}function br(Ur){ie.state.selectingText=!1,ir=1/0,Ur&&(jn(Ur),Be.input.focus()),en(Be.wrapper.ownerDocument,"mousemove",Dr),en(Be.wrapper.ownerDocument,"mouseup",ti),st.history.lastSelOrigin=null}var Dr=ca(ie,function(Ur){Ur.buttons===0||!gr(Ur)?br(Ur):lr(Ur)}),ti=ca(ie,br);ie.state.selectingText=ti,jt(Be.wrapper.ownerDocument,"mousemove",Dr),jt(Be.wrapper.ownerDocument,"mouseup",ti)}function nm(ie,he){var Te=he.anchor,Me=he.head,Be=rn(ie.doc,Te.line);if(Sn(Te,Me)==0&&Te.sticky==Me.sticky)return he;var st=yt(Be);if(!st)return he;var Mt=Ie(st,Te.ch,Te.sticky),Bt=st[Mt];if(Bt.from!=Te.ch&&Bt.to!=Te.ch)return he;var Dt=Mt+(Bt.from==Te.ch==(Bt.level!=1)?0:1);if(Dt==0||Dt==st.length)return he;var Zt;if(Me.line!=Te.line)Zt=(Me.line-Te.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var vn=Ie(st,Me.ch,Me.sticky),Jt=vn-Mt||(Me.ch-Te.ch)*(Bt.level==1?-1:1);vn==Dt-1||vn==Dt?Zt=Jt<0:Zt=Jt>0}var Bn=st[Dt+(Zt?-1:0)],An=Zt==(Bn.level==1),ir=An?Bn.from:Bn.to,lr=An?"after":"before";return Te.ch==ir&&Te.sticky==lr?he:new co(new gn(Te.line,ir,lr),Me)}function af(ie,he,Te,Me){var Be,st;if(he.touches)Be=he.touches[0].clientX,st=he.touches[0].clientY;else try{Be=he.clientX,st=he.clientY}catch(Bn){return!1}if(Be>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;Me&&jn(he);var Mt=ie.display,Bt=Mt.lineDiv.getBoundingClientRect();if(st>Bt.bottom||!ln(ie,Te))return Kn(he);st-=Bt.top-Mt.viewOffset;for(var Dt=0;Dt<ie.display.gutterSpecs.length;++Dt){var Zt=Mt.gutters.childNodes[Dt];if(Zt&&Zt.getBoundingClientRect().right>=Be){var vn=xn(ie.doc,st),Jt=ie.display.gutterSpecs[Dt];return It(ie,Te,ie,vn,Jt.className,he),Kn(he)}}}function sf(ie,he){return af(ie,he,"gutterClick",!0)}function lf(ie,he){Ja(ie.display,he)||rm(ie,he)||Ut(ie,he,"contextmenu")||Ee||ie.display.input.onContextMenu(he)}function rm(ie,he){return ln(ie,"gutterContextMenu")?af(ie,he,"gutterContextMenu",!1):!1}function uf(ie){ie.display.wrapper.className=ie.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ie.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ho(ie)}var Gu={toString:function(){return"CodeMirror.Init"}},kp={},ld={};function im(ie){var he=ie.optionHandlers;function Te(Me,Be,st,Mt){ie.defaults[Me]=Be,st&&(he[Me]=Mt?function(Bt,Dt,Zt){Zt!=Gu&&st(Bt,Dt,Zt)}:st)}ie.defineOption=Te,ie.Init=Gu,Te("value","",function(Me,Be){return Me.setValue(Be)},!0),Te("mode",null,function(Me,Be){Me.doc.modeOption=Be,_i(Me)},!0),Te("indentUnit",2,_i,!0),Te("indentWithTabs",!1),Te("smartIndent",!0),Te("tabSize",4,function(Me){$h(Me),Ho(Me),Io(Me)},!0),Te("lineSeparator",null,function(Me,Be){if(Me.doc.lineSep=Be,!!Be){var st=[],Mt=Me.doc.first;Me.doc.iter(function(Dt){for(var Zt=0;;){var vn=Dt.text.indexOf(Be,Zt);if(vn==-1)break;Zt=vn+Be.length,st.push(gn(Mt,vn))}Mt++});for(var Bt=st.length-1;Bt>=0;Bt--)Lc(Me.doc,Be,st[Bt],gn(st[Bt].line,st[Bt].ch+Be.length))}}),Te("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(Me,Be,st){Me.state.specialChars=new RegExp(Be.source+(Be.test(" ")?"":"| "),"g"),st!=Gu&&Me.refresh()}),Te("specialCharPlaceholder",ao,function(Me){return Me.refresh()},!0),Te("electricChars",!0),Te("inputStyle",ee?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),Te("spellcheck",!1,function(Me,Be){return Me.getInputField().spellcheck=Be},!0),Te("autocorrect",!1,function(Me,Be){return Me.getInputField().autocorrect=Be},!0),Te("autocapitalize",!1,function(Me,Be){return Me.getInputField().autocapitalize=Be},!0),Te("rtlMoveVisually",!le),Te("wholeLineUpdateBefore",!0),Te("theme","default",function(Me){uf(Me),_s(Me)},!0),Te("keyMap","default",function(Me,Be,st){var Mt=Ac(Be),Bt=st!=Gu&&Ac(st);Bt&&Bt.detach&&Bt.detach(Me,Mt),Mt.attach&&Mt.attach(Me,Bt||null)}),Te("extraKeys",null),Te("configureMouse",null),Te("lineWrapping",!1,om,!0),Te("gutters",[],function(Me,Be){Me.display.gutterSpecs=Pa(Be,Me.options.lineNumbers),_s(Me)},!0),Te("fixedGutter",!0,function(Me,Be){Me.display.gutters.style.left=Be?Wh(Me.display)+"px":"0",Me.refresh()},!0),Te("coverGutterNextToScrollbar",!1,function(Me){return Lu(Me)},!0),Te("scrollbarStyle","native",function(Me){np(Me),Lu(Me),Me.display.scrollbars.setScrollTop(Me.doc.scrollTop),Me.display.scrollbars.setScrollLeft(Me.doc.scrollLeft)},!0),Te("lineNumbers",!1,function(Me,Be){Me.display.gutterSpecs=Pa(Me.options.gutters,Be),_s(Me)},!0),Te("firstLineNumber",1,_s,!0),Te("lineNumberFormatter",function(Me){return Me},_s,!0),Te("showCursorWhenSelecting",!1,ua,!0),Te("resetSelectionOnContextMenu",!0),Te("lineWiseCopyCut",!0),Te("pasteLinesPerSelection",!0),Te("selectionsMayTouch",!1),Te("readOnly",!1,function(Me,Be){Be=="nocursor"&&(Sc(Me),Me.display.input.blur()),Me.display.input.readOnlyChanged(Be)}),Te("screenReaderLabel",null,function(Me,Be){Be=Be===""?null:Be,Me.display.input.screenReaderLabelChanged(Be)}),Te("disableInput",!1,function(Me,Be){Be||Me.display.input.reset()},!0),Te("dragDrop",!0,cf),Te("allowDropFileTypes",null),Te("cursorBlinkRate",530),Te("cursorScrollMargin",0),Te("cursorHeight",1,ua,!0),Te("singleCursorHeightPerLine",!0,ua,!0),Te("workTime",100),Te("workDelay",100),Te("flattenSpans",!0,$h,!0),Te("addModeClass",!1,$h,!0),Te("pollInterval",100),Te("undoDepth",200,function(Me,Be){return Me.doc.history.undoDepth=Be}),Te("historyEventDelay",1250),Te("viewportMargin",10,function(Me){return Me.refresh()},!0),Te("maxHighlightLength",1e4,$h,!0),Te("moveInputWithCursor",!0,function(Me,Be){Be||Me.display.input.resetPosition()}),Te("tabindex",null,function(Me,Be){return Me.display.input.getField().tabIndex=Be||""}),Te("autofocus",null),Te("direction","ltr",function(Me,Be){return Me.doc.setDirection(Be)},!0),Te("phrases",null)}function cf(ie,he,Te){var Me=Te&&Te!=Gu;if(!he!=!Me){var Be=ie.display.dragFunctions,st=he?jt:en;st(ie.display.scroller,"dragstart",Be.start),st(ie.display.scroller,"dragenter",Be.enter),st(ie.display.scroller,"dragover",Be.over),st(ie.display.scroller,"dragleave",Be.leave),st(ie.display.scroller,"drop",Be.drop)}}function om(ie){ie.options.lineWrapping?(Ke(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(je(ie.display.wrapper,"CodeMirror-wrap"),Ti(ie)),di(ie),Io(ie),Ho(ie),setTimeout(function(){return Lu(ie)},100)}function eo(ie,he){var Te=this;if(!(this instanceof eo))return new eo(ie,he);this.options=he=he?bt(he):{},bt(kp,he,!1);var Me=he.value;typeof Me=="string"?Me=new Fa(Me,he.mode,null,he.lineSeparator,he.direction):he.mode&&(Me.modeOption=he.mode),this.doc=Me;var Be=new eo.inputStyles[he.inputStyle](this),st=this.display=new Du(ie,Me,Be,he);st.wrapper.CodeMirror=this,uf(this),he.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),np(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 at,keySeq:null,specialChars:null},he.autofocus&&!ee&&st.input.focus(),Ne&&ve<11&&setTimeout(function(){return Te.display.input.reset(!0)},20),wh(this),Gs(),ku(this),this.curOp.forceUpdate=!0,Vd(this,Me),he.autofocus&&!ee||this.hasFocus()?setTimeout(function(){Te.hasFocus()&&!Te.state.focused&&Ji(Te)},20):Sc(this);for(var Mt in ld)ld.hasOwnProperty(Mt)&&ld[Mt](this,he[Mt],Gu);ra(this),he.finishInit&&he.finishInit(this);for(var Bt=0;Bt<Dc.length;++Bt)Dc[Bt](this);Ou(this),fe&&he.lineWrapping&&getComputedStyle(st.lineDiv).textRendering=="optimizelegibility"&&(st.lineDiv.style.textRendering="auto")}eo.defaults=kp,eo.optionHandlers=ld;function wh(ie){var he=ie.display;jt(he.scroller,"mousedown",ca(ie,Ll)),Ne&&ve<11?jt(he.scroller,"dblclick",ca(ie,function(Dt){if(!Ut(ie,Dt)){var Zt=es(ie,Dt);if(!(!Zt||sf(ie,Dt)||Ja(ie.display,Dt))){jn(Dt);var vn=ie.findWordAt(Zt);Yd(ie.doc,vn.anchor,vn.head)}}})):jt(he.scroller,"dblclick",function(Dt){return Ut(ie,Dt)||jn(Dt)}),jt(he.scroller,"contextmenu",function(Dt){return lf(ie,Dt)}),jt(he.input.getField(),"contextmenu",function(Dt){he.scroller.contains(Dt.target)||lf(ie,Dt)});var Te,Me={end:0};function Be(){he.activeTouch&&(Te=setTimeout(function(){return he.activeTouch=null},1e3),Me=he.activeTouch,Me.end=+new Date)}function st(Dt){if(Dt.touches.length!=1)return!1;var Zt=Dt.touches[0];return Zt.radiusX<=1&&Zt.radiusY<=1}function Mt(Dt,Zt){if(Zt.left==null)return!0;var vn=Zt.left-Dt.left,Jt=Zt.top-Dt.top;return vn*vn+Jt*Jt>20*20}jt(he.scroller,"touchstart",function(Dt){if(!Ut(ie,Dt)&&!st(Dt)&&!sf(ie,Dt)){he.input.ensurePolled(),clearTimeout(Te);var Zt=+new Date;he.activeTouch={start:Zt,moved:!1,prev:Zt-Me.end<=300?Me:null},Dt.touches.length==1&&(he.activeTouch.left=Dt.touches[0].pageX,he.activeTouch.top=Dt.touches[0].pageY)}}),jt(he.scroller,"touchmove",function(){he.activeTouch&&(he.activeTouch.moved=!0)}),jt(he.scroller,"touchend",function(Dt){var Zt=he.activeTouch;if(Zt&&!Ja(he,Dt)&&Zt.left!=null&&!Zt.moved&&new Date-Zt.start<300){var vn=ie.coordsChar(he.activeTouch,"page"),Jt;!Zt.prev||Mt(Zt,Zt.prev)?Jt=new co(vn,vn):!Zt.prev.prev||Mt(Zt,Zt.prev.prev)?Jt=ie.findWordAt(vn):Jt=new co(gn(vn.line,0),Cn(ie.doc,gn(vn.line+1,0))),ie.setSelection(Jt.anchor,Jt.head),ie.focus(),jn(Dt)}Be()}),jt(he.scroller,"touchcancel",Be),jt(he.scroller,"scroll",function(){he.scroller.clientHeight&&(wc(ie,he.scroller.scrollTop),lu(ie,he.scroller.scrollLeft,!0),It(ie,"scroll",ie))}),jt(he.scroller,"mousewheel",function(Dt){return Ca(ie,Dt)}),jt(he.scroller,"DOMMouseScroll",function(Dt){return Ca(ie,Dt)}),jt(he.wrapper,"scroll",function(){return he.wrapper.scrollTop=he.wrapper.scrollLeft=0}),he.dragFunctions={enter:function(Dt){Ut(ie,Dt)||ar(Dt)},over:function(Dt){Ut(ie,Dt)||(Yg(ie,Dt),ar(Dt))},start:function(Dt){return Xg(ie,Dt)},drop:ca(ie,dp),leave:function(Dt){Ut(ie,Dt)||Jg(ie)}};var Bt=he.input.getField();jt(Bt,"keyup",function(Dt){return Pp.call(ie,Dt)}),jt(Bt,"keydown",ca(ie,wp)),jt(Bt,"keypress",ca(ie,Tl)),jt(Bt,"focus",function(Dt){return Ji(ie,Dt)}),jt(Bt,"blur",function(Dt){return Sc(ie,Dt)})}var Dc=[];eo.defineInitHook=function(ie){return Dc.push(ie)};function ha(ie,he,Te,Me){var Be=ie.doc,st;Te==null&&(Te="add"),Te=="smart"&&(Be.mode.indent?st=Or(ie,he).state:Te="prev");var Mt=ie.options.tabSize,Bt=rn(Be,he),Dt=qe(Bt.text,null,Mt);Bt.stateAfter&&(Bt.stateAfter=null);var Zt=Bt.text.match(/^\s*/)[0],vn;if(!Me&&!/\S/.test(Bt.text))vn=0,Te="not";else if(Te=="smart"&&(vn=Be.mode.indent(st,Bt.text.slice(Zt.length),Bt.text),vn==wt||vn>150)){if(!Me)return;Te="prev"}Te=="prev"?he>Be.first?vn=qe(rn(Be,he-1).text,null,Mt):vn=0:Te=="add"?vn=Dt+ie.options.indentUnit:Te=="subtract"?vn=Dt-ie.options.indentUnit:typeof Te=="number"&&(vn=Dt+Te),vn=Math.max(0,vn);var Jt="",Bn=0;if(ie.options.indentWithTabs)for(var An=Math.floor(vn/Mt);An;--An)Bn+=Mt,Jt+=" ";if(Bn<vn&&(Jt+=Wt(vn-Bn)),Jt!=Zt)return Lc(Be,Jt,gn(he,0),gn(he,Zt.length),"+input"),Bt.stateAfter=null,!0;for(var ir=0;ir<Be.sel.ranges.length;ir++){var lr=Be.sel.ranges[ir];if(lr.head.line==he&&lr.head.ch<Zt.length){var br=gn(he,Zt.length);Ru(Be,ir,new co(br,br));break}}}var ds=null;function Fc(ie){ds=ie}function ud(ie,he,Te,Me,Be){var st=ie.doc;ie.display.shift=!1,Me||(Me=st.sel);var Mt=+new Date-200,Bt=Be=="paste"||ie.state.pasteIncoming>Mt,Dt=jr(he),Zt=null;if(Bt&&Me.ranges.length>1)if(ds&&ds.text.join(`
|
|
|
`)==he){if(Me.ranges.length%ds.text.length==0){Zt=[];for(var vn=0;vn<ds.text.length;vn++)Zt.push(st.splitLines(ds.text[vn]))}}else Dt.length==Me.ranges.length&&ie.options.pasteLinesPerSelection&&(Zt=St(Dt,function(Dr){return[Dr]}));for(var Jt=ie.curOp.updateInput,Bn=Me.ranges.length-1;Bn>=0;Bn--){var An=Me.ranges[Bn],ir=An.from(),lr=An.to();An.empty()&&(Te&&Te>0?ir=gn(ir.line,ir.ch-Te):ie.state.overwrite&&!Bt?lr=gn(lr.line,Math.min(rn(st,lr.line).text.length,lr.ch+Et(Dt).length)):Bt&&ds&&ds.lineWise&&ds.text.join(`
|
|
|
`)==Dt.join(`
|
|
|
`)&&(ir=lr=gn(ir.line,0)));var br={from:ir,to:lr,text:Zt?Zt[Bn%Zt.length]:Dt,origin:Be||(Bt?"paste":ie.state.cutIncoming>Mt?"cut":"+input")};_u(ie.doc,br),mr(ie,"inputRead",ie,br)}he&&!Bt&&Ap(ie,he),su(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=Jt),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function Op(ie,he){var Te=ie.clipboardData&&ie.clipboardData.getData("Text");if(Te)return ie.preventDefault(),!he.isReadOnly()&&!he.options.disableInput&&no(he,function(){return ud(he,Te,0,null,"paste")}),!0}function Ap(ie,he){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var Te=ie.doc.sel,Me=Te.ranges.length-1;Me>=0;Me--){var Be=Te.ranges[Me];if(!(Be.head.ch>100||Me&&Te.ranges[Me-1].head.line==Be.head.line)){var st=ie.getModeAt(Be.head),Mt=!1;if(st.electricChars){for(var Bt=0;Bt<st.electricChars.length;Bt++)if(he.indexOf(st.electricChars.charAt(Bt))>-1){Mt=ha(ie,Be.head.line,"smart");break}}else st.electricInput&&st.electricInput.test(rn(ie.doc,Be.head.line).text.slice(0,Be.head.ch))&&(Mt=ha(ie,Be.head.line,"smart"));Mt&&mr(ie,"electricInput",ie,Be.head.line)}}}function Np(ie){for(var he=[],Te=[],Me=0;Me<ie.doc.sel.ranges.length;Me++){var Be=ie.doc.sel.ranges[Me].head.line,st={anchor:gn(Be,0),head:gn(Be+1,0)};Te.push(st),he.push(ie.getRange(st.anchor,st.head))}return{text:he,ranges:Te}}function jp(ie,he,Te,Me){ie.setAttribute("autocorrect",Te?"":"off"),ie.setAttribute("autocapitalize",Me?"":"off"),ie.setAttribute("spellcheck",!!he)}function Ip(){var ie=Oe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),he=Oe("div",[ie],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return fe?ie.style.width="1000px":ie.setAttribute("wrap","off"),de&&(ie.style.border="1px solid black"),jp(ie),he}function Hu(ie){var he=ie.optionHandlers,Te=ie.helpers={};ie.prototype={constructor:ie,focus:function(){window.focus(),this.display.input.focus()},setOption:function(Me,Be){var st=this.options,Mt=st[Me];st[Me]==Be&&Me!="mode"||(st[Me]=Be,he.hasOwnProperty(Me)&&ca(this,he[Me])(this,Be,Mt),It(this,"optionChange",this,Me))},getOption:function(Me){return this.options[Me]},getDoc:function(){return this.doc},addKeyMap:function(Me,Be){this.state.keyMaps[Be?"push":"unshift"](Ac(Me))},removeKeyMap:function(Me){for(var Be=this.state.keyMaps,st=0;st<Be.length;++st)if(Be[st]==Me||Be[st].name==Me)return Be.splice(st,1),!0},addOverlay:xa(function(Me,Be){var st=Me.token?Me:ie.getMode(this.options,Me);if(st.startState)throw new Error("Overlays may not be stateful.");tt(this.state.overlays,{mode:st,modeSpec:Me,opaque:Be&&Be.opaque,priority:Be&&Be.priority||0},function(Mt){return Mt.priority}),this.state.modeGen++,Io(this)}),removeOverlay:xa(function(Me){for(var Be=this.state.overlays,st=0;st<Be.length;++st){var Mt=Be[st].modeSpec;if(Mt==Me||typeof Me=="string"&&Mt.name==Me){Be.splice(st,1),this.state.modeGen++,Io(this);return}}}),indentLine:xa(function(Me,Be,st){typeof Be!="string"&&typeof Be!="number"&&(Be==null?Be=this.options.smartIndent?"smart":"prev":Be=Be?"add":"subtract"),Fn(this.doc,Me)&&ha(this,Me,Be,st)}),indentSelection:xa(function(Me){for(var Be=this.doc.sel.ranges,st=-1,Mt=0;Mt<Be.length;Mt++){var Bt=Be[Mt];if(Bt.empty())Bt.head.line>st&&(ha(this,Bt.head.line,Me,!0),st=Bt.head.line,Mt==this.doc.sel.primIndex&&su(this));else{var Dt=Bt.from(),Zt=Bt.to(),vn=Math.max(st,Dt.line);st=Math.min(this.lastLine(),Zt.line-(Zt.ch?0:1))+1;for(var Jt=vn;Jt<st;++Jt)ha(this,Jt,Me);var Bn=this.doc.sel.ranges;Dt.ch==0&&Be.length==Bn.length&&Bn[Mt].from().ch>0&&Ru(this.doc,Mt,new co(Dt,Bn[Mt].to()),vt)}}}),getTokenAt:function(Me,Be){return Qn(this,Me,Be)},getLineTokens:function(Me,Be){return Qn(this,gn(Me),Be,!0)},getTokenTypeAt:function(Me){Me=Cn(this.doc,Me);var Be=wr(this,rn(this.doc,Me.line)),st=0,Mt=(Be.length-1)/2,Bt=Me.ch,Dt;if(Bt==0)Dt=Be[2];else for(;;){var Zt=st+Mt>>1;if((Zt?Be[Zt*2-1]:0)>=Bt)Mt=Zt;else if(Be[Zt*2+1]<Bt)st=Zt+1;else{Dt=Be[Zt*2+2];break}}var vn=Dt?Dt.indexOf("overlay "):-1;return vn<0?Dt:vn==0?null:Dt.slice(0,vn-1)},getModeAt:function(Me){var Be=this.doc.mode;return Be.innerMode?ie.innerMode(Be,this.getTokenAt(Me).state).mode:Be},getHelper:function(Me,Be){return this.getHelpers(Me,Be)[0]},getHelpers:function(Me,Be){var st=[];if(!Te.hasOwnProperty(Be))return st;var Mt=Te[Be],Bt=this.getModeAt(Me);if(typeof Bt[Be]=="string")Mt[Bt[Be]]&&st.push(Mt[Bt[Be]]);else if(Bt[Be])for(var Dt=0;Dt<Bt[Be].length;Dt++){var Zt=Mt[Bt[Be][Dt]];Zt&&st.push(Zt)}else Bt.helperType&&Mt[Bt.helperType]?st.push(Mt[Bt.helperType]):Mt[Bt.name]&&st.push(Mt[Bt.name]);for(var vn=0;vn<Mt._global.length;vn++){var Jt=Mt._global[vn];Jt.pred(Bt,this)&>(st,Jt.val)==-1&&st.push(Jt.val)}return st},getStateAfter:function(Me,Be){var st=this.doc;return Me=Pn(st,Me==null?st.first+st.size-1:Me),Or(this,Me+1,Be).state},cursorCoords:function(Me,Be){var st,Mt=this.doc.sel.primary();return Me==null?st=Mt.head:typeof Me=="object"?st=Cn(this.doc,Me):st=Me?Mt.from():Mt.to(),Lo(this,st,Be||"page")},charCoords:function(Me,Be){return Bs(this,Cn(this.doc,Me),Be||"page")},coordsChar:function(Me,Be){return Me=Pl(this,Me,Be||"page"),Rd(this,Me.left,Me.top)},lineAtHeight:function(Me,Be){return Me=Pl(this,{top:Me,left:0},Be||"page").top,xn(this.doc,Me+this.display.viewOffset)},heightAtLine:function(Me,Be,st){var Mt=!1,Bt;if(typeof Me=="number"){var Dt=this.doc.first+this.doc.size-1;Me<this.doc.first?Me=this.doc.first:Me>Dt&&(Me=Dt,Mt=!0),Bt=rn(this.doc,Me)}else Bt=Me;return Ro(this,Bt,{top:0,left:0},Be||"page",st||Mt).top+(Mt?this.doc.height-vi(Bt):0)},defaultTextHeight:function(){return au(this.display)},defaultCharWidth:function(){return yc(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(Me,Be,st,Mt,Bt){var Dt=this.display;Me=Lo(this,Cn(this.doc,Me));var Zt=Me.bottom,vn=Me.left;if(Be.style.position="absolute",Be.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Be),Dt.sizer.appendChild(Be),Mt=="over")Zt=Me.top;else if(Mt=="above"||Mt=="near"){var Jt=Math.max(Dt.wrapper.clientHeight,this.doc.height),Bn=Math.max(Dt.sizer.clientWidth,Dt.lineSpace.clientWidth);(Mt=="above"||Me.bottom+Be.offsetHeight>Jt)&&Me.top>Be.offsetHeight?Zt=Me.top-Be.offsetHeight:Me.bottom+Be.offsetHeight<=Jt&&(Zt=Me.bottom),vn+Be.offsetWidth>Bn&&(vn=Bn-Be.offsetWidth)}Be.style.top=Zt+"px",Be.style.left=Be.style.right="",Bt=="right"?(vn=Dt.sizer.clientWidth-Be.offsetWidth,Be.style.right="0px"):(Bt=="left"?vn=0:Bt=="middle"&&(vn=(Dt.sizer.clientWidth-Be.offsetWidth)/2),Be.style.left=vn+"px"),st&&Kh(this,{left:vn,top:Zt,right:vn+Be.offsetWidth,bottom:Zt+Be.offsetHeight})},triggerOnKeyDown:xa(wp),triggerOnKeyPress:xa(Tl),triggerOnKeyUp:Pp,triggerOnMouseDown:xa(Ll),execCommand:function(Me){if(zu.hasOwnProperty(Me))return zu[Me].call(null,this)},triggerElectric:xa(function(Me){Ap(this,Me)}),findPosH:function(Me,Be,st,Mt){var Bt=1;Be<0&&(Bt=-1,Be=-Be);for(var Dt=Cn(this.doc,Me),Zt=0;Zt<Be&&(Dt=cd(this.doc,Dt,Bt,st,Mt),!Dt.hitSide);++Zt);return Dt},moveH:xa(function(Me,Be){var st=this;this.extendSelectionsBy(function(Mt){return st.display.shift||st.doc.extend||Mt.empty()?cd(st.doc,Mt.head,Me,Be,st.options.rtlMoveVisually):Me<0?Mt.from():Mt.to()},xt)}),deleteH:xa(function(Me,Be){var st=this.doc.sel,Mt=this.doc;st.somethingSelected()?Mt.replaceSelection("",null,"+delete"):Cs(this,function(Bt){var Dt=cd(Mt,Bt.head,Me,Be,!1);return Me<0?{from:Dt,to:Bt.head}:{from:Bt.head,to:Dt}})}),findPosV:function(Me,Be,st,Mt){var Bt=1,Dt=Mt;Be<0&&(Bt=-1,Be=-Be);for(var Zt=Cn(this.doc,Me),vn=0;vn<Be;++vn){var Jt=Lo(this,Zt,"div");if(Dt==null?Dt=Jt.left:Jt.left=Dt,Zt=Uu(this,Jt,Bt,st),Zt.hitSide)break}return Zt},moveV:xa(function(Me,Be){var st=this,Mt=this.doc,Bt=[],Dt=!this.display.shift&&!Mt.extend&&Mt.sel.somethingSelected();if(Mt.extendSelectionsBy(function(vn){if(Dt)return Me<0?vn.from():vn.to();var Jt=Lo(st,vn.head,"div");vn.goalColumn!=null&&(Jt.left=vn.goalColumn),Bt.push(Jt.left);var Bn=Uu(st,Jt,Me,Be);return Be=="page"&&vn==Mt.sel.primary()&&zd(st,Bs(st,Bn,"div").top-Jt.top),Bn},xt),Bt.length)for(var Zt=0;Zt<Mt.sel.ranges.length;Zt++)Mt.sel.ranges[Zt].goalColumn=Bt[Zt]}),findWordAt:function(Me){var Be=this.doc,st=rn(Be,Me.line).text,Mt=Me.ch,Bt=Me.ch;if(st){var Dt=this.getHelper(Me,"wordChars");(Me.sticky=="before"||Bt==st.length)&&Mt?--Mt:++Bt;for(var Zt=st.charAt(Mt),vn=dt(Zt,Dt)?function(Jt){return dt(Jt,Dt)}:/\s/.test(Zt)?function(Jt){return/\s/.test(Jt)}:function(Jt){return!/\s/.test(Jt)&&!dt(Jt)};Mt>0&&vn(st.charAt(Mt-1));)--Mt;for(;Bt<st.length&&vn(st.charAt(Bt));)++Bt}return new co(gn(Me.line,Mt),gn(Me.line,Bt))},toggleOverwrite:function(Me){Me!=null&&Me==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ke(this.display.cursorDiv,"CodeMirror-overwrite"):je(this.display.cursorDiv,"CodeMirror-overwrite"),It(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ze()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:xa(function(Me,Be){xc(this,Me,Be)}),getScrollInfo:function(){var Me=this.display.scroller;return{left:Me.scrollLeft,top:Me.scrollTop,height:Me.scrollHeight-qa(this)-this.display.barHeight,width:Me.scrollWidth-qa(this)-this.display.barWidth,clientHeight:dc(this),clientWidth:xs(this)}},scrollIntoView:xa(function(Me,Be){Me==null?(Me={from:this.doc.sel.primary().head,to:null},Be==null&&(Be=this.options.cursorScrollMargin)):typeof Me=="number"?Me={from:gn(Me,0),to:null}:Me.from==null&&(Me={from:Me,to:null}),Me.to||(Me.to=Me.from),Me.margin=Be||0,Me.from.line!=null?Qi(this,Me):Gd(this,Me.from,Me.to,Me.margin)}),setSize:xa(function(Me,Be){var st=this,Mt=function(Dt){return typeof Dt=="number"||/^\d+$/.test(String(Dt))?Dt+"px":Dt};Me!=null&&(this.display.wrapper.style.width=Mt(Me)),Be!=null&&(this.display.wrapper.style.height=Mt(Be)),this.options.lineWrapping&&Sa(this);var Bt=this.display.viewFrom;this.doc.iter(Bt,this.display.viewTo,function(Dt){if(Dt.widgets){for(var Zt=0;Zt<Dt.widgets.length;Zt++)if(Dt.widgets[Zt].noHScroll){Ri(st,Bt,"widget");break}}++Bt}),this.curOp.forceUpdate=!0,It(this,"refresh",this)}),operation:function(Me){return no(this,Me)},startOperation:function(){return ku(this)},endOperation:function(){return Ou(this)},refresh:xa(function(){var Me=this.display.cachedTextHeight;Io(this),this.curOp.forceUpdate=!0,Ho(this),xc(this,this.doc.scrollLeft,this.doc.scrollTop),ju(this.display),(Me==null||Math.abs(Me-au(this.display))>.5||this.options.lineWrapping)&&di(this),It(this,"refresh",this)}),swapDoc:xa(function(Me){var Be=this.doc;return Be.cm=null,this.state.selectingText&&this.state.selectingText(),Vd(this,Me),Ho(this),this.display.input.reset(),xc(this,Me.scrollLeft,Me.scrollTop),this.curOp.forceScroll=!0,mr(this,"swapDoc",this,Be),Be}),phrase:function(Me){var Be=this.options.phrases;return Be&&Object.prototype.hasOwnProperty.call(Be,Me)?Be[Me]:Me},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},mn(ie),ie.registerHelper=function(Me,Be,st){Te.hasOwnProperty(Me)||(Te[Me]=ie[Me]={_global:[]}),Te[Me][Be]=st},ie.registerGlobalHelper=function(Me,Be,st,Mt){ie.registerHelper(Me,Be,Mt),Te[Me]._global.push({pred:st,val:Mt})}}function cd(ie,he,Te,Me,Be){var st=he,Mt=Te,Bt=rn(ie,he.line),Dt=Be&&ie.direction=="rtl"?-Te:Te;function Zt(){var ti=he.line+Dt;return ti<ie.first||ti>=ie.first+ie.size?!1:(he=new gn(ti,he.ch,he.sticky),Bt=rn(ie,ti))}function vn(ti){var Ur;if(Me=="codepoint"){var si=Bt.text.charCodeAt(he.ch+(Me>0?0:-1));isNaN(si)?Ur=null:Ur=new gn(he.line,Math.max(0,Math.min(Bt.text.length,he.ch+Te*(si>=55296&&si<56320?2:1))),-Te)}else Be?Ur=ef(ie.cm,Bt,he,Te):Ur=ta(Bt,he,Te);if(Ur==null)if(!ti&&Zt())he=sd(Be,ie.cm,Bt,he.line,Dt);else return!1;else he=Ur;return!0}if(Me=="char"||Me=="codepoint")vn();else if(Me=="column")vn(!0);else if(Me=="word"||Me=="group")for(var Jt=null,Bn=Me=="group",An=ie.cm&&ie.cm.getHelper(he,"wordChars"),ir=!0;!(Te<0&&!vn(!ir));ir=!1){var lr=Bt.text.charAt(he.ch)||`
|
|
|
`,br=dt(lr,An)?"w":Bn&&lr==`
|
|
|
`?"n":!Bn||/\s/.test(lr)?null:"p";if(Bn&&!ir&&!br&&(br="s"),Jt&&Jt!=br){Te<0&&(Te=1,vn(),he.sticky="after");break}if(br&&(Jt=br),Te>0&&!vn(!ir))break}var Dr=td(ie,he,st,Mt,!0);return Qt(st,Dr)&&(Dr.hitSide=!0),Dr}function Uu(ie,he,Te,Me){var Be=ie.doc,st=he.left,Mt;if(Me=="page"){var Bt=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Dt=Math.max(Bt-.5*au(ie.display),3);Mt=(Te>0?he.bottom:he.top)+Te*Dt}else Me=="line"&&(Mt=Te>0?he.bottom+3:he.top-3);for(var Zt;Zt=Rd(ie,st,Mt),!!Zt.outside;){if(Te<0?Mt<=0:Mt>=Be.height){Zt.hitSide=!0;break}Mt+=Te*5}return Zt}var So=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new at,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};So.prototype.init=function(ie){var he=this,Te=this,Me=Te.cm,Be=Te.div=ie.lineDiv;jp(Be,Me.options.spellcheck,Me.options.autocorrect,Me.options.autocapitalize);function st(Bt){for(var Dt=Bt.target;Dt;Dt=Dt.parentNode){if(Dt==Be)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Dt.className))break}return!1}jt(Be,"paste",function(Bt){!st(Bt)||Ut(Me,Bt)||Op(Bt,Me)||ve<=11&&setTimeout(ca(Me,function(){return he.updateFromDOM()}),20)}),jt(Be,"compositionstart",function(Bt){he.composing={data:Bt.data,done:!1}}),jt(Be,"compositionupdate",function(Bt){he.composing||(he.composing={data:Bt.data,done:!1})}),jt(Be,"compositionend",function(Bt){he.composing&&(Bt.data!=he.composing.data&&he.readFromDOMSoon(),he.composing.done=!0)}),jt(Be,"touchstart",function(){return Te.forceCompositionEnd()}),jt(Be,"input",function(){he.composing||he.readFromDOMSoon()});function Mt(Bt){if(!(!st(Bt)||Ut(Me,Bt))){if(Me.somethingSelected())Fc({lineWise:!1,text:Me.getSelections()}),Bt.type=="cut"&&Me.replaceSelection("",null,"cut");else if(Me.options.lineWiseCopyCut){var Dt=Np(Me);Fc({lineWise:!0,text:Dt.text}),Bt.type=="cut"&&Me.operation(function(){Me.setSelections(Dt.ranges,0,vt),Me.replaceSelection("",null,"cut")})}else return;if(Bt.clipboardData){Bt.clipboardData.clearData();var Zt=ds.text.join(`
|
|
|
`);if(Bt.clipboardData.setData("Text",Zt),Bt.clipboardData.getData("Text")==Zt){Bt.preventDefault();return}}var vn=Ip(),Jt=vn.firstChild;Me.display.lineSpace.insertBefore(vn,Me.display.lineSpace.firstChild),Jt.value=ds.text.join(`
|
|
|
`);var Bn=document.activeElement;ct(Jt),setTimeout(function(){Me.display.lineSpace.removeChild(vn),Bn.focus(),Bn==Be&&Te.showPrimarySelection()},50)}}jt(Be,"copy",Mt),jt(Be,"cut",Mt)},So.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},So.prototype.prepareSelection=function(){var ie=Mu(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},So.prototype.showSelection=function(ie,he){!ie||!this.cm.display.view.length||((ie.focus||he)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},So.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},So.prototype.showPrimarySelection=function(){var ie=this.getSelection(),he=this.cm,Te=he.doc.sel.primary(),Me=Te.from(),Be=Te.to();if(he.display.viewTo==he.display.viewFrom||Me.line>=he.display.viewTo||Be.line<he.display.viewFrom){ie.removeAllRanges();return}var st=hd(he,ie.anchorNode,ie.anchorOffset),Mt=hd(he,ie.focusNode,ie.focusOffset);if(!(st&&!st.bad&&Mt&&!Mt.bad&&Sn(cn(st,Mt),Me)==0&&Sn(dn(st,Mt),Be)==0)){var Bt=he.display.view,Dt=Me.line>=he.display.viewFrom&&hf(he,Me)||{node:Bt[0].measure.map[2],offset:0},Zt=Be.line<he.display.viewTo&&hf(he,Be);if(!Zt){var vn=Bt[Bt.length-1].measure,Jt=vn.maps?vn.maps[vn.maps.length-1]:vn.map;Zt={node:Jt[Jt.length-1],offset:Jt[Jt.length-2]-Jt[Jt.length-3]}}if(!Dt||!Zt){ie.removeAllRanges();return}var Bn=ie.rangeCount&&ie.getRangeAt(0),An;try{An=Re(Dt.node,Dt.offset,Zt.offset,Zt.node)}catch(ir){}An&&(!Qe&&he.state.focused?(ie.collapse(Dt.node,Dt.offset),An.collapsed||(ie.removeAllRanges(),ie.addRange(An))):(ie.removeAllRanges(),ie.addRange(An)),Bn&&ie.anchorNode==null?ie.addRange(Bn):Qe&&this.startGracePeriod()),this.rememberSelection()}},So.prototype.startGracePeriod=function(){var ie=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){ie.gracePeriod=!1,ie.selectionChanged()&&ie.cm.operation(function(){return ie.cm.curOp.selectionChanged=!0})},20)},So.prototype.showMultipleSelections=function(ie){ke(this.cm.display.cursorDiv,ie.cursors),ke(this.cm.display.selectionDiv,ie.selection)},So.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},So.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var he=ie.getRangeAt(0).commonAncestorContainer;return Ze(this.div,he)},So.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},So.prototype.blur=function(){this.div.blur()},So.prototype.getField=function(){return this.div},So.prototype.supportsTouch=function(){return!0},So.prototype.receivedFocus=function(){var ie=this;this.selectionInEditor()?this.pollSelection():no(this.cm,function(){return ie.cm.curOp.selectionChanged=!0});function he(){ie.cm.state.focused&&(ie.pollSelection(),ie.polling.set(ie.cm.options.pollInterval,he))}this.polling.set(this.cm.options.pollInterval,he)},So.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},So.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var ie=this.getSelection(),he=this.cm;if(z&&Pe&&this.cm.display.gutterSpecs.length&&Dp(ie.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var Te=hd(he,ie.anchorNode,ie.anchorOffset),Me=hd(he,ie.focusNode,ie.focusOffset);Te&&Me&&no(he,function(){Ua(he.doc,uu(Te,Me),vt),(Te.bad||Me.bad)&&(he.curOp.selectionChanged=!0)})}}},So.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var ie=this.cm,he=ie.display,Te=ie.doc.sel.primary(),Me=Te.from(),Be=Te.to();if(Me.ch==0&&Me.line>ie.firstLine()&&(Me=gn(Me.line-1,rn(ie.doc,Me.line-1).length)),Be.ch==rn(ie.doc,Be.line).text.length&&Be.line<ie.lastLine()&&(Be=gn(Be.line+1,0)),Me.line<he.viewFrom||Be.line>he.viewTo-1)return!1;var st,Mt,Bt;Me.line==he.viewFrom||(st=Rs(ie,Me.line))==0?(Mt=zt(he.view[0].line),Bt=he.view[0].node):(Mt=zt(he.view[st].line),Bt=he.view[st-1].node.nextSibling);var Dt=Rs(ie,Be.line),Zt,vn;if(Dt==he.view.length-1?(Zt=he.viewTo-1,vn=he.lineDiv.lastChild):(Zt=zt(he.view[Dt+1].line)-1,vn=he.view[Dt+1].node.previousSibling),!Bt)return!1;for(var Jt=ie.doc.splitLines(Ph(ie,Bt,vn,Mt,Zt)),Bn=yn(ie.doc,gn(Mt,0),gn(Zt,rn(ie.doc,Zt).text.length));Jt.length>1&&Bn.length>1;)if(Et(Jt)==Et(Bn))Jt.pop(),Bn.pop(),Zt--;else if(Jt[0]==Bn[0])Jt.shift(),Bn.shift(),Mt++;else break;for(var An=0,ir=0,lr=Jt[0],br=Bn[0],Dr=Math.min(lr.length,br.length);An<Dr&&lr.charCodeAt(An)==br.charCodeAt(An);)++An;for(var ti=Et(Jt),Ur=Et(Bn),si=Math.min(ti.length-(Jt.length==1?An:0),Ur.length-(Bn.length==1?An:0));ir<si&&ti.charCodeAt(ti.length-ir-1)==Ur.charCodeAt(Ur.length-ir-1);)++ir;if(Jt.length==1&&Bn.length==1&&Mt==Me.line)for(;An&&An>Me.ch&&ti.charCodeAt(ti.length-ir-1)==Ur.charCodeAt(Ur.length-ir-1);)An--,ir++;Jt[Jt.length-1]=ti.slice(0,ti.length-ir).replace(/^\u200b+/,""),Jt[0]=Jt[0].slice(An).replace(/\u200b+$/,"");var ki=gn(Mt,An),Hr=gn(Zt,Bn.length?Et(Bn).length-ir:0);if(Jt.length>1||Jt[0]||Sn(ki,Hr))return Lc(ie.doc,Jt,ki,Hr,"+input"),!0},So.prototype.ensurePolled=function(){this.forceCompositionEnd()},So.prototype.reset=function(){this.forceCompositionEnd()},So.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},So.prototype.readFromDOMSoon=function(){var ie=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(ie.readDOMTimeout=null,ie.composing)if(ie.composing.done)ie.composing=null;else return;ie.updateFromDOM()},80))},So.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&no(this.cm,function(){return Io(ie.cm)})},So.prototype.setUneditable=function(ie){ie.contentEditable="false"},So.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||ca(this.cm,ud)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},So.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},So.prototype.onContextMenu=function(){},So.prototype.resetPosition=function(){},So.prototype.needsContentAttribute=!0;function hf(ie,he){var Te=gc(ie,he.line);if(!Te||Te.hidden)return null;var Me=rn(ie.doc,he.line),Be=fc(Te,Me,he.line),st=yt(Me,ie.doc.direction),Mt="left";if(st){var Bt=Ie(st,he.ch);Mt=Bt%2?"right":"left"}var Dt=mc(Be.map,he.ch,Mt);return Dt.offset=Dt.collapse=="right"?Dt.end:Dt.start,Dt}function Dp(ie){for(var he=ie;he;he=he.parentNode)if(/CodeMirror-gutter-wrapper/.test(he.className))return!0;return!1}function bh(ie,he){return he&&(ie.bad=!0),ie}function Ph(ie,he,Te,Me,Be){var st="",Mt=!1,Bt=ie.doc.lineSeparator(),Dt=!1;function Zt(An){return function(ir){return ir.id==An}}function vn(){Mt&&(st+=Bt,Dt&&(st+=Bt),Mt=Dt=!1)}function Jt(An){An&&(vn(),st+=An)}function Bn(An){if(An.nodeType==1){var ir=An.getAttribute("cm-text");if(ir){Jt(ir);return}var lr=An.getAttribute("cm-marker"),br;if(lr){var Dr=ie.findMarks(gn(Me,0),gn(Be+1,0),Zt(+lr));Dr.length&&(br=Dr[0].find(0))&&Jt(yn(ie.doc,br.from,br.to).join(Bt));return}if(An.getAttribute("contenteditable")=="false")return;var ti=/^(pre|div|p|li|table|br)$/i.test(An.nodeName);if(!/^br$/i.test(An.nodeName)&&An.textContent.length==0)return;ti&&vn();for(var Ur=0;Ur<An.childNodes.length;Ur++)Bn(An.childNodes[Ur]);/^(pre|p)$/i.test(An.nodeName)&&(Dt=!0),ti&&(Mt=!0)}else An.nodeType==3&&Jt(An.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Bn(he),he!=Te;)he=he.nextSibling,Dt=!1;return st}function hd(ie,he,Te){var Me;if(he==ie.display.lineDiv){if(Me=ie.display.lineDiv.childNodes[Te],!Me)return bh(ie.clipPos(gn(ie.display.viewTo-1)),!0);he=null,Te=0}else for(Me=he;;Me=Me.parentNode){if(!Me||Me==ie.display.lineDiv)return null;if(Me.parentNode&&Me.parentNode==ie.display.lineDiv)break}for(var Be=0;Be<ie.display.view.length;Be++){var st=ie.display.view[Be];if(st.node==Me)return am(st,he,Te)}}function am(ie,he,Te){var Me=ie.text.firstChild,Be=!1;if(!he||!Ze(Me,he))return bh(gn(zt(ie.line),0),!0);if(he==Me&&(Be=!0,he=Me.childNodes[Te],Te=0,!he)){var st=ie.rest?Et(ie.rest):ie.line;return bh(gn(zt(st),st.text.length),Be)}var Mt=he.nodeType==3?he:null,Bt=he;for(!Mt&&he.childNodes.length==1&&he.firstChild.nodeType==3&&(Mt=he.firstChild,Te&&(Te=Mt.nodeValue.length));Bt.parentNode!=Me;)Bt=Bt.parentNode;var Dt=ie.measure,Zt=Dt.maps;function vn(br,Dr,ti){for(var Ur=-1;Ur<(Zt?Zt.length:0);Ur++)for(var si=Ur<0?Dt.map:Zt[Ur],ki=0;ki<si.length;ki+=3){var Hr=si[ki+2];if(Hr==br||Hr==Dr){var zi=zt(Ur<0?ie.line:ie.rest[Ur]),Do=si[ki]+ti;return(ti<0||Hr!=br)&&(Do=si[ki+(ti?1:0)]),gn(zi,Do)}}}var Jt=vn(Mt,Bt,Te);if(Jt)return bh(Jt,Be);for(var Bn=Bt.nextSibling,An=Mt?Mt.nodeValue.length-Te:0;Bn;Bn=Bn.nextSibling){if(Jt=vn(Bn,Bn.firstChild,0),Jt)return bh(gn(Jt.line,Jt.ch-An),Be);An+=Bn.textContent.length}for(var ir=Bt.previousSibling,lr=Te;ir;ir=ir.previousSibling){if(Jt=vn(ir,ir.firstChild,-1),Jt)return bh(gn(Jt.line,Jt.ch+lr),Be);lr+=ir.textContent.length}}var ia=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new at,this.hasSelection=!1,this.composing=null};ia.prototype.init=function(ie){var he=this,Te=this,Me=this.cm;this.createField(ie);var Be=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),de&&(Be.style.width="0px"),jt(Be,"input",function(){Ne&&ve>=9&&he.hasSelection&&(he.hasSelection=null),Te.poll()}),jt(Be,"paste",function(Mt){Ut(Me,Mt)||Op(Mt,Me)||(Me.state.pasteIncoming=+new Date,Te.fastPoll())});function st(Mt){if(!Ut(Me,Mt)){if(Me.somethingSelected())Fc({lineWise:!1,text:Me.getSelections()});else if(Me.options.lineWiseCopyCut){var Bt=Np(Me);Fc({lineWise:!0,text:Bt.text}),Mt.type=="cut"?Me.setSelections(Bt.ranges,null,vt):(Te.prevInput="",Be.value=Bt.text.join(`
|
|
|
`),ct(Be))}else return;Mt.type=="cut"&&(Me.state.cutIncoming=+new Date)}}jt(Be,"cut",st),jt(Be,"copy",st),jt(ie.scroller,"paste",function(Mt){if(!(Ja(ie,Mt)||Ut(Me,Mt))){if(!Be.dispatchEvent){Me.state.pasteIncoming=+new Date,Te.focus();return}var Bt=new Event("paste");Bt.clipboardData=Mt.clipboardData,Be.dispatchEvent(Bt)}}),jt(ie.lineSpace,"selectstart",function(Mt){Ja(ie,Mt)||jn(Mt)}),jt(Be,"compositionstart",function(){var Mt=Me.getCursor("from");Te.composing&&Te.composing.range.clear(),Te.composing={start:Mt,range:Me.markText(Mt,Me.getCursor("to"),{className:"CodeMirror-composing"})}}),jt(Be,"compositionend",function(){Te.composing&&(Te.poll(),Te.composing.range.clear(),Te.composing=null)})},ia.prototype.createField=function(ie){this.wrapper=Ip(),this.textarea=this.wrapper.firstChild},ia.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},ia.prototype.prepareSelection=function(){var ie=this.cm,he=ie.display,Te=ie.doc,Me=Mu(ie);if(ie.options.moveInputWithCursor){var Be=Lo(ie,Te.sel.primary().head,"div"),st=he.wrapper.getBoundingClientRect(),Mt=he.lineDiv.getBoundingClientRect();Me.teTop=Math.max(0,Math.min(he.wrapper.clientHeight-10,Be.top+Mt.top-st.top)),Me.teLeft=Math.max(0,Math.min(he.wrapper.clientWidth-10,Be.left+Mt.left-st.left))}return Me},ia.prototype.showSelection=function(ie){var he=this.cm,Te=he.display;ke(Te.cursorDiv,ie.cursors),ke(Te.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},ia.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var he=this.cm;if(he.somethingSelected()){this.prevInput="";var Te=he.getSelection();this.textarea.value=Te,he.state.focused&&ct(this.textarea),Ne&&ve>=9&&(this.hasSelection=Te)}else ie||(this.prevInput=this.textarea.value="",Ne&&ve>=9&&(this.hasSelection=null))}},ia.prototype.getField=function(){return this.textarea},ia.prototype.supportsTouch=function(){return!1},ia.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ee||ze()!=this.textarea))try{this.textarea.focus()}catch(ie){}},ia.prototype.blur=function(){this.textarea.blur()},ia.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ia.prototype.receivedFocus=function(){this.slowPoll()},ia.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},ia.prototype.fastPoll=function(){var ie=!1,he=this;he.pollingFast=!0;function Te(){var Me=he.poll();!Me&&!ie?(ie=!0,he.polling.set(60,Te)):(he.pollingFast=!1,he.slowPoll())}he.polling.set(20,Te)},ia.prototype.poll=function(){var ie=this,he=this.cm,Te=this.textarea,Me=this.prevInput;if(this.contextMenuPending||!he.state.focused||it(Te)&&!Me&&!this.composing||he.isReadOnly()||he.options.disableInput||he.state.keySeq)return!1;var Be=Te.value;if(Be==Me&&!he.somethingSelected())return!1;if(Ne&&ve>=9&&this.hasSelection===Be||ae&&/[\uf700-\uf7ff]/.test(Be))return he.display.input.reset(),!1;if(he.doc.sel==he.display.selForContextMenu){var st=Be.charCodeAt(0);if(st==8203&&!Me&&(Me="\u200B"),st==8666)return this.reset(),this.cm.execCommand("undo")}for(var Mt=0,Bt=Math.min(Me.length,Be.length);Mt<Bt&&Me.charCodeAt(Mt)==Be.charCodeAt(Mt);)++Mt;return no(he,function(){ud(he,Be.slice(Mt),Me.length-Mt,null,ie.composing?"*compose":null),Be.length>1e3||Be.indexOf(`
|
|
|
`)>-1?Te.value=ie.prevInput="":ie.prevInput=Be,ie.composing&&(ie.composing.range.clear(),ie.composing.range=he.markText(ie.composing.start,he.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ia.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ia.prototype.onKeyPress=function(){Ne&&ve>=9&&(this.hasSelection=null),this.fastPoll()},ia.prototype.onContextMenu=function(ie){var he=this,Te=he.cm,Me=Te.display,Be=he.textarea;he.contextMenuPending&&he.contextMenuPending();var st=es(Te,ie),Mt=Me.scroller.scrollTop;if(!st||ye)return;var Bt=Te.options.resetSelectionOnContextMenu;Bt&&Te.doc.sel.contains(st)==-1&&ca(Te,Ua)(Te.doc,uu(st),vt);var Dt=Be.style.cssText,Zt=he.wrapper.style.cssText,vn=he.wrapper.offsetParent.getBoundingClientRect();he.wrapper.style.cssText="position: static",Be.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(ie.clientY-vn.top-5)+"px; left: "+(ie.clientX-vn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(Ne?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Jt;fe&&(Jt=window.scrollY),Me.input.focus(),fe&&window.scrollTo(null,Jt),Me.input.reset(),Te.somethingSelected()||(Be.value=he.prevInput=" "),he.contextMenuPending=An,Me.selForContextMenu=Te.doc.sel,clearTimeout(Me.detectingSelectAll);function Bn(){if(Be.selectionStart!=null){var lr=Te.somethingSelected(),br="\u200B"+(lr?Be.value:"");Be.value="\u21DA",Be.value=br,he.prevInput=lr?"":"\u200B",Be.selectionStart=1,Be.selectionEnd=br.length,Me.selForContextMenu=Te.doc.sel}}function An(){if(he.contextMenuPending==An&&(he.contextMenuPending=!1,he.wrapper.style.cssText=Zt,Be.style.cssText=Dt,Ne&&ve<9&&Me.scrollbars.setScrollTop(Me.scroller.scrollTop=Mt),Be.selectionStart!=null)){(!Ne||Ne&&ve<9)&&Bn();var lr=0,br=function(){Me.selForContextMenu==Te.doc.sel&&Be.selectionStart==0&&Be.selectionEnd>0&&he.prevInput=="\u200B"?ca(Te,ea)(Te):lr++<10?Me.detectingSelectAll=setTimeout(br,500):(Me.selForContextMenu=null,Me.input.reset())};Me.detectingSelectAll=setTimeout(br,200)}}if(Ne&&ve>=9&&Bn(),Ee){ar(ie);var ir=function(){en(window,"mouseup",ir),setTimeout(An,20)};jt(window,"mouseup",ir)}else setTimeout(An,50)},ia.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},ia.prototype.setUneditable=function(){},ia.prototype.needsContentAttribute=!1;function sm(ie,he){if(he=he?bt(he):{},he.value=ie.value,!he.tabindex&&ie.tabIndex&&(he.tabindex=ie.tabIndex),!he.placeholder&&ie.placeholder&&(he.placeholder=ie.placeholder),he.autofocus==null){var Te=ze();he.autofocus=Te==ie||ie.getAttribute("autofocus")!=null&&Te==document.body}function Me(){ie.value=Bt.getValue()}var Be;if(ie.form&&(jt(ie.form,"submit",Me),!he.leaveSubmitMethodAlone)){var st=ie.form;Be=st.submit;try{var Mt=st.submit=function(){Me(),st.submit=Be,st.submit(),st.submit=Mt}}catch(Dt){}}he.finishInit=function(Dt){Dt.save=Me,Dt.getTextArea=function(){return ie},Dt.toTextArea=function(){Dt.toTextArea=isNaN,Me(),ie.parentNode.removeChild(Dt.getWrapperElement()),ie.style.display="",ie.form&&(en(ie.form,"submit",Me),!he.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=Be))}},ie.style.display="none";var Bt=eo(function(Dt){return ie.parentNode.insertBefore(Dt,ie.nextSibling)},he);return Bt}function Ch(ie){ie.off=en,ie.on=jt,ie.wheelEventPixels=zs,ie.Doc=Fa,ie.splitLines=jr,ie.countColumn=qe,ie.findColumn=At,ie.isWordChar=Pt,ie.Pass=wt,ie.signal=It,ie.Line=gi,ie.changeEnd=Fu,ie.scrollbarModel=tp,ie.Pos=gn,ie.cmpPos=Sn,ie.modes=er,ie.mimeModes=rr,ie.resolveMode=Nn,ie.getMode=$t,ie.modeExtensions=Xt,ie.extendMode=Lt,ie.copyState=nn,ie.startState=Vt,ie.innerMode=pn,ie.commands=zu,ie.keyMap=Ps,ie.keyName=qg,ie.isModifierKey=mh,ie.lookupKey=el,ie.normalizeKeyMap=mp,ie.StringStream=Rt,ie.SharedTextMarker=zl,ie.TextMarker=sn,ie.LineWidget=du,ie.e_preventDefault=jn,ie.e_stopPropagation=Vn,ie.e_stop=ar,ie.addClass=Ke,ie.contains=Ze,ie.rmClass=je,ie.keyNames=Gl}im(eo),Hu(eo);var fu="iter insert remove copy getEditor constructor".split(" ");for(var dd in Fa.prototype)Fa.prototype.hasOwnProperty(dd)&>(fu,dd)<0&&(eo.prototype[dd]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(Fa.prototype[dd]));return mn(Fa),eo.inputStyles={textarea:ia,contenteditable:So},eo.defineMode=function(ie){!eo.defaults.mode&&ie!="null"&&(eo.defaults.mode=ie),vr.apply(this,arguments)},eo.defineMIME=zn,eo.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),eo.defineMIME("text/plain","null"),eo.defineExtension=function(ie,he){eo.prototype[ie]=he},eo.defineDocExtension=function(ie,he){Fa.prototype[ie]=he},eo.fromTextArea=sm,Ch(eo),eo.version="5.58.2",eo})},25419:function(bn,an,Ge){(function(Qe){Qe(Ge(89780),Ge(15525),Ge(98101))})(function(Qe){"use strict";Qe.defineMode("markdown",function(Tt,oe){var _e=Qe.getMode(Tt,"text/html"),Ne=_e.name=="null";function ve(qe){if(Qe.findModeByName){var at=Qe.findModeByName(qe);at&&(qe=at.mime||at.mimes[0])}var gt=Qe.getMode(Tt,qe);return gt.name=="null"?null:gt}oe.highlightFormatting===void 0&&(oe.highlightFormatting=!1),oe.maxBlockquoteDepth===void 0&&(oe.maxBlockquoteDepth=0),oe.taskLists===void 0&&(oe.taskLists=!1),oe.strikethrough===void 0&&(oe.strikethrough=!1),oe.emoji===void 0&&(oe.emoji=!1),oe.fencedCodeBlockHighlighting===void 0&&(oe.fencedCodeBlockHighlighting=!0),oe.fencedCodeBlockDefaultMode===void 0&&(oe.fencedCodeBlockDefaultMode="text/plain"),oe.xml===void 0&&(oe.xml=!0),oe.tokenTypeOverrides===void 0&&(oe.tokenTypeOverrides={});var fe={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 be in fe)fe.hasOwnProperty(be)&&oe.tokenTypeOverrides[be]&&(fe[be]=oe.tokenTypeOverrides[be]);var Pe=/^([*\-_])(?:\s*\1){2,}\s*$/,ye=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,we=/^\[(x| )\](?=\s)/i,me=oe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Se=/^ {0,3}(?:\={1,}|-{2,})\s*$/,de=/^[^#!\[\]*_\\<>` "'(~:]+/,z=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ee=/^\s*\[[^\]]+?\]:.*$/,ae=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,re=" ";function le(qe,at,gt){return at.f=at.inline=gt,gt(qe,at)}function ue(qe,at,gt){return at.f=at.block=gt,gt(qe,at)}function pe(qe){return!qe||!/\S/.test(qe.string)}function Ee(qe){if(qe.linkTitle=!1,qe.linkHref=!1,qe.linkText=!1,qe.em=!1,qe.strong=!1,qe.strikethrough=!1,qe.quote=0,qe.indentedCode=!1,qe.f==je){var at=Ne;if(!at){var gt=Qe.innerMode(_e,qe.htmlState);at=gt.mode.name=="xml"&>.state.tagStart===null&&!gt.state.context&>.state.tokenize.isInText}at&&(qe.f=Fe,qe.block=Ce,qe.htmlState=null)}return qe.trailingSpace=0,qe.trailingSpaceNewLine=!1,qe.prevLine=qe.thisLine,qe.thisLine={stream:null},null}function Ce(qe,at){var gt=qe.column()===at.indentation,Ct=pe(at.prevLine.stream),wt=at.indentedCode,vt=at.prevLine.hr,mt=at.list!==!1,xt=(at.listStack[at.listStack.length-1]||0)+3;at.indentedCode=!1;var At=at.indentation;if(at.indentationDiff===null&&(at.indentationDiff=at.indentation,mt)){for(at.list=null;At<at.listStack[at.listStack.length-1];)at.listStack.pop(),at.listStack.length?at.indentation=at.listStack[at.listStack.length-1]:at.list=!1;at.list!==!1&&(at.indentationDiff=At-at.listStack[at.listStack.length-1])}var kt=!Ct&&!vt&&!at.prevLine.header&&(!mt||!wt)&&!at.prevLine.fencedCodeEnd,Wt=(at.list===!1||vt||Ct)&&at.indentation<=xt&&qe.match(Pe),Et=null;if(at.indentationDiff>=4&&(wt||at.prevLine.fencedCodeEnd||at.prevLine.header||Ct))return qe.skipToEnd(),at.indentedCode=!0,fe.code;if(qe.eatSpace())return null;if(gt&&at.indentation<=xt&&(Et=qe.match(me))&&Et[1].length<=6)return at.quote=0,at.header=Et[1].length,at.thisLine.header=!0,oe.highlightFormatting&&(at.formatting="header"),at.f=at.inline,ke(at);if(at.indentation<=xt&&qe.eat(">"))return at.quote=gt?1:at.quote+1,oe.highlightFormatting&&(at.formatting="quote"),qe.eatSpace(),ke(at);if(!Wt&&!at.setext&>&&at.indentation<=xt&&(Et=qe.match(ye))){var St=Et[1]?"ol":"ul";return at.indentation=At+qe.current().length,at.list=!0,at.quote=0,at.listStack.push(at.indentation),at.em=!1,at.strong=!1,at.code=!1,at.strikethrough=!1,oe.taskLists&&qe.match(we,!1)&&(at.taskList=!0),at.f=at.inline,oe.highlightFormatting&&(at.formatting=["list","list-"+St]),ke(at)}else{if(gt&&at.indentation<=xt&&(Et=qe.match(z,!0)))return at.quote=0,at.fencedEndRE=new RegExp(Et[1]+"+ *$"),at.localMode=oe.fencedCodeBlockHighlighting&&ve(Et[2]||oe.fencedCodeBlockDefaultMode),at.localMode&&(at.localState=Qe.startState(at.localMode)),at.f=at.block=Le,oe.highlightFormatting&&(at.formatting="code-block"),at.code=-1,ke(at);if(at.setext||(!kt||!mt)&&!at.quote&&at.list===!1&&!at.code&&!Wt&&!ee.test(qe.string)&&(Et=qe.lookAhead(1))&&(Et=Et.match(Se)))return at.setext?(at.header=at.setext,at.setext=0,qe.skipToEnd(),oe.highlightFormatting&&(at.formatting="header")):(at.header=Et[0].charAt(0)=="="?1:2,at.setext=at.header),at.thisLine.header=!0,at.f=at.inline,ke(at);if(Wt)return qe.skipToEnd(),at.hr=!0,at.thisLine.hr=!0,fe.hr;if(qe.peek()==="[")return le(qe,at,ot)}return le(qe,at,at.inline)}function je(qe,at){var gt=_e.token(qe,at.htmlState);if(!Ne){var Ct=Qe.innerMode(_e,at.htmlState);(Ct.mode.name=="xml"&&Ct.state.tagStart===null&&!Ct.state.context&&Ct.state.tokenize.isInText||at.md_inside&&qe.current().indexOf(">")>-1)&&(at.f=Fe,at.block=Ce,at.htmlState=null)}return gt}function Le(qe,at){var gt=at.listStack[at.listStack.length-1]||0,Ct=at.indentation<gt,wt=gt+3;if(at.fencedEndRE&&at.indentation<=wt&&(Ct||qe.match(at.fencedEndRE))){oe.highlightFormatting&&(at.formatting="code-block");var vt;return Ct||(vt=ke(at)),at.localMode=at.localState=null,at.block=Ce,at.f=Fe,at.fencedEndRE=null,at.code=0,at.thisLine.fencedCodeEnd=!0,Ct?ue(qe,at,at.block):vt}else return at.localMode?at.localMode.token(qe,at.localState):(qe.skipToEnd(),fe.code)}function ke(qe){var at=[];if(qe.formatting){at.push(fe.formatting),typeof qe.formatting=="string"&&(qe.formatting=[qe.formatting]);for(var gt=0;gt<qe.formatting.length;gt++)at.push(fe.formatting+"-"+qe.formatting[gt]),qe.formatting[gt]==="header"&&at.push(fe.formatting+"-"+qe.formatting[gt]+"-"+qe.header),qe.formatting[gt]==="quote"&&(!oe.maxBlockquoteDepth||oe.maxBlockquoteDepth>=qe.quote?at.push(fe.formatting+"-"+qe.formatting[gt]+"-"+qe.quote):at.push("error"))}if(qe.taskOpen)return at.push("meta"),at.length?at.join(" "):null;if(qe.taskClosed)return at.push("property"),at.length?at.join(" "):null;if(qe.linkHref?at.push(fe.linkHref,"url"):(qe.strong&&at.push(fe.strong),qe.em&&at.push(fe.em),qe.strikethrough&&at.push(fe.strikethrough),qe.emoji&&at.push(fe.emoji),qe.linkText&&at.push(fe.linkText),qe.code&&at.push(fe.code),qe.image&&at.push(fe.image),qe.imageAltText&&at.push(fe.imageAltText,"link"),qe.imageMarker&&at.push(fe.imageMarker)),qe.header&&at.push(fe.header,fe.header+"-"+qe.header),qe.quote&&(at.push(fe.quote),!oe.maxBlockquoteDepth||oe.maxBlockquoteDepth>=qe.quote?at.push(fe.quote+"-"+qe.quote):at.push(fe.quote+"-"+oe.maxBlockquoteDepth)),qe.list!==!1){var Ct=(qe.listStack.length-1)%3;Ct?Ct===1?at.push(fe.list2):at.push(fe.list3):at.push(fe.list1)}return qe.trailingSpaceNewLine?at.push("trailing-space-new-line"):qe.trailingSpace&&at.push("trailing-space-"+(qe.trailingSpace%2?"a":"b")),at.length?at.join(" "):null}function Oe(qe,at){if(qe.match(de,!0))return ke(at)}function Fe(qe,at){var gt=at.text(qe,at);if(typeof gt!="undefined")return gt;if(at.list)return at.list=null,ke(at);if(at.taskList){var Ct=qe.match(we,!0)[1]===" ";return Ct?at.taskOpen=!0:at.taskClosed=!0,oe.highlightFormatting&&(at.formatting="task"),at.taskList=!1,ke(at)}if(at.taskOpen=!1,at.taskClosed=!1,at.header&&qe.match(/^#+$/,!0))return oe.highlightFormatting&&(at.formatting="header"),ke(at);var wt=qe.next();if(at.linkTitle){at.linkTitle=!1;var vt=wt;wt==="("&&(vt=")"),vt=(vt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var mt="^\\s*(?:[^"+vt+"\\\\]+|\\\\\\\\|\\\\.)"+vt;if(qe.match(new RegExp(mt),!0))return fe.linkHref}if(wt==="`"){var xt=at.formatting;oe.highlightFormatting&&(at.formatting="code"),qe.eatWhile("`");var At=qe.current().length;if(at.code==0&&(!at.quote||At==1))return at.code=At,ke(at);if(At==at.code){var kt=ke(at);return at.code=0,kt}else return at.formatting=xt,ke(at)}else if(at.code)return ke(at);if(wt==="\\"&&(qe.next(),oe.highlightFormatting)){var Wt=ke(at),Et=fe.formatting+"-escape";return Wt?Wt+" "+Et:Et}if(wt==="!"&&qe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return at.imageMarker=!0,at.image=!0,oe.highlightFormatting&&(at.formatting="image"),ke(at);if(wt==="["&&at.imageMarker&&qe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return at.imageMarker=!1,at.imageAltText=!0,oe.highlightFormatting&&(at.formatting="image"),ke(at);if(wt==="]"&&at.imageAltText){oe.highlightFormatting&&(at.formatting="image");var Wt=ke(at);return at.imageAltText=!1,at.image=!1,at.inline=at.f=Ze,Wt}if(wt==="["&&!at.image)return at.linkText&&qe.match(/^.*?\]/)||(at.linkText=!0,oe.highlightFormatting&&(at.formatting="link")),ke(at);if(wt==="]"&&at.linkText){oe.highlightFormatting&&(at.formatting="link");var Wt=ke(at);return at.linkText=!1,at.inline=at.f=qe.match(/\(.*?\)| ?\[.*?\]/,!1)?Ze:Fe,Wt}if(wt==="<"&&qe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){at.f=at.inline=Re,oe.highlightFormatting&&(at.formatting="link");var Wt=ke(at);return Wt?Wt+=" ":Wt="",Wt+fe.linkInline}if(wt==="<"&&qe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){at.f=at.inline=Re,oe.highlightFormatting&&(at.formatting="link");var Wt=ke(at);return Wt?Wt+=" ":Wt="",Wt+fe.linkEmail}if(oe.xml&&wt==="<"&&qe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var St=qe.string.indexOf(">",qe.pos);if(St!=-1){var tt=qe.string.substring(qe.start,St);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(tt)&&(at.md_inside=!0)}return qe.backUp(1),at.htmlState=Qe.startState(_e),ue(qe,at,je)}if(oe.xml&&wt==="<"&&qe.match(/^\/\w*?>/))return at.md_inside=!1,"tag";if(wt==="*"||wt==="_"){for(var ft=1,$e=qe.pos==1?" ":qe.string.charAt(qe.pos-2);ft<3&&qe.eat(wt);)ft++;var lt=qe.peek()||" ",Pt=!/\s/.test(lt)&&(!ae.test(lt)||/\s/.test($e)||ae.test($e)),dt=!/\s/.test($e)&&(!ae.test($e)||/\s/.test(lt)||ae.test(lt)),et=null,Ve=null;if(ft%2&&(!at.em&&Pt&&(wt==="*"||!dt||ae.test($e))?et=!0:at.em==wt&&dt&&(wt==="*"||!Pt||ae.test(lt))&&(et=!1)),ft>1&&(!at.strong&&Pt&&(wt==="*"||!dt||ae.test($e))?Ve=!0:at.strong==wt&&dt&&(wt==="*"||!Pt||ae.test(lt))&&(Ve=!1)),Ve!=null||et!=null){oe.highlightFormatting&&(at.formatting=et==null?"strong":Ve==null?"em":"strong em"),et===!0&&(at.em=wt),Ve===!0&&(at.strong=wt);var kt=ke(at);return et===!1&&(at.em=!1),Ve===!1&&(at.strong=!1),kt}}else if(wt===" "&&(qe.eat("*")||qe.eat("_"))){if(qe.peek()===" ")return ke(at);qe.backUp(1)}if(oe.strikethrough){if(wt==="~"&&qe.eatWhile(wt)){if(at.strikethrough){oe.highlightFormatting&&(at.formatting="strikethrough");var kt=ke(at);return at.strikethrough=!1,kt}else if(qe.match(/^[^\s]/,!1))return at.strikethrough=!0,oe.highlightFormatting&&(at.formatting="strikethrough"),ke(at)}else if(wt===" "&&qe.match(/^~~/,!0)){if(qe.peek()===" ")return ke(at);qe.backUp(2)}}if(oe.emoji&&wt===":"&&qe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){at.emoji=!0,oe.highlightFormatting&&(at.formatting="emoji");var He=ke(at);return at.emoji=!1,He}return wt===" "&&(qe.match(/^ +$/,!1)?at.trailingSpace++:at.trailingSpace&&(at.trailingSpaceNewLine=!0)),ke(at)}function Re(qe,at){var gt=qe.next();if(gt===">"){at.f=at.inline=Fe,oe.highlightFormatting&&(at.formatting="link");var Ct=ke(at);return Ct?Ct+=" ":Ct="",Ct+fe.linkInline}return qe.match(/^[^>]+/,!0),fe.linkInline}function Ze(qe,at){if(qe.eatSpace())return null;var gt=qe.next();return gt==="("||gt==="["?(at.f=at.inline=Ke(gt==="("?")":"]"),oe.highlightFormatting&&(at.formatting="link-string"),at.linkHref=!0,ke(at)):"error"}var ze={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ke(qe){return function(at,gt){var Ct=at.next();if(Ct===qe){gt.f=gt.inline=Fe,oe.highlightFormatting&&(gt.formatting="link-string");var wt=ke(gt);return gt.linkHref=!1,wt}return at.match(ze[qe]),gt.linkHref=!0,ke(gt)}}function ot(qe,at){return qe.match(/^([^\]\\]|\\.)*\]:/,!1)?(at.f=ct,qe.next(),oe.highlightFormatting&&(at.formatting="link"),at.linkText=!0,ke(at)):le(qe,at,Fe)}function ct(qe,at){if(qe.match(/^\]:/,!0)){at.f=at.inline=pt,oe.highlightFormatting&&(at.formatting="link");var gt=ke(at);return at.linkText=!1,gt}return qe.match(/^([^\]\\]|\\.)+/,!0),fe.linkText}function pt(qe,at){return qe.eatSpace()?null:(qe.match(/^[^\s]+/,!0),qe.peek()===void 0?at.linkTitle=!0:qe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),at.f=at.inline=Fe,fe.linkHref+" url")}var bt={startState:function(){return{f:Ce,prevLine:{stream:null},thisLine:{stream:null},block:Ce,htmlState:null,indentation:0,inline:Fe,text:Oe,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(qe){return{f:qe.f,prevLine:qe.prevLine,thisLine:qe.thisLine,block:qe.block,htmlState:qe.htmlState&&Qe.copyState(_e,qe.htmlState),indentation:qe.indentation,localMode:qe.localMode,localState:qe.localMode?Qe.copyState(qe.localMode,qe.localState):null,inline:qe.inline,text:qe.text,formatting:!1,linkText:qe.linkText,linkTitle:qe.linkTitle,linkHref:qe.linkHref,code:qe.code,em:qe.em,strong:qe.strong,strikethrough:qe.strikethrough,emoji:qe.emoji,header:qe.header,setext:qe.setext,hr:qe.hr,taskList:qe.taskList,list:qe.list,listStack:qe.listStack.slice(0),quote:qe.quote,indentedCode:qe.indentedCode,trailingSpace:qe.trailingSpace,trailingSpaceNewLine:qe.trailingSpaceNewLine,md_inside:qe.md_inside,fencedEndRE:qe.fencedEndRE}},token:function(qe,at){if(at.formatting=!1,qe!=at.thisLine.stream){if(at.header=0,at.hr=!1,qe.match(/^\s*$/,!0))return Ee(at),null;if(at.prevLine=at.thisLine,at.thisLine={stream:qe},at.taskList=!1,at.trailingSpace=0,at.trailingSpaceNewLine=!1,!at.localState&&(at.f=at.block,at.f!=je)){var gt=qe.match(/^\s*/,!0)[0].replace(/\t/g,re).length;if(at.indentation=gt,at.indentationDiff=null,gt>0)return null}}return at.f(qe,at)},innerMode:function(qe){return qe.block==je?{state:qe.htmlState,mode:_e}:qe.localState?{state:qe.localState,mode:qe.localMode}:{state:qe,mode:bt}},indent:function(qe,at,gt){return qe.block==je&&_e.indent?_e.indent(qe.htmlState,at,gt):qe.localState&&qe.localMode.indent?qe.localMode.indent(qe.localState,at,gt):Qe.Pass},blankLine:Ee,getType:ke,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return bt},"xml"),Qe.defineMIME("text/markdown","markdown"),Qe.defineMIME("text/x-markdown","markdown")})},98101:function(bn,an,Ge){(function(Qe){Qe(Ge(89780))})(function(Qe){"use strict";Qe.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 Tt=0;Tt<Qe.modeInfo.length;Tt++){var oe=Qe.modeInfo[Tt];oe.mimes&&(oe.mime=oe.mimes[0])}Qe.findModeByMIME=function(_e){_e=_e.toLowerCase();for(var Ne=0;Ne<Qe.modeInfo.length;Ne++){var ve=Qe.modeInfo[Ne];if(ve.mime==_e)return ve;if(ve.mimes){for(var fe=0;fe<ve.mimes.length;fe++)if(ve.mimes[fe]==_e)return ve}}if(/\+xml$/.test(_e))return Qe.findModeByMIME("application/xml");if(/\+json$/.test(_e))return Qe.findModeByMIME("application/json")},Qe.findModeByExtension=function(_e){_e=_e.toLowerCase();for(var Ne=0;Ne<Qe.modeInfo.length;Ne++){var ve=Qe.modeInfo[Ne];if(ve.ext){for(var fe=0;fe<ve.ext.length;fe++)if(ve.ext[fe]==_e)return ve}}},Qe.findModeByFileName=function(_e){for(var Ne=0;Ne<Qe.modeInfo.length;Ne++){var ve=Qe.modeInfo[Ne];if(ve.file&&ve.file.test(_e))return ve}var fe=_e.lastIndexOf("."),be=fe>-1&&_e.substring(fe+1,_e.length);if(be)return Qe.findModeByExtension(be)},Qe.findModeByName=function(_e){_e=_e.toLowerCase();for(var Ne=0;Ne<Qe.modeInfo.length;Ne++){var ve=Qe.modeInfo[Ne];if(ve.name.toLowerCase()==_e)return ve;if(ve.alias){for(var fe=0;fe<ve.alias.length;fe++)if(ve.alias[fe].toLowerCase()==_e)return ve}}}})},67549:function(bn,an,Ge){(function(Qe){Qe(Ge(89780))})(function(Qe){"use strict";Qe.defineMode("stex",function(Tt,oe){"use strict";function _e(de,z){de.cmdState.push(z)}function Ne(de){return de.cmdState.length>0?de.cmdState[de.cmdState.length-1]:null}function ve(de){var z=de.cmdState.pop();z&&z.closeBracket()}function fe(de){for(var z=de.cmdState,ee=z.length-1;ee>=0;ee--){var ae=z[ee];if(ae.name!="DEFAULT")return ae}return{styleIdentifier:function(){return null}}}function be(de,z,ee){return function(){this.name=de,this.bracketNo=0,this.style=z,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 Pe={};Pe.importmodule=be("importmodule","tag",["string","builtin"]),Pe.documentclass=be("documentclass","tag",["","atom"]),Pe.usepackage=be("usepackage","tag",["atom"]),Pe.begin=be("begin","tag",["atom"]),Pe.end=be("end","tag",["atom"]),Pe.label=be("label","tag",["atom"]),Pe.ref=be("ref","tag",["atom"]),Pe.eqref=be("eqref","tag",["atom"]),Pe.cite=be("cite","tag",["atom"]),Pe.bibitem=be("bibitem","tag",["atom"]),Pe.Bibitem=be("Bibitem","tag",["atom"]),Pe.RBibitem=be("RBibitem","tag",["atom"]),Pe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ye(de,z){de.f=z}function we(de,z){var ee;if(de.match(/^\\[a-zA-Z@]+/)){var ae=de.current().slice(1);return ee=Pe.hasOwnProperty(ae)?Pe[ae]:Pe.DEFAULT,ee=new ee,_e(z,ee),ye(z,Se),ee.style}if(de.match(/^\\[$&%#{}_]/)||de.match(/^\\[,;!\/\\]/))return"tag";if(de.match("\\["))return ye(z,function(le,ue){return me(le,ue,"\\]")}),"keyword";if(de.match("\\("))return ye(z,function(le,ue){return me(le,ue,"\\)")}),"keyword";if(de.match("$$"))return ye(z,function(le,ue){return me(le,ue,"$$")}),"keyword";if(de.match("$"))return ye(z,function(le,ue){return me(le,ue,"$")}),"keyword";var re=de.next();if(re=="%")return de.skipToEnd(),"comment";if(re=="}"||re=="]"){if(ee=Ne(z),ee)ee.closeBracket(re),ye(z,Se);else return"error";return"bracket"}else return re=="{"||re=="["?(ee=Pe.DEFAULT,ee=new ee,_e(z,ee),"bracket"):/\d/.test(re)?(de.eatWhile(/[\w.%]/),"atom"):(de.eatWhile(/[\w\-_]/),ee=fe(z),ee.name=="begin"&&(ee.argument=de.current()),ee.styleIdentifier())}function me(de,z,ee){if(de.eatSpace())return null;if(ee&&de.match(ee))return ye(z,we),"keyword";if(de.match(/^\\[a-zA-Z@]+/))return"tag";if(de.match(/^[a-zA-Z]+/))return"variable-2";if(de.match(/^\\[$&%#{}_]/)||de.match(/^\\[,;!\/]/)||de.match(/^[\^_&]/))return"tag";if(de.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(de.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ae=de.next();return ae=="{"||ae=="}"||ae=="["||ae=="]"||ae=="("||ae==")"?"bracket":ae=="%"?(de.skipToEnd(),"comment"):"error"}function Se(de,z){var ee=de.peek(),ae;return ee=="{"||ee=="["?(ae=Ne(z),ae.openBracket(ee),de.eat(ee),ye(z,we),"bracket"):/[ \t\r]/.test(ee)?(de.eat(ee),null):(ye(z,we),ve(z),we(de,z))}return{startState:function(){var de=oe.inMathMode?function(z,ee){return me(z,ee)}:we;return{cmdState:[],f:de}},copyState:function(de){return{cmdState:de.cmdState.slice(),f:de.f}},token:function(de,z){return z.f(de,z)},blankLine:function(de){de.f=we,de.cmdState.length=0},lineComment:"%"}}),Qe.defineMIME("text/x-stex","stex"),Qe.defineMIME("text/x-latex","stex")})},15525:function(bn,an,Ge){(function(Qe){Qe(Ge(89780))})(function(Qe){"use strict";var Tt={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},oe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Qe.defineMode("xml",function(_e,Ne){var ve=_e.indentUnit,fe={},be=Ne.htmlMode?Tt:oe;for(var Pe in be)fe[Pe]=be[Pe];for(var Pe in Ne)fe[Pe]=Ne[Pe];var ye,we;function me(Re,Ze){function ze(ct){return Ze.tokenize=ct,ct(Re,Ze)}var Ke=Re.next();if(Ke=="<")return Re.eat("!")?Re.eat("[")?Re.match("CDATA[")?ze(z("atom","]]>")):null:Re.match("--")?ze(z("comment","-->")):Re.match("DOCTYPE",!0,!0)?(Re.eatWhile(/[\w\._\-]/),ze(ee(1))):null:Re.eat("?")?(Re.eatWhile(/[\w\._\-]/),Ze.tokenize=z("meta","?>"),"meta"):(ye=Re.eat("/")?"closeTag":"openTag",Ze.tokenize=Se,"tag bracket");if(Ke=="&"){var ot;return Re.eat("#")?Re.eat("x")?ot=Re.eatWhile(/[a-fA-F\d]/)&&Re.eat(";"):ot=Re.eatWhile(/[\d]/)&&Re.eat(";"):ot=Re.eatWhile(/[\w\.\-:]/)&&Re.eat(";"),ot?"atom":"error"}else return Re.eatWhile(/[^&<]/),null}me.isInText=!0;function Se(Re,Ze){var ze=Re.next();if(ze==">"||ze=="/"&&Re.eat(">"))return Ze.tokenize=me,ye=ze==">"?"endTag":"selfcloseTag","tag bracket";if(ze=="=")return ye="equals",null;if(ze=="<"){Ze.tokenize=me,Ze.state=ue,Ze.tagName=Ze.tagStart=null;var Ke=Ze.tokenize(Re,Ze);return Ke?Ke+" tag error":"tag error"}else return/[\'\"]/.test(ze)?(Ze.tokenize=de(ze),Ze.stringStartCol=Re.column(),Ze.tokenize(Re,Ze)):(Re.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function de(Re){var Ze=function(ze,Ke){for(;!ze.eol();)if(ze.next()==Re){Ke.tokenize=Se;break}return"string"};return Ze.isInAttribute=!0,Ze}function z(Re,Ze){return function(ze,Ke){for(;!ze.eol();){if(ze.match(Ze)){Ke.tokenize=me;break}ze.next()}return Re}}function ee(Re){return function(Ze,ze){for(var Ke;(Ke=Ze.next())!=null;){if(Ke=="<")return ze.tokenize=ee(Re+1),ze.tokenize(Ze,ze);if(Ke==">")if(Re==1){ze.tokenize=me;break}else return ze.tokenize=ee(Re-1),ze.tokenize(Ze,ze)}return"meta"}}function ae(Re,Ze,ze){this.prev=Re.context,this.tagName=Ze,this.indent=Re.indented,this.startOfLine=ze,(fe.doNotIndent.hasOwnProperty(Ze)||Re.context&&Re.context.noIndent)&&(this.noIndent=!0)}function re(Re){Re.context&&(Re.context=Re.context.prev)}function le(Re,Ze){for(var ze;;){if(!Re.context||(ze=Re.context.tagName,!fe.contextGrabbers.hasOwnProperty(ze)||!fe.contextGrabbers[ze].hasOwnProperty(Ze)))return;re(Re)}}function ue(Re,Ze,ze){return Re=="openTag"?(ze.tagStart=Ze.column(),pe):Re=="closeTag"?Ee:ue}function pe(Re,Ze,ze){return Re=="word"?(ze.tagName=Ze.current(),we="tag",Le):fe.allowMissingTagName&&Re=="endTag"?(we="tag bracket",Le(Re,Ze,ze)):(we="error",pe)}function Ee(Re,Ze,ze){if(Re=="word"){var Ke=Ze.current();return ze.context&&ze.context.tagName!=Ke&&fe.implicitlyClosed.hasOwnProperty(ze.context.tagName)&&re(ze),ze.context&&ze.context.tagName==Ke||fe.matchClosing===!1?(we="tag",Ce):(we="tag error",je)}else return fe.allowMissingTagName&&Re=="endTag"?(we="tag bracket",Ce(Re,Ze,ze)):(we="error",je)}function Ce(Re,Ze,ze){return Re!="endTag"?(we="error",Ce):(re(ze),ue)}function je(Re,Ze,ze){return we="error",Ce(Re,Ze,ze)}function Le(Re,Ze,ze){if(Re=="word")return we="attribute",ke;if(Re=="endTag"||Re=="selfcloseTag"){var Ke=ze.tagName,ot=ze.tagStart;return ze.tagName=ze.tagStart=null,Re=="selfcloseTag"||fe.autoSelfClosers.hasOwnProperty(Ke)?le(ze,Ke):(le(ze,Ke),ze.context=new ae(ze,Ke,ot==ze.indented)),ue}return we="error",Le}function ke(Re,Ze,ze){return Re=="equals"?Oe:(fe.allowMissing||(we="error"),Le(Re,Ze,ze))}function Oe(Re,Ze,ze){return Re=="string"?Fe:Re=="word"&&fe.allowUnquoted?(we="string",Le):(we="error",Le(Re,Ze,ze))}function Fe(Re,Ze,ze){return Re=="string"?Fe:Le(Re,Ze,ze)}return{startState:function(Re){var Ze={tokenize:me,state:ue,indented:Re||0,tagName:null,tagStart:null,context:null};return Re!=null&&(Ze.baseIndent=Re),Ze},token:function(Re,Ze){if(!Ze.tagName&&Re.sol()&&(Ze.indented=Re.indentation()),Re.eatSpace())return null;ye=null;var ze=Ze.tokenize(Re,Ze);return(ze||ye)&&ze!="comment"&&(we=null,Ze.state=Ze.state(ye||ze,Re,Ze),we&&(ze=we=="error"?ze+" error":we)),ze},indent:function(Re,Ze,ze){var Ke=Re.context;if(Re.tokenize.isInAttribute)return Re.tagStart==Re.indented?Re.stringStartCol+1:Re.indented+ve;if(Ke&&Ke.noIndent)return Qe.Pass;if(Re.tokenize!=Se&&Re.tokenize!=me)return ze?ze.match(/^(\s*)/)[0].length:0;if(Re.tagName)return fe.multilineTagIndentPastTag!==!1?Re.tagStart+Re.tagName.length+2:Re.tagStart+ve*(fe.multilineTagIndentFactor||1);if(fe.alignCDATA&&/<!\[CDATA\[/.test(Ze))return 0;var ot=Ze&&/^<(\/)?([\w_:\.-]*)/.exec(Ze);if(ot&&ot[1])for(;Ke;)if(Ke.tagName==ot[2]){Ke=Ke.prev;break}else if(fe.implicitlyClosed.hasOwnProperty(Ke.tagName))Ke=Ke.prev;else break;else if(ot)for(;Ke;){var ct=fe.contextGrabbers[Ke.tagName];if(ct&&ct.hasOwnProperty(ot[2]))Ke=Ke.prev;else break}for(;Ke&&Ke.prev&&!Ke.startOfLine;)Ke=Ke.prev;return Ke?Ke.indent+ve:Re.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:fe.htmlMode?"html":"xml",helperType:fe.htmlMode?"html":"xml",skipAttribute:function(Re){Re.state==Oe&&(Re.state=Le)},xmlCurrentTag:function(Re){return Re.tagName?{name:Re.tagName,close:Re.type=="closeTag"}:null},xmlCurrentContext:function(Re){for(var Ze=[],ze=Re.context;ze;ze=ze.prev)ze.tagName&&Ze.push(ze.tagName);return Ze.reverse()}}}),Qe.defineMIME("text/xml","xml"),Qe.defineMIME("application/xml","xml"),Qe.mimeModes.hasOwnProperty("text/html")||Qe.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(bn,an,Ge){"use strict";Ge.d(an,{$u:function(){return Pe},BD:function(){return ft},E9:function(){return be},FF:function(){return Tr},FJ:function(){return ue},Hn:function(){return le},KX:function(){return Ee},NB:function(){return We},S0:function(){return Et},UL:function(){return ye},Vk:function(){return re},Vm:function(){return Ie},YI:function(){return St},ZA:function(){return oe},Zt:function(){return we},al:function(){return et},bn:function(){return dt},bx:function(){return $e},g2:function(){return tt},h1:function(){return Oe},hD:function(){return mn},l4:function(){return ve},rU:function(){return De},s_:function(){return lt},uz:function(){return ut},z6:function(){return me}}),bn=Ge.hmd(bn),function(){var it;function Qr(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function $r(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:Qr(a)}}function En(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var er=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},rr;if(typeof Object.setPrototypeOf=="function")rr=Object.setPrototypeOf;else{var vr;e:{var zn={a:!0},Nn={};try{Nn.__proto__=zn,vr=Nn.a;break e}catch(a){}vr=!1}rr=vr?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var $t=rr;function Xt(a,y){if(a.prototype=er(y.prototype),a.prototype.constructor=a,$t)$t(a,y);else for(var x in y)if(x!="prototype")if(Object.defineProperties){var b=Object.getOwnPropertyDescriptor(y,x);b&&Object.defineProperty(a,x,b)}else a[x]=y[x];a.QA=y.prototype}var Lt=typeof Ge.g!="undefined"&&Ge.g!=null?Ge.g:self,nn=typeof Object.assign=="function"?Object.assign:function(a,y){for(var x=1;x<arguments.length;x++){var b=arguments[x];if(b)for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(a[E]=b[E])}return a},pn=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function Vt(a,y){if(y){var x=Lt;a=a.split(".");for(var b=0;b<a.length-1;b++){var E=a[b];E in x||(x[E]={}),x=x[E]}a=a[a.length-1],b=x[a],y=y(b),y!=b&&y!=null&&pn(x,a,{writable:!0,value:y})}}Vt("Object.assign",function(a){return a||nn}),Vt("Array.prototype.fill",function(a){return a||function(y,x,b){var E=this.length||0;for(0>x&&(x=Math.max(0,E+x)),(b==null||b>E)&&(b=E),b=Number(b),0>b&&(b=Math.max(0,E+b)),x=Number(x||0);x<b;x++)this[x]=y;return this}});var Rt=typeof globalThis=="object"&&globalThis||typeof Ge.g=="object"&&Ge.g.global===Ge.g&&Ge.g||typeof self=="object"&&self.self===self&&self||{};Rt.requestAnimationFrame===void 0&&(Rt.setImmediate===void 0?Rt.requestAnimationFrame=function(a){Rt.setTimeout(a,0)}:Rt.requestAnimationFrame=Rt.setImmediate);function rn(){}function yn(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&Rt.clearTimeout(x),x=Mn(function(){x=-1,a.apply(b,E)},y)}}function Mn(a,y){return Rt.setTimeout(a,y)}function On(a){return Rt.document.createElement(a)}function zt(a){throw Error(a)}function xn(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),zt(a)}function Fn(a,y,x,b){x=x===null?"*":typeof x=="string"?x:typeof x=="function"&&typeof x.className=="string"?x.className:"",b!==void 0&&(x+="."+b),zt(x+" is not in the range "+y+": "+a)}function $n(a){Rt.console&&Rt.console.log(a)}function gn(a){return typeof a=="object"&&a!==null}function Sn(a){return Array.isArray(a)||Rt.NodeList&&a instanceof Rt.NodeList||Rt.HTMLCollection&&a instanceof Rt.HTMLCollection}function Qt(a){return Array.prototype.slice.call(a)}function hn(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):zt("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function dn(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):zt("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function cn(){var a=Or.pop();return a===void 0?[]:a}function Pn(a){a.length=0,Or.push(a)}function Cn(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(gn(a)&&a.constructor)return Cn(a.constructor);return typeof a}function Dn(a){var y=a;return gn(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 In(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function tr(a,y,x){Object.defineProperty(Wi.prototype,a,{get:y,set:x})}function un(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var b=0,E=0;E<a.length;E+=2)x[b++]=y[a.substr(E,2)];for(a=x.join(""),a=a===""?"0":a,y=[],x=0;256>x;x++)y[x]=x;for(x=b=0;256>x;x++)b=(b+y[x]+119)%256,E=y[x],y[x]=y[b],y[b]=E;b=x=0;for(var te="",ne=0;ne<a.length;ne++)x=(x+1)%256,b=(b+y[x])%256,E=y[x],y[x]=y[b],y[b]=E,te+=String.fromCharCode(a.charCodeAt(ne)^y[(y[x]+y[b])%256]);return te.indexOf("GoJS 2.1 evaluation")>-1||te.indexOf("\xA9 1998-2021 Northwoods Software")>-1||te.indexOf("Not for distribution or production use")>-1||te.indexOf("gojs.net")>-1?"":te}var fr=Rt.navigator!==void 0&&0<Rt.navigator.userAgent.indexOf("Trident/7"),wr=Rt.navigator!==void 0&&Rt.navigator.platform!==void 0&&Rt.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Or=[];Object.freeze([]),rn.className="Util",rn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",rn.adym="gojs.net",rn.vfo="28e645fdb266",rn.className="Util";function fn(a,y,x){zr(this),this.j=a,this.xa=y,this.o=x}fn.prototype.toString=function(){return"EnumValue."+this.xa};function _n(a,y){return y==null||y===""?null:a[y]}Lt.Object.defineProperties(fn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),fn.className="EnumValue";function Yn(){this.ew=[]}Yn.prototype.toString=function(){return this.ew.join("")},Yn.prototype.add=function(a){a!==""&&this.ew.push(a)},Yn.className="StringBuilder";function hr(){}hr.className="PropertyCollection";var Qn={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Rt.console&&Rt.console.log(a)},HA:function(a,y,x,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(x,x),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={},x;for(x in a){if(y.x=x,y.x!=="licenseKey"){var b=a[y.x];if(b.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(b.prototype);for(var E={Tj:0};E.Tj<y.Zl.length;E={Tj:E.Tj},E.Tj++){var te=Object.getOwnPropertyDescriptor(b.prototype,y.Zl[E.Tj]);te.get!==void 0&&te.set===void 0&&Object.defineProperty(b.prototype,y.Zl[E.Tj],{set:function(ne,se){return function(){throw Error("Property "+ne.Zl[se.Tj]+" of "+ne.x+" is read-only.")}}(y,E)})}}}y={Zl:y.Zl,x:y.x}}}};function ur(){}ur.prototype.reset=function(){},ur.prototype.next=function(){return!1},ur.prototype.Ad=function(){return!1},ur.prototype.first=function(){return null},ur.prototype.any=function(){return!1},ur.prototype.all=function(){return!0},ur.prototype.each=function(){return this},ur.prototype.map=function(){return this},ur.prototype.filter=function(){return this},ur.prototype.de=function(){},ur.prototype.toString=function(){return"EmptyIterator"},Lt.Object.defineProperties(ur.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),ur.prototype.first=ur.prototype.first,ur.prototype.hasNext=ur.prototype.Ad,ur.prototype.next=ur.prototype.next,ur.prototype.reset=ur.prototype.reset;var Cr=null;ur.className="EmptyIterator",Cr=new ur;function Pr(a){this.key=-1,this.value=a}Pr.prototype.reset=function(){this.key=-1},Pr.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Pr.prototype.Ad=function(){return this.next()},Pr.prototype.first=function(){return this.key=0,this.value},Pr.prototype.any=function(a){return this.key=-1,a(this.value)},Pr.prototype.all=function(a){return this.key=-1,a(this.value)},Pr.prototype.each=function(a){return this.key=-1,a(this.value),this},Pr.prototype.map=function(a){return new Pr(a(this.value))},Pr.prototype.filter=function(a){return a(this.value)?new Pr(this.value):Cr},Pr.prototype.de=function(){this.value=null},Pr.prototype.toString=function(){return"SingletonIterator("+this.value+")"},Lt.Object.defineProperties(Pr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Pr.prototype.first=Pr.prototype.first,Pr.prototype.hasNext=Pr.prototype.Ad,Pr.prototype.next=Pr.prototype.next,Pr.prototype.reset=Pr.prototype.reset,Pr.className="SingletonIterator";function cr(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}cr.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},cr.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;a=a.s;var y=a.length,x=++this.Za,b=this.qf;if(b!==null)for(;x<y;){var E=a[x];if(b(E))return this.key=this.Za=x,this.value=E,!0;x++}else{if(x<y)return this.key=x,this.value=a[x],!0;this.de()}return!1},cr.prototype.Ad=function(){return this.next()},cr.prototype.first=function(){var a=this.Bb;this.qa=a.Ja,this.Za=0,a=a.s;var y=a.length,x=this.qf;if(x!==null){for(var b=0;b<y;){var E=a[b];if(x(E))return this.key=this.Za=b,this.value=E;b++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},cr.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var te=y[E];if((b===null||b(te))&&a(te))return!0}return!1},cr.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var te=y[E];if((b===null||b(te))&&!a(te))return!1}return!0},cr.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var te=y[E];(b===null||b(te))&&a(te)}return this},cr.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,te=0;te<b;te++){var ne=y[te];(E===null||E(ne))&&x.push(a(ne))}return a=new Tn,a.s=x,a.xb(),a.iterator},cr.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,te=0;te<b;te++){var ne=y[te];(E===null||E(ne))&&a(ne)&&x.push(ne)}return a=new Tn,a.s=x,a.xb(),a.iterator},cr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},cr.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},Lt.Object.defineProperties(cr.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,x=this.Bb.s,b=x.length,E=0;E<b;E++)a(x[E])&&y++;return y}return this.Bb.s.length}}}),cr.prototype.first=cr.prototype.first,cr.prototype.hasNext=cr.prototype.Ad,cr.prototype.next=cr.prototype.next,cr.prototype.reset=cr.prototype.reset,cr.className="ListIterator";function Mr(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Mr.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Mr.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},Mr.prototype.Ad=function(){return this.next()},Mr.prototype.first=function(){var a=this.Bb;this.qa=a.Ja;var y=a.s;return this.Za=a=y.length-1,0<=a?(y=y[a],this.key=a,this.value=y):null},Mr.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(a(y[x]))return!0;return!1},Mr.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(!a(y[x]))return!1;return!0},Mr.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)a(y[x]);return this},Mr.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--)x.push(a(y[b]));return a=new Tn,a.s=x,a.xb(),a.iterator},Mr.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--){var E=y[b];a(E)&&x.push(E)}return a=new Tn,a.s=x,a.xb(),a.iterator},Mr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Mr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Lt.Object.defineProperties(Mr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Mr.prototype.first=Mr.prototype.first,Mr.prototype.hasNext=Mr.prototype.Ad,Mr.prototype.next=Mr.prototype.next,Mr.prototype.reset=Mr.prototype.reset,Mr.className="ListIteratorBackwards";function Tn(a){zr(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&zt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}it=Tn.prototype,it.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return this._isFrozen=!1,this},it.toString=function(){return"List()#"+Ar(this)},it.add=function(a){return a===null?this:(this._isFrozen&&xn(this,a),this.s.push(a),this.xb(),this)},it.push=function(a){this.add(a)},it.addAll=function(a){if(a===null)return this;this._isFrozen&&xn(this);var y=this.s;if(Sn(a))for(var x=a.length,b=0;b<x;b++)y.push(a[b]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},it.clear=function(){this._isFrozen&&xn(this),this.s.length=0,this.xb()},it.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},it.has=function(a){return this.contains(a)},it.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},it.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Fn(a,"0 <= i < length",Tn,"elt:i"),y[a]},it.get=function(a){return this.M(a)},it.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Fn(a,"0 <= i < length",Tn,"setElt:i"),this._isFrozen&&xn(this,a),x[a]=y},it.set=function(a,y){this.cd(a,y)},it.first=function(){var a=this.s;return a.length===0?null:a[0]},it.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},it.pop=function(){this._isFrozen&&xn(this);var a=this.s;return 0<a.length?a.pop():null},Tn.prototype.any=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(a(y[b]))return!0;return!1},Tn.prototype.all=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(!a(y[b]))return!1;return!0},Tn.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},Tn.prototype.map=function(a){for(var y=new Tn,x=[],b=this.s,E=b.length,te=0;te<E;te++)x.push(a(b[te]));return y.s=x,y.xb(),y},Tn.prototype.filter=function(a){for(var y=new Tn,x=[],b=this.s,E=b.length,te=0;te<E;te++){var ne=b[te];a(ne)&&x.push(ne)}return y.s=x,y.xb(),y},it=Tn.prototype,it.Gb=function(a,y){0>a&&Fn(a,">= 0",Tn,"insertAt:i"),this._isFrozen&&xn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},it.remove=function(a){if(a===null)return!1;this._isFrozen&&xn(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)},it.delete=function(a){return this.remove(a)},it.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Fn(a,"0 <= i < length",Tn,"removeAt:i"),this._isFrozen&&xn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},it.removeRange=function(a,y){var x=this.s,b=x.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&&xn(this);for(var E=a,te=y+1;te<b;)x[E++]=x[te++];return x.length=b-(y-a+1),this.xb(),this},Tn.prototype.copy=function(){var a=new Tn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},it=Tn.prototype,it.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},it.Iv=function(){for(var a=new Ln,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},it.sort=function(a){return this._isFrozen&&xn(this),this.s.sort(a),this.xb(),this},it.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&xn(this);var te=x-y;if(1>=te)return this;if((0>y||y>=E-1)&&Fn(y,"0 <= from < length",Tn,"sortRange:from"),te===2)return x=b[y],E=b[y+1],0<a(x,E)&&(b[y]=E,b[y+1]=x,this.xb()),this;if(y===0)if(x>=E)b.sort(a);else for(y=b.slice(0,x),y.sort(a),a=0;a<x;a++)b[a]=y[a];else if(x>=E)for(x=b.slice(y),x.sort(a),a=y;a<E;a++)b[a]=x[a-y];else for(E=b.slice(y,x),E.sort(a),a=y;a<x;a++)b[a]=E[a-y];return this.xb(),this},it.reverse=function(){return this._isFrozen&&xn(this),this.s.reverse(),this.xb(),this},Lt.Object.defineProperties(Tn.prototype,{_dataArray:{get:function(){return this.s}},count:{get:function(){return this.s.length}},size:{get:function(){return this.s.length}},length:{get:function(){return this.s.length}},iterator:{get:function(){if(0>=this.s.length)return Cr;var a=this.Sa;return a!==null?(a.reset(),a):new cr(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Cr;var a=this.Hg;return a!==null?(a.reset(),a):new Mr(this)}}}),Tn.prototype.reverse=Tn.prototype.reverse,Tn.prototype.sortRange=Tn.prototype.zi,Tn.prototype.sort=Tn.prototype.sort,Tn.prototype.toSet=Tn.prototype.Iv,Tn.prototype.toArray=Tn.prototype.Fa,Tn.prototype.removeRange=Tn.prototype.removeRange,Tn.prototype.removeAt=Tn.prototype.mb,Tn.prototype.delete=Tn.prototype.delete,Tn.prototype.remove=Tn.prototype.remove,Tn.prototype.insertAt=Tn.prototype.Gb,Tn.prototype.pop=Tn.prototype.pop,Tn.prototype.last=Tn.prototype.jc,Tn.prototype.first=Tn.prototype.first,Tn.prototype.set=Tn.prototype.set,Tn.prototype.setElt=Tn.prototype.cd,Tn.prototype.get=Tn.prototype.get,Tn.prototype.elt=Tn.prototype.M,Tn.prototype.indexOf=Tn.prototype.indexOf,Tn.prototype.has=Tn.prototype.has,Tn.prototype.contains=Tn.prototype.contains,Tn.prototype.clear=Tn.prototype.clear,Tn.prototype.addAll=Tn.prototype.addAll,Tn.prototype.push=Tn.prototype.push,Tn.prototype.add=Tn.prototype.add,Tn.prototype.thaw=Tn.prototype.ka,Tn.prototype.freeze=Tn.prototype.freeze,Tn.className="List";function qr(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}qr.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},qr.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)},qr.prototype.Ad=function(){return this.next()},qr.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},qr.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},qr.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},qr.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},qr.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new Tn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},qr.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Tn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},qr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},qr.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Lt.Object.defineProperties(qr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),qr.prototype.first=qr.prototype.first,qr.prototype.hasNext=qr.prototype.Ad,qr.prototype.next=qr.prototype.next,qr.prototype.reset=qr.prototype.reset,qr.className="SetIterator";function Ln(a){zr(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&zt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}it=Ln.prototype,it.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return this._isFrozen=!1,this},it.toString=function(){return"Set()#"+Ar(this)},it.add=function(a){if(a===null)return this;this._isFrozen&&xn(this,a);var y=a;return gn(a)&&(y=li(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Kr(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},it.addAll=function(a){if(a===null)return this;if(this._isFrozen&&xn(this),Sn(a))for(var y=a.length,x=0;x<y;x++)this.add(a[x]);else for(a=a.iterator;a.next();)this.add(a.value);return this},it.contains=function(a){if(a===null)return!1;var y=a;return gn(a)&&(y=Ar(a),y===void 0)?!1:this.Tb[y]!==void 0},it.has=function(a){return this.contains(a)},it.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},it.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},it.first=function(){var a=this.ea;return a===null?null:a.value},Ln.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Ln.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Ln.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},Ln.prototype.map=function(a){for(var y=new Ln,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},Ln.prototype.filter=function(a){for(var y=new Ln,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},it=Ln.prototype,it.remove=function(a){if(a===null)return!1;this._isFrozen&&xn(this,a);var y=a;if(gn(a)&&(y=Ar(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},it.delete=function(a){return this.remove(a)},it.hp=function(a){if(a===null)return this;if(this._isFrozen&&xn(this),Sn(a))for(var y=a.length,x=0;x<y;x++)this.remove(a[x]);else for(a=a.iterator;a.next();)this.remove(a.value);return this},it.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&xn(this);var y=new Ln;y.addAll(a),a=[];for(var x=this.iterator;x.next();){var b=x.value;y.contains(b)||a.push(b)}return this.hp(a),this},it.clear=function(){this._isFrozen&&xn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Ln.prototype.copy=function(){var a=new Ln,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},Ln.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,x=0,b;for(b in y)a[x]=y[b].value,x++;return a},Ln.prototype.Hv=function(){var a=new Tn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function zr(a){a.__gohashid=fi++}function li(a){var y=a.__gohashid;return y===void 0&&(y=fi++,a.__gohashid=y),y}function Ar(a){return a.__gohashid}Lt.Object.defineProperties(Ln.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Cr;var a=this.Sa;return a!==null?(a.reset(),a):new qr(this)}}}),Ln.prototype.toList=Ln.prototype.Hv,Ln.prototype.toArray=Ln.prototype.Fa,Ln.prototype.clear=Ln.prototype.clear,Ln.prototype.retainAll=Ln.prototype.pA,Ln.prototype.removeAll=Ln.prototype.hp,Ln.prototype.delete=Ln.prototype.delete,Ln.prototype.remove=Ln.prototype.remove,Ln.prototype.first=Ln.prototype.first,Ln.prototype.containsAny=Ln.prototype.Ty,Ln.prototype.containsAll=Ln.prototype.Sy,Ln.prototype.has=Ln.prototype.has,Ln.prototype.contains=Ln.prototype.contains,Ln.prototype.addAll=Ln.prototype.addAll,Ln.prototype.add=Ln.prototype.add,Ln.prototype.thaw=Ln.prototype.ka,Ln.prototype.freeze=Ln.prototype.freeze;var fi=1;Ln.className="Set",Ln.uniqueHash=zr,Ln.hashIdUnique=li,Ln.hashId=Ar;function oi(a){this.ma=a,this.qa=a.Ja,this.sa=null}oi.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},oi.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)},oi.prototype.Ad=function(){return this.next()},oi.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},oi.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},oi.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},oi.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},oi.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new Tn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},oi.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Tn;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},oi.prototype.de=function(){this.value=this.key=null,this.qa=-1},oi.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Lt.Object.defineProperties(oi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),oi.prototype.first=oi.prototype.first,oi.prototype.hasNext=oi.prototype.Ad,oi.prototype.next=oi.prototype.next,oi.prototype.reset=oi.prototype.reset,oi.className="MapKeySetIterator";function Sr(a){Ln.call(this),zr(this),this._isFrozen=!0,this.ma=a}Xt(Sr,Ln),it=Sr.prototype,it.freeze=function(){return this},it.ka=function(){return this},it.toString=function(){return"MapKeySet("+this.ma.toString()+")"},it.add=function(){zt("This Set is read-only: "+this.toString())},it.contains=function(a){return this.ma.contains(a)},it.has=function(a){return this.contains(a)},it.remove=function(){zt("This Set is read-only: "+this.toString())},it.delete=function(a){return this.remove(a)},it.clear=function(){zt("This Set is read-only: "+this.toString())},it.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Sr.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Sr.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Sr.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Sr.prototype.map=function(a){for(var y=new Ln,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Sr.prototype.filter=function(a){for(var y=new Ln,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},Sr.prototype.copy=function(){return new Sr(this.ma)},Sr.prototype.Iv=function(){var a=new Ln,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Sr.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,b;for(b in a)y[x]=a[b].key,x++;return y},Sr.prototype.Hv=function(){var a=new Tn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Lt.Object.defineProperties(Sr.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Cr:new oi(this.ma)}}}),Sr.prototype.toList=Sr.prototype.Hv,Sr.prototype.toArray=Sr.prototype.Fa,Sr.prototype.toSet=Sr.prototype.Iv,Sr.prototype.first=Sr.prototype.first,Sr.prototype.clear=Sr.prototype.clear,Sr.prototype.delete=Sr.prototype.delete,Sr.prototype.remove=Sr.prototype.remove,Sr.prototype.has=Sr.prototype.has,Sr.prototype.contains=Sr.prototype.contains,Sr.prototype.add=Sr.prototype.add,Sr.prototype.thaw=Sr.prototype.ka,Sr.prototype.freeze=Sr.prototype.freeze,Sr.className="MapKeySet";function yr(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}yr.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},yr.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},yr.prototype.Ad=function(){return this.next()},yr.prototype.first=function(){var a=this.ma;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},yr.prototype.any=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},yr.prototype.all=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},yr.prototype.each=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},yr.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Tn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},yr.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Tn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},yr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},yr.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Lt.Object.defineProperties(yr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),yr.prototype.first=yr.prototype.first,yr.prototype.hasNext=yr.prototype.Ad,yr.prototype.next=yr.prototype.next,yr.prototype.reset=yr.prototype.reset,yr.className="MapValueSetIterator";function Kr(a,y){this.key=a,this.value=y,this.ll=this.va=null}Kr.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Kr.className="KeyValuePair";function ai(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}ai.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},ai.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)},ai.prototype.Ad=function(){return this.next()},ai.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},ai.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},ai.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},ai.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},ai.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Tn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},ai.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Tn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},ai.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},ai.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Lt.Object.defineProperties(ai.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ai.prototype.first=ai.prototype.first,ai.prototype.hasNext=ai.prototype.Ad,ai.prototype.next=ai.prototype.next,ai.prototype.reset=ai.prototype.reset,ai.className="MapIterator";function qn(a){zr(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"&&zt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}it=qn.prototype,it.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return this._isFrozen=!1,this},it.toString=function(){return"Map()#"+Ar(this)},it.add=function(a,y){this._isFrozen&&xn(this,a);var x=a;gn(a)&&(x=li(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new Kr(a,y),this.Tb[x]=a,x=this.kf,x===null?this.ea=a:(a.ll=x,x.va=a),this.kf=a,this.xb()):b.value=y,this},it.set=function(a,y){return this.add(a,y)},it.addAll=function(a){if(a===null)return this;if(Sn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];this.add(b.key,b.value)}else if(a instanceof qn)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},it.first=function(){return this.ea},qn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},qn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},qn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},qn.prototype.map=function(a){for(var y=new qn,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},qn.prototype.filter=function(a){for(var y=new qn,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},it=qn.prototype,it.contains=function(a){var y=a;return gn(a)&&(y=Ar(a),y===void 0)?!1:this.Tb[y]!==void 0},it.has=function(a){return this.contains(a)},it.I=function(a){var y=a;return gn(a)&&(y=Ar(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},it.get=function(a){return this.I(a)},it.remove=function(a){if(a===null)return!1;this._isFrozen&&xn(this,a);var y=a;if(gn(a)&&(y=Ar(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},it.delete=function(a){return this.remove(a)},it.clear=function(){this._isFrozen&&xn(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()},qn.prototype.copy=function(){var a=new qn,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},qn.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,b;for(b in a){var E=a[b];y[x]=new Kr(E.key,E.value),x++}return y},qn.prototype.Lf=function(){return new Sr(this)},Lt.Object.defineProperties(qn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Cr;var a=this.Sa;return a!==null?(a.reset(),a):new ai(this)}},iteratorKeys:{get:function(){return 0>=this.count?Cr:new oi(this)}},iteratorValues:{get:function(){if(0>=this.count)return Cr;var a=this.jf;return a!==null?(a.reset(),a):new yr(this)}}}),qn.prototype.toKeySet=qn.prototype.Lf,qn.prototype.toArray=qn.prototype.Fa,qn.prototype.clear=qn.prototype.clear,qn.prototype.delete=qn.prototype.delete,qn.prototype.remove=qn.prototype.remove,qn.prototype.get=qn.prototype.get,qn.prototype.getValue=qn.prototype.I,qn.prototype.has=qn.prototype.has,qn.prototype.contains=qn.prototype.contains,qn.prototype.first=qn.prototype.first,qn.prototype.addAll=qn.prototype.addAll,qn.prototype.set=qn.prototype.set,qn.prototype.add=qn.prototype.add,qn.prototype.thaw=qn.prototype.ka,qn.prototype.freeze=qn.prototype.freeze,qn.className="Map";function Nt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):zt("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var ni,Ci,Xr,Ei,Oi;Nt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Nt.prototype.h=function(a,y){return this.x=a,this.y=y,this},Nt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Nt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Nt.prototype.copy=function(){var a=new Nt;return a.x=this.x,a.y=this.y,a},it=Nt.prototype,it.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},it.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return Object.isFrozen(this)&&zt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Fr(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new Nt(x,E)}return new Nt}function Gr(a){return a.x.toString()+" "+a.y.toString()}it.toString=function(){return"Point("+this.x+","+this.y+")"},it.D=function(a){return a instanceof Nt?this.x===a.x&&this.y===a.y:!1},it.hi=function(a,y){return this.x===a&&this.y===y},it.Xa=function(a){return qt.B(this.x,a.x)&&qt.B(this.y,a.y)},it.add=function(a){return this.x+=a.x,this.y+=a.y,this},it.re=function(a){return this.x-=a.x,this.y-=a.y,this},it.offset=function(a,y){return this.x+=a,this.y+=y,this},Nt.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===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*x,this.y=b*y+a*x,this},it=Nt.prototype,it.scale=function(a,y){return this.x*=a,this.y*=y,this},it.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},it.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},it.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0<x&&(this.x=a/x,this.y=y/x),this},it.ab=function(a){return ri(a.x-this.x,a.y-this.y)},it.direction=function(a,y){return ri(a-this.x,y-this.y)};function ri(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 x=180*Math.atan(Math.abs(y/a))/Math.PI;return 0>a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}it.Ry=function(a,y){return qt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},it.fA=function(a,y,x,b){return qt.qh(a,y,x,b,this.x,this.y,this),this},it.gA=function(a,y){return qt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},it.uA=function(a,y,x,b){return qt.No(this.x,this.y,a,y,x,b,this),this},it.vA=function(a,y){return qt.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},it.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},it.yi=function(a,y,x,b,E){return this.x=a+E.x*x+E.offsetX,this.y=y+E.y*b+E.offsetY,this},it.transform=function(a){return a.Ga(this),this};function Vr(a,y){return y.Cd(a),a}function Mi(a,y,x,b,E,te){var ne=E-x,se=te-b,ce=ne*ne+se*se;x-=a,b-=y;var ge=-x*ne-b*se;return 0>=ge||ge>=ce?(ne=E-a,se=te-y,Math.min(x*x+b*b,ne*ne+se*se)):(a=ne*b-se*x,a*a/ce)}function Fi(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function Lr(a,y,x,b){return a=x-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)}it.w=function(){return isFinite(this.x)&&isFinite(this.y)},Nt.alloc=function(){var a=kr.pop();return a===void 0?new Nt:a},Nt.allocAt=function(a,y){var x=kr.pop();return x===void 0?new Nt(a,y):(x.x=a,x.y=y,x)},Nt.free=function(a){kr.push(a)},Nt.prototype.isReal=Nt.prototype.w,Nt.prototype.setSpot=Nt.prototype.yi,Nt.prototype.setRectSpot=Nt.prototype.xi,Nt.prototype.snapToGridPoint=Nt.prototype.vA,Nt.prototype.snapToGrid=Nt.prototype.uA,Nt.prototype.projectOntoLineSegmentPoint=Nt.prototype.gA,Nt.prototype.projectOntoLineSegment=Nt.prototype.fA,Nt.intersectingLineSegments=function(a,y,x,b,E,te,ne,se){return qt.Rl(a,y,x,b,E,te,ne,se)},Nt.prototype.compareWithLineSegmentPoint=Nt.prototype.Ry,Nt.compareWithLineSegment=function(a,y,x,b,E,te){return qt.Fl(a,y,x,b,E,te)},Nt.prototype.direction=Nt.prototype.direction,Nt.prototype.directionPoint=Nt.prototype.ab,Nt.prototype.normalize=Nt.prototype.normalize,Nt.prototype.distanceSquared=Nt.prototype.zd,Nt.prototype.distanceSquaredPoint=Nt.prototype.Bf,Nt.prototype.scale=Nt.prototype.scale,Nt.prototype.rotate=Nt.prototype.rotate,Nt.prototype.offset=Nt.prototype.offset,Nt.prototype.subtract=Nt.prototype.re,Nt.prototype.add=Nt.prototype.add,Nt.prototype.equalsApprox=Nt.prototype.Xa,Nt.prototype.equalTo=Nt.prototype.hi,Nt.prototype.equals=Nt.prototype.D,Nt.prototype.set=Nt.prototype.set,Nt.prototype.setTo=Nt.prototype.sg;var kr=[];Nt.className="Point",Nt.parse=Fr,Nt.stringify=Gr,Nt.distanceLineSegmentSquared=Mi,Nt.distanceSquared=Fi,Nt.direction=Lr,Nt.Origin=ni=new Nt(0,0).ja(),Nt.InfiniteTopLeft=Ci=new Nt(-1/0,-1/0).ja(),Nt.InfiniteBottomRight=Xr=new Nt(1/0,1/0).ja(),Nt.SixPoint=Ei=new Nt(6,6).ja(),Nt.NoPoint=Oi=new Nt(NaN,NaN).ja(),Nt.parse=Fr,Nt.stringify=Gr,Nt.distanceLineSegmentSquared=Mi,Nt.distanceSquared=Fi,Nt.direction=Lr;function Wn(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):zt("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Br,vi,Ki,Ti,gi,Gi,Xi;Wn.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Wn.prototype.h=function(a,y){return this.width=a,this.height=y,this},Wn.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Wn.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Wn.prototype.copy=function(){var a=new Wn;return a.width=this.width,a.height=this.height,a},it=Wn.prototype,it.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},it.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return Object.isFrozen(this)&&zt("cannot thaw constant: "+this),this._isFrozen=!1,this};function vo(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new Wn(x,E)}return new Wn}function yo(a){return a.width.toString()+" "+a.height.toString()}it.toString=function(){return"Size("+this.width+","+this.height+")"},it.D=function(a){return a instanceof Wn?this.width===a.width&&this.height===a.height:!1},it.hi=function(a,y){return this.width===a&&this.height===y},it.Xa=function(a){return qt.B(this.width,a.width)&&qt.B(this.height,a.height)},it.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},it.w=function(){return isFinite(this.width)&&isFinite(this.height)},Wn.alloc=function(){var a=Po.pop();return a===void 0?new Wn:a},Wn.free=function(a){Po.push(a)},Wn.prototype.isReal=Wn.prototype.w,Wn.prototype.inflate=Wn.prototype.Bc,Wn.prototype.equalsApprox=Wn.prototype.Xa,Wn.prototype.equalTo=Wn.prototype.hi,Wn.prototype.equals=Wn.prototype.D,Wn.prototype.set=Wn.prototype.set,Wn.prototype.setTo=Wn.prototype.sg;var Po=[];Wn.className="Size",Wn.parse=vo,Wn.stringify=yo,Wn.ZeroSize=Br=new Wn(0,0).ja(),Wn.OneSize=vi=new Wn(1,1).ja(),Wn.SixSize=Ki=new Wn(6,6).ja(),Wn.EightSize=Ti=new Wn(8,8).ja(),Wn.TenSize=gi=new Wn(10,10).ja(),Wn.InfiniteSize=Gi=new Wn(1/0,1/0).ja(),Wn.NoSize=Xi=new Wn(NaN,NaN).ja(),Wn.parse=vo,Wn.stringify=yo;function wn(a,y,x,b){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof b=="number"&&(0<=b||isNaN(b))?(this.x=a,this.y=y,this.width=x,this.height=b):a instanceof Nt?(x=a.x,a=a.y,y instanceof Nt?(b=y.x,y=y.y,this.x=Math.min(x,b),this.y=Math.min(a,y),this.width=Math.abs(x-b),this.height=Math.abs(a-y)):y instanceof Wn?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):zt("Incorrect second argument supplied to Rect constructor "+y)):zt("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}it=wn.prototype,it.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},it.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function ao(a,y,x){a.width=y,a.height=x}it.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},it.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},it.dd=function(a){return this.x=a.x,this.y=a.y,this},it.tA=function(a){return this.width=a.width,this.height=a.height,this},wn.prototype.copy=function(){var a=new wn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},it=wn.prototype,it.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},it.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return Object.isFrozen(this)&&zt("cannot thaw constant: "+this),this._isFrozen=!1,this};function cl(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;(b=a[y++])&&(E=parseFloat(b));for(var te=0;a[y]==="";)y++;(b=a[y++])&&(te=parseFloat(b));for(var ne=0;a[y]==="";)y++;return(b=a[y++])&&(ne=parseFloat(b)),new wn(x,E,te,ne)}return new wn}function la(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}it.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},it.D=function(a){return a instanceof wn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},it.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},it.Xa=function(a){return qt.B(this.x,a.x)&&qt.B(this.y,a.y)&&qt.B(this.width,a.width)&&qt.B(this.height,a.height)};function Ai(a,y){return qt.$(a.x,y.x)&&qt.$(a.y,y.y)&&qt.$(a.width,y.width)&&qt.$(a.height,y.height)}it.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},it.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},it.contains=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+b<=this.y+this.height},it.offset=function(a,y){return this.x+=a,this.y+=y,this},it.Bc=function(a,y){return mi(this,y,a,y,a)},it.Co=function(a){return mi(this,a.top,a.right,a.bottom,a.left)},it.Fv=function(a){return mi(this,-a.top,-a.right,-a.bottom,-a.left)},it.Hz=function(a,y,x,b){return mi(this,a,y,x,b)};function mi(a,y,x,b,E){var te=a.width;return x+E<=-te?(a.x+=te/2,a.width=0):(a.x-=E,a.width+=x+E),x=a.height,y+b<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+b),a}it.Ex=function(a){return so(this,a.x,a.y,a.width,a.height)},it.Uu=function(a,y,x,b){return so(this,a,y,x,b)};function so(a,y,x,b,E){var te=Math.max(a.x,y),ne=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+b),x=Math.min(a.y+a.height,x+E),a.x=te,a.y=ne,a.width=Math.max(0,y-te),a.height=Math.max(0,x-ne),a}it.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},it.Vu=function(a,y,x,b){var E=this.width,te=this.x;return E!==1/0&&x!==1/0&&(E+=te,x+=a,isNaN(x)||isNaN(E)||te>x||a>E)?!1:(a=this.height,x=this.y,!(a!==1/0&&b!==1/0&&(a+=x,b+=y,isNaN(b)||isNaN(a)||x>b||y>a)))};function Bi(a,y){var x=a.width,b=a.x,E=y.x-10;return b>y.width+10+10+E||E>x+b?!1:(x=a.height,a=a.y,b=y.y-10,!(a>y.height+10+10+b||b>x+a))}it.Ye=function(a){return yi(this,a.x,a.y,0,0)},it.ed=function(a){return yi(this,a.x,a.y,a.width,a.height)},it.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),yi(this,a,y,x,b)};function yi(a,y,x,b,E){var te=Math.min(a.x,y),ne=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+b),x=Math.max(a.y+a.height,x+E),a.x=te,a.y=ne,a.width=y-te,a.height=x-ne,a}it.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function Yi(a,y,x,b,E,te,ne,se){return ne===void 0&&(ne=0),se===void 0&&(se=0),a<=E&&E+ne<=a+x&&y<=te&&te+se<=y+b}function ma(a,y,x,b,E,te,ne,se){return a>ne+E||E>x+a?!1:!(y>se+te||te>b+y)}it.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},it.Mz=function(){return this.width===0&&this.height===0},wn.alloc=function(){var a=Si.pop();return a===void 0?new wn:a},wn.allocAt=function(a,y,x,b){var E=Si.pop();return E===void 0?new wn(a,y,x,b):E.h(a,y,x,b)},wn.free=function(a){Si.push(a)},Lt.Object.defineProperties(wn.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 Nt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Wn(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Nt(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}}}),wn.prototype.isEmpty=wn.prototype.Mz,wn.prototype.isReal=wn.prototype.w,wn.intersectsLineSegment=function(a,y,x,b,E,te,ne,se){return qt.Fx(a,y,x,b,E,te,ne,se)},wn.prototype.setSpot=wn.prototype.yi,wn.prototype.union=wn.prototype.Kv,wn.prototype.unionRect=wn.prototype.ed,wn.prototype.unionPoint=wn.prototype.Ye,wn.prototype.intersects=wn.prototype.Vu,wn.prototype.intersectsRect=wn.prototype.Yc,wn.prototype.intersect=wn.prototype.Uu,wn.prototype.intersectRect=wn.prototype.Ex,wn.prototype.grow=wn.prototype.Hz,wn.prototype.subtractMargin=wn.prototype.Fv,wn.prototype.addMargin=wn.prototype.Co,wn.prototype.inflate=wn.prototype.Bc,wn.prototype.offset=wn.prototype.offset,wn.prototype.contains=wn.prototype.contains,wn.prototype.containsRect=wn.prototype.Re,wn.prototype.containsPoint=wn.prototype.ca,wn.prototype.equalsApprox=wn.prototype.Xa,wn.prototype.equalTo=wn.prototype.hi,wn.prototype.equals=wn.prototype.D,wn.prototype.setSize=wn.prototype.tA,wn.prototype.setPoint=wn.prototype.dd,wn.prototype.set=wn.prototype.set,wn.prototype.setTo=wn.prototype.sg;var Yr=null,Li=null,Si=[];wn.className="Rect",wn.parse=cl,wn.stringify=la,wn.contains=Yi,wn.intersects=ma,wn.ZeroRect=Yr=new wn(0,0,0,0).ja(),wn.NoRect=Li=new wn(NaN,NaN,NaN,NaN).ja(),wn.parse=cl,wn.stringify=la,wn.contains=Yi,wn.intersects=ma;function mr(a,y,x,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:x===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=x,this.left=b):zt("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}mr.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},mr.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},mr.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},mr.prototype.copy=function(){var a=new mr;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},it=mr.prototype,it.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},it.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return Object.isFrozen(this)&&zt("cannot thaw constant: "+this),this._isFrozen=!1,this};function ko(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var b=a[y++];if(b&&(x=parseFloat(b)),isNaN(x))return new mr;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new mr(x);for(var te=NaN;a[y]==="";)y++;if((b=a[y++])&&(te=parseFloat(b)),isNaN(te))return new mr(x,E);for(var ne=NaN;a[y]==="";)y++;return(b=a[y++])&&(ne=parseFloat(b)),isNaN(ne)?new mr(x,E):new mr(x,E,te,ne)}return new mr}function Oo(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}it.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},it.D=function(a){return a instanceof mr?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},it.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},it.Xa=function(a){return qt.B(this.top,a.top)&&qt.B(this.right,a.right)&&qt.B(this.bottom,a.bottom)&&qt.B(this.left,a.left)},it.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},mr.alloc=function(){var a=hl.pop();return a===void 0?new mr:a},mr.free=function(a){hl.push(a)},mr.prototype.isReal=mr.prototype.w,mr.prototype.equalsApprox=mr.prototype.Xa,mr.prototype.equalTo=mr.prototype.hi,mr.prototype.equals=mr.prototype.D,mr.prototype.set=mr.prototype.set,mr.prototype.setTo=mr.prototype.sg;var va=null,Is=null,hl=[];mr.className="Margin",mr.parse=ko,mr.stringify=Oo,mr.ZeroMargin=va=new mr(0,0,0,0).ja(),mr.TwoMargin=Is=new mr(2,2,2,2).ja(),mr.parse=ko,mr.stringify=Oo;function sr(a,y,x,b){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),b===void 0&&(b=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=b),this._isFrozen=!1}var io,Ao,Ss,ru,Ds,ui,hc,Ya,Ja,Qa,Fl,iu,qa,xs,dc,oh,fc,Uh,pc,gc,Bl,Fs,ah,mc,vc,wi,Vi,ya,Sa,Ho,Co,No,Uo,Ro,Pl,Bs;sr.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},sr.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},sr.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},sr.prototype.copy=function(){var a=new sr;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},it=sr.prototype,it.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},it.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return Object.isFrozen(this)&&zt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Lo(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Fd(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return io;if(a==="TopLeft")return Ao;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Ss;if(a==="TopRight")return ru;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Ds;if(a==="Center")return ui;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return hc;if(a==="BottomLeft")return Ya;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Ja;if(a==="BottomRight")return Qa;if(a==="TopSide")return Fl;if(a==="LeftSide")return iu;if(a==="RightSide")return qa;if(a==="BottomSide")return xs;if(a==="TopBottomSides")return dc;if(a==="LeftRightSides")return oh;if(a==="TopLeftSides")return fc;if(a==="TopRightSides")return Uh;if(a==="BottomLeftSides")return pc;if(a==="BottomRightSides")return gc;if(a==="NotTopSide")return Bl;if(a==="NotLeftSide")return Fs;if(a==="NotRightSide")return ah;if(a==="NotBottomSide")return mc;if(a==="AllSides")return vc;if(a==="Default")return wi;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b!==void 0&&0<b.length&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(E=parseFloat(b));for(var te=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(te=parseFloat(b));for(var ne=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(ne=parseFloat(b)),new sr(x,E,te,ne)}return new sr}function Bd(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}it.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(io)?"None":this.D(Ao)?"TopLeft":this.D(Ss)?"Top":this.D(ru)?"TopRight":this.D(Ds)?"Left":this.D(ui)?"Center":this.D(hc)?"Right":this.D(Ya)?"BottomLeft":this.D(Ja)?"Bottom":this.D(Qa)?"BottomRight":this.D(Fl)?"TopSide":this.D(iu)?"LeftSide":this.D(qa)?"RightSide":this.D(xs)?"BottomSide":this.D(dc)?"TopBottomSides":this.D(oh)?"LeftRightSides":this.D(fc)?"TopLeftSides":this.D(Uh)?"TopRightSides":this.D(pc)?"BottomLeftSides":this.D(gc)?"BottomRightSides":this.D(Bl)?"NotTopSide":this.D(Fs)?"NotLeftSide":this.D(ah)?"NotRightSide":this.D(mc)?"NotBottomSide":this.D(vc)?"AllSides":this.D(wi)?"Default":"None"},it.D=function(a){return a instanceof sr?(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},it.gv=function(){return new sr(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},it.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(Vi))a=iu;else if(a.D(ya))a=qa;else if(a.D(Sa))a=Fl;else if(a.D(Ho))a=xs;else return!1;return a=a.offsetY,(this.offsetY&a)===a},it.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},it.Mc=function(){return isNaN(this.x)||isNaN(this.y)},it.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},it.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},it.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},sr.alloc=function(){var a=Rd.pop();return a===void 0?new sr:a},sr.free=function(a){Rd.push(a)},sr.prototype.isDefault=sr.prototype.Xb,sr.prototype.isNone=sr.prototype.ys,sr.prototype.isSide=sr.prototype.$c,sr.prototype.isNoSpot=sr.prototype.Mc,sr.prototype.isSpot=sr.prototype.sb,sr.prototype.includesSide=sr.prototype.Hf,sr.prototype.opposite=sr.prototype.gv,sr.prototype.equals=sr.prototype.D,sr.prototype.set=sr.prototype.set,sr.prototype.setTo=sr.prototype.sg;var Rd=[];sr.className="Spot",sr.parse=Fd,sr.stringify=Bd,sr.None=io=Lo(new sr(0,0,0,0),0).ja(),sr.Default=wi=Lo(new sr(0,0,-1,0),-1).ja(),sr.TopLeft=Ao=new sr(0,0,0,0).ja(),sr.TopCenter=Ss=new sr(.5,0,0,0).ja(),sr.TopRight=ru=new sr(1,0,0,0).ja(),sr.LeftCenter=Ds=new sr(0,.5,0,0).ja(),sr.Center=ui=new sr(.5,.5,0,0).ja(),sr.RightCenter=hc=new sr(1,.5,0,0).ja(),sr.BottomLeft=Ya=new sr(0,1,0,0).ja(),sr.BottomCenter=Ja=new sr(.5,1,0,0).ja(),sr.BottomRight=Qa=new sr(1,1,0,0).ja(),sr.MiddleTop=Co=Ss,sr.MiddleLeft=No=Ds,sr.MiddleRight=Uo=hc,sr.MiddleBottom=Ro=Ja,sr.Top=Sa=Ss,sr.Left=Vi=Ds,sr.Right=ya=hc,sr.Bottom=Ho=Ja,sr.TopSide=Fl=Lo(new sr(0,0,1,1),1).ja(),sr.LeftSide=iu=Lo(new sr(0,0,1,2),1).ja(),sr.RightSide=qa=Lo(new sr(0,0,1,4),1).ja(),sr.BottomSide=xs=Lo(new sr(0,0,1,8),1).ja(),sr.TopBottomSides=dc=Lo(new sr(0,0,1,9),1).ja(),sr.LeftRightSides=oh=Lo(new sr(0,0,1,6),1).ja(),sr.TopLeftSides=fc=Lo(new sr(0,0,1,3),1).ja(),sr.TopRightSides=Uh=Lo(new sr(0,0,1,5),1).ja(),sr.BottomLeftSides=pc=Lo(new sr(0,0,1,10),1).ja(),sr.BottomRightSides=gc=Lo(new sr(0,0,1,12),1).ja(),sr.NotTopSide=Bl=Lo(new sr(0,0,1,14),1).ja(),sr.NotLeftSide=Fs=Lo(new sr(0,0,1,13),1).ja(),sr.NotRightSide=ah=Lo(new sr(0,0,1,11),1).ja(),sr.NotBottomSide=mc=Lo(new sr(0,0,1,7),1).ja(),sr.AllSides=vc=Lo(new sr(0,0,1,15),1).ja(),Pl=new sr(.156,.156).ja(),Bs=new sr(.844,.844).ja(),sr.parse=Fd,sr.stringify=Bd;function Wr(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Wr.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},Wr.prototype.setTransform=function(a,y,x,b,E,te){return this.m11=a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=te,this},Wr.prototype.copy=function(){var a=new Wr;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},Wr.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Wr.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},Wr.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Wr.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Wr.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,x=this.m12*a.m11+this.m22*a.m12,b=this.m11*a.m21+this.m21*a.m22,E=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=x,this.m21=b,this.m22=E,this},Wr.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,b=-a.m12*y,E=-a.m21*y,te=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*x+this.m21*b,x=this.m12*x+this.m22*b,b=this.m11*E+this.m21*te,E=this.m12*E+this.m22*te,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=x,this.m21=b,this.m22=E,this},Wr.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,x=-this.m21*a,b=this.m11*a,E=a*(this.m21*this.dy-this.m22*this.dx),te=a*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=te,this},Wr.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a===0)return this;if(this.translate(y,x),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 E=this.m12*a+this.m22*b,te=this.m11*-b+this.m21*a,ne=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=E,this.m21=te,this.m22=ne,this.translate(-y,-x),this},it=Wr.prototype,it.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},it.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},it.Ga=function(a){var y=a.x,x=a.y;return a.h(y*this.m11+x*this.m21+this.dx,y*this.m12+x*this.m22+this.dy)},it.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,b=a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},it.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,b=1.2*a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},it.pp=function(a){var y=a.x,x=a.y,b=y+a.width,E=x+a.height,te=this.m11,ne=this.m12,se=this.m21,ce=this.m22,ge=this.dx,xe=this.dy,Ae=y*te+x*se+ge,Ue=y*ne+x*ce+xe,Je=b*te+x*se+ge,rt=b*ne+x*ce+xe;return x=y*te+E*se+ge,y=y*ne+E*ce+xe,te=b*te+E*se+ge,b=b*ne+E*ce+xe,E=Math.min(Ae,Je),Ae=Math.max(Ae,Je),Je=Math.min(Ue,rt),Ue=Math.max(Ue,rt),E=Math.min(E,x),Ae=Math.max(Ae,x),Je=Math.min(Je,y),Ue=Math.max(Ue,y),E=Math.min(E,te),Ae=Math.max(Ae,te),Je=Math.min(Je,b),Ue=Math.max(Ue,b),a.h(E,Je,Ae-E,Ue-Je),a},Wr.alloc=function(){var a=Qf.pop();return a===void 0?new Wr:a},Wr.free=function(a){Qf.push(a)},Wr.prototype.transformRect=Wr.prototype.pp,Wr.prototype.transformPoint=Wr.prototype.Ga,Wr.prototype.scale=Wr.prototype.scale,Wr.prototype.translate=Wr.prototype.translate,Wr.prototype.rotate=Wr.prototype.rotate,Wr.prototype.invert=Wr.prototype.Vj,Wr.prototype.multiplyInverted=Wr.prototype.bv,Wr.prototype.multiply=Wr.prototype.multiply,Wr.prototype.reset=Wr.prototype.reset,Wr.prototype.isIdentity=Wr.prototype.ws,Wr.prototype.equals=Wr.prototype.D,Wr.prototype.setTransform=Wr.prototype.setTransform,Wr.prototype.set=Wr.prototype.set;var Qf=[];Wr.className="Transform",Wr.xF="54a702f3e53909c447824c6706603faf4c";var qt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=qt.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);qt.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|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,x,b,E,te,ne){if(0>=E&&(E=1e-6),a<x)var se=a,ce=x;else se=x,ce=a;if(y<b)var ge=y,xe=b;else ge=b,xe=y;if(a===x)return ge<=ne&&ne<=xe&&a-E<=te&&te<=a+E;if(y===b)return se<=te&&te<=ce&&y-E<=ne&&ne<=y+E;if(ce+=E,se-=E,se<=te&&te<=ce&&(xe+=E,ge-=E,ge<=ne&&ne<=xe))if(ce-se>xe-ge)if(a-x>E||x-a>E){if(te=(b-y)/(x-a)*(te-a)+y,te-E<=ne&&ne<=te+E)return!0}else return!0;else if(y-b>E||b-y>E){if(ne=(x-a)/(b-y)*(ne-y)+a,ne-E<=te&&te<=ne+E)return!0}else return!0;return!1},cs:function(a,y,x,b,E,te,ne,se,ce,ge,xe,Ae){if(qt.Yb(a,y,ne,se,Ae,x,b)&&qt.Yb(a,y,ne,se,Ae,E,te))return qt.Yb(a,y,ne,se,Ae,ge,xe);var Ue=(a+x)/2,Je=(y+b)/2,rt=(x+E)/2,ht=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(Ue+rt)/2,x=(Je+ht)/2,rt=(rt+E)/2,ht=(ht+te)/2;var Ft=(b+rt)/2,Ot=(x+ht)/2;return qt.cs(a,y,Ue,Je,b,x,Ft,Ot,ce,ge,xe,Ae)||qt.cs(Ft,Ot,rt,ht,E,te,ne,se,ce,ge,xe,Ae)},ax:function(a,y,x,b,E,te,ne,se,ce){var ge=(x+E)/2,xe=(b+te)/2;return ce.h((((a+x)/2+ge)/2+(ge+(E+ne)/2)/2)/2,(((y+b)/2+xe)/2+(xe+(te+se)/2)/2)/2),ce},My:function(a,y,x,b,E,te,ne,se){var ce=(x+E)/2,ge=(b+te)/2;return Lr(((a+x)/2+ce)/2,((y+b)/2+ge)/2,(ce+(E+ne)/2)/2,(ge+(te+se)/2)/2)},Dl:function(a,y,x,b,E,te,ne,se,ce,ge){if(qt.Yb(a,y,ne,se,ce,x,b)&&qt.Yb(a,y,ne,se,ce,E,te))yi(ge,a,y,0,0),yi(ge,ne,se,0,0);else{var xe=(a+x)/2,Ae=(y+b)/2,Ue=(x+E)/2,Je=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(xe+Ue)/2,x=(Ae+Je)/2,Ue=(Ue+E)/2,Je=(Je+te)/2;var rt=(b+Ue)/2,ht=(x+Je)/2;qt.Dl(a,y,xe,Ae,b,x,rt,ht,ce,ge),qt.Dl(rt,ht,Ue,Je,E,te,ne,se,ce,ge)}return ge},Qe:function(a,y,x,b,E,te,ne,se,ce,ge){if(qt.Yb(a,y,ne,se,ce,x,b)&&qt.Yb(a,y,ne,se,ce,E,te))ge.length===0&&(ge.push(a),ge.push(y)),ge.push(ne),ge.push(se);else{var xe=(a+x)/2,Ae=(y+b)/2,Ue=(x+E)/2,Je=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(xe+Ue)/2,x=(Ae+Je)/2,Ue=(Ue+E)/2,Je=(Je+te)/2;var rt=(b+Ue)/2,ht=(x+Je)/2;qt.Qe(a,y,xe,Ae,b,x,rt,ht,ce,ge),qt.Qe(rt,ht,Ue,Je,E,te,ne,se,ce,ge)}return ge},jv:function(a,y,x,b,E,te,ne,se,ce,ge){if(qt.Yb(a,y,E,te,ge,x,b))return qt.Yb(a,y,E,te,ge,se,ce);var xe=(a+x)/2,Ae=(y+b)/2;x=(x+E)/2,b=(b+te)/2;var Ue=(xe+x)/2,Je=(Ae+b)/2;return qt.jv(a,y,xe,Ae,Ue,Je,ne,se,ce,ge)||qt.jv(Ue,Je,x,b,E,te,ne,se,ce,ge)},OA:function(a,y,x,b,E,te,ne){return ne.h(((a+x)/2+(x+E)/2)/2,((y+b)/2+(b+te)/2)/2),ne},iv:function(a,y,x,b,E,te,ne,se){if(qt.Yb(a,y,E,te,ne,x,b))yi(se,a,y,0,0),yi(se,E,te,0,0);else{var ce=(a+x)/2,ge=(y+b)/2;x=(x+E)/2,b=(b+te)/2;var xe=(ce+x)/2,Ae=(ge+b)/2;qt.iv(a,y,ce,ge,xe,Ae,ne,se),qt.iv(xe,Ae,x,b,E,te,ne,se)}return se},ep:function(a,y,x,b,E,te,ne,se){if(qt.Yb(a,y,E,te,ne,x,b))se.length===0&&(se.push(a),se.push(y)),se.push(E),se.push(te);else{var ce=(a+x)/2,ge=(y+b)/2;x=(x+E)/2,b=(b+te)/2;var xe=(ce+x)/2,Ae=(ge+b)/2;qt.ep(a,y,ce,ge,xe,Ae,ne,se),qt.ep(xe,Ae,x,b,E,te,ne,se)}return se},Eo:function(a,y,x,b,E,te,ne,se,ce,ge,xe,Ae,Ue,Je){if(qt.Yb(a,y,ne,se,Ue,x,b)&&qt.Yb(a,y,ne,se,Ue,E,te))return!qt.Rl(a,y,ne,se,ce,ge,xe,Ae)||(Ue=(a-ne)*(ge-Ae)-(y-se)*(ce-xe),Ue===0)?!1:(Je.h(((a*se-y*ne)*(ce-xe)-(a-ne)*(ce*Ae-ge*xe))/Ue,((a*se-y*ne)*(ge-Ae)-(y-se)*(ce*Ae-ge*xe))/Ue),!0);var rt=(a+x)/2,ht=(y+b)/2,Ft=(x+E)/2,Ot=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(rt+Ft)/2,x=(ht+Ot)/2,Ft=(Ft+E)/2,Ot=(Ot+te)/2;var _t=(b+Ft)/2,Gt=(x+Ot)/2,Kt=1/0,Yt=!1,on=0,Zn=0;return qt.Eo(a,y,rt,ht,b,x,_t,Gt,ce,ge,xe,Ae,Ue,Je)&&(a=(Je.x-ce)*(Je.x-ce)+(Je.y-ge)*(Je.y-ge),a<Kt&&(Kt=a,Yt=!0,on=Je.x,Zn=Je.y)),qt.Eo(_t,Gt,Ft,Ot,E,te,ne,se,ce,ge,xe,Ae,Ue,Je)&&(Je.x-ce)*(Je.x-ce)+(Je.y-ge)*(Je.y-ge)<Kt&&(Yt=!0,on=Je.x,Zn=Je.y),Yt&&(Je.x=on,Je.y=Zn),Yt},Fo:function(a,y,x,b,E,te,ne,se,ce,ge,xe,Ae,Ue){var Je=0;if(qt.Yb(a,y,ne,se,Ue,x,b)&&qt.Yb(a,y,ne,se,Ue,E,te)){if(Ue=(a-ne)*(ge-Ae)-(y-se)*(ce-xe),Ue===0)return Je;var rt=((a*se-y*ne)*(ce-xe)-(a-ne)*(ce*Ae-ge*xe))/Ue,ht=((a*se-y*ne)*(ge-Ae)-(y-se)*(ce*Ae-ge*xe))/Ue;if(rt>=xe)return Je;if((ce>xe?ce-xe:xe-ce)<(ge>Ae?ge-Ae:Ae-ge)){if(y<se?(ce=y,a=se):(ce=se,a=y),ht<ce||ht>a)return Je}else if(a<ne?(ce=a,a=ne):ce=ne,rt<ce||rt>a)return Je;0<Ue?Je++:0>Ue&&Je--}else{rt=(a+x)/2,ht=(y+b)/2;var Ft=(x+E)/2,Ot=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(rt+Ft)/2,x=(ht+Ot)/2,Ft=(Ft+E)/2,Ot=(Ot+te)/2;var _t=(b+Ft)/2,Gt=(x+Ot)/2;Je+=qt.Fo(a,y,rt,ht,b,x,_t,Gt,ce,ge,xe,Ae,Ue),Je+=qt.Fo(_t,Gt,Ft,Ot,E,te,ne,se,ce,ge,xe,Ae,Ue)}return Je},qh:function(a,y,x,b,E,te,ne){return qt.$(a,x)?(y<b?(x=y,y=b):x=b,te<x?(ne.h(a,x),!1):te>y?(ne.h(a,y),!1):(ne.h(a,te),!0)):qt.$(y,b)?(a<x?(b=a,a=x):b=x,E<b?(ne.h(b,y),!1):E>a?(ne.h(a,y),!1):(ne.h(E,y),!0)):(E=((a-E)*(a-x)+(y-te)*(y-b))/((x-a)*(x-a)+(b-y)*(b-y)),-5e-6>E?(ne.h(a,y),!1):1.000005<E?(ne.h(x,b),!1):(ne.h(a+E*(x-a),y+E*(b-y)),!0))},Ve:function(a,y,x,b,E,te,ne,se,ce){return qt.B(a,x)&&qt.B(y,b)?(ce.h(a,y),!1):qt.$(E,ne)?qt.$(a,x)?(qt.qh(a,y,x,b,E,te,ce),!1):qt.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,ce):(se=(se-te)/(ne-E),qt.$(a,x)?(x=se*(a-E)+te,y<b?(E=y,y=b):E=b,x<E?(ce.h(a,E),!1):x>y?(ce.h(a,y),!1):(ce.h(a,x),!0)):(ne=(b-y)/(x-a),qt.$(se,ne)?(qt.qh(a,y,x,b,E,te,ce),!1):(E=(ne*a-se*E+te-y)/(ne-se),qt.$(ne,0)?(a<x?(b=a,a=x):b=x,E<b?(ce.h(b,y),!1):E>a?(ce.h(a,y),!1):(ce.h(E,y),!0)):qt.qh(a,y,x,b,E,ne*(E-a)+y,ce))))},MA:function(a,y,x,b,E){return qt.Ve(x.x,x.y,b.x,b.y,a.x,a.y,y.x,y.y,E)},KA:function(a,y,x,b,E,te,ne,se,ce,ge){function xe(Ft,Ot){var _t=(Ft-a)*(Ft-a)+(Ot-y)*(Ot-y);_t<Ae&&(Ae=_t,ce.h(Ft,Ot))}var Ae=1/0;xe(ce.x,ce.y);var Ue=0,Je=0,rt=0,ht=0;if(E<ne?(Ue=E,Je=ne):(Ue=ne,Je=E),te<se?(rt=E,ht=ne):(rt=ne,ht=E),Ue=(Je-Ue)/2+ge,ge=(ht-rt)/2+ge,E=(E+ne)/2,te=(te+se)/2,Ue===0||ge===0)return ce;if(.5>(x>a?x-a:a-x)){if(Ue=1-(x-E)*(x-E)/(Ue*Ue),0>Ue)return ce;Ue=Math.sqrt(Ue),b=-ge*Ue+te,xe(x,ge*Ue+te),xe(x,b)}else{if(x=(b-y)/(x-a),b=1/(Ue*Ue)+x*x/(ge*ge),se=2*x*(y-x*a)/(ge*ge)-2*x*te/(ge*ge)-2*E/(Ue*Ue),Ue=se*se-4*b*(2*x*a*te/(ge*ge)-2*y*te/(ge*ge)+te*te/(ge*ge)+E*E/(Ue*Ue)-1+(y-x*a)*(y-x*a)/(ge*ge)),0>Ue)return ce;Ue=Math.sqrt(Ue),ge=(-se+Ue)/(2*b),xe(ge,x*ge-x*a+y),Ue=(-se-Ue)/(2*b),xe(Ue,x*Ue-x*a+y)}return ce},Ff:function(a,y,x,b,E,te,ne,se,ce){var ge=1e21,xe=a,Ae=y;if(qt.Ve(a,y,a,b,E,te,ne,se,ce)){var Ue=(ce.x-E)*(ce.x-E)+(ce.y-te)*(ce.y-te);Ue<ge&&(ge=Ue,xe=ce.x,Ae=ce.y)}return qt.Ve(x,y,x,b,E,te,ne,se,ce)&&(Ue=(ce.x-E)*(ce.x-E)+(ce.y-te)*(ce.y-te),Ue<ge&&(ge=Ue,xe=ce.x,Ae=ce.y)),qt.Ve(a,y,x,y,E,te,ne,se,ce)&&(y=(ce.x-E)*(ce.x-E)+(ce.y-te)*(ce.y-te),y<ge&&(ge=y,xe=ce.x,Ae=ce.y)),qt.Ve(a,b,x,b,E,te,ne,se,ce)&&(a=(ce.x-E)*(ce.x-E)+(ce.y-te)*(ce.y-te),a<ge&&(ge=a,xe=ce.x,Ae=ce.y)),ce.h(xe,Ae),1e21>ge},us:function(a,y,x){return qt.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,b,E,te,ne,se){var ce=a+x,ge=y+b;return E===ne?(te<se?(ne=te,te=se):ne=se,a<=E&&E<=ce&&ne<=ge&&te>=y):te===se?(E<ne?(se=E,E=ne):se=ne,y<=te&&te<=ge&&se<=ce&&E>=a):!!(Yi(a,y,x,b,E,te)||Yi(a,y,x,b,ne,se)||qt.Rl(a,y,ce,y,E,te,ne,se)||qt.Rl(ce,y,ce,ge,E,te,ne,se)||qt.Rl(ce,ge,a,ge,E,te,ne,se)||qt.Rl(a,ge,a,y,E,te,ne,se))},Rl:function(a,y,x,b,E,te,ne,se){return a===x&&y===b&&E===ne&&te===se?a===E&&y===te:0>=qt.Fl(a,y,x,b,E,te)*qt.Fl(a,y,x,b,ne,se)&&0>=qt.Fl(E,te,ne,se,a,y)*qt.Fl(E,te,ne,se,x,b)},Fl:function(a,y,x,b,E,te){return x-=a,b-=y,a=E-a,y=te-y,te=a*b-y*x,te===0&&(te=a*x+y*b,0<te&&(te=(a-x)*x+(y-b)*b,0>te&&(te=0))),te},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,b,E,te){var ne=Math.PI;te||(b*=ne/180,E*=ne/180);var se=b>E?-1:1;te=[];var ce=ne/2,ge=b;if(b=Math.min(2*ne,Math.abs(E-b)),1e-5>b)return ce=ge+se*Math.min(b,ce),se=a+x*Math.cos(ge),ge=y+x*Math.sin(ge),a+=x*Math.cos(ce),y+=x*Math.sin(ce),x=(se+a)/2,ce=(ge+y)/2,te.push([se,ge,x,ce,x,ce,a,y]),te;for(;1e-5<b;)E=ge+se*Math.min(b,ce),te.push(qt.Vy(x,ge,E,a,y)),b-=Math.abs(E-ge),ge=E;return te},Vy:function(a,y,x,b,E){var te=(x-y)/2,ne=a*Math.cos(te),se=a*Math.sin(te),ce=-se,ge=ne*ne+ce*ce,xe=ge+ne*ne+ce*se;return ge=4/3*(Math.sqrt(2*ge*xe)-xe)/(ne*se-ce*ne),se=ne-ge*ce,ne=ce+ge*ne,ce=-ne,ge=te+y,te=Math.cos(ge),ge=Math.sin(ge),[b+a*Math.cos(y),E+a*Math.sin(y),b+se*te-ne*ge,E+se*ge+ne*te,b+se*te-ce*ge,E+se*ge+ce*te,b+a*Math.cos(x),E+a*Math.sin(x)]},No:function(a,y,x,b,E,te,ne){x=Math.floor((a-x)/E)*E+x,b=Math.floor((y-b)/te)*te+b;var se=x;return x+E-a<E/2&&(se=x+E),a=b,b+te-y<te/2&&(a=b+te),ne.h(se,a),ne},vx:function(a,y){var x=Math.max(a,y);a=Math.min(a,y);var b;do y=x%a,x=b=a,a=y;while(0<y);return b},$y:function(a,y,x,b){var E=0>x,te=0>b;if(a<y)var ne=1,se=0;else ne=0,se=1;var ce=ne===0?a:y,ge=ne===0?x:b;return(ne===0?E:te)&&(ge=-ge),ne=se,x=ne===0?x:b,(ne===0?E:te)&&(x=-x),qt.az(ce,ne===0?a:y,ge,x,0,0)},az:function(a,y,x,b,E,te){if(0<b)if(0<x){E=a*a,te=y*y,a*=x;var ne=y*b,se=-te+ne,ce=-te+Math.sqrt(a*a+ne*ne);y=se;for(var ge=0;9999999999>ge&&(y=.5*(se+ce),!(y===se||y===ce));++ge){var xe=a/(y+E),Ae=ne/(y+te);if(xe=xe*xe+Ae*Ae-1,0<xe)se=y;else if(0>xe)ce=y;else break}x=E*x/(y+E)-x,b=te*b/(y+te)-b,x=Math.sqrt(x*x+b*b)}else x=Math.abs(b-y);else b=a*a-y*y,te=a*x,te<b?(b=te/b,te=y*Math.sqrt(Math.abs(1-b*b)),x=a*b-x,x=Math.sqrt(x*x+te*te)):x=Math.abs(x-a);return x},Ze:new hr,um:new hr,Mf:new hr,Nf:0,vm:100};qt.za=qt.AA;function Un(a){zr(this),this.l=2,a===void 0&&(a=Un.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Un.o?this.ee=new Tn:(Un.V===null&&(Un.V=new Tn().freeze()),this.ee=Un.V),this.aq=this.ee.Ja,this.Ip=new wn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Ao,this.gg=Qa,this.Rk=this.Sk=NaN,this.Uf=Bn}Un.prototype.copy=function(){var a=new Un;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===Un.o){for(var y=this.ee.s,x=a.ee,b=0;b<y.length;b++)x.add(y[b].copy());a.ee=x}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},Un.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Un.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Un.o)return this;var a=this.figures;a.freeze(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].freeze();return this},Un.prototype.ka=function(){if(Object.isFrozen(this)&&zt("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Un.o)return this;var a=this.figures;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},Un.prototype.Xa=function(a){if(!(a instanceof Un))return!1;if(this.type!==a.type)return this.type===Un.j&&a.type===Un.o?jg(this,a):a.type===Un.j&&this.type===Un.o?jg(a,this):!1;if(this.type===Un.o){var y=this.figures.s;a=a.figures.s;var x=y.length;if(x!==a.length)return!1;for(var b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0}return qt.B(this.startX,a.startX)&&qt.B(this.startY,a.startY)&&qt.B(this.endX,a.endX)&&qt.B(this.endY,a.endY)};function jg(a,y){return a.type!==Un.j||y.type!==Un.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&qt.B(a.startX,y.startX)&&qt.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===Ri&&qt.B(a.endX,y.endX)&&qt.B(a.endY,y.endY))))}Un.ia=function(a){return a.toString()},Un.prototype.qb=function(a){a.classType===Un&&(this.type=a)},Un.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Un.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 Un.u:var y=new wn(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 Un.F:if(y=new wn(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 x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"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 "+x;case Un.o:y="",x=this.figures.s;for(var b=x.length,E=0;E<b;E++){var te=x[E];0<E&&(y+=" x "),te.isFilled&&(y+="F "),y+=te.toString(a)}return y;default:return this.type.toString()}},Un.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",b=0;b<y;b++){var E=a[b];x=E.match(/[Ff]/)!==null?b===0?x+E:x+("X"+(E[0]===" "?"":" ")+E):x+((b===0?"":"X ")+"F"+(E[0]===" "?"":" ")+E)}return x},Un.parse=function(a,y){function x(){return ht>=Kt-1?!0:ge[ht+1].match(Yt)!==null}function b(){return ht++,ge[ht]}function E(Nr){var Er=parseFloat(b()),pi=parseFloat(b());Ft===Ft.toLowerCase()&&(Er=Gt.x+Er,pi=Gt.y+pi),Nr.h(Er,pi)}function te(){return E(Gt),Gt}function ne(){return E(_t),_t}function se(){var Nr=Ot.toLowerCase();return Nr!=="c"&&Nr!=="s"&&Nr!=="q"&&Nr!=="t"?Gt:new Nt(2*Gt.x-_t.x,2*Gt.y-_t.y)}y===void 0&&(y=!1);var ce=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(ce,"$1 $2"),a=a.replace(ce,"$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 ge=a.split(" ");for(a=0;a<ge.length;a++){var xe=ge[a];if(xe.match(/(\.[0-9]*)(\.)/gm)!==null){ce=cn();for(var Ae="",Ue=!1,Je=0;Je<xe.length;Je++){var rt=xe[Je];rt!=="."||Ue?rt==="."?(ce.push(Ae),Ae="."):Ae+=rt:(Ue=!0,Ae+=rt)}for(ce.push(Ae),ge.splice(a,1),xe=0;xe<ce.length;xe++)ge.splice(a+xe,0,ce[xe]);a+=ce.length-1,Pn(ce)}}var ht=-1,Ft="",Ot="";ce=new Nt(0,0);var _t=new Nt(0,0),Gt=new Nt(0,0),Kt=ge.length;a=A1(null),Ue=Ae=xe=!1,Je=!0,rt=null;for(var Yt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(ht>=Kt-1);)if(Ot=Ft,Ft=b(),Ft!=="")switch(Ft.toUpperCase()){case"X":Je=!0,Ae=xe=!1;break;case"M":for(rt=te(),a.mc===null||Je===!0?(Ef(a,rt.x,rt.y,xe,!Ae,Ue),Je=!1):a.moveTo(rt.x,rt.y),ce.assign(Gt);!x();)rt=te(),a.lineTo(rt.x,rt.y);break;case"L":for(;!x();)rt=te(),a.lineTo(rt.x,rt.y);break;case"H":for(;!x();)Gt=new Nt((Ft===Ft.toLowerCase()?Gt.x:0)+parseFloat(b()),Gt.y),a.lineTo(Gt.x,Gt.y);break;case"V":for(;!x();)Gt=new Nt(Gt.x,(Ft===Ft.toLowerCase()?Gt.y:0)+parseFloat(b())),a.lineTo(Gt.x,Gt.y);break;case"C":for(;!x();){rt=new Nt,E(rt);var on=ne(),Zn=te();Zu(a,rt.x,rt.y,on.x,on.y,Zn.x,Zn.y)}break;case"S":for(;!x();)rt=se(),on=ne(),Zn=te(),Zu(a,rt.x,rt.y,on.x,on.y,Zn.x,Zn.y);break;case"Q":for(;!x();)rt=ne(),on=te(),Bm(a,rt.x,rt.y,on.x,on.y);break;case"T":for(;!x();)_t=rt=se(),on=te(),Bm(a,rt.x,rt.y,on.x,on.y);break;case"B":for(;!x();){rt=parseFloat(b()),on=parseFloat(b()),Zn=parseFloat(b());var nr=parseFloat(b()),Jn=parseFloat(b()),Gn=Jn,kn=!1;x()||(Gn=parseFloat(b()),x()||(kn=parseFloat(b())!==0)),Ft===Ft.toLowerCase()&&(Zn+=Gt.x,nr+=Gt.y),a.arcTo(rt,on,Zn,nr,Jn,Gn,kn)}break;case"A":for(;!x();)rt=Math.abs(parseFloat(b())),on=Math.abs(parseFloat(b())),Zn=parseFloat(b()),Jn=nr=!1,kn=Gn=0,Gn=b(),Gn.length===1?(nr=!!parseFloat(Gn),Jn=!!parseFloat(b()),Gn=parseFloat(b())):Gn.length===2?(nr=!!parseFloat(Gn[0]),Jn=!!parseFloat(Gn[1]),Gn=parseFloat(b())):(nr=!!parseFloat(Gn[0]),Jn=!!parseFloat(Gn[1]),Gn=parseFloat(Gn.slice(2))),kn=parseFloat(b()),Ft===Ft.toLowerCase()&&(Gn=Gt.x+Gn,kn=Gt.y+kn),Gt.h(Gn,kn),Px(a,rt,on,Zn,nr,Jn,Gn,kn);break;case"Z":bx(a),Gt.assign(ce);break;case"F":for(rt="",on=1;ge[ht+on];)if(ge[ht+on]==="0")Ue=!0,on++;else if(ge[ht+on].match(/[Uu]/)!==null)on++;else if(ge[ht+on].match(Yt)===null)on++;else{rt=ge[ht+on];break}rt.match(/[Mm]/)?xe=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(rt="",on=1;ge[ht+on];)if(ge[ht+on].match(/[Ff]/)!==null)on++;else if(ge[ht+on].match(Yt)===null)on++;else{rt=ge[ht+on];break}rt.match(/[Mm]/)?Ae=!0:a.mc.isShadowed=!1}if(ce=a.os,Rm=a,y)for(y=ce.figures.iterator;y.next();)y.value.isFilled=!0;return ce},Un.Ha=function(a,y){for(var x=a.length,b=Nt.alloc(),E=0;E<x;E++){var te=a[E];b.x=te[0],b.y=te[1],y.Ga(b),te[0]=b.x,te[1]=b.y,b.x=te[2],b.y=te[3],y.Ga(b),te[2]=b.x,te[3]=b.y,b.x=te[4],b.y=te[5],y.Ga(b),te[4]=b.x,te[5]=b.y,b.x=te[6],b.y=te[7],y.Ga(b),te[6]=b.x,te[7]=b.y}Nt.free(b)},Un.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Un.o){if(this.aq!==this.figures.Ja)return!0;for(var a=this.figures.s,y=a.length,x=0;x<y;x++)if(a[x].Zu())return!0}return!1},Un.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Un.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var b=a[x];b._isInvalidBounds=!1;var E=b.segments;b.sr=E.Ja,b=E.s,E=b.length;for(var te=0;te<E;te++){var ne=b[te];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),Ig(this,a,!1),yi(a,0,0,0,0),a.freeze()},Un.prototype.ix=function(){var a=new wn;return Ig(this,a,!0),a};function Ig(a,y,x){switch(a.type){case Un.j:case Un.u:case Un.F:x?y.h(a.od,a.pd,0,0):yi(y,a.od,a.pd,0,0),yi(y,a.Dc,a.Ec,0,0);break;case Un.o:var b=a.figures;a=b.s,b=b.length;for(var E=0;E<b;E++){var te=a[E];x&&E===0?y.h(te.startX,te.startY,0,0):yi(y,te.startX,te.startY,0,0);for(var ne=te.segments.s,se=ne.length,ce=te.startX,ge=te.startY,xe=0;xe<se;xe++){var Ae=ne[xe];switch(Ae.type){case Ri:case Io:ce=Ae.endX,ge=Ae.endY,yi(y,ce,ge,0,0);break;case Qo:qt.Dl(ce,ge,Ae.point1X,Ae.point1Y,Ae.point2X,Ae.point2Y,Ae.endX,Ae.endY,.5,y),ce=Ae.endX,ge=Ae.endY;break;case cs:qt.iv(ce,ge,Ae.point1X,Ae.point1Y,Ae.endX,Ae.endY,.5,y),ce=Ae.endX,ge=Ae.endY;break;case mo:case ws:var Ue=Ae.type===mo?es(Ae,te):Rs(Ae,te,ce,ge),Je=Ue.length;if(Je===0){ce=Ae.type===mo?Ae.centerX:Ae.endX,ge=Ae.type===mo?Ae.centerY:Ae.endY,yi(y,ce,ge,0,0);break}Ae=null;for(var rt=0;rt<Je;rt++)Ae=Ue[rt],qt.Dl(Ae[0],Ae[1],Ae[2],Ae[3],Ae[4],Ae[5],Ae[6],Ae[7],.5,y);Ae!==null&&(ce=Ae[6],ge=Ae[7]);break;default:zt("Unknown Segment type: "+Ae.type)}}}break;default:zt("Unknown Geometry type: "+a.type)}}Un.prototype.normalize=function(){this._isFrozen&&xn(this);var a=this.ix();return this.offset(-a.x,-a.y),new Nt(-a.x,-a.y)},Un.prototype.offset=function(a,y){return this._isFrozen&&xn(this),this.transform(1,0,0,1,a,y),this},Un.prototype.scale=function(a,y){return this._isFrozen&&xn(this),this.transform(a,0,0,y,0,0),this},Un.prototype.rotate=function(a,y,x){this._isFrozen&&xn(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=Wr.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),Wr.free(b),this},it=Un.prototype,it.transform=function(a,y,x,b,E,te){switch(this.type){case Un.j:case Un.u:case Un.F:var ne=this.od,se=this.pd;this.od=ne*a+se*x+E,this.pd=ne*y+se*b+te,ne=this.Dc,se=this.Ec,this.Dc=ne*a+se*x+E,this.Ec=ne*y+se*b+te;break;case Un.o:for(var ce=this.figures.s,ge=ce.length,xe=0;xe<ge;xe++){var Ae=ce[xe];ne=Ae.startX,se=Ae.startY,Ae.startX=ne*a+se*x+E,Ae.startY=ne*y+se*b+te,Ae=Ae.segments.s;for(var Ue=Ae.length,Je=0;Je<Ue;Je++){var rt=Ae[Je];switch(rt.type){case Ri:case Io:ne=rt.endX,se=rt.endY,rt.endX=ne*a+se*x+E,rt.endY=ne*y+se*b+te;break;case Qo:ne=rt.point1X,se=rt.point1Y,rt.point1X=ne*a+se*x+E,rt.point1Y=ne*y+se*b+te,ne=rt.point2X,se=rt.point2Y,rt.point2X=ne*a+se*x+E,rt.point2Y=ne*y+se*b+te,ne=rt.endX,se=rt.endY,rt.endX=ne*a+se*x+E,rt.endY=ne*y+se*b+te;break;case cs:ne=rt.point1X,se=rt.point1Y,rt.point1X=ne*a+se*x+E,rt.point1Y=ne*y+se*b+te,ne=rt.endX,se=rt.endY,rt.endX=ne*a+se*x+E,rt.endY=ne*y+se*b+te;break;case mo:ne=rt.centerX,se=rt.centerY,rt.centerX=ne*a+se*x+E,rt.centerY=ne*y+se*b+te,y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),rt.startAngle+=ne),0>a&&(rt.startAngle=180-rt.startAngle,rt.sweepAngle=-rt.sweepAngle),0>b&&(rt.startAngle=-rt.startAngle,rt.sweepAngle=-rt.sweepAngle),rt.radiusX*=Math.sqrt(a*a+x*x),rt.radiusY!==void 0&&(rt.radiusY*=Math.sqrt(y*y+b*b));break;case ws:if(ne=rt.endX,se=rt.endY,rt.endX=ne*a+se*x+E,rt.endY=ne*y+se*b+te,rt.radiusX===0||rt.radiusY===0)break;y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),rt.xAxisRotation+=ne),0>a&&(rt.xAxisRotation=180-rt.xAxisRotation,rt.isClockwiseArc=!rt.isClockwiseArc),0>b&&(rt.xAxisRotation=-rt.xAxisRotation,rt.isClockwiseArc=!rt.isClockwiseArc),rt.radiusX*=Math.sqrt(a*a+x*x),rt.radiusY*=Math.sqrt(y*y+b*b);break;default:zt("Unknown Segment type: "+rt.type)}}}}return this._isInvalidBounds=!0,this},it.ca=function(a,y){y===void 0&&(y=0);var x=this.od,b=this.pd,E=this.Dc,te=this.Ec;switch(this.type){case Un.j:return qt.Yb(x,b,E,te,y,a.x,a.y);case Un.u:var ne=wn.allocAt(Math.min(x,E)-y,Math.min(b,te)-y,Math.abs(E-x)+2*y,Math.abs(te-b)+2*y);return a=ne.ca(a),wn.free(ne),a;case Un.F:ne=Math.min(x,E)-y;var se=Math.min(b,te)-y;return x=(Math.abs(E-x)+2*y)/2,y=(Math.abs(te-b)+2*y)/2,0>=x||0>=y?!1:(ne=a.x-(ne+x),se=a.y-(se+y),1>=ne*ne/(x*x)+se*se/(y*y));case Un.o:return ou(this,a,y,!0,!1);default:return!1}};function ou(a,y,x,b,E){var te=y.x;y=y.y;for(var ne=a.bounds.x-20,se=0,ce,ge,xe,Ae,Ue=a.figures.s,Je=Ue.length,rt=0;rt<Je;rt++){var ht=Ue[rt],Ft=!ht.isEvenOdd;if(ht.isFilled){if(b&&ht.ca(te,y,x))return!0;var Ot=ht.segments;ce=ht.startX,ge=ht.startY;for(var _t=ce,Gt=ge,Kt=Ot.s,Yt=0;Yt<=Ot.length;Yt++){var on=void 0;if(Yt!==Ot.length){on=Kt[Yt];var Zn=on.type;a=on.endX,Ae=on.endY}else Zn=Ri,a=_t,Ae=Gt;switch(Zn){case Io:if(_t=au(te,y,ne,y,ce,ge,_t,Gt),isNaN(_t))return!0;se+=_t,_t=a,Gt=Ae;break;case Ri:if(ce=au(te,y,ne,y,ce,ge,a,Ae),isNaN(ce))return!0;se+=ce;break;case Qo:xe=qt.Fo(ce,ge,on.point1X,on.point1Y,on.point2X,on.point2Y,a,Ae,ne,y,te,y,.5),se+=xe;break;case cs:xe=qt.Fo(ce,ge,(ce+2*on.point1X)/3,(ge+2*on.point1Y)/3,(2*on.point1X+a)/3,(2*on.point1Y+Ae)/3,a,Ae,ne,y,te,y,.5),se+=xe;break;case mo:case ws:Zn=on.type===mo?es(on,ht):Rs(on,ht,ce,ge);var nr=Zn.length;if(nr===0){if(ce=au(te,y,ne,y,ce,ge,on.type===mo?on.centerX:on.endX,on.type===mo?on.centerY:on.endY),isNaN(ce))return!0;se+=ce;break}on=null;for(var Jn=0;Jn<nr;Jn++){if(on=Zn[Jn],Jn===0){if(xe=au(te,y,ne,y,ce,ge,on[0],on[1]),isNaN(xe))return!0;se+=xe}xe=qt.Fo(on[0],on[1],on[2],on[3],on[4],on[5],on[6],on[7],ne,y,te,y,.5),se+=xe}on!==null&&(a=on[6],Ae=on[7]);break;default:zt("Unknown Segment type: "+on.type)}ce=a,ge=Ae}if(Ft){if(se!==0)return!0}else if(se%2!==0)return!0;se=0}else if(ht.ca(te,y,E?x:x+2))return!0}return!1}function au(a,y,x,b,E,te,ne,se){if(qt.Yb(E,te,ne,se,.05,a,y))return NaN;var ce=(a-x)*(te-se);if(ce===0)return 0;var ge=((a*b-y*x)*(E-ne)-(a-x)*(E*se-te*ne))/ce;if(y=(a*b-y*x)*(te-se)/ce,ge>=a)return 0;if((E>ne?E-ne:ne-E)<(te>se?te-se:se-te)){if(te<se){if(y<te||y>se)return 0}else if(y<se||y>te)return 0}else if(E<ne){if(ge<E||ge>ne)return 0}else if(ge<ne||ge>E)return 0;return 0<ce?1:-1}function yc(a,y,x,b){a=a.figures.s;for(var E=a.length,te=0;te<E;te++)if(a[te].ca(y,x,b))return!0;return!1}it.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Nt),this.type===Un.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,te=this.flattenedTotalLength*a,ne=0,se=0;se<E;se++){var ce=b[se],ge=ce.length;for(a=0;a<ge;a++){var xe=ce[a];if(ne+xe>=te)return b=te-ne,b=xe===0?0:b/xe,x=x[se],se=x[2*a],E=x[2*a+1],y.h(se+(x[2*a+2]-se)*b,E+(x[2*a+3]-E)*b),y;ne+=xe}}return y},it.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Un.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,b=y.length,E=this.flattenedTotalLength*a,te=0,ne=0;ne<b;ne++){var se=x[ne],ce=se.length;for(a=0;a<ce;a++){var ge=se[a];if(te+ge>=E)return E=y[ne],y=E[2*a],x=E[2*a+1],b=E[2*a+2],a=E[2*a+3],1>Math.abs(b-y)&&1>Math.abs(a-x)?0:1>Math.abs(b-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=b-y?0:180:180*Math.atan2(a-x,b-y)/Math.PI;te+=ge}}return NaN},it.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Un.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 x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,te=this.flattenedTotalLength*a,ne=0,se=0;se<E;se++){var ce=b[se],ge=ce.length;for(a=0;a<ge;a++){var xe=ce[a];if(ne+xe>=te)return b=te-ne,b=xe===0?0:b/xe,xe=x[se],x=xe[2*a],se=xe[2*a+1],E=xe[2*a+2],a=xe[2*a+3],y[0]=x+(E-x)*b,y[1]=se+(a-se)*b,y[2]=1>Math.abs(E-x)&&1>Math.abs(a-se)?0:1>Math.abs(E-x)?0<=a-se?90:270:1>Math.abs(a-se)?0<=E-x?0:180:180*Math.atan2(a-se,E-x)/Math.PI,y;ne+=xe}}return y},it.xx=function(a){if(this.type===Un.j){var y=this.startX,x=this.startY,b=this.endX,E=this.endY;if(y!==b||x!==E){var te=a.x;if(a=a.y,y===b){if(x<E){var ne=x;b=E}else ne=E,b=x;return a<=ne?ne===x?0:1:a>=b?b===x?0:1:Math.abs(a-x)/(b-ne)}if(x===E)return y<b?ne=y:(ne=b,b=y),te<=ne?ne===y?0:1:te>=b?b===y?0:1:Math.abs(te-y)/(b-ne);ne=(b-y)*(b-y)+(E-x)*(E-x);var se=Nt.alloc();return qt.qh(y,x,b,E,te,a,se),a=se.x,te=se.y,Nt.free(se),Math.sqrt(((a-y)*(a-y)+(te-x)*(te-x))/ne)}}else if(this.type===Un.u){ne=this.startX,se=this.startY;var ce=this.endX;if(E=this.endY,ne!==ce||se!==E){y=ce-ne,x=E-se,te=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,ne),ce),a=Math.min(Math.max(a,se),E),ne=Math.abs(b-ne),ce=Math.abs(b-ce),se=Math.abs(a-se),E=Math.abs(a-E);var ge=Math.min(ne,ce,se,E);if(ge===se)return b/te;if(ge===ce)return(y+a)/te;if(ge===E)return(2*y+x-b)/te;if(ge===ne)return(2*y+2*x-a)/te}}else{y=this.flattenedSegments,x=this.flattenedLengths,te=this.flattenedTotalLength,b=Nt.alloc(),E=1/0,se=ne=0,ce=y.length;for(var xe=ge=0,Ae=0;Ae<ce;Ae++)for(var Ue=y[Ae],Je=x[Ae],rt=Ue.length,ht=0;ht<rt;ht+=2){var Ft=Ue[ht],Ot=Ue[ht+1];if(ht!==0){qt.qh(ge,xe,Ft,Ot,a.x,a.y,b);var _t=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);_t<E&&(E=_t,ne=se,ne+=Math.sqrt((b.x-ge)*(b.x-ge)+(b.y-xe)*(b.y-xe))),se+=Je[(ht-2)/2]}ge=Ft,xe=Ot}return Nt.free(b),a=ne/te,0>a?0:1<a?1:a}return 0};function _d(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],E=[];if(a.type===Un.j)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.endY),y.push(b),E.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(E);else if(a.type===Un.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),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),x.push(E);else if(a.type===Un.F){var te=new jo;te.startX=a.endX,te.startY=(a.startY+a.endY)/2;var ne=new di(mo);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,te.add(ne),a=es(ne,te),E=a.length,E===0)b.push(ne.centerX),b.push(ne.centerY);else{ne=te.startX,te=te.startY;for(var se=0;se<E;se++){var ce=a[se];qt.Qe(ne,te,ce[2],ce[3],ce[4],ce[5],ce[6],ce[7],.5,b),ne=ce[6],te=ce[7]}}y.push(b),x.push(Wh(b))}else for(a=a.figures.iterator;a.next();){E=a.value,b=[],b.push(E.startX),b.push(E.startY),ne=E.startX,te=E.startY,se=ne,ce=te;for(var ge=E.segments.s,xe=ge.length,Ae=0;Ae<xe;Ae++){var Ue=ge[Ae];switch(Ue.type){case Io:4<=b.length&&(y.push(b),x.push(Wh(b))),b=[],b.push(Ue.endX),b.push(Ue.endY),ne=Ue.endX,te=Ue.endY,se=ne,ce=te;break;case Ri:b.push(Ue.endX),b.push(Ue.endY),ne=Ue.endX,te=Ue.endY;break;case Qo:qt.Qe(ne,te,Ue.point1X,Ue.point1Y,Ue.point2X,Ue.point2Y,Ue.endX,Ue.endY,.5,b),ne=Ue.endX,te=Ue.endY;break;case cs:qt.ep(ne,te,Ue.point1X,Ue.point1Y,Ue.endX,Ue.endY,.5,b),ne=Ue.endX,te=Ue.endY;break;case mo:var Je=es(Ue,E),rt=Je.length;if(rt===0){b.push(Ue.centerX),b.push(Ue.centerY),ne=Ue.centerX,te=Ue.centerY;break}for(var ht=0;ht<rt;ht++){var Ft=Je[ht];qt.Qe(ne,te,Ft[2],Ft[3],Ft[4],Ft[5],Ft[6],Ft[7],.5,b),ne=Ft[6],te=Ft[7]}break;case ws:if(Je=Rs(Ue,E,ne,te),rt=Je.length,ht=Ue.endX,Ft=Ue.endY,rt===0){b.push(ht),b.push(Ft),ne=ht,te=Ft;break}for(ht=0;ht<rt;ht++)Ft=Je[ht],qt.Qe(ne,te,Ft[2],Ft[3],Ft[4],Ft[5],Ft[6],Ft[7],.5,b),ne=Ft[6],te=Ft[7];break;default:zt("Segment not of valid type: "+Ue.type)}Ue.isClosed&&(b.push(se),b.push(ce))}4<=b.length&&(y.push(b),x.push(Wh(b)))}}}function Wh(a){for(var y=[],x=0,b=0,E=a.length,te=0;te<E;te+=2){var ne=a[te],se=a[te+1];te!==0&&y.push(Math.sqrt(Fi(x,b,ne,se))),x=ne,b=se}return y}it.add=function(a){return this.ee.add(a),this},it.pm=function(a,y,x,b,E,te,ne,se){return this._isFrozen&&xn(this),this.fg=new sr(a,y,E,te).freeze(),this.gg=new sr(x,b,ne,se).freeze(),this},Lt.Object.defineProperties(Un.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 _d(this),this.tk}},flattenedLengths:{get:function(){return _d(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===Un.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===Un.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var x=y.length,b=a=0;b<x;b++)for(var E=y[b],te=E.length,ne=0;ne<te;ne++)a+=E[ne]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&xn(this,a),this.na=a,a===Un.o?this.ee=new Tn:(Un.V===null&&(Un.V=new Tn().freeze()),this.ee=Un.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&xn(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&xn(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&xn(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&xn(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&xn(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&xn(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&xn(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&xn(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Un.prototype.setSpots=Un.prototype.pm,Un.prototype.add=Un.prototype.add,Un.prototype.getFractionForPoint=Un.prototype.xx,Un.prototype.getPointAndAngleAlongPath=Un.prototype.Qu,Un.prototype.getAngleAlongPath=Un.prototype.wx,Un.prototype.getPointAlongPath=Un.prototype.Pu,Un.prototype.containsPoint=Un.prototype.ca,Un.prototype.transform=Un.prototype.transform,Un.prototype.rotate=Un.prototype.rotate,Un.prototype.scale=Un.prototype.scale,Un.prototype.offset=Un.prototype.offset,Un.prototype.normalize=Un.prototype.normalize,Un.prototype.computeBoundsWithoutOrigin=Un.prototype.ix,Un.prototype.equalsApprox=Un.prototype.Xa,Un.className="Geometry",Un.j=new fn(Un,"Line",0),Un.u=new fn(Un,"Rectangle",1),Un.F=new fn(Un,"Ellipse",2),Un.o=new fn(Un,"Path",3),Un.V=null,Un.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Un.className="Geometry",Un.stringify=Un.ia,Un.fillPath=Un.nb,Un.parse=Un.parse,Un.Line=Un.j,Un.Rectangle=Un.u,Un.Ellipse=Un.F,Un.Path=Un.o;function jo(a,y,x,b,E){zr(this),x===void 0&&(x=!0),b===void 0&&(b=!0),E===void 0&&(E=!1),this.l=2|(x?4:0)|(b?8:0)|(E?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new Tn,this.sr=this.pl.Ja,this.fw=null}jo.prototype.copy=function(){var a=new jo;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,x=y.length,b=a.pl,E=0;E<x;E++){var te=y[E].copy();b.add(te)}return a.sr=this.sr,a.fw=this.fw,a},it=jo.prototype,it.Xa=function(a){if(!(a instanceof jo&&qt.B(this.startX,a.startX)&&qt.B(this.startY,a.startY)))return!1;var y=this.segments.s;a=a.segments.s;var x=y.length;if(x!==a.length)return!1;for(var b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0},it.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),x=this.segments.s,b=x.length,E=0;E<b;E++)y+=" "+x[E].toString(a);return y},it.freeze=function(){this._isFrozen=!0;var a=this.segments;a.freeze();var y=a.s;a=a.length;for(var x=0;x<a;x++)y[x].freeze();return this},it.ka=function(){this._isFrozen=!1;var a=this.segments;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},it.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,x=0;x<y;x++)if(a[x]._isInvalidBounds)return!0;return!1},it.add=function(a){return this.pl.add(a),this},it.ca=function(a,y,x){for(var b=this.startX,E=this.startY,te=b,ne=E,se=this.segments.s,ce=se.length,ge=0;ge<ce;ge++){var xe=se[ge];switch(xe.type){case Io:te=xe.endX,ne=xe.endY,b=xe.endX,E=xe.endY;break;case Ri:if(qt.Yb(b,E,xe.endX,xe.endY,x,a,y))return!0;b=xe.endX,E=xe.endY;break;case Qo:if(qt.cs(b,E,xe.point1X,xe.point1Y,xe.point2X,xe.point2Y,xe.endX,xe.endY,.5,a,y,x))return!0;b=xe.endX,E=xe.endY;break;case cs:if(qt.jv(b,E,xe.point1X,xe.point1Y,xe.endX,xe.endY,.5,a,y,x))return!0;b=xe.endX,E=xe.endY;break;case mo:case ws:var Ae=xe.type===mo?es(xe,this):Rs(xe,this,b,E),Ue=Ae.length,Je=xe.type===mo?xe.centerX:xe.endX,rt=xe.type===mo?xe.centerY:xe.endY;if(Ue===0){if(qt.Yb(b,E,Je,rt,x,a,y))return!0;b=Je,E=rt;break}for(Je=null,rt=0;rt<Ue;rt++)if(Je=Ae[rt],rt===0&&qt.Yb(b,E,Je[0],Je[1],x,a,y)||qt.cs(Je[0],Je[1],Je[2],Je[3],Je[4],Je[5],Je[6],Je[7],.5,a,y,x))return!0;Je!==null&&(b=Je[6],E=Je[7]);break;default:zt("Unknown Segment type: "+xe.type)}if(xe.isClosed&&(b!==te||E!==ne)&&qt.Yb(b,E,te,ne,x,a,y))return!0}return!1},Lt.Object.defineProperties(jo.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&&xn(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&xn(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&xn(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&xn(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&xn(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&xn(this,a),this.pl=a,this._isInvalidBounds=!0}}}),jo.prototype.add=jo.prototype.add,jo.prototype.equalsApprox=jo.prototype.Xa,jo.className="PathFigure";function di(a,y,x,b,E,te,ne,se){zr(this),a===void 0&&(a=Ri),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,b===void 0&&(b=0),E===void 0&&(E=0),te===void 0&&(te=0),ne===void 0&&(ne=0),a===ws?(a=te%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(b,0),this.Pg=Math.max(E,0),typeof ne=="boolean"?ne&&(this.isLargeArc=!0):typeof ne=="number"&&ne&&(this.isLargeArc=!0),se&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=E,a===mo&&(te=Math.max(te,0)),this.Wh=te,typeof ne=="number"?(a===mo&&(ne=Math.max(ne,0)),this.Pg=ne):this.Pg=0),this.ae=null}di.prototype.copy=function(){var a=new di;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},it=di.prototype,it.Xa=function(a){if(!(a instanceof di)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case Io:case Ri:return qt.B(this.endX,a.endX)&&qt.B(this.endY,a.endY);case Qo:return qt.B(this.endX,a.endX)&&qt.B(this.endY,a.endY)&&qt.B(this.point1X,a.point1X)&&qt.B(this.point1Y,a.point1Y)&&qt.B(this.point2X,a.point2X)&&qt.B(this.point2Y,a.point2Y);case cs:return qt.B(this.endX,a.endX)&&qt.B(this.endY,a.endY)&&qt.B(this.point1X,a.point1X)&&qt.B(this.point1Y,a.point1Y);case mo:return qt.B(this.startAngle,a.startAngle)&&qt.B(this.sweepAngle,a.sweepAngle)&&qt.B(this.centerX,a.centerX)&&qt.B(this.centerY,a.centerY)&&qt.B(this.radiusX,a.radiusX)&&qt.B(this.radiusY,a.radiusY);case ws:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&qt.B(this.xAxisRotation,a.xAxisRotation)&&qt.B(this.endX,a.endX)&&qt.B(this.endY,a.endY)&&qt.B(this.radiusX,a.radiusX)&&qt.B(this.radiusY,a.radiusY);default:return!1}},it.qb=function(a){a.classType===di&&(this.type=a)},it.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Io:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Ri:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Qo: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 cs: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 mo: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 ws: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":"")},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return this._isFrozen=!1,this},it.close=function(){return this.isClosed=!0,this};function es(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,b=a.radiusY;if(b===void 0&&(b=x),x===0||b===0)return a.ae=[],a.ae;y=a.Ne;var E=a.Vh,te=qt.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var ne=Wr.alloc();ne.reset(),x<b?ne.scale(1,b/x):ne.scale(x/b,1),Un.Ha(te,ne),Wr.free(ne)}for(x=te.length,b=0;b<x;b++)ne=te[b],ne[0]+=y,ne[1]+=E,ne[2]+=y,ne[3]+=E,ne[4]+=y,ne[5]+=E,ne[6]+=y,ne[7]+=E;return a.ae=te,a.ae}function Rs(a,y,x,b){function E(ht,Ft,Ot,_t){return(ht*_t<Ft*Ot?-1:1)*Math.acos((ht*Ot+Ft*_t)/(Math.sqrt(ht*ht+Ft*Ft)*Math.sqrt(Ot*Ot+_t*_t)))}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 te=a.Pg;y===0&&(y=1e-4),te===0&&(te=1e-4);var ne=Math.PI/180*a.Ne,se=a.isLargeArc,ce=a.isClockwiseArc,ge=a.Dc,xe=a.Ec,Ae=Math.cos(ne),Ue=Math.sin(ne),Je=Ae*(x-ge)/2+Ue*(b-xe)/2;ne=-Ue*(x-ge)/2+Ae*(b-xe)/2;var rt=Je*Je/(y*y)+ne*ne/(te*te);return 1<rt&&(y*=Math.sqrt(rt),te*=Math.sqrt(rt)),rt=(se===ce?-1:1)*Math.sqrt((y*y*te*te-y*y*ne*ne-te*te*Je*Je)/(y*y*ne*ne+te*te*Je*Je)),isNaN(rt)&&(rt=0),se=rt*y*ne/te,rt=rt*-te*Je/y,isNaN(se)&&(se=0),isNaN(rt)&&(rt=0),x=(x+ge)/2+Ae*se-Ue*rt,b=(b+xe)/2+Ue*se+Ae*rt,xe=E(1,0,(Je-se)/y,(ne-rt)/te),Ae=(Je-se)/y,ge=(ne-rt)/te,Je=(-Je-se)/y,se=(-ne-rt)/te,ne=E(Ae,ge,Je,se),Je=(Ae*Je+ge*se)/(Math.sqrt(Ae*Ae+ge*ge)*Math.sqrt(Je*Je+se*se)),-1>=Je?ne=Math.PI:1<=Je&&(ne=0),!ce&&0<ne&&(ne-=2*Math.PI),ce&&0>ne&&(ne+=2*Math.PI),ce=y>te?1:y/te,Je=y>te?te/y:1,y=qt.jx(0,0,y>te?y:te,xe,xe+ne,!0),te=Wr.alloc(),te.reset(),te.translate(x,b),te.rotate(a.Ne,0,0),te.scale(ce,Je),Un.Ha(y,te),Wr.free(te),a.ae=y,a.ae}Lt.Object.defineProperties(di.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&&xn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&xn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&xn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&xn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&xn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&xn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&xn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&xn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&xn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Fn(a,">= zero",di,"radiusX"),this._isFrozen&&xn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Fn(a,">= zero",di,"radiusY"),this._isFrozen&&xn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&xn(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&&xn(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&&xn(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&&xn(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&&xn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),di.prototype.equalsApprox=di.prototype.Xa;var Io=new fn(di,"Move",0),Ri=new fn(di,"Line",1),Qo=new fn(di,"Bezier",2),cs=new fn(di,"QuadraticBezier",3),mo=new fn(di,"Arc",4),ws=new fn(di,"SvgArc",4);di.className="PathSegment",di.Move=Io,di.Line=Ri,di.Bezier=Qo,di.QuadraticBezier=cs,di.Arc=mo,di.SvgArc=ws;function ua(){this.H=null,this.xu=new Nt(0,0).freeze(),this.mt=new Nt(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}ua.prototype.copy=function(){var a=new ua;return this.clone(a)},ua.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},ua.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},ua.prototype.So=function(a,y){var x=this.diagram;return x===null||vp(x,a,y),y},ua.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(vp(x,a,y),y.assign(x.Ps(y))),y},Lt.Object.defineProperties(ua.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}}}),ua.prototype.getMultiTouchDocumentPoint=ua.prototype.Bz,ua.prototype.getMultiTouchViewPoint=ua.prototype.So,ua.className="InputEvent";function Mu(){this.H=null,this.xa="",this.ar=this.Lr=null}Mu.prototype.copy=function(){var a=new Mu;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Mu.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},Lt.Object.defineProperties(Mu.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}}}),Mu.className="DiagramEvent";function $i(){this.Fm=Zi,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}$i.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},$i.prototype.copy=function(){var a=new $i;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=gn(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=gn(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=gn(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=gn(y)&&typeof y.J=="function"?y.J():y,a},$i.prototype.qb=function(a){a.classType===$i&&(this.change=a)},$i.prototype.toString=function(){var a="";return a=this.change===ts?a+"* ":this.change===Zi?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===ts?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Dn(this.object)),this.oldValue!==null&&(a+=" old: "+Dn(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Dn(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},$i.prototype.I=function(a){return a?this.oldValue:this.newValue},$i.prototype.Dz=function(a){return a?this.oldParam:this.newParam},$i.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},$i.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},$i.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},$i.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Lt.Object.defineProperties($i.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===ts&&(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}}}),$i.prototype.redo=$i.prototype.redo,$i.prototype.canRedo=$i.prototype.canRedo,$i.prototype.undo=$i.prototype.undo,$i.prototype.canUndo=$i.prototype.canUndo,$i.prototype.getParam=$i.prototype.Dz,$i.prototype.getValue=$i.prototype.I,$i.prototype.clear=$i.prototype.clear;var ts=new fn($i,"Transaction",-1),Zi=new fn($i,"Property",0),lo=new fn($i,"Insert",1),Eo=new fn($i,"Remove",2);$i.className="ChangedEvent",$i.Transaction=ts,$i.Property=Zi,$i.Insert=lo,$i.Remove=Eo;function _o(){this.o=new Tn().freeze(),this.xa="",this.j=!1}_o.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 x=0;x<a;x++){var b=this.changes.M(x);b!==null&&(y+=`
|
|
|
`+b.toString())}}return y},_o.prototype.clear=function(){var a=this.changes;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),a.freeze()},_o.prototype.canUndo=function(){return this.isComplete},_o.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()}},_o.prototype.canRedo=function(){return this.isComplete},_o.prototype.redo=function(){if(this.canRedo())for(var a=this.changes.count,y=0;y<a;y++){var x=this.changes.M(y);x!==null&&x.redo()}},_o.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new qn,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===Zi&&b.object){var E=y.get(b.object);E||(E=new qn,y.set(b.object,E));var te=E.get(b.propertyName);te===null?E.set(b.propertyName,-1):(0<te&&a.cd(te,null),E.set(b.propertyName,x))}}for(x=y=0;x<a.count;x++)b=a.M(x),b!==null&&(x>y&&a.cd(y,b),y++);for(;a.length>y;)a.pop();a.freeze()}},Lt.Object.defineProperties(_o.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}}}),_o.prototype.optimize=_o.prototype.ak,_o.prototype.redo=_o.prototype.redo,_o.prototype.canRedo=_o.prototype.canRedo,_o.prototype.undo=_o.prototype.undo,_o.prototype.canUndo=_o.prototype.canUndo,_o.prototype.clear=_o.prototype.clear,_o.className="Transaction";function Ji(){this.Pt=new Ln,this.Jd=!1,this.u=new Tn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Tn().freeze(),this.hl=new Tn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Ji.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,b=0;b<x;b++)0<b&&(y+=" "),y+=this.nestedTransactionNames.M(b);if(y+="]",a!==void 0&&0<a)for(x=this.history.count,b=0;b<x;b++)y+=`
|
|
|
`+this.history.M(b).toString(a-1);return y},Ji.prototype.clear=function(){var a=this.history;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.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},Ji.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},it=Ji.prototype,it.Xw=function(a){this.Pt.add(a)},it.Rx=function(a){this.Pt.remove(a)},it.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},it.eb=function(a){return a===void 0&&(a=""),Sc(this,!0,a)},it.Kf=function(){return Sc(this,!1,"")};function Sc(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&$n("Ending transaction without having started a transaction: "+x);var b=a.transactionLevel===1,E=a.currentTransaction;b&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,E));var te=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var ne=a.Ie.count;0<ne&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(ne-1),a.Ie.freeze()),ne=a.hl.count,0<ne&&(te=a.hl.M(ne-1),a.hl.mb(ne-1))}if(b){if(y)a.rq=!1,E===null&&x!==""&&(E=a.currentTransaction),a.isEnabled&&E!==null&&(E.isComplete||(E.isComplete=!0,E.name=x),a.lx(),y=a.history,y.ka(),b=a.maxHistoryLength,0<=b&&(b===0?y.clear():y.count>=b&&(te=y.M(0),te!==null&&te.clear(),y.mb(0),a.Ce--)),b===0||y.count!==0&&y.get(y.count-1)===E||(y.add(E),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,E);else{a.Fe=!0;try{a.isEnabled&&E!==null&&(E.isComplete=!0,E.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,E),a.Fe=!1}E!==null&&E.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&E!==null){for(a=te,x=E.changes,E=x.count-1;E>=a;E--)y=x.M(E),y!==null&&y.undo(),x.ka(),x.mb(E);x.freeze()}return!1}it.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},Ji.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},Ji.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){$n("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},Ji.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},Ji.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){$n("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},Ji.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new $i;for(b.change=ts,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},Ji.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new _o);var x=a.copy();y=y.changes,y.ka(),y.add(x),y.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||$n("Change not within a transaction: "+x.toString()))}},Ji.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},Lt.Object.defineProperties(Ji.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}}}),Ji.prototype.handleChanged=Ji.prototype.Tu,Ji.prototype.redo=Ji.prototype.redo,Ji.prototype.undo=Ji.prototype.undo,Ji.prototype.canUndo=Ji.prototype.canUndo,Ji.prototype.discardHistoryAfterIndex=Ji.prototype.lx,Ji.prototype.rollbackTransaction=Ji.prototype.Kf,Ji.prototype.commitTransaction=Ji.prototype.eb,Ji.prototype.startTransaction=Ji.prototype.Ea,Ji.prototype.removeModel=Ji.prototype.Rx,Ji.prototype.addModel=Ji.prototype.Xw,Ji.prototype.clear=Ji.prototype.clear,Ji.className="UndoManager";function ci(){zr(this),this.H=zl,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new ua,this.Zr=-1}ci.prototype.toString=function(){return this.name!==""?this.name+" Tool":Cn(this.constructor)},ci.prototype.updateAdornments=function(){},ci.prototype.canStart=function(){return this.isEnabled},ci.prototype.doStart=function(){},ci.prototype.doActivate=function(){this.isActive=!0},ci.prototype.doDeactivate=function(){this.isActive=!1},ci.prototype.doStop=function(){},ci.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},ci.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},ci.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},ci.prototype.doMouseMove=function(){},ci.prototype.doMouseUp=function(){this.stopTool()},ci.prototype.doMouseWheel=function(){},ci.prototype.canStartMultiTouch=function(){return!0},ci.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Nt.allocAt(NaN,NaN)),b=y.So(1,Nt.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var E=b.x-x.x,te=b.y-x.y;a.Jw=Math.sqrt(E*E+te*te),y.bubbles=!1}Nt.free(x),Nt.free(b)},ci.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Nt.allocAt(NaN,NaN)),b=y.So(1,Nt.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var E=b.x-x.x,te=b.y-x.y;te=Math.sqrt(E*E+te*te)/a.Jw,E=new Nt((Math.min(b.x,x.x)+Math.max(b.x,x.x))/2,(Math.min(b.y,x.y)+Math.max(b.y,x.y))/2),te*=a.Bw;var ne=a.commandHandler;if(te!==a.scale&&ne.canResetZoom(te)){var se=a.zoomPoint;a.zoomPoint=E,ne.resetZoom(te),a.zoomPoint=se}y.bubbles=!1}Nt.free(x),Nt.free(b)},ci.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},ci.prototype.doKeyUp=function(){},ci.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},ci.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},ci.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(wr?y.meta:y.control){for(a.R("ChangingSelection",a.selection),y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!y.isSelected),a.R("ChangedSelection",a.selection)}else if(y.shift){if(!x.isSelected){for(a.R("ChangingSelection",a.selection),y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!0),a.R("ChangedSelection",a.selection)}}else if(!x.isSelected){for(y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&a.select(y)}}else!y.left||(wr?y.meta:y.control)||y.shift||a.clearSelection()}},ci.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(E){return!E.layer.isTemporary});var x=this.diagram,b=x.lastInput;return a=x.ic(b.documentPoint,a,y),b.targetObject=a,Dg(a,b,x),b.handled};function Dg(a,y,x){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 E="ObjectSingleClicked";if(a!==null){switch(b){case 1:E="ObjectSingleClicked";break;case 2:E="ObjectDoubleClicked";break;case 3:E="ObjectContextClicked"}b!==0&&x.R(E,a)}else{switch(b){case 1:E="BackgroundSingleClicked";break;case 2:E="BackgroundDoubleClicked";break;case 3:E="BackgroundContextClicked"}b!==0&&x.R(E)}if(a!==null)for(;a!==null;){switch(x=null,b){case 1:x=a.click;break;case 2:x=a.doubleClick?a.doubleClick:a.click;break;case 3:x=a.contextClick}if(x!==null&&(x(y,a),y.handled))break;a=a.panel}else{switch(a=null,b){case 1:a=x.click;break;case 2:a=x.doubleClick?x.doubleClick:x.click;break;case 3:a=x.contextClick}a!==null&&a(y)}}}ci.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var x=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 E=!1;if(b!==a.Ck){var te=a.Ck,ne=te;for(a.Ck=b,this.doCurrentObjectChanged(te,b),y.handled=!1;te!==null;){var se=te.mouseLeave;if(se!==null&&(b===te||b!==null&&b.rg(te)||(se(y,te,b),E=!0,y.handled)))break;te=te.panel}for(te=ne,y.handled=!1;b!==null&&(ne=b.mouseEnter,!(ne!==null&&(te===b||te!==null&&te.rg(b)||(ne(y,b,te),E=!0,y.handled))));)b=b.panel;b=a.Ck}if(b!==null){for(te=b,ne="";te!==null&&(ne=te.cursor,ne==="");)te=te.panel;for(a.currentCursor=ne,y.handled=!1,te=b;te!==null&&(b=te.mouseOver,!(b!==null&&(b(y,te),E=!0,y.handled)));)te=te.panel}else this.doUpdateCursor(null),b=a.mouseOver,b!==null&&(b(y),E=!0);E&&a.$b(),a.skipsUndoManager=x}},ci.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},ci.prototype.doCurrentObjectChanged=function(){},ci.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,x=y.delta;if(x!==0&&a.documentBounds.w()){var b=a.commandHandler,E=a.toolManager.mouseWheelBehavior;if(b!==null&&(E===Kh&&!y.shift||E===sh&&y.control))(0<x?b.canIncreaseZoom():b.canDecreaseZoom())&&(E=a.zoomPoint,a.zoomPoint=y.viewPoint,0<x?b.increaseZoom():b.decreaseZoom(),a.zoomPoint=E),y.bubbles=!1;else if(E===Kh&&y.shift||E===sh&&!y.control){b=a.position.copy();var te=y.event;E=te.deltaMode;var ne=te.deltaX;te=te.deltaY;var se="pixel";if(ne===0&&te===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(se,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(se,0<x?"left":"right",Math.abs(x)));else{switch(E){case 0:se="pixel";break;case 1:se="line";break;case 2:se="page"}ne!==0&&a.allowHorizontalScroll&&(ne*=a.scrollHorizontalLineChange/16,a.scroll(se,0<ne?"right":"left",Math.abs(ne))),te!==0&&a.allowVerticalScroll&&(te*=a.scrollVerticalLineChange/16,a.scroll(se,0<te?"down":"up",Math.abs(te)))}this.doWheelChange(a,b,y)}}},ci.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},ci.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=Mn(function(){x.doWaitAfter(b)},a)},ci.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Rt.clearTimeout(this.Zr),this.Zr=-1},ci.prototype.doWaitAfter=function(){},ci.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof hi);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},ci.prototype.isBeyondDragSize=function(a,y){var x=this.diagram;a===void 0&&(a=x.firstInput.viewPoint),y===void 0&&(y=x.lastInput.viewPoint);var b=x.toolManager.dragSize,E=b.width;return b=b.height,x.firstInput.isTouchEvent&&(E+=6,b+=6),Math.abs(y.x-a.x)>E||Math.abs(y.y-a.y)>b},Lt.Object.defineProperties(ci.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof sn&&(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}}}),ci.prototype.startTransaction=ci.prototype.Ea,ci.className="Tool";function Wi(){ci.call(this),this.name="ToolManager",this.hb=new Tn,this.ob=new Tn,this.Hb=new Tn,this.F=this.V=850,this.o=new Wn(2,2).ja(),this.Ha=5e3,this.ia=sh,this.u=zd,this.Mp=this.j=null,this.zj=-1}Xt(Wi,ci),Wi.prototype.initializeStandardTools=function(){},Wi.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof hi&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Wi.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===su&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===xc){y.bubbles=!0;return}if(this.gestureBehavior===su)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===sh?this.mouseWheelBehavior=Kh:this.mouseWheelBehavior===Kh&&(this.mouseWheelBehavior=sh)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Wi.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===xc){y.bubbles=!0;return}if(this.gestureBehavior===su)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var x=this.mouseMoveTools.length,b=0;b<x;b++){var E=this.mouseMoveTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseMove());return}}Fg(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Fg(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Wi.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof hi&&(y===a||y.rg(a))||this.hideToolTip()},Wi.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()))},Wi.prototype.doMouseHover=function(){var a=this.diagram,y=a.lastInput;y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null));var x=y.targetObject;if(x!==null)for(y.handled=!1;x!==null&&(a=this.isActive?x.mouseHold:x.mouseHover,!(a!==null&&(a(y,x),y.handled)));)x=x.panel;else x=this.isActive?a.mouseHold:a.mouseHover,x!==null&&x(y)},Wi.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 hi)||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()},Wi.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof hi){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof El&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(Rt.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=Mn(function(){E.hideToolTip()},a)}},Wi.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y=x.y+20/y.scale+b.height>E.bottom?x.y-(b.height+5/y.scale):x.y+20/y.scale,x.y<E.y&&(x.y=E.y),a.position=x}},Wi.prototype.hideToolTip=function(){this.zj!==-1&&(Rt.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof hi?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof El&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Wi.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,x=0;x<y;x++){var b=this.mouseUpTools.M(x);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()},Wi.prototype.doMouseWheel=function(){this.standardMouseWheel()},Wi.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Wi.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Wi.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,x=0;x<y;x++){var b=this.mouseDownTools.M(x);if(b.name===a)return b}for(y=this.mouseMoveTools.length,x=0;x<y;x++)if(b=this.mouseMoveTools.M(x),b.name===a)return b;for(y=this.mouseUpTools.length,x=0;x<y;x++)if(b=this.mouseUpTools.M(x),b.name===a)return b;return null},Wi.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.name===a)return y!==null?this.mouseDownTools.cd(b,y):this.mouseDownTools.mb(b),E}for(x=this.mouseMoveTools.length,b=0;b<x;b++)if(E=this.mouseMoveTools.M(b),E.name===a)return y!==null?this.mouseMoveTools.cd(b,y):this.mouseMoveTools.mb(b),E;for(x=this.mouseUpTools.length,b=0;b<x;b++)if(E=this.mouseUpTools.M(b),E.name===a)return y!==null?this.mouseUpTools.cd(b,y):this.mouseUpTools.mb(b),E;return null},Wi.prototype.gb=function(a,y,x){y!==null&&(y.name=a,y.diagram=this.diagram),this.findTool(a)?this.replaceTool(a,y):y!==null&&x.add(y)},Lt.Object.defineProperties(Wi.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 hi?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}}}),Wi.prototype.replaceStandardTool=Wi.prototype.gb;var sh=new fn(Wi,"WheelScroll",0),Kh=new fn(Wi,"WheelZoom",1),qf=new fn(Wi,"WheelNone",2),zd=new fn(Wi,"GestureZoom",3),su=new fn(Wi,"GestureCancel",4),xc=new fn(Wi,"GestureNone",5);Wi.className="ToolManager",Wi.WheelScroll=sh,Wi.WheelZoom=Kh,Wi.WheelNone=qf,Wi.GestureZoom=zd,Wi.GestureCancel=su,Wi.GestureNone=xc;function Qi(){ci.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 Nt(NaN,NaN),this.Fr=new Nt,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Ln().freeze(),this.ia=new he,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Rl;Xt(Qi,ci),Qi.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},Qi.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},Qi.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,(wr?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Qi.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),Zo=null,this.isActive=!0,this.tl.set(a.position),Gd(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&&Fa(a),rf(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Zo=this,Au=this.diagram,this.doSimulatedDragOut()))};function Gd(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof Hn?(a.draggedLink=y.first(),a.draggedLink.canRelinkFrom()&&a.draggedLink.canRelinkTo()&&a.draggedLink.Ej(),a.Oe=x.toolManager.findTool("Relinking"),a.Oe===null&&(a.Oe=new hs,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Qi.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Qi.prototype.Pd=function(a){return a===void 0?new fu(ni):this.isGridSnapEnabled?new fu(new Nt(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new fu(a.copy())},Qi.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),wc(this),jc(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Rl.count){for(var y=Rl,x=y.length,b=0;b<x;b++){var E=y.M(b);Tu(E),Ys(E),wc(E),E.diagram.ug()}y.clear()}Tu(this),this.tl.h(NaN,NaN),Au!==null&&(Au.currentCursor=""),Zo=Au=null,Ys(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),id(a,!0)},Qi.prototype.stopTransaction=function(){var a=this.diagram,y=ci.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function wc(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,tp(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function ep(){var a=Zo;Ys(a),Lu(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Qi.prototype.doCancel=function(){Ys(this),Lu(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Qi.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Qi.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function lu(a,y){if(a.copiedParts===null){var x=a.diagram;if((!y||!x.isReadOnly&&!x.isModelReadOnly)&&a.draggedParts!==null){var b=x.undoManager;for(b.isEnabled&&b.isInTransaction?b.currentTransaction!==null&&0<b.currentTransaction.changes.count&&(x.undoManager.Kf(),x.Ea("Drag")):Lu(a),x.skipsUndoManager=!y,x.partManager.addsToTemporaryLayer=!y,a.startPoint=x.firstInput.documentPoint,y=a.copiesEffectiveCollection?a.draggedParts.Lf():x.selection,y=x.Kj(y,x,!0),x=new qn,b=a.draggedParts.iterator;b.next();){var E=b.key;if(E.Zc()&&E.canCopy()){var te=y.I(E);te!==null&&(te.location=E.location,te.Va(),x.add(te,a.Pd(te.location)))}}for(y=y.iterator;y.next();)b=y.value,b instanceof Hn&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,Gd(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Yu(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function Ys(a){var y=a.diagram;if(a.copiedParts!==null){if(y.Is(a.copiedParts.Lf(),!1),a.copiedParts=null,a.draggedParts!==null)for(var x=a.draggedParts.iterator;x.next();)x.key instanceof Hn&&(x.value.point=new Nt(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function Tu(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 Cl(a,y,x){var b=a.diagram,E=a.startPoint,te=Nt.alloc();te.assign(b.lastInput.documentPoint),a.moveParts(y,te.re(E),x),Nt.free(te),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(Fa(b),b.hk())}Qi.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&Nc(b,a,y,this.dragOptions,x)};function Lu(a){if(a.draggedParts!==null){for(var y=a.diagram,x=a.draggedParts.iterator;x.next();){var b=x.key;b.Zc()&&(b.location=x.value.point)}for(x=a.draggedParts.iterator;x.next();)if(b=x.key,b instanceof Hn&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),Yu(b,-E.x,-E.y)}y.bd()}}function Hd(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),ku(a,!1));var b=a.findDragOverObject(y),E=x.lastInput;E.targetObject=b,a.doUpdateCursor(b);var te=x.skipsUndoManager,ne=!1;try{if(x.skipsUndoManager=!0,ne=tp(a,E,b),!a.isActive&&Zo===null)return;var se=b!==null?b.part:null;if(se===null||x.handlesDragDropForTopLevelParts&&se.isTopLevel&&!(se instanceof Ir)){var ce=x.mouseDragOver;ce!==null&&(ce(E),ne=!0)}if(!a.isActive&&Zo===null||(a.doDragOver(y,b),!a.isActive&&Zo===null))return}finally{x.skipsUndoManager=te,ne&&x.bd()}a.Bn=b,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(E.viewPoint)}Qi.prototype.findDragOverObject=function(a){var y=this;return Gl(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof hi||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},Qi.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 tp(a,y,x){var b=!1,E=a.Cg.length,te=0<E?a.Cg[0]:null;if(x===te)return!1;y.handled=!1;for(var ne=0;ne<E;ne++){var se=a.Cg[ne],ce=se.mouseDragLeave;if(ce!==null&&(ce(y,se,x),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Zo===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=np(E);for(E=a.Cg.length,x=0;x<E&&(ne=a.Cg[x],se=ne.mouseDragEnter,se===null||(se(y,ne,te),b=!0,!y.handled));x++);return b}function np(a){var y=a.panel;return y!==null?y:a instanceof pr&&!(a instanceof Ir)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Bg(a,y,x){var b=a.Oe;if(b===null)return null;var E=a.diagram.og(y,b.portGravity,function(ge){return b.findValidLinkablePort(ge,x)});a=Nt.alloc();var te=1/0,ne=null;for(E=E.iterator;E.next();){var se=E.value;if(se.part!==null){var ce=se.ga(ui,a);ce=y.Bf(ce),ce<te&&(ne=se,te=ce)}}return Nt.free(a),ne}function ku(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var b=a.diagram;if(!b.isReadOnly){var E=a.Oe;if(E!==null){var te=null,ne=null;x.fromNode===null&&(te=Bg(a,x.i(0),!1),te!==null&&(ne=te.part));var se=null,ce=null;x.toNode===null&&(se=Bg(a,x.i(x.pointsCount-1),!0),se!==null&&(ce=se.part)),E.isValidLink(ne,te,ce,se)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=ne,te!==null&&(x.fromPortId=te.portId),x.toNode=ce,se!==null&&(x.toPortId=se.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):Ud(E,ne,te,ce,se):Ud(E,null,null,null,null)}}}}Qi.prototype.doDragOver=function(){};function Ou(a,y){var x=a.diagram;a.dragsLink&&ku(a,!0),wc(a);var b=a.findDragOverObject(y),E=x.lastInput;if(E.targetObject=b,b!==null){E.handled=!1;for(var te=b;te!==null;){var ne=te.mouseDrop;if(ne!==null&&(ne(E,te),E.handled))break;Jv(a,E,te),te=np(te)}}else te=x.mouseDrop,te!==null&&te(E);if(a.isActive||Zo!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)te=E.key,te instanceof Xn&&te.linksConnected.each(function(se){se.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||Zo!==null){for(a=wn.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof Xn&&Qv(x,b,a);wn.free(a)}}}function Jv(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Ir||(x=a.mouseDrop,x!==null&&x(y))}function Qv(a,y,x){var b=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(b=!0),a=a.Nu(x,function(E){return E.part},function(E){return E instanceof Hn},!0,function(E){return E instanceof Hn},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Qi.prototype.doDropOnto=function(){},Qi.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()?(lu(this,!1),rf(a,this.copiedParts),Cl(this,this.copiedParts,!1),jc(a,this.copiedParts)):this.mayMove()?(Ys(this),Cl(this,this.draggedParts,!0)):this.mayDragOut()?(lu(this,!1),Cl(this,this.copiedParts,!1)):Ys(this),Hd(this,a.lastInput.documentPoint))}},Qi.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 x=this.mayCopy();if(x&&this.copiedParts!==null?(Ys(this),lu(this,!0),rf(a,this.copiedParts),Cl(this,this.copiedParts,!1),jc(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0}))):(y=!0,Ys(this),this.mayMove()&&(Cl(this,this.draggedParts,!0),Hd(this,a.lastInput.documentPoint))),this.Ym=!0,Ou(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&qv(this),a.Ya(),jc(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Qi.prototype.simulatedMouseMove=function(a,y,x){if(Zo===null)return!1;var b=Zo.diagram;x instanceof sn||(x=null);var E=Au;return x!==E&&(E!==null&&E!==b&&(E.ug(),Zo.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),Au=x,x!==null&&x!==b&&(ep(),E=x.toolManager.findTool("Dragging"),E!==null&&(Rl.contains(E)||Rl.add(E),E.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===b||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(b=x.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=x.getMouse(a)),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!1,b.doSimulatedDragOver()),!0)},Qi.prototype.simulatedMouseUp=function(a,y,x){if(Zo===null)return!1;var b=Au,E=Zo.diagram;if(x===null)return Zo.doCancel(),!0;if(x!==b){var te=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&te!==null)return b.ug(),Zo.isDragOutStarted=!1,te.doSimulatedDragLeave(),!1;Au=x,b=x.toolManager.findTool("Dragging"),b!==null&&(ep(),Rl.contains(b)||Rl.add(b),b.doSimulatedDragEnter())}return x!==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=x.getMouse(a)):y===null&&(y=new Nt),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!0,a=x.toolManager.findTool("Dragging"),a!==null&&a.doSimulatedDrop(),a=Zo,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function qv(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof Xn&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Qi.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(wr?!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())},Qi.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())},Qi.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())},Qi.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Qi.prototype.Az=function(){return Zo},Qi.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Zo;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Qi.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),Cs(a),a.animationManager.Cc(),a=Zo,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Qi.prototype.doSimulatedDragLeave=function(){var a=Zo;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Qi.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Zo;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;Rg(this,y.draggedParts.Lf(),!1,a.firstInput),Cl(this,this.copiedParts,!1),Hd(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Qi.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Zo;if(y!==null){var x=y.diagram;if(y.Ym=!0,Ys(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),Rg(this,y.draggedParts.Lf(),!0,a.lastInput),Cl(this,this.copiedParts,!1);var b=new Ln;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),Ou(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",b,x),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function Rg(a,y,x,b){if(a.copiedParts===null){var E=a.diagram;if(!E.isReadOnly&&!E.isModelReadOnly){E.skipsUndoManager=!x,E.partManager.addsToTemporaryLayer=!x,a.startPoint=b.documentPoint,x=E.Kj(y,E,!0);var te=wn.alloc();E=b=1/0;for(var ne=-1/0,se=-1/0,ce=y.iterator;ce.next();){var ge=ce.value;if(ge.isVisible()){var xe=ge.location;ge=xe.x,xe=xe.y,isNaN(ge)||isNaN(xe)||(ge<b&&(b=ge),xe<E&&(E=xe),ge>ne&&(ne=ge),xe>se&&(se=xe))}}for(b===1/0?te.h(0,0,0,0):te.h(b,E,ne-b,se-E),b=te.x+te.width/2,E=te.y+te.height/2,wn.free(te),te=a.Fr,ne=new qn,se=Nt.alloc(),ce=y.iterator;ce.next();)ge=ce.value,ge instanceof Hn&&ge.canCopy()&&(xe=x.I(ge),xe!==null&&(xe.points=ge.points,Yu(xe,te.x-b,te.y-E),xe.suspendsRouting=!0,ne.add(xe,a.Pd())));for(y=y.iterator;y.next();)ge=y.value,ge.Zc()&&ge.canCopy()&&(ce=x.I(ge),ce!==null&&(ge=ge.location,se.h(te.x-(b-ge.x),te.y-(E-ge.y)),ce.location=se,ce.Va(),ne.add(ce,a.Pd(se))));Nt.free(se),a.copiedParts=ne,Gd(a,ne.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Yu(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Qi.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Qi.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new Nt},Lt.Object.defineProperties(Qi.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}}}),Qi.prototype.getDraggingSource=Qi.prototype.Az;var Zo=null,Au=null;Qi.className="DraggingTool",Rl=new Tn,tr("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Wi.prototype.doCancel=function(){Zo!==null&&Zo.doCancel(),ci.prototype.doCancel.call(this)};function no(){ci.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Hn,y=new _r;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new _r,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Xn,y=new _r,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=vi,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Xn,y=new _r,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=vi,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 qn,this.Of=this.gj=this.Pf=null}Xt(no,ci),no.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},no.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var te=y.Df(),ne=Wn.alloc();ne.width=y.naturalBounds.width*te,ne.height=y.naturalBounds.height*te,b.desiredSize=ne,Wn.free(ne),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=ui,te=Nt.alloc(),x.location=y.ga(ui,te),Nt.free(te),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},no.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=vi,y.fromSpot=io,y.toSpot=io),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},no.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},no.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Xn){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)}},no.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Xn))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof Xn)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},no.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,b=this.portGravity;0>=b&&(b=.1);var E=this,te=y.og(x,b,function(Ae){return E.findValidLinkablePort(Ae,a)},null,!0);for(b=1/0,y=null,te=te.iterator;te.next();){var ne=te.value,se=ne.part;if(se instanceof Xn){var ce=ne.ga(ui,Nt.alloc()),ge=x.x-ce.x,xe=x.y-ce.y;Nt.free(ce),ce=ge*ge+xe*xe,ce<b&&(ge=this.validPortsCache.I(ne),ge!==null?ge&&(y=ne,b=ce):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,se,ne)||!a&&this.isValidLink(se,ne,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(ne,!0),y=ne,b=ce):this.validPortsCache.add(ne,!1))}}return y!==null&&(x=y.part,x instanceof Xn&&(x.layer===null||x.layer.allowLink))?y:null},no.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 x=y.fromMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=x)return!1}return!0},no.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 x=y.toMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=x)return!1}return!0},no.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},no.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Xn))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof Xn))return!1;for(y=y.portId,y===null&&(y=""),y=b.Sd(y);y.next();)if(b=y.value,b.fromNode===x&&b.fromPortId===a)return!0;return!1},no.prototype.isValidLink=function(a,y,x,b){if(!this.isValidFrom(a,y)||!this.isValidTo(x,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)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var E=a.linkValidation;if(E!==null&&!E(a,y,x,b,this.originalLink))return!1}return x!==null&&(E=x.linkValidation,E!==null&&!E(a,y,x,b,this.originalLink))?!1:(E=this.linkValidation,E!==null?E(a,y,x,b,this.originalLink):!0)},no.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var b=new Ln;return b.add(a),ca(this,x,y,b)};function ca(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),ca(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),ca(a,y.labeledLink,x,b))))}no.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var b=this.diagram.validCycle;if(b!==ud){if(b===jp){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=y.linksConnected;b.next();){var E=b.value;if(E!==x&&E.isTreeLink&&E.toNode===y)return!1}return!xa(this,a,y,x,!0)}if(b===Ip){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=a.linksConnected;b.next();)if(E=b.value,E!==x&&E.isTreeLink&&E.fromNode===a)return!1;return!xa(this,a,y,x,!0)}if(b===Op)return a===y?a=!0:(b=new Ln,b.add(y),a=wa(this,b,a,y,x)),!a;if(b===Ap)return!xa(this,a,y,x,!1);if(b===Np)return a===y?a=!0:(b=new Ln,b.add(y),a=lh(this,b,a,y,x)),!a}return!0};function xa(a,y,x,b,E){if(y===x)return!0;if(y===null||x===null)return!1;for(var te=y.linksConnected;te.next();){var ne=te.value;if(ne!==b&&(!E||ne.isTreeLink)&&ne.toNode===y&&(ne=ne.fromNode,ne!==y&&xa(a,ne,x,b,E)))return!0}return!1}function wa(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var te=x.linksConnected;te.next();){var ne=te.value;if(ne!==E&&ne.toNode===x&&(ne=ne.fromNode,ne!==x&&wa(a,y,ne,b,E)))return!0}return!1}function lh(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var te=x.linksConnected;te.next();){var ne=te.value;if(ne!==E){var se=ne.fromNode;if(ne=ne.toNode,se=se===x?ne:se,se!==x&&lh(a,y,se,b,E))return!0}}return!1}Lt.Object.defineProperties(no.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 x=y.O.indexOf(this.j);y.mb(x),y.Gb(x,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 x=y.O.indexOf(this.o);y.mb(x),y.Gb(x,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}}}),no.className="LinkingBaseTool";function ba(){no.call(this),this.name="Linking",this.V={},this.F=null,this.K=bc,this.Xd=null}Xt(ba,no),ba.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},ba.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 Xn)))return null;var x=this.direction;if(x===bc||x===_g){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(x===bc||x===zg)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},ba.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 Xn&&(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 Xn&&(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)},ba.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()},ba.prototype.doStop=function(){no.prototype.doStop.call(this),this.startObject=null},ba.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,E=null,te=null;try{var ne=this.targetPort=this.findTargetPort(this.isForwards);if(ne!==null){var se=ne.part;se instanceof Xn&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=se,E=ne):(y=se,x=ne,this.originalToNode!==null&&(b=this.originalToNode,E=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(b=this.originalToNode,E=this.originalToPort);y!==null||b!==null?(te=this.insertLink(y,x,b,E),te!==null?(ne===null&&(this.isForwards?te.defaultToPoint=a.lastInput.documentPoint:te.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),te.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",te)):this.doNoLink(y,x,b,E)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),te&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},ba.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Hn)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)},ba.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},ba.prototype.doNoLink=function(){},Lt.Object.defineProperties(ba.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 bc=new fn(ba,"Either",0),_g=new fn(ba,"ForwardsOnly",0),zg=new fn(ba,"BackwardsOnly",0);ba.className="LinkingTool",ba.Either=bc,ba.ForwardsOnly=_g,ba.BackwardsOnly=zg;function hs(){no.call(this),this.name="Relinking";var a=new _r;a.figure="Diamond",a.desiredSize=Ti,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new _r,a.figure="Diamond",a.desiredSize=Ti,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new wn}Xt(hs,no),hs.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Hn){var y="RelinkFrom",x=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()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(b,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(b=a.selectionObject,b!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(b,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},hs.prototype.makeAdornment=function(a,y){var x=new hi;return x.type=Rn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},hs.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},hs.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 x=y.part;if(!(x instanceof hi&&x.adornedPart instanceof Hn))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.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=Br),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Br),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},hs.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===Lf||x===Ju)&&(x=ka),y.curve=x,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}},hs.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()},hs.prototype.doStop=function(){no.prototype.doStop.call(this),this.handle=null},hs.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,b=this.originalToNode,E=this.originalToPort,te=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var ne=this.targetPort.part;ne instanceof Xn&&(this.isForwards?(b=ne,E=this.targetPort):(y=ne,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?E=b=null:x=y=null:te=null;te!==null?(this.reconnectLink(te,this.isForwards?b:y,this.isForwards?E:x,this.isForwards),this.targetPort===null&&(this.isForwards?te.defaultToPoint=a.lastInput.documentPoint:te.defaultFromPoint=a.lastInput.documentPoint,te.bb()),this.transactionResult=this.name,a.R("LinkRelinked",te,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},hs.prototype.reconnectLink=function(a,y,x,b){return x=x!==null&&x.portId!==null?x.portId:"",b?(a.toNode=y,a.toPortId=x):(a.fromNode=y,a.fromPortId=x),!0},hs.prototype.doNoRelink=function(){};function Ud(a,y,x,b,E){y!==null?(a.copyPortProperties(y,x,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),b!==null?(a.copyPortProperties(b,E,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}Lt.Object.defineProperties(hs.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 hi))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),hs.className="RelinkingTool",tr("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),tr("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function uo(){ci.call(this),this.name="LinkReshaping";var a=new _r;a.figure="Rectangle",a.desiredSize=Ki,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new _r,a.figure="Diamond",a.desiredSize=Ti,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Nt,this.Yq=new Tn}Xt(uo,ci),uo.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:rp},uo.prototype.om=function(a,y){a.reshapingBehavior=y},uo.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Hn){var y=null;if(a.isSelected&&!this.diagram.isReadOnly){var x=a.path;x!==null&&a.canReshape()&&a.actualBounds.w()&&a.isVisible()&&x.actualBounds.w()&&x.Ed()&&(y=a.Pj(this.name),y===null||y.Aw!==a.pointsCount||y.Uw!==a.resegmentable)&&(y=this.makeAdornment(x),y!==null&&(y.Aw=a.pointsCount,y.Uw=a.resegmentable,a.bh(this.name,y)))}y===null&&a.Jf(this.name)}},uo.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new hi,E.type=Rn.Link,x=y.firstPickIndex;var te=y.lastPickIndex,ne=b?1:0;if(y.resegmentable&&y.computeCurve()!==ms)for(var se=x+ne;se<te-ne;se++){var ce=this.makeResegmentHandle(a,se);ce!==null&&(ce.segmentIndex=se,ce.segmentFraction=.5,ce.fromMaxLinks=999,E.add(ce))}for(ne=x+1;ne<te;ne++)if(se=this.makeHandle(a,ne),se!==null){if(se.segmentIndex=ne,ne!==x)if(ne===x+1&&b){ce=y.i(x);var ge=y.i(x+1);qt.B(ce.x,ge.x)&&qt.B(ce.y,ge.y)&&(ge=y.i(x-1)),qt.B(ce.x,ge.x)?(this.om(se,Iu),se.cursor="n-resize"):qt.B(ce.y,ge.y)&&(this.om(se,ju),se.cursor="w-resize")}else ne===te-1&&b?(ce=y.i(te-1),ge=y.i(te),qt.B(ce.x,ge.x)&&qt.B(ce.y,ge.y)&&(ce=y.i(te+1)),qt.B(ce.x,ge.x)?(this.om(se,Iu),se.cursor="n-resize"):qt.B(ce.y,ge.y)&&(this.om(se,ju),se.cursor="w-resize")):ne!==te&&(this.om(se,Wd),se.cursor="move");E.add(se)}E.adornedObject=a}return E},uo.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},uo.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},uo.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},uo.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 Hn){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var x=y.points.copy(),b=this.getResegmentingPoint();if(x.Gb(this.handle.segmentIndex+1,b),y.isOrthogonal&&x.Gb(this.handle.segmentIndex+1,b),y.points=x,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}}},uo.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},uo.prototype.stopTransaction=function(){var a=this.diagram,y=ci.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},uo.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},uo.prototype.getResegmentingPoint=function(){return this.handle.ga(ui)},uo.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},uo.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 x=this.handle.segmentIndex,b=y.i(x-1),E=y.i(x),te=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var ne=y.i(x-2);if(Math.abs(b.x-E.x)<this.resegmentingDistance&&Math.abs(b.y-E.y)<this.resegmentingDistance&&(Nu(this,ne,b,E,te,!0)||Nu(this,ne,b,E,te,!1))){var se=y.points.copy();Nu(this,ne,b,E,te,!0)?(se.cd(x-2,new Nt(ne.x,(te.y+ne.y)/2)),se.cd(x+1,new Nt(te.x,(te.y+ne.y)/2))):(se.cd(x-2,new Nt((te.x+ne.x)/2,ne.y)),se.cd(x+1,new Nt((te.x+ne.x)/2,te.y))),se.mb(x),se.mb(x-1),y.points=se,y.Wb()}else ne=y.i(x+2),Math.abs(E.x-te.x)<this.resegmentingDistance&&Math.abs(E.y-te.y)<this.resegmentingDistance&&(Nu(this,b,E,te,ne,!0)||Nu(this,b,E,te,ne,!1))&&(se=y.points.copy(),Nu(this,b,E,te,ne,!0)?(se.cd(x-1,new Nt(b.x,(b.y+ne.y)/2)),se.cd(x+2,new Nt(ne.x,(b.y+ne.y)/2))):(se.cd(x-1,new Nt((b.x+ne.x)/2,b.y)),se.cd(x+2,new Nt((b.x+ne.x)/2,ne.y))),se.mb(x+1),se.mb(x),y.points=se,y.Wb())}}else ne=Nt.alloc(),qt.qh(b.x,b.y,te.x,te.y,E.x,E.y,ne)&&ne.Bf(E)<this.resegmentingDistance*this.resegmentingDistance&&(b=y.points.copy(),b.mb(x),y.points=b,y.Wb()),Nt.free(ne)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Nu(a,y,x,b,E,te){return te?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-b.y)<a.resegmentingDistance&&Math.abs(b.y-E.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-b.x)<a.resegmentingDistance&&Math.abs(b.x-E.x)<a.resegmentingDistance}uo.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var x=this.handle.segmentIndex,b=this.Ru(this.handle);if(y.isOrthogonal)if(x===y.firstPickIndex+1)x=y.firstPickIndex+1,b===Iu?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===ju&&(y.L(x,a.x,y.i(x-1).y),y.L(x+1,a.x,y.i(x+2).y));else if(x===y.lastPickIndex-1)x=y.lastPickIndex-1,b===Iu?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===ju&&(y.L(x-1,a.x,y.i(x-2).y),y.L(x,a.x,y.i(x+1).y));else{b=x;var E=y.i(b),te=y.i(b-1),ne=y.i(b+1);qt.B(te.x,E.x)&&qt.B(E.y,ne.y)?(qt.B(te.x,y.i(b-2).x)&&!qt.B(te.y,y.i(b-2).y)?(y.m(b,a.x,te.y),x++,b++):y.L(b-1,a.x,te.y),qt.B(ne.y,y.i(b+2).y)&&!qt.B(ne.x,y.i(b+2).x)?y.m(b+1,ne.x,a.y):y.L(b+1,ne.x,a.y)):qt.B(te.y,E.y)&&qt.B(E.x,ne.x)?(qt.B(te.y,y.i(b-2).y)&&!qt.B(te.x,y.i(b-2).x)?(y.m(b,te.x,a.y),x++,b++):y.L(b-1,te.x,a.y),qt.B(ne.x,y.i(b+2).x)&&!qt.B(ne.y,y.i(b+2).y)?y.m(b+1,a.x,ne.y):y.L(b+1,a.x,ne.y)):qt.B(te.x,E.x)&&qt.B(E.x,ne.x)?(qt.B(te.x,y.i(b-2).x)&&!qt.B(te.y,y.i(b-2).y)?(y.m(b,a.x,te.y),x++,b++):y.L(b-1,a.x,te.y),qt.B(ne.x,y.i(b+2).x)&&!qt.B(ne.y,y.i(b+2).y)?y.m(b+1,a.x,ne.y):y.L(b+1,a.x,ne.y)):qt.B(te.y,E.y)&&qt.B(E.y,ne.y)&&(qt.B(te.y,y.i(b-2).y)&&!qt.B(te.x,y.i(b-2).x)?(y.m(b,te.x,a.y),x++,b++):y.L(b-1,te.x,a.y),qt.B(ne.y,y.i(b+2).y)&&!qt.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(x,a.x,a.y)}else y.L(x,a.x,a.y),b=y.fromNode,E=y.fromPort,b!==null&&(te=b.findVisibleNode(),te!==null&&te!==b&&(b=te,E=b.port)),x===1&&y.computeSpot(!0,E).Mc()&&(te=E.ga(ui,Nt.alloc()),b=y.getLinkPointFromPoint(b,E,te,a,!0,Nt.alloc()),y.L(0,b.x,b.y),Nt.free(te),Nt.free(b)),b=y.toNode,E=y.toPort,b!==null&&(te=b.findVisibleNode(),te!==null&&te!==b&&(b=te,E=b.port)),x===y.pointsCount-2&&y.computeSpot(!1,E).Mc()&&(x=E.ga(ui,Nt.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,Nt.alloc()),y.L(y.pointsCount-1,a.x,a.y),Nt.free(x),Nt.free(a));y.zf()},uo.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Wd:return a;case Iu:return new Nt(y.i(x).x,a.y);case ju:return new Nt(a.x,y.i(x).y);default:case rp:return y.i(x)}},Lt.Object.defineProperties(uo.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 hi))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}}}),uo.prototype.setReshapingBehavior=uo.prototype.om,uo.prototype.getReshapingBehavior=uo.prototype.Ru;var rp=new fn(uo,"None",0),ju=new fn(uo,"Horizontal",1),Iu=new fn(uo,"Vertical",2),Wd=new fn(uo,"All",3);uo.className="LinkReshapingTool",uo.None=rp,uo.Horizontal=ju,uo.Vertical=Iu,uo.All=Wd,tr("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function ra(){ci.call(this),this.name="Resizing",this.o=new Wn(1,1).freeze(),this.j=new Wn(9999,9999).freeze(),this.yg=new Wn(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new _r;a.alignmentFocus=ui,a.figure="Rectangle",a.desiredSize=Ki,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Nt,this.Dw=new Wn,this.Tn=new Nt,this.rt=new Wn(0,0),this.qt=new Wn(1/0,1/0),this.pt=new Wn(1,1)}Xt(ra,ci),ra.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Hn)){if(a.isSelected&&!this.diagram.isReadOnly){var y=a.resizeObject,x=a.Pj(this.name);if(y!==null&&a.canResize()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed()&&((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null)){y=y.li(),_c(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},ra.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new hi,y.type=Rn.Spot,y.locationSpot=ui;var x=new La;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,Ao)),y.add(this.makeHandle(a,ru)),y.add(this.makeHandle(a,Qa)),y.add(this.makeHandle(a,Ya)),y.add(this.makeHandle(a,Co)),y.add(this.makeHandle(a,Uo)),y.add(this.makeHandle(a,Ro)),y.add(this.makeHandle(a,No))}else if(Ws(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},ra.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},ra.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))e:{var x=a.alignment;if(x.Mc()&&(x=ui),0>=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.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 Rn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},ra.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},ra.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))},ra.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},ra.prototype.stopTransaction=function(){var a=this.diagram,y=ci.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ra.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},ra.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,Nt.alloc()),te=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,te),this.resize(y),a.bd(),Nt.free(E)}},ra.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,Nt.alloc()),te=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,te),this.resize(y),Nt.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},ra.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof Ir){var b=new Tn;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var E=new he;E.dragsMembers=!1}y.moveParts(b,this.oppositePoint.copy().re(x),!0,E)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},ra.prototype.computeResize=function(a,y,x,b,E,te){y.Mc()&&(y=ui);var ne=this.adornedObject.naturalBounds,se=ne.x,ce=ne.y,ge=ne.x+ne.width,xe=ne.y+ne.height,Ae=1;if(!te){Ae=ne.width;var Ue=ne.height;0>=Ae&&(Ae=1),0>=Ue&&(Ue=1),Ae=Ue/Ae}return Ue=Nt.alloc(),qt.No(a.x,a.y,se,ce,E.width,E.height,Ue),a=ne.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Ue.x,ge-b.width),a.x=Math.min(a.x,ge-x.width),a.width=Math.max(ge-a.x,x.width),a.y=Math.max(Ue.y,xe-b.height),a.y=Math.min(a.y,xe-x.height),a.height=Math.max(xe-a.y,x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(Ae*a.width,b.height),x.height),a.width=a.height/Ae):(a.width=Math.max(Math.min(a.height/Ae,b.width),x.width),a.height=Ae*a.width),a.x=ge-a.width,a.y=xe-a.height)):1<=y.y?(a.x=Math.max(Ue.x,ge-b.width),a.x=Math.min(a.x,ge-x.width),a.width=Math.max(ge-a.x,x.width),a.height=Math.max(Math.min(Ue.y-ce,b.height),x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(Ae*a.width,b.height),x.height),a.width=a.height/Ae):(a.width=Math.max(Math.min(a.height/Ae,b.width),x.width),a.height=Ae*a.width),a.x=ge-a.width)):(a.x=Math.max(Ue.x,ge-b.width),a.x=Math.min(a.x,ge-x.width),a.width=ge-a.x,te||(a.height=Math.max(Math.min(Ae*a.width,b.height),x.height),a.width=a.height/Ae,a.y=ce+.5*(xe-ce-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(Ue.x-se,b.width),x.width),a.y=Math.max(Ue.y,xe-b.height),a.y=Math.min(a.y,xe-x.height),a.height=Math.max(xe-a.y,x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(Ae*a.width,b.height),x.height),a.width=a.height/Ae):(a.width=Math.max(Math.min(a.height/Ae,b.width),x.width),a.height=Ae*a.width),a.y=xe-a.height)):1<=y.y?(a.width=Math.max(Math.min(Ue.x-se,b.width),x.width),a.height=Math.max(Math.min(Ue.y-ce,b.height),x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(Ae*a.width,b.height),x.height),a.width=a.height/Ae):(a.width=Math.max(Math.min(a.height/Ae,b.width),x.width),a.height=Ae*a.width))):(a.width=Math.max(Math.min(Ue.x-se,b.width),x.width),te||(a.height=Math.max(Math.min(Ae*a.width,b.height),x.height),a.width=a.height/Ae,a.y=ce+.5*(xe-ce-a.height))):0>=y.y?(a.y=Math.max(Ue.y,xe-b.height),a.y=Math.min(a.y,xe-x.height),a.height=xe-a.y,te||(a.width=Math.max(Math.min(a.height/Ae,b.width),x.width),a.height=Ae*a.width,a.x=se+.5*(ge-se-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Ue.y-ce,b.height),x.height),te||(a.width=Math.max(Math.min(a.height/Ae,b.width),x.width),a.height=Ae*a.width,a.x=se+.5*(ge-se-a.width))),Nt.free(Ue),a},ra.prototype.computeReshape=function(){var a=An;return this.adornedObject instanceof _r&&(a=E0(this.adornedObject)),!(a===ir||this.diagram.lastInput.shift)},ra.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},ra.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},ra.prototype.computeCellSize=function(){var a=new Wn(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},Lt.Object.defineProperties(ra.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 hi))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 hi)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}}}),ra.className="ResizingTool",tr("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Pa(){ci.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Nt,this.ue=null;var a=new _r;a.figure="Ellipse",a.desiredSize=Ti,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Nt(NaN,NaN),this.u=0,this.F=50}Xt(Pa,ci),Pa.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 x=a.Pj(this.name);if((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null){x.angle=y.li(),x.placeholder===null&&(x.location=this.computeAdornmentLocation(y)),a.bh(this.name,x);return}}a.Jf(this.name)}},Pa.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new hi,y.type=Rn.Position,y.locationSpot=ui;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(Ws(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Pa.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},Pa.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)},Pa.prototype.computeRotationPoint=function(a){var y=a.part,x=y.locationObject;return y.rotationSpot.sb()?a.ga(y.rotationSpot):a===y||a===x?x.ga(y.locationSpot):a.ga(ui)},Pa.prototype.computeAdornmentLocation=function(a){var y=this.rotationPoint;y.w()||(y=this.computeRotationPoint(a)),y=a.qs(y);var x=this.handleAngle;0>x?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var b=this.handleDistance;return x===0?y.x=a.naturalBounds.width+b:x===45?(y.x=a.naturalBounds.width+b,y.y=a.naturalBounds.height+b):x===90?y.y=a.naturalBounds.height+b:x===135?(y.x=-b,y.y=a.naturalBounds.height+b):x===180?y.x=-b:x===225?(y.x=-b,y.y=-b):x===270?y.y=-b:x===315&&(y.x=a.naturalBounds.width+b,y.y=-b),a.ga(y)},Pa.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Nt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Pa.prototype.stopTransaction=function(){var a=this.diagram,y=ci.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Pa.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Pa.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Pa.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()},Pa.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,b=y.rotateObject;(x===b||x.rg(b))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},Pa.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 x=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0<y&&0<x&&(a%y<x?a=Math.floor(a/y)*y:a%y>y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},Lt.Object.defineProperties(Pa.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 hi))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 hi)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}}}),Pa.className="RotatingTool",tr("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Pc(){ci.call(this),this.name="ClickSelecting"}Xt(Pc,ci),Pc.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Pc.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Pc.className="ClickSelectingTool";function _s(){ci.call(this),this.name="Action",this.pk=null}Xt(_s,ci),_s.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},_s.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()},_s.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))}},_s.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(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},_s.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())},_s.prototype.doStop=function(){this.pk=null},_s.className="ActionTool";function Du(){ci.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Nt(0,0)}Xt(Du,ci),Du.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)},Du.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Du.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var b=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof pr)x.Zc()&&(Ws(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);gn(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var te=Nt.allocAt(a.x,a.y);this.isGridSnapEnabled&&nf(this.diagram,b,a,te),b.location=te,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),Nt.free(te)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},Lt.Object.defineProperties(Du.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}}}),Du.className="ClickCreatingTool";function bs(){ci.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new pr;a.layerName="Tool",a.selectable=!1;var y=new _r;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Xt(bs,ci),bs.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))},bs.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},bs.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},bs.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),x=this.box.fb("SHAPE");x===null&&(x=this.box.Pb());var b=Wn.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),Wn.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},bs.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()},bs.prototype.computeBoxBounds=function(){var a=this.diagram;return new wn(a.firstInput.documentPoint,a.lastInput.documentPoint)},bs.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),wr?x.meta:x.control)if(x.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(x.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0);else{for(x=new Tn,y=y.selection.iterator;y.next();){var b=y.value;a.contains(b)||x.add(b)}for(y=x.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},Lt.Object.defineProperties(bs.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}}}),bs.className="DragSelectingTool";function qo(){ci.call(this),this.name="Panning",this.Xt=new Nt,this.xy=new Nt,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Rt.document,"scroll",a.Kw,!1),a.stopTool()}}Xt(qo,ci),qo.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())},qo.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Rt.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},qo.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},qo.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},qo.prototype.doMouseMove=function(){this.move()},qo.prototype.doMouseUp=function(){this.move(),this.stopTool()},qo.prototype.move=function(){var a=this.diagram;if(this.isActive&&a)if(this.xg)a.lastInput.bubbles=!0;else{var y=a.position,x=a.firstInput.documentPoint,b=a.lastInput.documentPoint,E=y.x+x.x-b.x;x=y.y+x.y-b.y,a.allowHorizontalScroll||(E=y.x),a.allowVerticalScroll||(x=y.y),a.position=this.xy.h(E,x)}},Lt.Object.defineProperties(qo.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),qo.className="PanningTool",tr("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),tr("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),tr("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),tr("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),tr("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function El(){this.F=this.u=this.j=this.o=null}Lt.Object.defineProperties(El.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}}}),El.className="HTMLInfo";function zs(a,y,x){this.text=a,this.hx=y,this.visible=x}zs.className="ContextMenuButtonInfo";function Ca(){ci.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Nt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Xt(Ca,ci);function Js(a){var y=new El;y.show=function(E,te,ne){ne.showDefaultContextMenu()},y.hide=function(E,te){te.hideDefaultContextMenu()},Cc=y,a.tu=function(){a.stopTool()},y=On("div");var x=On("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",x.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=On("style");Rt.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",co,!1),b.addEventListener(y,"selectstart",co,!1),b.addEventListener(x,"contextmenu",co,!1)),y.className="goCXforeground",x.className="goCXbackground",Rt.document.body&&(Rt.document.body.appendChild(y),Rt.document.body.appendChild(x)),Zh=y,uh=x,Vh=!0}function co(a){return a.preventDefault(),!1}Ca.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)},Ca.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},Ca.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},Ca.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof sn||(a instanceof Jt?b=a:b=y.ic(x.documentPoint,null,function(E){return!E.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},Ca.prototype.doActivate=function(){},Ca.prototype.doMouseDown=function(){if(ci.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof hi){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&dl(this)},Ca.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof hi){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}dl(this)};function dl(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof El||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(uu(a,!0),a.isActive||a.stopTool())}Ca.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function uu(a,y,x){if(x===void 0&&(x=null),!a.Et&&(a.Et=!0,y&&a.standardMouseSelect(),y=a.standardMouseClick(),a.Et=!1,!y)){if(a.isActive=!0,y=Cc,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof Jt?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof hi&&!a.currentContextMenu.visible&&a.stopTool()}}Ca.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},Ca.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof hi){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof El&&a.show(y,x,this);this.currentContextMenu=a},Ca.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y+b.height>E.bottom&&(x.y-=b.height+5/y.scale),x.y<E.y&&(x.y=E.y),a.position=x}},Ca.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof hi?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof El&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Fu(a){var y=new Tn;return y.add(new zs("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new zs("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new zs("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new zs("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new zs("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new zs("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new zs("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new zs("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new zs("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new zs("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new zs("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new zs("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new zs("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}Ca.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Fu(this)),Zh.innerHTML="",uh.addEventListener("pointerdown",this.tu,!1);var y=this,x=On("ul");x.className="goCXul",Zh.appendChild(x),x.innerHTML="";for(var b=this.jt.iterator;b.next();){var E=b.value,te=E.visible;if(typeof E.hx=="function"&&(typeof te!="function"||te(a))){te=On("li"),te.className="goCXli";var ne=On("a");ne.className="goCXa",ne.href="#",ne.ky=E.hx,ne.addEventListener("pointerdown",function(se){return this.ky(a),y.stopTool(),se.preventDefault(),!1},!1),ne.textContent=E.text,te.appendChild(ne),x.appendChild(te)}}Zh.style.display="block",uh.style.display="block"},Ca.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Cc){Zh.style.display="none",uh.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(uh,"pointerdown",this.tu,!1),this.currentContextMenu=null}},Lt.Object.defineProperties(Ca.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof hi?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Vh===!1&&Cc===null&&eo&&Js(this),Cc},set:function(a){a===null&&(Vh=!0),Cc=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var Cc=null,Vh=!1,uh=null,Zh=null;Ca.className="ContextMenuTool",tr("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function _i(){ci.call(this),this.name="TextEditing",this.Zh=new ji,this.ia=null,this.V=ch,this.vj=null,this.qa=hh,this.u=1,this.F=!0,this.o=null,this.j=new El,this.kt=null,$h(this,this.j)}Xt(_i,ci);function $h(a,y){if(eo){var x=On("textarea");a.kt=x,x.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),x.addEventListener("keydown",function(b){if(!b.isComposing&&a.textBlock!==null){var E=b.key;E==="Enter"?(a.textBlock.isMultiline===!1&&b.preventDefault(),a.acceptText(Xh)):E==="Tab"?(a.acceptText(Vd),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==hh){var b=a.kt;a.qa===Yh&&(a.qa=Jh),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==hh){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 x.value},y.mainElement=x,y.show=function(b,E,te){if(b instanceof ji&&te instanceof _i)if(te.state===Qh)x.style.border="3px solid red",x.focus();else{var ne=b.ga(ui),se=E.position,ce=E.scale,ge=b.Df()*ce;ge<te.minimumEditorScale&&(ge=te.minimumEditorScale);var xe=b.naturalBounds.width*ge+6,Ae=b.naturalBounds.height*ge+2,Ue=(ne.x-se.x)*ce;ne=(ne.y-se.y)*ce,se=b.verticalAlignment,ce=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*ge,Ae=se.y*Ae-se.y*ce+se.offsetY-(.5*Ae-.5*ce)-ce/2,x.value=b.text,E.div.style.font=b.font,x.style.position="absolute",x.style.zIndex="100",x.style.font="inherit",x.style.fontSize=100*ge+"%",x.style.lineHeight="normal",x.style.width=xe+"px",x.style.left=(Ue-xe/2|0)-1+"px",x.style.top=(ne+Ae|0)-1+"px",x.style.textAlign=b.textAlign,x.style.margin="0",x.style.padding="1px",x.style.border="0",x.style.outline="none",x.style.whiteSpace="pre-wrap",x.style.overflow="hidden",x.rows=b.lineCount,x.wA=ge,x.className="goTXarea",E.div.appendChild(x),x.focus(),te.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(b){b.div.removeChild(x)}}}_i.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||Bu&&Bu!==this&&(Bu.acceptText(Ml),Bu&&Bu!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof ji&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===ch&&!y.isSelected||this.starting===Zd&&2>a.lastInput.clickCount)):!1},_i.prototype.doStart=function(){Bu=this,this.textBlock!==null&&this.doActivate()},_i.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 ji&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Yh;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new wn(this.textBlock.ga(Ao),this.textBlock.ga(Qa));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},_i.prototype.doCancel=function(){this.stopTool()},_i.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},_i.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Ml)},_i.prototype.acceptText=function(a){switch(a){case Ml:this.qa===dh?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Yh||this.qa===Qh||this.qa===Jh)&&(this.qa=op,ip(this));break;case Kd:case Xh:case Vd:(Xh!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Yh||this.qa===Qh||this.qa===Jh)&&(this.qa=op,ip(this))}};function ip(a){var y=a.textBlock,x=a.diagram,b=a.currentTextEditor;if(y!==null&&b!==null){var E=y.text,te="";b.valueFunction!==null&&(te=b.valueFunction()),a.isValidText(y,E,te)?(a.Ea(a.name),a.qa=dh,a.transactionResult=a.name,y.text=te,a.doSuccess(E,te),x!==null&&x.R("TextEdited",y,E),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=Qh,a.doError(E,te))}}_i.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},_i.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},_i.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=hh,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},_i.prototype.doStop=function(){Bu=null},_i.prototype.isValidText=function(a,y,x){var b=this.textValidation;return b!==null&&!b(a,y,x)?!1:(b=a.textValidation,!!(b===null||b(a,y,x)))},_i.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},Lt.Object.defineProperties(_i.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)}}}),_i.prototype.measureTemporaryTextBlock=_i.prototype.Lx;var Kd=new fn(_i,"LostFocus",0),Ml=new fn(_i,"MouseDown",1),Vd=new fn(_i,"Tab",2),Xh=new fn(_i,"Enter",3),e0=new fn(_i,"SingleClick",0),ch=new fn(_i,"SingleClickSelected",1),Zd=new fn(_i,"DoubleClick",2),hh=new fn(_i,"StateNone",0),Yh=new fn(_i,"StateActive",1),Jh=new fn(_i,"StateEditing",2),op=new fn(_i,"StateValidating",3),Qh=new fn(_i,"StateInvalid",4),dh=new fn(_i,"StateValidated",5),Bu=null;_i.className="TextEditingTool",_i.LostFocus=Kd,_i.MouseDown=Ml,_i.Tab=Vd,_i.Enter=Xh,_i.SingleClick=e0,_i.SingleClickSelected=ch,_i.DoubleClick=Zd,_i.StateNone=hh,_i.StateActive=Yh,_i.StateEditing=Jh,_i.StateValidating=op,_i.StateInvalid=Qh,_i.StateValidated=dh,tr("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function ns(a){ed||(ap(),ed=!0),this.H=zl,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=hu,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Ln,this.ce=new ea,this.ce.Yd=this,this.Ei=new Ln,this.pu=new Ln,this.Sr=new Ln,this.pr=new Ln,a&&Object.assign(this,a)}ns.prototype.Xe=function(a){this.H=a},ns.prototype.canStart=function(){return!0};function _l(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),ta(a.H),a.zb=!0)}function $d(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===hu?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===sp&&y.vc.clear(),a.Qw=!!(a.Pk===td&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),b&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),nd(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==ha&&b!==null&&(delete b.start.scale,delete b.end.scale),Rt.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Fa(x),dp(x),a.zb=!1,y.start(),y.bc&&(Ru(a),x.Ya(),lp(y,0),Cs(x,!0),Ec(a),x.R("AnimationStarting",a)))}))}}function cu(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Xd(a,y,x,b){a.isTicking||cu(a)||y instanceof Hn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}it=ns.prototype,it.fv=function(a){return this.ce.fv(a)},it.Xu=function(a){return this.ce.Xu(a)};function Yd(a,y){function x(){if(0<E.Sr.count&&(b.addAll(E.Sr),E.Sr.clear(),E.bc=!0),E.bc!==!1&&b.count!==0){E.pu.addAll(b);for(var te=E.pu.iterator;te.next();){var ne=te.value;if(ne.bc!==!1){e:if(0<ne.yl.count)var se=!0;else{for(se=ne.vc.iterator;se.next();){var ce=se.key;if(ce instanceof Jt&&ce.diagram!==null||ce instanceof sn){se=!0;break e}}se=!1}se?rd(ne,!1):ne.Xk=!0}}E.pu.clear(),E.bc!==!1&&(Ru(E),Cs(E.H),Ec(E)),Rt.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),Rt.requestAnimationFrame(function(){x()}))}function Gg(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function Ru(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 Ec(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}it.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(),nd(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),nd(y,this.H)},it.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))},it.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Ua(this,a))},it.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),_u(this.ce,y,"position",y.position,y.position),Ua(this,a))};function Hg(a,y,x){!a.zb||y.D(x)||cu(a)||(a.H.pi||(y=x.copy()),_u(a.ce,a.H,"position",y,x))}function Jd(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Ua(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Mc(a,y,x,b,E){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var te=a[0],ne=a[1],se=a[2];a=a[3];var ce=y[0],ge=y[1],xe=y[2];return y=y[3],se===0||se===100?(te=ce,ne=ge):(xe===0||xe===100)&&(ce=te,ge=ne),180<Math.abs(ce-te)&&(ce>te?te+=360:ce+=360),te=E(x,te,ce-te,b)%360,ne=E(x,ne,ge-ne,b),se=E(x,se,xe-se,b),x=E(x,a,y-a,b),"hsla("+te+", "+ne+"%, "+se+"%, "+x+")"}function ap(){function a(x,b,E,te,ne,se){x.position=new Nt(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se))}var y=new qn;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,E,te,ne,se){ne<se?x.mm(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se),!1):x.position=new Nt(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se))}),y.add("location",function(x,b,E,te,ne,se){ne<se?x.mm(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se),!0):x.location=new Nt(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se))}),y.add("position:placeholder",function(x,b,E,te,ne,se){ne<se?x.mm(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se),!1):x.position=new Nt(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se))}),y.add("position:nodeCollapse",function(x,b,E,te,ne,se){var ce=x.actualBounds,ge=E.actualBounds;E=ge.x+ge.width/2-ce.width/2,ce=ge.y+ge.height/2-ce.height/2,ne<se?x.mm(te(ne,b.x,E-b.x,se),te(ne,b.y,ce-b.y,se),!1):x.position=new Nt(te(ne,b.x,E-b.x,se),te(ne,b.y,ce-b.y,se))}),y.add("desiredSize",function(x,b,E,te,ne,se){x.desiredSize=new wn(te(ne,b.width,E.width-b.width,se),te(ne,b.height,E.height-b.height,se))}),y.add("width",function(x,b,E,te,ne,se){x.width=te(ne,b,E-b,se)}),y.add("height",function(x,b,E,te,ne,se){x.height=te(ne,b,E-b,se)}),y.add("fill",function(x,b,E,te,ne,se){x.fill=Mc(b,E,ne,se,te)}),y.add("stroke",function(x,b,E,te,ne,se){x.stroke=Mc(b,E,ne,se,te)}),y.add("strokeWidth",function(x,b,E,te,ne,se){x.strokeWidth=te(ne,b,E-b,se)}),y.add("strokeDashOffset",function(x,b,E,te,ne,se){x.strokeDashOffset=te(ne,b,E-b,se)}),y.add("background",function(x,b,E,te,ne,se){x.background=Mc(b,E,ne,se,te)}),y.add("areaBackground",function(x,b,E,te,ne,se){x.areaBackground=Mc(b,E,ne,se,te)}),y.add("opacity",function(x,b,E,te,ne,se){x.opacity=te(ne,b,E-b,se)}),y.add("scale",function(x,b,E,te,ne,se){x.scale=te(ne,b,E-b,se)}),y.add("angle",function(x,b,E,te,ne,se){x.angle=te(ne,b,E-b,se)}),qh=y}Lt.Object.defineProperties(ns.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&&Fn(a,">= 1",ns,"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}}}),ns.prototype.stopAnimation=ns.prototype.Cc;var qh=null,ed=!1,hu=new fn(ns,"Default",1),td=new fn(ns,"AnimateLocations",2),sp=new fn(ns,"None",3);ns.className="AnimationManager",ns.defineAnimationEffect=function(a,y){ed||(ap(),ed=!0),qh.add(a,y)},ns.Default=hu,ns.AnimateLocations=td,ns.None=sp;function ea(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=fh,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=ni,this.vc=new qn,this.Tt=new qn,this.yl=new Ln,this.Ut=new Ln,this.dw=Hu,a&&Object.assign(this,a)}ea.prototype.suspend=function(){this.Xk=!0},ea.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,rd(this,!0),Ru(this.Yd),Cs(this.H),Ec(this.Yd),this.H.redraw()};function nd(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}it=ea.prototype,it.start=function(){if(this.vc.count===0||this.bc)return this;for(var a=this.H,y=this.vc.iterator;y.next();){var x=y.key;a===null&&(x instanceof sn?a=x:x instanceof Jt&&(a=x.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===hu&&this===y.defaultAnimation&&(this.Lp=Ug,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=cd),Ru(y),this.yl.each(function(b){b.data=null,a.add(b)}),Ec(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,Yd(y,this),this)},it.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},it.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof sn?this.H=a:a instanceof Jt&&a.diagram!==null&&(this.H=a.diagram)),a instanceof pr){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return _u(this,a,y,x,b,E),this};function _u(a,y,x,b,E,te){var ne=a.vc;if(y instanceof sn&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(gu(b),s0(),b=[gs.j,gs.u,gs.o,gs.F],gu(E),s0(),E=[gs.j,gs.u,gs.o,gs.F]),ne.contains(y)){var se=ne.I(y),ce=se.start,ge=se.end;ce[x]===void 0&&(ce[x]=Tc(b)),ge[x]=Tc(E)}else ce={},ge={},ce[x]=Tc(b),ge[x]=Tc(E),se=ce.position,y instanceof Jt&&se instanceof Nt&&!se.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&se.assign(ge.position),se=new Lc(ce,ge,te),ne.add(y,se);ne=ce[x],ne instanceof Nt&&!ne.w()&&ne.assign(a.o),te&&x.indexOf("position:")===0&&y instanceof pr?se.Ku.location=Tc(y.location):te&&(se.Ku[x]=Tc(b))}function Tc(a){return a instanceof Nt||a instanceof Wn?a.copy():a}it.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},it.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function rd(a,y){if(!a.Xk||y){var x=a.Yd;if(a.bc!==!1){var b=+new Date,E=b>a.cn?a.Gd:b-a.Qd;y&&(E=a.gw,E<a.Gd?(a.Qd=+new Date-E,a.cn=a.Qd+a.Gd):E=a.Gd),Ru(x),lp(a,E),Cs(a.H,!0),Ec(x),b>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function lp(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var te=b.key;if(!(te instanceof Jt&&te.diagram===null)){var ne=b.value,se=E?ne.end:ne.start;ne=E?ne.start:ne.end;var ce=qh,ge;for(ge in ne)ge==="position"&&(ne["position:placeholder"]||ne["position:nodeCollapse"])||ce.get(ge)===null||ce.get(ge)(te,se[ge],ne[ge],a.Lp,y,x,a)}}}it.stop=function(){return this.bc?(this.Ml(!0),this):this},it.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,Ru(x);for(var b=this.vc,E=this.yl.iterator;E.next();)y.remove(E.value);for(E=this.Ut.iterator;E.next();)E.value.v();E=this.ho,b=b.iterator;for(var te=qh;b.next();){var ne=b.key,se=b.value,ce=E?se.end:se.start,ge=E?se.start:se.end,xe=se.Ku,Ae;for(Ae in ge)if(te.get(Ae)!==null){var Ue=Ae;!se.Hu||Ue!=="position:nodeCollapse"&&Ue!=="position:placeholder"||(Ue="position"),te.get(Ue)(ne,ce[Ae],xe[Ae]!==void 0?xe[Ae]:se.Hu?ce[Ae]:ge[Ae],this.Lp,this.Gd,this.Gd,this)}se.Hu&&xe.location!==void 0&&ne instanceof pr&&(ne.location=xe.location),se.nv&&ne instanceof pr&&ne.Zb(!1)}if(y.As.clear(),id(y,!1),y.Ya(),y.N(),Cs(y,!0),x.defaultAnimation===this){for(Ae=x.pr.iterator;Ae.next();)E=Ae.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}Cs(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Ec(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),nd(this,null),x.Ml(this),y.$b())}},it.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof Ir&&(b=y.placeholder),b!==null?(x=b.ga(Ao),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Nt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Ir)for(a=a.memberParts;a.next();)b=a.value,b instanceof Xn&&this.Cj(b,y)},it.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Ir&&(x=y.placeholder),x!==null){var b=x.ga(Ao);x=x.padding,b.x+=x.left,b.y+=x.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 Ir)for(a=a.memberParts;a.next();)b=a.value,b instanceof Xn&&this.Aj(b,y)}},it.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Lt.Object.defineProperties(ea.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Fn(a,">= 1",ea,"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:zt("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}}}),ea.prototype.getTemporaryState=ea.prototype.Ez,ea.prototype.stop=ea.prototype.stop,ea.prototype.add=ea.prototype.add,ea.prototype.addTemporaryPart=ea.prototype.Iy;function fh(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Ug(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}ea.className="Animation",ea.EaseLinear=function(a,y,x,b){return x*a/b+y},ea.EaseInOutQuad=fh,ea.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},ea.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},ea.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},ea.EaseOutExpo=Ug;function Lc(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Lc.className="AnimationState";function Qs(a,y,x){this.xd=null,this.rf=a,this.so=x||up,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=kc))}Qs.prototype.copy=function(){var a=new Qs(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var x={};y.duration!==void 0&&(x.duration=y.duration),y.finished!==void 0&&(x.finished=y.finished),y.easing!==void 0&&(x.easing=y.easing),a.uk=x}return a};function Wg(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))}Lt.Object.defineProperties(Qs.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 up=new fn(Qs,"Default",1),kc=new fn(Qs,"Immediate",2),ph=new fn(Qs,"Bundled",3);Qs.className="AnimationTrigger",Qs.Default=up,Qs.Immediate=kc,Qs.Bundled=ph;function Wo(a){zr(this),this.H=null,this.Pa=new Tn,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)}it=Wo.prototype,it.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,aa(x)}a.clear(),this.Zq.length=0},it.Xe=function(a){this.H=a},it.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var x=0,b=0,E=0,te=0,ne=0,se=this.Pa.iterator;se.next();){var ce=se.value;ce instanceof Ir?E++:ce instanceof Xn?b++:ce instanceof Hn?te++:ce instanceof hi?ne++:x++}if(se="",0<x&&(se+=x+" Parts "),0<b&&(se+=b+" Nodes "),0<E&&(se+=E+" Groups "),0<te&&(se+=te+" Links "),0<ne&&(se+=ne+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,se+=`
|
|
|
`+x.toString(),b=x.data,b!==null&&Ar(b)&&(se+=" #"+Ar(b)),x instanceof Xn?se+=" "+Dn(b):x instanceof Hn&&(se+=" "+Dn(x.fromNode)+" "+Dn(x.toNode));return y+" "+this.Pa.count+": "+se},it.ic=function(a,y,x){if(y===void 0&&(y=null),x===void 0&&(x=null),this.Uh===!1)return null;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var E=Nt.alloc(),te=this.Pa.s,ne=te.length;ne--;){var se=te[ne];if((b!==!0||_c(se)!==!1)&&se.isVisible()&&(E.assign(a),Vr(E,se.oe),se=se.ic(E,y,x),se!==null&&(y!==null&&(se=y(se)),se!==null&&(x===null||x(se)))))return Nt.free(E),se}return Nt.free(E),null},it.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Tn||b instanceof Ln||(b=new Ln),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var te=Nt.alloc(),ne=this.Pa.s,se=ne.length;se--;){var ce=ne[se];if((E!==!0||_c(ce)!==!1)&&ce.isVisible()){te.assign(a),Vr(te,ce.oe);var ge=ce;ce.ji(te,y,x,b)&&(y!==null&&(ge=y(ge)),ge===null||x!==null&&!x(ge)||b.add(ge))}}return Nt.free(te),b},it.Cf=function(a,y,x,b,E){if(y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Tn||E instanceof Ln||(E=new Ln),this.Uh===!1)return E;var te=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(te=!0);for(var ne=this.Pa.s,se=ne.length;se--;){var ce=ne[se];if((te!==!0||_c(ce)!==!1)&&ce.isVisible()){var ge=ce;ce.Cf(a,y,x,b,E)&&(y!==null&&(ge=y(ge)),ge===null||x!==null&&!x(ge)||E.add(ge))}}return E},it.Nu=function(a,y,x,b,E,te,ne){if(this.Uh===!1)return E;for(var se=this.Pa.s,ce=se.length;ce--;){var ge=se[ce];if((ne!==!0||_c(ge)!==!1)&&te(ge)&&ge.isVisible()){var xe=ge;ge.Cf(a,y,x,b,E)&&(y!==null&&(xe=y(xe)),xe===null||x!==null&&!x(xe)||E.add(xe))}}return E},it.og=function(a,y,x,b,E,te){if(x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Tn||E instanceof Ln)&&(te=E),E=!0),te instanceof Tn||te instanceof Ln||(te=new Ln),this.Uh===!1)return te;var ne=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ne=!0);for(var se=Nt.alloc(),ce=Nt.alloc(),ge=this.Pa.s,xe=ge.length;xe--;){var Ae=ge[xe];if((ne!==!0||_c(Ae)!==!1)&&Ae.isVisible()){se.assign(a),Vr(se,Ae.oe),ce.h(a.x+y,a.y),Vr(ce,Ae.oe);var Ue=Ae;Ae.og(se,ce,x,b,E,te)&&(x!==null&&(Ue=x(Ue)),Ue===null||b!==null&&!b(Ue)||te.add(Ue))}}return Nt.free(se),Nt.free(ce),te},it.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=cn();for(var E=cn(),te=0;te<b;te++){var ne=x[te];if(ne.vw=te,ne instanceof Hn){if(ne.fd===!1)continue}else if(ne instanceof hi&&ne.adornedPart!==null)continue;var se=ne.actualBounds;ne.isVisible()&&Bi(se,y)?(ne.Fd(!0),a.push(ne)):(ne.Fd(!1),ne.adornments!==null&&0<ne.adornments.count&&E.push(ne))}for(y=0;y<a.length;y++)for(x=a[y],F0(x),x=x.adornments;x.next();)b=x.value,b.measure(1/0,1/0),b.arrange(),b.Fd(!0);for(y=0;y<E.length;y++)F0(E[y]);Pn(a),Pn(E)}}};function du(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}it.gc=function(a,y,x){if(this.visible&&this.pb!==0&&(x===void 0&&(x=!0),x||!this.isTemporary)){x=this.Pa.s;var b=x.length;if(b!==0){if(a.isTemporary)for(var E=0;E<b;E++)x[E].Gj();E=du(this,a);var te=this.Zq;te.length=0;for(var ne=y.scale,se=wn.alloc(),ce=0;ce<b;ce++)this.Oj(a,x[ce],y,te,ne,se,!0);if(wn.free(se),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=E}}};function Kg(a,y,x,b,E){if(a.visible&&a.pb!==0&&(E||!a.isTemporary)){E=a.Pa.s;var te=E.length;if(te!==0){var ne=du(a,y),se=a.Zq;se.length=0;for(var ce=x.scale,ge=wn.alloc(),xe=0;xe<te;xe++){var Ae=E[xe];b.contains(Ae)&&a.Oj(y,Ae,x,se,ce,ge,!1)}wn.free(ge),y.globalAlpha=ne}}}it.Oj=function(a,y,x,b,E,te,ne){if(ne&&!_c(y))a.Hs(y);else{if(b!==null&&y instanceof Hn&&(y.isOrthogonal&&b.push(y),y.fd===!1)){a.Hs(y);return}for(ne=!1,b=y.containingGroup;b!==null;)ne?b.tb!==null&&te.Ex(b.tb):b.tb!==null&&(ne=!0,te.assign(b.tb)),b=b.containingGroup;var se=y.actualBounds;if(b=!1,ne&&y.isVisible()){if(!te.Yc(se)){a.Hs(y);return}b=!te.Re(se)}b&&(a.save(),a instanceof rs?a.bk=te.copy():(a.beginPath(),a.rect(te.x,te.y,te.width,te.height),a.clip())),se.width*E>x.Oq||se.height*E>x.Oq?y.gc(a,x):(E=y.actualBounds,te=y.naturalBounds,E.width===0||E.height===0||isNaN(E.x)||isNaN(E.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(to(y,a,y.areaBackground,!0,!0,te,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(to(y,a,"rgba(0,0,0,0.3)",!0,!1,te,E),a.fillRect(E.x,E.y,E.width,E.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),to(y,a,y.background,!0,!1,te,E),a.fillRect(0,0,te.width/2,te.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),b&&(a.restore(),a.Vc(!0))}},it.g=function(a,y,x,b,E){var te=this.diagram;te!==null&&te.cb(Zi,a,this,y,x,b,E)},it.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&aa(y),a>=b.count)a=b.count;else if(b.M(a)===y)return-1;return b.Gb(a,y),y.Vo(x),b=this.diagram,b!==null&&(x?b.N():b.oi(y)),Qd(this,a,y),a},it.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);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(x),b.mb(a),b=this.diagram,b!==null&&(x?b.N():b.pc(y)),y.Ig=null,aa(y),a};function Qd(a,y,x){if(y=Vg(a,y,x),x instanceof Ir&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,E=a.Pa.s,te=E.length,ne=0;ne<te;ne++){var se=E[ne];if(se===x&&(y=ne,0<=b)||0>b&&se.containingGroup===x&&(b=ne,0<=y))break}!(0>b)&&b<y&&(E=a.Pa,E.mb(y),E.Gb(b,x))}y=x.containingGroup,y!==null&&Qd(a,-1,y)}x.svg!==null&&x.svg.remove()}function Vg(a,y,x){var b=x.zOrder;if(isNaN(b))return y;a=a.Pa;var E=a.count;if(1>=E)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var te=y-1,ne=NaN;0<=te&&(ne=a.M(te).zOrder,!!isNaN(ne));)te--;for(var se=y+1,ce=NaN;se<E&&(ce=a.M(se).zOrder,!!isNaN(ce));)se++;if(!isNaN(ne)&&ne>b)for(;;){if(te===-1||ne<=b){if(te++,te===y)break;return a.mb(y),a.Gb(te,x),te}for(ne=NaN;0<=--te&&(ne=a.M(te).zOrder,isNaN(ne)););}else if(!isNaN(ce)&&ce<b)for(;;){if(se===E||ce>=b){if(se--,se===y)break;return a.mb(y),a.Gb(se,x),se}for(ce=NaN;++se<E&&(ce=a.M(se).zOrder,isNaN(ce)););}return y}Lt.Object.defineProperties(Wo.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 x=this.diagram;if(x!==null)for(y===""&&zt("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&zt("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)&&Fn(a,"0 <= value <= 1",Wo,"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))}}}),Wo.prototype.findObjectsNear=Wo.prototype.og,Wo.prototype.findObjectsIn=Wo.prototype.Cf,Wo.prototype.findObjectsAt=Wo.prototype.ji,Wo.prototype.findObjectAt=Wo.prototype.ic,Wo.className="Layer";function sn(a,y){if(am||(ia(),am=!0),zr(this),zl=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,eo){var x=this,b=function(){x.removeEventListener(Rt.document,"DOMContentLoaded",b,!1),x.setRTL()};Rt.document.body!==null?this.setRTL():x.addEventListener(Rt.document,"DOMContentLoaded",b,!1)}this.ol=null,cf.add("Model",bi);var E=this;return this.Hb=function(te){var ne=E.partManager;if(te.model===ne.diagram.model&&ne.diagram.aa){ne.diagram.aa=!1;try{var se=te.change;te.modelChange===""&&se===Zi&&ne.updateDataBindings(te.object,te.propertyName)}finally{ne.diagram.aa=!0}}},this.Oc=function(te){E.partManager.doModelChanged(te)},this.hu=this.ku=null,Zg(this),this.model=hy(),this.Wg=!0,Xg(this),this.layout=new Ui,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 sm,a!==void 0&&(typeof a=="string"||Rt.Element&&a instanceof Element?hp(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var Oc,zl;function Zg(a){a.Yd=new ns,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new Tn,a.pj=new qn,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Nt(NaN,NaN).freeze(),a.du=new Nt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Nt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Wr,a.zu=new Nt(NaN,NaN).freeze(),a.ut=new wn(NaN,NaN,NaN,NaN).freeze(),a.rj=new mr(0,0,0,0).freeze(),a.sj=Hu,a.nu=!1,a.Zt=null,a.fu=null,a.yh=ha,a.zk=wi,a.Fg=ha,a.pq=wi,a.yt=Ao,a.Bt=Ao,a.Fc=!0,a.pn=!1,a.De=new Ln,a.Eh=new qn,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new mr(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new ua,a.bq.diagram=a,a.Qg=new ua,a.Qg.diagram=a,a.cj=new ua,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,n0(a),a.ai=new Ln,a.Ht=!0,a.uu=Uu,a.pw=!1,a.wu=ud,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 qn,a.Xn=new Tn,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 mr(5).freeze(),a.Hw=new Ln().freeze(),a.Nt=999999999,a.nw=new Ln().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 Ln,a.ow=new Ln,a.Xh=null,a.aw=new Wn(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Nt,bounds:new wn,Py:new Wn,bA:new Wn,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new wn(NaN,NaN,NaN,NaN).freeze(),a.wo=new Wn(NaN,NaN).freeze(),a.Sp=new wn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new qn;var y=new Xn,x=new ji;x.bind(new ho("text","",Dn)),y.add(x),a.ny=y,a.Lg.add("",y),y=new Xn,x=new ji,x.stroke="brown",x.bind(new ho("text","",Dn)),y.add(x),a.Lg.add("Comment",y),y=new Xn,y.selectable=!1,y.avoidable=!1,x=new _r,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new Wn(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new qn,y=new Ir,y.selectionObjectName="GROUPPANEL",y.type=Rn.Vertical,x=new ji,x.font="bold 12pt sans-serif",x.bind(new ho("text","",Dn)),y.add(x),x=new Rn(Rn.Auto),x.name="GROUPPANEL";var b=new _r;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new La,b.padding=new mr(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new qn,y=new Hn,x=new _r,x.isPanelMain=!0,y.add(x),x=new _r,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new Hn,x=new _r,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new hi,y.type=Rn.Auto,x=new _r,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new La,x.margin=new mr(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new hi,y.type=Rn.Link,x=new _r,x.isPanelMain=!0,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),a.Kt=y,a.fe=null,a.mq=!1,a.Ck=null,a.partManager=new bi,a.toolManager=new Wi,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new he,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=$g(),a.eq=null,a.fq=Oi,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 Nt,a.zy=500,a.wp=new Nt,a.wq=!1}sn.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),wh=null,Dc="",cp(this,!1),this.Xn.clear(),Pf(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function cp(a,y){a.animationManager.Cc(!0),a.Hw=new Ln().freeze(),a.nw=new Ln().freeze();var x=a.skipsUndoManager,b=a.cc!==null&&a.cc!==void 0;b&&(a.skipsUndoManager=!0);var E=null;a.fe!==null&&(E=a.fe.part,E!==null&&a.remove(E));var te=[],ne=a.Wa.length;if(y){for(y=0;y<ne;y++)for(var se=a.Wa.s[y].parts;se.next();){var ce=se.value;ce!==E&&ce.data===null&&te.push(ce)}for(y=0;y<te.length;y++)a.remove(te[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(),Pf(),a.Og.clear(),Or=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),te}function $g(){return null}sn.prototype.reset=function(){this.clear(),this.vb=!0,Zg(this),Ll(this),this.Wg=!0,Xg(this),this.layout=new Ui,this.Wg=!1,this.model=hy(),this.model.undoManager=new Ji,this.vb=this.rn=!1,this.N()},sn.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Rt.document.body);var y=On("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 x="reverse";0<y.scrollLeft?x="default":(y.scrollLeft=1,y.scrollLeft===0&&(x="negative")),a.removeChild(y),this.bu=x},sn.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Rt.document.body);var y=0;if(eo){var x=om;y=Oc,x===null&&(x=om=On("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=Oc=On("div"),y.style.position="absolute",y.style.visibility="hidden",y.style.width="200px",y.style.height="150px",y.style.boxSizing="content-box",y.appendChild(x)),y.style.overflow="hidden",a.appendChild(y);var b=x.offsetWidth;y.style.overflow="scroll",x=x.offsetWidth,b===x&&(x=y.clientWidth),a.removeChild(y),y=b-x,y!==0||wr||(y=11)}this.Db=y,this.Gw=!0},sn.prototype.qb=function(a){a.classType===sn&&(this.autoScale=a)},sn.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 x=this.Wa.iterator;x.next();)y+=`
|
|
|
`+x.value.toString(a-1);return y};function hp(a,y){if(eo){if(y!=null||zt("Diagram setup requires an argument DIV."),a.Ka!==null&&zt("Diagram has already completed setup."),typeof y=="string"?a.Ka=Rt.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:zt("No DIV or DIV id supplied: "+y),a.Ka===null&&zt("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&zt("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Rt.ResizeObserver){var x=yn(function(){a.$b()},250);a.ol=new Rt.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Rt.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=Rt.go;var E=new Us(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",Rt.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),E.style.zIndex="2",E.style.userSelect="none",E.style.MozUserSelect="none",E.style.touchAction="none",E.style.letterSpacing="normal !important",E.style.wordSpacing="normal !important"),a.ta=E,a.ib=E.context,b=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Sp(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new Us(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,eo){E=On("div");var te=On("div");E.style.position="absolute",E.style.overflow="auto",E.style.width=a.Aa+"px",E.style.height=a.ya+"px",E.style.zIndex="1",te.style.position="absolute",te.style.width="1px",te.style.height="1px",a.Ka.appendChild(E),E.appendChild(te),E.onscroll=Jg,E.addEventListener("pointerdown",Qg),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=te}a.hk=yn(function(){a.Yh=null,a.N()},300),a.Ov=yn(function(){dp(a)},250),a.preventDefault=function(ne){return ne.preventDefault(),!1},a.$j=function(ne){if(a.isEnabled){var se=Ps(a,ne,!0);se.bubbles=!0;var ce=0,ge=0;se.delta=0,ne.deltaX!==void 0?(ne.deltaX!==0&&(ce=0<ne.deltaX?1:-1),ne.deltaY!==0&&(ge=0<ne.deltaY?1:-1),se.delta=Math.abs(ne.deltaX)>Math.abs(ne.deltaY)?-ce:-ge):ne.wheelDeltaX!==void 0?(ne.wheelDeltaX!==0&&(ce=0<ne.wheelDeltaX?-1:1),ne.wheelDeltaY!==0&&(ge=0<ne.wheelDeltaY?-1:1),se.delta=Math.abs(ne.wheelDeltaX)>Math.abs(ne.wheelDeltaY)?-ce:-ge):ne.wheelDelta!==void 0&&ne.wheelDelta!==0&&(se.delta=0<ne.wheelDelta?1:-1),a.doMouseWheel(),el(se,ne)}},a.aA=function(ne){a.isEnabled&&(a.Vk=!1,Ps(a,ne,!0),ne=a.currentTool,ne.cancelWaitAfter(),ne.standardMouseOver())},a.ui=function(ne){if(a.isEnabled){a.Vk=!0;var se=a.Yt;se[ne.pointerId]===void 0&&(se[ne.pointerId]=ne),se=a.oj;var ce=!1;if(se[0]===null||se[0].pointerId!==ne.pointerId&&se[0].pointerType===ne.pointerType)if(se[1]!==null&&se[1].pointerId===ne.pointerId)se[1]=ne,ce=!0;else if(se[0]===null)se[0]=ne;else if(se[1]===null)se[1]=ne,ce=!0;else{ne.preventDefault();return}else se[0]=ne;(se=ne.pointerType==="touch"||ne.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var ge=ce;ce=mp(a,ne,!0,!1,!0,ge),mh(a,ne,ce),ce.targetDiagram=gp(ne,ne.target),ce.targetObject=null,ge||ce.clone(a.bq),ge=a.uw,se=se?25:10,ne.timeStamp-a.tw<a.zy&&!(Math.abs(ge.x-ne.screenX)>se||Math.abs(ge.y-ne.screenY)>se)?a.yq++:a.yq=1,ce.clickCount=a.yq,a.tw=ne.timeStamp,a.uw.sg(ne.screenX,ne.screenY),a.doMouseDown(),ne.button===1?ne.preventDefault():el(ce,ne)}},a.dk=function(ne){if(a.isEnabled){a.Vk=!0;var se=a.oj;if(se[0]===null||se[0].pointerId!==ne.pointerId&&se[0].pointerType===ne.pointerType){if(se[1]!==null&&se[1].pointerId===ne.pointerId){se[1]=ne;return}if(se[0]===null)se[0]=ne;else return}else se[0]=ne;if(se[0].pointerId===ne.pointerId){se=mp(a,ne,!1,!1,!1,se[1]!==null);var ce=Rt.document.elementFromPoint(ne.clientX,ne.clientY)||null;ce!==null&&ce.shadowRoot!==void 0&&ce.shadowRoot!==null&&(ce=ce.shadowRoot.elementFromPoint(ne.clientX,ne.clientY));var ge=a,xe=ne;ce&&ce.H&&(xe=ne,ge=ce.H),se.targetDiagram=ge,mh(a,xe,se),se.targetObject=null,a.doMouseMove(),el(se,ne)}}},a.fk=function(ne){if(a.isEnabled){a.Vk=!0;var se=ne.pointerType==="touch"||ne.pointerType==="pen",ce=a.Yt;if(se&&a.qu)delete ce[ne.pointerId],ne.preventDefault();else if(ce=a.oj,ce[0]===null||ce[0].pointerId!==ne.pointerId&&ce[0].pointerType===ne.pointerType)ce[1]!==null&&ce[1].pointerId===ne.pointerId&&(ce[1]=null);else{ce[0]=null,ce=mp(a,ne,!1,!0,!0,!1);var ge=Rt.document.elementFromPoint(ne.clientX,ne.clientY)||null;ge!==null&&ge.shadowRoot!==void 0&&ge.shadowRoot!==null&&(ge=ge.shadowRoot.elementFromPoint(ne.clientX,ne.clientY)),ge!==null&&ge.H instanceof sn&&ge.H!==a&&mh(ge.H,ne,ce),ge===null&&(ge=ne.target),mh(a,ne,ce),ce.clickCount=a.yq,ce.targetDiagram=gp(ne,ge),ce.targetObject=null,a.doMouseUp(),el(ce,ne),se&&(a.wq=!1)}}},a.ek=function(ne){if(a.isEnabled){a.Vk=!1;var se=a.Yt;se[ne.pointerId]&&delete se[ne.pointerId],se=a.oj,se[0]!==null&&se[0].pointerId===ne.pointerId&&(se[0]=null),se[1]!==null&&se[1].pointerId===ne.pointerId&&(se[1]=null),ne.pointerType!=="touch"&&ne.pointerType!=="pen"&&(ne=a.currentTool,ne.cancelWaitAfter(),ne.standardMouseOver())}},a.ck=function(ne){var se=a.oj;se[0]!==null&&se[0].pointerId===ne.pointerId?(se[0]=null,a.wq=!1):se[1]!==null&&se[1].pointerId===ne.pointerId&&(se[1]=null)},a.Vp=b.Z["d"+dd[1]+dd[2]+"wI"+Ph.slice(1,5)]["b"+jx.slice(1,y)](b.Z,hd,y,y),b.Vc(!0),t0(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}sn.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},sn.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function t0(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(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(Rt,"resize",a.Ov,!1)}function Fa(a){30<a.Sq&&(a.Yh=1)}function id(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Qn&&Qn.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}sn.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Rt.devicePixelRatio||1},sn.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},sn.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},sn.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},sn.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},sn.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},sn.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},sn.prototype.doFocus=function(){this.focus()},sn.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Rt.scrollX||Rt.pageXOffset,y=Rt.scrollY||Rt.pageYOffset;this.ta.focus(),Rt.scrollTo(a,y)}},sn.prototype.Oy=function(){this.H.R("GainedFocus")},sn.prototype.Ny=function(){this.H.R("LostFocus")};function dp(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var x=a.gf?a.Db:0,b=a.Be?a.Db:0,E=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==E&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+x||y.clientHeight!==a.ya+b)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===ha&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function Xg(a){var y=new Wo;y.name="Background",a.Al(y),y=new Wo,y.name="",a.Al(y),y=new Wo,y.name="Foreground",a.Al(y),y=new Wo,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Wo,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Wo,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function Yg(a){var y=new Rn(Rn.Grid);y.name="GRID";var x=new _r;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new _r,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new _r,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new _r,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new _r,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new _r,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new pr,x.add(y),x.layerName="Grid",x.zOrder=0,x.isInDocumentBounds=!1,x.isAnimated=!1,x.pickable=!1,x.locationObjectName="GRID",a.add(x),a.partManager.parts.remove(x),y.visible=!1,y}function Jg(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Sh(this.H)}function Qg(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Sh(this.H)}sn.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,x=this.hu;this.qr=!0;var b=this.documentBounds,E=this.viewportBounds,te=this.rj,ne=b.x-te.left,se=b.y-te.top,ce=b.width+te.left+te.right,ge=b.height+te.top+te.bottom,xe=b.right+te.right;te=b.bottom+te.bottom;var Ae=E.x;b=E.y;var Ue=E.width,Je=E.height,rt=E.right,ht=E.bottom;E=this.scale;var Ft=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Ft=Ft+a.scrollWidth-a.clientWidth;break;case"reverse":Ft=a.scrollWidth-Ft-a.clientWidth}var Ot=Ft;Ue<ce||Je<ge?(Ft=Nt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Ot&&(Ft.x=Ot/E+ne,this.ju=Ot),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Ft.y=a.scrollTop/E+se,this.lu=a.scrollTop),this.position=Ft,Nt.free(Ft),this.Ee=this.qr=!1):(Ft=Nt.alloc(),a.uy&&this.allowHorizontalScroll&&(ne<Ae&&(this.position=Ft.h(Ot+ne,this.position.y)),xe>rt&&(this.position=Ft.h(-(y.scrollWidth-this.Aa)+Ot-this.Aa/E+xe,this.position.y))),a.vy&&this.allowVerticalScroll&&(se<b&&(this.position=Ft.h(this.position.x,a.scrollTop+se)),te>ht&&(this.position=Ft.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+te))),Nt.free(Ft),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,xe=b.right,rt=E.right,te=b.bottom,ht=E.bottom,ne=b.x,Ae=E.x,se=b.y,b=E.y,Ue>=ce&&ne>=Ae&&xe<=rt&&(x.style.width="1px"),Je>=ge&&se>=b&&te<=ht&&(x.style.height="1px"))}},sn.prototype.computeBounds=function(a){return a===void 0&&(a=new wn),ta(this),fp(this,a)};function fp(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,b=a.Wa.s,E=b.length,te=0;te<E;te++){var ne=b[te];if(ne.visible&&ne.isInDocumentBounds){ne=ne.Pa.s;for(var se=ne.length,ce=0;ce<se;ce++){var ge=ne[ce];ge.isInDocumentBounds&&ge.isVisible()&&(ge=ge.actualBounds,ge.w()&&(x?(x=!1,y.assign(ge)):y.ed(ge)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}sn.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(Sn(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof Hn||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds))}else for(a=a.iterator;a.next();)b=a.value,!y&&b instanceof Hn||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new wn(NaN,NaN,0,0):x};function Gs(a,y){if((y||a.hf)&&!a.vb&&a.ta!==null&&a.documentBounds.w()){if(a.vb=!0,y){var x=a.initialPosition;if(x.w()){a.vb=!1,a.position=x;return}x=Nt.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=wn.allocAt(0,0,b.width,b.height);var E=Nt.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,wn.free(b),Nt.free(E),Nt.free(x)}x=a.yh,y&&a.Fg!==ha&&(x=a.Fg);var te=x!==ha?gh(a,x):a.scale;x=a.pa.x,b=a.pa.y,E=a.Aa/te;var ne=a.ya/te,se=a.zk,ce=a.pq;y&&!se.sb()&&(ce.sb()||ce.Xb())&&(se=ce.Xb()?ui:ce),pp(a,a.documentBounds,E,ne,se,y),y=a.scale,a.scale=te,a.vb=!1,te=a.viewportBounds,qt.B(te.x,x)&&qt.B(te.y,b)&&qt.B(te.width,E)&&qt.B(te.height,ne)||a.onViewportBoundsChanged(new wn(x,b,E,ne),te,y,!1)}}function gh(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var b=a.documentBounds;if(!b.w())return x;var E=b.width;b=b.height;var te=a.Aa+(a.gf?a.Db:0),ne=a.ya+(a.Be?a.Db:0),se=te/E,ce=ne/b;return y===ds?(y=Math.min(ce,se),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Fc?(y=ce>se?(ne-a.Db)/b:(te-a.Db)/E,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}sn.prototype.zoomToFit=function(){var a=this.sj;this.sj=Hu,this.scale=gh(this,ds),a!==Hu&&(Gs(this,!1),pp(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},it=sn.prototype,it.BA=function(a,y){y===void 0&&(y=ds);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===ds||y===Fc)if(isNaN(x))E=this.viewportBounds.height*this.scale/b;else if(isNaN(b))E=this.viewportBounds.width*this.scale/x;else{E=this.Aa;var te=this.ya;E=y===Fc?te/b>E/x?(te-(this.Be?this.Db:0))/b:(E-(this.gf?this.Db:0))/x:Math.min(te/b,E/x)}this.scale=E,this.position=new Nt(a.x,a.y)}},it.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new Nt(x.x+(a.x*x.width+a.offsetX)-(y.x*b.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*b.height-y.offsetY))},it.zz=function(a){if(a instanceof Jt){this.eq=a;var y=Nt.alloc();this.fq=this.op(a.ga(Ao,y)),Nt.free(y)}else this.eq=null,this.fq=Oi};function pp(a,y,x,b,E,te){var ne=Nt.allocAt(a.pa.x,a.pa.y),se=ne.x,ce=ne.y;if(a.eq!==null){var ge=Nt.alloc();ge=a.eq.ga(Ao,ge),se=ge.x-a.fq.x/a.scale,ce=ge.y-a.fq.y/a.scale,E=io,Nt.free(ge)}(te||a.scrollMode===Hu)&&(E.sb()&&(x>y.width&&(se=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(ce=y.y+(E.y*y.height+E.offsetY)-(E.y*b-E.offsetY))),E=a.rj,te=x-y.width,x<y.width+E.left+E.right?(se=Math.min(se+x/2,y.right+Math.max(te,E.right)-x/2),se=Math.max(se,y.left-Math.max(te,E.left)+x/2),se-=x/2):se>y.left?se=y.left:se<y.right-x&&(se=y.right-x),x=b-y.height,b<y.height+E.top+E.bottom?(ce=Math.min(ce+b/2,y.bottom+Math.max(x,E.bottom)-b/2),ce=Math.max(ce,y.top-Math.max(x,E.top)+b/2),ce-=b/2):ce>y.top?ce=y.top:ce<y.bottom-b&&(ce=y.bottom-b)),ne.x=isFinite(se)?se:-a.yb.left,ne.y=isFinite(ce)?ce:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,ne),ne.x=y.x,ne.y=y.y),Hg(a.Yd,a.pa,ne),a.pa.h(ne.x,ne.y),Ll(a),Nt.free(ne)}it.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Gl(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof pr)return a}else if(a=Gl(this,a,function(x){return x.part}),a instanceof pr)return a;return null},it.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),ta(this);for(var b=this.Wa.iteratorBackwards;b.next();){var E=b.value;if(E.visible&&(E=E.ic(a,y,x),E!==null))return E}return null};function Gl(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),ta(a),a=a.Wa.iteratorBackwards;a.next();){var E=a.value;if(E.visible&&!E.isTemporary&&(E=E.ic(y,x,b),E!==null))return E}return null}it.lz=function(a,y,x){return y===void 0&&(y=!0),od(this,a,function(b){return b.part},y?function(b){return b instanceof pr&&b.canSelect()}:null,x)};function od(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof Tn||E instanceof Ln||(E=new Ln),ta(a),a=a.Wa.iteratorBackwards;a.next();){var te=a.value;te.visible&&!te.isTemporary&&te.ji(y,x,b,E)}return E}it.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Tn||b instanceof Ln||(b=new Ln),ta(this);for(var E=this.Wa.iteratorBackwards;E.next();){var te=E.value;te.visible&&te.ji(a,y,x,b)}return b},it.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),qd(this,a,function(E){return E instanceof pr&&(!x||E.canSelect())},y,b)},it.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Tn||E instanceof Ln||(E=new Ln),ta(this);for(var te=this.Wa.iteratorBackwards;te.next();){var ne=te.value;ne.visible&&ne.Cf(a,y,x,b,E)}return E},it.Nu=function(a,y,x,b,E,te){var ne=new Ln;ta(this);for(var se=this.Wa.iteratorBackwards;se.next();){var ce=se.value;ce.visible&&ce.Nu(a,y,x,b,ne,E,te)}return ne};function qd(a,y,x,b,E){var te=null;for(te===void 0&&(te=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Tn||E instanceof Ln||(E=new Ln),ta(a),a=a.Wa.iteratorBackwards;a.next();){var ne=a.value;ne.visible&&!ne.isTemporary&&ne.Cf(y,te,x,b,E)}return E}it.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),ad(this,a,y,function(te){return te instanceof pr&&(!b||te.canSelect())},x,E)},it.og=function(a,y,x,b,E,te){x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Tn||E instanceof Ln)&&(te=E),E=!0),te instanceof Tn||te instanceof Ln||(te=new Ln),ta(this);for(var ne=this.Wa.iteratorBackwards;ne.next();){var se=ne.value;se.visible&&se.og(a,y,x,b,E,te)}return te};function ad(a,y,x,b,E,te){var ne=null;for(ne===void 0&&(ne=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Tn||E instanceof Ln)&&(te=E),E=!0),te instanceof Tn||te instanceof Ln||(te=new Ln),ta(a),a=a.Wa.iteratorBackwards;a.next();){var se=a.value;se.visible&&!se.isTemporary&&se.og(y,x,ne,b,E,te)}return te}sn.prototype.acceptEvent=function(a){return Ps(this,a,a instanceof MouseEvent)};function Ps(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?mh(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),wr&&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=gp(y,y.target),b.targetObject=null,b}function gp(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 mp(a,y,x,b,E,te){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,wr&&y.button===0&&y.ctrlKey&&(ne.button=2),ne.down=x,ne.up=b,ne.handled=!1,ne.bubbles=E,ne.isMultiTouch=te,ne}function el(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}sn.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=Ps(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.down=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del";break;case 48:x.key="0";break;case 187:case 61:case 107:x.key="Add";break;case 189:case 173:case 109:x.key="Subtract";break;case 27:x.key="Esc"}return y.doKeyDown(),el(x,a)},sn.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Ps(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.up=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del"}return y.doKeyUp(),el(x,a)},sn.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Ps(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),el(x,a)},sn.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Ps(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),el(x,a)},sn.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Nt(0,0);var x=y.getBoundingClientRect();return y=a.clientX-this.Aa/x.width*x.left,a=a.clientY-this.ya/x.height*x.top,this.Ab!==null?Vr(new Nt(y,a),this.Ab):new Nt(y,a)};function mh(a,y,x){var b=a.ta,E=a.Aa,te=a.ya,ne=0,se=0;b!==null&&(b=b.getBoundingClientRect(),ne=y.clientX-E/b.width*b.left,se=y.clientY-te/b.height*b.top),x.viewPoint.h(ne,se),a.Ab!==null?(y=Nt.allocAt(ne,se),a.Ab.Cd(y),x.documentPoint.assign(y),Nt.free(y)):x.documentPoint.h(ne,se)}function vp(a,y,x){if(a.oj[0]!==null){y=a.oj[y];var b=a.ta;b!==null&&(b=b.getBoundingClientRect(),x.h(y.clientX-a.Aa/b.width*b.left,y.clientY-a.ya/b.height*b.top))}}sn.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function qg(a){a.ld||ta(a),a.Va()}sn.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},it=sn.prototype,it.Pz=function(){return this.kg},it.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,Cs(this),this.hf=!1,this.du=new Nt(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&Mn(function(){b.ld=!1,_l(y,"Model"),a(b)},1)},it.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Rt.requestAnimationFrame(function(){y.kg&&y.bd()})}},it.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),Cs(this))};function Ac(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Sh(a)||(y&&ta(a),x&&Gs(a,!1))}function Cs(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,b=a.Xn;if(!x.isAnimating&&b.length!==0){for(var E=b.s,te=E.length,ne=0;ne<te;ne++){var se=E[ne];xo(se,!1),se.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(ce){ce.Nv()}),b.clear()),E=b=!1,x.defaultAnimation.isAnimating&&(E=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||dp(a),Ac(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Tl(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),ta(a),te=!1,(!a.hf||a.xh)&&(a.hf?Tp(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Tp(a,!1)),te=!0),a.Jk=!1,ta(a),a.ou||qg(a),Ac(a,!0,!1),ne=!1,te?(x=wn.alloc(),x.assign(a.viewportBounds),a.hf||(ne=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,yp(a)),a.R("LayoutCompleted"),Ac(a,!0,!1),wn.free(x)):x.Ok&&x.Qw&&(a.Fg!==ha?a.scale=gh(a,a.Fg):a.yh!==ha?a.scale=gh(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Gs(a,!0)),te&&ne&&a.eb("Initial Layout"),ta(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function yp(a){if(a.Fg!==ha)a.scale=gh(a,a.Fg);else if(a.yh!==ha)a.scale=gh(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Gs(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),Tl(a)}function ta(a){if(a.De.count!==0&&(a.ld||!a.animationManager.isTicking)){for(var y=0;23>y;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new Ln,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof Ir&&b.U&65536&&(b.U=b.U^65536)})}}it.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Ir||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Ir&&x.isVisible()&&sd(this,x);for(a.reset();a.next();)x=a.value,x instanceof Hn&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof hi&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function sd(a,y){for(var x=cn(),b=cn(),E=y.memberParts;E.next();){var te=E.value;te.isVisible()&&(te instanceof Ir?(ps(te)||Ma(te)||Rc(te))&&sd(a,te):te instanceof Hn?te.fromNode===y||te.toNode===y?b.push(te):x.push(te):(te.measure(1/0,1/0),te.arrange()))}for(a=x.length,E=0;E<a;E++)te=x[E],te.measure(1/0,1/0),te.arrange();for(Pn(x),y.measure(1/0,1/0),y.arrange(),a=b.length,y=0;y<a;y++)x=b[y],x.measure(1/0,1/0),x.arrange();Pn(b)}it.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},it.gc=function(a){if(this.Ka!==null){if(this.ta===null&&zt("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){yh(this);var x=this.Aa,b=this.ya;if(a.Gv.resize(x,b,x,b),x=this.Wa.s,b=x.length,this.Fd(x,b,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var E=this.Ca,te=Math.round(y.x*E)/E,ne=Math.round(y.y*E)/E,se=this.Ab;for(se.reset(),E!==1&&se.scale(E),y.x===0&&y.y===0||se.translate(-te,-ne),a.ti=null,Xy(a,se.m11,se.m12,se.m21,se.m22,se.dx,se.dy),this.pb!==1&&(a.globalAlpha=this.pb),zu(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++)x[y].gc(a,this);a=!1,this.Yf?Ch(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(Wr.prototype.Cd=Wr.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(te=this.animationManager,!te.zb&&(!te.isAnimating||te.isTicking)&&(x=new Date,yh(this),this.Ka.style.opacity!=="0")){if(b=a!==this.ib,y=this.Wa.s,E=y.length,this.Fd(y,E,this,this.viewportBounds),b)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!te.isAnimating)break e;te=this.Ab,te.reset(),ne=this.Mb,se=this.pa;var ce=this.Ca,ge=Math.round(se.x*ce)/ce,xe=Math.round(se.y*ce)/ce;for(ce!==1&&te.scale(ce),se.x===0&&se.y===0||te.translate(-ge,-xe),a.setTransform(ne,0,0,ne,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),zu(this,a),se=0;se<E;se++)a.setTransform(ne,0,0,ne,0,0),a.transform(te.m11,te.m12,te.m21,te.m22,te.dx,te.dy),a.yc(),y[se].gc(a,this);if(y=!1,this.Yf?Ch(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(Wr.prototype.Cd=Wr.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=Qn&&Qn.nx,x=this.zw,b||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,E=y=0;E<x.length;E++)y+=x[E];this.Sq=y/x.length}if(this.pb!==1&&(a.globalAlpha=1),b)for(a.setTransform(1,0,0,1,0,0),b=0;b<x.length;b++)a.fillText(x[b].toString(),20,150+ +(20*b))}}};function ef(a,y,x,b,E,te,ne,se,ce,ge){if(a.Ka!==null){a.ta===null&&zt("No canvas specified"),ne===void 0&&(ne=null),se===void 0&&(se=null),ce===void 0&&(ce=!1),ge===void 0&&(ge=!1),yh(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var xe=a.Ca;a.Ca=E;var Ae=a.Wa.s,Ue=Ae.length;try{var Je=new wn(te.x,te.y,b.width/E,b.height/E),rt=Je.copy();rt.Co(x),Tl(a,rt),ta(a),a.Fd(Ae,Ue,a,Je),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),se!==null&&se!==""&&(y.fillStyle=se,y.ox(0,0,b.width,b.height));var ht=a.Mb;y.scale(ht,ht);var Ft=Wr.alloc();Ft.reset(),Ft.translate(x.left,x.top),Ft.scale(E),te.x===0&&te.y===0||Ft.translate(-te.x,-te.y),y.setTransform(Ft.m11,Ft.m12,Ft.m21,Ft.m22,Ft.dx,Ft.dy),y.yc(),y instanceof rs&&Xy(y,Ft.m11,Ft.m12,Ft.m21,Ft.m22,Ft.dx,Ft.dy),Wr.free(Ft),zu(a,y),y.globalAlpha=a.pb;var Ot=a.Qj("Grid");if(ne){var _t=new Ln,Gt=ne.iterator;for(Gt.reset();Gt.next();){var Kt=Gt.value;Kt instanceof pr&&(ge||Kt.layer!==Ot)&&(Kt.Gj(),_t.add(Kt))}for(ge=0;ge<Ue;ge++)Kg(Ae[ge],y,a,_t,ce);_t.each(function(on){return on.Gj()})}else for(_t=0;_t<Ue;_t++){var Yt=Ae[_t];Yt===Ot?ge&&Yt.gc(y,a,!0):Yt.gc(y,a,ce)}a.$i=!1,a.Yf&&Ch(a.Yf,a)&&a.Vp()}finally{a.Ca=xe,a.ib.Vc(!0),a.vd=!0,a.Fd(Ae,Ue,a,a.viewportBounds),Tl(a),a.ib instanceof rs&&(a.ib.Nj.PA(),a.redraw())}}}it.Gf=function(a){return this.Rg[a]},it.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},it.Tx=function(){this.Rg=new hr,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(wr||fr),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function zu(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}it.Ql=function(a){return this.on[a]},it.sA=function(a,y){this.on[a]=y},it.Sx=function(){this.on=new hr,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},it.set=function(a){return Object.assign(this,a),this},it.Du=function(a){return this.nm(a)},it.nm=function(a){return vh(this,a),this};function vh(a,y){var x=a instanceof Rn,b=a instanceof sn,E;for(E in y){E===""&&zt("Setting properties requires non-empty property names");var te=a,ne=E;if(x||b){var se=E.indexOf(".");if(0<se){var ce=E.substring(0,se);x?te=a.fb(ce):(te=a[ce],te==null&&(te=a.toolManager[ce])),gn(te)?ne=E.substr(se+1):zt("Unable to find object named: "+ce+" in "+a.toString()+" when trying to set property: "+E)}}if(ne[0]!=="_"&&!In(te,ne))if(b&&ne==="ModelChanged"){a.Yw(y[ne]);continue}else if(b&&ne==="Changed"){a.Pe(y[ne]);continue}else if(b&&In(a.toolManager,ne))te=a.toolManager;else if(b&&nm(a,ne)){a.Bj(ne,y[ne]);continue}else if(a instanceof or&&ne==="Changed"){a.Pe(y[ne]);continue}else zt('Trying to set undefined property "'+ne+'" on object: '+te.toString());te[ne]=y[E],ne[0]==="_"&&te instanceof Jt&&te.Vw(ne)}}it.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new qn,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},it.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")},sn.prototype.invalidateViewport=function(a,y){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var x=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==cd&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var b=this.scale,E=Math.max(a.y,y.y),te=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,te-E)*b){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(b=wn.alloc(),Mp(this,this.computeBounds(b)),wn.free(b)),b=this.ta,b===null||b instanceof kl)))){var ne=this.Mb;E=this.Aa*ne;var se=this.ya*ne,ce=this.scale*ne;te=Math.round(Math.round(y.x*ce)-Math.round(a.x*ce)),y=Math.round(Math.round(y.y*ce)-Math.round(a.y*ce)),ce=this.jw,a=this.oy,ce.width!==E&&(ce.width=E),ce.height!==se&&(ce.height=se),a.clearRect(0,0,E,se),ce=190*ne;var ge=70*ne,xe=Math.max(te,0),Ae=Math.max(y,0),Ue=Math.floor(E-xe),Je=Math.floor(se-Ae);a.drawImage(b.Oa,xe,Ae,Ue,Je,0,0,Ue,Je),Ch(this.Yf,this)&&a.clearRect(0,0,ce,ge),b=cn(),a=cn(),Je=Math.abs(te),Ue=Math.abs(y);var rt=xe===0?0:E-Je;xe=Nt.allocAt(rt,0),Je=Nt.allocAt(Je+rt,se),a.push(new wn(Math.min(xe.x,Je.x),Math.min(xe.y,Je.y),Math.abs(xe.x-Je.x),Math.abs(xe.y-Je.y)));var ht=this.Ab;if(ht.reset(),ht.scale(ne,ne),this.Ca!==1&&ht.scale(this.Ca),ne=this.pa,(ne.x!==0||ne.y!==0)&&isFinite(ne.x)&&isFinite(ne.y)&&ht.translate(-ne.x,-ne.y),Vr(xe,ht),Vr(Je,ht),b.push(new wn(Math.min(xe.x,Je.x),Math.min(xe.y,Je.y),Math.abs(xe.x-Je.x),Math.abs(xe.y-Je.y))),rt=Ae===0?0:se-Ue,xe.h(0,rt),Je.h(E,Ue+rt),a.push(new wn(Math.min(xe.x,Je.x),Math.min(xe.y,Je.y),Math.abs(xe.x-Je.x),Math.abs(xe.y-Je.y))),Vr(xe,ht),Vr(Je,ht),b.push(new wn(Math.min(xe.x,Je.x),Math.min(xe.y,Je.y),Math.abs(xe.x-Je.x),Math.abs(xe.y-Je.y))),Ch(this.Yf,this)&&(E=0<te?0:-te,se=0<y?0:-y,xe.h(E,se),Je.h(ce+E,ge+se),a.push(new wn(Math.min(xe.x,Je.x),Math.min(xe.y,Je.y),Math.abs(xe.x-Je.x),Math.abs(xe.y-Je.y))),Vr(xe,ht),Vr(Je,ht),b.push(new wn(Math.min(xe.x,Je.x),Math.min(xe.y,Je.y),Math.abs(xe.x-Je.x),Math.abs(xe.y-Je.y)))),Nt.free(xe),Nt.free(Je),Ac(this,!1,!0),this.Ka===null&&zt("No div specified"),this.ta===null&&zt("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(yh(this),se=this.Mb,E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,this.Aa*se,this.ya*se),E.drawImage(this.jw.Oa,0<te?0:Math.round(-te),0<y?0:Math.round(-y)),te=this.pa,ne=this.Ca,ce=Math.round(te.x*ne)/ne,ge=Math.round(te.y*ne)/ne,y=this.Ab,y.reset(),ne!==1&&y.scale(ne),te.x===0&&te.y===0||y.translate(-ce,-ge),E.save(),E.beginPath(),te=a.length,ne=0;ne<te;ne++)ce=a[ne],ce.width!==0&&ce.height!==0&&E.rect(Math.floor(ce.x),Math.floor(ce.y),Math.ceil(ce.width),Math.ceil(ce.height));for(E.clip(),E.setTransform(se,0,0,se,0,0),E.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),E.yc(),y=this.Wa.s,te=y.length,this.Fd(y,te,this,this.viewportBounds),zu(this,E),E.globalAlpha=this.pb,se=0;se<te;se++)if(ne=y[se],ce=b,ne.visible&&ne.pb!==0){ge=du(ne,E),Ae=ne.Zq,Ae.length=0,xe=this.scale,Ue=wn.alloc(),Je=ne.Pa.s,ht=Je.length,rt=ce.length;for(var Ft=0;Ft<ht;Ft++){var Ot=Je[Ft],_t=Ah(Ot,Ot.actualBounds);e:{for(var Gt=2/xe,Kt=4/xe,Yt=0;Yt<rt;Yt++){var on=ce[Yt];if(on.width!==0&&on.height!==0&&_t.Vu(on.x-Gt,on.y-Gt,on.width+Kt,on.height+Kt)){_t=!0;break e}}_t=!1}_t&&ne.Oj(E,Ot,this,Ae,xe,Ue,!0)}wn.free(Ue),E.globalAlpha=ge}E.restore(),E.Vc(!0),this.Yf&&Ch(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}Pn(b),Pn(a),this.ld=!1}}else this.bd();x&&(Fa(this),this.bd(),id(this,!0))}else x?(Fa(this),this.bd(),id(this,!0)):this.bd()}};function yh(a){a.pn!==!1&&(a.pn=!1,Sp(a,a.Aa,a.ya))}function Sp(a,y,x){Ll(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Sh(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,b=a.ya,E=a.Ka,te=!1,ne=a.gf?a.Db:0,se=a.Be?a.Db:0,ce=E.clientWidth||x+ne,ge=E.clientHeight||b+se,xe=a.viewportBounds;E=xe.x;var Ae=xe.y,Ue=xe.width,Je=xe.height;if((ce!==x+ne||ge!==b+se)&&(a.gf=!1,a.Be=!1,se=ne=0,a.Aa=ce,a.ya=ge,te=a.pn=!0,Ll(a)),!a.hf||!a.viewportBounds.w())return!0;var rt=a.ku,ht=a.hu;if(a.Ee=!1,!(te||a.gf||a.Be||a.mn||a.nn))return!0;var Ft=a.documentBounds,Ot=0,_t=0,Gt=0,Kt=0,Yt=xe.width,on=xe.height,Zn=a.rj;a.contentAlignment.sb()?(Ft.width>Yt&&(Ot=Zn.left,_t=Zn.right),Ft.height>on&&(Gt=Zn.top,Kt=Zn.bottom)):(Ot=Zn.left,_t=Zn.right,Gt=Zn.top,Kt=Zn.bottom);var nr=Ft.width+Ot+_t,Jn=Ft.height+Gt+Kt;Zn=a.scale;var Gn=nr>ce/Zn,kn=Jn>ge/Zn;if(!(te||a.gf||a.Be||Gn||kn))return!0;Ot=Ft.x-Ot,ce=xe.x,_t=Ft.right+_t,ge=xe.right+ne,Gt=Ft.y-Gt;var Nr=xe.y;Ft=Ft.bottom+Kt,xe=xe.bottom+se;var Er="1px";if(Kt="1px",a.scrollMode===Hu&&(Gn||kn)&&(Gn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Gn=1,Ot+1<ce&&(Gn=Math.max((ce-Ot)*Zn+a.Aa,Gn)),_t>ge+1&&(Gn=Math.max((_t-ge)*Zn+a.Aa,Gn)),Yt+ne+1<nr&&(Gn=Math.max((nr-Yt)*Zn+a.Aa,Gn)),Er=Gn.toString()+"px"),kn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Gn=1,Gt+1<Nr&&(Gn=Math.max((Nr-Gt)*Zn+a.ya,Gn)),Ft>xe+1&&(Gn=Math.max((Ft-xe)*Zn+a.ya,Gn)),on+se+1<Jn&&(Gn=Math.max((Jn-on)*Zn+a.ya,Gn)),Kt=Gn.toString()+"px")),Gn=Er!=="1px",kn=Kt!=="1px",Gn&&kn||!Gn&&!kn||(kn&&(ge-=a.Db),Gn&&(xe-=a.Db),nr<Yt+ne||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ne=1,Ot+1<ce&&(ne=Math.max((ce-Ot)*Zn+a.Aa,ne)),_t>ge+1&&(ne=Math.max((_t-ge)*Zn+a.Aa,ne)),Yt+1<nr&&(ne=Math.max((nr-Yt)*Zn+a.Aa,ne)),Er=ne.toString()+"px"),Gn=Er!=="1px",ne=a.ya,Gn!==a.Be&&(ne=Gn?a.ya-a.Db:a.ya+a.Db),Jn<on+se||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(se=1,Gt+1<Nr&&(se=Math.max((Nr-Gt)*Zn+ne,se)),Ft>xe+1&&(se=Math.max((Ft-xe)*Zn+ne,se)),on+1<Jn&&(se=Math.max((Jn-on)*Zn+ne,se)),Kt=se.toString()+"px"),kn=Kt!=="1px"),a.qr&&Gn===a.Be&&kn===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(Gn!==a.Be&&(Er==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),te=!0),a.Be=Gn,ht.style.width=Er,kn!==a.gf&&(Kt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),te=!0,a.tn&&(se=Nt.alloc(),kn?(y.style.left=a.Db+"px",a.position=se.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=se.h(a.pa.x-a.Db/a.scale,a.pa.y)),Nt.free(se))),te&&Ll(a),a.gf=kn,ht.style.height=Kt,a.gu=!0,te&&(a.pn=!0),y=rt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Yt+1<nr?y=(a.position.x-Ot)*Zn:Ot+1<ce?y=rt.scrollWidth-rt.clientWidth:_t>ge+1&&(y=a.position.x*Zn)),a.tn)switch(a.bu){case"negative":y=-(rt.scrollWidth-y-rt.clientWidth);break;case"reverse":y=rt.scrollWidth-y-rt.clientWidth}return rt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(on+1<Jn?rt.scrollTop=(a.position.y-Gt)*Zn:Gt+1<Nr?rt.scrollTop=rt.scrollHeight-rt.clientHeight:Ft>xe+1&&(rt.scrollTop=a.position.y*Zn)),ce=a.Aa,ge=a.ya,rt.style.width=ce+(a.gf?a.Db:0)+"px",rt.style.height=ge+(a.Be?a.Db:0)+"px",x!==ce||b!==ge||a.animationManager.zb?(x=wn.allocAt(E,Ae,Ue,Je),a.onViewportBoundsChanged(x,a.viewportBounds,Zn,te),wn.free(x),!1):!0}it=sn.prototype,it.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&zt("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&&zt('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var x=y.oi(99999999,a,a.diagram===this);0<=x&&this.cb(lo,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},it.oi=function(a){this.partManager.oi(a);var y=this;Lh(a,function(x){xh(y,x)}),(a instanceof hi||a instanceof Ir&&a.placeholder!==null)&&a.v(),a.data!==null&&Lh(a,function(x){ly(y.partManager,x)}),Ma(a)!==!0&&Rc(a)!==!0||this.De.add(a),R1(a,!0,this),z1(a)?(a.actualBounds.w()&&this.N(Ah(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Ah(a,a.actualBounds)),this.$b()},it.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Lh(a,function(x){uy(y.partManager,x,y)}),this.De.remove(a),z1(a)?(a.actualBounds.w()&&this.N(Ah(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Ah(a,a.actualBounds)),this.$b()},it.remove=function(a){xp(this,a,!0)};function xp(a,y,x){var b=y.layer;b!==null&&b.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=b.pc(-1,y,!1),0<=x&&a.cb(Eo,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}it.Is=function(a,y){if(y===void 0&&(y=!1),Sn(a))for(var x=a.length,b=0;b<x;b++){var E=a[b];y&&!E.canDelete()||this.remove(E)}else for(x=new Ln,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},it.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},sn.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=tf(this)),this.toolManager!==null){var E=new qn;if(a!==null)if(Sn(a))for(var te=0;te<a.length;te++)Hl(this,E,a[te],x,b);else for(a=a.iterator;a.next();)Hl(this,E,a.value,x,b);else{for(a=this.parts;a.next();)Hl(this,E,a.value,x,b);for(a=this.nodes;a.next();)Hl(this,E,a.value,x,b);for(a=this.links;a.next();)Hl(this,E,a.value,x,b)}Nc(this,E,y,b,x)}};function Hl(a,y,x,b,E,te){if(!y.contains(x)&&(te===void 0&&(te=!1),!b||te||x.canMove()||x.canCopy()))if(E===void 0&&(E=tf(a)),x instanceof Xn){if(y.add(x,a.Pd(E,x,x.location)),x instanceof Ir&&(x.placeholder!==null||E.dragsMembers))for(te=x.memberParts;te.next();)Hl(a,y,te.value,b,E,E.groupsAlwaysMove);for(te=x.linksConnected;te.next();){var ne=te.value;if(!y.contains(ne)){var se=ne.fromNode,ce=ne.toNode;se!==null&&y.contains(se)&&ce!==null&&y.contains(ce)&&Hl(a,y,ne,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)Hl(a,y,x.value,b,E)}else if(x instanceof Hn)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)Hl(a,y,x.value,b,E);else x instanceof hi||y.add(x,a.Pd(E,x,x.location))}function Nc(a,y,x,b,E){if(y!==null&&y.count!==0){var te=Nt.alloc(),ne=Nt.alloc();ne.assign(x),isNaN(ne.x)&&(ne.x=0),isNaN(ne.y)&&(ne.y=0),(x=a.Mr)||rf(a,y);for(var se=cn(),ce=cn(),ge=y.iterator,xe=Nt.alloc();ge.next();){var Ae=ge.key,Ue=ge.value;if(Ae.Zc()){var Je=wp(a,Ae,y);Je!==null?se.push(new ie(Ae,Ue,Je)):(!E||Ae.canMove())&&(Je=Ue.point,te.assign(Je),a.computeMove(Ae,te.add(ne),b,xe),Ae.location=xe,Ue.shifted===void 0&&(Ue.shifted=new Nt),Ue.shifted.assign(xe.re(Je)))}else ge.key instanceof Hn&&ce.push(ge.sa)}for(Nt.free(xe),E=se.length,ge=0;ge<E;ge++)Ae=se[ge],te.assign(Ae.info.point),Ae.Su.shifted===void 0&&(Ae.Su.shifted=new Nt),Ae.node.location=te.add(Ae.Su.shifted);for(E=Nt.alloc(),ge=Nt.alloc(),Ae=ce.length,Ue=0;Ue<Ae;Ue++){var rt=ce[Ue];if(Je=rt.key,Je instanceof Hn)if(Je.suspendsRouting){Je.Tg=null,xe=Je.fromNode;var ht=Je.toNode;if(a.draggedLink!==null&&b.dragsLink)if(ht=rt.value.point,Je.dragComputation===null)y.add(Je,a.Pd(b,Je,ne)),Yu(Je,ne.x-ht.x,ne.y-ht.y);else{rt=Nt.allocAt(0,0),(xe=Je.i(0))&&xe.w()&&rt.assign(xe);var Ft=xe=Nt.alloc().assign(rt).add(ne);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(Ft=Nt.alloc(),nf(a,Je,xe,Ft,b)),xe.assign(Je.dragComputation(Je,xe,Ft)).re(rt),y.add(Je,a.Pd(b,Je,xe)),Yu(Je,xe.x-ht.x,xe.y-ht.y),Nt.free(rt),Nt.free(xe),Ft!==xe&&Nt.free(Ft)}else xe!==null&&(E.assign(xe.location),Ft=y.I(xe),Ft!==null&&E.re(Ft.point)),ht!==null&&(ge.assign(ht.location),Ft=y.I(ht),Ft!==null&&ge.re(Ft.point)),xe!==null&&ht!==null?E.Xa(ge)?(xe=rt.value.point,ht=te,ht.assign(E),ht.re(xe),y.add(Je,a.Pd(b,Je,E)),Yu(Je,ht.x,ht.y)):(Je.suspendsRouting=!1,Je.bb()):(rt=rt.value.point,xe=xe!==null?E:ht!==null?ge:ne,y.add(Je,a.Pd(b,Je,xe)),Yu(Je,xe.x-rt.x,xe.y-rt.y))}else(Je.fromNode===null||Je.toNode===null)&&(xe=rt.value.point,y.add(Je,a.Pd(b,Je,ne)),Yu(Je,ne.x-xe.x,ne.y-xe.y))}Nt.free(te),Nt.free(ne),Nt.free(E),Nt.free(ge),Pn(se),Pn(ce),x||(ta(a),jc(a,y))}}sn.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new Nt),b.assign(y),a===null)return b;var E=y,te=x.isGridSnapEnabled;te&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=Nt.alloc(),nf(this,a,y,E,x)),x=a.dragComputation!==null?a.dragComputation(a,y,E):E;var ne=a.minLocation,se=ne.x;isNaN(se)&&(se=te?Math.round(1e3*a.location.x)/1e3:a.location.x),ne=ne.y,isNaN(ne)&&(ne=te?Math.round(1e3*a.location.y)/1e3:a.location.y);var ce=a.maxLocation,ge=ce.x;return isNaN(ge)&&(ge=te?Math.round(1e3*a.location.x)/1e3:a.location.x),ce=ce.y,isNaN(ce)&&(ce=te?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(se,Math.min(x.x,ge)),Math.max(ne,Math.min(x.y,ce))),E!==y&&Nt.free(E),b};function tf(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function nf(a,y,x,b,E){if(E===void 0&&(E=tf(a)),b.assign(x),y!==null){var te=a.grid;y=E.gridSnapCellSize,a=y.width,y=y.height;var ne=E.gridSnapOrigin,se=ne.x;if(ne=ne.y,E=E.gridSnapCellSpot,te!==null){var ce=te.gridCellSize;isNaN(a)&&(a=ce.width),isNaN(y)&&(y=ce.height),te=te.gridOrigin,isNaN(se)&&(se=te.x),isNaN(ne)&&(ne=te.y)}te=Nt.allocAt(0,0),te.yi(0,0,a,y,E),qt.No(x.x,x.y,se+te.x,ne+te.y,a,y,b),Nt.free(te)}}function rf(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Hn&&(y.suspendsRouting=!0)}function jc(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof Hn&&(x.suspendsRouting=!1,$0(x)&&x.bb())}a.Mr=!1}}function wp(a,y,x){return y=y.containingGroup,y!==null&&(a=wp(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}it=sn.prototype,it.Pd=function(a,y,x){if(x===void 0)return new fu(ni);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new fu(new Nt(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new fu(x.copy())};function bp(a,y,x){if(y.diagram!==null&&y.diagram!==a&&zt("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&zt("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&zt("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&zt("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,x=a.count;for(var b=0;b<x;b++)a.M(b).name===y&&zt("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}it.Al=function(a){bp(this,a,null),a.Xe(this);var y=this.Wa,x=y.count-1;if(!a.isTemporary)for(;0<=x&&y.M(x).isTemporary;)x--;return y.Gb(x+1,a),this.cc!==null&&this.cb(lo,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},it.Ww=function(a,y){bp(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Eo,"layers",this,a,null,b,null));var E=x.count,te;for(te=0;te<E;te++)if(x.M(te)===y){x.Gb(te,a);break}return this.cc!==null&&this.cb(lo,"layers",this,null,a,null,te),this.N(),0>b&&this.Ya(),this},it.Cy=function(a,y){bp(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Eo,"layers",this,a,null,b,null));var E=x.count,te;for(te=0;te<E;te++)if(x.M(te)===y){x.Gb(te+1,a);break}return this.cc!==null&&this.cb(lo,"layers",this,null,a,null,te+1),this.N(),0>b&&this.Ya(),this},it.kA=function(a){if(a.diagram!==this&&zt("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var b=y.value,E=b.layerName;E!==a.name?b.layerName=E:b.layerName=""}this.cc!==null&&this.cb(Eo,"layers",this,a,null,x,null),this.N(),this.Ya()}}},it.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},it.Yw=function(a){return this.pf===null&&(this.pf=new Tn),this.pf.add(a),this.model.Pe(a),this},it.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},it.Pe=function(a){return this.zg===null&&(this.zg=new Tn),this.zg.add(a),this},it.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},it.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==ts&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},it.cb=function(a,y,x,b,E,te,ne){te===void 0&&(te=null),ne===void 0&&(ne=null);var se=new $i;se.diagram=this,se.change=a,se.propertyName=y,se.object=x,se.oldValue=b,se.oldParam=te,se.newValue=E,se.newParam=ne,this.ds(se)},it.g=function(a,y,x,b,E){this.cb(Zi,a,this,y,x,b,E)},sn.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var x=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var b=a.change;if(b===Zi){var E=a.object;if(Hi(E,a.propertyName,a.I(y)),E instanceof Jt){var te=E.part;te!==null&&te.Wb()}this.isModified=!0}else if(b===lo){var ne=a.object,se=a.newParam,ce=a.newValue;if(ne instanceof Rn)if(typeof se=="number"&&ce instanceof Jt){y?ne.pc(se):ne.Gb(se,ce);var ge=ne.part;ge!==null&&ge.Wb()}else typeof se=="number"&&ce instanceof wo&&(ce.isRow?h1(ne,se,y?void 0:ce):d1(ne,se,y?void 0:ce));else if(ne instanceof Wo){var xe=a.oldParam===!0;typeof se=="number"&&ce instanceof pr&&(y?(ce.isSelected=!1,ce.isHighlighted=!1,ce.Wb(),ne.pc(xe?se:-1,ce,xe)):ne.oi(se,ce,xe))}else ne instanceof sn?typeof se=="number"&&ce instanceof Wo&&(y?this.Wa.mb(se):(ce.Xe(this),this.Wa.Gb(se,ce))):zt("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===Eo){var Ae=a.object,Ue=a.oldParam,Je=a.oldValue;if(Ae instanceof Rn)typeof Ue=="number"&&Je instanceof Jt?y?Ae.Gb(Ue,Je):Ae.pc(Ue):typeof Ue=="number"&&Je instanceof wo&&(Je.isRow?h1(Ae,Ue,y?Je:void 0):d1(Ae,Ue,y?Je:void 0));else if(Ae instanceof Wo){var rt=a.newParam===!0;typeof Ue=="number"&&Je instanceof pr&&(y?0>Ae.Pa.indexOf(Je)&&Ae.oi(Ue,Je,rt):(Je.isSelected=!1,Je.isHighlighted=!1,Je.Wb(),Ae.pc(rt?Ue:-1,Je,rt)))}else Ae instanceof sn?typeof Ue=="number"&&Je instanceof Wo&&(y?(Je.Xe(this),this.Wa.Gb(Ue,Je)):this.Wa.mb(Ue)):zt("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==ts&&zt("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},sn.prototype.Ea=function(a){return this.undoManager.Ea(a)},sn.prototype.eb=function(a){return this.undoManager.eb(a)},sn.prototype.Kf=function(){return this.undoManager.Kf()},sn.prototype.commit=function(a,y){y===void 0&&(y="");var x=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=x}},sn.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},sn.prototype.rp=function(){this.partManager.rp()};function Pp(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,Ll(a),a.N(),a.Ee=!0,b.zb&&(cu(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Ll(a);else{a.vb=!0;var E=a.viewportBounds.copy(),te=a.Aa,ne=a.ya,se=a.zoomPoint.x,ce=a.zoomPoint.y,ge=a.contentAlignment;isNaN(se)&&(ge.$c()?ge.Hf(iu)?se=0:ge.Hf(qa)&&(se=te-1):se=ge.sb()?ge.x*(te-1):te/2),isNaN(ce)&&(ge.$c()?ge.Hf(Fl)?ce=0:ge.Hf(xs)&&(ce=ne-1):ce=ge.sb()?ge.y*(ne-1):ne/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),x<a.minScale&&(x=a.minScale),x>a.maxScale&&(x=a.maxScale),te=Nt.allocAt(a.pa.x+se/y-se/x,a.pa.y+ce/y-ce/x),a.position=te,Nt.free(te),a.Ca=x,Ll(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),Gs(a,!1),b.zb&&(cu(b)||b.ce.add(b.H,"scale",y,a.Ca))}}sn.prototype.onViewportBoundsChanged=function(a,y,x,b){if(!a.D(y)){b===void 0&&(b=!1),b||(this.Ee=!0),this.vd=!0;var E=this.layout;E===null||!E.isViewportSized||this.autoScale!==ha||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof Wi&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Fg(E,this)),this.vb||this.invalidateViewport(a,y),Tl(this),this.fc.scale=x,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*x),this.fc.canvasSize.height=Math.round(a.height*x),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(te){te.isAvoiding&&te.actualBounds.Yc(y)&&te.bb()})}};function Tl(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=Wn.alloc(),E=1,te=1,ne=x.O.s,se=ne.length,ce=0;ce<se;ce++){var ge=ne[ce],xe=Math.abs(ge.interval);2>xe||(m0(ge.figure)?te=te*xe/qt.vx(te,xe):E=E*xe/qt.vx(E,xe))}if(ne=x.gridCellSize,b.h(te*ne.width,E*ne.height),y!==void 0)E=y.width,te=y.height,a=y.x,ne=y.y;else{if(y=wn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){wn.free(y);return}E=y.width,te=y.height,a=y.x,ne=y.y,wn.free(y)}x.width=E+2*b.width,x.height=te+2*b.height,y=Nt.alloc(),qt.No(a,ne,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),Wn.free(b),x.part.location=y,Nt.free(y)}}sn.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),b=x.length,E=0;E<b;E++)x[E].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},sn.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))},sn.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),Sn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof pr||zt("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 pr||zt("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},sn.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),x=y.length,b=0;b<x;b++)y[b].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},it=sn.prototype,it.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},it.Jz=function(a){a=new Ln().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 pr||zt("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},it.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,te=Nt.alloc();if(a==="pixel")E=x;else if(a==="line")E=x*(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=b?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(E=x*Math.max(a-(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){E=this.documentBounds,x=this.viewportBounds,y==="up"?this.position=te.h(x.x,E.y):y==="left"?this.position=te.h(E.x,x.y):y==="down"?this.position=te.h(x.x,E.bottom-x.height):y==="right"&&(this.position=te.h(E.right-x.width,x.y)),Nt.free(te);return}zt("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}E/=this.scale,x=this.position,y==="up"?this.position=te.h(x.x,x.y-E):y==="down"?this.position=te.h(x.x,x.y+E):y==="left"?this.position=te.h(x.x-E,x.y):y==="right"?this.position=te.h(x.x+E,x.y):zt("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Nt.free(te)},it.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)},it.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},it.op=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),a.copy().transform(this.Ab)},it.zA=function(a){var y=this.Ab,x=a.x,b=a.y,E=x+a.width,te=b+a.height,ne=y.m11,se=y.m12,ce=y.m21,ge=y.m22,xe=y.dx,Ae=y.dy,Ue=x*ne+b*ce+xe;y=x*se+b*ge+Ae;var Je=E*ne+b*ce+xe;return a=E*se+b*ge+Ae,b=x*ne+te*ce+xe,x=x*se+te*ge+Ae,ne=E*ne+te*ce+xe,E=E*se+te*ge+Ae,te=Math.min(Ue,Je),Ue=Math.max(Ue,Je),Je=Math.min(y,a),y=Math.max(y,a),te=Math.min(te,b),Ue=Math.max(Ue,b),Je=Math.min(Je,x),y=Math.max(y,x),te=Math.min(te,ne),Ue=Math.max(Ue,ne),Je=Math.min(Je,E),y=Math.max(y,E),new wn(te,Je,Ue-te,y-Je)},it.Ps=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),Vr(a.copy(),this.Ab)};function em(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Cp(a){return a=cf.get(a),a!==null?new a:new bi}sn.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===ts&&b[0]==="S")if(b==="StartingFirstTransaction"){var E=this;a=this.toolManager,a.mouseDownTools.each(function(ce){return ce.diagram=E}),a.mouseMoveTools.each(function(ce){return ce.diagram=E}),a.mouseUpTools.each(function(ce){return ce.diagram=E}),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===""&&x===ts){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),ta(this));var te=this.animationManager;b==="RolledBackTransaction"&&te.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||$d(te),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&&(em(this),this.As.clear(),Gg(this.animationManager)),!this.Rt&&ne&&this.lastInput.targetDiagram){this.Rt=!0;var se=this;Mn(function(){se.currentTool.standardMouseOver(),se.Rt=!1},10)}}}finally{this.aa=!0}}}};function xh(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)Ic(a,y[b])}function Ic(a,y){if(y instanceof za){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof Ln&&x.Bg.add(a);var b=y.Eg;if(b!==null&&b.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",b=a.Og.I(x),b===null)b=[],b.push(y),a.Og.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}}function Ep(a,y){if(y instanceof za){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var b=x.getAttribute("src")||"",E=a.Og.I(b);if(E!==null){for(var te=0;te<E.length;te++)if(E[te]===y){E.splice(te,1),E.length===0&&(a.Og.remove(b),x.Fq&&x.removeEventListener("load",x.Fq),x.Yp&&x.removeEventListener("error",x.Yp),delete x.Fq,delete x.Yp,x.Bg instanceof Ln&&x.Bg.remove(a),Pf(b));break}}}}}sn.prototype.Wd=function(){this.partManager.Wd()},sn.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},sn.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},sn.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},sn.prototype.Vb=function(a){return this.partManager.Vb(a)},sn.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},it=sn.prototype,it.Lc=function(a){return this.partManager.Lc(a)},it.ii=function(a){return this.partManager.ii(a)},it.Kc=function(a){return this.partManager.Kc(a)},it.ms=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ms.apply(this.partManager,y instanceof Array?y:En($r(y)))},it.ls=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ls.apply(this.partManager,y instanceof Array?y:En($r(y)))};function Ll(a){var y=a.pa,x=a.Ca;a.Rw.h(y.x,y.y,Math.max(a.Aa,0)/x,Math.max(a.ya,0)/x),a.vd=!0}function Mp(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Gs(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}it.Va=function(){if(this.Zi){var a=wn.alloc();Mp(this,this.computeBounds(a)),wn.free(a)}},it.rz=function(){for(var a=new Ln,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&a.add(x)}for(y=this.links;y.next();)x=y.value,x.isTopLevel&&a.add(x);return a.iterator},it.qz=function(){return this.ai.iterator},it.Uz=function(a){ta(this),a&&of(this,!0),this.ld?Tp(this,!1):(this.Jk=!0,Cs(this))};function of(a,y){for(var x=a.ai.iterator;x.next();)tm(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function tm(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)tm(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Tp(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var b=a.undoManager.transactionLevel,E=a.layout,te=a.animationManager;try{b===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=b&&!te.defaultAnimation.isAnimating&&!te.zb&&(y||_l(te,"Layout")),a.xh=!1;for(var ne=a.ai.iterator;ne.next();)Lp(a,ne.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),ta(a),E.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,b===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||b!==0&&b!==1||$d(te),a.aa=x}}}function Lp(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)Lp(a,E.value,x,b);E=y.layout,E===null||E.isValidLayout||(!x||E.isRealtime||b===0?(y.rh=!y.location.w(),E.doLayout(y),y.C(32),sd(a,y),E.isValidLayout=!0):a.xh=!0)}}it.yz=function(){for(var a=new Tn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function n0(a){function y(E){var te=E.toLowerCase(),ne=new Tn;x.add(E,ne),x.add(te,ne),b.add(E,E),b.add(te,E)}var x=new qn,b=new qn;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=x,a.hw=b}function nm(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function af(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;zt("Unknown DiagramEvent name: "+y)}it.Bj=function(a,y){return a=af(this,a),a!==null&&a.add(y),this},it.am=function(a,y){a=af(this,a),a!==null&&a.remove(y)},it.R=function(a,y,x){var b=af(this,a),E=new Mu;if(E.diagram=this,a=nm(this,a),a!==null&&(E.name=a),y!==void 0&&(E.subject=y),x!==void 0&&(E.parameter=x),y=b.length,y===1)b.M(0)(E);else if(y!==0)for(b=b.Fa(),x=0;x<y;x++)(0,b[x])(E)};function sf(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}it.Yj=function(a,y){return lf(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},sn.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?fp(this,a):a.assign(this.documentBounds)};function lf(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new rg(a.avoidanceCellSize)),E.vs||E.group!==x||E.Yx!==b){if(E.Hx=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),E.Ix=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=rm(a,x)),x===null){y=wn.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),E.initialize(y);for(var te=a.nodes;te.next();){var ne=te.value,se=ne.layer;se!==null&&se.visible&&!se.isTemporary&&uf(a,ne,b,y)}wn.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=wn.alloc(),te=x.memberParts;te.next();)ne=te.value,ne instanceof Xn&&uf(a,ne,b,y);wn.free(y)}E.group=x,E.Yx=b,E.vs=!1}else y&&oS(E);return E}function rm(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?rm(a,y.containingGroup):null}function uf(a,y,x,b){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(b),a=a.Xh;var E=y.x,te=y.y;if(kf(a,E,te))for(x=(te-a.Od)/a.sc|0,b=Math.min((E+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((te+y.height-a.Od)/a.sc|0,a.ei),E=(E-a.Nd)/a.rc|0;E<=b;E++)if(te=a.ac[E],te.fill)te.fill(Qu,x,y+1);else for(var ne=x;ne<=y;ne++)te[ne]=Qu}else if(y instanceof Ir)for(y=y.memberParts;y.next();)E=y.value,E instanceof Xn&&uf(a,E,x,b)}}function Gu(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}sn.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():kp(this)};function kp(a){a.vk===-1&&(a.vk=Mn(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=wn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Mp(a,y),wn.free(y),a.Fc=!0,a.bd(),kp(a))}},a.vp))}sn.prototype.ug=function(){this.vk!==-1&&(Rt.clearTimeout(this.vk),this.vk=-1)},sn.prototype.computeAutoScrollPosition=function(a){var y=this.position,x=this.xp;if(0>=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var b=this.viewportBounds,E=this.scale;b=wn.allocAt(0,0,b.width*E,b.height*E);var te=Nt.allocAt(0,0);if(a.x>=b.x&&a.x<b.x+x.left&&this.allowHorizontalScroll){var ne=Math.max(this.scrollHorizontalLineChange,1);ne|=0,te.x-=ne,a.x<b.x+x.left/2&&(te.x-=ne),a.x<b.x+x.left/4&&(te.x-=4*ne)}else a.x<=b.x+b.width&&a.x>b.x+b.width-x.right&&this.allowHorizontalScroll&&(ne=Math.max(this.scrollHorizontalLineChange,1),ne|=0,te.x+=ne,a.x>b.x+b.width-x.right/2&&(te.x+=ne),a.x>b.x+b.width-x.right/4&&(te.x+=4*ne));return a.y>=b.y&&a.y<b.y+x.top&&this.allowVerticalScroll?(ne=Math.max(this.scrollVerticalLineChange,1),ne|=0,te.y-=ne,a.y<b.y+x.top/2&&(te.y-=ne),a.y<b.y+x.top/4&&(te.y-=4*ne)):a.y<=b.y+b.height&&a.y>b.y+b.height-x.bottom&&this.allowVerticalScroll&&(ne=Math.max(this.scrollVerticalLineChange,1),ne|=0,te.y+=ne,a.y>b.y+b.height-x.bottom/2&&(te.y+=ne),a.y>b.y+b.height-x.bottom/4&&(te.y+=4*ne)),te.Xa(ni)||(y=new Nt(y.x+te.x/E,y.y+te.y/E)),wn.free(b),Nt.free(te),y},it=sn.prototype,it.Cs=function(){return null},it.av=function(){return null},it.bs=function(a,y){this.pj.add(a,y)},it.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Ir&&(y.$p=null)})};function ld(a,y,x){function b(){var xe=+new Date;for(te=!0,ne.reset();ne.next();)if(!ne.value[0].al){te=!1;break}te||xe-ge>ce?y(x,E,se):Rt.requestAnimationFrame(b)}for(var E=x.callback,te=!0,ne=a.Og.iterator;ne.next();)if(!ne.value[0].al){te=!1;break}if(typeof E!="function"||te)return y(x,E,a);var se=a,ce=x.callbackTimeout||300,ge=+new Date;return Rt.requestAnimationFrame(function(){b()}),null}it.Wz=function(a){return eo?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},it.Jx=function(a){return a===void 0&&(a={}),ld(this,this.Xz,a)},it.Xz=function(a,y,x){var b=im(x,a,"canvas",null);if(b===null)return null;x=b.Z.canvas;var E=null;if(x!==null)switch(E=a.returnType,E===void 0?E="string":E=E.toLowerCase(),E){case Ph+"data":E=b.getImageData(0,0,x.width,x.height);break;case Ph:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&zt('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:E=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(E),null):E};function im(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&zt("properties argument must be an Object.");var E=y.size||null,te=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(te="NaN");var ne=y.maxSize;y.maxSize===void 0&&(ne=x==="SVG"?new Wn(1/0,1/0):new Wn(2e3,2e3));var se=y.position||null,ce=y.parts||null,ge=y.padding===void 0?1:y.padding,xe=y.background||null,Ae=y.omitTemporary;Ae===void 0&&(Ae=!0);var Ue=y.document||document,Je=y.elementFinished||null,rt=y.showTemporary;rt===void 0&&(rt=!Ae),y=y.showGrid,y===void 0&&(y=rt),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof ge=="number"?ge=new mr(ge):ge instanceof mr||zt("MakeImage padding must be a Margin or a number."),ge.left=Math.max(ge.left,0),ge.right=Math.max(ge.right,0),ge.top=Math.max(ge.top,0),ge.bottom=Math.max(ge.bottom,0),a.ib.Vc(!0),Ae=new Us(null,Ue,void 0,!0);var ht=Ae.context;if(!(E||te||ce||se))return Ae.width=a.Aa+Math.ceil(ge.left+ge.right),Ae.height=a.ya+Math.ceil(ge.top+ge.bottom),x==="SVG"?b===null?null:(b.resize(Ae.width,Ae.height,Ae.width,Ae.height),b.ownerDocument=Ue,b.hs=Je,ef(a,b.context,ge,new Wn(Ae.width,Ae.height),a.Ca,a.pa,ce,xe,rt,y),b.context):(a.Xm=!1,ef(a,ht,ge,new Wn(Ae.width,Ae.height),a.Ca,a.pa,ce,xe,rt,y),a.Xm=!0,Ae.context);var Ft=a.Pp,Ot=a.documentBounds.copy();if(Ot.Fv(a.yb),rt)for(var _t=a.Wa.s,Gt=_t.length,Kt=0;Kt<Gt;Kt++){var Yt=_t[Kt];if(Yt.visible&&Yt.isTemporary){Yt=Yt.Pa.s;for(var on=Yt.length,Zn=0;Zn<on;Zn++){var nr=Yt[Zn];nr.isInDocumentBounds&&nr.isVisible()&&(nr=nr.actualBounds,nr.w()&&Ot.ed(nr))}}}if(_t=new Nt(Ot.x,Ot.y),ce!==null){for(Gt=new wn(0,0,0,0),Kt=!0,Yt=ce.iterator,Yt.reset();Yt.next();)on=Yt.value,on instanceof pr&&(Zn=on.layer,Zn!==null&&!Zn.visible||Zn!==null&&!rt&&Zn.isTemporary||!on.isVisible()||(on=on.actualBounds,on.w()&&(Kt?(Kt=!1,Gt.assign(on)):Gt.ed(on))));Ot.width=Gt.width,Ot.height=Gt.height,_t.x=Gt.x,_t.y=Gt.y}return se!==null&&se.w()&&(_t=se,te||(te=Ft)),Gt=se=0,ge!==null&&(se=ge.left+ge.right,Gt=ge.top+ge.bottom),Kt=Yt=0,E!==null&&(Yt=E.width,Kt=E.height,isFinite(Yt)&&(Yt=Math.max(0,Yt-se)),isFinite(Kt)&&(Kt=Math.max(0,Kt-Gt))),E!==null&&te!==null?(te==="NaN"&&(te=Ft),E.w()?(E=Yt,Ot=Kt):isNaN(Kt)?(E=Yt,Ot=Ot.height*te):(E=Ot.width*te,Ot=Kt)):E!==null?E.w()?(te=Math.min(Yt/Ot.width,Kt/Ot.height),E=Yt,Ot=Kt):isNaN(Kt)?(te=Yt/Ot.width,E=Yt,Ot=Ot.height*te):(te=Kt/Ot.height,E=Ot.width*te,Ot=Kt):te!==null?te==="NaN"&&ne.w()?(te=Math.min((ne.width-se)/Ot.width,(ne.height-Gt)/Ot.height),te>Ft?(te=Ft,E=Ot.width,Ot=Ot.height):(E=ne.width,Ot=ne.height)):(E=Ot.width*te,Ot=Ot.height*te):(te=Ft,E=Ot.width,Ot=Ot.height),ge!==null?(E+=se,Ot+=Gt):ge=new mr(0),ne!==null&&(Ft=ne.width,ne=ne.height,isNaN(Ft)&&(Ft=2e3),isNaN(ne)&&(ne=2e3),isFinite(Ft)&&(E=Math.min(E,Ft)),isFinite(ne)&&(Ot=Math.min(Ot,ne))),Ae.width=Math.ceil(E),Ae.height=Math.ceil(Ot),x==="SVG"?b===null?null:(b.resize(Ae.width,Ae.height,Ae.width,Ae.height),b.ownerDocument=Ue,b.hs=Je,ef(a,b.context,ge,new Wn(Math.ceil(E),Math.ceil(Ot)),te,_t,ce,xe,rt,y),b.context):(a.Xm=!1,ef(a,ht,ge,new Wn(Math.ceil(E),Math.ceil(Ot)),te,_t,ce,xe,rt,y),a.Xm=!0,Ae.context)}Lt.Object.defineProperties(sn.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof Be||(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 kl(this,Rt.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 kl(this,Rt.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(x){x.cancelWaitAfter()}),y.mouseMoveTools.each(function(x){x.cancelWaitAfter()}),y.mouseUpTools.each(function(x){x.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(Rt,"resize",this.Ov,!1),this.removeEventListener(Rt,"wheel",this.$j,!0),zl===this&&(zl=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),hp(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)&&Fn(a,"0 <= value <= 1",sn,"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),Gs(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),Gs(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),Gs(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),Gs(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Fn(a,">= 0",sn,"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&&Fn(a,">= 0",sn,"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,x=this.Ka;if(y!==null&&x!==null){this.it=a;var b=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===b&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===b&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===b&&(y.style.cursor=a,x.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 x=0;x<a;x++)y[x].isSelected=!1;this.R("ChangedSelection",this.selection)}}else Fn(a,">= 0",sn,"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||em(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&&zt("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=cp(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,_l(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(te){return y.ik(te)}),y.ik(this.Oc)),this.cc=a,this.partManager=Cp(this.cc.type);for(var E=0;E<x.length;E++)this.add(x[E]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(te){return a.Pe(te)}),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(Rt,"pointermove",this.dk,!0),this.addEventListener(Rt,"pointerdown",this.ui,!0),this.addEventListener(Rt,"pointerup",this.fk,!0),this.addEventListener(Rt,"pointerout",this.ek,!0),this.addEventListener(Rt,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Rt,"wheel",this.$j,!0),this.addEventListener(Rt,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Rt,"pointermove",this.dk,!0),this.removeEventListener(Rt,"pointerdown",this.ui,!0),this.removeEventListener(Rt,"pointerup",this.fk,!0),this.removeEventListener(Rt,"pointerout",this.ek,!0),this.removeEventListener(Rt,"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(Rt,"wheel",this.$j,!0),this.removeEventListener(Rt,"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=Nt.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),Hg(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Ll(this):(this.vb=!0,a=this.scale,pp(this,this.Sp,this.Aa/a,this.ya/a,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(x,this.viewportBounds,this.Ca,!1)}Nt.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=Yg(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=Yg(this)),a.type!==Rn.Grid&&zt("Diagram.grid must be a Panel of type Panel.Grid");var x=y.panel;x!==null&&x.remove(y),this.fe=a,a.name="GRID",x!==null&&x.add(a),Tl(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),Ll(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||zt("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 mr(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===Hu&&Gs(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,Gs(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,Pp(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&&Pp(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!==ha&&Gs(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()||zt("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()||zt("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)):Fn(a,"> 0",sn,"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)):Fn(a,"> 0",sn,"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),Gs(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 mr(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&&zt("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();)Zp(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Uu&&a!==So&&a!==hf&&zt("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 Wn(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 mr(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),Lt.Object.defineProperties(sn,{licenseKey:{get:function(){return Dp.jc()},set:function(a){Dp.add(a.replace(/\s/g,""))}},version:{get:function(){return bh}}}),sn.prototype.makeImageData=sn.prototype.Jx,sn.prototype.makeImage=sn.prototype.Wz,sn.prototype.cacheGroupExternalLinks=sn.prototype.Fu,sn.prototype.addRenderer=sn.prototype.bs,sn.prototype.makeSVG=sn.prototype.av,sn.prototype.makeSvg=sn.prototype.Cs,sn.prototype.stopAutoScroll=sn.prototype.ug,sn.prototype.doAutoScroll=sn.prototype.gs,sn.prototype.isUnoccupied=sn.prototype.Yj,sn.prototype.raiseDiagramEvent=sn.prototype.R,sn.prototype.removeDiagramListener=sn.prototype.am,sn.prototype.addDiagramListener=sn.prototype.Bj,sn.prototype.findTreeRoots=sn.prototype.yz,sn.prototype.layoutDiagram=sn.prototype.Uz,sn.prototype.findTopLevelGroups=sn.prototype.qz,sn.prototype.findTopLevelNodesAndLinks=sn.prototype.rz,sn.prototype.ensureBounds=sn.prototype.Va,sn.prototype.findLinksByExample=sn.prototype.ls,sn.prototype.findNodesByExample=sn.prototype.ms,sn.prototype.findLinkForData=sn.prototype.Kc,sn.prototype.findNodeForData=sn.prototype.ii,sn.prototype.findPartForData=sn.prototype.Lc,sn.prototype.findLinkForKey=sn.prototype.findLinkForKey,sn.prototype.findNodeForKey=sn.prototype.Vb,sn.prototype.findPartForKey=sn.prototype.findPartForKey,sn.prototype.rebuildParts=sn.prototype.Wd,sn.prototype.transformViewToDoc=sn.prototype.Ps,sn.prototype.transformRectDocToView=sn.prototype.zA,sn.prototype.transformDocToView=sn.prototype.op,sn.prototype.centerRect=sn.prototype.es,sn.prototype.scrollToRect=sn.prototype.tv,sn.prototype.scroll=sn.prototype.scroll,sn.prototype.highlightCollection=sn.prototype.Jz,sn.prototype.highlight=sn.prototype.Iz,sn.prototype.selectCollection=sn.prototype.rA,sn.prototype.select=sn.prototype.select,sn.prototype.updateAllRelationshipsFromData=sn.prototype.rp,sn.prototype.updateAllTargetBindings=sn.prototype.updateAllTargetBindings,sn.prototype.commit=sn.prototype.commit,sn.prototype.rollbackTransaction=sn.prototype.Kf,sn.prototype.commitTransaction=sn.prototype.eb,sn.prototype.startTransaction=sn.prototype.Ea,sn.prototype.raiseChanged=sn.prototype.g,sn.prototype.raiseChangedEvent=sn.prototype.cb,sn.prototype.removeChangedListener=sn.prototype.ik,sn.prototype.addChangedListener=sn.prototype.Pe,sn.prototype.removeModelChangedListener=sn.prototype.mA,sn.prototype.addModelChangedListener=sn.prototype.Yw,sn.prototype.findLayer=sn.prototype.Qj,sn.prototype.removeLayer=sn.prototype.kA,sn.prototype.addLayerAfter=sn.prototype.Cy,sn.prototype.addLayerBefore=sn.prototype.Ww,sn.prototype.addLayer=sn.prototype.Al,sn.prototype.moveParts=sn.prototype.moveParts,sn.prototype.copyParts=sn.prototype.Kj,sn.prototype.removeParts=sn.prototype.Is,sn.prototype.remove=sn.prototype.remove,sn.prototype.add=sn.prototype.add,sn.prototype.clearDelayedGeometries=sn.prototype.bx,sn.prototype.setProperties=sn.prototype.nm,sn.prototype.attach=sn.prototype.Du,sn.prototype.set=sn.prototype.set,sn.prototype.resetInputOptions=sn.prototype.Sx,sn.prototype.setInputOption=sn.prototype.sA,sn.prototype.getInputOption=sn.prototype.Ql,sn.prototype.resetRenderingHints=sn.prototype.Tx,sn.prototype.setRenderingHint=sn.prototype.Xx,sn.prototype.getRenderingHint=sn.prototype.Gf,sn.prototype.maybeUpdate=sn.prototype.bd,sn.prototype.requestUpdate=sn.prototype.$b,sn.prototype.delayInitialization=sn.prototype.Xy,sn.prototype.isUpdateRequested=sn.prototype.Pz,sn.prototype.invalidateDocumentBounds=sn.prototype.Ya,sn.prototype.findObjectsNear=sn.prototype.og,sn.prototype.findPartsNear=sn.prototype.mz,sn.prototype.findObjectsIn=sn.prototype.Cf,sn.prototype.findPartsIn=sn.prototype.ux,sn.prototype.findObjectsAt=sn.prototype.ji,sn.prototype.findPartsAt=sn.prototype.lz,sn.prototype.findObjectAt=sn.prototype.ic,sn.prototype.findPartAt=sn.prototype.Ol,sn.prototype.focusObject=sn.prototype.zz,sn.prototype.alignDocument=sn.prototype.Jy,sn.prototype.zoomToRect=sn.prototype.BA,sn.prototype.zoomToFit=sn.prototype.zoomToFit,sn.prototype.diagramScroll=sn.prototype.kx,sn.prototype.focus=sn.prototype.focus;var cf=new qn,om=null,eo=Rt.document!==void 0,wh=null,Dc="",ha=new fn(sn,"None",0),ds=new fn(sn,"Uniform",1),Fc=new fn(sn,"UniformToFill",2),ud=new fn(sn,"CycleAll",10),Op=new fn(sn,"CycleNotDirected",11),Ap=new fn(sn,"CycleNotDirectedFast",12),Np=new fn(sn,"CycleNotUndirected",13),jp=new fn(sn,"CycleDestinationTree",14),Ip=new fn(sn,"CycleSourceTree",15),Hu=new fn(sn,"DocumentScroll",1),cd=new fn(sn,"InfiniteScroll",2),Uu=new fn(sn,"TreeParentCollapsed",21),So=new fn(sn,"AllParentsCollapsed",22),hf=new fn(sn,"AnyParentsCollapsed",23),Dp=new Tn,bh="2.3.10",Ph="image",hd=null,am=!1;function ia(){if(eo){var a=Rt.document.createElement("canvas"),y=a.getContext("2d"),x=un("7ca11abfd022028846");y[x]=un("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",rn.Dx+"4ae6247590da4bb21c324ba3a84e385776",Wr.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",qt.za],E=1;5>E;E++)y[un("7ca11abfd7330390")](un(b[E-1]),10,15*E);for(y[x]=un("39f046ebb36e4b"),x=1;5>x;x++)y[un("7ca11abfd7330390")](un(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(Wr.prototype.Cd=Wr.prototype.Eu),hd=a}}sn.className="Diagram",sn.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Rt.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof sn?y.H:null},sn.inherit=function(a,y){function x(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class
|
|
|
`+a);x.prototype=y.prototype,a.prototype=new x,a.prototype.constructor=a},sn.useDOM=function(a){eo=a?Rt.document!==void 0:!1},sn.isUsingDOM=function(){return eo},sn.None=ha,sn.Uniform=ds,sn.UniformToFill=Fc,sn.CycleAll=ud,sn.CycleNotDirected=Op,sn.CycleNotDirectedFast=Ap,sn.CycleNotUndirected=Np,sn.CycleDestinationTree=jp,sn.CycleSourceTree=Ip,sn.DocumentScroll=Hu,sn.InfiniteScroll=cd,sn.TreeParentCollapsed=Uu,sn.AllParentsCollapsed=So,sn.AnyParentsCollapsed=hf;function sm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Ch(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)e:{y="f";var x=Rt[un("76a715b2f73f148a")][un("72ba13b5")]||"";if(a.Rc=!0,eo){var b=sn[un("76a115b6ed251eaf4692")];if(b)for(var E=Dp.iterator;E.next()&&(b=E.value,b=un(b).split(un("39e9")),!(6>b.length));){var te=un(b[1]).split(".");if(b[4]!=="7da71ca0")break;var ne=un(rn[un("6cae19")]).split(".");if(te[0]>ne[0]||te[0]===ne[0]&&te[1]>=ne[1]){var se=Rt[un("74a900bae4370f8b51")][un("6fbb13a1c2311e8a57")].toLowerCase();if(ne=se[un("73a612b6fb191d")](un("3aad1ab6e022098b4dc4")),te=un(b[2]),-1<ne&&(se=se[un("73a612b6fb191d")](te.toLowerCase()+"/"),a.Rc=!(-1<se&&se<ne),!a.Rc))break;for(ne=x[un("76ad18b4f73e")],se=x[un("73a612b6fb191d")](un("35e7"))+2;se<ne;se++)y+=x[se];if(ne=y[un("73a612b6fb191d")](te),0>ne&&te!==un("7da71ca0ad381e90")&&(ne=y[un("73a612b6fb191d")](un("76a715b2ef3e149757"))),0>ne&&(ne=y[un("73a612b6fb191d")](un("76a715b2ef3e149757"))),0>ne&&(ne=y[un("73a612b6fb191d")](un("2bfa41fdb3784bca12"))),0>ne&&(ne=x[un("73a612b6fb191d")](un("7baa19a6f76c1988428554"))),a.Rc=!(0<=ne&&ne<y[un("73a612b6fb191d")](un("35"))||y[un("73a612b6fb191d")](un("35"))===-1),!a.Rc||x[un("73a612b6fb191d")](un("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[un("73a612b6fb191d")](te)),!a.Rc)||(ne=Rt[un("76a715b2f73f148a")][un("69ad17a1e03e")],se=ne[un("73a612b6fb191d")](un("7fb002b6ed25128b4da25b2e")),-1<se&&(a.Rc=!(ne[un("73a612b6fb191d")](te)>se),!a.Rc)))break;if(te[0]==="#"){ne=Rt.document.createElement("div");for(var ce=b[0].replace(/[A-Za-z]/g,"");4>ce.length;)ce+="9";if(se=ce,ce=ce.substr(ce.length-4),b="",b+=["gsh","gsf"][parseInt(ce.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(ce.substr(0,1),10)%4],ne[un("79a417a0f0181a8946")]=b,Rt.document[un("78a712aa")]){Rt.document[un("78a712aa")][un("7bb806b6ed32388c4a875b")](ne),ce=Rt.getComputedStyle(ne).getPropertyValue(un("78a704b7e62456904c9b12701b6532a8"));var ge=Rt.getComputedStyle(ne).getPropertyValue(un("75b817b0ea2202"));if(Rt.document[un("78a712aa")][un("68ad1bbcf533388c4a875b")](ne),ce){if(ne=Rt[un("77a902b0eb1b1e804a8a")],ge==="0."+parseInt(se,10)%100||ce.indexOf(parseInt(te[1]+te[2],16))!==-1&&ce.indexOf(parseInt(te[3]+te[4],16))!==-1){a.Rc=!1;break}else if(ne&&ne(un("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,te=0;te<document.styleSheets.length;te++){ne=document.styleSheets[te].rules||document.styleSheets[te].cssRules;for(var xe in ne)if(b===ne[xe].selectorText){a.Rc=!1;break e}}}}else a.Rc=null,a.Rc=!1}}}else{for(xe=x[un("76ad18b4f73e")],E=x[un("73a612b6fb191d")](un("35e7"))+2;E<xe;E++)y+=x[E];x=y[un("73a612b6fb191d")](un("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[un("73a612b6fb191d")](un("35")))}}}return 0<a.Rc&&a!==a.wy}sm.className="DiagramHelper";function fu(a){this.j=a===void 0?new Nt:a,this.o=new Nt}Lt.Object.defineProperties(fu.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 dd="DraggingInfo";fu.className="DraggingInfo";function ie(a,y,x){this.node=a,this.info=y,this.Su=x}ie.className="DraggingNodeInfoPair";function he(){this.reset()}he.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new Wn(NaN,NaN).freeze(),this.gridSnapCellSpot=Ao,this.gridSnapOrigin=new Nt(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},he.className="DraggingOptions";function Te(a,y){if(typeof a=="string"||Rt.Element&&a instanceof Element)var x=sn.call(this,a)||this;else x=sn.call(this)||this,y=a;return Me(x),y&&x.nm(y),x}Xt(Te,sn);function Me(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Ss,a.layout=new Xo}Te.prototype.reset=function(){sn.prototype.reset.call(this),Me(this)},Te.className="Palette";function Be(a,y){if(typeof a=="string"||Rt.Element&&a instanceof Element)var x=sn.call(this,a)||this;else x=sn.call(this)||this,y=a;var b=x;x.animationManager.isEnabled=!1,x.vb=!0,x.V=null,x.mn=!1,x.nn=!1,x.F=!0,x.u=!0,x.ia=0,x.o=!1,x.ql=null,x.Xx("drawShadows",!1),a=new pr;var E=new _r;return E.stroke="magenta",E.strokeWidth=2,E.fill="transparent",E.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(E),x.j=a,x.allowCopy=!1,x.allowDelete=!1,x.allowSelect=!0,x.autoScrollRegion=new mr(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new Bt,x.toolManager.mouseMoveTools),x.click=function(){var te=b.observed;if(te!==null){var ne=te.viewportBounds,se=b.lastInput.documentPoint;te.position=new Nt(se.x-ne.width/2,se.y-ne.height/2)}},x.Pf=function(){b.Ya(),Mt(b)},x.Xd=function(){b.observed!==null&&(b.Ya(),b.N())},x.Ha=function(){1>b.updateDelay?b.N():b.o||(b.o=!0,setTimeout(function(){return b.redraw()},b.updateDelay))},x.Of=function(){b.observed!==null&&Mt(b)},x.autoScale=ds,x.vb=!1,y&&Object.assign(x,y),x}Xt(Be,sn),Be.prototype.computePixelRatio=function(){return 1},Be.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(yh(this),this.ql===null){var x=new Us(null);x.width=a.width,x.height=a.height,this.ql=x}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),st(this)}finally{this.ta=a,this.ib=y}}}sn.prototype.redraw.call(this)},Be.prototype.gc=function(){if(this.Ka===null&&zt("No div specified"),this.ta===null&&zt("No canvas specified"),!(this.ta instanceof kl)&&(F0(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){yh(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?st(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 x=y.length,b=0;b<x;b++)y[b].gc(a,this);this.Fc=this.vd=!1}}};function st(a){var y=a.observed;if(y!==null){var x=a.drawsTemporaryLayers,b=a.drawsGrid&&x,E=y.grid;b&&E!==null&&E.visible&&!isNaN(E.width)&&!isNaN(E.height)&&(E=wn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Tl(y,E),wn.free(E),ta(y));var te=a.Ab;te.reset(),a.scale!==1&&te.scale(a.scale),a.position.x===0&&a.position.y===0||te.translate(-a.position.x,-a.position.y),E=a.ib,E.scale(a.Mb,a.Mb),E.transform(te.m11,te.m12,te.m21,te.m22,te.dx,te.dy),E.yc(),y=y.Wa.s,te=y.length;for(var ne=0;ne<te;ne++){var se=y[ne],ce=a;if(se.visible&&se.opacity!==0){var ge=se.diagram.grid.part;if(!x&&se.isTemporary)b&&ge.layer===se&&(se=du(se,E),ge.gc(E,ce),E.globalAlpha=se);else{for(var xe=du(se,E),Ae=ce.scale,Ue=wn.alloc(),Je=se.Pa.s,rt=Je.length,ht=0;ht<rt;ht++){var Ft=Je[ht];(b||Ft!==ge)&&se.Oj(E,Ft,ce,null,Ae,Ue,!1)}wn.free(Ue),E.globalAlpha=xe}}}}}function Mt(a){var y=a.box;if(y!==null){var x=a.observed;if(x!==null){a.Fc=!0,x=x.viewportBounds;var b=y.selectionObject,E=Wn.alloc();E.h(x.width,x.height),b.desiredSize=E,Wn.free(E),a=2/a.scale,b instanceof _r&&(b.strokeWidth=a),y.location=new Nt(x.x-a/2,x.y-a/2),y.isSelected=!0}}}Be.prototype.computeBounds=function(){var a=this.observed;if(a===null)return Yr;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},Be.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},Be.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),Mt(this),this.fc.scale=x,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))},Lt.Object.defineProperties(Be.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof Be&&zt("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 x=this.ta,b=this.ib;x&&b&&(b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,x.width,x.height))}else this.Ha(null),Mt(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),Mt(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)}}}),Be.className="Overview";function Bt(){Qi.call(this),this.j=null}Xt(Bt,Qi),Bt.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 x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(x=y.viewportBounds,this.j=new Nt(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Nt(a.x-this.j.x,a.y-this.j.y)),!0)},Bt.prototype.doActivate=function(){this.j=null,Qi.prototype.doActivate.call(this)},Bt.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Bt.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var x=a.box;if(x!==null){if(this.j===null){var b=a.firstInput.documentPoint;x=x.location,this.j=new Nt(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new Nt(a.x-this.j.x,a.y-this.j.y)}}},Bt.className="OverviewDraggingTool";function Dt(){zr(this),this.H=zl,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=Yr,this.hb=!0,this.cg=null,this.ob=200}Dt.prototype.toString=function(){return"CommandHandler"},Dt.prototype.Xe=function(a){this.H=a},Dt.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=wr?y.meta:y.control,b=y.shift,E=y.alt,te=y.key;!x||te!=="C"&&te!=="Insert"?x&&te==="X"||b&&te==="Del"?this.canCutSelection()&&this.cutSelection():x&&te==="V"||b&&te==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&te==="Y"||E&&b&&te==="Backspace"?this.canRedo()&&this.redo():x&&te==="Z"||E&&te==="Backspace"?this.canUndo()&&this.undo():te==="Del"||te==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():x&&te==="A"?this.canSelectAll()&&this.selectAll():te==="Esc"?this.canStopCommand()&&this.stopCommand():te==="Up"?a.allowVerticalScroll&&(x?a.scroll("pixel","up"):a.scroll("line","up")):te==="Down"?a.allowVerticalScroll&&(x?a.scroll("pixel","down"):a.scroll("line","down")):te==="Left"?a.allowHorizontalScroll&&(x?a.scroll("pixel","left"):a.scroll("line","left")):te==="Right"?a.allowHorizontalScroll&&(x?a.scroll("pixel","right"):a.scroll("line","right")):te==="PageUp"?b&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):te==="PageDown"?b&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):te==="Home"?x&&a.allowVerticalScroll?a.scroll("document","up"):!x&&a.allowHorizontalScroll&&a.scroll("document","left"):te==="End"?x&&a.allowVerticalScroll?a.scroll("document","down"):!x&&a.allowHorizontalScroll&&a.scroll("document","right"):te===" "?this.canScrollToPart()&&this.scrollToPart():te==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():te==="Add"?this.canIncreaseZoom()&&this.increaseZoom():x&&te==="0"?this.canResetZoom()&&this.resetZoom():b&&te==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!b&&te==="G"?this.canGroupSelection()&&this.groupSelection():x&&b&&te==="G"?this.canUngroupSelection()&&this.ungroupSelection():te==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():te==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},Dt.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Dt.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Wi&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Dt.prototype.canStopCommand=function(){return!0},Dt.prototype.selectAll=function(){var a=this.diagram;a.N();try{a.currentCursor="wait",a.R("ChangingSelection",a.selection);for(var y=a.parts;y.next();)y.value.isSelected=!0;for(var x=a.nodes;x.next();)x.value.isSelected=!0;for(var b=a.links;b.next();)b.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},Dt.prototype.canSelectAll=function(){return this.diagram.allowSelect},Dt.prototype.deleteSelection=function(){var a=this.diagram;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Delete"),a.R("SelectionDeleting",a.selection);for(var y=new Ln,x=a.selection.iterator;x.next();)zc(y,x.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=""}},Dt.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Dt.prototype.copySelection=function(){var a=this.diagram,y=new Ln;for(a=a.selection.iterator;a.next();)zc(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},Dt.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Dt.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Dt.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Dt.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)wh=null,Dc="";else{x=y.model;var b=!1,E=!1,te=null;try{x.Tl()&&(b=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(E=x.Ij,x.Ij=this.copiesGroupKey),te=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=b),x.Wj()&&(x.Ij=E),x=new Tn,x.addAll(te),wh=x,Dc=y.model.dataFormat}}y.R("ClipboardChanged",x)},Dt.prototype.pasteFromClipboard=function(){var a=new Ln,y=wh;if(y===null)return a;var x=this.diagram;if(Dc!==x.model.dataFormat)return a;var b=x.model,E=!1,te=!1,ne=null;try{b.Tl()&&(E=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(te=b.Ij,b.Ij=this.copiesGroupKey),ne=x.Kj(y,x,!1)}finally{for(b.Tl()&&(b.Jj=E),b.Wj()&&(b.Ij=te),y=ne.iterator;y.next();)x=y.value,b=y.key,x.location.w()||(b.location.w()?x.location=b.location:!x.position.w()&&b.position.w()&&(x.position=b.position)),a.add(x)}return a},Dt.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var x=this.pasteFromClipboard();0<x.count&&y.clearSelection(!0);for(var b=x.iterator;b.next();)b.value.isSelected=!0;if(a!==null){var E=y.computePartsBounds(y.selection);if(E.w()){var te=this.computeEffectiveCollection(y.selection,y.Wm);Nc(y,te,new Nt(a.x-E.centerX,a.y-E.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Dt.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||wh===null||wh.count===0||Dc!==a.model.dataFormat)},Dt.prototype.undo=function(){this.diagram.undoManager.undo()},Dt.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Dt.prototype.redo=function(){this.diagram.undoManager.redo()},Dt.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Dt.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===ha&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Dt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==ha?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Dt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===ha&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Dt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==ha?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Dt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Dt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Dt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;_l(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=Yr):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),$d(y)},Dt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Dt.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(ce){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 x=y.animationManager;_l(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=Zt(this,a,[a]);if(E.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var te=function(){y.Ea();for(var ce=E.pop();0<E.length&&ce instanceof Xn&&ce.isTreeExpanded&&(!(ce instanceof Ir)||ce.isSubGraphExpanded);)ce=E.pop();0<E.length?(ce instanceof pr&&y.tv(ce.actualBounds),ce instanceof Xn&&!ce.isTreeExpanded&&(ce.isTreeExpanded=!0),ce instanceof Ir&&!ce.isSubGraphExpanded&&(ce.isSubGraphExpanded=!0)):(ce instanceof pr&&y.es(ce.actualBounds),y.am("LayoutCompleted",ne)),y.eb("Scroll To Part")},ne=function(){Mn(te,(x.isEnabled?x.duration:0)+b)};y.Bj("LayoutCompleted",ne),te()}}else{var se=y.position.copy();y.es(a.actualBounds),se.Xa(y.position)&&x.Cc()}}};function Zt(a,y,x){if(y.isVisible())return x;if(y instanceof hi)Zt(a,y.adornedPart,x);else if(y instanceof Hn){var b=y.fromNode;b!==null&&Zt(a,b,x),y=y.toNode,y!==null&&Zt(a,y,x)}else y instanceof Xn&&(b=y.labeledLink,b!==null&&Zt(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),Zt(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),Zt(a,y,x));return x}Dt.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof pr)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},Dt.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),_l(y.animationManager,"Collapse Tree");var x=new Tn;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Xn&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},Dt.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Xn&&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 Xn&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Dt.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),_l(y.animationManager,"Expand Tree");var x=new Tn;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Xn&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},Dt.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Xn)||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 Xn&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Dt.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var x=this.archetypeGroupData;if(x!==null){var b=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var E=new Tn,te=a.selection.iterator;te.next();){var ne=te.value;ne.Zc()&&ne.canGroup()&&E.add(ne)}for(var se=new Tn,ce=E.iterator;ce.next();){var ge=ce.value;te=!1;for(var xe=E.iterator;xe.next();)if(ge.Td(xe.value)){te=!0;break}te||se.add(ge)}if(0<se.count){var Ae=se.first().containingGroup;if(Ae!==null)for(;Ae!==null;){E=!1;for(var Ue=se.iterator;Ue.next();)if(!Ue.value.Td(Ae)){E=!0;break}if(E)Ae=Ae.containingGroup;else break}if(x instanceof Ir)Ws(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var Je=y.copyNodeData(x);gn(Je)&&(y.xf(Je),b=a.ii(Je))}if(b!==null){Ae!==null&&this.isValidMember(Ae,b)&&(b.containingGroup=Ae);for(var rt=se.iterator;rt.next();){var ht=rt.value;this.isValidMember(b,ht)&&(ht.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},Dt.prototype.canGroupSelection=function(){var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowGroup||!a.model.Xj()||this.archetypeGroupData===null)return!1;for(a=a.selection.iterator;a.next();){var y=a.value;if(y.Zc()&&y.canGroup())return!0}return!1};function vn(a){var y=cn();for(a=a.iterator;a.next();){var x=a.value;x instanceof Hn||y.push(x)}a=new Ln,x=y.length;for(var b=0;b<x;b++){for(var E=y[b],te=!0,ne=0;ne<x;ne++)if(E.Td(y[ne])){te=!1;break}te&&a.add(E)}return Pn(y),a}Dt.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Hn)return!1;if(a!==null){if(a===y||a.Td(y))return!1;var x=a.memberValidation;if(x!==null&&!x(a,y)||a.data===null&&y.data!==null||a.data!==null&&y.data===null)return!1}return x=this.memberValidation,x!==null?x(a,y):!0},Dt.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.model;if(x.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var b=new Tn;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var te=E.value;te instanceof Ir&&te.canUngroup()&&b.add(te)}var ne=new Tn;if(0<b.count){y.clearSelection(!0);for(var se=b.iterator;se.next();){var ce=se.value;ce.expandSubGraph();var ge=ce.containingGroup,xe=ge!==null&&ge.data!==null?x.wa(ge.data):void 0;ne.addAll(ce.memberParts);for(var Ae=ne.iterator;Ae.next();){var Ue=Ae.value;if(Ue.isSelected=!0,!(Ue instanceof Hn)){var Je=Ue.data;Je!==null?x.mp(Je,xe):Ue.containingGroup=ge}}y.remove(ce)}}y.R("SelectionUngrouped",b,ne)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Dt.prototype.canUngroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowDelete||!y.allowUngroup||!y.model.Xj())return!1;if(a!==null){if(!(a instanceof Ir))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Ir&&y.canUngroup())return!0;return!1},Dt.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=vn(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},Dt.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),_l(y.animationManager,"Collapse SubGraph");var x=new Tn;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Ir&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},Dt.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Ir&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Ir&&y.isSubGraphExpanded)return!0;return!1},Dt.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),_l(y.animationManager,"Expand SubGraph");var x=new Tn;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Ir&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},Dt.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Ir&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Ir&&!y.isSubGraphExpanded)return!0;return!1},Dt.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.toolManager.findTool("TextEditing");if(x!==null){if(a===null){a=null;for(var b=y.selection.iterator;b.next();){var E=b.value;if(E.canEdit()){a=E;break}}if(a===null)return;a=a.Nl(function(te){return te instanceof ji&&te.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},Dt.prototype.canEditTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowTextEdit||y.toolManager.findTool("TextEditing")===null)return!1;if(a!==null){if(!(a instanceof ji))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(x){return x instanceof ji&&x.editable}),a!==null))return!0;return!1},Dt.prototype.showContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");if(x!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=x.findObjectWithContextMenu(a),a!==null)){var b=y.lastInput,E=null;a instanceof Jt?E=a.ga(ui):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new Nt(E.x+E.width/2,E.y+E.height/2)),E!==null&&(b.viewPoint=y.op(E),b.documentPoint=E,b.left=!1,b.right=!0,b.up=!0),y.currentTool=x,uu(x,!1,a)}},Dt.prototype.canShowContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");return x===null?!1:(a===void 0&&(a=0<y.selection.count?y.selection.first():y),x.findObjectWithContextMenu(a)!==null)},Dt.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,b=x.toolManager.findTool("Dragging"),E=x.currentTool===b;if(y===void 0&&(y=E?b.dragOptions:x.Wm),b=new qn,a===null)return b;for(var te=a.iterator;te.next();)Hl(x,b,te.value,E,y);if(x.draggedLink!==null&&y.dragsLink)return b;for(te=a.iterator;te.next();)a=te.value,a instanceof Hn&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},Lt.Object.defineProperties(Dt.prototype,{diagram:{get:function(){return this.H}},copiesClipboardData:{get:function(){return this.o},set:function(a){this.o=a}},copiesConnectedLinks:{get:function(){return this.u},set:function(a){this.u=a}},deletesConnectedLinks:{get:function(){return this.Ha},set:function(a){this.Ha=a}},copiesTree:{get:function(){return this.ia},set:function(a){this.ia=a}},deletesTree:{get:function(){return this.nb},set:function(a){this.nb=a}},copiesParentKey:{get:function(){return this.V},set:function(a){this.V=a}},copiesGroupKey:{get:function(){return this.F},set:function(a){this.F=a}},archetypeGroupData:{get:function(){return this.j},set:function(a){this.j=a}},memberValidation:{get:function(){return this.ij},set:function(a){this.ij=a}},defaultScale:{get:function(){return this.diagram.defaultScale},set:function(a){this.diagram.defaultScale=a}},zoomFactor:{get:function(){return this.Hb},set:function(a){1<a||zt("zoomFactor must be larger than 1.0, not: "+a),this.Hb=a}},isZoomToFitRestoreEnabled:{get:function(){return this.hb},set:function(a){this.hb=a}},scrollToPartPause:{get:function(){return this.ob},set:function(a){this.ob=a}}}),Dt.className="CommandHandler",$g=function(){return new Dt};function Jt(){zr(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Nt(NaN,NaN).freeze(),this.jd=Xi,this.Ab=new Wr,this.wh=new Wr,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=va,this.uc=new wn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new wn(NaN,NaN,NaN,NaN).freeze(),this.dc=new wn(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=wi,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 Bn,An,ir,lr,br,Dr,ti,Ur,si,ki;Jt.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=Qt(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},Jt.prototype.Vw=function(a){var y=this.Dh;if(Sn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},Jt.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Jt.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 x=this.Dh[y];a[x]=this[x]}return a},Jt.prototype.copy=function(){return this.clone()},it=Jt.prototype,it.qb=function(a){a.classType===Hn?a.name.indexOf("Orient")===0?this.segmentOrientation=a:zt("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Jt&&(this.stretch=a)},it.toString=function(){return Cn(this.constructor)+"#"+Ar(this)},it.th=function(){this.A!==null&&(this.A.nc=!0)};function Hr(a){a.A===null?a.A=new pd:a.A.nc&&(a.A=a.A.copy())}it.Xc=function(){if(this.ba===null){var a=new Fp;a.Xi=io,a.yj=io,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},it.cb=function(a,y,x,b,E,te,ne){var se=this.part;if(se!==null&&(se.gk(a,y,x,b,E,te,ne),x===this&&a===Zi&&Jo(this)&&zi(this,se,y),te=this.diagram,this.animationTriggers===null||te===null||!te.pi||te.undoManager.isUndoingRedoing||te.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&te.animationManager.isEnabled&&!te.animationManager.isTicking&&(this.jo===null&&(this.jo=new qn),ne=te.undoManager.transactionLevel===0,a.startCondition===kc?ne=!0:a.startCondition===ph&&(ne=!1),ne?(te=new ea,Wg(a,te),ne=this.jo.get(a),ne!==null&&ne.stop(),this.jo.add(a,te),te.vu=this,te.Nw=a,te.add(this,y,b,E),te.start()):(_l(te.animationManager,"Trigger"),te.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof Rn&&x===se&&(se.l&16777216)!==0&&se.data!==null))for(x=this.O.s,b=x.length,E=0;E<b;E++)se=x[E],se instanceof Rn&&Lh(se,function(ce){ce.data!==null&&ce.l&16777216&&ce.La(y)})};function zi(a,y,x){var b=a.ih();if(b!==null)for(var E=a.localBindings.iterator;E.next();){var te=E.value,ne=null;if(te.sourceName!==null){if(ne=TS(te,b,a),ne===null)continue;te.sp(a,ne,x,null)}else if(te.isToModel){var se=y.diagram;se===null||se.skipsModelSourceBindings||te.sp(a,se.model.modelData,x,b)}else{if(se=b.data,se===null)continue;var ce=y.diagram;ce===null||ce.skipsModelSourceBindings||te.sp(a,se,x,b)}ne===a&&(se=b.ks(te.Ai),se!==null&&te.Mv(se,ne,x))}}it.ks=function(a){return this.bindingId===a?this:null},it.g=function(a,y,x){this.cb(Zi,a,this,y,x)},it.Ge=function(a,y,x,b){var E=this.uc;if(E.h(a,y,x,b),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new Wr);var te=this.Lb;te.reset(),this.no(te,a,y,x,b),te.pp(E)}};function Do(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}it.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?Mi(a.x,a.y,0,0,0,b.height)<=y||Mi(a.x,a.y,0,b.height,b.width,b.height)<=y||Mi(a.x,a.y,b.width,b.height,b.width,0)<=y||Mi(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},it.se=function(){return!0},it.ca=function(a){var y=Nt.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Nt.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var E=b.Ql("extraTouchThreshold"),te=b.Ql("extraTouchArea"),ne=te/2,se=this.naturalBounds;b=this.Df()*b.scale;var ce=1/b;if(se.width*b<E&&se.height*b<E)return a=Yi(x.x-ne*ce,x.y-ne*ce,x.width+te*ce,x.height+te*ce,y.x,y.y),Nt.free(y),a}return E=!1,(this instanceof hi||this instanceof _r?Yi(x.x-5,x.y-5,x.width+10,x.height+10,y.x,y.y):x.ca(y))&&(this.tb&&!this.tb.ca(y)?E=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?E=!0:E=this.gh(a)),Nt.free(y),E},it.gh=function(a){var y=this.naturalBounds;return Yi(0,0,y.width,y.height,a.x,a.y)},it.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=wn.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=Nt.allocAt(a.x,a.y);return y.ca(x.Cd(E))&&(E.h(a.x,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.y),y.ca(x.Cd(E))&&(b=!0)))),Nt.free(E),wn.free(y),b},it.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=Nt.allocAt(0,0);return a.ca(y.Ga(E))&&(E.h(0,x.height),a.ca(y.Ga(E))&&(E.h(x.width,x.height),a.ca(y.Ga(E))&&(E.h(x.width,0),a.ca(y.Ga(E))&&(b=!0)))),Nt.free(E),b},it.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=Nt.allocAt(0,0),E=Nt.allocAt(0,x.height),te=Nt.allocAt(x.width,x.height),ne=Nt.allocAt(x.width,0),se=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(E))||a.ca(y.Ga(te))||a.ca(y.Ga(ne)))se=!0;else{x=wn.allocAt(0,0,x.width,x.height);var ce=Nt.allocAt(a.x,a.y);x.ca(y.Cd(ce))?se=!0:(ce.h(a.x,a.bottom),x.ca(y.Cd(ce))?se=!0:(ce.h(a.right,a.bottom),x.ca(y.Cd(ce))?se=!0:(ce.h(a.right,a.y),x.ca(y.Cd(ce))&&(se=!0)))),Nt.free(ce),wn.free(x),!se&&(qt.us(a,b,E)||qt.us(a,E,te)||qt.us(a,te,ne)||qt.us(a,ne,b))&&(se=!0)}return Nt.free(b),Nt.free(E),Nt.free(te),Nt.free(ne),se},it.ga=function(a,y){if(y===void 0&&(y=new Nt),a instanceof sr){var x=this.naturalBounds;y.h(a.x*x.width+a.offsetX,a.y*x.height+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},it.mi=function(a){a===void 0&&(a=new wn);var y=this.naturalBounds,x=this.oe,b=Nt.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),yi(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),yi(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),yi(a,b.x,b.y,0,0),Nt.free(b),a},it.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},it.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},it.qs=function(a,y){return y===void 0&&(y=new Nt),y.assign(a),this.oe.Cd(y),y},it.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},it.Sj=function(a,y,x,b,E){var te=this.transform,ne=1/(te.m11*te.m22-te.m12*te.m21),se=te.m22*ne,ce=-te.m12*ne,ge=-te.m21*ne,xe=te.m11*ne,Ae=ne*(te.m21*te.dy-te.m22*te.dx),Ue=ne*(te.m12*te.dx-te.m11*te.dy);return this.areaBackground!==null?(te=this.actualBounds,qt.Ff(te.left,te.top,te.right,te.bottom,a,y,x,b,E)):(ne=a*se+y*ge+Ae,a=a*ce+y*xe+Ue,y=x*se+b*ge+Ae,x=x*ce+b*xe+Ue,E.h(0,0),b=this.naturalBounds,x=qt.Ff(0,0,b.width,b.height,ne,a,y,x,E),E.transform(te),x)},Jt.prototype.measure=function(a,y,x,b){if(ps(this)!==!1){var E=this.Kg,te=E.right+E.left;E=E.top+E.bottom,a=Math.max(a-te,0),y=Math.max(y-E,0),x=Math.max((x||0)-te,0),b=Math.max((b||0)-E,0),te=this.angle,E=this.desiredSize;var ne=this.kq();te===90||te===270?(a=isFinite(E.height)?E.height+ne:a,y=isFinite(E.width)?E.width+ne:y):(a=isFinite(E.width)?E.width+ne:a,y=isFinite(E.height)?E.height+ne:y),E=x||0,ne=b||0;var se=this instanceof Rn;switch(Ra(this,!0)){case An:ne=E=0,se&&(y=a=1/0);break;case Bn:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(ne=y);break;case lr:isFinite(a)&&a>x&&(E=a),ne=0,se&&(y=1/0);break;case br:isFinite(y)&&y>b&&(ne=y),E=0,se&&(a=1/0)}se=this.maxSize;var ce=this.minSize;E>se.width&&ce.width<se.width&&(E=se.width),ne>se.height&&ce.height<se.height&&(ne=se.height),x=Math.max(E,ce.width),b=Math.max(ne,ce.height),se.width<x&&(x=Math.min(ce.width,x)),se.height<b&&(b=Math.min(ce.height,b)),a=Math.min(se.width,a),y=Math.min(se.height,y),a=Math.max(x,a),y=Math.max(b,y),(te===90||te===270)&&(te=a,a=y,y=te,te=x,x=b,b=te),this.uc.ka(),this.Wl(a,y,x,b),this.uc.freeze(),this.uc.w()||zt("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),xo(this,!1)}},Jt.prototype.Wl=function(){},Jt.prototype.Dd=function(){return!1},Jt.prototype.arrange=function(a,y,x,b,E){this.Uk();var te=wn.alloc();te.assign(this.Ib),this.Ib.ka(),Ma(this)===!1?this.Ib.h(a,y,x,b):this.eh(a,y,x,b),this.Ib.freeze(),E===void 0?this.tb=null:this.tb=E,x=!1,E!==void 0?x=!0:(E=this.panel,E!==null&&Vu(E)&&(E=E.panel),E!==null&&(E=E.dc,b=this.measuredBounds,this.areaBackground!==null&&(b=this.Ib),x=y+b.height,b=a+b.width,x=!(0<=a+.05&&b<=E.width+.05&&0<=y+.05&&x<=E.height+.05),this instanceof ji&&(a=this.naturalBounds,this.Lq>a.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||zt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(te,this.Ib),Ul(this,!1),wn.free(te)},it=Jt.prototype,it.eh=function(){};function da(a,y,x,b,E){if(a.Ib.h(y,x,b,E),!a.desiredSize.w()){var te=a.uc;x=a.Kg,y=x.right+x.left;var ne=x.top+x.bottom;switch(x=te.width+y,te=te.height+ne,b+=y,E+=ne,y=Ra(a,!0),x===b&&te===E&&(y=An),y){case An:(x>b||te>E)&&(xo(a,!0),a.measure(x>b?b:x,te>E?E:te,0,0));break;case Bn:xo(a,!0),a.measure(b,E,0,0);break;case lr:xo(a,!0),a.measure(b,te,0,0);break;case br:xo(a,!0),a.measure(x,E,0,0)}}}it.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||_0(x,!0),this.N(),Ai(a,y)||(x.oh(),this.Pn(x)))},it.Pn=function(a){this.portId!==null&&(_0(a,!0),a instanceof Xn&&W1(a,this))},it.gc=function(a,y){if(!Es(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var b=1;x!==1&&(b=a.globalAlpha,a.globalAlpha=b*x);var E="";this.filter!==""&&(E=a.filter,a.filter=this.filter);var te=this instanceof Rn&&Vu(this),ne=this.Ib;if(te){var se=this.Ib,ce=this.dc,ge=this.areaBackground,xe=this.Ma;ge===null&&xe===null||a.yc(),ge!==null&&(to(this,a,ge,!0,!0,ce,se),ge instanceof xi&&ge.type===Ls?(a.beginPath(),a.rect(se.x,se.y,se.width,se.height),a.ng(ge)):a.fillRect(se.x,se.y,se.width,se.height)),xe!==null&&(to(this,a,xe,!0,!1,ce,se),xe instanceof xi&&xe.type===Ls?(a.beginPath(),a.rect(se.x,se.y,se.width,se.height),a.ng(xe)):a.fillRect(se.x,se.y,se.width,se.height)),this.hh(a,y)}if(!te&&(te||ne.width!==0&&ne.height!==0&&!isNaN(ne.x)&&!isNaN(ne.y))){te=this.transform,se=this.panel,this.l&4096&&$o(this),ge=this.part,ce=!1;var Ae=0;ge&&y.Gf("drawShadows")&&(ce=ge.isShadowed)&&(xe=ge.shadowOffset,Ae=Math.max(xe.y,xe.x)*y.scale*y.Mb),xe=this.Dd();var Ue;if(!(Ue=y.$i||!xe)){var Je=this.naturalBounds;Ue=this.wh;var rt=Ue.m11,ht=Ue.m21,Ft=Ue.dx,Ot=Ue.m12,_t=Ue.m22,Gt=Ue.dy,Kt,Yt=Kt=0;Ue=Kt*rt+Yt*ht+Ft;var on=Kt*Ot+Yt*_t+Gt;Kt=Je.width+Ae,Yt=0;var Zn=Kt*rt+Yt*ht+Ft;Kt=Kt*Ot+Yt*_t+Gt,Yt=Math.min(Ue,Zn);var nr=Math.min(on,Kt),Jn=Math.max(Ue+0,Zn)-Yt,Gn=Math.max(on+0,Kt)-nr;Ue=Yt,on=nr,Kt=Je.width+Ae,Yt=Je.height+Ae,Zn=Kt*rt+Yt*ht+Ft,Kt=Kt*Ot+Yt*_t+Gt,Yt=Math.min(Ue,Zn),nr=Math.min(on,Kt),Jn=Math.max(Ue+Jn,Zn)-Yt,Gn=Math.max(on+Gn,Kt)-nr,Ue=Yt,on=nr,Kt=0,Yt=Je.height+Ae,Zn=Kt*rt+Yt*ht+Ft,Kt=Kt*Ot+Yt*_t+Gt,Yt=Math.min(Ue,Zn),nr=Math.min(on,Kt),Jn=Math.max(Ue+Jn,Zn)-Yt,Gn=Math.max(on+Gn,Kt)-nr,Ue=Yt,on=nr,Ae=y.viewportBounds,Je=Ae.x,rt=Ae.y,Ue=!(Ue>Ae.width+Je||Je>Jn+Ue||on>Ae.height+rt||rt>Gn+on)}if(Ue){if(Ue=(this.l&256)!==0,a.clipInsteadOfFill&&(Ue=!1),this instanceof ji&&(a.font=this.font),Ue){if(on=se.se()?se.naturalBounds:se.actualBounds,Jn=Math.max(ne.x,on.x),Gn=Math.max(ne.y,on.y),Ae=Math.min(ne.right,on.right)-Jn,Je=Math.min(ne.bottom,on.bottom)-Gn,rt=this.tb,rt!==null&&(Jn=rt.x,Gn=rt.y,Ae=rt.width,Je=rt.height),Jn>ne.width+ne.x||ne.x>on.width+on.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(Jn,Gn,Ae,Je),a.clip()}if(xe){if(!ge.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}ce&&(on=ge.shadowOffset,a.Ev(on.x*y.scale*this.scale*y.Mb,on.y*y.scale*this.scale*y.Mb,ge.shadowBlur),pu(a),a.shadowColor=ge.shadowColor)}ce&&this.shadowVisible===!0?pu(a):ce&&this.shadowVisible===!1&&Wl(a),ge=this.naturalBounds,this.areaBackground!==null&&(a.yc(),fs(this,a,ge,ne)),a.transform(te.m11,te.m12,te.m21,te.m22,te.dx,te.dy),ce&&Ko(this,se)&&this.shadowVisible===null&&Wl(a),this.Ma!==null&&(a.yc(),Wa(this,a,ge,ne)),ce&&(this.Ma!==null||this.areaBackground!==null||Ko(this,se))?(tl(this,!0),this.shadowVisible===null&&Wl(a)):tl(this,!1),this.hh(a,y),ce&&this.l&512&&pu(a),xe&&ce&&Wl(a),Ue&&(a.restore(),a.Vc(this instanceof Rn)),te.ws()||(y=1/(te.m11*te.m22-te.m12*te.m21),a.transform(te.m22*y,-te.m12*y,-te.m21*y,te.m11*y,y*(te.m21*te.dy-te.m22*te.dx),y*(te.m12*te.dx-te.m11*te.dy)))}}x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E)}}};function Ko(a,y){return y===null?!1:(Vu(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Rn.Auto||y.type===Rn.Spot)&&y.Pb()!==a)}it.Dv=function(){};function fs(a,y,x,b){to(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof xi&&a.areaBackground.type===Ls?(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 Wa(a,y,x,b){var E=a.kq(),te=x.x,ne=x.y,se=x.width+E,ce=x.height+E;to(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof xi&&a.Ma.type===Ls?(y.beginPath(),y.rect(te-E/2,ne-E/2,se,ce),y.ng(a.Ma)):y.fillRect(te-E/2,ne-E/2,se,ce)}function oa(a,y,x){for(var b=y.O.s,E=b.length,te=-1,ne=0;ne<E;ne++)if(b[ne]===a){te=ne;break}if(a=te,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(x):y.svg.Ma?y.svg.Ma.after(x):y.type===Rn.Table?(y=y.svg.getElementsByClassName("gojs-ts"),y=y.length!==0?y[0]:null,y!==null&&y.after(x)):y.svg.prepend(x);else{for(;a!==0&&!y.M(a-1).Ed();)a--;a===0?y.svg.prepend(x):(a=y.M(a-1).svg,a!==null?a.after(x):y.svg.appendChild(x))}}function Es(a,y,x){if(!(y instanceof rs))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,E=a.nk(y);if(a.kk(y,x,E))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&&oa(a,b,a.svg),!0);if(a.Dd()&&a.isShadowed){var te=a.shadowOffset;y.Ev(te.x*x.scale*a.scale*x.Mb,te.y*x.scale*a.scale*x.Mb,a.shadowBlur),pu(y),y.shadowColor=a.shadowColor}a instanceof ji&&(y.font=a.font),y.yd=null;var ne=a.transform;te=a instanceof Rn;var se=a instanceof Rn?Vu(a):!1;a.l&4096&&$o(a);var ce=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,te&&se?(Bp(y,1,0,0,1,0,0),a.svg=y.ad):te?(Bp(y,ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy),a.svg=y.ad):Bp(y,1,0,0,1,0,0)),E=a.naturalBounds,a.areaBackground!==null){var ge=ne.copy().Vj();y.rb.ha=[ge.m11,ge.m12,ge.m21,ge.m22,ge.dx,ge.dy],fs(a,y,E,ce),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return te||(y.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy]),a.background!==null&&(te?(se&&(y.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy]),Wa(a,y,E,ce),se&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy],Wa(a,y,E,ce)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),ne=y.yd,E=a.part,se=!1,E&&x.Gf("drawShadows")&&(se=E.isShadowed),y.clipInsteadOfFill&&(se=!1),a.Dd()&&se&&pu(y),se&&a.shadowVisible===!0?pu(y):se&&a.shadowVisible===!1&&Wl(y),E=a.panel,se&&Ko(a,E)&&a.shadowVisible===null&&Wl(y),y.Il&&(ge=x.computePixelRatio(),ge="drop-shadow("+y.shadowOffsetX/ge+"px "+y.shadowOffsetY/ge+"px "+y.shadowBlur/ge/2+"px "+y.shadowColor+")",a.background!==null&&ne.Ma.setAttributeNS(null,"filter",ge),a.areaBackground!==null&&ne.gd.setAttributeNS(null,"filter",ge)),se&&(a.Ma!==null||a.areaBackground!==null||Ko(a,E))?(tl(a,!0),a.shadowVisible===null&&Wl(y)):tl(a,!1),E=se,a.hh(y,x),te&&y.nh.pop(),y.o&&y.nh.pop(),ne=y.Gv.hs,se=te?a.svg:y.yd,ge=a.svg,!te&&ge!==null&&se!==ge&&ge.parentNode===a.panel.svg?(a.svg.replaceWith(se),a.svg=se,se!==null&&a.$o(y,b,ce,se),Ba(y,ge),!0):(a.svg=se,ne!==null&&se===null&&(um(y),y.nh.pop()),se===null||(a.$o(y,b,ce,se),y.Il&&(x=x.computePixelRatio(),a.Dv(se,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),E&&a.l&512&&pu(y),a.Dd()&&Wl(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&se.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&se.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(se):y.Nj.prepend(se),y.ti=se):b!==null&&oa(a,b,se),ne!==null&&ne(a,se)),!0)}it.$o=function(a,y,x,b){var E=(this.l&256)!==0;if(a.clipInsteadOfFill&&(E=!1),E){var te=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,te.x),E=Math.max(x.y,te.y);var ne=Math.min(x.right,te.right)-y;x=Math.min(x.bottom,te.bottom)-E,te=this.tb,te!==null&&(y=te.x,E=te.y,ne=te.width,x=te.height),te=b.getAttribute("clip-path");var se=null;te!==null&&(se=a.svg.getElementById(te.split("#")[1].slice(0,-1))),se===null?(te="CLIP"+fi++,se=a.Ud("clipPath",{id:te}),y=a.Ud("rect",{x:y,y:E,width:ne,height:x}),this instanceof Rn&&(E=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")),se.appendChild(y),a.svg.appendChild(se),b.setAttributeNS(null,"clip-path","url(#"+te+")")):(a=se.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",E.toString()),a.setAttribute("width",ne.toString()),a.setAttribute("height",x.toString()))}else b.removeAttributeNS(null,"clip-path"),Ba(a,b)};function Ba(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function aa(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=$r(y);for(var b=y.next();!b.done;b=y.next())b=x.getElementById(b.value.split("#")[1].slice(0,-1)),b!==null&&b.remove()}a.svg.remove()}}it.hh=function(){},it.lv=function(){this.Uc=!0},it.kk=function(a,y,x){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"&&x||y.nodeName==="g"&&!x)return!1;var b=this.transform,E=this instanceof Rn?Vu(this):!1;if(!(this instanceof Rn&&E))if(this instanceof za){var te=this.bt;a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy],te!==null&&Yy(a,te[0],te[1],te[2],te[3],te[4],te[5],te[6],te[7]),x?y.lastElementChild.setAttributeNS(null,"transform",Jy(a)):y.setAttributeNS(null,"transform",Jy(a))}else if(!x||this instanceof Rn)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof _r){te=y.getElementsByTagName("path");for(var ne=0;ne<te.length;ne++)te[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 te=this.Dd()?this.opacity*a.globalAlpha:this.opacity,te===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",te.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(te=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],fs(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),te&&cm(a,te)),(this.background!==null||y.Ma!==void 0)&&(te=y.Ma,this.background===null?(cm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((E||x&&!(this instanceof Rn))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),Wa(this,a,this.naturalBounds,this.actualBounds),y.Ma?(cm(a,y.Ma),x=y.Ma.getAttribute("filter"),x!==null&&a.ad.setAttribute("filter",x),y.Ma.replaceWith(a.ad)):y.prepend(a.ad),y.Ma=a.ad),te&&cm(a,te)),this.$o(a,this.panel,this.actualBounds,y),!0},it.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 to(a,y,x,b,E,te,ne){if(x!==null){var se=1,ce=1;if(typeof x=="string")b?y.fillStyle=x:y.strokeStyle=x;else if(x.type===Ku)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var ge=a.kq();if(se=te.width,ce=te.height,E?(se=ne.width,ce=ne.height):b||(se+=ge,ce+=ge),(te=y instanceof Th)&&x.xe&&(x.type===yf||x.yk===se&&x.ft===ce))var xe=x.xe;else{var Ae=0,Ue=0,Je=0,rt=0,ht=0,Ft=0;if(Ft=ht=0,E?(ht=ne.x,Ft=ne.y):b||(ht-=ge/2,Ft-=ge/2),Ae=x.start.x*se+x.start.offsetX,Ue=x.start.y*ce+x.start.offsetY,Je=x.end.x*se+x.end.offsetX,rt=x.end.y*ce+x.end.offsetY,Ae+=ht,Je+=ht,Ue+=Ft,rt+=Ft,x.type===mu)xe=y.createLinearGradient(Ae,Ue,Je,rt);else if(x.type===Ls)Ft=isNaN(x.endRadius)?Math.max(se,ce)/2:x.endRadius,isNaN(x.startRadius)?(ht=0,Ft=Math.max(se,ce)/2):ht=x.startRadius,xe=y.createRadialGradient(Ae,Ue,ht,Je,rt,Ft);else if(x.type===yf)try{xe=y.createPattern(x.pattern,"repeat")}catch(_t){xe=null}if(x.type!==yf&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)xe.addColorStop(E.key,E.value);if(te&&(x.xe=xe,xe!==null&&(x.yk=se,x.ft=ce),xe===null&&x.type===yf&&x.yk!==-1)){x.yk=-1;var Ot=a.diagram;Ot!==null&&x.yk===-1&&Mn(function(){Ot.redraw()},600)}}b?y.fillStyle=xe:y.strokeStyle=xe}}}it.rg=function(a){if(a instanceof Rn)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},it.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},it.If=function(){for(var a=this instanceof Rn?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function $o(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){Hs(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 x=a.naturalBounds;a.no(y,x.x,x.y,x.width,x.height)}Hs(a,!1),Ms(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,Ms(a,!1)):y.oe!==null&&(x=a.wh,x.reset(),y.se()?x.multiply(y.wh):y.panel!==null&&x.multiply(y.panel.wh),x.multiply(a.Ab),a.Kk=a.scale*y.Kk,Ms(a,!1)))}it.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var te=Nt.alloc();te.yi(y,x,b,E,ui),a.rotate(this.Kb,te.x,te.y),Nt.free(te)}},it.v=function(a){if(!ps(this)){a===void 0&&(a=!1),xo(this,!0),Ul(this,!0);var y=this.panel;y===null||a||y.v()}},it.Uj=function(){ps(this)||(xo(this,!0),Ul(this,!0))};function Ea(a){if(!Ma(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof Xn&&a.Bd(),y.$b())),Ul(a,!0)}}it.Uk=function(){!(this.l&2048)&&(Hs(this,!0),Ms(this,!0))},it.Wu=function(){Ms(this,!0)},it.N=function(){var a=this.part;a!==null&&a.N()};function Ra(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===Rn.Table?fl(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===Rn.Auto&&b.Pb()===a?Vo(a,Bn,y):x===Dr?b!==null?b.type===Rn.Spot&&b.Pb()===a?Vo(a,Bn,y):(x=b.defaultStretch,x===Dr?Vo(a,An,y):Vo(a,x,y)):Vo(a,An,y):Vo(a,x,y)}function fl(a,y,x,b){var E=a.stretch;if(E!==Dr)return Vo(a,E,b);var te=E=null;switch(y.stretch){case br:te=!0;break;case Bn:te=!0}switch(x.stretch){case lr:E=!0;break;case Bn:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===lr||y===Bn),te===null&&(te=y===br||y===Bn),E===!0&&te===!0?Vo(a,Bn,b):E===!0?Vo(a,lr,b):te===!0?Vo(a,br,b):Vo(a,An,b)}function Vo(a,y,x){if(x)return y;if(y===An||(x=a.desiredSize,x.w()))return An;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===lr)return An;if(y===Bn)return br}else{if(y===br)return An;if(y===Bn)return lr}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===br)return An;if(y===Bn)return lr}else{if(y===lr)return An;if(y===Bn)return br}return y}function tl(a,y){a.l=y?a.l|512:a.l&-513}function Jo(a){return(a.l&1024)!==0}function fd(a,y){a.l=y?a.l|1024:a.l&-1025}function Hs(a,y){a.l=y?a.l|2048:a.l&-2049}function Ms(a,y){a.l=y?a.l|4096:a.l&-4097}function ps(a){return(a.l&8192)!==0}function xo(a,y){a.l=y?a.l|8192:a.l&-8193}function Ma(a){return(a.l&16384)!==0}function Ul(a,y){a.l=y?a.l|16384:a.l&-16385}it.Gj=function(){this.svg=null},it.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},it.Av=function(){},it.zv=function(a){return this.pa=a,Ea(this),!0},it.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},it.kq=function(){return 0};function Eh(a){var y=a.part;if(y instanceof Xn&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||W1(y,a)}}function $y(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Rn?a instanceof Xn?a.Bd():a.qm(a,function(x){Eh(x)}):Eh(a))}it.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new ho(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&f1(a)&&zt("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new Tn),this.localBindings.add(E),this},it.set=function(a){return Object.assign(this,a),this},it.Du=function(a){return r0(this,a),this},it.apply=function(a){return a(this),this},it.nm=function(a){return vh(this,a),this},it.pz=function(){return this.ih()},it.ih=function(){for(var a=this instanceof Rn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},it.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new qn),this.animationTriggers.add(a.propertyName,a),this};function Ts(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var b=null,E=null;if(typeof a=="function")E=a;else if(typeof a=="string"){var te=df.I(a);typeof te=="function"?(x=Qt(arguments),b=te(x),gn(b)||zt('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=Rt.go[a]}if(b===null&&(E!=null&&E.constructor||zt("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),b=new E),E=1,b instanceof sn&&1<x.length){te=b;var ne=x[1];(typeof ne=="string"||ne instanceof HTMLDivElement)&&(hp(te,ne),E++)}for(;E<x.length;E++)te=x[E],te===void 0?zt("Undefined value at argument "+E+" for object being constructed by GraphObject.make: "+b):r0(b,te);return b}function r0(a,y){if(typeof y=="string")if(a instanceof ji)a.text=y;else if(a instanceof _r)a.figure=y;else if(a instanceof za)a.source=y;else if(a instanceof Rn)y=nl.I(y),y!==null&&(a.type=y);else if(a instanceof xi){var x=_n(xi,y);x!==null?a.type=x:zt("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Un?(y=_n(Un,y),y!==null&&(a.type=y)):a instanceof di&&(y=_n(di,y),y!==null&&(a.type=y));else if(y instanceof Jt)a instanceof Rn||zt("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof wo){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 wo?Mm(b,y):zt("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof fn)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Mo)a.type=y;else if(y instanceof ho)a instanceof Jt||a instanceof wo?a.bind(y):zt("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Qs)a instanceof Jt?a.Jv(y):zt("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof jo)a instanceof Un&&a.type===Un.o?a.figures.add(y):zt("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof di)a instanceof jo?a.segments.add(y):zt("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Ui)a instanceof sn||a instanceof Ir?a.layout=y:zt("A Layout can only be assigned to a Diagram or a Group, not to: "+a);else if(Array.isArray(y))for(x=0;x<y.length;x++)r0(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof xi){x=new hr;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);vh(a,x)}else if(a instanceof wo){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&zt("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+E),a.isRow=!0,a.index=E):y.column!==void 0&&(E=y.column,(E==null||E===1/0||isNaN(E)||0>E)&&zt("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new hr;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);vh(a,E)}else vh(a,y);else zt('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Wu(a,y){df.add(a,y)}function lm(a,y,x){x===void 0&&(x=null);var b=a[1];if(typeof x=="function"?x(b):typeof b=="string")return a.splice(1,1),b;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}Lt.Object.defineProperties(Jt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new pd),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 pd),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 pd),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Hr(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&&(Hr(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:ka},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Bc),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===ka&&(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 Bc),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 Bc),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:ni},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new Bc),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:Dr},set:function(a){var y=this.stretch;y!==a&&(Hr(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&&(Hr(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)&&Fn(a,"0 <= value <= 1",Jt,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Ah(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(Ah(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(),$y(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&&md(a,"GraphObject.areaBackground"),a instanceof xi&&a.freeze(),Hr(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&&md(a,"GraphObject.background"),a instanceof xi&&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 pr)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,x=a.y,b=this.pa,E=b.x;b=b.y,(E===y||isNaN(E)&&isNaN(y))&&(b===x||isNaN(b)&&isNaN(x))?this.Av():(a=a.copy(),this.zv(a,E,b)&&this.g("position",new Nt(E,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&&zt("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,$y(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,b=this.jd,E=b.width,te=b.height;(E===y||isNaN(E)&&isNaN(y))&&(te===x||isNaN(te)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof _r&&this.qc(),this.g("desiredSize",b,a),Jo(this)&&(a=this.part,a!==null&&(zi(this,a,"width"),zi(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 Wn(a,this.jd.height).freeze(),this.v(),this instanceof _r&&this.qc(),this.g("desiredSize",y,a),Jo(this)&&(a=this.part,a!==null&&zi(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 Wn(this.jd.width,a).freeze(),this.v(),this instanceof _r&&this.qc(),this.g("desiredSize",y,a),Jo(this)&&(a=this.part,a!==null&&zi(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Br},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(),Hr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Gi},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(),Hr(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 mr(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&&$o(this),this.Ab}},oe:{get:function(){return this.l&4096&&$o(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Hr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:An},set:function(a){this.reshapingBehavior!==a&&(Hr(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()&&zt("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Ea(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&&Fn(a,">= 0",Jt,"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&&Fn(a,">= 1",Jt,"columnSpan"),Hr(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&&Fn(a,">= 0",Jt,"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&&Fn(a,">= 1",Jt,"rowSpan"),Hr(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&&(Hr(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 x=this.part;x===null||x instanceof Xn||zt("Cannot set portID on a Link: "+a),y!==null&&x!==null&&U0(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,Z1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:io},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Eh(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Fn(a,">= 0",Jt,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Eh(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),Eh(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&&Fn(a,">= 0",Jt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:io},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Eh(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Fn(a,">= 0",Jt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Eh(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),Eh(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&&Fn(a,">= 0",Jt,"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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Jt.prototype.trigger=Jt.prototype.Jv,Jt.prototype.findBindingPanel=Jt.prototype.ih,Jt.prototype.findTemplateBinder=Jt.prototype.pz,Jt.prototype.setProperties=Jt.prototype.nm,Jt.prototype.apply=Jt.prototype.apply,Jt.prototype.attach=Jt.prototype.Du,Jt.prototype.set=Jt.prototype.set,Jt.prototype.isEnabledObject=Jt.prototype.If,Jt.prototype.isVisibleObject=Jt.prototype.Ed,Jt.prototype.isContainedBy=Jt.prototype.rg,Jt.prototype.getNearestIntersectionPoint=Jt.prototype.rs,Jt.prototype.getLocalPoint=Jt.prototype.qs,Jt.prototype.getDocumentScale=Jt.prototype.Df,Jt.prototype.getDocumentAngle=Jt.prototype.li,Jt.prototype.getDocumentBounds=Jt.prototype.mi,Jt.prototype.getDocumentPoint=Jt.prototype.ga,Jt.prototype.intersectsRect=Jt.prototype.Yc,Jt.prototype.containedInRect=Jt.prototype.fh,Jt.prototype.containsRect=Jt.prototype.Re,Jt.prototype.containsPoint=Jt.prototype.ca,Jt.prototype.raiseChanged=Jt.prototype.g,Jt.prototype.raiseChangedEvent=Jt.prototype.cb,Jt.prototype.addCopyProperty=Jt.prototype.Vw;var df=null;Jt.className="GraphObject",df=new qn,Wu("Button",function(){function a(x,b){return x.diagram.ic(x.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E},function(E){return E===b})!==null}var y=Ts(Rn,Rn.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof Rn){var E=x.fb("ButtonBorder");E!==null&&(E.fill=b?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},Ts(_r,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new sr(0,0,2.76142374915397,2.761423749153969),spot2:new sr(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,b){if(b.If()&&b instanceof Rn&&(x=b.fb("ButtonBorder"),x instanceof _r)){var E=b._buttonFillOver;b._buttonFillNormal=x.fill,x.fill=E,E=b._buttonStrokeOver,b._buttonStrokeNormal=x.stroke,x.stroke=E}},y.mouseLeave=function(x,b){b.If()&&b instanceof Rn&&(x=b.fb("ButtonBorder"),x instanceof _r&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof Rn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof _r){x=x.diagram;var te=x.skipsUndoManager;x.skipsUndoManager=!0;var ne=b._buttonFillPressed;b._buttonFillOver=E.fill,E.fill=ne,ne=b._buttonStrokePressed,b._buttonStrokeOver=E.stroke,E.stroke=ne,x.skipsUndoManager=te}}},y.actionUp=function(x,b){if(b.If()&&b instanceof Rn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof _r){var te=x.diagram,ne=te.skipsUndoManager;te.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),te.skipsUndoManager=ne}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof Rn&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof _r){var te=x.diagram,ne=te.skipsUndoManager;te.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),te.skipsUndoManager=ne}}},y.actionMove=function(x,b){if(b.If()&&b instanceof Rn&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof _r))){var te=E.skipsUndoManager;E.skipsUndoManager=!0;var ne=b._buttonFillPressed;x.fill!==ne&&(x.fill=ne),ne=b._buttonStrokePressed,x.stroke!==ne&&(x.stroke=ne),E.skipsUndoManager=te}}},y}),Wu("TreeExpanderButton",function(){var a=Ts("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Ts(_r,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Ti},new ho("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new ho("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof hi&&(x=x.adornedPart),x instanceof Xn){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isTreeExpanded){if(!b.canCollapseTree(x))return}else if(!b.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?b.collapseTree(x):b.expandTree(x)}}},a}),Wu("SubGraphExpanderButton",function(){var a=Ts("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Ts(_r,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Ti},new ho("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof hi&&(x=x.adornedPart),x instanceof Ir){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isSubGraphExpanded){if(!b.canCollapseSubGraph(x))return}else if(!b.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?b.collapseSubGraph(x):b.expandSubGraph(x)}}},a}),Wu("ToolTip",function(){return Ts(hi,Rn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Nt(0,3),shadowBlur:5},Ts(_r,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new sr(0,0,4,6),spot2:new sr(1,1,-4,-4)}))}),Wu("ContextMenu",function(){return Ts(hi,Rn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Nt(0,3),shadowBlur:5},new ho("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Wu("ContextMenuButton",function(){var a=Ts("Button");a.stretch=lr;var y=a.fb("ButtonBorder");return y instanceof _r&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new sr(0,0,2,3),y.spot2=new sr(1,1,-2,-2)),a}),Wu("PanelExpanderButton",function(a){var y=lm(a,"COLLAPSIBLE"),x=Ts("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},Ts(_r,{name:"ButtonIcon",strokeWidth:2},new ho("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof _r&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(b,E){var te=E.diagram;if(te!==null&&!te.isReadOnly){var ne=E.ih();ne===null&&(ne=E.part),ne!==null&&(E=ne.fb(y),E!==null&&(b.handled=!0,te.Ea("Collapse/Expand Panel"),E.visible=!E.visible,te.eb("Collapse/Expand Panel")))}},x}),Wu("CheckBoxButton",function(a){var y=lm(a);return a=Ts("Button",{desiredSize:new Wn(14,14)},Ts(_r,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Bn,geometryStretch:ir,visible:!1},y!==""?new ho("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof Rn){var E=x.diagram;if(!(E===null||E.isReadOnly||y!==""&&E.model.isReadOnly)){x.handled=!0;var te=b.fb("ButtonIcon");E.Ea("checkbox"),te.visible=!te.visible,typeof b._doClick=="function"&&b._doClick(x,b),E.eb("checkbox")}}},a}),Wu("CheckBox",function(a){a=lm(a),a=Ts("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new mr(0,1,0,0)});var y=Ts(Rn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new mr(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}),Jt.None=An=new fn(Jt,"None",0),Jt.Default=Dr=new fn(Jt,"Default",0),Jt.Vertical=br=new fn(Jt,"Vertical",4),Jt.Horizontal=lr=new fn(Jt,"Horizontal",5),Jt.Fill=Bn=new fn(Jt,"Fill",3),Jt.Uniform=ir=new fn(Jt,"Uniform",1),Jt.UniformToFill=ti=new fn(Jt,"UniformToFill",2),Jt.FlipVertical=Ur=new fn(Jt,"FlipVertical",1),Jt.FlipHorizontal=si=new fn(Jt,"FlipHorizontal",2),Jt.FlipBoth=ki=new fn(Jt,"FlipBoth",3),Jt.make=Ts,Jt.getBuilders=function(){var a=new qn,y;for(y in df)if(y!==y.toLowerCase()){var x=df.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Jt.defineBuilder=Wu,Jt.build=function(a,y,x){for(var b=[],E=2;E<arguments.length;++E)b[E-2]=arguments[E];if(E=df.I(a),typeof E=="function"&&(b=E([a].concat(b)),b instanceof Jt))return y&&b.set(y),b;zt('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Jt.takeBuilderArgument=lm;function pd(){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=Br,this.o=Gi,this.hg=Dr,this.ob=this.Bi=1,this.Pf=An,this.Pc=this.Ci=this.gd=null,this.Oc="category"}pd.prototype.copy=function(){var a=new pd;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 Bc(){this.u=-1/0,this.o=0,this.F=ni,this.rr=ka,this.j=this.V="None"}Bc.prototype.copy=function(){var a=new Bc;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},Bc.className="LinkElementSettings";function Fp(){this.yj=this.Xi=wi,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}Fp.prototype.copy=function(){var a=new Fp;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},Fp.className="LinkSettings";function Mh(){this.ha=[1,0,0,1,0,0]}Mh.prototype.copy=function(){var a=new Mh;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},Mh.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},Mh.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Mh.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,x),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 E=this.ha[1]*a+this.ha[3]*b,te=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]=E,this.ha[2]=te,this.ha[3]=ne,this.translate(-y,-x)}},Mh.className="STransform";function gd(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}gd.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},gd.className="SGradient";function kl(a,y,x){this.ownerDocument=a=y===void 0?Rt.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 rs(this,x)}kl.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",b+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+b),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",b+"px"),!0):!1},kl.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),gn(y))for(var b in y)a.setAttributeNS(b==="href"?"http://www.w3.org/1999/xlink":"",b,y[b]);return x!==void 0&&(a.textContent=x),a},kl.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},kl.prototype.focus=function(){this.Oa.focus()},kl.prototype.mx=function(){this.ownerDocument=null},Lt.Object.defineProperties(kl.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}}}),kl.className="SVGSurface";function rs(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 Mh,this.j=um(this),this.Nj=um(this,"gojs-diagram"),this.Hl=this.ti=null;var x=fi++,b=this.Ud("clipPath",{id:"mainClip"+x});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"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Xy(a,y,x,b,E,te,ne){a.Nj===void 0?Bp(a,y,x,b,E,te,ne):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+te+", "+ne+")")}it=rs.prototype,it.arc=function(a,y,x,b,E,te,ne,se){var ce=2*Math.PI,ge=ce-1e-6,xe=x*Math.cos(b),Ae=x*Math.sin(b),Ue=a+xe,Je=y+Ae,rt=te?0:1;b=te?b-E:E-b,(1e-6<Math.abs(ne-Ue)||1e-6<Math.abs(se-Je))&&this.path.push(["L",Ue,+Je]),0>b&&(b=b%ce+ce),b>ge?(this.path.push(["A",x,x,0,1,rt,a-xe,y-Ae]),this.path.push(["A",x,x,0,1,rt,Ue,Je])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),rt,a+x*Math.cos(E),y+x*Math.sin(E)])},it.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},it.Se=function(a){this.addPath(this.path,this.rb,a||0)},it.bezierCurveTo=function(a,y,x,b,E,te){this.path.push(["C",a,y,x,b,E,te])},it.clearRect=function(){},it.clip=function(){this.Yl.clipPath=!0},it.closePath=function(){this.path.push(["z"])},it.createLinearGradient=function(a,y,x,b){var E=new gd("linear");return E.x1=a,E.y1=y,E.x2=x,E.y2=b,E},it.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var b="PATTERN"+fi++,E={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(Ph,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},it.createRadialGradient=function(a,y,x,b,E,te){var ne=new gd("radial");return ne.x1=a,ne.y1=y,ne.r1=x,ne.x2=b,ne.y2=E,ne.r2=te,ne};function Yy(a,y,x,b,E,te,ne,se,ce){b=se/b,E=ce/E,te===0&&ne===0||a.rb.translate(te,ne),b===1&&E===1||a.rb.scale(b,E),y===0&&x===0||a.rb.translate(-y,-x)}it.drawImage=function(a,y,x,b,E,te,ne,se,ce){var ge="";a instanceof HTMLCanvasElement&&(ge=a.toDataURL()),a instanceof HTMLImageElement&&(ge=a.getAttribute("src"));var xe=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(te=y,ne=x,se=b=xe,ce=E=a),b=b||0,E=E||0,se=se||0,ce=ce||0,Yy(this,y,x,b,E,te||0,ne||0,se,ce),te={x:0,y:0,width:xe||b,height:a||E,href:ge},qt.$(b,se)&&qt.$(E,ce)?ge.toLowerCase().indexOf(".svg")===-1&&ge.toLowerCase().indexOf("data:image/svg")===-1&&(te.preserveAspectRatio="xMidYMid slice"):te.preserveAspectRatio="none",(y!==0||x!==0||b!==xe||E!==a)&&(b+=y,E+=x,te["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+E+" L "+y+" "+E+" z')"),ff(this,Ph,te,this.rb),this.addElement(Ph,te)},it.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),i0(this,this.Yl)},it.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},it.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},ff(this,"fill",a,this.rb),this.addElement("rect",a)},it.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},ff(this,"fill",a,this.rb),i0(this,a),this.svg.prepend(this.Ud("rect",a))},it.fillText=function(a,y,x){a=[a,y,x],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},ff(this,"fill",y,this.rb),this.addElement("text",y,a[0])},it.lineTo=function(a,y){this.path.push(["L",a,y])},it.moveTo=function(a,y){this.path.push(["M",a,y])},it.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},it.rect=function(a,y,x,b){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+b],["L",a,y+b],["z"])},it.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},it.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())},it.setTransform=function(a,y,x,b,E,te){a===1&&y===0&&x===0&&b===1&&E===0&&te===0||Bp(this,a,y,x,b,E,te)};function Jy(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}it.scale=function(a,y){this.rb.scale(a,y)},it.translate=function(a,y){this.rb.translate(a,y)},it.transform=function(){},it.yc=function(){},it.stroke=function(){qy(this,this.Yl)},it.jk=function(){this.clipInsteadOfFill||this.stroke()},it.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},it.addElement=function(a,y,x){return a=this.Ud(a,y,x),this.yd!==null?this.yd.appendChild(a):this.yd=a,this.ad=a};function ff(a,y,x,b){y==="fill"?i0(a,x):y==="stroke"&&qy(a,x),b!==null&&(a=b.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function i0(a,y){a.fillStyle instanceof gd?y.fill=o0(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 Qy(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof gd?y.setAttributeNS(null,"fill",o0(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,x,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,x+"-opacity",a[4])):y.setAttributeNS(null,x,a.fillStyle)}function qy(a,y){if(a.strokeStyle instanceof gd)y.stroke=o0(a,a.strokeStyle,!1);else if(/^rgba\(/.test(a.strokeStyle)){var x=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+x[1]+","+x[2]+","+x[3]+")",y["stroke-opacity"]=x[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 o0(a,y,x){var b="";if(b=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,b!==null&&b.indexOf("GRAD")!==-1?(b=b.split("#")[1].slice(0,-1),x=a.svg.getElementById(b),x!==null&&x.remove()):b="GRAD"+fi++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:b,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")x=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 E=y.gx;y=E.length;for(var te=[],ne=0;ne<y;ne++){var se=E[ne],ce=se.color;se={offset:se.offset,"stop-color":ce},/^rgba\(/.test(ce)&&(ce=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(ce),se["stop-color"]="rgb("+ce[1]+","+ce[2]+","+ce[3]+")",se["stop-opacity"]=ce[4]),te.push(se)}for(te.sort(function(ge,xe){return ge.offset>xe.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",te[E]));return a.svg.appendChild(x),"url(#"+b+")"}it.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var te=Qt(a[E]),ne=[te.shift()];if(ne[0]==="A")ne.push(te.shift()+","+te.shift(),te.shift(),te.shift()+","+te.shift(),te.shift()+","+te.shift());else for(;te.length;)ne.push(te.shift()+","+te.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,ff(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var se in a)se!=="transform"&&y.setAttributeNS(null,se,a[se]);else{se=y.getElementsByTagName("path");for(var ce in a)ce!=="transform"&&se[x].setAttributeNS(null,ce,a[ce])}else this.addElement("path",a)};function Bp(a,y,x,b,E,te,ne){var se=new Mh;se.ha=[y,x,b,E,te,ne],y={},ff(a,"g",y,se),se=a.addElement("g",y),a.nh.push(se)}function um(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}it.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function Wl(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function pu(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}it.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},it.fs=function(){this.Ct=!1},it.Vc=function(){},it.Wx=function(){},rs.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},rs.prototype.getImageData=function(){return null},rs.prototype.measureText=function(){return null};function cm(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()))}rs.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},rs.className="SVGContext",sn.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new kl(this,Rt.document));var y=new kl(this,Rt.document,!0);a===void 0&&(a=new hr);var x=this;return ld(this,function(b,E){return b=im(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},sn.prototype.makeSvg=sn.prototype.Cs,sn.prototype.av=function(a){return this.Cs(a)},sn.prototype.makeSVG=sn.prototype.av;function Us(a,y,x,b){this.ownerDocument=y=y===void 0?Rt.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Th(y,x,b),y.H=a}Us.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",!0):!1},Us.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},Us.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Us.prototype.focus=function(){this.Oa.focus()},Us.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},Lt.Object.defineProperties(Us.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}}}),Us.className="CanvasSurface";function Th(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&zt("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 Wr,this.isTemporary=!!x}it=Th.prototype,it.Wx=function(a){this.Z.imageSmoothingEnabled=a},it.arc=function(a,y,x,b,E,te){this.Z.arc(a,y,x,b,E,te)},it.beginPath=function(){this.Z.beginPath()},it.Se=function(){},it.bezierCurveTo=function(a,y,x,b,E,te){this.Z.bezierCurveTo(a,y,x,b,E,te)},it.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},it.clip=function(){this.Z.clip()},it.closePath=function(){this.Z.closePath()},it.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},it.createPattern=function(a,y){return this.Z.createPattern(a,y)},it.createRadialGradient=function(a,y,x,b,E,te){return this.Z.createRadialGradient(a,y,x,b,E,te)},it.drawImage=function(a,y,x,b,E,te,ne,se,ce){b===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,b,E,te,ne,se,ce)},it.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},it.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},it.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},it.fillText=function(a,y,x){this.Z.fillText(a,y,x)},it.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},it.lineTo=function(a,y){this.Z.lineTo(a,y)},it.measureText=function(a){return this.Z.measureText(a)},it.moveTo=function(a,y){this.Z.moveTo(a,y)},it.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},it.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},it.restore=function(){this.Z.restore()},it.save=function(){this.yc(),this.Z.save()},Th.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},it=Th.prototype,it.setTransform=function(a,y,x,b,E,te){this.El.setTransform(a,y,x,b,E,te)},it.scale=function(a,y){this.El.scale(a,y)},it.translate=function(a,y){this.El.translate(a,y)},it.stroke=function(){this.Z.stroke()},it.transform=function(a,y,x,b,E,te){if(a!==1||y!==0||x!==0||b!==1||E!==0||te!==0){var ne=this.El,se=ne.m11*a+ne.m21*y;a=ne.m12*a+ne.m22*y,y=ne.m11*x+ne.m21*b,x=ne.m12*x+ne.m22*b,ne.dx=ne.m11*E+ne.m21*te+ne.dx,ne.dy=ne.m12*E+ne.m22*te+ne.dy,ne.m11=se,ne.m12=a,ne.m21=y,ne.m22=x}},it.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},it.ng=function(a,y){if(a instanceof xi&&a.type===Ls){var x=a.yk;a=a.ft,a>x?(this.scale(x/a,1),this.translate((a-x)/2,0)):x>a&&(this.scale(1,a/x),this.translate(0,(x-a)/2)),this.Hm?this.clip():this.fill(y),a>x?(this.translate(-(a-x)/2,0),this.scale(1/(x/a),1)):x>a&&(this.translate(0,-(x-a)/2),this.scale(1,1/(a/x)))}else this.Hm?this.clip():this.fill(y)},it.jk=function(){this.Hm||this.stroke()},it.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},it.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},it.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(vx),a.lineDashOffset=0)},it.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},it.Hs=function(){},Lt.Object.defineProperties(Th.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 vx=Object.freeze([]);Th.className="CanvasSurfaceContext";function Rp(){this.F=this.o=this.u=this.j=0}Rp.className="ColorNumbers";function xi(a,y){vf||(h0(),vf=!0),zr(this),this._isFrozen=!1,a===void 0?(this.na=Ku,this.xk="black"):typeof a=="string"?(this.na=Ku,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===mu?(this.Qd=Ss,this.Lk=Ja):this.Lk=a===Ls?this.Qd=ui:this.Qd=io,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}xi.prototype.copy=function(){var a=new xi;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},it=xi.prototype,it.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},it.ka=function(){return Object.isFrozen(this)&&zt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},it.qb=function(a){a.classType===xi&&(this.type=a)},it.toString=function(){var a="Brush(";if(this.type===Ku)a+=this.color;else if(a=this.type===mu?a+"Linear ":this.type===Ls?a+"Radial ":this.type===yf?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+")"},it.addColorStop=function(a,y){return this._isFrozen&&xn(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Fn(a,"0 <= loc <= 1",xi,"addColorStop:loc"),this.we===null&&(this.we=new qn),this.we.add(a,y),this.na===Ku&&(this.type=mu),this.xe=null,this},it.Vz=function(a,y){if(this._isFrozen&&xn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Sf:y,this.type===Ku)gu(this.color),this.color=gf(a,y);else if((this.type===mu||this.type===Ls)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)gu(x.value),this.addColorStop(x.key,gf(a,y));return this};function e1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Sf:x,gu(a),gf(y,x)}it.Wy=function(a,y){if(this._isFrozen&&xn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Sf:y,this.type===Ku)gu(this.color),this.color=gf(-a,y);else if((this.type===mu||this.type===Ls)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)gu(x.value),this.addColorStop(x.key,gf(-a,y));return this};function t1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Sf:x,gu(a),gf(-y,x)}function a0(a,y,x){gu(a),a=Di.j;var b=Di.u,E=Di.o,te=Di.F;return gu(y),x===void 0&&(x=.5),"rgba("+Math.round((Di.j-a)*x+a)+", "+Math.round((Di.u-b)*x+b)+", "+Math.round((Di.o-E)*x+E)+", "+Math.round((Di.F-te)*x+te)+")"}it.Gx=function(){if(this.type===Ku)return pf(this.color);if((this.type===mu||this.type===Ls)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Ls)return pf(a.first().value);if(a.get(.5)!==null)return pf(a.get(.5));if(a.count===2)return a=a.Fa(),pf(a0(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,E=1,te=1;y.next();){var ne=y.key,se=Math.abs(.5-y.key);E>te&&se<E?(x=ne,E=se):te>=E&&se<te&&(b=ne,te=se)}return x>b&&(te=x,x=b,b=te,te=E),E=b-x,pf(a0(a.get(x),a.get(b),1-te/E))}return!1};function pf(a){return a?a instanceof xi?a.Gx():(gu(a),128>(299*Di.j+587*Di.u+114*Di.o)/1e3):!1}function gf(a,y){switch(y){case Sf:y=100*l0(Di.j);var x=100*l0(Di.u),b=100*l0(Di.o);return Ta.j=.4124564*y+.3575761*x+.1804375*b,Ta.u=.2126729*y+.7151522*x+.072175*b,Ta.o=.0193339*y+.119192*x+.9503041*b,Ta.F=Di.F,y=c0(Ta.j/mf[0]),x=c0(Ta.u/mf[1]),b=c0(Ta.o/mf[2]),Kl.j=116*x-16,Kl.u=500*(y-x),Kl.o=200*(x-b),Kl.F=Ta.F,Kl.j=Math.min(100,Math.max(0,Kl.j+100*a)),a=(Kl.j+16)/116,y=a-Kl.o/200,Ta.j=mf[0]*n1(Kl.u/500+a),Ta.u=mf[1]*(Kl.j>hm*d0?Math.pow(a,3):Kl.j/hm),Ta.o=mf[2]*n1(y),Ta.F=Kl.F,a=-.969266*Ta.j+1.8760108*Ta.u+.041556*Ta.o,y=.0556434*Ta.j+-.2040259*Ta.u+1.0572252*Ta.o,Di.j=255*u0((3.2404542*Ta.j+-1.5371385*Ta.u+-.4985314*Ta.o)/100),Di.u=255*u0(a/100),Di.o=255*u0(y/100),Di.F=Ta.F,Di.j=Math.round(Di.j),255<Di.j?Di.j=255:0>Di.j&&(Di.j=0),Di.u=Math.round(Di.u),255<Di.u?Di.u=255:0>Di.u&&(Di.u=0),Di.o=Math.round(Di.o),255<Di.o?Di.o=255:0>Di.o&&(Di.o=0),"rgba("+Di.j+", "+Di.u+", "+Di.o+", "+Di.F+")";case r1:return s0(),gs.o=Math.min(100,Math.max(0,gs.o+100*a)),"hsla("+gs.j+", "+gs.u+"%, "+gs.o+"%, "+gs.F+")";default:zt("Unknown color space: "+y)}}function gu(a){vf||(h0(),vf=!0);var y=f0;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,Di.j=a[0],Di.u=a[1],Di.o=a[2],Di.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Di.j=0,Di.u=0,Di.o=0,Di.F=1)}}function s0(){var a=Di.j/255,y=Di.u/255,x=Di.o/255,b=Math.max(a,y,x),E=Math.min(a,y,x),te=b-E;if(E=(b+E)/2,te===0)var ne=a=0;else{switch(b){case a:ne=(y-x)/te%6;break;case y:ne=(x-a)/te+2;break;case x:ne=(a-y)/te+4}ne*=60,0>ne&&(ne+=360),a=te/(1-Math.abs(2*E-1))}gs.j=Math.round(ne),gs.u=Math.round(100*a),gs.o=Math.round(100*E),gs.F=Di.F}function l0(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function u0(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function c0(a){return a>d0?Math.pow(a,1/3):(hm*a+16)/116}function n1(a){var y=a*a*a;return y>d0?y:(116*a-16)/hm}function md(a,y){typeof a!="string"&&(a instanceof xi||zt("Value for "+y+" must be a color string or a Brush, not "+a))}function h0(){f0=eo?new Us(null,void 0,{willReadFrequently:!0}).context:null}Lt.Object.defineProperties(xi.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&xn(this,a),this.na=a,this.start.Mc()&&(a===mu?this.start=Ss:a===Ls&&(this.start=ui)),this.end.Mc()&&(a===mu?this.end=Ja:a===Ls&&(this.end=ui)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&xn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&xn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&xn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&xn(this,a),0>a&&Fn(a,">= zero",xi,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&xn(this,a),0>a&&Fn(a,">= zero",xi,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&xn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&xn(this,a),this.cr=a,this.xe=null}}}),xi.prototype.isDark=xi.prototype.Gx,xi.prototype.darkenBy=xi.prototype.Wy,xi.prototype.lightenBy=xi.prototype.Vz,xi.prototype.addColorStop=xi.prototype.addColorStop;var d0=216/24389,hm=24389/27,mf=[95.047,100,108.883],f0=null,Di=new Rp,gs=new Rp,Ta=new Rp,Kl=new Rp,vf=!1;xi.className="Brush";var Ku;xi.Solid=Ku=new fn(xi,"Solid",0);var mu;xi.Linear=mu=new fn(xi,"Linear",1);var Ls;xi.Radial=Ls=new fn(xi,"Radial",2);var yf;xi.Pattern=yf=new fn(xi,"Pattern",4);var Sf;xi.Lab=Sf=new fn(xi,"Lab",5);var r1;xi.HSL=r1=new fn(xi,"HSL",6),xi.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var b=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>b.length&&(b="0"+b),2>a.length&&(a="0"+a),"#"+y+b+a},xi.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;vf||(h0(),vf=!0);var y=f0;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},xi.lighten=function(a){return e1(a)},xi.lightenBy=e1,xi.darken=function(a){return t1(a)},xi.darkenBy=t1,xi.mix=a0,xi.isDark=pf;function Mo(){this.xa="Base"}Mo.prototype.measure=function(){},Mo.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},Mo.prototype.arrange=function(){},Mo.prototype.Ly=function(a,y,x,b,E,te){a.arrange(y,x,b,E,te)},Mo.prototype.iA=function(a){a.Uj()},Mo.prototype.gc=function(){},Lt.Object.defineProperties(Mo.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Rn}}}),Mo.prototype.remeasureObject=Mo.prototype.iA,Mo.prototype.arrangeElement=Mo.prototype.Ly,Mo.prototype.measureElement=Mo.prototype.Yz,Mo.className="PanelLayout";function dm(){this.xa="Base"}Xt(dm,Mo),dm.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length;a=vu(a);for(var ce=0;ce<se;ce++){var ge=b[ce];if(ge.visible||ge===a){var xe=ge.margin,Ae=xe.right+xe.left;xe=xe.top+xe.bottom,ge.measure(y,x,te,ne);var Ue=ge.measuredBounds;Ae=Math.max(Ue.width+Ae,0),xe=Math.max(Ue.height+xe,0),Ue=ge.position.x;var Je=ge.position.y;isFinite(Ue)||(Ue=0),isFinite(Je)||(Je=0),ge instanceof _r&&ge.isGeometryPositioned&&(ge=ge.strokeWidth/2,Ue-=ge,Je-=ge),yi(E,Ue,Je,Ae,xe)}}},dm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding;for(a=x.x-E.left,x=x.y-E.top,E=0;E<b;E++){var te=y[E],ne=te.measuredBounds,se=te.margin,ce=te.position.x,ge=te.position.y;if(ce=isNaN(ce)?-a:ce-a,ge=isNaN(ge)?-x:ge-x,te instanceof _r&&te.isGeometryPositioned){var xe=te.strokeWidth/2;ce-=xe,ge-=xe}te.visible&&te.arrange(ce+se.left,ge+se.top,ne.width,ne.height)}};function fm(){this.xa="Base"}Xt(fm,Mo),fm.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length;y=cn(),te=vu(a);for(var ce=0;ce<se;ce++){var ge=b[ce];if(ge.visible||ge===te){var xe=Ra(ge,!1);if(xe!==An&&xe!==lr)y.push(ge);else{ge.measure(1/0,x,0,ne),xe=ge.margin,ge=ge.measuredBounds;var Ae=Math.max(ge.height+xe.top+xe.bottom,0);E.width+=Math.max(ge.width+xe.right+xe.left,0),E.height=Math.max(E.height,Ae)}}}for(b=y.length,a.desiredSize.height?x=Math.min(a.desiredSize.height,a.maxSize.height):E.height!==0&&(x=Math.min(E.height,a.maxSize.height)),a=0;a<b;a++)ce=y[a],(ce.visible||ce===te)&&(xe=ce.margin,se=xe.right+xe.left,xe=xe.top+xe.bottom,ce.measure(1/0,x,0,ne),ce=ce.measuredBounds,xe=Math.max(ce.height+xe,0),E.width+=Math.max(ce.width+se,0),E.height=Math.max(E.height,xe));Pn(y)},fm.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,te=E.top,ne=a.isOpposite,se=ne?x.width:E.left,ce=0;ce<b;ce++){var ge=te,xe=y[ce];if(xe.visible){var Ae=xe.measuredBounds,Ue=xe.margin,Je=Ue.top+Ue.bottom,rt=te+E.bottom,ht=Ae.height,Ft=Ra(xe,!1);(isNaN(xe.desiredSize.height)&&Ft===Bn||Ft===br)&&(ht=Math.max(x.height-Je-rt,0)),Je=ht+Je+rt,rt=xe.alignment,rt.Xb()&&(rt=a.defaultAlignment),rt.sb()||(rt=ui),ne&&(se-=Ae.width+Ue.left+Ue.right),xe.arrange(se+rt.offsetX+Ue.left,ge+rt.offsetY+Ue.top+(x.height*rt.y-Je*rt.y),Ae.width,ht),ne||(se+=Ae.width+Ue.left+Ue.right)}}};function pm(){this.xa="Base"}Xt(pm,Mo),pm.prototype.measure=function(a,y,x,b,E,te){var ne=b.length;x=cn();for(var se=vu(a),ce=0;ce<ne;ce++){var ge=b[ce];if(ge.visible||ge===se){var xe=Ra(ge,!1);if(xe!==An&&xe!==br)x.push(ge);else{var Ae=ge.margin;xe=Ae.right+Ae.left,Ae=Ae.top+Ae.bottom,ge.measure(y,1/0,te,0),ge=ge.measuredBounds,ao(E,Math.max(E.width,Math.max(ge.width+xe,0)),E.height+Math.max(ge.height+Ae,0))}}}if(b=x.length,b!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):E.width!==0&&(y=Math.min(E.width,a.maxSize.width)),a=0;a<b;a++)ce=x[a],(ce.visible||ce===se)&&(ge=ce.margin,ne=ge.right+ge.left,ge=ge.top+ge.bottom,ce.measure(y,1/0,te,0),ce=ce.measuredBounds,ge=Math.max(ce.height+ge,0),E.width=Math.max(E.width,Math.max(ce.width+ne,0)),E.height+=ge);Pn(x)}},pm.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,te=E.left,ne=a.isOpposite,se=ne?x.height:E.top,ce=0;ce<b;ce++){var ge=te,xe=y[ce];if(xe.visible){var Ae=xe.measuredBounds,Ue=xe.margin,Je=Ue.left+Ue.right,rt=te+E.right,ht=Ae.width,Ft=Ra(xe,!1);(isNaN(xe.desiredSize.width)&&Ft===Bn||Ft===lr)&&(ht=Math.max(x.width-Je-rt,0)),Je=ht+Je+rt,rt=xe.alignment,rt.Xb()&&(rt=a.defaultAlignment),rt.sb()||(rt=ui),ne&&(se-=Ae.height+Ue.bottom+Ue.top),xe.arrange(ge+rt.offsetX+Ue.left+(x.width*rt.x-Je*rt.x),se+rt.offsetY+Ue.top,ht,Ae.height),ne||(se+=Ae.height+Ue.bottom+Ue.top)}}};function gm(){this.xa="Base"}Xt(gm,Mo),gm.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length,ce=a.Pb(),ge=ce.margin,xe=ge.right+ge.left,Ae=ge.top+ge.bottom;ce.measure(y,x,te,ne);var Ue=ce.measuredBounds;te=Ue.width,ne=Ue.height;var Je=Math.max(te+xe,0),rt=Math.max(ne+Ae,0),ht=a.isClipping,Ft=wn.allocAt(-ge.left,-ge.top,Je,rt),Ot=wn.allocAt(0,0,te,ne);p0(ce,Ot,!0),te=Ot.width,ne=Ot.height;for(var _t=!0,Gt=vu(a),Kt=0;Kt<se;Kt++){var Yt=b[Kt];Ue=y;var on=x;if(Yt!==ce&&(Yt.visible||Yt===Gt)){ge=Yt.margin;var Zn=ge.left,nr=ge.top;switch(Je=ge.right+ge.left,rt=ge.top+ge.bottom,ge=Ra(Yt,!1),ge){case Bn:Ue=te,on=ne,nr=Zn=rt=Je=0;break;case lr:Ue=te,Zn=Je=0;break;case br:on=ne,nr=rt=0}Yt.measure(Ue,on,0,0),Ue=Yt.measuredBounds,Je=Math.max(Ue.width+Je,0),rt=Math.max(Ue.height+rt,0),ge=Yt.alignment,ge.Xb()&&(ge=a.defaultAlignment),ge.sb()||(ge=ui);var Jn=Yt.alignmentFocus;if(Jn.Xb()&&(Jn=ui),on=null,Yt instanceof Rn&&Yt.$e!==""&&(on=Yt.fb(Yt.$e),on===Yt&&(on=null)),Zn=Ot.x-Zn,nr=Ot.y-nr,on!==null){for(Yt.arrange(0,0,Ue.width,Ue.height),Ue=on.actualBounds,Ue=Nt.allocAt(Ue.x+(Jn.x*Ue.width-Jn.offsetX),Ue.y+(Jn.y*Ue.height-Jn.offsetY)),on=on.panel;on!==Yt;)on.transform.Ga(Ue),on=on.panel;Zn+=ge.x*te+ge.offsetX-Ue.x,nr+=ge.y*ne+ge.offsetY-Ue.y,Nt.free(Ue)}else Zn+=ge.x*te+ge.offsetX-(Jn.x*Ue.width+Jn.offsetX),nr+=ge.y*ne+ge.offsetY-(Jn.y*Ue.height+Jn.offsetY);_t?(_t=!1,E.h(Zn,nr,Je,rt)):yi(E,Zn,nr,Je,rt)}}switch(_t?E.assign(Ft):ht?E.Uu(Ot.x,Ot.y,Ot.width,Ot.height):yi(E,Ft.x,Ft.y,Ft.width,Ft.height),wn.free(Ft),wn.free(Ot),ge=ce.stretch,ge===Dr&&(ge=Ra(ce,!1)),ge){case An:return;case Bn:if(!isFinite(y)&&!isFinite(x))return;break;case lr:if(!isFinite(y))return;break;case br:if(!isFinite(x))return}for(Ue=ce.measuredBounds,te=Ue.width,ne=Ue.height,Je=Math.max(te+xe,0),rt=Math.max(ne+Ae,0),ge=ce.margin,Ot=wn.allocAt(-ge.left,-ge.top,Je,rt),p0(ce,Ot,!0),te=Ot.width,ne=Ot.height,y=0;y<se;y++)x=b[y],x===ce||!x.visible&&x!==Gt||(ge=x.margin,Je=ge.right+ge.left,rt=ge.top+ge.bottom,Ue=x.measuredBounds,Je=Math.max(Ue.width+Je,0),rt=Math.max(Ue.height+rt,0),xe=x.alignment,xe.Xb()&&(xe=a.defaultAlignment),xe.sb()||(xe=ui),x=x.alignmentFocus,x.Xb()&&(x=ui),_t?(_t=!1,E.h(xe.x*te+xe.offsetX-(x.x*Ue.width+x.offsetX)-ge.left,xe.y*ne+xe.offsetY-(x.y*Ue.height+x.offsetY)-ge.top,Je,rt)):yi(E,xe.x*te+xe.offsetX-(x.x*Ue.width+x.offsetX)-ge.left,xe.y*ne+xe.offsetY-(x.y*Ue.height+x.offsetY)-ge.top,Je,rt));_t?E.assign(Ft):ht?E.Uu(Ot.x,Ot.y,Ot.width,Ot.height):yi(E,Ft.x,Ft.y,Ft.width,Ft.height),wn.free(Ot)},gm.prototype.arrange=function(a,y,x){var b=y.length,E=a.Pb(),te=E.measuredBounds,ne=te.width,se=te.height,ce=a.padding;te=ce.left,ce=ce.top;var ge=te-x.x,xe=ce-x.y;for(E.arrange(ge,xe,ne,se),ne=wn.allocAt(0,0,ne,se),p0(E,ne,!1),se=0;se<b;se++){var Ae=y[se];if(Ae!==E){ge=Ae.measuredBounds;var Ue=ge.width,Je=ge.height;xe=Ae.alignment,xe.Xb()&&(xe=a.defaultAlignment),xe.sb()||(xe=ui);var rt=Ae.alignmentFocus;if(rt.Xb()&&(rt=ui),ge=null,Ae instanceof Rn&&Ae.$e!==""&&(ge=Ae.fb(Ae.$e),ge===Ae&&(ge=null)),ge!==null){var ht=ge.actualBounds;for(rt=Nt.allocAt(ht.x+(rt.x*ht.width-rt.offsetX),ht.y+(rt.y*ht.height-rt.offsetY)),ge=ge.panel;ge!==Ae;)ge.transform.Ga(rt),ge=ge.panel;ge=xe.x*ne.width+xe.offsetX-rt.x,xe=xe.y*ne.height+xe.offsetY-rt.y,Nt.free(rt)}else ge=xe.x*ne.width+xe.offsetX-(rt.x*Ue+rt.offsetX),xe=xe.y*ne.height+xe.offsetY-(rt.y*Je+rt.offsetY);ge+=ne.x-x.x,xe+=ne.y-x.y,Ae.visible&&Ae.arrange(te+ge,ce+xe,Ue,Je)}}wn.free(ne)};function p0(a,y,x){var b=null;if(a instanceof Rn&&a.$e!==""&&(b=a.fb(a.$e),b===a&&(b=null)),b!==null)for(x&&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 mm(){this.xa="Base"}Xt(mm,Mo),mm.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length,ce=a.Pb(),ge=ce.margin,xe=y,Ae=x,Ue=ge.right+ge.left,Je=ge.top+ge.bottom;ce.measure(y,x,te,ne),ge=ce.measuredBounds;var rt=0,ht=null;ce instanceof _r&&(ht=ce,rt=ht.strokeWidth*ht.scale);var Ft=Math.max(ge.width+Ue,0);ge=Math.max(ge.height+Je,0);var Ot=y0(ce),_t=Ot.x*Ft+Ot.offsetX;Ot=Ot.y*ge+Ot.offsetY;var Gt=S0(ce),Kt=Gt.x*Ft+Gt.offsetX;for(Gt=Gt.y*ge+Gt.offsetY,isFinite(y)&&(xe=Math.max(Math.abs(_t-Kt)-rt,0)),isFinite(x)&&(Ae=Math.max(Math.abs(Ot-Gt)-rt,0)),rt=Wn.alloc(),rt.h(0,0),a=vu(a),Gt=0;Gt<se;Gt++)Ot=b[Gt],Ot===ce||!Ot.visible&&Ot!==a||(ge=Ot.margin,Ft=ge.right+ge.left,_t=ge.top+ge.bottom,Ot.measure(xe,Ae,0,0),ge=Ot.measuredBounds,Ft=Math.max(ge.width+Ft,0),ge=Math.max(ge.height+_t,0),rt.h(Math.max(Ft,rt.width),Math.max(ge,rt.height)));if(se===1)E.width=Ft,E.height=ge,Wn.free(rt);else{switch(Ot=y0(ce),Gt=S0(ce),se=b=0,Gt.x!==Ot.x&&Gt.y!==Ot.y&&(b=rt.width/Math.abs(Gt.x-Ot.x),se=rt.height/Math.abs(Gt.y-Ot.y)),Wn.free(rt),rt=0,ht!==null&&(rt=ht.strokeWidth*ht.scale,E0(ht)===ir&&(b=se=Math.max(b,se))),b+=Math.abs(Ot.offsetX)+Math.abs(Gt.offsetX)+rt,se+=Math.abs(Ot.offsetY)+Math.abs(Gt.offsetY)+rt,ht=ce.stretch,ht===Dr&&(ht=Ra(ce,!1)),ht){case An:ne=te=0;break;case Bn:isFinite(y)&&(b=y),isFinite(x)&&(se=x);break;case lr:isFinite(y)&&(b=y),ne=0;break;case br:te=0,isFinite(x)&&(se=x)}ce.Uj(),ce.measure(b,se,te,ne),E.width=ce.measuredBounds.width+Ue,E.height=ce.measuredBounds.height+Je}},mm.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,te=wn.alloc();te.h(0,0,1,1);var ne=b.margin,se=ne.left;ne=ne.top;var ce=a.padding,ge=ce.left;ce=ce.top,b.arrange(ge+se,ce+ne,E.width,E.height);var xe=y0(b),Ae=S0(b),Ue=xe.y*E.height+xe.offsetY,Je=Ae.x*E.width+Ae.offsetX;for(Ae=Ae.y*E.height+Ae.offsetY,te.x=xe.x*E.width+xe.offsetX,te.y=Ue,yi(te,Je,Ae,0,0),te.x+=se+ge,te.y+=ne+ce,E=0;E<x;E++)se=y[E],se!==b&&(ge=se.measuredBounds,ne=se.margin,ce=Math.max(ge.width+ne.right+ne.left,0),xe=Math.max(ge.height+ne.top+ne.bottom,0),Ue=se.alignment,Ue.Xb()&&(Ue=a.defaultAlignment),Ue.sb()||(Ue=ui),ce=te.width*Ue.x+Ue.offsetX-ce*Ue.x+ne.left+te.x,ne=te.height*Ue.y+Ue.offsetY-xe*Ue.y+ne.top+te.y,se.visible&&(Yi(te.x,te.y,te.width,te.height,ce,ne,ge.width,ge.height)?se.arrange(ce,ne,ge.width,ge.height):se.arrange(ce,ne,ge.width,ge.height,new wn(te.x,te.y,te.width,te.height))));wn.free(te)};function vm(){this.xa="Base",this.name="Table"}Xt(vm,Mo),vm.prototype.measure=function(a,y,x,b,E){for(var te=b.length,ne=cn(),se=cn(),ce=0;ce<te;ce++){var ge=b[ce],xe=ge instanceof Rn?ge:null;if(xe!==null&&Vu(xe)&&ge.visible){se.push(xe);for(var Ae=xe.O.s,Ue=Ae.length,Je=0;Je<Ue;Je++){var rt=Ae[Je];xe.type===Rn.TableRow?rt.row=ge.row:xe.type===Rn.TableColumn&&(rt.column=ge.column),ne.push(rt)}}else ne.push(ge)}te=ne.length,te===0&&(a.Fb(0),a.Eb(0));for(var ht=[],Ft=0;Ft<te;Ft++){var Ot=ne[Ft];Ot.visible&&(xo(Ot,!0),Ul(Ot,!0),ht[Ot.row]||(ht[Ot.row]=[]),ht[Ot.row][Ot.column]||(ht[Ot.row][Ot.column]=[]),ht[Ot.row][Ot.column].push(Ot))}Pn(ne);var _t=cn(),Gt=cn(),Kt=cn(),Yt={count:0},on={count:0},Zn=y,nr=x,Jn=a.rowDefs,Gn=a.colDefs,kn=null;te=Jn.length;for(var Nr=0;Nr<te;Nr++)kn=Jn[Nr],kn!==void 0&&(kn.actual=0);te=Gn.length;for(var Er=0;Er<te;Er++)kn=Gn[Er],kn!==void 0&&(kn.actual=0);for(var pi=ht.length,Ni=0,Fo=0;Fo<pi;Fo++)ht[Fo]&&(Ni=Math.max(Ni,ht[Fo].length));var Go=Math.min(a.topIndex,pi-1),fa=Math.min(a.leftIndex,Ni-1),Bo=0;pi=ht.length;for(var nc=vu(a),fo=0;fo<pi;fo++)if(ht[fo]){Ni=ht[fo].length;var yl=a.Fb(fo);yl.actual=0;for(var pa=yl.oc=0;pa<Ni;pa++)if(ht[fo][pa]){var rc=a.Eb(pa);_t[pa]===void 0&&(rc.actual=0,rc.oc=0,_t[pa]=!0);for(var ys=ht[fo][pa],Zs=ys.length,as=0;as<Zs;as++){var Va=ys[as];if(Va.visible||Va===nc){var Jc=1<Va.rowSpan||1<Va.columnSpan;Jc&&(fo<Go||pa<fa||Gt.push(Va));var Sl=Va.margin,Hf=Sl.right+Sl.left,ss=Sl.top+Sl.bottom,ga=fl(Va,yl,rc,!1),Eg=Va.desiredSize,Ld=!isNaN(Eg.height),Nl=!isNaN(Eg.width)&&Ld;if(Jc||ga===An||Nl||fo<Go||pa<fa||(Yt[pa]!==void 0||ga!==Bn&&ga!==lr||(Yt[pa]=-1,Yt.count++),on[fo]!==void 0||ga!==Bn&&ga!==br||(on[fo]=-1,on.count++),Kt.push(Va)),Va.measure(1/0,1/0,0,0),!(fo<Go||pa<fa)){var Za=Va.measuredBounds,Fh=Math.max(Za.width+Hf,0),ls=Math.max(Za.height+ss,0);if(Va.rowSpan===1&&(ga===An||ga===lr)){kn=a.Fb(fo);var Qc=kn.Wc();Bo=Math.max(ls-kn.actual,0),Bo+Qc>nr&&(Bo=Math.max(nr-Qc,0));var zv=kn.oa===0;kn.oc=kn.oc+Bo,kn.actual=kn.oa+Bo,nr=Math.max(nr-(Bo+(zv?Qc:0)),0)}if(Va.columnSpan===1&&(ga===An||ga===br)){kn=a.Eb(pa);var Mg=kn.Wc();Bo=Math.max(Fh-kn.actual,0),Bo+Mg>Zn&&(Bo=Math.max(Zn-Mg,0));var Gy=kn.oa===0;kn.oc=kn.oc+Bo,kn.actual=kn.oa+Bo,Zn=Math.max(Zn-(Bo+(Gy?Mg:0)),0)}Jc&&Va.Uj()}}}}}Pn(_t);var eu=0,xu=0;te=a.columnCount;for(var kd=0;kd<te;kd++){var qc=Gn[kd];qc!==void 0&&(eu+=isNaN(qc.Hc)?qc.oc:qc.Hc,qc.oc!==0&&(eu+=qc.Wc()))}te=a.rowCount;for(var Uf=0;Uf<te;Uf++){var eh=Jn[Uf];eh!==void 0&&(xu+=isNaN(eh.Hc)?eh.oc:eh.Hc,eh.oc!==0&&(xu+=eh.Wc()))}Zn=Math.max(y-eu,0);var tu=nr=Math.max(x-xu,0),ic=Zn;te=Kt.length;for(var $a=0;$a<te;$a++){var jl=Kt[$a],Gv=a.Fb(jl.row),wu=a.Eb(jl.column),Wf=jl.measuredBounds,xl=jl.margin,Bh=xl.right+xl.left,Il=xl.top+xl.bottom;Yt[jl.column]=wu.oc===0&&Yt[jl.column]!==void 0?Math.max(Wf.width+Bh,Yt[jl.column]):null,on[jl.row]=Gv.oc===0&&on[jl.row]!==void 0?Math.max(Wf.height+Il,on[jl.row]):null}var Od=0,Kf=0,ll;for(ll in on)ll!=="count"&&(Od+=on[ll]);for(ll in Yt)ll!=="count"&&(Kf+=Yt[ll]);for(var Yo=Wn.alloc(),Tg=0;Tg<te;Tg++){var Ia=Kt[Tg];if(Ia.visible||Ia===nc){var po=a.Fb(Ia.row),Da=a.Eb(Ia.column),bu=0;isFinite(Da.width)?bu=Da.width:(isFinite(Zn)&&Yt[Ia.column]!==null?Kf===0?bu=Da.actual+Zn:bu=Yt[Ia.column]/Kf*ic:Yt[Ia.column]!==null?bu=Zn:bu=Da.actual||Zn,bu=Math.max(0,bu-Da.Wc()));var oc=0;switch(isFinite(po.height)?oc=po.height:(isFinite(nr)&&on[Ia.row]!==null?Od===0?oc=po.actual+nr:oc=on[Ia.row]/Od*tu:on[Ia.row]!==null?oc=nr:oc=po.actual||nr,oc=Math.max(0,oc-po.Wc())),Yo.h(Math.max(Da.minimum,Math.min(bu,Da.maximum)),Math.max(po.minimum,Math.min(oc,po.maximum))),ga=fl(Ia,po,Da,!1),ga){case lr:Yo.height=Math.max(Yo.height,po.actual+nr);break;case br:Yo.width=Math.max(Yo.width,Da.actual+Zn)}var Rh=Ia.margin,Hy=Rh.right+Rh.left,Hv=Rh.top+Rh.bottom;Ia.Uj(),Ia.measure(Yo.width,Yo.height,Da.minimum,po.minimum);var Vf=Ia.measuredBounds,_h=Math.max(Vf.width+Hy,0),Ad=Math.max(Vf.height+Hv,0);isFinite(Zn)&&(_h=Math.min(_h,Yo.width)),isFinite(nr)&&(Ad=Math.min(Ad,Yo.height));var Xa=0;Xa=po.actual,po.actual=Math.max(po.actual,Ad),po.oc=Math.max(po.oc,Ad),Bo=po.actual-Xa,nr=Math.max(nr-Bo,0),on[Ia.row]===null&&(tu=Math.max(tu-Bo,0)),Xa=Da.actual,Da.actual=Math.max(Da.actual,_h),Da.oc=Math.max(Da.oc,_h),Bo=Da.actual-Xa,Zn=Math.max(Zn-Bo,0),Yt[Ia.column]===null&&(ic=Math.max(ic-Bo,0))}}Pn(Kt);var Pu=Wn.alloc(),wl=cn(),js=cn();if(te=Gt.length,te!==0){for(var th=0;th<pi;th++)if(ht[th]){Ni=ht[th].length;var Zf=a.Fb(th);wl[th]=Zf.actual;for(var nh=0;nh<Ni;nh++)if(ht[th][nh]){var Uv=a.Eb(nh);js[nh]=Uv.actual}}}for(var $f=0;$f<te;$f++){var ro=Gt[$f];if(ro.visible||ro===nc){var ul=a.Fb(ro.row),$s=a.Eb(ro.column);switch(Yo.h(Math.max($s.minimum,Math.min(y,$s.maximum)),Math.max(ul.minimum,Math.min(x,ul.maximum))),ga=fl(ro,ul,$s,!1),ga){case Bn:js[$s.index]!==0&&(Yo.width=Math.min(Yo.width,js[$s.index])),wl[ul.index]!==0&&(Yo.height=Math.min(Yo.height,wl[ul.index]));break;case lr:js[$s.index]!==0&&(Yo.width=Math.min(Yo.width,js[$s.index]));break;case br:wl[ul.index]!==0&&(Yo.height=Math.min(Yo.height,wl[ul.index]))}isFinite($s.width)&&(Yo.width=$s.width),isFinite(ul.height)&&(Yo.height=ul.height),Pu.h(0,0);for(var Wv=$s.minimum,us=ul.minimum,ac=1;ac<ro.rowSpan&&!(ro.row+ac>=a.rowCount);ac++)kn=a.Fb(ro.row+ac),Bo=0,Bo=ga===Bn||ga===br?Math.max(kn.minimum,wl[ro.row+ac]===0?kn.maximum:Math.min(wl[ro.row+ac],kn.maximum)):Math.max(kn.minimum,isNaN(kn.Hc)?kn.maximum:Math.min(kn.Hc,kn.maximum)),Pu.height+=Bo,us+=kn.minimum;for(var Xs=1;Xs<ro.columnSpan&&!(ro.column+Xs>=a.columnCount);Xs++)kn=a.Eb(ro.column+Xs),Bo=0,Bo=ga===Bn||ga===lr?Math.max(kn.minimum,js[ro.column+Xs]===0?kn.maximum:Math.min(js[ro.column+Xs],kn.maximum)):Math.max(kn.minimum,isNaN(kn.Hc)?kn.maximum:Math.min(kn.Hc,kn.maximum)),Pu.width+=Bo,Wv+=kn.minimum;Yo.width+=Pu.width,Yo.height+=Pu.height;var Xf=ro.margin,rh=Xf.right+Xf.left,Lg=Xf.top+Xf.bottom;ro.measure(Yo.width,Yo.height,Wv,us);for(var Yf=ro.measuredBounds,Dl=Math.max(Yf.width+rh,0),zh=Math.max(Yf.height+Lg,0),ih=0,Jf=0;Jf<ro.rowSpan&&!(ro.row+Jf>=a.rowCount);Jf++)kn=a.Fb(ro.row+Jf),ih+=kn.total||0;if(ih<zh){var sc=zh-ih,nu=zh-ih;if(ro.spanAllocation!==null)for(var lc=ro.spanAllocation,Cu=0;Cu<ro.rowSpan&&!(0>=sc)&&!(ro.row+Cu>=a.rowCount);Cu++){kn=a.Fb(ro.row+Cu);var uc=kn.oa||0,Gh=lc(ro,kn,nu);kn.actual=Math.min(kn.maximum,uc+Gh),kn.oa!==uc&&(sc-=kn.oa-uc)}for(;0<sc;){var bl=kn.oa||0;if(isNaN(kn.height)&&kn.maximum>bl&&(kn.actual=Math.min(kn.maximum,bl+sc),kn.oa!==bl&&(sc-=kn.oa-bl)),kn.index===0)break;kn=a.Fb(kn.index-1)}}for(var Nd=0,cc=0;cc<ro.columnSpan&&!(ro.column+cc>=a.columnCount);cc++)kn=a.Eb(ro.column+cc),Nd+=kn.total||0;if(Nd<Dl){var jd=Dl-Nd,Uy=Dl-Nd;if(ro.spanAllocation!==null)for(var Eu=ro.spanAllocation,Hh=0;Hh<ro.columnSpan&&!(0>=jd)&&!(ro.column+Hh>=a.columnCount);Hh++){kn=a.Eb(ro.column+Hh);var kg=kn.oa||0,Wy=Eu(ro,kn,Uy);kn.actual=Math.min(kn.maximum,kg+Wy),kn.oa!==kg&&(jd-=kn.oa-kg)}for(;0<jd;){var Kv=kn.oa||0;if(isNaN(kn.width)&&kn.maximum>Kv&&(kn.actual=Math.min(kn.maximum,Kv+jd),kn.oa!==Kv&&(jd-=kn.oa-Kv)),kn.index===0)break;kn=a.Eb(kn.index-1)}}}}Pn(Gt),Wn.free(Pu),Wn.free(Yo),wl!==void 0&&Pn(wl),js!==void 0&&Pn(js);var Id=0,Dd=0,Vv=a.desiredSize,gx=a.maxSize;ga=Ra(a,!0);var Og=xu=eu=0,Ag=0;te=a.columnCount;for(var Zv=0;Zv<te;Zv++)Gn[Zv]!==void 0&&(kn=a.Eb(Zv),isFinite(kn.width)?(Og+=kn.width,Og+=kn.Wc()):Tm(kn)===Hp?(Og+=kn.oa,Og+=kn.Wc()):kn.oa!==0&&(eu+=kn.oa,eu+=kn.Wc()));isFinite(Vv.width)?Id=Math.min(Vv.width,gx.width):Id=ga!==An&&isFinite(y)?y:eu,Id=Math.max(Id,a.minSize.width),Id=Math.max(Id-Og,0);for(var Qx=eu===0?1:Math.max(Id/eu,1),$v=0;$v<te;$v++)Gn[$v]!==void 0&&(kn=a.Eb($v),isFinite(kn.width)||Tm(kn)===Hp||(kn.actual=kn.oa*Qx),kn.position=E.width,kn.oa!==0&&(E.width+=kn.oa,E.width+=kn.Wc()));te=a.rowCount;for(var Xv=0;Xv<te;Xv++)Jn[Xv]!==void 0&&(kn=a.Fb(Xv),isFinite(kn.height)?(Ag+=kn.height,Ag+=kn.Wc()):Tm(kn)===Hp?(Ag+=kn.oa,Ag+=kn.Wc()):kn.oa!==0&&(xu+=kn.oa,xu+=kn.Wc()));isFinite(Vv.height)?Dd=Math.min(Vv.height,gx.height):Dd=ga!==An&&isFinite(x)?x:xu,Dd=Math.max(Dd,a.minSize.height),Dd=Math.max(Dd-Ag,0);for(var qx=xu===0?1:Math.max(Dd/xu,1),Yv=0;Yv<te;Yv++)Jn[Yv]!==void 0&&(kn=a.Fb(Yv),isFinite(kn.height)||Tm(kn)===Hp||(kn.actual=kn.oa*qx),kn.position=E.height,kn.oa!==0&&(E.height+=kn.oa,E.height+=kn.Wc()));te=se.length;for(var Ky=0;Ky<te;Ky++){var Ng=se[Ky],Vy=0,Zy=0;Ng.type===Rn.TableRow?(Vy=E.width,kn=a.Fb(Ng.row),Zy=kn.actual):(kn=a.Eb(Ng.column),Vy=kn.actual,Zy=E.height),Ng.measuredBounds.h(0,0,Vy,Zy),xo(Ng,!1)}Pn(se),a.inRowsCols=ht},vm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding,te=E.left;E=E.top;var ne=a.inRowsCols;if(ne!==null){for(var se,ce,ge=ne.length,xe=0,Ae=0;Ae<ge;Ae++)ne[Ae]&&(xe=Math.max(xe,ne[Ae].length));ce=a.rowDefs,se=a.colDefs;var Ue=Ae=0,Je=Math.min(a.topIndex,ge-1);if(0<ce.length){for(;Je!==ge&&(ce[Je]===void 0||ce[Je].oa===0);)Je++;Je=Math.max(Math.min(Je,ge-1),0),Ae=-ce[Je].position}var rt=Math.min(a.leftIndex,xe-1);if(0<se.length){for(;rt!==xe&&(se[rt]===void 0||se[rt].oa===0);)rt++;rt=Math.max(Math.min(rt,xe-1),0),Ue=-se[rt].position}for(var ht=0,Ft=0;ht!==ge&&ce[ht]===void 0;)ht++;for(;Ft!==ge&&se[Ft]===void 0;)Ft++;xe=a.part,a.Fb(ht),a.Eb(Ft);for(var Ot=0;Ot<y.length;Ot++){var _t=y[Ot];if(_t instanceof Rn&&_t.visible&&Vu(_t)){if(_t.type===Rn.TableRow){se=a.Fb(_t.row);var Gt=a.Eb(Ft)}else se=a.Fb(ht),Gt=a.Eb(_t.column);ce=se.position+Ae+E,se.oa!==0&&(ce+=se.Io(Math.max(ht,Je))),se=Gt.position+Ue+te,Gt.oa!==0&&(se+=Gt.Io(Math.max(Ft,rt))),Gt=_t.measuredBounds,_t.Uk(),_t.actualBounds.ka();var Kt=_t.actualBounds,Yt=wn.allocAt(Kt.x,Kt.y,Kt.width,Kt.height);Kt.x=_t.type===Rn.TableRow?te:se,Kt.y=_t.type===Rn.TableColumn?E:ce,Kt.width=Gt.width,Kt.height=Gt.height,_t.actualBounds.freeze(),Ul(_t,!1),Ai(Yt,Kt)||xe===null||(xe.oh(),_t.Pn(xe)),wn.free(Yt)}}for(Ot=Wn.alloc(),_t=0;_t<ge;_t++)if(ne[_t]){for(xe=ne[_t].length,Gt=a.Fb(_t),ce=Gt.position+Ae+E,Gt.oa!==0&&(ce+=Gt.Io(Math.max(ht,Je))),Kt=0;Kt<xe;Kt++)if(ne[_t][Kt]){Yt=a.Eb(Kt),se=Yt.position+Ue+te,Yt.oa!==0&&(se+=Yt.Io(Math.max(Ft,rt)));for(var on=ne[_t][Kt],Zn=on.length,nr=0;nr<Zn;nr++){var Jn=on[nr],Gn=Jn.measuredBounds;Ot.h(0,0);for(var kn=1;kn<Jn.rowSpan&&!(_t+kn>=a.rowCount);kn++){var Nr=a.Fb(_t+kn);Nr.oa!==0&&(Ot.height+=Nr.total)}for(kn=1;kn<Jn.columnSpan&&!(Kt+kn>=a.columnCount);kn++)Nr=a.Eb(Kt+kn),Nr.oa!==0&&(Ot.width+=Nr.total);var Er=Yt.oa+Ot.width,pi=Gt.oa+Ot.height;kn=se,Nr=ce;var Ni=Er,Fo=pi,Go=se,fa=ce,Bo=Er,nc=pi;se+Er>x.width&&(Bo=Math.max(x.width-se,0)),ce+pi>x.height&&(nc=Math.max(x.height-ce,0));var fo=Jn.alignment;if(fo.Xb()){fo=a.defaultAlignment,fo.sb()||(fo=ui);var yl=fo.x,pa=fo.y,rc=fo.offsetX;fo=fo.offsetY;var ys=Yt.alignment,Zs=Gt.alignment;ys.sb()&&(yl=ys.x,rc=ys.offsetX),Zs.sb()&&(pa=Zs.y,fo=Zs.offsetY)}else yl=fo.x,pa=fo.y,rc=fo.offsetX,fo=fo.offsetY;(isNaN(yl)||isNaN(pa))&&(pa=yl=.5,fo=rc=0),ys=Gn.width,Zs=Gn.height;var as=Jn.margin,Va=as.left+as.right,Jc=as.top+as.bottom,Sl=fl(Jn,Gt,Yt,!1);!isNaN(Jn.desiredSize.width)||Sl!==Bn&&Sl!==lr||(ys=Math.max(Er-Va,0)),!isNaN(Jn.desiredSize.height)||Sl!==Bn&&Sl!==br||(Zs=Math.max(pi-Jc,0)),Er=Jn.maxSize,pi=Jn.minSize,ys=Math.min(Er.width,ys),Zs=Math.min(Er.height,Zs),ys=Math.max(pi.width,ys),Zs=Math.max(pi.height,Zs),Er=Zs+Jc,kn+=Ni*yl-(ys+Va)*yl+rc+as.left,Nr+=Fo*pa-Er*pa+fo+as.top,Jn.visible&&(Yi(Go,fa,Bo,nc,kn,Nr,Gn.width,Gn.height)?Jn.arrange(kn,Nr,ys,Zs):Jn.arrange(kn,Nr,ys,Zs,new wn(Go,fa,Bo,nc)))}}}for(Wn.free(Ot),a=0;a<b;a++)x=y[a],te=x instanceof Rn?x:null,te!==null&&Vu(te)&&(te=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,te.width,te.height),x.naturalBounds.freeze())}};function ym(){this.xa="Base"}Xt(ym,Mo),ym.prototype.measure=function(){},ym.prototype.arrange=function(){};function Sm(){this.xa="Base"}Xt(Sm,Mo),Sm.prototype.measure=function(){},Sm.prototype.arrange=function(){};function xm(){this.xa="Base"}Xt(xm,Mo),xm.prototype.measure=function(a,y,x,b,E,te,ne){1<b.length&&zt("Viewbox Panel cannot contain more than one GraphObject."),b=b[0],b.Ca=1,b.Uj(),b.measure(1/0,1/0,te,ne);var se=b.measuredBounds,ce=b.margin,ge=ce.right+ce.left;if(ce=ce.top+ce.bottom,isFinite(y)||isFinite(x)){var xe=b.scale,Ae=se.width;se=se.height;var Ue=Math.max(y-ge,0),Je=Math.max(x-ce,0),rt=1;a.viewboxStretch===ir?Ae!==0&&se!==0&&(rt=Math.min(Ue/Ae,Je/se)):Ae!==0&&se!==0&&(rt=Math.max(Ue/Ae,Je/se)),rt===0&&(rt=1e-4),b.Ca*=rt,xe!==b.scale&&(xo(b,!0),b.measure(1/0,1/0,te,ne))}se=b.measuredBounds,E.width=isFinite(y)?y:Math.max(se.width+ge,0),E.height=isFinite(x)?x:Math.max(se.height+ce,0)},xm.prototype.arrange=function(a,y,x){y=y[0];var b=y.measuredBounds,E=y.margin,te=Math.max(b.width+(E.right+E.left),0);E=Math.max(b.height+(E.top+E.bottom),0);var ne=y.alignment;ne.Xb()&&(ne=a.defaultAlignment),ne.sb()||(ne=ui),y.arrange(x.width*ne.x-te*ne.x+ne.offsetX,x.height*ne.y-E*ne.y+ne.offsetY,b.width,b.height)};function _p(){this.xa="Base"}Xt(_p,Mo),_p.prototype.measure=function(){},_p.prototype.arrange=function(){},_p.prototype.gc=function(a,y,x){x=a.Df()*x.scale,0>=x&&(x=1);var b=a.gridCellSize,E=b.width;b=b.height;var te=a.naturalBounds,ne=a.actualBounds,se=te.width,ce=te.height,ge=Math.ceil(se/E),xe=Math.ceil(ce/b),Ae=a.gridOrigin,Ue=Ae.x;Ae=Ae.y,y.save(),y.beginPath(),y.rect(0,0,se,ce),y.clip(),y.Se();for(var Je=[],rt=a.O.s,ht=rt.length,Ft=0;Ft<ht;Ft++){var Ot=rt[Ft],_t=[];if(Je.push(_t),Ot.visible){var Gt=Ot.interval;if(!(0>Gt)){Ot=m0(Ot.figure);for(var Kt=0;Kt<ht;Kt++)if(Kt!==Ft){var Yt=rt[Kt];Yt.visible&&m0(Yt.figure)===Ot&&(Yt=Yt.interval,Yt>Gt&&_t.push(Yt))}}}}for(rt=a.O.s,ht=rt.length,Ft=0;Ft<ht;Ft++){var on=rt[Ft];if(on.visible&&(_t=on.interval||1,Ot=Math.abs(_t),!(2>E*Ot*x))){if(Gt=on.segmentIndex,(!isFinite(Gt)||isNaN(Gt))&&(Gt=0),0>Gt&&(Gt=Ot-Math.min(-Gt,Ot)),Gt=Math.round(Gt%Ot),Ot=on.opacity,Kt=1,Ot!==1){if(Ot===0)continue;Kt=y.globalAlpha,y.globalAlpha=Kt*Ot}Yt=Je[Ft];var Zn=!1,nr=on.strokeDashArray;if(nr!==null&&(Zn=!0,y.js(nr,on.strokeDashOffset)),on.figure==="LineV"&&on.stroke!==null&&0<on.strokeWidth){for(y.lineWidth=on.strokeWidth,to(a,y,on.stroke,!1,!1,te,ne),y.beginPath(),nr=on=Math.floor((Ue-E)/E);nr<=on+ge;nr++){var Jn=nr*E+Ue;0<=Jn&&Jn<=se&&wm(nr,_t,Gt,Yt)&&(y.moveTo(Jn,0),y.lineTo(Jn,ce))}y.stroke(),y.Se()}else if(on.figure==="LineH"&&on.stroke!==null&&0<on.strokeWidth){for(y.lineWidth=on.strokeWidth,to(a,y,on.stroke,!1,!1,te,ne),y.beginPath(),nr=on=Math.floor((Ae-b)/b);nr<=on+xe;nr++)Jn=nr*b+Ae,0<=Jn&&Jn<=ce&&wm(nr,_t,Gt,Yt)&&(y.moveTo(0,Jn),y.lineTo(se,Jn));y.stroke(),y.Se()}else if(on.figure==="BarV"&&on.fill!==null)for(to(a,y,on.fill,!0,!1,te,ne),on=on.width,isNaN(on)&&(on=E),Jn=nr=Math.floor((Ue-E)/E);Jn<=nr+ge;Jn++){var Gn=Jn*E+Ue;0<=Gn+on&&Gn<=se&&wm(Jn,_t,Gt,Yt)&&y.fillRect(Gn,0,on,ce)}else if(on.figure==="BarH"&&on.fill!==null)for(to(a,y,on.fill,!0,!1,te,ne),on=on.height,isNaN(on)&&(on=b),Jn=nr=Math.floor((Ae-b)/b);Jn<=nr+xe;Jn++)Gn=Jn*b+Ae,0<=Gn+on&&Gn<=ce&&wm(Jn,_t,Gt,Yt)&&y.fillRect(0,Gn,se,on);Zn&&y.fs(),Ot!==1&&(y.globalAlpha=Kt)}}y.restore(),y.Vc(!1)};function wm(a,y,x,b){if(0>y)return a%y===x;if(a%y!==x)return!1;y=b.length;for(var E=0;E<y;E++)if(a%b[E]===x)return!1;return!0}function bm(){this.xa="Base"}Xt(bm,Mo),bm.prototype.measure=function(a,y,x,b,E){var te=b.length;if(a instanceof hi||a instanceof Hn){var ne=null,se=null;if(a instanceof Hn&&(ne=a),a instanceof hi&&(se=a,ne=se.adornedPart,a.j===null&&(a.j=[])),ne instanceof Hn){var ce=ne;if(te===0)ao(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var ge=a instanceof hi?null:ne.path;y=ne.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var xe=ce.points,Ae=ne.pointsCount;se!==null?se.Ul(!1):ne!==null&&ne.Ul(!1),se=y.width;var Ue=y.height,Je=a.j;if(Je.length=0,ge!==null){i1(a,se,Ue,ge);var rt=ge.measuredBounds;x.ed(rt),Je.push(rt)}rt=Wr.alloc();for(var ht=Nt.alloc(),Ft=Nt.alloc(),Ot=0;Ot<te;Ot++){var _t=b[Ot];if(_t!==ge)if(_t.isPanelMain&&_t instanceof _r){i1(a,se,Ue,_t);var Gt=_t.measuredBounds;x.ed(Gt),Je.push(Gt)}else if(2>Ae)_t.measure(1/0,1/0,0,0),Gt=_t.measuredBounds,x.ed(Gt),Je.push(Gt);else{var Kt=_t.segmentIndex,Yt=_t.segmentFraction,on=_t.alignmentFocus;on.Mc()&&(on=ui);var Zn=_t.segmentOrientation,nr=_t.segmentOffset;if(isNaN(Kt)){var Jn=ce.ua;Gt=cn(),Jn.Qu(Yt,Gt);var Gn=Nt.allocAt(Gt[0],Gt[1]);if(Gn.add(ce.i(0)),Jn.type===Un.j?Gn.offset(-Jn.startX,-Jn.startY):(Jn=Jn.figures.first(),Jn!==null&&Gn.offset(-Jn.startX,-Jn.startY)),Jn=Gt[2],Zn!==ka){var kn=ce.computeAngle(_t,Zn,Jn);_t.Kb=kn}kn=Gn.x-y.x;var Nr=Gn.y-y.y;Nt.free(Gn),Pn(Gt)}else if(Kt<-Ae||Kt>=Ae)Gt=Nt.alloc(),ce.vg(),ce.computeMidPoint(Gt),Jn=ce.midAngle,Zn!==ka&&(kn=ce.computeAngle(_t,Zn,Jn),_t.Kb=kn),kn=Gt.x-y.x,Nr=Gt.y-y.y,Nt.free(Gt);else{if(kn=0,0<=Kt?(Nr=xe.M(Kt),Gt=Kt<Ae-1?xe.M(Kt+1):Nr):(kn=Ae+Kt,Nr=xe.M(kn),Gt=0<kn?xe.M(kn-1):Nr),Nr.Xa(Gt)){0<=Kt?(Jn=0<Kt?xe.M(Kt-1):Nr,kn=Kt<Ae-2?xe.M(Kt+2):Gt):(Jn=kn<Ae-1?xe.M(kn+1):Nr,kn=1<kn?xe.M(kn-2):Gt),Gn=Jn.Bf(Nr);var Er=Gt.Bf(kn);Jn=Gn>Er+10?0<=Kt?Jn.ab(Nr):Nr.ab(Jn):Er>Gn+10?0<=Kt?Gt.ab(kn):kn.ab(Gt):0<=Kt?Jn.ab(kn):kn.ab(Jn)}else Jn=0<=Kt?Nr.ab(Gt):Gt.ab(Nr);Zn!==ka&&(kn=ce.computeAngle(_t,Zn,Jn),_t.Kb=kn),kn=Nr.x+(Gt.x-Nr.x)*Yt-y.x,Nr=Nr.y+(Gt.y-Nr.y)*Yt-y.y}_t.measure(1/0,1/0,0,0),Gt=_t.measuredBounds,Gn=_t.naturalBounds;var pi=0;_t instanceof _r&&(pi=_t.strokeWidth),Er=Gn.width+pi;var Ni=Gn.height+pi;rt.reset(),rt.translate(-Gt.x,-Gt.y),rt.scale(_t.scale,_t.scale),rt.rotate(Zn===ka?_t.angle:Jn,Er/2,Ni/2),Zn!==Qp&&Zn!==eg||rt.rotate(90,Er/2,Ni/2),Zn!==qp&&Zn!==tg||rt.rotate(-90,Er/2,Ni/2),Zn===Qm&&(45<Jn&&135>Jn||225<Jn&&315>Jn)&&rt.rotate(-Jn,Er/2,Ni/2),Gn=new wn(0,0,Er,Ni),ht.xi(Gn,on),rt.Ga(ht),on=-ht.x+pi/2*_t.scale,_t=-ht.y+pi/2*_t.scale,Ft.assign(nr),pi=isNaN(nr.x);var Fo=isNaN(nr.y);if(pi||Fo){Er=Er/2+3,Ni=Ni/2+3;var Go=45<=Jn&&135>=Jn,fa=225<=Jn&&315>=Jn;Zn===ka&&(Go||fa)?(Ft.x=Fo?Er:nr.y,Ft.y=pi?Ni:nr.x,Go?0<=Kt||isNaN(Kt)&&.5>Yt||!pi||(Ft.y=-Ni):fa&&((0<=Kt||isNaN(Kt)&&.5>Yt)&&pi&&(Ft.y=-Ni),Fo&&(Ft.x=-Er))):(pi&&(Ft.x=0<=Kt||isNaN(Kt)&&.5>Yt?Er:-Er),Fo&&(Ft.y=-Ni),Ft.rotate(Jn))}else Ft.rotate(Jn);kn+=Ft.x,Nr+=Ft.y,Gn.set(Gt),Gn.h(kn+on,Nr+_t,Gt.width,Gt.height),Je.push(Gn),x.ed(Gn)}}if(ne!==null)for(b=ne.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),ao(E,x.width||0,x.height||0),Wr.free(rt),Nt.free(ht),Nt.free(Ft)}}}},bm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof hi||a instanceof Hn){var b=a,E=null;a instanceof hi&&(E=a,b=E.adornedPart);var te=a instanceof hi?null:b.path,ne=a.j;if(ne.length!==0){var se=0;if(te!==null&&se<ne.length){var ce=ne[se];se++,te.arrange(ce.x-a.jg.x,ce.y-a.jg.y,ce.width,ce.height)}for(ce=0;ce<x;ce++){var ge=y[ce];if(ge!==te&&se<ne.length){var xe=ne[se];se++,ge.arrange(xe.x-a.jg.x,xe.y-a.jg.y,xe.width,xe.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof Hn)for(te=a.labelNodes;te.next();){var Ae=a;ne=te.value,se=ne.segmentIndex,ce=ne.segmentFraction;var Ue=ne.alignmentFocus;if(ge=ne.segmentOrientation,xe=ne.segmentOffset,isNaN(se)){var Je=Ae.ua,rt=cn();Je.Qu(ce,rt);var ht=Nt.allocAt(rt[0],rt[1]);ht.add(Ae.i(0)),Je.type===Un.j||(Je=Je.figures.first()),ht.offset(-Je.startX,-Je.startY),Je=rt[2],ge!==ka&&(Ae=Ae.computeAngle(ne,ge,Je),ne.angle=Ae),Ae=ht.x;var Ft=ht.y;Nt.free(ht),Pn(rt)}else if(se<-x||se>=x)rt=Nt.alloc(),Je=Ae,Ft=rt,Je.vg(),Je.computeMidPoint(Ft),Je=Ae.midAngle,ge!==ka&&(Ae=Ae.computeAngle(ne,ge,Je),ne.angle=Ae),Ae=rt.x,Ft=rt.y,Nt.free(rt);else{if(ht=0,0<=se?(rt=y.s[se],Ft=se<x-1?y.s[se+1]:rt):(ht=x+se,rt=y.s[ht],Ft=0<ht?y.s[ht-1]:rt),rt.Xa(Ft)){0<=se?(Je=0<se?y.s[se-1]:rt,ht=se<x-2?y.s[se+2]:Ft):(Je=ht<x-1?y.s[ht+1]:rt,ht=1<ht?y.s[ht-2]:Ft);var Ot=Je.Bf(rt),_t=Ft.Bf(ht);Je=Ot>_t+10?0<=se?Je.ab(rt):rt.ab(Je):_t>Ot+10?0<=se?Ft.ab(ht):ht.ab(Ft):0<=se?Je.ab(ht):ht.ab(Je)}else Je=0<=se?rt.ab(Ft):Ft.ab(rt);ge!==ka&&(Ae=Ae.computeAngle(ne,ge,Je),ne.angle=Ae),Ae=rt.x+(Ft.x-rt.x)*ce,Ft=rt.y+(Ft.y-rt.y)*ce}if(Ue.ys())ne.location=new Nt(Ae,Ft);else{Ue.Mc()&&(Ue=ui),rt=Wr.alloc(),rt.reset(),rt.scale(ne.scale,ne.scale),rt.rotate(ne.angle,0,0);var Gt=ne.naturalBounds;ht=wn.allocAt(0,0,Gt.width,Gt.height),Ot=Nt.alloc(),Ot.xi(ht,Ue),rt.Ga(Ot),Ue=-Ot.x,_t=-Ot.y;var Kt=Gt.width,Yt=Gt.height;Gt=Nt.alloc(),Gt.assign(xe);var on=isNaN(xe.x),Zn=isNaN(xe.y);if(on||Zn){Kt=Kt/2+3,Yt=Yt/2+3;var nr=45<=Je&&135>=Je,Jn=225<=Je&&315>=Je;ge===ka&&(nr||Jn)?(Gt.x=Zn?Kt:xe.y,Gt.y=on?Yt:xe.x,nr?0<=se||isNaN(se)&&.5>ce||!on||(Gt.y=-Yt):Jn&&((0<=se||isNaN(se)&&.5>ce)&&on&&(Gt.y=-Yt),Zn&&(Gt.x=-Kt))):(on&&(Gt.x=0<=se||isNaN(se)&&.5>ce?Kt:-Kt),Zn&&(Gt.y=-Yt),Gt.rotate(Je))}else Gt.rotate(Je);Ae+=Gt.x,Ft+=Gt.y,rt.pp(ht),Ue+=ht.x,_t+=ht.y,se=Nt.allocAt(Ae+Ue,Ft+_t),ne.move(se),Nt.free(se),Nt.free(Gt),Nt.free(Ot),wn.free(ht),Wr.free(rt)}}E!==null?E.Ul(!1):b.Ul(!1),b=j1(a),a.location.h(a.position.x+b.x,a.position.y+b.y),Nt.free(b)}};function i1(a,y,x,b){if(ps(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof hi&&a.type===Rn.Link&&a.adornedObject instanceof _r&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof Hn&&a.ua!==null?(a=a.geometry.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):a instanceof hi&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):b.Ge(-(E/2),-(E/2),y+E,x+E),E=b.desiredSize,E.w()||b.ua===null?b.dc.h(0,0,E.width,E.height):b.dc.assign(b.ua.bounds),xo(b,!1)}}function zp(){this.xa="Base"}Xt(zp,Mo),zp.prototype.measure=function(a,y,x,b,E,te,ne){var se=a.Pb();a.graduatedBounds=[];var ce=se.margin,ge=ce.right+ce.left,xe=ce.top+ce.bottom;se.measure(y,x,te,ne);var Ae=se.measuredBounds,Ue=new wn(-ce.left,-ce.top,Math.max(Ae.width+ge,0),Math.max(Ae.height+xe,0));a.graduatedBounds.push(Ue),E.assign(Ue);for(var Je=se.geometry,rt=se.strokeWidth,ht=Je.flattenedSegments,Ft=Je.flattenedLengths,Ot=Je.flattenedTotalLength,_t=ht.length,Gt=0,Kt=0,Yt=cn(),on=0;on<_t;on++){var Zn=ht[on],nr=[];Kt=Gt=0;for(var Jn=Zn.length,Gn=0;Gn<Jn;Gn+=2){var kn=Zn[Gn],Nr=Zn[Gn+1];if(Gn!==0){var Er=180*Math.atan2(Nr-Kt,kn-Gt)/Math.PI;0>Er&&(Er+=360),nr.push(Er)}Gt=kn,Kt=Nr}Yt.push(nr)}if(a.graduatedIntervals===null){for(var pi=[],Ni=a.O.s,Fo=Ni.length,Go=0;Go<Fo;Go++){var fa=Ni[Go],Bo=[];if(pi.push(Bo),fa.visible){var nc=fa.interval;if(!(0>nc)){for(var fo=0;fo<Fo;fo++)if(fo!==Go){var yl=Ni[fo];if(yl.visible&&fa.constructor===yl.constructor){var pa=yl.interval;pa>nc&&Bo.push(pa)}}}}}a.graduatedIntervals=pi}var rc=a.graduatedIntervals,ys=a.O.s,Zs=ys.length,as=0,Va=0,Jc=Ot;a.graduatedMarks=[];for(var Sl,Hf=0;Hf<Zs;Hf++){var ss=ys[Hf];if(Sl=[],ss.visible&&ss!==se){var ga=Math.abs(ss.interval),Eg=a.graduatedTickUnit;if(!(2>Eg*ga*Ot/a.graduatedRange&&ss.graduatedSkip===null)){var Ld=Ft[0][0],Nl=0,Za=0;Va=Ot*ss.graduatedStart-1e-4,Jc=Ot*ss.graduatedEnd+1e-4;var Fh=Eg*ga,ls=a.graduatedTickBase;if(ls<a.graduatedMin){var Qc=(a.graduatedMin-ls)/Fh;Qc=Qc%1===0?Qc:Math.floor(Qc+1),ls+=Qc*Fh}else ls>a.graduatedMin+Fh&&(ls-=Math.floor((ls-a.graduatedMin)/Fh)*Fh);for(var zv=rc[Hf],Mg=ls,Gy=1e-6*a.graduatedMax,eu=1;ls<=a.graduatedMax+Gy;eu++){e:{for(var xu=zv.length,kd=0;kd<xu;kd++){var qc=(ls-a.graduatedTickBase)%(zv[kd]*a.graduatedTickUnit),Uf=1e-6*a.graduatedTickUnit;if(qc<Uf&&qc>-Uf){var eh=!1;break e}}eh=!0}if(eh&&(ls>a.graduatedMax&&(ls=a.graduatedMax),ss.graduatedSkip===null||ss instanceof ji&&!ss.graduatedSkip(ls,ss)||ss instanceof _r&&!ss.graduatedSkip(ls,ss))&&(as=(ls-a.graduatedMin)*Ot/a.graduatedRange,as>Ot&&(as=Ot),Va<=as&&as<=Jc)){for(var tu=Yt[Nl][Za],ic=Ft[Nl][Za];Nl<Ft.length;){for(;as>Ld&&Za<Ft[Nl].length-1;)Za++,tu=Yt[Nl][Za],ic=Ft[Nl][Za],Ld+=ic;if(as<=Ld)break;Nl++,Za=0,tu=Yt[Nl][Za],ic=Ft[Nl][Za],Ld+=ic}var $a=ht[Nl],jl=$a[2*Za],Gv=$a[2*Za+1],wu=(as-(Ld-ic))/ic,Wf=new Nt(jl+($a[2*Za+2]-jl)*wu+rt/2-Je.bounds.x,Gv+($a[2*Za+3]-Gv)*wu+rt/2-Je.bounds.y);Wf.scale(se.scale,se.scale);e:{var xl=tu,Bh=Yt[Nl];if(!(.5005>wu&&.4995<wu)){var Il=xl;if(.5>wu?0<Za?Il=Bh[Za-1]:qt.$($a[0],$a[$a.length-2])&&qt.$($a[1],$a[$a.length-1])&&(Il=Bh[Bh.length-1]):.5<wu&&(Za+1<Bh.length?Il=Bh[Za+1]:qt.$($a[0],$a[$a.length-2])&&qt.$($a[1],$a[$a.length-1])&&(Il=Bh[0])),xl!==Il){var Od=Math.abs(xl-Il);if(180<Od&&(xl<Il?xl+=360:Il+=360,Od=Math.abs(xl-Il)),5e-4>wu||.9995<wu){tu=(xl+Il)/2%360;break e}if(10>Od){var Kf=1-Math.abs(.5-wu);tu=(xl*Kf+Il*(1-Kf))%360;break e}}}tu=xl}if(ss instanceof ji){var ll="";ss.graduatedFunction!==null?(ll=ss.graduatedFunction(ls,ss),ll=ll!=null?ll.toString():""):ll=(+ls.toFixed(2)).toString(),ll!==""&&Sl.push({$l:Wf,angle:tu,text:ll})}else Sl.push({$l:Wf,angle:tu})}ls=Mg+eu*Fh}}}a.graduatedMarks.push(Sl)}Pn(Yt);var Yo=a.graduatedMarks;if(Yo!==null)for(var Tg=b.length,Ia=0;Ia<Tg;Ia++){var po=b[Ia],Da=Yo[Ia];if(po.visible&&po!==se&&Da.length!==0){if(po instanceof _r){var bu=a,oc=E,Rh=po.alignmentFocus;Rh.Mc()&&(Rh=Ss);var Hy=po.angle;po.Kb=0,po.measure(1/0,1/0,0,0),po.Kb=Hy;var Hv=po.measuredBounds,Vf=Hv.width,_h=Hv.height,Ad=wn.allocAt(0,0,Vf,_h),Xa=Nt.alloc();Xa.xi(Ad,Rh),wn.free(Ad);for(var Pu=-Xa.x,wl=-Xa.y,js=new wn,th=Da.length,Zf=0;Zf<th;Zf++)for(var nh=Da[Zf],Uv=nh.$l.x,$f=nh.$l.y,ro=nh.angle,ul=0;4>ul;ul++){switch(ul){case 0:Xa.h(Pu,wl);break;case 1:Xa.h(Pu+Vf,wl);break;case 2:Xa.h(Pu,wl+_h);break;case 3:Xa.h(Pu+Vf,wl+_h)}Xa.rotate(ro+po.angle),Xa.offset(Uv,$f),Zf===0&&ul===0?js.h(Xa.x,Xa.y,0,0):js.Ye(Xa),Xa.offset(-Uv,-$f),Xa.rotate(-ro-po.angle)}Nt.free(Xa),bu.graduatedBounds!==null&&bu.graduatedBounds.push(js),yi(oc,js.x,js.y,js.width,js.height)}else if(po instanceof ji){var $s=a,Wv=E;$s.temporaryTextBlock===null&&($s.temporaryTextBlock=new ji);var us=$s.temporaryTextBlock;S1(us,po);var ac=po.alignmentFocus;ac.Mc()&&(ac=Ss);for(var Xs=po.segmentOrientation,Xf=po.segmentOffset,rh=new wn,Lg=0,Yf=0,Dl=0,zh=0,ih=0,Jf=Da.length,sc=0;sc<Jf;sc++){var nu=Da[sc];Lg=nu.$l.x,Yf=nu.$l.y,Dl=nu.angle,ih=zh=po.angle,Xs!==ka&&(ih=Xs===Jp||Xs===Jm?Dl+po.angle:Dl,zh=Hn.computeAngle(Xs,ih)),us.Kb=zh,us.text=nu.text||"",us.measure(1/0,1/0,0,0);var lc=us.measuredBounds,Cu=us.naturalBounds,uc=Cu.width,Gh=Cu.height,bl=Wr.alloc();bl.reset(),bl.translate(-lc.x,-lc.y),bl.scale(us.scale,us.scale),bl.rotate(ih,uc/2,Gh/2),Xs!==Qp&&Xs!==eg||bl.rotate(90,uc/2,Gh/2),Xs!==qp&&Xs!==tg||bl.rotate(-90,uc/2,Gh/2),Xs===Qm&&(45<Dl&&135>Dl||225<Dl&&315>Dl)&&bl.rotate(-Dl,uc/2,Gh/2);var Nd=wn.allocAt(0,0,uc,Gh),cc=Nt.alloc();cc.xi(Nd,ac),bl.Ga(cc);var jd=-cc.x,Uy=-cc.y,Eu=Nt.alloc();Eu.assign(Xf),isNaN(Eu.x)&&(Eu.x=uc/2+3),isNaN(Eu.y)&&(Eu.y=-(Gh/2+3)),Eu.rotate(Dl),Lg+=Eu.x+jd,Yf+=Eu.y+Uy;var Hh=new wn(Lg,Yf,lc.width,lc.height),kg=new wn(lc.x,lc.y,lc.width,lc.height),Wy=new wn(Cu.x,Cu.y,Cu.width,Cu.height);nu.Sz=zh,nu.lineCount=us.lineCount,nu.lines=[us.Cb,us.Ih,us.df,us.Le,us.Qc,us.Qb,us.ze],nu.actualBounds=Hh,nu.measuredBounds=kg,nu.naturalBounds=Wy,sc===0?rh.assign(Hh):rh.ed(Hh),Nt.free(Eu),Nt.free(cc),wn.free(Nd),Wr.free(bl)}$s.graduatedBounds!==null&&$s.graduatedBounds.push(rh),yi(Wv,rh.x,rh.y,rh.width,rh.height)}xo(po,!1)}}},zp.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),E=a.graduatedMarks;if(E!==null){var te=a.graduatedBounds,ne=0,se=te[ne];ne++,b!==null&&b.arrange(se.x-x.x,se.y-x.y,se.width,se.height);for(var ce=y.length,ge=0;ge<ce;ge++){var xe=y[ge];se=E[ge],xe.visible&&xe!==b&&se.length!==0&&(se=te[ne],ne++,xe.arrange(se.x-x.x,se.y-x.y,se.width,se.height))}a.graduatedBounds=null}}},zp.prototype.gc=function(a,y,x){var b=x.$i;x.$i=!0;var E=a.naturalBounds,te=E.width,ne=E.height;E=y instanceof rs,y.save(),y.beginPath(),y.rect(-1,-1,te+1,ne+1),y.clip(),y.Se(),te=a.Pb(),te.gc(y,x),ne=a.Df()*x.scale,0>=ne&&(ne=1);for(var se=te.actualBounds,ce=a.O.s,ge=a.graduatedMarks,xe=ce.length,Ae=0;Ae<xe;Ae++){var Ue=ce[Ae],Je=ge[Ae],rt=Je.length;if(Ue.visible&&Ue!==te&&Je.length!==0){if(Ue instanceof _r){if(!(2>a.graduatedTickUnit*Ue.interval*te.geometry.flattenedTotalLength/a.graduatedRange*ne&&Ue.graduatedSkip===null)){var ht=Ue.measuredBounds,Ft=Ue.strokeWidth*Ue.scale,Ot=Ue.alignmentFocus;Ot.Mc()&&(Ot=Ss);for(var _t=0;_t<rt;_t++){var Gt=Je[_t].$l,Kt=Je[_t].angle,Yt=Ot,on=Ue.Ab;on.reset(),on.translate(Gt.x+se.x,Gt.y+se.y),on.rotate(Kt+Ue.angle,0,0),on.translate(-ht.width*Yt.x+Yt.offsetX+Ft/2,-ht.height*Yt.y+Yt.offsetY+Ft/2),on.scale(Ue.scale,Ue.scale),Hs(Ue,!1),Ue.wh.set(Ue.Ab),Ue.Kk=Ue.scale,Ms(Ue,!1),Ue.gc(y,x),E&&(a.svg.appendChild(Ue.svg),Ue.svg=null),Ue.Ab.reset()}}}else if(Ue instanceof ji)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new ji),ht=a.temporaryTextBlock,S1(ht,Ue),Ft=0;Ft<rt;Ft++)Ot=Je[Ft],Ot.actualBounds&&Ot.measuredBounds&&Ot.naturalBounds&&(ht.ec=Ot.text||"",ht.Kb=Ot.Sz||0,ht.Gc=Ot.lineCount||0,_t=Ot.lines,_t!==void 0&&(ht.Cb=_t[0],ht.Ih=_t[1],ht.df=_t[2],ht.Le=_t[3],ht.Qc=_t[4],ht.Qb=_t[5],ht.ze=_t[6]),Ot.naturalBounds&&(ht.dc=Ot.naturalBounds),Ot.actualBounds&&(_t=Ot.actualBounds,ht.arrange(_t.x,_t.y,_t.width,_t.height)),_t=Ot.actualBounds,ht.arrange(_t.x,_t.y,_t.width,_t.height),Gt=Ot.measuredBounds,Ot=Ot.naturalBounds,Kt=ht.Ab,Kt.reset(),Kt.translate(_t.x+se.x,_t.y+se.y),Kt.translate(-Gt.x,-Gt.y),ht.no(Kt,Ot.x,Ot.y,Ot.width,Ot.height),Hs(ht,!1),ht.wh.set(ht.Ab),ht.Kk=ht.scale,Ms(ht,!1),ht.Ng=Ue.part,ht.Me=Ue.panel,ht.gc(y,x),ht.Me=null,ht.Ng=null,E&&(a.svg.appendChild(ht.svg),ht.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function Rn(a,y){if(Jt.call(this),this.na=null,a===void 0)this.na=Rn.Position;else if(typeof a=="string"){var x=nl.I(a);x!==null&&(this.na=x)}else a instanceof Mo?this.na=a:a&&(this.na=Rn.Position,y=a);this.na===null&&zt("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Rn.Grid?1048576:0),this.O=new Tn,this.yb=va,this.Tm=wi,this.Uf=Dr,this.$g=null,this.$e="",this.jg=new wn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=ir,this.jn=gi,this.kn=ni,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Xt(Rn,Jt),Rn.prototype.cloneProtected=function(a){Jt.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},Rn.prototype.Af=function(a){Jt.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,x=y.length,b=0;b<x;b++)y[b].Me=a;a.$g=null},Rn.prototype.copy=function(){var a=Jt.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].copy();E.wi(a),E.Ng=null;var te=a.O,ne=te.count;if(te.Gb(ne,E),te=a.part,te!==null){te.Rh=null,E.portId!==null&&te instanceof Xn&&(te.Te=!0);var se=a.diagram;se!==null&&se.undoManager.isUndoingRedoing||te.cb(lo,"elements",a,null,E,null,ne)}}return a}return null},it=Rn.prototype,it.toString=function(){return"Panel("+this.type.name+")#"+Ar(this)},it.Pn=function(a){Jt.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},it.hh=function(a,y){if(this.na===Rn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Rn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Rn.Table)if(a.yc(),a instanceof rs){var x=a.yd;a.yd=um(a,"gojs-ts"),g0(this,a),a.nh.pop(),a.yd=x}else g0(this,a);(x=this.isClipping&&this.na===Rn.Spot)&&a.save();for(var b=this.Pb(),E=this.O.s,te=E.length,ne=0;ne<te;ne++){var se=E[ne];x&&se===b&&(a.clipInsteadOfFill=!0),se.gc(a,y),x&&se===b&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function g0(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&Pm(a,y,!0,x,!0),b!==null&&Pm(a,y,!1,b,!0),x!==null&&o1(a,y,!0,x),b!==null&&o1(a,y,!1,b),x!==null&&Pm(a,y,!0,x,!1),b!==null&&Pm(a,y,!1,b,!1)}function o1(a,y,x,b){for(var E=b.length,te=a.actualBounds,ne=a.naturalBounds,se=!0,ce=0;ce<E;ce++){var ge=b[ce];if(ge!==void 0&&ge.actual!==0)if(se)se=!1;else{if(x){if(ge.position>ne.height)continue}else if(ge.position>ne.width)continue;var xe=ge.separatorStrokeWidth;isNaN(xe)&&(xe=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Ae=ge.separatorStroke;if(Ae===null&&(Ae=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),xe!==0&&Ae!==null){to(a,y,Ae,!1,!1,ne,te),Ae=!1;var Ue=ge.separatorDashArray;Ue===null&&(Ue=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Ue!==null&&(Ae=!0,y.js(Ue,0)),y.beginPath(),Ue=ge.position+xe,x?Ue>ne.height&&(xe-=Ue-ne.height):Ue>ne.width&&(xe-=Ue-ne.width),ge=ge.position+xe/2,y.lineWidth=xe,xe=a.yb,x?(ge+=xe.top,Ue=ne.width-xe.right,y.moveTo(xe.left,ge),y.lineTo(Ue,ge)):(ge+=xe.left,Ue=ne.height-xe.bottom,y.moveTo(ge,xe.top),y.lineTo(ge,Ue)),y.stroke(),y.Se(),Ae&&y.fs()}}}}function Pm(a,y,x,b,E){for(var te=b.length,ne=a.actualBounds,se=a.naturalBounds,ce=a1(a,!0),ge=a1(a,!1),xe=0;xe<te;xe++){var Ae=b[xe];if(Ae!==void 0&&Ae.background!==null&&Ae.coversSeparators!==E&&Ae.actual!==0){var Ue=x?ne.height:ne.width;if(!(Ae.position>Ue)){var Je=Ae.Wc(),rt=Ae.separatorStrokeWidth;isNaN(rt)&&(rt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ht=Ae.separatorStroke;ht===null&&(ht=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(ht===null||Ae.index===(x?ce:ge))&&(rt=0),Je-=rt,rt=Ae.position+rt,Je+=Ae.actual,rt+Je>Ue&&(Je=Ue-rt),0>=Je||(Ue=a.yb,to(a,y,Ae.background,!0,!1,se,ne),x?y.fillRect(Ue.left,rt+Ue.top,ne.width-(Ue.left+Ue.right),Je):y.fillRect(rt+Ue.left,Ue.top,Je,ne.height-(Ue.top+Ue.bottom)))}}}}function a1(a,y){for(var x=y?a.rowCount:a.columnCount,b=0;b<x;b++){var E=y?a.rowDefs[b]:a.colDefs[b];if(E!==void 0)return E.index}return 0}function m0(a){return a==="LineV"||a==="BarV"}it.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},it.kk=function(a,y,x){if(!Jt.prototype.kk.call(this,a,y,x))return!1;if(this.type===Rn.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,g0(this,a),a.yd=null;else if(this.na===Rn.Grid||this.na===Rn.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;x=this.O.s;for(var b=x.length,E=0;E<b;E++)x[E].gc(a,y);return!0},it.nk=function(){return!0},it.$o=function(a,y,x,b){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var E=0,te=0,ne=0;ne<y.length;ne++)if(y[ne].Ed()){var se=y[ne].actualBounds;E=ne===0?se.x:Math.min(se.x,E),te=ne===0?se.y:Math.min(se.y,te)}b.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-E)+","+(a.y-x.y-te)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else Jt.prototype.$o.call(this,a,y,x,b)},it.Sj=function(a,y,x,b,E){var te=this.se(),ne=this.transform,se=1/(ne.m11*ne.m22-ne.m12*ne.m21),ce=ne.m22*se,ge=-ne.m12*se,xe=-ne.m21*se,Ae=ne.m11*se,Ue=se*(ne.m21*ne.dy-ne.m22*ne.dx),Je=se*(ne.m12*ne.dx-ne.m11*ne.dy);if(this.areaBackground!==null)return ne=this.actualBounds,qt.Ff(ne.left,ne.top,ne.right,ne.bottom,a,y,x,b,E);if(this.background!==null)return te=a*ce+y*xe+Ue,se=a*ge+y*Ae+Je,a=x*ce+b*xe+Ue,ce=x*ge+b*Ae+Je,E.h(0,0),x=this.naturalBounds,te=qt.Ff(0,0,x.width,x.height,te,se,a,ce,E),E.transform(ne),te;te||(ce=1,xe=ge=0,Ae=1,Je=Ue=0),se=a*ce+y*xe+Ue,a=a*ge+y*Ae+Je,ce=x*ce+b*xe+Ue,x=x*ge+b*Ae+Je,E.h(ce,x),b=(ce-se)*(ce-se)+(x-a)*(x-a),ge=!1,Ae=this.O.s,Je=Ae.length,xe=Nt.alloc(),Ue=null,y=1/0;var rt=null,ht=this.isClipping&&this.na===Rn.Spot;ht&&(rt=Nt.alloc(),Ue=this.Pb(),(ge=Ue.Sj(se,a,ce,x,rt))&&(y=(se-rt.x)*(se-rt.x)+(a-rt.y)*(a-rt.y)));for(var Ft=0;Ft<Je;Ft++){var Ot=Ae[Ft];Ot.visible&&Ot!==Ue&&Ot.Sj(se,a,ce,x,xe)&&(ge=!0,Ot=(se-xe.x)*(se-xe.x)+(a-xe.y)*(a-xe.y),Ot<b&&(b=Ot,E.set(xe)))}return ht&&(y>b&&E.set(rt),Nt.free(rt)),Nt.free(xe),te&&E.transform(ne),ge},it.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();Jt.prototype.Gj.call(this)},it.v=function(a){if(!ps(this)){Jt.prototype.v.call(this,a),a=null,(this.na===Rn.Auto||this.na===Rn.Link)&&(a=this.Pb());for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if((E===a||E.isPanelMain)&&E.v(!0),!E.desiredSize.w()){var te=Ra(E,!1);(E instanceof La||E instanceof Rn||E instanceof ji||te!==An)&&E.v(!0)}}}},it.Uj=function(){if(!ps(this)){xo(this,!0),Ul(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},it.Uk=function(){if(!(this.l&2048)){Hs(this,!0),Ms(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},it.Wu=function(){Ms(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},it.Wl=function(a,y,x,b){var E=this.jg;E.h(0,0,0,0);var te=this.desiredSize,ne=this.minSize;x===void 0&&(x=ne.width,b=ne.height),x=Math.max(x,ne.width),b=Math.max(b,ne.height);var se=this.maxSize;isNaN(te.width)||(a=Math.min(te.width,se.width)),isNaN(te.height)||(y=Math.min(te.height,se.height)),a=Math.max(x,a),y=Math.max(b,y);var ce=this.yb;a=Math.max(a-ce.left-ce.right,0),y=Math.max(y-ce.top-ce.bottom,0);var ge=this.O.s;ge.length!==0&&this.na.measure(this,a,y,ge,E,x,b),a=E.width+ce.left+ce.right,ce=E.height+ce.top+ce.bottom,isFinite(te.width)&&(a=te.width),isFinite(te.height)&&(ce=te.height),a=Math.min(se.width,a),ce=Math.min(se.height,ce),a=Math.max(ne.width,a),ce=Math.max(ne.height,ce),a=Math.max(x,a),ce=Math.max(b,ce),ao(E,a,ce),ao(this.naturalBounds,a,ce),this.Ge(0,0,a,ce)},it.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var x=0;x<y;x++){var b=a[x];if(b.isPanelMain===!0)return this.$g=b}this.$g=a[0]}return this.$g};function vu(a){return a.part!==null?a.part.locationObject:null}it.eh=function(a,y,x,b){var E=this.O.s;if(this.actualBounds.h(a,y,x,b),E.length!==0){if(!this.desiredSize.w()){a=Ra(this,!0);var te=this.measuredBounds;y=te.width,te=te.height;var ne=this.Kg,se=ne.left+ne.right;switch(ne=ne.top+ne.bottom,y===x&&te===b&&(a=An),a){case An:(y>x||te>b)&&(this.v(),this.measure(y>x?x:y,te>b?b:te,0,0));break;case Bn:this.v(!0),this.measure(x+se,b+ne,0,0);break;case lr:this.v(!0),this.measure(x+se,te+ne,0,0);break;case br:this.v(!0),this.measure(y+se,b+ne,0,0)}}this.na.arrange(this,E,this.jg)}},it.gh=function(a){var y=this.naturalBounds,x=vu(this);if(Yi(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=Nt.allocAt(0,0);b--;){var te=y[b];if((te.visible||te===x)&&(Vr(E.set(a),te.transform),te.ca(E)))return Nt.free(E),!0}return Nt.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},it.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].ks(a);if(E!==null)return E}return null},it.qm=function(a,y){if(y(this,a),a instanceof Rn){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function Lh(a,y){s1(a,a,y)}function s1(a,y,x){x(y),y=y.O.s;for(var b=y.length,E=0;E<b;E++){var te=y[E];te instanceof Rn&&s1(a,te,x)}}function yx(a,y){l1(a,a,y)}function l1(a,y,x){if(x(y),y instanceof Rn){y=y.O.s;for(var b=y.length,E=0;E<b;E++)l1(a,y[E],x)}}it.Nl=function(a){return u1(this,this,a)};function u1(a,y,x){if(x(y))return y;if(y instanceof Rn){y=y.O.s;for(var b=y.length,E=0;E<b;E++){var te=u1(a,y[E],x);if(te!==null)return te}}return null}it.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=Gp(this));for(var b=0;b<x;b++){var E=y[b];if(E instanceof Rn){var te=E.fb(a);if(te!==null)return te}if(E.name===a)return E}return null};function c1(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var E=a[b];E instanceof Rn?x=Math.max(x,c1(E)):E instanceof _r&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}it.se=function(){return!(this.type===Rn.TableRow||this.type===Rn.TableColumn)};function Vu(a){return a.type===Rn.TableRow||a.type===Rn.TableColumn}it.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),Ma(this)))return null;var b=this.naturalBounds,E=1/this.Df(),te=this.se(),ne=te?a:Vr(Nt.allocAt(a.x,a.y),this.transform),se=this.diagram,ce=10,ge=5;if(se!==null&&(ce=se.Ql("extraTouchArea"),ge=ce/2),Yi(-(ge*E),-(ge*E),b.width+ce*E,b.height+ce*E,ne.x,ne.y)){if(!this.isAtomic){E=this.O.s;var xe=E.length;if(se=Nt.alloc(),ge=(ce=this.isClipping&&this.na===Rn.Spot)?this.Pb():null,ce&&(ge.se()?Vr(se.set(a),ge.transform):se.set(a),!ge.ca(se)))return Nt.free(se),te||Nt.free(ne),null;for(var Ae=vu(this);xe--;){var Ue=E[xe];if((Ue.visible||Ue===Ae)&&(Ue.se()?Vr(se.set(a),Ue.transform):se.set(a),!ce||Ue!==ge)){var Je=null;if(Ue instanceof Rn?Je=Ue.ic(se,y,x):Ue.pickable===!0&&Ue.ca(se)&&(Je=Ue),Je!==null&&(y!==null&&(Je=y(Je)),Je!==null&&(x===null||x(Je))))return Nt.free(se),te||Nt.free(ne),Je}}Nt.free(se)}return this.background===null&&this.areaBackground===null?(te||Nt.free(ne),null):(a=Yi(0,0,b.width,b.height,ne.x,ne.y)?this:null,te||Nt.free(ne),a)}return te||Nt.free(ne),null},it.ji=function(a,y,x,b){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var E=this.naturalBounds,te=this.se(),ne=te?a:Vr(Nt.allocAt(a.x,a.y),this.transform);if(E=Yi(0,0,E.width,E.height,ne.x,ne.y),Vu(this)||E){if(!this.isAtomic){for(var se=this.O.s,ce=se.length,ge=Nt.alloc(),xe=vu(this);ce--;){var Ae=se[ce];if(Ae.visible||Ae===xe){Ae.se()?Vr(ge.set(a),Ae.transform):ge.set(a);var Ue=Ae;Ae=Ae instanceof Rn?Ae:null,(Ae!==null?Ae.ji(ge,y,x,b):Ue.ca(ge))&&Ue.pickable!==!1&&(y!==null&&(Ue=y(Ue)),Ue===null||x!==null&&!x(Ue)||b.add(Ue))}}Nt.free(ge)}return te||Nt.free(ne),E&&(this.background!==null||this.areaBackground!==null)}return te||Nt.free(ne),!1},it.Cf=function(a,y,x,b,E,te){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var ne=te;if(te===void 0&&(ne=Wr.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return v0(this,y,x,E),te===void 0&&Wr.free(ne),!0;if(this.Yc(a,ne)){if(!this.isAtomic)for(var se=vu(this),ce=this.O.s,ge=ce.length;ge--;){var xe=ce[ge];if(xe.visible||xe===se){var Ae=xe.actualBounds,Ue=this.naturalBounds;Ae.x>Ue.width||Ae.y>Ue.height||0>Ae.x+Ae.width||0>Ae.y+Ae.height||(Ae=xe,xe=xe instanceof Rn?xe:null,Ue=Wr.alloc(),Ue.set(ne),(xe!==null?xe.Cf(a,y,x,b,E,Ue):Do(Ae,a,b,Ue))&&(y!==null&&(Ae=y(Ae)),Ae===null||x!==null&&!x(Ae)||E.add(Ae)),Wr.free(Ue))}}return te===void 0&&Wr.free(ne),b}return te===void 0&&Wr.free(ne),!1};function v0(a,y,x,b){for(var E=a.O.s,te=E.length;te--;){var ne=E[te];if(ne.visible){var se=ne.actualBounds,ce=a.naturalBounds;se.x>ce.width||se.y>ce.height||0>se.x+se.width||0>se.y+se.height||(ne instanceof Rn&&v0(ne,y,x,b),y!==null&&(ne=y(ne)),ne===null||x!==null&&!x(ne)||b.add(ne))}}}it.og=function(a,y,x,b,E,te){if(this.pickable===!1)return!1;x===void 0&&(x=null),b===void 0&&(b=null);var ne=this.naturalBounds,se=this.se(),ce=se?a:Vr(Nt.allocAt(a.x,a.y),this.transform),ge=se?y:Vr(Nt.allocAt(y.x,y.y),this.transform),xe=ce.Bf(ge),Ae=0<ce.x&&ce.x<ne.width&&0<ce.y&&ce.y<ne.height||Mi(ce.x,ce.y,0,0,0,ne.height)<=xe||Mi(ce.x,ce.y,0,ne.height,ne.width,ne.height)<=xe||Mi(ce.x,ce.y,ne.width,ne.height,ne.width,0)<=xe||Mi(ce.x,ce.y,ne.width,0,0,0)<=xe;if(ne=ce.zd(0,0)<=xe&&ce.zd(0,ne.height)<=xe&&ce.zd(ne.width,0)<=xe&&ce.zd(ne.width,ne.height)<=xe,se||(Nt.free(ce),Nt.free(ge)),Ae){if(!this.isAtomic){ce=Nt.alloc(),ge=Nt.alloc(),xe=vu(this);for(var Ue=this.O.s,Je=Ue.length;Je--;){var rt=Ue[Je];if(rt.visible||rt===xe){var ht=rt.actualBounds,Ft=this.naturalBounds;(!se||!(ht.x>Ft.width||ht.y>Ft.height||0>ht.x+ht.width||0>ht.y+ht.height))&&(rt.se()?(ht=rt.transform,Vr(ce.set(a),ht),Vr(ge.set(y),ht)):(ce.set(a),ge.set(y)),ht=rt,rt=rt instanceof Rn?rt:null,(rt!==null?rt.og(ce,ge,x,b,E,te):ht.tx(ce,ge,E))&&(x!==null&&(ht=x(ht)),ht===null||b!==null&&!b(ht)||te.add(ht)))}}Nt.free(ce),Nt.free(ge)}return E?Ae:ne}return!1};function y0(a){var y=null;return a instanceof _r&&(y=a.spot1,y===wi&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Ao),y}function S0(a){var y=null;return a instanceof _r&&(y=a.spot2,y===wi&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Qa),y}it.add=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];for(x=0;x<y.length;x++)this.Gb(this.O.count,y[x]);return this},it.M=function(a){return this.O.M(a)},it.Gb=function(a,y){y instanceof pr&&zt("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&zt("Cannot make a Panel contain itself: "+this.toString()),zt("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&zt("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+y.toString()+", already contained by "+x.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==Rn.Grid||y instanceof _r||zt("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Rn.Graduated||y instanceof _r||y instanceof ji||zt("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 qn),this.ge.add(b,y))}var E=this.O;if(b=-1,x===this){for(var te=-1,ne=this.O.s,se=ne.length,ce=0;ce<se;ce++)if(ne[ce]===y){te=ce;break}if(te!==-1){if(te===a||te+1>=E.count&&a>=E.count)return;E.mb(te),b=te}else zt("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>E.count)&&(a=E.count),E.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),ps(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Rn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Em(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof Xn&&(x.Te=!0),x.Te&&x instanceof Xn&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(Eo,"elements",this,y,null,b,null),x.cb(lo,"elements",this,null,y,null,a)))};function x0(a,y){a.l=y?a.l|16777216:a.l&-16777217}it.remove=function(a){for(var y=this.O.s,x=y.length,b=-1,E=0;E<x;E++)if(y[E]===a){b=E;break}b!==-1&&this.pc(b,!0)},it.mb=function(a){0<=a&&this.pc(a,!0)},it.pc=function(a,y){var x=this.O,b=x.M(a);if(b.Ng=null,b.wi(null),this.ge!==null){var E=b.data;typeof E=="object"&&this.ge.remove(E)}x.mb(a),xo(this,!1),this.v(),this.$g===b&&(this.$g=null),this.graduatedIntervals=null;var te=this.part;te!==null&&(te.Rh=null,te.ag=NaN,te.Wb(),te instanceof Xn&&(b instanceof Rn?b.qm(b,function(ne,se){U0(te,se,y)}):U0(te,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||te.cb(Eo,"elements",this,b,null,a,null))},it.Fb=function(a){0>a&&Fn(a,">= 0",Rn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new wo;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(lo,"rowdefs",this,null,x,null,a)}return y[a]},it.oA=function(a){if(0>a&&Fn(a,">= 0",Rn,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(Eo,"rowdefs",this,x,null,a,null),this.v()}}};function h1(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof wo?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}it.Eb=function(a){0>a&&Fn(a,">= 0",Rn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new wo;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(lo,"coldefs",this,null,x,null,a)}return y[a]},it.jA=function(a){if(0>a&&Fn(a,">= 0",Rn,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(Eo,"coldefs",this,x,null,a,null),this.v()}}};function d1(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof wo?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}it.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Mm(y,a),this},it.Hy=function(a,y){return(a=this.Fb(a))&&Mm(a,new wo(y)),this},it.By=function(a,y){return(a=this.Eb(a))&&Mm(a,new wo(y)),this},it.nz=function(a){if(0>a||this.type!==Rn.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,b=x.length,E=this.topIndex;E<b;E++){var te=x[E];if(te!==void 0&&(y+=te.total,a<y))break}return E},it.fz=function(a){if(0>a||this.type!==Rn.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,b=x.length,E=this.leftIndex;E<b;E++){var te=x[E];if(te!==void 0&&(y+=te.total,a<y))break}return E},it.Fz=function(a,y){if(y===void 0&&(y=new Nt(NaN,NaN)),this.type!==Rn.Graduated)return y.h(NaN,NaN),y;a=Math.min(Math.max(a,this.graduatedMin),this.graduatedMax);var x=this.Pb();return x.geometry.Pu((a-this.graduatedMin)/this.graduatedRange,y),x.transform.Ga(y)},it.Gz=function(a){if(this.type!==Rn.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function f1(a){return a=a.allBindings,a!==null&&a._isFrozen}function Ws(a){var y=a.allBindings;if(y===null)a.data!==null&&zt("Template cannot have .data be non-null: "+a),a.allBindings=y=new Tn;else if(y._isFrozen)return;var x=new Tn;x0(a,!1),a.qm(a,function(ge,xe){xe.th();var Ae=xe.localBindings;if(Ae!==null)for(fd(xe,!1),Ae=Ae.iterator;Ae.next();){var Ue=Ae.value;Ue.mode===ug&&fd(xe,!0);var Je=Ue.sourceName;Je!==null&&(Je==="/"&&x0(ge,!0),Je=TS(Ue,ge,xe),Je!==null&&(x.add(Je),Je.srcBindings===null&&(Je.srcBindings=new Tn),Je.srcBindings.add(Ue))),y.add(Ue)}if(xe instanceof Rn&&xe.type===Rn.Table){if(0<xe.rowCount){for(ge=xe.rowDefs,Ae=ge.length,Ue=0;Ue<Ae;Ue++)if(Je=ge[Ue],Je!==void 0&&Je.be!==null)for(var rt=Je.be.iterator;rt.next();){var ht=rt.value;ht.xd=Je,ht.to=2,ht.wl=Je.index,y.add(ht)}}if(0<xe.columnCount){for(xe=xe.colDefs,ge=xe.length,Ae=0;Ae<ge;Ae++)if(Ue=xe[Ae],Ue!==void 0&&Ue.be!==null)for(Je=Ue.be.iterator;Je.next();)rt=Je.value,rt.xd=Ue,rt.to=1,rt.wl=Ue.index,y.add(rt)}}});for(var b=x.iterator;b.next();){var E=b.value;if(E.srcBindings!==null){fd(E,!0);for(var te=E.srcBindings.iterator;te.next();){var ne=te.value;E.localBindings===null&&(E.localBindings=new Tn),E.localBindings.add(ne)}}E.srcBindings=null}for(b=y.iterator;b.next();)if(E=b.value,te=E.xd,te!==null){E.xd=null;var se=E.targetProperty,ce=se.indexOf(".");0<ce&&te instanceof Rn&&(ne=se.substring(0,ce),se=se.substr(ce+1),ce=te.fb(ne),ce!==null?(te=ce,E.targetProperty=se):$n('Warning: unable to find GraphObject named "'+ne+'" for Binding: '+E.toString())),te instanceof wo?(ne=Ar(te.panel),E.Ai=ne===void 0?-1:ne,te.panel.bindingId=E.Ai):te instanceof Jt?(ne=Ar(te),E.Ai=ne===void 0?-1:ne,te.bindingId=E.Ai):zt("Unknown type of binding target: "+te)}y.freeze(),a instanceof pr&&a.Zc()&&a.Va()}it.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return yx(y,function(x){x instanceof Rn&&(x.allBindings=null,x.ub=null);var b=x.localBindings;b!==null&&(x.localBindings=null,b.each(function(E){x.bind(E.copy())})),b=x.animationTriggers,b!==null&&(x.animationTriggers=null,b.each(function(E){x.Jv(E.value.copy())}))}),a&&Ws(y),y},it.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var x=y.value,b=x.sourceProperty;if((a===""||b===""||b===a)&&(b=x.targetProperty,x.converter!==null||b!=="")){b=this.data;var E=x.sourceName;if(E!==null){if(E==="")b=this;else if(E==="/")b=this;else if(E===".")b=this;else if(E==="..")b=this;else if(b=this.fb(E),b===null)continue}else if(x.isToModel)if(b=this.diagram,b!==null)b=b.model.modelData;else continue;var te=this,ne=x.Ai;if(ne!==-1){if(te=this.ks(ne),te===null)continue}else x.xd!==null&&(te=x.xd);if(E==="/"?b=te.part:E==="."?b=te:E===".."&&(b=te.panel),E=x.to,E!==0){if(!(te instanceof Rn))continue;E===1?te=te.Eb(x.wl):E===2&&(te=te.Fb(x.wl))}te!==void 0&&x.Mv(te,b)}}},it.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function Sx(a,y){a=a.O.s;for(var x=a.length,b=y.length,E=0,te=null;E<x&&(te=a[E],!(te instanceof Rn&&te.data!==null));)E++,te=a[E];if(x-E!==b)return!0;if(te===null)return 0<b;for(var ne=0;E<x&&ne<b;){if(te=a[E],!(te instanceof Rn)||te.data!==y[ne])return!0;E++,ne++}return!1}function Gp(a){if(a.type===Rn.Spot||a.type===Rn.Auto)return Math.min(a.O.length,1);if(a.type===Rn.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof _r&&b.isPanelMain))break}return x}return a.type===Rn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Rn&&Vu(a))?1:0}it.mv=function(){for(var a=Gp(this);this.O.length>a;)this.pc(this.O.length-1,!1);p1(this,this.itemArray)};function p1(a,y){var x=Gp(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var b=0;b<x;b++)Cm(a,y[b],b,!0)}else{b=x;for(var E=0;E<y.length;E++,b++){var te=y[E],ne=b<a.O.length?a.O.M(b):null;if(ne instanceof Rn){if(ne.data!==te){var se=b0(a,ne.data),ce=b0(a,te),ge=ce!==se;ge||(se=P0(a,se),ge=P0(a,ce)!==se),ge?(a.pc(b,!1),Cm(a,te,E,!1)):ne.data=te}}else Cm(a,te,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,w0(a,x,0),ps(a)||a.v(),a.graduatedIntervals=null,a.If()||Em(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof Xn&&(y.Te=!0),y.Te&&y instanceof Xn&&(y.wc=null))}}function Cm(a,y,x,b){if(!(y==null||0>x)){var E=b0(a,y);if(E=P0(a,E),E!==null){if(Ws(E),E=E.copy(),E.l&16777216){var te=a.ih();te!==null&&x0(te,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new qn),a.ge.add(y,E)),te=x+Gp(a),a.Gb(te,E),b&&(E.ub=y,w0(a,te,x),E.ub=null),E.data=y}}}function w0(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof Rn){var E=y,te=x;b.type===Rn.TableRow?b.row=E:b.type===Rn.TableColumn&&(b.column=E),b.itemIndex=te}y++,x++}}function b0(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=oo(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;zt("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function P0(a,y){var x=a.itemTemplateMap,b=null;return x!==null&&(b=x.I(y)),b===null&&(x!==null&&(b=x.I("")),b===null&&(g1||(g1=!0,$n('No item template Panel found for category "'+y+'" on '+a),$n(" Using default item template."),a=new Rn,y=new ji,y.bind(new ho("text","",Dn)),a.add(y),m1=a),b=m1)),b}function Em(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof Rn){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var te=y[E];x&&te instanceof Rn&&!te.isEnabled||Em(a,te,x)}}}function Ol(a,y){y.name=a,nl.add(a,y)}Lt.Object.defineProperties(Rn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Rn.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&&Fn(a,">= 0",Rn,"padding"),a=new mr(a)):(0>a.left&&Fn(a.left,">= 0",Rn,"padding:value.left"),0>a.right&&Fn(a.right,">= 0",Rn,"padding:value.right"),0>a.top&&Fn(a.top,">= 0",Rn,"padding:value.top"),0>a.bottom&&Fn(a.bottom,">= 0",Rn,"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:va},set:function(a){typeof a=="number"&&(a=new mr(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new ks),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 xi)&&(a instanceof xi&&a.freeze(),this.T===null&&(this.T=new ks),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 ks),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 x=a.length,b=0,E=0;E<x;E++){var te=a[E];typeof te=="number"&&0<=te&&isFinite(te)||zt("defaultRowSeparatorDashArray value "+te+" at index "+E+" must be a positive number or zero."),b+=te}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new ks),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 xi)&&(a instanceof xi&&a.freeze(),this.T===null&&(this.T=new ks),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 ks),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 x=a.length,b=0,E=0;E<x;E++){var te=a[E];typeof te=="number"&&0<=te&&isFinite(te)||zt("defaultColumnSeparatorDashArray value "+te+" at index "+E+" must be a positive number or zero."),b+=te}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new ks),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 ks),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||zt("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Tl(x),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()||zt("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Tl(x),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 yu),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),Jo(this)&&(a=this.part,a!==null&&zi(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 yu),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),Jo(this)&&(a=this.part,a!==null&&zi(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 yu),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 yu),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 yu,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 yu,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 yu,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 yu,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 ks),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new ks),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Lm},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new ks),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Lm},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new ks),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)&&zt("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new ks),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)&&zt("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new ks),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 x=this instanceof pr&&!(this instanceof hi);Ws(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof Hn?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof pr&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.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 pd),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&Sx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&uy(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&ly(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||p1(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 qn}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof pr||a.isPanelMain)&&zt("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 x=a.iterator;x.next(););Hr(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&&(Hr(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof Ir&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&Em(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))}}}),Lt.Object.defineProperties(Rn,{Position:{get:function(){return nl.I("Position")}},Horizontal:{get:function(){return nl.I("Horizontal")}},Vertical:{get:function(){return nl.I("Vertical")}},Spot:{get:function(){return nl.I("Spot")}},Auto:{get:function(){return nl.I("Auto")}},Table:{get:function(){return nl.I("Table")}},Viewbox:{get:function(){return nl.I("Viewbox")}},TableRow:{get:function(){return nl.I("TableRow")}},TableColumn:{get:function(){return nl.I("TableColumn")}},Link:{get:function(){return nl.I("Link")}},Grid:{get:function(){return nl.I("Grid")}},Graduated:{get:function(){return nl.I("Graduated")}}}),Rn.prototype.rebuildItemElements=Rn.prototype.mv,Rn.prototype.findItemPanelForData=Rn.prototype.sx,Rn.prototype.updateTargetBindings=Rn.prototype.La,Rn.prototype.copyTemplate=Rn.prototype.Uy,Rn.prototype.graduatedValueForPoint=Rn.prototype.Gz,Rn.prototype.graduatedPointForValue=Rn.prototype.Fz,Rn.prototype.findColumnForLocalX=Rn.prototype.fz,Rn.prototype.findRowForLocalY=Rn.prototype.nz,Rn.prototype.addColumnDefinition=Rn.prototype.By,Rn.prototype.addRowDefinition=Rn.prototype.Hy,Rn.prototype.addRowColumnDefinition=Rn.prototype.Gy,Rn.prototype.removeColumnDefinition=Rn.prototype.jA,Rn.prototype.getColumnDefinition=Rn.prototype.Eb,Rn.prototype.removeRowDefinition=Rn.prototype.oA,Rn.prototype.getRowDefinition=Rn.prototype.Fb,Rn.prototype.removeAt=Rn.prototype.mb,Rn.prototype.remove=Rn.prototype.remove,Rn.prototype.insertAt=Rn.prototype.Gb,Rn.prototype.elt=Rn.prototype.M,Rn.prototype.add=Rn.prototype.add,Rn.prototype.findObject=Rn.prototype.fb,Rn.prototype.findInVisualTree=Rn.prototype.Nl,Rn.prototype.walkVisualTreeFrom=Rn.prototype.qm,Rn.prototype.findMainElement=Rn.prototype.Pb;var g1=!1,m1=null,nl=new qn;Rn.className="Panel",Rn.definePanelLayout=Ol,Ol("Position",new dm),Ol("Vertical",new pm),Ol("Auto",new mm),Ol("Link",new bm);function yu(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}yu.prototype.copy=function(){var a=new yu;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},yu.className="GradPanelSettings";function ks(){this.Pc=[],this.Oc=[],this.j=this.ob=Lm,this.hb=this.Hb=0,this.Qp=va,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}ks.prototype.copy=function(a){for(var y=new ks,x=this.Pc,b=x.length,E=y.Pc,te=0;te<b;te++)if(x[te]!==void 0){var ne=x[te].copy();ne.wi(a),E[te]=ne}for(x=this.Oc,b=x.length,E=y.Oc,te=0;te<b;te++)x[te]!==void 0&&(ne=x[te].copy(),ne.wi(a),E[te]=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},ks.className="TablePanelSettings";function wo(a){zr(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=wi,this.pa=this.oc=this.oa=0,this.be=null,this.oo=C0,this.hg=Dr,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))}wo.prototype.copy=function(){var a=new wo;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=Qt(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Mm(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=Qt(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}it=wo.prototype,it.qb=function(a){a.classType===wo&&(this.sizing=a)},it.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Ar(this)},it.wi=function(a){this.Me=a},it.Io=function(a){var y=0,x=this.Me;if(this.index!==a&&(a=this.separatorStroke,a===null&&x!==null&&(a=this.isRow?x.defaultRowSeparatorStroke:x.defaultColumnSeparatorStroke),a!==null&&(y=this.separatorStrokeWidth,isNaN(y)&&(x!==null?y=this.isRow?x.defaultRowSeparatorStrokeWidth:x.defaultColumnSeparatorStrokeWidth:y=0))),a=this.dg,a===null)if(x!==null)a=x.defaultSeparatorPadding;else return y;return y+(this.isRow?a.top:a.left)},it.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===Rn.Table)for(var E=b?y.rowDefs.length:y.colDefs.length,te=0;te<E;te++){var ne=b?y.rowDefs[te]:y.colDefs[te];if(ne!==void 0&&ne.oa!==0){x=ne.index;break}}if(this.index!==x&&(x=this.separatorStroke,x===null&&y!==null&&(x=b?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),x!==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)},it.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(Zi,a,this,y,x,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(x=this.be.iterator;x.next();)x.value.sp(this,y,a,b)};function Tm(a){if(a.sizing===C0){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}it.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new ho(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&f1(y)&&zt("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new Tn),this.be.add(E),this},Lt.Object.defineProperties(wo.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&&Fn(a,">= 0",wo,"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&&Fn(a,">= 0",wo,"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))&&Fn(a,">= 0",wo,"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&&Fn(a,">= 0",wo,"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 mr(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&&md(a,"RowColumnDefinition.separatorStroke"),a instanceof xi&&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 x=a.length,b=0,E=0;E<x;E++){var te=a[E];typeof te=="number"&&0<=te&&isFinite(te)||zt("separatorDashArray value "+te+" at index "+E+" must be a positive number or zero."),b+=te}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&&md(a,"RowColumnDefinition.background"),a instanceof xi&&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}}}),wo.prototype.computeEffectiveSpacing=wo.prototype.Wc,wo.prototype.computeEffectiveSpacingTop=wo.prototype.Io;var C0=new fn(wo,"Default",0),Hp=new fn(wo,"None",1),Lm=new fn(wo,"ProportionalExtra",2);wo.className="RowColumnDefinition",wo.Default=C0,wo.None=Hp,wo.ProportionalExtra=Lm;function _r(a,y){Jt.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)}Xt(_r,Jt),_r.prototype.cloneProtected=function(a){Jt.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=Qt(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 kh(a){a.Na===null?a.Na=new T0:a.Na.nc&&(a.Na=a.Na.copy())}it=_r.prototype,it.th=function(){Jt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},it.qb=function(a){a===An||a===ir||a===ti||a===Dr?this.geometryStretch=a:Jt.prototype.qb.call(this,a)},it.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Ar(this)};function xf(a,y,x,b){var E=x.length;if(!(4>E)){var te=b.measuredBounds,ne=Math.max(1,te.width);te=te.height;for(var se=x[0],ce=x[1],ge,xe,Ae,Ue,Je,rt,ht=0,Ft=cn(),Ot=2;Ot<E;Ot+=2)ge=x[Ot],xe=x[Ot+1],Ae=ge-se,se=xe-ce,Ae===0&&(Ae=.001),Ue=se/Ae,Je=Math.atan2(se,Ae),rt=Math.sqrt(Ae*Ae+se*se),Ft.push([Ae,Je,Ue,rt]),ht+=rt,se=ge,ce=xe;se=x[0],ce=x[1],Ae=b.measuredBounds.width,b instanceof _r&&(Ae-=b.strokeWidth),1>Ae&&(Ae=1),E=x=Ae,ge=ne/2,xe=ge!==0,Ot=0,rt=Ft[Ot],Ae=rt[0],Je=rt[1],Ue=rt[2],rt=rt[3];for(var _t=0;.1<=ht;){if(_t===0&&(xe?(E=x,E-=ge,ht-=ge,xe=!1):E=x,E===0&&(E=1)),E>ht){Pn(Ft);return}E>rt?(_t=E-rt,E=rt):_t=0;var Gt=Math.sqrt(E*E/(1+Ue*Ue));if(0>Ae&&(Gt=-Gt),se+=Gt,ce+=Ue*Gt,a.translate(se,ce),a.rotate(Je),a.translate(-(ne/2),-(te/2)),_t===0&&b.hh(a,y),a.translate(ne/2,te/2),a.rotate(-Je),a.translate(-se,-ce),ht-=E,rt-=E,_t!==0){if(Ot++,Ot===Ft.length){Pn(Ft);return}rt=Ft[Ot],Ae=rt[0],Je=rt[1],Ue=rt[2],rt=rt[3],E=_t}}Pn(Ft)}}it.hh=function(a,y){var x=this.xc,b=this.Ui;if(x!==null||b!==null){var E=this.ua;if(E!==null){a.yc();var te=this.actualBounds,ne=this.naturalBounds;b!==null&&to(this,a,b,!0,!1,ne,te);var se=this.part,ce=this.ig;if(x===null||ce!==0||se===null||!this.isPanelMain&&se.Pb()!==this||(ce=se.type===Rn.Link&&se instanceof hi&&se.category==="Selection"&&se.adornedObject instanceof _r&&se.adornedPart.Pb()===se.adornedObject?se.adornedObject.strokeWidth:0),ce===0&&(x=null),x!==null&&ce!==0&&(to(this,a,x,!1,!1,ne,te),a.lineWidth=ce,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),te=!1,se&&y.Gf("drawShadows")&&(te=se.isShadowed),a.Il===!1&&(te=!1),se=!0,x===null||b!==null&&b!=="transparent"||(se=!1),ne=!1,ce=this.strokeDashArray,ce!==null&&(ne=!0,a.js(ce,this.strokeDashOffset)),E.type===Un.j)a.beginPath(),a.moveTo(E.startX,E.startY),a.lineTo(E.endX,E.endY),x!==null&&a.jk(),a.Se();else if(E.type===Un.u){var ge=E.startX;ce=E.startY;var xe=E.endX,Ae=E.endY;E=Math.min(ge,xe);var Ue=Math.min(ce,Ae);ge=Math.abs(xe-ge),ce=Math.abs(Ae-ce),a.beginPath(),a.rect(E,Ue,ge,ce),b!==null&&a.ng(b),x!==null&&(se&&te&&Wl(a),a.jk(),se&&te&&pu(a)),a.Se()}else if(E.type===Un.F)ge=E.startX,ce=E.startY,xe=E.endX,Ae=E.endY,E=Math.abs(xe-ge)/2,Ue=Math.abs(Ae-ce)/2,ge=Math.min(ge,xe)+E,ce=Math.min(ce,Ae)+Ue,a.beginPath(),a.moveTo(ge,ce-Ue),a.bezierCurveTo(ge+qt.wg*E,ce-Ue,ge+E,ce-qt.wg*Ue,ge+E,ce),a.bezierCurveTo(ge+E,ce+qt.wg*Ue,ge+qt.wg*E,ce+Ue,ge,ce+Ue),a.bezierCurveTo(ge-qt.wg*E,ce+Ue,ge-E,ce+qt.wg*Ue,ge-E,ce),a.bezierCurveTo(ge-E,ce-qt.wg*Ue,ge-qt.wg*E,ce-Ue,ge,ce-Ue),a.closePath(),b!==null&&a.ng(b),x!==null&&(se&&te&&Wl(a),a.jk(),se&&te&&pu(a)),a.Se();else if(E.type===Un.o)for(E=E.figures,ce=E.length,Ue=0;Ue<ce;Ue++){ge=E.s[Ue],a.beginPath(),a.moveTo(ge.startX,ge.startY),xe=ge.segments.s,Ae=xe.length;for(var Je=null,rt=0;rt<Ae;rt++){var ht=xe[rt];switch(ht.type){case Io:a.moveTo(ht.endX,ht.endY);break;case Ri:a.lineTo(ht.endX,ht.endY);break;case Qo:a.bezierCurveTo(ht.point1X,ht.point1Y,ht.point2X,ht.point2Y,ht.endX,ht.endY);break;case cs:a.quadraticCurveTo(ht.point1X,ht.point1Y,ht.endX,ht.endY);break;case mo:if(ht.radiusX===ht.radiusY){var Ft=Math.PI/180;a.arc(ht.point1X,ht.point1Y,ht.radiusX,ht.startAngle*Ft,(ht.startAngle+ht.sweepAngle)*Ft,0>ht.sweepAngle,Je!==null?Je.endX:ge.startX,Je!==null?Je.endY:ge.startY)}else if(Je=es(ht,ge),Ft=Je.length,Ft===0)a.lineTo(ht.centerX,ht.centerY);else for(var Ot=0;Ot<Ft;Ot++){var _t=Je[Ot];Ot===0&&a.lineTo(_t[0],_t[1]),a.bezierCurveTo(_t[2],_t[3],_t[4],_t[5],_t[6],_t[7])}break;case ws:if(Ot=Ft=0,Je!==null&&Je.type===mo){if(Je=es(Je,ge),_t=Je.length,_t===0){a.lineTo(ht.endX,ht.endY);break}Je=Je[_t-1]||null,Je!==null&&(Ft=Je[6],Ot=Je[7])}else Ft=Je!==null?Je.endX:ge.startX,Ot=Je!==null?Je.endY:ge.startY;if(Je=Rs(ht,ge,Ft,Ot),Ft=Je.length,Ft===0){a.lineTo(ht.endX,ht.endY);break}for(Ot=0;Ot<Ft;Ot++)_t=Je[Ot],a.bezierCurveTo(_t[2],_t[3],_t[4],_t[5],_t[6],_t[7]);break;default:zt("Segment not of valid type: "+ht.type)}ht.isClosed&&a.closePath(),Je=ht}xe=ge.isFilled,te?ge.isShadowed?(xe===!0&&b!=="transparent"&&b!==null&&a.ng(b,ge.isEvenOdd),x!==null&&(xe&&se&&Wl(a),a.jk(),xe&&se&&pu(a))):(Wl(a),xe&&b!=="transparent"&&b!==null&&a.ng(b,ge.isEvenOdd),x!==null&&a.jk(),pu(a)):(xe&&b!==null&&a.ng(b,ge.isEvenOdd),x!==null&&a.jk()),a.Se(Ue)}if(ne&&a.fs(),this.pathPattern!==null){if(x=this.pathPattern,x.measure(1/0,1/0),b=x.measuredBounds,x.arrange(0,0,b.width,b.height),te=this.geometry,a.save(),a.beginPath(),b=cn(),te.type===Un.j)b.push(te.startX),b.push(te.startY),b.push(te.endX),b.push(te.endY),xf(a,y,b,x);else if(te.type===Un.o)for(te=te.figures.iterator;te.next();){for(se=te.value,b.length=0,b.push(se.startX),b.push(se.startY),ne=se.startX,E=se.startY,ce=ne,Ue=E,ge=se.segments.s,xe=ge.length,Ae=0;Ae<xe;Ae++){switch(rt=ge[Ae],rt.type){case Io:xf(a,y,b,x),b.length=0,b.push(rt.endX),b.push(rt.endY),ne=rt.endX,E=rt.endY,ce=ne,Ue=E;break;case Ri:b.push(rt.endX),b.push(rt.endY),ne=rt.endX,E=rt.endY;break;case Qo:qt.Qe(ne,E,rt.point1X,rt.point1Y,rt.point2X,rt.point2Y,rt.endX,rt.endY,.5,b),ne=rt.endX,E=rt.endY;break;case cs:qt.ep(ne,E,rt.point1X,rt.point1Y,rt.endX,rt.endY,.5,b),ne=rt.endX,E=rt.endY;break;case mo:if(ht=es(rt,se),Je=ht.length,Je===0){b.push(rt.centerX),b.push(rt.centerY),ne=rt.centerX,E=rt.centerY;break}for(Ft=0;Ft<Je;Ft++)Ot=ht[Ft],qt.Qe(ne,E,Ot[2],Ot[3],Ot[4],Ot[5],Ot[6],Ot[7],.5,b),ne=Ot[6],E=Ot[7];break;case ws:if(ht=Rs(rt,se,ne,E),Je=ht.length,Je===0){b.push(rt.endX),b.push(rt.endY),ne=rt.endX,E=rt.endY;break}for(Ft=0;Ft<Je;Ft++)Ot=ht[Ft],qt.Qe(ne,E,Ot[2],Ot[3],Ot[4],Ot[5],Ot[6],Ot[7],.5,b),ne=Ot[6],E=Ot[7];break;default:zt("Segment not of valid type: "+rt.type)}rt.isClosed&&(b.push(ce),b.push(Ue),xf(a,y,b,x))}xf(a,y,b,x)}else if(te.type===Un.u)b.push(te.startX),b.push(te.startY),b.push(te.endX),b.push(te.startY),b.push(te.endX),b.push(te.endY),b.push(te.startX),b.push(te.endY),b.push(te.startX),b.push(te.startY),xf(a,y,b,x);else if(te.type===Un.F){if(E=new jo,E.startX=te.endX,E.startY=(te.startY+te.endY)/2,ne=new di(mo),ne.startAngle=0,ne.sweepAngle=360,ne.centerX=(te.startX+te.endX)/2,ne.centerY=(te.startY+te.endY)/2,ne.radiusX=Math.abs(te.startX-te.endX)/2,ne.radiusY=Math.abs(te.startY-te.endY)/2,E.add(ne),te=es(ne,E),se=te.length,se===0)b.push(ne.centerX),b.push(ne.centerY);else for(ne=E.startX,E=E.startY,ce=0;ce<se;ce++)Ue=te[ce],qt.Qe(ne,E,Ue[2],Ue[3],Ue[4],Ue[5],Ue[6],Ue[7],.5,b),ne=Ue[6],E=Ue[7];xf(a,y,b,x)}Pn(b),a.restore(),a.Vc(!1)}}}},it.kk=function(a,y,x){return!Jt.prototype.kk.call(this,a,y,x)||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)},it.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Jt.prototype.nk.call(this,a)},it.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("path");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},it.ga=function(a,y){if(y===void 0&&(y=new Nt),a instanceof sr){a.Mc()&&zt("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var x=this.naturalBounds,b=this.strokeWidth;y.h(a.x*(x.width+b)-b/2+x.x+a.offsetX,a.y*(x.height+b)-b/2+x.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},it.mi=function(a){a===void 0&&(a=new wn);var y=this.naturalBounds,x=this.oe;y=wn.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=Nt.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),yi(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),yi(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),yi(a,b.x,b.y,0,0),wn.free(y),Nt.free(b),a},it.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var b=x.bounds,E=this.strokeWidth/2;x.type!==Un.j||y||(E+=2);var te=wn.alloc();if(te.assign(b),te.Bc(E+2,E+2),!te.ca(a))return wn.free(te),!1;if(b=E+1e-4,x.type===Un.j)return this.stroke===null||(b=(x.endX-x.startX)*(a.x-x.startX)+(x.endY-x.startY)*(a.y-x.startY),0>(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>b)?!1:(wn.free(te),qt.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===Un.u){y=x.startX;var ne=x.startY,se=x.endX;if(x=x.endY,te.x=Math.min(y,se),te.y=Math.min(ne,x),te.width=Math.abs(se-y),te.height=Math.abs(x-ne),this.fill===null){if(te.Bc(-b,-b),te.ca(a))return wn.free(te),!1;te.Bc(b,b)}return this.stroke!==null&&te.Bc(E,E),a=te.ca(a),wn.free(te),a}if(x.type===Un.F){ne=x.startX,E=x.startY,se=x.endX;var ce=x.endY;if(x=Math.min(ne,se),y=Math.min(E,ce),ne=Math.abs(se-ne)/2,E=Math.abs(ce-E)/2,x=a.x-(x+ne),y=a.y-(y+E),this.fill===null){if(ne-=b,E-=b,0>=ne||0>=E||1>=x*x/(ne*ne)+y*y/(E*E))return wn.free(te),!1;ne+=b,E+=b}return this.stroke!==null&&(ne+=b,E+=b),wn.free(te),0>=ne||0>=E?!1:1>=x*x/(ne*ne)+y*y/(E*E)}if(x.type===Un.o)return wn.free(te),this.fill===null?yc(x,a.x,a.y,E):ou(x,a,E,1<this.strokeWidth,y);zt("Unknown Geometry type: "+x.type)},it.Wl=function(a,y,x,b){var E=this.desiredSize,te=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var ne=this.geometry.bounds;else{var se=this.figure,ce=M0[se];if(ce===void 0){var ge=qt.Ze[se];typeof ge=="string"&&(ge=qt.Ze[ge]),typeof ge=="function"?(ce=ge(null,100,100),M0[se]=ce):zt("Unsupported Figure: "+se)}ne=ce.bounds}se=ne.width,ce=ne.height,ge=ne.width;var xe=ne.height;switch(Ra(this,!0)){case An:b=x=0;break;case Bn:ge=Math.max(a-te,0),xe=Math.max(y-te,0);break;case lr:ge=Math.max(a-te,0),b=0;break;case br:x=0,xe=Math.max(y-te,0)}isFinite(E.width)&&(ge=E.width),isFinite(E.height)&&(xe=E.height);var Ae=this.maxSize,Ue=this.minSize;switch(x=Math.max(x-te,Ue.width),b=Math.max(b-te,Ue.height),ge=Math.min(Ae.width,ge),xe=Math.min(Ae.height,xe),ge=isFinite(ge)?Math.max(x,ge):Math.max(se,x),xe=isFinite(xe)?Math.max(b,xe):Math.max(ce,b),x=E0(this),x){case An:break;case Bn:se=ge,ce=xe;break;case ir:x=Math.min(ge/se,xe/ce),isFinite(x)||(x=1),se*=x,ce*=x;break;default:zt(x+" is not a valid geometryStretch.")}this.Rd!==null?(se===0&&(se=.001),ce===0&&(ce=.001),x=this.Rd!==null?this.Rd:this.ua,ne=x.bounds,b=se/ne.width,ne=ce/ne.height,isFinite(b)||(b=1),isFinite(ne)||(ne=1),this.ua=b===1&&ne===1?x:x.copy().scale(b,ne)):this.ua!==null&&qt.$(this.ua.Sk,a-te)&&qt.$(this.ua.Rk,y-te)||(this.ua=_r.makeGeometry(this,se,ce)),ne=this.ua.bounds,a===1/0||y===1/0?this.Ge(ne.x-te/2,ne.y-te/2,a===0&&se===0?0:ne.width+te,y===0&&ce===0?0:ne.height+te):this.Ge(-(te/2),-(te/2),ge+te,xe+te),E.w()?(ge=E.width,xe=E.height,ge=Math.min(Ae.width,ge),xe=Math.min(Ae.height,xe),ge=Math.max(Ue.width,ge),xe=Math.max(Ue.height,xe),this.dc.h(0,0,ge,xe)):this.dc.assign(ne)};function E0(a){var y=a.geometryStretch;return a.Rd!==null?y===Dr?Bn:y:y===Dr?M0[a.figure].defaultStretch:y}it.eh=function(a,y,x,b){da(this,a,y,x,b)},it.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},it.Sj=function(a,y,x,b,E){var te=this.transform,ne=1/(te.m11*te.m22-te.m12*te.m21),se=te.m22*ne,ce=-te.m12*ne,ge=-te.m21*ne,xe=te.m11*ne,Ae=ne*(te.m21*te.dy-te.m22*te.dx),Ue=ne*(te.m12*te.dx-te.m11*te.dy);te=a*se+y*ge+Ae,ne=a*ce+y*xe+Ue,se=x*se+b*ge+Ae,ce=x*ce+b*xe+Ue,Ae=this.ig/2,ge=this.ua,ge===null&&(this.measure(1/0,1/0),ge=this.ua);var Je=ge.bounds;if(xe=!1,ge.type===Un.j)if(1.5>=this.strokeWidth)xe=qt.Ve(ge.startX,ge.startY,ge.endX,ge.endY,te,ne,se,ce,E);else{if(ge.startX===ge.endX?(b=Ae,xe=0):(y=(ge.endY-ge.startY)/(ge.endX-ge.startX),xe=Ae/Math.sqrt(1+y*y),b=xe*y),y=cn(),a=new Nt,qt.Ve(ge.startX+b,ge.startY+xe,ge.endX+b,ge.endY+xe,te,ne,se,ce,a)&&y.push(a),a=new Nt,qt.Ve(ge.startX-b,ge.startY-xe,ge.endX-b,ge.endY-xe,te,ne,se,ce,a)&&y.push(a),a=new Nt,qt.Ve(ge.startX+b,ge.startY+xe,ge.startX-b,ge.startY-xe,te,ne,se,ce,a)&&y.push(a),a=new Nt,qt.Ve(ge.endX+b,ge.endY+xe,ge.endX-b,ge.endY-xe,te,ne,se,ce,a)&&y.push(a),se=y.length,se===0)return Pn(y),!1;for(xe=!0,ce=1/0,b=0;b<se;b++)a=y[b],x=(a.x-te)*(a.x-te)+(a.y-ne)*(a.y-ne),x<ce&&(ce=x,E.x=a.x,E.y=a.y);Pn(y)}else if(ge.type===Un.u)xe=qt.Ff(Je.x-Ae,Je.y-Ae,Je.x+Je.width+Ae,Je.y+Je.height+Ae,te,ne,se,ce,E);else if(ge.type===Un.F){y=wn.allocAt(Je.x,Je.y,Je.width,Je.height).Bc(Ae,Ae);e:if(y.width===0)xe=qt.Ve(y.x,y.y,y.x,y.y+y.height,te,ne,se,ce,E);else if(y.height===0)xe=qt.Ve(y.x,y.y,y.x+y.width,y.y,te,ne,se,ce,E);else{if(a=y.width/2,ge=y.height/2,b=y.x+a,xe=y.y+ge,x=9999,te!==se&&(x=(ne-ce)/(te-se)),9999>Math.abs(x)){if(ce=ne-xe-x*(te-b),0>a*a*x*x+ge*ge-ce*ce){E.x=NaN,E.y=NaN,xe=!1;break e}Ae=Math.sqrt(a*a*x*x+ge*ge-ce*ce),se=(-(a*a*x*ce)+a*ge*Ae)/(ge*ge+a*a*x*x)+b,a=(-(a*a*x*ce)-a*ge*Ae)/(ge*ge+a*a*x*x)+b,ge=x*(se-b)+ce+xe,ce=x*(a-b)+ce+xe,Math.abs((te-se)*(te-se))+Math.abs((ne-ge)*(ne-ge))<Math.abs((te-a)*(te-a))+Math.abs((ne-ce)*(ne-ce))?(E.x=se,E.y=ge):(E.x=a,E.y=ce)}else{if(se=ge*ge,ce=te-b,se-=se/(a*a)*ce*ce,0>se){E.x=NaN,E.y=NaN,xe=!1;break e}ce=Math.sqrt(se),se=xe+ce,ce=xe-ce,Math.abs(se-ne)<Math.abs(ce-ne)?(E.x=te,E.y=se):(E.x=te,E.y=ce)}xe=!0}wn.free(y)}else if(ge.type===Un.o){Ue=Nt.alloc();var rt=se-te,ht=ce-ne,Ft=rt*rt+ht*ht,Ot=te,_t=ne;if(0<Ft&&Je.contains(Ot,_t)&&(Ue.x=Ot,Ue.y=_t,this.ca(Ue)))for(rt!==0&&.5>Math.abs(rt)?(ht*=.5/rt,rt=.5):ht!==0&&.5>Math.abs(ht)&&(rt*=.5/ht,ht=.5),Ot-=rt,_t-=ht;Je.contains(Ot,_t);)Ot-=rt,_t-=ht;for(E.x=se,E.y=ce,ht=0;ht<ge.figures.count;ht++){var Gt=ge.figures.s[ht],Kt=Gt.isFilled?Ot:te,Yt=Gt.isFilled?_t:ne,on=Gt.segments;Je=Gt.startX,rt=Gt.startY;for(var Zn=Je,nr=rt,Jn=0;Jn<on.count;Jn++){var Gn=on.s[Jn],kn=Gn.type,Nr=Gn.endX,Er=Gn.endY,pi=!1;switch(kn){case Io:Zn=Nr,nr=Er;break;case Ri:pi=Om(Je,rt,Nr,Er,Kt,Yt,se,ce,Ue);break;case Qo:pi=qt.Eo(Je,rt,Gn.point1X,Gn.point1Y,Gn.point2X,Gn.point2Y,Nr,Er,Kt,Yt,se,ce,.6,Ue);break;case cs:pi=qt.Eo(Je,rt,Je+2/3*(Gn.point1X-Je),rt+2/3*(Gn.point1Y-rt),Nr+2/3*(Gn.point1X-Nr),Er+2/3*(Gn.point1Y-Er),Nr,Er,Kt,Yt,se,ce,.6,Ue);break;case mo:case ws:kn=Gn.type===mo?es(Gn,Gt):Rs(Gn,Gt,Je,rt);var Ni=kn.length;if(Ni===0){pi=Om(Je,rt,Gn.type===mo?Gn.centerX:Gn.endX,Gn.type===mo?Gn.centerY:Gn.endY,Kt,Yt,se,ce,Ue);break}for(Er=null,Nr=0;Nr<Ni;Nr++){if(Er=kn[Nr],Nr===0&&Om(Je,rt,Er[0],Er[1],Kt,Yt,se,ce,Ue)){var Fo=km(Kt,Yt,Ue,Ft,E);Fo<Ft&&(Ft=Fo,xe=!0)}qt.Eo(Er[0],Er[1],Er[2],Er[3],Er[4],Er[5],Er[6],Er[7],Kt,Yt,se,ce,.6,Ue)&&(Fo=km(Kt,Yt,Ue,Ft,E),Fo<Ft&&(Ft=Fo,xe=!0))}Nr=Er[6],Er=Er[7];break;default:zt("Unknown Segment type: "+kn)}Je=Nr,rt=Er,pi&&(pi=km(Kt,Yt,Ue,Ft,E),pi<Ft&&(Ft=pi,xe=!0)),Gn.isClosed&&(Nr=Zn,Er=nr,Om(Je,rt,Nr,Er,Kt,Yt,se,ce,Ue)&&(Gn=km(Kt,Yt,Ue,Ft,E),Gn<Ft&&(Ft=Gn,xe=!0)))}}te=x-a,ne=b-y,se=Math.sqrt(te*te+ne*ne),se!==0&&(te/=se,ne/=se),E.x-=te*Ae,E.y-=ne*Ae,Nt.free(Ue)}else zt("Unknown Geometry type: "+ge.type);return xe?(this.transform.Ga(E),!0):!1};function km(a,y,x,b,E){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<b?(E.x=x.x,E.y=x.y,y):b}function Om(a,y,x,b,E,te,ne,se,ce){if(qt.$(a,x)&&qt.$(y,b)||qt.$(E,ne)&&qt.$(te,se))return!1;var ge=!1,xe=(E-ne)*(y-b)-(te-se)*(a-x);return xe===0?!1:(ce.x=((E*se-te*ne)*(a-x)-(E-ne)*(a*b-y*x))/xe,ce.y=((E*se-te*ne)*(y-b)-(te-se)*(a*b-y*x))/xe,(a>x?a-x:x-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(ce.y>a||qt.$(ce.y,a))&&(ce.y<y||qt.$(ce.y,y))&&(ge=!0)):(y=a<x?a:x,a=a<x?x:a,(ce.x>y||qt.$(ce.x,y))&&(ce.x<a||qt.$(ce.x,a))&&(ge=!0)),ge)}it.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.ua;x===null&&(this.measure(1/0,1/0),x=this.ua),x=x.bounds;var b=this.strokeWidth/2,E=!1,te=Nt.alloc();return te.h(x.x-b,x.y-b),a.ca(y.Ga(te))&&(te.h(x.x-b,x.bottom+b),a.ca(y.Ga(te))&&(te.h(x.right+b,x.bottom+b),a.ca(y.Ga(te))&&(te.h(x.right+b,x.y-b),a.ca(y.Ga(te))&&(E=!0)))),Nt.free(te),E},it.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=Wr.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,te=a.top;a=a.bottom;var ne=Nt.alloc();if(ne.h(b,te),x.Ga(ne),this.gh(ne,!0)||(ne.h(E,te),x.Ga(ne),this.gh(ne,!0))||(ne.h(b,a),x.Ga(ne),this.gh(ne,!0))||(ne.h(E,a),x.Ga(ne),this.gh(ne,!0)))return Nt.free(ne),!0;var se=Nt.alloc(),ce=Nt.alloc();return x.set(y),x.bv(this.transform),x.Vj(),se.x=E,se.y=te,se.transform(x),ne.x=b,ne.y=te,ne.transform(x),y=!1,Oh(this,ne,se,ce)?y=!0:(ne.x=E,ne.y=a,ne.transform(x),Oh(this,ne,se,ce)?y=!0:(se.x=b,se.y=a,se.transform(x),Oh(this,ne,se,ce)?y=!0:(ne.x=b,ne.y=te,ne.transform(x),Oh(this,ne,se,ce)&&(y=!0)))),Nt.free(ne),Wr.free(x),Nt.free(se),Nt.free(ce),y};function Oh(a,y,x,b){if(!a.rs(y,x,b))return!1;a=y.x,y=y.y;var E=x.x,te=x.y;return x=b.x,b=b.y,a===E?(y<te?(a=y,y=te):a=te,b>=a&&b<=y):(a<E?(b=a,a=E):b=E,x>=b&&x<=a)}it.tx=function(a,y,x){function b(Ft,Ot){for(var _t=Ft.length,Gt=0;Gt<_t;Gt+=2)if(Ot.zd(Ft[Gt],Ft[Gt+1])>E)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var E=a.Bf(y),te=E;if(1.5<this.strokeWidth&&(E=this.strokeWidth/2+Math.sqrt(E),E*=E),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!x){var ne=y.bounds,se=ne.x,ce=ne.y,ge=ne.x+ne.width;if(ne=ne.y+ne.height,Fi(a.x,a.y,se,ce)<=E&&Fi(a.x,a.y,ge,ce)<=E&&Fi(a.x,a.y,se,ne)<=E&&Fi(a.x,a.y,ge,ne)<=E)return!0}if(se=y.startX,ce=y.startY,ge=y.endX,ne=y.endY,y.type===Un.j){if(x=(se-ge)*(a.x-ge)+(ce-ne)*(a.y-ne),Mi(a.x,a.y,se,ce,ge,ne)<=(0<=(ge-se)*(a.x-se)+(ne-ce)*(a.y-ce)&&0<=x?E:te))return!0}else{if(y.type===Un.u)return y=!1,x&&(y=Mi(a.x,a.y,se,ce,se,ne)<=E||Mi(a.x,a.y,se,ce,ge,ce)<=E||Mi(a.x,a.y,ge,ce,ge,ne)<=E||Mi(a.x,a.y,se,ne,ge,ne)<=E),y;if(y.type===Un.F){y=a.x-(se+ge)/2,te=a.y-(ce+ne)/2;var xe=Math.abs(ge-se)/2,Ae=Math.abs(ne-ce)/2;if(xe===0||Ae===0)return Mi(a.x,a.y,se,ce,ge,ne)<=E;if(x){if(a=qt.$y(xe,Ae,y,te),a*a<=E)return!0}else return!(Fi(y,te,-xe,0)>=E||Fi(y,te,0,-Ae)>=E||Fi(y,te,0,Ae)>=E||Fi(y,te,xe,0)>=E)}else if(y.type===Un.o){if(ge=y.bounds,te=ge.x,se=ge.y,ce=ge.x+ge.width,ge=ge.y+ge.height,a.x>ce&&a.x<te&&a.y>ge&&a.y<se&&Mi(a.x,a.y,te,se,te,ge)>E&&Mi(a.x,a.y,te,se,ce,se)>E&&Mi(a.x,a.y,ce,ge,te,ge)>E&&Mi(a.x,a.y,ce,ge,ce,se)>E)return!1;if(te=Math.sqrt(E),x){if(this.fill===null?yc(y,a.x,a.y,te):ou(y,a,te,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(te=x.s[y],ne=te.startX,xe=te.startY,a.zd(ne,xe)>E)return!1;for(se=te.segments.s,ce=se.length,ge=0;ge<ce;ge++)switch(Ae=se[ge],Ae.type){case Io:case Ri:if(ne=Ae.endX,xe=Ae.endY,a.zd(ne,xe)>E)return!1;break;case Qo:var Ue=cn();if(qt.Qe(ne,xe,Ae.point1X,Ae.point1Y,Ae.point2X,Ae.point2Y,Ae.endX,Ae.endY,.8,Ue),ne=b(Ue,a),Pn(Ue),ne||(ne=Ae.endX,xe=Ae.endY,a.zd(ne,xe)>E))return!1;break;case cs:if(Ue=cn(),qt.ep(ne,xe,Ae.point1X,Ae.point1Y,Ae.endX,Ae.endY,.8,Ue),ne=b(Ue,a),Pn(Ue),ne||(ne=Ae.endX,xe=Ae.endY,a.zd(ne,xe)>E))return!1;break;case mo:case ws:Ue=Ae.type===mo?es(Ae,te):Rs(Ae,te,ne,xe);var Je=Ue.length;if(Je===0){if(ne=Ae.type===mo?Ae.centerX:Ae.endX,xe=Ae.type===mo?Ae.centerY:Ae.endY,a.zd(ne,xe)>E)return!1;break}Ae=null;for(var rt=cn(),ht=0;ht<Je;ht++)if(Ae=Ue[ht],rt.length=0,qt.Qe(Ae[0],Ae[1],Ae[2],Ae[3],Ae[4],Ae[5],Ae[6],Ae[7],.8,rt),b(rt,a))return Pn(rt),!1;Pn(rt),Ae!==null&&(ne=Ae[6],xe=Ae[7]);break;default:zt("Unknown Segment type: "+Ae.type)}}return!0}}}return!1},it.qc=function(){this.ua=null},it.kq=function(){return this.ig};function v1(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=Jp,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=Uo):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new sr(1-Uo.x,Uo.y)))}_r.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=Vl[a.toArrow];else a.fromArrow!=="None"?b=Vl[a.fromArrow]:(b=qt.Ze[a.figure],typeof b=="string"&&(b=qt.Ze[b]),b===void 0&&zt("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=qt.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function y1(a){var y=Vl[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=Vl[x],y===void 0){var b=null,E;for(E in qt.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=Un.parse(qt.um[b],!1),Vl[b]=a,x!==b&&(Vl[x]=b),b}}return typeof y=="string"?y:y instanceof Un?a:null}Lt.Object.defineProperties(_r.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(a){var y=this.ua,x=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||x,a),Jo(this)&&(a=this.part,a!==null&&zi(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Un.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Nt.allocAt(-y.x,-y.y),Nt.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&&md(a,"Shape.fill"),a instanceof xi&&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&&md(a,"Shape.stroke"),a instanceof xi&&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 x=this.part;x!==null&&(x.ag=NaN),this.g("strokeWidth",y,a)}else Fn(a,"value >= 0",_r,"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"?Fn(a,'"butt", "round", or "square"',_r,"strokeCap"):(kh(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"?Fn(a,'"miter", "bevel", or "round"',_r,"strokeJoin"):(kh(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){kh(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.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 x=a.length,b=0,E=0;E<x;E++){var te=a[E];0<=te&&isFinite(te)||zt("strokeDashArray:value "+te+" at index "+E+" must be a positive number or zero."),b+=te}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&&(kh(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 x=qt.Ze[a];typeof x=="function"?x=a:(x=qt.Ze[a.toLowerCase()])||zt("Unknown Shape.figure: "+a),y!==x&&(a=this.part,a!==null&&(a.ag=NaN),this.an=x,this.Rd=null,this.qc(),this.v(),this.g("figure",y,x))}}},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 x=y1(a);x===null?zt("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Bc),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),v1(this),this.g("toArrow",y,x))}}},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 x=y1(a);x===null?zt("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Bc),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),v1(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:wi},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),kh(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:wi},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),kh(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&&(kh(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:Dr},set:function(a){var y=this.geometryStretch;y!==a&&(kh(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 Zl),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&Tl(x),this.v(),x=this.panel,x!==null&&(x.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 Zl),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 Zl),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 Zl),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),_r.prototype.intersectsRect=_r.prototype.Yc,_r.prototype.containedInRect=_r.prototype.fh,_r.prototype.getNearestIntersectionPoint=_r.prototype.rs,_r.prototype.getDocumentBounds=_r.prototype.mi,_r.prototype.getDocumentPoint=_r.prototype.ga;var Vl=new hr,M0=new hr;_r.className="Shape",_r.getFigureGenerators=function(){var a=new qn,y;for(y in qt.Ze)y!==y.toLowerCase()&&a.add(y,qt.Ze[y]);return a.freeze(),a},_r.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=qt.Ze;b[a]=y,b[x]=a},_r.getArrowheadGeometries=function(){var a=new qn;for(b in qt.um)if(Vl[b]===void 0){var y=Un.parse(qt.um[b],!1);Vl[b]=y,y=b.toLowerCase(),y!==b&&(Vl[y]=b)}for(var x in Vl)if(x!==x.toLowerCase()){var b=Vl[x];b instanceof Un&&a.add(x,b)}return a.freeze(),a},_r.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=Un.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||zt("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=Vl;b[a]=x,b[y]=a};function T0(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=Dr,this.gg=this.fg=wi}T0.prototype.copy=function(){var a=new T0;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 ji(a,y){return Jt.call(this),Dm||(_a=eo?new Us(null).context:null,Dm=!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}Xt(ji,Jt),ji.prototype.cloneProtected=function(a){Jt.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 Al(a){a.da===null?a.da=new I0:a.da.nc&&(a.da=a.da.copy())}it=ji.prototype,it.th=function(){Jt.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function S1(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}it.qb=function(a){a.classType===ji?this.wrap=a:Jt.prototype.qb.call(this,a)},it.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},it.v=function(){Jt.prototype.v.call(this)},it.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,b=this.actualBounds,E=x.width,te=x.height,ne=Wp(this),se=a.textAlign=this.textAlign,ce=y.tn;se==="start"?se=ce?"right":"left":se==="end"&&(se=ce?"left":"right"),ce=this.isUnderline;var ge=this.isStrikethrough;to(this,a,this.xc,!0,!1,x,b),(ce||ge)&&to(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var xe=this.oe,Ae=xe.dx-(ne*xe.m21+xe.dx);xe=xe.dy-(ne*xe.m22+xe.dy);var Ue=y.scale;switch(8>(Ae*Ae+xe*xe)*Ue*Ue&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof rs&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,Ae=this.spacingBelow,this.flip){case si:a.translate(E,0),a.scale(-1,1);break;case Ur:a.translate(0,te),a.scale(1,-1);break;case ki:a.translate(E,te),a.scale(-1,-1)}if(a.yc(),xe=this.Gc,Ue=(y+ne+Ae)*xe,te>Ue&&(b=this.verticalAlignment,b=b.y*te-b.y*Ue+b.offsetY),xe===1&&this.ze!==null)Ae=this.Cb,Ae>E&&(Ae=E),this.Oj(this.ze,a,0,b+y,E,ne,Ae,x,se,ce,ge);else if(this.Qc!==null&&this.Qb!==null)for(Ue=0;Ue<xe;Ue++){var Je=this.Qc[Ue];Je>E&&(Je=E),b+=y,this.Oj(this.Qb[Ue],a,0,b,E,ne,Je,x,se,ce,ge),b+=ne+Ae}switch(this.flip){case si:a.scale(-1,1),a.translate(-E,0);break;case Ur:a.scale(1,-1),a.translate(0,-te);break;case ki:a.scale(-1,-1),a.translate(-E,-te)}}},it.Oj=function(a,y,x,b,E,te,ne,se,ce,ge,xe){var Ae=0;if(se)ce==="left"?Ae=0:ce==="right"?Ae=E-ne:ce==="center"&&(Ae=(E-ne)/2),y.fillRect(x+Ae,b+.25*te,ne,1);else{if(ce==="left"?Ae=0:ce==="right"?Ae=E:ce==="center"&&(Ae=E/2),E=Am!==null?Am(this,te):.75*te,y.fillText(a,x+Ae,b+E),a=te/20|0,a===0&&(a=1),ce==="right"?Ae-=ne:ce==="center"&&(Ae-=ne/2),ge){se=Nm!==null?Nm(this,te):.8*te,ce=x+Ae,ge=b+se,E=x+Ae+ne,se=b+se;var Ue=a;y.beginPath(),y.lineWidth=Ue,y.moveTo(ce,ge),y.lineTo(E,se),y.stroke(),y.Se(),y instanceof rs&&y.ad.classList.add("gojs-td")}xe&&(xe=b+te-te/2.2|0,a%2!==0&&(xe+=.5),b=x+Ae,te=xe,x=x+Ae+ne,ne=xe,Ae=a,y.beginPath(),y.lineWidth=Ae,y.moveTo(b,te),y.lineTo(x,ne),y.stroke(),y.Se(),y instanceof rs&&y.ad.classList.add("gojs-td"))}},it.kk=function(a,y,x){if(!Jt.prototype.kk.call(this,a,y,x))return!1;if(to(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;x<y.length;x++)Qy(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,Qy(a,y,!0);return!0},it.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Jt.prototype.nk.call(this,a)},it.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("text");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},it.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var te=this.Ae;_a!==null&&M1!==te&&(M1=_a.font=te),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var ne;if(isNaN(this.desiredSize.width)){if(te=this.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),te.length===0)te=8;else if(this.isMultiline){for(var se=ne=0,ce=!1;!ce;){var ge=te.indexOf(`
|
|
|
`,se);ge===-1&&(ge=te.length,ce=!0),se=te.substr(se,ge-se),this.formatting===Kp&&(se=se.trim()),ne=Math.max(ne,rl(se)),se=ge+1}te=ne}else ne=te.indexOf(`
|
|
|
`,0),0<=ne&&(te=te.substr(0,ne)),te=rl(te);te=Math.min(te,a/this.scale)}else te=this.desiredSize.width;if(this.panel!==null&&(te=Math.min(te,this.panel.maxSize.width)),ne=w1(this,te),isNaN(this.desiredSize.height)?ne=Math.min(ne,y/this.scale):ne=this.desiredSize.height,ce=ne,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===jm&&(y=this.Ae,y=this.overflow===jm?x1(y):0,ge=this.spacingAbove+this.spacingBelow,ge=Math.max(0,Wp(this)+ge),ce=Math.min(this.maxLines-1,Math.max(Math.floor(ce/ge+.01)-1,0)),!(ce+1>=this.Qb.length))){for(this.l|=16777216,ge=this.Qb[ce],y=Math.max(1,a-y);rl(ge)>y&&1<ge.length;)ge=ge.substr(0,ge.length-1);ge+=Vp,y=rl(ge),this.Qb[ce]=ge,this.Qb=this.Qb.slice(0,ce+1),this.Qc[ce]=y,this.Qc=this.Qc.slice(0,ce+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===b1||isNaN(this.desiredSize.width))&&(te=isNaN(a)?this.Cb:Math.min(a,this.Cb)),te=Math.max(x,te),ne=Math.max(b,ne),ao(this.dc,te,ne),this.Ge(0,0,te,ne),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},it.eh=function(a,y,x,b){da(this,a,y,x,b)};function Up(a,y,x){a.ze===null?(a.ze=y,a.Cb=x):((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(x),a.Qb.length>a.maxLines&&(a.l|=16777216))}function L0(a,y,x,b){var E=a.formatting===Kp;E&&(y=y.trim());var te=0,ne=a.Ae,se=a.spacingAbove+a.spacingBelow;se=Math.max(0,Wp(a)+se);var ce=a.overflow===jm?x1(ne):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,se);else if(ne=y,a.wrap===k0){a.Le=1;var ge=rl(y);if(ce===0||ge<=x)a.Cb=Math.max(a.Cb,ge),Up(a,y,a.Cb),b!==null&&b.h(ge,se);else{for(te=wf(a,ne),ne=ne.substr(te.length),y=wf(a,ne),ge=rl(te+y);0<y.length&&ge<=x;)te+=y,ne=ne.substr(y.length),y=wf(a,ne),ge=te+y,E&&(ge=ge.trim()),ge=rl(ge);for(E&&(y=y.trim()),te+=y,x=Math.max(1,x-ce);rl(te)>x&&1<te.length;)te=te.substr(0,te.length-1);a.l|=16777216,te+=Vp;var xe=rl(te);a.Cb=xe,Up(a,te,xe),b!==null&&b.h(xe,se)}}else{for(ce=0,ne.length===0&&(ce=1,Up(a,ne,0));0<ne.length;){for(y=wf(a,ne),ne=ne.substr(y.length);rl(y)>x;){var Ae=1;for(ge=rl(y.substr(0,Ae)),xe=0;ge<=x;)Ae++,xe=ge,ge=rl(y.substr(0,Ae));if(Ae===1){var Ue=ge;te=Math.max(te,ge)}else Ue=xe,te=Math.max(te,xe);if(Ae--,1>Ae&&(Ae=1),Up(a,y.substr(0,Ae),Ue),ce++,y=y.substr(Ae),a.Gc+ce>a.maxLines)break}for(xe=wf(a,ne),ge=rl(y+xe);0<xe.length&&ge<=x;)y+=xe,ne=ne.substr(xe.length),xe=wf(a,ne),ge=y+xe,E&&(ge=ge.trim()),ge=rl(ge);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),xe.length===0?(Ae=ge,te=Math.max(te,ge)):(Ae=xe=rl(y),te=Math.max(te,xe)),Up(a,y,Ae),ce++,a.Gc+ce>a.maxLines))break}a.Le=Math.min(a.maxLines,ce),a.Cb=Math.max(a.Cb,te),b!==null&&b.h(a.Cb,se*a.Le)}}function wf(a,y){if(a.wrap===P1)return y.substr(0,1);for(var x=y.length,b=0,E=xx;b<x&&!E.test(y.charAt(b));)b++;for(a.formatting===C1&&(x=Math.min(x,b+1));b<x&&E.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function rl(a){return _a===null?8*a.length:_a.measureText(a).width}function Wp(a){if(a.df!==null)return a.df;var y=a.Ae;if(_a===null){var x=16;return a.df=x}return N0[y]!==void 0&&5e3>E1?x=N0[y]:(x=1.3*_a.measureText("M").width,N0[y]=x,E1++),a.df=x}function x1(a){if(_a===null)return 6;if(Im[a]!==void 0&&5e3>j0)var y=Im[a];else y=_a.measureText(Vp).width,Im[a]=y,j0++;return y}function w1(a,y){var x=a.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,Wp(a)+b),x.length===0)return a.Cb=0,a.Gc=1,b;if(!a.isMultiline){var E=x.indexOf(`
|
|
|
`,0);0<=E&&(x=x.substr(0,E))}E=0;for(var te=a.Gc=0,ne,se=!1;!se;){if(ne=x.indexOf(`
|
|
|
`,te),ne===-1&&(ne=x.length,se=!0),te<=ne){if(te=x.substr(te,ne-te),a.wrap!==k0){a.Le=0;var ce=Wn.alloc();L0(a,te,y,ce),E+=ce.height,Wn.free(ce),a.Gc+=a.Le}else L0(a,te,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(se=!0)}te=ne+1}return a.Lq=E}Lt.Object.defineProperties(ji.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"||(Al(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:An},set:function(a){var y=this.flip;y!==a&&(Al(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Sa},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),Al(this),this.da.Yr=a,Ea(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Wn.alloc();L0(this,this.ec,999999,a);var y=a.width;Wn.free(a),a=w1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),ao(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:O0},set:function(a){var y=this.wrap;y!==a&&(Al(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:A0},set:function(a){var y=this.overflow;y!==a&&(Al(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&&md(a,"TextBlock.stroke"),a instanceof xi&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Wp(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&&(Al(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&&(Al(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 Zl),this.fa.Tk=a,this.v();var x=this.panel;x!==null&&(x.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 Zl),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 Zl),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 Zl),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 Zl),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&&(Al(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&&(Al(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&&(Al(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&&(Al(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:Kp},set:function(a){var y=this.formatting;y!==a&&(Al(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&&Fn(a,"> 0",ji,"maxLines"),Al(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 Am=null,Nm=null,k0=new fn(ji,"None",0),b1=new fn(ji,"WrapFit",1),O0=new fn(ji,"WrapDesiredSize",2),P1=new fn(ji,"WrapBreakAll",3),A0=new fn(ji,"OverflowClip",0),jm=new fn(ji,"OverflowEllipsis",1),Kp=new fn(ji,"FormatTrim",0),C1=new fn(ji,"FormatNone",0),xx=/[ \u200b\u00ad]/,N0=new hr,E1=0,Im=new hr,j0=0,Vp="...",M1="",_a=null,Dm=!1;ji.className="TextBlock";function I0(){this.nc=!1,this.Hd=null,this.Xf=An,this.gq=Kp,this.Jq=1/0,this.$q=A0,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Sa,this.$r=O0}I0.prototype.copy=function(){var a=new I0;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},ji.getEllipsis=function(){return Vp},ji.setEllipsis=function(a){Vp=a,Im=new hr,j0=0},ji.getBaseline=function(){return Am},ji.setBaseline=function(a){Am=a},ji.getUnderline=function(){return Nm},ji.setUnderline=function(a){Nm=a},ji.isValidFont=function(a){if(Dm||(_a=eo?new Us(null).context:null,Dm=!0),_a===null)return!0;var y=_a.font;if(a===y||a==="10px sans-serif")return!0;_a.font="10px sans-serif",_a.font=a;var x=_a.font;if(x!=="10px sans-serif")return _a.font=y,!0;_a.font="19px serif";var b=_a.font;return _a.font=a,x=_a.font,_a.font=y,x!==b},ji.FormatNone=C1,ji.FormatTrim=Kp,ji.None=k0,ji.OverflowClip=A0,ji.OverflowEllipsis=jm,ji.WrapBreakAll=P1,ji.WrapDesiredSize=O0,ji.WrapFit=b1;function Zl(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Zl.prototype.copy=function(){var a=new Zl;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Zl.className="GradElementSettings";function za(a,y){Jt.call(this),this.Eg=null,this.qo="",this.Xg=Li,this.Nk=Bn,this.Zg=this.Hd=null,this.Mk=ui,this.Xf=An,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 bf;Xt(za,Jt),za.prototype.cloneProtected=function(a){Jt.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},za.prototype.qb=function(a){a===An||a===ir||a===ti?this.imageStretch=a:Jt.prototype.qb.call(this,a)},za.prototype.toString=function(){return"Picture("+this.source+")#"+Ar(this)};function Pf(a){a===void 0&&(a=""),a!==""?bf[a]&&(delete bf[a],Fm--):(bf=new hr,Fm=0)}function T1(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value;E.N();var te=y.getAttribute("src")||"",ne=E.Og.I(te);if(ne!==null)for(var se=ne.length,ce=0;ce<se;ce++)te=ne[ce],E.Xn.add(te),te.Uc=!0,E.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),te.Zg!==null&&te.Zg(te,x))}y.Bg.clear()}a.desiredSize.w()||(xo(a,!1),a.v())},y.Yp=function(x){y.ln=x;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value,te=y.getAttribute("src")||"",ne=E.Og.I(te);if(ne!==null){E=ne.length,te=cn();for(var se=0;se<E;se++)te.push(ne[se]);if(y.hn)for(se=0;se<E;se++)ne=te[se],ne.Hd!==null&&ne.Hd(ne,x);Pn(te)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}za.prototype.hA=function(){if(this.source!==""){Pf(this.source);var a=this.source;this.source="",this.source=a}},za.prototype.redraw=function(){this.N(),this.Uc=!0},za.prototype.hh=function(a,y){var x=this.Eg;if(x!==null){var b=x.getAttribute("src");if(!(x instanceof HTMLImageElement&&(b===null||b==="")||x.ln instanceof Event&&a instanceof Th)){var E=a instanceof rs;b=this.naturalBounds;var te=0,ne=0,se=this.qn,ce=se?+x.width:x.naturalWidth;if(se=se?+x.height:x.naturalHeight,ce===void 0&&x.videoWidth&&(ce=x.videoWidth),se===void 0&&x.videoHeight&&(se=x.videoHeight),ce=ce||b.width,se=se||b.height,ce!==0&&se!==0){var ge=ce,xe=se;this.sourceRect.w()&&(te=this.Xg.x,ne=this.Xg.y,ce=this.Xg.width,se=this.Xg.height);var Ae=ce,Ue=se,Je=this.Nk,rt=this.Mk;switch(Je){case An:if(this.sourceRect.w())break;Ae>=b.width&&(te=te+rt.offsetX+(Ae*rt.x-b.width*rt.x)),Ue>=b.height&&(ne=ne+rt.offsetY+(Ue*rt.y-b.height*rt.y)),ce=Math.min(b.width,Ae),se=Math.min(b.height,Ue);break;case Bn:Ae=b.width,Ue=b.height;break;case ir:case ti:Je===ir?(Je=Math.min(b.height/Ue,b.width/Ae),Ae*=Je,Ue*=Je):Je===ti&&(Je=Math.max(b.height/Ue,b.width/Ae),Ae*=Je,Ue*=Je,Ae>=b.width&&(te=(te+rt.offsetX+(Ae*rt.x-b.width*rt.x)/Ae)*ce),Ue>=b.height&&(ne=(ne+rt.offsetY+(Ue*rt.y-b.height*rt.y)/Ue)*se),ce*=1/(Ae/b.width),se*=1/(Ue/b.height),Ae=b.width,Ue=b.height)}Je=this.Df()*y.scale;var ht=Ae*Je*Ue*Je,Ft=ce*se/ht,Ot=x.__goCache;Je=null;var _t=wx;if(!E){if(x.sq&&Ot!==void 0&&4<ht&&Ft>_t*_t)for(Ot.gi===null&&(k1(Ot,4,ge,xe,x),k1(Ot,16,ge,xe,x)),E=Ot.gi,ge=E.length,xe=0;xe<ge&&E[xe].ratio*E[xe].ratio<Ft;xe++)Je=E[xe];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new Us(null).context;try{E.drawImage(this.Eg,0,0)}catch(Gt){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Gt){this.vl=!0}}if(this.vl)return}}switch(E=Ae<b.width?rt.offsetX+(b.width*rt.x-Ae*rt.x):0,rt=Ue<b.height?rt.offsetY+(b.height*rt.y-Ue*rt.y):0,this.flip){case si:a.translate(Math.min(b.width,Ae),0),a.scale(-1,1);break;case Ur:a.translate(0,Math.min(b.height,Ue)),a.scale(1,-1);break;case ki:a.translate(Math.min(b.width,Ae),Math.min(b.height,Ue)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Ot!==void 0&&Je!==null&&Je.ratio!==1){a.save(),y=Je.ratio;try{a.drawImage(Je.source,te/y,ne/y,Math.min(Je.source.width,ce/y),Math.min(Je.source.height,se/y),E,rt,Math.min(b.width,Ae),Math.min(b.height,Ue)),a instanceof rs&&(this.bt=[te/y,ne/y,Math.min(Je.source.width,ce/y),Math.min(Je.source.height,se/y),E,rt,Math.min(b.width,Ae),Math.min(b.height,Ue)])}catch(Gt){this.en=!1}a.restore()}else try{a.drawImage(x,te,ne,ce,se,E,rt,Math.min(b.width,Ae),Math.min(b.height,Ue)),a instanceof rs&&(this.bt=[te,ne,ce,se,E,rt,Math.min(b.width,Ae),Math.min(b.height,Ue)])}catch(Gt){this.en=!1}switch(this.flip){case si:a.scale(-1,1),a.translate(-Math.min(b.width,Ae),0);break;case Ur:a.scale(1,-1),a.translate(0,-Math.min(b.height,Ue));break;case ki:a.scale(-1,-1),a.translate(-Math.min(b.width,Ae),-Math.min(b.height,Ue))}}}}},za.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,te=Ra(this,!0),ne=this.Eg,se=this.qn,ce=0,ge=0;(se||!this.al&&ne&&ne.complete)&&(this.al=!0),ne===null?(isFinite(E.width)||(a=0),isFinite(E.height)||(y=0)):(ce=se?+ne.width:ne.naturalWidth,ge=se?+ne.height:ne.naturalHeight),isFinite(E.width)||te===Bn||te===lr?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:ne!==null&&(a=ce)),x=0):ne!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:ce),isFinite(E.height)||te===Bn||te===br?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:ne!==null&&(y=ge)),b=0):ne!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:ge),isFinite(E.width)&&(a=E.width),isFinite(E.height)&&(y=E.height),E=this.maxSize,te=this.minSize,x=Math.max(x||0,te.width),b=Math.max(b||0,te.height),a=Math.min(E.width,a),y=Math.min(E.height,y),a=Math.max(x,a),y=Math.max(b,y),ne===null||ne.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),ao(this.dc,a,y),this.Ge(0,0,a,y)},za.prototype.eh=function(a,y,x,b){da(this,a,y,x,b)},Lt.Object.defineProperties(za.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 x=a instanceof HTMLImageElement;a===null||x||a instanceof HTMLVideoElement||this.qn||zt("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&Ep(b,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new Ln),b!==null&&x&&Ic(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()||(xo(this,!1),this.v())):x&&T1(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 x=bf;if(eo){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<Fm&&(Pf(),x=bf),b=On("img"),b.hn=!0,T1(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,Fm++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new L1),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}}}),za.prototype.redraw=za.prototype.redraw,za.prototype.reloadSource=za.prototype.hA;var Fm=0,wx=4;za.className="Picture",bf=new hr,za.clearCache=Pf;function L1(){this.gi=null}function k1(a,y,x,b,E){a.gi===null&&(a.gi=[]);var te=new Us(null),ne=te.context,se=1/y;te.width=x/y,te.height=b/y,te.width!==0&&te.height!==0&&(y=new O1(te.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],E=x.source,x=x.ratio),ne.setTransform(se*x,0,0,se*x,0,0),ne.yc(),ne.drawImage(E,0,0),a.gi.push(y))}L1.className="PictureCacheArray";function O1(a,y){this.source=a,this.ratio=y}O1.className="PictureCacheInstance";function Cf(){this.os=new Un,this.mc=null}Cf.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Un,this.mc=null};function Ef(a,y,x,b,E,te){a.mc=new jo,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=b,a.mc.isEvenOdd=te||!1,a.os.figures.add(a.mc),E!==void 0&&(a.mc.isShadowed=E)}function bx(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}Cf.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new di(Io);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},Cf.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new di(Ri);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function Zu(a,y,x,b,E,te,ne){var se;se===void 0&&(se=!1);var ce=new di(Qo);ce.point1X=y,ce.point1Y=x,ce.point2X=b,ce.point2Y=E,ce.endX=te,ce.endY=ne,se&&ce.close(),a.mc.segments.add(ce)}function Bm(a,y,x,b,E){var te;te===void 0&&(te=!1);var ne=new di(cs);ne.point1X=y,ne.point1Y=x,ne.endX=b,ne.endY=E,te&&ne.close(),a.mc.segments.add(ne)}Cf.prototype.arcTo=function(a,y,x,b,E,te,ne){te===void 0&&(te=0),ne===void 0&&(ne=!1);var se=new di(mo);se.startAngle=a,se.sweepAngle=y,se.centerX=x,se.centerY=b,se.radiusX=E,se.radiusY=te!==0?te:E,ne&&se.close(),this.mc.segments.add(se)};function Px(a,y,x,b,E,te,ne,se){var ce;ce===void 0&&(ce=!1),y=new di(ws,ne,se,y,x,b,E,te),ce&&y.close(),a.mc.segments.add(y)}function A1(a){var y=Rm;return y!==null?(Rm=null,y.reset(a),y):(y=new Cf,y.reset(a),y)}var Rm=null;Cf.className="StreamGeometryContext";function sa(a,y){var x=a.toLowerCase(),b=qt.Ze;b[a]=y,b[x]=a}sa("Rectangle",function(a,y,x){a="r"+y+","+x;var b=qt.Mf[a];return b!==void 0||(b=new Un(Un.u),b.endX=y,b.endY=x,qt.Nf<qt.vm&&(qt.Mf[a]=b,qt.Nf++)),b}),sa("Square",function(a,y,x){a="s"+y+","+x;var b=qt.Mf[a];return b!==void 0||(b=new Un(Un.u),b.endX=y,b.endY=x,b.defaultStretch=ir,qt.Nf<qt.vm&&(qt.Mf[a]=b,qt.Nf++)),b}),sa("RoundedRectangle",function(a,y,x){a=a?a.parameter1:NaN,(isNaN(a)||0>a)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var b="rr"+y+","+x+","+a,E=qt.Mf[b];if(E!==void 0)return E;var te=a*qt.wg;return E=new Un().add(new jo(a,0,!0).add(new di(Ri,y-a,0)).add(new di(Qo,y,a,y-te,0,y,te)).add(new di(Ri,y,x-a)).add(new di(Qo,y-a,x,y,x-te,y-te,x)).add(new di(Ri,a,x)).add(new di(Qo,0,x-a,te,x,0,x-te)).add(new di(Ri,0,a)).add(new di(Qo,a,0,0,te,te,0).close())),1<te&&(E.spot1=new sr(0,0,te,te),E.spot2=new sr(1,1,-te,-te)),qt.Nf<qt.vm&&(qt.Mf[b]=E,qt.Nf++),E}),sa("Border","RoundedRectangle"),sa("Ellipse",function(a,y,x){a="e"+y+","+x;var b=qt.Mf[a];return b!==void 0||(b=new Un(Un.F),b.endX=y,b.endY=x,b.spot1=Pl,b.spot2=Bs,qt.Nf<qt.vm&&(qt.Mf[a]=b,qt.Nf++)),b}),sa("Circle",function(a,y,x){a="c"+y+","+x;var b=qt.Mf[a];return b!==void 0||(b=new Un(Un.F),b.endX=y,b.endY=x,b.spot1=Pl,b.spot2=Bs,b.defaultStretch=ir,qt.Nf<qt.vm&&(qt.Mf[a]=b,qt.Nf++)),b}),sa("TriangleRight",function(a,y,x){return new Un().add(new jo(0,0).add(new di(Ri,y,.5*x)).add(new di(Ri,0,x).close())).pm(0,.25,.5,.75)}),sa("TriangleDown",function(a,y,x){return new Un().add(new jo(0,0).add(new di(Ri,y,0)).add(new di(Ri,.5*y,x).close())).pm(.25,0,.75,.5)}),sa("TriangleLeft",function(a,y,x){return new Un().add(new jo(y,x).add(new di(Ri,0,.5*x)).add(new di(Ri,y,0).close())).pm(.5,.25,1,.75)}),sa("TriangleUp",function(a,y,x){return new Un().add(new jo(y,x).add(new di(Ri,0,x)).add(new di(Ri,.5*y,0).close())).pm(.25,.5,.75,1)}),sa("Triangle","TriangleUp"),sa("Diamond",function(a,y,x){return new Un().add(new jo(.5*y,0).add(new di(Ri,0,.5*x)).add(new di(Ri,.5*y,x)).add(new di(Ri,y,.5*x).close())).pm(.25,.25,.75,.75)}),sa("LineH",function(a,y,x){return a=new Un(Un.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),sa("LineV",function(a,y,x){return a=new Un(Un.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),sa("None","Rectangle"),sa("BarH","Rectangle"),sa("BarV","Rectangle"),sa("MinusLine","LineH"),sa("PlusLine",function(a,y,x){return new Un().add(new jo(0,x/2,!1).add(new di(Ri,y,x/2)).add(new di(Io,y/2,0)).add(new di(Ri,y/2,x)))}),sa("XLine",function(a,y,x){return new Un().add(new jo(0,x,!1).add(new di(Ri,y,0)).add(new di(Io,0,0)).add(new di(Ri,y,x)))}),sa("LineRight",function(a,y,x){return new Un().add(new jo(.25*y,0,!1).add(new di(Ri,.75*y,.5*x)).add(new di(Ri,.25*y,x)))}),sa("LineDown",function(a,y,x){return new Un().add(new jo(0,.25*x,!1).add(new di(Ri,.5*y,.75*x)).add(new di(Ri,y,.25*x)))}),sa("LineLeft",function(a,y,x){return new Un().add(new jo(.75*y,0,!1).add(new di(Ri,.25*y,.5*x)).add(new di(Ri,.75*y,x)))}),sa("LineUp",function(a,y,x){return new Un().add(new jo(0,.75*x,!1).add(new di(Ri,.5*y,.25*x)).add(new di(Ri,y,.75*x)))}),qt.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 D0(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=Xi,this.ir=null,this.jr="",this.lr=wi,this.Gq="",this.Hq=Ao,this.Pq=Ci,this.Kq=Xr,this.Up=null,this.Cq=127,this.zr=Ei,this.yr="gray",this.Vg=4}D0.prototype.copy=function(){var a=new D0;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 pr(a,y){a===void 0||a instanceof Mo||typeof a=="string"?Rn.call(this,a):(Rn.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 Nt(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new wn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Xt(pr,Rn),pr.prototype.cloneProtected=function(a){Rn.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},it=pr.prototype,it.Af=function(a){Rn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},it.toString=function(){var a=Cn(this.constructor)+"#"+Ar(this);return this.data!==null&&(a+="("+Dn(this.data)+")"),a};function Ga(a){a.P===null?a.P=new D0:a.P.nc&&(a.P=a.P.copy())}it.th=function(){Rn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},it.gk=function(a,y,x,b,E,te,ne){var se=this.diagram;se!==null&&(a===lo&&y==="elements"?E instanceof Rn?Lh(E,function(ce){ly(se.partManager,ce),xh(se,ce)}):Ic(se,E):a===Eo&&y==="elements"&&(E instanceof Rn?Lh(E,function(ce){uy(se.partManager,ce,se)}):Ep(se,E)),se.cb(a,y,x,b,E,te,ne))},it.La=function(a){if(Rn.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];E instanceof Rn&&Lh(E,function(te){te.data!==null&&te.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},pr.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},pr.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},pr.prototype.bh=function(a,y){if(y!==null){var x=null,b=this.Qf;if(b!==null&&(x=b.I(a)),x!==y){if(x!==null){var E=x.diagram;E!==null&&E.remove(x)}b===null&&(this.Qf=b=new qn),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)))}}},pr.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var x=y.I(a);if(x!==null){var b=x.diagram;b!==null&&b.remove(x)}y.remove(a),y.count===0&&(this.Qf=null)}},pr.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=cn();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);Pn(y)}},pr.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var x=y.value;x.v(),x.placeholder&&x.placeholder.v()}e:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(x=this.Pj("Selection"),x===null){if(x=this.selectionAdornmentTemplate,x===null&&(x=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof Ir?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof hi))break e;Ws(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=Rn.Link),x.adornedObject=y)}if(x!==null){x.type===Rn.Link&&x.v(),this.bh("Selection",x);break e}}this.Jf("Selection")}for(Cx(this,a),y=this.adornments;y.next();)y.value.La()}},pr.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function F0(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function Cx(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function _m(a){if(Rc(a)===!1){R0(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function N1(a){if(a.G|=2097152,Rc(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||D1(a,y,x),x=a.Ib;var b=wn.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),wn.free(b),R0(a,!1)}}pr.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new Wr);var te=this.Lb;te.reset(),this.no(te,a,y,x,b),this.Lb=te,te.ws()||te.pp(E)},pr.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var te=ui;this.locationSpot.sb()&&(te=this.locationSpot);var ne=Nt.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,ne.yi(x.x,x.y,x.width,x.height,te),y.Lb!==null&&y.Lb.Ga(ne),ne.offset(-y.measuredBounds.x,-y.measuredBounds.y),te=y.panel;te!==null&&te!==this;)te.Lb!==null&&te.Lb.Ga(ne),ne.offset(-te.measuredBounds.x,-te.measuredBounds.y),te=te.panel;else ne.yi(y,x,b,E,te);a.rotate(this.Kb,ne.x,ne.y),Nt.free(ne)}},pr.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},pr.prototype.moveTo=function(a,y,x){a=Nt.allocAt(a,y),this.move(a,x),Nt.free(a)},pr.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())},pr.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())},pr.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new qn),y.I(a)!==null)return y.I(a);var x=Rn.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function $u(a,y,x,b){b===void 0&&(b=new Nt),x=x.Mc()?ui:x;var E=y.naturalBounds;if(b.h(E.width*x.x+x.offsetX,E.height*x.y+x.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}pr.prototype.mi=function(a){return a===void 0&&(a=new wn),a.assign(this.actualBounds)},pr.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function j1(a){var y=Nt.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof _r?x.strokeWidth:0;if(y.yi(0,0,b.width+E,b.height+E,a.locationSpot),x!==a)for(y.offset(-E/2,-E/2),x.transform.Ga(y),x=x.panel;x!==null&&x!==a;)x.transform.Ga(y),x=x.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function Ah(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=c1(a));var b=a.ag,E=2*b;if(!a.isShadowed)return x.h(y.x-1-b,y.y-1-b,y.width+2+E,y.height+2+E),x;b=y.x,E=y.y;var te=y.width;y=y.height;var ne=a.shadowBlur;return a=a.shadowOffset,te+=ne,y+=ne,b-=ne/2,E-=ne/2,0<a.x?te+=a.x:(b+=a.x,te-=a.x),0<a.y?y+=a.y:(E+=a.y,y-=a.y),x.h(b-1,E-1,te+2,y+2),x}pr.prototype.arrange=function(){if(Ma(this)===!1)N1(this);else{Ul(this,!1);var a=this.Ib,y=wn.alloc();y.assign(a);var x=_c(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;D1(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(x):!this.Zc()||qt.B(y.width,a.width)&&qt.B(y.height,a.height)||0<=this.vw&&this.C(16),wn.free(y),R0(this,!1)}},it=pr.prototype,it.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=wn.alloc();E.assign(x.documentBounds),E.Fv(x.padding),a.x>E.x&&a.y>E.y&&a.right<E.right&&a.bottom<E.bottom&&y.x>E.x&&y.y>E.y&&y.right<E.right&&y.bottom<E.bottom&&(b=!0),wn.free(E)}!(this.G&65536)&&a.D(y)||R1(this,b,x),x.N(),!a.w()&&!y.w()||Ai(a,y)||(this instanceof Xn&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},it.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&I1(this,b,a,y,x),this.pa=a,this.G&=-2097153,!this.ke.w()||b!==null&&!b.animationManager.isTicking&&b.undoManager.isUndoingRedoing||(b=this.ke,this.ke=new Nt(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),Rc(this)===!1&&Ma(this)===!1&&(_m(this),N1(this)),!0};function I1(a,y,x,b,E){y===null||a instanceof hi||(y=y.animationManager,y.zb&&Xd(y,a,new Nt(b,E),x))}it.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;Rc(this)||Ma(this)?E.h(NaN,NaN):E.h(E.x+a-b.x,E.y+y-b.y),b.h(a,y)}else{if(E.x===a&&E.y===y)return;b.h(b.x+a-E.x,b.y+y-E.y),E.h(a,y)}_m(this)},it.Av=function(){this.G&=-2097153,_m(this)};function D1(a,y,x){var b=j1(a),E=a.diagram,te=x.w(),ne=y.w();te&&ne?a.G&2097152?F1(a,y,x,E,b):B1(a,y,x,E,b):te?F1(a,y,x,E,b):ne&&B1(a,y,x,E,b),a.G|=2097152,Nt.free(b),a.Uk()}function F1(a,y,x,b,E){var te=y.x,ne=y.y;y.h(x.x-E.x,x.y-E.y),b!==null&&(x=b.animationManager,(b=x.defaultAnimation.isAnimating)||!x.zb||a instanceof hi||Xd(x,a,new Nt(te,ne),y),b||y.x===te&&y.y===ne||a.g("position",new Nt(te,ne),y.copy()))}function B1(a,y,x,b,E){var te=x.copy();x.h(y.x+E.x,y.y+E.y),x.D(te)||b===null||a.g("location",te,x.copy())}function R1(a,y,x){_0(a,!1),a instanceof Xn&&Gu(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?_c(a)?(Bi(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}it.si=function(){return!0},it.Zc=function(){return!0},it.ph=function(){return!1},it.Dd=function(){return!0};function B0(a,y,x,b){y.constructor===a.constructor||G1||(G1=!0,$n('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),$n(" Old class: "+Cn(a.constructor)+", new class: "+Cn(y.constructor)+", part: "+a.toString())),a.Ej();var E=a.data;x=a.layerName;var te=a.isSelected,ne=a.isHighlighted,se=!0,ce=!0,ge=!1;a instanceof Xn&&(se=a.isTreeLeaf,ce=a.isTreeExpanded,ge=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=E,a.G=te?a.G|4096:a.G&-4097,a.G=ne?a.G|524288:a.G&-524289,a instanceof Xn&&(a.U=se?a.U|4:a.U&-5,a.U=ce?a.U|1:a.U&-2,a.U=ge?a.U|2:a.U&-3),E!==null&&a.La(),E=a.layerName,E!==x&&(a.Jg=x,a.layerName=E),y!==null&&(y.skipsUndoManager=b),a.Zc()&&a.C(64)}pr.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},pr.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},pr.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},pr.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},pr.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},pr.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},pr.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},pr.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},pr.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 Rc(a){return(a.G&32768)!==0}function R0(a,y){a.G=y?a.G|32768:a.G&-32769}function _0(a,y){a.G=y?a.G|65536:a.G&-65537}function _c(a){return(a.G&131072)!==0}it=pr.prototype,it.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function zm(a,y){a.G=y?a.G|1048576:a.G&-1048577}it.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},it.N=function(){var a=this.diagram;a!==null&&!Ma(this)&&!Rc(this)&&this.isVisible()&&this.Ib.w()&&a.N(Ah(this,this.Ib))},it.v=function(){Rn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Xn&&this.labeledLink!==null&&Ea(this.labeledLink),a.$b(!0))},it.Vo=function(a){a||(a=this.Ah,a!==null&&K0(a,this))},it.Wo=function(a){a||(a=this.Ah,a!==null&&V0(a,this))},it.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},it.oz=function(){return z0(this,this)};function z0(a,y){var x=y.containingGroup;return x!==null?1+z0(a,x):y instanceof Xn&&(y=y.labeledLink,y!==null)?z0(a,y):0}it.sz=function(){return _1(this,this)};function _1(a,y){var x=y.containingGroup;return x!==null||y instanceof Xn&&(x=y.labeledLink,x!==null)?_1(a,x):y}it.Td=function(a){return a instanceof Ir?G0(this,this,a):!1};function G0(a,y,x){if(y===x||x===null)return!1;var b=y.containingGroup;return b===null||b!==x&&!G0(a,b,x)?y instanceof Xn&&(y=y.labeledLink,y!==null)?G0(a,y,x):!1:!0}it.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Ir&&zm(y,!0),y instanceof Xn){var x=y.labeledLink;x!==null&&(y=x)}y=y.containingGroup}for(x=null,y=a;y!==null;){if(y.G&1048576){x=y;break}y instanceof Xn&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Ir&&zm(y,!1),y instanceof Xn&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},pr.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof Xn&&this.isLinkLabel)},pr.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 Xn&&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 x=y.layout;x!==null?x.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function z1(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function zc(a,y,x,b,E,te){if(te===void 0&&(te=null),!(a.contains(y)||te!==null&&!te(y)||y instanceof hi)){if(a.add(y),y instanceof Xn){if(x&&y instanceof Ir)for(var ne=y.memberParts;ne.next();)zc(a,ne.value,x,b,E,te);if(E!==!1)for(ne=y.linksConnected;ne.next();){var se=ne.value;if(!a.contains(se)){var ce=se.fromNode,ge=se.toNode;ce=ce===null||a.contains(ce),ge=ge===null||a.contains(ge),(E?ce&&ge:ce||ge)&&zc(a,se,x,b,E,te)}}if(1<b)for(y=y.Ou();y.next();)zc(a,y.value,x,b-1,E,te)}else if(y instanceof Hn)for(y=y.labelNodes;y.next();)zc(a,y.value,x,b,E,te)}}Lt.Object.defineProperties(pr.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Cr:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var a=this.Ig;return a==null?null:a.diagram}},layerName:{get:function(){return this.Jg},set:function(a){var y=this.Jg;if(y!==a){var x=this.diagram;if((x===null||x.Qj(a)!==null&&!x.partManager.addsToTemporaryLayer)&&(this.Jg=a,x!==null&&x.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(x=y.diagram,x!==null&&(a=x.Qj(a),a!==null&&a!==y)))){var b=y.pc(-1,this,!0);if(0<=b&&x.cb(Eo,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(lo,"parts",a,null,this,!0,b),b=this.layerChanged,b!==null){var E=x.aa;x.aa=!0,b(this,y,a),x.aa=E}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(Ga(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 x=this.layer;x!==null&&Qd(x,-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 hi?this.type!==Rn.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:Ci},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),Ga(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:Xr},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),Ga(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&&(Ga(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:Ao},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),Ga(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,x=a.y,b=this.ke;if(!(b.x===y||isNaN(b.x)&&isNaN(y))||!(b.y===x||isNaN(b.y)&&isNaN(x))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,Ma(this)===!1&&(_m(this),x=this.pa,x.w())){var E=this.diagram;if(E===null||E.animationManager.isTicking||!E.undoManager.isUndoingRedoing){var te=x.copy();x.h(x.x+(y.x-b.x),x.y+(y.y-b.y)),I1(this,E,x,te.x,te.y),this.g("position",te,x.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 x=this.diagram,b=this.data,E=null;if(x!==null&&b!==null&&!(this instanceof hi)){var te=x.model.undoManager;te.isEnabled&&!te.isUndoingRedoing&&(E=this.clone(),E.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||b===null||this instanceof hi?this instanceof hi&&(E=this.adornedPart,E!==null&&(a=E.Qf,a!==null&&a.remove(y),E.bh(this.category,this))):(te=x.model,te.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(b,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(Ws(x),x=x.copy(),x!==null&&B0(this,x,y,a))):(te!==null&&te.jm(b,a),x=dS(x.partManager,b,a),x!==null&&(Ws(x),x=x.copy(),x===null||x instanceof Hn||(b=this.location.copy(),B0(this,x,y,a),this.location.w()||(this.location=b)))),E!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",E,y))))}}},self:{get:function(){return this},set:function(a){B0(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 x=this.diagram;x!==null&&x.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 x=this.diagram;if(!a||this.canSelect()&&!(x!==null&&x.selection.count>=x.maxSelectionCount)){this.G^=4096;var b=!1;if(x!==null){b=x.skipsUndoManager,x.skipsUndoManager=!0;var E=x.selection;E.ka(),a?E.add(this):E.remove(this),E.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.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 x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.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&&(Ga(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&&(Ga(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&&(Ga(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 Hn?(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&&(Ga(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&&(Ga(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&&(Ga(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:Xi},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),Ga(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&&(Ga(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&&(Ga(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:wi},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),Ga(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&&zt("Cannot make a Group a member of itself: "+this.toString()),zt("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?V0(y,this):this instanceof Ir&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?K0(a,this):this instanceof Ir&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var b=this.data,E=x.model;if(b!==null&&E.Xj()){var te=E.wa(a!==null?a.data:null);E.mp(b,te)}}if(b=this.containingGroupChanged,b!==null&&(E=!0,x!==null&&(E=x.aa,x.aa=!0),b(this,y,a),x!==null&&(x.aa=E)),this instanceof Ir){for(x=new Ln,zc(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof Xn)for(b=b.linksConnected;b.next();)Mf(b.value)}if(this instanceof Xn){for(x=this.linksConnected;x.next();)Mf(x.value);x=this.labeledLink,x!==null&&Mf(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Qd(y,-1,a))}}else zt("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&&(Ga(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Xn&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(Ga(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&&(Ga(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Ei},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Ga(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&&(Ga(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&&(Ga(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),pr.prototype.invalidateLayout=pr.prototype.C,pr.prototype.findCommonContainingGroup=pr.prototype.px,pr.prototype.isMemberOf=pr.prototype.Td,pr.prototype.findTopLevelPart=pr.prototype.sz,pr.prototype.findSubGraphLevel=pr.prototype.oz,pr.prototype.ensureBounds=pr.prototype.Va,pr.prototype.getDocumentBounds=pr.prototype.mi,pr.prototype.findObject=pr.prototype.fb,pr.prototype.moveTo=pr.prototype.moveTo,pr.prototype.invalidateAdornments=pr.prototype.Wb,pr.prototype.clearAdornments=pr.prototype.Ej,pr.prototype.removeAdornment=pr.prototype.Jf,pr.prototype.addAdornment=pr.prototype.bh,pr.prototype.findAdornment=pr.prototype.Pj,pr.prototype.updateTargetBindings=pr.prototype.La;var G1=!1;pr.className="Part",pr.LayoutNone=0,pr.LayoutAdded=1,pr.LayoutRemoved=2,pr.LayoutShown=4,pr.LayoutHidden=8,pr.LayoutNodeSized=16,pr.LayoutGroupLayout=32,pr.LayoutNodeReplaced=64,pr.LayoutStandard=127,pr.LayoutAll=16777215;function hi(a,y){a===void 0||a instanceof Mo||typeof a=="string"?pr.call(this,a):(pr.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)}Xt(hi,pr),hi.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},hi.prototype.updateRelationshipsFromData=function(){},hi.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Hn&&y instanceof _r){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var b=0;b<y;b++){var E=x[b];E.isPanelMain&&E instanceof _r&&(E.ua=a)}}},hi.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Ma(a))},hi.prototype.Zc=function(){return!1},hi.prototype.gk=function(a,y,x,b,E,te,ne){if(a===lo&&y==="elements"){if(E instanceof La)this.$a===null&&(this.$a=E);else if(E instanceof Rn){var se=E.Nl(function(ce){return ce instanceof La});se instanceof La&&this.$a===null&&(this.$a=se)}}else a===Eo&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Rn&&this.$a.rg(b)&&(this.$a=null));pr.prototype.gk.call(this,a,y,x,b,E,te,ne)},hi.prototype.updateAdornments=function(){},hi.prototype.Lj=function(){},Lt.Object.defineProperties(hi.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(a){var y=this.adornedPart,x=null;a!==null&&(x=a.part),y===null||a!==null&&y===x||y.Jf(this.category),this.ue=a,x!==null&&x.bh(this.category,this)}},adornedPart:{get:function(){var a=this.ue;return a!==null?a.part:null}},containingGroup:{get:function(){return null}}}),hi.className="Adornment";function H0(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Is,this.er=Um,this.Kr=this.ij=this.Nq=this.Mq=null}H0.prototype.copy=function(){var a=new H0;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 Xn(a,y){a===void 0||a instanceof Mo||typeof a=="string"?pr.call(this,a):(pr.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new Tn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Xt(Xn,pr),Xn.prototype.cloneProtected=function(a){pr.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},it=Xn.prototype,it.Af=function(a){pr.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Xu(a){a.Ba===null?a.Ba=new H0:a.Ba.nc&&(a.Ba=a.Ba.copy())}it.th=function(){pr.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function H1(a,y){y!==null&&(a.af===null&&(a.af=new Ln),a.af.add(y))}function U1(a,y,x,b){if(y===null||a.af===null)return null;for(var E=a.af.iterator;E.next();){var te=E.value;if(te.Ds===a&&te.cv===y&&te.Ox===x&&te.Px===b||te.Ds===y&&te.cv===a&&te.Ox===b&&te.Px===x)return te}return null}it.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=U1(this,a,y,x),a!==null&&a.Sl()},it.gk=function(a,y,x,b,E,te,ne){a===lo&&y==="elements"?this.wc=null:a===Eo&&y==="elements"&&(this.wc=null),pr.prototype.gk.call(this,a,y,x,b,E,te,ne)},it.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(is(x.fromPort),is(x.toPort),x.bb())}};function W1(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(is(x.fromPort),is(x.toPort),x.bb())}}function is(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||is(y.port)}}it.si=function(){return!0},Xn.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Xn.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Xn.prototype.isVisible=function(){if(!pr.prototype.isVisible.call(this))return!1;var a=!0,y=Uu,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===Uu){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===So){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===hf&&(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},Xn.prototype.Zb=function(a){pr.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var x=y.value;if(a&&this.containingGroup!==null){var b=x.To(this);b===null||b.Td(this.containingGroup)||x.bb()}x.Zb(a)}},Xn.prototype.qx=function(){var a=new Ln,y=new Ln;return K1(this,this,a,y),y.iterator};function K1(a,y,x,b){if(y!==null&&!x.has(y)){x.add(y);var E=!0,te=a.diagram;te!==null&&(E=te.isTreePathToChildren),y.linksConnected.each(function(ne){ne.isTreeLink?(E?ne.fromNode===y:ne.toNode===y)&&K1(a,E?ne.toNode:ne.fromNode,x,b):b.add(ne)})}}Xn.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new cr(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},it=Xn.prototype,it.Mo=function(a){a===void 0&&(a=null);var y=new cr(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},it.Sd=function(a){a===void 0&&(a=null);var y=new cr(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},it.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode===this?(a===null||E.fromPortId===a)&&(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Ln,y.add(x),y.add(E)):x=E):E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Ln,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Pr(x):Cr},it.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode!==this||a!==null&&E.fromPortId!==a||(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Ln,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Pr(x):Cr},it.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Ln,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Pr(x):Cr},it.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new cr(this.jb),E=this;return b.predicate=function(te){return!((te.fromNode!==E||te.toNode!==a||y!==null&&te.fromPortId!==y||x!==null&&te.toPortId!==x)&&(te.fromNode!==a||te.toNode!==E||x!==null&&te.fromPortId!==x||y!==null&&te.toPortId!==y))},b},it.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new cr(this.jb),E=this;return b.predicate=function(te){return!(te.fromNode!==E||te.toNode!==a||y!==null&&te.fromPortId!==y||x!==null&&te.toPortId!==x)},b};function Gm(a,y,x){is(x);var b=a.jb.contains(y);if(b||a.jb.add(y),!b||y.fromNode===y.toNode){var E=a.linkConnected;if(E!==null){var te=!0,ne=a.diagram;ne!==null&&(te=ne.aa,ne.aa=!0),E(a,y,x),ne!==null&&(ne.aa=te)}}!b&&y.isTreeLink&&(x=y.fromNode,y=y.toNode,x!==null&&y!==null&&x!==y&&(b=!0,a=a.diagram,a!==null&&(b=a.isTreePathToChildren),E=b?y:x,te=b?x:y,E.ci||(E.ci=te),!te.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(b?x===te&&(te.isTreeLeaf=!1):y===te&&(te.isTreeLeaf=!1))))}function Hm(a,y,x){is(x);var b=a.jb.remove(y),E=null;if(b||y.toNode===y.fromNode){var te=a.linkDisconnected;if(E=a.diagram,te!==null){var ne=!0;E!==null&&(ne=E.aa,E.aa=!0),te(a,y,x),E!==null&&(E.aa=ne)}}b&&y.isTreeLink&&(x=!0,E!==null&&(x=E.isTreePathToChildren),a=x?y.toNode:y.fromNode,y=x?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,E!==null&&E.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):Zp(y)))}function Zp(a){if(a.ci=!1,a.jb.count!==0){var y=!0,x=a.diagram;if(x===null||!x.undoManager.isUndoingRedoing){for(x!==null&&(y=x.isTreePathToChildren),x=a.jb.iterator;x.next();){var b=x.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}}}Xn.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},it=Xn.prototype,it.Vo=function(a){pr.prototype.Vo.call(this,a),a||(Zp(this),a=this.Yk,a!==null&&eS(a,this))},it.Wo=function(a){pr.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},it.Lj=function(){if(0<this.jb.count){var a=this.diagram;if(a!==null)for(var y=a.commandHandler!==null?a.commandHandler.deletesConnectedLinks:!0,x=this.jb.copy().iterator;x.next();){var b=x.value;y?a.remove(b):(b.fromNode===this&&(b.fromNode=null),b.toNode===this&&(b.toNode=null))}}this.labeledLink=null,pr.prototype.Lj.call(this)},it.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;V1(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function V1(a){a.wc===null?a.wc=new qn:a.wc.clear(),a.qm(a,function(y,x){Z1(y,x)}),a.wc.count===0&&a.wc.add("",a)}function Z1(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function U0(a,y,x){var b=y.portId;if(b!==null&&(a.wc!==null&&a.wc.remove(b),y=a.diagram,y!==null&&x)){for(x=null,a=a.findLinksConnected(b);a.next();)b=a.value,x===null&&(x=cn()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);Pn(x)}}}it.Nz=function(a){if(a===null||a===this)return!1;var y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this,y)for(;x!==a;){y=null;for(var b=x.jb.iterator;b.next();){var E=b.value;if(E.isTreeLink&&(y=E.fromNode,y!==x&&y!==this))break}if(y===this||y===null||y===x)return!1;x=y}else for(;x!==a;){for(y=null,b=x.jb.iterator;b.next()&&(E=b.value,!E.isTreeLink||(y=E.toNode,y===x||y===this)););if(y===this||y===null||y===x)return!1;x=y}return!0},it.xz=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this,a)for(;;){a=null;for(var x=y.jb.iterator;x.next();){var b=x.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,x=y.jb.iterator;x.next()&&(b=x.value,!b.isTreeLink||(a=b.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},it.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)zm(y,!0),y=y.pg();var x=null;for(y=a;y!==null;){if(y.G&1048576){x=y;break}y=y.pg()}for(y=this;y!==null;)zm(y,!1),y=y.pg();return x},it.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},it.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof Xn)return a;a=this.diagram,a=a!==null?a.isTreePathToChildren:!0;for(var y=this.jb.iterator;y.next();){var x=y.value;if(x.isTreeLink&&(x=a?x.fromNode:x.toNode,x!==this))return this.ci=x}return this.ci=null},it.vz=function(){function a(x,b){b.add(x);var E=x.kh();E!==null&&(b.add(E),x=x.pg(),x!==null&&a(x,b))}var y=new Ln;return a(this,y),y},it.uz=function(){return $1(this,this)};function $1(a,y){return y=y.pg(),y===null?0:1+$1(a,y)}it.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new cr(this.jb);var x=this;return y.predicate=a?function(b){return!!(b.isTreeLink&&b.fromNode===x)}:function(b){return!!(b.isTreeLink&&b.toNode===x)},y},it.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var x=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):x!==null&&x!==a?(y=new Tn,y.add(x),y.add(a)):x=a);else for(;b.next();)a=b.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):x!==null&&x!==a?(y=new Tn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Pr(x):Cr},it.wz=function(a){a===void 0&&(a=1/0);var y=new Ln;return zc(y,this,!1,a,!0),y},Xn.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 x=new Ln;x.add(this),X1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Uu),y.Ue=!1}};function X1(a,y,x,b,E,te,ne){if(1<b)for(var se=x?a.Mo():a.Sd();se.next();){var ce=se.value;ce.isTreeLink&&(ce=ce.To(a),ce===null||ce===a||y.contains(ce)||(y.add(ce),X1(ce,y,x,b-1,E,te,ne)))}else Y1(a,y,x,E,te,ne)}function Y1(a,y,x,b,E,te){for(var ne=E===a?!0:a.isTreeExpanded,se=x?a.Mo():a.Sd(),ce={};se.next();){var ge=se.value;if(ge.isTreeLink&&(ge=ge.To(a),ge!==null&&ge!==a)){var xe=y.contains(ge);if(xe||y.add(ge),ne){var Ae=x?ge.Oo():ge.Po();ce.uv=a,Ae.all(function(Ue){return function(Je){return Je===Ue.uv||!Je.isTreeExpanded}}(ce))&&b.Aj(ge,E),ge.oh(),ge.Zb(!1)}ge.isTreeExpanded&&(ge.wasTreeExpanded=ge.isTreeExpanded,xe||Y1(ge,y,x,b,E,te))}ce={uv:ce.uv}}a.isTreeExpanded=!1}Xn.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 x=new Ln;x.add(this),J1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Uu),y.Ue=!1}};function J1(a,y,x,b,E,te,ne){for(var se=te===a?!1:a.isTreeExpanded,ce=x?a.Mo():a.Sd(),ge={};ce.next();){var xe=ce.value;if(xe.isTreeLink&&(se||xe.fd||xe.bb(),xe=xe.To(a),xe!==null&&xe!==a&&!y.contains(xe))){if(y.add(xe),!se){xe.Zb(!0),xe.oh();var Ae=x?xe.Oo():xe.Po();ge.vv=a,Ae.all(function(Ue){return function(Je){return Je===Ue.vv||!Je.isTreeExpanded}}(ge))&&E.Cj(xe,te)}(2<b||xe.wasTreeExpanded)&&(xe.wasTreeExpanded=!1,J1(xe,y,x,b-1,E,te,ne))}ge={vv:ge.vv}}a.isTreeExpanded=!0}Lt.Object.defineProperties(Xn.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Um},set:function(a){var y=this.portSpreading;y!==a&&(Xu(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 x=this.diagram;x!==null&&Gu(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Is},set:function(a){typeof a=="number"&&(a=new mr(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Xu(this),this.Ba.yp=a;var x=this.diagram;x!==null&&Gu(x,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&&(Xu(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&&(Xu(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&&(Xu(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 x=this.diagram,b=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&b!==null&&!x.undoManager.isUndoingRedoing){var E=y.data,te=x.model;if(E!==null&&te.ri()){var ne=te.wa(b);ne!==void 0&&te.Qx(E,ne)}}this.containingGroup=null}this.Yk=a,a!==null&&(eS(a,this),x===null||b===null||x.undoManager.isUndoingRedoing||(E=a.data,x=x.model,E!==null&&x.ri()&&(b=x.wa(b),b!==void 0&&x.Bu(E,b))),this.containingGroup=a.containingGroup),Ea(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&V1(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 x=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.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&&(Xu(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))}}}),Xn.prototype.expandTree=Xn.prototype.expandTree,Xn.prototype.collapseTree=Xn.prototype.collapseTree,Xn.prototype.findTreeParts=Xn.prototype.wz,Xn.prototype.findTreeChildrenNodes=Xn.prototype.Ou,Xn.prototype.findTreeChildrenLinks=Xn.prototype.Qo,Xn.prototype.findTreeLevel=Xn.prototype.uz,Xn.prototype.findTreeParentChain=Xn.prototype.vz,Xn.prototype.findTreeParentNode=Xn.prototype.pg,Xn.prototype.findTreeParentLink=Xn.prototype.kh,Xn.prototype.findCommonTreeParent=Xn.prototype.gz,Xn.prototype.findTreeRoot=Xn.prototype.xz,Xn.prototype.isInTreeOf=Xn.prototype.Nz,Xn.prototype.findPort=Xn.prototype.ns,Xn.prototype.findLinksTo=Xn.prototype.kz,Xn.prototype.findLinksBetween=Xn.prototype.jz,Xn.prototype.findNodesInto=Xn.prototype.Oo,Xn.prototype.findNodesOutOf=Xn.prototype.Po,Xn.prototype.findNodesConnected=Xn.prototype.Mu,Xn.prototype.findLinksInto=Xn.prototype.Sd,Xn.prototype.findLinksOutOf=Xn.prototype.Mo,Xn.prototype.findExternalTreeLinksConnected=Xn.prototype.qx,Xn.prototype.invalidateConnectedLinks=Xn.prototype.Bd,Xn.prototype.invalidateLinkBundle=Xn.prototype.Lz;var Ex=new fn(Xn,"SpreadingNone",10),Um=new fn(Xn,"SpreadingEvenly",11),W0=new fn(Xn,"SpreadingPacked",12);Xn.className="Node",Xn.SpreadingNone=Ex,Xn.SpreadingEvenly=Um,Xn.SpreadingPacked=W0;function Ir(a,y){a===void 0||a instanceof Mo||typeof a=="string"?Xn.call(this,a):(Xn.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Ln,this.$a=null,this.Sc=new Ui,this.Sc.group=this,this.gl=new Ln,this.tb=this.$p=null,y&&Object.assign(this,y)}Xt(Ir,Xn),Ir.prototype.cloneProtected=function(a){Xn.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof La});y instanceof La?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())},it=Ir.prototype,it.Af=function(a){Xn.prototype.Af.call(this,a);var y=a.Rj();for(a=a.memberParts;a.next();){var x=a.value;if(x.v(),x.C(8),x.Ej(),x instanceof Xn)x.Bd(y);else if(x instanceof Hn)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},it.gk=function(a,y,x,b,E,te,ne){if(a===lo&&y==="elements"){if(E instanceof La)this.$a===null?this.$a=E:this.$a!==E&&zt("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof Rn){var se=E.Nl(function(ce){return ce instanceof La});se instanceof La&&(this.$a===null?this.$a=se:this.$a!==se&&zt("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===Eo&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Rn&&this.$a.rg(b)&&(this.$a=null));Xn.prototype.gk.call(this,a,y,x,b,E,te,ne)},it.Xl=function(a,y){Xn.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Rn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Rn&&(a=a.Pb()),this.tb===null&&(this.tb=new wn),a.mi(this.tb),a instanceof _r&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},it.eh=function(a,y,x,b){this.nf=this.$a,Xn.prototype.eh.call(this,a,y,x,b)},it.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Hn||y.Va()}),Xn.prototype.Va.call(this)},it.si=function(){if(!Xn.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Xn){if(y.isVisible()&&Ma(y))return!1}else if(y instanceof Hn&&y.isVisible()&&Ma(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function K0(a,y){if(a.Gn.add(y)){y instanceof Ir&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof Hn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function V0(a,y){if(a.Gn.remove(y)){y instanceof Ir&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof Hn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}it.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)}Xn.prototype.Lj.call(this)},Ir.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=vn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Ir.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=vn(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},Ir.prototype.canUngroup=function(){if(!this.ungroupable)return!1;var a=this.layer;return a===null||!a.allowUngroup?!1:(a=a.diagram,!!(a===null||a.allowUngroup))},it=Ir.prototype,it.Bd=function(a){var y=(this.U&65536)!==0;if(Xn.prototype.Bd.call(this,a),!y)for(!(this.U&65536)&&(this.U=this.U^65536),y=this.Lu();y.next();){var x=y.value;if(a===void 0||!a.contains(x)){var b=x.fromNode;b!==null&&b!==this&&b.Td(this)&&!b.isVisible()?(is(x.fromPort),is(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(is(x.fromPort),is(x.toPort),x.bb()))}}},it.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 x=new Ln,b=y.iterator;b.next();){var E=b.value;if(E instanceof Xn)for(E=E.linksConnected;E.next();){var te=E.value;y.contains(te)||x.add(te)}}return a&&(this.$p=x),x.iterator},it.iz=function(){var a=this.Rj();a.add(this);for(var y=new Ln,x=a.iterator;x.next();){var b=x.value;if(b instanceof Xn)for(b=b.linksConnected;b.next();){var E=b.value,te=E.fromNode;te===null||a.contains(te)&&te!==this||y.add(te),E=E.toNode,E===null||a.contains(E)&&E!==this||y.add(E)}}return y.iterator},it.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new Ln;return a(this,y),y},it.Rj=function(){var a=new Ln;return zc(a,this,!0,0,!0),a.remove(this),a},it.Zb=function(a){Xn.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Ir.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();Q1(this,y,a,this),a.Ue=!1}};function Q1(a,y,x,b){for(var E=a.memberParts;E.next();){var te=E.value;if(te.Zb(!1),te instanceof Ir&&te.isSubGraphExpanded&&(te.wasSubGraphExpanded=te.isSubGraphExpanded,Q1(te,y,x,b)),te instanceof Xn)te.Bd(y),x.Aj(te,b);else if(te instanceof Hn)for(te=te.labelNodes;te.next();)te.value.Bd(y)}a.isSubGraphExpanded=!1}Ir.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();q1(this,y,a,this),a.Ue=!1}};function q1(a,y,x,b){for(var E=a.memberParts;E.next();){var te=E.value;if(te.Zb(!0),te instanceof Ir&&te.wasSubGraphExpanded&&(te.wasSubGraphExpanded=!1,q1(te,y,x,b)),te instanceof Xn)te.Bd(y),x.Cj(te,b);else if(te instanceof Hn)for(te=te.labelNodes;te.next();)te.value.Bd(y)}a.isSubGraphExpanded=!0}Ir.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,b=x.x;x=x.y;var E=a.x,te=a.y;if(!(b===E||isNaN(b)&&isNaN(E))||!(x===te||isNaN(x)&&isNaN(te))){for(b=E-(isNaN(b)?0:b),x=te-(isNaN(x)?0:x),te=Nt.alloc(),Xn.prototype.move.call(this,a,y),a=new Ln,y=this.Rj().iterator;y.next();)E=y.value,E instanceof Hn&&(E.suspendsRouting&&a.add(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(E.suspendsRouting=!0);for(y.reset();y.next();)if(E=y.value,!(E.ph()||E instanceof Xn&&E.isLinkLabel)){var ne=E.position,se=E.location;ne.w()?(te.x=ne.x+b,te.y=ne.y+x,E.position=te):se.w()&&(te.x=se.x+b,te.y=se.y+x,E.location=te)}for(y.reset();y.next();)E=y.value,E instanceof Hn&&(E.suspendsRouting=a.contains(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(ne=E.position,te.x=ne.x+b,te.y=ne.y+x,te.w()?E.move(te):E.bb(),$0(E)&&E.bb());Nt.free(te)}},Lt.Object.defineProperties(Ir.prototype,{placeholder:{get:function(){return this.$a}},computesBoundsAfterDrag:{get:function(){return(this.U&2048)!==0},set:function(a){var y=(this.U&2048)!==0;y!==a&&(this.U^=2048,this.g("computesBoundsAfterDrag",y,a))}},computesBoundsIncludingLinks:{get:function(){return(this.U&4096)!==0},set:function(a){var y=(this.U&4096)!==0;y!==a&&(this.U^=4096,this.g("computesBoundsIncludingLinks",y,a))}},computesBoundsIncludingLocation:{get:function(){return(this.U&8192)!==0},set:function(a){var y=(this.U&8192)!==0;y!==a&&(this.U^=8192,this.g("computesBoundsIncludingLocation",y,a))}},handlesDragDropForMembers:{get:function(){return(this.U&16384)!==0},set:function(a){var y=(this.U&16384)!==0;y!==a&&(this.U^=16384,this.g("handlesDragDropForMembers",y,a))}},memberParts:{get:function(){return this.Gn.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;if(y!==a){a!==null&&a.diagram!==null&&a.diagram.layout===a&&zt("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 x=this.diagram;a!==null&&(a.diagram=x,a.group=this),x!==null&&(x.xh=!0),this.g("layout",y,a),x!==null&&x.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(a){var y=this.memberAdded;y!==a&&(Xu(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&&(Xu(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&&(Xu(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 x=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(E){E.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&&(Xu(this),this.Ba.Kr=a,this.g("subGraphExpandedChanged",y,a))}},rh:{get:function(){return(this.U&32768)!==0},set:function(a){(this.U&32768)!==0!==a&&(this.U^=32768)}}}),Ir.prototype.expandSubGraph=Ir.prototype.expandSubGraph,Ir.prototype.collapseSubGraph=Ir.prototype.collapseSubGraph,Ir.prototype.findSubGraphParts=Ir.prototype.Rj,Ir.prototype.findContainingGroupChain=Ir.prototype.hz,Ir.prototype.findExternalNodesConnected=Ir.prototype.iz,Ir.prototype.findExternalLinksConnected=Ir.prototype.Lu,Ir.prototype.ensureBounds=Ir.prototype.Va,Ir.className="Group";function La(a){Jt.call(this),this.yb=va,this.ko=new wn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Xt(La,Jt),La.prototype.cloneProtected=function(a){Jt.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},La.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return Yi(0,0,y.width,y.height,a.x,a.y)},La.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Ir||a instanceof hi)||zt("Placeholder is not inside a Group or Adornment."),a instanceof Ir){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(ao(b,(isFinite(x.width)?Math.max(x.width,y.width):y.width)||0,(isFinite(x.height)?Math.max(x.height,y.height):y.height)||0),this.Ge(0,0,b.width,b.height),b=a.memberParts,x=!1;b.next();)if(b.value.isVisible()){x=!0;break}b=a.diagram,!x||b===null||b.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(x=Nt.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Nt.free(x))}else{y=this.dc,x=this.yb,b=x.left+x.right;var E=x.top+x.bottom,te=a.adornedObject;a.angle=te.li();var ne=0;te instanceof _r&&(ne=te.strokeWidth);var se=te.Df(),ce=te.naturalBounds,ge=(ce.width+ne)*se;ne=(ce.height+ne)*se,a.type!==Rn.Link&&(se=te.ga(a.category==="Selection"?Ao:a.locationSpot,Nt.alloc()),a.location=se,Nt.free(se)),isNaN(ge)||isNaN(ne)?(a=te.ga(Ao,Nt.alloc()),ge=wn.allocAt(a.x,a.y,0,0),ge.Ye(te.ga(Qa,a)),ge.Ye(te.ga(ru,a)),ge.Ye(te.ga(Ya,a)),ao(y,ge.width+b||0,ge.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),Nt.free(a),wn.free(ge)):(ao(y,ge+b||0,ne+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},La.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},La.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof Ir&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var E=x.toolManager.findTool("Dragging");if(E===x.currentTool&&(x=E.computeBorder(y,this.ko,a),x!==null))return x}x=wn.alloc(),E=this.computeMemberBounds(x);var te=this.yb;return y instanceof Ir&&!y.isSubGraphExpanded?a.h(E.x-te.left,E.y-te.top,0,0):a.h(E.x-te.left,E.y-te.top,Math.max(E.width+te.left+te.right,0),Math.max(E.height+te.top+te.bottom,0)),wn.free(x),b&&y instanceof Ir&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},La.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Ir))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,b=1/0,E=-1/0,te=-1/0,ne=y.memberParts;ne.next();){var se=ne.value;if(se.isVisible()){if(se instanceof Hn&&(!y.computesBoundsIncludingLinks||ps(se)||se.fromNode===y||se.toNode===y))continue;se=se.actualBounds,se.left<x&&(x=se.left),se.top<b&&(b=se.top),se.right>E&&(E=se.right),se.bottom>te&&(te=se.bottom)}}return isFinite(x)&&isFinite(b)?a.h(x,b,E-x,te-b):(y=y.location,a.h(y.x,y.y,0,0)),a},Lt.Object.defineProperties(La.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new mr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),La.className="Placeholder";function Hn(a){pr.call(this,Rn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=ka,this.Om=0,this.Qm=ka,this.Rm=NaN,this.qj=J0,this.po=.5,this.wd=null,this.Nb=new Tn().freeze(),this.Tg=this.Mg=null,this.ml=new wn,this.ua=new Un,this.u=this.o=this.Sf=this.Wf=null,this.su=new Nt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Xt(Hn,pr),Hn.prototype.cloneProtected=function(a){pr.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())},it=Hn.prototype,it.Af=function(a){pr.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&&is(y),a=a.toPort,a!==null&&is(a)},it.qb=function(a){a.classType===Hn?(a.value&2)===2?this.routing=a:a===ms||a===Ju||a===Lf?this.curve=a:a===Yp||a===Xm||a===Ym?this.adjusting=a:a!==J0&&a!==ka&&zt("Unknown Link enum value for a Link property: "+a):pr.prototype.qb.call(this,a)},it.Xc=function(){this.ba===null&&(this.ba=new Fp)},it.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Ma(a)||Rc(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Ma(a)||Rc(a)))},it.zv=function(){return!1},it.Av=function(){},it.Zc=function(){return!1},Hn.prototype.computeAngle=function(a,y,x){return Hn.computeAngle(y,x)},Hn.computeAngle=function(a,y){switch(a){default:case ka:a=0;break;case Jp:a=y;break;case Qp:a=y+90;break;case qp:a=y-90;break;case Q0:a=y+180;break;case Jm:a=qt.bp(y),90<a&&270>a&&(a-=180);break;case eg:a=qt.bp(y+90),90<a&&270>a&&(a-=180);break;case tg:a=qt.bp(y-90),90<a&&270>a&&(a-=180);break;case Qm:if(a=qt.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return qt.bp(a)};function Mf(a){var y=a.fromNode,x=a.toNode,b=null;if(y!==null?b=x!==null?y.px(x):y.containingGroup:x!==null?b=x.containingGroup:b=null,y=b,x=a.Ah,x!==y){x!==null&&V0(x,a),a.Ah=y,y!==null&&K0(y,a);var E=a.containingGroupChanged;if(E!==null){var te=!0,ne=a.diagram;ne!==null&&(te=ne.aa,ne.aa=!0),E(a,x,y),ne!==null&&(ne.aa=te)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=b}it=Hn.prototype,it.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&pr.prototype.oh.call(this)},it.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},it.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function eS(a,y){a.wd===null&&(a.wd=new Ln),a.wd.add(y),a.v()}it.Vo=function(a){if(pr.prototype.Vo.call(this,a),Nh(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Gm(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Gm(x,this,b)}$p(this)}},it.Wo=function(a){if(pr.prototype.Wo.call(this,a),Nh(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Hm(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Hm(x,this,b)}Xp(this)}},it.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))},Hn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Hn.prototype.move=function(a,y){var x=y?this.location:this.position,b=x.x;isNaN(b)&&(b=0);var E=x.y;for(isNaN(E)&&(E=0),b=a.x-b,E=a.y-E,y===!0?pr.prototype.move.call(this,a,!1):(a=Nt.allocAt(x.x+b,x.y+E),pr.prototype.move.call(this,a,!1),Nt.free(a)),Yu(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},Hn.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},Hn.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},Hn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Oi),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),b=this.i(1);return a.h((x.x+b.x)/2,(x.y+b.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===ms))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===ms){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return qt.ax(x.x,x.y,b.x,b.y,b.x,b.y,E.x,E.y,a),a}if(b=(y-1)/3|0,x=3*(b/2|0),b%2===1){b=this.i(x),E=this.i(x+1);var te=this.i(x+2);x=this.i(x+3),qt.ax(b.x,b.y,E.x,E.y,te.x,te.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var ne=this.flattenedLengths;for(x=this.flattenedTotalLength,E=te=b=0;b<x/2&&te<y&&(E=ne[te],!(b+E>x/2));)b+=E,te++;return y=this.i(te),te=this.i(te+1),1>Math.abs(y.x-te.x)?y.y>te.y?a.h(y.x,y.y-(x/2-b)):a.h(y.x,y.y+(x/2-b)):1>Math.abs(y.y-te.y)?y.x>te.x?a.h(y.x-(x/2-b),y.y):a.h(y.x+(x/2-b),y.y):(x=(x/2-b)/E,a.h(y.x+x*(te.x-y.x),y.y+x*(te.y-y.y))),a},Hn.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()===ms))return this.ua.wx(.5);if(this.computeCurve()===ms&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var b=this.i(x+2);return x=this.i(x+3),qt.My(a.x,a.y,y.x,y.y,b.x,b.y,x.x,x.y)}if(0<x&&x+1<a)return this.i(x-1).ab(this.i(x+1))}y=this.flattenedLengths,b=this.flattenedTotalLength;var E=0;x=0;for(var te;E<b/2&&x<a&&(te=y[x],!(E+te>b/2));)E+=te,x++;if(y=this.i(x),b=this.i(x+1),1>Math.abs(y.x-b.x)&&1>Math.abs(y.y-b.y)){if(0<x&&x+2<a)return this.i(x-1).ab(this.i(x+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)},it=Hn.prototype,it.i=function(a){return this.Nb.s[a]},it.dd=function(a,y){this.Nb.cd(a,y)},it.L=function(a,y,x){this.Nb.cd(a,new Nt(y,x))},it.Kz=function(a,y){this.Nb.Gb(a,y)},it.m=function(a,y,x){this.Nb.Gb(a,new Nt(y,x))},it.ne=function(a){this.Nb.add(a)},it.yf=function(a,y){this.Nb.add(new Nt(a,y))},it.pv=function(a){this.Nb.mb(a)},it.Fj=function(){this.Nb.clear()};function Yu(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var b=a.fd,E=new Tn,te=a.Nb.iterator;te.next();){var ne=te.value;E.add(new Nt(ne.x+y,ne.y+x).freeze())}E.freeze(),te=a.Nb,a.Nb=E,ne=a.diagram,isNaN(y)||isNaN(x)||ne!==null&&ne.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),Ea(a)),b?Wm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),ne!==null&&ne.animationManager.zb&&Jd(ne.animationManager,a,E),a.g("points",te,E)}}it.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},it.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,b=1/0,E=a.s,te=E.length,ne=0;ne<te;ne++){var se=E[ne];x=Math.min(se.x,x),b=Math.min(se.y,b)}se=ne=1/0;for(var ce=y.s,ge=ce.length,xe=0;xe<ge;xe++){var Ae=ce[xe];ne=Math.min(Ae.x,ne),se=Math.min(Ae.y,se),Ae.freeze()}if(y.freeze(),ge===te){for(te=0;te<ge;te++)if(xe=E[te],Ae=ce[te],xe.x-x!==Ae.x-ne||xe.y-b!==Ae.y-se){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&Jd(x.animationManager,this,y),Wm(this),this.g("points",a,y)}},it.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Wm(a){a.Nb.count===0?a.fd=!1:(a.fd=!0,a.cq=null,a.vt=NaN,a.defaultFromPoint=a.i(0),a.defaultToPoint=a.i(a.pointsCount-1),$m(a,!1))}it.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())}},it.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()}}},Hn.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(Sd||(Sd=new Xn,Sd.desiredSize=Br,Sd.Va()),this.defaultFromPoint&&(Sd.location=this.defaultFromPoint,Sd.Va(),y=a=Sd)):y=this.fromPort,y!==null&&!a.isVisible()){var x=a.findVisibleNode();x!==null&&x!==a?(a=x,y=x.port):a=x}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,E=null;if(b===null?(xd||(xd=new Xn,xd.desiredSize=Br,xd.Va()),this.defaultToPoint&&(xd.location=this.defaultToPoint,xd.Va(),E=b=xd)):E=this.toPort,E===null||b.isVisible()||(x=b.findVisibleNode(),x!==null&&x!==b?(b=x,E=x.port):b=x),this.Mw=b,b===null||!b.location.w())return!1;for(;!(E===null||E.actualBounds.w()&&E.Ed());)E=E.panel;if(E===null)return!1;var te=this.pointsCount,ne=this.computeSpot(!0,y);x=this.computeSpot(!1,E);var se=Tf(ne),ce=Tf(x),ge=y===E&&y!==null,xe=this.isOrthogonal,Ae=this.curve===ms;this.Wf=ge&&!xe?Ae=!0:!1;var Ue=this.computeAdjusting()===ka||ge;if(!xe&&!ge&&se&&ce){if(se=!1,!Ue&&3<=te&&(Ue=this.getLinkPoint(a,y,ne,!0,!1,b,E),ce=this.getLinkPoint(b,E,x,!1,!1,a,y),se=this.adjustPoints(0,Ue,te-1,ce))&&(Ue=this.getLinkPoint(a,y,ne,!0,!1,b,E),ce=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,Ue,te-1,ce)),!se)if(this.Fj(),Ae){te=this.getLinkPoint(a,y,ne,!0,!1,b,E),Ue=this.getLinkPoint(b,E,x,!1,!1,a,y),se=Ue.x-te.x,ce=Ue.y-te.y,ge=this.computeCurviness(),Ae=xe=0;var Je=te.x+se/3,rt=te.y+ce/3,ht=Je,Ft=rt;qt.B(ce,0)?Ft=0<se?Ft-ge:Ft+ge:(xe=-se/ce,Ae=Math.sqrt(ge*ge/(xe*xe+1)),0>ge&&(Ae=-Ae),ht=(0>ce?-1:1)*Ae+Je,Ft=xe*(ht-Je)+rt),Je=te.x+2*se/3,rt=te.y+2*ce/3;var Ot=Je,_t=rt;qt.B(ce,0)?_t=0<se?_t-ge:_t+ge:(Ot=(0>ce?-1:1)*Ae+Je,_t=xe*(Ot-Je)+rt),this.Fj(),this.ne(te),this.yf(ht,Ft),this.yf(Ot,_t),this.ne(Ue),this.dd(0,this.getLinkPoint(a,y,ne,!0,!1,b,E)),this.dd(3,this.getLinkPoint(b,E,x,!1,!1,a,y))}else te=b,Ue=E,b=this.getLinkPoint(a,y,ne,!0,!1,te,Ue),E=this.getLinkPoint(te,Ue,x,!1,!1,a,y),this.hasCurviness()?(Ue=E.x-b.x,x=E.y-b.y,ne=this.computeCurviness(),a=b.x+Ue/2,y=b.y+x/2,te=a,se=y,qt.B(x,0)?se=0<Ue?se-ne:se+ne:(Ue=-Ue/x,te=Math.sqrt(ne*ne/(Ue*Ue+1)),0>ne&&(te=-te),te=(0>x?-1:1)*te+a,se=Ue*(te-a)+y),this.ne(b),this.yf(te,se),this.ne(E)):(this.ne(b),this.ne(E),se=wn.alloc(),y.mi(se),ce=se.ca(E),Ue.mi(se),ge=se.ca(b),(ce||ge)&&(ne=y.ga(Vm(ne),new Nt),this.dd(0,this.getLinkPointFromPoint(a,y,ne,E,!0,ne)),x=Ue.ga(Vm(x),new Nt),this.dd(1,this.getLinkPointFromPoint(te,Ue,x,b,!1,x))),wn.free(se))}else{Ae=this.isAvoiding,Ue&&(xe&&Ae||ge)&&this.Fj();var Gt=ge?this.computeCurviness():0;Ae=this.getLinkPoint(a,y,ne,!0,xe,b,E),Je=ht=rt=0,(xe||!se||ge)&&(Ft=this.computeEndSegmentLength(a,y,ne,!0),Je=this.getLinkDirection(a,y,Ae,ne,!0,xe,b,E),ge&&(se||ne.D(x)||!xe&&ne.x+x.x===1&&ne.y+x.y===1)&&(Je-=xe?90:30,0>Gt&&(Je-=180)),0>Je?Je+=360:360<=Je&&(Je-=360),ge&&(Ft+=Math.abs(Gt)*(xe?1:2)),Je===0?rt=Ft:Je===90?ht=Ft:Je===180?rt=-Ft:Je===270?ht=-Ft:(rt=Ft*Math.cos(Je*Math.PI/180),ht=Ft*Math.sin(Je*Math.PI/180)),ne.Mc()&&ge&&(Ft=y.ga(ui,Nt.alloc()),Ot=Nt.allocAt(Ft.x+1e3*rt,Ft.y+1e3*ht),this.getLinkPointFromPoint(a,y,Ft,Ot,!0,Ae),Nt.free(Ft),Nt.free(Ot))),Ft=this.getLinkPoint(b,E,x,!1,xe,a,y);var Kt=_t=Ot=0;if(xe||!ce||ge){var Yt=this.computeEndSegmentLength(b,E,x,!1);Kt=this.getLinkDirection(b,E,Ft,x,!1,xe,a,y),ge&&(ce||ne.D(x)||!xe&&ne.x+x.x===1&&ne.y+x.y===1)&&(Kt+=xe?0:30,0>Gt&&(Kt+=180)),0>Kt?Kt+=360:360<=Kt&&(Kt-=360),ge&&(Yt+=Math.abs(Gt)*(xe?1:2)),Kt===0?Ot=Yt:Kt===90?_t=Yt:Kt===180?Ot=-Yt:Kt===270?_t=-Yt:(Ot=Yt*Math.cos(Kt*Math.PI/180),_t=Yt*Math.sin(Kt*Math.PI/180)),x.Mc()&&ge&&(x=E.ga(ui,Nt.alloc()),ne=Nt.allocAt(x.x+1e3*Ot,x.y+1e3*_t),this.getLinkPointFromPoint(b,E,x,ne,!1,Ft),Nt.free(x),Nt.free(ne))}x=Ae,(xe||!se||ge)&&(x=new Nt(Ae.x+rt,Ae.y+ht)),ne=Ft,(xe||!ce||ge)&&(ne=new Nt(Ft.x+Ot,Ft.y+_t)),!Ue&&!xe&&se&&3<te&&this.adjustPoints(0,Ae,te-2,ne)?this.dd(te-1,Ft):!Ue&&!xe&&ce&&3<te&&this.adjustPoints(1,x,te-1,Ft)?this.dd(0,Ae):!Ue&&(xe?6<=te:4<te)&&this.adjustPoints(1,x,te-2,ne)?(this.dd(0,Ae),this.dd(te-1,Ft)):(this.Fj(),this.ne(Ae),(xe||!se||ge)&&this.ne(x),xe&&this.addOrthoPoints(x,Je,ne,Kt,a,b),(xe||!ce||ge)&&this.ne(ne),this.ne(Ft))}return!0};function Z0(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}Hn.prototype.getLinkPointFromPoint=function(a,y,x,b,E,te){if(te===void 0&&(te=new Nt),a===null||y===null)return te.assign(x),te;if(a.isVisible()||(E=a.findVisibleNode(),E!==null&&E!==a&&(y=E.port)),a=null,E=y.panel,E===null||E.se()||(E=E.panel),E===null){E=b.x,b=b.y;var ne=x.x;x=x.y}else{a=E.oe,E=1/(a.m11*a.m22-a.m12*a.m21),ne=a.m22*E;var se=-a.m12*E,ce=-a.m21*E,ge=a.m11*E,xe=E*(a.m21*a.dy-a.m22*a.dx),Ae=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*ne+b.y*ce+xe,b=b.x*se+b.y*ge+Ae,ne=x.x*ne+x.y*ce+xe,x=x.x*se+x.y*ge+Ae}return y.Sj(E,b,ne,x,te),a!==null&&te.transform(a),te};function Km(a,y){var x=y.Zn;return x===null&&(x=new wd,x.port=y,x.node=y.part,y.Zn=x),lS(x,a)}Hn.prototype.getLinkPoint=function(a,y,x,b,E,te,ne,se){if(se===void 0&&(se=new Nt),x.sb()&&!Tf(x))return y.ga(x,se),se;if(x.$c()){var ce=Km(this,y);if(ce!==null){if(se.assign(ce.Zo),E&&this.routing===nS){var ge=Km(this,ne);if(ge!==null&&ce.Gl<ge.Gl){ce=Nt.alloc(),ge=Nt.alloc();var xe=new wn(y.ga(Ao,ce),y.ga(Qa,ge)),Ae=this.computeSpot(!b,ne);a=this.getLinkPoint(te,ne,Ae,!b,E,a,y,ge),(x.Hf(iu)||x.Hf(qa))&&a.y>=xe.y&&a.y<=xe.y+xe.height?se.y=a.y:(x.Hf(Fl)||x.Hf(xs))&&a.x>=xe.x&&a.x<=xe.x+xe.width&&(se.x=a.x),Nt.free(ce),Nt.free(ge)}}return se}}return x=y.ga(Vm(x),Nt.alloc()),this.pointsCount>(E?6:2)?(ne=b?this.i(1):this.i(this.pointsCount-2),E&&(ne=Z0(x,ne.copy()))):(ce=this.computeSpot(!b,ne),te=Nt.alloc(),ne=ne.ga(Vm(ce),te),E&&(ne=Z0(x,ne)),Nt.free(te)),this.getLinkPointFromPoint(a,y,x,ne,b,se),Nt.free(x),se},Hn.prototype.getLinkDirection=function(a,y,x,b,E,te,ne,se){e:if(b.sb())var ce=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()&&(ce=Km(this,y),ce!==null))switch(ce.Nc){case 1:ce=270;break e;case 2:ce=180;break e;default:case 4:ce=0;break e;case 8:ce=90;break e}ce=y.ga(ui,Nt.alloc()),this.pointsCount>(te?6:2)?(se=E?this.i(1):this.i(this.pointsCount-2),se=te?Z0(ce,se.copy()):x):(x=Nt.alloc(),se=se.ga(ui,x),Nt.free(x)),x=Math.abs(se.x-ce.x)>Math.abs(se.y-ce.y)?se.x>=ce.x?0:180:se.y>=ce.y?90:270,Nt.free(ce),ce=x}return b.Mc()&&ne.Td(a)&&(ce+=180,360<=ce&&(ce-=360)),Tf(b)||(a=y.li(),a===0)||(45<=a&&135>a?ce+=90:135<=a&&225>a?ce+=180:225<=a&&315>a&&(ce+=270),360<=ce&&(ce-=360)),ce},Hn.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=Km(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)},Hn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=ui:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===wi?io:y)):(a=y||this.toPort,a===null?a=ui:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===wi?io:y)),a};function Tf(a){return a===io||a.x===.5&&a.y===.5}function Vm(a){return a.x===.5&&a.y===.5?a:ui}Hn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==ka&&4<this.pointsCount?this.computeMidPoint(new Nt):(a=y.Zn,a=a!==null?lS(a,this):null,a!==null?a.Zo:y.ga(ui))},Hn.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},Hn.prototype.Cf=function(a,y,x,b,E,te){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var ne=te;if(te===void 0&&(ne=Wr.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return v0(this,y,x,E),te===void 0&&Wr.free(ne),!0;if(this.Yc(a,ne)){var se=!1;if(!this.isAtomic)for(var ce=this.O.s,ge=ce.length;ge--;){var xe=ce[ge];if(xe.visible||xe===this.locationObject){var Ae=xe.actualBounds,Ue=this.naturalBounds;if(!(Ae.x>Ue.width||Ae.y>Ue.height||0>Ae.x+Ae.width||0>Ae.y+Ae.height)){if(Ae=Wr.alloc(),Ae.set(ne),xe instanceof Rn)se=xe.Cf(a,y,x,b,E,Ae);else if(this.path===xe){if(xe instanceof _r)if(se=a,Ue=b,xe.pickable===!1)se=!1;else if(Ae.multiply(xe.transform),Ue)e:{var Je=se,rt=Ae;if(xe.fh(Je,rt))se=!0;else{if(rt===void 0&&(rt=xe.transform,Je.Re(xe.actualBounds))){se=!0;break e}se=Je.left,Ue=Je.right;var ht=Je.top;Je=Je.bottom;var Ft=Nt.alloc(),Ot=Nt.alloc(),_t=Nt.alloc(),Gt=Wr.alloc();Gt.set(rt),Gt.bv(xe.transform),Gt.Vj(),Ot.x=Ue,Ot.y=ht,Ot.transform(Gt),Ft.x=se,Ft.y=ht,Ft.transform(Gt),rt=!1,Oh(xe,Ft,Ot,_t)?rt=!0:(Ft.x=Ue,Ft.y=Je,Ft.transform(Gt),Oh(xe,Ft,Ot,_t)?rt=!0:(Ot.x=se,Ot.y=Je,Ot.transform(Gt),Oh(xe,Ft,Ot,_t)?rt=!0:(Ft.x=se,Ft.y=ht,Ft.transform(Gt),Oh(xe,Ft,Ot,_t)&&(rt=!0)))),Wr.free(Gt),Nt.free(Ft),Nt.free(Ot),Nt.free(_t),se=rt}}else se=xe.fh(se,Ae)}else se=Do(xe,a,b,Ae);se&&(Ue=xe,y!==null&&(Ue=y(xe)),Ue&&(x===null||x(Ue))&&E.add(Ue)),Wr.free(Ae)}}}return te===void 0&&Wr.free(ne),se||this.background!==null||this.areaBackground!==null}return te===void 0&&Wr.free(ne),!1},Hn.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?ms:this.curve},Hn.prototype.computeCorner=function(){if(this.curve===ms)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Hn.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if(E!==a&&!E.isPanelMain&&(E.segmentIndex===-1/0||isNaN(E.segmentIndex)))return E}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},Hn.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=iS;a=Math.max(a,this.computeThickness());var y=this.fromPort,x=this.toPort;if(y!==null&&x!==null){var b=this.findMidLabel();if(b!==null){var E=b.naturalBounds,te=b.margin,ne=isNaN(E.width)?30:E.width*b.scale+te.left+te.right;E=isNaN(E.height)?14:E.height*b.scale+te.top+te.bottom,b=b.segmentOrientation,b===Jp||b===Jm||b===Q0?a=Math.max(a,E):b===qp||b===tg||b===Qp||b===eg?a=Math.max(a,ne):(y=y.ga(ui).ab(x.ga(ui))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ne)+Math.abs(Math.cos(y)*E)+1)),this.curve===ms&&(a*=1.333)}}return a},Hn.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===ka&&x.bb()}},Hn.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=rS;var y=this.Sf;if(y!==null){for(var x=cn(),b=0,E=y.links,te=0;te<E.length;te++){var ne=E[te].computeSpacing();x.push(ne),b+=ne}for(b=-b/2,te=0;te<E.length;te++){if(E[te]===this){a=b+x[te]/2;break}b+=x[te]}y.Ds===this.fromNode&&(a=-a),Pn(x)}}return a},Hn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Hn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Hn.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===Xm)return!1;E===Ym&&(E=Yp)}switch(E){case Xm:var te=this.i(a),ne=this.i(x);if(!te.Xa(y)||!ne.Xa(b)){E=te.x,te=te.y;var se=ne.x-E,ce=ne.y-te,ge=Math.sqrt(se*se+ce*ce);if(!qt.$(ge,0)){if(qt.$(se,0))var xe=0>ce?-Math.PI/2:Math.PI/2;else xe=Math.atan(ce/Math.abs(se)),0>se&&(xe=Math.PI-xe);ne=y.x;var Ae=y.y;se=b.x-ne;var Ue=b.y-Ae;for(ce=Math.sqrt(se*se+Ue*Ue),qt.$(se,0)?Ue=0>Ue?-Math.PI/2:Math.PI/2:(Ue=Math.atan(Ue/Math.abs(se)),0>se&&(Ue=Math.PI-Ue)),ge=ce/ge,xe=Ue-xe,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),se=y.x-E,ce=y.y-te,y=Math.sqrt(se*se+ce*ce),qt.$(y,0)||(qt.$(se,0)?ce=0>ce?-Math.PI/2:Math.PI/2:(ce=Math.atan(ce/Math.abs(se)),0>se&&(ce=Math.PI-ce)),se=ce+xe,y*=ge,this.L(a,ne+y*Math.cos(se),Ae+y*Math.sin(se)));this.dd(x,b)}}return!0;case Ym:if(te=this.i(a),Ae=this.i(x),!te.Xa(y)||!Ae.Xa(b)){E=te.x,te=te.y,ne=Ae.x,Ae=Ae.y,ge=(ne-E)*(ne-E)+(Ae-te)*(Ae-te),se=y.x,xe=y.y,ce=b.x,Ue=b.y;var Je=1;if(ce-se!==0){var rt=(Ue-xe)/(ce-se);Je=Math.sqrt(1+1/(rt*rt))}else rt=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var ht=y.x,Ft=y.y,Ot=.5;ge!==0&&(Ot=((E-ht)*(E-ne)+(te-Ft)*(te-Ae))/ge);var _t=E+Ot*(ne-E),Gt=te+Ot*(Ae-te);y=Math.sqrt((ht-_t)*(ht-_t)+(Ft-Gt)*(Ft-Gt)),Ft<rt*(ht-_t)+Gt&&(y=-y),0<rt&&(y=-y),ht=se+Ot*(ce-se),Ot=xe+Ot*(Ue-xe),rt!==0?(y=ht+y/Je,this.L(a,y,Ot-(y-ht)/rt)):this.L(a,ht,Ot+y)}this.dd(x,b)}return!0;case Yp:e:{if(this.isOrthogonal&&(E=this.i(a),te=this.i(a+1),ne=this.i(a+2),se=te.x,xe=te.y,Ae=se,ge=xe,qt.B(E.y,te.y)?qt.B(te.x,ne.x)?xe=y.y:qt.B(te.y,ne.y)&&(se=y.x):qt.B(E.x,te.x)&&(qt.B(te.y,ne.y)?se=y.x:qt.B(te.x,ne.x)&&(xe=y.y)),this.L(a+1,se,xe),E=this.i(x),te=this.i(x-1),ne=this.i(x-2),se=te.x,xe=te.y,ce=se,Ue=xe,qt.B(E.y,te.y)?qt.B(te.x,ne.x)?xe=b.y:qt.B(te.y,ne.y)&&(se=b.x):qt.B(E.x,te.x)&&(qt.B(te.y,ne.y)?se=b.x:qt.B(te.x,ne.x)&&(xe=b.y)),this.L(x-1,se,xe),$0(this))){this.L(a+1,Ae,ge),this.L(x-1,ce,Ue),x=!1;break e}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},Hn.prototype.addOrthoPoints=function(a,y,x,b,E,te){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 se=E.actualBounds.copy(),ce=te.actualBounds.copy();if(se.w()&&ce.w()){se.Bc(ng,ng),ce.Bc(ng,ng),se.Ye(a),ce.Ye(x);var ge=Nt.alloc(),xe=Nt.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&ce.right>a.x||b===90&&x.y>a.y&&ce.right>a.x?(ge.h(x.x,a.y),xe.h(x.x,(a.y+x.y)/2),b===180?(ge.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),xe.x=ge.x,xe.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ge.x=a.x<ce.left?this.computeMidOrthoPosition(a.x,a.y,ce.left,x.y,!1):a.x<ce.right&&(b===270&&a.y<ce.top||b===90&&a.y>ce.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):ce.right,xe.x=ge.x,xe.y=x.y):b===0&&a.x<ce.left&&a.y>ce.top&&a.y<ce.bottom&&(ge.x=a.x,ge.y=a.y<x.y?Math.min(x.y,ce.top):Math.max(x.y,ce.bottom),xe.y=ge.y)):(ge.h(a.x,x.y),xe.h((a.x+x.x)/2,x.y),(b===180||b===90&&x.y<se.top||b===270&&x.y>se.bottom)&&(b===180&&(ce.ca(a)||se.ca(x))?ge.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?ge.y=this.computeMidOrthoPosition(a.x,se.top,x.x,Math.max(x.y,ce.bottom),!0):x.y>a.y&&(b===180||b===270)&&(ge.y=this.computeMidOrthoPosition(a.x,se.bottom,x.x,Math.min(x.y,ce.top),!0)),xe.x=x.x,xe.y=ge.y),ge.y>se.top&&ge.y<se.bottom&&(x.x>=se.left&&x.x<=a.x||a.x<=ce.right&&a.x>=x.x?(b===90||b===270)&&(ge.h(Math.max((a.x+x.x)/2,a.x),a.y),xe.h(ge.x,x.y)):(ge.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===0?se.top:Math.min(se.top,ce.top)):Math.max(x.y,b===0?se.bottom:Math.max(se.bottom,ce.bottom)),xe.x=x.x,xe.y=ge.y))):y===180?x.x<a.x||b===270&&x.y<a.y&&ce.left<a.x||b===90&&x.y>a.y&&ce.left<a.x?(ge.h(x.x,a.y),xe.h(x.x,(a.y+x.y)/2),b===0?(ge.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),xe.x=ge.x,xe.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ge.x=a.x>ce.right?this.computeMidOrthoPosition(a.x,a.y,ce.right,x.y,!1):a.x>ce.left&&(b===270&&a.y<ce.top||b===90&&a.y>ce.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):ce.left,xe.x=ge.x,xe.y=x.y):b===180&&a.x>ce.right&&a.y>ce.top&&a.y<ce.bottom&&(ge.x=a.x,ge.y=a.y<x.y?Math.min(x.y,ce.top):Math.max(x.y,ce.bottom),xe.y=ge.y)):(ge.h(a.x,x.y),xe.h((a.x+x.x)/2,x.y),(b===0||b===90&&x.y<se.top||b===270&&x.y>se.bottom)&&(b===0&&(ce.ca(a)||se.ca(x))?ge.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?ge.y=this.computeMidOrthoPosition(a.x,se.top,x.x,Math.max(x.y,ce.bottom),!0):x.y>a.y&&(b===0||b===270)&&(ge.y=this.computeMidOrthoPosition(a.x,se.bottom,x.x,Math.min(x.y,ce.top),!0)),xe.x=x.x,xe.y=ge.y),ge.y>se.top&&ge.y<se.bottom&&(x.x<=se.right&&x.x>=a.x||a.x>=ce.left&&a.x<=x.x?(b===90||b===270)&&(ge.h(Math.min((a.x+x.x)/2,a.x),a.y),xe.h(ge.x,x.y)):(ge.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===180?se.top:Math.min(se.top,ce.top)):Math.max(x.y,b===180?se.bottom:Math.max(se.bottom,ce.bottom)),xe.x=x.x,xe.y=ge.y))):y===90?x.y>a.y||b===180&&x.x<a.x&&ce.bottom>a.y||b===0&&x.x>a.x&&ce.bottom>a.y?(ge.h(a.x,x.y),xe.h((a.x+x.x)/2,x.y),b===270?(ge.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),xe.x=x.x,xe.y=ge.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(ge.y=a.y<ce.top?this.computeMidOrthoPosition(a.x,a.y,x.x,ce.top,!0):a.y<ce.bottom&&(b===180&&a.x<ce.left||b===0&&a.x>ce.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):ce.bottom,xe.x=x.x,xe.y=ge.y):b===90&&a.y<ce.top&&a.x>ce.left&&a.x<ce.right&&(ge.x=a.x<x.x?Math.min(x.x,ce.left):Math.max(x.x,ce.right),ge.y=a.y,xe.x=ge.x)):(ge.h(x.x,a.y),xe.h(x.x,(a.y+x.y)/2),(b===270||b===0&&x.x<se.left||b===180&&x.x>se.right)&&(b===270&&(ce.ca(a)||se.ca(x))?ge.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?ge.x=this.computeMidOrthoPosition(se.left,a.y,Math.max(x.x,ce.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(ge.x=this.computeMidOrthoPosition(se.right,a.y,Math.min(x.x,ce.left),x.y,!1)),xe.x=ge.x,xe.y=x.y),ge.x>se.left&&ge.x<se.right&&(x.y>=se.top&&x.y<=a.y||a.y<=ce.bottom&&a.y>=x.y?(b===0||b===180)&&(ge.h(a.x,Math.max((a.y+x.y)/2,a.y)),xe.h(x.x,ge.y)):(ge.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===90?se.left:Math.min(se.left,ce.left)):Math.max(x.x,b===90?se.right:Math.max(se.right,ce.right)),xe.x=ge.x,xe.y=x.y))):x.y<a.y||b===180&&x.x<a.x&&ce.top<a.y||b===0&&x.x>a.x&&ce.top<a.y?(ge.h(a.x,x.y),xe.h((a.x+x.x)/2,x.y),b===90?(ge.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),xe.x=x.x,xe.y=ge.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(ge.y=a.y>ce.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,ce.bottom,!0):a.y>ce.top&&(b===180&&a.x<ce.left||b===0&&a.x>ce.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):ce.top,xe.x=x.x,xe.y=ge.y):b===270&&a.y>ce.bottom&&a.x>ce.left&&a.x<ce.right&&(ge.x=a.x<x.x?Math.min(x.x,ce.left):Math.max(x.x,ce.right),ge.y=a.y,xe.x=ge.x)):(ge.h(x.x,a.y),xe.h(x.x,(a.y+x.y)/2),(b===90||b===0&&x.x<se.left||b===180&&x.x>se.right)&&(b===90&&(ce.ca(a)||se.ca(x))?ge.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?ge.x=this.computeMidOrthoPosition(se.left,a.y,Math.max(x.x,ce.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(ge.x=this.computeMidOrthoPosition(se.right,a.y,Math.min(x.x,ce.left),x.y,!1)),xe.x=ge.x,xe.y=x.y),ge.x>se.left&&ge.x<se.right&&(x.y<=se.bottom&&x.y>=a.y||a.y>=ce.top&&a.y<=x.y?(b===0||b===180)&&(ge.h(a.x,Math.min((a.y+x.y)/2,a.y)),xe.h(x.x,ge.y)):(ge.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===270?se.left:Math.min(se.left,ce.left)):Math.max(x.x,b===270?se.right:Math.max(se.right,ce.right)),xe.x=ge.x,xe.y=x.y)));var Ae=x;if(this.isAvoiding){var Ue=this.diagram;if(Ue===null||E===te||this.layer.isTemporary||!sf(Ue)||se.ca(Ae)&&!te.Td(E)||ce.ca(a)&&!E.Td(te))y=!1;else{var Je=lf(Ue,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Je.Yj(Math.min(a.x,ge.x),Math.min(a.y,ge.y),Math.abs(a.x-ge.x),Math.abs(a.y-ge.y))&&Je.Yj(Math.min(ge.x,xe.x),Math.min(ge.y,xe.y),Math.abs(ge.x-xe.x),Math.abs(ge.y-xe.y))&&Je.Yj(Math.min(xe.x,Ae.x),Math.min(xe.y,Ae.y),Math.abs(xe.x-Ae.x),Math.abs(xe.y-Ae.y)))y=!1;else{E=a,te=Ae;var rt=x=null;if(Ue.isVirtualized){Ue=Je.bounds.copy(),Ue.Bc(-Je.Ho,-Je.Go);var ht=Nt.alloc();kf(Je,a.x,a.y)||(qt.Ff(Ue.x,Ue.y,Ue.x+Ue.width,Ue.y+Ue.height,a.x,a.y,ge.x,ge.y,ht)?(x=a=ht.copy(),y=ht.ab(ge)):qt.Ff(Ue.x,Ue.y,Ue.x+Ue.width,Ue.y+Ue.height,ge.x,ge.y,xe.x,xe.y,ht)?(x=a=ht.copy(),y=ht.ab(xe)):qt.Ff(Ue.x,Ue.y,Ue.x+Ue.width,Ue.y+Ue.height,xe.x,xe.y,Ae.x,Ae.y,ht)&&(x=a=ht.copy(),y=ht.ab(Ae))),kf(Je,Ae.x,Ae.y)||(qt.Ff(Ue.x,Ue.y,Ue.x+Ue.width,Ue.y+Ue.height,Ae.x,Ae.y,xe.x,xe.y,ht)?(rt=Ae=ht.copy(),b=xe.ab(ht)):qt.Ff(Ue.x,Ue.y,Ue.x+Ue.width,Ue.y+Ue.height,xe.x,xe.y,ge.x,ge.y,ht)?(rt=Ae=ht.copy(),b=ge.ab(ht)):qt.Ff(Ue.x,Ue.y,Ue.x+Ue.width,Ue.y+Ue.height,ge.x,ge.y,a.x,a.y,ht)&&(rt=Ae=ht.copy(),b=a.ab(ht))),Nt.free(ht)}se=se.copy().ed(ce),se.Bc(Je.Ho*Je.Os,Je.Go*Je.Os),aS(Je,a,y,Ae,b,se,!0),ce=$l(Je,Ae.x,Ae.y),!Je.abort&&ce>=Of&&(oS(Je),se.Bc(Je.Ho*Je.Hx,Je.Go*Je.Ix),aS(Je,a,y,Ae,b,se,!1),ce=$l(Je,Ae.x,Ae.y)),!Je.abort&&ce<Of&&$l(Je,Ae.x,Ae.y)!==Qu?(X0(this,Je,Ae.x,Ae.y,b,!0,ne),se=this.i(2),4>this.pointsCount?(y===0||y===180?(se.x=a.x,se.y=Ae.y):(se.x=Ae.x,se.y=a.y),this.L(2,se.x,se.y),this.m(3,se.x,se.y)):(ne=this.i(3),y===0||y===180?qt.B(se.x,ne.x)?(se=y===0?Math.max(se.x,a.x):Math.min(se.x,a.x),this.L(2,se,a.y),this.L(3,se,ne.y)):qt.B(se.y,ne.y)?(Math.abs(a.y-se.y)<=Je.Go/2&&(this.L(2,se.x,a.y),this.L(3,ne.x,a.y)),this.m(2,se.x,a.y)):this.L(2,a.x,se.y):(y===90||y===270)&&(qt.B(se.y,ne.y)?(se=y===90?Math.max(se.y,a.y):Math.min(se.y,a.y),this.L(2,a.x,se),this.L(3,ne.x,se)):qt.B(se.x,ne.x)?(Math.abs(a.x-se.x)<=Je.Ho/2&&(this.L(2,a.x,se.y),this.L(3,a.x,ne.y)),this.m(2,a.x,se.y)):this.L(2,se.x,a.y))),x!==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,E.x,x.y):this.m(2,x.x,E.y)),rt!==null&&(b===0||b===180?this.yf(te.x,rt.y):this.yf(rt.x,te.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(ge.copy()),this.ne(xe.copy())),Nt.free(ge),Nt.free(xe)}},Hn.prototype.computeMidOrthoPosition=function(a,y,x,b,E){var te=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(te=this.computeCurviness()),E?(y+b)/2+te:(a+x)/2+te};function $0(a){if(a.diagram===null||!a.isAvoiding||!sf(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=lf(a.diagram,!0,a.containingGroup,null);for(var b=1;b<x-2;b++){var E=y[b],te=y[b+1];if(!a.Yj(Math.min(E.x,te.x),Math.min(E.y,te.y),Math.abs(E.x-te.x),Math.abs(E.y-te.y)))return!0}return!1}function X0(a,y,x,b,E,te,ne){var se=y.Ho,ce=y.Go,ge=$l(y,x,b),xe=x,Ae=b;for(E===0?xe+=se:E===90?Ae+=ce:E===180?xe-=se:Ae-=ce,E!==ne&&ge>jh&&$l(y,xe,Ae)!==ge-1&&($l(y,x-se,b)===ge-1?(E=180,xe=x-se,Ae=b):$l(y,x+se,b)===ge-1?(E=0,xe=x+se,Ae=b):$l(y,x,b-ce)===ge-1?(E=270,xe=x,Ae=b-ce):$l(y,x,b+ce)===ge-1&&(E=90,xe=x,Ae=b+ce));ge>jh&&$l(y,xe,Ae)===ge-1;)x=xe,b=Ae,E===0?xe+=se:E===90?Ae+=ce:E===180?xe-=se:Ae-=ce,--ge;te?ge>jh&&(E===180||E===0?x=Math.floor(x/se)*se+se/2:(E===90||E===270)&&(b=Math.floor(b/ce)*ce+ce/2)):(x=Math.floor(x/se)*se+se/2,b=Math.floor(b/ce)*ce+ce/2),ge>jh&&(te=E,ne=x,xe=b,E===0?(te=90,xe+=ce):E===90?(te=180,ne-=se):E===180?(te=270,xe-=ce):E===270&&(te=0,ne+=se),$l(y,ne,xe)===ge-1?X0(a,y,ne,xe,te,!1,te):(ne=x,xe=b,E===0?(te=270,xe-=ce):E===90?(te=0,ne+=se):E===180?(te=90,xe+=ce):E===270&&(te=180,ne-=se),$l(y,ne,xe)===ge-1&&X0(a,y,ne,xe,te,!1,te))),a.yf(x,b)}Hn.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=Mi(y,a,x.x,x.y,b.x,b.y),te=0,ne=1;ne<this.pointsCount-1;ne++){x=this.i(ne+1);var se=Mi(y,a,b.x,b.y,x.x,x.y);b=x,se<E&&(te=ne,E=se)}return te},Hn.prototype.qc=function(){this.lk=!1,this.v()},Hn.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,x=y.length,b=0;b<x;b++){var E=y[b];E!==a&&E.isPanelMain&&E instanceof _r&&(E.ua=this.ua)}}},Hn.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&Nh(this)&&b.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(b.animationManager.isAnimating||b.currentTool!==b.toolManager)&&(x=!0);var E=this.i(0).copy(),te=E.copy();b=this.Nb.s;var ne=this.computeCurve();if(ne===ms&&3<=y&&!qt.$(this.smoothness,0))if(y===3){var se=this.i(1);b=Math.min(E.x,se.x);var ce=Math.min(E.y,se.y);se=this.i(2),b=Math.min(b,se.x),ce=Math.min(ce,se.y)}else{if(this.isOrthogonal)for(ce=0;ce<y;ce++)se=b[ce],te.x=Math.min(se.x,te.x),te.y=Math.min(se.y,te.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),ce=this.i(b),te.x=Math.min(ce.x,te.x),te.y=Math.min(ce.y,te.y);b=te.x,ce=te.y}else{for(ce=0;ce<y;ce++)se=b[ce],te.x=Math.min(se.x,te.x),te.y=Math.min(se.y,te.y);b=te.x,ce=te.y}if(b-=this.su.x,ce-=this.su.y,E.x-=b,E.y-=ce,y!==2||Nh(this)){if(a.type=Un.o,se=A1(a),this.computeShortLength(!0)!==0&&(E=vd(this,E,!0,te)),Ef(se,E.x,E.y,!1),ne===ms&&3<=y&&!qt.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-ce,E=this.i(2).copy(),E.x-=b,E.y-=ce,this.computeShortLength(!1)!==0&&(E=vd(this,E,!1,te)),Zu(se,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=Nt.allocAt(b,ce),x=Nt.alloc(),x.assign(this.i(1)),te=Nt.allocAt(b,ce),E=Nt.allocAt(b,ce),ne=this.i(0);for(var ge,xe=this.smoothness/3,Ae=1;Ae<this.pointsCount-1;Ae++){ge=this.i(Ae);var Ue=ne,Je=ge,rt=this.i(Y0(this,ge,Ae,!1));if((!qt.$(Ue.x,Je.x)||!qt.$(Je.x,rt.x))&&(!qt.$(Ue.y,Je.y)||!qt.$(Je.y,rt.y))){var ht=xe;isNaN(ht)&&(ht=this.smoothness/3);var Ft=Ue.x;Ue=Ue.y;var Ot=Je.x;Je=Je.y;var _t=rt.x;rt=rt.y;var Gt=ht*Zm(Ft,Ue,Ot,Je);ht*=Zm(Ot,Je,_t,rt),qt.$(Ue,Je)&&qt.$(Ot,_t)&&(Ot>Ft?rt>Je?(te.x=Ot-Gt,te.y=Je-Gt,E.x=Ot+ht,E.y=Je+ht):(te.x=Ot-Gt,te.y=Je+Gt,E.x=Ot+ht,E.y=Je-ht):rt>Je?(te.x=Ot+Gt,te.y=Je-Gt,E.x=Ot-ht,E.y=Je+ht):(te.x=Ot+Gt,te.y=Je+Gt,E.x=Ot-ht,E.y=Je-ht)),qt.$(Ft,Ot)&&qt.$(Je,rt)&&(Je>Ue?(_t>Ot?(te.x=Ot-Gt,te.y=Je-Gt,E.x=Ot+ht):(te.x=Ot+Gt,te.y=Je-Gt,E.x=Ot-ht),E.y=Je+ht):(_t>Ot?(te.x=Ot-Gt,te.y=Je+Gt,E.x=Ot+ht):(te.x=Ot+Gt,te.y=Je+Gt,E.x=Ot-ht),E.y=Je-ht)),(qt.$(Ft,Ot)&&qt.$(Ot,_t)||qt.$(Ue,Je)&&qt.$(Je,rt))&&(Ft=.5*(Ft+_t),Ue=.5*(Ue+rt),te.x=Ft,te.y=Ue,E.x=Ft,E.y=Ue),(Ae===1||Ae===2&&qt.$(ne.x,this.i(0).x)&&qt.$(ne.y,this.i(0).y))&&(x.x=.5*(ne.x+ge.x),x.y=.5*(ne.y+ge.y)),Zu(se,x.x-b,x.y-ce,te.x-b,te.y-ce,ge.x-b,ge.y-ce),y.set(te),x.set(E),ne=ge}}ge=ne.x,ne=ne.y,xe=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(xe=vd(this,xe.copy(),!1,ni)),ge=.5*(ge+xe.x),ne=.5*(ne+xe.y),Zu(se,E.x-b,E.y-ce,ge-b,ne-ce,xe.x-b,xe.y-ce),Nt.free(y),Nt.free(x),Nt.free(te),Nt.free(E)}else for(x=3;x<y;x+=3)te=this.i(x-2),x+3>=y&&(x=y-1),E=this.i(x-1),ne=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(ne=vd(this,ne.copy(),!1,ni)),Zu(se,te.x-b,te.y-ce,E.x-b,E.y-ce,ne.x-b,ne.y-ce);else{for(te=Nt.alloc(),te.assign(this.i(0)),E=Nt.alloc(),E.assign(te),ne=this.computeCorner(),Ae=1,ge=0;Ae<y;){if(Ae=Y0(this,te,Ae,1<Ae),xe=this.i(Ae),Ae>=y-1){if(!te.D(xe))this.computeShortLength(!1)!==0&&(xe=vd(this,xe.copy(),!1,ni)),yd(this,se,-b,-ce,te,xe,x);else if(ge===0)for(Ae=1;Ae<y;)E.assign(te),xe=this.i(Ae++),yd(this,se,-b,-ce,te,xe,x),te.assign(xe);break}if(ge=Y0(this,xe,Ae+1,Ae<y-3),Ae=-b,Ft=-ce,Ue=xe,Ot=this.i(ge),ht=x,qt.B(te.y,Ue.y)&&qt.B(Ue.x,Ot.x))if(rt=Math.min(ne,Math.abs(Ue.x-E.x)/2),rt=Gt=Math.min(rt,Math.abs(Ot.y-Ue.y)/2),qt.B(rt,0))yd(this,se,Ae,Ft,te,Ue,ht),te.assign(Ue);else{var Kt=Ue.x,Yt=Ue.y;Je=Kt,_t=Yt,Ue.x>te.x?Kt=Ue.x-rt:Kt=Ue.x+rt,Ot.y>Ue.y?_t=Ue.y+Gt:_t=Ue.y-Gt,Ot=Nt.allocAt(Kt,Yt),yd(this,se,Ae,Ft,te,Ot,ht),Nt.free(Ot),Bm(se,Ue.x+Ae,Ue.y+Ft,Je+Ae,_t+Ft),te.h(Je,_t)}else qt.B(te.x,Ue.x)&&qt.B(Ue.y,Ot.y)?(rt=Math.min(ne,Math.abs(Ue.y-E.y)/2),rt=Gt=Math.min(rt,Math.abs(Ot.x-Ue.x)/2),qt.B(Gt,0)?(yd(this,se,Ae,Ft,te,Ue,ht),te.assign(Ue)):(Kt=Ue.x,Yt=Ue.y,Je=Kt,_t=Yt,Ue.y>te.y?Yt=Ue.y-rt:Yt=Ue.y+rt,Ot.x>Ue.x?Je=Ue.x+Gt:Je=Ue.x-Gt,Ot=Nt.allocAt(Kt,Yt),yd(this,se,Ae,Ft,te,Ot,ht),Nt.free(Ot),Bm(se,Ue.x+Ae,Ue.y+Ft,Je+Ae,_t+Ft),te.h(Je,_t))):(yd(this,se,Ae,Ft,te,Ue,ht),te.assign(Ue));E.assign(xe),Ae=ge}Nt.free(te)}Rm=se}else se=this.i(1).copy(),se.x-=b,se.y-=ce,this.computeShortLength(!0)!==0&&(E=vd(this,E,!0,te)),this.computeShortLength(!1)!==0&&(se=vd(this,se,!1,te)),a.type=Un.j,a.startX=E.x,a.startY=E.y,a.endX=se.x,a.endY=se.y;return this.lk=!0,a};function Zm(a,y,x,b){return a=x-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),qt.$(a,0)?y:qt.$(y,0)?a:Math.sqrt(a*a+y*y)))}function vd(a,y,x,b){var E=a.pointsCount;if(2>E)return y;if(x){var te=a.i(1);if(x=te.x-b.x,te=te.y-b.y,b=Zm(y.x,y.y,x,te),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!0),a>E&&(a=E),E=a*(te-y.y)/b,y.x+=a*(x-y.x)/b,y.y+=E}else{if(te=a.i(E-2),x=te.x-b.x,te=te.y-b.y,b=Zm(y.x,y.y,x,te),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!1),a>E&&(a=E),E=a*(y.y-te)/b,y.x-=a*(y.x-x)/b,y.y-=E}return y}function Y0(a,y,x,b){for(var E=a.pointsCount,te=y;qt.$(y.x,te.x)&&qt.$(y.y,te.y);){if(x>=E)return E-1;te=a.i(x++)}if(!qt.$(y.x,te.x)&&!qt.$(y.y,te.y))return x-1;for(var ne=te;qt.$(y.x,te.x)&&qt.$(te.x,ne.x)&&(!b||(y.y>=te.y?te.y>=ne.y:te.y<=ne.y))||qt.$(y.y,te.y)&&qt.$(te.y,ne.y)&&(!b||(y.x>=te.x?te.x>=ne.x:te.x<=ne.x));){if(x>=E)return E-1;ne=a.i(x++)}return x-2}Hn.prototype.computeJumpLength=function(){return 10};function yd(a,y,x,b,E,te,ne){if(!ne&&Nh(a)){ne=a.computeJumpLength();var se=ne/2,ce=[],ge=0;if(a.isVisible()&&(ge=Mx(a,E,te,ce)),0<ge){if(qt.B(E.y,te.y))if(E.x<te.x)for(var xe=0;xe<ge;){var Ae=Math.max(E.x,Math.min(ce[xe++]-se,te.x-ne));y.lineTo(Ae+x,te.y+b);for(var Ue=Ae+x,Je=Math.min(Ae+ne,te.x);xe<ge&&(Ae=ce[xe],Ae<Je+ne);)xe++,Je=Math.min(Ae+se,te.x);Ae=te.y-ne+b,Je+=x;var rt=te.y+b;a.curve===Ju?Ef(y,Je,rt,!1):Zu(y,Ue,Ae,Je,Ae,Je,rt)}else for(--ge;0<=ge;){for(xe=Math.min(E.x,Math.max(ce[ge--]+se,te.x+ne)),y.lineTo(xe+x,te.y+b),Ue=xe+x,Ae=Math.max(xe-ne,te.x);0<=ge&&(xe=ce[ge],xe>Ae-ne);)ge--,Ae=Math.max(xe-se,te.x);xe=te.y-ne+b,Ae+=x,Je=te.y+b,a.curve===Ju?Ef(y,Ae,Je,!1):Zu(y,Ue,xe,Ae,xe,Ae,Je)}else if(qt.B(E.x,te.x))if(E.y<te.y)for(xe=0;xe<ge;){for(Ae=Math.max(E.y,Math.min(ce[xe++]-se,te.y-ne)),y.lineTo(te.x+x,Ae+b),Ue=Ae+b,Ae=Math.min(Ae+ne,te.y);xe<ge&&(Je=ce[xe],Je<Ae+ne);)xe++,Ae=Math.min(Je+se,te.y);Je=te.x-ne+x,rt=te.x+x,Ae+=b,a.curve===Ju?Ef(y,rt,Ae,!1):Zu(y,Je,Ue,Je,Ae,rt,Ae)}else for(--ge;0<=ge;){for(xe=Math.min(E.y,Math.max(ce[ge--]+se,te.y+ne)),y.lineTo(te.x+x,xe+b),Ue=xe+b,xe=Math.max(xe-ne,te.y);0<=ge&&(Ae=ce[ge],Ae>xe-ne);)ge--,xe=Math.max(Ae-se,te.y);Ae=te.x-ne+x,Je=te.x+x,xe+=b,a.curve===Ju?Ef(y,Je,xe,!1):Zu(y,Ae,Ue,Ae,xe,Je,xe)}}}y.lineTo(te.x+x,te.y+b)}function Mx(a,y,x,b){var E=a.diagram;if(E===null||y.D(x))return 0;for(E=E.layers;E.next();){var te=E.value;if(te!==null&&te.visible){te=te.Pa.s;for(var ne=te.length,se=0;se<ne;se++){var ce=te[se];if(ce instanceof Hn){if(ce===a)return 0<b.length&&b.sort(function(xe,Ae){return xe-Ae}),b.length;if(ce.isVisible()&&Nh(ce)){var ge=ce.routeBounds;ge.w()&&a.routeBounds.Yc(ge)&&!a.usesSamePort(ce)&&(ge=ce.path,ge!==null&&ge.Ed()&&Tx(y,x,b,ce))}}}}}return 0<b.length&&b.sort(function(xe,Ae){return xe-Ae}),b.length}function Tx(a,y,x,b){for(var E=qt.B(a.y,y.y),te=b.pointsCount,ne=b.i(0),se=Nt.alloc(),ce=1;ce<te;ce++){var ge=b.i(ce);if(ce<te-1){var xe=b.i(ce+1);if(ne.y===ge.y&&ge.y===xe.y){if(ge.x>ne.x&&xe.x>=ge.x||ge.x<ne.x&&xe.x<=ge.x)continue}else if(ne.x===ge.x&&ge.x===xe.x&&(ge.y>ne.y&&xe.y>=ge.y||ge.y<ne.y&&xe.y<=ge.y))continue}e:{xe=a.x;var Ae=a.y,Ue=y.x,Je=y.y,rt=ne.x;ne=ne.y;var ht=ge.x,Ft=ge.y;if(qt.B(xe,Ue)){if(!qt.B(Ae,Je)&&qt.B(ne,Ft)&&Math.min(Ae,Je)<ne&&Math.max(Ae,Je)>ne&&Math.min(rt,ht)<xe&&Math.max(rt,ht)>xe&&!qt.B(rt,ht)){se.x=xe,se.y=ne,xe=!0;break e}}else if(qt.B(Ae,Je)&&qt.B(rt,ht)&&Math.min(xe,Ue)<rt&&Math.max(xe,Ue)>rt&&Math.min(ne,Ft)<Ae&&Math.max(ne,Ft)>Ae&&!qt.B(ne,Ft)){se.x=rt,se.y=Ae,xe=!0;break e}se.x=0,se.y=0,xe=!1}xe&&(E?x.push(se.x):x.push(se.y)),ne=ge}Nt.free(se)}function Nh(a){return a=a.curve,a===Lf||a===Ju}function $m(a,y){(y||Nh(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()))}Hn.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var b=!1;for(x=x.layers;x.next();){var E=x.value;if(E.visible){if(E===y){b=!0;var te=!1;E=E.Pa.s;for(var ne=E.length,se=0;se<ne;se++){var ce=E[se];ce instanceof Hn&&(ce===this?te=!0:te&&tS(this,ce,a))}}else if(b)for(te=E.Pa.s,E=te.length,ne=0;ne<E;ne++)se=te[ne],se instanceof Hn&&tS(this,se,a)}}}}};function tS(a,y,x){if(y!==null&&y.lk&&y.fd&&Nh(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}Hn.prototype.usesSamePort=function(a){var y=this.pointsCount,x=a.pointsCount;if(0<y&&0<x){var b=this.i(0),E=a.i(0);if(b.Xa(E)||(y=this.i(y-1),a=a.i(x-1),y.Xa(a)||b.Xa(a)||y.Xa(E)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},Hn.prototype.isVisible=function(){if(!pr.prototype.isVisible.call(this))return!1;var a=this.containingGroup,y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this.fromNode,x!==null){if(this.isTreeLink&&y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(var b=x;b!==null;){if(b.labeledLink===this)return!0;b=b.containingGroup}if(x=x.findVisibleNode(),x===null||x===a)return!1}if(x=this.toNode,x!==null){if(this.isTreeLink&&!y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(y=x;y!==null;){if(y.labeledLink===this)return!0;y=y.containingGroup}if(y=x.findVisibleNode(),y===null||y===a)return!1}return!0},Hn.prototype.Zb=function(a){if(pr.prototype.Zb.call(this,a),a&&$m(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},Hn.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?Yp:this.qk};function $p(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var b=a.ff,E=a.vf,te=a=null,ne=y.jb.s,se=ne.length,ce=0;ce<se;ce++){var ge=ne[ce];(ge.ef===y&&ge.ff===b&&ge.uf===x&&ge.vf===E||ge.ef===x&&ge.ff===E&&ge.uf===y&&ge.vf===b)&&(te===null?te=ge:(a===null&&(a=[],a.push(te)),a.push(ge)))}if(a!==null){for(te=U1(y,x,b,E),te===null&&(te=new qm(y,b,x,E),H1(y,te),H1(x,te)),te.links=a,y=0;y<a.length;y++)a[y].Sf=te;te.Sl()}}}}function Xp(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(dn(y.links,a),y.Sl()))}Hn.prototype.ph=function(){return!0},Lt.Object.defineProperties(Hn.prototype,{fromNode:{get:function(){return this.ef},set:function(a){var y=this.ef;if(y!==a){var x=this.fromPort;y!==null&&(this.uf!==y&&Hm(y,this,x),Xp(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 E=this.fromPort,te=this.fromPortChanged;if(te!==null){var ne=!0;b!==null&&(ne=b.aa,b.aa=!0),te(this,x,E),b!==null&&(b.aa=ne)}a!==null&&(this.uf!==a&&Gm(a,this,E),$p(this),this.C(1)),this.g("fromNode",y,a),Mf(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&is(x),Xp(this),this.ff=a;var b=this.fromPort;b!==null&&is(b);var E=this.diagram;if(E!==null){var te=this.data,ne=E.model;te!==null&&ne.ri()&&ne.xv(te,a)}x!==b&&(this.Wf=null,this.bb(),te=this.fromPortChanged,te!==null&&(ne=!0,E!==null&&(ne=E.aa,E.aa=!0),te(this,x,b),E!==null&&(E.aa=ne))),$p(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 x=this.toPort;y!==null&&(this.ef!==y&&Hm(y,this,x),Xp(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 E=this.toPort,te=this.toPortChanged;if(te!==null){var ne=!0;b!==null&&(ne=b.aa,b.aa=!0),te(this,x,E),b!==null&&(b.aa=ne)}a!==null&&(this.ef!==a&&Gm(a,this,E),$p(this),this.C(1)),this.g("toNode",y,a),Mf(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&is(x),Xp(this),this.vf=a;var b=this.toPort;b!==null&&is(b);var E=this.diagram;if(E!==null){var te=this.data,ne=E.model;te!==null&&ne.ri()&&ne.Cv(te,a)}x!==b&&(this.Wf=null,this.bb(),te=this.toPortChanged,te!==null&&(ne=!0,E!==null&&(ne=E.aa,E.aa=!0),te(this,x,b),E!==null&&(E.aa=ne))),$p(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:wi},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&&is(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&&Fn(a,">= 0",Hn,"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:wi},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&&is(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&&Fn(a,">= 0",Hn,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0<this.wd.count}},labelNodes:{get:function(){return this.wd===null?Cr:this.wd.iterator}},relinkableFrom:{get:function(){return(this.Qa&1)!==0},set:function(a){var y=(this.Qa&1)!==0;y!==a&&(this.Qa^=1,this.g("relinkableFrom",y,a),this.Wb())}},relinkableTo:{get:function(){return(this.Qa&2)!==0},set:function(a){var y=(this.Qa&2)!==0;y!==a&&(this.Qa^=2,this.g("relinkableTo",y,a),this.Wb())}},resegmentable:{get:function(){return(this.Qa&4)!==0},set:function(a){var y=(this.Qa&4)!==0;y!==a&&(this.Qa^=4,this.g("resegmentable",y,a),this.Wb())}},isTreeLink:{get:function(){return(this.Qa&8)!==0},set:function(a){var y=(this.Qa&8)!==0;y!==a&&(this.Qa^=8,this.g("isTreeLink",y,a),this.fromNode!==null&&Zp(this.fromNode),this.toNode!==null&&Zp(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof _r?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,x=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),x=Math.min(b.y,x),a.h(b.x,b.y,0,0);else if(b===2){b=this.i(0);var E=this.i(1);y=Math.min(b.x,E.x),x=Math.min(b.y,E.y),a.h(b.x,b.y,0,0),a.Ye(E)}else if(this.computeCurve()===ms&&3<=b&&!this.isOrthogonal)if(E=this.i(0),y=E.x,x=E.y,a.h(y,x,0,0),b===3){b=this.i(1),y=Math.min(b.x,y),x=Math.min(b.y,x);var te=this.i(2);y=Math.min(te.x,y),x=Math.min(te.y,x),qt.Dl(E.x,E.y,b.x,b.y,b.x,b.y,te.x,te.y,.5,a)}else for(te=3;te<b;te+=3){var ne=this.i(te-2);te+3>=b&&(te=b-1);var se=this.i(te-1),ce=this.i(te);qt.Dl(E.x,E.y,ne.x,ne.y,se.x,se.y,ce.x,ce.y,.5,a),y=Math.min(ce.x,y),x=Math.min(ce.y,x),E=ce}else for(E=this.i(0),te=this.i(1),y=Math.min(E.x,te.x),x=Math.min(E.y,te.y),a.h(E.x,E.y,0,0),a.Ye(te),E=2;E<b;E++)te=this.i(E),y=Math.min(te.x,y),x=Math.min(te.y,x),a.Ye(te);this.su.h(y-a.x,x-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new Nt)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Wm(this);for(var a=this.cq=[],y=this.pointsCount,x=0;x<y-1;x++){var b=this.i(x),E=this.i(x+1);qt.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):qt.$(b.y,E.y)?(b=E.x-b.x,0>b&&(b=-b)):b=Math.sqrt(b.Bf(E)),a.push(b)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,b=a=0;b<x;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 x=null;if(Array.isArray(a)){var b=a.length%2===0;if(b){for(var E=0;E<a.length;E++)if(typeof a[E]!="number"||isNaN(a[E])){b=!1;break}}if(b)for(x=new Tn,b=0;b<a.length/2;b++)E=new Nt(a[2*b],a[2*b+1]).freeze(),x.add(E);else{for(b=!0,E=0;E<a.length;E++){var te=a[E];if(!gn(te)||typeof te.x!="number"||isNaN(te.x)||typeof te.y!="number"||isNaN(te.y)){b=!1;break}}if(b)for(x=new Tn,b=0;b<a.length;b++)E=a[b],x.add(new Nt(E.x,E.y).freeze())}}else if(a instanceof Tn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else zt("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),Wm(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&Jd(a.animationManager,this,x)),this.g("points",y,x)}}},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||!Tf(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Tf(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),$m(this,y===Ju||y===Lf||a===Ju||a===Lf),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),$m(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),Hn.prototype.invalidateOtherJumpOvers=Hn.prototype.Xo,Hn.prototype.findClosestSegment=Hn.prototype.ez,Hn.prototype.updateRoute=Hn.prototype.vg,Hn.prototype.invalidateRoute=Hn.prototype.bb,Hn.prototype.rollbackRoute=Hn.prototype.rv,Hn.prototype.commitRoute=Hn.prototype.zf,Hn.prototype.startRoute=Hn.prototype.uh,Hn.prototype.clearPoints=Hn.prototype.Fj,Hn.prototype.removePoint=Hn.prototype.pv,Hn.prototype.addPointAt=Hn.prototype.yf,Hn.prototype.addPoint=Hn.prototype.ne,Hn.prototype.insertPointAt=Hn.prototype.m,Hn.prototype.insertPoint=Hn.prototype.Kz,Hn.prototype.setPointAt=Hn.prototype.L,Hn.prototype.setPoint=Hn.prototype.dd,Hn.prototype.getPoint=Hn.prototype.i,Hn.prototype.getOtherPort=Hn.prototype.Cz,Hn.prototype.getOtherNode=Hn.prototype.To;var Sd=null,xd=null,J0=new fn(Hn,"Normal",1),Lx=new fn(Hn,"Orthogonal",2),kx=new fn(Hn,"AvoidsNodes",6),nS=new fn(Hn,"AvoidsNodesStraight",7),ka=new fn(Hn,"None",0),ms=new fn(Hn,"Bezier",9),Ju=new fn(Hn,"JumpGap",10),Lf=new fn(Hn,"JumpOver",11),Yp=new fn(Hn,"End",17),Xm=new fn(Hn,"Scale",18),Ym=new fn(Hn,"Stretch",19),Jp=new fn(Hn,"OrientAlong",21),Qp=new fn(Hn,"OrientPlus90",22),qp=new fn(Hn,"OrientMinus90",23),Q0=new fn(Hn,"OrientOpposite",24),Jm=new fn(Hn,"OrientUpright",25),eg=new fn(Hn,"OrientPlus90Upright",26),tg=new fn(Hn,"OrientMinus90Upright",27),Qm=new fn(Hn,"OrientUpright45",28),rS=16,iS=14,ng=8;Hn.className="Link",Hn.Normal=J0,Hn.Orthogonal=Lx,Hn.AvoidsNodes=kx,Hn.AvoidsNodesStraight=nS,Hn.None=ka,Hn.Bezier=ms,Hn.JumpGap=Ju,Hn.JumpOver=Lf,Hn.End=Yp,Hn.Scale=Xm,Hn.Stretch=Ym,Hn.OrientAlong=Jp,Hn.OrientPlus90=Qp,Hn.OrientMinus90=qp,Hn.OrientOpposite=Q0,Hn.OrientUpright=Jm,Hn.OrientPlus90Upright=eg,Hn.OrientMinus90Upright=tg,Hn.OrientUpright45=Qm,Hn.EndSegmentStep=8,Hn.CurvinessStart=rS,Hn.SpacingMin=iS,Hn.OrthoShortCut=ng;function qm(a,y,x,b){zr(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}qm.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},qm.prototype.Nv=function(){if(this.qq){this.qq=!1;var a=this.links;if(0<a.length){var y=a[0],x=y.diagram;x=x===null||x.pi&&!this.Fe,this.Fe=!1,y.arrangeBundledLinks(a,x),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))}},qm.className="LinkBundle";function rg(a){zr(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}rg.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,x=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((x+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(x=[],b=0;b<=a;b++)x[b]=new Uint32Array(y);this.ac=x,this.di=a-1,this.ei=y-1}if(a=q0,this.ac!==null)for(y=0;y<=this.di;y++)if(x=this.ac[y],x.fill)x.fill(a);else for(b=0;b<=this.ei;b++)x[b]=a}};function kf(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function $l(a,y,x){return kf(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):q0}function oS(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var x=a.ac[y],b=0;b<=a.ei;b++)x[b]>=jh&&(x[b]=q0)}rg.prototype.Yj=function(a,y,x,b){if(a>this.En||a+x<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,x=Math.max(0,x)/this.rc+1|0;var E=Math.max(0,b)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(E+=y,y=0),0>x||0>E)return!0;for(b=Math.min(a+x-1,this.di)|0,x=Math.min(y+E-1,this.ei)|0;a<=b;a++){E=this.ac[a];for(var te=y;te<=x;te++)if(E[te]===Qu)return!1}return!0};function Xl(a,y,x,b,E,te,ne,se,ce){if(!(y<te||y>ne||x<se||x>ce)){var ge=y|0,xe=x|0,Ae=a.ac[ge][xe];if(Ae>=jh&&Ae<Of)for(E?xe+=b:ge+=b,Ae+=1;te<=ge&&ge<=ne&&se<=xe&&xe<=ce&&!(Ae>=a.ac[ge][xe]);)a.ac[ge][xe]=Ae,Ae+=1,E?xe+=b:ge+=b;if(ge=E?xe:ge,E)if(0<b)for(x+=b;x<ge;x+=b)Xl(a,y,x,1,!E,te,ne,se,ce),Xl(a,y,x,-1,!E,te,ne,se,ce);else for(x+=b;x>ge;x+=b)Xl(a,y,x,1,!E,te,ne,se,ce),Xl(a,y,x,-1,!E,te,ne,se,ce);else if(0<b)for(y+=b;y<ge;y+=b)Xl(a,y,x,1,!E,te,ne,se,ce),Xl(a,y,x,-1,!E,te,ne,se,ce);else for(y+=b;y>ge;y+=b)Xl(a,y,x,1,!E,te,ne,se,ce),Xl(a,y,x,-1,!E,te,ne,se,ce)}}function ev(a,y,x,b,E,te,ne,se,ce){y|=0,x|=0;var ge=Qu,xe=jh;for(a.ac[y][x]=xe;ge===Qu&&y>te&&y<ne&&x>se&&x<ce;)xe+=1,a.ac[y][x]=xe,E?x+=b:y+=b,ge=a.ac[y][x]}function tv(a,y,x,b,E,te,ne,se,ce){y|=0,x|=0;var ge=Qu,xe=Of;for(a.ac[y][x]=xe;ge===Qu&&y>te&&y<ne&&x>se&&x<ce;)a.ac[y][x]=xe,E?x+=b:y+=b,ge=a.ac[y][x]}function aS(a,y,x,b,E,te,ne){if(a.ac!==null){a.abort=!1;var se=y.x,ce=y.y;if(kf(a,se,ce)){se-=a.Nd,se/=a.rc,ce-=a.Od,ce/=a.sc;var ge=b.x,xe=b.y;if(kf(a,ge,xe))if(ge-=a.Nd,ge/=a.rc,xe-=a.Od,xe/=a.sc,1>=Math.abs(se-ge)&&1>=Math.abs(ce-xe))a.abort=!0;else{var Ae=te.x;b=te.y,y=te.x+te.width;var Ue=te.y+te.height;Ae-=a.Nd,Ae/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,Ue-=a.Od,Ue/=a.sc,te=Math.max(0,Math.min(a.di,Ae|0)),y=Math.min(a.di,Math.max(0,y|0)),Ae=Math.max(0,Math.min(a.ei,b|0)),Ue=Math.min(a.ei,Math.max(0,Ue|0)),b=a.ac,se|=0,ce|=0,ge|=0,xe|=0;var Je=x===0||x===90?1:-1;if(x=x===90||x===270,b[se][ce]===Qu?(ev(a,se,ce,Je,x,te,y,Ae,Ue),ev(a,se,ce,1,!x,te,y,Ae,Ue),ev(a,se,ce,-1,!x,te,y,Ae,Ue)):ev(a,se,ce,Je,x,se,ce,se,ce),b[ge][xe]===Qu?(tv(a,ge,xe,E===0||E===90?1:-1,E===90||E===270,te,y,Ae,Ue),tv(a,ge,xe,1,!(E===90||E===270),te,y,Ae,Ue),tv(a,ge,xe,-1,!(E===90||E===270),te,y,Ae,Ue)):tv(a,ge,xe,Je,x,ge,xe,ge,xe),x=cn(),ne&&sS(a,ge,xe,E,se,ce,x))for((x[0]!==ge||x[1]!==xe)&&(x.unshift(xe),x.unshift(ge)),(x[x.length-2]!==se||x[x.length-1]!==ce)&&(x.push(se),x.push(ce)),a=jh,E=x[x.length-2],ne=x[x.length-1],b[E][ne]=a++,te=x.length-4;0<=te;te-=2)for(E=x[te+2],ne=x[te+3],y=x[te],ge=x[te+1];y>E?E++:y<E?E--:ge>ne?ne++:ge<ne&&ne--,b[E][ne]=a++,E!==y||ne!==ge;);else Xl(a,se,ce,1,!1,te,y,Ae,Ue),Xl(a,se,ce,-1,!1,te,y,Ae,Ue),Xl(a,se,ce,1,!0,te,y,Ae,Ue),Xl(a,se,ce,-1,!0,te,y,Ae,Ue);Pn(x)}}}}function sS(a,y,x,b,E,te,ne){for(var se=a.ac,ce=y,ge=x;;){if(ce===E&&ge===te)return!0;var xe=ce,Ae=ge;if(b===0)if(xe<E)xe++;else break;else if(b===90)if(Ae<te)Ae++;else break;else if(b===180)if(xe>E)xe--;else break;else if(Ae>te)Ae--;else break;var Ue=se[xe][Ae];if(Ue===0||Ue===ey)break;ce=xe,ge=Ae}for(;;){if(xe=b,Ae=ce,Ue=ge,b===0?Ue<te?(xe=90,Ue++):Ue>te&&(xe=270,Ue--):b===90?Ae<E?(xe=0,Ae++):Ae>E&&(xe=180,Ae--):b===180?Ue<te?(xe=90,Ue++):Ue>te&&(xe=270,Ue--):Ae<E?(xe=0,Ae++):Ae>E&&(xe=180,Ae--),Ae=se[Ae][Ue],xe!==b&&Ae!==0&&Ae!==ey){if(ne.push(ce),ne.push(ge),sS(a,ce,ge,xe,E,te,ne))return!0;ne.pop(),ne.pop()}if(se[ce][ge]=ey,b===0){if(ce===y)return!1;ce--}else if(b===90){if(ge===x)return!1;ge--}else if(b===180){if(ce===y)return!1;ce++}else{if(ge===x)return!1;ge++}}}Lt.Object.defineProperties(rg.prototype,{bounds:{get:function(){return new wn(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 Qu=0,jh=1,Of=999999,q0=Of+1,ey=Of+2;rg.className="PositionArray";function wd(){zr(this),this.port=this.node=null,this.pe=[],this.ap=!1}wd.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",x=0;x<a.length;x++){var b=a[x];b!==null&&(y+=`
|
|
|
`+b.toString())}return y};function Ox(a,y,x,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<x?270:90;case 6:return 90<x&&270>=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90<x&&x<=180+a?180:x>180+a&&x<=360-a?270:0;case 13:return 180<x&&x<=360-a?270:x>a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return b&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}wd.prototype.Sl=function(){this.pe.length=0};function lS(a,y){var x=a.pe;if(x.length===0){e:if(!a.ap){x=a.ap,a.ap=!0;var b=null,E=a.node,te=E instanceof Ir?E:null;if(te===null||te.isSubGraphExpanded)var ne=E.isTreeExpanded?E.findLinksConnected(a.port.portId):E.qx();else{if(!te.actualBounds.w()){a.ap=x;break e}b=te,ne=b.Lu()}te=a.pe.length=0;var se=a.port.ga(Ao,Nt.alloc()),ce=a.port.ga(Qa,Nt.alloc());for(E=wn.allocAt(se.x,se.y,0,0),E.Ye(ce),Nt.free(se),Nt.free(ce),se=Nt.allocAt(E.x+E.width/2,E.y+E.height/2),ce=a.port.li(),ne=ne.iterator;ne.next();){var ge=ne.value;if(ge.isVisible()&&ge.fromPort!==ge.toPort){var xe=ge.fromPort===a.port||ge.fromNode!==null&&ge.fromNode.Td(b),Ae=ge.computeSpot(xe,a.port);if(Ae.$c()&&(xe=xe?ge.toPort:ge.fromPort,xe!==null)){var Ue=xe.part;if(Ue!==null){var Je=Ue.findVisibleNode();Je!==null&&Je!==Ue&&(Ue=Je,xe=Ue.port),xe=ge.computeOtherPoint(Ue,xe),Ue=se.ab(xe),Ue-=ce,0>Ue?Ue+=360:360<=Ue&&(Ue-=360),Ae=Ox(E,Ae,Ue,ge.isOrthogonal),Ae===0?(Ae=4,180<Ue&&(Ue-=360)):Ae===90?(Ae=8,270<Ue&&(Ue-=360)):Ae===180?Ae=2:(Ae=1,90>Ue&&(Ue+=360)),Je=a.pe[te],Je===void 0?(Je=new ty(ge,Ue,Ae),a.pe[te]=Je):(Je.link=ge,Je.angle=Ue,Je.Nc=Ae),Je.hv.set(xe),te++}}}}for(Nt.free(se),a.pe.sort(wd.prototype.j),ce=a.pe.length,b=-1,te=se=0;te<ce;te++)ne=a.pe[te],ne!==void 0&&(ne.Nc!==b&&(b=ne.Nc,se=0),ne.Uo=se,se++);for(b=-1,se=0,te=ce-1;0<=te;te--)ce=a.pe[te],ce!==void 0&&(ce.Nc!==b&&(b=ce.Nc,se=ce.Uo+1),ce.Gl=se);if(te=a.pe,Ae=a.port,b=a.node.portSpreading,se=Nt.alloc(),ce=Nt.alloc(),ne=Nt.alloc(),ge=Nt.alloc(),Ae.ga(Ao,se),Ae.ga(ru,ce),Ae.ga(Qa,ne),Ae.ga(Ya,ge),Je=Ue=xe=Ae=0,b===W0)for(var rt=0;rt<te.length;rt++){var ht=te[rt];if(ht!==null){var Ft=ht.link.computeThickness();switch(ht.Nc){case 8:Ue+=Ft;break;case 2:Je+=Ft;break;case 1:Ae+=Ft;break;default:case 4:xe+=Ft}}}var Ot=rt=0,_t=1,Gt=ht=0;for(Ft=0;Ft<te.length;Ft++){var Kt=te[Ft];if(Kt!==null){if(rt!==Kt.Nc){switch(rt=Kt.Nc,rt){case 8:var Yt=ne;Ot=ge;break;case 2:Yt=ge,Ot=se;break;case 1:Yt=se,Ot=ce;break;default:case 4:Yt=ce,Ot=ne}switch(ht=Ot.x-Yt.x,Gt=Ot.y-Yt.y,rt){case 8:Ue>Math.abs(ht)?(_t=Math.abs(ht)/Ue,Ue=Math.abs(ht)):_t=1;break;case 2:Je>Math.abs(Gt)?(_t=Math.abs(Gt)/Je,Je=Math.abs(Gt)):_t=1;break;case 1:Ae>Math.abs(ht)?(_t=Math.abs(ht)/Ae,Ae=Math.abs(ht)):_t=1;break;default:case 4:xe>Math.abs(Gt)?(_t=Math.abs(Gt)/xe,xe=Math.abs(Gt)):_t=1}Ot=0}var on=Kt.Zo;if(b===W0){switch(Kt=Kt.link.computeThickness(),Kt*=_t,on.set(Yt),rt){case 8:on.x=Yt.x+ht/2+Ue/2-Ot-Kt/2;break;case 2:on.y=Yt.y+Gt/2+Je/2-Ot-Kt/2;break;case 1:on.x=Yt.x+ht/2-Ae/2+Ot+Kt/2;break;default:case 4:on.y=Yt.y+Gt/2-xe/2+Ot+Kt/2}Ot+=Kt}else{var Zn=.5;b===Um&&(Zn=(Kt.Uo+1)/(Kt.Gl+1)),on.x=Yt.x+ht*Zn,on.y=Yt.y+Gt*Zn}}}for(Nt.free(se),Nt.free(ce),Nt.free(ne),Nt.free(ge),Yt=a.pe,te=0;te<Yt.length;te++)b=Yt[te],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,wn.free(E)}x=a.pe}for(a=0;a<x.length;a++)if(E=x[a],E!==null&&E.link===y)return E;return null}wd.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},wd.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,io,y.fromPort===this.port),b=a.Uo;if(0>b)return x;var E=a.Gl;if(1>=E||!y.isOrthogonal)return x;y=a.hv;var te=a.Zo;return(a.Nc===2||a.Nc===8)&&(b=E-1-b),((a=a.Nc===2||a.Nc===4)?y.y<te.y:y.x<te.x)?x+8*b:(a?y.y===te.y:y.x===te.x)?x:x+8*(E-1-b)},wd.className="Knot";function ty(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new Nt,this.Gl=this.Uo=0,this.Zo=new Nt,this.Ju=0}ty.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()},ty.className="LinkInfo";function Ui(a){zr(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Nt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Ui.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},Ui.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ui.prototype.qb=function(){},Ui.prototype.toString=function(){var a=Cn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Ui.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())}}},Ui.prototype.createNetwork=function(){return new Ii(this)},Ui.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof sn?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Ir?y.lg(a.memberParts):y.lg(a.iterator),y},Ui.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 x=y.value.node;if(x!==null&&(a=x.diagram,a!==null))break}try{a!==null&&a.Ea("Layout"),this.commitLayout()}finally{a!==null&&a.eb("Layout")}},Ui.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()}},Ui.prototype.doLayout=function(a){var y=new Ln;a instanceof sn?(Gc(this,y,a.nodes,!0,this.rh,!0,!1,!0),Gc(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Ir?Gc(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},Ui.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,b=x,E=this.arrangementOrigin.y,te=0,ne=0;for(a=a.iterator;a.next();){var se=a.value;ig(se);var ce=se.measuredBounds,ge=ce.width;ce=ce.height,se.moveTo(b,E),se instanceof Ir&&(se.rh=!1),b+=Math.max(ge,50)+20,ne=Math.max(ne,Math.max(ce,50)),te>=y-1?(te=0,b=x,E+=ne+20,ne=0):te++}},Ui.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,x=y,b=this.arrangementOrigin.y,E=0,te=0,ne=this.network.vertexes.iterator;ne.next();){var se=ne.value.node;if(!(se===null||se instanceof Hn)&&(ig(se),this.rh(se))){var ce=se.measuredBounds,ge=ce.width;ce=ce.height,se.moveTo(x,b),se instanceof Ir&&(se.rh=!1),x+=Math.max(ge,50)+20,te=Math.max(te,Math.max(ce,50)),E>=a-1?(E=0,x=y,b+=te+20,te=0):E++}}},Ui.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Ir&&a.rh)};function Gc(a,y,x,b,E,te,ne,se){for(x=x.iterator;x.next();){var ce=x.value;b&&!ce.isTopLevel||E!==null&&!E(ce)||!ce.canLayout()||(te&&ce instanceof Xn?ce.isLinkLabel||(ce instanceof Ir&&ce.layout===null?Gc(a,y,ce.memberParts,!1,E,te,ne,se):(ig(ce),y.add(ce))):ne&&ce instanceof Hn?y.add(ce):!se||!ce.Zc()||ce instanceof Xn||(ig(ce),y.add(ce)))}}function ig(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Ui.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new wn),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Ui.prototype.ex=function(a){var y=new Ln;return a instanceof sn?(Gc(this,y,a.nodes,!0,null,!0,!0,!0),Gc(this,y,a.links,!0,null,!0,!0,!0),Gc(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Ir?Gc(this,y,a.memberParts,!1,null,!0,!0,!0):Gc(this,y,a.iterator,!1,null,!0,!0,!0),y},Ui.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var x=y.position.copy();return(isNaN(x.x)||isNaN(x.y))&&x.set(a),y=y.placeholder,y!==null&&(x=y.ga(Ao),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},Lt.Object.defineProperties(Ui.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())}}}),Ui.prototype.collectParts=Ui.prototype.ex,Ui.prototype.getLayoutBounds=Ui.prototype.ni,Ui.prototype.invalidateLayout=Ui.prototype.C,Ui.className="Layout";function Ii(a){zr(this),this.Sc=a,this.wf=new Ln,this.ye=new Ln,this.Es=new qn,this.zs=new qn}Ii.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 Ln,this.ye=new Ln,this.Es=new qn,this.zs=new qn},Ii.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 x=this.wf.iterator;x.next();)y+=`
|
|
|
`+x.value.toString(a-1);for(x=this.ye.iterator;x.next();)y+=`
|
|
|
`+x.value.toString(a-1)}return y},Ii.prototype.createVertex=function(){return new To(this)},Ii.prototype.createEdge=function(){return new os(this)},Ii.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(ne){if(ne instanceof Xn)return!ne.isLinkLabel;if(ne instanceof Hn){var se=ne.fromNode;return se===null||se.isLinkLabel?!1:(ne=ne.toNode,!(ne===null||ne.isLinkLabel))}return!1}),a=a.iterator;a.next();){var b=a.value;if(b instanceof Xn&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof Ir&&b.layout===null)this.lg(b.memberParts,!1);else if(this.ki(b)===null){var E=this.createVertex();E.node=b,this.dh(E)}}}for(a.reset();a.next();)if(b=a.value,b instanceof Hn&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)&&this.Lo(b)===null){var te=b.fromNode;E=b.toNode,te!==null&&E!==null&&te!==E&&(te=this.findGroupVertex(te),E=this.findGroupVertex(E),te!==null&&E!==null&&this.Zj(te,E,b))}}},Ii.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},it=Ii.prototype,it.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},it.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},it.Iu=function(a){if(a!==null&&uS(this,a)){for(var y=a.tg,x=y.count-1;0<=x;x--){var b=y.M(x);this.Mj(b)}for(y=a.mg,a=y.count-1;0<=a;a--)x=y.M(a),this.Mj(x)}};function uS(a,y){if(y===null)return!1;var x=a.wf.remove(y);return x&&(y=y.node,y!==null&&a.Es.remove(y)),x}it.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},it.ki=function(a){return a===null?null:this.Es.I(a)},it.Bo=function(a){if(a!==null){ny(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function ny(a,y){if(y!==null){a.ye.add(y);var x=y.link;x!==null&&a.Lo(x)===null&&a.zs.add(x,y),y.network=a}}it.Dy=function(a){if(a===null)return null;var y=a.fromNode,x=a.toNode,b=this.Lo(a);return b===null?(b=this.createEdge(),b.link=a,y!==null&&(b.fromVertex=this.Bl(y)),x!==null&&(b.toVertex=this.Bl(x)),this.Bo(b)):(y!==null?b.fromVertex=this.Bl(y):b.fromVertex=null,x!==null?b.toVertex=this.Bl(x):b.toVertex=null),b},it.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),ry(this,a)}};function ry(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}it.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},it.Lo=function(a){return a===null?null:this.zs.I(a)},it.Zj=function(a,y,x){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var b=this.createEdge();return b.link=x,b.fromVertex=a,b.toVertex=y,this.Bo(b),b}return null},it.gm=function(a){if(a!==null){var y=a.fromVertex,x=a.toVertex;y!==null&&x!==null&&(y.Jl(a),x.Kl(a),a.gm(),y.Cl(a),x.zl(a))}},it.Ko=function(){for(var a=cn(),y=this.ye.iterator;y.next();){var x=y.value;x.fromVertex===x.toVertex&&a.push(x)}for(y=a.length,x=0;x<y;x++)this.Mj(a[x]);Pn(a)},Ii.prototype.deleteArtificialVertexes=function(){for(var a=cn(),y=this.wf.iterator;y.next();){var x=y.value;x.node===null&&x.data===null&&a.push(x)}for(x=a.length,y=0;y<x;y++)this.Iu(a[y]);for(y=cn(),x=this.ye.iterator;x.next();){var b=x.value;b.link===null&&b.data===null&&y.push(b)}for(x=y.length,b=0;b<x;b++)this.Mj(y[b]);Pn(a),Pn(y)};function Ax(a){for(var y=cn(),x=a.ye.iterator;x.next();){var b=x.value;b.fromVertex!==null&&b.toVertex!==null||y.push(b)}for(x=y.length,b=0;b<x;b++)a.Mj(y[b]);Pn(y)}Ii.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Ax(this),this.Ko()),a=new Tn;for(var y=!0;y;){y=!1;for(var x=this.wf.iterator;x.next();){var b=x.value;if(0<b.tg.count||0<b.mg.count){y=this.layout.createNetwork(),a.add(y),iy(this,y,b),y=!0;break}}}return a.sort(function(E,te){return E===null||te===null||E===te?0:te.vertexes.count-E.vertexes.count}),a};function iy(a,y,x){if(x!==null&&x.network!==y){uS(a,x),y.dh(x);for(var b=x.sourceEdges;b.next();){var E=b.value;E.network!==y&&(ry(a,E),ny(y,E),iy(a,y,E.fromVertex))}for(b=x.destinationEdges;b.next();)x=b.value,x.network!==y&&(ry(a,x),ny(y,x),iy(a,y,x.toVertex))}}Ii.prototype.dz=function(){for(var a=new Ln,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},Lt.Object.defineProperties(Ii.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}}}),Ii.prototype.findAllParts=Ii.prototype.dz,Ii.prototype.splitIntoSubNetworks=Ii.prototype.Zx,Ii.prototype.deleteSelfEdges=Ii.prototype.Ko,Ii.prototype.reverseEdge=Ii.prototype.gm,Ii.prototype.linkVertexes=Ii.prototype.Zj,Ii.prototype.findEdge=Ii.prototype.Lo,Ii.prototype.deleteLink=Ii.prototype.Yy,Ii.prototype.deleteEdge=Ii.prototype.Mj,Ii.prototype.addLink=Ii.prototype.Dy,Ii.prototype.addEdge=Ii.prototype.Bo,Ii.prototype.findVertex=Ii.prototype.ki,Ii.prototype.deleteNode=Ii.prototype.Zy,Ii.prototype.deleteVertex=Ii.prototype.Iu,Ii.prototype.addNode=Ii.prototype.Bl,Ii.prototype.addVertex=Ii.prototype.dh,Ii.prototype.addParts=Ii.prototype.lg,Ii.className="LayoutNetwork";function To(a){zr(this),this.ob=a,this.j=new wn(0,0,10,10).freeze(),this.o=new Nt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Tn,this.mg=new Tn}To.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Tn,this.mg=new Tn},To.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Ar(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var x=!0,b=this.tg.iterator;b.next();){var E=b.value;x?x=!1:a+=",",a+=E.toString(0)}for(E="",x=!0,b=this.mg.iterator;b.next();){var te=b.value;x?x=!1:E+=",",E+=te.toString(0)}y+=" sources: "+a+" destinations: "+E}return y},To.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;gn(x)?(x.x=y.x,x.y=y.y,x.width=y.width,x.height=y.height):a.bounds=y.copy()}else if(a=this.node,a!==null){if(y=this.bounds,!(a instanceof Ir)){x=wn.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(ui);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),wn.free(x);return}wn.free(x)}a.moveTo(y.x,y.y)}},To.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},To.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},To.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},To.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function oy(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}Lt.Object.defineProperties(To.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 x=y.y,b=y.width;y=y.height,this.o.h(b/2,y/2),this.j.h(a,x,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,x=wn.alloc(),b=y.ni(a,x);y=b.x;var E=b.y,te=b.width;if(b=b.height,isNaN(y)&&(y=0),isNaN(E)&&(E=0),this.j.h(y,E,te,b),wn.free(x),!(a instanceof Ir)&&(a=a.locationObject.ga(ui),a.w())){this.o.h(a.x-y,a.y-E);return}this.o.h(te/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 Ln,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Ln,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Ln,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 Tn,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}}}),To.prototype.deleteDestinationEdge=To.prototype.Jl,To.prototype.addDestinationEdge=To.prototype.zl,To.prototype.deleteSourceEdge=To.prototype.Kl,To.prototype.addSourceEdge=To.prototype.Cl,To.className="LayoutVertex",To.standardComparer=oy,To.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x<y.length;x++)if(a[x]!==""&&a[x]!==void 0){var b=parseFloat(y[x]),E=parseFloat(a[x]);if(isNaN(b))if(isNaN(E)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(y[x]!=="")return 1;return a[x]!==""&&a[x]!==void 0?-1:0}return 1}return x!==null?-1:0}return 1}return y!==null?-1:0};function os(a){zr(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}os.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},os.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Ar(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},os.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},os.prototype.commit=function(){},os.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},Lt.Object.defineProperties(os.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)}}}),os.prototype.getOtherVertex=os.prototype.Ax,os.className="LayoutEdge";function Xo(a){Ui.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Wn(NaN,NaN).freeze(),this.tf=new Wn(10,10).freeze(),this.Jb=og,this.Rb=rv,this.nd=ag,this.hd=cS,a&&Object.assign(this,a)}Xt(Xo,Ui),Xo.prototype.cloneProtected=function(a){Ui.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},Xo.prototype.qb=function(a){a.classType===Xo?a===ag||a===ov||a===ay||a===iv?this.sorting=a:a===rv||a===pl?this.arrangement=a:a===og||a===nv?this.alignment=a:zt("Unknown enum value: "+a):Ui.prototype.qb.call(this,a)},Xo.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var b=x.value;if(!b.ph()||b.fromNode===null&&b.toNode===null){if(b.Va(),b instanceof Ir)for(b=b.memberParts;b.next();)y.remove(b.value)}else y.remove(b)}var E=y.Fa();if(E.length!==0){switch(this.sorting){case iv:E.reverse();break;case ag:E.sort(this.comparer);break;case ov:E.sort(this.comparer),E.reverse()}var te=this.wrappingColumn;isNaN(te)&&(te=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>=te&&0>=ne&&(te=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),b=[],this.alignment){case nv:var se=y,ce=x,ge=wn.alloc(),xe=Math.max(this.cellSize.width,1);if(!isFinite(xe))for(var Ae=xe=0;Ae<E.length;Ae++){var Ue=this.ni(E[Ae],ge);xe=Math.max(xe,Ue.width)}if(xe=Math.max(xe+se,1),Ae=Math.max(this.cellSize.height,1),!isFinite(Ae))for(Ue=Ae=0;Ue<E.length;Ue++){var Je=this.ni(E[Ue],ge);Ae=Math.max(Ae,Je.height)}Ae=Math.max(Ae+ce,1),Ue=this.arrangement;for(var rt=Je=this.arrangementOrigin.x,ht=this.arrangementOrigin.y,Ft=0,Ot=0,_t=0;_t<E.length;_t++){var Gt=E[_t],Kt=this.ni(Gt,ge),Yt=Math.ceil((Kt.width+se)/xe)*xe,on=Math.ceil((Kt.height+ce)/Ae)*Ae;switch(Ue){case pl:var Zn=Math.abs(rt-Kt.width);break;default:Zn=rt+Kt.width}switch((0<te&&Ft>te-1||0<ne&&0<Ft&&Zn-Je>ne)&&(b.push(new wn(0,ht,ne+se,Ot)),Ft=0,rt=Je,ht+=Ot,Ot=0),Ot=Math.max(Ot,on),Ue){case pl:Kt=-Kt.width;break;default:Kt=0}switch(Gt.moveTo(rt+Kt,ht),Ue){case pl:rt-=Yt;break;default:rt+=Yt}Ft++}b.push(new wn(0,ht,ne+se,Ot)),wn.free(ge);break;case og:for(ce=ne,xe=te,Ae=y,Ue=x,ne=wn.alloc(),Je=Math.max(this.cellSize.width,1),te=ht=ge=0,se=Nt.alloc(),rt=0;rt<E.length;rt++)Ot=E[rt],Ft=this.ni(Ot,ne),Ot=$u(Ot,Ot.locationObject,Ot.locationSpot,se),ge=Math.max(ge,Ot.x),ht=Math.max(ht,Ft.width-Ot.x),te=Math.max(te,Ot.y);switch(rt=this.arrangement,rt){case pl:ge+=Ae;break;default:ht+=Ae}Je=isFinite(Je)?Math.max(Je+Ae,1):Math.max(ge+ht,1);var nr=Ot=this.arrangementOrigin.x;for(_t=this.arrangementOrigin.y,ht=0,ce>=ge&&(ce-=ge),ge=Gt=0,Yt=Math.max(this.cellSize.height,1),Kt=te=0,on=!0,Ft=Nt.alloc(),Zn=0;Zn<E.length;Zn++){var Jn=E[Zn],Gn=this.ni(Jn,ne),kn=$u(Jn,Jn.locationObject,Jn.locationSpot,se);if(0<ht)switch(rt){case pl:nr=(nr-Ot-(Gn.width-kn.x))/Je,nr=qt.$(Math.round(nr),nr)?Math.round(nr):Math.floor(nr),nr=nr*Je+Ot;break;default:nr=(nr-Ot+kn.x)/Je,nr=qt.$(Math.round(nr),nr)?Math.round(nr):Math.ceil(nr),nr=nr*Je+Ot}else switch(rt){case pl:Gt=nr+kn.x+Gn.width;break;default:Gt=nr-kn.x}switch(rt){case pl:var Nr=-(nr+kn.x)+Gt;break;default:Nr=nr+Gn.width-kn.x-Gt}if(0<xe&&ht>xe-1||0<ce&&0<ht&&Nr>ce){for(b.push(new wn(0,on?_t-te:_t,ce+Ae,Kt+te+Ue)),nr=0;nr<ht&&Zn!==ht;nr++){Nr=E[Zn-ht+nr];var Er=$u(Nr,Nr.locationObject,Nr.locationSpot,Ft);Nr.moveTo(Nr.position.x,Nr.position.y+te-Er.y)}Kt+=Ue,_t=on?_t+Kt:_t+(Kt+te),ht=Kt=te=0,nr=Ot,on=!1}switch(nr===Ot&&(ge=rt===pl?Math.max(ge,Gn.width-kn.x):Math.min(ge,-kn.x)),te=Math.max(te,kn.y),Kt=Math.max(Kt,Gn.height-kn.y),isFinite(Yt)&&(Kt=Math.max(Kt,Math.max(Gn.height,Yt)-kn.y)),on?Jn.moveTo(nr-kn.x,_t-kn.y):Jn.moveTo(nr-kn.x,_t),rt){case pl:nr-=kn.x+Ae;break;default:nr+=Gn.width-kn.x+Ae}ht++}if(b.push(new wn(0,_t,ce+Ae,(on?Kt:Kt+te)+Ue)),E.length!==ht)for(ce=0;ce<ht;ce++)xe=E[E.length-ht+ce],Ae=$u(xe,xe.locationObject,xe.locationSpot,se),xe.moveTo(xe.position.x,xe.position.y+te-Ae.y);if(Nt.free(se),Nt.free(Ft),rt===pl)for(E=0;E<b.length;E++)te=b[E],te.width+=ge,te.x-=ge;else for(E=0;E<b.length;E++)te=b[E],te.x>ge&&(te.width+=te.x-ge,te.x=ge);wn.free(ne)}for(se=te=ne=E=0;se<b.length;se++)ce=b[se],E=Math.min(E,ce.x),ne=Math.min(ne,ce.y),te=Math.max(te,ce.x+ce.width);this.arrangement===pl?this.commitLayers(b,new Nt(E+y/2-(te+E),ne-x/2)):this.commitLayers(b,new Nt(E-y/2,ne-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},Xo.prototype.commitLayers=function(){};function cS(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}Lt.Object.defineProperties(Xo.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!==og&&a!==nv||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==rv&&a!==pl||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==ay&&a!==iv&&a!==ag&&a!==ov||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var nv=new fn(Xo,"Position",0),og=new fn(Xo,"Location",1),rv=new fn(Xo,"LeftToRight",2),pl=new fn(Xo,"RightToLeft",3),ay=new fn(Xo,"Forward",4),iv=new fn(Xo,"Reverse",5),ag=new fn(Xo,"Ascending",6),ov=new fn(Xo,"Descending",7);Xo.className="GridLayout",Xo.standardComparer=cS,Xo.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 x=0;x<a.length;x++)if(y[x]!==""&&y[x]!==void 0){var b=parseFloat(a[x]),E=parseFloat(y[x]);if(isNaN(b))if(isNaN(E)){if(a[x].localeCompare(y[x])!==0)return a[x].localeCompare(y[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(a[x]!=="")return 1;return y[x]!==""&&y[x]!==void 0?-1:0}return 1}return y!==null?-1:0},Xo.Position=nv,Xo.Location=og,Xo.LeftToRight=rv,Xo.RightToLeft=pl,Xo.Forward=ay,Xo.Reverse=iv,Xo.Ascending=ag,Xo.Descending=ov;function bi(){this.On=new Ln,this.Dn=new Ln,this.Pa=new Ln,this.cf=new qn,this.bf=new qn,this.aj=new qn,this.H=null,this.tp=!1}it=bi.prototype,it.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},it.Xe=function(a){this.H=a},it.oi=function(a){if(a instanceof Xn){if(this.On.add(a),a instanceof Ir){var y=a.containingGroup;y===null?this.H.ai.add(a):y.gl.add(a),y=a.layout,y!==null&&(y.diagram=this.H)}}else a instanceof Hn?this.Dn.add(a):a instanceof hi||this.Pa.add(a);y=a.data,y===null||a instanceof hi||(a instanceof Hn?this.bf.add(y,a):this.cf.add(y,a))},it.pc=function(a){if(a.Ej(),a instanceof Xn){if(this.On.remove(a),a instanceof Ir){var y=a.containingGroup;y===null?this.H.ai.remove(a):y.gl.remove(a),y=a.layout,y!==null&&(y.diagram=null)}}else a instanceof Hn?this.Dn.remove(a):a instanceof hi||this.Pa.remove(a);y=a.data,y===null||a instanceof hi||(a instanceof Hn?this.bf.remove(y):this.cf.remove(y))},it.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var x=y.value,b=y.key;(!x.Zc()||x instanceof Ir)&&zt('Invalid node template in Diagram.nodeTemplateMap: template for "'+b+'" must be a Node or a simple Part, not a Group or Link: '+x)}for(y=a.groupTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof Ir||zt('Invalid group template in Diagram.groupTemplateMap: template for "'+b+'" must be a Group, not a normal Node or Link: '+x);for(y=a.linkTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof Hn||zt('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=cn(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=cn(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=cn(),b=this.nodes.iterator;b.next();){var E=b.value;E.data!==null&&(a.push(E.data),a.push(E.location))}for(b=this.links.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(b=this.parts.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),b=0;b<y.length;b++)E=this.Lc(y[b]),E!==null&&(E.isSelected=!0);for(b=0;b<x.length;b++)E=this.Lc(x[b]),E!==null&&(E.isHighlighted=!0);for(b=0;b<a.length;b+=2)E=this.Lc(a[b]),E!==null&&(E.location=a[b+1]);Pn(y),Pn(x),Pn(a)}},bi.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},bi.prototype.addModeledParts=function(a,y){var x=this,b=this.diagram.model;a.forEach(function(E){b.lb(E)&&hS(x,E,!1)}),a.forEach(function(E){b.lb(E)&&x.resolveReferencesForData(E)}),y!==!1&&of(this.diagram,!1)};function hS(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);e:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var b=a.Ro(y),E=dS(a,y,b);if(E!==null&&(Ws(E),E=E.copy(),E!==null)){var te=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=b,E.ub=y,a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=te,b=E;break e}}b=null}b!==null&&x&&a.resolveReferencesForData(y)}}bi.prototype.insertLink=function(){return null},bi.prototype.resolveReferencesForData=function(){},bi.prototype.Ro=function(a){return this.H.model.Ro(a)};function dS(a,y,x){a=a.H;var b=a.model;return b.Xj()&&b.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(gS||(gS=!0,$n('No Group template found for category "'+x+'"'),$n(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(pS||(pS=!0,$n('No Node template found for category "'+x+'"'),$n(" Using default node template")),y=a.ny))),y}bi.prototype.getLinkCategoryForData=function(){return""},bi.prototype.setLinkCategoryForData=function(){},bi.prototype.setFromNodeForLink=function(){},bi.prototype.setToNodeForLink=function(){},bi.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(mS||(mS=!0,$n('No Link template found for category "'+a+'"'),$n(" Using default link template")),x=y.my)),x},bi.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},bi.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},bi.prototype.ip=function(a){a=this.Lc(a),a!==null&&(xp(this.diagram,a,!1),this.unresolveReferencesForPart(a))},bi.prototype.unresolveReferencesForPart=function(){},bi.prototype.removeDataForLink=function(){},bi.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},bi.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof Xn?a:null)},bi.prototype.findLinkForKey=function(){return null},it=bi.prototype,it.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},it.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof Xn?a:null)},it.Kc=function(a){return a===null?null:this.bf.I(a)},it.ms=function(a){for(var y=0;y<arguments.length;++y);y=new Ln;for(var x=this.On.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var te=0;te<arguments.length;te++){var ne=arguments[te];if(gn(ne)&&sy(this,E,ne)){y.add(b);break}}}return y.iterator},it.ls=function(a){for(var y=0;y<arguments.length;++y);y=new Ln;for(var x=this.Dn.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var te=0;te<arguments.length;te++){var ne=arguments[te];if(gn(ne)&&sy(this,E,ne)){y.add(b);break}}}return y.iterator};function sy(a,y,x){for(var b in x){var E=y[b],te=x[b];if(Sn(te)){if(!Sn(E)||E.length<te.length)return!1;for(var ne=0;ne<E.length;ne++){var se=te[ne];if(se!==void 0&&!fS(a,E[ne],se))return!1}}else if(!fS(a,E,te))return!1}return!0}function fS(a,y,x){if(typeof x=="function"){if(!x(y))return!1}else if(x instanceof RegExp){if(!y||!x.test(y.toString()))return!1}else if(gn(y)&&gn(x)){if(!sy(a,y,x))return!1}else if(y!==x)return!1;return!0}bi.prototype.doModelChanged=function(a){if(this.H){var y=this.H;if(a.model===y.model){var x=a.change;if(y.doModelChanged(a),y.aa){y.aa=!1;try{var b=a.modelChange;if(b!=="")if(x===Zi){if(b==="nodeCategory"){var E=this.Lc(a.object),te=a.newValue;E!==null&&typeof te=="string"&&(E.category=te)}else b==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===lo){var ne=a.newValue;b==="nodeDataArray"&&gn(ne)&&hS(this,ne),y.isModified=!0}else if(x===Eo){var se=a.oldValue;b==="nodeDataArray"&&gn(se)&&this.ip(se),y.isModified=!0}else x===ts&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===Zi){var ce=a.propertyName,ge=a.object;ge===y.model?(ce==="nodeKeyProperty"||ce==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(ge,ce),y.isModified=!0}else if(x===lo||x===Eo){var xe=a.change===lo,Ae=xe?a.newParam:a.oldParam,Ue=xe?a.newValue:a.oldValue,Je=this.aj.I(a.object);if(Array.isArray(Je))for(a=0;a<Je.length;a++){var rt=Je[a];if(xe)Cm(rt,Ue,Ae,!0);else if(!(0>Ae)){var ht=Ae+Gp(rt);rt.pc(ht,!0),w0(rt,ht,Ae)}}y.isModified=!0}}finally{y.aa=!0}}}}},bi.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)},bi.prototype.rp=function(){for(var a=this.H.model,y=new Ln,x=a.nodeDataArray,b=0;b<x.length;b++)y.add(x[b]);var E=[];for(this.nodes.each(function(ne){ne.data===null||y.contains(ne.data)||E.push(ne.data)}),this.parts.each(function(ne){ne.data===null||y.contains(ne.data)||E.push(ne.data)}),E.forEach(function(ne){ES(a,ne,!1)}),b=0;b<x.length;b++){var te=x[b];this.Lc(te)===null&&CS(a,te,!1)}for(this.refreshDataBoundLinks(),x=this.parts.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.nodes.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.links.iterator;x.next();)x.value.updateRelationshipsFromData()},bi.prototype.refreshDataBoundLinks=function(){},bi.prototype.updateRelationshipsFromData=function(){},bi.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var x=this.Lc(a);if(x!==null)x.La(y);else{x=null;for(var b=this.aj.iterator;b.next();){for(var E=b.value,te=0;te<E.length;te++){var ne=E[te].sx(a);ne!==null&&(x===null&&(x=cn()),x.push(ne))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);Pn(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function ly(a,y){var x=y.Hh;if(Sn(x)){var b=a.aj.I(x);if(b===null)b=[],b.push(y),a.aj.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}function uy(a,y,x){Lh(y,function(ne){ne=ne.O.s;for(var se=ne.length,ce=0;ce<se;ce++)Ep(x,ne[ce])});var b=y.Hh;if(Sn(b)){var E=a.aj.I(b);if(E!==null){for(var te=0;te<E.length;te++)if(E[te]===y){E.splice(te,1),E.length===0&&a.aj.remove(b);break}}}}bi.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new qn;if(Sn(a))for(var E=0;E<a.length;E++)av(this,a[E],y,b,x);else for(a=a.iterator;a.next();)av(this,a.value,y,b,x);if(y!==null){x=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,E=new Ln;for(var te=new qn,ne=b.iterator;ne.next();){var se=ne.value;if(se instanceof Hn)a||se.fromNode!==null&&se.toNode!==null||E.add(se);else if(se instanceof Xn&&se.data!==null&&x.Tl()){var ce=se;se=ne.key;var ge=se.pg();ge!==null&&(ge=b.I(ge),ge!==null?(x.qe(ce.data,x.wa(ge.data)),ce=y.Kc(ce.data),se=se.kh(),se!==null&&ce!==null&&te.add(se,ce)):x.qe(ce.data,void 0))}}if(0<E.count&&y.Is(E,!1),0<te.count)for(x=te.iterator;x.next();)b.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var xe=new qn;b.each(function(Ae){Ae.key.data!==null&&xe.add(Ae.key.data,Ae.value.data)}),x(xe,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function av(a,y,x,b,E){if(y===null||E&&!y.canCopy())return null;if(b.contains(y))return b.I(y);var te=a.copyPartData(y,x);if(!(te instanceof pr))return null;if(te.isSelected=!1,te.isHighlighted=!1,b.add(y,te),y instanceof Xn){for(var ne=y.linksConnected;ne.next();){var se=ne.value;if(se.fromNode===y){var ce=b.I(se);ce!==null&&(ce.fromNode=te)}se.toNode===y&&(se=b.I(se),se!==null&&(se.toNode=te))}if(y instanceof Ir&&te instanceof Ir)for(y=y.memberParts;y.next();)ne=av(a,y.value,x,b,E),ne instanceof Hn||ne===null||(ne.containingGroup=te)}else if(y instanceof Hn&&te instanceof Hn)for(ne=y.fromNode,ne!==null&&(ne=b.I(ne),ne!==null&&(te.fromNode=ne)),ne=y.toNode,ne!==null&&(ne=b.I(ne),ne!==null&&(te.toNode=ne)),y=y.labelNodes;y.next();)ne=av(a,y.value,x,b,E),ne!==null&&ne instanceof Xn&&(ne.labeledLink=te);return te}bi.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof Hn||(b=E.copyNodeData(b),gn(b)&&(E.xf(b),x=y.Lc(b)))}else Ws(a),x=a.copy(),x!==null&&(E=this.H,y!==null?y.add(x):b!==null&&E!==null&&E.commandHandler!==null&&E.commandHandler.copiesClipboardData&&(y=E.model,E=null,x instanceof Hn||(E=y.copyNodeData(b)),gn(E)&&(x.data=E)));return x},Lt.Object.defineProperties(bi.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}}}),bi.prototype.updateAllRelationshipsFromData=bi.prototype.rp,bi.prototype.findLinksByExample=bi.prototype.ls,bi.prototype.findNodesByExample=bi.prototype.ms,bi.prototype.findLinkForData=bi.prototype.Kc,bi.prototype.findNodeForData=bi.prototype.ii,bi.prototype.findPartForData=bi.prototype.Lc,bi.prototype.findNodeForKey=bi.prototype.Vb,bi.prototype.removeModeledPart=bi.prototype.ip,bi.prototype.removeModeledParts=bi.prototype.Gs,bi.prototype.rebuildParts=bi.prototype.Wd;var pS=!1,gS=!1,mS=!1;bi.className="PartManager";function zo(a){bi.apply(this,arguments)}Xt(zo,bi),zo.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),vS(this,a.linkDataArray)},zo.prototype.addModeledParts=function(a){for(bi.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Mf(a.value);of(this.diagram,!1)};function vS(a,y){y.forEach(function(x){yS(a,x)}),of(a.diagram,!1)}function yS(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),b=a.findLinkTemplateForCategory(x);if(b!==null){Ws(b);var E=b.copy();if(E!==null){b=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,E.Tf=x,E.ub=y,x=a.diagram.model;var te=cv(x,y,!0);te!==""&&(E.fromPortId=te),te=vs(x,y,!0),te!==void 0&&(te=a.Vb(te),te instanceof Xn&&(E.fromNode=te)),te=cv(x,y,!1),te!==""&&(E.toPortId=te),te=vs(x,y,!1),te!==void 0&&(te=a.Vb(te),te instanceof Xn&&(E.toNode=te)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(ne){ne=a.Vb(ne),ne!==null&&(ne.labeledLink=E)}),a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=b}}}}zo.prototype.removeAllModeledParts=function(){var a=this.diagram.model;SS(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function SS(a,y){y.forEach(function(x){a.ip(x)})}zo.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},zo.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},zo.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},zo.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},zo.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},zo.prototype.findPartForKey=function(a){var y=bi.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},zo.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},zo.prototype.doModelChanged=function(a){var y=this;if(bi.prototype.doModelChanged.call(this,a),this.diagram){var x=this.diagram;if(a.model===x.model){var b=a.change;if(x.aa){x.aa=!1;try{var E=a.modelChange;if(E!==""){if(b===Zi){if(E==="linkFromKey"){var te=this.Kc(a.object);if(te!==null){var ne=this.Vb(a.newValue);te.fromNode=ne}}else if(E==="linkToKey"){var se=this.Kc(a.object);if(se!==null){var ce=this.Vb(a.newValue);se.toNode=ce}}else if(E==="linkFromPortId"){var ge=this.Kc(a.object);if(ge!==null){var xe=a.newValue;typeof xe=="string"&&(ge.fromPortId=xe)}}else if(E==="linkToPortId"){var Ae=this.Kc(a.object);if(Ae!==null){var Ue=a.newValue;typeof Ue=="string"&&(Ae.toPortId=Ue)}}else if(E==="nodeGroupKey"){var Je=this.Lc(a.object);if(Je!==null){var rt=a.newValue;if(rt!==void 0){var ht=this.Vb(rt);ht instanceof Ir?Je.containingGroup=ht:Je.containingGroup=null}else Je.containingGroup=null}}else if(E==="linkLabelKeys"){var Ft=this.Kc(a.object);if(Ft!==null){var Ot=a.oldValue,_t=a.newValue;Array.isArray(Ot)&&Ot.forEach(function(kn){0<=_t.indexOf(kn)||(kn=y.Vb(kn),kn!==null&&(kn.labeledLink=null))}),Array.isArray(_t)&&_t.forEach(function(kn){kn=y.Vb(kn),kn!==null&&(kn.labeledLink=Ft)})}}else if(E==="linkCategory"){var Gt=this.Kc(a.object),Kt=a.newValue;Gt!==null&&typeof Kt=="string"&&(Gt.category=Kt)}else E==="linkDataArray"&&(SS(this,a.oldValue),vS(this,a.newValue));x.isModified=!0}else if(b===lo){var Yt=a.newValue;if(E==="linkDataArray"&&typeof Yt=="object"&&Yt!==null)yS(this,Yt);else if(E==="linkLabelKeys"&&Uc(Yt)){var on=this.Kc(a.object),Zn=this.Vb(Yt);on!==null&&Zn!==null&&(Zn.labeledLink=on)}x.isModified=!0}else if(b===Eo){var nr=a.oldValue;if(E==="linkDataArray"&&typeof nr=="object"&&nr!==null)this.ip(nr);else if(E==="linkLabelKeys"&&Uc(nr)){var Jn=this.Vb(nr);Jn!==null&&(Jn.labeledLink=null)}x.isModified=!0}}else if(b===Zi){var Gn=a.propertyName;a.object!==x.model||Gn!=="linkFromKeyProperty"&&Gn!=="linkToKeyProperty"&&Gn!=="linkFromPortIdProperty"&&Gn!=="linkToPortIdProperty"&&Gn!=="linkLabelKeysProperty"&&Gn!=="nodeIsGroupProperty"&&Gn!=="nodeGroupKeyProperty"&&Gn!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},zo.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new Ln,b=y.linkDataArray;b.forEach(function(te){x.add(te)});var E=[];this.links.each(function(te){te.data===null||x.contains(te.data)||E.push(te.data)}),E.forEach(function(te){AS(y,te,!1)}),b.forEach(function(te){a.Kc(te)===null&&OS(y,te,!1)})},zo.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;if(a instanceof Hn){var E=vs(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=vs(b,y,!1),E=x.Vb(E),a.toNode=E,y=b.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){E=y[0];var te=a.labelNodes.first();if(b.wa(te.data)===E)return}E=new Ln().addAll(y);var ne=new Ln;a.labelNodes.each(function(se){se.data!==null&&(se=b.wa(se.data),se!==void 0&&ne.add(se))}),y=ne.copy(),y.hp(E),E=E.copy(),E.hp(ne),(0<y.count||0<E.count)&&(y.each(function(se){se=x.Vb(se),se!==null&&se.labeledLink===a&&(se.labeledLink=null)}),E.each(function(se){se=x.Vb(se),se!==null&&se.labeledLink!==a&&(se.labeledLink=a)}))}}else!(a instanceof hi)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof Ir)&&(a.containingGroup=y)}}},zo.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=sg(y,x),E=this.Lc(a);if(b!==null&&E!==null){b=b.iterator;for(var te={};b.next();){var ne=b.value;y.lb(ne)?E instanceof Ir&&y.lh(ne)===x&&(ne=this.Lc(ne),ne!==null&&(ne.containingGroup=E)):(te.link=this.Kc(ne),te.link!==null&&E instanceof Xn&&(vs(y,ne,!0)===x&&(te.link.fromNode=E),vs(y,ne,!1)===x&&(te.link.toNode=E),ne=y.Ef(ne),Array.isArray(ne)&&ne.some(function(se){return function(ce){return ce===x?(E.labeledLink=se.link,!0):!1}}(te)))),te={link:te.link}}ml(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Ir&&(E.containingGroup=a))}},zo.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Xn){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)gl(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&gl(y,x,b.data)),a instanceof Ir)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&gl(y,x,b)}}},zo.prototype.copyPartData=function(a,y){var x=bi.prototype.copyPartData.call(this,a,y);if(a instanceof Hn)if(a=a.data,a!==null&&y!==null){var b=y.model;a=b.Jo(a),typeof a=="object"&&a!==null&&(b.fi(a),x=y.Kc(a))}else x!==null&&(y=this.diagram,a!==null&&y!==null&&y.commandHandler!==null&&y.commandHandler.copiesClipboardData&&(y=y.model.Jo(a),typeof y=="object"&&y!==null&&(x.data=y)));return x},zo.prototype.insertLink=function(a,y,x,b){var E=this.diagram,te=E.model,ne=E.toolManager.findTool("Linking"),se="";if(a!==null&&(y===null&&(y=a),se=y.portId,se===null&&(se="")),y="",x!==null&&(b===null&&(b=x),y=b.portId,y===null&&(y="")),b=ne.archetypeLinkData,b instanceof Hn){if(Ws(b),te=b.copy(),te!==null)return te.fromNode=a,te.fromPortId=se,te.toNode=x,te.toPortId=y,E.add(te),a=ne.archetypeLabelNodeData,a instanceof Xn&&(Ws(a),a=a.copy(),a!==null&&(a.labeledLink=te,E.add(a))),te}else if(b!==null&&(b=te.Jo(b),typeof b=="object"&&b!==null))return a!==null&&Nf(te,b,te.wa(a.data),!0),jf(te,b,se,!0),x!==null&&Nf(te,b,te.wa(x.data),!1),jf(te,b,y,!1),te.fi(b),a=ne.archetypeLabelNodeData,a===null||a instanceof Xn||(a=te.copyNodeData(a),typeof a=="object"&&a!==null&&(te.xf(a),a=te.wa(a),a!==void 0&&te.Bu(b,a))),E.Kc(b);return null},zo.prototype.findLinkForKey=zo.prototype.findLinkForKey,zo.prototype.findPartForKey=zo.prototype.findPartForKey,zo.prototype.removeAllModeledParts=zo.prototype.removeAllModeledParts,zo.prototype.addModeledParts=zo.prototype.addModeledParts,zo.prototype.addAllModeledParts=zo.prototype.addAllModeledParts,zo.className="GraphLinksPartManager";function Os(){bi.apply(this,arguments),this.Sg=null}Xt(Os,bi);function sv(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var b=a.diagram.toolManager.findTool("Linking"),E=y,te=x;if(a.diagram.isTreePathToChildren||(E=x,te=y),(b===null||!xa(b,E,te,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(Ws(b),b=b.copy(),b!==null))){var ne=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=y,b.ub=x.data,b.fromNode=E,b.toNode=te,a.diagram.add(b),b.ub=null,b.data=x.data,a.diagram.skipsModelSourceBindings=ne}}}Os.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},Os.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},Os.prototype.setFromNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)b.qe(a.data,b.wa(y));else{var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=E}},Os.prototype.setToNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=E}else b.qe(a.data,b.wa(y))},Os.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},Os.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},Os.prototype.doModelChanged=function(a){if(bi.prototype.doModelChanged.call(this,a),this.diagram){var y=this.diagram;if(a.model===y.model){var x=a.change;if(y.aa){y.aa=!1;try{var b=a.modelChange;if(b!==""){if(x===Zi){if(b==="nodeParentKey"){var E=a.object,te=this.Vb(a.newValue),ne=this.ii(E);if(this.Sg!==null)te!==null&&(this.Sg.data=E,this.Sg.category=this.getLinkCategoryForData(E));else if(ne!==null){var se=ne.kh();se!==null?te===null?y.remove(se):y.isTreePathToChildren?se.fromNode=te:se.toNode=te:sv(this,te,ne)}}else if(b==="parentLinkCategory"){var ce=this.ii(a.object),ge=a.newValue;if(ce!==null&&typeof ge=="string"){var xe=ce.kh();xe!==null&&(xe.category=ge)}}y.isModified=!0}}else if(x===Zi){var Ae=a.propertyName;a.object===y.model&&Ae==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},Os.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof Xn&&(y=b.mh(y),y=x.Vb(y),b=a.pg(),y!==b&&(b=a.kh(),y!==null?b!==null?x.isTreePathToChildren?b.fromNode=y:b.toNode=y:sv(this,y,a):b!==null&&xp(x,b,!1)))}}},Os.prototype.updateDataBindings=function(a,y){bi.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},Os.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=sg(y,x),E=this.Lc(a);if(b!==null&&E!==null){for(b=b.iterator;b.next();){var te=b.value;y.lb(te)&&E instanceof Xn&&y.mh(te)===x&&sv(this,E,this.ii(te))}ml(y,x)}a=y.mh(a),a!==void 0&&E instanceof Xn&&(a=this.Vb(a),sv(this,a,E))}},Os.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Xn){var x=y.wa(a.data),b=this.Kc(a.data);if(b!==null){b.isSelected=!1,b.isHighlighted=!1;var E=b.layer;if(E!==null){var te=E.pc(-1,b,!1);0<=te&&this.diagram.cb(Eo,"parts",E,b,null,te,null),te=b.layerChanged,te!==null&&te(b,E,null)}}for(b=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)E=a.value,E=(b?E.toNode:E.fromNode).data,y.lb(E)&&gl(y,x,E)}},Os.prototype.insertLink=function(a,y,x){y=this.diagram.model;var b=a,E=x;return this.diagram.isTreePathToChildren||(b=x,E=a),b!==null&&E!==null?(y.qe(E.data,y.wa(b.data)),E.kh()):null},Os.prototype.findLinkForKey=Os.prototype.findLinkForKey,Os.className="TreePartManager";function or(a,y){this.kl=new Ln,this.il=new Ln,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,zr(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new qn,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 qn,this.Lt=new Tn,this.Wg=!1,this.o=null,this.undoManager=new Ji,a!==void 0&&(Sn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}or.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},or.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},or.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},or.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 x=a.length,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Dn(E)}}return y},or.prototype.xA=function(a){a.change!==ts&&zt("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof _o?(wS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},or.prototype.Qv=function(a,y){var x=this,b=!1,E=new Ln,te=new Ln,ne=new Ln,se=this.vh;a.changes.each(function(Ae){Ae.model===x&&(Ae.modelChange==="nodeDataArray"?Ae.change===lo?E.add(Ae.newValue):Ae.change===Eo&&ne.add(Ae.oldValue):x.lb(Ae.object)?te.add(Ae.object):Ae.change!==Zi||x.modelData!==Ae.object&&Ae.propertyName!=="modelData"?Ae.object!==null&&(se&&se.contains(Ae.object)?se.get(Ae.object).each(function(Ue){x.lb(Ue)&&te.add(Ue)}):Ae.object instanceof or||x.ri()&&x.Jc(Ae.object)||bS(x,Ae.object).each(function(Ue){te.add(Ue)})):b=!0)});var ce=this.il;ce.clear(),E.each(function(Ae){ce.add(x.wa(Ae)),y||te.add(Ae)});var ge=this.kl;ge.clear(),ne.each(function(Ae){ge.add(x.wa(Ae)),y&&te.add(Ae)}),a=x.cloneDeep(te.Fa());var xe=null;return b&&(xe===null&&(xe={}),xe.modelData=this.cloneDeep(this.modelData)),0<ce.count&&(xe===null&&(xe={}),y?xe.removedNodeKeys=ce.Fa():xe.insertedNodeKeys=ce.Fa()),0<a.length&&(xe===null&&(xe={}),xe.modifiedNodeData=a),0<ge.count&&(xe===null&&(xe={}),y?xe.insertedNodeKeys=ge.Fa():xe.removedNodeKeys=ge.Fa()),ge.clear(),ce.clear(),xe},or.prototype.cloneDeep=function(a){return Af(this,a,!0)};function Af(a,y,x,b,E,te){function ne(Ae,Ue){se?(Ae.__gohashid===void 0&&te.push(Ae),b.set(Ae,Ue)):(Ae=fi++,b.set(Ae,Ue),E.set(Ae,y))}if(!gn(y))return y;te||(te=[]);var se=Object.isExtensible(y);if(b||(b=new qn),se){var ce=b.get(y);if(ce)return ce}else for(E||(E=new qn),ce=E.iterator;ce.next();){var ge=ce.key;if(ce.value===y&&(ge=b.get(ge)))return ge}if(Array.isArray(y)){ce=[],ne(y,ce);for(var xe=0;xe<y.length;xe++)ce.push(Af(a,y[xe],!1,b,E,te))}else if(y instanceof Nt||y instanceof Wn||y instanceof wn||y instanceof mr||y instanceof sr)ce=y.copy(),ne(y,ce);else{if(y instanceof xi||y instanceof Un||y instanceof fn)return y;if(y instanceof Tn)ce=new Tn().addAll(Af(a,y.Fa(),!1,b,E,te)),ne(y,ce);else if(y instanceof Ln)ce=new Ln().addAll(Af(a,y.Fa(),!1,b,E,te)),ne(y,ce);else if(y instanceof qn)ce=new qn().addAll(Af(a,y.Fa(),!1,b,E,te)),ne(y,ce);else if(y instanceof Date)ce=new Date(y.getTime()),ne(y,ce);else if(y instanceof RegExp)ce=new RegExp(y),ne(y,ce),ce.lastIndex=y.lastIndex;else if(typeof y.copy=="function")ce=y.copy(),ne(y,ce);else for(xe in ce={},ne(y,ce),y)xe!=="__gohashid"&&(ce[xe]=Af(a,y[xe],!1,b,E,te))}return x&&te.forEach(function(Ae){delete Ae.__gohashid}),ce}it=or.prototype,it.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},it.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},it.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 xS(a,y){y=y.modelData,gn(y)&&(a.dm(y),a.modelData=y)}it.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!PS(x,a[x])){y=!0;break}return a="",y&&(a=`,
|
|
|
"modelData": `+cy(this,this.modelData)),a+`,
|
|
|
"nodeDataArray": `+Hc(this,this.nodeDataArray,!0)},it.kv=function(a){xS(this,a),a=a.nodeDataArray,Sn(a)&&(this.dm(a),this.nodeDataArray=a)};function wS(a,y){function x(E,te){if((te=te.part)&&(te=te.data,E!==te)){var ne=b.get(E);ne===null?(ne=new Ln,ne.add(te),b.add(E,ne)):ne.add(te)}}var b=a.vh;b===null&&(b=new qn,y.changes.each(function(E){if(E.diagram!==null){var te=E.change;te===Zi?(E=E.object.panel)&&(te=E.data)&&x(te,E):(te===lo||te===Eo)&&(E=E.object,(te=E.itemArray)&&x(te,E))}}),a.vh=b)}function bS(a,y){for(var x=new Ln,b=0;b<a.nodeDataArray.length;b++){var E=a.nodeDataArray[b];lv(a,y,E,E,x)}return x}function lv(a,y,x,b,E){if(Array.isArray(x))for(var te=0;te<x.length;te++){var ne=x[te];if(ne===y)return E.add(b),!0;if(lv(a,y,ne,b,E))return!0}else if(gn(x)&&Object.getPrototypeOf(x)===Object.prototype)for(te in x){if(ne=x[te],ne===y)return E.add(b),!0;if(lv(a,y,ne,b,E))return!0}return!1}it.Pv=function(a,y){var x=this,b=!1,E=new Ln,te=new Ln,ne=new Ln,se=this.vh;a.changes.each(function(xe){xe.model===x&&(xe.modelChange==="nodeDataArray"?xe.change===lo?E.add(xe.newValue):xe.change===Eo&&ne.add(xe.oldValue):x.lb(xe.object)?te.add(xe.object):xe.change!==Zi||x.modelData!==xe.object&&xe.propertyName!=="modelData"?xe.object!==null&&(se&&se.contains(xe.object)?se.get(xe.object).each(function(Ae){x.lb(Ae)&&te.add(Ae)}):xe.object instanceof or||x.ri()&&x.Jc(xe.object)||bS(x,xe.object).each(function(Ae){te.add(Ae)})):b=!0)});var ce=this.il;ce.clear(),E.each(function(xe){ce.add(x.wa(xe)),y||te.add(xe)});var ge=this.kl;return ge.clear(),ne.each(function(xe){ge.add(x.wa(xe)),y&&te.add(xe)}),a="",b&&(a+=`,
|
|
|
"modelData": `+cy(this,this.modelData)),0<ce.count&&(a+=(y?this.Yv:this.Wv)+Hc(this,ce.Fa(),!0)),0<te.count&&(a+=this.jy+Hc(this,te.Fa(),!0)),0<ge.count&&(a+=(y?this.Wv:this.Yv)+Hc(this,ge.Fa(),!0)),ge.clear(),ce.clear(),a},it.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)&&zt("applyIncrementalJson cannot change Model properties"),xS(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new qn;if(Array.isArray(x))for(var E=0;E<x.length;E++){var te=x[E],ne=this.wa(te);ne!=null&&b.set(ne,te)}if(Array.isArray(y))for(E=y.length,te=0;te<E;te++){ne=y[te];var se=this.hc(ne);se===null&&(se=(se=b.get(ne))?se:this.copyNodeData({}),this.km(se,ne),this.xf(se))}if(Array.isArray(x)){for(y=x.length,b=0;b<y;b++)if(E=x[b],te=this.wa(E),te=this.hc(te),te!==null){for(var ce in E)ce==="__gohashid"||ce===this.nodeKeyProperty||this.Wj()&&ce===this.nodeIsGroupProperty||this.setDataProperty(te,ce,E[ce]);this.lm(E,te)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,ce=0;ce<x;ce++)y=this.hc(a[ce]),y!==null&&this.cm(y)},it.$x=function(a,y){a.change!==ts&&zt("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof _o?(y===void 0&&(y=lg(this,this)),wS(this,x),a=this.Pv(x,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},it.yA=function(a,y){return this.$x(a,y)},it.np=function(a){return a===void 0&&(a=lg(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},it.toJSON=function(a){return this.np(a)},it.Zw=function(a){var y=null;if(typeof a=="string")try{y=Rt.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:zt("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&zt("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},it.Ky=function(a){return this.Zw(a)},or.constructGraphLinksModel=function(){return new or},it=or.prototype,it.dm=function(a){if(Sn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(gn(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:zt("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(gn(a)){for(y in a)if(x=a[y],gn(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(E=x.length%2===0,b=0;b<x.length;b++)if(typeof x[b]!="number"){E=!1;break}if(E){for(E=new Tn,b=0;b<x.length/2;b++)E.add(new Nt(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Nx(a)}return a},it.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()):Sn(a)?Hc(this,a):gn(a)?cy(this,a):typeof a=="function"?"null":a.toString()};function Hc(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var E=new Yn;E.add("["),x&&1<b&&E.add(`
|
|
|
`);for(var te=0;te<b;te++){var ne=y[te];ne!==void 0&&(0<te&&(E.add(","),x&&E.add(`
|
|
|
`)),E.add(a.sm(ne)))}return x&&1<b&&E.add(`
|
|
|
`),E.add("]"),E.toString()}function PS(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function Oa(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function cy(a,y){var x=y;if(x instanceof Nt)y={class:"go.Point",x:Oa(x.x),y:Oa(x.y)};else if(x instanceof Wn)y={class:"go.Size",width:Oa(x.width),height:Oa(x.height)};else if(x instanceof wn)y={class:"go.Rect",x:Oa(x.x),y:Oa(x.y),width:Oa(x.width),height:Oa(x.height)};else if(x instanceof mr)y={class:"go.Margin",top:Oa(x.top),right:Oa(x.right),bottom:Oa(x.bottom),left:Oa(x.left)};else if(x instanceof sr)x.sb()?y={class:"go.Spot",x:Oa(x.x),y:Oa(x.y),offsetX:Oa(x.offsetX),offsetY:Oa(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof xi){if(y={class:"go.Brush",type:x.type.name},x.type===Ku?y.color=x.color:(x.type===mu||x.type===Ls)&&(y.start=x.start,y.end=x.end,x.type===Ls&&(x.startRadius!==0&&(y.startRadius=Oa(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Oa(x.endRadius)))),x.colorStops!==null){var b={};for(x=x.colorStops.iterator;x.next();)b[x.key]=x.value;y.colorStops=b}}else x instanceof Un?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Oa(x.startX)),x.startY!==0&&(y.startY=Oa(x.startY)),x.endX!==0&&(y.endX=Oa(x.endX)),x.endY!==0&&(y.endY=Oa(x.endY)),x.spot1.D(Ao)||(y.spot1=x.spot1),x.spot2.D(Qa)||(y.spot2=x.spot2),x.type===Un.o&&(y.path=Un.ia(x))):x instanceof fn&&(y={class:"go.EnumValue",classType:lg(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var te=oo(y,E);if(!PS(E,te))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&te instanceof Tn){var ne="[";for(te=te.iterator;te.next();){var se=te.value;1<ne.length&&(ne+=","),ne+=a.sm(se.x),ne+=",",ne+=a.sm(se.y)}ne+="]",b+=ne}else b+=a.sm(te)}return b+"}"}function Aa(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Nx(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 x=a;if(y==="Point")x=new Nt(Aa(a.x),Aa(a.y));else if(y==="Size")x=new Wn(Aa(a.width),Aa(a.height));else if(y==="Rect")x=new wn(Aa(a.x),Aa(a.y),Aa(a.width),Aa(a.height));else if(y==="Margin")x=new mr(Aa(a.top),Aa(a.right),Aa(a.bottom),Aa(a.left));else if(y==="Spot")typeof a.enum=="string"?x=Fd(a.enum):x=new sr(Aa(a.x),Aa(a.y),Aa(a.offsetX),Aa(a.offsetY));else if(y==="Brush"){if(x=new xi,x.type=_n(xi,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof sr&&(x.start=a.start),a.end instanceof sr&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=Aa(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=Aa(a.endRadius)),a=a.colorStops,gn(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=Un.parse(a.path):x=new Un,x.type=_n(Un,a.type),typeof a.startX=="number"&&(x.startX=Aa(a.startX)),typeof a.startY=="number"&&(x.startY=Aa(a.startY)),typeof a.endX=="number"&&(x.endX=Aa(a.endX)),typeof a.endY=="number"&&(x.endY=Aa(a.endY)),a.spot1 instanceof sr&&(x.spot1=a.spot1),a.spot2 instanceof sr&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=dy(b),typeof b=="function"&&(x=_n(b,a.name)));return x}it.Pe=function(a){return this.Lt.add(a),this},it.ik=function(a){this.Lt.remove(a)},it.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,x=y.length,b=0;b<x;b++)y.M(b)(a)},it.cb=function(a,y,x,b,E,te,ne){bo(this,"",a,y,x,b,E,te,ne)},it.g=function(a,y,x,b,E){bo(this,"",Zi,a,this,y,x,b,E)},it.Fs=function(a,y,x,b,E,te){bo(this,"",Zi,y,a,x,b,E,te)};function bo(a,y,x,b,E,te,ne,se,ce){se===void 0&&(se=null),ce===void 0&&(ce=null);var ge=new $i;ge.model=a,ge.change=x,ge.modelChange=y,ge.propertyName=b,ge.object=E,ge.oldValue=te,ge.oldParam=se,ge.newValue=ne,ge.newParam=ce,a.ds(ge)}or.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===Zi){var x=a.object,b=a.propertyName,E=a.I(y);b===this.nodeKeyProperty&&this.lb(x)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),E!==void 0&&this.kb.add(E,x)),Hi(x,b,E)}else a.change===lo?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,gn(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&dn(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&hn(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!Sn(b)&&a.propertyName&&(b=oo(a.object,a.propertyName)),Sn(b)&&typeof x=="number"&&(a=a.newValue,y?dn(b,x):hn(b,x,a))):zt("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Eo?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,gn(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&hn(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&dn(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!Sn(b)&&a.propertyName&&(b=oo(a.object,a.propertyName)),Sn(b)&&typeof x=="number"&&(a=a.oldValue,y?hn(b,x,a):dn(b,x))):zt("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==ts&&zt("unknown ChangedEvent: "+a.toString())},or.prototype.Ea=function(a){return this.undoManager.Ea(a)},or.prototype.eb=function(a){return this.undoManager.eb(a)},or.prototype.Kf=function(){return this.undoManager.Kf()},or.prototype.commit=function(a,y){y===void 0&&(y="");var x=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=x}},it=or.prototype,it.La=function(a,y){y===void 0&&(y=""),bo(this,"SourceChanged",ts,y,a,null,null)},it.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=oo(a,y),y!==void 0)){if(Uc(y))return y;zt("Key value for node data "+a+" is not a number or a string: "+y)}}},it.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=oo(a,x);b!==y&&this.hc(y)===null&&(Hi(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),bo(this,"nodeKey",Zi,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else Hi(a,x,y)}};function Uc(a){return typeof a=="number"||typeof a=="string"}it.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},it.hc=function(a){return a===null&&zt("Model.findNodeDataForKey:key must not be null"),a!==void 0&&Uc(a)?this.kb.I(a):null},it.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var x=this.wa(a);if(x===void 0||this.kb.contains(x)){var b=this.bl;if(b!==null&&(x=b(this,a),x!=null&&!this.kb.contains(x))){Hi(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;Hi(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;Hi(a,y,x)}}}}},it.xf=function(a){a!==null&&(li(a),this.lb(a)||CS(this,a,!0))};function CS(a,y,x){var b=a.wa(y);(b===void 0||a.kb.I(b)!==y)&&(a.$u(y),b=a.wa(y),b===void 0&&zt("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,hn(a.Tc,b,y)),bo(a,"nodeDataArray",lo,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}it.Fy=function(a){if(Sn(a))for(var y=a.length,x=0;x<y;x++)this.xf(a[x]);else for(a=a.iterator;a.next();)this.xf(a.value)},it.cm=function(a){a!==null&&ES(this,a,!0)};function ES(a,y,x){var b=a.wa(y);if(b!==void 0&&a.kb.remove(b),b=null,x){e:if(x=a.Tc,Array.isArray(x))b=x.indexOf(y);else{b=x.length;for(var E=0;E<b;E++)if(x[E]===y){b=E;break e}b=-1}if(0>b)return;dn(a.Tc,b)}bo(a,"nodeDataArray",Eo,"nodeDataArray",a,y,null,b,null),a.qp(y)}it.nA=function(a){if(Sn(a))for(var y=a.length,x=0;x<y;x++)this.cm(a[x]);else for(a=a.iterator;a.next();)this.cm(a.value)},it.$z=function(a){if(a!==this.nodeDataArray&&Sn(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var te=a[E],ne=this.wa(te);if(ne!==void 0){x.add(ne);var se=this.hc(ne);se!==te&&(se!==null?(this.Do(se,te),this.lm(te,se)):(te=this.cloneDeep(te),this.km(te,ne),this.xf(te)))}else ne=this.cloneDeep(te),this.xf(ne),x.add(this.wa(ne))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.hc(b))&&this.cm(b);y.clear(),x.clear()}},it.jp=function(a,y){y!==void 0&&(a=sg(this,a),a instanceof Ln&&this.Vf.add(y,a))},it.Lv=function(){},it.fm=function(){},it.em=function(){},it.qp=function(){};function gl(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new Ln,a.Vf.add(y,b)),b.add(x)}}function ml(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof Ln&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function sg(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof Ln?a:null)}it.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},or.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):uv(this,a,!0),gn(a)&&zr(a),a};function uv(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var E=uv(a,y[x],a.copiesArrayObjects);b.push(E)}return zr(b),b}if(x&&gn(y)){x=(x=y.constructor)?new x:{},E=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(b in y)if(b==="__gohashid")x.__gohashid=void 0;else if(b===E)x[E]=void 0;else{var te=oo(y,b),ne=lg(a,te);ne==="GraphObject"||ne==="Diagram"||ne==="Layer"||ne==="RowColumnDefinition"||ne==="AnimationManager"||ne==="Tool"||ne==="CommandHandler"||ne==="Layout"||ne==="InputEvent"||ne==="DiagramEvent"||te instanceof or||te instanceof Ji||te instanceof _o||te instanceof $i||(te=uv(a,te,!1)),Hi(x,b,te)}return zr(x),x}return y instanceof Nt||y instanceof Wn||y instanceof wn||y instanceof sr||y instanceof mr?y.copy():y}or.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}}else!MS&&a instanceof Jt&&(MS=!0,$n('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),$n(" Is that really your intent?"));var b=oo(a,y);b!==x&&(Hi(a,y,x),this.Fs(a,y,b,x))},it=or.prototype,it.set=function(a,y,x){this.setDataProperty(a,y,x)},it.Do=function(a,y){if(y){var x=this.lb(a),b;for(b in y)b==="__gohashid"||x&&b===this.nodeKeyProperty||this.setDataProperty(a,b,y[b])}},it.Ay=function(a,y){this.ts(a,-1,y)},it.ts=function(a,y,x){0>y&&(y=a.length),hn(a,y,x),bo(this,"",lo,"",a,null,x,null,y)},it.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&zt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];dn(a,y),bo(this,"",Eo,"",a,x,null,y,null)},it.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=oo(a,y),y===void 0))return"";if(typeof y=="string")return y;zt("getCategoryForNodeData found a non-string category for "+a+": "+y)},it.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=oo(a,x);b===void 0&&(b=""),b!==y&&(Hi(a,x,y),bo(this,"nodeCategory",Zi,x,a,b,y))}else Hi(a,x,y)}},it.lm=function(a,y){this.jm(y,this.Ro(a))},it.Tl=function(){return!1},it.Wj=function(){return!1},it.ri=function(){return!1},it.xs=function(){return!1},it.Xj=function(){return!1};function hy(){return new or}function lg(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 lg(a,y.constructor);return typeof y}function dy(a){return il[a]?il[a]:Rt.go!==void 0&&Rt.go[a]?Rt.go[a]:null}function oo(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(b){}return x}function Hi(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(b){}}Lt.Object.defineProperties(or.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===""&&zt("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&zt("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 x=a.length,b=0;b<x;b++){var E=a[b];gn(E)||zt("Model.nodeDataArray must only contain Objects, not: "+E),li(E)}for(this.Tc=a,b=new Tn,E=0;E<x;E++){var te=a[E],ne=this.wa(te);ne===void 0||this.kb.I(ne)!==null?b.add(te):this.kb.add(ne,te)}for(b=b.iterator;b.next();)E=b.value,this.$u(E),te=this.wa(E),te!==void 0&&this.kb.add(te,E);for(bo(this,"nodeDataArray",Zi,"nodeDataArray",this,y,a),y=0;y<x;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"}}}),or.prototype.setCategoryForNodeData=or.prototype.jm,or.prototype.getCategoryForNodeData=or.prototype.Ro,or.prototype.removeArrayItem=or.prototype.ov,or.prototype.insertArrayItem=or.prototype.ts,or.prototype.addArrayItem=or.prototype.Ay,or.prototype.assignAllDataProperties=or.prototype.Do,or.prototype.set=or.prototype.set,or.prototype.clearUnresolvedReferences=or.prototype.Qy,or.prototype.mergeNodeDataArray=or.prototype.$z,or.prototype.removeNodeDataCollection=or.prototype.nA,or.prototype.removeNodeData=or.prototype.cm,or.prototype.addNodeDataCollection=or.prototype.Fy,or.prototype.addNodeData=or.prototype.xf,or.prototype.makeNodeDataKeyUnique=or.prototype.$u,or.prototype.findNodeDataForKey=or.prototype.hc,or.prototype.containsNodeData=or.prototype.lb,or.prototype.setKeyForNodeData=or.prototype.km,or.prototype.getKeyForNodeData=or.prototype.wa,or.prototype.updateTargetBindings=or.prototype.La,or.prototype.commit=or.prototype.commit,or.prototype.rollbackTransaction=or.prototype.Kf,or.prototype.commitTransaction=or.prototype.eb,or.prototype.startTransaction=or.prototype.Ea,or.prototype.raiseDataChanged=or.prototype.Fs,or.prototype.raiseChanged=or.prototype.g,or.prototype.raiseChangedEvent=or.prototype.cb,or.prototype.removeChangedListener=or.prototype.ik,or.prototype.addChangedListener=or.prototype.Pe,or.prototype.writeJsonValue=or.prototype.sm,or.prototype.replaceJsonObjects=or.prototype.dm,or.prototype.applyIncrementalJSON=or.prototype.Ky,or.prototype.applyIncrementalJson=or.prototype.Zw,or.prototype.toJSON=or.prototype.toJSON,or.prototype.toJson=or.prototype.np,or.prototype.toIncrementalJSON=or.prototype.yA,or.prototype.toIncrementalJson=or.prototype.$x,or.prototype.toIncrementalData=or.prototype.xA,or.prototype.clear=or.prototype.clear;var MS=!1,il={};or.className="Model",or.fromJSON=or.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Rt.JSON.parse(a)}catch(te){}else typeof a=="object"?x=a:zt("Unable to construct a Model from: "+a);if(y===null){a=null;var b=x.class;if(typeof b=="string")try{var E=null;b.indexOf("go.")===0?(b=b.substr(3),E=dy(b)):(E=dy(b),E===null&&(E=Rt[b])),typeof E=="function"&&(a=new E)}catch(te){}a===null||a instanceof or?y=a:zt("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=or.constructGraphLinksModel()),y.gp(x),y.kv(x),y},or.safePropertyValue=oo,or.safePropertySet=Hi,il.Brush=xi,il.ChangedEvent=$i,il.Geometry=Un,il.Margin=mr,il.Panel=Rn,il.Point=Nt,il.Rect=wn,il.Size=Wn,il.Spot=sr,il.Transaction=_o,il.UndoManager=Ji;function ho(a,y,x,b){zr(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),x===void 0&&(x=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=x,b===void 0?(this.el=LS,this.wk=null):(this.el=ug,this.wk=b),this.st=new Ln}ho.prototype.copy=function(){var a=new ho;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},it=ho.prototype,it.qb=function(a){a.classType===ho&&(this.mode=a)},it.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return this._isFrozen=!1,this},it.Kx=function(a){return a===void 0&&(a=null),this.mode=ug,this.backConverter=a,this},it.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},it.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function TS(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}it.Mv=function(a,y,x){var b=this.sl;if(x===void 0||b===""||b===x){x=this.xl;var E=this.Im;if(E===null&&x==="")$n("Binding error: target property is the empty string: "+this.toString());else{var te=y;if(b!==""&&(te=oo(y,b)),te!==void 0)if(E===null)x!==""&&Hi(a,x,te);else try{if(x!==""){var ne=E(te,a);Hi(a,x,ne)}else E(te,a)}catch(se){}}}},it.sp=function(a,y,x,b){if(this.el===ug){var E=this.xl;if(x===void 0||E===x){x=this.sl;var te=this.wk,ne=a;if(E!==""&&(ne=oo(a,E)),ne!==void 0&&!this.st.contains(a))try{this.st.add(a);var se=b!==null?b.diagram:null,ce=se!==null?se.model:null;if(te===null){if(x!=="")ce!==null?ce.setDataProperty(y,x,ne):Hi(y,x,ne);else if(ce!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var ge=b.itemIndex,xe=b.panel.itemArray;ce.ov(xe,ge),ce.ts(xe,ge,ne)}}else try{if(x!==""){var Ae=te(ne,y,ce);ce!==null?ce.setDataProperty(y,x,Ae):Hi(y,x,Ae)}else{var Ue=te(ne,y,ce);if(Ue!==void 0&&ce!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var Je=b.itemIndex,rt=b.panel.itemArray;ce.ov(rt,Je),ce.ts(rt,Je,Ue)}}}catch(ht){}}finally{this.st.remove(a)}}}},Lt.Object.defineProperties(ho.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&xn(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&xn(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&xn(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&xn(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&xn(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&xn(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&xn(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&xn(this),this.el=a}}}),ho.prototype.updateSource=ho.prototype.sp,ho.prototype.updateTarget=ho.prototype.Mv,ho.prototype.ofModel=ho.prototype.dA,ho.prototype.ofObject=ho.prototype.cp,ho.prototype.makeTwoWay=ho.prototype.Kx;var jx="Binding",LS=new fn(ho,"OneWay",1),ug=new fn(ho,"TwoWay",2);ho.className="Binding",ho.parseEnum=function(a,y){return function(x){return x=_n(a,x),x===null?y:x}},ho.toString=Dn,ho.OneWay=LS,ho.TwoWay=ug;function ii(a,y,x){or.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new Ln,this.wb=new qn,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&&(Sn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}Xt(ii,or),ii.constructGraphLinksModel=or.constructGraphLinksModel,ii.prototype.cloneProtected=function(a){or.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},it=ii.prototype,it.clear=function(){or.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},it.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 x=a.length,b;for(b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Dn(E)}for(y+=`
|
|
|
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+vs(this,E,!0)+"-->"+vs(this,E,!1)}return y},it.Qv=function(a,y){this.linkKeyProperty===""&&zt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=or.prototype.Qv.call(this,a,y),b=this,E=new Ln,te=new Ln,ne=new Ln,se=this.vh;a.changes.each(function(xe){xe.model===b&&(xe.modelChange==="linkDataArray"?xe.change===lo?E.add(xe.newValue):xe.change===Eo&&ne.add(xe.oldValue):b.Jc(xe.object)?te.add(xe.object):xe.object!==null&&(xe.object!==null&&se&&se.contains(xe.object)?se.get(xe.object).each(function(Ae){b.Jc(Ae)&&te.add(Ae)}):xe.object instanceof or||b.lb(xe.object)||kS(b,xe.object).each(function(Ae){te.add(Ae)})))});var ce=this.il;ce.clear(),E.each(function(xe){ce.add(b.Ac(xe)),y||te.add(xe)});var ge=this.kl;return ge.clear(),ne.each(function(xe){ge.add(b.Ac(xe)),y&&te.add(xe)}),a=b.cloneDeep(te.Fa()),0<ce.count&&(x===null&&(x={}),y?x.removedLinkKeys=ce.Fa():x.insertedLinkKeys=ce.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<ge.count&&(x===null&&(x={}),y?x.insertedLinkKeys=ge.Fa():x.removedLinkKeys=ge.Fa()),ge.clear(),ce.clear(),x},it.rm=function(){var a=or.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},it.gp=function(a){or.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)},it.Rv=function(){var a=or.prototype.Rv.call(this),y=`,
|
|
|
"linkDataArray": `+Hc(this,this.linkDataArray,!0);return a+y},it.kv=function(a){or.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function kS(a,y){for(var x=new Ln,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];lv(a,y,E,E,x)}return x}it.Pv=function(a,y){this.linkKeyProperty===""&&zt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=or.prototype.Pv.call(this,a,y),b=this,E=new Ln,te=new Ln,ne=new Ln,se=this.vh;a.changes.each(function(xe){xe.model===b&&(xe.modelChange==="linkDataArray"?xe.change===lo?E.add(xe.newValue):xe.change===Eo&&ne.add(xe.oldValue):b.Jc(xe.object)?te.add(xe.object):xe.object!==null&&(xe.object!==null&&se&&se.contains(xe.object)?se.get(xe.object).each(function(Ae){b.Jc(Ae)&&te.add(Ae)}):xe.object instanceof or||b.lb(xe.object)||kS(b,xe.object).each(function(Ae){te.add(Ae)})))});var ce=this.il;ce.clear(),E.each(function(xe){ce.add(b.Ac(xe)),y||te.add(xe)});var ge=this.kl;return ge.clear(),ne.each(function(xe){ge.add(b.Ac(xe)),y&&te.add(xe)}),a=x,0<ce.count&&(a+=(y?this.Xv:this.Vv)+Hc(this,ce.Fa(),!0)),0<te.count&&(a+=this.iy+Hc(this,te.Fa(),!0)),0<ge.count&&(a+=(y?this.Vv:this.Xv)+Hc(this,ge.Fa(),!0)),ge.clear(),ce.clear(),a},it.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)&&zt("applyIncrementalJson cannot change Model properties"),or.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,b=0;b<x;b++){var E=y[b],te=this.jh(E);te===null&&(te=this.Jo({}),this.Ks(te,E),this.fi(te))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,b=0;b<x;b++)if(E=y[b],te=this.Ac(E),te=this.jh(te),te!==null){for(var ne in E)ne!=="__gohashid"&&ne!==this.linkKeyProperty&&this.setDataProperty(te,ne,E[ne]);NS(this,E,te)}}if(a=a.removedLinkKeys,Array.isArray(a))for(ne=a.length,y=0;y<ne;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},ii.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===Zi){var x=a.object,b=a.propertyName;if(b===this.linkKeyProperty&&this.Jc(x)){var E=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),E!==void 0&&this.wb.add(E,x),Hi(x,b,E);return}}else if(a.change===lo){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,gn(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)):(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)):0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue));return}}else if(a.change===Eo){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,gn(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue):(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)));return}}or.prototype.changeState.call(this,a,y)}},it=ii.prototype,it.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),Hi(x,this.nodeKeyProperty,a),this.xf(x))}return a}},it.yx=function(a){return vs(this,a,!0)},it.wv=function(a,y){Nf(this,a,y,!0)},it.Bx=function(a){return vs(this,a,!1)},it.Bv=function(a,y){Nf(this,a,y,!1)};function vs(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=oo(y,a),a!==void 0))){if(Uc(a))return a;zt((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Nf(a,y,x,b){if(x===null&&(x=void 0),y!==null){var E=b?a.lf:a.mf;if(E!=="")if(x=a.Vl(x),a.Jc(y)){var te=oo(y,E);te!==x&&(ml(a,te,y),Hi(y,E,x),a.hc(x)===null&&gl(a,x,y),bo(a,b?"linkFromKey":"linkToKey",Zi,E,y,te,x),typeof E=="string"&&a.La(y,E))}else Hi(y,E,x)}}it.zx=function(a){return cv(this,a,!0)},it.xv=function(a,y){jf(this,a,y,!0)},it.Cx=function(a){return cv(this,a,!1)},it.Cv=function(a,y){jf(this,a,y,!1)};function cv(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=oo(y,a),y===void 0?"":y)}function jf(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var te=oo(y,E);te===void 0&&(te=""),te!==x&&(Hi(y,E,x),bo(a,b?"linkFromPortId":"linkToPortId",Zi,E,y,te,x),typeof E=="string"&&a.La(y,E))}else Hi(y,E,x)}}it.Ef=function(a){if(a===null)return hv;var y=this.je;return y===""?hv:(a=oo(a,y),a===void 0?hv:a)},it.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=oo(a,x);if(b===void 0&&(b=hv),b!==y){if(Array.isArray(b))for(var E=b.length,te=0;te<E;te++)ml(this,b[te],a);for(Hi(a,x,y),E=y.length,te=0;te<E;te++){var ne=y[te];this.hc(ne)===null&&gl(this,ne,a)}bo(this,"linkLabelKeys",Zi,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else Hi(a,x,y)}},it.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=oo(a,x);if(b===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(b)){var E=b.indexOf(y);0<=E||(E=b.length,b.push(y),this.Jc(a)&&(this.hc(y)===null&&gl(this,y,a),bo(this,"linkLabelKeys",lo,x,a,null,y,null,E)))}else zt(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},it.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=oo(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(ml(this,y,a),bo(this,"linkLabelKeys",Eo,x,a,y,null,E,null)))}else b!==void 0&&zt(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},it.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=oo(a,y),y!==void 0)){if(Uc(y))return y;zt("Key value for link data "+a+" is not a number or a string: "+y)}}},it.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=oo(a,x);b!==y&&this.jh(y)===null&&(Hi(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),bo(this,"linkKey",Zi,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Hi(a,x,y)}},it.jh=function(a){return a===null&&zt("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Uc(a)?this.wb.I(a):null},it.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var b=this.cl;if(b!==null&&(x=b(this,a),x!=null&&!this.wb.contains(x))){Hi(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;Hi(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Hi(a,y,x)}}}}},it.Jc=function(a){return a===null?!1:this.$f.contains(a)},it.fi=function(a){a!==null&&(li(a),this.Jc(a)||OS(this,a,!0))};function OS(a,y,x){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&&zt("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(b,y)}a.$f.add(y),b=null,x&&(b=a.md.length,a.md.splice(b,0,y)),bo(a,"linkDataArray",lo,"linkDataArray",a,null,y,null,b),fy(a,y)}it.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.fi(a[x]);else for(a=a.iterator;a.next();)this.fi(a.value)},it.bm=function(a){a!==null&&AS(this,a,!0)};function AS(a,y,x){a.$f.remove(y);var b=a.Ac(y);if(b!==void 0&&a.wb.remove(b),b=null,x){if(b=a.md.indexOf(y),0>b)return;a.md.splice(b,1)}if(bo(a,"linkDataArray",Eo,"linkDataArray",a,y,null,b,null),x=vs(a,y,!0),ml(a,x,y),x=vs(a,y,!1),ml(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,te=0;te<E;te++)x=b[te],ml(a,x,y)}it.lA=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.bm(a[x]);else for(a=a.iterator;a.next();)this.bm(a.value)},it.Zz=function(a){if(this.linkKeyProperty===""&&zt("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&Sn(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var te=a[E],ne=this.Ac(te);if(ne!==void 0){x.add(ne);var se=this.jh(ne);se!==te&&(se!==null?(this.Do(se,te),NS(this,te,se)):(te=this.cloneDeep(te),this.Ks(te,ne),this.fi(te)))}else ne=this.cloneDeep(te),this.fi(ne),x.add(this.Ac(ne))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.jh(b))&&this.bm(b);y.clear(),x.clear()}};function fy(a,y){var x=vs(a,y,!0);x=a.Vl(x),a.hc(x)===null&&gl(a,x,y),x=vs(a,y,!1),x=a.Vl(x),a.hc(x)===null&&gl(a,x,y);var b=a.Ef(y);if(Array.isArray(b))for(var E=b.length,te=0;te<E;te++)x=b[te],a.hc(x)===null&&gl(a,x,y)}it.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):uv(this,a,!0),gn(a)&&(zr(a),this.lf!==""&&Hi(a,this.lf,void 0),this.mf!==""&&Hi(a,this.mf,void 0),this.je!==""&&Hi(a,this.je,[])),a},it.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!oo(a,y)},it.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=oo(a,y),y!==void 0)){if(Uc(y))return y;zt("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},it.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=oo(a,x);b!==y&&(ml(this,b,a),Hi(a,x,y),this.hc(y)===null&&gl(this,y,a),bo(this,"nodeGroupKey",Zi,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Hi(a,x,y)}},ii.prototype.copyNodeData=function(a){return a===null?null:(a=or.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||oo(a,this.Je)===void 0||Hi(a,this.Je,void 0),a)},ii.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeGroupKeyProperty){this.mp(a,x);return}}else if(this.Jc(a)){if(y===this.linkFromKeyProperty){Nf(this,a,x,!0);return}if(y===this.linkToKeyProperty){Nf(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){jf(this,a,x,!0);return}if(y===this.linkToPortIdProperty){jf(this,a,x,!1);return}if(y===this.linkKeyProperty){this.Ks(a,x);return}if(y===this.linkCategoryProperty){this.lp(a,x);return}if(y===this.linkLabelKeysProperty){this.Ls(a,x);return}}var b=oo(a,y);b!==x&&(Hi(a,y,x),this.Fs(a,y,b,x))},it=ii.prototype,it.Do=function(a,y){if(y){var x=this.lb(a),b=this.Jc(a),E;for(E in y)E==="__gohashid"||x&&E===this.nodeKeyProperty||x&&E===this.nodeIsGroupProperty&&oo(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},it.jp=function(a,y){or.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y);for(x=this.$f.iterator;x.next();){var b=x.value,E=a,te=y;if(vs(this,b,!0)===E){var ne=this.lf;Hi(b,ne,te),bo(this,"linkFromKey",Zi,ne,b,E,te),typeof ne=="string"&&this.La(b,ne)}if(vs(this,b,!1)===E&&(ne=this.mf,Hi(b,ne,te),bo(this,"linkToKey",Zi,ne,b,E,te),typeof ne=="string"&&this.La(b,ne)),ne=this.Ef(b),Array.isArray(ne))for(var se=ne.length,ce=this.je,ge=0;ge<se;ge++)ne[ge]===E&&(ne[ge]=te,bo(this,"linkLabelKeys",lo,ce,b,E,te,ge,ge))}},it.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;Hi(a,b,x),bo(this,"nodeGroupKey",Zi,b,a,y,x),typeof b=="string"&&this.La(a,b)}},it.Lv=function(){or.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)fy(this,a[x])},it.fm=function(a){or.prototype.fm.call(this,a),a=this.wa(a);var y=sg(this,a);if(y!==null){var x=cn();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;bo(this,"nodeGroupKey",Zi,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(vs(this,b,!0)===a&&(E=this.lf,bo(this,"linkFromKey",Zi,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),vs(this,b,!1)===a&&(E=this.mf,bo(this,"linkToKey",Zi,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),E=this.Ef(b),Array.isArray(E))for(var te=E.length,ne=this.je,se=0;se<te;se++)E[se]===a&&(bo(this,"linkLabelKeys",lo,ne,b,a,a,se,se),x.push(b))}for(y=0;y<x.length;y++)ml(this,a,x[y]);Pn(x)}},it.em=function(a){or.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&gl(this,y,a)},it.qp=function(a){or.prototype.qp.call(this,a);var y=this.lh(a);ml(this,y,a)},it.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=oo(a,y),y===void 0))return"";if(typeof y=="string")return y;zt("getCategoryForLinkData found a non-string category for "+a+": "+y)},ii.prototype.getLinkCategoryForData=function(a){return this.ps(a)},ii.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=oo(a,x);b===void 0&&(b=""),b!==y&&(Hi(a,x,y),bo(this,"linkCategory",Zi,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Hi(a,x,y)}},ii.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},it=ii.prototype,it.lm=function(a,y){or.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function NS(a,y,x){a.lp(x,a.ps(y)),a.wv(x,a.yx(y)),a.Bv(x,a.Bx(y)),a.Ls(x,a.Ef(y)),a.xv(x,a.zx(y)),a.Cv(x,a.Cx(y))}it.Wj=function(){return!0},it.ri=function(){return!0},it.xs=function(){return!0},it.Xj=function(){return!0},Lt.Object.defineProperties(ii.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 x=a.length,b=0;b<x;b++){var E=a[b];gn(E)||zt("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),li(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new Tn,E=0;E<x;E++){var te=a[E],ne=this.Ac(te);ne===void 0||this.wb.I(ne)!==null?b.add(te):this.wb.add(ne,te)}for(b=b.iterator;b.next();)E=b.value,this.Bs(E),te=this.Ac(E),te!==void 0&&this.wb.add(te,E)}for(b=new Ln,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,bo(this,"linkDataArray",Zi,"linkDataArray",this,y,a),y=0;y<x;y++)fy(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 x=this.linkDataArray.length,b=0;b<x;b++){var E=this.linkDataArray[b],te=this.Ac(E);te===void 0&&(this.Bs(E),te=this.Ac(E)),te!==void 0&&this.wb.add(te,E)}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"}}}),ii.prototype.setCategoryForLinkData=ii.prototype.lp,ii.prototype.getCategoryForLinkData=ii.prototype.ps,ii.prototype.assignAllDataProperties=ii.prototype.Do,ii.prototype.setGroupKeyForNodeData=ii.prototype.mp,ii.prototype.getGroupKeyForNodeData=ii.prototype.lh,ii.prototype.isGroupForNodeData=ii.prototype.Yu,ii.prototype.copyLinkData=ii.prototype.Jo,ii.prototype.mergeLinkDataArray=ii.prototype.Zz,ii.prototype.removeLinkDataCollection=ii.prototype.lA,ii.prototype.removeLinkData=ii.prototype.bm,ii.prototype.addLinkDataCollection=ii.prototype.Ey,ii.prototype.addLinkData=ii.prototype.fi,ii.prototype.containsLinkData=ii.prototype.Jc,ii.prototype.makeLinkDataKeyUnique=ii.prototype.Bs,ii.prototype.findLinkDataForKey=ii.prototype.jh,ii.prototype.setKeyForLinkData=ii.prototype.Ks,ii.prototype.getKeyForLinkData=ii.prototype.Ac,ii.prototype.removeLabelKeyForLinkData=ii.prototype.Qx,ii.prototype.addLabelKeyForLinkData=ii.prototype.Bu,ii.prototype.setLabelKeysForLinkData=ii.prototype.Ls,ii.prototype.getLabelKeysForLinkData=ii.prototype.Ef,ii.prototype.setToPortIdForLinkData=ii.prototype.Cv,ii.prototype.getToPortIdForLinkData=ii.prototype.Cx,ii.prototype.setFromPortIdForLinkData=ii.prototype.xv,ii.prototype.getFromPortIdForLinkData=ii.prototype.zx,ii.prototype.setToKeyForLinkData=ii.prototype.Bv,ii.prototype.getToKeyForLinkData=ii.prototype.Bx,ii.prototype.setFromKeyForLinkData=ii.prototype.wv,ii.prototype.getFromKeyForLinkData=ii.prototype.yx,ii.prototype.clear=ii.prototype.clear;var hv=Object.freeze([]);ii.className="GraphLinksModel",il.GraphLinksModel=ii,or.constructGraphLinksModel=or.constructGraphLinksModel=function(){return new ii},or.initDiagramModel=hy=function(){return new ii};function Na(a,y){or.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(Sn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Xt(Na,or),Na.constructGraphLinksModel=or.constructGraphLinksModel,Na.prototype.cloneProtected=function(a){or.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},it=Na.prototype,it.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 x=a.length,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Dn(E)}}return y},it.rm=function(){var a=or.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},it.gp=function(a){or.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},it.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&zt("applyIncrementalJson cannot change Model properties"),or.prototype.fp.call(this,a)},it.Vl=function(a){return a},it.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=oo(a,y),y!==void 0)){if(Uc(y))return y;zt("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},it.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Ke;if(x!=="")if(y=this.Vl(y),this.lb(a)){var b=oo(a,x);b!==y&&(ml(this,b,a),Hi(a,x,y),this.hc(y)===null&&gl(this,y,a),bo(this,"nodeParentKey",Zi,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Hi(a,x,y)}},it.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=oo(a,y),y===void 0)?"":typeof y=="string"?y:(zt("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Na.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Na.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=oo(a,x);b===void 0&&(b=""),b!==y&&(Hi(a,x,y),bo(this,"parentLinkCategory",Zi,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Hi(a,x,y)}},Na.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Na.prototype.copyNodeData=function(a){return a===null?null:(a=or.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||oo(a,this.Ke)===void 0||Hi(a,this.Ke,void 0),a)},Na.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeParentKeyProperty){this.qe(a,x);return}}var b=oo(a,y);b!==x&&(Hi(a,y,x),this.Fs(a,y,b,x))},it=Na.prototype,it.jp=function(a,y){or.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},it.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;Hi(a,b,x),bo(this,"nodeParentKey",Zi,b,a,y,x),typeof b=="string"&&this.La(a,b)}},it.fm=function(a){or.prototype.fm.call(this,a),a=this.wa(a);var y=sg(this,a);if(y!==null){var x=cn();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;bo(this,"nodeParentKey",Zi,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)ml(this,a,x[y]);Pn(x)}},it.em=function(a){or.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&gl(this,y,a)},it.qp=function(a){or.prototype.qp.call(this,a);var y=this.mh(a);ml(this,y,a)},it.lm=function(a,y){or.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},it.Tl=function(){return!0},it.xs=function(){return!0},Lt.Object.defineProperties(Na.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"}}}),Na.prototype.setParentLinkCategoryForNodeData=Na.prototype.Ms,Na.prototype.getParentLinkCategoryForNodeData=Na.prototype.ss,Na.prototype.setParentKeyForNodeData=Na.prototype.qe,Na.prototype.getParentKeyForNodeData=Na.prototype.mh,Na.className="TreeModel",il.TreeModel=Na;function qi(a){Ui.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=ol,this.Ti=0,this.Zv=new Nt,this.Jp=this.me=0,this.Xr=new fg,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=ol,this.K=ja,this.nd=Df,this.hd=oy,this.tf=6,this.Nn=yv,a&&Object.assign(this,a)}Xt(qi,Ui),qi.prototype.cloneProtected=function(a){Ui.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},qi.prototype.qb=function(a){a.classType===qi?a===mv||a===vv||a===pv||a===gv||a===Df?this.sorting=a:a===Ih||a===If||a===ja||a===Kc?this.direction=a:a===qu||a===Wc||a===ol||a===al?this.arrangement=a:(a===bd||a===yv)&&(this.nodeDiameterFormula=a):Ui.prototype.qb.call(this,a)},qi.prototype.createNetwork=function(){return new Ff(this)},qi.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 Tn;y.addAll(a.iterator),a=new Tn;var x=new Tn,b=this.sort(y),E,te,ne=this.Jp,se=this.arrangement,ce=this.nodeDiameterFormula,ge=this.radius;(!isFinite(ge)||0>=ge)&&(ge=NaN);var xe=this.aspectRatio;(!isFinite(xe)||0>=xe)&&(xe=1);var Ae=this.startAngle;isFinite(Ae)||(Ae=0);var Ue=this.sweepAngle;if((!isFinite(Ue)||360<Ue||1>Ue)&&(Ue=360),y=this.spacing,isFinite(y)||(y=NaN),se===al&&ce===bd?se=ol:se===al&&ce!==bd&&(se=this.arrangement),(this.direction===Ih||this.direction===If)&&this.sorting!==Df){for(ce=0;!(ce>=b.length)&&(a.add(b.M(ce)),!(ce+1>=b.length));ce+=2)x.add(b.M(ce+1));this.direction===Ih?(this.arrangement===al&&a.reverse(),b=new Tn,b.addAll(a),b.addAll(x)):(this.arrangement===al&&x.reverse(),b=new Tn,b.addAll(x),b.addAll(a))}ce=b.length;for(var Je=te=E=0;Je<b.length;Je++){var rt=Ae+Ue*te*(this.direction===ja?1:-1)/ce,ht=b.M(Je).diameter;isNaN(ht)&&(ht=Vc(b.M(Je),rt)),360>Ue&&(Je===0||Je===b.length-1)&&(ht/=2),E+=ht,te++}if(isNaN(ge)||se===al){if(isNaN(y)&&(y=6),se!==ol&&se!==al){for(te=-1/0,ne=0;ne<ce;ne++)Je=b.M(ne),E=b.M(ne===ce-1?0:ne+1),isNaN(Je.diameter)&&Vc(Je,0),isNaN(E.diameter)&&Vc(E,0),te=Math.max(te,(Je.diameter+E.diameter)/2);ne=te+y,se===qu?ge=(te+y)/(2*Math.PI/ce):ge=dv(this,ne*(360<=Ue?ce:ce-1),xe,Ae*Math.PI/180,Ue*Math.PI/180)}else ge=dv(this,E+(360<=Ue?ce:ce-1)*(se!==al?y:1.6*y),xe,Ae*Math.PI/180,Ue*Math.PI/180);te=ge*xe}else if(te=ge*xe,Je=py(this,ge,te,Ae*Math.PI/180,Ue*Math.PI/180),isNaN(y))(se===ol||se===al)&&(y=(Je-E)/(360<=Ue?ce:ce-1));else if(se===ol||se===al)Je=(Je-E)/(360<=Ue?ce:ce-1),Je<y?(ge=dv(this,E+y*(360<=Ue?ce:ce-1),xe,Ae*Math.PI/180,Ue*Math.PI/180),te=ge*xe):y=Je;else{for(ne=-1/0,E=0;E<ce;E++)rt=b.M(E),ht=b.M(E===ce-1?0:E+1),isNaN(rt.diameter)&&Vc(rt,0),isNaN(ht.diameter)&&Vc(ht,0),ne=Math.max(ne,(rt.diameter+ht.diameter)/2);ne+=y,E=dv(this,ne*(360<=Ue?ce:ce-1),xe,Ae*Math.PI/180,Ue*Math.PI/180),E>ge?(ge=E,te=ge*xe):ne=Je/(360<=Ue?ce:ce-1)}if(this.kw=se,this.lc=ge,this.Zm=xe,this.lw=Ae,this.Wp=Ue,this.Ti=y,this.me=te,this.Jp=ne,y=b,b=this.kw,se=this.lc,ge=this.lw,xe=this.Wp,Ae=this.Ti,Ue=this.me,ce=this.Jp,this.direction!==Ih&&this.direction!==If||b!==al)if(this.direction===Ih||this.direction===If){switch(ne=0,b){case Wc:ne=180*fv(this,se,Ue,ge,ce)/Math.PI;break;case ol:ce=y=0,ne=a.first(),ne!==null&&(y=Vc(ne,Math.PI/2)),ne=x.first(),ne!==null&&(ce=Vc(ne,Math.PI/2)),ne=180*fv(this,se,Ue,ge,Ae+(y+ce)/2)/Math.PI;break;case qu:ne=xe/y.length}if(this.direction===Ih){switch(b){case Wc:dg(this,a,ge,Kc);break;case ol:hg(this,a,ge,Kc);break;case qu:cg(this,a,xe/2,ge,Kc)}switch(b){case Wc:dg(this,x,ge+ne,ja);break;case ol:hg(this,x,ge+ne,ja);break;case qu:cg(this,x,xe/2,ge+ne,ja)}}else{switch(b){case Wc:dg(this,x,ge,Kc);break;case ol:hg(this,x,ge,Kc);break;case qu:cg(this,x,xe/2,ge,Kc)}switch(b){case Wc:dg(this,a,ge+ne,ja);break;case ol:hg(this,a,ge+ne,ja);break;case qu:cg(this,a,xe/2,ge+ne,ja)}}}else switch(b){case Wc:dg(this,y,ge,this.direction);break;case ol:hg(this,y,ge,this.direction);break;case qu:cg(this,y,xe,ge,this.direction);break;case al:jS(this,y,xe,ge,this.direction)}else jS(this,y,xe,ge-xe/2,ja)}this.updateParts(),this.network=null,this.isValidLayout=!0};function cg(a,y,x,b,E){var te=a.Wp,ne=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var se=y.length,ce=0;ce<se;ce++){var ge=b+(E===ja?ce*x/(360<=te?se:se-1):-(ce*x)/se),xe=y.M(ce),Ae=ne*Math.tan(ge)/a;Ae=Math.sqrt((ne*ne+a*a*Ae*Ae)/(1+Ae*Ae)),xe.centerX=Ae*Math.cos(ge),xe.centerY=Ae*Math.sin(ge),xe.actualAngle=180*ge/Math.PI}}function hg(a,y,x,b){var E=a.lc,te=a.me,ne=a.Ti;x=x*Math.PI/180;for(var se=y.length,ce=0;ce<se;ce++){var ge=y.M(ce),xe=y.M(ce===se-1?0:ce+1),Ae=te*Math.sin(x);ge.centerX=E*Math.cos(x),ge.centerY=Ae,ge.actualAngle=180*x/Math.PI,isNaN(ge.diameter)&&Vc(ge,0),isNaN(xe.diameter)&&Vc(xe,0),ge=fv(a,E,te,b===ja?x:-x,(ge.diameter+xe.diameter)/2+ne),x+=b===ja?ge:-ge}}function dg(a,y,x,b){var E=a.lc,te=a.me,ne=a.Jp;x=x*Math.PI/180;for(var se=y.length,ce=0;ce<se;ce++){var ge=y.M(ce);ge.centerX=E*Math.cos(x),ge.centerY=te*Math.sin(x),ge.actualAngle=180*x/Math.PI,ge=fv(a,E,te,b===ja?x:-x,ne),x+=b===ja?ge:-ge}}function jS(a,y,x,b,E){var te=a.Wp;if(a.mj=0,a.Xr=new fg,360>x){for(te=b+(E===ja?te:-te);0>te;)te+=360;te%=360,180<te&&(te-=360),te*=Math.PI/180,a.gt=te,DS(a,y,x,b,E)}else IS(a,y,x,b,E);a.Xr.commit(y)}function IS(a,y,x,b,E){var te=a.lc,ne=a.Ti,se=a.Zm,ce=te*Math.cos(b*Math.PI/180),ge=a.me*Math.sin(b*Math.PI/180),xe=y.Fa();if(xe.length===3)xe[0].centerX=te,xe[0].centerY=0,xe[1].centerX=xe[0].centerX-xe[0].width/2-xe[1].width/2-ne,xe[1].y=xe[0].y,xe[2].centerX=(xe[0].centerX+xe[1].centerX)/2,xe[2].y=xe[0].y-xe[2].height-ne;else if(xe.length===4)xe[0].centerX=te,xe[0].centerY=0,xe[2].centerX=-xe[0].centerX,xe[2].centerY=xe[0].centerY,xe[1].centerX=0,xe[1].y=Math.min(xe[0].y,xe[2].y)-xe[1].height-ne,xe[3].centerX=0,xe[3].y=Math.max(xe[0].y+xe[0].height+ne,xe[2].y+xe[2].height+ne);else{te=Nt.alloc();for(var Ae=0;Ae<xe.length&&(xe[Ae].centerX=ce,xe[Ae].centerY=ge,!(Ae>=xe.length-1));Ae++)FS(a,ce,ge,xe,Ae,E,te)||BS(a,ce,ge,xe,Ae,E,te),ce=te.x,ge=te.y;if(Nt.free(te),a.mj++,!(23<a.mj)){ce=xe[0].centerX,ge=xe[0].centerY,te=xe[xe.length-1].centerX,Ae=xe[xe.length-1].centerY;var Ue=Math.abs(ce-te)-((xe[0].width+xe[xe.length-1].width)/2+ne),Je=Math.abs(ge-Ae)-((xe[0].height+xe[xe.length-1].height)/2+ne);ne=0,1>Math.abs(Je)?Math.abs(ce-te)<(xe[0].width+xe[xe.length-1].width)/2&&(ne=0):ne=0<Je?Je:1>Math.abs(Ue)?0:Ue,ce=Math.abs(te)>Math.abs(Ae)?0<te!=ge>Ae:0<Ae!=ce<te,(ce=E===ja?ce:!ce)&&(ne=-Math.abs(ne),ne=Math.min(ne,-xe[xe.length-1].width),ne=Math.min(ne,-xe[xe.length-1].height)),a.Xr.compare(ne,xe),1<Math.abs(ne)&&(a.lc=8>a.mj?a.lc-ne/(2*Math.PI):5>xe.length&&10<ne?a.lc/2:a.lc-(0<ne?1.7:-2.3),a.me=a.lc*se,IS(a,y,x,b,E))}}}function DS(a,y,x,b,E){for(var te=a.lc,ne=a.me,se=a.Zm,ce=te*Math.cos(b*Math.PI/180),ge=ne*Math.sin(b*Math.PI/180),xe=Nt.alloc(),Ae=y.Fa(),Ue=0;Ue<Ae.length&&(Ae[Ue].centerX=ce,Ae[Ue].centerY=ge,!(Ue>=Ae.length-1));Ue++)FS(a,ce,ge,Ae,Ue,E,xe)||BS(a,ce,ge,Ae,Ue,E,xe),ce=xe.x,ge=xe.y;if(Nt.free(xe),a.mj++,!(23<a.mj)){if(ce=Math.atan2(ge,ce),ce=E===ja?a.gt-ce:ce-a.gt,ce=Math.abs(ce)<Math.abs(ce-2*Math.PI)?ce:ce-2*Math.PI,te=ce*(te+ne)/2,ne=a.Xr,Math.abs(te)<Math.abs(ne.Pl))for(ne.Pl=te,ne.mk=[],ne.tm=[],ce=0;ce<Ae.length;ce++)ne.mk[ce]=Ae[ce].bounds.x,ne.tm[ce]=Ae[ce].bounds.y;1<Math.abs(te)&&(a.lc=8>a.mj?a.lc-te/(2*Math.PI):a.lc-(0<te?1.7:-2.3),a.me=a.lc*se,DS(a,y,x,b,E))}}function FS(a,y,x,b,E,te,ne){var se=a.lc,ce=a.me,ge=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var xe=!1;if(0<=x!=(te===ja)){if(te=y+a,te>se){if(te=y-a,te<-se)return ne.x=te,ne.y=ge,!1;xe=!0}}else if(te=y-a,te<-se){if(te=y+a,te>se)return ne.x=te,ne.y=ge,!1;xe=!0}return ge=Math.sqrt(1-Math.min(1,te*te/(se*se)))*ce,0>x!==xe&&(ge=-ge),Math.abs(x-ge)>(b[E].height+b[E+1].height)/2?(ne.x=te,ne.y=ge,!1):(ne.x=te,ne.y=ge,!0)}function BS(a,y,x,b,E,te,ne){var se=a.lc,ce=a.me,ge=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(te===ja)){if(te=x-a,te<-ce){if(te=x+a,te>ce){ne.x=ge,ne.y=te;return}b=!0}}else if(te=x+a,te>ce){if(te=x-a,te<-ce){ne.x=ge,ne.y=te;return}b=!0}ge=Math.sqrt(1-Math.min(1,te*te/(ce*ce)))*se,0>y!==b&&(ge=-ge),ne.x=ge,ne.y=te}qi.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},qi.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,x=this.actualCenter;a?x=new Nt(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;E.x+=x.x,E.y+=x.y,E.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},qi.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function py(a,y,x,b,E){var te=a.ty;if(.001>Math.abs(a.Zm-1))return b!==void 0&&E!==void 0?E*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var ne=0,se=b!==void 0&&E!==void 0?E/(te+1):Math.PI/(2*(te+1)),ce=0,ge=0;ge<=te;ge++){b!==void 0&&E!==void 0?ce=b+ge*E/te:ce=ge*Math.PI/(2*te);var xe=Math.sin(ce);ne+=Math.sqrt(1-a*a*xe*xe)*se}return b!==void 0&&E!==void 0?(y>x?y:x)*ne:4*(y>x?y:x)*ne}function dv(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?py(a,1,x,b,E):py(a,1,x))}function fv(a,y,x,b,E){if(.001>Math.abs(a.Zm-1))return E/y;var te=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,ne=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(b+=Math.PI/2);for(var se=0;;se++){var ce=Math.sin(b+se*a);if(ne+=(y>x?y:x)*Math.sqrt(1-te*te*ce*ce)*a,ne>=E)return se*a}}qi.prototype.sort=function(a){switch(this.sorting){case pv:break;case gv:a.reverse();break;case mv:a.sort(this.comparer);break;case vv:a.sort(this.comparer),a.reverse();break;case Df:return this.ak(Ix(a));default:zt("Invalid sorting type.")}return a};function Ix(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new Tn;for(var b=0;b<a.length;b++){var E=-1,te=-1;if(b===0)for(var ne=0;ne<a.length;ne++){var se=a.M(ne).edgesCount;se>E&&(E=se,te=ne)}else for(ne=0;ne<a.length;ne++)se=y[ne],se>E&&(E=se,te=ne);for(x.add(a.M(te)),y[te]=-1,te=a.M(te),ne=te.sourceEdges;ne.next();)E=a.indexOf(ne.value.fromVertex),0>E||0<=y[E]&&y[E]++;for(te=te.destinationEdges;te.next();)E=a.indexOf(te.value.toVertex),0>E||0<=y[E]&&y[E]++}return x}qi.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var b=a.M(x);y[x]=[];for(var E,te=b.destinationEdges;te.next();)E=a.indexOf(te.value.toVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E);for(b=b.sourceEdges;b.next();)E=a.indexOf(b.value.fromVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E)}for(te=[],x=0;x<y.length;x++)te[x]=0;x=[];var ne=[],se=[];b=[],E=new Tn;for(var ce=0,ge=0;ge<y.length;ge++){var xe=y[ge].length;if(xe===1)b.push(ge);else if(xe===0)E.add(a.M(ge));else{if(ce===0)x.push(ge);else{for(var Ae=xe=1/0,Ue=-1,Je=[],rt=0;rt<x.length;rt++)0>y[x[rt]].indexOf(x[rt===x.length-1?0:rt+1])&&Je.push(rt===x.length-1?0:rt+1);if(Je.length===0)for(rt=0;rt<x.length;rt++)Je.push(rt);for(rt=0;rt<Je.length;rt++){for(var ht=Je[rt],Ft=y[ge],Ot=0,_t=0;_t<ne.length;_t++){var Gt=te[ne[_t]],Kt=te[se[_t]];if(Gt<Kt){var Yt=Gt;Gt=Kt}else Yt=Kt;if(Yt<ht&&ht<=Gt)for(Kt=0;Kt<Ft.length;Kt++){var on=Ft[Kt];0>x.indexOf(on)||Yt<te[on]&&te[on]<Gt||Yt===te[on]||Gt===te[on]||Ot++}else for(Kt=0;Kt<Ft.length;Kt++)on=Ft[Kt],0>x.indexOf(on)||Yt<te[on]&&te[on]<Gt&&Yt!==te[on]&&Gt!==te[on]&&Ot++}for(Ft=Ot,_t=Ot=0;_t<y[ge].length;_t++)Yt=x.indexOf(y[ge][_t]),0<=Yt&&(Yt=Math.abs(ht-(Yt>=ht?Yt+1:Yt)),Ot+=Yt<x.length+1-Yt?Yt:x.length+1-Yt);for(_t=0;_t<ne.length;_t++)Yt=te[ne[_t]],Gt=te[se[_t]],Yt>=ht&&Yt++,Gt>=ht&&Gt++,Yt>Gt&&(Kt=Gt,Gt=Yt,Yt=Kt),Gt-Yt<(x.length+2)/2==(Yt<ht&&ht<=Gt)&&Ot++;(Ft<xe||Ft===xe&&Ot<Ae)&&(xe=Ft,Ae=Ot,Ue=ht)}for(x.splice(Ue,0,ge),xe=0;xe<x.length;xe++)te[x[xe]]=xe;for(xe=0;xe<y[ge].length;xe++)Ae=y[ge][xe],0<=x.indexOf(Ae)&&(ne.push(ge),se.push(Ae))}ce++}}for(ne=x.length;;){for(te=!0,se=0;se<b.length;se++)if(ce=b[se],ge=y[ce][0],xe=x.indexOf(ge),0<=xe){for(Ue=Ae=0;Ue<y[ge].length;Ue++)Je=x.indexOf(y[ge][Ue]),0>Je||Je===xe||(rt=Je>xe?Je-xe:xe-Je,Ae+=Je<xe!=rt>ne-rt?1:-1);x.splice(0>Ae?xe:xe+1,0,ce),b.splice(se,1),se--}else te=!1;if(te)break;x.push(b[0]),b.splice(0,1)}for(y=0;y<x.length;y++)E.add(a.M(x[y]));return E},Lt.Object.defineProperties(qi.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!==al&&a!==ol&&a!==Wc&&a!==qu||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==ja&&a!==Kc&&a!==Ih&&a!==If||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==pv&&a!==gv&&a!==mv&&!vv&&a!==Df||(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!==yv&&a!==bd||(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 ol=new fn(qi,"ConstantSpacing",0),Wc=new fn(qi,"ConstantDistance",1),qu=new fn(qi,"ConstantAngle",2),al=new fn(qi,"Packed",3),ja=new fn(qi,"Clockwise",4),Kc=new fn(qi,"Counterclockwise",5),Ih=new fn(qi,"BidirectionalLeft",6),If=new fn(qi,"BidirectionalRight",7),pv=new fn(qi,"Forwards",8),gv=new fn(qi,"Reverse",9),mv=new fn(qi,"Ascending",10),vv=new fn(qi,"Descending",11),Df=new fn(qi,"Optimized",12),yv=new fn(qi,"Pythagorean",13),bd=new fn(qi,"Circular",14);qi.className="CircularLayout",qi.ConstantSpacing=ol,qi.ConstantDistance=Wc,qi.ConstantAngle=qu,qi.Packed=al,qi.Clockwise=ja,qi.Counterclockwise=Kc,qi.BidirectionalLeft=Ih,qi.BidirectionalRight=If,qi.Forwards=pv,qi.Reverse=gv,qi.Ascending=mv,qi.Descending=vv,qi.Optimized=Df,qi.Pythagorean=yv,qi.Circular=bd;function fg(){this.Pl=-1/0,this.tm=this.mk=null}fg.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},fg.prototype.commit=function(a){if(this.mk!==null&&this.tm!==null)for(var y=0;y<this.mk.length;y++){var x=a.M(y);x.x=this.mk[y],x.y=this.tm[y]}},fg.className="VertexArrangement";function Ff(a){Ii.call(this,a)}Xt(Ff,Ii),Ff.prototype.createVertex=function(){return new pg(this)},Ff.prototype.createEdge=function(){return new Sv(this)},Ff.className="CircularNetwork";function pg(a){To.call(this,a),this.u=this.Si=NaN}Xt(pg,To);function Vc(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===al)if(x.nodeDiameterFormula===bd)a.Si=Math.max(a.width,a.height);else{if(x=Math.abs(Math.sin(y)),y=Math.abs(Math.cos(y)),x===0)return a.width;if(y===0)return a.height;a.Si=Math.min(a.height/x,a.width/y)}else a.Si=x.nodeDiameterFormula===bd?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}Lt.Object.defineProperties(pg.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)}}}),pg.className="CircularVertex";function Sv(a){os.call(this,a)}Xt(Sv,os),Sv.className="CircularEdge";function na(a){Ui.call(this),this.ah=null,this.An=0,this.$d=new Wn(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)}Xt(na,Ui),na.prototype.cloneProtected=function(a){Ui.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},na.prototype.createNetwork=function(){return new Pd(this)},na.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 x=y.value;x.charge=this.electricalCharge(x),x.mass=this.gravitationalMass(x)}for(y=this.network.edges.iterator;y.next();)x=y.value,x.stiffness=this.springStiffness(x),x.length=this.springLength(x);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,x=y.Zx();for(var b=x.iterator;b.next();){this.network=b.value;for(var E=this.network.vertexes.iterator;E.next();){var te=E.value;te.Vd=te.vertexes.count,te.sh=1,te.Hj=null,te.We=null}RS(this,0,a)}this.network=y;var ne=b=x.iterator;b=this.arrangementSpacing;var se=ne.count,ce=!0;te=E=0;for(var ge=cn(),xe=0;xe<se+y.vertexes.count+2;xe++)ge[xe]=null;se=0,ne.reset();for(var Ae=wn.alloc();ne.next();)if(xe=ne.value,this.computeBounds(xe,Ae),ce)ce=!1,E=Ae.x+Ae.width/2,te=Ae.y+Ae.height/2,ge[0]=new Nt(Ae.x+Ae.width+b.width,Ae.y),ge[1]=new Nt(Ae.x,Ae.y+Ae.height+b.height),se=2;else{var Ue=_S(ge,se,E,te,Ae.width,Ae.height,b),Je=ge[Ue],rt=new Nt(Je.x+Ae.width+b.width,Je.y),ht=new Nt(Je.x,Je.y+Ae.height+b.height);for(Ue+1<se&&ge.splice(Ue+1,0,null),ge[Ue]=rt,ge[Ue+1]=ht,se++,Ue=Je.x-Ae.x,Je=Je.y-Ae.y,xe=xe.vertexes.iterator;xe.next();)rt=xe.value,rt.centerX+=Ue,rt.centerY+=Je}for(wn.free(Ae),xe=y.vertexes.iterator;xe.next();)ne=xe.value,Ue=ne.bounds,2>se?(E=Ue.x+Ue.width/2,te=Ue.y+Ue.height/2,ge[0]=new Nt(Ue.x+Ue.width+b.width,Ue.y),ge[1]=new Nt(Ue.x,Ue.y+Ue.height+b.height),se=2):(ce=_S(ge,se,E,te,Ue.width,Ue.height,b),Ae=ge[ce],Je=new Nt(Ae.x+Ue.width+b.width,Ae.y),Ue=new Nt(Ae.x,Ae.y+Ue.height+b.height),ce+1<se&&ge.splice(ce+1,0,null),ge[ce]=Je,ge[ce+1]=Ue,se++,ne.centerX=Ae.x+ne.width/2,ne.centerY=Ae.y+ne.height/2);for(Pn(ge),b=x.iterator;b.next();){for(x=b.value,E=x.vertexes.iterator;E.next();)y.dh(E.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}GS(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},na.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,b=this.network.vertexes.iterator;b.next();){if(b.value.bounds.Yc(x)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},na.prototype.computeBounds=function(a,y){var x=!0;for(a=a.vertexes.iterator;a.next();){var b=a.value;x?(x=!1,y.set(b.bounds)):y.ed(b.bounds)}return y};function RS(a,y,x){if(Dx(a,y)){var b=a.Zf;a.Zf*=1+1/(y+1);var E=Fx(a,y),te=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=te,RS(a,y+1,x),GS(a,te),Bx(a,E),y=E.vertexes.Fa(),y.sort(function(ne,se){return ne===null||se===null||ne===se?0:se.Vd-ne.Vd}),x=0;x<y.length;x++)Rx(a,y[x]);a.Zf=b}}function Dx(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(x,b){return x===null||b===null||x===b?0:b.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function Fx(a,y){for(var x=a.network,b=new Pd(a),E=0;E<a.ah.length;E++){var te=a.ah[E];if(1<te.Vd){b.dh(te);var ne=new HS;ne.Rs=te.Vd,ne.Ss=te.width,ne.Qs=te.height,ne.Sv=te.focus.x,ne.Tv=te.focus.y,te.We===null&&(te.We=new Tn),te.We.add(ne),te.sv=te.We.count-1}else break}for(te=x.edges.iterator;te.next();){var se=te.value;E=se.fromVertex,ne=se.toVertex,E.network===b&&ne.network===b?b.Bo(se):E.network===b?(se=E.Hj,se===null&&(se=new Tn,E.Hj=se),se.add(ne),E.Vd--,E.sh+=ne.sh):ne.network===b&&(se=ne.Hj,se===null&&(se=new Tn,ne.Hj=se),se.add(E),ne.Vd--,ne.sh+=E.sh)}for(E=b.edges.iterator;E.next();)te=E.value,te.length*=Math.max(1,qt.sqrt((te.fromVertex.sh+te.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){E=y.value;var ce=E.Hj;if(ce!==null&&0<ce.count&&(ne=E.We.M(E.We.count-1).Rs-E.Vd,!(0>=ne))){for(var ge=se=0,xe=ce.count-ne;xe<ce.count;xe++){var Ae=ce.M(xe),Ue=null;for(te=Ae.edges.iterator;te.next();){var Je=te.value;if(Je.Ax(Ae)===E){Ue=Je;break}}Ue!==null&&(ge+=Ue.length,se+=Ae.width*Ae.height)}te=E.centerX,ce=E.centerY,xe=E.width,Ae=E.height,Ue=E.focus,Je=xe*Ae,1>Je&&(Je=1),se=qt.sqrt((se+Je+ge*ge*4/(ne*ne))/Je),ne=(se-1)*xe/2,se=(se-1)*Ae/2,E.bounds=new wn(te-Ue.x-ne,ce-Ue.y-se,xe+2*ne,Ae+2*se),E.focus=new Nt(Ue.x+ne,Ue.y+se)}}return a.network=b,x}function Bx(a,y){for(var x=a.network.vertexes.iterator;x.next();){var b=x.value;if(b.network=y,b.We!==null){var E=b.We.M(b.sv);b.Vd=E.Rs;var te=E.Sv,ne=E.Tv;b.bounds=new wn(b.centerX-te,b.centerY-ne,E.Ss,E.Qs),b.focus=new Nt(te,ne),b.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Rx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var b=y.centerX,E=y.centerY,te=y.width,ne=y.height;y.We!==null&&0<y.We.count&&(ne=y.We.M(0),te=ne.Ss,ne=ne.Qs),te=qt.sqrt(te*te+ne*ne)/2;for(var se=!1,ce=ne=0,ge=0,xe=y.vertexes.iterator;xe.next();){var Ae=xe.value;1>=Ae.Vd?ce++:(se=!0,ge++,ne+=Math.atan2(y.centerY-Ae.centerY,y.centerX-Ae.centerX))}if(ce!==0){for(0<ge&&(ne/=ge),ge=y=0,y=se?2*Math.PI/(ce+1):2*Math.PI/ce,ce%2===0&&(ge=y/2),1<x.count&&x.sort(function(Je,rt){return Je===null||rt===null||Je===rt?0:rt.width*rt.height-Je.width*Je.height}),se=ce%2===0?0:1,x=x.iterator;x.next();)if(ce=x.value,!(1<ce.Vd||a.isFixed(ce))){for(xe=null,Ae=ce.edges.iterator;Ae.next();){xe=Ae.value;break}Ae=ce.width;var Ue=ce.height;Ae=qt.sqrt(Ae*Ae+Ue*Ue)/2,xe=te+xe.length+Ae,Ae=ne+(y*(se/2>>1)+ge)*(se%2===0?1:-1),ce.centerX=b+xe*Math.cos(Ae),ce.centerY=E+xe*Math.sin(Ae),se++}}}}function _S(a,y,x,b,E,te,ne){var se=9e19,ce=-1,ge=0;e:for(;ge<y;ge++){var xe=a[ge],Ae=xe.x-x,Ue=xe.y-b;if(Ae=Ae*Ae+Ue*Ue,Ae<se){for(Ue=ge-1;0<=Ue;Ue--)if(a[Ue].y>xe.y&&a[Ue].x-xe.x<E+ne.width)continue e;for(Ue=ge+1;Ue<y;Ue++)if(a[Ue].x>xe.x&&a[Ue].y-xe.y<te+ne.height)continue e;ce=ge,se=Ae}}return ce}na.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},na.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var x=y.value;if(x.category==="Comment"&&x.isVisible()){var b=this.network.ki(x);b===null&&(b=this.network.Bl(x)),b.charge=this.defaultCommentElectricalCharge,x=null;for(var E=b.destinationEdges;E.next();){var te=E.value;if(te.toVertex===a){x=te;break}}if(x===null){for(E=b.sourceEdges;E.next();)if(te=E.value,te.fromVertex===a){x=te;break}}x===null&&(x=this.network.Zj(a,b,null)),x.length=this.defaultCommentSpringLength}}};function zS(a,y){var x=a.bounds,b=x.x;a=x.y;var E=x.width;x=x.height;var te=y.bounds,ne=te.x;y=te.y;var se=te.width;return te=te.height,b+E<ne?a>y+te?(x=b+E-ne,a=a-y-te,qt.sqrt(x*x+a*a)):a+x<y?(b=b+E-ne,a=a+x-y,qt.sqrt(b*b+a*a)):ne-(b+E):b>ne+se?a>y+te?(x=b-ne-se,a=a-y-te,qt.sqrt(x*x+a*a)):a+x<y?(b=b-ne-se,a=a+x-y,qt.sqrt(b*b+a*a)):b-(ne+se):a>y+te?a-(y+te):a+x<y?y-(a+x):.1}function GS(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,_x(a)););a.ah=null}function _x(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var b=x.centerX,E=b,te=x=x.centerY,ne=1;ne<y.length;ne++){var se=y[ne];se.forceX=0,se.forceY=0;var ce=se.centerX;se=se.centerY,b=Math.min(b,ce),E=Math.max(E,ce),x=Math.min(x,se),te=Math.max(te,se)}(E=E-b>te-x)?y.sort(function(ht,Ft){return ht===null||Ft===null||ht===Ft?0:ht.centerX-Ft.centerX}):y.sort(function(ht,Ft){return ht===null||Ft===null||ht===Ft?0:ht.centerY-Ft.centerY}),x=a.Zf;var ge=b=se=0;for(te=0;te<y.length;te++){ne=y[te],b=ne.bounds,se=ne.focus,ce=b.x+se.x;var xe=b.y+se.y;b=ne.charge*a.electricalFieldX(ce,xe),ge=ne.charge*a.electricalFieldY(ce,xe),b+=ne.mass*a.gravitationalFieldX(ce,xe),ge+=ne.mass*a.gravitationalFieldY(ce,xe),ne.forceX+=b,ne.forceY+=ge;for(var Ae=te+1;Ae<y.length;Ae++){var Ue=y[Ae];if(Ue!==ne){b=Ue.bounds,se=Ue.focus,ge=b.x+se.x;var Je=b.y+se.y;if(ce-ge>x||ge-ce>x){if(E)break}else if(xe-Je>x||Je-xe>x){if(!E)break}else{var rt=zS(ne,Ue);1>rt?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new xv),rt=b.random(),se=b.random(),ce>ge?(b=Math.abs(Ue.bounds.right-ne.bounds.x),b=(1+b)*rt):ce<ge?(b=Math.abs(Ue.bounds.x-ne.bounds.right),b=-(1+b)*rt):(b=Math.max(Ue.width,ne.width),b=(1+b)*rt-b/2),xe>Je?(ge=Math.abs(Ue.bounds.bottom-ne.bounds.y),ge=(1+ge)*se):ce<ge?(ge=Math.abs(Ue.bounds.y-ne.bounds.bottom),ge=-(1+ge)*se):(ge=Math.max(Ue.height,ne.height),ge=(1+ge)*se-ge/2)):(se=-(ne.charge*Ue.charge)/(rt*rt),b=(ge-ce)/rt*se,ge=(Je-xe)/rt*se),ne.forceX+=b,ne.forceY+=ge,Ue.forceX-=b,Ue.forceY-=ge}}}}for(E=a.network.edges.iterator;E.next();)se=E.value,x=se.fromVertex,te=se.toVertex,ne=x.bounds,ce=x.focus,b=ne.x+ce.x,ne=ne.y+ce.y,xe=te.bounds,Ae=te.focus,ce=xe.x+Ae.x,xe=xe.y+Ae.y,Ae=zS(x,te),1>Ae?(Ae=a.randomNumberGenerator,Ae===null&&(a.randomNumberGenerator=Ae=new xv),se=Ae.random(),Ae=Ae.random(),b=(b>ce?1:-1)*(1+(te.width>x.width?te.width:x.width))*se,ge=(ne>xe?1:-1)*(1+(te.height>x.height?te.height:x.height))*Ae):(se=se.stiffness*(Ae-se.length),b=(ce-b)/Ae*se,ge=(xe-ne)/Ae*se),x.forceX+=b,x.forceY+=ge,te.forceX-=b,te.forceY-=ge;for(E=b=0;E<y.length;E++)x=y[E],a.isFixed(x)?a.moveFixedVertex(x):b=Math.max(b,a.moveVertex(x)||0);return b>a.epsilonDistance*a.epsilonDistance}na.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,b=this.moveLimit;return y<-b?y=-b:y>b&&(y=b),x<-b?x=-b:x>b&&(x=b),a.centerX+=y,a.centerY+=x,y*y+x*x},na.prototype.moveFixedVertex=function(){},na.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},na.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=wi,y.toSpot=wi)}},na.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=wn.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,wn.free(x)}x=wn.alloc();for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;(a!==0||y!==0)&&(x.assign(E.bounds),x.x+=a,x.y+=y,E.bounds=x),E.commit()}wn.free(x)},na.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},na.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},na.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},na.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},na.prototype.electricalFieldX=function(){return 0},na.prototype.electricalFieldY=function(){return 0},na.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},na.prototype.gravitationalFieldX=function(){return 0},na.prototype.gravitationalFieldY=function(){return 0},na.prototype.isFixed=function(a){return a.isFixed},Lt.Object.defineProperties(na.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"&&zt('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())}}}),na.className="ForceDirectedLayout";function HS(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}HS.className="ForceDirectedSubnet";function Pd(a){Ii.call(this,a)}Xt(Pd,Ii),Pd.prototype.createVertex=function(){return new gg(this)},Pd.prototype.createEdge=function(){return new mg(this)},Pd.className="ForceDirectedNetwork";function gg(a){To.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}Xt(gg,To),Lt.Object.defineProperties(gg.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)}}}),gg.className="ForceDirectedVertex";function mg(a){os.call(this,a),this.j=this.o=NaN}Xt(mg,os),Lt.Object.defineProperties(mg.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)}}}),mg.className="ForceDirectedEdge";function xv(){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()}xv.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},xv.className="RandomNumberGenerator";function Pi(a){Ui.call(this),this.kc=this.ie=25,this.K=0,this.Dk=Ev,this.Zk=Mv,this.Qk=Tv,this.bj=4,this.rk=Lv,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 Nt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Xt(Pi,Ui),Pi.prototype.cloneProtected=function(a){Ui.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},Pi.prototype.qb=function(a){a.classType===Pi?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:zt("Unknown enum value: "+a):Ui.prototype.qb.call(this,a)},Pi.prototype.createNetwork=function(){return new Rf(this)},Pi.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!==yg&&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===yg&&this.removeCycles(),a=this.network;for(var y=[],x=a.edges.iterator;x.next();){var b=x.value;b.valid=!1,y.push(b)}for(x=0;x<y.length;x++){b=y[x];var E=b.fromVertex,te=b.toVertex;if(!(b.valid||(E.node===null&&E.data===null||te.node===null&&te.data===null)&&E.layer===te.layer)){var ne=0,se=0,ce=0,ge=0;if(b.link!==null){if(se=b.link,se===null)continue;var xe=E.node;if(ne=te.node,xe===null||ne===null)continue;var Ae=se.fromNode;ce=se.toNode;for(var Ue=se.fromPort;Ue!==null&&!Ue.Ed();)Ue=Ue.panel;for(se=se.toPort;se!==null&&!se.Ed();)se=se.panel;if(b.rev){ge=Ae;var Je=Ue;Ae=ce,Ue=se,ce=ge,se=Je}var rt=E.focus;ge=te.focus;var ht=b.rev?te.bounds:E.bounds;Je=Nt.alloc(),xe!==Ae?ht.w()&&Ae.isVisible()?Ae.actualBounds.w()?($u(Ae,Ue,ui,Je),Je.x+=Ae.actualBounds.x-ht.x,Je.y+=Ae.actualBounds.y-ht.y):($u(Ae,Ue,ui,Je),Je.w()||Je.assign(rt)):Je.assign(rt):ht.w()?($u(Ae,Ue,ui,Je),Je.w()||Je.assign(rt)):Je.assign(rt),Ae=b.rev?E.bounds:te.bounds,xe=Nt.alloc(),ne!==ce?Ae.w()&&ce.isVisible()?ce.actualBounds.w()?($u(ce,se,ui,xe),xe.x+=ce.actualBounds.x-Ae.x,xe.y+=ce.actualBounds.y-Ae.y):($u(ce,se,ui,xe),xe.w()||xe.assign(ge)):xe.assign(ge):Ae.w()?($u(ce,se,ui,xe),xe.w()||xe.assign(ge)):xe.assign(ge),this.K===90||this.K===270?(ne=Math.round((Je.x-rt.x)/this.kc),ce=Je.x,se=Math.round((xe.x-ge.x)/this.kc),ge=xe.x):(ne=Math.round((Je.y-rt.y)/this.kc),ce=Je.y,se=Math.round((xe.y-ge.y)/this.kc),ge=xe.y),Nt.free(Je),Nt.free(xe),b.portFromColOffset=ne,b.portFromPos=ce,b.portToColOffset=se,b.portToPos=ge}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(Je=E.layer,xe=te.layer,Ae=0,ht=b.link,ht!==null){var Ft=ht.fromPort,Ot=ht.toPort;if(Ft!==null&&Ot!==null){var _t=ht.fromNode;if(Ue=ht.toNode,_t!==null&&Ue!==null){var Gt=Cv(this,!0),Kt=Cv(this,!1),Yt=this.setsPortSpots?Gt:ht.computeSpot(!0,Ft);rt=this.setsPortSpots?Kt:ht.computeSpot(!1,Ot);var on=ht.isOrthogonal;Yt.$c()&&Yt.Hf(Kt)&&rt.$c()&&rt.Hf(Gt)?Ae=0:(Gt=ht.getLinkPoint(_t,Ft,Yt,!0,on,Ue,Ot,Nt.alloc()),Kt=ht.getLinkDirection(_t,Ft,Gt,Yt,!0,on,Ue,Ot),Nt.free(Gt),Yt.ys()||Kt!==JS(this,b,!0)?this.setsPortSpots&&_t!==null&&_t.ports.count===1&&b.rev&&(Ae+=1):Ae+=1,Yt=ht.getLinkPoint(Ue,Ot,rt,!1,on,_t,Ft,Nt.alloc()),ht=ht.getLinkDirection(Ue,Ot,Yt,rt,!1,on,_t,Ft),Nt.free(Yt),rt.ys()||ht!==JS(this,b,!1)?this.setsPortSpots&&Ue!==null&&Ue.ports.count===1&&b.rev&&(Ae+=2):Ae+=2)}}}if(Ue=Ae,Ae=Ue===1||Ue===3,(Ue=Ue===2||Ue===3)&&(rt=a.createVertex(),rt.node=null,rt.Dj=1,rt.layer=Je,rt.near=E,a.dh(rt),E=a.Zj(E,rt,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=ne,E.portToColOffset=0,E.portFromPos=ce,E.portToPos=0,E=rt),ht=1,Ae&&ht--,Je-xe>ht&&0<Je){for(b.valid=!1,rt=a.createVertex(),rt.node=null,rt.Dj=2,rt.layer=Je-1,a.dh(rt),E=a.Zj(E,rt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=Ue?0:ne,E.portToColOffset=0,E.portFromPos=Ue?0:ce,E.portToPos=0,E=rt,Je--;Je-xe>ht&&0<Je;)rt=a.createVertex(),rt.node=null,rt.Dj=3,rt.layer=Je-1,a.dh(rt),E=a.Zj(E,rt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=rt,Je--;E=a.Zj(rt,te,b.link),E.valid=!Ae,Ae&&(rt.near=te),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=se,E.portFromPos=0,E.portToPos=ge}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,x=this.Md=this.Hn=0;x<=this.Ia;x++)a[x]>a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]<a[this.Hn]&&(this.Hn=x);for(this.fl=[],x=0;x<a.length;x++)this.fl[x]=[];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=Zc(this,a),x=0,b=this.tc[a],te=0;te<b;te++)E=y[te],x+=this.nodeMinColumnSpace(E,!0),E.column=x,x+=1,x+=this.nodeMinColumnSpace(E,!1);this.Ra=Math.max(this.Ra,x-1),$c(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},Pi.prototype.linkMinLength=function(){return 1};function gy(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}Pi.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},Pi.prototype.nodeMinColumnSpace=function(a,y){if(a.node===null&&a.data===null)return 0;var x=y?a.ev:a.dv;return x!==null?x:(x=this.K,x===90||x===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 Ha(a){a.kj===null&&(a.kj=[]);for(var y=0,x=a.network.vertexes.iterator;x.next();){var b=x.value;a.kj[y]=b.layer,y++,a.kj[y]=b.column,y++,a.kj[y]=b.index,y++}return a.kj}function As(a,y){var x=0;for(a=a.network.vertexes.iterator;a.next();){var b=a.value;b.layer=y[x],x++,b.column=y[x],x++,b.index=y[x],x++}}function US(a,y,x){var b=Zc(a,y),E=a.tc[y];(a.Jn===null||a.Jn.length<E*E)&&(a.Jn=[]);for(var te=a.Jn,ne=0;ne<E;ne++){var se=0,ce=b[ne],ge=ce.near;if(ge!==null&&ge.layer===ce.layer)if(ce=ge.index,ce>ne)for(var xe=ne+1;xe<ce;xe++){var Ae=b[xe];Ae.near===ge&&Ae.Dj===ge.Dj||se++}else for(xe=ne-1;xe>ce;xe--)Ae=b[xe],Ae.near===ge&&Ae.Dj===ge.Dj||se++;var Ue;if(0<=x)for(ce=b[ne].sourceEdgesArrayAccess,ge=0;ge<ce.length;ge++){var Je=ce[ge];if(Je.valid&&Je.fromVertex.layer!==y)for(Ae=Je.fromVertex.index,xe=Je.portToPos,Je=Je.portFromPos,Ue=ge+1;Ue<ce.length;Ue++){var rt=ce[Ue];if(rt.valid&&rt.fromVertex.layer!==y){var ht=rt.fromVertex.index,Ft=rt.portToPos;rt=rt.portFromPos,xe<Ft&&(Ae>ht||Ae===ht&&Je>rt)&&se++,Ft<xe&&(ht>Ae||ht===Ae&&rt>Je)&&se++}}}if(0>=x){for(ce=b[ne].destinationEdgesArrayAccess,ge=0;ge<ce.length;ge++)if(Je=ce[ge],Je.valid&&Je.toVertex.layer!==y)for(Ae=Je.toVertex.index,xe=Je.portToPos,Je=Je.portFromPos,Ue=ge+1;Ue<ce.length;Ue++)rt=ce[Ue],rt.valid&&rt.toVertex.layer!==y&&(ht=rt.toVertex.index,Ft=rt.portToPos,rt=rt.portFromPos,Je<rt&&(Ae>ht||Ae===ht&&xe>Ft)&&se++,rt<Je&&(ht>Ae||ht===Ae&&Ft>xe)&&se++)}for(te[ne*E+ne]=se,ce=ne+1;ce<E;ce++){var Ot=0,_t=0;if(0<=x){se=b[ne].sourceEdgesArrayAccess;var Gt=b[ce].sourceEdgesArrayAccess;for(ge=0;ge<se.length;ge++)if(Je=se[ge],Je.valid&&Je.fromVertex.layer!==y)for(Ae=Je.fromVertex.index,Je=Je.portFromPos,Ue=0;Ue<Gt.length;Ue++)rt=Gt[Ue],rt.valid&&rt.fromVertex.layer!==y&&(ht=rt.fromVertex.index,rt=rt.portFromPos,(Ae<ht||Ae===ht&&Je<rt)&&_t++,(ht<Ae||ht===Ae&&rt<Je)&&Ot++)}if(0>=x){for(se=b[ne].destinationEdgesArrayAccess,Gt=b[ce].destinationEdgesArrayAccess,ge=0;ge<se.length;ge++)if(Je=se[ge],Je.valid&&Je.toVertex.layer!==y)for(Ae=Je.toVertex.index,xe=Je.portToPos,Ue=0;Ue<Gt.length;Ue++)rt=Gt[Ue],rt.valid&&rt.toVertex.layer!==y&&(ht=rt.toVertex.index,Ft=rt.portToPos,(Ae<ht||Ae===ht&&xe<Ft)&&_t++,(ht<Ae||ht===Ae&&Ft<xe)&&Ot++)}te[ne*E+ce]=Ot,te[ce*E+ne]=_t}}return $c(a,y,b),te}Pi.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=US(this,y,1),b=this.tc[y],E=0;E<b;E++)for(var te=E;te<b;te++)a+=x[E*b+te];return a};function wv(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,E=x,te=Zc(b,E),ne=b.tc[E],se=0,ce=0;ce<ne;ce++){var ge=te[ce].destinationEdgesArrayAccess;if(ge!==null)for(var xe=0;xe<ge.length;xe++){var Ae=ge[xe];if(Ae.valid&&Ae.toVertex.layer!==E){var Ue=Ae.fromVertex.column+Ae.portFromColOffset,Je=Ae.toVertex.column+Ae.portToColOffset;se+=(Math.abs(Ue-Je)+1)*gy(Ae)}}}$c(b,E,te),y+=se}return y}Pi.prototype.normalize=function(){var a=1/0;this.Ra=-1;for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;a=Math.min(a,x.column-this.nodeMinColumnSpace(x,!0)),this.Ra=Math.max(this.Ra,x.column+this.nodeMinColumnSpace(x,!1))}for(y.reset();y.next();)y.value.column-=a;this.Ra-=a};function my(a,y,x){for(var b=Zc(a,y),E=a.tc[y],te=[],ne=0;ne<E;ne++){var se=b[ne],ce=null;0>=x&&(ce=se.sourceEdgesArrayAccess);var ge=null;0<=x&&(ge=se.destinationEdgesArrayAccess);var xe=0,Ae=0,Ue=se.near;if(Ue!==null&&Ue.layer===se.layer&&(xe+=Ue.column-1,Ae++),ce!==null)for(Ue=0;Ue<ce.length;Ue++){se=ce[Ue];var Je=se.fromVertex;se.valid&&!se.rev&&Je.layer!==y&&(xe+=Je.column,Ae++)}if(ge!==null)for(ce=0;ce<ge.length;ce++)se=ge[ce],Ue=se.toVertex,se.valid&&!se.rev&&Ue.layer!==y&&(xe+=Ue.column,Ae++);te[ne]=Ae===0?-1:xe/Ae}return $c(a,y,b),te}function WS(a,y,x){for(var b=Zc(a,y),E=a.tc[y],te=[],ne=0;ne<E;ne++){var se=b[ne],ce=null;0>=x&&(ce=se.sourceEdgesArrayAccess);var ge=null;0<=x&&(ge=se.destinationEdgesArrayAccess);var xe=0,Ae=[],Ue=se.near;if(Ue!==null&&Ue.layer===se.layer&&(Ae[xe]=Ue.column-1,xe++),se=void 0,ce!==null)for(Ue=0;Ue<ce.length;Ue++){se=ce[Ue];var Je=se.fromVertex;se.valid&&!se.rev&&Je.layer!==y&&(Ae[xe]=Je.column+se.portFromColOffset,xe++)}if(ge!==null)for(ce=0;ce<ge.length;ce++)se=ge[ce],Ue=se.toVertex,se.valid&&!se.rev&&Ue.layer!==y&&(Ae[xe]=Ue.column+se.portToColOffset,xe++);xe===0?te[ne]=-1:(Ae.sort(function(rt,ht){return rt-ht}),ge=xe>>1,te[ne]=xe&1?Ae[ge]:Ae[ge-1]+Ae[ge]>>1)}return $c(a,y,b),te}function vg(a,y,x,b,E,te){if(y.component===b){if(y.component=x,E)for(var ne=y.destinationEdges;ne.next();){var se=ne.value,ce=se.toVertex,ge=y.layer-ce.layer;se=a.linkMinLength(se),ge===se&&vg(a,ce,x,b,E,te)}if(te)for(ne=y.sourceEdges;ne.next();)se=ne.value,ce=se.fromVertex,ge=ce.layer-y.layer,se=a.linkMinLength(se),ge===se&&vg(a,ce,x,b,E,te)}}function vy(a,y,x,b,E,te){if(y.component===b){if(y.component=x,E)for(var ne=y.destinationEdges;ne.next();)vy(a,ne.value.toVertex,x,b,E,te);if(te)for(y=y.sourceEdges;y.next();)vy(a,y.value.fromVertex,x,b,E,te)}}Pi.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case xy:a=this.network;var y=0,x=a.vertexes.count-1,b=[];b.length=x+1;for(var E=a.vertexes.iterator;E.next();)E.value.valid=!0;for(;zx(a)!==null;){for(E=KS(a);E!==null;)b[x]=E,x--,E.valid=!1,E=KS(a);for(E=VS(a);E!==null;)b[y]=E,y++,E.valid=!1,E=VS(a);E=null;for(var te=0,ne=this.network.vertexes.iterator;ne.next();){var se=ne.value;if(se.valid){for(var ce=0,ge=se.destinationEdges;ge.next();)ge.value.toVertex.valid&&ce++;ge=0;for(var xe=se.sourceEdges;xe.next();)xe.value.fromVertex.valid&&ge++;(E===null||te<ce-ge)&&(E=se,te=ce-ge)}}E!==null&&(b[y]=E,y++,E.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 Ev: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&&yy(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&yy(this,y);for(a.reset();a.next();)b=a.value,b.forest||(y=b.fromVertex,x=y.finish,E=b.toVertex,te=E.finish,E.Ll<y.Ll&&x<te&&(this.network.gm(b),b.rev=!0));break;case yg: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();)x=y.value,E=b[x.layer],E===void 0?b[x.layer]=[x]:E.push(x);for(x=y=0;x<b.length;x++)if(E=b[x],!E||E.length===0)y++;else if(0<x)for(te=0;te<E.length;te++)E[te].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 zx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function KS(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.destinationEdges;b.next();)if(b.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function VS(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.sourceEdges;b.next();)if(b.value.fromVertex.valid){x=!1;break}if(x)return y}}return null}function yy(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var b=x.value,E=b.toVertex;E.Ll===-1&&(b.forest=!0,yy(a,E))}y.finish=a.Kn,a.Kn++}Pi.prototype.assignLayers=function(){switch(this.Zk){case wy:ZS(this);break;case by:for(var a,y=this.network.vertexes.iterator;y.next();)a=XS(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 Mv:for(ZS(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&YS(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 x=y.value;x.layer-=a,this.Ia=Math.max(this.Ia,x.layer)}}};function ZS(a){for(var y=a.network.vertexes.iterator;y.next();){var x=$S(a,y.value);a.Ia=Math.max(x,a.Ia)}}function $S(a,y){var x=0;if(y.layer===-1){for(var b=y.destinationEdges;b.next();){var E=b.value,te=E.toVertex;E=a.linkMinLength(E),x=Math.max(x,$S(a,te)+E)}y.layer=x}else x=y.layer;return x}function XS(a,y){var x=0;if(y.layer===-1){for(var b=y.sourceEdges;b.next();){var E=b.value,te=E.fromVertex;E=a.linkMinLength(E),x=Math.max(x,XS(a,te)+E)}y.layer=x}else x=y.layer;return x}function YS(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)YS(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var b=y.sourceEdgesArrayAccess,E=b.length,te=0;te<E;te++){var ne=b[te],se=ne.fromVertex,ce=ne.toVertex;ne=a.linkMinLength(ne),se.layer-ce.layer>ne&&vg(a,se,0,-1,!0,!1)}for(vg(a,y,1,-1,!0,!0);y.component!==0;){for(te=0,b=1/0,se=0,ce=null,ne=a.network.vertexes.iterator;ne.next();){var ge=ne.value;if(ge.component===1){var xe=0,Ae=!1,Ue=ge.sourceEdgesArrayAccess;E=Ue.length;for(var Je=0;Je<E;Je++){var rt=Ue[Je],ht=rt.fromVertex;xe+=1,ht.component!==1&&(te+=1,ht=ht.layer-ge.layer,rt=a.linkMinLength(rt),b=Math.min(b,ht-rt))}for(Ue=ge.destinationEdgesArrayAccess,E=Ue.length,Je=0;Je<E;Je++)rt=Ue[Je].toVertex,--xe,rt.component!==1?--te:Ae=!0;(ce===null||xe<se)&&!Ae&&(ce=ge,se=xe)}}if(0<te){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer+=b);y.component=0}else ce.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(vg(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,E=1/0,te=0,se=null,ce=a.network.vertexes.iterator;ce.next();)if(ne=ce.value,ne.component===1){for(ge=0,xe=!1,Ue=ne.sourceEdgesArrayAccess,Ae=Ue.length,Je=0;Je<Ae;Je++)rt=Ue[Je].fromVertex,ge+=1,rt.component!==1?b+=1:xe=!0;for(Ue=ne.destinationEdgesArrayAccess,Ae=Ue.length,Je=0;Je<Ae;Je++)rt=Ue[Je],ht=rt.toVertex,--ge,ht.component!==1&&(--b,ht=ne.layer-ht.layer,rt=a.linkMinLength(rt),E=Math.min(E,ht-rt));(se===null||ge>te)&&!xe&&(se=ne,te=ge)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=E);y.component=0}else se.component=0}}}function JS(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}Pi.prototype.initializeIndices=function(){switch(this.Qk){default:case Cy:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case Tv:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&QS(this,x);break;case Py:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&qS(this,x)}};function QS(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var b=0;b<y.length-1;b++){var E=y[b],te=y[b+1];E.portFromColOffset>te.portFromColOffset&&(x=!0,y[b]=te,y[b+1]=E)}}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.toVertex,b.index===-1&&QS(a,b))}function qS(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var b=!0;b;)for(b=!1,x=0;x<y.length-1;x++){var E=y[x],te=y[x+1];E.portToColOffset>te.portToColOffset&&(b=!0,y[x]=te,y[x+1]=E)}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.fromVertex,b.index===-1&&qS(a,b))}Pi.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Ha(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)bv(this,b,1),Ks(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=Ha(this)),b=this.Ia;0<=b;b--)bv(this,b,-1),Ks(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=Ha(this))}for(As(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)bv(this,b,0),Ks(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=Ha(this)),b=this.Ia;0<=b;b--)bv(this,b,0),Ks(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=Ha(this))}As(this,y);var te,ne,se;switch(this.rk){case Ey:break;case My:for(se=a+1;(b=this.countCrossings())<se;)for(se=b,x=this.Ia;0<=x;x--)for(ne=0;ne<=x;ne++){for(te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=Ks(this,b,-1)||te;for(E=this.countCrossings(),E>=a?As(this,y):(a=E,y=Ha(this)),te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=Ks(this,b,1)||te;for(E=this.countCrossings(),E>=a?As(this,y):(a=E,y=Ha(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=Ks(this,b,1)||te;for(E>=a?As(this,y):(a=E,y=Ha(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=Ks(this,b,-1)||te;for(E>=a?As(this,y):(a=E,y=Ha(this)),te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=Ks(this,b,0)||te;for(E>=a?As(this,y):(a=E,y=Ha(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=Ks(this,b,0)||te;E>=a?As(this,y):(a=E,y=Ha(this))}break;default:case Lv:for(x=this.Ia,ne=0,se=a+1;(b=this.countCrossings())<se;){for(se=b,te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=Ks(this,b,-1)||te;for(E=this.countCrossings(),E>=a?As(this,y):(a=E,y=Ha(this)),te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=Ks(this,b,1)||te;for(E=this.countCrossings(),E>=a?As(this,y):(a=E,y=Ha(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=Ks(this,b,1)||te;for(E>=a?As(this,y):(a=E,y=Ha(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=Ks(this,b,-1)||te;for(E>=a?As(this,y):(a=E,y=Ha(this)),te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=Ks(this,b,0)||te;for(E>=a?As(this,y):(a=E,y=Ha(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=Ks(this,b,0)||te;E>=a?As(this,y):(a=E,y=Ha(this))}}As(this,y)};function bv(a,y,x){var b=Zc(a,y),E=a.tc[y],te=WS(a,y,x),ne=my(a,y,x);for(x=0;x<E;x++)ne[x]===-1&&(ne[x]=b[x].column),te[x]===-1&&(te[x]=b[x].column);for(var se=!0,ce;se;)for(se=!1,x=0;x<E-1;x++)(te[x+1]<te[x]||te[x+1]===te[x]&&ne[x+1]<ne[x])&&(se=!0,ce=te[x],te[x]=te[x+1],te[x+1]=ce,ce=ne[x],ne[x]=ne[x+1],ne[x+1]=ce,ce=b[x],b[x]=b[x+1],b[x+1]=ce);for(x=te=0;x<E;x++)ce=b[x],ce.index=x,te+=a.nodeMinColumnSpace(ce,!0),ce.column=te,te+=1,te+=a.nodeMinColumnSpace(ce,!1);$c(a,y,b)}function Ks(a,y,x){var b=Zc(a,y),E=a.tc[y];x=US(a,y,x);var te,ne=[];for(te=0;te<E;te++)ne[te]=-1;var se=[];for(te=0;te<E;te++)se[te]=-1;for(var ce=!1,ge=!0;ge;)for(ge=!1,te=0;te<E-1;te++){var xe=x[b[te].index*E+b[te+1].index],Ae=x[b[te+1].index*E+b[te].index],Ue=0,Je=0,rt=b[te].column,ht=b[te+1].column,Ft=a.nodeMinColumnSpace(b[te],!0),Ot=a.nodeMinColumnSpace(b[te],!1),_t=a.nodeMinColumnSpace(b[te+1],!0),Gt=a.nodeMinColumnSpace(b[te+1],!1);Ft=rt-Ft+_t,Ot=ht-Ot+Gt;var Kt=b[te].sourceEdges.iterator;for(Kt.reset();Kt.next();)if(_t=Kt.value,Gt=_t.fromVertex,_t.valid&&Gt.layer===y){for(_t=0;b[_t]!==Gt;)_t++;_t<te&&(Ue+=2*(te-_t),Je+=2*(te+1-_t)),_t===te+1&&(Ue+=1),_t>te+1&&(Ue+=4*(_t-te),Je+=4*(_t-(te+1)))}for(Kt=b[te].destinationEdges.iterator,Kt.reset();Kt.next();)if(_t=Kt.value,Gt=_t.toVertex,_t.valid&&Gt.layer===y){for(_t=0;b[_t]!==Gt;)_t++;_t===te+1&&(Je+=1)}for(Kt=b[te+1].sourceEdges.iterator,Kt.reset();Kt.next();)if(_t=Kt.value,Gt=_t.fromVertex,_t.valid&&Gt.layer===y){for(_t=0;b[_t]!==Gt;)_t++;_t<te&&(Ue+=2*(te+1-_t),Je+=2*(te-_t)),_t===te&&(Je+=1),_t>te+1&&(Ue+=4*(_t-(te+1)),Je+=4*(_t-te))}for(Kt=b[te+1].destinationEdges.iterator,Kt.reset();Kt.next();)if(_t=Kt.value,Gt=_t.toVertex,_t.valid&&Gt.layer===y){for(_t=0;b[_t]!==Gt;)_t++;_t===te&&(Ue+=1)}_t=Gt=0,Kt=ne[b[te].index];var Yt=se[b[te].index],on=ne[b[te+1].index],Zn=se[b[te+1].index];Kt!==-1&&(Gt+=Math.abs(Kt-rt),_t+=Math.abs(Kt-Ot)),Yt!==-1&&(Gt+=Math.abs(Yt-rt),_t+=Math.abs(Yt-Ot)),on!==-1&&(Gt+=Math.abs(on-ht),_t+=Math.abs(on-Ft)),Zn!==-1&&(Gt+=Math.abs(Zn-ht),_t+=Math.abs(Zn-Ft)),(Je<Ue-.5||Je===Ue&&Ae<xe-.5||Je===Ue&&Ae===xe&&_t<Gt-.5)&&(ge=ce=!0,b[te].column=Ot,b[te+1].column=Ft,xe=b[te],b[te]=b[te+1],b[te+1]=xe)}for(te=0;te<E;te++)b[te].index=te;return $c(a,y,b),ce}Pi.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&$x)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var x=[];for(y=0;y<=this.Ia;y++)x[y]=0;for(var b,E=this.network.vertexes.iterator;E.next();){var te=E.value;y=te.layer,b=te.column,te=this.nodeMinColumnSpace(te,!1),x[y]=Math.max(x[y],b+te)}for(E.reset();E.next();)te=E.value,y=te.layer,b=te.column,te.column=(8*(this.Ra-x[y])>>1)+8*b;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Bf(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Bf(this,y,-1)||x;x=Bf(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)Sy(this,y,1);for(y=this.Md-1;0<=y;y--)Sy(this,y,-1);Sy(this,this.Md,0)}if(a&&(ex(this,-1),ex(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Bf(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Bf(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Bf(this,y,0)||x}}else Wx(this)};function Bf(a,y,x){for(var b=!1;Gx(a,y,x);)b=!0;return b}function Gx(a,y,x){var b,E=Zc(a,y),te=a.tc[y],ne=my(a,y,-1);if(0<x)for(b=0;b<te;b++)ne[b]=-1;var se=my(a,y,1);if(0>x)for(b=0;b<te;b++)se[b]=-1;for(var ce=!1,ge=!0;ge;)for(ge=!1,b=0;b<te;b++){var xe=E[b].column,Ae=a.nodeMinColumnSpace(E[b],!0),Ue=a.nodeMinColumnSpace(E[b],!1),Je=0;0>b-1||xe-E[b-1].column-1>Ae+a.nodeMinColumnSpace(E[b-1],!1)?Je=xe-1:Je=xe,Ae=b+1>=te||E[b+1].column-xe-1>Ue+a.nodeMinColumnSpace(E[b+1],!0)?xe+1:xe;var rt=Ue=0,ht=0;if(0>=x)for(var Ft=E[b].sourceEdges.iterator;Ft.next();){var Ot=Ft.value,_t=Ot.fromVertex;if(Ot.valid&&_t.layer!==y){var Gt=gy(Ot),Kt=Ot.portFromColOffset;Ot=Ot.portToColOffset,_t=_t.column,Ue+=(Math.abs(xe+Ot-(_t+Kt))+1)*Gt,rt+=(Math.abs(Je+Ot-(_t+Kt))+1)*Gt,ht+=(Math.abs(Ae+Ot-(_t+Kt))+1)*Gt}}if(0<=x)for(Ft=E[b].destinationEdges.iterator;Ft.next();)Ot=Ft.value,_t=Ot.toVertex,Ot.valid&&_t.layer!==y&&(Gt=gy(Ot),Kt=Ot.portFromColOffset,Ot=Ot.portToColOffset,_t=_t.column,Ue+=(Math.abs(xe+Kt-(_t+Ot))+1)*Gt,rt+=(Math.abs(Je+Kt-(_t+Ot))+1)*Gt,ht+=(Math.abs(Ae+Kt-(_t+Ot))+1)*Gt);Ot=Kt=Gt=0,Ft=ne[E[b].index],_t=se[E[b].index],Ft!==-1&&(Gt+=Math.abs(Ft-xe),Kt+=Math.abs(Ft-Je),Ot+=Math.abs(Ft-Ae)),_t!==-1&&(Gt+=Math.abs(_t-xe),Kt+=Math.abs(_t-Je),Ot+=Math.abs(_t-Ae)),rt<Ue||rt===Ue&&Kt<Gt?(ge=ce=!0,E[b].column=Je):(ht<Ue||ht===Ue&&Ot<Gt)&&(ge=ce=!0,E[b].column=Ae)}return $c(a,y,E),a.normalize(),ce}function Sy(a,y,x){var b=Zc(a,y),E=a.tc[y],te=WS(a,y,x),ne=[];for(x=0;x<E;x++)ne[x]=te[x];for(te=!0;te;)for(te=!1,x=0;x<E;x++){var se=b[x].column,ce=a.nodeMinColumnSpace(b[x],!0),ge=a.nodeMinColumnSpace(b[x],!1),xe=0;if(ne[x]===-1)if(x===0&&x===E-1)xe=se;else if(x===0){var Ae=b[x+1].column;Ae-se===ge+a.nodeMinColumnSpace(b[x+1],!0)?xe=se-1:xe=se}else x===E-1?(Ae=b[x-1].column,xe=se-Ae===ce+a.nodeMinColumnSpace(b[x-1],!1)?se+1:se):(Ae=b[x-1].column,ce=Ae+a.nodeMinColumnSpace(b[x-1],!1)+ce+1,Ae=b[x+1].column,ge=Ae-a.nodeMinColumnSpace(b[x+1],!0)-ge-1,xe=(ce+ge)/2|0);else x===0&&x===E-1?xe=ne[x]:x===0?(Ae=b[x+1].column,ge=Ae-a.nodeMinColumnSpace(b[x+1],!0)-ge-1,xe=Math.min(ne[x],ge)):x===E-1?(Ae=b[x-1].column,ce=Ae+a.nodeMinColumnSpace(b[x-1],!1)+ce+1,xe=Math.max(ne[x],ce)):(Ae=b[x-1].column,ce=Ae+a.nodeMinColumnSpace(b[x-1],!1)+ce+1,Ae=b[x+1].column,ge=Ae-a.nodeMinColumnSpace(b[x+1],!0)-ge-1,ce<ne[x]&&ne[x]<ge?xe=ne[x]:ce>=ne[x]?xe=ce:ge<=ne[x]&&(xe=ge));xe!==se&&(te=!0,b[x].column=xe)}$c(a,y,b),a.normalize()}function Hx(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var E=b.value,te=a.nodeMinColumnSpace(E,!0),ne=a.nodeMinColumnSpace(E,!1);if(E.column-te<=y&&E.column+ne>=y){x=!1;break}}if(a=!1,x)for(b.reset();b.next();)x=b.value,x.column>y&&(--x.column,a=!0);return a}function Ux(a,y){var x=y+1,b,E=[],te=[];for(b=0;b<=a.Ia;b++)E[b]=!1,te[b]=!1;for(var ne=a.network.vertexes.iterator;ne.next();){b=ne.value;var se=b.column-a.nodeMinColumnSpace(b,!0),ce=b.column+a.nodeMinColumnSpace(b,!1);se<=y&&ce>=y&&(E[b.layer]=!0),se<=x&&ce>=x&&(te[b.layer]=!0)}for(se=!0,x=!1,b=0;b<=a.Ia;b++)se=se&&!(E[b]&&te[b]);if(se)for(ne.reset();ne.next();)a=ne.value,a.column>y&&(--a.column,x=!0);return x}function ex(a,y){for(var x=0;x<=a.Ra;x++)for(;Hx(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Ux(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=Ha(a),te=wv(a);for(b=te+1;te<b;){b=te,tx(a,x,1);var ne=wv(a);ne>te?As(a,E):ne<te&&(te=ne,E=Ha(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=Ha(a),te=wv(a),b=te+1;te<b;)b=te,tx(a,x,-1),ne=wv(a),ne>te?As(a,E):ne<te&&(te=ne,E=Ha(a));a.normalize()}function tx(a,y,x){a.le=0;for(var b=a.network.vertexes.iterator;b.next();)b.value.component=-1;if(0<x)for(b.reset();b.next();){var E=b.value;E.column-a.nodeMinColumnSpace(E,!0)<=y&&(E.component=a.le)}if(0>x)for(b.reset();b.next();)E=b.value,E.column+a.nodeMinColumnSpace(E,!1)>=y&&(E.component=a.le);for(a.le++,b.reset();b.next();)y=b.value,y.component===-1&&(vy(a,y,a.le,-1,!0,!0),a.le++);var te;for(y=[],te=0;te<a.le*a.le;te++)y[te]=!1;for(E=[],te=0;te<(a.Ia+1)*(a.Ra+1);te++)E[te]=-1;for(b.reset();b.next();){te=b.value;for(var ne=te.layer,se=Math.max(0,te.column-a.nodeMinColumnSpace(te,!0)),ce=Math.min(a.Ra,te.column+a.nodeMinColumnSpace(te,!1));se<=ce;se++)E[ne*(a.Ra+1)+se]=te.component}for(te=0;te<=a.Ia;te++){if(0<x)for(ne=0;ne<a.Ra;ne++)E[te*(a.Ra+1)+ne]!==-1&&E[te*(a.Ra+1)+ne+1]!==-1&&E[te*(a.Ra+1)+ne]!==E[te*(a.Ra+1)+ne+1]&&(y[E[te*(a.Ra+1)+ne]*a.le+E[te*(a.Ra+1)+ne+1]]=!0);if(0>x)for(ne=a.Ra;0<ne;ne--)E[te*(a.Ra+1)+ne]!==-1&&E[te*(a.Ra+1)+ne-1]!==-1&&E[te*(a.Ra+1)+ne]!==E[te*(a.Ra+1)+ne-1]&&(y[E[te*(a.Ra+1)+ne]*a.le+E[te*(a.Ra+1)+ne-1]]=!0)}for(E=[],te=0;te<a.le;te++)E[te]=!0;for(ne=[],ne.push(0);ne.length!==0;)if(ce=ne[ne.length-1],ne.pop(),E[ce])for(E[ce]=!1,te=0;te<a.le;te++)y[ce*a.le+te]&&ne.splice(0,0,te);if(0<x)for(b.reset();b.next();)a=b.value,E[a.component]&&--a.column;if(0>x)for(b.reset();b.next();)x=b.value,E[x.component]&&(x.column+=1)}function Wx(a){for(var y=cn(),x=a.fl.length,b=0;b<=x;b++)y[b]=[];for(b=a.network.vertexes.iterator;b.next();){var E=b.value;y[x-E.layer][E.index]=E}x=new Ln,Kx(y,x);var te=null,ne=null,se=null,ce=null,ge=(a.ve&1)!==0,xe=(a.ve&2)!==0,Ae=(a.ve&4)!==0,Ue=(a.ve&8)!==0;for(ge&&(a.verticalAlignment(y,x,!0),te=Pv(a,y,!0,!1)),y.reverse(),Ae&&(a.verticalAlignment(y,x,!1),se=Pv(a,y,!1,!1)),b=$r(y),E=b.next();!E.done;E=b.next())E.value.reverse();Ue&&(a.verticalAlignment(y,x,!1),ce=Pv(a,y,!1,!0)),y.reverse(),xe&&(a.verticalAlignment(y,x,!0),ne=Pv(a,y,!0,!0)),Pn(y),a.u(te,ne,se,ce),a.network.vertexes.each(function(Je){var rt=cn();ge&&rt.push(te.get(Je)),xe&&rt.push(ne.get(Je)),Ae&&rt.push(se.get(Je)),Ue&&rt.push(ce.get(Je)),rt.sort(function(Ft,Ot){return Ft-Ot});var ht=rt.length;ht=(rt[Math.floor((ht-1)/2)]+rt[Math.ceil((ht-1)/2)])/2,Pn(rt),Je.zc=ht})}function Kx(a,y){for(var x=a.length,b=1;b<x-1;b++)for(var E=0,te=0,ne=a[b],se=a[b+1],ce=0;te<se.length;ce++){var ge=se[ce];e:{if(ge.node===null){var xe=Ty(ge);if(0<xe.length){xe=xe[0].node===null;break e}}xe=!1}var Ae=xe;if(ce===se.length-1||Ae){for(xe=ne.length-1,Ae&&(xe=Ty(ge)[0].index);te<=ce;){if(ge=se[te],!ge.bo){Ae=[];for(var Ue=$r(ge.sourceEdgesArrayAccess),Je=Ue.next();!Je.done;Je=Ue.next())Je=Je.value,Je.valid&&Ae.push(Je);ge.bo=Ae}for(ge=$r(ge.bo),Ae=ge.next();!Ae.done;Ae=ge.next())Ae=Ae.value,Ue=Ae.fromVertex.index,(Ue<E||Ue>xe)&&y.add(Ae);te++}E=xe}}}Pi.prototype.verticalAlignment=function(a,y,x){Vx(a),a=$r(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=$r(b.value);for(var te=b.next();!te.done;te=b.next()){te=te.value;var ne=x?Ty(te):Xx(te),se=ne.length;if(0<se){ne.sort(function(Ae,Ue){return Ae.vi-Ue.vi});var ce=(se-1)/2;for(se=Math.floor(ce),ce=Math.ceil(ce);se<=ce;se++)if(te.align===te){var ge=ne[se],xe=void 0;xe=x?kv(ge,te):kv(te,ge),!y.contains(xe)&&E<ge.vi&&(ge.align=te,te.root=ge.root,te.align=ge.root,E=ge.vi)}}}}};function Vx(a){for(var y=0;y<a.length;y++)for(var x=a[y],b=0;b<x.length;b++){var E=x[b];E.root=E,E.align=E,E.Tz=y,E.vi=b}}function Pv(a,y,x,b){for(var E=a.K===90||a.K===270,te=$r(y),ne=te.next();!ne.done;ne=te.next()){var se=$r(ne.value);for(ne=se.next();!ne.done;ne=se.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,te=$r(y),se=te.next();!se.done;se=te.next()){se=$r(se.value);for(var ce=se.next();!ce.done;ce=se.next())if(ce=ce.value,ce.root===ce){for(var ge=0,xe=ce;xe.align!==ce;){var Ae=xe.align,Ue=ne?xe.width:xe.height,Je=ne?Ae.width:Ae.height;if(x){var rt=kv(xe,Ae),ht=rt.portFromPos,Ft=rt.portToPos;rt.link!==null&&(xe.node&&xe.node!==rt.link.fromNode&&(ht=ne?xe.focusX:xe.focusY),Ae.node&&Ae.node!==rt.link.toNode&&(Ft=ne?Ae.focusX:Ae.focusY))}else rt=kv(Ae,xe),ht=rt.portToPos,Ft=rt.portFromPos,rt.link!==null&&(xe.node&&xe.node!==rt.link.toNode&&(ht=ne?xe.focusX:xe.focusY),Ae.node&&Ae.node!==rt.link.fromNode&&(Ft=ne?Ae.focusX:Ae.focusY));Ue=b?xe.qg+(Ue-ht)-(Je-Ft):xe.qg+ht-Ft,Ae.qg=Ue,ge=Math.min(ge,Ue),xe=xe.align}xe=ce;do xe.qg=xe.qg-ge,xe=xe.align;while(xe!==ce)}}for(x=$r(y),ne=x.next();!ne.done;ne=x.next())for(te=$r(ne.value),ne=te.next();!ne.done;ne=te.next())ne=ne.value,ne.root===ne&&nx(a,ne,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(ne=y[x][0],ne.sd===ne)){ne.sd.shift===1/0&&(ne.sd.shift=0),ne=x,se=0;do{for(te=y[ne][se];te.align!==te.root;)te=te.align,ne++,0<te.vi&&(se=rx(te,y),se.sd.shift=Math.min(se.sd.shift,te.sd.shift+te.zc+te.qg-(se.zc+se.qg+(E?se.width:se.height)+a.columnSpacing)));se=te.vi+1}while(ne<y.length&&se<y[ne].length&&te.sd===y[ne][se].sd)}for(a=new qn,y=$r(y),ne=y.next();!ne.done;ne=y.next())for(x=$r(ne.value),ne=x.next();!ne.done;ne=x.next())ne=ne.value,ne.zc=ne.zc+ne.sd.shift+ne.qg,te=E?ne.width:ne.height,a.add(ne,b?-ne.zc-te:ne.zc);return a}function nx(a,y,x){if(isNaN(y.zc)){y.zc=0;var b=y;do{if(0<b.vi){var E=rx(b,x),te=E.root;nx(a,te,x),y.sd===y&&(y.sd=te.sd);var ne=a.K===90||a.K===270?E.width:E.height;y.sd===te.sd&&(y.zc=Math.max(y.zc,te.zc+E.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 rx(a,y){var x=a.Tz;return a=a.vi,1>a&&zt("Could not determine previous vertex in layer"),y[x][a-1]}Pi.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=cn(),E=cn(),te=1/0,ne=0;4>ne;ne++)if(y[ne]){var se=Zx(this,y[ne],b,E,ne);se<te&&(x=ne,te=se)}for(te={},ne=0;4>ne;te={delta:te.delta},ne++)y[ne]&&(te.delta=ne===0||ne===2?b[x]-b[ne]:E[x]-E[ne],te.delta!==0&&y[ne].each(function(ce){return function(ge){ge.value+=ce.delta}}(te)));Pn(b),Pn(E)};function Zx(a,y,x,b,E){if(!y||y.count===0)return x[E]=0,b[E]=0,1/0;var te=1/0,ne=-1/0;return y.each(function(se){var ce=se.key;se=se.value,ce=a.K===90||a.K===270?ce.width:ce.height,se<te&&(te=se),se+ce>ne&&(ne=se+ce)}),x[E]=te,b[E]=ne,ne-te}Pi.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=Cv(this,!0),y=Cv(this,!1),x=this.network.edges.iterator;x.next();){var b=x.value.link;b!==null&&(b.fromSpot=a,b.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function Cv(a,y){return a.K===270?y?Co:Ro:a.K===90?y?Ro:Co:a.K===180?y?No:Uo:y?Uo:No}Pi.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,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var b=0;b<=this.Ia;b++){var E=x;0>=this.he[b]+this.Ld[b]&&(E=0),0<b&&(y+=E/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+=E/2),this.Ta[b]=y}for(x=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+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]):this.K===180?this.Kd[b]=y.x+this.Kd[b]:(this.Kd[b]=y.x+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]);x=this.ve!==0,a.reset(),b=this.K===270||this.K===90;for(var te=1/0,ne=E=1/0,se=-1/0;a.next();){var ce=a.value,ge=ce.layer,xe=ce.column|0;b?(ne=y.x+this.kc*xe,ge=this.Kd[ge]):(ne=this.Kd[ge],ge=y.y+this.kc*xe),ce.centerX=ne,ce.centerY=ge,x&&isFinite(ce.zc)&&(b?ce.node?ce.x=y.x+ce.zc:ce.centerX=y.x+ce.zc:ce.node?ce.y=y.y+ce.zc:ce.centerY=y.y+ce.zc),te=Math.min(ce.x,te),E=Math.min(ce.y,E),b?(ne=te,se=Math.max(se,ce.bounds.right)):(ne=E,se=Math.max(se,ce.bounds.bottom))}for(this.xw=se-ne,te=y.x-te,y=y.y-E,this.Rf=new Nt(x&&b?0:te,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=te,x.y+=y,x.commit()},Pi.prototype.Gu=function(){for(var a=0,y=this.ie,x=0;x<=this.Ia;x++)a+=this.he[x],a+=this.Ld[x];a+=this.Ia*y,y=[],x=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 wn(0,0,x,Math.abs(this.Ta[0]))):y.push(new wn(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new wn(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new wn(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new wn(0,0,Math.abs(this.Ta[0]),x)):y.push(new wn(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new wn(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new wn(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},Pi.prototype.commitLayers=function(){},Pi.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 x=a.value;if(y=x.link,y!==null){y.uh();var b=y,E=b.fromNode,te=b.toNode,ne=b.fromPort,se=b.toPort;if(E!==null){var ce=E.findVisibleNode();ce!==null&&ce!==E&&(E=ce,ne=ce.port)}te!==null&&(ce=te.findVisibleNode(),ce!==null&&ce!==te&&(te=ce,se=ce.port));var ge=y.computeSpot(!0,ne);ce=y.computeSpot(!1,se);var xe=x.fromVertex,Ae=x.toVertex;if(x.valid)y.curve===ms&&y.pointsCount===4&&(xe.column===Ae.column&&this.alignOption===0?(x=y.getLinkPoint(E,ne,ge,!0,!1,te,se),se=y.getLinkPoint(te,se,ce,!1,!1,E,ne),x.w()||x.set(E.actualBounds.center),se.w()||se.set(te.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+se.x)/3,(2*x.y+se.y)/3),y.yf((x.x+2*se.x)/3,(x.y+2*se.y)/3),y.yf(se.x,se.y)):(x=b=!1,ne!==null&&ge===io&&(b=!0),se!==null&&ce===io&&(x=!0),(b||x)&&(ce=null,b&&(ce=y.getLinkPointFromPoint(E,ne,ne.ga(ui),y.i(3),!0),ce.w()||ce.set(E.actualBounds.center),y.L(0,ce.x,ce.y)),E=null,x&&(E=y.getLinkPointFromPoint(te,se,se.ga(ui),y.i(0),!1),E.w()||E.set(te.actualBounds.center),y.L(3,E.x,E.y)),ce&&(te=y.i(2),y.L(1,(2*ce.x+te.x)/3,(2*ce.y+te.y)/3)),E&&(te=y.i(1),y.L(2,(2*E.x+te.x)/3,(2*E.y+te.y)/3))))),y.zf();else if(xe.layer===Ae.layer)y.zf();else{var Ue=!1,Je=!1,rt=this.ie,ht=y.firstPickIndex+1;if(y.isOrthogonal){Je=!0;var Ft=y.pointsCount;4<Ft&&y.points.removeRange(2,Ft-3)}else if(y.curve===ms)Ue=!0,Ft=y.pointsCount,4<Ft&&y.points.removeRange(2,Ft-3),Ft===4&&(ht=2);else{Ft=y.pointsCount;var Ot=ge===io,_t=ce===io;2<Ft&&Ot&&_t?y.points.removeRange(1,Ft-2):3<Ft&&Ot&&!_t?y.points.removeRange(1,Ft-3):3<Ft&&!Ot&&_t?y.points.removeRange(2,Ft-2):4<Ft&&!Ot&&!_t&&y.points.removeRange(2,Ft-3)}if(x.rev){for(;Ae!==null&&xe!==Ae;){var Gt=Ft=null;for(Ot=Ae.sourceEdges.iterator;Ot.next()&&(_t=Ot.value,_t.link!==x.link||(Ft=_t.fromVertex,Gt=_t.toVertex,Ft.node!==null)););if(Ft===null)break;if(Ft!==xe){Ot=y.i(ht-1).x,_t=y.i(ht-1).y;var Kt=Ft.centerX,Yt=Ft.centerY;if(Je)this.K===180||this.K===0?ht===y.firstPickIndex+1?(y.m(ht++,Ot,_t),y.m(ht++,Ot,Yt)):(Gt!==null?Gt.centerY:_t)!==Yt&&(Gt=this.Ta[Ft.layer-1]+this.Rf.x,y.m(ht++,Gt,_t),y.m(ht++,Gt,Yt)):ht===y.firstPickIndex+1?(y.m(ht++,Ot,_t),y.m(ht++,Kt,_t)):(Gt!==null?Gt.centerX:Ot)!==Kt&&(Gt=this.Ta[Ft.layer-1]+this.Rf.y,y.m(ht++,Ot,Gt),y.m(ht++,Kt,Gt));else if(ht===y.firstPickIndex+1){Gt=Math.max(10,this.he[Ae.layer]);var on=Math.max(10,this.Ld[Ae.layer]);if(Ue)this.K===180?Kt<=Ae.bounds.x?(Ae=Ae.bounds.x,y.m(ht++,Ae-Gt,Yt),y.m(ht++,Ae,Yt),y.m(ht++,Ae+on,Yt)):(y.m(ht++,Kt-Gt,Yt),y.m(ht++,Kt,Yt),y.m(ht++,Kt+on,Yt)):this.K===90?Yt>=Ae.bounds.bottom?(Ae=Ae.bounds.y+Ae.bounds.height,y.m(ht++,Kt,Ae+on),y.m(ht++,Kt,Ae),y.m(ht++,Kt,Ae-Gt)):(y.m(ht++,Kt,Yt+on),y.m(ht++,Kt,Yt),y.m(ht++,Kt,Yt-Gt)):this.K===270?Yt<=Ae.bounds.y?(Ae=Ae.bounds.y,y.m(ht++,Kt,Ae-Gt),y.m(ht++,Kt,Ae),y.m(ht++,Kt,Ae+on)):(y.m(ht++,Kt,Yt-Gt),y.m(ht++,Kt,Yt),y.m(ht++,Kt,Yt+on)):this.K===0&&(Kt>=Ae.bounds.right?(Ae=Ae.bounds.x+Ae.bounds.width,y.m(ht++,Ae+on,Yt),y.m(ht++,Ae,Yt),y.m(ht++,Ae-Gt,Yt)):(y.m(ht++,Kt+on,Yt),y.m(ht++,Kt,Yt),y.m(ht++,Kt-Gt,Yt)));else{y.m(ht++,Ot,_t);var Zn=0;this.K===180||this.K===0?((this.K===180?Kt>=Ae.bounds.right:Kt<=Ae.bounds.x)&&(Zn=(this.K===0?-Gt:on)/2),y.m(ht++,Ot+Zn,Yt)):((this.K===270?Yt>=Ae.bounds.bottom:Yt<=Ae.bounds.y)&&(Zn=(this.K===90?-Gt:on)/2),y.m(ht++,Kt,_t+Zn)),y.m(ht++,Kt,Yt)}}else Gt=Math.max(10,this.he[Ft.layer]),on=Math.max(10,this.Ld[Ft.layer]),Ue?this.K===180?(y.m(ht++,Kt-Gt-rt,Yt),y.m(ht++,Math.min(Kt-Gt+rt/2,Kt),Yt),y.m(ht++,Kt,Yt),y.m(ht++,Kt,Yt),y.m(ht++,Math.max(Kt+on-rt/2,Kt),Yt),y.m(ht++,Kt+on+rt,Yt)):this.K===90?(y.m(ht++,Kt,Yt+on+rt),y.m(ht++,Kt,Math.max(Yt+on-rt/2,Yt)),y.m(ht++,Kt,Yt),y.m(ht++,Kt,Yt),y.m(ht++,Kt,Math.min(Yt-Gt+rt/2,Yt)),y.m(ht++,Kt,Yt-Gt-rt)):this.K===270?(y.m(ht++,Kt,Yt-Gt-rt),y.m(ht++,Kt,Math.min(Yt-Gt+rt/2,Yt)),y.m(ht++,Kt,Yt),y.m(ht++,Kt,Yt),y.m(ht++,Kt,Math.max(Yt+on-rt/2,Yt)),y.m(ht++,Kt,Yt+on+rt)):(y.m(ht++,Kt+on+rt,Yt),y.m(ht++,Math.max(Kt+on-rt/2,Kt),Yt),y.m(ht++,Kt,Yt),y.m(ht++,Kt,Yt),y.m(ht++,Math.min(Kt-Gt+rt/2,Kt),Yt),y.m(ht++,Kt-Gt-rt,Yt)):y.m(ht++,Kt,Yt)}Ae=Ft}(se===null||ge!==io||Je)&&(Ot=y.i(ht-1).x,_t=y.i(ht-1).y,Kt=y.i(ht).x,Yt=y.i(ht).y,Je?(rt=this.Ld[xe.layer],this.K===180||this.K===0?(Je=_t,Je>=xe.bounds.y&&Je<=xe.bounds.bottom&&(this.K===180?Kt>=xe.bounds.x:Kt<=xe.bounds.right)&&(Ae=xe.centerX+(this.K===180?-rt:rt),Je<xe.bounds.y+xe.bounds.height/2?Je=xe.bounds.y-this.kc/2:Je=xe.bounds.bottom+this.kc/2,y.m(ht++,Ae,_t),y.m(ht++,Ae,Je)),y.m(ht++,Kt,Je)):(Je=Ot,Je>=xe.bounds.x&&Je<=xe.bounds.right&&(this.K===270?Yt>=xe.bounds.y:Yt<=xe.bounds.bottom)&&(Ae=xe.centerY+(this.K===270?-rt:rt),Je<xe.bounds.x+xe.bounds.width/2?Je=xe.bounds.x-this.kc/2:Je=xe.bounds.right+this.kc/2,y.m(ht++,Ot,Ae),y.m(ht++,Je,Ae)),y.m(ht++,Je,Yt)),y.m(ht++,Kt,Yt)):Ue?(Gt=Math.max(10,this.he[xe.layer]),on=Math.max(10,this.Ld[xe.layer]),this.K===180&&Kt>=xe.bounds.x?(Ae=xe.bounds.x+xe.bounds.width,y.L(ht-2,Ae,_t),y.L(ht-1,Ae+on,_t)):this.K===90&&Yt<=xe.bounds.bottom?(Ae=xe.bounds.y,y.L(ht-2,Ot,Ae),y.L(ht-1,Ot,Ae-Gt)):this.K===270&&Yt>=xe.bounds.y?(Ae=xe.bounds.y+xe.bounds.height,y.L(ht-2,Ot,Ae),y.L(ht-1,Ot,Ae+on)):this.K===0&&Kt<=xe.bounds.right&&(Ae=xe.bounds.x,y.L(ht-2,Ae,_t),y.L(ht-1,Ae-Gt,_t))):(Gt=Math.max(10,this.he[xe.layer]),on=Math.max(10,this.Ld[xe.layer]),Je=0,this.K===180||this.K===0?((this.K===180?Kt<=xe.bounds.x:Kt>=xe.bounds.right)&&(Je=(this.K===0?on:-Gt)/2),y.m(ht++,Kt+Je,_t)):((this.K===270?Yt<=xe.bounds.y:Yt>=xe.bounds.bottom)&&(Je=(this.K===90?on:-Gt)/2),y.m(ht++,Ot,Yt+Je)),y.m(ht++,Kt,Yt)))}else{for(;xe!==null&&xe!==Ae;){for(Gt=Ft=null,xe=xe.destinationEdges.iterator;xe.next()&&(Ot=xe.value,Ot.link!==x.link||(Ft=Ot.toVertex,Gt=Ot.fromVertex,Gt.node!==null&&(Gt=null),Ft.node!==null)););if(Ft===null)break;Ft!==Ae&&(Ot=y.i(ht-1).x,_t=y.i(ht-1).y,Kt=Ft.centerX,Yt=Ft.centerY,Je?this.K===180||this.K===0?(Gt!==null?Gt.centerY:_t)!==Yt&&(Gt=this.Ta[Ft.layer]+this.Rf.x,ht===y.firstPickIndex+1&&(Gt=this.K===0?Math.max(Gt,Ot):Math.min(Gt,Ot)),y.m(ht++,Gt,_t),y.m(ht++,Gt,Yt)):(Gt!==null?Gt.centerX:Ot)!==Kt&&(Gt=this.Ta[Ft.layer]+this.Rf.y,ht===y.firstPickIndex+1&&(Gt=this.K===90?Math.max(Gt,_t):Math.min(Gt,_t)),y.m(ht++,Ot,Gt),y.m(ht++,Kt,Gt)):(Gt=Math.max(10,this.he[Ft.layer]),on=Math.max(10,this.Ld[Ft.layer]),Ue?this.K===180?(y.m(ht++,Kt+on+rt,Yt),y.m(ht++,Math.max(Kt+on-rt/2,Kt),Yt),y.m(ht++,Kt,Yt),y.m(ht++,Kt,Yt),y.m(ht++,Math.min(Kt-Gt+rt/2,Kt),Yt),y.m(ht++,Kt-Gt-rt,Yt)):this.K===90?(y.m(ht++,Kt,Yt-Gt-rt),y.m(ht++,Kt,Math.min(Yt-Gt+rt/2,Yt)),y.m(ht++,Kt,Yt),y.m(ht++,Kt,Yt),y.m(ht++,Kt,Math.max(Yt+on-rt/2,Yt)),y.m(ht++,Kt,Yt+on+rt)):this.K===270?(y.m(ht++,Kt,Yt+on+rt),y.m(ht++,Kt,Math.max(Yt+on-rt/2,Yt)),y.m(ht++,Kt,Yt),y.m(ht++,Kt,Yt),y.m(ht++,Kt,Math.min(Yt-Gt+rt/2,Yt)),y.m(ht++,Kt,Yt-Gt-rt)):(y.m(ht++,Kt-Gt-rt,Yt),y.m(ht++,Math.min(Kt-Gt+rt/2,Kt),Yt),y.m(ht++,Kt,Yt),y.m(ht++,Kt,Yt),y.m(ht++,Math.max(Kt+on-rt/2,Kt),Yt),y.m(ht++,Kt+on+rt,Yt)):this.K===180?(y.m(ht++,Kt+on,Yt),y.m(ht++,Kt-Gt,Yt)):this.K===90?(y.m(ht++,Kt,Yt-Gt),y.m(ht++,Kt,Yt+on)):this.K===270?(y.m(ht++,Kt,Yt+on),y.m(ht++,Kt,Yt-Gt)):(y.m(ht++,Kt-Gt,Yt),y.m(ht++,Kt+on,Yt)))),xe=Ft}Je&&(Ot=y.i(ht-1).x,_t=y.i(ht-1).y,Kt=y.i(ht).x,Yt=y.i(ht).y,this.K===180||this.K===0?_t!==Yt&&(Gt=this.K===0?Math.min(Math.max((Kt+Ot)/2,this.Ta[Ae.layer]+this.Rf.x),Kt):Math.max(Math.min((Kt+Ot)/2,this.Ta[Ae.layer]+this.Rf.x),Kt),y.m(ht++,Gt,_t),y.m(ht++,Gt,Yt)):Ot!==Kt&&(Gt=this.K===90?Math.min(Math.max((Yt+_t)/2,this.Ta[Ae.layer]+this.Rf.y),Yt):Math.max(Math.min((Yt+_t)/2,this.Ta[Ae.layer]+this.Rf.y),Yt),y.m(ht++,Ot,Gt),y.m(ht++,Kt,Gt)))}b!==null&&Ue&&4<=y.pointsCount&&(ne!==null&&(ne=ge===io?y.getLinkPointFromPoint(E,ne,ne.ga(ui),y.i(3),!0):y.i(0),ge===io&&(ge=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(ne.x+ge.x)/2,ge.y),y.L(2,b.x,(ge.y+b.y)/2)):(y.L(1,ge.x,(ne.y+ge.y)/2),y.L(2,(ge.x+b.x)/2,b.y))),ne.w()||ne.set(E.actualBounds.center),y.L(0,ne.x,ne.y)),se!==null&&(E=ce===io?y.getLinkPointFromPoint(te,se,se.ga(ui),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),ce===io&&(se=y.i(y.pointsCount-3),ce=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(E.x+se.x)/2,se.y),y.L(y.pointsCount-2,ce.x,(se.y+ce.y)/2)):(y.L(y.pointsCount-2,se.x,(E.y+se.y)/2),y.L(y.pointsCount-3,(se.x+ce.x)/2,ce.y))),E.w()||E.set(te.actualBounds.center),y.L(y.pointsCount-1,E.x,E.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Pi.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Tn,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,x=[],a=a.iterator;a.next();){var b=a.value;if(b!==null&&b.isOrthogonal)for(var E=2;E<b.pointsCount-3;E++){var te=b.i(E),ne=b.i(E+1);if(this.B(te.y,ne.y)&&!this.B(te.x,ne.x)){var se=new Xc;se.layer=Math.floor(te.y/2);var ce=b.i(0),ge=b.i(b.pointsCount-1);if(se.first=ce.x*ce.x+ce.y,se.jc=ge.x*ge.x+ge.y,se.rd=Math.min(te.x,ne.x),se.Ic=Math.max(te.x,ne.x),se.index=E,se.link=b,E+2<b.pointsCount){ce=b.i(E-1),ge=b.i(E+2);var xe=0;ce.y<te.y?xe=ge.y<te.y?3:te.x<ne.x?2:1:ce.y>te.y&&(xe=ge.y>te.y?0:ne.x<te.x?2:1),se.j=xe}x.push(se)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(te=x[a].layer,b=a+1;b<x.length&&x[b].layer===te;)b++;if(1<b-a)for(te=a;te<b;){for(ne=x[te].Ic,E=a+1;E<b&&x[E].rd<ne;)ne=Math.max(ne,x[E].Ic),E++;if(ne=E-te,1<ne){for(this.zi(x,this.Js,te,te+ne),xe=1,se=x[te].jc,ce=te;ce<E;ce++)ge=x[ce],ge.jc!==se&&(xe++,se=ge.jc);this.zi(x,this.Ux,te,te+ne);var Ae=1;for(se=x[te].first,ce=te;ce<E;ce++)ge=x[ce],ge.first!==se&&(Ae++,se=ge.first);for(ce=!0,ge=Ae,xe<Ae?(ce=!1,ge=xe,se=x[te].jc,this.zi(x,this.Js,te,te+ne)):se=x[te].first,xe=0,Ae=te;Ae<E;Ae++){var Ue=x[Ae];(ce?Ue.first:Ue.jc)!==se&&(xe++,se=ce?Ue.first:Ue.jc);var Je=Ue.link;te=Je.i(Ue.index),ne=Je.i(Ue.index+1);var rt=this.linkSpacing*(xe-(ge-1)/2);y++,Je.uh(),Je.L(Ue.index,te.x,te.y+rt),Je.L(Ue.index+1,ne.x,ne.y+rt),Je.zf()}}te=E}a=b}}else{for(y=0,x=[],a=a.iterator;a.next();)if(b=a.value,b!==null&&b.isOrthogonal)for(E=2;E<b.pointsCount-3;E++)te=b.i(E),ne=b.i(E+1),this.B(te.x,ne.x)&&!this.B(te.y,ne.y)&&(se=new Xc,se.layer=Math.floor(te.x/2),ce=b.i(0),ge=b.i(b.pointsCount-1),se.first=ce.x+ce.y*ce.y,se.jc=ge.x+ge.y*ge.y,se.rd=Math.min(te.y,ne.y),se.Ic=Math.max(te.y,ne.y),se.index=E,se.link=b,E+2<b.pointsCount&&(ce=b.i(E-1),ge=b.i(E+2),xe=0,ce.x<te.x?xe=ge.x<te.x?3:te.y<ne.y?2:1:ce.x>te.x&&(xe=ge.x>te.x?0:ne.y<te.y?2:1),se.j=xe),x.push(se));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(te=x[a].layer,b=a+1;b<x.length&&x[b].layer===te;)b++;if(1<b-a)for(te=a;te<b;){for(ne=x[te].Ic,E=a+1;E<b&&x[E].rd<ne;)ne=Math.max(ne,x[E].Ic),E++;if(ne=E-te,1<ne){for(this.zi(x,this.Js,te,te+ne),xe=1,se=x[te].jc,ce=te;ce<E;ce++)ge=x[ce],ge.jc!==se&&(xe++,se=ge.jc);for(this.zi(x,this.Ux,te,te+ne),Ae=1,se=x[te].first,ce=te;ce<E;ce++)ge=x[ce],ge.first!==se&&(Ae++,se=ge.first);for(ce=!0,ge=Ae,xe<Ae?(ce=!1,ge=xe,se=x[te].jc,this.zi(x,this.Js,te,te+ne)):se=x[te].first,xe=0,Ae=te;Ae<E;Ae++)Ue=x[Ae],(ce?Ue.first:Ue.jc)!==se&&(xe++,se=ce?Ue.first:Ue.jc),Je=Ue.link,te=Je.i(Ue.index),ne=Je.i(Ue.index+1),rt=this.linkSpacing*(xe-(ge-1)/2),y++,Je.uh(),Je.L(Ue.index,te.x+rt,te.y),Je.L(Ue.index+1,ne.x+rt,ne.y),Je.zf()}te=E}a=b}}}},it=Pi.prototype,it.Vx=function(a,y){return a instanceof Xc&&y instanceof Xc&&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},it.Ux=function(a,y){return a instanceof Xc&&y instanceof Xc&&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},it.Js=function(a,y){return a instanceof Xc&&y instanceof Xc&&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},it.B=function(a,y){return a-=y,-1<a&&1>a},it.zi=function(a,y,x,b){var E=a.length,te=b-x;if(!(1>=te))if((0>x||x>=E-1)&&zt("not in range 0 <= from < length: "+x),te===2)b=a[x],E=a[x+1],0<y(b,E)&&(a[x]=E,a[x+1]=b);else if(x===0)if(b>=E)a.sort(y);else for(x=a.slice(0,b),x.sort(y),y=0;y<b;y++)a[y]=x[y];else if(b>=E)for(b=a.slice(x),b.sort(y),y=x;y<E;y++)a[y]=b[y-x];else for(E=a.slice(x,b),E.sort(y),y=x;y<b;y++)a[y]=E[y-x]};function Zc(a,y){var x=a.tc[y];if(x>=a.He.length){for(var b=[],E=0;E<a.He.length;E++)b[E]=a.He[E];a.He=b}for(a.He[x]===void 0||a.He[x]===null?b=[]:(b=a.He[x],a.He[x]=null),a=a.fl[y],y=0;y<a.length;y++)x=a[y],b[x.index]=x;return b}function $c(a,y,x){a.He[a.tc[y]]=x}Lt.Object.defineProperties(Pi.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()):zt("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==xy&&a!==Ev&&a!==yg||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==Mv&&a!==wy&&a!==by||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==Tv&&a!==Py&&a!==Cy||(this.Qk=a,this.C())}},iterations:{get:function(){return this.bj},set:function(a){this.bj!==a&&0<=a&&(this.bj=a,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(a){this.rk===a||a!==Ey&&a!==Lv&&a!==My||(this.rk=a,this.C())}},packOption:{get:function(){return this.bg},set:function(a){this.bg!==a&&0<=a&&8>a&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var Ev=new fn(Pi,"CycleDepthFirst",0),xy=new fn(Pi,"CycleGreedy",1),yg=new fn(Pi,"CycleFromLayers",2),Mv=new fn(Pi,"LayerOptimalLinkLength",0),wy=new fn(Pi,"LayerLongestPathSink",1),by=new fn(Pi,"LayerLongestPathSource",2),Tv=new fn(Pi,"InitDepthFirstOut",0),Py=new fn(Pi,"InitDepthFirstIn",1),Cy=new fn(Pi,"InitNaive",2),Ey=new fn(Pi,"AggressiveNone",0),Lv=new fn(Pi,"AggressiveLess",1),My=new fn(Pi,"AggressiveMore",2),$x=8;Pi.className="LayeredDigraphLayout",Pi.CycleDepthFirst=Ev,Pi.CycleGreedy=xy,Pi.CycleFromLayers=yg,Pi.LayerOptimalLinkLength=Mv,Pi.LayerLongestPathSink=wy,Pi.LayerLongestPathSource=by,Pi.InitDepthFirstOut=Tv,Pi.InitDepthFirstIn=Py,Pi.InitNaive=Cy,Pi.AggressiveNone=Ey,Pi.AggressiveLess=Lv,Pi.AggressiveMore=My,Pi.PackNone=0,Pi.PackExpand=1,Pi.PackStraighten=2,Pi.PackMedian=4,Pi.PackAll=15,Pi.AlignNone=0,Pi.AlignUpperLeft=1,Pi.AlignUpperRight=2,Pi.AlignLowerLeft=4,Pi.AlignLowerRight=8,Pi.AlignAll=15;function Xc(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Xc.className="SegInfo";function Rf(a){Ii.call(this,a)}Xt(Rf,Ii),Rf.prototype.createVertex=function(){return new Ns(this)},Rf.prototype.createEdge=function(){return new Sg(this)},Rf.className="LayeredDigraphNetwork";function Ns(a){To.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}Xt(Ns,To);function ix(a,y){return a.index-y.index}function kv(a,y){if(!a.$n){for(var x=[],b=$r(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=$r(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;zt("Unable to find destination edge to given vertex")}function Ty(a){if(!a.co){for(var y=[],x=$r(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(ix),a.co=y}return a.co}function Xx(a){if(!a.ao){for(var y=[],x=$r(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(ix),a.ao=y}return a.ao}Ns.prototype.Cl=function(a){To.prototype.Cl.call(this,a),this.bo=this.co=null},Ns.prototype.Kl=function(a){To.prototype.Kl.call(this,a),this.bo=this.co=null},Ns.prototype.zl=function(a){To.prototype.zl.call(this,a),this.$n=this.ao=null},Ns.prototype.Jl=function(a){To.prototype.Jl.call(this,a),this.$n=this.ao=null},Lt.Object.defineProperties(Ns.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)}}}),Ns.prototype.deleteDestinationEdge=Ns.prototype.Jl,Ns.prototype.addDestinationEdge=Ns.prototype.zl,Ns.prototype.deleteSourceEdge=Ns.prototype.Kl,Ns.prototype.addSourceEdge=Ns.prototype.Cl,Ns.className="LayeredDigraphVertex";function Sg(a){os.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Xt(Sg,os),Lt.Object.defineProperties(Sg.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)}}}),Sg.className="LayeredDigraphEdge";function Jr(a){Ui.call(this),this.Ub=new Ln,this.Wn=jv,this.ud=Yl,this.vo=Dv,this.Bq=Ry,this.$v=[],this.td=!0,this.Rb=Fv,this.$d=new Wn(10,10).freeze();var y=new Td(this);this.W=new Vs(y),this.Y=new Vs(y),this.ru=[],a&&Object.assign(this,a)}Xt(Jr,Ui),Jr.prototype.cloneProtected=function(a){Ui.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)},Jr.prototype.qb=function(a){a.classType===Jr?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:zt("Unknown enum value: "+a):Ui.prototype.qb.call(this,a)},Jr.prototype.createNetwork=function(){return new Td(this)},Jr.prototype.makeNetwork=function(a){function y(b){if(b instanceof Xn)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof Hn){var E=b.fromNode;return E===null||E.isLinkLabel||E.category==="Comment"?!1:(b=b.toNode,!(b===null||b.isLinkLabel||b.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof sn?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Ir?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Jr.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==Bv&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof sn&&(y=a),this.path===jv&&y!==null?this.ud=y.isTreePathToChildren?Yl:Ed:this.ud=this.path===jv?Yl: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 Ln,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof Xn?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof Vs&&a.add(x)}this.Ub=a}for(this.Ub.count===0&&this.findRoots(),a=this.Ub.copy().iterator;a.next();)y=a.value,y.initialized||(y.initialized=!0,Ly(this,y));for(y=this.network.vertexes,a=null;a=Yx(y),0<a.count;)y=ox(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,Ly(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Vs&&sx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Vs&&lx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Vs&&ux(this,y);if(this.Cu(),this.layerStyle===Rv){for(a=[],y=this.network.vertexes.iterator;y.next();){x=y.value;var b=x.parent;b===null&&(b=x),b=b.angle===0||b.angle===180;var E=a[x.level];E===void 0&&(E=0),a[x.level]=Math.max(E,b?x.width:x.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();)x=y.value,b=x.parent,b===null&&(b=x),b.angle===0||b.angle===180?(b.angle===180&&(x.focusX+=a[x.level]-x.width),x.width=a[x.level]):(b.angle===270&&(x.focusY+=a[x.level]-x.height),x.height=a[x.level])}else if(this.layerStyle===_y)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,b=-1,E=0;E<y.children.length;E++){var te=y.children[E];b=Math.max(b,x?te.width:te.height)}if(0<=b)for(E=0;E<y.children.length;E++)te=y.children[E],x?(y.angle===180&&(te.focusX+=b-te.width),te.width=b):(y.angle===270&&(te.focusY+=b-te.height),te.height=b)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Vs&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Ln,this.isValidLayout=!0};function Yx(a){var y=new Ln;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}Jr.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Yl:x.sourceEdges.count===0&&this.Ub.add(x);break;case Ed:x.destinationEdges.count===0&&this.Ub.add(x);break;default:zt("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=ox(this,a),a!==null&&this.Ub.add(a))};function ox(a,y){var x=999999,b=null;for(y=y.iterator;y.next();){var E=y.value;switch(a.ud){case Yl:E.sourceEdges.count<x&&(x=E.sourceEdges.count,b=E);break;case Ed:E.destinationEdges.count<x&&(x=E.destinationEdges.count,b=E);break;default:zt("Unhandled path value "+a.ud.toString())}}return b}function Ly(a,y){if(y!==null){switch(a.ud){case Yl:if(0<y.destinationEdges.count){for(var x=new Tn,b=y.destinationVertexes;b.next();){var E=b.value;ax(a,y,E)&&x.add(E)}0<x.count&&(y.children=x.Fa())}break;case Ed:if(0<y.sourceEdges.count){for(x=new Tn,b=y.sourceVertexes;b.next();)E=b.value,ax(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:zt("Unhandled path value"+a.ud.toString())}for(x=y.children,b=x.length,E=0;E<b;E++){var te=x[E];te.initialized=!0,te.level=y.level+1,te.parent=y,a.Ub.remove(te)}for(y=0;y<b;y++)Ly(a,x[y])}}function ax(a,y,x){if(x.initialized){if(y===null)var b=!1;else{for(b=y.parent;b!==null&&b!==x;)b=b.parent;b=b===x}if(b||x.level>y.level)return!1;a.removeChild(x.parent,x)}return!0}Jr.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,b=0,E=0;E<x.length;E++)x[E]===y&&b++;if(0<b){b=Array(x.length-b);for(var te=E=0;te<x.length;te++)x[te]!==y&&(b[E++]=x[te]);a.children=b}}};function sx(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===ql&&a.sortTreeVertexChildren(y);for(var x=0,b=y.childrenCount,E=0,te=y.children,ne=te.length,se=0;se<ne;se++){var ce=te[se];sx(a,ce),x+=ce.descendantCount+1,b=Math.max(b,ce.maxChildrenCount),E=Math.max(E,ce.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=b,y.maxGenerationCount=0<b?E+1:0}}function Jx(a,y){switch(a.vo){default:case Dv:return y.parent!==null?y.parent:a.W;case Fy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case Dy:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Iy:var x=!0;if(y.childrenCount===0)x=!1;else for(var b=y.children,E=b.length,te=0;te<E;te++)if(0<b[te].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}Jr.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(Jx(this,a)),a.parent!==null&&a.parent.alignment===ql){for(var y=a.angle,x=a.parent.children,b=0;b<x.length&&a!==x[b];)b++;b%2===0?b!==x.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 lx(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,b=0;b<x;b++)lx(a,y[b])}}Jr.prototype.assignTreeVertexValues=function(){};function ux(a,y){if(y!==null){y.alignment!==ql&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)ux(a,y[b])}}Jr.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case _f:break;case wg:a.children.reverse();break;case bg:a.children.sort(a.comparer);break;case Pg:a.children.sort(a.comparer),a.children.reverse();break;default:zt("Unhandled sorting value "+a.sorting.toString())}},Jr.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Jr.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,E=!1;x!==null&&(b=x.angle,E=x.alignment,E=Yc(E)),y=y===90||y===270,b=b===90||b===270,x=a.childrenCount===0;var te=0,ne=0,se=0,ce=a.commentSpacing;if(a.node!==null)for(var ge=a.node.Mu();ge.next();){var xe=ge.value;xe.category==="Comment"&&xe.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(xe),xe.Va(),xe=xe.measuredBounds,y&&!x||!E&&!b&&x||E&&b&&x?(te=Math.max(te,xe.width),ne+=xe.height+Math.abs(se)):(te+=xe.width+Math.abs(se),ne=Math.max(ne,xe.height)),se=ce)}a.comments!==null&&(y&&!x||!E&&!b&&x||E&&b&&x?(te+=Math.abs(a.commentMargin),ne=Math.max(0,ne-a.height)):(ne+=Math.abs(a.commentMargin),te=Math.max(0,te-a.width)),E=wn.allocAt(0,0,a.bounds.width+te,a.bounds.height+ne),a.bounds=E,wn.free(E))};function Yc(a){return a===ec||a===ql||a===tc||a===Su}function xg(a){return a===ec||a===ql}function ky(a){var y=a.parent;if(y!==null){var x=y.alignment;if(Yc(x)){if(xg(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===tc)return!0}}return!1}Jr.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,b=a.angle,E=0,te=!1;x!==null&&(E=x.angle,te=x.alignment,te=Yc(te)),b=b===90||b===270,x=E===90||E===270;for(var ne=a.childrenCount===0,se=ky(a),ce=0,ge=a.comments,xe=ge.length,Ae=Nt.alloc(),Ue=0;Ue<xe;Ue++){var Je=ge[Ue],rt=Je.measuredBounds;if(b&&!ne||!te&&!x&&ne||te&&x&&ne){if(135<E&&!te||x&&se)if(0<=a.commentMargin)for(Ae.h(a.bounds.x-a.commentMargin-rt.width,a.bounds.y+ce),Je.move(Ae),Je=Je.Sd();Je.next();){var ht=Je.value;ht.fromSpot=No,ht.toSpot=Uo}else for(Ae.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+ce),Je.move(Ae),Je=Je.Sd();Je.next();)ht=Je.value,ht.fromSpot=Uo,ht.toSpot=No;else if(0<=a.commentMargin)for(Ae.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+ce),Je.move(Ae),Je=Je.Sd();Je.next();)ht=Je.value,ht.fromSpot=Uo,ht.toSpot=No;else for(Ae.h(a.bounds.x+a.commentMargin-rt.width,a.bounds.y+ce),Je.move(Ae),Je=Je.Sd();Je.next();)ht=Je.value,ht.fromSpot=No,ht.toSpot=Uo;ce=0<=a.commentSpacing?ce+(rt.height+a.commentSpacing):ce+(a.commentSpacing-rt.height)}else{if(135<E&&!te||!x&&se)if(0<=a.commentMargin)for(Ae.h(a.bounds.x+ce,a.bounds.y-a.commentMargin-rt.height),Je.move(Ae),Je=Je.Sd();Je.next();)ht=Je.value,ht.fromSpot=Co,ht.toSpot=Ro;else for(Ae.h(a.bounds.x+ce,a.bounds.y+2*a.focus.y-a.commentMargin),Je.move(Ae),Je=Je.Sd();Je.next();)ht=Je.value,ht.fromSpot=Ro,ht.toSpot=Co;else if(0<=a.commentMargin)for(Ae.h(a.bounds.x+ce,a.bounds.y+2*a.focus.y+a.commentMargin),Je.move(Ae),Je=Je.Sd();Je.next();)ht=Je.value,ht.fromSpot=Ro,ht.toSpot=Co;else for(Ae.h(a.bounds.x+ce,a.bounds.y+a.commentMargin-rt.height),Je.move(Ae),Je=Je.Sd();Je.next();)ht=Je.value,ht.fromSpot=Co,ht.toSpot=Ro;ce=0<=a.commentSpacing?ce+(rt.width+a.commentSpacing):ce+(a.commentSpacing-rt.width)}}if(Nt.free(Ae),y=ce-a.commentSpacing-(b?y.height:y.width),this.ud===Yl)for(a=a.destinationEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.toEndSegmentLength=0<y?y:NaN)}},Jr.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,x=y.length,b=0;b<x;b++)this.layoutTree(y[b]);switch(a.compaction){case Iv:cx(this,a);break;case Cg:if(a.alignment===ql)cx(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=Yc(x)),b=ky(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||x)&&!b?a.la.h(0,0):y===180&&!x||(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 E=sl(a);y=E===90||E===270;var te=0,ne=a.children,se=ne.length;for(x=0;x<se;x++)b=ne[x],te=Math.max(te,y?b.Da.width:b.Da.height);var ce=a.alignment;b=ce===Jl;var ge=ce===Ql,xe=Yc(ce),Ae=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var Ue=a.nodeSpacing,Je=this.computeNodeIndent(a),rt=a.rowSpacing,ht=0;(b||ge||a.hm||a.im&&a.maxGenerationCount===1)&&(ht=Math.max(0,a.rowIndent)),b=a.width;var Ft=a.height,Ot=0,_t=0,Gt=0,Kt=null,Yt=null,on=0,Zn=0,nr=0,Jn=0,Gn=0,kn=0,Nr=0,Er=0;if(xe&&!xg(ce)&&135<E&&ne.reverse(),xg(ce))if(1<se)for(var pi=0;pi<se;pi++)pi%2===0&&pi!==se-1&&(Er=Math.max(Er,y?ne[pi].Da.width:ne[pi].Da.height));else se===1&&(Er=y?ne[0].Da.width:ne[0].Da.height);if(xe){switch(ce){case ec:_t=135>E?hx(this,a,ne,Er,Ot,_t):dx(this,a,ne,Er,Ot,_t),Er=_t.x,Ot=_t.width,_t=_t.height;break;case tc:for(Kt=0;Kt<se;Kt++)Yt=ne[Kt],Ae=Yt.Da,Gt=kn===0?0:rt,y?(Yt.S.h(te-Ae.width,Jn+Gt),Ot=Math.max(Ot,Ae.width),_t=Math.max(_t,Jn+Gt+Ae.height),Jn+=Gt+Ae.height):(Yt.S.h(nr+Gt,te-Ae.height),Ot=Math.max(Ot,nr+Gt+Ae.width),_t=Math.max(_t,Ae.height),nr+=Gt+Ae.width),kn++;break;case Su:for(Kt=0;Kt<se;Kt++)Yt=ne[Kt],te=Yt.Da,Ae=kn===0?0:rt,y?(Yt.S.h(Ue/2+a.focus.x,Jn+Ae),Ot=Math.max(Ot,te.width),_t=Math.max(_t,Jn+Ae+te.height),Jn+=Ae+te.height):(Yt.S.h(nr+Ae,Ue/2+a.focus.y),Ot=Math.max(Ot,nr+Ae+te.width),_t=Math.max(_t,te.height),nr+=Ae+te.width),kn++}Kt=Ka(this,2),Yt=Ka(this,2),y?(Kt[0].h(0,0),Kt[1].h(0,_t),Yt[0].h(Ot,0)):(Kt[0].h(0,0),Kt[1].h(Ot,0),Yt[0].h(0,_t)),Yt[1].h(Ot,_t)}else for(pi=0;pi<se;pi++){var Ni=ne[pi],Fo=Ni.Da;if(y){0<Ae&&0<kn&&nr+Ue+Fo.width>Ae&&(nr<te&&Dh(a,ce,te-nr,0,Nr,pi-1),Gn++,kn=0,Nr=pi,Gt=_t,nr=0,Jn=135<E?-_t-rt:_t+rt),Av(this,Ni,0,Jn);var Go=0;if(kn===0)Kt=Ni.Yo,Yt=Ni.kp,on=Fo.width,Zn=Fo.height,(Kt===null||Yt===null||E!==sl(Ni))&&(Kt=Ka(this,2),Yt=Ka(this,2),Kt[0].h(0,0),Kt[1].h(0,Zn),Yt[0].h(on,0),Yt[1].h(on,Zn));else{var fa=cn();Zn=fx(this,a,Ni,Kt,Yt,on,Zn,fa),Go=Zn.x,Kt=fa[0],Yt=fa[1],on=Zn.width,Zn=Zn.height,Pn(fa),nr<Fo.width&&0>Go&&(Cd(a,-Go,0,Nr,pi-1),Nv(Kt,-Go,0),Nv(Yt,-Go,0),Go=0)}Ni.S.h(Go,Jn),Ot=Math.max(Ot,on),_t=Math.max(_t,Gt+(Gn===0?0:rt)+Fo.height),nr=on}else 0<Ae&&0<kn&&Jn+Ue+Fo.height>Ae&&(Jn<te&&Dh(a,ce,0,te-Jn,Nr,pi-1),Gn++,kn=0,Nr=pi,Gt=Ot,Jn=0,nr=135<E?-Ot-rt:Ot+rt),Av(this,Ni,nr,0),Go=0,kn===0?(Kt=Ni.Yo,Yt=Ni.kp,on=Fo.width,Zn=Fo.height,(Kt===null||Yt===null||E!==sl(Ni))&&(Kt=Ka(this,2),Yt=Ka(this,2),Kt[0].h(0,0),Kt[1].h(on,0),Yt[0].h(0,Zn),Yt[1].h(on,Zn))):(fa=cn(),Zn=fx(this,a,Ni,Kt,Yt,on,Zn,fa),Go=Zn.x,Kt=fa[0],Yt=fa[1],on=Zn.width,Zn=Zn.height,Pn(fa),Jn<Fo.height&&0>Go&&(Cd(a,0,-Go,Nr,pi-1),Nv(Kt,0,-Go),Nv(Yt,0,-Go),Go=0)),Ni.S.h(nr,Go),_t=Math.max(_t,Zn),Ot=Math.max(Ot,Gt+(Gn===0?0:rt)+Fo.width),Jn=Zn;kn++}switch(0<Gn&&(y?(_t+=Math.max(0,x),nr<Ot&&Dh(a,ce,Ot-nr,0,Nr,se-1),0<ht&&(ge||Cd(a,ht,0,0,se-1),Ot+=ht)):(Ot+=Math.max(0,x),Jn<_t&&Dh(a,ce,0,_t-Jn,Nr,se-1),0<ht&&(ge||Cd(a,0,ht,0,se-1),_t+=ht))),ht=ge=0,ce){case zf:y?ge+=Ot/2-a.focus.x-Je/2:ht+=_t/2-a.focus.y-Je/2;break;case Md:0<Gn?y?ge+=Ot/2-a.focus.x-Je/2:ht+=_t/2-a.focus.y-Je/2:y?(Er=ne[0].S.x+ne[0].la.x,ge+=Er+(ne[se-1].S.x+ne[se-1].la.x+2*ne[se-1].focus.x-Er)/2-a.focus.x-Je/2):(Er=ne[0].S.y+ne[0].la.y,ht+=Er+(ne[se-1].S.y+ne[se-1].la.y+2*ne[se-1].focus.y-Er)/2-a.focus.y-Je/2);break;case Jl:y?(ge-=Je,Ot+=Je):(ht-=Je,_t+=Je);break;case Ql:y?(ge+=Ot-a.width+Je,Ot+=Je):(ht+=_t-a.height+Je,_t+=Je);break;case ec:y?1<se?ge+=Er+Ue/2-a.focus.x:ge+=ne[0].focus.x-a.focus.x+ne[0].la.x:1<se?ht+=Er+Ue/2-a.focus.y:ht+=ne[0].focus.y-a.focus.y+ne[0].la.y;break;case tc:y?ge+=Ot+Ue/2-a.focus.x:ht+=_t+Ue/2-a.focus.y;break;case Su:break;default:_t=this.customAlignment(a,ge,ht,Ot,_t),ge=_t[0],ht=_t[1],Ot=_t[2],_t=_t[3]}for(Je=0;Je<se;Je++)Er=ne[Je],y?Er.S.h(Er.S.x+Er.la.x-ge,Er.S.y+(135<E?(xe?-_t:-Er.Da.height)+Er.la.y-x:Ft+x+Er.la.y)):Er.S.h(Er.S.x+(135<E?(xe?-Ot:-Er.Da.width)+Er.la.x-x:b+x+Er.la.x),Er.S.y+Er.la.y-ht);if(se=ne=0,xe?y?(Ot=Oy(a,Ot,ge),0>ge&&(ge=0),135<E&&(ht+=_t+x),_t+=Ft+x,ce===Su&&(ne+=Ue/2+a.focus.x),se+=Ft+x):(135<E&&(ge+=Ot+x),Ot+=b+x,_t=Ay(a,_t,ht),0>ht&&(ht=0),ce===Su&&(se+=Ue/2+a.focus.y),ne+=b+x):y?(a.comments===null?b>Ot&&(Ot=Ny(ce,b-Ot,0),ne=Ot.x,se=Ot.y,Ot=b,ge=0):Ot=Oy(a,Ot,ge),0>ge&&(ne-=ge,ge=0),135<E&&(ht+=_t+x),_t=Math.max(Math.max(_t,Ft),_t+Ft+x),se+=Ft+x):(135<E&&(ge+=Ot+x),Ot=Math.max(Math.max(Ot,b),Ot+b+x),a.comments===null?Ft>_t&&(_t=Ny(ce,0,Ft-_t),ne=_t.x,se=_t.y,_t=Ft,ht=0):_t=Ay(a,_t,ht),0>ht&&(se-=ht,ht=0),ne+=b+x),0<Gn)E=Ka(this,4),Gn=Ka(this,4),y?(E[2].h(0,Ft+x),E[3].h(E[2].x,_t),Gn[2].h(Ot,E[2].y),Gn[3].h(Gn[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(Ot,E[2].y),Gn[2].h(E[2].x,_t),Gn[3].h(E[3].x,Gn[2].y));else{for(E=Ka(this,Kt.length+2),Gn=Ka(this,Yt.length+2),ce=0;ce<Kt.length;ce++)xe=Kt[ce],E[ce+2].h(xe.x+ne,xe.y+se);for(ce=0;ce<Yt.length;ce++)xe=Yt[ce],Gn[ce+2].h(xe.x+ne,xe.y+se)}y?(E[0].h(ge,0),E[1].h(E[0].x,Ft),E[2].y<E[1].y&&(E[2].x>E[0].x?E[2].assign(E[1]):E[1].assign(E[2])),E[3].y<E[2].y&&(E[3].x>E[0].x?E[3].assign(E[2]):E[2].assign(E[3])),Gn[0].h(ge+b,0),Gn[1].h(Gn[0].x,Ft),Gn[2].y<Gn[1].y&&(Gn[2].x<Gn[0].x?Gn[2].assign(Gn[1]):Gn[1].assign(Gn[2])),Gn[3].y<Gn[2].y&&(Gn[3].x<Gn[0].x?Gn[3].assign(Gn[2]):Gn[2].assign(Gn[3])),E[2].y-=x/2,Gn[2].y-=x/2):(E[0].h(0,ht),E[1].h(b,E[0].y),E[2].x<E[1].x&&(E[2].y>E[0].y?E[2].assign(E[1]):E[1].assign(E[2])),E[3].x<E[2].x&&(E[3].y>E[0].y?E[3].assign(E[2]):E[2].assign(E[3])),Gn[0].h(0,ht+Ft),Gn[1].h(b,Gn[0].y),Gn[2].x<Gn[1].x&&(Gn[2].y<Gn[0].y?Gn[2].assign(Gn[1]):Gn[1].assign(Gn[2])),Gn[3].x<Gn[2].x&&(Gn[3].y<Gn[0].y?Gn[3].assign(Gn[2]):Gn[2].assign(Gn[3])),E[2].x-=x/2,Gn[2].x-=x/2),vl(this,Kt),vl(this,Yt),a.Yo=E,a.kp=Gn,a.la.h(ge,ht),a.Da.h(Ot,_t)}break;default:zt("Unhandled compaction value "+a.compaction.toString())}}};function cx(a,y){if(y.childrenCount===0){var x=!1,b=0;y.parent!==null&&(b=y.parent.angle,x=y.parent.alignment,x=Yc(x));var E=ky(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(b!==180&&b!==270||x)&&!E?y.la.h(0,0):b===180&&!x||(b===90||b===270)&&E?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{b=sl(y),x=b===90||b===270;var te=0;E=y.children;for(var ne=E.length,se=0;se<ne;se++){var ce=E[se];te=Math.max(te,x?ce.Da.width:ce.Da.height)}var ge=y.alignment,xe=ge===Jl,Ae=ge===Ql;se=Yc(ge);var Ue=Math.max(0,y.breadthLimit);ce=a.computeLayerSpacing(y);var Je=y.nodeSpacing,rt=a.computeNodeIndent(y),ht=xe||Ae?0:rt/2,Ft=y.rowSpacing,Ot=0;(xe||Ae||y.hm||y.im&&y.maxGenerationCount===1)&&(Ot=Math.max(0,y.rowIndent)),xe=y.width;var _t=y.height,Gt=0,Kt=0,Yt=0,on=0,Zn=0,nr=0,Jn=0,Gn=0,kn=0,Nr=0;if(se&&!xg(ge)&&135<b&&E.reverse(),xg(ge))if(1<ne)for(var Er=0;Er<ne;Er++){var pi=E[Er],Ni=pi.Da;Er%2===0&&Er!==ne-1?kn=Math.max(kn,(x?Ni.width:Ni.height)+a.computeBusNodeSpacing(pi)-Je):Er%2!==0&&(Nr=Math.max(Nr,(x?Ni.width:Ni.height)+a.computeBusNodeSpacing(pi)-Je))}else ne===1&&(kn=x?E[0].Da.width:E[0].Da.height);if(se)switch(ge){case ec:case ql:Kt=135>b?hx(a,y,E,kn,Gt,Kt):dx(a,y,E,kn,Gt,Kt),kn=Kt.x,Gt=Kt.width,Kt=Kt.height;break;case tc:for(Ue=0;Ue<ne;Ue++)ht=E[Ue],Yt=ht.Da,Nr=Jn===0?0:Ft,x?(ht.S.h(te-Yt.width,Zn+Nr),Gt=Math.max(Gt,Yt.width),Kt=Math.max(Kt,Zn+Nr+Yt.height),Zn+=Nr+Yt.height):(ht.S.h(on+Nr,te-Yt.height),Gt=Math.max(Gt,on+Nr+Yt.width),Kt=Math.max(Kt,Yt.height),on+=Nr+Yt.width),Jn++;break;case Su:for(te=0;te<ne;te++)Ue=E[te],ht=Ue.Da,Yt=Jn===0?0:Ft,x?(Ue.S.h(Je/2+y.focus.x,Zn+Yt),Gt=Math.max(Gt,ht.width),Kt=Math.max(Kt,Zn+Yt+ht.height),Zn+=Yt+ht.height):(Ue.S.h(on+Yt,Je/2+y.focus.y),Gt=Math.max(Gt,on+Yt+ht.width),Kt=Math.max(Kt,ht.height),on+=Yt+ht.width),Jn++}else for(Nr=0;Nr<ne;Nr++)Er=E[Nr],pi=Er.Da,x?(0<Ue&&0<Jn&&on+Je+pi.width>Ue&&(on<te&&Dh(y,ge,te-on,0,Gn,Nr-1),nr++,Jn=0,Gn=Nr,Yt=Kt,on=0,Zn=135<b?-Kt-Ft:Kt+Ft),Ni=Jn===0?ht:Je,Av(a,Er,0,Zn),Er.S.h(on+Ni,Zn),Gt=Math.max(Gt,on+Ni+pi.width),Kt=Math.max(Kt,Yt+(nr===0?0:Ft)+pi.height),on+=Ni+pi.width):(0<Ue&&0<Jn&&Zn+Je+pi.height>Ue&&(Zn<te&&Dh(y,ge,0,te-Zn,Gn,Nr-1),nr++,Jn=0,Gn=Nr,Yt=Gt,Zn=0,on=135<b?-Gt-Ft:Gt+Ft),Ni=Jn===0?ht:Je,Av(a,Er,on,0),Er.S.h(on,Zn+Ni),Kt=Math.max(Kt,Zn+Ni+pi.height),Gt=Math.max(Gt,Yt+(nr===0?0:Ft)+pi.width),Zn+=Ni+pi.height),Jn++;switch(0<nr&&(x?(Kt+=Math.max(0,ce),on<Gt&&Dh(y,ge,Gt-on,0,Gn,ne-1),0<Ot&&(Ae||Cd(y,Ot,0,0,ne-1),Gt+=Ot)):(Gt+=Math.max(0,ce),Zn<Kt&&Dh(y,ge,0,Kt-Zn,Gn,ne-1),0<Ot&&(Ae||Cd(y,0,Ot,0,ne-1),Kt+=Ot))),Ot=Ae=0,ge){case zf:x?Ae+=Gt/2-y.focus.x-rt/2:Ot+=Kt/2-y.focus.y-rt/2;break;case Md:0<nr?x?Ae+=Gt/2-y.focus.x-rt/2:Ot+=Kt/2-y.focus.y-rt/2:x?(a=E[0].S.x+E[0].la.x,Ae+=a+(E[ne-1].S.x+E[ne-1].la.x+2*E[ne-1].focus.x-a)/2-y.focus.x-rt/2):(a=E[0].S.y+E[0].la.y,Ot+=a+(E[ne-1].S.y+E[ne-1].la.y+2*E[ne-1].focus.y-a)/2-y.focus.y-rt/2);break;case Jl:x?(Ae-=rt,Gt+=rt):(Ot-=rt,Kt+=rt);break;case Ql:x?(Ae+=Gt-y.width+rt,Gt+=rt):(Ot+=Kt-y.height+rt,Kt+=rt);break;case ec:case ql:x?1<ne?Ae+=kn+Je/2-y.focus.x:Ae+=E[0].focus.x-y.focus.x+E[0].la.x:1<ne?Ot+=kn+Je/2-y.focus.y:Ot+=E[0].focus.y-y.focus.y+E[0].la.y;break;case tc:x?Ae+=Gt+Je/2-y.focus.x:Ot+=Kt+Je/2-y.focus.y;break;case Su:break;default:a=a.customAlignment(y,Ae,Ot,Gt,Kt),Ae=a[0],Ot=a[1],Gt=a[2],Kt=a[3]}for(a=0;a<ne;a++)rt=E[a],x?rt.S.h(rt.S.x+rt.la.x-Ae,rt.S.y+(135<b?(se?-Kt:-rt.Da.height)+rt.la.y-ce:_t+ce+rt.la.y)):rt.S.h(rt.S.x+(135<b?(se?-Gt:-rt.Da.width)+rt.la.x-ce:xe+ce+rt.la.x),rt.S.y+rt.la.y-Ot);x?(Gt=Oy(y,Gt,Ae),0>Ae&&(Ae=0),135<b&&(Ot+=Kt+ce),Kt=Math.max(Math.max(Kt,_t),Kt+_t+ce)):(135<b&&(Ae+=Gt+ce),Gt=Math.max(Math.max(Gt,xe),Gt+xe+ce),Kt=Ay(y,Kt,Ot),0>Ot&&(Ot=0)),y.la.h(Ae,Ot),y.Da.h(Gt,Kt)}}Jr.prototype.customAlignment=function(a,y,x,b,E){return[y,x,b,E]};function hx(a,y,x,b,E,te){var ne=x.length;if(ne===0)return new wn(b,0,E,te);if(ne===1)return y=x[0],E=y.Da.width,te=y.Da.height,new wn(b,0,E,te);for(var se=y.nodeSpacing,ce=y.rowSpacing,ge=sl(y)===90,xe=0,Ae=0,Ue=0,Je=0;Je<ne;Je++)if(!(Je%2!==0||1<ne&&Je===ne-1)){var rt=x[Je],ht=rt.Da,Ft=xe===0?0:ce;if(ge){var Ot=a.computeBusNodeSpacing(rt)-se;rt.S.h(b-(ht.width+Ot),Ue+Ft),E=Math.max(E,ht.width+Ot),te=Math.max(te,Ue+Ft+ht.height),Ue+=Ft+ht.height}else Ot=a.computeBusNodeSpacing(rt)-se,rt.S.h(Ae+Ft,b-(ht.height+Ot)),te=Math.max(te,ht.height+Ot),E=Math.max(E,Ae+Ft+ht.width),Ae+=Ft+ht.width;xe++}for(xe=0,rt=Ae,Je=Ue,ge?(Ae=b+se,Ue=0):(Ae=0,Ue=b+se),ht=0;ht<ne;ht++)if(ht%2!==0){Ft=x[ht],Ot=Ft.Da;var _t=xe===0?0:ce;if(ge){var Gt=a.computeBusNodeSpacing(Ft)-se;Ft.S.h(Ae+Gt,Ue+_t),E=Math.max(E,Ae+Ot.width+Gt),te=Math.max(te,Ue+_t+Ot.height),Ue+=_t+Ot.height}else Gt=a.computeBusNodeSpacing(Ft)-se,Ft.S.h(Ae+_t,Ue+Gt),E=Math.max(E,Ae+_t+Ot.width),te=Math.max(te,Ue+Ot.height+Gt),Ae+=_t+Ot.width;xe++}return 1<ne&&ne%2===1&&(x=x[ne-1],ne=x.Da,a=a.computeBusLastRowSpacing(x,ge?Math.max(Math.abs(Je),Math.abs(Ue)):Math.max(Math.abs(rt),Math.abs(Ae))),ge?(x.S.h(b+se/2-x.focus.x-x.la.x,te+a),ge=b+se/2-x.focus.x-x.la.x,E=Math.max(E,ge+ne.width),0>ge&&(E-=ge),te=Math.max(te,Math.max(Je,Ue)+a+ne.height),0>x.S.x&&(b=Ov(y,x.S.x,!1,b,se))):(x.S.h(E+a,b+se/2-x.focus.y-x.la.y),E=Math.max(E,Math.max(rt,Ae)+a+ne.width),Ue=b+se/2-x.focus.y-x.la.y,te=Math.max(te,Ue+ne.height),0>Ue&&(te-=Ue),0>x.S.y&&(b=Ov(y,x.S.y,!0,b,se)))),new wn(b,0,E,te)}function dx(a,y,x,b,E,te){var ne=x.length;if(ne===0)return new wn(b,0,E,te);if(ne===1)return x=x[0],E=x.Da.width,te=x.Da.height,new wn(b,0,E,te);for(var se=y.nodeSpacing,ce=y.rowSpacing,ge=sl(y)===270,xe=0,Ae=0,Ue=0,Je=0;Je<ne;Je++)if(!(Je%2!==0||1<ne&&Je===ne-1)){var rt=x[Je],ht=rt.Da,Ft=xe===0?0:ce;if(ge){var Ot=a.computeBusNodeSpacing(rt)-se;Ue-=Ft+ht.height,rt.S.h(b-(ht.width+Ot),Ue),E=Math.max(E,ht.width+Ot),te=Math.max(te,Math.abs(Ue))}else Ot=a.computeBusNodeSpacing(rt)-se,Ae-=Ft+ht.width,rt.S.h(Ae,b-(ht.height+Ot)),te=Math.max(te,ht.height+Ot),E=Math.max(E,Math.abs(Ae));xe++}for(xe=0,rt=Ae,Je=Ue,ge?(Ae=b+se,Ue=0):(Ae=0,Ue=b+se),ht=0;ht<ne;ht++)if(ht%2!==0){Ft=x[ht],Ot=Ft.Da;var _t=xe===0?0:ce;if(ge){var Gt=a.computeBusNodeSpacing(Ft)-se;Ue-=_t+Ot.height,Ft.S.h(Ae+Gt,Ue),E=Math.max(E,Ae+Ot.width+Gt),te=Math.max(te,Math.abs(Ue))}else Gt=a.computeBusNodeSpacing(Ft)-se,Ae-=_t+Ot.width,Ft.S.h(Ae,Ue+Gt),te=Math.max(te,Ue+Ot.height+Gt),E=Math.max(E,Math.abs(Ae));xe++}for(1<ne&&ne%2===1&&(ce=x[ne-1],xe=ce.Da,a=a.computeBusLastRowSpacing(ce,ge?Math.max(Math.abs(Je),Math.abs(Ue)):Math.max(Math.abs(rt),Math.abs(Ae))),ge?(ce.S.h(b+se/2-ce.focus.x-ce.la.x,-te-xe.height-a),Ae=b+se/2-ce.focus.x-ce.la.x,E=Math.max(E,Ae+xe.width),0>Ae&&(E-=Ae),te=Math.max(te,Math.abs(Math.min(Je,Ue))+a+xe.height),0>ce.S.x&&(b=Ov(y,ce.S.x,!1,b,se))):(ce.S.h(-E-xe.width-a,b+se/2-ce.focus.y-ce.la.y),E=Math.max(E,Math.abs(Math.min(rt,Ae))+a+xe.width),Ue=b+se/2-ce.focus.y-ce.la.y,te=Math.max(te,Ue+xe.height),0>Ue&&(te-=Ue),0>ce.S.y&&(b=Ov(y,ce.S.y,!0,b,se)))),y=0;y<ne;y++)se=x[y],ge?se.S.h(se.S.x,se.S.y+te):se.S.h(se.S.x+E,se.S.y);return new wn(b,0,E,te)}Jr.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},Jr.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function Ov(a,y,x,b,E){a=a.children;for(var te=a.length,ne=0;ne<te;ne++)x?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[te-1],Math.max(b,x?y.la.y+y.focus.y-E/2:y.la.x+y.focus.x-E/2)}function Oy(a,y,x){switch(a.alignment){case Md:case zf:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Jl:return a.width>y?a.width:y;case Ql:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case ec:case ql:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case tc:return a.width-a.focus.x+a.nodeSpacing/2+y;case Su:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Ay(a,y,x){switch(a.alignment){case Md:case zf:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Jl:return a.height>y?a.height:y;case Ql:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case ec:case ql:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case tc:return a.height-a.focus.y+a.nodeSpacing/2+y;case Su:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Ny(a,y,x){switch(a){case zf:y/=2,x/=2;break;case Md:y/=2,x/=2;break;case Jl:x=y=0;break;case Ql:break;default:zt("Unhandled alignment value "+a.toString())}return new Nt(y,x)}function Dh(a,y,x,b,E,te){y=Ny(y,x,b),Cd(a,y.x,y.y,E,te)}function Cd(a,y,x,b,E){if(y!==0||x!==0)for(a=a.children;b<=E;b++){var te=a[b].S;te.x+=y,te.y+=x}}function Av(a,y,x,b){var E=y.parent;switch(a.ud){case Yl:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case Ed:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:zt("Unhandled path value "+a.ud.toString())}}function Nv(a,y,x){for(var b=0;b<a.length;b++){var E=a[b];E.x+=y,E.y+=x}}function fx(a,y,x,b,E,te,ne,se){var ce=sl(y),ge=ce===90||ce===270,xe=y.nodeSpacing;y=b;var Ae=E;b=te;var Ue=ne,Je=x.Yo,rt=x.kp;ne=x.Da;var ht=ge?Math.max(Ue,ne.height):Math.max(b,ne.width);if((Je===null||ce!==sl(x))&&(Je=Ka(a,2),rt=Ka(a,2),ge?(Je[0].h(0,0),Je[1].h(0,ne.height),rt[0].h(ne.width,0),rt[1].h(rt[0].x,Je[1].y)):(Je[0].h(0,0),Je[1].h(ne.width,0),rt[0].h(0,ne.height),rt[1].h(Je[1].x,rt[0].y))),ge){if(Ue=9999999,!(Ae===null||2>Ae.length||Je===null||2>Je.length))for(E=x=0;x<Ae.length&&E<Je.length;){te=Ae[x];var Ft=Je[E];ce=Ft.x,ge=Ft.y,ce+=b;var Ot=te;x+1<Ae.length&&(Ot=Ae[x+1]);var _t=Ft;Ft=_t.x,_t=_t.y,E+1<Je.length&&(_t=Je[E+1],Ft=_t.x,_t=_t.y,Ft+=b);var Gt=Ue;te.y===ge?Gt=ce-te.x:te.y>ge&&te.y<_t?Gt=ce+(te.y-ge)/(_t-ge)*(Ft-ce)-te.x:ge>te.y&&ge<Ot.y&&(Gt=ce-(te.x+(ge-te.y)/(Ot.y-te.y)*(Ot.x-te.x))),Gt<Ue&&(Ue=Gt),Ot.y<=te.y?x++:_t<=ge?E++:(Ot.y<=_t&&x++,_t<=Ot.y&&E++)}if(Ue=b-Ue,Ue+=xe,x=Je,E=Ue,y===null||2>y.length||x===null||2>x.length)b=null;else{for(xe=Ka(a,y.length+x.length),b=te=ce=0;te<x.length&&x[te].y<y[0].y;)ge=x[te++],xe[b++].h(ge.x+E,ge.y);for(;ce<y.length;)ge=y[ce++],xe[b++].h(ge.x,ge.y);for(ce=y[y.length-1].y;te<x.length&&x[te].y<=ce;)te++;for(;te<x.length&&x[te].y>ce;)ge=x[te++],xe[b++].h(ge.x+E,ge.y);for(x=Ka(a,b),ce=0;ce<b;ce++)x[ce].assign(xe[ce]);vl(a,xe),b=x}if(te=rt,ce=Ue,Ae===null||2>Ae.length||te===null||2>te.length)E=null;else{for(xe=Ka(a,Ae.length+te.length),E=ge=x=0;x<Ae.length&&Ae[x].y<te[0].y;)Ot=Ae[x++],xe[E++].h(Ot.x,Ot.y);for(;ge<te.length;)Ot=te[ge++],xe[E++].h(Ot.x+ce,Ot.y);for(te=te[te.length-1].y;x<Ae.length&&Ae[x].y<=te;)x++;for(;x<Ae.length&&Ae[x].y>te;)ce=Ae[x++],xe[E++].h(ce.x,ce.y);for(te=Ka(a,E),x=0;x<E;x++)te[x].assign(xe[x]);vl(a,xe),E=te}return te=Math.max(0,Ue)+ne.width,ne=ht,vl(a,y),vl(a,Je),vl(a,Ae),vl(a,rt),se[0]=b,se[1]=E,new wn(Ue,0,te,ne)}if(b=9999999,!(Ae===null||2>Ae.length||Je===null||2>Je.length))for(E=x=0;x<Ae.length&&E<Je.length;)te=Ae[x],Ft=Je[E],ce=Ft.x,ge=Ft.y,ge+=Ue,Ot=te,x+1<Ae.length&&(Ot=Ae[x+1]),_t=Ft,Ft=_t.x,_t=_t.y,E+1<Je.length&&(_t=Je[E+1],Ft=_t.x,_t=_t.y,_t+=Ue),Gt=b,te.x===ce?Gt=ge-te.y:te.x>ce&&te.x<Ft?Gt=ge+(te.x-ce)/(Ft-ce)*(_t-ge)-te.y:ce>te.x&&ce<Ot.x&&(Gt=ge-(te.y+(ce-te.x)/(Ot.x-te.x)*(Ot.y-te.y))),Gt<b&&(b=Gt),Ot.x<=te.x?x++:Ft<=ce?E++:(Ot.x<=Ft&&x++,Ft<=Ot.x&&E++);if(Ue-=b,Ue+=xe,x=Je,E=Ue,y===null||2>y.length||x===null||2>x.length)b=null;else{for(xe=Ka(a,y.length+x.length),b=te=ce=0;te<x.length&&x[te].x<y[0].x;)ge=x[te++],xe[b++].h(ge.x,ge.y+E);for(;ce<y.length;)ge=y[ce++],xe[b++].h(ge.x,ge.y);for(ce=y[y.length-1].x;te<x.length&&x[te].x<=ce;)te++;for(;te<x.length&&x[te].x>ce;)ge=x[te++],xe[b++].h(ge.x,ge.y+E);for(x=Ka(a,b),ce=0;ce<b;ce++)x[ce].assign(xe[ce]);vl(a,xe),b=x}if(te=rt,ce=Ue,Ae===null||2>Ae.length||te===null||2>te.length)E=null;else{for(xe=Ka(a,Ae.length+te.length),E=ge=x=0;x<Ae.length&&Ae[x].x<te[0].x;)Ot=Ae[x++],xe[E++].h(Ot.x,Ot.y);for(;ge<te.length;)Ot=te[ge++],xe[E++].h(Ot.x,Ot.y+ce);for(te=te[te.length-1].x;x<Ae.length&&Ae[x].x<=te;)x++;for(;x<Ae.length&&Ae[x].x>te;)ce=Ae[x++],xe[E++].h(ce.x,ce.y);for(te=Ka(a,E),x=0;x<E;x++)te[x].assign(xe[x]);vl(a,xe),E=te}return te=ht,ne=Math.max(0,Ue)+ne.height,vl(a,y),vl(a,Je),vl(a,Ae),vl(a,rt),se[0]=b,se[1]=E,new wn(Ue,0,te,ne)}function Ka(a,y){if(a=a.ru[y],a!==void 0&&(a=a.pop(),a!==void 0))return a;a=[];for(var x=0;x<y;x++)a[x]=new Nt;return a}function vl(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}Jr.prototype.arrangeTrees=function(){if(this.Rb===Bv)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Vs){var x=y.node;if(x!==null){var b=x.position;x=b.x,b=b.y,isFinite(x)||(x=0),isFinite(b)||(b=0),jy(this,y,x,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof Vs&&a.push(x);switch(this.sorting){case _f:break;case wg:a.reverse();break;case bg:a.sort(this.comparer);break;case Pg:a.sort(this.comparer),a.reverse();break;default:zt("Unhandled sorting value "+this.sorting.toString())}for(x=this.arrangementOrigin,y=x.x,x=x.y,b=0;b<a.length;b++){var E=a[b];switch(jy(this,E,y+E.la.x,x+E.la.y),this.Rb){case Fv:x+=E.Da.height+this.$d.height;break;case By:y+=E.Da.width+this.$d.width;break;default:zt("Unhandled arrangement value "+this.Rb.toString())}}}};function jy(a,y,x,b){if(y!==null){y.x=x,y.y=b,y=y.children;for(var E=y.length,te=0;te<E;te++){var ne=y[te];jy(a,ne,x+ne.S.x,b+ne.S.y)}}}Jr.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Jr.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},Jr.prototype.Gu=function(){if(this.layerStyle===Rv){for(var a=this.$v,y=[],x=null,b=this.network.vertexes.iterator;b.next();){var E=b.value;x===null?x=E.bounds.copy():x.ed(E.bounds);var te=y[E.level];te===void 0?te=this.computeLayerSpacing(E):te=Math.max(te,this.computeLayerSpacing(E)),y[E.level]=te}for(b=0;b<y.length;b++)y[b]===void 0&&(y[b]=0);if(this.angle===90||this.angle===270?(x.Bc(this.nodeSpacing/2,this.layerSpacing),b=new Nt(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new Nt(-this.layerSpacing/2,-this.nodeSpacing/2)),E=[],x=this.angle===90||this.angle===270?x.width:x.height,te=0,this.angle===180||this.angle===270)for(var ne=0;ne<a.length;ne++)te+=a[ne]+y[ne];for(ne=0;ne<a.length;ne++){var se=a[ne]+y[ne];this.angle===270?(te-=se,E.push(new wn(0,te,x,se))):this.angle===90?(E.push(new wn(0,te,x,se)),te+=se):this.angle===180?(te-=se,E.push(new wn(te,0,se,x))):(E.push(new wn(te,0,se,x)),te+=se)}this.commitLayers(E,b)}},Jr.prototype.commitLayers=function(){},Jr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Jr.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Vs&&px(this,y)}};function px(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,b=0;b<x;b++)px(a,y[b])}}Jr.prototype.setPortSpots=function(a){var y=a.alignment;if(Yc(y)){var x=this.ud===Yl,b=sl(a);switch(b){case 0:var E=Uo;break;case 90:E=Ro;break;case 180:E=No;break;default:E=Co}var te=a.children,ne=te.length;switch(y){case ec:case ql:for(y=0;y<ne;y++){var se=te[y];if(se=(x?se.sourceEdges:se.destinationEdges).first(),se!==null&&(se=se.link,se!==null)){var ce=b===90||b===270?No:Co;if(ne===1||y===ne-1&&ne%2===1)switch(b){case 0:ce=No;break;case 90:ce=Co;break;case 180:ce=Uo;break;default:ce=Ro}else y%2===0&&(ce=b===90||b===270?Uo:Ro);x?(a.setsPortSpot&&(se.fromSpot=E),a.setsChildPortSpot&&(se.toSpot=ce)):(a.setsPortSpot&&(se.fromSpot=ce),a.setsChildPortSpot&&(se.toSpot=E))}}break;case tc:for(b=b===90||b===270?Uo:Ro,te=x?a.destinationEdges:a.sourceEdges;te.next();)ne=te.value.link,ne!==null&&(x?(a.setsPortSpot&&(ne.fromSpot=E),a.setsChildPortSpot&&(ne.toSpot=b)):(a.setsPortSpot&&(ne.fromSpot=b),a.setsChildPortSpot&&(ne.toSpot=E)));break;case Su:for(b=b===90||b===270?No:Co,te=x?a.destinationEdges:a.sourceEdges;te.next();)ne=te.value.link,ne!==null&&(x?(a.setsPortSpot&&(ne.fromSpot=E),a.setsChildPortSpot&&(ne.toSpot=b)):(a.setsPortSpot&&(ne.fromSpot=b),a.setsChildPortSpot&&(ne.toSpot=E)))}}else if(x=sl(a),this.ud===Yl){for(E=a.destinationEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.fromSpot=Uo;break;case 90:b.fromSpot=Ro;break;case 180:b.fromSpot=No;break;default:b.fromSpot=Co}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=No;break;case 90:b.toSpot=Co;break;case 180:b.toSpot=Uo;break;default:b.toSpot=Ro}else b.toSpot=a.childPortSpot}}else for(E=a.sourceEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.toSpot=Uo;break;case 90:b.toSpot=Ro;break;case 180:b.toSpot=No;break;default:b.toSpot=Co}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=No;break;case 90:b.fromSpot=Co;break;case 180:b.fromSpot=Uo;break;default:b.fromSpot=Ro}else b.fromSpot=a.childPortSpot}};function sl(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}Jr.prototype.computeLayerSpacing=function(a){var y=sl(a);y=y===90||y===270;var x=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var b=Math.min(1,a.layerSpacingParentOverlap);x-=y?a.height*b:a.width*b}return x<(y?-a.height:-a.width)&&(x=y?-a.height:-a.width),x},Jr.prototype.computeNodeIndent=function(a){var y=sl(a),x=a.nodeIndent;if(0<a.nodeIndentPastParent){var b=Math.min(1,a.nodeIndentPastParent);x+=y===90||y===270?a.width*b:a.height*b}return x=Math.max(0,x)},Lt.Object.defineProperties(Jr.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!==Dv&&a!==Dy&&a!==Iy&&a!==Fy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Ry&&a!==_y&&a!==Rv||(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!==Fv&&a!==By&&a!==Bv||(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!==_f&&a!==wg&&a!==bg&&!Pg||(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()):zt("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!==Iv&&a!==Cg||(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!==_f&&a!==wg&&a!==bg&&!Pg||(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!==Iv&&a!==Cg||(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 jv=new fn(Jr,"PathDefault",-1),Yl=new fn(Jr,"PathDestination",0),Ed=new fn(Jr,"PathSource",1),_f=new fn(Jr,"SortingForwards",10),wg=new fn(Jr,"SortingReverse",11),bg=new fn(Jr,"SortingAscending",12),Pg=new fn(Jr,"SortingDescending",13),zf=new fn(Jr,"AlignmentCenterSubtrees",20),Md=new fn(Jr,"AlignmentCenterChildren",21),Jl=new fn(Jr,"AlignmentStart",22),Ql=new fn(Jr,"AlignmentEnd",23),ec=new fn(Jr,"AlignmentBus",24),ql=new fn(Jr,"AlignmentBusBranching",25),tc=new fn(Jr,"AlignmentTopLeftBus",26),Su=new fn(Jr,"AlignmentBottomRightBus",27),Iv=new fn(Jr,"CompactionNone",30),Cg=new fn(Jr,"CompactionBlock",31),Dv=new fn(Jr,"StyleLayered",40),Iy=new fn(Jr,"StyleLastParents",41),Dy=new fn(Jr,"StyleAlternating",42),Fy=new fn(Jr,"StyleRootOnly",43),Fv=new fn(Jr,"ArrangementVertical",50),By=new fn(Jr,"ArrangementHorizontal",51),Bv=new fn(Jr,"ArrangementFixedRoots",52),Ry=new fn(Jr,"LayerIndividual",60),_y=new fn(Jr,"LayerSiblings",61),Rv=new fn(Jr,"LayerUniform",62);Jr.className="TreeLayout",Jr.PathDefault=jv,Jr.PathDestination=Yl,Jr.PathSource=Ed,Jr.SortingForwards=_f,Jr.SortingReverse=wg,Jr.SortingAscending=bg,Jr.SortingDescending=Pg,Jr.AlignmentCenterSubtrees=zf,Jr.AlignmentCenterChildren=Md,Jr.AlignmentStart=Jl,Jr.AlignmentEnd=Ql,Jr.AlignmentBus=ec,Jr.AlignmentBusBranching=ql,Jr.AlignmentTopLeftBus=tc,Jr.AlignmentBottomRightBus=Su,Jr.CompactionNone=Iv,Jr.CompactionBlock=Cg,Jr.StyleLayered=Dv,Jr.StyleLastParents=Iy,Jr.StyleAlternating=Dy,Jr.StyleRootOnly=Fy,Jr.ArrangementVertical=Fv,Jr.ArrangementHorizontal=By,Jr.ArrangementFixedRoots=Bv,Jr.LayerIndividual=Ry,Jr.LayerSiblings=_y,Jr.LayerUniform=Rv;function Td(a){Ii.call(this,a)}Xt(Td,Ii),Td.prototype.createVertex=function(){return new Vs(this)},Td.prototype.createEdge=function(){return new Gf(this)},Td.className="TreeNetwork";function Vs(a){To.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 Nt(0,0),this.Da=new Wn(0,0),this.la=new Nt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=_f,this.hd=oy,this.Kb=0,this.Jb=Md,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Cg,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=wi,this.wr=!0,this.Dp=wi}Xt(Vs,To),Vs.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)},Lt.Object.defineProperties(Vs.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,x=0;x<y;x++);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,x=0;x<y;x++);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)}}}),Vs.className="TreeVertex";function Gf(a){os.call(this,a),this.$t=new Nt(0,0)}Xt(Gf,os),Gf.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,x=null,b=null;switch(y.ud){case Yl:x=this.fromVertex,b=this.toVertex;break;case Ed:x=this.toVertex,b=this.fromVertex;break;default:zt("Unhandled path value "+y.ud.toString())}if(x!==null&&b!==null){var E=this.$t;if(E.x!==0||E.y!==0||x.qA){b=x.bounds;var te=sl(x),ne=y.computeLayerSpacing(x),se=x.rowSpacing;a.vg();var ce=a.curve===ms,ge=a.isOrthogonal,xe;if(a.uh(),ge||ce){for(xe=2;4<a.pointsCount;)a.pv(2);var Ae=a.i(1),Ue=a.i(2)}else{for(xe=1;3<a.pointsCount;)a.pv(1);Ae=a.i(0),Ue=a.i(a.pointsCount-1)}var Je=a.i(a.pointsCount-1);te===0?(x.alignment===Ql?(te=b.bottom+E.y,E.y===0&&Ae.y>Je.y+x.rowIndent&&(te=Math.min(te,Math.max(Ae.y,te-y.computeNodeIndent(x))))):x.alignment===Jl?(te=b.top+E.y,E.y===0&&Ae.y<Je.y-x.rowIndent&&(te=Math.max(te,Math.min(Ae.y,te+y.computeNodeIndent(x))))):te=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,ce?(a.m(xe,Ae.x,te),xe++,a.m(xe,b.right+ne,te),xe++,a.m(xe,b.right+ne+(E.x-se)/3,te),xe++,a.m(xe,b.right+ne+2*(E.x-se)/3,te),xe++,a.m(xe,b.right+ne+(E.x-se),te),xe++,a.m(xe,Ue.x,te)):(ge&&(a.m(xe,b.right+ne/2,Ae.y),xe++),a.m(xe,b.right+ne/2,te),xe++,a.m(xe,b.right+ne+E.x-(ge?se/2:se),te),xe++,ge&&a.m(xe,a.i(xe-1).x,Ue.y))):te===90?(x.alignment===Ql?(te=b.right+E.x,E.x===0&&Ae.x>Je.x+x.rowIndent&&(te=Math.min(te,Math.max(Ae.x,te-y.computeNodeIndent(x))))):x.alignment===Jl?(te=b.left+E.x,E.x===0&&Ae.x<Je.x-x.rowIndent&&(te=Math.max(te,Math.min(Ae.x,te+y.computeNodeIndent(x))))):te=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,ce?(a.m(xe,te,Ae.y),xe++,a.m(xe,te,b.bottom+ne),xe++,a.m(xe,te,b.bottom+ne+(E.y-se)/3),xe++,a.m(xe,te,b.bottom+ne+2*(E.y-se)/3),xe++,a.m(xe,te,b.bottom+ne+(E.y-se)),xe++,a.m(xe,te,Ue.y)):(ge&&(a.m(xe,Ae.x,b.bottom+ne/2),xe++),a.m(xe,te,b.bottom+ne/2),xe++,a.m(xe,te,b.bottom+ne+E.y-(ge?se/2:se)),xe++,ge&&a.m(xe,Ue.x,a.i(xe-1).y))):te===180?(x.alignment===Ql?(te=b.bottom+E.y,E.y===0&&Ae.y>Je.y+x.rowIndent&&(te=Math.min(te,Math.max(Ae.y,te-y.computeNodeIndent(x))))):x.alignment===Jl?(te=b.top+E.y,E.y===0&&Ae.y<Je.y-x.rowIndent&&(te=Math.max(te,Math.min(Ae.y,te+y.computeNodeIndent(x))))):te=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,ce?(a.m(xe,Ae.x,te),xe++,a.m(xe,b.left-ne,te),xe++,a.m(xe,b.left-ne+(E.x+se)/3,te),xe++,a.m(xe,b.left-ne+2*(E.x+se)/3,te),xe++,a.m(xe,b.left-ne+(E.x+se),te),xe++,a.m(xe,Ue.x,te)):(ge&&(a.m(xe,b.left-ne/2,Ae.y),xe++),a.m(xe,b.left-ne/2,te),xe++,a.m(xe,b.left-ne+E.x+(ge?se/2:se),te),xe++,ge&&a.m(xe,a.i(xe-1).x,Ue.y))):te===270?(x.alignment===Ql?(te=b.right+E.x,E.x===0&&Ae.x>Je.x+x.rowIndent&&(te=Math.min(te,Math.max(Ae.x,te-y.computeNodeIndent(x))))):x.alignment===Jl?(te=b.left+E.x,E.x===0&&Ae.x<Je.x-x.rowIndent&&(te=Math.max(te,Math.min(Ae.x,te+y.computeNodeIndent(x))))):te=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,ce?(a.m(xe,te,Ae.y),xe++,a.m(xe,te,b.top-ne),xe++,a.m(xe,te,b.top-ne+(E.y+se)/3),xe++,a.m(xe,te,b.top-ne+2*(E.y+se)/3),xe++,a.m(xe,te,b.top-ne+(E.y+se)),xe++,a.m(xe,te,Ue.y)):(ge&&(a.m(xe,Ae.x,b.top-ne/2),xe++),a.m(xe,te,b.top-ne/2),xe++,a.m(xe,te,b.top-ne+E.y+(ge?se/2:se)),xe++,ge&&a.m(xe,Ue.x,a.i(xe-1).y))):zt("Invalid angle "+te),a.zf()}else E=b,a=this.link,b=this.network.layout,y=sl(x),y!==sl(E)&&(ne=b.computeLayerSpacing(x),se=x.bounds,x=E.bounds,y===0&&x.left-se.right<ne+1||y===90&&x.top-se.bottom<ne+1||y===180&&se.left-x.right<ne+1||y===270&&se.top-x.bottom<ne+1||(a.vg(),x=a.curve===ms,E=a.isOrthogonal,b=Yc(this.fromVertex.alignment),a.uh(),y===0?(y=se.right+ne/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,x),a.m(3,y,x),a.m(4,y+20,x),a.L(5,a.i(5).x,x)):E?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=se.bottom+ne/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,x,y-20),a.m(3,x,y),a.m(4,x,y+20),a.L(5,x,a.i(5).y)):E?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=se.left-ne/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,x),a.m(3,y,x),a.m(4,y-20,x),a.L(5,a.i(5).x,x)):E?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=se.top-ne/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,x,y+20),a.m(3,x,y),a.m(4,x,y-20),a.L(5,x,a.i(5).y)):E?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()))}}},Lt.Object.defineProperties(Gf.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)}}}),Gf.className="TreeEdge",Wi.prototype.initializeStandardTools=function(){this.gb("Action",new _s,this.mouseDownTools),this.gb("Relinking",new hs,this.mouseDownTools),this.gb("LinkReshaping",new uo,this.mouseDownTools),this.gb("Rotating",new Pa,this.mouseDownTools),this.gb("Resizing",new ra,this.mouseDownTools),this.gb("Linking",new ba,this.mouseMoveTools),this.gb("Dragging",new Qi,this.mouseMoveTools),this.gb("DragSelecting",new bs,this.mouseMoveTools),this.gb("Panning",new qo,this.mouseMoveTools),this.gb("ContextMenu",new Ca,this.mouseUpTools),this.gb("TextEditing",new _i,this.mouseUpTools),this.gb("ClickCreating",new Du,this.mouseUpTools),this.gb("ClickSelecting",new Pc,this.mouseUpTools)},Ol("Horizontal",new fm),Ol("Spot",new gm),Ol("Table",new vm),Ol("Viewbox",new xm),Ol("TableRow",new ym),Ol("TableColumn",new Sm),Ol("Graduated",new zp),Ol("Grid",new _p),cf.add("GraphLinksModel",zo),cf.add("TreeModel",Os);var _v=Rt.go,zy={get licenseKey(){return sn.licenseKey},set licenseKey(a){sn.licenseKey=a},get version(){return sn.version},Group:Ir,EnumValue:fn,List:Tn,Set:Ln,Map:qn,Point:Nt,Size:Wn,Rect:wn,Margin:mr,Spot:sr,Geometry:Un,PathFigure:jo,PathSegment:di,InputEvent:ua,DiagramEvent:Mu,ChangedEvent:$i,Model:or,GraphLinksModel:ii,TreeModel:Na,Binding:ho,Transaction:_o,UndoManager:Ji,CommandHandler:Dt,Tool:ci,DraggingTool:Qi,DraggingInfo:fu,DraggingOptions:he,LinkingBaseTool:no,LinkingTool:ba,RelinkingTool:hs,LinkReshapingTool:uo,ResizingTool:ra,RotatingTool:Pa,ClickSelectingTool:Pc,ActionTool:_s,ClickCreatingTool:Du,HTMLInfo:El,ContextMenuTool:Ca,DragSelectingTool:bs,PanningTool:qo,TextEditingTool:_i,ToolManager:Wi,Animation:ea,AnimationManager:ns,AnimationTrigger:Qs,Layer:Wo,Diagram:sn,Palette:Te,Overview:Be,Brush:xi,GraphObject:Jt,Panel:Rn,RowColumnDefinition:wo,Shape:_r,TextBlock:ji,Picture:za,Part:pr,Adornment:hi,Node:Xn,Link:Hn,Placeholder:La,Layout:Ui,LayoutNetwork:Ii,LayoutVertex:To,LayoutEdge:os,GridLayout:Xo,PanelLayout:Mo,CircularLayout:qi,CircularNetwork:Ff,CircularVertex:pg,CircularEdge:Sv,ForceDirectedLayout:na,ForceDirectedNetwork:Pd,ForceDirectedVertex:gg,ForceDirectedEdge:mg,LayeredDigraphLayout:Pi,LayeredDigraphNetwork:Rf,LayeredDigraphVertex:Ns,LayeredDigraphEdge:Sg,TreeLayout:Jr,TreeNetwork:Td,TreeVertex:Vs,TreeEdge:Gf};typeof _v=="object"&&_v.version&&$n("WARNING: a `go` object on the root object is already defined. "+("Debug"in _v?"debug ":"")+"version: "+_v.version+", replaced with version: "+zy.version),sn.prototype.go=zy,Rt.go=zy,typeof bn.exports=="object"&&(bn.exports=typeof Ge.g!="undefined"?Ge.g.go:self.go)}();var Qe=typeof Ge.g!="undefined"?Ge.g.go:self.go;const Tt=typeof Ge.g!="undefined"?Ge.g.go:self.go,oe=Tt.Group,_e=Tt.EnumValue,Ne=Tt.List,ve=Tt.Set,fe=Tt.Map,be=Tt.Point,Pe=Tt.Size,ye=Tt.Rect,we=Tt.Margin,me=Tt.Spot,Se=Tt.Geometry,de=Tt.PathFigure,z=Tt.PathSegment,ee=Tt.InputEvent,ae=Tt.DiagramEvent,re=Tt.ChangedEvent,le=Tt.Model,ue=Tt.GraphLinksModel,pe=Tt.TreeModel,Ee=Tt.Binding,Ce=Tt.Transaction,je=Tt.UndoManager,Le=Tt.CommandHandler,ke=Tt.Tool,Oe=Tt.DraggingTool,Fe=Tt.DraggingInfo,Re=Tt.LinkingBaseTool,Ze=Tt.LinkingTool,ze=Tt.RelinkingTool,Ke=Tt.LinkReshapingTool,ot=Tt.ResizingTool,ct=Tt.RotatingTool,pt=Tt.ClickSelectingTool,bt=Tt.ActionTool,qe=Tt.ClickCreatingTool,at=Tt.HTMLInfo,gt=Tt.ContextMenuTool,Ct=Tt.DragSelectingTool,wt=Tt.PanningTool,vt=Tt.TextEditingTool,mt=Tt.ToolManager,xt=Tt.Animation,At=Tt.AnimationManager,kt=Tt.AnimationTrigger,Wt=Tt.Layer,Et=Tt.Diagram,St=Tt.Palette,tt=Tt.Overview,ft=Tt.Brush,$e=Tt.GraphObject,lt=Tt.Panel,Pt=Tt.RowColumnDefinition,dt=Tt.Shape,et=Tt.TextBlock,Ve=Tt.TextBlockMetrics,He=Tt.Picture,nt=Tt.Part,ut=Tt.Adornment,We=Tt.Node,De=Tt.Link,Ie=Tt.Placeholder,Xe=Tt.Layout,yt=Tt.LayoutNetwork,Ye=Tt.LayoutVertex,jt=Tt.LayoutEdge,Ht=Tt.GridLayout,en=Tt.PanelLayout,It=Tt.CircularLayout,Ut=Tt.CircularNetwork,tn=Tt.CircularVertex,ln=Tt.CircularEdge,mn=Tt.ForceDirectedLayout,jn=Tt.ForceDirectedNetwork,Vn=Tt.ForceDirectedVertex,Kn=Tt.ForceDirectedEdge,ar=Tt.LayeredDigraphLayout,xr=Tt.LayeredDigraphNetwork,gr=Tt.LayeredDigraphVertex,dr=Tt.LayeredDigraphEdge,Tr=Tt.TreeLayout,Rr=Tt.TreeNetwork,Zr=Tt.TreeVertex,ei=Tt.TreeEdge,jr=Tt.version},24334:function(bn,an,Ge){var Qe,Tt;(function(oe,_e){bn.exports=_e(oe)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof Ge.g!="undefined"?Ge.g:this,function(oe){"use strict";oe=oe||{};var _e=oe.Base64,Ne="2.6.4",ve="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fe=function(ze){for(var Ke={},ot=0,ct=ze.length;ot<ct;ot++)Ke[ze.charAt(ot)]=ot;return Ke}(ve),be=String.fromCharCode,Pe=function(ze){if(ze.length<2){var Ke=ze.charCodeAt(0);return Ke<128?ze:Ke<2048?be(192|Ke>>>6)+be(128|Ke&63):be(224|Ke>>>12&15)+be(128|Ke>>>6&63)+be(128|Ke&63)}else{var Ke=65536+(ze.charCodeAt(0)-55296)*1024+(ze.charCodeAt(1)-56320);return be(240|Ke>>>18&7)+be(128|Ke>>>12&63)+be(128|Ke>>>6&63)+be(128|Ke&63)}},ye=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,we=function(ze){return ze.replace(ye,Pe)},me=function(ze){var Ke=[0,2,1][ze.length%3],ot=ze.charCodeAt(0)<<16|(ze.length>1?ze.charCodeAt(1):0)<<8|(ze.length>2?ze.charCodeAt(2):0),ct=[ve.charAt(ot>>>18),ve.charAt(ot>>>12&63),Ke>=2?"=":ve.charAt(ot>>>6&63),Ke>=1?"=":ve.charAt(ot&63)];return ct.join("")},Se=oe.btoa&&typeof oe.btoa=="function"?function(ze){return oe.btoa(ze)}:function(ze){if(ze.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return ze.replace(/[\s\S]{1,3}/g,me)},de=function(ze){return Se(we(String(ze)))},z=function(ze){return ze.replace(/[+\/]/g,function(Ke){return Ke=="+"?"-":"_"}).replace(/=/g,"")},ee=function(ze,Ke){return Ke?z(de(ze)):de(ze)},ae=function(ze){return ee(ze,!0)},re;oe.Uint8Array&&(re=function(ze,Ke){for(var ot="",ct=0,pt=ze.length;ct<pt;ct+=3){var bt=ze[ct],qe=ze[ct+1],at=ze[ct+2],gt=bt<<16|qe<<8|at;ot+=ve.charAt(gt>>>18)+ve.charAt(gt>>>12&63)+(typeof qe!="undefined"?ve.charAt(gt>>>6&63):"=")+(typeof at!="undefined"?ve.charAt(gt&63):"=")}return Ke?z(ot):ot});var le=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ue=function(ze){switch(ze.length){case 4:var Ke=(7&ze.charCodeAt(0))<<18|(63&ze.charCodeAt(1))<<12|(63&ze.charCodeAt(2))<<6|63&ze.charCodeAt(3),ot=Ke-65536;return be((ot>>>10)+55296)+be((ot&1023)+56320);case 3:return be((15&ze.charCodeAt(0))<<12|(63&ze.charCodeAt(1))<<6|63&ze.charCodeAt(2));default:return be((31&ze.charCodeAt(0))<<6|63&ze.charCodeAt(1))}},pe=function(ze){return ze.replace(le,ue)},Ee=function(ze){var Ke=ze.length,ot=Ke%4,ct=(Ke>0?fe[ze.charAt(0)]<<18:0)|(Ke>1?fe[ze.charAt(1)]<<12:0)|(Ke>2?fe[ze.charAt(2)]<<6:0)|(Ke>3?fe[ze.charAt(3)]:0),pt=[be(ct>>>16),be(ct>>>8&255),be(ct&255)];return pt.length-=[0,0,2,1][ot],pt.join("")},Ce=oe.atob&&typeof oe.atob=="function"?function(ze){return oe.atob(ze)}:function(ze){return ze.replace(/\S{1,4}/g,Ee)},je=function(ze){return Ce(String(ze).replace(/[^A-Za-z0-9\+\/]/g,""))},Le=function(ze){return pe(Ce(ze))},ke=function(ze){return String(ze).replace(/[-_]/g,function(Ke){return Ke=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Oe=function(ze){return Le(ke(ze))},Fe;oe.Uint8Array&&(Fe=function(ze){return Uint8Array.from(je(ke(ze)),function(Ke){return Ke.charCodeAt(0)})});var Re=function(){var ze=oe.Base64;return oe.Base64=_e,ze};if(oe.Base64={VERSION:Ne,atob:je,btoa:Se,fromBase64:Oe,toBase64:ee,utob:we,encode:ee,encodeURI:ae,btou:pe,decode:Oe,noConflict:Re,fromUint8Array:re,toUint8Array:Fe},typeof Object.defineProperty=="function"){var Ze=function(ze){return{value:ze,enumerable:!1,writable:!0,configurable:!0}};oe.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Ze(function(){return Oe(this)})),Object.defineProperty(String.prototype,"toBase64",Ze(function(ze){return ee(this,ze)})),Object.defineProperty(String.prototype,"toBase64URI",Ze(function(){return ee(this,!0)}))}}return oe.Meteor&&(Base64=oe.Base64),bn.exports?bn.exports.Base64=oe.Base64:(Qe=[],Tt=function(){return oe.Base64}.apply(an,Qe),Tt!==void 0&&(bn.exports=Tt)),{Base64:oe.Base64}})},17115:function(bn,an,Ge){"use strict";Ge.d(an,{ZP:function(){return fe}});var Qe=Ge(52487),Tt=Ge(59301),oe=Ge(47273),_e=0,Ne=(0,oe.Z)();function ve(){var be;return Ne?(be=_e,_e+=1):be="TEST_OR_SSR",be}function fe(be){var Pe=Tt.useState(),ye=(0,Qe.Z)(Pe,2),we=ye[0],me=ye[1];return Tt.useEffect(function(){me("rc_select_".concat(ve()))},[]),be||we}},77861:function(bn,an,Ge){"use strict";Ge.d(an,{Ac:function(){return Xe},Xo:function(){return Kn},Wx:function(){return xr},ZP:function(){return pn},lk:function(){return pe}});var Qe=Ge(72308),Tt=Ge(80702),oe=Ge(49618),_e=Ge(77321),Ne=Ge(52487),ve=Ge(74416),fe=Ge(62853),be=Ge(18929),Pe=Ge(48736),ye=Ge(59301),we=Ge(92310),me=Ge.n(we),Se=Ge(34280),de=Ge(49658),z=Ge(10228),ee=Ge(8654),ae=function(Rt){var rn=Rt.className,yn=Rt.customizeIcon,Mn=Rt.customizeIconProps,On=Rt.onMouseDown,zt=Rt.onClick,xn=Rt.children,Fn;return typeof yn=="function"?Fn=yn(Mn):Fn=yn,ye.createElement("span",{className:rn,onMouseDown:function(gn){gn.preventDefault(),On&&On(gn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:zt,"aria-hidden":!0},Fn!==void 0?Fn:ye.createElement("span",{className:me()(rn.split(/\s+/).map(function($n){return"".concat($n,"-icon")}))},xn))},re=ae;function le(Vt,Rt,rn,yn,Mn){var On=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,zt=arguments.length>6?arguments[6]:void 0,xn=arguments.length>7?arguments[7]:void 0,Fn=ye.useMemo(function(){if((0,fe.Z)(yn)==="object")return yn.clearIcon;if(Mn)return Mn},[yn,Mn]),$n=ye.useMemo(function(){return!!(!On&&yn&&(rn.length||zt)&&!(xn==="combobox"&&zt===""))},[yn,On,rn.length,zt,xn]);return{allowClear:$n,clearIcon:ye.createElement(re,{className:"".concat(Vt,"-clear"),onMouseDown:Rt,customizeIcon:Fn},"\xD7")}}var ue=ye.createContext(null);function pe(){return ye.useContext(ue)}function Ee(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Rt=ye.useState(!1),rn=(0,Ne.Z)(Rt,2),yn=rn[0],Mn=rn[1],On=ye.useRef(null),zt=function(){window.clearTimeout(On.current)};ye.useEffect(function(){return zt},[]);var xn=function($n,gn){zt(),On.current=window.setTimeout(function(){Mn($n),gn&&gn()},Vt)};return[yn,xn,zt]}function Ce(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Rt=ye.useRef(null),rn=ye.useRef(null);ye.useEffect(function(){return function(){window.clearTimeout(rn.current)}},[]);function yn(Mn){(Mn||Rt.current===null)&&(Rt.current=Mn),window.clearTimeout(rn.current),rn.current=window.setTimeout(function(){Rt.current=null},Vt)}return[function(){return Rt.current},yn]}function je(Vt,Rt,rn,yn){var Mn=ye.useRef(null);Mn.current={open:Rt,triggerOpen:rn,customizedTrigger:yn},ye.useEffect(function(){function On(zt){var xn;if(!((xn=Mn.current)!==null&&xn!==void 0&&xn.customizedTrigger)){var Fn=zt.target;Fn.shadowRoot&&zt.composed&&(Fn=zt.composedPath()[0]||Fn),Mn.current.open&&Vt().filter(function($n){return $n}).every(function($n){return!$n.contains(Fn)&&$n!==Fn})&&Mn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",On),function(){return window.removeEventListener("mousedown",On)}},[])}var Le=Ge(26112),ke=Ge(11780),Oe=function(Rt,rn){var yn,Mn,On=Rt.prefixCls,zt=Rt.id,xn=Rt.inputElement,Fn=Rt.disabled,$n=Rt.tabIndex,gn=Rt.autoFocus,Sn=Rt.autoComplete,Qt=Rt.editable,hn=Rt.activeDescendantId,dn=Rt.value,cn=Rt.maxLength,Pn=Rt.onKeyDown,Cn=Rt.onMouseDown,Dn=Rt.onChange,In=Rt.onPaste,tr=Rt.onCompositionStart,un=Rt.onCompositionEnd,fr=Rt.open,wr=Rt.attrs,Or=xn||ye.createElement("input",null),fn=Or,_n=fn.ref,Yn=fn.props,hr=Yn.onKeyDown,Qn=Yn.onChange,ur=Yn.onMouseDown,Cr=Yn.onCompositionStart,Pr=Yn.onCompositionEnd,cr=Yn.style;return(0,Pe.Kp)(!("maxLength"in Or.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Or=ye.cloneElement(Or,(0,_e.Z)((0,_e.Z)((0,_e.Z)({type:"search"},Yn),{},{id:zt,ref:(0,ee.sQ)(rn,_n),disabled:Fn,tabIndex:$n,autoComplete:Sn||"off",autoFocus:gn,className:me()("".concat(On,"-selection-search-input"),(yn=Or)===null||yn===void 0||(Mn=yn.props)===null||Mn===void 0?void 0:Mn.className),role:"combobox","aria-label":"Search","aria-expanded":fr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(zt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(zt,"_list"),"aria-activedescendant":fr?hn:void 0},wr),{},{value:Qt?dn:"",maxLength:cn,readOnly:!Qt,unselectable:Qt?null:"on",style:(0,_e.Z)((0,_e.Z)({},cr),{},{opacity:Qt?null:0}),onKeyDown:function(Tn){Pn(Tn),hr&&hr(Tn)},onMouseDown:function(Tn){Cn(Tn),ur&&ur(Tn)},onChange:function(Tn){Dn(Tn),Qn&&Qn(Tn)},onCompositionStart:function(Tn){tr(Tn),Cr&&Cr(Tn)},onCompositionEnd:function(Tn){un(Tn),Pr&&Pr(Tn)},onPaste:In})),Or},Fe=ye.forwardRef(Oe);Fe.displayName="Input";var Re=Fe;function Ze(Vt){return Array.isArray(Vt)?Vt:Vt!==void 0?[Vt]:[]}var ze=typeof window!="undefined"&&window.document&&window.document.documentElement,Ke=ze;function ot(Vt){return Vt!=null}function ct(Vt){return!Vt&&Vt!==0}function pt(Vt){return["string","number"].includes((0,fe.Z)(Vt))}function bt(Vt){var Rt=void 0;return Vt&&(pt(Vt.title)?Rt=Vt.title.toString():pt(Vt.label)&&(Rt=Vt.label.toString())),Rt}function qe(Vt,Rt){Ke?ye.useLayoutEffect(Vt,Rt):ye.useEffect(Vt,Rt)}function at(Vt){var Rt;return(Rt=Vt.key)!==null&&Rt!==void 0?Rt:Vt.value}var gt=function(Rt){Rt.preventDefault(),Rt.stopPropagation()},Ct=function(Rt){var rn=Rt.id,yn=Rt.prefixCls,Mn=Rt.values,On=Rt.open,zt=Rt.searchValue,xn=Rt.autoClearSearchValue,Fn=Rt.inputRef,$n=Rt.placeholder,gn=Rt.disabled,Sn=Rt.mode,Qt=Rt.showSearch,hn=Rt.autoFocus,dn=Rt.autoComplete,cn=Rt.activeDescendantId,Pn=Rt.tabIndex,Cn=Rt.removeIcon,Dn=Rt.maxTagCount,In=Rt.maxTagTextLength,tr=Rt.maxTagPlaceholder,un=tr===void 0?function(ni){return"+ ".concat(ni.length," ...")}:tr,fr=Rt.tagRender,wr=Rt.onToggleOpen,Or=Rt.onRemove,fn=Rt.onInputChange,_n=Rt.onInputPaste,Yn=Rt.onInputKeyDown,hr=Rt.onInputMouseDown,Qn=Rt.onInputCompositionStart,ur=Rt.onInputCompositionEnd,Cr=ye.useRef(null),Pr=(0,ye.useState)(0),cr=(0,Ne.Z)(Pr,2),Mr=cr[0],Tn=cr[1],qr=(0,ye.useState)(!1),Ln=(0,Ne.Z)(qr,2),zr=Ln[0],li=Ln[1],Ar="".concat(yn,"-selection"),fi=On||Sn==="multiple"&&xn===!1||Sn==="tags"?zt:"",oi=Sn==="tags"||Sn==="multiple"&&xn===!1||Qt&&(On||zr);qe(function(){Tn(Cr.current.scrollWidth)},[fi]);function Sr(ni,Ci,Xr,Ei,Oi){return ye.createElement("span",{className:me()("".concat(Ar,"-item"),(0,oe.Z)({},"".concat(Ar,"-item-disabled"),Xr)),title:bt(ni)},ye.createElement("span",{className:"".concat(Ar,"-item-content")},Ci),Ei&&ye.createElement(re,{className:"".concat(Ar,"-item-remove"),onMouseDown:gt,onClick:Oi,customizeIcon:Cn},"\xD7"))}function yr(ni,Ci,Xr,Ei,Oi){var Fr=function(ri){gt(ri),wr(!On)};return ye.createElement("span",{onMouseDown:Fr},fr({label:Ci,value:ni,disabled:Xr,closable:Ei,onClose:Oi}))}function Kr(ni){var Ci=ni.disabled,Xr=ni.label,Ei=ni.value,Oi=!gn&&!Ci,Fr=Xr;if(typeof In=="number"&&(typeof Xr=="string"||typeof Xr=="number")){var Gr=String(Fr);Gr.length>In&&(Fr="".concat(Gr.slice(0,In),"..."))}var ri=function(Mi){Mi&&Mi.stopPropagation(),Or(ni)};return typeof fr=="function"?yr(Ei,Fr,Ci,Oi,ri):Sr(ni,Fr,Ci,Oi,ri)}function ai(ni){var Ci=typeof un=="function"?un(ni):un;return Sr({title:Ci},Ci,!1)}var qn=ye.createElement("div",{className:"".concat(Ar,"-search"),style:{width:Mr},onFocus:function(){li(!0)},onBlur:function(){li(!1)}},ye.createElement(Re,{ref:Fn,open:On,prefixCls:yn,id:rn,inputElement:null,disabled:gn,autoFocus:hn,autoComplete:dn,editable:oi,activeDescendantId:cn,value:fi,onKeyDown:Yn,onMouseDown:hr,onChange:fn,onPaste:_n,onCompositionStart:Qn,onCompositionEnd:ur,tabIndex:Pn,attrs:(0,Le.Z)(Rt,!0)}),ye.createElement("span",{ref:Cr,className:"".concat(Ar,"-search-mirror"),"aria-hidden":!0},fi,"\xA0")),Nt=ye.createElement(ke.Z,{prefixCls:"".concat(Ar,"-overflow"),data:Mn,renderItem:Kr,renderRest:ai,suffix:qn,itemKey:at,maxCount:Dn});return ye.createElement(ye.Fragment,null,Nt,!Mn.length&&!fi&&ye.createElement("span",{className:"".concat(Ar,"-placeholder")},$n))},wt=Ct,vt=function(Rt){var rn=Rt.inputElement,yn=Rt.prefixCls,Mn=Rt.id,On=Rt.inputRef,zt=Rt.disabled,xn=Rt.autoFocus,Fn=Rt.autoComplete,$n=Rt.activeDescendantId,gn=Rt.mode,Sn=Rt.open,Qt=Rt.values,hn=Rt.placeholder,dn=Rt.tabIndex,cn=Rt.showSearch,Pn=Rt.searchValue,Cn=Rt.activeValue,Dn=Rt.maxLength,In=Rt.onInputKeyDown,tr=Rt.onInputMouseDown,un=Rt.onInputChange,fr=Rt.onInputPaste,wr=Rt.onInputCompositionStart,Or=Rt.onInputCompositionEnd,fn=Rt.title,_n=ye.useState(!1),Yn=(0,Ne.Z)(_n,2),hr=Yn[0],Qn=Yn[1],ur=gn==="combobox",Cr=ur||cn,Pr=Qt[0],cr=Pn||"";ur&&Cn&&!hr&&(cr=Cn),ye.useEffect(function(){ur&&Qn(!1)},[ur,Cn]);var Mr=gn!=="combobox"&&!Sn&&!cn?!1:!!cr,Tn=fn===void 0?bt(Pr):fn,qr=function(){if(Pr)return null;var zr=Mr?{visibility:"hidden"}:void 0;return ye.createElement("span",{className:"".concat(yn,"-selection-placeholder"),style:zr},hn)};return ye.createElement(ye.Fragment,null,ye.createElement("span",{className:"".concat(yn,"-selection-search")},ye.createElement(Re,{ref:On,prefixCls:yn,id:Mn,open:Sn,inputElement:rn,disabled:zt,autoFocus:xn,autoComplete:Fn,editable:Cr,activeDescendantId:$n,value:cr,onKeyDown:In,onMouseDown:tr,onChange:function(zr){Qn(!0),un(zr)},onPaste:fr,onCompositionStart:wr,onCompositionEnd:Or,tabIndex:dn,attrs:(0,Le.Z)(Rt,!0),maxLength:ur?Dn:void 0})),!ur&&Pr?ye.createElement("span",{className:"".concat(yn,"-selection-item"),title:Tn,style:Mr?{visibility:"hidden"}:void 0},Pr.label):null,qr())},mt=vt;function xt(Vt){return![z.Z.ESC,z.Z.SHIFT,z.Z.BACKSPACE,z.Z.TAB,z.Z.WIN_KEY,z.Z.ALT,z.Z.META,z.Z.WIN_KEY_RIGHT,z.Z.CTRL,z.Z.SEMICOLON,z.Z.EQUALS,z.Z.CAPS_LOCK,z.Z.CONTEXT_MENU,z.Z.F1,z.Z.F2,z.Z.F3,z.Z.F4,z.Z.F5,z.Z.F6,z.Z.F7,z.Z.F8,z.Z.F9,z.Z.F10,z.Z.F11,z.Z.F12].includes(Vt)}var At=function(Rt,rn){var yn=(0,ye.useRef)(null),Mn=(0,ye.useRef)(!1),On=Rt.prefixCls,zt=Rt.open,xn=Rt.mode,Fn=Rt.showSearch,$n=Rt.tokenWithEnter,gn=Rt.autoClearSearchValue,Sn=Rt.onSearch,Qt=Rt.onSearchSubmit,hn=Rt.onToggleOpen,dn=Rt.onInputKeyDown,cn=Rt.domRef;ye.useImperativeHandle(rn,function(){return{focus:function(){yn.current.focus()},blur:function(){yn.current.blur()}}});var Pn=Ce(0),Cn=(0,Ne.Z)(Pn,2),Dn=Cn[0],In=Cn[1],tr=function(cr){var Mr=cr.which;(Mr===z.Z.UP||Mr===z.Z.DOWN)&&cr.preventDefault(),dn&&dn(cr),Mr===z.Z.ENTER&&xn==="tags"&&!Mn.current&&!zt&&(Qt==null||Qt(cr.target.value)),xt(Mr)&&hn(!0)},un=function(){In(!0)},fr=(0,ye.useRef)(null),wr=function(cr){Sn(cr,!0,Mn.current)!==!1&&hn(!0)},Or=function(){Mn.current=!0},fn=function(cr){Mn.current=!1,xn!=="combobox"&&wr(cr.target.value)},_n=function(cr){var Mr=cr.target.value;if($n&&fr.current&&/[\r\n]/.test(fr.current)){var Tn=fr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Mr=Mr.replace(Tn,fr.current)}fr.current=null,wr(Mr)},Yn=function(cr){var Mr=cr.clipboardData,Tn=Mr.getData("text");fr.current=Tn},hr=function(cr){var Mr=cr.target;if(Mr!==yn.current){var Tn=document.body.style.msTouchAction!==void 0;Tn?setTimeout(function(){yn.current.focus()}):yn.current.focus()}},Qn=function(cr){var Mr=Dn();cr.target!==yn.current&&!Mr&&xn!=="combobox"&&cr.preventDefault(),(xn!=="combobox"&&(!Fn||!Mr)||!zt)&&(zt&&gn!==!1&&Sn("",!0,!1),hn())},ur={inputRef:yn,onInputKeyDown:tr,onInputMouseDown:un,onInputChange:_n,onInputPaste:Yn,onInputCompositionStart:Or,onInputCompositionEnd:fn},Cr=xn==="multiple"||xn==="tags"?ye.createElement(wt,(0,Qe.Z)({},Rt,ur)):ye.createElement(mt,(0,Qe.Z)({},Rt,ur));return ye.createElement("div",{ref:cn,className:"".concat(On,"-selector"),onClick:hr,onMouseDown:Qn},Cr)},kt=ye.forwardRef(At);kt.displayName="Selector";var Wt=kt,Et=Ge(35593),St=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],tt=function(Rt){var rn=Rt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:rn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:rn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:rn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:rn,adjustY:1},htmlRegion:"scroll"}}},ft=function(Rt,rn){var yn=Rt.prefixCls,Mn=Rt.disabled,On=Rt.visible,zt=Rt.children,xn=Rt.popupElement,Fn=Rt.animation,$n=Rt.transitionName,gn=Rt.dropdownStyle,Sn=Rt.dropdownClassName,Qt=Rt.direction,hn=Qt===void 0?"ltr":Qt,dn=Rt.placement,cn=Rt.builtinPlacements,Pn=Rt.dropdownMatchSelectWidth,Cn=Rt.dropdownRender,Dn=Rt.dropdownAlign,In=Rt.getPopupContainer,tr=Rt.empty,un=Rt.getTriggerDOMNode,fr=Rt.onPopupVisibleChange,wr=Rt.onPopupMouseEnter,Or=(0,ve.Z)(Rt,St),fn="".concat(yn,"-dropdown"),_n=xn;Cn&&(_n=Cn(xn));var Yn=ye.useMemo(function(){return cn||tt(Pn)},[cn,Pn]),hr=Fn?"".concat(fn,"-").concat(Fn):$n,Qn=typeof Pn=="number",ur=ye.useMemo(function(){return Qn?null:Pn===!1?"minWidth":"width"},[Pn,Qn]),Cr=gn;Qn&&(Cr=(0,_e.Z)((0,_e.Z)({},Cr),{},{width:Pn}));var Pr=ye.useRef(null);return ye.useImperativeHandle(rn,function(){return{getPopupElement:function(){return Pr.current}}}),ye.createElement(Et.Z,(0,Qe.Z)({},Or,{showAction:fr?["click"]:[],hideAction:fr?["click"]:[],popupPlacement:dn||(hn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Yn,prefixCls:fn,popupTransitionName:hr,popup:ye.createElement("div",{ref:Pr,onMouseEnter:wr},_n),stretch:ur,popupAlign:Dn,popupVisible:On,getPopupContainer:In,popupClassName:me()(Sn,(0,oe.Z)({},"".concat(fn,"-empty"),tr)),popupStyle:Cr,getTriggerDOMNode:un,onPopupVisibleChange:fr}),zt)},$e=ye.forwardRef(ft);$e.displayName="SelectTrigger";var lt=$e,Pt=Ge(68413);function dt(Vt,Rt){var rn=Vt.key,yn;return"value"in Vt&&(yn=Vt.value),rn!=null?rn:yn!==void 0?yn:"rc-index-key-".concat(Rt)}function et(Vt,Rt){var rn=Vt||{},yn=rn.label,Mn=rn.value,On=rn.options,zt=rn.groupLabel,xn=yn||(Rt?"children":"label");return{label:xn,value:Mn||"value",options:On||"options",groupLabel:zt||xn}}function Ve(Vt){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rn=Rt.fieldNames,yn=Rt.childrenAsData,Mn=[],On=et(rn,!1),zt=On.label,xn=On.value,Fn=On.options,$n=On.groupLabel;function gn(Sn,Qt){Sn.forEach(function(hn){if(Qt||!(Fn in hn)){var dn=hn[xn];Mn.push({key:dt(hn,Mn.length),groupOption:Qt,data:hn,label:hn[zt],value:dn})}else{var cn=hn[$n];cn===void 0&&yn&&(cn=hn.label),Mn.push({key:dt(hn,Mn.length),group:!0,data:hn,label:cn}),gn(hn[Fn],!0)}})}return gn(Vt,!1),Mn}function He(Vt){var Rt=(0,_e.Z)({},Vt);return"props"in Rt||Object.defineProperty(Rt,"props",{get:function(){return(0,Pe.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Rt}}),Rt}function nt(Vt,Rt){if(!Rt||!Rt.length)return null;var rn=!1;function yn(On,zt){var xn=(0,Pt.Z)(zt),Fn=xn[0],$n=xn.slice(1);if(!Fn)return[On];var gn=On.split(Fn);return rn=rn||gn.length>1,gn.reduce(function(Sn,Qt){return[].concat((0,Tt.Z)(Sn),(0,Tt.Z)(yn(Qt,$n)))},[]).filter(function(Sn){return Sn})}var Mn=yn(Vt,Rt);return rn?Mn:null}var ut=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],We=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function De(Vt){return Vt==="tags"||Vt==="multiple"}var Ie=ye.forwardRef(function(Vt,Rt){var rn,yn,Mn=Vt.id,On=Vt.prefixCls,zt=Vt.className,xn=Vt.showSearch,Fn=Vt.tagRender,$n=Vt.direction,gn=Vt.omitDomProps,Sn=Vt.displayValues,Qt=Vt.onDisplayValuesChange,hn=Vt.emptyOptions,dn=Vt.notFoundContent,cn=dn===void 0?"Not Found":dn,Pn=Vt.onClear,Cn=Vt.mode,Dn=Vt.disabled,In=Vt.loading,tr=Vt.getInputElement,un=Vt.getRawInputElement,fr=Vt.open,wr=Vt.defaultOpen,Or=Vt.onDropdownVisibleChange,fn=Vt.activeValue,_n=Vt.onActiveValueChange,Yn=Vt.activeDescendantId,hr=Vt.searchValue,Qn=Vt.autoClearSearchValue,ur=Vt.onSearch,Cr=Vt.onSearchSplit,Pr=Vt.tokenSeparators,cr=Vt.allowClear,Mr=Vt.suffixIcon,Tn=Vt.clearIcon,qr=Vt.OptionList,Ln=Vt.animation,zr=Vt.transitionName,li=Vt.dropdownStyle,Ar=Vt.dropdownClassName,fi=Vt.dropdownMatchSelectWidth,oi=Vt.dropdownRender,Sr=Vt.dropdownAlign,yr=Vt.placement,Kr=Vt.builtinPlacements,ai=Vt.getPopupContainer,qn=Vt.showAction,Nt=qn===void 0?[]:qn,ni=Vt.onFocus,Ci=Vt.onBlur,Xr=Vt.onKeyUp,Ei=Vt.onKeyDown,Oi=Vt.onMouseDown,Fr=(0,ve.Z)(Vt,ut),Gr=De(Cn),ri=(xn!==void 0?xn:Gr)||Cn==="combobox",Vr=(0,_e.Z)({},Fr);We.forEach(function(wi){delete Vr[wi]}),gn==null||gn.forEach(function(wi){delete Vr[wi]});var Mi=ye.useState(!1),Fi=(0,Ne.Z)(Mi,2),Lr=Fi[0],kr=Fi[1];ye.useEffect(function(){kr((0,de.Z)())},[]);var Wn=ye.useRef(null),Br=ye.useRef(null),vi=ye.useRef(null),Ki=ye.useRef(null),Ti=ye.useRef(null),gi=Ee(),Gi=(0,Ne.Z)(gi,3),Xi=Gi[0],vo=Gi[1],yo=Gi[2];ye.useImperativeHandle(Rt,function(){var wi,Vi;return{focus:(wi=Ki.current)===null||wi===void 0?void 0:wi.focus,blur:(Vi=Ki.current)===null||Vi===void 0?void 0:Vi.blur,scrollTo:function(Sa){var Ho;return(Ho=Ti.current)===null||Ho===void 0?void 0:Ho.scrollTo(Sa)}}});var Po=ye.useMemo(function(){var wi;if(Cn!=="combobox")return hr;var Vi=(wi=Sn[0])===null||wi===void 0?void 0:wi.value;return typeof Vi=="string"||typeof Vi=="number"?String(Vi):""},[hr,Cn,Sn]),wn=Cn==="combobox"&&typeof tr=="function"&&tr()||null,ao=typeof un=="function"&&un(),cl=(0,ee.x1)(Br,ao==null||(rn=ao.props)===null||rn===void 0?void 0:rn.ref),la=ye.useState(!1),Ai=(0,Ne.Z)(la,2),mi=Ai[0],so=Ai[1];(0,Se.Z)(function(){so(!0)},[]);var Bi=(0,be.Z)(!1,{defaultValue:wr,value:fr}),yi=(0,Ne.Z)(Bi,2),Yi=yi[0],ma=yi[1],Yr=mi?Yi:!1,Li=!cn&&hn;(Dn||Li&&Yr&&Cn==="combobox")&&(Yr=!1);var Si=Li?!1:Yr,mr=ye.useCallback(function(wi){var Vi=wi!==void 0?wi:!Yr;Dn||(ma(Vi),Yr!==Vi&&(Or==null||Or(Vi)))},[Dn,Yr,ma,Or]),ko=ye.useMemo(function(){return(Pr||[]).some(function(wi){return[`
|
|
|
`,`\r
|
|
|
`].includes(wi)})},[Pr]),Oo=function(Vi,ya,Sa){var Ho=!0,Co=Vi;_n==null||_n(null);var No=Sa?null:nt(Vi,Pr);return Cn!=="combobox"&&No&&(Co="",Cr==null||Cr(No),mr(!1),Ho=!1),ur&&Po!==Co&&ur(Co,{source:ya?"typing":"effect"}),Ho},va=function(Vi){!Vi||!Vi.trim()||ur(Vi,{source:"submit"})};ye.useEffect(function(){!Yr&&!Gr&&Cn!=="combobox"&&Oo("",!1,!1)},[Yr]),ye.useEffect(function(){Yi&&Dn&&ma(!1),Dn&&vo(!1)},[Dn]);var Is=Ce(),hl=(0,Ne.Z)(Is,2),sr=hl[0],io=hl[1],Ao=function(Vi){var ya=sr(),Sa=Vi.which;if(Sa===z.Z.ENTER&&(Cn!=="combobox"&&Vi.preventDefault(),Yr||mr(!0)),io(!!Po),Sa===z.Z.BACKSPACE&&!ya&&Gr&&!Po&&Sn.length){for(var Ho=(0,Tt.Z)(Sn),Co=null,No=Ho.length-1;No>=0;No-=1){var Uo=Ho[No];if(!Uo.disabled){Ho.splice(No,1),Co=Uo;break}}Co&&Qt(Ho,{type:"remove",values:[Co]})}for(var Ro=arguments.length,Pl=new Array(Ro>1?Ro-1:0),Bs=1;Bs<Ro;Bs++)Pl[Bs-1]=arguments[Bs];if(Yr&&Ti.current){var Lo;(Lo=Ti.current).onKeyDown.apply(Lo,[Vi].concat(Pl))}Ei==null||Ei.apply(void 0,[Vi].concat(Pl))},Ss=function(Vi){for(var ya=arguments.length,Sa=new Array(ya>1?ya-1:0),Ho=1;Ho<ya;Ho++)Sa[Ho-1]=arguments[Ho];if(Yr&&Ti.current){var Co;(Co=Ti.current).onKeyUp.apply(Co,[Vi].concat(Sa))}Xr==null||Xr.apply(void 0,[Vi].concat(Sa))},ru=function(Vi){var ya=Sn.filter(function(Sa){return Sa!==Vi});Qt(ya,{type:"remove",values:[Vi]})},Ds=ye.useRef(!1),ui=function(){vo(!0),Dn||(ni&&!Ds.current&&ni.apply(void 0,arguments),Nt.includes("focus")&&mr(!0)),Ds.current=!0},hc=function(){vo(!1,function(){Ds.current=!1,mr(!1)}),!Dn&&(Po&&(Cn==="tags"?ur(Po,{source:"submit"}):Cn==="multiple"&&ur("",{source:"blur"})),Ci&&Ci.apply(void 0,arguments))},Ya=[];ye.useEffect(function(){return function(){Ya.forEach(function(wi){return clearTimeout(wi)}),Ya.splice(0,Ya.length)}},[]);var Ja=function(Vi){var ya,Sa=Vi.target,Ho=(ya=vi.current)===null||ya===void 0?void 0:ya.getPopupElement();if(Ho&&Ho.contains(Sa)){var Co=setTimeout(function(){var Pl=Ya.indexOf(Co);if(Pl!==-1&&Ya.splice(Pl,1),yo(),!Lr&&!Ho.contains(document.activeElement)){var Bs;(Bs=Ki.current)===null||Bs===void 0||Bs.focus()}});Ya.push(Co)}for(var No=arguments.length,Uo=new Array(No>1?No-1:0),Ro=1;Ro<No;Ro++)Uo[Ro-1]=arguments[Ro];Oi==null||Oi.apply(void 0,[Vi].concat(Uo))},Qa=ye.useState({}),Fl=(0,Ne.Z)(Qa,2),iu=Fl[1];function qa(){iu({})}var xs;ao&&(xs=function(Vi){mr(Vi)}),je(function(){var wi;return[Wn.current,(wi=vi.current)===null||wi===void 0?void 0:wi.getPopupElement()]},Si,mr,!!ao);var dc=ye.useMemo(function(){return(0,_e.Z)((0,_e.Z)({},Vt),{},{notFoundContent:cn,open:Yr,triggerOpen:Si,id:Mn,showSearch:ri,multiple:Gr,toggleOpen:mr})},[Vt,cn,Si,Yr,Mn,ri,Gr,mr]),oh=!!Mr||In,fc;oh&&(fc=ye.createElement(re,{className:me()("".concat(On,"-arrow"),(0,oe.Z)({},"".concat(On,"-arrow-loading"),In)),customizeIcon:Mr,customizeIconProps:{loading:In,searchValue:Po,open:Yr,focused:Xi,showSearch:ri}}));var Uh=function(){var Vi;Pn==null||Pn(),(Vi=Ki.current)===null||Vi===void 0||Vi.focus(),Qt([],{type:"clear",values:Sn}),Oo("",!1,!1)},pc=le(On,Uh,Sn,cr,Tn,Dn,Po,Cn),gc=pc.allowClear,Bl=pc.clearIcon,Fs=ye.createElement(qr,{ref:Ti}),ah=me()(On,zt,(yn={},(0,oe.Z)(yn,"".concat(On,"-focused"),Xi),(0,oe.Z)(yn,"".concat(On,"-multiple"),Gr),(0,oe.Z)(yn,"".concat(On,"-single"),!Gr),(0,oe.Z)(yn,"".concat(On,"-allow-clear"),cr),(0,oe.Z)(yn,"".concat(On,"-show-arrow"),oh),(0,oe.Z)(yn,"".concat(On,"-disabled"),Dn),(0,oe.Z)(yn,"".concat(On,"-loading"),In),(0,oe.Z)(yn,"".concat(On,"-open"),Yr),(0,oe.Z)(yn,"".concat(On,"-customize-input"),wn),(0,oe.Z)(yn,"".concat(On,"-show-search"),ri),yn)),mc=ye.createElement(lt,{ref:vi,disabled:Dn,prefixCls:On,visible:Si,popupElement:Fs,animation:Ln,transitionName:zr,dropdownStyle:li,dropdownClassName:Ar,direction:$n,dropdownMatchSelectWidth:fi,dropdownRender:oi,dropdownAlign:Sr,placement:yr,builtinPlacements:Kr,getPopupContainer:ai,empty:hn,getTriggerDOMNode:function(){return Br.current},onPopupVisibleChange:xs,onPopupMouseEnter:qa},ao?ye.cloneElement(ao,{ref:cl}):ye.createElement(Wt,(0,Qe.Z)({},Vt,{domRef:Br,prefixCls:On,inputElement:wn,ref:Ki,id:Mn,showSearch:ri,autoClearSearchValue:Qn,mode:Cn,activeDescendantId:Yn,tagRender:Fn,values:Sn,open:Yr,onToggleOpen:mr,activeValue:fn,searchValue:Po,onSearch:Oo,onSearchSubmit:va,onRemove:ru,tokenWithEnter:ko}))),vc;return ao?vc=mc:vc=ye.createElement("div",(0,Qe.Z)({className:ah},Vr,{ref:Wn,onMouseDown:Ja,onKeyDown:Ao,onKeyUp:Ss,onFocus:ui,onBlur:hc}),Xi&&!Yr&&ye.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Sn.map(function(wi){var Vi=wi.label,ya=wi.value;return["number","string"].includes((0,fe.Z)(Vi))?Vi:ya}).join(", "))),mc,fc,gc&&Bl),ye.createElement(ue.Provider,{value:dc},vc)}),Xe=Ie,yt=function(Vt,Rt){var rn=ye.useRef({values:new Map,options:new Map}),yn=ye.useMemo(function(){var On=rn.current,zt=On.values,xn=On.options,Fn=Vt.map(function(Sn){if(Sn.label===void 0){var Qt;return(0,_e.Z)((0,_e.Z)({},Sn),{},{label:(Qt=zt.get(Sn.value))===null||Qt===void 0?void 0:Qt.label})}return Sn}),$n=new Map,gn=new Map;return Fn.forEach(function(Sn){$n.set(Sn.value,Sn),gn.set(Sn.value,Rt.get(Sn.value)||xn.get(Sn.value))}),rn.current.values=$n,rn.current.options=gn,Fn},[Vt,Rt]),Mn=ye.useCallback(function(On){return Rt.get(On)||rn.current.options.get(On)},[Rt]);return[yn,Mn]};function Ye(Vt,Rt){return Ze(Vt).join("").toUpperCase().includes(Rt)}var jt=function(Vt,Rt,rn,yn,Mn){return ye.useMemo(function(){if(!rn||yn===!1)return Vt;var On=Rt.options,zt=Rt.label,xn=Rt.value,Fn=[],$n=typeof yn=="function",gn=rn.toUpperCase(),Sn=$n?yn:function(hn,dn){return Mn?Ye(dn[Mn],gn):dn[On]?Ye(dn[zt!=="children"?zt:"label"],gn):Ye(dn[xn],gn)},Qt=$n?function(hn){return He(hn)}:function(hn){return hn};return Vt.forEach(function(hn){if(hn[On]){var dn=Sn(rn,Qt(hn));if(dn)Fn.push(hn);else{var cn=hn[On].filter(function(Pn){return Sn(rn,Qt(Pn))});cn.length&&Fn.push((0,_e.Z)((0,_e.Z)({},hn),{},(0,oe.Z)({},On,cn)))}return}Sn(rn,Qt(hn))&&Fn.push(hn)}),Fn},[Vt,yn,Mn,rn,Rt])},Ht=Ge(17115),en=Ge(11592),It=["children","value"],Ut=["children"];function tn(Vt){var Rt=Vt,rn=Rt.key,yn=Rt.props,Mn=yn.children,On=yn.value,zt=(0,ve.Z)(yn,It);return(0,_e.Z)({key:rn,value:On!==void 0?On:rn,children:Mn},zt)}function ln(Vt){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,en.Z)(Vt).map(function(rn,yn){if(!ye.isValidElement(rn)||!rn.type)return null;var Mn=rn,On=Mn.type.isSelectOptGroup,zt=Mn.key,xn=Mn.props,Fn=xn.children,$n=(0,ve.Z)(xn,Ut);return Rt||!On?tn(rn):(0,_e.Z)((0,_e.Z)({key:"__RC_SELECT_GRP__".concat(zt===null?yn:zt,"__"),label:zt},$n),{},{options:ln(Fn)})}).filter(function(rn){return rn})}function mn(Vt,Rt,rn,yn,Mn){return ye.useMemo(function(){var On=Vt,zt=!Vt;zt&&(On=ln(Rt));var xn=new Map,Fn=new Map,$n=function(Qt,hn,dn){dn&&typeof dn=="string"&&Qt.set(hn[dn],hn)};function gn(Sn){for(var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,hn=0;hn<Sn.length;hn+=1){var dn=Sn[hn];!dn[rn.options]||Qt?(xn.set(dn[rn.value],dn),$n(Fn,dn,rn.label),$n(Fn,dn,yn),$n(Fn,dn,Mn)):gn(dn[rn.options],!0)}}return gn(On),{options:On,valueOptions:xn,labelOptions:Fn}},[Vt,Rt,rn,yn,Mn])}function jn(Vt){var Rt=ye.useRef();Rt.current=Vt;var rn=ye.useCallback(function(){return Rt.current.apply(Rt,arguments)},[]);return rn}var Vn=function(){return null};Vn.isSelectOptGroup=!0;var Kn=Vn,ar=function(){return null};ar.isSelectOption=!0;var xr=ar,gr=Ge(80547),dr=Ge(2738),Tr=Ge(45680),Rr=ye.createContext(null),Zr=Rr;function ei(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var jr=["disabled","title","children","style","className"];function it(Vt){return typeof Vt=="string"||typeof Vt=="number"}var Qr=function(Rt,rn){var yn=pe(),Mn=yn.prefixCls,On=yn.id,zt=yn.open,xn=yn.multiple,Fn=yn.mode,$n=yn.searchValue,gn=yn.toggleOpen,Sn=yn.notFoundContent,Qt=yn.onPopupScroll,hn=ye.useContext(Zr),dn=hn.flattenOptions,cn=hn.onActiveValue,Pn=hn.defaultActiveFirstOption,Cn=hn.onSelect,Dn=hn.menuItemSelectedIcon,In=hn.rawValues,tr=hn.fieldNames,un=hn.virtual,fr=hn.direction,wr=hn.listHeight,Or=hn.listItemHeight,fn="".concat(Mn,"-item"),_n=(0,gr.Z)(function(){return dn},[zt,dn],function(Sr,yr){return yr[0]&&Sr[1]!==yr[1]}),Yn=ye.useRef(null),hr=function(yr){yr.preventDefault()},Qn=function(yr){Yn.current&&Yn.current.scrollTo(typeof yr=="number"?{index:yr}:yr)},ur=function(yr){for(var Kr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ai=_n.length,qn=0;qn<ai;qn+=1){var Nt=(yr+qn*Kr+ai)%ai,ni=_n[Nt],Ci=ni.group,Xr=ni.data;if(!Ci&&!Xr.disabled)return Nt}return-1},Cr=ye.useState(function(){return ur(0)}),Pr=(0,Ne.Z)(Cr,2),cr=Pr[0],Mr=Pr[1],Tn=function(yr){var Kr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Mr(yr);var ai={source:Kr?"keyboard":"mouse"},qn=_n[yr];if(!qn){cn(null,-1,ai);return}cn(qn.value,yr,ai)};(0,ye.useEffect)(function(){Tn(Pn!==!1?ur(0):-1)},[_n.length,$n]);var qr=ye.useCallback(function(Sr){return In.has(Sr)&&Fn!=="combobox"},[Fn,(0,Tt.Z)(In).toString(),In.size]);(0,ye.useEffect)(function(){var Sr=setTimeout(function(){if(!xn&&zt&&In.size===1){var Kr=Array.from(In)[0],ai=_n.findIndex(function(qn){var Nt=qn.data;return Nt.value===Kr});ai!==-1&&(Tn(ai),Qn(ai))}});if(zt){var yr;(yr=Yn.current)===null||yr===void 0||yr.scrollTo(void 0)}return function(){return clearTimeout(Sr)}},[zt,$n,dn.length]);var Ln=function(yr){yr!==void 0&&Cn(yr,{selected:!In.has(yr)}),xn||gn(!1)};if(ye.useImperativeHandle(rn,function(){return{onKeyDown:function(yr){var Kr=yr.which,ai=yr.ctrlKey;switch(Kr){case z.Z.N:case z.Z.P:case z.Z.UP:case z.Z.DOWN:{var qn=0;if(Kr===z.Z.UP?qn=-1:Kr===z.Z.DOWN?qn=1:ei()&&ai&&(Kr===z.Z.N?qn=1:Kr===z.Z.P&&(qn=-1)),qn!==0){var Nt=ur(cr+qn,qn);Qn(Nt),Tn(Nt,!0)}break}case z.Z.ENTER:{var ni=_n[cr];ni&&!ni.data.disabled?Ln(ni.value):Ln(void 0),zt&&yr.preventDefault();break}case z.Z.ESC:gn(!1),zt&&yr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(yr){Qn(yr)}}}),_n.length===0)return ye.createElement("div",{role:"listbox",id:"".concat(On,"_list"),className:"".concat(fn,"-empty"),onMouseDown:hr},Sn);var zr=Object.keys(tr).map(function(Sr){return tr[Sr]}),li=function(yr){return yr.label};function Ar(Sr,yr){var Kr=Sr.group;return{role:Kr?"presentation":"option",id:"".concat(On,"_list_").concat(yr)}}var fi=function(yr){var Kr=_n[yr];if(!Kr)return null;var ai=Kr.data||{},qn=ai.value,Nt=Kr.group,ni=(0,Le.Z)(ai,!0),Ci=li(Kr);return Kr?ye.createElement("div",(0,Qe.Z)({"aria-label":typeof Ci=="string"&&!Nt?Ci:null},ni,{key:yr},Ar(Kr,yr),{"aria-selected":qr(qn)}),qn):null},oi={role:"listbox",id:"".concat(On,"_list")};return ye.createElement(ye.Fragment,null,un&&ye.createElement("div",(0,Qe.Z)({},oi,{style:{height:0,width:0,overflow:"hidden"}}),fi(cr-1),fi(cr),fi(cr+1)),ye.createElement(Tr.Z,{itemKey:"key",ref:Yn,data:_n,height:wr,itemHeight:Or,fullHeight:!1,onMouseDown:hr,onScroll:Qt,virtual:un,direction:fr,innerProps:un?null:oi},function(Sr,yr){var Kr,ai=Sr.group,qn=Sr.groupOption,Nt=Sr.data,ni=Sr.label,Ci=Sr.value,Xr=Nt.key;if(ai){var Ei,Oi=(Ei=Nt.title)!==null&&Ei!==void 0?Ei:it(ni)?ni.toString():void 0;return ye.createElement("div",{className:me()(fn,"".concat(fn,"-group")),title:Oi},ni!==void 0?ni:Xr)}var Fr=Nt.disabled,Gr=Nt.title,ri=Nt.children,Vr=Nt.style,Mi=Nt.className,Fi=(0,ve.Z)(Nt,jr),Lr=(0,dr.Z)(Fi,zr),kr=qr(Ci),Wn="".concat(fn,"-option"),Br=me()(fn,Wn,Mi,(Kr={},(0,oe.Z)(Kr,"".concat(Wn,"-grouped"),qn),(0,oe.Z)(Kr,"".concat(Wn,"-active"),cr===yr&&!Fr),(0,oe.Z)(Kr,"".concat(Wn,"-disabled"),Fr),(0,oe.Z)(Kr,"".concat(Wn,"-selected"),kr),Kr)),vi=li(Sr),Ki=!Dn||typeof Dn=="function"||kr,Ti=typeof vi=="number"?vi:vi||Ci,gi=it(Ti)?Ti.toString():void 0;return Gr!==void 0&&(gi=Gr),ye.createElement("div",(0,Qe.Z)({},(0,Le.Z)(Lr),un?{}:Ar(Sr,yr),{"aria-selected":kr,className:Br,title:gi,onMouseMove:function(){cr===yr||Fr||Tn(yr)},onClick:function(){Fr||Ln(Ci)},style:Vr}),ye.createElement("div",{className:"".concat(Wn,"-content")},Ti),ye.isValidElement(Dn)||kr,Ki&&ye.createElement(re,{className:"".concat(fn,"-option-state"),customizeIcon:Dn,customizeIconProps:{isSelected:kr}},kr?"\u2713":null))}))},$r=ye.forwardRef(Qr);$r.displayName="OptionList";var En=$r;function er(Vt){var Rt=Vt.mode,rn=Vt.options,yn=Vt.children,Mn=Vt.backfill,On=Vt.allowClear,zt=Vt.placeholder,xn=Vt.getInputElement,Fn=Vt.showSearch,$n=Vt.onSearch,gn=Vt.defaultOpen,Sn=Vt.autoFocus,Qt=Vt.labelInValue,hn=Vt.value,dn=Vt.inputValue,cn=Vt.optionLabelProp,Pn=isMultiple(Rt),Cn=Fn!==void 0?Fn:Pn||Rt==="combobox",Dn=rn||convertChildrenToData(yn);if(warning(Rt!=="tags"||Dn.every(function(fr){return!fr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Rt==="tags"||Rt==="combobox"){var In=Dn.some(function(fr){return fr.options?fr.options.some(function(wr){return typeof("value"in wr?wr.value:wr.key)=="number"}):typeof("value"in fr?fr.value:fr.key)=="number"});warning(!In,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Rt!=="combobox"||!cn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Rt==="combobox"||!Mn,"`backfill` only works with `combobox` mode."),warning(Rt==="combobox"||!xn,"`getInputElement` only work with `combobox` mode."),noteOnce(Rt!=="combobox"||!xn||!On||!zt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),$n&&!Cn&&Rt!=="combobox"&&Rt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!gn||Sn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),hn!=null){var tr=toArray(hn);warning(!Qt||tr.every(function(fr){return _typeof(fr)==="object"&&("key"in fr||"value"in fr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Pn||Array.isArray(hn),"`value` should be array when `mode` is `multiple` or `tags`")}if(yn){var un=null;toNodeArray(yn).some(function(fr){if(!React.isValidElement(fr)||!fr.type)return!1;var wr=fr,Or=wr.type;if(Or.isSelectOption)return!1;if(Or.isSelectOptGroup){var fn=toNodeArray(fr.props.children).every(function(_n){return!React.isValidElement(_n)||!fr.type||_n.type.isSelectOption?!0:(un=_n.type,!1)});return!fn}return un=Or,!0}),un&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(un.displayName||un.name||un,"`.")),warning(dn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function rr(Vt,Rt){if(Vt){var rn=function yn(Mn){for(var On=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,zt=0;zt<Mn.length;zt++){var xn=Mn[zt];if(xn[Rt==null?void 0:Rt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!On&&Array.isArray(xn[Rt==null?void 0:Rt.options])&&yn(xn[Rt==null?void 0:Rt.options],!0))break}};rn(Vt)}}var vr=null,zn=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],Nn=["inputValue"];function $t(Vt){return!Vt||(0,fe.Z)(Vt)!=="object"}var Xt=ye.forwardRef(function(Vt,Rt){var rn=Vt.id,yn=Vt.mode,Mn=Vt.prefixCls,On=Mn===void 0?"rc-select":Mn,zt=Vt.backfill,xn=Vt.fieldNames,Fn=Vt.inputValue,$n=Vt.searchValue,gn=Vt.onSearch,Sn=Vt.autoClearSearchValue,Qt=Sn===void 0?!0:Sn,hn=Vt.onSelect,dn=Vt.onDeselect,cn=Vt.dropdownMatchSelectWidth,Pn=cn===void 0?!0:cn,Cn=Vt.filterOption,Dn=Vt.filterSort,In=Vt.optionFilterProp,tr=Vt.optionLabelProp,un=Vt.options,fr=Vt.children,wr=Vt.defaultActiveFirstOption,Or=Vt.menuItemSelectedIcon,fn=Vt.virtual,_n=Vt.direction,Yn=Vt.listHeight,hr=Yn===void 0?200:Yn,Qn=Vt.listItemHeight,ur=Qn===void 0?20:Qn,Cr=Vt.value,Pr=Vt.defaultValue,cr=Vt.labelInValue,Mr=Vt.onChange,Tn=(0,ve.Z)(Vt,zn),qr=(0,Ht.ZP)(rn),Ln=De(yn),zr=!!(!un&&fr),li=ye.useMemo(function(){return Cn===void 0&&yn==="combobox"?!1:Cn},[Cn,yn]),Ar=ye.useMemo(function(){return et(xn,zr)},[JSON.stringify(xn),zr]),fi=(0,be.Z)("",{value:$n!==void 0?$n:Fn,postState:function(Li){return Li||""}}),oi=(0,Ne.Z)(fi,2),Sr=oi[0],yr=oi[1],Kr=mn(un,fr,Ar,In,tr),ai=Kr.valueOptions,qn=Kr.labelOptions,Nt=Kr.options,ni=ye.useCallback(function(Yr){var Li=Ze(Yr);return Li.map(function(Si){var mr,ko,Oo,va,Is;if($t(Si))mr=Si;else{var hl;Oo=Si.key,ko=Si.label,mr=(hl=Si.value)!==null&&hl!==void 0?hl:Oo}var sr=ai.get(mr);if(sr){var io;if(ko===void 0&&(ko=sr==null?void 0:sr[tr||Ar.label]),Oo===void 0&&(Oo=(io=sr==null?void 0:sr.key)!==null&&io!==void 0?io:mr),va=sr==null?void 0:sr.disabled,Is=sr==null?void 0:sr.title,0)var Ao}return{label:ko,value:mr,key:Oo,disabled:va,title:Is}})},[Ar,tr,ai]),Ci=(0,be.Z)(Pr,{value:Cr}),Xr=(0,Ne.Z)(Ci,2),Ei=Xr[0],Oi=Xr[1],Fr=ye.useMemo(function(){var Yr,Li=ni(Ei);return yn==="combobox"&&ct((Yr=Li[0])===null||Yr===void 0?void 0:Yr.value)?[]:Li},[Ei,ni,yn]),Gr=yt(Fr,ai),ri=(0,Ne.Z)(Gr,2),Vr=ri[0],Mi=ri[1],Fi=ye.useMemo(function(){if(!yn&&Vr.length===1){var Yr=Vr[0];if(Yr.value===null&&(Yr.label===null||Yr.label===void 0))return[]}return Vr.map(function(Li){var Si;return(0,_e.Z)((0,_e.Z)({},Li),{},{label:(Si=Li.label)!==null&&Si!==void 0?Si:Li.value})})},[yn,Vr]),Lr=ye.useMemo(function(){return new Set(Vr.map(function(Yr){return Yr.value}))},[Vr]);ye.useEffect(function(){if(yn==="combobox"){var Yr,Li=(Yr=Vr[0])===null||Yr===void 0?void 0:Yr.value;yr(ot(Li)?String(Li):"")}},[Vr]);var kr=jn(function(Yr,Li){var Si,mr=Li!=null?Li:Yr;return Si={},(0,oe.Z)(Si,Ar.value,Yr),(0,oe.Z)(Si,Ar.label,mr),Si}),Wn=ye.useMemo(function(){if(yn!=="tags")return Nt;var Yr=(0,Tt.Z)(Nt),Li=function(mr){return ai.has(mr)};return(0,Tt.Z)(Vr).sort(function(Si,mr){return Si.value<mr.value?-1:1}).forEach(function(Si){var mr=Si.value;Li(mr)||Yr.push(kr(mr,Si.label))}),Yr},[kr,Nt,ai,Vr,yn]),Br=jt(Wn,Ar,Sr,li,In),vi=ye.useMemo(function(){return yn!=="tags"||!Sr||Br.some(function(Yr){return Yr[In||"value"]===Sr})||Br.some(function(Yr){return Yr[Ar.value]===Sr})?Br:[kr(Sr)].concat((0,Tt.Z)(Br))},[kr,In,yn,Br,Sr,Ar]),Ki=ye.useMemo(function(){return Dn?(0,Tt.Z)(vi).sort(function(Yr,Li){return Dn(Yr,Li)}):vi},[vi,Dn]),Ti=ye.useMemo(function(){return Ve(Ki,{fieldNames:Ar,childrenAsData:zr})},[Ki,Ar,zr]),gi=function(Li){var Si=ni(Li);if(Oi(Si),Mr&&(Si.length!==Vr.length||Si.some(function(Oo,va){var Is;return((Is=Vr[va])===null||Is===void 0?void 0:Is.value)!==(Oo==null?void 0:Oo.value)}))){var mr=cr?Si:Si.map(function(Oo){return Oo.value}),ko=Si.map(function(Oo){return He(Mi(Oo.value))});Mr(Ln?mr:mr[0],Ln?ko:ko[0])}},Gi=ye.useState(null),Xi=(0,Ne.Z)(Gi,2),vo=Xi[0],yo=Xi[1],Po=ye.useState(0),wn=(0,Ne.Z)(Po,2),ao=wn[0],cl=wn[1],la=wr!==void 0?wr:yn!=="combobox",Ai=ye.useCallback(function(Yr,Li){var Si=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},mr=Si.source,ko=mr===void 0?"keyboard":mr;cl(Li),zt&&yn==="combobox"&&Yr!==null&&ko==="keyboard"&&yo(String(Yr))},[zt,yn]),mi=function(Li,Si,mr){var ko=function(){var Ds,ui=Mi(Li);return[cr?{label:ui==null?void 0:ui[Ar.label],value:Li,key:(Ds=ui==null?void 0:ui.key)!==null&&Ds!==void 0?Ds:Li}:Li,He(ui)]};if(Si&&hn){var Oo=ko(),va=(0,Ne.Z)(Oo,2),Is=va[0],hl=va[1];hn(Is,hl)}else if(!Si&&dn&&mr!=="clear"){var sr=ko(),io=(0,Ne.Z)(sr,2),Ao=io[0],Ss=io[1];dn(Ao,Ss)}},so=jn(function(Yr,Li){var Si,mr=Ln?Li.selected:!0;mr?Si=Ln?[].concat((0,Tt.Z)(Vr),[Yr]):[Yr]:Si=Vr.filter(function(ko){return ko.value!==Yr}),gi(Si),mi(Yr,mr),yn==="combobox"?yo(""):(!De||Qt)&&(yr(""),yo(""))}),Bi=function(Li,Si){gi(Li);var mr=Si.type,ko=Si.values;(mr==="remove"||mr==="clear")&&ko.forEach(function(Oo){mi(Oo.value,!1,mr)})},yi=function(Li,Si){if(yr(Li),yo(null),Si.source==="submit"){var mr=(Li||"").trim();if(mr){var ko=Array.from(new Set([].concat((0,Tt.Z)(Lr),[mr])));gi(ko),mi(mr,!0),yr("")}return}Si.source!=="blur"&&(yn==="combobox"&&gi(Li),gn==null||gn(Li))},Yi=function(Li){var Si=Li;yn!=="tags"&&(Si=Li.map(function(ko){var Oo=qn.get(ko);return Oo==null?void 0:Oo.value}).filter(function(ko){return ko!==void 0}));var mr=Array.from(new Set([].concat((0,Tt.Z)(Lr),(0,Tt.Z)(Si))));gi(mr),mr.forEach(function(ko){mi(ko,!0)})},ma=ye.useMemo(function(){var Yr=fn!==!1&&Pn!==!1;return(0,_e.Z)((0,_e.Z)({},Kr),{},{flattenOptions:Ti,onActiveValue:Ai,defaultActiveFirstOption:la,onSelect:so,menuItemSelectedIcon:Or,rawValues:Lr,fieldNames:Ar,virtual:Yr,direction:_n,listHeight:hr,listItemHeight:ur,childrenAsData:zr})},[Kr,Ti,Ai,la,so,Or,Lr,Ar,fn,Pn,hr,ur,zr]);return ye.createElement(Zr.Provider,{value:ma},ye.createElement(Xe,(0,Qe.Z)({},Tn,{id:qr,prefixCls:On,ref:Rt,omitDomProps:Nn,mode:yn,displayValues:Fi,onDisplayValuesChange:Bi,direction:_n,searchValue:Sr,onSearch:yi,autoClearSearchValue:Qt,onSearchSplit:Yi,dropdownMatchSelectWidth:Pn,OptionList:En,emptyOptions:!Ti.length,activeValue:vo,activeDescendantId:"".concat(qr,"_list_").concat(ao)})))}),Lt=Xt;Lt.Option=xr,Lt.OptGroup=Kn;var nn=Lt,pn=nn},9296:function(bn,an,Ge){"use strict";Ge.r(an),Ge.d(an,{ResizableTextArea:function(){return Fe},default:function(){return ct}});var Qe=Ge(72308),Tt=Ge(77321),oe=Ge(49618),_e=Ge(62853),Ne=Ge(52487),ve=Ge(74416),fe=Ge(80702),be=Ge(92310),Pe=Ge.n(be),ye=Ge(93681),we=Ge(5643),me=Ge(18929),Se=Ge(59301),de=Ge(29301),z=Ge(34280),ee=Ge(16089),ae=`
|
|
|
min-height:0 !important;
|
|
|
max-height:none !important;
|
|
|
height:0 !important;
|
|
|
visibility:hidden !important;
|
|
|
overflow:hidden !important;
|
|
|
position:absolute !important;
|
|
|
z-index:-1000 !important;
|
|
|
top:0 !important;
|
|
|
right:0 !important;
|
|
|
pointer-events: none !important;
|
|
|
`,re=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],le={},ue;function pe(pt){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe=pt.getAttribute("id")||pt.getAttribute("data-reactid")||pt.getAttribute("name");if(bt&&le[qe])return le[qe];var at=window.getComputedStyle(pt),gt=at.getPropertyValue("box-sizing")||at.getPropertyValue("-moz-box-sizing")||at.getPropertyValue("-webkit-box-sizing"),Ct=parseFloat(at.getPropertyValue("padding-bottom"))+parseFloat(at.getPropertyValue("padding-top")),wt=parseFloat(at.getPropertyValue("border-bottom-width"))+parseFloat(at.getPropertyValue("border-top-width")),vt=re.map(function(xt){return"".concat(xt,":").concat(at.getPropertyValue(xt))}).join(";"),mt={sizingStyle:vt,paddingSize:Ct,borderSize:wt,boxSizing:gt};return bt&&qe&&(le[qe]=mt),mt}function Ee(pt){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,at=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ue||(ue=document.createElement("textarea"),ue.setAttribute("tab-index","-1"),ue.setAttribute("aria-hidden","true"),document.body.appendChild(ue)),pt.getAttribute("wrap")?ue.setAttribute("wrap",pt.getAttribute("wrap")):ue.removeAttribute("wrap");var gt=pe(pt,bt),Ct=gt.paddingSize,wt=gt.borderSize,vt=gt.boxSizing,mt=gt.sizingStyle;ue.setAttribute("style","".concat(mt,";").concat(ae)),ue.value=pt.value||pt.placeholder||"";var xt=void 0,At=void 0,kt,Wt=ue.scrollHeight;if(vt==="border-box"?Wt+=wt:vt==="content-box"&&(Wt-=Ct),qe!==null||at!==null){ue.value=" ";var Et=ue.scrollHeight-Ct;qe!==null&&(xt=Et*qe,vt==="border-box"&&(xt=xt+Ct+wt),Wt=Math.max(xt,Wt)),at!==null&&(At=Et*at,vt==="border-box"&&(At=At+Ct+wt),kt=Wt>At?"":"hidden",Wt=Math.min(At,Wt))}var St={height:Wt,overflowY:kt,resize:"none"};return xt&&(St.minHeight=xt),At&&(St.maxHeight=At),St}var Ce=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],je=0,Le=1,ke=2,Oe=Se.forwardRef(function(pt,bt){var qe=pt,at=qe.prefixCls,gt=qe.onPressEnter,Ct=qe.defaultValue,wt=qe.value,vt=qe.autoSize,mt=qe.onResize,xt=qe.className,At=qe.style,kt=qe.disabled,Wt=qe.onChange,Et=qe.onInternalAutoSize,St=(0,ve.Z)(qe,Ce),tt=(0,me.Z)(Ct,{value:wt,postState:function(Kn){return Kn!=null?Kn:""}}),ft=(0,Ne.Z)(tt,2),$e=ft[0],lt=ft[1],Pt=function(Kn){lt(Kn.target.value),Wt==null||Wt(Kn)},dt=Se.useRef();Se.useImperativeHandle(bt,function(){return{textArea:dt.current}});var et=Se.useMemo(function(){return vt&&(0,_e.Z)(vt)==="object"?[vt.minRows,vt.maxRows]:[]},[vt]),Ve=(0,Ne.Z)(et,2),He=Ve[0],nt=Ve[1],ut=!!vt,We=function(){try{if(document.activeElement===dt.current){var Kn=dt.current,ar=Kn.selectionStart,xr=Kn.selectionEnd,gr=Kn.scrollTop;dt.current.setSelectionRange(ar,xr),dt.current.scrollTop=gr}}catch(dr){}},De=Se.useState(ke),Ie=(0,Ne.Z)(De,2),Xe=Ie[0],yt=Ie[1],Ye=Se.useState(),jt=(0,Ne.Z)(Ye,2),Ht=jt[0],en=jt[1],It=function(){yt(je)};(0,z.Z)(function(){ut&&It()},[wt,He,nt,ut]),(0,z.Z)(function(){if(Xe===je)yt(Le);else if(Xe===Le){var Vn=Ee(dt.current,!1,He,nt);yt(ke),en(Vn)}else We()},[Xe]);var Ut=Se.useRef(),tn=function(){ee.Z.cancel(Ut.current)},ln=function(Kn){Xe===ke&&(mt==null||mt(Kn),vt&&(tn(),Ut.current=(0,ee.Z)(function(){It()})))};Se.useEffect(function(){return tn},[]);var mn=ut?Ht:null,jn=(0,Tt.Z)((0,Tt.Z)({},At),mn);return(Xe===je||Xe===Le)&&(jn.overflowY="hidden",jn.overflowX="hidden"),Se.createElement(de.Z,{onResize:ln,disabled:!(vt||mt)},Se.createElement("textarea",(0,Qe.Z)({},St,{ref:dt,style:jn,className:Pe()(at,xt,(0,oe.Z)({},"".concat(at,"-disabled"),kt)),disabled:kt,value:$e,onChange:Pt})))}),Fe=Oe,Re=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Ze(pt,bt){return(0,fe.Z)(pt||"").slice(0,bt).join("")}function ze(pt,bt,qe,at){var gt=qe;return pt?gt=Ze(qe,at):(0,fe.Z)(bt||"").length<qe.length&&(0,fe.Z)(qe||"").length>at&&(gt=bt),gt}var Ke=Se.forwardRef(function(pt,bt){var qe,at=pt.defaultValue,gt=pt.value,Ct=pt.onFocus,wt=pt.onBlur,vt=pt.onChange,mt=pt.allowClear,xt=pt.maxLength,At=pt.onCompositionStart,kt=pt.onCompositionEnd,Wt=pt.suffix,Et=pt.prefixCls,St=Et===void 0?"rc-textarea":Et,tt=pt.classes,ft=pt.showCount,$e=pt.className,lt=pt.style,Pt=pt.disabled,dt=pt.hidden,et=pt.classNames,Ve=pt.styles,He=pt.onResize,nt=(0,ve.Z)(pt,Re),ut=(0,me.Z)(at,{value:gt,defaultValue:at}),We=(0,Ne.Z)(ut,2),De=We[0],Ie=We[1],Xe=(0,Se.useRef)(null),yt=Se.useState(!1),Ye=(0,Ne.Z)(yt,2),jt=Ye[0],Ht=Ye[1],en=Se.useState(!1),It=(0,Ne.Z)(en,2),Ut=It[0],tn=It[1],ln=Se.useRef(),mn=Se.useRef(0),jn=Se.useState(null),Vn=(0,Ne.Z)(jn,2),Kn=Vn[0],ar=Vn[1],xr=function(){var $t;($t=Xe.current)===null||$t===void 0||$t.textArea.focus()};(0,Se.useImperativeHandle)(bt,function(){return{resizableTextArea:Xe.current,focus:xr,blur:function(){var $t;($t=Xe.current)===null||$t===void 0||$t.textArea.blur()}}}),(0,Se.useEffect)(function(){Ht(function(Nn){return!Pt&&Nn})},[Pt]);var gr=Number(xt)>0,dr=function($t){tn(!0),ln.current=De,mn.current=$t.currentTarget.selectionStart,At==null||At($t)},Tr=function($t){tn(!1);var Xt=$t.currentTarget.value;if(gr){var Lt,nn=mn.current>=xt+1||mn.current===((Lt=ln.current)===null||Lt===void 0?void 0:Lt.length);Xt=ze(nn,ln.current,Xt,xt)}Xt!==De&&(Ie(Xt),(0,we.rJ)($t.currentTarget,$t,vt,Xt)),kt==null||kt($t)},Rr=function($t){var Xt=$t.target.value;if(!Ut&&gr){var Lt=$t.target.selectionStart>=xt+1||$t.target.selectionStart===Xt.length||!$t.target.selectionStart;Xt=ze(Lt,De,Xt,xt)}Ie(Xt),(0,we.rJ)($t.currentTarget,$t,vt,Xt)},Zr=function($t){var Xt=nt.onPressEnter,Lt=nt.onKeyDown;$t.key==="Enter"&&Xt&&Xt($t),Lt==null||Lt($t)},ei=function($t){Ht(!0),Ct==null||Ct($t)},jr=function($t){Ht(!1),wt==null||wt($t)},it=function($t){var Xt;Ie(""),xr(),(0,we.rJ)((Xt=Xe.current)===null||Xt===void 0?void 0:Xt.textArea,$t,vt)},Qr=(0,we.D7)(De);!Ut&&gr&>==null&&(Qr=Ze(Qr,xt));var $r=Wt,En;if(ft){var er=(0,fe.Z)(Qr).length;(0,_e.Z)(ft)==="object"?En=ft.formatter({value:Qr,count:er,maxLength:xt}):En="".concat(er).concat(gr?" / ".concat(xt):""),$r=Se.createElement(Se.Fragment,null,$r,Se.createElement("span",{className:Pe()("".concat(St,"-data-count"),et==null?void 0:et.count),style:Ve==null?void 0:Ve.count},En))}var rr=function($t){var Xt;He==null||He($t),(Xt=Xe.current)!==null&&Xt!==void 0&&Xt.textArea.style.height&&ar(!0)},vr=!nt.autoSize&&!ft&&!mt,zn=Se.createElement(ye.BaseInput,{value:Qr,allowClear:mt,handleReset:it,suffix:$r,prefixCls:St,classes:{affixWrapper:Pe()(tt==null?void 0:tt.affixWrapper,(qe={},(0,oe.Z)(qe,"".concat(St,"-show-count"),ft),(0,oe.Z)(qe,"".concat(St,"-textarea-allow-clear"),mt),qe))},disabled:Pt,focused:jt,className:$e,style:(0,Tt.Z)((0,Tt.Z)({},lt),Kn&&!vr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof En=="string"?En:void 0}},hidden:dt,inputElement:Se.createElement(Fe,(0,Qe.Z)({},nt,{onKeyDown:Zr,onChange:Rr,onFocus:ei,onBlur:jr,onCompositionStart:dr,onCompositionEnd:Tr,className:et==null?void 0:et.textarea,style:(0,Tt.Z)((0,Tt.Z)({},Ve==null?void 0:Ve.textarea),{},{resize:lt==null?void 0:lt.resize}),disabled:Pt,prefixCls:St,onResize:rr,ref:Xe}))});return zn}),ot=Ke,ct=ot},39417:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Le}});var Qe=Ge(72308),Tt=Ge(49618),oe=Ge(74416),_e=Ge(77321),Ne=Ge(96949),ve=Ge(55090),fe=Ge(80237),be=Ge(77205),Pe=Ge(38793),ye=Ge(92310),we=Ge.n(ye),me=Ge(26112),Se=Ge(59301),de=Ge(39378),z=function(Oe){for(var Fe=Oe.prefixCls,Re=Oe.level,Ze=Oe.isStart,ze=Oe.isEnd,Ke="".concat(Fe,"-indent-unit"),ot=[],ct=0;ct<Re;ct+=1){var pt;ot.push(Se.createElement("span",{key:ct,className:we()(Ke,(pt={},(0,Tt.Z)(pt,"".concat(Ke,"-start"),Ze[ct]),(0,Tt.Z)(pt,"".concat(Ke,"-end"),ze[ct]),pt))}))}return Se.createElement("span",{"aria-hidden":"true",className:"".concat(Fe,"-indent")},ot)},ee=Se.memo(z),ae=Ge(67841),re=Ge(71430),le=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ue="open",pe="close",Ee="---",Ce=function(ke){(0,be.Z)(Fe,ke);var Oe=(0,Pe.Z)(Fe);function Fe(){var Re;(0,Ne.Z)(this,Fe);for(var Ze=arguments.length,ze=new Array(Ze),Ke=0;Ke<Ze;Ke++)ze[Ke]=arguments[Ke];return Re=Oe.call.apply(Oe,[this].concat(ze)),Re.state={dragNodeHighlight:!1},Re.selectHandle=void 0,Re.cacheIndent=void 0,Re.onSelectorClick=function(ot){var ct=Re.props.context.onNodeClick;ct(ot,(0,re.F)(Re.props)),Re.isSelectable()?Re.onSelect(ot):Re.onCheck(ot)},Re.onSelectorDoubleClick=function(ot){var ct=Re.props.context.onNodeDoubleClick;ct(ot,(0,re.F)(Re.props))},Re.onSelect=function(ot){if(!Re.isDisabled()){var ct=Re.props.context.onNodeSelect;ct(ot,(0,re.F)(Re.props))}},Re.onCheck=function(ot){if(!Re.isDisabled()){var ct=Re.props,pt=ct.disableCheckbox,bt=ct.checked,qe=Re.props.context.onNodeCheck;if(!(!Re.isCheckable()||pt)){var at=!bt;qe(ot,(0,re.F)(Re.props),at)}}},Re.onMouseEnter=function(ot){var ct=Re.props.context.onNodeMouseEnter;ct(ot,(0,re.F)(Re.props))},Re.onMouseLeave=function(ot){var ct=Re.props.context.onNodeMouseLeave;ct(ot,(0,re.F)(Re.props))},Re.onContextMenu=function(ot){var ct=Re.props.context.onNodeContextMenu;ct(ot,(0,re.F)(Re.props))},Re.onDragStart=function(ot){var ct=Re.props.context.onNodeDragStart;ot.stopPropagation(),Re.setState({dragNodeHighlight:!0}),ct(ot,(0,fe.Z)(Re));try{ot.dataTransfer.setData("text/plain","")}catch(pt){}},Re.onDragEnter=function(ot){var ct=Re.props.context.onNodeDragEnter;ot.preventDefault(),ot.stopPropagation(),ct(ot,(0,fe.Z)(Re))},Re.onDragOver=function(ot){var ct=Re.props.context.onNodeDragOver;ot.preventDefault(),ot.stopPropagation(),ct(ot,(0,fe.Z)(Re))},Re.onDragLeave=function(ot){var ct=Re.props.context.onNodeDragLeave;ot.stopPropagation(),ct(ot,(0,fe.Z)(Re))},Re.onDragEnd=function(ot){var ct=Re.props.context.onNodeDragEnd;ot.stopPropagation(),Re.setState({dragNodeHighlight:!1}),ct(ot,(0,fe.Z)(Re))},Re.onDrop=function(ot){var ct=Re.props.context.onNodeDrop;ot.preventDefault(),ot.stopPropagation(),Re.setState({dragNodeHighlight:!1}),ct(ot,(0,fe.Z)(Re))},Re.onExpand=function(ot){var ct=Re.props,pt=ct.loading,bt=ct.context.onNodeExpand;pt||bt(ot,(0,re.F)(Re.props))},Re.setSelectHandle=function(ot){Re.selectHandle=ot},Re.getNodeState=function(){var ot=Re.props.expanded;return Re.isLeaf()?null:ot?ue:pe},Re.hasChildren=function(){var ot=Re.props.eventKey,ct=Re.props.context.keyEntities,pt=(0,ae.Z)(ct,ot)||{},bt=pt.children;return!!(bt||[]).length},Re.isLeaf=function(){var ot=Re.props,ct=ot.isLeaf,pt=ot.loaded,bt=Re.props.context.loadData,qe=Re.hasChildren();return ct===!1?!1:ct||!bt&&!qe||bt&&pt&&!qe},Re.isDisabled=function(){var ot=Re.props.disabled,ct=Re.props.context.disabled;return!!(ct||ot)},Re.isCheckable=function(){var ot=Re.props.checkable,ct=Re.props.context.checkable;return!ct||ot===!1?!1:ct},Re.syncLoadData=function(ot){var ct=ot.expanded,pt=ot.loading,bt=ot.loaded,qe=Re.props.context,at=qe.loadData,gt=qe.onNodeLoad;pt||at&&ct&&!Re.isLeaf()&&!Re.hasChildren()&&!bt&>((0,re.F)(Re.props))},Re.isDraggable=function(){var ot=Re.props,ct=ot.data,pt=ot.context.draggable;return!!(pt&&(!pt.nodeDraggable||pt.nodeDraggable(ct)))},Re.renderDragHandler=function(){var ot=Re.props.context,ct=ot.draggable,pt=ot.prefixCls;return ct!=null&&ct.icon?Se.createElement("span",{className:"".concat(pt,"-draggable-icon")},ct.icon):null},Re.renderSwitcherIconDom=function(ot){var ct=Re.props.switcherIcon,pt=Re.props.context.switcherIcon,bt=ct||pt;return typeof bt=="function"?bt((0,_e.Z)((0,_e.Z)({},Re.props),{},{isLeaf:ot})):bt},Re.renderSwitcher=function(){var ot=Re.props.expanded,ct=Re.props.context.prefixCls;if(Re.isLeaf()){var pt=Re.renderSwitcherIconDom(!0);return pt!==!1?Se.createElement("span",{className:we()("".concat(ct,"-switcher"),"".concat(ct,"-switcher-noop"))},pt):null}var bt=we()("".concat(ct,"-switcher"),"".concat(ct,"-switcher_").concat(ot?ue:pe)),qe=Re.renderSwitcherIconDom(!1);return qe!==!1?Se.createElement("span",{onClick:Re.onExpand,className:bt},qe):null},Re.renderCheckbox=function(){var ot=Re.props,ct=ot.checked,pt=ot.halfChecked,bt=ot.disableCheckbox,qe=Re.props.context.prefixCls,at=Re.isDisabled(),gt=Re.isCheckable();if(!gt)return null;var Ct=typeof gt!="boolean"?gt:null;return Se.createElement("span",{className:we()("".concat(qe,"-checkbox"),ct&&"".concat(qe,"-checkbox-checked"),!ct&&pt&&"".concat(qe,"-checkbox-indeterminate"),(at||bt)&&"".concat(qe,"-checkbox-disabled")),onClick:Re.onCheck},Ct)},Re.renderIcon=function(){var ot=Re.props.loading,ct=Re.props.context.prefixCls;return Se.createElement("span",{className:we()("".concat(ct,"-iconEle"),"".concat(ct,"-icon__").concat(Re.getNodeState()||"docu"),ot&&"".concat(ct,"-icon_loading"))})},Re.renderSelector=function(){var ot=Re.state.dragNodeHighlight,ct=Re.props,pt=ct.title,bt=pt===void 0?Ee:pt,qe=ct.selected,at=ct.icon,gt=ct.loading,Ct=ct.data,wt=Re.props.context,vt=wt.prefixCls,mt=wt.showIcon,xt=wt.icon,At=wt.loadData,kt=wt.titleRender,Wt=Re.isDisabled(),Et="".concat(vt,"-node-content-wrapper"),St;if(mt){var tt=at||xt;St=tt?Se.createElement("span",{className:we()("".concat(vt,"-iconEle"),"".concat(vt,"-icon__customize"))},typeof tt=="function"?tt(Re.props):tt):Re.renderIcon()}else At&>&&(St=Re.renderIcon());var ft;typeof bt=="function"?ft=bt(Ct):kt?ft=kt(Ct):ft=bt;var $e=Se.createElement("span",{className:"".concat(vt,"-title")},ft);return Se.createElement("span",{ref:Re.setSelectHandle,title:typeof bt=="string"?bt:"",className:we()("".concat(Et),"".concat(Et,"-").concat(Re.getNodeState()||"normal"),!Wt&&(qe||ot)&&"".concat(vt,"-node-selected")),onMouseEnter:Re.onMouseEnter,onMouseLeave:Re.onMouseLeave,onContextMenu:Re.onContextMenu,onClick:Re.onSelectorClick,onDoubleClick:Re.onSelectorDoubleClick},St,$e,Re.renderDropIndicator())},Re.renderDropIndicator=function(){var ot=Re.props,ct=ot.disabled,pt=ot.eventKey,bt=Re.props.context,qe=bt.draggable,at=bt.dropLevelOffset,gt=bt.dropPosition,Ct=bt.prefixCls,wt=bt.indent,vt=bt.dropIndicatorRender,mt=bt.dragOverNodeKey,xt=bt.direction,At=!!qe,kt=!ct&&At&&mt===pt,Wt=wt!=null?wt:Re.cacheIndent;return Re.cacheIndent=wt,kt?vt({dropPosition:gt,dropLevelOffset:at,indent:Wt,prefixCls:Ct,direction:xt}):null},Re}return(0,ve.Z)(Fe,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Ze=this.props.selectable,ze=this.props.context.selectable;return typeof Ze=="boolean"?Ze:ze}},{key:"render",value:function(){var Ze,ze=this.props,Ke=ze.eventKey,ot=ze.className,ct=ze.style,pt=ze.dragOver,bt=ze.dragOverGapTop,qe=ze.dragOverGapBottom,at=ze.isLeaf,gt=ze.isStart,Ct=ze.isEnd,wt=ze.expanded,vt=ze.selected,mt=ze.checked,xt=ze.halfChecked,At=ze.loading,kt=ze.domRef,Wt=ze.active,Et=ze.data,St=ze.onMouseMove,tt=ze.selectable,ft=(0,oe.Z)(ze,le),$e=this.props.context,lt=$e.prefixCls,Pt=$e.filterTreeNode,dt=$e.keyEntities,et=$e.dropContainerKey,Ve=$e.dropTargetKey,He=$e.draggingNodeKey,nt=this.isDisabled(),ut=(0,me.Z)(ft,{aria:!0,data:!0}),We=(0,ae.Z)(dt,Ke)||{},De=We.level,Ie=Ct[Ct.length-1],Xe=this.isDraggable(),yt=!nt&&Xe,Ye=He===Ke,jt=tt!==void 0?{"aria-selected":!!tt}:void 0;return Se.createElement("div",(0,Qe.Z)({ref:kt,className:we()(ot,"".concat(lt,"-treenode"),(Ze={},(0,Tt.Z)(Ze,"".concat(lt,"-treenode-disabled"),nt),(0,Tt.Z)(Ze,"".concat(lt,"-treenode-switcher-").concat(wt?"open":"close"),!at),(0,Tt.Z)(Ze,"".concat(lt,"-treenode-checkbox-checked"),mt),(0,Tt.Z)(Ze,"".concat(lt,"-treenode-checkbox-indeterminate"),xt),(0,Tt.Z)(Ze,"".concat(lt,"-treenode-selected"),vt),(0,Tt.Z)(Ze,"".concat(lt,"-treenode-loading"),At),(0,Tt.Z)(Ze,"".concat(lt,"-treenode-active"),Wt),(0,Tt.Z)(Ze,"".concat(lt,"-treenode-leaf-last"),Ie),(0,Tt.Z)(Ze,"".concat(lt,"-treenode-draggable"),Xe),(0,Tt.Z)(Ze,"dragging",Ye),(0,Tt.Z)(Ze,"drop-target",Ve===Ke),(0,Tt.Z)(Ze,"drop-container",et===Ke),(0,Tt.Z)(Ze,"drag-over",!nt&&pt),(0,Tt.Z)(Ze,"drag-over-gap-top",!nt&&bt),(0,Tt.Z)(Ze,"drag-over-gap-bottom",!nt&&qe),(0,Tt.Z)(Ze,"filter-node",Pt&&Pt((0,re.F)(this.props))),Ze)),style:ct,draggable:yt,"aria-grabbed":Ye,onDragStart:yt?this.onDragStart:void 0,onDragEnter:Xe?this.onDragEnter:void 0,onDragOver:Xe?this.onDragOver:void 0,onDragLeave:Xe?this.onDragLeave:void 0,onDrop:Xe?this.onDrop:void 0,onDragEnd:Xe?this.onDragEnd:void 0,onMouseMove:St},jt,ut),Se.createElement(ee,{prefixCls:lt,level:De,isStart:gt,isEnd:Ct}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Fe}(Se.Component),je=function(Oe){return Se.createElement(de.k.Consumer,null,function(Fe){return Se.createElement(Ce,(0,Qe.Z)({},Oe,{context:Fe}))})};je.displayName="TreeNode",je.isTreeNode=1;var Le=je},39378:function(bn,an,Ge){"use strict";Ge.d(an,{k:function(){return Tt}});var Qe=Ge(59301),Tt=Qe.createContext(null)},54844:function(bn,an,Ge){"use strict";Ge.d(an,{O:function(){return Le.Z},Z:function(){return $e}});var Qe=Ge(72308),Tt=Ge(49618),oe=Ge(62853),_e=Ge(77321),Ne=Ge(80702),ve=Ge(96949),fe=Ge(55090),be=Ge(80237),Pe=Ge(77205),ye=Ge(38793),we=Ge(92310),me=Ge.n(we),Se=Ge(10228),de=Ge(26112),z=Ge(48736),ee=Ge(59301),ae=Ge(39378);function re(lt){var Pt=lt.dropPosition,dt=lt.dropLevelOffset,et=lt.indent,Ve={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Pt){case-1:Ve.top=0,Ve.left=-dt*et;break;case 1:Ve.bottom=0,Ve.left=-dt*et;break;case 0:Ve.bottom=0,Ve.left=et;break}return ee.createElement("div",{style:Ve})}function le(lt){if(lt==null)throw new TypeError("Cannot destructure "+lt)}var ue=Ge(52487),pe=Ge(74416),Ee=Ge(34280),Ce=Ge(45680),je=Ge(77900),Le=Ge(39417);function ke(lt,Pt){var dt=ee.useState(!1),et=(0,ue.Z)(dt,2),Ve=et[0],He=et[1];ee.useLayoutEffect(function(){if(Ve)return lt(),function(){Pt()}},[Ve]),ee.useLayoutEffect(function(){return He(!0),function(){He(!1)}},[])}var Oe=Ge(71430),Fe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Re=function(Pt,dt){var et=Pt.className,Ve=Pt.style,He=Pt.motion,nt=Pt.motionNodes,ut=Pt.motionType,We=Pt.onMotionStart,De=Pt.onMotionEnd,Ie=Pt.active,Xe=Pt.treeNodeRequiredProps,yt=(0,pe.Z)(Pt,Fe),Ye=ee.useState(!0),jt=(0,ue.Z)(Ye,2),Ht=jt[0],en=jt[1],It=ee.useContext(ae.k),Ut=It.prefixCls,tn=nt&&ut!=="hide";(0,Ee.Z)(function(){nt&&tn!==Ht&&en(tn)},[nt]);var ln=function(){nt&&We()},mn=ee.useRef(!1),jn=function(){nt&&!mn.current&&(mn.current=!0,De())};ke(ln,jn);var Vn=function(ar){tn===ar&&jn()};return nt?ee.createElement(je.default,(0,Qe.Z)({ref:dt,visible:Ht},He,{motionAppear:ut==="show",onVisibleChanged:Vn}),function(Kn,ar){var xr=Kn.className,gr=Kn.style;return ee.createElement("div",{ref:ar,className:me()("".concat(Ut,"-treenode-motion"),xr),style:gr},nt.map(function(dr){var Tr=(0,Qe.Z)({},(le(dr.data),dr.data)),Rr=dr.title,Zr=dr.key,ei=dr.isStart,jr=dr.isEnd;delete Tr.children;var it=(0,Oe.H8)(Zr,Xe);return ee.createElement(Le.Z,(0,Qe.Z)({},Tr,it,{title:Rr,active:Ie,data:dr.data,key:Zr,isStart:ei,isEnd:jr}))}))}):ee.createElement(Le.Z,(0,Qe.Z)({domRef:dt,className:et,style:Ve},yt,{active:Ie}))};Re.displayName="MotionTreeNode";var Ze=ee.forwardRef(Re),ze=Ze;function Ke(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],dt=lt.length,et=Pt.length;if(Math.abs(dt-et)!==1)return{add:!1,key:null};function Ve(He,nt){var ut=new Map;He.forEach(function(De){ut.set(De,!0)});var We=nt.filter(function(De){return!ut.has(De)});return We.length===1?We[0]:null}return dt<et?{add:!0,key:Ve(lt,Pt)}:{add:!1,key:Ve(Pt,lt)}}function ot(lt,Pt,dt){var et=lt.findIndex(function(ut){return ut.key===dt}),Ve=lt[et+1],He=Pt.findIndex(function(ut){return ut.key===dt});if(Ve){var nt=Pt.findIndex(function(ut){return ut.key===Ve.key});return Pt.slice(He+1,nt)}return Pt.slice(He+1)}var ct=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],pt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},bt=function(){},qe="RC_TREE_MOTION_".concat(Math.random()),at={key:qe},gt={key:qe,level:0,index:0,pos:"0",node:at,nodes:[at]},Ct={parent:null,children:[],pos:gt.pos,data:at,title:null,key:qe,isStart:[],isEnd:[]};function wt(lt,Pt,dt,et){return Pt===!1||!dt?lt:lt.slice(0,Math.ceil(dt/et)+1)}function vt(lt){var Pt=lt.key,dt=lt.pos;return(0,Oe.km)(Pt,dt)}function mt(lt){for(var Pt=String(lt.data.key),dt=lt;dt.parent;)dt=dt.parent,Pt="".concat(dt.data.key," > ").concat(Pt);return Pt}var xt=ee.forwardRef(function(lt,Pt){var dt=lt.prefixCls,et=lt.data,Ve=lt.selectable,He=lt.checkable,nt=lt.expandedKeys,ut=lt.selectedKeys,We=lt.checkedKeys,De=lt.loadedKeys,Ie=lt.loadingKeys,Xe=lt.halfCheckedKeys,yt=lt.keyEntities,Ye=lt.disabled,jt=lt.dragging,Ht=lt.dragOverNodeKey,en=lt.dropPosition,It=lt.motion,Ut=lt.height,tn=lt.itemHeight,ln=lt.virtual,mn=lt.focusable,jn=lt.activeItem,Vn=lt.focused,Kn=lt.tabIndex,ar=lt.onKeyDown,xr=lt.onFocus,gr=lt.onBlur,dr=lt.onActiveChange,Tr=lt.onListChangeStart,Rr=lt.onListChangeEnd,Zr=(0,pe.Z)(lt,ct),ei=ee.useRef(null),jr=ee.useRef(null);ee.useImperativeHandle(Pt,function(){return{scrollTo:function(Sn){ei.current.scrollTo(Sn)},getIndentWidth:function(){return jr.current.offsetWidth}}});var it=ee.useState(nt),Qr=(0,ue.Z)(it,2),$r=Qr[0],En=Qr[1],er=ee.useState(et),rr=(0,ue.Z)(er,2),vr=rr[0],zn=rr[1],Nn=ee.useState(et),$t=(0,ue.Z)(Nn,2),Xt=$t[0],Lt=$t[1],nn=ee.useState([]),pn=(0,ue.Z)(nn,2),Vt=pn[0],Rt=pn[1],rn=ee.useState(null),yn=(0,ue.Z)(rn,2),Mn=yn[0],On=yn[1],zt=ee.useRef(et);zt.current=et;function xn(){var gn=zt.current;zn(gn),Lt(gn),Rt([]),On(null),Rr()}(0,Ee.Z)(function(){En(nt);var gn=Ke($r,nt);if(gn.key!==null)if(gn.add){var Sn=vr.findIndex(function(Cn){var Dn=Cn.key;return Dn===gn.key}),Qt=wt(ot(vr,et,gn.key),ln,Ut,tn),hn=vr.slice();hn.splice(Sn+1,0,Ct),Lt(hn),Rt(Qt),On("show")}else{var dn=et.findIndex(function(Cn){var Dn=Cn.key;return Dn===gn.key}),cn=wt(ot(et,vr,gn.key),ln,Ut,tn),Pn=et.slice();Pn.splice(dn+1,0,Ct),Lt(Pn),Rt(cn),On("hide")}else vr!==et&&(zn(et),Lt(et))},[nt,et]),ee.useEffect(function(){jt||xn()},[jt]);var Fn=It?Xt:et,$n={expandedKeys:nt,selectedKeys:ut,loadedKeys:De,loadingKeys:Ie,checkedKeys:We,halfCheckedKeys:Xe,dragOverNodeKey:Ht,dropPosition:en,keyEntities:yt};return ee.createElement(ee.Fragment,null,Vn&&jn&&ee.createElement("span",{style:pt,"aria-live":"assertive"},mt(jn)),ee.createElement("div",null,ee.createElement("input",{style:pt,disabled:mn===!1||Ye,tabIndex:mn!==!1?Kn:null,onKeyDown:ar,onFocus:xr,onBlur:gr,value:"",onChange:bt,"aria-label":"for screen reader"})),ee.createElement("div",{className:"".concat(dt,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ee.createElement("div",{className:"".concat(dt,"-indent")},ee.createElement("div",{ref:jr,className:"".concat(dt,"-indent-unit")}))),ee.createElement(Ce.Z,(0,Qe.Z)({},Zr,{data:Fn,itemKey:vt,height:Ut,fullHeight:!1,virtual:ln,itemHeight:tn,prefixCls:"".concat(dt,"-list"),ref:ei,onVisibleChange:function(Sn,Qt){var hn=new Set(Sn),dn=Qt.filter(function(cn){return!hn.has(cn)});dn.some(function(cn){return vt(cn)===qe})&&xn()}}),function(gn){var Sn=gn.pos,Qt=(0,Qe.Z)({},(le(gn.data),gn.data)),hn=gn.title,dn=gn.key,cn=gn.isStart,Pn=gn.isEnd,Cn=(0,Oe.km)(dn,Sn);delete Qt.key,delete Qt.children;var Dn=(0,Oe.H8)(Cn,$n);return ee.createElement(ze,(0,Qe.Z)({},Qt,Dn,{title:hn,active:!!jn&&dn===jn.key,pos:Sn,data:gn.data,isStart:cn,isEnd:Pn,motion:It,motionNodes:dn===qe?Vt:null,motionType:Mn,onMotionStart:Tr,onMotionEnd:xn,treeNodeRequiredProps:$n,onMouseMove:function(){dr(null)}}))}))});xt.displayName="NodeList";var At=xt,kt=Ge(35654),Wt=Ge(90782),Et=Ge(67841),St=10,tt=function(lt){(0,Pe.Z)(dt,lt);var Pt=(0,ye.Z)(dt);function dt(){var et;(0,ve.Z)(this,dt);for(var Ve=arguments.length,He=new Array(Ve),nt=0;nt<Ve;nt++)He[nt]=arguments[nt];return et=Pt.call.apply(Pt,[this].concat(He)),et.destroyed=!1,et.delayedDragEnterLogic=void 0,et.loadingRetryTimes={},et.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Oe.w$)()},et.dragStartMousePosition=null,et.dragNode=void 0,et.currentMouseOverDroppableNodeKey=null,et.listRef=ee.createRef(),et.onNodeDragStart=function(ut,We){var De=et.state,Ie=De.expandedKeys,Xe=De.keyEntities,yt=et.props.onDragStart,Ye=We.props.eventKey;et.dragNode=We,et.dragStartMousePosition={x:ut.clientX,y:ut.clientY};var jt=(0,kt._5)(Ie,Ye);et.setState({draggingNodeKey:Ye,dragChildrenKeys:(0,kt.wA)(Ye,Xe),indent:et.listRef.current.getIndentWidth()}),et.setExpandedKeys(jt),window.addEventListener("dragend",et.onWindowDragEnd),yt==null||yt({event:ut,node:(0,Oe.F)(We.props)})},et.onNodeDragEnter=function(ut,We){var De=et.state,Ie=De.expandedKeys,Xe=De.keyEntities,yt=De.dragChildrenKeys,Ye=De.flattenNodes,jt=De.indent,Ht=et.props,en=Ht.onDragEnter,It=Ht.onExpand,Ut=Ht.allowDrop,tn=Ht.direction,ln=We.props,mn=ln.pos,jn=ln.eventKey,Vn=(0,be.Z)(et),Kn=Vn.dragNode;if(et.currentMouseOverDroppableNodeKey!==jn&&(et.currentMouseOverDroppableNodeKey=jn),!Kn){et.resetDragState();return}var ar=(0,kt.OM)(ut,Kn,We,jt,et.dragStartMousePosition,Ut,Ye,Xe,Ie,tn),xr=ar.dropPosition,gr=ar.dropLevelOffset,dr=ar.dropTargetKey,Tr=ar.dropContainerKey,Rr=ar.dropTargetPos,Zr=ar.dropAllowed,ei=ar.dragOverNodeKey;if(yt.indexOf(dr)!==-1||!Zr){et.resetDragState();return}if(et.delayedDragEnterLogic||(et.delayedDragEnterLogic={}),Object.keys(et.delayedDragEnterLogic).forEach(function(jr){clearTimeout(et.delayedDragEnterLogic[jr])}),Kn.props.eventKey!==We.props.eventKey&&(ut.persist(),et.delayedDragEnterLogic[mn]=window.setTimeout(function(){if(et.state.draggingNodeKey!==null){var jr=(0,Ne.Z)(Ie),it=(0,Et.Z)(Xe,We.props.eventKey);it&&(it.children||[]).length&&(jr=(0,kt.L0)(Ie,We.props.eventKey)),"expandedKeys"in et.props||et.setExpandedKeys(jr),It==null||It(jr,{node:(0,Oe.F)(We.props),expanded:!0,nativeEvent:ut.nativeEvent})}},800)),Kn.props.eventKey===dr&&gr===0){et.resetDragState();return}et.setState({dragOverNodeKey:ei,dropPosition:xr,dropLevelOffset:gr,dropTargetKey:dr,dropContainerKey:Tr,dropTargetPos:Rr,dropAllowed:Zr}),en==null||en({event:ut,node:(0,Oe.F)(We.props),expandedKeys:Ie})},et.onNodeDragOver=function(ut,We){var De=et.state,Ie=De.dragChildrenKeys,Xe=De.flattenNodes,yt=De.keyEntities,Ye=De.expandedKeys,jt=De.indent,Ht=et.props,en=Ht.onDragOver,It=Ht.allowDrop,Ut=Ht.direction,tn=(0,be.Z)(et),ln=tn.dragNode;if(ln){var mn=(0,kt.OM)(ut,ln,We,jt,et.dragStartMousePosition,It,Xe,yt,Ye,Ut),jn=mn.dropPosition,Vn=mn.dropLevelOffset,Kn=mn.dropTargetKey,ar=mn.dropContainerKey,xr=mn.dropAllowed,gr=mn.dropTargetPos,dr=mn.dragOverNodeKey;Ie.indexOf(Kn)!==-1||!xr||(ln.props.eventKey===Kn&&Vn===0?et.state.dropPosition===null&&et.state.dropLevelOffset===null&&et.state.dropTargetKey===null&&et.state.dropContainerKey===null&&et.state.dropTargetPos===null&&et.state.dropAllowed===!1&&et.state.dragOverNodeKey===null||et.resetDragState():jn===et.state.dropPosition&&Vn===et.state.dropLevelOffset&&Kn===et.state.dropTargetKey&&ar===et.state.dropContainerKey&&gr===et.state.dropTargetPos&&xr===et.state.dropAllowed&&dr===et.state.dragOverNodeKey||et.setState({dropPosition:jn,dropLevelOffset:Vn,dropTargetKey:Kn,dropContainerKey:ar,dropTargetPos:gr,dropAllowed:xr,dragOverNodeKey:dr}),en==null||en({event:ut,node:(0,Oe.F)(We.props)}))}},et.onNodeDragLeave=function(ut,We){et.currentMouseOverDroppableNodeKey===We.props.eventKey&&!ut.currentTarget.contains(ut.relatedTarget)&&(et.resetDragState(),et.currentMouseOverDroppableNodeKey=null);var De=et.props.onDragLeave;De==null||De({event:ut,node:(0,Oe.F)(We.props)})},et.onWindowDragEnd=function(ut){et.onNodeDragEnd(ut,null,!0),window.removeEventListener("dragend",et.onWindowDragEnd)},et.onNodeDragEnd=function(ut,We){var De=et.props.onDragEnd;et.setState({dragOverNodeKey:null}),et.cleanDragState(),De==null||De({event:ut,node:(0,Oe.F)(We.props)}),et.dragNode=null,window.removeEventListener("dragend",et.onWindowDragEnd)},et.onNodeDrop=function(ut,We){var De,Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Xe=et.state,yt=Xe.dragChildrenKeys,Ye=Xe.dropPosition,jt=Xe.dropTargetKey,Ht=Xe.dropTargetPos,en=Xe.dropAllowed;if(en){var It=et.props.onDrop;if(et.setState({dragOverNodeKey:null}),et.cleanDragState(),jt!==null){var Ut=(0,_e.Z)((0,_e.Z)({},(0,Oe.H8)(jt,et.getTreeNodeRequiredProps())),{},{active:((De=et.getActiveItem())===null||De===void 0?void 0:De.key)===jt,data:(0,Et.Z)(et.state.keyEntities,jt).node}),tn=yt.indexOf(jt)!==-1;(0,z.ZP)(!tn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var ln=(0,kt.yx)(Ht),mn={event:ut,node:(0,Oe.F)(Ut),dragNode:et.dragNode?(0,Oe.F)(et.dragNode.props):null,dragNodesKeys:[et.dragNode.props.eventKey].concat(yt),dropToGap:Ye!==0,dropPosition:Ye+Number(ln[ln.length-1])};Ie||It==null||It(mn),et.dragNode=null}}},et.cleanDragState=function(){var ut=et.state.draggingNodeKey;ut!==null&&et.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),et.dragStartMousePosition=null,et.currentMouseOverDroppableNodeKey=null},et.triggerExpandActionExpand=function(ut,We){var De=et.state,Ie=De.expandedKeys,Xe=De.flattenNodes,yt=We.expanded,Ye=We.key,jt=We.isLeaf;if(!(jt||ut.shiftKey||ut.metaKey||ut.ctrlKey)){var Ht=Xe.filter(function(It){return It.key===Ye})[0],en=(0,Oe.F)((0,_e.Z)((0,_e.Z)({},(0,Oe.H8)(Ye,et.getTreeNodeRequiredProps())),{},{data:Ht.data}));et.setExpandedKeys(yt?(0,kt._5)(Ie,Ye):(0,kt.L0)(Ie,Ye)),et.onNodeExpand(ut,en)}},et.onNodeClick=function(ut,We){var De=et.props,Ie=De.onClick,Xe=De.expandAction;Xe==="click"&&et.triggerExpandActionExpand(ut,We),Ie==null||Ie(ut,We)},et.onNodeDoubleClick=function(ut,We){var De=et.props,Ie=De.onDoubleClick,Xe=De.expandAction;Xe==="doubleClick"&&et.triggerExpandActionExpand(ut,We),Ie==null||Ie(ut,We)},et.onNodeSelect=function(ut,We){var De=et.state.selectedKeys,Ie=et.state,Xe=Ie.keyEntities,yt=Ie.fieldNames,Ye=et.props,jt=Ye.onSelect,Ht=Ye.multiple,en=We.selected,It=We[yt.key],Ut=!en;Ut?Ht?De=(0,kt.L0)(De,It):De=[It]:De=(0,kt._5)(De,It);var tn=De.map(function(ln){var mn=(0,Et.Z)(Xe,ln);return mn?mn.node:null}).filter(function(ln){return ln});et.setUncontrolledState({selectedKeys:De}),jt==null||jt(De,{event:"select",selected:Ut,node:We,selectedNodes:tn,nativeEvent:ut.nativeEvent})},et.onNodeCheck=function(ut,We,De){var Ie=et.state,Xe=Ie.keyEntities,yt=Ie.checkedKeys,Ye=Ie.halfCheckedKeys,jt=et.props,Ht=jt.checkStrictly,en=jt.onCheck,It=We.key,Ut,tn={event:"check",node:We,checked:De,nativeEvent:ut.nativeEvent};if(Ht){var ln=De?(0,kt.L0)(yt,It):(0,kt._5)(yt,It),mn=(0,kt._5)(Ye,It);Ut={checked:ln,halfChecked:mn},tn.checkedNodes=ln.map(function(gr){return(0,Et.Z)(Xe,gr)}).filter(function(gr){return gr}).map(function(gr){return gr.node}),et.setUncontrolledState({checkedKeys:ln})}else{var jn=(0,Wt.S)([].concat((0,Ne.Z)(yt),[It]),!0,Xe),Vn=jn.checkedKeys,Kn=jn.halfCheckedKeys;if(!De){var ar=new Set(Vn);ar.delete(It);var xr=(0,Wt.S)(Array.from(ar),{checked:!1,halfCheckedKeys:Kn},Xe);Vn=xr.checkedKeys,Kn=xr.halfCheckedKeys}Ut=Vn,tn.checkedNodes=[],tn.checkedNodesPositions=[],tn.halfCheckedKeys=Kn,Vn.forEach(function(gr){var dr=(0,Et.Z)(Xe,gr);if(dr){var Tr=dr.node,Rr=dr.pos;tn.checkedNodes.push(Tr),tn.checkedNodesPositions.push({node:Tr,pos:Rr})}}),et.setUncontrolledState({checkedKeys:Vn},!1,{halfCheckedKeys:Kn})}en==null||en(Ut,tn)},et.onNodeLoad=function(ut){var We=ut.key,De=new Promise(function(Ie,Xe){et.setState(function(yt){var Ye=yt.loadedKeys,jt=Ye===void 0?[]:Ye,Ht=yt.loadingKeys,en=Ht===void 0?[]:Ht,It=et.props,Ut=It.loadData,tn=It.onLoad;if(!Ut||jt.indexOf(We)!==-1||en.indexOf(We)!==-1)return null;var ln=Ut(ut);return ln.then(function(){var mn=et.state.loadedKeys,jn=(0,kt.L0)(mn,We);tn==null||tn(jn,{event:"load",node:ut}),et.setUncontrolledState({loadedKeys:jn}),et.setState(function(Vn){return{loadingKeys:(0,kt._5)(Vn.loadingKeys,We)}}),Ie()}).catch(function(mn){if(et.setState(function(Vn){return{loadingKeys:(0,kt._5)(Vn.loadingKeys,We)}}),et.loadingRetryTimes[We]=(et.loadingRetryTimes[We]||0)+1,et.loadingRetryTimes[We]>=St){var jn=et.state.loadedKeys;(0,z.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),et.setUncontrolledState({loadedKeys:(0,kt.L0)(jn,We)}),Ie()}Xe(mn)}),{loadingKeys:(0,kt.L0)(en,We)}})});return De.catch(function(){}),De},et.onNodeMouseEnter=function(ut,We){var De=et.props.onMouseEnter;De==null||De({event:ut,node:We})},et.onNodeMouseLeave=function(ut,We){var De=et.props.onMouseLeave;De==null||De({event:ut,node:We})},et.onNodeContextMenu=function(ut,We){var De=et.props.onRightClick;De&&(ut.preventDefault(),De({event:ut,node:We}))},et.onFocus=function(){var ut=et.props.onFocus;et.setState({focused:!0});for(var We=arguments.length,De=new Array(We),Ie=0;Ie<We;Ie++)De[Ie]=arguments[Ie];ut==null||ut.apply(void 0,De)},et.onBlur=function(){var ut=et.props.onBlur;et.setState({focused:!1}),et.onActiveChange(null);for(var We=arguments.length,De=new Array(We),Ie=0;Ie<We;Ie++)De[Ie]=arguments[Ie];ut==null||ut.apply(void 0,De)},et.getTreeNodeRequiredProps=function(){var ut=et.state,We=ut.expandedKeys,De=ut.selectedKeys,Ie=ut.loadedKeys,Xe=ut.loadingKeys,yt=ut.checkedKeys,Ye=ut.halfCheckedKeys,jt=ut.dragOverNodeKey,Ht=ut.dropPosition,en=ut.keyEntities;return{expandedKeys:We||[],selectedKeys:De||[],loadedKeys:Ie||[],loadingKeys:Xe||[],checkedKeys:yt||[],halfCheckedKeys:Ye||[],dragOverNodeKey:jt,dropPosition:Ht,keyEntities:en}},et.setExpandedKeys=function(ut){var We=et.state,De=We.treeData,Ie=We.fieldNames,Xe=(0,Oe.oH)(De,ut,Ie);et.setUncontrolledState({expandedKeys:ut,flattenNodes:Xe},!0)},et.onNodeExpand=function(ut,We){var De=et.state.expandedKeys,Ie=et.state,Xe=Ie.listChanging,yt=Ie.fieldNames,Ye=et.props,jt=Ye.onExpand,Ht=Ye.loadData,en=We.expanded,It=We[yt.key];if(!Xe){var Ut=De.indexOf(It),tn=!en;if((0,z.ZP)(en&&Ut!==-1||!en&&Ut===-1,"Expand state not sync with index check"),tn?De=(0,kt.L0)(De,It):De=(0,kt._5)(De,It),et.setExpandedKeys(De),jt==null||jt(De,{node:We,expanded:tn,nativeEvent:ut.nativeEvent}),tn&&Ht){var ln=et.onNodeLoad(We);ln&&ln.then(function(){var mn=(0,Oe.oH)(et.state.treeData,De,yt);et.setUncontrolledState({flattenNodes:mn})}).catch(function(){var mn=et.state.expandedKeys,jn=(0,kt._5)(mn,It);et.setExpandedKeys(jn)})}}},et.onListChangeStart=function(){et.setUncontrolledState({listChanging:!0})},et.onListChangeEnd=function(){setTimeout(function(){et.setUncontrolledState({listChanging:!1})})},et.onActiveChange=function(ut){var We=et.state.activeKey,De=et.props.onActiveChange;We!==ut&&(et.setState({activeKey:ut}),ut!==null&&et.scrollTo({key:ut}),De==null||De(ut))},et.getActiveItem=function(){var ut=et.state,We=ut.activeKey,De=ut.flattenNodes;return We===null?null:De.find(function(Ie){var Xe=Ie.key;return Xe===We})||null},et.offsetActiveKey=function(ut){var We=et.state,De=We.flattenNodes,Ie=We.activeKey,Xe=De.findIndex(function(jt){var Ht=jt.key;return Ht===Ie});Xe===-1&&ut<0&&(Xe=De.length),Xe=(Xe+ut+De.length)%De.length;var yt=De[Xe];if(yt){var Ye=yt.key;et.onActiveChange(Ye)}else et.onActiveChange(null)},et.onKeyDown=function(ut){var We=et.state,De=We.activeKey,Ie=We.expandedKeys,Xe=We.checkedKeys,yt=We.fieldNames,Ye=et.props,jt=Ye.onKeyDown,Ht=Ye.checkable,en=Ye.selectable;switch(ut.which){case Se.Z.UP:{et.offsetActiveKey(-1),ut.preventDefault();break}case Se.Z.DOWN:{et.offsetActiveKey(1),ut.preventDefault();break}}var It=et.getActiveItem();if(It&&It.data){var Ut=et.getTreeNodeRequiredProps(),tn=It.data.isLeaf===!1||!!(It.data[yt.children]||[]).length,ln=(0,Oe.F)((0,_e.Z)((0,_e.Z)({},(0,Oe.H8)(De,Ut)),{},{data:It.data,active:!0}));switch(ut.which){case Se.Z.LEFT:{tn&&Ie.includes(De)?et.onNodeExpand({},ln):It.parent&&et.onActiveChange(It.parent.key),ut.preventDefault();break}case Se.Z.RIGHT:{tn&&!Ie.includes(De)?et.onNodeExpand({},ln):It.children&&It.children.length&&et.onActiveChange(It.children[0].key),ut.preventDefault();break}case Se.Z.ENTER:case Se.Z.SPACE:{Ht&&!ln.disabled&&ln.checkable!==!1&&!ln.disableCheckbox?et.onNodeCheck({},ln,!Xe.includes(De)):!Ht&&en&&!ln.disabled&&ln.selectable!==!1&&et.onNodeSelect({},ln);break}}}jt==null||jt(ut)},et.setUncontrolledState=function(ut){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!et.destroyed){var Ie=!1,Xe=!0,yt={};Object.keys(ut).forEach(function(Ye){if(Ye in et.props){Xe=!1;return}Ie=!0,yt[Ye]=ut[Ye]}),Ie&&(!We||Xe)&&et.setState((0,_e.Z)((0,_e.Z)({},yt),De))}},et.scrollTo=function(ut){et.listRef.current.scrollTo(ut)},et}return(0,fe.Z)(dt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ve=this.props.activeKey;Ve!==void 0&&Ve!==this.state.activeKey&&(this.setState({activeKey:Ve}),Ve!==null&&this.scrollTo({key:Ve}))}},{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 Ve,He=this.state,nt=He.focused,ut=He.flattenNodes,We=He.keyEntities,De=He.draggingNodeKey,Ie=He.activeKey,Xe=He.dropLevelOffset,yt=He.dropContainerKey,Ye=He.dropTargetKey,jt=He.dropPosition,Ht=He.dragOverNodeKey,en=He.indent,It=this.props,Ut=It.prefixCls,tn=It.className,ln=It.style,mn=It.showLine,jn=It.focusable,Vn=It.tabIndex,Kn=Vn===void 0?0:Vn,ar=It.selectable,xr=It.showIcon,gr=It.icon,dr=It.switcherIcon,Tr=It.draggable,Rr=It.checkable,Zr=It.checkStrictly,ei=It.disabled,jr=It.motion,it=It.loadData,Qr=It.filterTreeNode,$r=It.height,En=It.itemHeight,er=It.virtual,rr=It.titleRender,vr=It.dropIndicatorRender,zn=It.onContextMenu,Nn=It.onScroll,$t=It.direction,Xt=It.rootClassName,Lt=It.rootStyle,nn=(0,de.Z)(this.props,{aria:!0,data:!0}),pn;return Tr&&((0,oe.Z)(Tr)==="object"?pn=Tr:typeof Tr=="function"?pn={nodeDraggable:Tr}:pn={}),ee.createElement(ae.k.Provider,{value:{prefixCls:Ut,selectable:ar,showIcon:xr,icon:gr,switcherIcon:dr,draggable:pn,draggingNodeKey:De,checkable:Rr,checkStrictly:Zr,disabled:ei,keyEntities:We,dropLevelOffset:Xe,dropContainerKey:yt,dropTargetKey:Ye,dropPosition:jt,dragOverNodeKey:Ht,indent:en,direction:$t,dropIndicatorRender:vr,loadData:it,filterTreeNode:Qr,titleRender:rr,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}},ee.createElement("div",{role:"tree",className:me()(Ut,tn,Xt,(Ve={},(0,Tt.Z)(Ve,"".concat(Ut,"-show-line"),mn),(0,Tt.Z)(Ve,"".concat(Ut,"-focused"),nt),(0,Tt.Z)(Ve,"".concat(Ut,"-active-focused"),Ie!==null),Ve)),style:Lt},ee.createElement(At,(0,Qe.Z)({ref:this.listRef,prefixCls:Ut,style:ln,data:ut,disabled:ei,selectable:ar,checkable:!!Rr,motion:jr,dragging:De!==null,height:$r,itemHeight:En,virtual:er,focusable:jn,focused:nt,tabIndex:Kn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:zn,onScroll:Nn},this.getTreeNodeRequiredProps(),nn))))}}],[{key:"getDerivedStateFromProps",value:function(Ve,He){var nt=He.prevProps,ut={prevProps:Ve};function We(jn){return!nt&&jn in Ve||nt&&nt[jn]!==Ve[jn]}var De,Ie=He.fieldNames;if(We("fieldNames")&&(Ie=(0,Oe.w$)(Ve.fieldNames),ut.fieldNames=Ie),We("treeData")?De=Ve.treeData:We("children")&&((0,z.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),De=(0,Oe.zn)(Ve.children)),De){ut.treeData=De;var Xe=(0,Oe.I8)(De,{fieldNames:Ie});ut.keyEntities=(0,_e.Z)((0,Tt.Z)({},qe,gt),Xe.keyEntities)}var yt=ut.keyEntities||He.keyEntities;if(We("expandedKeys")||nt&&We("autoExpandParent"))ut.expandedKeys=Ve.autoExpandParent||!nt&&Ve.defaultExpandParent?(0,kt.r7)(Ve.expandedKeys,yt):Ve.expandedKeys;else if(!nt&&Ve.defaultExpandAll){var Ye=(0,_e.Z)({},yt);delete Ye[qe],ut.expandedKeys=Object.keys(Ye).map(function(jn){return Ye[jn].key})}else!nt&&Ve.defaultExpandedKeys&&(ut.expandedKeys=Ve.autoExpandParent||Ve.defaultExpandParent?(0,kt.r7)(Ve.defaultExpandedKeys,yt):Ve.defaultExpandedKeys);if(ut.expandedKeys||delete ut.expandedKeys,De||ut.expandedKeys){var jt=(0,Oe.oH)(De||He.treeData,ut.expandedKeys||He.expandedKeys,Ie);ut.flattenNodes=jt}if(Ve.selectable&&(We("selectedKeys")?ut.selectedKeys=(0,kt.BT)(Ve.selectedKeys,Ve):!nt&&Ve.defaultSelectedKeys&&(ut.selectedKeys=(0,kt.BT)(Ve.defaultSelectedKeys,Ve))),Ve.checkable){var Ht;if(We("checkedKeys")?Ht=(0,kt.E6)(Ve.checkedKeys)||{}:!nt&&Ve.defaultCheckedKeys?Ht=(0,kt.E6)(Ve.defaultCheckedKeys)||{}:De&&(Ht=(0,kt.E6)(Ve.checkedKeys)||{checkedKeys:He.checkedKeys,halfCheckedKeys:He.halfCheckedKeys}),Ht){var en=Ht,It=en.checkedKeys,Ut=It===void 0?[]:It,tn=en.halfCheckedKeys,ln=tn===void 0?[]:tn;if(!Ve.checkStrictly){var mn=(0,Wt.S)(Ut,!0,yt);Ut=mn.checkedKeys,ln=mn.halfCheckedKeys}ut.checkedKeys=Ut,ut.halfCheckedKeys=ln}}return We("loadedKeys")&&(ut.loadedKeys=Ve.loadedKeys),ut}}]),dt}(ee.Component);tt.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:re,allowDrop:function(){return!0},expandAction:!1},tt.TreeNode=Le.Z;var ft=tt,$e=ft},35654:function(bn,an,Ge){"use strict";Ge.d(an,{BT:function(){return ee},E6:function(){return le},L0:function(){return ye},OM:function(){return z},_5:function(){return Pe},r7:function(){return ue},wA:function(){return me},yx:function(){return we}});var Qe=Ge(80702),Tt=Ge(62853),oe=Ge(48736),_e=Ge(59301),Ne=Ge(39417),ve=Ge(67841),fe=Ge(71430),be=null;function Pe(pe,Ee){if(!pe)return[];var Ce=pe.slice(),je=Ce.indexOf(Ee);return je>=0&&Ce.splice(je,1),Ce}function ye(pe,Ee){var Ce=(pe||[]).slice();return Ce.indexOf(Ee)===-1&&Ce.push(Ee),Ce}function we(pe){return pe.split("-")}function me(pe,Ee){var Ce=[],je=(0,ve.Z)(Ee,pe);function Le(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ke.forEach(function(Oe){var Fe=Oe.key,Re=Oe.children;Ce.push(Fe),Le(Re)})}return Le(je.children),Ce}function Se(pe){if(pe.parent){var Ee=we(pe.pos);return Number(Ee[Ee.length-1])===pe.parent.children.length-1}return!1}function de(pe){var Ee=we(pe.pos);return Number(Ee[Ee.length-1])===0}function z(pe,Ee,Ce,je,Le,ke,Oe,Fe,Re,Ze){var ze,Ke=pe.clientX,ot=pe.clientY,ct=pe.target.getBoundingClientRect(),pt=ct.top,bt=ct.height,qe=(Ze==="rtl"?-1:1)*(((Le==null?void 0:Le.x)||0)-Ke),at=(qe-12)/je,gt=(0,ve.Z)(Fe,Ce.props.eventKey);if(ot<pt+bt/2){var Ct=Oe.findIndex(function($e){return $e.key===gt.key}),wt=Ct<=0?0:Ct-1,vt=Oe[wt].key;gt=(0,ve.Z)(Fe,vt)}var mt=gt.key,xt=gt,At=gt.key,kt=0,Wt=0;if(!Re.includes(mt))for(var Et=0;Et<at&&Se(gt);Et+=1)gt=gt.parent,Wt+=1;var St=Ee.props.data,tt=gt.node,ft=!0;return de(gt)&>.level===0&&ot<pt+bt/2&&ke({dragNode:St,dropNode:tt,dropPosition:-1})&>.key===Ce.props.eventKey?kt=-1:(xt.children||[]).length&&Re.includes(At)?ke({dragNode:St,dropNode:tt,dropPosition:0})?kt=0:ft=!1:Wt===0?at>-1.5?ke({dragNode:St,dropNode:tt,dropPosition:1})?kt=1:ft=!1:ke({dragNode:St,dropNode:tt,dropPosition:0})?kt=0:ke({dragNode:St,dropNode:tt,dropPosition:1})?kt=1:ft=!1:ke({dragNode:St,dropNode:tt,dropPosition:1})?kt=1:ft=!1,{dropPosition:kt,dropLevelOffset:Wt,dropTargetKey:gt.key,dropTargetPos:gt.pos,dragOverNodeKey:At,dropContainerKey:kt===0?null:((ze=gt.parent)===null||ze===void 0?void 0:ze.key)||null,dropAllowed:ft}}function ee(pe,Ee){if(pe){var Ce=Ee.multiple;return Ce?pe.slice():pe.length?[pe[0]]:pe}}var ae=function(Ee){return Ee};function re(pe,Ee){if(!pe)return[];var Ce=Ee||{},je=Ce.processProps,Le=je===void 0?ae:je,ke=Array.isArray(pe)?pe:[pe];return ke.map(function(Oe){var Fe=Oe.children,Re=_objectWithoutProperties(Oe,be),Ze=re(Fe,Ee);return React.createElement(TreeNode,_extends({key:Re.key},Le(Re)),Ze)})}function le(pe){if(!pe)return null;var Ee;if(Array.isArray(pe))Ee={checkedKeys:pe,halfCheckedKeys:void 0};else if((0,Tt.Z)(pe)==="object")Ee={checkedKeys:pe.checked||void 0,halfCheckedKeys:pe.halfChecked||void 0};else return(0,oe.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ee}function ue(pe,Ee){var Ce=new Set;function je(Le){if(!Ce.has(Le)){var ke=(0,ve.Z)(Ee,Le);if(ke){Ce.add(Le);var Oe=ke.parent,Fe=ke.node;Fe.disabled||Oe&&je(Oe.key)}}}return(pe||[]).forEach(function(Le){je(Le)}),(0,Qe.Z)(Ce)}},90782:function(bn,an,Ge){"use strict";Ge.d(an,{S:function(){return fe}});var Qe=Ge(48736),Tt=Ge(67841);function oe(be,Pe){var ye=new Set;return be.forEach(function(we){Pe.has(we)||ye.add(we)}),ye}function _e(be){var Pe=be||{},ye=Pe.disabled,we=Pe.disableCheckbox,me=Pe.checkable;return!!(ye||we)||me===!1}function Ne(be,Pe,ye,we){for(var me=new Set(be),Se=new Set,de=0;de<=ye;de+=1){var z=Pe.get(de)||new Set;z.forEach(function(le){var ue=le.key,pe=le.node,Ee=le.children,Ce=Ee===void 0?[]:Ee;me.has(ue)&&!we(pe)&&Ce.filter(function(je){return!we(je.node)}).forEach(function(je){me.add(je.key)})})}for(var ee=new Set,ae=ye;ae>=0;ae-=1){var re=Pe.get(ae)||new Set;re.forEach(function(le){var ue=le.parent,pe=le.node;if(!(we(pe)||!le.parent||ee.has(le.parent.key))){if(we(le.parent.node)){ee.add(ue.key);return}var Ee=!0,Ce=!1;(ue.children||[]).filter(function(je){return!we(je.node)}).forEach(function(je){var Le=je.key,ke=me.has(Le);Ee&&!ke&&(Ee=!1),!Ce&&(ke||Se.has(Le))&&(Ce=!0)}),Ee&&me.add(ue.key),Ce&&Se.add(ue.key),ee.add(ue.key)}})}return{checkedKeys:Array.from(me),halfCheckedKeys:Array.from(oe(Se,me))}}function ve(be,Pe,ye,we,me){for(var Se=new Set(be),de=new Set(Pe),z=0;z<=we;z+=1){var ee=ye.get(z)||new Set;ee.forEach(function(ue){var pe=ue.key,Ee=ue.node,Ce=ue.children,je=Ce===void 0?[]:Ce;!Se.has(pe)&&!de.has(pe)&&!me(Ee)&&je.filter(function(Le){return!me(Le.node)}).forEach(function(Le){Se.delete(Le.key)})})}de=new Set;for(var ae=new Set,re=we;re>=0;re-=1){var le=ye.get(re)||new Set;le.forEach(function(ue){var pe=ue.parent,Ee=ue.node;if(!(me(Ee)||!ue.parent||ae.has(ue.parent.key))){if(me(ue.parent.node)){ae.add(pe.key);return}var Ce=!0,je=!1;(pe.children||[]).filter(function(Le){return!me(Le.node)}).forEach(function(Le){var ke=Le.key,Oe=Se.has(ke);Ce&&!Oe&&(Ce=!1),!je&&(Oe||de.has(ke))&&(je=!0)}),Ce||Se.delete(pe.key),je&&de.add(pe.key),ae.add(pe.key)}})}return{checkedKeys:Array.from(Se),halfCheckedKeys:Array.from(oe(de,Se))}}function fe(be,Pe,ye,we){var me=[],Se;we?Se=we:Se=_e;var de=new Set(be.filter(function(re){var le=!!(0,Tt.Z)(ye,re);return le||me.push(re),le})),z=new Map,ee=0;Object.keys(ye).forEach(function(re){var le=ye[re],ue=le.level,pe=z.get(ue);pe||(pe=new Set,z.set(ue,pe)),pe.add(le),ee=Math.max(ee,ue)}),(0,Qe.ZP)(!me.length,"Tree missing follow keys: ".concat(me.slice(0,100).map(function(re){return"'".concat(re,"'")}).join(", ")));var ae;return Pe===!0?ae=Ne(de,z,ee,Se):ae=ve(de,Pe.halfCheckedKeys,z,ee,Se),ae}},67841:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Qe}});function Qe(Tt,oe){return Tt[oe]}},71430:function(bn,an,Ge){"use strict";Ge.d(an,{F:function(){return ue},H8:function(){return le},I8:function(){return re},km:function(){return me},oH:function(){return ee},w$:function(){return Se},zn:function(){return z}});var Qe=Ge(62853),Tt=Ge(80702),oe=Ge(77321),_e=Ge(74416),Ne=Ge(11592),ve=Ge(2738),fe=Ge(48736),be=Ge(67841),Pe=["children"];function ye(pe,Ee){return"".concat(pe,"-").concat(Ee)}function we(pe){return pe&&pe.type&&pe.type.isTreeNode}function me(pe,Ee){return pe!=null?pe:Ee}function Se(pe){var Ee=pe||{},Ce=Ee.title,je=Ee._title,Le=Ee.key,ke=Ee.children,Oe=Ce||"title";return{title:Oe,_title:je||[Oe],key:Le||"key",children:ke||"children"}}function de(pe,Ee){var Ce=new Map;function je(Le){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Le||[]).forEach(function(Oe){var Fe=Oe[Ee.key],Re=Oe[Ee.children];warning(Fe!=null,"Tree node must have a certain key: [".concat(ke).concat(Fe,"]"));var Ze=String(Fe);warning(!Ce.has(Ze)||Fe===null||Fe===void 0,"Same 'key' exist in the Tree: ".concat(Ze)),Ce.set(Ze,!0),je(Re,"".concat(ke).concat(Ze," > "))})}je(pe)}function z(pe){function Ee(Ce){var je=(0,Ne.Z)(Ce);return je.map(function(Le){if(!we(Le))return(0,fe.ZP)(!Le,"Tree/TreeNode can only accept TreeNode as children."),null;var ke=Le.key,Oe=Le.props,Fe=Oe.children,Re=(0,_e.Z)(Oe,Pe),Ze=(0,oe.Z)({key:ke},Re),ze=Ee(Fe);return ze.length&&(Ze.children=ze),Ze}).filter(function(Le){return Le})}return Ee(pe)}function ee(pe,Ee,Ce){var je=Se(Ce),Le=je._title,ke=je.key,Oe=je.children,Fe=new Set(Ee===!0?[]:Ee),Re=[];function Ze(ze){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return ze.map(function(ot,ct){for(var pt=ye(Ke?Ke.pos:"0",ct),bt=me(ot[ke],pt),qe,at=0;at<Le.length;at+=1){var gt=Le[at];if(ot[gt]!==void 0){qe=ot[gt];break}}var Ct=(0,oe.Z)((0,oe.Z)({},(0,ve.Z)(ot,[].concat((0,Tt.Z)(Le),[ke,Oe]))),{},{title:qe,key:bt,parent:Ke,pos:pt,children:null,data:ot,isStart:[].concat((0,Tt.Z)(Ke?Ke.isStart:[]),[ct===0]),isEnd:[].concat((0,Tt.Z)(Ke?Ke.isEnd:[]),[ct===ze.length-1])});return Re.push(Ct),Ee===!0||Fe.has(bt)?Ct.children=Ze(ot[Oe]||[],Ct):Ct.children=[],Ct})}return Ze(pe),Re}function ae(pe,Ee,Ce){var je={};(0,Qe.Z)(Ce)==="object"?je=Ce:je={externalGetKey:Ce},je=je||{};var Le=je,ke=Le.childrenPropName,Oe=Le.externalGetKey,Fe=Le.fieldNames,Re=Se(Fe),Ze=Re.key,ze=Re.children,Ke=ke||ze,ot;Oe?typeof Oe=="string"?ot=function(bt){return bt[Oe]}:typeof Oe=="function"&&(ot=function(bt){return Oe(bt)}):ot=function(bt,qe){return me(bt[Ze],qe)};function ct(pt,bt,qe,at){var gt=pt?pt[Ke]:pe,Ct=pt?ye(qe.pos,bt):"0",wt=pt?[].concat((0,Tt.Z)(at),[pt]):[];if(pt){var vt=ot(pt,Ct),mt={node:pt,index:bt,pos:Ct,key:vt,parentPos:qe.node?qe.pos:null,level:qe.level+1,nodes:wt};Ee(mt)}gt&>.forEach(function(xt,At){ct(xt,At,{node:pt,pos:Ct,level:qe?qe.level+1:-1},wt)})}ct(null)}function re(pe){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ce=Ee.initWrapper,je=Ee.processEntity,Le=Ee.onProcessFinished,ke=Ee.externalGetKey,Oe=Ee.childrenPropName,Fe=Ee.fieldNames,Re=arguments.length>2?arguments[2]:void 0,Ze=ke||Re,ze={},Ke={},ot={posEntities:ze,keyEntities:Ke};return Ce&&(ot=Ce(ot)||ot),ae(pe,function(ct){var pt=ct.node,bt=ct.index,qe=ct.pos,at=ct.key,gt=ct.parentPos,Ct=ct.level,wt=ct.nodes,vt={node:pt,nodes:wt,index:bt,key:at,pos:qe,level:Ct},mt=me(at,qe);ze[qe]=vt,Ke[mt]=vt,vt.parent=ze[gt],vt.parent&&(vt.parent.children=vt.parent.children||[],vt.parent.children.push(vt)),je&&je(vt,ot)},{externalGetKey:Ze,childrenPropName:Oe,fieldNames:Fe}),Le&&Le(ot),ot}function le(pe,Ee){var Ce=Ee.expandedKeys,je=Ee.selectedKeys,Le=Ee.loadedKeys,ke=Ee.loadingKeys,Oe=Ee.checkedKeys,Fe=Ee.halfCheckedKeys,Re=Ee.dragOverNodeKey,Ze=Ee.dropPosition,ze=Ee.keyEntities,Ke=(0,be.Z)(ze,pe),ot={eventKey:pe,expanded:Ce.indexOf(pe)!==-1,selected:je.indexOf(pe)!==-1,loaded:Le.indexOf(pe)!==-1,loading:ke.indexOf(pe)!==-1,checked:Oe.indexOf(pe)!==-1,halfChecked:Fe.indexOf(pe)!==-1,pos:String(Ke?Ke.pos:""),dragOver:Re===pe&&Ze===0,dragOverGapTop:Re===pe&&Ze===-1,dragOverGapBottom:Re===pe&&Ze===1};return ot}function ue(pe){var Ee=pe.data,Ce=pe.expanded,je=pe.selected,Le=pe.checked,ke=pe.loaded,Oe=pe.loading,Fe=pe.halfChecked,Re=pe.dragOver,Ze=pe.dragOverGapTop,ze=pe.dragOverGapBottom,Ke=pe.pos,ot=pe.active,ct=pe.eventKey,pt=(0,oe.Z)((0,oe.Z)({},Ee),{},{expanded:Ce,selected:je,checked:Le,loaded:ke,loading:Oe,halfChecked:Fe,dragOver:Re,dragOverGapTop:Ze,dragOverGapBottom:ze,pos:Ke,active:ot,key:ct});return"props"in pt||Object.defineProperty(pt,"props",{get:function(){return(0,fe.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),pe}}),pt}},45680:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return tt}});var Qe=Ge(72308),Tt=Ge(62853),oe=Ge(77321),_e=Ge(49618),Ne=Ge(52487),ve=Ge(74416),fe=Ge(92310),be=Ge.n(fe),Pe=Ge(29301),ye=Ge(70425),we=Ge(34280),me=Ge(59301),Se=Ge(4676),de=me.forwardRef(function(ft,$e){var lt=ft.height,Pt=ft.offsetY,dt=ft.offsetX,et=ft.children,Ve=ft.prefixCls,He=ft.onInnerResize,nt=ft.innerProps,ut=ft.rtl,We=ft.extra,De={},Ie={display:"flex",flexDirection:"column"};return Pt!==void 0&&(De={height:lt,position:"relative",overflow:"hidden"},Ie=(0,oe.Z)((0,oe.Z)({},Ie),{},(0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)({transform:"translateY(".concat(Pt,"px)")},ut?"marginRight":"marginLeft",-dt),"position","absolute"),"left",0),"right",0),"top",0))),me.createElement("div",{style:De},me.createElement(Pe.Z,{onResize:function(yt){var Ye=yt.offsetHeight;Ye&&He&&He()}},me.createElement("div",(0,Qe.Z)({style:Ie,className:be()((0,_e.Z)({},"".concat(Ve,"-holder-inner"),Ve)),ref:$e},nt),et,We)))});de.displayName="Filler";var z=de;function ee(ft){var $e=ft.children,lt=ft.setRef,Pt=me.useCallback(function(dt){lt(dt)},[]);return me.cloneElement($e,{ref:Pt})}function ae(ft,$e,lt,Pt,dt,et,Ve,He){var nt=He.getKey;return ft.slice($e,lt+1).map(function(ut,We){var De=$e+We,Ie=Ve(ut,De,{style:{width:Pt},offsetX:dt}),Xe=nt(ut);return me.createElement(ee,{key:Xe,setRef:function(Ye){return et(ut,Ye)}},Ie)})}function re(ft,$e,lt,Pt){var dt=lt-ft,et=$e-lt,Ve=Math.min(dt,et)*2;if(Pt<=Ve){var He=Math.floor(Pt/2);return Pt%2?lt+He+1:lt-He}return dt>et?lt-(Pt-et):lt+(Pt-dt)}function le(ft,$e,lt){var Pt=ft.length,dt=$e.length,et,Ve;if(Pt===0&&dt===0)return null;Pt<dt?(et=ft,Ve=$e):(et=$e,Ve=ft);var He={__EMPTY_ITEM__:!0};function nt(yt){return yt!==void 0?lt(yt):He}for(var ut=null,We=Math.abs(Pt-dt)!==1,De=0;De<Ve.length;De+=1){var Ie=nt(et[De]),Xe=nt(Ve[De]);if(Ie!==Xe){ut=De,We=We||Ie!==nt(Ve[De+1]);break}}return ut===null?null:{index:ut,multiple:We}}function ue(ft,$e,lt){var Pt=me.useState(ft),dt=(0,Ne.Z)(Pt,2),et=dt[0],Ve=dt[1],He=me.useState(null),nt=(0,Ne.Z)(He,2),ut=nt[0],We=nt[1];return me.useEffect(function(){var De=le(et||[],ft||[],$e);(De==null?void 0:De.index)!==void 0&&(lt==null||lt(De.index),We(ft[De.index])),Ve(ft)},[ft]),[ut]}var pe=Ge(16089),Ee=(typeof navigator=="undefined"?"undefined":(0,Tt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ce=Ee,je=function(ft,$e,lt,Pt){var dt=(0,me.useRef)(!1),et=(0,me.useRef)(null);function Ve(){clearTimeout(et.current),dt.current=!0,et.current=setTimeout(function(){dt.current=!1},50)}var He=(0,me.useRef)({top:ft,bottom:$e,left:lt,right:Pt});return He.current.top=ft,He.current.bottom=$e,He.current.left=lt,He.current.right=Pt,function(nt,ut){var We=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,De=nt?ut<0&&He.current.left||ut>0&&He.current.right:ut<0&&He.current.top||ut>0&&He.current.bottom;return We&&De?(clearTimeout(et.current),dt.current=!1):(!De||dt.current)&&Ve(),!dt.current&&De}};function Le(ft,$e,lt,Pt,dt,et,Ve){var He=(0,me.useRef)(0),nt=(0,me.useRef)(null),ut=(0,me.useRef)(null),We=(0,me.useRef)(!1),De=je($e,lt,Pt,dt);function Ie(en,It){if(pe.Z.cancel(nt.current),!De(!1,It)){var Ut=en;if(!Ut._virtualHandled)Ut._virtualHandled=!0;else return;He.current+=It,ut.current=It,Ce||Ut.preventDefault(),nt.current=(0,pe.Z)(function(){var tn=We.current?10:1;Ve(He.current*tn,!1),He.current=0})}}function Xe(en,It){Ve(It,!0),Ce||en.preventDefault()}var yt=(0,me.useRef)(null),Ye=(0,me.useRef)(null);function jt(en){if(ft){pe.Z.cancel(Ye.current),Ye.current=(0,pe.Z)(function(){yt.current=null},2);var It=en.deltaX,Ut=en.deltaY,tn=en.shiftKey,ln=It,mn=Ut;(yt.current==="sx"||!yt.current&&tn&&Ut&&!It)&&(ln=Ut,mn=0,yt.current="sx");var jn=Math.abs(ln),Vn=Math.abs(mn);yt.current===null&&(yt.current=et&&jn>Vn?"x":"y"),yt.current==="y"?Ie(en,mn):Xe(en,ln)}}function Ht(en){ft&&(We.current=en.detail===ut.current)}return[jt,Ht]}function ke(ft,$e,lt,Pt){var dt=me.useMemo(function(){return[new Map,[]]},[ft,lt.id,Pt]),et=(0,Ne.Z)(dt,2),Ve=et[0],He=et[1],nt=function(We){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:We,Ie=Ve.get(We),Xe=Ve.get(De);if(Ie===void 0||Xe===void 0)for(var yt=ft.length,Ye=He.length;Ye<yt;Ye+=1){var jt,Ht=ft[Ye],en=$e(Ht);Ve.set(en,Ye);var It=(jt=lt.get(en))!==null&&jt!==void 0?jt:Pt;if(He[Ye]=(He[Ye-1]||0)+It,en===We&&(Ie=Ye),en===De&&(Xe=Ye),Ie!==void 0&&Xe!==void 0)break}return{top:He[Ie-1]||0,bottom:He[Xe]}};return nt}var Oe=Ge(96949),Fe=Ge(55090),Re=function(){function ft(){(0,Oe.Z)(this,ft),(0,_e.Z)(this,"maps",void 0),(0,_e.Z)(this,"id",0),(0,_e.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Fe.Z)(ft,[{key:"set",value:function(lt,Pt){this.maps[lt]=Pt,this.id+=1,this.diffKeys.add(lt)}},{key:"get",value:function(lt){return this.maps[lt]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),ft}(),Ze=Re;function ze(ft){var $e=parseFloat(ft);return isNaN($e)?0:$e}function Ke(ft,$e,lt){var Pt=me.useState(0),dt=(0,Ne.Z)(Pt,2),et=dt[0],Ve=dt[1],He=(0,me.useRef)(new Map),nt=(0,me.useRef)(new Ze),ut=(0,me.useRef)(0);function We(){ut.current+=1}function De(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;We();var yt=function(){var Ht=!1;He.current.forEach(function(en,It){if(en&&en.offsetParent){var Ut=en.offsetHeight,tn=getComputedStyle(en),ln=tn.marginTop,mn=tn.marginBottom,jn=ze(ln),Vn=ze(mn),Kn=Ut+jn+Vn;nt.current.get(It)!==Kn&&(nt.current.set(It,Kn),Ht=!0)}}),Ht&&Ve(function(en){return en+1})};if(Xe)yt();else{ut.current+=1;var Ye=ut.current;Promise.resolve().then(function(){Ye===ut.current&&yt()})}}function Ie(Xe,yt){var Ye=ft(Xe),jt=He.current.get(Ye);yt?(He.current.set(Ye,yt),De()):He.current.delete(Ye),!jt!=!yt&&(yt?$e==null||$e(Xe):lt==null||lt(Xe))}return(0,me.useEffect)(function(){return We},[]),[Ie,De,nt.current,et]}var ot=14/15;function ct(ft,$e,lt){var Pt=(0,me.useRef)(!1),dt=(0,me.useRef)(0),et=(0,me.useRef)(0),Ve=(0,me.useRef)(null),He=(0,me.useRef)(null),nt,ut=function(Xe){if(Pt.current){var yt=Math.ceil(Xe.touches[0].pageX),Ye=Math.ceil(Xe.touches[0].pageY),jt=dt.current-yt,Ht=et.current-Ye,en=Math.abs(jt)>Math.abs(Ht);en?dt.current=yt:et.current=Ye;var It=lt(en,en?jt:Ht,!1,Xe);It&&Xe.preventDefault(),clearInterval(He.current),It&&(He.current=setInterval(function(){en?jt*=ot:Ht*=ot;var Ut=Math.floor(en?jt:Ht);(!lt(en,Ut,!0)||Math.abs(Ut)<=.1)&&clearInterval(He.current)},16))}},We=function(){Pt.current=!1,nt()},De=function(Xe){nt(),Xe.touches.length===1&&!Pt.current&&(Pt.current=!0,dt.current=Math.ceil(Xe.touches[0].pageX),et.current=Math.ceil(Xe.touches[0].pageY),Ve.current=Xe.target,Ve.current.addEventListener("touchmove",ut,{passive:!1}),Ve.current.addEventListener("touchend",We,{passive:!0}))};nt=function(){Ve.current&&(Ve.current.removeEventListener("touchmove",ut),Ve.current.removeEventListener("touchend",We))},(0,we.Z)(function(){return ft&&$e.current.addEventListener("touchstart",De,{passive:!0}),function(){var Ie;(Ie=$e.current)===null||Ie===void 0||Ie.removeEventListener("touchstart",De),nt(),clearInterval(He.current)}},[ft])}function pt(ft){return Math.floor(Math.pow(ft,.5))}function bt(ft,$e){var lt="touches"in ft?ft.touches[0]:ft;return lt[$e?"pageX":"pageY"]-window[$e?"scrollX":"scrollY"]}function qe(ft,$e,lt){me.useEffect(function(){var Pt=$e.current;if(ft&&Pt){var dt=!1,et,Ve,He=function(){pe.Z.cancel(et)},nt=function Ie(){He(),et=(0,pe.Z)(function(){lt(Ve),Ie()})},ut=function(Xe){if(!(Xe.target.draggable||Xe.button!==0)){var yt=Xe;yt._virtualHandled||(yt._virtualHandled=!0,dt=!0)}},We=function(){dt=!1,He()},De=function(Xe){if(dt){var yt=bt(Xe,!1),Ye=Pt.getBoundingClientRect(),jt=Ye.top,Ht=Ye.bottom;if(yt<=jt){var en=jt-yt;Ve=-pt(en),nt()}else if(yt>=Ht){var It=yt-Ht;Ve=pt(It),nt()}else He()}};return Pt.addEventListener("mousedown",ut),Pt.ownerDocument.addEventListener("mouseup",We),Pt.ownerDocument.addEventListener("mousemove",De),function(){Pt.removeEventListener("mousedown",ut),Pt.ownerDocument.removeEventListener("mouseup",We),Pt.ownerDocument.removeEventListener("mousemove",De),He()}}},[ft])}var at=10;function gt(ft,$e,lt,Pt,dt,et,Ve,He){var nt=me.useRef(),ut=me.useState(null),We=(0,Ne.Z)(ut,2),De=We[0],Ie=We[1];return(0,we.Z)(function(){if(De&&De.times<at){if(!ft.current){Ie(function(jr){return(0,oe.Z)({},jr)});return}et();var Xe=De.targetAlign,yt=De.originAlign,Ye=De.index,jt=De.offset,Ht=ft.current.clientHeight,en=!1,It=Xe,Ut=null;if(Ht){for(var tn=Xe||yt,ln=0,mn=0,jn=0,Vn=Math.min($e.length-1,Ye),Kn=0;Kn<=Vn;Kn+=1){var ar=dt($e[Kn]);mn=ln;var xr=lt.get(ar);jn=mn+(xr===void 0?Pt:xr),ln=jn}for(var gr=tn==="top"?jt:Ht-jt,dr=Vn;dr>=0;dr-=1){var Tr=dt($e[dr]),Rr=lt.get(Tr);if(Rr===void 0){en=!0;break}if(gr-=Rr,gr<=0)break}switch(tn){case"top":Ut=mn-jt;break;case"bottom":Ut=jn-Ht+jt;break;default:{var Zr=ft.current.scrollTop,ei=Zr+Ht;mn<Zr?It="top":jn>ei&&(It="bottom")}}Ut!==null&&Ve(Ut),Ut!==De.lastTop&&(en=!0)}en&&Ie((0,oe.Z)((0,oe.Z)({},De),{},{times:De.times+1,targetAlign:It,lastTop:Ut}))}},[De,ft.current]),function(Xe){if(Xe==null){He();return}if(pe.Z.cancel(nt.current),typeof Xe=="number")Ve(Xe);else if(Xe&&(0,Tt.Z)(Xe)==="object"){var yt,Ye=Xe.align;"index"in Xe?yt=Xe.index:yt=$e.findIndex(function(en){return dt(en)===Xe.key});var jt=Xe.offset,Ht=jt===void 0?0:jt;Ie({times:0,index:yt,offset:Ht,originAlign:Ye})}}}var Ct=me.forwardRef(function(ft,$e){var lt=ft.prefixCls,Pt=ft.rtl,dt=ft.scrollOffset,et=ft.scrollRange,Ve=ft.onStartMove,He=ft.onStopMove,nt=ft.onScroll,ut=ft.horizontal,We=ft.spinSize,De=ft.containerSize,Ie=ft.style,Xe=ft.thumbStyle,yt=ft.showScrollBar,Ye=me.useState(!1),jt=(0,Ne.Z)(Ye,2),Ht=jt[0],en=jt[1],It=me.useState(null),Ut=(0,Ne.Z)(It,2),tn=Ut[0],ln=Ut[1],mn=me.useState(null),jn=(0,Ne.Z)(mn,2),Vn=jn[0],Kn=jn[1],ar=!Pt,xr=me.useRef(),gr=me.useRef(),dr=me.useState(yt),Tr=(0,Ne.Z)(dr,2),Rr=Tr[0],Zr=Tr[1],ei=me.useRef(),jr=function(){yt===!0||yt===!1||(clearTimeout(ei.current),Zr(!0),ei.current=setTimeout(function(){Zr(!1)},3e3))},it=et-De||0,Qr=De-We||0,$r=me.useMemo(function(){if(dt===0||it===0)return 0;var Lt=dt/it;return Lt*Qr},[dt,it,Qr]),En=function(nn){nn.stopPropagation(),nn.preventDefault()},er=me.useRef({top:$r,dragging:Ht,pageY:tn,startTop:Vn});er.current={top:$r,dragging:Ht,pageY:tn,startTop:Vn};var rr=function(nn){en(!0),ln(bt(nn,ut)),Kn(er.current.top),Ve(),nn.stopPropagation(),nn.preventDefault()};me.useEffect(function(){var Lt=function(Rt){Rt.preventDefault()},nn=xr.current,pn=gr.current;return nn.addEventListener("touchstart",Lt,{passive:!1}),pn.addEventListener("touchstart",rr,{passive:!1}),function(){nn.removeEventListener("touchstart",Lt),pn.removeEventListener("touchstart",rr)}},[]);var vr=me.useRef();vr.current=it;var zn=me.useRef();zn.current=Qr,me.useEffect(function(){if(Ht){var Lt,nn=function(Rt){var rn=er.current,yn=rn.dragging,Mn=rn.pageY,On=rn.startTop;pe.Z.cancel(Lt);var zt=xr.current.getBoundingClientRect(),xn=De/(ut?zt.width:zt.height);if(yn){var Fn=(bt(Rt,ut)-Mn)*xn,$n=On;!ar&&ut?$n-=Fn:$n+=Fn;var gn=vr.current,Sn=zn.current,Qt=Sn?$n/Sn:0,hn=Math.ceil(Qt*gn);hn=Math.max(hn,0),hn=Math.min(hn,gn),Lt=(0,pe.Z)(function(){nt(hn,ut)})}},pn=function(){en(!1),He()};return window.addEventListener("mousemove",nn,{passive:!0}),window.addEventListener("touchmove",nn,{passive:!0}),window.addEventListener("mouseup",pn,{passive:!0}),window.addEventListener("touchend",pn,{passive:!0}),function(){window.removeEventListener("mousemove",nn),window.removeEventListener("touchmove",nn),window.removeEventListener("mouseup",pn),window.removeEventListener("touchend",pn),pe.Z.cancel(Lt)}}},[Ht]),me.useEffect(function(){return jr(),function(){clearTimeout(ei.current)}},[dt]),me.useImperativeHandle($e,function(){return{delayHidden:jr}});var Nn="".concat(lt,"-scrollbar"),$t={position:"absolute",visibility:Rr?null:"hidden"},Xt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return ut?($t.height=8,$t.left=0,$t.right=0,$t.bottom=0,Xt.height="100%",Xt.width=We,ar?Xt.left=$r:Xt.right=$r):($t.width=8,$t.top=0,$t.bottom=0,ar?$t.right=0:$t.left=0,Xt.width="100%",Xt.height=We,Xt.top=$r),me.createElement("div",{ref:xr,className:be()(Nn,(0,_e.Z)((0,_e.Z)((0,_e.Z)({},"".concat(Nn,"-horizontal"),ut),"".concat(Nn,"-vertical"),!ut),"".concat(Nn,"-visible"),Rr)),style:(0,oe.Z)((0,oe.Z)({},$t),Ie),onMouseDown:En,onMouseMove:jr},me.createElement("div",{ref:gr,className:be()("".concat(Nn,"-thumb"),(0,_e.Z)({},"".concat(Nn,"-thumb-moving"),Ht)),style:(0,oe.Z)((0,oe.Z)({},Xt),Xe),onMouseDown:rr}))}),wt=Ct,vt=20;function mt(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,$e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,lt=ft/$e*ft;return isNaN(lt)&&(lt=0),lt=Math.max(lt,vt),Math.floor(lt)}var xt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],At=[],kt={overflowY:"auto",overflowAnchor:"none"};function Wt(ft,$e){var lt=ft.prefixCls,Pt=lt===void 0?"rc-virtual-list":lt,dt=ft.className,et=ft.height,Ve=ft.itemHeight,He=ft.fullHeight,nt=He===void 0?!0:He,ut=ft.style,We=ft.data,De=ft.children,Ie=ft.itemKey,Xe=ft.virtual,yt=ft.direction,Ye=ft.scrollWidth,jt=ft.component,Ht=jt===void 0?"div":jt,en=ft.onScroll,It=ft.onVirtualScroll,Ut=ft.onVisibleChange,tn=ft.innerProps,ln=ft.extraRender,mn=ft.styles,jn=ft.showScrollBar,Vn=jn===void 0?"optional":jn,Kn=(0,ve.Z)(ft,xt),ar=me.useCallback(function(Fr){return typeof Ie=="function"?Ie(Fr):Fr==null?void 0:Fr[Ie]},[Ie]),xr=Ke(ar,null,null),gr=(0,Ne.Z)(xr,4),dr=gr[0],Tr=gr[1],Rr=gr[2],Zr=gr[3],ei=!!(Xe!==!1&&et&&Ve),jr=me.useMemo(function(){return Object.values(Rr.maps).reduce(function(Fr,Gr){return Fr+Gr},0)},[Rr.id,Rr.maps]),it=ei&&We&&(Math.max(Ve*We.length,jr)>et||!!Ye),Qr=yt==="rtl",$r=be()(Pt,(0,_e.Z)({},"".concat(Pt,"-rtl"),Qr),dt),En=We||At,er=(0,me.useRef)(),rr=(0,me.useRef)(),vr=(0,me.useRef)(),zn=(0,me.useState)(0),Nn=(0,Ne.Z)(zn,2),$t=Nn[0],Xt=Nn[1],Lt=(0,me.useState)(0),nn=(0,Ne.Z)(Lt,2),pn=nn[0],Vt=nn[1],Rt=(0,me.useState)(!1),rn=(0,Ne.Z)(Rt,2),yn=rn[0],Mn=rn[1],On=function(){Mn(!0)},zt=function(){Mn(!1)},xn={getKey:ar};function Fn(Fr){Xt(function(Gr){var ri;typeof Fr=="function"?ri=Fr(Gr):ri=Fr;var Vr=ur(ri);return er.current.scrollTop=Vr,Vr})}var $n=(0,me.useRef)({start:0,end:En.length}),gn=(0,me.useRef)(),Sn=ue(En,ar),Qt=(0,Ne.Z)(Sn,1),hn=Qt[0];gn.current=hn;var dn=me.useMemo(function(){if(!ei)return{scrollHeight:void 0,start:0,end:En.length-1,offset:void 0};if(!it){var Fr;return{scrollHeight:((Fr=rr.current)===null||Fr===void 0?void 0:Fr.offsetHeight)||0,start:0,end:En.length-1,offset:void 0}}for(var Gr=0,ri,Vr,Mi,Fi=En.length,Lr=0;Lr<Fi;Lr+=1){var kr=En[Lr],Wn=ar(kr),Br=Rr.get(Wn),vi=Gr+(Br===void 0?Ve:Br);vi>=$t&&ri===void 0&&(ri=Lr,Vr=Gr),vi>$t+et&&Mi===void 0&&(Mi=Lr),Gr=vi}return ri===void 0&&(ri=0,Vr=0,Mi=Math.ceil(et/Ve)),Mi===void 0&&(Mi=En.length-1),Mi=Math.min(Mi+1,En.length-1),{scrollHeight:Gr,start:ri,end:Mi,offset:Vr}},[it,ei,$t,En,Zr,et]),cn=dn.scrollHeight,Pn=dn.start,Cn=dn.end,Dn=dn.offset;$n.current.start=Pn,$n.current.end=Cn,me.useLayoutEffect(function(){var Fr=Rr.getRecord();if(Fr.size===1){var Gr=Array.from(Fr)[0],ri=En[Pn];if(ri){var Vr=ar(ri);if(Vr===Gr){var Mi=Rr.get(Gr),Fi=Mi-Ve;Fn(function(Lr){return Lr+Fi})}}}Rr.resetRecord()},[cn]);var In=me.useState({width:0,height:et}),tr=(0,Ne.Z)(In,2),un=tr[0],fr=tr[1],wr=function(Gr){fr({width:Gr.offsetWidth,height:Gr.offsetHeight})},Or=(0,me.useRef)(),fn=(0,me.useRef)(),_n=me.useMemo(function(){return mt(un.width,Ye)},[un.width,Ye]),Yn=me.useMemo(function(){return mt(un.height,cn)},[un.height,cn]),hr=cn-et,Qn=(0,me.useRef)(hr);Qn.current=hr;function ur(Fr){var Gr=Fr;return Number.isNaN(Qn.current)||(Gr=Math.min(Gr,Qn.current)),Gr=Math.max(Gr,0),Gr}var Cr=$t<=0,Pr=$t>=hr,cr=pn<=0,Mr=pn>=Ye,Tn=je(Cr,Pr,cr,Mr),qr=function(){return{x:Qr?-pn:pn,y:$t}},Ln=(0,me.useRef)(qr()),zr=(0,ye.useEvent)(function(Fr){if(It){var Gr=(0,oe.Z)((0,oe.Z)({},qr()),Fr);(Ln.current.x!==Gr.x||Ln.current.y!==Gr.y)&&(It(Gr),Ln.current=Gr)}});function li(Fr,Gr){var ri=Fr;Gr?((0,Se.flushSync)(function(){Vt(ri)}),zr()):Fn(ri)}function Ar(Fr){var Gr=Fr.currentTarget.scrollTop;Gr!==$t&&Fn(Gr),en==null||en(Fr),zr()}var fi=function(Gr){var ri=Gr,Vr=Ye?Ye-un.width:0;return ri=Math.max(ri,0),ri=Math.min(ri,Vr),ri},oi=(0,ye.useEvent)(function(Fr,Gr){Gr?((0,Se.flushSync)(function(){Vt(function(ri){var Vr=ri+(Qr?-Fr:Fr);return fi(Vr)})}),zr()):Fn(function(ri){var Vr=ri+Fr;return Vr})}),Sr=Le(ei,Cr,Pr,cr,Mr,!!Ye,oi),yr=(0,Ne.Z)(Sr,2),Kr=yr[0],ai=yr[1];ct(ei,er,function(Fr,Gr,ri,Vr){var Mi=Vr;return Tn(Fr,Gr,ri)?!1:!Mi||!Mi._virtualHandled?(Mi&&(Mi._virtualHandled=!0),Kr({preventDefault:function(){},deltaX:Fr?Gr:0,deltaY:Fr?0:Gr}),!0):!1}),qe(it,er,function(Fr){Fn(function(Gr){return Gr+Fr})}),(0,we.Z)(function(){function Fr(ri){var Vr=Cr&&ri.detail<0,Mi=Pr&&ri.detail>0;ei&&!Vr&&!Mi&&ri.preventDefault()}var Gr=er.current;return Gr.addEventListener("wheel",Kr,{passive:!1}),Gr.addEventListener("DOMMouseScroll",ai,{passive:!0}),Gr.addEventListener("MozMousePixelScroll",Fr,{passive:!1}),function(){Gr.removeEventListener("wheel",Kr),Gr.removeEventListener("DOMMouseScroll",ai),Gr.removeEventListener("MozMousePixelScroll",Fr)}},[ei,Cr,Pr]),(0,we.Z)(function(){if(Ye){var Fr=fi(pn);Vt(Fr),zr({x:Fr})}},[un.width,Ye]);var qn=function(){var Gr,ri;(Gr=Or.current)===null||Gr===void 0||Gr.delayHidden(),(ri=fn.current)===null||ri===void 0||ri.delayHidden()},Nt=gt(er,En,Rr,Ve,ar,function(){return Tr(!0)},Fn,qn);me.useImperativeHandle($e,function(){return{nativeElement:vr.current,getScrollInfo:qr,scrollTo:function(Gr){function ri(Vr){return Vr&&(0,Tt.Z)(Vr)==="object"&&("left"in Vr||"top"in Vr)}ri(Gr)?(Gr.left!==void 0&&Vt(fi(Gr.left)),Nt(Gr.top)):Nt(Gr)}}}),(0,we.Z)(function(){if(Ut){var Fr=En.slice(Pn,Cn+1);Ut(Fr,En)}},[Pn,Cn,En]);var ni=ke(En,ar,Rr,Ve),Ci=ln==null?void 0:ln({start:Pn,end:Cn,virtual:it,offsetX:pn,offsetY:Dn,rtl:Qr,getSize:ni}),Xr=ae(En,Pn,Cn,Ye,pn,dr,De,xn),Ei=null;et&&(Ei=(0,oe.Z)((0,_e.Z)({},nt?"height":"maxHeight",et),kt),ei&&(Ei.overflowY="hidden",Ye&&(Ei.overflowX="hidden"),yn&&(Ei.pointerEvents="none")));var Oi={};return Qr&&(Oi.dir="rtl"),me.createElement("div",(0,Qe.Z)({ref:vr,style:(0,oe.Z)((0,oe.Z)({},ut),{},{position:"relative"}),className:$r},Oi,Kn),me.createElement(Pe.Z,{onResize:wr},me.createElement(Ht,{className:"".concat(Pt,"-holder"),style:Ei,ref:er,onScroll:Ar,onMouseEnter:qn},me.createElement(z,{prefixCls:Pt,height:cn,offsetX:pn,offsetY:Dn,scrollWidth:Ye,onInnerResize:Tr,ref:rr,innerProps:tn,rtl:Qr,extra:Ci},Xr))),it&&cn>et&&me.createElement(wt,{ref:Or,prefixCls:Pt,scrollOffset:$t,scrollRange:cn,rtl:Qr,onScroll:li,onStartMove:On,onStopMove:zt,spinSize:Yn,containerSize:un.height,style:mn==null?void 0:mn.verticalScrollBar,thumbStyle:mn==null?void 0:mn.verticalScrollBarThumb,showScrollBar:Vn}),it&&Ye>un.width&&me.createElement(wt,{ref:fn,prefixCls:Pt,scrollOffset:pn,scrollRange:Ye,rtl:Qr,onScroll:li,onStartMove:On,onStopMove:zt,spinSize:_n,containerSize:un.width,horizontal:!0,style:mn==null?void 0:mn.horizontalScrollBar,thumbStyle:mn==null?void 0:mn.horizontalScrollBarThumb,showScrollBar:Vn}))}var Et=me.forwardRef(Wt);Et.displayName="List";var St=Et,tt=St},7062:function(bn,an,Ge){var Qe=Ge(19637),Tt=Ge(97573),oe=[Ge(96627)];bn.exports=Qe.createStore(Tt,oe)},96627:function(bn,an,Ge){bn.exports=Qe;function Qe(){return Ge(42424),{}}},42424:function(){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(bn){return bn<10?"0"+bn:bn}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(bn){return rx_escapable.lastIndex=0,rx_escapable.test(bn)?'"'+bn.replace(rx_escapable,function(an){var Ge=meta[an];return typeof Ge=="string"?Ge:"\\u"+("0000"+an.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+bn+'"'}function str(bn,an){var Ge,Qe,Tt,oe,_e=gap,Ne,ve=an[bn];switch(ve&&typeof ve=="object"&&typeof ve.toJSON=="function"&&(ve=ve.toJSON(bn)),typeof rep=="function"&&(ve=rep.call(an,bn,ve)),typeof ve){case"string":return quote(ve);case"number":return isFinite(ve)?String(ve):"null";case"boolean":case"null":return String(ve);case"object":if(!ve)return"null";if(gap+=indent,Ne=[],Object.prototype.toString.apply(ve)==="[object Array]"){for(oe=ve.length,Ge=0;Ge<oe;Ge+=1)Ne[Ge]=str(Ge,ve)||"null";return Tt=Ne.length===0?"[]":gap?`[
|
|
|
`+gap+Ne.join(`,
|
|
|
`+gap)+`
|
|
|
`+_e+"]":"["+Ne.join(",")+"]",gap=_e,Tt}if(rep&&typeof rep=="object")for(oe=rep.length,Ge=0;Ge<oe;Ge+=1)typeof rep[Ge]=="string"&&(Qe=rep[Ge],Tt=str(Qe,ve),Tt&&Ne.push(quote(Qe)+(gap?": ":":")+Tt));else for(Qe in ve)Object.prototype.hasOwnProperty.call(ve,Qe)&&(Tt=str(Qe,ve),Tt&&Ne.push(quote(Qe)+(gap?": ":":")+Tt));return Tt=Ne.length===0?"{}":gap?`{
|
|
|
`+gap+Ne.join(`,
|
|
|
`+gap)+`
|
|
|
`+_e+"}":"{"+Ne.join(",")+"}",gap=_e,Tt}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(bn,an,Ge){var Qe;if(gap="",indent="",typeof Ge=="number")for(Qe=0;Qe<Ge;Qe+=1)indent+=" ";else typeof Ge=="string"&&(indent=Ge);if(rep=an,an&&typeof an!="function"&&(typeof an!="object"||typeof an.length!="number"))throw new Error("JSON.stringify");return str("",{"":bn})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(bn,an){var Ge,Qe,Tt=bn[an];if(Tt&&typeof Tt=="object")for(Ge in Tt)Object.prototype.hasOwnProperty.call(Tt,Ge)&&(Qe=walk(Tt,Ge),Qe!==void 0?Tt[Ge]=Qe:delete Tt[Ge]);return reviver.call(bn,an,Tt)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(bn){return"\\u"+("0000"+bn.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},19637:function(bn,an,Ge){var Qe=Ge(67039),Tt=Qe.slice,oe=Qe.pluck,_e=Qe.each,Ne=Qe.bind,ve=Qe.create,fe=Qe.isList,be=Qe.isFunction,Pe=Qe.isObject;bn.exports={createStore:me};var ye={version:"2.0.12",enabled:!1,get:function(Se,de){var z=this.storage.read(this._namespacePrefix+Se);return this._deserialize(z,de)},set:function(Se,de){return de===void 0?this.remove(Se):(this.storage.write(this._namespacePrefix+Se,this._serialize(de)),de)},remove:function(Se){this.storage.remove(this._namespacePrefix+Se)},each:function(Se){var de=this;this.storage.each(function(z,ee){Se.call(de,de._deserialize(z),(ee||"").replace(de._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(Se){return this._namespacePrefix=="__storejs_"+Se+"_"},createStore:function(){return me.apply(this,arguments)},addPlugin:function(Se){this._addPlugin(Se)},namespace:function(Se){return me(this.storage,this.plugins,Se)}};function we(){var Se=typeof console=="undefined"?null:console;if(Se){var de=Se.warn?Se.warn:Se.log;de.apply(Se,arguments)}}function me(Se,de,z){z||(z=""),Se&&!fe(Se)&&(Se=[Se]),de&&!fe(de)&&(de=[de]);var ee=z?"__storejs_"+z+"_":"",ae=z?new RegExp("^"+ee):null,re=/^[a-zA-Z0-9_\-]*$/;if(!re.test(z))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var le={_namespacePrefix:ee,_namespaceRegexp:ae,_testStorage:function(pe){try{var Ee="__storejs__test__";pe.write(Ee,Ee);var Ce=pe.read(Ee)===Ee;return pe.remove(Ee),Ce}catch(je){return!1}},_assignPluginFnProp:function(pe,Ee){var Ce=this[Ee];this[Ee]=function(){var Le=Tt(arguments,0),ke=this;function Oe(){if(Ce)return _e(arguments,function(Re,Ze){Le[Ze]=Re}),Ce.apply(ke,Le)}var Fe=[Oe].concat(Le);return pe.apply(ke,Fe)}},_serialize:function(pe){return JSON.stringify(pe)},_deserialize:function(pe,Ee){if(!pe)return Ee;var Ce="";try{Ce=JSON.parse(pe)}catch(je){Ce=pe}return Ce!==void 0?Ce:Ee},_addStorage:function(pe){this.enabled||this._testStorage(pe)&&(this.storage=pe,this.enabled=!0)},_addPlugin:function(pe){var Ee=this;if(fe(pe)){_e(pe,function(Le){Ee._addPlugin(Le)});return}var Ce=oe(this.plugins,function(Le){return pe===Le});if(!Ce){if(this.plugins.push(pe),!be(pe))throw new Error("Plugins must be function values that return objects");var je=pe.call(this);if(!Pe(je))throw new Error("Plugins must return an object of function properties");_e(je,function(Le,ke){if(!be(Le))throw new Error("Bad plugin property: "+ke+" from plugin "+pe.name+". Plugins should only return functions.");Ee._assignPluginFnProp(Le,ke)})}},addStorage:function(pe){we("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(pe)}},ue=ve(le,ye,{plugins:[]});return ue.raw={},_e(ue,function(pe,Ee){be(pe)&&(ue.raw[Ee]=Ne(ue,pe))}),_e(Se,function(pe){ue._addStorage(pe)}),_e(de,function(pe){ue._addPlugin(pe)}),ue}},67039:function(bn,an,Ge){var Qe=Ne(),Tt=ve(),oe=fe(),_e=typeof window!="undefined"?window:Ge.g;bn.exports={assign:Qe,create:Tt,trim:oe,bind:be,slice:Pe,each:ye,map:we,pluck:me,isList:Se,isFunction:de,isObject:z,Global:_e};function Ne(){return Object.assign?Object.assign:function(ae,re,le,ue){for(var pe=1;pe<arguments.length;pe++)ye(Object(arguments[pe]),function(Ee,Ce){ae[Ce]=Ee});return ae}}function ve(){if(Object.create)return function(re,le,ue,pe){var Ee=Pe(arguments,1);return Qe.apply(this,[Object.create(re)].concat(Ee))};{let ae=function(){};var ee=ae;return function(le,ue,pe,Ee){var Ce=Pe(arguments,1);return ae.prototype=le,Qe.apply(this,[new ae].concat(Ce))}}}function fe(){return String.prototype.trim?function(ae){return String.prototype.trim.call(ae)}:function(ae){return ae.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function be(ee,ae){return function(){return ae.apply(ee,Array.prototype.slice.call(arguments,0))}}function Pe(ee,ae){return Array.prototype.slice.call(ee,ae||0)}function ye(ee,ae){me(ee,function(re,le){return ae(re,le),!1})}function we(ee,ae){var re=Se(ee)?[]:{};return me(ee,function(le,ue){return re[ue]=ae(le,ue),!1}),re}function me(ee,ae){if(Se(ee)){for(var re=0;re<ee.length;re++)if(ae(ee[re],re))return ee[re]}else for(var le in ee)if(ee.hasOwnProperty(le)&&ae(ee[le],le))return ee[le]}function Se(ee){return ee!=null&&typeof ee!="function"&&typeof ee.length=="number"}function de(ee){return ee&&{}.toString.call(ee)==="[object Function]"}function z(ee){return ee&&{}.toString.call(ee)==="[object Object]"}},97573:function(bn,an,Ge){bn.exports=[Ge(52496),Ge(16436),Ge(76673),Ge(35701),Ge(65578),Ge(65300)]},35701:function(bn,an,Ge){var Qe=Ge(67039),Tt=Qe.Global,oe=Qe.trim;bn.exports={name:"cookieStorage",read:Ne,write:fe,each:ve,remove:be,clearAll:Pe};var _e=Tt.document;function Ne(we){if(!we||!ye(we))return null;var me="(?:^|.*;\\s*)"+escape(we).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(_e.cookie.replace(new RegExp(me),"$1"))}function ve(we){for(var me=_e.cookie.split(/; ?/g),Se=me.length-1;Se>=0;Se--)if(oe(me[Se])){var de=me[Se].split("="),z=unescape(de[0]),ee=unescape(de[1]);we(ee,z)}}function fe(we,me){we&&(_e.cookie=escape(we)+"="+escape(me)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function be(we){!we||!ye(we)||(_e.cookie=escape(we)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function Pe(){ve(function(we,me){be(me)})}function ye(we){return new RegExp("(?:^|;\\s*)"+escape(we).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(_e.cookie)}},52496:function(bn,an,Ge){var Qe=Ge(67039),Tt=Qe.Global;bn.exports={name:"localStorage",read:_e,write:Ne,each:ve,remove:fe,clearAll:be};function oe(){return Tt.localStorage}function _e(Pe){return oe().getItem(Pe)}function Ne(Pe,ye){return oe().setItem(Pe,ye)}function ve(Pe){for(var ye=oe().length-1;ye>=0;ye--){var we=oe().key(ye);Pe(_e(we),we)}}function fe(Pe){return oe().removeItem(Pe)}function be(){return oe().clear()}},65300:function(bn){bn.exports={name:"memoryStorage",read:Ge,write:Qe,each:Tt,remove:oe,clearAll:_e};var an={};function Ge(Ne){return an[Ne]}function Qe(Ne,ve){an[Ne]=ve}function Tt(Ne){for(var ve in an)an.hasOwnProperty(ve)&&Ne(an[ve],ve)}function oe(Ne){delete an[Ne]}function _e(Ne){an={}}},16436:function(bn,an,Ge){var Qe=Ge(67039),Tt=Qe.Global;bn.exports={name:"oldFF-globalStorage",read:_e,write:Ne,each:ve,remove:fe,clearAll:be};var oe=Tt.globalStorage;function _e(Pe){return oe[Pe]}function Ne(Pe,ye){oe[Pe]=ye}function ve(Pe){for(var ye=oe.length-1;ye>=0;ye--){var we=oe.key(ye);Pe(oe[we],we)}}function fe(Pe){return oe.removeItem(Pe)}function be(){ve(function(Pe,ye){delete oe[Pe]})}},76673:function(bn,an,Ge){var Qe=Ge(67039),Tt=Qe.Global;bn.exports={name:"oldIE-userDataStorage",write:fe,read:be,each:Pe,remove:ye,clearAll:we};var oe="storejs",_e=Tt.document,Ne=de(),ve=(Tt.navigator?Tt.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function fe(z,ee){if(!ve){var ae=Se(z);Ne(function(re){re.setAttribute(ae,ee),re.save(oe)})}}function be(z){if(!ve){var ee=Se(z),ae=null;return Ne(function(re){ae=re.getAttribute(ee)}),ae}}function Pe(z){Ne(function(ee){for(var ae=ee.XMLDocument.documentElement.attributes,re=ae.length-1;re>=0;re--){var le=ae[re];z(ee.getAttribute(le.name),le.name)}})}function ye(z){var ee=Se(z);Ne(function(ae){ae.removeAttribute(ee),ae.save(oe)})}function we(){Ne(function(z){var ee=z.XMLDocument.documentElement.attributes;z.load(oe);for(var ae=ee.length-1;ae>=0;ae--)z.removeAttribute(ee[ae].name);z.save(oe)})}var me=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function Se(z){return z.replace(/^\d/,"___$&").replace(me,"___")}function de(){if(!_e||!_e.documentElement||!_e.documentElement.addBehavior)return null;var z="script",ee,ae,re;try{ae=new ActiveXObject("htmlfile"),ae.open(),ae.write("<"+z+">document.w=window</"+z+'><iframe src="/favicon.ico"></iframe>'),ae.close(),ee=ae.w.frames[0].document,re=ee.createElement("div")}catch(le){re=_e.createElement("div"),ee=_e.body}return function(le){var ue=[].slice.call(arguments,0);ue.unshift(re),ee.appendChild(re),re.addBehavior("#default#userData"),re.load(oe),le.apply(this,ue),ee.removeChild(re)}}},65578:function(bn,an,Ge){var Qe=Ge(67039),Tt=Qe.Global;bn.exports={name:"sessionStorage",read:_e,write:Ne,each:ve,remove:fe,clearAll:be};function oe(){return Tt.sessionStorage}function _e(Pe){return oe().getItem(Pe)}function Ne(Pe,ye){return oe().setItem(Pe,ye)}function ve(Pe){for(var ye=oe().length-1;ye>=0;ye--){var we=oe().key(ye);Pe(_e(we),we)}}function fe(Pe){return oe().removeItem(Pe)}function be(){return oe().clear()}},93314:function(bn){"use strict";bn.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=="},96908:function(bn){"use strict";bn.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(bn){"use strict";bn.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(bn){"use strict";bn.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="},16722:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return be}});const Qe=Pe=>typeof Pe=="object"&&Pe!=null&&Pe.nodeType===1,Tt=(Pe,ye)=>(!ye||Pe!=="hidden")&&Pe!=="visible"&&Pe!=="clip",oe=(Pe,ye)=>{if(Pe.clientHeight<Pe.scrollHeight||Pe.clientWidth<Pe.scrollWidth){const we=getComputedStyle(Pe,null);return Tt(we.overflowY,ye)||Tt(we.overflowX,ye)||(me=>{const Se=(de=>{if(!de.ownerDocument||!de.ownerDocument.defaultView)return null;try{return de.ownerDocument.defaultView.frameElement}catch(z){return null}})(me);return!!Se&&(Se.clientHeight<me.scrollHeight||Se.clientWidth<me.scrollWidth)})(Pe)}return!1},_e=(Pe,ye,we,me,Se,de,z,ee)=>de<Pe&&z>ye||de>Pe&&z<ye?0:de<=Pe&&ee<=we||z>=ye&&ee>=we?de-Pe-me:z>ye&&ee<we||de<Pe&&ee>we?z-ye+Se:0,Ne=Pe=>{const ye=Pe.parentElement;return ye==null?Pe.getRootNode().host||null:ye},ve=(Pe,ye)=>{var we,me,Se,de;if(typeof document=="undefined")return[];const{scrollMode:z,block:ee,inline:ae,boundary:re,skipOverflowHiddenElements:le}=ye,ue=typeof re=="function"?re:wt=>wt!==re;if(!Qe(Pe))throw new TypeError("Invalid target");const pe=document.scrollingElement||document.documentElement,Ee=[];let Ce=Pe;for(;Qe(Ce)&&ue(Ce);){if(Ce=Ne(Ce),Ce===pe){Ee.push(Ce);break}Ce!=null&&Ce===document.body&&oe(Ce)&&!oe(document.documentElement)||Ce!=null&&oe(Ce,le)&&Ee.push(Ce)}const je=(me=(we=window.visualViewport)==null?void 0:we.width)!=null?me:innerWidth,Le=(de=(Se=window.visualViewport)==null?void 0:Se.height)!=null?de:innerHeight,{scrollX:ke,scrollY:Oe}=window,{height:Fe,width:Re,top:Ze,right:ze,bottom:Ke,left:ot}=Pe.getBoundingClientRect(),{top:ct,right:pt,bottom:bt,left:qe}=(wt=>{const vt=window.getComputedStyle(wt);return{top:parseFloat(vt.scrollMarginTop)||0,right:parseFloat(vt.scrollMarginRight)||0,bottom:parseFloat(vt.scrollMarginBottom)||0,left:parseFloat(vt.scrollMarginLeft)||0}})(Pe);let at=ee==="start"||ee==="nearest"?Ze-ct:ee==="end"?Ke+bt:Ze+Fe/2-ct+bt,gt=ae==="center"?ot+Re/2-qe+pt:ae==="end"?ze+pt:ot-qe;const Ct=[];for(let wt=0;wt<Ee.length;wt++){const vt=Ee[wt],{height:mt,width:xt,top:At,right:kt,bottom:Wt,left:Et}=vt.getBoundingClientRect();if(z==="if-needed"&&Ze>=0&&ot>=0&&Ke<=Le&&ze<=je&&(vt===pe&&!oe(vt)||Ze>=At&&Ke<=Wt&&ot>=Et&&ze<=kt))return Ct;const St=getComputedStyle(vt),tt=parseInt(St.borderLeftWidth,10),ft=parseInt(St.borderTopWidth,10),$e=parseInt(St.borderRightWidth,10),lt=parseInt(St.borderBottomWidth,10);let Pt=0,dt=0;const et="offsetWidth"in vt?vt.offsetWidth-vt.clientWidth-tt-$e:0,Ve="offsetHeight"in vt?vt.offsetHeight-vt.clientHeight-ft-lt:0,He="offsetWidth"in vt?vt.offsetWidth===0?0:xt/vt.offsetWidth:0,nt="offsetHeight"in vt?vt.offsetHeight===0?0:mt/vt.offsetHeight:0;if(pe===vt)Pt=ee==="start"?at:ee==="end"?at-Le:ee==="nearest"?_e(Oe,Oe+Le,Le,ft,lt,Oe+at,Oe+at+Fe,Fe):at-Le/2,dt=ae==="start"?gt:ae==="center"?gt-je/2:ae==="end"?gt-je:_e(ke,ke+je,je,tt,$e,ke+gt,ke+gt+Re,Re),Pt=Math.max(0,Pt+Oe),dt=Math.max(0,dt+ke);else{Pt=ee==="start"?at-At-ft:ee==="end"?at-Wt+lt+Ve:ee==="nearest"?_e(At,Wt,mt,ft,lt+Ve,at,at+Fe,Fe):at-(At+mt/2)+Ve/2,dt=ae==="start"?gt-Et-tt:ae==="center"?gt-(Et+xt/2)+et/2:ae==="end"?gt-kt+$e+et:_e(Et,kt,xt,tt,$e+et,gt,gt+Re,Re);const{scrollLeft:ut,scrollTop:We}=vt;Pt=nt===0?0:Math.max(0,Math.min(We+Pt/nt,vt.scrollHeight-mt/nt+Ve)),dt=He===0?0:Math.max(0,Math.min(ut+dt/He,vt.scrollWidth-xt/He+et)),at+=We-Pt,gt+=ut-dt}Ct.push({el:vt,top:Pt,left:dt})}return Ct},fe=Pe=>Pe===!1?{block:"end",inline:"nearest"}:(ye=>ye===Object(ye)&&Object.keys(ye).length!==0)(Pe)?Pe:{block:"start",inline:"nearest"};function be(Pe,ye){if(!Pe.isConnected||!(Se=>{let de=Se;for(;de&&de.parentNode;){if(de.parentNode===document)return!0;de=de.parentNode instanceof ShadowRoot?de.parentNode.host:de.parentNode}return!1})(Pe))return;const we=(Se=>{const de=window.getComputedStyle(Se);return{top:parseFloat(de.scrollMarginTop)||0,right:parseFloat(de.scrollMarginRight)||0,bottom:parseFloat(de.scrollMarginBottom)||0,left:parseFloat(de.scrollMarginLeft)||0}})(Pe);if((Se=>typeof Se=="object"&&typeof Se.behavior=="function")(ye))return ye.behavior(ve(Pe,ye));const me=typeof ye=="boolean"||ye==null?void 0:ye.behavior;for(const{el:Se,top:de,left:z}of ve(Pe,fe(ye))){const ee=de-we.top+we.bottom,ae=z-we.left+we.right;Se.scroll({top:ee,left:ae,behavior:me})}}}}]);
|